diff --git a/index.d572c77b.js b/index.2ce7cc88.js similarity index 87% rename from index.d572c77b.js rename to index.2ce7cc88.js index 79c2296..70cb44c 100644 --- a/index.d572c77b.js +++ b/index.2ce7cc88.js @@ -28,5 +28,5 @@ * Acorn is a tiny, fast JavaScript parser written in JavaScript, * created by Marijn Haverbeke and released under an MIT license. * - */(function(e,i){var n=(e=e||u("1S6xU")).window,s=e.document,r=new function(){var t=/^(statics|enumerable|beans|preserve)$/,e=[],n=e.slice,s=Object.create,r=Object.getOwnPropertyDescriptor,a=Object.defineProperty,o=e.forEach||function(t,e){for(var i=0,n=this.length;i0||h+s0?[["dictionary",n.definitions],s]:s},deserialize:function(t,e,i,n,s){var a=t,o=!i,l=o&&t&&t.length&&"dictionary"===t[0][0];if(i=i||{},Array.isArray(t)){var h=t[0],u="dictionary"===h;if(1==t.length&&/^#/.test(h))return i.dictionary[h];h=r.exports[h],a=[];for(var c=h?1:0,d=t.length;ct.length&&(n=t.length);for(var l=0;l0){var r=e[s],a=r&&r[n];a&&a.call(this,s)}}},statics:{inject:function t(e){var i=e._events;if(i){var n={};r.each(i,function(t,i){var s="string"==typeof t,a=s?t:i,o=r.capitalize(a),l=a.substring(2).toLowerCase();n[l]=s?{}:t,a="_"+a,e["get"+o]=function(){return this[a]},e["set"+o]=function(t){var e=this[a];e&&this.off(l,e),t&&this.on(l,t),this[a]=t}}),e._eventTypes=n}return t.base.apply(this,arguments)}}},o=r.extend({_class:"PaperScope",initialize:function t(){tl=this,this.settings=new r({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 i=t.prototype;if(!this.support){var n=ts.getContext(1,1)||{};i.support={nativeDash:"setLineDash"in n||"mozDash"in n,nativeBlendModes:tr.nativeModes},ts.release(n)}if(!this.agent){var s=e.navigator.userAgent.toLowerCase(),a=(/(darwin|win|mac|linux|freebsd|sunos)/.exec(s)||[])[0],o="darwin"===a?"mac":a,l=i.agent=i.browser={platform:o};o&&(l[o]=!0),s.replace(/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,function(t,e,i,n,s){if(!l.chrome){var r="opera"===e?n:/^(node|trident)$/.test(e)?s:i;l.version=r,l.versionNumber=parseFloat(r),e=({trident:"msie",jsdom:"node"})[e]||e,l.name=e,l[e]=!0}}),l.chrome&&delete l.webkit,l.atom&&delete l.chrome}},version:"0.12.18",getView:function(){var t=this.project;return t&&t._view},getPaper:function(){return this},execute:function(t,e){var i=tl.PaperScript.execute(t,this,e);return $.updateFocus(),i},install:function(t){var e=this;for(var i in r.each(["project","view","tool"],function(i){r.define(t,i,{configurable:!0,get:function(){return e[i]}})}),this)!/^_/.test(i)&&this[i]&&(t[i]=this[i])},setup:function(t){return tl=this,this.project=new w(t),this},createCanvas:function(t,e){return ts.getCanvas(t,e)},activate:function(){tl=this},clear:function(){for(var t=this.projects,e=this.tools,i=t.length-1;i>=0;i--)t[i].remove();for(var i=e.length-1;i>=0;i--)e[i].remove()},remove:function(){this.clear(),delete o._scopes[this._id]},statics:new function(){function t(t){return t+="Attribute",function(e,i){return e[t](i)||e[t]("data-paper-"+i)}}return{_scopes:{},_id:0,get:function(t){return this._scopes[t]||null},getAttribute:t("get"),hasAttribute:t("has")}}}),l=r.extend(a,{initialize:function(t){this._scope=tl,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&&(r.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()}}),h={findItemBoundsCollisions:function(t,e,i){function n(t){for(var e=Array(t.length),i=0;i>>1;a[t[r]][e]=o;(s||(x&&O||w&&P)&&T>=A[d]-i&&E<=A[p]+i)&&(x&&O&&k.push(r?I:I-o),w&&P&&_[I].push(b))}}if(x&&(t===e&&k.push(v),_[v]=k),m.length){var N=y[c],M=h(m,c,N);m.splice(M+1,0,v)}else m.push(v)}for(var g=0;g<_.length;g++){var L=_[g];L&&L.sort(function(t,e){return t-e})}return _}},c=r.extend({initialize:function(t){this.precision=r.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,i){return this.number(t)+(i||",")+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)}});c.instance=new c;var d=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]],i=Math.abs,n=Math.sqrt,s=Math.pow,r=Math.log2||function(t){return Math.log(t)*Math.LOG2E};function a(t,e,i){return ti?i:t}function o(t,e,n){function s(t){var e=0x8000001*t,i=t-e+e;return[i,t-i]}var r=e*e-t*n,a=e*e+t*n;if(3*i(r)1e8)?s(2,-Math.round(r(t))):0}return{EPSILON:1e-12,MACHINE_EPSILON:112e-18,CURVETIME_EPSILON:1e-8,GEOMETRIC_EPSILON:1e-7,TRIGONOMETRIC_EPSILON:1e-8,ANGULAR_EPSILON:1e-5,KAPPA:4*(n(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(i,n,s,r){for(var a=t[r-2],o=e[r-2],l=(s-n)*.5,h=l+n,u=0,c=r+1>>1,d=1&r?o[u++]*i(h):0;u0?(r=n,n=d<=s?(s+r)*.5:d):(s=n,n=d>=r?(s+r)*.5:d)}return a(n,s,r)},solveQuadratic:function(t,e,s,r,h,u){var c,d=1/0;if(1e-12>i(t)){if(1e-12>i(e))return 1e-12>i(s)?-1:0;c=-s/e}else{var p=o(t,e*=-.5,s);if(p&&112e-18>i(p)){var f=l(i(t),i(e),i(s));f&&(t*=f,e*=f,s*=f,p=o(t,e,s))}if(p>=-112e-18){var g=p<0?0:n(p),m=e+(e<0?-g:g);0===m?d=-(c=s/t):(c=m/t,d=s/m)}}var _=0,v=null==h,y=h-1e-12,b=u+1e-12;return isFinite(c)&&(v||c>y&&cy&&di(t))t=e,f=r,g=o,p=1/0;else if(1e-12>i(o))f=e,g=r,p=0;else{y(-(e/t)/3);var b=_/t,x=s(i(b),1/3),w=b<0?-1:1,k=-m/t,S=k>0?1.324717957244746*Math.max(x,n(k)):x,C=p-w*S;if(C!==p){do y(C),C=0===m?p:p-_/m/1.0000000000000002;while(w*C>w*p)i(t)*p*p>i(o/p)&&(f=((g=-o/p)-r)/p)}}var I=d.solveQuadratic(t,f,g,h,u,c),T=null==u;return isFinite(p)&&(0===I||I>0&&p!==h[0]&&p!==h[1])&&(T||p>u-1e-12&&p1?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),s=0)}return n&&(this.__read=s),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 f(this.x,this.y)},toString:function(){var t=c.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 i=t/this.getLength();d.isZero(i)&&this.getAngle(),this._set(this.x*i,this.y*i)}},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)return this.isZero()?this._angle||0:this._angle=Math.atan2(this.y,this.x);var t=f.read(arguments),e=this.getLength()*t.getLength();if(d.isZero(e))return NaN;var i=this.dot(t)/e;return Math.acos(i<-1?-1:i>1?1:i)},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=f.read(arguments);return 180*Math.atan2(this.cross(t),this.dot(t))/Math.PI},getDistance:function(){var t=arguments,e=f.read(t),i=e.x-this.x,n=e.y-this.y,s=i*i+n*n;return r.read(t)?s:Math.sqrt(s)},normalize:function(t){t===i&&(t=1);var e=this.getLength(),n=0!==e?t/e:0,s=new f(this.x*n,this.y*n);return n>=0&&(s._angle=this._angle),s},rotate:function(t,e){if(0===t)return this.clone();t=t*Math.PI/180;var i=e?this.subtract(e):this,n=Math.sin(t),s=Math.cos(t);return i=new f(i.x*s-i.y*n,i.x*n+i.y*s),e?i.add(e):i},transform:function(t){return t?t._transformPoint(this):this},add:function(){var t=f.read(arguments);return new f(this.x+t.x,this.y+t.y)},subtract:function(){var t=f.read(arguments);return new f(this.x-t.x,this.y-t.y)},multiply:function(){var t=f.read(arguments);return new f(this.x*t.x,this.y*t.y)},divide:function(){var t=f.read(arguments);return new f(this.x/t.x,this.y/t.y)},modulo:function(){var t=f.read(arguments);return new f(this.x%t.x,this.y%t.y)},negate:function(){return new f(-this.x,-this.y)},isInside:function(){return v.read(arguments).contains(this)},isClose:function(){var t=arguments,e=f.read(t),i=r.read(t);return this.getDistance(e)<=i},isCollinear:function(){var t=f.read(arguments);return f.isCollinear(this.x,this.y,t.x,t.y)},isColinear:"#isCollinear",isOrthogonal:function(){var t=f.read(arguments);return f.isOrthogonal(this.x,this.y,t.x,t.y)},isZero:function(){var t=d.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=f.read(arguments);return this.x*t.x+this.y*t.y},cross:function(){var t=f.read(arguments);return this.x*t.y-this.y*t.x},project:function(){var t=f.read(arguments),e=t.isZero()?0:this.dot(t)/t.dot(t);return new f(t.x*e,t.y*e)},statics:{min:function(){var t=arguments,e=f.read(t),i=f.read(t);return new f(Math.min(e.x,i.x),Math.min(e.y,i.y))},max:function(){var t=arguments,e=f.read(t),i=f.read(t);return new f(Math.max(e.x,i.x),Math.max(e.y,i.y))},random:function(){return new f(Math.random(),Math.random())},isCollinear:function(t,e,i,n){return Math.abs(t*n-e*i)<=1e-8*Math.sqrt((t*t+e*e)*(i*i+n*n))},isOrthogonal:function(t,e,i,n){return Math.abs(t*i+e*n)<=1e-8*Math.sqrt((t*t+e*e)*(i*i+n*n))}}},r.each(["round","ceil","floor","abs"],function(t){var e=Math[t];this[t]=function(){return new f(e(this.x),e(this.y))}},{})),g=f.extend({initialize:function(t,e,i,n){this._x=t,this._y=e,this._owner=i,this._setter=n},_set:function(t,e,i){return this._x=t,this._y=e,i||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}}),m=r.extend({_class:"Size",_readIndex:!0,initialize:function(t,e){var i=typeof t,n=this.__read,s=0;if("number"===i){var r="number"==typeof e;this._set(t,r?e:t),n&&(s=r?2:1)}else if("undefined"===i||null===t)this._set(0,0),n&&(s=null===t?1:0);else{var a="string"===i?t.split(/[\s,]+/)||[]:t;s=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),s=0)}return n&&(this.__read=s),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 m(this.width,this.height)},toString:function(){var t=c.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=m.read(arguments);return new m(this.width+t.width,this.height+t.height)},subtract:function(){var t=m.read(arguments);return new m(this.width-t.width,this.height-t.height)},multiply:function(){var t=m.read(arguments);return new m(this.width*t.width,this.height*t.height)},divide:function(){var t=m.read(arguments);return new m(this.width/t.width,this.height/t.height)},modulo:function(){var t=m.read(arguments);return new m(this.width%t.width,this.height%t.height)},negate:function(){return new m(-this.width,-this.height)},isZero:function(){var t=d.isZero;return t(this.width)&&t(this.height)},isNaN:function(){return isNaN(this.width)||isNaN(this.height)},statics:{min:function(t,e){return new m(Math.min(t.width,e.width),Math.min(t.height,e.height))},max:function(t,e){return new m(Math.max(t.width,e.width),Math.max(t.height,e.height))},random:function(){return new m(Math.random(),Math.random())}}},r.each(["round","ceil","floor","abs"],function(t){var e=Math[t];this[t]=function(){return new m(e(this.width),e(this.height))}},{})),_=m.extend({initialize:function(t,e,i,n){this._width=t,this._height=e,this._owner=i,this._setter=n},_set:function(t,e,i){return this._width=t,this._height=e,i||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)}}),v=r.extend({_class:"Rectangle",_readIndex:!0,beans:!0,initialize:function(t,e,n,s){var a,o=arguments,l=typeof t;if("number"===l?(this._set(t,e,n,s),a=4):"undefined"===l||null===t?(this._set(0,0,0,0),a=null===t?1:0):1===o.length&&(Array.isArray(t)?(this._set.apply(this,t),a=1):t.x!==i||t.width!==i?(this._set(t.x||0,t.y||0,t.width||0,t.height||0),a=1):t.from===i&&t.to===i&&(this._set(0,0,0,0),r.readSupported(o,this)&&(a=1))),a===i){var h,u,c=f.readNamed(o,"from"),d=r.peek(o),p=c.x,g=c.y;if(d&&d.x!==i||r.hasNamed(o,"to")){var _=f.readNamed(o,"to");h=_.x-p,u=_.y-g,h<0&&(p=_.x,h=-h),u<0&&(g=_.y,u=-u)}else{var v=m.read(o);h=v.width,u=v.height}this._set(p,g,h,u),a=o.__index}var y=o.__filtered;return y&&(this.__filtered=y),this.__read&&(this.__read=a),this},set:"#initialize",_set:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},clone:function(){return new v(this.x,this.y,this.width,this.height)},equals:function(t){var e=r.isPlainValue(t)?v.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=c.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?f:g)(this.x,this.y,this,"setPoint")},setPoint:function(){var t=f.read(arguments);this.x=t.x,this.y=t.y},getSize:function(t){return new(t?m:_)(this.width,this.height,this,"setSize")},_fw:1,_fh:1,setSize:function(){var t=m.read(arguments),e=this._sx,i=this._sy,n=t.width,s=t.height;e&&(this.x+=(this.width-n)*e),i&&(this.y+=(this.height-s)*i),this.width=n,this.height=s,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+=(t-this.x)*2*this._sx),this.width=(t-this.x)*2),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+=(t-this.y)*2*this._sy),this.height=(t-this.y)*2),this._sy=.5,this._fh=0},getCenter:function(t){return new(t?f:g)(this.getCenterX(),this.getCenterY(),this,"setCenter")},setCenter:function(){var t=f.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!==i||4===(Array.isArray(t)?t:arguments).length?this._containsRectangle(v.read(arguments)):this._containsPoint(f.read(arguments))},_containsPoint:function(t){var e=t.x,i=t.y;return e>=this.x&&i>=this.y&&e<=this.x+this.width&&i<=this.y+this.height},_containsRectangle:function(t){var e=t.x,i=t.y;return e>=this.x&&i>=this.y&&e+t.width<=this.x+this.width&&i+t.height<=this.y+this.height},intersects:function(){var t=v.read(arguments),e=r.read(arguments)||0;return t.x+t.width>this.x-e&&t.y+t.height>this.y-e&&t.x=4&&(t[1]+=n?"Y":"X");var s=t[n?0:1],r=t[n?1:0],a="get"+s,o="get"+r,l="set"+s,h="set"+r,u="get"+i,c="set"+i;this[u]=function(t){return new(t?f:g)(this[a](),this[o](),this,c)},this[c]=function(){var t=f.read(arguments);this[l](t.x),this[h](t.y)}},{beans:!0})),y=v.extend({initialize:function(t,e,i,n,s,r){this._set(t,e,i,n,!0),this._owner=s,this._setter=r},_set:function(t,e,i,n,s){return this._x=t,this._y=e,this._width=i,this._height=n,s||this._owner[this._setter](this),this}},new function(){var t=v.prototype;return r.each(["x","y","width","height"],function(t){var e=r.capitalize(t),i="_"+t;this["get"+e]=function(){return this[i]},this["set"+e]=function(t){this[i]=t,this._dontNotify||this._owner[this._setter](this)}},r.each(["Point","Size","Center","Left","Top","Right","Bottom","CenterX","CenterY","TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],function(e){var i="set"+e;this[i]=function(){this._dontNotify=!0,t[i].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)}}))}),b=r.extend({_class:"Matrix",initialize:function t(e,i){var n=arguments,s=n.length,r=!0;if(s>=6?this._set.apply(this,n):1===s||2===s?e instanceof t?this._set(e._a,e._b,e._c,e._d,e._tx,e._ty,i):Array.isArray(e)?this._set.apply(this,i?e.concat([i]):e):r=!1:s?r=!1:this.reset(),!r)throw Error("Unsupported matrix parameters");return this},set:"#initialize",_set:function(t,e,i,n,s,r,a){return this._a=t,this._b=e,this._c=i,this._d=n,this._tx=s,this._ty=r,a||this._changed(),this},_serialize:function(t,e){return r.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 b(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=c.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 i=this._owner;return!!i&&(i.transform(null,r.pick(t,!0),e),this.isIdentity())},translate:function(){var t=f.read(arguments),e=t.x,i=t.y;return this._tx+=e*this._a+i*this._c,this._ty+=e*this._b+i*this._d,this._changed(),this},scale:function(){var t=arguments,e=f.read(t),i=f.read(t,0,{readNull:!0});return i&&this.translate(i),this._a*=e.x,this._b*=e.x,this._c*=e.y,this._d*=e.y,i&&this.translate(i.negate()),this._changed(),this},rotate:function(t){t*=Math.PI/180;var e=f.read(arguments,1),i=e.x,n=e.y,s=Math.cos(t),r=Math.sin(t),a=i-i*s+n*r,o=n-i*r-n*s,l=this._a,h=this._b,u=this._c,c=this._d;return this._a=s*l+r*u,this._b=s*h+r*c,this._c=-r*l+s*u,this._d=-r*h+s*c,this._tx+=a*l+o*u,this._ty+=a*h+o*c,this._changed(),this},shear:function(){var t=arguments,e=f.read(t),i=f.read(t,0,{readNull:!0});i&&this.translate(i);var n=this._a,s=this._b;return this._a+=e.y*this._c,this._b+=e.y*this._d,this._c+=e.x*n,this._d+=e.x*s,i&&this.translate(i.negate()),this._changed(),this},skew:function(){var t=arguments,e=f.read(t),i=f.read(t,0,{readNull:!0}),n=Math.PI/180,s=new f(Math.tan(e.x*n),Math.tan(e.y*n));return this.shear(s,i)},append:function(t,e){if(t){var i=this._a,n=this._b,s=this._c,r=this._d,a=t._a,o=t._c,l=t._b,h=t._d,u=t._tx,c=t._ty;this._a=a*i+l*s,this._c=o*i+h*s,this._b=a*n+l*r,this._d=o*n+h*r,this._tx+=u*i+c*s,this._ty+=u*n+c*r,e||this._changed()}return this},prepend:function(t,e){if(t){var i=this._a,n=this._b,s=this._c,r=this._d,a=this._tx,o=this._ty,l=t._a,h=t._c,u=t._b,c=t._d,d=t._tx,p=t._ty;this._a=l*i+h*n,this._c=l*s+h*r,this._b=u*i+c*n,this._d=u*s+c*r,this._tx=l*a+h*o+d,this._ty=u*a+c*o+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,i=this._c,n=this._d,s=this._tx,r=this._ty,a=t*n-e*i,o=null;return a&&!isNaN(a)&&isFinite(s)&&isFinite(r)&&(this._a=n/a,this._b=-e/a,this._c=-i/a,this._d=t/a,this._tx=(i*r-n*s)/a,this._ty=(e*s-t*r)/a,o=this),o},inverted:function(){return this.clone().invert()},concatenate:"#append",preConcatenate:"#prepend",chain:"#appended",_shiftless:function(){return new b(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,i){return arguments.length<3?this._transformPoint(f.read(arguments)):this._transformCoordinates(t,e,i)},_transformPoint:function(t,e,i){var n=t.x,s=t.y;return e||(e=new f),e._set(n*this._a+s*this._c+this._tx,n*this._b+s*this._d+this._ty,i)},_transformCoordinates:function(t,e,i){for(var n=0,s=2*i;nr[l]&&(r[l]=o)}return e||(e=new v),e._set(s[0],s[1],r[0]-s[0],r[1]-s[1],i)},inverseTransform:function(){return this._inverseTransform(f.read(arguments))},_inverseTransform:function(t,e,i){var n=this._a,s=this._b,r=this._c,a=this._d,o=this._tx,l=this._ty,h=n*a-s*r,u=null;if(h&&!isNaN(h)&&isFinite(o)&&isFinite(l)){var c=t.x-this._tx,d=t.y-this._ty;e||(e=new f),u=e._set((c*a-d*r)/h,(d*n-c*s)/h,i)}return u},decompose:function(){var t,e,i,n=this._a,s=this._b,r=this._c,a=this._d,o=n*a-s*r,l=Math.sqrt,h=Math.atan2,u=180/Math.PI;if(0!==n||0!==s){var c=l(n*n+s*s);t=Math.acos(n/c)*(s>0?1:-1),e=[c,o/c],i=[h(n*r+s*a,c*c),0]}else if(0!==r||0!==a){var d=l(r*r+a*a);t=Math.asin(r/d)*(a>0?1:-1),e=[o/d,d],i=[0,h(n*r+s*a,d*d)]}else t=0,i=e=[0,0];return{translation:this.getTranslation(),rotation:t*u,scaling:new f(e),skewing:new f(i[0]*u,i[1]*u)}},getValues:function(){return[this._a,this._b,this._c,this._d,this._tx,this._ty]},getTranslation:function(){return new f(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)}},r.each(["a","b","c","d","tx","ty"],function(t){var e=r.capitalize(t),i="_"+t;this["get"+e]=function(){return this[i]},this["set"+e]=function(t){this[i]=t,this._changed()}},{})),x=r.extend({_class:"Line",initialize:function(t,e,i,n,s){var r=!1;arguments.length>=4?(this._px=t,this._py=e,this._vx=i,this._vy=n,r=s):(this._px=t.x,this._py=t.y,this._vx=e.x,this._vy=e.y,r=i),r||(this._vx-=this._px,this._vy-=this._py)},getPoint:function(){return new f(this._px,this._py)},getVector:function(){return new f(this._vx,this._vy)},getLength:function(){return this.getVector().getLength()},intersect:function(t,e){return x.intersect(this._px,this._py,this._vx,this._vy,t._px,t._py,t._vx,t._vy,!0,e)},getSide:function(t,e){return x.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 x.getSignedDistance(this._px,this._py,this._vx,this._vy,t.x,t.y,!0)},isCollinear:function(t){return f.isCollinear(this._vx,this._vy,t._vx,t._vy)},isOrthogonal:function(t){return f.isOrthogonal(this._vx,this._vy,t._vx,t._vy)},statics:{intersect:function(t,e,i,n,s,r,a,o,l,h){l||(i-=t,n-=e,a-=s,o-=r);var u=i*o-n*a;if(!d.isMachineZero(u)){var c=t-s,p=e-r,g=(a*p-o*c)/u,m=(i*p-n*c)/u;if(h||-1e-12=1?1:g),new f(t+g*i,e+g*n)}},getSide:function(t,e,i,n,s,r,a,o){a||(i-=t,n-=e);var l=s-t,h=l*n-(r-e)*i;return!o&&d.isMachineZero(h)&&(h=(l*i+l*i)/(i*i+n*n))>=0&&h<=1&&(h=0),h<0?-1:h>0?1:0},getSignedDistance:function(t,e,i,n,s,r,a){return a||(i-=t,n-=e),0===i?n>0?s-t:t-s:0===n?i<0?r-e:e-r:((s-t)*n-(r-e)*i)/(n>i?n*Math.sqrt(1+i*i/(n*n)):i*Math.sqrt(1+n*n/(i*i)))},getDistance:function(t,e,i,n,s,r,a){return Math.abs(x.getSignedDistance(t,e,i,n,s,r,a))}}}),w=l.extend({_class:"Project",_list:"projects",_reference:"project",_compactSerialize:!0,initialize:function(t){l.call(this,!0),this._children=[],this._namedChildren={},this._activeLayer=null,this._currentStyle=new H(null,null,this),this._view=$.create(this,t||ts.getCanvas(1,1)),this._selectionItems={},this._selectionCount=0,this._updateVersion=0},_serialize:function(t,e){return r.serialize(this._children,t,!0,e)},_changed:function(t,e){if(1&t){var i=this._view;i&&(i._needsUpdate=!0,!i._requested&&i._autoUpdate&&i.requestUpdate())}var n=this._changes;if(n&&e){var s=this._changesById,r=e._id,a=s[r];a?a.flags|=t:n.push(s[r]={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 C({project:this,insert:!0})},getSymbolDefinitions:function(){var t=[],e={};return this.getItems({class:E,match:function(i){var n=i._definition,s=n._id;return e[s]||(e[s]=!0,t.push(n)),!1}}),t},getSymbols:"getSymbolDefinitions",getSelectedItems:function(){var t=this._selectionItems,e=[];for(var i in t){var n=t[i],s=n._selection;1&s&&n.isInserted()?e.push(n):s||this._updateSelection(n)}return e},_updateSelection:function(t){var e=t._id,i=this._selectionItems;t._selection?i[e]!==t&&(this._selectionCount++,i[e]=t):i[e]===t&&(this._selectionCount--,delete i[e])},selectAll:function(){for(var t=this._children,e=0,i=t.length;e0){t.save(),t.strokeWidth=1;var l=this._selectionItems,h=this._scope.settings.handleSize,u=this._updateVersion;for(var c in l)l[c]._drawSelection(t,e,h,l,u);t.restore()}}}),k=r.extend(a,{statics:{extend:function t(e){return e._serializeFields&&(e._serializeFields=r.set({},this.prototype._serializeFields,e._serializeFields)),t.base.apply(this,arguments)},INSERT:{insert:!0},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 b,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 r.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&&r.isPlainObject(t),s=n&&!0===t.internal,a=this._matrix=new b,o=n&&t.project||tl.project,l=tl.settings;return this._id=s?null:p.get(),this._parent=this._index=null,this._applyMatrix=this._canApplyMatrix&&l.applyMatrix,e&&a.translate(e),a._owner=this,this._style=new H(o._currentStyle,this,o),s||n&&!1==t.insert||!l.insertItems&&!(n&&!0==t.insert)?this._setProject(o):(n&&t.parent||o)._insertItem(i,this,!0),n&&t!==k.NO_INSERT&&t!==k.INSERT&&this.set(t,{internal:!0,insert:!0,project:!0,parent:!0}),n},_serialize:function(t,e){var i={},n=this;function s(s){for(var a in s){var o=n[a];r.equals(o,"leading"===a?1.2*s.fontSize:s[a])||(i[a]=r.serialize(o,t,"data"!==a,e))}}return s(this._serializeFields),this instanceof S||s(this._style._defaults),[this._class,i]},_changed:function(t){var e=this._symbol,n=this._parent||e,s=this._project;8&t&&(this._bounds=this._position=this._decomposed=i),16&t&&(this._globalMatrix=i),n&&72&t&&k._clearBoundsCache(n),2&t&&k._clearBoundsCache(this),s&&s._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 Error("Names consisting only of numbers are not supported.");var e=this._getOwner();if(t&&e){var n=e._children,s=e._namedChildren;(s[t]=s[t]||[]).push(this),t in n||(n[t]=this)}this._name=t||i,this._changed(256)},getStyle:function(){return this._style},setStyle:function(t){this.getStyle().set(t)}},r.each(["locked","visible","blendMode","opacity","guide"],function(t){var e=r.capitalize(t),i="_"+t,n={locked:256,visible:265};this["get"+e]=function(){return this[i]},this["set"+e]=function(e){e!=this[i]&&(this[i]=e,this._changed(n[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 i=this._selection;this.setSelection(e?i|t:i&~t)},isSelected:function(){if(this._selectChildren){for(var t=this._children,e=0,i=t.length;e=0;i--)if(e[i].contains(t))return!0;return!1}return t.isInside(this.getInternalBounds())},isInside:function(){return v.read(arguments).contains(this.getBounds())},_asPathItem:function(){return new R.Rectangle({rectangle:this.getInternalBounds(),matrix:this._matrix,insert:!1})},intersects:function(t,e){return t instanceof k&&this._asPathItem().getIntersections(t._asPathItem(),null,e,!0).length>0}},new function(){function t(){var t=arguments;return this._hitTest(f.read(t),P.getOptions(t))}function e(){var t=arguments,e=f.read(t),i=P.getOptions(t),n=[];return this._hitTest(e,new r({all:n},i)),n}function i(t,e,i,n){var s=this._children;if(s)for(var r=s.length-1;r>=0;r--){var a=s[r],o=a!==n&&a._hitTest(t,e,i);if(o&&!e.all)return o}return null}return w.inject({hitTest:t,hitTestAll:e,_hitTest:i}),{hitTest:t,hitTestAll:e,_hitTestChildren:i}},{_hitTest:function(t,e,i){if(this._locked||!this._visible||this._guide&&!e.guides||this.isEmpty())return null;var n=this._matrix,s=i?i.appended(n):this.getGlobalMatrix().prepend(this.getView()._matrix),a=Math.max(e.tolerance,1e-12),o=e._tolerancePadding=new m(R._getStrokePadding(a,n._shiftless().invert()));if(!(t=n._inverseTransform(t))||!this._children&&!this.getBounds({internal:!0,stroke:!0,handle:!0}).expand(o.multiply(2))._containsPoint(t))return null;var l,h,u=!(e.guides&&!this._guide||e.selected&&!this.isSelected()||e.type&&e.type!==r.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,i){var n=i?l["get"+i]():d.getPosition();if(t.subtract(n).divide(o).length<=1)return new P(e,d,{name:i?r.hyphenate(i):e,point:n})}var g=e.position,_=e.center,v=e.bounds;if(u&&this._parent&&(g||_||v)){if((_||v)&&(l=this.getInternalBounds()),!(h=g&&f("position")||_&&f("center","Center"))&&v)for(var y=["TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],b=0;b<8&&!h;b++)h=f("bounds",y[b]);h=p(h)}return h||(h=this._hitTestChildren(t,e,s)||u&&p(this._hitTestSelf(t,e,s,this.getStrokeScaling()?null:s._shiftless().invert()))||null),h&&h.point&&(h.point=n.transform(h.point)),h},_hitTestSelf:function(t,e){if(e.fill&&this.hasFill()&&this._contains(t))return new P("fill",this)},matches:function(t,e){var i=typeof t;if("object"===i){for(var n in t)if(t.hasOwnProperty(n)&&!this.matches(n,t[n]))return!1;return!0}if("function"===i)return t(this);if("match"===t)return e(this);var s=/^(empty|editable)$/.test(t)?this["is"+r.capitalize(t)]():"type"===t?r.hyphenate(this._class):this[t];if("class"===t){if("function"==typeof e)return this instanceof e;s=this._class}if("function"==typeof e)return!!e(s);if(e){if(e.test)return e.test(s);if(r.isPlainObject(e))return function t(e,i){for(var n in e)if(e.hasOwnProperty(n)){var s=e[n],a=i[n];if(r.isPlainObject(s)&&r.isPlainObject(a)){if(!t(s,a))return!1}else if(!r.equals(s,a))return!1}return!0}(e,s)}return r.equals(s,e)},getItems:function(t){return k._getItems(this,t,this._matrix)},getItem:function(t){return k._getItems(this,t,this._matrix,null,!0)[0]||null},statics:{_getItems:function t(e,i,n,s,a){if(!s){var o="object"==typeof i&&i,l=o&&o.overlapping,h=o&&o.inside,u=l||h,c=u&&v.read([u]);s={items:[],recursive:o&&!1!==o.recursive,inside:!!h,overlapping:!!l,rect:c,path:l&&new R.Rectangle({rectangle:c,insert:!1})},o&&(i=r.filter({},i,{recursive:!0,inside:!0,overlapping:!0}))}var d=e._children,p=s.items,c=s.rect;n=c&&(n||new b);for(var f=0,g=d&&d.length;f0))break}return p}}},{importJSON:function(t){var e=r.importJSON(t,this);return e!==this?this.addChild(e):e},addChild:function(t){return this.insertChild(i,t)},insertChild:function(t,e){var i=e?this.insertChildren(t,[e]):null;return i&&i[0]},addChildren:function(t){return this.insertChildren(this._children.length,t)},insertChildren:function(t,e){var i=this._children;if(i&&e&&e.length>0){e=r.slice(e);for(var n={},s=e.length-1;s>=0;s--){var a=e[s],o=a&&a._id;!a||n[o]?e.splice(s,1):(a._remove(!1,!0),n[o]=!0)}r.splice(i,e,t,0);for(var l=this._project,h=l._changes,s=0,u=e.length;s=0;n--)i[n]._remove(!0,!1);return i.length>0&&this._changed(11),i},clear:"#removeChildren",reverseChildren:function(){if(this._children){this._children.reverse();for(var t=0,e=this._children.length;t0},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}},r.each(["rotate","scale","shear","skew"],function(t){var e="rotate"===t;this[t]=function(){var i=arguments,n=(e?r:f).read(i),s=f.read(i,0,{readNull:!0});return this.transform(new b()[t](n,s||this.getPosition(!0)))}},{translate:function(){var t=new b;return this.transform(t.translate.apply(t,arguments))},transform:function(t,e,i){var n=this._matrix,s=t&&!t.isIdentity(),r=i&&this._canApplyMatrix||this._applyMatrix&&(s||!n.isIdentity()||e&&this._children);if(!s&&!r)return this;if(s){!t.isInvertible()&&n.isInvertible()&&(n._backup=n.getValues()),n.prepend(t,!0);var a=this._style,o=a.getFillColor(!0),l=a.getStrokeColor(!0);o&&o.transform(t),l&&l.transform(t)}if(r&&(r=this._transformContent(n,e,i))){var h=this._pivot;h&&n._transformPoint(h,h,!0),n.reset(!0),i&&this._canApplyMatrix&&(this._applyMatrix=!0)}var u=this._bounds,c=this._position;(s||r)&&this._changed(25);var d=s&&u&&t.decompose();if(d&&d.skewing.isZero()&&d.rotation%90==0){for(var p in u){var f=u[p];if(f.nonscaling)delete u[p];else if(r||!f.internal){var g=f.rect;t._transformBounds(g,g)}}this._bounds=u;var m=u[this._getBoundsCacheKey(this._boundsOptions||{})];m&&(this._position=this._getPositionFromBounds(m.rect))}else s&&c&&this._pivot&&(this._position=t._transformPoint(c,c));return this},_transformContent:function(t,e,i){var n=this._children;if(n){for(var s=0,r=n.length;ss:n1&&r<4?-1:1,r>2?-1:1),o=a.multiply(s),l=o.subtract(a.multiply(n));if(new v(i?o.add(a.multiply(i)):o,l).contains(e))return{point:l,quadrant:r}}}function e(t,e,i,n){var s=t.divide(e);return(!n||s.isInQuadrant(n))&&s.subtract(s.normalize()).multiply(e).divide(i).length<=1}return{_contains:function e(i){if("rectangle"!==this._type)return .5>=i.divide(this.size).getLength();var n=t(this,i);return n?1>=i.subtract(n.point).divide(this._radius).getLength():e.base.call(this,i)},_hitTestSelf:function i(n,s,r,a){var o=!1,l=this._style,h=s.stroke&&l.hasStroke(),u=s.fill&&l.hasFill();if(h||u){var c=this._type,d=this._radius,p=h?l.getStrokeWidth()/2:0,f=s._tolerancePadding.add(R._getStrokePadding(p,!l.getStrokeScaling()&&a));if("rectangle"===c){var g=f.multiply(2),m=t(this,n,g);if(m)o=e(n.subtract(m.point),d,f,m.quadrant);else{var _=new v(this._size).setCenter(0,0),y=_.expand(g),b=_.expand(g.negate());o=y._containsPoint(n)&&!b._containsPoint(n)}}else o=e(n,d,f)}return o?new P(h?"stroke":"fill",this):i.base.apply(this,arguments)}}},{statics:new function(){function t(t,e,i,n,s){var a=r.create(I.prototype);return a._type=t,a._size=i,a._radius=n,a._initialize(r.getNamed(s),e),a}return{Circle:function(){var e=arguments,i=f.readNamed(e,"center"),n=r.readNamed(e,"radius");return t("circle",i,new m(2*n),n,e)},Rectangle:function(){var e=arguments,i=v.readNamed(e,"rectangle"),n=m.min(m.readNamed(e,"radius"),i.getSize(!0).divide(2));return t("rectangle",i.getCenter(!0),i.getSize(!0),n,e)},Ellipse:function(){var e=arguments,i=I._readEllipse(e),n=i.radius;return t("ellipse",i.center,n.multiply(2),n,e)},_readEllipse:function(t){var e,i;if(r.hasNamed(t,"radius"))e=f.readNamed(t,"center"),i=m.readNamed(t,"radius");else{var n=v.readNamed(t,"rectangle");e=n.getCenter(!0),i=n.getSize(!0).divide(2)}return{center:e,radius:i}}}}}),T=k.extend({_class:"Raster",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!1,handle:!1},_serializeFields:{crossOrigin:null,source:null},_prioritize:["crossOrigin"],_smoothing:"low",beans:!0,initialize:function(t,e){if(!this._initialize(t,e!==i&&f.read(arguments))){var n,r=typeof t,a="string"===r?s.getElementById(t):"object"===r?t:null;if(a&&a!==k.NO_INSERT){if(a.getContext||null!=a.naturalHeight)n=a;else if(a){var o=m.read(arguments);o.isZero()||(n=ts.getCanvas(o))}}n?this.setImage(n):this.setSource(t)}this._size||(this._size=new m,this._loaded=!1)},_equals:function(t){return this.getSource()===t.getSource()},copyContent:function(t){var e=t._image,i=t._canvas;if(e)this._setImage(e);else if(i){var n=ts.getCanvas(t._size);n.getContext("2d").drawImage(i,0,0),this._setImage(n)}this._crossOrigin=t._crossOrigin},getSize:function(){var t=this._size;return new _(t?t.width:0,t?t.height:0,this,"setSize")},setSize:function(t,e){var i=m.read(arguments);if(i.equals(this._size))e&&this.clear();else if(i.width>0&&i.height>0){var n=!e&&this.getElement();this._setImage(ts.getCanvas(i)),n&&this.getContext(!0).drawImage(n,0,0,i.width,i.height)}else this._canvas&&ts.release(this._canvas),this._size=i.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 f(0,0).transform(t),i=new f(1,0).transform(t).subtract(e),n=new f(0,1).transform(t).subtract(e);return new m(72/i.getLength(),72/n.getLength())},getPpi:"#getResolution",getImage:function(){return this._image},setImage:function(t){var e=this;function i(t){var i=e.getView(),n=t&&t.type||"load";i&&e.responds(n)&&(tl=i._scope,e.emit(n,new J(t)))}this._setImage(t),this._loaded?setTimeout(i,0):t&&W.add(t,{load:function(n){e._setImage(t),i(n)},error:i})},_setImage:function(t){this._canvas&&ts.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 m(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=ts.getContext(this._size);try{this._image&&t.drawImage(this._image,0,0),this._canvas=t.canvas}catch(e){ts.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 i=new e.Image,n=this._crossOrigin;n&&(i.crossOrigin=n),t&&(i.src=t),this.setImage(i)},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="string"==typeof t?t:t?"low":"off",this._changed(257)},getElement:function(){return this._canvas||this._loaded&&this._image}},{beans:!1,getSubCanvas:function(){var t=v.read(arguments),e=ts.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=v.read(arguments),e=new T(k.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 i=this.getCanvas();return i?i.toDataURL.apply(i,arguments):null},drawImage:function(t){var e=f.read(arguments,1);this.getContext(!0).drawImage(t,e.x,e.y)},getAverageColor:function(t){if(t?t instanceof z?(i=t,e=t.getBounds()):"object"==typeof t&&("width"in t?e=new v(t):"x"in t&&(e=new v(t.x-.5,t.y-.5,1,1))):e=this.getBounds(),!e)return null;var e,i,n=Math.min(e.width,32),s=Math.min(e.height,32),a=T._sampleContext;a?a.clearRect(0,0,33,33):a=T._sampleContext=ts.getContext(new m(32)),a.save();var o=new b().scale(n/e.width,s/e.height).translate(-e.x,-e.y);o.applyToContext(a),i&&i.draw(a,new r({clip:!0,matrices:[o]})),this._matrix.applyToContext(a);var l=this.getElement(),h=this._size;l&&a.drawImage(l,-h.width/2,-h.height/2),a.restore();for(var u=a.getImageData(.5,.5,Math.ceil(n),Math.ceil(s)).data,c=[0,0,0],d=0,p=0,f=u.length;p0&&n.height>0){t.globalAlpha=d.clamp(this._opacity,0,1),this._setStyles(t,e,i);var s=this._smoothing,r="off"===s;G.setPrefixed(t,r?"imageSmoothingEnabled":"imageSmoothingQuality",!r&&s),t.drawImage(n,-this._size.width/2,-this._size.height/2)}},_canComposite:function(){return!0}}),E=k.extend({_class:"SymbolItem",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!0},_serializeFields:{symbol:null},initialize:function(t,e){this._initialize(t,e!==i&&f.read(arguments,1))||this.setDefinition(t instanceof A?t:new A(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 i=this._definition._item;return i._getCachedBounds(i._matrix.prepended(t),e)},_hitTestSelf:function(t,e,i){var n=e.extend({all:!1}),s=this._definition._item._hitTest(t,n,i);return s&&(s.item=this),s},_draw:function(t,e){this._definition._item.draw(t,e)}}),A=r.extend({_class:"SymbolDefinition",initialize:function(t,e){this._id=p.get(),this.project=tl.project,t&&this.setItem(t,e)},_serialize:function(t,e){return e.add(this,function(){return r.serialize([this._class,this._item],t,!1,e)})},_changed:function(t){8&t&&k._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 f),t._symbol=this,this._changed(9)},getDefinition:"#getItem",setDefinition:"#setItem",place:function(t){return new E(this,t)},clone:function(){return new A(this._item.clone(!1))},equals:function(t){return t===this||t&&this._item.equals(t._item)||!1}}),P=r.extend({_class:"HitResult",initialize:function(t,e,i){this.type=t,this.item=e,i&&this.inject(i)},statics:{getOptions:function(t){var e=t&&r.read(t);return new r({type:null,tolerance:tl.settings.hitTolerance,fill:!e,stroke:!e,segments:!e,handles:!1,ends:!1,position:!1,center:!1,bounds:!1,guides:!1,selected:!1},e)}}}),O=r.extend({_class:"Segment",beans:!0,_selection:0,initialize:function(t,e,n,s,r,a){var o,l,h,u,c=arguments.length;c>0&&(null==t||"object"==typeof t?1===c&&t&&"point"in t?(o=t.point,l=t.handleIn,h=t.handleOut,u=t.selection):(o=t,l=e,h=n,u=s):(o=[t,e],l=n!==i?[n,s]:null,h=r!==i?[r,a]:null)),new N(o,this,"_point"),new N(l,this,"_handleIn"),new N(h,this,"_handleOut"),u&&this.setSelection(u)},_serialize:function(t,e){var i=this._point,n=this._selection,s=n||this.hasHandles()?[i,this._handleIn,this._handleOut]:i;return n&&s.push(n),r.serialize(s,t,!0,e)},_changed:function(t){var e=this._path;if(e){var i,n=e._curves,s=this._index;n&&((!t||t===this._point||t===this._handleIn)&&(i=s>0?n[s-1]:e._closed?n[n.length-1]:null)&&i._changed(),(!t||t===this._point||t===this._handleOut)&&(i=n[s])&&i._changed()),e._changed(41)}},getPoint:function(){return this._point},setPoint:function(){this._point.set(f.read(arguments))},getHandleIn:function(){return this._handleIn},setHandleIn:function(){this._handleIn.set(f.read(arguments))},getHandleOut:function(){return this._handleOut},setHandleOut:function(){this._handleOut.set(f.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,i=this._path;this._selection=t=t||0,i&&t!==e&&(i._updateSelection(this,e,t),i._changed(257))},_changeSelection:function(t,e){var i=this._selection;this.setSelection(e?i|t:i&~t)},isSelected:function(){return!!(7&this._selection)},setSelected:function(t){this._changeSelection(7,t)},getIndex:function(){return this._index!==i?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 L(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 s=t||{},r=s.type,a=s.factor,o=this.getPrevious(),l=this.getNext(),h=(o||this)._point,u=this._point,c=(l||this)._point,d=h.getDistance(u),p=u.getDistance(c);if(r&&"catmull-rom"!==r){if("geometric"===r){if(o&&l){var g=h.subtract(c),m=a===i?.4:a,_=m*d/(d+p);e||this.setHandleIn(g.multiply(_)),n||this.setHandleOut(g.multiply(_-m))}}else throw Error("Smoothing method '"+r+"' not supported.")}else{var v=a===i?.5:a,y=Math.pow(d,v),b=y*y,x=Math.pow(p,v),w=x*x;if(!e&&o){var k=2*w+3*x*y+b,S=3*x*(x+y);this.setHandleIn(0!==S?new f((w*h._x+k*u._x-b*c._x)/S-u._x,(w*h._y+k*u._y-b*c._y)/S-u._y):new f)}if(!n&&l){var k=2*b+3*y*x+w,S=3*y*(y+x);this.setHandleOut(0!==S?new f((b*c._x+k*u._x-w*h._x)/S-u._x,(b*c._y+k*u._y-w*h._y)/S-u._y):new f)}}},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,i=t.clone();t.set(e),e.set(i)},reversed:function(){return new O(this._point,this._handleOut,this._handleIn)},remove:function(){return!!this._path&&!!this._path.removeSegment(this._index)},clone:function(){return new O(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,Array(6),!0),this._changed()},interpolate:function(t,e,i){var n=1-i,s=t._point,r=e._point,a=t._handleIn,o=e._handleIn,l=e._handleOut,h=t._handleOut;this._point._set(n*s._x+i*r._x,n*s._y+i*r._y,!0),this._handleIn._set(n*a._x+i*o._x,n*a._y+i*o._y,!0),this._handleOut._set(n*h._x+i*l._x,n*h._y+i*l._y,!0),this._changed()},_transformCoordinates:function(t,e,i){var n=this._point,s=i&&this._handleIn.isZero()?null:this._handleIn,r=i&&this._handleOut.isZero()?null:this._handleOut,a=n._x,o=n._y,l=2;return e[0]=a,e[1]=o,s&&(e[l++]=s._x+a,e[l++]=s._y+o),r&&(e[l++]=r._x+a,e[l++]=r._y+o),t&&(t._transformCoordinates(e,e,l/2),a=e[0],o=e[1],i?(n._x=a,n._y=o,l=2,s&&(s._x=e[l++]-a,s._y=e[l++]-o),r&&(r._x=e[l++]-a,r._y=e[l++]-o)):(s||(e[l++]=a,e[l++]=o),r||(e[l++]=a,e[l++]=o))),e}}),N=f.extend({initialize:function(t,e,n){var s,r,a;if(t){if((s=t[0])!==i)r=t[1];else{var o=t;(s=o.x)===i&&(o=f.read(arguments),s=o.x),r=o.y,a=o.selected}}else s=r=0;this._x=s,this._y=r,this._owner=e,e[n]=this,a&&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=d.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}}),M=r.extend({_class:"Curve",beans:!0,initialize:function(t,e,i,n,s,r,a,o){var l,h,u,c,d,p,f=arguments.length;3===f?(this._path=t,l=e,h=i):f?1===f?"segment1"in t?(l=new O(t.segment1),h=new O(t.segment2)):"point1"in t?(u=t.point1,d=t.handle1,p=t.handle2,c=t.point2):Array.isArray(t)&&(u=[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?(l=new O(t),h=new O(e)):4===f?(u=t,d=e,p=i,c=n):8===f&&(u=[t,e],c=[a,o],d=[i-t,n-e],p=[s-a,r-o]):(l=new O,h=new O),this._segment1=l||new O(u,null,d),this._segment2=h||new O(c,p,null)},_serialize:function(t,e){return r.serialize(this.hasHandles()?[this.getPoint1(),this.getHandle1(),this.getHandle2(),this.getPoint2()]:[this.getPoint1(),this.getPoint2()],t,!0,e)},_changed:function(){this._length=this._bounds=i},clone:function(){return new M(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 M.classify(this.getValues())},remove:function(){var t=!1;if(this._path){var e=this._segment2,i=e._handleOut;(t=e.remove())&&this._segment1._handleOut.set(i)}return t},getPoint1:function(){return this._segment1._point},setPoint1:function(){this._segment1._point.set(f.read(arguments))},getPoint2:function(){return this._segment2._point},setPoint2:function(){this._segment2._point.set(f.read(arguments))},getHandle1:function(){return this._segment1._handleOut},setHandle1:function(){this._segment1._handleOut.set(f.read(arguments))},getHandle2:function(){return this._segment2._handleIn},setHandle2:function(){this._segment2._handleIn.set(f.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 M.getValues(this._segment1,this._segment2,t)},getPoints:function(){for(var t=this.getValues(),e=[],i=0;i<8;i+=2)e.push(new f(t[i],t[i+1]));return e}},{getLength:function(){return null==this._length&&(this._length=M.getLength(this.getValues(),0,1)),this._length},getArea:function(){return M.getArea(this.getValues())},getLine:function(){return new x(this._segment1._point,this._segment2._point)},getPart:function(t,e){return new M(M.getPart(this.getValues(),t,e))},getPartLength:function(t,e){return M.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 i=null;if(t>=1e-8&&t<=.99999999){var n=M.subdivide(this.getValues(),t),s=n[0],r=n[1],a=e||this.hasHandles(),o=this._segment1,l=this._segment2,h=this._path;a&&(o._handleOut._set(s[2]-s[0],s[3]-s[1]),l._handleIn._set(r[4]-r[6],r[5]-r[7]));var u=s[6],c=s[7],d=new O(new f(u,c),a&&new f(s[4]-u,s[5]-c),a&&new f(r[2]-u,r[3]-c));h?(h.insert(o._index+1,d),i=this.getNext()):(this._segment2=d,this._changed(),i=new M(d,l))}return i},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===i?.5:e?t:this.getTimeAt(t))},split:function(t,e){return this.splitAtTime(t===i?.5:e?t:this.getTimeAt(t))},reversed:function(){return new M(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,i,n){var s=t._point,r=t._handleOut,a=e._handleIn,o=e._point,l=s.x,h=s.y,u=o.x,c=o.y,d=n?[l,h,l,h,u,c,u,c]:[l,h,l+r._x,h+r._y,u+a._x,c+a._y,u,c];return i&&i._transformCoordinates(d,d,4),d},subdivide:function(t,e){var n=t[0],s=t[1],r=t[2],a=t[3],o=t[4],l=t[5],h=t[6],u=t[7];e===i&&(e=.5);var c=1-e,d=c*n+e*r,p=c*s+e*a,f=c*r+e*o,g=c*a+e*l,m=c*o+e*h,_=c*l+e*u,v=c*d+e*f,y=c*p+e*g,b=c*f+e*m,x=c*g+e*_,w=c*v+e*b,k=c*y+e*x;return[[n,s,d,p,v,y,w,k],[w,k,b,x,m,_,h,u]]},getMonoCurves:function(t,e){var i=[],n=e?0:1,s=t[n+0],r=t[n+2],a=t[n+4],o=t[n+6];if(s>=r==r>=a&&r>=a==a>=o||M.isStraight(t))i.push(t);else{var l=[],h=d.solveQuadratic(3*(r-a)-s+o,2*(s+a)-4*r,r-s,l,1e-8,.99999999);if(h){l.sort();var u=l[0],c=M.subdivide(t,u);i.push(c[0]),h>1&&(u=(l[1]-u)/(1-u),c=M.subdivide(c[1],u),i.push(c[0])),i.push(c[1])}else i.push(t)}return i},solveCubic:function(t,e,i,n,s,r){var a=t[e],o=t[e+2],l=t[e+4],h=t[e+6],u=0;if(!(ai&&h>i&&o>i&&l>i)){var c=3*(o-a),p=3*(l-o)-c;u=d.solveCubic(h-a-c-p,p,c,a-i,n,s,r)}return u},getTimeOf:function(t,e){var i=new f(t[0],t[1]),n=new f(t[6],t[7]);if(null===(e.isClose(i,1e-12)?0:e.isClose(n,1e-12)?1:null))for(var s=[e.x,e.y],r=[],a=0;a<2;a++)for(var o=M.solveCubic(t,a,s[a],r,0,1),l=0;l.999999999999?1:M.getTimeOf(t,new f(i+h*a,n+h*o))}var u=1/0,c=0;function d(i){if(i>=0&&i<=1){var n=e.getDistance(M.getPoint(t,i),!0);if(n1e-8;)d(c-g)||d(c+g)||(g/=2);return c},getPart:function(t,e,i){var n=e>i;if(n){var s=e;e=i,i=s}return e>0&&(t=M.subdivide(t,e)[1]),i<1&&(t=M.subdivide(t,(i-e)/(1-e))[0]),n?[t[6],t[7],t[4],t[5],t[2],t[3],t[0],t[1]]:t},isFlatEnough:function(t,e){var i=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],h=t[7],u=3*s-2*i-l,c=3*r-2*n-h,d=3*a-2*l-i,p=3*o-2*h-n;return Math.max(u*u,d*d)+Math.max(c*c,p*p)<=16*e*e},getArea:function(t){var e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],a=t[5],o=t[6],l=t[7];return 3*((l-i)*(n+r)-(o-e)*(s+a)+s*(e-r)-n*(i-a)+l*(r+e/3)-o*(a+i/3))/20},getBounds:function(t){for(var e=t.slice(0,2),i=e.slice(),n=[0,0],s=0;s<2;s++)M._addBounds(t[s],t[s+2],t[s+4],t[s+6],s,0,e,i,n);return new v(e[0],e[1],i[0]-e[0],i[1]-e[1])},_addBounds:function(t,e,i,n,s,r,a,o,l){function h(t,e){var i=t-e,n=t+e;io[s]&&(o[s]=n)}r/=2;var u=a[s]+r,c=o[s]-r;if(tc||e>c||i>c||n>c){if(er.getDistance(t.add(e))&&1e-7>r.getDistance(n.add(i))){var a=s.dot(s),o=s.dot(e)/a,l=s.dot(i)/a;return o>=0&&o<=1&&l<=0&&l>=-1}}return!1},isLinear:function(t,e,i,n){var s=n.subtract(t).divide(3);return e.equals(s)&&i.negate().equals(s)}},function(t,e){this[e]=function(e){var i=this._segment1,n=this._segment2;return t(i._point,i._handleOut,n._handleIn,n._point,e)},this.statics[e]=function(e,i){var n=e[0],s=e[1],r=e[6],a=e[7];return t(new f(n,s),new f(e[2]-n,e[3]-s),new f(e[4]-r,e[5]-a),new f(r,a),i)}},{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()&&1e-8>Math.abs(this.getTangentAtTime(.5).y)},isVertical:function(){return this.isStraight()&&1e-8>Math.abs(this.getTangentAtTime(.5).x)}}),{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 L(this,t):null},getTimeAt:function(t,e){return M.getTimeAt(this.getValues(),t,e)},getParameterAt:"#getTimeAt",getTimesWithTangent:function(){var t=f.read(arguments);return t.isZero()?[]:M.getTimesWithTangent(this.getValues(),t)},getOffsetAtTime:function(t){return this.getPartLength(0,t)},getLocationOf:function(){return this.getLocationAtTime(this.getTimeOf(f.read(arguments)))},getOffsetOf:function(){var t=this.getLocationOf.apply(this,arguments);return t?t.getOffset():null},getTimeOf:function(){return M.getTimeOf(this.getValues(),f.read(arguments))},getParameterOf:"#getTimeOf",getNearestLocation:function(){var t=f.read(arguments),e=this.getValues(),i=M.getNearestTime(e,t),n=M.getPoint(e,i);return new L(this,i,n,null,t.getDistance(n))},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 r.each(t,function(t){this[t+"At"]=function(e,i){var n=this.getValues();return M[t](n,i?e:M.getTimeAt(n,e))},this[t+"AtTime"]=function(e){return M[t](this.getValues(),e)}},{statics:{_evaluateMethods:t}})},new function(){function t(t){var e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],a=t[5],o=t[6],l=t[7],h=9*(n-r)+3*(o-e),u=6*(e+r)-12*n,c=3*(n-e),d=9*(s-a)+3*(l-i),p=6*(i+a)-12*s,f=3*(s-i);return function(t){var e=(h*t+u)*t+c,i=(d*t+p)*t+f;return Math.sqrt(e*e+i*i)}}function e(t,e){return Math.max(2,Math.min(16,Math.ceil(32*Math.abs(e-t))))}function n(t,e,i,n){if(null==e||e<0||e>1)return null;var s=t[0],r=t[1],a=t[2],o=t[3],l=t[4],h=t[5],u=t[6],c=t[7],p=d.isZero;p(a-s)&&p(o-r)&&(a=s,o=r),p(l-u)&&p(h-c)&&(l=u,h=c);var g,m,_=3*(a-s),v=3*(l-a)-_,y=u-s-_-v,b=3*(o-r),x=3*(h-o)-b,w=c-r-b-x;if(0===i)g=0===e?s:1===e?u:((y*e+v)*e+_)*e+s,m=0===e?r:1===e?c:((w*e+x)*e+b)*e+r;else{if(e<1e-8?(g=_,m=b):e>.99999999?(g=3*(u-l),m=3*(c-h)):(g=(3*y*e+2*v)*e+_,m=(3*w*e+2*x)*e+b),n){0===g&&0===m&&(e<1e-8||e>.99999999)&&(g=l-a,m=h-o);var k=Math.sqrt(g*g+m*m);k&&(g/=k,m/=k)}if(3===i){var l=6*y*e+2*v,h=6*w*e+2*x,S=Math.pow(g*g+m*m,1.5);g=0!==S?(g*h-m*l)/S:0,m=0}}return 2===i?new f(m,-g):new f(g,m)}return{statics:{classify:function(t){var e=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],h=t[7],u=s*(n-h)+r*(l-e)+e*h-n*l,c=3*(a*(r-n)+o*(e-s)+s*n-r*e),p=c-u,f=p-u+(e*(h-o)+n*(a-l)+l*o-h*a),g=Math.sqrt(f*f+p*p+c*c),m=0!==g?1/g:0,_=d.isZero,v="serpentine";function y(t,e,n){var s=e!==i,r=s&&e>0&&e<1,a=s&&n>0&&n<1;return!s||(r||a)&&("loop"!==t||r&&a)||(t="arch",r=a=!1),{type:t,roots:r||a?r&&a?e0?Math.sqrt(b/3):Math.sqrt(-b),w=2*f;return y(b>0?v:"loop",(p+x)/w,(p-x)/w)},getLength:function(n,s,r,a){if(s===i&&(s=0),r===i&&(r=1),M.isStraight(n)){var o=n;r<1&&(o=M.subdivide(o,r)[0],s/=r),s>0&&(o=M.subdivide(o,s)[1]);var l=o[6]-o[0],h=o[7]-o[1];return Math.sqrt(l*l+h*h)}return d.integrate(a||t(n),s,r,e(s,r))},getTimeAt:function(n,s,r){if(r===i&&(r=s<0?1:0),0===s)return r;var a=Math.abs,o=s>0,l=o?r:0,h=o?1:r,u=t(n),c=M.getLength(n,l,h,u),p=a(s)-c;if(1e-12>a(p))return o?h:l;if(p>1e-12)return null;var f=s/c,g=0;return d.findRoot(function(t){return g+=d.integrate(u,r,t,e(r,t)),r=t,g-s},u,r+f,l,h,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],i=t[1],n=t[2],s=t[3],r=t[4],a=t[5],o=t[6],l=t[7],h=-e+3*n-3*r+o,u=3*e-6*n+3*r,c=-3*e+3*n,p=-i+3*s-3*a+l,f=3*i-6*s+3*a,g=-3*i+3*s,m=[];return d.solveCubic(9*(h*h+p*p),9*(h*u+f*p),2*(u*u+f*f)+3*(c*h+g*p),c*u+f*g,m,1e-8,.99999999),m.sort()}}}},new function(){function t(t,e,i,n,s,r,a){var o=!a&&i.getPrevious()===s,l=!a&&i!==s&&i.getNext()===s;if(null!==n&&n>=(o?1e-8:0)&&n<=(l?.99999999:1)&&null!==r&&r>=(l?1e-8:0)&&r<=(o?.99999999:1)){var h=new L(i,n,null,a),u=new L(s,r,null,a);h._intersection=u,u._intersection=h,(!e||e(h))&&L.insert(t,h,!0)}}function e(t,e,n,s){return t[0][1]s?i(e,!1,s):t[0][0]}function i(t,e,i){for(var n=t[0][0],s=t[0][1],r=1,a=t.length;r=i:l<=i)return l===i?o:n+(i-s)*(o-n)/(l-s);n=o,s=l}return null}function n(t,e,i,n,s){var r=d.isZero;if(r(n)&&r(s)){var a=M.getTimeOf(t,new f(e,i));return null===a?[]:[a]}for(var o=Math.atan2(-s,n),l=Math.sin(o),h=Math.cos(o),u=[],c=[],p=0;p<8;p+=2){var g=t[p]-e,m=t[p+1]-i;u.push(g*h-m*l,g*l+m*h)}return M.solveCubic(u,1,0,c,0,1),c}function s(i,s,r,o,l,h){var u=Math.min,c=Math.max;if(c(i[0],i[2],i[4],i[6])+1e-12>u(s[0],s[2],s[4],s[6])&&u(i[0],i[2],i[4],i[6])-1e-12u(s[1],s[3],s[5],s[7])&&u(i[1],i[3],i[5],i[7])-1e-12=4096||++u>=40)return c;var m,_,v=s[0],y=s[1],b=s[6],w=s[7],k=x.getSignedDistance,S=k(v,y,b,w,s[2],s[3]),C=k(v,y,b,w,s[4],s[5]),I=S*C>0?3/4:4/9,T=I*Math.min(0,S,C),E=I*Math.max(0,S,C),A=k(v,y,b,w,n[0],n[1]),P=k(v,y,b,w,n[2],n[3]),O=k(v,y,b,w,n[4],n[5]),N=k(v,y,b,w,n[6],n[7]),L=function(t,e,i,n){var s,r=[0,t],a=[1/3,e],o=[2/3,i],l=[1,n],h=e-(2*t+n)/3,u=i-(t+2*n)/3;if(h*u<0)s=[[r,a,l],[r,o,l]];else{var c=h/u;s=[c>=2?[r,a,l]:c<=.5?[r,o,l]:[r,a,o,l],[r,l]]}return 0>(h||u)?s.reverse():s}(A,P,O,N),z=L[0],R=L[1];if(0===S&&0===C&&0===A&&0===P&&0===O&&0===N||null==(m=e(z,R,T,E))||null==(_=e(z.reverse(),R.reverse(),T,E)))return c;var B=d+(p-d)*m,D=d+(p-d)*_;if(1e-9>Math.max(g-f,D-B)){var V=(B+D)/2,F=(f+g)/2;t(o,l,h?a:r,h?F:V,h?r:a,h?V:F)}else{n=M.getPart(n,m,_);var j=g-f;if(_-m>.8){if(D-B>j){var U=M.subdivide(n,.5),V=(B+D)/2;c=i(s,U[0],a,r,o,l,!h,u,c,f,g,B,V),c=i(s,U[1],a,r,o,l,!h,u,c,f,g,V,D)}else{var U=M.subdivide(s,.5),F=(f+g)/2;c=i(U[0],n,a,r,o,l,!h,u,c,f,F,B,D),c=i(U[1],n,a,r,o,l,!h,u,c,F,g,B,D)}}else c=0===j||j>=1e-9?i(s,n,a,r,o,l,!h,u,c,f,g,B,D):i(n,s,r,a,o,l,h,u,c,B,D,f,g)}return c})(y?s:i,y?i:s,y?o:r,y?r:o,l,h,y,0,0,0,1,0,1),!v||l.length===b)for(var p=0;p<4;p++){var w=p>>1,k=1&p,S=6*w,C=6*k,I=new f(i[S],i[S+1]),T=new f(s[C],s[C+1]);I.isClose(T,1e-12)&&t(l,h,r,w,o,k)}}}return l}function r(e,i,n,s){var r=M.classify(e);if("loop"===r.type){var a=r.roots;t(n,s,i,a[0],i,a[1])}return n}function a(t,e){function i(t){var e=t[6]-t[0],i=t[7]-t[1];return e*e+i*i}var n=Math.abs,s=x.getDistance,r=M.isStraight(t),a=M.isStraight(e),o=r&&a,l=i(t)s(c,d,p,g,u[0],u[1],!0)&&1e-7>s(c,d,p,g,u[6],u[7],!0))!o&&1e-7>s(c,d,p,g,h[2],h[3],!0)&&1e-7>s(c,d,p,g,h[4],h[5],!0)&&1e-7>s(c,d,p,g,u[2],u[3],!0)&&1e-7>s(c,d,p,g,u[4],u[5],!0)&&(r=a=o=!0);else if(o)return null;if(r^a)return null;for(var m=[t,e],_=[],v=0;v<4&&_.length<2;v++){var y=1&v,b=1^y,w=v>>1,k=M.getTimeOf(m[y],new f(m[b][w?6:0],m[b][w?7:1]));if(null!=k){var S=y?[w,k]:[k,w];(!_.length||n(S[0]-_[0][0])>1e-8&&n(S[1]-_[0][1])>1e-8)&&_.push(S)}if(v>2&&!_.length)break}if(2!==_.length)_=null;else if(!o){var C=M.getPart(t,_[0][0],_[1][0]),I=M.getPart(e,_[0][1],_[1][1]);(n(I[2]-C[2])>1e-7||n(I[3]-C[3])>1e-7||n(I[4]-C[4])>1e-7||n(I[5]-C[5])>1e-7)&&(_=null)}return _}return{getIntersections:function(t){var e=this.getValues(),i=t&&t!==this&&t.getValues();return i?s(e,i,this,t,[]):r(e,this,[])},statics:{getOverlaps:a,getIntersections:function(t,e,i,n,a,o){var l=!e;l&&(e=t);for(var u=t.length,c=e.length,d=Array(u),p=l?d:Array(c),f=[],g=0;g_){var k=e[w];s(y,p[w],v,k,f,i)}}}return f},getCurveLineIntersections:n,getTimesWithTangent:function(t,e){var i=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],h=t[7],u=e.normalize(),c=u.x,p=u.y,f=3*l-9*a+9*s-3*i,g=3*h-9*o+9*r-3*n,m=6*a-12*s+6*i,_=6*o-12*r+6*n,v=3*s-3*i,y=3*r-3*n,b=2*f*p-2*g*c,x=[];if(Math.abs(b)=0&&w<=1&&x.push(w)}}else{var k=(m*m-4*f*v)*p*p+(-2*m*_+4*g*v+4*f*y)*c*p+(_*_-4*g*y)*c*c,S=m*p-_*c;if(k>=0&&0!=b){var C=Math.sqrt(k),I=-(S+C)/b,T=(-S+C)/b;I>=0&&I<=1&&x.push(I),T>=0&&T<=1&&x.push(T)}}return x}}}}),L=r.extend({_class:"CurveLocation",initialize:function(t,e,i,n,s){if(e>=.99999999){var r=t.getNext();r&&(e=0,t=r)}this._setCurve(t),this._time=e,this._point=i||t.getPointAtTime(e),this._overlap=n,this._distance=s,this._intersection=this._next=this._previous=null},_setPath:function(t){this._path=t,this._version=t?t._version:0},_setCurve:function(t){this._setPath(t._path),this._curve=t,this._segment=null,this._segment1=t._segment1,this._segment2=t._segment2},_setSegment:function(t){var e=t.getCurve();e?this._setCurve(e):(this._setPath(t._path),this._segment1=t,this._segment2=null),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(),i=this.getTime();0===i?t=e._segment1:1===i?t=e._segment2:null!=i&&(t=e.getPartLength(0,i)a(r.getLength()-o))&&(!l&&!h||l&&h&&l.equals(h,!0))}}return i},toString:function(){var t=[],e=this.getPoint(),i=c.instance;e&&t.push("point: "+e);var n=this.getIndex();null!=n&&t.push("index: "+n);var s=this.getTime();return null!=s&&t.push("time: "+i.number(s)),null!=this._distance&&t.push("distance: "+i.number(this._distance)),"{ "+t.join(", ")+" }"},isTouching:function(){var t=this._intersection;if(t&&this.getTangent().isCollinear(t.getTangent())){var e=this.getCurve(),i=t.getCurve();return!(e.isStraight()&&i.isStraight()&&e.getLine().intersect(i.getLine()))}return!1},isCrossing:function(){var t=this._intersection;if(!t)return!1;var e=this.getTime(),i=t.getTime(),n=e>=1e-8&&e<=.99999999,s=i>=1e-8&&i<=.99999999;if(n&&s)return!this.isTouching();var r=this.getCurve(),a=r&&e<1e-8?r.getPrevious():r,o=t.getCurve(),l=o&&i<1e-8?o.getPrevious():o;if(e>.99999999&&(r=r.getNext()),i>.99999999&&(o=o.getNext()),!a||!r||!l||!o)return!1;var h=[];function u(t,e){var i=t.getValues(),n=M.classify(i).roots||M.getPeaks(i),s=n.length,r=M.getLength(i,e&&s?n[s-1]:0,!e&&s?n[0]:1);h.push(s?r:r/32)}function c(t,e,i){return ee&&te||t=-1&&r<=n;r+=s){var a=t[(r%n+n)%n];if(!e.getPoint().isClose(a.getPoint(),1e-7))break;if(e.equals(a))return a}return null}for(;s<=r;){var o,l=s+r>>>1,h=t[l];if(i&&(o=e.equals(h)?h:a(l,-1)||a(l,1)))return e._overlap&&(o._overlap=o._intersection._overlap=!0),o;var u=e.getPath(),c=h.getPath();(u!==c?u._id-c._id:e.getIndex()+e.getTime()-(h.getIndex()+h.getTime()))<0?r=l-1:s=l+1}return t.splice(s,0,e),e}return{statics:{insert:t,expand:function(e){for(var i=e.slice(),n=e.length-1;n>=0;n--)t(i,e[n]._intersection,!1);return i}}}}),z=k.extend({_class:"PathItem",_selectBounds:!1,_canScaleStroke:!0,beans:!0,initialize:function(){},statics:{create:function(t){if(r.isPlainObject(t)?(i=t.segments,e=t.pathData):Array.isArray(t)?i=t:"string"==typeof t&&(e=t),i){var e,i,n,s=i[0];n=s&&Array.isArray(s[0])}else e&&(n=(e.match(/m/gi)||[]).length>1||/z\s*\S+/i.test(e));return new(n?B:R)(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,i,n,s=t&&t.match(/[mlhvcsqtaz][^mlhvcsqtaz]*/ig),r=!1,a=new f,o=new f;function l(t,i){var n=+e[t];return r&&(n+=a[i]),n}function h(t){return new f(l(t,"x"),l(t+1,"y"))}this.clear();for(var u=0,c=s&&s.length;uh&&this[n?"removeSegments":"removeChildren"](h,l);for(var c=0;c=0&&e;u--){var c=i[u];e=!1;var p=l[u];if(p)for(var f=p.length-1;f>=0&&!e;f--)c.compare(n[p[f]])&&(!a[p[f]]&&(a[p[f]]=!0,o++),e=!0)}e=e&&o===r}return e}}),R=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===i&&(t.x!==i||t.point!==i)?e:null;n&&n.length>0?this.setSegments(n):(this._curves=i,this._segmentSelection=0,n||"string"!=typeof t||(this.setPathData(t),t=null)),this._initialize(!n&&t)},_equals:function(t){return this._closed===t._closed&&r.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=i,32&e)this._version++;else if(this._curves)for(var n=0,s=this._curves.length;n0&&(_(u[0],!0),m.push("z")),m.join("")},isEmpty:function(){return!this._segments.length},_transformContent:function(t){for(var e=this._segments,i=Array(6),n=0,s=e.length;n0&&e+s-1===u?e-1:e,d=c,p=Math.min(c+s,u);t._curves&&(n.splice.apply(n,[c,0].concat(t._curves)),d+=t._curves.length);for(var o=d;o0?t-1:t},add:function(t){var e=arguments;return e.length>1&&"number"!=typeof t?this._add(O.readList(e)):this._add([O.read(e)])[0]},insert:function(t,e){var i=arguments;return i.length>2&&"number"!=typeof e?this._add(O.readList(i,1),t):this._add([O.read(i,1)],t)[0]},addSegment:function(){return this._add([O.read(arguments)])[0]},insertSegment:function(t){return this._add([O.read(arguments,1)],t)[0]},addSegments:function(t){return this._add(O.readList(t))},insertSegments:function(t,e){return this._add(O.readList(e),t)},removeSegment:function(t){return this.removeSegments(t,t+1)[0]||null},removeSegments:function(t,e,i){t=t||0,e=r.pick(e,this._segments.length);var n=this._segments,s=this._curves,a=n.length,o=n.splice(t,e-t),l=o.length;if(!l)return o;for(var h=0;h0&&e===a+(this._closed?1:0)?t-1:t,s=s.splice(d,l),h=s.length-1;h>=0;h--)s[h]._path=null;i&&(o._curves=s.slice(1)),this._adjustCurves(d,d)}return this._changed(41),o},clear:"#removeSegments",hasHandles:function(){for(var t=this._segments,e=0,i=t.length;e0&&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,i=e.length,n=t?7:0;this._segmentSelection=n*i;for(var s=0;s0&&this.setSelected(!0)},divideAt:function(t){var e,i=this.getLocationAt(t);return i&&(e=i.getCurve().divideAt(i.getCurveOffset()))?e._segment1:null},splitAt:function(t){var e=this.getLocationAt(t),i=e&&e.index,n=e&&e.time;n>.99999999&&(i++,n=0);var s=this.getCurves();if(i>=0&&i=1e-8&&s[i++].divideAtTime(n);var r,a=this.removeSegments(i,this._segments.length,!0);return this._closed?(this.setClosed(!1),r=this):((r=new R(k.NO_INSERT)).insertAbove(this),r.copyAttributes(this)),r._add(a,0),this.addSegment(a[0]),r}return null},split:function(t,e){var n,s=e===i?t:(n=this.getCurves()[t])&&n.getLocationAtTime(e);return null!=s?this.splitAt(s):null},join:function(t,e){var i=e||0;if(t&&t!==this){var n=t._segments,s=this.getLastSegment(),r=t.getLastSegment();if(!r)return this;s&&s._point.isClose(r._point,i)&&t.reverse();var a=t.getFirstSegment();if(s&&s._point.isClose(a._point,i))s.setHandleOut(a._handleOut),this._add(n.slice(1));else{var o=this.getFirstSegment();o&&o._point.isClose(a._point,i)&&t.reverse(),r=t.getLastSegment(),o&&o._point.isClose(r._point,i)?(o.setHandleIn(r._handleIn),this._add(n.slice(0,n.length-1),0)):this._add(n.slice())}t._closed&&this._add([n[0]]),t.remove()}var l=this.getFirstSegment(),h=this.getLastSegment();return l!==h&&l._point.isClose(h._point,i)&&(l.setHandleIn(h._handleIn),h.remove(),this.setClosed(!0)),this},reduce:function(t){for(var e=this.getCurves(),i=t&&t.simplify,n=i?1e-7:0,s=e.length-1;s>=0;s--){var r=e[s];!r.hasHandles()&&(!r.hasLength(n)||i&&r.isCollinear(r.getNext()))&&r.remove()}return this},reverse:function(){this._segments.reverse();for(var t=0,e=this._segments.length;t0&&n.push(new O(e[i-1].curve.slice(6))),this.setSegments(n)},simplify:function(t){var e=new V(this).fit(t||2.5);return e&&this.setSegments(e),!!e},smooth:function(t){var e=this,n=t||{},s=n.type||"asymmetric",r=this._segments,a=r.length,o=this._closed;function l(t,i){var n=t&&t.index;if(null!=n){var s=t.path;if(s&&s!==e)throw Error(t._class+" "+n+" of "+s+" is not part of "+e);i&&t instanceof M&&n++}else n="number"==typeof t?t:i;return Math.min(n<0&&o?n%a:n<0?n+a:n,a-1)}var h=o&&n.from===i&&n.to===i,u=l(n.from,0),c=l(n.to,a-1);if(u>c){if(o)u-=a;else{var d=u;u=c,c=d}}if(/^(?:asymmetric|continuous)$/.test(s)){var p="asymmetric"===s,f=Math.min,g=c-u+1,m=g-1,_=h?f(g,4):1,v=_,y=_,b=[];if(o||(v=f(1,u),y=f(1,a-c-1)),(m+=v+y)<=1)return;for(var x=0,w=u-v;x<=m;x++,w++)b[x]=r[(w<0?w+a:w)%a]._point;for(var k=b[0]._x+2*b[1]._x,S=b[0]._y+2*b[1]._y,C=2,I=m-1,T=[k],E=[S],A=[2],P=[],O=[],x=1;x=0;x--)P[x]=(T[x]-P[x+1])/A[x],O[x]=(E[x]-O[x+1])/A[x];P[m]=(3*b[m]._x-P[I])/2,O[m]=(3*b[m]._y-O[I])/2;for(var x=v,V=m-y,w=u;x<=V;x++,w++){var F=r[w<0?w+a:w],j=F._point,U=P[x]-j._x,q=O[x]-j._y;(h||xv)&&F.setHandleIn(-U,-q)}}else for(var x=u;x<=c;x++)r[x<0?x+a:x].smooth(n,!h&&x===u,!h&&x===c)},toShape:function(t){if(!this._closed)return null;var e,n,s,r,a,o,l,h=this._segments;function u(t,e){var i=h[t],n=i.getNext(),s=h[e],r=s.getNext();return i._handleOut.isZero()&&n._handleIn.isZero()&&s._handleOut.isZero()&&r._handleIn.isZero()&&n._point.subtract(i._point).isCollinear(r._point.subtract(s._point))}function c(t){var e=h[t],i=e.getNext(),n=e._handleOut,s=i._handleIn;if(n.isOrthogonal(s)){var r=e._point,a=i._point,o=new x(r,n,!0).intersect(new x(a,s,!0),!0);return o&&d.isZero(n.getLength()/o.subtract(r).getLength()-.5522847498307936)&&d.isZero(s.getLength()/o.subtract(a).getLength()-.5522847498307936)}return!1}function p(t,e){return h[t]._point.getDistance(h[e]._point)}if(!this.hasHandles()&&4===h.length&&u(0,2)&&u(1,3)&&(n=(e=h[1]).getPrevious(),s=e.getNext(),n._handleOut.isZero()&&e._handleIn.isZero()&&e._handleOut.isZero()&&s._handleIn.isZero()&&e._point.subtract(n._point).isOrthogonal(s._point.subtract(e._point)))?(r=I.Rectangle,a=new m(p(0,3),p(0,1)),l=h[1]._point.add(h[2]._point).divide(2)):8===h.length&&c(0)&&c(2)&&c(4)&&c(6)&&u(1,5)&&u(3,7)?(r=I.Rectangle,o=(a=new m(p(1,6),p(0,3))).subtract(new m(p(0,7),p(1,2))).divide(2),l=h[3]._point.add(h[4]._point).divide(2)):4===h.length&&c(0)&&c(1)&&c(2)&&c(3)&&(d.isZero(p(0,2)-p(1,3))?(r=I.Circle,o=p(0,2)/2):(r=I.Ellipse,o=new m(p(2,0)/2,p(3,1)/2)),l=h[1]._point),r){var f=this.getPosition(!0),g=new r({center:f,size:a,radius:o,insert:!1});return g.copyAttributes(this,!0),g._matrix.prepend(this._matrix),g.rotate(l.subtract(f).getAngle()+90),(t===i||t)&&g.insertAbove(this),g}return null},toPath:"#clone",compare:function t(e){if(!e||e instanceof B)return t.base.call(this,e);var i=this.getCurves(),n=e.getCurves(),s=i.length,r=n.length;if(!s||!r)return s==r;for(var a,o,l=i[0].getValues(),h=[],u=0,c=0,d=0;d0?r-1:d,o=f[0][1];break}}for(var g,m=Math.abs,p=h[a];l&&p;){var f=M.getOverlaps(l,p);if(f&&1e-8>m(f[0][0]-c)){1===(c=f[1][0])&&(l=++um(_-o)){if(g||(g=[a,_]),1===(o=f[1][1])&&(++a>=r&&(a=0),p=h[a]||n[a].getValues(),o=0),!l)return g[0]===a&&g[1]===o;continue}}break}return!1},_hitTestSelf:function(t,e,i,n){var s,r,a,o,l,h,u=this,c=this.getStyle(),d=this._segments,p=d.length,f=this._closed,g=e._tolerancePadding,m=g,_=e.stroke&&c.hasStroke(),v=e.fill&&c.hasFill(),y=e.curves,b=_?c.getStrokeWidth()/2:v&&e.tolerance>0||y?0:null;function x(e,i){return t.subtract(e).divide(i).length<=1}function w(t,i,n){if(!e.selected||i.isSelected()){var s=t._point;if(i!==s&&(i=i.add(s)),x(i,m))return new P(n,u,{segment:t,point:i})}}function k(t,i){return(i||e.segments)&&w(t,t._point,"segment")||!i&&e.handles&&(w(t,t._handleIn,"handle-in")||w(t,t._handleOut,"handle-out"))}function S(t){o.add(t)}function C(e){var i,l=f||e._index>0&&e._index0?(s=c.getStrokeJoin(),r=c.getStrokeCap(),a=c.getMiterLimit(),m=m.add(R._getStrokePadding(b,n))):s=r="round"),!e.ends||e.segments||f){if(e.segments||e.handles){for(var I=0;I1?C(l.getSegment())||(l=null):x(l.getPoint(),m)||(l=null)}if(!l&&"miter"===s&&p>1)for(var I=0;It)return a.getLocationAt(t-r)}if(e.length>0&&t<=this.getLength())return new L(e[e.length-1],1)}else if(t&&t.getPath&&t.getPath()===this)return t;return null},getOffsetsWithTangent:function(){var t=f.read(arguments);if(t.isZero())return[];for(var e=[],i=0,n=this.getCurves(),s=0,r=n.length;se.indexOf(u)&&e.push(u)}i+=a.length}return e}}),new function(){function t(t,e,i){var n,s,r,a,o,l,h,u,c=e._segments,d=c.length,p=Array(6),f=!0;function g(e){if(i)e._transformCoordinates(i,p),n=p[0],s=p[1];else{var c=e._point;n=c._x,s=c._y}if(f)t.moveTo(n,s),f=!1;else{if(i)o=p[2],l=p[3];else{var d=e._handleIn;o=n+d._x,l=s+d._y}o===n&&l===s&&h===r&&u===a?t.lineTo(n,s):t.bezierCurveTo(h,u,o,l,n,s)}if(r=n,a=s,i)h=p[4],u=p[5];else{var d=e._handleOut;h=r+d._x,u=a+d._y}}for(var m=0;m0&&g(c[0])}return{_draw:function(e,i,n,s){var r=i.dontStart,a=i.dontFinish||i.clip,o=this.getStyle(),l=o.hasFill(),h=o.hasStroke(),u=o.getDashArray(),c=!tl.support.nativeDash&&h&&u&&u.length;function d(t){return u[(t%c+c)%c]}if(r||e.beginPath(),(l||h&&!c||a)&&(t(e,this,s),this._closed&&e.closePath()),!a&&(l||h)&&(this._setStyles(e,i,n),l&&(e.fill(o.getFillRule()),e.shadowColor="rgba(0,0,0,0)"),h)){if(c){r||e.beginPath();for(var p,f=new D(this,.25,32,!1,s),g=f.length,m=-o.getDashOffset(),_=0;m>0;)m-=d(_--)+d(_--);for(;m0||p>0)&&f.drawPart(e,Math.max(m,0),Math.max(p,0)),m=p+d(_++)}e.stroke()}},_drawSelected:function(e,i){e.beginPath(),t(e,this,i),e.stroke(),function(t,e,i,n){if(!(n<=0))for(var s,r,a=n/2,o=n-2,l=a-1,h=Array(6),u=0,c=e.length;u0&&!(1&p)){var f=t.fillStyle;t.fillStyle="#ffffff",t.fillRect(s-l,r-l,o,o),t.fillStyle=f}}function g(e){var i=h[e],n=h[e+1];(s!=i||r!=n)&&(t.beginPath(),t.moveTo(s,r),t.lineTo(i,n),t.stroke(),t.beginPath(),t.arc(i,n,a,0,2*Math.PI,!0),t.fill())}}(e,this._segments,i,tl.settings.handleSize)}}},new function(){function t(t){var e=t._segments;if(!e.length)throw 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 O(f.read(arguments))])},moveBy:function(){throw Error("moveBy() is unsupported on Path items.")},lineTo:function(){this._add([new O(f.read(arguments))])},cubicCurveTo:function(){var e=arguments,i=f.read(e),n=f.read(e),s=f.read(e),r=t(this);r.setHandleOut(i.subtract(r._point)),this._add([new O(s,n.subtract(s))])},quadraticCurveTo:function(){var e=arguments,i=f.read(e),n=f.read(e),s=t(this)._point;this.cubicCurveTo(i.add(s.subtract(i).multiply(1/3)),i.add(n.subtract(i).multiply(1/3)),n)},curveTo:function(){var e=arguments,i=f.read(e),n=f.read(e),s=r.pick(r.read(e),.5),a=1-s,o=t(this)._point,l=i.subtract(o.multiply(a*a)).subtract(n.multiply(s*s)).divide(2*s*a);if(l.isNaN())throw Error("Cannot put a curve through points with parameter = "+s);this.quadraticCurveTo(l,n)},arcTo:function(){var e,i,n,s,a,o=arguments,l=Math.abs,h=Math.sqrt,u=t(this),c=u._point,p=f.read(o),g=r.peek(o),_=r.pick(g,!0);if("boolean"==typeof _)var v=c.add(p).divide(2),e=v.add(v.subtract(c).rotate(_?-90:90));else if(2>=r.remain(o))e=p,p=f.read(o);else if(!c.equals(p)){var y=m.read(o),w=d.isZero;if(w(y.width)||w(y.height))return this.lineTo(p);var k=r.read(o),_=!!r.read(o),S=!!r.read(o),v=c.add(p).divide(2),C=c.subtract(v).rotate(-k),I=C.x,T=C.y,E=l(y.width),A=l(y.height),P=E*E,N=A*A,M=I*I,L=T*T,z=h(M/P+L/N);if(z>1&&(E*=z,A*=z,P=E*E,N=A*A),1e-12>l(z=(P*N-P*L-N*M)/(P*L+N*M))&&(z=0),z<0)throw Error("Cannot create an arc with the given arguments");i=new f(E*T/A,-A*I/E).multiply((S===_?-1:1)*h(z)).rotate(k).add(v),n=(s=(a=new b().translate(i).rotate(k).scale(E,A))._inverseTransform(c)).getDirectedAngle(a._inverseTransform(p)),!_&&n>0?n-=360:_&&n<0&&(n+=360)}if(e){var R=new x(c.add(e).divide(2),e.subtract(c).rotate(90),!0),B=new x(e.add(p).divide(2),p.subtract(e).rotate(90),!0),D=new x(c,p),V=D.getSide(e);if(!(i=R.intersect(B,!0))){if(!V)return this.lineTo(p);throw Error("Cannot create an arc with the given arguments")}n=(s=c.subtract(i)).getDirectedAngle(p.subtract(i));var F=D.getSide(i,!0);0===F?n=V*l(n):V===F&&(n+=n<0?360:-360)}if(n){for(var j=l(n),U=j>=360?4:Math.ceil((j-1e-5)/90),q=n/U,Z=q*Math.PI/360,H=4/3*Math.sin(Z)/(1+Math.cos(Z)),G=[],W=0;W<=U;W++){var C=p,$=null;if(W0){for(var k=1;k=180)&&(c=c.negate(),d=d.negate()),o&&a(u),a(u.add(c)),"miter"===e){var g=new x(u.add(c),new f(-c.y,c.x),!0).intersect(new x(u.add(d),new f(-d.y,d.x),!0),!0);g&&u.getDistance(g)<=n*i&&a(g)}a(u.add(d))},_addSquareCap:function(t,e,i,n,s,r,a){var o=t._point.transform(n),l=t.getLocation(),h=l.getNormal().multiply(0===l.getTime()?i:-i).transform(s);"square"===e&&(a&&(r(o.subtract(h)),r(o.add(h))),o=o.add(h.rotate(-90))),r(o.add(h)),r(o.subtract(h))},getHandleBounds:function(t,e,i,n,s){var r,a,o=i.getStyle();if(s.stroke&&o.hasStroke()){var l=i._getStrokeMatrix(n,s),h=o.getStrokeWidth()/2,u=h;"miter"===o.getStrokeJoin()&&(u=h*o.getMiterLimit()),"square"===o.getStrokeCap()&&(u=Math.max(u,h*Math.SQRT2)),r=R._getStrokePadding(h,l),a=R._getStrokePadding(u,l)}for(var c=Array(6),d=1/0,p=-1/0,f=1/0,g=p,m=0,_=t.length;m<_;m++){t[m]._transformCoordinates(n,c);for(var y=0;y<6;y+=2){var b=y?r:a,x=b?b[0]:0,w=b?b[1]:0,k=c[y],S=c[y+1],C=k-x,I=k+x,T=S-w,E=S+w;Cp&&(p=I),Tg&&(g=E)}}return new v(d,f,p-d,g-f)}}});R.inject({statics:new function(){var t=[new O([-1,0],[0,.5522847498307936],[0,-.5522847498307936]),new O([0,-1],[-.5522847498307936,0],[.5522847498307936,0]),new O([1,0],[0,-.5522847498307936],[0,.5522847498307936]),new O([0,1],[.5522847498307936,0],[-.5522847498307936,0])];function e(t,e,i){var n=r.getNamed(i),s=new R(n&&(!0==n.insert?k.INSERT:!1==n.insert?k.NO_INSERT:null));return s._add(t),s._closed=e,s.set(n,k.INSERT)}function i(i,n,s){for(var r=[,,,,],a=0;a<4;a++){var o=t[a];r[a]=new O(o._point.multiply(n).add(i),o._handleIn.multiply(n),o._handleOut.multiply(n))}return e(r,!0,s)}return{Line:function(){var t=arguments;return e([new O(f.readNamed(t,"from")),new O(f.readNamed(t,"to"))],!1,t)},Circle:function(){var t=arguments;return i(f.readNamed(t,"center"),new m(r.readNamed(t,"radius")),t)},Rectangle:function(){var t,i=arguments,n=v.readNamed(i,"rectangle"),s=m.readNamed(i,"radius",0,{readNull:!0}),r=n.getBottomLeft(!0),a=n.getTopLeft(!0),o=n.getTopRight(!0),l=n.getBottomRight(!0);if(!s||s.isZero())t=[new O(r),new O(a),new O(o),new O(l)];else{var h=(s=m.min(s,n.getSize(!0).divide(2))).width,u=s.height,c=.5522847498307936*h,d=.5522847498307936*u;t=[new O(r.add(h,0),null,[-c,0]),new O(r.subtract(0,u),[0,d]),new O(a.add(0,u),null,[0,-d]),new O(a.add(h,0),[-c,0],null),new O(o.subtract(h,0),null,[c,0]),new O(o.add(0,u),[0,-d],null),new O(l.subtract(0,u),null,[0,d]),new O(l.subtract(h,0),[c,0])]}return e(t,!0,i)},RoundRectangle:"#Rectangle",Ellipse:function(){var t=arguments,e=I._readEllipse(t);return i(e.center,e.radius,t)},Oval:"#Ellipse",Arc:function(){var t=arguments,e=f.readNamed(t,"from"),i=f.readNamed(t,"through"),n=f.readNamed(t,"to"),s=r.getNamed(t),a=new R(s&&!1==s.insert&&k.NO_INSERT);return a.moveTo(e),a.arcTo(i,n),a.set(s)},RegularPolygon:function(){for(var t=arguments,i=f.readNamed(t,"center"),n=r.readNamed(t,"sides"),s=r.readNamed(t,"radius"),a=360/n,o=n%3==0,l=new f(0,o?-s:s),h=o?-1:.5,u=Array(n),c=0;c=0;a--){var o=n[a];n!==i||o instanceof R||(n=r.slice(n)),Array.isArray(o)?n[a]=new R({segments:o,insert:!1}):o instanceof B&&(n.splice.apply(n,[a,1].concat(o.removeChildren())),o.remove())}return t.base.call(this,e,n)},reduce:function t(e){for(var i=this._children,n=i.length-1;n>=0;n--){var s=i[n].reduce(e);s.isEmpty()&&s.remove()}if(!i.length){var s=new R(k.NO_INSERT);return s.copyAttributes(this),s.insertAbove(this),this.remove(),s}return t.base.call(this)},isClosed:function(){for(var t=this._children,e=0,i=t.length;e=0;f--){var g=r[f].split();g&&(p(g)&&g.getFirstSegment().setHandleIn(0,0),n.getLastSegment().setHandleOut(0,0))}return p(n),l(d,!1,t,e)}function f(t,e){for(var i=t;i;){if(i===e)return;i=i._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 g(t){for(var e=t.length-1;e>=0;e--)t[e].clearHandles()}function m(t,e,i){var s=t&&t.length;if(s){var a=r.each(t,function(t,e){this[t._id]={container:null,winding:t.isClockwise()?1:-1,index:e}},{}),o=t.slice().sort(function(t,e){return n(e.getArea())-n(t.getArea())}),l=o[0],u=h.findItemBoundsCollisions(o,null,d.GEOMETRIC_EPSILON);null==i&&(i=l.isClockwise());for(var c=0;c=0;v--)if(m[v]=0;c--){var d=i[c];d._path&&(h[u(d)]=!0)}for(var c=t.length-1;c>=0;c--){var p,m=t[c],_=m._time,v=_,y=e&&!e(m),d=m._curve;if(d&&(d!==s?(o=!d.hasHandles()||h&&h[u(d)],n=[],r=null,s=d):r>=1e-8&&(_/=r)),y){n&&n.push(m);continue}if(e&&a.unshift(m),r=v,_<1e-8)p=d._segment1;else if(_>.99999999)p=d._segment2;else{var b=d.divideAtTime(_,!0);o&&l.push(d,b),p=b._segment1;for(var x=n.length-1;x>=0;x--){var w=n[x];w._time=(w._time-_)/(1-_)}}m._setSegment(p);var k=p._intersection,S=m._intersection;if(k){f(k,S);for(var C=k;C;)f(C._intersection,k),C=C._next}else p._intersection=S}return i||g(l),a||t}function v(i,s,r,a,o){var l,h,u=Array.isArray(s)?s:s[r?"hor":"ver"],c=r?1:0,d=1^c,p=[i.x,i.y],f=p[c],g=p[d],m=f-1e-9,_=f+1e-9,y=0,b=0,x=0,w=0,k=!1,S=!1,C=1,I=[];function T(n){var h=n[d+0],u=n[d+2],p=n[d+4],y=n[d+6];if(g<=e(h,u,p,y)&&g>=t(h,u,p,y)){for(var b,S=n[c+0],T=n[c+2],E=n[c+4],A=n[c+6],P=m>e(S,T,E,A)||_e(h,u))){var p=n[c+0],y=n[c+2],b=n[c+4],S=n[c+6];if(h===u){(p<_&&S>m||S<_&&p>m)&&(k=!0);return}var T=g===h?0:g===u?1:m>e(p,y,b,S)||_0?I[0]:1,E=0===T?p:1===T?S:M.getPoint(n,T)[r?"y":"x"],A=h>u?1:-1,P=l[d]>l[d+6]?1:-1,O=l[c+6];return g!==h?(E_?w+=A:k=!0,E>f-1e-6&&E_&&(w+=A):p!=O&&(O<_&&E>_?(w+=A,k=!0):O>m&&Em&&E<_&&0===M.getTangent(n,T)[r?"x":"y"]&&v(i,s,!r,a,!0)}}(P[O]))return b}}for(var E=0,A=u.length;Ea.quality&&(a=I);break}c-=y}for(var g=o.length-1;g>=0;g--)o[g].segment._winding=a}function b(t,e){var i,n=[];function s(t){var i;return!!(t&&!t._visited&&(!e||e[(i=t._winding||{}).winding]&&!(e.unite&&2===i.winding&&i.windingL&&i.windingR)))}function r(t){if(t){for(var e=0,n=i.length;e=0;h--){var u=l[h],c=u._path,d=u._segment,p=d.getPrevious(),f=d.getNext();i(p,c)&&i(f,c)&&(d.remove(),p._handleOut._set(0,0),f._handleIn._set(0,0),p===d||p.getCurve().hasLength()||(f._handleIn.set(p._handleIn),p.remove()))}s&&(_(a,n&&function(t){var e=t.getCurve(),i=t.getSegment(),n=t._intersection,s=n._curve,r=n._segment;if(e&&s&&e._path&&s._path)return!0;i&&(i._intersection=null),r&&(r._intersection=null)},o),o&&g(o),e=b(r.each(e,function(t){r.push(this,t._segments)},[])));var m,v=e.length;return v>1&&t?(e!==t&&this.setChildren(e),m=this):1!==v||t||(e[0]!==this&&this.setSegments(e[0].removeSegments()),m=this),m||((m=new B(k.NO_INSERT)).addChildren(e),(m=m.reduce()).copyAttributes(this),this.replaceWith(m)),m},reorient:function(t,e){var n=this._children;return n&&n.length?this.setChildren(m(this.removeChildren(),function(e){return!!(t?e:1&e)},e)):e!==i&&this.setClockwise(e),this},getInteriorPoint:function(){var i=this.getBounds().getCenter(!0);if(!this.contains(i)){for(var n=this.getCurves(),s=i.y,r=[],a=[],o=0,l=n.length;o=t(u,c,d,p)&&s<=e(u,c,d,p))for(var f=M.getMonoCurves(h),g=0,m=f.length;g=v&&s<=y||s>=y&&s<=v)){var b=s===v?_[0]:s===y?_[6]:1===M.solveCubic(_,1,s,a,0,1)?M.getPoint(_,a[0]).x:(_[0]+_[6])/2;r.push(b)}}}r.length>1&&(r.sort(function(t,e){return t-e}),i.x=(r[0]+r[1])/2)}return i}}});var D=r.extend({_class:"PathFlattener",initialize:function(t,e,i,n,s){var r,a=[],o=[],l=0,h=1/(i||32),u=t._segments,c=u[0];function d(t,i){var r=M.getValues(t,i,s);a.push(r),function t(i,s,r,a){if(!(a-r>h)||n&&M.isStraight(i)||M.isFlatEnough(i,e||.25)){var u=i[6]-i[0],c=i[7]-i[1],d=Math.sqrt(u*u+c*c);d>0&&(l+=d,o.push({offset:l,curve:i,index:s,time:a}))}else{var p=M.subdivide(i,.5),f=(r+a)/2;t(p[0],s,r,f),t(p[1],s,f,a)}}(r,t._index,0,1)}for(var p=1,f=u.length;p=t){this.index=e;var a=i[e-1],o=a&&a.index===r.index?a.time:0,l=a?a.offset:0;return{index:r.index,time:o+(r.time-o)*(t-l)/(r.offset-l)}}}return{index:i[n-1].index,time:1}},drawPart:function(t,e,i){for(var n=this._get(e),s=this._get(i),r=n.index,a=s.index;r<=a;r++){var o=M.getPart(this.curves[r],r===n.index?n.time:0,r===s.index?s.time:1);r===n.index&&t.moveTo(o[0],o[1]),t.bezierCurveTo.apply(t,o.slice(2))}}},r.each(M._evaluateMethods,function(t){this[t+"At"]=function(e){var i=this._get(e);return M[t](this.curves[i.index],i.time)}},{})),V=r.extend({initialize:function(t){for(var e,i=this.points=[],n=t._segments,s=t._closed,r=0,a=n.length;r0&&(n=[new O(e[0])],i>1&&(this.fitCubic(n,t,0,i-1,e[1].subtract(e[0]),e[i-2].subtract(e[i-1])),this.closed&&(n.shift(),n.pop()))),n},fitCubic:function(t,e,i,n,s,r){var a=this.points;if(n-i==1){var o=a[i],l=a[n],h=o.getDistance(l)/3;this.addCurve(t,[o,o.add(s.normalize(h)),l.add(r.normalize(h)),l]);return}for(var u,c=this.chordLengthParameterize(i,n),d=Math.max(e,e*e),p=!0,f=0;f<=4;f++){var g=this.generateBezier(i,n,c,s,r),m=this.findMaxError(i,n,g,c);if(m.error=d)break;p=this.reparameterize(i,n,c,g),d=m.error}var _=a[u-1].subtract(a[u+1]);this.fitCubic(t,e,i,u,s,_),this.fitCubic(t,e,u,n,_.negate(),r)},addCurve:function(t,e){t[t.length-1].setHandleOut(e[1].subtract(e[0])),t.push(new O(e[3],e[2].subtract(e[3])))},generateBezier:function(t,e,i,n,s){for(var r=Math.abs,a=this.points,o=a[t],l=a[e],h=[[0,0],[0,0]],u=[0,0],c=0,d=e-t+1;c1e-12){var I=h[0][0]*u[1]-h[1][0]*u[0];k=(u[0]*h[1][1]-u[1]*h[0][1])/C,S=I/C}else{var T=h[0][0]+h[0][1],E=h[1][0]+h[1][1];k=S=r(T)>1e-12?u[0]/T:r(E)>1e-12?u[1]/E:0}var A,P,O=l.getDistance(o),N=1e-12*O;if(kO*O&&(k=S=O/3,A=P=null)}return[o,o.add(A||n.normalize(k)),l.add(P||s.normalize(S)),l]},reparameterize:function(t,e,i,n){for(var s=t;s<=e;s++)i[s-t]=this.findRoot(n,this.points[s],i[s-t]);for(var s=1,r=i.length;s=r&&(r=l,s=a)}return{error:r,index:s}}}),F=k.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&&r.isPlainObject(t)&&t.x===i&&t.y===i;this._initialize(e&&t,!e&&f.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/mg),this._changed(521)},isEmpty:function(){return!this._content},getCharacterStyle:"#getStyle",setCharacterStyle:"#setStyle",getParagraphStyle:"#getStyle",setParagraphStyle:"#setStyle"}),j=F.extend({_class:"PointText",initialize:function(){F.apply(this,arguments)},getPoint:function(){var t=this._matrix.getTranslation();return new g(t.x,t.y,this,"setPoint")},setPoint:function(){var t=f.read(arguments);this.translate(t.subtract(this._matrix.getTranslation()))},_draw:function(t,e,i){if(this._content){this._setStyles(t,e,i);var n=this._lines,s=this._style,r=s.hasFill(),a=s.hasStroke(),o=s.getLeading(),l=t.shadowColor;t.font=s.getFontStyle(),t.textAlign=s.getJustification();for(var h=0,u=n.length;h1&&(l-=1),a[o]=6*l<1?r+(s-r)*6*l:2*l<1?s:3*l<2?r+(s-r)*(2/3-l)*6:r}return a},"rgb-gray":function(t,e,i){return[.2989*t+.587*e+.114*i]},"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 r.each(e,function(t,n){i[n]=[],r.each(t,function(t,s){var a=r.capitalize(t),o=/^(hue|saturation)$/.test(t),l=i[n][s]="gradient"===n?"gradient"===t?function(t){var e=this._components[0];return t=q.read(Array.isArray(t)?t:arguments,0,{readNull:!0}),e!==t&&(e&&e._removeOwner(this),t&&t._addOwner(this)),t}:function(){return f.read(arguments,0,{readNull:"highlight"===t,clone:!0})}:function(t){return null==t||isNaN(t)?0:+t};this["get"+a]=function(){return this._type===n||o&&/^hs[bl]$/.test(this._type)?this._components[s]:this._convert(n)[s]},this["set"+a]=function(t){this._type===n||o&&/^hs[bl]$/.test(this._type)||(this._components=this._convert(n),this._properties=e[n],this._type=n),this._components[s]=l.call(this,t),this._changed()}},this)},{_class:"Color",_readIndex:!0,initialize:function a(o){var l,h,u,c,d=arguments,p=this.__read,f=0;Array.isArray(o)&&(o=(d=o)[0]);var g=null!=o&&typeof o;if("string"===g&&o in e&&(l=o,Array.isArray(o=d[1])?(h=o,u=d[2]):(p&&(f=1),d=r.slice(d,1),g=typeof o)),!h){if(c="number"===g?d:"object"===g&&null!=o.length?o:null){l||(l=c.length>=3?"rgb":"gray");var m=e[l].length;u=c[m],p&&(f+=c===arguments?m+(null!=u?1:0):1),c.length>m&&(c=r.slice(c,0,m))}else if("string"===g){var _=function(e){var i,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),a="rgb";if(r){var o=r[4]?4:3;i=Array(o);for(var l=0;l1?1:t)*255)}return e=[n(e[0]),n(e[1]),n(e[2])],i<1&&e.push(i<0?0:i),t?"#"+(0x1000000+(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 i,n=this._components,s=n[0],r=s._stops,a=n[1],o=n[2],l=n[3],h=e&&e.inverted();if(h&&(a=h._transformPoint(a),o=h._transformPoint(o),l&&(l=h._transformPoint(l))),s._radial){var u=o.getDistance(a);if(l){var c=l.subtract(a);c.getLength()>u&&(l=a.add(c.normalize(u-.1)))}var d=l||a;i=t.createRadialGradient(d.x,d.y,0,a.x,a.y,u)}else i=t.createLinearGradient(a.x,a.y,o.x,o.y);for(var p=0,f=r.length;p0&&!(i instanceof B);if(r)for(var a=0,o=s.length;a0&&!(a instanceof B);if(h&&!t)for(var u=0,p=o.length;u0},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),i=this.getFontSize();return/pt|em|%|px/.test(i)&&(i=this.getView().getPixelSize(i)),null!=e?e:1.2*i}}),G=new function(){function t(t,e,i,n){for(var s=["","webkit","moz","Moz","ms","o"],r=e[0].toUpperCase()+e.substring(1),a=0;a<6;a++){var o=s[a],l=o?o+r:e;if(l in t){if(!i)return t[l];t[l]=n;break}}}return{getStyles:function(t){var e=t&&9!==t.nodeType?t.ownerDocument:t,i=e&&e.defaultView;return i&&i.getComputedStyle(t,"")},getBounds:function(t,e){var i,n=t.ownerDocument,s=n.body,r=n.documentElement;try{i=t.getBoundingClientRect()}catch(t){i={left:0,top:0,width:0,height:0}}var a=i.left-(r.clientLeft||s.clientLeft||0),o=i.top-(r.clientTop||s.clientTop||0);if(!e){var l=n.defaultView;a+=l.pageXOffset||r.scrollLeft||s.scrollLeft,o+=l.pageYOffset||r.scrollTop||s.scrollTop}return new v(a,o,i.width,i.height)},getViewportBounds:function(t){var e=t.ownerDocument,i=e.defaultView,n=e.documentElement;return new v(0,0,i.innerWidth||n.clientWidth,i.innerHeight||n.clientHeight)},getOffset:function(t,e){return G.getBounds(t,e).getPoint()},getSize:function(t){return G.getBounds(t,!0).getSize()},isInvisible:function(t){return G.getSize(t).equals(new m(0,0))},isInView:function(t){return!G.isInvisible(t)&&G.getViewportBounds(t).intersects(G.getBounds(t,!0))},isInserted:function(t){return s.body.contains(t)},getPrefixed:function(e,i){return e&&t(e,i)},setPrefixed:function(e,i,n){if("object"==typeof i)for(var s in i)t(e,s,!0,i[s]);else t(e,i,!0,n)}}},W={add:function(t,e){if(t)for(var i in e)for(var n=e[i],r=i.split(/[\s,]+/g),a=0,o=r.length;a1?r.hyphenate(e):e.toLowerCase())}function d(e,i,n,s){var a,o=$._focused;if(l[i]=e,e?h[i]=n:delete h[i],i.length>1&&(a=r.camelize(i))in u){u[a]=e;var c=tl&&tl.agent;if("meta"===a&&c&&c.mac){if(e)t={};else{for(var p in t)p in h&&d(!1,p,t[p],s);t=null}}}else e&&t&&(t[i]=n);o&&o._handleKeyEvent(e?"keydown":"keyup",s,i,n)}return W.add(s,{keydown:function(t){var i=c(t),n=tl&&tl.agent;i.length>1||n&&n.chrome&&(t.altKey||n.mac&&t.metaKey||!n.mac&&t.ctrlKey)?d(!0,i,o[i]||(i.length>1?"":i),t):e=i},keypress:function(t){if(e){var i=c(t),n=t.charCode,s=n>=32?String.fromCharCode(n):i.length>1?"":i;i!==e&&(i=s.toLowerCase()),d(!0,i,s,t),e=null}},keyup:function(t){var e=c(t);e in h&&d(!1,e,h[e],t)}}),W.add(n,{blur:function(t){for(var e in h)d(!1,e,h[e],t)}}),{modifiers:u,isDown:function(t){return!!l[t]}}},Q=J.extend({_class:"MouseEvent",initialize:function(t,e,i,n,s){this.type=t,this.event=e,this.point=i,this.target=n,this.delta=s},toString:function(){return"{ type: '"+this.type+"', point: "+this.point+", target: "+this.target+(this.delta?", delta: "+this.delta:"")+", modifiers: "+this.getModifiers()+" }"}}),tt=J.extend({_class:"ToolEvent",_item:null,initialize:function(t,e,i){this.tool=t,this.type=e,this.event=i},_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,i=e._parent;/^(Group|CompoundPath)$/.test(i._class);)e=i,i=i._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()+" }"}}),te=l.extend({_class:"Tool",_list:"tools",_reference:"tool",_events:["onMouseDown","onMouseUp","onMouseDrag","onMouseMove","onActivate","onDeactivate","onEditOptions","onKeyDown","onKeyUp"],initialize:function(t){l.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=0&&r.equals(a))return!1;if(a&&(null!=t||null!=e)){var l=r.subtract(a),h=l.getLength();if(h<(t||0))return!1;e&&(r=a.add(l.normalize(Math.min(h,e))))}o._moveCount++}return o._point=r,o._lastPoint=a||r,n.down&&(o._moveCount=-1,o._downPoint=r,o._downCount++),!0}function h(){r&&(a=o.emit(t,new tt(o,t,e))||a)}if(n.down)l(),h();else if(n.up)l(null,this._maxDistance),h();else if(r)for(;l(this._minDistance,this._maxDistance);)h();return a}}),ti=r.extend(a,{_class:"Tween",statics:{easings:new r({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:-1+2*(2-t)*t},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,i,n,s,r,a){this.object=e;var o=typeof r,l="function"===o;this.type=l?o:"string"===o?r:"linear",this.easing=l?r:t.easings[this.type],this.duration=s,this.running=!1,this._then=null,this._startTime=null;var h=i||n;this._keys=h?Object.keys(h):[],this._parsedKeys=this._parseKeys(this._keys),this._from=h&&this._getState(i),this._to=h&&this._getState(n),!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),i=this._keys,n=function(i){return"function"==typeof i?i(e,t):i},s=0,a=i&&i.length;s255){var l=255-n,f=a-n;h=n+(h-n)*l/f,u=n+(u-n)*l/f,c=n+(c-n)*l/f}}function _(t,e,i){return p(t,e,i)-d(t,e,i)}function v(t,e,i,n){var s,r=[t,e,i],a=p(t,e,i),o=d(t,e,i);s=0===d(o=o===t?0:o===e?1:2,a=a===t?0:a===e?1:2)?1===p(o,a)?2:1:0,r[a]>r[o]?(r[s]=(r[s]-r[o])*n/(r[a]-r[o]),r[a]=n):r[s]=r[a]=0,r[o]=0,h=r[0],u=r[1],c=r[2]}var y={multiply:function(){h=s*t/255,u=a*e/255,c=o*i/255},screen:function(){h=s+t-s*t/255,u=a+e-a*e/255,c=o+i-o*i/255},overlay:function(){h=s<128?2*s*t/255:255-2*(255-s)*(255-t)/255,u=a<128?2*a*e/255:255-2*(255-a)*(255-e)/255,c=o<128?2*o*i/255:255-2*(255-o)*(255-i)/255},"soft-light":function(){var n=t*s/255;h=n+s*(255-(255-s)*(255-t)/255-n)/255,u=(n=e*a/255)+a*(255-(255-a)*(255-e)/255-n)/255,c=(n=i*o/255)+o*(255-(255-o)*(255-i)/255-n)/255},"hard-light":function(){h=t<128?2*t*s/255:255-2*(255-t)*(255-s)/255,u=e<128?2*e*a/255:255-2*(255-e)*(255-a)/255,c=i<128?2*i*o/255:255-2*(255-i)*(255-o)/255},"color-dodge":function(){h=0===s?0:255===t?255:d(255,255*s/(255-t)),u=0===a?0:255===e?255:d(255,255*a/(255-e)),c=0===o?0:255===i?255:d(255,255*o/(255-i))},"color-burn":function(){h=255===s?255:0===t?0:p(0,255-(255-s)*255/t),u=255===a?255:0===e?0:p(0,255-(255-a)*255/e),c=255===o?255:0===i?0:p(0,255-(255-o)*255/i)},darken:function(){h=st?s:t,u=a>e?a:e,c=o>i?o:i},difference:function(){(h=s-t)<0&&(h=-h),(u=a-e)<0&&(u=-u),(c=o-i)<0&&(c=-c)},exclusion:function(){h=s+t*(255-s-s)/255,u=a+e*(255-a-a)/255,c=o+i*(255-o-o)/255},hue:function(){v(t,e,i,_(s,a,o)),m(h,u,c,g(s,a,o))},saturation:function(){v(s,a,o,_(t,e,i)),m(h,u,c,g(s,a,o))},luminosity:function(){m(s,a,o,g(t,e,i))},color:function(){m(t,e,i,g(s,a,o))},add:function(){h=d(s+t,255),u=d(a+e,255),c=d(o+i,255)},subtract:function(){h=p(s-t,0),u=p(a-e,0),c=p(o-i,0)},average:function(){h=(s+t)/2,u=(a+e)/2,c=(o+i)/2},negation:function(){h=255-f(255-t-s),u=255-f(255-e-a),c=255-f(255-i-o)}},b=this.nativeModes=r.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=ts.getContext(1,1,{willReadFrequently:!0});x&&(r.each(y,function(t,e){var i="darken"===e,n=!1;x.save();try{x.fillStyle=i?"#300":"#a00",x.fillRect(0,0,1,1),x.globalCompositeOperation=e,x.globalCompositeOperation===e&&(x.fillStyle=i?"#a00":"#300",x.fillRect(0,0,1,1),n=x.getImageData(0,0,1,1).data[0]!==i?170:51)}catch(t){}x.restore(),b[e]=n}),ts.release(x)),this.process=function(r,d,p,f,g){var m=d.canvas,_="normal"===r;if(_||b[r])p.save(),p.setTransform(1,0,0,1,0,0),p.globalAlpha=f,_||(p.globalCompositeOperation=r),p.drawImage(m,g.x,g.y),p.restore();else{var v=y[r];if(!v)return;for(var x=p.getImageData(g.x,g.y,m.width,m.height),w=x.data,k=d.getImageData(0,0,m.width,m.height).data,S=0,C=w.length;S=2&&!e.hasHandles()){if(h>2){o=e._closed?"polygon":"polyline";for(var c=[],d=0;d3){i.sort(function(t,e){return e.length-t.length}),e+="switch(str.length){";for(var n=0;n=170&&tV.test(String.fromCharCode(t)))},tZ=t.isIdentifierChar=function(t){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||t>=170&&tF.test(String.fromCharCode(t))))};function tH(){this.line=p,this.column=r-f}function tG(){p=1,r=f=0,d=!0,tK()}function tW(t,i){o=r,e.locations&&(h=new tH),u=t,tK(),c=i,d=t.beforeExpr}function t$(){for(var t=r,s=e.onComment&&e.locations&&new tH,a=i.charCodeAt(r+=2);r8&&t<14)++r;else if(47===t){var s=i.charCodeAt(r+1);if(42===s)!function(){var t,n=e.onComment&&e.locations&&new tH,s=r,a=i.indexOf("*/",r+=2);if(-1===a&&C(r-2,"Unterminated comment"),r=a+2,e.locations)for(tU.lastIndex=s;(t=tU.exec(i))&&t.index=5760&&tB.test(String.fromCharCode(t)))++r;else break}}function tJ(t){if(t?r=a+1:a=r,e.locations&&(l=new tH),t)return tY();if(r>=n)return tW(O);var s=i.charCodeAt(r);if(tq(s)||92===s)return t5();var o=function(t){switch(t){case 46:return(u=i.charCodeAt(r+1))>=48&&u<=57?t0(!0):(++r,tW(tp));case 40:return++r,tW(tl);case 41:return++r,tW(th);case 59:return++r,tW(tc);case 44:return++r,tW(tu);case 91:return++r,tW(ts);case 93:return++r,tW(tr);case 123:return++r,tW(ta);case 125:return++r,tW(to);case 58:return++r,tW(td);case 63:return++r,tW(tf);case 48:var s,o,l,h,u,c,g,_=i.charCodeAt(r+1);if(120===_||88===_)return r+=2,null==(h=tQ(16))&&C(a+2,"Expected hexadecimal number"),tq(i.charCodeAt(r))&&C(r,"Identifier directly after number"),tW(T,h);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t0(!1);case 34:case 39:return function(t){r++;for(var s="";;){r>=n&&C(a,"Unterminated string constant");var o=i.charCodeAt(r);if(o===t)return++r,tW(A,s);if(92===o){o=i.charCodeAt(++r);var l=/^[0-7]+/.exec(i.slice(r,r+3));for(l&&(l=l[0]);l&&parseInt(l,8)>255;)l=l.slice(0,-1);if("0"===l&&(l=null),++r,l)b&&C(r-2,"Octal literal in strict mode"),s+=String.fromCharCode(parseInt(l,8)),r+=l.length-1;else switch(o){case 110:s+="\n";break;case 114:s+="\r";break;case 120:s+=String.fromCharCode(t1(2));break;case 117:s+=String.fromCharCode(t1(4));break;case 85:s+=String.fromCharCode(t1(8));break;case 116:s+=" ";break;case 98:s+="\b";break;case 118:s+="\v";break;case 102:s+="\f";break;case 48:s+="\0";break;case 13:10===i.charCodeAt(r)&&++r;case 10:e.locations&&(f=r,++p);break;default:s+=String.fromCharCode(o)}}else(13===o||10===o||8232===o||8233===o)&&C(a,"Unterminated string constant"),s+=String.fromCharCode(o),++r}}(t);case 47:return c=i.charCodeAt(r+1),d?(++r,tY()):61===c?tX(t_,2):tX(tg,1);case 37:case 42:return 61===i.charCodeAt(r+1)?tX(t_,2):tX(tA,1);case 124:case 38:return(g=i.charCodeAt(r+1))===t?tX(124===t?tb:tx,2):61===g?tX(t_,2):tX(124===t?tw:tS,1);case 94:return 61===i.charCodeAt(r+1)?tX(t_,2):tX(tk,1);case 43:case 45:return(s=i.charCodeAt(r+1))===t?45==s&&62==i.charCodeAt(r+2)&&tj.test(i.slice(m,r))?(r+=3,t$(),tK(),tJ()):tX(tv,2):61===s?tX(t_,2):tX(tE,1);case 60:case 62:return o=i.charCodeAt(r+1),l=1,o===t?(l=62===t&&62===i.charCodeAt(r+2)?3:2,61===i.charCodeAt(r+l))?tX(t_,l+1):tX(tT,l):33==o&&60==t&&45==i.charCodeAt(r+2)&&45==i.charCodeAt(r+3)?(r+=4,t$(),tK(),tJ()):(61===o&&(l=61===i.charCodeAt(r+2)?3:2),tX(tI,l));case 61:case 33:return 61===i.charCodeAt(r+1)?tX(tC,61===i.charCodeAt(r+2)?3:2):tX(61===t?tm:ty,1);case 126:return tX(ty,1)}return!1}(s);if(!1===o){var h=String.fromCharCode(s);if("\\"===h||tV.test(h))return t5();C(r,"Unexpected character '"+h+"'")}return o}function tX(t,e){var n=i.slice(r,r+e);r+=e,tW(t,n)}function tY(){for(var t,e,s="",a=r;;){r>=n&&C(a,"Unterminated regular expression");var o=i.charAt(r);if(tj.test(o)&&C(a,"Unterminated regular expression"),t)t=!1;else{if("["===o)e=!0;else if("]"===o&&e)e=!1;else if("/"===o&&!e)break;t="\\"===o}++r}var s=i.slice(a,r);++r;var l=t2();l&&!/^[gmsiy]*$/.test(l)&&C(a,"Invalid regexp flag");try{var h=new RegExp(s,l)}catch(t){t instanceof SyntaxError&&C(a,t.message),C(t)}return tW(E,h)}function tQ(t,e){for(var n=r,s=0,a=0,o=null==e?1/0:e;a=97?h-97+10:h>=65?h-65+10:h>=48&&h<=57?h-48:1/0)>=t)break;++r,s=s*t+l}return r===n||null!=e&&r-n!==e?null:s}function t0(t){var e=r,n=!1,s=48===i.charCodeAt(r);t||null!==tQ(10)||C(e,"Invalid number"),46===i.charCodeAt(r)&&(++r,tQ(10),n=!0);var a=i.charCodeAt(r);(69===a||101===a)&&((43===(a=i.charCodeAt(++r))||45===a)&&++r,null===tQ(10)&&C(e,"Invalid number"),n=!0),tq(i.charCodeAt(r))&&C(r,"Identifier directly after number");var o,l=i.slice(e,r);return n?o=parseFloat(l):s&&1!==l.length?/[89]/.test(l)||b?C(e,"Invalid number"):o=parseInt(l,8):o=parseInt(l,10),tW(T,o)}function t1(t){var e=tQ(16,t);return null===e&&C(a,"Bad character escape sequence"),e}function t2(){x=!1;for(var t,e=!0,n=r;;){var s=i.charCodeAt(r);if(tZ(s))x&&(t+=i.charAt(r)),++r;else if(92===s){x||(t=i.slice(n,r)),x=!0,117!=i.charCodeAt(++r)&&C(r,"Expecting Unicode escape sequence \\uXXXX"),++r;var a=t1(4),o=String.fromCharCode(a);o||C(r-1,"Invalid Unicode escape"),(e?tq(a):tZ(a))||C(r-4,"Invalid Unicode escape"),t+=o}else break;e=!1}return x?t:i.slice(n,r)}function t5(){var t=t2(),e=P;return!x&&tR(t)&&(e=tn[t]),tW(e,t)}function t3(){g=a,m=o,_=h,tJ()}function t6(t){if(b=t,r=a,e.locations)for(;r=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"use strict"===t.expression.value}function ei(t){if(u===t)return t3(),!0}function en(){return!e.strictSemicolons&&(u===O||u===to||tj.test(i.slice(m,a)))}function es(){ei(tc)||en()||ea()}function er(t){u===t?t3():ea()}function ea(){C(a,"Unexpected token")}function eo(t){"Identifier"!==t.type&&"MemberExpression"!==t.type&&C(t.start,"Assigning to rvalue"),b&&"Identifier"===t.type&&tz(t.name)&&C(t.start,"Assigning to "+t.name+" in strict mode")}var el={kind:"loop"},eh={kind:"switch"};function eu(){(u===tg||u===t_&&"/="==c)&&tJ(!0);var t,n,s=u,r=t8();switch(s){case N:case z:t3();var o=s===N;ei(tc)||en()?r.label=null:u!==P?ea():(r.label=eS(),es());for(var l=0;li){var r=t7(e);r.left=e,r.operator=c;var a=u;return t3(),r.right=t(ev(),s,n),t(et(r,a===tb||a===tx?"LogicalExpression":"BinaryExpression"),i,n)}return e}(ev(),-1,t);if(ei(tf)){var i=t7(e);return i.test=e,i.consequent=em(!0),er(td),i.alternate=em(!0,t),et(i,"ConditionalExpression")}return e}(t);if(u.isAssign){var i=t7(e);return i.operator=c,i.left=e,t3(),i.right=e_(t),eo(e),et(i,"AssignmentExpression")}return e}function ev(){if(u.prefix){var t=t8(),e=u.isUpdate;return t.operator=c,t.prefix=!0,d=!0,t3(),t.argument=ev(),e?eo(t.argument):b&&"delete"===t.operator&&"Identifier"===t.argument.type&&C(t.start,"Deleting local variable in strict mode"),et(t,e?"UpdateExpression":"UnaryExpression")}for(var i=ey(eb());u.postfix&&!en();){var t=t7(i);t.operator=c,t.prefix=!1,t.argument=i,eo(i),t3(),i=et(t,"UpdateExpression")}return i}function ey(t,e){if(ei(tp)){var i=t7(t);return i.object=t,i.property=eS(!0),i.computed=!1,ey(et(i,"MemberExpression"),e)}if(ei(ts)){var i=t7(t);return i.object=t,i.property=em(),i.computed=!0,er(tr),ey(et(i,"MemberExpression"),e)}if(!(!e&&ei(tl)))return t;var i=t7(t);return i.callee=t,i.arguments=ek(th,!1),ey(et(i,"CallExpression"),e)}function eb(){switch(u){case Y:var t,n=t8();return t3(),et(n,"ThisExpression");case P:return eS();case T:case A:case E:var n=t8();return n.value=c,n.raw=i.slice(a,o),t3(),et(n,"Literal");case Q:case tt:case te:var n=t8();return n.value=u.atomValue,n.raw=u.keyword,t3(),et(n,"Literal");case tl:var s=l,r=a;t3();var d=em();return d.start=r,d.end=o,e.locations&&(d.loc.start=s,d.loc.end=h),e.ranges&&(d.range=[r,o]),er(th),d;case ts:var n=t8();return t3(),n.elements=ek(tr,!0,!0),et(n,"ArrayExpression");case ta:return function(){var t=t8(),i=!0,n=!1;for(t.properties=[],t3();!ei(to);){if(i)i=!1;else if(er(tu),e.allowTrailingCommas&&ei(to))break;var s,r={key:ex()},a=!1;if(ei(td)?(r.value=em(!0),s=r.kind="init"):e.ecmaVersion>=5&&"Identifier"===r.key.type&&("get"===r.key.name||"set"===r.key.name)?(a=n=!0,s=r.kind=r.key.name,r.key=ex(),u!==tl&&ea(),r.value=ew(t8(),!1)):ea(),"Identifier"===r.key.type&&(b||n))for(var o=0;o=0)for(var o=0;o=t)break;t+=n[1]}return t}function o(e){return t.substring(a(e.range[0]),a(e.range[1]))}function l(e,i){for(var n=a(e.range[0]),s=a(e.range[1]),o=0,l=r.length-1;l>=0;l--)if(n>r[l][0]){o=l+1;break}r.splice(o,0,[n,i.length-s+n]),t=t.substring(0,n)+i+t.substring(s)}var u,p=(i=i||{}).url||"",f=i.sourceMaps,g=i.paperFeatures||{},m=i.source||t,_=i.offset||0,v=tl.agent,y=v.versionNumber,b=!1,x=/\r\n|\n|\r/mg;if(f&&(v.chrome&&y>=30||v.webkit&&y>=537.76||v.firefox&&y>=23||v.node)){if(v.node)_-=2;else if(n&&p&&!n.location.href.indexOf(p)){var w=s.getElementsByTagName("html")[0].innerHTML;_=w.substr(0,w.indexOf(t)+1).match(x).length+1}var k=["AA"+function(t){var e="";for(t=(Math.abs(t)<<1)+(t<0?1:0);t||!e;){var i=31&t;(t>>=5)&&(i|=32),e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[i]}return e}((b=_>0&&!(v.chrome&&y>=36||v.safari&&y>=600||v.firefox&&y>=40||v.node))?0:_)+"A"];k.length=(t.match(x)||[]).length+1+(b?_:0),u={version:3,file:p,names:[],mappings:k.join(";AACA"),sourceRoot:"",sources:[p],sourcesContent:[m]}}return(!1!==g.operatorOverloading||!1!==g.moduleExports)&&function e(i,n,s){if(i){for(var r in i)if("range"!==r&&"loc"!==r){var h=i[r];if(Array.isArray(h))for(var u=0,p=h.length;u]/.test(i.operator)||"MemberExpression"===g&&i.computed)){if("UpdateExpression"===e.type){var n=o(e.argument),m="__$__("+n+', "'+e.operator[0]+'", 1)',_=n+" = "+m;e.prefix?_="("+_+")":("AssignmentExpression"===g||"VariableDeclarator"===g||"BinaryExpression"===g)&&(o(i.left||i.id)===n&&(_=m),_=n+"; "+_),l(e,_)}else if(/^.=$/.test(e.operator)&&"Literal"!==e.left.type){var h=o(e.left),u=o(e.right),m=h+" = __$__("+h+', "'+e.operator[0]+'", '+u+")";l(e,/^\(.*\)$/.test(o(e))?"("+m+")":m)}}}}(i,n),!1!==s.moduleExports&&function(t){switch(t.type){case"ExportDefaultDeclaration":l({range:[t.start,t.declaration.start]},"module.exports = ");break;case"ExportNamedDeclaration":var e=t.declaration,i=t.specifiers;if(e){var n=e.declarations;n&&(n.forEach(function(t){l(t,"module.exports."+o(t))}),l({range:[t.start,e.start+e.kind.length]},""))}else if(i){var s=i.map(function(t){var e=o(t);return"module.exports."+e+" = "+e+"; "}).join("");s&&l(t,s)}}}(i)}}(h(t,{ranges:!0,preserveParens:!0,sourceType:"module"}),null,g),u&&(b&&(t=Array(_+1).join("\n")+t),/^(inline|both)$/.test(f)&&(t+="\n//# sourceMappingURL=data:application/json;base64,"+e.btoa(unescape(encodeURIComponent(JSON.stringify(u))))),t+="\n//# sourceURL="+(p||"paperscript")),{url:p,source:m,code:t,map:u}}function y(t,e,i){tl=e;var n,a=e.getView(),o=/\btool\.\w+|\s+on(?:Key|Mouse)(?:Up|Down|Move|Drag)\b/.test(t)&&!/\bnew\s+Tool\b/.test(t)?new te:null,l=o?o._events:[],h=["onFrame","onResize"].concat(l),u=[],c=[];function d(e,i){for(var n in e)(i||!/^_/.test(n))&&RegExp("([\\b\\s\\W]|^)"+n.replace(/\$/g,"\\$")+"\\b").test(t)&&(u.push(n),c.push(e[n]))}t=("object"==typeof t?t:v(t,i)).code,d({__$__:g,$__:_,paper:e,tool:o},!0),d(e),t="var module = { exports: {} }; "+t;var p=r.each(h,function(e){RegExp("\\s+"+e+"\\b").test(t)&&(u.push(e),this.push("module.exports."+e+" = "+e+";"))},[]).join("\n");p&&(t+="\n"+p),t+="\nreturn module.exports;";var m=tl.agent;if(s&&(m.chrome||m.firefox&&m.versionNumber<40)){var y=s.createElement("script"),b=s.head||s.getElementsByTagName("head")[0];m.firefox&&(t="\n"+t),y.appendChild(s.createTextNode("document.__paperscript__ = function("+u+") {"+t+"\n}")),b.appendChild(y),n=s.__paperscript__,delete s.__paperscript__,b.removeChild(y)}else n=Function(u,t);var p=n&&n.apply(e,c),x=p||{};return r.each(l,function(t){var e=x[t];e&&(o[t]=e)}),a&&(x.onResize&&a.setOnResize(x.onResize),a.emit("resize",{size:a.size,delta:new f}),x.onFrame&&a.setOnFrame(x.onFrame),a.requestUpdate()),p}function b(t){if(/^text\/(?:x-|)paperscript$/.test(t.type)&&"true"!==o.getAttribute(t,"ignore")){var e=o.getAttribute(t,"canvas"),i=s.getElementById(e),n=t.src||t.getAttribute("data-src"),r=o.hasAttribute(t,"async"),a="data-paper-scope";if(!i)throw Error('Unable to find canvas with id "'+e+'"');var l=o.get(i.getAttribute(a))||new o().setup(i);return i.setAttribute(a,l._id),n?tn.request({url:n,async:r,mimeType:"text/plain",onLoad:function(t){y(t,l,n)}}):y(t.innerHTML,l,t.baseURI),t.setAttribute("data-paper-ignore","true"),l}}function x(){r.each(s&&s.getElementsByTagName("script"),b)}return f.inject(p),m.inject(p),U.inject(p),n&&("complete"===s.readyState?setTimeout(x):W.add(n,{load:x})),{compile:v,execute:y,load:function(t){return t?b(t):x()},parse:h,calculateBinary:g,calculateUnary:_}}).call(this);var tl=new(o.inject(r.exports,{Base:r,Numerical:d,Key:Y,DomEvent:W,DomElement:G,document:s,window:n,Symbol:A,PlacedSymbol:E}));return tl.agent.node&&u("1S6xU")(tl),"function"==typeof define&&define.amd?define("paper",tl):t&&(t.exports=tl),tl}).call(this,"object"==typeof self?self:null)}),c("1S6xU",function(t,e){}),c("9SFwl",function(t,e){r(t.exports,"isIdentifierStart",function(){return p}),r(t.exports,"isIdentifierChar",function(){return f}),r(t.exports,"TokenType",function(){return g}),r(t.exports,"keywordTypes",function(){return y}),r(t.exports,"tokTypes",function(){return x}),r(t.exports,"lineBreak",function(){return w}),r(t.exports,"lineBreakG",function(){return k}),r(t.exports,"isNewLine",function(){return S}),r(t.exports,"nonASCIIwhitespace",function(){return I}),r(t.exports,"Position",function(){return B}),r(t.exports,"SourceLocation",function(){return D}),r(t.exports,"getLineInfo",function(){return V}),r(t.exports,"defaultOptions",function(){return F}),r(t.exports,"Parser",function(){return q}),r(t.exports,"TokContext",function(){return ti}),r(t.exports,"tokContexts",function(){return tn}),r(t.exports,"Node",function(){return tu}),r(t.exports,"Token",function(){return tD}),r(t.exports,"version",function(){return tU}),r(t.exports,"parse",function(){return tq}),r(t.exports,"parseExpressionAt",function(){return tZ}),r(t.exports,"tokenizer",function(){return tH});var i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,71,5,2,1,3,3,2,0,2,1,13,9,120,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],n=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,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,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",a={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"},o="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",l={5:o,"5module":o+" export import",6:o+" const class extends export import super"},h=/^in(stanceof)?$/,u=RegExp("["+s+"]"),c=RegExp("["+s+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function d(t,e){for(var i=65536,n=0;nt);n+=2)if((i+=e[n+1])>=t)return!0;return!1}function p(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&&d(t,n)))}function f(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&c.test(String.fromCharCode(t)):!1!==e&&(d(t,n)||d(t,i)))))}var g=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 g(t,{beforeExpr:!0,binop:e})}var _={beforeExpr:!0},v={startsExpr:!0},y={};function b(t,e){return void 0===e&&(e={}),e.keyword=t,y[t]=new g(t,e)}var x={num:new g("num",v),regexp:new g("regexp",v),string:new g("string",v),name:new g("name",v),privateId:new g("privateId",v),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",_),semi:new g(";",_),colon:new g(":",_),dot:new g("."),question:new g("?",_),questionDot:new g("?."),arrow:new g("=>",_),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",_),backQuote:new g("`",v),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{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 g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:m("??",1),_break:b("break"),_case:b("case",_),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",_),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",_),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",v),_if:b("if"),_return:b("return",_),_switch:b("switch"),_throw:b("throw",_),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",v),_super:b("super",v),_class:b("class",v),_extends:b("extends",_),_export:b("export"),_import:b("import",v),_null:b("null",v),_true:b("true",v),_false:b("false",v),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,k=RegExp(w.source,"g");function S(t){return 10===t||13===t||8232===t||8233===t}function C(t,e,i){void 0===i&&(i=t.length);for(var n=e;n>10)+55296,(1023&t)+56320)}var R=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,B=function(t,e){this.line=t,this.column=e};B.prototype.offset=function(t){return new B(this.line,this.column+t)};var D=function(t,e,i){this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)};function V(t,e){for(var i=1,n=0;;){var s=C(t,n,e);if(s<0)return new B(i,e-n);++i,n=s}}var F={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},j=!1;function U(t,e){return 2|(t?4:0)|(e?8:0)}var q=function(t,e,i){this.options=t=function(t){var e,i={};for(var n in F)i[n]=t&&O(t,n)?t[n]:F[n];if("latest"===i.ecmaVersion?i.ecmaVersion=1e8:null==i.ecmaVersion?(!j&&"object"==typeof console&&console.warn&&(j=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),i.ecmaVersion=11):i.ecmaVersion>=2015&&(i.ecmaVersion-=2009),null==i.allowReserved&&(i.allowReserved=i.ecmaVersion<5),t&&null!=t.allowHashBang||(i.allowHashBang=i.ecmaVersion>=14),N(i.onToken)){var s=i.onToken;i.onToken=function(t){return s.push(t)}}return N(i.onComment)&&(i.onComment=(e=i.onComment,function(t,n,s,r,a,o){var l={type:t?"Block":"Line",value:n,start:s,end:r};i.locations&&(l.loc=new D(this,a,o)),i.ranges&&(l.range=[s,r]),e.push(l)})),i}(t),this.sourceFile=t.sourceFile,this.keywords=L(l[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var n="";!0!==t.allowReserved&&(n=a[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(n+=" await")),this.reservedWords=L(n);var s=(n?n+" ":"")+a.strict;this.reservedWordsStrict=L(s),this.reservedWordsStrictBind=L(s+" "+a.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=x.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.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Z={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};q.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},Z.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Z.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Z.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Z.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t];if(e.inClassFieldInit||256&e.flags)return!1;if(2&e.flags)return(4&e.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Z.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(64&e)>0||i||this.options.allowSuperOutsideMethod},Z.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Z.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Z.allowNewDotTarget.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(258&e)>0||i},Z.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},q.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,n=0;n=,?^&]/.test(s)||"!"===s&&"="===this.input.charAt(n+1))}t+=e[0].length,T.lastIndex=t,t+=T.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===x.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===x.eof||this.type===x.braceR||w.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(x.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")};var W=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};H.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}},H.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,n=t.doubleProto;if(!e)return i>=0||n>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},H.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&n<56320)return!0;if(p(n,!0)){for(var s=i+1;f(n=this.input.charCodeAt(s),!0);)++s;if(92===n||n>55295&&n<56320)return!0;var r=this.input.slice(i,s);if(!h.test(r))return!0}return!1},$.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;T.lastIndex=this.pos;var t,e=T.exec(this.input),i=this.pos+e[0].length;return!w.test(this.input.slice(this.pos,i))&&"function"===this.input.slice(i,i+8)&&(i+8===this.input.length||!(f(t=this.input.charCodeAt(i+8))||t>55295&&t<56320))},$.parseStatement=function(t,e,i){var n,s=this.type,r=this.startNode();switch(this.isLet(t)&&(s=x._var,n="let"),s){case x._break:case x._continue:return this.parseBreakContinueStatement(r,s.keyword);case x._debugger:return this.parseDebuggerStatement(r);case x._do:return this.parseDoStatement(r);case x._for:return this.parseForStatement(r);case x._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!t);case x._class:return t&&this.unexpected(),this.parseClass(r,!0);case x._if:return this.parseIfStatement(r);case x._return:return this.parseReturnStatement(r);case x._switch:return this.parseSwitchStatement(r);case x._throw:return this.parseThrowStatement(r);case x._try:return this.parseTryStatement(r);case x._const:case x._var:return n=n||this.value,t&&"var"!==n&&this.unexpected(),this.parseVarStatement(r,n);case x._while:return this.parseWhileStatement(r);case x._with:return this.parseWithStatement(r);case x.braceL:return this.parseBlock(!0,r);case x.semi:return this.parseEmptyStatement(r);case x._export:case x._import:if(this.options.ecmaVersion>10&&s===x._import){T.lastIndex=this.pos;var a=T.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(r,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'")),s===x._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!t);var h=this.value,u=this.parseExpression();if(s===x.name&&"Identifier"===u.type&&this.eat(x.colon))return this.parseLabeledStatement(r,h,u,t);return this.parseExpressionStatement(r,u)}},$.parseBreakContinueStatement=function(t,e){var i="break"===e;this.next(),this.eat(x.semi)||this.insertSemicolon()?t.label=null:this.type!==x.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var n=0;n=6?this.eat(x.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},$.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K),this.enterScope(0),this.expect(x.parenL),this.type===x.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===x._var||this.type===x._const||i){var n=this.startNode(),s=i?"let":this.value;return(this.next(),this.parseVar(n,!0,s),this.finishNode(n,"VariableDeclaration"),(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length)?(this.options.ecmaVersion>=9&&(this.type===x._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,n)):(e>-1&&this.unexpected(e),this.parseFor(t,n))}var r=this.isContextual("let"),a=!1,o=this.containsEsc,l=new W,h=this.start,u=e>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===x._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===x._in&&this.unexpected(e),t.await=!0):a&&this.options.ecmaVersion>=8&&(u.start!==h||o||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(t.await=!1):this.unexpected()),r&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,l),this.checkLValPattern(u),this.parseForIn(t,u)):(this.checkExpressionErrors(l,!0),e>-1&&this.unexpected(e),this.parseFor(t,u))},$.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,Y|(i?0:Q),!1,e)},$.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(x._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},$.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(x.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},$.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(x.braceL),this.labels.push(J),this.enterScope(0);for(var e,i=!1;this.type!==x.braceR;)if(this.type===x._case||this.type===x._default){var n=this.type===x._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),n?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(x.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")},$.parseThrowStatement=function(t){return this.next(),w.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 X=[];$.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(x.parenR),t},$.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===x._catch){var e=this.startNode();this.next(),this.eat(x.parenL)?e.param=this.parseCatchClauseParam():(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(x._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},$.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")},$.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(K),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},$.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")},$.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},$.parseLabeledStatement=function(t,e,i,n){for(var s=0,r=this.labels;s=0;o--){var l=this.labels[o];if(l.statementStart===t.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},$.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},$.parseBlock=function(t,e,i){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(x.braceL),t&&this.enterScope(0);this.type!==x.braceR;){var n=this.parseStatement(null);e.body.push(n)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},$.parseFor=function(t,e){return t.init=e,this.expect(x.semi),t.test=this.type===x.semi?null:this.parseExpression(),this.expect(x.semi),t.update=this.type===x.parenR?null:this.parseExpression(),this.expect(x.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},$.parseForIn=function(t,e){var i=this.type===x._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(x.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},$.parseVar=function(t,e,i,n){for(t.declarations=[],t.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(x.eq)?s.init=this.parseMaybeAssign(e):n||"const"!==i||this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n||"Identifier"===s.id.type||e&&(this.type===x._in||this.isContextual("of"))?s.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(x.comma))break}return t},$.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var Y=1,Q=2;function tt(t,e){var i=t.computed,n=t.key;return!i&&("Identifier"===n.type&&n.name===e||"Literal"===n.type&&n.value===e)}$.parseFunction=function(t,e,i,n,s){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===x.star&&e&Q&&this.unexpected(),t.generator=this.eat(x.star)),this.options.ecmaVersion>=8&&(t.async=!!n),e&Y&&(t.id=4&e&&this.type!==x.name?null:this.parseIdent(),t.id&&!(e&Q)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(U(t.async,t.generator)),e&Y||(t.id=this.type===x.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,s),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&Y?"FunctionDeclaration":"FunctionExpression")},$.parseFunctionParams=function(t){this.expect(x.parenL),t.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},$.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var n=this.enterClassBody(),s=this.startNode(),r=!1;for(s.body=[],this.expect(x.braceL);this.type!==x.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(s.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(r&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),r=!0):a.key&&"PrivateIdentifier"===a.key.type&&function(t,e){var i=e.key.name,n=t[i],s="true";return("MethodDefinition"===e.type&&("get"===e.kind||"set"===e.kind)&&(s=(e.static?"s":"i")+e.kind),"iget"===n&&"iset"===s||"iset"===n&&"iget"===s||"sget"===n&&"sset"===s||"sset"===n&&"sget"===s)?(t[i]="true",!1):!!n||(t[i]=s,!1)}(n,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},$.parseClassElement=function(t){if(this.eat(x.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),n="",s=!1,r=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(x.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===x.star?o=!0:n="static"}if(i.static=o,!n&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===x.star)&&!this.canInsertSemicolon()?r=!0:n="async"),!n&&(e>=9||!r)&&this.eat(x.star)&&(s=!0),!n&&!r&&!s){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:n=l)}if(n?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=n,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===x.parenL||"method"!==a||s||r){var h=!i.static&&tt(i,"constructor");h&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=h?"constructor":a,this.parseClassMethod(i,s,r,h&&t)}else this.parseClassField(i);return i},$.isClassElementNameStart=function(){return this.type===x.name||this.type===x.privateId||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword},$.parseClassElementName=function(t){this.type===x.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},$.parseClassMethod=function(t,e,i,n){var s=t.key;"constructor"===t.kind?(e&&this.raise(s.start,"Constructor can't be a generator"),i&&this.raise(s.start,"Constructor can't be an async method")):t.static&&tt(t,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var r=t.value=this.parseMethod(e,i,n);return"get"===t.kind&&0!==r.params.length&&this.raiseRecoverable(r.start,"getter should have no params"),"set"===t.kind&&1!==r.params.length&&this.raiseRecoverable(r.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===r.params[0].type&&this.raiseRecoverable(r.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},$.parseClassField=function(t){if(tt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&tt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(x.eq)){var e=this.currentThisScope(),i=e.inClassFieldInit;e.inClassFieldInit=!0,t.value=this.parseMaybeAssign(),e.inClassFieldInit=i}else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")},$.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==x.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},$.parseClassId=function(t,e){this.type===x.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},$.parseClassSuper=function(t){t.superClass=this.eat(x._extends)?this.parseExprSubscripts(null,!1):null},$.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},$.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,s=0===n?null:this.privateNameStack[n-1],r=0;r=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==x.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},$.parseExport=function(t,e){if(this.next(),this.eat(x.star))return this.parseExportAllDeclaration(t,e);if(this.eat(x._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==x.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var i=0,n=t.specifiers;i=13&&this.type===x.string){var t=this.parseLiteral(this.value);return R.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},$.adaptDirectivePrologue=function(t){for(var e=0;e=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var te=q.prototype;te.toAssignable=function(t,e,i){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"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var n=0,s=t.properties;n=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(x._function))return this.overrideContext(tn.f_expr),this.parseFunction(this.startNodeAt(r,a),0,!1,!0,e);if(s&&!this.canInsertSemicolon()){if(this.eat(x.arrow))return this.parseArrowExpression(this.startNodeAt(r,a),[l],!1,e);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===x.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(x.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,a),[l],!0,e)}return l;case x.regexp:var h=this.value;return(n=this.parseLiteral(h.value)).regex={pattern:h.pattern,flags:h.flags},n;case x.num:case x.string:return this.parseLiteral(this.value);case x._null:case x._true:case x._false:return(n=this.startNode()).value=this.type===x._null?null:this.type===x._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case x.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(s,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(t.parenthesizedAssign=u),t.parenthesizedBind<0&&(t.parenthesizedBind=u)),c;case x.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(x.bracketR,!0,!0,t),this.finishNode(n,"ArrayExpression");case x.braceL:return this.overrideContext(tn.b_expr),this.parseObj(!1,t);case x._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case x._class:return this.parseClass(this.startNode(),!1);case x._new:return this.parseNew();case x.backQuote:return this.parseTemplate();case x._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(i);return this.unexpected();default:return this.parseExprAtomDefault()}},tr.parseExprAtomDefault=function(){this.unexpected()},tr.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===x.parenL&&!t)return this.parseDynamicImport(e);if(this.type===x.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);return i.name="import",e.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(e)}this.unexpected()},tr.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(x.parenR)){var e=this.start;this.eat(x.comma)&&this.eat(x.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},tr.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},tr.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).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},tr.parseParenExpression=function(){this.expect(x.parenL);var t=this.parseExpression();return this.expect(x.parenR),t},tr.shouldParseArrow=function(t){return!this.canInsertSemicolon()},tr.parseParenAndDistinguishExpression=function(t,e){var i,n=this.start,s=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,h=[],u=!0,c=!1,d=new W,p=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==x.parenR;){if(u?u=!1:this.expect(x.comma),r&&this.afterTrailingComma(x.parenR,!0)){c=!0;break}if(this.type===x.ellipsis){a=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}h.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var g=this.lastTokEnd,m=this.lastTokEndLoc;if(this.expect(x.parenR),t&&this.shouldParseArrow(h)&&this.eat(x.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=f,this.parseParenArrowList(n,s,h,e);(!h.length||c)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=f||this.awaitPos,h.length>1?((i=this.startNodeAt(o,l)).expressions=h,this.finishNodeAt(i,"SequenceExpression",g,m)):i=h[0]}else i=this.parseParenExpression();if(!this.options.preserveParens)return i;var _=this.startNodeAt(n,s);return _.expression=i,this.finishNode(_,"ParenthesizedExpression")},tr.parseParenItem=function(t){return t},tr.parseParenArrowList=function(t,e,i,n){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,n)};var ta=[];tr.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===x.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var i=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var n=this.start,s=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,s,!0,!1),this.eat(x.parenL)?t.arguments=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1):t.arguments=ta,this.finishNode(t,"NewExpression")},tr.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===x.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===x.backQuote,this.finishNode(i,"TemplateElement")},tr.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var n=this.parseTemplateElement({isTagged:e});for(i.quasis=[n];!n.tail;)this.type===x.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(x.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(x.braceR),i.quasis.push(n=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},tr.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===x.name||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===x.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},tr.parseObj=function(t,e){var i=this.startNode(),n=!0,s={};for(i.properties=[],this.next();!this.eat(x.braceR);){if(n)n=!1;else if(this.expect(x.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(x.braceR))break;var r=this.parseProperty(t,e);t||this.checkPropClash(r,s,e),i.properties.push(r)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},tr.parseProperty=function(t,e){var i,n,s,r,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(x.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,e),this.type===x.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)&&(s=this.start,r=this.startLoc),t||(i=this.eat(x.star)));var o=this.containsEsc;return this.parsePropertyName(a),!t&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(n=!0,i=this.options.ecmaVersion>=9&&this.eat(x.star),this.parsePropertyName(a)):n=!1,this.parsePropertyValue(a,t,i,n,s,r,e,o),this.finishNode(a,"Property")},tr.parseGetterSetter=function(t){t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var e="get"===t.kind?0:1;if(t.value.params.length!==e){var i=t.value.start;"get"===t.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},tr.parsePropertyValue=function(t,e,i,n,s,r,a,o){(i||n)&&this.type===x.colon&&this.unexpected(),this.eat(x.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===x.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,n)):e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===x.comma||this.type===x.braceR||this.type===x.eq?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((i||n)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=s),t.kind="init",e?t.value=this.parseMaybeDefault(s,r,this.copyNode(t.key)):this.type===x.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(s,r,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected():((i||n)&&this.unexpected(),this.parseGetterSetter(t))},tr.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(x.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(x.bracketR),t.key;t.computed=!1}return t.key=this.type===x.num||this.type===x.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},tr.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},tr.parseMethod=function(t,e,i){var n=this.startNode(),s=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=t),this.options.ecmaVersion>=8&&(n.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|U(e,n.generator)|(i?128:0)),this.expect(x.parenL),n.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=s,this.awaitPos=r,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")},tr.parseArrowExpression=function(t,e,i,n){var s=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|U(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,n),this.yieldPos=s,this.awaitPos=r,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},tr.parseFunctionBody=function(t,e,i,n){var s=e&&this.type!==x.braceL,r=this.strict,a=!1;if(s)t.body=this.parseMaybeAssign(n),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!r||o)&&(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!r&&!a&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!r),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=l}this.exitScope()},tr.isSimpleParamList=function(t){for(var e=0;e-1||s.functions.indexOf(t)>-1||s.var.indexOf(t)>-1,s.lexical.push(t),this.inModule&&1&s.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var r=this.currentScope();n=this.treatFunctionsAsVar?r.lexical.indexOf(t)>-1:r.lexical.indexOf(t)>-1||r.var.indexOf(t)>-1,r.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){n=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}n&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},tl.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},tl.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},tl.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags)return e}},tl.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags&&!(16&e.flags))return e}};var tu=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new D(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},tc=q.prototype;function td(t,e,i,n){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=n),this.options.ranges&&(t.range[1]=i),t}tc.startNode=function(){return new tu(this,this.start,this.startLoc)},tc.startNodeAt=function(t,e){return new tu(this,t,e)},tc.finishNode=function(t,e){return td.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},tc.finishNodeAt=function(t,e,i,n){return td.call(this,t,e,i,n)},tc.copyNode=function(t){var e=new tu(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};for(var tp="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",tf=tp+" Extended_Pictographic",tg=tf+" EBase EComp EMod EPres ExtPict",tm={9:tp,10:tf,11:tf,12:tg,13:tg,14:tg},t_={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},tv="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",ty="Adlam Adlm 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 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",tb=ty+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",tx=tb+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tw=tx+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",tk=tw+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",tS={9:ty,10:tb,11:tx,12:tw,13:tk,14:tk+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},tC={},tI=0,tT=[9,10,11,12,13,14];tI=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=tC[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function tO(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function tN(t){return t>=65&&t<=90||t>=97&&t<=122}function tM(t){return tN(t)||95===t}function tL(t){return t>=48&&t<=57}function tz(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function tR(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}function tB(t){return t>=48&&t<=55}tP.prototype.reset=function(t,e,i){var n=-1!==i.indexOf("v"),s=-1!==i.indexOf("u");this.start=0|t,this.source=e+"",this.flags=i,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)},tP.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},tP.prototype.at=function(t,e){void 0===e&&(e=!1);var i=this.source,n=i.length;if(t>=n)return -1;var s=i.charCodeAt(t);if(!(e||this.switchU)||s<=55295||s>=57344||t+1>=n)return s;var r=i.charCodeAt(t+1);return r>=56320&&r<=57343?(s<<10)+r-0x35fdc00:s},tP.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var i=this.source,n=i.length;if(t>=n)return n;var s,r=i.charCodeAt(t);return!(e||this.switchU)||r<=55295||r>=57344||t+1>=n||(s=i.charCodeAt(t+1))<56320||s>57343?t+1:t+2},tP.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},tP.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},tP.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},tP.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},tP.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var i=this.pos,n=0;n-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===a&&(n=!0),"v"===a&&(s=!0)}this.options.ecmaVersion>=15&&n&&s&&this.raise(t.start,"Invalid regular expression flag")},tE.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&function(t){for(var e in t)return!0;return!1}(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},tE.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,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,i=t.backReferenceNames;e=16;for(e&&(t.branchID=new tA(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},tE.regexp_alternative=function(t){for(;t.pos=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},tE.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},tE.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},tE.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var n=0,s=-1;if(this.regexp_eatDecimalDigits(t)&&(n=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue),t.eat(125)))return -1!==s&&s=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},tE.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)},tE.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},tE.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!tO(e)&&(t.lastIntValue=e,t.advance(),!0)},tE.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;-1!==(i=t.current())&&!tO(i);)t.advance();return t.pos!==e},tE.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)},tE.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,i=t.groupNames[t.lastStringValue];if(i){if(e)for(var n=0;n=11,s=t.current(n);return(t.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(s=t.lastIntValue),p(e=s,!0)||36===e||95===e)?(t.lastIntValue=s,!0):(t.pos=i,!1)},tE.regexp_eatRegExpIdentifierPart=function(t){var e,i=t.pos,n=this.options.ecmaVersion>=11,s=t.current(n);return(t.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(s=t.lastIntValue),f(e=s,!0)||36===e||95===e||8204===e||8205===e)?(t.lastIntValue=s,!0):(t.pos=i,!1)},tE.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)},tE.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},tE.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},tE.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,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},tE.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},tE.regexp_eatZero=function(t){return!(48!==t.current()||tL(t.lookahead()))&&(t.lastIntValue=0,t.advance(),!0)},tE.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)},tE.regexp_eatControlLetter=function(t){var e=t.current();return!!tN(e)&&(t.lastIntValue=e%32,t.advance(),!0)},tE.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var i=t.pos,n=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var s,r=t.lastIntValue;if(n&&r>=55296&&r<=56319){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=(r-55296)*1024+(o-56320)+65536,!0}t.pos=a,t.lastIntValue=r}return!0}if(n&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(s=t.lastIntValue)>=0&&s<=1114111)return!0;n&&t.raise("Invalid unicode escape"),t.pos=i}return!1},tE.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)},tE.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},tE.regexp_eatCharacterClassEscape=function(t){var e,i=t.current();if(100===i||68===i||115===i||83===i||119===i||87===i)return t.lastIntValue=-1,t.advance(),1;var n=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((n=80===i)||112===i)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(e=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return n&&2===e&&t.raise("Invalid property name"),e;t.raise("Invalid property name")}return 0},tE.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var n=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,n),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,s)}return 0},tE.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){O(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},tE.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},tE.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";tM(e=t.current());)t.lastStringValue+=z(e),t.advance();return""!==t.lastStringValue},tE.regexp_eatUnicodePropertyValue=function(t){var e,i=0;for(t.lastStringValue="";tM(e=i=t.current())||tL(e);)t.lastStringValue+=z(i),t.advance();return""!==t.lastStringValue},tE.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},tE.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===i&&t.raise("Negated character class may contain strings"),!0}return!1},tE.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},tE.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;t.switchU&&(-1===e||-1===i)&&t.raise("Invalid character class"),-1!==e&&-1!==i&&e>i&&t.raise("Range out of order in character class")}}},tE.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(99===i||tB(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var n=t.current();return 93!==n&&(t.lastIntValue=n,t.advance(),!0)},tE.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)},tE.regexp_classSetExpression=function(t){var e,i=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(i=2);for(var n=t.pos;t.eatChars([38,38]);){if(38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))){2!==e&&(i=1);continue}t.raise("Invalid character in character class")}if(n!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(n!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return i;2===e&&(i=2)}},tE.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var n=t.lastIntValue;return -1!==i&&-1!==n&&i>n&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},tE.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},tE.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),n=this.regexp_classContents(t);if(t.eat(93))return i&&2===n&&t.raise("Negated character class may contain strings"),n;t.pos=e}if(t.eat(92)){var s=this.regexp_eatCharacterClassEscape(t);if(s)return s;t.pos=e}return null},tE.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null},tE.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},tE.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},tE.regexp_eatClassSetCharacter=function(t){var e,i=t.pos;if(t.eat(92))return!!(this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=i,!1));var n=t.current();return!(n<0||n===t.lookahead()&&(33===n||n>=35&&n<=38||n>=42&&n<=44||46===n||n>=58&&n<=64||94===n||96===n||126===n)||40===(e=n)||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125)&&(t.advance(),t.lastIntValue=n,!0)},tE.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!(33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e)&&(t.lastIntValue=e,t.advance(),!0)},tE.regexp_eatClassControlLetter=function(t){var e=t.current();return(!!tL(e)||95===e)&&(t.lastIntValue=e%32,t.advance(),!0)},tE.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},tE.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;tL(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},tE.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;tz(i=t.current());)t.lastIntValue=16*t.lastIntValue+tR(i),t.advance();return t.pos!==e},tE.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},tE.regexp_eatOctalDigit=function(t){var e=t.current();return tB(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},tE.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var n=0;n=this.input.length)?this.finishToken(x.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},tV.readToken=function(t){return p(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},tV.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-0x35fdc00},tV.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=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(var n=void 0,s=e;(n=C(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},tV.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=t);this.pos8&&t<14||t>=5760&&I.test(String.fromCharCode(t)))++this.pos;else break e}}},tV.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},tV.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(x.ellipsis)):(++this.pos,this.finishToken(x.dot))},tV.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(x.assign,2):this.finishOp(x.slash,1)},tV.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,n=42===t?x.star:x.modulo;return(this.options.ecmaVersion>=7&&42===t&&42===e&&(++i,n=x.starstar,e=this.input.charCodeAt(this.pos+2)),61===e)?this.finishOp(x.assign,i+1):this.finishOp(n,i)},tV.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(x.assign,3):this.finishOp(124===t?x.logicalOR:x.logicalAND,2):61===e?this.finishOp(x.assign,2):this.finishOp(124===t?x.bitwiseOR:x.bitwiseAND,1)},tV.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(x.assign,2):this.finishOp(x.bitwiseXOR,1)},tV.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||w.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(x.incDec,2):61===e?this.finishOp(x.assign,2):this.finishOp(x.plusMin,1)},tV.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i))?this.finishOp(x.assign,i+1):this.finishOp(x.bitShift,i):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(i=2),this.finishOp(x.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},tV.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(x.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(x.arrow)):this.finishOp(61===t?x.eq:x.prefix,1)},tV.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(x.questionDot,2)}if(63===e)return t>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(x.assign,3):this.finishOp(x.coalesce,2)}return this.finishOp(x.question,1)},tV.readToken_numberSign=function(){var t=this.options.ecmaVersion,e=35;if(t>=13&&(++this.pos,p(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(x.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+z(e)+"'")},tV.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(x.parenL);case 41:return++this.pos,this.finishToken(x.parenR);case 59:return++this.pos,this.finishToken(x.semi);case 44:return++this.pos,this.finishToken(x.comma);case 91:return++this.pos,this.finishToken(x.bracketL);case 93:return++this.pos,this.finishToken(x.bracketR);case 123:return++this.pos,this.finishToken(x.braceL);case 125:return++this.pos,this.finishToken(x.braceR);case 58:return++this.pos,this.finishToken(x.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(x.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 63:return this.readToken_question();case 126:return this.finishOp(x.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+z(t)+"'")},tV.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},tV.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(w.test(n)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===n)e=!0;else if("]"===n&&e)e=!1;else if("/"===n&&!e)break;t="\\"===n}++this.pos}var s=this.input.slice(i,this.pos);++this.pos;var r=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(r);var o=this.regexpState||(this.regexpState=new tP(this));o.reset(i,s,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(s,a)}catch(t){}return this.finishToken(x.regexp,{pattern:s,flags:a,value:l})},tV.readInt=function(t,e,i){for(var n=this.options.ecmaVersion>=12&&void 0===e,s=i&&48===this.input.charCodeAt(this.pos),r=this.pos,a=0,o=0,l=0,h=null==e?1/0:e;l=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=t)break;o=u,a=a*t+c}return(n&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===r||null!=e&&this.pos-r!==e)?null:a},tV.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return null==i&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=tF(this.input.slice(e,this.pos)),++this.pos):p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,i)},tV.readNumber=function(t){var e,i=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(i,"Invalid number");var n=this.pos-i>=2&&48===this.input.charCodeAt(i);n&&this.strict&&this.raise(i,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&110===s){var r=tF(this.input.slice(i,this.pos));return++this.pos,p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,r)}n&&/[89]/.test(this.input.slice(i,this.pos))&&(n=!1),46!==s||n||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||n||((43===(s=this.input.charCodeAt(++this.pos))||45===s)&&++this.pos,null===this.readInt(10)&&this.raise(i,"Invalid number")),p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(e=this.input.slice(i,this.pos),n?parseInt(e,8):parseFloat(e.replace(/_/g,"")));return this.finishToken(x.num,a)},tV.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},tV.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===t)break;92===n?(e+=this.input.slice(i,this.pos)+this.readEscapedChar(!1),i=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(S(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(x.string,e)};var tj={};tV.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===tj)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1},tV.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw tj;this.raise(t,e)},tV.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1)){if(this.pos===this.start&&(this.type===x.template||this.type===x.invalidTemplate)){if(36===i)return this.pos+=2,this.finishToken(x.dollarBraceL);return++this.pos,this.finishToken(x.backQuote)}return t+=this.input.slice(e,this.pos),this.finishToken(x.template,t)}if(92===i)t+=this.input.slice(e,this.pos)+this.readEscapedChar(!0),e=this.pos;else if(S(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},tV.readInvalidTemplateToken=function(){for(;this.pos=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(n,8);return s>255&&(s=parseInt(n=n.slice(0,-1),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(s)}if(S(e))return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";return String.fromCharCode(e)}},tV.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return null===i&&this.invalidStringToken(e,"Bad character escape sequence"),i},tV.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,n=this.options.ecmaVersion>=6;this.post.map(t=>"x"===t?{type:"Tile"}:null)),type:"even-r"},solution:[{amount:100,type:"Connections"}]}}),c("16oTl",function(t,e){t.exports=JSON.parse('{"layout":{"tiles":[[{"items":[{"direction":0,"type":"Portal"}],"modifiers":[{"type":"Immutable"}],"type":"Tile"},{"items":[{"direction":0,"type":"Portal"}],"modifiers":[{"type":"Immutable"}],"type":"Tile"},{"items":[{"openings":[null,null,null,{"color":["red","blue"],"type":"Beam"},null,null],"type":"Terminus"}],"modifiers":[{"type":"Rotate"}],"type":"Tile"},{"items":[{"openings":[null,null,null,null,{"color":"green","type":"Beam"},null],"type":"Terminus"}],"modifiers":[{"type":"Lock"},{"type":"Toggle"}],"type":"Tile"}],[{"items":[{"openings":[{"color":"red","type":"Beam"},null,null,null,null,null],"type":"Terminus"}],"modifiers":[{"type":"Lock"},{"type":"Rotate"},{"type":"Toggle"}],"type":"Tile"},{"items":[{"openings":[{"color":"blue","type":"Beam"},null,null,null,null,null],"type":"Terminus"}],"modifiers":[{"type":"Lock"},{"type":"Toggle"}],"type":"Tile"},{"items":[{"direction":0,"type":"Portal"}],"modifiers":[{"type":"Immutable"}],"type":"Tile"}]]},"solution":[{"amount":1,"type":"Connections"}]}')}),c("1nXJz",function(t,e){t.exports=JSON.parse('{"layout":{"tiles":[[{"items":[{"color":"red","openings":[null,null,null,{"on":true,"type":"Beam"},null,null],"type":"Terminus"}],"type":"Tile"}],[{"items":[{"type":"Reflector"}],"modifiers":[{"type":"Rotate"}],"type":"Tile"}],[{"items":[{"color":"green","openings":[null,{"on":true,"type":"Beam"},null,null,null,null],"type":"Terminus"}],"type":"Tile"},{"items":[{"color":"blue","openings":[{"on":true,"type":"Beam"},null,null,null,null,null],"type":"Terminus"}],"type":"Tile"}]]},"solution":[{"amount":999,"type":"Connections"}]}')});let d=document.getElementById("feedback-container"),p=document.getElementById("dialog"),f=document.getElementById("help");document.getElementById("info").addEventListener("click",()=>{p.open||p.showModal()}),document.getElementById("feedback").addEventListener("click",()=>{f.setAttribute("open","true"),d.scrollIntoView(!0)});var g=class{constructor(t){this.selfOptions=t||{},this.pipes={}}options(t){return t&&(this.selfOptions=t),this.selfOptions}pipe(t,e){let i=e;if("string"==typeof t){if(void 0===i)return this.pipes[t];this.pipes[t]=i}if(t&&t.name){if((i=t).processor===this)return i;this.pipes[i.name]=i}return i.processor=this,i}process(t,e){let i,n=t;n.options=this.options();let s=e||t.pipe||"default";for(;s;)void 0!==n.nextAfterChildren&&(n.next=n.nextAfterChildren,n.nextAfterChildren=null),"string"==typeof s&&(s=this.pipe(s)),s.process(n),i=s,s=null,n&&n.next&&(s=(n=n.next).pipe||i);return n.hasResult?n.result:void 0}},m=class{constructor(t){this.name=t,this.filters=[]}process(t){if(!this.processor)throw Error("add this pipe to a processor before using it");let e=this.debug,i=this.filters.length;for(let n=0;nt.filterName)}after(t,...e){let i=this.indexOf(t);return this.filters.splice(i+1,0,...e),this}before(t,...e){let i=this.indexOf(t);return this.filters.splice(i,0,...e),this}replace(t,...e){let i=this.indexOf(t);return this.filters.splice(i,1,...e),this}remove(t){let e=this.indexOf(t);return this.filters.splice(e,1),this}clear(){return this.filters.length=0,this}shouldHaveResult(t){if(!1===t){this.resultCheck=null;return}if(!this.resultCheck)return this.resultCheck=t=>{if(!t.hasResult){console.log(t);let e=Error(`${this.name} failed`);throw e.noResult=!0,e}},this}};class _{setResult(t){return this.result=t,this.hasResult=!0,this}exit(){return this.exiting=!0,this}push(t,e){return t.parent=this,void 0!==e&&(t.childName=e),t.root=this.root||this,t.options=t.options||this.options,this.children?(this.children[this.children.length-1].next=t,this.children.push(t)):(this.children=[t],this.nextAfterChildren=this.next||null,this.next=t),t.next=this,this}}function v(t){if("object"!=typeof t)return t;if(null===t)return null;if(Array.isArray(t))return t.map(v);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return function(t){let e=/^\/(.*)\/([gimyu]*)$/.exec(t.toString());return new RegExp(e[1],e[2])}(t);let e={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=v(t[i]));return e}var y=class extends _{constructor(t,e){super(),this.left=t,this.right=e,this.pipe="diff"}setResult(t){if(this.options.cloneDiffValues&&"object"==typeof t){let e="function"==typeof this.options.cloneDiffValues?this.options.cloneDiffValues:v;"object"==typeof t[0]&&(t[0]=e(t[0])),"object"==typeof t[1]&&(t[1]=e(t[1]))}return super.setResult(t)}},b=class extends _{constructor(t,e){super(),this.left=t,this.delta=e,this.pipe="patch"}},x=class extends _{constructor(t){super(),this.delta=t,this.pipe="reverse"}};let w=function(t){if(t.left===t.right){t.setResult(void 0).exit();return}if(void 0===t.left){if("function"==typeof t.right)throw Error("functions are not supported");t.setResult([t.right]).exit();return}if(void 0===t.right){t.setResult([t.left,0,0]).exit();return}if("function"==typeof t.left||"function"==typeof t.right)throw Error("functions are not supported");if(t.leftType=null===t.left?"null":typeof t.left,t.rightType=null===t.right?"null":typeof t.right,t.leftType!==t.rightType||"boolean"===t.leftType||"number"===t.leftType||("object"===t.leftType&&(t.leftIsArray=Array.isArray(t.left)),"object"===t.rightType&&(t.rightIsArray=Array.isArray(t.right)),t.leftIsArray!==t.rightIsArray)){t.setResult([t.left,t.right]).exit();return}t.left instanceof RegExp&&(t.right instanceof RegExp?t.setResult([t.left.toString(),t.right.toString()]).exit():t.setResult([t.left,t.right]).exit())};w.filterName="trivial";let k=function(t){if(void 0===t.delta){t.setResult(t.left).exit();return}if(t.nested=!Array.isArray(t.delta),t.nested)return;let e=t.delta;if(1===e.length){t.setResult(e[0]).exit();return}if(2===e.length){if(t.left instanceof RegExp){let i=/^\/(.*)\/([gimyu]+)$/.exec(e[1]);if(i){t.setResult(new RegExp(i[1],i[2])).exit();return}}t.setResult(e[1]).exit();return}3===e.length&&0===e[2]&&t.setResult(void 0).exit()};k.filterName="trivial";let S=function(t){if(void 0===t.delta){t.setResult(t.delta).exit();return}if(t.nested=!Array.isArray(t.delta),t.nested)return;let e=t.delta;if(1===e.length){t.setResult([e[0],0,0]).exit();return}if(2===e.length){t.setResult([e[1],e[0]]).exit();return}3===e.length&&0===e[2]&&t.setResult([e[0]]).exit()};S.filterName="trivial";let C=t=>{let e;if(!t||!t.children)return;let i=t.children.length,n=t.result;for(let s=0;s{let e,i;if(t.leftIsArray||"object"!==t.leftType)return;let n=t.left,s=t.right,r=t.options.propertyFilter;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(!r||r(e,t))&&(i=new y(n[e],s[e]),t.push(i,e));for(e in s)Object.prototype.hasOwnProperty.call(s,e)&&(!r||r(e,t))&&void 0===n[e]&&(i=new y(void 0,s[e]),t.push(i,e));if(!t.children||0===t.children.length){t.setResult(void 0).exit();return}t.exit()};I.filterName="objects";let T=function(t){let e,i;if(!t.nested)return;let n=t.delta;if(!n._t){for(e in n)i=new b(t.left[e],n[e]),t.push(i,e);t.exit()}};T.filterName="objects";let E=function(t){let e;if(!t||!t.children||t.delta._t)return;let i=t.left,n=t.children.length;for(let s=0;s{let e;if(!t||!t.children||t.delta._t)return;let i=t.children.length,n={};for(let s=0;st[s-1][r]?--r:--s;return a};var L={get:function(t,e,i,n){let s=n||{};return M(N(t,e,i||O,s),t,e,s)}};function z(t,e,i,n,s){let r=t[i],a=e[n];if(r===a)return!0;if("object"!=typeof r||"object"!=typeof a)return!1;let o=s.objectHash;if(!o)return s.matchByPosition&&i===n;s.hashCache1=s.hashCache1||[];let l=s.hashCache1[i];if(void 0===l&&(s.hashCache1[i]=l=o(r,i)),void 0===l)return!1;s.hashCache2=s.hashCache2||[];let h=s.hashCache2[n];return void 0===h&&(s.hashCache2[n]=h=o(a,n)),void 0!==h&&l===h}let R=function(t){let e,i,n,s,r;if(!t.leftIsArray)return;let a={objectHash:t.options&&t.options.objectHash,matchByPosition:t.options&&t.options.matchByPosition},o=0,l=0,h=t.left,u=t.right,c=h.length,d=u.length;for(c>0&&d>0&&!a.objectHash&&"boolean"!=typeof a.matchByPosition&&(a.matchByPosition=!function(t,e,i,n){for(let s=0;sg.indices1.indexOf(e-o)&&(r[`_${e}`]=[h[e],0,0],m.push(e));let _=!0;t.options&&t.options.arrays&&!1===t.options.arrays.detectMove&&(_=!1);let v=!1;t.options&&t.options.arrays&&t.options.arrays.includeValueOnMove&&(v=!0);let b=m.length;for(e=o;e0){for(let c=0;ct-e,numericallyBy:t=>(e,i)=>e[t]-i[t]},D=function(t){let e,i,n;if(!t.nested)return;let s=t.delta;if("a"!==s._t)return;let r=t.left,a=[],o=[],l=[];for(e in s)if("_t"!==e){if("_"===e[0]){let t=e;if(0===s[t][2]||3===s[t][2])a.push(parseInt(e.slice(1),10));else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${s[t][2]}`)}else{let t=e;1===s[t].length?o.push({index:parseInt(t,10),value:s[t][0]}):l.push({index:parseInt(t,10),delta:s[t]})}}for(e=(a=a.sort(B.numerically)).length-1;e>=0;e--){i=a[e];let t=s[`_${i}`],n=r.splice(i,1)[0];3===t[2]&&o.push({index:t[1],value:n})}let h=(o=o.sort(B.numericallyBy("index"))).length;for(e=0;e0)for(e=0;e{if("string"==typeof e&&"_"===e[0])return parseInt(e.substring(1),10);if(Array.isArray(i)&&0===i[2])return`_${e}`;let n=+e;for(let i in t){let s=t[i];if(Array.isArray(s)){if(3===s[2]){let t=parseInt(i.substring(1),10),r=s[1];if(r===+e)return t;t<=n&&r>n?n++:t>=n&&r{let e;if(!t||!t.children)return;let i=t.delta;if("a"!==i._t)return;let n=t.children.length,s={_t:"a"};for(let r=0;r=0;)t[e]=0}let Y=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Q=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),tt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),te=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ti=Array(576);X(ti);let tn=Array(60);X(tn);let ts=Array(512);X(ts);let tr=Array(256);X(tr);let ta=Array(29);X(ta);let to=Array(30);function tl(t,e,i,n,s){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=s,this.has_stree=t&&t.length}function th(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}X(to);let tu=t=>t<256?ts[t]:ts[256+(t>>>7)],tc=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},td=(t,e,i)=>{t.bi_valid>16-i?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=e<{td(t,i[2*e],i[2*e+1])},tf=(t,e)=>{let i=0;do i|=1&t,t>>>=1,i<<=1;while(--e>0)return i>>>1},tg=t=>{16===t.bi_valid?(tc(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)},tm=(t,e)=>{let i,n,s,r,a,o;let l=e.dyn_tree,h=e.max_code,u=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,f=e.stat_desc.max_length,g=0;for(r=0;r<=15;r++)t.bl_count[r]=0;for(l[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)(r=l[2*l[2*(n=t.heap[i])+1]+1]+1)>f&&(r=f,g++),l[2*n+1]=r,!(n>h)&&(t.bl_count[r]++,a=0,n>=p&&(a=d[n-p]),o=l[2*n],t.opt_len+=o*(r+a),c&&(t.static_len+=o*(u[2*n+1]+a)));if(0!==g){do{for(r=f-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[f]--,g-=2}while(g>0)for(r=f;0!==r;r--)for(n=t.bl_count[r];0!==n;)!((s=t.heap[--i])>h)&&(l[2*s+1]!==r&&(t.opt_len+=(r-l[2*s+1])*l[2*s],l[2*s+1]=r),n--)}},t_=(t,e,i)=>{let n,s;let r=Array(16),a=0;for(n=1;n<=15;n++)a=a+i[n-1]<<1,r[n]=a;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=tf(r[e]++,e))}},tv=()=>{let n,s,r,a,o;let l=Array(16);for(a=0,r=0;a<28;a++)for(n=0,ta[a]=r;n<1<>=7;a<30;a++)for(n=0,to[a]=o<<7;n<1<{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},tb=t=>{t.bi_valid>8?tc(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},tx=(t,e,i,n)=>{let s=2*e,r=2*i;return t[s]{let n=t.heap[i],s=i<<1;for(;s<=t.heap_len&&(s{let n,s,r,a;let o=0;if(0!==t.sym_next)do n=(255&t.pending_buf[t.sym_buf+o++])+((255&t.pending_buf[t.sym_buf+o++])<<8),s=t.pending_buf[t.sym_buf+o++],0===n?tp(t,s,e):(tp(t,(r=tr[s])+256+1,e),0!==(a=Y[r])&&td(t,s-=ta[r],a),tp(t,r=tu(--n),i),0!==(a=Q[r])&&td(t,n-=to[r],a));while(o{let i,n,s;let r=e.dyn_tree,a=e.stat_desc.static_tree,o=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(i=0,t.heap_len=0,t.heap_max=573;i>1;i>=1;i--)tw(t,r,i);s=l;do i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],tw(t,r,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,r[2*s]=r[2*i]+r[2*n],t.depth[s]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,r[2*i+1]=r[2*n+1]=s,t.heap[1]=s++,tw(t,r,1);while(t.heap_len>=2)t.heap[--t.heap_max]=t.heap[1],tm(t,e),t_(r,h,t.bl_count)},tC=(t,e,i)=>{let n,s;let r=-1,a=e[1],o=0,l=7,h=4;for(0===a&&(l=138,h=3),e[(i+1)*2+1]=65535,n=0;n<=i;n++)s=a,a=e[(n+1)*2+1],++o{let n,s;let r=-1,a=e[1],o=0,l=7,h=4;for(0===a&&(l=138,h=3),n=0;n<=i;n++)if(s=a,a=e[(n+1)*2+1],!(++o{let e;for(tC(t,t.dyn_ltree,t.l_desc.max_code),tC(t,t.dyn_dtree,t.d_desc.max_code),tS(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*te[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e},tE=(t,e,i,n)=>{let s;for(td(t,e-257,5),td(t,i-1,5),td(t,n-4,4),s=0;s{let e,i=0xf3ffc07f;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0},tP=!1,tO=(t,e,i,n)=>{td(t,0+(n?1:0),3),tb(t),tc(t,i),tc(t,~i),i&&t.pending_buf.set(t.window.subarray(e,e+i),t.pending),t.pending+=i};var tN={_tr_init:n=>{tP||(tv(),tP=!0),n.l_desc=new th(n.dyn_ltree,t),n.d_desc=new th(n.dyn_dtree,e),n.bl_desc=new th(n.bl_tree,i),n.bi_buf=0,n.bi_valid=0,ty(n)},_tr_stored_block:tO,_tr_flush_block:(t,e,i,n)=>{let s,r;let a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=tA(t)),tS(t,t.l_desc),tS(t,t.d_desc),a=tT(t),s=t.opt_len+3+7>>>3,(r=t.static_len+3+7>>>3)<=s&&(s=r)):s=r=i+5,i+4<=s&&-1!==e?tO(t,e,i,n):4===t.strategy||r===s?(td(t,2+(n?1:0),3),tk(t,ti,tn)):(td(t,4+(n?1:0),3),tE(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),tk(t,t.dyn_ltree,t.dyn_dtree)),ty(t),n&&tb(t)},_tr_tally:(t,e,i)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=i,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[(tr[i]+256+1)*2]++,t.dyn_dtree[2*tu(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{td(t,2,3),tp(t,256,ti),tg(t)}},tM=(t,e,i,n)=>{let s=65535&t|0,r=t>>>16&65535|0,a=0;for(;0!==i;){a=i>2e3?2e3:i,i-=a;do r=r+(s=s+e[n++]|0)|0;while(--a)s%=65521,r%=65521}return s|r<<16|0};let tL=new Uint32Array((()=>{let t,e=[];for(var i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?0xedb88320^t>>>1:t>>>1;e[i]=t}return e})());var tz=(t,e,i,n)=>{let s=n+i;t^=-1;for(let i=n;i>>8^tL[(t^e[i])&255];return -1^t},tR={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},tB={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};let{_tr_init:tD,_tr_stored_block:tV,_tr_flush_block:tF,_tr_tally:tj,_tr_align:tU}=tN,{Z_NO_FLUSH:tq,Z_PARTIAL_FLUSH:tZ,Z_FULL_FLUSH:tH,Z_FINISH:tG,Z_BLOCK:tW,Z_OK:t$,Z_STREAM_END:tK,Z_STREAM_ERROR:tJ,Z_DATA_ERROR:tX,Z_BUF_ERROR:tY,Z_DEFAULT_COMPRESSION:tQ,Z_FILTERED:t0,Z_HUFFMAN_ONLY:t1,Z_RLE:t2,Z_FIXED:t5,Z_DEFAULT_STRATEGY:t3,Z_UNKNOWN:t6,Z_DEFLATED:t4}=tB,t9=(t,e)=>(t.msg=tR[e],e),t8=t=>2*t-(t>4?9:0),t7=t=>{let e=t.length;for(;--e>=0;)t[e]=0},et=t=>{let e,i,n;let s=t.w_size;n=e=t.hash_size;do i=t.head[--n],t.head[n]=i>=s?i-s:0;while(--e)n=e=s;do i=t.prev[--n],t.prev[n]=i>=s?i-s:0;while(--e)},ee=(t,e,i)=>(e<{let e=t.state,i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+i),t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))},en=(t,e)=>{tF(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ei(t.strm)},es=(t,e)=>{t.pending_buf[t.pending++]=e},er=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},ea=(t,e,i,n)=>{let s=t.avail_in;return(s>n&&(s=n),0===s)?0:(t.avail_in-=s,e.set(t.input.subarray(t.next_in,t.next_in+s),i),1===t.state.wrap?t.adler=tM(t.adler,e,s,i):2===t.state.wrap&&(t.adler=tz(t.adler,e,s,i)),t.next_in+=s,t.total_in+=s,s)},eo=(t,e)=>{let i,n,s=t.max_chain_length,r=t.strstart,a=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,u=t.w_mask,c=t.prev,d=t.strstart+258,p=h[r+a-1],f=h[r+a];t.prev_length>=t.good_match&&(s>>=2),o>t.lookahead&&(o=t.lookahead);do{if(h[(i=e)+a]!==f||h[i+a-1]!==p||h[i]!==h[r]||h[++i]!==h[r+1])continue;r+=2,i++;do;while(h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&ra){if(t.match_start=e,a=n,n>=o)break;p=h[r+a-1],f=h[r+a]}}while((e=c[e&u])>l&&0!=--s)return a<=t.lookahead?a:t.lookahead},el=t=>{let e,i,n;let s=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-262)&&(t.window.set(t.window.subarray(s,s+s-i),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,t.insert>t.strstart&&(t.insert=t.strstart),et(t),i+=s),0===t.strm.avail_in)break;if(e=ea(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=e,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ee(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ee(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},eh=(t,e)=>{let i=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,n,s,r,a=0,o=t.strm.avail_in;do{if(n=65535,r=t.bi_valid+42>>3,t.strm.avail_out(s=t.strstart-t.block_start)+t.strm.avail_in&&(n=s+t.strm.avail_in),n>r&&(n=r),n>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,ei(t.strm),s&&(s>n&&(s=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+s),t.strm.next_out),t.strm.next_out+=s,t.strm.avail_out-=s,t.strm.total_out+=s,t.block_start+=s,n-=s),n&&(ea(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(0===a)return((o-=t.strm.avail_in)&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_waterr&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(ea(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water>3,i=(r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r)>t.w_size?t.w_size:r,((s=t.strstart-t.block_start)>=i||(s||e===tG)&&e!==tq&&0===t.strm.avail_in&&s<=r)&&(n=s>r?r:s,a=e===tG&&0===t.strm.avail_in&&n===s?1:0,tV(t,t.block_start,n,a),t.block_start+=n,ei(t.strm)),a?3:1)},eu=(t,e)=>{let i,n;for(;;){if(t.lookahead<262){if(el(t),t.lookahead<262&&e===tq)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-262&&(t.match_length=eo(t,i)),t.match_length>=3){if(n=tj(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do t.strstart++,t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(0!=--t.match_length)t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ee(t,t.ins_h,t.window[t.strstart+1])}else n=tj(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(en(t,!1),0===t.strm.avail_out))return 1}return(t.insert=t.strstart<2?t.strstart:2,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2},ec=(t,e)=>{let i,n,s;for(;;){if(t.lookahead<262){if(el(t),t.lookahead<262&&e===tq)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==i&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){s=t.strstart+t.lookahead-3,n=tj(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=s&&(t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(0!=--t.prev_length)if(t.match_available=0,t.match_length=2,t.strstart++,n&&(en(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=tj(t,0,t.window[t.strstart-1]))&&en(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return(t.match_available&&(n=tj(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2},ed=(t,e)=>{let i,n,s,r;let a=t.window;for(;;){if(t.lookahead<=258){if(el(t),t.lookahead<=258&&e===tq)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[s=t.strstart-1])===a[++s]&&n===a[++s]&&n===a[++s]){r=t.strstart+258;do;while(n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&st.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=tj(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=tj(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(en(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2},ep=(t,e)=>{let i;for(;;){if(0===t.lookahead&&(el(t),0===t.lookahead)){if(e===tq)return 1;break}if(t.match_length=0,i=tj(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(en(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2};function ef(t,e,i,n,s){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=s}let eg=[new ef(0,0,0,0,eh),new ef(4,4,8,4,eu),new ef(4,5,16,8,eu),new ef(4,6,32,32,eu),new ef(4,4,16,16,ec),new ef(8,16,32,32,ec),new ef(8,16,128,128,ec),new ef(8,32,128,256,ec),new ef(32,128,258,1024,ec),new ef(32,258,258,4096,ec)],em=t=>{t.window_size=2*t.w_size,t7(t.head),t.max_lazy_match=eg[t.level].max_lazy,t.good_match=eg[t.level].good_length,t.nice_match=eg[t.level].nice_length,t.max_chain_length=eg[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0};function e_(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=t4,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),t7(this.dyn_ltree),t7(this.dyn_dtree),t7(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),t7(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),t7(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}let ev=t=>{if(!t)return 1;let e=t.state;return e&&e.strm===t&&(42===e.status||57===e.status||69===e.status||73===e.status||91===e.status||103===e.status||113===e.status||666===e.status)?0:1},ey=t=>{if(ev(t))return t9(t,tJ);t.total_in=t.total_out=0,t.data_type=t6;let e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,tD(e),t$},eb=t=>{let e=ey(t);return e===t$&&em(t.state),e};var ex={deflateInit2:(t,e,i,n,s,r)=>{if(!t)return tJ;let a=1;if(e===tQ&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),s<1||s>9||i!==t4||n<8||n>15||e<0||e>9||r<0||r>t5||8===n&&1!==a)return t9(t,tJ);8===n&&(n=9);let o=new e_;return t.state=o,o.strm=t,o.status=42,o.wrap=a,o.gzhead=null,o.w_bits=n,o.w_size=1<ev(t)||2!==t.state.wrap?tJ:(t.state.gzhead=e,t$),deflate:(t,e)=>{if(ev(t)||e>tW||e<0)return t?t9(t,tJ):tJ;let i=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===i.status&&e!==tG)return t9(t,0===t.avail_out?tY:tJ);let n=i.last_flush;if(i.last_flush=e,0!==i.pending){if(ei(t),0===t.avail_out)return i.last_flush=-1,t$}else if(0===t.avail_in&&t8(e)<=t8(n)&&e!==tG)return t9(t,tY);if(666===i.status&&0!==t.avail_in)return t9(t,tY);if(42===i.status&&0===i.wrap&&(i.status=113),42===i.status){let e=t4+(i.w_bits-8<<4)<<8;if(e|=(i.strategy>=t1||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(e|=32),er(i,e+=31-e%31),0!==i.strstart&&(er(i,t.adler>>>16),er(i,65535&t.adler)),t.adler=1,i.status=113,ei(t),0!==i.pending)return i.last_flush=-1,t$}if(57===i.status){if(t.adler=0,es(i,31),es(i,139),es(i,8),i.gzhead)es(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),es(i,255&i.gzhead.time),es(i,i.gzhead.time>>8&255),es(i,i.gzhead.time>>16&255),es(i,i.gzhead.time>>24&255),es(i,9===i.level?2:i.strategy>=t1||i.level<2?4:0),es(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(es(i,255&i.gzhead.extra.length),es(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=tz(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69;else if(es(i,0),es(i,0),es(i,0),es(i,0),es(i,0),es(i,9===i.level?2:i.strategy>=t1||i.level<2?4:0),es(i,3),i.status=113,ei(t),0!==i.pending)return i.last_flush=-1,t$}if(69===i.status){if(i.gzhead.extra){let e=i.pending,n=(65535&i.gzhead.extra.length)-i.gzindex;for(;i.pending+n>i.pending_buf_size;){let s=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+s),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&&i.pending>e&&(t.adler=tz(t.adler,i.pending_buf,i.pending-e,e)),i.gzindex+=s,ei(t),0!==i.pending)return i.last_flush=-1,t$;e=0,n-=s}let s=new Uint8Array(i.gzhead.extra);i.pending_buf.set(s.subarray(i.gzindex,i.gzindex+n),i.pending),i.pending+=n,i.gzhead.hcrc&&i.pending>e&&(t.adler=tz(t.adler,i.pending_buf,i.pending-e,e)),i.gzindex=0}i.status=73}if(73===i.status){if(i.gzhead.name){let e,n=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n)),ei(t),0!==i.pending)return i.last_flush=-1,t$;n=0}e=i.gzindexn&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=91}if(91===i.status){if(i.gzhead.comment){let e,n=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n)),ei(t),0!==i.pending)return i.last_flush=-1,t$;n=0}e=i.gzindexn&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n))}i.status=103}if(103===i.status){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size&&(ei(t),0!==i.pending))return i.last_flush=-1,t$;es(i,255&t.adler),es(i,t.adler>>8&255),t.adler=0}if(i.status=113,ei(t),0!==i.pending)return i.last_flush=-1,t$}if(0!==t.avail_in||0!==i.lookahead||e!==tq&&666!==i.status){let n=0===i.level?eh(i,e):i.strategy===t1?ep(i,e):i.strategy===t2?ed(i,e):eg[i.level].func(i,e);if((3===n||4===n)&&(i.status=666),1===n||3===n)return 0===t.avail_out&&(i.last_flush=-1),t$;if(2===n&&(e===tZ?tU(i):e!==tW&&(tV(i,0,0,!1),e===tH&&(t7(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ei(t),0===t.avail_out))return i.last_flush=-1,t$}return e!==tG?t$:i.wrap<=0?tK:(2===i.wrap?(es(i,255&t.adler),es(i,t.adler>>8&255),es(i,t.adler>>16&255),es(i,t.adler>>24&255),es(i,255&t.total_in),es(i,t.total_in>>8&255),es(i,t.total_in>>16&255),es(i,t.total_in>>24&255)):(er(i,t.adler>>>16),er(i,65535&t.adler)),ei(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?t$:tK)},deflateEnd:t=>{if(ev(t))return tJ;let e=t.state.status;return t.state=null,113===e?t9(t,tX):t$},deflateSetDictionary:(t,e)=>{let i=e.length;if(ev(t))return tJ;let n=t.state,s=n.wrap;if(2===s||1===s&&42!==n.status||n.lookahead)return tJ;if(1===s&&(t.adler=tM(t.adler,e,i,0)),n.wrap=0,i>=n.w_size){0===s&&(t7(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(i-n.w_size,i),0),e=t,i=n.w_size}let r=t.avail_in,a=t.next_in,o=t.input;for(t.avail_in=i,t.next_in=0,t.input=e,el(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do n.ins_h=ee(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++;while(--e)n.strstart=t,n.lookahead=2,el(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=a,t.input=o,t.avail_in=r,n.wrap=s,t$}};let ew=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var ek={assign:function(t){let e=Array.prototype.slice.call(arguments,1);for(;e.length;){let i=e.shift();if(i){if("object"!=typeof i)throw TypeError(i+"must be non-object");for(let e in i)ew(i,e)&&(t[e]=i[e])}}return t},flattenChunks:t=>{let e=0;for(let i=0,n=t.length;i=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;eC[254]=eC[254]=1;let eI=(t,e)=>{if(e<65534&&t.subarray&&eS)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let i="";for(let n=0;n{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,i,n,s,r,a=t.length,o=0;for(s=0;s>>6:(i<65536?e[r++]=224|i>>>12:(e[r++]=240|i>>>18,e[r++]=128|i>>>12&63),e[r++]=128|i>>>6&63),e[r++]=128|63&i);return e},buf2string:(t,e)=>{let i,n;let s=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let r=Array(2*s);for(n=0,i=0;i4){r[n++]=65533,i+=a-1;continue}for(e&=2===a?31:3===a?15:7;a>1&&i1){r[n++]=65533;continue}e<65536?r[n++]=e:(e-=65536,r[n++]=55296|e>>10&1023,r[n++]=56320|1023&e)}return eI(r,n)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let i=e-1;for(;i>=0&&(192&t[i])==128;)i--;return i<0||0===i?e:i+eC[t[i]]>e?i:e}},eE=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};let eA=Object.prototype.toString,{Z_NO_FLUSH:eP,Z_SYNC_FLUSH:eO,Z_FULL_FLUSH:eN,Z_FINISH:eM,Z_OK:eL,Z_STREAM_END:ez,Z_DEFAULT_COMPRESSION:eR,Z_DEFAULT_STRATEGY:eB,Z_DEFLATED:eD}=tB;function eV(t){this.options=ek.assign({level:eR,method:eD,chunkSize:16384,windowBits:15,memLevel:8,strategy:eB},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eE,this.strm.avail_out=0;let i=ex.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(i!==eL)throw Error(tR[i]);if(e.header&&ex.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?eT.string2buf(e.dictionary):"[object ArrayBuffer]"===eA.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(i=ex.deflateSetDictionary(this.strm,t))!==eL)throw Error(tR[i]);this._dict_set=!0}}function eF(t,e){let i=new eV(e);if(i.push(t,!0),i.err)throw i.msg||tR[i.err];return i.result}eV.prototype.push=function(t,e){let i,n;let s=this.strm,r=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?eM:eP,"string"==typeof t?s.input=eT.string2buf(t):"[object ArrayBuffer]"===eA.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;;){if(0===s.avail_out&&(s.output=new Uint8Array(r),s.next_out=0,s.avail_out=r),(n===eO||n===eN)&&s.avail_out<=6){this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;continue}if((i=ex.deflate(s,n))===ez)return s.next_out>0&&this.onData(s.output.subarray(0,s.next_out)),i=ex.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===eL;if(0===s.avail_out){this.onData(s.output);continue}if(n>0&&s.next_out>0){this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;continue}if(0===s.avail_in)break}return!0},eV.prototype.onData=function(t){this.chunks.push(t)},eV.prototype.onEnd=function(t){t===eL&&(this.result=ek.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ej=function(t,e){let i,n,s,r,a,o,l,h,u,c,d,p,f,g,m,_,v,y,b,x,w,k,S,C;let I=t.state;i=t.next_in,S=t.input,n=i+(t.avail_in-5),s=t.next_out,C=t.output,r=s-(e-t.avail_out),a=s+(t.avail_out-257),o=I.dmax,l=I.wsize,h=I.whave,u=I.wnext,c=I.window,d=I.hold,p=I.bits,f=I.lencode,g=I.distcode,m=(1<>>=y=v>>>24,p-=y,0==(y=v>>>16&255))C[s++]=65535&v;else if(16&y)for(b=65535&v,(y&=15)&&(p>>=y,p-=y),p<15&&(d+=S[i++]<>>=y=v>>>24,p-=y,16&(y=v>>>16&255)){if(x=65535&v,p<(y&=15)&&(d+=S[i++]<o){t.msg="invalid distance too far back",I.mode=16209;break i}if(d>>>=y,p-=y,x>(y=s-r)){if((y=x-y)>h&&I.sane){t.msg="invalid distance too far back",I.mode=16209;break i}if(w=0,k=c,0===u){if(w+=l-y,y2;)C[s++]=k[w++],C[s++]=k[w++],C[s++]=k[w++],b-=3;b&&(C[s++]=k[w++],b>1&&(C[s++]=k[w++]))}else{w=s-x;do C[s++]=C[w++],C[s++]=C[w++],C[s++]=C[w++],b-=3;while(b>2)b&&(C[s++]=C[w++],b>1&&(C[s++]=C[w++]))}}else if((64&y)==0){v=g[(65535&v)+(d&(1<>3,p-=b<<3,d&=(1<{let l,h,u,c,d,p,f,g,m;let _=o.bits,v=0,y=0,b=0,x=0,w=0,k=0,S=0,C=0,I=0,T=0,E=null,A=new Uint16Array(16),P=new Uint16Array(16),O=null;for(v=0;v<=15;v++)A[v]=0;for(y=0;y=1&&0===A[x];x--);if(w>x&&(w=x),0===x)return s[r++]=0x1400000,s[r++]=0x1400000,o.bits=1,0;for(b=1;b0&&(0===t||1!==x))return -1;for(v=1,P[1]=0;v<15;v++)P[v+1]=P[v]+A[v];for(y=0;y852||2===t&&I>592)return 1;for(;;){f=v-S,a[y]+1=p?(g=O[a[y]-p],m=E[a[y]-p]):(g=96,m=0),l=1<>S)+(h-=l)]=f<<24|g<<16|m|0;while(0!==h)for(l=1<>=1;if(0!==l?(T&=l-1,T+=l):T=0,y++,0==--A[v]){if(v===x)break;v=e[i+a[y]]}if(v>w&&(T&c)!==u){for(0===S&&(S=w),d+=b,C=1<<(k=v-S);k+S852||2===t&&I>592)return 1;s[u=T&c]=w<<24|k<<16|d-r|0}}return 0!==T&&(s[d+T]=v-S<<24|4194304),o.bits=w,0};let{Z_FINISH:eW,Z_BLOCK:e$,Z_TREES:eK,Z_OK:eJ,Z_STREAM_END:eX,Z_NEED_DICT:eY,Z_STREAM_ERROR:eQ,Z_DATA_ERROR:e0,Z_MEM_ERROR:e1,Z_BUF_ERROR:e2,Z_DEFLATED:e5}=tB,e3=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function e6(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}let e4=t=>{if(!t)return 1;let e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},e9=t=>{if(e4(t))return eQ;let e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,eJ},e8=t=>{if(e4(t))return eQ;let e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,e9(t)},e7=(t,e)=>{let i;if(e4(t))return eQ;let n=t.state;return(e<0?(i=0,e=-e):(i=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15))?eQ:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,e8(t))},it=!0,ie=t=>{if(it){n=new Int32Array(512),s=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(eG(1,t.lens,0,288,n,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;eG(2,t.lens,0,32,s,0,t.work,{bits:5}),it=!1}t.lencode=n,t.lenbits=9,t.distcode=s,t.distbits=5},ii=(t,e,i,n)=>{let s;let r=t.state;return null===r.window&&(r.wsize=1<=r.wsize?(r.window.set(e.subarray(i-r.wsize,i),0),r.wnext=0,r.whave=r.wsize):((s=r.wsize-r.wnext)>n&&(s=n),r.window.set(e.subarray(i-n,i-n+s),r.wnext),(n-=s)?(r.window.set(e.subarray(i-n,i),0),r.wnext=n,r.whave=r.wsize):(r.wnext+=s,r.wnext===r.wsize&&(r.wnext=0),r.whave{if(!t)return eQ;let i=new e6;t.state=i,i.strm=t,i.window=null,i.mode=16180;let n=e7(t,e);return n!==eJ&&(t.state=null),n},inflate:(t,e)=>{let i,n,s,r,a,o,l,h,u,c,d,p,f,g,m,_,v,y,b,x,w,k,S,C;let I=0,T=new Uint8Array(4),E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(e4(t)||!t.output||!t.input&&0!==t.avail_in)return eQ;16191===(i=t.state).mode&&(i.mode=16192),a=t.next_out,s=t.output,l=t.avail_out,r=t.next_in,n=t.input,o=t.avail_in,h=i.hold,u=i.bits,c=o,d=l,k=eJ;n:for(;;)switch(i.mode){case 16180:if(0===i.wrap){i.mode=16192;break}for(;u<16;){if(0===o)break n;o--,h+=n[r++]<>>8&255,i.check=tz(i.check,T,2,0),h=0,u=0,i.mode=16181;break}if(i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",i.mode=16209;break}if((15&h)!==e5){t.msg="unknown compression method",i.mode=16209;break}if(h>>>=4,u-=4,w=(15&h)+8,0===i.wbits&&(i.wbits=w),w>15||w>i.wbits){t.msg="invalid window size",i.mode=16209;break}i.dmax=1<>8&1),512&i.flags&&4&i.wrap&&(T[0]=255&h,T[1]=h>>>8&255,i.check=tz(i.check,T,2,0)),h=0,u=0,i.mode=16182;case 16182:for(;u<32;){if(0===o)break n;o--,h+=n[r++]<>>8&255,T[2]=h>>>16&255,T[3]=h>>>24&255,i.check=tz(i.check,T,4,0)),h=0,u=0,i.mode=16183;case 16183:for(;u<16;){if(0===o)break n;o--,h+=n[r++]<>8),512&i.flags&&4&i.wrap&&(T[0]=255&h,T[1]=h>>>8&255,i.check=tz(i.check,T,2,0)),h=0,u=0,i.mode=16184;case 16184:if(1024&i.flags){for(;u<16;){if(0===o)break n;o--,h+=n[r++]<>>8&255,i.check=tz(i.check,T,2,0)),h=0,u=0}else i.head&&(i.head.extra=null);i.mode=16185;case 16185:if(1024&i.flags&&((p=i.length)>o&&(p=o),p&&(i.head&&(w=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(n.subarray(r,r+p),w)),512&i.flags&&4&i.wrap&&(i.check=tz(i.check,n,p,r)),o-=p,r+=p,i.length-=p),i.length))break n;i.length=0,i.mode=16186;case 16186:if(2048&i.flags){if(0===o)break n;p=0;do w=n[r+p++],i.head&&w&&i.length<65536&&(i.head.name+=String.fromCharCode(w));while(w&&p>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=16191;break;case 16189:for(;u<32;){if(0===o)break n;o--,h+=n[r++]<>>=7&u,u-=7&u,i.mode=16206;break}for(;u<3;){if(0===o)break n;o--,h+=n[r++]<>>=1)){case 0:i.mode=16193;break;case 1:if(ie(i),i.mode=16199,e===eK){h>>>=2,u-=2;break n}break;case 2:i.mode=16196;break;case 3:t.msg="invalid block type",i.mode=16209}h>>>=2,u-=2;break;case 16193:for(h>>>=7&u,u-=7&u;u<32;){if(0===o)break n;o--,h+=n[r++]<>>16^65535)){t.msg="invalid stored block lengths",i.mode=16209;break}if(i.length=65535&h,h=0,u=0,i.mode=16194,e===eK)break n;case 16194:i.mode=16195;case 16195:if(p=i.length){if(p>o&&(p=o),p>l&&(p=l),0===p)break n;s.set(n.subarray(r,r+p),a),o-=p,r+=p,l-=p,a+=p,i.length-=p;break}i.mode=16191;break;case 16196:for(;u<14;){if(0===o)break n;o--,h+=n[r++]<>>=5,u-=5,i.ndist=(31&h)+1,h>>>=5,u-=5,i.ncode=(15&h)+4,h>>>=4,u-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=16209;break}i.have=0,i.mode=16197;case 16197:for(;i.have>>=3,u-=3}for(;i.have<19;)i.lens[E[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,S={bits:i.lenbits},k=eG(0,i.lens,0,19,i.lencode,0,i.work,S),i.lenbits=S.bits,k){t.msg="invalid code lengths set",i.mode=16209;break}i.have=0,i.mode=16198;case 16198:for(;i.have>>24,_=I>>>16&255,v=65535&I,!(m<=u);){if(0===o)break n;o--,h+=n[r++]<>>=m,u-=m,i.lens[i.have++]=v;else{if(16===v){for(C=m+2;u>>=m,u-=m,0===i.have){t.msg="invalid bit length repeat",i.mode=16209;break}w=i.lens[i.have-1],p=3+(3&h),h>>>=2,u-=2}else if(17===v){for(C=m+3;u>>=m,u-=m,w=0,p=3+(7&h),h>>>=3,u-=3}else{for(C=m+7;u>>=m,u-=m,w=0,p=11+(127&h),h>>>=7,u-=7}if(i.have+p>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=16209;break}for(;p--;)i.lens[i.have++]=w}}if(16209===i.mode)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=16209;break}if(i.lenbits=9,S={bits:i.lenbits},k=eG(1,i.lens,0,i.nlen,i.lencode,0,i.work,S),i.lenbits=S.bits,k){t.msg="invalid literal/lengths set",i.mode=16209;break}if(i.distbits=6,i.distcode=i.distdyn,S={bits:i.distbits},k=eG(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,S),i.distbits=S.bits,k){t.msg="invalid distances set",i.mode=16209;break}if(i.mode=16199,e===eK)break n;case 16199:i.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=r,t.avail_in=o,i.hold=h,i.bits=u,ej(t,d),a=t.next_out,s=t.output,l=t.avail_out,r=t.next_in,n=t.input,o=t.avail_in,h=i.hold,u=i.bits,16191===i.mode&&(i.back=-1);break}for(i.back=0;m=(I=i.lencode[h&(1<>>24,_=I>>>16&255,v=65535&I,!(m<=u);){if(0===o)break n;o--,h+=n[r++]<>y)])>>>24,_=I>>>16&255,v=65535&I,!(y+m<=u);){if(0===o)break n;o--,h+=n[r++]<>>=y,u-=y,i.back+=y}if(h>>>=m,u-=m,i.back+=m,i.length=v,0===_){i.mode=16205;break}if(32&_){i.back=-1,i.mode=16191;break}if(64&_){t.msg="invalid literal/length code",i.mode=16209;break}i.extra=15&_,i.mode=16201;case 16201:if(i.extra){for(C=i.extra;u>>=i.extra,u-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=16202;case 16202:for(;m=(I=i.distcode[h&(1<>>24,_=I>>>16&255,v=65535&I,!(m<=u);){if(0===o)break n;o--,h+=n[r++]<>y)])>>>24,_=I>>>16&255,v=65535&I,!(y+m<=u);){if(0===o)break n;o--,h+=n[r++]<>>=y,u-=y,i.back+=y}if(h>>>=m,u-=m,i.back+=m,64&_){t.msg="invalid distance code",i.mode=16209;break}i.offset=v,i.extra=15&_,i.mode=16203;case 16203:if(i.extra){for(C=i.extra;u>>=i.extra,u-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=16209;break}i.mode=16204;case 16204:if(0===l)break n;if(p=d-l,i.offset>p){if((p=i.offset-p)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=16209;break}p>i.wnext?(p-=i.wnext,f=i.wsize-p):f=i.wnext-p,p>i.length&&(p=i.length),g=i.window}else g=s,f=a-i.offset,p=i.length;p>l&&(p=l),l-=p,i.length-=p;do s[a++]=g[f++];while(--p)0===i.length&&(i.mode=16200);break;case 16205:if(0===l)break n;s[a++]=i.length,l--,i.mode=16200;break;case 16206:if(i.wrap){for(;u<32;){if(0===o)break n;o--,h|=n[r++]<{if(e4(t))return eQ;let e=t.state;return e.window&&(e.window=null),t.state=null,eJ},inflateGetHeader:(t,e)=>{if(e4(t))return eQ;let i=t.state;return(2&i.wrap)==0?eQ:(i.head=e,e.done=!1,eJ)},inflateSetDictionary:(t,e)=>{let i;let n=e.length;return e4(t)||0!==(i=t.state).wrap&&16190!==i.mode?eQ:16190===i.mode&&tM(1,e,n,0)!==i.check?e0:ii(t,e,n,n)?(i.mode=16210,e1):(i.havedict=1,eJ)}},ir=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};let ia=Object.prototype.toString,{Z_NO_FLUSH:io,Z_FINISH:il,Z_OK:ih,Z_STREAM_END:iu,Z_NEED_DICT:ic,Z_STREAM_ERROR:id,Z_DATA_ERROR:ip,Z_MEM_ERROR:ig}=tB;function im(t){this.options=ek.assign({chunkSize:65536,windowBits:15,to:""},t||{});let e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits)==0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eE,this.strm.avail_out=0;let i=is.inflateInit2(this.strm,e.windowBits);if(i!==ih||(this.header=new ir,is.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=eT.string2buf(e.dictionary):"[object ArrayBuffer]"===ia.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(i=is.inflateSetDictionary(this.strm,e.dictionary))!==ih)))throw Error(tR[i])}function i_(t,e){let i=new im(e);if(i.push(t),i.err)throw i.msg||tR[i.err];return i.result}im.prototype.push=function(t,e){let i,n,s;let r=this.strm,a=this.options.chunkSize,o=this.options.dictionary;if(this.ended)return!1;for(n=e===~~e?e:!0===e?il:io,"[object ArrayBuffer]"===ia.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),(i=is.inflate(r,n))===ic&&o&&((i=is.inflateSetDictionary(r,o))===ih?i=is.inflate(r,n):i===ip&&(i=ic));r.avail_in>0&&i===iu&&r.state.wrap>0&&0!==t[r.next_in];)is.inflateReset(r),i=is.inflate(r,n);switch(i){case id:case ip:case ic:case ig:return this.onEnd(i),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||i===iu)){if("string"===this.options.to){let t=eT.utf8border(r.output,r.next_out),e=r.next_out-t,i=eT.buf2string(r.output,t);r.next_out=e,r.avail_out=a-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out))}if(i!==ih||0!==s){if(i===iu)return i=is.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},im.prototype.onData=function(t){this.chunks.push(t)},im.prototype.onEnd=function(t){t===ih&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=ek.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};let{Deflate:iv,deflate:iy,deflateRaw:ib,gzip:ix}={Deflate:eV,deflate:eF,deflateRaw:function(t,e){return(e=e||{}).raw=!0,eF(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,eF(t,e)},constants:tB},{Inflate:iw,inflate:ik,inflateRaw:iS,ungzip:iC}={Inflate:im,inflate:i_,inflateRaw:function(t,e){return(e=e||{}).raw=!0,i_(t,e)},ungzip:i_,constants:tB};var iI=(t,e=0,i=1)=>iM(iL(e,t),i),iT=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=iI(t[e],0,255)):3===e&&(t[e]=iI(t[e],0,1));return t};let iE={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])iE[`[object ${t}]`]=t.toLowerCase();function iA(t){return iE[Object.prototype.toString.call(t)]||"object"}var iP=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):"object"==iA(t[0])&&e?e.split("").filter(e=>void 0!==t[0][e]).map(e=>t[0][e]):t[0],iO=t=>{if(t.length<2)return null;let e=t.length-1;return"string"==iA(t[e])?t[e].toLowerCase():null};let{PI:iN,min:iM,max:iL}=Math,iz=2*iN,iR=iN/3,iB=iN/180,iD=180/iN;var iV={format:{},autodetect:[]},iF=class{constructor(...t){if("object"===iA(t[0])&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];let e=iO(t),i=!1;if(!e){for(let n of(i=!0,iV.sorted||(iV.autodetect=iV.autodetect.sort((t,e)=>e.p-t.p),iV.sorted=!0),iV.autodetect))if(e=n.test(...t))break}if(iV.format[e]){let n=iV.format[e].apply(null,i?t:t.slice(0,-1));this._rgb=iT(n)}else throw Error("unknown format: "+t);3===this._rgb.length&&this._rgb.push(1)}toString(){return"function"==iA(this.hex)?this.hex():`[${this._rgb.join(",")}]`}};let ij=(...t)=>new ij.Color(...t);ij.Color=iF,ij.version="2.6.0";let{max:iU}=Math;var iq=(...t)=>{let[e,i,n]=iP(t,"rgb"),s=1-iU(e/=255,iU(i/=255,n/=255)),r=s<1?1/(1-s):0;return[(1-e-s)*r,(1-i-s)*r,(1-n-s)*r,s]};iF.prototype.cmyk=function(){return iq(this._rgb)},ij.cmyk=(...t)=>new iF(...t,"cmyk"),iV.format.cmyk=(...t)=>{let[e,i,n,s]=t=iP(t,"cmyk"),r=t.length>4?t[4]:1;return 1===s?[0,0,0,r]:[e>=1?0:255*(1-e)*(1-s),i>=1?0:255*(1-i)*(1-s),n>=1?0:255*(1-n)*(1-s),r]},iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"cmyk"))&&4===t.length)return"cmyk"}});let iZ=t=>Math.round(100*t)/100;var iH=(...t)=>{let e=iP(t,"hsla"),i=iO(t)||"lsa";return e[0]=iZ(e[0]||0),e[1]=iZ(100*e[1])+"%",e[2]=iZ(100*e[2])+"%","hsla"===i||e.length>3&&e[3]<1?(e[3]=e.length>3?e[3]:1,i="hsla"):e.length=3,`${i}(${e.join(",")})`},iG=(...t)=>{let e,i;let[n,s,r]=t=iP(t,"rgba"),a=iM(n/=255,s/=255,r/=255),o=iL(n,s,r),l=(o+a)/2;return(o===a?(e=0,i=Number.NaN):e=l<.5?(o-a)/(o+a):(o-a)/(2-o-a),n==o?i=(s-r)/(o-a):s==o?i=2+(r-n)/(o-a):r==o&&(i=4+(n-s)/(o-a)),(i*=60)<0&&(i+=360),t.length>3&&void 0!==t[3])?[i,e,l,t[3]]:[i,e,l]};let{round:iW}=Math;var i$=(...t)=>{let e=iP(t,"rgba"),i=iO(t)||"rgb";return"hsl"==i.substr(0,3)?iH(iG(e),i):(e[0]=iW(e[0]),e[1]=iW(e[1]),e[2]=iW(e[2]),("rgba"===i||e.length>3&&e[3]<1)&&(e[3]=e.length>3?e[3]:1,i="rgba"),`${i}(${e.slice(0,"rgb"===i?3:4).join(",")})`)};let{round:iK}=Math;var iJ=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hsl");if(0===r)e=i=n=255*a;else{let t=[0,0,0],o=[0,0,0],l=a<.5?a*(1+r):a+r-a*r,h=2*a-l,u=s/360;t[0]=u+1/3,t[1]=u,t[2]=u-1/3;for(let e=0;e<3;e++)t[e]<0&&(t[e]+=1),t[e]>1&&(t[e]-=1),6*t[e]<1?o[e]=h+(l-h)*6*t[e]:2*t[e]<1?o[e]=l:3*t[e]<2?o[e]=h+(l-h)*(2/3-t[e])*6:o[e]=h;[e,i,n]=[iK(255*o[0]),iK(255*o[1]),iK(255*o[2])]}return t.length>3?[e,i,n,t[3]]:[e,i,n,1]};let iX=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,iY=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,iQ=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,i0=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,i1=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,i2=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:i5}=Math,i3=t=>{let e;if(t=t.toLowerCase().trim(),iV.format.named)try{return iV.format.named(t)}catch(t){}if(e=t.match(iX)){let t=e.slice(1,4);for(let e=0;e<3;e++)t[e]=+t[e];return t[3]=1,t}if(e=t.match(iY)){let t=e.slice(1,5);for(let e=0;e<4;e++)t[e]=+t[e];return t}if(e=t.match(iQ)){let t=e.slice(1,4);for(let e=0;e<3;e++)t[e]=i5(2.55*t[e]);return t[3]=1,t}if(e=t.match(i0)){let t=e.slice(1,5);for(let e=0;e<3;e++)t[e]=i5(2.55*t[e]);return t[3]=+t[3],t}if(e=t.match(i1)){let t=e.slice(1,4);t[1]*=.01,t[2]*=.01;let i=iJ(t);return i[3]=1,i}if(e=t.match(i2)){let t=e.slice(1,4);t[1]*=.01,t[2]*=.01;let i=iJ(t);return i[3]=+e[4],i}};i3.test=t=>iX.test(t)||iY.test(t)||iQ.test(t)||i0.test(t)||i1.test(t)||i2.test(t),iF.prototype.css=function(t){return i$(this._rgb,t)},ij.css=(...t)=>new iF(...t,"css"),iV.format.css=i3,iV.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&"string"===iA(t)&&i3.test(t))return"css"}}),iV.format.gl=(...t)=>{let e=iP(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e},ij.gl=(...t)=>new iF(...t,"gl"),iF.prototype.gl=function(){let t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};let{floor:i6}=Math;var i4=(...t)=>{let e;let[i,n,s]=iP(t,"rgb"),r=iM(i,n,s),a=iL(i,n,s),o=a-r;return 0===o?e=Number.NaN:(i===a&&(e=(n-s)/o),n===a&&(e=2+(s-i)/o),s===a&&(e=4+(i-n)/o),(e*=60)<0&&(e+=360)),[e,100*o/255,r/(255-o)*100]};iF.prototype.hcg=function(){return i4(this._rgb)},ij.hcg=(...t)=>new iF(...t,"hcg"),iV.format.hcg=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hcg");a*=255;let o=255*r;if(0===r)e=i=n=a;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);let t=i6(s/=60),l=s-t,h=a*(1-r),u=h+o*(1-l),c=h+o*l,d=h+o;switch(t){case 0:[e,i,n]=[d,c,h];break;case 1:[e,i,n]=[u,d,h];break;case 2:[e,i,n]=[h,d,c];break;case 3:[e,i,n]=[h,u,d];break;case 4:[e,i,n]=[c,h,d];break;case 5:[e,i,n]=[d,h,u]}}return[e,i,n,t.length>3?t[3]:1]},iV.autodetect.push({p:1,test:(...t)=>{if("array"===iA(t=iP(t,"hcg"))&&3===t.length)return"hcg"}});let i9=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,i8=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;var i7=t=>{if(t.match(i9)){(4===t.length||7===t.length)&&(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);let e=parseInt(t,16);return[e>>16,e>>8&255,255&e,1]}if(t.match(i8)){(5===t.length||9===t.length)&&(t=t.substr(1)),4===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);let e=parseInt(t,16),i=Math.round((255&e)/255*100)/100;return[e>>24&255,e>>16&255,e>>8&255,i]}throw Error(`unknown hex color: ${t}`)};let{round:nt}=Math;var ne=(...t)=>{let[e,i,n,s]=iP(t,"rgba"),r=iO(t)||"auto";void 0===s&&(s=1),"auto"===r&&(r=s<1?"rgba":"rgb");let a="000000"+((e=nt(e))<<16|(i=nt(i))<<8|(n=nt(n))).toString(16);a=a.substr(a.length-6);let o="0"+nt(255*s).toString(16);switch(o=o.substr(o.length-2),r.toLowerCase()){case"rgba":return`#${a}${o}`;case"argb":return`#${o}${a}`;default:return`#${a}`}};iF.prototype.hex=function(t){return ne(this._rgb,t)},ij.hex=(...t)=>new iF(...t,"hex"),iV.format.hex=i7,iV.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&"string"===iA(t)&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});let{cos:ni}=Math,{min:nn,sqrt:ns,acos:nr}=Math;var na=(...t)=>{let e,[i,n,s]=iP(t,"rgb"),r=nn(i/=255,n/=255,s/=255),a=(i+n+s)/3,o=a>0?1-r/a:0;return 0===o?e=NaN:(e=nr(e=(i-n+(i-s))/2/ns((i-n)*(i-n)+(i-s)*(n-s))),s>n&&(e=iz-e),e/=iz),[360*e,o,a]};iF.prototype.hsi=function(){return na(this._rgb)},ij.hsi=(...t)=>new iF(...t,"hsi"),iV.format.hsi=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hsi");return isNaN(s)&&(s=0),isNaN(r)&&(r=0),s>360&&(s-=360),s<0&&(s+=360),(s/=360)<1/3?i=1-((n=(1-r)/3)+(e=(1+r*ni(iz*s)/ni(iR-iz*s))/3)):s<2/3?(s-=1/3,n=1-((e=(1-r)/3)+(i=(1+r*ni(iz*s)/ni(iR-iz*s))/3))):(s-=2/3,e=1-((i=(1-r)/3)+(n=(1+r*ni(iz*s)/ni(iR-iz*s))/3))),[255*(e=iI(a*e*3)),255*(i=iI(a*i*3)),255*(n=iI(a*n*3)),t.length>3?t[3]:1]},iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"hsi"))&&3===t.length)return"hsi"}}),iF.prototype.hsl=function(){return iG(this._rgb)},ij.hsl=(...t)=>new iF(...t,"hsl"),iV.format.hsl=iJ,iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"hsl"))&&3===t.length)return"hsl"}});let{floor:no}=Math,{min:nl,max:nh}=Math;var nu=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"rgb"),o=nl(s,r,a),l=nh(s,r,a),h=l-o;return n=l/255,0===l?(e=Number.NaN,i=0):(i=h/l,s===l&&(e=(r-a)/h),r===l&&(e=2+(a-s)/h),a===l&&(e=4+(s-r)/h),(e*=60)<0&&(e+=360)),[e,i,n]};iF.prototype.hsv=function(){return nu(this._rgb)},ij.hsv=(...t)=>new iF(...t,"hsv"),iV.format.hsv=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hsv");if(a*=255,0===r)e=i=n=a;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);let t=no(s/=60),o=s-t,l=a*(1-r),h=a*(1-r*o),u=a*(1-r*(1-o));switch(t){case 0:[e,i,n]=[a,u,l];break;case 1:[e,i,n]=[h,a,l];break;case 2:[e,i,n]=[l,a,u];break;case 3:[e,i,n]=[l,h,a];break;case 4:[e,i,n]=[u,l,a];break;case 5:[e,i,n]=[a,l,h]}}return[e,i,n,t.length>3?t[3]:1]},iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"hsv"))&&3===t.length)return"hsv"}});var nc={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452};let{pow:nd}=Math,np=t=>255*(t<=.00304?12.92*t:1.055*nd(t,1/2.4)-.055),nf=t=>t>nc.t1?t*t*t:nc.t2*(t-nc.t0);var ng=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"lab");return i=(s+16)/116,e=isNaN(r)?i:i+r/500,n=isNaN(a)?i:i-a/200,i=nc.Yn*nf(i),[np(3.2404542*(e=nc.Xn*nf(e))-1.5371385*i-.4985314*(n=nc.Zn*nf(n))),np(-.969266*e+1.8760108*i+.041556*n),np(.0556434*e-.2040259*i+1.0572252*n),t.length>3?t[3]:1]};let{pow:nm}=Math,n_=t=>(t/=255)<=.04045?t/12.92:nm((t+.055)/1.055,2.4),nv=t=>t>nc.t3?nm(t,1/3):t/nc.t2+nc.t0,ny=(t,e,i)=>[nv((.4124564*(t=n_(t))+.3575761*(e=n_(e))+.1804375*(i=n_(i)))/nc.Xn),nv((.2126729*t+.7151522*e+.072175*i)/nc.Yn),nv((.0193339*t+.119192*e+.9503041*i)/nc.Zn)];var nb=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=ny(e,i,n),o=116*r-16;return[o<0?0:o,500*(s-r),200*(r-a)]};iF.prototype.lab=function(){return nb(this._rgb)},ij.lab=(...t)=>new iF(...t,"lab"),iV.format.lab=ng,iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"lab"))&&3===t.length)return"lab"}});let{sin:nx,cos:nw}=Math;var nk=(...t)=>{let[e,i,n]=iP(t,"lch");return isNaN(n)&&(n=0),[e,nw(n*=iB)*i,nx(n)*i]},nS=(...t)=>{let[e,i,n]=t=iP(t,"lch"),[s,r,a]=nk(e,i,n),[o,l,h]=ng(s,r,a);return[o,l,h,t.length>3?t[3]:1]};let{sqrt:nC,atan2:nI,round:nT}=Math;var nE=(...t)=>{let[e,i,n]=iP(t,"lab"),s=nC(i*i+n*n),r=(nI(n,i)*iD+360)%360;return 0===nT(1e4*s)&&(r=Number.NaN),[e,s,r]},nA=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=nb(e,i,n);return nE(s,r,a)};iF.prototype.lch=function(){return nA(this._rgb)},iF.prototype.hcl=function(){return nA(this._rgb).reverse()},ij.lch=(...t)=>new iF(...t,"lch"),ij.hcl=(...t)=>new iF(...t,"hcl"),iV.format.lch=nS,iV.format.hcl=(...t)=>nS(...iP(t,"hcl").reverse()),["lch","hcl"].forEach(t=>iV.autodetect.push({p:2,test:(...e)=>{if("array"===iA(e=iP(e,t))&&3===e.length)return t}}));var nP={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};iF.prototype.name=function(){let t=ne(this._rgb,"rgb");for(let e of Object.keys(nP))if(nP[e]===t)return e.toLowerCase();return t},iV.format.named=t=>{if(nP[t=t.toLowerCase()])return i7(nP[t]);throw Error("unknown color name: "+t)},iV.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&"string"===iA(t)&&nP[t.toLowerCase()])return"named"}});var nO=(...t)=>{let[e,i,n]=iP(t,"rgb");return(e<<16)+(i<<8)+n};iF.prototype.num=function(){return nO(this._rgb)},ij.num=(...t)=>new iF(...t,"num"),iV.format.num=t=>{if("number"==iA(t)&&t>=0&&t<=0xffffff)return[t>>16,t>>8&255,255&t,1];throw Error("unknown num color: "+t)},iV.autodetect.push({p:5,test:(...t)=>{if(1===t.length&&"number"===iA(t[0])&&t[0]>=0&&t[0]<=0xffffff)return"num"}});let{round:nN}=Math;iF.prototype.rgb=function(t=!0){return!1===t?this._rgb.slice(0,3):this._rgb.slice(0,3).map(nN)},iF.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,i)=>i<3?!1===t?e:nN(e):e)},ij.rgb=(...t)=>new iF(...t,"rgb"),iV.format.rgb=(...t)=>{let e=iP(t,"rgba");return void 0===e[3]&&(e[3]=1),e},iV.autodetect.push({p:3,test:(...t)=>{if("array"===iA(t=iP(t,"rgba"))&&(3===t.length||4===t.length&&"number"==iA(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}});let{log:nM}=Math;var nL=t=>{let e,i,n;let s=t/100;return s<66?(e=255,i=s<6?0:-155.25485562709179-.44596950469579133*(i=s-2)+104.49216199393888*nM(i),n=s<20?0:-254.76935184120902+.8274096064007395*(n=s-10)+115.67994401066147*nM(n)):(e=351.97690566805693+.114206453784165*(e=s-55)-40.25366309332127*nM(e),i=325.4494125711974+.07943456536662342*(i=s-50)-28.0852963507957*nM(i),n=255),[e,i,n,1]};let{round:nz}=Math;var nR=(...t)=>{let e;let i=iP(t,"rgb"),n=i[0],s=i[2],r=1e3,a=4e4;for(;a-r>.4;){let t=nL(e=(a+r)*.5);t[2]/t[0]>=s/n?a=e:r=e}return nz(e)};iF.prototype.temp=iF.prototype.kelvin=iF.prototype.temperature=function(){return nR(this._rgb)},ij.temp=ij.kelvin=ij.temperature=(...t)=>new iF(...t,"temp"),iV.format.temp=iV.format.kelvin=iV.format.temperature=nL;let{pow:nB,sign:nD}=Math;var nV=(...t)=>{let[e,i,n]=t=iP(t,"lab"),s=nB(e+.3963377774*i+.2158037573*n,3),r=nB(e-.1055613458*i-.0638541728*n,3),a=nB(e-.0894841775*i-1.291485548*n,3);return[255*nF(4.0767416621*s-3.3077115913*r+.2309699292*a),255*nF(-1.2684380046*s+2.6097574011*r-.3413193965*a),255*nF(-.0041960863*s-.7034186147*r+1.707614701*a),t.length>3?t[3]:1]};function nF(t){let e=Math.abs(t);return e>.0031308?(nD(t)||1)*(1.055*nB(e,1/2.4)-.055):12.92*t}let{cbrt:nj,pow:nU,sign:nq}=Math;var nZ=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=[nH(e/255),nH(i/255),nH(n/255)],o=nj(.4122214708*s+.5363325363*r+.0514459929*a),l=nj(.2119034982*s+.6806995451*r+.1073969566*a),h=nj(.0883024619*s+.2817188376*r+.6299787005*a);return[.2104542553*o+.793617785*l-.0040720468*h,1.9779984951*o-2.428592205*l+.4505937099*h,.0259040371*o+.7827717662*l-.808675766*h]};function nH(t){let e=Math.abs(t);return e<.04045?t/12.92:(nq(t)||1)*nU((e+.055)/1.055,2.4)}iF.prototype.oklab=function(){return nZ(this._rgb)},ij.oklab=(...t)=>new iF(...t,"oklab"),iV.format.oklab=nV,iV.autodetect.push({p:3,test:(...t)=>{if("array"===iA(t=iP(t,"oklab"))&&3===t.length)return"oklab"}});var nG=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=nZ(e,i,n);return nE(s,r,a)};iF.prototype.oklch=function(){return nG(this._rgb)},ij.oklch=(...t)=>new iF(...t,"oklch"),iV.format.oklch=(...t)=>{let[e,i,n]=t=iP(t,"lch"),[s,r,a]=nk(e,i,n),[o,l,h]=nV(s,r,a);return[o,l,h,t.length>3?t[3]:1]},iV.autodetect.push({p:3,test:(...t)=>{if("array"===iA(t=iP(t,"oklch"))&&3===t.length)return"oklch"}}),iF.prototype.alpha=function(t,e=!1){return void 0!==t&&"number"===iA(t)?e?(this._rgb[3]=t,this):new iF([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]},iF.prototype.clipped=function(){return this._rgb._clipped||!1},iF.prototype.darken=function(t=1){let e=this.lab();return e[0]-=nc.Kn*t,new iF(e,"lab").alpha(this.alpha(),!0)},iF.prototype.brighten=function(t=1){return this.darken(-t)},iF.prototype.darker=iF.prototype.darken,iF.prototype.brighter=iF.prototype.brighten,iF.prototype.get=function(t){let[e,i]=t.split("."),n=this[e]();if(!i)return n;{let t=e.indexOf(i)-("ok"===e.substr(0,2)?2:0);if(t>-1)return n[t];throw Error(`unknown channel ${i} in mode ${e}`)}};let{pow:nW}=Math;iF.prototype.luminance=function(t,e="rgb"){if(void 0!==t&&"number"===iA(t)){if(0===t)return new iF([0,0,0,this._rgb[3]],"rgb");if(1===t)return new iF([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),n=20,s=(i,r)=>{let a=i.interpolate(r,.5,e),o=a.luminance();return!(1e-7>Math.abs(t-o))&&n--?o>t?s(i,a):s(a,r):a},r=(i>t?s(new iF([0,0,0]),this):s(this,new iF([255,255,255]))).rgb();return new iF([...r,this._rgb[3]])}return n$(...this._rgb.slice(0,3))};let n$=(t,e,i)=>.2126*(t=nK(t))+.7152*(e=nK(e))+.0722*(i=nK(i)),nK=t=>(t/=255)<=.03928?t/12.92:nW((t+.055)/1.055,2.4);var nJ={},nX=(t,e,i=.5,...n)=>{let s=n[0]||"lrgb";if(nJ[s]||n.length||(s=Object.keys(nJ)[0]),!nJ[s])throw Error(`interpolation mode ${s} is not defined`);return"object"!==iA(t)&&(t=new iF(t)),"object"!==iA(e)&&(e=new iF(e)),nJ[s](t,e,i).alpha(t.alpha()+i*(e.alpha()-t.alpha()))};iF.prototype.mix=iF.prototype.interpolate=function(t,e=.5,...i){return nX(this,t,e,...i)},iF.prototype.premultiply=function(t=!1){let e=this._rgb,i=e[3];return t?(this._rgb=[e[0]*i,e[1]*i,e[2]*i,i],this):new iF([e[0]*i,e[1]*i,e[2]*i,i],"rgb")},iF.prototype.saturate=function(t=1){let e=this.lch();return e[1]+=nc.Kn*t,e[1]<0&&(e[1]=0),new iF(e,"lch").alpha(this.alpha(),!0)},iF.prototype.desaturate=function(t=1){return this.saturate(-t)},iF.prototype.set=function(t,e,i=!1){let[n,s]=t.split("."),r=this[n]();if(!s)return r;{let t=n.indexOf(s)-("ok"===n.substr(0,2)?2:0);if(t>-1){if("string"==iA(e))switch(e.charAt(0)){case"+":case"-":r[t]+=+e;break;case"*":r[t]*=+e.substr(1);break;case"/":r[t]/=+e.substr(1);break;default:r[t]=+e}else if("number"===iA(e))r[t]=e;else throw Error("unsupported value for Color.set");let s=new iF(r,n);return i?(this._rgb=s._rgb,this):s}throw Error(`unknown channel ${s} in mode ${n}`)}},iF.prototype.tint=function(t=.5,...e){return nX(this,"white",t,...e)},iF.prototype.shade=function(t=.5,...e){return nX(this,"black",t,...e)},nJ.rgb=(t,e,i)=>{let n=t._rgb,s=e._rgb;return new iF(n[0]+i*(s[0]-n[0]),n[1]+i*(s[1]-n[1]),n[2]+i*(s[2]-n[2]),"rgb")};let{sqrt:nY,pow:nQ}=Math;nJ.lrgb=(t,e,i)=>{let[n,s,r]=t._rgb,[a,o,l]=e._rgb;return new iF(nY(nQ(n,2)*(1-i)+nQ(a,2)*i),nY(nQ(s,2)*(1-i)+nQ(o,2)*i),nY(nQ(r,2)*(1-i)+nQ(l,2)*i),"rgb")},nJ.lab=(t,e,i)=>{let n=t.lab(),s=e.lab();return new iF(n[0]+i*(s[0]-n[0]),n[1]+i*(s[1]-n[1]),n[2]+i*(s[2]-n[2]),"lab")};var n0=(t,e,i,n)=>{let s,r,a,o,l,h,u,c,d,p,f,g;return"hsl"===n?(s=t.hsl(),r=e.hsl()):"hsv"===n?(s=t.hsv(),r=e.hsv()):"hcg"===n?(s=t.hcg(),r=e.hcg()):"hsi"===n?(s=t.hsi(),r=e.hsi()):"lch"===n||"hcl"===n?(n="hcl",s=t.hcl(),r=e.hcl()):"oklch"===n&&(s=t.oklch().reverse(),r=e.oklch().reverse()),("h"===n.substr(0,1)||"oklch"===n)&&([a,l,u]=s,[o,h,c]=r),isNaN(a)||isNaN(o)?isNaN(a)?isNaN(o)?p=Number.NaN:(p=o,(1==u||0==u)&&"hsv"!=n&&(d=h)):(p=a,(1==c||0==c)&&"hsv"!=n&&(d=l)):(g=o>a&&o-a>180?o-(a+360):o180?o+360-a:o-a,p=a+i*g),void 0===d&&(d=l+i*(h-l)),f=u+i*(c-u),"oklch"===n?new iF([f,d,p],n):new iF([p,d,f],n)};let n1=(t,e,i)=>n0(t,e,i,"lch");nJ.lch=n1,nJ.hcl=n1,nJ.num=(t,e,i)=>{let n=t.num();return new iF(n+i*(e.num()-n),"num")},nJ.hcg=(t,e,i)=>n0(t,e,i,"hcg"),nJ.hsi=(t,e,i)=>n0(t,e,i,"hsi"),nJ.hsl=(t,e,i)=>n0(t,e,i,"hsl"),nJ.hsv=(t,e,i)=>n0(t,e,i,"hsv"),nJ.oklab=(t,e,i)=>{let n=t.oklab(),s=e.oklab();return new iF(n[0]+i*(s[0]-n[0]),n[1]+i*(s[1]-n[1]),n[2]+i*(s[2]-n[2]),"oklab")},nJ.oklch=(t,e,i)=>n0(t,e,i,"oklch");let{pow:n2,sqrt:n5,PI:n3,cos:n6,sin:n4,atan2:n9}=Math,n8=(t,e)=>{let i=t.length,n=[0,0,0,0];for(let s=0;s.9999999&&(n[3]=1),new iF(iT(n))},{pow:n7}=Math;function st(t){let e="rgb",i=ij("#ccc"),n=0,s=[0,1],r=[],a=[0,0],o=!1,l=[],h=!1,u=0,c=1,d=!1,p={},f=!0,g=1,m=function(t){if("string"===iA(t=t||["#fff","#000"])&&ij.brewer&&ij.brewer[t.toLowerCase()]&&(t=ij.brewer[t.toLowerCase()]),"array"===iA(t)){1===t.length&&(t=[t[0],t[0]]),t=t.slice(0);for(let e=0;e=o[i];)i++;return i-1}return 0},v=t=>t,y=t=>t,b=function(t,n){let s,h;if(null==n&&(n=!1),isNaN(t)||null===t)return i;h=n?t:o&&o.length>2?_(t)/(o.length-2):c!==u?(t-u)/(c-u):1,h=y(h),n||(h=v(h)),1!==g&&(h=n7(h,g));let d=Math.floor(1e4*(h=iI(h=a[0]+h*(1-a[0]-a[1]),0,1)));if(f&&p[d])s=p[d];else{if("array"===iA(l))for(let t=0;t=i&&t===r.length-1){s=l[t];break}if(h>i&&hp={};m(t);let w=function(t){let e=ij(b(t));return h&&e[h]?e[h]():e};return w.classes=function(t){if(null!=t){if("array"===iA(t))o=t,s=[t[0],t[t.length-1]];else{let e=ij.analyze(s);o=0===t?[e.min,e.max]:ij.limits(e,"e",t)}return w}return o},w.domain=function(t){if(!arguments.length)return s;u=t[0],c=t[t.length-1],r=[];let e=l.length;if(t.length===e&&u!==c)for(let e of Array.from(t))r.push((e-u)/(c-u));else{for(let t=0;t2){let e=t.map((e,i)=>i/(t.length-1)),i=t.map(t=>(t-u)/(c-u));i.every((t,i)=>e[i]===t)||(y=t=>{if(t<=0||t>=1)return t;let n=0;for(;t>=i[n+1];)n++;let s=(t-i[n])/(i[n+1]-i[n]);return e[n]+s*(e[n+1]-e[n])})}}return s=[u,c],w},w.mode=function(t){return arguments.length?(e=t,x(),w):e},w.range=function(t,e){return m(t,e),w},w.out=function(t){return h=t,w},w.spread=function(t){return arguments.length?(n=t,w):n},w.correctLightness=function(t){return null==t&&(t=!0),d=t,x(),v=d?function(t){let e=b(0,!0).lab()[0],i=b(1,!0).lab()[0],n=e>i,s=b(t,!0).lab()[0],r=e+(i-e)*t,a=s-r,o=0,l=1,h=20;for(;Math.abs(a)>.01&&h-- >0;)n&&(a*=-1),a<0?(o=t,t+=(l-t)*.5):(l=t,t+=(o-t)*.5),a=(s=b(t,!0).lab()[0])-r;return t}:t=>t,w},w.padding=function(t){return null!=t?("number"===iA(t)&&(t=[t,t]),a=t,w):a},w.colors=function(e,i){arguments.length<2&&(i="hex");let n=[];if(0==arguments.length)n=l.slice(0);else if(1===e)n=[w(.5)];else if(e>1){let t=s[0],i=s[1]-t;n=(function(t,e,i){let n=[],s=0r;s?t++:t--)n.push(t);return n})(0,e,!1).map(n=>w(t+n/(e-1)*i))}else{t=[];let e=[];if(o&&o.length>2)for(let t=1,i=o.length,n=1<=i;n?ti;n?t++:t--)e.push((o[t-1]+o[t])*.5);else e=s;n=e.map(t=>w(t))}return ij[i]&&(n=n.map(t=>t[i]())),n},w.cache=function(t){return null!=t?(f=t,w):f},w.gamma=function(t){return null!=t?(g=t,w):g},w.nodata=function(t){return null!=t?(i=ij(t),w):i},w}let se=function(t){let e=[1,1];for(let i=1;inew iF(t))).length)[i,n]=t.map(t=>t.lab()),e=function(t){return new iF([0,1,2].map(e=>i[e]+t*(n[e]-i[e])),"lab")};else if(3===t.length)[i,n,s]=t.map(t=>t.lab()),e=function(t){return new iF([0,1,2].map(e=>(1-t)*(1-t)*i[e]+2*(1-t)*t*n[e]+t*t*s[e]),"lab")};else if(4===t.length){let r;[i,n,s,r]=t.map(t=>t.lab()),e=function(t){return new iF([0,1,2].map(e=>(1-t)*(1-t)*(1-t)*i[e]+3*(1-t)*(1-t)*t*n[e]+3*(1-t)*t*t*s[e]+t*t*t*r[e]),"lab")}}else if(t.length>=5){let i,n,s;i=t.map(t=>t.lab()),n=se(s=t.length-1),e=function(t){let e=1-t;return new iF([0,1,2].map(r=>i.reduce((i,a,o)=>i+n[o]*e**(s-o)*t**o*a[r],0)),"lab")}}else throw RangeError("No point in running bezier with only one color.");return e},sn=(t,e,i)=>{if(!sn[i])throw Error("unknown blend mode "+i);return sn[i](t,e)},ss=t=>(e,i)=>{let n=ij(i).rgb(),s=ij(e).rgb();return ij.rgb(t(n,s))},sr=t=>(e,i)=>{let n=[];return n[0]=t(e[0],i[0]),n[1]=t(e[1],i[1]),n[2]=t(e[2],i[2]),n};sn.normal=ss(sr(t=>t)),sn.multiply=ss(sr((t,e)=>t*e/255)),sn.screen=ss(sr((t,e)=>255*(1-(1-t/255)*(1-e/255)))),sn.overlay=ss(sr((t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)))),sn.darken=ss(sr((t,e)=>t>e?e:t)),sn.lighten=ss(sr((t,e)=>t>e?t:e)),sn.dodge=ss(sr((t,e)=>255===t?255:(t=e/255*255/(1-t/255))>255?255:t)),sn.burn=ss(sr((t,e)=>255*(1-(1-e/255)/(t/255))));let{pow:sa,sin:so,cos:sl}=Math,{floor:sh,random:su}=Math,{log:sc,pow:sd,floor:sp,abs:sf}=Math;function sg(t,e=null){let i={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===iA(t)&&(t=Object.values(t)),t.forEach(t=>{e&&"object"===iA(t)&&(t=t[e]),null==t||isNaN(t)||(i.values.push(t),i.sum+=t,ti.max&&(i.max=t),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(t,e)=>sm(i,t,e),i}function sm(t,e="equal",i=7){"array"==iA(t)&&(t=sg(t));let{min:n,max:s}=t,r=t.values.sort((t,e)=>t-e);if(1===i)return[n,s];let a=[];if("c"===e.substr(0,1)&&(a.push(n),a.push(s)),"e"===e.substr(0,1)){a.push(n);for(let t=1;t 0");let t=Math.LOG10E*sc(n),e=Math.LOG10E*sc(s);a.push(n);for(let n=1;n200&&(h=!1)}let d={};for(let t=0;tt-e),a.push(p[0]);for(let t=1;t{let n=t.length;i||(i=Array.from(Array(n)).map(()=>1));let s=n/i.reduce(function(t,e){return t+e});if(i.forEach((t,e)=>{i[e]*=s}),t=t.map(t=>new iF(t)),"lrgb"===e)return n8(t,i);let r=t.shift(),a=r.get(e),o=[],l=0,h=0;for(let t=0;t{let s=t.get(e);u+=t.alpha()*i[n+1];for(let t=0;t=360;)e-=360;a[t]=e}else a[t]=a[t]/o[t];return u/=n,new iF(a,e).alpha(u>.99999?1:u,!0)},bezier:t=>{let e=si(t);return e.scale=()=>st(e),e},blend:sn,cubehelix:function(t=300,e=-1.5,i=1,n=1,s=[0,1]){let r=0,a;"array"===iA(s)?a=s[1]-s[0]:(a=0,s=[s,s]);let o=function(o){let l=iz*((t+120)/360+e*o),h=sa(s[0]+a*o,n),u=(0!==r?i[0]+o*r:i)*h*(1-h)/2,c=sl(l),d=so(l);return ij(iT([255*(h+u*(-.14861*c+1.78277*d)),255*(h+u*(-.29227*c-.90649*d)),255*(h+1.97294*c*u),1]))};return o.start=function(e){return null==e?t:(t=e,o)},o.rotations=function(t){return null==t?e:(e=t,o)},o.gamma=function(t){return null==t?n:(n=t,o)},o.hue=function(t){return null==t?i:("array"===iA(i=t)?0==(r=i[1]-i[0])&&(i=i[1]):r=0,o)},o.lightness=function(t){return null==t?s:("array"===iA(t)?(s=t,a=t[1]-t[0]):(s=[t,t],a=0),o)},o.scale=()=>ij.scale(o),o.hue(i),o},mix:nX,interpolate:nX,random:()=>{let t="#";for(let e=0;e<6;e++)t+="0123456789abcdef".charAt(sh(16*su()));return new iF(t,"hex")},scale:st,analyze:sg,contrast:(t,e)=>{t=new iF(t),e=new iF(e);let i=t.luminance(),n=e.luminance();return i>n?(i+.05)/(n+.05):(n+.05)/(i+.05)},deltaE:function(t,e,i=1,n=1,s=1){var r=function(t){return 360*t/(2*sI)},a=function(t){return 2*sI*t/360};t=new iF(t),e=new iF(e);let[o,l,h]=Array.from(t.lab()),[u,c,d]=Array.from(e.lab()),p=(o+u)/2,f=(s_(sv(l,2)+sv(h,2))+s_(sv(c,2)+sv(d,2)))/2,g=.5*(1-s_(sv(f,7)/(sv(f,7)+sv(25,7)))),m=l*(1+g),_=c*(1+g),v=s_(sv(m,2)+sv(h,2)),y=s_(sv(_,2)+sv(d,2)),b=(v+y)/2,x=r(sx(h,m)),w=r(sx(d,_)),k=x>=0?x:x+360,S=w>=0?w:w+360,C=sw(k-S)>180?(k+S+360)/2:(k+S)/2,I=1-.17*sk(a(C-30))+.24*sk(a(2*C))+.32*sk(a(3*C+6))-.2*sk(a(4*C-63)),T=S-k;T=180>=sw(T)?T:S<=k?T+360:T-360,T=2*s_(v*y)*sS(a(T)/2);let E=y-v,A=1+.015*sv(p-50,2)/s_(20+sv(p-50,2)),P=1+.045*b,O=1+.015*b*I,N=30*sC(-sv((C-275)/25,2)),M=-(2*s_(sv(b,7)/(sv(b,7)+sv(25,7))))*sS(2*a(N));return sb(0,sy(100,s_(sv((u-o)/(i*A),2)+sv(E/(n*P),2)+sv(T/(s*O),2)+E/(n*P)*M*(T/(s*O)))))},distance:function(t,e,i="lab"){t=new iF(t),e=new iF(e);let n=t.get(i),s=e.get(i),r=0;for(let t in n){let e=(n[t]||0)-(s[t]||0);r+=e*e}return Math.sqrt(r)},limits:sm,valid:(...t)=>{try{return new iF(...t),!0}catch(t){return!1}},scales:{cool:()=>st([ij.hsl(180,1,.9),ij.hsl(250,.7,.4)]),hot:()=>st(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")},input:iV,colors:nP,brewer:sT});var sE=u("hvNIE");let sA=window.location,sP=new URLSearchParams(sA.search),sO=new URL(sA),sN=new J({objectHash:sB});function sM(t){let e=window.atob((t+"===".slice((t.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/"));return new TextDecoder().decode(ik(Uint8Array.from(e,t=>t.codePointAt(0))))}function sL(t){return window.btoa(String.fromCodePoint(...iy(new TextEncoder().encode(t)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function sz(t){return t.charAt(0).toUpperCase()+t.slice(1)}function sR(...t){return t.findLast(t=>void 0!==t)}function sB(t,e){return"object"==typeof t&&"object"==typeof e?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>{let n=t[i],s=e[i];return Object.hasOwn(e,i)&&("function"==typeof n?.equals?n.equals(s):sB(n,s))}):t===e}function sD(t,e=null){document.dispatchEvent(new CustomEvent(t,{detail:e}))}function sV(t,e,i=0){return t&&e&&t.round().subtract(e.round()).length<=i}function sF(t){let e=document.createElement("span");return e.classList.add("beam"),e.style.backgroundColor=t,e.title=t,e}function sj(t){if(!t.length)return[];let e=ij.average(t).hex(),i=[];if(t.some(t=>t!==e)){let e=t.length-1;t.forEach((t,n)=>{if(i.push(sF(t)),ne.subtract(t).length-i.subtract(t).length}function sq(t,e){let i=document.createElement("span");return i.classList.add("icon","material-symbols-outlined"),i.textContent=t,i.title=e??sz(t),i}function sZ(t,e,i=t=>t/2){let n=t.subtract(e);return n.length="function"==typeof i?i(n.length):i,t.subtract(n)}function sH(t,e,i){let n=new sE.Point(0,0);return n.length=e,n.angle=60*sW(i),t.add(n)}function sG(t){return t+(t>=3?-3:3)}function sW(t,e=!0){return(t+=(e?-1:1)*2)<0?t+6:t>5?t-6:t}function s$(t){let e=document.createElement("span");return e.classList.add("text"),e.textContent=t.toString(),e}function sK(t){if(t)return t}window.base64decode=sM,window.base64encode=sL;let sJ=window.console=window.console||{debug:function(){}},sX=sJ.debug;function sY(t){sJ.debug=t?sX:function(){}}sY(sP.has("debug")??!1);var sE=(u("hvNIE"),u("hvNIE"));class sQ{constructor(t,e){this.coordinates=[t,e],this.r=t,this.c=e}toString(){return this.coordinates.join(",")}static toAxialCoordinates(t){return new s0(t.c-(t.r-(1&t.r))/2,t.r)}}class s0{constructor(t,e,i){i||(i=-t-e),this.coordinates=[t,e,i],this.q=t,this.r=e,this.s=i}add(t){return s0.add(this,t)}equals(t){return this.q===t.q&&this.r===t.r&&this.s===t.s}isNeighbor(t){return s0.isNeighbor(this,t)}neighbor(t){return s0.neighbor(this,t)}toString(){return this.coordinates.join(",")}static add(t,e){return new s0(t.q+e.q,t.r+e.r)}static direction(t){return 0===t&&(t=6),s0.directions[6-t]}static directions=[new s0(1,0),new s0(1,-1),new s0(0,-1),new s0(-1,0),new s0(-1,1),new s0(0,1)];static isNeighbor(t,e){return s0.directions.map(e=>s0.add(t,e)).some(t=>t.equals(e))}static neighbor(t,e){return s0.add(t,s0.direction(e))}static toOffsetCoordinates(t){return new sQ(t.q+(t.r-(1&t.r))/2,t.r)}}var sE=(u("hvNIE"),u("hvNIE"));class s1{#t={};constructor(t){this.setState(t)}getState(){return structuredClone(this.#t)}setState(t){this.#t=structuredClone(t)}updateState(t,e=!1){return t(this.#t),e&&sD(s1.Events.Update,{object:this}),this.getState()}static Events=Object.freeze({Update:"state-update"})}class s2 extends s1{center;data;group;id;immutable;locked;parent;sortOrder=100;type;constructor(t,e,i){if(e.id??=crypto.randomUUID().split("-")[0],super(e),this.id=e.id,this.immutable??=e?.immutable??!1,this.type=e?.type??i?.type,void 0===this.type)throw console.debug(`[Item:${this.id}]`,e),Error("Item must have type defined");this.data=Object.assign({id:this.id,type:this.type},i?.data||{}),this.locked=i?.locked!==!1,t&&(this.center=t.center),this.parent=t,this.group=new sE.Group({data:this.data,locked:this.locked})}equals(t){return t instanceof s2&&this.id===t.id}getColorElements(){return[]}getCompoundPath(){return new sE.CompoundPath({children:this.group.clone({insert:!1}).children.filter(t=>!1!==t.data.collidable)})}getIndex(){return this.group.index}getLayer(){return this.group.parent}onTap(){}onCollision({collisionStep:t}){return t}onDeselected(){}onInitialization(){}onSelected(){}remove(){this.group.remove()}toString(){return`[${this.type}:${this.id}]`}update(){}static immutable(t){return t.immutable}static Types=Object.freeze(Object.fromEntries(["beam","collision","filter","mask","portal","reflector","terminus","tile","wall"].map(t=>[t,sz(t)])))}var sE=u("hvNIE");class s5{#e=[];#i={element:document};constructor(t={}){this.#i=Object.assign(this.#i,t)}add(t,e={}){this.#e=this.#e.concat(t.map(t=>{if(!(t=Object.assign({},this.#i,e,t)).type)throw Error("Event type is required");return t.context&&(t.handler=t.handler.bind(t.context)),t.element.addEventListener(t.type,t.handler,t.options),t}))}remove(){this.#e.forEach(t=>t.element.removeEventListener(t.type,t.handler)),this.#e=[]}}var sE=u("hvNIE");class s3{#n={};#s;#r;constructor(t=[]){this.#r=t,this.#s=0!==t.length,t.forEach(t=>{this.#n[t]=new s3})}set(t,e){if(this.#s&&!this.#r.includes(t))throw Error(`Invalid key: ${t}`);this.#n[t]=e}get(t){return void 0===t?this.#n:this.#n[t]}keys(t){return Object.keys(this.#a(t))}length(t){return this.keys(t).length}unset(t){delete this.#n[t]}values(t){return Object.values(this.#a(t))}#a(t){let e=this.get(t);return e instanceof s3?e.get():e}}let s6=window.navigator;class s4{#o;#n=new s3(Object.values(s4.CacheKeys));#l;#h=new s5({context:this});#u;constructor(t){this.#o=t.getBoundingClientRect(),this.#l=t,this.#u=new sE.Point(this.#o.left,this.#o.top),this.#h.add([{type:"pointercancel",handler:this.onPointerUp},{type:"pointerdown",handler:this.onPointerDown},{type:"pointerleave",handler:this.onPointerUp},{type:"pointermove",handler:this.onPointerMove},{type:"pointerout",handler:this.onPointerUp},{type:"pointerup",handler:this.onPointerUp},{type:"wheel",handler:this.onMouseWheel,options:{passive:!1}}],{element:t})}onMouseWheel(t){t.preventDefault(),this.#c(new sE.Point(t.offsetX,t.offsetY),t.deltaY,1.05)}onPan(t){let e=/*@__PURE__*/a(sE).view.viewToProject(s4.point(t)),i=this.#d(s4.GestureKeys.Pan);if(!i){this.#p(s4.GestureKeys.Pan,{from:e});return}let n=i.from.subtract(e).add(/*@__PURE__*/a(sE).view.center);/*@__PURE__*/a(sE).view.center.subtract(n).length>1&&(document.body.classList.contains("grab")||document.body.classList.add("grab"),/*@__PURE__*/a(sE).view.center=n)}onPinch(t){let e=t[0],i=t[1],n=s4.point(e),s=s4.point(i),r=n.getDistance(s),a=this.#d(s4.GestureKeys.Pinch);if(!a){this.#p(s4.GestureKeys.Pinch,{distance:r});return}let o=n.add(s).divide(2).subtract(this.#u),l=r/a.distance,h=(a.distance-r)*l;this.#c(o,h,1.01),a.distance=r}onPointerDown(t){this.#n.get(s4.CacheKeys.Down).set(t.pointerId,t)}onPointerMove(t){let e=this.#n.get(s4.CacheKeys.Down).get(t.pointerId);if(e&&s4.point(t).subtract(s4.point(e)).length>1){this.#n.get(s4.CacheKeys.Move).set(t.pointerId,t);let e=this.#n.get(s4.CacheKeys.Move).values();2===e.length?this.onPinch(e):this.onPan(t)}}onPointerUp(t){let e=this.#n.get(s4.CacheKeys.Down).get(t.pointerId);e&&(1!==this.#n.length(s4.CacheKeys.Down)||this.#n.get(s4.CacheKeys.Move).get(t.pointerId)||this.onTap(e),document.body.classList.remove("grab"),this.#n.get(s4.CacheKeys.Down).unset(t.pointerId),this.#n.get(s4.CacheKeys.Move).unset(t.pointerId),this.#n.get(s4.CacheKeys.Gesture).unset(s4.GestureKeys.Pan),2>this.#n.length(s4.CacheKeys.Move)&&this.#n.get(s4.CacheKeys.Gesture).unset(s4.GestureKeys.Pinch))}onTap(t){let e=/*@__PURE__*/a(sE).view.viewToProject(s4.point(t).subtract(this.#u));this.#l.dispatchEvent(new CustomEvent(s4.GestureKeys.Tap,{detail:{event:t,point:e}}))}#d(t){return this.#n.get(s4.CacheKeys.Gesture).get(t)}#p(t,e){this.#n.get(s4.CacheKeys.Gesture).set(t,e)}#c(t,e,i){let n=Math.max(Math.min(e<0?/*@__PURE__*/a(sE).view.zoom*i:/*@__PURE__*/a(sE).view.zoom/i,s4.maxZoom),s4.minZoom),s=/*@__PURE__*/a(sE).view.viewToProject(t),r=s.subtract(/*@__PURE__*/a(sE).view.center),o=s.subtract(r.multiply(/*@__PURE__*/a(sE).view.zoom/n)).subtract(/*@__PURE__*/a(sE).view.center);/*@__PURE__*/a(sE).view.zoom=n,/*@__PURE__*/a(sE).view.center=/*@__PURE__*/a(sE).view.center.add(o)}static point(t){return new sE.Point(t.clientX,t.clientY)}static vibrate(t=25){s4.canVibrate&&s6.vibrate(t)}static canVibrate="function"==typeof s6.vibrate;static CacheKeys=Object.freeze({Down:"down",Move:"move",Gesture:"gesture"});static GestureKeys=Object.freeze({Pan:"pan",Pinch:"pinch",Tap:"tap"});static maxZoom=2;static minZoom=.5}var sE=u("hvNIE");class s9{definition;id;name;constructor(t,e){this.id=t,this.name=e}place(t,e){if(!this.definition){let t=document.getElementById(this.id),e=/*@__PURE__*/a(sE).project.importSVG(t);e.data.collidable=!1,e.locked=!0,this.definition=new sE.SymbolDefinition(e)}return e&&this.definition.item.set(e),this.definition.place(t)}}class s8{static Immutable=new s9("icon-immutable","block");static Lock=new s9("icon-lock","lock");static Move=new s9("icon-move","drag_pan");static RotateLeft=new s9("icon-rotate-left","rotate_left");static RotateRight=new s9("icon-rotate-right","rotate_right");static Swap=new s9("icon-swap","swap_horiz");static ToggleOff=new s9("icon-toggle-off","toggle_off");static ToggleOn=new s9("icon-toggle-on","toggle_on");static All=Object.freeze([s8.Immutable,s8.Lock,s8.Move,s8.RotateLeft,s8.RotateRight,s8.Swap,s8.ToggleOff,s8.ToggleOn]);static ByName=Object.freeze(Object.fromEntries(s8.All.map(t=>[t.name,t])))}let s7=document.getElementById("modifiers"),rt=0;class re extends s1{#f;#g=!1;#h=new s5({context:this});#m;configuration;element;disabled=!1;id=rt++;immutable=!1;name;parent;tile;title;type;constructor(t,e){super(e),this.parent=t,this.type=e.type}attach(t){this.tile=t,this.disabled=this.immutable||this.tile?.modifiers.some(t=>t.type===re.Types.immutable)||!this.tile?.items.some(t=>t.type!==s2.Types.beam)||!this.tile?.equals(this.parent)&&(this.tile.modifiers.some(t=>t.type===this.type)||this.tile?.modifiers.length===rw.MaxModifiers);let e=this.#f=document.createElement("li");e.classList.add(["modifier",this.type.toLowerCase()].join("-")),e.dataset.id=this.id.toString();let i=this.element=document.createElement("span");i.classList.add("material-symbols-outlined","fill"),e.append(i),this.update(),this.#h.add([{type:"pointerdown",handler:this.onPointerDown},{type:"pointerleave",handler:this.onPointerUp},{type:"pointerup",handler:this.onPointerUp}],{element:e}),s7.append(e)}detach(){this.#f&&(this.#h.remove(),this.#f.remove(),this.element=void 0,this.#f=void 0)}dispatchEvent(t,e){sD(t,Object.assign({},e||{},{modifier:this,tile:this.tile}))}equals(t){return t instanceof re&&this.id===t.id}getSymbol(){return s8.ByName[this.name]}move(t){this.parent?.removeModifier(this),this.parent=t,t?.addModifier(this)}moveFilter(t){return t.modifiers.some(re.immutable)||t.items.every(s2.immutable)}onPointerDown(t){0!==t.button?this.onToggle(t):this.#g=!0}onPointerUp(t){if(clearTimeout(this.#m),this.#g&&!this.disabled)switch(t.type){case"pointerleave":this.onToggle(t);break;case"pointerup":this.onTap(t)}this.#g=!1}onTap(){}onToggle(){s4.vibrate()}toString(){return[this.name,this.id].join(":")}update(t){t=Object.assign({disabled:this.disabled,name:this.name,title:this.title},t||{}),this.immutable||(this.disabled=t.disabled),this.name=t.name,this.title=t.title,this.#f&&(this.#f.classList.toggle("disabled",this.disabled),this.element.textContent=this.name,this.element.title=this.title)}static immutable(t){return t.type===re.Types.immutable}static Events=Object.freeze({Invoked:"modifier-invoked",Moved:"modifier-moved"});static Types=Object.freeze(Object.fromEntries(["immutable","lock","move","rotate","swap","toggle"].map(t=>[t,sz(t)])))}class ri extends re{#_;name=s8.Move.name;title="Move";onTap(t){super.onTap(t);let e=this.tile.items.filter(ri.movable);if(this.#_||!e.length)return;let i=new rD.Mask({id:this.toString(),onTap:this.#v.bind(this),onMask:()=>this.tile.beforeModify(),onUnmask:()=>this.tile.afterModify(),tileFilter:this.tileFilter.bind(this)});this.#_=i,sD(rD.Events.Mask,{mask:i})}moveFilter(t){return super.moveFilter(t)||!t.items.some(ri.movable)}moveItems(t){let e=this.tile.items.filter(ri.movable);return e.forEach(e=>e.move(t)),{moved:[ri.data(this.tile,t,e)],tiles:[this.tile,t]}}tileFilter(t){return!t.equals(this.tile)&&(t.modifiers.some(re.immutable)||t.items.some(t=>!ri.ignoreItemTypes.includes(t.type)))}#v(t,e){if(t.unmask(),e){let i=this.moveItems(e);t.updateSelectedTile(e),this.dispatchEvent(re.Events.Invoked,i)}this.#_=void 0}static data(t,e,i){return{fromTile:t,toTile:e,items:i}}static movable(t){return t.movable}static ignoreItemTypes=[s2.Types.beam,s2.Types.wall]}let rn=t=>class extends t{movable;constructor(t,e){super(...arguments),this.movable=!this.immutable&&!1!==e.movable}move(t){this.parent.removeItem(this);let e=this.parent.center.subtract(t.center);this.group.position=this.group.position.subtract(e),this.parent=t,this.parent.addItem(this),this.center=this.parent.center,this.onMove()}onMove(){}};class rs{color;colors;connected;direction;done;insertAbove;onAdd;onRemove;point;pathIndex;segmentIndex;state;tile;constructor(t,e,i,n,s,r,a,o,l,h,u,c,d){if(u&&!(u instanceof rr))throw Error("Step.state must be instance of StepState");this.colors=i?Array.isArray(i)?Array.from(i):[i]:[],this.colors.length&&(this.color=ij.average(this.colors).hex()),this.connected=o??!0,this.direction=n,this.done=h??!1,this.index=t,this.insertAbove=l,this.onAdd=c??sK,this.onRemove=d??sK,this.point=s,this.pathIndex=r,this.segmentIndex=a,this.state=u??new rr,this.tile=e}copy(t){return new rs(t.index??this.index,t.tile??this.tile,t.colors??t.color??this.colors,t.direction??this.direction,t.point??this.point,t.pathIndex??this.pathIndex,t.segmentIndex??this.segmentIndex,t.connected??this.connected,t.insertAbove??this.insertAbove,t.done??this.done,t.state??new rr(this.state),t.onAdd??this.onAdd,t.onRemove??this.onRemove)}equals(t){return sB(this,t)}}class rr{#n={};constructor(){let t=Object.assign({},...arguments);Object.keys(t).forEach(e=>{this[e]=t[e]})}copy(...t){return new rr(...[this].concat(t))}get(t){return this.#r(t).map(t=>this[t]).find(t=>t)}has(t){return this.#r(t).some(t=>this[t])}#r(t){return this.#n[t.name]??=Object.keys(Reflect.construct(t,[]))}static Collision=class{collision;constructor(t){this.collision=t}};static Filter=class{filter={}};static MergeInto=class{mergeInto;constructor(t){this.mergeInto={beam:t}}};static MergeWith=class{mergeWith;constructor(t){this.mergeWith=t}};static Portal=class{portal;constructor(t,e){this.portal={entryPortal:t,exitPortal:e}}};static Reflector=class{reflector;constructor(t){this.reflector={item:t}}};static TerminusConnection=class{terminusConnection;constructor(t,e){this.terminusConnection={terminus:t,opening:e}}}}class ra extends rn(s2){constructor(t,{color:e}){super(...arguments),this.color=ij.average(Array.isArray(e)?e:[e]).hex();let i=new sE.Color(e);i.alpha=.25;let n=new sE.Path.RegularPolygon({center:t.center,closed:!0,radius:t.parameters.circumradius/3,sides:3,style:{fillColor:i,strokeColor:e,strokeWidth:2}});this.group.addChild(n)}getColorElements(){return[sF(this.color)]}onCollision({currentStep:t,nextStep:e}){return e.copy(t.state.has(rr.Filter)?{colors:e.colors.concat([this.color])}:{state:new rr({insertAbove:this},new rr.Filter)})}}var sE=u("hvNIE");class ro extends re{clockwise;title="Rotate";constructor(t,e,i={}){super(...arguments),this.clockwise=sR(!0,e.clockwise,i.clockwise),this.name=ro.Names[this.clockwise?"right":"left"]}moveFilter(t){return super.moveFilter(t)||!t.items.some(t=>t.rotatable)}onTap(t){super.onTap(t);let e=this.tile.items.filter(t=>t.rotatable);e.forEach(t=>t.rotate(this.clockwise)),this.dispatchEvent(re.Events.Invoked,{items:e})}onToggle(){super.onToggle(),this.clockwise=!this.clockwise,this.updateState(t=>{t.clockwise=this.clockwise}),this.update({name:ro.Names[this.clockwise?"right":"left"]})}static Names=Object.freeze({left:s8.RotateLeft.name,right:s8.RotateRight.name})}let rl=t=>class extends t{direction;rotatable;rotation=0;rotationDegrees;constructor(t,e,i={}){super(...arguments),this.direction=sR(e.direction,i.direction),this.rotatable=!this.immutable&&sR(!0,e.rotatable,i.rotatable),this.rotationDegrees=sR(60,e.rotationDegrees,i.rotationDegrees),this.rotation=sR(0,e.rotation,i.rotation)%this.getMaxRotation()}getDirection(t){return void 0===(t=t??this.direction)?t:(t+this.rotation+6)%6}getMaxRotation(){return 360/this.rotationDegrees}onInitialization(){super.onInitialization(),this.rotateGroup(this.rotation),void 0!==this.direction&&this.rotateGroup(this.direction)}rotateGroup(t){this.group.rotate(t*this.rotationDegrees,this.center)}rotate(t){if(!this.rotatable)return;let e=!1===t?-1:1;this.rotation=(e+this.rotation)%this.getMaxRotation(),this.updateState(t=>{t.rotation=this.rotation}),this.rotateGroup(e)}};class rh extends rn(rl(s2)){#y={};constructor(t,e){super(t,e,{rotatable:void 0!==e.direction}),this.direction=e.direction;let i=t.parameters.circumradius/3,n=t.parameters.circumradius/5,s={fillColor:"black",strokeColor:"white",strokeWidth:2},r=[],a=new sE.Path.Ellipse({center:t.center,radius:[n,i],style:s});r.push(a);let o=new sE.Path.Ellipse({center:t.center,radius:[n-2*s.strokeWidth,i-2*s.strokeWidth],style:s});if(r.push(o),void 0!==this.direction){let e=new(0,sE.Path)({closed:!0,opacity:.25,segments:[t.center.add(new sE.Point(0,i)),t.center.subtract(new sE.Point(0,i)),t.center.subtract(new sE.Point(2.5*n,0))],style:{fillColor:"black"}}).subtract(a);r.unshift(e)}this.group.addChildren(r),void 0!==this.direction&&this.rotateGroup(1)}get(t){return this.#y[t]}onCollision({beam:t,currentStep:e,nextStep:i,puzzle:n}){let s=e.state.get(rr.Portal);if(s){if(s.exitPortal===this)return i.copy({insertAbove:this})}else{let t=sG(i.direction);if(sR(this.get(t),i).indexthis.update(t,e),onRemove:()=>this.update(t),state:i.state.copy(new rr.Portal(this))})}let r=this.#b(n,t,i);if(0===r.length)return console.debug(this.toString(),"no valid exit portals found"),e;if(1===r.length){let e=r[0];return console.debug(this.toString(),"single exit portal matched:",e),this.#x(t,i,e,!1)}{console.debug(this.toString(),"found multiple valid exit portals:",r);let s={exitPortals:r},a=new rD.Mask({id:this.id,onMask:()=>e.tile.beforeModify(),onTap:(e,n)=>{let r=s.exitPortals.find(t=>t.parent===n);r&&(t.addStep(this.#x(t,i,r)),e.unmask())},onUnmask:()=>e.tile.afterModify(),onUpdate:()=>{let e=this.#b(n,t,i);if(0===e.length)return console.debug(this.toString(),"mask onUpdate: no valid exit portals found"),!1;if(1===e.length){let n=e[0];return console.debug(this.toString(),"mask onUpdate: single portal matched:",n),t.addStep(this.#x(t,i,n)),!1}console.debug(this.toString(),"mask onUpdate: exit portals:",e),s.exitPortals=e},tileFilter:t=>!(t.equals(this.parent)||s.exitPortals.map(t=>t.parent).some(e=>e.equals(t)))});return n.updateSelectedTile(null),n.mask(a),e}}onMove(){super.onMove(),this.#y={}}update(t,e){this.#y[t]=e}#b(t,e,i){let n=t.getItems().filter(t=>t.type===s2.Types.portal&&!t.equals(this)&&!t.get(rh.getExitDirection(i,this,t))&&(void 0===this.getDirection()||void 0===t.getDirection()||t.getDirection()===this.getDirection()));if(n.length>1){let t=e.getState().steps?.[i.index]?.[this.id];if(void 0!==t){console.debug(this.toString(),`found exitPortalId ${t} in beam step ${i.index} state`);let e=n.find(e=>e.id===t);if(e)return[e]}}return n}#x(t,e,i,n=!0){let s=rh.getExitDirection(e,this,i);return e.copy({connected:!1,direction:s,insertAbove:i,onAdd:e=>{i.update(s,e),t.updateState(t=>(t.steps??={})[e.index]={[this.id]:i.id},n)},onRemove:e=>{t.updateState(t=>{delete t.steps[e.index]},!1),i.update(s)},point:i.parent.center,state:e.state.copy(new rr.Portal(this,i)),tile:i.parent})}static getExitDirection(t,e,i){return i.getDirection()??e.getDirection()??t.direction}}var sE=u("hvNIE");class ru extends re{on;title="Toggle";constructor(t,{on:e}){super(...arguments),this.on=e||!1,this.name=this.getName()}attach(t){super.attach(t),this.on=this.tile?.items.some(t=>t.on||t.toggled),this.update({name:this.getName()})}getName(){return ru.Names[this.on?"on":"off"]}moveFilter(t){return super.moveFilter(t)||!t.items.some(t=>t.toggleable)}onTap(t){super.onTap(t),this.on=!this.on;let e=this.tile.items.filter(t=>t.toggleable);e.forEach(t=>t.toggle(this.on)),this.update({name:this.getName()}),this.dispatchEvent(re.Events.Invoked,{items:e})}static Names=Object.freeze({on:s8.ToggleOn.name,off:s8.ToggleOff.name})}let rc=t=>class extends t{toggleable;toggled;constructor(t,e){super(...arguments),this.toggleable=!this.immutable&&!1!==e.toggleable,this.toggled=this.toggleable&&e.toggled}onToggle(){}toggle(t){this.toggled=t,this.onToggle()}};var sE=u("hvNIE");class rd{constructor(t,e,i,n){let s=[i];void 0!==n&&s.push(n),this.beam=i,this.index=t,this.item=n,this.itemIds=s.map(t=>t.id),this.items=s,this.point=e[0],this.points=e,this.withSelf=i.equals(n)}copy(t){return new rd(t.index??this.index,t.points??this.points,t.beam??this.beam,t.item??this.item)}equals(t){return t&&t.point.equals(this.point)&&t.items.every(t=>this.has(t))}has(t){return this.itemIds.includes(t.id)}mirror(){return this.copy({beam:this.item,item:this.beam})}}class rp{constructor(t,e,i){this.beams=[t].concat(e.state.get(rr.MergeWith)?.beams||[]),this.colors=e.colors.concat(t.getColors()),this.stepIndex=i}}class rf extends s2{done=!1;path=[];sortOrder=3;#n=new s3(Object.values(rf.CacheKeys));#w;#k;#S=-1;#C=[];constructor(t,e,i){e.immutable=!0,super(...arguments),this.group=null,this.#w=i.direction,this.#k={closed:!1,data:{id:this.id,type:this.type},locked:!0,strokeJoin:"round",strokeCap:"round",strokeWidth:t.radius/12}}addStep(t){let e=this.getLastStepIndex();if(this.done=!1,this.#k.strokeColor=t.color,0===this.path.length){let t=new sE.Path(this.#k);this.path.push(t),this.getLayer().insertChild(0,t)}let i=this.path[this.path.length-1],n=this.#C[e];if(!t.connected||n&&(t.color!==n.color||t.insertAbove!==n.insertAbove)){console.debug(this.toString(),"adding new path item for step:",t,"previous step:",n);let e=new sE.Path(this.#k),i=[t.point];t.connected&&i.unshift(n.point),e.add(...i),this.path.push(e),this.getLayer().insertChild(this.#I(t),e),t.segmentIndex=0}else i.add(t.point),t.segmentIndex=i.segments.length-1;return t.pathIndex=this.path.length-1,this.#C.push(t),t.index=this.#S=this.#C.length-1,t.tile.items.some(t=>t.equals(this))||t.tile.addItem(this),t.onAdd(t),console.debug(this.toString(),"added step",t),this.#T(this.#S),t}getCollision(){return this.getStep()?.state.get(rr.Collision)}getColor(){return this.getStep()?.color||this.getOpening().color}getColors(){return Array.from(this.getStep()?.colors||this.getOpening().colors)}getColorElements(t){let e=this.getSteps(t).find(t=>t.state.has(rr.MergeWith));return e?sj(e.colors):[]}getCompoundPath(){return new sE.CompoundPath({children:this.path.map(t=>t.clone({insert:!1}))})}getIndex(){return this.path[this.path.length-1].index}getLastStepIndex(){return this.length()-1}getLayer(){return this.parent.getLayer()}getMergeWith(t){return this.#n.get(rf.CacheKeys.MergeWith).get(t.id)}getOpening(){return this.parent.getOpening(this.#w)}getState(){return this.parent.getState().openings[this.#w]}getStep(t){return this.#C[t||this.getLastStepIndex()]}getSteps(t){return t?this.#C.filter(e=>e.tile===t):this.#C}isComplete(){return this.isOn()&&this.done}isConnected(){let t=this.getStep();return t?.state.has(rr.TerminusConnection)||t?.state.get(rr.MergeInto)?.beam.isConnected()}isOn(){let t=this.getOpening();return t.on&&!t.connected}isPending(){return this.isOn()&&!this.done}length(){return this.#C.length}onBeamUpdated(t){let e=t.detail.beam;if(e.isPending())return;let i=e.getStep();if(this.isComplete()){let t=this.getStep(),n=t.state.get(rr.Collision);if(n?.has(e)&&!n.equals(i?.state.get(rr.Collision))){console.debug(this.toString(),"re-evaluating collision with",e.toString()),this.done=!1,this.#S=Math.max(t.index-1,0);return}let s=t.state.get(rr.MergeInto);if(s?.beam.equals(e)&&!e.getMergeWith(this)){console.debug(this.toString(),"re-evaluating merge into",e.toString()),this.done=!1,this.#S=Math.max(this.#S-1,0);return}}let n=this.getMergeWith(e);n&&!i?.state.get(rr.MergeInto)?.beam.equals(this)&&(console.debug(this.toString(),"re-evaluating merge with",e.toString()),this.done=!1,this.#S=Math.max(n.stepIndex-1,0))}onCollision({beam:t,collision:e,collisionStep:i,currentStep:n,nextStep:s,puzzle:r}){let a=t.equals(this);if(console.debug(this.toString(),"evaluating collision with",a?"self":t.toString()),!t.isOn()){console.debug(this.toString(),"ignoring collision with inactive beam",t.toString());return}if(t.parent.equals(this.parent)&&0===n.index){console.debug(this.toString(),"ignoring collision with sibling beam",t.toString());return}if(a&&this.#SsV(e.point,t.point));if(o<0)throw Error(`Could not find matching step for beam collision between ${this.toString()} and ${t.toString()}`);let l=this.#C[o];if(l.state.get(rr.MergeInto)?.beam.equals(t)){console.debug(this.toString(),"ignoring collision with merged beam",t.toString());return}if(l.state.get(rr.TerminusConnection)?.terminus.equals(t.parent)){console.debug(this.toString(),"ignoring collision with connected beam in parent terminus",t.toString());return}let h=l.state.get(rr.Reflector)??n.state.get(rr.Reflector);if(h){let e=sH(l.point,1,sG(l.direction)),i=sH(n.point,1,sG(n.direction));if(!h.item.isSameSide(e,i)){console.debug(this.toString(),"ignoring collision with beam on opposite side of reflector",t.toString());return}}if(n.state.get(rr.Portal)??l.state.get(rr.Portal)){console.debug(this.toString(),"ignoring collision with beam using same portal",t.toString());return}let u=l.direction===s.direction;if(!u||a)return console.debug(t.toString(),"has collided with",a?"self":this.toString(),e),l.state.get(rr.Collision)?.point.equals(e.point)||(a?u||this.update(o,r.getBeamsUpdateDelay()):this.update(o,{done:!0,state:l.state.copy(new rr.Collision(e.mirror()))})),i.copy({done:!0,insertAbove:l.insertAbove});console.debug(this.toString(),"merging with",t.toString()),this.#E(o);let c=new rp(t,l,o);return this.addStep(l.copy({colors:c.colors,onAdd:()=>{this.#n.get(rf.CacheKeys.MergeWith).set(t.id,c)},onRemove:()=>{this.#n.get(rf.CacheKeys.MergeWith).unset(t.id)},state:l.state.copy(new rr.MergeWith(c))})),console.debug(t.toString(),"merging into",this.toString()),s.copy({done:!0,point:n.point,state:s.state.copy(new rr.MergeInto(this))})}onModifierInvoked(t){if(!this.isOn()){this.#C.length&&(console.debug(this.toString(),"beam has been toggled off"),this.remove());return}let e=t.detail.tiles||[t.detail.tile],i=this.#C.findIndex(t=>e.some(e=>e.equals(t.tile)));if(i>=0){console.debug(this.toString(),"re-evaluating due to modifier being invoked in matching tile",i),this.done=!1,this.#S=Math.max(i-1,0);return}if(this.isComplete()){let t=this.getStep();t.state.get(rr.Portal)?.entryPortal&&(this.done=!1)}}remove(t=0){this.#E(t)}selected(t=!0){this.path.forEach(e=>{e.selected=t})}startDirection(){return(this.getOpening().direction+this.parent.rotation)%6}step(t){let e;if(!this.isPending())return;if(console.debug(this.toString(),"currentStepIndex",this.#S),0===this.#C.length){let t=this.parent.parent;this.addStep(new rs(0,t,this.getColor(),this.startDirection(),t.center))}let i=this.#S,n=this.#C[i],s=0===i?this.startDirection():n.direction,r=sH(n.point,n.tile.parameters.inradius,s),a=t.getTile(sZ(n.point,r));if(!a){console.debug(this.toString(),"stopping due to out of bounds");let t=new rd(0,[n.point],this);return this.updateStep(i,{done:!0,state:new rr(new rr.Collision(t))})}let o=i+1,l=this.#C[o],h=this.path.length-1,u=this.path[h].segments.length-1,c=new rs(o,a,n.color,s,r,l?.pathIndex||h,l?.segmentIndex||u),d=function(t,e){let i=t.map(t=>t.id);return t.filter((t,e)=>!i.includes(t.id,e+1))}(a.items.concat(n.tile.equals(c.tile)?[]:n.tile.items),0);console.debug(this.toString(),"collision items:",d);let p=this.#A(d,n,c,t).map((t,e)=>new rd(e,t.points,this,t.item));p.length&&console.debug(this.toString(),"collisions:",p);for(let i=0;it(e.openings[this.#w]),e)}updateStep(t,e){let i=this.getStep(t);if(i){i.onRemove(i);let n=this.#O(i,e);return this.#C[t]=n,n.onAdd(n),console.debug(this.toString(),"updated step at index",t,"from",i,"to",n),this.#T(t),n}}#A(t,e,i,n){let s=[e.point,i.point],r=new sE.Path({segments:s}),a=s[0];return t.map(t=>{let e=[];return e.push(...new Set(r.getIntersections(t.getCompoundPath(),e=>!(t===this&&e.point.equals(a))).map(t=>t.point))),e.length||t.type!==s2.Types.beam||t===this||e.push(...t.getSteps().map(t=>t.point).filter(t=>s.some(e=>sV(t,e)))),e.sort(sU(a)),n.debug&&(n.drawDebugPoint(a),e.forEach(t=>n.drawDebugPoint(t,{fillColor:"black"}))),{points:e,item:t}}).filter(t=>t.points.length).sort((t,e)=>{let i=sU(a)(t.points[0],e.points[0]);return 0===i?t.item.sortOrder-e.item.sortOrder:i})}#I(t){return t.insertAbove?t.insertAbove.getIndex()+1:0}#O(t,e){return"function"==typeof e&&(e=e(t)),e instanceof rs?e:t.copy(e)}#P(t,e){if(tt.remove());let s=this.#C.splice(t);console.debug(this.toString(),"removed steps: ",s),[...new Set(s.map(t=>t.tile))].filter(t=>0===this.getSteps(t).length).forEach(t=>t.removeItem(this)),s.forEach(t=>t.onRemove(t)),this.done=!1,this.#S=t-1,this.#T(this.#S)}return i}static CacheKeys=Object.freeze({MergeWith:"mergeWith"});static Events=Object.freeze({Collision:"beam-collision",Connection:"beam-connection",Merge:"beam-merge",Update:"beam-update"})}class rg extends rn(rl(rc(s2))){sortOrder=2;#N;constructor(t,e){super(...arguments);let i=e.openings.filter(t=>t?.color).flatMap(t=>Array.isArray(t.color)?t.color:[t.color]),n=ij.average(i.length?i:Array.isArray(e.color)?e.color:[e.color]).hex(),s=e.openings.map((t,i)=>t?new rg.#M(t.color??n,i,t.connected,t.on??e.on):t).filter(t=>t);this.#N=rg.ui(t,n,s),this.group.addChildren([...this.#N.openings,this.#N.terminus]),this.color=n,this.openings=s,this.radius=this.#N.radius,this.toggled=s.some(t=>t.on),this.beams=s.map(t=>new rf(this,e.openings[t.direction],t)),this.update()}getColorElements(){return sj(this.openings.map(t=>t.color))}getOpening(t){return this.openings.find(e=>e.direction===t)}onMove(){this.beams.forEach(t=>t.remove())}onCollision({beam:t,collisionStep:e,currentStep:i,existingNextStep:n,nextStep:s}){if(console.debug(this.toString(),"collision",t.toString()),t.parent===this&&t.startDirection()===s.direction){console.debug(t.toString(),"ignoring starting terminus collision");return}let r=sG(i.direction),a=this.openings.find(t=>this.getDirection(t.direction)===r);return a&&a.color===s.color&&(!a.on||a.connected&&n?.state.get(rr.TerminusConnection)?.terminus.equals(this))?(console.debug(t.toString(),"terminus connection",this.toString(),a),s.copy({done:!0,onAdd:()=>{s.onAdd(),this.onConnection(a.direction)},onRemove:()=>{s.onRemove(),this.onDisconnection(a.direction)},state:s.state.copy(new rr.TerminusConnection(this,a))})):e}onConnection(t){let e=this.getOpening(t);e.connected||(e.connect(),this.update(),sD(rg.Events.Connection,{terminus:this,opening:e}))}onDisconnection(t){let e=this.getOpening(t);e.connected&&(e.disconnect(),this.update(),sD(rg.Events.Disconnection,{terminus:this,opening:e}))}onToggle(){this.updateState(t=>{this.openings.filter(t=>!t.connected).forEach(e=>{e.toggle(),t.openings[e.direction].on=e.on})}),this.update()}update(){this.beams.forEach(t=>{let e=t.getOpening();this.#N.openings.find(t=>t.data.direction===e.direction).opacity=e.on?1:rg.#L})}static #L=.3;static ui(t,e,i){let n=t.parameters.circumradius/2,s=new sE.Path.RegularPolygon({center:t.center,fillColor:e,opacity:1,sides:6,radius:n/2});return{openings:i.map(t=>{let e=t.direction,i=s.segments[(e+-1+6)%6].point,n=s.segments[(e+2+6)%6].point,r=n.subtract(i);r.angle+=120;let a=i.subtract(r);return new sE.Path({closed:!0,data:{collidable:!1,direction:e},fillColor:t.color,opacity:t.on?1:rg.#L,segments:[i,n,a]})}),radius:n,terminus:s}}static #M=class{constructor(t,e,i,n){this.colors=Array.isArray(t)?t:[t],this.color=ij.average(this.colors).hex(),this.direction=e,this.connected=!0===i,this.on=!0===n}connect(){this.connected=this.on=!0}disconnect(){this.connected=this.on=!1}toggle(){this.on=!this.on}};static Events=Object.freeze({Connection:"terminus-connection",Disconnection:"terminus-disconnection"})}var sE=u("hvNIE");class rm extends rn(rl(s2)){#z;constructor(t,e){super(t,e,{rotationDegrees:30}),this.color=e.color||"black",this.#z=rm.item(t,this.color),this.group.addChild(this.#z)}midLine(){return[sZ(this.#z.segments[3].point,this.#z.segments[0].point),sZ(this.#z.segments[1].point,this.#z.segments[2].point)]}getSide(t){return function(t,e){let[i,n]=t;return Math.sign((n.x-i.x)*(e.y-i.y)-(n.y-i.y)*(e.x-i.x))}(this.midLine(),t)}isSameSide(t,e){return this.getSide(t)===this.getSide(e)}onCollision({beam:t,collision:e,collisions:i,collisionStep:n,currentStep:s,nextStep:r}){let a=sG(s.direction),o=function(t,e){let i=60*sW(t,!0);return sW(function(t,e){let i=t+e;return i<0?360+i:i>360?i-360:i}(i,(30*e-i)*2)/60%6,!1)}(a,this.rotation);if(o===s.direction)return console.debug(t.toString(),"stopping due to collision with non-reflective side of reflector"),n;if(o===a)return console.debug(t.toString(),"stopping due to reflection back at self"),r.copy({done:!0,state:r.state.copy(new rr.Collision(e.copy({points:[r.point]})))});if(!s.state.has(rr.Reflector))return r.copy({state:r.state.copy(new rr.Reflector(this))});let l=sH(s.point,r.tile.parameters.inradius,o);return r.copy({direction:o,point:l})}static item(t,e){let i=t.parameters.circumradius/12,n=t.parameters.circumradius-2*i,s=t.center.subtract(new sE.Point(i/2,n/2)),r=new sE.Size(i,n);return new sE.Path.Rectangle({data:{size:r},fillColor:e,point:s,size:r})}}var sE=u("hvNIE");class r_ extends rn(rl(s2)){sortOrder=1;constructor(t,e){e.immutable??=!0,super(t,e,{rotationDegrees:60});let i=r_.item(t,e);this.group.addChildren(i)}static item(t,e){let i=t.parameters.circumradius/12,n=t.styles.default.strokeColor;return e.directions.map(e=>{let s=t.hexagon.segments[e].point,r=(e+1+6)%6,a=t.hexagon.segments[r].point;return new sE.Path({closed:!0,fillColor:n,segments:[s,t.hexagon.getLocationAt((0===e?t.hexagon.length:t.hexagon.getOffsetOf(s))-i),t.hexagon.getLocationAt((0===r?0:t.hexagon.getOffsetOf(a))+i),a]})})}}class rv extends re{immutable=!0;name="block";title="Immutable"}class ry extends re{immutable=!0;name="lock";title="Locked"}class rb extends ri{name=s8.Swap.name;title="Swap";moveItems(t){let e=t.items.filter(ri.movable),i=this.tile.items.filter(ri.movable);return i.forEach(e=>e.move(t)),e.forEach(t=>t.move(this.tile)),{moved:[ri.data(this.tile,t,i),ri.data(t,this.tile,e)],tiles:[this.tile,t]}}tileFilter(t){return!t.equals(this.tile)&&(t.modifiers.some(re.immutable)||!t.items.some(ri.movable))}}function rx(t,e){let i;switch(e.type){case re.Types.immutable:i=new rv(t,e);break;case re.Types.lock:i=new ry(t,e);break;case re.Types.move:i=new ri(t,e);break;case re.Types.rotate:i=new ro(t,e);break;case re.Types.swap:i=new rb(t,e);break;case re.Types.toggle:i=new ru(t,e);break;default:console.error("Ignoring modifier with unknown type:",e.type)}return i}class rw extends s2{icons=[];selected=!1;#N;constructor(t,e,i,n){super(null,n,{locked:!1}),this.#N=rw.ui(e,i,n,{coordinates:t,type:this.type}),this.center=this.#N.center,this.coordinates=t,this.hexagon=this.#N.hexagon,this.parameters=i,this.styles=this.#N.styles,this.group.addChildren([this.#N.hexagon]),this.items=(n.items||[]).map(t=>(function(t,e,i){let n;switch(e.type){case s2.Types.filter:n=new ra(...arguments);break;case s2.Types.portal:n=new rh(...arguments);break;case s2.Types.terminus:n=new rg(...arguments);break;case s2.Types.reflector:n=new rm(...arguments);break;case s2.Types.wall:n=new r_(...arguments);break;default:throw console.debug("itemFactory",e),Error(`Cannot create item with unknown type: ${e.type}`)}return n&&n.onInitialization(),n})(this,t)).filter(t=>void 0!==t),this.modifiers=(n.modifiers||[]).map(t=>rx(this,t)).filter(t=>void 0!==t),this.update()}addItem(t){this.items.push(t),this.update()}addModifier(t){this.modifiers.push(t),this.update()}afterModify(){this.setStyle(this.selected?"selected":"default"),this.modifiers.forEach(t=>t.update({disabled:!1}))}beforeModify(){this.group.bringToFront(),this.setStyle("edit"),this.modifiers.forEach(t=>t.update({disabled:!0}))}getState(){let t={type:this.type},e=this.items.filter(t=>t.type!==s2.Types.beam).map(t=>t.getState());e.length&&(t.items=e);let i=this.modifiers.map(t=>t.getState());return i.length&&(t.modifiers=i),t}onTap(t){this.items.forEach(e=>e.onTap(t))}onDeselected(t){this.selected=!1,this.#N.hexagon.style=this.styles.default,this.items.forEach(t=>t.onDeselected()),sD(rw.Events.Deselected,{selectedTile:t,deselectedTile:this})}onSelected(t){console.debug(this.toString(),"selected"),this.selected=!0,this.group.bringToFront(),this.#N.hexagon.style=this.styles.selected,this.items.forEach(t=>t.onSelected())}removeItem(t){let e=this.items.indexOf(t);e>=0&&(this.items.splice(e,1),this.update())}removeModifier(t){let e=this.modifiers.indexOf(t);e>=0&&(this.modifiers.splice(e,1),this.update())}setStyle(t){this.hexagon.set(this.styles[t])}teardown(){this.modifiers.forEach(t=>t.detach())}toString(){return`[${this.type}:${this.coordinates.offset.toString()}]`}update(){super.update(),this.icons=this.modifiers.map((t,e)=>{let i=sZ(this.#N.hexagon.segments[e].point,this.center,t=>t/3);return t.getSymbol().place(i,{fillColor:t.immutable?"#ccc":"#333"})}),this.group.removeChildren(1),this.group.addChildren(this.icons)}static parameters(t){let e=t/2,i=Math.sqrt(3)*e;return{circumradius:e,height:t,inradius:i/2,offsetY:3/4*t,width:i}}static ui(t,e,i,n){let s=new sE.Point(t.startingOffsetX+e.inradius+t.column*e.width,t.startingOffsetY+e.circumradius+t.row*e.offsetY),r=e.circumradius/10,a=Object.assign({},rw.Styles,{edit:Object.assign({dashArray:[r,r]},rw.Styles.edit)},i.style||{}),o=new sE.Path.RegularPolygon({center:s,closed:!0,data:n,radius:e.circumradius,sides:6,style:a.default});return{center:s,hexagon:o,styles:a}}static Events=Object.freeze({Deselected:"tile-deselected",Selected:"tile-selected"});static MaxModifiers=6;static Styles=Object.freeze({default:{dashArray:[],fillColor:new sE.Color("white"),strokeColor:new sE.Color("#666"),strokeWidth:1},edit:{strokeColor:new sE.Color("black"),strokeWidth:2},selected:{dashArray:[],strokeColor:new sE.Color("black"),strokeWidth:2}})}class rk extends s1{#R=[];#B=[];items=[];layers={};modifiers=[];tiles=[];tileSize=120;constructor(t){super(t),this.type=t.type||rk.Types.oddR;let e=/*@__PURE__*/a(sE).view.center,i=rw.parameters(this.tileSize),n=t.tiles,s=n.length*i.width,r=e.y-s/2;this.layers.tiles=new sE.Layer,this.layers.items=new sE.Layer,this.modifiers=(t.modifiers||[]).map(t=>rx(null,t)).filter(t=>void 0!==t);let o=n.reduce((t,e,i)=>{let n=e.length;return n>t.length||n===t.length&&this.#D(i)?{index:i,length:n}:t},{index:0,length:0}),l=o.length*i.width+(this.#D(o.index)?i.inradius:0),h=e.x-l/2;for(let t=0;tt.group))),this.tiles.push(p),s[l.q]=p,a[u.c]=p}this.#R.push(s),this.#B.push(a)}}getTileByAxial(t){return(this.#R[t.r]||[])[t.q]}getTileByOffset(t){return this.#B[t.r][t.c]}getState(){let t={type:this.type};t.tiles=this.#B.map(t=>t.map(t=>t?.getState()||null));let e=this.modifiers.map(t=>t.getState());return e.length&&(t.modifiers=e),t}getNeighboringTile(t,e){return this.getTileByAxial(s0.neighbor(t,sW(e)))}removeModifier(t){let e=this.modifiers.indexOf(t);e>=0&&this.modifiers.splice(e,1)}teardown(){this.modifiers.forEach(t=>t.detach()),Object.values(this.layers).forEach(t=>t.removeChildren())}#D(t){return t%2==0?this.type===rk.Types.evenR:this.type===rk.Types.oddR}static Types=Object.freeze({evenR:"even-r",oddR:"odd-r"})}var sE=(u("hvNIE"),u("hvNIE"));class rS extends s2{constructor(t,e){super(null,e,{locked:!1,type:s2.Types.mask});let i={type:this.type},n=new sE.Path.RegularPolygon({center:t.center,closed:!0,data:i,opacity:.25,radius:t.parameters.circumradius+1,sides:6,style:Object.assign({fillColor:"black"},e)});this.center=t.center,this.group.addChild(n)}}var sE=u("hvNIE");class rC extends s2{constructor(t){super(null,t,{type:s2.Types.collision});let{center:e,color:i}=t;this.center=e,this.color=i;let n=new sE.Path.Circle({center:e,closed:!0,radius:4,style:{fillColor:"white",strokeColor:i,strokeWidth:2}});this.group.addChild(n)}}let rI={"001":u("3VFNU"),"002":u("dvwd6"),"003":u("1pc6w"),"004":u("iL3ZL"),"005":u("bzWyh"),"006":u("cJ803"),"007":u("dX47o"),"008":u("j6Nsr"),"009":u("dtX4d"),"010":u("g1I4V"),"011":u("8EOId"),"012":u("2svxQ"),test_infinite_loop:u("1C1In"),test_layout:u("heXOA"),test_portal:u("16oTl"),test_reflector:u("1nXJz")};function rT(t,e,i){let n=t.indexOf(e);return t[n<0?n:n+i]}class rE{ids;constructor(t){this.firstId=t[0],this.ids=t,this.lastId=t[t.length-1]}get(t){if(this.has(t))return structuredClone(rI[t])}has(t){return this.ids.includes(t)}nextId(t){return rT(this.ids,t,1)}previousId(t){return rT(this.ids,t,-1)}}let rA=new rE(Object.keys(rI).sort());rA.hidden=new rE(rA.ids.filter(t=>t.startsWith("test_"))),rA.titles=Object.fromEntries(rA.ids.map(t=>[t,rI[t].title||t])),rA.visible=new rE(rA.ids.filter(t=>!rA.hidden.has(t)));let rP=window.history,rO=window.localStorage;class rN{#V;#F;#j;#U;#q;#Z;#H;constructor(t,e,i,n,s,r){this.#j=t,this.#q=e,this.#F=i||[],this.#U=n||this.#G(),this.#Z=s,this.#H=r??e.version,this.#V=structuredClone(e),this.#F.filter((t,e)=>e<=this.#U).forEach(t=>this.apply(t)),this.#W(t)}apply(t){return"string"==typeof t&&(t=JSON.parse(t)),console.debug("StateManager: applying delta",t),sN.patch(this.#V,t)}canRedo(){return this.#U0}canUndo(){return this.#U>=0}encode(){return sL(JSON.stringify({id:this.#j,original:rA.has(this.#j)?void 0:this.#q,deltas:this.#F,deltasIndex:this.#U,selectedTile:this.#Z,version:this.#H}))}getCurrent(){return structuredClone(this.#V)}getId(){return this.#j}getTitle(){return this.getId()+(this.#V.title?` - ${this.#V.title}`:"")}getSelectedTile(){return this.#Z}moves(){return this.#U+1}length(){return this.#F.length}redo(){if(this.canRedo())return this.#U++,this.#V=structuredClone(this.#q),this.#F.filter((t,e)=>e<=this.#U).forEach(t=>this.apply(t)),this.#W(),!0}reset(){if(this.canReset())return this.#V=structuredClone(this.#q),this.#F=[],this.#U=this.#G(),this.#Z=void 0,rN.clearCache(this.getId()),this.#W(),!0}setSelectedTile(t){let e=t?.coordinates.offset.toString();this.#Z!==e&&(this.#Z=e,this.#W())}undo(){if(this.canUndo())return this.#U--,this.#V=structuredClone(this.#q),this.#F.filter((t,e)=>e<=this.#U).forEach(t=>this.apply(t)),this.#W(),!0}update(t,e=!0){let i=sN.diff(this.#V,t);console.debug("delta",i),void 0!==i&&(this.apply(i),e&&(this.#U""!==t);if(t||i.filter(t=>!rA.has(t)).some((i,n)=>{try{t=(e=rN.fromEncoded(i)).getId()}catch(t){console.debug(`Could not parse state from path segment '${n}'`,t)}return void 0!==e}),!e){t=t||i[0]||rO.getItem(rN.CacheKeys.id)||rA.visible.firstId;let n=rO.getItem(rN.key(rN.CacheKeys.state,t));if(n)try{e=rN.fromEncoded(n)}catch(e){console.debug(`Could not parse state with ID '${t}' from localStorage`,e)}}if(e){let i=e.#H,n=e.#q.version;i!==n&&(console.debug(`Invalidating cache for ID ${t} due to version mismatch. Puzzle: ${n}, Cache: ${i}`),e=void 0,rN.clearCache(t))}if(e||(e=rN.fromId(t)),!e)throw Error(`Unable to resolve state for ID '${t}'`);return e}static key(t,e){return`${t}:${e}`}static CacheKeys=Object.freeze({center:"center",id:"id",state:"state",zoom:"zoom"});static ParamKeys=Object.freeze({clearCache:"clearCache"})}class rM{#K=[];constructor(t){t.forEach(t=>this.#J(t))}teardown(){this.#K.forEach(t=>t.teardown()),rM.element.replaceChildren()}isSolved(){return this.#K.every(t=>t.isMet())}#J(t){switch(t.type){case rL.Types.connections:this.#K.push(new rz(t));break;case rL.Types.moves:this.#K.push(new rR(t));break;default:console.warn("Ignoring condition with unknown type:",t.type)}}static element=document.getElementById("solution")}class rL{constructor(t,e){this.state=t;let i=document.createElement("li");i.append(...e),rM.element.append(i)}isMet(){}teardown(){}update(){}static Types=Object.freeze(Object.fromEntries(["connections","moves"].map(t=>[t,sz(t)])))}class rz extends rL{#X;#Y=new s5({context:this});#Q=[];constructor(t){let e=document.createElement("span");e.textContent="0";let i=document.createElement("span");i.textContent=t.amount.toString(),super(t,[e,s$("/"),i,sq("link","Connections")]),this.#X=e,this.#Y.add([{type:rg.Events.Connection,handler:this.update},{type:rg.Events.Disconnection,handler:this.update}])}isMet(){return this.#Q.length===this.state.amount}teardown(){this.#Y.remove(),super.teardown()}update(t){console.debug("Connections.update",t);let e=t.detail.terminus,i=t.detail.opening,n=`${e.id}:${i.direction}`,s=this.#Q.findIndex(t=>t===n);i.connected&&s<0?this.#Q.push(n):!i.connected&&s>=0&&this.#Q.splice(s,1),this.#X.textContent=this.#Q.length.toString()}}class rR extends rL{#X;#Y=new s5({context:this});#tt=0;constructor(t){if(t.operator??=rR.Operators.equalTo,!Object.values(rR.Operators).includes(t.operator))throw Error(`Invalid moves operator: ${t.operator}`);let e=document.createElement("span");e.textContent="0";let i=document.createElement("span");i.textContent=t.amount.toString(),super(t,[e,s$(t.operator),i,sq("stacks","Moves")]),this.#X=e,this.#Y.add([{type:rD.Events.Updated,handler:this.update}])}isMet(){switch(this.state.operator){case rR.Operators.equalTo:return this.#tt===this.state.amount;case rR.Operators.greaterThan:return this.#tt>this.state.amount;case rR.Operators.lessThan:return this.#tt",lessThan:"<"})}let rB=Object.freeze({footer:document.getElementById("footer"),footerMessage:document.getElementById("footer-message"),headerMessage:document.getElementById("header-message"),main:document.getElementById("main"),next:document.getElementById("next"),previous:document.getElementById("previous"),puzzle:document.getElementById("puzzle"),puzzleId:document.getElementById("puzzle-id"),redo:document.getElementById("redo"),reset:document.getElementById("reset"),undo:document.getElementById("undo"),title:document.querySelector("title")});class rD{connections=[];debug=!1;error=!1;layers={};message;selectedTile;solved=!1;#te;#ti=30;#tn={};#Y=new s5({context:this});#ts;#tr=!1;#_;#ta=[];#to;#t;#tl;#th=[];constructor(){/*@__PURE__*/a(sE).settings.insertItems=!1,/*@__PURE__*/a(sE).setup(rB.puzzle),this.#tu(),this.layers.mask=new sE.Layer,this.layers.collisions=new sE.Layer,this.layers.debug=new sE.Layer,this.#Y.add([{type:rf.Events.Update,handler:this.#tc},{type:"change",element:rB.puzzleId,handler:this.#td},{type:"click",element:rB.next,handler:this.#tp},{type:"click",element:rB.previous,handler:this.#tf},{type:"click",element:rB.redo,handler:this.#tg},{type:"click",element:rB.reset,handler:this.#tm},{type:"click",element:rB.undo,handler:this.#t_},{type:"keyup",handler:this.#tv},{type:re.Events.Invoked,handler:this.#ty},{type:rD.Events.Mask,handler:this.#tb},{type:"resize",element:window,handler:function(t,e=500){let i;return(...n)=>{clearTimeout(i),i=setTimeout(()=>{t(...n)},e)}}(this.#tu)},{type:s1.Events.Update,handler:this.#tx},{type:"tap",element:rB.puzzle,handler:this.#tw}]),this.#ts=new s4(rB.puzzle),this.#tk(),this.select()}centerOnTile(t){let e=this.layout.getTileByOffset(t);/*@__PURE__*/a(sE).view.center=e.center}clearDebugPoints(){this.layers.debug.clear()}drawDebugPoint(t,e={}){let i=new sE.Path.Circle(Object.assign({radius:3,fillColor:"red",strokeColor:"white",strokeWidth:1,center:t},e));this.layers.debug.addChild(i)}getBeamsUpdateDelay(){return this.#ti}getItems(t){return(t?this.#th.filter(e=>e===t):this.#th).flatMap(t=>t.items)}getTile(t){let e=/*@__PURE__*/a(sE).project.hitTest(t.ceil(),{fill:!0,match:t=>t.item.data.type===s2.Types.tile,segments:!0,stroke:!0,tolerance:0});return e?this.layout.getTileByAxial(e.item.data.coordinates.axial):e}mask(t){if(this.#_){if(this.#_.equals(t))throw console.debug(t),Error(`Duplicate mask detected: ${t.id}`);console.debug("adding mask to queue",t),this.#ta.push(t);return}this.#_=t;let e=this.#th.filter(t.tileFilter).map(e=>new rS(e,"function"==typeof t.configuration.style?t.configuration.style(e):t.configuration.style));this.layers.mask.addChildren(e.map(t=>t.group)),t.message&&(rB.headerMessage.textContent=t.message),t.onMask(this),document.body.classList.add(rD.Events.Mask)}select(t){if(void 0===t||t!==this.#t?.getId()){try{this.#t=rN.resolve(t)}catch(t){this.#tS(t,"Could not load puzzle.")}this.#tC()}}unmask(){console.debug("unmask",this.#_),this.layers.mask.removeChildren(),this.#tI(this.selectedTile),this.#_.onUnmask(this),this.#_=void 0,document.body.classList.remove(rD.Events.Mask);let t=this.#ta.pop();t&&(console.debug("processing next mask in queue",t),setTimeout(()=>{!1!==t.onUpdate()&&this.mask(t)}))}update(){this.#_||this.#tr||(this.#tr=!0,this.#tT())}updateSelectedTile(t){let e=this.selectedTile;return this.selectedTile=t,this.#t.setSelectedTile(t),this.#tI(t),this.#tE(t,e),e&&e!==t&&e.onDeselected(t),t&&t!==e&&t.onSelected(e),e}updateState(t=!0){this.#t.update(Object.assign(this.#t.getCurrent(),{layout:this.layout.getState()}),t),this.#tA(),t&&sD(rD.Events.Updated,{state:this.#t})}#tP(){[this.layout.layers.tiles,this.layout.layers.items,this.layers.mask,this.layers.collisions,this.layers.debug].forEach(t=>/*@__PURE__*/a(sE).project.addLayer(t))}#tO(t){return this.layout.modifiers.concat(t?.modifiers||[]).filter(t=>!t.immutable).sort((t,e)=>t.id-e.id)}#tp(){let t=rA.visible.nextId(this.#t.getId());t&&this.select(t)}#tc(t){let e=t.detail.beam,i=t.detail.state;if(i?.has(rr.Collision)){let t=i.get(rr.Collision),n=rD.Collision.id(t.point),s=this.#tn[n];s?s.addBeam(e):this.#tn[n]=new rD.Collision(this.layers.collisions,[e],t.point);let r=this.#_?.configuration;r?.beam?.equals(e)&&this.unmask()}Object.values(this.#tn).forEach(t=>t.update()),this.#te.filter(t=>t!==e).forEach(e=>e.onBeamUpdated(t,this)),setTimeout(()=>this.update(),0)}#tS(t,e,i){this.error=!0,"string"==typeof t&&(i=e=t,t=void 0),t&&console.error(t),(i=i??t?.cause)&&console.error("cause:",i),e=e??t?.message??"The puzzle has encountered an error, please consider reporting.",rB.headerMessage.textContent=e,document.body.classList.add(rD.Events.Error)}#tv(t){this.debug&&"s"===t.key&&this.update()}#tb(t){console.debug("Mask event",t),this.mask(t.detail.mask)}#ty(t){let e=t.detail.modifier,i=t.detail.tile;!e.parent&&i.modifiers.some(t=>t.type===re.Types.lock)&&!i.modifiers.some(t=>t.type===e.type)&&i.modifiers.lengtht.type===e.type&&t.id!==e.id).forEach(t=>t.update({disabled:!0}))),this.updateState(),this.#te.sort(t=>i.items.some(e=>e===t)?-1:0).forEach(e=>e.onModifierInvoked(t,this)),setTimeout(()=>this.update(),0)}#td(t){this.select(t.target.value)}#tN(){if(this.solved)return;this.solved=!0,this.updateSelectedTile(void 0),this.mask(rD.#tM);let t=document.createElement("span");t.classList.add(rD.ClassNames.Icon),t.textContent="celebration",t.title="Solved!",rB.headerMessage.replaceChildren(t),document.body.classList.add(rD.Events.Solved),sD(rD.Events.Solved)}#tx(){this.updateState()}#tw(t){let e;if(this.solved||this.error)return;let i=/*@__PURE__*/a(sE).project.hitTest(t.detail.point);switch(i?.item.data.type){case s2.Types.mask:return;case s2.Types.tile:e=this.layout.getTileByAxial(i.item.data.coordinates.axial)}if(this.#_)this.#_.onTap(this,e);else{let i=this.updateSelectedTile(e);e&&e===i&&e.onTap(t)}}#tf(){let t=rA.visible.previousId(this.#t.getId());t&&this.select(t)}#tg(){this.#t.redo()&&this.#tC()}#tC(){this.error=!1,this.#t&&this.#tL(),this.#tz(),sD(rD.Events.Updated,{state:this.#t})}#tR(){Object.values(this.layers).forEach(t=>t.removeChildren()),/*@__PURE__*/a(sE).project.clear()}#tm(){this.#t.reset()&&this.#tC()}#tu(){let{width:t,height:e}=rB.main.getBoundingClientRect();rB.puzzle.style.height=e+"px",rB.puzzle.style.width=t+"px",/*@__PURE__*/a(sE).view.viewSize=new sE.Size(t,e)}#tz(){let{layout:t,message:e,solution:i}=this.#t.getCurrent();this.layout=new rk(t),this.message=e,this.#to=new rM(i),this.#th=this.layout.tiles,this.#tl=this.layout.items.filter(t=>t.type===s2.Types.terminus),this.#te=this.#tl.flatMap(t=>t.beams),this.#tP(),document.body.classList.add(rD.Events.Loaded);let n=this.#t.getSelectedTile(),s=n?this.layout.getTileByOffset(new sQ(...n.split(","))):void 0;this.updateSelectedTile(s),this.updateState(!1),this.update()}#tL(){document.body.classList.remove(...Object.values(rD.Events)),this.#tR(),this.#th.forEach(t=>t.teardown()),this.#th=[],this.#to?.teardown(),this.#to=void 0,this.solved=!1,this.layout?.teardown(),this.layout=void 0,this.selectedTile=void 0,this.#te=[],this.#tn={},this.#tr=!1,this.#_=void 0,this.#ta=[],this.#tl=[]}#t_(){this.#t.undo()&&this.#tC()}#tA(){let t=this.#t.getId(),e=this.#t.getTitle();rB.title.textContent=`Beaming: Puzzle ${e}`,function(t,...e){e.forEach(e=>e.classList.remove(t))}(rD.ClassNames.Disabled,...Array.from(document.querySelectorAll("#actions li")));let i=[];this.#t.canUndo()||i.push(rB.undo),this.#t.canRedo()||i.push(rB.redo),this.#t.canReset()||i.push(rB.reset),rA.visible.has(t)?(rB.puzzleId.value=t,t===rA.visible.firstId?i.push(rB.previous):t===rA.visible.lastId&&i.push(rB.next)):(rB.puzzleId.value="",i.push(rB.previous,rB.next)),function(t,...e){e.forEach(e=>e.classList.add(t))}(rD.ClassNames.Disabled,...i)}#tk(){for(let t of(rB.puzzleId.replaceChildren(),rA.visible.ids)){let e=document.createElement("option");e.value=t,e.innerText=rA.titles[t],rB.puzzleId.append(e)}}#tT(){let t=this.#te.filter(t=>t.isPending());if(!t.length){this.#tr=!1,setTimeout(()=>{this.#to.isSolved()&&this.#tN()},0);return}this.debug&&this.layers.debug.clear(),t.forEach(t=>t.step(this)),setTimeout(()=>this.#tT(),this.#ti)}#tI(t){if(rB.headerMessage.textContent=this.message,rB.footerMessage.replaceChildren(),t){let e=t.items.map(e=>e.getColorElements(t)).find(t=>t.length>1)||[];rB.footerMessage.replaceChildren(...e)}}#tE(t,e){this.#tO(e).forEach(t=>t.detach());let i=this.#tO(t);i.forEach(e=>e.attach(t)),rB.footer.classList.toggle(rD.ClassNames.Active,i.length>0)}static Collision=class{constructor(t,e,i,n){this.id=rD.Collision.id(i),this.layer=t,this.beams=e,this.point=i,this.item=n}addBeam(t){return this.beams.some(e=>e.id===t.id)||this.beams.push(t),this.beams}addItem(t){this.item=new rC({center:this.point,color:t}),this.layer.addChild(this.item.group)}equals(t){return sV(this.point,t?.point)}getColor(){return this.beams.length?ij.average(this.beams.map(t=>t.getColor())).hex():void 0}removeItem(){this.item&&(this.item.remove(),this.item=void 0)}update(){this.beams=this.beams.filter(t=>this.equals(t.getCollision()));let t=this.getColor();this.item&&(!this.beams.length||this.item.color!==t)&&this.removeItem(),this.beams.length&&!this.item&&this.addItem(t)}static id(t){let e=t.round();return[e.x,e.y].join(",")}};static ClassNames=Object.freeze({Active:"active",Disabled:"disabled",Icon:"material-symbols-outlined"});static Events=Object.freeze({Error:"puzzle-error",Loaded:"puzzle-loaded",Mask:"puzzle-mask",Solved:"puzzle-solved",Updated:"puzzle-updated"});static Mask=class{constructor(t={}){t.style??={},this.configuration=t,this.id=t.id,this.message=t.message,this.tileFilter=t.tileFilter??sK(!0),this.onMask=t.onMask??sK,this.onTap=t.onTap??sK,this.onUnmask=t.onUnmask??sK,this.onUpdate=t.onUpdate??sK}equals(t){return this.id===t.id}};static #tB=t=>t.type===s2.Types.beam&&t.isConnected();static #tM=new rD.Mask({style:t=>{let e=t.items.filter(rD.#tB).flatMap(e=>e.getSteps(t).flatMap(t=>t.color));return{fillColor:ij.average(e).hex()}},tileFilter:t=>t.items.some(rD.#tB)})}let rV=document.createElement("script");rV.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=G-HXLD6EE5NS"),document.head.append(rV);let rF=window.dataLayer=window.dataLayer||[];function rj(){rF.push(arguments)}rj("js",new Date),rj("config","G-HXLD6EE5NS");let rU=window.doorbellOptions={appKey:"o1smdnJiyxObjMcY0jSTf08TIhA814yLq68rEwTDWTavma7dtIVKEdwzMePE2LHC",container:document.getElementById("feedback-container"),hideButton:!0,properties:{}},rq=document.createElement("script");rq.setAttribute("src","https://embed.doorbell.io/button/14129/1705777677/init?native_json=1&needs_postmessage=0"),document.head.append(rq),document.addEventListener("puzzle-updated",t=>{rU.properties.puzzleId=t.detail.state.getId()});let rZ=new rD,rH={debug:sY,puzzle:rZ};rH.centerOnTile=function(t,e){return rZ.centerOnTile(new sQ(t,e))},rH.clearDebugPoints=rZ.clearDebugPoints.bind(rZ),rH.drawDebugPoint=function(t,e,i){return rZ.drawDebugPoint(new sE.Point(t,e),i)},window.beaming=rH}(); -//# sourceMappingURL=index.d572c77b.js.map + */(function(e,i){var n=(e=e||u("1S6xU")).window,s=e.document,r=new function(){var t=/^(statics|enumerable|beans|preserve)$/,e=[],n=e.slice,s=Object.create,r=Object.getOwnPropertyDescriptor,a=Object.defineProperty,o=e.forEach||function(t,e){for(var i=0,n=this.length;i0||h+s0?[["dictionary",n.definitions],s]:s},deserialize:function(t,e,i,n,s){var a=t,o=!i,l=o&&t&&t.length&&"dictionary"===t[0][0];if(i=i||{},Array.isArray(t)){var h=t[0],u="dictionary"===h;if(1==t.length&&/^#/.test(h))return i.dictionary[h];h=r.exports[h],a=[];for(var c=h?1:0,d=t.length;ct.length&&(n=t.length);for(var l=0;l0){var r=e[s],a=r&&r[n];a&&a.call(this,s)}}},statics:{inject:function t(e){var i=e._events;if(i){var n={};r.each(i,function(t,i){var s="string"==typeof t,a=s?t:i,o=r.capitalize(a),l=a.substring(2).toLowerCase();n[l]=s?{}:t,a="_"+a,e["get"+o]=function(){return this[a]},e["set"+o]=function(t){var e=this[a];e&&this.off(l,e),t&&this.on(l,t),this[a]=t}}),e._eventTypes=n}return t.base.apply(this,arguments)}}},o=r.extend({_class:"PaperScope",initialize:function t(){tl=this,this.settings=new r({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 i=t.prototype;if(!this.support){var n=ts.getContext(1,1)||{};i.support={nativeDash:"setLineDash"in n||"mozDash"in n,nativeBlendModes:tr.nativeModes},ts.release(n)}if(!this.agent){var s=e.navigator.userAgent.toLowerCase(),a=(/(darwin|win|mac|linux|freebsd|sunos)/.exec(s)||[])[0],o="darwin"===a?"mac":a,l=i.agent=i.browser={platform:o};o&&(l[o]=!0),s.replace(/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,function(t,e,i,n,s){if(!l.chrome){var r="opera"===e?n:/^(node|trident)$/.test(e)?s:i;l.version=r,l.versionNumber=parseFloat(r),e=({trident:"msie",jsdom:"node"})[e]||e,l.name=e,l[e]=!0}}),l.chrome&&delete l.webkit,l.atom&&delete l.chrome}},version:"0.12.18",getView:function(){var t=this.project;return t&&t._view},getPaper:function(){return this},execute:function(t,e){var i=tl.PaperScript.execute(t,this,e);return $.updateFocus(),i},install:function(t){var e=this;for(var i in r.each(["project","view","tool"],function(i){r.define(t,i,{configurable:!0,get:function(){return e[i]}})}),this)!/^_/.test(i)&&this[i]&&(t[i]=this[i])},setup:function(t){return tl=this,this.project=new w(t),this},createCanvas:function(t,e){return ts.getCanvas(t,e)},activate:function(){tl=this},clear:function(){for(var t=this.projects,e=this.tools,i=t.length-1;i>=0;i--)t[i].remove();for(var i=e.length-1;i>=0;i--)e[i].remove()},remove:function(){this.clear(),delete o._scopes[this._id]},statics:new function(){function t(t){return t+="Attribute",function(e,i){return e[t](i)||e[t]("data-paper-"+i)}}return{_scopes:{},_id:0,get:function(t){return this._scopes[t]||null},getAttribute:t("get"),hasAttribute:t("has")}}}),l=r.extend(a,{initialize:function(t){this._scope=tl,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&&(r.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()}}),h={findItemBoundsCollisions:function(t,e,i){function n(t){for(var e=Array(t.length),i=0;i>>1;a[t[r]][e]=o;(s||(x&&O||w&&P)&&T>=A[d]-i&&E<=A[p]+i)&&(x&&O&&k.push(r?I:I-o),w&&P&&_[I].push(b))}}if(x&&(t===e&&k.push(v),_[v]=k),m.length){var M=y[c],N=h(m,c,M);m.splice(N+1,0,v)}else m.push(v)}for(var g=0;g<_.length;g++){var L=_[g];L&&L.sort(function(t,e){return t-e})}return _}},c=r.extend({initialize:function(t){this.precision=r.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,i){return this.number(t)+(i||",")+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)}});c.instance=new c;var d=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]],i=Math.abs,n=Math.sqrt,s=Math.pow,r=Math.log2||function(t){return Math.log(t)*Math.LOG2E};function a(t,e,i){return ti?i:t}function o(t,e,n){function s(t){var e=0x8000001*t,i=t-e+e;return[i,t-i]}var r=e*e-t*n,a=e*e+t*n;if(3*i(r)1e8)?s(2,-Math.round(r(t))):0}return{EPSILON:1e-12,MACHINE_EPSILON:112e-18,CURVETIME_EPSILON:1e-8,GEOMETRIC_EPSILON:1e-7,TRIGONOMETRIC_EPSILON:1e-8,ANGULAR_EPSILON:1e-5,KAPPA:4*(n(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(i,n,s,r){for(var a=t[r-2],o=e[r-2],l=(s-n)*.5,h=l+n,u=0,c=r+1>>1,d=1&r?o[u++]*i(h):0;u0?(r=n,n=d<=s?(s+r)*.5:d):(s=n,n=d>=r?(s+r)*.5:d)}return a(n,s,r)},solveQuadratic:function(t,e,s,r,h,u){var c,d=1/0;if(1e-12>i(t)){if(1e-12>i(e))return 1e-12>i(s)?-1:0;c=-s/e}else{var p=o(t,e*=-.5,s);if(p&&112e-18>i(p)){var f=l(i(t),i(e),i(s));f&&(t*=f,e*=f,s*=f,p=o(t,e,s))}if(p>=-112e-18){var g=p<0?0:n(p),m=e+(e<0?-g:g);0===m?d=-(c=s/t):(c=m/t,d=s/m)}}var _=0,v=null==h,y=h-1e-12,b=u+1e-12;return isFinite(c)&&(v||c>y&&cy&&di(t))t=e,f=r,g=o,p=1/0;else if(1e-12>i(o))f=e,g=r,p=0;else{y(-(e/t)/3);var b=_/t,x=s(i(b),1/3),w=b<0?-1:1,k=-m/t,S=k>0?1.324717957244746*Math.max(x,n(k)):x,C=p-w*S;if(C!==p){do y(C),C=0===m?p:p-_/m/1.0000000000000002;while(w*C>w*p)i(t)*p*p>i(o/p)&&(f=((g=-o/p)-r)/p)}}var I=d.solveQuadratic(t,f,g,h,u,c),T=null==u;return isFinite(p)&&(0===I||I>0&&p!==h[0]&&p!==h[1])&&(T||p>u-1e-12&&p1?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),s=0)}return n&&(this.__read=s),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 f(this.x,this.y)},toString:function(){var t=c.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 i=t/this.getLength();d.isZero(i)&&this.getAngle(),this._set(this.x*i,this.y*i)}},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)return this.isZero()?this._angle||0:this._angle=Math.atan2(this.y,this.x);var t=f.read(arguments),e=this.getLength()*t.getLength();if(d.isZero(e))return NaN;var i=this.dot(t)/e;return Math.acos(i<-1?-1:i>1?1:i)},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=f.read(arguments);return 180*Math.atan2(this.cross(t),this.dot(t))/Math.PI},getDistance:function(){var t=arguments,e=f.read(t),i=e.x-this.x,n=e.y-this.y,s=i*i+n*n;return r.read(t)?s:Math.sqrt(s)},normalize:function(t){t===i&&(t=1);var e=this.getLength(),n=0!==e?t/e:0,s=new f(this.x*n,this.y*n);return n>=0&&(s._angle=this._angle),s},rotate:function(t,e){if(0===t)return this.clone();t=t*Math.PI/180;var i=e?this.subtract(e):this,n=Math.sin(t),s=Math.cos(t);return i=new f(i.x*s-i.y*n,i.x*n+i.y*s),e?i.add(e):i},transform:function(t){return t?t._transformPoint(this):this},add:function(){var t=f.read(arguments);return new f(this.x+t.x,this.y+t.y)},subtract:function(){var t=f.read(arguments);return new f(this.x-t.x,this.y-t.y)},multiply:function(){var t=f.read(arguments);return new f(this.x*t.x,this.y*t.y)},divide:function(){var t=f.read(arguments);return new f(this.x/t.x,this.y/t.y)},modulo:function(){var t=f.read(arguments);return new f(this.x%t.x,this.y%t.y)},negate:function(){return new f(-this.x,-this.y)},isInside:function(){return v.read(arguments).contains(this)},isClose:function(){var t=arguments,e=f.read(t),i=r.read(t);return this.getDistance(e)<=i},isCollinear:function(){var t=f.read(arguments);return f.isCollinear(this.x,this.y,t.x,t.y)},isColinear:"#isCollinear",isOrthogonal:function(){var t=f.read(arguments);return f.isOrthogonal(this.x,this.y,t.x,t.y)},isZero:function(){var t=d.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=f.read(arguments);return this.x*t.x+this.y*t.y},cross:function(){var t=f.read(arguments);return this.x*t.y-this.y*t.x},project:function(){var t=f.read(arguments),e=t.isZero()?0:this.dot(t)/t.dot(t);return new f(t.x*e,t.y*e)},statics:{min:function(){var t=arguments,e=f.read(t),i=f.read(t);return new f(Math.min(e.x,i.x),Math.min(e.y,i.y))},max:function(){var t=arguments,e=f.read(t),i=f.read(t);return new f(Math.max(e.x,i.x),Math.max(e.y,i.y))},random:function(){return new f(Math.random(),Math.random())},isCollinear:function(t,e,i,n){return Math.abs(t*n-e*i)<=1e-8*Math.sqrt((t*t+e*e)*(i*i+n*n))},isOrthogonal:function(t,e,i,n){return Math.abs(t*i+e*n)<=1e-8*Math.sqrt((t*t+e*e)*(i*i+n*n))}}},r.each(["round","ceil","floor","abs"],function(t){var e=Math[t];this[t]=function(){return new f(e(this.x),e(this.y))}},{})),g=f.extend({initialize:function(t,e,i,n){this._x=t,this._y=e,this._owner=i,this._setter=n},_set:function(t,e,i){return this._x=t,this._y=e,i||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}}),m=r.extend({_class:"Size",_readIndex:!0,initialize:function(t,e){var i=typeof t,n=this.__read,s=0;if("number"===i){var r="number"==typeof e;this._set(t,r?e:t),n&&(s=r?2:1)}else if("undefined"===i||null===t)this._set(0,0),n&&(s=null===t?1:0);else{var a="string"===i?t.split(/[\s,]+/)||[]:t;s=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),s=0)}return n&&(this.__read=s),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 m(this.width,this.height)},toString:function(){var t=c.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=m.read(arguments);return new m(this.width+t.width,this.height+t.height)},subtract:function(){var t=m.read(arguments);return new m(this.width-t.width,this.height-t.height)},multiply:function(){var t=m.read(arguments);return new m(this.width*t.width,this.height*t.height)},divide:function(){var t=m.read(arguments);return new m(this.width/t.width,this.height/t.height)},modulo:function(){var t=m.read(arguments);return new m(this.width%t.width,this.height%t.height)},negate:function(){return new m(-this.width,-this.height)},isZero:function(){var t=d.isZero;return t(this.width)&&t(this.height)},isNaN:function(){return isNaN(this.width)||isNaN(this.height)},statics:{min:function(t,e){return new m(Math.min(t.width,e.width),Math.min(t.height,e.height))},max:function(t,e){return new m(Math.max(t.width,e.width),Math.max(t.height,e.height))},random:function(){return new m(Math.random(),Math.random())}}},r.each(["round","ceil","floor","abs"],function(t){var e=Math[t];this[t]=function(){return new m(e(this.width),e(this.height))}},{})),_=m.extend({initialize:function(t,e,i,n){this._width=t,this._height=e,this._owner=i,this._setter=n},_set:function(t,e,i){return this._width=t,this._height=e,i||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)}}),v=r.extend({_class:"Rectangle",_readIndex:!0,beans:!0,initialize:function(t,e,n,s){var a,o=arguments,l=typeof t;if("number"===l?(this._set(t,e,n,s),a=4):"undefined"===l||null===t?(this._set(0,0,0,0),a=null===t?1:0):1===o.length&&(Array.isArray(t)?(this._set.apply(this,t),a=1):t.x!==i||t.width!==i?(this._set(t.x||0,t.y||0,t.width||0,t.height||0),a=1):t.from===i&&t.to===i&&(this._set(0,0,0,0),r.readSupported(o,this)&&(a=1))),a===i){var h,u,c=f.readNamed(o,"from"),d=r.peek(o),p=c.x,g=c.y;if(d&&d.x!==i||r.hasNamed(o,"to")){var _=f.readNamed(o,"to");h=_.x-p,u=_.y-g,h<0&&(p=_.x,h=-h),u<0&&(g=_.y,u=-u)}else{var v=m.read(o);h=v.width,u=v.height}this._set(p,g,h,u),a=o.__index}var y=o.__filtered;return y&&(this.__filtered=y),this.__read&&(this.__read=a),this},set:"#initialize",_set:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},clone:function(){return new v(this.x,this.y,this.width,this.height)},equals:function(t){var e=r.isPlainValue(t)?v.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=c.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?f:g)(this.x,this.y,this,"setPoint")},setPoint:function(){var t=f.read(arguments);this.x=t.x,this.y=t.y},getSize:function(t){return new(t?m:_)(this.width,this.height,this,"setSize")},_fw:1,_fh:1,setSize:function(){var t=m.read(arguments),e=this._sx,i=this._sy,n=t.width,s=t.height;e&&(this.x+=(this.width-n)*e),i&&(this.y+=(this.height-s)*i),this.width=n,this.height=s,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+=(t-this.x)*2*this._sx),this.width=(t-this.x)*2),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+=(t-this.y)*2*this._sy),this.height=(t-this.y)*2),this._sy=.5,this._fh=0},getCenter:function(t){return new(t?f:g)(this.getCenterX(),this.getCenterY(),this,"setCenter")},setCenter:function(){var t=f.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!==i||4===(Array.isArray(t)?t:arguments).length?this._containsRectangle(v.read(arguments)):this._containsPoint(f.read(arguments))},_containsPoint:function(t){var e=t.x,i=t.y;return e>=this.x&&i>=this.y&&e<=this.x+this.width&&i<=this.y+this.height},_containsRectangle:function(t){var e=t.x,i=t.y;return e>=this.x&&i>=this.y&&e+t.width<=this.x+this.width&&i+t.height<=this.y+this.height},intersects:function(){var t=v.read(arguments),e=r.read(arguments)||0;return t.x+t.width>this.x-e&&t.y+t.height>this.y-e&&t.x=4&&(t[1]+=n?"Y":"X");var s=t[n?0:1],r=t[n?1:0],a="get"+s,o="get"+r,l="set"+s,h="set"+r,u="get"+i,c="set"+i;this[u]=function(t){return new(t?f:g)(this[a](),this[o](),this,c)},this[c]=function(){var t=f.read(arguments);this[l](t.x),this[h](t.y)}},{beans:!0})),y=v.extend({initialize:function(t,e,i,n,s,r){this._set(t,e,i,n,!0),this._owner=s,this._setter=r},_set:function(t,e,i,n,s){return this._x=t,this._y=e,this._width=i,this._height=n,s||this._owner[this._setter](this),this}},new function(){var t=v.prototype;return r.each(["x","y","width","height"],function(t){var e=r.capitalize(t),i="_"+t;this["get"+e]=function(){return this[i]},this["set"+e]=function(t){this[i]=t,this._dontNotify||this._owner[this._setter](this)}},r.each(["Point","Size","Center","Left","Top","Right","Bottom","CenterX","CenterY","TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],function(e){var i="set"+e;this[i]=function(){this._dontNotify=!0,t[i].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)}}))}),b=r.extend({_class:"Matrix",initialize:function t(e,i){var n=arguments,s=n.length,r=!0;if(s>=6?this._set.apply(this,n):1===s||2===s?e instanceof t?this._set(e._a,e._b,e._c,e._d,e._tx,e._ty,i):Array.isArray(e)?this._set.apply(this,i?e.concat([i]):e):r=!1:s?r=!1:this.reset(),!r)throw Error("Unsupported matrix parameters");return this},set:"#initialize",_set:function(t,e,i,n,s,r,a){return this._a=t,this._b=e,this._c=i,this._d=n,this._tx=s,this._ty=r,a||this._changed(),this},_serialize:function(t,e){return r.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 b(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=c.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 i=this._owner;return!!i&&(i.transform(null,r.pick(t,!0),e),this.isIdentity())},translate:function(){var t=f.read(arguments),e=t.x,i=t.y;return this._tx+=e*this._a+i*this._c,this._ty+=e*this._b+i*this._d,this._changed(),this},scale:function(){var t=arguments,e=f.read(t),i=f.read(t,0,{readNull:!0});return i&&this.translate(i),this._a*=e.x,this._b*=e.x,this._c*=e.y,this._d*=e.y,i&&this.translate(i.negate()),this._changed(),this},rotate:function(t){t*=Math.PI/180;var e=f.read(arguments,1),i=e.x,n=e.y,s=Math.cos(t),r=Math.sin(t),a=i-i*s+n*r,o=n-i*r-n*s,l=this._a,h=this._b,u=this._c,c=this._d;return this._a=s*l+r*u,this._b=s*h+r*c,this._c=-r*l+s*u,this._d=-r*h+s*c,this._tx+=a*l+o*u,this._ty+=a*h+o*c,this._changed(),this},shear:function(){var t=arguments,e=f.read(t),i=f.read(t,0,{readNull:!0});i&&this.translate(i);var n=this._a,s=this._b;return this._a+=e.y*this._c,this._b+=e.y*this._d,this._c+=e.x*n,this._d+=e.x*s,i&&this.translate(i.negate()),this._changed(),this},skew:function(){var t=arguments,e=f.read(t),i=f.read(t,0,{readNull:!0}),n=Math.PI/180,s=new f(Math.tan(e.x*n),Math.tan(e.y*n));return this.shear(s,i)},append:function(t,e){if(t){var i=this._a,n=this._b,s=this._c,r=this._d,a=t._a,o=t._c,l=t._b,h=t._d,u=t._tx,c=t._ty;this._a=a*i+l*s,this._c=o*i+h*s,this._b=a*n+l*r,this._d=o*n+h*r,this._tx+=u*i+c*s,this._ty+=u*n+c*r,e||this._changed()}return this},prepend:function(t,e){if(t){var i=this._a,n=this._b,s=this._c,r=this._d,a=this._tx,o=this._ty,l=t._a,h=t._c,u=t._b,c=t._d,d=t._tx,p=t._ty;this._a=l*i+h*n,this._c=l*s+h*r,this._b=u*i+c*n,this._d=u*s+c*r,this._tx=l*a+h*o+d,this._ty=u*a+c*o+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,i=this._c,n=this._d,s=this._tx,r=this._ty,a=t*n-e*i,o=null;return a&&!isNaN(a)&&isFinite(s)&&isFinite(r)&&(this._a=n/a,this._b=-e/a,this._c=-i/a,this._d=t/a,this._tx=(i*r-n*s)/a,this._ty=(e*s-t*r)/a,o=this),o},inverted:function(){return this.clone().invert()},concatenate:"#append",preConcatenate:"#prepend",chain:"#appended",_shiftless:function(){return new b(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,i){return arguments.length<3?this._transformPoint(f.read(arguments)):this._transformCoordinates(t,e,i)},_transformPoint:function(t,e,i){var n=t.x,s=t.y;return e||(e=new f),e._set(n*this._a+s*this._c+this._tx,n*this._b+s*this._d+this._ty,i)},_transformCoordinates:function(t,e,i){for(var n=0,s=2*i;nr[l]&&(r[l]=o)}return e||(e=new v),e._set(s[0],s[1],r[0]-s[0],r[1]-s[1],i)},inverseTransform:function(){return this._inverseTransform(f.read(arguments))},_inverseTransform:function(t,e,i){var n=this._a,s=this._b,r=this._c,a=this._d,o=this._tx,l=this._ty,h=n*a-s*r,u=null;if(h&&!isNaN(h)&&isFinite(o)&&isFinite(l)){var c=t.x-this._tx,d=t.y-this._ty;e||(e=new f),u=e._set((c*a-d*r)/h,(d*n-c*s)/h,i)}return u},decompose:function(){var t,e,i,n=this._a,s=this._b,r=this._c,a=this._d,o=n*a-s*r,l=Math.sqrt,h=Math.atan2,u=180/Math.PI;if(0!==n||0!==s){var c=l(n*n+s*s);t=Math.acos(n/c)*(s>0?1:-1),e=[c,o/c],i=[h(n*r+s*a,c*c),0]}else if(0!==r||0!==a){var d=l(r*r+a*a);t=Math.asin(r/d)*(a>0?1:-1),e=[o/d,d],i=[0,h(n*r+s*a,d*d)]}else t=0,i=e=[0,0];return{translation:this.getTranslation(),rotation:t*u,scaling:new f(e),skewing:new f(i[0]*u,i[1]*u)}},getValues:function(){return[this._a,this._b,this._c,this._d,this._tx,this._ty]},getTranslation:function(){return new f(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)}},r.each(["a","b","c","d","tx","ty"],function(t){var e=r.capitalize(t),i="_"+t;this["get"+e]=function(){return this[i]},this["set"+e]=function(t){this[i]=t,this._changed()}},{})),x=r.extend({_class:"Line",initialize:function(t,e,i,n,s){var r=!1;arguments.length>=4?(this._px=t,this._py=e,this._vx=i,this._vy=n,r=s):(this._px=t.x,this._py=t.y,this._vx=e.x,this._vy=e.y,r=i),r||(this._vx-=this._px,this._vy-=this._py)},getPoint:function(){return new f(this._px,this._py)},getVector:function(){return new f(this._vx,this._vy)},getLength:function(){return this.getVector().getLength()},intersect:function(t,e){return x.intersect(this._px,this._py,this._vx,this._vy,t._px,t._py,t._vx,t._vy,!0,e)},getSide:function(t,e){return x.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 x.getSignedDistance(this._px,this._py,this._vx,this._vy,t.x,t.y,!0)},isCollinear:function(t){return f.isCollinear(this._vx,this._vy,t._vx,t._vy)},isOrthogonal:function(t){return f.isOrthogonal(this._vx,this._vy,t._vx,t._vy)},statics:{intersect:function(t,e,i,n,s,r,a,o,l,h){l||(i-=t,n-=e,a-=s,o-=r);var u=i*o-n*a;if(!d.isMachineZero(u)){var c=t-s,p=e-r,g=(a*p-o*c)/u,m=(i*p-n*c)/u;if(h||-1e-12=1?1:g),new f(t+g*i,e+g*n)}},getSide:function(t,e,i,n,s,r,a,o){a||(i-=t,n-=e);var l=s-t,h=l*n-(r-e)*i;return!o&&d.isMachineZero(h)&&(h=(l*i+l*i)/(i*i+n*n))>=0&&h<=1&&(h=0),h<0?-1:h>0?1:0},getSignedDistance:function(t,e,i,n,s,r,a){return a||(i-=t,n-=e),0===i?n>0?s-t:t-s:0===n?i<0?r-e:e-r:((s-t)*n-(r-e)*i)/(n>i?n*Math.sqrt(1+i*i/(n*n)):i*Math.sqrt(1+n*n/(i*i)))},getDistance:function(t,e,i,n,s,r,a){return Math.abs(x.getSignedDistance(t,e,i,n,s,r,a))}}}),w=l.extend({_class:"Project",_list:"projects",_reference:"project",_compactSerialize:!0,initialize:function(t){l.call(this,!0),this._children=[],this._namedChildren={},this._activeLayer=null,this._currentStyle=new H(null,null,this),this._view=$.create(this,t||ts.getCanvas(1,1)),this._selectionItems={},this._selectionCount=0,this._updateVersion=0},_serialize:function(t,e){return r.serialize(this._children,t,!0,e)},_changed:function(t,e){if(1&t){var i=this._view;i&&(i._needsUpdate=!0,!i._requested&&i._autoUpdate&&i.requestUpdate())}var n=this._changes;if(n&&e){var s=this._changesById,r=e._id,a=s[r];a?a.flags|=t:n.push(s[r]={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 C({project:this,insert:!0})},getSymbolDefinitions:function(){var t=[],e={};return this.getItems({class:E,match:function(i){var n=i._definition,s=n._id;return e[s]||(e[s]=!0,t.push(n)),!1}}),t},getSymbols:"getSymbolDefinitions",getSelectedItems:function(){var t=this._selectionItems,e=[];for(var i in t){var n=t[i],s=n._selection;1&s&&n.isInserted()?e.push(n):s||this._updateSelection(n)}return e},_updateSelection:function(t){var e=t._id,i=this._selectionItems;t._selection?i[e]!==t&&(this._selectionCount++,i[e]=t):i[e]===t&&(this._selectionCount--,delete i[e])},selectAll:function(){for(var t=this._children,e=0,i=t.length;e0){t.save(),t.strokeWidth=1;var l=this._selectionItems,h=this._scope.settings.handleSize,u=this._updateVersion;for(var c in l)l[c]._drawSelection(t,e,h,l,u);t.restore()}}}),k=r.extend(a,{statics:{extend:function t(e){return e._serializeFields&&(e._serializeFields=r.set({},this.prototype._serializeFields,e._serializeFields)),t.base.apply(this,arguments)},INSERT:{insert:!0},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 b,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 r.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&&r.isPlainObject(t),s=n&&!0===t.internal,a=this._matrix=new b,o=n&&t.project||tl.project,l=tl.settings;return this._id=s?null:p.get(),this._parent=this._index=null,this._applyMatrix=this._canApplyMatrix&&l.applyMatrix,e&&a.translate(e),a._owner=this,this._style=new H(o._currentStyle,this,o),s||n&&!1==t.insert||!l.insertItems&&!(n&&!0==t.insert)?this._setProject(o):(n&&t.parent||o)._insertItem(i,this,!0),n&&t!==k.NO_INSERT&&t!==k.INSERT&&this.set(t,{internal:!0,insert:!0,project:!0,parent:!0}),n},_serialize:function(t,e){var i={},n=this;function s(s){for(var a in s){var o=n[a];r.equals(o,"leading"===a?1.2*s.fontSize:s[a])||(i[a]=r.serialize(o,t,"data"!==a,e))}}return s(this._serializeFields),this instanceof S||s(this._style._defaults),[this._class,i]},_changed:function(t){var e=this._symbol,n=this._parent||e,s=this._project;8&t&&(this._bounds=this._position=this._decomposed=i),16&t&&(this._globalMatrix=i),n&&72&t&&k._clearBoundsCache(n),2&t&&k._clearBoundsCache(this),s&&s._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 Error("Names consisting only of numbers are not supported.");var e=this._getOwner();if(t&&e){var n=e._children,s=e._namedChildren;(s[t]=s[t]||[]).push(this),t in n||(n[t]=this)}this._name=t||i,this._changed(256)},getStyle:function(){return this._style},setStyle:function(t){this.getStyle().set(t)}},r.each(["locked","visible","blendMode","opacity","guide"],function(t){var e=r.capitalize(t),i="_"+t,n={locked:256,visible:265};this["get"+e]=function(){return this[i]},this["set"+e]=function(e){e!=this[i]&&(this[i]=e,this._changed(n[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 i=this._selection;this.setSelection(e?i|t:i&~t)},isSelected:function(){if(this._selectChildren){for(var t=this._children,e=0,i=t.length;e=0;i--)if(e[i].contains(t))return!0;return!1}return t.isInside(this.getInternalBounds())},isInside:function(){return v.read(arguments).contains(this.getBounds())},_asPathItem:function(){return new R.Rectangle({rectangle:this.getInternalBounds(),matrix:this._matrix,insert:!1})},intersects:function(t,e){return t instanceof k&&this._asPathItem().getIntersections(t._asPathItem(),null,e,!0).length>0}},new function(){function t(){var t=arguments;return this._hitTest(f.read(t),P.getOptions(t))}function e(){var t=arguments,e=f.read(t),i=P.getOptions(t),n=[];return this._hitTest(e,new r({all:n},i)),n}function i(t,e,i,n){var s=this._children;if(s)for(var r=s.length-1;r>=0;r--){var a=s[r],o=a!==n&&a._hitTest(t,e,i);if(o&&!e.all)return o}return null}return w.inject({hitTest:t,hitTestAll:e,_hitTest:i}),{hitTest:t,hitTestAll:e,_hitTestChildren:i}},{_hitTest:function(t,e,i){if(this._locked||!this._visible||this._guide&&!e.guides||this.isEmpty())return null;var n=this._matrix,s=i?i.appended(n):this.getGlobalMatrix().prepend(this.getView()._matrix),a=Math.max(e.tolerance,1e-12),o=e._tolerancePadding=new m(R._getStrokePadding(a,n._shiftless().invert()));if(!(t=n._inverseTransform(t))||!this._children&&!this.getBounds({internal:!0,stroke:!0,handle:!0}).expand(o.multiply(2))._containsPoint(t))return null;var l,h,u=!(e.guides&&!this._guide||e.selected&&!this.isSelected()||e.type&&e.type!==r.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,i){var n=i?l["get"+i]():d.getPosition();if(t.subtract(n).divide(o).length<=1)return new P(e,d,{name:i?r.hyphenate(i):e,point:n})}var g=e.position,_=e.center,v=e.bounds;if(u&&this._parent&&(g||_||v)){if((_||v)&&(l=this.getInternalBounds()),!(h=g&&f("position")||_&&f("center","Center"))&&v)for(var y=["TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],b=0;b<8&&!h;b++)h=f("bounds",y[b]);h=p(h)}return h||(h=this._hitTestChildren(t,e,s)||u&&p(this._hitTestSelf(t,e,s,this.getStrokeScaling()?null:s._shiftless().invert()))||null),h&&h.point&&(h.point=n.transform(h.point)),h},_hitTestSelf:function(t,e){if(e.fill&&this.hasFill()&&this._contains(t))return new P("fill",this)},matches:function(t,e){var i=typeof t;if("object"===i){for(var n in t)if(t.hasOwnProperty(n)&&!this.matches(n,t[n]))return!1;return!0}if("function"===i)return t(this);if("match"===t)return e(this);var s=/^(empty|editable)$/.test(t)?this["is"+r.capitalize(t)]():"type"===t?r.hyphenate(this._class):this[t];if("class"===t){if("function"==typeof e)return this instanceof e;s=this._class}if("function"==typeof e)return!!e(s);if(e){if(e.test)return e.test(s);if(r.isPlainObject(e))return function t(e,i){for(var n in e)if(e.hasOwnProperty(n)){var s=e[n],a=i[n];if(r.isPlainObject(s)&&r.isPlainObject(a)){if(!t(s,a))return!1}else if(!r.equals(s,a))return!1}return!0}(e,s)}return r.equals(s,e)},getItems:function(t){return k._getItems(this,t,this._matrix)},getItem:function(t){return k._getItems(this,t,this._matrix,null,!0)[0]||null},statics:{_getItems:function t(e,i,n,s,a){if(!s){var o="object"==typeof i&&i,l=o&&o.overlapping,h=o&&o.inside,u=l||h,c=u&&v.read([u]);s={items:[],recursive:o&&!1!==o.recursive,inside:!!h,overlapping:!!l,rect:c,path:l&&new R.Rectangle({rectangle:c,insert:!1})},o&&(i=r.filter({},i,{recursive:!0,inside:!0,overlapping:!0}))}var d=e._children,p=s.items,c=s.rect;n=c&&(n||new b);for(var f=0,g=d&&d.length;f0))break}return p}}},{importJSON:function(t){var e=r.importJSON(t,this);return e!==this?this.addChild(e):e},addChild:function(t){return this.insertChild(i,t)},insertChild:function(t,e){var i=e?this.insertChildren(t,[e]):null;return i&&i[0]},addChildren:function(t){return this.insertChildren(this._children.length,t)},insertChildren:function(t,e){var i=this._children;if(i&&e&&e.length>0){e=r.slice(e);for(var n={},s=e.length-1;s>=0;s--){var a=e[s],o=a&&a._id;!a||n[o]?e.splice(s,1):(a._remove(!1,!0),n[o]=!0)}r.splice(i,e,t,0);for(var l=this._project,h=l._changes,s=0,u=e.length;s=0;n--)i[n]._remove(!0,!1);return i.length>0&&this._changed(11),i},clear:"#removeChildren",reverseChildren:function(){if(this._children){this._children.reverse();for(var t=0,e=this._children.length;t0},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}},r.each(["rotate","scale","shear","skew"],function(t){var e="rotate"===t;this[t]=function(){var i=arguments,n=(e?r:f).read(i),s=f.read(i,0,{readNull:!0});return this.transform(new b()[t](n,s||this.getPosition(!0)))}},{translate:function(){var t=new b;return this.transform(t.translate.apply(t,arguments))},transform:function(t,e,i){var n=this._matrix,s=t&&!t.isIdentity(),r=i&&this._canApplyMatrix||this._applyMatrix&&(s||!n.isIdentity()||e&&this._children);if(!s&&!r)return this;if(s){!t.isInvertible()&&n.isInvertible()&&(n._backup=n.getValues()),n.prepend(t,!0);var a=this._style,o=a.getFillColor(!0),l=a.getStrokeColor(!0);o&&o.transform(t),l&&l.transform(t)}if(r&&(r=this._transformContent(n,e,i))){var h=this._pivot;h&&n._transformPoint(h,h,!0),n.reset(!0),i&&this._canApplyMatrix&&(this._applyMatrix=!0)}var u=this._bounds,c=this._position;(s||r)&&this._changed(25);var d=s&&u&&t.decompose();if(d&&d.skewing.isZero()&&d.rotation%90==0){for(var p in u){var f=u[p];if(f.nonscaling)delete u[p];else if(r||!f.internal){var g=f.rect;t._transformBounds(g,g)}}this._bounds=u;var m=u[this._getBoundsCacheKey(this._boundsOptions||{})];m&&(this._position=this._getPositionFromBounds(m.rect))}else s&&c&&this._pivot&&(this._position=t._transformPoint(c,c));return this},_transformContent:function(t,e,i){var n=this._children;if(n){for(var s=0,r=n.length;ss:n1&&r<4?-1:1,r>2?-1:1),o=a.multiply(s),l=o.subtract(a.multiply(n));if(new v(i?o.add(a.multiply(i)):o,l).contains(e))return{point:l,quadrant:r}}}function e(t,e,i,n){var s=t.divide(e);return(!n||s.isInQuadrant(n))&&s.subtract(s.normalize()).multiply(e).divide(i).length<=1}return{_contains:function e(i){if("rectangle"!==this._type)return .5>=i.divide(this.size).getLength();var n=t(this,i);return n?1>=i.subtract(n.point).divide(this._radius).getLength():e.base.call(this,i)},_hitTestSelf:function i(n,s,r,a){var o=!1,l=this._style,h=s.stroke&&l.hasStroke(),u=s.fill&&l.hasFill();if(h||u){var c=this._type,d=this._radius,p=h?l.getStrokeWidth()/2:0,f=s._tolerancePadding.add(R._getStrokePadding(p,!l.getStrokeScaling()&&a));if("rectangle"===c){var g=f.multiply(2),m=t(this,n,g);if(m)o=e(n.subtract(m.point),d,f,m.quadrant);else{var _=new v(this._size).setCenter(0,0),y=_.expand(g),b=_.expand(g.negate());o=y._containsPoint(n)&&!b._containsPoint(n)}}else o=e(n,d,f)}return o?new P(h?"stroke":"fill",this):i.base.apply(this,arguments)}}},{statics:new function(){function t(t,e,i,n,s){var a=r.create(I.prototype);return a._type=t,a._size=i,a._radius=n,a._initialize(r.getNamed(s),e),a}return{Circle:function(){var e=arguments,i=f.readNamed(e,"center"),n=r.readNamed(e,"radius");return t("circle",i,new m(2*n),n,e)},Rectangle:function(){var e=arguments,i=v.readNamed(e,"rectangle"),n=m.min(m.readNamed(e,"radius"),i.getSize(!0).divide(2));return t("rectangle",i.getCenter(!0),i.getSize(!0),n,e)},Ellipse:function(){var e=arguments,i=I._readEllipse(e),n=i.radius;return t("ellipse",i.center,n.multiply(2),n,e)},_readEllipse:function(t){var e,i;if(r.hasNamed(t,"radius"))e=f.readNamed(t,"center"),i=m.readNamed(t,"radius");else{var n=v.readNamed(t,"rectangle");e=n.getCenter(!0),i=n.getSize(!0).divide(2)}return{center:e,radius:i}}}}}),T=k.extend({_class:"Raster",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!1,handle:!1},_serializeFields:{crossOrigin:null,source:null},_prioritize:["crossOrigin"],_smoothing:"low",beans:!0,initialize:function(t,e){if(!this._initialize(t,e!==i&&f.read(arguments))){var n,r=typeof t,a="string"===r?s.getElementById(t):"object"===r?t:null;if(a&&a!==k.NO_INSERT){if(a.getContext||null!=a.naturalHeight)n=a;else if(a){var o=m.read(arguments);o.isZero()||(n=ts.getCanvas(o))}}n?this.setImage(n):this.setSource(t)}this._size||(this._size=new m,this._loaded=!1)},_equals:function(t){return this.getSource()===t.getSource()},copyContent:function(t){var e=t._image,i=t._canvas;if(e)this._setImage(e);else if(i){var n=ts.getCanvas(t._size);n.getContext("2d").drawImage(i,0,0),this._setImage(n)}this._crossOrigin=t._crossOrigin},getSize:function(){var t=this._size;return new _(t?t.width:0,t?t.height:0,this,"setSize")},setSize:function(t,e){var i=m.read(arguments);if(i.equals(this._size))e&&this.clear();else if(i.width>0&&i.height>0){var n=!e&&this.getElement();this._setImage(ts.getCanvas(i)),n&&this.getContext(!0).drawImage(n,0,0,i.width,i.height)}else this._canvas&&ts.release(this._canvas),this._size=i.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 f(0,0).transform(t),i=new f(1,0).transform(t).subtract(e),n=new f(0,1).transform(t).subtract(e);return new m(72/i.getLength(),72/n.getLength())},getPpi:"#getResolution",getImage:function(){return this._image},setImage:function(t){var e=this;function i(t){var i=e.getView(),n=t&&t.type||"load";i&&e.responds(n)&&(tl=i._scope,e.emit(n,new J(t)))}this._setImage(t),this._loaded?setTimeout(i,0):t&&W.add(t,{load:function(n){e._setImage(t),i(n)},error:i})},_setImage:function(t){this._canvas&&ts.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 m(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=ts.getContext(this._size);try{this._image&&t.drawImage(this._image,0,0),this._canvas=t.canvas}catch(e){ts.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 i=new e.Image,n=this._crossOrigin;n&&(i.crossOrigin=n),t&&(i.src=t),this.setImage(i)},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="string"==typeof t?t:t?"low":"off",this._changed(257)},getElement:function(){return this._canvas||this._loaded&&this._image}},{beans:!1,getSubCanvas:function(){var t=v.read(arguments),e=ts.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=v.read(arguments),e=new T(k.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 i=this.getCanvas();return i?i.toDataURL.apply(i,arguments):null},drawImage:function(t){var e=f.read(arguments,1);this.getContext(!0).drawImage(t,e.x,e.y)},getAverageColor:function(t){if(t?t instanceof z?(i=t,e=t.getBounds()):"object"==typeof t&&("width"in t?e=new v(t):"x"in t&&(e=new v(t.x-.5,t.y-.5,1,1))):e=this.getBounds(),!e)return null;var e,i,n=Math.min(e.width,32),s=Math.min(e.height,32),a=T._sampleContext;a?a.clearRect(0,0,33,33):a=T._sampleContext=ts.getContext(new m(32)),a.save();var o=new b().scale(n/e.width,s/e.height).translate(-e.x,-e.y);o.applyToContext(a),i&&i.draw(a,new r({clip:!0,matrices:[o]})),this._matrix.applyToContext(a);var l=this.getElement(),h=this._size;l&&a.drawImage(l,-h.width/2,-h.height/2),a.restore();for(var u=a.getImageData(.5,.5,Math.ceil(n),Math.ceil(s)).data,c=[0,0,0],d=0,p=0,f=u.length;p0&&n.height>0){t.globalAlpha=d.clamp(this._opacity,0,1),this._setStyles(t,e,i);var s=this._smoothing,r="off"===s;G.setPrefixed(t,r?"imageSmoothingEnabled":"imageSmoothingQuality",!r&&s),t.drawImage(n,-this._size.width/2,-this._size.height/2)}},_canComposite:function(){return!0}}),E=k.extend({_class:"SymbolItem",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!0},_serializeFields:{symbol:null},initialize:function(t,e){this._initialize(t,e!==i&&f.read(arguments,1))||this.setDefinition(t instanceof A?t:new A(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 i=this._definition._item;return i._getCachedBounds(i._matrix.prepended(t),e)},_hitTestSelf:function(t,e,i){var n=e.extend({all:!1}),s=this._definition._item._hitTest(t,n,i);return s&&(s.item=this),s},_draw:function(t,e){this._definition._item.draw(t,e)}}),A=r.extend({_class:"SymbolDefinition",initialize:function(t,e){this._id=p.get(),this.project=tl.project,t&&this.setItem(t,e)},_serialize:function(t,e){return e.add(this,function(){return r.serialize([this._class,this._item],t,!1,e)})},_changed:function(t){8&t&&k._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 f),t._symbol=this,this._changed(9)},getDefinition:"#getItem",setDefinition:"#setItem",place:function(t){return new E(this,t)},clone:function(){return new A(this._item.clone(!1))},equals:function(t){return t===this||t&&this._item.equals(t._item)||!1}}),P=r.extend({_class:"HitResult",initialize:function(t,e,i){this.type=t,this.item=e,i&&this.inject(i)},statics:{getOptions:function(t){var e=t&&r.read(t);return new r({type:null,tolerance:tl.settings.hitTolerance,fill:!e,stroke:!e,segments:!e,handles:!1,ends:!1,position:!1,center:!1,bounds:!1,guides:!1,selected:!1},e)}}}),O=r.extend({_class:"Segment",beans:!0,_selection:0,initialize:function(t,e,n,s,r,a){var o,l,h,u,c=arguments.length;c>0&&(null==t||"object"==typeof t?1===c&&t&&"point"in t?(o=t.point,l=t.handleIn,h=t.handleOut,u=t.selection):(o=t,l=e,h=n,u=s):(o=[t,e],l=n!==i?[n,s]:null,h=r!==i?[r,a]:null)),new M(o,this,"_point"),new M(l,this,"_handleIn"),new M(h,this,"_handleOut"),u&&this.setSelection(u)},_serialize:function(t,e){var i=this._point,n=this._selection,s=n||this.hasHandles()?[i,this._handleIn,this._handleOut]:i;return n&&s.push(n),r.serialize(s,t,!0,e)},_changed:function(t){var e=this._path;if(e){var i,n=e._curves,s=this._index;n&&((!t||t===this._point||t===this._handleIn)&&(i=s>0?n[s-1]:e._closed?n[n.length-1]:null)&&i._changed(),(!t||t===this._point||t===this._handleOut)&&(i=n[s])&&i._changed()),e._changed(41)}},getPoint:function(){return this._point},setPoint:function(){this._point.set(f.read(arguments))},getHandleIn:function(){return this._handleIn},setHandleIn:function(){this._handleIn.set(f.read(arguments))},getHandleOut:function(){return this._handleOut},setHandleOut:function(){this._handleOut.set(f.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,i=this._path;this._selection=t=t||0,i&&t!==e&&(i._updateSelection(this,e,t),i._changed(257))},_changeSelection:function(t,e){var i=this._selection;this.setSelection(e?i|t:i&~t)},isSelected:function(){return!!(7&this._selection)},setSelected:function(t){this._changeSelection(7,t)},getIndex:function(){return this._index!==i?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 L(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 s=t||{},r=s.type,a=s.factor,o=this.getPrevious(),l=this.getNext(),h=(o||this)._point,u=this._point,c=(l||this)._point,d=h.getDistance(u),p=u.getDistance(c);if(r&&"catmull-rom"!==r){if("geometric"===r){if(o&&l){var g=h.subtract(c),m=a===i?.4:a,_=m*d/(d+p);e||this.setHandleIn(g.multiply(_)),n||this.setHandleOut(g.multiply(_-m))}}else throw Error("Smoothing method '"+r+"' not supported.")}else{var v=a===i?.5:a,y=Math.pow(d,v),b=y*y,x=Math.pow(p,v),w=x*x;if(!e&&o){var k=2*w+3*x*y+b,S=3*x*(x+y);this.setHandleIn(0!==S?new f((w*h._x+k*u._x-b*c._x)/S-u._x,(w*h._y+k*u._y-b*c._y)/S-u._y):new f)}if(!n&&l){var k=2*b+3*y*x+w,S=3*y*(y+x);this.setHandleOut(0!==S?new f((b*c._x+k*u._x-w*h._x)/S-u._x,(b*c._y+k*u._y-w*h._y)/S-u._y):new f)}}},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,i=t.clone();t.set(e),e.set(i)},reversed:function(){return new O(this._point,this._handleOut,this._handleIn)},remove:function(){return!!this._path&&!!this._path.removeSegment(this._index)},clone:function(){return new O(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,Array(6),!0),this._changed()},interpolate:function(t,e,i){var n=1-i,s=t._point,r=e._point,a=t._handleIn,o=e._handleIn,l=e._handleOut,h=t._handleOut;this._point._set(n*s._x+i*r._x,n*s._y+i*r._y,!0),this._handleIn._set(n*a._x+i*o._x,n*a._y+i*o._y,!0),this._handleOut._set(n*h._x+i*l._x,n*h._y+i*l._y,!0),this._changed()},_transformCoordinates:function(t,e,i){var n=this._point,s=i&&this._handleIn.isZero()?null:this._handleIn,r=i&&this._handleOut.isZero()?null:this._handleOut,a=n._x,o=n._y,l=2;return e[0]=a,e[1]=o,s&&(e[l++]=s._x+a,e[l++]=s._y+o),r&&(e[l++]=r._x+a,e[l++]=r._y+o),t&&(t._transformCoordinates(e,e,l/2),a=e[0],o=e[1],i?(n._x=a,n._y=o,l=2,s&&(s._x=e[l++]-a,s._y=e[l++]-o),r&&(r._x=e[l++]-a,r._y=e[l++]-o)):(s||(e[l++]=a,e[l++]=o),r||(e[l++]=a,e[l++]=o))),e}}),M=f.extend({initialize:function(t,e,n){var s,r,a;if(t){if((s=t[0])!==i)r=t[1];else{var o=t;(s=o.x)===i&&(o=f.read(arguments),s=o.x),r=o.y,a=o.selected}}else s=r=0;this._x=s,this._y=r,this._owner=e,e[n]=this,a&&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=d.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}}),N=r.extend({_class:"Curve",beans:!0,initialize:function(t,e,i,n,s,r,a,o){var l,h,u,c,d,p,f=arguments.length;3===f?(this._path=t,l=e,h=i):f?1===f?"segment1"in t?(l=new O(t.segment1),h=new O(t.segment2)):"point1"in t?(u=t.point1,d=t.handle1,p=t.handle2,c=t.point2):Array.isArray(t)&&(u=[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?(l=new O(t),h=new O(e)):4===f?(u=t,d=e,p=i,c=n):8===f&&(u=[t,e],c=[a,o],d=[i-t,n-e],p=[s-a,r-o]):(l=new O,h=new O),this._segment1=l||new O(u,null,d),this._segment2=h||new O(c,p,null)},_serialize:function(t,e){return r.serialize(this.hasHandles()?[this.getPoint1(),this.getHandle1(),this.getHandle2(),this.getPoint2()]:[this.getPoint1(),this.getPoint2()],t,!0,e)},_changed:function(){this._length=this._bounds=i},clone:function(){return new N(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 N.classify(this.getValues())},remove:function(){var t=!1;if(this._path){var e=this._segment2,i=e._handleOut;(t=e.remove())&&this._segment1._handleOut.set(i)}return t},getPoint1:function(){return this._segment1._point},setPoint1:function(){this._segment1._point.set(f.read(arguments))},getPoint2:function(){return this._segment2._point},setPoint2:function(){this._segment2._point.set(f.read(arguments))},getHandle1:function(){return this._segment1._handleOut},setHandle1:function(){this._segment1._handleOut.set(f.read(arguments))},getHandle2:function(){return this._segment2._handleIn},setHandle2:function(){this._segment2._handleIn.set(f.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 N.getValues(this._segment1,this._segment2,t)},getPoints:function(){for(var t=this.getValues(),e=[],i=0;i<8;i+=2)e.push(new f(t[i],t[i+1]));return e}},{getLength:function(){return null==this._length&&(this._length=N.getLength(this.getValues(),0,1)),this._length},getArea:function(){return N.getArea(this.getValues())},getLine:function(){return new x(this._segment1._point,this._segment2._point)},getPart:function(t,e){return new N(N.getPart(this.getValues(),t,e))},getPartLength:function(t,e){return N.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 i=null;if(t>=1e-8&&t<=.99999999){var n=N.subdivide(this.getValues(),t),s=n[0],r=n[1],a=e||this.hasHandles(),o=this._segment1,l=this._segment2,h=this._path;a&&(o._handleOut._set(s[2]-s[0],s[3]-s[1]),l._handleIn._set(r[4]-r[6],r[5]-r[7]));var u=s[6],c=s[7],d=new O(new f(u,c),a&&new f(s[4]-u,s[5]-c),a&&new f(r[2]-u,r[3]-c));h?(h.insert(o._index+1,d),i=this.getNext()):(this._segment2=d,this._changed(),i=new N(d,l))}return i},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===i?.5:e?t:this.getTimeAt(t))},split:function(t,e){return this.splitAtTime(t===i?.5:e?t:this.getTimeAt(t))},reversed:function(){return new N(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,i,n){var s=t._point,r=t._handleOut,a=e._handleIn,o=e._point,l=s.x,h=s.y,u=o.x,c=o.y,d=n?[l,h,l,h,u,c,u,c]:[l,h,l+r._x,h+r._y,u+a._x,c+a._y,u,c];return i&&i._transformCoordinates(d,d,4),d},subdivide:function(t,e){var n=t[0],s=t[1],r=t[2],a=t[3],o=t[4],l=t[5],h=t[6],u=t[7];e===i&&(e=.5);var c=1-e,d=c*n+e*r,p=c*s+e*a,f=c*r+e*o,g=c*a+e*l,m=c*o+e*h,_=c*l+e*u,v=c*d+e*f,y=c*p+e*g,b=c*f+e*m,x=c*g+e*_,w=c*v+e*b,k=c*y+e*x;return[[n,s,d,p,v,y,w,k],[w,k,b,x,m,_,h,u]]},getMonoCurves:function(t,e){var i=[],n=e?0:1,s=t[n+0],r=t[n+2],a=t[n+4],o=t[n+6];if(s>=r==r>=a&&r>=a==a>=o||N.isStraight(t))i.push(t);else{var l=[],h=d.solveQuadratic(3*(r-a)-s+o,2*(s+a)-4*r,r-s,l,1e-8,.99999999);if(h){l.sort();var u=l[0],c=N.subdivide(t,u);i.push(c[0]),h>1&&(u=(l[1]-u)/(1-u),c=N.subdivide(c[1],u),i.push(c[0])),i.push(c[1])}else i.push(t)}return i},solveCubic:function(t,e,i,n,s,r){var a=t[e],o=t[e+2],l=t[e+4],h=t[e+6],u=0;if(!(ai&&h>i&&o>i&&l>i)){var c=3*(o-a),p=3*(l-o)-c;u=d.solveCubic(h-a-c-p,p,c,a-i,n,s,r)}return u},getTimeOf:function(t,e){var i=new f(t[0],t[1]),n=new f(t[6],t[7]);if(null===(e.isClose(i,1e-12)?0:e.isClose(n,1e-12)?1:null))for(var s=[e.x,e.y],r=[],a=0;a<2;a++)for(var o=N.solveCubic(t,a,s[a],r,0,1),l=0;l.999999999999?1:N.getTimeOf(t,new f(i+h*a,n+h*o))}var u=1/0,c=0;function d(i){if(i>=0&&i<=1){var n=e.getDistance(N.getPoint(t,i),!0);if(n1e-8;)d(c-g)||d(c+g)||(g/=2);return c},getPart:function(t,e,i){var n=e>i;if(n){var s=e;e=i,i=s}return e>0&&(t=N.subdivide(t,e)[1]),i<1&&(t=N.subdivide(t,(i-e)/(1-e))[0]),n?[t[6],t[7],t[4],t[5],t[2],t[3],t[0],t[1]]:t},isFlatEnough:function(t,e){var i=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],h=t[7],u=3*s-2*i-l,c=3*r-2*n-h,d=3*a-2*l-i,p=3*o-2*h-n;return Math.max(u*u,d*d)+Math.max(c*c,p*p)<=16*e*e},getArea:function(t){var e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],a=t[5],o=t[6],l=t[7];return 3*((l-i)*(n+r)-(o-e)*(s+a)+s*(e-r)-n*(i-a)+l*(r+e/3)-o*(a+i/3))/20},getBounds:function(t){for(var e=t.slice(0,2),i=e.slice(),n=[0,0],s=0;s<2;s++)N._addBounds(t[s],t[s+2],t[s+4],t[s+6],s,0,e,i,n);return new v(e[0],e[1],i[0]-e[0],i[1]-e[1])},_addBounds:function(t,e,i,n,s,r,a,o,l){function h(t,e){var i=t-e,n=t+e;io[s]&&(o[s]=n)}r/=2;var u=a[s]+r,c=o[s]-r;if(tc||e>c||i>c||n>c){if(er.getDistance(t.add(e))&&1e-7>r.getDistance(n.add(i))){var a=s.dot(s),o=s.dot(e)/a,l=s.dot(i)/a;return o>=0&&o<=1&&l<=0&&l>=-1}}return!1},isLinear:function(t,e,i,n){var s=n.subtract(t).divide(3);return e.equals(s)&&i.negate().equals(s)}},function(t,e){this[e]=function(e){var i=this._segment1,n=this._segment2;return t(i._point,i._handleOut,n._handleIn,n._point,e)},this.statics[e]=function(e,i){var n=e[0],s=e[1],r=e[6],a=e[7];return t(new f(n,s),new f(e[2]-n,e[3]-s),new f(e[4]-r,e[5]-a),new f(r,a),i)}},{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()&&1e-8>Math.abs(this.getTangentAtTime(.5).y)},isVertical:function(){return this.isStraight()&&1e-8>Math.abs(this.getTangentAtTime(.5).x)}}),{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 L(this,t):null},getTimeAt:function(t,e){return N.getTimeAt(this.getValues(),t,e)},getParameterAt:"#getTimeAt",getTimesWithTangent:function(){var t=f.read(arguments);return t.isZero()?[]:N.getTimesWithTangent(this.getValues(),t)},getOffsetAtTime:function(t){return this.getPartLength(0,t)},getLocationOf:function(){return this.getLocationAtTime(this.getTimeOf(f.read(arguments)))},getOffsetOf:function(){var t=this.getLocationOf.apply(this,arguments);return t?t.getOffset():null},getTimeOf:function(){return N.getTimeOf(this.getValues(),f.read(arguments))},getParameterOf:"#getTimeOf",getNearestLocation:function(){var t=f.read(arguments),e=this.getValues(),i=N.getNearestTime(e,t),n=N.getPoint(e,i);return new L(this,i,n,null,t.getDistance(n))},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 r.each(t,function(t){this[t+"At"]=function(e,i){var n=this.getValues();return N[t](n,i?e:N.getTimeAt(n,e))},this[t+"AtTime"]=function(e){return N[t](this.getValues(),e)}},{statics:{_evaluateMethods:t}})},new function(){function t(t){var e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],a=t[5],o=t[6],l=t[7],h=9*(n-r)+3*(o-e),u=6*(e+r)-12*n,c=3*(n-e),d=9*(s-a)+3*(l-i),p=6*(i+a)-12*s,f=3*(s-i);return function(t){var e=(h*t+u)*t+c,i=(d*t+p)*t+f;return Math.sqrt(e*e+i*i)}}function e(t,e){return Math.max(2,Math.min(16,Math.ceil(32*Math.abs(e-t))))}function n(t,e,i,n){if(null==e||e<0||e>1)return null;var s=t[0],r=t[1],a=t[2],o=t[3],l=t[4],h=t[5],u=t[6],c=t[7],p=d.isZero;p(a-s)&&p(o-r)&&(a=s,o=r),p(l-u)&&p(h-c)&&(l=u,h=c);var g,m,_=3*(a-s),v=3*(l-a)-_,y=u-s-_-v,b=3*(o-r),x=3*(h-o)-b,w=c-r-b-x;if(0===i)g=0===e?s:1===e?u:((y*e+v)*e+_)*e+s,m=0===e?r:1===e?c:((w*e+x)*e+b)*e+r;else{if(e<1e-8?(g=_,m=b):e>.99999999?(g=3*(u-l),m=3*(c-h)):(g=(3*y*e+2*v)*e+_,m=(3*w*e+2*x)*e+b),n){0===g&&0===m&&(e<1e-8||e>.99999999)&&(g=l-a,m=h-o);var k=Math.sqrt(g*g+m*m);k&&(g/=k,m/=k)}if(3===i){var l=6*y*e+2*v,h=6*w*e+2*x,S=Math.pow(g*g+m*m,1.5);g=0!==S?(g*h-m*l)/S:0,m=0}}return 2===i?new f(m,-g):new f(g,m)}return{statics:{classify:function(t){var e=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],h=t[7],u=s*(n-h)+r*(l-e)+e*h-n*l,c=3*(a*(r-n)+o*(e-s)+s*n-r*e),p=c-u,f=p-u+(e*(h-o)+n*(a-l)+l*o-h*a),g=Math.sqrt(f*f+p*p+c*c),m=0!==g?1/g:0,_=d.isZero,v="serpentine";function y(t,e,n){var s=e!==i,r=s&&e>0&&e<1,a=s&&n>0&&n<1;return!s||(r||a)&&("loop"!==t||r&&a)||(t="arch",r=a=!1),{type:t,roots:r||a?r&&a?e0?Math.sqrt(b/3):Math.sqrt(-b),w=2*f;return y(b>0?v:"loop",(p+x)/w,(p-x)/w)},getLength:function(n,s,r,a){if(s===i&&(s=0),r===i&&(r=1),N.isStraight(n)){var o=n;r<1&&(o=N.subdivide(o,r)[0],s/=r),s>0&&(o=N.subdivide(o,s)[1]);var l=o[6]-o[0],h=o[7]-o[1];return Math.sqrt(l*l+h*h)}return d.integrate(a||t(n),s,r,e(s,r))},getTimeAt:function(n,s,r){if(r===i&&(r=s<0?1:0),0===s)return r;var a=Math.abs,o=s>0,l=o?r:0,h=o?1:r,u=t(n),c=N.getLength(n,l,h,u),p=a(s)-c;if(1e-12>a(p))return o?h:l;if(p>1e-12)return null;var f=s/c,g=0;return d.findRoot(function(t){return g+=d.integrate(u,r,t,e(r,t)),r=t,g-s},u,r+f,l,h,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],i=t[1],n=t[2],s=t[3],r=t[4],a=t[5],o=t[6],l=t[7],h=-e+3*n-3*r+o,u=3*e-6*n+3*r,c=-3*e+3*n,p=-i+3*s-3*a+l,f=3*i-6*s+3*a,g=-3*i+3*s,m=[];return d.solveCubic(9*(h*h+p*p),9*(h*u+f*p),2*(u*u+f*f)+3*(c*h+g*p),c*u+f*g,m,1e-8,.99999999),m.sort()}}}},new function(){function t(t,e,i,n,s,r,a){var o=!a&&i.getPrevious()===s,l=!a&&i!==s&&i.getNext()===s;if(null!==n&&n>=(o?1e-8:0)&&n<=(l?.99999999:1)&&null!==r&&r>=(l?1e-8:0)&&r<=(o?.99999999:1)){var h=new L(i,n,null,a),u=new L(s,r,null,a);h._intersection=u,u._intersection=h,(!e||e(h))&&L.insert(t,h,!0)}}function e(t,e,n,s){return t[0][1]s?i(e,!1,s):t[0][0]}function i(t,e,i){for(var n=t[0][0],s=t[0][1],r=1,a=t.length;r=i:l<=i)return l===i?o:n+(i-s)*(o-n)/(l-s);n=o,s=l}return null}function n(t,e,i,n,s){var r=d.isZero;if(r(n)&&r(s)){var a=N.getTimeOf(t,new f(e,i));return null===a?[]:[a]}for(var o=Math.atan2(-s,n),l=Math.sin(o),h=Math.cos(o),u=[],c=[],p=0;p<8;p+=2){var g=t[p]-e,m=t[p+1]-i;u.push(g*h-m*l,g*l+m*h)}return N.solveCubic(u,1,0,c,0,1),c}function s(i,s,r,o,l,h){var u=Math.min,c=Math.max;if(c(i[0],i[2],i[4],i[6])+1e-12>u(s[0],s[2],s[4],s[6])&&u(i[0],i[2],i[4],i[6])-1e-12u(s[1],s[3],s[5],s[7])&&u(i[1],i[3],i[5],i[7])-1e-12=4096||++u>=40)return c;var m,_,v=s[0],y=s[1],b=s[6],w=s[7],k=x.getSignedDistance,S=k(v,y,b,w,s[2],s[3]),C=k(v,y,b,w,s[4],s[5]),I=S*C>0?3/4:4/9,T=I*Math.min(0,S,C),E=I*Math.max(0,S,C),A=k(v,y,b,w,n[0],n[1]),P=k(v,y,b,w,n[2],n[3]),O=k(v,y,b,w,n[4],n[5]),M=k(v,y,b,w,n[6],n[7]),L=function(t,e,i,n){var s,r=[0,t],a=[1/3,e],o=[2/3,i],l=[1,n],h=e-(2*t+n)/3,u=i-(t+2*n)/3;if(h*u<0)s=[[r,a,l],[r,o,l]];else{var c=h/u;s=[c>=2?[r,a,l]:c<=.5?[r,o,l]:[r,a,o,l],[r,l]]}return 0>(h||u)?s.reverse():s}(A,P,O,M),z=L[0],R=L[1];if(0===S&&0===C&&0===A&&0===P&&0===O&&0===M||null==(m=e(z,R,T,E))||null==(_=e(z.reverse(),R.reverse(),T,E)))return c;var B=d+(p-d)*m,D=d+(p-d)*_;if(1e-9>Math.max(g-f,D-B)){var V=(B+D)/2,F=(f+g)/2;t(o,l,h?a:r,h?F:V,h?r:a,h?V:F)}else{n=N.getPart(n,m,_);var j=g-f;if(_-m>.8){if(D-B>j){var U=N.subdivide(n,.5),V=(B+D)/2;c=i(s,U[0],a,r,o,l,!h,u,c,f,g,B,V),c=i(s,U[1],a,r,o,l,!h,u,c,f,g,V,D)}else{var U=N.subdivide(s,.5),F=(f+g)/2;c=i(U[0],n,a,r,o,l,!h,u,c,f,F,B,D),c=i(U[1],n,a,r,o,l,!h,u,c,F,g,B,D)}}else c=0===j||j>=1e-9?i(s,n,a,r,o,l,!h,u,c,f,g,B,D):i(n,s,r,a,o,l,h,u,c,B,D,f,g)}return c})(y?s:i,y?i:s,y?o:r,y?r:o,l,h,y,0,0,0,1,0,1),!v||l.length===b)for(var p=0;p<4;p++){var w=p>>1,k=1&p,S=6*w,C=6*k,I=new f(i[S],i[S+1]),T=new f(s[C],s[C+1]);I.isClose(T,1e-12)&&t(l,h,r,w,o,k)}}}return l}function r(e,i,n,s){var r=N.classify(e);if("loop"===r.type){var a=r.roots;t(n,s,i,a[0],i,a[1])}return n}function a(t,e){function i(t){var e=t[6]-t[0],i=t[7]-t[1];return e*e+i*i}var n=Math.abs,s=x.getDistance,r=N.isStraight(t),a=N.isStraight(e),o=r&&a,l=i(t)s(c,d,p,g,u[0],u[1],!0)&&1e-7>s(c,d,p,g,u[6],u[7],!0))!o&&1e-7>s(c,d,p,g,h[2],h[3],!0)&&1e-7>s(c,d,p,g,h[4],h[5],!0)&&1e-7>s(c,d,p,g,u[2],u[3],!0)&&1e-7>s(c,d,p,g,u[4],u[5],!0)&&(r=a=o=!0);else if(o)return null;if(r^a)return null;for(var m=[t,e],_=[],v=0;v<4&&_.length<2;v++){var y=1&v,b=1^y,w=v>>1,k=N.getTimeOf(m[y],new f(m[b][w?6:0],m[b][w?7:1]));if(null!=k){var S=y?[w,k]:[k,w];(!_.length||n(S[0]-_[0][0])>1e-8&&n(S[1]-_[0][1])>1e-8)&&_.push(S)}if(v>2&&!_.length)break}if(2!==_.length)_=null;else if(!o){var C=N.getPart(t,_[0][0],_[1][0]),I=N.getPart(e,_[0][1],_[1][1]);(n(I[2]-C[2])>1e-7||n(I[3]-C[3])>1e-7||n(I[4]-C[4])>1e-7||n(I[5]-C[5])>1e-7)&&(_=null)}return _}return{getIntersections:function(t){var e=this.getValues(),i=t&&t!==this&&t.getValues();return i?s(e,i,this,t,[]):r(e,this,[])},statics:{getOverlaps:a,getIntersections:function(t,e,i,n,a,o){var l=!e;l&&(e=t);for(var u=t.length,c=e.length,d=Array(u),p=l?d:Array(c),f=[],g=0;g_){var k=e[w];s(y,p[w],v,k,f,i)}}}return f},getCurveLineIntersections:n,getTimesWithTangent:function(t,e){var i=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],h=t[7],u=e.normalize(),c=u.x,p=u.y,f=3*l-9*a+9*s-3*i,g=3*h-9*o+9*r-3*n,m=6*a-12*s+6*i,_=6*o-12*r+6*n,v=3*s-3*i,y=3*r-3*n,b=2*f*p-2*g*c,x=[];if(Math.abs(b)=0&&w<=1&&x.push(w)}}else{var k=(m*m-4*f*v)*p*p+(-2*m*_+4*g*v+4*f*y)*c*p+(_*_-4*g*y)*c*c,S=m*p-_*c;if(k>=0&&0!=b){var C=Math.sqrt(k),I=-(S+C)/b,T=(-S+C)/b;I>=0&&I<=1&&x.push(I),T>=0&&T<=1&&x.push(T)}}return x}}}}),L=r.extend({_class:"CurveLocation",initialize:function(t,e,i,n,s){if(e>=.99999999){var r=t.getNext();r&&(e=0,t=r)}this._setCurve(t),this._time=e,this._point=i||t.getPointAtTime(e),this._overlap=n,this._distance=s,this._intersection=this._next=this._previous=null},_setPath:function(t){this._path=t,this._version=t?t._version:0},_setCurve:function(t){this._setPath(t._path),this._curve=t,this._segment=null,this._segment1=t._segment1,this._segment2=t._segment2},_setSegment:function(t){var e=t.getCurve();e?this._setCurve(e):(this._setPath(t._path),this._segment1=t,this._segment2=null),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(),i=this.getTime();0===i?t=e._segment1:1===i?t=e._segment2:null!=i&&(t=e.getPartLength(0,i)a(r.getLength()-o))&&(!l&&!h||l&&h&&l.equals(h,!0))}}return i},toString:function(){var t=[],e=this.getPoint(),i=c.instance;e&&t.push("point: "+e);var n=this.getIndex();null!=n&&t.push("index: "+n);var s=this.getTime();return null!=s&&t.push("time: "+i.number(s)),null!=this._distance&&t.push("distance: "+i.number(this._distance)),"{ "+t.join(", ")+" }"},isTouching:function(){var t=this._intersection;if(t&&this.getTangent().isCollinear(t.getTangent())){var e=this.getCurve(),i=t.getCurve();return!(e.isStraight()&&i.isStraight()&&e.getLine().intersect(i.getLine()))}return!1},isCrossing:function(){var t=this._intersection;if(!t)return!1;var e=this.getTime(),i=t.getTime(),n=e>=1e-8&&e<=.99999999,s=i>=1e-8&&i<=.99999999;if(n&&s)return!this.isTouching();var r=this.getCurve(),a=r&&e<1e-8?r.getPrevious():r,o=t.getCurve(),l=o&&i<1e-8?o.getPrevious():o;if(e>.99999999&&(r=r.getNext()),i>.99999999&&(o=o.getNext()),!a||!r||!l||!o)return!1;var h=[];function u(t,e){var i=t.getValues(),n=N.classify(i).roots||N.getPeaks(i),s=n.length,r=N.getLength(i,e&&s?n[s-1]:0,!e&&s?n[0]:1);h.push(s?r:r/32)}function c(t,e,i){return ee&&te||t=-1&&r<=n;r+=s){var a=t[(r%n+n)%n];if(!e.getPoint().isClose(a.getPoint(),1e-7))break;if(e.equals(a))return a}return null}for(;s<=r;){var o,l=s+r>>>1,h=t[l];if(i&&(o=e.equals(h)?h:a(l,-1)||a(l,1)))return e._overlap&&(o._overlap=o._intersection._overlap=!0),o;var u=e.getPath(),c=h.getPath();(u!==c?u._id-c._id:e.getIndex()+e.getTime()-(h.getIndex()+h.getTime()))<0?r=l-1:s=l+1}return t.splice(s,0,e),e}return{statics:{insert:t,expand:function(e){for(var i=e.slice(),n=e.length-1;n>=0;n--)t(i,e[n]._intersection,!1);return i}}}}),z=k.extend({_class:"PathItem",_selectBounds:!1,_canScaleStroke:!0,beans:!0,initialize:function(){},statics:{create:function(t){if(r.isPlainObject(t)?(i=t.segments,e=t.pathData):Array.isArray(t)?i=t:"string"==typeof t&&(e=t),i){var e,i,n,s=i[0];n=s&&Array.isArray(s[0])}else e&&(n=(e.match(/m/gi)||[]).length>1||/z\s*\S+/i.test(e));return new(n?B:R)(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,i,n,s=t&&t.match(/[mlhvcsqtaz][^mlhvcsqtaz]*/ig),r=!1,a=new f,o=new f;function l(t,i){var n=+e[t];return r&&(n+=a[i]),n}function h(t){return new f(l(t,"x"),l(t+1,"y"))}this.clear();for(var u=0,c=s&&s.length;uh&&this[n?"removeSegments":"removeChildren"](h,l);for(var c=0;c=0&&e;u--){var c=i[u];e=!1;var p=l[u];if(p)for(var f=p.length-1;f>=0&&!e;f--)c.compare(n[p[f]])&&(!a[p[f]]&&(a[p[f]]=!0,o++),e=!0)}e=e&&o===r}return e}}),R=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===i&&(t.x!==i||t.point!==i)?e:null;n&&n.length>0?this.setSegments(n):(this._curves=i,this._segmentSelection=0,n||"string"!=typeof t||(this.setPathData(t),t=null)),this._initialize(!n&&t)},_equals:function(t){return this._closed===t._closed&&r.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=i,32&e)this._version++;else if(this._curves)for(var n=0,s=this._curves.length;n0&&(_(u[0],!0),m.push("z")),m.join("")},isEmpty:function(){return!this._segments.length},_transformContent:function(t){for(var e=this._segments,i=Array(6),n=0,s=e.length;n0&&e+s-1===u?e-1:e,d=c,p=Math.min(c+s,u);t._curves&&(n.splice.apply(n,[c,0].concat(t._curves)),d+=t._curves.length);for(var o=d;o0?t-1:t},add:function(t){var e=arguments;return e.length>1&&"number"!=typeof t?this._add(O.readList(e)):this._add([O.read(e)])[0]},insert:function(t,e){var i=arguments;return i.length>2&&"number"!=typeof e?this._add(O.readList(i,1),t):this._add([O.read(i,1)],t)[0]},addSegment:function(){return this._add([O.read(arguments)])[0]},insertSegment:function(t){return this._add([O.read(arguments,1)],t)[0]},addSegments:function(t){return this._add(O.readList(t))},insertSegments:function(t,e){return this._add(O.readList(e),t)},removeSegment:function(t){return this.removeSegments(t,t+1)[0]||null},removeSegments:function(t,e,i){t=t||0,e=r.pick(e,this._segments.length);var n=this._segments,s=this._curves,a=n.length,o=n.splice(t,e-t),l=o.length;if(!l)return o;for(var h=0;h0&&e===a+(this._closed?1:0)?t-1:t,s=s.splice(d,l),h=s.length-1;h>=0;h--)s[h]._path=null;i&&(o._curves=s.slice(1)),this._adjustCurves(d,d)}return this._changed(41),o},clear:"#removeSegments",hasHandles:function(){for(var t=this._segments,e=0,i=t.length;e0&&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,i=e.length,n=t?7:0;this._segmentSelection=n*i;for(var s=0;s0&&this.setSelected(!0)},divideAt:function(t){var e,i=this.getLocationAt(t);return i&&(e=i.getCurve().divideAt(i.getCurveOffset()))?e._segment1:null},splitAt:function(t){var e=this.getLocationAt(t),i=e&&e.index,n=e&&e.time;n>.99999999&&(i++,n=0);var s=this.getCurves();if(i>=0&&i=1e-8&&s[i++].divideAtTime(n);var r,a=this.removeSegments(i,this._segments.length,!0);return this._closed?(this.setClosed(!1),r=this):((r=new R(k.NO_INSERT)).insertAbove(this),r.copyAttributes(this)),r._add(a,0),this.addSegment(a[0]),r}return null},split:function(t,e){var n,s=e===i?t:(n=this.getCurves()[t])&&n.getLocationAtTime(e);return null!=s?this.splitAt(s):null},join:function(t,e){var i=e||0;if(t&&t!==this){var n=t._segments,s=this.getLastSegment(),r=t.getLastSegment();if(!r)return this;s&&s._point.isClose(r._point,i)&&t.reverse();var a=t.getFirstSegment();if(s&&s._point.isClose(a._point,i))s.setHandleOut(a._handleOut),this._add(n.slice(1));else{var o=this.getFirstSegment();o&&o._point.isClose(a._point,i)&&t.reverse(),r=t.getLastSegment(),o&&o._point.isClose(r._point,i)?(o.setHandleIn(r._handleIn),this._add(n.slice(0,n.length-1),0)):this._add(n.slice())}t._closed&&this._add([n[0]]),t.remove()}var l=this.getFirstSegment(),h=this.getLastSegment();return l!==h&&l._point.isClose(h._point,i)&&(l.setHandleIn(h._handleIn),h.remove(),this.setClosed(!0)),this},reduce:function(t){for(var e=this.getCurves(),i=t&&t.simplify,n=i?1e-7:0,s=e.length-1;s>=0;s--){var r=e[s];!r.hasHandles()&&(!r.hasLength(n)||i&&r.isCollinear(r.getNext()))&&r.remove()}return this},reverse:function(){this._segments.reverse();for(var t=0,e=this._segments.length;t0&&n.push(new O(e[i-1].curve.slice(6))),this.setSegments(n)},simplify:function(t){var e=new V(this).fit(t||2.5);return e&&this.setSegments(e),!!e},smooth:function(t){var e=this,n=t||{},s=n.type||"asymmetric",r=this._segments,a=r.length,o=this._closed;function l(t,i){var n=t&&t.index;if(null!=n){var s=t.path;if(s&&s!==e)throw Error(t._class+" "+n+" of "+s+" is not part of "+e);i&&t instanceof N&&n++}else n="number"==typeof t?t:i;return Math.min(n<0&&o?n%a:n<0?n+a:n,a-1)}var h=o&&n.from===i&&n.to===i,u=l(n.from,0),c=l(n.to,a-1);if(u>c){if(o)u-=a;else{var d=u;u=c,c=d}}if(/^(?:asymmetric|continuous)$/.test(s)){var p="asymmetric"===s,f=Math.min,g=c-u+1,m=g-1,_=h?f(g,4):1,v=_,y=_,b=[];if(o||(v=f(1,u),y=f(1,a-c-1)),(m+=v+y)<=1)return;for(var x=0,w=u-v;x<=m;x++,w++)b[x]=r[(w<0?w+a:w)%a]._point;for(var k=b[0]._x+2*b[1]._x,S=b[0]._y+2*b[1]._y,C=2,I=m-1,T=[k],E=[S],A=[2],P=[],O=[],x=1;x=0;x--)P[x]=(T[x]-P[x+1])/A[x],O[x]=(E[x]-O[x+1])/A[x];P[m]=(3*b[m]._x-P[I])/2,O[m]=(3*b[m]._y-O[I])/2;for(var x=v,V=m-y,w=u;x<=V;x++,w++){var F=r[w<0?w+a:w],j=F._point,U=P[x]-j._x,q=O[x]-j._y;(h||xv)&&F.setHandleIn(-U,-q)}}else for(var x=u;x<=c;x++)r[x<0?x+a:x].smooth(n,!h&&x===u,!h&&x===c)},toShape:function(t){if(!this._closed)return null;var e,n,s,r,a,o,l,h=this._segments;function u(t,e){var i=h[t],n=i.getNext(),s=h[e],r=s.getNext();return i._handleOut.isZero()&&n._handleIn.isZero()&&s._handleOut.isZero()&&r._handleIn.isZero()&&n._point.subtract(i._point).isCollinear(r._point.subtract(s._point))}function c(t){var e=h[t],i=e.getNext(),n=e._handleOut,s=i._handleIn;if(n.isOrthogonal(s)){var r=e._point,a=i._point,o=new x(r,n,!0).intersect(new x(a,s,!0),!0);return o&&d.isZero(n.getLength()/o.subtract(r).getLength()-.5522847498307936)&&d.isZero(s.getLength()/o.subtract(a).getLength()-.5522847498307936)}return!1}function p(t,e){return h[t]._point.getDistance(h[e]._point)}if(!this.hasHandles()&&4===h.length&&u(0,2)&&u(1,3)&&(n=(e=h[1]).getPrevious(),s=e.getNext(),n._handleOut.isZero()&&e._handleIn.isZero()&&e._handleOut.isZero()&&s._handleIn.isZero()&&e._point.subtract(n._point).isOrthogonal(s._point.subtract(e._point)))?(r=I.Rectangle,a=new m(p(0,3),p(0,1)),l=h[1]._point.add(h[2]._point).divide(2)):8===h.length&&c(0)&&c(2)&&c(4)&&c(6)&&u(1,5)&&u(3,7)?(r=I.Rectangle,o=(a=new m(p(1,6),p(0,3))).subtract(new m(p(0,7),p(1,2))).divide(2),l=h[3]._point.add(h[4]._point).divide(2)):4===h.length&&c(0)&&c(1)&&c(2)&&c(3)&&(d.isZero(p(0,2)-p(1,3))?(r=I.Circle,o=p(0,2)/2):(r=I.Ellipse,o=new m(p(2,0)/2,p(3,1)/2)),l=h[1]._point),r){var f=this.getPosition(!0),g=new r({center:f,size:a,radius:o,insert:!1});return g.copyAttributes(this,!0),g._matrix.prepend(this._matrix),g.rotate(l.subtract(f).getAngle()+90),(t===i||t)&&g.insertAbove(this),g}return null},toPath:"#clone",compare:function t(e){if(!e||e instanceof B)return t.base.call(this,e);var i=this.getCurves(),n=e.getCurves(),s=i.length,r=n.length;if(!s||!r)return s==r;for(var a,o,l=i[0].getValues(),h=[],u=0,c=0,d=0;d0?r-1:d,o=f[0][1];break}}for(var g,m=Math.abs,p=h[a];l&&p;){var f=N.getOverlaps(l,p);if(f&&1e-8>m(f[0][0]-c)){1===(c=f[1][0])&&(l=++um(_-o)){if(g||(g=[a,_]),1===(o=f[1][1])&&(++a>=r&&(a=0),p=h[a]||n[a].getValues(),o=0),!l)return g[0]===a&&g[1]===o;continue}}break}return!1},_hitTestSelf:function(t,e,i,n){var s,r,a,o,l,h,u=this,c=this.getStyle(),d=this._segments,p=d.length,f=this._closed,g=e._tolerancePadding,m=g,_=e.stroke&&c.hasStroke(),v=e.fill&&c.hasFill(),y=e.curves,b=_?c.getStrokeWidth()/2:v&&e.tolerance>0||y?0:null;function x(e,i){return t.subtract(e).divide(i).length<=1}function w(t,i,n){if(!e.selected||i.isSelected()){var s=t._point;if(i!==s&&(i=i.add(s)),x(i,m))return new P(n,u,{segment:t,point:i})}}function k(t,i){return(i||e.segments)&&w(t,t._point,"segment")||!i&&e.handles&&(w(t,t._handleIn,"handle-in")||w(t,t._handleOut,"handle-out"))}function S(t){o.add(t)}function C(e){var i,l=f||e._index>0&&e._index0?(s=c.getStrokeJoin(),r=c.getStrokeCap(),a=c.getMiterLimit(),m=m.add(R._getStrokePadding(b,n))):s=r="round"),!e.ends||e.segments||f){if(e.segments||e.handles){for(var I=0;I1?C(l.getSegment())||(l=null):x(l.getPoint(),m)||(l=null)}if(!l&&"miter"===s&&p>1)for(var I=0;It)return a.getLocationAt(t-r)}if(e.length>0&&t<=this.getLength())return new L(e[e.length-1],1)}else if(t&&t.getPath&&t.getPath()===this)return t;return null},getOffsetsWithTangent:function(){var t=f.read(arguments);if(t.isZero())return[];for(var e=[],i=0,n=this.getCurves(),s=0,r=n.length;se.indexOf(u)&&e.push(u)}i+=a.length}return e}}),new function(){function t(t,e,i){var n,s,r,a,o,l,h,u,c=e._segments,d=c.length,p=Array(6),f=!0;function g(e){if(i)e._transformCoordinates(i,p),n=p[0],s=p[1];else{var c=e._point;n=c._x,s=c._y}if(f)t.moveTo(n,s),f=!1;else{if(i)o=p[2],l=p[3];else{var d=e._handleIn;o=n+d._x,l=s+d._y}o===n&&l===s&&h===r&&u===a?t.lineTo(n,s):t.bezierCurveTo(h,u,o,l,n,s)}if(r=n,a=s,i)h=p[4],u=p[5];else{var d=e._handleOut;h=r+d._x,u=a+d._y}}for(var m=0;m0&&g(c[0])}return{_draw:function(e,i,n,s){var r=i.dontStart,a=i.dontFinish||i.clip,o=this.getStyle(),l=o.hasFill(),h=o.hasStroke(),u=o.getDashArray(),c=!tl.support.nativeDash&&h&&u&&u.length;function d(t){return u[(t%c+c)%c]}if(r||e.beginPath(),(l||h&&!c||a)&&(t(e,this,s),this._closed&&e.closePath()),!a&&(l||h)&&(this._setStyles(e,i,n),l&&(e.fill(o.getFillRule()),e.shadowColor="rgba(0,0,0,0)"),h)){if(c){r||e.beginPath();for(var p,f=new D(this,.25,32,!1,s),g=f.length,m=-o.getDashOffset(),_=0;m>0;)m-=d(_--)+d(_--);for(;m0||p>0)&&f.drawPart(e,Math.max(m,0),Math.max(p,0)),m=p+d(_++)}e.stroke()}},_drawSelected:function(e,i){e.beginPath(),t(e,this,i),e.stroke(),function(t,e,i,n){if(!(n<=0))for(var s,r,a=n/2,o=n-2,l=a-1,h=Array(6),u=0,c=e.length;u0&&!(1&p)){var f=t.fillStyle;t.fillStyle="#ffffff",t.fillRect(s-l,r-l,o,o),t.fillStyle=f}}function g(e){var i=h[e],n=h[e+1];(s!=i||r!=n)&&(t.beginPath(),t.moveTo(s,r),t.lineTo(i,n),t.stroke(),t.beginPath(),t.arc(i,n,a,0,2*Math.PI,!0),t.fill())}}(e,this._segments,i,tl.settings.handleSize)}}},new function(){function t(t){var e=t._segments;if(!e.length)throw 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 O(f.read(arguments))])},moveBy:function(){throw Error("moveBy() is unsupported on Path items.")},lineTo:function(){this._add([new O(f.read(arguments))])},cubicCurveTo:function(){var e=arguments,i=f.read(e),n=f.read(e),s=f.read(e),r=t(this);r.setHandleOut(i.subtract(r._point)),this._add([new O(s,n.subtract(s))])},quadraticCurveTo:function(){var e=arguments,i=f.read(e),n=f.read(e),s=t(this)._point;this.cubicCurveTo(i.add(s.subtract(i).multiply(1/3)),i.add(n.subtract(i).multiply(1/3)),n)},curveTo:function(){var e=arguments,i=f.read(e),n=f.read(e),s=r.pick(r.read(e),.5),a=1-s,o=t(this)._point,l=i.subtract(o.multiply(a*a)).subtract(n.multiply(s*s)).divide(2*s*a);if(l.isNaN())throw Error("Cannot put a curve through points with parameter = "+s);this.quadraticCurveTo(l,n)},arcTo:function(){var e,i,n,s,a,o=arguments,l=Math.abs,h=Math.sqrt,u=t(this),c=u._point,p=f.read(o),g=r.peek(o),_=r.pick(g,!0);if("boolean"==typeof _)var v=c.add(p).divide(2),e=v.add(v.subtract(c).rotate(_?-90:90));else if(2>=r.remain(o))e=p,p=f.read(o);else if(!c.equals(p)){var y=m.read(o),w=d.isZero;if(w(y.width)||w(y.height))return this.lineTo(p);var k=r.read(o),_=!!r.read(o),S=!!r.read(o),v=c.add(p).divide(2),C=c.subtract(v).rotate(-k),I=C.x,T=C.y,E=l(y.width),A=l(y.height),P=E*E,M=A*A,N=I*I,L=T*T,z=h(N/P+L/M);if(z>1&&(E*=z,A*=z,P=E*E,M=A*A),1e-12>l(z=(P*M-P*L-M*N)/(P*L+M*N))&&(z=0),z<0)throw Error("Cannot create an arc with the given arguments");i=new f(E*T/A,-A*I/E).multiply((S===_?-1:1)*h(z)).rotate(k).add(v),n=(s=(a=new b().translate(i).rotate(k).scale(E,A))._inverseTransform(c)).getDirectedAngle(a._inverseTransform(p)),!_&&n>0?n-=360:_&&n<0&&(n+=360)}if(e){var R=new x(c.add(e).divide(2),e.subtract(c).rotate(90),!0),B=new x(e.add(p).divide(2),p.subtract(e).rotate(90),!0),D=new x(c,p),V=D.getSide(e);if(!(i=R.intersect(B,!0))){if(!V)return this.lineTo(p);throw Error("Cannot create an arc with the given arguments")}n=(s=c.subtract(i)).getDirectedAngle(p.subtract(i));var F=D.getSide(i,!0);0===F?n=V*l(n):V===F&&(n+=n<0?360:-360)}if(n){for(var j=l(n),U=j>=360?4:Math.ceil((j-1e-5)/90),q=n/U,Z=q*Math.PI/360,H=4/3*Math.sin(Z)/(1+Math.cos(Z)),G=[],W=0;W<=U;W++){var C=p,$=null;if(W0){for(var k=1;k=180)&&(c=c.negate(),d=d.negate()),o&&a(u),a(u.add(c)),"miter"===e){var g=new x(u.add(c),new f(-c.y,c.x),!0).intersect(new x(u.add(d),new f(-d.y,d.x),!0),!0);g&&u.getDistance(g)<=n*i&&a(g)}a(u.add(d))},_addSquareCap:function(t,e,i,n,s,r,a){var o=t._point.transform(n),l=t.getLocation(),h=l.getNormal().multiply(0===l.getTime()?i:-i).transform(s);"square"===e&&(a&&(r(o.subtract(h)),r(o.add(h))),o=o.add(h.rotate(-90))),r(o.add(h)),r(o.subtract(h))},getHandleBounds:function(t,e,i,n,s){var r,a,o=i.getStyle();if(s.stroke&&o.hasStroke()){var l=i._getStrokeMatrix(n,s),h=o.getStrokeWidth()/2,u=h;"miter"===o.getStrokeJoin()&&(u=h*o.getMiterLimit()),"square"===o.getStrokeCap()&&(u=Math.max(u,h*Math.SQRT2)),r=R._getStrokePadding(h,l),a=R._getStrokePadding(u,l)}for(var c=Array(6),d=1/0,p=-1/0,f=1/0,g=p,m=0,_=t.length;m<_;m++){t[m]._transformCoordinates(n,c);for(var y=0;y<6;y+=2){var b=y?r:a,x=b?b[0]:0,w=b?b[1]:0,k=c[y],S=c[y+1],C=k-x,I=k+x,T=S-w,E=S+w;Cp&&(p=I),Tg&&(g=E)}}return new v(d,f,p-d,g-f)}}});R.inject({statics:new function(){var t=[new O([-1,0],[0,.5522847498307936],[0,-.5522847498307936]),new O([0,-1],[-.5522847498307936,0],[.5522847498307936,0]),new O([1,0],[0,-.5522847498307936],[0,.5522847498307936]),new O([0,1],[.5522847498307936,0],[-.5522847498307936,0])];function e(t,e,i){var n=r.getNamed(i),s=new R(n&&(!0==n.insert?k.INSERT:!1==n.insert?k.NO_INSERT:null));return s._add(t),s._closed=e,s.set(n,k.INSERT)}function i(i,n,s){for(var r=[,,,,],a=0;a<4;a++){var o=t[a];r[a]=new O(o._point.multiply(n).add(i),o._handleIn.multiply(n),o._handleOut.multiply(n))}return e(r,!0,s)}return{Line:function(){var t=arguments;return e([new O(f.readNamed(t,"from")),new O(f.readNamed(t,"to"))],!1,t)},Circle:function(){var t=arguments;return i(f.readNamed(t,"center"),new m(r.readNamed(t,"radius")),t)},Rectangle:function(){var t,i=arguments,n=v.readNamed(i,"rectangle"),s=m.readNamed(i,"radius",0,{readNull:!0}),r=n.getBottomLeft(!0),a=n.getTopLeft(!0),o=n.getTopRight(!0),l=n.getBottomRight(!0);if(!s||s.isZero())t=[new O(r),new O(a),new O(o),new O(l)];else{var h=(s=m.min(s,n.getSize(!0).divide(2))).width,u=s.height,c=.5522847498307936*h,d=.5522847498307936*u;t=[new O(r.add(h,0),null,[-c,0]),new O(r.subtract(0,u),[0,d]),new O(a.add(0,u),null,[0,-d]),new O(a.add(h,0),[-c,0],null),new O(o.subtract(h,0),null,[c,0]),new O(o.add(0,u),[0,-d],null),new O(l.subtract(0,u),null,[0,d]),new O(l.subtract(h,0),[c,0])]}return e(t,!0,i)},RoundRectangle:"#Rectangle",Ellipse:function(){var t=arguments,e=I._readEllipse(t);return i(e.center,e.radius,t)},Oval:"#Ellipse",Arc:function(){var t=arguments,e=f.readNamed(t,"from"),i=f.readNamed(t,"through"),n=f.readNamed(t,"to"),s=r.getNamed(t),a=new R(s&&!1==s.insert&&k.NO_INSERT);return a.moveTo(e),a.arcTo(i,n),a.set(s)},RegularPolygon:function(){for(var t=arguments,i=f.readNamed(t,"center"),n=r.readNamed(t,"sides"),s=r.readNamed(t,"radius"),a=360/n,o=n%3==0,l=new f(0,o?-s:s),h=o?-1:.5,u=Array(n),c=0;c=0;a--){var o=n[a];n!==i||o instanceof R||(n=r.slice(n)),Array.isArray(o)?n[a]=new R({segments:o,insert:!1}):o instanceof B&&(n.splice.apply(n,[a,1].concat(o.removeChildren())),o.remove())}return t.base.call(this,e,n)},reduce:function t(e){for(var i=this._children,n=i.length-1;n>=0;n--){var s=i[n].reduce(e);s.isEmpty()&&s.remove()}if(!i.length){var s=new R(k.NO_INSERT);return s.copyAttributes(this),s.insertAbove(this),this.remove(),s}return t.base.call(this)},isClosed:function(){for(var t=this._children,e=0,i=t.length;e=0;f--){var g=r[f].split();g&&(p(g)&&g.getFirstSegment().setHandleIn(0,0),n.getLastSegment().setHandleOut(0,0))}return p(n),l(d,!1,t,e)}function f(t,e){for(var i=t;i;){if(i===e)return;i=i._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 g(t){for(var e=t.length-1;e>=0;e--)t[e].clearHandles()}function m(t,e,i){var s=t&&t.length;if(s){var a=r.each(t,function(t,e){this[t._id]={container:null,winding:t.isClockwise()?1:-1,index:e}},{}),o=t.slice().sort(function(t,e){return n(e.getArea())-n(t.getArea())}),l=o[0],u=h.findItemBoundsCollisions(o,null,d.GEOMETRIC_EPSILON);null==i&&(i=l.isClockwise());for(var c=0;c=0;v--)if(m[v]=0;c--){var d=i[c];d._path&&(h[u(d)]=!0)}for(var c=t.length-1;c>=0;c--){var p,m=t[c],_=m._time,v=_,y=e&&!e(m),d=m._curve;if(d&&(d!==s?(o=!d.hasHandles()||h&&h[u(d)],n=[],r=null,s=d):r>=1e-8&&(_/=r)),y){n&&n.push(m);continue}if(e&&a.unshift(m),r=v,_<1e-8)p=d._segment1;else if(_>.99999999)p=d._segment2;else{var b=d.divideAtTime(_,!0);o&&l.push(d,b),p=b._segment1;for(var x=n.length-1;x>=0;x--){var w=n[x];w._time=(w._time-_)/(1-_)}}m._setSegment(p);var k=p._intersection,S=m._intersection;if(k){f(k,S);for(var C=k;C;)f(C._intersection,k),C=C._next}else p._intersection=S}return i||g(l),a||t}function v(i,s,r,a,o){var l,h,u=Array.isArray(s)?s:s[r?"hor":"ver"],c=r?1:0,d=1^c,p=[i.x,i.y],f=p[c],g=p[d],m=f-1e-9,_=f+1e-9,y=0,b=0,x=0,w=0,k=!1,S=!1,C=1,I=[];function T(n){var h=n[d+0],u=n[d+2],p=n[d+4],y=n[d+6];if(g<=e(h,u,p,y)&&g>=t(h,u,p,y)){for(var b,S=n[c+0],T=n[c+2],E=n[c+4],A=n[c+6],P=m>e(S,T,E,A)||_e(h,u))){var p=n[c+0],y=n[c+2],b=n[c+4],S=n[c+6];if(h===u){(p<_&&S>m||S<_&&p>m)&&(k=!0);return}var T=g===h?0:g===u?1:m>e(p,y,b,S)||_0?I[0]:1,E=0===T?p:1===T?S:N.getPoint(n,T)[r?"y":"x"],A=h>u?1:-1,P=l[d]>l[d+6]?1:-1,O=l[c+6];return g!==h?(E_?w+=A:k=!0,E>f-1e-6&&E_&&(w+=A):p!=O&&(O<_&&E>_?(w+=A,k=!0):O>m&&Em&&E<_&&0===N.getTangent(n,T)[r?"x":"y"]&&v(i,s,!r,a,!0)}}(P[O]))return b}}for(var E=0,A=u.length;Ea.quality&&(a=I);break}c-=y}for(var g=o.length-1;g>=0;g--)o[g].segment._winding=a}function b(t,e){var i,n=[];function s(t){var i;return!!(t&&!t._visited&&(!e||e[(i=t._winding||{}).winding]&&!(e.unite&&2===i.winding&&i.windingL&&i.windingR)))}function r(t){if(t){for(var e=0,n=i.length;e=0;h--){var u=l[h],c=u._path,d=u._segment,p=d.getPrevious(),f=d.getNext();i(p,c)&&i(f,c)&&(d.remove(),p._handleOut._set(0,0),f._handleIn._set(0,0),p===d||p.getCurve().hasLength()||(f._handleIn.set(p._handleIn),p.remove()))}s&&(_(a,n&&function(t){var e=t.getCurve(),i=t.getSegment(),n=t._intersection,s=n._curve,r=n._segment;if(e&&s&&e._path&&s._path)return!0;i&&(i._intersection=null),r&&(r._intersection=null)},o),o&&g(o),e=b(r.each(e,function(t){r.push(this,t._segments)},[])));var m,v=e.length;return v>1&&t?(e!==t&&this.setChildren(e),m=this):1!==v||t||(e[0]!==this&&this.setSegments(e[0].removeSegments()),m=this),m||((m=new B(k.NO_INSERT)).addChildren(e),(m=m.reduce()).copyAttributes(this),this.replaceWith(m)),m},reorient:function(t,e){var n=this._children;return n&&n.length?this.setChildren(m(this.removeChildren(),function(e){return!!(t?e:1&e)},e)):e!==i&&this.setClockwise(e),this},getInteriorPoint:function(){var i=this.getBounds().getCenter(!0);if(!this.contains(i)){for(var n=this.getCurves(),s=i.y,r=[],a=[],o=0,l=n.length;o=t(u,c,d,p)&&s<=e(u,c,d,p))for(var f=N.getMonoCurves(h),g=0,m=f.length;g=v&&s<=y||s>=y&&s<=v)){var b=s===v?_[0]:s===y?_[6]:1===N.solveCubic(_,1,s,a,0,1)?N.getPoint(_,a[0]).x:(_[0]+_[6])/2;r.push(b)}}}r.length>1&&(r.sort(function(t,e){return t-e}),i.x=(r[0]+r[1])/2)}return i}}});var D=r.extend({_class:"PathFlattener",initialize:function(t,e,i,n,s){var r,a=[],o=[],l=0,h=1/(i||32),u=t._segments,c=u[0];function d(t,i){var r=N.getValues(t,i,s);a.push(r),function t(i,s,r,a){if(!(a-r>h)||n&&N.isStraight(i)||N.isFlatEnough(i,e||.25)){var u=i[6]-i[0],c=i[7]-i[1],d=Math.sqrt(u*u+c*c);d>0&&(l+=d,o.push({offset:l,curve:i,index:s,time:a}))}else{var p=N.subdivide(i,.5),f=(r+a)/2;t(p[0],s,r,f),t(p[1],s,f,a)}}(r,t._index,0,1)}for(var p=1,f=u.length;p=t){this.index=e;var a=i[e-1],o=a&&a.index===r.index?a.time:0,l=a?a.offset:0;return{index:r.index,time:o+(r.time-o)*(t-l)/(r.offset-l)}}}return{index:i[n-1].index,time:1}},drawPart:function(t,e,i){for(var n=this._get(e),s=this._get(i),r=n.index,a=s.index;r<=a;r++){var o=N.getPart(this.curves[r],r===n.index?n.time:0,r===s.index?s.time:1);r===n.index&&t.moveTo(o[0],o[1]),t.bezierCurveTo.apply(t,o.slice(2))}}},r.each(N._evaluateMethods,function(t){this[t+"At"]=function(e){var i=this._get(e);return N[t](this.curves[i.index],i.time)}},{})),V=r.extend({initialize:function(t){for(var e,i=this.points=[],n=t._segments,s=t._closed,r=0,a=n.length;r0&&(n=[new O(e[0])],i>1&&(this.fitCubic(n,t,0,i-1,e[1].subtract(e[0]),e[i-2].subtract(e[i-1])),this.closed&&(n.shift(),n.pop()))),n},fitCubic:function(t,e,i,n,s,r){var a=this.points;if(n-i==1){var o=a[i],l=a[n],h=o.getDistance(l)/3;this.addCurve(t,[o,o.add(s.normalize(h)),l.add(r.normalize(h)),l]);return}for(var u,c=this.chordLengthParameterize(i,n),d=Math.max(e,e*e),p=!0,f=0;f<=4;f++){var g=this.generateBezier(i,n,c,s,r),m=this.findMaxError(i,n,g,c);if(m.error=d)break;p=this.reparameterize(i,n,c,g),d=m.error}var _=a[u-1].subtract(a[u+1]);this.fitCubic(t,e,i,u,s,_),this.fitCubic(t,e,u,n,_.negate(),r)},addCurve:function(t,e){t[t.length-1].setHandleOut(e[1].subtract(e[0])),t.push(new O(e[3],e[2].subtract(e[3])))},generateBezier:function(t,e,i,n,s){for(var r=Math.abs,a=this.points,o=a[t],l=a[e],h=[[0,0],[0,0]],u=[0,0],c=0,d=e-t+1;c1e-12){var I=h[0][0]*u[1]-h[1][0]*u[0];k=(u[0]*h[1][1]-u[1]*h[0][1])/C,S=I/C}else{var T=h[0][0]+h[0][1],E=h[1][0]+h[1][1];k=S=r(T)>1e-12?u[0]/T:r(E)>1e-12?u[1]/E:0}var A,P,O=l.getDistance(o),M=1e-12*O;if(kO*O&&(k=S=O/3,A=P=null)}return[o,o.add(A||n.normalize(k)),l.add(P||s.normalize(S)),l]},reparameterize:function(t,e,i,n){for(var s=t;s<=e;s++)i[s-t]=this.findRoot(n,this.points[s],i[s-t]);for(var s=1,r=i.length;s=r&&(r=l,s=a)}return{error:r,index:s}}}),F=k.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&&r.isPlainObject(t)&&t.x===i&&t.y===i;this._initialize(e&&t,!e&&f.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/mg),this._changed(521)},isEmpty:function(){return!this._content},getCharacterStyle:"#getStyle",setCharacterStyle:"#setStyle",getParagraphStyle:"#getStyle",setParagraphStyle:"#setStyle"}),j=F.extend({_class:"PointText",initialize:function(){F.apply(this,arguments)},getPoint:function(){var t=this._matrix.getTranslation();return new g(t.x,t.y,this,"setPoint")},setPoint:function(){var t=f.read(arguments);this.translate(t.subtract(this._matrix.getTranslation()))},_draw:function(t,e,i){if(this._content){this._setStyles(t,e,i);var n=this._lines,s=this._style,r=s.hasFill(),a=s.hasStroke(),o=s.getLeading(),l=t.shadowColor;t.font=s.getFontStyle(),t.textAlign=s.getJustification();for(var h=0,u=n.length;h1&&(l-=1),a[o]=6*l<1?r+(s-r)*6*l:2*l<1?s:3*l<2?r+(s-r)*(2/3-l)*6:r}return a},"rgb-gray":function(t,e,i){return[.2989*t+.587*e+.114*i]},"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 r.each(e,function(t,n){i[n]=[],r.each(t,function(t,s){var a=r.capitalize(t),o=/^(hue|saturation)$/.test(t),l=i[n][s]="gradient"===n?"gradient"===t?function(t){var e=this._components[0];return t=q.read(Array.isArray(t)?t:arguments,0,{readNull:!0}),e!==t&&(e&&e._removeOwner(this),t&&t._addOwner(this)),t}:function(){return f.read(arguments,0,{readNull:"highlight"===t,clone:!0})}:function(t){return null==t||isNaN(t)?0:+t};this["get"+a]=function(){return this._type===n||o&&/^hs[bl]$/.test(this._type)?this._components[s]:this._convert(n)[s]},this["set"+a]=function(t){this._type===n||o&&/^hs[bl]$/.test(this._type)||(this._components=this._convert(n),this._properties=e[n],this._type=n),this._components[s]=l.call(this,t),this._changed()}},this)},{_class:"Color",_readIndex:!0,initialize:function a(o){var l,h,u,c,d=arguments,p=this.__read,f=0;Array.isArray(o)&&(o=(d=o)[0]);var g=null!=o&&typeof o;if("string"===g&&o in e&&(l=o,Array.isArray(o=d[1])?(h=o,u=d[2]):(p&&(f=1),d=r.slice(d,1),g=typeof o)),!h){if(c="number"===g?d:"object"===g&&null!=o.length?o:null){l||(l=c.length>=3?"rgb":"gray");var m=e[l].length;u=c[m],p&&(f+=c===arguments?m+(null!=u?1:0):1),c.length>m&&(c=r.slice(c,0,m))}else if("string"===g){var _=function(e){var i,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),a="rgb";if(r){var o=r[4]?4:3;i=Array(o);for(var l=0;l1?1:t)*255)}return e=[n(e[0]),n(e[1]),n(e[2])],i<1&&e.push(i<0?0:i),t?"#"+(0x1000000+(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 i,n=this._components,s=n[0],r=s._stops,a=n[1],o=n[2],l=n[3],h=e&&e.inverted();if(h&&(a=h._transformPoint(a),o=h._transformPoint(o),l&&(l=h._transformPoint(l))),s._radial){var u=o.getDistance(a);if(l){var c=l.subtract(a);c.getLength()>u&&(l=a.add(c.normalize(u-.1)))}var d=l||a;i=t.createRadialGradient(d.x,d.y,0,a.x,a.y,u)}else i=t.createLinearGradient(a.x,a.y,o.x,o.y);for(var p=0,f=r.length;p0&&!(i instanceof B);if(r)for(var a=0,o=s.length;a0&&!(a instanceof B);if(h&&!t)for(var u=0,p=o.length;u0},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),i=this.getFontSize();return/pt|em|%|px/.test(i)&&(i=this.getView().getPixelSize(i)),null!=e?e:1.2*i}}),G=new function(){function t(t,e,i,n){for(var s=["","webkit","moz","Moz","ms","o"],r=e[0].toUpperCase()+e.substring(1),a=0;a<6;a++){var o=s[a],l=o?o+r:e;if(l in t){if(!i)return t[l];t[l]=n;break}}}return{getStyles:function(t){var e=t&&9!==t.nodeType?t.ownerDocument:t,i=e&&e.defaultView;return i&&i.getComputedStyle(t,"")},getBounds:function(t,e){var i,n=t.ownerDocument,s=n.body,r=n.documentElement;try{i=t.getBoundingClientRect()}catch(t){i={left:0,top:0,width:0,height:0}}var a=i.left-(r.clientLeft||s.clientLeft||0),o=i.top-(r.clientTop||s.clientTop||0);if(!e){var l=n.defaultView;a+=l.pageXOffset||r.scrollLeft||s.scrollLeft,o+=l.pageYOffset||r.scrollTop||s.scrollTop}return new v(a,o,i.width,i.height)},getViewportBounds:function(t){var e=t.ownerDocument,i=e.defaultView,n=e.documentElement;return new v(0,0,i.innerWidth||n.clientWidth,i.innerHeight||n.clientHeight)},getOffset:function(t,e){return G.getBounds(t,e).getPoint()},getSize:function(t){return G.getBounds(t,!0).getSize()},isInvisible:function(t){return G.getSize(t).equals(new m(0,0))},isInView:function(t){return!G.isInvisible(t)&&G.getViewportBounds(t).intersects(G.getBounds(t,!0))},isInserted:function(t){return s.body.contains(t)},getPrefixed:function(e,i){return e&&t(e,i)},setPrefixed:function(e,i,n){if("object"==typeof i)for(var s in i)t(e,s,!0,i[s]);else t(e,i,!0,n)}}},W={add:function(t,e){if(t)for(var i in e)for(var n=e[i],r=i.split(/[\s,]+/g),a=0,o=r.length;a1?r.hyphenate(e):e.toLowerCase())}function d(e,i,n,s){var a,o=$._focused;if(l[i]=e,e?h[i]=n:delete h[i],i.length>1&&(a=r.camelize(i))in u){u[a]=e;var c=tl&&tl.agent;if("meta"===a&&c&&c.mac){if(e)t={};else{for(var p in t)p in h&&d(!1,p,t[p],s);t=null}}}else e&&t&&(t[i]=n);o&&o._handleKeyEvent(e?"keydown":"keyup",s,i,n)}return W.add(s,{keydown:function(t){var i=c(t),n=tl&&tl.agent;i.length>1||n&&n.chrome&&(t.altKey||n.mac&&t.metaKey||!n.mac&&t.ctrlKey)?d(!0,i,o[i]||(i.length>1?"":i),t):e=i},keypress:function(t){if(e){var i=c(t),n=t.charCode,s=n>=32?String.fromCharCode(n):i.length>1?"":i;i!==e&&(i=s.toLowerCase()),d(!0,i,s,t),e=null}},keyup:function(t){var e=c(t);e in h&&d(!1,e,h[e],t)}}),W.add(n,{blur:function(t){for(var e in h)d(!1,e,h[e],t)}}),{modifiers:u,isDown:function(t){return!!l[t]}}},Q=J.extend({_class:"MouseEvent",initialize:function(t,e,i,n,s){this.type=t,this.event=e,this.point=i,this.target=n,this.delta=s},toString:function(){return"{ type: '"+this.type+"', point: "+this.point+", target: "+this.target+(this.delta?", delta: "+this.delta:"")+", modifiers: "+this.getModifiers()+" }"}}),tt=J.extend({_class:"ToolEvent",_item:null,initialize:function(t,e,i){this.tool=t,this.type=e,this.event=i},_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,i=e._parent;/^(Group|CompoundPath)$/.test(i._class);)e=i,i=i._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()+" }"}}),te=l.extend({_class:"Tool",_list:"tools",_reference:"tool",_events:["onMouseDown","onMouseUp","onMouseDrag","onMouseMove","onActivate","onDeactivate","onEditOptions","onKeyDown","onKeyUp"],initialize:function(t){l.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=0&&r.equals(a))return!1;if(a&&(null!=t||null!=e)){var l=r.subtract(a),h=l.getLength();if(h<(t||0))return!1;e&&(r=a.add(l.normalize(Math.min(h,e))))}o._moveCount++}return o._point=r,o._lastPoint=a||r,n.down&&(o._moveCount=-1,o._downPoint=r,o._downCount++),!0}function h(){r&&(a=o.emit(t,new tt(o,t,e))||a)}if(n.down)l(),h();else if(n.up)l(null,this._maxDistance),h();else if(r)for(;l(this._minDistance,this._maxDistance);)h();return a}}),ti=r.extend(a,{_class:"Tween",statics:{easings:new r({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:-1+2*(2-t)*t},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,i,n,s,r,a){this.object=e;var o=typeof r,l="function"===o;this.type=l?o:"string"===o?r:"linear",this.easing=l?r:t.easings[this.type],this.duration=s,this.running=!1,this._then=null,this._startTime=null;var h=i||n;this._keys=h?Object.keys(h):[],this._parsedKeys=this._parseKeys(this._keys),this._from=h&&this._getState(i),this._to=h&&this._getState(n),!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),i=this._keys,n=function(i){return"function"==typeof i?i(e,t):i},s=0,a=i&&i.length;s255){var l=255-n,f=a-n;h=n+(h-n)*l/f,u=n+(u-n)*l/f,c=n+(c-n)*l/f}}function _(t,e,i){return p(t,e,i)-d(t,e,i)}function v(t,e,i,n){var s,r=[t,e,i],a=p(t,e,i),o=d(t,e,i);s=0===d(o=o===t?0:o===e?1:2,a=a===t?0:a===e?1:2)?1===p(o,a)?2:1:0,r[a]>r[o]?(r[s]=(r[s]-r[o])*n/(r[a]-r[o]),r[a]=n):r[s]=r[a]=0,r[o]=0,h=r[0],u=r[1],c=r[2]}var y={multiply:function(){h=s*t/255,u=a*e/255,c=o*i/255},screen:function(){h=s+t-s*t/255,u=a+e-a*e/255,c=o+i-o*i/255},overlay:function(){h=s<128?2*s*t/255:255-2*(255-s)*(255-t)/255,u=a<128?2*a*e/255:255-2*(255-a)*(255-e)/255,c=o<128?2*o*i/255:255-2*(255-o)*(255-i)/255},"soft-light":function(){var n=t*s/255;h=n+s*(255-(255-s)*(255-t)/255-n)/255,u=(n=e*a/255)+a*(255-(255-a)*(255-e)/255-n)/255,c=(n=i*o/255)+o*(255-(255-o)*(255-i)/255-n)/255},"hard-light":function(){h=t<128?2*t*s/255:255-2*(255-t)*(255-s)/255,u=e<128?2*e*a/255:255-2*(255-e)*(255-a)/255,c=i<128?2*i*o/255:255-2*(255-i)*(255-o)/255},"color-dodge":function(){h=0===s?0:255===t?255:d(255,255*s/(255-t)),u=0===a?0:255===e?255:d(255,255*a/(255-e)),c=0===o?0:255===i?255:d(255,255*o/(255-i))},"color-burn":function(){h=255===s?255:0===t?0:p(0,255-(255-s)*255/t),u=255===a?255:0===e?0:p(0,255-(255-a)*255/e),c=255===o?255:0===i?0:p(0,255-(255-o)*255/i)},darken:function(){h=st?s:t,u=a>e?a:e,c=o>i?o:i},difference:function(){(h=s-t)<0&&(h=-h),(u=a-e)<0&&(u=-u),(c=o-i)<0&&(c=-c)},exclusion:function(){h=s+t*(255-s-s)/255,u=a+e*(255-a-a)/255,c=o+i*(255-o-o)/255},hue:function(){v(t,e,i,_(s,a,o)),m(h,u,c,g(s,a,o))},saturation:function(){v(s,a,o,_(t,e,i)),m(h,u,c,g(s,a,o))},luminosity:function(){m(s,a,o,g(t,e,i))},color:function(){m(t,e,i,g(s,a,o))},add:function(){h=d(s+t,255),u=d(a+e,255),c=d(o+i,255)},subtract:function(){h=p(s-t,0),u=p(a-e,0),c=p(o-i,0)},average:function(){h=(s+t)/2,u=(a+e)/2,c=(o+i)/2},negation:function(){h=255-f(255-t-s),u=255-f(255-e-a),c=255-f(255-i-o)}},b=this.nativeModes=r.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=ts.getContext(1,1,{willReadFrequently:!0});x&&(r.each(y,function(t,e){var i="darken"===e,n=!1;x.save();try{x.fillStyle=i?"#300":"#a00",x.fillRect(0,0,1,1),x.globalCompositeOperation=e,x.globalCompositeOperation===e&&(x.fillStyle=i?"#a00":"#300",x.fillRect(0,0,1,1),n=x.getImageData(0,0,1,1).data[0]!==i?170:51)}catch(t){}x.restore(),b[e]=n}),ts.release(x)),this.process=function(r,d,p,f,g){var m=d.canvas,_="normal"===r;if(_||b[r])p.save(),p.setTransform(1,0,0,1,0,0),p.globalAlpha=f,_||(p.globalCompositeOperation=r),p.drawImage(m,g.x,g.y),p.restore();else{var v=y[r];if(!v)return;for(var x=p.getImageData(g.x,g.y,m.width,m.height),w=x.data,k=d.getImageData(0,0,m.width,m.height).data,S=0,C=w.length;S=2&&!e.hasHandles()){if(h>2){o=e._closed?"polygon":"polyline";for(var c=[],d=0;d3){i.sort(function(t,e){return e.length-t.length}),e+="switch(str.length){";for(var n=0;n=170&&tV.test(String.fromCharCode(t)))},tZ=t.isIdentifierChar=function(t){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||t>=170&&tF.test(String.fromCharCode(t))))};function tH(){this.line=p,this.column=r-f}function tG(){p=1,r=f=0,d=!0,tK()}function tW(t,i){o=r,e.locations&&(h=new tH),u=t,tK(),c=i,d=t.beforeExpr}function t$(){for(var t=r,s=e.onComment&&e.locations&&new tH,a=i.charCodeAt(r+=2);r8&&t<14)++r;else if(47===t){var s=i.charCodeAt(r+1);if(42===s)!function(){var t,n=e.onComment&&e.locations&&new tH,s=r,a=i.indexOf("*/",r+=2);if(-1===a&&C(r-2,"Unterminated comment"),r=a+2,e.locations)for(tU.lastIndex=s;(t=tU.exec(i))&&t.index=5760&&tB.test(String.fromCharCode(t)))++r;else break}}function tJ(t){if(t?r=a+1:a=r,e.locations&&(l=new tH),t)return tY();if(r>=n)return tW(O);var s=i.charCodeAt(r);if(tq(s)||92===s)return t5();var o=function(t){switch(t){case 46:return(u=i.charCodeAt(r+1))>=48&&u<=57?t0(!0):(++r,tW(tp));case 40:return++r,tW(tl);case 41:return++r,tW(th);case 59:return++r,tW(tc);case 44:return++r,tW(tu);case 91:return++r,tW(ts);case 93:return++r,tW(tr);case 123:return++r,tW(ta);case 125:return++r,tW(to);case 58:return++r,tW(td);case 63:return++r,tW(tf);case 48:var s,o,l,h,u,c,g,_=i.charCodeAt(r+1);if(120===_||88===_)return r+=2,null==(h=tQ(16))&&C(a+2,"Expected hexadecimal number"),tq(i.charCodeAt(r))&&C(r,"Identifier directly after number"),tW(T,h);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t0(!1);case 34:case 39:return function(t){r++;for(var s="";;){r>=n&&C(a,"Unterminated string constant");var o=i.charCodeAt(r);if(o===t)return++r,tW(A,s);if(92===o){o=i.charCodeAt(++r);var l=/^[0-7]+/.exec(i.slice(r,r+3));for(l&&(l=l[0]);l&&parseInt(l,8)>255;)l=l.slice(0,-1);if("0"===l&&(l=null),++r,l)b&&C(r-2,"Octal literal in strict mode"),s+=String.fromCharCode(parseInt(l,8)),r+=l.length-1;else switch(o){case 110:s+="\n";break;case 114:s+="\r";break;case 120:s+=String.fromCharCode(t1(2));break;case 117:s+=String.fromCharCode(t1(4));break;case 85:s+=String.fromCharCode(t1(8));break;case 116:s+=" ";break;case 98:s+="\b";break;case 118:s+="\v";break;case 102:s+="\f";break;case 48:s+="\0";break;case 13:10===i.charCodeAt(r)&&++r;case 10:e.locations&&(f=r,++p);break;default:s+=String.fromCharCode(o)}}else(13===o||10===o||8232===o||8233===o)&&C(a,"Unterminated string constant"),s+=String.fromCharCode(o),++r}}(t);case 47:return c=i.charCodeAt(r+1),d?(++r,tY()):61===c?tX(t_,2):tX(tg,1);case 37:case 42:return 61===i.charCodeAt(r+1)?tX(t_,2):tX(tA,1);case 124:case 38:return(g=i.charCodeAt(r+1))===t?tX(124===t?tb:tx,2):61===g?tX(t_,2):tX(124===t?tw:tS,1);case 94:return 61===i.charCodeAt(r+1)?tX(t_,2):tX(tk,1);case 43:case 45:return(s=i.charCodeAt(r+1))===t?45==s&&62==i.charCodeAt(r+2)&&tj.test(i.slice(m,r))?(r+=3,t$(),tK(),tJ()):tX(tv,2):61===s?tX(t_,2):tX(tE,1);case 60:case 62:return o=i.charCodeAt(r+1),l=1,o===t?(l=62===t&&62===i.charCodeAt(r+2)?3:2,61===i.charCodeAt(r+l))?tX(t_,l+1):tX(tT,l):33==o&&60==t&&45==i.charCodeAt(r+2)&&45==i.charCodeAt(r+3)?(r+=4,t$(),tK(),tJ()):(61===o&&(l=61===i.charCodeAt(r+2)?3:2),tX(tI,l));case 61:case 33:return 61===i.charCodeAt(r+1)?tX(tC,61===i.charCodeAt(r+2)?3:2):tX(61===t?tm:ty,1);case 126:return tX(ty,1)}return!1}(s);if(!1===o){var h=String.fromCharCode(s);if("\\"===h||tV.test(h))return t5();C(r,"Unexpected character '"+h+"'")}return o}function tX(t,e){var n=i.slice(r,r+e);r+=e,tW(t,n)}function tY(){for(var t,e,s="",a=r;;){r>=n&&C(a,"Unterminated regular expression");var o=i.charAt(r);if(tj.test(o)&&C(a,"Unterminated regular expression"),t)t=!1;else{if("["===o)e=!0;else if("]"===o&&e)e=!1;else if("/"===o&&!e)break;t="\\"===o}++r}var s=i.slice(a,r);++r;var l=t2();l&&!/^[gmsiy]*$/.test(l)&&C(a,"Invalid regexp flag");try{var h=new RegExp(s,l)}catch(t){t instanceof SyntaxError&&C(a,t.message),C(t)}return tW(E,h)}function tQ(t,e){for(var n=r,s=0,a=0,o=null==e?1/0:e;a=97?h-97+10:h>=65?h-65+10:h>=48&&h<=57?h-48:1/0)>=t)break;++r,s=s*t+l}return r===n||null!=e&&r-n!==e?null:s}function t0(t){var e=r,n=!1,s=48===i.charCodeAt(r);t||null!==tQ(10)||C(e,"Invalid number"),46===i.charCodeAt(r)&&(++r,tQ(10),n=!0);var a=i.charCodeAt(r);(69===a||101===a)&&((43===(a=i.charCodeAt(++r))||45===a)&&++r,null===tQ(10)&&C(e,"Invalid number"),n=!0),tq(i.charCodeAt(r))&&C(r,"Identifier directly after number");var o,l=i.slice(e,r);return n?o=parseFloat(l):s&&1!==l.length?/[89]/.test(l)||b?C(e,"Invalid number"):o=parseInt(l,8):o=parseInt(l,10),tW(T,o)}function t1(t){var e=tQ(16,t);return null===e&&C(a,"Bad character escape sequence"),e}function t2(){x=!1;for(var t,e=!0,n=r;;){var s=i.charCodeAt(r);if(tZ(s))x&&(t+=i.charAt(r)),++r;else if(92===s){x||(t=i.slice(n,r)),x=!0,117!=i.charCodeAt(++r)&&C(r,"Expecting Unicode escape sequence \\uXXXX"),++r;var a=t1(4),o=String.fromCharCode(a);o||C(r-1,"Invalid Unicode escape"),(e?tq(a):tZ(a))||C(r-4,"Invalid Unicode escape"),t+=o}else break;e=!1}return x?t:i.slice(n,r)}function t5(){var t=t2(),e=P;return!x&&tR(t)&&(e=tn[t]),tW(e,t)}function t3(){g=a,m=o,_=h,tJ()}function t6(t){if(b=t,r=a,e.locations)for(;r=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"use strict"===t.expression.value}function ei(t){if(u===t)return t3(),!0}function en(){return!e.strictSemicolons&&(u===O||u===to||tj.test(i.slice(m,a)))}function es(){ei(tc)||en()||ea()}function er(t){u===t?t3():ea()}function ea(){C(a,"Unexpected token")}function eo(t){"Identifier"!==t.type&&"MemberExpression"!==t.type&&C(t.start,"Assigning to rvalue"),b&&"Identifier"===t.type&&tz(t.name)&&C(t.start,"Assigning to "+t.name+" in strict mode")}var el={kind:"loop"},eh={kind:"switch"};function eu(){(u===tg||u===t_&&"/="==c)&&tJ(!0);var t,n,s=u,r=t8();switch(s){case M:case z:t3();var o=s===M;ei(tc)||en()?r.label=null:u!==P?ea():(r.label=eS(),es());for(var l=0;li){var r=t7(e);r.left=e,r.operator=c;var a=u;return t3(),r.right=t(ev(),s,n),t(et(r,a===tb||a===tx?"LogicalExpression":"BinaryExpression"),i,n)}return e}(ev(),-1,t);if(ei(tf)){var i=t7(e);return i.test=e,i.consequent=em(!0),er(td),i.alternate=em(!0,t),et(i,"ConditionalExpression")}return e}(t);if(u.isAssign){var i=t7(e);return i.operator=c,i.left=e,t3(),i.right=e_(t),eo(e),et(i,"AssignmentExpression")}return e}function ev(){if(u.prefix){var t=t8(),e=u.isUpdate;return t.operator=c,t.prefix=!0,d=!0,t3(),t.argument=ev(),e?eo(t.argument):b&&"delete"===t.operator&&"Identifier"===t.argument.type&&C(t.start,"Deleting local variable in strict mode"),et(t,e?"UpdateExpression":"UnaryExpression")}for(var i=ey(eb());u.postfix&&!en();){var t=t7(i);t.operator=c,t.prefix=!1,t.argument=i,eo(i),t3(),i=et(t,"UpdateExpression")}return i}function ey(t,e){if(ei(tp)){var i=t7(t);return i.object=t,i.property=eS(!0),i.computed=!1,ey(et(i,"MemberExpression"),e)}if(ei(ts)){var i=t7(t);return i.object=t,i.property=em(),i.computed=!0,er(tr),ey(et(i,"MemberExpression"),e)}if(!(!e&&ei(tl)))return t;var i=t7(t);return i.callee=t,i.arguments=ek(th,!1),ey(et(i,"CallExpression"),e)}function eb(){switch(u){case Y:var t,n=t8();return t3(),et(n,"ThisExpression");case P:return eS();case T:case A:case E:var n=t8();return n.value=c,n.raw=i.slice(a,o),t3(),et(n,"Literal");case Q:case tt:case te:var n=t8();return n.value=u.atomValue,n.raw=u.keyword,t3(),et(n,"Literal");case tl:var s=l,r=a;t3();var d=em();return d.start=r,d.end=o,e.locations&&(d.loc.start=s,d.loc.end=h),e.ranges&&(d.range=[r,o]),er(th),d;case ts:var n=t8();return t3(),n.elements=ek(tr,!0,!0),et(n,"ArrayExpression");case ta:return function(){var t=t8(),i=!0,n=!1;for(t.properties=[],t3();!ei(to);){if(i)i=!1;else if(er(tu),e.allowTrailingCommas&&ei(to))break;var s,r={key:ex()},a=!1;if(ei(td)?(r.value=em(!0),s=r.kind="init"):e.ecmaVersion>=5&&"Identifier"===r.key.type&&("get"===r.key.name||"set"===r.key.name)?(a=n=!0,s=r.kind=r.key.name,r.key=ex(),u!==tl&&ea(),r.value=ew(t8(),!1)):ea(),"Identifier"===r.key.type&&(b||n))for(var o=0;o=0)for(var o=0;o=t)break;t+=n[1]}return t}function o(e){return t.substring(a(e.range[0]),a(e.range[1]))}function l(e,i){for(var n=a(e.range[0]),s=a(e.range[1]),o=0,l=r.length-1;l>=0;l--)if(n>r[l][0]){o=l+1;break}r.splice(o,0,[n,i.length-s+n]),t=t.substring(0,n)+i+t.substring(s)}var u,p=(i=i||{}).url||"",f=i.sourceMaps,g=i.paperFeatures||{},m=i.source||t,_=i.offset||0,v=tl.agent,y=v.versionNumber,b=!1,x=/\r\n|\n|\r/mg;if(f&&(v.chrome&&y>=30||v.webkit&&y>=537.76||v.firefox&&y>=23||v.node)){if(v.node)_-=2;else if(n&&p&&!n.location.href.indexOf(p)){var w=s.getElementsByTagName("html")[0].innerHTML;_=w.substr(0,w.indexOf(t)+1).match(x).length+1}var k=["AA"+function(t){var e="";for(t=(Math.abs(t)<<1)+(t<0?1:0);t||!e;){var i=31&t;(t>>=5)&&(i|=32),e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[i]}return e}((b=_>0&&!(v.chrome&&y>=36||v.safari&&y>=600||v.firefox&&y>=40||v.node))?0:_)+"A"];k.length=(t.match(x)||[]).length+1+(b?_:0),u={version:3,file:p,names:[],mappings:k.join(";AACA"),sourceRoot:"",sources:[p],sourcesContent:[m]}}return(!1!==g.operatorOverloading||!1!==g.moduleExports)&&function e(i,n,s){if(i){for(var r in i)if("range"!==r&&"loc"!==r){var h=i[r];if(Array.isArray(h))for(var u=0,p=h.length;u]/.test(i.operator)||"MemberExpression"===g&&i.computed)){if("UpdateExpression"===e.type){var n=o(e.argument),m="__$__("+n+', "'+e.operator[0]+'", 1)',_=n+" = "+m;e.prefix?_="("+_+")":("AssignmentExpression"===g||"VariableDeclarator"===g||"BinaryExpression"===g)&&(o(i.left||i.id)===n&&(_=m),_=n+"; "+_),l(e,_)}else if(/^.=$/.test(e.operator)&&"Literal"!==e.left.type){var h=o(e.left),u=o(e.right),m=h+" = __$__("+h+', "'+e.operator[0]+'", '+u+")";l(e,/^\(.*\)$/.test(o(e))?"("+m+")":m)}}}}(i,n),!1!==s.moduleExports&&function(t){switch(t.type){case"ExportDefaultDeclaration":l({range:[t.start,t.declaration.start]},"module.exports = ");break;case"ExportNamedDeclaration":var e=t.declaration,i=t.specifiers;if(e){var n=e.declarations;n&&(n.forEach(function(t){l(t,"module.exports."+o(t))}),l({range:[t.start,e.start+e.kind.length]},""))}else if(i){var s=i.map(function(t){var e=o(t);return"module.exports."+e+" = "+e+"; "}).join("");s&&l(t,s)}}}(i)}}(h(t,{ranges:!0,preserveParens:!0,sourceType:"module"}),null,g),u&&(b&&(t=Array(_+1).join("\n")+t),/^(inline|both)$/.test(f)&&(t+="\n//# sourceMappingURL=data:application/json;base64,"+e.btoa(unescape(encodeURIComponent(JSON.stringify(u))))),t+="\n//# sourceURL="+(p||"paperscript")),{url:p,source:m,code:t,map:u}}function y(t,e,i){tl=e;var n,a=e.getView(),o=/\btool\.\w+|\s+on(?:Key|Mouse)(?:Up|Down|Move|Drag)\b/.test(t)&&!/\bnew\s+Tool\b/.test(t)?new te:null,l=o?o._events:[],h=["onFrame","onResize"].concat(l),u=[],c=[];function d(e,i){for(var n in e)(i||!/^_/.test(n))&&RegExp("([\\b\\s\\W]|^)"+n.replace(/\$/g,"\\$")+"\\b").test(t)&&(u.push(n),c.push(e[n]))}t=("object"==typeof t?t:v(t,i)).code,d({__$__:g,$__:_,paper:e,tool:o},!0),d(e),t="var module = { exports: {} }; "+t;var p=r.each(h,function(e){RegExp("\\s+"+e+"\\b").test(t)&&(u.push(e),this.push("module.exports."+e+" = "+e+";"))},[]).join("\n");p&&(t+="\n"+p),t+="\nreturn module.exports;";var m=tl.agent;if(s&&(m.chrome||m.firefox&&m.versionNumber<40)){var y=s.createElement("script"),b=s.head||s.getElementsByTagName("head")[0];m.firefox&&(t="\n"+t),y.appendChild(s.createTextNode("document.__paperscript__ = function("+u+") {"+t+"\n}")),b.appendChild(y),n=s.__paperscript__,delete s.__paperscript__,b.removeChild(y)}else n=Function(u,t);var p=n&&n.apply(e,c),x=p||{};return r.each(l,function(t){var e=x[t];e&&(o[t]=e)}),a&&(x.onResize&&a.setOnResize(x.onResize),a.emit("resize",{size:a.size,delta:new f}),x.onFrame&&a.setOnFrame(x.onFrame),a.requestUpdate()),p}function b(t){if(/^text\/(?:x-|)paperscript$/.test(t.type)&&"true"!==o.getAttribute(t,"ignore")){var e=o.getAttribute(t,"canvas"),i=s.getElementById(e),n=t.src||t.getAttribute("data-src"),r=o.hasAttribute(t,"async"),a="data-paper-scope";if(!i)throw Error('Unable to find canvas with id "'+e+'"');var l=o.get(i.getAttribute(a))||new o().setup(i);return i.setAttribute(a,l._id),n?tn.request({url:n,async:r,mimeType:"text/plain",onLoad:function(t){y(t,l,n)}}):y(t.innerHTML,l,t.baseURI),t.setAttribute("data-paper-ignore","true"),l}}function x(){r.each(s&&s.getElementsByTagName("script"),b)}return f.inject(p),m.inject(p),U.inject(p),n&&("complete"===s.readyState?setTimeout(x):W.add(n,{load:x})),{compile:v,execute:y,load:function(t){return t?b(t):x()},parse:h,calculateBinary:g,calculateUnary:_}}).call(this);var tl=new(o.inject(r.exports,{Base:r,Numerical:d,Key:Y,DomEvent:W,DomElement:G,document:s,window:n,Symbol:A,PlacedSymbol:E}));return tl.agent.node&&u("1S6xU")(tl),"function"==typeof define&&define.amd?define("paper",tl):t&&(t.exports=tl),tl}).call(this,"object"==typeof self?self:null)}),c("1S6xU",function(t,e){}),c("9SFwl",function(t,e){r(t.exports,"isIdentifierStart",function(){return p}),r(t.exports,"isIdentifierChar",function(){return f}),r(t.exports,"TokenType",function(){return g}),r(t.exports,"keywordTypes",function(){return y}),r(t.exports,"tokTypes",function(){return x}),r(t.exports,"lineBreak",function(){return w}),r(t.exports,"lineBreakG",function(){return k}),r(t.exports,"isNewLine",function(){return S}),r(t.exports,"nonASCIIwhitespace",function(){return I}),r(t.exports,"Position",function(){return B}),r(t.exports,"SourceLocation",function(){return D}),r(t.exports,"getLineInfo",function(){return V}),r(t.exports,"defaultOptions",function(){return F}),r(t.exports,"Parser",function(){return q}),r(t.exports,"TokContext",function(){return ti}),r(t.exports,"tokContexts",function(){return tn}),r(t.exports,"Node",function(){return tu}),r(t.exports,"Token",function(){return tD}),r(t.exports,"version",function(){return tU}),r(t.exports,"parse",function(){return tq}),r(t.exports,"parseExpressionAt",function(){return tZ}),r(t.exports,"tokenizer",function(){return tH});var i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,71,5,2,1,3,3,2,0,2,1,13,9,120,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],n=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,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,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",a={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"},o="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",l={5:o,"5module":o+" export import",6:o+" const class extends export import super"},h=/^in(stanceof)?$/,u=RegExp("["+s+"]"),c=RegExp("["+s+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function d(t,e){for(var i=65536,n=0;nt);n+=2)if((i+=e[n+1])>=t)return!0;return!1}function p(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&&d(t,n)))}function f(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&c.test(String.fromCharCode(t)):!1!==e&&(d(t,n)||d(t,i)))))}var g=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 g(t,{beforeExpr:!0,binop:e})}var _={beforeExpr:!0},v={startsExpr:!0},y={};function b(t,e){return void 0===e&&(e={}),e.keyword=t,y[t]=new g(t,e)}var x={num:new g("num",v),regexp:new g("regexp",v),string:new g("string",v),name:new g("name",v),privateId:new g("privateId",v),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",_),semi:new g(";",_),colon:new g(":",_),dot:new g("."),question:new g("?",_),questionDot:new g("?."),arrow:new g("=>",_),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",_),backQuote:new g("`",v),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{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 g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:m("??",1),_break:b("break"),_case:b("case",_),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",_),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",_),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",v),_if:b("if"),_return:b("return",_),_switch:b("switch"),_throw:b("throw",_),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",v),_super:b("super",v),_class:b("class",v),_extends:b("extends",_),_export:b("export"),_import:b("import",v),_null:b("null",v),_true:b("true",v),_false:b("false",v),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,k=RegExp(w.source,"g");function S(t){return 10===t||13===t||8232===t||8233===t}function C(t,e,i){void 0===i&&(i=t.length);for(var n=e;n>10)+55296,(1023&t)+56320)}var R=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,B=function(t,e){this.line=t,this.column=e};B.prototype.offset=function(t){return new B(this.line,this.column+t)};var D=function(t,e,i){this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)};function V(t,e){for(var i=1,n=0;;){var s=C(t,n,e);if(s<0)return new B(i,e-n);++i,n=s}}var F={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},j=!1;function U(t,e){return 2|(t?4:0)|(e?8:0)}var q=function(t,e,i){this.options=t=function(t){var e,i={};for(var n in F)i[n]=t&&O(t,n)?t[n]:F[n];if("latest"===i.ecmaVersion?i.ecmaVersion=1e8:null==i.ecmaVersion?(!j&&"object"==typeof console&&console.warn&&(j=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),i.ecmaVersion=11):i.ecmaVersion>=2015&&(i.ecmaVersion-=2009),null==i.allowReserved&&(i.allowReserved=i.ecmaVersion<5),t&&null!=t.allowHashBang||(i.allowHashBang=i.ecmaVersion>=14),M(i.onToken)){var s=i.onToken;i.onToken=function(t){return s.push(t)}}return M(i.onComment)&&(i.onComment=(e=i.onComment,function(t,n,s,r,a,o){var l={type:t?"Block":"Line",value:n,start:s,end:r};i.locations&&(l.loc=new D(this,a,o)),i.ranges&&(l.range=[s,r]),e.push(l)})),i}(t),this.sourceFile=t.sourceFile,this.keywords=L(l[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var n="";!0!==t.allowReserved&&(n=a[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(n+=" await")),this.reservedWords=L(n);var s=(n?n+" ":"")+a.strict;this.reservedWordsStrict=L(s),this.reservedWordsStrictBind=L(s+" "+a.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=x.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.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Z={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};q.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},Z.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Z.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Z.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Z.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t];if(e.inClassFieldInit||256&e.flags)return!1;if(2&e.flags)return(4&e.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Z.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(64&e)>0||i||this.options.allowSuperOutsideMethod},Z.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Z.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Z.allowNewDotTarget.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(258&e)>0||i},Z.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},q.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,n=0;n=,?^&]/.test(s)||"!"===s&&"="===this.input.charAt(n+1))}t+=e[0].length,T.lastIndex=t,t+=T.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===x.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===x.eof||this.type===x.braceR||w.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(x.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")};var W=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};H.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}},H.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,n=t.doubleProto;if(!e)return i>=0||n>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},H.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&n<56320)return!0;if(p(n,!0)){for(var s=i+1;f(n=this.input.charCodeAt(s),!0);)++s;if(92===n||n>55295&&n<56320)return!0;var r=this.input.slice(i,s);if(!h.test(r))return!0}return!1},$.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;T.lastIndex=this.pos;var t,e=T.exec(this.input),i=this.pos+e[0].length;return!w.test(this.input.slice(this.pos,i))&&"function"===this.input.slice(i,i+8)&&(i+8===this.input.length||!(f(t=this.input.charCodeAt(i+8))||t>55295&&t<56320))},$.parseStatement=function(t,e,i){var n,s=this.type,r=this.startNode();switch(this.isLet(t)&&(s=x._var,n="let"),s){case x._break:case x._continue:return this.parseBreakContinueStatement(r,s.keyword);case x._debugger:return this.parseDebuggerStatement(r);case x._do:return this.parseDoStatement(r);case x._for:return this.parseForStatement(r);case x._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!t);case x._class:return t&&this.unexpected(),this.parseClass(r,!0);case x._if:return this.parseIfStatement(r);case x._return:return this.parseReturnStatement(r);case x._switch:return this.parseSwitchStatement(r);case x._throw:return this.parseThrowStatement(r);case x._try:return this.parseTryStatement(r);case x._const:case x._var:return n=n||this.value,t&&"var"!==n&&this.unexpected(),this.parseVarStatement(r,n);case x._while:return this.parseWhileStatement(r);case x._with:return this.parseWithStatement(r);case x.braceL:return this.parseBlock(!0,r);case x.semi:return this.parseEmptyStatement(r);case x._export:case x._import:if(this.options.ecmaVersion>10&&s===x._import){T.lastIndex=this.pos;var a=T.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(r,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'")),s===x._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!t);var h=this.value,u=this.parseExpression();if(s===x.name&&"Identifier"===u.type&&this.eat(x.colon))return this.parseLabeledStatement(r,h,u,t);return this.parseExpressionStatement(r,u)}},$.parseBreakContinueStatement=function(t,e){var i="break"===e;this.next(),this.eat(x.semi)||this.insertSemicolon()?t.label=null:this.type!==x.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var n=0;n=6?this.eat(x.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},$.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K),this.enterScope(0),this.expect(x.parenL),this.type===x.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===x._var||this.type===x._const||i){var n=this.startNode(),s=i?"let":this.value;return(this.next(),this.parseVar(n,!0,s),this.finishNode(n,"VariableDeclaration"),(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length)?(this.options.ecmaVersion>=9&&(this.type===x._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,n)):(e>-1&&this.unexpected(e),this.parseFor(t,n))}var r=this.isContextual("let"),a=!1,o=this.containsEsc,l=new W,h=this.start,u=e>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===x._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===x._in&&this.unexpected(e),t.await=!0):a&&this.options.ecmaVersion>=8&&(u.start!==h||o||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(t.await=!1):this.unexpected()),r&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,l),this.checkLValPattern(u),this.parseForIn(t,u)):(this.checkExpressionErrors(l,!0),e>-1&&this.unexpected(e),this.parseFor(t,u))},$.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,Y|(i?0:Q),!1,e)},$.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(x._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},$.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(x.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},$.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(x.braceL),this.labels.push(J),this.enterScope(0);for(var e,i=!1;this.type!==x.braceR;)if(this.type===x._case||this.type===x._default){var n=this.type===x._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),n?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(x.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")},$.parseThrowStatement=function(t){return this.next(),w.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 X=[];$.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(x.parenR),t},$.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===x._catch){var e=this.startNode();this.next(),this.eat(x.parenL)?e.param=this.parseCatchClauseParam():(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(x._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},$.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")},$.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(K),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},$.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")},$.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},$.parseLabeledStatement=function(t,e,i,n){for(var s=0,r=this.labels;s=0;o--){var l=this.labels[o];if(l.statementStart===t.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},$.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},$.parseBlock=function(t,e,i){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(x.braceL),t&&this.enterScope(0);this.type!==x.braceR;){var n=this.parseStatement(null);e.body.push(n)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},$.parseFor=function(t,e){return t.init=e,this.expect(x.semi),t.test=this.type===x.semi?null:this.parseExpression(),this.expect(x.semi),t.update=this.type===x.parenR?null:this.parseExpression(),this.expect(x.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},$.parseForIn=function(t,e){var i=this.type===x._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(x.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},$.parseVar=function(t,e,i,n){for(t.declarations=[],t.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(x.eq)?s.init=this.parseMaybeAssign(e):n||"const"!==i||this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n||"Identifier"===s.id.type||e&&(this.type===x._in||this.isContextual("of"))?s.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(x.comma))break}return t},$.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var Y=1,Q=2;function tt(t,e){var i=t.computed,n=t.key;return!i&&("Identifier"===n.type&&n.name===e||"Literal"===n.type&&n.value===e)}$.parseFunction=function(t,e,i,n,s){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===x.star&&e&Q&&this.unexpected(),t.generator=this.eat(x.star)),this.options.ecmaVersion>=8&&(t.async=!!n),e&Y&&(t.id=4&e&&this.type!==x.name?null:this.parseIdent(),t.id&&!(e&Q)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(U(t.async,t.generator)),e&Y||(t.id=this.type===x.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,s),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&Y?"FunctionDeclaration":"FunctionExpression")},$.parseFunctionParams=function(t){this.expect(x.parenL),t.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},$.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var n=this.enterClassBody(),s=this.startNode(),r=!1;for(s.body=[],this.expect(x.braceL);this.type!==x.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(s.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(r&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),r=!0):a.key&&"PrivateIdentifier"===a.key.type&&function(t,e){var i=e.key.name,n=t[i],s="true";return("MethodDefinition"===e.type&&("get"===e.kind||"set"===e.kind)&&(s=(e.static?"s":"i")+e.kind),"iget"===n&&"iset"===s||"iset"===n&&"iget"===s||"sget"===n&&"sset"===s||"sset"===n&&"sget"===s)?(t[i]="true",!1):!!n||(t[i]=s,!1)}(n,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},$.parseClassElement=function(t){if(this.eat(x.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),n="",s=!1,r=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(x.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===x.star?o=!0:n="static"}if(i.static=o,!n&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===x.star)&&!this.canInsertSemicolon()?r=!0:n="async"),!n&&(e>=9||!r)&&this.eat(x.star)&&(s=!0),!n&&!r&&!s){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:n=l)}if(n?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=n,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===x.parenL||"method"!==a||s||r){var h=!i.static&&tt(i,"constructor");h&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=h?"constructor":a,this.parseClassMethod(i,s,r,h&&t)}else this.parseClassField(i);return i},$.isClassElementNameStart=function(){return this.type===x.name||this.type===x.privateId||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword},$.parseClassElementName=function(t){this.type===x.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},$.parseClassMethod=function(t,e,i,n){var s=t.key;"constructor"===t.kind?(e&&this.raise(s.start,"Constructor can't be a generator"),i&&this.raise(s.start,"Constructor can't be an async method")):t.static&&tt(t,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var r=t.value=this.parseMethod(e,i,n);return"get"===t.kind&&0!==r.params.length&&this.raiseRecoverable(r.start,"getter should have no params"),"set"===t.kind&&1!==r.params.length&&this.raiseRecoverable(r.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===r.params[0].type&&this.raiseRecoverable(r.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},$.parseClassField=function(t){if(tt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&tt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(x.eq)){var e=this.currentThisScope(),i=e.inClassFieldInit;e.inClassFieldInit=!0,t.value=this.parseMaybeAssign(),e.inClassFieldInit=i}else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")},$.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==x.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},$.parseClassId=function(t,e){this.type===x.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},$.parseClassSuper=function(t){t.superClass=this.eat(x._extends)?this.parseExprSubscripts(null,!1):null},$.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},$.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,s=0===n?null:this.privateNameStack[n-1],r=0;r=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==x.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},$.parseExport=function(t,e){if(this.next(),this.eat(x.star))return this.parseExportAllDeclaration(t,e);if(this.eat(x._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==x.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var i=0,n=t.specifiers;i=13&&this.type===x.string){var t=this.parseLiteral(this.value);return R.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},$.adaptDirectivePrologue=function(t){for(var e=0;e=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var te=q.prototype;te.toAssignable=function(t,e,i){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"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var n=0,s=t.properties;n=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(x._function))return this.overrideContext(tn.f_expr),this.parseFunction(this.startNodeAt(r,a),0,!1,!0,e);if(s&&!this.canInsertSemicolon()){if(this.eat(x.arrow))return this.parseArrowExpression(this.startNodeAt(r,a),[l],!1,e);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===x.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(x.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,a),[l],!0,e)}return l;case x.regexp:var h=this.value;return(n=this.parseLiteral(h.value)).regex={pattern:h.pattern,flags:h.flags},n;case x.num:case x.string:return this.parseLiteral(this.value);case x._null:case x._true:case x._false:return(n=this.startNode()).value=this.type===x._null?null:this.type===x._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case x.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(s,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(t.parenthesizedAssign=u),t.parenthesizedBind<0&&(t.parenthesizedBind=u)),c;case x.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(x.bracketR,!0,!0,t),this.finishNode(n,"ArrayExpression");case x.braceL:return this.overrideContext(tn.b_expr),this.parseObj(!1,t);case x._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case x._class:return this.parseClass(this.startNode(),!1);case x._new:return this.parseNew();case x.backQuote:return this.parseTemplate();case x._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(i);return this.unexpected();default:return this.parseExprAtomDefault()}},tr.parseExprAtomDefault=function(){this.unexpected()},tr.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===x.parenL&&!t)return this.parseDynamicImport(e);if(this.type===x.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);return i.name="import",e.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(e)}this.unexpected()},tr.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(x.parenR)){var e=this.start;this.eat(x.comma)&&this.eat(x.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},tr.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},tr.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).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},tr.parseParenExpression=function(){this.expect(x.parenL);var t=this.parseExpression();return this.expect(x.parenR),t},tr.shouldParseArrow=function(t){return!this.canInsertSemicolon()},tr.parseParenAndDistinguishExpression=function(t,e){var i,n=this.start,s=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,h=[],u=!0,c=!1,d=new W,p=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==x.parenR;){if(u?u=!1:this.expect(x.comma),r&&this.afterTrailingComma(x.parenR,!0)){c=!0;break}if(this.type===x.ellipsis){a=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}h.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var g=this.lastTokEnd,m=this.lastTokEndLoc;if(this.expect(x.parenR),t&&this.shouldParseArrow(h)&&this.eat(x.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=f,this.parseParenArrowList(n,s,h,e);(!h.length||c)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=f||this.awaitPos,h.length>1?((i=this.startNodeAt(o,l)).expressions=h,this.finishNodeAt(i,"SequenceExpression",g,m)):i=h[0]}else i=this.parseParenExpression();if(!this.options.preserveParens)return i;var _=this.startNodeAt(n,s);return _.expression=i,this.finishNode(_,"ParenthesizedExpression")},tr.parseParenItem=function(t){return t},tr.parseParenArrowList=function(t,e,i,n){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,n)};var ta=[];tr.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===x.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var i=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var n=this.start,s=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,s,!0,!1),this.eat(x.parenL)?t.arguments=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1):t.arguments=ta,this.finishNode(t,"NewExpression")},tr.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===x.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===x.backQuote,this.finishNode(i,"TemplateElement")},tr.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var n=this.parseTemplateElement({isTagged:e});for(i.quasis=[n];!n.tail;)this.type===x.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(x.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(x.braceR),i.quasis.push(n=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},tr.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===x.name||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===x.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},tr.parseObj=function(t,e){var i=this.startNode(),n=!0,s={};for(i.properties=[],this.next();!this.eat(x.braceR);){if(n)n=!1;else if(this.expect(x.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(x.braceR))break;var r=this.parseProperty(t,e);t||this.checkPropClash(r,s,e),i.properties.push(r)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},tr.parseProperty=function(t,e){var i,n,s,r,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(x.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,e),this.type===x.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)&&(s=this.start,r=this.startLoc),t||(i=this.eat(x.star)));var o=this.containsEsc;return this.parsePropertyName(a),!t&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(n=!0,i=this.options.ecmaVersion>=9&&this.eat(x.star),this.parsePropertyName(a)):n=!1,this.parsePropertyValue(a,t,i,n,s,r,e,o),this.finishNode(a,"Property")},tr.parseGetterSetter=function(t){t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var e="get"===t.kind?0:1;if(t.value.params.length!==e){var i=t.value.start;"get"===t.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},tr.parsePropertyValue=function(t,e,i,n,s,r,a,o){(i||n)&&this.type===x.colon&&this.unexpected(),this.eat(x.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===x.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,n)):e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===x.comma||this.type===x.braceR||this.type===x.eq?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((i||n)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=s),t.kind="init",e?t.value=this.parseMaybeDefault(s,r,this.copyNode(t.key)):this.type===x.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(s,r,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected():((i||n)&&this.unexpected(),this.parseGetterSetter(t))},tr.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(x.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(x.bracketR),t.key;t.computed=!1}return t.key=this.type===x.num||this.type===x.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},tr.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},tr.parseMethod=function(t,e,i){var n=this.startNode(),s=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=t),this.options.ecmaVersion>=8&&(n.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|U(e,n.generator)|(i?128:0)),this.expect(x.parenL),n.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=s,this.awaitPos=r,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")},tr.parseArrowExpression=function(t,e,i,n){var s=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|U(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,n),this.yieldPos=s,this.awaitPos=r,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},tr.parseFunctionBody=function(t,e,i,n){var s=e&&this.type!==x.braceL,r=this.strict,a=!1;if(s)t.body=this.parseMaybeAssign(n),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!r||o)&&(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!r&&!a&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!r),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=l}this.exitScope()},tr.isSimpleParamList=function(t){for(var e=0;e-1||s.functions.indexOf(t)>-1||s.var.indexOf(t)>-1,s.lexical.push(t),this.inModule&&1&s.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var r=this.currentScope();n=this.treatFunctionsAsVar?r.lexical.indexOf(t)>-1:r.lexical.indexOf(t)>-1||r.var.indexOf(t)>-1,r.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){n=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}n&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},tl.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},tl.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},tl.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags)return e}},tl.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags&&!(16&e.flags))return e}};var tu=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new D(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},tc=q.prototype;function td(t,e,i,n){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=n),this.options.ranges&&(t.range[1]=i),t}tc.startNode=function(){return new tu(this,this.start,this.startLoc)},tc.startNodeAt=function(t,e){return new tu(this,t,e)},tc.finishNode=function(t,e){return td.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},tc.finishNodeAt=function(t,e,i,n){return td.call(this,t,e,i,n)},tc.copyNode=function(t){var e=new tu(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};for(var tp="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",tf=tp+" Extended_Pictographic",tg=tf+" EBase EComp EMod EPres ExtPict",tm={9:tp,10:tf,11:tf,12:tg,13:tg,14:tg},t_={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},tv="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",ty="Adlam Adlm 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 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",tb=ty+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",tx=tb+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tw=tx+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",tk=tw+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",tS={9:ty,10:tb,11:tx,12:tw,13:tk,14:tk+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},tC={},tI=0,tT=[9,10,11,12,13,14];tI=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=tC[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function tO(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function tM(t){return t>=65&&t<=90||t>=97&&t<=122}function tN(t){return tM(t)||95===t}function tL(t){return t>=48&&t<=57}function tz(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function tR(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}function tB(t){return t>=48&&t<=55}tP.prototype.reset=function(t,e,i){var n=-1!==i.indexOf("v"),s=-1!==i.indexOf("u");this.start=0|t,this.source=e+"",this.flags=i,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)},tP.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},tP.prototype.at=function(t,e){void 0===e&&(e=!1);var i=this.source,n=i.length;if(t>=n)return -1;var s=i.charCodeAt(t);if(!(e||this.switchU)||s<=55295||s>=57344||t+1>=n)return s;var r=i.charCodeAt(t+1);return r>=56320&&r<=57343?(s<<10)+r-0x35fdc00:s},tP.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var i=this.source,n=i.length;if(t>=n)return n;var s,r=i.charCodeAt(t);return!(e||this.switchU)||r<=55295||r>=57344||t+1>=n||(s=i.charCodeAt(t+1))<56320||s>57343?t+1:t+2},tP.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},tP.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},tP.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},tP.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},tP.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var i=this.pos,n=0;n-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===a&&(n=!0),"v"===a&&(s=!0)}this.options.ecmaVersion>=15&&n&&s&&this.raise(t.start,"Invalid regular expression flag")},tE.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&function(t){for(var e in t)return!0;return!1}(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},tE.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,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,i=t.backReferenceNames;e=16;for(e&&(t.branchID=new tA(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},tE.regexp_alternative=function(t){for(;t.pos=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},tE.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},tE.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},tE.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var n=0,s=-1;if(this.regexp_eatDecimalDigits(t)&&(n=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue),t.eat(125)))return -1!==s&&s=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},tE.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)},tE.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},tE.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!tO(e)&&(t.lastIntValue=e,t.advance(),!0)},tE.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;-1!==(i=t.current())&&!tO(i);)t.advance();return t.pos!==e},tE.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)},tE.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,i=t.groupNames[t.lastStringValue];if(i){if(e)for(var n=0;n=11,s=t.current(n);return(t.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(s=t.lastIntValue),p(e=s,!0)||36===e||95===e)?(t.lastIntValue=s,!0):(t.pos=i,!1)},tE.regexp_eatRegExpIdentifierPart=function(t){var e,i=t.pos,n=this.options.ecmaVersion>=11,s=t.current(n);return(t.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(s=t.lastIntValue),f(e=s,!0)||36===e||95===e||8204===e||8205===e)?(t.lastIntValue=s,!0):(t.pos=i,!1)},tE.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)},tE.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},tE.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},tE.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,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},tE.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},tE.regexp_eatZero=function(t){return!(48!==t.current()||tL(t.lookahead()))&&(t.lastIntValue=0,t.advance(),!0)},tE.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)},tE.regexp_eatControlLetter=function(t){var e=t.current();return!!tM(e)&&(t.lastIntValue=e%32,t.advance(),!0)},tE.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var i=t.pos,n=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var s,r=t.lastIntValue;if(n&&r>=55296&&r<=56319){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=(r-55296)*1024+(o-56320)+65536,!0}t.pos=a,t.lastIntValue=r}return!0}if(n&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(s=t.lastIntValue)>=0&&s<=1114111)return!0;n&&t.raise("Invalid unicode escape"),t.pos=i}return!1},tE.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)},tE.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},tE.regexp_eatCharacterClassEscape=function(t){var e,i=t.current();if(100===i||68===i||115===i||83===i||119===i||87===i)return t.lastIntValue=-1,t.advance(),1;var n=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((n=80===i)||112===i)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(e=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return n&&2===e&&t.raise("Invalid property name"),e;t.raise("Invalid property name")}return 0},tE.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var n=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,n),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,s)}return 0},tE.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){O(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},tE.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},tE.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";tN(e=t.current());)t.lastStringValue+=z(e),t.advance();return""!==t.lastStringValue},tE.regexp_eatUnicodePropertyValue=function(t){var e,i=0;for(t.lastStringValue="";tN(e=i=t.current())||tL(e);)t.lastStringValue+=z(i),t.advance();return""!==t.lastStringValue},tE.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},tE.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===i&&t.raise("Negated character class may contain strings"),!0}return!1},tE.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},tE.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;t.switchU&&(-1===e||-1===i)&&t.raise("Invalid character class"),-1!==e&&-1!==i&&e>i&&t.raise("Range out of order in character class")}}},tE.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(99===i||tB(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var n=t.current();return 93!==n&&(t.lastIntValue=n,t.advance(),!0)},tE.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)},tE.regexp_classSetExpression=function(t){var e,i=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(i=2);for(var n=t.pos;t.eatChars([38,38]);){if(38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))){2!==e&&(i=1);continue}t.raise("Invalid character in character class")}if(n!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(n!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return i;2===e&&(i=2)}},tE.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var n=t.lastIntValue;return -1!==i&&-1!==n&&i>n&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},tE.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},tE.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),n=this.regexp_classContents(t);if(t.eat(93))return i&&2===n&&t.raise("Negated character class may contain strings"),n;t.pos=e}if(t.eat(92)){var s=this.regexp_eatCharacterClassEscape(t);if(s)return s;t.pos=e}return null},tE.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null},tE.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},tE.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},tE.regexp_eatClassSetCharacter=function(t){var e,i=t.pos;if(t.eat(92))return!!(this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=i,!1));var n=t.current();return!(n<0||n===t.lookahead()&&(33===n||n>=35&&n<=38||n>=42&&n<=44||46===n||n>=58&&n<=64||94===n||96===n||126===n)||40===(e=n)||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125)&&(t.advance(),t.lastIntValue=n,!0)},tE.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!(33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e)&&(t.lastIntValue=e,t.advance(),!0)},tE.regexp_eatClassControlLetter=function(t){var e=t.current();return(!!tL(e)||95===e)&&(t.lastIntValue=e%32,t.advance(),!0)},tE.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},tE.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;tL(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},tE.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;tz(i=t.current());)t.lastIntValue=16*t.lastIntValue+tR(i),t.advance();return t.pos!==e},tE.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},tE.regexp_eatOctalDigit=function(t){var e=t.current();return tB(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},tE.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var n=0;n=this.input.length)?this.finishToken(x.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},tV.readToken=function(t){return p(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},tV.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-0x35fdc00},tV.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=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(var n=void 0,s=e;(n=C(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},tV.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=t);this.pos8&&t<14||t>=5760&&I.test(String.fromCharCode(t)))++this.pos;else break e}}},tV.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},tV.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(x.ellipsis)):(++this.pos,this.finishToken(x.dot))},tV.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(x.assign,2):this.finishOp(x.slash,1)},tV.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,n=42===t?x.star:x.modulo;return(this.options.ecmaVersion>=7&&42===t&&42===e&&(++i,n=x.starstar,e=this.input.charCodeAt(this.pos+2)),61===e)?this.finishOp(x.assign,i+1):this.finishOp(n,i)},tV.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(x.assign,3):this.finishOp(124===t?x.logicalOR:x.logicalAND,2):61===e?this.finishOp(x.assign,2):this.finishOp(124===t?x.bitwiseOR:x.bitwiseAND,1)},tV.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(x.assign,2):this.finishOp(x.bitwiseXOR,1)},tV.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||w.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(x.incDec,2):61===e?this.finishOp(x.assign,2):this.finishOp(x.plusMin,1)},tV.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i))?this.finishOp(x.assign,i+1):this.finishOp(x.bitShift,i):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(i=2),this.finishOp(x.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},tV.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(x.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(x.arrow)):this.finishOp(61===t?x.eq:x.prefix,1)},tV.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(x.questionDot,2)}if(63===e)return t>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(x.assign,3):this.finishOp(x.coalesce,2)}return this.finishOp(x.question,1)},tV.readToken_numberSign=function(){var t=this.options.ecmaVersion,e=35;if(t>=13&&(++this.pos,p(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(x.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+z(e)+"'")},tV.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(x.parenL);case 41:return++this.pos,this.finishToken(x.parenR);case 59:return++this.pos,this.finishToken(x.semi);case 44:return++this.pos,this.finishToken(x.comma);case 91:return++this.pos,this.finishToken(x.bracketL);case 93:return++this.pos,this.finishToken(x.bracketR);case 123:return++this.pos,this.finishToken(x.braceL);case 125:return++this.pos,this.finishToken(x.braceR);case 58:return++this.pos,this.finishToken(x.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(x.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 63:return this.readToken_question();case 126:return this.finishOp(x.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+z(t)+"'")},tV.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},tV.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(w.test(n)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===n)e=!0;else if("]"===n&&e)e=!1;else if("/"===n&&!e)break;t="\\"===n}++this.pos}var s=this.input.slice(i,this.pos);++this.pos;var r=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(r);var o=this.regexpState||(this.regexpState=new tP(this));o.reset(i,s,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(s,a)}catch(t){}return this.finishToken(x.regexp,{pattern:s,flags:a,value:l})},tV.readInt=function(t,e,i){for(var n=this.options.ecmaVersion>=12&&void 0===e,s=i&&48===this.input.charCodeAt(this.pos),r=this.pos,a=0,o=0,l=0,h=null==e?1/0:e;l=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=t)break;o=u,a=a*t+c}return(n&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===r||null!=e&&this.pos-r!==e)?null:a},tV.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return null==i&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=tF(this.input.slice(e,this.pos)),++this.pos):p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,i)},tV.readNumber=function(t){var e,i=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(i,"Invalid number");var n=this.pos-i>=2&&48===this.input.charCodeAt(i);n&&this.strict&&this.raise(i,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&110===s){var r=tF(this.input.slice(i,this.pos));return++this.pos,p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,r)}n&&/[89]/.test(this.input.slice(i,this.pos))&&(n=!1),46!==s||n||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||n||((43===(s=this.input.charCodeAt(++this.pos))||45===s)&&++this.pos,null===this.readInt(10)&&this.raise(i,"Invalid number")),p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(e=this.input.slice(i,this.pos),n?parseInt(e,8):parseFloat(e.replace(/_/g,"")));return this.finishToken(x.num,a)},tV.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},tV.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===t)break;92===n?(e+=this.input.slice(i,this.pos)+this.readEscapedChar(!1),i=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(S(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(x.string,e)};var tj={};tV.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===tj)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1},tV.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw tj;this.raise(t,e)},tV.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1)){if(this.pos===this.start&&(this.type===x.template||this.type===x.invalidTemplate)){if(36===i)return this.pos+=2,this.finishToken(x.dollarBraceL);return++this.pos,this.finishToken(x.backQuote)}return t+=this.input.slice(e,this.pos),this.finishToken(x.template,t)}if(92===i)t+=this.input.slice(e,this.pos)+this.readEscapedChar(!0),e=this.pos;else if(S(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},tV.readInvalidTemplateToken=function(){for(;this.pos=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(n,8);return s>255&&(s=parseInt(n=n.slice(0,-1),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(s)}if(S(e))return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";return String.fromCharCode(e)}},tV.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return null===i&&this.invalidStringToken(e,"Bad character escape sequence"),i},tV.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,n=this.options.ecmaVersion>=6;this.post.map(t=>"x"===t?{type:"Tile"}:null)),type:"even-r"},solution:[{amount:100,type:"Connections"}]}}),c("16oTl",function(t,e){t.exports=JSON.parse('{"layout":{"tiles":[[{"items":[{"direction":0,"type":"Portal"}],"modifiers":[{"type":"Immutable"}],"type":"Tile"},{"items":[{"direction":0,"type":"Portal"}],"modifiers":[{"type":"Immutable"}],"type":"Tile"},{"items":[{"openings":[null,null,null,{"color":["red","blue"],"type":"Beam"},null,null],"type":"Terminus"}],"modifiers":[{"type":"Rotate"}],"type":"Tile"},{"items":[{"openings":[null,null,null,null,{"color":"green","type":"Beam"},null],"type":"Terminus"}],"modifiers":[{"type":"Lock"},{"type":"Toggle"}],"type":"Tile"}],[{"items":[{"openings":[{"color":"red","type":"Beam"},null,null,null,null,null],"type":"Terminus"}],"modifiers":[{"type":"Lock"},{"type":"Rotate"},{"type":"Toggle"}],"type":"Tile"},{"items":[{"openings":[{"color":"blue","type":"Beam"},null,null,null,null,null],"type":"Terminus"}],"modifiers":[{"type":"Lock"},{"type":"Toggle"}],"type":"Tile"},{"items":[{"direction":0,"type":"Portal"}],"modifiers":[{"type":"Immutable"}],"type":"Tile"}]]},"solution":[{"amount":1,"type":"Connections"}]}')}),c("1nXJz",function(t,e){t.exports=JSON.parse('{"layout":{"tiles":[[{"items":[{"color":"red","openings":[null,null,null,{"on":true,"type":"Beam"},null,null],"type":"Terminus"}],"type":"Tile"}],[{"items":[{"type":"Reflector"}],"modifiers":[{"type":"Rotate"}],"type":"Tile"}],[{"items":[{"color":"green","openings":[null,{"on":true,"type":"Beam"},null,null,null,null],"type":"Terminus"}],"type":"Tile"},{"items":[{"color":"blue","openings":[{"on":true,"type":"Beam"},null,null,null,null,null],"type":"Terminus"}],"type":"Tile"}]]},"solution":[{"amount":999,"type":"Connections"}]}')});let d=document.getElementById("feedback-container"),p=document.getElementById("dialog"),f=document.getElementById("help");document.getElementById("info").addEventListener("click",()=>{p.open||p.showModal()}),document.getElementById("feedback").addEventListener("click",()=>{f.setAttribute("open","true"),d.scrollIntoView(!0)});var g=class{constructor(t){this.selfOptions=t||{},this.pipes={}}options(t){return t&&(this.selfOptions=t),this.selfOptions}pipe(t,e){let i=e;if("string"==typeof t){if(void 0===i)return this.pipes[t];this.pipes[t]=i}if(t&&t.name){if((i=t).processor===this)return i;this.pipes[i.name]=i}return i.processor=this,i}process(t,e){let i,n=t;n.options=this.options();let s=e||t.pipe||"default";for(;s;)void 0!==n.nextAfterChildren&&(n.next=n.nextAfterChildren,n.nextAfterChildren=null),"string"==typeof s&&(s=this.pipe(s)),s.process(n),i=s,s=null,n&&n.next&&(s=(n=n.next).pipe||i);return n.hasResult?n.result:void 0}},m=class{constructor(t){this.name=t,this.filters=[]}process(t){if(!this.processor)throw Error("add this pipe to a processor before using it");let e=this.debug,i=this.filters.length;for(let n=0;nt.filterName)}after(t,...e){let i=this.indexOf(t);return this.filters.splice(i+1,0,...e),this}before(t,...e){let i=this.indexOf(t);return this.filters.splice(i,0,...e),this}replace(t,...e){let i=this.indexOf(t);return this.filters.splice(i,1,...e),this}remove(t){let e=this.indexOf(t);return this.filters.splice(e,1),this}clear(){return this.filters.length=0,this}shouldHaveResult(t){if(!1===t){this.resultCheck=null;return}if(!this.resultCheck)return this.resultCheck=t=>{if(!t.hasResult){console.log(t);let e=Error(`${this.name} failed`);throw e.noResult=!0,e}},this}};class _{setResult(t){return this.result=t,this.hasResult=!0,this}exit(){return this.exiting=!0,this}push(t,e){return t.parent=this,void 0!==e&&(t.childName=e),t.root=this.root||this,t.options=t.options||this.options,this.children?(this.children[this.children.length-1].next=t,this.children.push(t)):(this.children=[t],this.nextAfterChildren=this.next||null,this.next=t),t.next=this,this}}function v(t){if("object"!=typeof t)return t;if(null===t)return null;if(Array.isArray(t))return t.map(v);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return function(t){let e=/^\/(.*)\/([gimyu]*)$/.exec(t.toString());return new RegExp(e[1],e[2])}(t);let e={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=v(t[i]));return e}var y=class extends _{constructor(t,e){super(),this.left=t,this.right=e,this.pipe="diff"}setResult(t){if(this.options.cloneDiffValues&&"object"==typeof t){let e="function"==typeof this.options.cloneDiffValues?this.options.cloneDiffValues:v;"object"==typeof t[0]&&(t[0]=e(t[0])),"object"==typeof t[1]&&(t[1]=e(t[1]))}return super.setResult(t)}},b=class extends _{constructor(t,e){super(),this.left=t,this.delta=e,this.pipe="patch"}},x=class extends _{constructor(t){super(),this.delta=t,this.pipe="reverse"}};let w=function(t){if(t.left===t.right){t.setResult(void 0).exit();return}if(void 0===t.left){if("function"==typeof t.right)throw Error("functions are not supported");t.setResult([t.right]).exit();return}if(void 0===t.right){t.setResult([t.left,0,0]).exit();return}if("function"==typeof t.left||"function"==typeof t.right)throw Error("functions are not supported");if(t.leftType=null===t.left?"null":typeof t.left,t.rightType=null===t.right?"null":typeof t.right,t.leftType!==t.rightType||"boolean"===t.leftType||"number"===t.leftType||("object"===t.leftType&&(t.leftIsArray=Array.isArray(t.left)),"object"===t.rightType&&(t.rightIsArray=Array.isArray(t.right)),t.leftIsArray!==t.rightIsArray)){t.setResult([t.left,t.right]).exit();return}t.left instanceof RegExp&&(t.right instanceof RegExp?t.setResult([t.left.toString(),t.right.toString()]).exit():t.setResult([t.left,t.right]).exit())};w.filterName="trivial";let k=function(t){if(void 0===t.delta){t.setResult(t.left).exit();return}if(t.nested=!Array.isArray(t.delta),t.nested)return;let e=t.delta;if(1===e.length){t.setResult(e[0]).exit();return}if(2===e.length){if(t.left instanceof RegExp){let i=/^\/(.*)\/([gimyu]+)$/.exec(e[1]);if(i){t.setResult(new RegExp(i[1],i[2])).exit();return}}t.setResult(e[1]).exit();return}3===e.length&&0===e[2]&&t.setResult(void 0).exit()};k.filterName="trivial";let S=function(t){if(void 0===t.delta){t.setResult(t.delta).exit();return}if(t.nested=!Array.isArray(t.delta),t.nested)return;let e=t.delta;if(1===e.length){t.setResult([e[0],0,0]).exit();return}if(2===e.length){t.setResult([e[1],e[0]]).exit();return}3===e.length&&0===e[2]&&t.setResult([e[0]]).exit()};S.filterName="trivial";let C=t=>{let e;if(!t||!t.children)return;let i=t.children.length,n=t.result;for(let s=0;s{let e,i;if(t.leftIsArray||"object"!==t.leftType)return;let n=t.left,s=t.right,r=t.options.propertyFilter;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(!r||r(e,t))&&(i=new y(n[e],s[e]),t.push(i,e));for(e in s)Object.prototype.hasOwnProperty.call(s,e)&&(!r||r(e,t))&&void 0===n[e]&&(i=new y(void 0,s[e]),t.push(i,e));if(!t.children||0===t.children.length){t.setResult(void 0).exit();return}t.exit()};I.filterName="objects";let T=function(t){let e,i;if(!t.nested)return;let n=t.delta;if(!n._t){for(e in n)i=new b(t.left[e],n[e]),t.push(i,e);t.exit()}};T.filterName="objects";let E=function(t){let e;if(!t||!t.children||t.delta._t)return;let i=t.left,n=t.children.length;for(let s=0;s{let e;if(!t||!t.children||t.delta._t)return;let i=t.children.length,n={};for(let s=0;st[s-1][r]?--r:--s;return a};var L={get:function(t,e,i,n){let s=n||{};return N(M(t,e,i||O,s),t,e,s)}};function z(t,e,i,n,s){let r=t[i],a=e[n];if(r===a)return!0;if("object"!=typeof r||"object"!=typeof a)return!1;let o=s.objectHash;if(!o)return s.matchByPosition&&i===n;s.hashCache1=s.hashCache1||[];let l=s.hashCache1[i];if(void 0===l&&(s.hashCache1[i]=l=o(r,i)),void 0===l)return!1;s.hashCache2=s.hashCache2||[];let h=s.hashCache2[n];return void 0===h&&(s.hashCache2[n]=h=o(a,n)),void 0!==h&&l===h}let R=function(t){let e,i,n,s,r;if(!t.leftIsArray)return;let a={objectHash:t.options&&t.options.objectHash,matchByPosition:t.options&&t.options.matchByPosition},o=0,l=0,h=t.left,u=t.right,c=h.length,d=u.length;for(c>0&&d>0&&!a.objectHash&&"boolean"!=typeof a.matchByPosition&&(a.matchByPosition=!function(t,e,i,n){for(let s=0;sg.indices1.indexOf(e-o)&&(r[`_${e}`]=[h[e],0,0],m.push(e));let _=!0;t.options&&t.options.arrays&&!1===t.options.arrays.detectMove&&(_=!1);let v=!1;t.options&&t.options.arrays&&t.options.arrays.includeValueOnMove&&(v=!0);let b=m.length;for(e=o;e0){for(let c=0;ct-e,numericallyBy:t=>(e,i)=>e[t]-i[t]},D=function(t){let e,i,n;if(!t.nested)return;let s=t.delta;if("a"!==s._t)return;let r=t.left,a=[],o=[],l=[];for(e in s)if("_t"!==e){if("_"===e[0]){let t=e;if(0===s[t][2]||3===s[t][2])a.push(parseInt(e.slice(1),10));else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${s[t][2]}`)}else{let t=e;1===s[t].length?o.push({index:parseInt(t,10),value:s[t][0]}):l.push({index:parseInt(t,10),delta:s[t]})}}for(e=(a=a.sort(B.numerically)).length-1;e>=0;e--){i=a[e];let t=s[`_${i}`],n=r.splice(i,1)[0];3===t[2]&&o.push({index:t[1],value:n})}let h=(o=o.sort(B.numericallyBy("index"))).length;for(e=0;e0)for(e=0;e{if("string"==typeof e&&"_"===e[0])return parseInt(e.substring(1),10);if(Array.isArray(i)&&0===i[2])return`_${e}`;let n=+e;for(let i in t){let s=t[i];if(Array.isArray(s)){if(3===s[2]){let t=parseInt(i.substring(1),10),r=s[1];if(r===+e)return t;t<=n&&r>n?n++:t>=n&&r{let e;if(!t||!t.children)return;let i=t.delta;if("a"!==i._t)return;let n=t.children.length,s={_t:"a"};for(let r=0;r=0;)t[e]=0}let Y=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Q=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),tt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),te=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ti=Array(576);X(ti);let tn=Array(60);X(tn);let ts=Array(512);X(ts);let tr=Array(256);X(tr);let ta=Array(29);X(ta);let to=Array(30);function tl(t,e,i,n,s){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=s,this.has_stree=t&&t.length}function th(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}X(to);let tu=t=>t<256?ts[t]:ts[256+(t>>>7)],tc=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},td=(t,e,i)=>{t.bi_valid>16-i?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=e<{td(t,i[2*e],i[2*e+1])},tf=(t,e)=>{let i=0;do i|=1&t,t>>>=1,i<<=1;while(--e>0)return i>>>1},tg=t=>{16===t.bi_valid?(tc(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)},tm=(t,e)=>{let i,n,s,r,a,o;let l=e.dyn_tree,h=e.max_code,u=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,f=e.stat_desc.max_length,g=0;for(r=0;r<=15;r++)t.bl_count[r]=0;for(l[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)(r=l[2*l[2*(n=t.heap[i])+1]+1]+1)>f&&(r=f,g++),l[2*n+1]=r,!(n>h)&&(t.bl_count[r]++,a=0,n>=p&&(a=d[n-p]),o=l[2*n],t.opt_len+=o*(r+a),c&&(t.static_len+=o*(u[2*n+1]+a)));if(0!==g){do{for(r=f-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[f]--,g-=2}while(g>0)for(r=f;0!==r;r--)for(n=t.bl_count[r];0!==n;)!((s=t.heap[--i])>h)&&(l[2*s+1]!==r&&(t.opt_len+=(r-l[2*s+1])*l[2*s],l[2*s+1]=r),n--)}},t_=(t,e,i)=>{let n,s;let r=Array(16),a=0;for(n=1;n<=15;n++)a=a+i[n-1]<<1,r[n]=a;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=tf(r[e]++,e))}},tv=()=>{let n,s,r,a,o;let l=Array(16);for(a=0,r=0;a<28;a++)for(n=0,ta[a]=r;n<1<>=7;a<30;a++)for(n=0,to[a]=o<<7;n<1<{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},tb=t=>{t.bi_valid>8?tc(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},tx=(t,e,i,n)=>{let s=2*e,r=2*i;return t[s]{let n=t.heap[i],s=i<<1;for(;s<=t.heap_len&&(s{let n,s,r,a;let o=0;if(0!==t.sym_next)do n=(255&t.pending_buf[t.sym_buf+o++])+((255&t.pending_buf[t.sym_buf+o++])<<8),s=t.pending_buf[t.sym_buf+o++],0===n?tp(t,s,e):(tp(t,(r=tr[s])+256+1,e),0!==(a=Y[r])&&td(t,s-=ta[r],a),tp(t,r=tu(--n),i),0!==(a=Q[r])&&td(t,n-=to[r],a));while(o{let i,n,s;let r=e.dyn_tree,a=e.stat_desc.static_tree,o=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(i=0,t.heap_len=0,t.heap_max=573;i>1;i>=1;i--)tw(t,r,i);s=l;do i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],tw(t,r,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,r[2*s]=r[2*i]+r[2*n],t.depth[s]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,r[2*i+1]=r[2*n+1]=s,t.heap[1]=s++,tw(t,r,1);while(t.heap_len>=2)t.heap[--t.heap_max]=t.heap[1],tm(t,e),t_(r,h,t.bl_count)},tC=(t,e,i)=>{let n,s;let r=-1,a=e[1],o=0,l=7,h=4;for(0===a&&(l=138,h=3),e[(i+1)*2+1]=65535,n=0;n<=i;n++)s=a,a=e[(n+1)*2+1],++o{let n,s;let r=-1,a=e[1],o=0,l=7,h=4;for(0===a&&(l=138,h=3),n=0;n<=i;n++)if(s=a,a=e[(n+1)*2+1],!(++o{let e;for(tC(t,t.dyn_ltree,t.l_desc.max_code),tC(t,t.dyn_dtree,t.d_desc.max_code),tS(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*te[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e},tE=(t,e,i,n)=>{let s;for(td(t,e-257,5),td(t,i-1,5),td(t,n-4,4),s=0;s{let e,i=0xf3ffc07f;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0},tP=!1,tO=(t,e,i,n)=>{td(t,0+(n?1:0),3),tb(t),tc(t,i),tc(t,~i),i&&t.pending_buf.set(t.window.subarray(e,e+i),t.pending),t.pending+=i};var tM={_tr_init:n=>{tP||(tv(),tP=!0),n.l_desc=new th(n.dyn_ltree,t),n.d_desc=new th(n.dyn_dtree,e),n.bl_desc=new th(n.bl_tree,i),n.bi_buf=0,n.bi_valid=0,ty(n)},_tr_stored_block:tO,_tr_flush_block:(t,e,i,n)=>{let s,r;let a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=tA(t)),tS(t,t.l_desc),tS(t,t.d_desc),a=tT(t),s=t.opt_len+3+7>>>3,(r=t.static_len+3+7>>>3)<=s&&(s=r)):s=r=i+5,i+4<=s&&-1!==e?tO(t,e,i,n):4===t.strategy||r===s?(td(t,2+(n?1:0),3),tk(t,ti,tn)):(td(t,4+(n?1:0),3),tE(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),tk(t,t.dyn_ltree,t.dyn_dtree)),ty(t),n&&tb(t)},_tr_tally:(t,e,i)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=i,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[(tr[i]+256+1)*2]++,t.dyn_dtree[2*tu(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{td(t,2,3),tp(t,256,ti),tg(t)}},tN=(t,e,i,n)=>{let s=65535&t|0,r=t>>>16&65535|0,a=0;for(;0!==i;){a=i>2e3?2e3:i,i-=a;do r=r+(s=s+e[n++]|0)|0;while(--a)s%=65521,r%=65521}return s|r<<16|0};let tL=new Uint32Array((()=>{let t,e=[];for(var i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?0xedb88320^t>>>1:t>>>1;e[i]=t}return e})());var tz=(t,e,i,n)=>{let s=n+i;t^=-1;for(let i=n;i>>8^tL[(t^e[i])&255];return -1^t},tR={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},tB={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};let{_tr_init:tD,_tr_stored_block:tV,_tr_flush_block:tF,_tr_tally:tj,_tr_align:tU}=tM,{Z_NO_FLUSH:tq,Z_PARTIAL_FLUSH:tZ,Z_FULL_FLUSH:tH,Z_FINISH:tG,Z_BLOCK:tW,Z_OK:t$,Z_STREAM_END:tK,Z_STREAM_ERROR:tJ,Z_DATA_ERROR:tX,Z_BUF_ERROR:tY,Z_DEFAULT_COMPRESSION:tQ,Z_FILTERED:t0,Z_HUFFMAN_ONLY:t1,Z_RLE:t2,Z_FIXED:t5,Z_DEFAULT_STRATEGY:t3,Z_UNKNOWN:t6,Z_DEFLATED:t4}=tB,t9=(t,e)=>(t.msg=tR[e],e),t8=t=>2*t-(t>4?9:0),t7=t=>{let e=t.length;for(;--e>=0;)t[e]=0},et=t=>{let e,i,n;let s=t.w_size;n=e=t.hash_size;do i=t.head[--n],t.head[n]=i>=s?i-s:0;while(--e)n=e=s;do i=t.prev[--n],t.prev[n]=i>=s?i-s:0;while(--e)},ee=(t,e,i)=>(e<{let e=t.state,i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+i),t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))},en=(t,e)=>{tF(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ei(t.strm)},es=(t,e)=>{t.pending_buf[t.pending++]=e},er=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},ea=(t,e,i,n)=>{let s=t.avail_in;return(s>n&&(s=n),0===s)?0:(t.avail_in-=s,e.set(t.input.subarray(t.next_in,t.next_in+s),i),1===t.state.wrap?t.adler=tN(t.adler,e,s,i):2===t.state.wrap&&(t.adler=tz(t.adler,e,s,i)),t.next_in+=s,t.total_in+=s,s)},eo=(t,e)=>{let i,n,s=t.max_chain_length,r=t.strstart,a=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,u=t.w_mask,c=t.prev,d=t.strstart+258,p=h[r+a-1],f=h[r+a];t.prev_length>=t.good_match&&(s>>=2),o>t.lookahead&&(o=t.lookahead);do{if(h[(i=e)+a]!==f||h[i+a-1]!==p||h[i]!==h[r]||h[++i]!==h[r+1])continue;r+=2,i++;do;while(h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&ra){if(t.match_start=e,a=n,n>=o)break;p=h[r+a-1],f=h[r+a]}}while((e=c[e&u])>l&&0!=--s)return a<=t.lookahead?a:t.lookahead},el=t=>{let e,i,n;let s=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-262)&&(t.window.set(t.window.subarray(s,s+s-i),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,t.insert>t.strstart&&(t.insert=t.strstart),et(t),i+=s),0===t.strm.avail_in)break;if(e=ea(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=e,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ee(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ee(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},eh=(t,e)=>{let i=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,n,s,r,a=0,o=t.strm.avail_in;do{if(n=65535,r=t.bi_valid+42>>3,t.strm.avail_out(s=t.strstart-t.block_start)+t.strm.avail_in&&(n=s+t.strm.avail_in),n>r&&(n=r),n>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,ei(t.strm),s&&(s>n&&(s=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+s),t.strm.next_out),t.strm.next_out+=s,t.strm.avail_out-=s,t.strm.total_out+=s,t.block_start+=s,n-=s),n&&(ea(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(0===a)return((o-=t.strm.avail_in)&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_waterr&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(ea(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water>3,i=(r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r)>t.w_size?t.w_size:r,((s=t.strstart-t.block_start)>=i||(s||e===tG)&&e!==tq&&0===t.strm.avail_in&&s<=r)&&(n=s>r?r:s,a=e===tG&&0===t.strm.avail_in&&n===s?1:0,tV(t,t.block_start,n,a),t.block_start+=n,ei(t.strm)),a?3:1)},eu=(t,e)=>{let i,n;for(;;){if(t.lookahead<262){if(el(t),t.lookahead<262&&e===tq)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-262&&(t.match_length=eo(t,i)),t.match_length>=3){if(n=tj(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do t.strstart++,t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(0!=--t.match_length)t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ee(t,t.ins_h,t.window[t.strstart+1])}else n=tj(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(en(t,!1),0===t.strm.avail_out))return 1}return(t.insert=t.strstart<2?t.strstart:2,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2},ec=(t,e)=>{let i,n,s;for(;;){if(t.lookahead<262){if(el(t),t.lookahead<262&&e===tq)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==i&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){s=t.strstart+t.lookahead-3,n=tj(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=s&&(t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(0!=--t.prev_length)if(t.match_available=0,t.match_length=2,t.strstart++,n&&(en(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=tj(t,0,t.window[t.strstart-1]))&&en(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return(t.match_available&&(n=tj(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2},ed=(t,e)=>{let i,n,s,r;let a=t.window;for(;;){if(t.lookahead<=258){if(el(t),t.lookahead<=258&&e===tq)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[s=t.strstart-1])===a[++s]&&n===a[++s]&&n===a[++s]){r=t.strstart+258;do;while(n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&st.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=tj(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=tj(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(en(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2},ep=(t,e)=>{let i;for(;;){if(0===t.lookahead&&(el(t),0===t.lookahead)){if(e===tq)return 1;break}if(t.match_length=0,i=tj(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(en(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2};function ef(t,e,i,n,s){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=s}let eg=[new ef(0,0,0,0,eh),new ef(4,4,8,4,eu),new ef(4,5,16,8,eu),new ef(4,6,32,32,eu),new ef(4,4,16,16,ec),new ef(8,16,32,32,ec),new ef(8,16,128,128,ec),new ef(8,32,128,256,ec),new ef(32,128,258,1024,ec),new ef(32,258,258,4096,ec)],em=t=>{t.window_size=2*t.w_size,t7(t.head),t.max_lazy_match=eg[t.level].max_lazy,t.good_match=eg[t.level].good_length,t.nice_match=eg[t.level].nice_length,t.max_chain_length=eg[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0};function e_(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=t4,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),t7(this.dyn_ltree),t7(this.dyn_dtree),t7(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),t7(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),t7(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}let ev=t=>{if(!t)return 1;let e=t.state;return e&&e.strm===t&&(42===e.status||57===e.status||69===e.status||73===e.status||91===e.status||103===e.status||113===e.status||666===e.status)?0:1},ey=t=>{if(ev(t))return t9(t,tJ);t.total_in=t.total_out=0,t.data_type=t6;let e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,tD(e),t$},eb=t=>{let e=ey(t);return e===t$&&em(t.state),e};var ex={deflateInit2:(t,e,i,n,s,r)=>{if(!t)return tJ;let a=1;if(e===tQ&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),s<1||s>9||i!==t4||n<8||n>15||e<0||e>9||r<0||r>t5||8===n&&1!==a)return t9(t,tJ);8===n&&(n=9);let o=new e_;return t.state=o,o.strm=t,o.status=42,o.wrap=a,o.gzhead=null,o.w_bits=n,o.w_size=1<ev(t)||2!==t.state.wrap?tJ:(t.state.gzhead=e,t$),deflate:(t,e)=>{if(ev(t)||e>tW||e<0)return t?t9(t,tJ):tJ;let i=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===i.status&&e!==tG)return t9(t,0===t.avail_out?tY:tJ);let n=i.last_flush;if(i.last_flush=e,0!==i.pending){if(ei(t),0===t.avail_out)return i.last_flush=-1,t$}else if(0===t.avail_in&&t8(e)<=t8(n)&&e!==tG)return t9(t,tY);if(666===i.status&&0!==t.avail_in)return t9(t,tY);if(42===i.status&&0===i.wrap&&(i.status=113),42===i.status){let e=t4+(i.w_bits-8<<4)<<8;if(e|=(i.strategy>=t1||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(e|=32),er(i,e+=31-e%31),0!==i.strstart&&(er(i,t.adler>>>16),er(i,65535&t.adler)),t.adler=1,i.status=113,ei(t),0!==i.pending)return i.last_flush=-1,t$}if(57===i.status){if(t.adler=0,es(i,31),es(i,139),es(i,8),i.gzhead)es(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),es(i,255&i.gzhead.time),es(i,i.gzhead.time>>8&255),es(i,i.gzhead.time>>16&255),es(i,i.gzhead.time>>24&255),es(i,9===i.level?2:i.strategy>=t1||i.level<2?4:0),es(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(es(i,255&i.gzhead.extra.length),es(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=tz(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69;else if(es(i,0),es(i,0),es(i,0),es(i,0),es(i,0),es(i,9===i.level?2:i.strategy>=t1||i.level<2?4:0),es(i,3),i.status=113,ei(t),0!==i.pending)return i.last_flush=-1,t$}if(69===i.status){if(i.gzhead.extra){let e=i.pending,n=(65535&i.gzhead.extra.length)-i.gzindex;for(;i.pending+n>i.pending_buf_size;){let s=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+s),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&&i.pending>e&&(t.adler=tz(t.adler,i.pending_buf,i.pending-e,e)),i.gzindex+=s,ei(t),0!==i.pending)return i.last_flush=-1,t$;e=0,n-=s}let s=new Uint8Array(i.gzhead.extra);i.pending_buf.set(s.subarray(i.gzindex,i.gzindex+n),i.pending),i.pending+=n,i.gzhead.hcrc&&i.pending>e&&(t.adler=tz(t.adler,i.pending_buf,i.pending-e,e)),i.gzindex=0}i.status=73}if(73===i.status){if(i.gzhead.name){let e,n=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n)),ei(t),0!==i.pending)return i.last_flush=-1,t$;n=0}e=i.gzindexn&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=91}if(91===i.status){if(i.gzhead.comment){let e,n=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n)),ei(t),0!==i.pending)return i.last_flush=-1,t$;n=0}e=i.gzindexn&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n))}i.status=103}if(103===i.status){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size&&(ei(t),0!==i.pending))return i.last_flush=-1,t$;es(i,255&t.adler),es(i,t.adler>>8&255),t.adler=0}if(i.status=113,ei(t),0!==i.pending)return i.last_flush=-1,t$}if(0!==t.avail_in||0!==i.lookahead||e!==tq&&666!==i.status){let n=0===i.level?eh(i,e):i.strategy===t1?ep(i,e):i.strategy===t2?ed(i,e):eg[i.level].func(i,e);if((3===n||4===n)&&(i.status=666),1===n||3===n)return 0===t.avail_out&&(i.last_flush=-1),t$;if(2===n&&(e===tZ?tU(i):e!==tW&&(tV(i,0,0,!1),e===tH&&(t7(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ei(t),0===t.avail_out))return i.last_flush=-1,t$}return e!==tG?t$:i.wrap<=0?tK:(2===i.wrap?(es(i,255&t.adler),es(i,t.adler>>8&255),es(i,t.adler>>16&255),es(i,t.adler>>24&255),es(i,255&t.total_in),es(i,t.total_in>>8&255),es(i,t.total_in>>16&255),es(i,t.total_in>>24&255)):(er(i,t.adler>>>16),er(i,65535&t.adler)),ei(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?t$:tK)},deflateEnd:t=>{if(ev(t))return tJ;let e=t.state.status;return t.state=null,113===e?t9(t,tX):t$},deflateSetDictionary:(t,e)=>{let i=e.length;if(ev(t))return tJ;let n=t.state,s=n.wrap;if(2===s||1===s&&42!==n.status||n.lookahead)return tJ;if(1===s&&(t.adler=tN(t.adler,e,i,0)),n.wrap=0,i>=n.w_size){0===s&&(t7(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(i-n.w_size,i),0),e=t,i=n.w_size}let r=t.avail_in,a=t.next_in,o=t.input;for(t.avail_in=i,t.next_in=0,t.input=e,el(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do n.ins_h=ee(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++;while(--e)n.strstart=t,n.lookahead=2,el(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=a,t.input=o,t.avail_in=r,n.wrap=s,t$}};let ew=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var ek={assign:function(t){let e=Array.prototype.slice.call(arguments,1);for(;e.length;){let i=e.shift();if(i){if("object"!=typeof i)throw TypeError(i+"must be non-object");for(let e in i)ew(i,e)&&(t[e]=i[e])}}return t},flattenChunks:t=>{let e=0;for(let i=0,n=t.length;i=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;eC[254]=eC[254]=1;let eI=(t,e)=>{if(e<65534&&t.subarray&&eS)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let i="";for(let n=0;n{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,i,n,s,r,a=t.length,o=0;for(s=0;s>>6:(i<65536?e[r++]=224|i>>>12:(e[r++]=240|i>>>18,e[r++]=128|i>>>12&63),e[r++]=128|i>>>6&63),e[r++]=128|63&i);return e},buf2string:(t,e)=>{let i,n;let s=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let r=Array(2*s);for(n=0,i=0;i4){r[n++]=65533,i+=a-1;continue}for(e&=2===a?31:3===a?15:7;a>1&&i1){r[n++]=65533;continue}e<65536?r[n++]=e:(e-=65536,r[n++]=55296|e>>10&1023,r[n++]=56320|1023&e)}return eI(r,n)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let i=e-1;for(;i>=0&&(192&t[i])==128;)i--;return i<0||0===i?e:i+eC[t[i]]>e?i:e}},eE=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};let eA=Object.prototype.toString,{Z_NO_FLUSH:eP,Z_SYNC_FLUSH:eO,Z_FULL_FLUSH:eM,Z_FINISH:eN,Z_OK:eL,Z_STREAM_END:ez,Z_DEFAULT_COMPRESSION:eR,Z_DEFAULT_STRATEGY:eB,Z_DEFLATED:eD}=tB;function eV(t){this.options=ek.assign({level:eR,method:eD,chunkSize:16384,windowBits:15,memLevel:8,strategy:eB},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eE,this.strm.avail_out=0;let i=ex.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(i!==eL)throw Error(tR[i]);if(e.header&&ex.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?eT.string2buf(e.dictionary):"[object ArrayBuffer]"===eA.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(i=ex.deflateSetDictionary(this.strm,t))!==eL)throw Error(tR[i]);this._dict_set=!0}}function eF(t,e){let i=new eV(e);if(i.push(t,!0),i.err)throw i.msg||tR[i.err];return i.result}eV.prototype.push=function(t,e){let i,n;let s=this.strm,r=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?eN:eP,"string"==typeof t?s.input=eT.string2buf(t):"[object ArrayBuffer]"===eA.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;;){if(0===s.avail_out&&(s.output=new Uint8Array(r),s.next_out=0,s.avail_out=r),(n===eO||n===eM)&&s.avail_out<=6){this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;continue}if((i=ex.deflate(s,n))===ez)return s.next_out>0&&this.onData(s.output.subarray(0,s.next_out)),i=ex.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===eL;if(0===s.avail_out){this.onData(s.output);continue}if(n>0&&s.next_out>0){this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;continue}if(0===s.avail_in)break}return!0},eV.prototype.onData=function(t){this.chunks.push(t)},eV.prototype.onEnd=function(t){t===eL&&(this.result=ek.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ej=function(t,e){let i,n,s,r,a,o,l,h,u,c,d,p,f,g,m,_,v,y,b,x,w,k,S,C;let I=t.state;i=t.next_in,S=t.input,n=i+(t.avail_in-5),s=t.next_out,C=t.output,r=s-(e-t.avail_out),a=s+(t.avail_out-257),o=I.dmax,l=I.wsize,h=I.whave,u=I.wnext,c=I.window,d=I.hold,p=I.bits,f=I.lencode,g=I.distcode,m=(1<>>=y=v>>>24,p-=y,0==(y=v>>>16&255))C[s++]=65535&v;else if(16&y)for(b=65535&v,(y&=15)&&(p>>=y,p-=y),p<15&&(d+=S[i++]<>>=y=v>>>24,p-=y,16&(y=v>>>16&255)){if(x=65535&v,p<(y&=15)&&(d+=S[i++]<o){t.msg="invalid distance too far back",I.mode=16209;break i}if(d>>>=y,p-=y,x>(y=s-r)){if((y=x-y)>h&&I.sane){t.msg="invalid distance too far back",I.mode=16209;break i}if(w=0,k=c,0===u){if(w+=l-y,y2;)C[s++]=k[w++],C[s++]=k[w++],C[s++]=k[w++],b-=3;b&&(C[s++]=k[w++],b>1&&(C[s++]=k[w++]))}else{w=s-x;do C[s++]=C[w++],C[s++]=C[w++],C[s++]=C[w++],b-=3;while(b>2)b&&(C[s++]=C[w++],b>1&&(C[s++]=C[w++]))}}else if((64&y)==0){v=g[(65535&v)+(d&(1<>3,p-=b<<3,d&=(1<{let l,h,u,c,d,p,f,g,m;let _=o.bits,v=0,y=0,b=0,x=0,w=0,k=0,S=0,C=0,I=0,T=0,E=null,A=new Uint16Array(16),P=new Uint16Array(16),O=null;for(v=0;v<=15;v++)A[v]=0;for(y=0;y=1&&0===A[x];x--);if(w>x&&(w=x),0===x)return s[r++]=0x1400000,s[r++]=0x1400000,o.bits=1,0;for(b=1;b0&&(0===t||1!==x))return -1;for(v=1,P[1]=0;v<15;v++)P[v+1]=P[v]+A[v];for(y=0;y852||2===t&&I>592)return 1;for(;;){f=v-S,a[y]+1=p?(g=O[a[y]-p],m=E[a[y]-p]):(g=96,m=0),l=1<>S)+(h-=l)]=f<<24|g<<16|m|0;while(0!==h)for(l=1<>=1;if(0!==l?(T&=l-1,T+=l):T=0,y++,0==--A[v]){if(v===x)break;v=e[i+a[y]]}if(v>w&&(T&c)!==u){for(0===S&&(S=w),d+=b,C=1<<(k=v-S);k+S852||2===t&&I>592)return 1;s[u=T&c]=w<<24|k<<16|d-r|0}}return 0!==T&&(s[d+T]=v-S<<24|4194304),o.bits=w,0};let{Z_FINISH:eW,Z_BLOCK:e$,Z_TREES:eK,Z_OK:eJ,Z_STREAM_END:eX,Z_NEED_DICT:eY,Z_STREAM_ERROR:eQ,Z_DATA_ERROR:e0,Z_MEM_ERROR:e1,Z_BUF_ERROR:e2,Z_DEFLATED:e5}=tB,e3=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function e6(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}let e4=t=>{if(!t)return 1;let e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},e9=t=>{if(e4(t))return eQ;let e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,eJ},e8=t=>{if(e4(t))return eQ;let e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,e9(t)},e7=(t,e)=>{let i;if(e4(t))return eQ;let n=t.state;return(e<0?(i=0,e=-e):(i=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15))?eQ:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,e8(t))},it=!0,ie=t=>{if(it){n=new Int32Array(512),s=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(eG(1,t.lens,0,288,n,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;eG(2,t.lens,0,32,s,0,t.work,{bits:5}),it=!1}t.lencode=n,t.lenbits=9,t.distcode=s,t.distbits=5},ii=(t,e,i,n)=>{let s;let r=t.state;return null===r.window&&(r.wsize=1<=r.wsize?(r.window.set(e.subarray(i-r.wsize,i),0),r.wnext=0,r.whave=r.wsize):((s=r.wsize-r.wnext)>n&&(s=n),r.window.set(e.subarray(i-n,i-n+s),r.wnext),(n-=s)?(r.window.set(e.subarray(i-n,i),0),r.wnext=n,r.whave=r.wsize):(r.wnext+=s,r.wnext===r.wsize&&(r.wnext=0),r.whave{if(!t)return eQ;let i=new e6;t.state=i,i.strm=t,i.window=null,i.mode=16180;let n=e7(t,e);return n!==eJ&&(t.state=null),n},inflate:(t,e)=>{let i,n,s,r,a,o,l,h,u,c,d,p,f,g,m,_,v,y,b,x,w,k,S,C;let I=0,T=new Uint8Array(4),E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(e4(t)||!t.output||!t.input&&0!==t.avail_in)return eQ;16191===(i=t.state).mode&&(i.mode=16192),a=t.next_out,s=t.output,l=t.avail_out,r=t.next_in,n=t.input,o=t.avail_in,h=i.hold,u=i.bits,c=o,d=l,k=eJ;n:for(;;)switch(i.mode){case 16180:if(0===i.wrap){i.mode=16192;break}for(;u<16;){if(0===o)break n;o--,h+=n[r++]<>>8&255,i.check=tz(i.check,T,2,0),h=0,u=0,i.mode=16181;break}if(i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",i.mode=16209;break}if((15&h)!==e5){t.msg="unknown compression method",i.mode=16209;break}if(h>>>=4,u-=4,w=(15&h)+8,0===i.wbits&&(i.wbits=w),w>15||w>i.wbits){t.msg="invalid window size",i.mode=16209;break}i.dmax=1<>8&1),512&i.flags&&4&i.wrap&&(T[0]=255&h,T[1]=h>>>8&255,i.check=tz(i.check,T,2,0)),h=0,u=0,i.mode=16182;case 16182:for(;u<32;){if(0===o)break n;o--,h+=n[r++]<>>8&255,T[2]=h>>>16&255,T[3]=h>>>24&255,i.check=tz(i.check,T,4,0)),h=0,u=0,i.mode=16183;case 16183:for(;u<16;){if(0===o)break n;o--,h+=n[r++]<>8),512&i.flags&&4&i.wrap&&(T[0]=255&h,T[1]=h>>>8&255,i.check=tz(i.check,T,2,0)),h=0,u=0,i.mode=16184;case 16184:if(1024&i.flags){for(;u<16;){if(0===o)break n;o--,h+=n[r++]<>>8&255,i.check=tz(i.check,T,2,0)),h=0,u=0}else i.head&&(i.head.extra=null);i.mode=16185;case 16185:if(1024&i.flags&&((p=i.length)>o&&(p=o),p&&(i.head&&(w=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(n.subarray(r,r+p),w)),512&i.flags&&4&i.wrap&&(i.check=tz(i.check,n,p,r)),o-=p,r+=p,i.length-=p),i.length))break n;i.length=0,i.mode=16186;case 16186:if(2048&i.flags){if(0===o)break n;p=0;do w=n[r+p++],i.head&&w&&i.length<65536&&(i.head.name+=String.fromCharCode(w));while(w&&p>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=16191;break;case 16189:for(;u<32;){if(0===o)break n;o--,h+=n[r++]<>>=7&u,u-=7&u,i.mode=16206;break}for(;u<3;){if(0===o)break n;o--,h+=n[r++]<>>=1)){case 0:i.mode=16193;break;case 1:if(ie(i),i.mode=16199,e===eK){h>>>=2,u-=2;break n}break;case 2:i.mode=16196;break;case 3:t.msg="invalid block type",i.mode=16209}h>>>=2,u-=2;break;case 16193:for(h>>>=7&u,u-=7&u;u<32;){if(0===o)break n;o--,h+=n[r++]<>>16^65535)){t.msg="invalid stored block lengths",i.mode=16209;break}if(i.length=65535&h,h=0,u=0,i.mode=16194,e===eK)break n;case 16194:i.mode=16195;case 16195:if(p=i.length){if(p>o&&(p=o),p>l&&(p=l),0===p)break n;s.set(n.subarray(r,r+p),a),o-=p,r+=p,l-=p,a+=p,i.length-=p;break}i.mode=16191;break;case 16196:for(;u<14;){if(0===o)break n;o--,h+=n[r++]<>>=5,u-=5,i.ndist=(31&h)+1,h>>>=5,u-=5,i.ncode=(15&h)+4,h>>>=4,u-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=16209;break}i.have=0,i.mode=16197;case 16197:for(;i.have>>=3,u-=3}for(;i.have<19;)i.lens[E[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,S={bits:i.lenbits},k=eG(0,i.lens,0,19,i.lencode,0,i.work,S),i.lenbits=S.bits,k){t.msg="invalid code lengths set",i.mode=16209;break}i.have=0,i.mode=16198;case 16198:for(;i.have>>24,_=I>>>16&255,v=65535&I,!(m<=u);){if(0===o)break n;o--,h+=n[r++]<>>=m,u-=m,i.lens[i.have++]=v;else{if(16===v){for(C=m+2;u>>=m,u-=m,0===i.have){t.msg="invalid bit length repeat",i.mode=16209;break}w=i.lens[i.have-1],p=3+(3&h),h>>>=2,u-=2}else if(17===v){for(C=m+3;u>>=m,u-=m,w=0,p=3+(7&h),h>>>=3,u-=3}else{for(C=m+7;u>>=m,u-=m,w=0,p=11+(127&h),h>>>=7,u-=7}if(i.have+p>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=16209;break}for(;p--;)i.lens[i.have++]=w}}if(16209===i.mode)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=16209;break}if(i.lenbits=9,S={bits:i.lenbits},k=eG(1,i.lens,0,i.nlen,i.lencode,0,i.work,S),i.lenbits=S.bits,k){t.msg="invalid literal/lengths set",i.mode=16209;break}if(i.distbits=6,i.distcode=i.distdyn,S={bits:i.distbits},k=eG(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,S),i.distbits=S.bits,k){t.msg="invalid distances set",i.mode=16209;break}if(i.mode=16199,e===eK)break n;case 16199:i.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=r,t.avail_in=o,i.hold=h,i.bits=u,ej(t,d),a=t.next_out,s=t.output,l=t.avail_out,r=t.next_in,n=t.input,o=t.avail_in,h=i.hold,u=i.bits,16191===i.mode&&(i.back=-1);break}for(i.back=0;m=(I=i.lencode[h&(1<>>24,_=I>>>16&255,v=65535&I,!(m<=u);){if(0===o)break n;o--,h+=n[r++]<>y)])>>>24,_=I>>>16&255,v=65535&I,!(y+m<=u);){if(0===o)break n;o--,h+=n[r++]<>>=y,u-=y,i.back+=y}if(h>>>=m,u-=m,i.back+=m,i.length=v,0===_){i.mode=16205;break}if(32&_){i.back=-1,i.mode=16191;break}if(64&_){t.msg="invalid literal/length code",i.mode=16209;break}i.extra=15&_,i.mode=16201;case 16201:if(i.extra){for(C=i.extra;u>>=i.extra,u-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=16202;case 16202:for(;m=(I=i.distcode[h&(1<>>24,_=I>>>16&255,v=65535&I,!(m<=u);){if(0===o)break n;o--,h+=n[r++]<>y)])>>>24,_=I>>>16&255,v=65535&I,!(y+m<=u);){if(0===o)break n;o--,h+=n[r++]<>>=y,u-=y,i.back+=y}if(h>>>=m,u-=m,i.back+=m,64&_){t.msg="invalid distance code",i.mode=16209;break}i.offset=v,i.extra=15&_,i.mode=16203;case 16203:if(i.extra){for(C=i.extra;u>>=i.extra,u-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=16209;break}i.mode=16204;case 16204:if(0===l)break n;if(p=d-l,i.offset>p){if((p=i.offset-p)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=16209;break}p>i.wnext?(p-=i.wnext,f=i.wsize-p):f=i.wnext-p,p>i.length&&(p=i.length),g=i.window}else g=s,f=a-i.offset,p=i.length;p>l&&(p=l),l-=p,i.length-=p;do s[a++]=g[f++];while(--p)0===i.length&&(i.mode=16200);break;case 16205:if(0===l)break n;s[a++]=i.length,l--,i.mode=16200;break;case 16206:if(i.wrap){for(;u<32;){if(0===o)break n;o--,h|=n[r++]<{if(e4(t))return eQ;let e=t.state;return e.window&&(e.window=null),t.state=null,eJ},inflateGetHeader:(t,e)=>{if(e4(t))return eQ;let i=t.state;return(2&i.wrap)==0?eQ:(i.head=e,e.done=!1,eJ)},inflateSetDictionary:(t,e)=>{let i;let n=e.length;return e4(t)||0!==(i=t.state).wrap&&16190!==i.mode?eQ:16190===i.mode&&tN(1,e,n,0)!==i.check?e0:ii(t,e,n,n)?(i.mode=16210,e1):(i.havedict=1,eJ)}},ir=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};let ia=Object.prototype.toString,{Z_NO_FLUSH:io,Z_FINISH:il,Z_OK:ih,Z_STREAM_END:iu,Z_NEED_DICT:ic,Z_STREAM_ERROR:id,Z_DATA_ERROR:ip,Z_MEM_ERROR:ig}=tB;function im(t){this.options=ek.assign({chunkSize:65536,windowBits:15,to:""},t||{});let e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits)==0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eE,this.strm.avail_out=0;let i=is.inflateInit2(this.strm,e.windowBits);if(i!==ih||(this.header=new ir,is.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=eT.string2buf(e.dictionary):"[object ArrayBuffer]"===ia.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(i=is.inflateSetDictionary(this.strm,e.dictionary))!==ih)))throw Error(tR[i])}function i_(t,e){let i=new im(e);if(i.push(t),i.err)throw i.msg||tR[i.err];return i.result}im.prototype.push=function(t,e){let i,n,s;let r=this.strm,a=this.options.chunkSize,o=this.options.dictionary;if(this.ended)return!1;for(n=e===~~e?e:!0===e?il:io,"[object ArrayBuffer]"===ia.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),(i=is.inflate(r,n))===ic&&o&&((i=is.inflateSetDictionary(r,o))===ih?i=is.inflate(r,n):i===ip&&(i=ic));r.avail_in>0&&i===iu&&r.state.wrap>0&&0!==t[r.next_in];)is.inflateReset(r),i=is.inflate(r,n);switch(i){case id:case ip:case ic:case ig:return this.onEnd(i),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||i===iu)){if("string"===this.options.to){let t=eT.utf8border(r.output,r.next_out),e=r.next_out-t,i=eT.buf2string(r.output,t);r.next_out=e,r.avail_out=a-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out))}if(i!==ih||0!==s){if(i===iu)return i=is.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},im.prototype.onData=function(t){this.chunks.push(t)},im.prototype.onEnd=function(t){t===ih&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=ek.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};let{Deflate:iv,deflate:iy,deflateRaw:ib,gzip:ix}={Deflate:eV,deflate:eF,deflateRaw:function(t,e){return(e=e||{}).raw=!0,eF(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,eF(t,e)},constants:tB},{Inflate:iw,inflate:ik,inflateRaw:iS,ungzip:iC}={Inflate:im,inflate:i_,inflateRaw:function(t,e){return(e=e||{}).raw=!0,i_(t,e)},ungzip:i_,constants:tB};var iI=(t,e=0,i=1)=>iN(iL(e,t),i),iT=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=iI(t[e],0,255)):3===e&&(t[e]=iI(t[e],0,1));return t};let iE={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])iE[`[object ${t}]`]=t.toLowerCase();function iA(t){return iE[Object.prototype.toString.call(t)]||"object"}var iP=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):"object"==iA(t[0])&&e?e.split("").filter(e=>void 0!==t[0][e]).map(e=>t[0][e]):t[0],iO=t=>{if(t.length<2)return null;let e=t.length-1;return"string"==iA(t[e])?t[e].toLowerCase():null};let{PI:iM,min:iN,max:iL}=Math,iz=2*iM,iR=iM/3,iB=iM/180,iD=180/iM;var iV={format:{},autodetect:[]},iF=class{constructor(...t){if("object"===iA(t[0])&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];let e=iO(t),i=!1;if(!e){for(let n of(i=!0,iV.sorted||(iV.autodetect=iV.autodetect.sort((t,e)=>e.p-t.p),iV.sorted=!0),iV.autodetect))if(e=n.test(...t))break}if(iV.format[e]){let n=iV.format[e].apply(null,i?t:t.slice(0,-1));this._rgb=iT(n)}else throw Error("unknown format: "+t);3===this._rgb.length&&this._rgb.push(1)}toString(){return"function"==iA(this.hex)?this.hex():`[${this._rgb.join(",")}]`}};let ij=(...t)=>new ij.Color(...t);ij.Color=iF,ij.version="2.6.0";let{max:iU}=Math;var iq=(...t)=>{let[e,i,n]=iP(t,"rgb"),s=1-iU(e/=255,iU(i/=255,n/=255)),r=s<1?1/(1-s):0;return[(1-e-s)*r,(1-i-s)*r,(1-n-s)*r,s]};iF.prototype.cmyk=function(){return iq(this._rgb)},ij.cmyk=(...t)=>new iF(...t,"cmyk"),iV.format.cmyk=(...t)=>{let[e,i,n,s]=t=iP(t,"cmyk"),r=t.length>4?t[4]:1;return 1===s?[0,0,0,r]:[e>=1?0:255*(1-e)*(1-s),i>=1?0:255*(1-i)*(1-s),n>=1?0:255*(1-n)*(1-s),r]},iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"cmyk"))&&4===t.length)return"cmyk"}});let iZ=t=>Math.round(100*t)/100;var iH=(...t)=>{let e=iP(t,"hsla"),i=iO(t)||"lsa";return e[0]=iZ(e[0]||0),e[1]=iZ(100*e[1])+"%",e[2]=iZ(100*e[2])+"%","hsla"===i||e.length>3&&e[3]<1?(e[3]=e.length>3?e[3]:1,i="hsla"):e.length=3,`${i}(${e.join(",")})`},iG=(...t)=>{let e,i;let[n,s,r]=t=iP(t,"rgba"),a=iN(n/=255,s/=255,r/=255),o=iL(n,s,r),l=(o+a)/2;return(o===a?(e=0,i=Number.NaN):e=l<.5?(o-a)/(o+a):(o-a)/(2-o-a),n==o?i=(s-r)/(o-a):s==o?i=2+(r-n)/(o-a):r==o&&(i=4+(n-s)/(o-a)),(i*=60)<0&&(i+=360),t.length>3&&void 0!==t[3])?[i,e,l,t[3]]:[i,e,l]};let{round:iW}=Math;var i$=(...t)=>{let e=iP(t,"rgba"),i=iO(t)||"rgb";return"hsl"==i.substr(0,3)?iH(iG(e),i):(e[0]=iW(e[0]),e[1]=iW(e[1]),e[2]=iW(e[2]),("rgba"===i||e.length>3&&e[3]<1)&&(e[3]=e.length>3?e[3]:1,i="rgba"),`${i}(${e.slice(0,"rgb"===i?3:4).join(",")})`)};let{round:iK}=Math;var iJ=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hsl");if(0===r)e=i=n=255*a;else{let t=[0,0,0],o=[0,0,0],l=a<.5?a*(1+r):a+r-a*r,h=2*a-l,u=s/360;t[0]=u+1/3,t[1]=u,t[2]=u-1/3;for(let e=0;e<3;e++)t[e]<0&&(t[e]+=1),t[e]>1&&(t[e]-=1),6*t[e]<1?o[e]=h+(l-h)*6*t[e]:2*t[e]<1?o[e]=l:3*t[e]<2?o[e]=h+(l-h)*(2/3-t[e])*6:o[e]=h;[e,i,n]=[iK(255*o[0]),iK(255*o[1]),iK(255*o[2])]}return t.length>3?[e,i,n,t[3]]:[e,i,n,1]};let iX=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,iY=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,iQ=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,i0=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,i1=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,i2=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:i5}=Math,i3=t=>{let e;if(t=t.toLowerCase().trim(),iV.format.named)try{return iV.format.named(t)}catch(t){}if(e=t.match(iX)){let t=e.slice(1,4);for(let e=0;e<3;e++)t[e]=+t[e];return t[3]=1,t}if(e=t.match(iY)){let t=e.slice(1,5);for(let e=0;e<4;e++)t[e]=+t[e];return t}if(e=t.match(iQ)){let t=e.slice(1,4);for(let e=0;e<3;e++)t[e]=i5(2.55*t[e]);return t[3]=1,t}if(e=t.match(i0)){let t=e.slice(1,5);for(let e=0;e<3;e++)t[e]=i5(2.55*t[e]);return t[3]=+t[3],t}if(e=t.match(i1)){let t=e.slice(1,4);t[1]*=.01,t[2]*=.01;let i=iJ(t);return i[3]=1,i}if(e=t.match(i2)){let t=e.slice(1,4);t[1]*=.01,t[2]*=.01;let i=iJ(t);return i[3]=+e[4],i}};i3.test=t=>iX.test(t)||iY.test(t)||iQ.test(t)||i0.test(t)||i1.test(t)||i2.test(t),iF.prototype.css=function(t){return i$(this._rgb,t)},ij.css=(...t)=>new iF(...t,"css"),iV.format.css=i3,iV.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&"string"===iA(t)&&i3.test(t))return"css"}}),iV.format.gl=(...t)=>{let e=iP(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e},ij.gl=(...t)=>new iF(...t,"gl"),iF.prototype.gl=function(){let t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};let{floor:i6}=Math;var i4=(...t)=>{let e;let[i,n,s]=iP(t,"rgb"),r=iN(i,n,s),a=iL(i,n,s),o=a-r;return 0===o?e=Number.NaN:(i===a&&(e=(n-s)/o),n===a&&(e=2+(s-i)/o),s===a&&(e=4+(i-n)/o),(e*=60)<0&&(e+=360)),[e,100*o/255,r/(255-o)*100]};iF.prototype.hcg=function(){return i4(this._rgb)},ij.hcg=(...t)=>new iF(...t,"hcg"),iV.format.hcg=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hcg");a*=255;let o=255*r;if(0===r)e=i=n=a;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);let t=i6(s/=60),l=s-t,h=a*(1-r),u=h+o*(1-l),c=h+o*l,d=h+o;switch(t){case 0:[e,i,n]=[d,c,h];break;case 1:[e,i,n]=[u,d,h];break;case 2:[e,i,n]=[h,d,c];break;case 3:[e,i,n]=[h,u,d];break;case 4:[e,i,n]=[c,h,d];break;case 5:[e,i,n]=[d,h,u]}}return[e,i,n,t.length>3?t[3]:1]},iV.autodetect.push({p:1,test:(...t)=>{if("array"===iA(t=iP(t,"hcg"))&&3===t.length)return"hcg"}});let i9=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,i8=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;var i7=t=>{if(t.match(i9)){(4===t.length||7===t.length)&&(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);let e=parseInt(t,16);return[e>>16,e>>8&255,255&e,1]}if(t.match(i8)){(5===t.length||9===t.length)&&(t=t.substr(1)),4===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);let e=parseInt(t,16),i=Math.round((255&e)/255*100)/100;return[e>>24&255,e>>16&255,e>>8&255,i]}throw Error(`unknown hex color: ${t}`)};let{round:nt}=Math;var ne=(...t)=>{let[e,i,n,s]=iP(t,"rgba"),r=iO(t)||"auto";void 0===s&&(s=1),"auto"===r&&(r=s<1?"rgba":"rgb");let a="000000"+((e=nt(e))<<16|(i=nt(i))<<8|(n=nt(n))).toString(16);a=a.substr(a.length-6);let o="0"+nt(255*s).toString(16);switch(o=o.substr(o.length-2),r.toLowerCase()){case"rgba":return`#${a}${o}`;case"argb":return`#${o}${a}`;default:return`#${a}`}};iF.prototype.hex=function(t){return ne(this._rgb,t)},ij.hex=(...t)=>new iF(...t,"hex"),iV.format.hex=i7,iV.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&"string"===iA(t)&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});let{cos:ni}=Math,{min:nn,sqrt:ns,acos:nr}=Math;var na=(...t)=>{let e,[i,n,s]=iP(t,"rgb"),r=nn(i/=255,n/=255,s/=255),a=(i+n+s)/3,o=a>0?1-r/a:0;return 0===o?e=NaN:(e=nr(e=(i-n+(i-s))/2/ns((i-n)*(i-n)+(i-s)*(n-s))),s>n&&(e=iz-e),e/=iz),[360*e,o,a]};iF.prototype.hsi=function(){return na(this._rgb)},ij.hsi=(...t)=>new iF(...t,"hsi"),iV.format.hsi=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hsi");return isNaN(s)&&(s=0),isNaN(r)&&(r=0),s>360&&(s-=360),s<0&&(s+=360),(s/=360)<1/3?i=1-((n=(1-r)/3)+(e=(1+r*ni(iz*s)/ni(iR-iz*s))/3)):s<2/3?(s-=1/3,n=1-((e=(1-r)/3)+(i=(1+r*ni(iz*s)/ni(iR-iz*s))/3))):(s-=2/3,e=1-((i=(1-r)/3)+(n=(1+r*ni(iz*s)/ni(iR-iz*s))/3))),[255*(e=iI(a*e*3)),255*(i=iI(a*i*3)),255*(n=iI(a*n*3)),t.length>3?t[3]:1]},iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"hsi"))&&3===t.length)return"hsi"}}),iF.prototype.hsl=function(){return iG(this._rgb)},ij.hsl=(...t)=>new iF(...t,"hsl"),iV.format.hsl=iJ,iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"hsl"))&&3===t.length)return"hsl"}});let{floor:no}=Math,{min:nl,max:nh}=Math;var nu=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"rgb"),o=nl(s,r,a),l=nh(s,r,a),h=l-o;return n=l/255,0===l?(e=Number.NaN,i=0):(i=h/l,s===l&&(e=(r-a)/h),r===l&&(e=2+(a-s)/h),a===l&&(e=4+(s-r)/h),(e*=60)<0&&(e+=360)),[e,i,n]};iF.prototype.hsv=function(){return nu(this._rgb)},ij.hsv=(...t)=>new iF(...t,"hsv"),iV.format.hsv=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hsv");if(a*=255,0===r)e=i=n=a;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);let t=no(s/=60),o=s-t,l=a*(1-r),h=a*(1-r*o),u=a*(1-r*(1-o));switch(t){case 0:[e,i,n]=[a,u,l];break;case 1:[e,i,n]=[h,a,l];break;case 2:[e,i,n]=[l,a,u];break;case 3:[e,i,n]=[l,h,a];break;case 4:[e,i,n]=[u,l,a];break;case 5:[e,i,n]=[a,l,h]}}return[e,i,n,t.length>3?t[3]:1]},iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"hsv"))&&3===t.length)return"hsv"}});var nc={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452};let{pow:nd}=Math,np=t=>255*(t<=.00304?12.92*t:1.055*nd(t,1/2.4)-.055),nf=t=>t>nc.t1?t*t*t:nc.t2*(t-nc.t0);var ng=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"lab");return i=(s+16)/116,e=isNaN(r)?i:i+r/500,n=isNaN(a)?i:i-a/200,i=nc.Yn*nf(i),[np(3.2404542*(e=nc.Xn*nf(e))-1.5371385*i-.4985314*(n=nc.Zn*nf(n))),np(-.969266*e+1.8760108*i+.041556*n),np(.0556434*e-.2040259*i+1.0572252*n),t.length>3?t[3]:1]};let{pow:nm}=Math,n_=t=>(t/=255)<=.04045?t/12.92:nm((t+.055)/1.055,2.4),nv=t=>t>nc.t3?nm(t,1/3):t/nc.t2+nc.t0,ny=(t,e,i)=>[nv((.4124564*(t=n_(t))+.3575761*(e=n_(e))+.1804375*(i=n_(i)))/nc.Xn),nv((.2126729*t+.7151522*e+.072175*i)/nc.Yn),nv((.0193339*t+.119192*e+.9503041*i)/nc.Zn)];var nb=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=ny(e,i,n),o=116*r-16;return[o<0?0:o,500*(s-r),200*(r-a)]};iF.prototype.lab=function(){return nb(this._rgb)},ij.lab=(...t)=>new iF(...t,"lab"),iV.format.lab=ng,iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"lab"))&&3===t.length)return"lab"}});let{sin:nx,cos:nw}=Math;var nk=(...t)=>{let[e,i,n]=iP(t,"lch");return isNaN(n)&&(n=0),[e,nw(n*=iB)*i,nx(n)*i]},nS=(...t)=>{let[e,i,n]=t=iP(t,"lch"),[s,r,a]=nk(e,i,n),[o,l,h]=ng(s,r,a);return[o,l,h,t.length>3?t[3]:1]};let{sqrt:nC,atan2:nI,round:nT}=Math;var nE=(...t)=>{let[e,i,n]=iP(t,"lab"),s=nC(i*i+n*n),r=(nI(n,i)*iD+360)%360;return 0===nT(1e4*s)&&(r=Number.NaN),[e,s,r]},nA=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=nb(e,i,n);return nE(s,r,a)};iF.prototype.lch=function(){return nA(this._rgb)},iF.prototype.hcl=function(){return nA(this._rgb).reverse()},ij.lch=(...t)=>new iF(...t,"lch"),ij.hcl=(...t)=>new iF(...t,"hcl"),iV.format.lch=nS,iV.format.hcl=(...t)=>nS(...iP(t,"hcl").reverse()),["lch","hcl"].forEach(t=>iV.autodetect.push({p:2,test:(...e)=>{if("array"===iA(e=iP(e,t))&&3===e.length)return t}}));var nP={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};iF.prototype.name=function(){let t=ne(this._rgb,"rgb");for(let e of Object.keys(nP))if(nP[e]===t)return e.toLowerCase();return t},iV.format.named=t=>{if(nP[t=t.toLowerCase()])return i7(nP[t]);throw Error("unknown color name: "+t)},iV.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&"string"===iA(t)&&nP[t.toLowerCase()])return"named"}});var nO=(...t)=>{let[e,i,n]=iP(t,"rgb");return(e<<16)+(i<<8)+n};iF.prototype.num=function(){return nO(this._rgb)},ij.num=(...t)=>new iF(...t,"num"),iV.format.num=t=>{if("number"==iA(t)&&t>=0&&t<=0xffffff)return[t>>16,t>>8&255,255&t,1];throw Error("unknown num color: "+t)},iV.autodetect.push({p:5,test:(...t)=>{if(1===t.length&&"number"===iA(t[0])&&t[0]>=0&&t[0]<=0xffffff)return"num"}});let{round:nM}=Math;iF.prototype.rgb=function(t=!0){return!1===t?this._rgb.slice(0,3):this._rgb.slice(0,3).map(nM)},iF.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,i)=>i<3?!1===t?e:nM(e):e)},ij.rgb=(...t)=>new iF(...t,"rgb"),iV.format.rgb=(...t)=>{let e=iP(t,"rgba");return void 0===e[3]&&(e[3]=1),e},iV.autodetect.push({p:3,test:(...t)=>{if("array"===iA(t=iP(t,"rgba"))&&(3===t.length||4===t.length&&"number"==iA(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}});let{log:nN}=Math;var nL=t=>{let e,i,n;let s=t/100;return s<66?(e=255,i=s<6?0:-155.25485562709179-.44596950469579133*(i=s-2)+104.49216199393888*nN(i),n=s<20?0:-254.76935184120902+.8274096064007395*(n=s-10)+115.67994401066147*nN(n)):(e=351.97690566805693+.114206453784165*(e=s-55)-40.25366309332127*nN(e),i=325.4494125711974+.07943456536662342*(i=s-50)-28.0852963507957*nN(i),n=255),[e,i,n,1]};let{round:nz}=Math;var nR=(...t)=>{let e;let i=iP(t,"rgb"),n=i[0],s=i[2],r=1e3,a=4e4;for(;a-r>.4;){let t=nL(e=(a+r)*.5);t[2]/t[0]>=s/n?a=e:r=e}return nz(e)};iF.prototype.temp=iF.prototype.kelvin=iF.prototype.temperature=function(){return nR(this._rgb)},ij.temp=ij.kelvin=ij.temperature=(...t)=>new iF(...t,"temp"),iV.format.temp=iV.format.kelvin=iV.format.temperature=nL;let{pow:nB,sign:nD}=Math;var nV=(...t)=>{let[e,i,n]=t=iP(t,"lab"),s=nB(e+.3963377774*i+.2158037573*n,3),r=nB(e-.1055613458*i-.0638541728*n,3),a=nB(e-.0894841775*i-1.291485548*n,3);return[255*nF(4.0767416621*s-3.3077115913*r+.2309699292*a),255*nF(-1.2684380046*s+2.6097574011*r-.3413193965*a),255*nF(-.0041960863*s-.7034186147*r+1.707614701*a),t.length>3?t[3]:1]};function nF(t){let e=Math.abs(t);return e>.0031308?(nD(t)||1)*(1.055*nB(e,1/2.4)-.055):12.92*t}let{cbrt:nj,pow:nU,sign:nq}=Math;var nZ=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=[nH(e/255),nH(i/255),nH(n/255)],o=nj(.4122214708*s+.5363325363*r+.0514459929*a),l=nj(.2119034982*s+.6806995451*r+.1073969566*a),h=nj(.0883024619*s+.2817188376*r+.6299787005*a);return[.2104542553*o+.793617785*l-.0040720468*h,1.9779984951*o-2.428592205*l+.4505937099*h,.0259040371*o+.7827717662*l-.808675766*h]};function nH(t){let e=Math.abs(t);return e<.04045?t/12.92:(nq(t)||1)*nU((e+.055)/1.055,2.4)}iF.prototype.oklab=function(){return nZ(this._rgb)},ij.oklab=(...t)=>new iF(...t,"oklab"),iV.format.oklab=nV,iV.autodetect.push({p:3,test:(...t)=>{if("array"===iA(t=iP(t,"oklab"))&&3===t.length)return"oklab"}});var nG=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=nZ(e,i,n);return nE(s,r,a)};iF.prototype.oklch=function(){return nG(this._rgb)},ij.oklch=(...t)=>new iF(...t,"oklch"),iV.format.oklch=(...t)=>{let[e,i,n]=t=iP(t,"lch"),[s,r,a]=nk(e,i,n),[o,l,h]=nV(s,r,a);return[o,l,h,t.length>3?t[3]:1]},iV.autodetect.push({p:3,test:(...t)=>{if("array"===iA(t=iP(t,"oklch"))&&3===t.length)return"oklch"}}),iF.prototype.alpha=function(t,e=!1){return void 0!==t&&"number"===iA(t)?e?(this._rgb[3]=t,this):new iF([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]},iF.prototype.clipped=function(){return this._rgb._clipped||!1},iF.prototype.darken=function(t=1){let e=this.lab();return e[0]-=nc.Kn*t,new iF(e,"lab").alpha(this.alpha(),!0)},iF.prototype.brighten=function(t=1){return this.darken(-t)},iF.prototype.darker=iF.prototype.darken,iF.prototype.brighter=iF.prototype.brighten,iF.prototype.get=function(t){let[e,i]=t.split("."),n=this[e]();if(!i)return n;{let t=e.indexOf(i)-("ok"===e.substr(0,2)?2:0);if(t>-1)return n[t];throw Error(`unknown channel ${i} in mode ${e}`)}};let{pow:nW}=Math;iF.prototype.luminance=function(t,e="rgb"){if(void 0!==t&&"number"===iA(t)){if(0===t)return new iF([0,0,0,this._rgb[3]],"rgb");if(1===t)return new iF([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),n=20,s=(i,r)=>{let a=i.interpolate(r,.5,e),o=a.luminance();return!(1e-7>Math.abs(t-o))&&n--?o>t?s(i,a):s(a,r):a},r=(i>t?s(new iF([0,0,0]),this):s(this,new iF([255,255,255]))).rgb();return new iF([...r,this._rgb[3]])}return n$(...this._rgb.slice(0,3))};let n$=(t,e,i)=>.2126*(t=nK(t))+.7152*(e=nK(e))+.0722*(i=nK(i)),nK=t=>(t/=255)<=.03928?t/12.92:nW((t+.055)/1.055,2.4);var nJ={},nX=(t,e,i=.5,...n)=>{let s=n[0]||"lrgb";if(nJ[s]||n.length||(s=Object.keys(nJ)[0]),!nJ[s])throw Error(`interpolation mode ${s} is not defined`);return"object"!==iA(t)&&(t=new iF(t)),"object"!==iA(e)&&(e=new iF(e)),nJ[s](t,e,i).alpha(t.alpha()+i*(e.alpha()-t.alpha()))};iF.prototype.mix=iF.prototype.interpolate=function(t,e=.5,...i){return nX(this,t,e,...i)},iF.prototype.premultiply=function(t=!1){let e=this._rgb,i=e[3];return t?(this._rgb=[e[0]*i,e[1]*i,e[2]*i,i],this):new iF([e[0]*i,e[1]*i,e[2]*i,i],"rgb")},iF.prototype.saturate=function(t=1){let e=this.lch();return e[1]+=nc.Kn*t,e[1]<0&&(e[1]=0),new iF(e,"lch").alpha(this.alpha(),!0)},iF.prototype.desaturate=function(t=1){return this.saturate(-t)},iF.prototype.set=function(t,e,i=!1){let[n,s]=t.split("."),r=this[n]();if(!s)return r;{let t=n.indexOf(s)-("ok"===n.substr(0,2)?2:0);if(t>-1){if("string"==iA(e))switch(e.charAt(0)){case"+":case"-":r[t]+=+e;break;case"*":r[t]*=+e.substr(1);break;case"/":r[t]/=+e.substr(1);break;default:r[t]=+e}else if("number"===iA(e))r[t]=e;else throw Error("unsupported value for Color.set");let s=new iF(r,n);return i?(this._rgb=s._rgb,this):s}throw Error(`unknown channel ${s} in mode ${n}`)}},iF.prototype.tint=function(t=.5,...e){return nX(this,"white",t,...e)},iF.prototype.shade=function(t=.5,...e){return nX(this,"black",t,...e)},nJ.rgb=(t,e,i)=>{let n=t._rgb,s=e._rgb;return new iF(n[0]+i*(s[0]-n[0]),n[1]+i*(s[1]-n[1]),n[2]+i*(s[2]-n[2]),"rgb")};let{sqrt:nY,pow:nQ}=Math;nJ.lrgb=(t,e,i)=>{let[n,s,r]=t._rgb,[a,o,l]=e._rgb;return new iF(nY(nQ(n,2)*(1-i)+nQ(a,2)*i),nY(nQ(s,2)*(1-i)+nQ(o,2)*i),nY(nQ(r,2)*(1-i)+nQ(l,2)*i),"rgb")},nJ.lab=(t,e,i)=>{let n=t.lab(),s=e.lab();return new iF(n[0]+i*(s[0]-n[0]),n[1]+i*(s[1]-n[1]),n[2]+i*(s[2]-n[2]),"lab")};var n0=(t,e,i,n)=>{let s,r,a,o,l,h,u,c,d,p,f,g;return"hsl"===n?(s=t.hsl(),r=e.hsl()):"hsv"===n?(s=t.hsv(),r=e.hsv()):"hcg"===n?(s=t.hcg(),r=e.hcg()):"hsi"===n?(s=t.hsi(),r=e.hsi()):"lch"===n||"hcl"===n?(n="hcl",s=t.hcl(),r=e.hcl()):"oklch"===n&&(s=t.oklch().reverse(),r=e.oklch().reverse()),("h"===n.substr(0,1)||"oklch"===n)&&([a,l,u]=s,[o,h,c]=r),isNaN(a)||isNaN(o)?isNaN(a)?isNaN(o)?p=Number.NaN:(p=o,(1==u||0==u)&&"hsv"!=n&&(d=h)):(p=a,(1==c||0==c)&&"hsv"!=n&&(d=l)):(g=o>a&&o-a>180?o-(a+360):o180?o+360-a:o-a,p=a+i*g),void 0===d&&(d=l+i*(h-l)),f=u+i*(c-u),"oklch"===n?new iF([f,d,p],n):new iF([p,d,f],n)};let n1=(t,e,i)=>n0(t,e,i,"lch");nJ.lch=n1,nJ.hcl=n1,nJ.num=(t,e,i)=>{let n=t.num();return new iF(n+i*(e.num()-n),"num")},nJ.hcg=(t,e,i)=>n0(t,e,i,"hcg"),nJ.hsi=(t,e,i)=>n0(t,e,i,"hsi"),nJ.hsl=(t,e,i)=>n0(t,e,i,"hsl"),nJ.hsv=(t,e,i)=>n0(t,e,i,"hsv"),nJ.oklab=(t,e,i)=>{let n=t.oklab(),s=e.oklab();return new iF(n[0]+i*(s[0]-n[0]),n[1]+i*(s[1]-n[1]),n[2]+i*(s[2]-n[2]),"oklab")},nJ.oklch=(t,e,i)=>n0(t,e,i,"oklch");let{pow:n2,sqrt:n5,PI:n3,cos:n6,sin:n4,atan2:n9}=Math,n8=(t,e)=>{let i=t.length,n=[0,0,0,0];for(let s=0;s.9999999&&(n[3]=1),new iF(iT(n))},{pow:n7}=Math;function st(t){let e="rgb",i=ij("#ccc"),n=0,s=[0,1],r=[],a=[0,0],o=!1,l=[],h=!1,u=0,c=1,d=!1,p={},f=!0,g=1,m=function(t){if("string"===iA(t=t||["#fff","#000"])&&ij.brewer&&ij.brewer[t.toLowerCase()]&&(t=ij.brewer[t.toLowerCase()]),"array"===iA(t)){1===t.length&&(t=[t[0],t[0]]),t=t.slice(0);for(let e=0;e=o[i];)i++;return i-1}return 0},v=t=>t,y=t=>t,b=function(t,n){let s,h;if(null==n&&(n=!1),isNaN(t)||null===t)return i;h=n?t:o&&o.length>2?_(t)/(o.length-2):c!==u?(t-u)/(c-u):1,h=y(h),n||(h=v(h)),1!==g&&(h=n7(h,g));let d=Math.floor(1e4*(h=iI(h=a[0]+h*(1-a[0]-a[1]),0,1)));if(f&&p[d])s=p[d];else{if("array"===iA(l))for(let t=0;t=i&&t===r.length-1){s=l[t];break}if(h>i&&hp={};m(t);let w=function(t){let e=ij(b(t));return h&&e[h]?e[h]():e};return w.classes=function(t){if(null!=t){if("array"===iA(t))o=t,s=[t[0],t[t.length-1]];else{let e=ij.analyze(s);o=0===t?[e.min,e.max]:ij.limits(e,"e",t)}return w}return o},w.domain=function(t){if(!arguments.length)return s;u=t[0],c=t[t.length-1],r=[];let e=l.length;if(t.length===e&&u!==c)for(let e of Array.from(t))r.push((e-u)/(c-u));else{for(let t=0;t2){let e=t.map((e,i)=>i/(t.length-1)),i=t.map(t=>(t-u)/(c-u));i.every((t,i)=>e[i]===t)||(y=t=>{if(t<=0||t>=1)return t;let n=0;for(;t>=i[n+1];)n++;let s=(t-i[n])/(i[n+1]-i[n]);return e[n]+s*(e[n+1]-e[n])})}}return s=[u,c],w},w.mode=function(t){return arguments.length?(e=t,x(),w):e},w.range=function(t,e){return m(t,e),w},w.out=function(t){return h=t,w},w.spread=function(t){return arguments.length?(n=t,w):n},w.correctLightness=function(t){return null==t&&(t=!0),d=t,x(),v=d?function(t){let e=b(0,!0).lab()[0],i=b(1,!0).lab()[0],n=e>i,s=b(t,!0).lab()[0],r=e+(i-e)*t,a=s-r,o=0,l=1,h=20;for(;Math.abs(a)>.01&&h-- >0;)n&&(a*=-1),a<0?(o=t,t+=(l-t)*.5):(l=t,t+=(o-t)*.5),a=(s=b(t,!0).lab()[0])-r;return t}:t=>t,w},w.padding=function(t){return null!=t?("number"===iA(t)&&(t=[t,t]),a=t,w):a},w.colors=function(e,i){arguments.length<2&&(i="hex");let n=[];if(0==arguments.length)n=l.slice(0);else if(1===e)n=[w(.5)];else if(e>1){let t=s[0],i=s[1]-t;n=(function(t,e,i){let n=[],s=0r;s?t++:t--)n.push(t);return n})(0,e,!1).map(n=>w(t+n/(e-1)*i))}else{t=[];let e=[];if(o&&o.length>2)for(let t=1,i=o.length,n=1<=i;n?ti;n?t++:t--)e.push((o[t-1]+o[t])*.5);else e=s;n=e.map(t=>w(t))}return ij[i]&&(n=n.map(t=>t[i]())),n},w.cache=function(t){return null!=t?(f=t,w):f},w.gamma=function(t){return null!=t?(g=t,w):g},w.nodata=function(t){return null!=t?(i=ij(t),w):i},w}let se=function(t){let e=[1,1];for(let i=1;inew iF(t))).length)[i,n]=t.map(t=>t.lab()),e=function(t){return new iF([0,1,2].map(e=>i[e]+t*(n[e]-i[e])),"lab")};else if(3===t.length)[i,n,s]=t.map(t=>t.lab()),e=function(t){return new iF([0,1,2].map(e=>(1-t)*(1-t)*i[e]+2*(1-t)*t*n[e]+t*t*s[e]),"lab")};else if(4===t.length){let r;[i,n,s,r]=t.map(t=>t.lab()),e=function(t){return new iF([0,1,2].map(e=>(1-t)*(1-t)*(1-t)*i[e]+3*(1-t)*(1-t)*t*n[e]+3*(1-t)*t*t*s[e]+t*t*t*r[e]),"lab")}}else if(t.length>=5){let i,n,s;i=t.map(t=>t.lab()),n=se(s=t.length-1),e=function(t){let e=1-t;return new iF([0,1,2].map(r=>i.reduce((i,a,o)=>i+n[o]*e**(s-o)*t**o*a[r],0)),"lab")}}else throw RangeError("No point in running bezier with only one color.");return e},sn=(t,e,i)=>{if(!sn[i])throw Error("unknown blend mode "+i);return sn[i](t,e)},ss=t=>(e,i)=>{let n=ij(i).rgb(),s=ij(e).rgb();return ij.rgb(t(n,s))},sr=t=>(e,i)=>{let n=[];return n[0]=t(e[0],i[0]),n[1]=t(e[1],i[1]),n[2]=t(e[2],i[2]),n};sn.normal=ss(sr(t=>t)),sn.multiply=ss(sr((t,e)=>t*e/255)),sn.screen=ss(sr((t,e)=>255*(1-(1-t/255)*(1-e/255)))),sn.overlay=ss(sr((t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)))),sn.darken=ss(sr((t,e)=>t>e?e:t)),sn.lighten=ss(sr((t,e)=>t>e?t:e)),sn.dodge=ss(sr((t,e)=>255===t?255:(t=e/255*255/(1-t/255))>255?255:t)),sn.burn=ss(sr((t,e)=>255*(1-(1-e/255)/(t/255))));let{pow:sa,sin:so,cos:sl}=Math,{floor:sh,random:su}=Math,{log:sc,pow:sd,floor:sp,abs:sf}=Math;function sg(t,e=null){let i={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===iA(t)&&(t=Object.values(t)),t.forEach(t=>{e&&"object"===iA(t)&&(t=t[e]),null==t||isNaN(t)||(i.values.push(t),i.sum+=t,ti.max&&(i.max=t),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(t,e)=>sm(i,t,e),i}function sm(t,e="equal",i=7){"array"==iA(t)&&(t=sg(t));let{min:n,max:s}=t,r=t.values.sort((t,e)=>t-e);if(1===i)return[n,s];let a=[];if("c"===e.substr(0,1)&&(a.push(n),a.push(s)),"e"===e.substr(0,1)){a.push(n);for(let t=1;t 0");let t=Math.LOG10E*sc(n),e=Math.LOG10E*sc(s);a.push(n);for(let n=1;n200&&(h=!1)}let d={};for(let t=0;tt-e),a.push(p[0]);for(let t=1;t{let n=t.length;i||(i=Array.from(Array(n)).map(()=>1));let s=n/i.reduce(function(t,e){return t+e});if(i.forEach((t,e)=>{i[e]*=s}),t=t.map(t=>new iF(t)),"lrgb"===e)return n8(t,i);let r=t.shift(),a=r.get(e),o=[],l=0,h=0;for(let t=0;t{let s=t.get(e);u+=t.alpha()*i[n+1];for(let t=0;t=360;)e-=360;a[t]=e}else a[t]=a[t]/o[t];return u/=n,new iF(a,e).alpha(u>.99999?1:u,!0)},bezier:t=>{let e=si(t);return e.scale=()=>st(e),e},blend:sn,cubehelix:function(t=300,e=-1.5,i=1,n=1,s=[0,1]){let r=0,a;"array"===iA(s)?a=s[1]-s[0]:(a=0,s=[s,s]);let o=function(o){let l=iz*((t+120)/360+e*o),h=sa(s[0]+a*o,n),u=(0!==r?i[0]+o*r:i)*h*(1-h)/2,c=sl(l),d=so(l);return ij(iT([255*(h+u*(-.14861*c+1.78277*d)),255*(h+u*(-.29227*c-.90649*d)),255*(h+1.97294*c*u),1]))};return o.start=function(e){return null==e?t:(t=e,o)},o.rotations=function(t){return null==t?e:(e=t,o)},o.gamma=function(t){return null==t?n:(n=t,o)},o.hue=function(t){return null==t?i:("array"===iA(i=t)?0==(r=i[1]-i[0])&&(i=i[1]):r=0,o)},o.lightness=function(t){return null==t?s:("array"===iA(t)?(s=t,a=t[1]-t[0]):(s=[t,t],a=0),o)},o.scale=()=>ij.scale(o),o.hue(i),o},mix:nX,interpolate:nX,random:()=>{let t="#";for(let e=0;e<6;e++)t+="0123456789abcdef".charAt(sh(16*su()));return new iF(t,"hex")},scale:st,analyze:sg,contrast:(t,e)=>{t=new iF(t),e=new iF(e);let i=t.luminance(),n=e.luminance();return i>n?(i+.05)/(n+.05):(n+.05)/(i+.05)},deltaE:function(t,e,i=1,n=1,s=1){var r=function(t){return 360*t/(2*sI)},a=function(t){return 2*sI*t/360};t=new iF(t),e=new iF(e);let[o,l,h]=Array.from(t.lab()),[u,c,d]=Array.from(e.lab()),p=(o+u)/2,f=(s_(sv(l,2)+sv(h,2))+s_(sv(c,2)+sv(d,2)))/2,g=.5*(1-s_(sv(f,7)/(sv(f,7)+sv(25,7)))),m=l*(1+g),_=c*(1+g),v=s_(sv(m,2)+sv(h,2)),y=s_(sv(_,2)+sv(d,2)),b=(v+y)/2,x=r(sx(h,m)),w=r(sx(d,_)),k=x>=0?x:x+360,S=w>=0?w:w+360,C=sw(k-S)>180?(k+S+360)/2:(k+S)/2,I=1-.17*sk(a(C-30))+.24*sk(a(2*C))+.32*sk(a(3*C+6))-.2*sk(a(4*C-63)),T=S-k;T=180>=sw(T)?T:S<=k?T+360:T-360,T=2*s_(v*y)*sS(a(T)/2);let E=y-v,A=1+.015*sv(p-50,2)/s_(20+sv(p-50,2)),P=1+.045*b,O=1+.015*b*I,M=30*sC(-sv((C-275)/25,2)),N=-(2*s_(sv(b,7)/(sv(b,7)+sv(25,7))))*sS(2*a(M));return sb(0,sy(100,s_(sv((u-o)/(i*A),2)+sv(E/(n*P),2)+sv(T/(s*O),2)+E/(n*P)*N*(T/(s*O)))))},distance:function(t,e,i="lab"){t=new iF(t),e=new iF(e);let n=t.get(i),s=e.get(i),r=0;for(let t in n){let e=(n[t]||0)-(s[t]||0);r+=e*e}return Math.sqrt(r)},limits:sm,valid:(...t)=>{try{return new iF(...t),!0}catch(t){return!1}},scales:{cool:()=>st([ij.hsl(180,1,.9),ij.hsl(250,.7,.4)]),hot:()=>st(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")},input:iV,colors:nP,brewer:sT});var sE=u("hvNIE");let sA=window.location,sP=new URLSearchParams(sA.search),sO=new URL(sA),sM=new J({objectHash:sB});function sN(t){let e=window.atob((t+"===".slice((t.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/"));return new TextDecoder().decode(ik(Uint8Array.from(e,t=>t.codePointAt(0))))}function sL(t){return window.btoa(String.fromCodePoint(...iy(new TextEncoder().encode(t)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function sz(t){return t.charAt(0).toUpperCase()+t.slice(1)}function sR(...t){return t.findLast(t=>void 0!==t)}function sB(t,e){return"object"==typeof t&&"object"==typeof e?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>{let n=t[i],s=e[i];return Object.hasOwn(e,i)&&("function"==typeof n?.equals?n.equals(s):sB(n,s))}):t===e}function sD(t,e=null){document.dispatchEvent(new CustomEvent(t,{detail:e}))}function sV(t,e,i=0){return t&&e&&t.round().subtract(e.round()).length<=i}function sF(t){let e=document.createElement("span");return e.classList.add("beam"),e.style.backgroundColor=t,e.title=t,e}function sj(t){if(!t.length)return[];let e=ij.average(t).hex(),i=[];if(t.some(t=>t!==e)){let e=t.length-1;t.forEach((t,n)=>{if(i.push(sF(t)),ne.subtract(t).length-i.subtract(t).length}function sq(t,e){let i=document.createElement("span");return i.classList.add("icon","material-symbols-outlined"),i.textContent=t,i.title=e??sz(t),i}function sZ(t,e,i=t=>t/2){let n=t.subtract(e);return n.length="function"==typeof i?i(n.length):i,t.subtract(n)}function sH(t,e,i){let n=new sE.Point(0,0);return n.length=e,n.angle=60*sW(i),t.add(n)}function sG(t){return t+(t>=3?-3:3)}function sW(t,e=!0){return(t+=(e?-1:1)*2)<0?t+6:t>5?t-6:t}function s$(t){let e=document.createElement("span");return e.classList.add("text"),e.textContent=t.toString(),e}function sK(t){if(t)return t}window.base64decode=sN,window.base64encode=sL;let sJ=window.console=window.console||{debug:function(){}},sX=sJ.debug;function sY(t){sJ.debug=t?sX:function(){}}sY(sP.has("debug")??!1);var sE=(u("hvNIE"),u("hvNIE"));class sQ{constructor(t,e){this.coordinates=[t,e],this.r=t,this.c=e}toString(){return this.coordinates.join(",")}static toAxialCoordinates(t){return new s0(t.c-(t.r-(1&t.r))/2,t.r)}}class s0{constructor(t,e,i){i||(i=-t-e),this.coordinates=[t,e,i],this.q=t,this.r=e,this.s=i}add(t){return s0.add(this,t)}equals(t){return this.q===t.q&&this.r===t.r&&this.s===t.s}isNeighbor(t){return s0.isNeighbor(this,t)}neighbor(t){return s0.neighbor(this,t)}toString(){return this.coordinates.join(",")}static add(t,e){return new s0(t.q+e.q,t.r+e.r)}static direction(t){return 0===t&&(t=6),s0.directions[6-t]}static directions=[new s0(1,0),new s0(1,-1),new s0(0,-1),new s0(-1,0),new s0(-1,1),new s0(0,1)];static isNeighbor(t,e){return s0.directions.map(e=>s0.add(t,e)).some(t=>t.equals(e))}static neighbor(t,e){return s0.add(t,s0.direction(e))}static toOffsetCoordinates(t){return new sQ(t.q+(t.r-(1&t.r))/2,t.r)}}var sE=(u("hvNIE"),u("hvNIE"));class s1{#t={};constructor(t){this.setState(t)}getState(){return structuredClone(this.#t)}setState(t){this.#t=structuredClone(t)}updateState(t,e=!1){return t(this.#t),e&&sD(s1.Events.Update,{object:this}),this.getState()}static Events=Object.freeze({Update:"state-update"})}class s2 extends s1{center;data;group;id;immutable;locked;parent;sortOrder=100;type;constructor(t,e,i){if(e.id??=crypto.randomUUID().split("-")[0],super(e),this.id=e.id,this.immutable??=e?.immutable??!1,this.type=e?.type??i?.type,void 0===this.type)throw console.debug(`[Item:${this.id}]`,e,i),Error("Item must have type defined");this.data=Object.assign({id:this.id,type:this.type},i?.data||{}),this.locked=i?.locked!==!1,t&&(this.center=t.center),this.parent=t,this.group=new sE.Group({data:this.data,locked:this.locked})}equals(t){return t instanceof s2&&this.id===t.id}getColorElements(){return[]}getCompoundPath(){return new sE.CompoundPath({children:this.group.clone({insert:!1}).children.filter(t=>!1!==t.data.collidable)})}getIndex(){return this.group.index}getLayer(){return this.group.parent}onTap(){}onCollision({collisionStep:t}){return t}onDeselected(){}onInitialization(){}onSelected(){}remove(){this.group.remove()}toString(){return`[${this.type}:${this.id}]`}update(){}static immutable(t){return t.immutable}static Types=Object.freeze(Object.fromEntries(["beam","collision","filter","mask","portal","reflector","terminus","tile","wall"].map(t=>[t,sz(t)])))}var sE=u("hvNIE");class s5{#e=[];#i={element:document};constructor(t={}){this.#i=Object.assign(this.#i,t)}add(t,e={}){this.#e=this.#e.concat(t.map(t=>{if(!(t=Object.assign({},this.#i,e,t)).type)throw Error("Event type is required");return t.context&&(t.handler=t.handler.bind(t.context)),t.element.addEventListener(t.type,t.handler,t.options),t}))}remove(){this.#e.forEach(t=>t.element.removeEventListener(t.type,t.handler)),this.#e=[]}}var sE=u("hvNIE");class s3{#n={};#s;#r;constructor(t=[]){this.#r=t,this.#s=0!==t.length,t.forEach(t=>{this.#n[t]=new s3})}set(t,e){if(this.#s&&!this.#r.includes(t))throw Error(`Invalid key: ${t}`);this.#n[t]=e}get(t){return void 0===t?this.#n:this.#n[t]}keys(t){return Object.keys(this.#a(t))}length(t){return this.keys(t).length}unset(t){delete this.#n[t]}values(t){return Object.values(this.#a(t))}#a(t){let e=this.get(t);return e instanceof s3?e.get():e}}let s6=window.navigator;class s4{#o;#n=new s3(Object.values(s4.CacheKeys));#l;#h=new s5({context:this});#u;constructor(t){this.#o=t.getBoundingClientRect(),this.#l=t,this.#u=new sE.Point(this.#o.left,this.#o.top),this.#h.add([{type:"pointercancel",handler:this.onPointerUp},{type:"pointerdown",handler:this.onPointerDown},{type:"pointerleave",handler:this.onPointerUp},{type:"pointermove",handler:this.onPointerMove},{type:"pointerout",handler:this.onPointerUp},{type:"pointerup",handler:this.onPointerUp},{type:"wheel",handler:this.onMouseWheel,options:{passive:!1}}],{element:t})}onMouseWheel(t){t.preventDefault(),this.#c(new sE.Point(t.offsetX,t.offsetY),t.deltaY,1.05)}onPan(t){let e=/*@__PURE__*/a(sE).view.viewToProject(s4.point(t)),i=this.#d(s4.GestureKeys.Pan);if(!i){this.#p(s4.GestureKeys.Pan,{from:e});return}let n=i.from.subtract(e).add(/*@__PURE__*/a(sE).view.center);/*@__PURE__*/a(sE).view.center.subtract(n).length>1&&(document.body.classList.contains("grab")||document.body.classList.add("grab"),/*@__PURE__*/a(sE).view.center=n)}onPinch(t){let e=t[0],i=t[1],n=s4.point(e),s=s4.point(i),r=n.getDistance(s),a=this.#d(s4.GestureKeys.Pinch);if(!a){this.#p(s4.GestureKeys.Pinch,{distance:r});return}let o=n.add(s).divide(2).subtract(this.#u),l=r/a.distance,h=(a.distance-r)*l;this.#c(o,h,1.01),a.distance=r}onPointerDown(t){this.#n.get(s4.CacheKeys.Down).set(t.pointerId,t)}onPointerMove(t){let e=this.#n.get(s4.CacheKeys.Down).get(t.pointerId);if(e&&s4.point(t).subtract(s4.point(e)).length>1){this.#n.get(s4.CacheKeys.Move).set(t.pointerId,t);let e=this.#n.get(s4.CacheKeys.Move).values();2===e.length?this.onPinch(e):this.onPan(t)}}onPointerUp(t){let e=this.#n.get(s4.CacheKeys.Down).get(t.pointerId);e&&(1!==this.#n.length(s4.CacheKeys.Down)||this.#n.get(s4.CacheKeys.Move).get(t.pointerId)||this.onTap(e),document.body.classList.remove("grab"),this.#n.get(s4.CacheKeys.Down).unset(t.pointerId),this.#n.get(s4.CacheKeys.Move).unset(t.pointerId),this.#n.get(s4.CacheKeys.Gesture).unset(s4.GestureKeys.Pan),2>this.#n.length(s4.CacheKeys.Move)&&this.#n.get(s4.CacheKeys.Gesture).unset(s4.GestureKeys.Pinch))}onTap(t){let e=/*@__PURE__*/a(sE).view.viewToProject(s4.point(t).subtract(this.#u));this.#l.dispatchEvent(new CustomEvent(s4.GestureKeys.Tap,{detail:{event:t,point:e}}))}#d(t){return this.#n.get(s4.CacheKeys.Gesture).get(t)}#p(t,e){this.#n.get(s4.CacheKeys.Gesture).set(t,e)}#c(t,e,i){let n=Math.max(Math.min(e<0?/*@__PURE__*/a(sE).view.zoom*i:/*@__PURE__*/a(sE).view.zoom/i,s4.maxZoom),s4.minZoom),s=/*@__PURE__*/a(sE).view.viewToProject(t),r=s.subtract(/*@__PURE__*/a(sE).view.center),o=s.subtract(r.multiply(/*@__PURE__*/a(sE).view.zoom/n)).subtract(/*@__PURE__*/a(sE).view.center);/*@__PURE__*/a(sE).view.zoom=n,/*@__PURE__*/a(sE).view.center=/*@__PURE__*/a(sE).view.center.add(o)}static point(t){return new sE.Point(t.clientX,t.clientY)}static vibrate(t=25){s4.canVibrate&&s6.vibrate(t)}static canVibrate="function"==typeof s6.vibrate;static CacheKeys=Object.freeze({Down:"down",Move:"move",Gesture:"gesture"});static GestureKeys=Object.freeze({Pan:"pan",Pinch:"pinch",Tap:"tap"});static maxZoom=2;static minZoom=.5}var sE=u("hvNIE");class s9{definition;id;name;constructor(t,e){this.id=t,this.name=e}place(t,e){if(!this.definition){let t=document.getElementById(this.id),e=/*@__PURE__*/a(sE).project.importSVG(t);e.data.collidable=!1,e.locked=!0,this.definition=new sE.SymbolDefinition(e)}return e&&this.definition.item.set(e),this.definition.place(t)}}class s8{static Immutable=new s9("icon-immutable","block");static Lock=new s9("icon-lock","lock");static Move=new s9("icon-move","drag_pan");static RotateLeft=new s9("icon-rotate-left","rotate_left");static RotateRight=new s9("icon-rotate-right","rotate_right");static Swap=new s9("icon-swap","swap_horiz");static ToggleOff=new s9("icon-toggle-off","toggle_off");static ToggleOn=new s9("icon-toggle-on","toggle_on");static All=Object.freeze([s8.Immutable,s8.Lock,s8.Move,s8.RotateLeft,s8.RotateRight,s8.Swap,s8.ToggleOff,s8.ToggleOn]);static ByName=Object.freeze(Object.fromEntries(s8.All.map(t=>[t.name,t])))}let s7=document.getElementById("modifiers"),rt=0;class re extends s1{#f;#g=!1;#h=new s5({context:this});#m;configuration;element;disabled=!1;immutable=!1;name;parent;tile;title;type;constructor(t,e){e.id??=rt++,super(e),this.id=e.id,this.parent=t,this.type=e.type}attach(t){this.tile=t,this.disabled=this.immutable||this.tile?.modifiers.some(t=>t.type===re.Types.immutable)||!this.tile?.items.some(t=>t.type!==s2.Types.beam)||!this.tile?.equals(this.parent)&&(this.tile.modifiers.some(t=>t.type===this.type)||this.tile?.modifiers.length===rw.MaxModifiers);let e=this.#f=document.createElement("li");e.classList.add(["modifier",this.type.toLowerCase()].join("-")),e.dataset.id=this.id.toString();let i=this.element=document.createElement("span");i.classList.add("material-symbols-outlined","fill"),e.append(i),this.update(),this.#h.add([{type:"pointerdown",handler:this.onPointerDown},{type:"pointerleave",handler:this.onPointerUp},{type:"pointerup",handler:this.onPointerUp}],{element:e}),s7.append(e)}detach(){this.#f&&(this.#h.remove(),this.#f.remove(),this.element=void 0,this.#f=void 0)}dispatchEvent(t,e){sD(t,Object.assign({},e||{},{modifier:this,tile:this.tile}))}equals(t){return t instanceof re&&this.id===t.id}getSymbol(){return s8.ByName[this.name]}move(t){this.parent?.removeModifier(this),this.parent=t,t?.addModifier(this)}moveFilter(t){return t.modifiers.some(re.immutable)||t.items.every(s2.immutable)}onPointerDown(t){0!==t.button?this.onToggle(t):this.#g=!0}onPointerUp(t){if(clearTimeout(this.#m),this.#g&&!this.disabled){switch(t.type){case"pointerleave":this.onToggle(t);break;case"pointerup":this.onTap(t)}this.parent?.updateIcon(this)}this.#g=!1}onTap(){}onToggle(){s4.vibrate()}toString(){return[this.name,this.id].join(":")}update(t){t=Object.assign({disabled:this.disabled,name:this.name,title:this.title},t||{}),this.immutable||(this.disabled=t.disabled),this.name=t.name,this.title=t.title,this.#f&&(this.#f.classList.toggle("disabled",this.disabled),this.element.textContent=this.name,this.element.title=this.title)}static immutable(t){return t.type===re.Types.immutable}static Events=Object.freeze({Invoked:"modifier-invoked",Moved:"modifier-moved"});static Types=Object.freeze(Object.fromEntries(["immutable","lock","move","rotate","swap","toggle"].map(t=>[t,sz(t)])))}class ri extends re{#_;name=s8.Move.name;title="Move";onTap(t){super.onTap(t);let e=this.tile.items.filter(ri.movable);if(this.#_||!e.length)return;let i=new rD.Mask({id:this.toString(),onTap:this.#v.bind(this),onMask:()=>this.tile.beforeModify(),onUnmask:()=>this.tile.afterModify(),tileFilter:this.tileFilter.bind(this)});this.#_=i,sD(rD.Events.Mask,{mask:i})}moveFilter(t){return super.moveFilter(t)||!t.items.some(ri.movable)}moveItems(t){let e=this.tile.items.filter(ri.movable);return e.forEach(e=>e.move(t)),{moved:[ri.data(this.tile,t,e)],tiles:[this.tile,t]}}tileFilter(t){return!t.equals(this.tile)&&(t.modifiers.some(re.immutable)||t.items.some(t=>!ri.ignoreItemTypes.includes(t.type)))}#v(t,e){if(t.unmask(),e){let i=this.moveItems(e);t.updateSelectedTile(e),this.dispatchEvent(re.Events.Invoked,i)}this.#_=void 0}static data(t,e,i){return{fromTile:t,toTile:e,items:i}}static movable(t){return t.movable}static ignoreItemTypes=[s2.Types.beam,s2.Types.wall]}let rn=t=>class extends t{movable;constructor(t,e){super(...arguments),this.movable=!this.immutable&&!1!==e.movable}move(t){this.parent.removeItem(this);let e=this.parent.center.subtract(t.center);this.group.position=this.group.position.subtract(e),this.parent=t,this.parent.addItem(this),this.center=this.parent.center,this.onMove()}onMove(){}};class rs{color;colors;connected;direction;done;insertAbove;onAdd;onRemove;point;pathIndex;segmentIndex;state;tile;constructor(t,e,i,n,s,r,a,o,l,h,u,c,d){if(u&&!(u instanceof rr))throw Error("Step.state must be instance of StepState");this.colors=i?Array.isArray(i)?Array.from(i):[i]:[],this.colors.length&&(this.color=ij.average(this.colors).hex()),this.connected=o??!0,this.direction=n,this.done=h??!1,this.index=t,this.insertAbove=l,this.onAdd=c??sK,this.onRemove=d??sK,this.point=s,this.pathIndex=r,this.segmentIndex=a,this.state=u??new rr,this.tile=e}copy(t){return new rs(t.index??this.index,t.tile??this.tile,t.colors??t.color??this.colors,t.direction??this.direction,t.point??this.point,t.pathIndex??this.pathIndex,t.segmentIndex??this.segmentIndex,t.connected??this.connected,t.insertAbove??this.insertAbove,t.done??this.done,t.state??new rr(this.state),t.onAdd??this.onAdd,t.onRemove??this.onRemove)}equals(t){return sB(this,t)}}class rr{#n={};constructor(){let t=Object.assign({},...arguments);Object.keys(t).forEach(e=>{this[e]=t[e]})}copy(...t){return new rr(...[this].concat(t))}get(t){return this.#r(t).map(t=>this[t]).find(t=>t)}has(t){return this.#r(t).some(t=>this[t])}#r(t){return this.#n[t.name]??=Object.keys(Reflect.construct(t,[]))}static Collision=class{collision;constructor(t){this.collision=t}};static Filter=class{filter={}};static MergeInto=class{mergeInto;constructor(t){this.mergeInto={beam:t}}};static MergeWith=class{mergeWith;constructor(t){this.mergeWith=t}};static Portal=class{portal;constructor(t,e){this.portal={entryPortal:t,exitPortal:e}}};static Reflector=class{reflector;constructor(t){this.reflector={item:t}}};static TerminusConnection=class{terminusConnection;constructor(t,e){this.terminusConnection={terminus:t,opening:e}}}}class ra extends rn(s2){constructor(t,{color:e}){super(...arguments),this.color=ij.average(Array.isArray(e)?e:[e]).hex();let i=new sE.Color(e);i.alpha=.25;let n=new sE.Path.RegularPolygon({center:t.center,closed:!0,radius:t.parameters.circumradius/3,sides:3,style:{fillColor:i,strokeColor:e,strokeWidth:2}});this.group.addChild(n)}getColorElements(){return[sF(this.color)]}onCollision({currentStep:t,nextStep:e}){return e.copy(t.state.has(rr.Filter)?{colors:e.colors.concat([this.color])}:{state:new rr({insertAbove:this},new rr.Filter)})}}var sE=u("hvNIE");class ro extends re{clockwise;title="Rotate";constructor(t,e,i={}){super(...arguments),this.clockwise=sR(!0,e.clockwise,i.clockwise),this.name=ro.Names[this.clockwise?"right":"left"]}moveFilter(t){return super.moveFilter(t)||!t.items.some(t=>t.rotatable)}onTap(t){super.onTap(t);let e=this.tile.items.filter(t=>t.rotatable);e.forEach(t=>t.rotate(this.clockwise)),this.dispatchEvent(re.Events.Invoked,{items:e})}onToggle(){super.onToggle(),this.clockwise=!this.clockwise,this.updateState(t=>{t.clockwise=this.clockwise}),this.update({name:ro.Names[this.clockwise?"right":"left"]})}static Names=Object.freeze({left:s8.RotateLeft.name,right:s8.RotateRight.name})}let rl=t=>class extends t{direction;rotatable;rotation=0;rotationDegrees;constructor(t,e,i={}){super(...arguments),this.direction=sR(e.direction,i.direction),this.rotatable=!this.immutable&&sR(!0,e.rotatable,i.rotatable),this.rotationDegrees=sR(60,e.rotationDegrees,i.rotationDegrees),this.rotation=sR(0,e.rotation,i.rotation)%this.getMaxRotation()}getDirection(t){return void 0===(t=t??this.direction)?t:(t+this.rotation+6)%6}getMaxRotation(){return 360/this.rotationDegrees}onInitialization(){super.onInitialization(),this.rotateGroup(this.rotation),void 0!==this.direction&&this.rotateGroup(this.direction)}rotateGroup(t){this.group.rotate(t*this.rotationDegrees,this.center)}rotate(t){if(!this.rotatable)return;let e=!1===t?-1:1;this.rotation=(e+this.rotation)%this.getMaxRotation(),this.updateState(t=>{t.rotation=this.rotation}),this.rotateGroup(e)}};class rh extends rn(rl(s2)){#y={};constructor(t,e){super(t,e,{rotatable:void 0!==e.direction}),this.direction=e.direction;let i=t.parameters.circumradius/3,n=t.parameters.circumradius/5,s={fillColor:"black",strokeColor:"white",strokeWidth:2},r=[],a=new sE.Path.Ellipse({center:t.center,radius:[n,i],style:s});r.push(a);let o=new sE.Path.Ellipse({center:t.center,radius:[n-2*s.strokeWidth,i-2*s.strokeWidth],style:s});if(r.push(o),void 0!==this.direction){let e=new(0,sE.Path)({closed:!0,opacity:.25,segments:[t.center.add(new sE.Point(0,i)),t.center.subtract(new sE.Point(0,i)),t.center.subtract(new sE.Point(2.5*n,0))],style:{fillColor:"black"}}).subtract(a);r.unshift(e)}this.group.addChildren(r),void 0!==this.direction&&this.rotateGroup(1)}get(t){return this.#y[t]}onCollision({beam:t,currentStep:e,nextStep:i,puzzle:n}){let s=e.state.get(rr.Portal);if(s){if(s.exitPortal===this)return i.copy({insertAbove:this})}else{let t=sG(i.direction);if(sR(this.get(t),i).indexthis.update(t,e),onRemove:()=>this.update(t),state:i.state.copy(new rr.Portal(this))})}let r=this.#b(n,t,i);if(0===r.length)return console.debug(this.toString(),"no valid exit portals found"),e;if(1===r.length){let e=r[0];return console.debug(this.toString(),"single exit portal matched:",e),this.#x(t,i,e)}{console.debug(this.toString(),"found multiple valid exit portals:",r);let s={exitPortals:r},a=new rD.Mask({id:this.id,onMask:()=>e.tile.beforeModify(),onTap:(e,n)=>{let r=s.exitPortals.find(t=>t.parent===n);r&&(e.addMove(),t.addStep(this.#x(t,i,r)),e.unmask())},onUnmask:()=>e.tile.afterModify(),onUpdate:()=>{let e=this.#b(n,t,i);if(0===e.length)return console.debug(this.toString(),"mask onUpdate: no valid exit portals found"),!1;if(1===e.length){let n=e[0];return console.debug(this.toString(),"mask onUpdate: single portal matched:",n),t.addStep(this.#x(t,i,n)),!1}console.debug(this.toString(),"mask onUpdate: exit portals:",e),s.exitPortals=e},tileFilter:t=>!(t.equals(this.parent)||s.exitPortals.map(t=>t.parent).some(e=>e.equals(t)))});return n.updateSelectedTile(null),n.mask(a),e}}onMove(){super.onMove(),this.#y={}}update(t,e){this.#y[t]=e}#b(t,e,i){let n=t.getItems().filter(t=>t.type===s2.Types.portal&&!t.equals(this)&&!t.get(rh.getExitDirection(i,this,t))&&(void 0===this.getDirection()||void 0===t.getDirection()||t.getDirection()===this.getDirection()));if(n.length>1){let t=e.getState().steps?.[i.index]?.[this.id];if(void 0!==t){console.debug(this.toString(),`found exitPortalId ${t} in beam step ${i.index} state`);let e=n.find(e=>e.id===t);if(e)return[e]}}return n}#x(t,e,i){let n=rh.getExitDirection(e,this,i);return e.copy({connected:!1,direction:n,insertAbove:i,onAdd:e=>{i.update(n,e),t.updateState(t=>(t.steps??={})[e.index]={[this.id]:i.id})},onRemove:e=>{t.updateState(t=>{delete t.steps[e.index]}),i.update(n)},point:i.parent.center,state:e.state.copy(new rr.Portal(this,i)),tile:i.parent})}static getExitDirection(t,e,i){return i.getDirection()??e.getDirection()??t.direction}}var sE=u("hvNIE");class ru extends re{on;title="Toggle";constructor(t,e){super(...arguments),this.on=e.on||this.parent?.items.some(t=>t.on||t.toggled),this.name=this.getName()}attach(t){super.attach(t),this.on=this.tile?.items.some(t=>t.on||t.toggled),this.update({name:this.getName()})}getName(){return ru.Names[this.on?"on":"off"]}moveFilter(t){return super.moveFilter(t)||!t.items.some(t=>t.toggleable)}onTap(t){super.onTap(t),this.on=!this.on;let e=this.tile.items.filter(t=>t.toggleable);e.forEach(t=>t.toggle(this.on)),this.update({name:this.getName()}),this.dispatchEvent(re.Events.Invoked,{items:e})}static Names=Object.freeze({on:s8.ToggleOn.name,off:s8.ToggleOff.name})}let rc=t=>class extends t{toggleable;toggled;constructor(t,e){super(...arguments),this.toggleable=!this.immutable&&!1!==e.toggleable,this.toggled=this.toggleable&&e.toggled}onToggle(){}toggle(t){this.toggled=t,this.onToggle()}};var sE=u("hvNIE");class rd{constructor(t,e,i,n){let s=[i];void 0!==n&&s.push(n),this.beam=i,this.index=t,this.item=n,this.itemIds=s.map(t=>t.id),this.items=s,this.point=e[0],this.points=e,this.withSelf=i.equals(n)}copy(t){return new rd(t.index??this.index,t.points??this.points,t.beam??this.beam,t.item??this.item)}equals(t){return t&&t.point.equals(this.point)&&t.items.every(t=>this.has(t))}has(t){return this.itemIds.includes(t.id)}mirror(){return this.copy({beam:this.item,item:this.beam})}}class rp{constructor(t,e,i){this.beams=[t].concat(e.state.get(rr.MergeWith)?.beams||[]),this.colors=e.colors.concat(t.getColors()),this.stepIndex=i}}class rf extends s2{done=!1;path=[];sortOrder=3;#n=new s3(Object.values(rf.CacheKeys));#w;#k;#S=-1;#C=[];constructor(t,e,i){e.immutable=!0,super(...arguments),this.group=null,this.#w=i.direction,this.#k={closed:!1,data:{id:this.id,type:this.type},locked:!0,strokeJoin:"round",strokeCap:"round",strokeWidth:t.radius/12}}addStep(t){let e=this.getLastStepIndex();if(this.done=!1,this.#k.strokeColor=t.color,0===this.path.length){let t=new sE.Path(this.#k);this.path.push(t),this.getLayer().insertChild(0,t)}let i=this.path[this.path.length-1],n=this.#C[e];if(!t.connected||n&&(t.color!==n.color||t.insertAbove!==n.insertAbove)){console.debug(this.toString(),"adding new path item for step:",t,"previous step:",n);let e=new sE.Path(this.#k),i=[t.point];t.connected&&i.unshift(n.point),e.add(...i),this.path.push(e),this.getLayer().insertChild(this.#I(t),e),t.segmentIndex=0}else i.add(t.point),t.segmentIndex=i.segments.length-1;return t.pathIndex=this.path.length-1,this.#C.push(t),t.index=this.#S=this.#C.length-1,t.tile.items.some(t=>t.equals(this))||t.tile.addItem(this),t.onAdd(t),console.debug(this.toString(),"added step",t),this.#T(this.#S),t}getCollision(){return this.getStep()?.state.get(rr.Collision)}getColor(){return this.getStep()?.color||this.getOpening().color}getColors(){return Array.from(this.getStep()?.colors||this.getOpening().colors)}getColorElements(t){let e=this.getSteps(t).find(t=>t.state.has(rr.MergeWith));return e?sj(e.colors):[]}getCompoundPath(){return new sE.CompoundPath({children:this.path.map(t=>t.clone({insert:!1}))})}getIndex(){return this.path[this.path.length-1].index}getLastStepIndex(){return this.length()-1}getLayer(){return this.parent.getLayer()}getMergeWith(t){return this.#n.get(rf.CacheKeys.MergeWith).get(t.id)}getOpening(){return this.parent.getOpening(this.#w)}getState(){return this.parent.getState().openings[this.#w]}getStep(t){return this.#C[t||this.getLastStepIndex()]}getSteps(t){return t?this.#C.filter(e=>e.tile===t):this.#C}isComplete(){return this.isOn()&&this.done}isConnected(){let t=this.getStep();return t?.state.has(rr.TerminusConnection)||t?.state.get(rr.MergeInto)?.beam.isConnected()}isOn(){let t=this.getOpening();return t.on&&!t.connected}isPending(){return this.isOn()&&!this.done}length(){return this.#C.length}onBeamUpdated(t){let e=t.detail.beam;if(e.isPending())return;let i=e.getStep();if(this.isComplete()){let t=this.getStep(),n=t.state.get(rr.Collision);if(n?.has(e)&&!n.equals(i?.state.get(rr.Collision))){console.debug(this.toString(),"re-evaluating collision with",e.toString()),this.done=!1,this.#S=Math.max(t.index-1,0);return}let s=t.state.get(rr.MergeInto);if(s?.beam.equals(e)&&!e.getMergeWith(this)){console.debug(this.toString(),"re-evaluating merge into",e.toString()),this.done=!1,this.#S=Math.max(this.#S-1,0);return}}let n=this.getMergeWith(e);n&&!i?.state.get(rr.MergeInto)?.beam.equals(this)&&(console.debug(this.toString(),"re-evaluating merge with",e.toString()),this.done=!1,this.#S=Math.max(n.stepIndex-1,0))}onCollision({beam:t,collision:e,collisionStep:i,currentStep:n,nextStep:s,puzzle:r}){let a=t.equals(this);if(console.debug(this.toString(),"evaluating collision with",a?"self":t.toString()),!t.isOn()){console.debug(this.toString(),"ignoring collision with inactive beam",t.toString());return}if(t.parent.equals(this.parent)&&0===n.index){console.debug(this.toString(),"ignoring collision with sibling beam",t.toString());return}if(a&&this.#SsV(e.point,t.point));if(o<0)throw Error(`Could not find matching step for beam collision between ${this.toString()} and ${t.toString()}`);let l=this.#C[o];if(l.state.get(rr.MergeInto)?.beam.equals(t)){console.debug(this.toString(),"ignoring collision with merged beam",t.toString());return}if(l.state.get(rr.TerminusConnection)?.terminus.equals(t.parent)){console.debug(this.toString(),"ignoring collision with connected beam in parent terminus",t.toString());return}let h=l.state.get(rr.Reflector)??n.state.get(rr.Reflector);if(h){let e=sH(l.point,1,sG(l.direction)),i=sH(n.point,1,sG(n.direction));if(!h.item.isSameSide(e,i)){console.debug(this.toString(),"ignoring collision with beam on opposite side of reflector",t.toString());return}}if(n.state.get(rr.Portal)??l.state.get(rr.Portal)){console.debug(this.toString(),"ignoring collision with beam using same portal",t.toString());return}let u=l.direction===s.direction;if(!u||a)return console.debug(t.toString(),"has collided with",a?"self":this.toString(),e),l.state.get(rr.Collision)?.point.equals(e.point)||(a?u||this.update(o,r.getBeamsUpdateDelay()):this.update(o,{done:!0,state:l.state.copy(new rr.Collision(e.mirror()))})),i.copy({done:!0,insertAbove:l.insertAbove});console.debug(this.toString(),"merging with",t.toString()),this.#E(o);let c=new rp(t,l,o);return this.addStep(l.copy({colors:c.colors,onAdd:()=>{this.#n.get(rf.CacheKeys.MergeWith).set(t.id,c)},onRemove:()=>{this.#n.get(rf.CacheKeys.MergeWith).unset(t.id)},state:l.state.copy(new rr.MergeWith(c))})),console.debug(t.toString(),"merging into",this.toString()),s.copy({done:!0,point:n.point,state:s.state.copy(new rr.MergeInto(this))})}onModifierInvoked(t){if(!this.isOn()){this.#C.length&&(console.debug(this.toString(),"beam has been toggled off"),this.remove());return}let e=t.detail.tiles||[t.detail.tile],i=this.#C.findIndex(t=>e.some(e=>e.equals(t.tile)));if(i>=0){console.debug(this.toString(),"re-evaluating due to modifier being invoked in matching tile",i),this.done=!1,this.#S=Math.max(i-1,0);return}if(this.isComplete()){let t=this.getStep();t.state.get(rr.Portal)?.entryPortal&&(this.done=!1)}}remove(t=0){this.#E(t)}selected(t=!0){this.path.forEach(e=>{e.selected=t})}startDirection(){return(this.getOpening().direction+this.parent.rotation)%6}step(t){let e;if(!this.isPending())return;if(console.debug(this.toString(),"currentStepIndex",this.#S),0===this.#C.length){let t=this.parent.parent;this.addStep(new rs(0,t,this.getColor(),this.startDirection(),t.center))}let i=this.#S,n=this.#C[i],s=0===i?this.startDirection():n.direction,r=sH(n.point,n.tile.parameters.inradius,s),a=t.getTile(sZ(n.point,r));if(!a){console.debug(this.toString(),"stopping due to out of bounds");let t=new rd(0,[n.point],this);return this.updateStep(i,{done:!0,state:new rr(new rr.Collision(t))})}let o=i+1,l=this.#C[o],h=this.path.length-1,u=this.path[h].segments.length-1,c=new rs(o,a,n.color,s,r,l?.pathIndex||h,l?.segmentIndex||u),d=function(t,e){let i=t.map(t=>t.id);return t.filter((t,e)=>!i.includes(t.id,e+1))}(a.items.concat(n.tile.equals(c.tile)?[]:n.tile.items),0);console.debug(this.toString(),"collision items:",d);let p=this.#A(d,n,c,t).map((t,e)=>new rd(e,t.points,this,t.item));p.length&&console.debug(this.toString(),"collisions:",p);for(let i=0;it(e.openings[this.#w]),e)}updateStep(t,e){let i=this.getStep(t);if(i){i.onRemove(i);let n=this.#O(i,e);return this.#C[t]=n,n.onAdd(n),console.debug(this.toString(),"updated step at index",t,"from",i,"to",n),this.#T(t),n}}#A(t,e,i,n){let s=[e.point,i.point],r=new sE.Path({segments:s}),a=s[0];return t.map(t=>{let e=[];return e.push(...new Set(r.getIntersections(t.getCompoundPath(),e=>!(t===this&&e.point.equals(a))).map(t=>t.point))),e.length||t.type!==s2.Types.beam||t===this||e.push(...t.getSteps().map(t=>t.point).filter(t=>s.some(e=>sV(t,e)))),e.sort(sU(a)),n.debug&&(n.drawDebugPoint(a),e.forEach(t=>n.drawDebugPoint(t,{fillColor:"black"}))),{points:e,item:t}}).filter(t=>t.points.length).sort((t,e)=>{let i=sU(a)(t.points[0],e.points[0]);return 0===i?t.item.sortOrder-e.item.sortOrder:i})}#I(t){return t.insertAbove?t.insertAbove.getIndex()+1:0}#O(t,e){return"function"==typeof e&&(e=e(t)),e instanceof rs?e:t.copy(e)}#P(t,e){if(tt.remove());let s=this.#C.splice(t);console.debug(this.toString(),"removed steps: ",s),[...new Set(s.map(t=>t.tile))].filter(t=>0===this.getSteps(t).length).forEach(t=>t.removeItem(this)),s.forEach(t=>t.onRemove(t)),this.done=!1,this.#S=t-1,this.#T(this.#S)}return i}static CacheKeys=Object.freeze({MergeWith:"mergeWith"});static Events=Object.freeze({Collision:"beam-collision",Connection:"beam-connection",Merge:"beam-merge",Update:"beam-update"})}class rg extends rn(rl(rc(s2))){sortOrder=2;#M;constructor(t,e){super(...arguments);let i=e.openings.filter(t=>t?.color).flatMap(t=>Array.isArray(t.color)?t.color:[t.color]),n=ij.average(i.length?i:Array.isArray(e.color)?e.color:[e.color]).hex(),s=e.openings.map((t,i)=>t?new rg.#N(t.color??n,i,t.connected,t.on??e.on):t).filter(t=>t);this.#M=rg.ui(t,n,s),this.group.addChildren([...this.#M.openings,this.#M.terminus]),this.color=n,this.openings=s,this.radius=this.#M.radius,this.toggled=s.some(t=>t.on),this.beams=s.map(t=>new rf(this,e.openings[t.direction],t)),this.update()}getColorElements(){return sj(this.openings.map(t=>t.color))}getOpening(t){return this.openings.find(e=>e.direction===t)}onMove(){this.beams.forEach(t=>t.remove())}onCollision({beam:t,collisionStep:e,currentStep:i,existingNextStep:n,nextStep:s}){if(console.debug(this.toString(),"collision",t.toString()),t.parent===this&&t.startDirection()===s.direction){console.debug(t.toString(),"ignoring starting terminus collision");return}let r=sG(i.direction),a=this.openings.find(t=>this.getDirection(t.direction)===r);return a&&a.color===s.color&&(!a.on||a.connected&&n?.state.get(rr.TerminusConnection)?.terminus.equals(this))?(console.debug(t.toString(),"terminus connection",this.toString(),a),s.copy({done:!0,onAdd:()=>{s.onAdd(),this.onConnection(a.direction)},onRemove:()=>{s.onRemove(),this.onDisconnection(a.direction)},state:s.state.copy(new rr.TerminusConnection(this,a))})):e}onConnection(t){let e=this.getOpening(t);e.connected||(e.connect(),this.update(),sD(rg.Events.Connection,{terminus:this,opening:e}))}onDisconnection(t){let e=this.getOpening(t);e.connected&&(e.disconnect(),this.update(),sD(rg.Events.Disconnection,{terminus:this,opening:e}))}onToggle(){this.updateState(t=>{this.openings.filter(t=>!t.connected).forEach(e=>{e.toggle(),t.openings[e.direction].on=e.on})}),this.update()}update(){this.beams.forEach(t=>{let e=t.getOpening();this.#M.openings.find(t=>t.data.direction===e.direction).opacity=e.on?1:rg.#L})}static #L=.3;static ui(t,e,i){let n=t.parameters.circumradius/2,s=new sE.Path.RegularPolygon({center:t.center,fillColor:e,opacity:1,sides:6,radius:n/2});return{openings:i.map(t=>{let e=t.direction,i=s.segments[(e+-1+6)%6].point,n=s.segments[(e+2+6)%6].point,r=n.subtract(i);r.angle+=120;let a=i.subtract(r);return new sE.Path({closed:!0,data:{collidable:!1,direction:e},fillColor:t.color,opacity:t.on?1:rg.#L,segments:[i,n,a]})}),radius:n,terminus:s}}static #N=class{constructor(t,e,i,n){this.colors=Array.isArray(t)?t:[t],this.color=ij.average(this.colors).hex(),this.direction=e,this.connected=!0===i,this.on=!0===n}connect(){this.connected=this.on=!0}disconnect(){this.connected=this.on=!1}toggle(){this.on=!this.on}};static Events=Object.freeze({Connection:"terminus-connection",Disconnection:"terminus-disconnection"})}var sE=u("hvNIE");class rm extends rn(rl(s2)){#z;constructor(t,e){super(t,e,{rotationDegrees:30}),this.color=e.color||"black",this.#z=rm.item(t,this.color),this.group.addChild(this.#z)}midLine(){return[sZ(this.#z.segments[3].point,this.#z.segments[0].point),sZ(this.#z.segments[1].point,this.#z.segments[2].point)]}getSide(t){return function(t,e){let[i,n]=t;return Math.sign((n.x-i.x)*(e.y-i.y)-(n.y-i.y)*(e.x-i.x))}(this.midLine(),t)}isSameSide(t,e){return this.getSide(t)===this.getSide(e)}onCollision({beam:t,collision:e,collisions:i,collisionStep:n,currentStep:s,nextStep:r}){let a=sG(s.direction),o=function(t,e){let i=60*sW(t,!0);return sW(function(t,e){let i=t+e;return i<0?360+i:i>360?i-360:i}(i,(30*e-i)*2)/60%6,!1)}(a,this.rotation);if(o===s.direction)return console.debug(t.toString(),"stopping due to collision with non-reflective side of reflector"),n;if(o===a)return console.debug(t.toString(),"stopping due to reflection back at self"),r.copy({done:!0,state:r.state.copy(new rr.Collision(e.copy({points:[r.point]})))});if(!s.state.has(rr.Reflector))return r.copy({state:r.state.copy(new rr.Reflector(this))});let l=sH(s.point,r.tile.parameters.inradius,o);return r.copy({direction:o,point:l})}static item(t,e){let i=t.parameters.circumradius/12,n=t.parameters.circumradius-2*i,s=t.center.subtract(new sE.Point(i/2,n/2)),r=new sE.Size(i,n);return new sE.Path.Rectangle({data:{size:r},fillColor:e,point:s,size:r})}}var sE=u("hvNIE");class r_ extends rn(rl(s2)){sortOrder=1;constructor(t,e){e.immutable??=!0,super(t,e,{rotationDegrees:60});let i=r_.item(t,e);this.group.addChildren(i)}static item(t,e){let i=t.parameters.circumradius/12,n=t.styles.default.strokeColor;return e.directions.map(e=>{let s=t.hexagon.segments[e].point,r=(e+1+6)%6,a=t.hexagon.segments[r].point;return new sE.Path({closed:!0,fillColor:n,segments:[s,t.hexagon.getLocationAt((0===e?t.hexagon.length:t.hexagon.getOffsetOf(s))-i),t.hexagon.getLocationAt((0===r?0:t.hexagon.getOffsetOf(a))+i),a]})})}}class rv extends re{immutable=!0;name="block";title="Immutable"}class ry extends re{immutable=!0;name="lock";title="Locked"}class rb extends ri{name=s8.Swap.name;title="Swap";moveItems(t){let e=t.items.filter(ri.movable),i=this.tile.items.filter(ri.movable);return i.forEach(e=>e.move(t)),e.forEach(t=>t.move(this.tile)),{moved:[ri.data(this.tile,t,i),ri.data(t,this.tile,e)],tiles:[this.tile,t]}}tileFilter(t){return!t.equals(this.tile)&&(t.modifiers.some(re.immutable)||!t.items.some(ri.movable))}}function rx(t,e,i){let n;switch(e.type){case re.Types.immutable:n=new rv(...arguments);break;case re.Types.lock:n=new ry(...arguments);break;case re.Types.move:n=new ri(...arguments);break;case re.Types.rotate:n=new ro(...arguments);break;case re.Types.swap:n=new rb(...arguments);break;case re.Types.toggle:n=new ru(...arguments);break;default:console.error("Ignoring modifier with unknown type:",e.type)}return n}class rw extends s2{selected=!1;#M;constructor(t,e,i,n){super(null,n,{locked:!1}),this.#M=rw.ui(e,i,n,{coordinates:t,type:this.type}),this.center=this.#M.center,this.coordinates=t,this.hexagon=this.#M.hexagon,this.parameters=i,this.styles=this.#M.styles,this.group.addChildren([this.#M.hexagon]),this.items=(n.items||[]).map((t,e)=>(function(t,e,i){let n;switch(e.type){case s2.Types.filter:n=new ra(...arguments);break;case s2.Types.portal:n=new rh(...arguments);break;case s2.Types.terminus:n=new rg(...arguments);break;case s2.Types.reflector:n=new rm(...arguments);break;case s2.Types.wall:n=new r_(...arguments);break;default:throw console.debug("itemFactory",e),Error(`Cannot create item with unknown type: ${e.type}`)}return n&&n.onInitialization(),n})(this,t,e)).filter(t=>void 0!==t),this.modifiers=(n.modifiers||[]).map((t,e)=>rx(this,t,e)).filter(t=>void 0!==t),this.modifiers.forEach(t=>this.updateIcon(t)),this.update()}addItem(t){this.items.push(t),this.update()}addModifier(t){this.modifiers.push(t),this.updateIcon(t)}afterModify(){this.setStyle(this.selected?"selected":"default"),this.modifiers.forEach(t=>t.update({disabled:!1}))}beforeModify(){this.group.bringToFront(),this.setStyle("edit"),this.modifiers.forEach(t=>t.update({disabled:!0}))}getState(){let t={id:this.id,type:this.type},e=this.items.filter(t=>t.type!==s2.Types.beam).map(t=>t.getState());e.length&&(t.items=e);let i=this.modifiers.map(t=>t.getState());return i.length&&(t.modifiers=i),t}onTap(t){this.items.forEach(e=>e.onTap(t))}onDeselected(t){this.selected=!1,this.#M.hexagon.style=this.styles.default,this.items.forEach(t=>t.onDeselected()),sD(rw.Events.Deselected,{selectedTile:t,deselectedTile:this})}onSelected(t){console.debug(this.toString(),"selected"),this.selected=!0,this.group.bringToFront(),this.#M.hexagon.style=this.styles.selected,this.items.forEach(t=>t.onSelected())}removeItem(t){let e=this.items.indexOf(t);e>=0&&(this.items.splice(e,1),this.update())}removeModifier(t){let e=this.modifiers.indexOf(t);e>=0&&(this.modifiers.splice(e,1),this.updateIcon(t))}setStyle(t){this.hexagon.set(this.styles[t])}teardown(){this.modifiers.forEach(t=>t.detach())}toString(){return`[${this.type}:${this.coordinates.offset.toString()}]`}updateIcon(t){let e=this.modifiers.indexOf(t);if(e>=0){let i=sZ(this.#M.hexagon.segments[e].point,this.center,t=>t/3),n={fillColor:t.immutable?"#ccc":"#333"},s=t.getSymbol().place(i,{style:n});s.data={id:t.id,name:t.name,type:t.type};let r=this.group.children.findIndex(e=>e.data.id===t.id);r>=0?this.group.children[r].replaceWith(s):this.group.addChild(s)}}static parameters(t){let e=t/2,i=Math.sqrt(3)*e;return{circumradius:e,height:t,inradius:i/2,offsetY:3/4*t,width:i}}static ui(t,e,i,n){let s=new sE.Point(t.startingOffsetX+e.inradius+t.column*e.width,t.startingOffsetY+e.circumradius+t.row*e.offsetY),r=e.circumradius/10,a=Object.assign({},rw.Styles,{edit:Object.assign({dashArray:[r,r]},rw.Styles.edit)},i.style||{}),o=new sE.Path.RegularPolygon({center:s,closed:!0,data:n,radius:e.circumradius,sides:6,style:a.default});return{center:s,hexagon:o,styles:a}}static Events=Object.freeze({Deselected:"tile-deselected",Selected:"tile-selected"});static MaxModifiers=6;static Styles=Object.freeze({default:{dashArray:[],fillColor:new sE.Color("white"),strokeColor:new sE.Color("#666"),strokeWidth:1},edit:{strokeColor:new sE.Color("black"),strokeWidth:2},selected:{dashArray:[],strokeColor:new sE.Color("black"),strokeWidth:2}})}class rk extends s1{#R=[];#B=[];items=[];layers={};modifiers=[];tiles=[];tileSize=120;constructor(t){super(t),this.type=t.type||rk.Types.oddR;let e=/*@__PURE__*/a(sE).view.center,i=rw.parameters(this.tileSize),n=t.tiles,s=n.length*i.width,r=e.y-s/2;this.layers.tiles=new sE.Layer,this.layers.items=new sE.Layer,this.modifiers=(t.modifiers||[]).map((t,e)=>rx(null,t,e)).filter(t=>void 0!==t);let o=n.reduce((t,e,i)=>{let n=e.length;return n>t.length||n===t.length&&this.#D(i)?{index:i,length:n}:t},{index:0,length:0}),l=o.length*i.width+(this.#D(o.index)?i.inradius:0),h=e.x-l/2;for(let t=0;tt.group))),this.tiles.push(p),s[l.q]=p,a[u.c]=p}this.#R.push(s),this.#B.push(a)}}getTileByAxial(t){return(this.#R[t.r]||[])[t.q]}getTileByOffset(t){return this.#B[t.r][t.c]}getState(){let t={type:this.type};t.tiles=this.#B.map(t=>t.map(t=>t?.getState()||null));let e=this.modifiers.map(t=>t.getState());return e.length&&(t.modifiers=e),t}getNeighboringTile(t,e){return this.getTileByAxial(s0.neighbor(t,sW(e)))}removeModifier(t){let e=this.modifiers.indexOf(t);e>=0&&this.modifiers.splice(e,1)}teardown(){this.modifiers.forEach(t=>t.detach()),Object.values(this.layers).forEach(t=>t.removeChildren())}#D(t){return t%2==0?this.type===rk.Types.evenR:this.type===rk.Types.oddR}static Types=Object.freeze({evenR:"even-r",oddR:"odd-r"})}var sE=(u("hvNIE"),u("hvNIE"));class rS extends s2{constructor(t,e){super(null,e,{locked:!1,type:s2.Types.mask});let i={type:this.type},n=new sE.Path.RegularPolygon({center:t.center,closed:!0,data:i,opacity:.25,radius:t.parameters.circumradius+1,sides:6,style:Object.assign({fillColor:"black"},e)});this.center=t.center,this.group.addChild(n)}}var sE=u("hvNIE");class rC extends s2{constructor(t){super(null,t,{type:s2.Types.collision});let{center:e,color:i}=t;this.center=e,this.color=i;let n=new sE.Path.Circle({center:e,closed:!0,radius:4,style:{fillColor:"white",strokeColor:i,strokeWidth:2}});this.group.addChild(n)}}let rI={"001":u("3VFNU"),"002":u("dvwd6"),"003":u("1pc6w"),"004":u("iL3ZL"),"005":u("bzWyh"),"006":u("cJ803"),"007":u("dX47o"),"008":u("j6Nsr"),"009":u("dtX4d"),"010":u("g1I4V"),"011":u("8EOId"),"012":u("2svxQ"),test_infinite_loop:u("1C1In"),test_layout:u("heXOA"),test_portal:u("16oTl"),test_reflector:u("1nXJz")};function rT(t,e,i){let n=t.indexOf(e);return t[n<0?n:n+i]}class rE{ids;constructor(t){this.firstId=t[0],this.ids=t,this.lastId=t[t.length-1]}get(t){if(this.has(t))return structuredClone(rI[t])}has(t){return this.ids.includes(t)}nextId(t){return rT(this.ids,t,1)}previousId(t){return rT(this.ids,t,-1)}}let rA=new rE(Object.keys(rI).sort());rA.hidden=new rE(rA.ids.filter(t=>t.startsWith("test_"))),rA.titles=Object.fromEntries(rA.ids.map(t=>[t,rI[t].title||t])),rA.visible=new rE(rA.ids.filter(t=>!rA.hidden.has(t)));let rP=window.history,rO=window.localStorage;class rM{#V;#F;#j;#U;#q;#Z;#H;#G;constructor(t,e,i,n,s,r,a){console.log(n),this.#j=t,this.#Z=e,this.#F=i||[],this.#q=s||[],this.#U=n??this.#q.length-1,this.#H=r,this.#G=a??rM.Version,this.#W(),this.#$()}addMove(){if(this.#U0}canUndo(){return this.#U>=0}encode(){return sL(JSON.stringify({id:this.#j,original:rA.has(this.#j)?{version:this.#Z.version}:this.#Z,deltas:this.#F,moveIndex:this.#U,moves:this.#q,selectedTile:this.#H,version:this.#G}))}getCurrent(){return structuredClone(this.#V)}getDeltaIndex(){return console.debug(this.toString(),"getDeltaIndex",this.#q,this.#U,this.#F.length-1),this.#Ui<=t).forEach(t=>this.#K(t))}#$(){let t=this.getId(),e=this.encode();sO.hash=["",t,e].join("/"),rP.pushState({id:t,state:e},"",sO),rO.setItem(rM.CacheKeys.id,t),rO.setItem(this.#J(rM.CacheKeys.state),e)}static clearCache(t){t?(sO.hash=`/${t}`,rP.pushState({id:t},"",sO),rO.removeItem(rM.key(rM.CacheKeys.state,t))):(sO.hash="",rP.pushState({},"",sO),t=rO.getItem(rM.CacheKeys.id),rO.clear(),rO.setItem(rM.CacheKeys.id,t))}static fromEncoded(t){if(void 0===(t=JSON.parse(sN(t))).id){console.warn("Invalid cache, ignoring.");return}if(t.version!==rM.Version){console.debug(`Invalidating cache due to version mismatch. Ours: ${rM.Version}, theirs: ${t.version}.`),rM.clearCache();return}if(rA.has(t.id)){let e=rA.get(t.id);if(e&&e.version!==t.original?.version){console.debug(`Invalidating cache for puzzle ${t.id} due to version mismatch. Ours: ${e.version}, theirs: ${t.original?.version}.`),rM.clearCache(t.id);return}t.original=e}return new rM(t.id,t.original,t.deltas,t.moveIndex,t.moves,t.selectedTile,t.version)}static fromId(t){return new rM(t,rA.get(t))}static resolve(t){let e;sP.has(rM.ParamKeys.clearCache)&&rM.clearCache(sP.get(rM.ParamKeys.clearCache));let i=sO.hash.substring(1).split("/").filter(t=>""!==t);if(t||i.filter(t=>!rA.has(t)).some((i,n)=>{try{t=(e=rM.fromEncoded(i)).getId()}catch(t){console.debug(`Could not parse state from path segment '${n}'`,t)}return void 0!==e}),!e){t=t||i[0]||rO.getItem(rM.CacheKeys.id)||rA.visible.firstId;let n=rO.getItem(rM.key(rM.CacheKeys.state,t));if(n)try{e=rM.fromEncoded(n)}catch(e){console.debug(`Could not parse state with ID '${t}' from localStorage`,e)}}if(e||(e=rM.fromId(t)),!e)throw Error(`Unable to resolve state for ID '${t}'`);return e}static key(t,e){return`${t}:${e}`}static CacheKeys=Object.freeze({center:"center",id:"id",state:"state",zoom:"zoom"});static ParamKeys=Object.freeze({clearCache:"clearCache"});static Version=3}class rN{#X=[];constructor(t){t.forEach(t=>this.#Y(t))}teardown(){this.#X.forEach(t=>t.teardown()),rN.element.replaceChildren()}isSolved(){return this.#X.every(t=>t.isMet())}#Y(t){switch(t.type){case rL.Types.connections:this.#X.push(new rz(t));break;case rL.Types.moves:this.#X.push(new rR(t));break;default:console.warn("Ignoring condition with unknown type:",t.type)}}static element=document.getElementById("solution")}class rL{constructor(t,e){this.state=t;let i=document.createElement("li");i.append(...e),rN.element.append(i)}isMet(){}teardown(){}update(){}static Types=Object.freeze(Object.fromEntries(["connections","moves"].map(t=>[t,sz(t)])))}class rz extends rL{#Q;#tt=new s5({context:this});#te=[];constructor(t){let e=document.createElement("span");e.textContent="0";let i=document.createElement("span");i.textContent=t.amount.toString(),super(t,[e,s$("/"),i,sq("link","Connections")]),this.#Q=e,this.#tt.add([{type:rg.Events.Connection,handler:this.update},{type:rg.Events.Disconnection,handler:this.update}])}isMet(){return this.#te.length===this.state.amount}teardown(){this.#tt.remove(),super.teardown()}update(t){console.debug("Connections.update",t);let e=t.detail.terminus,i=t.detail.opening,n=`${e.id}:${i.direction}`,s=this.#te.findIndex(t=>t===n);i.connected&&s<0?this.#te.push(n):!i.connected&&s>=0&&this.#te.splice(s,1),this.#Q.textContent=this.#te.length.toString()}}class rR extends rL{#Q;#tt=new s5({context:this});#q=0;constructor(t){if(t.operator??=rR.Operators.equalTo,!Object.values(rR.Operators).includes(t.operator))throw Error(`Invalid moves operator: ${t.operator}`);let e=document.createElement("span");e.textContent="0";let i=document.createElement("span");i.textContent=t.amount.toString(),super(t,[e,s$(t.operator),i,sq("stacks","Moves")]),this.#Q=e,this.#tt.add([{type:rD.Events.Updated,handler:this.update}])}isMet(){switch(this.state.operator){case rR.Operators.equalTo:return this.#q===this.state.amount;case rR.Operators.greaterThan:return this.#q>this.state.amount;case rR.Operators.lessThan:return this.#q",lessThan:"<"})}let rB=Object.freeze({footer:document.getElementById("footer"),footerMessage:document.getElementById("footer-message"),headerMessage:document.getElementById("header-message"),main:document.getElementById("main"),next:document.getElementById("next"),previous:document.getElementById("previous"),puzzle:document.getElementById("puzzle"),puzzleId:document.getElementById("puzzle-id"),redo:document.getElementById("redo"),reset:document.getElementById("reset"),undo:document.getElementById("undo"),title:document.querySelector("title")});class rD{connections=[];debug=!1;error=!1;layers={};message;selectedTile;solved=!1;#ti;#tn=30;#ts={};#tt=new s5({context:this});#tr;#ta=!1;#_;#to=[];#tl;#t;#th;#tu=[];constructor(){/*@__PURE__*/a(sE).settings.insertItems=!1,/*@__PURE__*/a(sE).setup(rB.puzzle),this.#tc(),this.layers.mask=new sE.Layer,this.layers.collisions=new sE.Layer,this.layers.debug=new sE.Layer,this.#tt.add([{type:rf.Events.Update,handler:this.#td},{type:"change",element:rB.puzzleId,handler:this.#tp},{type:"click",element:rB.next,handler:this.#tf},{type:"click",element:rB.previous,handler:this.#tg},{type:"click",element:rB.redo,handler:this.#tm},{type:"click",element:rB.reset,handler:this.#t_},{type:"click",element:rB.undo,handler:this.#tv},{type:"keyup",handler:this.#ty},{type:re.Events.Invoked,handler:this.#tb},{type:rD.Events.Mask,handler:this.#tx},{type:"resize",element:window,handler:function(t,e=500){let i;return(...n)=>{clearTimeout(i),i=setTimeout(()=>{t(...n)},e)}}(this.#tc)},{type:s1.Events.Update,handler:this.#tw},{type:"tap",element:rB.puzzle,handler:this.#tk}]),this.#tr=new s4(rB.puzzle),this.#tS(),this.select()}addMove(){return this.#t.addMove()}centerOnTile(t){let e=this.layout.getTileByOffset(t);/*@__PURE__*/a(sE).view.center=e.center}clearDebugPoints(){this.layers.debug.clear()}drawDebugPoint(t,e={}){let i=new sE.Path.Circle(Object.assign({radius:3,fillColor:"red",strokeColor:"white",strokeWidth:1,center:t},e));this.layers.debug.addChild(i)}getBeamsUpdateDelay(){return this.#tn}getItems(t){return(t?this.#tu.filter(e=>e===t):this.#tu).flatMap(t=>t.items)}getTile(t){let e=/*@__PURE__*/a(sE).project.hitTest(t.ceil(),{fill:!0,match:t=>t.item.data.type===s2.Types.tile,segments:!0,stroke:!0,tolerance:0});return e?this.layout.getTileByAxial(e.item.data.coordinates.axial):e}mask(t){if(this.#_){if(this.#_.equals(t))throw console.debug(t),Error(`Duplicate mask detected: ${t.id}`);console.debug("adding mask to queue",t),this.#to.push(t);return}this.#_=t;let e=this.#tu.filter(t.tileFilter).map(e=>new rS(e,"function"==typeof t.configuration.style?t.configuration.style(e):t.configuration.style));this.layers.mask.addChildren(e.map(t=>t.group)),t.message&&(rB.headerMessage.textContent=t.message),t.onMask(this),document.body.classList.add(rD.Events.Mask)}select(t){if(void 0===t||t!==this.#t?.getId()){try{this.#t=rM.resolve(t)}catch(t){this.#tC(t,"Could not load puzzle.")}this.#tI()}}unmask(){console.debug("unmask",this.#_),this.layers.mask.removeChildren(),this.#tT(this.selectedTile),this.#_.onUnmask(this),this.#_=void 0,document.body.classList.remove(rD.Events.Mask);let t=this.#to.pop();t&&(console.debug("processing next mask in queue",t),setTimeout(()=>{!1!==t.onUpdate()&&this.mask(t)}))}update(){this.#_||this.#ta||(this.#ta=!0,this.#tE())}updateSelectedTile(t){let e=this.selectedTile;return this.selectedTile=t,this.#t.setSelectedTile(t),this.#tT(t),this.#tA(t,e),e&&e!==t&&e.onDeselected(t),t&&t!==e&&t.onSelected(e),e}updateState(){this.#t.update(Object.assign(this.#t.getCurrent(),{layout:this.layout.getState()})),this.#tP(),sD(rD.Events.Updated,{state:this.#t})}#tO(){[this.layout.layers.tiles,this.layout.layers.items,this.layers.mask,this.layers.collisions,this.layers.debug].forEach(t=>/*@__PURE__*/a(sE).project.addLayer(t))}#tM(t){return(t?.modifiers||[]).concat(this.layout.modifiers).filter(t=>!t.immutable).sort((t,e)=>t.id-e.id)}#tf(){let t=rA.visible.nextId(this.#t.getId());t&&this.select(t)}#td(t){let e=t.detail.beam,i=t.detail.state;if(i?.has(rr.Collision)){let t=i.get(rr.Collision),n=rD.Collision.id(t.point),s=this.#ts[n];s?s.addBeam(e):this.#ts[n]=new rD.Collision(this.layers.collisions,[e],t.point);let r=this.#_?.configuration;r?.beam?.equals(e)&&this.unmask()}Object.values(this.#ts).forEach(t=>t.update()),this.#ti.filter(t=>t!==e).forEach(e=>e.onBeamUpdated(t,this)),setTimeout(()=>this.update(),0)}#tC(t,e,i){this.error=!0,"string"==typeof t&&(i=e=t,t=void 0),t&&console.error(t),(i=i??t?.cause)&&console.error("cause:",i),e=e??t?.message??"The puzzle has encountered an error, please consider reporting.",rB.headerMessage.textContent=e,document.body.classList.add(rD.Events.Error)}#ty(t){this.debug&&"s"===t.key&&this.update()}#tx(t){console.debug("Mask event",t),this.mask(t.detail.mask)}#tb(t){let e=t.detail.modifier,i=t.detail.tile;!e.parent&&i.modifiers.some(t=>t.type===re.Types.lock)&&!i.modifiers.some(t=>t.type===e.type)&&i.modifiers.lengtht.type===e.type&&t.id!==e.id).forEach(t=>t.update({disabled:!0}))),this.addMove(),this.updateState(),this.#ti.sort(t=>i.items.some(e=>e===t)?-1:0).forEach(e=>e.onModifierInvoked(t,this)),setTimeout(()=>this.update(),0)}#tp(t){this.select(t.target.value)}#tN(){if(this.solved)return;this.solved=!0,this.updateSelectedTile(void 0),this.mask(rD.#tL);let t=document.createElement("span");t.classList.add(rD.ClassNames.Icon),t.textContent="celebration",t.title="Solved!",rB.headerMessage.replaceChildren(t),document.body.classList.add(rD.Events.Solved),sD(rD.Events.Solved)}#tw(t){console.debug("Puzzle.#onStateUpdate()",t),this.updateState()}#tk(t){let e;if(this.solved||this.error)return;let i=/*@__PURE__*/a(sE).project.hitTest(t.detail.point);switch(i?.item.data.type){case s2.Types.mask:return;case s2.Types.tile:e=this.layout.getTileByAxial(i.item.data.coordinates.axial)}if(this.#_)this.#_.onTap(this,e);else{let i=this.updateSelectedTile(e);e&&e===i&&e.onTap(t)}}#tg(){let t=rA.visible.previousId(this.#t.getId());t&&this.select(t)}#tm(){this.#t.redo()&&this.#tI()}#tI(){this.error=!1,this.#t&&this.#tz(),this.#tR(),sD(rD.Events.Updated,{state:this.#t})}#tB(){Object.values(this.layers).forEach(t=>t.removeChildren()),/*@__PURE__*/a(sE).project.clear()}#t_(){this.#t.reset()&&this.#tI()}#tc(){let{width:t,height:e}=rB.main.getBoundingClientRect();rB.puzzle.style.height=e+"px",rB.puzzle.style.width=t+"px",/*@__PURE__*/a(sE).view.viewSize=new sE.Size(t,e)}#tR(){let{layout:t,message:e,solution:i}=this.#t.getCurrent();this.layout=new rk(t),this.message=e,this.#tl=new rN(i),this.#tu=this.layout.tiles,this.#th=this.layout.items.filter(t=>t.type===s2.Types.terminus),this.#ti=this.#th.flatMap(t=>t.beams),this.#tO(),document.body.classList.add(rD.Events.Loaded);let n=this.#t.getSelectedTile(),s=n?this.layout.getTileByOffset(new sQ(...n.split(","))):void 0;this.updateSelectedTile(s),this.updateState(),this.update()}#tz(){document.body.classList.remove(...Object.values(rD.Events)),this.#tB(),this.#tu.forEach(t=>t.teardown()),this.#tu=[],this.#tl?.teardown(),this.#tl=void 0,this.solved=!1,this.layout?.teardown(),this.layout=void 0,this.selectedTile=void 0,this.#ti=[],this.#ts={},this.#ta=!1,this.#_=void 0,this.#to=[],this.#th=[]}#tv(){this.#t.undo()&&this.#tI()}#tP(){let t=this.#t.getId(),e=this.#t.getTitle();rB.title.textContent=`Beaming: Puzzle ${e}`,function(t,...e){e.forEach(e=>e.classList.remove(t))}(rD.ClassNames.Disabled,...Array.from(document.querySelectorAll("#actions li")));let i=[];this.#t.canUndo()||i.push(rB.undo),this.#t.canRedo()||i.push(rB.redo),this.#t.canReset()||i.push(rB.reset),rA.visible.has(t)?(rB.puzzleId.value=t,t===rA.visible.firstId?i.push(rB.previous):t===rA.visible.lastId&&i.push(rB.next)):(rB.puzzleId.value="",i.push(rB.previous,rB.next)),function(t,...e){e.forEach(e=>e.classList.add(t))}(rD.ClassNames.Disabled,...i)}#tS(){for(let t of(rB.puzzleId.replaceChildren(),rA.visible.ids)){let e=document.createElement("option");e.value=t,e.innerText=rA.titles[t],rB.puzzleId.append(e)}}#tE(){let t=this.#ti.filter(t=>t.isPending());if(!t.length){this.#ta=!1,setTimeout(()=>{this.#tl.isSolved()&&this.#tN()},0);return}this.debug&&this.layers.debug.clear(),t.forEach(t=>t.step(this)),setTimeout(()=>this.#tE(),this.#tn)}#tT(t){if(rB.headerMessage.textContent=this.message,rB.footerMessage.replaceChildren(),t){let e=t.items.map(e=>e.getColorElements(t)).find(t=>t.length>1)||[];rB.footerMessage.replaceChildren(...e)}}#tA(t,e){this.#tM(e).forEach(t=>t.detach());let i=this.#tM(t);i.forEach(e=>e.attach(t)),rB.footer.classList.toggle(rD.ClassNames.Active,i.length>0)}static Collision=class{constructor(t,e,i,n){this.id=rD.Collision.id(i),this.layer=t,this.beams=e,this.point=i,this.item=n}addBeam(t){return this.beams.some(e=>e.id===t.id)||this.beams.push(t),this.beams}addItem(t){this.item=new rC({center:this.point,color:t}),this.layer.addChild(this.item.group)}equals(t){return sV(this.point,t?.point)}getColor(){return this.beams.length?ij.average(this.beams.map(t=>t.getColor())).hex():void 0}removeItem(){this.item&&(this.item.remove(),this.item=void 0)}update(){this.beams=this.beams.filter(t=>this.equals(t.getCollision()));let t=this.getColor();this.item&&(!this.beams.length||this.item.color!==t)&&this.removeItem(),this.beams.length&&!this.item&&this.addItem(t)}static id(t){let e=t.round();return[e.x,e.y].join(",")}};static ClassNames=Object.freeze({Active:"active",Disabled:"disabled",Icon:"material-symbols-outlined"});static Events=Object.freeze({Error:"puzzle-error",Loaded:"puzzle-loaded",Mask:"puzzle-mask",Solved:"puzzle-solved",Updated:"puzzle-updated"});static Mask=class{constructor(t={}){t.style??={},this.configuration=t,this.id=t.id,this.message=t.message,this.tileFilter=t.tileFilter??sK(!0),this.onMask=t.onMask??sK,this.onTap=t.onTap??sK,this.onUnmask=t.onUnmask??sK,this.onUpdate=t.onUpdate??sK}equals(t){return this.id===t.id}};static #tD=t=>t.type===s2.Types.beam&&t.isConnected();static #tL=new rD.Mask({style:t=>{let e=t.items.filter(rD.#tD).flatMap(e=>e.getSteps(t).flatMap(t=>t.color));return{fillColor:ij.average(e).hex()}},tileFilter:t=>t.items.some(rD.#tD)})}let rV=document.createElement("script");rV.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=G-HXLD6EE5NS"),document.head.append(rV);let rF=window.dataLayer=window.dataLayer||[];function rj(){rF.push(arguments)}rj("js",new Date),rj("config","G-HXLD6EE5NS");let rU=window.doorbellOptions={appKey:"o1smdnJiyxObjMcY0jSTf08TIhA814yLq68rEwTDWTavma7dtIVKEdwzMePE2LHC",container:document.getElementById("feedback-container"),hideButton:!0,properties:{}},rq=document.createElement("script");rq.setAttribute("src","https://embed.doorbell.io/button/14129/1705777677/init?native_json=1&needs_postmessage=0"),document.head.append(rq),document.addEventListener("puzzle-updated",t=>{rU.properties.puzzleId=t.detail.state.getId()});let rZ=new rD,rH={debug:sY,puzzle:rZ};rH.centerOnTile=function(t,e){return rZ.centerOnTile(new sQ(t,e))},rH.clearDebugPoints=rZ.clearDebugPoints.bind(rZ),rH.drawDebugPoint=function(t,e,i){return rZ.drawDebugPoint(new sE.Point(t,e),i)},window.beaming=rH}(); +//# sourceMappingURL=index.2ce7cc88.js.map diff --git a/index.2ce7cc88.js.map b/index.2ce7cc88.js.map new file mode 100644 index 0000000..c0d6f50 --- /dev/null +++ b/index.2ce7cc88.js.map @@ -0,0 +1 @@ +{"mappings":"C,A,euCkLI,EACA,EACA,EAkyJA,EAAQ,E,S,E,C,C,C,C,C,C,C,E,O,c,C,E,E,C,I,E,I,E,W,C,E,a,C,C,E,C,S,E,C,E,O,G,E,U,C,E,O,C,C,C,I,E,A,a,O,W,W,A,a,O,K,K,A,a,O,O,O,A,a,O,O,O,C,E,E,C,E,E,C,E,E,E,iB,A,O,I,A,C,E,S,C,E,G,K,E,O,C,C,E,C,O,C,G,K,E,C,I,E,C,C,E,A,Q,C,C,E,C,I,E,C,G,E,Q,C,C,E,O,C,C,E,C,E,E,I,C,E,O,C,E,E,O,E,E,O,A,C,I,E,A,M,uB,E,I,O,E,I,C,mB,C,C,E,Q,C,S,C,C,C,E,C,C,E,C,C,E,E,iB,C,G,I,E,E,Q,C,E,Q,S,C,C,C,EtCt9JZ;;;;;;;;;;;;;;;;;;;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GAAQ,cAAc,CAAG,SAAU,CAAC,CAAE,CAAC,CAAE,CAAK,EAC5C,OAAO,GAAO,cAAc,CAAC,IAAI,GAAA,KAAI,CAAE,EAAG,GAAI,EAChD,EAGA,OAAO,OAAO,CAAG,E","sources":["","node_modules/paper/dist/paper-full.js","node_modules/@parcel/node-resolver-core/lib/_empty.js","node_modules/acorn/dist/acorn.mjs","src/puzzles/001.json","src/puzzles/002.json","src/puzzles/003.json","src/puzzles/004.json","src/puzzles/005.json","src/puzzles/006.json","src/puzzles/007.json","src/puzzles/008.json","src/puzzles/009.json","src/puzzles/010.json","src/puzzles/011.json","src/puzzles/012.json","src/puzzles/test/infiniteLoop.json","src/puzzles/test/layout.js","src/puzzles/test/portal.json","src/puzzles/test/reflector.json","src/index.js","src/info.js","src/components/debug.js","src/components/util.js","node_modules/jsondiffpatch/lib/index.js","node_modules/jsondiffpatch/lib/diffpatcher.js","node_modules/jsondiffpatch/lib/processor.js","node_modules/jsondiffpatch/lib/pipe.js","node_modules/jsondiffpatch/lib/contexts/diff.js","node_modules/jsondiffpatch/lib/contexts/context.js","node_modules/jsondiffpatch/lib/clone.js","node_modules/jsondiffpatch/lib/contexts/patch.js","node_modules/jsondiffpatch/lib/contexts/reverse.js","node_modules/jsondiffpatch/lib/filters/trivial.js","node_modules/jsondiffpatch/lib/filters/nested.js","node_modules/jsondiffpatch/lib/filters/arrays.js","node_modules/jsondiffpatch/lib/filters/lcs.js","node_modules/jsondiffpatch/lib/filters/dates.js","node_modules/jsondiffpatch/lib/filters/texts.js","node_modules/pako/dist/pako.esm.mjs","node_modules/chroma-js/index.js","node_modules/chroma-js/src/chroma.js","node_modules/chroma-js/src/Color.js","node_modules/chroma-js/src/utils/index.js","node_modules/chroma-js/src/utils/clip_rgb.js","node_modules/chroma-js/src/utils/limit.js","node_modules/chroma-js/src/utils/type.js","node_modules/chroma-js/src/utils/unpack.js","node_modules/chroma-js/src/utils/last.js","node_modules/chroma-js/src/io/input.js","node_modules/chroma-js/src/version.js","node_modules/chroma-js/src/io/cmyk/index.js","node_modules/chroma-js/src/io/cmyk/cmyk2rgb.js","node_modules/chroma-js/src/io/cmyk/rgb2cmyk.js","node_modules/chroma-js/src/io/css/index.js","node_modules/chroma-js/src/io/css/rgb2css.js","node_modules/chroma-js/src/io/css/hsl2css.js","node_modules/chroma-js/src/io/hsl/rgb2hsl.js","node_modules/chroma-js/src/io/css/css2rgb.js","node_modules/chroma-js/src/io/hsl/hsl2rgb.js","node_modules/chroma-js/src/io/gl/index.js","node_modules/chroma-js/src/io/hcg/index.js","node_modules/chroma-js/src/io/hcg/hcg2rgb.js","node_modules/chroma-js/src/io/hcg/rgb2hcg.js","node_modules/chroma-js/src/io/hex/index.js","node_modules/chroma-js/src/io/hex/hex2rgb.js","node_modules/chroma-js/src/io/hex/rgb2hex.js","node_modules/chroma-js/src/io/hsi/index.js","node_modules/chroma-js/src/io/hsi/hsi2rgb.js","node_modules/chroma-js/src/io/hsi/rgb2hsi.js","node_modules/chroma-js/src/io/hsl/index.js","node_modules/chroma-js/src/io/hsv/index.js","node_modules/chroma-js/src/io/hsv/hsv2rgb.js","node_modules/chroma-js/src/io/hsv/rgb2hsv.js","node_modules/chroma-js/src/io/lab/index.js","node_modules/chroma-js/src/io/lab/lab2rgb.js","node_modules/chroma-js/src/io/lab/lab-constants.js","node_modules/chroma-js/src/io/lab/rgb2lab.js","node_modules/chroma-js/src/io/lch/index.js","node_modules/chroma-js/src/io/lch/lch2rgb.js","node_modules/chroma-js/src/io/lch/lch2lab.js","node_modules/chroma-js/src/io/lch/hcl2rgb.js","node_modules/chroma-js/src/io/lch/rgb2lch.js","node_modules/chroma-js/src/io/lch/lab2lch.js","node_modules/chroma-js/src/io/named/index.js","node_modules/chroma-js/src/colors/w3cx11.js","node_modules/chroma-js/src/io/num/index.js","node_modules/chroma-js/src/io/num/num2rgb.js","node_modules/chroma-js/src/io/num/rgb2num.js","node_modules/chroma-js/src/io/rgb/index.js","node_modules/chroma-js/src/io/temp/index.js","node_modules/chroma-js/src/io/temp/temperature2rgb.js","node_modules/chroma-js/src/io/temp/rgb2temperature.js","node_modules/chroma-js/src/io/oklab/index.js","node_modules/chroma-js/src/io/oklab/oklab2rgb.js","node_modules/chroma-js/src/io/oklab/rgb2oklab.js","node_modules/chroma-js/src/io/oklch/index.js","node_modules/chroma-js/src/io/oklch/oklch2rgb.js","node_modules/chroma-js/src/io/oklch/rgb2oklch.js","node_modules/chroma-js/src/ops/alpha.js","node_modules/chroma-js/src/ops/clipped.js","node_modules/chroma-js/src/ops/darken.js","node_modules/chroma-js/src/ops/get.js","node_modules/chroma-js/src/ops/luminance.js","node_modules/chroma-js/src/ops/mix.js","node_modules/chroma-js/src/generator/mix.js","node_modules/chroma-js/src/interpolator/index.js","node_modules/chroma-js/src/ops/premultiply.js","node_modules/chroma-js/src/ops/saturate.js","node_modules/chroma-js/src/ops/set.js","node_modules/chroma-js/src/ops/shade.js","node_modules/chroma-js/src/interpolator/rgb.js","node_modules/chroma-js/src/interpolator/lrgb.js","node_modules/chroma-js/src/interpolator/lab.js","node_modules/chroma-js/src/interpolator/lch.js","node_modules/chroma-js/src/interpolator/_hsx.js","node_modules/chroma-js/src/interpolator/num.js","node_modules/chroma-js/src/interpolator/hcg.js","node_modules/chroma-js/src/interpolator/hsi.js","node_modules/chroma-js/src/interpolator/hsl.js","node_modules/chroma-js/src/interpolator/hsv.js","node_modules/chroma-js/src/interpolator/oklab.js","node_modules/chroma-js/src/interpolator/oklch.js","node_modules/chroma-js/src/generator/average.js","node_modules/chroma-js/src/generator/bezier.js","node_modules/chroma-js/src/generator/scale.js","node_modules/chroma-js/src/generator/blend.js","node_modules/chroma-js/src/generator/cubehelix.js","node_modules/chroma-js/src/generator/random.js","node_modules/chroma-js/src/utils/analyze.js","node_modules/chroma-js/src/utils/contrast.js","node_modules/chroma-js/src/utils/delta-e.js","node_modules/chroma-js/src/utils/distance.js","node_modules/chroma-js/src/utils/valid.js","node_modules/chroma-js/src/utils/scales.js","node_modules/chroma-js/src/colors/colorbrewer.js","src/components/puzzle.js","src/components/layout.js","src/components/coordinates/cube.js","src/components/coordinates/offset.js","src/components/items/tile.js","src/components/item.js","src/components/stateful.js","src/components/itemFactory.js","src/components/items/filter.js","src/components/modifiers/move.js","src/components/modifier.js","src/components/eventListeners.js","src/components/interact.js","src/components/cache.js","src/components/icons.js","src/components/symbol.js","src/components/step.js","src/components/items/portal.js","src/components/modifiers/rotate.js","src/components/items/terminus.js","src/components/modifiers/toggle.js","src/components/items/beam.js","src/components/collision.js","src/components/items/reflector.js","src/components/items/wall.js","src/components/modifierFactory.js","src/components/modifiers/immutable.js","src/components/modifiers/lock.js","src/components/modifiers/swap.js","src/components/items/mask.js","src/components/items/collision.js","src/components/state.js","src/puzzles/index.js","src/components/solution.js","src/analytics.js","src/feedback.js"],"sourcesContent":["(function () {\n\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true, configurable: true});\n}\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\n var $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequiref3c5\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequiref3c5\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"hvNIE\", function(module, exports) {\n/*!\n * Paper.js v0.12.18 - The Swiss Army Knife of Vector Graphics Scripting.\n * http://paperjs.org/\n *\n * Copyright (c) 2011 - 2020, Jürg Lehni & Jonathan Puckey\n * http://juerglehni.com/ & https://puckey.studio/\n *\n * Distributed under the MIT license. See LICENSE file for details.\n *\n * All rights reserved.\n *\n * Date: Wed Jul 17 14:57:24 2024 +0200\n *\n ***\n *\n * Straps.js - Class inheritance library with support for bean-style accessors\n *\n * Copyright (c) 2006 - 2020 Jürg Lehni\n * http://juerglehni.com/\n *\n * Distributed under the MIT license.\n *\n ***\n *\n * Acorn.js\n * https://marijnhaverbeke.nl/acorn/\n *\n * Acorn is a tiny, fast JavaScript parser written in JavaScript,\n * created by Marijn Haverbeke and released under an MIT license.\n *\n */ \n\n\nvar paper = (function(self1, undefined) {\n self1 = self1 || (parcelRequire(\"1S6xU\"));\n var window = self1.window, document = self1.document;\n var Base = new function() {\n var hidden = /^(statics|enumerable|beans|preserve)$/, array = [], slice = array.slice, create = Object.create, describe = Object.getOwnPropertyDescriptor, define1 = Object.defineProperty, forEach = array.forEach || function(iter, bind) {\n for(var i = 0, l = this.length; i < l; i++)iter.call(bind, this[i], i, this);\n }, forIn = function(iter, bind) {\n for(var i in this)if (this.hasOwnProperty(i)) iter.call(bind, this[i], i, this);\n }, set = Object.assign || function(dst) {\n for(var i = 1, l = arguments.length; i < l; i++){\n var src = arguments[i];\n for(var key in src)if (src.hasOwnProperty(key)) dst[key] = src[key];\n }\n return dst;\n }, each = function(obj, iter, bind) {\n if (obj) {\n var desc = describe(obj, \"length\");\n (desc && typeof desc.value === \"number\" ? forEach : forIn).call(obj, iter, bind = bind || obj);\n }\n return bind;\n };\n function inject(dest, src, enumerable, beans, preserve) {\n var beansNames = {};\n function field(name, val) {\n val = val || (val = describe(src, name)) && (val.get ? val : val.value);\n if (typeof val === \"string\" && val[0] === \"#\") val = dest[val.substring(1)] || val;\n var isFunc = typeof val === \"function\", res = val, prev = preserve || isFunc && !val.base ? val && val.get ? name in dest : dest[name] : null, bean;\n if (!preserve || !prev) {\n if (isFunc && prev) val.base = prev;\n if (isFunc && beans !== false && (bean = name.match(/^([gs]et|is)(([A-Z])(.*))$/))) beansNames[bean[3].toLowerCase() + bean[4]] = bean[2];\n if (!res || isFunc || !res.get || typeof res.get !== \"function\" || !Base.isPlainObject(res)) res = {\n value: res,\n writable: true\n };\n if ((describe(dest, name) || {\n configurable: true\n }).configurable) {\n res.configurable = true;\n res.enumerable = enumerable != null ? enumerable : !bean;\n }\n define1(dest, name, res);\n }\n }\n if (src) {\n for(var name in src)if (src.hasOwnProperty(name) && !hidden.test(name)) field(name);\n for(var name in beansNames){\n var part = beansNames[name], set = dest[\"set\" + part], get = dest[\"get\" + part] || set && dest[\"is\" + part];\n if (get && (beans === true || get.length === 0)) field(name, {\n get: get,\n set: set\n });\n }\n }\n return dest;\n }\n function Base() {\n for(var i = 0, l = arguments.length; i < l; i++){\n var src = arguments[i];\n if (src) set(this, src);\n }\n return this;\n }\n return inject(Base, {\n inject: function(src) {\n if (src) {\n var statics = src.statics === true ? src : src.statics, beans = src.beans, preserve = src.preserve;\n if (statics !== src) inject(this.prototype, src, src.enumerable, beans, preserve);\n inject(this, statics, null, beans, preserve);\n }\n for(var i = 1, l = arguments.length; i < l; i++)this.inject(arguments[i]);\n return this;\n },\n extend: function() {\n var base = this, ctor, proto;\n for(var i = 0, obj, l = arguments.length; i < l && !(ctor && proto); i++){\n obj = arguments[i];\n ctor = ctor || obj.initialize;\n proto = proto || obj.prototype;\n }\n ctor = ctor || function() {\n base.apply(this, arguments);\n };\n proto = ctor.prototype = proto || create(this.prototype);\n define1(proto, \"constructor\", {\n value: ctor,\n writable: true,\n configurable: true\n });\n inject(ctor, this);\n if (arguments.length) this.inject.apply(ctor, arguments);\n ctor.base = base;\n return ctor;\n }\n }).inject({\n enumerable: false,\n initialize: Base,\n set: Base,\n inject: function() {\n for(var i = 0, l = arguments.length; i < l; i++){\n var src = arguments[i];\n if (src) inject(this, src, src.enumerable, src.beans, src.preserve);\n }\n return this;\n },\n extend: function() {\n var res = create(this);\n return res.inject.apply(res, arguments);\n },\n each: function(iter, bind) {\n return each(this, iter, bind);\n },\n clone: function() {\n return new this.constructor(this);\n },\n statics: {\n set: set,\n each: each,\n create: create,\n define: define1,\n describe: describe,\n clone: function(obj) {\n return set(new obj.constructor(), obj);\n },\n isPlainObject: function(obj) {\n var ctor = obj != null && obj.constructor;\n return ctor && (ctor === Object || ctor === Base || ctor.name === \"Object\");\n },\n pick: function(a, b) {\n return a !== undefined ? a : b;\n },\n slice: function(list, begin, end) {\n return slice.call(list, begin, end);\n }\n }\n });\n };\n module.exports = Base;\n Base.inject({\n enumerable: false,\n toString: function() {\n return this._id != null ? (this._class || \"Object\") + (this._name ? \" '\" + this._name + \"'\" : \" @\" + this._id) : \"{ \" + Base.each(this, function(value, key) {\n if (!/^_/.test(key)) {\n var type = typeof value;\n this.push(key + \": \" + (type === \"number\" ? Formatter.instance.number(value) : type === \"string\" ? \"'\" + value + \"'\" : value));\n }\n }, []).join(\", \") + \" }\";\n },\n getClassName: function() {\n return this._class || \"\";\n },\n importJSON: function(json) {\n return Base.importJSON(json, this);\n },\n exportJSON: function(options) {\n return Base.exportJSON(this, options);\n },\n toJSON: function() {\n return Base.serialize(this);\n },\n set: function(props, exclude) {\n if (props) Base.filter(this, props, exclude, this._prioritize);\n return this;\n }\n }, {\n beans: false,\n statics: {\n exports: {},\n extend: function extend() {\n var res = extend.base.apply(this, arguments), name = res.prototype._class;\n if (name && !Base.exports[name]) Base.exports[name] = res;\n return res;\n },\n equals: function(obj1, obj2) {\n if (obj1 === obj2) return true;\n if (obj1 && obj1.equals) return obj1.equals(obj2);\n if (obj2 && obj2.equals) return obj2.equals(obj1);\n if (obj1 && obj2 && typeof obj1 === \"object\" && typeof obj2 === \"object\") {\n if (Array.isArray(obj1) && Array.isArray(obj2)) {\n var length = obj1.length;\n if (length !== obj2.length) return false;\n while(length--){\n if (!Base.equals(obj1[length], obj2[length])) return false;\n }\n } else {\n var keys = Object.keys(obj1), length = keys.length;\n if (length !== Object.keys(obj2).length) return false;\n while(length--){\n var key = keys[length];\n if (!(obj2.hasOwnProperty(key) && Base.equals(obj1[key], obj2[key]))) return false;\n }\n }\n return true;\n }\n return false;\n },\n read: function(list, start, options, amount) {\n if (this === Base) {\n var value = this.peek(list, start);\n list.__index++;\n return value;\n }\n var proto = this.prototype, readIndex = proto._readIndex, begin = start || readIndex && list.__index || 0, length = list.length, obj = list[begin];\n amount = amount || length - begin;\n if (obj instanceof this || options && options.readNull && obj == null && amount <= 1) {\n if (readIndex) list.__index = begin + 1;\n return obj && options && options.clone ? obj.clone() : obj;\n }\n obj = Base.create(proto);\n if (readIndex) obj.__read = true;\n obj = obj.initialize.apply(obj, begin > 0 || begin + amount < length ? Base.slice(list, begin, begin + amount) : list) || obj;\n if (readIndex) {\n list.__index = begin + obj.__read;\n var filtered = obj.__filtered;\n if (filtered) {\n list.__filtered = filtered;\n obj.__filtered = undefined;\n }\n obj.__read = undefined;\n }\n return obj;\n },\n peek: function(list, start) {\n return list[list.__index = start || list.__index || 0];\n },\n remain: function(list) {\n return list.length - (list.__index || 0);\n },\n readList: function(list, start, options, amount) {\n var res = [], entry, begin = start || 0, end = amount ? begin + amount : list.length;\n for(var i = begin; i < end; i++)res.push(Array.isArray(entry = list[i]) ? this.read(entry, 0, options) : this.read(list, i, options, 1));\n return res;\n },\n readNamed: function(list, name, start, options, amount) {\n var value = this.getNamed(list, name), hasValue = value !== undefined;\n if (hasValue) {\n var filtered = list.__filtered;\n if (!filtered) {\n var source = this.getSource(list);\n filtered = list.__filtered = Base.create(source);\n filtered.__unfiltered = source;\n }\n filtered[name] = undefined;\n }\n return this.read(hasValue ? [\n value\n ] : list, start, options, amount);\n },\n readSupported: function(list, dest) {\n var source = this.getSource(list), that = this, read = false;\n if (source) Object.keys(source).forEach(function(key) {\n if (key in dest) {\n var value = that.readNamed(list, key);\n if (value !== undefined) dest[key] = value;\n read = true;\n }\n });\n return read;\n },\n getSource: function(list) {\n var source = list.__source;\n if (source === undefined) {\n var arg = list.length === 1 && list[0];\n source = list.__source = arg && Base.isPlainObject(arg) ? arg : null;\n }\n return source;\n },\n getNamed: function(list, name) {\n var source = this.getSource(list);\n if (source) return name ? source[name] : list.__filtered || source;\n },\n hasNamed: function(list, name) {\n return !!this.getNamed(list, name);\n },\n filter: function(dest, source, exclude, prioritize) {\n var processed;\n function handleKey(key) {\n if (!(exclude && key in exclude) && !(processed && key in processed)) {\n var value = source[key];\n if (value !== undefined) dest[key] = value;\n }\n }\n if (prioritize) {\n var keys = {};\n for(var i = 0, key, l = prioritize.length; i < l; i++)if ((key = prioritize[i]) in source) {\n handleKey(key);\n keys[key] = true;\n }\n processed = keys;\n }\n Object.keys(source.__unfiltered || source).forEach(handleKey);\n return dest;\n },\n isPlainValue: function(obj, asString) {\n return Base.isPlainObject(obj) || Array.isArray(obj) || asString && typeof obj === \"string\";\n },\n serialize: function(obj, options, compact, dictionary) {\n options = options || {};\n var isRoot = !dictionary, res;\n if (isRoot) {\n options.formatter = new Formatter(options.precision);\n dictionary = {\n length: 0,\n definitions: {},\n references: {},\n add: function(item, create) {\n var id = \"#\" + item._id, ref = this.references[id];\n if (!ref) {\n this.length++;\n var res = create.call(item), name = item._class;\n if (name && res[0] !== name) res.unshift(name);\n this.definitions[id] = res;\n ref = this.references[id] = [\n id\n ];\n }\n return ref;\n }\n };\n }\n if (obj && obj._serialize) {\n res = obj._serialize(options, dictionary);\n var name = obj._class;\n if (name && !obj._compactSerialize && (isRoot || !compact) && res[0] !== name) res.unshift(name);\n } else if (Array.isArray(obj)) {\n res = [];\n for(var i = 0, l = obj.length; i < l; i++)res[i] = Base.serialize(obj[i], options, compact, dictionary);\n } else if (Base.isPlainObject(obj)) {\n res = {};\n var keys = Object.keys(obj);\n for(var i = 0, l = keys.length; i < l; i++){\n var key = keys[i];\n res[key] = Base.serialize(obj[key], options, compact, dictionary);\n }\n } else if (typeof obj === \"number\") res = options.formatter.number(obj, options.precision);\n else res = obj;\n return isRoot && dictionary.length > 0 ? [\n [\n \"dictionary\",\n dictionary.definitions\n ],\n res\n ] : res;\n },\n deserialize: function(json, create, _data, _setDictionary, _isRoot) {\n var res = json, isFirst = !_data, hasDictionary = isFirst && json && json.length && json[0][0] === \"dictionary\";\n _data = _data || {};\n if (Array.isArray(json)) {\n var type = json[0], isDictionary = type === \"dictionary\";\n if (json.length == 1 && /^#/.test(type)) return _data.dictionary[type];\n type = Base.exports[type];\n res = [];\n for(var i = type ? 1 : 0, l = json.length; i < l; i++)res.push(Base.deserialize(json[i], create, _data, isDictionary, hasDictionary));\n if (type) {\n var args = res;\n if (create) res = create(type, args, isFirst || _isRoot);\n else res = new type(args);\n }\n } else if (Base.isPlainObject(json)) {\n res = {};\n if (_setDictionary) _data.dictionary = res;\n for(var key in json)res[key] = Base.deserialize(json[key], create, _data);\n }\n return hasDictionary ? res[1] : res;\n },\n exportJSON: function(obj, options) {\n var json = Base.serialize(obj, options);\n return options && options.asString == false ? json : JSON.stringify(json);\n },\n importJSON: function(json, target) {\n return Base.deserialize(typeof json === \"string\" ? JSON.parse(json) : json, function(ctor, args, isRoot) {\n var useTarget = isRoot && target && target.constructor === ctor, obj = useTarget ? target : Base.create(ctor.prototype);\n if (args.length === 1 && obj instanceof Item && (useTarget || !(obj instanceof Layer))) {\n var arg = args[0];\n if (Base.isPlainObject(arg)) {\n arg.insert = false;\n if (useTarget) args = args.concat([\n Item.INSERT\n ]);\n }\n }\n (useTarget ? obj.set : ctor).apply(obj, args);\n if (useTarget) target = null;\n return obj;\n });\n },\n push: function(list, items) {\n var itemsLength = items.length;\n if (itemsLength < 4096) list.push.apply(list, items);\n else {\n var startLength = list.length;\n list.length += itemsLength;\n for(var i = 0; i < itemsLength; i++)list[startLength + i] = items[i];\n }\n return list;\n },\n splice: function(list, items, index, remove) {\n var amount = items && items.length, append = index === undefined;\n index = append ? list.length : index;\n if (index > list.length) index = list.length;\n for(var i = 0; i < amount; i++)items[i]._index = index + i;\n if (append) {\n Base.push(list, items);\n return [];\n } else {\n var args = [\n index,\n remove\n ];\n if (items) Base.push(args, items);\n var removed = list.splice.apply(list, args);\n for(var i = 0, l = removed.length; i < l; i++)removed[i]._index = undefined;\n for(var i = index + amount, l = list.length; i < l; i++)list[i]._index = i;\n return removed;\n }\n },\n capitalize: function(str) {\n return str.replace(/\\b[a-z]/g, function(match) {\n return match.toUpperCase();\n });\n },\n camelize: function(str) {\n return str.replace(/-(.)/g, function(match, chr) {\n return chr.toUpperCase();\n });\n },\n hyphenate: function(str) {\n return str.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n }\n }\n });\n var Emitter = {\n on: function(type, func) {\n if (typeof type !== \"string\") Base.each(type, function(value, key) {\n this.on(key, value);\n }, this);\n else {\n var types = this._eventTypes, entry = types && types[type], handlers = this._callbacks = this._callbacks || {};\n handlers = handlers[type] = handlers[type] || [];\n if (handlers.indexOf(func) === -1) {\n handlers.push(func);\n if (entry && entry.install && handlers.length === 1) entry.install.call(this, type);\n }\n }\n return this;\n },\n off: function(type, func) {\n if (typeof type !== \"string\") {\n Base.each(type, function(value, key) {\n this.off(key, value);\n }, this);\n return;\n }\n var types = this._eventTypes, entry = types && types[type], handlers = this._callbacks && this._callbacks[type], index;\n if (handlers) {\n if (!func || (index = handlers.indexOf(func)) !== -1 && handlers.length === 1) {\n if (entry && entry.uninstall) entry.uninstall.call(this, type);\n delete this._callbacks[type];\n } else if (index !== -1) handlers.splice(index, 1);\n }\n return this;\n },\n once: function(type, func) {\n return this.on(type, function handler() {\n func.apply(this, arguments);\n this.off(type, handler);\n });\n },\n emit: function(type, event) {\n var handlers = this._callbacks && this._callbacks[type];\n if (!handlers) return false;\n var args = Base.slice(arguments, 1), setTarget = event && event.target && !event.currentTarget;\n handlers = handlers.slice();\n if (setTarget) event.currentTarget = this;\n for(var i = 0, l = handlers.length; i < l; i++)if (handlers[i].apply(this, args) == false) {\n if (event && event.stop) event.stop();\n break;\n }\n if (setTarget) delete event.currentTarget;\n return true;\n },\n responds: function(type) {\n return !!(this._callbacks && this._callbacks[type]);\n },\n attach: \"#on\",\n detach: \"#off\",\n fire: \"#emit\",\n _installEvents: function(install) {\n var types = this._eventTypes, handlers = this._callbacks, key = install ? \"install\" : \"uninstall\";\n if (types) {\n for(var type in handlers)if (handlers[type].length > 0) {\n var entry = types[type], func = entry && entry[key];\n if (func) func.call(this, type);\n }\n }\n },\n statics: {\n inject: function inject(src) {\n var events = src._events;\n if (events) {\n var types = {};\n Base.each(events, function(entry, key) {\n var isString = typeof entry === \"string\", name = isString ? entry : key, part = Base.capitalize(name), type = name.substring(2).toLowerCase();\n types[type] = isString ? {} : entry;\n name = \"_\" + name;\n src[\"get\" + part] = function() {\n return this[name];\n };\n src[\"set\" + part] = function(func) {\n var prev = this[name];\n if (prev) this.off(type, prev);\n if (func) this.on(type, func);\n this[name] = func;\n };\n });\n src._eventTypes = types;\n }\n return inject.base.apply(this, arguments);\n }\n }\n };\n var PaperScope = Base.extend({\n _class: \"PaperScope\",\n initialize: function PaperScope() {\n paper = this;\n this.settings = new Base({\n applyMatrix: true,\n insertItems: true,\n handleSize: 4,\n hitTolerance: 0\n });\n this.project = null;\n this.projects = [];\n this.tools = [];\n this._id = PaperScope._id++;\n PaperScope._scopes[this._id] = this;\n var proto = PaperScope.prototype;\n if (!this.support) {\n var ctx = CanvasProvider.getContext(1, 1) || {};\n proto.support = {\n nativeDash: \"setLineDash\" in ctx || \"mozDash\" in ctx,\n nativeBlendModes: BlendMode.nativeModes\n };\n CanvasProvider.release(ctx);\n }\n if (!this.agent) {\n var user = self1.navigator.userAgent.toLowerCase(), os = (/(darwin|win|mac|linux|freebsd|sunos)/.exec(user) || [])[0], platform = os === \"darwin\" ? \"mac\" : os, agent = proto.agent = proto.browser = {\n platform: platform\n };\n if (platform) agent[platform] = true;\n user.replace(/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\\/?\\s*([.\\d]+)(?:.*version\\/([.\\d]+))?(?:.*rv\\:v?([.\\d]+))?/g, function(match, n, v1, v2, rv) {\n if (!agent.chrome) {\n var v = n === \"opera\" ? v2 : /^(node|trident)$/.test(n) ? rv : v1;\n agent.version = v;\n agent.versionNumber = parseFloat(v);\n n = ({\n trident: \"msie\",\n jsdom: \"node\"\n })[n] || n;\n agent.name = n;\n agent[n] = true;\n }\n });\n if (agent.chrome) delete agent.webkit;\n if (agent.atom) delete agent.chrome;\n }\n },\n version: \"0.12.18\",\n getView: function() {\n var project = this.project;\n return project && project._view;\n },\n getPaper: function() {\n return this;\n },\n execute: function(code, options) {\n var exports = paper.PaperScript.execute(code, this, options);\n View.updateFocus();\n return exports;\n },\n install: function(scope) {\n var that = this;\n Base.each([\n \"project\",\n \"view\",\n \"tool\"\n ], function(key) {\n Base.define(scope, key, {\n configurable: true,\n get: function() {\n return that[key];\n }\n });\n });\n for(var key in this)if (!/^_/.test(key) && this[key]) scope[key] = this[key];\n },\n setup: function(element) {\n paper = this;\n this.project = new Project(element);\n return this;\n },\n createCanvas: function(width, height) {\n return CanvasProvider.getCanvas(width, height);\n },\n activate: function() {\n paper = this;\n },\n clear: function() {\n var projects = this.projects, tools = this.tools;\n for(var i = projects.length - 1; i >= 0; i--)projects[i].remove();\n for(var i = tools.length - 1; i >= 0; i--)tools[i].remove();\n },\n remove: function() {\n this.clear();\n delete PaperScope._scopes[this._id];\n },\n statics: new function() {\n function handleAttribute(name) {\n name += \"Attribute\";\n return function(el, attr) {\n return el[name](attr) || el[name](\"data-paper-\" + attr);\n };\n }\n return {\n _scopes: {},\n _id: 0,\n get: function(id) {\n return this._scopes[id] || null;\n },\n getAttribute: handleAttribute(\"get\"),\n hasAttribute: handleAttribute(\"has\")\n };\n }\n });\n var PaperScopeItem = Base.extend(Emitter, {\n initialize: function(activate) {\n this._scope = paper;\n this._index = this._scope[this._list].push(this) - 1;\n if (activate || !this._scope[this._reference]) this.activate();\n },\n activate: function() {\n if (!this._scope) return false;\n var prev = this._scope[this._reference];\n if (prev && prev !== this) prev.emit(\"deactivate\");\n this._scope[this._reference] = this;\n this.emit(\"activate\", prev);\n return true;\n },\n isActive: function() {\n return this._scope[this._reference] === this;\n },\n remove: function() {\n if (this._index == null) return false;\n Base.splice(this._scope[this._list], null, this._index, 1);\n if (this._scope[this._reference] == this) this._scope[this._reference] = null;\n this._scope = null;\n return true;\n },\n getView: function() {\n return this._scope.getView();\n }\n });\n var CollisionDetection = {\n findItemBoundsCollisions: function(items1, items2, tolerance) {\n function getBounds(items) {\n var bounds = new Array(items.length);\n for(var i = 0; i < items.length; i++){\n var rect = items[i].getBounds();\n bounds[i] = [\n rect.left,\n rect.top,\n rect.right,\n rect.bottom\n ];\n }\n return bounds;\n }\n var bounds1 = getBounds(items1), bounds2 = !items2 || items2 === items1 ? bounds1 : getBounds(items2);\n return this.findBoundsCollisions(bounds1, bounds2, tolerance || 0);\n },\n findCurveBoundsCollisions: function(curves1, curves2, tolerance, bothAxis) {\n function getBounds(curves) {\n var min = Math.min, max = Math.max, bounds = new Array(curves.length);\n for(var i = 0; i < curves.length; i++){\n var v = curves[i];\n bounds[i] = [\n min(v[0], v[2], v[4], v[6]),\n min(v[1], v[3], v[5], v[7]),\n max(v[0], v[2], v[4], v[6]),\n max(v[1], v[3], v[5], v[7])\n ];\n }\n return bounds;\n }\n var bounds1 = getBounds(curves1), bounds2 = !curves2 || curves2 === curves1 ? bounds1 : getBounds(curves2);\n if (bothAxis) {\n var hor = this.findBoundsCollisions(bounds1, bounds2, tolerance || 0, false, true), ver = this.findBoundsCollisions(bounds1, bounds2, tolerance || 0, true, true), list = [];\n for(var i = 0, l = hor.length; i < l; i++)list[i] = {\n hor: hor[i],\n ver: ver[i]\n };\n return list;\n }\n return this.findBoundsCollisions(bounds1, bounds2, tolerance || 0);\n },\n findBoundsCollisions: function(boundsA, boundsB, tolerance, sweepVertical, onlySweepAxisCollisions) {\n var self1 = !boundsB || boundsA === boundsB, allBounds = self1 ? boundsA : boundsA.concat(boundsB), lengthA = boundsA.length, lengthAll = allBounds.length;\n function binarySearch(indices, coord, value) {\n var lo = 0, hi = indices.length;\n while(lo < hi){\n var mid = hi + lo >>> 1;\n if (allBounds[indices[mid]][coord] < value) lo = mid + 1;\n else hi = mid;\n }\n return lo - 1;\n }\n var pri0 = sweepVertical ? 1 : 0, pri1 = pri0 + 2, sec0 = sweepVertical ? 0 : 1, sec1 = sec0 + 2;\n var allIndicesByPri0 = new Array(lengthAll);\n for(var i = 0; i < lengthAll; i++)allIndicesByPri0[i] = i;\n allIndicesByPri0.sort(function(i1, i2) {\n return allBounds[i1][pri0] - allBounds[i2][pri0];\n });\n var activeIndicesByPri1 = [], allCollisions = new Array(lengthA);\n for(var i = 0; i < lengthAll; i++){\n var curIndex = allIndicesByPri0[i], curBounds = allBounds[curIndex], origIndex = self1 ? curIndex : curIndex - lengthA, isCurrentA = curIndex < lengthA, isCurrentB = self1 || !isCurrentA, curCollisions = isCurrentA ? [] : null;\n if (activeIndicesByPri1.length) {\n var pruneCount = binarySearch(activeIndicesByPri1, pri1, curBounds[pri0] - tolerance) + 1;\n activeIndicesByPri1.splice(0, pruneCount);\n if (self1 && onlySweepAxisCollisions) {\n curCollisions = curCollisions.concat(activeIndicesByPri1);\n for(var j = 0; j < activeIndicesByPri1.length; j++){\n var activeIndex = activeIndicesByPri1[j];\n allCollisions[activeIndex].push(origIndex);\n }\n } else {\n var curSec1 = curBounds[sec1], curSec0 = curBounds[sec0];\n for(var j = 0; j < activeIndicesByPri1.length; j++){\n var activeIndex = activeIndicesByPri1[j], activeBounds = allBounds[activeIndex], isActiveA = activeIndex < lengthA, isActiveB = self1 || activeIndex >= lengthA;\n if (onlySweepAxisCollisions || (isCurrentA && isActiveB || isCurrentB && isActiveA) && curSec1 >= activeBounds[sec0] - tolerance && curSec0 <= activeBounds[sec1] + tolerance) {\n if (isCurrentA && isActiveB) curCollisions.push(self1 ? activeIndex : activeIndex - lengthA);\n if (isCurrentB && isActiveA) allCollisions[activeIndex].push(origIndex);\n }\n }\n }\n }\n if (isCurrentA) {\n if (boundsA === boundsB) curCollisions.push(curIndex);\n allCollisions[curIndex] = curCollisions;\n }\n if (activeIndicesByPri1.length) {\n var curPri1 = curBounds[pri1], index = binarySearch(activeIndicesByPri1, pri1, curPri1);\n activeIndicesByPri1.splice(index + 1, 0, curIndex);\n } else activeIndicesByPri1.push(curIndex);\n }\n for(var i = 0; i < allCollisions.length; i++){\n var collisions = allCollisions[i];\n if (collisions) collisions.sort(function(i1, i2) {\n return i1 - i2;\n });\n }\n return allCollisions;\n }\n };\n var Formatter = Base.extend({\n initialize: function(precision) {\n this.precision = Base.pick(precision, 5);\n this.multiplier = Math.pow(10, this.precision);\n },\n number: function(val) {\n return this.precision < 16 ? Math.round(val * this.multiplier) / this.multiplier : val;\n },\n pair: function(val1, val2, separator) {\n return this.number(val1) + (separator || \",\") + this.number(val2);\n },\n point: function(val, separator) {\n return this.number(val.x) + (separator || \",\") + this.number(val.y);\n },\n size: function(val, separator) {\n return this.number(val.width) + (separator || \",\") + this.number(val.height);\n },\n rectangle: function(val, separator) {\n return this.point(val, separator) + (separator || \",\") + this.size(val, separator);\n }\n });\n Formatter.instance = new Formatter();\n var Numerical = new function() {\n var abscissas = [\n [\n 0.5773502691896257645091488\n ],\n [\n 0,\n 0.7745966692414833770358531\n ],\n [\n 0.3399810435848562648026658,\n 0.8611363115940525752239465\n ],\n [\n 0,\n 0.5384693101056830910363144,\n 0.9061798459386639927976269\n ],\n [\n 0.2386191860831969086305017,\n 0.6612093864662645136613996,\n 0.9324695142031520278123016\n ],\n [\n 0,\n 0.4058451513773971669066064,\n 0.7415311855993944398638648,\n 0.9491079123427585245261897\n ],\n [\n 0.1834346424956498049394761,\n 0.5255324099163289858177390,\n 0.7966664774136267395915539,\n 0.9602898564975362316835609\n ],\n [\n 0,\n 0.3242534234038089290385380,\n 0.6133714327005903973087020,\n 0.8360311073266357942994298,\n 0.9681602395076260898355762\n ],\n [\n 0.1488743389816312108848260,\n 0.4333953941292471907992659,\n 0.6794095682990244062343274,\n 0.8650633666889845107320967,\n 0.9739065285171717200779640\n ],\n [\n 0,\n 0.2695431559523449723315320,\n 0.5190961292068118159257257,\n 0.7301520055740493240934163,\n 0.8870625997680952990751578,\n 0.9782286581460569928039380\n ],\n [\n 0.1252334085114689154724414,\n 0.3678314989981801937526915,\n 0.5873179542866174472967024,\n 0.7699026741943046870368938,\n 0.9041172563704748566784659,\n 0.9815606342467192506905491\n ],\n [\n 0,\n 0.2304583159551347940655281,\n 0.4484927510364468528779129,\n 0.6423493394403402206439846,\n 0.8015780907333099127942065,\n 0.9175983992229779652065478,\n 0.9841830547185881494728294\n ],\n [\n 0.1080549487073436620662447,\n 0.3191123689278897604356718,\n 0.5152486363581540919652907,\n 0.6872929048116854701480198,\n 0.8272013150697649931897947,\n 0.9284348836635735173363911,\n 0.9862838086968123388415973\n ],\n [\n 0,\n 0.2011940939974345223006283,\n 0.3941513470775633698972074,\n 0.5709721726085388475372267,\n 0.7244177313601700474161861,\n 0.8482065834104272162006483,\n 0.9372733924007059043077589,\n 0.9879925180204854284895657\n ],\n [\n 0.0950125098376374401853193,\n 0.2816035507792589132304605,\n 0.4580167776572273863424194,\n 0.6178762444026437484466718,\n 0.7554044083550030338951012,\n 0.8656312023878317438804679,\n 0.9445750230732325760779884,\n 0.9894009349916499325961542\n ]\n ];\n var weights = [\n [\n 1\n ],\n [\n 0.8888888888888888888888889,\n 0.5555555555555555555555556\n ],\n [\n 0.6521451548625461426269361,\n 0.3478548451374538573730639\n ],\n [\n 0.5688888888888888888888889,\n 0.4786286704993664680412915,\n 0.2369268850561890875142640\n ],\n [\n 0.4679139345726910473898703,\n 0.3607615730481386075698335,\n 0.1713244923791703450402961\n ],\n [\n 0.4179591836734693877551020,\n 0.3818300505051189449503698,\n 0.2797053914892766679014678,\n 0.1294849661688696932706114\n ],\n [\n 0.3626837833783619829651504,\n 0.3137066458778872873379622,\n 0.2223810344533744705443560,\n 0.1012285362903762591525314\n ],\n [\n 0.3302393550012597631645251,\n 0.3123470770400028400686304,\n 0.2606106964029354623187429,\n 0.1806481606948574040584720,\n 0.0812743883615744119718922\n ],\n [\n 0.2955242247147528701738930,\n 0.2692667193099963550912269,\n 0.2190863625159820439955349,\n 0.1494513491505805931457763,\n 0.0666713443086881375935688\n ],\n [\n 0.2729250867779006307144835,\n 0.2628045445102466621806889,\n 0.2331937645919904799185237,\n 0.1862902109277342514260976,\n 0.1255803694649046246346943,\n 0.0556685671161736664827537\n ],\n [\n 0.2491470458134027850005624,\n 0.2334925365383548087608499,\n 0.2031674267230659217490645,\n 0.1600783285433462263346525,\n 0.1069393259953184309602547,\n 0.0471753363865118271946160\n ],\n [\n 0.2325515532308739101945895,\n 0.2262831802628972384120902,\n 0.2078160475368885023125232,\n 0.1781459807619457382800467,\n 0.1388735102197872384636018,\n 0.0921214998377284479144218,\n 0.0404840047653158795200216\n ],\n [\n 0.2152638534631577901958764,\n 0.2051984637212956039659241,\n 0.1855383974779378137417166,\n 0.1572031671581935345696019,\n 0.1215185706879031846894148,\n 0.0801580871597602098056333,\n 0.0351194603317518630318329\n ],\n [\n 0.2025782419255612728806202,\n 0.1984314853271115764561183,\n 0.1861610000155622110268006,\n 0.1662692058169939335532009,\n 0.1395706779261543144478048,\n 0.1071592204671719350118695,\n 0.0703660474881081247092674,\n 0.0307532419961172683546284\n ],\n [\n 0.1894506104550684962853967,\n 0.1826034150449235888667637,\n 0.1691565193950025381893121,\n 0.1495959888165767320815017,\n 0.1246289712555338720524763,\n 0.0951585116824927848099251,\n 0.0622535239386478928628438,\n 0.0271524594117540948517806\n ]\n ];\n var abs = Math.abs, sqrt = Math.sqrt, pow = Math.pow, log2 = Math.log2 || function(x) {\n return Math.log(x) * Math.LOG2E;\n }, EPSILON = 1e-12, MACHINE_EPSILON = 1.12e-16;\n function clamp(value, min, max) {\n return value < min ? min : value > max ? max : value;\n }\n function getDiscriminant(a, b, c) {\n function split(v) {\n var x = v * 134217729, y = v - x, hi = y + x, lo = v - hi;\n return [\n hi,\n lo\n ];\n }\n var D = b * b - a * c, E = b * b + a * c;\n if (abs(D) * 3 < E) {\n var ad = split(a), bd = split(b), cd = split(c), p = b * b, dp = bd[0] * bd[0] - p + 2 * bd[0] * bd[1] + bd[1] * bd[1], q = a * c, dq = ad[0] * cd[0] - q + ad[0] * cd[1] + ad[1] * cd[0] + ad[1] * cd[1];\n D = p - q + (dp - dq);\n }\n return D;\n }\n function getNormalizationFactor() {\n var norm = Math.max.apply(Math, arguments);\n return norm && (norm < 1e-8 || norm > 1e8) ? pow(2, -Math.round(log2(norm))) : 0;\n }\n return {\n EPSILON: EPSILON,\n MACHINE_EPSILON: MACHINE_EPSILON,\n CURVETIME_EPSILON: 1e-8,\n GEOMETRIC_EPSILON: 1e-7,\n TRIGONOMETRIC_EPSILON: 1e-8,\n ANGULAR_EPSILON: 1e-5,\n KAPPA: 4 * (sqrt(2) - 1) / 3,\n isZero: function(val) {\n return val >= -EPSILON && val <= EPSILON;\n },\n isMachineZero: function(val) {\n return val >= -MACHINE_EPSILON && val <= MACHINE_EPSILON;\n },\n clamp: clamp,\n integrate: function(f, a, b, n) {\n var x = abscissas[n - 2], w = weights[n - 2], A = (b - a) * 0.5, B = A + a, i = 0, m = n + 1 >> 1, sum = n & 1 ? w[i++] * f(B) : 0;\n while(i < m){\n var Ax = A * x[i];\n sum += w[i++] * (f(B + Ax) + f(B - Ax));\n }\n return A * sum;\n },\n findRoot: function(f, df, x, a, b, n, tolerance) {\n for(var i = 0; i < n; i++){\n var fx = f(x), dx = fx / df(x), nx = x - dx;\n if (abs(dx) < tolerance) {\n x = nx;\n break;\n }\n if (fx > 0) {\n b = x;\n x = nx <= a ? (a + b) * 0.5 : nx;\n } else {\n a = x;\n x = nx >= b ? (a + b) * 0.5 : nx;\n }\n }\n return clamp(x, a, b);\n },\n solveQuadratic: function(a, b, c, roots, min, max) {\n var x1, x2 = Infinity;\n if (abs(a) < EPSILON) {\n if (abs(b) < EPSILON) return abs(c) < EPSILON ? -1 : 0;\n x1 = -c / b;\n } else {\n b *= -0.5;\n var D = getDiscriminant(a, b, c);\n if (D && abs(D) < MACHINE_EPSILON) {\n var f = getNormalizationFactor(abs(a), abs(b), abs(c));\n if (f) {\n a *= f;\n b *= f;\n c *= f;\n D = getDiscriminant(a, b, c);\n }\n }\n if (D >= -MACHINE_EPSILON) {\n var Q = D < 0 ? 0 : sqrt(D), R = b + (b < 0 ? -Q : Q);\n if (R === 0) {\n x1 = c / a;\n x2 = -x1;\n } else {\n x1 = R / a;\n x2 = c / R;\n }\n }\n }\n var count = 0, boundless = min == null, minB = min - EPSILON, maxB = max + EPSILON;\n if (isFinite(x1) && (boundless || x1 > minB && x1 < maxB)) roots[count++] = boundless ? x1 : clamp(x1, min, max);\n if (x2 !== x1 && isFinite(x2) && (boundless || x2 > minB && x2 < maxB)) roots[count++] = boundless ? x2 : clamp(x2, min, max);\n return count;\n },\n solveCubic: function(a, b, c, d, roots, min, max) {\n var f = getNormalizationFactor(abs(a), abs(b), abs(c), abs(d)), x, b1, c2, qd, q;\n if (f) {\n a *= f;\n b *= f;\n c *= f;\n d *= f;\n }\n function evaluate(x0) {\n x = x0;\n var tmp = a * x;\n b1 = tmp + b;\n c2 = b1 * x + c;\n qd = (tmp + b1) * x + c2;\n q = c2 * x + d;\n }\n if (abs(a) < EPSILON) {\n a = b;\n b1 = c;\n c2 = d;\n x = Infinity;\n } else if (abs(d) < EPSILON) {\n b1 = b;\n c2 = c;\n x = 0;\n } else {\n evaluate(-(b / a) / 3);\n var t = q / a, r = pow(abs(t), 1 / 3), s = t < 0 ? -1 : 1, td = -qd / a, rd = td > 0 ? 1.324717957244746 * Math.max(r, sqrt(td)) : r, x0 = x - s * rd;\n if (x0 !== x) {\n do {\n evaluate(x0);\n x0 = qd === 0 ? x : x - q / qd / (1 + MACHINE_EPSILON);\n }while (s * x0 > s * x);\n if (abs(a) * x * x > abs(d / x)) {\n c2 = -d / x;\n b1 = (c2 - c) / x;\n }\n }\n }\n var count = Numerical.solveQuadratic(a, b1, c2, roots, min, max), boundless = min == null;\n if (isFinite(x) && (count === 0 || count > 0 && x !== roots[0] && x !== roots[1]) && (boundless || x > min - EPSILON && x < max + EPSILON)) roots[count++] = boundless ? x : clamp(x, min, max);\n return count;\n }\n };\n };\n var UID = {\n _id: 1,\n _pools: {},\n get: function(name) {\n if (name) {\n var pool = this._pools[name];\n if (!pool) pool = this._pools[name] = {\n _id: 1\n };\n return pool._id++;\n } else return this._id++;\n }\n };\n var Point = Base.extend({\n _class: \"Point\",\n _readIndex: true,\n initialize: function Point(arg0, arg1) {\n var type = typeof arg0, reading = this.__read, read = 0;\n if (type === \"number\") {\n var hasY = typeof arg1 === \"number\";\n this._set(arg0, hasY ? arg1 : arg0);\n if (reading) read = hasY ? 2 : 1;\n } else if (type === \"undefined\" || arg0 === null) {\n this._set(0, 0);\n if (reading) read = arg0 === null ? 1 : 0;\n } else {\n var obj = type === \"string\" ? arg0.split(/[\\s,]+/) || [] : arg0;\n read = 1;\n if (Array.isArray(obj)) this._set(+obj[0], +(obj.length > 1 ? obj[1] : obj[0]));\n else if (\"x\" in obj) this._set(obj.x || 0, obj.y || 0);\n else if (\"width\" in obj) this._set(obj.width || 0, obj.height || 0);\n else if (\"angle\" in obj) {\n this._set(obj.length || 0, 0);\n this.setAngle(obj.angle || 0);\n } else {\n this._set(0, 0);\n read = 0;\n }\n }\n if (reading) this.__read = read;\n return this;\n },\n set: \"#initialize\",\n _set: function(x, y) {\n this.x = x;\n this.y = y;\n return this;\n },\n equals: function(point) {\n return this === point || point && (this.x === point.x && this.y === point.y || Array.isArray(point) && this.x === point[0] && this.y === point[1]) || false;\n },\n clone: function() {\n return new Point(this.x, this.y);\n },\n toString: function() {\n var f = Formatter.instance;\n return \"{ x: \" + f.number(this.x) + \", y: \" + f.number(this.y) + \" }\";\n },\n _serialize: function(options) {\n var f = options.formatter;\n return [\n f.number(this.x),\n f.number(this.y)\n ];\n },\n getLength: function() {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n },\n setLength: function(length) {\n if (this.isZero()) {\n var angle = this._angle || 0;\n this._set(Math.cos(angle) * length, Math.sin(angle) * length);\n } else {\n var scale = length / this.getLength();\n if (Numerical.isZero(scale)) this.getAngle();\n this._set(this.x * scale, this.y * scale);\n }\n },\n getAngle: function() {\n return this.getAngleInRadians.apply(this, arguments) * 180 / Math.PI;\n },\n setAngle: function(angle) {\n this.setAngleInRadians.call(this, angle * Math.PI / 180);\n },\n getAngleInDegrees: \"#getAngle\",\n setAngleInDegrees: \"#setAngle\",\n getAngleInRadians: function() {\n if (!arguments.length) return this.isZero() ? this._angle || 0 : this._angle = Math.atan2(this.y, this.x);\n else {\n var point = Point.read(arguments), div = this.getLength() * point.getLength();\n if (Numerical.isZero(div)) return NaN;\n else {\n var a = this.dot(point) / div;\n return Math.acos(a < -1 ? -1 : a > 1 ? 1 : a);\n }\n }\n },\n setAngleInRadians: function(angle) {\n this._angle = angle;\n if (!this.isZero()) {\n var length = this.getLength();\n this._set(Math.cos(angle) * length, Math.sin(angle) * length);\n }\n },\n getQuadrant: function() {\n return this.x >= 0 ? this.y >= 0 ? 1 : 4 : this.y >= 0 ? 2 : 3;\n }\n }, {\n beans: false,\n getDirectedAngle: function() {\n var point = Point.read(arguments);\n return Math.atan2(this.cross(point), this.dot(point)) * 180 / Math.PI;\n },\n getDistance: function() {\n var args = arguments, point = Point.read(args), x = point.x - this.x, y = point.y - this.y, d = x * x + y * y, squared = Base.read(args);\n return squared ? d : Math.sqrt(d);\n },\n normalize: function(length) {\n if (length === undefined) length = 1;\n var current = this.getLength(), scale = current !== 0 ? length / current : 0, point = new Point(this.x * scale, this.y * scale);\n if (scale >= 0) point._angle = this._angle;\n return point;\n },\n rotate: function(angle, center) {\n if (angle === 0) return this.clone();\n angle = angle * Math.PI / 180;\n var point = center ? this.subtract(center) : this, sin = Math.sin(angle), cos = Math.cos(angle);\n point = new Point(point.x * cos - point.y * sin, point.x * sin + point.y * cos);\n return center ? point.add(center) : point;\n },\n transform: function(matrix) {\n return matrix ? matrix._transformPoint(this) : this;\n },\n add: function() {\n var point = Point.read(arguments);\n return new Point(this.x + point.x, this.y + point.y);\n },\n subtract: function() {\n var point = Point.read(arguments);\n return new Point(this.x - point.x, this.y - point.y);\n },\n multiply: function() {\n var point = Point.read(arguments);\n return new Point(this.x * point.x, this.y * point.y);\n },\n divide: function() {\n var point = Point.read(arguments);\n return new Point(this.x / point.x, this.y / point.y);\n },\n modulo: function() {\n var point = Point.read(arguments);\n return new Point(this.x % point.x, this.y % point.y);\n },\n negate: function() {\n return new Point(-this.x, -this.y);\n },\n isInside: function() {\n return Rectangle.read(arguments).contains(this);\n },\n isClose: function() {\n var args = arguments, point = Point.read(args), tolerance = Base.read(args);\n return this.getDistance(point) <= tolerance;\n },\n isCollinear: function() {\n var point = Point.read(arguments);\n return Point.isCollinear(this.x, this.y, point.x, point.y);\n },\n isColinear: \"#isCollinear\",\n isOrthogonal: function() {\n var point = Point.read(arguments);\n return Point.isOrthogonal(this.x, this.y, point.x, point.y);\n },\n isZero: function() {\n var isZero = Numerical.isZero;\n return isZero(this.x) && isZero(this.y);\n },\n isNaN: function() {\n return isNaN(this.x) || isNaN(this.y);\n },\n isInQuadrant: function(q) {\n return this.x * (q > 1 && q < 4 ? -1 : 1) >= 0 && this.y * (q > 2 ? -1 : 1) >= 0;\n },\n dot: function() {\n var point = Point.read(arguments);\n return this.x * point.x + this.y * point.y;\n },\n cross: function() {\n var point = Point.read(arguments);\n return this.x * point.y - this.y * point.x;\n },\n project: function() {\n var point = Point.read(arguments), scale = point.isZero() ? 0 : this.dot(point) / point.dot(point);\n return new Point(point.x * scale, point.y * scale);\n },\n statics: {\n min: function() {\n var args = arguments, point1 = Point.read(args), point2 = Point.read(args);\n return new Point(Math.min(point1.x, point2.x), Math.min(point1.y, point2.y));\n },\n max: function() {\n var args = arguments, point1 = Point.read(args), point2 = Point.read(args);\n return new Point(Math.max(point1.x, point2.x), Math.max(point1.y, point2.y));\n },\n random: function() {\n return new Point(Math.random(), Math.random());\n },\n isCollinear: function(x1, y1, x2, y2) {\n return Math.abs(x1 * y2 - y1 * x2) <= Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2)) * 1e-8;\n },\n isOrthogonal: function(x1, y1, x2, y2) {\n return Math.abs(x1 * x2 + y1 * y2) <= Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2)) * 1e-8;\n }\n }\n }, Base.each([\n \"round\",\n \"ceil\",\n \"floor\",\n \"abs\"\n ], function(key) {\n var op = Math[key];\n this[key] = function() {\n return new Point(op(this.x), op(this.y));\n };\n }, {}));\n var LinkedPoint = Point.extend({\n initialize: function Point(x, y, owner, setter) {\n this._x = x;\n this._y = y;\n this._owner = owner;\n this._setter = setter;\n },\n _set: function(x, y, _dontNotify) {\n this._x = x;\n this._y = y;\n if (!_dontNotify) this._owner[this._setter](this);\n return this;\n },\n getX: function() {\n return this._x;\n },\n setX: function(x) {\n this._x = x;\n this._owner[this._setter](this);\n },\n getY: function() {\n return this._y;\n },\n setY: function(y) {\n this._y = y;\n this._owner[this._setter](this);\n },\n isSelected: function() {\n return !!(this._owner._selection & this._getSelection());\n },\n setSelected: function(selected) {\n this._owner._changeSelection(this._getSelection(), selected);\n },\n _getSelection: function() {\n return this._setter === \"setPosition\" ? 4 : 0;\n }\n });\n var Size = Base.extend({\n _class: \"Size\",\n _readIndex: true,\n initialize: function Size(arg0, arg1) {\n var type = typeof arg0, reading = this.__read, read = 0;\n if (type === \"number\") {\n var hasHeight = typeof arg1 === \"number\";\n this._set(arg0, hasHeight ? arg1 : arg0);\n if (reading) read = hasHeight ? 2 : 1;\n } else if (type === \"undefined\" || arg0 === null) {\n this._set(0, 0);\n if (reading) read = arg0 === null ? 1 : 0;\n } else {\n var obj = type === \"string\" ? arg0.split(/[\\s,]+/) || [] : arg0;\n read = 1;\n if (Array.isArray(obj)) this._set(+obj[0], +(obj.length > 1 ? obj[1] : obj[0]));\n else if (\"width\" in obj) this._set(obj.width || 0, obj.height || 0);\n else if (\"x\" in obj) this._set(obj.x || 0, obj.y || 0);\n else {\n this._set(0, 0);\n read = 0;\n }\n }\n if (reading) this.__read = read;\n return this;\n },\n set: \"#initialize\",\n _set: function(width, height) {\n this.width = width;\n this.height = height;\n return this;\n },\n equals: function(size) {\n return size === this || size && (this.width === size.width && this.height === size.height || Array.isArray(size) && this.width === size[0] && this.height === size[1]) || false;\n },\n clone: function() {\n return new Size(this.width, this.height);\n },\n toString: function() {\n var f = Formatter.instance;\n return \"{ width: \" + f.number(this.width) + \", height: \" + f.number(this.height) + \" }\";\n },\n _serialize: function(options) {\n var f = options.formatter;\n return [\n f.number(this.width),\n f.number(this.height)\n ];\n },\n add: function() {\n var size = Size.read(arguments);\n return new Size(this.width + size.width, this.height + size.height);\n },\n subtract: function() {\n var size = Size.read(arguments);\n return new Size(this.width - size.width, this.height - size.height);\n },\n multiply: function() {\n var size = Size.read(arguments);\n return new Size(this.width * size.width, this.height * size.height);\n },\n divide: function() {\n var size = Size.read(arguments);\n return new Size(this.width / size.width, this.height / size.height);\n },\n modulo: function() {\n var size = Size.read(arguments);\n return new Size(this.width % size.width, this.height % size.height);\n },\n negate: function() {\n return new Size(-this.width, -this.height);\n },\n isZero: function() {\n var isZero = Numerical.isZero;\n return isZero(this.width) && isZero(this.height);\n },\n isNaN: function() {\n return isNaN(this.width) || isNaN(this.height);\n },\n statics: {\n min: function(size1, size2) {\n return new Size(Math.min(size1.width, size2.width), Math.min(size1.height, size2.height));\n },\n max: function(size1, size2) {\n return new Size(Math.max(size1.width, size2.width), Math.max(size1.height, size2.height));\n },\n random: function() {\n return new Size(Math.random(), Math.random());\n }\n }\n }, Base.each([\n \"round\",\n \"ceil\",\n \"floor\",\n \"abs\"\n ], function(key) {\n var op = Math[key];\n this[key] = function() {\n return new Size(op(this.width), op(this.height));\n };\n }, {}));\n var LinkedSize = Size.extend({\n initialize: function Size(width, height, owner, setter) {\n this._width = width;\n this._height = height;\n this._owner = owner;\n this._setter = setter;\n },\n _set: function(width, height, _dontNotify) {\n this._width = width;\n this._height = height;\n if (!_dontNotify) this._owner[this._setter](this);\n return this;\n },\n getWidth: function() {\n return this._width;\n },\n setWidth: function(width) {\n this._width = width;\n this._owner[this._setter](this);\n },\n getHeight: function() {\n return this._height;\n },\n setHeight: function(height) {\n this._height = height;\n this._owner[this._setter](this);\n }\n });\n var Rectangle = Base.extend({\n _class: \"Rectangle\",\n _readIndex: true,\n beans: true,\n initialize: function Rectangle(arg0, arg1, arg2, arg3) {\n var args = arguments, type = typeof arg0, read;\n if (type === \"number\") {\n this._set(arg0, arg1, arg2, arg3);\n read = 4;\n } else if (type === \"undefined\" || arg0 === null) {\n this._set(0, 0, 0, 0);\n read = arg0 === null ? 1 : 0;\n } else if (args.length === 1) {\n if (Array.isArray(arg0)) {\n this._set.apply(this, arg0);\n read = 1;\n } else if (arg0.x !== undefined || arg0.width !== undefined) {\n this._set(arg0.x || 0, arg0.y || 0, arg0.width || 0, arg0.height || 0);\n read = 1;\n } else if (arg0.from === undefined && arg0.to === undefined) {\n this._set(0, 0, 0, 0);\n if (Base.readSupported(args, this)) read = 1;\n }\n }\n if (read === undefined) {\n var frm = Point.readNamed(args, \"from\"), next = Base.peek(args), x = frm.x, y = frm.y, width, height;\n if (next && next.x !== undefined || Base.hasNamed(args, \"to\")) {\n var to = Point.readNamed(args, \"to\");\n width = to.x - x;\n height = to.y - y;\n if (width < 0) {\n x = to.x;\n width = -width;\n }\n if (height < 0) {\n y = to.y;\n height = -height;\n }\n } else {\n var size = Size.read(args);\n width = size.width;\n height = size.height;\n }\n this._set(x, y, width, height);\n read = args.__index;\n }\n var filtered = args.__filtered;\n if (filtered) this.__filtered = filtered;\n if (this.__read) this.__read = read;\n return this;\n },\n set: \"#initialize\",\n _set: function(x, y, width, height) {\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n return this;\n },\n clone: function() {\n return new Rectangle(this.x, this.y, this.width, this.height);\n },\n equals: function(rect) {\n var rt = Base.isPlainValue(rect) ? Rectangle.read(arguments) : rect;\n return rt === this || rt && this.x === rt.x && this.y === rt.y && this.width === rt.width && this.height === rt.height || false;\n },\n toString: function() {\n var f = Formatter.instance;\n return \"{ x: \" + f.number(this.x) + \", y: \" + f.number(this.y) + \", width: \" + f.number(this.width) + \", height: \" + f.number(this.height) + \" }\";\n },\n _serialize: function(options) {\n var f = options.formatter;\n return [\n f.number(this.x),\n f.number(this.y),\n f.number(this.width),\n f.number(this.height)\n ];\n },\n getPoint: function(_dontLink) {\n var ctor = _dontLink ? Point : LinkedPoint;\n return new ctor(this.x, this.y, this, \"setPoint\");\n },\n setPoint: function() {\n var point = Point.read(arguments);\n this.x = point.x;\n this.y = point.y;\n },\n getSize: function(_dontLink) {\n var ctor = _dontLink ? Size : LinkedSize;\n return new ctor(this.width, this.height, this, \"setSize\");\n },\n _fw: 1,\n _fh: 1,\n setSize: function() {\n var size = Size.read(arguments), sx = this._sx, sy = this._sy, w = size.width, h = size.height;\n if (sx) this.x += (this.width - w) * sx;\n if (sy) this.y += (this.height - h) * sy;\n this.width = w;\n this.height = h;\n this._fw = this._fh = 1;\n },\n getLeft: function() {\n return this.x;\n },\n setLeft: function(left) {\n if (!this._fw) {\n var amount = left - this.x;\n this.width -= this._sx === 0.5 ? amount * 2 : amount;\n }\n this.x = left;\n this._sx = this._fw = 0;\n },\n getTop: function() {\n return this.y;\n },\n setTop: function(top) {\n if (!this._fh) {\n var amount = top - this.y;\n this.height -= this._sy === 0.5 ? amount * 2 : amount;\n }\n this.y = top;\n this._sy = this._fh = 0;\n },\n getRight: function() {\n return this.x + this.width;\n },\n setRight: function(right) {\n if (!this._fw) {\n var amount = right - this.x;\n this.width = this._sx === 0.5 ? amount * 2 : amount;\n }\n this.x = right - this.width;\n this._sx = 1;\n this._fw = 0;\n },\n getBottom: function() {\n return this.y + this.height;\n },\n setBottom: function(bottom) {\n if (!this._fh) {\n var amount = bottom - this.y;\n this.height = this._sy === 0.5 ? amount * 2 : amount;\n }\n this.y = bottom - this.height;\n this._sy = 1;\n this._fh = 0;\n },\n getCenterX: function() {\n return this.x + this.width / 2;\n },\n setCenterX: function(x) {\n if (this._fw || this._sx === 0.5) this.x = x - this.width / 2;\n else {\n if (this._sx) this.x += (x - this.x) * 2 * this._sx;\n this.width = (x - this.x) * 2;\n }\n this._sx = 0.5;\n this._fw = 0;\n },\n getCenterY: function() {\n return this.y + this.height / 2;\n },\n setCenterY: function(y) {\n if (this._fh || this._sy === 0.5) this.y = y - this.height / 2;\n else {\n if (this._sy) this.y += (y - this.y) * 2 * this._sy;\n this.height = (y - this.y) * 2;\n }\n this._sy = 0.5;\n this._fh = 0;\n },\n getCenter: function(_dontLink) {\n var ctor = _dontLink ? Point : LinkedPoint;\n return new ctor(this.getCenterX(), this.getCenterY(), this, \"setCenter\");\n },\n setCenter: function() {\n var point = Point.read(arguments);\n this.setCenterX(point.x);\n this.setCenterY(point.y);\n return this;\n },\n getArea: function() {\n return this.width * this.height;\n },\n isEmpty: function() {\n return this.width === 0 || this.height === 0;\n },\n contains: function(arg) {\n return arg && arg.width !== undefined || (Array.isArray(arg) ? arg : arguments).length === 4 ? this._containsRectangle(Rectangle.read(arguments)) : this._containsPoint(Point.read(arguments));\n },\n _containsPoint: function(point) {\n var x = point.x, y = point.y;\n return x >= this.x && y >= this.y && x <= this.x + this.width && y <= this.y + this.height;\n },\n _containsRectangle: function(rect) {\n var x = rect.x, y = rect.y;\n return x >= this.x && y >= this.y && x + rect.width <= this.x + this.width && y + rect.height <= this.y + this.height;\n },\n intersects: function() {\n var rect = Rectangle.read(arguments), epsilon = Base.read(arguments) || 0;\n return rect.x + rect.width > this.x - epsilon && rect.y + rect.height > this.y - epsilon && rect.x < this.x + this.width + epsilon && rect.y < this.y + this.height + epsilon;\n },\n intersect: function() {\n var rect = Rectangle.read(arguments), x1 = Math.max(this.x, rect.x), y1 = Math.max(this.y, rect.y), x2 = Math.min(this.x + this.width, rect.x + rect.width), y2 = Math.min(this.y + this.height, rect.y + rect.height);\n return new Rectangle(x1, y1, x2 - x1, y2 - y1);\n },\n unite: function() {\n var rect = Rectangle.read(arguments), x1 = Math.min(this.x, rect.x), y1 = Math.min(this.y, rect.y), x2 = Math.max(this.x + this.width, rect.x + rect.width), y2 = Math.max(this.y + this.height, rect.y + rect.height);\n return new Rectangle(x1, y1, x2 - x1, y2 - y1);\n },\n include: function() {\n var point = Point.read(arguments);\n var x1 = Math.min(this.x, point.x), y1 = Math.min(this.y, point.y), x2 = Math.max(this.x + this.width, point.x), y2 = Math.max(this.y + this.height, point.y);\n return new Rectangle(x1, y1, x2 - x1, y2 - y1);\n },\n expand: function() {\n var amount = Size.read(arguments), hor = amount.width, ver = amount.height;\n return new Rectangle(this.x - hor / 2, this.y - ver / 2, this.width + hor, this.height + ver);\n },\n scale: function(hor, ver) {\n return this.expand(this.width * hor - this.width, this.height * (ver === undefined ? hor : ver) - this.height);\n }\n }, Base.each([\n [\n \"Top\",\n \"Left\"\n ],\n [\n \"Top\",\n \"Right\"\n ],\n [\n \"Bottom\",\n \"Left\"\n ],\n [\n \"Bottom\",\n \"Right\"\n ],\n [\n \"Left\",\n \"Center\"\n ],\n [\n \"Top\",\n \"Center\"\n ],\n [\n \"Right\",\n \"Center\"\n ],\n [\n \"Bottom\",\n \"Center\"\n ]\n ], function(parts, index) {\n var part = parts.join(\"\"), xFirst = /^[RL]/.test(part);\n if (index >= 4) parts[1] += xFirst ? \"Y\" : \"X\";\n var x = parts[xFirst ? 0 : 1], y = parts[xFirst ? 1 : 0], getX = \"get\" + x, getY = \"get\" + y, setX = \"set\" + x, setY = \"set\" + y, get = \"get\" + part, set = \"set\" + part;\n this[get] = function(_dontLink) {\n var ctor = _dontLink ? Point : LinkedPoint;\n return new ctor(this[getX](), this[getY](), this, set);\n };\n this[set] = function() {\n var point = Point.read(arguments);\n this[setX](point.x);\n this[setY](point.y);\n };\n }, {\n beans: true\n }));\n var LinkedRectangle = Rectangle.extend({\n initialize: function Rectangle(x, y, width, height, owner, setter) {\n this._set(x, y, width, height, true);\n this._owner = owner;\n this._setter = setter;\n },\n _set: function(x, y, width, height, _dontNotify) {\n this._x = x;\n this._y = y;\n this._width = width;\n this._height = height;\n if (!_dontNotify) this._owner[this._setter](this);\n return this;\n }\n }, new function() {\n var proto = Rectangle.prototype;\n return Base.each([\n \"x\",\n \"y\",\n \"width\",\n \"height\"\n ], function(key) {\n var part = Base.capitalize(key), internal = \"_\" + key;\n this[\"get\" + part] = function() {\n return this[internal];\n };\n this[\"set\" + part] = function(value) {\n this[internal] = value;\n if (!this._dontNotify) this._owner[this._setter](this);\n };\n }, Base.each([\n \"Point\",\n \"Size\",\n \"Center\",\n \"Left\",\n \"Top\",\n \"Right\",\n \"Bottom\",\n \"CenterX\",\n \"CenterY\",\n \"TopLeft\",\n \"TopRight\",\n \"BottomLeft\",\n \"BottomRight\",\n \"LeftCenter\",\n \"TopCenter\",\n \"RightCenter\",\n \"BottomCenter\"\n ], function(key) {\n var name = \"set\" + key;\n this[name] = function() {\n this._dontNotify = true;\n proto[name].apply(this, arguments);\n this._dontNotify = false;\n this._owner[this._setter](this);\n };\n }, {\n isSelected: function() {\n return !!(this._owner._selection & 2);\n },\n setSelected: function(selected) {\n var owner = this._owner;\n if (owner._changeSelection) owner._changeSelection(2, selected);\n }\n }));\n });\n var Matrix = Base.extend({\n _class: \"Matrix\",\n initialize: function Matrix(arg, _dontNotify) {\n var args = arguments, count = args.length, ok = true;\n if (count >= 6) this._set.apply(this, args);\n else if (count === 1 || count === 2) {\n if (arg instanceof Matrix) this._set(arg._a, arg._b, arg._c, arg._d, arg._tx, arg._ty, _dontNotify);\n else if (Array.isArray(arg)) this._set.apply(this, _dontNotify ? arg.concat([\n _dontNotify\n ]) : arg);\n else ok = false;\n } else if (!count) this.reset();\n else ok = false;\n if (!ok) throw new Error(\"Unsupported matrix parameters\");\n return this;\n },\n set: \"#initialize\",\n _set: function(a, b, c, d, tx, ty, _dontNotify) {\n this._a = a;\n this._b = b;\n this._c = c;\n this._d = d;\n this._tx = tx;\n this._ty = ty;\n if (!_dontNotify) this._changed();\n return this;\n },\n _serialize: function(options, dictionary) {\n return Base.serialize(this.getValues(), options, true, dictionary);\n },\n _changed: function() {\n var owner = this._owner;\n if (owner) {\n if (owner._applyMatrix) owner.transform(null, true);\n else owner._changed(25);\n }\n },\n clone: function() {\n return new Matrix(this._a, this._b, this._c, this._d, this._tx, this._ty);\n },\n equals: function(mx) {\n return mx === this || mx && this._a === mx._a && this._b === mx._b && this._c === mx._c && this._d === mx._d && this._tx === mx._tx && this._ty === mx._ty;\n },\n toString: function() {\n var f = Formatter.instance;\n return \"[[\" + [\n f.number(this._a),\n f.number(this._c),\n f.number(this._tx)\n ].join(\", \") + \"], [\" + [\n f.number(this._b),\n f.number(this._d),\n f.number(this._ty)\n ].join(\", \") + \"]]\";\n },\n reset: function(_dontNotify) {\n this._a = this._d = 1;\n this._b = this._c = this._tx = this._ty = 0;\n if (!_dontNotify) this._changed();\n return this;\n },\n apply: function(recursively, _setApplyMatrix) {\n var owner = this._owner;\n if (owner) {\n owner.transform(null, Base.pick(recursively, true), _setApplyMatrix);\n return this.isIdentity();\n }\n return false;\n },\n translate: function() {\n var point = Point.read(arguments), x = point.x, y = point.y;\n this._tx += x * this._a + y * this._c;\n this._ty += x * this._b + y * this._d;\n this._changed();\n return this;\n },\n scale: function() {\n var args = arguments, scale = Point.read(args), center = Point.read(args, 0, {\n readNull: true\n });\n if (center) this.translate(center);\n this._a *= scale.x;\n this._b *= scale.x;\n this._c *= scale.y;\n this._d *= scale.y;\n if (center) this.translate(center.negate());\n this._changed();\n return this;\n },\n rotate: function(angle) {\n angle *= Math.PI / 180;\n var center = Point.read(arguments, 1), x = center.x, y = center.y, cos = Math.cos(angle), sin = Math.sin(angle), tx = x - x * cos + y * sin, ty = y - x * sin - y * cos, a = this._a, b = this._b, c = this._c, d = this._d;\n this._a = cos * a + sin * c;\n this._b = cos * b + sin * d;\n this._c = -sin * a + cos * c;\n this._d = -sin * b + cos * d;\n this._tx += tx * a + ty * c;\n this._ty += tx * b + ty * d;\n this._changed();\n return this;\n },\n shear: function() {\n var args = arguments, shear = Point.read(args), center = Point.read(args, 0, {\n readNull: true\n });\n if (center) this.translate(center);\n var a = this._a, b = this._b;\n this._a += shear.y * this._c;\n this._b += shear.y * this._d;\n this._c += shear.x * a;\n this._d += shear.x * b;\n if (center) this.translate(center.negate());\n this._changed();\n return this;\n },\n skew: function() {\n var args = arguments, skew = Point.read(args), center = Point.read(args, 0, {\n readNull: true\n }), toRadians = Math.PI / 180, shear = new Point(Math.tan(skew.x * toRadians), Math.tan(skew.y * toRadians));\n return this.shear(shear, center);\n },\n append: function(mx, _dontNotify) {\n if (mx) {\n var a1 = this._a, b1 = this._b, c1 = this._c, d1 = this._d, a2 = mx._a, b2 = mx._c, c2 = mx._b, d2 = mx._d, tx2 = mx._tx, ty2 = mx._ty;\n this._a = a2 * a1 + c2 * c1;\n this._c = b2 * a1 + d2 * c1;\n this._b = a2 * b1 + c2 * d1;\n this._d = b2 * b1 + d2 * d1;\n this._tx += tx2 * a1 + ty2 * c1;\n this._ty += tx2 * b1 + ty2 * d1;\n if (!_dontNotify) this._changed();\n }\n return this;\n },\n prepend: function(mx, _dontNotify) {\n if (mx) {\n var a1 = this._a, b1 = this._b, c1 = this._c, d1 = this._d, tx1 = this._tx, ty1 = this._ty, a2 = mx._a, b2 = mx._c, c2 = mx._b, d2 = mx._d, tx2 = mx._tx, ty2 = mx._ty;\n this._a = a2 * a1 + b2 * b1;\n this._c = a2 * c1 + b2 * d1;\n this._b = c2 * a1 + d2 * b1;\n this._d = c2 * c1 + d2 * d1;\n this._tx = a2 * tx1 + b2 * ty1 + tx2;\n this._ty = c2 * tx1 + d2 * ty1 + ty2;\n if (!_dontNotify) this._changed();\n }\n return this;\n },\n appended: function(mx) {\n return this.clone().append(mx);\n },\n prepended: function(mx) {\n return this.clone().prepend(mx);\n },\n invert: function() {\n var a = this._a, b = this._b, c = this._c, d = this._d, tx = this._tx, ty = this._ty, det = a * d - b * c, res = null;\n if (det && !isNaN(det) && isFinite(tx) && isFinite(ty)) {\n this._a = d / det;\n this._b = -b / det;\n this._c = -c / det;\n this._d = a / det;\n this._tx = (c * ty - d * tx) / det;\n this._ty = (b * tx - a * ty) / det;\n res = this;\n }\n return res;\n },\n inverted: function() {\n return this.clone().invert();\n },\n concatenate: \"#append\",\n preConcatenate: \"#prepend\",\n chain: \"#appended\",\n _shiftless: function() {\n return new Matrix(this._a, this._b, this._c, this._d, 0, 0);\n },\n _orNullIfIdentity: function() {\n return this.isIdentity() ? null : this;\n },\n isIdentity: function() {\n return this._a === 1 && this._b === 0 && this._c === 0 && this._d === 1 && this._tx === 0 && this._ty === 0;\n },\n isInvertible: function() {\n var det = this._a * this._d - this._c * this._b;\n return det && !isNaN(det) && isFinite(this._tx) && isFinite(this._ty);\n },\n isSingular: function() {\n return !this.isInvertible();\n },\n transform: function(src, dst, count) {\n return arguments.length < 3 ? this._transformPoint(Point.read(arguments)) : this._transformCoordinates(src, dst, count);\n },\n _transformPoint: function(point, dest, _dontNotify) {\n var x = point.x, y = point.y;\n if (!dest) dest = new Point();\n return dest._set(x * this._a + y * this._c + this._tx, x * this._b + y * this._d + this._ty, _dontNotify);\n },\n _transformCoordinates: function(src, dst, count) {\n for(var i = 0, max = 2 * count; i < max; i += 2){\n var x = src[i], y = src[i + 1];\n dst[i] = x * this._a + y * this._c + this._tx;\n dst[i + 1] = x * this._b + y * this._d + this._ty;\n }\n return dst;\n },\n _transformCorners: function(rect) {\n var x1 = rect.x, y1 = rect.y, x2 = x1 + rect.width, y2 = y1 + rect.height, coords = [\n x1,\n y1,\n x2,\n y1,\n x2,\n y2,\n x1,\n y2\n ];\n return this._transformCoordinates(coords, coords, 4);\n },\n _transformBounds: function(bounds, dest, _dontNotify) {\n var coords = this._transformCorners(bounds), min = coords.slice(0, 2), max = min.slice();\n for(var i = 2; i < 8; i++){\n var val = coords[i], j = i & 1;\n if (val < min[j]) min[j] = val;\n else if (val > max[j]) max[j] = val;\n }\n if (!dest) dest = new Rectangle();\n return dest._set(min[0], min[1], max[0] - min[0], max[1] - min[1], _dontNotify);\n },\n inverseTransform: function() {\n return this._inverseTransform(Point.read(arguments));\n },\n _inverseTransform: function(point, dest, _dontNotify) {\n var a = this._a, b = this._b, c = this._c, d = this._d, tx = this._tx, ty = this._ty, det = a * d - b * c, res = null;\n if (det && !isNaN(det) && isFinite(tx) && isFinite(ty)) {\n var x = point.x - this._tx, y = point.y - this._ty;\n if (!dest) dest = new Point();\n res = dest._set((x * d - y * c) / det, (y * a - x * b) / det, _dontNotify);\n }\n return res;\n },\n decompose: function() {\n var a = this._a, b = this._b, c = this._c, d = this._d, det = a * d - b * c, sqrt = Math.sqrt, atan2 = Math.atan2, degrees = 180 / Math.PI, rotate, scale, skew;\n if (a !== 0 || b !== 0) {\n var r = sqrt(a * a + b * b);\n rotate = Math.acos(a / r) * (b > 0 ? 1 : -1);\n scale = [\n r,\n det / r\n ];\n skew = [\n atan2(a * c + b * d, r * r),\n 0\n ];\n } else if (c !== 0 || d !== 0) {\n var s = sqrt(c * c + d * d);\n rotate = Math.asin(c / s) * (d > 0 ? 1 : -1);\n scale = [\n det / s,\n s\n ];\n skew = [\n 0,\n atan2(a * c + b * d, s * s)\n ];\n } else {\n rotate = 0;\n skew = scale = [\n 0,\n 0\n ];\n }\n return {\n translation: this.getTranslation(),\n rotation: rotate * degrees,\n scaling: new Point(scale),\n skewing: new Point(skew[0] * degrees, skew[1] * degrees)\n };\n },\n getValues: function() {\n return [\n this._a,\n this._b,\n this._c,\n this._d,\n this._tx,\n this._ty\n ];\n },\n getTranslation: function() {\n return new Point(this._tx, this._ty);\n },\n getScaling: function() {\n return this.decompose().scaling;\n },\n getRotation: function() {\n return this.decompose().rotation;\n },\n applyToContext: function(ctx) {\n if (!this.isIdentity()) ctx.transform(this._a, this._b, this._c, this._d, this._tx, this._ty);\n }\n }, Base.each([\n \"a\",\n \"b\",\n \"c\",\n \"d\",\n \"tx\",\n \"ty\"\n ], function(key) {\n var part = Base.capitalize(key), prop = \"_\" + key;\n this[\"get\" + part] = function() {\n return this[prop];\n };\n this[\"set\" + part] = function(value) {\n this[prop] = value;\n this._changed();\n };\n }, {}));\n var Line = Base.extend({\n _class: \"Line\",\n initialize: function Line(arg0, arg1, arg2, arg3, arg4) {\n var asVector = false;\n if (arguments.length >= 4) {\n this._px = arg0;\n this._py = arg1;\n this._vx = arg2;\n this._vy = arg3;\n asVector = arg4;\n } else {\n this._px = arg0.x;\n this._py = arg0.y;\n this._vx = arg1.x;\n this._vy = arg1.y;\n asVector = arg2;\n }\n if (!asVector) {\n this._vx -= this._px;\n this._vy -= this._py;\n }\n },\n getPoint: function() {\n return new Point(this._px, this._py);\n },\n getVector: function() {\n return new Point(this._vx, this._vy);\n },\n getLength: function() {\n return this.getVector().getLength();\n },\n intersect: function(line, isInfinite) {\n return Line.intersect(this._px, this._py, this._vx, this._vy, line._px, line._py, line._vx, line._vy, true, isInfinite);\n },\n getSide: function(point, isInfinite) {\n return Line.getSide(this._px, this._py, this._vx, this._vy, point.x, point.y, true, isInfinite);\n },\n getDistance: function(point) {\n return Math.abs(this.getSignedDistance(point));\n },\n getSignedDistance: function(point) {\n return Line.getSignedDistance(this._px, this._py, this._vx, this._vy, point.x, point.y, true);\n },\n isCollinear: function(line) {\n return Point.isCollinear(this._vx, this._vy, line._vx, line._vy);\n },\n isOrthogonal: function(line) {\n return Point.isOrthogonal(this._vx, this._vy, line._vx, line._vy);\n },\n statics: {\n intersect: function(p1x, p1y, v1x, v1y, p2x, p2y, v2x, v2y, asVector, isInfinite) {\n if (!asVector) {\n v1x -= p1x;\n v1y -= p1y;\n v2x -= p2x;\n v2y -= p2y;\n }\n var cross = v1x * v2y - v1y * v2x;\n if (!Numerical.isMachineZero(cross)) {\n var dx = p1x - p2x, dy = p1y - p2y, u1 = (v2x * dy - v2y * dx) / cross, u2 = (v1x * dy - v1y * dx) / cross, epsilon = 1e-12, uMin = -epsilon, uMax = 1 + epsilon;\n if (isInfinite || uMin < u1 && u1 < uMax && uMin < u2 && u2 < uMax) {\n if (!isInfinite) u1 = u1 <= 0 ? 0 : u1 >= 1 ? 1 : u1;\n return new Point(p1x + u1 * v1x, p1y + u1 * v1y);\n }\n }\n },\n getSide: function(px, py, vx, vy, x, y, asVector, isInfinite) {\n if (!asVector) {\n vx -= px;\n vy -= py;\n }\n var v2x = x - px, v2y = y - py, ccw = v2x * vy - v2y * vx;\n if (!isInfinite && Numerical.isMachineZero(ccw)) {\n ccw = (v2x * vx + v2x * vx) / (vx * vx + vy * vy);\n if (ccw >= 0 && ccw <= 1) ccw = 0;\n }\n return ccw < 0 ? -1 : ccw > 0 ? 1 : 0;\n },\n getSignedDistance: function(px, py, vx, vy, x, y, asVector) {\n if (!asVector) {\n vx -= px;\n vy -= py;\n }\n return vx === 0 ? vy > 0 ? x - px : px - x : vy === 0 ? vx < 0 ? y - py : py - y : ((x - px) * vy - (y - py) * vx) / (vy > vx ? vy * Math.sqrt(1 + vx * vx / (vy * vy)) : vx * Math.sqrt(1 + vy * vy / (vx * vx)));\n },\n getDistance: function(px, py, vx, vy, x, y, asVector) {\n return Math.abs(Line.getSignedDistance(px, py, vx, vy, x, y, asVector));\n }\n }\n });\n var Project = PaperScopeItem.extend({\n _class: \"Project\",\n _list: \"projects\",\n _reference: \"project\",\n _compactSerialize: true,\n initialize: function Project(element) {\n PaperScopeItem.call(this, true);\n this._children = [];\n this._namedChildren = {};\n this._activeLayer = null;\n this._currentStyle = new Style(null, null, this);\n this._view = View.create(this, element || CanvasProvider.getCanvas(1, 1));\n this._selectionItems = {};\n this._selectionCount = 0;\n this._updateVersion = 0;\n },\n _serialize: function(options, dictionary) {\n return Base.serialize(this._children, options, true, dictionary);\n },\n _changed: function(flags, item) {\n if (flags & 1) {\n var view = this._view;\n if (view) {\n view._needsUpdate = true;\n if (!view._requested && view._autoUpdate) view.requestUpdate();\n }\n }\n var changes = this._changes;\n if (changes && item) {\n var changesById = this._changesById, id = item._id, entry = changesById[id];\n if (entry) entry.flags |= flags;\n else changes.push(changesById[id] = {\n item: item,\n flags: flags\n });\n }\n },\n clear: function() {\n var children = this._children;\n for(var i = children.length - 1; i >= 0; i--)children[i].remove();\n },\n isEmpty: function() {\n return !this._children.length;\n },\n remove: function remove() {\n if (!remove.base.call(this)) return false;\n if (this._view) this._view.remove();\n return true;\n },\n getView: function() {\n return this._view;\n },\n getCurrentStyle: function() {\n return this._currentStyle;\n },\n setCurrentStyle: function(style) {\n this._currentStyle.set(style);\n },\n getIndex: function() {\n return this._index;\n },\n getOptions: function() {\n return this._scope.settings;\n },\n getLayers: function() {\n return this._children;\n },\n getActiveLayer: function() {\n return this._activeLayer || new Layer({\n project: this,\n insert: true\n });\n },\n getSymbolDefinitions: function() {\n var definitions = [], ids = {};\n this.getItems({\n class: SymbolItem,\n match: function(item) {\n var definition = item._definition, id = definition._id;\n if (!ids[id]) {\n ids[id] = true;\n definitions.push(definition);\n }\n return false;\n }\n });\n return definitions;\n },\n getSymbols: \"getSymbolDefinitions\",\n getSelectedItems: function() {\n var selectionItems = this._selectionItems, items = [];\n for(var id in selectionItems){\n var item = selectionItems[id], selection = item._selection;\n if (selection & 1 && item.isInserted()) items.push(item);\n else if (!selection) this._updateSelection(item);\n }\n return items;\n },\n _updateSelection: function(item) {\n var id = item._id, selectionItems = this._selectionItems;\n if (item._selection) {\n if (selectionItems[id] !== item) {\n this._selectionCount++;\n selectionItems[id] = item;\n }\n } else if (selectionItems[id] === item) {\n this._selectionCount--;\n delete selectionItems[id];\n }\n },\n selectAll: function() {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)children[i].setFullySelected(true);\n },\n deselectAll: function() {\n var selectionItems = this._selectionItems;\n for(var i in selectionItems)selectionItems[i].setFullySelected(false);\n },\n addLayer: function(layer) {\n return this.insertLayer(undefined, layer);\n },\n insertLayer: function(index, layer) {\n if (layer instanceof Layer) {\n layer._remove(false, true);\n Base.splice(this._children, [\n layer\n ], index, 0);\n layer._setProject(this, true);\n var name = layer._name;\n if (name) layer.setName(name);\n if (this._changes) layer._changed(5);\n if (!this._activeLayer) this._activeLayer = layer;\n } else layer = null;\n return layer;\n },\n _insertItem: function(index, item, _created) {\n item = this.insertLayer(index, item) || (this._activeLayer || this._insertItem(undefined, new Layer(Item.NO_INSERT), true)).insertChild(index, item);\n if (_created && item.activate) item.activate();\n return item;\n },\n getItems: function(options) {\n return Item._getItems(this, options);\n },\n getItem: function(options) {\n return Item._getItems(this, options, null, null, true)[0] || null;\n },\n importJSON: function(json) {\n this.activate();\n var layer = this._activeLayer;\n return Base.importJSON(json, layer && layer.isEmpty() && layer);\n },\n removeOn: function(type) {\n var sets = this._removeSets;\n if (sets) {\n if (type === \"mouseup\") sets.mousedrag = null;\n var set = sets[type];\n if (set) {\n for(var id in set){\n var item = set[id];\n for(var key in sets){\n var other = sets[key];\n if (other && other != set) delete other[item._id];\n }\n item.remove();\n }\n sets[type] = null;\n }\n }\n },\n draw: function(ctx, matrix, pixelRatio) {\n this._updateVersion++;\n ctx.save();\n matrix.applyToContext(ctx);\n var children = this._children, param = new Base({\n offset: new Point(0, 0),\n pixelRatio: pixelRatio,\n viewMatrix: matrix.isIdentity() ? null : matrix,\n matrices: [\n new Matrix()\n ],\n updateMatrix: true\n });\n for(var i = 0, l = children.length; i < l; i++)children[i].draw(ctx, param);\n ctx.restore();\n if (this._selectionCount > 0) {\n ctx.save();\n ctx.strokeWidth = 1;\n var items = this._selectionItems, size = this._scope.settings.handleSize, version = this._updateVersion;\n for(var id in items)items[id]._drawSelection(ctx, matrix, size, items, version);\n ctx.restore();\n }\n }\n });\n var Item = Base.extend(Emitter, {\n statics: {\n extend: function extend(src) {\n if (src._serializeFields) src._serializeFields = Base.set({}, this.prototype._serializeFields, src._serializeFields);\n return extend.base.apply(this, arguments);\n },\n INSERT: {\n insert: true\n },\n NO_INSERT: {\n insert: false\n }\n },\n _class: \"Item\",\n _name: null,\n _applyMatrix: true,\n _canApplyMatrix: true,\n _canScaleStroke: false,\n _pivot: null,\n _visible: true,\n _blendMode: \"normal\",\n _opacity: 1,\n _locked: false,\n _guide: false,\n _clipMask: false,\n _selection: 0,\n _selectBounds: true,\n _selectChildren: false,\n _serializeFields: {\n name: null,\n applyMatrix: null,\n matrix: new Matrix(),\n pivot: null,\n visible: true,\n blendMode: \"normal\",\n opacity: 1,\n locked: false,\n guide: false,\n clipMask: false,\n selected: false,\n data: {}\n },\n _prioritize: [\n \"applyMatrix\"\n ]\n }, new function() {\n var handlers = [\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseDrag\",\n \"onClick\",\n \"onDoubleClick\",\n \"onMouseMove\",\n \"onMouseEnter\",\n \"onMouseLeave\"\n ];\n return Base.each(handlers, function(name) {\n this._events[name] = {\n install: function(type) {\n this.getView()._countItemEvent(type, 1);\n },\n uninstall: function(type) {\n this.getView()._countItemEvent(type, -1);\n }\n };\n }, {\n _events: {\n onFrame: {\n install: function() {\n this.getView()._animateItem(this, true);\n },\n uninstall: function() {\n this.getView()._animateItem(this, false);\n }\n },\n onLoad: {},\n onError: {}\n },\n statics: {\n _itemHandlers: handlers\n }\n });\n }, {\n initialize: function Item() {},\n _initialize: function(props, point) {\n var hasProps = props && Base.isPlainObject(props), internal = hasProps && props.internal === true, matrix = this._matrix = new Matrix(), project = hasProps && props.project || paper.project, settings = paper.settings;\n this._id = internal ? null : UID.get();\n this._parent = this._index = null;\n this._applyMatrix = this._canApplyMatrix && settings.applyMatrix;\n if (point) matrix.translate(point);\n matrix._owner = this;\n this._style = new Style(project._currentStyle, this, project);\n if (internal || hasProps && props.insert == false || !settings.insertItems && !(hasProps && props.insert == true)) this._setProject(project);\n else (hasProps && props.parent || project)._insertItem(undefined, this, true);\n if (hasProps && props !== Item.NO_INSERT && props !== Item.INSERT) this.set(props, {\n internal: true,\n insert: true,\n project: true,\n parent: true\n });\n return hasProps;\n },\n _serialize: function(options, dictionary) {\n var props = {}, that = this;\n function serialize(fields) {\n for(var key in fields){\n var value = that[key];\n if (!Base.equals(value, key === \"leading\" ? fields.fontSize * 1.2 : fields[key])) props[key] = Base.serialize(value, options, key !== \"data\", dictionary);\n }\n }\n serialize(this._serializeFields);\n if (!(this instanceof Group)) serialize(this._style._defaults);\n return [\n this._class,\n props\n ];\n },\n _changed: function(flags) {\n var symbol = this._symbol, cacheParent = this._parent || symbol, project = this._project;\n if (flags & 8) this._bounds = this._position = this._decomposed = undefined;\n if (flags & 16) this._globalMatrix = undefined;\n if (cacheParent && flags & 72) Item._clearBoundsCache(cacheParent);\n if (flags & 2) Item._clearBoundsCache(this);\n if (project) project._changed(flags, this);\n if (symbol) symbol._changed(flags);\n },\n getId: function() {\n return this._id;\n },\n getName: function() {\n return this._name;\n },\n setName: function(name) {\n if (this._name) this._removeNamed();\n if (name === +name + \"\") throw new Error(\"Names consisting only of numbers are not supported.\");\n var owner = this._getOwner();\n if (name && owner) {\n var children = owner._children, namedChildren = owner._namedChildren;\n (namedChildren[name] = namedChildren[name] || []).push(this);\n if (!(name in children)) children[name] = this;\n }\n this._name = name || undefined;\n this._changed(256);\n },\n getStyle: function() {\n return this._style;\n },\n setStyle: function(style) {\n this.getStyle().set(style);\n }\n }, Base.each([\n \"locked\",\n \"visible\",\n \"blendMode\",\n \"opacity\",\n \"guide\"\n ], function(name) {\n var part = Base.capitalize(name), key = \"_\" + name, flags = {\n locked: 256,\n visible: 265\n };\n this[\"get\" + part] = function() {\n return this[key];\n };\n this[\"set\" + part] = function(value) {\n if (value != this[key]) {\n this[key] = value;\n this._changed(flags[name] || 257);\n }\n };\n }, {}), {\n beans: true,\n getSelection: function() {\n return this._selection;\n },\n setSelection: function(selection) {\n if (selection !== this._selection) {\n this._selection = selection;\n var project = this._project;\n if (project) {\n project._updateSelection(this);\n this._changed(257);\n }\n }\n },\n _changeSelection: function(flag, selected) {\n var selection = this._selection;\n this.setSelection(selected ? selection | flag : selection & ~flag);\n },\n isSelected: function() {\n if (this._selectChildren) {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)if (children[i].isSelected()) return true;\n }\n return !!(this._selection & 1);\n },\n setSelected: function(selected) {\n if (this._selectChildren) {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)children[i].setSelected(selected);\n }\n this._changeSelection(1, selected);\n },\n isFullySelected: function() {\n var children = this._children, selected = !!(this._selection & 1);\n if (children && selected) {\n for(var i = 0, l = children.length; i < l; i++)if (!children[i].isFullySelected()) return false;\n return true;\n }\n return selected;\n },\n setFullySelected: function(selected) {\n var children = this._children;\n if (children) for(var i = 0, l = children.length; i < l; i++)children[i].setFullySelected(selected);\n this._changeSelection(1, selected);\n },\n isClipMask: function() {\n return this._clipMask;\n },\n setClipMask: function(clipMask) {\n if (this._clipMask != (clipMask = !!clipMask)) {\n this._clipMask = clipMask;\n if (clipMask) {\n this.setFillColor(null);\n this.setStrokeColor(null);\n }\n this._changed(257);\n if (this._parent) this._parent._changed(2048);\n }\n },\n getData: function() {\n if (!this._data) this._data = {};\n return this._data;\n },\n setData: function(data) {\n this._data = data;\n },\n getPosition: function(_dontLink) {\n var ctor = _dontLink ? Point : LinkedPoint;\n var position = this._position || (this._position = this._getPositionFromBounds());\n return new ctor(position.x, position.y, this, \"setPosition\");\n },\n setPosition: function() {\n this.translate(Point.read(arguments).subtract(this.getPosition(true)));\n },\n _getPositionFromBounds: function(bounds) {\n return this._pivot ? this._matrix._transformPoint(this._pivot) : (bounds || this.getBounds()).getCenter(true);\n },\n getPivot: function() {\n var pivot = this._pivot;\n return pivot ? new LinkedPoint(pivot.x, pivot.y, this, \"setPivot\") : null;\n },\n setPivot: function() {\n this._pivot = Point.read(arguments, 0, {\n clone: true,\n readNull: true\n });\n this._position = undefined;\n }\n }, Base.each({\n getStrokeBounds: {\n stroke: true\n },\n getHandleBounds: {\n handle: true\n },\n getInternalBounds: {\n internal: true\n }\n }, function(options, key) {\n this[key] = function(matrix) {\n return this.getBounds(matrix, options);\n };\n }, {\n beans: true,\n getBounds: function(matrix, options) {\n var hasMatrix = options || matrix instanceof Matrix, opts = Base.set({}, hasMatrix ? options : matrix, this._boundsOptions);\n if (!opts.stroke || this.getStrokeScaling()) opts.cacheItem = this;\n var rect = this._getCachedBounds(hasMatrix && matrix, opts).rect;\n return !arguments.length ? new LinkedRectangle(rect.x, rect.y, rect.width, rect.height, this, \"setBounds\") : rect;\n },\n setBounds: function() {\n var rect = Rectangle.read(arguments), bounds = this.getBounds(), _matrix = this._matrix, matrix = new Matrix(), center = rect.getCenter();\n matrix.translate(center);\n if (rect.width != bounds.width || rect.height != bounds.height) {\n if (!_matrix.isInvertible()) {\n _matrix.set(_matrix._backup || new Matrix().translate(_matrix.getTranslation()));\n bounds = this.getBounds();\n }\n matrix.scale(bounds.width !== 0 ? rect.width / bounds.width : 0, bounds.height !== 0 ? rect.height / bounds.height : 0);\n }\n center = bounds.getCenter();\n matrix.translate(-center.x, -center.y);\n this.transform(matrix);\n },\n _getBounds: function(matrix, options) {\n var children = this._children;\n if (!children || !children.length) return new Rectangle();\n Item._updateBoundsCache(this, options.cacheItem);\n return Item._getBounds(children, matrix, options);\n },\n _getBoundsCacheKey: function(options, internal) {\n return [\n options.stroke ? 1 : 0,\n options.handle ? 1 : 0,\n internal ? 1 : 0\n ].join(\"\");\n },\n _getCachedBounds: function(matrix, options, noInternal) {\n matrix = matrix && matrix._orNullIfIdentity();\n var internal = options.internal && !noInternal, cacheItem = options.cacheItem, _matrix = internal ? null : this._matrix._orNullIfIdentity(), cacheKey = cacheItem && (!matrix || matrix.equals(_matrix)) && this._getBoundsCacheKey(options, internal), bounds = this._bounds;\n Item._updateBoundsCache(this._parent || this._symbol, cacheItem);\n if (cacheKey && bounds && cacheKey in bounds) {\n var cached = bounds[cacheKey];\n return {\n rect: cached.rect.clone(),\n nonscaling: cached.nonscaling\n };\n }\n var res = this._getBounds(matrix || _matrix, options), rect = res.rect || res, style = this._style, nonscaling = res.nonscaling || style.hasStroke() && !style.getStrokeScaling();\n if (cacheKey) {\n if (!bounds) this._bounds = bounds = {};\n var cached = bounds[cacheKey] = {\n rect: rect.clone(),\n nonscaling: nonscaling,\n internal: internal\n };\n }\n return {\n rect: rect,\n nonscaling: nonscaling\n };\n },\n _getStrokeMatrix: function(matrix, options) {\n var parent = this.getStrokeScaling() ? null : options && options.internal ? this : this._parent || this._symbol && this._symbol._item, mx = parent ? parent.getViewMatrix().invert() : matrix;\n return mx && mx._shiftless();\n },\n statics: {\n _updateBoundsCache: function(parent, item) {\n if (parent && item) {\n var id = item._id, ref = parent._boundsCache = parent._boundsCache || {\n ids: {},\n list: []\n };\n if (!ref.ids[id]) {\n ref.list.push(item);\n ref.ids[id] = item;\n }\n }\n },\n _clearBoundsCache: function(item) {\n var cache = item._boundsCache;\n if (cache) {\n item._bounds = item._position = item._boundsCache = undefined;\n for(var i = 0, list = cache.list, l = list.length; i < l; i++){\n var other = list[i];\n if (other !== item) {\n other._bounds = other._position = undefined;\n if (other._boundsCache) Item._clearBoundsCache(other);\n }\n }\n }\n },\n _getBounds: function(items, matrix, options) {\n var x1 = Infinity, x2 = -x1, y1 = x1, y2 = x2, nonscaling = false;\n options = options || {};\n for(var i = 0, l = items.length; i < l; i++){\n var item = items[i];\n if (item._visible && !item.isEmpty(true)) {\n var bounds = item._getCachedBounds(matrix && matrix.appended(item._matrix), options, true), rect = bounds.rect;\n x1 = Math.min(rect.x, x1);\n y1 = Math.min(rect.y, y1);\n x2 = Math.max(rect.x + rect.width, x2);\n y2 = Math.max(rect.y + rect.height, y2);\n if (bounds.nonscaling) nonscaling = true;\n }\n }\n return {\n rect: isFinite(x1) ? new Rectangle(x1, y1, x2 - x1, y2 - y1) : new Rectangle(),\n nonscaling: nonscaling\n };\n }\n }\n }), {\n beans: true,\n _decompose: function() {\n return this._applyMatrix ? null : this._decomposed || (this._decomposed = this._matrix.decompose());\n },\n getRotation: function() {\n var decomposed = this._decompose();\n return decomposed ? decomposed.rotation : 0;\n },\n setRotation: function(rotation) {\n var current = this.getRotation();\n if (current != null && rotation != null) {\n var decomposed = this._decomposed;\n this.rotate(rotation - current);\n if (decomposed) {\n decomposed.rotation = rotation;\n this._decomposed = decomposed;\n }\n }\n },\n getScaling: function() {\n var decomposed = this._decompose(), s = decomposed && decomposed.scaling;\n return new LinkedPoint(s ? s.x : 1, s ? s.y : 1, this, \"setScaling\");\n },\n setScaling: function() {\n var current = this.getScaling(), scaling = Point.read(arguments, 0, {\n clone: true,\n readNull: true\n });\n if (current && scaling && !current.equals(scaling)) {\n var rotation = this.getRotation(), decomposed = this._decomposed, matrix = new Matrix(), isZero = Numerical.isZero;\n if (isZero(current.x) || isZero(current.y)) {\n matrix.translate(decomposed.translation);\n if (rotation) matrix.rotate(rotation);\n matrix.scale(scaling.x, scaling.y);\n this._matrix.set(matrix);\n } else {\n var center = this.getPosition(true);\n matrix.translate(center);\n if (rotation) matrix.rotate(rotation);\n matrix.scale(scaling.x / current.x, scaling.y / current.y);\n if (rotation) matrix.rotate(-rotation);\n matrix.translate(center.negate());\n this.transform(matrix);\n }\n if (decomposed) {\n decomposed.scaling = scaling;\n this._decomposed = decomposed;\n }\n }\n },\n getMatrix: function() {\n return this._matrix;\n },\n setMatrix: function() {\n var matrix = this._matrix;\n matrix.set.apply(matrix, arguments);\n },\n getGlobalMatrix: function(_dontClone) {\n var matrix = this._globalMatrix;\n if (matrix) {\n var parent = this._parent;\n var parents = [];\n while(parent){\n if (!parent._globalMatrix) {\n matrix = null;\n for(var i = 0, l = parents.length; i < l; i++)parents[i]._globalMatrix = null;\n break;\n }\n parents.push(parent);\n parent = parent._parent;\n }\n }\n if (!matrix) {\n matrix = this._globalMatrix = this._matrix.clone();\n var parent = this._parent;\n if (parent) matrix.prepend(parent.getGlobalMatrix(true));\n }\n return _dontClone ? matrix : matrix.clone();\n },\n getViewMatrix: function() {\n return this.getGlobalMatrix().prepend(this.getView()._matrix);\n },\n getApplyMatrix: function() {\n return this._applyMatrix;\n },\n setApplyMatrix: function(apply) {\n if (this._applyMatrix = this._canApplyMatrix && !!apply) this.transform(null, true);\n },\n getTransformContent: \"#getApplyMatrix\",\n setTransformContent: \"#setApplyMatrix\"\n }, {\n getProject: function() {\n return this._project;\n },\n _setProject: function(project, installEvents) {\n if (this._project !== project) {\n if (this._project) this._installEvents(false);\n this._project = project;\n var children = this._children;\n for(var i = 0, l = children && children.length; i < l; i++)children[i]._setProject(project);\n installEvents = true;\n }\n if (installEvents) this._installEvents(true);\n },\n getView: function() {\n return this._project._view;\n },\n _installEvents: function _installEvents(install) {\n _installEvents.base.call(this, install);\n var children = this._children;\n for(var i = 0, l = children && children.length; i < l; i++)children[i]._installEvents(install);\n },\n getLayer: function() {\n var parent = this;\n while(parent = parent._parent){\n if (parent instanceof Layer) return parent;\n }\n return null;\n },\n getParent: function() {\n return this._parent;\n },\n setParent: function(item) {\n return item.addChild(this);\n },\n _getOwner: \"#getParent\",\n getChildren: function() {\n return this._children;\n },\n setChildren: function(items) {\n this.removeChildren();\n this.addChildren(items);\n },\n getFirstChild: function() {\n return this._children && this._children[0] || null;\n },\n getLastChild: function() {\n return this._children && this._children[this._children.length - 1] || null;\n },\n getNextSibling: function() {\n var owner = this._getOwner();\n return owner && owner._children[this._index + 1] || null;\n },\n getPreviousSibling: function() {\n var owner = this._getOwner();\n return owner && owner._children[this._index - 1] || null;\n },\n getIndex: function() {\n return this._index;\n },\n setIndex: function(index) {\n var parent = this._parent, children = parent && parent._children;\n if (children) parent.insertChildren(index in children ? index : undefined, [\n this\n ]);\n },\n equals: function(item) {\n return item === this || item && this._class === item._class && this._style.equals(item._style) && this._matrix.equals(item._matrix) && this._locked === item._locked && this._visible === item._visible && this._blendMode === item._blendMode && this._opacity === item._opacity && this._clipMask === item._clipMask && this._guide === item._guide && this._equals(item) || false;\n },\n _equals: function(item) {\n return Base.equals(this._children, item._children);\n },\n clone: function(options) {\n var copy = new this.constructor(Item.NO_INSERT), children = this._children, insert = Base.pick(options ? options.insert : undefined, options === undefined || options === true), deep = Base.pick(options ? options.deep : undefined, true);\n if (children) copy.copyAttributes(this);\n if (!children || deep) copy.copyContent(this);\n if (!children) copy.copyAttributes(this);\n if (insert) copy.insertAbove(this);\n var name = this._name, parent = this._parent;\n if (name && parent) {\n var children = parent._children, orig = name, i = 1;\n while(children[name])name = orig + \" \" + i++;\n if (name !== orig) copy.setName(name);\n }\n return copy;\n },\n copyContent: function(source) {\n var children = source._children;\n for(var i = 0, l = children && children.length; i < l; i++)this.addChild(children[i].clone(false), true);\n },\n copyAttributes: function(source, excludeMatrix) {\n this.setStyle(source._style);\n var keys = [\n \"_locked\",\n \"_visible\",\n \"_blendMode\",\n \"_opacity\",\n \"_clipMask\",\n \"_guide\"\n ];\n for(var i = 0, l = keys.length; i < l; i++){\n var key = keys[i];\n if (source.hasOwnProperty(key)) this[key] = source[key];\n }\n if (!excludeMatrix) this._matrix.set(source._matrix, true);\n this.setApplyMatrix(source._applyMatrix);\n this.setPivot(source._pivot);\n this.setSelection(source._selection);\n var data = source._data, name = source._name;\n this._data = data ? Base.clone(data) : null;\n if (name) this.setName(name);\n },\n rasterize: function(arg0, arg1) {\n var resolution, insert, raster;\n if (Base.isPlainObject(arg0)) {\n resolution = arg0.resolution;\n insert = arg0.insert;\n raster = arg0.raster;\n } else {\n resolution = arg0;\n insert = arg1;\n }\n if (!raster) raster = new Raster(Item.NO_INSERT);\n var bounds = this.getStrokeBounds(), scale = (resolution || this.getView().getResolution()) / 72, topLeft = bounds.getTopLeft().floor(), bottomRight = bounds.getBottomRight().ceil(), boundsSize = new Size(bottomRight.subtract(topLeft)), rasterSize = boundsSize.multiply(scale);\n raster.setSize(rasterSize, true);\n if (!rasterSize.isZero()) {\n var ctx = raster.getContext(true), matrix = new Matrix().scale(scale).translate(topLeft.negate());\n ctx.save();\n matrix.applyToContext(ctx);\n this.draw(ctx, new Base({\n matrices: [\n matrix\n ]\n }));\n ctx.restore();\n }\n raster._matrix.set(new Matrix().translate(topLeft.add(boundsSize.divide(2))).scale(1 / scale));\n if (insert === undefined || insert) raster.insertAbove(this);\n return raster;\n },\n contains: function() {\n var matrix = this._matrix;\n return matrix.isInvertible() && !!this._contains(matrix._inverseTransform(Point.read(arguments)));\n },\n _contains: function(point) {\n var children = this._children;\n if (children) {\n for(var i = children.length - 1; i >= 0; i--){\n if (children[i].contains(point)) return true;\n }\n return false;\n }\n return point.isInside(this.getInternalBounds());\n },\n isInside: function() {\n return Rectangle.read(arguments).contains(this.getBounds());\n },\n _asPathItem: function() {\n return new Path.Rectangle({\n rectangle: this.getInternalBounds(),\n matrix: this._matrix,\n insert: false\n });\n },\n intersects: function(item, _matrix) {\n if (!(item instanceof Item)) return false;\n return this._asPathItem().getIntersections(item._asPathItem(), null, _matrix, true).length > 0;\n }\n }, new function() {\n function hitTest() {\n var args = arguments;\n return this._hitTest(Point.read(args), HitResult.getOptions(args));\n }\n function hitTestAll() {\n var args = arguments, point = Point.read(args), options = HitResult.getOptions(args), all = [];\n this._hitTest(point, new Base({\n all: all\n }, options));\n return all;\n }\n function hitTestChildren(point, options, viewMatrix, _exclude) {\n var children = this._children;\n if (children) for(var i = children.length - 1; i >= 0; i--){\n var child = children[i];\n var res = child !== _exclude && child._hitTest(point, options, viewMatrix);\n if (res && !options.all) return res;\n }\n return null;\n }\n Project.inject({\n hitTest: hitTest,\n hitTestAll: hitTestAll,\n _hitTest: hitTestChildren\n });\n return {\n hitTest: hitTest,\n hitTestAll: hitTestAll,\n _hitTestChildren: hitTestChildren\n };\n }, {\n _hitTest: function(point, options, parentViewMatrix) {\n if (this._locked || !this._visible || this._guide && !options.guides || this.isEmpty()) return null;\n var matrix = this._matrix, viewMatrix = parentViewMatrix ? parentViewMatrix.appended(matrix) : this.getGlobalMatrix().prepend(this.getView()._matrix), tolerance = Math.max(options.tolerance, 1e-12), tolerancePadding = options._tolerancePadding = new Size(Path._getStrokePadding(tolerance, matrix._shiftless().invert()));\n point = matrix._inverseTransform(point);\n if (!point || !this._children && !this.getBounds({\n internal: true,\n stroke: true,\n handle: true\n }).expand(tolerancePadding.multiply(2))._containsPoint(point)) return null;\n var checkSelf = !(options.guides && !this._guide || options.selected && !this.isSelected() || options.type && options.type !== Base.hyphenate(this._class) || options.class && !(this instanceof options.class)), match = options.match, that = this, bounds, res;\n function filter(hit) {\n if (hit && match && !match(hit)) hit = null;\n if (hit && options.all) options.all.push(hit);\n return hit;\n }\n function checkPoint(type, part) {\n var pt = part ? bounds[\"get\" + part]() : that.getPosition();\n if (point.subtract(pt).divide(tolerancePadding).length <= 1) return new HitResult(type, that, {\n name: part ? Base.hyphenate(part) : type,\n point: pt\n });\n }\n var checkPosition = options.position, checkCenter = options.center, checkBounds = options.bounds;\n if (checkSelf && this._parent && (checkPosition || checkCenter || checkBounds)) {\n if (checkCenter || checkBounds) bounds = this.getInternalBounds();\n res = checkPosition && checkPoint(\"position\") || checkCenter && checkPoint(\"center\", \"Center\");\n if (!res && checkBounds) {\n var points = [\n \"TopLeft\",\n \"TopRight\",\n \"BottomLeft\",\n \"BottomRight\",\n \"LeftCenter\",\n \"TopCenter\",\n \"RightCenter\",\n \"BottomCenter\"\n ];\n for(var i = 0; i < 8 && !res; i++)res = checkPoint(\"bounds\", points[i]);\n }\n res = filter(res);\n }\n if (!res) res = this._hitTestChildren(point, options, viewMatrix) || checkSelf && filter(this._hitTestSelf(point, options, viewMatrix, this.getStrokeScaling() ? null : viewMatrix._shiftless().invert())) || null;\n if (res && res.point) res.point = matrix.transform(res.point);\n return res;\n },\n _hitTestSelf: function(point, options) {\n if (options.fill && this.hasFill() && this._contains(point)) return new HitResult(\"fill\", this);\n },\n matches: function(name, compare) {\n function matchObject(obj1, obj2) {\n for(var i in obj1)if (obj1.hasOwnProperty(i)) {\n var val1 = obj1[i], val2 = obj2[i];\n if (Base.isPlainObject(val1) && Base.isPlainObject(val2)) {\n if (!matchObject(val1, val2)) return false;\n } else if (!Base.equals(val1, val2)) return false;\n }\n return true;\n }\n var type = typeof name;\n if (type === \"object\") {\n for(var key in name){\n if (name.hasOwnProperty(key) && !this.matches(key, name[key])) return false;\n }\n return true;\n } else if (type === \"function\") return name(this);\n else if (name === \"match\") return compare(this);\n else {\n var value = /^(empty|editable)$/.test(name) ? this[\"is\" + Base.capitalize(name)]() : name === \"type\" ? Base.hyphenate(this._class) : this[name];\n if (name === \"class\") {\n if (typeof compare === \"function\") return this instanceof compare;\n value = this._class;\n }\n if (typeof compare === \"function\") return !!compare(value);\n else if (compare) {\n if (compare.test) return compare.test(value);\n else if (Base.isPlainObject(compare)) return matchObject(compare, value);\n }\n return Base.equals(value, compare);\n }\n },\n getItems: function(options) {\n return Item._getItems(this, options, this._matrix);\n },\n getItem: function(options) {\n return Item._getItems(this, options, this._matrix, null, true)[0] || null;\n },\n statics: {\n _getItems: function _getItems(item, options, matrix, param, firstOnly) {\n if (!param) {\n var obj = typeof options === \"object\" && options, overlapping = obj && obj.overlapping, inside = obj && obj.inside, bounds = overlapping || inside, rect = bounds && Rectangle.read([\n bounds\n ]);\n param = {\n items: [],\n recursive: obj && obj.recursive !== false,\n inside: !!inside,\n overlapping: !!overlapping,\n rect: rect,\n path: overlapping && new Path.Rectangle({\n rectangle: rect,\n insert: false\n })\n };\n if (obj) options = Base.filter({}, options, {\n recursive: true,\n inside: true,\n overlapping: true\n });\n }\n var children = item._children, items = param.items, rect = param.rect;\n matrix = rect && (matrix || new Matrix());\n for(var i = 0, l = children && children.length; i < l; i++){\n var child = children[i], childMatrix = matrix && matrix.appended(child._matrix), add = true;\n if (rect) {\n var bounds = child.getBounds(childMatrix);\n if (!rect.intersects(bounds)) continue;\n if (!(rect.contains(bounds) || param.overlapping && (bounds.contains(rect) || param.path.intersects(child, childMatrix)))) add = false;\n }\n if (add && child.matches(options)) {\n items.push(child);\n if (firstOnly) break;\n }\n if (param.recursive !== false) _getItems(child, options, childMatrix, param, firstOnly);\n if (firstOnly && items.length > 0) break;\n }\n return items;\n }\n }\n }, {\n importJSON: function(json) {\n var res = Base.importJSON(json, this);\n return res !== this ? this.addChild(res) : res;\n },\n addChild: function(item) {\n return this.insertChild(undefined, item);\n },\n insertChild: function(index, item) {\n var res = item ? this.insertChildren(index, [\n item\n ]) : null;\n return res && res[0];\n },\n addChildren: function(items) {\n return this.insertChildren(this._children.length, items);\n },\n insertChildren: function(index, items) {\n var children = this._children;\n if (children && items && items.length > 0) {\n items = Base.slice(items);\n var inserted = {};\n for(var i = items.length - 1; i >= 0; i--){\n var item = items[i], id = item && item._id;\n if (!item || inserted[id]) items.splice(i, 1);\n else {\n item._remove(false, true);\n inserted[id] = true;\n }\n }\n Base.splice(children, items, index, 0);\n var project = this._project, notifySelf = project._changes;\n for(var i = 0, l = items.length; i < l; i++){\n var item = items[i], name = item._name;\n item._parent = this;\n item._setProject(project, true);\n if (name) item.setName(name);\n if (notifySelf) item._changed(5);\n }\n this._changed(11);\n } else items = null;\n return items;\n },\n _insertItem: \"#insertChild\",\n _insertAt: function(item, offset) {\n var owner = item && item._getOwner(), res = item !== this && owner ? this : null;\n if (res) {\n res._remove(false, true);\n owner._insertItem(item._index + offset, res);\n }\n return res;\n },\n insertAbove: function(item) {\n return this._insertAt(item, 1);\n },\n insertBelow: function(item) {\n return this._insertAt(item, 0);\n },\n sendToBack: function() {\n var owner = this._getOwner();\n return owner ? owner._insertItem(0, this) : null;\n },\n bringToFront: function() {\n var owner = this._getOwner();\n return owner ? owner._insertItem(undefined, this) : null;\n },\n appendTop: \"#addChild\",\n appendBottom: function(item) {\n return this.insertChild(0, item);\n },\n moveAbove: \"#insertAbove\",\n moveBelow: \"#insertBelow\",\n addTo: function(owner) {\n return owner._insertItem(undefined, this);\n },\n copyTo: function(owner) {\n return this.clone(false).addTo(owner);\n },\n reduce: function(options) {\n var children = this._children;\n if (children && children.length === 1) {\n var child = children[0].reduce(options);\n if (this._parent) {\n child.insertAbove(this);\n this.remove();\n } else child.remove();\n return child;\n }\n return this;\n },\n _removeNamed: function() {\n var owner = this._getOwner();\n if (owner) {\n var children = owner._children, namedChildren = owner._namedChildren, name = this._name, namedArray = namedChildren[name], index = namedArray ? namedArray.indexOf(this) : -1;\n if (index !== -1) {\n if (children[name] == this) delete children[name];\n namedArray.splice(index, 1);\n if (namedArray.length) children[name] = namedArray[0];\n else delete namedChildren[name];\n }\n }\n },\n _remove: function(notifySelf, notifyParent) {\n var owner = this._getOwner(), project = this._project, index = this._index;\n if (this._style) this._style._dispose();\n if (owner) {\n if (this._name) this._removeNamed();\n if (index != null) {\n if (project._activeLayer === this) project._activeLayer = this.getNextSibling() || this.getPreviousSibling();\n Base.splice(owner._children, null, index, 1);\n }\n this._installEvents(false);\n if (notifySelf && project._changes) this._changed(5);\n if (notifyParent) owner._changed(11, this);\n this._parent = null;\n return true;\n }\n return false;\n },\n remove: function() {\n return this._remove(true, true);\n },\n replaceWith: function(item) {\n var ok = item && item.insertBelow(this);\n if (ok) this.remove();\n return ok;\n },\n removeChildren: function(start, end) {\n if (!this._children) return null;\n start = start || 0;\n end = Base.pick(end, this._children.length);\n var removed = Base.splice(this._children, null, start, end - start);\n for(var i = removed.length - 1; i >= 0; i--)removed[i]._remove(true, false);\n if (removed.length > 0) this._changed(11);\n return removed;\n },\n clear: \"#removeChildren\",\n reverseChildren: function() {\n if (this._children) {\n this._children.reverse();\n for(var i = 0, l = this._children.length; i < l; i++)this._children[i]._index = i;\n this._changed(11);\n }\n },\n isEmpty: function(recursively) {\n var children = this._children;\n var numChildren = children ? children.length : 0;\n if (recursively) {\n for(var i = 0; i < numChildren; i++){\n if (!children[i].isEmpty(recursively)) return false;\n }\n return true;\n }\n return !numChildren;\n },\n isEditable: function() {\n var item = this;\n while(item){\n if (!item._visible || item._locked) return false;\n item = item._parent;\n }\n return true;\n },\n hasFill: function() {\n return this.getStyle().hasFill();\n },\n hasStroke: function() {\n return this.getStyle().hasStroke();\n },\n hasShadow: function() {\n return this.getStyle().hasShadow();\n },\n _getOrder: function(item) {\n function getList(item) {\n var list = [];\n do list.unshift(item);\n while (item = item._parent);\n return list;\n }\n var list1 = getList(this), list2 = getList(item);\n for(var i = 0, l = Math.min(list1.length, list2.length); i < l; i++){\n if (list1[i] != list2[i]) return list1[i]._index < list2[i]._index ? 1 : -1;\n }\n return 0;\n },\n hasChildren: function() {\n return this._children && this._children.length > 0;\n },\n isInserted: function() {\n return this._parent ? this._parent.isInserted() : false;\n },\n isAbove: function(item) {\n return this._getOrder(item) === -1;\n },\n isBelow: function(item) {\n return this._getOrder(item) === 1;\n },\n isParent: function(item) {\n return this._parent === item;\n },\n isChild: function(item) {\n return item && item._parent === this;\n },\n isDescendant: function(item) {\n var parent = this;\n while(parent = parent._parent){\n if (parent === item) return true;\n }\n return false;\n },\n isAncestor: function(item) {\n return item ? item.isDescendant(this) : false;\n },\n isSibling: function(item) {\n return this._parent === item._parent;\n },\n isGroupedWith: function(item) {\n var parent = this._parent;\n while(parent){\n if (parent._parent && /^(Group|Layer|CompoundPath)$/.test(parent._class) && item.isDescendant(parent)) return true;\n parent = parent._parent;\n }\n return false;\n }\n }, Base.each([\n \"rotate\",\n \"scale\",\n \"shear\",\n \"skew\"\n ], function(key) {\n var rotate = key === \"rotate\";\n this[key] = function() {\n var args = arguments, value = (rotate ? Base : Point).read(args), center = Point.read(args, 0, {\n readNull: true\n });\n return this.transform(new Matrix()[key](value, center || this.getPosition(true)));\n };\n }, {\n translate: function() {\n var mx = new Matrix();\n return this.transform(mx.translate.apply(mx, arguments));\n },\n transform: function(matrix, _applyRecursively, _setApplyMatrix) {\n var _matrix = this._matrix, transformMatrix = matrix && !matrix.isIdentity(), applyMatrix = _setApplyMatrix && this._canApplyMatrix || this._applyMatrix && (transformMatrix || !_matrix.isIdentity() || _applyRecursively && this._children);\n if (!transformMatrix && !applyMatrix) return this;\n if (transformMatrix) {\n if (!matrix.isInvertible() && _matrix.isInvertible()) _matrix._backup = _matrix.getValues();\n _matrix.prepend(matrix, true);\n var style = this._style, fillColor = style.getFillColor(true), strokeColor = style.getStrokeColor(true);\n if (fillColor) fillColor.transform(matrix);\n if (strokeColor) strokeColor.transform(matrix);\n }\n if (applyMatrix && (applyMatrix = this._transformContent(_matrix, _applyRecursively, _setApplyMatrix))) {\n var pivot = this._pivot;\n if (pivot) _matrix._transformPoint(pivot, pivot, true);\n _matrix.reset(true);\n if (_setApplyMatrix && this._canApplyMatrix) this._applyMatrix = true;\n }\n var bounds = this._bounds, position = this._position;\n if (transformMatrix || applyMatrix) this._changed(25);\n var decomp = transformMatrix && bounds && matrix.decompose();\n if (decomp && decomp.skewing.isZero() && decomp.rotation % 90 === 0) {\n for(var key in bounds){\n var cache = bounds[key];\n if (cache.nonscaling) delete bounds[key];\n else if (applyMatrix || !cache.internal) {\n var rect = cache.rect;\n matrix._transformBounds(rect, rect);\n }\n }\n this._bounds = bounds;\n var cached = bounds[this._getBoundsCacheKey(this._boundsOptions || {})];\n if (cached) this._position = this._getPositionFromBounds(cached.rect);\n } else if (transformMatrix && position && this._pivot) this._position = matrix._transformPoint(position, position);\n return this;\n },\n _transformContent: function(matrix, applyRecursively, setApplyMatrix) {\n var children = this._children;\n if (children) {\n for(var i = 0, l = children.length; i < l; i++)children[i].transform(matrix, applyRecursively, setApplyMatrix);\n return true;\n }\n },\n globalToLocal: function() {\n return this.getGlobalMatrix(true)._inverseTransform(Point.read(arguments));\n },\n localToGlobal: function() {\n return this.getGlobalMatrix(true)._transformPoint(Point.read(arguments));\n },\n parentToLocal: function() {\n return this._matrix._inverseTransform(Point.read(arguments));\n },\n localToParent: function() {\n return this._matrix._transformPoint(Point.read(arguments));\n },\n fitBounds: function(rectangle, fill) {\n rectangle = Rectangle.read(arguments);\n var bounds = this.getBounds(), itemRatio = bounds.height / bounds.width, rectRatio = rectangle.height / rectangle.width, scale = (fill ? itemRatio > rectRatio : itemRatio < rectRatio) ? rectangle.width / bounds.width : rectangle.height / bounds.height, newBounds = new Rectangle(new Point(), new Size(bounds.width * scale, bounds.height * scale));\n newBounds.setCenter(rectangle.getCenter());\n this.setBounds(newBounds);\n }\n }), {\n _setStyles: function(ctx, param, viewMatrix) {\n var style = this._style, matrix = this._matrix;\n if (style.hasFill()) ctx.fillStyle = style.getFillColor().toCanvasStyle(ctx, matrix);\n if (style.hasStroke()) {\n ctx.strokeStyle = style.getStrokeColor().toCanvasStyle(ctx, matrix);\n ctx.lineWidth = style.getStrokeWidth();\n var strokeJoin = style.getStrokeJoin(), strokeCap = style.getStrokeCap(), miterLimit = style.getMiterLimit();\n if (strokeJoin) ctx.lineJoin = strokeJoin;\n if (strokeCap) ctx.lineCap = strokeCap;\n if (miterLimit) ctx.miterLimit = miterLimit;\n if (paper.support.nativeDash) {\n var dashArray = style.getDashArray(), dashOffset = style.getDashOffset();\n if (dashArray && dashArray.length) {\n if (\"setLineDash\" in ctx) {\n ctx.setLineDash(dashArray);\n ctx.lineDashOffset = dashOffset;\n } else {\n ctx.mozDash = dashArray;\n ctx.mozDashOffset = dashOffset;\n }\n }\n }\n }\n if (style.hasShadow()) {\n var pixelRatio = param.pixelRatio || 1, mx = viewMatrix._shiftless().prepend(new Matrix().scale(pixelRatio, pixelRatio)), blur = mx.transform(new Point(style.getShadowBlur(), 0)), offset = mx.transform(this.getShadowOffset());\n ctx.shadowColor = style.getShadowColor().toCanvasStyle(ctx);\n ctx.shadowBlur = blur.getLength();\n ctx.shadowOffsetX = offset.x;\n ctx.shadowOffsetY = offset.y;\n }\n },\n draw: function(ctx, param, parentStrokeMatrix) {\n var updateVersion = this._updateVersion = this._project._updateVersion;\n if (!this._visible || this._opacity === 0) return;\n var matrices = param.matrices, viewMatrix = param.viewMatrix, matrix = this._matrix, globalMatrix = matrices[matrices.length - 1].appended(matrix);\n if (!globalMatrix.isInvertible()) return;\n viewMatrix = viewMatrix ? viewMatrix.appended(globalMatrix) : globalMatrix;\n matrices.push(globalMatrix);\n if (param.updateMatrix) this._globalMatrix = globalMatrix;\n var blendMode = this._blendMode, opacity = Numerical.clamp(this._opacity, 0, 1), normalBlend = blendMode === \"normal\", nativeBlend = BlendMode.nativeModes[blendMode], direct = normalBlend && opacity === 1 || param.dontStart || param.clip || (nativeBlend || normalBlend && opacity < 1) && this._canComposite(), pixelRatio = param.pixelRatio || 1, mainCtx, itemOffset, prevOffset;\n if (!direct) {\n var bounds = this.getStrokeBounds(viewMatrix);\n if (!bounds.width || !bounds.height) {\n matrices.pop();\n return;\n }\n prevOffset = param.offset;\n itemOffset = param.offset = bounds.getTopLeft().floor();\n mainCtx = ctx;\n ctx = CanvasProvider.getContext(bounds.getSize().ceil().add(1).multiply(pixelRatio));\n if (pixelRatio !== 1) ctx.scale(pixelRatio, pixelRatio);\n }\n ctx.save();\n var strokeMatrix = parentStrokeMatrix ? parentStrokeMatrix.appended(matrix) : this._canScaleStroke && !this.getStrokeScaling(true) && viewMatrix, clip = !direct && param.clipItem, transform = !strokeMatrix || clip;\n if (direct) {\n ctx.globalAlpha = opacity;\n if (nativeBlend) ctx.globalCompositeOperation = blendMode;\n } else if (transform) ctx.translate(-itemOffset.x, -itemOffset.y);\n if (transform) (direct ? matrix : viewMatrix).applyToContext(ctx);\n if (clip) param.clipItem.draw(ctx, param.extend({\n clip: true\n }));\n if (strokeMatrix) {\n ctx.setTransform(pixelRatio, 0, 0, pixelRatio, 0, 0);\n var offset = param.offset;\n if (offset) ctx.translate(-offset.x, -offset.y);\n }\n this._draw(ctx, param, viewMatrix, strokeMatrix);\n ctx.restore();\n matrices.pop();\n if (param.clip && !param.dontFinish) ctx.clip(this.getFillRule());\n if (!direct) {\n BlendMode.process(blendMode, ctx, mainCtx, opacity, itemOffset.subtract(prevOffset).multiply(pixelRatio));\n CanvasProvider.release(ctx);\n param.offset = prevOffset;\n }\n },\n _isUpdated: function(updateVersion) {\n var parent = this._parent;\n if (parent instanceof CompoundPath) return parent._isUpdated(updateVersion);\n var updated = this._updateVersion === updateVersion;\n if (!updated && parent && parent._visible && parent._isUpdated(updateVersion)) {\n this._updateVersion = updateVersion;\n updated = true;\n }\n return updated;\n },\n _drawSelection: function(ctx, matrix, size, selectionItems, updateVersion) {\n var selection = this._selection, itemSelected = selection & 1, boundsSelected = selection & 2 || itemSelected && this._selectBounds, positionSelected = selection & 4;\n if (!this._drawSelected) itemSelected = false;\n if ((itemSelected || boundsSelected || positionSelected) && this._isUpdated(updateVersion)) {\n var layer, color = this.getSelectedColor(true) || (layer = this.getLayer()) && layer.getSelectedColor(true), mx = matrix.appended(this.getGlobalMatrix(true)), half = size / 2;\n ctx.strokeStyle = ctx.fillStyle = color ? color.toCanvasStyle(ctx) : \"#009dec\";\n if (itemSelected) this._drawSelected(ctx, mx, selectionItems);\n if (positionSelected) {\n var pos = this.getPosition(true), parent = this._parent, point = parent ? parent.localToGlobal(pos) : pos, x = point.x, y = point.y;\n ctx.beginPath();\n ctx.arc(x, y, half, 0, Math.PI * 2, true);\n ctx.stroke();\n var deltas = [\n [\n 0,\n -1\n ],\n [\n 1,\n 0\n ],\n [\n 0,\n 1\n ],\n [\n -1,\n 0\n ]\n ], start = half, end = size + 1;\n for(var i = 0; i < 4; i++){\n var delta = deltas[i], dx = delta[0], dy = delta[1];\n ctx.moveTo(x + dx * start, y + dy * start);\n ctx.lineTo(x + dx * end, y + dy * end);\n ctx.stroke();\n }\n }\n if (boundsSelected) {\n var coords = mx._transformCorners(this.getInternalBounds());\n ctx.beginPath();\n for(var i = 0; i < 8; i++)ctx[!i ? \"moveTo\" : \"lineTo\"](coords[i], coords[++i]);\n ctx.closePath();\n ctx.stroke();\n for(var i = 0; i < 8; i++)ctx.fillRect(coords[i] - half, coords[++i] - half, size, size);\n }\n }\n },\n _canComposite: function() {\n return false;\n }\n }, Base.each([\n \"down\",\n \"drag\",\n \"up\",\n \"move\"\n ], function(key) {\n this[\"removeOn\" + Base.capitalize(key)] = function() {\n var hash = {};\n hash[key] = true;\n return this.removeOn(hash);\n };\n }, {\n removeOn: function(obj) {\n for(var name in obj)if (obj[name]) {\n var key = \"mouse\" + name, project = this._project, sets = project._removeSets = project._removeSets || {};\n sets[key] = sets[key] || {};\n sets[key][this._id] = this;\n }\n return this;\n }\n }), {\n tween: function(from, to, options) {\n if (!options) {\n options = to;\n to = from;\n from = null;\n if (!options) {\n options = to;\n to = null;\n }\n }\n var easing = options && options.easing, start = options && options.start, duration = options != null && (typeof options === \"number\" ? options : options.duration), tween = new Tween(this, from, to, duration, easing, start);\n function onFrame(event) {\n tween._handleFrame(event.time * 1000);\n if (!tween.running) this.off(\"frame\", onFrame);\n }\n if (duration) this.on(\"frame\", onFrame);\n return tween;\n },\n tweenTo: function(to, options) {\n return this.tween(null, to, options);\n },\n tweenFrom: function(from, options) {\n return this.tween(from, null, options);\n }\n });\n var Group = Item.extend({\n _class: \"Group\",\n _selectBounds: false,\n _selectChildren: true,\n _serializeFields: {\n children: []\n },\n initialize: function Group(arg) {\n this._children = [];\n this._namedChildren = {};\n if (!this._initialize(arg)) this.addChildren(Array.isArray(arg) ? arg : arguments);\n },\n _changed: function _changed(flags) {\n _changed.base.call(this, flags);\n if (flags & 2050) this._clipItem = undefined;\n },\n _getClipItem: function() {\n var clipItem = this._clipItem;\n if (clipItem === undefined) {\n clipItem = null;\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)if (children[i]._clipMask) {\n clipItem = children[i];\n break;\n }\n this._clipItem = clipItem;\n }\n return clipItem;\n },\n isClipped: function() {\n return !!this._getClipItem();\n },\n setClipped: function(clipped) {\n var child = this.getFirstChild();\n if (child) child.setClipMask(clipped);\n },\n _getBounds: function _getBounds(matrix, options) {\n var clipItem = this._getClipItem();\n return clipItem ? clipItem._getCachedBounds(clipItem._matrix.prepended(matrix), Base.set({}, options, {\n stroke: false\n })) : _getBounds.base.call(this, matrix, options);\n },\n _hitTestChildren: function _hitTestChildren(point, options, viewMatrix) {\n var clipItem = this._getClipItem();\n return (!clipItem || clipItem.contains(point)) && _hitTestChildren.base.call(this, point, options, viewMatrix, clipItem);\n },\n _draw: function(ctx, param) {\n var clip = param.clip, clipItem = !clip && this._getClipItem();\n param = param.extend({\n clipItem: clipItem,\n clip: false\n });\n if (clip) {\n ctx.beginPath();\n param.dontStart = param.dontFinish = true;\n } else if (clipItem) clipItem.draw(ctx, param.extend({\n clip: true\n }));\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++){\n var item = children[i];\n if (item !== clipItem) item.draw(ctx, param);\n }\n }\n });\n var Layer = Group.extend({\n _class: \"Layer\",\n initialize: function Layer() {\n Group.apply(this, arguments);\n },\n _getOwner: function() {\n return this._parent || this._index != null && this._project;\n },\n isInserted: function isInserted() {\n return this._parent ? isInserted.base.call(this) : this._index != null;\n },\n activate: function() {\n this._project._activeLayer = this;\n },\n _hitTestSelf: function() {}\n });\n var Shape = Item.extend({\n _class: \"Shape\",\n _applyMatrix: false,\n _canApplyMatrix: false,\n _canScaleStroke: true,\n _serializeFields: {\n type: null,\n size: null,\n radius: null\n },\n initialize: function Shape(props, point) {\n this._initialize(props, point);\n },\n _equals: function(item) {\n return this._type === item._type && this._size.equals(item._size) && Base.equals(this._radius, item._radius);\n },\n copyContent: function(source) {\n this.setType(source._type);\n this.setSize(source._size);\n this.setRadius(source._radius);\n },\n getType: function() {\n return this._type;\n },\n setType: function(type) {\n this._type = type;\n },\n getShape: \"#getType\",\n setShape: \"#setType\",\n getSize: function() {\n var size = this._size;\n return new LinkedSize(size.width, size.height, this, \"setSize\");\n },\n setSize: function() {\n var size = Size.read(arguments);\n if (!this._size) this._size = size.clone();\n else if (!this._size.equals(size)) {\n var type = this._type, width = size.width, height = size.height;\n if (type === \"rectangle\") this._radius.set(Size.min(this._radius, size.divide(2).abs()));\n else if (type === \"circle\") {\n width = height = (width + height) / 2;\n this._radius = width / 2;\n } else if (type === \"ellipse\") this._radius._set(width / 2, height / 2);\n this._size._set(width, height);\n this._changed(9);\n }\n },\n getRadius: function() {\n var rad = this._radius;\n return this._type === \"circle\" ? rad : new LinkedSize(rad.width, rad.height, this, \"setRadius\");\n },\n setRadius: function(radius) {\n var type = this._type;\n if (type === \"circle\") {\n if (radius === this._radius) return;\n var size = radius * 2;\n this._radius = radius;\n this._size._set(size, size);\n } else {\n radius = Size.read(arguments);\n if (!this._radius) this._radius = radius.clone();\n else {\n if (this._radius.equals(radius)) return;\n this._radius.set(radius);\n if (type === \"rectangle\") {\n var size = Size.max(this._size, radius.multiply(2));\n this._size.set(size);\n } else if (type === \"ellipse\") this._size._set(radius.width * 2, radius.height * 2);\n }\n }\n this._changed(9);\n },\n isEmpty: function() {\n return false;\n },\n toPath: function(insert) {\n var path = new Path[Base.capitalize(this._type)]({\n center: new Point(),\n size: this._size,\n radius: this._radius,\n insert: false\n });\n path.copyAttributes(this);\n if (paper.settings.applyMatrix) path.setApplyMatrix(true);\n if (insert === undefined || insert) path.insertAbove(this);\n return path;\n },\n toShape: \"#clone\",\n _asPathItem: function() {\n return this.toPath(false);\n },\n _draw: function(ctx, param, viewMatrix, strokeMatrix) {\n var style = this._style, hasFill = style.hasFill(), hasStroke = style.hasStroke(), dontPaint = param.dontFinish || param.clip, untransformed = !strokeMatrix;\n if (hasFill || hasStroke || dontPaint) {\n var type = this._type, radius = this._radius, isCircle = type === \"circle\";\n if (!param.dontStart) ctx.beginPath();\n if (untransformed && isCircle) ctx.arc(0, 0, radius, 0, Math.PI * 2, true);\n else {\n var rx = isCircle ? radius : radius.width, ry = isCircle ? radius : radius.height, size = this._size, width = size.width, height = size.height;\n if (untransformed && type === \"rectangle\" && rx === 0 && ry === 0) ctx.rect(-width / 2, -height / 2, width, height);\n else {\n var x = width / 2, y = height / 2, kappa = 0.44771525016920644, cx = rx * kappa, cy = ry * kappa, c = [\n -x,\n -y + ry,\n -x,\n -y + cy,\n -x + cx,\n -y,\n -x + rx,\n -y,\n x - rx,\n -y,\n x - cx,\n -y,\n x,\n -y + cy,\n x,\n -y + ry,\n x,\n y - ry,\n x,\n y - cy,\n x - cx,\n y,\n x - rx,\n y,\n -x + rx,\n y,\n -x + cx,\n y,\n -x,\n y - cy,\n -x,\n y - ry\n ];\n if (strokeMatrix) strokeMatrix.transform(c, c, 32);\n ctx.moveTo(c[0], c[1]);\n ctx.bezierCurveTo(c[2], c[3], c[4], c[5], c[6], c[7]);\n if (x !== rx) ctx.lineTo(c[8], c[9]);\n ctx.bezierCurveTo(c[10], c[11], c[12], c[13], c[14], c[15]);\n if (y !== ry) ctx.lineTo(c[16], c[17]);\n ctx.bezierCurveTo(c[18], c[19], c[20], c[21], c[22], c[23]);\n if (x !== rx) ctx.lineTo(c[24], c[25]);\n ctx.bezierCurveTo(c[26], c[27], c[28], c[29], c[30], c[31]);\n }\n }\n ctx.closePath();\n }\n if (!dontPaint && (hasFill || hasStroke)) {\n this._setStyles(ctx, param, viewMatrix);\n if (hasFill) {\n ctx.fill(style.getFillRule());\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n }\n if (hasStroke) ctx.stroke();\n }\n },\n _canComposite: function() {\n return !(this.hasFill() && this.hasStroke());\n },\n _getBounds: function(matrix, options) {\n var rect = new Rectangle(this._size).setCenter(0, 0), style = this._style, strokeWidth = options.stroke && style.hasStroke() && style.getStrokeWidth();\n if (matrix) rect = matrix._transformBounds(rect);\n return strokeWidth ? rect.expand(Path._getStrokePadding(strokeWidth, this._getStrokeMatrix(matrix, options))) : rect;\n }\n }, new function() {\n function getCornerCenter(that, point, expand) {\n var radius = that._radius;\n if (!radius.isZero()) {\n var halfSize = that._size.divide(2);\n for(var q = 1; q <= 4; q++){\n var dir = new Point(q > 1 && q < 4 ? -1 : 1, q > 2 ? -1 : 1), corner = dir.multiply(halfSize), center = corner.subtract(dir.multiply(radius)), rect = new Rectangle(expand ? corner.add(dir.multiply(expand)) : corner, center);\n if (rect.contains(point)) return {\n point: center,\n quadrant: q\n };\n }\n }\n }\n function isOnEllipseStroke(point, radius, padding, quadrant) {\n var vector = point.divide(radius);\n return (!quadrant || vector.isInQuadrant(quadrant)) && vector.subtract(vector.normalize()).multiply(radius).divide(padding).length <= 1;\n }\n return {\n _contains: function _contains(point) {\n if (this._type === \"rectangle\") {\n var center = getCornerCenter(this, point);\n return center ? point.subtract(center.point).divide(this._radius).getLength() <= 1 : _contains.base.call(this, point);\n } else return point.divide(this.size).getLength() <= 0.5;\n },\n _hitTestSelf: function _hitTestSelf(point, options, viewMatrix, strokeMatrix) {\n var hit = false, style = this._style, hitStroke = options.stroke && style.hasStroke(), hitFill = options.fill && style.hasFill();\n if (hitStroke || hitFill) {\n var type = this._type, radius = this._radius, strokeRadius = hitStroke ? style.getStrokeWidth() / 2 : 0, strokePadding = options._tolerancePadding.add(Path._getStrokePadding(strokeRadius, !style.getStrokeScaling() && strokeMatrix));\n if (type === \"rectangle\") {\n var padding = strokePadding.multiply(2), center = getCornerCenter(this, point, padding);\n if (center) hit = isOnEllipseStroke(point.subtract(center.point), radius, strokePadding, center.quadrant);\n else {\n var rect = new Rectangle(this._size).setCenter(0, 0), outer = rect.expand(padding), inner = rect.expand(padding.negate());\n hit = outer._containsPoint(point) && !inner._containsPoint(point);\n }\n } else hit = isOnEllipseStroke(point, radius, strokePadding);\n }\n return hit ? new HitResult(hitStroke ? \"stroke\" : \"fill\", this) : _hitTestSelf.base.apply(this, arguments);\n }\n };\n }, {\n statics: new function() {\n function createShape(type, point, size, radius, args) {\n var item = Base.create(Shape.prototype);\n item._type = type;\n item._size = size;\n item._radius = radius;\n item._initialize(Base.getNamed(args), point);\n return item;\n }\n return {\n Circle: function() {\n var args = arguments, center = Point.readNamed(args, \"center\"), radius = Base.readNamed(args, \"radius\");\n return createShape(\"circle\", center, new Size(radius * 2), radius, args);\n },\n Rectangle: function() {\n var args = arguments, rect = Rectangle.readNamed(args, \"rectangle\"), radius = Size.min(Size.readNamed(args, \"radius\"), rect.getSize(true).divide(2));\n return createShape(\"rectangle\", rect.getCenter(true), rect.getSize(true), radius, args);\n },\n Ellipse: function() {\n var args = arguments, ellipse = Shape._readEllipse(args), radius = ellipse.radius;\n return createShape(\"ellipse\", ellipse.center, radius.multiply(2), radius, args);\n },\n _readEllipse: function(args) {\n var center, radius;\n if (Base.hasNamed(args, \"radius\")) {\n center = Point.readNamed(args, \"center\");\n radius = Size.readNamed(args, \"radius\");\n } else {\n var rect = Rectangle.readNamed(args, \"rectangle\");\n center = rect.getCenter(true);\n radius = rect.getSize(true).divide(2);\n }\n return {\n center: center,\n radius: radius\n };\n }\n };\n }\n });\n var Raster = Item.extend({\n _class: \"Raster\",\n _applyMatrix: false,\n _canApplyMatrix: false,\n _boundsOptions: {\n stroke: false,\n handle: false\n },\n _serializeFields: {\n crossOrigin: null,\n source: null\n },\n _prioritize: [\n \"crossOrigin\"\n ],\n _smoothing: \"low\",\n beans: true,\n initialize: function Raster(source, position) {\n if (!this._initialize(source, position !== undefined && Point.read(arguments))) {\n var image, type = typeof source, object = type === \"string\" ? document.getElementById(source) : type === \"object\" ? source : null;\n if (object && object !== Item.NO_INSERT) {\n if (object.getContext || object.naturalHeight != null) image = object;\n else if (object) {\n var size = Size.read(arguments);\n if (!size.isZero()) image = CanvasProvider.getCanvas(size);\n }\n }\n if (image) this.setImage(image);\n else this.setSource(source);\n }\n if (!this._size) {\n this._size = new Size();\n this._loaded = false;\n }\n },\n _equals: function(item) {\n return this.getSource() === item.getSource();\n },\n copyContent: function(source) {\n var image = source._image, canvas = source._canvas;\n if (image) this._setImage(image);\n else if (canvas) {\n var copyCanvas = CanvasProvider.getCanvas(source._size);\n copyCanvas.getContext(\"2d\").drawImage(canvas, 0, 0);\n this._setImage(copyCanvas);\n }\n this._crossOrigin = source._crossOrigin;\n },\n getSize: function() {\n var size = this._size;\n return new LinkedSize(size ? size.width : 0, size ? size.height : 0, this, \"setSize\");\n },\n setSize: function(_size, _clear) {\n var size = Size.read(arguments);\n if (!size.equals(this._size)) {\n if (size.width > 0 && size.height > 0) {\n var element = !_clear && this.getElement();\n this._setImage(CanvasProvider.getCanvas(size));\n if (element) this.getContext(true).drawImage(element, 0, 0, size.width, size.height);\n } else {\n if (this._canvas) CanvasProvider.release(this._canvas);\n this._size = size.clone();\n }\n } else if (_clear) this.clear();\n },\n getWidth: function() {\n return this._size ? this._size.width : 0;\n },\n setWidth: function(width) {\n this.setSize(width, this.getHeight());\n },\n getHeight: function() {\n return this._size ? this._size.height : 0;\n },\n setHeight: function(height) {\n this.setSize(this.getWidth(), height);\n },\n getLoaded: function() {\n return this._loaded;\n },\n isEmpty: function() {\n var size = this._size;\n return !size || size.width === 0 && size.height === 0;\n },\n getResolution: function() {\n var matrix = this._matrix, orig = new Point(0, 0).transform(matrix), u = new Point(1, 0).transform(matrix).subtract(orig), v = new Point(0, 1).transform(matrix).subtract(orig);\n return new Size(72 / u.getLength(), 72 / v.getLength());\n },\n getPpi: \"#getResolution\",\n getImage: function() {\n return this._image;\n },\n setImage: function(image) {\n var that = this;\n function emit(event) {\n var view = that.getView(), type = event && event.type || \"load\";\n if (view && that.responds(type)) {\n paper = view._scope;\n that.emit(type, new Event(event));\n }\n }\n this._setImage(image);\n if (this._loaded) setTimeout(emit, 0);\n else if (image) DomEvent.add(image, {\n load: function(event) {\n that._setImage(image);\n emit(event);\n },\n error: emit\n });\n },\n _setImage: function(image) {\n if (this._canvas) CanvasProvider.release(this._canvas);\n if (image && image.getContext) {\n this._image = null;\n this._canvas = image;\n this._loaded = true;\n } else {\n this._image = image;\n this._canvas = null;\n this._loaded = !!(image && image.src && image.complete);\n }\n this._size = new Size(image ? image.naturalWidth || image.width : 0, image ? image.naturalHeight || image.height : 0);\n this._context = null;\n this._changed(1033);\n },\n getCanvas: function() {\n if (!this._canvas) {\n var ctx = CanvasProvider.getContext(this._size);\n try {\n if (this._image) ctx.drawImage(this._image, 0, 0);\n this._canvas = ctx.canvas;\n } catch (e) {\n CanvasProvider.release(ctx);\n }\n }\n return this._canvas;\n },\n setCanvas: \"#setImage\",\n getContext: function(_change) {\n if (!this._context) this._context = this.getCanvas().getContext(\"2d\");\n if (_change) {\n this._image = null;\n this._changed(1025);\n }\n return this._context;\n },\n setContext: function(context) {\n this._context = context;\n },\n getSource: function() {\n var image = this._image;\n return image && image.src || this.toDataURL();\n },\n setSource: function(src) {\n var image = new self1.Image(), crossOrigin = this._crossOrigin;\n if (crossOrigin) image.crossOrigin = crossOrigin;\n if (src) image.src = src;\n this.setImage(image);\n },\n getCrossOrigin: function() {\n var image = this._image;\n return image && image.crossOrigin || this._crossOrigin || \"\";\n },\n setCrossOrigin: function(crossOrigin) {\n this._crossOrigin = crossOrigin;\n var image = this._image;\n if (image) image.crossOrigin = crossOrigin;\n },\n getSmoothing: function() {\n return this._smoothing;\n },\n setSmoothing: function(smoothing) {\n this._smoothing = typeof smoothing === \"string\" ? smoothing : smoothing ? \"low\" : \"off\";\n this._changed(257);\n },\n getElement: function() {\n return this._canvas || this._loaded && this._image;\n }\n }, {\n beans: false,\n getSubCanvas: function() {\n var rect = Rectangle.read(arguments), ctx = CanvasProvider.getContext(rect.getSize());\n ctx.drawImage(this.getCanvas(), rect.x, rect.y, rect.width, rect.height, 0, 0, rect.width, rect.height);\n return ctx.canvas;\n },\n getSubRaster: function() {\n var rect = Rectangle.read(arguments), raster = new Raster(Item.NO_INSERT);\n raster._setImage(this.getSubCanvas(rect));\n raster.translate(rect.getCenter().subtract(this.getSize().divide(2)));\n raster._matrix.prepend(this._matrix);\n raster.insertAbove(this);\n return raster;\n },\n toDataURL: function() {\n var image = this._image, src = image && image.src;\n if (/^data:/.test(src)) return src;\n var canvas = this.getCanvas();\n return canvas ? canvas.toDataURL.apply(canvas, arguments) : null;\n },\n drawImage: function(image) {\n var point = Point.read(arguments, 1);\n this.getContext(true).drawImage(image, point.x, point.y);\n },\n getAverageColor: function(object) {\n var bounds, path;\n if (!object) bounds = this.getBounds();\n else if (object instanceof PathItem) {\n path = object;\n bounds = object.getBounds();\n } else if (typeof object === \"object\") {\n if (\"width\" in object) bounds = new Rectangle(object);\n else if (\"x\" in object) bounds = new Rectangle(object.x - 0.5, object.y - 0.5, 1, 1);\n }\n if (!bounds) return null;\n var sampleSize = 32, width = Math.min(bounds.width, sampleSize), height = Math.min(bounds.height, sampleSize);\n var ctx = Raster._sampleContext;\n if (!ctx) ctx = Raster._sampleContext = CanvasProvider.getContext(new Size(sampleSize));\n else ctx.clearRect(0, 0, sampleSize + 1, sampleSize + 1);\n ctx.save();\n var matrix = new Matrix().scale(width / bounds.width, height / bounds.height).translate(-bounds.x, -bounds.y);\n matrix.applyToContext(ctx);\n if (path) path.draw(ctx, new Base({\n clip: true,\n matrices: [\n matrix\n ]\n }));\n this._matrix.applyToContext(ctx);\n var element = this.getElement(), size = this._size;\n if (element) ctx.drawImage(element, -size.width / 2, -size.height / 2);\n ctx.restore();\n var pixels = ctx.getImageData(0.5, 0.5, Math.ceil(width), Math.ceil(height)).data, channels = [\n 0,\n 0,\n 0\n ], total = 0;\n for(var i = 0, l = pixels.length; i < l; i += 4){\n var alpha = pixels[i + 3];\n total += alpha;\n alpha /= 255;\n channels[0] += pixels[i] * alpha;\n channels[1] += pixels[i + 1] * alpha;\n channels[2] += pixels[i + 2] * alpha;\n }\n for(var i = 0; i < 3; i++)channels[i] /= total;\n return total ? Color.read(channels) : null;\n },\n getPixel: function() {\n var point = Point.read(arguments);\n var data = this.getContext().getImageData(point.x, point.y, 1, 1).data;\n return new Color(\"rgb\", [\n data[0] / 255,\n data[1] / 255,\n data[2] / 255\n ], data[3] / 255);\n },\n setPixel: function() {\n var args = arguments, point = Point.read(args), color = Color.read(args), components = color._convert(\"rgb\"), alpha = color._alpha, ctx = this.getContext(true), imageData = ctx.createImageData(1, 1), data = imageData.data;\n data[0] = components[0] * 255;\n data[1] = components[1] * 255;\n data[2] = components[2] * 255;\n data[3] = alpha != null ? alpha * 255 : 255;\n ctx.putImageData(imageData, point.x, point.y);\n },\n clear: function() {\n var size = this._size;\n this.getContext(true).clearRect(0, 0, size.width + 1, size.height + 1);\n },\n createImageData: function() {\n var size = Size.read(arguments);\n return this.getContext().createImageData(size.width, size.height);\n },\n getImageData: function() {\n var rect = Rectangle.read(arguments);\n if (rect.isEmpty()) rect = new Rectangle(this._size);\n return this.getContext().getImageData(rect.x, rect.y, rect.width, rect.height);\n },\n putImageData: function(data) {\n var point = Point.read(arguments, 1);\n this.getContext(true).putImageData(data, point.x, point.y);\n },\n setImageData: function(data) {\n this.setSize(data);\n this.getContext(true).putImageData(data, 0, 0);\n },\n _getBounds: function(matrix, options) {\n var rect = new Rectangle(this._size).setCenter(0, 0);\n return matrix ? matrix._transformBounds(rect) : rect;\n },\n _hitTestSelf: function(point) {\n if (this._contains(point)) {\n var that = this;\n return new HitResult(\"pixel\", that, {\n offset: point.add(that._size.divide(2)).round(),\n color: {\n get: function() {\n return that.getPixel(this.offset);\n }\n }\n });\n }\n },\n _draw: function(ctx, param, viewMatrix) {\n var element = this.getElement();\n if (element && element.width > 0 && element.height > 0) {\n ctx.globalAlpha = Numerical.clamp(this._opacity, 0, 1);\n this._setStyles(ctx, param, viewMatrix);\n var smoothing = this._smoothing, disabled = smoothing === \"off\";\n DomElement.setPrefixed(ctx, disabled ? \"imageSmoothingEnabled\" : \"imageSmoothingQuality\", disabled ? false : smoothing);\n ctx.drawImage(element, -this._size.width / 2, -this._size.height / 2);\n }\n },\n _canComposite: function() {\n return true;\n }\n });\n var SymbolItem = Item.extend({\n _class: \"SymbolItem\",\n _applyMatrix: false,\n _canApplyMatrix: false,\n _boundsOptions: {\n stroke: true\n },\n _serializeFields: {\n symbol: null\n },\n initialize: function SymbolItem(arg0, arg1) {\n if (!this._initialize(arg0, arg1 !== undefined && Point.read(arguments, 1))) this.setDefinition(arg0 instanceof SymbolDefinition ? arg0 : new SymbolDefinition(arg0));\n },\n _equals: function(item) {\n return this._definition === item._definition;\n },\n copyContent: function(source) {\n this.setDefinition(source._definition);\n },\n getDefinition: function() {\n return this._definition;\n },\n setDefinition: function(definition) {\n this._definition = definition;\n this._changed(9);\n },\n getSymbol: \"#getDefinition\",\n setSymbol: \"#setDefinition\",\n isEmpty: function() {\n return this._definition._item.isEmpty();\n },\n _getBounds: function(matrix, options) {\n var item = this._definition._item;\n return item._getCachedBounds(item._matrix.prepended(matrix), options);\n },\n _hitTestSelf: function(point, options, viewMatrix) {\n var opts = options.extend({\n all: false\n });\n var res = this._definition._item._hitTest(point, opts, viewMatrix);\n if (res) res.item = this;\n return res;\n },\n _draw: function(ctx, param) {\n this._definition._item.draw(ctx, param);\n }\n });\n var SymbolDefinition = Base.extend({\n _class: \"SymbolDefinition\",\n initialize: function SymbolDefinition(item, dontCenter) {\n this._id = UID.get();\n this.project = paper.project;\n if (item) this.setItem(item, dontCenter);\n },\n _serialize: function(options, dictionary) {\n return dictionary.add(this, function() {\n return Base.serialize([\n this._class,\n this._item\n ], options, false, dictionary);\n });\n },\n _changed: function(flags) {\n if (flags & 8) Item._clearBoundsCache(this);\n if (flags & 1) this.project._changed(flags);\n },\n getItem: function() {\n return this._item;\n },\n setItem: function(item, _dontCenter) {\n if (item._symbol) item = item.clone();\n if (this._item) this._item._symbol = null;\n this._item = item;\n item.remove();\n item.setSelected(false);\n if (!_dontCenter) item.setPosition(new Point());\n item._symbol = this;\n this._changed(9);\n },\n getDefinition: \"#getItem\",\n setDefinition: \"#setItem\",\n place: function(position) {\n return new SymbolItem(this, position);\n },\n clone: function() {\n return new SymbolDefinition(this._item.clone(false));\n },\n equals: function(symbol) {\n return symbol === this || symbol && this._item.equals(symbol._item) || false;\n }\n });\n var HitResult = Base.extend({\n _class: \"HitResult\",\n initialize: function HitResult(type, item, values) {\n this.type = type;\n this.item = item;\n if (values) this.inject(values);\n },\n statics: {\n getOptions: function(args) {\n var options = args && Base.read(args);\n return new Base({\n type: null,\n tolerance: paper.settings.hitTolerance,\n fill: !options,\n stroke: !options,\n segments: !options,\n handles: false,\n ends: false,\n position: false,\n center: false,\n bounds: false,\n guides: false,\n selected: false\n }, options);\n }\n }\n });\n var Segment = Base.extend({\n _class: \"Segment\",\n beans: true,\n _selection: 0,\n initialize: function Segment(arg0, arg1, arg2, arg3, arg4, arg5) {\n var count = arguments.length, point, handleIn, handleOut, selection;\n if (count > 0) {\n if (arg0 == null || typeof arg0 === \"object\") {\n if (count === 1 && arg0 && \"point\" in arg0) {\n point = arg0.point;\n handleIn = arg0.handleIn;\n handleOut = arg0.handleOut;\n selection = arg0.selection;\n } else {\n point = arg0;\n handleIn = arg1;\n handleOut = arg2;\n selection = arg3;\n }\n } else {\n point = [\n arg0,\n arg1\n ];\n handleIn = arg2 !== undefined ? [\n arg2,\n arg3\n ] : null;\n handleOut = arg4 !== undefined ? [\n arg4,\n arg5\n ] : null;\n }\n }\n new SegmentPoint(point, this, \"_point\");\n new SegmentPoint(handleIn, this, \"_handleIn\");\n new SegmentPoint(handleOut, this, \"_handleOut\");\n if (selection) this.setSelection(selection);\n },\n _serialize: function(options, dictionary) {\n var point = this._point, selection = this._selection, obj = selection || this.hasHandles() ? [\n point,\n this._handleIn,\n this._handleOut\n ] : point;\n if (selection) obj.push(selection);\n return Base.serialize(obj, options, true, dictionary);\n },\n _changed: function(point) {\n var path = this._path;\n if (!path) return;\n var curves = path._curves, index = this._index, curve;\n if (curves) {\n if ((!point || point === this._point || point === this._handleIn) && (curve = index > 0 ? curves[index - 1] : path._closed ? curves[curves.length - 1] : null)) curve._changed();\n if ((!point || point === this._point || point === this._handleOut) && (curve = curves[index])) curve._changed();\n }\n path._changed(41);\n },\n getPoint: function() {\n return this._point;\n },\n setPoint: function() {\n this._point.set(Point.read(arguments));\n },\n getHandleIn: function() {\n return this._handleIn;\n },\n setHandleIn: function() {\n this._handleIn.set(Point.read(arguments));\n },\n getHandleOut: function() {\n return this._handleOut;\n },\n setHandleOut: function() {\n this._handleOut.set(Point.read(arguments));\n },\n hasHandles: function() {\n return !this._handleIn.isZero() || !this._handleOut.isZero();\n },\n isSmooth: function() {\n var handleIn = this._handleIn, handleOut = this._handleOut;\n return !handleIn.isZero() && !handleOut.isZero() && handleIn.isCollinear(handleOut);\n },\n clearHandles: function() {\n this._handleIn._set(0, 0);\n this._handleOut._set(0, 0);\n },\n getSelection: function() {\n return this._selection;\n },\n setSelection: function(selection) {\n var oldSelection = this._selection, path = this._path;\n this._selection = selection = selection || 0;\n if (path && selection !== oldSelection) {\n path._updateSelection(this, oldSelection, selection);\n path._changed(257);\n }\n },\n _changeSelection: function(flag, selected) {\n var selection = this._selection;\n this.setSelection(selected ? selection | flag : selection & ~flag);\n },\n isSelected: function() {\n return !!(this._selection & 7);\n },\n setSelected: function(selected) {\n this._changeSelection(7, selected);\n },\n getIndex: function() {\n return this._index !== undefined ? this._index : null;\n },\n getPath: function() {\n return this._path || null;\n },\n getCurve: function() {\n var path = this._path, index = this._index;\n if (path) {\n if (index > 0 && !path._closed && index === path._segments.length - 1) index--;\n return path.getCurves()[index] || null;\n }\n return null;\n },\n getLocation: function() {\n var curve = this.getCurve();\n return curve ? new CurveLocation(curve, this === curve._segment1 ? 0 : 1) : null;\n },\n getNext: function() {\n var segments = this._path && this._path._segments;\n return segments && (segments[this._index + 1] || this._path._closed && segments[0]) || null;\n },\n smooth: function(options, _first, _last) {\n var opts = options || {}, type = opts.type, factor = opts.factor, prev = this.getPrevious(), next = this.getNext(), p0 = (prev || this)._point, p1 = this._point, p2 = (next || this)._point, d1 = p0.getDistance(p1), d2 = p1.getDistance(p2);\n if (!type || type === \"catmull-rom\") {\n var a = factor === undefined ? 0.5 : factor, d1_a = Math.pow(d1, a), d1_2a = d1_a * d1_a, d2_a = Math.pow(d2, a), d2_2a = d2_a * d2_a;\n if (!_first && prev) {\n var A = 2 * d2_2a + 3 * d2_a * d1_a + d1_2a, N = 3 * d2_a * (d2_a + d1_a);\n this.setHandleIn(N !== 0 ? new Point((d2_2a * p0._x + A * p1._x - d1_2a * p2._x) / N - p1._x, (d2_2a * p0._y + A * p1._y - d1_2a * p2._y) / N - p1._y) : new Point());\n }\n if (!_last && next) {\n var A = 2 * d1_2a + 3 * d1_a * d2_a + d2_2a, N = 3 * d1_a * (d1_a + d2_a);\n this.setHandleOut(N !== 0 ? new Point((d1_2a * p2._x + A * p1._x - d2_2a * p0._x) / N - p1._x, (d1_2a * p2._y + A * p1._y - d2_2a * p0._y) / N - p1._y) : new Point());\n }\n } else if (type === \"geometric\") {\n if (prev && next) {\n var vector = p0.subtract(p2), t = factor === undefined ? 0.4 : factor, k = t * d1 / (d1 + d2);\n if (!_first) this.setHandleIn(vector.multiply(k));\n if (!_last) this.setHandleOut(vector.multiply(k - t));\n }\n } else throw new Error(\"Smoothing method '\" + type + \"' not supported.\");\n },\n getPrevious: function() {\n var segments = this._path && this._path._segments;\n return segments && (segments[this._index - 1] || this._path._closed && segments[segments.length - 1]) || null;\n },\n isFirst: function() {\n return !this._index;\n },\n isLast: function() {\n var path = this._path;\n return path && this._index === path._segments.length - 1 || false;\n },\n reverse: function() {\n var handleIn = this._handleIn, handleOut = this._handleOut, tmp = handleIn.clone();\n handleIn.set(handleOut);\n handleOut.set(tmp);\n },\n reversed: function() {\n return new Segment(this._point, this._handleOut, this._handleIn);\n },\n remove: function() {\n return this._path ? !!this._path.removeSegment(this._index) : false;\n },\n clone: function() {\n return new Segment(this._point, this._handleIn, this._handleOut);\n },\n equals: function(segment) {\n return segment === this || segment && this._class === segment._class && this._point.equals(segment._point) && this._handleIn.equals(segment._handleIn) && this._handleOut.equals(segment._handleOut) || false;\n },\n toString: function() {\n var parts = [\n \"point: \" + this._point\n ];\n if (!this._handleIn.isZero()) parts.push(\"handleIn: \" + this._handleIn);\n if (!this._handleOut.isZero()) parts.push(\"handleOut: \" + this._handleOut);\n return \"{ \" + parts.join(\", \") + \" }\";\n },\n transform: function(matrix) {\n this._transformCoordinates(matrix, new Array(6), true);\n this._changed();\n },\n interpolate: function(from, to, factor) {\n var u = 1 - factor, v = factor, point1 = from._point, point2 = to._point, handleIn1 = from._handleIn, handleIn2 = to._handleIn, handleOut2 = to._handleOut, handleOut1 = from._handleOut;\n this._point._set(u * point1._x + v * point2._x, u * point1._y + v * point2._y, true);\n this._handleIn._set(u * handleIn1._x + v * handleIn2._x, u * handleIn1._y + v * handleIn2._y, true);\n this._handleOut._set(u * handleOut1._x + v * handleOut2._x, u * handleOut1._y + v * handleOut2._y, true);\n this._changed();\n },\n _transformCoordinates: function(matrix, coords, change) {\n var point = this._point, handleIn = !change || !this._handleIn.isZero() ? this._handleIn : null, handleOut = !change || !this._handleOut.isZero() ? this._handleOut : null, x = point._x, y = point._y, i = 2;\n coords[0] = x;\n coords[1] = y;\n if (handleIn) {\n coords[i++] = handleIn._x + x;\n coords[i++] = handleIn._y + y;\n }\n if (handleOut) {\n coords[i++] = handleOut._x + x;\n coords[i++] = handleOut._y + y;\n }\n if (matrix) {\n matrix._transformCoordinates(coords, coords, i / 2);\n x = coords[0];\n y = coords[1];\n if (change) {\n point._x = x;\n point._y = y;\n i = 2;\n if (handleIn) {\n handleIn._x = coords[i++] - x;\n handleIn._y = coords[i++] - y;\n }\n if (handleOut) {\n handleOut._x = coords[i++] - x;\n handleOut._y = coords[i++] - y;\n }\n } else {\n if (!handleIn) {\n coords[i++] = x;\n coords[i++] = y;\n }\n if (!handleOut) {\n coords[i++] = x;\n coords[i++] = y;\n }\n }\n }\n return coords;\n }\n });\n var SegmentPoint = Point.extend({\n initialize: function SegmentPoint(point, owner, key) {\n var x, y, selected;\n if (!point) x = y = 0;\n else if ((x = point[0]) !== undefined) y = point[1];\n else {\n var pt = point;\n if ((x = pt.x) === undefined) {\n pt = Point.read(arguments);\n x = pt.x;\n }\n y = pt.y;\n selected = pt.selected;\n }\n this._x = x;\n this._y = y;\n this._owner = owner;\n owner[key] = this;\n if (selected) this.setSelected(true);\n },\n _set: function(x, y) {\n this._x = x;\n this._y = y;\n this._owner._changed(this);\n return this;\n },\n getX: function() {\n return this._x;\n },\n setX: function(x) {\n this._x = x;\n this._owner._changed(this);\n },\n getY: function() {\n return this._y;\n },\n setY: function(y) {\n this._y = y;\n this._owner._changed(this);\n },\n isZero: function() {\n var isZero = Numerical.isZero;\n return isZero(this._x) && isZero(this._y);\n },\n isSelected: function() {\n return !!(this._owner._selection & this._getSelection());\n },\n setSelected: function(selected) {\n this._owner._changeSelection(this._getSelection(), selected);\n },\n _getSelection: function() {\n var owner = this._owner;\n return this === owner._point ? 1 : this === owner._handleIn ? 2 : this === owner._handleOut ? 4 : 0;\n }\n });\n var Curve = Base.extend({\n _class: \"Curve\",\n beans: true,\n initialize: function Curve(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {\n var count = arguments.length, seg1, seg2, point1, point2, handle1, handle2;\n if (count === 3) {\n this._path = arg0;\n seg1 = arg1;\n seg2 = arg2;\n } else if (!count) {\n seg1 = new Segment();\n seg2 = new Segment();\n } else if (count === 1) {\n if (\"segment1\" in arg0) {\n seg1 = new Segment(arg0.segment1);\n seg2 = new Segment(arg0.segment2);\n } else if (\"point1\" in arg0) {\n point1 = arg0.point1;\n handle1 = arg0.handle1;\n handle2 = arg0.handle2;\n point2 = arg0.point2;\n } else if (Array.isArray(arg0)) {\n point1 = [\n arg0[0],\n arg0[1]\n ];\n point2 = [\n arg0[6],\n arg0[7]\n ];\n handle1 = [\n arg0[2] - arg0[0],\n arg0[3] - arg0[1]\n ];\n handle2 = [\n arg0[4] - arg0[6],\n arg0[5] - arg0[7]\n ];\n }\n } else if (count === 2) {\n seg1 = new Segment(arg0);\n seg2 = new Segment(arg1);\n } else if (count === 4) {\n point1 = arg0;\n handle1 = arg1;\n handle2 = arg2;\n point2 = arg3;\n } else if (count === 8) {\n point1 = [\n arg0,\n arg1\n ];\n point2 = [\n arg6,\n arg7\n ];\n handle1 = [\n arg2 - arg0,\n arg3 - arg1\n ];\n handle2 = [\n arg4 - arg6,\n arg5 - arg7\n ];\n }\n this._segment1 = seg1 || new Segment(point1, null, handle1);\n this._segment2 = seg2 || new Segment(point2, handle2, null);\n },\n _serialize: function(options, dictionary) {\n return Base.serialize(this.hasHandles() ? [\n this.getPoint1(),\n this.getHandle1(),\n this.getHandle2(),\n this.getPoint2()\n ] : [\n this.getPoint1(),\n this.getPoint2()\n ], options, true, dictionary);\n },\n _changed: function() {\n this._length = this._bounds = undefined;\n },\n clone: function() {\n return new Curve(this._segment1, this._segment2);\n },\n toString: function() {\n var parts = [\n \"point1: \" + this._segment1._point\n ];\n if (!this._segment1._handleOut.isZero()) parts.push(\"handle1: \" + this._segment1._handleOut);\n if (!this._segment2._handleIn.isZero()) parts.push(\"handle2: \" + this._segment2._handleIn);\n parts.push(\"point2: \" + this._segment2._point);\n return \"{ \" + parts.join(\", \") + \" }\";\n },\n classify: function() {\n return Curve.classify(this.getValues());\n },\n remove: function() {\n var removed = false;\n if (this._path) {\n var segment2 = this._segment2, handleOut = segment2._handleOut;\n removed = segment2.remove();\n if (removed) this._segment1._handleOut.set(handleOut);\n }\n return removed;\n },\n getPoint1: function() {\n return this._segment1._point;\n },\n setPoint1: function() {\n this._segment1._point.set(Point.read(arguments));\n },\n getPoint2: function() {\n return this._segment2._point;\n },\n setPoint2: function() {\n this._segment2._point.set(Point.read(arguments));\n },\n getHandle1: function() {\n return this._segment1._handleOut;\n },\n setHandle1: function() {\n this._segment1._handleOut.set(Point.read(arguments));\n },\n getHandle2: function() {\n return this._segment2._handleIn;\n },\n setHandle2: function() {\n this._segment2._handleIn.set(Point.read(arguments));\n },\n getSegment1: function() {\n return this._segment1;\n },\n getSegment2: function() {\n return this._segment2;\n },\n getPath: function() {\n return this._path;\n },\n getIndex: function() {\n return this._segment1._index;\n },\n getNext: function() {\n var curves = this._path && this._path._curves;\n return curves && (curves[this._segment1._index + 1] || this._path._closed && curves[0]) || null;\n },\n getPrevious: function() {\n var curves = this._path && this._path._curves;\n return curves && (curves[this._segment1._index - 1] || this._path._closed && curves[curves.length - 1]) || null;\n },\n isFirst: function() {\n return !this._segment1._index;\n },\n isLast: function() {\n var path = this._path;\n return path && this._segment1._index === path._curves.length - 1 || false;\n },\n isSelected: function() {\n return this.getPoint1().isSelected() && this.getHandle1().isSelected() && this.getHandle2().isSelected() && this.getPoint2().isSelected();\n },\n setSelected: function(selected) {\n this.getPoint1().setSelected(selected);\n this.getHandle1().setSelected(selected);\n this.getHandle2().setSelected(selected);\n this.getPoint2().setSelected(selected);\n },\n getValues: function(matrix) {\n return Curve.getValues(this._segment1, this._segment2, matrix);\n },\n getPoints: function() {\n var coords = this.getValues(), points = [];\n for(var i = 0; i < 8; i += 2)points.push(new Point(coords[i], coords[i + 1]));\n return points;\n }\n }, {\n getLength: function() {\n if (this._length == null) this._length = Curve.getLength(this.getValues(), 0, 1);\n return this._length;\n },\n getArea: function() {\n return Curve.getArea(this.getValues());\n },\n getLine: function() {\n return new Line(this._segment1._point, this._segment2._point);\n },\n getPart: function(from, to) {\n return new Curve(Curve.getPart(this.getValues(), from, to));\n },\n getPartLength: function(from, to) {\n return Curve.getLength(this.getValues(), from, to);\n },\n divideAt: function(location) {\n return this.divideAtTime(location && location.curve === this ? location.time : this.getTimeAt(location));\n },\n divideAtTime: function(time, _setHandles) {\n var tMin = 1e-8, tMax = 1 - tMin, res = null;\n if (time >= tMin && time <= tMax) {\n var parts = Curve.subdivide(this.getValues(), time), left = parts[0], right = parts[1], setHandles = _setHandles || this.hasHandles(), seg1 = this._segment1, seg2 = this._segment2, path = this._path;\n if (setHandles) {\n seg1._handleOut._set(left[2] - left[0], left[3] - left[1]);\n seg2._handleIn._set(right[4] - right[6], right[5] - right[7]);\n }\n var x = left[6], y = left[7], segment = new Segment(new Point(x, y), setHandles && new Point(left[4] - x, left[5] - y), setHandles && new Point(right[2] - x, right[3] - y));\n if (path) {\n path.insert(seg1._index + 1, segment);\n res = this.getNext();\n } else {\n this._segment2 = segment;\n this._changed();\n res = new Curve(segment, seg2);\n }\n }\n return res;\n },\n splitAt: function(location) {\n var path = this._path;\n return path ? path.splitAt(location) : null;\n },\n splitAtTime: function(time) {\n return this.splitAt(this.getLocationAtTime(time));\n },\n divide: function(offset, isTime) {\n return this.divideAtTime(offset === undefined ? 0.5 : isTime ? offset : this.getTimeAt(offset));\n },\n split: function(offset, isTime) {\n return this.splitAtTime(offset === undefined ? 0.5 : isTime ? offset : this.getTimeAt(offset));\n },\n reversed: function() {\n return new Curve(this._segment2.reversed(), this._segment1.reversed());\n },\n clearHandles: function() {\n this._segment1._handleOut._set(0, 0);\n this._segment2._handleIn._set(0, 0);\n },\n statics: {\n getValues: function(segment1, segment2, matrix, straight) {\n var p1 = segment1._point, h1 = segment1._handleOut, h2 = segment2._handleIn, p2 = segment2._point, x1 = p1.x, y1 = p1.y, x2 = p2.x, y2 = p2.y, values = straight ? [\n x1,\n y1,\n x1,\n y1,\n x2,\n y2,\n x2,\n y2\n ] : [\n x1,\n y1,\n x1 + h1._x,\n y1 + h1._y,\n x2 + h2._x,\n y2 + h2._y,\n x2,\n y2\n ];\n if (matrix) matrix._transformCoordinates(values, values, 4);\n return values;\n },\n subdivide: function(v, t) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7];\n if (t === undefined) t = 0.5;\n var u = 1 - t, x4 = u * x0 + t * x1, y4 = u * y0 + t * y1, x5 = u * x1 + t * x2, y5 = u * y1 + t * y2, x6 = u * x2 + t * x3, y6 = u * y2 + t * y3, x7 = u * x4 + t * x5, y7 = u * y4 + t * y5, x8 = u * x5 + t * x6, y8 = u * y5 + t * y6, x9 = u * x7 + t * x8, y9 = u * y7 + t * y8;\n return [\n [\n x0,\n y0,\n x4,\n y4,\n x7,\n y7,\n x9,\n y9\n ],\n [\n x9,\n y9,\n x8,\n y8,\n x6,\n y6,\n x3,\n y3\n ]\n ];\n },\n getMonoCurves: function(v, dir) {\n var curves = [], io = dir ? 0 : 1, o0 = v[io + 0], o1 = v[io + 2], o2 = v[io + 4], o3 = v[io + 6];\n if (o0 >= o1 === o1 >= o2 && o1 >= o2 === o2 >= o3 || Curve.isStraight(v)) curves.push(v);\n else {\n var a = 3 * (o1 - o2) - o0 + o3, b = 2 * (o0 + o2) - 4 * o1, c = o1 - o0, tMin = 1e-8, tMax = 1 - tMin, roots = [], n = Numerical.solveQuadratic(a, b, c, roots, tMin, tMax);\n if (!n) curves.push(v);\n else {\n roots.sort();\n var t = roots[0], parts = Curve.subdivide(v, t);\n curves.push(parts[0]);\n if (n > 1) {\n t = (roots[1] - t) / (1 - t);\n parts = Curve.subdivide(parts[1], t);\n curves.push(parts[0]);\n }\n curves.push(parts[1]);\n }\n }\n return curves;\n },\n solveCubic: function(v, coord, val, roots, min, max) {\n var v0 = v[coord], v1 = v[coord + 2], v2 = v[coord + 4], v3 = v[coord + 6], res = 0;\n if (!(v0 < val && v3 < val && v1 < val && v2 < val || v0 > val && v3 > val && v1 > val && v2 > val)) {\n var c = 3 * (v1 - v0), b = 3 * (v2 - v1) - c, a = v3 - v0 - c - b;\n res = Numerical.solveCubic(a, b, c, v0 - val, roots, min, max);\n }\n return res;\n },\n getTimeOf: function(v, point) {\n var p0 = new Point(v[0], v[1]), p3 = new Point(v[6], v[7]), epsilon = 1e-12, geomEpsilon = 1e-7, t = point.isClose(p0, epsilon) ? 0 : point.isClose(p3, epsilon) ? 1 : null;\n if (t === null) {\n var coords = [\n point.x,\n point.y\n ], roots = [];\n for(var c = 0; c < 2; c++){\n var count = Curve.solveCubic(v, c, coords[c], roots, 0, 1);\n for(var i = 0; i < count; i++){\n var u = roots[i];\n if (point.isClose(Curve.getPoint(v, u), geomEpsilon)) return u;\n }\n }\n }\n return point.isClose(p0, geomEpsilon) ? 0 : point.isClose(p3, geomEpsilon) ? 1 : null;\n },\n getNearestTime: function(v, point) {\n if (Curve.isStraight(v)) {\n var x0 = v[0], y0 = v[1], x3 = v[6], y3 = v[7], vx = x3 - x0, vy = y3 - y0, det = vx * vx + vy * vy;\n if (det === 0) return 0;\n var u = ((point.x - x0) * vx + (point.y - y0) * vy) / det;\n return u < 1e-12 ? 0 : u > 0.999999999999 ? 1 : Curve.getTimeOf(v, new Point(x0 + u * vx, y0 + u * vy));\n }\n var count = 100, minDist = Infinity, minT = 0;\n function refine(t) {\n if (t >= 0 && t <= 1) {\n var dist = point.getDistance(Curve.getPoint(v, t), true);\n if (dist < minDist) {\n minDist = dist;\n minT = t;\n return true;\n }\n }\n }\n for(var i = 0; i <= count; i++)refine(i / count);\n var step = 1 / (count * 2);\n while(step > 1e-8)if (!refine(minT - step) && !refine(minT + step)) step /= 2;\n return minT;\n },\n getPart: function(v, from, to) {\n var flip = from > to;\n if (flip) {\n var tmp = from;\n from = to;\n to = tmp;\n }\n if (from > 0) v = Curve.subdivide(v, from)[1];\n if (to < 1) v = Curve.subdivide(v, (to - from) / (1 - from))[0];\n return flip ? [\n v[6],\n v[7],\n v[4],\n v[5],\n v[2],\n v[3],\n v[0],\n v[1]\n ] : v;\n },\n isFlatEnough: function(v, flatness) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], ux = 3 * x1 - 2 * x0 - x3, uy = 3 * y1 - 2 * y0 - y3, vx = 3 * x2 - 2 * x3 - x0, vy = 3 * y2 - 2 * y3 - y0;\n return Math.max(ux * ux, vx * vx) + Math.max(uy * uy, vy * vy) <= 16 * flatness * flatness;\n },\n getArea: function(v) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7];\n return 3 * ((y3 - y0) * (x1 + x2) - (x3 - x0) * (y1 + y2) + y1 * (x0 - x2) - x1 * (y0 - y2) + y3 * (x2 + x0 / 3) - x3 * (y2 + y0 / 3)) / 20;\n },\n getBounds: function(v) {\n var min = v.slice(0, 2), max = min.slice(), roots = [\n 0,\n 0\n ];\n for(var i = 0; i < 2; i++)Curve._addBounds(v[i], v[i + 2], v[i + 4], v[i + 6], i, 0, min, max, roots);\n return new Rectangle(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n },\n _addBounds: function(v0, v1, v2, v3, coord, padding, min, max, roots) {\n function add(value, padding) {\n var left = value - padding, right = value + padding;\n if (left < min[coord]) min[coord] = left;\n if (right > max[coord]) max[coord] = right;\n }\n padding /= 2;\n var minPad = min[coord] + padding, maxPad = max[coord] - padding;\n if (v0 < minPad || v1 < minPad || v2 < minPad || v3 < minPad || v0 > maxPad || v1 > maxPad || v2 > maxPad || v3 > maxPad) {\n if (v1 < v0 != v1 < v3 && v2 < v0 != v2 < v3) {\n add(v0, 0);\n add(v3, 0);\n } else {\n var a = 3 * (v1 - v2) - v0 + v3, b = 2 * (v0 + v2) - 4 * v1, c = v1 - v0, count = Numerical.solveQuadratic(a, b, c, roots), tMin = 1e-8, tMax = 1 - tMin;\n add(v3, 0);\n for(var i = 0; i < count; i++){\n var t = roots[i], u = 1 - t;\n if (tMin <= t && t <= tMax) add(u * u * u * v0 + 3 * u * u * t * v1 + 3 * u * t * t * v2 + t * t * t * v3, padding);\n }\n }\n }\n }\n }\n }, Base.each([\n \"getBounds\",\n \"getStrokeBounds\",\n \"getHandleBounds\"\n ], function(name) {\n this[name] = function() {\n if (!this._bounds) this._bounds = {};\n var bounds = this._bounds[name];\n if (!bounds) bounds = this._bounds[name] = Path[name]([\n this._segment1,\n this._segment2\n ], false, this._path);\n return bounds.clone();\n };\n }, {}), Base.each({\n isStraight: function(p1, h1, h2, p2) {\n if (h1.isZero() && h2.isZero()) return true;\n else {\n var v = p2.subtract(p1);\n if (v.isZero()) return false;\n else if (v.isCollinear(h1) && v.isCollinear(h2)) {\n var l = new Line(p1, p2), epsilon = 1e-7;\n if (l.getDistance(p1.add(h1)) < epsilon && l.getDistance(p2.add(h2)) < epsilon) {\n var div = v.dot(v), s1 = v.dot(h1) / div, s2 = v.dot(h2) / div;\n return s1 >= 0 && s1 <= 1 && s2 <= 0 && s2 >= -1;\n }\n }\n }\n return false;\n },\n isLinear: function(p1, h1, h2, p2) {\n var third = p2.subtract(p1).divide(3);\n return h1.equals(third) && h2.negate().equals(third);\n }\n }, function(test, name) {\n this[name] = function(epsilon) {\n var seg1 = this._segment1, seg2 = this._segment2;\n return test(seg1._point, seg1._handleOut, seg2._handleIn, seg2._point, epsilon);\n };\n this.statics[name] = function(v, epsilon) {\n var x0 = v[0], y0 = v[1], x3 = v[6], y3 = v[7];\n return test(new Point(x0, y0), new Point(v[2] - x0, v[3] - y0), new Point(v[4] - x3, v[5] - y3), new Point(x3, y3), epsilon);\n };\n }, {\n statics: {},\n hasHandles: function() {\n return !this._segment1._handleOut.isZero() || !this._segment2._handleIn.isZero();\n },\n hasLength: function(epsilon) {\n return (!this.getPoint1().equals(this.getPoint2()) || this.hasHandles()) && this.getLength() > (epsilon || 0);\n },\n isCollinear: function(curve) {\n return curve && this.isStraight() && curve.isStraight() && this.getLine().isCollinear(curve.getLine());\n },\n isHorizontal: function() {\n return this.isStraight() && Math.abs(this.getTangentAtTime(0.5).y) < 1e-8;\n },\n isVertical: function() {\n return this.isStraight() && Math.abs(this.getTangentAtTime(0.5).x) < 1e-8;\n }\n }), {\n beans: false,\n getLocationAt: function(offset, _isTime) {\n return this.getLocationAtTime(_isTime ? offset : this.getTimeAt(offset));\n },\n getLocationAtTime: function(t) {\n return t != null && t >= 0 && t <= 1 ? new CurveLocation(this, t) : null;\n },\n getTimeAt: function(offset, start) {\n return Curve.getTimeAt(this.getValues(), offset, start);\n },\n getParameterAt: \"#getTimeAt\",\n getTimesWithTangent: function() {\n var tangent = Point.read(arguments);\n return tangent.isZero() ? [] : Curve.getTimesWithTangent(this.getValues(), tangent);\n },\n getOffsetAtTime: function(t) {\n return this.getPartLength(0, t);\n },\n getLocationOf: function() {\n return this.getLocationAtTime(this.getTimeOf(Point.read(arguments)));\n },\n getOffsetOf: function() {\n var loc = this.getLocationOf.apply(this, arguments);\n return loc ? loc.getOffset() : null;\n },\n getTimeOf: function() {\n return Curve.getTimeOf(this.getValues(), Point.read(arguments));\n },\n getParameterOf: \"#getTimeOf\",\n getNearestLocation: function() {\n var point = Point.read(arguments), values = this.getValues(), t = Curve.getNearestTime(values, point), pt = Curve.getPoint(values, t);\n return new CurveLocation(this, t, pt, null, point.getDistance(pt));\n },\n getNearestPoint: function() {\n var loc = this.getNearestLocation.apply(this, arguments);\n return loc ? loc.getPoint() : loc;\n }\n }, new function() {\n var methods = [\n \"getPoint\",\n \"getTangent\",\n \"getNormal\",\n \"getWeightedTangent\",\n \"getWeightedNormal\",\n \"getCurvature\"\n ];\n return Base.each(methods, function(name) {\n this[name + \"At\"] = function(location, _isTime) {\n var values = this.getValues();\n return Curve[name](values, _isTime ? location : Curve.getTimeAt(values, location));\n };\n this[name + \"AtTime\"] = function(time) {\n return Curve[name](this.getValues(), time);\n };\n }, {\n statics: {\n _evaluateMethods: methods\n }\n });\n }, new function() {\n function getLengthIntegrand(v) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], ax = 9 * (x1 - x2) + 3 * (x3 - x0), bx = 6 * (x0 + x2) - 12 * x1, cx = 3 * (x1 - x0), ay = 9 * (y1 - y2) + 3 * (y3 - y0), by = 6 * (y0 + y2) - 12 * y1, cy = 3 * (y1 - y0);\n return function(t) {\n var dx = (ax * t + bx) * t + cx, dy = (ay * t + by) * t + cy;\n return Math.sqrt(dx * dx + dy * dy);\n };\n }\n function getIterations(a, b) {\n return Math.max(2, Math.min(16, Math.ceil(Math.abs(b - a) * 32)));\n }\n function evaluate(v, t, type, normalized) {\n if (t == null || t < 0 || t > 1) return null;\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], isZero = Numerical.isZero;\n if (isZero(x1 - x0) && isZero(y1 - y0)) {\n x1 = x0;\n y1 = y0;\n }\n if (isZero(x2 - x3) && isZero(y2 - y3)) {\n x2 = x3;\n y2 = y3;\n }\n var cx = 3 * (x1 - x0), bx = 3 * (x2 - x1) - cx, ax = x3 - x0 - cx - bx, cy = 3 * (y1 - y0), by = 3 * (y2 - y1) - cy, ay = y3 - y0 - cy - by, x, y;\n if (type === 0) {\n x = t === 0 ? x0 : t === 1 ? x3 : ((ax * t + bx) * t + cx) * t + x0;\n y = t === 0 ? y0 : t === 1 ? y3 : ((ay * t + by) * t + cy) * t + y0;\n } else {\n var tMin = 1e-8, tMax = 1 - tMin;\n if (t < tMin) {\n x = cx;\n y = cy;\n } else if (t > tMax) {\n x = 3 * (x3 - x2);\n y = 3 * (y3 - y2);\n } else {\n x = (3 * ax * t + 2 * bx) * t + cx;\n y = (3 * ay * t + 2 * by) * t + cy;\n }\n if (normalized) {\n if (x === 0 && y === 0 && (t < tMin || t > tMax)) {\n x = x2 - x1;\n y = y2 - y1;\n }\n var len = Math.sqrt(x * x + y * y);\n if (len) {\n x /= len;\n y /= len;\n }\n }\n if (type === 3) {\n var x2 = 6 * ax * t + 2 * bx, y2 = 6 * ay * t + 2 * by, d = Math.pow(x * x + y * y, 1.5);\n x = d !== 0 ? (x * y2 - y * x2) / d : 0;\n y = 0;\n }\n }\n return type === 2 ? new Point(y, -x) : new Point(x, y);\n }\n return {\n statics: {\n classify: function(v) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], a1 = x0 * (y3 - y2) + y0 * (x2 - x3) + x3 * y2 - y3 * x2, a2 = x1 * (y0 - y3) + y1 * (x3 - x0) + x0 * y3 - y0 * x3, a3 = x2 * (y1 - y0) + y2 * (x0 - x1) + x1 * y0 - y1 * x0, d3 = 3 * a3, d2 = d3 - a2, d1 = d2 - a2 + a1, l = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3), s = l !== 0 ? 1 / l : 0, isZero = Numerical.isZero, serpentine = \"serpentine\";\n d1 *= s;\n d2 *= s;\n d3 *= s;\n function type(type, t1, t2) {\n var hasRoots = t1 !== undefined, t1Ok = hasRoots && t1 > 0 && t1 < 1, t2Ok = hasRoots && t2 > 0 && t2 < 1;\n if (hasRoots && (!(t1Ok || t2Ok) || type === \"loop\" && !(t1Ok && t2Ok))) {\n type = \"arch\";\n t1Ok = t2Ok = false;\n }\n return {\n type: type,\n roots: t1Ok || t2Ok ? t1Ok && t2Ok ? t1 < t2 ? [\n t1,\n t2\n ] : [\n t2,\n t1\n ] : [\n t1Ok ? t1 : t2\n ] : null\n };\n }\n if (isZero(d1)) return isZero(d2) ? type(isZero(d3) ? \"line\" : \"quadratic\") : type(serpentine, d3 / (3 * d2));\n var d = 3 * d2 * d2 - 4 * d1 * d3;\n if (isZero(d)) return type(\"cusp\", d2 / (2 * d1));\n var f1 = d > 0 ? Math.sqrt(d / 3) : Math.sqrt(-d), f2 = 2 * d1;\n return type(d > 0 ? serpentine : \"loop\", (d2 + f1) / f2, (d2 - f1) / f2);\n },\n getLength: function(v, a, b, ds) {\n if (a === undefined) a = 0;\n if (b === undefined) b = 1;\n if (Curve.isStraight(v)) {\n var c = v;\n if (b < 1) {\n c = Curve.subdivide(c, b)[0];\n a /= b;\n }\n if (a > 0) c = Curve.subdivide(c, a)[1];\n var dx = c[6] - c[0], dy = c[7] - c[1];\n return Math.sqrt(dx * dx + dy * dy);\n }\n return Numerical.integrate(ds || getLengthIntegrand(v), a, b, getIterations(a, b));\n },\n getTimeAt: function(v, offset, start) {\n if (start === undefined) start = offset < 0 ? 1 : 0;\n if (offset === 0) return start;\n var abs = Math.abs, epsilon = 1e-12, forward = offset > 0, a = forward ? start : 0, b = forward ? 1 : start, ds = getLengthIntegrand(v), rangeLength = Curve.getLength(v, a, b, ds), diff = abs(offset) - rangeLength;\n if (abs(diff) < epsilon) return forward ? b : a;\n else if (diff > epsilon) return null;\n var guess = offset / rangeLength, length = 0;\n function f(t) {\n length += Numerical.integrate(ds, start, t, getIterations(start, t));\n start = t;\n return length - offset;\n }\n return Numerical.findRoot(f, ds, start + guess, a, b, 32, 1e-12);\n },\n getPoint: function(v, t) {\n return evaluate(v, t, 0, false);\n },\n getTangent: function(v, t) {\n return evaluate(v, t, 1, true);\n },\n getWeightedTangent: function(v, t) {\n return evaluate(v, t, 1, false);\n },\n getNormal: function(v, t) {\n return evaluate(v, t, 2, true);\n },\n getWeightedNormal: function(v, t) {\n return evaluate(v, t, 2, false);\n },\n getCurvature: function(v, t) {\n return evaluate(v, t, 3, false).x;\n },\n getPeaks: function(v) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], ax = -x0 + 3 * x1 - 3 * x2 + x3, bx = 3 * x0 - 6 * x1 + 3 * x2, cx = -3 * x0 + 3 * x1, ay = -y0 + 3 * y1 - 3 * y2 + y3, by = 3 * y0 - 6 * y1 + 3 * y2, cy = -3 * y0 + 3 * y1, tMin = 1e-8, tMax = 1 - tMin, roots = [];\n Numerical.solveCubic(9 * (ax * ax + ay * ay), 9 * (ax * bx + by * ay), 2 * (bx * bx + by * by) + 3 * (cx * ax + cy * ay), cx * bx + by * cy, roots, tMin, tMax);\n return roots.sort();\n }\n }\n };\n }, new function() {\n function addLocation(locations, include, c1, t1, c2, t2, overlap) {\n var excludeStart = !overlap && c1.getPrevious() === c2, excludeEnd = !overlap && c1 !== c2 && c1.getNext() === c2, tMin = 1e-8, tMax = 1 - tMin;\n if (t1 !== null && t1 >= (excludeStart ? tMin : 0) && t1 <= (excludeEnd ? tMax : 1)) {\n if (t2 !== null && t2 >= (excludeEnd ? tMin : 0) && t2 <= (excludeStart ? tMax : 1)) {\n var loc1 = new CurveLocation(c1, t1, null, overlap), loc2 = new CurveLocation(c2, t2, null, overlap);\n loc1._intersection = loc2;\n loc2._intersection = loc1;\n if (!include || include(loc1)) CurveLocation.insert(locations, loc1, true);\n }\n }\n }\n function addCurveIntersections(v1, v2, c1, c2, locations, include, flip, recursion, calls, tMin, tMax, uMin, uMax) {\n if (++calls >= 4096 || ++recursion >= 40) return calls;\n var fatLineEpsilon = 1e-9, q0x = v2[0], q0y = v2[1], q3x = v2[6], q3y = v2[7], getSignedDistance = Line.getSignedDistance, d1 = getSignedDistance(q0x, q0y, q3x, q3y, v2[2], v2[3]), d2 = getSignedDistance(q0x, q0y, q3x, q3y, v2[4], v2[5]), factor = d1 * d2 > 0 ? 3 / 4 : 4 / 9, dMin = factor * Math.min(0, d1, d2), dMax = factor * Math.max(0, d1, d2), dp0 = getSignedDistance(q0x, q0y, q3x, q3y, v1[0], v1[1]), dp1 = getSignedDistance(q0x, q0y, q3x, q3y, v1[2], v1[3]), dp2 = getSignedDistance(q0x, q0y, q3x, q3y, v1[4], v1[5]), dp3 = getSignedDistance(q0x, q0y, q3x, q3y, v1[6], v1[7]), hull = getConvexHull(dp0, dp1, dp2, dp3), top = hull[0], bottom = hull[1], tMinClip, tMaxClip;\n if (d1 === 0 && d2 === 0 && dp0 === 0 && dp1 === 0 && dp2 === 0 && dp3 === 0 || (tMinClip = clipConvexHull(top, bottom, dMin, dMax)) == null || (tMaxClip = clipConvexHull(top.reverse(), bottom.reverse(), dMin, dMax)) == null) return calls;\n var tMinNew = tMin + (tMax - tMin) * tMinClip, tMaxNew = tMin + (tMax - tMin) * tMaxClip;\n if (Math.max(uMax - uMin, tMaxNew - tMinNew) < fatLineEpsilon) {\n var t = (tMinNew + tMaxNew) / 2, u = (uMin + uMax) / 2;\n addLocation(locations, include, flip ? c2 : c1, flip ? u : t, flip ? c1 : c2, flip ? t : u);\n } else {\n v1 = Curve.getPart(v1, tMinClip, tMaxClip);\n var uDiff = uMax - uMin;\n if (tMaxClip - tMinClip > 0.8) {\n if (tMaxNew - tMinNew > uDiff) {\n var parts = Curve.subdivide(v1, 0.5), t = (tMinNew + tMaxNew) / 2;\n calls = addCurveIntersections(v2, parts[0], c2, c1, locations, include, !flip, recursion, calls, uMin, uMax, tMinNew, t);\n calls = addCurveIntersections(v2, parts[1], c2, c1, locations, include, !flip, recursion, calls, uMin, uMax, t, tMaxNew);\n } else {\n var parts = Curve.subdivide(v2, 0.5), u = (uMin + uMax) / 2;\n calls = addCurveIntersections(parts[0], v1, c2, c1, locations, include, !flip, recursion, calls, uMin, u, tMinNew, tMaxNew);\n calls = addCurveIntersections(parts[1], v1, c2, c1, locations, include, !flip, recursion, calls, u, uMax, tMinNew, tMaxNew);\n }\n } else if (uDiff === 0 || uDiff >= fatLineEpsilon) calls = addCurveIntersections(v2, v1, c2, c1, locations, include, !flip, recursion, calls, uMin, uMax, tMinNew, tMaxNew);\n else calls = addCurveIntersections(v1, v2, c1, c2, locations, include, flip, recursion, calls, tMinNew, tMaxNew, uMin, uMax);\n }\n return calls;\n }\n function getConvexHull(dq0, dq1, dq2, dq3) {\n var p0 = [\n 0,\n dq0\n ], p1 = [\n 1 / 3,\n dq1\n ], p2 = [\n 2 / 3,\n dq2\n ], p3 = [\n 1,\n dq3\n ], dist1 = dq1 - (2 * dq0 + dq3) / 3, dist2 = dq2 - (dq0 + 2 * dq3) / 3, hull;\n if (dist1 * dist2 < 0) hull = [\n [\n p0,\n p1,\n p3\n ],\n [\n p0,\n p2,\n p3\n ]\n ];\n else {\n var distRatio = dist1 / dist2;\n hull = [\n distRatio >= 2 ? [\n p0,\n p1,\n p3\n ] : distRatio <= 0.5 ? [\n p0,\n p2,\n p3\n ] : [\n p0,\n p1,\n p2,\n p3\n ],\n [\n p0,\n p3\n ]\n ];\n }\n return (dist1 || dist2) < 0 ? hull.reverse() : hull;\n }\n function clipConvexHull(hullTop, hullBottom, dMin, dMax) {\n if (hullTop[0][1] < dMin) return clipConvexHullPart(hullTop, true, dMin);\n else if (hullBottom[0][1] > dMax) return clipConvexHullPart(hullBottom, false, dMax);\n else return hullTop[0][0];\n }\n function clipConvexHullPart(part, top, threshold) {\n var px = part[0][0], py = part[0][1];\n for(var i = 1, l = part.length; i < l; i++){\n var qx = part[i][0], qy = part[i][1];\n if (top ? qy >= threshold : qy <= threshold) return qy === threshold ? qx : px + (threshold - py) * (qx - px) / (qy - py);\n px = qx;\n py = qy;\n }\n return null;\n }\n function getCurveLineIntersections(v, px, py, vx, vy) {\n var isZero = Numerical.isZero;\n if (isZero(vx) && isZero(vy)) {\n var t = Curve.getTimeOf(v, new Point(px, py));\n return t === null ? [] : [\n t\n ];\n }\n var angle = Math.atan2(-vy, vx), sin = Math.sin(angle), cos = Math.cos(angle), rv = [], roots = [];\n for(var i = 0; i < 8; i += 2){\n var x = v[i] - px, y = v[i + 1] - py;\n rv.push(x * cos - y * sin, x * sin + y * cos);\n }\n Curve.solveCubic(rv, 1, 0, roots, 0, 1);\n return roots;\n }\n function addCurveLineIntersections(v1, v2, c1, c2, locations, include, flip) {\n var x1 = v2[0], y1 = v2[1], x2 = v2[6], y2 = v2[7], roots = getCurveLineIntersections(v1, x1, y1, x2 - x1, y2 - y1);\n for(var i = 0, l = roots.length; i < l; i++){\n var t1 = roots[i], p1 = Curve.getPoint(v1, t1), t2 = Curve.getTimeOf(v2, p1);\n if (t2 !== null) addLocation(locations, include, flip ? c2 : c1, flip ? t2 : t1, flip ? c1 : c2, flip ? t1 : t2);\n }\n }\n function addLineIntersection(v1, v2, c1, c2, locations, include) {\n var pt = Line.intersect(v1[0], v1[1], v1[6], v1[7], v2[0], v2[1], v2[6], v2[7]);\n if (pt) addLocation(locations, include, c1, Curve.getTimeOf(v1, pt), c2, Curve.getTimeOf(v2, pt));\n }\n function getCurveIntersections(v1, v2, c1, c2, locations, include) {\n var epsilon = 1e-12, min = Math.min, max = Math.max;\n if (max(v1[0], v1[2], v1[4], v1[6]) + epsilon > min(v2[0], v2[2], v2[4], v2[6]) && min(v1[0], v1[2], v1[4], v1[6]) - epsilon < max(v2[0], v2[2], v2[4], v2[6]) && max(v1[1], v1[3], v1[5], v1[7]) + epsilon > min(v2[1], v2[3], v2[5], v2[7]) && min(v1[1], v1[3], v1[5], v1[7]) - epsilon < max(v2[1], v2[3], v2[5], v2[7])) {\n var overlaps = getOverlaps(v1, v2);\n if (overlaps) for(var i = 0; i < 2; i++){\n var overlap = overlaps[i];\n addLocation(locations, include, c1, overlap[0], c2, overlap[1], true);\n }\n else {\n var straight1 = Curve.isStraight(v1), straight2 = Curve.isStraight(v2), straight = straight1 && straight2, flip = straight1 && !straight2, before = locations.length;\n (straight ? addLineIntersection : straight1 || straight2 ? addCurveLineIntersections : addCurveIntersections)(flip ? v2 : v1, flip ? v1 : v2, flip ? c2 : c1, flip ? c1 : c2, locations, include, flip, 0, 0, 0, 1, 0, 1);\n if (!straight || locations.length === before) for(var i = 0; i < 4; i++){\n var t1 = i >> 1, t2 = i & 1, i1 = t1 * 6, i2 = t2 * 6, p1 = new Point(v1[i1], v1[i1 + 1]), p2 = new Point(v2[i2], v2[i2 + 1]);\n if (p1.isClose(p2, epsilon)) addLocation(locations, include, c1, t1, c2, t2);\n }\n }\n }\n return locations;\n }\n function getSelfIntersection(v1, c1, locations, include) {\n var info = Curve.classify(v1);\n if (info.type === \"loop\") {\n var roots = info.roots;\n addLocation(locations, include, c1, roots[0], c1, roots[1]);\n }\n return locations;\n }\n function getIntersections(curves1, curves2, include, matrix1, matrix2, _returnFirst) {\n var epsilon = 1e-7, self1 = !curves2;\n if (self1) curves2 = curves1;\n var length1 = curves1.length, length2 = curves2.length, values1 = new Array(length1), values2 = self1 ? values1 : new Array(length2), locations = [];\n for(var i = 0; i < length1; i++)values1[i] = curves1[i].getValues(matrix1);\n if (!self1) for(var i = 0; i < length2; i++)values2[i] = curves2[i].getValues(matrix2);\n var boundsCollisions = CollisionDetection.findCurveBoundsCollisions(values1, values2, epsilon);\n for(var index1 = 0; index1 < length1; index1++){\n var curve1 = curves1[index1], v1 = values1[index1];\n if (self1) getSelfIntersection(v1, curve1, locations, include);\n var collisions1 = boundsCollisions[index1];\n if (collisions1) for(var j = 0; j < collisions1.length; j++){\n if (_returnFirst && locations.length) return locations;\n var index2 = collisions1[j];\n if (!self1 || index2 > index1) {\n var curve2 = curves2[index2], v2 = values2[index2];\n getCurveIntersections(v1, v2, curve1, curve2, locations, include);\n }\n }\n }\n return locations;\n }\n function getOverlaps(v1, v2) {\n function getSquaredLineLength(v) {\n var x = v[6] - v[0], y = v[7] - v[1];\n return x * x + y * y;\n }\n var abs = Math.abs, getDistance = Line.getDistance, timeEpsilon = 1e-8, geomEpsilon = 1e-7, straight1 = Curve.isStraight(v1), straight2 = Curve.isStraight(v2), straightBoth = straight1 && straight2, flip = getSquaredLineLength(v1) < getSquaredLineLength(v2), l1 = flip ? v2 : v1, l2 = flip ? v1 : v2, px = l1[0], py = l1[1], vx = l1[6] - px, vy = l1[7] - py;\n if (getDistance(px, py, vx, vy, l2[0], l2[1], true) < geomEpsilon && getDistance(px, py, vx, vy, l2[6], l2[7], true) < geomEpsilon) {\n if (!straightBoth && getDistance(px, py, vx, vy, l1[2], l1[3], true) < geomEpsilon && getDistance(px, py, vx, vy, l1[4], l1[5], true) < geomEpsilon && getDistance(px, py, vx, vy, l2[2], l2[3], true) < geomEpsilon && getDistance(px, py, vx, vy, l2[4], l2[5], true) < geomEpsilon) straight1 = straight2 = straightBoth = true;\n } else if (straightBoth) return null;\n if (straight1 ^ straight2) return null;\n var v = [\n v1,\n v2\n ], pairs = [];\n for(var i = 0; i < 4 && pairs.length < 2; i++){\n var i1 = i & 1, i2 = i1 ^ 1, t1 = i >> 1, t2 = Curve.getTimeOf(v[i1], new Point(v[i2][t1 ? 6 : 0], v[i2][t1 ? 7 : 1]));\n if (t2 != null) {\n var pair = i1 ? [\n t1,\n t2\n ] : [\n t2,\n t1\n ];\n if (!pairs.length || abs(pair[0] - pairs[0][0]) > timeEpsilon && abs(pair[1] - pairs[0][1]) > timeEpsilon) pairs.push(pair);\n }\n if (i > 2 && !pairs.length) break;\n }\n if (pairs.length !== 2) pairs = null;\n else if (!straightBoth) {\n var o1 = Curve.getPart(v1, pairs[0][0], pairs[1][0]), o2 = Curve.getPart(v2, pairs[0][1], pairs[1][1]);\n if (abs(o2[2] - o1[2]) > geomEpsilon || abs(o2[3] - o1[3]) > geomEpsilon || abs(o2[4] - o1[4]) > geomEpsilon || abs(o2[5] - o1[5]) > geomEpsilon) pairs = null;\n }\n return pairs;\n }\n function getTimesWithTangent(v, tangent) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], normalized = tangent.normalize(), tx = normalized.x, ty = normalized.y, ax = 3 * x3 - 9 * x2 + 9 * x1 - 3 * x0, ay = 3 * y3 - 9 * y2 + 9 * y1 - 3 * y0, bx = 6 * x2 - 12 * x1 + 6 * x0, by = 6 * y2 - 12 * y1 + 6 * y0, cx = 3 * x1 - 3 * x0, cy = 3 * y1 - 3 * y0, den = 2 * ax * ty - 2 * ay * tx, times = [];\n if (Math.abs(den) < Numerical.CURVETIME_EPSILON) {\n var num = ax * cy - ay * cx, den = ax * by - ay * bx;\n if (den != 0) {\n var t = -num / den;\n if (t >= 0 && t <= 1) times.push(t);\n }\n } else {\n var delta = (bx * bx - 4 * ax * cx) * ty * ty + (-2 * bx * by + 4 * ay * cx + 4 * ax * cy) * tx * ty + (by * by - 4 * ay * cy) * tx * tx, k = bx * ty - by * tx;\n if (delta >= 0 && den != 0) {\n var d = Math.sqrt(delta), t0 = -(k + d) / den, t1 = (-k + d) / den;\n if (t0 >= 0 && t0 <= 1) times.push(t0);\n if (t1 >= 0 && t1 <= 1) times.push(t1);\n }\n }\n return times;\n }\n return {\n getIntersections: function(curve) {\n var v1 = this.getValues(), v2 = curve && curve !== this && curve.getValues();\n return v2 ? getCurveIntersections(v1, v2, this, curve, []) : getSelfIntersection(v1, this, []);\n },\n statics: {\n getOverlaps: getOverlaps,\n getIntersections: getIntersections,\n getCurveLineIntersections: getCurveLineIntersections,\n getTimesWithTangent: getTimesWithTangent\n }\n };\n });\n var CurveLocation = Base.extend({\n _class: \"CurveLocation\",\n initialize: function CurveLocation(curve, time, point, _overlap, _distance) {\n if (time >= 0.99999999) {\n var next = curve.getNext();\n if (next) {\n time = 0;\n curve = next;\n }\n }\n this._setCurve(curve);\n this._time = time;\n this._point = point || curve.getPointAtTime(time);\n this._overlap = _overlap;\n this._distance = _distance;\n this._intersection = this._next = this._previous = null;\n },\n _setPath: function(path) {\n this._path = path;\n this._version = path ? path._version : 0;\n },\n _setCurve: function(curve) {\n this._setPath(curve._path);\n this._curve = curve;\n this._segment = null;\n this._segment1 = curve._segment1;\n this._segment2 = curve._segment2;\n },\n _setSegment: function(segment) {\n var curve = segment.getCurve();\n if (curve) this._setCurve(curve);\n else {\n this._setPath(segment._path);\n this._segment1 = segment;\n this._segment2 = null;\n }\n this._segment = segment;\n this._time = segment === this._segment1 ? 0 : 1;\n this._point = segment._point.clone();\n },\n getSegment: function() {\n var segment = this._segment;\n if (!segment) {\n var curve = this.getCurve(), time = this.getTime();\n if (time === 0) segment = curve._segment1;\n else if (time === 1) segment = curve._segment2;\n else if (time != null) segment = curve.getPartLength(0, time) < curve.getPartLength(time, 1) ? curve._segment1 : curve._segment2;\n this._segment = segment;\n }\n return segment;\n },\n getCurve: function() {\n var path = this._path, that = this;\n if (path && path._version !== this._version) this._time = this._offset = this._curveOffset = this._curve = null;\n function trySegment(segment) {\n var curve = segment && segment.getCurve();\n if (curve && (that._time = curve.getTimeOf(that._point)) != null) {\n that._setCurve(curve);\n return curve;\n }\n }\n return this._curve || trySegment(this._segment) || trySegment(this._segment1) || trySegment(this._segment2.getPrevious());\n },\n getPath: function() {\n var curve = this.getCurve();\n return curve && curve._path;\n },\n getIndex: function() {\n var curve = this.getCurve();\n return curve && curve.getIndex();\n },\n getTime: function() {\n var curve = this.getCurve(), time = this._time;\n return curve && time == null ? this._time = curve.getTimeOf(this._point) : time;\n },\n getParameter: \"#getTime\",\n getPoint: function() {\n return this._point;\n },\n getOffset: function() {\n var offset = this._offset;\n if (offset == null) {\n offset = 0;\n var path = this.getPath(), index = this.getIndex();\n if (path && index != null) {\n var curves = path.getCurves();\n for(var i = 0; i < index; i++)offset += curves[i].getLength();\n }\n this._offset = offset += this.getCurveOffset();\n }\n return offset;\n },\n getCurveOffset: function() {\n var offset = this._curveOffset;\n if (offset == null) {\n var curve = this.getCurve(), time = this.getTime();\n this._curveOffset = offset = time != null && curve && curve.getPartLength(0, time);\n }\n return offset;\n },\n getIntersection: function() {\n return this._intersection;\n },\n getDistance: function() {\n return this._distance;\n },\n divide: function() {\n var curve = this.getCurve(), res = curve && curve.divideAtTime(this.getTime());\n if (res) this._setSegment(res._segment1);\n return res;\n },\n split: function() {\n var curve = this.getCurve(), path = curve._path, res = curve && curve.splitAtTime(this.getTime());\n if (res) this._setSegment(path.getLastSegment());\n return res;\n },\n equals: function(loc, _ignoreOther) {\n var res = this === loc;\n if (!res && loc instanceof CurveLocation) {\n var c1 = this.getCurve(), c2 = loc.getCurve(), p1 = c1._path, p2 = c2._path;\n if (p1 === p2) {\n var abs = Math.abs, epsilon = 1e-7, diff = abs(this.getOffset() - loc.getOffset()), i1 = !_ignoreOther && this._intersection, i2 = !_ignoreOther && loc._intersection;\n res = (diff < epsilon || p1 && abs(p1.getLength() - diff) < epsilon) && (!i1 && !i2 || i1 && i2 && i1.equals(i2, true));\n }\n }\n return res;\n },\n toString: function() {\n var parts = [], point = this.getPoint(), f = Formatter.instance;\n if (point) parts.push(\"point: \" + point);\n var index = this.getIndex();\n if (index != null) parts.push(\"index: \" + index);\n var time = this.getTime();\n if (time != null) parts.push(\"time: \" + f.number(time));\n if (this._distance != null) parts.push(\"distance: \" + f.number(this._distance));\n return \"{ \" + parts.join(\", \") + \" }\";\n },\n isTouching: function() {\n var inter = this._intersection;\n if (inter && this.getTangent().isCollinear(inter.getTangent())) {\n var curve1 = this.getCurve(), curve2 = inter.getCurve();\n return !(curve1.isStraight() && curve2.isStraight() && curve1.getLine().intersect(curve2.getLine()));\n }\n return false;\n },\n isCrossing: function() {\n var inter = this._intersection;\n if (!inter) return false;\n var t1 = this.getTime(), t2 = inter.getTime(), tMin = 1e-8, tMax = 1 - tMin, t1Inside = t1 >= tMin && t1 <= tMax, t2Inside = t2 >= tMin && t2 <= tMax;\n if (t1Inside && t2Inside) return !this.isTouching();\n var c2 = this.getCurve(), c1 = c2 && t1 < tMin ? c2.getPrevious() : c2, c4 = inter.getCurve(), c3 = c4 && t2 < tMin ? c4.getPrevious() : c4;\n if (t1 > tMax) c2 = c2.getNext();\n if (t2 > tMax) c4 = c4.getNext();\n if (!c1 || !c2 || !c3 || !c4) return false;\n var offsets = [];\n function addOffsets(curve, end) {\n var v = curve.getValues(), roots = Curve.classify(v).roots || Curve.getPeaks(v), count = roots.length, offset = Curve.getLength(v, end && count ? roots[count - 1] : 0, !end && count ? roots[0] : 1);\n offsets.push(count ? offset : offset / 32);\n }\n function isInRange(angle, min, max) {\n return min < max ? angle > min && angle < max : angle > min || angle < max;\n }\n if (!t1Inside) {\n addOffsets(c1, true);\n addOffsets(c2, false);\n }\n if (!t2Inside) {\n addOffsets(c3, true);\n addOffsets(c4, false);\n }\n var pt = this.getPoint(), offset = Math.min.apply(Math, offsets), v2 = t1Inside ? c2.getTangentAtTime(t1) : c2.getPointAt(offset).subtract(pt), v1 = t1Inside ? v2.negate() : c1.getPointAt(-offset).subtract(pt), v4 = t2Inside ? c4.getTangentAtTime(t2) : c4.getPointAt(offset).subtract(pt), v3 = t2Inside ? v4.negate() : c3.getPointAt(-offset).subtract(pt), a1 = v1.getAngle(), a2 = v2.getAngle(), a3 = v3.getAngle(), a4 = v4.getAngle();\n return !!(t1Inside ? isInRange(a1, a3, a4) ^ isInRange(a2, a3, a4) && isInRange(a1, a4, a3) ^ isInRange(a2, a4, a3) : isInRange(a3, a1, a2) ^ isInRange(a4, a1, a2) && isInRange(a3, a2, a1) ^ isInRange(a4, a2, a1));\n },\n hasOverlap: function() {\n return !!this._overlap;\n }\n }, Base.each(Curve._evaluateMethods, function(name) {\n var get = name + \"At\";\n this[name] = function() {\n var curve = this.getCurve(), time = this.getTime();\n return time != null && curve && curve[get](time, true);\n };\n }, {\n preserve: true\n }), new function() {\n function insert(locations, loc, merge) {\n var length = locations.length, l = 0, r = length - 1;\n function search(index, dir) {\n for(var i = index + dir; i >= -1 && i <= length; i += dir){\n var loc2 = locations[(i % length + length) % length];\n if (!loc.getPoint().isClose(loc2.getPoint(), 1e-7)) break;\n if (loc.equals(loc2)) return loc2;\n }\n return null;\n }\n while(l <= r){\n var m = l + r >>> 1, loc2 = locations[m], found;\n if (merge && (found = loc.equals(loc2) ? loc2 : search(m, -1) || search(m, 1))) {\n if (loc._overlap) found._overlap = found._intersection._overlap = true;\n return found;\n }\n var path1 = loc.getPath(), path2 = loc2.getPath(), diff = path1 !== path2 ? path1._id - path2._id : loc.getIndex() + loc.getTime() - (loc2.getIndex() + loc2.getTime());\n if (diff < 0) r = m - 1;\n else l = m + 1;\n }\n locations.splice(l, 0, loc);\n return loc;\n }\n return {\n statics: {\n insert: insert,\n expand: function(locations) {\n var expanded = locations.slice();\n for(var i = locations.length - 1; i >= 0; i--)insert(expanded, locations[i]._intersection, false);\n return expanded;\n }\n }\n };\n });\n var PathItem = Item.extend({\n _class: \"PathItem\",\n _selectBounds: false,\n _canScaleStroke: true,\n beans: true,\n initialize: function PathItem() {},\n statics: {\n create: function(arg) {\n var data, segments, compound;\n if (Base.isPlainObject(arg)) {\n segments = arg.segments;\n data = arg.pathData;\n } else if (Array.isArray(arg)) segments = arg;\n else if (typeof arg === \"string\") data = arg;\n if (segments) {\n var first = segments[0];\n compound = first && Array.isArray(first[0]);\n } else if (data) compound = (data.match(/m/gi) || []).length > 1 || /z\\s*\\S+/i.test(data);\n var ctor = compound ? CompoundPath : Path;\n return new ctor(arg);\n }\n },\n _asPathItem: function() {\n return this;\n },\n isClockwise: function() {\n return this.getArea() >= 0;\n },\n setClockwise: function(clockwise) {\n if (this.isClockwise() != (clockwise = !!clockwise)) this.reverse();\n },\n setPathData: function(data) {\n var parts = data && data.match(/[mlhvcsqtaz][^mlhvcsqtaz]*/ig), coords, relative = false, previous, control, current = new Point(), start = new Point();\n function getCoord(index, coord) {\n var val = +coords[index];\n if (relative) val += current[coord];\n return val;\n }\n function getPoint(index) {\n return new Point(getCoord(index, \"x\"), getCoord(index + 1, \"y\"));\n }\n this.clear();\n for(var i = 0, l = parts && parts.length; i < l; i++){\n var part = parts[i], command = part[0], lower = command.toLowerCase();\n coords = part.match(/[+-]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?/g);\n var length = coords && coords.length;\n relative = command === lower;\n if (previous === \"z\" && !/[mz]/.test(lower)) this.moveTo(current);\n switch(lower){\n case \"m\":\n case \"l\":\n var move = lower === \"m\";\n for(var j = 0; j < length; j += 2){\n this[move ? \"moveTo\" : \"lineTo\"](current = getPoint(j));\n if (move) {\n start = current;\n move = false;\n }\n }\n control = current;\n break;\n case \"h\":\n case \"v\":\n var coord = lower === \"h\" ? \"x\" : \"y\";\n current = current.clone();\n for(var j = 0; j < length; j++){\n current[coord] = getCoord(j, coord);\n this.lineTo(current);\n }\n control = current;\n break;\n case \"c\":\n for(var j = 0; j < length; j += 6)this.cubicCurveTo(getPoint(j), control = getPoint(j + 2), current = getPoint(j + 4));\n break;\n case \"s\":\n for(var j = 0; j < length; j += 4){\n this.cubicCurveTo(/[cs]/.test(previous) ? current.multiply(2).subtract(control) : current, control = getPoint(j), current = getPoint(j + 2));\n previous = lower;\n }\n break;\n case \"q\":\n for(var j = 0; j < length; j += 4)this.quadraticCurveTo(control = getPoint(j), current = getPoint(j + 2));\n break;\n case \"t\":\n for(var j = 0; j < length; j += 2){\n this.quadraticCurveTo(control = /[qt]/.test(previous) ? current.multiply(2).subtract(control) : current, current = getPoint(j));\n previous = lower;\n }\n break;\n case \"a\":\n for(var j = 0; j < length; j += 7)this.arcTo(current = getPoint(j + 5), new Size(+coords[j], +coords[j + 1]), +coords[j + 2], +coords[j + 4], +coords[j + 3]);\n break;\n case \"z\":\n this.closePath(1e-12);\n current = start;\n break;\n }\n previous = lower;\n }\n },\n _canComposite: function() {\n return !(this.hasFill() && this.hasStroke());\n },\n _contains: function(point) {\n var winding = point.isInside(this.getBounds({\n internal: true,\n handle: true\n })) ? this._getWinding(point) : {};\n return winding.onPath || !!(this.getFillRule() === \"evenodd\" ? winding.windingL & 1 || winding.windingR & 1 : winding.winding);\n },\n getIntersections: function(path, include, _matrix, _returnFirst) {\n var self1 = this === path || !path, matrix1 = this._matrix._orNullIfIdentity(), matrix2 = self1 ? matrix1 : (_matrix || path._matrix)._orNullIfIdentity();\n return self1 || this.getBounds(matrix1).intersects(path.getBounds(matrix2), 1e-12) ? Curve.getIntersections(this.getCurves(), !self1 && path.getCurves(), include, matrix1, matrix2, _returnFirst) : [];\n },\n getCrossings: function(path) {\n return this.getIntersections(path, function(inter) {\n return inter.isCrossing();\n });\n },\n getNearestLocation: function() {\n var point = Point.read(arguments), curves = this.getCurves(), minDist = Infinity, minLoc = null;\n for(var i = 0, l = curves.length; i < l; i++){\n var loc = curves[i].getNearestLocation(point);\n if (loc._distance < minDist) {\n minDist = loc._distance;\n minLoc = loc;\n }\n }\n return minLoc;\n },\n getNearestPoint: function() {\n var loc = this.getNearestLocation.apply(this, arguments);\n return loc ? loc.getPoint() : loc;\n },\n interpolate: function(from, to, factor) {\n var isPath = !this._children, name = isPath ? \"_segments\" : \"_children\", itemsFrom = from[name], itemsTo = to[name], items = this[name];\n if (!itemsFrom || !itemsTo || itemsFrom.length !== itemsTo.length) throw new Error(\"Invalid operands in interpolate() call: \" + from + \", \" + to);\n var current = items.length, length = itemsTo.length;\n if (current < length) {\n var ctor = isPath ? Segment : Path;\n for(var i = current; i < length; i++)this.add(new ctor());\n } else if (current > length) this[isPath ? \"removeSegments\" : \"removeChildren\"](length, current);\n for(var i = 0; i < length; i++)items[i].interpolate(itemsFrom[i], itemsTo[i], factor);\n if (isPath) {\n this.setClosed(from._closed);\n this._changed(9);\n }\n },\n compare: function(path) {\n var ok = false;\n if (path) {\n var paths1 = this._children || [\n this\n ], paths2 = path._children ? path._children.slice() : [\n path\n ], length1 = paths1.length, length2 = paths2.length, matched = [], count = 0;\n ok = true;\n var boundsOverlaps = CollisionDetection.findItemBoundsCollisions(paths1, paths2, Numerical.GEOMETRIC_EPSILON);\n for(var i1 = length1 - 1; i1 >= 0 && ok; i1--){\n var path1 = paths1[i1];\n ok = false;\n var pathBoundsOverlaps = boundsOverlaps[i1];\n if (pathBoundsOverlaps) {\n for(var i2 = pathBoundsOverlaps.length - 1; i2 >= 0 && !ok; i2--)if (path1.compare(paths2[pathBoundsOverlaps[i2]])) {\n if (!matched[pathBoundsOverlaps[i2]]) {\n matched[pathBoundsOverlaps[i2]] = true;\n count++;\n }\n ok = true;\n }\n }\n }\n ok = ok && count === length2;\n }\n return ok;\n }\n });\n var Path = PathItem.extend({\n _class: \"Path\",\n _serializeFields: {\n segments: [],\n closed: false\n },\n initialize: function Path(arg) {\n this._closed = false;\n this._segments = [];\n this._version = 0;\n var args = arguments, segments = Array.isArray(arg) ? typeof arg[0] === \"object\" ? arg : args : arg && arg.size === undefined && (arg.x !== undefined || arg.point !== undefined) ? args : null;\n if (segments && segments.length > 0) this.setSegments(segments);\n else {\n this._curves = undefined;\n this._segmentSelection = 0;\n if (!segments && typeof arg === \"string\") {\n this.setPathData(arg);\n arg = null;\n }\n }\n this._initialize(!segments && arg);\n },\n _equals: function(item) {\n return this._closed === item._closed && Base.equals(this._segments, item._segments);\n },\n copyContent: function(source) {\n this.setSegments(source._segments);\n this._closed = source._closed;\n },\n _changed: function _changed(flags) {\n _changed.base.call(this, flags);\n if (flags & 8) {\n this._length = this._area = undefined;\n if (flags & 32) this._version++;\n else if (this._curves) for(var i = 0, l = this._curves.length; i < l; i++)this._curves[i]._changed();\n } else if (flags & 64) this._bounds = undefined;\n },\n getStyle: function() {\n var parent = this._parent;\n return (parent instanceof CompoundPath ? parent : this)._style;\n },\n getSegments: function() {\n return this._segments;\n },\n setSegments: function(segments) {\n var fullySelected = this.isFullySelected(), length = segments && segments.length;\n this._segments.length = 0;\n this._segmentSelection = 0;\n this._curves = undefined;\n if (length) {\n var last = segments[length - 1];\n if (typeof last === \"boolean\") {\n this.setClosed(last);\n length--;\n }\n this._add(Segment.readList(segments, 0, {}, length));\n }\n if (fullySelected) this.setFullySelected(true);\n },\n getFirstSegment: function() {\n return this._segments[0];\n },\n getLastSegment: function() {\n return this._segments[this._segments.length - 1];\n },\n getCurves: function() {\n var curves = this._curves, segments = this._segments;\n if (!curves) {\n var length = this._countCurves();\n curves = this._curves = new Array(length);\n for(var i = 0; i < length; i++)curves[i] = new Curve(this, segments[i], segments[i + 1] || segments[0]);\n }\n return curves;\n },\n getFirstCurve: function() {\n return this.getCurves()[0];\n },\n getLastCurve: function() {\n var curves = this.getCurves();\n return curves[curves.length - 1];\n },\n isClosed: function() {\n return this._closed;\n },\n setClosed: function(closed) {\n if (this._closed != (closed = !!closed)) {\n this._closed = closed;\n if (this._curves) {\n var length = this._curves.length = this._countCurves();\n if (closed) this._curves[length - 1] = new Curve(this, this._segments[length - 1], this._segments[0]);\n }\n this._changed(41);\n }\n }\n }, {\n beans: true,\n getPathData: function(_matrix, _precision) {\n var segments = this._segments, length = segments.length, f = new Formatter(_precision), coords = new Array(6), first = true, curX, curY, prevX, prevY, inX, inY, outX, outY, parts = [];\n function addSegment(segment, skipLine) {\n segment._transformCoordinates(_matrix, coords);\n curX = coords[0];\n curY = coords[1];\n if (first) {\n parts.push(\"M\" + f.pair(curX, curY));\n first = false;\n } else {\n inX = coords[2];\n inY = coords[3];\n if (inX === curX && inY === curY && outX === prevX && outY === prevY) {\n if (!skipLine) {\n var dx = curX - prevX, dy = curY - prevY;\n parts.push(dx === 0 ? \"v\" + f.number(dy) : dy === 0 ? \"h\" + f.number(dx) : \"l\" + f.pair(dx, dy));\n }\n } else parts.push(\"c\" + f.pair(outX - prevX, outY - prevY) + \" \" + f.pair(inX - prevX, inY - prevY) + \" \" + f.pair(curX - prevX, curY - prevY));\n }\n prevX = curX;\n prevY = curY;\n outX = coords[4];\n outY = coords[5];\n }\n if (!length) return \"\";\n for(var i = 0; i < length; i++)addSegment(segments[i]);\n if (this._closed && length > 0) {\n addSegment(segments[0], true);\n parts.push(\"z\");\n }\n return parts.join(\"\");\n },\n isEmpty: function() {\n return !this._segments.length;\n },\n _transformContent: function(matrix) {\n var segments = this._segments, coords = new Array(6);\n for(var i = 0, l = segments.length; i < l; i++)segments[i]._transformCoordinates(matrix, coords, true);\n return true;\n },\n _add: function(segs, index) {\n var segments = this._segments, curves = this._curves, amount = segs.length, append = index == null, index = append ? segments.length : index;\n for(var i = 0; i < amount; i++){\n var segment = segs[i];\n if (segment._path) segment = segs[i] = segment.clone();\n segment._path = this;\n segment._index = index + i;\n if (segment._selection) this._updateSelection(segment, 0, segment._selection);\n }\n if (append) Base.push(segments, segs);\n else {\n segments.splice.apply(segments, [\n index,\n 0\n ].concat(segs));\n for(var i = index + amount, l = segments.length; i < l; i++)segments[i]._index = i;\n }\n if (curves) {\n var total = this._countCurves(), start = index > 0 && index + amount - 1 === total ? index - 1 : index, insert = start, end = Math.min(start + amount, total);\n if (segs._curves) {\n curves.splice.apply(curves, [\n start,\n 0\n ].concat(segs._curves));\n insert += segs._curves.length;\n }\n for(var i = insert; i < end; i++)curves.splice(i, 0, new Curve(this, null, null));\n this._adjustCurves(start, end);\n }\n this._changed(41);\n return segs;\n },\n _adjustCurves: function(start, end) {\n var segments = this._segments, curves = this._curves, curve;\n for(var i = start; i < end; i++){\n curve = curves[i];\n curve._path = this;\n curve._segment1 = segments[i];\n curve._segment2 = segments[i + 1] || segments[0];\n curve._changed();\n }\n if (curve = curves[this._closed && !start ? segments.length - 1 : start - 1]) {\n curve._segment2 = segments[start] || segments[0];\n curve._changed();\n }\n if (curve = curves[end]) {\n curve._segment1 = segments[end];\n curve._changed();\n }\n },\n _countCurves: function() {\n var length = this._segments.length;\n return !this._closed && length > 0 ? length - 1 : length;\n },\n add: function(segment1) {\n var args = arguments;\n return args.length > 1 && typeof segment1 !== \"number\" ? this._add(Segment.readList(args)) : this._add([\n Segment.read(args)\n ])[0];\n },\n insert: function(index, segment1) {\n var args = arguments;\n return args.length > 2 && typeof segment1 !== \"number\" ? this._add(Segment.readList(args, 1), index) : this._add([\n Segment.read(args, 1)\n ], index)[0];\n },\n addSegment: function() {\n return this._add([\n Segment.read(arguments)\n ])[0];\n },\n insertSegment: function(index) {\n return this._add([\n Segment.read(arguments, 1)\n ], index)[0];\n },\n addSegments: function(segments) {\n return this._add(Segment.readList(segments));\n },\n insertSegments: function(index, segments) {\n return this._add(Segment.readList(segments), index);\n },\n removeSegment: function(index) {\n return this.removeSegments(index, index + 1)[0] || null;\n },\n removeSegments: function(start, end, _includeCurves) {\n start = start || 0;\n end = Base.pick(end, this._segments.length);\n var segments = this._segments, curves = this._curves, count = segments.length, removed = segments.splice(start, end - start), amount = removed.length;\n if (!amount) return removed;\n for(var i = 0; i < amount; i++){\n var segment = removed[i];\n if (segment._selection) this._updateSelection(segment, segment._selection, 0);\n segment._index = segment._path = null;\n }\n for(var i = start, l = segments.length; i < l; i++)segments[i]._index = i;\n if (curves) {\n var index = start > 0 && end === count + (this._closed ? 1 : 0) ? start - 1 : start, curves = curves.splice(index, amount);\n for(var i = curves.length - 1; i >= 0; i--)curves[i]._path = null;\n if (_includeCurves) removed._curves = curves.slice(1);\n this._adjustCurves(index, index);\n }\n this._changed(41);\n return removed;\n },\n clear: \"#removeSegments\",\n hasHandles: function() {\n var segments = this._segments;\n for(var i = 0, l = segments.length; i < l; i++){\n if (segments[i].hasHandles()) return true;\n }\n return false;\n },\n clearHandles: function() {\n var segments = this._segments;\n for(var i = 0, l = segments.length; i < l; i++)segments[i].clearHandles();\n },\n getLength: function() {\n if (this._length == null) {\n var curves = this.getCurves(), length = 0;\n for(var i = 0, l = curves.length; i < l; i++)length += curves[i].getLength();\n this._length = length;\n }\n return this._length;\n },\n getArea: function() {\n var area = this._area;\n if (area == null) {\n var segments = this._segments, closed = this._closed;\n area = 0;\n for(var i = 0, l = segments.length; i < l; i++){\n var last = i + 1 === l;\n area += Curve.getArea(Curve.getValues(segments[i], segments[last ? 0 : i + 1], null, last && !closed));\n }\n this._area = area;\n }\n return area;\n },\n isFullySelected: function() {\n var length = this._segments.length;\n return this.isSelected() && length > 0 && this._segmentSelection === length * 7;\n },\n setFullySelected: function(selected) {\n if (selected) this._selectSegments(true);\n this.setSelected(selected);\n },\n setSelection: function setSelection(selection) {\n if (!(selection & 1)) this._selectSegments(false);\n setSelection.base.call(this, selection);\n },\n _selectSegments: function(selected) {\n var segments = this._segments, length = segments.length, selection = selected ? 7 : 0;\n this._segmentSelection = selection * length;\n for(var i = 0; i < length; i++)segments[i]._selection = selection;\n },\n _updateSelection: function(segment, oldSelection, newSelection) {\n segment._selection = newSelection;\n var selection = this._segmentSelection += newSelection - oldSelection;\n if (selection > 0) this.setSelected(true);\n },\n divideAt: function(location) {\n var loc = this.getLocationAt(location), curve;\n return loc && (curve = loc.getCurve().divideAt(loc.getCurveOffset())) ? curve._segment1 : null;\n },\n splitAt: function(location) {\n var loc = this.getLocationAt(location), index = loc && loc.index, time = loc && loc.time, tMin = 1e-8, tMax = 1 - tMin;\n if (time > tMax) {\n index++;\n time = 0;\n }\n var curves = this.getCurves();\n if (index >= 0 && index < curves.length) {\n if (time >= tMin) curves[index++].divideAtTime(time);\n var segs = this.removeSegments(index, this._segments.length, true), path;\n if (this._closed) {\n this.setClosed(false);\n path = this;\n } else {\n path = new Path(Item.NO_INSERT);\n path.insertAbove(this);\n path.copyAttributes(this);\n }\n path._add(segs, 0);\n this.addSegment(segs[0]);\n return path;\n }\n return null;\n },\n split: function(index, time) {\n var curve, location = time === undefined ? index : (curve = this.getCurves()[index]) && curve.getLocationAtTime(time);\n return location != null ? this.splitAt(location) : null;\n },\n join: function(path, tolerance) {\n var epsilon = tolerance || 0;\n if (path && path !== this) {\n var segments = path._segments, last1 = this.getLastSegment(), last2 = path.getLastSegment();\n if (!last2) return this;\n if (last1 && last1._point.isClose(last2._point, epsilon)) path.reverse();\n var first2 = path.getFirstSegment();\n if (last1 && last1._point.isClose(first2._point, epsilon)) {\n last1.setHandleOut(first2._handleOut);\n this._add(segments.slice(1));\n } else {\n var first1 = this.getFirstSegment();\n if (first1 && first1._point.isClose(first2._point, epsilon)) path.reverse();\n last2 = path.getLastSegment();\n if (first1 && first1._point.isClose(last2._point, epsilon)) {\n first1.setHandleIn(last2._handleIn);\n this._add(segments.slice(0, segments.length - 1), 0);\n } else this._add(segments.slice());\n }\n if (path._closed) this._add([\n segments[0]\n ]);\n path.remove();\n }\n var first = this.getFirstSegment(), last = this.getLastSegment();\n if (first !== last && first._point.isClose(last._point, epsilon)) {\n first.setHandleIn(last._handleIn);\n last.remove();\n this.setClosed(true);\n }\n return this;\n },\n reduce: function(options) {\n var curves = this.getCurves(), simplify = options && options.simplify, tolerance = simplify ? 1e-7 : 0;\n for(var i = curves.length - 1; i >= 0; i--){\n var curve = curves[i];\n if (!curve.hasHandles() && (!curve.hasLength(tolerance) || simplify && curve.isCollinear(curve.getNext()))) curve.remove();\n }\n return this;\n },\n reverse: function() {\n this._segments.reverse();\n for(var i = 0, l = this._segments.length; i < l; i++){\n var segment = this._segments[i];\n var handleIn = segment._handleIn;\n segment._handleIn = segment._handleOut;\n segment._handleOut = handleIn;\n segment._index = i;\n }\n this._curves = null;\n this._changed(9);\n },\n flatten: function(flatness) {\n var flattener = new PathFlattener(this, flatness || 0.25, 256, true), parts = flattener.parts, length = parts.length, segments = [];\n for(var i = 0; i < length; i++)segments.push(new Segment(parts[i].curve.slice(0, 2)));\n if (!this._closed && length > 0) segments.push(new Segment(parts[length - 1].curve.slice(6)));\n this.setSegments(segments);\n },\n simplify: function(tolerance) {\n var segments = new PathFitter(this).fit(tolerance || 2.5);\n if (segments) this.setSegments(segments);\n return !!segments;\n },\n smooth: function(options) {\n var that = this, opts = options || {}, type = opts.type || \"asymmetric\", segments = this._segments, length = segments.length, closed = this._closed;\n function getIndex(value, _default) {\n var index = value && value.index;\n if (index != null) {\n var path = value.path;\n if (path && path !== that) throw new Error(value._class + \" \" + index + \" of \" + path + \" is not part of \" + that);\n if (_default && value instanceof Curve) index++;\n } else index = typeof value === \"number\" ? value : _default;\n return Math.min(index < 0 && closed ? index % length : index < 0 ? index + length : index, length - 1);\n }\n var loop = closed && opts.from === undefined && opts.to === undefined, from = getIndex(opts.from, 0), to = getIndex(opts.to, length - 1);\n if (from > to) {\n if (closed) from -= length;\n else {\n var tmp = from;\n from = to;\n to = tmp;\n }\n }\n if (/^(?:asymmetric|continuous)$/.test(type)) {\n var asymmetric = type === \"asymmetric\", min = Math.min, amount = to - from + 1, n = amount - 1, padding = loop ? min(amount, 4) : 1, paddingLeft = padding, paddingRight = padding, knots = [];\n if (!closed) {\n paddingLeft = min(1, from);\n paddingRight = min(1, length - to - 1);\n }\n n += paddingLeft + paddingRight;\n if (n <= 1) return;\n for(var i = 0, j = from - paddingLeft; i <= n; i++, j++)knots[i] = segments[(j < 0 ? j + length : j) % length]._point;\n var x = knots[0]._x + 2 * knots[1]._x, y = knots[0]._y + 2 * knots[1]._y, f = 2, n_1 = n - 1, rx = [\n x\n ], ry = [\n y\n ], rf = [\n f\n ], px = [], py = [];\n for(var i = 1; i < n; i++){\n var internal = i < n_1, a = internal ? 1 : asymmetric ? 1 : 2, b = internal ? 4 : asymmetric ? 2 : 7, u = internal ? 4 : asymmetric ? 3 : 8, v = internal ? 2 : asymmetric ? 0 : 1, m = a / f;\n f = rf[i] = b - m;\n x = rx[i] = u * knots[i]._x + v * knots[i + 1]._x - m * x;\n y = ry[i] = u * knots[i]._y + v * knots[i + 1]._y - m * y;\n }\n px[n_1] = rx[n_1] / rf[n_1];\n py[n_1] = ry[n_1] / rf[n_1];\n for(var i = n - 2; i >= 0; i--){\n px[i] = (rx[i] - px[i + 1]) / rf[i];\n py[i] = (ry[i] - py[i + 1]) / rf[i];\n }\n px[n] = (3 * knots[n]._x - px[n_1]) / 2;\n py[n] = (3 * knots[n]._y - py[n_1]) / 2;\n for(var i = paddingLeft, max = n - paddingRight, j = from; i <= max; i++, j++){\n var segment = segments[j < 0 ? j + length : j], pt = segment._point, hx = px[i] - pt._x, hy = py[i] - pt._y;\n if (loop || i < max) segment.setHandleOut(hx, hy);\n if (loop || i > paddingLeft) segment.setHandleIn(-hx, -hy);\n }\n } else for(var i = from; i <= to; i++)segments[i < 0 ? i + length : i].smooth(opts, !loop && i === from, !loop && i === to);\n },\n toShape: function(insert) {\n if (!this._closed) return null;\n var segments = this._segments, type, size, radius, topCenter;\n function isCollinear(i, j) {\n var seg1 = segments[i], seg2 = seg1.getNext(), seg3 = segments[j], seg4 = seg3.getNext();\n return seg1._handleOut.isZero() && seg2._handleIn.isZero() && seg3._handleOut.isZero() && seg4._handleIn.isZero() && seg2._point.subtract(seg1._point).isCollinear(seg4._point.subtract(seg3._point));\n }\n function isOrthogonal(i) {\n var seg2 = segments[i], seg1 = seg2.getPrevious(), seg3 = seg2.getNext();\n return seg1._handleOut.isZero() && seg2._handleIn.isZero() && seg2._handleOut.isZero() && seg3._handleIn.isZero() && seg2._point.subtract(seg1._point).isOrthogonal(seg3._point.subtract(seg2._point));\n }\n function isArc(i) {\n var seg1 = segments[i], seg2 = seg1.getNext(), handle1 = seg1._handleOut, handle2 = seg2._handleIn, kappa = 0.5522847498307936;\n if (handle1.isOrthogonal(handle2)) {\n var pt1 = seg1._point, pt2 = seg2._point, corner = new Line(pt1, handle1, true).intersect(new Line(pt2, handle2, true), true);\n return corner && Numerical.isZero(handle1.getLength() / corner.subtract(pt1).getLength() - kappa) && Numerical.isZero(handle2.getLength() / corner.subtract(pt2).getLength() - kappa);\n }\n return false;\n }\n function getDistance(i, j) {\n return segments[i]._point.getDistance(segments[j]._point);\n }\n if (!this.hasHandles() && segments.length === 4 && isCollinear(0, 2) && isCollinear(1, 3) && isOrthogonal(1)) {\n type = Shape.Rectangle;\n size = new Size(getDistance(0, 3), getDistance(0, 1));\n topCenter = segments[1]._point.add(segments[2]._point).divide(2);\n } else if (segments.length === 8 && isArc(0) && isArc(2) && isArc(4) && isArc(6) && isCollinear(1, 5) && isCollinear(3, 7)) {\n type = Shape.Rectangle;\n size = new Size(getDistance(1, 6), getDistance(0, 3));\n radius = size.subtract(new Size(getDistance(0, 7), getDistance(1, 2))).divide(2);\n topCenter = segments[3]._point.add(segments[4]._point).divide(2);\n } else if (segments.length === 4 && isArc(0) && isArc(1) && isArc(2) && isArc(3)) {\n if (Numerical.isZero(getDistance(0, 2) - getDistance(1, 3))) {\n type = Shape.Circle;\n radius = getDistance(0, 2) / 2;\n } else {\n type = Shape.Ellipse;\n radius = new Size(getDistance(2, 0) / 2, getDistance(3, 1) / 2);\n }\n topCenter = segments[1]._point;\n }\n if (type) {\n var center = this.getPosition(true), shape = new type({\n center: center,\n size: size,\n radius: radius,\n insert: false\n });\n shape.copyAttributes(this, true);\n shape._matrix.prepend(this._matrix);\n shape.rotate(topCenter.subtract(center).getAngle() + 90);\n if (insert === undefined || insert) shape.insertAbove(this);\n return shape;\n }\n return null;\n },\n toPath: \"#clone\",\n compare: function compare(path) {\n if (!path || path instanceof CompoundPath) return compare.base.call(this, path);\n var curves1 = this.getCurves(), curves2 = path.getCurves(), length1 = curves1.length, length2 = curves2.length;\n if (!length1 || !length2) return length1 == length2;\n var v1 = curves1[0].getValues(), values2 = [], pos1 = 0, pos2, end1 = 0, end2;\n for(var i = 0; i < length2; i++){\n var v2 = curves2[i].getValues();\n values2.push(v2);\n var overlaps = Curve.getOverlaps(v1, v2);\n if (overlaps) {\n pos2 = !i && overlaps[0][0] > 0 ? length2 - 1 : i;\n end2 = overlaps[0][1];\n break;\n }\n }\n var abs = Math.abs, epsilon = 1e-8, v2 = values2[pos2], start2;\n while(v1 && v2){\n var overlaps = Curve.getOverlaps(v1, v2);\n if (overlaps) {\n var t1 = overlaps[0][0];\n if (abs(t1 - end1) < epsilon) {\n end1 = overlaps[1][0];\n if (end1 === 1) {\n v1 = ++pos1 < length1 ? curves1[pos1].getValues() : null;\n end1 = 0;\n }\n var t2 = overlaps[0][1];\n if (abs(t2 - end2) < epsilon) {\n if (!start2) start2 = [\n pos2,\n t2\n ];\n end2 = overlaps[1][1];\n if (end2 === 1) {\n if (++pos2 >= length2) pos2 = 0;\n v2 = values2[pos2] || curves2[pos2].getValues();\n end2 = 0;\n }\n if (!v1) return start2[0] === pos2 && start2[1] === end2;\n continue;\n }\n }\n }\n break;\n }\n return false;\n },\n _hitTestSelf: function(point, options, viewMatrix, strokeMatrix) {\n var that = this, style = this.getStyle(), segments = this._segments, numSegments = segments.length, closed = this._closed, tolerancePadding = options._tolerancePadding, strokePadding = tolerancePadding, join, cap, miterLimit, area, loc, res, hitStroke = options.stroke && style.hasStroke(), hitFill = options.fill && style.hasFill(), hitCurves = options.curves, strokeRadius = hitStroke ? style.getStrokeWidth() / 2 : hitFill && options.tolerance > 0 || hitCurves ? 0 : null;\n if (strokeRadius !== null) {\n if (strokeRadius > 0) {\n join = style.getStrokeJoin();\n cap = style.getStrokeCap();\n miterLimit = style.getMiterLimit();\n strokePadding = strokePadding.add(Path._getStrokePadding(strokeRadius, strokeMatrix));\n } else join = cap = \"round\";\n }\n function isCloseEnough(pt, padding) {\n return point.subtract(pt).divide(padding).length <= 1;\n }\n function checkSegmentPoint(seg, pt, name) {\n if (!options.selected || pt.isSelected()) {\n var anchor = seg._point;\n if (pt !== anchor) pt = pt.add(anchor);\n if (isCloseEnough(pt, strokePadding)) return new HitResult(name, that, {\n segment: seg,\n point: pt\n });\n }\n }\n function checkSegmentPoints(seg, ends) {\n return (ends || options.segments) && checkSegmentPoint(seg, seg._point, \"segment\") || !ends && options.handles && (checkSegmentPoint(seg, seg._handleIn, \"handle-in\") || checkSegmentPoint(seg, seg._handleOut, \"handle-out\"));\n }\n function addToArea(point) {\n area.add(point);\n }\n function checkSegmentStroke(segment) {\n var isJoin = closed || segment._index > 0 && segment._index < numSegments - 1;\n if ((isJoin ? join : cap) === \"round\") return isCloseEnough(segment._point, strokePadding);\n else {\n area = new Path({\n internal: true,\n closed: true\n });\n if (isJoin) {\n if (!segment.isSmooth()) Path._addBevelJoin(segment, join, strokeRadius, miterLimit, null, strokeMatrix, addToArea, true);\n } else if (cap === \"square\") Path._addSquareCap(segment, cap, strokeRadius, null, strokeMatrix, addToArea, true);\n if (!area.isEmpty()) {\n var loc;\n return area.contains(point) || (loc = area.getNearestLocation(point)) && isCloseEnough(loc.getPoint(), tolerancePadding);\n }\n }\n }\n if (options.ends && !options.segments && !closed) {\n if (res = checkSegmentPoints(segments[0], true) || checkSegmentPoints(segments[numSegments - 1], true)) return res;\n } else if (options.segments || options.handles) {\n for(var i = 0; i < numSegments; i++)if (res = checkSegmentPoints(segments[i])) return res;\n }\n if (strokeRadius !== null) {\n loc = this.getNearestLocation(point);\n if (loc) {\n var time = loc.getTime();\n if (time === 0 || time === 1 && numSegments > 1) {\n if (!checkSegmentStroke(loc.getSegment())) loc = null;\n } else if (!isCloseEnough(loc.getPoint(), strokePadding)) loc = null;\n }\n if (!loc && join === \"miter\" && numSegments > 1) for(var i = 0; i < numSegments; i++){\n var segment = segments[i];\n if (point.getDistance(segment._point) <= miterLimit * strokeRadius && checkSegmentStroke(segment)) {\n loc = segment.getLocation();\n break;\n }\n }\n }\n return !loc && hitFill && this._contains(point) || loc && !hitStroke && !hitCurves ? new HitResult(\"fill\", this) : loc ? new HitResult(hitStroke ? \"stroke\" : \"curve\", this, {\n location: loc,\n point: loc.getPoint()\n }) : null;\n }\n }, Base.each(Curve._evaluateMethods, function(name) {\n this[name + \"At\"] = function(offset) {\n var loc = this.getLocationAt(offset);\n return loc && loc[name]();\n };\n }, {\n beans: false,\n getLocationOf: function() {\n var point = Point.read(arguments), curves = this.getCurves();\n for(var i = 0, l = curves.length; i < l; i++){\n var loc = curves[i].getLocationOf(point);\n if (loc) return loc;\n }\n return null;\n },\n getOffsetOf: function() {\n var loc = this.getLocationOf.apply(this, arguments);\n return loc ? loc.getOffset() : null;\n },\n getLocationAt: function(offset) {\n if (typeof offset === \"number\") {\n var curves = this.getCurves(), length = 0;\n for(var i = 0, l = curves.length; i < l; i++){\n var start = length, curve = curves[i];\n length += curve.getLength();\n if (length > offset) return curve.getLocationAt(offset - start);\n }\n if (curves.length > 0 && offset <= this.getLength()) return new CurveLocation(curves[curves.length - 1], 1);\n } else if (offset && offset.getPath && offset.getPath() === this) return offset;\n return null;\n },\n getOffsetsWithTangent: function() {\n var tangent = Point.read(arguments);\n if (tangent.isZero()) return [];\n var offsets = [];\n var curveStart = 0;\n var curves = this.getCurves();\n for(var i = 0, l = curves.length; i < l; i++){\n var curve = curves[i];\n var curveTimes = curve.getTimesWithTangent(tangent);\n for(var j = 0, m = curveTimes.length; j < m; j++){\n var offset = curveStart + curve.getOffsetAtTime(curveTimes[j]);\n if (offsets.indexOf(offset) < 0) offsets.push(offset);\n }\n curveStart += curve.length;\n }\n return offsets;\n }\n }), new function() {\n function drawHandles(ctx, segments, matrix, size) {\n if (size <= 0) return;\n var half = size / 2, miniSize = size - 2, miniHalf = half - 1, coords = new Array(6), pX, pY;\n function drawHandle(index) {\n var hX = coords[index], hY = coords[index + 1];\n if (pX != hX || pY != hY) {\n ctx.beginPath();\n ctx.moveTo(pX, pY);\n ctx.lineTo(hX, hY);\n ctx.stroke();\n ctx.beginPath();\n ctx.arc(hX, hY, half, 0, Math.PI * 2, true);\n ctx.fill();\n }\n }\n for(var i = 0, l = segments.length; i < l; i++){\n var segment = segments[i], selection = segment._selection;\n segment._transformCoordinates(matrix, coords);\n pX = coords[0];\n pY = coords[1];\n if (selection & 2) drawHandle(2);\n if (selection & 4) drawHandle(4);\n ctx.fillRect(pX - half, pY - half, size, size);\n if (miniSize > 0 && !(selection & 1)) {\n var fillStyle = ctx.fillStyle;\n ctx.fillStyle = \"#ffffff\";\n ctx.fillRect(pX - miniHalf, pY - miniHalf, miniSize, miniSize);\n ctx.fillStyle = fillStyle;\n }\n }\n }\n function drawSegments(ctx, path, matrix) {\n var segments = path._segments, length = segments.length, coords = new Array(6), first = true, curX, curY, prevX, prevY, inX, inY, outX, outY;\n function drawSegment(segment) {\n if (matrix) {\n segment._transformCoordinates(matrix, coords);\n curX = coords[0];\n curY = coords[1];\n } else {\n var point = segment._point;\n curX = point._x;\n curY = point._y;\n }\n if (first) {\n ctx.moveTo(curX, curY);\n first = false;\n } else {\n if (matrix) {\n inX = coords[2];\n inY = coords[3];\n } else {\n var handle = segment._handleIn;\n inX = curX + handle._x;\n inY = curY + handle._y;\n }\n if (inX === curX && inY === curY && outX === prevX && outY === prevY) ctx.lineTo(curX, curY);\n else ctx.bezierCurveTo(outX, outY, inX, inY, curX, curY);\n }\n prevX = curX;\n prevY = curY;\n if (matrix) {\n outX = coords[4];\n outY = coords[5];\n } else {\n var handle = segment._handleOut;\n outX = prevX + handle._x;\n outY = prevY + handle._y;\n }\n }\n for(var i = 0; i < length; i++)drawSegment(segments[i]);\n if (path._closed && length > 0) drawSegment(segments[0]);\n }\n return {\n _draw: function(ctx, param, viewMatrix, strokeMatrix) {\n var dontStart = param.dontStart, dontPaint = param.dontFinish || param.clip, style = this.getStyle(), hasFill = style.hasFill(), hasStroke = style.hasStroke(), dashArray = style.getDashArray(), dashLength = !paper.support.nativeDash && hasStroke && dashArray && dashArray.length;\n if (!dontStart) ctx.beginPath();\n if (hasFill || hasStroke && !dashLength || dontPaint) {\n drawSegments(ctx, this, strokeMatrix);\n if (this._closed) ctx.closePath();\n }\n function getOffset(i) {\n return dashArray[(i % dashLength + dashLength) % dashLength];\n }\n if (!dontPaint && (hasFill || hasStroke)) {\n this._setStyles(ctx, param, viewMatrix);\n if (hasFill) {\n ctx.fill(style.getFillRule());\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n }\n if (hasStroke) {\n if (dashLength) {\n if (!dontStart) ctx.beginPath();\n var flattener = new PathFlattener(this, 0.25, 32, false, strokeMatrix), length = flattener.length, from = -style.getDashOffset(), to, i = 0;\n while(from > 0)from -= getOffset(i--) + getOffset(i--);\n while(from < length){\n to = from + getOffset(i++);\n if (from > 0 || to > 0) flattener.drawPart(ctx, Math.max(from, 0), Math.max(to, 0));\n from = to + getOffset(i++);\n }\n }\n ctx.stroke();\n }\n }\n },\n _drawSelected: function(ctx, matrix) {\n ctx.beginPath();\n drawSegments(ctx, this, matrix);\n ctx.stroke();\n drawHandles(ctx, this._segments, matrix, paper.settings.handleSize);\n }\n };\n }, new function() {\n function getCurrentSegment(that) {\n var segments = that._segments;\n if (!segments.length) throw new Error(\"Use a moveTo() command first\");\n return segments[segments.length - 1];\n }\n return {\n moveTo: function() {\n var segments = this._segments;\n if (segments.length === 1) this.removeSegment(0);\n if (!segments.length) this._add([\n new Segment(Point.read(arguments))\n ]);\n },\n moveBy: function() {\n throw new Error(\"moveBy() is unsupported on Path items.\");\n },\n lineTo: function() {\n this._add([\n new Segment(Point.read(arguments))\n ]);\n },\n cubicCurveTo: function() {\n var args = arguments, handle1 = Point.read(args), handle2 = Point.read(args), to = Point.read(args), current = getCurrentSegment(this);\n current.setHandleOut(handle1.subtract(current._point));\n this._add([\n new Segment(to, handle2.subtract(to))\n ]);\n },\n quadraticCurveTo: function() {\n var args = arguments, handle = Point.read(args), to = Point.read(args), current = getCurrentSegment(this)._point;\n this.cubicCurveTo(handle.add(current.subtract(handle).multiply(1 / 3)), handle.add(to.subtract(handle).multiply(1 / 3)), to);\n },\n curveTo: function() {\n var args = arguments, through = Point.read(args), to = Point.read(args), t = Base.pick(Base.read(args), 0.5), t1 = 1 - t, current = getCurrentSegment(this)._point, handle = through.subtract(current.multiply(t1 * t1)).subtract(to.multiply(t * t)).divide(2 * t * t1);\n if (handle.isNaN()) throw new Error(\"Cannot put a curve through points with parameter = \" + t);\n this.quadraticCurveTo(handle, to);\n },\n arcTo: function() {\n var args = arguments, abs = Math.abs, sqrt = Math.sqrt, current = getCurrentSegment(this), from = current._point, to = Point.read(args), through, peek = Base.peek(args), clockwise = Base.pick(peek, true), center, extent, vector, matrix;\n if (typeof clockwise === \"boolean\") var middle = from.add(to).divide(2), through = middle.add(middle.subtract(from).rotate(clockwise ? -90 : 90));\n else if (Base.remain(args) <= 2) {\n through = to;\n to = Point.read(args);\n } else if (!from.equals(to)) {\n var radius = Size.read(args), isZero = Numerical.isZero;\n if (isZero(radius.width) || isZero(radius.height)) return this.lineTo(to);\n var rotation = Base.read(args), clockwise = !!Base.read(args), large = !!Base.read(args), middle = from.add(to).divide(2), pt = from.subtract(middle).rotate(-rotation), x = pt.x, y = pt.y, rx = abs(radius.width), ry = abs(radius.height), rxSq = rx * rx, rySq = ry * ry, xSq = x * x, ySq = y * y;\n var factor = sqrt(xSq / rxSq + ySq / rySq);\n if (factor > 1) {\n rx *= factor;\n ry *= factor;\n rxSq = rx * rx;\n rySq = ry * ry;\n }\n factor = (rxSq * rySq - rxSq * ySq - rySq * xSq) / (rxSq * ySq + rySq * xSq);\n if (abs(factor) < 1e-12) factor = 0;\n if (factor < 0) throw new Error(\"Cannot create an arc with the given arguments\");\n center = new Point(rx * y / ry, -ry * x / rx).multiply((large === clockwise ? -1 : 1) * sqrt(factor)).rotate(rotation).add(middle);\n matrix = new Matrix().translate(center).rotate(rotation).scale(rx, ry);\n vector = matrix._inverseTransform(from);\n extent = vector.getDirectedAngle(matrix._inverseTransform(to));\n if (!clockwise && extent > 0) extent -= 360;\n else if (clockwise && extent < 0) extent += 360;\n }\n if (through) {\n var l1 = new Line(from.add(through).divide(2), through.subtract(from).rotate(90), true), l2 = new Line(through.add(to).divide(2), to.subtract(through).rotate(90), true), line = new Line(from, to), throughSide = line.getSide(through);\n center = l1.intersect(l2, true);\n if (!center) {\n if (!throughSide) return this.lineTo(to);\n throw new Error(\"Cannot create an arc with the given arguments\");\n }\n vector = from.subtract(center);\n extent = vector.getDirectedAngle(to.subtract(center));\n var centerSide = line.getSide(center, true);\n if (centerSide === 0) extent = throughSide * abs(extent);\n else if (throughSide === centerSide) extent += extent < 0 ? 360 : -360;\n }\n if (extent) {\n var epsilon = 1e-5, ext = abs(extent), count = ext >= 360 ? 4 : Math.ceil((ext - epsilon) / 90), inc = extent / count, half = inc * Math.PI / 360, z = 4 / 3 * Math.sin(half) / (1 + Math.cos(half)), segments = [];\n for(var i = 0; i <= count; i++){\n var pt = to, out = null;\n if (i < count) {\n out = vector.rotate(90).multiply(z);\n if (matrix) {\n pt = matrix._transformPoint(vector);\n out = matrix._transformPoint(vector.add(out)).subtract(pt);\n } else pt = center.add(vector);\n }\n if (!i) current.setHandleOut(out);\n else {\n var _in = vector.rotate(-90).multiply(z);\n if (matrix) _in = matrix._transformPoint(vector.add(_in)).subtract(pt);\n segments.push(new Segment(pt, _in, out));\n }\n vector = vector.rotate(inc);\n }\n this._add(segments);\n }\n },\n lineBy: function() {\n var to = Point.read(arguments), current = getCurrentSegment(this)._point;\n this.lineTo(current.add(to));\n },\n curveBy: function() {\n var args = arguments, through = Point.read(args), to = Point.read(args), parameter = Base.read(args), current = getCurrentSegment(this)._point;\n this.curveTo(current.add(through), current.add(to), parameter);\n },\n cubicCurveBy: function() {\n var args = arguments, handle1 = Point.read(args), handle2 = Point.read(args), to = Point.read(args), current = getCurrentSegment(this)._point;\n this.cubicCurveTo(current.add(handle1), current.add(handle2), current.add(to));\n },\n quadraticCurveBy: function() {\n var args = arguments, handle = Point.read(args), to = Point.read(args), current = getCurrentSegment(this)._point;\n this.quadraticCurveTo(current.add(handle), current.add(to));\n },\n arcBy: function() {\n var args = arguments, current = getCurrentSegment(this)._point, point = current.add(Point.read(args)), clockwise = Base.pick(Base.peek(args), true);\n if (typeof clockwise === \"boolean\") this.arcTo(point, clockwise);\n else this.arcTo(point, current.add(Point.read(args)));\n },\n closePath: function(tolerance) {\n this.setClosed(true);\n this.join(this, tolerance);\n }\n };\n }, {\n _getBounds: function(matrix, options) {\n var method = options.handle ? \"getHandleBounds\" : options.stroke ? \"getStrokeBounds\" : \"getBounds\";\n return Path[method](this._segments, this._closed, this, matrix, options);\n },\n statics: {\n getBounds: function(segments, closed, path, matrix, options, strokePadding) {\n var first = segments[0];\n if (!first) return new Rectangle();\n var coords = new Array(6), prevCoords = first._transformCoordinates(matrix, new Array(6)), min = prevCoords.slice(0, 2), max = min.slice(), roots = new Array(2);\n function processSegment(segment) {\n segment._transformCoordinates(matrix, coords);\n for(var i = 0; i < 2; i++)Curve._addBounds(prevCoords[i], prevCoords[i + 4], coords[i + 2], coords[i], i, strokePadding ? strokePadding[i] : 0, min, max, roots);\n var tmp = prevCoords;\n prevCoords = coords;\n coords = tmp;\n }\n for(var i = 1, l = segments.length; i < l; i++)processSegment(segments[i]);\n if (closed) processSegment(first);\n return new Rectangle(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n },\n getStrokeBounds: function(segments, closed, path, matrix, options) {\n var style = path.getStyle(), stroke = style.hasStroke(), strokeWidth = style.getStrokeWidth(), strokeMatrix = stroke && path._getStrokeMatrix(matrix, options), strokePadding = stroke && Path._getStrokePadding(strokeWidth, strokeMatrix), bounds = Path.getBounds(segments, closed, path, matrix, options, strokePadding);\n if (!stroke) return bounds;\n var strokeRadius = strokeWidth / 2, join = style.getStrokeJoin(), cap = style.getStrokeCap(), miterLimit = style.getMiterLimit(), joinBounds = new Rectangle(new Size(strokePadding));\n function addPoint(point) {\n bounds = bounds.include(point);\n }\n function addRound(segment) {\n bounds = bounds.unite(joinBounds.setCenter(segment._point.transform(matrix)));\n }\n function addJoin(segment, join) {\n if (join === \"round\" || segment.isSmooth()) addRound(segment);\n else Path._addBevelJoin(segment, join, strokeRadius, miterLimit, matrix, strokeMatrix, addPoint);\n }\n function addCap(segment, cap) {\n if (cap === \"round\") addRound(segment);\n else Path._addSquareCap(segment, cap, strokeRadius, matrix, strokeMatrix, addPoint);\n }\n var length = segments.length - (closed ? 0 : 1);\n if (length > 0) {\n for(var i = 1; i < length; i++)addJoin(segments[i], join);\n if (closed) addJoin(segments[0], join);\n else {\n addCap(segments[0], cap);\n addCap(segments[segments.length - 1], cap);\n }\n }\n return bounds;\n },\n _getStrokePadding: function(radius, matrix) {\n if (!matrix) return [\n radius,\n radius\n ];\n var hor = new Point(radius, 0).transform(matrix), ver = new Point(0, radius).transform(matrix), phi = hor.getAngleInRadians(), a = hor.getLength(), b = ver.getLength();\n var sin = Math.sin(phi), cos = Math.cos(phi), tan = Math.tan(phi), tx = Math.atan2(b * tan, a), ty = Math.atan2(b, tan * a);\n return [\n Math.abs(a * Math.cos(tx) * cos + b * Math.sin(tx) * sin),\n Math.abs(b * Math.sin(ty) * cos + a * Math.cos(ty) * sin)\n ];\n },\n _addBevelJoin: function(segment, join, radius, miterLimit, matrix, strokeMatrix, addPoint, isArea) {\n var curve2 = segment.getCurve(), curve1 = curve2.getPrevious(), point = curve2.getPoint1().transform(matrix), normal1 = curve1.getNormalAtTime(1).multiply(radius).transform(strokeMatrix), normal2 = curve2.getNormalAtTime(0).multiply(radius).transform(strokeMatrix), angle = normal1.getDirectedAngle(normal2);\n if (angle < 0 || angle >= 180) {\n normal1 = normal1.negate();\n normal2 = normal2.negate();\n }\n if (isArea) addPoint(point);\n addPoint(point.add(normal1));\n if (join === \"miter\") {\n var corner = new Line(point.add(normal1), new Point(-normal1.y, normal1.x), true).intersect(new Line(point.add(normal2), new Point(-normal2.y, normal2.x), true), true);\n if (corner && point.getDistance(corner) <= miterLimit * radius) addPoint(corner);\n }\n addPoint(point.add(normal2));\n },\n _addSquareCap: function(segment, cap, radius, matrix, strokeMatrix, addPoint, isArea) {\n var point = segment._point.transform(matrix), loc = segment.getLocation(), normal = loc.getNormal().multiply(loc.getTime() === 0 ? radius : -radius).transform(strokeMatrix);\n if (cap === \"square\") {\n if (isArea) {\n addPoint(point.subtract(normal));\n addPoint(point.add(normal));\n }\n point = point.add(normal.rotate(-90));\n }\n addPoint(point.add(normal));\n addPoint(point.subtract(normal));\n },\n getHandleBounds: function(segments, closed, path, matrix, options) {\n var style = path.getStyle(), stroke = options.stroke && style.hasStroke(), strokePadding, joinPadding;\n if (stroke) {\n var strokeMatrix = path._getStrokeMatrix(matrix, options), strokeRadius = style.getStrokeWidth() / 2, joinRadius = strokeRadius;\n if (style.getStrokeJoin() === \"miter\") joinRadius = strokeRadius * style.getMiterLimit();\n if (style.getStrokeCap() === \"square\") joinRadius = Math.max(joinRadius, strokeRadius * Math.SQRT2);\n strokePadding = Path._getStrokePadding(strokeRadius, strokeMatrix);\n joinPadding = Path._getStrokePadding(joinRadius, strokeMatrix);\n }\n var coords = new Array(6), x1 = Infinity, x2 = -x1, y1 = x1, y2 = x2;\n for(var i = 0, l = segments.length; i < l; i++){\n var segment = segments[i];\n segment._transformCoordinates(matrix, coords);\n for(var j = 0; j < 6; j += 2){\n var padding = !j ? joinPadding : strokePadding, paddingX = padding ? padding[0] : 0, paddingY = padding ? padding[1] : 0, x = coords[j], y = coords[j + 1], xn = x - paddingX, xx = x + paddingX, yn = y - paddingY, yx = y + paddingY;\n if (xn < x1) x1 = xn;\n if (xx > x2) x2 = xx;\n if (yn < y1) y1 = yn;\n if (yx > y2) y2 = yx;\n }\n }\n return new Rectangle(x1, y1, x2 - x1, y2 - y1);\n }\n }\n });\n Path.inject({\n statics: new function() {\n var kappa = 0.5522847498307936, ellipseSegments = [\n new Segment([\n -1,\n 0\n ], [\n 0,\n kappa\n ], [\n 0,\n -kappa\n ]),\n new Segment([\n 0,\n -1\n ], [\n -kappa,\n 0\n ], [\n kappa,\n 0\n ]),\n new Segment([\n 1,\n 0\n ], [\n 0,\n -kappa\n ], [\n 0,\n kappa\n ]),\n new Segment([\n 0,\n 1\n ], [\n kappa,\n 0\n ], [\n -kappa,\n 0\n ])\n ];\n function createPath(segments, closed, args) {\n var props = Base.getNamed(args), path = new Path(props && (props.insert == true ? Item.INSERT : props.insert == false ? Item.NO_INSERT : null));\n path._add(segments);\n path._closed = closed;\n return path.set(props, Item.INSERT);\n }\n function createEllipse(center, radius, args) {\n var segments = new Array(4);\n for(var i = 0; i < 4; i++){\n var segment = ellipseSegments[i];\n segments[i] = new Segment(segment._point.multiply(radius).add(center), segment._handleIn.multiply(radius), segment._handleOut.multiply(radius));\n }\n return createPath(segments, true, args);\n }\n return {\n Line: function() {\n var args = arguments;\n return createPath([\n new Segment(Point.readNamed(args, \"from\")),\n new Segment(Point.readNamed(args, \"to\"))\n ], false, args);\n },\n Circle: function() {\n var args = arguments, center = Point.readNamed(args, \"center\"), radius = Base.readNamed(args, \"radius\");\n return createEllipse(center, new Size(radius), args);\n },\n Rectangle: function() {\n var args = arguments, rect = Rectangle.readNamed(args, \"rectangle\"), radius = Size.readNamed(args, \"radius\", 0, {\n readNull: true\n }), bl = rect.getBottomLeft(true), tl = rect.getTopLeft(true), tr = rect.getTopRight(true), br = rect.getBottomRight(true), segments;\n if (!radius || radius.isZero()) segments = [\n new Segment(bl),\n new Segment(tl),\n new Segment(tr),\n new Segment(br)\n ];\n else {\n radius = Size.min(radius, rect.getSize(true).divide(2));\n var rx = radius.width, ry = radius.height, hx = rx * kappa, hy = ry * kappa;\n segments = [\n new Segment(bl.add(rx, 0), null, [\n -hx,\n 0\n ]),\n new Segment(bl.subtract(0, ry), [\n 0,\n hy\n ]),\n new Segment(tl.add(0, ry), null, [\n 0,\n -hy\n ]),\n new Segment(tl.add(rx, 0), [\n -hx,\n 0\n ], null),\n new Segment(tr.subtract(rx, 0), null, [\n hx,\n 0\n ]),\n new Segment(tr.add(0, ry), [\n 0,\n -hy\n ], null),\n new Segment(br.subtract(0, ry), null, [\n 0,\n hy\n ]),\n new Segment(br.subtract(rx, 0), [\n hx,\n 0\n ])\n ];\n }\n return createPath(segments, true, args);\n },\n RoundRectangle: \"#Rectangle\",\n Ellipse: function() {\n var args = arguments, ellipse = Shape._readEllipse(args);\n return createEllipse(ellipse.center, ellipse.radius, args);\n },\n Oval: \"#Ellipse\",\n Arc: function() {\n var args = arguments, from = Point.readNamed(args, \"from\"), through = Point.readNamed(args, \"through\"), to = Point.readNamed(args, \"to\"), props = Base.getNamed(args), path = new Path(props && props.insert == false && Item.NO_INSERT);\n path.moveTo(from);\n path.arcTo(through, to);\n return path.set(props);\n },\n RegularPolygon: function() {\n var args = arguments, center = Point.readNamed(args, \"center\"), sides = Base.readNamed(args, \"sides\"), radius = Base.readNamed(args, \"radius\"), step = 360 / sides, three = sides % 3 === 0, vector = new Point(0, three ? -radius : radius), offset = three ? -1 : 0.5, segments = new Array(sides);\n for(var i = 0; i < sides; i++)segments[i] = new Segment(center.add(vector.rotate((i + offset) * step)));\n return createPath(segments, true, args);\n },\n Star: function() {\n var args = arguments, center = Point.readNamed(args, \"center\"), points = Base.readNamed(args, \"points\") * 2, radius1 = Base.readNamed(args, \"radius1\"), radius2 = Base.readNamed(args, \"radius2\"), step = 360 / points, vector = new Point(0, -1), segments = new Array(points);\n for(var i = 0; i < points; i++)segments[i] = new Segment(center.add(vector.rotate(step * i).multiply(i % 2 ? radius2 : radius1)));\n return createPath(segments, true, args);\n }\n };\n }\n });\n var CompoundPath = PathItem.extend({\n _class: \"CompoundPath\",\n _serializeFields: {\n children: []\n },\n beans: true,\n initialize: function CompoundPath(arg) {\n this._children = [];\n this._namedChildren = {};\n if (!this._initialize(arg)) {\n if (typeof arg === \"string\") this.setPathData(arg);\n else this.addChildren(Array.isArray(arg) ? arg : arguments);\n }\n },\n insertChildren: function insertChildren(index, items) {\n var list = items, first = list[0];\n if (first && typeof first[0] === \"number\") list = [\n list\n ];\n for(var i = items.length - 1; i >= 0; i--){\n var item = list[i];\n if (list === items && !(item instanceof Path)) list = Base.slice(list);\n if (Array.isArray(item)) list[i] = new Path({\n segments: item,\n insert: false\n });\n else if (item instanceof CompoundPath) {\n list.splice.apply(list, [\n i,\n 1\n ].concat(item.removeChildren()));\n item.remove();\n }\n }\n return insertChildren.base.call(this, index, list);\n },\n reduce: function reduce(options) {\n var children = this._children;\n for(var i = children.length - 1; i >= 0; i--){\n var path = children[i].reduce(options);\n if (path.isEmpty()) path.remove();\n }\n if (!children.length) {\n var path = new Path(Item.NO_INSERT);\n path.copyAttributes(this);\n path.insertAbove(this);\n this.remove();\n return path;\n }\n return reduce.base.call(this);\n },\n isClosed: function() {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++){\n if (!children[i]._closed) return false;\n }\n return true;\n },\n setClosed: function(closed) {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)children[i].setClosed(closed);\n },\n getFirstSegment: function() {\n var first = this.getFirstChild();\n return first && first.getFirstSegment();\n },\n getLastSegment: function() {\n var last = this.getLastChild();\n return last && last.getLastSegment();\n },\n getCurves: function() {\n var children = this._children, curves = [];\n for(var i = 0, l = children.length; i < l; i++)Base.push(curves, children[i].getCurves());\n return curves;\n },\n getFirstCurve: function() {\n var first = this.getFirstChild();\n return first && first.getFirstCurve();\n },\n getLastCurve: function() {\n var last = this.getLastChild();\n return last && last.getLastCurve();\n },\n getArea: function() {\n var children = this._children, area = 0;\n for(var i = 0, l = children.length; i < l; i++)area += children[i].getArea();\n return area;\n },\n getLength: function() {\n var children = this._children, length = 0;\n for(var i = 0, l = children.length; i < l; i++)length += children[i].getLength();\n return length;\n },\n getPathData: function(_matrix, _precision) {\n var children = this._children, paths = [];\n for(var i = 0, l = children.length; i < l; i++){\n var child = children[i], mx = child._matrix;\n paths.push(child.getPathData(_matrix && !mx.isIdentity() ? _matrix.appended(mx) : _matrix, _precision));\n }\n return paths.join(\"\");\n },\n _hitTestChildren: function _hitTestChildren(point, options, viewMatrix) {\n return _hitTestChildren.base.call(this, point, options.class === Path || options.type === \"path\" ? options : Base.set({}, options, {\n fill: false\n }), viewMatrix);\n },\n _draw: function(ctx, param, viewMatrix, strokeMatrix) {\n var children = this._children;\n if (!children.length) return;\n param = param.extend({\n dontStart: true,\n dontFinish: true\n });\n ctx.beginPath();\n for(var i = 0, l = children.length; i < l; i++)children[i].draw(ctx, param, strokeMatrix);\n if (!param.clip) {\n this._setStyles(ctx, param, viewMatrix);\n var style = this._style;\n if (style.hasFill()) {\n ctx.fill(style.getFillRule());\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n }\n if (style.hasStroke()) ctx.stroke();\n }\n },\n _drawSelected: function(ctx, matrix, selectionItems) {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++){\n var child = children[i], mx = child._matrix;\n if (!selectionItems[child._id]) child._drawSelected(ctx, mx.isIdentity() ? matrix : matrix.appended(mx));\n }\n }\n }, new function() {\n function getCurrentPath(that, check) {\n var children = that._children;\n if (check && !children.length) throw new Error(\"Use a moveTo() command first\");\n return children[children.length - 1];\n }\n return Base.each([\n \"lineTo\",\n \"cubicCurveTo\",\n \"quadraticCurveTo\",\n \"curveTo\",\n \"arcTo\",\n \"lineBy\",\n \"cubicCurveBy\",\n \"quadraticCurveBy\",\n \"curveBy\",\n \"arcBy\"\n ], function(key) {\n this[key] = function() {\n var path = getCurrentPath(this, true);\n path[key].apply(path, arguments);\n };\n }, {\n moveTo: function() {\n var current = getCurrentPath(this), path = current && current.isEmpty() ? current : new Path(Item.NO_INSERT);\n if (path !== current) this.addChild(path);\n path.moveTo.apply(path, arguments);\n },\n moveBy: function() {\n var current = getCurrentPath(this, true), last = current && current.getLastSegment(), point = Point.read(arguments);\n this.moveTo(last ? point.add(last._point) : point);\n },\n closePath: function(tolerance) {\n getCurrentPath(this, true).closePath(tolerance);\n }\n });\n }, Base.each([\n \"reverse\",\n \"flatten\",\n \"simplify\",\n \"smooth\"\n ], function(key) {\n this[key] = function(param) {\n var children = this._children, res;\n for(var i = 0, l = children.length; i < l; i++)res = children[i][key](param) || res;\n return res;\n };\n }, {}));\n PathItem.inject(new function() {\n var min = Math.min, max = Math.max, abs = Math.abs, operators = {\n unite: {\n \"1\": true,\n \"2\": true\n },\n intersect: {\n \"2\": true\n },\n subtract: {\n \"1\": true\n },\n exclude: {\n \"1\": true,\n \"-1\": true\n }\n };\n function getPaths(path) {\n return path._children || [\n path\n ];\n }\n function preparePath(path, resolve) {\n var res = path.clone(false).reduce({\n simplify: true\n }).transform(null, true, true);\n if (resolve) {\n var paths = getPaths(res);\n for(var i = 0, l = paths.length; i < l; i++){\n var path = paths[i];\n if (!path._closed && !path.isEmpty()) {\n path.closePath(1e-12);\n path.getFirstSegment().setHandleIn(0, 0);\n path.getLastSegment().setHandleOut(0, 0);\n }\n }\n res = res.resolveCrossings().reorient(res.getFillRule() === \"nonzero\", true);\n }\n return res;\n }\n function createResult(paths, simplify, path1, path2, options) {\n var result = new CompoundPath(Item.NO_INSERT);\n result.addChildren(paths, true);\n result = result.reduce({\n simplify: simplify\n });\n if (!(options && options.insert == false)) result.insertAbove(path2 && path1.isSibling(path2) && path1.getIndex() < path2.getIndex() ? path2 : path1);\n result.copyAttributes(path1, true);\n return result;\n }\n function filterIntersection(inter) {\n return inter.hasOverlap() || inter.isCrossing();\n }\n function traceBoolean(path1, path2, operation, options) {\n if (options && (options.trace == false || options.stroke) && /^(subtract|intersect)$/.test(operation)) return splitBoolean(path1, path2, operation);\n var _path1 = preparePath(path1, true), _path2 = path2 && path1 !== path2 && preparePath(path2, true), operator = operators[operation];\n operator[operation] = true;\n if (_path2 && (operator.subtract || operator.exclude) ^ (_path2.isClockwise() ^ _path1.isClockwise())) _path2.reverse();\n var crossings = divideLocations(CurveLocation.expand(_path1.getIntersections(_path2, filterIntersection))), paths1 = getPaths(_path1), paths2 = _path2 && getPaths(_path2), segments = [], curves = [], paths;\n function collectPaths(paths) {\n for(var i = 0, l = paths.length; i < l; i++){\n var path = paths[i];\n Base.push(segments, path._segments);\n Base.push(curves, path.getCurves());\n path._overlapsOnly = true;\n }\n }\n function getCurves(indices) {\n var list = [];\n for(var i = 0, l = indices && indices.length; i < l; i++)list.push(curves[indices[i]]);\n return list;\n }\n if (crossings.length) {\n collectPaths(paths1);\n if (paths2) collectPaths(paths2);\n var curvesValues = new Array(curves.length);\n for(var i = 0, l = curves.length; i < l; i++)curvesValues[i] = curves[i].getValues();\n var curveCollisions = CollisionDetection.findCurveBoundsCollisions(curvesValues, curvesValues, 0, true);\n var curveCollisionsMap = {};\n for(var i = 0; i < curves.length; i++){\n var curve = curves[i], id = curve._path._id, map = curveCollisionsMap[id] = curveCollisionsMap[id] || {};\n map[curve.getIndex()] = {\n hor: getCurves(curveCollisions[i].hor),\n ver: getCurves(curveCollisions[i].ver)\n };\n }\n for(var i = 0, l = crossings.length; i < l; i++)propagateWinding(crossings[i]._segment, _path1, _path2, curveCollisionsMap, operator);\n for(var i = 0, l = segments.length; i < l; i++){\n var segment = segments[i], inter = segment._intersection;\n if (!segment._winding) propagateWinding(segment, _path1, _path2, curveCollisionsMap, operator);\n if (!(inter && inter._overlap)) segment._path._overlapsOnly = false;\n }\n paths = tracePaths(segments, operator);\n } else paths = reorientPaths(paths2 ? paths1.concat(paths2) : paths1.slice(), function(w) {\n return !!operator[w];\n });\n return createResult(paths, true, path1, path2, options);\n }\n function splitBoolean(path1, path2, operation) {\n var _path1 = preparePath(path1), _path2 = preparePath(path2), crossings = _path1.getIntersections(_path2, filterIntersection), subtract = operation === \"subtract\", divide = operation === \"divide\", added = {}, paths = [];\n function addPath(path) {\n if (!added[path._id] && (divide || _path2.contains(path.getPointAt(path.getLength() / 2)) ^ subtract)) {\n paths.unshift(path);\n return added[path._id] = true;\n }\n }\n for(var i = crossings.length - 1; i >= 0; i--){\n var path = crossings[i].split();\n if (path) {\n if (addPath(path)) path.getFirstSegment().setHandleIn(0, 0);\n _path1.getLastSegment().setHandleOut(0, 0);\n }\n }\n addPath(_path1);\n return createResult(paths, false, path1, path2);\n }\n function linkIntersections(from, to) {\n var prev = from;\n while(prev){\n if (prev === to) return;\n prev = prev._previous;\n }\n while(from._next && from._next !== to)from = from._next;\n if (!from._next) {\n while(to._previous)to = to._previous;\n from._next = to;\n to._previous = from;\n }\n }\n function clearCurveHandles(curves) {\n for(var i = curves.length - 1; i >= 0; i--)curves[i].clearHandles();\n }\n function reorientPaths(paths, isInside, clockwise) {\n var length = paths && paths.length;\n if (length) {\n var lookup = Base.each(paths, function(path, i) {\n this[path._id] = {\n container: null,\n winding: path.isClockwise() ? 1 : -1,\n index: i\n };\n }, {}), sorted = paths.slice().sort(function(a, b) {\n return abs(b.getArea()) - abs(a.getArea());\n }), first = sorted[0];\n var collisions = CollisionDetection.findItemBoundsCollisions(sorted, null, Numerical.GEOMETRIC_EPSILON);\n if (clockwise == null) clockwise = first.isClockwise();\n for(var i = 0; i < length; i++){\n var path1 = sorted[i], entry1 = lookup[path1._id], containerWinding = 0, indices = collisions[i];\n if (indices) {\n var point = null;\n for(var j = indices.length - 1; j >= 0; j--)if (indices[j] < i) {\n point = point || path1.getInteriorPoint();\n var path2 = sorted[indices[j]];\n if (path2.contains(point)) {\n var entry2 = lookup[path2._id];\n containerWinding = entry2.winding;\n entry1.winding += containerWinding;\n entry1.container = entry2.exclude ? entry2.container : path2;\n break;\n }\n }\n }\n if (isInside(entry1.winding) === isInside(containerWinding)) {\n entry1.exclude = true;\n paths[entry1.index] = null;\n } else {\n var container = entry1.container;\n path1.setClockwise(container ? !container.isClockwise() : clockwise);\n }\n }\n }\n return paths;\n }\n function divideLocations(locations, include, clearLater) {\n var results = include && [], tMin = 1e-8, tMax = 1 - tMin, clearHandles = false, clearCurves = clearLater || [], clearLookup = clearLater && {}, renormalizeLocs, prevCurve, prevTime;\n function getId(curve) {\n return curve._path._id + \".\" + curve._segment1._index;\n }\n for(var i = (clearLater && clearLater.length) - 1; i >= 0; i--){\n var curve = clearLater[i];\n if (curve._path) clearLookup[getId(curve)] = true;\n }\n for(var i = locations.length - 1; i >= 0; i--){\n var loc = locations[i], time = loc._time, origTime = time, exclude = include && !include(loc), curve = loc._curve, segment;\n if (curve) {\n if (curve !== prevCurve) {\n clearHandles = !curve.hasHandles() || clearLookup && clearLookup[getId(curve)];\n renormalizeLocs = [];\n prevTime = null;\n prevCurve = curve;\n } else if (prevTime >= tMin) time /= prevTime;\n }\n if (exclude) {\n if (renormalizeLocs) renormalizeLocs.push(loc);\n continue;\n } else if (include) results.unshift(loc);\n prevTime = origTime;\n if (time < tMin) segment = curve._segment1;\n else if (time > tMax) segment = curve._segment2;\n else {\n var newCurve = curve.divideAtTime(time, true);\n if (clearHandles) clearCurves.push(curve, newCurve);\n segment = newCurve._segment1;\n for(var j = renormalizeLocs.length - 1; j >= 0; j--){\n var l = renormalizeLocs[j];\n l._time = (l._time - time) / (1 - time);\n }\n }\n loc._setSegment(segment);\n var inter = segment._intersection, dest = loc._intersection;\n if (inter) {\n linkIntersections(inter, dest);\n var other = inter;\n while(other){\n linkIntersections(other._intersection, inter);\n other = other._next;\n }\n } else segment._intersection = dest;\n }\n if (!clearLater) clearCurveHandles(clearCurves);\n return results || locations;\n }\n function getWinding(point, curves, dir, closed, dontFlip) {\n var curvesList = Array.isArray(curves) ? curves : curves[dir ? \"hor\" : \"ver\"];\n var ia = dir ? 1 : 0, io = ia ^ 1, pv = [\n point.x,\n point.y\n ], pa = pv[ia], po = pv[io], windingEpsilon = 1e-9, qualityEpsilon = 1e-6, paL = pa - windingEpsilon, paR = pa + windingEpsilon, windingL = 0, windingR = 0, pathWindingL = 0, pathWindingR = 0, onPath = false, onAnyPath = false, quality = 1, roots = [], vPrev, vClose;\n function addWinding(v) {\n var o0 = v[io + 0], o3 = v[io + 6];\n if (po < min(o0, o3) || po > max(o0, o3)) return;\n var a0 = v[ia + 0], a1 = v[ia + 2], a2 = v[ia + 4], a3 = v[ia + 6];\n if (o0 === o3) {\n if (a0 < paR && a3 > paL || a3 < paR && a0 > paL) onPath = true;\n return;\n }\n var t = po === o0 ? 0 : po === o3 ? 1 : paL > max(a0, a1, a2, a3) || paR < min(a0, a1, a2, a3) ? 1 : Curve.solveCubic(v, io, po, roots, 0, 1) > 0 ? roots[0] : 1, a = t === 0 ? a0 : t === 1 ? a3 : Curve.getPoint(v, t)[dir ? \"y\" : \"x\"], winding = o0 > o3 ? 1 : -1, windingPrev = vPrev[io] > vPrev[io + 6] ? 1 : -1, a3Prev = vPrev[ia + 6];\n if (po !== o0) {\n if (a < paL) pathWindingL += winding;\n else if (a > paR) pathWindingR += winding;\n else onPath = true;\n if (a > pa - qualityEpsilon && a < pa + qualityEpsilon) quality /= 2;\n } else {\n if (winding !== windingPrev) {\n if (a0 < paL) pathWindingL += winding;\n else if (a0 > paR) pathWindingR += winding;\n } else if (a0 != a3Prev) {\n if (a3Prev < paR && a > paR) {\n pathWindingR += winding;\n onPath = true;\n } else if (a3Prev > paL && a < paL) {\n pathWindingL += winding;\n onPath = true;\n }\n }\n quality /= 4;\n }\n vPrev = v;\n return !dontFlip && a > paL && a < paR && Curve.getTangent(v, t)[dir ? \"x\" : \"y\"] === 0 && getWinding(point, curves, !dir, closed, true);\n }\n function handleCurve(v) {\n var o0 = v[io + 0], o1 = v[io + 2], o2 = v[io + 4], o3 = v[io + 6];\n if (po <= max(o0, o1, o2, o3) && po >= min(o0, o1, o2, o3)) {\n var a0 = v[ia + 0], a1 = v[ia + 2], a2 = v[ia + 4], a3 = v[ia + 6], monoCurves = paL > max(a0, a1, a2, a3) || paR < min(a0, a1, a2, a3) ? [\n v\n ] : Curve.getMonoCurves(v, dir), res;\n for(var i = 0, l = monoCurves.length; i < l; i++){\n if (res = addWinding(monoCurves[i])) return res;\n }\n }\n }\n for(var i = 0, l = curvesList.length; i < l; i++){\n var curve = curvesList[i], path = curve._path, v = curve.getValues(), res;\n if (!i || curvesList[i - 1]._path !== path) {\n vPrev = null;\n if (!path._closed) {\n vClose = Curve.getValues(path.getLastCurve().getSegment2(), curve.getSegment1(), null, !closed);\n if (vClose[io] !== vClose[io + 6]) vPrev = vClose;\n }\n if (!vPrev) {\n vPrev = v;\n var prev = path.getLastCurve();\n while(prev && prev !== curve){\n var v2 = prev.getValues();\n if (v2[io] !== v2[io + 6]) {\n vPrev = v2;\n break;\n }\n prev = prev.getPrevious();\n }\n }\n }\n if (res = handleCurve(v)) return res;\n if (i + 1 === l || curvesList[i + 1]._path !== path) {\n if (vClose && (res = handleCurve(vClose))) return res;\n if (onPath && !pathWindingL && !pathWindingR) pathWindingL = pathWindingR = path.isClockwise(closed) ^ dir ? 1 : -1;\n windingL += pathWindingL;\n windingR += pathWindingR;\n pathWindingL = pathWindingR = 0;\n if (onPath) {\n onAnyPath = true;\n onPath = false;\n }\n vClose = null;\n }\n }\n windingL = abs(windingL);\n windingR = abs(windingR);\n return {\n winding: max(windingL, windingR),\n windingL: windingL,\n windingR: windingR,\n quality: quality,\n onPath: onAnyPath\n };\n }\n function propagateWinding(segment, path1, path2, curveCollisionsMap, operator) {\n var chain = [], start = segment, totalLength = 0, winding;\n do {\n var curve = segment.getCurve();\n if (curve) {\n var length = curve.getLength();\n chain.push({\n segment: segment,\n curve: curve,\n length: length\n });\n totalLength += length;\n }\n segment = segment.getNext();\n }while (segment && !segment._intersection && segment !== start);\n var offsets = [\n 0.5,\n 0.25,\n 0.75\n ], winding = {\n winding: 0,\n quality: -1\n }, tMin = 1e-3, tMax = 1 - tMin;\n for(var i = 0; i < offsets.length && winding.quality < 0.5; i++){\n var length = totalLength * offsets[i];\n for(var j = 0, l = chain.length; j < l; j++){\n var entry = chain[j], curveLength = entry.length;\n if (length <= curveLength) {\n var curve = entry.curve, path = curve._path, parent = path._parent, operand = parent instanceof CompoundPath ? parent : path, t = Numerical.clamp(curve.getTimeAt(length), tMin, tMax), pt = curve.getPointAtTime(t), dir = abs(curve.getTangentAtTime(t).y) < Math.SQRT1_2;\n var wind = null;\n if (operator.subtract && path2) {\n var otherPath = operand === path1 ? path2 : path1, pathWinding = otherPath._getWinding(pt, dir, true);\n if (operand === path1 && pathWinding.winding || operand === path2 && !pathWinding.winding) {\n if (pathWinding.quality < 1) continue;\n else wind = {\n winding: 0,\n quality: 1\n };\n }\n }\n wind = wind || getWinding(pt, curveCollisionsMap[path._id][curve.getIndex()], dir, true);\n if (wind.quality > winding.quality) winding = wind;\n break;\n }\n length -= curveLength;\n }\n }\n for(var j = chain.length - 1; j >= 0; j--)chain[j].segment._winding = winding;\n }\n function tracePaths(segments, operator) {\n var paths = [], starts;\n function isValid(seg) {\n var winding;\n return !!(seg && !seg._visited && (!operator || operator[(winding = seg._winding || {}).winding] && !(operator.unite && winding.winding === 2 && winding.windingL && winding.windingR)));\n }\n function isStart(seg) {\n if (seg) for(var i = 0, l = starts.length; i < l; i++){\n if (seg === starts[i]) return true;\n }\n return false;\n }\n function visitPath(path) {\n var segments = path._segments;\n for(var i = 0, l = segments.length; i < l; i++)segments[i]._visited = true;\n }\n function getCrossingSegments(segment, collectStarts) {\n var inter = segment._intersection, start = inter, crossings = [];\n if (collectStarts) starts = [\n segment\n ];\n function collect(inter, end) {\n while(inter && inter !== end){\n var other = inter._segment, path = other && other._path;\n if (path) {\n var next = other.getNext() || path.getFirstSegment(), nextInter = next._intersection;\n if (other !== segment && (isStart(other) || isStart(next) || next && isValid(other) && (isValid(next) || nextInter && isValid(nextInter._segment)))) crossings.push(other);\n if (collectStarts) starts.push(other);\n }\n inter = inter._next;\n }\n }\n if (inter) {\n collect(inter);\n while(inter && inter._previous)inter = inter._previous;\n collect(inter, start);\n }\n return crossings;\n }\n segments.sort(function(seg1, seg2) {\n var inter1 = seg1._intersection, inter2 = seg2._intersection, over1 = !!(inter1 && inter1._overlap), over2 = !!(inter2 && inter2._overlap), path1 = seg1._path, path2 = seg2._path;\n return over1 ^ over2 ? over1 ? 1 : -1 : !inter1 ^ !inter2 ? inter1 ? 1 : -1 : path1 !== path2 ? path1._id - path2._id : seg1._index - seg2._index;\n });\n for(var i = 0, l = segments.length; i < l; i++){\n var seg = segments[i], valid = isValid(seg), path = null, finished = false, closed = true, branches = [], branch, visited, handleIn;\n if (valid && seg._path._overlapsOnly) {\n var path1 = seg._path, path2 = seg._intersection._segment._path;\n if (path1.compare(path2)) {\n if (path1.getArea()) paths.push(path1.clone(false));\n visitPath(path1);\n visitPath(path2);\n valid = false;\n }\n }\n while(valid){\n var first = !path, crossings = getCrossingSegments(seg, first), other = crossings.shift(), finished = !first && (isStart(seg) || isStart(other)), cross = !finished && other;\n if (first) {\n path = new Path(Item.NO_INSERT);\n branch = null;\n }\n if (finished) {\n if (seg.isFirst() || seg.isLast()) closed = seg._path._closed;\n seg._visited = true;\n break;\n }\n if (cross && branch) {\n branches.push(branch);\n branch = null;\n }\n if (!branch) {\n if (cross) crossings.push(seg);\n branch = {\n start: path._segments.length,\n crossings: crossings,\n visited: visited = [],\n handleIn: handleIn\n };\n }\n if (cross) seg = other;\n if (!isValid(seg)) {\n path.removeSegments(branch.start);\n for(var j = 0, k = visited.length; j < k; j++)visited[j]._visited = false;\n visited.length = 0;\n do {\n seg = branch && branch.crossings.shift();\n if (!seg || !seg._path) {\n seg = null;\n branch = branches.pop();\n if (branch) {\n visited = branch.visited;\n handleIn = branch.handleIn;\n }\n }\n }while (branch && !isValid(seg));\n if (!seg) break;\n }\n var next = seg.getNext();\n path.add(new Segment(seg._point, handleIn, next && seg._handleOut));\n seg._visited = true;\n visited.push(seg);\n seg = next || seg._path.getFirstSegment();\n handleIn = next && next._handleIn;\n }\n if (finished) {\n if (closed) {\n path.getFirstSegment().setHandleIn(handleIn);\n path.setClosed(closed);\n }\n if (path.getArea() !== 0) paths.push(path);\n }\n }\n return paths;\n }\n return {\n _getWinding: function(point, dir, closed) {\n return getWinding(point, this.getCurves(), dir, closed);\n },\n unite: function(path, options) {\n return traceBoolean(this, path, \"unite\", options);\n },\n intersect: function(path, options) {\n return traceBoolean(this, path, \"intersect\", options);\n },\n subtract: function(path, options) {\n return traceBoolean(this, path, \"subtract\", options);\n },\n exclude: function(path, options) {\n return traceBoolean(this, path, \"exclude\", options);\n },\n divide: function(path, options) {\n return options && (options.trace == false || options.stroke) ? splitBoolean(this, path, \"divide\") : createResult([\n this.subtract(path, options),\n this.intersect(path, options)\n ], true, this, path, options);\n },\n resolveCrossings: function() {\n var children = this._children, paths = children || [\n this\n ];\n function hasOverlap(seg, path) {\n var inter = seg && seg._intersection;\n return inter && inter._overlap && inter._path === path;\n }\n var hasOverlaps = false, hasCrossings = false, intersections = this.getIntersections(null, function(inter) {\n return inter.hasOverlap() && (hasOverlaps = true) || inter.isCrossing() && (hasCrossings = true);\n }), clearCurves = hasOverlaps && hasCrossings && [];\n intersections = CurveLocation.expand(intersections);\n if (hasOverlaps) {\n var overlaps = divideLocations(intersections, function(inter) {\n return inter.hasOverlap();\n }, clearCurves);\n for(var i = overlaps.length - 1; i >= 0; i--){\n var overlap = overlaps[i], path = overlap._path, seg = overlap._segment, prev = seg.getPrevious(), next = seg.getNext();\n if (hasOverlap(prev, path) && hasOverlap(next, path)) {\n seg.remove();\n prev._handleOut._set(0, 0);\n next._handleIn._set(0, 0);\n if (prev !== seg && !prev.getCurve().hasLength()) {\n next._handleIn.set(prev._handleIn);\n prev.remove();\n }\n }\n }\n }\n if (hasCrossings) {\n divideLocations(intersections, hasOverlaps && function(inter) {\n var curve1 = inter.getCurve(), seg1 = inter.getSegment(), other = inter._intersection, curve2 = other._curve, seg2 = other._segment;\n if (curve1 && curve2 && curve1._path && curve2._path) return true;\n if (seg1) seg1._intersection = null;\n if (seg2) seg2._intersection = null;\n }, clearCurves);\n if (clearCurves) clearCurveHandles(clearCurves);\n paths = tracePaths(Base.each(paths, function(path) {\n Base.push(this, path._segments);\n }, []));\n }\n var length = paths.length, item;\n if (length > 1 && children) {\n if (paths !== children) this.setChildren(paths);\n item = this;\n } else if (length === 1 && !children) {\n if (paths[0] !== this) this.setSegments(paths[0].removeSegments());\n item = this;\n }\n if (!item) {\n item = new CompoundPath(Item.NO_INSERT);\n item.addChildren(paths);\n item = item.reduce();\n item.copyAttributes(this);\n this.replaceWith(item);\n }\n return item;\n },\n reorient: function(nonZero, clockwise) {\n var children = this._children;\n if (children && children.length) this.setChildren(reorientPaths(this.removeChildren(), function(w) {\n return !!(nonZero ? w : w & 1);\n }, clockwise));\n else if (clockwise !== undefined) this.setClockwise(clockwise);\n return this;\n },\n getInteriorPoint: function() {\n var bounds = this.getBounds(), point = bounds.getCenter(true);\n if (!this.contains(point)) {\n var curves = this.getCurves(), y = point.y, intercepts = [], roots = [];\n for(var i = 0, l = curves.length; i < l; i++){\n var v = curves[i].getValues(), o0 = v[1], o1 = v[3], o2 = v[5], o3 = v[7];\n if (y >= min(o0, o1, o2, o3) && y <= max(o0, o1, o2, o3)) {\n var monoCurves = Curve.getMonoCurves(v);\n for(var j = 0, m = monoCurves.length; j < m; j++){\n var mv = monoCurves[j], mo0 = mv[1], mo3 = mv[7];\n if (mo0 !== mo3 && (y >= mo0 && y <= mo3 || y >= mo3 && y <= mo0)) {\n var x = y === mo0 ? mv[0] : y === mo3 ? mv[6] : Curve.solveCubic(mv, 1, y, roots, 0, 1) === 1 ? Curve.getPoint(mv, roots[0]).x : (mv[0] + mv[6]) / 2;\n intercepts.push(x);\n }\n }\n }\n }\n if (intercepts.length > 1) {\n intercepts.sort(function(a, b) {\n return a - b;\n });\n point.x = (intercepts[0] + intercepts[1]) / 2;\n }\n }\n return point;\n }\n };\n });\n var PathFlattener = Base.extend({\n _class: \"PathFlattener\",\n initialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {\n var curves = [], parts = [], length = 0, minSpan = 1 / (maxRecursion || 32), segments = path._segments, segment1 = segments[0], segment2;\n function addCurve(segment1, segment2) {\n var curve = Curve.getValues(segment1, segment2, matrix);\n curves.push(curve);\n computeParts(curve, segment1._index, 0, 1);\n }\n function computeParts(curve, index, t1, t2) {\n if (t2 - t1 > minSpan && !(ignoreStraight && Curve.isStraight(curve)) && !Curve.isFlatEnough(curve, flatness || 0.25)) {\n var halves = Curve.subdivide(curve, 0.5), tMid = (t1 + t2) / 2;\n computeParts(halves[0], index, t1, tMid);\n computeParts(halves[1], index, tMid, t2);\n } else {\n var dx = curve[6] - curve[0], dy = curve[7] - curve[1], dist = Math.sqrt(dx * dx + dy * dy);\n if (dist > 0) {\n length += dist;\n parts.push({\n offset: length,\n curve: curve,\n index: index,\n time: t2\n });\n }\n }\n }\n for(var i = 1, l = segments.length; i < l; i++){\n segment2 = segments[i];\n addCurve(segment1, segment2);\n segment1 = segment2;\n }\n if (path._closed) addCurve(segment2 || segment1, segments[0]);\n this.curves = curves;\n this.parts = parts;\n this.length = length;\n this.index = 0;\n },\n _get: function(offset) {\n var parts = this.parts, length = parts.length, start, i, j = this.index;\n for(;;){\n i = j;\n if (!j || parts[--j].offset < offset) break;\n }\n for(; i < length; i++){\n var part = parts[i];\n if (part.offset >= offset) {\n this.index = i;\n var prev = parts[i - 1], prevTime = prev && prev.index === part.index ? prev.time : 0, prevOffset = prev ? prev.offset : 0;\n return {\n index: part.index,\n time: prevTime + (part.time - prevTime) * (offset - prevOffset) / (part.offset - prevOffset)\n };\n }\n }\n return {\n index: parts[length - 1].index,\n time: 1\n };\n },\n drawPart: function(ctx, from, to) {\n var start = this._get(from), end = this._get(to);\n for(var i = start.index, l = end.index; i <= l; i++){\n var curve = Curve.getPart(this.curves[i], i === start.index ? start.time : 0, i === end.index ? end.time : 1);\n if (i === start.index) ctx.moveTo(curve[0], curve[1]);\n ctx.bezierCurveTo.apply(ctx, curve.slice(2));\n }\n }\n }, Base.each(Curve._evaluateMethods, function(name) {\n this[name + \"At\"] = function(offset) {\n var param = this._get(offset);\n return Curve[name](this.curves[param.index], param.time);\n };\n }, {}));\n var PathFitter = Base.extend({\n initialize: function(path) {\n var points = this.points = [], segments = path._segments, closed = path._closed;\n for(var i = 0, prev, l = segments.length; i < l; i++){\n var point = segments[i].point;\n if (!prev || !prev.equals(point)) points.push(prev = point.clone());\n }\n if (closed) {\n points.unshift(points[points.length - 1]);\n points.push(points[1]);\n }\n this.closed = closed;\n },\n fit: function(error) {\n var points = this.points, length = points.length, segments = null;\n if (length > 0) {\n segments = [\n new Segment(points[0])\n ];\n if (length > 1) {\n this.fitCubic(segments, error, 0, length - 1, points[1].subtract(points[0]), points[length - 2].subtract(points[length - 1]));\n if (this.closed) {\n segments.shift();\n segments.pop();\n }\n }\n }\n return segments;\n },\n fitCubic: function(segments, error, first, last, tan1, tan2) {\n var points = this.points;\n if (last - first === 1) {\n var pt1 = points[first], pt2 = points[last], dist = pt1.getDistance(pt2) / 3;\n this.addCurve(segments, [\n pt1,\n pt1.add(tan1.normalize(dist)),\n pt2.add(tan2.normalize(dist)),\n pt2\n ]);\n return;\n }\n var uPrime = this.chordLengthParameterize(first, last), maxError = Math.max(error, error * error), split, parametersInOrder = true;\n for(var i = 0; i <= 4; i++){\n var curve = this.generateBezier(first, last, uPrime, tan1, tan2);\n var max = this.findMaxError(first, last, curve, uPrime);\n if (max.error < error && parametersInOrder) {\n this.addCurve(segments, curve);\n return;\n }\n split = max.index;\n if (max.error >= maxError) break;\n parametersInOrder = this.reparameterize(first, last, uPrime, curve);\n maxError = max.error;\n }\n var tanCenter = points[split - 1].subtract(points[split + 1]);\n this.fitCubic(segments, error, first, split, tan1, tanCenter);\n this.fitCubic(segments, error, split, last, tanCenter.negate(), tan2);\n },\n addCurve: function(segments, curve) {\n var prev = segments[segments.length - 1];\n prev.setHandleOut(curve[1].subtract(curve[0]));\n segments.push(new Segment(curve[3], curve[2].subtract(curve[3])));\n },\n generateBezier: function(first, last, uPrime, tan1, tan2) {\n var epsilon = 1e-12, abs = Math.abs, points = this.points, pt1 = points[first], pt2 = points[last], C = [\n [\n 0,\n 0\n ],\n [\n 0,\n 0\n ]\n ], X = [\n 0,\n 0\n ];\n for(var i = 0, l = last - first + 1; i < l; i++){\n var u = uPrime[i], t = 1 - u, b = 3 * u * t, b0 = t * t * t, b1 = b * t, b2 = b * u, b3 = u * u * u, a1 = tan1.normalize(b1), a2 = tan2.normalize(b2), tmp = points[first + i].subtract(pt1.multiply(b0 + b1)).subtract(pt2.multiply(b2 + b3));\n C[0][0] += a1.dot(a1);\n C[0][1] += a1.dot(a2);\n C[1][0] = C[0][1];\n C[1][1] += a2.dot(a2);\n X[0] += a1.dot(tmp);\n X[1] += a2.dot(tmp);\n }\n var detC0C1 = C[0][0] * C[1][1] - C[1][0] * C[0][1], alpha1, alpha2;\n if (abs(detC0C1) > epsilon) {\n var detC0X = C[0][0] * X[1] - C[1][0] * X[0], detXC1 = X[0] * C[1][1] - X[1] * C[0][1];\n alpha1 = detXC1 / detC0C1;\n alpha2 = detC0X / detC0C1;\n } else {\n var c0 = C[0][0] + C[0][1], c1 = C[1][0] + C[1][1];\n alpha1 = alpha2 = abs(c0) > epsilon ? X[0] / c0 : abs(c1) > epsilon ? X[1] / c1 : 0;\n }\n var segLength = pt2.getDistance(pt1), eps = epsilon * segLength, handle1, handle2;\n if (alpha1 < eps || alpha2 < eps) alpha1 = alpha2 = segLength / 3;\n else {\n var line = pt2.subtract(pt1);\n handle1 = tan1.normalize(alpha1);\n handle2 = tan2.normalize(alpha2);\n if (handle1.dot(line) - handle2.dot(line) > segLength * segLength) {\n alpha1 = alpha2 = segLength / 3;\n handle1 = handle2 = null;\n }\n }\n return [\n pt1,\n pt1.add(handle1 || tan1.normalize(alpha1)),\n pt2.add(handle2 || tan2.normalize(alpha2)),\n pt2\n ];\n },\n reparameterize: function(first, last, u, curve) {\n for(var i = first; i <= last; i++)u[i - first] = this.findRoot(curve, this.points[i], u[i - first]);\n for(var i = 1, l = u.length; i < l; i++){\n if (u[i] <= u[i - 1]) return false;\n }\n return true;\n },\n findRoot: function(curve, point, u) {\n var curve1 = [], curve2 = [];\n for(var i = 0; i <= 2; i++)curve1[i] = curve[i + 1].subtract(curve[i]).multiply(3);\n for(var i = 0; i <= 1; i++)curve2[i] = curve1[i + 1].subtract(curve1[i]).multiply(2);\n var pt = this.evaluate(3, curve, u), pt1 = this.evaluate(2, curve1, u), pt2 = this.evaluate(1, curve2, u), diff = pt.subtract(point), df = pt1.dot(pt1) + diff.dot(pt2);\n return Numerical.isMachineZero(df) ? u : u - diff.dot(pt1) / df;\n },\n evaluate: function(degree, curve, t) {\n var tmp = curve.slice();\n for(var i = 1; i <= degree; i++)for(var j = 0; j <= degree - i; j++)tmp[j] = tmp[j].multiply(1 - t).add(tmp[j + 1].multiply(t));\n return tmp[0];\n },\n chordLengthParameterize: function(first, last) {\n var u = [\n 0\n ];\n for(var i = first + 1; i <= last; i++)u[i - first] = u[i - first - 1] + this.points[i].getDistance(this.points[i - 1]);\n for(var i = 1, m = last - first; i <= m; i++)u[i] /= u[m];\n return u;\n },\n findMaxError: function(first, last, curve, u) {\n var index = Math.floor((last - first + 1) / 2), maxDist = 0;\n for(var i = first + 1; i < last; i++){\n var P = this.evaluate(3, curve, u[i - first]);\n var v = P.subtract(this.points[i]);\n var dist = v.x * v.x + v.y * v.y;\n if (dist >= maxDist) {\n maxDist = dist;\n index = i;\n }\n }\n return {\n error: maxDist,\n index: index\n };\n }\n });\n var TextItem = Item.extend({\n _class: \"TextItem\",\n _applyMatrix: false,\n _canApplyMatrix: false,\n _serializeFields: {\n content: null\n },\n _boundsOptions: {\n stroke: false,\n handle: false\n },\n initialize: function TextItem(arg) {\n this._content = \"\";\n this._lines = [];\n var hasProps = arg && Base.isPlainObject(arg) && arg.x === undefined && arg.y === undefined;\n this._initialize(hasProps && arg, !hasProps && Point.read(arguments));\n },\n _equals: function(item) {\n return this._content === item._content;\n },\n copyContent: function(source) {\n this.setContent(source._content);\n },\n getContent: function() {\n return this._content;\n },\n setContent: function(content) {\n this._content = \"\" + content;\n this._lines = this._content.split(/\\r\\n|\\n|\\r/mg);\n this._changed(521);\n },\n isEmpty: function() {\n return !this._content;\n },\n getCharacterStyle: \"#getStyle\",\n setCharacterStyle: \"#setStyle\",\n getParagraphStyle: \"#getStyle\",\n setParagraphStyle: \"#setStyle\"\n });\n var PointText = TextItem.extend({\n _class: \"PointText\",\n initialize: function PointText() {\n TextItem.apply(this, arguments);\n },\n getPoint: function() {\n var point = this._matrix.getTranslation();\n return new LinkedPoint(point.x, point.y, this, \"setPoint\");\n },\n setPoint: function() {\n var point = Point.read(arguments);\n this.translate(point.subtract(this._matrix.getTranslation()));\n },\n _draw: function(ctx, param, viewMatrix) {\n if (!this._content) return;\n this._setStyles(ctx, param, viewMatrix);\n var lines = this._lines, style = this._style, hasFill = style.hasFill(), hasStroke = style.hasStroke(), leading = style.getLeading(), shadowColor = ctx.shadowColor;\n ctx.font = style.getFontStyle();\n ctx.textAlign = style.getJustification();\n for(var i = 0, l = lines.length; i < l; i++){\n ctx.shadowColor = shadowColor;\n var line = lines[i];\n if (hasFill) {\n ctx.fillText(line, 0, 0);\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n }\n if (hasStroke) ctx.strokeText(line, 0, 0);\n ctx.translate(0, leading);\n }\n },\n _getBounds: function(matrix, options) {\n var style = this._style, lines = this._lines, numLines = lines.length, justification = style.getJustification(), leading = style.getLeading(), width = this.getView().getTextWidth(style.getFontStyle(), lines), x = 0;\n if (justification !== \"left\") x -= width / (justification === \"center\" ? 2 : 1);\n var rect = new Rectangle(x, numLines ? -0.75 * leading : 0, width, numLines * leading);\n return matrix ? matrix._transformBounds(rect, rect) : rect;\n }\n });\n var Color = Base.extend(new function() {\n var types = {\n gray: [\n \"gray\"\n ],\n rgb: [\n \"red\",\n \"green\",\n \"blue\"\n ],\n hsb: [\n \"hue\",\n \"saturation\",\n \"brightness\"\n ],\n hsl: [\n \"hue\",\n \"saturation\",\n \"lightness\"\n ],\n gradient: [\n \"gradient\",\n \"origin\",\n \"destination\",\n \"highlight\"\n ]\n };\n var componentParsers = {}, namedColors = {\n transparent: [\n 0,\n 0,\n 0,\n 0\n ]\n }, colorCtx;\n function fromCSS(string) {\n var match = string.match(/^#([\\da-f]{2})([\\da-f]{2})([\\da-f]{2})([\\da-f]{2})?$/i) || string.match(/^#([\\da-f])([\\da-f])([\\da-f])([\\da-f])?$/i), type = \"rgb\", components;\n if (match) {\n var amount = match[4] ? 4 : 3;\n components = new Array(amount);\n for(var i = 0; i < amount; i++){\n var value = match[i + 1];\n components[i] = parseInt(value.length == 1 ? value + value : value, 16) / 255;\n }\n } else if (match = string.match(/^(rgb|hsl)a?\\((.*)\\)$/)) {\n type = match[1];\n components = match[2].trim().split(/[,\\s]+/g);\n var isHSL = type === \"hsl\";\n for(var i = 0, l = Math.min(components.length, 4); i < l; i++){\n var component = components[i];\n var value = parseFloat(component);\n if (isHSL) {\n if (i === 0) {\n var unit = component.match(/([a-z]*)$/)[1];\n value *= ({\n turn: 360,\n rad: 180 / Math.PI,\n grad: 0.9\n })[unit] || 1;\n } else if (i < 3) value /= 100;\n } else if (i < 3) value /= /%$/.test(component) ? 100 : 255;\n components[i] = value;\n }\n } else {\n var color = namedColors[string];\n if (!color) {\n if (window) {\n if (!colorCtx) {\n colorCtx = CanvasProvider.getContext(1, 1, {\n willReadFrequently: true\n });\n colorCtx.globalCompositeOperation = \"copy\";\n }\n colorCtx.fillStyle = \"rgba(0,0,0,0)\";\n colorCtx.fillStyle = string;\n colorCtx.fillRect(0, 0, 1, 1);\n var data = colorCtx.getImageData(0, 0, 1, 1).data;\n color = namedColors[string] = [\n data[0] / 255,\n data[1] / 255,\n data[2] / 255\n ];\n } else color = [\n 0,\n 0,\n 0\n ];\n }\n components = color.slice();\n }\n return [\n type,\n components\n ];\n }\n var hsbIndices = [\n [\n 0,\n 3,\n 1\n ],\n [\n 2,\n 0,\n 1\n ],\n [\n 1,\n 0,\n 3\n ],\n [\n 1,\n 2,\n 0\n ],\n [\n 3,\n 1,\n 0\n ],\n [\n 0,\n 1,\n 2\n ]\n ];\n var converters = {\n \"rgb-hsb\": function(r, g, b) {\n var max = Math.max(r, g, b), min = Math.min(r, g, b), delta = max - min, h = delta === 0 ? 0 : (max == r ? (g - b) / delta + (g < b ? 6 : 0) : max == g ? (b - r) / delta + 2 : (r - g) / delta + 4) * 60;\n return [\n h,\n max === 0 ? 0 : delta / max,\n max\n ];\n },\n \"hsb-rgb\": function(h, s, b) {\n h = (h / 60 % 6 + 6) % 6;\n var i = Math.floor(h), f = h - i, i = hsbIndices[i], v = [\n b,\n b * (1 - s),\n b * (1 - s * f),\n b * (1 - s * (1 - f))\n ];\n return [\n v[i[0]],\n v[i[1]],\n v[i[2]]\n ];\n },\n \"rgb-hsl\": function(r, g, b) {\n var max = Math.max(r, g, b), min = Math.min(r, g, b), delta = max - min, achromatic = delta === 0, h = achromatic ? 0 : (max == r ? (g - b) / delta + (g < b ? 6 : 0) : max == g ? (b - r) / delta + 2 : (r - g) / delta + 4) * 60, l = (max + min) / 2, s = achromatic ? 0 : l < 0.5 ? delta / (max + min) : delta / (2 - max - min);\n return [\n h,\n s,\n l\n ];\n },\n \"hsl-rgb\": function(h, s, l) {\n h = (h / 360 % 1 + 1) % 1;\n if (s === 0) return [\n l,\n l,\n l\n ];\n var t3s = [\n h + 1 / 3,\n h,\n h - 1 / 3\n ], t2 = l < 0.5 ? l * (1 + s) : l + s - l * s, t1 = 2 * l - t2, c = [];\n for(var i = 0; i < 3; i++){\n var t3 = t3s[i];\n if (t3 < 0) t3 += 1;\n if (t3 > 1) t3 -= 1;\n c[i] = 6 * t3 < 1 ? t1 + (t2 - t1) * 6 * t3 : 2 * t3 < 1 ? t2 : 3 * t3 < 2 ? t1 + (t2 - t1) * (2 / 3 - t3) * 6 : t1;\n }\n return c;\n },\n \"rgb-gray\": function(r, g, b) {\n return [\n r * 0.2989 + g * 0.587 + b * 0.114\n ];\n },\n \"gray-rgb\": function(g) {\n return [\n g,\n g,\n g\n ];\n },\n \"gray-hsb\": function(g) {\n return [\n 0,\n 0,\n g\n ];\n },\n \"gray-hsl\": function(g) {\n return [\n 0,\n 0,\n g\n ];\n },\n \"gradient-rgb\": function() {\n return [];\n },\n \"rgb-gradient\": function() {\n return [];\n }\n };\n return Base.each(types, function(properties, type) {\n componentParsers[type] = [];\n Base.each(properties, function(name, index) {\n var part = Base.capitalize(name), hasOverlap = /^(hue|saturation)$/.test(name), parser = componentParsers[type][index] = type === \"gradient\" ? name === \"gradient\" ? function(value) {\n var current = this._components[0];\n value = Gradient.read(Array.isArray(value) ? value : arguments, 0, {\n readNull: true\n });\n if (current !== value) {\n if (current) current._removeOwner(this);\n if (value) value._addOwner(this);\n }\n return value;\n } : function() {\n return Point.read(arguments, 0, {\n readNull: name === \"highlight\",\n clone: true\n });\n } : function(value) {\n return value == null || isNaN(value) ? 0 : +value;\n };\n this[\"get\" + part] = function() {\n return this._type === type || hasOverlap && /^hs[bl]$/.test(this._type) ? this._components[index] : this._convert(type)[index];\n };\n this[\"set\" + part] = function(value) {\n if (this._type !== type && !(hasOverlap && /^hs[bl]$/.test(this._type))) {\n this._components = this._convert(type);\n this._properties = types[type];\n this._type = type;\n }\n this._components[index] = parser.call(this, value);\n this._changed();\n };\n }, this);\n }, {\n _class: \"Color\",\n _readIndex: true,\n initialize: function Color(arg) {\n var args = arguments, reading = this.__read, read = 0, type, components, alpha, values;\n if (Array.isArray(arg)) {\n args = arg;\n arg = args[0];\n }\n var argType = arg != null && typeof arg;\n if (argType === \"string\" && arg in types) {\n type = arg;\n arg = args[1];\n if (Array.isArray(arg)) {\n components = arg;\n alpha = args[2];\n } else {\n if (reading) read = 1;\n args = Base.slice(args, 1);\n argType = typeof arg;\n }\n }\n if (!components) {\n values = argType === \"number\" ? args : argType === \"object\" && arg.length != null ? arg : null;\n if (values) {\n if (!type) type = values.length >= 3 ? \"rgb\" : \"gray\";\n var length = types[type].length;\n alpha = values[length];\n if (reading) read += values === arguments ? length + (alpha != null ? 1 : 0) : 1;\n if (values.length > length) values = Base.slice(values, 0, length);\n } else if (argType === \"string\") {\n var converted = fromCSS(arg);\n type = converted[0];\n components = converted[1];\n if (components.length === 4) {\n alpha = components[3];\n components.length--;\n }\n } else if (argType === \"object\") {\n if (arg.constructor === Color) {\n type = arg._type;\n components = arg._components.slice();\n alpha = arg._alpha;\n if (type === \"gradient\") for(var i = 1, l = components.length; i < l; i++){\n var point = components[i];\n if (point) components[i] = point.clone();\n }\n } else if (arg.constructor === Gradient) {\n type = \"gradient\";\n values = args;\n } else {\n type = \"hue\" in arg ? \"lightness\" in arg ? \"hsl\" : \"hsb\" : \"gradient\" in arg || \"stops\" in arg || \"radial\" in arg ? \"gradient\" : \"gray\" in arg ? \"gray\" : \"rgb\";\n var properties = types[type], parsers = componentParsers[type];\n this._components = components = [];\n for(var i = 0, l = properties.length; i < l; i++){\n var value = arg[properties[i]];\n if (value == null && !i && type === \"gradient\" && \"stops\" in arg) value = {\n stops: arg.stops,\n radial: arg.radial\n };\n value = parsers[i].call(this, value);\n if (value != null) components[i] = value;\n }\n alpha = arg.alpha;\n }\n }\n if (reading && type) read = 1;\n }\n this._type = type || \"rgb\";\n if (!components) {\n this._components = components = [];\n var parsers = componentParsers[this._type];\n for(var i = 0, l = parsers.length; i < l; i++){\n var value = parsers[i].call(this, values && values[i]);\n if (value != null) components[i] = value;\n }\n }\n this._components = components;\n this._properties = types[this._type];\n this._alpha = alpha;\n if (reading) this.__read = read;\n return this;\n },\n set: \"#initialize\",\n _serialize: function(options, dictionary) {\n var components = this.getComponents();\n return Base.serialize(/^(gray|rgb)$/.test(this._type) ? components : [\n this._type\n ].concat(components), options, true, dictionary);\n },\n _changed: function() {\n this._canvasStyle = null;\n if (this._owner) {\n if (this._setter) this._owner[this._setter](this);\n else this._owner._changed(129);\n }\n },\n _convert: function(type) {\n var converter;\n return this._type === type ? this._components.slice() : (converter = converters[this._type + \"-\" + type]) ? converter.apply(this, this._components) : converters[\"rgb-\" + type].apply(this, converters[this._type + \"-rgb\"].apply(this, this._components));\n },\n convert: function(type) {\n return new Color(type, this._convert(type), this._alpha);\n },\n getType: function() {\n return this._type;\n },\n setType: function(type) {\n this._components = this._convert(type);\n this._properties = types[type];\n this._type = type;\n },\n getComponents: function() {\n var components = this._components.slice();\n if (this._alpha != null) components.push(this._alpha);\n return components;\n },\n getAlpha: function() {\n return this._alpha != null ? this._alpha : 1;\n },\n setAlpha: function(alpha) {\n this._alpha = alpha == null ? null : Math.min(Math.max(alpha, 0), 1);\n this._changed();\n },\n hasAlpha: function() {\n return this._alpha != null;\n },\n equals: function(color) {\n var col = Base.isPlainValue(color, true) ? Color.read(arguments) : color;\n return col === this || col && this._class === col._class && this._type === col._type && this.getAlpha() === col.getAlpha() && Base.equals(this._components, col._components) || false;\n },\n toString: function() {\n var properties = this._properties, parts = [], isGradient = this._type === \"gradient\", f = Formatter.instance;\n for(var i = 0, l = properties.length; i < l; i++){\n var value = this._components[i];\n if (value != null) parts.push(properties[i] + \": \" + (isGradient ? value : f.number(value)));\n }\n if (this._alpha != null) parts.push(\"alpha: \" + f.number(this._alpha));\n return \"{ \" + parts.join(\", \") + \" }\";\n },\n toCSS: function(hex) {\n var components = this._convert(\"rgb\"), alpha = hex || this._alpha == null ? 1 : this._alpha;\n function convert(val) {\n return Math.round((val < 0 ? 0 : val > 1 ? 1 : val) * 255);\n }\n components = [\n convert(components[0]),\n convert(components[1]),\n convert(components[2])\n ];\n if (alpha < 1) components.push(alpha < 0 ? 0 : alpha);\n return hex ? \"#\" + (16777216 + (components[0] << 16) + (components[1] << 8) + components[2]).toString(16).slice(1) : (components.length == 4 ? \"rgba(\" : \"rgb(\") + components.join(\",\") + \")\";\n },\n toCanvasStyle: function(ctx, matrix) {\n if (this._canvasStyle) return this._canvasStyle;\n if (this._type !== \"gradient\") return this._canvasStyle = this.toCSS();\n var components = this._components, gradient = components[0], stops = gradient._stops, origin = components[1], destination = components[2], highlight = components[3], inverse = matrix && matrix.inverted(), canvasGradient;\n if (inverse) {\n origin = inverse._transformPoint(origin);\n destination = inverse._transformPoint(destination);\n if (highlight) highlight = inverse._transformPoint(highlight);\n }\n if (gradient._radial) {\n var radius = destination.getDistance(origin);\n if (highlight) {\n var vector = highlight.subtract(origin);\n if (vector.getLength() > radius) highlight = origin.add(vector.normalize(radius - 0.1));\n }\n var start = highlight || origin;\n canvasGradient = ctx.createRadialGradient(start.x, start.y, 0, origin.x, origin.y, radius);\n } else canvasGradient = ctx.createLinearGradient(origin.x, origin.y, destination.x, destination.y);\n for(var i = 0, l = stops.length; i < l; i++){\n var stop = stops[i], offset = stop._offset;\n canvasGradient.addColorStop(offset == null ? i / (l - 1) : offset, stop._color.toCanvasStyle());\n }\n return this._canvasStyle = canvasGradient;\n },\n transform: function(matrix) {\n if (this._type === \"gradient\") {\n var components = this._components;\n for(var i = 1, l = components.length; i < l; i++){\n var point = components[i];\n matrix._transformPoint(point, point, true);\n }\n this._changed();\n }\n },\n statics: {\n _types: types,\n random: function() {\n var random = Math.random;\n return new Color(random(), random(), random());\n },\n _setOwner: function(color, owner, setter) {\n if (color) {\n if (color._owner && owner && color._owner !== owner) color = color.clone();\n if (!color._owner ^ !owner) {\n color._owner = owner || null;\n color._setter = setter || null;\n }\n }\n return color;\n }\n }\n });\n }, new function() {\n var operators = {\n add: function(a, b) {\n return a + b;\n },\n subtract: function(a, b) {\n return a - b;\n },\n multiply: function(a, b) {\n return a * b;\n },\n divide: function(a, b) {\n return a / b;\n }\n };\n return Base.each(operators, function(operator, name) {\n this[name] = function(color) {\n color = Color.read(arguments);\n var type = this._type, components1 = this._components, components2 = color._convert(type);\n for(var i = 0, l = components1.length; i < l; i++)components2[i] = operator(components1[i], components2[i]);\n return new Color(type, components2, this._alpha != null ? operator(this._alpha, color.getAlpha()) : null);\n };\n }, {});\n });\n var Gradient = Base.extend({\n _class: \"Gradient\",\n initialize: function Gradient(stops, radial) {\n this._id = UID.get();\n if (stops && Base.isPlainObject(stops)) {\n this.set(stops);\n stops = radial = null;\n }\n if (this._stops == null) this.setStops(stops || [\n \"white\",\n \"black\"\n ]);\n if (this._radial == null) this.setRadial(typeof radial === \"string\" && radial === \"radial\" || radial || false);\n },\n _serialize: function(options, dictionary) {\n return dictionary.add(this, function() {\n return Base.serialize([\n this._stops,\n this._radial\n ], options, true, dictionary);\n });\n },\n _changed: function() {\n for(var i = 0, l = this._owners && this._owners.length; i < l; i++)this._owners[i]._changed();\n },\n _addOwner: function(color) {\n if (!this._owners) this._owners = [];\n this._owners.push(color);\n },\n _removeOwner: function(color) {\n var index = this._owners ? this._owners.indexOf(color) : -1;\n if (index != -1) {\n this._owners.splice(index, 1);\n if (!this._owners.length) this._owners = undefined;\n }\n },\n clone: function() {\n var stops = [];\n for(var i = 0, l = this._stops.length; i < l; i++)stops[i] = this._stops[i].clone();\n return new Gradient(stops, this._radial);\n },\n getStops: function() {\n return this._stops;\n },\n setStops: function(stops) {\n if (stops.length < 2) throw new Error(\"Gradient stop list needs to contain at least two stops.\");\n var _stops = this._stops;\n if (_stops) for(var i = 0, l = _stops.length; i < l; i++)_stops[i]._owner = undefined;\n _stops = this._stops = GradientStop.readList(stops, 0, {\n clone: true\n });\n for(var i = 0, l = _stops.length; i < l; i++)_stops[i]._owner = this;\n this._changed();\n },\n getRadial: function() {\n return this._radial;\n },\n setRadial: function(radial) {\n this._radial = radial;\n this._changed();\n },\n equals: function(gradient) {\n if (gradient === this) return true;\n if (gradient && this._class === gradient._class) {\n var stops1 = this._stops, stops2 = gradient._stops, length = stops1.length;\n if (length === stops2.length) {\n for(var i = 0; i < length; i++){\n if (!stops1[i].equals(stops2[i])) return false;\n }\n return true;\n }\n }\n return false;\n }\n });\n var GradientStop = Base.extend({\n _class: \"GradientStop\",\n initialize: function GradientStop(arg0, arg1) {\n var color = arg0, offset = arg1;\n if (typeof arg0 === \"object\" && arg1 === undefined) {\n if (Array.isArray(arg0) && typeof arg0[0] !== \"number\") {\n color = arg0[0];\n offset = arg0[1];\n } else if (\"color\" in arg0 || \"offset\" in arg0 || \"rampPoint\" in arg0) {\n color = arg0.color;\n offset = arg0.offset || arg0.rampPoint || 0;\n }\n }\n this.setColor(color);\n this.setOffset(offset);\n },\n clone: function() {\n return new GradientStop(this._color.clone(), this._offset);\n },\n _serialize: function(options, dictionary) {\n var color = this._color, offset = this._offset;\n return Base.serialize(offset == null ? [\n color\n ] : [\n color,\n offset\n ], options, true, dictionary);\n },\n _changed: function() {\n if (this._owner) this._owner._changed(129);\n },\n getOffset: function() {\n return this._offset;\n },\n setOffset: function(offset) {\n this._offset = offset;\n this._changed();\n },\n getRampPoint: \"#getOffset\",\n setRampPoint: \"#setOffset\",\n getColor: function() {\n return this._color;\n },\n setColor: function() {\n Color._setOwner(this._color, null);\n this._color = Color._setOwner(Color.read(arguments, 0), this, \"setColor\");\n this._changed();\n },\n equals: function(stop) {\n return stop === this || stop && this._class === stop._class && this._color.equals(stop._color) && this._offset == stop._offset || false;\n }\n });\n var Style = Base.extend(new function() {\n var itemDefaults = {\n fillColor: null,\n fillRule: \"nonzero\",\n strokeColor: null,\n strokeWidth: 1,\n strokeCap: \"butt\",\n strokeJoin: \"miter\",\n strokeScaling: true,\n miterLimit: 10,\n dashOffset: 0,\n dashArray: [],\n shadowColor: null,\n shadowBlur: 0,\n shadowOffset: new Point(),\n selectedColor: null\n }, groupDefaults = Base.set({}, itemDefaults, {\n fontFamily: \"sans-serif\",\n fontWeight: \"normal\",\n fontSize: 12,\n leading: null,\n justification: \"left\"\n }), textDefaults = Base.set({}, groupDefaults, {\n fillColor: new Color()\n }), flags = {\n strokeWidth: 193,\n strokeCap: 193,\n strokeJoin: 193,\n strokeScaling: 201,\n miterLimit: 193,\n fontFamily: 9,\n fontWeight: 9,\n fontSize: 9,\n font: 9,\n leading: 9,\n justification: 9\n }, item = {\n beans: true\n }, fields = {\n _class: \"Style\",\n beans: true,\n initialize: function Style(style, _owner, _project) {\n this._values = {};\n this._owner = _owner;\n this._project = _owner && _owner._project || _project || paper.project;\n this._defaults = !_owner || _owner instanceof Group ? groupDefaults : _owner instanceof TextItem ? textDefaults : itemDefaults;\n if (style) this.set(style);\n }\n };\n Base.each(groupDefaults, function(value, key) {\n var isColor = /Color$/.test(key), isPoint = key === \"shadowOffset\", part = Base.capitalize(key), flag = flags[key], set = \"set\" + part, get = \"get\" + part;\n fields[set] = function(value) {\n var owner = this._owner, children = owner && owner._children, applyToChildren = children && children.length > 0 && !(owner instanceof CompoundPath);\n if (applyToChildren) for(var i = 0, l = children.length; i < l; i++)children[i]._style[set](value);\n if ((key === \"selectedColor\" || !applyToChildren) && key in this._defaults) {\n var old = this._values[key];\n if (old !== value) {\n if (isColor) {\n if (old) {\n Color._setOwner(old, null);\n old._canvasStyle = null;\n }\n if (value && value.constructor === Color) value = Color._setOwner(value, owner, applyToChildren && set);\n }\n this._values[key] = value;\n if (owner) owner._changed(flag || 129);\n }\n }\n };\n fields[get] = function(_dontMerge) {\n var owner = this._owner, children = owner && owner._children, applyToChildren = children && children.length > 0 && !(owner instanceof CompoundPath), value;\n if (applyToChildren && !_dontMerge) for(var i = 0, l = children.length; i < l; i++){\n var childValue = children[i]._style[get]();\n if (!i) value = childValue;\n else if (!Base.equals(value, childValue)) return undefined;\n }\n else if (key in this._defaults) {\n var value = this._values[key];\n if (value === undefined) {\n value = this._defaults[key];\n if (value && value.clone) value = value.clone();\n } else {\n var ctor = isColor ? Color : isPoint ? Point : null;\n if (ctor && !(value && value.constructor === ctor)) this._values[key] = value = ctor.read([\n value\n ], 0, {\n readNull: true,\n clone: true\n });\n }\n }\n if (value && isColor) value = Color._setOwner(value, owner, applyToChildren && set);\n return value;\n };\n item[get] = function(_dontMerge) {\n return this._style[get](_dontMerge);\n };\n item[set] = function(value) {\n this._style[set](value);\n };\n });\n Base.each({\n Font: \"FontFamily\",\n WindingRule: \"FillRule\"\n }, function(value, key) {\n var get = \"get\" + key, set = \"set\" + key;\n fields[get] = item[get] = \"#get\" + value;\n fields[set] = item[set] = \"#set\" + value;\n });\n Item.inject(item);\n return fields;\n }, {\n set: function(style) {\n var isStyle = style instanceof Style, values = isStyle ? style._values : style;\n if (values) {\n for(var key in values)if (key in this._defaults) {\n var value = values[key];\n this[key] = value && isStyle && value.clone ? value.clone() : value;\n }\n }\n },\n equals: function(style) {\n function compare(style1, style2, secondary) {\n var values1 = style1._values, values2 = style2._values, defaults2 = style2._defaults;\n for(var key in values1){\n var value1 = values1[key], value2 = values2[key];\n if (!(secondary && key in values2) && !Base.equals(value1, value2 === undefined ? defaults2[key] : value2)) return false;\n }\n return true;\n }\n return style === this || style && this._class === style._class && compare(this, style) && compare(style, this, true) || false;\n },\n _dispose: function() {\n var color;\n color = this.getFillColor();\n if (color) color._canvasStyle = null;\n color = this.getStrokeColor();\n if (color) color._canvasStyle = null;\n color = this.getShadowColor();\n if (color) color._canvasStyle = null;\n },\n hasFill: function() {\n var color = this.getFillColor();\n return !!color && color.alpha > 0;\n },\n hasStroke: function() {\n var color = this.getStrokeColor();\n return !!color && color.alpha > 0 && this.getStrokeWidth() > 0;\n },\n hasShadow: function() {\n var color = this.getShadowColor();\n return !!color && color.alpha > 0 && (this.getShadowBlur() > 0 || !this.getShadowOffset().isZero());\n },\n getView: function() {\n return this._project._view;\n },\n getFontStyle: function() {\n var fontSize = this.getFontSize();\n return this.getFontWeight() + \" \" + fontSize + (/[a-z]/i.test(fontSize + \"\") ? \" \" : \"px \") + this.getFontFamily();\n },\n getFont: \"#getFontFamily\",\n setFont: \"#setFontFamily\",\n getLeading: function getLeading() {\n var leading = getLeading.base.call(this), fontSize = this.getFontSize();\n if (/pt|em|%|px/.test(fontSize)) fontSize = this.getView().getPixelSize(fontSize);\n return leading != null ? leading : fontSize * 1.2;\n }\n });\n var DomElement = new function() {\n function handlePrefix(el, name, set, value) {\n var prefixes = [\n \"\",\n \"webkit\",\n \"moz\",\n \"Moz\",\n \"ms\",\n \"o\"\n ], suffix = name[0].toUpperCase() + name.substring(1);\n for(var i = 0; i < 6; i++){\n var prefix = prefixes[i], key = prefix ? prefix + suffix : name;\n if (key in el) {\n if (set) el[key] = value;\n else return el[key];\n break;\n }\n }\n }\n return {\n getStyles: function(el) {\n var doc = el && el.nodeType !== 9 ? el.ownerDocument : el, view = doc && doc.defaultView;\n return view && view.getComputedStyle(el, \"\");\n },\n getBounds: function(el, viewport) {\n var doc = el.ownerDocument, body = doc.body, html = doc.documentElement, rect;\n try {\n rect = el.getBoundingClientRect();\n } catch (e) {\n rect = {\n left: 0,\n top: 0,\n width: 0,\n height: 0\n };\n }\n var x = rect.left - (html.clientLeft || body.clientLeft || 0), y = rect.top - (html.clientTop || body.clientTop || 0);\n if (!viewport) {\n var view = doc.defaultView;\n x += view.pageXOffset || html.scrollLeft || body.scrollLeft;\n y += view.pageYOffset || html.scrollTop || body.scrollTop;\n }\n return new Rectangle(x, y, rect.width, rect.height);\n },\n getViewportBounds: function(el) {\n var doc = el.ownerDocument, view = doc.defaultView, html = doc.documentElement;\n return new Rectangle(0, 0, view.innerWidth || html.clientWidth, view.innerHeight || html.clientHeight);\n },\n getOffset: function(el, viewport) {\n return DomElement.getBounds(el, viewport).getPoint();\n },\n getSize: function(el) {\n return DomElement.getBounds(el, true).getSize();\n },\n isInvisible: function(el) {\n return DomElement.getSize(el).equals(new Size(0, 0));\n },\n isInView: function(el) {\n return !DomElement.isInvisible(el) && DomElement.getViewportBounds(el).intersects(DomElement.getBounds(el, true));\n },\n isInserted: function(el) {\n return document.body.contains(el);\n },\n getPrefixed: function(el, name) {\n return el && handlePrefix(el, name);\n },\n setPrefixed: function(el, name, value) {\n if (typeof name === \"object\") for(var key in name)handlePrefix(el, key, true, name[key]);\n else handlePrefix(el, name, true, value);\n }\n };\n };\n var DomEvent = {\n add: function(el, events) {\n if (el) for(var type in events){\n var func = events[type], parts = type.split(/[\\s,]+/g);\n for(var i = 0, l = parts.length; i < l; i++){\n var name = parts[i];\n var options = el === document && (name === \"touchstart\" || name === \"touchmove\") ? {\n passive: false\n } : false;\n el.addEventListener(name, func, options);\n }\n }\n },\n remove: function(el, events) {\n if (el) for(var type in events){\n var func = events[type], parts = type.split(/[\\s,]+/g);\n for(var i = 0, l = parts.length; i < l; i++)el.removeEventListener(parts[i], func, false);\n }\n },\n getPoint: function(event) {\n var pos = event.targetTouches ? event.targetTouches.length ? event.targetTouches[0] : event.changedTouches[0] : event;\n return new Point(pos.pageX || pos.clientX + document.documentElement.scrollLeft, pos.pageY || pos.clientY + document.documentElement.scrollTop);\n },\n getTarget: function(event) {\n return event.target || event.srcElement;\n },\n getRelatedTarget: function(event) {\n return event.relatedTarget || event.toElement;\n },\n getOffset: function(event, target) {\n return DomEvent.getPoint(event).subtract(DomElement.getOffset(target || DomEvent.getTarget(event)));\n }\n };\n DomEvent.requestAnimationFrame = new function() {\n var nativeRequest = DomElement.getPrefixed(window, \"requestAnimationFrame\"), requested = false, callbacks = [], timer;\n function handleCallbacks() {\n var functions = callbacks;\n callbacks = [];\n for(var i = 0, l = functions.length; i < l; i++)functions[i]();\n requested = nativeRequest && callbacks.length;\n if (requested) nativeRequest(handleCallbacks);\n }\n return function(callback) {\n callbacks.push(callback);\n if (nativeRequest) {\n if (!requested) {\n nativeRequest(handleCallbacks);\n requested = true;\n }\n } else if (!timer) timer = setInterval(handleCallbacks, 1000 / 60);\n };\n };\n var View = Base.extend(Emitter, {\n _class: \"View\",\n initialize: function View(project, element) {\n function getSize(name) {\n return element[name] || parseInt(element.getAttribute(name), 10);\n }\n function getCanvasSize() {\n var size = DomElement.getSize(element);\n return size.isNaN() || size.isZero() ? new Size(getSize(\"width\"), getSize(\"height\")) : size;\n }\n var size;\n if (window && element) {\n this._id = element.getAttribute(\"id\");\n if (this._id == null) element.setAttribute(\"id\", this._id = \"paper-view-\" + View._id++);\n DomEvent.add(element, this._viewEvents);\n var none = \"none\";\n DomElement.setPrefixed(element.style, {\n userDrag: none,\n userSelect: none,\n touchCallout: none,\n contentZooming: none,\n tapHighlightColor: \"rgba(0,0,0,0)\"\n });\n if (PaperScope.hasAttribute(element, \"resize\")) {\n var that = this;\n DomEvent.add(window, this._windowEvents = {\n resize: function() {\n that.setViewSize(getCanvasSize());\n }\n });\n }\n size = getCanvasSize();\n if (PaperScope.hasAttribute(element, \"stats\") && typeof Stats !== \"undefined\") {\n this._stats = new Stats();\n var stats = this._stats.domElement, style = stats.style, offset = DomElement.getOffset(element);\n style.position = \"absolute\";\n style.left = offset.x + \"px\";\n style.top = offset.y + \"px\";\n document.body.appendChild(stats);\n }\n } else {\n size = new Size(element);\n element = null;\n }\n this._project = project;\n this._scope = project._scope;\n this._element = element;\n if (!this._pixelRatio) this._pixelRatio = window && window.devicePixelRatio || 1;\n this._setElementSize(size.width, size.height);\n this._viewSize = size;\n View._views.push(this);\n View._viewsById[this._id] = this;\n (this._matrix = new Matrix())._owner = this;\n if (!View._focused) View._focused = this;\n this._frameItems = {};\n this._frameItemCount = 0;\n this._itemEvents = {\n native: {},\n virtual: {}\n };\n this._autoUpdate = !paper.agent.node;\n this._needsUpdate = false;\n },\n remove: function() {\n if (!this._project) return false;\n if (View._focused === this) View._focused = null;\n View._views.splice(View._views.indexOf(this), 1);\n delete View._viewsById[this._id];\n var project = this._project;\n if (project._view === this) project._view = null;\n DomEvent.remove(this._element, this._viewEvents);\n DomEvent.remove(window, this._windowEvents);\n this._element = this._project = null;\n this.off(\"frame\");\n this._animate = false;\n this._frameItems = {};\n return true;\n },\n _events: Base.each(Item._itemHandlers.concat([\n \"onResize\",\n \"onKeyDown\",\n \"onKeyUp\"\n ]), function(name) {\n this[name] = {};\n }, {\n onFrame: {\n install: function() {\n this.play();\n },\n uninstall: function() {\n this.pause();\n }\n }\n }),\n _animate: false,\n _time: 0,\n _count: 0,\n getAutoUpdate: function() {\n return this._autoUpdate;\n },\n setAutoUpdate: function(autoUpdate) {\n this._autoUpdate = autoUpdate;\n if (autoUpdate) this.requestUpdate();\n },\n update: function() {},\n draw: function() {\n this.update();\n },\n requestUpdate: function() {\n if (!this._requested) {\n var that = this;\n DomEvent.requestAnimationFrame(function() {\n that._requested = false;\n if (that._animate) {\n that.requestUpdate();\n var element = that._element;\n if ((!DomElement.getPrefixed(document, \"hidden\") || PaperScope.getAttribute(element, \"keepalive\") === \"true\") && DomElement.isInView(element)) that._handleFrame();\n }\n if (that._autoUpdate) that.update();\n });\n this._requested = true;\n }\n },\n play: function() {\n this._animate = true;\n this.requestUpdate();\n },\n pause: function() {\n this._animate = false;\n },\n _handleFrame: function() {\n paper = this._scope;\n var now = Date.now() / 1000, delta = this._last ? now - this._last : 0;\n this._last = now;\n this.emit(\"frame\", new Base({\n delta: delta,\n time: this._time += delta,\n count: this._count++\n }));\n if (this._stats) this._stats.update();\n },\n _animateItem: function(item, animate) {\n var items = this._frameItems;\n if (animate) {\n items[item._id] = {\n item: item,\n time: 0,\n count: 0\n };\n if (++this._frameItemCount === 1) this.on(\"frame\", this._handleFrameItems);\n } else {\n delete items[item._id];\n if (--this._frameItemCount === 0) this.off(\"frame\", this._handleFrameItems);\n }\n },\n _handleFrameItems: function(event) {\n for(var i in this._frameItems){\n var entry = this._frameItems[i];\n entry.item.emit(\"frame\", new Base(event, {\n time: entry.time += event.delta,\n count: entry.count++\n }));\n }\n },\n _changed: function() {\n this._project._changed(4097);\n this._bounds = this._decomposed = undefined;\n },\n getElement: function() {\n return this._element;\n },\n getPixelRatio: function() {\n return this._pixelRatio;\n },\n getResolution: function() {\n return this._pixelRatio * 72;\n },\n getViewSize: function() {\n var size = this._viewSize;\n return new LinkedSize(size.width, size.height, this, \"setViewSize\");\n },\n setViewSize: function() {\n var size = Size.read(arguments), delta = size.subtract(this._viewSize);\n if (delta.isZero()) return;\n this._setElementSize(size.width, size.height);\n this._viewSize.set(size);\n this._changed();\n this.emit(\"resize\", {\n size: size,\n delta: delta\n });\n if (this._autoUpdate) this.update();\n },\n _setElementSize: function(width, height) {\n var element = this._element;\n if (element) {\n if (element.width !== width) element.width = width;\n if (element.height !== height) element.height = height;\n }\n },\n getBounds: function() {\n if (!this._bounds) this._bounds = this._matrix.inverted()._transformBounds(new Rectangle(new Point(), this._viewSize));\n return this._bounds;\n },\n getSize: function() {\n return this.getBounds().getSize();\n },\n isVisible: function() {\n return DomElement.isInView(this._element);\n },\n isInserted: function() {\n return DomElement.isInserted(this._element);\n },\n getPixelSize: function(size) {\n var element = this._element, pixels;\n if (element) {\n var parent = element.parentNode, temp = document.createElement(\"div\");\n temp.style.fontSize = size;\n parent.appendChild(temp);\n pixels = parseFloat(DomElement.getStyles(temp).fontSize);\n parent.removeChild(temp);\n } else pixels = parseFloat(pixels);\n return pixels;\n },\n getTextWidth: function(font, lines) {\n return 0;\n }\n }, Base.each([\n \"rotate\",\n \"scale\",\n \"shear\",\n \"skew\"\n ], function(key) {\n var rotate = key === \"rotate\";\n this[key] = function() {\n var args = arguments, value = (rotate ? Base : Point).read(args), center = Point.read(args, 0, {\n readNull: true\n });\n return this.transform(new Matrix()[key](value, center || this.getCenter(true)));\n };\n }, {\n _decompose: function() {\n return this._decomposed || (this._decomposed = this._matrix.decompose());\n },\n translate: function() {\n var mx = new Matrix();\n return this.transform(mx.translate.apply(mx, arguments));\n },\n getCenter: function() {\n return this.getBounds().getCenter();\n },\n setCenter: function() {\n var center = Point.read(arguments);\n this.translate(this.getCenter().subtract(center));\n },\n getZoom: function() {\n var scaling = this._decompose().scaling;\n return (scaling.x + scaling.y) / 2;\n },\n setZoom: function(zoom) {\n this.transform(new Matrix().scale(zoom / this.getZoom(), this.getCenter()));\n },\n getRotation: function() {\n return this._decompose().rotation;\n },\n setRotation: function(rotation) {\n var current = this.getRotation();\n if (current != null && rotation != null) this.rotate(rotation - current);\n },\n getScaling: function() {\n var scaling = this._decompose().scaling;\n return new LinkedPoint(scaling.x, scaling.y, this, \"setScaling\");\n },\n setScaling: function() {\n var current = this.getScaling(), scaling = Point.read(arguments, 0, {\n clone: true,\n readNull: true\n });\n if (current && scaling) this.scale(scaling.x / current.x, scaling.y / current.y);\n },\n getMatrix: function() {\n return this._matrix;\n },\n setMatrix: function() {\n var matrix = this._matrix;\n matrix.set.apply(matrix, arguments);\n },\n transform: function(matrix) {\n this._matrix.append(matrix);\n },\n scrollBy: function() {\n this.translate(Point.read(arguments).negate());\n }\n }), {\n projectToView: function() {\n return this._matrix._transformPoint(Point.read(arguments));\n },\n viewToProject: function() {\n return this._matrix._inverseTransform(Point.read(arguments));\n },\n getEventPoint: function(event) {\n return this.viewToProject(DomEvent.getOffset(event, this._element));\n }\n }, {\n statics: {\n _views: [],\n _viewsById: {},\n _id: 0,\n create: function(project, element) {\n if (document && typeof element === \"string\") element = document.getElementById(element);\n var ctor = window ? CanvasView : View;\n return new ctor(project, element);\n }\n }\n }, new function() {\n if (!window) return;\n var prevFocus, tempFocus, dragging = false, mouseDown = false;\n function getView(event) {\n var target = DomEvent.getTarget(event);\n return target.getAttribute && View._viewsById[target.getAttribute(\"id\")];\n }\n function updateFocus() {\n var view = View._focused;\n if (!view || !view.isVisible()) {\n for(var i = 0, l = View._views.length; i < l; i++)if ((view = View._views[i]).isVisible()) {\n View._focused = tempFocus = view;\n break;\n }\n }\n }\n function handleMouseMove(view, event, point) {\n view._handleMouseEvent(\"mousemove\", event, point);\n }\n var navigator = window.navigator, mousedown, mousemove, mouseup;\n if (navigator.pointerEnabled || navigator.msPointerEnabled) {\n mousedown = \"pointerdown MSPointerDown\";\n mousemove = \"pointermove MSPointerMove\";\n mouseup = \"pointerup pointercancel MSPointerUp MSPointerCancel\";\n } else {\n mousedown = \"touchstart\";\n mousemove = \"touchmove\";\n mouseup = \"touchend touchcancel\";\n if (!(\"ontouchstart\" in window && navigator.userAgent.match(/mobile|tablet|ip(ad|hone|od)|android|silk/i))) {\n mousedown += \" mousedown\";\n mousemove += \" mousemove\";\n mouseup += \" mouseup\";\n }\n }\n var viewEvents = {}, docEvents = {\n mouseout: function(event) {\n var view = View._focused, target = DomEvent.getRelatedTarget(event);\n if (view && (!target || target.nodeName === \"HTML\")) {\n var offset = DomEvent.getOffset(event, view._element), x = offset.x, abs = Math.abs, ax = abs(x), max = 33554432, diff = ax - max;\n offset.x = abs(diff) < ax ? diff * (x < 0 ? -1 : 1) : x;\n handleMouseMove(view, event, view.viewToProject(offset));\n }\n },\n scroll: updateFocus\n };\n viewEvents[mousedown] = function(event) {\n var view = View._focused = getView(event);\n if (!dragging) {\n dragging = true;\n view._handleMouseEvent(\"mousedown\", event);\n }\n };\n docEvents[mousemove] = function(event) {\n var view = View._focused;\n if (!mouseDown) {\n var target = getView(event);\n if (target) {\n if (view !== target) {\n if (view) handleMouseMove(view, event);\n if (!prevFocus) prevFocus = view;\n view = View._focused = tempFocus = target;\n }\n } else if (tempFocus && tempFocus === view) {\n if (prevFocus && !prevFocus.isInserted()) prevFocus = null;\n view = View._focused = prevFocus;\n prevFocus = null;\n updateFocus();\n }\n }\n if (view) handleMouseMove(view, event);\n };\n docEvents[mousedown] = function() {\n mouseDown = true;\n };\n docEvents[mouseup] = function(event) {\n var view = View._focused;\n if (view && dragging) view._handleMouseEvent(\"mouseup\", event);\n mouseDown = dragging = false;\n };\n DomEvent.add(document, docEvents);\n DomEvent.add(window, {\n load: updateFocus\n });\n var called = false, prevented = false, fallbacks = {\n doubleclick: \"click\",\n mousedrag: \"mousemove\"\n }, wasInView = false, overView, downPoint, lastPoint, downItem, overItem, dragItem, clickItem, clickTime, dblClick;\n function emitMouseEvent(obj, target, type, event, point, prevPoint, stopItem) {\n var stopped = false, mouseEvent;\n function emit(obj, type) {\n if (obj.responds(type)) {\n if (!mouseEvent) mouseEvent = new MouseEvent(type, event, point, target || obj, prevPoint ? point.subtract(prevPoint) : null);\n if (obj.emit(type, mouseEvent)) {\n called = true;\n if (mouseEvent.prevented) prevented = true;\n if (mouseEvent.stopped) return stopped = true;\n }\n } else {\n var fallback = fallbacks[type];\n if (fallback) return emit(obj, fallback);\n }\n }\n while(obj && obj !== stopItem){\n if (emit(obj, type)) break;\n obj = obj._parent;\n }\n return stopped;\n }\n function emitMouseEvents(view, hitItem, type, event, point, prevPoint) {\n view._project.removeOn(type);\n prevented = called = false;\n return dragItem && emitMouseEvent(dragItem, null, type, event, point, prevPoint) || hitItem && hitItem !== dragItem && !hitItem.isDescendant(dragItem) && emitMouseEvent(hitItem, null, type === \"mousedrag\" ? \"mousemove\" : type, event, point, prevPoint, dragItem) || emitMouseEvent(view, dragItem || hitItem || view, type, event, point, prevPoint);\n }\n var itemEventsMap = {\n mousedown: {\n mousedown: 1,\n mousedrag: 1,\n click: 1,\n doubleclick: 1\n },\n mouseup: {\n mouseup: 1,\n mousedrag: 1,\n click: 1,\n doubleclick: 1\n },\n mousemove: {\n mousedrag: 1,\n mousemove: 1,\n mouseenter: 1,\n mouseleave: 1\n }\n };\n return {\n _viewEvents: viewEvents,\n _handleMouseEvent: function(type, event, point) {\n var itemEvents = this._itemEvents, hitItems = itemEvents.native[type], nativeMove = type === \"mousemove\", tool = this._scope.tool, view = this;\n function responds(type) {\n return itemEvents.virtual[type] || view.responds(type) || tool && tool.responds(type);\n }\n if (nativeMove && dragging && responds(\"mousedrag\")) type = \"mousedrag\";\n if (!point) point = this.getEventPoint(event);\n var inView = this.getBounds().contains(point), hit = hitItems && inView && view._project.hitTest(point, {\n tolerance: 0,\n fill: true,\n stroke: true\n }), hitItem = hit && hit.item || null, handle = false, mouse = {};\n mouse[type.substr(5)] = true;\n if (hitItems && hitItem !== overItem) {\n if (overItem) emitMouseEvent(overItem, null, \"mouseleave\", event, point);\n if (hitItem) emitMouseEvent(hitItem, null, \"mouseenter\", event, point);\n overItem = hitItem;\n }\n if (wasInView ^ inView) {\n emitMouseEvent(this, null, inView ? \"mouseenter\" : \"mouseleave\", event, point);\n overView = inView ? this : null;\n handle = true;\n }\n if ((inView || mouse.drag) && !point.equals(lastPoint)) {\n emitMouseEvents(this, hitItem, nativeMove ? type : \"mousemove\", event, point, lastPoint);\n handle = true;\n }\n wasInView = inView;\n if (mouse.down && inView || mouse.up && downPoint) {\n emitMouseEvents(this, hitItem, type, event, point, downPoint);\n if (mouse.down) {\n dblClick = hitItem === clickItem && Date.now() - clickTime < 300;\n downItem = clickItem = hitItem;\n if (!prevented && hitItem) {\n var item = hitItem;\n while(item && !item.responds(\"mousedrag\"))item = item._parent;\n if (item) dragItem = hitItem;\n }\n downPoint = point;\n } else if (mouse.up) {\n if (!prevented && hitItem === downItem) {\n clickTime = Date.now();\n emitMouseEvents(this, hitItem, dblClick ? \"doubleclick\" : \"click\", event, point, downPoint);\n dblClick = false;\n }\n downItem = dragItem = null;\n }\n wasInView = false;\n handle = true;\n }\n lastPoint = point;\n if (handle && tool) called = tool._handleMouseEvent(type, event, point, mouse) || called;\n if (event.cancelable !== false && (called && !mouse.move || mouse.down && responds(\"mouseup\"))) event.preventDefault();\n },\n _handleKeyEvent: function(type, event, key, character) {\n var scope = this._scope, tool = scope.tool, keyEvent;\n function emit(obj) {\n if (obj.responds(type)) {\n paper = scope;\n obj.emit(type, keyEvent = keyEvent || new KeyEvent(type, event, key, character));\n }\n }\n if (this.isVisible()) {\n emit(this);\n if (tool && tool.responds(type)) emit(tool);\n }\n },\n _countItemEvent: function(type, sign) {\n var itemEvents = this._itemEvents, native = itemEvents.native, virtual = itemEvents.virtual;\n for(var key in itemEventsMap)native[key] = (native[key] || 0) + (itemEventsMap[key][type] || 0) * sign;\n virtual[type] = (virtual[type] || 0) + sign;\n },\n statics: {\n updateFocus: updateFocus,\n _resetState: function() {\n dragging = mouseDown = called = wasInView = false;\n prevFocus = tempFocus = overView = downPoint = lastPoint = downItem = overItem = dragItem = clickItem = clickTime = dblClick = null;\n }\n }\n };\n });\n var CanvasView = View.extend({\n _class: \"CanvasView\",\n initialize: function CanvasView(project, canvas) {\n if (!(canvas instanceof window.HTMLCanvasElement)) {\n var size = Size.read(arguments, 1);\n if (size.isZero()) throw new Error(\"Cannot create CanvasView with the provided argument: \" + Base.slice(arguments, 1));\n canvas = CanvasProvider.getCanvas(size);\n }\n var ctx = this._context = canvas.getContext(\"2d\");\n ctx.save();\n this._pixelRatio = 1;\n if (!/^off|false$/.test(PaperScope.getAttribute(canvas, \"hidpi\"))) {\n var deviceRatio = window.devicePixelRatio || 1, backingStoreRatio = DomElement.getPrefixed(ctx, \"backingStorePixelRatio\") || 1;\n this._pixelRatio = deviceRatio / backingStoreRatio;\n }\n View.call(this, project, canvas);\n this._needsUpdate = true;\n },\n remove: function remove() {\n this._context.restore();\n return remove.base.call(this);\n },\n _setElementSize: function _setElementSize(width, height) {\n var pixelRatio = this._pixelRatio;\n _setElementSize.base.call(this, width * pixelRatio, height * pixelRatio);\n if (pixelRatio !== 1) {\n var element = this._element, ctx = this._context;\n if (!PaperScope.hasAttribute(element, \"resize\")) {\n var style = element.style;\n style.width = width + \"px\";\n style.height = height + \"px\";\n }\n ctx.restore();\n ctx.save();\n ctx.scale(pixelRatio, pixelRatio);\n }\n },\n getContext: function() {\n return this._context;\n },\n getPixelSize: function getPixelSize(size) {\n var agent = paper.agent, pixels;\n if (agent && agent.firefox) pixels = getPixelSize.base.call(this, size);\n else {\n var ctx = this._context, prevFont = ctx.font;\n ctx.font = size + \" serif\";\n pixels = parseFloat(ctx.font);\n ctx.font = prevFont;\n }\n return pixels;\n },\n getTextWidth: function(font, lines) {\n var ctx = this._context, prevFont = ctx.font, width = 0;\n ctx.font = font;\n for(var i = 0, l = lines.length; i < l; i++)width = Math.max(width, ctx.measureText(lines[i]).width);\n ctx.font = prevFont;\n return width;\n },\n update: function() {\n if (!this._needsUpdate) return false;\n var project = this._project, ctx = this._context, size = this._viewSize;\n ctx.clearRect(0, 0, size.width + 1, size.height + 1);\n if (project) project.draw(ctx, this._matrix, this._pixelRatio);\n this._needsUpdate = false;\n return true;\n }\n });\n var Event = Base.extend({\n _class: \"Event\",\n initialize: function Event(event) {\n this.event = event;\n this.type = event && event.type;\n },\n prevented: false,\n stopped: false,\n preventDefault: function() {\n this.prevented = true;\n this.event.preventDefault();\n },\n stopPropagation: function() {\n this.stopped = true;\n this.event.stopPropagation();\n },\n stop: function() {\n this.stopPropagation();\n this.preventDefault();\n },\n getTimeStamp: function() {\n return this.event.timeStamp;\n },\n getModifiers: function() {\n return Key.modifiers;\n }\n });\n var KeyEvent = Event.extend({\n _class: \"KeyEvent\",\n initialize: function KeyEvent(type, event, key, character) {\n this.type = type;\n this.event = event;\n this.key = key;\n this.character = character;\n },\n toString: function() {\n return \"{ type: '\" + this.type + \"', key: '\" + this.key + \"', character: '\" + this.character + \"', modifiers: \" + this.getModifiers() + \" }\";\n }\n });\n var Key = new function() {\n var keyLookup = {\n \"\t\": \"tab\",\n \" \": \"space\",\n \"\\b\": \"backspace\",\n \"\\x7f\": \"delete\",\n \"Spacebar\": \"space\",\n \"Del\": \"delete\",\n \"Win\": \"meta\",\n \"Esc\": \"escape\"\n }, charLookup = {\n \"tab\": \"\t\",\n \"space\": \" \",\n \"enter\": \"\\r\"\n }, keyMap = {}, charMap = {}, metaFixMap, downKey, modifiers = new Base({\n shift: false,\n control: false,\n alt: false,\n meta: false,\n capsLock: false,\n space: false\n }).inject({\n option: {\n get: function() {\n return this.alt;\n }\n },\n command: {\n get: function() {\n var agent = paper && paper.agent;\n return agent && agent.mac ? this.meta : this.control;\n }\n }\n });\n function getKey(event) {\n var key = event.key || event.keyIdentifier;\n key = /^U\\+/.test(key) ? String.fromCharCode(parseInt(key.substr(2), 16)) : /^Arrow[A-Z]/.test(key) ? key.substr(5) : key === \"Unidentified\" || key === undefined ? String.fromCharCode(event.keyCode) : key;\n return keyLookup[key] || (key.length > 1 ? Base.hyphenate(key) : key.toLowerCase());\n }\n function handleKey(down, key, character, event) {\n var type = down ? \"keydown\" : \"keyup\", view = View._focused, name;\n keyMap[key] = down;\n if (down) charMap[key] = character;\n else delete charMap[key];\n if (key.length > 1 && (name = Base.camelize(key)) in modifiers) {\n modifiers[name] = down;\n var agent = paper && paper.agent;\n if (name === \"meta\" && agent && agent.mac) {\n if (down) metaFixMap = {};\n else {\n for(var k in metaFixMap)if (k in charMap) handleKey(false, k, metaFixMap[k], event);\n metaFixMap = null;\n }\n }\n } else if (down && metaFixMap) metaFixMap[key] = character;\n if (view) view._handleKeyEvent(down ? \"keydown\" : \"keyup\", event, key, character);\n }\n DomEvent.add(document, {\n keydown: function(event) {\n var key = getKey(event), agent = paper && paper.agent;\n if (key.length > 1 || agent && agent.chrome && (event.altKey || agent.mac && event.metaKey || !agent.mac && event.ctrlKey)) handleKey(true, key, charLookup[key] || (key.length > 1 ? \"\" : key), event);\n else downKey = key;\n },\n keypress: function(event) {\n if (downKey) {\n var key = getKey(event), code = event.charCode, character = code >= 32 ? String.fromCharCode(code) : key.length > 1 ? \"\" : key;\n if (key !== downKey) key = character.toLowerCase();\n handleKey(true, key, character, event);\n downKey = null;\n }\n },\n keyup: function(event) {\n var key = getKey(event);\n if (key in charMap) handleKey(false, key, charMap[key], event);\n }\n });\n DomEvent.add(window, {\n blur: function(event) {\n for(var key in charMap)handleKey(false, key, charMap[key], event);\n }\n });\n return {\n modifiers: modifiers,\n isDown: function(key) {\n return !!keyMap[key];\n }\n };\n };\n var MouseEvent = Event.extend({\n _class: \"MouseEvent\",\n initialize: function MouseEvent(type, event, point, target, delta) {\n this.type = type;\n this.event = event;\n this.point = point;\n this.target = target;\n this.delta = delta;\n },\n toString: function() {\n return \"{ type: '\" + this.type + \"', point: \" + this.point + \", target: \" + this.target + (this.delta ? \", delta: \" + this.delta : \"\") + \", modifiers: \" + this.getModifiers() + \" }\";\n }\n });\n var ToolEvent = Event.extend({\n _class: \"ToolEvent\",\n _item: null,\n initialize: function ToolEvent(tool, type, event) {\n this.tool = tool;\n this.type = type;\n this.event = event;\n },\n _choosePoint: function(point, toolPoint) {\n return point ? point : toolPoint ? toolPoint.clone() : null;\n },\n getPoint: function() {\n return this._choosePoint(this._point, this.tool._point);\n },\n setPoint: function(point) {\n this._point = point;\n },\n getLastPoint: function() {\n return this._choosePoint(this._lastPoint, this.tool._lastPoint);\n },\n setLastPoint: function(lastPoint) {\n this._lastPoint = lastPoint;\n },\n getDownPoint: function() {\n return this._choosePoint(this._downPoint, this.tool._downPoint);\n },\n setDownPoint: function(downPoint) {\n this._downPoint = downPoint;\n },\n getMiddlePoint: function() {\n if (!this._middlePoint && this.tool._lastPoint) return this.tool._point.add(this.tool._lastPoint).divide(2);\n return this._middlePoint;\n },\n setMiddlePoint: function(middlePoint) {\n this._middlePoint = middlePoint;\n },\n getDelta: function() {\n return !this._delta && this.tool._lastPoint ? this.tool._point.subtract(this.tool._lastPoint) : this._delta;\n },\n setDelta: function(delta) {\n this._delta = delta;\n },\n getCount: function() {\n return this.tool[/^mouse(down|up)$/.test(this.type) ? \"_downCount\" : \"_moveCount\"];\n },\n setCount: function(count) {\n this.tool[/^mouse(down|up)$/.test(this.type) ? \"downCount\" : \"count\"] = count;\n },\n getItem: function() {\n if (!this._item) {\n var result = this.tool._scope.project.hitTest(this.getPoint());\n if (result) {\n var item = result.item, parent = item._parent;\n while(/^(Group|CompoundPath)$/.test(parent._class)){\n item = parent;\n parent = parent._parent;\n }\n this._item = item;\n }\n }\n return this._item;\n },\n setItem: function(item) {\n this._item = item;\n },\n toString: function() {\n return \"{ type: \" + this.type + \", point: \" + this.getPoint() + \", count: \" + this.getCount() + \", modifiers: \" + this.getModifiers() + \" }\";\n }\n });\n var Tool = PaperScopeItem.extend({\n _class: \"Tool\",\n _list: \"tools\",\n _reference: \"tool\",\n _events: [\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseDrag\",\n \"onMouseMove\",\n \"onActivate\",\n \"onDeactivate\",\n \"onEditOptions\",\n \"onKeyDown\",\n \"onKeyUp\"\n ],\n initialize: function Tool(props) {\n PaperScopeItem.call(this);\n this._moveCount = -1;\n this._downCount = -1;\n this.set(props);\n },\n getMinDistance: function() {\n return this._minDistance;\n },\n setMinDistance: function(minDistance) {\n this._minDistance = minDistance;\n if (minDistance != null && this._maxDistance != null && minDistance > this._maxDistance) this._maxDistance = minDistance;\n },\n getMaxDistance: function() {\n return this._maxDistance;\n },\n setMaxDistance: function(maxDistance) {\n this._maxDistance = maxDistance;\n if (this._minDistance != null && maxDistance != null && maxDistance < this._minDistance) this._minDistance = maxDistance;\n },\n getFixedDistance: function() {\n return this._minDistance == this._maxDistance ? this._minDistance : null;\n },\n setFixedDistance: function(distance) {\n this._minDistance = this._maxDistance = distance;\n },\n _handleMouseEvent: function(type, event, point, mouse) {\n paper = this._scope;\n if (mouse.drag && !this.responds(type)) type = \"mousemove\";\n var move = mouse.move || mouse.drag, responds = this.responds(type), called = false, tool = this;\n function update(minDistance, maxDistance) {\n var pt = point, toolPoint = move ? tool._point : tool._downPoint || pt;\n if (move) {\n if (tool._moveCount >= 0 && pt.equals(toolPoint)) return false;\n if (toolPoint && (minDistance != null || maxDistance != null)) {\n var vector = pt.subtract(toolPoint), distance = vector.getLength();\n if (distance < (minDistance || 0)) return false;\n if (maxDistance) pt = toolPoint.add(vector.normalize(Math.min(distance, maxDistance)));\n }\n tool._moveCount++;\n }\n tool._point = pt;\n tool._lastPoint = toolPoint || pt;\n if (mouse.down) {\n tool._moveCount = -1;\n tool._downPoint = pt;\n tool._downCount++;\n }\n return true;\n }\n function emit() {\n if (responds) called = tool.emit(type, new ToolEvent(tool, type, event)) || called;\n }\n if (mouse.down) {\n update();\n emit();\n } else if (mouse.up) {\n update(null, this._maxDistance);\n emit();\n } else if (responds) while(update(this._minDistance, this._maxDistance))emit();\n return called;\n }\n });\n var Tween = Base.extend(Emitter, {\n _class: \"Tween\",\n statics: {\n easings: new Base({\n linear: function(t) {\n return t;\n },\n easeInQuad: function(t) {\n return t * t;\n },\n easeOutQuad: function(t) {\n return t * (2 - t);\n },\n easeInOutQuad: function(t) {\n return t < 0.5 ? 2 * t * t : -1 + 2 * (2 - t) * t;\n },\n easeInCubic: function(t) {\n return t * t * t;\n },\n easeOutCubic: function(t) {\n return --t * t * t + 1;\n },\n easeInOutCubic: function(t) {\n return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;\n },\n easeInQuart: function(t) {\n return t * t * t * t;\n },\n easeOutQuart: function(t) {\n return 1 - --t * t * t * t;\n },\n easeInOutQuart: function(t) {\n return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;\n },\n easeInQuint: function(t) {\n return t * t * t * t * t;\n },\n easeOutQuint: function(t) {\n return 1 + --t * t * t * t * t;\n },\n easeInOutQuint: function(t) {\n return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;\n }\n })\n },\n initialize: function Tween(object, from, to, duration, easing, start) {\n this.object = object;\n var type = typeof easing;\n var isFunction = type === \"function\";\n this.type = isFunction ? type : type === \"string\" ? easing : \"linear\";\n this.easing = isFunction ? easing : Tween.easings[this.type];\n this.duration = duration;\n this.running = false;\n this._then = null;\n this._startTime = null;\n var state = from || to;\n this._keys = state ? Object.keys(state) : [];\n this._parsedKeys = this._parseKeys(this._keys);\n this._from = state && this._getState(from);\n this._to = state && this._getState(to);\n if (start !== false) this.start();\n },\n then: function(then) {\n this._then = then;\n return this;\n },\n start: function() {\n this._startTime = null;\n this.running = true;\n return this;\n },\n stop: function() {\n this.running = false;\n return this;\n },\n update: function(progress) {\n if (this.running) {\n if (progress >= 1) {\n progress = 1;\n this.running = false;\n }\n var factor = this.easing(progress), keys = this._keys, getValue = function(value) {\n return typeof value === \"function\" ? value(factor, progress) : value;\n };\n for(var i = 0, l = keys && keys.length; i < l; i++){\n var key = keys[i], from = getValue(this._from[key]), to = getValue(this._to[key]), value = from && to && from.__add && to.__add ? to.__subtract(from).__multiply(factor).__add(from) : (to - from) * factor + from;\n this._setProperty(this._parsedKeys[key], value);\n }\n if (this.responds(\"update\")) this.emit(\"update\", new Base({\n progress: progress,\n factor: factor\n }));\n if (!this.running && this._then) this._then(this.object);\n }\n return this;\n },\n _events: {\n onUpdate: {}\n },\n _handleFrame: function(time) {\n var startTime = this._startTime, progress = startTime ? (time - startTime) / this.duration : 0;\n if (!startTime) this._startTime = time;\n this.update(progress);\n },\n _getState: function(state) {\n var keys = this._keys, result = {};\n for(var i = 0, l = keys.length; i < l; i++){\n var key = keys[i], path = this._parsedKeys[key], current = this._getProperty(path), value;\n if (state) {\n var resolved = this._resolveValue(current, state[key]);\n this._setProperty(path, resolved);\n value = this._getProperty(path);\n value = value && value.clone ? value.clone() : value;\n this._setProperty(path, current);\n } else value = current && current.clone ? current.clone() : current;\n result[key] = value;\n }\n return result;\n },\n _resolveValue: function(current, value) {\n if (value) {\n if (Array.isArray(value) && value.length === 2) {\n var operator = value[0];\n return operator && operator.match && operator.match(/^[+\\-\\*\\/]=/) ? this._calculate(current, operator[0], value[1]) : value;\n } else if (typeof value === \"string\") {\n var match = value.match(/^[+\\-*/]=(.*)/);\n if (match) {\n var parsed = JSON.parse(match[1].replace(/(['\"])?([a-zA-Z0-9_]+)(['\"])?:/g, '\"$2\": '));\n return this._calculate(current, value[0], parsed);\n }\n }\n }\n return value;\n },\n _calculate: function(left, operator, right) {\n return paper.PaperScript.calculateBinary(left, operator, right);\n },\n _parseKeys: function(keys) {\n var parsed = {};\n for(var i = 0, l = keys.length; i < l; i++){\n var key = keys[i], path = key.replace(/\\.([^.]*)/g, \"/$1\").replace(/\\[['\"]?([^'\"\\]]*)['\"]?\\]/g, \"/$1\");\n parsed[key] = path.split(\"/\");\n }\n return parsed;\n },\n _getProperty: function(path, offset) {\n var obj = this.object;\n for(var i = 0, l = path.length - (offset || 0); i < l && obj; i++)obj = obj[path[i]];\n return obj;\n },\n _setProperty: function(path, value) {\n var dest = this._getProperty(path, 1);\n if (dest) dest[path[path.length - 1]] = value;\n }\n });\n var Http = {\n request: function(options) {\n var xhr = new self1.XMLHttpRequest();\n xhr.open((options.method || \"get\").toUpperCase(), options.url, Base.pick(options.async, true));\n if (options.mimeType) xhr.overrideMimeType(options.mimeType);\n xhr.onload = function() {\n var status = xhr.status;\n if (status === 0 || status === 200) {\n if (options.onLoad) options.onLoad.call(xhr, xhr.responseText);\n } else xhr.onerror();\n };\n xhr.onerror = function() {\n var status = xhr.status, message = 'Could not load \"' + options.url + '\" (Status: ' + status + \")\";\n if (options.onError) options.onError(message, status);\n else throw new Error(message);\n };\n return xhr.send(null);\n }\n };\n var CanvasProvider = Base.exports.CanvasProvider = {\n canvases: [],\n getCanvas: function(width, height, options) {\n if (!window) return null;\n var canvas, clear = true;\n if (typeof width === \"object\") {\n height = width.height;\n width = width.width;\n }\n if (this.canvases.length) canvas = this.canvases.pop();\n else {\n canvas = document.createElement(\"canvas\");\n clear = false;\n }\n var ctx = canvas.getContext(\"2d\", options || {});\n if (!ctx) throw new Error(\"Canvas \" + canvas + \" is unable to provide a 2D context.\");\n if (canvas.width === width && canvas.height === height) {\n if (clear) ctx.clearRect(0, 0, width + 1, height + 1);\n } else {\n canvas.width = width;\n canvas.height = height;\n }\n ctx.save();\n return canvas;\n },\n getContext: function(width, height, options) {\n var canvas = this.getCanvas(width, height, options);\n return canvas ? canvas.getContext(\"2d\", options || {}) : null;\n },\n release: function(obj) {\n var canvas = obj && obj.canvas ? obj.canvas : obj;\n if (canvas && canvas.getContext) {\n canvas.getContext(\"2d\").restore();\n this.canvases.push(canvas);\n }\n }\n };\n var BlendMode = new function() {\n var min = Math.min, max = Math.max, abs = Math.abs, sr, sg, sb, sa, br, bg, bb, ba, dr, dg, db;\n function getLum(r, g, b) {\n return 0.2989 * r + 0.587 * g + 0.114 * b;\n }\n function setLum(r, g, b, l) {\n var d = l - getLum(r, g, b);\n dr = r + d;\n dg = g + d;\n db = b + d;\n var l = getLum(dr, dg, db), mn = min(dr, dg, db), mx = max(dr, dg, db);\n if (mn < 0) {\n var lmn = l - mn;\n dr = l + (dr - l) * l / lmn;\n dg = l + (dg - l) * l / lmn;\n db = l + (db - l) * l / lmn;\n }\n if (mx > 255) {\n var ln = 255 - l, mxl = mx - l;\n dr = l + (dr - l) * ln / mxl;\n dg = l + (dg - l) * ln / mxl;\n db = l + (db - l) * ln / mxl;\n }\n }\n function getSat(r, g, b) {\n return max(r, g, b) - min(r, g, b);\n }\n function setSat(r, g, b, s) {\n var col = [\n r,\n g,\n b\n ], mx = max(r, g, b), mn = min(r, g, b), md;\n mn = mn === r ? 0 : mn === g ? 1 : 2;\n mx = mx === r ? 0 : mx === g ? 1 : 2;\n md = min(mn, mx) === 0 ? max(mn, mx) === 1 ? 2 : 1 : 0;\n if (col[mx] > col[mn]) {\n col[md] = (col[md] - col[mn]) * s / (col[mx] - col[mn]);\n col[mx] = s;\n } else col[md] = col[mx] = 0;\n col[mn] = 0;\n dr = col[0];\n dg = col[1];\n db = col[2];\n }\n var modes = {\n multiply: function() {\n dr = br * sr / 255;\n dg = bg * sg / 255;\n db = bb * sb / 255;\n },\n screen: function() {\n dr = br + sr - br * sr / 255;\n dg = bg + sg - bg * sg / 255;\n db = bb + sb - bb * sb / 255;\n },\n overlay: function() {\n dr = br < 128 ? 2 * br * sr / 255 : 255 - 2 * (255 - br) * (255 - sr) / 255;\n dg = bg < 128 ? 2 * bg * sg / 255 : 255 - 2 * (255 - bg) * (255 - sg) / 255;\n db = bb < 128 ? 2 * bb * sb / 255 : 255 - 2 * (255 - bb) * (255 - sb) / 255;\n },\n \"soft-light\": function() {\n var t = sr * br / 255;\n dr = t + br * (255 - (255 - br) * (255 - sr) / 255 - t) / 255;\n t = sg * bg / 255;\n dg = t + bg * (255 - (255 - bg) * (255 - sg) / 255 - t) / 255;\n t = sb * bb / 255;\n db = t + bb * (255 - (255 - bb) * (255 - sb) / 255 - t) / 255;\n },\n \"hard-light\": function() {\n dr = sr < 128 ? 2 * sr * br / 255 : 255 - 2 * (255 - sr) * (255 - br) / 255;\n dg = sg < 128 ? 2 * sg * bg / 255 : 255 - 2 * (255 - sg) * (255 - bg) / 255;\n db = sb < 128 ? 2 * sb * bb / 255 : 255 - 2 * (255 - sb) * (255 - bb) / 255;\n },\n \"color-dodge\": function() {\n dr = br === 0 ? 0 : sr === 255 ? 255 : min(255, 255 * br / (255 - sr));\n dg = bg === 0 ? 0 : sg === 255 ? 255 : min(255, 255 * bg / (255 - sg));\n db = bb === 0 ? 0 : sb === 255 ? 255 : min(255, 255 * bb / (255 - sb));\n },\n \"color-burn\": function() {\n dr = br === 255 ? 255 : sr === 0 ? 0 : max(0, 255 - (255 - br) * 255 / sr);\n dg = bg === 255 ? 255 : sg === 0 ? 0 : max(0, 255 - (255 - bg) * 255 / sg);\n db = bb === 255 ? 255 : sb === 0 ? 0 : max(0, 255 - (255 - bb) * 255 / sb);\n },\n darken: function() {\n dr = br < sr ? br : sr;\n dg = bg < sg ? bg : sg;\n db = bb < sb ? bb : sb;\n },\n lighten: function() {\n dr = br > sr ? br : sr;\n dg = bg > sg ? bg : sg;\n db = bb > sb ? bb : sb;\n },\n difference: function() {\n dr = br - sr;\n if (dr < 0) dr = -dr;\n dg = bg - sg;\n if (dg < 0) dg = -dg;\n db = bb - sb;\n if (db < 0) db = -db;\n },\n exclusion: function() {\n dr = br + sr * (255 - br - br) / 255;\n dg = bg + sg * (255 - bg - bg) / 255;\n db = bb + sb * (255 - bb - bb) / 255;\n },\n hue: function() {\n setSat(sr, sg, sb, getSat(br, bg, bb));\n setLum(dr, dg, db, getLum(br, bg, bb));\n },\n saturation: function() {\n setSat(br, bg, bb, getSat(sr, sg, sb));\n setLum(dr, dg, db, getLum(br, bg, bb));\n },\n luminosity: function() {\n setLum(br, bg, bb, getLum(sr, sg, sb));\n },\n color: function() {\n setLum(sr, sg, sb, getLum(br, bg, bb));\n },\n add: function() {\n dr = min(br + sr, 255);\n dg = min(bg + sg, 255);\n db = min(bb + sb, 255);\n },\n subtract: function() {\n dr = max(br - sr, 0);\n dg = max(bg - sg, 0);\n db = max(bb - sb, 0);\n },\n average: function() {\n dr = (br + sr) / 2;\n dg = (bg + sg) / 2;\n db = (bb + sb) / 2;\n },\n negation: function() {\n dr = 255 - abs(255 - sr - br);\n dg = 255 - abs(255 - sg - bg);\n db = 255 - abs(255 - sb - bb);\n }\n };\n var nativeModes = this.nativeModes = Base.each([\n \"source-over\",\n \"source-in\",\n \"source-out\",\n \"source-atop\",\n \"destination-over\",\n \"destination-in\",\n \"destination-out\",\n \"destination-atop\",\n \"lighter\",\n \"darker\",\n \"copy\",\n \"xor\"\n ], function(mode) {\n this[mode] = true;\n }, {});\n var ctx = CanvasProvider.getContext(1, 1, {\n willReadFrequently: true\n });\n if (ctx) {\n Base.each(modes, function(func, mode) {\n var darken = mode === \"darken\", ok = false;\n ctx.save();\n try {\n ctx.fillStyle = darken ? \"#300\" : \"#a00\";\n ctx.fillRect(0, 0, 1, 1);\n ctx.globalCompositeOperation = mode;\n if (ctx.globalCompositeOperation === mode) {\n ctx.fillStyle = darken ? \"#a00\" : \"#300\";\n ctx.fillRect(0, 0, 1, 1);\n ok = ctx.getImageData(0, 0, 1, 1).data[0] !== darken ? 170 : 51;\n }\n } catch (e) {}\n ctx.restore();\n nativeModes[mode] = ok;\n });\n CanvasProvider.release(ctx);\n }\n this.process = function(mode, srcContext, dstContext, alpha, offset) {\n var srcCanvas = srcContext.canvas, normal = mode === \"normal\";\n if (normal || nativeModes[mode]) {\n dstContext.save();\n dstContext.setTransform(1, 0, 0, 1, 0, 0);\n dstContext.globalAlpha = alpha;\n if (!normal) dstContext.globalCompositeOperation = mode;\n dstContext.drawImage(srcCanvas, offset.x, offset.y);\n dstContext.restore();\n } else {\n var process = modes[mode];\n if (!process) return;\n var dstData = dstContext.getImageData(offset.x, offset.y, srcCanvas.width, srcCanvas.height), dst = dstData.data, src = srcContext.getImageData(0, 0, srcCanvas.width, srcCanvas.height).data;\n for(var i = 0, l = dst.length; i < l; i += 4){\n sr = src[i];\n br = dst[i];\n sg = src[i + 1];\n bg = dst[i + 1];\n sb = src[i + 2];\n bb = dst[i + 2];\n sa = src[i + 3];\n ba = dst[i + 3];\n process();\n var a1 = sa * alpha / 255, a2 = 1 - a1;\n dst[i] = a1 * dr + a2 * br;\n dst[i + 1] = a1 * dg + a2 * bg;\n dst[i + 2] = a1 * db + a2 * bb;\n dst[i + 3] = sa * alpha + a2 * ba;\n }\n dstContext.putImageData(dstData, offset.x, offset.y);\n }\n };\n };\n var SvgElement = new function() {\n var svg = \"http://www.w3.org/2000/svg\", xmlns = \"http://www.w3.org/2000/xmlns\", xlink = \"http://www.w3.org/1999/xlink\", attributeNamespace = {\n href: xlink,\n xlink: xmlns,\n xmlns: xmlns + \"/\",\n \"xmlns:xlink\": xmlns + \"/\"\n };\n function create(tag, attributes, formatter) {\n return set(document.createElementNS(svg, tag), attributes, formatter);\n }\n function get(node, name) {\n var namespace = attributeNamespace[name], value = namespace ? node.getAttributeNS(namespace, name) : node.getAttribute(name);\n return value === \"null\" ? null : value;\n }\n function set(node, attributes, formatter) {\n for(var name in attributes){\n var value = attributes[name], namespace = attributeNamespace[name];\n if (typeof value === \"number\" && formatter) value = formatter.number(value);\n if (namespace) node.setAttributeNS(namespace, name, value);\n else node.setAttribute(name, value);\n }\n return node;\n }\n return {\n svg: svg,\n xmlns: xmlns,\n xlink: xlink,\n create: create,\n get: get,\n set: set\n };\n };\n var SvgStyles = Base.each({\n fillColor: [\n \"fill\",\n \"color\"\n ],\n fillRule: [\n \"fill-rule\",\n \"string\"\n ],\n strokeColor: [\n \"stroke\",\n \"color\"\n ],\n strokeWidth: [\n \"stroke-width\",\n \"number\"\n ],\n strokeCap: [\n \"stroke-linecap\",\n \"string\"\n ],\n strokeJoin: [\n \"stroke-linejoin\",\n \"string\"\n ],\n strokeScaling: [\n \"vector-effect\",\n \"lookup\",\n {\n true: \"none\",\n false: \"non-scaling-stroke\"\n },\n function(item, value) {\n return !value && (item instanceof PathItem || item instanceof Shape || item instanceof TextItem);\n }\n ],\n miterLimit: [\n \"stroke-miterlimit\",\n \"number\"\n ],\n dashArray: [\n \"stroke-dasharray\",\n \"array\"\n ],\n dashOffset: [\n \"stroke-dashoffset\",\n \"number\"\n ],\n fontFamily: [\n \"font-family\",\n \"string\"\n ],\n fontWeight: [\n \"font-weight\",\n \"string\"\n ],\n fontSize: [\n \"font-size\",\n \"number\"\n ],\n justification: [\n \"text-anchor\",\n \"lookup\",\n {\n left: \"start\",\n center: \"middle\",\n right: \"end\"\n }\n ],\n opacity: [\n \"opacity\",\n \"number\"\n ],\n blendMode: [\n \"mix-blend-mode\",\n \"style\"\n ]\n }, function(entry, key) {\n var part = Base.capitalize(key), lookup = entry[2];\n this[key] = {\n type: entry[1],\n property: key,\n attribute: entry[0],\n toSVG: lookup,\n fromSVG: lookup && Base.each(lookup, function(value, name) {\n this[value] = name;\n }, {}),\n exportFilter: entry[3],\n get: \"get\" + part,\n set: \"set\" + part\n };\n }, {});\n new function() {\n var formatter;\n function getTransform(matrix, coordinates, center) {\n var attrs = new Base(), trans = matrix.getTranslation();\n if (coordinates) {\n var point;\n if (matrix.isInvertible()) {\n matrix = matrix._shiftless();\n point = matrix._inverseTransform(trans);\n trans = null;\n } else point = new Point();\n attrs[center ? \"cx\" : \"x\"] = point.x;\n attrs[center ? \"cy\" : \"y\"] = point.y;\n }\n if (!matrix.isIdentity()) {\n var decomposed = matrix.decompose();\n if (decomposed) {\n var parts = [], angle = decomposed.rotation, scale = decomposed.scaling, skew = decomposed.skewing;\n if (trans && !trans.isZero()) parts.push(\"translate(\" + formatter.point(trans) + \")\");\n if (angle) parts.push(\"rotate(\" + formatter.number(angle) + \")\");\n if (!Numerical.isZero(scale.x - 1) || !Numerical.isZero(scale.y - 1)) parts.push(\"scale(\" + formatter.point(scale) + \")\");\n if (skew.x) parts.push(\"skewX(\" + formatter.number(skew.x) + \")\");\n if (skew.y) parts.push(\"skewY(\" + formatter.number(skew.y) + \")\");\n attrs.transform = parts.join(\" \");\n } else attrs.transform = \"matrix(\" + matrix.getValues().join(\",\") + \")\";\n }\n return attrs;\n }\n function exportGroup(item, options) {\n var attrs = getTransform(item._matrix), children = item._children;\n var node = SvgElement.create(\"g\", attrs, formatter);\n for(var i = 0, l = children.length; i < l; i++){\n var child = children[i];\n var childNode = exportSVG(child, options);\n if (childNode) {\n if (child.isClipMask()) {\n var clip = SvgElement.create(\"clipPath\");\n clip.appendChild(childNode);\n setDefinition(child, clip, \"clip\");\n SvgElement.set(node, {\n \"clip-path\": \"url(#\" + clip.id + \")\"\n });\n } else node.appendChild(childNode);\n }\n }\n return node;\n }\n function exportRaster(item, options) {\n var attrs = getTransform(item._matrix, true), size = item.getSize(), image = item.getImage();\n attrs.x -= size.width / 2;\n attrs.y -= size.height / 2;\n attrs.width = size.width;\n attrs.height = size.height;\n attrs.href = options.embedImages == false && image && image.src || item.toDataURL();\n return SvgElement.create(\"image\", attrs, formatter);\n }\n function exportPath(item, options) {\n var matchShapes = options.matchShapes;\n if (matchShapes) {\n var shape = item.toShape(false);\n if (shape) return exportShape(shape, options);\n }\n var segments = item._segments, length = segments.length, type, attrs = getTransform(item._matrix);\n if (matchShapes && length >= 2 && !item.hasHandles()) {\n if (length > 2) {\n type = item._closed ? \"polygon\" : \"polyline\";\n var parts = [];\n for(var i = 0; i < length; i++)parts.push(formatter.point(segments[i]._point));\n attrs.points = parts.join(\" \");\n } else {\n type = \"line\";\n var start = segments[0]._point, end = segments[1]._point;\n attrs.set({\n x1: start.x,\n y1: start.y,\n x2: end.x,\n y2: end.y\n });\n }\n } else {\n type = \"path\";\n attrs.d = item.getPathData(null, options.precision);\n }\n return SvgElement.create(type, attrs, formatter);\n }\n function exportShape(item) {\n var type = item._type, radius = item._radius, attrs = getTransform(item._matrix, true, type !== \"rectangle\");\n if (type === \"rectangle\") {\n type = \"rect\";\n var size = item._size, width = size.width, height = size.height;\n attrs.x -= width / 2;\n attrs.y -= height / 2;\n attrs.width = width;\n attrs.height = height;\n if (radius.isZero()) radius = null;\n }\n if (radius) {\n if (type === \"circle\") attrs.r = radius;\n else {\n attrs.rx = radius.width;\n attrs.ry = radius.height;\n }\n }\n return SvgElement.create(type, attrs, formatter);\n }\n function exportCompoundPath(item, options) {\n var attrs = getTransform(item._matrix);\n var data = item.getPathData(null, options.precision);\n if (data) attrs.d = data;\n return SvgElement.create(\"path\", attrs, formatter);\n }\n function exportSymbolItem(item, options) {\n var attrs = getTransform(item._matrix, true), definition = item._definition, node = getDefinition(definition, \"symbol\"), definitionItem = definition._item, bounds = definitionItem.getStrokeBounds();\n if (!node) {\n node = SvgElement.create(\"symbol\", {\n viewBox: formatter.rectangle(bounds)\n });\n node.appendChild(exportSVG(definitionItem, options));\n setDefinition(definition, node, \"symbol\");\n }\n attrs.href = \"#\" + node.id;\n attrs.x += bounds.x;\n attrs.y += bounds.y;\n attrs.width = bounds.width;\n attrs.height = bounds.height;\n attrs.overflow = \"visible\";\n return SvgElement.create(\"use\", attrs, formatter);\n }\n function exportGradient(color) {\n var gradientNode = getDefinition(color, \"color\");\n if (!gradientNode) {\n var gradient = color.getGradient(), radial = gradient._radial, origin = color.getOrigin(), destination = color.getDestination(), attrs;\n if (radial) {\n attrs = {\n cx: origin.x,\n cy: origin.y,\n r: origin.getDistance(destination)\n };\n var highlight = color.getHighlight();\n if (highlight) {\n attrs.fx = highlight.x;\n attrs.fy = highlight.y;\n }\n } else attrs = {\n x1: origin.x,\n y1: origin.y,\n x2: destination.x,\n y2: destination.y\n };\n attrs.gradientUnits = \"userSpaceOnUse\";\n gradientNode = SvgElement.create((radial ? \"radial\" : \"linear\") + \"Gradient\", attrs, formatter);\n var stops = gradient._stops;\n for(var i = 0, l = stops.length; i < l; i++){\n var stop = stops[i], stopColor = stop._color, alpha = stopColor.getAlpha(), offset = stop._offset;\n attrs = {\n offset: offset == null ? i / (l - 1) : offset\n };\n if (stopColor) attrs[\"stop-color\"] = stopColor.toCSS(true);\n if (alpha < 1) attrs[\"stop-opacity\"] = alpha;\n gradientNode.appendChild(SvgElement.create(\"stop\", attrs, formatter));\n }\n setDefinition(color, gradientNode, \"color\");\n }\n return \"url(#\" + gradientNode.id + \")\";\n }\n function exportText(item) {\n var node = SvgElement.create(\"text\", getTransform(item._matrix, true), formatter);\n node.textContent = item._content;\n return node;\n }\n var exporters = {\n Group: exportGroup,\n Layer: exportGroup,\n Raster: exportRaster,\n Path: exportPath,\n Shape: exportShape,\n CompoundPath: exportCompoundPath,\n SymbolItem: exportSymbolItem,\n PointText: exportText\n };\n function applyStyle(item, node, options, isRoot) {\n var attrs = {}, parent = !isRoot && item.getParent(), style = [];\n if (item._name != null) attrs.id = item._name;\n Base.each(SvgStyles, function(entry) {\n var get = entry.get, type = entry.type, value = item[get]();\n if (entry.exportFilter ? entry.exportFilter(item, value) : options.reduceAttributes == false || !parent || !Base.equals(parent[get](), value)) {\n if (type === \"color\" && value != null) {\n var alpha = value.getAlpha();\n if (alpha < 1) attrs[entry.attribute + \"-opacity\"] = alpha;\n }\n if (type === \"style\") style.push(entry.attribute + \": \" + value);\n else attrs[entry.attribute] = value == null ? \"none\" : type === \"color\" ? value.gradient ? exportGradient(value, item) : value.toCSS(true) : type === \"array\" ? value.join(\",\") : type === \"lookup\" ? entry.toSVG[value] : value;\n }\n });\n if (style.length) attrs.style = style.join(\";\");\n if (attrs.opacity === 1) delete attrs.opacity;\n if (!item._visible) attrs.visibility = \"hidden\";\n return SvgElement.set(node, attrs, formatter);\n }\n var definitions;\n function getDefinition(item, type) {\n if (!definitions) definitions = {\n ids: {},\n svgs: {}\n };\n return item && definitions.svgs[type + \"-\" + (item._id || item.__id || (item.__id = UID.get(\"svg\")))];\n }\n function setDefinition(item, node, type) {\n if (!definitions) getDefinition();\n var typeId = definitions.ids[type] = (definitions.ids[type] || 0) + 1;\n node.id = type + \"-\" + typeId;\n definitions.svgs[type + \"-\" + (item._id || item.__id)] = node;\n }\n function exportDefinitions(node, options) {\n var svg = node, defs = null;\n if (definitions) {\n svg = node.nodeName.toLowerCase() === \"svg\" && node;\n for(var i in definitions.svgs){\n if (!defs) {\n if (!svg) {\n svg = SvgElement.create(\"svg\");\n svg.appendChild(node);\n }\n defs = svg.insertBefore(SvgElement.create(\"defs\"), svg.firstChild);\n }\n defs.appendChild(definitions.svgs[i]);\n }\n definitions = null;\n }\n return options.asString ? new self1.XMLSerializer().serializeToString(svg) : svg;\n }\n function exportSVG(item, options, isRoot) {\n var exporter = exporters[item._class], node = exporter && exporter(item, options);\n if (node) {\n var onExport = options.onExport;\n if (onExport) node = onExport(item, node, options) || node;\n var data = JSON.stringify(item._data);\n if (data && data !== \"{}\" && data !== \"null\") node.setAttribute(\"data-paper-data\", data);\n }\n return node && applyStyle(item, node, options, isRoot);\n }\n function setOptions(options) {\n if (!options) options = {};\n formatter = new Formatter(options.precision);\n return options;\n }\n Item.inject({\n exportSVG: function(options) {\n options = setOptions(options);\n return exportDefinitions(exportSVG(this, options, true), options);\n }\n });\n Project.inject({\n exportSVG: function(options) {\n options = setOptions(options);\n var children = this._children, view = this.getView(), bounds = Base.pick(options.bounds, \"view\"), mx = options.matrix || bounds === \"view\" && view._matrix, matrix = mx && Matrix.read([\n mx\n ]), rect = bounds === \"view\" ? new Rectangle([\n 0,\n 0\n ], view.getViewSize()) : bounds === \"content\" ? Item._getBounds(children, matrix, {\n stroke: true\n }).rect : Rectangle.read([\n bounds\n ], 0, {\n readNull: true\n }), attrs = {\n version: \"1.1\",\n xmlns: SvgElement.svg,\n \"xmlns:xlink\": SvgElement.xlink\n };\n if (rect) {\n attrs.width = rect.width;\n attrs.height = rect.height;\n if (rect.x || rect.x === 0 || rect.y || rect.y === 0) attrs.viewBox = formatter.rectangle(rect);\n }\n var node = SvgElement.create(\"svg\", attrs, formatter), parent = node;\n if (matrix && !matrix.isIdentity()) parent = node.appendChild(SvgElement.create(\"g\", getTransform(matrix), formatter));\n for(var i = 0, l = children.length; i < l; i++)parent.appendChild(exportSVG(children[i], options, true));\n return exportDefinitions(node, options);\n }\n });\n };\n new function() {\n var definitions = {}, rootSize;\n function getValue(node, name, isString, allowNull, allowPercent, defaultValue) {\n var value = SvgElement.get(node, name) || defaultValue, res = value == null ? allowNull ? null : isString ? \"\" : 0 : isString ? value : parseFloat(value);\n return /%\\s*$/.test(value) ? res / 100 * (allowPercent ? 1 : rootSize[/x|^width/.test(name) ? \"width\" : \"height\"]) : res;\n }\n function getPoint(node, x, y, allowNull, allowPercent, defaultX, defaultY) {\n x = getValue(node, x || \"x\", false, allowNull, allowPercent, defaultX);\n y = getValue(node, y || \"y\", false, allowNull, allowPercent, defaultY);\n return allowNull && (x == null || y == null) ? null : new Point(x, y);\n }\n function getSize(node, w, h, allowNull, allowPercent) {\n w = getValue(node, w || \"width\", false, allowNull, allowPercent);\n h = getValue(node, h || \"height\", false, allowNull, allowPercent);\n return allowNull && (w == null || h == null) ? null : new Size(w, h);\n }\n function convertValue(value, type, lookup) {\n return value === \"none\" ? null : type === \"number\" ? parseFloat(value) : type === \"array\" ? value ? value.split(/[\\s,]+/g).map(parseFloat) : [] : type === \"color\" ? getDefinition(value) || value : type === \"lookup\" ? lookup[value] : value;\n }\n function importGroup(node, type, options, isRoot) {\n var nodes = node.childNodes, isClip = type === \"clippath\", isDefs = type === \"defs\", item = new Group(), project = item._project, currentStyle = project._currentStyle, children = [];\n if (!isClip && !isDefs) {\n item = applyAttributes(item, node, isRoot);\n project._currentStyle = item._style.clone();\n }\n if (isRoot) {\n var defs = node.querySelectorAll(\"defs\");\n for(var i = 0, l = defs.length; i < l; i++)importNode(defs[i], options, false);\n }\n for(var i = 0, l = nodes.length; i < l; i++){\n var childNode = nodes[i], child;\n if (childNode.nodeType === 1 && !/^defs$/i.test(childNode.nodeName) && (child = importNode(childNode, options, false)) && !(child instanceof SymbolDefinition)) children.push(child);\n }\n item.addChildren(children);\n if (isClip) item = applyAttributes(item.reduce(), node, isRoot);\n project._currentStyle = currentStyle;\n if (isClip || isDefs) {\n item.remove();\n item = null;\n }\n return item;\n }\n function importPoly(node, type) {\n var coords = node.getAttribute(\"points\").match(/[+-]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?/g), points = [];\n for(var i = 0, l = coords.length; i < l; i += 2)points.push(new Point(parseFloat(coords[i]), parseFloat(coords[i + 1])));\n var path = new Path(points);\n if (type === \"polygon\") path.closePath();\n return path;\n }\n function importPath(node) {\n return PathItem.create(node.getAttribute(\"d\"));\n }\n function importGradient(node, type) {\n var id = (getValue(node, \"href\", true) || \"\").substring(1), radial = type === \"radialgradient\", gradient;\n if (id) {\n gradient = definitions[id].getGradient();\n if (gradient._radial ^ radial) {\n gradient = gradient.clone();\n gradient._radial = radial;\n }\n } else {\n var nodes = node.childNodes, stops = [];\n for(var i = 0, l = nodes.length; i < l; i++){\n var child = nodes[i];\n if (child.nodeType === 1) stops.push(applyAttributes(new GradientStop(), child));\n }\n gradient = new Gradient(stops, radial);\n }\n var origin, destination, highlight, scaleToBounds = getValue(node, \"gradientUnits\", true) !== \"userSpaceOnUse\";\n if (radial) {\n origin = getPoint(node, \"cx\", \"cy\", false, scaleToBounds, \"50%\", \"50%\");\n destination = origin.add(getValue(node, \"r\", false, false, scaleToBounds, \"50%\"), 0);\n highlight = getPoint(node, \"fx\", \"fy\", true, scaleToBounds);\n } else {\n origin = getPoint(node, \"x1\", \"y1\", false, scaleToBounds, \"0%\", \"0%\");\n destination = getPoint(node, \"x2\", \"y2\", false, scaleToBounds, \"100%\", \"0%\");\n }\n var color = applyAttributes(new Color(gradient, origin, destination, highlight), node);\n color._scaleToBounds = scaleToBounds;\n return null;\n }\n var importers = {\n \"#document\": function(node, type, options, isRoot) {\n var nodes = node.childNodes;\n for(var i = 0, l = nodes.length; i < l; i++){\n var child = nodes[i];\n if (child.nodeType === 1) return importNode(child, options, isRoot);\n }\n },\n g: importGroup,\n svg: importGroup,\n clippath: importGroup,\n polygon: importPoly,\n polyline: importPoly,\n path: importPath,\n lineargradient: importGradient,\n radialgradient: importGradient,\n image: function(node) {\n var raster = new Raster(getValue(node, \"href\", true));\n raster.on(\"load\", function() {\n var size = getSize(node);\n this.setSize(size);\n var center = getPoint(node).add(size.divide(2));\n this._matrix.append(new Matrix().translate(center));\n });\n return raster;\n },\n symbol: function(node, type, options, isRoot) {\n return new SymbolDefinition(importGroup(node, type, options, isRoot), true);\n },\n defs: importGroup,\n use: function(node) {\n var id = (getValue(node, \"href\", true) || \"\").substring(1), definition = definitions[id], point = getPoint(node);\n return definition ? definition instanceof SymbolDefinition ? definition.place(point) : definition.clone().translate(point) : null;\n },\n circle: function(node) {\n return new Shape.Circle(getPoint(node, \"cx\", \"cy\"), getValue(node, \"r\"));\n },\n ellipse: function(node) {\n return new Shape.Ellipse({\n center: getPoint(node, \"cx\", \"cy\"),\n radius: getSize(node, \"rx\", \"ry\")\n });\n },\n rect: function(node) {\n return new Shape.Rectangle(new Rectangle(getPoint(node), getSize(node)), getSize(node, \"rx\", \"ry\"));\n },\n line: function(node) {\n return new Path.Line(getPoint(node, \"x1\", \"y1\"), getPoint(node, \"x2\", \"y2\"));\n },\n text: function(node) {\n var text = new PointText(getPoint(node).add(getPoint(node, \"dx\", \"dy\")));\n text.setContent(node.textContent.trim() || \"\");\n return text;\n },\n switch: importGroup\n };\n function applyTransform(item, value, name, node) {\n if (item.transform) {\n var transforms = (node.getAttribute(name) || \"\").split(/\\)\\s*/g), matrix = new Matrix();\n for(var i = 0, l = transforms.length; i < l; i++){\n var transform = transforms[i];\n if (!transform) break;\n var parts = transform.split(/\\(\\s*/), command = parts[0].trim(), v = parts[1].split(/[\\s,]+/g);\n for(var j = 0, m = v.length; j < m; j++)v[j] = parseFloat(v[j]);\n switch(command){\n case \"matrix\":\n matrix.append(new Matrix(v[0], v[1], v[2], v[3], v[4], v[5]));\n break;\n case \"rotate\":\n matrix.rotate(v[0], v[1] || 0, v[2] || 0);\n break;\n case \"translate\":\n matrix.translate(v[0], v[1] || 0);\n break;\n case \"scale\":\n matrix.scale(v);\n break;\n case \"skewX\":\n matrix.skew(v[0], 0);\n break;\n case \"skewY\":\n matrix.skew(0, v[0]);\n break;\n }\n }\n item.transform(matrix);\n }\n }\n function applyOpacity(item, value, name) {\n var key = name === \"fill-opacity\" ? \"getFillColor\" : \"getStrokeColor\", color = item[key] && item[key]();\n if (color) color.setAlpha(parseFloat(value));\n }\n var attributes = Base.set(Base.each(SvgStyles, function(entry) {\n this[entry.attribute] = function(item, value) {\n if (item[entry.set]) {\n item[entry.set](convertValue(value, entry.type, entry.fromSVG));\n if (entry.type === \"color\") {\n var color = item[entry.get]();\n if (color) {\n if (color._scaleToBounds) {\n var bounds = item.getBounds();\n color.transform(new Matrix().translate(bounds.getPoint()).scale(bounds.getSize()));\n }\n }\n }\n }\n };\n }, {}), {\n id: function(item, value) {\n definitions[value] = item;\n if (item.setName) item.setName(value);\n },\n \"clip-path\": function(item, value) {\n var clip = getDefinition(value);\n if (clip) {\n clip = clip.clone();\n clip.setClipMask(true);\n if (item instanceof Group) item.insertChild(0, clip);\n else return new Group(clip, item);\n }\n },\n gradientTransform: applyTransform,\n transform: applyTransform,\n \"fill-opacity\": applyOpacity,\n \"stroke-opacity\": applyOpacity,\n visibility: function(item, value) {\n if (item.setVisible) item.setVisible(value === \"visible\");\n },\n display: function(item, value) {\n if (item.setVisible) item.setVisible(value !== null);\n },\n \"stop-color\": function(item, value) {\n if (item.setColor) item.setColor(value);\n },\n \"stop-opacity\": function(item, value) {\n if (item._color) item._color.setAlpha(parseFloat(value));\n },\n offset: function(item, value) {\n if (item.setOffset) {\n var percent = value.match(/(.*)%$/);\n item.setOffset(percent ? percent[1] / 100 : parseFloat(value));\n }\n },\n viewBox: function(item, value, name, node, styles) {\n var rect = new Rectangle(convertValue(value, \"array\")), size = getSize(node, null, null, true), group, matrix;\n if (item instanceof Group) {\n var scale = size ? size.divide(rect.getSize()) : 1, matrix = new Matrix().scale(scale).translate(rect.getPoint().negate());\n group = item;\n } else if (item instanceof SymbolDefinition) {\n if (size) rect.setSize(size);\n group = item._item;\n }\n if (group) {\n if (getAttribute(node, \"overflow\", styles) !== \"visible\") {\n var clip = new Shape.Rectangle(rect);\n clip.setClipMask(true);\n group.addChild(clip);\n }\n if (matrix) group.transform(matrix);\n }\n }\n });\n function getAttribute(node, name, styles) {\n var attr = node.attributes[name], value = attr && attr.value;\n if (!value && node.style) {\n var style = Base.camelize(name);\n value = node.style[style];\n if (!value && styles.node[style] !== styles.parent[style]) value = styles.node[style];\n }\n return !value ? undefined : value === \"none\" ? null : value;\n }\n function applyAttributes(item, node, isRoot) {\n var parent = node.parentNode, styles = {\n node: DomElement.getStyles(node) || {},\n parent: !isRoot && !/^defs$/i.test(parent.tagName) && DomElement.getStyles(parent) || {}\n };\n Base.each(attributes, function(apply, name) {\n var value = getAttribute(node, name, styles);\n item = value !== undefined && apply(item, value, name, node, styles) || item;\n });\n return item;\n }\n function getDefinition(value) {\n var match = value && value.match(/\\((?:[\"'#]*)([^\"')]+)/), name = match && match[1], res = name && definitions[window ? name.replace(window.location.href.split(\"#\")[0] + \"#\", \"\") : name];\n if (res && res._scaleToBounds) {\n res = res.clone();\n res._scaleToBounds = true;\n }\n return res;\n }\n function importNode(node, options, isRoot) {\n var type = node.nodeName.toLowerCase(), isElement = type !== \"#document\", body = document.body, container, parent, next;\n if (isRoot && isElement) {\n rootSize = paper.getView().getSize();\n rootSize = getSize(node, null, null, true) || rootSize;\n container = SvgElement.create(\"svg\", {\n style: \"stroke-width: 1px; stroke-miterlimit: 10\"\n });\n parent = node.parentNode;\n next = node.nextSibling;\n container.appendChild(node);\n body.appendChild(container);\n }\n var settings = paper.settings, applyMatrix = settings.applyMatrix, insertItems = settings.insertItems;\n settings.applyMatrix = false;\n settings.insertItems = false;\n var importer = importers[type], item = importer && importer(node, type, options, isRoot) || null;\n settings.insertItems = insertItems;\n settings.applyMatrix = applyMatrix;\n if (item) {\n if (isElement && !(item instanceof Group)) item = applyAttributes(item, node, isRoot);\n var onImport = options.onImport, data = isElement && node.getAttribute(\"data-paper-data\");\n if (onImport) item = onImport(node, item, options) || item;\n if (options.expandShapes && item instanceof Shape) {\n item.remove();\n item = item.toPath();\n }\n if (data) item._data = JSON.parse(data);\n }\n if (container) {\n body.removeChild(container);\n if (parent) {\n if (next) parent.insertBefore(node, next);\n else parent.appendChild(node);\n }\n }\n if (isRoot) {\n definitions = {};\n if (item && Base.pick(options.applyMatrix, applyMatrix)) item.matrix.apply(true, true);\n }\n return item;\n }\n function importSVG(source, options, owner) {\n if (!source) return null;\n options = typeof options === \"function\" ? {\n onLoad: options\n } : options || {};\n var scope = paper, item = null;\n function onLoad(svg) {\n try {\n var node = typeof svg === \"object\" ? svg : new self1.DOMParser().parseFromString(svg.trim(), \"image/svg+xml\");\n if (!node.nodeName) {\n node = null;\n throw new Error(\"Unsupported SVG source: \" + source);\n }\n paper = scope;\n item = importNode(node, options, true);\n if (!options || options.insert !== false) owner._insertItem(undefined, item);\n var onLoad = options.onLoad;\n if (onLoad) onLoad(item, svg);\n } catch (e) {\n onError(e);\n }\n }\n function onError(message, status) {\n var onError = options.onError;\n if (onError) onError(message, status);\n else throw new Error(message);\n }\n if (typeof source === \"string\" && !/^[\\s\\S]* 3) {\n cats.sort(function(a, b) {\n return b.length - a.length;\n });\n f += \"switch(str.length){\";\n for(var i = 0; i < cats.length; ++i){\n var cat = cats[i];\n f += \"case \" + cat[0].length + \":\";\n compareTo(cat);\n }\n f += \"}\";\n } else compareTo(words);\n return new Function(\"str\", f);\n }\n var isReservedWord3 = makePredicate(\"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\");\n var isReservedWord5 = makePredicate(\"class enum extends super const export import\");\n var isStrictReservedWord = makePredicate(\"implements interface let package private protected public static yield\");\n var isStrictBadIdWord = makePredicate(\"eval arguments\");\n var isKeyword = makePredicate(\"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\");\n var nonASCIIwhitespace = /[\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/;\n var nonASCIIidentifierStartChars = \"\\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\";\n var nonASCIIidentifierChars = \"\\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\";\n var nonASCIIidentifierStart = new RegExp(\"[\" + nonASCIIidentifierStartChars + \"]\");\n var nonASCIIidentifier = new RegExp(\"[\" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + \"]\");\n var newline = /[\\n\\r\\u2028\\u2029]/;\n var lineBreak = /\\r\\n|[\\n\\r\\u2028\\u2029]/g;\n var isIdentifierStart = exports.isIdentifierStart = function(code) {\n if (code < 65) return code === 36;\n if (code < 91) return true;\n if (code < 97) return code === 95;\n if (code < 123) return true;\n return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));\n };\n var isIdentifierChar = exports.isIdentifierChar = function(code) {\n if (code < 48) return code === 36;\n if (code < 58) return true;\n if (code < 65) return false;\n if (code < 91) return true;\n if (code < 97) return code === 95;\n if (code < 123) return true;\n return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));\n };\n function line_loc_t() {\n this.line = tokCurLine;\n this.column = tokPos - tokLineStart;\n }\n function initTokenState() {\n tokCurLine = 1;\n tokPos = tokLineStart = 0;\n tokRegexpAllowed = true;\n skipSpace();\n }\n function finishToken(type, val) {\n tokEnd = tokPos;\n if (options.locations) tokEndLoc = new line_loc_t;\n tokType = type;\n skipSpace();\n tokVal = val;\n tokRegexpAllowed = type.beforeExpr;\n }\n function skipBlockComment() {\n var startLoc = options.onComment && options.locations && new line_loc_t;\n var start = tokPos, end = input.indexOf(\"*/\", tokPos += 2);\n if (end === -1) raise(tokPos - 2, \"Unterminated comment\");\n tokPos = end + 2;\n if (options.locations) {\n lineBreak.lastIndex = start;\n var match;\n while((match = lineBreak.exec(input)) && match.index < tokPos){\n ++tokCurLine;\n tokLineStart = match.index + match[0].length;\n }\n }\n if (options.onComment) options.onComment(true, input.slice(start + 2, end), start, tokPos, startLoc, options.locations && new line_loc_t);\n }\n function skipLineComment() {\n var start = tokPos;\n var startLoc = options.onComment && options.locations && new line_loc_t;\n var ch = input.charCodeAt(tokPos += 2);\n while(tokPos < inputLen && ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233){\n ++tokPos;\n ch = input.charCodeAt(tokPos);\n }\n if (options.onComment) options.onComment(false, input.slice(start + 2, tokPos), start, tokPos, startLoc, options.locations && new line_loc_t);\n }\n function skipSpace() {\n while(tokPos < inputLen){\n var ch = input.charCodeAt(tokPos);\n if (ch === 32) ++tokPos;\n else if (ch === 13) {\n ++tokPos;\n var next = input.charCodeAt(tokPos);\n if (next === 10) ++tokPos;\n if (options.locations) {\n ++tokCurLine;\n tokLineStart = tokPos;\n }\n } else if (ch === 10 || ch === 8232 || ch === 8233) {\n ++tokPos;\n if (options.locations) {\n ++tokCurLine;\n tokLineStart = tokPos;\n }\n } else if (ch > 8 && ch < 14) ++tokPos;\n else if (ch === 47) {\n var next = input.charCodeAt(tokPos + 1);\n if (next === 42) skipBlockComment();\n else if (next === 47) skipLineComment();\n else break;\n } else if (ch === 160) ++tokPos;\n else if (ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) ++tokPos;\n else break;\n }\n }\n function readToken_dot() {\n var next = input.charCodeAt(tokPos + 1);\n if (next >= 48 && next <= 57) return readNumber(true);\n ++tokPos;\n return finishToken(_dot);\n }\n function readToken_slash() {\n var next = input.charCodeAt(tokPos + 1);\n if (tokRegexpAllowed) {\n ++tokPos;\n return readRegexp();\n }\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(_slash, 1);\n }\n function readToken_mult_modulo() {\n var next = input.charCodeAt(tokPos + 1);\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(_multiplyModulo, 1);\n }\n function readToken_pipe_amp(code) {\n var next = input.charCodeAt(tokPos + 1);\n if (next === code) return finishOp(code === 124 ? _logicalOR : _logicalAND, 2);\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(code === 124 ? _bitwiseOR : _bitwiseAND, 1);\n }\n function readToken_caret() {\n var next = input.charCodeAt(tokPos + 1);\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(_bitwiseXOR, 1);\n }\n function readToken_plus_min(code) {\n var next = input.charCodeAt(tokPos + 1);\n if (next === code) {\n if (next == 45 && input.charCodeAt(tokPos + 2) == 62 && newline.test(input.slice(lastEnd, tokPos))) {\n tokPos += 3;\n skipLineComment();\n skipSpace();\n return readToken();\n }\n return finishOp(_incDec, 2);\n }\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(_plusMin, 1);\n }\n function readToken_lt_gt(code) {\n var next = input.charCodeAt(tokPos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && input.charCodeAt(tokPos + 2) === 62 ? 3 : 2;\n if (input.charCodeAt(tokPos + size) === 61) return finishOp(_assign, size + 1);\n return finishOp(_bitShift, size);\n }\n if (next == 33 && code == 60 && input.charCodeAt(tokPos + 2) == 45 && input.charCodeAt(tokPos + 3) == 45) {\n tokPos += 4;\n skipLineComment();\n skipSpace();\n return readToken();\n }\n if (next === 61) size = input.charCodeAt(tokPos + 2) === 61 ? 3 : 2;\n return finishOp(_relational, size);\n }\n function readToken_eq_excl(code) {\n var next = input.charCodeAt(tokPos + 1);\n if (next === 61) return finishOp(_equality, input.charCodeAt(tokPos + 2) === 61 ? 3 : 2);\n return finishOp(code === 61 ? _eq : _prefix, 1);\n }\n function getTokenFromCode(code) {\n switch(code){\n case 46:\n return readToken_dot();\n case 40:\n ++tokPos;\n return finishToken(_parenL);\n case 41:\n ++tokPos;\n return finishToken(_parenR);\n case 59:\n ++tokPos;\n return finishToken(_semi);\n case 44:\n ++tokPos;\n return finishToken(_comma);\n case 91:\n ++tokPos;\n return finishToken(_bracketL);\n case 93:\n ++tokPos;\n return finishToken(_bracketR);\n case 123:\n ++tokPos;\n return finishToken(_braceL);\n case 125:\n ++tokPos;\n return finishToken(_braceR);\n case 58:\n ++tokPos;\n return finishToken(_colon);\n case 63:\n ++tokPos;\n return finishToken(_question);\n case 48:\n var next = input.charCodeAt(tokPos + 1);\n if (next === 120 || next === 88) return readHexNumber();\n case 49:\n case 50:\n case 51:\n case 52:\n case 53:\n case 54:\n case 55:\n case 56:\n case 57:\n return readNumber(false);\n case 34:\n case 39:\n return readString(code);\n case 47:\n return readToken_slash(code);\n case 37:\n case 42:\n return readToken_mult_modulo();\n case 124:\n case 38:\n return readToken_pipe_amp(code);\n case 94:\n return readToken_caret();\n case 43:\n case 45:\n return readToken_plus_min(code);\n case 60:\n case 62:\n return readToken_lt_gt(code);\n case 61:\n case 33:\n return readToken_eq_excl(code);\n case 126:\n return finishOp(_prefix, 1);\n }\n return false;\n }\n function readToken(forceRegexp) {\n if (!forceRegexp) tokStart = tokPos;\n else tokPos = tokStart + 1;\n if (options.locations) tokStartLoc = new line_loc_t;\n if (forceRegexp) return readRegexp();\n if (tokPos >= inputLen) return finishToken(_eof);\n var code = input.charCodeAt(tokPos);\n if (isIdentifierStart(code) || code === 92) return readWord();\n var tok = getTokenFromCode(code);\n if (tok === false) {\n var ch = String.fromCharCode(code);\n if (ch === \"\\\\\" || nonASCIIidentifierStart.test(ch)) return readWord();\n raise(tokPos, \"Unexpected character '\" + ch + \"'\");\n }\n return tok;\n }\n function finishOp(type, size) {\n var str = input.slice(tokPos, tokPos + size);\n tokPos += size;\n finishToken(type, str);\n }\n function readRegexp() {\n var content = \"\", escaped, inClass, start = tokPos;\n for(;;){\n if (tokPos >= inputLen) raise(start, \"Unterminated regular expression\");\n var ch = input.charAt(tokPos);\n if (newline.test(ch)) raise(start, \"Unterminated regular expression\");\n if (!escaped) {\n if (ch === \"[\") inClass = true;\n else if (ch === \"]\" && inClass) inClass = false;\n else if (ch === \"/\" && !inClass) break;\n escaped = ch === \"\\\\\";\n } else escaped = false;\n ++tokPos;\n }\n var content = input.slice(start, tokPos);\n ++tokPos;\n var mods = readWord1();\n if (mods && !/^[gmsiy]*$/.test(mods)) raise(start, \"Invalid regexp flag\");\n try {\n var value = new RegExp(content, mods);\n } catch (e) {\n if (e instanceof SyntaxError) raise(start, e.message);\n raise(e);\n }\n return finishToken(_regexp, value);\n }\n function readInt(radix, len) {\n var start = tokPos, total = 0;\n for(var i = 0, e = len == null ? Infinity : len; i < e; ++i){\n var code = input.charCodeAt(tokPos), val;\n if (code >= 97) val = code - 97 + 10;\n else if (code >= 65) val = code - 65 + 10;\n else if (code >= 48 && code <= 57) val = code - 48;\n else val = Infinity;\n if (val >= radix) break;\n ++tokPos;\n total = total * radix + val;\n }\n if (tokPos === start || len != null && tokPos - start !== len) return null;\n return total;\n }\n function readHexNumber() {\n tokPos += 2;\n var val = readInt(16);\n if (val == null) raise(tokStart + 2, \"Expected hexadecimal number\");\n if (isIdentifierStart(input.charCodeAt(tokPos))) raise(tokPos, \"Identifier directly after number\");\n return finishToken(_num, val);\n }\n function readNumber(startsWithDot) {\n var start = tokPos, isFloat = false, octal = input.charCodeAt(tokPos) === 48;\n if (!startsWithDot && readInt(10) === null) raise(start, \"Invalid number\");\n if (input.charCodeAt(tokPos) === 46) {\n ++tokPos;\n readInt(10);\n isFloat = true;\n }\n var next = input.charCodeAt(tokPos);\n if (next === 69 || next === 101) {\n next = input.charCodeAt(++tokPos);\n if (next === 43 || next === 45) ++tokPos;\n if (readInt(10) === null) raise(start, \"Invalid number\");\n isFloat = true;\n }\n if (isIdentifierStart(input.charCodeAt(tokPos))) raise(tokPos, \"Identifier directly after number\");\n var str = input.slice(start, tokPos), val;\n if (isFloat) val = parseFloat(str);\n else if (!octal || str.length === 1) val = parseInt(str, 10);\n else if (/[89]/.test(str) || strict) raise(start, \"Invalid number\");\n else val = parseInt(str, 8);\n return finishToken(_num, val);\n }\n function readString(quote) {\n tokPos++;\n var out = \"\";\n for(;;){\n if (tokPos >= inputLen) raise(tokStart, \"Unterminated string constant\");\n var ch = input.charCodeAt(tokPos);\n if (ch === quote) {\n ++tokPos;\n return finishToken(_string, out);\n }\n if (ch === 92) {\n ch = input.charCodeAt(++tokPos);\n var octal = /^[0-7]+/.exec(input.slice(tokPos, tokPos + 3));\n if (octal) octal = octal[0];\n while(octal && parseInt(octal, 8) > 255)octal = octal.slice(0, -1);\n if (octal === \"0\") octal = null;\n ++tokPos;\n if (octal) {\n if (strict) raise(tokPos - 2, \"Octal literal in strict mode\");\n out += String.fromCharCode(parseInt(octal, 8));\n tokPos += octal.length - 1;\n } else switch(ch){\n case 110:\n out += \"\\n\";\n break;\n case 114:\n out += \"\\r\";\n break;\n case 120:\n out += String.fromCharCode(readHexChar(2));\n break;\n case 117:\n out += String.fromCharCode(readHexChar(4));\n break;\n case 85:\n out += String.fromCharCode(readHexChar(8));\n break;\n case 116:\n out += \"\t\";\n break;\n case 98:\n out += \"\\b\";\n break;\n case 118:\n out += \"\\v\";\n break;\n case 102:\n out += \"\\f\";\n break;\n case 48:\n out += \"\\0\";\n break;\n case 13:\n if (input.charCodeAt(tokPos) === 10) ++tokPos;\n case 10:\n if (options.locations) {\n tokLineStart = tokPos;\n ++tokCurLine;\n }\n break;\n default:\n out += String.fromCharCode(ch);\n break;\n }\n } else {\n if (ch === 13 || ch === 10 || ch === 8232 || ch === 8233) raise(tokStart, \"Unterminated string constant\");\n out += String.fromCharCode(ch);\n ++tokPos;\n }\n }\n }\n function readHexChar(len) {\n var n = readInt(16, len);\n if (n === null) raise(tokStart, \"Bad character escape sequence\");\n return n;\n }\n var containsEsc;\n function readWord1() {\n containsEsc = false;\n var word, first = true, start = tokPos;\n for(;;){\n var ch = input.charCodeAt(tokPos);\n if (isIdentifierChar(ch)) {\n if (containsEsc) word += input.charAt(tokPos);\n ++tokPos;\n } else if (ch === 92) {\n if (!containsEsc) word = input.slice(start, tokPos);\n containsEsc = true;\n if (input.charCodeAt(++tokPos) != 117) raise(tokPos, \"Expecting Unicode escape sequence \\\\uXXXX\");\n ++tokPos;\n var esc = readHexChar(4);\n var escStr = String.fromCharCode(esc);\n if (!escStr) raise(tokPos - 1, \"Invalid Unicode escape\");\n if (!(first ? isIdentifierStart(esc) : isIdentifierChar(esc))) raise(tokPos - 4, \"Invalid Unicode escape\");\n word += escStr;\n } else break;\n first = false;\n }\n return containsEsc ? word : input.slice(start, tokPos);\n }\n function readWord() {\n var word = readWord1();\n var type = _name;\n if (!containsEsc && isKeyword(word)) type = keywordTypes[word];\n return finishToken(type, word);\n }\n function next() {\n lastStart = tokStart;\n lastEnd = tokEnd;\n lastEndLoc = tokEndLoc;\n readToken();\n }\n function setStrict(strct) {\n strict = strct;\n tokPos = tokStart;\n if (options.locations) while(tokPos < tokLineStart){\n tokLineStart = input.lastIndexOf(\"\\n\", tokLineStart - 2) + 1;\n --tokCurLine;\n }\n skipSpace();\n readToken();\n }\n function node_t() {\n this.type = null;\n this.start = tokStart;\n this.end = null;\n }\n function node_loc_t() {\n this.start = tokStartLoc;\n this.end = null;\n if (sourceFile !== null) this.source = sourceFile;\n }\n function startNode() {\n var node = new node_t();\n if (options.locations) node.loc = new node_loc_t();\n if (options.directSourceFile) node.sourceFile = options.directSourceFile;\n if (options.ranges) node.range = [\n tokStart,\n 0\n ];\n return node;\n }\n function startNodeFrom(other) {\n var node = new node_t();\n node.start = other.start;\n if (options.locations) {\n node.loc = new node_loc_t();\n node.loc.start = other.loc.start;\n }\n if (options.ranges) node.range = [\n other.range[0],\n 0\n ];\n return node;\n }\n function finishNode(node, type) {\n node.type = type;\n node.end = lastEnd;\n if (options.locations) node.loc.end = lastEndLoc;\n if (options.ranges) node.range[1] = lastEnd;\n return node;\n }\n function isUseStrict(stmt) {\n return options.ecmaVersion >= 5 && stmt.type === \"ExpressionStatement\" && stmt.expression.type === \"Literal\" && stmt.expression.value === \"use strict\";\n }\n function eat(type) {\n if (tokType === type) {\n next();\n return true;\n }\n }\n function canInsertSemicolon() {\n return !options.strictSemicolons && (tokType === _eof || tokType === _braceR || newline.test(input.slice(lastEnd, tokStart)));\n }\n function semicolon() {\n if (!eat(_semi) && !canInsertSemicolon()) unexpected();\n }\n function expect(type) {\n if (tokType === type) next();\n else unexpected();\n }\n function unexpected() {\n raise(tokStart, \"Unexpected token\");\n }\n function checkLVal(expr) {\n if (expr.type !== \"Identifier\" && expr.type !== \"MemberExpression\") raise(expr.start, \"Assigning to rvalue\");\n if (strict && expr.type === \"Identifier\" && isStrictBadIdWord(expr.name)) raise(expr.start, \"Assigning to \" + expr.name + \" in strict mode\");\n }\n function parseTopLevel(program) {\n lastStart = lastEnd = tokPos;\n if (options.locations) lastEndLoc = new line_loc_t;\n inFunction = strict = null;\n labels = [];\n readToken();\n var node = program || startNode(), first = true;\n if (!program) node.body = [];\n while(tokType !== _eof){\n var stmt = parseStatement();\n node.body.push(stmt);\n if (first && isUseStrict(stmt)) setStrict(true);\n first = false;\n }\n return finishNode(node, \"Program\");\n }\n var loopLabel = {\n kind: \"loop\"\n }, switchLabel = {\n kind: \"switch\"\n };\n function parseStatement() {\n if (tokType === _slash || tokType === _assign && tokVal == \"/=\") readToken(true);\n var starttype = tokType, node = startNode();\n switch(starttype){\n case _break:\n case _continue:\n next();\n var isBreak = starttype === _break;\n if (eat(_semi) || canInsertSemicolon()) node.label = null;\n else if (tokType !== _name) unexpected();\n else {\n node.label = parseIdent();\n semicolon();\n }\n for(var i = 0; i < labels.length; ++i){\n var lab = labels[i];\n if (node.label == null || lab.name === node.label.name) {\n if (lab.kind != null && (isBreak || lab.kind === \"loop\")) break;\n if (node.label && isBreak) break;\n }\n }\n if (i === labels.length) raise(node.start, \"Unsyntactic \" + starttype.keyword);\n return finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\");\n case _debugger:\n next();\n semicolon();\n return finishNode(node, \"DebuggerStatement\");\n case _do:\n next();\n labels.push(loopLabel);\n node.body = parseStatement();\n labels.pop();\n expect(_while);\n node.test = parseParenExpression();\n semicolon();\n return finishNode(node, \"DoWhileStatement\");\n case _for:\n next();\n labels.push(loopLabel);\n expect(_parenL);\n if (tokType === _semi) return parseFor(node, null);\n if (tokType === _var) {\n var init = startNode();\n next();\n parseVar(init, true);\n finishNode(init, \"VariableDeclaration\");\n if (init.declarations.length === 1 && eat(_in)) return parseForIn(node, init);\n return parseFor(node, init);\n }\n var init = parseExpression(false, true);\n if (eat(_in)) {\n checkLVal(init);\n return parseForIn(node, init);\n }\n return parseFor(node, init);\n case _function:\n next();\n return parseFunction(node, true);\n case _if:\n next();\n node.test = parseParenExpression();\n node.consequent = parseStatement();\n node.alternate = eat(_else) ? parseStatement() : null;\n return finishNode(node, \"IfStatement\");\n case _return:\n if (!inFunction && !options.allowReturnOutsideFunction) raise(tokStart, \"'return' outside of function\");\n next();\n if (eat(_semi) || canInsertSemicolon()) node.argument = null;\n else {\n node.argument = parseExpression();\n semicolon();\n }\n return finishNode(node, \"ReturnStatement\");\n case _switch:\n next();\n node.discriminant = parseParenExpression();\n node.cases = [];\n expect(_braceL);\n labels.push(switchLabel);\n for(var cur, sawDefault; tokType != _braceR;)if (tokType === _case || tokType === _default) {\n var isCase = tokType === _case;\n if (cur) finishNode(cur, \"SwitchCase\");\n node.cases.push(cur = startNode());\n cur.consequent = [];\n next();\n if (isCase) cur.test = parseExpression();\n else {\n if (sawDefault) raise(lastStart, \"Multiple default clauses\");\n sawDefault = true;\n cur.test = null;\n }\n expect(_colon);\n } else {\n if (!cur) unexpected();\n cur.consequent.push(parseStatement());\n }\n if (cur) finishNode(cur, \"SwitchCase\");\n next();\n labels.pop();\n return finishNode(node, \"SwitchStatement\");\n case _throw:\n next();\n if (newline.test(input.slice(lastEnd, tokStart))) raise(lastEnd, \"Illegal newline after throw\");\n node.argument = parseExpression();\n semicolon();\n return finishNode(node, \"ThrowStatement\");\n case _try:\n next();\n node.block = parseBlock();\n node.handler = null;\n if (tokType === _catch) {\n var clause = startNode();\n next();\n expect(_parenL);\n clause.param = parseIdent();\n if (strict && isStrictBadIdWord(clause.param.name)) raise(clause.param.start, \"Binding \" + clause.param.name + \" in strict mode\");\n expect(_parenR);\n clause.guard = null;\n clause.body = parseBlock();\n node.handler = finishNode(clause, \"CatchClause\");\n }\n node.guardedHandlers = empty;\n node.finalizer = eat(_finally) ? parseBlock() : null;\n if (!node.handler && !node.finalizer) raise(node.start, \"Missing catch or finally clause\");\n return finishNode(node, \"TryStatement\");\n case _var:\n next();\n parseVar(node);\n semicolon();\n return finishNode(node, \"VariableDeclaration\");\n case _while:\n next();\n node.test = parseParenExpression();\n labels.push(loopLabel);\n node.body = parseStatement();\n labels.pop();\n return finishNode(node, \"WhileStatement\");\n case _with:\n if (strict) raise(tokStart, \"'with' in strict mode\");\n next();\n node.object = parseParenExpression();\n node.body = parseStatement();\n return finishNode(node, \"WithStatement\");\n case _braceL:\n return parseBlock();\n case _semi:\n next();\n return finishNode(node, \"EmptyStatement\");\n default:\n var maybeName = tokVal, expr = parseExpression();\n if (starttype === _name && expr.type === \"Identifier\" && eat(_colon)) {\n for(var i = 0; i < labels.length; ++i)if (labels[i].name === maybeName) raise(expr.start, \"Label '\" + maybeName + \"' is already declared\");\n var kind = tokType.isLoop ? \"loop\" : tokType === _switch ? \"switch\" : null;\n labels.push({\n name: maybeName,\n kind: kind\n });\n node.body = parseStatement();\n labels.pop();\n node.label = expr;\n return finishNode(node, \"LabeledStatement\");\n } else {\n node.expression = expr;\n semicolon();\n return finishNode(node, \"ExpressionStatement\");\n }\n }\n }\n function parseParenExpression() {\n expect(_parenL);\n var val = parseExpression();\n expect(_parenR);\n return val;\n }\n function parseBlock(allowStrict) {\n var node = startNode(), first = true, strict = false, oldStrict;\n node.body = [];\n expect(_braceL);\n while(!eat(_braceR)){\n var stmt = parseStatement();\n node.body.push(stmt);\n if (first && allowStrict && isUseStrict(stmt)) {\n oldStrict = strict;\n setStrict(strict = true);\n }\n first = false;\n }\n if (strict && !oldStrict) setStrict(false);\n return finishNode(node, \"BlockStatement\");\n }\n function parseFor(node, init) {\n node.init = init;\n expect(_semi);\n node.test = tokType === _semi ? null : parseExpression();\n expect(_semi);\n node.update = tokType === _parenR ? null : parseExpression();\n expect(_parenR);\n node.body = parseStatement();\n labels.pop();\n return finishNode(node, \"ForStatement\");\n }\n function parseForIn(node, init) {\n node.left = init;\n node.right = parseExpression();\n expect(_parenR);\n node.body = parseStatement();\n labels.pop();\n return finishNode(node, \"ForInStatement\");\n }\n function parseVar(node, noIn) {\n node.declarations = [];\n node.kind = \"var\";\n for(;;){\n var decl = startNode();\n decl.id = parseIdent();\n if (strict && isStrictBadIdWord(decl.id.name)) raise(decl.id.start, \"Binding \" + decl.id.name + \" in strict mode\");\n decl.init = eat(_eq) ? parseExpression(true, noIn) : null;\n node.declarations.push(finishNode(decl, \"VariableDeclarator\"));\n if (!eat(_comma)) break;\n }\n return node;\n }\n function parseExpression(noComma, noIn) {\n var expr = parseMaybeAssign(noIn);\n if (!noComma && tokType === _comma) {\n var node = startNodeFrom(expr);\n node.expressions = [\n expr\n ];\n while(eat(_comma))node.expressions.push(parseMaybeAssign(noIn));\n return finishNode(node, \"SequenceExpression\");\n }\n return expr;\n }\n function parseMaybeAssign(noIn) {\n var left = parseMaybeConditional(noIn);\n if (tokType.isAssign) {\n var node = startNodeFrom(left);\n node.operator = tokVal;\n node.left = left;\n next();\n node.right = parseMaybeAssign(noIn);\n checkLVal(left);\n return finishNode(node, \"AssignmentExpression\");\n }\n return left;\n }\n function parseMaybeConditional(noIn) {\n var expr = parseExprOps(noIn);\n if (eat(_question)) {\n var node = startNodeFrom(expr);\n node.test = expr;\n node.consequent = parseExpression(true);\n expect(_colon);\n node.alternate = parseExpression(true, noIn);\n return finishNode(node, \"ConditionalExpression\");\n }\n return expr;\n }\n function parseExprOps(noIn) {\n return parseExprOp(parseMaybeUnary(), -1, noIn);\n }\n function parseExprOp(left, minPrec, noIn) {\n var prec = tokType.binop;\n if (prec != null && (!noIn || tokType !== _in)) {\n if (prec > minPrec) {\n var node = startNodeFrom(left);\n node.left = left;\n node.operator = tokVal;\n var op = tokType;\n next();\n node.right = parseExprOp(parseMaybeUnary(), prec, noIn);\n var exprNode = finishNode(node, op === _logicalOR || op === _logicalAND ? \"LogicalExpression\" : \"BinaryExpression\");\n return parseExprOp(exprNode, minPrec, noIn);\n }\n }\n return left;\n }\n function parseMaybeUnary() {\n if (tokType.prefix) {\n var node = startNode(), update = tokType.isUpdate;\n node.operator = tokVal;\n node.prefix = true;\n tokRegexpAllowed = true;\n next();\n node.argument = parseMaybeUnary();\n if (update) checkLVal(node.argument);\n else if (strict && node.operator === \"delete\" && node.argument.type === \"Identifier\") raise(node.start, \"Deleting local variable in strict mode\");\n return finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\");\n }\n var expr = parseExprSubscripts();\n while(tokType.postfix && !canInsertSemicolon()){\n var node = startNodeFrom(expr);\n node.operator = tokVal;\n node.prefix = false;\n node.argument = expr;\n checkLVal(expr);\n next();\n expr = finishNode(node, \"UpdateExpression\");\n }\n return expr;\n }\n function parseExprSubscripts() {\n return parseSubscripts(parseExprAtom());\n }\n function parseSubscripts(base, noCalls) {\n if (eat(_dot)) {\n var node = startNodeFrom(base);\n node.object = base;\n node.property = parseIdent(true);\n node.computed = false;\n return parseSubscripts(finishNode(node, \"MemberExpression\"), noCalls);\n } else if (eat(_bracketL)) {\n var node = startNodeFrom(base);\n node.object = base;\n node.property = parseExpression();\n node.computed = true;\n expect(_bracketR);\n return parseSubscripts(finishNode(node, \"MemberExpression\"), noCalls);\n } else if (!noCalls && eat(_parenL)) {\n var node = startNodeFrom(base);\n node.callee = base;\n node.arguments = parseExprList(_parenR, false);\n return parseSubscripts(finishNode(node, \"CallExpression\"), noCalls);\n } else return base;\n }\n function parseExprAtom() {\n switch(tokType){\n case _this:\n var node = startNode();\n next();\n return finishNode(node, \"ThisExpression\");\n case _name:\n return parseIdent();\n case _num:\n case _string:\n case _regexp:\n var node = startNode();\n node.value = tokVal;\n node.raw = input.slice(tokStart, tokEnd);\n next();\n return finishNode(node, \"Literal\");\n case _null:\n case _true:\n case _false:\n var node = startNode();\n node.value = tokType.atomValue;\n node.raw = tokType.keyword;\n next();\n return finishNode(node, \"Literal\");\n case _parenL:\n var tokStartLoc1 = tokStartLoc, tokStart1 = tokStart;\n next();\n var val = parseExpression();\n val.start = tokStart1;\n val.end = tokEnd;\n if (options.locations) {\n val.loc.start = tokStartLoc1;\n val.loc.end = tokEndLoc;\n }\n if (options.ranges) val.range = [\n tokStart1,\n tokEnd\n ];\n expect(_parenR);\n return val;\n case _bracketL:\n var node = startNode();\n next();\n node.elements = parseExprList(_bracketR, true, true);\n return finishNode(node, \"ArrayExpression\");\n case _braceL:\n return parseObj();\n case _function:\n var node = startNode();\n next();\n return parseFunction(node, false);\n case _new:\n return parseNew();\n default:\n unexpected();\n }\n }\n function parseNew() {\n var node = startNode();\n next();\n node.callee = parseSubscripts(parseExprAtom(), true);\n if (eat(_parenL)) node.arguments = parseExprList(_parenR, false);\n else node.arguments = empty;\n return finishNode(node, \"NewExpression\");\n }\n function parseObj() {\n var node = startNode(), first = true, sawGetSet = false;\n node.properties = [];\n next();\n while(!eat(_braceR)){\n if (!first) {\n expect(_comma);\n if (options.allowTrailingCommas && eat(_braceR)) break;\n } else first = false;\n var prop = {\n key: parsePropertyName()\n }, isGetSet = false, kind;\n if (eat(_colon)) {\n prop.value = parseExpression(true);\n kind = prop.kind = \"init\";\n } else if (options.ecmaVersion >= 5 && prop.key.type === \"Identifier\" && (prop.key.name === \"get\" || prop.key.name === \"set\")) {\n isGetSet = sawGetSet = true;\n kind = prop.kind = prop.key.name;\n prop.key = parsePropertyName();\n if (tokType !== _parenL) unexpected();\n prop.value = parseFunction(startNode(), false);\n } else unexpected();\n if (prop.key.type === \"Identifier\" && (strict || sawGetSet)) for(var i = 0; i < node.properties.length; ++i){\n var other = node.properties[i];\n if (other.key.name === prop.key.name) {\n var conflict = kind == other.kind || isGetSet && other.kind === \"init\" || kind === \"init\" && (other.kind === \"get\" || other.kind === \"set\");\n if (conflict && !strict && kind === \"init\" && other.kind === \"init\") conflict = false;\n if (conflict) raise(prop.key.start, \"Redefinition of property\");\n }\n }\n node.properties.push(prop);\n }\n return finishNode(node, \"ObjectExpression\");\n }\n function parsePropertyName() {\n if (tokType === _num || tokType === _string) return parseExprAtom();\n return parseIdent(true);\n }\n function parseFunction(node, isStatement) {\n if (tokType === _name) node.id = parseIdent();\n else if (isStatement) unexpected();\n else node.id = null;\n node.params = [];\n var first = true;\n expect(_parenL);\n while(!eat(_parenR)){\n if (!first) expect(_comma);\n else first = false;\n node.params.push(parseIdent());\n }\n var oldInFunc = inFunction, oldLabels = labels;\n inFunction = true;\n labels = [];\n node.body = parseBlock(true);\n inFunction = oldInFunc;\n labels = oldLabels;\n if (strict || node.body.body.length && isUseStrict(node.body.body[0])) for(var i = node.id ? -1 : 0; i < node.params.length; ++i){\n var id = i < 0 ? node.id : node.params[i];\n if (isStrictReservedWord(id.name) || isStrictBadIdWord(id.name)) raise(id.start, \"Defining '\" + id.name + \"' in strict mode\");\n if (i >= 0) {\n for(var j = 0; j < i; ++j)if (id.name === node.params[j].name) raise(id.start, \"Argument name clash in strict mode\");\n }\n }\n return finishNode(node, isStatement ? \"FunctionDeclaration\" : \"FunctionExpression\");\n }\n function parseExprList(close, allowTrailingComma, allowEmpty) {\n var elts = [], first = true;\n while(!eat(close)){\n if (!first) {\n expect(_comma);\n if (allowTrailingComma && options.allowTrailingCommas && eat(close)) break;\n } else first = false;\n if (allowEmpty && tokType === _comma) elts.push(null);\n else elts.push(parseExpression(true));\n }\n return elts;\n }\n function parseIdent(liberal) {\n var node = startNode();\n if (liberal && options.forbidReserved == \"everywhere\") liberal = false;\n if (tokType === _name) {\n if (!liberal && (options.forbidReserved && (options.ecmaVersion === 3 ? isReservedWord3 : isReservedWord5)(tokVal) || strict && isStrictReservedWord(tokVal)) && input.slice(tokStart, tokEnd).indexOf(\"\\\\\") == -1) raise(tokStart, \"The keyword '\" + tokVal + \"' is reserved\");\n node.name = tokVal;\n } else if (liberal && tokType.keyword) node.name = tokType.keyword;\n else unexpected();\n tokRegexpAllowed = false;\n next();\n return finishNode(node, \"Identifier\");\n }\n });\n if (!acorn.version) acorn = null;\n }\n function parse(code, options) {\n return (global.acorn || acorn).parse(code, options);\n }\n var binaryOperators = {\n \"+\": \"__add\",\n \"-\": \"__subtract\",\n \"*\": \"__multiply\",\n \"/\": \"__divide\",\n \"%\": \"__modulo\",\n \"==\": \"__equals\",\n \"!=\": \"__equals\"\n };\n var unaryOperators = {\n \"-\": \"__negate\",\n \"+\": \"__self\"\n };\n var fields = Base.each([\n \"add\",\n \"subtract\",\n \"multiply\",\n \"divide\",\n \"modulo\",\n \"equals\",\n \"negate\"\n ], function(name) {\n this[\"__\" + name] = \"#\" + name;\n }, {\n __self: function() {\n return this;\n }\n });\n Point.inject(fields);\n Size.inject(fields);\n Color.inject(fields);\n function __$__(left, operator, right) {\n var handler = binaryOperators[operator];\n if (left && left[handler]) {\n var res = left[handler](right);\n return operator === \"!=\" ? !res : res;\n }\n switch(operator){\n case \"+\":\n return left + right;\n case \"-\":\n return left - right;\n case \"*\":\n return left * right;\n case \"/\":\n return left / right;\n case \"%\":\n return left % right;\n case \"==\":\n return left == right;\n case \"!=\":\n return left != right;\n }\n }\n function $__(operator, value) {\n var handler = unaryOperators[operator];\n if (value && value[handler]) return value[handler]();\n switch(operator){\n case \"+\":\n return +value;\n case \"-\":\n return -value;\n }\n }\n function compile(code, options) {\n if (!code) return \"\";\n options = options || {};\n var insertions = [];\n function getOffset(offset) {\n for(var i = 0, l = insertions.length; i < l; i++){\n var insertion = insertions[i];\n if (insertion[0] >= offset) break;\n offset += insertion[1];\n }\n return offset;\n }\n function getCode(node) {\n return code.substring(getOffset(node.range[0]), getOffset(node.range[1]));\n }\n function getBetween(left, right) {\n return code.substring(getOffset(left.range[1]), getOffset(right.range[0]));\n }\n function replaceCode(node, str) {\n var start = getOffset(node.range[0]), end = getOffset(node.range[1]), insert = 0;\n for(var i = insertions.length - 1; i >= 0; i--)if (start > insertions[i][0]) {\n insert = i + 1;\n break;\n }\n insertions.splice(insert, 0, [\n start,\n str.length - end + start\n ]);\n code = code.substring(0, start) + str + code.substring(end);\n }\n function handleOverloading(node, parent) {\n switch(node.type){\n case \"UnaryExpression\":\n if (node.operator in unaryOperators && node.argument.type !== \"Literal\") {\n var arg = getCode(node.argument);\n replaceCode(node, '$__(\"' + node.operator + '\", ' + arg + \")\");\n }\n break;\n case \"BinaryExpression\":\n if (node.operator in binaryOperators && node.left.type !== \"Literal\") {\n var left = getCode(node.left), right = getCode(node.right), between = getBetween(node.left, node.right), operator = node.operator;\n replaceCode(node, \"__$__(\" + left + \",\" + between.replace(new RegExp(\"\\\\\" + operator), '\"' + operator + '\"') + \", \" + right + \")\");\n }\n break;\n case \"UpdateExpression\":\n case \"AssignmentExpression\":\n var parentType = parent && parent.type;\n if (!(parentType === \"ForStatement\" || parentType === \"BinaryExpression\" && /^[=!<>]/.test(parent.operator) || parentType === \"MemberExpression\" && parent.computed)) {\n if (node.type === \"UpdateExpression\") {\n var arg = getCode(node.argument), exp = \"__$__(\" + arg + ', \"' + node.operator[0] + '\", 1)', str = arg + \" = \" + exp;\n if (node.prefix) str = \"(\" + str + \")\";\n else if (parentType === \"AssignmentExpression\" || parentType === \"VariableDeclarator\" || parentType === \"BinaryExpression\") {\n if (getCode(parent.left || parent.id) === arg) str = exp;\n str = arg + \"; \" + str;\n }\n replaceCode(node, str);\n } else if (/^.=$/.test(node.operator) && node.left.type !== \"Literal\") {\n var left = getCode(node.left), right = getCode(node.right), exp = left + \" = __$__(\" + left + ', \"' + node.operator[0] + '\", ' + right + \")\";\n replaceCode(node, /^\\(.*\\)$/.test(getCode(node)) ? \"(\" + exp + \")\" : exp);\n }\n }\n break;\n }\n }\n function handleExports(node) {\n switch(node.type){\n case \"ExportDefaultDeclaration\":\n replaceCode({\n range: [\n node.start,\n node.declaration.start\n ]\n }, \"module.exports = \");\n break;\n case \"ExportNamedDeclaration\":\n var declaration = node.declaration;\n var specifiers = node.specifiers;\n if (declaration) {\n var declarations = declaration.declarations;\n if (declarations) {\n declarations.forEach(function(dec) {\n replaceCode(dec, \"module.exports.\" + getCode(dec));\n });\n replaceCode({\n range: [\n node.start,\n declaration.start + declaration.kind.length\n ]\n }, \"\");\n }\n } else if (specifiers) {\n var exports = specifiers.map(function(specifier) {\n var name = getCode(specifier);\n return \"module.exports.\" + name + \" = \" + name + \"; \";\n }).join(\"\");\n if (exports) replaceCode(node, exports);\n }\n break;\n }\n }\n function walkAST(node, parent, paperFeatures) {\n if (node) {\n for(var key in node)if (key !== \"range\" && key !== \"loc\") {\n var value = node[key];\n if (Array.isArray(value)) for(var i = 0, l = value.length; i < l; i++)walkAST(value[i], node, paperFeatures);\n else if (value && typeof value === \"object\") walkAST(value, node, paperFeatures);\n }\n if (paperFeatures.operatorOverloading !== false) handleOverloading(node, parent);\n if (paperFeatures.moduleExports !== false) handleExports(node);\n }\n }\n function encodeVLQ(value) {\n var res = \"\", base64 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n value = (Math.abs(value) << 1) + (value < 0 ? 1 : 0);\n while(value || !res){\n var next = value & 31;\n value >>= 5;\n if (value) next |= 32;\n res += base64[next];\n }\n return res;\n }\n var url = options.url || \"\", sourceMaps = options.sourceMaps, paperFeatures = options.paperFeatures || {}, source = options.source || code, offset = options.offset || 0, agent = paper.agent, version = agent.versionNumber, offsetCode = false, lineBreaks = /\\r\\n|\\n|\\r/mg, map;\n if (sourceMaps && (agent.chrome && version >= 30 || agent.webkit && version >= 537.76 || agent.firefox && version >= 23 || agent.node)) {\n if (agent.node) offset -= 2;\n else if (window && url && !window.location.href.indexOf(url)) {\n var html = document.getElementsByTagName(\"html\")[0].innerHTML;\n offset = html.substr(0, html.indexOf(code) + 1).match(lineBreaks).length + 1;\n }\n offsetCode = offset > 0 && !(agent.chrome && version >= 36 || agent.safari && version >= 600 || agent.firefox && version >= 40 || agent.node);\n var mappings = [\n \"AA\" + encodeVLQ(offsetCode ? 0 : offset) + \"A\"\n ];\n mappings.length = (code.match(lineBreaks) || []).length + 1 + (offsetCode ? offset : 0);\n map = {\n version: 3,\n file: url,\n names: [],\n mappings: mappings.join(\";AACA\"),\n sourceRoot: \"\",\n sources: [\n url\n ],\n sourcesContent: [\n source\n ]\n };\n }\n if (paperFeatures.operatorOverloading !== false || paperFeatures.moduleExports !== false) walkAST(parse(code, {\n ranges: true,\n preserveParens: true,\n sourceType: \"module\"\n }), null, paperFeatures);\n if (map) {\n if (offsetCode) code = new Array(offset + 1).join(\"\\n\") + code;\n if (/^(inline|both)$/.test(sourceMaps)) code += \"\\n//# sourceMappingURL=data:application/json;base64,\" + self1.btoa(unescape(encodeURIComponent(JSON.stringify(map))));\n code += \"\\n//# sourceURL=\" + (url || \"paperscript\");\n }\n return {\n url: url,\n source: source,\n code: code,\n map: map\n };\n }\n function execute(code, scope, options) {\n paper = scope;\n var view = scope.getView(), tool = /\\btool\\.\\w+|\\s+on(?:Key|Mouse)(?:Up|Down|Move|Drag)\\b/.test(code) && !/\\bnew\\s+Tool\\b/.test(code) ? new Tool() : null, toolHandlers = tool ? tool._events : [], handlers = [\n \"onFrame\",\n \"onResize\"\n ].concat(toolHandlers), params = [], args = [], func, compiled = typeof code === \"object\" ? code : compile(code, options);\n code = compiled.code;\n function expose(scope, hidden) {\n for(var key in scope)if ((hidden || !/^_/.test(key)) && new RegExp(\"([\\\\b\\\\s\\\\W]|^)\" + key.replace(/\\$/g, \"\\\\$\") + \"\\\\b\").test(code)) {\n params.push(key);\n args.push(scope[key]);\n }\n }\n expose({\n __$__: __$__,\n $__: $__,\n paper: scope,\n tool: tool\n }, true);\n expose(scope);\n code = \"var module = { exports: {} }; \" + code;\n var exports = Base.each(handlers, function(key) {\n if (new RegExp(\"\\\\s+\" + key + \"\\\\b\").test(code)) {\n params.push(key);\n this.push(\"module.exports.\" + key + \" = \" + key + \";\");\n }\n }, []).join(\"\\n\");\n if (exports) code += \"\\n\" + exports;\n code += \"\\nreturn module.exports;\";\n var agent = paper.agent;\n if (document && (agent.chrome || agent.firefox && agent.versionNumber < 40)) {\n var script = document.createElement(\"script\"), head = document.head || document.getElementsByTagName(\"head\")[0];\n if (agent.firefox) code = \"\\n\" + code;\n script.appendChild(document.createTextNode(\"document.__paperscript__ = function(\" + params + \") {\" + code + \"\\n}\"));\n head.appendChild(script);\n func = document.__paperscript__;\n delete document.__paperscript__;\n head.removeChild(script);\n } else func = Function(params, code);\n var exports = func && func.apply(scope, args);\n var obj = exports || {};\n Base.each(toolHandlers, function(key) {\n var value = obj[key];\n if (value) tool[key] = value;\n });\n if (view) {\n if (obj.onResize) view.setOnResize(obj.onResize);\n view.emit(\"resize\", {\n size: view.size,\n delta: new Point()\n });\n if (obj.onFrame) view.setOnFrame(obj.onFrame);\n view.requestUpdate();\n }\n return exports;\n }\n function loadScript(script) {\n if (/^text\\/(?:x-|)paperscript$/.test(script.type) && PaperScope.getAttribute(script, \"ignore\") !== \"true\") {\n var canvasId = PaperScope.getAttribute(script, \"canvas\"), canvas = document.getElementById(canvasId), src = script.src || script.getAttribute(\"data-src\"), async = PaperScope.hasAttribute(script, \"async\"), scopeAttribute = \"data-paper-scope\";\n if (!canvas) throw new Error('Unable to find canvas with id \"' + canvasId + '\"');\n var scope = PaperScope.get(canvas.getAttribute(scopeAttribute)) || new PaperScope().setup(canvas);\n canvas.setAttribute(scopeAttribute, scope._id);\n if (src) Http.request({\n url: src,\n async: async,\n mimeType: \"text/plain\",\n onLoad: function(code) {\n execute(code, scope, src);\n }\n });\n else execute(script.innerHTML, scope, script.baseURI);\n script.setAttribute(\"data-paper-ignore\", \"true\");\n return scope;\n }\n }\n function loadAll() {\n Base.each(document && document.getElementsByTagName(\"script\"), loadScript);\n }\n function load(script) {\n return script ? loadScript(script) : loadAll();\n }\n if (window) {\n if (document.readyState === \"complete\") setTimeout(loadAll);\n else DomEvent.add(window, {\n load: loadAll\n });\n }\n return {\n compile: compile,\n execute: execute,\n load: load,\n parse: parse,\n calculateBinary: __$__,\n calculateUnary: $__\n };\n }).call(this);\n var paper = new (PaperScope.inject(Base.exports, {\n Base: Base,\n Numerical: Numerical,\n Key: Key,\n DomEvent: DomEvent,\n DomElement: DomElement,\n document: document,\n window: window,\n Symbol: SymbolDefinition,\n PlacedSymbol: SymbolItem\n }))();\n if (paper.agent.node) (parcelRequire(\"1S6xU\"))(paper);\n if (typeof define === \"function\" && define.amd) define(\"paper\", paper);\n else if (module) module.exports = paper;\n return paper;\n}).call(this, typeof self === \"object\" ? self : null);\n\n});\nparcelRegister(\"1S6xU\", function(module, exports) {\n\"use strict\";\n\n});\n\nparcelRegister(\"9SFwl\", function(module, exports) {\n\n$parcel$export(module.exports, \"isIdentifierStart\", function () { return $ebef8a20963d596b$export$56b48cc5d7560ffb; });\n$parcel$export(module.exports, \"isIdentifierChar\", function () { return $ebef8a20963d596b$export$332f4d7bee38db93; });\n$parcel$export(module.exports, \"TokenType\", function () { return $ebef8a20963d596b$export$f435f793048e7a0f; });\n$parcel$export(module.exports, \"keywordTypes\", function () { return $ebef8a20963d596b$export$d53f8326294b31d8; });\n$parcel$export(module.exports, \"tokTypes\", function () { return $ebef8a20963d596b$export$b54c7ea7aabba5c8; });\n$parcel$export(module.exports, \"lineBreak\", function () { return $ebef8a20963d596b$export$a1aa2dd4ad0d3f6; });\n$parcel$export(module.exports, \"lineBreakG\", function () { return $ebef8a20963d596b$export$866e20207bbc41f2; });\n$parcel$export(module.exports, \"isNewLine\", function () { return $ebef8a20963d596b$export$2c19a3e3b4008fff; });\n$parcel$export(module.exports, \"nonASCIIwhitespace\", function () { return $ebef8a20963d596b$export$268622f0f1cbc82b; });\n$parcel$export(module.exports, \"Position\", function () { return $ebef8a20963d596b$export$13807d9ee5a34a42; });\n$parcel$export(module.exports, \"SourceLocation\", function () { return $ebef8a20963d596b$export$7387db7caf96fcdb; });\n$parcel$export(module.exports, \"getLineInfo\", function () { return $ebef8a20963d596b$export$7af82191547c5ff7; });\n$parcel$export(module.exports, \"defaultOptions\", function () { return $ebef8a20963d596b$export$ba43bf67f3d48107; });\n$parcel$export(module.exports, \"Parser\", function () { return $ebef8a20963d596b$export$7acfa6ed01010e37; });\n$parcel$export(module.exports, \"TokContext\", function () { return $ebef8a20963d596b$export$68e7b4c4d99215d9; });\n$parcel$export(module.exports, \"tokContexts\", function () { return $ebef8a20963d596b$export$2b5f701edfbd6f00; });\n$parcel$export(module.exports, \"Node\", function () { return $ebef8a20963d596b$export$85c928794f8d04d4; });\n$parcel$export(module.exports, \"Token\", function () { return $ebef8a20963d596b$export$50792b0e93539fde; });\n$parcel$export(module.exports, \"version\", function () { return $ebef8a20963d596b$export$83d89fbfd8236492; });\n$parcel$export(module.exports, \"parse\", function () { return $ebef8a20963d596b$export$98e6a39c04603d36; });\n$parcel$export(module.exports, \"parseExpressionAt\", function () { return $ebef8a20963d596b$export$61f24eb03dd7ce92; });\n$parcel$export(module.exports, \"tokenizer\", function () { return $ebef8a20963d596b$export$5f8c09e3ae6f64e1; });\n// This file was generated. Do not modify manually!\nvar $ebef8a20963d596b$var$astralIdentifierCodes = [\n 509,\n 0,\n 227,\n 0,\n 150,\n 4,\n 294,\n 9,\n 1368,\n 2,\n 2,\n 1,\n 6,\n 3,\n 41,\n 2,\n 5,\n 0,\n 166,\n 1,\n 574,\n 3,\n 9,\n 9,\n 370,\n 1,\n 81,\n 2,\n 71,\n 10,\n 50,\n 3,\n 123,\n 2,\n 54,\n 14,\n 32,\n 10,\n 3,\n 1,\n 11,\n 3,\n 46,\n 10,\n 8,\n 0,\n 46,\n 9,\n 7,\n 2,\n 37,\n 13,\n 2,\n 9,\n 6,\n 1,\n 45,\n 0,\n 13,\n 2,\n 49,\n 13,\n 9,\n 3,\n 2,\n 11,\n 83,\n 11,\n 7,\n 0,\n 3,\n 0,\n 158,\n 11,\n 6,\n 9,\n 7,\n 3,\n 56,\n 1,\n 2,\n 6,\n 3,\n 1,\n 3,\n 2,\n 10,\n 0,\n 11,\n 1,\n 3,\n 6,\n 4,\n 4,\n 193,\n 17,\n 10,\n 9,\n 5,\n 0,\n 82,\n 19,\n 13,\n 9,\n 214,\n 6,\n 3,\n 8,\n 28,\n 1,\n 83,\n 16,\n 16,\n 9,\n 82,\n 12,\n 9,\n 9,\n 84,\n 14,\n 5,\n 9,\n 243,\n 14,\n 166,\n 9,\n 71,\n 5,\n 2,\n 1,\n 3,\n 3,\n 2,\n 0,\n 2,\n 1,\n 13,\n 9,\n 120,\n 6,\n 3,\n 6,\n 4,\n 0,\n 29,\n 9,\n 41,\n 6,\n 2,\n 3,\n 9,\n 0,\n 10,\n 10,\n 47,\n 15,\n 406,\n 7,\n 2,\n 7,\n 17,\n 9,\n 57,\n 21,\n 2,\n 13,\n 123,\n 5,\n 4,\n 0,\n 2,\n 1,\n 2,\n 6,\n 2,\n 0,\n 9,\n 9,\n 49,\n 4,\n 2,\n 1,\n 2,\n 4,\n 9,\n 9,\n 330,\n 3,\n 10,\n 1,\n 2,\n 0,\n 49,\n 6,\n 4,\n 4,\n 14,\n 9,\n 5351,\n 0,\n 7,\n 14,\n 13835,\n 9,\n 87,\n 9,\n 39,\n 4,\n 60,\n 6,\n 26,\n 9,\n 1014,\n 0,\n 2,\n 54,\n 8,\n 3,\n 82,\n 0,\n 12,\n 1,\n 19628,\n 1,\n 4706,\n 45,\n 3,\n 22,\n 543,\n 4,\n 4,\n 5,\n 9,\n 7,\n 3,\n 6,\n 31,\n 3,\n 149,\n 2,\n 1418,\n 49,\n 513,\n 54,\n 5,\n 49,\n 9,\n 0,\n 15,\n 0,\n 23,\n 4,\n 2,\n 14,\n 1361,\n 6,\n 2,\n 16,\n 3,\n 6,\n 2,\n 1,\n 2,\n 4,\n 101,\n 0,\n 161,\n 6,\n 10,\n 9,\n 357,\n 0,\n 62,\n 13,\n 499,\n 13,\n 983,\n 6,\n 110,\n 6,\n 6,\n 9,\n 4759,\n 9,\n 787719,\n 239\n];\n// This file was generated. Do not modify manually!\nvar $ebef8a20963d596b$var$astralIdentifierStartCodes = [\n 0,\n 11,\n 2,\n 25,\n 2,\n 18,\n 2,\n 1,\n 2,\n 14,\n 3,\n 13,\n 35,\n 122,\n 70,\n 52,\n 268,\n 28,\n 4,\n 48,\n 48,\n 31,\n 14,\n 29,\n 6,\n 37,\n 11,\n 29,\n 3,\n 35,\n 5,\n 7,\n 2,\n 4,\n 43,\n 157,\n 19,\n 35,\n 5,\n 35,\n 5,\n 39,\n 9,\n 51,\n 13,\n 10,\n 2,\n 14,\n 2,\n 6,\n 2,\n 1,\n 2,\n 10,\n 2,\n 14,\n 2,\n 6,\n 2,\n 1,\n 68,\n 310,\n 10,\n 21,\n 11,\n 7,\n 25,\n 5,\n 2,\n 41,\n 2,\n 8,\n 70,\n 5,\n 3,\n 0,\n 2,\n 43,\n 2,\n 1,\n 4,\n 0,\n 3,\n 22,\n 11,\n 22,\n 10,\n 30,\n 66,\n 18,\n 2,\n 1,\n 11,\n 21,\n 11,\n 25,\n 71,\n 55,\n 7,\n 1,\n 65,\n 0,\n 16,\n 3,\n 2,\n 2,\n 2,\n 28,\n 43,\n 28,\n 4,\n 28,\n 36,\n 7,\n 2,\n 27,\n 28,\n 53,\n 11,\n 21,\n 11,\n 18,\n 14,\n 17,\n 111,\n 72,\n 56,\n 50,\n 14,\n 50,\n 14,\n 35,\n 349,\n 41,\n 7,\n 1,\n 79,\n 28,\n 11,\n 0,\n 9,\n 21,\n 43,\n 17,\n 47,\n 20,\n 28,\n 22,\n 13,\n 52,\n 58,\n 1,\n 3,\n 0,\n 14,\n 44,\n 33,\n 24,\n 27,\n 35,\n 30,\n 0,\n 3,\n 0,\n 9,\n 34,\n 4,\n 0,\n 13,\n 47,\n 15,\n 3,\n 22,\n 0,\n 2,\n 0,\n 36,\n 17,\n 2,\n 24,\n 20,\n 1,\n 64,\n 6,\n 2,\n 0,\n 2,\n 3,\n 2,\n 14,\n 2,\n 9,\n 8,\n 46,\n 39,\n 7,\n 3,\n 1,\n 3,\n 21,\n 2,\n 6,\n 2,\n 1,\n 2,\n 4,\n 4,\n 0,\n 19,\n 0,\n 13,\n 4,\n 159,\n 52,\n 19,\n 3,\n 21,\n 2,\n 31,\n 47,\n 21,\n 1,\n 2,\n 0,\n 185,\n 46,\n 42,\n 3,\n 37,\n 47,\n 21,\n 0,\n 60,\n 42,\n 14,\n 0,\n 72,\n 26,\n 38,\n 6,\n 186,\n 43,\n 117,\n 63,\n 32,\n 7,\n 3,\n 0,\n 3,\n 7,\n 2,\n 1,\n 2,\n 23,\n 16,\n 0,\n 2,\n 0,\n 95,\n 7,\n 3,\n 38,\n 17,\n 0,\n 2,\n 0,\n 29,\n 0,\n 11,\n 39,\n 8,\n 0,\n 22,\n 0,\n 12,\n 45,\n 20,\n 0,\n 19,\n 72,\n 264,\n 8,\n 2,\n 36,\n 18,\n 0,\n 50,\n 29,\n 113,\n 6,\n 2,\n 1,\n 2,\n 37,\n 22,\n 0,\n 26,\n 5,\n 2,\n 1,\n 2,\n 31,\n 15,\n 0,\n 328,\n 18,\n 16,\n 0,\n 2,\n 12,\n 2,\n 33,\n 125,\n 0,\n 80,\n 921,\n 103,\n 110,\n 18,\n 195,\n 2637,\n 96,\n 16,\n 1071,\n 18,\n 5,\n 4026,\n 582,\n 8634,\n 568,\n 8,\n 30,\n 18,\n 78,\n 18,\n 29,\n 19,\n 47,\n 17,\n 3,\n 32,\n 20,\n 6,\n 18,\n 689,\n 63,\n 129,\n 74,\n 6,\n 0,\n 67,\n 12,\n 65,\n 1,\n 2,\n 0,\n 29,\n 6135,\n 9,\n 1237,\n 43,\n 8,\n 8936,\n 3,\n 2,\n 6,\n 2,\n 1,\n 2,\n 290,\n 16,\n 0,\n 30,\n 2,\n 3,\n 0,\n 15,\n 3,\n 9,\n 395,\n 2309,\n 106,\n 6,\n 12,\n 4,\n 8,\n 8,\n 9,\n 5991,\n 84,\n 2,\n 70,\n 2,\n 1,\n 3,\n 0,\n 3,\n 1,\n 3,\n 3,\n 2,\n 11,\n 2,\n 0,\n 2,\n 6,\n 2,\n 64,\n 2,\n 3,\n 3,\n 7,\n 2,\n 6,\n 2,\n 27,\n 2,\n 3,\n 2,\n 4,\n 2,\n 0,\n 4,\n 6,\n 2,\n 339,\n 3,\n 24,\n 2,\n 24,\n 2,\n 30,\n 2,\n 24,\n 2,\n 30,\n 2,\n 24,\n 2,\n 30,\n 2,\n 24,\n 2,\n 30,\n 2,\n 24,\n 2,\n 7,\n 1845,\n 30,\n 7,\n 5,\n 262,\n 61,\n 147,\n 44,\n 11,\n 6,\n 17,\n 0,\n 322,\n 29,\n 19,\n 43,\n 485,\n 27,\n 757,\n 6,\n 2,\n 3,\n 2,\n 1,\n 2,\n 14,\n 2,\n 196,\n 60,\n 67,\n 8,\n 0,\n 1205,\n 3,\n 2,\n 26,\n 2,\n 1,\n 2,\n 0,\n 3,\n 0,\n 2,\n 9,\n 2,\n 3,\n 2,\n 0,\n 2,\n 0,\n 7,\n 0,\n 5,\n 0,\n 2,\n 0,\n 2,\n 0,\n 2,\n 2,\n 2,\n 1,\n 2,\n 0,\n 3,\n 0,\n 2,\n 0,\n 2,\n 0,\n 2,\n 0,\n 2,\n 0,\n 2,\n 1,\n 2,\n 0,\n 3,\n 3,\n 2,\n 6,\n 2,\n 3,\n 2,\n 3,\n 2,\n 0,\n 2,\n 9,\n 2,\n 16,\n 6,\n 2,\n 2,\n 4,\n 2,\n 16,\n 4421,\n 42719,\n 33,\n 4153,\n 7,\n 221,\n 3,\n 5761,\n 15,\n 7472,\n 16,\n 621,\n 2467,\n 541,\n 1507,\n 4938,\n 6,\n 4191\n];\n// This file was generated. Do not modify manually!\nvar $ebef8a20963d596b$var$nonASCIIidentifierChars = \"\\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\\u0898-\\u089F\\u08CA-\\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\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B66-\\u0B6F\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C04\\u0C3C\\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\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D66-\\u0D6F\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0E50-\\u0E59\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\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-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u180F-\\u1819\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u194F\\u19D0-\\u19DA\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AB0-\\u1ABD\\u1ABF-\\u1ACE\\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-\\u1DFF\\u200C\\u200D\\u203F\\u2040\\u2054\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\u30FB\\uA620-\\uA629\\uA66F\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\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\\uFF65\";\n// This file was generated. Do not modify manually!\nvar $ebef8a20963d596b$var$nonASCIIidentifierStartChars = \"\\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\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\u0904-\\u0939\\u093D\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0DC6\\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-\\u1711\\u171F-\\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-\\u1B4C\\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-\\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-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\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-\\uAB69\\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\";\n// These are a run-length and offset encoded representation of the\n// >0xffff code points that are a valid part of identifiers. The\n// offset starts at 0x10000, and each pair of numbers represents an\n// offset to the next range, and then a size of the range.\n// Reserved word lists for various dialects of the language\nvar $ebef8a20963d596b$var$reservedWords = {\n 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\",\n 5: \"class enum extends super const export import\",\n 6: \"enum\",\n strict: \"implements interface let package private protected public static yield\",\n strictBind: \"eval arguments\"\n};\n// And the keywords\nvar $ebef8a20963d596b$var$ecma5AndLessKeywords = \"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\";\nvar $ebef8a20963d596b$var$keywords$1 = {\n 5: $ebef8a20963d596b$var$ecma5AndLessKeywords,\n \"5module\": $ebef8a20963d596b$var$ecma5AndLessKeywords + \" export import\",\n 6: $ebef8a20963d596b$var$ecma5AndLessKeywords + \" const class extends export import super\"\n};\nvar $ebef8a20963d596b$var$keywordRelationalOperator = /^in(stanceof)?$/;\n// ## Character categories\nvar $ebef8a20963d596b$var$nonASCIIidentifierStart = new RegExp(\"[\" + $ebef8a20963d596b$var$nonASCIIidentifierStartChars + \"]\");\nvar $ebef8a20963d596b$var$nonASCIIidentifier = new RegExp(\"[\" + $ebef8a20963d596b$var$nonASCIIidentifierStartChars + $ebef8a20963d596b$var$nonASCIIidentifierChars + \"]\");\n// This has a complexity linear to the value of the code. The\n// assumption is that looking up astral identifier characters is\n// rare.\nfunction $ebef8a20963d596b$var$isInAstralSet(code, set) {\n var pos = 0x10000;\n for(var i = 0; i < set.length; i += 2){\n pos += set[i];\n if (pos > code) return false;\n pos += set[i + 1];\n if (pos >= code) return true;\n }\n return false;\n}\n// Test whether a given character code starts an identifier.\nfunction $ebef8a20963d596b$export$56b48cc5d7560ffb(code, astral) {\n if (code < 65) return code === 36;\n if (code < 91) return true;\n if (code < 97) return code === 95;\n if (code < 123) return true;\n if (code <= 0xffff) return code >= 0xaa && $ebef8a20963d596b$var$nonASCIIidentifierStart.test(String.fromCharCode(code));\n if (astral === false) return false;\n return $ebef8a20963d596b$var$isInAstralSet(code, $ebef8a20963d596b$var$astralIdentifierStartCodes);\n}\n// Test whether a given character is part of an identifier.\nfunction $ebef8a20963d596b$export$332f4d7bee38db93(code, astral) {\n if (code < 48) return code === 36;\n if (code < 58) return true;\n if (code < 65) return false;\n if (code < 91) return true;\n if (code < 97) return code === 95;\n if (code < 123) return true;\n if (code <= 0xffff) return code >= 0xaa && $ebef8a20963d596b$var$nonASCIIidentifier.test(String.fromCharCode(code));\n if (astral === false) return false;\n return $ebef8a20963d596b$var$isInAstralSet(code, $ebef8a20963d596b$var$astralIdentifierStartCodes) || $ebef8a20963d596b$var$isInAstralSet(code, $ebef8a20963d596b$var$astralIdentifierCodes);\n}\n// ## Token types\n// The assignment of fine-grained, information-carrying type objects\n// allows the tokenizer to store the information it has about a\n// token in a way that is very cheap for the parser to look up.\n// All token type variables start with an underscore, to make them\n// easy to recognize.\n// The `beforeExpr` property is used to disambiguate between regular\n// expressions and divisions. It is set on all token types that can\n// be followed by an expression (thus, a slash after them would be a\n// regular expression).\n//\n// The `startsExpr` property is used to check if the token ends a\n// `yield` expression. It is set on all token types that either can\n// directly start an expression (like a quotation mark) or can\n// continue an expression (like the body of a string).\n//\n// `isLoop` marks a keyword as starting a loop, which is important\n// to know when parsing a label, in order to allow or disallow\n// continue jumps to that label.\nvar $ebef8a20963d596b$export$f435f793048e7a0f = function TokenType(label, conf) {\n if (conf === void 0) conf = {};\n this.label = label;\n this.keyword = conf.keyword;\n this.beforeExpr = !!conf.beforeExpr;\n this.startsExpr = !!conf.startsExpr;\n this.isLoop = !!conf.isLoop;\n this.isAssign = !!conf.isAssign;\n this.prefix = !!conf.prefix;\n this.postfix = !!conf.postfix;\n this.binop = conf.binop || null;\n this.updateContext = null;\n};\nfunction $ebef8a20963d596b$var$binop(name, prec) {\n return new $ebef8a20963d596b$export$f435f793048e7a0f(name, {\n beforeExpr: true,\n binop: prec\n });\n}\nvar $ebef8a20963d596b$var$beforeExpr = {\n beforeExpr: true\n}, $ebef8a20963d596b$var$startsExpr = {\n startsExpr: true\n};\n// Map keyword names to token types.\nvar $ebef8a20963d596b$export$d53f8326294b31d8 = {};\n// Succinct definitions of keyword token types\nfunction $ebef8a20963d596b$var$kw(name, options) {\n if (options === void 0) options = {};\n options.keyword = name;\n return $ebef8a20963d596b$export$d53f8326294b31d8[name] = new $ebef8a20963d596b$export$f435f793048e7a0f(name, options);\n}\nvar $ebef8a20963d596b$export$b54c7ea7aabba5c8 = {\n num: new $ebef8a20963d596b$export$f435f793048e7a0f(\"num\", $ebef8a20963d596b$var$startsExpr),\n regexp: new $ebef8a20963d596b$export$f435f793048e7a0f(\"regexp\", $ebef8a20963d596b$var$startsExpr),\n string: new $ebef8a20963d596b$export$f435f793048e7a0f(\"string\", $ebef8a20963d596b$var$startsExpr),\n name: new $ebef8a20963d596b$export$f435f793048e7a0f(\"name\", $ebef8a20963d596b$var$startsExpr),\n privateId: new $ebef8a20963d596b$export$f435f793048e7a0f(\"privateId\", $ebef8a20963d596b$var$startsExpr),\n eof: new $ebef8a20963d596b$export$f435f793048e7a0f(\"eof\"),\n // Punctuation token types.\n bracketL: new $ebef8a20963d596b$export$f435f793048e7a0f(\"[\", {\n beforeExpr: true,\n startsExpr: true\n }),\n bracketR: new $ebef8a20963d596b$export$f435f793048e7a0f(\"]\"),\n braceL: new $ebef8a20963d596b$export$f435f793048e7a0f(\"{\", {\n beforeExpr: true,\n startsExpr: true\n }),\n braceR: new $ebef8a20963d596b$export$f435f793048e7a0f(\"}\"),\n parenL: new $ebef8a20963d596b$export$f435f793048e7a0f(\"(\", {\n beforeExpr: true,\n startsExpr: true\n }),\n parenR: new $ebef8a20963d596b$export$f435f793048e7a0f(\")\"),\n comma: new $ebef8a20963d596b$export$f435f793048e7a0f(\",\", $ebef8a20963d596b$var$beforeExpr),\n semi: new $ebef8a20963d596b$export$f435f793048e7a0f(\";\", $ebef8a20963d596b$var$beforeExpr),\n colon: new $ebef8a20963d596b$export$f435f793048e7a0f(\":\", $ebef8a20963d596b$var$beforeExpr),\n dot: new $ebef8a20963d596b$export$f435f793048e7a0f(\".\"),\n question: new $ebef8a20963d596b$export$f435f793048e7a0f(\"?\", $ebef8a20963d596b$var$beforeExpr),\n questionDot: new $ebef8a20963d596b$export$f435f793048e7a0f(\"?.\"),\n arrow: new $ebef8a20963d596b$export$f435f793048e7a0f(\"=>\", $ebef8a20963d596b$var$beforeExpr),\n template: new $ebef8a20963d596b$export$f435f793048e7a0f(\"template\"),\n invalidTemplate: new $ebef8a20963d596b$export$f435f793048e7a0f(\"invalidTemplate\"),\n ellipsis: new $ebef8a20963d596b$export$f435f793048e7a0f(\"...\", $ebef8a20963d596b$var$beforeExpr),\n backQuote: new $ebef8a20963d596b$export$f435f793048e7a0f(\"`\", $ebef8a20963d596b$var$startsExpr),\n dollarBraceL: new $ebef8a20963d596b$export$f435f793048e7a0f(\"${\", {\n beforeExpr: true,\n startsExpr: true\n }),\n // Operators. These carry several kinds of properties to help the\n // parser use them properly (the presence of these properties is\n // what categorizes them as operators).\n //\n // `binop`, when present, specifies that this operator is a binary\n // operator, and will refer to its precedence.\n //\n // `prefix` and `postfix` mark the operator as a prefix or postfix\n // unary operator.\n //\n // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as\n // binary operators with a very low precedence, that should result\n // in AssignmentExpression nodes.\n eq: new $ebef8a20963d596b$export$f435f793048e7a0f(\"=\", {\n beforeExpr: true,\n isAssign: true\n }),\n assign: new $ebef8a20963d596b$export$f435f793048e7a0f(\"_=\", {\n beforeExpr: true,\n isAssign: true\n }),\n incDec: new $ebef8a20963d596b$export$f435f793048e7a0f(\"++/--\", {\n prefix: true,\n postfix: true,\n startsExpr: true\n }),\n prefix: new $ebef8a20963d596b$export$f435f793048e7a0f(\"!/~\", {\n beforeExpr: true,\n prefix: true,\n startsExpr: true\n }),\n logicalOR: $ebef8a20963d596b$var$binop(\"||\", 1),\n logicalAND: $ebef8a20963d596b$var$binop(\"&&\", 2),\n bitwiseOR: $ebef8a20963d596b$var$binop(\"|\", 3),\n bitwiseXOR: $ebef8a20963d596b$var$binop(\"^\", 4),\n bitwiseAND: $ebef8a20963d596b$var$binop(\"&\", 5),\n equality: $ebef8a20963d596b$var$binop(\"==/!=/===/!==\", 6),\n relational: $ebef8a20963d596b$var$binop(\"/<=/>=\", 7),\n bitShift: $ebef8a20963d596b$var$binop(\"<>/>>>\", 8),\n plusMin: new $ebef8a20963d596b$export$f435f793048e7a0f(\"+/-\", {\n beforeExpr: true,\n binop: 9,\n prefix: true,\n startsExpr: true\n }),\n modulo: $ebef8a20963d596b$var$binop(\"%\", 10),\n star: $ebef8a20963d596b$var$binop(\"*\", 10),\n slash: $ebef8a20963d596b$var$binop(\"/\", 10),\n starstar: new $ebef8a20963d596b$export$f435f793048e7a0f(\"**\", {\n beforeExpr: true\n }),\n coalesce: $ebef8a20963d596b$var$binop(\"??\", 1),\n // Keyword token types.\n _break: $ebef8a20963d596b$var$kw(\"break\"),\n _case: $ebef8a20963d596b$var$kw(\"case\", $ebef8a20963d596b$var$beforeExpr),\n _catch: $ebef8a20963d596b$var$kw(\"catch\"),\n _continue: $ebef8a20963d596b$var$kw(\"continue\"),\n _debugger: $ebef8a20963d596b$var$kw(\"debugger\"),\n _default: $ebef8a20963d596b$var$kw(\"default\", $ebef8a20963d596b$var$beforeExpr),\n _do: $ebef8a20963d596b$var$kw(\"do\", {\n isLoop: true,\n beforeExpr: true\n }),\n _else: $ebef8a20963d596b$var$kw(\"else\", $ebef8a20963d596b$var$beforeExpr),\n _finally: $ebef8a20963d596b$var$kw(\"finally\"),\n _for: $ebef8a20963d596b$var$kw(\"for\", {\n isLoop: true\n }),\n _function: $ebef8a20963d596b$var$kw(\"function\", $ebef8a20963d596b$var$startsExpr),\n _if: $ebef8a20963d596b$var$kw(\"if\"),\n _return: $ebef8a20963d596b$var$kw(\"return\", $ebef8a20963d596b$var$beforeExpr),\n _switch: $ebef8a20963d596b$var$kw(\"switch\"),\n _throw: $ebef8a20963d596b$var$kw(\"throw\", $ebef8a20963d596b$var$beforeExpr),\n _try: $ebef8a20963d596b$var$kw(\"try\"),\n _var: $ebef8a20963d596b$var$kw(\"var\"),\n _const: $ebef8a20963d596b$var$kw(\"const\"),\n _while: $ebef8a20963d596b$var$kw(\"while\", {\n isLoop: true\n }),\n _with: $ebef8a20963d596b$var$kw(\"with\"),\n _new: $ebef8a20963d596b$var$kw(\"new\", {\n beforeExpr: true,\n startsExpr: true\n }),\n _this: $ebef8a20963d596b$var$kw(\"this\", $ebef8a20963d596b$var$startsExpr),\n _super: $ebef8a20963d596b$var$kw(\"super\", $ebef8a20963d596b$var$startsExpr),\n _class: $ebef8a20963d596b$var$kw(\"class\", $ebef8a20963d596b$var$startsExpr),\n _extends: $ebef8a20963d596b$var$kw(\"extends\", $ebef8a20963d596b$var$beforeExpr),\n _export: $ebef8a20963d596b$var$kw(\"export\"),\n _import: $ebef8a20963d596b$var$kw(\"import\", $ebef8a20963d596b$var$startsExpr),\n _null: $ebef8a20963d596b$var$kw(\"null\", $ebef8a20963d596b$var$startsExpr),\n _true: $ebef8a20963d596b$var$kw(\"true\", $ebef8a20963d596b$var$startsExpr),\n _false: $ebef8a20963d596b$var$kw(\"false\", $ebef8a20963d596b$var$startsExpr),\n _in: $ebef8a20963d596b$var$kw(\"in\", {\n beforeExpr: true,\n binop: 7\n }),\n _instanceof: $ebef8a20963d596b$var$kw(\"instanceof\", {\n beforeExpr: true,\n binop: 7\n }),\n _typeof: $ebef8a20963d596b$var$kw(\"typeof\", {\n beforeExpr: true,\n prefix: true,\n startsExpr: true\n }),\n _void: $ebef8a20963d596b$var$kw(\"void\", {\n beforeExpr: true,\n prefix: true,\n startsExpr: true\n }),\n _delete: $ebef8a20963d596b$var$kw(\"delete\", {\n beforeExpr: true,\n prefix: true,\n startsExpr: true\n })\n};\n// Matches a whole line break (where CRLF is considered a single\n// line break). Used to count lines.\nvar $ebef8a20963d596b$export$a1aa2dd4ad0d3f6 = /\\r\\n?|\\n|\\u2028|\\u2029/;\nvar $ebef8a20963d596b$export$866e20207bbc41f2 = new RegExp($ebef8a20963d596b$export$a1aa2dd4ad0d3f6.source, \"g\");\nfunction $ebef8a20963d596b$export$2c19a3e3b4008fff(code) {\n return code === 10 || code === 13 || code === 0x2028 || code === 0x2029;\n}\nfunction $ebef8a20963d596b$var$nextLineBreak(code, from, end) {\n if (end === void 0) end = code.length;\n for(var i = from; i < end; i++){\n var next = code.charCodeAt(i);\n if ($ebef8a20963d596b$export$2c19a3e3b4008fff(next)) return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1;\n }\n return -1;\n}\nvar $ebef8a20963d596b$export$268622f0f1cbc82b = /[\\u1680\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/;\nvar $ebef8a20963d596b$var$skipWhiteSpace = /(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;\nvar $ebef8a20963d596b$var$ref = Object.prototype;\nvar $ebef8a20963d596b$var$hasOwnProperty = $ebef8a20963d596b$var$ref.hasOwnProperty;\nvar $ebef8a20963d596b$var$toString = $ebef8a20963d596b$var$ref.toString;\nvar $ebef8a20963d596b$var$hasOwn = Object.hasOwn || function(obj, propName) {\n return $ebef8a20963d596b$var$hasOwnProperty.call(obj, propName);\n};\nvar $ebef8a20963d596b$var$isArray = Array.isArray || function(obj) {\n return $ebef8a20963d596b$var$toString.call(obj) === \"[object Array]\";\n};\nvar $ebef8a20963d596b$var$regexpCache = Object.create(null);\nfunction $ebef8a20963d596b$var$wordsRegexp(words) {\n return $ebef8a20963d596b$var$regexpCache[words] || ($ebef8a20963d596b$var$regexpCache[words] = new RegExp(\"^(?:\" + words.replace(/ /g, \"|\") + \")$\"));\n}\nfunction $ebef8a20963d596b$var$codePointToString(code) {\n // UTF-16 Decoding\n if (code <= 0xFFFF) return String.fromCharCode(code);\n code -= 0x10000;\n return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00);\n}\nvar $ebef8a20963d596b$var$loneSurrogate = /(?:[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])/;\n// These are used when `options.locations` is on, for the\n// `startLoc` and `endLoc` properties.\nvar $ebef8a20963d596b$export$13807d9ee5a34a42 = function Position(line, col) {\n this.line = line;\n this.column = col;\n};\n$ebef8a20963d596b$export$13807d9ee5a34a42.prototype.offset = function offset(n) {\n return new $ebef8a20963d596b$export$13807d9ee5a34a42(this.line, this.column + n);\n};\nvar $ebef8a20963d596b$export$7387db7caf96fcdb = function SourceLocation(p, start, end) {\n this.start = start;\n this.end = end;\n if (p.sourceFile !== null) this.source = p.sourceFile;\n};\n// The `getLineInfo` function is mostly useful when the\n// `locations` option is off (for performance reasons) and you\n// want to find the line/column position for a given character\n// offset. `input` should be the code string that the offset refers\n// into.\nfunction $ebef8a20963d596b$export$7af82191547c5ff7(input, offset) {\n for(var line = 1, cur = 0;;){\n var nextBreak = $ebef8a20963d596b$var$nextLineBreak(input, cur, offset);\n if (nextBreak < 0) return new $ebef8a20963d596b$export$13807d9ee5a34a42(line, offset - cur);\n ++line;\n cur = nextBreak;\n }\n}\n// A second argument must be given to configure the parser process.\n// These options are recognized (only `ecmaVersion` is required):\nvar $ebef8a20963d596b$export$ba43bf67f3d48107 = {\n // `ecmaVersion` indicates the ECMAScript version to parse. Must be\n // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10\n // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `\"latest\"`\n // (the latest version the library supports). This influences\n // support for strict mode, the set of reserved words, and support\n // for new syntax features.\n ecmaVersion: null,\n // `sourceType` indicates the mode the code should be parsed in.\n // Can be either `\"script\"` or `\"module\"`. This influences global\n // strict mode and parsing of `import` and `export` declarations.\n sourceType: \"script\",\n // `onInsertedSemicolon` can be a callback that will be called when\n // a semicolon is automatically inserted. It will be passed the\n // position of the inserted semicolon as an offset, and if\n // `locations` is enabled, it is given the location as a `{line,\n // column}` object as second argument.\n onInsertedSemicolon: null,\n // `onTrailingComma` is similar to `onInsertedSemicolon`, but for\n // trailing commas.\n onTrailingComma: null,\n // By default, reserved words are only enforced if ecmaVersion >= 5.\n // Set `allowReserved` to a boolean value to explicitly turn this on\n // an off. When this option has the value \"never\", reserved words\n // and keywords can also not be used as property names.\n allowReserved: null,\n // When enabled, a return at the top level is not considered an\n // error.\n allowReturnOutsideFunction: false,\n // When enabled, import/export statements are not constrained to\n // appearing at the top of the program, and an import.meta expression\n // in a script isn't considered an error.\n allowImportExportEverywhere: false,\n // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022.\n // When enabled, await identifiers are allowed to appear at the top-level scope,\n // but they are still not allowed in non-async functions.\n allowAwaitOutsideFunction: null,\n // When enabled, super identifiers are not constrained to\n // appearing in methods and do not raise an error when they appear elsewhere.\n allowSuperOutsideMethod: null,\n // When enabled, hashbang directive in the beginning of file is\n // allowed and treated as a line comment. Enabled by default when\n // `ecmaVersion` >= 2023.\n allowHashBang: false,\n // By default, the parser will verify that private properties are\n // only used in places where they are valid and have been declared.\n // Set this to false to turn such checks off.\n checkPrivateFields: true,\n // When `locations` is on, `loc` properties holding objects with\n // `start` and `end` properties in `{line, column}` form (with\n // line being 1-based and column 0-based) will be attached to the\n // nodes.\n locations: false,\n // A function can be passed as `onToken` option, which will\n // cause Acorn to call that function with object in the same\n // format as tokens returned from `tokenizer().getToken()`. Note\n // that you are not allowed to call the parser from the\n // callback—that will corrupt its internal state.\n onToken: null,\n // A function can be passed as `onComment` option, which will\n // cause Acorn to call that function with `(block, text, start,\n // end)` parameters whenever a comment is skipped. `block` is a\n // boolean indicating whether this is a block (`/* */`) comment,\n // `text` is the content of the comment, and `start` and `end` are\n // character offsets that denote the start and end of the comment.\n // When the `locations` option is on, two more parameters are\n // passed, the full `{line, column}` locations of the start and\n // end of the comments. Note that you are not allowed to call the\n // parser from the callback—that will corrupt its internal state.\n // When this option has an array as value, objects representing the\n // comments are pushed to it.\n onComment: null,\n // Nodes have their start and end characters offsets recorded in\n // `start` and `end` properties (directly on the node, rather than\n // the `loc` object, which holds line/column data. To also add a\n // [semi-standardized][range] `range` property holding a `[start,\n // end]` array with the same numbers, set the `ranges` option to\n // `true`.\n //\n // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678\n ranges: false,\n // It is possible to parse multiple files into a single AST by\n // passing the tree produced by parsing the first file as\n // `program` option in subsequent parses. This will add the\n // toplevel forms of the parsed file to the `Program` (top) node\n // of an existing parse tree.\n program: null,\n // When `locations` is on, you can pass this to record the source\n // file in every node's `loc` object.\n sourceFile: null,\n // This value, if given, is stored in every node, whether\n // `locations` is on or off.\n directSourceFile: null,\n // When enabled, parenthesized expressions are represented by\n // (non-standard) ParenthesizedExpression nodes\n preserveParens: false\n};\n// Interpret and default an options object\nvar $ebef8a20963d596b$var$warnedAboutEcmaVersion = false;\nfunction $ebef8a20963d596b$var$getOptions(opts) {\n var options = {};\n for(var opt in $ebef8a20963d596b$export$ba43bf67f3d48107)options[opt] = opts && $ebef8a20963d596b$var$hasOwn(opts, opt) ? opts[opt] : $ebef8a20963d596b$export$ba43bf67f3d48107[opt];\n if (options.ecmaVersion === \"latest\") options.ecmaVersion = 1e8;\n else if (options.ecmaVersion == null) {\n if (!$ebef8a20963d596b$var$warnedAboutEcmaVersion && typeof console === \"object\" && console.warn) {\n $ebef8a20963d596b$var$warnedAboutEcmaVersion = true;\n console.warn(\"Since Acorn 8.0.0, options.ecmaVersion is required.\\nDefaulting to 2020, but this will stop working in the future.\");\n }\n options.ecmaVersion = 11;\n } else if (options.ecmaVersion >= 2015) options.ecmaVersion -= 2009;\n if (options.allowReserved == null) options.allowReserved = options.ecmaVersion < 5;\n if (!opts || opts.allowHashBang == null) options.allowHashBang = options.ecmaVersion >= 14;\n if ($ebef8a20963d596b$var$isArray(options.onToken)) {\n var tokens = options.onToken;\n options.onToken = function(token) {\n return tokens.push(token);\n };\n }\n if ($ebef8a20963d596b$var$isArray(options.onComment)) options.onComment = $ebef8a20963d596b$var$pushComment(options, options.onComment);\n return options;\n}\nfunction $ebef8a20963d596b$var$pushComment(options, array) {\n return function(block, text, start, end, startLoc, endLoc) {\n var comment = {\n type: block ? \"Block\" : \"Line\",\n value: text,\n start: start,\n end: end\n };\n if (options.locations) comment.loc = new $ebef8a20963d596b$export$7387db7caf96fcdb(this, startLoc, endLoc);\n if (options.ranges) comment.range = [\n start,\n end\n ];\n array.push(comment);\n };\n}\n// Each scope gets a bitset that may contain these flags\nvar $ebef8a20963d596b$var$SCOPE_TOP = 1, $ebef8a20963d596b$var$SCOPE_FUNCTION = 2, $ebef8a20963d596b$var$SCOPE_ASYNC = 4, $ebef8a20963d596b$var$SCOPE_GENERATOR = 8, $ebef8a20963d596b$var$SCOPE_ARROW = 16, $ebef8a20963d596b$var$SCOPE_SIMPLE_CATCH = 32, $ebef8a20963d596b$var$SCOPE_SUPER = 64, $ebef8a20963d596b$var$SCOPE_DIRECT_SUPER = 128, $ebef8a20963d596b$var$SCOPE_CLASS_STATIC_BLOCK = 256, $ebef8a20963d596b$var$SCOPE_VAR = $ebef8a20963d596b$var$SCOPE_TOP | $ebef8a20963d596b$var$SCOPE_FUNCTION | $ebef8a20963d596b$var$SCOPE_CLASS_STATIC_BLOCK;\nfunction $ebef8a20963d596b$var$functionFlags(async, generator) {\n return $ebef8a20963d596b$var$SCOPE_FUNCTION | (async ? $ebef8a20963d596b$var$SCOPE_ASYNC : 0) | (generator ? $ebef8a20963d596b$var$SCOPE_GENERATOR : 0);\n}\n// Used in checkLVal* and declareName to determine the type of a binding\nvar $ebef8a20963d596b$var$BIND_NONE = 0, $ebef8a20963d596b$var$BIND_VAR = 1, $ebef8a20963d596b$var$BIND_LEXICAL = 2, $ebef8a20963d596b$var$BIND_FUNCTION = 3, $ebef8a20963d596b$var$BIND_SIMPLE_CATCH = 4, $ebef8a20963d596b$var$BIND_OUTSIDE = 5; // Special case for function names as bound inside the function\nvar $ebef8a20963d596b$export$7acfa6ed01010e37 = function Parser(options, input, startPos) {\n this.options = options = $ebef8a20963d596b$var$getOptions(options);\n this.sourceFile = options.sourceFile;\n this.keywords = $ebef8a20963d596b$var$wordsRegexp($ebef8a20963d596b$var$keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === \"module\" ? \"5module\" : 5]);\n var reserved = \"\";\n if (options.allowReserved !== true) {\n reserved = $ebef8a20963d596b$var$reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3];\n if (options.sourceType === \"module\") reserved += \" await\";\n }\n this.reservedWords = $ebef8a20963d596b$var$wordsRegexp(reserved);\n var reservedStrict = (reserved ? reserved + \" \" : \"\") + $ebef8a20963d596b$var$reservedWords.strict;\n this.reservedWordsStrict = $ebef8a20963d596b$var$wordsRegexp(reservedStrict);\n this.reservedWordsStrictBind = $ebef8a20963d596b$var$wordsRegexp(reservedStrict + \" \" + $ebef8a20963d596b$var$reservedWords.strictBind);\n this.input = String(input);\n // Used to signal to callers of `readWord1` whether the word\n // contained any escape sequences. This is needed because words with\n // escape sequences must not be interpreted as keywords.\n this.containsEsc = false;\n // Set up token state\n // The current position of the tokenizer in the input.\n if (startPos) {\n this.pos = startPos;\n this.lineStart = this.input.lastIndexOf(\"\\n\", startPos - 1) + 1;\n this.curLine = this.input.slice(0, this.lineStart).split($ebef8a20963d596b$export$a1aa2dd4ad0d3f6).length;\n } else {\n this.pos = this.lineStart = 0;\n this.curLine = 1;\n }\n // Properties of the current token:\n // Its type\n this.type = $ebef8a20963d596b$export$b54c7ea7aabba5c8.eof;\n // For tokens that include more information than their type, the value\n this.value = null;\n // Its start and end offset\n this.start = this.end = this.pos;\n // And, if locations are used, the {line, column} object\n // corresponding to those offsets\n this.startLoc = this.endLoc = this.curPosition();\n // Position information for the previous token\n this.lastTokEndLoc = this.lastTokStartLoc = null;\n this.lastTokStart = this.lastTokEnd = this.pos;\n // The context stack is used to superficially track syntactic\n // context to predict whether a regular expression is allowed in a\n // given position.\n this.context = this.initialContext();\n this.exprAllowed = true;\n // Figure out if it's a module code.\n this.inModule = options.sourceType === \"module\";\n this.strict = this.inModule || this.strictDirective(this.pos);\n // Used to signify the start of a potential arrow function\n this.potentialArrowAt = -1;\n this.potentialArrowInForAwait = false;\n // Positions to delayed-check that yield/await does not exist in default parameters.\n this.yieldPos = this.awaitPos = this.awaitIdentPos = 0;\n // Labels in scope.\n this.labels = [];\n // Thus-far undefined exports.\n this.undefinedExports = Object.create(null);\n // If enabled, skip leading hashbang line.\n if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === \"#!\") this.skipLineComment(2);\n // Scope tracking for duplicate variable names (see scope.js)\n this.scopeStack = [];\n this.enterScope($ebef8a20963d596b$var$SCOPE_TOP);\n // For RegExp validation\n this.regexpState = null;\n // The stack of private names.\n // Each element has two properties: 'declared' and 'used'.\n // When it exited from the outermost class definition, all used private names must be declared.\n this.privateNameStack = [];\n};\nvar $ebef8a20963d596b$var$prototypeAccessors = {\n inFunction: {\n configurable: true\n },\n inGenerator: {\n configurable: true\n },\n inAsync: {\n configurable: true\n },\n canAwait: {\n configurable: true\n },\n allowSuper: {\n configurable: true\n },\n allowDirectSuper: {\n configurable: true\n },\n treatFunctionsAsVar: {\n configurable: true\n },\n allowNewDotTarget: {\n configurable: true\n },\n inClassStaticBlock: {\n configurable: true\n }\n};\n$ebef8a20963d596b$export$7acfa6ed01010e37.prototype.parse = function parse() {\n var node = this.options.program || this.startNode();\n this.nextToken();\n return this.parseTopLevel(node);\n};\n$ebef8a20963d596b$var$prototypeAccessors.inFunction.get = function() {\n return (this.currentVarScope().flags & $ebef8a20963d596b$var$SCOPE_FUNCTION) > 0;\n};\n$ebef8a20963d596b$var$prototypeAccessors.inGenerator.get = function() {\n return (this.currentVarScope().flags & $ebef8a20963d596b$var$SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit;\n};\n$ebef8a20963d596b$var$prototypeAccessors.inAsync.get = function() {\n return (this.currentVarScope().flags & $ebef8a20963d596b$var$SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit;\n};\n$ebef8a20963d596b$var$prototypeAccessors.canAwait.get = function() {\n for(var i = this.scopeStack.length - 1; i >= 0; i--){\n var scope = this.scopeStack[i];\n if (scope.inClassFieldInit || scope.flags & $ebef8a20963d596b$var$SCOPE_CLASS_STATIC_BLOCK) return false;\n if (scope.flags & $ebef8a20963d596b$var$SCOPE_FUNCTION) return (scope.flags & $ebef8a20963d596b$var$SCOPE_ASYNC) > 0;\n }\n return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;\n};\n$ebef8a20963d596b$var$prototypeAccessors.allowSuper.get = function() {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & $ebef8a20963d596b$var$SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod;\n};\n$ebef8a20963d596b$var$prototypeAccessors.allowDirectSuper.get = function() {\n return (this.currentThisScope().flags & $ebef8a20963d596b$var$SCOPE_DIRECT_SUPER) > 0;\n};\n$ebef8a20963d596b$var$prototypeAccessors.treatFunctionsAsVar.get = function() {\n return this.treatFunctionsAsVarInScope(this.currentScope());\n};\n$ebef8a20963d596b$var$prototypeAccessors.allowNewDotTarget.get = function() {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & ($ebef8a20963d596b$var$SCOPE_FUNCTION | $ebef8a20963d596b$var$SCOPE_CLASS_STATIC_BLOCK)) > 0 || inClassFieldInit;\n};\n$ebef8a20963d596b$var$prototypeAccessors.inClassStaticBlock.get = function() {\n return (this.currentVarScope().flags & $ebef8a20963d596b$var$SCOPE_CLASS_STATIC_BLOCK) > 0;\n};\n$ebef8a20963d596b$export$7acfa6ed01010e37.extend = function extend() {\n var plugins = [], len = arguments.length;\n while(len--)plugins[len] = arguments[len];\n var cls = this;\n for(var i = 0; i < plugins.length; i++)cls = plugins[i](cls);\n return cls;\n};\n$ebef8a20963d596b$export$7acfa6ed01010e37.parse = function parse(input, options) {\n return new this(options, input).parse();\n};\n$ebef8a20963d596b$export$7acfa6ed01010e37.parseExpressionAt = function parseExpressionAt(input, pos, options) {\n var parser = new this(options, input, pos);\n parser.nextToken();\n return parser.parseExpression();\n};\n$ebef8a20963d596b$export$7acfa6ed01010e37.tokenizer = function tokenizer(input, options) {\n return new this(options, input);\n};\nObject.defineProperties($ebef8a20963d596b$export$7acfa6ed01010e37.prototype, $ebef8a20963d596b$var$prototypeAccessors);\nvar $ebef8a20963d596b$var$pp$9 = $ebef8a20963d596b$export$7acfa6ed01010e37.prototype;\n// ## Parser utilities\nvar $ebef8a20963d596b$var$literal = /^(?:'((?:\\\\[^]|[^'\\\\])*?)'|\"((?:\\\\[^]|[^\"\\\\])*?)\")/;\n$ebef8a20963d596b$var$pp$9.strictDirective = function(start) {\n if (this.options.ecmaVersion < 5) return false;\n for(;;){\n // Try to find string literal.\n $ebef8a20963d596b$var$skipWhiteSpace.lastIndex = start;\n start += $ebef8a20963d596b$var$skipWhiteSpace.exec(this.input)[0].length;\n var match = $ebef8a20963d596b$var$literal.exec(this.input.slice(start));\n if (!match) return false;\n if ((match[1] || match[2]) === \"use strict\") {\n $ebef8a20963d596b$var$skipWhiteSpace.lastIndex = start + match[0].length;\n var spaceAfter = $ebef8a20963d596b$var$skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;\n var next = this.input.charAt(end);\n return next === \";\" || next === \"}\" || $ebef8a20963d596b$export$a1aa2dd4ad0d3f6.test(spaceAfter[0]) && !(/[(`.[+\\-/*%<>=,?^&]/.test(next) || next === \"!\" && this.input.charAt(end + 1) === \"=\");\n }\n start += match[0].length;\n // Skip semicolon, if any.\n $ebef8a20963d596b$var$skipWhiteSpace.lastIndex = start;\n start += $ebef8a20963d596b$var$skipWhiteSpace.exec(this.input)[0].length;\n if (this.input[start] === \";\") start++;\n }\n};\n// Predicate that tests whether the next token is of the given\n// type, and if yes, consumes it as a side effect.\n$ebef8a20963d596b$var$pp$9.eat = function(type) {\n if (this.type === type) {\n this.next();\n return true;\n } else return false;\n};\n// Tests whether parsed token is a contextual keyword.\n$ebef8a20963d596b$var$pp$9.isContextual = function(name) {\n return this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.name && this.value === name && !this.containsEsc;\n};\n// Consumes contextual keyword if possible.\n$ebef8a20963d596b$var$pp$9.eatContextual = function(name) {\n if (!this.isContextual(name)) return false;\n this.next();\n return true;\n};\n// Asserts that following token is given contextual keyword.\n$ebef8a20963d596b$var$pp$9.expectContextual = function(name) {\n if (!this.eatContextual(name)) this.unexpected();\n};\n// Test whether a semicolon can be inserted at the current position.\n$ebef8a20963d596b$var$pp$9.canInsertSemicolon = function() {\n return this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.eof || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR || $ebef8a20963d596b$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start));\n};\n$ebef8a20963d596b$var$pp$9.insertSemicolon = function() {\n if (this.canInsertSemicolon()) {\n if (this.options.onInsertedSemicolon) this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc);\n return true;\n }\n};\n// Consume a semicolon, or, failing that, see if we are allowed to\n// pretend that there is a semicolon at this position.\n$ebef8a20963d596b$var$pp$9.semicolon = function() {\n if (!this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.semi) && !this.insertSemicolon()) this.unexpected();\n};\n$ebef8a20963d596b$var$pp$9.afterTrailingComma = function(tokType, notNext) {\n if (this.type === tokType) {\n if (this.options.onTrailingComma) this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc);\n if (!notNext) this.next();\n return true;\n }\n};\n// Expect a token of a given type. If found, consume it, otherwise,\n// raise an unexpected token error.\n$ebef8a20963d596b$var$pp$9.expect = function(type) {\n this.eat(type) || this.unexpected();\n};\n// Raise an unexpected token error.\n$ebef8a20963d596b$var$pp$9.unexpected = function(pos) {\n this.raise(pos != null ? pos : this.start, \"Unexpected token\");\n};\nvar $ebef8a20963d596b$var$DestructuringErrors = function DestructuringErrors() {\n this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;\n};\n$ebef8a20963d596b$var$pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {\n if (!refDestructuringErrors) return;\n if (refDestructuringErrors.trailingComma > -1) this.raiseRecoverable(refDestructuringErrors.trailingComma, \"Comma is not permitted after the rest element\");\n var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;\n if (parens > -1) this.raiseRecoverable(parens, isAssign ? \"Assigning to rvalue\" : \"Parenthesized pattern\");\n};\n$ebef8a20963d596b$var$pp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) {\n if (!refDestructuringErrors) return false;\n var shorthandAssign = refDestructuringErrors.shorthandAssign;\n var doubleProto = refDestructuringErrors.doubleProto;\n if (!andThrow) return shorthandAssign >= 0 || doubleProto >= 0;\n if (shorthandAssign >= 0) this.raise(shorthandAssign, \"Shorthand property assignments are valid only in destructuring patterns\");\n if (doubleProto >= 0) this.raiseRecoverable(doubleProto, \"Redefinition of __proto__ property\");\n};\n$ebef8a20963d596b$var$pp$9.checkYieldAwaitInDefaultParams = function() {\n if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos)) this.raise(this.yieldPos, \"Yield expression cannot be a default value\");\n if (this.awaitPos) this.raise(this.awaitPos, \"Await expression cannot be a default value\");\n};\n$ebef8a20963d596b$var$pp$9.isSimpleAssignTarget = function(expr) {\n if (expr.type === \"ParenthesizedExpression\") return this.isSimpleAssignTarget(expr.expression);\n return expr.type === \"Identifier\" || expr.type === \"MemberExpression\";\n};\nvar $ebef8a20963d596b$var$pp$8 = $ebef8a20963d596b$export$7acfa6ed01010e37.prototype;\n// ### Statement parsing\n// Parse a program. Initializes the parser, reads any number of\n// statements, and wraps them in a Program node. Optionally takes a\n// `program` argument. If present, the statements will be appended\n// to its body instead of creating a new node.\n$ebef8a20963d596b$var$pp$8.parseTopLevel = function(node) {\n var exports = Object.create(null);\n if (!node.body) node.body = [];\n while(this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.eof){\n var stmt = this.parseStatement(null, true, exports);\n node.body.push(stmt);\n }\n if (this.inModule) for(var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1){\n var name = list[i];\n this.raiseRecoverable(this.undefinedExports[name].start, \"Export '\" + name + \"' is not defined\");\n }\n this.adaptDirectivePrologue(node.body);\n this.next();\n node.sourceType = this.options.sourceType;\n return this.finishNode(node, \"Program\");\n};\nvar $ebef8a20963d596b$var$loopLabel = {\n kind: \"loop\"\n}, $ebef8a20963d596b$var$switchLabel = {\n kind: \"switch\"\n};\n$ebef8a20963d596b$var$pp$8.isLet = function(context) {\n if (this.options.ecmaVersion < 6 || !this.isContextual(\"let\")) return false;\n $ebef8a20963d596b$var$skipWhiteSpace.lastIndex = this.pos;\n var skip = $ebef8a20963d596b$var$skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);\n // For ambiguous cases, determine if a LexicalDeclaration (or only a\n // Statement) is allowed here. If context is not empty then only a Statement\n // is allowed. However, `let [` is an explicit negative lookahead for\n // ExpressionStatement, so special-case it first.\n if (nextCh === 91 || nextCh === 92) return true;\n // '[', '\\'\n if (context) return false;\n if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) return true;\n // '{', astral\n if ($ebef8a20963d596b$export$56b48cc5d7560ffb(nextCh, true)) {\n var pos = next + 1;\n while($ebef8a20963d596b$export$332f4d7bee38db93(nextCh = this.input.charCodeAt(pos), true))++pos;\n if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) return true;\n var ident = this.input.slice(next, pos);\n if (!$ebef8a20963d596b$var$keywordRelationalOperator.test(ident)) return true;\n }\n return false;\n};\n// check 'async [no LineTerminator here] function'\n// - 'async /*foo*/ function' is OK.\n// - 'async /*\\n*/ function' is invalid.\n$ebef8a20963d596b$var$pp$8.isAsyncFunction = function() {\n if (this.options.ecmaVersion < 8 || !this.isContextual(\"async\")) return false;\n $ebef8a20963d596b$var$skipWhiteSpace.lastIndex = this.pos;\n var skip = $ebef8a20963d596b$var$skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, after;\n return !$ebef8a20963d596b$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.pos, next)) && this.input.slice(next, next + 8) === \"function\" && (next + 8 === this.input.length || !($ebef8a20963d596b$export$332f4d7bee38db93(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00));\n};\n// Parse a single statement.\n//\n// If expecting a statement and finding a slash operator, parse a\n// regular expression literal. This is to handle cases like\n// `if (foo) /blah/.exec(foo)`, where looking at the previous token\n// does not help.\n$ebef8a20963d596b$var$pp$8.parseStatement = function(context, topLevel, exports) {\n var starttype = this.type, node = this.startNode(), kind;\n if (this.isLet(context)) {\n starttype = $ebef8a20963d596b$export$b54c7ea7aabba5c8._var;\n kind = \"let\";\n }\n // Most types of statements are recognized by the keyword they\n // start with. Many are trivial to parse, some require a bit of\n // complexity.\n switch(starttype){\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._break:\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._continue:\n return this.parseBreakContinueStatement(node, starttype.keyword);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._debugger:\n return this.parseDebuggerStatement(node);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._do:\n return this.parseDoStatement(node);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._for:\n return this.parseForStatement(node);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._function:\n // Function as sole body of either an if statement or a labeled statement\n // works, but not when it is part of a labeled statement that is the sole\n // body of an if statement.\n if (context && (this.strict || context !== \"if\" && context !== \"label\") && this.options.ecmaVersion >= 6) this.unexpected();\n return this.parseFunctionStatement(node, false, !context);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._class:\n if (context) this.unexpected();\n return this.parseClass(node, true);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._if:\n return this.parseIfStatement(node);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._return:\n return this.parseReturnStatement(node);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._switch:\n return this.parseSwitchStatement(node);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._throw:\n return this.parseThrowStatement(node);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._try:\n return this.parseTryStatement(node);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._const:\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._var:\n kind = kind || this.value;\n if (context && kind !== \"var\") this.unexpected();\n return this.parseVarStatement(node, kind);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._while:\n return this.parseWhileStatement(node);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._with:\n return this.parseWithStatement(node);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL:\n return this.parseBlock(true, node);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8.semi:\n return this.parseEmptyStatement(node);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._export:\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._import:\n if (this.options.ecmaVersion > 10 && starttype === $ebef8a20963d596b$export$b54c7ea7aabba5c8._import) {\n $ebef8a20963d596b$var$skipWhiteSpace.lastIndex = this.pos;\n var skip = $ebef8a20963d596b$var$skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);\n if (nextCh === 40 || nextCh === 46) return this.parseExpressionStatement(node, this.parseExpression());\n }\n if (!this.options.allowImportExportEverywhere) {\n if (!topLevel) this.raise(this.start, \"'import' and 'export' may only appear at the top level\");\n if (!this.inModule) this.raise(this.start, \"'import' and 'export' may appear only with 'sourceType: module'\");\n }\n return starttype === $ebef8a20963d596b$export$b54c7ea7aabba5c8._import ? this.parseImport(node) : this.parseExport(node, exports);\n // If the statement does not start with a statement keyword or a\n // brace, it's an ExpressionStatement or LabeledStatement. We\n // simply start parsing an expression, and afterwards, if the\n // next token is a colon and the expression was a simple\n // Identifier node, we switch to interpreting it as a label.\n default:\n if (this.isAsyncFunction()) {\n if (context) this.unexpected();\n this.next();\n return this.parseFunctionStatement(node, true, !context);\n }\n var maybeName = this.value, expr = this.parseExpression();\n if (starttype === $ebef8a20963d596b$export$b54c7ea7aabba5c8.name && expr.type === \"Identifier\" && this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.colon)) return this.parseLabeledStatement(node, maybeName, expr, context);\n else return this.parseExpressionStatement(node, expr);\n }\n};\n$ebef8a20963d596b$var$pp$8.parseBreakContinueStatement = function(node, keyword) {\n var isBreak = keyword === \"break\";\n this.next();\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.semi) || this.insertSemicolon()) node.label = null;\n else if (this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.name) this.unexpected();\n else {\n node.label = this.parseIdent();\n this.semicolon();\n }\n // Verify that there is an actual destination to break or\n // continue to.\n var i = 0;\n for(; i < this.labels.length; ++i){\n var lab = this.labels[i];\n if (node.label == null || lab.name === node.label.name) {\n if (lab.kind != null && (isBreak || lab.kind === \"loop\")) break;\n if (node.label && isBreak) break;\n }\n }\n if (i === this.labels.length) this.raise(node.start, \"Unsyntactic \" + keyword);\n return this.finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\");\n};\n$ebef8a20963d596b$var$pp$8.parseDebuggerStatement = function(node) {\n this.next();\n this.semicolon();\n return this.finishNode(node, \"DebuggerStatement\");\n};\n$ebef8a20963d596b$var$pp$8.parseDoStatement = function(node) {\n this.next();\n this.labels.push($ebef8a20963d596b$var$loopLabel);\n node.body = this.parseStatement(\"do\");\n this.labels.pop();\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8._while);\n node.test = this.parseParenExpression();\n if (this.options.ecmaVersion >= 6) this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.semi);\n else this.semicolon();\n return this.finishNode(node, \"DoWhileStatement\");\n};\n// Disambiguating between a `for` and a `for`/`in` or `for`/`of`\n// loop is non-trivial. Basically, we have to parse the init `var`\n// statement or expression, disallowing the `in` operator (see\n// the second parameter to `parseExpression`), and then check\n// whether the next token is `in` or `of`. When there is no init\n// part (semicolon immediately after the opening parenthesis), it\n// is a regular `for` loop.\n$ebef8a20963d596b$var$pp$8.parseForStatement = function(node) {\n this.next();\n var awaitAt = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual(\"await\") ? this.lastTokStart : -1;\n this.labels.push($ebef8a20963d596b$var$loopLabel);\n this.enterScope(0);\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL);\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.semi) {\n if (awaitAt > -1) this.unexpected(awaitAt);\n return this.parseFor(node, null);\n }\n var isLet = this.isLet();\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._var || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._const || isLet) {\n var init$1 = this.startNode(), kind = isLet ? \"let\" : this.value;\n this.next();\n this.parseVar(init$1, true, kind);\n this.finishNode(init$1, \"VariableDeclaration\");\n if ((this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._in || this.options.ecmaVersion >= 6 && this.isContextual(\"of\")) && init$1.declarations.length === 1) {\n if (this.options.ecmaVersion >= 9) {\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._in) {\n if (awaitAt > -1) this.unexpected(awaitAt);\n } else node.await = awaitAt > -1;\n }\n return this.parseForIn(node, init$1);\n }\n if (awaitAt > -1) this.unexpected(awaitAt);\n return this.parseFor(node, init$1);\n }\n var startsWithLet = this.isContextual(\"let\"), isForOf = false;\n var containsEsc = this.containsEsc;\n var refDestructuringErrors = new $ebef8a20963d596b$var$DestructuringErrors;\n var initPos = this.start;\n var init = awaitAt > -1 ? this.parseExprSubscripts(refDestructuringErrors, \"await\") : this.parseExpression(true, refDestructuringErrors);\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) {\n if (awaitAt > -1) {\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._in) this.unexpected(awaitAt);\n node.await = true;\n } else if (isForOf && this.options.ecmaVersion >= 8) {\n if (init.start === initPos && !containsEsc && init.type === \"Identifier\" && init.name === \"async\") this.unexpected();\n else if (this.options.ecmaVersion >= 9) node.await = false;\n }\n if (startsWithLet && isForOf) this.raise(init.start, \"The left-hand side of a for-of loop may not start with 'let'.\");\n this.toAssignable(init, false, refDestructuringErrors);\n this.checkLValPattern(init);\n return this.parseForIn(node, init);\n } else this.checkExpressionErrors(refDestructuringErrors, true);\n if (awaitAt > -1) this.unexpected(awaitAt);\n return this.parseFor(node, init);\n};\n$ebef8a20963d596b$var$pp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) {\n this.next();\n return this.parseFunction(node, $ebef8a20963d596b$var$FUNC_STATEMENT | (declarationPosition ? 0 : $ebef8a20963d596b$var$FUNC_HANGING_STATEMENT), false, isAsync);\n};\n$ebef8a20963d596b$var$pp$8.parseIfStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n // allow function declarations in branches, but only in non-strict mode\n node.consequent = this.parseStatement(\"if\");\n node.alternate = this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8._else) ? this.parseStatement(\"if\") : null;\n return this.finishNode(node, \"IfStatement\");\n};\n$ebef8a20963d596b$var$pp$8.parseReturnStatement = function(node) {\n if (!this.inFunction && !this.options.allowReturnOutsideFunction) this.raise(this.start, \"'return' outside of function\");\n this.next();\n // In `return` (and `break`/`continue`), the keywords with\n // optional arguments, we eagerly look for a semicolon or the\n // possibility to insert one.\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.semi) || this.insertSemicolon()) node.argument = null;\n else {\n node.argument = this.parseExpression();\n this.semicolon();\n }\n return this.finishNode(node, \"ReturnStatement\");\n};\n$ebef8a20963d596b$var$pp$8.parseSwitchStatement = function(node) {\n this.next();\n node.discriminant = this.parseParenExpression();\n node.cases = [];\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL);\n this.labels.push($ebef8a20963d596b$var$switchLabel);\n this.enterScope(0);\n // Statements under must be grouped (by label) in SwitchCase\n // nodes. `cur` is used to keep the node that we are currently\n // adding statements to.\n var cur;\n for(var sawDefault = false; this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR;)if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._case || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._default) {\n var isCase = this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._case;\n if (cur) this.finishNode(cur, \"SwitchCase\");\n node.cases.push(cur = this.startNode());\n cur.consequent = [];\n this.next();\n if (isCase) cur.test = this.parseExpression();\n else {\n if (sawDefault) this.raiseRecoverable(this.lastTokStart, \"Multiple default clauses\");\n sawDefault = true;\n cur.test = null;\n }\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.colon);\n } else {\n if (!cur) this.unexpected();\n cur.consequent.push(this.parseStatement(null));\n }\n this.exitScope();\n if (cur) this.finishNode(cur, \"SwitchCase\");\n this.next(); // Closing brace\n this.labels.pop();\n return this.finishNode(node, \"SwitchStatement\");\n};\n$ebef8a20963d596b$var$pp$8.parseThrowStatement = function(node) {\n this.next();\n if ($ebef8a20963d596b$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start))) this.raise(this.lastTokEnd, \"Illegal newline after throw\");\n node.argument = this.parseExpression();\n this.semicolon();\n return this.finishNode(node, \"ThrowStatement\");\n};\n// Reused empty array added for node fields that are always empty.\nvar $ebef8a20963d596b$var$empty$1 = [];\n$ebef8a20963d596b$var$pp$8.parseCatchClauseParam = function() {\n var param = this.parseBindingAtom();\n var simple = param.type === \"Identifier\";\n this.enterScope(simple ? $ebef8a20963d596b$var$SCOPE_SIMPLE_CATCH : 0);\n this.checkLValPattern(param, simple ? $ebef8a20963d596b$var$BIND_SIMPLE_CATCH : $ebef8a20963d596b$var$BIND_LEXICAL);\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR);\n return param;\n};\n$ebef8a20963d596b$var$pp$8.parseTryStatement = function(node) {\n this.next();\n node.block = this.parseBlock();\n node.handler = null;\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._catch) {\n var clause = this.startNode();\n this.next();\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL)) clause.param = this.parseCatchClauseParam();\n else {\n if (this.options.ecmaVersion < 10) this.unexpected();\n clause.param = null;\n this.enterScope(0);\n }\n clause.body = this.parseBlock(false);\n this.exitScope();\n node.handler = this.finishNode(clause, \"CatchClause\");\n }\n node.finalizer = this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8._finally) ? this.parseBlock() : null;\n if (!node.handler && !node.finalizer) this.raise(node.start, \"Missing catch or finally clause\");\n return this.finishNode(node, \"TryStatement\");\n};\n$ebef8a20963d596b$var$pp$8.parseVarStatement = function(node, kind, allowMissingInitializer) {\n this.next();\n this.parseVar(node, false, kind, allowMissingInitializer);\n this.semicolon();\n return this.finishNode(node, \"VariableDeclaration\");\n};\n$ebef8a20963d596b$var$pp$8.parseWhileStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n this.labels.push($ebef8a20963d596b$var$loopLabel);\n node.body = this.parseStatement(\"while\");\n this.labels.pop();\n return this.finishNode(node, \"WhileStatement\");\n};\n$ebef8a20963d596b$var$pp$8.parseWithStatement = function(node) {\n if (this.strict) this.raise(this.start, \"'with' in strict mode\");\n this.next();\n node.object = this.parseParenExpression();\n node.body = this.parseStatement(\"with\");\n return this.finishNode(node, \"WithStatement\");\n};\n$ebef8a20963d596b$var$pp$8.parseEmptyStatement = function(node) {\n this.next();\n return this.finishNode(node, \"EmptyStatement\");\n};\n$ebef8a20963d596b$var$pp$8.parseLabeledStatement = function(node, maybeName, expr, context) {\n for(var i$1 = 0, list = this.labels; i$1 < list.length; i$1 += 1){\n var label = list[i$1];\n if (label.name === maybeName) this.raise(expr.start, \"Label '\" + maybeName + \"' is already declared\");\n }\n var kind = this.type.isLoop ? \"loop\" : this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._switch ? \"switch\" : null;\n for(var i = this.labels.length - 1; i >= 0; i--){\n var label$1 = this.labels[i];\n if (label$1.statementStart === node.start) {\n // Update information about previous labels on this node\n label$1.statementStart = this.start;\n label$1.kind = kind;\n } else break;\n }\n this.labels.push({\n name: maybeName,\n kind: kind,\n statementStart: this.start\n });\n node.body = this.parseStatement(context ? context.indexOf(\"label\") === -1 ? context + \"label\" : context : \"label\");\n this.labels.pop();\n node.label = expr;\n return this.finishNode(node, \"LabeledStatement\");\n};\n$ebef8a20963d596b$var$pp$8.parseExpressionStatement = function(node, expr) {\n node.expression = expr;\n this.semicolon();\n return this.finishNode(node, \"ExpressionStatement\");\n};\n// Parse a semicolon-enclosed block of statements, handling `\"use\n// strict\"` declarations when `allowStrict` is true (used for\n// function bodies).\n$ebef8a20963d596b$var$pp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) {\n if (createNewLexicalScope === void 0) createNewLexicalScope = true;\n if (node === void 0) node = this.startNode();\n node.body = [];\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL);\n if (createNewLexicalScope) this.enterScope(0);\n while(this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR){\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n if (exitStrict) this.strict = false;\n this.next();\n if (createNewLexicalScope) this.exitScope();\n return this.finishNode(node, \"BlockStatement\");\n};\n// Parse a regular `for` loop. The disambiguation code in\n// `parseStatement` will already have parsed the init statement or\n// expression.\n$ebef8a20963d596b$var$pp$8.parseFor = function(node, init) {\n node.init = init;\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.semi);\n node.test = this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.semi ? null : this.parseExpression();\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.semi);\n node.update = this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR ? null : this.parseExpression();\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR);\n node.body = this.parseStatement(\"for\");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node, \"ForStatement\");\n};\n// Parse a `for`/`in` and `for`/`of` loop, which are almost\n// same from parser's perspective.\n$ebef8a20963d596b$var$pp$8.parseForIn = function(node, init) {\n var isForIn = this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._in;\n this.next();\n if (init.type === \"VariableDeclaration\" && init.declarations[0].init != null && (!isForIn || this.options.ecmaVersion < 8 || this.strict || init.kind !== \"var\" || init.declarations[0].id.type !== \"Identifier\")) this.raise(init.start, (isForIn ? \"for-in\" : \"for-of\") + \" loop variable declaration may not have an initializer\");\n node.left = init;\n node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign();\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR);\n node.body = this.parseStatement(\"for\");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node, isForIn ? \"ForInStatement\" : \"ForOfStatement\");\n};\n// Parse a list of variable declarations.\n$ebef8a20963d596b$var$pp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {\n node.declarations = [];\n node.kind = kind;\n for(;;){\n var decl = this.startNode();\n this.parseVarId(decl, kind);\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.eq)) decl.init = this.parseMaybeAssign(isFor);\n else if (!allowMissingInitializer && kind === \"const\" && !(this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._in || this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) this.unexpected();\n else if (!allowMissingInitializer && decl.id.type !== \"Identifier\" && !(isFor && (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._in || this.isContextual(\"of\")))) this.raise(this.lastTokEnd, \"Complex binding patterns require an initialization value\");\n else decl.init = null;\n node.declarations.push(this.finishNode(decl, \"VariableDeclarator\"));\n if (!this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.comma)) break;\n }\n return node;\n};\n$ebef8a20963d596b$var$pp$8.parseVarId = function(decl, kind) {\n decl.id = this.parseBindingAtom();\n this.checkLValPattern(decl.id, kind === \"var\" ? $ebef8a20963d596b$var$BIND_VAR : $ebef8a20963d596b$var$BIND_LEXICAL, false);\n};\nvar $ebef8a20963d596b$var$FUNC_STATEMENT = 1, $ebef8a20963d596b$var$FUNC_HANGING_STATEMENT = 2, $ebef8a20963d596b$var$FUNC_NULLABLE_ID = 4;\n// Parse a function declaration or literal (depending on the\n// `statement & FUNC_STATEMENT`).\n// Remove `allowExpressionBody` for 7.0.0, as it is only called with false\n$ebef8a20963d596b$var$pp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) {\n this.initFunction(node);\n if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) {\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.star && statement & $ebef8a20963d596b$var$FUNC_HANGING_STATEMENT) this.unexpected();\n node.generator = this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.star);\n }\n if (this.options.ecmaVersion >= 8) node.async = !!isAsync;\n if (statement & $ebef8a20963d596b$var$FUNC_STATEMENT) {\n node.id = statement & $ebef8a20963d596b$var$FUNC_NULLABLE_ID && this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.name ? null : this.parseIdent();\n if (node.id && !(statement & $ebef8a20963d596b$var$FUNC_HANGING_STATEMENT)) this.checkLValSimple(node.id, this.strict || node.generator || node.async ? this.treatFunctionsAsVar ? $ebef8a20963d596b$var$BIND_VAR : $ebef8a20963d596b$var$BIND_LEXICAL : $ebef8a20963d596b$var$BIND_FUNCTION);\n }\n var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope($ebef8a20963d596b$var$functionFlags(node.async, node.generator));\n if (!(statement & $ebef8a20963d596b$var$FUNC_STATEMENT)) node.id = this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.name ? this.parseIdent() : null;\n this.parseFunctionParams(node);\n this.parseFunctionBody(node, allowExpressionBody, false, forInit);\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, statement & $ebef8a20963d596b$var$FUNC_STATEMENT ? \"FunctionDeclaration\" : \"FunctionExpression\");\n};\n$ebef8a20963d596b$var$pp$8.parseFunctionParams = function(node) {\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL);\n node.params = this.parseBindingList($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR, false, this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n};\n// Parse a class declaration or literal (depending on the\n// `isStatement` parameter).\n$ebef8a20963d596b$var$pp$8.parseClass = function(node, isStatement) {\n this.next();\n // ecma-262 14.6 Class Definitions\n // A class definition is always strict mode code.\n var oldStrict = this.strict;\n this.strict = true;\n this.parseClassId(node, isStatement);\n this.parseClassSuper(node);\n var privateNameMap = this.enterClassBody();\n var classBody = this.startNode();\n var hadConstructor = false;\n classBody.body = [];\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL);\n while(this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR){\n var element = this.parseClassElement(node.superClass !== null);\n if (element) {\n classBody.body.push(element);\n if (element.type === \"MethodDefinition\" && element.kind === \"constructor\") {\n if (hadConstructor) this.raiseRecoverable(element.start, \"Duplicate constructor in the same class\");\n hadConstructor = true;\n } else if (element.key && element.key.type === \"PrivateIdentifier\" && $ebef8a20963d596b$var$isPrivateNameConflicted(privateNameMap, element)) this.raiseRecoverable(element.key.start, \"Identifier '#\" + element.key.name + \"' has already been declared\");\n }\n }\n this.strict = oldStrict;\n this.next();\n node.body = this.finishNode(classBody, \"ClassBody\");\n this.exitClassBody();\n return this.finishNode(node, isStatement ? \"ClassDeclaration\" : \"ClassExpression\");\n};\n$ebef8a20963d596b$var$pp$8.parseClassElement = function(constructorAllowsSuper) {\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.semi)) return null;\n var ecmaVersion = this.options.ecmaVersion;\n var node = this.startNode();\n var keyName = \"\";\n var isGenerator = false;\n var isAsync = false;\n var kind = \"method\";\n var isStatic = false;\n if (this.eatContextual(\"static\")) {\n // Parse static init block\n if (ecmaVersion >= 13 && this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL)) {\n this.parseClassStaticBlock(node);\n return node;\n }\n if (this.isClassElementNameStart() || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.star) isStatic = true;\n else keyName = \"static\";\n }\n node.static = isStatic;\n if (!keyName && ecmaVersion >= 8 && this.eatContextual(\"async\")) {\n if ((this.isClassElementNameStart() || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.star) && !this.canInsertSemicolon()) isAsync = true;\n else keyName = \"async\";\n }\n if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.star)) isGenerator = true;\n if (!keyName && !isAsync && !isGenerator) {\n var lastValue = this.value;\n if (this.eatContextual(\"get\") || this.eatContextual(\"set\")) {\n if (this.isClassElementNameStart()) kind = lastValue;\n else keyName = lastValue;\n }\n }\n // Parse element name\n if (keyName) {\n // 'async', 'get', 'set', or 'static' were not a keyword contextually.\n // The last token is any of those. Make it the element name.\n node.computed = false;\n node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc);\n node.key.name = keyName;\n this.finishNode(node.key, \"Identifier\");\n } else this.parseClassElementName(node);\n // Parse element value\n if (ecmaVersion < 13 || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL || kind !== \"method\" || isGenerator || isAsync) {\n var isConstructor = !node.static && $ebef8a20963d596b$var$checkKeyName(node, \"constructor\");\n var allowsDirectSuper = isConstructor && constructorAllowsSuper;\n // Couldn't move this check into the 'parseClassMethod' method for backward compatibility.\n if (isConstructor && kind !== \"method\") this.raise(node.key.start, \"Constructor can't have get/set modifier\");\n node.kind = isConstructor ? \"constructor\" : kind;\n this.parseClassMethod(node, isGenerator, isAsync, allowsDirectSuper);\n } else this.parseClassField(node);\n return node;\n};\n$ebef8a20963d596b$var$pp$8.isClassElementNameStart = function() {\n return this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.name || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.privateId || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.num || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.string || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.bracketL || this.type.keyword;\n};\n$ebef8a20963d596b$var$pp$8.parseClassElementName = function(element) {\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.privateId) {\n if (this.value === \"constructor\") this.raise(this.start, \"Classes can't have an element named '#constructor'\");\n element.computed = false;\n element.key = this.parsePrivateIdent();\n } else this.parsePropertyName(element);\n};\n$ebef8a20963d596b$var$pp$8.parseClassMethod = function(method, isGenerator, isAsync, allowsDirectSuper) {\n // Check key and flags\n var key = method.key;\n if (method.kind === \"constructor\") {\n if (isGenerator) this.raise(key.start, \"Constructor can't be a generator\");\n if (isAsync) this.raise(key.start, \"Constructor can't be an async method\");\n } else if (method.static && $ebef8a20963d596b$var$checkKeyName(method, \"prototype\")) this.raise(key.start, \"Classes may not have a static property named prototype\");\n // Parse value\n var value = method.value = this.parseMethod(isGenerator, isAsync, allowsDirectSuper);\n // Check value\n if (method.kind === \"get\" && value.params.length !== 0) this.raiseRecoverable(value.start, \"getter should have no params\");\n if (method.kind === \"set\" && value.params.length !== 1) this.raiseRecoverable(value.start, \"setter should have exactly one param\");\n if (method.kind === \"set\" && value.params[0].type === \"RestElement\") this.raiseRecoverable(value.params[0].start, \"Setter cannot use rest params\");\n return this.finishNode(method, \"MethodDefinition\");\n};\n$ebef8a20963d596b$var$pp$8.parseClassField = function(field) {\n if ($ebef8a20963d596b$var$checkKeyName(field, \"constructor\")) this.raise(field.key.start, \"Classes can't have a field named 'constructor'\");\n else if (field.static && $ebef8a20963d596b$var$checkKeyName(field, \"prototype\")) this.raise(field.key.start, \"Classes can't have a static field named 'prototype'\");\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.eq)) {\n // To raise SyntaxError if 'arguments' exists in the initializer.\n var scope = this.currentThisScope();\n var inClassFieldInit = scope.inClassFieldInit;\n scope.inClassFieldInit = true;\n field.value = this.parseMaybeAssign();\n scope.inClassFieldInit = inClassFieldInit;\n } else field.value = null;\n this.semicolon();\n return this.finishNode(field, \"PropertyDefinition\");\n};\n$ebef8a20963d596b$var$pp$8.parseClassStaticBlock = function(node) {\n node.body = [];\n var oldLabels = this.labels;\n this.labels = [];\n this.enterScope($ebef8a20963d596b$var$SCOPE_CLASS_STATIC_BLOCK | $ebef8a20963d596b$var$SCOPE_SUPER);\n while(this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR){\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n this.next();\n this.exitScope();\n this.labels = oldLabels;\n return this.finishNode(node, \"StaticBlock\");\n};\n$ebef8a20963d596b$var$pp$8.parseClassId = function(node, isStatement) {\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.name) {\n node.id = this.parseIdent();\n if (isStatement) this.checkLValSimple(node.id, $ebef8a20963d596b$var$BIND_LEXICAL, false);\n } else {\n if (isStatement === true) this.unexpected();\n node.id = null;\n }\n};\n$ebef8a20963d596b$var$pp$8.parseClassSuper = function(node) {\n node.superClass = this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8._extends) ? this.parseExprSubscripts(null, false) : null;\n};\n$ebef8a20963d596b$var$pp$8.enterClassBody = function() {\n var element = {\n declared: Object.create(null),\n used: []\n };\n this.privateNameStack.push(element);\n return element.declared;\n};\n$ebef8a20963d596b$var$pp$8.exitClassBody = function() {\n var ref = this.privateNameStack.pop();\n var declared = ref.declared;\n var used = ref.used;\n if (!this.options.checkPrivateFields) return;\n var len = this.privateNameStack.length;\n var parent = len === 0 ? null : this.privateNameStack[len - 1];\n for(var i = 0; i < used.length; ++i){\n var id = used[i];\n if (!$ebef8a20963d596b$var$hasOwn(declared, id.name)) {\n if (parent) parent.used.push(id);\n else this.raiseRecoverable(id.start, \"Private field '#\" + id.name + \"' must be declared in an enclosing class\");\n }\n }\n};\nfunction $ebef8a20963d596b$var$isPrivateNameConflicted(privateNameMap, element) {\n var name = element.key.name;\n var curr = privateNameMap[name];\n var next = \"true\";\n if (element.type === \"MethodDefinition\" && (element.kind === \"get\" || element.kind === \"set\")) next = (element.static ? \"s\" : \"i\") + element.kind;\n // `class { get #a(){}; static set #a(_){} }` is also conflict.\n if (curr === \"iget\" && next === \"iset\" || curr === \"iset\" && next === \"iget\" || curr === \"sget\" && next === \"sset\" || curr === \"sset\" && next === \"sget\") {\n privateNameMap[name] = \"true\";\n return false;\n } else if (!curr) {\n privateNameMap[name] = next;\n return false;\n } else return true;\n}\nfunction $ebef8a20963d596b$var$checkKeyName(node, name) {\n var computed = node.computed;\n var key = node.key;\n return !computed && (key.type === \"Identifier\" && key.name === name || key.type === \"Literal\" && key.value === name);\n}\n// Parses module export declaration.\n$ebef8a20963d596b$var$pp$8.parseExportAllDeclaration = function(node, exports) {\n if (this.options.ecmaVersion >= 11) {\n if (this.eatContextual(\"as\")) {\n node.exported = this.parseModuleExportName();\n this.checkExport(exports, node.exported, this.lastTokStart);\n } else node.exported = null;\n }\n this.expectContextual(\"from\");\n if (this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.string) this.unexpected();\n node.source = this.parseExprAtom();\n this.semicolon();\n return this.finishNode(node, \"ExportAllDeclaration\");\n};\n$ebef8a20963d596b$var$pp$8.parseExport = function(node, exports) {\n this.next();\n // export * from '...'\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.star)) return this.parseExportAllDeclaration(node, exports);\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8._default)) {\n this.checkExport(exports, \"default\", this.lastTokStart);\n node.declaration = this.parseExportDefaultDeclaration();\n return this.finishNode(node, \"ExportDefaultDeclaration\");\n }\n // export var|const|let|function|class ...\n if (this.shouldParseExportStatement()) {\n node.declaration = this.parseExportDeclaration(node);\n if (node.declaration.type === \"VariableDeclaration\") this.checkVariableExport(exports, node.declaration.declarations);\n else this.checkExport(exports, node.declaration.id, node.declaration.id.start);\n node.specifiers = [];\n node.source = null;\n } else {\n node.declaration = null;\n node.specifiers = this.parseExportSpecifiers(exports);\n if (this.eatContextual(\"from\")) {\n if (this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.string) this.unexpected();\n node.source = this.parseExprAtom();\n } else {\n for(var i = 0, list = node.specifiers; i < list.length; i += 1){\n // check for keywords used as local names\n var spec = list[i];\n this.checkUnreserved(spec.local);\n // check if export is defined\n this.checkLocalExport(spec.local);\n if (spec.local.type === \"Literal\") this.raise(spec.local.start, \"A string literal cannot be used as an exported binding without `from`.\");\n }\n node.source = null;\n }\n this.semicolon();\n }\n return this.finishNode(node, \"ExportNamedDeclaration\");\n};\n$ebef8a20963d596b$var$pp$8.parseExportDeclaration = function(node) {\n return this.parseStatement(null);\n};\n$ebef8a20963d596b$var$pp$8.parseExportDefaultDeclaration = function() {\n var isAsync;\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._function || (isAsync = this.isAsyncFunction())) {\n var fNode = this.startNode();\n this.next();\n if (isAsync) this.next();\n return this.parseFunction(fNode, $ebef8a20963d596b$var$FUNC_STATEMENT | $ebef8a20963d596b$var$FUNC_NULLABLE_ID, false, isAsync);\n } else if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._class) {\n var cNode = this.startNode();\n return this.parseClass(cNode, \"nullableID\");\n } else {\n var declaration = this.parseMaybeAssign();\n this.semicolon();\n return declaration;\n }\n};\n$ebef8a20963d596b$var$pp$8.checkExport = function(exports, name, pos) {\n if (!exports) return;\n if (typeof name !== \"string\") name = name.type === \"Identifier\" ? name.name : name.value;\n if ($ebef8a20963d596b$var$hasOwn(exports, name)) this.raiseRecoverable(pos, \"Duplicate export '\" + name + \"'\");\n exports[name] = true;\n};\n$ebef8a20963d596b$var$pp$8.checkPatternExport = function(exports, pat) {\n var type = pat.type;\n if (type === \"Identifier\") this.checkExport(exports, pat, pat.start);\n else if (type === \"ObjectPattern\") for(var i = 0, list = pat.properties; i < list.length; i += 1){\n var prop = list[i];\n this.checkPatternExport(exports, prop);\n }\n else if (type === \"ArrayPattern\") for(var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1){\n var elt = list$1[i$1];\n if (elt) this.checkPatternExport(exports, elt);\n }\n else if (type === \"Property\") this.checkPatternExport(exports, pat.value);\n else if (type === \"AssignmentPattern\") this.checkPatternExport(exports, pat.left);\n else if (type === \"RestElement\") this.checkPatternExport(exports, pat.argument);\n};\n$ebef8a20963d596b$var$pp$8.checkVariableExport = function(exports, decls) {\n if (!exports) return;\n for(var i = 0, list = decls; i < list.length; i += 1){\n var decl = list[i];\n this.checkPatternExport(exports, decl.id);\n }\n};\n$ebef8a20963d596b$var$pp$8.shouldParseExportStatement = function() {\n return this.type.keyword === \"var\" || this.type.keyword === \"const\" || this.type.keyword === \"class\" || this.type.keyword === \"function\" || this.isLet() || this.isAsyncFunction();\n};\n// Parses a comma-separated list of module exports.\n$ebef8a20963d596b$var$pp$8.parseExportSpecifier = function(exports) {\n var node = this.startNode();\n node.local = this.parseModuleExportName();\n node.exported = this.eatContextual(\"as\") ? this.parseModuleExportName() : node.local;\n this.checkExport(exports, node.exported, node.exported.start);\n return this.finishNode(node, \"ExportSpecifier\");\n};\n$ebef8a20963d596b$var$pp$8.parseExportSpecifiers = function(exports) {\n var nodes = [], first = true;\n // export { x, y as z } [from '...']\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL);\n while(!this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR)){\n if (!first) {\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.comma);\n if (this.afterTrailingComma($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR)) break;\n } else first = false;\n nodes.push(this.parseExportSpecifier(exports));\n }\n return nodes;\n};\n// Parses import declaration.\n$ebef8a20963d596b$var$pp$8.parseImport = function(node) {\n this.next();\n // import '...'\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.string) {\n node.specifiers = $ebef8a20963d596b$var$empty$1;\n node.source = this.parseExprAtom();\n } else {\n node.specifiers = this.parseImportSpecifiers();\n this.expectContextual(\"from\");\n node.source = this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.string ? this.parseExprAtom() : this.unexpected();\n }\n this.semicolon();\n return this.finishNode(node, \"ImportDeclaration\");\n};\n// Parses a comma-separated list of module imports.\n$ebef8a20963d596b$var$pp$8.parseImportSpecifier = function() {\n var node = this.startNode();\n node.imported = this.parseModuleExportName();\n if (this.eatContextual(\"as\")) node.local = this.parseIdent();\n else {\n this.checkUnreserved(node.imported);\n node.local = node.imported;\n }\n this.checkLValSimple(node.local, $ebef8a20963d596b$var$BIND_LEXICAL);\n return this.finishNode(node, \"ImportSpecifier\");\n};\n$ebef8a20963d596b$var$pp$8.parseImportDefaultSpecifier = function() {\n // import defaultObj, { x, y as z } from '...'\n var node = this.startNode();\n node.local = this.parseIdent();\n this.checkLValSimple(node.local, $ebef8a20963d596b$var$BIND_LEXICAL);\n return this.finishNode(node, \"ImportDefaultSpecifier\");\n};\n$ebef8a20963d596b$var$pp$8.parseImportNamespaceSpecifier = function() {\n var node = this.startNode();\n this.next();\n this.expectContextual(\"as\");\n node.local = this.parseIdent();\n this.checkLValSimple(node.local, $ebef8a20963d596b$var$BIND_LEXICAL);\n return this.finishNode(node, \"ImportNamespaceSpecifier\");\n};\n$ebef8a20963d596b$var$pp$8.parseImportSpecifiers = function() {\n var nodes = [], first = true;\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.name) {\n nodes.push(this.parseImportDefaultSpecifier());\n if (!this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.comma)) return nodes;\n }\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.star) {\n nodes.push(this.parseImportNamespaceSpecifier());\n return nodes;\n }\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL);\n while(!this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR)){\n if (!first) {\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.comma);\n if (this.afterTrailingComma($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR)) break;\n } else first = false;\n nodes.push(this.parseImportSpecifier());\n }\n return nodes;\n};\n$ebef8a20963d596b$var$pp$8.parseModuleExportName = function() {\n if (this.options.ecmaVersion >= 13 && this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.string) {\n var stringLiteral = this.parseLiteral(this.value);\n if ($ebef8a20963d596b$var$loneSurrogate.test(stringLiteral.value)) this.raise(stringLiteral.start, \"An export name cannot include a lone surrogate.\");\n return stringLiteral;\n }\n return this.parseIdent(true);\n};\n// Set `ExpressionStatement#directive` property for directive prologues.\n$ebef8a20963d596b$var$pp$8.adaptDirectivePrologue = function(statements) {\n for(var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i)statements[i].directive = statements[i].expression.raw.slice(1, -1);\n};\n$ebef8a20963d596b$var$pp$8.isDirectiveCandidate = function(statement) {\n return this.options.ecmaVersion >= 5 && statement.type === \"ExpressionStatement\" && statement.expression.type === \"Literal\" && typeof statement.expression.value === \"string\" && // Reject parenthesized strings.\n (this.input[statement.start] === '\"' || this.input[statement.start] === \"'\");\n};\nvar $ebef8a20963d596b$var$pp$7 = $ebef8a20963d596b$export$7acfa6ed01010e37.prototype;\n// Convert existing expression atom to assignable pattern\n// if possible.\n$ebef8a20963d596b$var$pp$7.toAssignable = function(node, isBinding, refDestructuringErrors) {\n if (this.options.ecmaVersion >= 6 && node) switch(node.type){\n case \"Identifier\":\n if (this.inAsync && node.name === \"await\") this.raise(node.start, \"Cannot use 'await' as identifier inside an async function\");\n break;\n case \"ObjectPattern\":\n case \"ArrayPattern\":\n case \"AssignmentPattern\":\n case \"RestElement\":\n break;\n case \"ObjectExpression\":\n node.type = \"ObjectPattern\";\n if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true);\n for(var i = 0, list = node.properties; i < list.length; i += 1){\n var prop = list[i];\n this.toAssignable(prop, isBinding);\n // Early error:\n // AssignmentRestProperty[Yield, Await] :\n // `...` DestructuringAssignmentTarget[Yield, Await]\n //\n // It is a Syntax Error if |DestructuringAssignmentTarget| is an |ArrayLiteral| or an |ObjectLiteral|.\n if (prop.type === \"RestElement\" && (prop.argument.type === \"ArrayPattern\" || prop.argument.type === \"ObjectPattern\")) this.raise(prop.argument.start, \"Unexpected token\");\n }\n break;\n case \"Property\":\n // AssignmentProperty has type === \"Property\"\n if (node.kind !== \"init\") this.raise(node.key.start, \"Object pattern can't contain getter or setter\");\n this.toAssignable(node.value, isBinding);\n break;\n case \"ArrayExpression\":\n node.type = \"ArrayPattern\";\n if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true);\n this.toAssignableList(node.elements, isBinding);\n break;\n case \"SpreadElement\":\n node.type = \"RestElement\";\n this.toAssignable(node.argument, isBinding);\n if (node.argument.type === \"AssignmentPattern\") this.raise(node.argument.start, \"Rest elements cannot have a default value\");\n break;\n case \"AssignmentExpression\":\n if (node.operator !== \"=\") this.raise(node.left.end, \"Only '=' operator can be used for specifying default value.\");\n node.type = \"AssignmentPattern\";\n delete node.operator;\n this.toAssignable(node.left, isBinding);\n break;\n case \"ParenthesizedExpression\":\n this.toAssignable(node.expression, isBinding, refDestructuringErrors);\n break;\n case \"ChainExpression\":\n this.raiseRecoverable(node.start, \"Optional chaining cannot appear in left-hand side\");\n break;\n case \"MemberExpression\":\n if (!isBinding) break;\n default:\n this.raise(node.start, \"Assigning to rvalue\");\n }\n else if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true);\n return node;\n};\n// Convert list of expression atoms to binding list.\n$ebef8a20963d596b$var$pp$7.toAssignableList = function(exprList, isBinding) {\n var end = exprList.length;\n for(var i = 0; i < end; i++){\n var elt = exprList[i];\n if (elt) this.toAssignable(elt, isBinding);\n }\n if (end) {\n var last = exprList[end - 1];\n if (this.options.ecmaVersion === 6 && isBinding && last && last.type === \"RestElement\" && last.argument.type !== \"Identifier\") this.unexpected(last.argument.start);\n }\n return exprList;\n};\n// Parses spread element.\n$ebef8a20963d596b$var$pp$7.parseSpread = function(refDestructuringErrors) {\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeAssign(false, refDestructuringErrors);\n return this.finishNode(node, \"SpreadElement\");\n};\n$ebef8a20963d596b$var$pp$7.parseRestBinding = function() {\n var node = this.startNode();\n this.next();\n // RestElement inside of a function parameter must be an identifier\n if (this.options.ecmaVersion === 6 && this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.name) this.unexpected();\n node.argument = this.parseBindingAtom();\n return this.finishNode(node, \"RestElement\");\n};\n// Parses lvalue (assignable) atom.\n$ebef8a20963d596b$var$pp$7.parseBindingAtom = function() {\n if (this.options.ecmaVersion >= 6) switch(this.type){\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8.bracketL:\n var node = this.startNode();\n this.next();\n node.elements = this.parseBindingList($ebef8a20963d596b$export$b54c7ea7aabba5c8.bracketR, true, true);\n return this.finishNode(node, \"ArrayPattern\");\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL:\n return this.parseObj(true);\n }\n return this.parseIdent();\n};\n$ebef8a20963d596b$var$pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {\n var elts = [], first = true;\n while(!this.eat(close)){\n if (first) first = false;\n else this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.comma);\n if (allowEmpty && this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.comma) elts.push(null);\n else if (allowTrailingComma && this.afterTrailingComma(close)) break;\n else if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.ellipsis) {\n var rest = this.parseRestBinding();\n this.parseBindingListItem(rest);\n elts.push(rest);\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.comma) this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\");\n this.expect(close);\n break;\n } else elts.push(this.parseAssignableListItem(allowModifiers));\n }\n return elts;\n};\n$ebef8a20963d596b$var$pp$7.parseAssignableListItem = function(allowModifiers) {\n var elem = this.parseMaybeDefault(this.start, this.startLoc);\n this.parseBindingListItem(elem);\n return elem;\n};\n$ebef8a20963d596b$var$pp$7.parseBindingListItem = function(param) {\n return param;\n};\n// Parses assignment pattern around given atom if possible.\n$ebef8a20963d596b$var$pp$7.parseMaybeDefault = function(startPos, startLoc, left) {\n left = left || this.parseBindingAtom();\n if (this.options.ecmaVersion < 6 || !this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.eq)) return left;\n var node = this.startNodeAt(startPos, startLoc);\n node.left = left;\n node.right = this.parseMaybeAssign();\n return this.finishNode(node, \"AssignmentPattern\");\n};\n// The following three functions all verify that a node is an lvalue —\n// something that can be bound, or assigned to. In order to do so, they perform\n// a variety of checks:\n//\n// - Check that none of the bound/assigned-to identifiers are reserved words.\n// - Record name declarations for bindings in the appropriate scope.\n// - Check duplicate argument names, if checkClashes is set.\n//\n// If a complex binding pattern is encountered (e.g., object and array\n// destructuring), the entire pattern is recursively checked.\n//\n// There are three versions of checkLVal*() appropriate for different\n// circumstances:\n//\n// - checkLValSimple() shall be used if the syntactic construct supports\n// nothing other than identifiers and member expressions. Parenthesized\n// expressions are also correctly handled. This is generally appropriate for\n// constructs for which the spec says\n//\n// > It is a Syntax Error if AssignmentTargetType of [the production] is not\n// > simple.\n//\n// It is also appropriate for checking if an identifier is valid and not\n// defined elsewhere, like import declarations or function/class identifiers.\n//\n// Examples where this is used include:\n// a += …;\n// import a from '…';\n// where a is the node to be checked.\n//\n// - checkLValPattern() shall be used if the syntactic construct supports\n// anything checkLValSimple() supports, as well as object and array\n// destructuring patterns. This is generally appropriate for constructs for\n// which the spec says\n//\n// > It is a Syntax Error if [the production] is neither an ObjectLiteral nor\n// > an ArrayLiteral and AssignmentTargetType of [the production] is not\n// > simple.\n//\n// Examples where this is used include:\n// (a = …);\n// const a = …;\n// try { … } catch (a) { … }\n// where a is the node to be checked.\n//\n// - checkLValInnerPattern() shall be used if the syntactic construct supports\n// anything checkLValPattern() supports, as well as default assignment\n// patterns, rest elements, and other constructs that may appear within an\n// object or array destructuring pattern.\n//\n// As a special case, function parameters also use checkLValInnerPattern(),\n// as they also support defaults and rest constructs.\n//\n// These functions deliberately support both assignment and binding constructs,\n// as the logic for both is exceedingly similar. If the node is the target of\n// an assignment, then bindingType should be set to BIND_NONE. Otherwise, it\n// should be set to the appropriate BIND_* constant, like BIND_VAR or\n// BIND_LEXICAL.\n//\n// If the function is called with a non-BIND_NONE bindingType, then\n// additionally a checkClashes object may be specified to allow checking for\n// duplicate argument names. checkClashes is ignored if the provided construct\n// is an assignment (i.e., bindingType is BIND_NONE).\n$ebef8a20963d596b$var$pp$7.checkLValSimple = function(expr, bindingType, checkClashes) {\n if (bindingType === void 0) bindingType = $ebef8a20963d596b$var$BIND_NONE;\n var isBind = bindingType !== $ebef8a20963d596b$var$BIND_NONE;\n switch(expr.type){\n case \"Identifier\":\n if (this.strict && this.reservedWordsStrictBind.test(expr.name)) this.raiseRecoverable(expr.start, (isBind ? \"Binding \" : \"Assigning to \") + expr.name + \" in strict mode\");\n if (isBind) {\n if (bindingType === $ebef8a20963d596b$var$BIND_LEXICAL && expr.name === \"let\") this.raiseRecoverable(expr.start, \"let is disallowed as a lexically bound name\");\n if (checkClashes) {\n if ($ebef8a20963d596b$var$hasOwn(checkClashes, expr.name)) this.raiseRecoverable(expr.start, \"Argument name clash\");\n checkClashes[expr.name] = true;\n }\n if (bindingType !== $ebef8a20963d596b$var$BIND_OUTSIDE) this.declareName(expr.name, bindingType, expr.start);\n }\n break;\n case \"ChainExpression\":\n this.raiseRecoverable(expr.start, \"Optional chaining cannot appear in left-hand side\");\n break;\n case \"MemberExpression\":\n if (isBind) this.raiseRecoverable(expr.start, \"Binding member expression\");\n break;\n case \"ParenthesizedExpression\":\n if (isBind) this.raiseRecoverable(expr.start, \"Binding parenthesized expression\");\n return this.checkLValSimple(expr.expression, bindingType, checkClashes);\n default:\n this.raise(expr.start, (isBind ? \"Binding\" : \"Assigning to\") + \" rvalue\");\n }\n};\n$ebef8a20963d596b$var$pp$7.checkLValPattern = function(expr, bindingType, checkClashes) {\n if (bindingType === void 0) bindingType = $ebef8a20963d596b$var$BIND_NONE;\n switch(expr.type){\n case \"ObjectPattern\":\n for(var i = 0, list = expr.properties; i < list.length; i += 1){\n var prop = list[i];\n this.checkLValInnerPattern(prop, bindingType, checkClashes);\n }\n break;\n case \"ArrayPattern\":\n for(var i$1 = 0, list$1 = expr.elements; i$1 < list$1.length; i$1 += 1){\n var elem = list$1[i$1];\n if (elem) this.checkLValInnerPattern(elem, bindingType, checkClashes);\n }\n break;\n default:\n this.checkLValSimple(expr, bindingType, checkClashes);\n }\n};\n$ebef8a20963d596b$var$pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {\n if (bindingType === void 0) bindingType = $ebef8a20963d596b$var$BIND_NONE;\n switch(expr.type){\n case \"Property\":\n // AssignmentProperty has type === \"Property\"\n this.checkLValInnerPattern(expr.value, bindingType, checkClashes);\n break;\n case \"AssignmentPattern\":\n this.checkLValPattern(expr.left, bindingType, checkClashes);\n break;\n case \"RestElement\":\n this.checkLValPattern(expr.argument, bindingType, checkClashes);\n break;\n default:\n this.checkLValPattern(expr, bindingType, checkClashes);\n }\n};\n// The algorithm used to determine whether a regexp can appear at a\n// given point in the program is loosely based on sweet.js' approach.\n// See https://github.com/mozilla/sweet.js/wiki/design\nvar $ebef8a20963d596b$export$68e7b4c4d99215d9 = function TokContext(token, isExpr, preserveSpace, override, generator) {\n this.token = token;\n this.isExpr = !!isExpr;\n this.preserveSpace = !!preserveSpace;\n this.override = override;\n this.generator = !!generator;\n};\nvar $ebef8a20963d596b$export$2b5f701edfbd6f00 = {\n b_stat: new $ebef8a20963d596b$export$68e7b4c4d99215d9(\"{\", false),\n b_expr: new $ebef8a20963d596b$export$68e7b4c4d99215d9(\"{\", true),\n b_tmpl: new $ebef8a20963d596b$export$68e7b4c4d99215d9(\"${\", false),\n p_stat: new $ebef8a20963d596b$export$68e7b4c4d99215d9(\"(\", false),\n p_expr: new $ebef8a20963d596b$export$68e7b4c4d99215d9(\"(\", true),\n q_tmpl: new $ebef8a20963d596b$export$68e7b4c4d99215d9(\"`\", true, true, function(p) {\n return p.tryReadTemplateToken();\n }),\n f_stat: new $ebef8a20963d596b$export$68e7b4c4d99215d9(\"function\", false),\n f_expr: new $ebef8a20963d596b$export$68e7b4c4d99215d9(\"function\", true),\n f_expr_gen: new $ebef8a20963d596b$export$68e7b4c4d99215d9(\"function\", true, false, null, true),\n f_gen: new $ebef8a20963d596b$export$68e7b4c4d99215d9(\"function\", false, false, null, true)\n};\nvar $ebef8a20963d596b$var$pp$6 = $ebef8a20963d596b$export$7acfa6ed01010e37.prototype;\n$ebef8a20963d596b$var$pp$6.initialContext = function() {\n return [\n $ebef8a20963d596b$export$2b5f701edfbd6f00.b_stat\n ];\n};\n$ebef8a20963d596b$var$pp$6.curContext = function() {\n return this.context[this.context.length - 1];\n};\n$ebef8a20963d596b$var$pp$6.braceIsBlock = function(prevType) {\n var parent = this.curContext();\n if (parent === $ebef8a20963d596b$export$2b5f701edfbd6f00.f_expr || parent === $ebef8a20963d596b$export$2b5f701edfbd6f00.f_stat) return true;\n if (prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8.colon && (parent === $ebef8a20963d596b$export$2b5f701edfbd6f00.b_stat || parent === $ebef8a20963d596b$export$2b5f701edfbd6f00.b_expr)) return !parent.isExpr;\n // The check for `tt.name && exprAllowed` detects whether we are\n // after a `yield` or `of` construct. See the `updateContext` for\n // `tt.name`.\n if (prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8._return || prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8.name && this.exprAllowed) return $ebef8a20963d596b$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start));\n if (prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8._else || prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8.semi || prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8.eof || prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR || prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8.arrow) return true;\n if (prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL) return parent === $ebef8a20963d596b$export$2b5f701edfbd6f00.b_stat;\n if (prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8._var || prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8._const || prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8.name) return false;\n return !this.exprAllowed;\n};\n$ebef8a20963d596b$var$pp$6.inGeneratorContext = function() {\n for(var i = this.context.length - 1; i >= 1; i--){\n var context = this.context[i];\n if (context.token === \"function\") return context.generator;\n }\n return false;\n};\n$ebef8a20963d596b$var$pp$6.updateContext = function(prevType) {\n var update, type = this.type;\n if (type.keyword && prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8.dot) this.exprAllowed = false;\n else if (update = type.updateContext) update.call(this, prevType);\n else this.exprAllowed = type.beforeExpr;\n};\n// Used to handle edge cases when token context could not be inferred correctly during tokenization phase\n$ebef8a20963d596b$var$pp$6.overrideContext = function(tokenCtx) {\n if (this.curContext() !== tokenCtx) this.context[this.context.length - 1] = tokenCtx;\n};\n// Token-specific context update code\n$ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR.updateContext = $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR.updateContext = function() {\n if (this.context.length === 1) {\n this.exprAllowed = true;\n return;\n }\n var out = this.context.pop();\n if (out === $ebef8a20963d596b$export$2b5f701edfbd6f00.b_stat && this.curContext().token === \"function\") out = this.context.pop();\n this.exprAllowed = !out.isExpr;\n};\n$ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL.updateContext = function(prevType) {\n this.context.push(this.braceIsBlock(prevType) ? $ebef8a20963d596b$export$2b5f701edfbd6f00.b_stat : $ebef8a20963d596b$export$2b5f701edfbd6f00.b_expr);\n this.exprAllowed = true;\n};\n$ebef8a20963d596b$export$b54c7ea7aabba5c8.dollarBraceL.updateContext = function() {\n this.context.push($ebef8a20963d596b$export$2b5f701edfbd6f00.b_tmpl);\n this.exprAllowed = true;\n};\n$ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL.updateContext = function(prevType) {\n var statementParens = prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8._if || prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8._for || prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8._with || prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8._while;\n this.context.push(statementParens ? $ebef8a20963d596b$export$2b5f701edfbd6f00.p_stat : $ebef8a20963d596b$export$2b5f701edfbd6f00.p_expr);\n this.exprAllowed = true;\n};\n$ebef8a20963d596b$export$b54c7ea7aabba5c8.incDec.updateContext = function() {\n// tokExprAllowed stays unchanged\n};\n$ebef8a20963d596b$export$b54c7ea7aabba5c8._function.updateContext = $ebef8a20963d596b$export$b54c7ea7aabba5c8._class.updateContext = function(prevType) {\n if (prevType.beforeExpr && prevType !== $ebef8a20963d596b$export$b54c7ea7aabba5c8._else && !(prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8.semi && this.curContext() !== $ebef8a20963d596b$export$2b5f701edfbd6f00.p_stat) && !(prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8._return && $ebef8a20963d596b$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start))) && !((prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8.colon || prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL) && this.curContext() === $ebef8a20963d596b$export$2b5f701edfbd6f00.b_stat)) this.context.push($ebef8a20963d596b$export$2b5f701edfbd6f00.f_expr);\n else this.context.push($ebef8a20963d596b$export$2b5f701edfbd6f00.f_stat);\n this.exprAllowed = false;\n};\n$ebef8a20963d596b$export$b54c7ea7aabba5c8.colon.updateContext = function() {\n if (this.curContext().token === \"function\") this.context.pop();\n this.exprAllowed = true;\n};\n$ebef8a20963d596b$export$b54c7ea7aabba5c8.backQuote.updateContext = function() {\n if (this.curContext() === $ebef8a20963d596b$export$2b5f701edfbd6f00.q_tmpl) this.context.pop();\n else this.context.push($ebef8a20963d596b$export$2b5f701edfbd6f00.q_tmpl);\n this.exprAllowed = false;\n};\n$ebef8a20963d596b$export$b54c7ea7aabba5c8.star.updateContext = function(prevType) {\n if (prevType === $ebef8a20963d596b$export$b54c7ea7aabba5c8._function) {\n var index = this.context.length - 1;\n if (this.context[index] === $ebef8a20963d596b$export$2b5f701edfbd6f00.f_expr) this.context[index] = $ebef8a20963d596b$export$2b5f701edfbd6f00.f_expr_gen;\n else this.context[index] = $ebef8a20963d596b$export$2b5f701edfbd6f00.f_gen;\n }\n this.exprAllowed = true;\n};\n$ebef8a20963d596b$export$b54c7ea7aabba5c8.name.updateContext = function(prevType) {\n var allowed = false;\n if (this.options.ecmaVersion >= 6 && prevType !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.dot) {\n if (this.value === \"of\" && !this.exprAllowed || this.value === \"yield\" && this.inGeneratorContext()) allowed = true;\n }\n this.exprAllowed = allowed;\n};\n// A recursive descent parser operates by defining functions for all\n// syntactic elements, and recursively calling those, each function\n// advancing the input stream and returning an AST node. Precedence\n// of constructs (for example, the fact that `!x[1]` means `!(x[1])`\n// instead of `(!x)[1]` is handled by the fact that the parser\n// function that parses unary prefix operators is called first, and\n// in turn calls the function that parses `[]` subscripts — that\n// way, it'll receive the node for `x[1]` already parsed, and wraps\n// *that* in the unary operator node.\n//\n// Acorn uses an [operator precedence parser][opp] to handle binary\n// operator precedence, because it is much more compact than using\n// the technique outlined above, which uses different, nesting\n// functions to specify precedence, for all of the ten binary\n// precedence levels that JavaScript defines.\n//\n// [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser\nvar $ebef8a20963d596b$var$pp$5 = $ebef8a20963d596b$export$7acfa6ed01010e37.prototype;\n// Check if property name clashes with already added.\n// Object/class getters and setters are not allowed to clash —\n// either with each other or with an init property — and in\n// strict mode, init properties are also not allowed to be repeated.\n$ebef8a20963d596b$var$pp$5.checkPropClash = function(prop, propHash, refDestructuringErrors) {\n if (this.options.ecmaVersion >= 9 && prop.type === \"SpreadElement\") return;\n if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand)) return;\n var key = prop.key;\n var name;\n switch(key.type){\n case \"Identifier\":\n name = key.name;\n break;\n case \"Literal\":\n name = String(key.value);\n break;\n default:\n return;\n }\n var kind = prop.kind;\n if (this.options.ecmaVersion >= 6) {\n if (name === \"__proto__\" && kind === \"init\") {\n if (propHash.proto) {\n if (refDestructuringErrors) {\n if (refDestructuringErrors.doubleProto < 0) refDestructuringErrors.doubleProto = key.start;\n } else this.raiseRecoverable(key.start, \"Redefinition of __proto__ property\");\n }\n propHash.proto = true;\n }\n return;\n }\n name = \"$\" + name;\n var other = propHash[name];\n if (other) {\n var redefinition;\n if (kind === \"init\") redefinition = this.strict && other.init || other.get || other.set;\n else redefinition = other.init || other[kind];\n if (redefinition) this.raiseRecoverable(key.start, \"Redefinition of property\");\n } else other = propHash[name] = {\n init: false,\n get: false,\n set: false\n };\n other[kind] = true;\n};\n// ### Expression parsing\n// These nest, from the most general expression type at the top to\n// 'atomic', nondivisible expression types at the bottom. Most of\n// the functions will simply let the function(s) below them parse,\n// and, *if* the syntactic construct they handle is present, wrap\n// the AST node that the inner parser gave them in another node.\n// Parse a full expression. The optional arguments are used to\n// forbid the `in` operator (in for loops initalization expressions)\n// and provide reference for storing '=' operator inside shorthand\n// property assignment in contexts where both object expression\n// and object pattern might appear (so it's possible to raise\n// delayed syntax error at correct position).\n$ebef8a20963d596b$var$pp$5.parseExpression = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseMaybeAssign(forInit, refDestructuringErrors);\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.comma) {\n var node = this.startNodeAt(startPos, startLoc);\n node.expressions = [\n expr\n ];\n while(this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.comma))node.expressions.push(this.parseMaybeAssign(forInit, refDestructuringErrors));\n return this.finishNode(node, \"SequenceExpression\");\n }\n return expr;\n};\n// Parse an assignment expression. This includes applications of\n// operators like `+=`.\n$ebef8a20963d596b$var$pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {\n if (this.isContextual(\"yield\")) {\n if (this.inGenerator) return this.parseYield(forInit);\n else this.exprAllowed = false;\n }\n var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1;\n if (refDestructuringErrors) {\n oldParenAssign = refDestructuringErrors.parenthesizedAssign;\n oldTrailingComma = refDestructuringErrors.trailingComma;\n oldDoubleProto = refDestructuringErrors.doubleProto;\n refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1;\n } else {\n refDestructuringErrors = new $ebef8a20963d596b$var$DestructuringErrors;\n ownDestructuringErrors = true;\n }\n var startPos = this.start, startLoc = this.startLoc;\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.name) {\n this.potentialArrowAt = this.start;\n this.potentialArrowInForAwait = forInit === \"await\";\n }\n var left = this.parseMaybeConditional(forInit, refDestructuringErrors);\n if (afterLeftParse) left = afterLeftParse.call(this, left, startPos, startLoc);\n if (this.type.isAssign) {\n var node = this.startNodeAt(startPos, startLoc);\n node.operator = this.value;\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.eq) left = this.toAssignable(left, false, refDestructuringErrors);\n if (!ownDestructuringErrors) refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1;\n if (refDestructuringErrors.shorthandAssign >= left.start) refDestructuringErrors.shorthandAssign = -1;\n // reset because shorthand default was used correctly\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.eq) this.checkLValPattern(left);\n else this.checkLValSimple(left);\n node.left = left;\n this.next();\n node.right = this.parseMaybeAssign(forInit);\n if (oldDoubleProto > -1) refDestructuringErrors.doubleProto = oldDoubleProto;\n return this.finishNode(node, \"AssignmentExpression\");\n } else if (ownDestructuringErrors) this.checkExpressionErrors(refDestructuringErrors, true);\n if (oldParenAssign > -1) refDestructuringErrors.parenthesizedAssign = oldParenAssign;\n if (oldTrailingComma > -1) refDestructuringErrors.trailingComma = oldTrailingComma;\n return left;\n};\n// Parse a ternary conditional (`?:`) operator.\n$ebef8a20963d596b$var$pp$5.parseMaybeConditional = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseExprOps(forInit, refDestructuringErrors);\n if (this.checkExpressionErrors(refDestructuringErrors)) return expr;\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.question)) {\n var node = this.startNodeAt(startPos, startLoc);\n node.test = expr;\n node.consequent = this.parseMaybeAssign();\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.colon);\n node.alternate = this.parseMaybeAssign(forInit);\n return this.finishNode(node, \"ConditionalExpression\");\n }\n return expr;\n};\n// Start the precedence parser.\n$ebef8a20963d596b$var$pp$5.parseExprOps = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseMaybeUnary(refDestructuringErrors, false, false, forInit);\n if (this.checkExpressionErrors(refDestructuringErrors)) return expr;\n return expr.start === startPos && expr.type === \"ArrowFunctionExpression\" ? expr : this.parseExprOp(expr, startPos, startLoc, -1, forInit);\n};\n// Parse binary operators with the operator precedence parsing\n// algorithm. `left` is the left-hand side of the operator.\n// `minPrec` provides context that allows the function to stop and\n// defer further parser to one of its callers when it encounters an\n// operator that has a lower precedence than the set it is parsing.\n$ebef8a20963d596b$var$pp$5.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) {\n var prec = this.type.binop;\n if (prec != null && (!forInit || this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8._in)) {\n if (prec > minPrec) {\n var logical = this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.logicalOR || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.logicalAND;\n var coalesce = this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.coalesce;\n if (coalesce) // Handle the precedence of `tt.coalesce` as equal to the range of logical expressions.\n // In other words, `node.right` shouldn't contain logical expressions in order to check the mixed error.\n prec = $ebef8a20963d596b$export$b54c7ea7aabba5c8.logicalAND.binop;\n var op = this.value;\n this.next();\n var startPos = this.start, startLoc = this.startLoc;\n var right = this.parseExprOp(this.parseMaybeUnary(null, false, false, forInit), startPos, startLoc, prec, forInit);\n var node = this.buildBinary(leftStartPos, leftStartLoc, left, right, op, logical || coalesce);\n if (logical && this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.coalesce || coalesce && (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.logicalOR || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.logicalAND)) this.raiseRecoverable(this.start, \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses\");\n return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, forInit);\n }\n }\n return left;\n};\n$ebef8a20963d596b$var$pp$5.buildBinary = function(startPos, startLoc, left, right, op, logical) {\n if (right.type === \"PrivateIdentifier\") this.raise(right.start, \"Private identifier can only be left side of binary expression\");\n var node = this.startNodeAt(startPos, startLoc);\n node.left = left;\n node.operator = op;\n node.right = right;\n return this.finishNode(node, logical ? \"LogicalExpression\" : \"BinaryExpression\");\n};\n// Parse unary operators, both prefix and postfix.\n$ebef8a20963d596b$var$pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) {\n var startPos = this.start, startLoc = this.startLoc, expr;\n if (this.isContextual(\"await\") && this.canAwait) {\n expr = this.parseAwait(forInit);\n sawUnary = true;\n } else if (this.type.prefix) {\n var node = this.startNode(), update = this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.incDec;\n node.operator = this.value;\n node.prefix = true;\n this.next();\n node.argument = this.parseMaybeUnary(null, true, update, forInit);\n this.checkExpressionErrors(refDestructuringErrors, true);\n if (update) this.checkLValSimple(node.argument);\n else if (this.strict && node.operator === \"delete\" && $ebef8a20963d596b$var$isLocalVariableAccess(node.argument)) this.raiseRecoverable(node.start, \"Deleting local variable in strict mode\");\n else if (node.operator === \"delete\" && $ebef8a20963d596b$var$isPrivateFieldAccess(node.argument)) this.raiseRecoverable(node.start, \"Private fields can not be deleted\");\n else sawUnary = true;\n expr = this.finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\");\n } else if (!sawUnary && this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.privateId) {\n if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) this.unexpected();\n expr = this.parsePrivateIdent();\n // only could be private fields in 'in', such as #x in obj\n if (this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8._in) this.unexpected();\n } else {\n expr = this.parseExprSubscripts(refDestructuringErrors, forInit);\n if (this.checkExpressionErrors(refDestructuringErrors)) return expr;\n while(this.type.postfix && !this.canInsertSemicolon()){\n var node$1 = this.startNodeAt(startPos, startLoc);\n node$1.operator = this.value;\n node$1.prefix = false;\n node$1.argument = expr;\n this.checkLValSimple(expr);\n this.next();\n expr = this.finishNode(node$1, \"UpdateExpression\");\n }\n }\n if (!incDec && this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.starstar)) {\n if (sawUnary) this.unexpected(this.lastTokStart);\n else return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), \"**\", false);\n } else return expr;\n};\nfunction $ebef8a20963d596b$var$isLocalVariableAccess(node) {\n return node.type === \"Identifier\" || node.type === \"ParenthesizedExpression\" && $ebef8a20963d596b$var$isLocalVariableAccess(node.expression);\n}\nfunction $ebef8a20963d596b$var$isPrivateFieldAccess(node) {\n return node.type === \"MemberExpression\" && node.property.type === \"PrivateIdentifier\" || node.type === \"ChainExpression\" && $ebef8a20963d596b$var$isPrivateFieldAccess(node.expression) || node.type === \"ParenthesizedExpression\" && $ebef8a20963d596b$var$isPrivateFieldAccess(node.expression);\n}\n// Parse call, dot, and `[]`-subscript expressions.\n$ebef8a20963d596b$var$pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseExprAtom(refDestructuringErrors, forInit);\n if (expr.type === \"ArrowFunctionExpression\" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== \")\") return expr;\n var result = this.parseSubscripts(expr, startPos, startLoc, false, forInit);\n if (refDestructuringErrors && result.type === \"MemberExpression\") {\n if (refDestructuringErrors.parenthesizedAssign >= result.start) refDestructuringErrors.parenthesizedAssign = -1;\n if (refDestructuringErrors.parenthesizedBind >= result.start) refDestructuringErrors.parenthesizedBind = -1;\n if (refDestructuringErrors.trailingComma >= result.start) refDestructuringErrors.trailingComma = -1;\n }\n return result;\n};\n$ebef8a20963d596b$var$pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {\n var maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === \"Identifier\" && base.name === \"async\" && this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 && this.potentialArrowAt === base.start;\n var optionalChained = false;\n while(true){\n var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit);\n if (element.optional) optionalChained = true;\n if (element === base || element.type === \"ArrowFunctionExpression\") {\n if (optionalChained) {\n var chainNode = this.startNodeAt(startPos, startLoc);\n chainNode.expression = element;\n element = this.finishNode(chainNode, \"ChainExpression\");\n }\n return element;\n }\n base = element;\n }\n};\n$ebef8a20963d596b$var$pp$5.shouldParseAsyncArrow = function() {\n return !this.canInsertSemicolon() && this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.arrow);\n};\n$ebef8a20963d596b$var$pp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit);\n};\n$ebef8a20963d596b$var$pp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {\n var optionalSupported = this.options.ecmaVersion >= 11;\n var optional = optionalSupported && this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.questionDot);\n if (noCalls && optional) this.raise(this.lastTokStart, \"Optional chaining cannot appear in the callee of new expressions\");\n var computed = this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.bracketL);\n if (computed || optional && this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL && this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.backQuote || this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.dot)) {\n var node = this.startNodeAt(startPos, startLoc);\n node.object = base;\n if (computed) {\n node.property = this.parseExpression();\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.bracketR);\n } else if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.privateId && base.type !== \"Super\") node.property = this.parsePrivateIdent();\n else node.property = this.parseIdent(this.options.allowReserved !== \"never\");\n node.computed = !!computed;\n if (optionalSupported) node.optional = optional;\n base = this.finishNode(node, \"MemberExpression\");\n } else if (!noCalls && this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL)) {\n var refDestructuringErrors = new $ebef8a20963d596b$var$DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n var exprList = this.parseExprList($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);\n if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {\n this.checkPatternErrors(refDestructuringErrors, false);\n this.checkYieldAwaitInDefaultParams();\n if (this.awaitIdentPos > 0) this.raise(this.awaitIdentPos, \"Cannot use 'await' as identifier inside an async function\");\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit);\n }\n this.checkExpressionErrors(refDestructuringErrors, true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n this.awaitIdentPos = oldAwaitIdentPos || this.awaitIdentPos;\n var node$1 = this.startNodeAt(startPos, startLoc);\n node$1.callee = base;\n node$1.arguments = exprList;\n if (optionalSupported) node$1.optional = optional;\n base = this.finishNode(node$1, \"CallExpression\");\n } else if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.backQuote) {\n if (optional || optionalChained) this.raise(this.start, \"Optional chaining cannot appear in the tag of tagged template expressions\");\n var node$2 = this.startNodeAt(startPos, startLoc);\n node$2.tag = base;\n node$2.quasi = this.parseTemplate({\n isTagged: true\n });\n base = this.finishNode(node$2, \"TaggedTemplateExpression\");\n }\n return base;\n};\n// Parse an atomic expression — either a single token that is an\n// expression, an expression started by a keyword like `function` or\n// `new`, or an expression wrapped in punctuation like `()`, `[]`,\n// or `{}`.\n$ebef8a20963d596b$var$pp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {\n // If a division operator appears in an expression position, the\n // tokenizer got confused, and we force it to read a regexp instead.\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.slash) this.readRegexp();\n var node, canBeArrow = this.potentialArrowAt === this.start;\n switch(this.type){\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._super:\n if (!this.allowSuper) this.raise(this.start, \"'super' keyword outside a method\");\n node = this.startNode();\n this.next();\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL && !this.allowDirectSuper) this.raise(node.start, \"super() call outside constructor of a subclass\");\n // The `super` keyword can appear at below:\n // SuperProperty:\n // super [ Expression ]\n // super . IdentifierName\n // SuperCall:\n // super ( Arguments )\n if (this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.dot && this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.bracketL && this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL) this.unexpected();\n return this.finishNode(node, \"Super\");\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._this:\n node = this.startNode();\n this.next();\n return this.finishNode(node, \"ThisExpression\");\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8.name:\n var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc;\n var id = this.parseIdent(false);\n if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === \"async\" && !this.canInsertSemicolon() && this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8._function)) {\n this.overrideContext($ebef8a20963d596b$export$2b5f701edfbd6f00.f_expr);\n return this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit);\n }\n if (canBeArrow && !this.canInsertSemicolon()) {\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.arrow)) return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [\n id\n ], false, forInit);\n if (this.options.ecmaVersion >= 8 && id.name === \"async\" && this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.name && !containsEsc && (!this.potentialArrowInForAwait || this.value !== \"of\" || this.containsEsc)) {\n id = this.parseIdent(false);\n if (this.canInsertSemicolon() || !this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.arrow)) this.unexpected();\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [\n id\n ], true, forInit);\n }\n }\n return id;\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8.regexp:\n var value = this.value;\n node = this.parseLiteral(value.value);\n node.regex = {\n pattern: value.pattern,\n flags: value.flags\n };\n return node;\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8.num:\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8.string:\n return this.parseLiteral(this.value);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._null:\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._true:\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._false:\n node = this.startNode();\n node.value = this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._null ? null : this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8._true;\n node.raw = this.type.keyword;\n this.next();\n return this.finishNode(node, \"Literal\");\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL:\n var start = this.start, expr = this.parseParenAndDistinguishExpression(canBeArrow, forInit);\n if (refDestructuringErrors) {\n if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr)) refDestructuringErrors.parenthesizedAssign = start;\n if (refDestructuringErrors.parenthesizedBind < 0) refDestructuringErrors.parenthesizedBind = start;\n }\n return expr;\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8.bracketL:\n node = this.startNode();\n this.next();\n node.elements = this.parseExprList($ebef8a20963d596b$export$b54c7ea7aabba5c8.bracketR, true, true, refDestructuringErrors);\n return this.finishNode(node, \"ArrayExpression\");\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL:\n this.overrideContext($ebef8a20963d596b$export$2b5f701edfbd6f00.b_expr);\n return this.parseObj(false, refDestructuringErrors);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._function:\n node = this.startNode();\n this.next();\n return this.parseFunction(node, 0);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._class:\n return this.parseClass(this.startNode(), false);\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._new:\n return this.parseNew();\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8.backQuote:\n return this.parseTemplate();\n case $ebef8a20963d596b$export$b54c7ea7aabba5c8._import:\n if (this.options.ecmaVersion >= 11) return this.parseExprImport(forNew);\n else return this.unexpected();\n default:\n return this.parseExprAtomDefault();\n }\n};\n$ebef8a20963d596b$var$pp$5.parseExprAtomDefault = function() {\n this.unexpected();\n};\n$ebef8a20963d596b$var$pp$5.parseExprImport = function(forNew) {\n var node = this.startNode();\n // Consume `import` as an identifier for `import.meta`.\n // Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.\n if (this.containsEsc) this.raiseRecoverable(this.start, \"Escape sequence in keyword import\");\n this.next();\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL && !forNew) return this.parseDynamicImport(node);\n else if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.dot) {\n var meta = this.startNodeAt(node.start, node.loc && node.loc.start);\n meta.name = \"import\";\n node.meta = this.finishNode(meta, \"Identifier\");\n return this.parseImportMeta(node);\n } else this.unexpected();\n};\n$ebef8a20963d596b$var$pp$5.parseDynamicImport = function(node) {\n this.next(); // skip `(`\n // Parse node.source.\n node.source = this.parseMaybeAssign();\n // Verify ending.\n if (!this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR)) {\n var errorPos = this.start;\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.comma) && this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR)) this.raiseRecoverable(errorPos, \"Trailing comma is not allowed in import()\");\n else this.unexpected(errorPos);\n }\n return this.finishNode(node, \"ImportExpression\");\n};\n$ebef8a20963d596b$var$pp$5.parseImportMeta = function(node) {\n this.next(); // skip `.`\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n if (node.property.name !== \"meta\") this.raiseRecoverable(node.property.start, \"The only valid meta property for import is 'import.meta'\");\n if (containsEsc) this.raiseRecoverable(node.start, \"'import.meta' must not contain escaped characters\");\n if (this.options.sourceType !== \"module\" && !this.options.allowImportExportEverywhere) this.raiseRecoverable(node.start, \"Cannot use 'import.meta' outside a module\");\n return this.finishNode(node, \"MetaProperty\");\n};\n$ebef8a20963d596b$var$pp$5.parseLiteral = function(value) {\n var node = this.startNode();\n node.value = value;\n node.raw = this.input.slice(this.start, this.end);\n if (node.raw.charCodeAt(node.raw.length - 1) === 110) node.bigint = node.raw.slice(0, -1).replace(/_/g, \"\");\n this.next();\n return this.finishNode(node, \"Literal\");\n};\n$ebef8a20963d596b$var$pp$5.parseParenExpression = function() {\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL);\n var val = this.parseExpression();\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR);\n return val;\n};\n$ebef8a20963d596b$var$pp$5.shouldParseArrow = function(exprList) {\n return !this.canInsertSemicolon();\n};\n$ebef8a20963d596b$var$pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {\n var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;\n if (this.options.ecmaVersion >= 6) {\n this.next();\n var innerStartPos = this.start, innerStartLoc = this.startLoc;\n var exprList = [], first = true, lastIsComma = false;\n var refDestructuringErrors = new $ebef8a20963d596b$var$DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart;\n this.yieldPos = 0;\n this.awaitPos = 0;\n // Do not save awaitIdentPos to allow checking awaits nested in parameters\n while(this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR){\n first ? first = false : this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.comma);\n if (allowTrailingComma && this.afterTrailingComma($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR, true)) {\n lastIsComma = true;\n break;\n } else if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.ellipsis) {\n spreadStart = this.start;\n exprList.push(this.parseParenItem(this.parseRestBinding()));\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.comma) this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\");\n break;\n } else exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem));\n }\n var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR);\n if (canBeArrow && this.shouldParseArrow(exprList) && this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.arrow)) {\n this.checkPatternErrors(refDestructuringErrors, false);\n this.checkYieldAwaitInDefaultParams();\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n return this.parseParenArrowList(startPos, startLoc, exprList, forInit);\n }\n if (!exprList.length || lastIsComma) this.unexpected(this.lastTokStart);\n if (spreadStart) this.unexpected(spreadStart);\n this.checkExpressionErrors(refDestructuringErrors, true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n if (exprList.length > 1) {\n val = this.startNodeAt(innerStartPos, innerStartLoc);\n val.expressions = exprList;\n this.finishNodeAt(val, \"SequenceExpression\", innerEndPos, innerEndLoc);\n } else val = exprList[0];\n } else val = this.parseParenExpression();\n if (this.options.preserveParens) {\n var par = this.startNodeAt(startPos, startLoc);\n par.expression = val;\n return this.finishNode(par, \"ParenthesizedExpression\");\n } else return val;\n};\n$ebef8a20963d596b$var$pp$5.parseParenItem = function(item) {\n return item;\n};\n$ebef8a20963d596b$var$pp$5.parseParenArrowList = function(startPos, startLoc, exprList, forInit) {\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, false, forInit);\n};\n// New's precedence is slightly tricky. It must allow its argument to\n// be a `[]` or dot subscript expression, but not a call — at least,\n// not without wrapping it in parentheses. Thus, it uses the noCalls\n// argument to parseSubscripts to prevent it from consuming the\n// argument list.\nvar $ebef8a20963d596b$var$empty = [];\n$ebef8a20963d596b$var$pp$5.parseNew = function() {\n if (this.containsEsc) this.raiseRecoverable(this.start, \"Escape sequence in keyword new\");\n var node = this.startNode();\n this.next();\n if (this.options.ecmaVersion >= 6 && this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.dot) {\n var meta = this.startNodeAt(node.start, node.loc && node.loc.start);\n meta.name = \"new\";\n node.meta = this.finishNode(meta, \"Identifier\");\n this.next();\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n if (node.property.name !== \"target\") this.raiseRecoverable(node.property.start, \"The only valid meta property for new is 'new.target'\");\n if (containsEsc) this.raiseRecoverable(node.start, \"'new.target' must not contain escaped characters\");\n if (!this.allowNewDotTarget) this.raiseRecoverable(node.start, \"'new.target' can only be used in functions and class static block\");\n return this.finishNode(node, \"MetaProperty\");\n }\n var startPos = this.start, startLoc = this.startLoc;\n node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL)) node.arguments = this.parseExprList($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR, this.options.ecmaVersion >= 8, false);\n else node.arguments = $ebef8a20963d596b$var$empty;\n return this.finishNode(node, \"NewExpression\");\n};\n// Parse template expression.\n$ebef8a20963d596b$var$pp$5.parseTemplateElement = function(ref) {\n var isTagged = ref.isTagged;\n var elem = this.startNode();\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.invalidTemplate) {\n if (!isTagged) this.raiseRecoverable(this.start, \"Bad escape sequence in untagged template literal\");\n elem.value = {\n raw: this.value.replace(/\\r\\n?/g, \"\\n\"),\n cooked: null\n };\n } else elem.value = {\n raw: this.input.slice(this.start, this.end).replace(/\\r\\n?/g, \"\\n\"),\n cooked: this.value\n };\n this.next();\n elem.tail = this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.backQuote;\n return this.finishNode(elem, \"TemplateElement\");\n};\n$ebef8a20963d596b$var$pp$5.parseTemplate = function(ref) {\n if (ref === void 0) ref = {};\n var isTagged = ref.isTagged;\n if (isTagged === void 0) isTagged = false;\n var node = this.startNode();\n this.next();\n node.expressions = [];\n var curElt = this.parseTemplateElement({\n isTagged: isTagged\n });\n node.quasis = [\n curElt\n ];\n while(!curElt.tail){\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.eof) this.raise(this.pos, \"Unterminated template literal\");\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.dollarBraceL);\n node.expressions.push(this.parseExpression());\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR);\n node.quasis.push(curElt = this.parseTemplateElement({\n isTagged: isTagged\n }));\n }\n this.next();\n return this.finishNode(node, \"TemplateLiteral\");\n};\n$ebef8a20963d596b$var$pp$5.isAsyncProp = function(prop) {\n return !prop.computed && prop.key.type === \"Identifier\" && prop.key.name === \"async\" && (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.name || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.num || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.string || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.star) && !$ebef8a20963d596b$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start));\n};\n// Parse an object literal or binding pattern.\n$ebef8a20963d596b$var$pp$5.parseObj = function(isPattern, refDestructuringErrors) {\n var node = this.startNode(), first = true, propHash = {};\n node.properties = [];\n this.next();\n while(!this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR)){\n if (!first) {\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.comma);\n if (this.options.ecmaVersion >= 5 && this.afterTrailingComma($ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR)) break;\n } else first = false;\n var prop = this.parseProperty(isPattern, refDestructuringErrors);\n if (!isPattern) this.checkPropClash(prop, propHash, refDestructuringErrors);\n node.properties.push(prop);\n }\n return this.finishNode(node, isPattern ? \"ObjectPattern\" : \"ObjectExpression\");\n};\n$ebef8a20963d596b$var$pp$5.parseProperty = function(isPattern, refDestructuringErrors) {\n var prop = this.startNode(), isGenerator, isAsync, startPos, startLoc;\n if (this.options.ecmaVersion >= 9 && this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.ellipsis)) {\n if (isPattern) {\n prop.argument = this.parseIdent(false);\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.comma) this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\");\n return this.finishNode(prop, \"RestElement\");\n }\n // Parse argument.\n prop.argument = this.parseMaybeAssign(false, refDestructuringErrors);\n // To disallow trailing comma via `this.toAssignable()`.\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.comma && refDestructuringErrors && refDestructuringErrors.trailingComma < 0) refDestructuringErrors.trailingComma = this.start;\n // Finish\n return this.finishNode(prop, \"SpreadElement\");\n }\n if (this.options.ecmaVersion >= 6) {\n prop.method = false;\n prop.shorthand = false;\n if (isPattern || refDestructuringErrors) {\n startPos = this.start;\n startLoc = this.startLoc;\n }\n if (!isPattern) isGenerator = this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.star);\n }\n var containsEsc = this.containsEsc;\n this.parsePropertyName(prop);\n if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {\n isAsync = true;\n isGenerator = this.options.ecmaVersion >= 9 && this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.star);\n this.parsePropertyName(prop);\n } else isAsync = false;\n this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);\n return this.finishNode(prop, \"Property\");\n};\n$ebef8a20963d596b$var$pp$5.parseGetterSetter = function(prop) {\n prop.kind = prop.key.name;\n this.parsePropertyName(prop);\n prop.value = this.parseMethod(false);\n var paramCount = prop.kind === \"get\" ? 0 : 1;\n if (prop.value.params.length !== paramCount) {\n var start = prop.value.start;\n if (prop.kind === \"get\") this.raiseRecoverable(start, \"getter should have no params\");\n else this.raiseRecoverable(start, \"setter should have exactly one param\");\n } else if (prop.kind === \"set\" && prop.value.params[0].type === \"RestElement\") this.raiseRecoverable(prop.value.params[0].start, \"Setter cannot use rest params\");\n};\n$ebef8a20963d596b$var$pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {\n if ((isGenerator || isAsync) && this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.colon) this.unexpected();\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.colon)) {\n prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors);\n prop.kind = \"init\";\n } else if (this.options.ecmaVersion >= 6 && this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL) {\n if (isPattern) this.unexpected();\n prop.kind = \"init\";\n prop.method = true;\n prop.value = this.parseMethod(isGenerator, isAsync);\n } else if (!isPattern && !containsEsc && this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === \"Identifier\" && (prop.key.name === \"get\" || prop.key.name === \"set\") && this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.comma && this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceR && this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.eq) {\n if (isGenerator || isAsync) this.unexpected();\n this.parseGetterSetter(prop);\n } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === \"Identifier\") {\n if (isGenerator || isAsync) this.unexpected();\n this.checkUnreserved(prop.key);\n if (prop.key.name === \"await\" && !this.awaitIdentPos) this.awaitIdentPos = startPos;\n prop.kind = \"init\";\n if (isPattern) prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));\n else if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.eq && refDestructuringErrors) {\n if (refDestructuringErrors.shorthandAssign < 0) refDestructuringErrors.shorthandAssign = this.start;\n prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));\n } else prop.value = this.copyNode(prop.key);\n prop.shorthand = true;\n } else this.unexpected();\n};\n$ebef8a20963d596b$var$pp$5.parsePropertyName = function(prop) {\n if (this.options.ecmaVersion >= 6) {\n if (this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.bracketL)) {\n prop.computed = true;\n prop.key = this.parseMaybeAssign();\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.bracketR);\n return prop.key;\n } else prop.computed = false;\n }\n return prop.key = this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.num || this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== \"never\");\n};\n// Initialize empty function node.\n$ebef8a20963d596b$var$pp$5.initFunction = function(node) {\n node.id = null;\n if (this.options.ecmaVersion >= 6) node.generator = node.expression = false;\n if (this.options.ecmaVersion >= 8) node.async = false;\n};\n// Parse object or class method.\n$ebef8a20963d596b$var$pp$5.parseMethod = function(isGenerator, isAsync, allowDirectSuper) {\n var node = this.startNode(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.initFunction(node);\n if (this.options.ecmaVersion >= 6) node.generator = isGenerator;\n if (this.options.ecmaVersion >= 8) node.async = !!isAsync;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope($ebef8a20963d596b$var$functionFlags(isAsync, node.generator) | $ebef8a20963d596b$var$SCOPE_SUPER | (allowDirectSuper ? $ebef8a20963d596b$var$SCOPE_DIRECT_SUPER : 0));\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenL);\n node.params = this.parseBindingList($ebef8a20963d596b$export$b54c7ea7aabba5c8.parenR, false, this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n this.parseFunctionBody(node, false, true, false);\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, \"FunctionExpression\");\n};\n// Parse arrow function expression with given parameters.\n$ebef8a20963d596b$var$pp$5.parseArrowExpression = function(node, params, isAsync, forInit) {\n var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.enterScope($ebef8a20963d596b$var$functionFlags(isAsync, false) | $ebef8a20963d596b$var$SCOPE_ARROW);\n this.initFunction(node);\n if (this.options.ecmaVersion >= 8) node.async = !!isAsync;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n node.params = this.toAssignableList(params, true);\n this.parseFunctionBody(node, true, false, forInit);\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, \"ArrowFunctionExpression\");\n};\n// Parse function body and check parameters.\n$ebef8a20963d596b$var$pp$5.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) {\n var isExpression = isArrowFunction && this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.braceL;\n var oldStrict = this.strict, useStrict = false;\n if (isExpression) {\n node.body = this.parseMaybeAssign(forInit);\n node.expression = true;\n this.checkParams(node, false);\n } else {\n var nonSimple = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(node.params);\n if (!oldStrict || nonSimple) {\n useStrict = this.strictDirective(this.end);\n // If this is a strict mode function, verify that argument names\n // are not repeated, and it does not try to bind the words `eval`\n // or `arguments`.\n if (useStrict && nonSimple) this.raiseRecoverable(node.start, \"Illegal 'use strict' directive in function with non-simple parameter list\");\n }\n // Start a new scope with regard to labels and the `inFunction`\n // flag (restore them to their old value afterwards).\n var oldLabels = this.labels;\n this.labels = [];\n if (useStrict) this.strict = true;\n // Add the params to varDeclaredNames to ensure that an error is thrown\n // if a let/const declaration in the function clashes with one of the params.\n this.checkParams(node, !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params));\n // Ensure the function name isn't a forbidden identifier in strict mode, e.g. 'eval'\n if (this.strict && node.id) this.checkLValSimple(node.id, $ebef8a20963d596b$var$BIND_OUTSIDE);\n node.body = this.parseBlock(false, undefined, useStrict && !oldStrict);\n node.expression = false;\n this.adaptDirectivePrologue(node.body.body);\n this.labels = oldLabels;\n }\n this.exitScope();\n};\n$ebef8a20963d596b$var$pp$5.isSimpleParamList = function(params) {\n for(var i = 0, list = params; i < list.length; i += 1){\n var param = list[i];\n if (param.type !== \"Identifier\") return false;\n }\n return true;\n};\n// Checks function params for various disallowed patterns such as using \"eval\"\n// or \"arguments\" and duplicate parameters.\n$ebef8a20963d596b$var$pp$5.checkParams = function(node, allowDuplicates) {\n var nameHash = Object.create(null);\n for(var i = 0, list = node.params; i < list.length; i += 1){\n var param = list[i];\n this.checkLValInnerPattern(param, $ebef8a20963d596b$var$BIND_VAR, allowDuplicates ? null : nameHash);\n }\n};\n// Parses a comma-separated list of expressions, and returns them as\n// an array. `close` is the token type that ends the list, and\n// `allowEmpty` can be turned on to allow subsequent commas with\n// nothing in between them to be parsed as `null` (which is needed\n// for array literals).\n$ebef8a20963d596b$var$pp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) {\n var elts = [], first = true;\n while(!this.eat(close)){\n if (!first) {\n this.expect($ebef8a20963d596b$export$b54c7ea7aabba5c8.comma);\n if (allowTrailingComma && this.afterTrailingComma(close)) break;\n } else first = false;\n var elt = void 0;\n if (allowEmpty && this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.comma) elt = null;\n else if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.ellipsis) {\n elt = this.parseSpread(refDestructuringErrors);\n if (refDestructuringErrors && this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.comma && refDestructuringErrors.trailingComma < 0) refDestructuringErrors.trailingComma = this.start;\n } else elt = this.parseMaybeAssign(false, refDestructuringErrors);\n elts.push(elt);\n }\n return elts;\n};\n$ebef8a20963d596b$var$pp$5.checkUnreserved = function(ref) {\n var start = ref.start;\n var end = ref.end;\n var name = ref.name;\n if (this.inGenerator && name === \"yield\") this.raiseRecoverable(start, \"Cannot use 'yield' as identifier inside a generator\");\n if (this.inAsync && name === \"await\") this.raiseRecoverable(start, \"Cannot use 'await' as identifier inside an async function\");\n if (this.currentThisScope().inClassFieldInit && name === \"arguments\") this.raiseRecoverable(start, \"Cannot use 'arguments' in class field initializer\");\n if (this.inClassStaticBlock && (name === \"arguments\" || name === \"await\")) this.raise(start, \"Cannot use \" + name + \" in class static initialization block\");\n if (this.keywords.test(name)) this.raise(start, \"Unexpected keyword '\" + name + \"'\");\n if (this.options.ecmaVersion < 6 && this.input.slice(start, end).indexOf(\"\\\\\") !== -1) return;\n var re = this.strict ? this.reservedWordsStrict : this.reservedWords;\n if (re.test(name)) {\n if (!this.inAsync && name === \"await\") this.raiseRecoverable(start, \"Cannot use keyword 'await' outside an async function\");\n this.raiseRecoverable(start, \"The keyword '\" + name + \"' is reserved\");\n }\n};\n// Parse the next token as an identifier. If `liberal` is true (used\n// when parsing properties), it will also convert keywords into\n// identifiers.\n$ebef8a20963d596b$var$pp$5.parseIdent = function(liberal) {\n var node = this.parseIdentNode();\n this.next(!!liberal);\n this.finishNode(node, \"Identifier\");\n if (!liberal) {\n this.checkUnreserved(node);\n if (node.name === \"await\" && !this.awaitIdentPos) this.awaitIdentPos = node.start;\n }\n return node;\n};\n$ebef8a20963d596b$var$pp$5.parseIdentNode = function() {\n var node = this.startNode();\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.name) node.name = this.value;\n else if (this.type.keyword) {\n node.name = this.type.keyword;\n // To fix https://github.com/acornjs/acorn/issues/575\n // `class` and `function` keywords push new context into this.context.\n // But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name.\n // If the previous token is a dot, this does not apply because the context-managing code already ignored the keyword\n if ((node.name === \"class\" || node.name === \"function\") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) this.context.pop();\n this.type = $ebef8a20963d596b$export$b54c7ea7aabba5c8.name;\n } else this.unexpected();\n return node;\n};\n$ebef8a20963d596b$var$pp$5.parsePrivateIdent = function() {\n var node = this.startNode();\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.privateId) node.name = this.value;\n else this.unexpected();\n this.next();\n this.finishNode(node, \"PrivateIdentifier\");\n // For validating existence\n if (this.options.checkPrivateFields) {\n if (this.privateNameStack.length === 0) this.raise(node.start, \"Private field '#\" + node.name + \"' must be declared in an enclosing class\");\n else this.privateNameStack[this.privateNameStack.length - 1].used.push(node);\n }\n return node;\n};\n// Parses yield expression inside generator.\n$ebef8a20963d596b$var$pp$5.parseYield = function(forInit) {\n if (!this.yieldPos) this.yieldPos = this.start;\n var node = this.startNode();\n this.next();\n if (this.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.semi || this.canInsertSemicolon() || this.type !== $ebef8a20963d596b$export$b54c7ea7aabba5c8.star && !this.type.startsExpr) {\n node.delegate = false;\n node.argument = null;\n } else {\n node.delegate = this.eat($ebef8a20963d596b$export$b54c7ea7aabba5c8.star);\n node.argument = this.parseMaybeAssign(forInit);\n }\n return this.finishNode(node, \"YieldExpression\");\n};\n$ebef8a20963d596b$var$pp$5.parseAwait = function(forInit) {\n if (!this.awaitPos) this.awaitPos = this.start;\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeUnary(null, true, false, forInit);\n return this.finishNode(node, \"AwaitExpression\");\n};\nvar $ebef8a20963d596b$var$pp$4 = $ebef8a20963d596b$export$7acfa6ed01010e37.prototype;\n// This function is used to raise exceptions on parse errors. It\n// takes an offset integer (into the current `input`) to indicate\n// the location of the error, attaches the position to the end\n// of the error message, and then raises a `SyntaxError` with that\n// message.\n$ebef8a20963d596b$var$pp$4.raise = function(pos, message) {\n var loc = $ebef8a20963d596b$export$7af82191547c5ff7(this.input, pos);\n message += \" (\" + loc.line + \":\" + loc.column + \")\";\n var err = new SyntaxError(message);\n err.pos = pos;\n err.loc = loc;\n err.raisedAt = this.pos;\n throw err;\n};\n$ebef8a20963d596b$var$pp$4.raiseRecoverable = $ebef8a20963d596b$var$pp$4.raise;\n$ebef8a20963d596b$var$pp$4.curPosition = function() {\n if (this.options.locations) return new $ebef8a20963d596b$export$13807d9ee5a34a42(this.curLine, this.pos - this.lineStart);\n};\nvar $ebef8a20963d596b$var$pp$3 = $ebef8a20963d596b$export$7acfa6ed01010e37.prototype;\nvar $ebef8a20963d596b$var$Scope = function Scope(flags) {\n this.flags = flags;\n // A list of var-declared names in the current lexical scope\n this.var = [];\n // A list of lexically-declared names in the current lexical scope\n this.lexical = [];\n // A list of lexically-declared FunctionDeclaration names in the current lexical scope\n this.functions = [];\n // A switch to disallow the identifier reference 'arguments'\n this.inClassFieldInit = false;\n};\n// The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names.\n$ebef8a20963d596b$var$pp$3.enterScope = function(flags) {\n this.scopeStack.push(new $ebef8a20963d596b$var$Scope(flags));\n};\n$ebef8a20963d596b$var$pp$3.exitScope = function() {\n this.scopeStack.pop();\n};\n// The spec says:\n// > At the top level of a function, or script, function declarations are\n// > treated like var declarations rather than like lexical declarations.\n$ebef8a20963d596b$var$pp$3.treatFunctionsAsVarInScope = function(scope) {\n return scope.flags & $ebef8a20963d596b$var$SCOPE_FUNCTION || !this.inModule && scope.flags & $ebef8a20963d596b$var$SCOPE_TOP;\n};\n$ebef8a20963d596b$var$pp$3.declareName = function(name, bindingType, pos) {\n var redeclared = false;\n if (bindingType === $ebef8a20963d596b$var$BIND_LEXICAL) {\n var scope = this.currentScope();\n redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1;\n scope.lexical.push(name);\n if (this.inModule && scope.flags & $ebef8a20963d596b$var$SCOPE_TOP) delete this.undefinedExports[name];\n } else if (bindingType === $ebef8a20963d596b$var$BIND_SIMPLE_CATCH) {\n var scope$1 = this.currentScope();\n scope$1.lexical.push(name);\n } else if (bindingType === $ebef8a20963d596b$var$BIND_FUNCTION) {\n var scope$2 = this.currentScope();\n if (this.treatFunctionsAsVar) redeclared = scope$2.lexical.indexOf(name) > -1;\n else redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1;\n scope$2.functions.push(name);\n } else for(var i = this.scopeStack.length - 1; i >= 0; --i){\n var scope$3 = this.scopeStack[i];\n if (scope$3.lexical.indexOf(name) > -1 && !(scope$3.flags & $ebef8a20963d596b$var$SCOPE_SIMPLE_CATCH && scope$3.lexical[0] === name) || !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) {\n redeclared = true;\n break;\n }\n scope$3.var.push(name);\n if (this.inModule && scope$3.flags & $ebef8a20963d596b$var$SCOPE_TOP) delete this.undefinedExports[name];\n if (scope$3.flags & $ebef8a20963d596b$var$SCOPE_VAR) break;\n }\n if (redeclared) this.raiseRecoverable(pos, \"Identifier '\" + name + \"' has already been declared\");\n};\n$ebef8a20963d596b$var$pp$3.checkLocalExport = function(id) {\n // scope.functions must be empty as Module code is always strict.\n if (this.scopeStack[0].lexical.indexOf(id.name) === -1 && this.scopeStack[0].var.indexOf(id.name) === -1) this.undefinedExports[id.name] = id;\n};\n$ebef8a20963d596b$var$pp$3.currentScope = function() {\n return this.scopeStack[this.scopeStack.length - 1];\n};\n$ebef8a20963d596b$var$pp$3.currentVarScope = function() {\n for(var i = this.scopeStack.length - 1;; i--){\n var scope = this.scopeStack[i];\n if (scope.flags & $ebef8a20963d596b$var$SCOPE_VAR) return scope;\n }\n};\n// Could be useful for `this`, `new.target`, `super()`, `super.property`, and `super[property]`.\n$ebef8a20963d596b$var$pp$3.currentThisScope = function() {\n for(var i = this.scopeStack.length - 1;; i--){\n var scope = this.scopeStack[i];\n if (scope.flags & $ebef8a20963d596b$var$SCOPE_VAR && !(scope.flags & $ebef8a20963d596b$var$SCOPE_ARROW)) return scope;\n }\n};\nvar $ebef8a20963d596b$export$85c928794f8d04d4 = function Node(parser, pos, loc) {\n this.type = \"\";\n this.start = pos;\n this.end = 0;\n if (parser.options.locations) this.loc = new $ebef8a20963d596b$export$7387db7caf96fcdb(parser, loc);\n if (parser.options.directSourceFile) this.sourceFile = parser.options.directSourceFile;\n if (parser.options.ranges) this.range = [\n pos,\n 0\n ];\n};\n// Start an AST node, attaching a start offset.\nvar $ebef8a20963d596b$var$pp$2 = $ebef8a20963d596b$export$7acfa6ed01010e37.prototype;\n$ebef8a20963d596b$var$pp$2.startNode = function() {\n return new $ebef8a20963d596b$export$85c928794f8d04d4(this, this.start, this.startLoc);\n};\n$ebef8a20963d596b$var$pp$2.startNodeAt = function(pos, loc) {\n return new $ebef8a20963d596b$export$85c928794f8d04d4(this, pos, loc);\n};\n// Finish an AST node, adding `type` and `end` properties.\nfunction $ebef8a20963d596b$var$finishNodeAt(node, type, pos, loc) {\n node.type = type;\n node.end = pos;\n if (this.options.locations) node.loc.end = loc;\n if (this.options.ranges) node.range[1] = pos;\n return node;\n}\n$ebef8a20963d596b$var$pp$2.finishNode = function(node, type) {\n return $ebef8a20963d596b$var$finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);\n};\n// Finish node at given position\n$ebef8a20963d596b$var$pp$2.finishNodeAt = function(node, type, pos, loc) {\n return $ebef8a20963d596b$var$finishNodeAt.call(this, node, type, pos, loc);\n};\n$ebef8a20963d596b$var$pp$2.copyNode = function(node) {\n var newNode = new $ebef8a20963d596b$export$85c928794f8d04d4(this, node.start, this.startLoc);\n for(var prop in node)newNode[prop] = node[prop];\n return newNode;\n};\n// This file contains Unicode properties extracted from the ECMAScript specification.\n// The lists are extracted like so:\n// $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)\n// #table-binary-unicode-properties\nvar $ebef8a20963d596b$var$ecma9BinaryProperties = \"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\";\nvar $ebef8a20963d596b$var$ecma10BinaryProperties = $ebef8a20963d596b$var$ecma9BinaryProperties + \" Extended_Pictographic\";\nvar $ebef8a20963d596b$var$ecma11BinaryProperties = $ebef8a20963d596b$var$ecma10BinaryProperties;\nvar $ebef8a20963d596b$var$ecma12BinaryProperties = $ebef8a20963d596b$var$ecma11BinaryProperties + \" EBase EComp EMod EPres ExtPict\";\nvar $ebef8a20963d596b$var$ecma13BinaryProperties = $ebef8a20963d596b$var$ecma12BinaryProperties;\nvar $ebef8a20963d596b$var$ecma14BinaryProperties = $ebef8a20963d596b$var$ecma13BinaryProperties;\nvar $ebef8a20963d596b$var$unicodeBinaryProperties = {\n 9: $ebef8a20963d596b$var$ecma9BinaryProperties,\n 10: $ebef8a20963d596b$var$ecma10BinaryProperties,\n 11: $ebef8a20963d596b$var$ecma11BinaryProperties,\n 12: $ebef8a20963d596b$var$ecma12BinaryProperties,\n 13: $ebef8a20963d596b$var$ecma13BinaryProperties,\n 14: $ebef8a20963d596b$var$ecma14BinaryProperties\n};\n// #table-binary-unicode-properties-of-strings\nvar $ebef8a20963d596b$var$ecma14BinaryPropertiesOfStrings = \"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji\";\nvar $ebef8a20963d596b$var$unicodeBinaryPropertiesOfStrings = {\n 9: \"\",\n 10: \"\",\n 11: \"\",\n 12: \"\",\n 13: \"\",\n 14: $ebef8a20963d596b$var$ecma14BinaryPropertiesOfStrings\n};\n// #table-unicode-general-category-values\nvar $ebef8a20963d596b$var$unicodeGeneralCategoryValues = \"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\";\n// #table-unicode-script-values\nvar $ebef8a20963d596b$var$ecma9ScriptValues = \"Adlam Adlm 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 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\";\nvar $ebef8a20963d596b$var$ecma10ScriptValues = $ebef8a20963d596b$var$ecma9ScriptValues + \" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd\";\nvar $ebef8a20963d596b$var$ecma11ScriptValues = $ebef8a20963d596b$var$ecma10ScriptValues + \" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho\";\nvar $ebef8a20963d596b$var$ecma12ScriptValues = $ebef8a20963d596b$var$ecma11ScriptValues + \" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi\";\nvar $ebef8a20963d596b$var$ecma13ScriptValues = $ebef8a20963d596b$var$ecma12ScriptValues + \" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith\";\nvar $ebef8a20963d596b$var$ecma14ScriptValues = $ebef8a20963d596b$var$ecma13ScriptValues + \" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz\";\nvar $ebef8a20963d596b$var$unicodeScriptValues = {\n 9: $ebef8a20963d596b$var$ecma9ScriptValues,\n 10: $ebef8a20963d596b$var$ecma10ScriptValues,\n 11: $ebef8a20963d596b$var$ecma11ScriptValues,\n 12: $ebef8a20963d596b$var$ecma12ScriptValues,\n 13: $ebef8a20963d596b$var$ecma13ScriptValues,\n 14: $ebef8a20963d596b$var$ecma14ScriptValues\n};\nvar $ebef8a20963d596b$var$data = {};\nfunction $ebef8a20963d596b$var$buildUnicodeData(ecmaVersion) {\n var d = $ebef8a20963d596b$var$data[ecmaVersion] = {\n binary: $ebef8a20963d596b$var$wordsRegexp($ebef8a20963d596b$var$unicodeBinaryProperties[ecmaVersion] + \" \" + $ebef8a20963d596b$var$unicodeGeneralCategoryValues),\n binaryOfStrings: $ebef8a20963d596b$var$wordsRegexp($ebef8a20963d596b$var$unicodeBinaryPropertiesOfStrings[ecmaVersion]),\n nonBinary: {\n General_Category: $ebef8a20963d596b$var$wordsRegexp($ebef8a20963d596b$var$unicodeGeneralCategoryValues),\n Script: $ebef8a20963d596b$var$wordsRegexp($ebef8a20963d596b$var$unicodeScriptValues[ecmaVersion])\n }\n };\n d.nonBinary.Script_Extensions = d.nonBinary.Script;\n d.nonBinary.gc = d.nonBinary.General_Category;\n d.nonBinary.sc = d.nonBinary.Script;\n d.nonBinary.scx = d.nonBinary.Script_Extensions;\n}\nfor(var $ebef8a20963d596b$var$i = 0, $ebef8a20963d596b$var$list = [\n 9,\n 10,\n 11,\n 12,\n 13,\n 14\n]; $ebef8a20963d596b$var$i < $ebef8a20963d596b$var$list.length; $ebef8a20963d596b$var$i += 1){\n var $ebef8a20963d596b$var$ecmaVersion = $ebef8a20963d596b$var$list[$ebef8a20963d596b$var$i];\n $ebef8a20963d596b$var$buildUnicodeData($ebef8a20963d596b$var$ecmaVersion);\n}\nvar $ebef8a20963d596b$var$pp$1 = $ebef8a20963d596b$export$7acfa6ed01010e37.prototype;\n// Track disjunction structure to determine whether a duplicate\n// capture group name is allowed because it is in a separate branch.\nvar $ebef8a20963d596b$var$BranchID = function BranchID(parent, base) {\n // Parent disjunction branch\n this.parent = parent;\n // Identifies this set of sibling branches\n this.base = base || this;\n};\n$ebef8a20963d596b$var$BranchID.prototype.separatedFrom = function separatedFrom(alt) {\n // A branch is separate from another branch if they or any of\n // their parents are siblings in a given disjunction\n for(var self = this; self; self = self.parent)for(var other = alt; other; other = other.parent){\n if (self.base === other.base && self !== other) return true;\n }\n return false;\n};\n$ebef8a20963d596b$var$BranchID.prototype.sibling = function sibling() {\n return new $ebef8a20963d596b$var$BranchID(this.parent, this.base);\n};\nvar $ebef8a20963d596b$var$RegExpValidationState = function RegExpValidationState(parser) {\n this.parser = parser;\n this.validFlags = \"gim\" + (parser.options.ecmaVersion >= 6 ? \"uy\" : \"\") + (parser.options.ecmaVersion >= 9 ? \"s\" : \"\") + (parser.options.ecmaVersion >= 13 ? \"d\" : \"\") + (parser.options.ecmaVersion >= 15 ? \"v\" : \"\");\n this.unicodeProperties = $ebef8a20963d596b$var$data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];\n this.source = \"\";\n this.flags = \"\";\n this.start = 0;\n this.switchU = false;\n this.switchV = false;\n this.switchN = false;\n this.pos = 0;\n this.lastIntValue = 0;\n this.lastStringValue = \"\";\n this.lastAssertionIsQuantifiable = false;\n this.numCapturingParens = 0;\n this.maxBackReference = 0;\n this.groupNames = Object.create(null);\n this.backReferenceNames = [];\n this.branchID = null;\n};\n$ebef8a20963d596b$var$RegExpValidationState.prototype.reset = function reset(start, pattern, flags) {\n var unicodeSets = flags.indexOf(\"v\") !== -1;\n var unicode = flags.indexOf(\"u\") !== -1;\n this.start = start | 0;\n this.source = pattern + \"\";\n this.flags = flags;\n if (unicodeSets && this.parser.options.ecmaVersion >= 15) {\n this.switchU = true;\n this.switchV = true;\n this.switchN = true;\n } else {\n this.switchU = unicode && this.parser.options.ecmaVersion >= 6;\n this.switchV = false;\n this.switchN = unicode && this.parser.options.ecmaVersion >= 9;\n }\n};\n$ebef8a20963d596b$var$RegExpValidationState.prototype.raise = function raise(message) {\n this.parser.raiseRecoverable(this.start, \"Invalid regular expression: /\" + this.source + \"/: \" + message);\n};\n// If u flag is given, this returns the code point at the index (it combines a surrogate pair).\n// Otherwise, this returns the code unit of the index (can be a part of a surrogate pair).\n$ebef8a20963d596b$var$RegExpValidationState.prototype.at = function at(i, forceU) {\n if (forceU === void 0) forceU = false;\n var s = this.source;\n var l = s.length;\n if (i >= l) return -1;\n var c = s.charCodeAt(i);\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) return c;\n var next = s.charCodeAt(i + 1);\n return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c;\n};\n$ebef8a20963d596b$var$RegExpValidationState.prototype.nextIndex = function nextIndex(i, forceU) {\n if (forceU === void 0) forceU = false;\n var s = this.source;\n var l = s.length;\n if (i >= l) return l;\n var c = s.charCodeAt(i), next;\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l || (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) return i + 1;\n return i + 2;\n};\n$ebef8a20963d596b$var$RegExpValidationState.prototype.current = function current(forceU) {\n if (forceU === void 0) forceU = false;\n return this.at(this.pos, forceU);\n};\n$ebef8a20963d596b$var$RegExpValidationState.prototype.lookahead = function lookahead(forceU) {\n if (forceU === void 0) forceU = false;\n return this.at(this.nextIndex(this.pos, forceU), forceU);\n};\n$ebef8a20963d596b$var$RegExpValidationState.prototype.advance = function advance(forceU) {\n if (forceU === void 0) forceU = false;\n this.pos = this.nextIndex(this.pos, forceU);\n};\n$ebef8a20963d596b$var$RegExpValidationState.prototype.eat = function eat(ch, forceU) {\n if (forceU === void 0) forceU = false;\n if (this.current(forceU) === ch) {\n this.advance(forceU);\n return true;\n }\n return false;\n};\n$ebef8a20963d596b$var$RegExpValidationState.prototype.eatChars = function eatChars(chs, forceU) {\n if (forceU === void 0) forceU = false;\n var pos = this.pos;\n for(var i = 0, list = chs; i < list.length; i += 1){\n var ch = list[i];\n var current = this.at(pos, forceU);\n if (current === -1 || current !== ch) return false;\n pos = this.nextIndex(pos, forceU);\n }\n this.pos = pos;\n return true;\n};\n/**\n * Validate the flags part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */ $ebef8a20963d596b$var$pp$1.validateRegExpFlags = function(state) {\n var validFlags = state.validFlags;\n var flags = state.flags;\n var u = false;\n var v = false;\n for(var i = 0; i < flags.length; i++){\n var flag = flags.charAt(i);\n if (validFlags.indexOf(flag) === -1) this.raise(state.start, \"Invalid regular expression flag\");\n if (flags.indexOf(flag, i + 1) > -1) this.raise(state.start, \"Duplicate regular expression flag\");\n if (flag === \"u\") u = true;\n if (flag === \"v\") v = true;\n }\n if (this.options.ecmaVersion >= 15 && u && v) this.raise(state.start, \"Invalid regular expression flag\");\n};\nfunction $ebef8a20963d596b$var$hasProp(obj) {\n for(var _ in obj)return true;\n return false;\n}\n/**\n * Validate the pattern part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */ $ebef8a20963d596b$var$pp$1.validateRegExpPattern = function(state) {\n this.regexp_pattern(state);\n // The goal symbol for the parse is |Pattern[~U, ~N]|. If the result of\n // parsing contains a |GroupName|, reparse with the goal symbol\n // |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError*\n // exception if _P_ did not conform to the grammar, if any elements of _P_\n // were not matched by the parse, or if any Early Error conditions exist.\n if (!state.switchN && this.options.ecmaVersion >= 9 && $ebef8a20963d596b$var$hasProp(state.groupNames)) {\n state.switchN = true;\n this.regexp_pattern(state);\n }\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern\n$ebef8a20963d596b$var$pp$1.regexp_pattern = function(state) {\n state.pos = 0;\n state.lastIntValue = 0;\n state.lastStringValue = \"\";\n state.lastAssertionIsQuantifiable = false;\n state.numCapturingParens = 0;\n state.maxBackReference = 0;\n state.groupNames = Object.create(null);\n state.backReferenceNames.length = 0;\n state.branchID = null;\n this.regexp_disjunction(state);\n if (state.pos !== state.source.length) {\n // Make the same messages as V8.\n if (state.eat(0x29 /* ) */ )) state.raise(\"Unmatched ')'\");\n if (state.eat(0x5D /* ] */ ) || state.eat(0x7D /* } */ )) state.raise(\"Lone quantifier brackets\");\n }\n if (state.maxBackReference > state.numCapturingParens) state.raise(\"Invalid escape\");\n for(var i = 0, list = state.backReferenceNames; i < list.length; i += 1){\n var name = list[i];\n if (!state.groupNames[name]) state.raise(\"Invalid named capture referenced\");\n }\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction\n$ebef8a20963d596b$var$pp$1.regexp_disjunction = function(state) {\n var trackDisjunction = this.options.ecmaVersion >= 16;\n if (trackDisjunction) state.branchID = new $ebef8a20963d596b$var$BranchID(state.branchID, null);\n this.regexp_alternative(state);\n while(state.eat(0x7C /* | */ )){\n if (trackDisjunction) state.branchID = state.branchID.sibling();\n this.regexp_alternative(state);\n }\n if (trackDisjunction) state.branchID = state.branchID.parent;\n // Make the same message as V8.\n if (this.regexp_eatQuantifier(state, true)) state.raise(\"Nothing to repeat\");\n if (state.eat(0x7B /* { */ )) state.raise(\"Lone quantifier brackets\");\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative\n$ebef8a20963d596b$var$pp$1.regexp_alternative = function(state) {\n while(state.pos < state.source.length && this.regexp_eatTerm(state));\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term\n$ebef8a20963d596b$var$pp$1.regexp_eatTerm = function(state) {\n if (this.regexp_eatAssertion(state)) {\n // Handle `QuantifiableAssertion Quantifier` alternative.\n // `state.lastAssertionIsQuantifiable` is true if the last eaten Assertion\n // is a QuantifiableAssertion.\n if (state.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(state)) // Make the same message as V8.\n {\n if (state.switchU) state.raise(\"Invalid quantifier\");\n }\n return true;\n }\n if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) {\n this.regexp_eatQuantifier(state);\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion\n$ebef8a20963d596b$var$pp$1.regexp_eatAssertion = function(state) {\n var start = state.pos;\n state.lastAssertionIsQuantifiable = false;\n // ^, $\n if (state.eat(0x5E /* ^ */ ) || state.eat(0x24 /* $ */ )) return true;\n // \\b \\B\n if (state.eat(0x5C /* \\ */ )) {\n if (state.eat(0x42 /* B */ ) || state.eat(0x62 /* b */ )) return true;\n state.pos = start;\n }\n // Lookahead / Lookbehind\n if (state.eat(0x28 /* ( */ ) && state.eat(0x3F /* ? */ )) {\n var lookbehind = false;\n if (this.options.ecmaVersion >= 9) lookbehind = state.eat(0x3C /* < */ );\n if (state.eat(0x3D /* = */ ) || state.eat(0x21 /* ! */ )) {\n this.regexp_disjunction(state);\n if (!state.eat(0x29 /* ) */ )) state.raise(\"Unterminated group\");\n state.lastAssertionIsQuantifiable = !lookbehind;\n return true;\n }\n }\n state.pos = start;\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier\n$ebef8a20963d596b$var$pp$1.regexp_eatQuantifier = function(state, noError) {\n if (noError === void 0) noError = false;\n if (this.regexp_eatQuantifierPrefix(state, noError)) {\n state.eat(0x3F /* ? */ );\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix\n$ebef8a20963d596b$var$pp$1.regexp_eatQuantifierPrefix = function(state, noError) {\n return state.eat(0x2A /* * */ ) || state.eat(0x2B /* + */ ) || state.eat(0x3F /* ? */ ) || this.regexp_eatBracedQuantifier(state, noError);\n};\n$ebef8a20963d596b$var$pp$1.regexp_eatBracedQuantifier = function(state, noError) {\n var start = state.pos;\n if (state.eat(0x7B /* { */ )) {\n var min = 0, max = -1;\n if (this.regexp_eatDecimalDigits(state)) {\n min = state.lastIntValue;\n if (state.eat(0x2C /* , */ ) && this.regexp_eatDecimalDigits(state)) max = state.lastIntValue;\n if (state.eat(0x7D /* } */ )) {\n // SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-term\n if (max !== -1 && max < min && !noError) state.raise(\"numbers out of order in {} quantifier\");\n return true;\n }\n }\n if (state.switchU && !noError) state.raise(\"Incomplete quantifier\");\n state.pos = start;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Atom\n$ebef8a20963d596b$var$pp$1.regexp_eatAtom = function(state) {\n return this.regexp_eatPatternCharacters(state) || state.eat(0x2E /* . */ ) || this.regexp_eatReverseSolidusAtomEscape(state) || this.regexp_eatCharacterClass(state) || this.regexp_eatUncapturingGroup(state) || this.regexp_eatCapturingGroup(state);\n};\n$ebef8a20963d596b$var$pp$1.regexp_eatReverseSolidusAtomEscape = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */ )) {\n if (this.regexp_eatAtomEscape(state)) return true;\n state.pos = start;\n }\n return false;\n};\n$ebef8a20963d596b$var$pp$1.regexp_eatUncapturingGroup = function(state) {\n var start = state.pos;\n if (state.eat(0x28 /* ( */ )) {\n if (state.eat(0x3F /* ? */ ) && state.eat(0x3A /* : */ )) {\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */ )) return true;\n state.raise(\"Unterminated group\");\n }\n state.pos = start;\n }\n return false;\n};\n$ebef8a20963d596b$var$pp$1.regexp_eatCapturingGroup = function(state) {\n if (state.eat(0x28 /* ( */ )) {\n if (this.options.ecmaVersion >= 9) this.regexp_groupSpecifier(state);\n else if (state.current() === 0x3F /* ? */ ) state.raise(\"Invalid group\");\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */ )) {\n state.numCapturingParens += 1;\n return true;\n }\n state.raise(\"Unterminated group\");\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom\n$ebef8a20963d596b$var$pp$1.regexp_eatExtendedAtom = function(state) {\n return state.eat(0x2E /* . */ ) || this.regexp_eatReverseSolidusAtomEscape(state) || this.regexp_eatCharacterClass(state) || this.regexp_eatUncapturingGroup(state) || this.regexp_eatCapturingGroup(state) || this.regexp_eatInvalidBracedQuantifier(state) || this.regexp_eatExtendedPatternCharacter(state);\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier\n$ebef8a20963d596b$var$pp$1.regexp_eatInvalidBracedQuantifier = function(state) {\n if (this.regexp_eatBracedQuantifier(state, true)) state.raise(\"Nothing to repeat\");\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter\n$ebef8a20963d596b$var$pp$1.regexp_eatSyntaxCharacter = function(state) {\n var ch = state.current();\n if ($ebef8a20963d596b$var$isSyntaxCharacter(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true;\n }\n return false;\n};\nfunction $ebef8a20963d596b$var$isSyntaxCharacter(ch) {\n return ch === 0x24 /* $ */ || ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ || ch === 0x2E /* . */ || ch === 0x3F /* ? */ || ch >= 0x5B /* [ */ && ch <= 0x5E /* ^ */ || ch >= 0x7B /* { */ && ch <= 0x7D /* } */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter\n// But eat eager.\n$ebef8a20963d596b$var$pp$1.regexp_eatPatternCharacters = function(state) {\n var start = state.pos;\n var ch = 0;\n while((ch = state.current()) !== -1 && !$ebef8a20963d596b$var$isSyntaxCharacter(ch))state.advance();\n return state.pos !== start;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter\n$ebef8a20963d596b$var$pp$1.regexp_eatExtendedPatternCharacter = function(state) {\n var ch = state.current();\n if (ch !== -1 && ch !== 0x24 /* $ */ && !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ ) && ch !== 0x2E /* . */ && ch !== 0x3F /* ? */ && ch !== 0x5B /* [ */ && ch !== 0x5E /* ^ */ && ch !== 0x7C /* | */ ) {\n state.advance();\n return true;\n }\n return false;\n};\n// GroupSpecifier ::\n// [empty]\n// `?` GroupName\n$ebef8a20963d596b$var$pp$1.regexp_groupSpecifier = function(state) {\n if (state.eat(0x3F /* ? */ )) {\n if (!this.regexp_eatGroupName(state)) state.raise(\"Invalid group\");\n var trackDisjunction = this.options.ecmaVersion >= 16;\n var known = state.groupNames[state.lastStringValue];\n if (known) {\n if (trackDisjunction) for(var i = 0, list = known; i < list.length; i += 1){\n var altID = list[i];\n if (!altID.separatedFrom(state.branchID)) state.raise(\"Duplicate capture group name\");\n }\n else state.raise(\"Duplicate capture group name\");\n }\n if (trackDisjunction) (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);\n else state.groupNames[state.lastStringValue] = true;\n }\n};\n// GroupName ::\n// `<` RegExpIdentifierName `>`\n// Note: this updates `state.lastStringValue` property with the eaten name.\n$ebef8a20963d596b$var$pp$1.regexp_eatGroupName = function(state) {\n state.lastStringValue = \"\";\n if (state.eat(0x3C /* < */ )) {\n if (this.regexp_eatRegExpIdentifierName(state) && state.eat(0x3E /* > */ )) return true;\n state.raise(\"Invalid capture group name\");\n }\n return false;\n};\n// RegExpIdentifierName ::\n// RegExpIdentifierStart\n// RegExpIdentifierName RegExpIdentifierPart\n// Note: this updates `state.lastStringValue` property with the eaten name.\n$ebef8a20963d596b$var$pp$1.regexp_eatRegExpIdentifierName = function(state) {\n state.lastStringValue = \"\";\n if (this.regexp_eatRegExpIdentifierStart(state)) {\n state.lastStringValue += $ebef8a20963d596b$var$codePointToString(state.lastIntValue);\n while(this.regexp_eatRegExpIdentifierPart(state))state.lastStringValue += $ebef8a20963d596b$var$codePointToString(state.lastIntValue);\n return true;\n }\n return false;\n};\n// RegExpIdentifierStart ::\n// UnicodeIDStart\n// `$`\n// `_`\n// `\\` RegExpUnicodeEscapeSequence[+U]\n$ebef8a20963d596b$var$pp$1.regexp_eatRegExpIdentifierStart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) ch = state.lastIntValue;\n if ($ebef8a20963d596b$var$isRegExpIdentifierStart(ch)) {\n state.lastIntValue = ch;\n return true;\n }\n state.pos = start;\n return false;\n};\nfunction $ebef8a20963d596b$var$isRegExpIdentifierStart(ch) {\n return $ebef8a20963d596b$export$56b48cc5d7560ffb(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ ;\n}\n// RegExpIdentifierPart ::\n// UnicodeIDContinue\n// `$`\n// `_`\n// `\\` RegExpUnicodeEscapeSequence[+U]\n// \n// \n$ebef8a20963d596b$var$pp$1.regexp_eatRegExpIdentifierPart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) ch = state.lastIntValue;\n if ($ebef8a20963d596b$var$isRegExpIdentifierPart(ch)) {\n state.lastIntValue = ch;\n return true;\n }\n state.pos = start;\n return false;\n};\nfunction $ebef8a20963d596b$var$isRegExpIdentifierPart(ch) {\n return $ebef8a20963d596b$export$332f4d7bee38db93(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /* */ || ch === 0x200D /* */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape\n$ebef8a20963d596b$var$pp$1.regexp_eatAtomEscape = function(state) {\n if (this.regexp_eatBackReference(state) || this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state) || state.switchN && this.regexp_eatKGroupName(state)) return true;\n if (state.switchU) {\n // Make the same message as V8.\n if (state.current() === 0x63 /* c */ ) state.raise(\"Invalid unicode escape\");\n state.raise(\"Invalid escape\");\n }\n return false;\n};\n$ebef8a20963d596b$var$pp$1.regexp_eatBackReference = function(state) {\n var start = state.pos;\n if (this.regexp_eatDecimalEscape(state)) {\n var n = state.lastIntValue;\n if (state.switchU) {\n // For SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-atomescape\n if (n > state.maxBackReference) state.maxBackReference = n;\n return true;\n }\n if (n <= state.numCapturingParens) return true;\n state.pos = start;\n }\n return false;\n};\n$ebef8a20963d596b$var$pp$1.regexp_eatKGroupName = function(state) {\n if (state.eat(0x6B /* k */ )) {\n if (this.regexp_eatGroupName(state)) {\n state.backReferenceNames.push(state.lastStringValue);\n return true;\n }\n state.raise(\"Invalid named reference\");\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape\n$ebef8a20963d596b$var$pp$1.regexp_eatCharacterEscape = function(state) {\n return this.regexp_eatControlEscape(state) || this.regexp_eatCControlLetter(state) || this.regexp_eatZero(state) || this.regexp_eatHexEscapeSequence(state) || this.regexp_eatRegExpUnicodeEscapeSequence(state, false) || !state.switchU && this.regexp_eatLegacyOctalEscapeSequence(state) || this.regexp_eatIdentityEscape(state);\n};\n$ebef8a20963d596b$var$pp$1.regexp_eatCControlLetter = function(state) {\n var start = state.pos;\n if (state.eat(0x63 /* c */ )) {\n if (this.regexp_eatControlLetter(state)) return true;\n state.pos = start;\n }\n return false;\n};\n$ebef8a20963d596b$var$pp$1.regexp_eatZero = function(state) {\n if (state.current() === 0x30 /* 0 */ && !$ebef8a20963d596b$var$isDecimalDigit(state.lookahead())) {\n state.lastIntValue = 0;\n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape\n$ebef8a20963d596b$var$pp$1.regexp_eatControlEscape = function(state) {\n var ch = state.current();\n if (ch === 0x74 /* t */ ) {\n state.lastIntValue = 0x09; /* \\t */ \n state.advance();\n return true;\n }\n if (ch === 0x6E /* n */ ) {\n state.lastIntValue = 0x0A; /* \\n */ \n state.advance();\n return true;\n }\n if (ch === 0x76 /* v */ ) {\n state.lastIntValue = 0x0B; /* \\v */ \n state.advance();\n return true;\n }\n if (ch === 0x66 /* f */ ) {\n state.lastIntValue = 0x0C; /* \\f */ \n state.advance();\n return true;\n }\n if (ch === 0x72 /* r */ ) {\n state.lastIntValue = 0x0D; /* \\r */ \n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter\n$ebef8a20963d596b$var$pp$1.regexp_eatControlLetter = function(state) {\n var ch = state.current();\n if ($ebef8a20963d596b$var$isControlLetter(ch)) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true;\n }\n return false;\n};\nfunction $ebef8a20963d596b$var$isControlLetter(ch) {\n return ch >= 0x41 /* A */ && ch <= 0x5A /* Z */ || ch >= 0x61 /* a */ && ch <= 0x7A /* z */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence\n$ebef8a20963d596b$var$pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {\n if (forceU === void 0) forceU = false;\n var start = state.pos;\n var switchU = forceU || state.switchU;\n if (state.eat(0x75 /* u */ )) {\n if (this.regexp_eatFixedHexDigits(state, 4)) {\n var lead = state.lastIntValue;\n if (switchU && lead >= 0xD800 && lead <= 0xDBFF) {\n var leadSurrogateEnd = state.pos;\n if (state.eat(0x5C /* \\ */ ) && state.eat(0x75 /* u */ ) && this.regexp_eatFixedHexDigits(state, 4)) {\n var trail = state.lastIntValue;\n if (trail >= 0xDC00 && trail <= 0xDFFF) {\n state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000;\n return true;\n }\n }\n state.pos = leadSurrogateEnd;\n state.lastIntValue = lead;\n }\n return true;\n }\n if (switchU && state.eat(0x7B /* { */ ) && this.regexp_eatHexDigits(state) && state.eat(0x7D /* } */ ) && $ebef8a20963d596b$var$isValidUnicode(state.lastIntValue)) return true;\n if (switchU) state.raise(\"Invalid unicode escape\");\n state.pos = start;\n }\n return false;\n};\nfunction $ebef8a20963d596b$var$isValidUnicode(ch) {\n return ch >= 0 && ch <= 0x10FFFF;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape\n$ebef8a20963d596b$var$pp$1.regexp_eatIdentityEscape = function(state) {\n if (state.switchU) {\n if (this.regexp_eatSyntaxCharacter(state)) return true;\n if (state.eat(0x2F /* / */ )) {\n state.lastIntValue = 0x2F; /* / */ \n return true;\n }\n return false;\n }\n var ch = state.current();\n if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */ )) {\n state.lastIntValue = ch;\n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape\n$ebef8a20963d596b$var$pp$1.regexp_eatDecimalEscape = function(state) {\n state.lastIntValue = 0;\n var ch = state.current();\n if (ch >= 0x31 /* 1 */ && ch <= 0x39 /* 9 */ ) {\n do {\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */ );\n state.advance();\n }while ((ch = state.current()) >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */ );\n return true;\n }\n return false;\n};\n// Return values used by character set parsing methods, needed to\n// forbid negation of sets that can match strings.\nvar $ebef8a20963d596b$var$CharSetNone = 0; // Nothing parsed\nvar $ebef8a20963d596b$var$CharSetOk = 1; // Construct parsed, cannot contain strings\nvar $ebef8a20963d596b$var$CharSetString = 2; // Construct parsed, can contain strings\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape\n$ebef8a20963d596b$var$pp$1.regexp_eatCharacterClassEscape = function(state) {\n var ch = state.current();\n if ($ebef8a20963d596b$var$isCharacterClassEscape(ch)) {\n state.lastIntValue = -1;\n state.advance();\n return $ebef8a20963d596b$var$CharSetOk;\n }\n var negate = false;\n if (state.switchU && this.options.ecmaVersion >= 9 && ((negate = ch === 0x50 /* P */ ) || ch === 0x70 /* p */ )) {\n state.lastIntValue = -1;\n state.advance();\n var result;\n if (state.eat(0x7B /* { */ ) && (result = this.regexp_eatUnicodePropertyValueExpression(state)) && state.eat(0x7D /* } */ )) {\n if (negate && result === $ebef8a20963d596b$var$CharSetString) state.raise(\"Invalid property name\");\n return result;\n }\n state.raise(\"Invalid property name\");\n }\n return $ebef8a20963d596b$var$CharSetNone;\n};\nfunction $ebef8a20963d596b$var$isCharacterClassEscape(ch) {\n return ch === 0x64 /* d */ || ch === 0x44 /* D */ || ch === 0x73 /* s */ || ch === 0x53 /* S */ || ch === 0x77 /* w */ || ch === 0x57 /* W */ ;\n}\n// UnicodePropertyValueExpression ::\n// UnicodePropertyName `=` UnicodePropertyValue\n// LoneUnicodePropertyNameOrValue\n$ebef8a20963d596b$var$pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {\n var start = state.pos;\n // UnicodePropertyName `=` UnicodePropertyValue\n if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */ )) {\n var name = state.lastStringValue;\n if (this.regexp_eatUnicodePropertyValue(state)) {\n var value = state.lastStringValue;\n this.regexp_validateUnicodePropertyNameAndValue(state, name, value);\n return $ebef8a20963d596b$var$CharSetOk;\n }\n }\n state.pos = start;\n // LoneUnicodePropertyNameOrValue\n if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {\n var nameOrValue = state.lastStringValue;\n return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);\n }\n return $ebef8a20963d596b$var$CharSetNone;\n};\n$ebef8a20963d596b$var$pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) {\n if (!$ebef8a20963d596b$var$hasOwn(state.unicodeProperties.nonBinary, name)) state.raise(\"Invalid property name\");\n if (!state.unicodeProperties.nonBinary[name].test(value)) state.raise(\"Invalid property value\");\n};\n$ebef8a20963d596b$var$pp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {\n if (state.unicodeProperties.binary.test(nameOrValue)) return $ebef8a20963d596b$var$CharSetOk;\n if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) return $ebef8a20963d596b$var$CharSetString;\n state.raise(\"Invalid property name\");\n};\n// UnicodePropertyName ::\n// UnicodePropertyNameCharacters\n$ebef8a20963d596b$var$pp$1.regexp_eatUnicodePropertyName = function(state) {\n var ch = 0;\n state.lastStringValue = \"\";\n while($ebef8a20963d596b$var$isUnicodePropertyNameCharacter(ch = state.current())){\n state.lastStringValue += $ebef8a20963d596b$var$codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== \"\";\n};\nfunction $ebef8a20963d596b$var$isUnicodePropertyNameCharacter(ch) {\n return $ebef8a20963d596b$var$isControlLetter(ch) || ch === 0x5F /* _ */ ;\n}\n// UnicodePropertyValue ::\n// UnicodePropertyValueCharacters\n$ebef8a20963d596b$var$pp$1.regexp_eatUnicodePropertyValue = function(state) {\n var ch = 0;\n state.lastStringValue = \"\";\n while($ebef8a20963d596b$var$isUnicodePropertyValueCharacter(ch = state.current())){\n state.lastStringValue += $ebef8a20963d596b$var$codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== \"\";\n};\nfunction $ebef8a20963d596b$var$isUnicodePropertyValueCharacter(ch) {\n return $ebef8a20963d596b$var$isUnicodePropertyNameCharacter(ch) || $ebef8a20963d596b$var$isDecimalDigit(ch);\n}\n// LoneUnicodePropertyNameOrValue ::\n// UnicodePropertyValueCharacters\n$ebef8a20963d596b$var$pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {\n return this.regexp_eatUnicodePropertyValue(state);\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass\n$ebef8a20963d596b$var$pp$1.regexp_eatCharacterClass = function(state) {\n if (state.eat(0x5B /* [ */ )) {\n var negate = state.eat(0x5E /* ^ */ );\n var result = this.regexp_classContents(state);\n if (!state.eat(0x5D /* ] */ )) state.raise(\"Unterminated character class\");\n if (negate && result === $ebef8a20963d596b$var$CharSetString) state.raise(\"Negated character class may contain strings\");\n return true;\n }\n return false;\n};\n// https://tc39.es/ecma262/#prod-ClassContents\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges\n$ebef8a20963d596b$var$pp$1.regexp_classContents = function(state) {\n if (state.current() === 0x5D /* ] */ ) return $ebef8a20963d596b$var$CharSetOk;\n if (state.switchV) return this.regexp_classSetExpression(state);\n this.regexp_nonEmptyClassRanges(state);\n return $ebef8a20963d596b$var$CharSetOk;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash\n$ebef8a20963d596b$var$pp$1.regexp_nonEmptyClassRanges = function(state) {\n while(this.regexp_eatClassAtom(state)){\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */ ) && this.regexp_eatClassAtom(state)) {\n var right = state.lastIntValue;\n if (state.switchU && (left === -1 || right === -1)) state.raise(\"Invalid character class\");\n if (left !== -1 && right !== -1 && left > right) state.raise(\"Range out of order in character class\");\n }\n }\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash\n$ebef8a20963d596b$var$pp$1.regexp_eatClassAtom = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */ )) {\n if (this.regexp_eatClassEscape(state)) return true;\n if (state.switchU) {\n // Make the same message as V8.\n var ch$1 = state.current();\n if (ch$1 === 0x63 /* c */ || $ebef8a20963d596b$var$isOctalDigit(ch$1)) state.raise(\"Invalid class escape\");\n state.raise(\"Invalid escape\");\n }\n state.pos = start;\n }\n var ch = state.current();\n if (ch !== 0x5D /* ] */ ) {\n state.lastIntValue = ch;\n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape\n$ebef8a20963d596b$var$pp$1.regexp_eatClassEscape = function(state) {\n var start = state.pos;\n if (state.eat(0x62 /* b */ )) {\n state.lastIntValue = 0x08; /* */ \n return true;\n }\n if (state.switchU && state.eat(0x2D /* - */ )) {\n state.lastIntValue = 0x2D; /* - */ \n return true;\n }\n if (!state.switchU && state.eat(0x63 /* c */ )) {\n if (this.regexp_eatClassControlLetter(state)) return true;\n state.pos = start;\n }\n return this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state);\n};\n// https://tc39.es/ecma262/#prod-ClassSetExpression\n// https://tc39.es/ecma262/#prod-ClassUnion\n// https://tc39.es/ecma262/#prod-ClassIntersection\n// https://tc39.es/ecma262/#prod-ClassSubtraction\n$ebef8a20963d596b$var$pp$1.regexp_classSetExpression = function(state) {\n var result = $ebef8a20963d596b$var$CharSetOk, subResult;\n if (this.regexp_eatClassSetRange(state)) ;\n else if (subResult = this.regexp_eatClassSetOperand(state)) {\n if (subResult === $ebef8a20963d596b$var$CharSetString) result = $ebef8a20963d596b$var$CharSetString;\n // https://tc39.es/ecma262/#prod-ClassIntersection\n var start = state.pos;\n while(state.eatChars([\n 0x26,\n 0x26\n ])){\n if (state.current() !== 0x26 /* & */ && (subResult = this.regexp_eatClassSetOperand(state))) {\n if (subResult !== $ebef8a20963d596b$var$CharSetString) result = $ebef8a20963d596b$var$CharSetOk;\n continue;\n }\n state.raise(\"Invalid character in character class\");\n }\n if (start !== state.pos) return result;\n // https://tc39.es/ecma262/#prod-ClassSubtraction\n while(state.eatChars([\n 0x2D,\n 0x2D\n ])){\n if (this.regexp_eatClassSetOperand(state)) continue;\n state.raise(\"Invalid character in character class\");\n }\n if (start !== state.pos) return result;\n } else state.raise(\"Invalid character in character class\");\n // https://tc39.es/ecma262/#prod-ClassUnion\n for(;;){\n if (this.regexp_eatClassSetRange(state)) continue;\n subResult = this.regexp_eatClassSetOperand(state);\n if (!subResult) return result;\n if (subResult === $ebef8a20963d596b$var$CharSetString) result = $ebef8a20963d596b$var$CharSetString;\n }\n};\n// https://tc39.es/ecma262/#prod-ClassSetRange\n$ebef8a20963d596b$var$pp$1.regexp_eatClassSetRange = function(state) {\n var start = state.pos;\n if (this.regexp_eatClassSetCharacter(state)) {\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */ ) && this.regexp_eatClassSetCharacter(state)) {\n var right = state.lastIntValue;\n if (left !== -1 && right !== -1 && left > right) state.raise(\"Range out of order in character class\");\n return true;\n }\n state.pos = start;\n }\n return false;\n};\n// https://tc39.es/ecma262/#prod-ClassSetOperand\n$ebef8a20963d596b$var$pp$1.regexp_eatClassSetOperand = function(state) {\n if (this.regexp_eatClassSetCharacter(state)) return $ebef8a20963d596b$var$CharSetOk;\n return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state);\n};\n// https://tc39.es/ecma262/#prod-NestedClass\n$ebef8a20963d596b$var$pp$1.regexp_eatNestedClass = function(state) {\n var start = state.pos;\n if (state.eat(0x5B /* [ */ )) {\n var negate = state.eat(0x5E /* ^ */ );\n var result = this.regexp_classContents(state);\n if (state.eat(0x5D /* ] */ )) {\n if (negate && result === $ebef8a20963d596b$var$CharSetString) state.raise(\"Negated character class may contain strings\");\n return result;\n }\n state.pos = start;\n }\n if (state.eat(0x5C /* \\ */ )) {\n var result$1 = this.regexp_eatCharacterClassEscape(state);\n if (result$1) return result$1;\n state.pos = start;\n }\n return null;\n};\n// https://tc39.es/ecma262/#prod-ClassStringDisjunction\n$ebef8a20963d596b$var$pp$1.regexp_eatClassStringDisjunction = function(state) {\n var start = state.pos;\n if (state.eatChars([\n 0x5C,\n 0x71\n ])) {\n if (state.eat(0x7B /* { */ )) {\n var result = this.regexp_classStringDisjunctionContents(state);\n if (state.eat(0x7D /* } */ )) return result;\n } else // Make the same message as V8.\n state.raise(\"Invalid escape\");\n state.pos = start;\n }\n return null;\n};\n// https://tc39.es/ecma262/#prod-ClassStringDisjunctionContents\n$ebef8a20963d596b$var$pp$1.regexp_classStringDisjunctionContents = function(state) {\n var result = this.regexp_classString(state);\n while(state.eat(0x7C /* | */ ))if (this.regexp_classString(state) === $ebef8a20963d596b$var$CharSetString) result = $ebef8a20963d596b$var$CharSetString;\n return result;\n};\n// https://tc39.es/ecma262/#prod-ClassString\n// https://tc39.es/ecma262/#prod-NonEmptyClassString\n$ebef8a20963d596b$var$pp$1.regexp_classString = function(state) {\n var count = 0;\n while(this.regexp_eatClassSetCharacter(state))count++;\n return count === 1 ? $ebef8a20963d596b$var$CharSetOk : $ebef8a20963d596b$var$CharSetString;\n};\n// https://tc39.es/ecma262/#prod-ClassSetCharacter\n$ebef8a20963d596b$var$pp$1.regexp_eatClassSetCharacter = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */ )) {\n if (this.regexp_eatCharacterEscape(state) || this.regexp_eatClassSetReservedPunctuator(state)) return true;\n if (state.eat(0x62 /* b */ )) {\n state.lastIntValue = 0x08; /* */ \n return true;\n }\n state.pos = start;\n return false;\n }\n var ch = state.current();\n if (ch < 0 || ch === state.lookahead() && $ebef8a20963d596b$var$isClassSetReservedDoublePunctuatorCharacter(ch)) return false;\n if ($ebef8a20963d596b$var$isClassSetSyntaxCharacter(ch)) return false;\n state.advance();\n state.lastIntValue = ch;\n return true;\n};\n// https://tc39.es/ecma262/#prod-ClassSetReservedDoublePunctuator\nfunction $ebef8a20963d596b$var$isClassSetReservedDoublePunctuatorCharacter(ch) {\n return ch === 0x21 /* ! */ || ch >= 0x23 /* # */ && ch <= 0x26 /* & */ || ch >= 0x2A /* * */ && ch <= 0x2C /* , */ || ch === 0x2E /* . */ || ch >= 0x3A /* : */ && ch <= 0x40 /* @ */ || ch === 0x5E /* ^ */ || ch === 0x60 /* ` */ || ch === 0x7E /* ~ */ ;\n}\n// https://tc39.es/ecma262/#prod-ClassSetSyntaxCharacter\nfunction $ebef8a20963d596b$var$isClassSetSyntaxCharacter(ch) {\n return ch === 0x28 /* ( */ || ch === 0x29 /* ) */ || ch === 0x2D /* - */ || ch === 0x2F /* / */ || ch >= 0x5B /* [ */ && ch <= 0x5D /* ] */ || ch >= 0x7B /* { */ && ch <= 0x7D /* } */ ;\n}\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\n$ebef8a20963d596b$var$pp$1.regexp_eatClassSetReservedPunctuator = function(state) {\n var ch = state.current();\n if ($ebef8a20963d596b$var$isClassSetReservedPunctuator(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true;\n }\n return false;\n};\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\nfunction $ebef8a20963d596b$var$isClassSetReservedPunctuator(ch) {\n return ch === 0x21 /* ! */ || ch === 0x23 /* # */ || ch === 0x25 /* % */ || ch === 0x26 /* & */ || ch === 0x2C /* , */ || ch === 0x2D /* - */ || ch >= 0x3A /* : */ && ch <= 0x3E /* > */ || ch === 0x40 /* @ */ || ch === 0x60 /* ` */ || ch === 0x7E /* ~ */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter\n$ebef8a20963d596b$var$pp$1.regexp_eatClassControlLetter = function(state) {\n var ch = state.current();\n if ($ebef8a20963d596b$var$isDecimalDigit(ch) || ch === 0x5F /* _ */ ) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\n$ebef8a20963d596b$var$pp$1.regexp_eatHexEscapeSequence = function(state) {\n var start = state.pos;\n if (state.eat(0x78 /* x */ )) {\n if (this.regexp_eatFixedHexDigits(state, 2)) return true;\n if (state.switchU) state.raise(\"Invalid escape\");\n state.pos = start;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits\n$ebef8a20963d596b$var$pp$1.regexp_eatDecimalDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while($ebef8a20963d596b$var$isDecimalDigit(ch = state.current())){\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */ );\n state.advance();\n }\n return state.pos !== start;\n};\nfunction $ebef8a20963d596b$var$isDecimalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits\n$ebef8a20963d596b$var$pp$1.regexp_eatHexDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while($ebef8a20963d596b$var$isHexDigit(ch = state.current())){\n state.lastIntValue = 16 * state.lastIntValue + $ebef8a20963d596b$var$hexToInt(ch);\n state.advance();\n }\n return state.pos !== start;\n};\nfunction $ebef8a20963d596b$var$isHexDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */ || ch >= 0x41 /* A */ && ch <= 0x46 /* F */ || ch >= 0x61 /* a */ && ch <= 0x66 /* f */ ;\n}\nfunction $ebef8a20963d596b$var$hexToInt(ch) {\n if (ch >= 0x41 /* A */ && ch <= 0x46 /* F */ ) return 10 + (ch - 0x41 /* A */ );\n if (ch >= 0x61 /* a */ && ch <= 0x66 /* f */ ) return 10 + (ch - 0x61 /* a */ );\n return ch - 0x30 /* 0 */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence\n// Allows only 0-377(octal) i.e. 0-255(decimal).\n$ebef8a20963d596b$var$pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {\n if (this.regexp_eatOctalDigit(state)) {\n var n1 = state.lastIntValue;\n if (this.regexp_eatOctalDigit(state)) {\n var n2 = state.lastIntValue;\n if (n1 <= 3 && this.regexp_eatOctalDigit(state)) state.lastIntValue = n1 * 64 + n2 * 8 + state.lastIntValue;\n else state.lastIntValue = n1 * 8 + n2;\n } else state.lastIntValue = n1;\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit\n$ebef8a20963d596b$var$pp$1.regexp_eatOctalDigit = function(state) {\n var ch = state.current();\n if ($ebef8a20963d596b$var$isOctalDigit(ch)) {\n state.lastIntValue = ch - 0x30; /* 0 */ \n state.advance();\n return true;\n }\n state.lastIntValue = 0;\n return false;\n};\nfunction $ebef8a20963d596b$var$isOctalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit\n// And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\n$ebef8a20963d596b$var$pp$1.regexp_eatFixedHexDigits = function(state, length) {\n var start = state.pos;\n state.lastIntValue = 0;\n for(var i = 0; i < length; ++i){\n var ch = state.current();\n if (!$ebef8a20963d596b$var$isHexDigit(ch)) {\n state.pos = start;\n return false;\n }\n state.lastIntValue = 16 * state.lastIntValue + $ebef8a20963d596b$var$hexToInt(ch);\n state.advance();\n }\n return true;\n};\n// Object type used to represent tokens. Note that normally, tokens\n// simply exist as properties on the parser object. This is only\n// used for the onToken callback and the external tokenizer.\nvar $ebef8a20963d596b$export$50792b0e93539fde = function Token(p) {\n this.type = p.type;\n this.value = p.value;\n this.start = p.start;\n this.end = p.end;\n if (p.options.locations) this.loc = new $ebef8a20963d596b$export$7387db7caf96fcdb(p, p.startLoc, p.endLoc);\n if (p.options.ranges) this.range = [\n p.start,\n p.end\n ];\n};\n// ## Tokenizer\nvar $ebef8a20963d596b$var$pp = $ebef8a20963d596b$export$7acfa6ed01010e37.prototype;\n// Move to the next token\n$ebef8a20963d596b$var$pp.next = function(ignoreEscapeSequenceInKeyword) {\n if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc) this.raiseRecoverable(this.start, \"Escape sequence in keyword \" + this.type.keyword);\n if (this.options.onToken) this.options.onToken(new $ebef8a20963d596b$export$50792b0e93539fde(this));\n this.lastTokEnd = this.end;\n this.lastTokStart = this.start;\n this.lastTokEndLoc = this.endLoc;\n this.lastTokStartLoc = this.startLoc;\n this.nextToken();\n};\n$ebef8a20963d596b$var$pp.getToken = function() {\n this.next();\n return new $ebef8a20963d596b$export$50792b0e93539fde(this);\n};\n// If we're in an ES6 environment, make parsers iterable\nif (typeof Symbol !== \"undefined\") $ebef8a20963d596b$var$pp[Symbol.iterator] = function() {\n var this$1$1 = this;\n return {\n next: function() {\n var token = this$1$1.getToken();\n return {\n done: token.type === $ebef8a20963d596b$export$b54c7ea7aabba5c8.eof,\n value: token\n };\n }\n };\n};\n// Toggle strict mode. Re-reads the next number or string to please\n// pedantic tests (`\"use strict\"; 010;` should fail).\n// Read a single token, updating the parser object's token-related\n// properties.\n$ebef8a20963d596b$var$pp.nextToken = function() {\n var curContext = this.curContext();\n if (!curContext || !curContext.preserveSpace) this.skipSpace();\n this.start = this.pos;\n if (this.options.locations) this.startLoc = this.curPosition();\n if (this.pos >= this.input.length) return this.finishToken($ebef8a20963d596b$export$b54c7ea7aabba5c8.eof);\n if (curContext.override) return curContext.override(this);\n else this.readToken(this.fullCharCodeAtPos());\n};\n$ebef8a20963d596b$var$pp.readToken = function(code) {\n // Identifier or keyword. '\\uXXXX' sequences are allowed in\n // identifiers, so '\\' also dispatches to that.\n if ($ebef8a20963d596b$export$56b48cc5d7560ffb(code, this.options.ecmaVersion >= 6) || code === 92 /* '\\' */ ) return this.readWord();\n return this.getTokenFromCode(code);\n};\n$ebef8a20963d596b$var$pp.fullCharCodeAtPos = function() {\n var code = this.input.charCodeAt(this.pos);\n if (code <= 0xd7ff || code >= 0xdc00) return code;\n var next = this.input.charCodeAt(this.pos + 1);\n return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00;\n};\n$ebef8a20963d596b$var$pp.skipBlockComment = function() {\n var startLoc = this.options.onComment && this.curPosition();\n var start = this.pos, end = this.input.indexOf(\"*/\", this.pos += 2);\n if (end === -1) this.raise(this.pos - 2, \"Unterminated comment\");\n this.pos = end + 2;\n if (this.options.locations) for(var nextBreak = void 0, pos = start; (nextBreak = $ebef8a20963d596b$var$nextLineBreak(this.input, pos, this.pos)) > -1;){\n ++this.curLine;\n pos = this.lineStart = nextBreak;\n }\n if (this.options.onComment) this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos, startLoc, this.curPosition());\n};\n$ebef8a20963d596b$var$pp.skipLineComment = function(startSkip) {\n var start = this.pos;\n var startLoc = this.options.onComment && this.curPosition();\n var ch = this.input.charCodeAt(this.pos += startSkip);\n while(this.pos < this.input.length && !$ebef8a20963d596b$export$2c19a3e3b4008fff(ch))ch = this.input.charCodeAt(++this.pos);\n if (this.options.onComment) this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos, startLoc, this.curPosition());\n};\n// Called at the start of the parse and after every token. Skips\n// whitespace and comments, and.\n$ebef8a20963d596b$var$pp.skipSpace = function() {\n loop: while(this.pos < this.input.length){\n var ch = this.input.charCodeAt(this.pos);\n switch(ch){\n case 32:\n case 160:\n ++this.pos;\n break;\n case 13:\n if (this.input.charCodeAt(this.pos + 1) === 10) ++this.pos;\n case 10:\n case 8232:\n case 8233:\n ++this.pos;\n if (this.options.locations) {\n ++this.curLine;\n this.lineStart = this.pos;\n }\n break;\n case 47:\n switch(this.input.charCodeAt(this.pos + 1)){\n case 42:\n this.skipBlockComment();\n break;\n case 47:\n this.skipLineComment(2);\n break;\n default:\n break loop;\n }\n break;\n default:\n if (ch > 8 && ch < 14 || ch >= 5760 && $ebef8a20963d596b$export$268622f0f1cbc82b.test(String.fromCharCode(ch))) ++this.pos;\n else break loop;\n }\n }\n};\n// Called at the end of every token. Sets `end`, `val`, and\n// maintains `context` and `exprAllowed`, and skips the space after\n// the token, so that the next one's `start` will point at the\n// right position.\n$ebef8a20963d596b$var$pp.finishToken = function(type, val) {\n this.end = this.pos;\n if (this.options.locations) this.endLoc = this.curPosition();\n var prevType = this.type;\n this.type = type;\n this.value = val;\n this.updateContext(prevType);\n};\n// ### Token reading\n// This is the function that is called to fetch the next token. It\n// is somewhat obscure, because it works in character codes rather\n// than characters, and because operator parsing has been inlined\n// into it.\n//\n// All in the name of speed.\n//\n$ebef8a20963d596b$var$pp.readToken_dot = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next >= 48 && next <= 57) return this.readNumber(true);\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) {\n this.pos += 3;\n return this.finishToken($ebef8a20963d596b$export$b54c7ea7aabba5c8.ellipsis);\n } else {\n ++this.pos;\n return this.finishToken($ebef8a20963d596b$export$b54c7ea7aabba5c8.dot);\n }\n};\n$ebef8a20963d596b$var$pp.readToken_slash = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (this.exprAllowed) {\n ++this.pos;\n return this.readRegexp();\n }\n if (next === 61) return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.slash, 1);\n};\n$ebef8a20963d596b$var$pp.readToken_mult_modulo_exp = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n var tokentype = code === 42 ? $ebef8a20963d596b$export$b54c7ea7aabba5c8.star : $ebef8a20963d596b$export$b54c7ea7aabba5c8.modulo;\n // exponentiation operator ** and **=\n if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) {\n ++size;\n tokentype = $ebef8a20963d596b$export$b54c7ea7aabba5c8.starstar;\n next = this.input.charCodeAt(this.pos + 2);\n }\n if (next === 61) return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.assign, size + 1);\n return this.finishOp(tokentype, size);\n};\n$ebef8a20963d596b$var$pp.readToken_pipe_amp = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (this.options.ecmaVersion >= 12) {\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (next2 === 61) return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.assign, 3);\n }\n return this.finishOp(code === 124 ? $ebef8a20963d596b$export$b54c7ea7aabba5c8.logicalOR : $ebef8a20963d596b$export$b54c7ea7aabba5c8.logicalAND, 2);\n }\n if (next === 61) return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp(code === 124 ? $ebef8a20963d596b$export$b54c7ea7aabba5c8.bitwiseOR : $ebef8a20963d596b$export$b54c7ea7aabba5c8.bitwiseAND, 1);\n};\n$ebef8a20963d596b$var$pp.readToken_caret = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === 61) return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.bitwiseXOR, 1);\n};\n$ebef8a20963d596b$var$pp.readToken_plus_min = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || $ebef8a20963d596b$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.pos)))) {\n // A `-->` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken();\n }\n return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.incDec, 2);\n }\n if (next === 61) return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.plusMin, 1);\n};\n$ebef8a20963d596b$var$pp.readToken_lt_gt = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.assign, size + 1);\n return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.bitShift, size);\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45) {\n // `` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types$1.incDec, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.plusMin, 1)\n};\n\npp.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(types$1.bitShift, size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // ` convert colors\nimport './src/io/cmyk/index.js';\nimport './src/io/css/index.js';\nimport './src/io/gl/index.js';\nimport './src/io/hcg/index.js';\nimport './src/io/hex/index.js';\nimport './src/io/hsi/index.js';\nimport './src/io/hsl/index.js';\nimport './src/io/hsv/index.js';\nimport './src/io/lab/index.js';\nimport './src/io/lch/index.js';\nimport './src/io/named/index.js';\nimport './src/io/num/index.js';\nimport './src/io/rgb/index.js';\nimport './src/io/temp/index.js';\nimport './src/io/oklab/index.js';\nimport './src/io/oklch/index.js';\n\n// operators --> modify existing Colors\nimport './src/ops/alpha.js';\nimport './src/ops/clipped.js';\nimport './src/ops/darken.js';\nimport './src/ops/get.js';\nimport './src/ops/luminance.js';\nimport './src/ops/mix.js';\nimport './src/ops/premultiply.js';\nimport './src/ops/saturate.js';\nimport './src/ops/set.js';\nimport './src/ops/shade.js';\n\n// interpolators\nimport './src/interpolator/rgb.js';\nimport './src/interpolator/lrgb.js';\nimport './src/interpolator/lab.js';\nimport './src/interpolator/lch.js';\nimport './src/interpolator/num.js';\nimport './src/interpolator/hcg.js';\nimport './src/interpolator/hsi.js';\nimport './src/interpolator/hsl.js';\nimport './src/interpolator/hsv.js';\nimport './src/interpolator/oklab.js';\nimport './src/interpolator/oklch.js';\n\n// generators -- > create new colors\nimport average from './src/generator/average.js';\nimport bezier from './src/generator/bezier.js';\nimport blend from './src/generator/blend.js';\nimport cubehelix from './src/generator/cubehelix.js';\nimport mix from './src/generator/mix.js';\nimport random from './src/generator/random.js';\nimport scale from './src/generator/scale.js';\n\n// other utility methods\nimport { analyze } from './src/utils/analyze.js';\nimport contrast from './src/utils/contrast.js';\nimport deltaE from './src/utils/delta-e.js';\nimport distance from './src/utils/distance.js';\nimport { limits } from './src/utils/analyze.js';\nimport valid from './src/utils/valid.js';\nimport input from './src/io/input.js';\n\n// scale\nimport scales from './src/utils/scales.js';\n\n// colors\nimport colors from './src/colors/w3cx11.js';\nimport brewer from './src/colors/colorbrewer.js';\n\nObject.assign(chroma, {\n average,\n bezier,\n blend,\n cubehelix,\n mix,\n interpolate: mix,\n random,\n scale,\n analyze,\n contrast,\n deltaE,\n distance,\n limits,\n valid,\n scales,\n input,\n colors,\n brewer\n});\n\nexport default chroma;\n","import Color from './Color.js';\nimport { version } from './version.js';\n\nconst chroma = (...args) => {\n return new chroma.Color(...args);\n};\n\nchroma.Color = Color;\nchroma.version = version;\n\nexport default chroma;\n","import { last, clip_rgb, type } from './utils/index.js';\nimport _input from './io/input.js';\n\nclass Color {\n constructor(...args) {\n const me = this;\n if (\n type(args[0]) === 'object' &&\n args[0].constructor &&\n args[0].constructor === this.constructor\n ) {\n // the argument is already a Color instance\n return args[0];\n }\n // last argument could be the mode\n let mode = last(args);\n let autodetect = false;\n if (!mode) {\n autodetect = true;\n if (!_input.sorted) {\n _input.autodetect = _input.autodetect.sort((a, b) => b.p - a.p);\n _input.sorted = true;\n }\n // auto-detect format\n for (let chk of _input.autodetect) {\n mode = chk.test(...args);\n if (mode) break;\n }\n }\n if (_input.format[mode]) {\n const rgb = _input.format[mode].apply(\n null,\n autodetect ? args : args.slice(0, -1)\n );\n me._rgb = clip_rgb(rgb);\n } else {\n throw new Error('unknown format: ' + args);\n }\n // add alpha channel\n if (me._rgb.length === 3) me._rgb.push(1);\n }\n toString() {\n if (type(this.hex) == 'function') return this.hex();\n return `[${this._rgb.join(',')}]`;\n }\n}\nexport default Color;\n","const { PI, min, max } = Math;\n\nexport { default as clip_rgb } from './clip_rgb.js';\nexport { default as limit } from './limit.js';\nexport { default as type } from './type.js';\nexport { default as unpack } from './unpack.js';\nexport { default as last } from './last.js';\n\nconst TWOPI = PI * 2;\nconst PITHIRD = PI / 3;\nconst DEG2RAD = PI / 180;\nconst RAD2DEG = 180 / PI;\n\nexport { PI, TWOPI, PITHIRD, DEG2RAD, RAD2DEG, min, max };\n","import limit from './limit.js';\n\nexport default (rgb) => {\n rgb._clipped = false;\n rgb._unclipped = rgb.slice(0);\n for (let i = 0; i <= 3; i++) {\n if (i < 3) {\n if (rgb[i] < 0 || rgb[i] > 255) rgb._clipped = true;\n rgb[i] = limit(rgb[i], 0, 255);\n } else if (i === 3) {\n rgb[i] = limit(rgb[i], 0, 1);\n }\n }\n return rgb;\n};\n","import { min, max } from './index.js';\n\nexport default (x, low = 0, high = 1) => {\n return min(max(low, x), high);\n};\n","// ported from jQuery's $.type\nconst classToType = {};\nfor (let name of [\n 'Boolean',\n 'Number',\n 'String',\n 'Function',\n 'Array',\n 'Date',\n 'RegExp',\n 'Undefined',\n 'Null'\n]) {\n classToType[`[object ${name}]`] = name.toLowerCase();\n}\nexport default function (obj) {\n return classToType[Object.prototype.toString.call(obj)] || 'object';\n}\n","import type from './type.js';\n\nexport default (args, keyOrder = null) => {\n // if called with more than 3 arguments, we return the arguments\n if (args.length >= 3) return Array.prototype.slice.call(args);\n // with less than 3 args we check if first arg is object\n // and use the keyOrder string to extract and sort properties\n if (type(args[0]) == 'object' && keyOrder) {\n return keyOrder\n .split('')\n .filter((k) => args[0][k] !== undefined)\n .map((k) => args[0][k]);\n }\n // otherwise we just return the first argument\n // (which we suppose is an array of args)\n return args[0];\n};\n","import type from './type.js';\n\nexport default (args) => {\n if (args.length < 2) return null;\n const l = args.length - 1;\n if (type(args[l]) == 'string') return args[l].toLowerCase();\n return null;\n};\n","export default {\n format: {},\n autodetect: []\n};\n","// this gets updated automatically\nexport const version = '2.6.0';\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { unpack, type } from '../../utils/index.js';\nimport cmyk2rgb from './cmyk2rgb.js';\nimport rgb2cmyk from './rgb2cmyk.js';\n\nColor.prototype.cmyk = function () {\n return rgb2cmyk(this._rgb);\n};\n\nchroma.cmyk = (...args) => new Color(...args, 'cmyk');\n\ninput.format.cmyk = cmyk2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'cmyk');\n if (type(args) === 'array' && args.length === 4) {\n return 'cmyk';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\n\nconst cmyk2rgb = (...args) => {\n args = unpack(args, 'cmyk');\n const [c, m, y, k] = args;\n const alpha = args.length > 4 ? args[4] : 1;\n if (k === 1) return [0, 0, 0, alpha];\n return [\n c >= 1 ? 0 : 255 * (1 - c) * (1 - k), // r\n m >= 1 ? 0 : 255 * (1 - m) * (1 - k), // g\n y >= 1 ? 0 : 255 * (1 - y) * (1 - k), // b\n alpha\n ];\n};\n\nexport default cmyk2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { max } = Math;\n\nconst rgb2cmyk = (...args) => {\n let [r, g, b] = unpack(args, 'rgb');\n r = r / 255;\n g = g / 255;\n b = b / 255;\n const k = 1 - max(r, max(g, b));\n const f = k < 1 ? 1 / (1 - k) : 0;\n const c = (1 - r - k) * f;\n const m = (1 - g - k) * f;\n const y = (1 - b - k) * f;\n return [c, m, y, k];\n};\n\nexport default rgb2cmyk;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\n\nimport rgb2css from './rgb2css.js';\nimport css2rgb from './css2rgb.js';\n\nColor.prototype.css = function (mode) {\n return rgb2css(this._rgb, mode);\n};\n\nchroma.css = (...args) => new Color(...args, 'css');\n\ninput.format.css = css2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (h, ...rest) => {\n if (!rest.length && type(h) === 'string' && css2rgb.test(h)) {\n return 'css';\n }\n }\n});\n","import { unpack, last } from '../../utils/index.js';\nimport hsl2css from './hsl2css.js';\nimport rgb2hsl from '../hsl/rgb2hsl.js';\nconst { round } = Math;\n\n/*\n * supported arguments:\n * - rgb2css(r,g,b)\n * - rgb2css(r,g,b,a)\n * - rgb2css([r,g,b], mode)\n * - rgb2css([r,g,b,a], mode)\n * - rgb2css({r,g,b,a}, mode)\n */\nconst rgb2css = (...args) => {\n const rgba = unpack(args, 'rgba');\n let mode = last(args) || 'rgb';\n if (mode.substr(0, 3) == 'hsl') {\n return hsl2css(rgb2hsl(rgba), mode);\n }\n rgba[0] = round(rgba[0]);\n rgba[1] = round(rgba[1]);\n rgba[2] = round(rgba[2]);\n if (mode === 'rgba' || (rgba.length > 3 && rgba[3] < 1)) {\n rgba[3] = rgba.length > 3 ? rgba[3] : 1;\n mode = 'rgba';\n }\n return `${mode}(${rgba.slice(0, mode === 'rgb' ? 3 : 4).join(',')})`;\n};\n\nexport default rgb2css;\n","import { unpack, last } from '../../utils/index.js';\nconst rnd = (a) => Math.round(a * 100) / 100;\n\n/*\n * supported arguments:\n * - hsl2css(h,s,l)\n * - hsl2css(h,s,l,a)\n * - hsl2css([h,s,l], mode)\n * - hsl2css([h,s,l,a], mode)\n * - hsl2css({h,s,l,a}, mode)\n */\nconst hsl2css = (...args) => {\n const hsla = unpack(args, 'hsla');\n let mode = last(args) || 'lsa';\n hsla[0] = rnd(hsla[0] || 0);\n hsla[1] = rnd(hsla[1] * 100) + '%';\n hsla[2] = rnd(hsla[2] * 100) + '%';\n if (mode === 'hsla' || (hsla.length > 3 && hsla[3] < 1)) {\n hsla[3] = hsla.length > 3 ? hsla[3] : 1;\n mode = 'hsla';\n } else {\n hsla.length = 3;\n }\n return `${mode}(${hsla.join(',')})`;\n};\n\nexport default hsl2css;\n","import { unpack, min, max } from '../../utils/index.js';\n\n/*\n * supported arguments:\n * - rgb2hsl(r,g,b)\n * - rgb2hsl(r,g,b,a)\n * - rgb2hsl([r,g,b])\n * - rgb2hsl([r,g,b,a])\n * - rgb2hsl({r,g,b,a})\n */\nconst rgb2hsl = (...args) => {\n args = unpack(args, 'rgba');\n let [r, g, b] = args;\n\n r /= 255;\n g /= 255;\n b /= 255;\n\n const minRgb = min(r, g, b);\n const maxRgb = max(r, g, b);\n\n const l = (maxRgb + minRgb) / 2;\n let s, h;\n\n if (maxRgb === minRgb) {\n s = 0;\n h = Number.NaN;\n } else {\n s =\n l < 0.5\n ? (maxRgb - minRgb) / (maxRgb + minRgb)\n : (maxRgb - minRgb) / (2 - maxRgb - minRgb);\n }\n\n if (r == maxRgb) h = (g - b) / (maxRgb - minRgb);\n else if (g == maxRgb) h = 2 + (b - r) / (maxRgb - minRgb);\n else if (b == maxRgb) h = 4 + (r - g) / (maxRgb - minRgb);\n\n h *= 60;\n if (h < 0) h += 360;\n if (args.length > 3 && args[3] !== undefined) return [h, s, l, args[3]];\n return [h, s, l];\n};\n\nexport default rgb2hsl;\n","import hsl2rgb from '../hsl/hsl2rgb.js';\nimport input from '../input.js';\n\nconst RE_RGB = /^rgb\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*\\)$/;\nconst RE_RGBA =\n /^rgba\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\nconst RE_RGB_PCT =\n /^rgb\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/;\nconst RE_RGBA_PCT =\n /^rgba\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\nconst RE_HSL =\n /^hsl\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/;\nconst RE_HSLA =\n /^hsla\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\n\nconst { round } = Math;\n\nconst css2rgb = (css) => {\n css = css.toLowerCase().trim();\n let m;\n\n if (input.format.named) {\n try {\n return input.format.named(css);\n // eslint-disable-next-line\n } catch (e) {}\n }\n\n // rgb(250,20,0)\n if ((m = css.match(RE_RGB))) {\n const rgb = m.slice(1, 4);\n for (let i = 0; i < 3; i++) {\n rgb[i] = +rgb[i];\n }\n rgb[3] = 1; // default alpha\n return rgb;\n }\n\n // rgba(250,20,0,0.4)\n if ((m = css.match(RE_RGBA))) {\n const rgb = m.slice(1, 5);\n for (let i = 0; i < 4; i++) {\n rgb[i] = +rgb[i];\n }\n return rgb;\n }\n\n // rgb(100%,0%,0%)\n if ((m = css.match(RE_RGB_PCT))) {\n const rgb = m.slice(1, 4);\n for (let i = 0; i < 3; i++) {\n rgb[i] = round(rgb[i] * 2.55);\n }\n rgb[3] = 1; // default alpha\n return rgb;\n }\n\n // rgba(100%,0%,0%,0.4)\n if ((m = css.match(RE_RGBA_PCT))) {\n const rgb = m.slice(1, 5);\n for (let i = 0; i < 3; i++) {\n rgb[i] = round(rgb[i] * 2.55);\n }\n rgb[3] = +rgb[3];\n return rgb;\n }\n\n // hsl(0,100%,50%)\n if ((m = css.match(RE_HSL))) {\n const hsl = m.slice(1, 4);\n hsl[1] *= 0.01;\n hsl[2] *= 0.01;\n const rgb = hsl2rgb(hsl);\n rgb[3] = 1;\n return rgb;\n }\n\n // hsla(0,100%,50%,0.5)\n if ((m = css.match(RE_HSLA))) {\n const hsl = m.slice(1, 4);\n hsl[1] *= 0.01;\n hsl[2] *= 0.01;\n const rgb = hsl2rgb(hsl);\n rgb[3] = +m[4]; // default alpha = 1\n return rgb;\n }\n};\n\ncss2rgb.test = (s) => {\n return (\n RE_RGB.test(s) ||\n RE_RGBA.test(s) ||\n RE_RGB_PCT.test(s) ||\n RE_RGBA_PCT.test(s) ||\n RE_HSL.test(s) ||\n RE_HSLA.test(s)\n );\n};\n\nexport default css2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { round } = Math;\n\nconst hsl2rgb = (...args) => {\n args = unpack(args, 'hsl');\n const [h, s, l] = args;\n let r, g, b;\n if (s === 0) {\n r = g = b = l * 255;\n } else {\n const t3 = [0, 0, 0];\n const c = [0, 0, 0];\n const t2 = l < 0.5 ? l * (1 + s) : l + s - l * s;\n const t1 = 2 * l - t2;\n const h_ = h / 360;\n t3[0] = h_ + 1 / 3;\n t3[1] = h_;\n t3[2] = h_ - 1 / 3;\n for (let i = 0; i < 3; i++) {\n if (t3[i] < 0) t3[i] += 1;\n if (t3[i] > 1) t3[i] -= 1;\n if (6 * t3[i] < 1) c[i] = t1 + (t2 - t1) * 6 * t3[i];\n else if (2 * t3[i] < 1) c[i] = t2;\n else if (3 * t3[i] < 2) c[i] = t1 + (t2 - t1) * (2 / 3 - t3[i]) * 6;\n else c[i] = t1;\n }\n [r, g, b] = [round(c[0] * 255), round(c[1] * 255), round(c[2] * 255)];\n }\n if (args.length > 3) {\n // keep alpha channel\n return [r, g, b, args[3]];\n }\n return [r, g, b, 1];\n};\n\nexport default hsl2rgb;\n","import Color from '../../Color.js';\nimport chroma from '../../chroma.js';\nimport input from '../input.js';\nimport { unpack } from '../../utils/index.js';\n\ninput.format.gl = (...args) => {\n const rgb = unpack(args, 'rgba');\n rgb[0] *= 255;\n rgb[1] *= 255;\n rgb[2] *= 255;\n return rgb;\n};\n\nchroma.gl = (...args) => new Color(...args, 'gl');\n\nColor.prototype.gl = function () {\n const rgb = this._rgb;\n return [rgb[0] / 255, rgb[1] / 255, rgb[2] / 255, rgb[3]];\n};\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hcg2rgb from './hcg2rgb.js';\nimport rgb2hcg from './rgb2hcg.js';\n\nColor.prototype.hcg = function () {\n return rgb2hcg(this._rgb);\n};\n\nchroma.hcg = (...args) => new Color(...args, 'hcg');\n\ninput.format.hcg = hcg2rgb;\n\ninput.autodetect.push({\n p: 1,\n test: (...args) => {\n args = unpack(args, 'hcg');\n if (type(args) === 'array' && args.length === 3) {\n return 'hcg';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { floor } = Math;\n\n/*\n * this is basically just HSV with some minor tweaks\n *\n * hue.. [0..360]\n * chroma .. [0..1]\n * grayness .. [0..1]\n */\n\nconst hcg2rgb = (...args) => {\n args = unpack(args, 'hcg');\n let [h, c, _g] = args;\n let r, g, b;\n _g = _g * 255;\n const _c = c * 255;\n if (c === 0) {\n r = g = b = _g;\n } else {\n if (h === 360) h = 0;\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 60;\n const i = floor(h);\n const f = h - i;\n const p = _g * (1 - c);\n const q = p + _c * (1 - f);\n const t = p + _c * f;\n const v = p + _c;\n switch (i) {\n case 0:\n [r, g, b] = [v, t, p];\n break;\n case 1:\n [r, g, b] = [q, v, p];\n break;\n case 2:\n [r, g, b] = [p, v, t];\n break;\n case 3:\n [r, g, b] = [p, q, v];\n break;\n case 4:\n [r, g, b] = [t, p, v];\n break;\n case 5:\n [r, g, b] = [v, p, q];\n break;\n }\n }\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default hcg2rgb;\n","import { unpack, max, min } from '../../utils/index.js';\n\nconst rgb2hcg = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const minRgb = min(r, g, b);\n const maxRgb = max(r, g, b);\n const delta = maxRgb - minRgb;\n const c = (delta * 100) / 255;\n const _g = (minRgb / (255 - delta)) * 100;\n let h;\n if (delta === 0) {\n h = Number.NaN;\n } else {\n if (r === maxRgb) h = (g - b) / delta;\n if (g === maxRgb) h = 2 + (b - r) / delta;\n if (b === maxRgb) h = 4 + (r - g) / delta;\n h *= 60;\n if (h < 0) h += 360;\n }\n return [h, c, _g];\n};\n\nexport default rgb2hcg;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport { type } from '../../utils/index.js';\nimport input from '../input.js';\nimport hex2rgb from './hex2rgb.js';\nimport rgb2hex from './rgb2hex.js';\n\nColor.prototype.hex = function (mode) {\n return rgb2hex(this._rgb, mode);\n};\n\nchroma.hex = (...args) => new Color(...args, 'hex');\n\ninput.format.hex = hex2rgb;\ninput.autodetect.push({\n p: 4,\n test: (h, ...rest) => {\n if (\n !rest.length &&\n type(h) === 'string' &&\n [3, 4, 5, 6, 7, 8, 9].indexOf(h.length) >= 0\n ) {\n return 'hex';\n }\n }\n});\n","const RE_HEX = /^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;\nconst RE_HEXA = /^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;\n\nconst hex2rgb = (hex) => {\n if (hex.match(RE_HEX)) {\n // remove optional leading #\n if (hex.length === 4 || hex.length === 7) {\n hex = hex.substr(1);\n }\n // expand short-notation to full six-digit\n if (hex.length === 3) {\n hex = hex.split('');\n hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];\n }\n const u = parseInt(hex, 16);\n const r = u >> 16;\n const g = (u >> 8) & 0xff;\n const b = u & 0xff;\n return [r, g, b, 1];\n }\n\n // match rgba hex format, eg #FF000077\n if (hex.match(RE_HEXA)) {\n if (hex.length === 5 || hex.length === 9) {\n // remove optional leading #\n hex = hex.substr(1);\n }\n // expand short-notation to full eight-digit\n if (hex.length === 4) {\n hex = hex.split('');\n hex =\n hex[0] +\n hex[0] +\n hex[1] +\n hex[1] +\n hex[2] +\n hex[2] +\n hex[3] +\n hex[3];\n }\n const u = parseInt(hex, 16);\n const r = (u >> 24) & 0xff;\n const g = (u >> 16) & 0xff;\n const b = (u >> 8) & 0xff;\n const a = Math.round(((u & 0xff) / 0xff) * 100) / 100;\n return [r, g, b, a];\n }\n\n // we used to check for css colors here\n // if _input.css? and rgb = _input.css hex\n // return rgb\n\n throw new Error(`unknown hex color: ${hex}`);\n};\n\nexport default hex2rgb;\n","import { unpack, last } from '../../utils/index.js';\nconst { round } = Math;\n\nconst rgb2hex = (...args) => {\n let [r, g, b, a] = unpack(args, 'rgba');\n let mode = last(args) || 'auto';\n if (a === undefined) a = 1;\n if (mode === 'auto') {\n mode = a < 1 ? 'rgba' : 'rgb';\n }\n r = round(r);\n g = round(g);\n b = round(b);\n const u = (r << 16) | (g << 8) | b;\n let str = '000000' + u.toString(16); //#.toUpperCase();\n str = str.substr(str.length - 6);\n let hxa = '0' + round(a * 255).toString(16);\n hxa = hxa.substr(hxa.length - 2);\n switch (mode.toLowerCase()) {\n case 'rgba':\n return `#${str}${hxa}`;\n case 'argb':\n return `#${hxa}${str}`;\n default:\n return `#${str}`;\n }\n};\n\nexport default rgb2hex;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsi2rgb from './hsi2rgb.js';\nimport rgb2hsi from './rgb2hsi.js';\n\nColor.prototype.hsi = function () {\n return rgb2hsi(this._rgb);\n};\n\nchroma.hsi = (...args) => new Color(...args, 'hsi');\n\ninput.format.hsi = hsi2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsi');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsi';\n }\n }\n});\n","import { unpack, limit, TWOPI, PITHIRD } from '../../utils/index.js';\nconst { cos } = Math;\n\n/*\n * hue [0..360]\n * saturation [0..1]\n * intensity [0..1]\n */\nconst hsi2rgb = (...args) => {\n /*\n borrowed from here:\n http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/hsi2rgb.cpp\n */\n args = unpack(args, 'hsi');\n let [h, s, i] = args;\n let r, g, b;\n\n if (isNaN(h)) h = 0;\n if (isNaN(s)) s = 0;\n // normalize hue\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 360;\n if (h < 1 / 3) {\n b = (1 - s) / 3;\n r = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n g = 1 - (b + r);\n } else if (h < 2 / 3) {\n h -= 1 / 3;\n r = (1 - s) / 3;\n g = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n b = 1 - (r + g);\n } else {\n h -= 2 / 3;\n g = (1 - s) / 3;\n b = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n r = 1 - (g + b);\n }\n r = limit(i * r * 3);\n g = limit(i * g * 3);\n b = limit(i * b * 3);\n return [r * 255, g * 255, b * 255, args.length > 3 ? args[3] : 1];\n};\n\nexport default hsi2rgb;\n","import { unpack, TWOPI } from '../../utils/index.js';\nconst { min, sqrt, acos } = Math;\n\nconst rgb2hsi = (...args) => {\n /*\n borrowed from here:\n http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/rgb2hsi.cpp\n */\n let [r, g, b] = unpack(args, 'rgb');\n r /= 255;\n g /= 255;\n b /= 255;\n let h;\n const min_ = min(r, g, b);\n const i = (r + g + b) / 3;\n const s = i > 0 ? 1 - min_ / i : 0;\n if (s === 0) {\n h = NaN;\n } else {\n h = (r - g + (r - b)) / 2;\n h /= sqrt((r - g) * (r - g) + (r - b) * (g - b));\n h = acos(h);\n if (b > g) {\n h = TWOPI - h;\n }\n h /= TWOPI;\n }\n return [h * 360, s, i];\n};\n\nexport default rgb2hsi;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsl2rgb from './hsl2rgb.js';\nimport rgb2hsl from './rgb2hsl.js';\n\nColor.prototype.hsl = function () {\n return rgb2hsl(this._rgb);\n};\n\nchroma.hsl = (...args) => new Color(...args, 'hsl');\n\ninput.format.hsl = hsl2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsl');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsl';\n }\n }\n});\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsv2rgb from './hsv2rgb.js';\nimport rgb2hsv from './rgb2hsv.js';\n\nColor.prototype.hsv = function () {\n return rgb2hsv(this._rgb);\n};\n\nchroma.hsv = (...args) => new Color(...args, 'hsv');\n\ninput.format.hsv = hsv2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsv');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsv';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { floor } = Math;\n\nconst hsv2rgb = (...args) => {\n args = unpack(args, 'hsv');\n let [h, s, v] = args;\n let r, g, b;\n v *= 255;\n if (s === 0) {\n r = g = b = v;\n } else {\n if (h === 360) h = 0;\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 60;\n\n const i = floor(h);\n const f = h - i;\n const p = v * (1 - s);\n const q = v * (1 - s * f);\n const t = v * (1 - s * (1 - f));\n\n switch (i) {\n case 0:\n [r, g, b] = [v, t, p];\n break;\n case 1:\n [r, g, b] = [q, v, p];\n break;\n case 2:\n [r, g, b] = [p, v, t];\n break;\n case 3:\n [r, g, b] = [p, q, v];\n break;\n case 4:\n [r, g, b] = [t, p, v];\n break;\n case 5:\n [r, g, b] = [v, p, q];\n break;\n }\n }\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default hsv2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { min, max } = Math;\n\n/*\n * supported arguments:\n * - rgb2hsv(r,g,b)\n * - rgb2hsv([r,g,b])\n * - rgb2hsv({r,g,b})\n */\nconst rgb2hsl = (...args) => {\n args = unpack(args, 'rgb');\n let [r, g, b] = args;\n const min_ = min(r, g, b);\n const max_ = max(r, g, b);\n const delta = max_ - min_;\n let h, s, v;\n v = max_ / 255.0;\n if (max_ === 0) {\n h = Number.NaN;\n s = 0;\n } else {\n s = delta / max_;\n if (r === max_) h = (g - b) / delta;\n if (g === max_) h = 2 + (b - r) / delta;\n if (b === max_) h = 4 + (r - g) / delta;\n h *= 60;\n if (h < 0) h += 360;\n }\n return [h, s, v];\n};\n\nexport default rgb2hsl;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport lab2rgb from './lab2rgb.js';\nimport rgb2lab from './rgb2lab.js';\n\nColor.prototype.lab = function () {\n return rgb2lab(this._rgb);\n};\n\nchroma.lab = (...args) => new Color(...args, 'lab');\n\ninput.format.lab = lab2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'lab');\n if (type(args) === 'array' && args.length === 3) {\n return 'lab';\n }\n }\n});\n","import LAB_CONSTANTS from './lab-constants.js';\nimport { unpack } from '../../utils/index.js';\nconst { pow } = Math;\n\n/*\n * L* [0..100]\n * a [-100..100]\n * b [-100..100]\n */\nconst lab2rgb = (...args) => {\n args = unpack(args, 'lab');\n const [l, a, b] = args;\n let x, y, z, r, g, b_;\n\n y = (l + 16) / 116;\n x = isNaN(a) ? y : y + a / 500;\n z = isNaN(b) ? y : y - b / 200;\n\n y = LAB_CONSTANTS.Yn * lab_xyz(y);\n x = LAB_CONSTANTS.Xn * lab_xyz(x);\n z = LAB_CONSTANTS.Zn * lab_xyz(z);\n\n r = xyz_rgb(3.2404542 * x - 1.5371385 * y - 0.4985314 * z); // D65 -> sRGB\n g = xyz_rgb(-0.969266 * x + 1.8760108 * y + 0.041556 * z);\n b_ = xyz_rgb(0.0556434 * x - 0.2040259 * y + 1.0572252 * z);\n\n return [r, g, b_, args.length > 3 ? args[3] : 1];\n};\n\nconst xyz_rgb = (r) => {\n return 255 * (r <= 0.00304 ? 12.92 * r : 1.055 * pow(r, 1 / 2.4) - 0.055);\n};\n\nconst lab_xyz = (t) => {\n return t > LAB_CONSTANTS.t1\n ? t * t * t\n : LAB_CONSTANTS.t2 * (t - LAB_CONSTANTS.t0);\n};\n\nexport default lab2rgb;\n","export default {\n // Corresponds roughly to RGB brighter/darker\n Kn: 18,\n\n // D65 standard referent\n Xn: 0.95047,\n Yn: 1,\n Zn: 1.08883,\n\n t0: 0.137931034, // 4 / 29\n t1: 0.206896552, // 6 / 29\n t2: 0.12841855, // 3 * t1 * t1\n t3: 0.008856452 // t1 * t1 * t1\n};\n","import LAB_CONSTANTS from './lab-constants.js';\nimport { unpack } from '../../utils/index.js';\nconst { pow } = Math;\n\nconst rgb2lab = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [x, y, z] = rgb2xyz(r, g, b);\n const l = 116 * y - 16;\n return [l < 0 ? 0 : l, 500 * (x - y), 200 * (y - z)];\n};\n\nconst rgb_xyz = (r) => {\n if ((r /= 255) <= 0.04045) return r / 12.92;\n return pow((r + 0.055) / 1.055, 2.4);\n};\n\nconst xyz_lab = (t) => {\n if (t > LAB_CONSTANTS.t3) return pow(t, 1 / 3);\n return t / LAB_CONSTANTS.t2 + LAB_CONSTANTS.t0;\n};\n\nconst rgb2xyz = (r, g, b) => {\n r = rgb_xyz(r);\n g = rgb_xyz(g);\n b = rgb_xyz(b);\n const x = xyz_lab(\n (0.4124564 * r + 0.3575761 * g + 0.1804375 * b) / LAB_CONSTANTS.Xn\n );\n const y = xyz_lab(\n (0.2126729 * r + 0.7151522 * g + 0.072175 * b) / LAB_CONSTANTS.Yn\n );\n const z = xyz_lab(\n (0.0193339 * r + 0.119192 * g + 0.9503041 * b) / LAB_CONSTANTS.Zn\n );\n return [x, y, z];\n};\n\nexport default rgb2lab;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport lch2rgb from './lch2rgb.js';\nimport hcl2rgb from './hcl2rgb.js';\nimport rgb2lch from './rgb2lch.js';\n\nColor.prototype.lch = function () {\n return rgb2lch(this._rgb);\n};\nColor.prototype.hcl = function () {\n return rgb2lch(this._rgb).reverse();\n};\n\nchroma.lch = (...args) => new Color(...args, 'lch');\nchroma.hcl = (...args) => new Color(...args, 'hcl');\n\ninput.format.lch = lch2rgb;\ninput.format.hcl = hcl2rgb;\n['lch', 'hcl'].forEach((m) =>\n input.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, m);\n if (type(args) === 'array' && args.length === 3) {\n return m;\n }\n }\n })\n);\n","import { unpack } from '../../utils/index.js';\nimport lch2lab from './lch2lab.js';\nimport lab2rgb from '../lab/lab2rgb.js';\n\nconst lch2rgb = (...args) => {\n args = unpack(args, 'lch');\n const [l, c, h] = args;\n const [L, a, b_] = lch2lab(l, c, h);\n const [r, g, b] = lab2rgb(L, a, b_);\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default lch2rgb;\n","import { unpack, DEG2RAD } from '../../utils/index.js';\nconst { sin, cos } = Math;\n\nconst lch2lab = (...args) => {\n /*\n Convert from a qualitative parameter h and a quantitative parameter l to a 24-bit pixel.\n These formulas were invented by David Dalrymple to obtain maximum contrast without going\n out of gamut if the parameters are in the range 0-1.\n\n A saturation multiplier was added by Gregor Aisch\n */\n let [l, c, h] = unpack(args, 'lch');\n if (isNaN(h)) h = 0;\n h = h * DEG2RAD;\n return [l, cos(h) * c, sin(h) * c];\n};\n\nexport default lch2lab;\n","import { unpack } from '../../utils/index.js';\nimport lch2rgb from './lch2rgb.js';\n\nconst hcl2rgb = (...args) => {\n const hcl = unpack(args, 'hcl').reverse();\n return lch2rgb(...hcl);\n};\n\nexport default hcl2rgb;\n","import { unpack } from '../../utils/index.js';\nimport rgb2lab from '../lab/rgb2lab.js';\nimport lab2lch from './lab2lch.js';\n\nconst rgb2lch = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [l, a, b_] = rgb2lab(r, g, b);\n return lab2lch(l, a, b_);\n};\n\nexport default rgb2lch;\n","import { unpack, RAD2DEG } from '../../utils/index.js';\nconst { sqrt, atan2, round } = Math;\n\nconst lab2lch = (...args) => {\n const [l, a, b] = unpack(args, 'lab');\n const c = sqrt(a * a + b * b);\n let h = (atan2(b, a) * RAD2DEG + 360) % 360;\n if (round(c * 10000) === 0) h = Number.NaN;\n return [l, c, h];\n};\n\nexport default lab2lch;\n","import Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\n\nimport w3cx11 from '../../colors/w3cx11.js';\nimport hex2rgb from '../hex/hex2rgb.js';\nimport rgb2hex from '../hex/rgb2hex.js';\n\nColor.prototype.name = function () {\n const hex = rgb2hex(this._rgb, 'rgb');\n for (let n of Object.keys(w3cx11)) {\n if (w3cx11[n] === hex) return n.toLowerCase();\n }\n return hex;\n};\n\ninput.format.named = (name) => {\n name = name.toLowerCase();\n if (w3cx11[name]) return hex2rgb(w3cx11[name]);\n throw new Error('unknown color name: ' + name);\n};\n\ninput.autodetect.push({\n p: 5,\n test: (h, ...rest) => {\n if (!rest.length && type(h) === 'string' && w3cx11[h.toLowerCase()]) {\n return 'named';\n }\n }\n});\n","/**\n\tX11 color names\n\n\thttp://www.w3.org/TR/css3-color/#svg-color\n*/\n\nconst w3cx11 = {\n aliceblue: '#f0f8ff',\n antiquewhite: '#faebd7',\n aqua: '#00ffff',\n aquamarine: '#7fffd4',\n azure: '#f0ffff',\n beige: '#f5f5dc',\n bisque: '#ffe4c4',\n black: '#000000',\n blanchedalmond: '#ffebcd',\n blue: '#0000ff',\n blueviolet: '#8a2be2',\n brown: '#a52a2a',\n burlywood: '#deb887',\n cadetblue: '#5f9ea0',\n chartreuse: '#7fff00',\n chocolate: '#d2691e',\n coral: '#ff7f50',\n cornflowerblue: '#6495ed',\n cornsilk: '#fff8dc',\n crimson: '#dc143c',\n cyan: '#00ffff',\n darkblue: '#00008b',\n darkcyan: '#008b8b',\n darkgoldenrod: '#b8860b',\n darkgray: '#a9a9a9',\n darkgreen: '#006400',\n darkgrey: '#a9a9a9',\n darkkhaki: '#bdb76b',\n darkmagenta: '#8b008b',\n darkolivegreen: '#556b2f',\n darkorange: '#ff8c00',\n darkorchid: '#9932cc',\n darkred: '#8b0000',\n darksalmon: '#e9967a',\n darkseagreen: '#8fbc8f',\n darkslateblue: '#483d8b',\n darkslategray: '#2f4f4f',\n darkslategrey: '#2f4f4f',\n darkturquoise: '#00ced1',\n darkviolet: '#9400d3',\n deeppink: '#ff1493',\n deepskyblue: '#00bfff',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1e90ff',\n firebrick: '#b22222',\n floralwhite: '#fffaf0',\n forestgreen: '#228b22',\n fuchsia: '#ff00ff',\n gainsboro: '#dcdcdc',\n ghostwhite: '#f8f8ff',\n gold: '#ffd700',\n goldenrod: '#daa520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#adff2f',\n grey: '#808080',\n honeydew: '#f0fff0',\n hotpink: '#ff69b4',\n indianred: '#cd5c5c',\n indigo: '#4b0082',\n ivory: '#fffff0',\n khaki: '#f0e68c',\n laserlemon: '#ffff54',\n lavender: '#e6e6fa',\n lavenderblush: '#fff0f5',\n lawngreen: '#7cfc00',\n lemonchiffon: '#fffacd',\n lightblue: '#add8e6',\n lightcoral: '#f08080',\n lightcyan: '#e0ffff',\n lightgoldenrod: '#fafad2',\n lightgoldenrodyellow: '#fafad2',\n lightgray: '#d3d3d3',\n lightgreen: '#90ee90',\n lightgrey: '#d3d3d3',\n lightpink: '#ffb6c1',\n lightsalmon: '#ffa07a',\n lightseagreen: '#20b2aa',\n lightskyblue: '#87cefa',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#b0c4de',\n lightyellow: '#ffffe0',\n lime: '#00ff00',\n limegreen: '#32cd32',\n linen: '#faf0e6',\n magenta: '#ff00ff',\n maroon: '#800000',\n maroon2: '#7f0000',\n maroon3: '#b03060',\n mediumaquamarine: '#66cdaa',\n mediumblue: '#0000cd',\n mediumorchid: '#ba55d3',\n mediumpurple: '#9370db',\n mediumseagreen: '#3cb371',\n mediumslateblue: '#7b68ee',\n mediumspringgreen: '#00fa9a',\n mediumturquoise: '#48d1cc',\n mediumvioletred: '#c71585',\n midnightblue: '#191970',\n mintcream: '#f5fffa',\n mistyrose: '#ffe4e1',\n moccasin: '#ffe4b5',\n navajowhite: '#ffdead',\n navy: '#000080',\n oldlace: '#fdf5e6',\n olive: '#808000',\n olivedrab: '#6b8e23',\n orange: '#ffa500',\n orangered: '#ff4500',\n orchid: '#da70d6',\n palegoldenrod: '#eee8aa',\n palegreen: '#98fb98',\n paleturquoise: '#afeeee',\n palevioletred: '#db7093',\n papayawhip: '#ffefd5',\n peachpuff: '#ffdab9',\n peru: '#cd853f',\n pink: '#ffc0cb',\n plum: '#dda0dd',\n powderblue: '#b0e0e6',\n purple: '#800080',\n purple2: '#7f007f',\n purple3: '#a020f0',\n rebeccapurple: '#663399',\n red: '#ff0000',\n rosybrown: '#bc8f8f',\n royalblue: '#4169e1',\n saddlebrown: '#8b4513',\n salmon: '#fa8072',\n sandybrown: '#f4a460',\n seagreen: '#2e8b57',\n seashell: '#fff5ee',\n sienna: '#a0522d',\n silver: '#c0c0c0',\n skyblue: '#87ceeb',\n slateblue: '#6a5acd',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#fffafa',\n springgreen: '#00ff7f',\n steelblue: '#4682b4',\n tan: '#d2b48c',\n teal: '#008080',\n thistle: '#d8bfd8',\n tomato: '#ff6347',\n turquoise: '#40e0d0',\n violet: '#ee82ee',\n wheat: '#f5deb3',\n white: '#ffffff',\n whitesmoke: '#f5f5f5',\n yellow: '#ffff00',\n yellowgreen: '#9acd32'\n};\n\nexport default w3cx11;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\nimport num2rgb from './num2rgb.js';\nimport rgb2num from './rgb2num.js';\n\nColor.prototype.num = function () {\n return rgb2num(this._rgb);\n};\n\nchroma.num = (...args) => new Color(...args, 'num');\n\ninput.format.num = num2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (...args) => {\n if (\n args.length === 1 &&\n type(args[0]) === 'number' &&\n args[0] >= 0 &&\n args[0] <= 0xffffff\n ) {\n return 'num';\n }\n }\n});\n","import { type } from '../../utils/index.js';\n\nconst num2rgb = (num) => {\n if (type(num) == 'number' && num >= 0 && num <= 0xffffff) {\n const r = num >> 16;\n const g = (num >> 8) & 0xff;\n const b = num & 0xff;\n return [r, g, b, 1];\n }\n throw new Error('unknown num color: ' + num);\n};\n\nexport default num2rgb;\n","import { unpack } from '../../utils/index.js';\n\nconst rgb2num = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n return (r << 16) + (g << 8) + b;\n};\n\nexport default rgb2num;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { unpack, type } from '../../utils/index.js';\nconst { round } = Math;\n\nColor.prototype.rgb = function (rnd = true) {\n if (rnd === false) return this._rgb.slice(0, 3);\n return this._rgb.slice(0, 3).map(round);\n};\n\nColor.prototype.rgba = function (rnd = true) {\n return this._rgb.slice(0, 4).map((v, i) => {\n return i < 3 ? (rnd === false ? v : round(v)) : v;\n });\n};\n\nchroma.rgb = (...args) => new Color(...args, 'rgb');\n\ninput.format.rgb = (...args) => {\n const rgba = unpack(args, 'rgba');\n if (rgba[3] === undefined) rgba[3] = 1;\n return rgba;\n};\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'rgba');\n if (\n type(args) === 'array' &&\n (args.length === 3 ||\n (args.length === 4 &&\n type(args[3]) == 'number' &&\n args[3] >= 0 &&\n args[3] <= 1))\n ) {\n return 'rgb';\n }\n }\n});\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport temperature2rgb from './temperature2rgb.js';\nimport rgb2temperature from './rgb2temperature.js';\n\nColor.prototype.temp =\n Color.prototype.kelvin =\n Color.prototype.temperature =\n function () {\n return rgb2temperature(this._rgb);\n };\n\nchroma.temp =\n chroma.kelvin =\n chroma.temperature =\n (...args) => new Color(...args, 'temp');\n\ninput.format.temp =\n input.format.kelvin =\n input.format.temperature =\n temperature2rgb;\n","/*\n * Based on implementation by Neil Bartlett\n * https://github.com/neilbartlett/color-temperature\n */\n\nconst { log } = Math;\n\nconst temperature2rgb = (kelvin) => {\n const temp = kelvin / 100;\n let r, g, b;\n if (temp < 66) {\n r = 255;\n g =\n temp < 6\n ? 0\n : -155.25485562709179 -\n 0.44596950469579133 * (g = temp - 2) +\n 104.49216199393888 * log(g);\n b =\n temp < 20\n ? 0\n : -254.76935184120902 +\n 0.8274096064007395 * (b = temp - 10) +\n 115.67994401066147 * log(b);\n } else {\n r =\n 351.97690566805693 +\n 0.114206453784165 * (r = temp - 55) -\n 40.25366309332127 * log(r);\n g =\n 325.4494125711974 +\n 0.07943456536662342 * (g = temp - 50) -\n 28.0852963507957 * log(g);\n b = 255;\n }\n return [r, g, b, 1];\n};\n\nexport default temperature2rgb;\n","/*\n * Based on implementation by Neil Bartlett\n * https://github.com/neilbartlett/color-temperature\n **/\n\nimport temperature2rgb from './temperature2rgb.js';\nimport { unpack } from '../../utils/index.js';\nconst { round } = Math;\n\nconst rgb2temperature = (...args) => {\n const rgb = unpack(args, 'rgb');\n const r = rgb[0],\n b = rgb[2];\n let minTemp = 1000;\n let maxTemp = 40000;\n const eps = 0.4;\n let temp;\n while (maxTemp - minTemp > eps) {\n temp = (maxTemp + minTemp) * 0.5;\n const rgb = temperature2rgb(temp);\n if (rgb[2] / rgb[0] >= b / r) {\n maxTemp = temp;\n } else {\n minTemp = temp;\n }\n }\n return round(temp);\n};\n\nexport default rgb2temperature;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport oklab2rgb from './oklab2rgb.js';\nimport rgb2oklab from './rgb2oklab.js';\n\nColor.prototype.oklab = function () {\n return rgb2oklab(this._rgb);\n};\n\nchroma.oklab = (...args) => new Color(...args, 'oklab');\n\ninput.format.oklab = oklab2rgb;\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'oklab');\n if (type(args) === 'array' && args.length === 3) {\n return 'oklab';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { pow, sign } = Math;\n\n/*\n * L* [0..100]\n * a [-100..100]\n * b [-100..100]\n */\nconst oklab2rgb = (...args) => {\n args = unpack(args, 'lab');\n const [L, a, b] = args;\n\n const l = pow(L + 0.3963377774 * a + 0.2158037573 * b, 3);\n const m = pow(L - 0.1055613458 * a - 0.0638541728 * b, 3);\n const s = pow(L - 0.0894841775 * a - 1.291485548 * b, 3);\n\n return [\n 255 * lrgb2rgb(+4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s),\n 255 * lrgb2rgb(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),\n 255 * lrgb2rgb(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s),\n args.length > 3 ? args[3] : 1\n ];\n};\n\nexport default oklab2rgb;\n\nfunction lrgb2rgb(c) {\n const abs = Math.abs(c);\n if (abs > 0.0031308) {\n return (sign(c) || 1) * (1.055 * pow(abs, 1 / 2.4) - 0.055);\n }\n return c * 12.92;\n}\n","import { unpack } from '../../utils/index.js';\nconst { cbrt, pow, sign } = Math;\n\nconst rgb2oklab = (...args) => {\n // OKLab color space implementation taken from\n // https://bottosson.github.io/posts/oklab/\n const [r, g, b] = unpack(args, 'rgb');\n const [lr, lg, lb] = [\n rgb2lrgb(r / 255),\n rgb2lrgb(g / 255),\n rgb2lrgb(b / 255)\n ];\n const l = cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);\n const m = cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);\n const s = cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);\n\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s\n ];\n};\n\nexport default rgb2oklab;\n\nfunction rgb2lrgb(c) {\n const abs = Math.abs(c);\n if (abs < 0.04045) {\n return c / 12.92;\n }\n return (sign(c) || 1) * pow((abs + 0.055) / 1.055, 2.4);\n}\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport oklch2rgb from './oklch2rgb.js';\nimport rgb2oklch from './rgb2oklch.js';\n\nColor.prototype.oklch = function () {\n return rgb2oklch(this._rgb);\n};\n\nchroma.oklch = (...args) => new Color(...args, 'oklch');\n\ninput.format.oklch = oklch2rgb;\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'oklch');\n if (type(args) === 'array' && args.length === 3) {\n return 'oklch';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nimport lch2lab from '../lch/lch2lab.js';\nimport oklab2rgb from '../oklab/oklab2rgb.js';\n\nconst oklch2rgb = (...args) => {\n args = unpack(args, 'lch');\n const [l, c, h] = args;\n const [L, a, b_] = lch2lab(l, c, h);\n const [r, g, b] = oklab2rgb(L, a, b_);\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default oklch2rgb;\n","import { unpack } from '../../utils/index.js';\nimport rgb2oklab from '../oklab/rgb2oklab.js';\nimport lab2lch from '../lch/lab2lch.js';\n\nconst rgb2oklch = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [l, a, b_] = rgb2oklab(r, g, b);\n return lab2lch(l, a, b_);\n};\n\nexport default rgb2oklch;\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.alpha = function (a, mutate = false) {\n if (a !== undefined && type(a) === 'number') {\n if (mutate) {\n this._rgb[3] = a;\n return this;\n }\n return new Color([this._rgb[0], this._rgb[1], this._rgb[2], a], 'rgb');\n }\n return this._rgb[3];\n};\n","import Color from '../Color.js';\n\nColor.prototype.clipped = function () {\n return this._rgb._clipped || false;\n};\n","import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.darken = function (amount = 1) {\n const me = this;\n const lab = me.lab();\n lab[0] -= LAB_CONSTANTS.Kn * amount;\n return new Color(lab, 'lab').alpha(me.alpha(), true);\n};\n\nColor.prototype.brighten = function (amount = 1) {\n return this.darken(-amount);\n};\n\nColor.prototype.darker = Color.prototype.darken;\nColor.prototype.brighter = Color.prototype.brighten;\n","import Color from '../Color.js';\n\nColor.prototype.get = function (mc) {\n const [mode, channel] = mc.split('.');\n const src = this[mode]();\n if (channel) {\n const i = mode.indexOf(channel) - (mode.substr(0, 2) === 'ok' ? 2 : 0);\n if (i > -1) return src[i];\n throw new Error(`unknown channel ${channel} in mode ${mode}`);\n } else {\n return src;\n }\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\nconst { pow } = Math;\n\nconst EPS = 1e-7;\nconst MAX_ITER = 20;\n\nColor.prototype.luminance = function (lum, mode = 'rgb') {\n if (lum !== undefined && type(lum) === 'number') {\n if (lum === 0) {\n // return pure black\n return new Color([0, 0, 0, this._rgb[3]], 'rgb');\n }\n if (lum === 1) {\n // return pure white\n return new Color([255, 255, 255, this._rgb[3]], 'rgb');\n }\n // compute new color using...\n let cur_lum = this.luminance();\n let max_iter = MAX_ITER;\n\n const test = (low, high) => {\n const mid = low.interpolate(high, 0.5, mode);\n const lm = mid.luminance();\n if (Math.abs(lum - lm) < EPS || !max_iter--) {\n // close enough\n return mid;\n }\n return lm > lum ? test(low, mid) : test(mid, high);\n };\n\n const rgb = (\n cur_lum > lum\n ? test(new Color([0, 0, 0]), this)\n : test(this, new Color([255, 255, 255]))\n ).rgb();\n return new Color([...rgb, this._rgb[3]]);\n }\n return rgb2luminance(...this._rgb.slice(0, 3));\n};\n\nconst rgb2luminance = (r, g, b) => {\n // relative luminance\n // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n r = luminance_x(r);\n g = luminance_x(g);\n b = luminance_x(b);\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\n};\n\nconst luminance_x = (x) => {\n x /= 255;\n return x <= 0.03928 ? x / 12.92 : pow((x + 0.055) / 1.055, 2.4);\n};\n","import Color from '../Color.js';\nimport mix from '../generator/mix.js';\n\nColor.prototype.mix = Color.prototype.interpolate = function (\n col2,\n f = 0.5,\n ...rest\n) {\n return mix(this, col2, f, ...rest);\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\nimport interpolator from '../interpolator/index.js';\n\nexport default (col1, col2, f = 0.5, ...rest) => {\n let mode = rest[0] || 'lrgb';\n if (!interpolator[mode] && !rest.length) {\n // fall back to the first supported mode\n mode = Object.keys(interpolator)[0];\n }\n if (!interpolator[mode]) {\n throw new Error(`interpolation mode ${mode} is not defined`);\n }\n if (type(col1) !== 'object') col1 = new Color(col1);\n if (type(col2) !== 'object') col2 = new Color(col2);\n return interpolator[mode](col1, col2, f).alpha(\n col1.alpha() + f * (col2.alpha() - col1.alpha())\n );\n};\n","export default {};\n","import Color from '../Color.js';\n\nColor.prototype.premultiply = function (mutate = false) {\n const rgb = this._rgb;\n const a = rgb[3];\n if (mutate) {\n this._rgb = [rgb[0] * a, rgb[1] * a, rgb[2] * a, a];\n return this;\n } else {\n return new Color([rgb[0] * a, rgb[1] * a, rgb[2] * a, a], 'rgb');\n }\n};\n","import '../io/lch/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.saturate = function (amount = 1) {\n const me = this;\n const lch = me.lch();\n lch[1] += LAB_CONSTANTS.Kn * amount;\n if (lch[1] < 0) lch[1] = 0;\n return new Color(lch, 'lch').alpha(me.alpha(), true);\n};\n\nColor.prototype.desaturate = function (amount = 1) {\n return this.saturate(-amount);\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.set = function (mc, value, mutate = false) {\n const [mode, channel] = mc.split('.');\n const src = this[mode]();\n if (channel) {\n const i = mode.indexOf(channel) - (mode.substr(0, 2) === 'ok' ? 2 : 0);\n if (i > -1) {\n if (type(value) == 'string') {\n switch (value.charAt(0)) {\n case '+':\n src[i] += +value;\n break;\n case '-':\n src[i] += +value;\n break;\n case '*':\n src[i] *= +value.substr(1);\n break;\n case '/':\n src[i] /= +value.substr(1);\n break;\n default:\n src[i] = +value;\n }\n } else if (type(value) === 'number') {\n src[i] = value;\n } else {\n throw new Error(`unsupported value for Color.set`);\n }\n const out = new Color(src, mode);\n if (mutate) {\n this._rgb = out._rgb;\n return this;\n }\n return out;\n }\n throw new Error(`unknown channel ${channel} in mode ${mode}`);\n } else {\n return src;\n }\n};\n","import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport mix from '../generator/mix.js';\n\nColor.prototype.tint = function (f = 0.5, ...rest) {\n return mix(this, 'white', f, ...rest);\n};\n\nColor.prototype.shade = function (f = 0.5, ...rest) {\n return mix(this, 'black', f, ...rest);\n};\n","import Color from '../Color.js';\nimport index from './index.js';\n\nconst rgb = (col1, col2, f) => {\n const xyz0 = col1._rgb;\n const xyz1 = col2._rgb;\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'rgb'\n );\n};\n\n// register interpolator\nindex.rgb = rgb;\n\nexport default rgb;\n","import Color from '../Color.js';\nconst { sqrt, pow } = Math;\nimport index from './index.js';\n\nconst lrgb = (col1, col2, f) => {\n const [x1, y1, z1] = col1._rgb;\n const [x2, y2, z2] = col2._rgb;\n return new Color(\n sqrt(pow(x1, 2) * (1 - f) + pow(x2, 2) * f),\n sqrt(pow(y1, 2) * (1 - f) + pow(y2, 2) * f),\n sqrt(pow(z1, 2) * (1 - f) + pow(z2, 2) * f),\n 'rgb'\n );\n};\n\n// register interpolator\nindex.lrgb = lrgb;\n\nexport default lrgb;\n","import '../io/lab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst lab = (col1, col2, f) => {\n const xyz0 = col1.lab();\n const xyz1 = col2.lab();\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'lab'\n );\n};\n\n// register interpolator\nindex.lab = lab;\n\nexport default lab;\n","import '../io/lch/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst lch = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'lch');\n};\n\n// register interpolator\nindex.lch = lch;\nindex.hcl = lch;\n\nexport default lch;\n","import Color from '../Color.js';\n\nexport default (col1, col2, f, m) => {\n let xyz0, xyz1;\n if (m === 'hsl') {\n xyz0 = col1.hsl();\n xyz1 = col2.hsl();\n } else if (m === 'hsv') {\n xyz0 = col1.hsv();\n xyz1 = col2.hsv();\n } else if (m === 'hcg') {\n xyz0 = col1.hcg();\n xyz1 = col2.hcg();\n } else if (m === 'hsi') {\n xyz0 = col1.hsi();\n xyz1 = col2.hsi();\n } else if (m === 'lch' || m === 'hcl') {\n m = 'hcl';\n xyz0 = col1.hcl();\n xyz1 = col2.hcl();\n } else if (m === 'oklch') {\n xyz0 = col1.oklch().reverse();\n xyz1 = col2.oklch().reverse();\n }\n\n let hue0, hue1, sat0, sat1, lbv0, lbv1;\n if (m.substr(0, 1) === 'h' || m === 'oklch') {\n [hue0, sat0, lbv0] = xyz0;\n [hue1, sat1, lbv1] = xyz1;\n }\n\n let sat, hue, lbv, dh;\n\n if (!isNaN(hue0) && !isNaN(hue1)) {\n // both colors have hue\n if (hue1 > hue0 && hue1 - hue0 > 180) {\n dh = hue1 - (hue0 + 360);\n } else if (hue1 < hue0 && hue0 - hue1 > 180) {\n dh = hue1 + 360 - hue0;\n } else {\n dh = hue1 - hue0;\n }\n hue = hue0 + f * dh;\n } else if (!isNaN(hue0)) {\n hue = hue0;\n if ((lbv1 == 1 || lbv1 == 0) && m != 'hsv') sat = sat0;\n } else if (!isNaN(hue1)) {\n hue = hue1;\n if ((lbv0 == 1 || lbv0 == 0) && m != 'hsv') sat = sat1;\n } else {\n hue = Number.NaN;\n }\n\n if (sat === undefined) sat = sat0 + f * (sat1 - sat0);\n lbv = lbv0 + f * (lbv1 - lbv0);\n return m === 'oklch'\n ? new Color([lbv, sat, hue], m)\n : new Color([hue, sat, lbv], m);\n};\n","import '../io/num/index.js';\nimport index from './index.js';\n\nimport Color from '../Color.js';\n\nconst num = (col1, col2, f) => {\n const c1 = col1.num();\n const c2 = col2.num();\n return new Color(c1 + f * (c2 - c1), 'num');\n};\n\n// register interpolator\nindex.num = num;\n\nexport default num;\n","import '../io/hcg/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hcg = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hcg');\n};\n\n// register interpolator\nindex.hcg = hcg;\n\nexport default hcg;\n","import '../io/hsi/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsi = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsi');\n};\n\n// register interpolator\nindex.hsi = hsi;\n\nexport default hsi;\n","import '../io/hsl/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsl = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsl');\n};\n\n// register interpolator\nindex.hsl = hsl;\n\nexport default hsl;\n","import '../io/hsv/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsv = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsv');\n};\n\n// register interpolator\nindex.hsv = hsv;\n\nexport default hsv;\n","import '../io/oklab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst oklab = (col1, col2, f) => {\n const xyz0 = col1.oklab();\n const xyz1 = col2.oklab();\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'oklab'\n );\n};\n\n// register interpolator\nindex.oklab = oklab;\n\nexport default oklab;\n","import '../io/lch/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst oklch = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'oklch');\n};\n\n// register interpolator\nindex.oklch = oklch;\n\nexport default oklch;\n","import Color from '../Color.js';\nimport { clip_rgb } from '../utils/index.js';\n\nconst { pow, sqrt, PI, cos, sin, atan2 } = Math;\n\nexport default (colors, mode = 'lrgb', weights = null) => {\n const l = colors.length;\n if (!weights) weights = Array.from(new Array(l)).map(() => 1);\n // normalize weights\n const k =\n l /\n weights.reduce(function (a, b) {\n return a + b;\n });\n weights.forEach((w, i) => {\n weights[i] *= k;\n });\n // convert colors to Color objects\n colors = colors.map((c) => new Color(c));\n if (mode === 'lrgb') {\n return _average_lrgb(colors, weights);\n }\n const first = colors.shift();\n const xyz = first.get(mode);\n const cnt = [];\n let dx = 0;\n let dy = 0;\n // initial color\n for (let i = 0; i < xyz.length; i++) {\n xyz[i] = (xyz[i] || 0) * weights[0];\n cnt.push(isNaN(xyz[i]) ? 0 : weights[0]);\n if (mode.charAt(i) === 'h' && !isNaN(xyz[i])) {\n const A = (xyz[i] / 180) * PI;\n dx += cos(A) * weights[0];\n dy += sin(A) * weights[0];\n }\n }\n\n let alpha = first.alpha() * weights[0];\n colors.forEach((c, ci) => {\n const xyz2 = c.get(mode);\n alpha += c.alpha() * weights[ci + 1];\n for (let i = 0; i < xyz.length; i++) {\n if (!isNaN(xyz2[i])) {\n cnt[i] += weights[ci + 1];\n if (mode.charAt(i) === 'h') {\n const A = (xyz2[i] / 180) * PI;\n dx += cos(A) * weights[ci + 1];\n dy += sin(A) * weights[ci + 1];\n } else {\n xyz[i] += xyz2[i] * weights[ci + 1];\n }\n }\n }\n });\n\n for (let i = 0; i < xyz.length; i++) {\n if (mode.charAt(i) === 'h') {\n let A = (atan2(dy / cnt[i], dx / cnt[i]) / PI) * 180;\n while (A < 0) A += 360;\n while (A >= 360) A -= 360;\n xyz[i] = A;\n } else {\n xyz[i] = xyz[i] / cnt[i];\n }\n }\n alpha /= l;\n return new Color(xyz, mode).alpha(alpha > 0.99999 ? 1 : alpha, true);\n};\n\nconst _average_lrgb = (colors, weights) => {\n const l = colors.length;\n const xyz = [0, 0, 0, 0];\n for (let i = 0; i < colors.length; i++) {\n const col = colors[i];\n const f = weights[i] / l;\n const rgb = col._rgb;\n xyz[0] += pow(rgb[0], 2) * f;\n xyz[1] += pow(rgb[1], 2) * f;\n xyz[2] += pow(rgb[2], 2) * f;\n xyz[3] += rgb[3] * f;\n }\n xyz[0] = sqrt(xyz[0]);\n xyz[1] = sqrt(xyz[1]);\n xyz[2] = sqrt(xyz[2]);\n if (xyz[3] > 0.9999999) xyz[3] = 1;\n return new Color(clip_rgb(xyz));\n};\n","//\n// interpolates between a set of colors uzing a bezier spline\n//\n\n// @requires utils lab\nimport Color from '../Color.js';\nimport '../io/lab/index.js';\nimport scale from './scale.js';\n\n// nth row of the pascal triangle\nconst binom_row = function (n) {\n let row = [1, 1];\n for (let i = 1; i < n; i++) {\n let newrow = [1];\n for (let j = 1; j <= row.length; j++) {\n newrow[j] = (row[j] || 0) + row[j - 1];\n }\n row = newrow;\n }\n return row;\n};\n\nconst bezier = function (colors) {\n let I, lab0, lab1, lab2;\n colors = colors.map((c) => new Color(c));\n if (colors.length === 2) {\n // linear interpolation\n [lab0, lab1] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map((i) => lab0[i] + t * (lab1[i] - lab0[i]));\n return new Color(lab, 'lab');\n };\n } else if (colors.length === 3) {\n // quadratic bezier interpolation\n [lab0, lab1, lab2] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map(\n (i) =>\n (1 - t) * (1 - t) * lab0[i] +\n 2 * (1 - t) * t * lab1[i] +\n t * t * lab2[i]\n );\n return new Color(lab, 'lab');\n };\n } else if (colors.length === 4) {\n // cubic bezier interpolation\n let lab3;\n [lab0, lab1, lab2, lab3] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map(\n (i) =>\n (1 - t) * (1 - t) * (1 - t) * lab0[i] +\n 3 * (1 - t) * (1 - t) * t * lab1[i] +\n 3 * (1 - t) * t * t * lab2[i] +\n t * t * t * lab3[i]\n );\n return new Color(lab, 'lab');\n };\n } else if (colors.length >= 5) {\n // general case (degree n bezier)\n let labs, row, n;\n labs = colors.map((c) => c.lab());\n n = colors.length - 1;\n row = binom_row(n);\n I = function (t) {\n const u = 1 - t;\n const lab = [0, 1, 2].map((i) =>\n labs.reduce(\n (sum, el, j) =>\n sum + row[j] * u ** (n - j) * t ** j * el[i],\n 0\n )\n );\n return new Color(lab, 'lab');\n };\n } else {\n throw new RangeError('No point in running bezier with only one color.');\n }\n return I;\n};\n\nexport default (colors) => {\n const f = bezier(colors);\n f.scale = () => scale(f);\n return f;\n};\n","// minimal multi-purpose interface\n\n// @requires utils color analyze\nimport chroma from '../chroma.js';\nimport { limit, type } from '../utils/index.js';\n\nconst { pow } = Math;\n\nexport default function (colors) {\n // constructor\n let _mode = 'rgb';\n let _nacol = chroma('#ccc');\n let _spread = 0;\n // const _fixed = false;\n let _domain = [0, 1];\n let _pos = [];\n let _padding = [0, 0];\n let _classes = false;\n let _colors = [];\n let _out = false;\n let _min = 0;\n let _max = 1;\n let _correctLightness = false;\n let _colorCache = {};\n let _useCache = true;\n let _gamma = 1;\n\n // private methods\n\n const setColors = function (colors) {\n colors = colors || ['#fff', '#000'];\n if (\n colors &&\n type(colors) === 'string' &&\n chroma.brewer &&\n chroma.brewer[colors.toLowerCase()]\n ) {\n colors = chroma.brewer[colors.toLowerCase()];\n }\n if (type(colors) === 'array') {\n // handle single color\n if (colors.length === 1) {\n colors = [colors[0], colors[0]];\n }\n // make a copy of the colors\n colors = colors.slice(0);\n // convert to chroma classes\n for (let c = 0; c < colors.length; c++) {\n colors[c] = chroma(colors[c]);\n }\n // auto-fill color position\n _pos.length = 0;\n for (let c = 0; c < colors.length; c++) {\n _pos.push(c / (colors.length - 1));\n }\n }\n resetCache();\n return (_colors = colors);\n };\n\n const getClass = function (value) {\n if (_classes != null) {\n const n = _classes.length - 1;\n let i = 0;\n while (i < n && value >= _classes[i]) {\n i++;\n }\n return i - 1;\n }\n return 0;\n };\n\n let tMapLightness = (t) => t;\n let tMapDomain = (t) => t;\n\n // const classifyValue = function(value) {\n // let val = value;\n // if (_classes.length > 2) {\n // const n = _classes.length-1;\n // const i = getClass(value);\n // const minc = _classes[0] + ((_classes[1]-_classes[0]) * (0 + (_spread * 0.5))); // center of 1st class\n // const maxc = _classes[n-1] + ((_classes[n]-_classes[n-1]) * (1 - (_spread * 0.5))); // center of last class\n // val = _min + ((((_classes[i] + ((_classes[i+1] - _classes[i]) * 0.5)) - minc) / (maxc-minc)) * (_max - _min));\n // }\n // return val;\n // };\n\n const getColor = function (val, bypassMap) {\n let col, t;\n if (bypassMap == null) {\n bypassMap = false;\n }\n if (isNaN(val) || val === null) {\n return _nacol;\n }\n if (!bypassMap) {\n if (_classes && _classes.length > 2) {\n // find the class\n const c = getClass(val);\n t = c / (_classes.length - 2);\n } else if (_max !== _min) {\n // just interpolate between min/max\n t = (val - _min) / (_max - _min);\n } else {\n t = 1;\n }\n } else {\n t = val;\n }\n\n // domain map\n t = tMapDomain(t);\n\n if (!bypassMap) {\n t = tMapLightness(t); // lightness correction\n }\n\n if (_gamma !== 1) {\n t = pow(t, _gamma);\n }\n\n t = _padding[0] + t * (1 - _padding[0] - _padding[1]);\n\n t = limit(t, 0, 1);\n\n const k = Math.floor(t * 10000);\n\n if (_useCache && _colorCache[k]) {\n col = _colorCache[k];\n } else {\n if (type(_colors) === 'array') {\n //for i in [0.._pos.length-1]\n for (let i = 0; i < _pos.length; i++) {\n const p = _pos[i];\n if (t <= p) {\n col = _colors[i];\n break;\n }\n if (t >= p && i === _pos.length - 1) {\n col = _colors[i];\n break;\n }\n if (t > p && t < _pos[i + 1]) {\n t = (t - p) / (_pos[i + 1] - p);\n col = chroma.interpolate(\n _colors[i],\n _colors[i + 1],\n t,\n _mode\n );\n break;\n }\n }\n } else if (type(_colors) === 'function') {\n col = _colors(t);\n }\n if (_useCache) {\n _colorCache[k] = col;\n }\n }\n return col;\n };\n\n var resetCache = () => (_colorCache = {});\n\n setColors(colors);\n\n // public interface\n\n const f = function (v) {\n const c = chroma(getColor(v));\n if (_out && c[_out]) {\n return c[_out]();\n } else {\n return c;\n }\n };\n\n f.classes = function (classes) {\n if (classes != null) {\n if (type(classes) === 'array') {\n _classes = classes;\n _domain = [classes[0], classes[classes.length - 1]];\n } else {\n const d = chroma.analyze(_domain);\n if (classes === 0) {\n _classes = [d.min, d.max];\n } else {\n _classes = chroma.limits(d, 'e', classes);\n }\n }\n return f;\n }\n return _classes;\n };\n\n f.domain = function (domain) {\n if (!arguments.length) {\n return _domain;\n }\n _min = domain[0];\n _max = domain[domain.length - 1];\n _pos = [];\n const k = _colors.length;\n if (domain.length === k && _min !== _max) {\n // update positions\n for (let d of Array.from(domain)) {\n _pos.push((d - _min) / (_max - _min));\n }\n } else {\n for (let c = 0; c < k; c++) {\n _pos.push(c / (k - 1));\n }\n if (domain.length > 2) {\n // set domain map\n const tOut = domain.map((d, i) => i / (domain.length - 1));\n const tBreaks = domain.map((d) => (d - _min) / (_max - _min));\n if (!tBreaks.every((val, i) => tOut[i] === val)) {\n tMapDomain = (t) => {\n if (t <= 0 || t >= 1) return t;\n let i = 0;\n while (t >= tBreaks[i + 1]) i++;\n const f =\n (t - tBreaks[i]) / (tBreaks[i + 1] - tBreaks[i]);\n const out = tOut[i] + f * (tOut[i + 1] - tOut[i]);\n return out;\n };\n }\n }\n }\n _domain = [_min, _max];\n return f;\n };\n\n f.mode = function (_m) {\n if (!arguments.length) {\n return _mode;\n }\n _mode = _m;\n resetCache();\n return f;\n };\n\n f.range = function (colors, _pos) {\n setColors(colors, _pos);\n return f;\n };\n\n f.out = function (_o) {\n _out = _o;\n return f;\n };\n\n f.spread = function (val) {\n if (!arguments.length) {\n return _spread;\n }\n _spread = val;\n return f;\n };\n\n f.correctLightness = function (v) {\n if (v == null) {\n v = true;\n }\n _correctLightness = v;\n resetCache();\n if (_correctLightness) {\n tMapLightness = function (t) {\n const L0 = getColor(0, true).lab()[0];\n const L1 = getColor(1, true).lab()[0];\n const pol = L0 > L1;\n let L_actual = getColor(t, true).lab()[0];\n const L_ideal = L0 + (L1 - L0) * t;\n let L_diff = L_actual - L_ideal;\n let t0 = 0;\n let t1 = 1;\n let max_iter = 20;\n while (Math.abs(L_diff) > 1e-2 && max_iter-- > 0) {\n (function () {\n if (pol) {\n L_diff *= -1;\n }\n if (L_diff < 0) {\n t0 = t;\n t += (t1 - t) * 0.5;\n } else {\n t1 = t;\n t += (t0 - t) * 0.5;\n }\n L_actual = getColor(t, true).lab()[0];\n return (L_diff = L_actual - L_ideal);\n })();\n }\n return t;\n };\n } else {\n tMapLightness = (t) => t;\n }\n return f;\n };\n\n f.padding = function (p) {\n if (p != null) {\n if (type(p) === 'number') {\n p = [p, p];\n }\n _padding = p;\n return f;\n } else {\n return _padding;\n }\n };\n\n f.colors = function (numColors, out) {\n // If no arguments are given, return the original colors that were provided\n if (arguments.length < 2) {\n out = 'hex';\n }\n let result = [];\n\n if (arguments.length === 0) {\n result = _colors.slice(0);\n } else if (numColors === 1) {\n result = [f(0.5)];\n } else if (numColors > 1) {\n const dm = _domain[0];\n const dd = _domain[1] - dm;\n result = __range__(0, numColors, false).map((i) =>\n f(dm + (i / (numColors - 1)) * dd)\n );\n } else {\n // returns all colors based on the defined classes\n colors = [];\n let samples = [];\n if (_classes && _classes.length > 2) {\n for (\n let i = 1, end = _classes.length, asc = 1 <= end;\n asc ? i < end : i > end;\n asc ? i++ : i--\n ) {\n samples.push((_classes[i - 1] + _classes[i]) * 0.5);\n }\n } else {\n samples = _domain;\n }\n result = samples.map((v) => f(v));\n }\n\n if (chroma[out]) {\n result = result.map((c) => c[out]());\n }\n return result;\n };\n\n f.cache = function (c) {\n if (c != null) {\n _useCache = c;\n return f;\n } else {\n return _useCache;\n }\n };\n\n f.gamma = function (g) {\n if (g != null) {\n _gamma = g;\n return f;\n } else {\n return _gamma;\n }\n };\n\n f.nodata = function (d) {\n if (d != null) {\n _nacol = chroma(d);\n return f;\n } else {\n return _nacol;\n }\n };\n\n return f;\n}\n\nfunction __range__(left, right, inclusive) {\n let range = [];\n let ascending = left < right;\n let end = !inclusive ? right : ascending ? right + 1 : right - 1;\n for (let i = left; ascending ? i < end : i > end; ascending ? i++ : i--) {\n range.push(i);\n }\n return range;\n}\n","/*\n * interpolates between a set of colors uzing a bezier spline\n * blend mode formulas taken from https://web.archive.org/web/20180110014946/http://www.venture-ware.com/kevin/coding/lets-learn-math-photoshop-blend-modes/\n */\n\nimport '../io/rgb/index.js';\nimport chroma from '../chroma.js';\n\nconst blend = (bottom, top, mode) => {\n if (!blend[mode]) {\n throw new Error('unknown blend mode ' + mode);\n }\n return blend[mode](bottom, top);\n};\n\nconst blend_f = (f) => (bottom, top) => {\n const c0 = chroma(top).rgb();\n const c1 = chroma(bottom).rgb();\n return chroma.rgb(f(c0, c1));\n};\n\nconst each = (f) => (c0, c1) => {\n const out = [];\n out[0] = f(c0[0], c1[0]);\n out[1] = f(c0[1], c1[1]);\n out[2] = f(c0[2], c1[2]);\n return out;\n};\n\nconst normal = (a) => a;\nconst multiply = (a, b) => (a * b) / 255;\nconst darken = (a, b) => (a > b ? b : a);\nconst lighten = (a, b) => (a > b ? a : b);\nconst screen = (a, b) => 255 * (1 - (1 - a / 255) * (1 - b / 255));\nconst overlay = (a, b) =>\n b < 128 ? (2 * a * b) / 255 : 255 * (1 - 2 * (1 - a / 255) * (1 - b / 255));\nconst burn = (a, b) => 255 * (1 - (1 - b / 255) / (a / 255));\nconst dodge = (a, b) => {\n if (a === 255) return 255;\n a = (255 * (b / 255)) / (1 - a / 255);\n return a > 255 ? 255 : a;\n};\n\n// # add = (a,b) ->\n// # if (a + b > 255) then 255 else a + b\n\nblend.normal = blend_f(each(normal));\nblend.multiply = blend_f(each(multiply));\nblend.screen = blend_f(each(screen));\nblend.overlay = blend_f(each(overlay));\nblend.darken = blend_f(each(darken));\nblend.lighten = blend_f(each(lighten));\nblend.dodge = blend_f(each(dodge));\nblend.burn = blend_f(each(burn));\n// blend.add = blend_f(each(add));\n\nexport default blend;\n","// cubehelix interpolation\n// based on D.A. Green \"A colour scheme for the display of astronomical intensity images\"\n// http://astron-soc.in/bulletin/11June/289392011.pdf\nimport { type, clip_rgb, TWOPI } from '../utils/index.js';\nimport chroma from '../chroma.js';\nconst { pow, sin, cos } = Math;\n\nexport default function (\n start = 300,\n rotations = -1.5,\n hue = 1,\n gamma = 1,\n lightness = [0, 1]\n) {\n let dh = 0,\n dl;\n if (type(lightness) === 'array') {\n dl = lightness[1] - lightness[0];\n } else {\n dl = 0;\n lightness = [lightness, lightness];\n }\n const f = function (fract) {\n const a = TWOPI * ((start + 120) / 360 + rotations * fract);\n const l = pow(lightness[0] + dl * fract, gamma);\n const h = dh !== 0 ? hue[0] + fract * dh : hue;\n const amp = (h * l * (1 - l)) / 2;\n const cos_a = cos(a);\n const sin_a = sin(a);\n const r = l + amp * (-0.14861 * cos_a + 1.78277 * sin_a);\n const g = l + amp * (-0.29227 * cos_a - 0.90649 * sin_a);\n const b = l + amp * (+1.97294 * cos_a);\n return chroma(clip_rgb([r * 255, g * 255, b * 255, 1]));\n };\n f.start = function (s) {\n if (s == null) {\n return start;\n }\n start = s;\n return f;\n };\n f.rotations = function (r) {\n if (r == null) {\n return rotations;\n }\n rotations = r;\n return f;\n };\n f.gamma = function (g) {\n if (g == null) {\n return gamma;\n }\n gamma = g;\n return f;\n };\n f.hue = function (h) {\n if (h == null) {\n return hue;\n }\n hue = h;\n if (type(hue) === 'array') {\n dh = hue[1] - hue[0];\n if (dh === 0) {\n hue = hue[1];\n }\n } else {\n dh = 0;\n }\n return f;\n };\n f.lightness = function (h) {\n if (h == null) {\n return lightness;\n }\n if (type(h) === 'array') {\n lightness = h;\n dl = h[1] - h[0];\n } else {\n lightness = [h, h];\n dl = 0;\n }\n return f;\n };\n f.scale = () => chroma.scale(f);\n f.hue(hue);\n return f;\n}\n","import Color from '../Color.js';\nconst digits = '0123456789abcdef';\n\nconst { floor, random } = Math;\n\nexport default () => {\n let code = '#';\n for (let i = 0; i < 6; i++) {\n code += digits.charAt(floor(random() * 16));\n }\n return new Color(code, 'hex');\n};\n","import type from './type.js';\n\nconst { log, pow, floor, abs } = Math;\n\nexport function analyze(data, key = null) {\n const r = {\n min: Number.MAX_VALUE,\n max: Number.MAX_VALUE * -1,\n sum: 0,\n values: [],\n count: 0\n };\n if (type(data) === 'object') {\n data = Object.values(data);\n }\n data.forEach((val) => {\n if (key && type(val) === 'object') val = val[key];\n if (val !== undefined && val !== null && !isNaN(val)) {\n r.values.push(val);\n r.sum += val;\n if (val < r.min) r.min = val;\n if (val > r.max) r.max = val;\n r.count += 1;\n }\n });\n\n r.domain = [r.min, r.max];\n\n r.limits = (mode, num) => limits(r, mode, num);\n\n return r;\n}\n\nexport function limits(data, mode = 'equal', num = 7) {\n if (type(data) == 'array') {\n data = analyze(data);\n }\n const { min, max } = data;\n const values = data.values.sort((a, b) => a - b);\n\n if (num === 1) {\n return [min, max];\n }\n\n const limits = [];\n\n if (mode.substr(0, 1) === 'c') {\n // continuous\n limits.push(min);\n limits.push(max);\n }\n\n if (mode.substr(0, 1) === 'e') {\n // equal interval\n limits.push(min);\n for (let i = 1; i < num; i++) {\n limits.push(min + (i / num) * (max - min));\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'l') {\n // log scale\n if (min <= 0) {\n throw new Error(\n 'Logarithmic scales are only possible for values > 0'\n );\n }\n const min_log = Math.LOG10E * log(min);\n const max_log = Math.LOG10E * log(max);\n limits.push(min);\n for (let i = 1; i < num; i++) {\n limits.push(pow(10, min_log + (i / num) * (max_log - min_log)));\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'q') {\n // quantile scale\n limits.push(min);\n for (let i = 1; i < num; i++) {\n const p = ((values.length - 1) * i) / num;\n const pb = floor(p);\n if (pb === p) {\n limits.push(values[pb]);\n } else {\n // p > pb\n const pr = p - pb;\n limits.push(values[pb] * (1 - pr) + values[pb + 1] * pr);\n }\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'k') {\n // k-means clustering\n /*\n implementation based on\n http://code.google.com/p/figue/source/browse/trunk/figue.js#336\n simplified for 1-d input values\n */\n let cluster;\n const n = values.length;\n const assignments = new Array(n);\n const clusterSizes = new Array(num);\n let repeat = true;\n let nb_iters = 0;\n let centroids = null;\n\n // get seed values\n centroids = [];\n centroids.push(min);\n for (let i = 1; i < num; i++) {\n centroids.push(min + (i / num) * (max - min));\n }\n centroids.push(max);\n\n while (repeat) {\n // assignment step\n for (let j = 0; j < num; j++) {\n clusterSizes[j] = 0;\n }\n for (let i = 0; i < n; i++) {\n const value = values[i];\n let mindist = Number.MAX_VALUE;\n let best;\n for (let j = 0; j < num; j++) {\n const dist = abs(centroids[j] - value);\n if (dist < mindist) {\n mindist = dist;\n best = j;\n }\n clusterSizes[best]++;\n assignments[i] = best;\n }\n }\n\n // update centroids step\n const newCentroids = new Array(num);\n for (let j = 0; j < num; j++) {\n newCentroids[j] = null;\n }\n for (let i = 0; i < n; i++) {\n cluster = assignments[i];\n if (newCentroids[cluster] === null) {\n newCentroids[cluster] = values[i];\n } else {\n newCentroids[cluster] += values[i];\n }\n }\n for (let j = 0; j < num; j++) {\n newCentroids[j] *= 1 / clusterSizes[j];\n }\n\n // check convergence\n repeat = false;\n for (let j = 0; j < num; j++) {\n if (newCentroids[j] !== centroids[j]) {\n repeat = true;\n break;\n }\n }\n\n centroids = newCentroids;\n nb_iters++;\n\n if (nb_iters > 200) {\n repeat = false;\n }\n }\n\n // finished k-means clustering\n // the next part is borrowed from gabrielflor.it\n const kClusters = {};\n for (let j = 0; j < num; j++) {\n kClusters[j] = [];\n }\n for (let i = 0; i < n; i++) {\n cluster = assignments[i];\n kClusters[cluster].push(values[i]);\n }\n let tmpKMeansBreaks = [];\n for (let j = 0; j < num; j++) {\n tmpKMeansBreaks.push(kClusters[j][0]);\n tmpKMeansBreaks.push(kClusters[j][kClusters[j].length - 1]);\n }\n tmpKMeansBreaks = tmpKMeansBreaks.sort((a, b) => a - b);\n limits.push(tmpKMeansBreaks[0]);\n for (let i = 1; i < tmpKMeansBreaks.length; i += 2) {\n const v = tmpKMeansBreaks[i];\n if (!isNaN(v) && limits.indexOf(v) === -1) {\n limits.push(v);\n }\n }\n }\n return limits;\n}\n","import Color from '../Color.js';\nimport '../ops/luminance.js';\n\nexport default (a, b) => {\n // WCAG contrast ratio\n // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef\n a = new Color(a);\n b = new Color(b);\n const l1 = a.luminance();\n const l2 = b.luminance();\n return l1 > l2 ? (l1 + 0.05) / (l2 + 0.05) : (l2 + 0.05) / (l1 + 0.05);\n};\n","import Color from '../Color.js';\nconst { sqrt, pow, min, max, atan2, abs, cos, sin, exp, PI } = Math;\n\nexport default function (a, b, Kl = 1, Kc = 1, Kh = 1) {\n // Delta E (CIE 2000)\n // see http://www.brucelindbloom.com/index.html?Eqn_DeltaE_CIE2000.html\n var rad2deg = function (rad) {\n return (360 * rad) / (2 * PI);\n };\n var deg2rad = function (deg) {\n return (2 * PI * deg) / 360;\n };\n a = new Color(a);\n b = new Color(b);\n const [L1, a1, b1] = Array.from(a.lab());\n const [L2, a2, b2] = Array.from(b.lab());\n const avgL = (L1 + L2) / 2;\n const C1 = sqrt(pow(a1, 2) + pow(b1, 2));\n const C2 = sqrt(pow(a2, 2) + pow(b2, 2));\n const avgC = (C1 + C2) / 2;\n const G = 0.5 * (1 - sqrt(pow(avgC, 7) / (pow(avgC, 7) + pow(25, 7))));\n const a1p = a1 * (1 + G);\n const a2p = a2 * (1 + G);\n const C1p = sqrt(pow(a1p, 2) + pow(b1, 2));\n const C2p = sqrt(pow(a2p, 2) + pow(b2, 2));\n const avgCp = (C1p + C2p) / 2;\n const arctan1 = rad2deg(atan2(b1, a1p));\n const arctan2 = rad2deg(atan2(b2, a2p));\n const h1p = arctan1 >= 0 ? arctan1 : arctan1 + 360;\n const h2p = arctan2 >= 0 ? arctan2 : arctan2 + 360;\n const avgHp =\n abs(h1p - h2p) > 180 ? (h1p + h2p + 360) / 2 : (h1p + h2p) / 2;\n const T =\n 1 -\n 0.17 * cos(deg2rad(avgHp - 30)) +\n 0.24 * cos(deg2rad(2 * avgHp)) +\n 0.32 * cos(deg2rad(3 * avgHp + 6)) -\n 0.2 * cos(deg2rad(4 * avgHp - 63));\n let deltaHp = h2p - h1p;\n deltaHp =\n abs(deltaHp) <= 180\n ? deltaHp\n : h2p <= h1p\n ? deltaHp + 360\n : deltaHp - 360;\n deltaHp = 2 * sqrt(C1p * C2p) * sin(deg2rad(deltaHp) / 2);\n const deltaL = L2 - L1;\n const deltaCp = C2p - C1p;\n const sl = 1 + (0.015 * pow(avgL - 50, 2)) / sqrt(20 + pow(avgL - 50, 2));\n const sc = 1 + 0.045 * avgCp;\n const sh = 1 + 0.015 * avgCp * T;\n const deltaTheta = 30 * exp(-pow((avgHp - 275) / 25, 2));\n const Rc = 2 * sqrt(pow(avgCp, 7) / (pow(avgCp, 7) + pow(25, 7)));\n const Rt = -Rc * sin(2 * deg2rad(deltaTheta));\n const result = sqrt(\n pow(deltaL / (Kl * sl), 2) +\n pow(deltaCp / (Kc * sc), 2) +\n pow(deltaHp / (Kh * sh), 2) +\n Rt * (deltaCp / (Kc * sc)) * (deltaHp / (Kh * sh))\n );\n return max(0, min(100, result));\n}\n","import Color from '../Color.js';\n\n// simple Euclidean distance\nexport default function (a, b, mode = 'lab') {\n // Delta E (CIE 1976)\n // see http://www.brucelindbloom.com/index.html?Equations.html\n a = new Color(a);\n b = new Color(b);\n const l1 = a.get(mode);\n const l2 = b.get(mode);\n let sum_sq = 0;\n for (let i in l1) {\n const d = (l1[i] || 0) - (l2[i] || 0);\n sum_sq += d * d;\n }\n return Math.sqrt(sum_sq);\n}\n","import Color from '../Color.js';\n\nexport default (...args) => {\n try {\n new Color(...args);\n return true;\n // eslint-disable-next-line\n } catch (e) {\n return false;\n }\n};\n","// some pre-defined color scales:\nimport chroma from '../chroma.js';\nimport '../io/hsl/index.js';\nimport scale from '../generator/scale.js';\n\nexport default {\n cool() {\n return scale([chroma.hsl(180, 1, 0.9), chroma.hsl(250, 0.7, 0.4)]);\n },\n hot() {\n return scale(['#000', '#f00', '#ff0', '#fff'], [0, 0.25, 0.75, 1]).mode(\n 'rgb'\n );\n }\n};\n","/**\n ColorBrewer colors for chroma.js\n\n Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The\n Pennsylvania State University.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software distributed\n under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n CONDITIONS OF ANY KIND, either express or implied. See the License for the\n specific language governing permissions and limitations under the License.\n*/\n\nconst colorbrewer = {\n // sequential\n OrRd: ['#fff7ec', '#fee8c8', '#fdd49e', '#fdbb84', '#fc8d59', '#ef6548', '#d7301f', '#b30000', '#7f0000'],\n PuBu: ['#fff7fb', '#ece7f2', '#d0d1e6', '#a6bddb', '#74a9cf', '#3690c0', '#0570b0', '#045a8d', '#023858'],\n BuPu: ['#f7fcfd', '#e0ecf4', '#bfd3e6', '#9ebcda', '#8c96c6', '#8c6bb1', '#88419d', '#810f7c', '#4d004b'],\n Oranges: ['#fff5eb', '#fee6ce', '#fdd0a2', '#fdae6b', '#fd8d3c', '#f16913', '#d94801', '#a63603', '#7f2704'],\n BuGn: ['#f7fcfd', '#e5f5f9', '#ccece6', '#99d8c9', '#66c2a4', '#41ae76', '#238b45', '#006d2c', '#00441b'],\n YlOrBr: ['#ffffe5', '#fff7bc', '#fee391', '#fec44f', '#fe9929', '#ec7014', '#cc4c02', '#993404', '#662506'],\n YlGn: ['#ffffe5', '#f7fcb9', '#d9f0a3', '#addd8e', '#78c679', '#41ab5d', '#238443', '#006837', '#004529'],\n Reds: ['#fff5f0', '#fee0d2', '#fcbba1', '#fc9272', '#fb6a4a', '#ef3b2c', '#cb181d', '#a50f15', '#67000d'],\n RdPu: ['#fff7f3', '#fde0dd', '#fcc5c0', '#fa9fb5', '#f768a1', '#dd3497', '#ae017e', '#7a0177', '#49006a'],\n Greens: ['#f7fcf5', '#e5f5e0', '#c7e9c0', '#a1d99b', '#74c476', '#41ab5d', '#238b45', '#006d2c', '#00441b'],\n YlGnBu: ['#ffffd9', '#edf8b1', '#c7e9b4', '#7fcdbb', '#41b6c4', '#1d91c0', '#225ea8', '#253494', '#081d58'],\n Purples: ['#fcfbfd', '#efedf5', '#dadaeb', '#bcbddc', '#9e9ac8', '#807dba', '#6a51a3', '#54278f', '#3f007d'],\n GnBu: ['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081'],\n Greys: ['#ffffff', '#f0f0f0', '#d9d9d9', '#bdbdbd', '#969696', '#737373', '#525252', '#252525', '#000000'],\n YlOrRd: ['#ffffcc', '#ffeda0', '#fed976', '#feb24c', '#fd8d3c', '#fc4e2a', '#e31a1c', '#bd0026', '#800026'],\n PuRd: ['#f7f4f9', '#e7e1ef', '#d4b9da', '#c994c7', '#df65b0', '#e7298a', '#ce1256', '#980043', '#67001f'],\n Blues: ['#f7fbff', '#deebf7', '#c6dbef', '#9ecae1', '#6baed6', '#4292c6', '#2171b5', '#08519c', '#08306b'],\n PuBuGn: ['#fff7fb', '#ece2f0', '#d0d1e6', '#a6bddb', '#67a9cf', '#3690c0', '#02818a', '#016c59', '#014636'],\n Viridis: ['#440154', '#482777', '#3f4a8a', '#31678e', '#26838f', '#1f9d8a', '#6cce5a', '#b6de2b', '#fee825'],\n\n // diverging\n Spectral: ['#9e0142', '#d53e4f', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#e6f598', '#abdda4', '#66c2a5', '#3288bd', '#5e4fa2'],\n RdYlGn: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#d9ef8b', '#a6d96a', '#66bd63', '#1a9850', '#006837'],\n RdBu: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#f7f7f7', '#d1e5f0', '#92c5de', '#4393c3', '#2166ac', '#053061'],\n PiYG: ['#8e0152', '#c51b7d', '#de77ae', '#f1b6da', '#fde0ef', '#f7f7f7', '#e6f5d0', '#b8e186', '#7fbc41', '#4d9221', '#276419'],\n PRGn: ['#40004b', '#762a83', '#9970ab', '#c2a5cf', '#e7d4e8', '#f7f7f7', '#d9f0d3', '#a6dba0', '#5aae61', '#1b7837', '#00441b'],\n RdYlBu: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee090', '#ffffbf', '#e0f3f8', '#abd9e9', '#74add1', '#4575b4', '#313695'],\n BrBG: ['#543005', '#8c510a', '#bf812d', '#dfc27d', '#f6e8c3', '#f5f5f5', '#c7eae5', '#80cdc1', '#35978f', '#01665e', '#003c30'],\n RdGy: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#ffffff', '#e0e0e0', '#bababa', '#878787', '#4d4d4d', '#1a1a1a'],\n PuOr: ['#7f3b08', '#b35806', '#e08214', '#fdb863', '#fee0b6', '#f7f7f7', '#d8daeb', '#b2abd2', '#8073ac', '#542788', '#2d004b'],\n\n // qualitative\n Set2: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', '#e5c494', '#b3b3b3'],\n Accent: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0', '#f0027f', '#bf5b17', '#666666'],\n Set1: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33', '#a65628', '#f781bf', '#999999'],\n Set3: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462', '#b3de69', '#fccde5', '#d9d9d9', '#bc80bd', '#ccebc5', '#ffed6f'],\n Dark2: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02', '#a6761d', '#666666'],\n Paired: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f', '#ff7f00', '#cab2d6', '#6a3d9a', '#ffff99', '#b15928'],\n Pastel2: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4', '#e6f5c9', '#fff2ae', '#f1e2cc', '#cccccc'],\n Pastel1: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4', '#fed9a6', '#ffffcc', '#e5d8bd', '#fddaec', '#f2f2f2']\n};\n\n// add lowercase aliases for case-insensitive matches\nfor (let key of Object.keys(colorbrewer)) {\n colorbrewer[key.toLowerCase()] = colorbrewer[key];\n}\n\nexport default colorbrewer;\n","import { Layout } from './layout'\nimport chroma from 'chroma-js'\nimport paper, { Layer, Path, Size } from 'paper'\nimport { addClass, debounce, emitEvent, fuzzyEquals, noop, removeClass } from './util'\nimport { Item } from './item'\nimport { Mask } from './items/mask'\nimport { Modifier } from './modifier'\nimport { Beam } from './items/beam'\nimport { Collision as CollisionItem } from './items/collision'\nimport { Stateful } from './stateful'\nimport { OffsetCoordinates } from './coordinates/offset'\nimport { State } from './state'\nimport { Puzzles } from '../puzzles'\nimport { StepState } from './step'\nimport { EventListeners } from './eventListeners'\nimport { Solution } from './solution'\nimport { Interact } from './interact'\nimport { Tile } from './items/tile'\n\nconst elements = Object.freeze({\n footer: document.getElementById('footer'),\n footerMessage: document.getElementById('footer-message'),\n headerMessage: document.getElementById('header-message'),\n main: document.getElementById('main'),\n next: document.getElementById('next'),\n previous: document.getElementById('previous'),\n puzzle: document.getElementById('puzzle'),\n puzzleId: document.getElementById('puzzle-id'),\n redo: document.getElementById('redo'),\n reset: document.getElementById('reset'),\n undo: document.getElementById('undo'),\n title: document.querySelector('title')\n})\n\n// There are various spots below that utilize setTimeout in order to process events in order and to prevent\n// long-running computations from blocking UI updates.\n// See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Event_loop\nexport class Puzzle {\n connections = []\n debug = false\n error = false\n layers = {}\n message\n selectedTile\n solved = false\n\n #beams\n #beamsUpdateDelay = 30\n #collisions = {}\n #eventListeners = new EventListeners({ context: this })\n #interact\n #isUpdatingBeams = false\n #mask\n #maskQueue = []\n #solution\n #state\n #termini\n #tiles = []\n\n constructor () {\n // Don't automatically insert items into the scene graph, they must be explicitly inserted\n paper.settings.insertItems = false\n // noinspection JSCheckFunctionSignatures\n paper.setup(elements.puzzle)\n\n this.#resize()\n\n this.layers.mask = new Layer()\n this.layers.collisions = new Layer()\n this.layers.debug = new Layer()\n\n this.#eventListeners.add([\n { type: Beam.Events.Update, handler: this.#onBeamUpdate },\n { type: 'change', element: elements.puzzleId, handler: this.#onSelect },\n { type: 'click', element: elements.next, handler: this.#next },\n { type: 'click', element: elements.previous, handler: this.#previous },\n { type: 'click', element: elements.redo, handler: this.#redo },\n { type: 'click', element: elements.reset, handler: this.#reset },\n { type: 'click', element: elements.undo, handler: this.#undo },\n { type: 'keyup', handler: this.#onKeyup },\n { type: Modifier.Events.Invoked, handler: this.#onModifierInvoked },\n { type: Puzzle.Events.Mask, handler: this.#onMask },\n { type: 'resize', element: window, handler: debounce(this.#resize) },\n { type: Stateful.Events.Update, handler: this.#onStateUpdate },\n { type: 'tap', element: elements.puzzle, handler: this.#onTap }\n ])\n\n this.#interact = new Interact(elements.puzzle)\n this.#updateDropdown()\n\n this.select()\n }\n\n addMove () {\n return this.#state.addMove()\n }\n\n centerOnTile (offset) {\n const tile = this.layout.getTileByOffset(offset)\n paper.view.center = tile.center\n }\n\n clearDebugPoints () {\n this.layers.debug.clear()\n }\n\n drawDebugPoint (point, style = {}) {\n const circle = new Path.Circle(Object.assign({\n radius: 3,\n fillColor: 'red',\n strokeColor: 'white',\n strokeWidth: 1,\n center: point\n }, style))\n this.layers.debug.addChild(circle)\n }\n\n getBeamsUpdateDelay () {\n return this.#beamsUpdateDelay\n }\n\n getItems (tile) {\n return (tile ? this.#tiles.filter((t) => t === tile) : this.#tiles).flatMap((tile) => tile.items)\n }\n\n getTile (point) {\n const result = paper.project.hitTest(point.ceil(), {\n fill: true,\n match: (result) => result.item.data.type === Item.Types.tile,\n segments: true,\n stroke: true,\n tolerance: 0\n })\n return result ? this.layout.getTileByAxial(result.item.data.coordinates.axial) : result\n }\n\n mask (mask) {\n if (this.#mask) {\n if (this.#mask.equals(mask)) {\n console.debug(mask)\n throw new Error(`Duplicate mask detected: ${mask.id}`)\n }\n\n console.debug('adding mask to queue', mask)\n this.#maskQueue.push(mask)\n return\n }\n\n this.#mask = mask\n\n // TODO animation?\n const tiles = this.#tiles.filter(mask.tileFilter)\n .map((tile) => new Mask(\n tile,\n typeof mask.configuration.style === 'function'\n ? mask.configuration.style(tile)\n : mask.configuration.style\n ))\n\n this.layers.mask.addChildren(tiles.map((tile) => tile.group))\n\n if (mask.message) {\n elements.headerMessage.textContent = mask.message\n }\n\n mask.onMask(this)\n\n document.body.classList.add(Puzzle.Events.Mask)\n }\n\n select (id) {\n if (id !== undefined && id === this.#state?.getId()) {\n // This ID is already selected\n return\n }\n\n try {\n this.#state = State.resolve(id)\n } catch (e) {\n this.#onError(e, 'Could not load puzzle.')\n }\n\n this.#reload()\n }\n\n unmask () {\n console.debug('unmask', this.#mask)\n this.layers.mask.removeChildren()\n this.#updateMessage(this.selectedTile)\n this.#mask.onUnmask(this)\n this.#mask = undefined\n\n document.body.classList.remove(Puzzle.Events.Mask)\n\n const mask = this.#maskQueue.pop()\n if (mask) {\n console.debug('processing next mask in queue', mask)\n // Evaluate after any current events have processed (e.g. beam updates from last mask)\n setTimeout(() => {\n // Allow mask to update since state may have changed since it was queued\n // If onUpdate returns false the mask will not be applied\n if (mask.onUpdate() !== false) {\n this.mask(mask)\n }\n })\n }\n }\n\n update () {\n if (!this.#mask && !this.#isUpdatingBeams) {\n this.#isUpdatingBeams = true\n this.#updateBeams()\n }\n }\n\n updateSelectedTile (tile) {\n const previouslySelectedTile = this.selectedTile\n\n this.selectedTile = tile\n this.#state.setSelectedTile(tile)\n this.#updateMessage(tile)\n this.#updateModifiers(tile, previouslySelectedTile)\n\n if (previouslySelectedTile && previouslySelectedTile !== tile) {\n previouslySelectedTile.onDeselected(tile)\n }\n\n if (tile && tile !== previouslySelectedTile) {\n tile.onSelected(previouslySelectedTile)\n }\n\n return previouslySelectedTile\n }\n\n updateState () {\n this.#state.update(Object.assign(this.#state.getCurrent(), { layout: this.layout.getState() }))\n this.#updateActions()\n\n emitEvent(Puzzle.Events.Updated, { state: this.#state })\n }\n\n #addLayers () {\n // Add layers in the order we want them\n [\n this.layout.layers.tiles,\n this.layout.layers.items,\n this.layers.mask,\n this.layers.collisions,\n this.layers.debug\n ].forEach((layer) => paper.project.addLayer(layer))\n }\n\n #getModifiers (tile) {\n // Sort by ID to ensure they always appear in the same order regardless of ownership\n return (tile?.modifiers || []).concat(this.layout.modifiers)\n .filter((modifier) => !modifier.immutable)\n .sort((a, b) => a.id - b.id)\n }\n\n #next () {\n const id = Puzzles.visible.nextId(this.#state.getId())\n if (id) {\n this.select(id)\n }\n }\n\n #onBeamUpdate (event) {\n const beam = event.detail.beam\n const state = event.detail.state\n\n if (state?.has(StepState.Collision)) {\n const collision = state.get(StepState.Collision)\n const collisionId = Puzzle.Collision.id(collision.point)\n const existing = this.#collisions[collisionId]\n\n if (existing) {\n existing.addBeam(beam)\n } else {\n this.#collisions[collisionId] = new Puzzle.Collision(this.layers.collisions, [beam], collision.point)\n }\n\n // Beam with collision has an active mask\n const mask = this.#mask?.configuration\n if (mask?.beam?.equals(beam)) {\n this.unmask()\n }\n }\n\n Object.values(this.#collisions).forEach((collision) => collision.update())\n\n this.#beams\n .filter((otherBeam) => otherBeam !== beam)\n .forEach((beam) => beam.onBeamUpdated(event, this))\n\n setTimeout(() => this.update(), 0)\n }\n\n #onError (error, message, cause) {\n this.error = true\n\n // Support exclusion of error\n if (typeof error === 'string') {\n message = error\n cause = message\n error = undefined\n }\n\n if (error) {\n console.error(error)\n }\n\n cause = cause ?? error?.cause\n if (cause) {\n console.error('cause:', cause)\n }\n\n message = message ?? error?.message ?? 'The puzzle has encountered an error, please consider reporting.'\n elements.headerMessage.textContent = message\n document.body.classList.add(Puzzle.Events.Error)\n }\n\n #onKeyup (event) {\n if (this.debug && event.key === 's') {\n this.update()\n }\n }\n\n #onMask (event) {\n console.debug('Mask event', event)\n this.mask(event.detail.mask)\n }\n\n #onModifierInvoked (event) {\n const modifier = event.detail.modifier\n const tile = event.detail.tile\n\n if (\n // Modifier does not belong to a tile\n !modifier.parent &&\n // Tile has a lock modifier\n tile.modifiers.some((modifier) => modifier.type === Modifier.Types.lock) &&\n // Tile does not already have a modifier of this type\n !tile.modifiers.some((other) => other.type === modifier.type) &&\n // Tile has less than the maximum number of modifiers\n tile.modifiers.length < Tile.MaxModifiers\n ) {\n console.debug('locking modifier to tile', modifier, tile)\n this.layout.removeModifier(modifier)\n modifier.move(tile)\n // Disable any other attached modifiers of this type to prevent duplicate locking\n this.#getModifiers(tile)\n .filter((other) => other.type === modifier.type && other.id !== modifier.id)\n .forEach((other) => other.update({ disabled: true }))\n }\n\n this.addMove()\n this.updateState()\n\n this.#beams\n // Update beams in the tile being modified first\n .sort((beam) => tile.items.some((item) => item === beam) ? -1 : 0)\n .forEach((beam) => beam.onModifierInvoked(event, this))\n\n setTimeout(() => this.update(), 0)\n }\n\n #onSelect (event) {\n this.select(event.target.value)\n }\n\n #onSolved () {\n if (this.solved) {\n return\n }\n\n this.solved = true\n\n this.updateSelectedTile(undefined)\n this.mask(Puzzle.#solvedMask)\n\n const span = document.createElement('span')\n span.classList.add(Puzzle.ClassNames.Icon)\n span.textContent = 'celebration'\n span.title = 'Solved!'\n\n elements.headerMessage.replaceChildren(span)\n\n document.body.classList.add(Puzzle.Events.Solved)\n emitEvent(Puzzle.Events.Solved)\n }\n\n #onStateUpdate (event) {\n console.debug('Puzzle.#onStateUpdate()', event)\n this.updateState()\n }\n\n #onTap (event) {\n let tile\n\n if (this.solved || this.error) {\n return\n }\n\n const result = paper.project.hitTest(event.detail.point)\n\n switch (result?.item.data.type) {\n case Item.Types.mask:\n return\n case Item.Types.tile:\n tile = this.layout.getTileByAxial(result.item.data.coordinates.axial)\n break\n }\n\n // There is an active mask\n if (this.#mask) {\n this.#mask.onTap(this, tile)\n } else {\n const previouslySelectedTile = this.updateSelectedTile(tile)\n\n if (tile && tile === previouslySelectedTile) {\n tile.onTap(event)\n }\n }\n }\n\n #previous () {\n const id = Puzzles.visible.previousId(this.#state.getId())\n if (id) {\n this.select(id)\n }\n }\n\n #redo () {\n if (this.#state.redo()) {\n this.#reload()\n }\n }\n\n #reload () {\n this.error = false\n\n if (this.#state) {\n this.#teardown()\n }\n\n this.#setup()\n\n emitEvent(Puzzle.Events.Updated, { state: this.#state })\n }\n\n #removeLayers () {\n Object.values(this.layers).forEach((layer) => layer.removeChildren())\n paper.project.clear()\n }\n\n #reset () {\n if (this.#state.reset()) {\n this.#reload()\n }\n }\n\n #resize () {\n const { width, height } = elements.main.getBoundingClientRect()\n elements.puzzle.style.height = height + 'px'\n elements.puzzle.style.width = width + 'px'\n paper.view.viewSize = new Size(width, height)\n }\n\n #setup () {\n const { layout, message, solution } = this.#state.getCurrent()\n\n this.layout = new Layout(layout)\n this.message = message\n this.#solution = new Solution(solution)\n\n this.#tiles = this.layout.tiles\n this.#termini = this.layout.items.filter((item) => item.type === Item.Types.terminus)\n this.#beams = this.#termini.flatMap((terminus) => terminus.beams)\n\n this.#addLayers()\n\n document.body.classList.add(Puzzle.Events.Loaded)\n\n const selectedTileId = this.#state.getSelectedTile()\n const selectedTile = selectedTileId\n ? this.layout.getTileByOffset(new OffsetCoordinates(...selectedTileId.split(',')))\n : undefined\n\n this.updateSelectedTile(selectedTile)\n this.updateState()\n this.update()\n }\n\n #teardown () {\n document.body.classList.remove(...Object.values(Puzzle.Events))\n\n this.#removeLayers()\n\n this.#tiles.forEach((tile) => tile.teardown())\n this.#tiles = []\n this.#solution?.teardown()\n this.#solution = undefined\n this.solved = false\n this.layout?.teardown()\n this.layout = undefined\n this.selectedTile = undefined\n this.#beams = []\n this.#collisions = {}\n this.#isUpdatingBeams = false\n this.#mask = undefined\n this.#maskQueue = []\n this.#termini = []\n }\n\n #undo () {\n if (this.#state.undo()) {\n this.#reload()\n }\n }\n\n #updateActions () {\n const id = this.#state.getId()\n const title = this.#state.getTitle()\n\n // Update browser title\n elements.title.textContent = `Beaming: Puzzle ${title}`\n\n removeClass(Puzzle.ClassNames.Disabled, ...Array.from(document.querySelectorAll('#actions li')))\n\n const disable = []\n\n if (!this.#state.canUndo()) {\n disable.push(elements.undo)\n }\n\n if (!this.#state.canRedo()) {\n disable.push(elements.redo)\n }\n\n if (!this.#state.canReset()) {\n disable.push(elements.reset)\n }\n\n if (!Puzzles.visible.has(id)) {\n // Custom puzzle\n elements.puzzleId.value = ''\n disable.push(elements.previous, elements.next)\n } else {\n elements.puzzleId.value = id\n\n if (id === Puzzles.visible.firstId) {\n disable.push(elements.previous)\n } else if (id === Puzzles.visible.lastId) {\n disable.push(elements.next)\n }\n }\n\n addClass(Puzzle.ClassNames.Disabled, ...disable)\n }\n\n #updateDropdown () {\n elements.puzzleId.replaceChildren()\n for (const id of Puzzles.visible.ids) {\n const option = document.createElement('option')\n option.value = id\n option.innerText = Puzzles.titles[id]\n elements.puzzleId.append(option)\n }\n }\n\n #updateBeams () {\n const beams = this.#beams.filter((beam) => beam.isPending())\n\n if (!beams.length) {\n this.#isUpdatingBeams = false\n\n // Ensure we check for a solution after all other in-progress events have processed\n setTimeout(() => {\n if (this.#solution.isSolved()) {\n this.#onSolved()\n }\n }, 0)\n return\n }\n\n if (this.debug) {\n this.layers.debug.clear()\n }\n\n beams.forEach((beam) => beam.step(this))\n\n // Ensure the UI has a chance to update between loops\n setTimeout(() => this.#updateBeams(), this.#beamsUpdateDelay)\n }\n\n #updateMessage (tile) {\n elements.headerMessage.textContent = this.message\n elements.footerMessage.replaceChildren()\n\n if (tile) {\n // Check to see if tile has any color elements that need to be displayed\n // Note: these will only be displayed if the tile contains an item with more than one color\n const colorElements = tile.items\n .map((item) => item.getColorElements(tile))\n .find((colorElements) => colorElements.length > 1) || []\n elements.footerMessage.replaceChildren(...colorElements)\n }\n }\n\n #updateModifiers (tile, previouslySelectedTile) {\n this.#getModifiers(previouslySelectedTile).forEach((modifier) => modifier.detach())\n\n const modifiers = this.#getModifiers(tile)\n modifiers.forEach((modifier) => modifier.attach(tile))\n\n elements.footer.classList.toggle(Puzzle.ClassNames.Active, modifiers.length > 0)\n }\n\n static Collision = class {\n constructor (layer, beams, point, item = undefined) {\n this.id = Puzzle.Collision.id(point)\n this.layer = layer\n this.beams = beams\n this.point = point\n this.item = item\n }\n\n addBeam (beam) {\n if (!this.beams.some((otherBeam) => otherBeam.id === beam.id)) {\n this.beams.push(beam)\n }\n\n return this.beams\n }\n\n addItem (color) {\n this.item = new CollisionItem({ center: this.point, color })\n this.layer.addChild(this.item.group)\n }\n\n equals (other) {\n return fuzzyEquals(this.point, other?.point)\n }\n\n getColor () {\n return this.beams.length\n ? chroma.average(this.beams.map((beam) => beam.getColor())).hex()\n : undefined\n }\n\n removeItem () {\n if (this.item) {\n this.item.remove()\n this.item = undefined\n }\n }\n\n update () {\n // Remove any beam which no longer matches its collision point\n this.beams = this.beams.filter((beam) => this.equals(beam.getCollision()))\n\n const color = this.getColor()\n\n // Remove no longer valid collision items\n if (this.item && (!this.beams.length || this.item.color !== color)) {\n this.removeItem()\n }\n\n // Add missing collision items\n if (this.beams.length && !this.item) {\n this.addItem(color)\n }\n }\n\n static id (point) {\n const rounded = point.round()\n return [rounded.x, rounded.y].join(',')\n }\n }\n\n static ClassNames = Object.freeze({\n Active: 'active',\n Disabled: 'disabled',\n Icon: 'material-symbols-outlined'\n })\n\n static Events = Object.freeze({\n Error: 'puzzle-error',\n Loaded: 'puzzle-loaded',\n Mask: 'puzzle-mask',\n Solved: 'puzzle-solved',\n Updated: 'puzzle-updated'\n })\n\n static Mask = class {\n constructor (configuration = {}) {\n configuration.style ??= {}\n this.configuration = configuration\n\n this.id = configuration.id\n this.message = configuration.message\n this.tileFilter = configuration.tileFilter ?? noop(true)\n this.onMask = configuration.onMask ?? noop\n this.onTap = configuration.onTap ?? noop\n this.onUnmask = configuration.onUnmask ?? noop\n this.onUpdate = configuration.onUpdate ?? noop\n }\n\n equals (other) {\n return this.id === other.id\n }\n }\n\n // Filters for all beams that are connected to the terminus, or have been merged into a beam that is connected\n static #connectedBeams = (item) => item.type === Item.Types.beam && item.isConnected()\n\n static #solvedMask = new Puzzle.Mask({\n style: (tile) => {\n const beams = tile.items.filter(Puzzle.#connectedBeams)\n const colors = beams.flatMap((beam) => beam.getSteps(tile).flatMap((step) => step.color))\n return { fillColor: chroma.average(colors).hex() }\n },\n tileFilter: (tile) => tile.items.some(Puzzle.#connectedBeams)\n })\n}\n","import paper, { Layer } from 'paper'\nimport { CubeCoordinates } from './coordinates/cube'\nimport { OffsetCoordinates } from './coordinates/offset'\nimport { Tile } from './items/tile'\nimport { getConvertedDirection } from './util'\nimport { Stateful } from './stateful'\nimport { modifierFactory } from './modifierFactory'\n\nexport class Layout extends Stateful {\n #tilesByAxial = []\n #tilesByOffset = []\n\n items = []\n layers = {}\n modifiers = []\n tiles = []\n tileSize = 120\n\n constructor (state) {\n super(state)\n\n this.type = state.type || Layout.Types.oddR\n\n const center = paper.view.center\n const parameters = Tile.parameters(this.tileSize)\n const tiles = state.tiles\n\n // Using parameters.width because we want the \"stacked height\", or the height of the hexagon without the points.\n const height = tiles.length * parameters.width\n const startingOffsetY = center.y - (height / 2)\n\n // noinspection JSValidateTypes\n this.layers.tiles = new Layer()\n // noinspection JSValidateTypes\n this.layers.items = new Layer()\n\n this.modifiers = (state.modifiers || [])\n .map((state, index) => modifierFactory(null, state, index))\n .filter((modifier) => modifier !== undefined)\n\n // Find the widest row\n const widestRow = tiles.reduce((current, row, index) => {\n const length = row.length\n\n // Favor offset rows, since they will be wider\n if (length > current.length || (length === current.length && this.#isOffsetRow(index))) {\n return { index, length }\n }\n\n return current\n }, { index: 0, length: 0 })\n\n const width = (widestRow.length * parameters.width) + (this.#isOffsetRow(widestRow.index) ? parameters.inradius : 0)\n const startingOffsetX = center.x - (width / 2)\n\n for (let r = 0; r < tiles.length; r++) {\n const row = tiles[r]\n const rowByAxial = new Array(row.length).fill(null)\n const rowByOffset = new Array(row.length).fill(null)\n const rowOffset = Math.floor(r / 2)\n\n for (let c = 0; c < row.length; c++) {\n const axial = new CubeCoordinates(c - rowOffset, r)\n const offset = new OffsetCoordinates(r, c)\n\n const layout = {\n row: r,\n column: c,\n // Shift row to the right if it is an offset row\n startingOffsetX: startingOffsetX + (this.#isOffsetRow(r) ? parameters.inradius : 0),\n startingOffsetY\n }\n\n const state = row[c]\n if (!state) {\n continue\n }\n\n const tile = new Tile({ axial, offset }, layout, parameters, state)\n\n this.layers.tiles.addChild(tile.group)\n\n if (tile.items.length) {\n this.items.push(...tile.items)\n this.layers.items.addChildren(tile.items.map((item) => item.group))\n }\n\n this.tiles.push(tile)\n\n rowByAxial[axial.q] = tile\n rowByOffset[offset.c] = tile\n }\n\n this.#tilesByAxial.push(rowByAxial)\n this.#tilesByOffset.push(rowByOffset)\n }\n }\n\n getTileByAxial (axial) {\n return (this.#tilesByAxial[axial.r] || [])[axial.q]\n }\n\n getTileByOffset (offset) {\n return this.#tilesByOffset[offset.r][offset.c]\n }\n\n getState () {\n const state = { type: this.type }\n\n // Tiles are defined by offset in the puzzle state\n state.tiles = this.#tilesByOffset.map((row) => row.map((tile) => tile?.getState() || null))\n const modifiers = this.modifiers.map((modifier) => modifier.getState())\n if (modifiers.length) {\n state.modifiers = modifiers\n }\n\n return state\n }\n\n getNeighboringTile (axial, direction) {\n return this.getTileByAxial(CubeCoordinates.neighbor(axial, getConvertedDirection(direction)))\n }\n\n removeModifier (modifier) {\n const index = this.modifiers.indexOf(modifier)\n if (index >= 0) {\n this.modifiers.splice(index, 1)\n }\n }\n\n teardown () {\n this.modifiers.forEach((modifier) => modifier.detach())\n Object.values(this.layers).forEach((layer) => layer.removeChildren())\n }\n\n #isOffsetRow (index) {\n return index % 2 === 0 ? this.type === Layout.Types.evenR : this.type === Layout.Types.oddR\n }\n\n static Types = Object.freeze({\n evenR: 'even-r',\n oddR: 'odd-r'\n })\n}\n","import { OffsetCoordinates } from './offset'\n\n/**\n * @see https://www.redblobgames.com/grids/hexagons/#coordinates\n */\nexport class CubeCoordinates {\n constructor (q, r, s) {\n if (!s) s = -q - r\n this.coordinates = [q, r, s]\n this.q = q\n this.r = r\n this.s = s\n }\n\n add (other) {\n return CubeCoordinates.add(this, other)\n }\n\n equals (other) {\n return this.q === other.q && this.r === other.r && this.s === other.s\n }\n\n isNeighbor (other) {\n return CubeCoordinates.isNeighbor(this, other)\n }\n\n neighbor (direction) {\n return CubeCoordinates.neighbor(this, direction)\n }\n\n toString () {\n return this.coordinates.join(',')\n }\n\n static add (a, b) {\n return new CubeCoordinates(a.q + b.q, a.r + b.r)\n }\n\n static direction (direction) {\n if (direction === 0) direction = 6\n // PaperJS uses a clockwise system, but the axial system is counter-clockwise.\n // So we flip the direction here by subtracting it from six\n return CubeCoordinates.directions[6 - direction]\n }\n\n static directions = [\n new CubeCoordinates(1, 0),\n new CubeCoordinates(1, -1),\n new CubeCoordinates(0, -1),\n new CubeCoordinates(-1, 0),\n new CubeCoordinates(-1, 1),\n new CubeCoordinates(0, 1)\n ]\n\n static isNeighbor (a, b) {\n return CubeCoordinates.directions\n .map((direction) => CubeCoordinates.add(a, direction))\n .some((neighbor) => neighbor.equals(b))\n }\n\n static neighbor (start, direction) {\n return CubeCoordinates.add(start, CubeCoordinates.direction(direction))\n }\n\n static toOffsetCoordinates (axial) {\n const c = axial.q + (axial.r - (axial.r & 1)) / 2\n return new OffsetCoordinates(c, axial.r)\n }\n}\n","import { CubeCoordinates } from './cube'\n\nexport class OffsetCoordinates {\n constructor (r, c) {\n this.coordinates = [r, c]\n this.r = r\n this.c = c\n }\n\n toString () {\n return this.coordinates.join(',')\n }\n\n static toAxialCoordinates (offset) {\n const q = offset.c - (offset.r - (offset.r & 1)) / 2\n return new CubeCoordinates(q, offset.r)\n }\n}\n","import { Color, Path, Point } from 'paper'\nimport { Item } from '../item'\nimport { itemFactory } from '../itemFactory'\nimport { emitEvent, getPointBetween } from '../util'\nimport { modifierFactory } from '../modifierFactory'\n\nexport class Tile extends Item {\n selected = false\n\n #ui\n\n constructor (coordinates, layout, parameters, state) {\n super(null, state, { locked: false })\n\n this.#ui = Tile.ui(layout, parameters, state, { coordinates, type: this.type })\n\n this.center = this.#ui.center\n this.coordinates = coordinates\n this.hexagon = this.#ui.hexagon\n this.parameters = parameters\n this.styles = this.#ui.styles\n\n this.group.addChildren([this.#ui.hexagon])\n\n // These need to be last, since they reference this\n this.items = (state.items || [])\n .map((state, index) => itemFactory(this, state, index))\n .filter((item) => item !== undefined)\n\n this.modifiers = (state.modifiers || [])\n .map((state, index) => modifierFactory(this, state, index))\n .filter((modifier) => modifier !== undefined)\n\n this.modifiers.forEach((modifier) => this.updateIcon(modifier))\n\n this.update()\n }\n\n addItem (item) {\n this.items.push(item)\n this.update()\n }\n\n addModifier (modifier) {\n this.modifiers.push(modifier)\n this.updateIcon(modifier)\n }\n\n afterModify () {\n this.setStyle(this.selected ? 'selected' : 'default')\n this.modifiers.forEach((modifier) => modifier.update({ disabled: false }))\n }\n\n beforeModify () {\n this.group.bringToFront()\n this.setStyle('edit')\n this.modifiers.forEach((modifier) => modifier.update({ disabled: true }))\n }\n\n getState () {\n const state = { id: this.id, type: this.type }\n\n // Filter out beams, which are not stored in state\n const items = this.items.filter((item) => item.type !== Item.Types.beam).map((item) => item.getState())\n if (items.length) {\n state.items = items\n }\n\n const modifiers = this.modifiers.map((modifier) => modifier.getState())\n if (modifiers.length) {\n state.modifiers = modifiers\n }\n\n // noinspection JSValidateTypes\n return state\n }\n\n onTap (event) {\n this.items.forEach((item) => item.onTap(event))\n }\n\n onDeselected (selectedTile) {\n this.selected = false\n this.#ui.hexagon.style = this.styles.default\n this.items.forEach((item) => item.onDeselected())\n\n emitEvent(Tile.Events.Deselected, { selectedTile, deselectedTile: this })\n }\n\n onSelected (deselectedTile) {\n console.debug(this.toString(), 'selected')\n this.selected = true\n this.group.bringToFront()\n this.#ui.hexagon.style = this.styles.selected\n this.items.forEach((item) => item.onSelected())\n }\n\n removeItem (item) {\n const index = this.items.indexOf(item)\n if (index >= 0) {\n this.items.splice(index, 1)\n this.update()\n }\n }\n\n removeModifier (modifier) {\n const index = this.modifiers.indexOf(modifier)\n if (index >= 0) {\n this.modifiers.splice(index, 1)\n this.updateIcon(modifier)\n }\n }\n\n setStyle (style) {\n this.hexagon.set(this.styles[style])\n }\n\n teardown () {\n this.modifiers.forEach((modifier) => modifier.detach())\n }\n\n toString () {\n return `[${this.type}:${this.coordinates.offset.toString()}]`\n }\n\n updateIcon (modifier) {\n const index = this.modifiers.indexOf(modifier)\n if (index >= 0) {\n const position = getPointBetween(\n this.#ui.hexagon.segments[index].point,\n this.center,\n (length) => length / 3\n )\n const style = { fillColor: modifier.immutable ? '#ccc' : '#333' }\n const icon = modifier.getSymbol().place(position, { style })\n icon.data = { id: modifier.id, name: modifier.name, type: modifier.type }\n const childIndex = this.group.children.findIndex((icon) => icon.data.id === modifier.id)\n if (childIndex >= 0) {\n // Update existing\n this.group.children[childIndex].replaceWith(icon)\n } else {\n this.group.addChild(icon)\n }\n }\n }\n\n static parameters (height) {\n const circumradius = height / 2\n const width = Math.sqrt(3) * circumradius\n const inradius = width / 2\n const offsetY = height * (3 / 4)\n\n return {\n circumradius,\n height,\n inradius,\n offsetY,\n width\n }\n }\n\n static ui (layout, parameters, configuration, data) {\n const center = new Point(\n layout.startingOffsetX + parameters.inradius + layout.column * parameters.width,\n layout.startingOffsetY + parameters.circumradius + layout.row * parameters.offsetY\n )\n\n const dashWidth = parameters.circumradius / 10\n\n const styles = Object.assign(\n {},\n Tile.Styles,\n {\n edit: Object.assign({ dashArray: [dashWidth, dashWidth] }, Tile.Styles.edit)\n },\n configuration.style || {}\n )\n\n const hexagon = new Path.RegularPolygon({\n center,\n closed: true,\n data,\n radius: parameters.circumradius,\n sides: 6,\n style: styles.default\n })\n\n return { center, hexagon, styles }\n }\n\n static Events = Object.freeze({\n Deselected: 'tile-deselected',\n Selected: 'tile-selected'\n })\n\n static MaxModifiers = 6\n\n static Styles = Object.freeze({\n // Need to use new Color here explicitly due to:\n // https://github.com/paperjs/paper.js/issues/2049\n default: {\n dashArray: [],\n fillColor: new Color('white'),\n strokeColor: new Color('#666'),\n strokeWidth: 1\n },\n edit: {\n strokeColor: new Color('black'),\n strokeWidth: 2\n },\n selected: {\n dashArray: [],\n strokeColor: new Color('black'),\n strokeWidth: 2\n }\n })\n}\n","import { capitalize, uniqueId } from './util'\nimport { CompoundPath, Group } from 'paper'\nimport { Stateful } from './stateful'\n\nexport class Item extends Stateful {\n center\n data\n group\n id\n immutable\n // Whether the item can be clicked on\n locked\n parent\n sortOrder = 100\n type\n\n constructor (parent, state, configuration) {\n // Retain ID from state if it exists, otherwise generate a new one\n state.id ??= uniqueId()\n\n super(state)\n\n this.id = state.id\n this.immutable ??= state?.immutable ?? false\n this.type = state?.type ?? configuration?.type\n if (this.type === undefined) {\n console.debug(`[Item:${this.id}]`, state, configuration)\n throw new Error('Item must have type defined')\n }\n\n this.data = Object.assign({ id: this.id, type: this.type }, configuration?.data || {})\n this.locked = configuration?.locked !== false\n\n if (parent) {\n this.center = parent.center\n }\n\n this.parent = parent\n this.group = new Group({ data: this.data, locked: this.locked })\n }\n\n equals (otherItem) {\n return otherItem instanceof Item && this.id === otherItem.id\n }\n\n getColorElements () {\n return []\n }\n\n getCompoundPath () {\n return new CompoundPath({\n // Must explicitly add insert: false for clone\n // https://github.com/paperjs/paper.js/issues/1721\n children: this.group.clone({ insert: false }).children\n .filter((child) => child.data.collidable !== false)\n })\n }\n\n getIndex () {\n return this.group.index\n }\n\n getLayer () {\n return this.group.parent\n }\n\n onTap () {}\n\n onCollision ({ collisionStep }) {\n return collisionStep\n }\n\n onDeselected () { }\n\n onInitialization () {}\n\n onSelected () {}\n\n remove () {\n this.group.remove()\n }\n\n toString () {\n return `[${this.type}:${this.id}]`\n }\n\n update () {}\n\n static immutable (item) {\n return item.immutable\n }\n\n static Types = Object.freeze(Object.fromEntries([\n 'beam',\n 'collision',\n 'filter',\n 'mask',\n 'portal',\n 'reflector',\n 'terminus',\n 'tile',\n 'wall'\n ].map((type) => [type, capitalize(type)])))\n}\n","import { emitEvent } from './util'\n\nexport class Stateful {\n #state = {}\n\n constructor (state) {\n this.setState(state)\n }\n\n getState () {\n return structuredClone(this.#state)\n }\n\n setState (state) {\n this.#state = structuredClone(state)\n }\n\n updateState (updater, dispatchEvent = false) {\n updater(this.#state)\n\n if (dispatchEvent) {\n // This will cause puzzle cache to update\n emitEvent(Stateful.Events.Update, { object: this })\n }\n\n return this.getState()\n }\n\n static Events = Object.freeze({\n Update: 'state-update'\n })\n}\n","import { Filter } from './items/filter'\nimport { Portal } from './items/portal'\nimport { Terminus } from './items/terminus'\nimport { Reflector } from './items/reflector'\nimport { Wall } from './items/wall'\nimport { Item } from './item'\n\nexport function itemFactory (parent, state, index) {\n let item\n\n switch (state.type) {\n case Item.Types.filter:\n item = new Filter(...arguments)\n break\n case Item.Types.portal:\n item = new Portal(...arguments)\n break\n case Item.Types.terminus:\n item = new Terminus(...arguments)\n break\n case Item.Types.reflector:\n item = new Reflector(...arguments)\n break\n case Item.Types.wall:\n item = new Wall(...arguments)\n break\n default:\n console.debug('itemFactory', state)\n throw new Error(`Cannot create item with unknown type: ${state.type}`)\n }\n\n if (item) {\n item.onInitialization()\n }\n\n return item\n}\n","import chroma from 'chroma-js'\nimport { Item } from '../item'\nimport { Color, Path } from 'paper'\nimport { movable } from '../modifiers/move'\nimport { getColorElement } from '../util'\nimport { StepState } from '../step'\n\nexport class Filter extends movable(Item) {\n constructor (tile, { color }) {\n super(...arguments)\n\n this.color = chroma.average(Array.isArray(color) ? color : [color]).hex()\n\n const fillColor = new Color(color)\n fillColor.alpha = 0.25\n\n // TODO: update to something else? prism?\n const item = new Path.RegularPolygon({\n center: tile.center,\n closed: true,\n radius: tile.parameters.circumradius / 3,\n sides: 3,\n style: {\n fillColor,\n strokeColor: color,\n strokeWidth: 2\n }\n })\n\n this.group.addChild(item)\n }\n\n getColorElements () {\n return [getColorElement(this.color)]\n }\n\n onCollision ({ currentStep, nextStep }) {\n // The beam will collide with the filter twice, on entry and exit, so ignore the first one, but track in state\n return nextStep.copy(\n currentStep.state.has(StepState.Filter)\n ? { colors: nextStep.colors.concat([this.color]) }\n : { state: new StepState({ insertAbove: this }, new StepState.Filter()) }\n )\n }\n}\n","import { Modifier } from '../modifier'\nimport { Puzzle } from '../puzzle'\nimport { emitEvent } from '../util'\nimport { Item } from '../item'\nimport { Icons } from '../icons'\n\nexport class Move extends Modifier {\n #mask\n\n name = Icons.Move.name\n title = 'Move'\n\n onTap (event) {\n super.onTap(event)\n\n const items = this.tile.items.filter(Move.movable)\n if (this.#mask || !items.length) {\n return\n }\n\n const mask = new Puzzle.Mask({\n id: this.toString(),\n onTap: this.#maskOnTap.bind(this),\n onMask: () => this.tile.beforeModify(),\n onUnmask: () => this.tile.afterModify(),\n tileFilter: this.tileFilter.bind(this)\n })\n\n this.#mask = mask\n\n emitEvent(Puzzle.Events.Mask, { mask })\n }\n\n moveFilter (tile) {\n // Filter out tiles that contain no movable items\n return super.moveFilter(tile) || !tile.items.some(Move.movable)\n }\n\n moveItems (tile) {\n const items = this.tile.items.filter(Move.movable)\n items.forEach((item) => item.move(tile))\n return {\n moved: [Move.data(this.tile, tile, items)],\n tiles: [this.tile, tile]\n }\n }\n\n tileFilter (tile) {\n // Never mask current tile\n return !tile.equals(this.tile) && (\n // Mask immutable tiles\n tile.modifiers.some(Modifier.immutable) ||\n // Mask tiles that contain any items we don't ignore\n tile.items.some((item) => !Move.ignoreItemTypes.includes(item.type))\n )\n }\n\n #maskOnTap (puzzle, tile) {\n puzzle.unmask()\n\n if (tile) {\n const data = this.moveItems(tile)\n\n puzzle.updateSelectedTile(tile)\n\n this.dispatchEvent(Modifier.Events.Invoked, data)\n }\n\n this.#mask = undefined\n }\n\n static data (fromTile, toTile, items) {\n return { fromTile, toTile, items }\n }\n\n static movable (item) {\n return item.movable\n }\n\n static ignoreItemTypes = [Item.Types.beam, Item.Types.wall]\n}\n\n/**\n * Move an item from one tile to another.\n * @param SuperClass\n * @returns {{new(*, *): MovableItem, movable: boolean, prototype: MovableItem}}\n */\nexport const movable = (SuperClass) => class MovableItem extends SuperClass {\n movable\n\n constructor (parent, state) {\n super(...arguments)\n this.movable = !this.immutable && state.movable !== false\n }\n\n move (tile) {\n this.parent.removeItem(this)\n\n // Update the position of the item group based on the vector of the tile we are moving to\n const vector = this.parent.center.subtract(tile.center)\n this.group.position = this.group.position.subtract(vector)\n\n // Update tile reference\n this.parent = tile\n this.parent.addItem(this)\n this.center = this.parent.center\n\n this.onMove()\n }\n\n onMove () {}\n}\n","import { capitalize, emitEvent } from './util'\nimport { Stateful } from './stateful'\nimport { EventListeners } from './eventListeners'\nimport { Interact } from './interact'\nimport { Item } from './item'\nimport { Icons } from './icons'\nimport { Tile } from './items/tile'\n\nconst modifiers = document.getElementById('modifiers')\n\n// Use incrementing IDs to preserve sort order\nlet uniqueId = 0\n\nexport class Modifier extends Stateful {\n #container\n #down = false\n #eventListener = new EventListeners({ context: this })\n #timeoutId\n\n configuration\n element\n disabled = false\n immutable = false\n name\n parent\n tile\n title\n type\n\n constructor (tile, state) {\n // Retain ID from state if it exists, otherwise generate a new one\n state.id ??= uniqueId++\n super(state)\n\n this.id = state.id\n this.parent = tile\n this.type = state.type\n }\n\n /**\n * Attach the modifier to the DOM and add listeners.\n */\n attach (tile) {\n this.tile = tile\n\n // Disable by default if: modifier is immutable\n this.disabled = this.immutable ||\n // The tile contains an immutable modifier\n this.tile?.modifiers.some((modifier) => modifier.type === Modifier.Types.immutable) ||\n // The tile has no interactable items\n !this.tile?.items.some((item) => item.type !== Item.Types.beam) ||\n (\n // The tile being attached to is not this modifier's parent\n !this.tile?.equals(this.parent) && (\n // The tile contains another modifier of this type already\n this.tile.modifiers.some((modifier) => modifier.type === this.type) ||\n // The tile already contains the max number of modifiers\n this.tile?.modifiers.length === Tile.MaxModifiers\n )\n )\n\n const li = this.#container = document.createElement('li')\n\n li.classList.add(['modifier', this.type.toLowerCase()].join('-'))\n li.dataset.id = this.id.toString()\n\n const span = this.element = document.createElement('span')\n\n span.classList.add('material-symbols-outlined', 'fill')\n\n li.append(span)\n\n this.update()\n\n this.#eventListener.add([\n { type: 'pointerdown', handler: this.onPointerDown },\n { type: 'pointerleave', handler: this.onPointerUp },\n { type: 'pointerup', handler: this.onPointerUp }\n ], { element: li })\n\n modifiers.append(li)\n }\n\n /**\n * Remove listeners and the modifier from the DOM.\n */\n detach () {\n if (!this.#container) {\n return\n }\n\n this.#eventListener.remove()\n this.#container.remove()\n\n this.element = undefined\n this.#container = undefined\n }\n\n dispatchEvent (event, detail) {\n emitEvent(event, Object.assign({}, detail || {}, { modifier: this, tile: this.tile }))\n }\n\n equals (other) {\n return other instanceof Modifier && this.id === other.id\n }\n\n getSymbol () {\n return Icons.ByName[this.name]\n }\n\n move (tile) {\n this.parent?.removeModifier(this)\n this.parent = tile\n tile?.addModifier(this)\n }\n\n moveFilter (tile) {\n // Mask immutable tiles\n return tile.modifiers.some(Modifier.immutable) ||\n // Mask tiles that only contain immutable items\n tile.items.every(Item.immutable)\n }\n\n onPointerDown (event) {\n if (event.button !== 0) {\n // Support toggle on non-primary pointer button\n this.onToggle(event)\n } else {\n this.#down = true\n }\n }\n\n onPointerUp (event) {\n clearTimeout(this.#timeoutId)\n\n if (this.#down && !this.disabled) {\n switch (event.type) {\n case 'pointerleave': {\n // Support swiping up on pointer device\n this.onToggle(event)\n break\n }\n case 'pointerup': {\n this.onTap(event)\n break\n }\n }\n\n // Keep the tile icon in sync\n this.parent?.updateIcon(this)\n }\n\n this.#down = false\n }\n\n onTap () {}\n\n onToggle () {\n Interact.vibrate()\n }\n\n toString () {\n return [this.name, this.id].join(':')\n }\n\n update (options) {\n options = Object.assign(\n { disabled: this.disabled, name: this.name, title: this.title },\n options || {}\n )\n\n if (!this.immutable) {\n this.disabled = options.disabled\n }\n\n this.name = options.name\n this.title = options.title\n\n if (this.#container) {\n this.#container.classList.toggle('disabled', this.disabled)\n this.element.textContent = this.name\n this.element.title = this.title\n }\n }\n\n static immutable (modifier) {\n return modifier.type === Modifier.Types.immutable\n }\n\n static Events = Object.freeze({\n Invoked: 'modifier-invoked',\n Moved: 'modifier-moved'\n })\n\n static Types = Object.freeze(Object.fromEntries([\n 'immutable',\n 'lock',\n 'move',\n 'rotate',\n 'swap',\n 'toggle'\n ].map((type) => [type, capitalize(type)])))\n}\n","export class EventListeners {\n #events = []\n #options = { element: document }\n\n constructor (options = {}) {\n this.#options = Object.assign(this.#options, options)\n }\n\n add (events, options = {}) {\n this.#events = this.#events.concat(events.map((event) => {\n event = Object.assign({}, this.#options, options, event)\n if (!event.type) {\n throw new Error('Event type is required')\n }\n if (event.context) {\n event.handler = event.handler.bind(event.context)\n }\n event.element.addEventListener(event.type, event.handler, event.options)\n return event\n }))\n }\n\n remove () {\n this.#events.forEach((event) => event.element.removeEventListener(event.type, event.handler))\n this.#events = []\n }\n}\n","import paper, { Point } from 'paper'\nimport { Cache } from './cache'\nimport { EventListeners } from './eventListeners'\n\nconst navigator = window.navigator\n\nexport class Interact {\n #bounds\n #cache = new Cache(Object.values(Interact.CacheKeys))\n #element\n #eventListener = new EventListeners({ context: this })\n #offset\n\n constructor (element) {\n this.#bounds = element.getBoundingClientRect()\n this.#element = element\n this.#offset = new Point(this.#bounds.left, this.#bounds.top)\n this.#eventListener.add([\n { type: 'pointercancel', handler: this.onPointerUp },\n { type: 'pointerdown', handler: this.onPointerDown },\n { type: 'pointerleave', handler: this.onPointerUp },\n { type: 'pointermove', handler: this.onPointerMove },\n { type: 'pointerout', handler: this.onPointerUp },\n { type: 'pointerup', handler: this.onPointerUp },\n { type: 'wheel', handler: this.onMouseWheel, options: { passive: false } }\n ], { element })\n }\n\n onMouseWheel (event) {\n event.preventDefault()\n this.#zoom(new Point(event.offsetX, event.offsetY), event.deltaY, 1.05)\n }\n\n onPan (event) {\n const point = paper.view.viewToProject(Interact.point(event))\n const pan = this.#getGesture(Interact.GestureKeys.Pan)\n\n if (!pan) {\n this.#setGesture(Interact.GestureKeys.Pan, { from: point })\n return\n }\n\n const center = pan.from.subtract(point).add(paper.view.center)\n\n // Allow a little wiggle room to prevent panning on tap\n if (paper.view.center.subtract(center).length > 1) {\n if (!document.body.classList.contains('grab')) {\n document.body.classList.add('grab')\n }\n\n // Center on the cursor\n paper.view.center = center\n }\n }\n\n onPinch (events) {\n const pointer0 = events[0]\n const pointer1 = events[1]\n\n const point0 = Interact.point(pointer0)\n const point1 = Interact.point(pointer1)\n const distance = point0.getDistance(point1)\n\n const pinch = this.#getGesture(Interact.GestureKeys.Pinch)\n if (!pinch) {\n this.#setGesture(Interact.GestureKeys.Pinch, { distance })\n return\n }\n\n const center = point0.add(point1).divide(2).subtract(this.#offset)\n const scale = distance / pinch.distance\n const delta = (pinch.distance - distance) * scale\n\n this.#zoom(center, delta, 1.01)\n\n pinch.distance = distance\n }\n\n onPointerDown (event) {\n this.#cache.get(Interact.CacheKeys.Down).set(event.pointerId, event)\n }\n\n onPointerMove (event) {\n const down = this.#cache.get(Interact.CacheKeys.Down).get(event.pointerId)\n if (!down) {\n // Ignore events until there is a pointer down event\n return\n }\n\n // For some reason pointermove fires on mobile even if there was no movement\n const diff = Interact.point(event).subtract(Interact.point(down)).length\n if (diff > 1) {\n this.#cache.get(Interact.CacheKeys.Move).set(event.pointerId, event)\n\n const events = this.#cache.get(Interact.CacheKeys.Move).values()\n if (events.length === 2) {\n this.onPinch(events)\n } else {\n this.onPan(event)\n }\n }\n }\n\n onPointerUp (event) {\n const down = this.#cache.get(Interact.CacheKeys.Down).get(event.pointerId)\n if (!down) {\n return\n }\n\n if (\n this.#cache.length(Interact.CacheKeys.Down) === 1 &&\n !this.#cache.get(Interact.CacheKeys.Move).get(event.pointerId)\n ) {\n this.onTap(down)\n }\n\n document.body.classList.remove('grab')\n\n this.#cache.get(Interact.CacheKeys.Down).unset(event.pointerId)\n this.#cache.get(Interact.CacheKeys.Move).unset(event.pointerId)\n this.#cache.get(Interact.CacheKeys.Gesture).unset(Interact.GestureKeys.Pan)\n\n if (this.#cache.length(Interact.CacheKeys.Move) < 2) {\n this.#cache.get(Interact.CacheKeys.Gesture).unset(Interact.GestureKeys.Pinch)\n }\n }\n\n onTap (event) {\n const point = paper.view.viewToProject(Interact.point(event).subtract(this.#offset))\n this.#element.dispatchEvent(new CustomEvent(Interact.GestureKeys.Tap, { detail: { event, point } }))\n }\n\n #getGesture (key) {\n return this.#cache.get(Interact.CacheKeys.Gesture).get(key)\n }\n\n #setGesture (key, value) {\n this.#cache.get(Interact.CacheKeys.Gesture).set(key, value)\n }\n\n #zoom (point, delta, factor) {\n const zoom = Math.max(\n Math.min(\n delta < 0 ? paper.view.zoom * factor : paper.view.zoom / factor,\n Interact.maxZoom\n ),\n Interact.minZoom\n )\n\n // Convert the touch point from the view coordinate space to the project coordinate space\n const touchPoint = paper.view.viewToProject(point)\n const touchOffset = touchPoint.subtract(paper.view.center)\n\n // Adjust center towards cursor location\n const zoomOffset = touchPoint\n .subtract(touchOffset.multiply(paper.view.zoom / zoom))\n .subtract(paper.view.center)\n\n paper.view.zoom = zoom\n paper.view.center = paper.view.center.add(zoomOffset)\n }\n\n static point (event) {\n return new Point(event.clientX, event.clientY)\n }\n\n static vibrate (pattern = 25) {\n if (Interact.canVibrate) {\n navigator.vibrate(pattern)\n }\n }\n\n // WebKit does not support vibration\n static canVibrate = typeof navigator.vibrate === 'function'\n\n static CacheKeys = Object.freeze({\n Down: 'down',\n Move: 'move',\n Gesture: 'gesture'\n })\n\n static GestureKeys = Object.freeze({\n Pan: 'pan',\n Pinch: 'pinch',\n Tap: 'tap'\n })\n\n static maxZoom = 2\n static minZoom = 0.5\n}\n","export class Cache {\n #cache = {}\n #hasKeys\n #keys\n\n constructor (keys = []) {\n this.#keys = keys\n this.#hasKeys = keys.length !== 0\n\n keys.forEach((key) => { this.#cache[key] = new Cache() })\n }\n\n set (key, item) {\n if (this.#hasKeys && !this.#keys.includes(key)) {\n throw new Error(`Invalid key: ${key}`)\n }\n\n this.#cache[key] = item\n }\n\n get (key) {\n return key === undefined ? this.#cache : this.#cache[key]\n }\n\n keys (key) {\n return Object.keys(this.#get(key))\n }\n\n length (key) {\n return this.keys(key).length\n }\n\n unset (key) {\n delete this.#cache[key]\n }\n\n values (key) {\n return Object.values(this.#get(key))\n }\n\n #get (key) {\n const value = this.get(key)\n return value instanceof Cache ? value.get() : value\n }\n}\n","import { Symbol } from './symbol'\n\nexport class Icons {\n static Immutable = new Symbol('icon-immutable', 'block')\n static Lock = new Symbol('icon-lock', 'lock')\n static Move = new Symbol('icon-move', 'drag_pan')\n static RotateLeft = new Symbol('icon-rotate-left', 'rotate_left')\n static RotateRight = new Symbol('icon-rotate-right', 'rotate_right')\n static Swap = new Symbol('icon-swap', 'swap_horiz')\n static ToggleOff = new Symbol('icon-toggle-off', 'toggle_off')\n static ToggleOn = new Symbol('icon-toggle-on', 'toggle_on')\n\n static All = Object.freeze([\n Icons.Immutable,\n Icons.Lock,\n Icons.Move,\n Icons.RotateLeft,\n Icons.RotateRight,\n Icons.Swap,\n Icons.ToggleOff,\n Icons.ToggleOn\n ])\n\n static ByName = Object.freeze(Object.fromEntries(Icons.All.map((icon) => [icon.name, icon])))\n}\n","import paper, { SymbolDefinition } from 'paper'\n\nexport class Symbol {\n definition\n id\n name\n\n constructor (id, name) {\n this.id = id\n this.name = name\n }\n\n place (position, settings) {\n if (!this.definition) {\n const element = document.getElementById(this.id)\n const item = paper.project.importSVG(element)\n // By default, symbols will be excluded from beam collisions\n item.data.collidable = false\n // By default, symbols cannot be clicked on\n item.locked = true\n this.definition = new SymbolDefinition(item)\n }\n\n if (settings) {\n this.definition.item.set(settings)\n }\n\n return this.definition.place(position)\n }\n}\n","import chroma from 'chroma-js'\nimport { deepEqual, noop } from './util'\n\nexport class Step {\n color\n colors\n connected\n direction\n done\n insertAbove\n onAdd\n onRemove\n point\n pathIndex\n segmentIndex\n state\n tile\n\n constructor (\n index,\n tile,\n colors,\n direction,\n point,\n pathIndex,\n segmentIndex,\n connected,\n insertAbove,\n done,\n state,\n onAdd,\n onRemove\n ) {\n if (state && !(state instanceof StepState)) {\n throw new Error('Step.state must be instance of StepState')\n }\n\n this.colors = colors ? (Array.isArray(colors) ? Array.from(colors) : [colors]) : []\n\n if (this.colors.length) {\n this.color = chroma.average(this.colors).hex()\n }\n\n this.connected = connected ?? true\n this.direction = direction\n this.done = done ?? false\n this.index = index\n this.insertAbove = insertAbove\n // The onAdd and onRemove methods should be idempotent!\n this.onAdd = onAdd ?? noop\n this.onRemove = onRemove ?? noop\n this.point = point\n this.pathIndex = pathIndex\n this.segmentIndex = segmentIndex\n this.state = state ?? new StepState()\n this.tile = tile\n }\n\n copy (settings) {\n return new Step(\n settings.index ?? this.index,\n settings.tile ?? this.tile,\n settings.colors ?? settings.color ?? this.colors,\n settings.direction ?? this.direction,\n settings.point ?? this.point,\n settings.pathIndex ?? this.pathIndex,\n settings.segmentIndex ?? this.segmentIndex,\n settings.connected ?? this.connected,\n settings.insertAbove ?? this.insertAbove,\n settings.done ?? this.done,\n settings.state ?? new StepState(this.state),\n settings.onAdd ?? this.onAdd,\n settings.onRemove ?? this.onRemove\n )\n }\n\n equals (step) {\n return deepEqual(this, step)\n }\n}\n\nexport class StepState {\n #cache = {}\n\n constructor () {\n const settings = Object.assign({}, ...arguments)\n Object.keys(settings).forEach((key) => { this[key] = settings[key] })\n }\n\n copy (...settings) {\n return new StepState(...([this].concat(settings)))\n }\n\n get (Class) {\n return this.#keys(Class).map((key) => this[key]).find((value) => value)\n }\n\n has (Class) {\n return this.#keys(Class).some((key) => this[key])\n }\n\n #keys (Class) {\n return (this.#cache[Class.name] ??= Object.keys(Reflect.construct(Class, [])))\n }\n\n static Collision = class StepCollision {\n collision\n\n // Item is optional, in the case of an out-of-bounds collision for example\n constructor (collision) {\n this.collision = collision\n }\n }\n\n static Filter = class StepFilter {\n filter = {}\n }\n\n static MergeInto = class StepMergeInto {\n mergeInto\n\n constructor (beam) {\n this.mergeInto = { beam }\n }\n }\n\n static MergeWith = class StepMergeWith {\n mergeWith\n\n constructor (mergeWith) {\n this.mergeWith = mergeWith\n }\n }\n\n static Portal = class StepPortal {\n portal\n\n constructor (entryPortal, exitPortal) {\n this.portal = { entryPortal, exitPortal }\n }\n }\n\n static Reflector = class StepReflector {\n reflector\n\n constructor (item) {\n this.reflector = { item }\n }\n }\n\n static TerminusConnection = class StepTerminusConnection {\n terminusConnection\n\n constructor (terminus, opening) {\n this.terminusConnection = { terminus, opening }\n }\n }\n}\n","import { movable } from '../modifiers/move'\nimport { Item } from '../item'\nimport { Path, Point } from 'paper'\nimport { rotatable } from '../modifiers/rotate'\nimport { StepState } from '../step'\nimport { Puzzle } from '../puzzle'\nimport { coalesce, getOppositeDirection } from '../util'\n\nexport class Portal extends movable(rotatable(Item)) {\n #directions = {}\n\n constructor (tile, state) {\n // Only allow rotation if direction is defined\n super(tile, state, { rotatable: state.direction !== undefined })\n\n this.direction = state.direction\n\n const height = tile.parameters.circumradius / 3\n const width = tile.parameters.circumradius / 5\n\n const style = {\n fillColor: 'black',\n strokeColor: 'white',\n strokeWidth: 2\n }\n\n const children = []\n\n // TODO: consider adding an item with a gradient that fades to black at the center of the ellipse\n // This will help distinguish visually that beams are entering/exiting a portal when there are multiple\n const ellipse = new Path.Ellipse({\n center: tile.center,\n radius: [width, height],\n style\n })\n\n children.push(ellipse)\n\n const ring = new Path.Ellipse({\n center: tile.center,\n radius: [width - style.strokeWidth * 2, height - style.strokeWidth * 2],\n style\n })\n\n children.push(ring)\n\n if (this.direction !== undefined) {\n const pointer = new Path({\n closed: true,\n opacity: 0.25,\n segments: [\n tile.center.add(new Point(0, height)),\n tile.center.subtract(new Point(0, height)),\n tile.center.subtract(new Point(width * 2.5, 0))\n ],\n style: {\n fillColor: 'black'\n }\n }).subtract(ellipse)\n\n children.unshift(pointer)\n }\n\n this.group.addChildren(children)\n\n if (this.direction !== undefined) {\n // Properly align items with hexagonal rotation\n this.rotateGroup(1)\n }\n }\n\n get (direction) {\n return this.#directions[direction]\n }\n\n onCollision ({ beam, currentStep, nextStep, puzzle }) {\n const portalState = currentStep.state.get(StepState.Portal)\n if (!portalState) {\n const entryDirection = getOppositeDirection(nextStep.direction)\n const existing = coalesce(this.get(entryDirection), nextStep)\n if (existing.index < nextStep.index) {\n // Checking stepIndex to exclude cases where we are doing a re-evaluation of history.\n console.debug(\n this.toString(),\n 'ignoring beam trying to enter through a direction which is already occupied:',\n entryDirection\n )\n return\n }\n\n // Handle entry collision\n return nextStep.copy({\n insertAbove: this,\n onAdd: (step) => this.update(entryDirection, step),\n onRemove: () => this.update(entryDirection),\n state: nextStep.state.copy(new StepState.Portal(this))\n })\n } else if (portalState.exitPortal === this) {\n // Handle exit collision\n return nextStep.copy({ insertAbove: this })\n }\n\n const exitPortals = this.#getExitPortals(puzzle, beam, nextStep)\n\n if (exitPortals.length === 0) {\n console.debug(this.toString(), 'no valid exit portals found')\n // This will cause the beam to stop\n return currentStep\n } else if (exitPortals.length === 1) {\n const exitPortal = exitPortals[0]\n console.debug(this.toString(), 'single exit portal matched:', exitPortal)\n return this.#getStep(beam, nextStep, exitPortal)\n } else {\n // Multiple matching destinations. User will need to pick one manually.\n console.debug(this.toString(), 'found multiple valid exit portals:', exitPortals)\n // Cache exit portals for use in mask\n const data = { exitPortals }\n const mask = new Puzzle.Mask(\n {\n id: this.id,\n onMask: () => currentStep.tile.beforeModify(),\n onTap: (puzzle, tile) => {\n const exitPortal = data.exitPortals.find((portal) => portal.parent === tile)\n if (exitPortal) {\n // Add a move, since the user made a decision\n puzzle.addMove()\n beam.addStep(this.#getStep(beam, nextStep, exitPortal))\n puzzle.unmask()\n }\n },\n onUnmask: () => currentStep.tile.afterModify(),\n onUpdate: () => {\n // State may have changed, fetch portals again\n const exitPortals = this.#getExitPortals(puzzle, beam, nextStep)\n if (exitPortals.length === 0) {\n console.debug(this.toString(), 'mask onUpdate: no valid exit portals found')\n // Cancel the mask\n // This will also cause the beam to stop\n return false\n } else if (exitPortals.length === 1) {\n const exitPortal = exitPortals[0]\n console.debug(this.toString(), 'mask onUpdate: single portal matched:', exitPortal)\n beam.addStep(this.#getStep(beam, nextStep, exitPortal))\n // Cancel the mask\n return false\n } else {\n console.debug(this.toString(), 'mask onUpdate: exit portals:', exitPortals)\n data.exitPortals = exitPortals\n }\n },\n tileFilter: (tile) => {\n // Mask any invalid tiles. Exclude the entry portal tile\n return !(tile.equals(this.parent) ||\n data.exitPortals.map((portal) => portal.parent).some((validTile) => validTile.equals(tile)))\n }\n }\n )\n\n puzzle.updateSelectedTile(null)\n puzzle.mask(mask)\n\n // This will cause the beam to stop\n return currentStep\n }\n }\n\n onMove () {\n super.onMove()\n\n // Invalidate directions cache\n this.#directions = {}\n }\n\n update (direction, data) {\n this.#directions[direction] = data\n }\n\n #getExitPortals (puzzle, beam, nextStep) {\n const exitPortals = puzzle.getItems().filter((item) =>\n // Is a portal\n item.type === Item.Types.portal &&\n // But not the entry portal\n !item.equals(this) &&\n // There is no other beam occupying the portal at the exit direction\n !item.get(Portal.getExitDirection(nextStep, this, item)) && (\n // Entry portals without defined direction can exit from any other portal.\n this.getDirection() === undefined ||\n // Exit portals without defined direction can be used by any entry portal.\n item.getDirection() === undefined ||\n // Exit portals with a defined direction can only be used by entry portals with the same defined direction.\n item.getDirection() === this.getDirection()\n )\n )\n\n if (exitPortals.length > 1) {\n // Check for existing exitPortalId in beam state for this step\n const exitPortalId = beam.getState().steps?.[nextStep.index]?.[this.id]\n if (exitPortalId !== undefined) {\n console.debug(this.toString(), `found exitPortalId ${exitPortalId} in beam step ${nextStep.index} state`)\n const existing = exitPortals.find((item) => item.id === exitPortalId)\n if (existing) {\n return [existing]\n }\n }\n }\n\n return exitPortals\n }\n\n #getStep (beam, nextStep, exitPortal) {\n const direction = Portal.getExitDirection(nextStep, this, exitPortal)\n return nextStep.copy({\n connected: false,\n direction,\n insertAbove: exitPortal,\n onAdd: (step) => {\n exitPortal.update(direction, step)\n // Store this decision in beam state\n // TODO: store this less cryptically (e.g. use \"portal\")\n beam.updateState((state) => ((state.steps ??= {})[step.index] = { [this.id]: exitPortal.id }))\n },\n onRemove: (step) => {\n // Remove any associated beam state\n beam.updateState((state) => { delete state.steps[step.index] })\n exitPortal.update(direction)\n },\n point: exitPortal.parent.center,\n state: nextStep.state.copy(new StepState.Portal(this, exitPortal)),\n tile: exitPortal.parent\n })\n }\n\n static getExitDirection (step, entryPortal, exitPortal) {\n // Direction precedence is as follows:\n // - direction defined by exit portal\n // - direction defined by entry portal\n // - direction beam was traveling when it reached the entry portal\n return exitPortal.getDirection() ?? entryPortal.getDirection() ?? step.direction\n }\n}\n","import { Modifier } from '../modifier'\nimport { addDirection, coalesce } from '../util'\nimport { Icons } from '../icons'\n\nexport class Rotate extends Modifier {\n clockwise\n title = 'Rotate'\n\n constructor (tile, state, configuration = {}) {\n super(...arguments)\n\n this.clockwise = coalesce(true, state.clockwise, configuration.clockwise)\n this.name = Rotate.Names[this.clockwise ? 'right' : 'left']\n }\n\n moveFilter (tile) {\n // Filter out tiles that contain no rotatable items\n return super.moveFilter(tile) || !tile.items.some((item) => item.rotatable)\n }\n\n onTap (event) {\n super.onTap(event)\n\n const items = this.tile.items.filter((item) => item.rotatable)\n items.forEach((item) => item.rotate(this.clockwise))\n\n this.dispatchEvent(Modifier.Events.Invoked, { items })\n }\n\n onToggle () {\n super.onToggle()\n\n this.clockwise = !this.clockwise\n this.updateState((state) => { state.clockwise = this.clockwise })\n this.update({ name: Rotate.Names[this.clockwise ? 'right' : 'left'] })\n }\n\n static Names = Object.freeze({ left: Icons.RotateLeft.name, right: Icons.RotateRight.name })\n}\n\n/**\n * A mixin for Item which provides rotate behaviors.\n */\nexport const rotatable = (SuperClass) => class RotatableItem extends SuperClass {\n direction\n\n rotatable\n rotation = 0\n rotationDegrees\n\n constructor (parent, state, configuration = {}) {\n super(...arguments)\n\n this.direction = coalesce(state.direction, configuration.direction)\n this.rotatable = !this.immutable && coalesce(true, state.rotatable, configuration.rotatable)\n this.rotationDegrees = coalesce(60, state.rotationDegrees, configuration.rotationDegrees)\n this.rotation = coalesce(0, state.rotation, configuration.rotation) % this.getMaxRotation()\n }\n\n // Get the direction of an item with rotation factored in\n getDirection (direction) {\n direction = direction ?? this.direction\n return direction === undefined\n ? direction\n : addDirection(direction, this.rotation)\n }\n\n getMaxRotation () {\n return (360 / this.rotationDegrees)\n }\n\n onInitialization () {\n super.onInitialization()\n\n this.rotateGroup(this.rotation)\n\n if (this.direction !== undefined) {\n // Direction will not affect initial rotation of item\n this.rotateGroup(this.direction)\n }\n }\n\n rotateGroup (rotation) {\n this.group.rotate(rotation * this.rotationDegrees, this.center)\n }\n\n rotate (clockwise) {\n if (!this.rotatable) {\n return\n }\n\n const rotation = clockwise === false ? -1 : 1\n\n this.rotation = (rotation + this.rotation) % this.getMaxRotation()\n\n this.updateState((state) => { state.rotation = this.rotation })\n this.rotateGroup(rotation)\n }\n}\n","import chroma from 'chroma-js'\nimport { Path } from 'paper'\nimport { toggleable } from '../modifiers/toggle'\nimport { Item } from '../item'\nimport { rotatable } from '../modifiers/rotate'\nimport { getColorElements, emitEvent, getOppositeDirection, addDirection, subtractDirection } from '../util'\nimport { Beam } from './beam'\nimport { movable } from '../modifiers/move'\nimport { StepState } from '../step'\n\nexport class Terminus extends movable(rotatable(toggleable(Item))) {\n sortOrder = 2\n\n #ui\n\n constructor (tile, state) {\n super(...arguments)\n\n const colors = state.openings.filter((opening) => opening?.color)\n .flatMap((opening) => Array.isArray(opening.color) ? opening.color : [opening.color])\n const color = chroma.average(\n colors.length ? colors : (Array.isArray(state.color) ? state.color : [state.color])\n ).hex()\n\n const openings = state.openings.map((opening, direction) =>\n opening\n ? new Terminus.#Opening(\n opening.color ?? color,\n direction,\n opening.connected,\n opening.on ?? state.on\n )\n : opening\n ).filter((opening) => opening)\n\n this.#ui = Terminus.ui(tile, color, openings)\n\n this.group.addChildren([...this.#ui.openings, this.#ui.terminus])\n\n this.color = color\n this.openings = openings\n this.radius = this.#ui.radius\n this.toggled = openings.some((opening) => opening.on)\n\n // Needs to be last since it references 'this'\n this.beams = openings.map((opening) => new Beam(this, state.openings[opening.direction], opening))\n\n this.update()\n }\n\n getColorElements () {\n return getColorElements(this.openings.map((opening) => opening.color))\n }\n\n getOpening (direction) {\n return this.openings.find((opening) => opening.direction === direction)\n }\n\n onMove () {\n this.beams.forEach((beam) => beam.remove())\n }\n\n onCollision ({ beam, collisionStep, currentStep, existingNextStep, nextStep }) {\n console.debug(this.toString(), 'collision', beam.toString())\n\n // Colliding with the starting terminus, ignore\n if (beam.parent === this && beam.startDirection() === nextStep.direction) {\n console.debug(beam.toString(), 'ignoring starting terminus collision')\n return\n }\n\n const directionFrom = getOppositeDirection(currentStep.direction)\n\n // Take rotation of terminus into account\n const opening = this.openings.find((opening) => this.getDirection(opening.direction) === directionFrom)\n if (\n opening && opening.color === nextStep.color && (\n !opening.on ||\n // When re-evaluating history of an already connected opening\n (opening.connected && existingNextStep?.state.get(StepState.TerminusConnection)?.terminus.equals(this))\n )\n ) {\n // Beam has connected to a valid opening\n console.debug(beam.toString(), 'terminus connection', this.toString(), opening)\n return nextStep.copy({\n done: true,\n onAdd: () => {\n nextStep.onAdd()\n this.onConnection(opening.direction)\n },\n onRemove: () => {\n nextStep.onRemove()\n this.onDisconnection(opening.direction)\n },\n state: nextStep.state.copy(new StepState.TerminusConnection(this, opening))\n })\n }\n\n // Otherwise, treat this as a collision\n return collisionStep\n }\n\n onConnection (direction) {\n const opening = this.getOpening(direction)\n\n if (opening.connected) {\n // Already connected\n return\n }\n\n opening.connect()\n this.update()\n\n emitEvent(Terminus.Events.Connection, { terminus: this, opening })\n }\n\n onDisconnection (direction) {\n const opening = this.getOpening(direction)\n\n if (!opening.connected) {\n // Already disconnected\n return\n }\n\n opening.disconnect()\n this.update()\n\n emitEvent(Terminus.Events.Disconnection, { terminus: this, opening })\n }\n\n onToggle () {\n this.updateState((state) => {\n this.openings.filter((opening) => !opening.connected).forEach((opening) => {\n opening.toggle()\n state.openings[opening.direction].on = opening.on\n })\n })\n this.update()\n }\n\n update () {\n this.beams.forEach((beam) => {\n const opening = beam.getOpening()\n const item = this.#ui.openings.find((item) => item.data.direction === opening.direction)\n item.opacity = opening.on ? 1 : Terminus.#openingOffOpacity\n })\n }\n\n static #openingOffOpacity = 0.3\n\n static ui (tile, color, configuration) {\n const radius = tile.parameters.circumradius / 2\n\n const terminus = new Path.RegularPolygon({\n center: tile.center,\n fillColor: color,\n opacity: 1,\n sides: 6,\n radius: radius / 2\n })\n\n const openings = configuration.map((opening) => {\n const direction = opening.direction\n\n // Each opening is essentially a triangle from the mid-point segments of the terminus with the tip of the triangle\n // pointing in the direction of the opening. This ensures there isn't a gap between the opening triangle and the\n // terminus hexagon.\n const p1 = terminus.segments[subtractDirection(direction, 1)].point\n const p2 = terminus.segments[addDirection(direction, 2)].point\n\n const vector = p2.subtract(p1)\n\n vector.angle += 120\n\n const p3 = p1.subtract(vector)\n\n return new Path({\n closed: true,\n data: { collidable: false, direction },\n fillColor: opening.color,\n opacity: opening.on ? 1 : Terminus.#openingOffOpacity,\n segments: [p1, p2, p3]\n })\n })\n\n return { openings, radius, terminus }\n }\n\n static #Opening = class {\n constructor (color, direction, connected, on) {\n this.colors = Array.isArray(color) ? color : [color]\n this.color = chroma.average(this.colors).hex()\n this.direction = direction\n this.connected = connected === true\n this.on = on === true\n }\n\n connect () {\n this.connected = this.on = true\n }\n\n disconnect () {\n this.connected = this.on = false\n }\n\n toggle () {\n this.on = !this.on\n }\n }\n\n static Events = Object.freeze({\n Connection: 'terminus-connection',\n Disconnection: 'terminus-disconnection'\n })\n}\n","import { Modifier } from '../modifier'\nimport { Icons } from '../icons'\n\nexport class Toggle extends Modifier {\n on\n title = 'Toggle'\n\n constructor (tile, state) {\n super(...arguments)\n\n // TODO: refactor to use 'toggled' everywhere\n this.on = state.on || this.parent?.items.some(item => item.on || item.toggled)\n this.name = this.getName()\n }\n\n attach (tile) {\n super.attach(tile)\n\n // TODO: refactor to use 'toggled' everywhere\n this.on = this.tile?.items.some(item => item.on || item.toggled)\n this.update({ name: this.getName() })\n }\n\n getName () {\n return Toggle.Names[this.on ? 'on' : 'off']\n }\n\n moveFilter (tile) {\n // Filter out tiles that contain no toggleable items\n return super.moveFilter(tile) || !tile.items.some(item => item.toggleable)\n }\n\n onTap (event) {\n super.onTap(event)\n\n this.on = !this.on\n\n const items = this.tile.items.filter((item) => item.toggleable)\n items.forEach((item) => item.toggle(this.on))\n\n this.update({ name: this.getName() })\n\n this.dispatchEvent(Modifier.Events.Invoked, { items })\n }\n\n static Names = Object.freeze({ on: Icons.ToggleOn.name, off: Icons.ToggleOff.name })\n}\n\n/**\n * A mixin for Item which provides toggle behaviors.\n *\n * @param SuperClass\n * @returns {{new(*, *): ToggleableItem, toggled: *, prototype: ToggleableItem}}\n * @constructor\n */\nexport const toggleable = (SuperClass) => class ToggleableItem extends SuperClass {\n toggleable\n toggled\n\n constructor (parent, configuration) {\n super(...arguments)\n\n this.toggleable = !this.immutable && configuration.toggleable !== false\n this.toggled = this.toggleable && configuration.toggled\n }\n\n onToggle () {}\n\n toggle (toggled) {\n this.toggled = toggled\n this.onToggle()\n }\n}\n","import chroma from 'chroma-js'\nimport { CompoundPath, Path } from 'paper'\nimport { Item } from '../item'\nimport {\n getColorElements,\n emitEvent,\n fuzzyEquals,\n getPointBetween,\n getDistance,\n getOppositeDirection,\n uniqueBy, getPointFrom\n} from '../util'\nimport { Step, StepState } from '../step'\nimport { Collision, CollisionMergeWith } from '../collision'\nimport { Cache } from '../cache'\n\nexport class Beam extends Item {\n done = false\n path = []\n sortOrder = 3\n\n #cache = new Cache(Object.values(Beam.CacheKeys))\n #direction\n #path\n #stepIndex = -1\n #steps = []\n\n constructor (terminus, state, configuration) {\n // Exclude from modification\n state.immutable = true\n\n super(...arguments)\n\n this.group = null\n this.#direction = configuration.direction\n\n this.#path = {\n closed: false,\n data: { id: this.id, type: this.type },\n locked: true,\n strokeJoin: 'round',\n strokeCap: 'round',\n strokeWidth: terminus.radius / 12\n }\n }\n\n addStep (step) {\n const lastStepIndex = this.getLastStepIndex()\n\n // Can't be done if adding a new step\n this.done = false\n\n this.#path.strokeColor = step.color\n\n if (this.path.length === 0) {\n const path = new Path(this.#path)\n this.path.push(path)\n this.getLayer().insertChild(0, path)\n }\n\n const currentPath = this.path[this.path.length - 1]\n const previousStep = this.#steps[lastStepIndex]\n\n // Handles cases that require adding a new path item\n if (\n !step.connected || (\n previousStep && (\n step.color !== previousStep.color ||\n step.insertAbove !== previousStep.insertAbove\n )\n )\n ) {\n console.debug(this.toString(), 'adding new path item for step:', step, 'previous step:', previousStep)\n\n const path = new Path(this.#path)\n const points = [step.point]\n\n // If the next step is connected, we will link it with the previous step\n if (step.connected) {\n points.unshift(previousStep.point)\n }\n\n path.add(...points)\n this.path.push(path)\n\n // Unless specified in the state, the path will be inserted beneath all items\n this.getLayer().insertChild(this.#getItemIndex(step), path)\n\n // Reset the segmentIndex\n step.segmentIndex = 0\n } else {\n currentPath.add(step.point)\n step.segmentIndex = currentPath.segments.length - 1\n }\n\n step.pathIndex = this.path.length - 1\n\n this.#steps.push(step)\n\n step.index = this.#stepIndex = this.#steps.length - 1\n\n if (!step.tile.items.some((item) => item.equals(this))) {\n // Add this beam to the tile item list so other beams can see it\n step.tile.addItem(this)\n }\n\n step.onAdd(step)\n\n console.debug(this.toString(), 'added step', step)\n\n this.#onUpdate(this.#stepIndex)\n\n return step\n }\n\n getCollision () {\n return this.getStep()?.state.get(StepState.Collision)\n }\n\n getColor () {\n return this.getStep()?.color || this.getOpening().color\n }\n\n getColors () {\n return Array.from(this.getStep()?.colors || this.getOpening().colors)\n }\n\n getColorElements (tile) {\n // Show color elements for merged beams\n const step = this.getSteps(tile).find((step) => step.state.has(StepState.MergeWith))\n return step ? getColorElements(step.colors) : []\n }\n\n getCompoundPath () {\n return new CompoundPath({ children: this.path.map((item) => item.clone({ insert: false })) })\n }\n\n getIndex () {\n return this.path[this.path.length - 1].index\n }\n\n getLastStepIndex () {\n return this.length() - 1\n }\n\n getLayer () {\n return this.parent.getLayer()\n }\n\n getMergeWith (beam) {\n return this.#cache.get(Beam.CacheKeys.MergeWith).get(beam.id)\n }\n\n getOpening () {\n return this.parent.getOpening(this.#direction)\n }\n\n getState () {\n return this.parent.getState().openings[this.#direction]\n }\n\n getStep (stepIndex) {\n return this.#steps[stepIndex || this.getLastStepIndex()]\n }\n\n getSteps (tile) {\n return tile ? this.#steps.filter((step) => step.tile === tile) : this.#steps\n }\n\n isComplete () {\n return this.isOn() && this.done\n }\n\n isConnected () {\n const step = this.getStep()\n return step?.state.has(StepState.TerminusConnection) ||\n // Consider beams which have merged into connected beams to also be connected\n step?.state.get(StepState.MergeInto)?.beam.isConnected()\n }\n\n isOn () {\n const opening = this.getOpening()\n // The opening will also be on if another beam connects with it\n return opening.on && !opening.connected\n }\n\n isPending () {\n return this.isOn() && !this.done\n }\n\n length () {\n return this.#steps.length\n }\n\n onBeamUpdated (event) {\n const beam = event.detail.beam\n\n if (beam.isPending()) {\n // Wait for beam to finish before evaluating\n return\n }\n\n const beamLastStep = beam.getStep()\n\n if (this.isComplete()) {\n const lastStep = this.getStep()\n\n // Check for invalid collisions\n const collision = lastStep.state.get(StepState.Collision)\n if (collision?.has(beam) && !collision.equals(beamLastStep?.state.get(StepState.Collision))) {\n console.debug(this.toString(), 're-evaluating collision with', beam.toString())\n this.done = false\n this.#stepIndex = Math.max(lastStep.index - 1, 0)\n return\n }\n\n // Check for invalid mergedInto\n const mergeInto = lastStep.state.get(StepState.MergeInto)\n if (mergeInto?.beam.equals(beam) && !beam.getMergeWith(this)) {\n console.debug(this.toString(), 're-evaluating merge into', beam.toString())\n this.done = false\n this.#stepIndex = Math.max(this.#stepIndex - 1, 0)\n return\n }\n }\n\n // Check for invalid mergedWith\n const mergeWith = this.getMergeWith(beam)\n if (mergeWith && !beamLastStep?.state.get(StepState.MergeInto)?.beam.equals(this)) {\n console.debug(this.toString(), 're-evaluating merge with', beam.toString())\n this.done = false\n this.#stepIndex = Math.max(mergeWith.stepIndex - 1, 0)\n }\n }\n\n onCollision ({ beam, collision, collisionStep, currentStep, nextStep, puzzle }) {\n const isSelf = beam.equals(this)\n\n console.debug(this.toString(), 'evaluating collision with', (isSelf ? 'self' : beam.toString()))\n\n if (!beam.isOn()) {\n console.debug(this.toString(), 'ignoring collision with inactive beam', beam.toString())\n return\n }\n\n if (beam.parent.equals(this.parent) && currentStep.index === 0) {\n console.debug(this.toString(), 'ignoring collision with sibling beam', beam.toString())\n return\n }\n\n if (isSelf && this.#stepIndex < this.getLastStepIndex()) {\n console.debug(this.toString(), 'ignoring collision with self while re-evaluating history')\n return\n }\n\n // Find the step with matching collision point\n const stepIndex = this.#steps.findLastIndex((step) => fuzzyEquals(collision.point, step.point))\n if (stepIndex < 0) {\n // This error will occur if the steps are out of sync with the path segments for some reason\n throw new Error(\n `Could not find matching step for beam collision between ${this.toString()} and ${beam.toString()}`)\n }\n\n const step = this.#steps[stepIndex]\n\n if (step.state.get(StepState.MergeInto)?.beam.equals(beam)) {\n console.debug(this.toString(), 'ignoring collision with merged beam', beam.toString())\n return\n }\n\n // Note: we only want to evaluate this at the collision point, otherwise terminus connection is irrelevant.\n if (step.state.get(StepState.TerminusConnection)?.terminus.equals(beam.parent)) {\n console.debug(this.toString(), 'ignoring collision with connected beam in parent terminus', beam.toString())\n return\n }\n\n // Check for a reflection on either this beam or the one being collided with at the collision point.\n const reflector = step.state.get(StepState.Reflector) ?? currentStep.state.get(StepState.Reflector)\n if (reflector) {\n // Since every step goes to the center of the tile, we need to go one pixel back in the direction we came from\n // in order to properly test which side of the reflector the beams are on.\n const stepPoint = getPointFrom(step.point, 1, getOppositeDirection(step.direction))\n const nextStepPoint = getPointFrom(currentStep.point, 1, getOppositeDirection(currentStep.direction))\n if (!reflector.item.isSameSide(stepPoint, nextStepPoint)) {\n console.debug(this.toString(), 'ignoring collision with beam on opposite side of reflector', beam.toString())\n return\n }\n }\n\n // Check for a portal on either beam\n const portal = currentStep.state.get(StepState.Portal) ?? step.state.get(StepState.Portal)\n if (portal) {\n console.debug(this.toString(), 'ignoring collision with beam using same portal', beam.toString())\n return\n }\n\n const isSameDirection = step.direction === nextStep.direction\n if (!isSameDirection || isSelf) {\n // Beams are traveling in different directions (collision), or a beam is trying to merge into itself\n console.debug(beam.toString(), 'has collided with', (isSelf ? 'self' : this.toString()), collision)\n\n if (!step.state.get(StepState.Collision)?.point.equals(collision.point)) {\n // No need to update if there is already an existing collision at this same point\n if (!isSelf) {\n // Update beam at point of impact\n this.update(stepIndex, {\n done: true,\n state: step.state.copy(new StepState.Collision(collision.mirror()))\n })\n } else if (!isSameDirection) {\n // For a collision with self, the update at point of impact will occur on the next update loop. This results in\n // a better visualization of the collision which will result in an infinite looping animation.\n this.update(stepIndex, puzzle.getBeamsUpdateDelay())\n }\n }\n\n return collisionStep.copy({\n done: true,\n // Use same insertion point as the beam we collided with to ensure proper item hierarchy.\n insertAbove: step.insertAbove\n })\n }\n\n console.debug(this.toString(), 'merging with', beam.toString())\n\n // Update history to reflect changing color of path\n this.#updateHistory(stepIndex)\n\n const mergeWith = new CollisionMergeWith(beam, step, stepIndex)\n this.addStep(step.copy({\n colors: mergeWith.colors,\n onAdd: () => {\n this.#cache.get(Beam.CacheKeys.MergeWith).set(beam.id, mergeWith)\n },\n onRemove: () => {\n this.#cache.get(Beam.CacheKeys.MergeWith).unset(beam.id)\n },\n state: step.state.copy(new StepState.MergeWith(mergeWith))\n }))\n\n console.debug(beam.toString(), 'merging into', this.toString())\n\n return nextStep.copy({\n done: true,\n // Stop at current step point\n point: currentStep.point,\n state: nextStep.state.copy(new StepState.MergeInto(this))\n })\n }\n\n onModifierInvoked (event) {\n if (!this.isOn()) {\n if (this.#steps.length) {\n console.debug(this.toString(), 'beam has been toggled off')\n this.remove()\n }\n return\n }\n\n const tiles = event.detail.tiles || [event.detail.tile]\n\n // We want the first step that contains the tile the event occurred on\n const stepIndex = this.#steps.findIndex((step) => tiles.some((tile) => tile.equals(step.tile)))\n if (stepIndex >= 0) {\n console.debug(this.toString(), 're-evaluating due to modifier being invoked in matching tile', stepIndex)\n // Re-evaluate beginning at the step before the matched one\n this.done = false\n this.#stepIndex = Math.max(stepIndex - 1, 0)\n return\n }\n\n if (this.isComplete()) {\n const lastStep = this.getStep()\n\n if (lastStep.state.get(StepState.Portal)?.entryPortal) {\n // Check for valid exit portal\n this.done = false\n }\n }\n }\n\n remove (stepIndex = 0) {\n this.#updateHistory(stepIndex)\n }\n\n selected (selected = true) {\n this.path.forEach((path) => { path.selected = selected })\n }\n\n startDirection () {\n // Take rotation of the parent (terminus) into account\n return (this.getOpening().direction + this.parent.rotation) % 6\n }\n\n /**\n * On each step, a beam will move towards the edge of the current tile until it either reaches that point, or it\n * intersects with something else. A beam will be considered 'done' when it either collides with something or it\n * reaches a terminus opening.\n */\n step (puzzle) {\n if (!this.isPending()) {\n return\n }\n\n console.debug(this.toString(), 'currentStepIndex', this.#stepIndex)\n\n // First step\n if (this.#steps.length === 0) {\n const tile = this.parent.parent\n this.addStep(new Step(0, tile, this.getColor(), this.startDirection(), tile.center))\n }\n\n const currentStepIndex = this.#stepIndex\n const currentStep = this.#steps[currentStepIndex]\n\n // On the first step, we have to take the rotation of the terminus into account\n const direction = currentStepIndex === 0 ? this.startDirection() : currentStep.direction\n const nextStepPoint = getPointFrom(currentStep.point, currentStep.tile.parameters.inradius, direction)\n\n // Use the midpoint between the previous and next step points to calculate which tile we are in.\n // This will ensure we consistently pick the same tile when the next step point is on the edge of two tiles.\n const tile = puzzle.getTile(getPointBetween(currentStep.point, nextStepPoint))\n\n // The next step would be off the grid\n if (!tile) {\n console.debug(this.toString(), 'stopping due to out of bounds')\n\n const collision = new Collision(0, [currentStep.point], this)\n return this.updateStep(currentStepIndex, {\n done: true,\n state: new StepState(new StepState.Collision(collision))\n })\n }\n\n const nextStepIndex = currentStepIndex + 1\n const existingNextStep = this.#steps[nextStepIndex]\n const lastPathIndex = this.path.length - 1\n const lastSegmentIndex = this.path[lastPathIndex].segments.length - 1\n\n let nextStep = new Step(\n nextStepIndex,\n tile,\n currentStep.color,\n direction,\n nextStepPoint,\n existingNextStep?.pathIndex || lastPathIndex,\n existingNextStep?.segmentIndex || lastSegmentIndex\n )\n\n const items = uniqueBy(\n tile.items.concat(currentStep.tile.equals(nextStep.tile) ? [] : currentStep.tile.items),\n 'id'\n )\n\n console.debug(this.toString(), 'collision items:', items)\n\n // See if there are any collisions along the path we plan to take\n const collisions = this.#getCollisions(items, currentStep, nextStep, puzzle)\n .map((collision, index) => new Collision(index, collision.points, this, collision.item))\n\n if (collisions.length) {\n console.debug(this.toString(), 'collisions:', collisions)\n }\n\n let collisionStep\n for (let collisionIndex = 0; collisionIndex < collisions.length; collisionIndex++) {\n const collision = collisions[collisionIndex]\n\n console.debug(this.toString(), 'resolving collision:', collision)\n\n // By default, the next step will be treated as a collision with the beam stopping at the first point of\n // intersection with the item.\n collisionStep = nextStep.copy({\n done: true,\n point: collision.point,\n state: nextStep.state.copy(new StepState.Collision(collision))\n })\n\n // Allow the item to change the resulting step\n collisionStep = collision.item.onCollision({\n beam: this,\n collision,\n collisions,\n collisionStep,\n currentStep,\n nextStep,\n existingNextStep,\n puzzle\n })\n\n if (collisionStep instanceof Step) {\n break\n }\n }\n\n if (collisionStep) {\n nextStep = collisionStep\n }\n\n // See if we need to change history\n if (existingNextStep) {\n // The next step we would take is the same as the step that already exists in history\n if (nextStep.equals(existingNextStep)) {\n this.#stepIndex++\n\n const lastStepIndex = this.getLastStepIndex()\n console.debug(\n this.toString(),\n 'new step is same as existing. new step index:',\n this.#stepIndex,\n 'last step index:',\n lastStepIndex\n )\n\n if (this.#stepIndex === lastStepIndex) {\n // To ensure we mark as done\n this.#onUpdate(this.#stepIndex)\n }\n\n return existingNextStep\n } else {\n console.debug(\n this.toString(),\n `is revising history at step index: ${nextStepIndex}`,\n 'existing step:',\n existingNextStep,\n 'new step:',\n nextStep\n )\n this.#updateHistory(nextStepIndex)\n }\n }\n\n if (currentStepIndex === this.#stepIndex && currentStep.point.equals(nextStep.point)) {\n // Note: ensuring history has not been modified when evaluating next step vs current\n console.debug(this.toString(), 'next step point is same as current step point, stopping.', nextStep)\n return this.updateStep(currentStepIndex, nextStep.copy({ done: true }))\n }\n\n return this.addStep(nextStep)\n }\n\n toString () {\n return `[${this.type}:${this.id}:${chroma(this.getColor()).name()}]`\n }\n\n update (stepIndex, settings = {}, timeout) {\n if (typeof settings === 'number') {\n timeout = settings\n settings = {}\n }\n const update = this.#update.bind(this, stepIndex, settings, timeout)\n return timeout === undefined ? update() : setTimeout(update, timeout)\n }\n\n updateState (updater, dispatchEvent = true) {\n return this.parent.updateState((state) => updater(state.openings[this.#direction]), dispatchEvent)\n }\n\n updateStep (stepIndex, settings) {\n const step = this.getStep(stepIndex)\n if (step) {\n // Update is essentially: remove, update, add\n step.onRemove(step)\n const updatedStep = this.#getUpdatedStep(step, settings)\n this.#steps[stepIndex] = updatedStep\n updatedStep.onAdd(updatedStep)\n\n console.debug(this.toString(), 'updated step at index', stepIndex, 'from', step, 'to', updatedStep)\n this.#onUpdate(stepIndex)\n return updatedStep\n }\n }\n\n #getCollisions (items, currentStep, nextStep, puzzle) {\n const segments = [currentStep.point, nextStep.point]\n const path = new Path({ segments })\n const firstPoint = segments[0]\n return items\n .map((item) => {\n const points = []\n const intersections = path.getIntersections(\n item.getCompoundPath(),\n // Ignore first point from self which will always collide\n (curveLocation) => !(item === this && curveLocation.point.equals(firstPoint))\n )\n\n points.push(...new Set(intersections.map((intersection) => intersection.point)))\n\n // Handle the edge case of colliding with a beam with a single, isolated path item.\n // This will happen in the case of a portal exit collision, for example.\n if (!points.length && item.type === Item.Types.beam && item !== this) {\n points.push(\n ...item.getSteps().map((step) => step.point)\n .filter((point) => segments.some((segment) => fuzzyEquals(point, segment)))\n )\n }\n\n // Sort collision points by distance from origin point (closest collision points first)\n points.sort(getDistance(firstPoint))\n\n if (puzzle.debug) {\n puzzle.drawDebugPoint(firstPoint)\n points.forEach((point) => puzzle.drawDebugPoint(point, { fillColor: 'black' }))\n }\n\n return { points, item }\n })\n .filter((result) => result.points.length)\n .sort((a, b) => {\n // Sort items returned by proximity to starting point\n const distance = getDistance(firstPoint)(a.points[0], b.points[0])\n if (distance === 0) {\n // If two items are an equal distance away, sort by sort order as defined on item\n return a.item.sortOrder - b.item.sortOrder\n }\n\n return distance\n })\n }\n\n #getItemIndex (step) {\n return step.insertAbove ? step.insertAbove.getIndex() + 1 : 0\n }\n\n #getUpdatedStep (step, settings) {\n if (typeof settings === 'function') {\n settings = settings(step)\n }\n\n return settings instanceof Step ? settings : step.copy(settings)\n }\n\n #update (stepIndex, settings) {\n if (stepIndex < this.getLastStepIndex()) {\n const step = this.#updateHistory(stepIndex)\n this.addStep(this.#getUpdatedStep(step, settings))\n } else {\n this.updateStep(stepIndex, settings)\n }\n }\n\n #onUpdate (stepIndex) {\n const lastStepIndex = this.getLastStepIndex()\n stepIndex ??= lastStepIndex\n\n const step = this.getStep(stepIndex)\n\n if (stepIndex === lastStepIndex) {\n // Update beam status if last step was updated\n this.done = step?.done ?? false\n }\n\n emitEvent(Beam.Events.Update, { beam: this, state: step?.state, step, stepIndex })\n }\n\n #updateHistory (stepIndex) {\n const lastStepIndex = this.getLastStepIndex()\n const step = this.#steps[stepIndex]\n\n console.debug(\n this.toString(),\n 'updateHistory',\n 'stepIndex:',\n stepIndex,\n 'lastStepIndex:',\n lastStepIndex,\n 'step:',\n step\n )\n\n if (step) {\n const currentPath = this.path[step.pathIndex]\n\n // Remove any now invalid path segments\n currentPath.removeSegments(step.segmentIndex)\n\n // If the current path is empty, remove it along with everything after it.\n const spliceIndex = step.pathIndex + (currentPath.segments.length === 0 ? 0 : 1)\n\n // Remove any now invalid path items\n this.path.splice(spliceIndex).forEach((item) => item.remove())\n\n const deletedSteps = this.#steps.splice(stepIndex)\n\n console.debug(this.toString(), 'removed steps: ', deletedSteps)\n\n const tiles = [...new Set(deletedSteps.map((step) => step.tile))]\n // Remove references to the beam in any tiles it is no longer in\n tiles.filter((tile) => this.getSteps(tile).length === 0).forEach((tile) => tile.removeItem(this))\n\n deletedSteps.forEach((step) => step.onRemove(step))\n\n this.done = false\n this.#stepIndex = (stepIndex - 1)\n\n this.#onUpdate(this.#stepIndex)\n }\n\n return step\n }\n\n static CacheKeys = Object.freeze({\n MergeWith: 'mergeWith'\n })\n\n static Events = Object.freeze({\n Collision: 'beam-collision',\n Connection: 'beam-connection',\n Merge: 'beam-merge',\n Update: 'beam-update'\n })\n}\n","import { StepState } from './step'\n\nexport class Collision {\n constructor (index, points, beam, item) {\n const items = [beam]\n\n if (item !== undefined) {\n items.push(item)\n }\n\n this.beam = beam\n this.index = index\n\n // The item that was collided with\n this.item = item\n this.itemIds = items.map((item) => item.id)\n this.items = items\n\n // The first collision point\n this.point = points[0]\n this.points = points\n\n // Check if the collision is with self\n this.withSelf = beam.equals(item)\n }\n\n copy (settings) {\n return new Collision(\n settings.index ?? this.index,\n settings.points ?? this.points,\n settings.beam ?? this.beam,\n settings.item ?? this.item\n )\n }\n\n equals (other) {\n return other && other.point.equals(this.point) &&\n other.items.every((item) => this.has(item))\n }\n\n has (item) {\n return this.itemIds.includes(item.id)\n }\n\n mirror () {\n return this.copy({ beam: this.item, item: this.beam })\n }\n}\n\nexport class CollisionMergeWith {\n constructor (beam, step, stepIndex) {\n this.beams = [beam].concat(step.state.get(StepState.MergeWith)?.beams || [])\n this.colors = step.colors.concat(beam.getColors())\n this.stepIndex = stepIndex\n }\n}\n","import { Path, Point, Size } from 'paper'\nimport { Item } from '../item'\nimport { rotatable } from '../modifiers/rotate'\nimport { getPointBetween, getOppositeDirection, getPosition, getReflectedDirection, getPointFrom } from '../util'\nimport { movable } from '../modifiers/move'\nimport { StepState } from '../step'\n\nexport class Reflector extends movable(rotatable(Item)) {\n #item\n\n constructor (tile, state) {\n super(tile, state, { rotationDegrees: 30 })\n\n this.color = state.color || 'black'\n this.#item = Reflector.item(tile, this.color)\n\n this.group.addChild(this.#item)\n }\n\n midLine () {\n // Two points which form a line through the mid-point of the reflector\n return [\n getPointBetween(this.#item.segments[3].point, this.#item.segments[0].point),\n getPointBetween(this.#item.segments[1].point, this.#item.segments[2].point)\n ]\n }\n\n getSide (point) {\n // Returns the side of the reflector the point is on (0, 1, or -1)\n return getPosition(this.midLine(), point)\n }\n\n isSameSide (pointA, pointB) {\n return this.getSide(pointA) === this.getSide(pointB)\n }\n\n onCollision ({ beam, collision, collisions, collisionStep, currentStep, nextStep }) {\n const directionFrom = getOppositeDirection(currentStep.direction)\n const directionTo = getReflectedDirection(directionFrom, this.rotation)\n\n if (directionTo === currentStep.direction) {\n console.debug(beam.toString(), 'stopping due to collision with non-reflective side of reflector')\n return collisionStep\n }\n\n if (directionTo === directionFrom) {\n console.debug(beam.toString(), 'stopping due to reflection back at self')\n // Unsure why this rule was here, but it was causing a bug when re-evaluating history\n // if (collisions.some((collision) => collision.item.type === Item.Types.beam)) {\n // // If there is also a beam collision in the list of collisions for this step, let that one resolve it\n // return\n // } else {\n // Instead of using collisionStep, just add a collision to nextStep. This will ensure any beams that hit the\n // same side of the reflector will collide with this beam.\n return nextStep.copy({\n done: true,\n state: nextStep.state.copy(new StepState.Collision(collision.copy({ points: [nextStep.point] })))\n })\n // }\n }\n\n // The beam will collide with a reflector twice, on entry and exit, so ignore the first one, but track in state\n if (!currentStep.state.has(StepState.Reflector)) {\n return nextStep.copy({ state: nextStep.state.copy(new StepState.Reflector(this)) })\n }\n\n const point = getPointFrom(currentStep.point, nextStep.tile.parameters.inradius, directionTo)\n return nextStep.copy({ direction: directionTo, point })\n }\n\n static item (tile, color) {\n const width = tile.parameters.circumradius / 12\n const length = tile.parameters.circumradius - (width * 2)\n const topLeft = tile.center.subtract(new Point(width / 2, length / 2))\n const size = new Size(width, length)\n\n return new Path.Rectangle({\n data: { size },\n fillColor: color,\n point: topLeft,\n size\n })\n }\n}\n","import { Item } from '../item'\nimport { Path } from 'paper'\nimport { addDirection } from '../util'\nimport { rotatable } from '../modifiers/rotate'\nimport { movable } from '../modifiers/move'\n\nexport class Wall extends movable(rotatable(Item)) {\n sortOrder = 1\n\n constructor (tile, state) {\n // Exclude from modification by default\n state.immutable ??= true\n\n super(tile, state, { rotationDegrees: 60 })\n\n const walls = Wall.item(tile, state)\n this.group.addChildren(walls)\n }\n\n static item (tile, configuration) {\n const radius = tile.parameters.circumradius\n const width = radius / 12\n const fillColor = tile.styles.default.strokeColor\n\n return configuration.directions.map((direction) => {\n const firstSegment = tile.hexagon.segments[direction].point\n const nextDirection = addDirection(direction, 1)\n const lastSegment = tile.hexagon.segments[nextDirection].point\n\n return new Path({\n closed: true,\n fillColor,\n segments: [\n firstSegment,\n tile.hexagon.getLocationAt(\n (direction === 0 ? tile.hexagon.length : tile.hexagon.getOffsetOf(firstSegment)) - width\n ),\n tile.hexagon.getLocationAt(\n (nextDirection === 0 ? 0 : tile.hexagon.getOffsetOf(lastSegment)) + width\n ),\n lastSegment\n ]\n })\n })\n }\n}\n","import { Immutable } from './modifiers/immutable'\nimport { Lock } from './modifiers/lock'\nimport { Move } from './modifiers/move'\nimport { Rotate } from './modifiers/rotate'\nimport { Toggle } from './modifiers/toggle'\nimport { Modifier } from './modifier'\nimport { Swap } from './modifiers/swap'\n\nexport function modifierFactory (parent, state, index) {\n let modifier\n\n switch (state.type) {\n case Modifier.Types.immutable:\n modifier = new Immutable(...arguments)\n break\n case Modifier.Types.lock:\n modifier = new Lock(...arguments)\n break\n case Modifier.Types.move:\n modifier = new Move(...arguments)\n break\n case Modifier.Types.rotate:\n modifier = new Rotate(...arguments)\n break\n case Modifier.Types.swap:\n modifier = new Swap(...arguments)\n break\n case Modifier.Types.toggle:\n modifier = new Toggle(...arguments)\n break\n default:\n console.error('Ignoring modifier with unknown type:', state.type)\n break\n }\n\n return modifier\n}\n","import { Modifier } from '../modifier'\n\nexport class Immutable extends Modifier {\n immutable = true\n name = 'block'\n title = 'Immutable'\n}\n","import { Modifier } from '../modifier'\n\nexport class Lock extends Modifier {\n immutable = true\n name = 'lock'\n title = 'Locked'\n}\n","import { Move } from './move'\nimport { Modifier } from '../modifier'\nimport { Icons } from '../icons'\n\nexport class Swap extends Move {\n name = Icons.Swap.name\n title = 'Swap'\n\n moveItems (tile) {\n const toItems = tile.items.filter(Move.movable)\n const fromItems = this.tile.items.filter(Move.movable)\n\n fromItems.forEach((item) => item.move(tile))\n toItems.forEach((item) => item.move(this.tile))\n\n return {\n moved: [Move.data(this.tile, tile, fromItems), Move.data(tile, this.tile, toItems)],\n tiles: [this.tile, tile]\n }\n }\n\n tileFilter (tile) {\n // Never mask current tile\n return !tile.equals(this.tile) && (\n // Mask immutable tiles\n tile.modifiers.some(Modifier.immutable) ||\n // Mask tiles that don't contain any movable items\n !tile.items.some(Move.movable)\n )\n }\n}\n","import { Item } from '../item'\nimport { Path } from 'paper'\n\nexport class Mask extends Item {\n constructor (tile, style) {\n super(null, style, { locked: false, type: Item.Types.mask })\n\n const data = { type: this.type }\n const item = new Path.RegularPolygon({\n center: tile.center,\n closed: true,\n data,\n opacity: 0.25,\n radius: tile.parameters.circumradius + 1,\n sides: 6,\n style: Object.assign({ fillColor: 'black' }, style)\n })\n\n this.center = tile.center\n this.group.addChild(item)\n }\n}\n","import { Item } from '../item'\nimport { Path } from 'paper'\n\nexport class Collision extends Item {\n constructor (state) {\n super(null, state, { type: Item.Types.collision })\n\n const { center, color } = state\n\n this.center = center\n this.color = color\n\n const item = new Path.Circle({\n center,\n closed: true,\n radius: 4,\n style: {\n fillColor: 'white',\n strokeColor: color,\n strokeWidth: 2\n }\n })\n\n this.group.addChild(item)\n }\n}\n","import { Puzzles } from '../puzzles'\nimport { base64decode, base64encode, jsonDiffPatch, params, url } from './util'\n\nconst history = window.history\nconst localStorage = window.localStorage\n\nexport class State {\n #current\n #deltas\n #id\n #moveIndex\n #moves\n #original\n #selectedTile\n #version\n\n constructor (id, original, deltas, moveIndex, moves, selectedTile, version) {\n console.log(moveIndex)\n this.#id = id\n this.#original = original\n this.#deltas = deltas || []\n this.#moves = moves || []\n this.#moveIndex = moveIndex ?? this.#moves.length - 1\n this.#selectedTile = selectedTile\n this.#version = version ?? State.Version\n\n this.#resetCurrent()\n this.#updateCache()\n }\n\n addMove () {\n // Handle moving after an undo (revising history)\n if (this.#moveIndex < this.#moves.length - 1) {\n const deltaIndex = this.getDeltaIndex()\n\n console.debug(\n this.toString(),\n 'addMove: revising history. moves:',\n this.#moves,\n `moveIndex: ${this.#moveIndex}`,\n `deltaIndex: ${deltaIndex}`\n )\n\n // Remove all deltas after the current one\n this.#deltas.splice(deltaIndex + 1)\n // Remove all moves after the current one\n this.#moves.splice(this.#moveIndex + 1)\n }\n\n const deltaIndex = this.#deltas.length - 1\n if (!this.#moves.includes(deltaIndex)) {\n // Don't add duplicate moves\n this.#moves.push(deltaIndex)\n } else {\n console.debug(this.toString(), `addMove: ignoring duplicate move: ${deltaIndex}`)\n }\n\n this.#moveIndex = this.#moves.length - 1\n\n console.debug(this.toString(), 'addMove: added move', this.#moveIndex, deltaIndex)\n\n return this.#moveIndex\n }\n\n canRedo () {\n return this.#moveIndex < this.#moves.length - 1\n }\n\n canReset () {\n return this.#moves.length > 0\n }\n\n canUndo () {\n return this.#moveIndex >= 0\n }\n\n encode () {\n return base64encode(JSON.stringify({\n id: this.#id,\n // If this puzzle exists in code, just cache the version\n original: Puzzles.has(this.#id) ? { version: this.#original.version } : this.#original,\n deltas: this.#deltas,\n moveIndex: this.#moveIndex,\n moves: this.#moves,\n selectedTile: this.#selectedTile,\n version: this.#version\n }))\n }\n\n getCurrent () {\n return structuredClone(this.#current)\n }\n\n getDeltaIndex () {\n console.debug(this.toString(), 'getDeltaIndex', this.#moves, this.#moveIndex, this.#deltas.length - 1)\n // If there are no moves, or the user is on the latest move, use the latest delta index\n // Otherwise, use the delta index indicated by the move\n return this.#moveIndex < this.#moves.length - 1 ? this.#moves[this.#moveIndex + 1] : this.#deltas.length - 1\n }\n\n getId () {\n return this.#id\n }\n\n getTitle () {\n return this.getId() + (this.#current.title ? ` - ${this.#current.title}` : '')\n }\n\n getSelectedTile () {\n return this.#selectedTile\n }\n\n moves () {\n return this.#moves\n }\n\n redo () {\n if (!this.canRedo()) {\n return\n }\n\n this.#moveIndex++\n this.#resetCurrent()\n this.#updateCache()\n\n return true\n }\n\n reset () {\n if (!this.canReset()) {\n return\n }\n\n // Reset to the state prior to the first move\n this.#deltas.splice(this.#moves[0] + 1)\n this.#moveIndex = -1\n this.#moves = []\n this.#selectedTile = undefined\n\n State.clearCache(this.getId())\n\n this.#resetCurrent()\n this.#updateCache()\n\n return true\n }\n\n setSelectedTile (tile) {\n const id = tile?.coordinates.offset.toString()\n if (this.#selectedTile !== id) {\n this.#selectedTile = id\n this.#updateCache()\n }\n }\n\n toString () {\n return `[State:${this.#deltas.length - 1}:${this.#moveIndex}]`\n }\n\n undo () {\n if (!this.canUndo()) {\n return\n }\n\n console.log(this.toString(), 'undo', this.#moveIndex)\n\n this.#moveIndex--\n this.#resetCurrent()\n this.#updateCache()\n\n return true\n }\n\n update (newState) {\n const delta = jsonDiffPatch.diff(this.#current, newState)\n console.debug(this.toString(), 'update', delta)\n\n if (delta === undefined) {\n // Nothing to do\n return\n }\n\n // It seems that the jsondiffpatch library modifies deltas on patch. To prevent that, they will be stored as\n // their stringified JSON representation and parsed before being applied.\n // See:https://github.com/benjamine/jsondiffpatch/issues/34\n this.#deltas.push(JSON.stringify(delta))\n\n this.#apply(delta)\n this.#updateCache()\n }\n\n #apply (delta) {\n // Support for deltas stored as stringified JSON in cache\n if (typeof delta === 'string') {\n delta = JSON.parse(delta)\n }\n console.debug(this.toString(), 'apply', delta)\n return jsonDiffPatch.patch(this.#current, delta)\n }\n\n #key (key) {\n return State.key(key, this.getId())\n }\n\n #resetCurrent () {\n // Start with the original state\n this.#current = structuredClone(this.#original)\n\n // Then apply every delta until the currently active delta\n const deltaIndex = this.getDeltaIndex()\n\n console.log(this.toString(), 'resetCurrent', deltaIndex)\n\n this.#deltas.filter((delta, index) => index <= deltaIndex).forEach((delta) => this.#apply(delta))\n }\n\n #updateCache () {\n const id = this.getId()\n const state = this.encode()\n\n url.hash = ['', id, state].join('/')\n history.pushState({ id, state }, '', url)\n localStorage.setItem(State.CacheKeys.id, id)\n localStorage.setItem(this.#key(State.CacheKeys.state), state)\n }\n\n static clearCache (id) {\n if (!id) {\n // Clear everything\n url.hash = ''\n history.pushState({}, '', url)\n id = localStorage.getItem(State.CacheKeys.id)\n localStorage.clear()\n // Keep current puzzle ID\n localStorage.setItem(State.CacheKeys.id, id)\n } else {\n // Clear a single puzzle\n url.hash = `/${id}`\n history.pushState({ id }, '', url)\n localStorage.removeItem(State.key(State.CacheKeys.state, id))\n }\n }\n\n static fromEncoded (state) {\n state = JSON.parse(base64decode(state))\n\n if (state.id === undefined) {\n console.warn('Invalid cache, ignoring.')\n return\n }\n\n if (state.version !== State.Version) {\n console.debug(\n 'Invalidating cache due to version mismatch. ' +\n `Ours: ${State.Version}, theirs: ${state.version}.`\n )\n State.clearCache()\n return\n }\n\n if (Puzzles.has(state.id)) {\n const original = Puzzles.get(state.id)\n if (original && original.version !== state.original?.version) {\n console.debug(\n `Invalidating cache for puzzle ${state.id} due to version mismatch. ` +\n `Ours: ${original.version}, theirs: ${state.original?.version}.`\n )\n State.clearCache(state.id)\n return\n }\n state.original = original\n }\n\n return new State(\n state.id,\n state.original,\n state.deltas,\n state.moveIndex,\n state.moves,\n state.selectedTile,\n state.version\n )\n }\n\n static fromId (id) {\n return new State(id, Puzzles.get(id))\n }\n\n static resolve (id) {\n let state\n\n // Allow cache to be cleared via URL param\n if (params.has(State.ParamKeys.clearCache)) {\n State.clearCache(params.get(State.ParamKeys.clearCache))\n }\n\n const pathSegments = url.hash.substring(1).split('/').filter((path) => path !== '')\n\n if (!id) {\n // If no explicit ID is given, try to load state from URL\n pathSegments.filter((path) => !Puzzles.has(path)).some((segment, index) => {\n try {\n state = State.fromEncoded(segment)\n id = state.getId()\n } catch (e) {\n console.debug(`Could not parse state from path segment '${index}'`, e)\n }\n\n return state !== undefined\n })\n }\n\n if (!state) {\n // Update ID before checking for state in localStorage.\n id = id || pathSegments[0] || localStorage.getItem(State.CacheKeys.id) || Puzzles.visible.firstId\n\n const localState = localStorage.getItem(State.key(State.CacheKeys.state, id))\n if (localState) {\n try {\n state = State.fromEncoded(localState)\n } catch (e) {\n console.debug(`Could not parse state with ID '${id}' from localStorage`, e)\n }\n }\n }\n\n if (!state) {\n // Fall back to loading state from Puzzles cache by ID\n state = State.fromId(id)\n }\n\n if (!state) {\n throw new Error(`Unable to resolve state for ID '${id}'`)\n }\n\n return state\n }\n\n static key (key, id) {\n return `${key}:${id}`\n }\n\n static CacheKeys = Object.freeze({\n center: 'center',\n id: 'id',\n state: 'state',\n zoom: 'zoom'\n })\n\n static ParamKeys = Object.freeze({\n clearCache: 'clearCache'\n })\n\n // This should be incremented whenever the state cache object changes in a way that requires it to be invalidated\n // Use this sparingly as it will reset the state of every puzzle on the users end\n static Version = 3\n}\n","const puzzles = {\n '001': require('./001.json'),\n '002': require('./002.json'),\n '003': require('./003.json'),\n '004': require('./004.json'),\n '005': require('./005.json'),\n '006': require('./006.json'),\n '007': require('./007.json'),\n '008': require('./008.json'),\n '009': require('./009.json'),\n '010': require('./010.json'),\n '011': require('./011.json'),\n '012': require('./012.json'),\n test_infinite_loop: require('./test/infiniteLoop.json'),\n test_layout: require('./test/layout'),\n test_portal: require('./test/portal.json'),\n test_reflector: require('./test/reflector.json')\n}\n\nfunction traverse (ids, id, amount) {\n const index = ids.indexOf(id)\n return ids[index < 0 ? index : index + amount]\n}\n\nclass PuzzleGroup {\n ids\n\n constructor (ids) {\n this.firstId = ids[0]\n this.ids = ids\n this.lastId = ids[ids.length - 1]\n }\n\n get (id) {\n if (this.has(id)) {\n // Note: deep cloning puzzles to prevent mutation\n return structuredClone(puzzles[id])\n }\n }\n\n has (id) {\n return this.ids.includes(id)\n }\n\n nextId (id) {\n return traverse(this.ids, id, 1)\n }\n\n previousId (id) {\n return traverse(this.ids, id, -1)\n }\n}\n\nexport const Puzzles = new PuzzleGroup(Object.keys(puzzles).sort())\n\nPuzzles.hidden = new PuzzleGroup(Puzzles.ids.filter((id) => id.startsWith('test_')))\nPuzzles.titles = Object.fromEntries(Puzzles.ids.map((id) => [id, puzzles[id].title || id]))\nPuzzles.visible = new PuzzleGroup(Puzzles.ids.filter((id) => !Puzzles.hidden.has(id)))\n","import { capitalize, getIconElement, getTextElement } from './util'\nimport { Terminus } from './items/terminus'\nimport { EventListeners } from './eventListeners'\nimport { Puzzle } from './puzzle'\n\nexport class Solution {\n #conditions = []\n\n constructor (state) {\n state.forEach((condition) => this.#conditionFactory(condition))\n }\n\n teardown () {\n this.#conditions.forEach((condition) => condition.teardown())\n Solution.element.replaceChildren()\n }\n\n isSolved () {\n return this.#conditions.every((condition) => condition.isMet())\n }\n\n #conditionFactory (condition) {\n switch (condition.type) {\n case SolutionCondition.Types.connections: {\n this.#conditions.push(new Connections(condition))\n break\n }\n case SolutionCondition.Types.moves: {\n this.#conditions.push(new Moves(condition))\n break\n }\n default: {\n console.warn('Ignoring condition with unknown type:', condition.type)\n break\n }\n }\n }\n\n static element = document.getElementById('solution')\n}\n\nclass SolutionCondition {\n constructor (state, elements) {\n this.state = state\n\n const li = document.createElement('li')\n li.append(...elements)\n Solution.element.append(li)\n }\n\n isMet () {}\n\n teardown () {}\n\n update () {}\n\n static Types = Object.freeze(Object.fromEntries([\n 'connections',\n 'moves'\n ].map((type) => [type, capitalize(type)])))\n}\n\nclass Connections extends SolutionCondition {\n #completed\n #eventListeners = new EventListeners({ context: this })\n #connections = []\n\n constructor (state) {\n const completed = document.createElement('span')\n completed.textContent = '0'\n\n const required = document.createElement('span')\n required.textContent = state.amount.toString()\n\n const elements = [\n completed,\n getTextElement('/'),\n required,\n getIconElement('link', 'Connections')\n ]\n\n super(state, elements)\n\n this.#completed = completed\n\n this.#eventListeners.add([\n { type: Terminus.Events.Connection, handler: this.update },\n { type: Terminus.Events.Disconnection, handler: this.update }\n ])\n }\n\n isMet () {\n return this.#connections.length === this.state.amount\n }\n\n teardown () {\n this.#eventListeners.remove()\n super.teardown()\n }\n\n update (event) {\n console.debug('Connections.update', event)\n\n const terminus = event.detail.terminus\n const opening = event.detail.opening\n const connectionId = `${terminus.id}:${opening.direction}`\n const connectionIndex = this.#connections.findIndex((connection) => connection === connectionId)\n\n if (opening.connected && connectionIndex < 0) {\n this.#connections.push(connectionId)\n } else if (!opening.connected && connectionIndex >= 0) {\n this.#connections.splice(connectionIndex, 1)\n }\n\n this.#completed.textContent = this.#connections.length.toString()\n }\n}\n\nclass Moves extends SolutionCondition {\n #completed\n #eventListeners = new EventListeners({ context: this })\n #moves = 0\n\n constructor (state) {\n state.operator ??= Moves.Operators.equalTo\n\n if (!Object.values(Moves.Operators).includes(state.operator)) {\n throw new Error(`Invalid moves operator: ${state.operator}`)\n }\n\n const completed = document.createElement('span')\n completed.textContent = '0'\n\n const required = document.createElement('span')\n required.textContent = state.amount.toString()\n\n const elements = [\n completed,\n getTextElement(state.operator),\n required,\n getIconElement('stacks', 'Moves')\n ]\n\n super(state, elements)\n\n this.#completed = completed\n this.#eventListeners.add([{ type: Puzzle.Events.Updated, handler: this.update }])\n }\n\n isMet () {\n // TODO: support 'between' syntax like 2 < 3 < 4 ?\n switch (this.state.operator) {\n case Moves.Operators.equalTo:\n return this.#moves === this.state.amount\n case Moves.Operators.greaterThan:\n return this.#moves > this.state.amount\n case Moves.Operators.lessThan:\n return this.#moves < this.state.amount\n }\n }\n\n teardown () {\n this.#eventListeners.remove()\n super.teardown()\n }\n\n update (event) {\n console.debug('Moves.update', event)\n this.#moves = event.detail.state.moves().length\n this.#completed.textContent = this.#moves.toString()\n }\n\n static Operators = Object.freeze({\n equalTo: '=',\n greaterThan: '>',\n lessThan: '<'\n })\n}\n","const script = document.createElement('script')\nscript.setAttribute('src', 'https://www.googletagmanager.com/gtag/js?id=G-HXLD6EE5NS')\ndocument.head.append(script)\n\nconst dataLayer = window.dataLayer = window.dataLayer || []\nfunction gtag () { dataLayer.push(arguments) }\ngtag('js', new Date())\ngtag('config', 'G-HXLD6EE5NS')\n","const doorbellOptions = window.doorbellOptions = {\n appKey: 'o1smdnJiyxObjMcY0jSTf08TIhA814yLq68rEwTDWTavma7dtIVKEdwzMePE2LHC',\n container: document.getElementById('feedback-container'),\n hideButton: true,\n properties: {}\n}\n\nconst script = document.createElement('script')\nscript.setAttribute(\n 'src',\n 'https://embed.doorbell.io/button/14129/1705777677/init?native_json=1&needs_postmessage=0'\n)\ndocument.head.append(script)\n\ndocument.addEventListener('puzzle-updated', (event) => {\n doorbellOptions.properties.puzzleId = event.detail.state.getId()\n})\n"],"names":["$a39eeb69bf620de6$var$static_l_desc","$a39eeb69bf620de6$var$static_d_desc","$a39eeb69bf620de6$var$static_bl_desc","$a39eeb69bf620de6$var$lenfix","$a39eeb69bf620de6$var$distfix","$parcel$export","e","n","v","s","Object","defineProperty","get","set","enumerable","configurable","$parcel$interopDefault","a","__esModule","default","$parcel$global","globalThis","self","window","global","$parcel$modules","$parcel$inits","parcelRequire","id","exports","init","module","call","err","Error","code","register","parcelRegister","self1","undefined","document","Base","hidden","array","slice","create","describe","getOwnPropertyDescriptor","define1","forEach","iter","bind","i","l","length","forIn","hasOwnProperty","assign","dst","arguments","src","key","each","obj","desc","value","inject","dest","beans","preserve","beansNames","field","name","val","substring","bean","isFunc","res","prev","base","match","toLowerCase","isPlainObject","writable","test","part","statics","prototype","extend","ctor","proto","initialize","apply","clone","constructor","define","pick","b","list","begin","end","toString","_id","_class","_name","type","push","Formatter","instance","number","join","getClassName","importJSON","json","exportJSON","options","toJSON","serialize","props","exclude","filter","_prioritize","equals","obj1","obj2","Array","isArray","keys","read","start","amount","peek","__index","readIndex","_readIndex","readNull","__read","filtered","__filtered","remain","readList","entry","readNamed","getNamed","hasValue","source","getSource","__unfiltered","readSupported","that","__source","arg","hasNamed","prioritize","handleKey","processed","isPlainValue","asString","compact","dictionary","isRoot","formatter","precision","definitions","references","add","item","ref","unshift","_serialize","_compactSerialize","deserialize","_data","_setDictionary","_isRoot","isFirst","hasDictionary","isDictionary","args","JSON","stringify","target","parse","useTarget","Item","Layer","insert","concat","INSERT","items","itemsLength","startLength","splice","index","remove","append","_index","removed","capitalize","str","replace","toUpperCase","camelize","chr","hyphenate","Emitter","on","func","types","_eventTypes","handlers","_callbacks","indexOf","install","off","uninstall","once","handler","emit","event","setTarget","currentTarget","stop","responds","attach","detach","fire","_installEvents","events","_events","isString","PaperScope","paper","settings","applyMatrix","insertItems","handleSize","hitTolerance","project","projects","tools","_scopes","support","ctx","CanvasProvider","getContext","nativeDash","nativeBlendModes","BlendMode","nativeModes","release","agent","user","navigator","userAgent","os","exec","platform","browser","v1","v2","rv","chrome","version","versionNumber","parseFloat","trident","jsdom","webkit","atom","getView","_view","getPaper","execute","PaperScript","View","updateFocus","scope","setup","element","Project","createCanvas","width","height","getCanvas","activate","clear","handleAttribute","el","attr","getAttribute","hasAttribute","PaperScopeItem","_scope","_list","_reference","isActive","CollisionDetection","findItemBoundsCollisions","items1","items2","tolerance","getBounds","bounds","rect","left","top","right","bottom","bounds1","bounds2","findBoundsCollisions","findCurveBoundsCollisions","curves1","curves2","bothAxis","curves","min","Math","max","hor","ver","boundsA","boundsB","sweepVertical","onlySweepAxisCollisions","allBounds","lengthA","lengthAll","binarySearch","indices","coord","lo","hi","mid","pri0","pri1","sec0","sec1","allIndicesByPri0","sort","i1","i2","activeIndicesByPri1","allCollisions","curIndex","curBounds","origIndex","isCurrentA","isCurrentB","curCollisions","pruneCount","j","activeIndex","curSec1","curSec0","activeBounds","isActiveA","isActiveB","curPri1","collisions","multiplier","pow","round","pair","val1","val2","separator","point","x","y","size","rectangle","Numerical","abscissas","weights","abs","sqrt","log2","log","LOG2E","clamp","getDiscriminant","c","split","D","E","ad","bd","cd","p","dp","q","dq","getNormalizationFactor","norm","EPSILON","MACHINE_EPSILON","CURVETIME_EPSILON","GEOMETRIC_EPSILON","TRIGONOMETRIC_EPSILON","ANGULAR_EPSILON","KAPPA","isZero","isMachineZero","integrate","f","w","A","B","m","sum","Ax","findRoot","df","fx","dx","nx","solveQuadratic","roots","x1","x2","Infinity","Q","R","count","boundless","minB","maxB","isFinite","solveCubic","d","b1","c2","qd","evaluate","x0","tmp","t","r","td","rd","UID","_pools","pool","Point","arg0","arg1","reading","hasY","_set","setAngle","angle","getLength","setLength","_angle","cos","sin","scale","getAngle","getAngleInRadians","PI","setAngleInRadians","getAngleInDegrees","setAngleInDegrees","atan2","div","NaN","dot","acos","getQuadrant","getDirectedAngle","cross","getDistance","squared","normalize","current","rotate","center","subtract","transform","matrix","_transformPoint","multiply","divide","modulo","negate","isInside","Rectangle","contains","isClose","isCollinear","isColinear","isOrthogonal","isNaN","isInQuadrant","point1","point2","random","y1","y2","op","LinkedPoint","owner","setter","_x","_y","_owner","_setter","_dontNotify","getX","setX","getY","setY","isSelected","_selection","_getSelection","setSelected","selected","_changeSelection","Size","hasHeight","size1","size2","LinkedSize","_width","_height","getWidth","setWidth","getHeight","setHeight","arg2","arg3","from","to","frm","next","rt","getPoint","_dontLink","setPoint","getSize","_fw","_fh","setSize","sx","_sx","sy","_sy","h","getLeft","setLeft","getTop","setTop","getRight","setRight","getBottom","setBottom","getCenterX","setCenterX","getCenterY","setCenterY","getCenter","setCenter","getArea","isEmpty","_containsRectangle","_containsPoint","intersects","epsilon","intersect","unite","include","expand","parts","xFirst","LinkedRectangle","internal","Matrix","ok","_a","_b","_c","_d","_tx","_ty","reset","tx","ty","_changed","getValues","_applyMatrix","mx","recursively","_setApplyMatrix","isIdentity","translate","shear","skew","toRadians","tan","a1","c1","d1","a2","b2","d2","tx2","ty2","prepend","tx1","ty1","appended","prepended","invert","det","inverted","concatenate","preConcatenate","chain","_shiftless","_orNullIfIdentity","isInvertible","isSingular","_transformCoordinates","_transformCorners","coords","_transformBounds","inverseTransform","_inverseTransform","decompose","degrees","asin","translation","getTranslation","rotation","scaling","skewing","getScaling","getRotation","applyToContext","prop","Line","arg4","asVector","_px","_py","_vx","_vy","getVector","line","isInfinite","getSide","getSignedDistance","p1x","p1y","v1x","v1y","p2x","p2y","v2x","v2y","dy","u1","u2","uMin","px","py","vx","vy","ccw","_children","_namedChildren","_activeLayer","_currentStyle","Style","_selectionItems","_selectionCount","_updateVersion","flags","view","_needsUpdate","_requested","_autoUpdate","requestUpdate","changes","_changes","changesById","_changesById","children","getCurrentStyle","setCurrentStyle","style","getIndex","getOptions","getLayers","getActiveLayer","getSymbolDefinitions","ids","getItems","class","SymbolItem","definition","_definition","getSymbols","getSelectedItems","selectionItems","selection","isInserted","_updateSelection","selectAll","setFullySelected","deselectAll","addLayer","layer","insertLayer","_remove","_setProject","setName","_insertItem","_created","NO_INSERT","insertChild","_getItems","getItem","removeOn","sets","_removeSets","mousedrag","other","draw","pixelRatio","save","param","offset","viewMatrix","matrices","updateMatrix","restore","strokeWidth","_drawSelection","_serializeFields","_canApplyMatrix","_canScaleStroke","_pivot","_visible","_blendMode","_opacity","_locked","_guide","_clipMask","_selectBounds","_selectChildren","pivot","visible","blendMode","opacity","locked","guide","clipMask","data","_countItemEvent","onFrame","_animateItem","onLoad","onError","_itemHandlers","_initialize","hasProps","_matrix","_parent","_style","parent","fields","fontSize","Group","_defaults","symbol","_symbol","cacheParent","_project","_bounds","_position","_decomposed","_globalMatrix","_clearBoundsCache","getId","getName","_removeNamed","_getOwner","namedChildren","getStyle","setStyle","getSelection","setSelection","flag","isFullySelected","isClipMask","setClipMask","setFillColor","setStrokeColor","getData","setData","getPosition","position","_getPositionFromBounds","setPosition","getPivot","setPivot","getStrokeBounds","stroke","getHandleBounds","handle","getInternalBounds","hasMatrix","opts","_boundsOptions","getStrokeScaling","cacheItem","_getCachedBounds","setBounds","_backup","_getBounds","_updateBoundsCache","_getBoundsCacheKey","noInternal","cacheKey","cached","nonscaling","hasStroke","_getStrokeMatrix","_item","getViewMatrix","_boundsCache","cache","_decompose","decomposed","setRotation","setScaling","getMatrix","setMatrix","getGlobalMatrix","_dontClone","parents","getApplyMatrix","setApplyMatrix","getTransformContent","setTransformContent","getProject","installEvents","getLayer","getParent","setParent","addChild","getChildren","setChildren","removeChildren","addChildren","getFirstChild","getLastChild","getNextSibling","getPreviousSibling","setIndex","insertChildren","_equals","copy","deep","copyAttributes","copyContent","insertAbove","orig","excludeMatrix","rasterize","resolution","raster","Raster","getResolution","topLeft","getTopLeft","floor","boundsSize","bottomRight","getBottomRight","ceil","rasterSize","_contains","_asPathItem","Path","getIntersections","hitTest","_hitTest","HitResult","hitTestAll","all","hitTestChildren","_exclude","child","_hitTestChildren","parentViewMatrix","guides","tolerancePadding","_tolerancePadding","_getStrokePadding","checkSelf","hit","checkPoint","pt","checkPosition","checkCenter","checkBounds","points","_hitTestSelf","fill","hasFill","matches","compare","matchObject","firstOnly","overlapping","inside","recursive","path","childMatrix","inserted","notifySelf","_insertAt","insertBelow","sendToBack","bringToFront","appendTop","appendBottom","moveAbove","moveBelow","addTo","copyTo","reduce","namedArray","notifyParent","_dispose","replaceWith","reverseChildren","reverse","numChildren","isEditable","hasShadow","_getOrder","getList","list1","list2","hasChildren","isAbove","isBelow","isParent","isChild","isDescendant","isAncestor","isSibling","isGroupedWith","_applyRecursively","transformMatrix","fillColor","getFillColor","strokeColor","getStrokeColor","_transformContent","decomp","applyRecursively","globalToLocal","localToGlobal","parentToLocal","localToParent","fitBounds","itemRatio","rectRatio","newBounds","_setStyles","fillStyle","toCanvasStyle","strokeStyle","lineWidth","getStrokeWidth","strokeJoin","getStrokeJoin","strokeCap","getStrokeCap","miterLimit","getMiterLimit","lineJoin","lineCap","dashArray","getDashArray","dashOffset","getDashOffset","setLineDash","lineDashOffset","mozDash","mozDashOffset","blur","getShadowBlur","getShadowOffset","shadowColor","getShadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","parentStrokeMatrix","globalMatrix","mainCtx","itemOffset","prevOffset","normalBlend","nativeBlend","direct","dontStart","clip","_canComposite","pop","strokeMatrix","clipItem","globalAlpha","globalCompositeOperation","setTransform","_draw","dontFinish","getFillRule","process","_isUpdated","updateVersion","CompoundPath","updated","itemSelected","boundsSelected","positionSelected","_drawSelected","color","getSelectedColor","half","pos","beginPath","arc","deltas","delta","moveTo","lineTo","closePath","fillRect","hash","tween","easing","duration","Tween","_handleFrame","time","running","tweenTo","tweenFrom","_clipItem","_getClipItem","isClipped","setClipped","clipped","Shape","radius","_type","_size","_radius","setType","setRadius","getType","getShape","setShape","getRadius","rad","toPath","toShape","dontPaint","untransformed","isCircle","rx","ry","cx","cy","bezierCurveTo","getCornerCenter","halfSize","dir","corner","quadrant","isOnEllipseStroke","padding","vector","hitStroke","hitFill","strokeRadius","strokePadding","outer","inner","createShape","Circle","Ellipse","ellipse","_readEllipse","crossOrigin","_smoothing","image","object","getElementById","naturalHeight","setImage","setSource","_loaded","_image","canvas","_canvas","_setImage","copyCanvas","drawImage","_crossOrigin","_clear","getElement","getLoaded","u","getPpi","getImage","Event","setTimeout","DomEvent","load","error","complete","naturalWidth","_context","setCanvas","_change","setContext","context","toDataURL","Image","getCrossOrigin","setCrossOrigin","getSmoothing","setSmoothing","smoothing","getSubCanvas","getSubRaster","getAverageColor","PathItem","_sampleContext","clearRect","sampleSize","pixels","getImageData","channels","total","alpha","Color","getPixel","setPixel","components","_convert","_alpha","imageData","createImageData","putImageData","setImageData","disabled","DomElement","setPrefixed","setDefinition","SymbolDefinition","getDefinition","getSymbol","setSymbol","dontCenter","setItem","_dontCenter","place","values","segments","handles","ends","Segment","arg5","handleIn","handleOut","SegmentPoint","_point","hasHandles","_handleIn","_handleOut","_path","curve","_curves","_closed","getHandleIn","setHandleIn","getHandleOut","setHandleOut","isSmooth","clearHandles","oldSelection","getPath","getCurve","_segments","getCurves","getLocation","CurveLocation","_segment1","getNext","smooth","_first","_last","factor","getPrevious","p0","p1","p2","k","d1_a","d1_2a","d2_a","d2_2a","N","isLast","reversed","removeSegment","segment","interpolate","handleIn1","handleIn2","handleOut2","handleOut1","change","Curve","arg6","arg7","seg1","seg2","handle1","handle2","segment1","segment2","_segment2","getPoint1","getHandle1","getHandle2","getPoint2","_length","classify","setPoint1","setPoint2","setHandle1","setHandle2","getSegment1","getSegment2","getPoints","getLine","getPart","getPartLength","divideAt","location","divideAtTime","getTimeAt","_setHandles","subdivide","setHandles","splitAt","splitAtTime","getLocationAtTime","isTime","straight","h1","h2","y0","x3","y3","x4","y4","x5","y5","x6","y6","x7","y7","x8","y8","x9","y9","getMonoCurves","io","o0","o1","o2","o3","isStraight","v0","v3","getTimeOf","p3","getNearestTime","minDist","minT","refine","dist","step","flip","isFlatEnough","flatness","ux","uy","_addBounds","minPad","maxPad","s1","s2","isLinear","third","hasLength","isHorizontal","getTangentAtTime","isVertical","getLocationAt","_isTime","getParameterAt","getTimesWithTangent","tangent","getOffsetAtTime","getLocationOf","getOffsetOf","loc","getOffset","getParameterOf","getNearestLocation","getNearestPoint","methods","_evaluateMethods","getLengthIntegrand","ax","bx","ay","by","getIterations","normalized","len","d3","serpentine","t1","t2","hasRoots","t1Ok","t2Ok","f1","f2","ds","forward","rangeLength","diff","guess","getTangent","getWeightedTangent","getNormal","getWeightedNormal","getCurvature","getPeaks","addLocation","locations","overlap","excludeStart","excludeEnd","loc1","loc2","_intersection","clipConvexHull","hullTop","hullBottom","dMin","dMax","clipConvexHullPart","threshold","qx","qy","getCurveLineIntersections","getCurveIntersections","overlaps","getOverlaps","straight1","straight2","before","addCurveIntersections","recursion","calls","tMin","tMax","uMax","tMinClip","tMaxClip","q0x","q0y","q3x","q3y","dp0","dp1","dp2","dp3","hull","getConvexHull","dq0","dq1","dq2","dq3","dist1","dist2","distRatio","tMinNew","tMaxNew","uDiff","getSelfIntersection","info","getSquaredLineLength","straightBoth","l1","l2","pairs","matrix1","matrix2","_returnFirst","length1","length2","values1","values2","boundsCollisions","index1","curve1","collisions1","index2","curve2","den","times","t0","_overlap","_distance","_setCurve","_time","getPointAtTime","_next","_previous","_setPath","_version","_curve","_segment","_setSegment","getSegment","getTime","trySegment","_offset","_curveOffset","getParameter","getCurveOffset","getIntersection","getLastSegment","_ignoreOther","isTouching","inter","isCrossing","t1Inside","t2Inside","c4","c3","offsets","addOffsets","isInRange","getPointAt","v4","a3","a4","hasOverlap","merge","search","found","path1","path2","expanded","pathData","compound","first","isClockwise","setClockwise","clockwise","setPathData","previous","control","relative","getCoord","command","lower","move","cubicCurveTo","quadraticCurveTo","arcTo","winding","_getWinding","onPath","windingL","windingR","getCrossings","minLoc","isPath","itemsFrom","itemsTo","setClosed","paths1","paths2","matched","boundsOverlaps","pathBoundsOverlaps","closed","setSegments","_segmentSelection","_area","getSegments","fullySelected","last","_add","getFirstSegment","_countCurves","getFirstCurve","getLastCurve","isClosed","getPathData","_precision","curX","curY","prevX","prevY","inX","inY","outX","outY","addSegment","skipLine","segs","_adjustCurves","insertSegment","addSegments","insertSegments","removeSegments","_includeCurves","area","_selectSegments","newSelection","last1","last2","first2","first1","simplify","flatten","flattener","PathFlattener","PathFitter","fit","_default","loop","asymmetric","paddingLeft","paddingRight","knots","n_1","rf","hx","hy","seg3","topCenter","seg4","isArc","pt1","pt2","shape","pos2","end2","pos1","end1","start2","cap","numSegments","hitCurves","isCloseEnough","checkSegmentPoint","seg","anchor","checkSegmentPoints","addToArea","checkSegmentStroke","isJoin","_addBevelJoin","_addSquareCap","getOffsetsWithTangent","curveStart","curveTimes","drawSegments","drawSegment","dashLength","drawPart","drawHandles","pX","pY","miniSize","miniHalf","drawHandle","hX","hY","getCurrentSegment","moveBy","curveTo","through","extent","middle","large","rxSq","rySq","xSq","ySq","throughSide","centerSide","ext","inc","z","out","_in","lineBy","curveBy","parameter","cubicCurveBy","quadraticCurveBy","arcBy","prevCoords","processSegment","joinBounds","addPoint","addRound","addJoin","addCap","phi","isArea","normal1","getNormalAtTime","normal2","normal","joinPadding","joinRadius","SQRT2","paddingX","paddingY","xn","xx","yn","yx","ellipseSegments","createPath","createEllipse","bl","getBottomLeft","tl","tr","getTopRight","br","RoundRectangle","Oval","Arc","RegularPolygon","sides","three","Star","radius1","radius2","paths","getCurrentPath","check","operators","getPaths","preparePath","resolve","resolveCrossings","reorient","createResult","result","filterIntersection","traceBoolean","operation","trace","splitBoolean","_path1","_path2","operator","crossings","divideLocations","collectPaths","_overlapsOnly","curvesValues","curveCollisions","curveCollisionsMap","map","propagateWinding","_winding","tracePaths","reorientPaths","added","addPath","linkIntersections","clearCurveHandles","lookup","container","sorted","entry1","containerWinding","getInteriorPoint","entry2","clearLater","renormalizeLocs","prevCurve","prevTime","results","clearCurves","clearLookup","origTime","newCurve","getWinding","dontFlip","vPrev","vClose","curvesList","ia","pv","pa","po","paL","paR","pathWindingL","pathWindingR","onAnyPath","quality","handleCurve","a0","monoCurves","addWinding","windingPrev","a3Prev","totalLength","curveLength","operand","SQRT1_2","wind","pathWinding","otherPath","starts","isValid","_visited","isStart","visitPath","inter1","inter2","over1","over2","branch","visited","valid","finished","branches","getCrossingSegments","collectStarts","collect","nextInter","shift","hasOverlaps","hasCrossings","intersections","nonZero","intercepts","mv","mo0","mo3","maxRecursion","ignoreStraight","minSpan","addCurve","computeParts","halves","tMid","_get","fitCubic","tan1","tan2","uPrime","chordLengthParameterize","maxError","parametersInOrder","generateBezier","findMaxError","reparameterize","tanCenter","C","X","b0","b3","alpha1","alpha2","detC0C1","detC0X","detXC1","c0","segLength","eps","degree","maxDist","P","TextItem","content","_content","_lines","setContent","getContent","getCharacterStyle","setCharacterStyle","getParagraphStyle","setParagraphStyle","PointText","lines","leading","getLeading","font","getFontStyle","textAlign","getJustification","fillText","strokeText","numLines","justification","getTextWidth","colorCtx","gray","rgb","hsb","hsl","gradient","componentParsers","namedColors","transparent","hsbIndices","converters","g","achromatic","t3s","t3","properties","parser","_components","Gradient","_removeOwner","_addOwner","_properties","argType","converted","fromCSS","string","parseInt","trim","isHSL","component","turn","grad","willReadFrequently","parsers","stops","radial","getComponents","_canvasStyle","converter","convert","getAlpha","setAlpha","hasAlpha","col","isGradient","toCSS","hex","canvasGradient","_stops","origin","destination","highlight","inverse","_radial","createRadialGradient","createLinearGradient","addColorStop","_color","_types","_setOwner","components1","components2","setStops","setRadial","_owners","getStops","GradientStop","getRadial","stops1","stops2","rampPoint","setColor","setOffset","getRampPoint","setRampPoint","getColor","itemDefaults","fillRule","strokeScaling","shadowOffset","selectedColor","groupDefaults","fontFamily","fontWeight","textDefaults","_values","isColor","isPoint","applyToChildren","old","_dontMerge","childValue","Font","WindingRule","isStyle","style1","style2","secondary","defaults2","value1","value2","getFontSize","getFontWeight","getFontFamily","getFont","setFont","getPixelSize","handlePrefix","prefixes","suffix","prefix","getStyles","doc","nodeType","ownerDocument","defaultView","getComputedStyle","viewport","body","html","documentElement","getBoundingClientRect","clientLeft","clientTop","pageXOffset","scrollLeft","pageYOffset","scrollTop","getViewportBounds","innerWidth","clientWidth","innerHeight","clientHeight","isInvisible","isInView","getPrefixed","passive","addEventListener","removeEventListener","targetTouches","changedTouches","pageX","clientX","pageY","clientY","getTarget","srcElement","getRelatedTarget","relatedTarget","toElement","requestAnimationFrame","timer","nativeRequest","requested","callbacks","handleCallbacks","functions","callback","setInterval","getCanvasSize","setAttribute","_viewEvents","none","userDrag","userSelect","touchCallout","contentZooming","tapHighlightColor","_windowEvents","resize","setViewSize","Stats","_stats","stats","domElement","appendChild","_element","_pixelRatio","devicePixelRatio","_setElementSize","_viewSize","_views","_viewsById","_focused","_frameItems","_frameItemCount","_itemEvents","native","virtual","node","_animate","play","pause","_count","getAutoUpdate","setAutoUpdate","autoUpdate","update","now","Date","animate","_handleFrameItems","getPixelRatio","getViewSize","isVisible","parentNode","temp","createElement","removeChild","getZoom","setZoom","zoom","scrollBy","projectToView","viewToProject","getEventPoint","CanvasView","prevFocus","tempFocus","mousedown","mousemove","mouseup","dragging","mouseDown","pointerEnabled","msPointerEnabled","viewEvents","docEvents","mouseout","nodeName","handleMouseMove","scroll","_handleMouseEvent","downPoint","lastPoint","downItem","overItem","dragItem","clickItem","clickTime","dblClick","called","prevented","fallbacks","doubleclick","wasInView","itemEventsMap","click","mouseenter","mouseleave","itemEvents","hitItems","nativeMove","tool","inView","hitItem","mouse","substr","emitMouseEvent","drag","emitMouseEvents","down","up","cancelable","preventDefault","_handleKeyEvent","character","keyEvent","KeyEvent","sign","_resetState","prevPoint","stopItem","mouseEvent","stopped","MouseEvent","fallback","HTMLCanvasElement","deviceRatio","backingStoreRatio","firefox","prevFont","measureText","stopPropagation","getTimeStamp","timeStamp","getModifiers","Key","modifiers","metaFixMap","downKey","keyLookup","charLookup","keyMap","charMap","alt","meta","capsLock","space","option","mac","getKey","keyIdentifier","String","fromCharCode","keyCode","keydown","altKey","metaKey","ctrlKey","keypress","charCode","keyup","isDown","ToolEvent","_choosePoint","toolPoint","getLastPoint","_lastPoint","setLastPoint","getDownPoint","_downPoint","setDownPoint","getMiddlePoint","_middlePoint","setMiddlePoint","middlePoint","getDelta","_delta","setDelta","getCount","setCount","Tool","_moveCount","_downCount","getMinDistance","_minDistance","setMinDistance","minDistance","_maxDistance","getMaxDistance","setMaxDistance","maxDistance","getFixedDistance","setFixedDistance","distance","easings","linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","isFunction","_then","_startTime","state","_keys","_parsedKeys","_parseKeys","_from","_getState","_to","then","progress","getValue","__add","__subtract","__multiply","_setProperty","onUpdate","startTime","_getProperty","resolved","_resolveValue","_calculate","parsed","calculateBinary","Http","request","xhr","XMLHttpRequest","open","method","url","async","mimeType","overrideMimeType","onload","status","responseText","onerror","message","send","canvases","sr","sg","sb","sa","bg","bb","ba","dr","dg","db","getLum","setLum","mn","lmn","ln","mxl","getSat","setSat","md","modes","screen","overlay","darken","lighten","difference","exclusion","hue","saturation","luminosity","average","negation","mode","srcContext","dstContext","srcCanvas","dstData","SvgElement","svg","xmlns","xlink","attributeNamespace","href","attributes","namespace","setAttributeNS","tag","createElementNS","getAttributeNS","SvgStyles","true","false","property","attribute","toSVG","fromSVG","exportFilter","getTransform","coordinates","attrs","trans","exportGroup","childNode","exportSVG","exportShape","exporters","embedImages","matchShapes","definitionItem","viewBox","overflow","textContent","svgs","__id","typeId","exportDefinitions","defs","insertBefore","firstChild","XMLSerializer","serializeToString","exporter","onExport","reduceAttributes","exportGradient","gradientNode","getGradient","getOrigin","getDestination","getHighlight","fy","gradientUnits","stopColor","visibility","setOptions","rootSize","allowNull","allowPercent","defaultValue","defaultX","defaultY","convertValue","importGroup","nodes","childNodes","isClip","isDefs","currentStyle","applyAttributes","querySelectorAll","importNode","importPoly","importGradient","scaleToBounds","_scaleToBounds","importers","clippath","polygon","polyline","lineargradient","radialgradient","use","circle","text","switch","applyTransform","transforms","applyOpacity","gradientTransform","setVisible","display","percent","styles","group","tagName","isElement","nextSibling","importer","onImport","expandShapes","importSVG","DOMParser","parseFromString","File","reader","FileReader","readAsText","mod","acorn","inpt","inputLen","input","initTokenState","parseTopLevel","program","lastStart","lastEnd","tokPos","lastEndLoc","line_loc_t","inFunction","strict","labels","readToken","startNode","tokType","_eof","stmt","parseStatement","isUseStrict","setStrict","finishNode","sourceFile","tokStart","tokEnd","tokStartLoc","tokEndLoc","tokVal","tokRegexpAllowed","tokCurLine","tokLineStart","containsEsc","defaultOptions","ecmaVersion","strictSemicolons","allowTrailingCommas","forbidReserved","allowReturnOutsideFunction","onComment","ranges","directSourceFile","opt","getLineInfo","cur","lineBreak","lastIndex","column","raise","SyntaxError","raisedAt","tokenize","getToken","forceRegexp","startLoc","endLoc","jumpTo","reAllowed","skipSpace","empty","_num","_regexp","_string","_break","keyword","_case","beforeExpr","_catch","_continue","_debugger","_do","isLoop","_else","_finally","_for","_function","_if","_return","_switch","_throw","_try","_var","_while","_with","_new","_this","_null","atomValue","_true","_false","binop","keywordTypes","_bracketL","_bracketR","_braceL","_braceR","_parenL","_parenR","_comma","_semi","_colon","_dot","_question","_slash","_eq","isAssign","_assign","_incDec","postfix","isUpdate","_prefix","_logicalOR","_logicalAND","_bitwiseOR","_bitwiseXOR","_bitwiseAND","_equality","_relational","_bitShift","_plusMin","_multiplyModulo","kw","tokTypes","bracketL","bracketR","braceL","braceR","parenL","parenR","comma","semi","colon","question","slash","eq","eof","num","regexp","makePredicate","words","cats","compareTo","arr","cat","Function","isReservedWord3","isReservedWord5","isStrictReservedWord","isStrictBadIdWord","isKeyword","nonASCIIwhitespace","nonASCIIidentifierStartChars","nonASCIIidentifierStart","RegExp","nonASCIIidentifier","newline","isIdentifierStart","isIdentifierChar","finishToken","skipLineComment","ch","charCodeAt","skipBlockComment","readRegexp","readWord","tok","getTokenFromCode","readNumber","readInt","readString","quote","octal","readHexChar","finishOp","escaped","inClass","charAt","mods","readWord1","radix","startsWithDot","isFloat","word","esc","escStr","strct","lastIndexOf","node_t","node_loc_t","range","startNodeFrom","expression","eat","canInsertSemicolon","semicolon","unexpected","expect","checkLVal","expr","loopLabel","kind","switchLabel","sawDefault","starttype","isBreak","label","parseIdent","lab","parseParenExpression","parseFor","parseVar","declarations","parseForIn","parseExpression","parseFunction","consequent","alternate","argument","discriminant","cases","isCase","block","parseBlock","clause","guard","guardedHandlers","finalizer","maybeName","allowStrict","oldStrict","noIn","decl","noComma","parseMaybeAssign","expressions","parseMaybeConditional","parseExprOp","minPrec","prec","parseMaybeUnary","parseSubscripts","parseExprAtom","noCalls","computed","callee","parseExprList","raw","tokStartLoc1","tokStart1","elements","parseObj","sawGetSet","parsePropertyName","isGetSet","conflict","isStatement","params","oldInFunc","oldLabels","close","allowTrailingComma","allowEmpty","elts","liberal","binaryOperators","unaryOperators","__self","__$__","$__","compile","insertions","insertion","getCode","replaceCode","sourceMaps","paperFeatures","offsetCode","lineBreaks","getElementsByTagName","innerHTML","mappings","encodeVLQ","base64","safari","file","names","sourceRoot","sources","sourcesContent","operatorOverloading","moduleExports","walkAST","handleOverloading","between","parentType","exp","handleExports","declaration","specifiers","dec","specifier","preserveParens","sourceType","btoa","unescape","encodeURIComponent","toolHandlers","expose","compiled","script","head","createTextNode","__paperscript__","onResize","setOnResize","setOnFrame","loadScript","canvasId","scopeAttribute","baseURI","loadAll","readyState","calculateUnary","Symbol","PlacedSymbol","amd","$ebef8a20963d596b$export$56b48cc5d7560ffb","$ebef8a20963d596b$export$332f4d7bee38db93","$ebef8a20963d596b$export$f435f793048e7a0f","$ebef8a20963d596b$export$d53f8326294b31d8","$ebef8a20963d596b$export$b54c7ea7aabba5c8","$ebef8a20963d596b$export$a1aa2dd4ad0d3f6","$ebef8a20963d596b$export$866e20207bbc41f2","$ebef8a20963d596b$export$2c19a3e3b4008fff","$ebef8a20963d596b$export$268622f0f1cbc82b","$ebef8a20963d596b$export$13807d9ee5a34a42","$ebef8a20963d596b$export$7387db7caf96fcdb","$ebef8a20963d596b$export$7af82191547c5ff7","$ebef8a20963d596b$export$ba43bf67f3d48107","$ebef8a20963d596b$export$7acfa6ed01010e37","$ebef8a20963d596b$export$68e7b4c4d99215d9","$ebef8a20963d596b$export$2b5f701edfbd6f00","$ebef8a20963d596b$export$85c928794f8d04d4","$ebef8a20963d596b$export$50792b0e93539fde","$ebef8a20963d596b$export$83d89fbfd8236492","$ebef8a20963d596b$export$98e6a39c04603d36","$ebef8a20963d596b$export$61f24eb03dd7ce92","$ebef8a20963d596b$export$5f8c09e3ae6f64e1","$ebef8a20963d596b$var$astralIdentifierCodes","$ebef8a20963d596b$var$astralIdentifierStartCodes","$ebef8a20963d596b$var$nonASCIIidentifierStartChars","$ebef8a20963d596b$var$reservedWords","strictBind","$ebef8a20963d596b$var$ecma5AndLessKeywords","$ebef8a20963d596b$var$keywords$1","$ebef8a20963d596b$var$keywordRelationalOperator","$ebef8a20963d596b$var$nonASCIIidentifierStart","$ebef8a20963d596b$var$nonASCIIidentifier","$ebef8a20963d596b$var$isInAstralSet","astral","conf","startsExpr","updateContext","$ebef8a20963d596b$var$binop","$ebef8a20963d596b$var$beforeExpr","$ebef8a20963d596b$var$startsExpr","$ebef8a20963d596b$var$kw","privateId","questionDot","arrow","template","invalidTemplate","ellipsis","backQuote","dollarBraceL","incDec","logicalOR","logicalAND","bitwiseOR","bitwiseXOR","bitwiseAND","equality","relational","bitShift","plusMin","star","starstar","coalesce","_const","_super","_extends","_export","_import","_instanceof","_typeof","_void","_delete","$ebef8a20963d596b$var$nextLineBreak","$ebef8a20963d596b$var$skipWhiteSpace","$ebef8a20963d596b$var$ref","$ebef8a20963d596b$var$hasOwnProperty","$ebef8a20963d596b$var$toString","$ebef8a20963d596b$var$hasOwn","hasOwn","propName","$ebef8a20963d596b$var$isArray","$ebef8a20963d596b$var$regexpCache","$ebef8a20963d596b$var$wordsRegexp","$ebef8a20963d596b$var$codePointToString","$ebef8a20963d596b$var$loneSurrogate","nextBreak","onInsertedSemicolon","onTrailingComma","allowReserved","allowImportExportEverywhere","allowAwaitOutsideFunction","allowSuperOutsideMethod","allowHashBang","checkPrivateFields","onToken","$ebef8a20963d596b$var$warnedAboutEcmaVersion","$ebef8a20963d596b$var$functionFlags","generator","$ebef8a20963d596b$var$SCOPE_FUNCTION","startPos","$ebef8a20963d596b$var$getOptions","console","warn","tokens","token","comment","keywords","reserved","reservedWords","reservedStrict","reservedWordsStrict","reservedWordsStrictBind","lineStart","curLine","curPosition","lastTokEndLoc","lastTokStartLoc","lastTokStart","lastTokEnd","initialContext","exprAllowed","inModule","strictDirective","potentialArrowAt","potentialArrowInForAwait","yieldPos","awaitPos","awaitIdentPos","undefinedExports","scopeStack","enterScope","regexpState","privateNameStack","$ebef8a20963d596b$var$prototypeAccessors","inGenerator","inAsync","canAwait","allowSuper","allowDirectSuper","treatFunctionsAsVar","allowNewDotTarget","inClassStaticBlock","nextToken","currentVarScope","inClassFieldInit","currentThisScope","treatFunctionsAsVarInScope","currentScope","plugins","cls","parseExpressionAt","tokenizer","defineProperties","$ebef8a20963d596b$var$pp$9","$ebef8a20963d596b$var$literal","spaceAfter","isContextual","eatContextual","expectContextual","insertSemicolon","afterTrailingComma","notNext","$ebef8a20963d596b$var$DestructuringErrors","shorthandAssign","trailingComma","parenthesizedAssign","parenthesizedBind","doubleProto","checkPatternErrors","refDestructuringErrors","raiseRecoverable","parens","checkExpressionErrors","andThrow","checkYieldAwaitInDefaultParams","isSimpleAssignTarget","$ebef8a20963d596b$var$pp$8","adaptDirectivePrologue","$ebef8a20963d596b$var$loopLabel","$ebef8a20963d596b$var$switchLabel","isLet","skip","nextCh","ident","isAsyncFunction","after","topLevel","parseBreakContinueStatement","parseDebuggerStatement","parseDoStatement","parseForStatement","parseFunctionStatement","parseClass","parseIfStatement","parseReturnStatement","parseSwitchStatement","parseThrowStatement","parseTryStatement","parseVarStatement","parseWhileStatement","parseWithStatement","parseEmptyStatement","parseExpressionStatement","parseImport","parseExport","parseLabeledStatement","awaitAt","init$1","await","startsWithLet","isForOf","initPos","parseExprSubscripts","toAssignable","checkLValPattern","isAsync","declarationPosition","$ebef8a20963d596b$var$FUNC_STATEMENT","$ebef8a20963d596b$var$FUNC_HANGING_STATEMENT","exitScope","$ebef8a20963d596b$var$empty$1","parseCatchClauseParam","parseBindingAtom","simple","allowMissingInitializer","i$1","label$1","statementStart","createNewLexicalScope","exitStrict","isForIn","isFor","parseVarId","$ebef8a20963d596b$var$checkKeyName","statement","allowExpressionBody","forInit","initFunction","checkLValSimple","oldYieldPos","oldAwaitPos","oldAwaitIdentPos","parseFunctionParams","parseFunctionBody","parseBindingList","parseClassId","parseClassSuper","privateNameMap","enterClassBody","classBody","hadConstructor","parseClassElement","superClass","$ebef8a20963d596b$var$isPrivateNameConflicted","curr","static","exitClassBody","constructorAllowsSuper","keyName","isGenerator","isStatic","parseClassStaticBlock","isClassElementNameStart","lastValue","startNodeAt","parseClassElementName","isConstructor","parseClassMethod","parseClassField","parsePrivateIdent","allowsDirectSuper","parseMethod","$ebef8a20963d596b$var$SCOPE_CLASS_STATIC_BLOCK","declared","used","parseExportAllDeclaration","exported","parseModuleExportName","checkExport","parseExportDefaultDeclaration","shouldParseExportStatement","parseExportDeclaration","checkVariableExport","parseExportSpecifiers","spec","checkUnreserved","local","checkLocalExport","fNode","cNode","checkPatternExport","pat","list$1","elt","decls","parseExportSpecifier","parseImportSpecifiers","parseImportSpecifier","imported","parseImportDefaultSpecifier","parseImportNamespaceSpecifier","stringLiteral","parseLiteral","statements","isDirectiveCandidate","directive","$ebef8a20963d596b$var$pp$7","isBinding","toAssignableList","exprList","parseSpread","parseRestBinding","allowModifiers","rest","parseBindingListItem","parseAssignableListItem","elem","parseMaybeDefault","bindingType","checkClashes","isBind","declareName","checkLValInnerPattern","isExpr","preserveSpace","override","b_stat","b_expr","b_tmpl","p_stat","p_expr","q_tmpl","tryReadTemplateToken","f_stat","f_expr","f_expr_gen","f_gen","$ebef8a20963d596b$var$pp$6","curContext","braceIsBlock","prevType","inGeneratorContext","overrideContext","tokenCtx","statementParens","allowed","$ebef8a20963d596b$var$pp$5","checkPropClash","propHash","shorthand","afterLeftParse","parseYield","ownDestructuringErrors","oldParenAssign","oldTrailingComma","oldDoubleProto","parseExprOps","leftStartPos","leftStartLoc","logical","buildBinary","sawUnary","parseAwait","$ebef8a20963d596b$var$isLocalVariableAccess","$ebef8a20963d596b$var$isPrivateFieldAccess","node$1","maybeAsyncArrow","optionalChained","parseSubscript","optional","chainNode","shouldParseAsyncArrow","parseSubscriptAsyncArrow","parseArrowExpression","optionalSupported","node$2","quasi","parseTemplate","isTagged","forNew","canBeArrow","regex","pattern","parseParenAndDistinguishExpression","parseNew","parseExprImport","parseExprAtomDefault","parseDynamicImport","parseImportMeta","errorPos","bigint","shouldParseArrow","spreadStart","innerStartPos","innerStartLoc","lastIsComma","parseParenItem","innerEndPos","innerEndLoc","parseParenArrowList","finishNodeAt","par","$ebef8a20963d596b$var$empty","parseTemplateElement","cooked","tail","curElt","quasis","isAsyncProp","isPattern","parseProperty","parsePropertyValue","parseGetterSetter","paramCount","copyNode","isArrowFunction","isMethod","isExpression","useStrict","checkParams","nonSimple","isSimpleParamList","allowDuplicates","nameHash","re","parseIdentNode","delegate","$ebef8a20963d596b$var$pp$4","$ebef8a20963d596b$var$pp$3","$ebef8a20963d596b$var$Scope","var","lexical","redeclared","scope$1","scope$2","scope$3","$ebef8a20963d596b$var$SCOPE_TOP","$ebef8a20963d596b$var$pp$2","$ebef8a20963d596b$var$finishNodeAt","newNode","$ebef8a20963d596b$var$ecma9BinaryProperties","$ebef8a20963d596b$var$ecma10BinaryProperties","$ebef8a20963d596b$var$ecma12BinaryProperties","$ebef8a20963d596b$var$ecma11BinaryProperties","$ebef8a20963d596b$var$unicodeBinaryProperties","$ebef8a20963d596b$var$unicodeBinaryPropertiesOfStrings","$ebef8a20963d596b$var$unicodeGeneralCategoryValues","$ebef8a20963d596b$var$ecma9ScriptValues","$ebef8a20963d596b$var$ecma10ScriptValues","$ebef8a20963d596b$var$ecma11ScriptValues","$ebef8a20963d596b$var$ecma12ScriptValues","$ebef8a20963d596b$var$ecma13ScriptValues","$ebef8a20963d596b$var$unicodeScriptValues","$ebef8a20963d596b$var$data","$ebef8a20963d596b$var$i","$ebef8a20963d596b$var$list","$ebef8a20963d596b$var$buildUnicodeData","binary","binaryOfStrings","nonBinary","General_Category","Script","Script_Extensions","gc","sc","scx","$ebef8a20963d596b$var$pp$1","$ebef8a20963d596b$var$BranchID","separatedFrom","sibling","$ebef8a20963d596b$var$RegExpValidationState","validFlags","unicodeProperties","switchU","switchV","switchN","lastIntValue","lastStringValue","lastAssertionIsQuantifiable","numCapturingParens","maxBackReference","groupNames","backReferenceNames","branchID","$ebef8a20963d596b$var$isSyntaxCharacter","$ebef8a20963d596b$var$isControlLetter","$ebef8a20963d596b$var$isUnicodePropertyNameCharacter","$ebef8a20963d596b$var$isDecimalDigit","$ebef8a20963d596b$var$isHexDigit","$ebef8a20963d596b$var$hexToInt","$ebef8a20963d596b$var$isOctalDigit","unicodeSets","unicode","at","forceU","nextIndex","lookahead","advance","eatChars","chs","validateRegExpFlags","validateRegExpPattern","regexp_pattern","$ebef8a20963d596b$var$hasProp","_","regexp_disjunction","trackDisjunction","regexp_alternative","regexp_eatQuantifier","regexp_eatTerm","regexp_eatAssertion","regexp_eatAtom","regexp_eatExtendedAtom","lookbehind","noError","regexp_eatQuantifierPrefix","regexp_eatBracedQuantifier","regexp_eatDecimalDigits","regexp_eatPatternCharacters","regexp_eatReverseSolidusAtomEscape","regexp_eatCharacterClass","regexp_eatUncapturingGroup","regexp_eatCapturingGroup","regexp_eatAtomEscape","regexp_groupSpecifier","regexp_eatInvalidBracedQuantifier","regexp_eatExtendedPatternCharacter","regexp_eatSyntaxCharacter","regexp_eatGroupName","known","altID","regexp_eatRegExpIdentifierName","regexp_eatRegExpIdentifierStart","regexp_eatRegExpIdentifierPart","regexp_eatRegExpUnicodeEscapeSequence","regexp_eatBackReference","regexp_eatCharacterClassEscape","regexp_eatCharacterEscape","regexp_eatKGroupName","regexp_eatDecimalEscape","regexp_eatControlEscape","regexp_eatCControlLetter","regexp_eatZero","regexp_eatHexEscapeSequence","regexp_eatLegacyOctalEscapeSequence","regexp_eatIdentityEscape","regexp_eatControlLetter","regexp_eatFixedHexDigits","lead","leadSurrogateEnd","trail","regexp_eatHexDigits","regexp_eatUnicodePropertyValueExpression","regexp_eatUnicodePropertyName","regexp_eatUnicodePropertyValue","regexp_validateUnicodePropertyNameAndValue","regexp_eatLoneUnicodePropertyNameOrValue","nameOrValue","regexp_validateUnicodePropertyNameOrValue","regexp_classContents","regexp_classSetExpression","regexp_nonEmptyClassRanges","regexp_eatClassAtom","regexp_eatClassEscape","ch$1","regexp_eatClassControlLetter","subResult","regexp_eatClassSetRange","regexp_eatClassSetOperand","regexp_eatClassSetCharacter","regexp_eatClassStringDisjunction","regexp_eatNestedClass","result$1","regexp_classStringDisjunctionContents","regexp_classString","regexp_eatClassSetReservedPunctuator","regexp_eatOctalDigit","n1","n2","$ebef8a20963d596b$var$pp","$ebef8a20963d596b$var$stringToBigInt","BigInt","ignoreEscapeSequenceInKeyword","iterator","this$1$1","done","fullCharCodeAtPos","startSkip","readToken_dot","next2","readToken_slash","readToken_mult_modulo_exp","tokentype","readToken_pipe_amp","readToken_caret","readToken_plus_min","readToken_lt_gt","readToken_eq_excl","readToken_question","next2$1","readToken_numberSign","readRadixNumber","flagsStart","maybeLegacyOctalNumericLiteral","allowSeparators","isLegacyOctalNumericLiteral","lastCode","val$1","readCodePoint","codePos","invalidStringToken","chunkStart","readEscapedChar","$ebef8a20963d596b$var$INVALID_TEMPLATE_ESCAPE_ERROR","inTemplateElement","readTmplToken","readInvalidTemplateToken","inTemplate","octalStr","escStart","Parser","Position","SourceLocation","Node","TokenType","TokContext","tokContexts","Token","isNewLine","lineBreakG","$c8d2247b1550fb46$export$2e2bcd8739ae039","layout","tiles","$c8d2247b1550fb46$var$layout","solution","$939de03a128aab09$var$container","$939de03a128aab09$var$dialog","$939de03a128aab09$var$help","showModal","scrollIntoView","$f9704a9315db2cf5$export$2e2bcd8739ae039","selfOptions","pipes","pipe","pipeArg","processor","lastPipe","nextPipe","nextAfterChildren","hasResult","$db70c9b12a6f8bc7$export$2e2bcd8739ae039","filters","debug","filterName","exiting","resultCheck","msg","shouldHaveResult","should","noResult","$3edc4ef7a3d3a79b$export$2e2bcd8739ae039","setResult","exit","childName","root","$d440259d33c9db26$export$2e2bcd8739ae039","$d440259d33c9db26$var$cloneRegExp","regexMatch","cloned","$48416cc6139cbfbf$export$2e2bcd8739ae039","cloneDiffValues","$e645679292d8fd1a$export$2e2bcd8739ae039","$844ff08f78aab5df$export$2e2bcd8739ae039","$71e2687afe4daedd$export$32e2de1ca8818233","leftType","rightType","leftIsArray","rightIsArray","$71e2687afe4daedd$export$b17cd1eea2ef8348","nested","nonNestedDelta","regexArgs","$71e2687afe4daedd$export$9d101d90be8482a0","$7267f6eb1402e2a0$export$3b212405c262fd6e","_t","$7267f6eb1402e2a0$export$81d88d7d212bb18e","propertyFilter","$7267f6eb1402e2a0$export$b17cd1eea2ef8348","nestedDelta","objectDelta","$7267f6eb1402e2a0$export$575f4633982343e8","deltaWithChildren","$7267f6eb1402e2a0$export$9d101d90be8482a0","$7267f6eb1402e2a0$export$84a677efe7258d3b","$abe215c5cb589d56$var$defaultMatch","array1","array2","$abe215c5cb589d56$var$lengthMatrix","len1","len2","$abe215c5cb589d56$var$backtrack","subsequence","sequence","indices1","indices2","valueAtMatrixAbove","$abe215c5cb589d56$export$2e2bcd8739ae039","innerContext","$b7d0574ca28909b0$var$matchItems","objectHash","matchByPosition","hashCache1","hash1","hashCache2","hash2","$b7d0574ca28909b0$export$32e2de1ca8818233","matchContext","commonHead","commonTail","$b7d0574ca28909b0$var$arraysHaveMatchByRef","trimmed1","trimmed2","seq","removedItems","detectMove","arrays","includeValueOnMove","removedItemsLength","indexOnArray2","isMove","removeItemIndex1","$b7d0574ca28909b0$var$compare","numerically","numericallyBy","$b7d0574ca28909b0$export$b17cd1eea2ef8348","toRemove","toInsert","toModify","removedOrMovedIndex","numberIndex","indexDiff","removedValue","toInsertLength","toModifyLength","modification","$b7d0574ca28909b0$export$575f4633982343e8","$b7d0574ca28909b0$export$9d101d90be8482a0","newName","arrayMoveDelta","arrayDelta","$b7d0574ca28909b0$var$reverseArrayDeltaIndex","itemDelta","reverseIndex","deltaIndex","deltaItem","moveFromIndex","moveToIndex","$b7d0574ca28909b0$export$84a677efe7258d3b","$dcc7ee756dde640c$export$32e2de1ca8818233","$020c031f57b856e2$var$cachedDiffPatch","$020c031f57b856e2$var$getDiffMatchPatch","required","textDiff","diffMatchPatch","diff_match_patch_not_found","txt1","txt2","patch_toText","patch_make","patch","patch_apply","patch_fromText","textPatchFailed","$020c031f57b856e2$export$32e2de1ca8818233","minLength","$020c031f57b856e2$export$b17cd1eea2ef8348","textDiffDelta","$020c031f57b856e2$var$textDeltaReverse","lineTmp","header","headerRegex","$020c031f57b856e2$export$9d101d90be8482a0","$6a493659b38be18b$export$2e2bcd8739ae039","unpatch","$a39eeb69bf620de6$var$zero$1","buf","$a39eeb69bf620de6$var$extra_lbits","Uint8Array","$a39eeb69bf620de6$var$extra_dbits","$a39eeb69bf620de6$var$extra_blbits","$a39eeb69bf620de6$var$bl_order","$a39eeb69bf620de6$var$static_ltree","$a39eeb69bf620de6$var$static_dtree","$a39eeb69bf620de6$var$D_CODES$1","$a39eeb69bf620de6$var$_dist_code","$a39eeb69bf620de6$var$_length_code","$a39eeb69bf620de6$var$MAX_MATCH$1","$a39eeb69bf620de6$var$base_length","$a39eeb69bf620de6$var$base_dist","$a39eeb69bf620de6$var$StaticTreeDesc","static_tree","extra_bits","extra_base","elems","max_length","has_stree","$a39eeb69bf620de6$var$TreeDesc","dyn_tree","stat_desc","max_code","$a39eeb69bf620de6$var$d_code","$a39eeb69bf620de6$var$put_short","pending_buf","pending","$a39eeb69bf620de6$var$send_bits","bi_valid","$a39eeb69bf620de6$var$Buf_size","bi_buf","$a39eeb69bf620de6$var$send_code","tree","$a39eeb69bf620de6$var$bi_reverse","$a39eeb69bf620de6$var$bi_flush","$a39eeb69bf620de6$var$gen_bitlen","bits","xbits","stree","extra","bl_count","heap","heap_max","opt_len","static_len","$a39eeb69bf620de6$var$gen_codes","next_code","$a39eeb69bf620de6$var$MAX_BITS$1","$a39eeb69bf620de6$var$tr_static_init","$a39eeb69bf620de6$var$LENGTH_CODES$1","$a39eeb69bf620de6$var$L_CODES$1","$a39eeb69bf620de6$var$LITERALS$1","$a39eeb69bf620de6$var$init_block","dyn_ltree","dyn_dtree","bl_tree","$a39eeb69bf620de6$var$END_BLOCK","sym_next","$a39eeb69bf620de6$var$bi_windup","$a39eeb69bf620de6$var$smaller","depth","_n2","_m2","$a39eeb69bf620de6$var$pqdownheap","heap_len","$a39eeb69bf620de6$var$compress_block","ltree","dtree","lc","sym_buf","$a39eeb69bf620de6$var$build_tree","$a39eeb69bf620de6$var$scan_tree","curlen","prevlen","nextlen","max_count","min_count","$a39eeb69bf620de6$var$REP_3_6","$a39eeb69bf620de6$var$REPZ_3_10","$a39eeb69bf620de6$var$REPZ_11_138","$a39eeb69bf620de6$var$send_tree","$a39eeb69bf620de6$var$build_bl_tree","max_blindex","l_desc","d_desc","bl_desc","$a39eeb69bf620de6$var$BL_CODES$1","$a39eeb69bf620de6$var$send_all_trees","lcodes","dcodes","blcodes","rank","$a39eeb69bf620de6$var$detect_data_type","block_mask","$a39eeb69bf620de6$var$static_init_done","$a39eeb69bf620de6$var$_tr_stored_block$1","stored_len","$a39eeb69bf620de6$var$STORED_BLOCK","subarray","$a39eeb69bf620de6$var$trees","_tr_init","_tr_stored_block","_tr_flush_block","opt_lenb","static_lenb","level","strm","data_type","strategy","$a39eeb69bf620de6$var$STATIC_TREES","$a39eeb69bf620de6$var$DYN_TREES","_tr_tally","sym_end","_tr_align","$a39eeb69bf620de6$var$adler32_1","adler","$a39eeb69bf620de6$var$crcTable","Uint32Array","$a39eeb69bf620de6$var$makeTable","table","$a39eeb69bf620de6$var$crc32_1","crc","$a39eeb69bf620de6$var$messages","$a39eeb69bf620de6$var$constants$2","Z_NO_FLUSH","Z_PARTIAL_FLUSH","Z_SYNC_FLUSH","Z_FULL_FLUSH","Z_FINISH","Z_BLOCK","Z_TREES","Z_OK","Z_STREAM_END","Z_NEED_DICT","Z_ERRNO","Z_STREAM_ERROR","Z_DATA_ERROR","Z_MEM_ERROR","Z_BUF_ERROR","Z_NO_COMPRESSION","Z_BEST_SPEED","Z_BEST_COMPRESSION","Z_DEFAULT_COMPRESSION","Z_FILTERED","Z_HUFFMAN_ONLY","Z_RLE","Z_FIXED","Z_DEFAULT_STRATEGY","Z_BINARY","Z_TEXT","Z_UNKNOWN","Z_DEFLATED","$a39eeb69bf620de6$var$_tr_init","$a39eeb69bf620de6$var$_tr_stored_block","$a39eeb69bf620de6$var$_tr_flush_block","$a39eeb69bf620de6$var$_tr_tally","$a39eeb69bf620de6$var$_tr_align","$a39eeb69bf620de6$var$Z_NO_FLUSH$2","$a39eeb69bf620de6$var$Z_PARTIAL_FLUSH","$a39eeb69bf620de6$var$Z_FULL_FLUSH$1","$a39eeb69bf620de6$var$Z_FINISH$3","$a39eeb69bf620de6$var$Z_BLOCK$1","$a39eeb69bf620de6$var$Z_OK$3","$a39eeb69bf620de6$var$Z_STREAM_END$3","$a39eeb69bf620de6$var$Z_STREAM_ERROR$2","$a39eeb69bf620de6$var$Z_DATA_ERROR$2","$a39eeb69bf620de6$var$Z_BUF_ERROR$1","$a39eeb69bf620de6$var$Z_DEFAULT_COMPRESSION$1","$a39eeb69bf620de6$var$Z_FILTERED","$a39eeb69bf620de6$var$Z_HUFFMAN_ONLY","$a39eeb69bf620de6$var$Z_RLE","$a39eeb69bf620de6$var$Z_FIXED","$a39eeb69bf620de6$var$Z_DEFAULT_STRATEGY$1","$a39eeb69bf620de6$var$Z_UNKNOWN","$a39eeb69bf620de6$var$Z_DEFLATED$2","$a39eeb69bf620de6$var$err","errorCode","$a39eeb69bf620de6$var$rank","$a39eeb69bf620de6$var$zero","$a39eeb69bf620de6$var$slide_hash","wsize","w_size","hash_size","$a39eeb69bf620de6$var$HASH","hash_shift","hash_mask","$a39eeb69bf620de6$var$flush_pending","avail_out","output","pending_out","next_out","total_out","$a39eeb69bf620de6$var$flush_block_only","block_start","strstart","$a39eeb69bf620de6$var$put_byte","$a39eeb69bf620de6$var$putShortMSB","$a39eeb69bf620de6$var$read_buf","avail_in","next_in","wrap","total_in","$a39eeb69bf620de6$var$longest_match","cur_match","chain_length","max_chain_length","scan","best_len","prev_length","nice_match","limit","$a39eeb69bf620de6$var$MAX_MATCH","_win","wmask","w_mask","strend","scan_end1","scan_end","good_match","match_start","$a39eeb69bf620de6$var$fill_window","more","_w_size","window_size","ins_h","$a39eeb69bf620de6$var$deflate_stored","flush","min_block","pending_buf_size","have","high_water","$a39eeb69bf620de6$var$deflate_fast","hash_head","bflush","match_length","max_lazy_match","$a39eeb69bf620de6$var$MIN_MATCH","$a39eeb69bf620de6$var$deflate_slow","max_insert","prev_match","match_available","$a39eeb69bf620de6$var$deflate_rle","$a39eeb69bf620de6$var$deflate_huff","$a39eeb69bf620de6$var$Config","good_length","max_lazy","nice_length","max_chain","$a39eeb69bf620de6$var$configuration_table","$a39eeb69bf620de6$var$lm_init","$a39eeb69bf620de6$var$DeflateState","gzhead","gzindex","last_flush","w_bits","hash_bits","Uint16Array","$a39eeb69bf620de6$var$HEAP_SIZE","$a39eeb69bf620de6$var$MAX_BITS","lit_bufsize","$a39eeb69bf620de6$var$deflateStateCheck","$a39eeb69bf620de6$var$deflateResetKeep","$a39eeb69bf620de6$var$deflateReset","ret","$a39eeb69bf620de6$var$deflate_1$2","deflateInit2","windowBits","memLevel","deflateSetHeader","deflate","old_flush","level_flags","hcrc","beg","gzhead_extra","bstate","deflateEnd","deflateSetDictionary","dictLength","tmpDict","avail","$a39eeb69bf620de6$var$_has","$a39eeb69bf620de6$var$common","TypeError","flattenChunks","chunks","chunk","$a39eeb69bf620de6$var$STR_APPLY_UIA_OK","__","$a39eeb69bf620de6$var$_utf8len","$a39eeb69bf620de6$var$buf2binstring","$a39eeb69bf620de6$var$strings","string2buf","TextEncoder","encode","m_pos","str_len","buf_len","buf2string","TextDecoder","decode","utf16buf","c_len","utf8border","$a39eeb69bf620de6$var$zstream","$a39eeb69bf620de6$var$toString$1","$a39eeb69bf620de6$var$Z_NO_FLUSH$1","$a39eeb69bf620de6$var$Z_SYNC_FLUSH","$a39eeb69bf620de6$var$Z_FULL_FLUSH","$a39eeb69bf620de6$var$Z_FINISH$2","$a39eeb69bf620de6$var$Z_OK$2","$a39eeb69bf620de6$var$Z_STREAM_END$2","$a39eeb69bf620de6$var$Z_DEFAULT_COMPRESSION","$a39eeb69bf620de6$var$Z_DEFAULT_STRATEGY","$a39eeb69bf620de6$var$Z_DEFLATED$1","$a39eeb69bf620de6$var$Deflate$1","chunkSize","gzip","ended","dict","_dict_set","$a39eeb69bf620de6$var$deflate$1","deflator","flush_mode","_flush_mode","onData","onEnd","$a39eeb69bf620de6$var$inffast","_out","dmax","whave","wnext","s_window","hold","lcode","dcode","lmask","dmask","here","from_source","lencode","distcode","lenbits","distbits","sane","$a39eeb69bf620de6$var$lbase","$a39eeb69bf620de6$var$lext","$a39eeb69bf620de6$var$dbase","$a39eeb69bf620de6$var$dext","$a39eeb69bf620de6$var$inftrees","lens","lens_index","codes","table_index","work","incr","low","mask","here_bits","here_op","here_val","sym","drop","huff","$a39eeb69bf620de6$var$MAXBITS","offs","$a39eeb69bf620de6$var$Z_FINISH$1","$a39eeb69bf620de6$var$Z_BLOCK","$a39eeb69bf620de6$var$Z_TREES","$a39eeb69bf620de6$var$Z_OK$1","$a39eeb69bf620de6$var$Z_STREAM_END$1","$a39eeb69bf620de6$var$Z_NEED_DICT$1","$a39eeb69bf620de6$var$Z_STREAM_ERROR$1","$a39eeb69bf620de6$var$Z_DATA_ERROR$1","$a39eeb69bf620de6$var$Z_MEM_ERROR$1","$a39eeb69bf620de6$var$Z_BUF_ERROR","$a39eeb69bf620de6$var$Z_DEFLATED","$a39eeb69bf620de6$var$zswap32","$a39eeb69bf620de6$var$InflateState","havedict","wbits","ncode","nlen","ndist","lendyn","distdyn","back","was","$a39eeb69bf620de6$var$inflateStateCheck","$a39eeb69bf620de6$var$inflateResetKeep","Int32Array","$a39eeb69bf620de6$var$inflateReset","$a39eeb69bf620de6$var$inflateReset2","$a39eeb69bf620de6$var$virgin","$a39eeb69bf620de6$var$fixedtables","$a39eeb69bf620de6$var$updatewindow","$a39eeb69bf620de6$var$inflate_1$2","inflateReset","inflateInit2","inflate","put","last_bits","last_op","last_val","hbuf","order","inf_leave","xflags","extra_len","inflateEnd","inflateGetHeader","inflateSetDictionary","dictid","$a39eeb69bf620de6$var$gzheader","$a39eeb69bf620de6$var$toString","$a39eeb69bf620de6$var$Z_NO_FLUSH","$a39eeb69bf620de6$var$Z_FINISH","$a39eeb69bf620de6$var$Z_OK","$a39eeb69bf620de6$var$Z_STREAM_END","$a39eeb69bf620de6$var$Z_NEED_DICT","$a39eeb69bf620de6$var$Z_STREAM_ERROR","$a39eeb69bf620de6$var$Z_DATA_ERROR","$a39eeb69bf620de6$var$Z_MEM_ERROR","$a39eeb69bf620de6$var$Inflate$1","$a39eeb69bf620de6$var$inflate$1","inflator","last_avail_out","next_out_utf8","utf8str","Deflate","$a39eeb69bf620de6$var$Deflate","$a39eeb69bf620de6$var$deflate","deflateRaw","$a39eeb69bf620de6$var$deflateRaw","$a39eeb69bf620de6$var$gzip","constants","Inflate","$a39eeb69bf620de6$var$Inflate","$a39eeb69bf620de6$var$inflate","inflateRaw","$a39eeb69bf620de6$var$inflateRaw","ungzip","$a39eeb69bf620de6$var$ungzip","$b5f56319c358f3ac$export$2e2bcd8739ae039","high","$a1b574ae50a3409c$export$2e2bcd8739ae039","_clipped","_unclipped","$dde6d1b2374bf194$var$classToType","$dde6d1b2374bf194$export$2e2bcd8739ae039","$a4178f87e3b29207$export$2e2bcd8739ae039","keyOrder","$f6251d8fc05668f9$export$2e2bcd8739ae039","$182d78e9e3fcde9b$export$6b5c1ceb16d01dc3","$182d78e9e3fcde9b$export$96ec731ed4dcb222","$182d78e9e3fcde9b$export$8960430cfd85939f","$182d78e9e3fcde9b$export$af54f71c879f5ba9","$182d78e9e3fcde9b$export$e734282486210baf","$182d78e9e3fcde9b$export$460c4029b1a54a2e","$182d78e9e3fcde9b$export$914076c8150813e5","$27d02f92df8b8aca$export$2e2bcd8739ae039","format","autodetect","$bb1bda83a1b05571$export$2e2bcd8739ae039","chk","me","_rgb","$f47a5845f488ca15$var$chroma","$a82075d2de988d88$var$max","$a82075d2de988d88$export$2e2bcd8739ae039","cmyk","$e82c9dc4a9dbeaf2$var$rnd","$e82c9dc4a9dbeaf2$export$2e2bcd8739ae039","hsla","$53ea4ceb7810db81$export$2e2bcd8739ae039","minRgb","maxRgb","Number","$31bfe7b71f09b5a2$var$round","$31bfe7b71f09b5a2$export$2e2bcd8739ae039","rgba","$524a16f6306980c8$var$round","$524a16f6306980c8$export$2e2bcd8739ae039","h_","$e344cee01ed9f233$var$RE_RGB","$e344cee01ed9f233$var$RE_RGBA","$e344cee01ed9f233$var$RE_RGB_PCT","$e344cee01ed9f233$var$RE_RGBA_PCT","$e344cee01ed9f233$var$RE_HSL","$e344cee01ed9f233$var$RE_HSLA","$e344cee01ed9f233$var$round","$e344cee01ed9f233$var$css2rgb","css","named","gl","$654dee97171210a1$var$floor","$5e89a95a5ed6a78f$export$2e2bcd8739ae039","hcg","_g","$85adcad71208db0a$var$RE_HEX","$85adcad71208db0a$var$RE_HEXA","$85adcad71208db0a$export$2e2bcd8739ae039","$b0369901a72fa4a8$var$round","$b0369901a72fa4a8$export$2e2bcd8739ae039","hxa","$8a1d177f60a50dea$var$cos","$5f9071b21d08ea41$var$min","$5f9071b21d08ea41$var$sqrt","$5f9071b21d08ea41$var$acos","$5f9071b21d08ea41$export$2e2bcd8739ae039","min_","hsi","$3c0848b490de9de7$var$floor","$1a578ab0929d5130$var$min","$1a578ab0929d5130$var$max","$1a578ab0929d5130$export$2e2bcd8739ae039","max_","hsv","$9f09c56d774b4699$export$2e2bcd8739ae039","Kn","Xn","Yn","Zn","$a727d2bcf47fabfe$var$pow","$a727d2bcf47fabfe$var$xyz_rgb","$a727d2bcf47fabfe$var$lab_xyz","$a727d2bcf47fabfe$export$2e2bcd8739ae039","$b0e117636fd9be6a$var$pow","$b0e117636fd9be6a$var$rgb_xyz","$b0e117636fd9be6a$var$xyz_lab","$b0e117636fd9be6a$var$rgb2xyz","$b0e117636fd9be6a$export$2e2bcd8739ae039","$b79ba082eb8708d9$var$sin","$b79ba082eb8708d9$var$cos","$b79ba082eb8708d9$export$2e2bcd8739ae039","$0c9c574f1e44475d$export$2e2bcd8739ae039","L","b_","$e57ecff761ab2335$var$sqrt","$e57ecff761ab2335$var$atan2","$e57ecff761ab2335$var$round","$e57ecff761ab2335$export$2e2bcd8739ae039","$79602498756cb103$export$2e2bcd8739ae039","lch","hcl","$183ad814a5431bd1$export$2e2bcd8739ae039","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","laserlemon","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrod","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","maroon2","maroon3","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","purple2","purple3","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","$391481bf8e32fbf4$export$2e2bcd8739ae039","$0fc4ff3a69f1835c$var$round","rnd","$81bee5f7016b70e4$var$log","$81bee5f7016b70e4$export$2e2bcd8739ae039","kelvin","$01d768723c872abb$var$round","$01d768723c872abb$export$2e2bcd8739ae039","minTemp","maxTemp","temperature","$c345ec02b9eee2af$var$pow","$c345ec02b9eee2af$var$sign","$c345ec02b9eee2af$export$2e2bcd8739ae039","$c345ec02b9eee2af$var$lrgb2rgb","cbrt","$2bf565903a2a0dad$var$cbrt","$2bf565903a2a0dad$var$pow","$2bf565903a2a0dad$var$sign","$2bf565903a2a0dad$export$2e2bcd8739ae039","lr","lg","lb","$2bf565903a2a0dad$var$rgb2lrgb","oklab","$8c5968f4bc9feede$export$2e2bcd8739ae039","oklch","mutate","brighten","darker","brighter","mc","channel","$b766f14343354a2f$var$pow","luminance","lum","cur_lum","max_iter","lm","$b766f14343354a2f$var$rgb2luminance","$b766f14343354a2f$var$luminance_x","$d5f5bd48f9116d10$export$2e2bcd8739ae039","$45f969e3d18859b0$export$2e2bcd8739ae039","col1","col2","mix","premultiply","saturate","desaturate","tint","shade","xyz0","xyz1","$a780af1baad86134$var$sqrt","$a780af1baad86134$var$pow","lrgb","z1","z2","$75e4d77122b44259$export$2e2bcd8739ae039","hue0","hue1","sat0","sat1","lbv0","lbv1","sat","lbv","dh","$e8496608798e9a40$var$lch","$26560e83bce370ac$var$pow","$26560e83bce370ac$var$sqrt","$26560e83bce370ac$var$PI","$26560e83bce370ac$var$cos","$26560e83bce370ac$var$sin","$26560e83bce370ac$var$atan2","$26560e83bce370ac$var$_average_lrgb","colors","xyz","$75780fa3766b44bc$var$pow","$75780fa3766b44bc$export$2e2bcd8739ae039","_mode","_nacol","_spread","_domain","_pos","_padding","_classes","_colors","_min","_max","_correctLightness","_colorCache","_useCache","_gamma","setColors","brewer","resetCache","getClass","tMapLightness","tMapDomain","bypassMap","classes","analyze","limits","domain","tOut","tBreaks","every","_m","_o","spread","correctLightness","L0","L1","pol","L_actual","L_ideal","L_diff","numColors","dm","dd","$75780fa3766b44bc$var$__range__","inclusive","ascending","samples","asc","gamma","nodata","$539036394d03ea29$var$binom_row","row","newrow","$539036394d03ea29$var$bezier","I","lab0","lab1","lab2","lab3","labs","RangeError","$34827c7f280f9299$var$blend","$34827c7f280f9299$var$blend_f","$34827c7f280f9299$var$each","dodge","burn","$1bed12c3a97a3e0c$var$pow","$1bed12c3a97a3e0c$var$sin","$1bed12c3a97a3e0c$var$cos","$16fd1f89a3bbd5b2$var$floor","$16fd1f89a3bbd5b2$var$random","$b87bd5af2aa04bc2$var$log","$b87bd5af2aa04bc2$var$pow","$b87bd5af2aa04bc2$var$floor","$b87bd5af2aa04bc2$var$abs","$b87bd5af2aa04bc2$export$7cbcccfbecde6416","MAX_VALUE","$b87bd5af2aa04bc2$export$e331ca4ad6a82555","min_log","LOG10E","max_log","pb","pr","cluster","assignments","clusterSizes","repeat","nb_iters","centroids","best","mindist","newCentroids","kClusters","tmpKMeansBreaks","$31a30910f0b90a9f$var$sqrt","$31a30910f0b90a9f$var$pow","$31a30910f0b90a9f$var$min","$31a30910f0b90a9f$var$max","$31a30910f0b90a9f$var$atan2","$31a30910f0b90a9f$var$abs","$31a30910f0b90a9f$var$cos","$31a30910f0b90a9f$var$sin","$31a30910f0b90a9f$var$exp","$31a30910f0b90a9f$var$PI","$ed8535843d88b5f3$var$colorbrewer","OrRd","PuBu","BuPu","Oranges","BuGn","YlOrBr","YlGn","Reds","RdPu","Greens","YlGnBu","Purples","GnBu","Greys","YlOrRd","PuRd","Blues","PuBuGn","Viridis","Spectral","RdYlGn","RdBu","PiYG","PRGn","RdYlBu","BrBG","RdGy","PuOr","Set2","Accent","Set1","Set3","Dark2","Paired","Pastel2","Pastel1","cnt","ci","xyz2","bezier","blend","cubehelix","rotations","lightness","dl","fract","amp","cos_a","sin_a","$16fd1f89a3bbd5b2$var$digits","contrast","deltaE","Kl","Kc","Kh","rad2deg","deg2rad","deg","L2","avgL","avgC","C1","G","a1p","a2p","C1p","C2p","avgCp","arctan1","arctan2","h1p","h2p","avgHp","T","deltaHp","deltaCp","sl","sh","deltaTheta","Rt","deltaL","sum_sq","scales","cool","hot","$hvNIE","$3e2f0fa58ba587b4$var$location","$3e2f0fa58ba587b4$export$281ad3752a540efe","URLSearchParams","$3e2f0fa58ba587b4$export$128fa18b7194ef","URL","$3e2f0fa58ba587b4$export$1bb10639a2cd4297","$3e2f0fa58ba587b4$export$9cb4719e2e525b7a","$3e2f0fa58ba587b4$export$afb15ede80c42aab","binString","atob","codePointAt","$3e2f0fa58ba587b4$export$4e633de97d65d1c8","fromCodePoint","$3e2f0fa58ba587b4$export$9a00dee1beb8f576","$3e2f0fa58ba587b4$export$6e5538615c060df7","findLast","xv","yv","$3e2f0fa58ba587b4$export$e3bf03cc76d2c0a1","detail","dispatchEvent","CustomEvent","$3e2f0fa58ba587b4$export$c23f9d3341b5fd07","pointA","pointB","maxDiff","$3e2f0fa58ba587b4$export$3cb91a81090b9eee","span","classList","backgroundColor","title","$3e2f0fa58ba587b4$export$6d3741128bd5bb7d","some","maxColorIndex","plus","$3e2f0fa58ba587b4$export$79376507b09a66f","$3e2f0fa58ba587b4$export$f6292fcace2a1886","$3e2f0fa58ba587b4$export$78da85ac75754159","$3e2f0fa58ba587b4$export$bd58da2e19cd17da","direction","$3e2f0fa58ba587b4$export$c43d7a950587702b","$3e2f0fa58ba587b4$export$35d6177dfa7903b5","toPaperJs","$3e2f0fa58ba587b4$export$43941667eccc070","$3e2f0fa58ba587b4$export$8793edee2d425525","base64decode","base64encode","$f1fc5431671d3192$var$console","$f1fc5431671d3192$var$consoleDebug","$f1fc5431671d3192$export$1c9f709888824e05","has","$ca914ef976dd611b$export$2e382909194b1aab","toAxialCoordinates","$fe48dca2d228a457$export$c56d3ccff2456440","isNeighbor","neighbor","directions","toOffsetCoordinates","axial","$ca3880ece69ea231$export$654f18991713c8c4","setState","getState","structuredClone","updateState","updater","Events","Update","freeze","$4b738c6f333de3e1$export$6d08773d2e66f8f2","immutable","sortOrder","configuration","crypto","randomUUID","otherItem","getColorElements","getCompoundPath","collidable","onTap","onCollision","collisionStep","onDeselected","onInitialization","onSelected","Types","fromEntries","$8ee30938c07750df$export$b20b719ec758a20f","$97686966a3fec53f$export$94affb487e701bf2","includes","unset","$4f41d74d72b0a295$var$navigator","$4f41d74d72b0a295$export$b0d759d807f751d4","CacheKeys","onPointerUp","onPointerDown","onPointerMove","onMouseWheel","offsetX","offsetY","deltaY","onPan","pan","GestureKeys","Pan","onPinch","pointer0","pointer1","point0","pinch","Pinch","Down","pointerId","Move","Gesture","Tap","maxZoom","minZoom","touchPoint","touchOffset","zoomOffset","vibrate","canVibrate","$e1537b299a08dd1a$export$3e25e887b7a5b37b","$945dd0df0b3cc6c8$export$4f13f83fd8bb1dac","Immutable","Lock","RotateLeft","RotateRight","Swap","ToggleOff","ToggleOn","All","ByName","icon","$890ebaa4ee6ae241$var$modifiers","$890ebaa4ee6ae241$var$uniqueId","$890ebaa4ee6ae241$export$5acd5e6efc9671b7","tile","modifier","beam","$644ce6e6cc7a5abb$export$235cb65c20ad2b7","MaxModifiers","li","dataset","removeModifier","addModifier","moveFilter","button","onToggle","clearTimeout","updateIcon","toggle","Invoked","Moved","$6b5ed925b0615466$export$e49a5ad3dd6df925","movable","$b65a2f5625db2a92$export$a9753b1ffc289935","Mask","onMask","beforeModify","onUnmask","afterModify","tileFilter","moveItems","moved","ignoreItemTypes","puzzle","unmask","updateSelectedTile","fromTile","toTile","wall","$6b5ed925b0615466$export$1288a4f7eae890b0","SuperClass","removeItem","addItem","onMove","$0b4b4185562e5b04$export$fd55ce593607084a","connected","onAdd","onRemove","pathIndex","segmentIndex","$0b4b4185562e5b04$export$81262d6ca0162a3","Class","find","Reflect","construct","Collision","collision","Filter","MergeInto","mergeInto","MergeWith","mergeWith","Portal","portal","entryPortal","exitPortal","Reflector","reflector","TerminusConnection","terminusConnection","terminus","opening","$b9391c61de18417d$export$ec91da630f36d5ea","parameters","circumradius","currentStep","nextStep","$94a7df60cff9f28b$export$152db69a76b6b79e","Names","rotatable","$94a7df60cff9f28b$export$781de49a9284d537","rotationDegrees","getMaxRotation","getDirection","rotateGroup","$9a8fa6fd25778435$export$602eac185826482c","ring","pointer","portalState","entryDirection","existing","exitPortals","addMove","addStep","validTile","getExitDirection","exitPortalId","steps","$90288bbda8776a08$export$bea8ebba691c5813","toggled","toggleable","$90288bbda8776a08$export$cdb1ce8c4b8a5afe","$74097bbf14237549$export$88c9f72b40fcdd85","itemIds","withSelf","mirror","$74097bbf14237549$export$20aab196240bbdf2","stepIndex","beams","getColors","$5625a4a7d65ce9b8$export$693b33588b3dd9d8","lastStepIndex","getLastStepIndex","currentPath","previousStep","getCollision","getStep","getOpening","getSteps","getMergeWith","openings","isComplete","isOn","isConnected","isPending","onBeamUpdated","beamLastStep","lastStep","isSelf","findLastIndex","stepPoint","nextStepPoint","isSameSide","isSameDirection","getBeamsUpdateDelay","onModifierInvoked","findIndex","startDirection","currentStepIndex","inradius","getTile","updateStep","nextStepIndex","existingNextStep","lastPathIndex","lastSegmentIndex","collisionIndex","timeout","updatedStep","firstPoint","Set","curveLocation","intersection","drawDebugPoint","spliceIndex","deletedSteps","Connection","Merge","$7a376349f5a360a3$export$3ad31a823e05e6fb","flatMap","ui","directionFrom","onConnection","onDisconnection","connect","disconnect","Disconnection","$833b17827b418a5b$export$edf083caefbff926","midLine","directionTo","beamDirection","reflectorDirection","beamAngle","$3e2f0fa58ba587b4$export$1a23559e655dacdd","original","reflectorAngle","$62983545fa7e5cd3$export$cb4338d67ffa8a1d","walls","firstSegment","hexagon","nextDirection","lastSegment","$1f91e29af141027d$export$4b0ab9e4fad38dea","$7b23092ccd74af51$export$5b9db7ce80343746","$7e06163ac6e6af1b$export$bdb5f0a1b77546f4","toItems","fromItems","$cc224f8bd3ed022c$export$1d55952676fae128","lock","swap","selectedTile","Deselected","deselectedTile","teardown","childIndex","startingOffsetX","startingOffsetY","dashWidth","Styles","edit","Selected","$941a4b5ec82b485b$export$c84671f46d6a1ca","layers","tileSize","oddR","widestRow","rowByAxial","rowByOffset","rowOffset","getTileByAxial","getTileByOffset","getNeighboringTile","evenR","$4029f0d6ba5141b4$export$991dcf7284de63d","$729c2b05fa2dedeb$export$88c9f72b40fcdd85","$df74fd5b33098157$var$puzzles","test_infinite_loop","test_layout","test_portal","test_reflector","$df74fd5b33098157$var$traverse","$df74fd5b33098157$var$PuzzleGroup","firstId","lastId","nextId","previousId","$df74fd5b33098157$export$f68871ba002ca835","startsWith","titles","$0ca0e02f0a4bc377$var$history","history","$0ca0e02f0a4bc377$var$localStorage","localStorage","$0ca0e02f0a4bc377$export$7254cc27399e90bd","moveIndex","moves","Version","getDeltaIndex","canRedo","canReset","canUndo","getCurrent","getTitle","getSelectedTile","redo","clearCache","setSelectedTile","undo","newState","pushState","fromEncoded","fromId","ParamKeys","pathSegments","localState","$8010a1f4ac1afb69$export$a337a674d761bdc2","condition","replaceChildren","isSolved","isMet","$8010a1f4ac1afb69$var$SolutionCondition","connections","$8010a1f4ac1afb69$var$Connections","$8010a1f4ac1afb69$var$Moves","completed","connectionId","connectionIndex","connection","Operators","equalTo","Updated","greaterThan","lessThan","$b65a2f5625db2a92$var$elements","footer","footerMessage","headerMessage","main","puzzleId","querySelector","solved","delay","select","centerOnTile","clearDebugPoints","previouslySelectedTile","collisionId","addBeam","otherBeam","cause","ClassNames","Icon","Solved","viewSize","Loaded","selectedTileId","className","Disabled","disable","innerText","colorElements","Active","rounded","$250751c5950a3842$var$script","$250751c5950a3842$var$dataLayer","dataLayer","$250751c5950a3842$var$gtag","$e22b5ab31fbd25da$var$doorbellOptions","doorbellOptions","appKey","hideButton","$e22b5ab31fbd25da$var$script","$2fd5a75c703b0f49$var$puzzle","$2fd5a75c703b0f49$var$beaming","beaming"],"version":3,"file":"index.2ce7cc88.js.map"} \ No newline at end of file diff --git a/index.4d663569.css b/index.4d663569.css index 4842134..629f259 100644 --- a/index.4d663569.css +++ b/index.4d663569.css @@ -153,7 +153,7 @@ body > header { } body > footer { - flex-direction: column; + flex-flow: column wrap; display: none; bottom: 1em; left: 0; @@ -219,10 +219,19 @@ main { } #modifiers { + -webkit-user-select: none; + user-select: none; + flex-wrap: wrap; justify-content: center; + margin: -1px 0; display: flex; } +#modifiers li { + border: 1px solid #ddd; + margin: 0 0 -1px -1px; +} + #puzzle-id { appearance: none; cursor: pointer; @@ -264,8 +273,6 @@ main { cursor: default; align-items: center; line-height: 24px; - list-style: none; - display: flex; } #solution .icon { @@ -406,16 +413,11 @@ main { display: none; } -.modifiers { - -webkit-user-select: none; - user-select: none; -} - .puzzle-error .flex-left, .puzzle-error .flex-right { flex: 0; } -.puzzle-error:not(.puzzle-loaded) #puzzle, .puzzle-error .modifiers { +.puzzle-error:not(.puzzle-loaded) #puzzle, .puzzle-error #modifiers { display: none; } @@ -436,18 +438,10 @@ main { } @media (width <= 600px) { - body > header, body > footer { - width: 100%; - max-width: 100%; - } - - body > footer { - border-radius: 0; - bottom: 0; - } - body > header { border-radius: 0; + width: 100%; + max-width: 100%; top: 0; } diff --git a/index.4d663569.css.map b/index.4d663569.css.map index cf4ea9c..ba70c96 100644 --- a/index.4d663569.css.map +++ b/index.4d663569.css.map @@ -1 +1 @@ -{"mappings":"AAAA;;;;;AAKA;;;;;;;;;;;AAYA;;;;;AAKA;;;;;;;AAOA;;;;AAIA;;;;;;AAMA;;;;AAIA;;;;AAIA;;;;AAIA;;;;;;;;AAQA;;;;AAIA;;;;;;;AASA;;;;;AAKA;;;;AAIA;;;;AAIA;;;;;;;;AAQA;;;;;;;AAOA;;;;AAIA;;;;AAIA;;;;;;;;AAQA;;;;;;;;AAQA;;;;;;AAMA;;;;;;AAMA;;;;;;;;;;;;;;;AAkBA;;;;;;AAMA;;;;;;;;AAQA;;;;AAIA;;;;AAIA;;;;;AAKA;;;;;;;;AAQA;;;;AAIA;;;;AAKA;;;;;;;;;AASA;;;;AAIA;;;;AAIA;;;;;;AAMA;;;;;;AAMA;;;;;AAKA;;;;;;;;;;AAUA;;;;AAIA;;;;;;;AAOA;;;;AAIA;;;;;;AAMA;;;;;;AAMA;;;;;;;;AAQA;;;;AAIA;;;;AAIA;;;;AAMA;;;;;;;AAOA;;;;;AAKA;;;;;;;;;;;AAWA;;;;;;AAMA;;;;;AAKA;;;;;;AAQA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAKA;;;;;;;;;;AAeA;;;;;;AAWA;;;;;;;;AAQA;;;;;;;;AAQA;;;;AAKA;;;;AAIA;;;;AAIA;;;;;AAKA;;;;;;AAMA;;;;;;;;;;;AAWA;;;;AAIA;;;;;AAMA;;;;AAKA;;;;AAKA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;EACE;;;;;EAOA;;;;;EAKA;;;;;EAKA;;;;EAKA;;;;;;EAMA;;;;;AAKF;EACE","sources":["src/styles.css"],"sourcesContent":["::backdrop {\n background-color: white;\n opacity: 0.75;\n}\n\nhtml,\nbody {\n background-color: #ccc;\n color: #333;\n font-family: 'Noto Sons Mono', monospace;\n height: 100%;\n margin: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n}\n\nbody {\n display: flex;\n flex-direction: column;\n}\n\ncanvas {\n display: block;\n position: relative;\n touch-action: none;\n z-index: 0;\n}\n\ncode {\n background-color: #f4f4f4;\n}\n\ndetails {\n border-bottom: 1px solid #ddd;\n border-top: 1px solid #ddd;\n padding: 1em;\n}\n\ndetails + details {\n border-top: none;\n}\n\ndetails > details {\n border: none;\n}\n\ndetails > summary {\n cursor: pointer;\n}\n\ndialog {\n background-color: white;\n box-shadow: 0 0 0.75rem 0.5rem rgba(0, 0, 0, 0.25);\n border: 1px solid #999;\n padding: 0;\n width: 50%;\n}\n\ndialog .flex-left {\n flex: 2;\n}\n\ndialog details h3,\ndialog details h4,\ndialog details p {\n margin-left: 0;\n margin-right: 0;\n padding-left: 0;\n padding-right: 0;\n}\n\ndialog h1 {\n margin: 0;\n padding: 0;\n}\n\ndialog h3 {\n padding: 0.25rem 1rem;\n}\n\ndialog h4 {\n padding: 0 1rem;\n}\n\ndialog header {\n align-items: center;\n background-color: #333;\n color: white;\n display: flex;\n padding: 1rem;\n}\n\ndialog header button {\n border: none;\n background: none;\n color: white;\n cursor: pointer;\n}\n\ndialog p {\n margin: 1em;\n}\n\ndialog button {\n padding: 0.5em 1em;\n}\n\ndialog footer {\n align-items: center;\n background-color: #eee;\n border-top: 1px solid #ddd;\n display: flex;\n padding: 0.5em 1em;\n}\n\ndialog footer ul {\n align-items: center;\n display: flex;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\ndialog footer ul li {\n border-left: 1px solid #ddd;\n margin-left: 0.5em;\n padding-left: 0.5em;\n}\n\ndialog footer ul li:first-child {\n border: none;\n margin: 0;\n padding: 0;\n}\n\nbody > footer,\nbody > header {\n background-color: white;\n border-radius: 0.5rem;\n box-shadow: 0 0 0.5rem 0.25rem rgba(0, 0, 0, 0.35);\n margin: 0 auto;\n max-width: calc(100% - 2em);\n min-width: fit-content;\n overflow: hidden;\n position: absolute;\n /* Prevent Chrome from trying to open search on tap in mobile. */\n user-select: none;\n width: fit-content;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n z-index: 1;\n}\n\nbody > header {\n left: 0;\n right: 0;\n top: 1em;\n}\n\nbody > footer {\n display: none;\n bottom: 1em;\n flex-direction: column;\n left: 0;\n right: 0;\n}\n\nbody > footer.active {\n display: flex;\n}\n\nmain {\n flex: auto;\n}\n\n#actions {\n border-left: 1px solid #ddd;\n border-right: 1px solid #ddd;\n}\n\n#doorbell.doorbell-inline #doorbell-container {\n background-color: #eee;\n border: 1px solid #ccc;\n margin: 0;\n padding: 1em;\n width: auto;\n}\n\n#doorbell form legend {\n display: none;\n}\n\n#error,\n#puzzle {\n cursor: pointer;\n}\n\n#error {\n align-items: center;\n color: #666;\n display: none;\n height: 100%;\n font-size: 6em;\n justify-content: center;\n}\n\n#footer-message {\n border-bottom: 1px solid #ddd;\n}\n\n#header-message {\n border-top: 1px solid #ddd;\n}\n\n#header-navigation {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n}\n\n#logo {\n margin: 2em 0 1em 0;\n max-width: 320px;\n width: 75%;\n}\n\n#modifiers {\n display: flex;\n justify-content: center;\n}\n\n#puzzle-id {\n appearance: none;\n border: none;\n border-left: 1px solid #ddd;\n cursor: pointer;\n font-size: 1em;\n font-weight: bold;\n padding: 1em 2em 1em 1em;\n}\n\n#puzzle-id:hover {\n background-color: #eee;\n}\n\n#puzzle-id:focus-visible {\n background-color: #333;\n color: white;\n fill: white;\n outline: none;\n}\n\n#puzzle-id:focus-visible + svg {\n fill: white;\n}\n\n#selector {\n align-items: stretch;\n display: flex;\n position: relative;\n}\n\n#selector svg {\n position: absolute;\n right: 0.75rem;\n top: calc(50% - 5px);\n}\n\n#solution {\n align-items: center;\n cursor: default;\n display: flex;\n line-height: 24px;\n list-style: none;\n}\n\n#solution .icon {\n margin-left: 0.5em;\n}\n\n#symbols {\n display: none;\n}\n\n#version {\n color: #999;\n}\n\n/** Classes */\n\n.beam {\n color: white;\n display: inline-block;\n height: 1em;\n width: 1em;\n}\n\n.beam::selection {\n color: white;\n background-color: black;\n}\n\n.button {\n background-color: #eee;\n border: 1px solid #ccc;\n color: #333;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n padding: 0.5em 1em;\n text-decoration: none;\n}\n\n.button:hover {\n background-color: #ddd;\n border-color: #aaa;\n cursor: pointer;\n}\n\n.buttons {\n grid-gap: 1em;\n margin: 1em 0;\n}\n\n.flex-center,\n.flex-left,\n.flex-right {\n align-items: stretch;\n display: flex;\n flex: 1;\n}\n\n.flex-center {\n justify-content: center;\n}\n\n.flex-left {\n justify-content: flex-start;\n}\n\n.flex-right {\n justify-content: flex-end;\n}\n\n.grab #puzzle {\n cursor: grabbing;\n}\n\n/* https://developers.google.com/fonts/docs/material_icons */\n.material-symbols-outlined {\n font-variation-settings:\n 'FILL' 0,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n min-height: 24px;\n overflow: hidden;\n user-select: none;\n vertical-align: middle;\n width: 24px;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n}\n\n.material-symbols-outlined.fill {\n font-variation-settings:\n 'FILL' 1,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n user-select: none;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n}\n\n.menu {\n align-items: stretch;\n display: flex;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.menu li {\n align-items: center;\n border-left: 1px solid #ddd;\n cursor: pointer;\n display: flex;\n padding: 1em;\n}\n\n.menu.non-interactive li,\n.menu li.non-interactive {\n cursor: default;\n}\n\n.menu li:first-child {\n border: none;\n}\n\n.menu:not(.non-interactive) li:not(.disabled,.non-interactive,.selected):hover {\n background-color: #eee;\n}\n\n.menu li.disabled {\n color: #ccc;\n cursor: default;\n}\n\n.menu li.selected {\n background-color: #333;\n box-sizing: border-box;\n color: white;\n}\n\n.message {\n align-items: center;\n background-color: #eee;\n display: flex;\n flex: 100%;\n justify-content: center;\n line-height: 24px;\n min-height: 24px;\n padding: 1em;\n}\n\n.message:empty {\n display: none;\n}\n\n.modifiers {\n user-select: none;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n}\n\n.puzzle-error .flex-left,\n.puzzle-error .flex-right {\n flex: 0;\n}\n\n.puzzle-error:not(.puzzle-loaded) #puzzle,\n.puzzle-error .modifiers {\n display: none;\n}\n\n.puzzle-error:not(.puzzle-loaded) #error {\n display: flex;\n}\n\n.puzzle-solved #puzzle {\n cursor: default;\n}\n\n.puzzle-solved footer {\n display: none;\n}\n\n.text {\n padding: 0 0.25em;\n}\n\n@media (max-width: 600px) {\n body > header,\n body > footer {\n /*flex-wrap: wrap;*/\n max-width: 100%;\n width: 100%;\n }\n\n body > footer {\n border-radius: 0;\n bottom: 0;\n }\n\n body > header {\n border-radius: 0;\n top: 0;\n }\n\n body > header .flex-left,\n body > header .flex-right {\n order: 0;\n }\n\n body > header .flex-center {\n border-top: 1px solid #ddd;\n flex: 100%;\n order: 1;\n }\n\n #actions {\n border: 0;\n }\n}\n\n@media (max-width: 1024px) {\n dialog {\n width: 100%;\n }\n}\n"],"names":[],"version":3,"file":"index.4d663569.css.map","sourceRoot":"/__parcel_source_root/"} \ No newline at end of file +{"mappings":"AAAA;;;;;AAKA;;;;;;;;;;;AAYA;;;;;AAKA;;;;;;;AAOA;;;;AAIA;;;;;;AAMA;;;;AAIA;;;;AAIA;;;;AAIA;;;;;;;;AAQA;;;;AAIA;;;;;;;AASA;;;;;AAKA;;;;AAIA;;;;AAIA;;;;;;;;AAQA;;;;;;;AAOA;;;;AAIA;;;;AAIA;;;;;;;;AAQA;;;;;;;;AAQA;;;;;;AAMA;;;;;;AAMA;;;;;;;;;;;;;;;AAkBA;;;;;;AAMA;;;;;;;;AAQA;;;;AAIA;;;;AAIA;;;;;AAKA;;;;;;;;AAQA;;;;AAIA;;;;AAKA;;;;;;;;;AASA;;;;AAIA;;;;AAIA;;;;;;AAMA;;;;;;AAMA;;;;;;;;;AAUA;;;;;AAKA;;;;;;;;;;AAUA;;;;AAIA;;;;;;;AAOA;;;;AAIA;;;;;;AAMA;;;;;;AAMA;;;;;;AAMA;;;;AAIA;;;;AAIA;;;;AAMA;;;;;;;AAOA;;;;;AAKA;;;;;;;;;;;AAWA;;;;;;AAMA;;;;;AAKA;;;;;;AAQA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAKA;;;;;;;;;;AAeA;;;;;;AAWA;;;;;;;;AAQA;;;;;;;;AAQA;;;;AAKA;;;;AAIA;;;;AAIA;;;;;AAKA;;;;;;AAMA;;;;;;;;;;;AAWA;;;;AAIA;;;;AAKA;;;;AAKA;;;;AAIA;;;;AAIA;;;;AAIA;;;;AAIA;EACE;;;;;;;EAUA;;;;EAKA;;;;;;EAMA;;;;;AAKF;EACE","sources":["src/styles.css"],"sourcesContent":["::backdrop {\n background-color: white;\n opacity: 0.75;\n}\n\nhtml,\nbody {\n background-color: #ccc;\n color: #333;\n font-family: 'Noto Sons Mono', monospace;\n height: 100%;\n margin: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n}\n\nbody {\n display: flex;\n flex-direction: column;\n}\n\ncanvas {\n display: block;\n position: relative;\n touch-action: none;\n z-index: 0;\n}\n\ncode {\n background-color: #f4f4f4;\n}\n\ndetails {\n border-bottom: 1px solid #ddd;\n border-top: 1px solid #ddd;\n padding: 1em;\n}\n\ndetails + details {\n border-top: none;\n}\n\ndetails > details {\n border: none;\n}\n\ndetails > summary {\n cursor: pointer;\n}\n\ndialog {\n background-color: white;\n box-shadow: 0 0 0.75rem 0.5rem rgba(0, 0, 0, 0.25);\n border: 1px solid #999;\n padding: 0;\n width: 50%;\n}\n\ndialog .flex-left {\n flex: 2;\n}\n\ndialog details h3,\ndialog details h4,\ndialog details p {\n margin-left: 0;\n margin-right: 0;\n padding-left: 0;\n padding-right: 0;\n}\n\ndialog h1 {\n margin: 0;\n padding: 0;\n}\n\ndialog h3 {\n padding: 0.25rem 1rem;\n}\n\ndialog h4 {\n padding: 0 1rem;\n}\n\ndialog header {\n align-items: center;\n background-color: #333;\n color: white;\n display: flex;\n padding: 1rem;\n}\n\ndialog header button {\n border: none;\n background: none;\n color: white;\n cursor: pointer;\n}\n\ndialog p {\n margin: 1em;\n}\n\ndialog button {\n padding: 0.5em 1em;\n}\n\ndialog footer {\n align-items: center;\n background-color: #eee;\n border-top: 1px solid #ddd;\n display: flex;\n padding: 0.5em 1em;\n}\n\ndialog footer ul {\n align-items: center;\n display: flex;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\ndialog footer ul li {\n border-left: 1px solid #ddd;\n margin-left: 0.5em;\n padding-left: 0.5em;\n}\n\ndialog footer ul li:first-child {\n border: none;\n margin: 0;\n padding: 0;\n}\n\nbody > footer,\nbody > header {\n background-color: white;\n border-radius: 0.5rem;\n box-shadow: 0 0 0.5rem 0.25rem rgba(0, 0, 0, 0.35);\n margin: 0 auto;\n max-width: calc(100% - 2em);\n min-width: fit-content;\n overflow: hidden;\n position: absolute;\n /* Prevent Chrome from trying to open search on tap in mobile. */\n user-select: none;\n width: fit-content;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n z-index: 1;\n}\n\nbody > header {\n left: 0;\n right: 0;\n top: 1em;\n}\n\nbody > footer {\n display: none;\n bottom: 1em;\n flex-flow: column wrap;\n left: 0;\n right: 0;\n}\n\nbody > footer.active {\n display: flex;\n}\n\nmain {\n flex: auto;\n}\n\n#actions {\n border-left: 1px solid #ddd;\n border-right: 1px solid #ddd;\n}\n\n#doorbell.doorbell-inline #doorbell-container {\n background-color: #eee;\n border: 1px solid #ccc;\n margin: 0;\n padding: 1em;\n width: auto;\n}\n\n#doorbell form legend {\n display: none;\n}\n\n#error,\n#puzzle {\n cursor: pointer;\n}\n\n#error {\n align-items: center;\n color: #666;\n display: none;\n height: 100%;\n font-size: 6em;\n justify-content: center;\n}\n\n#footer-message {\n border-bottom: 1px solid #ddd;\n}\n\n#header-message {\n border-top: 1px solid #ddd;\n}\n\n#header-navigation {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n}\n\n#logo {\n margin: 2em 0 1em 0;\n max-width: 320px;\n width: 75%;\n}\n\n#modifiers {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n margin: -1px 0;\n user-select: none;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n}\n\n#modifiers li {\n border: 1px solid #ddd;\n margin: 0 0 -1px -1px;\n}\n\n#puzzle-id {\n appearance: none;\n border: none;\n border-left: 1px solid #ddd;\n cursor: pointer;\n font-size: 1em;\n font-weight: bold;\n padding: 1em 2em 1em 1em;\n}\n\n#puzzle-id:hover {\n background-color: #eee;\n}\n\n#puzzle-id:focus-visible {\n background-color: #333;\n color: white;\n fill: white;\n outline: none;\n}\n\n#puzzle-id:focus-visible + svg {\n fill: white;\n}\n\n#selector {\n align-items: stretch;\n display: flex;\n position: relative;\n}\n\n#selector svg {\n position: absolute;\n right: 0.75rem;\n top: calc(50% - 5px);\n}\n\n#solution {\n align-items: center;\n cursor: default;\n line-height: 24px;\n}\n\n#solution .icon {\n margin-left: 0.5em;\n}\n\n#symbols {\n display: none;\n}\n\n#version {\n color: #999;\n}\n\n/** Classes */\n\n.beam {\n color: white;\n display: inline-block;\n height: 1em;\n width: 1em;\n}\n\n.beam::selection {\n color: white;\n background-color: black;\n}\n\n.button {\n background-color: #eee;\n border: 1px solid #ccc;\n color: #333;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n padding: 0.5em 1em;\n text-decoration: none;\n}\n\n.button:hover {\n background-color: #ddd;\n border-color: #aaa;\n cursor: pointer;\n}\n\n.buttons {\n grid-gap: 1em;\n margin: 1em 0;\n}\n\n.flex-center,\n.flex-left,\n.flex-right {\n align-items: stretch;\n display: flex;\n flex: 1;\n}\n\n.flex-center {\n justify-content: center;\n}\n\n.flex-left {\n justify-content: flex-start;\n}\n\n.flex-right {\n justify-content: flex-end;\n}\n\n.grab #puzzle {\n cursor: grabbing;\n}\n\n/* https://developers.google.com/fonts/docs/material_icons */\n.material-symbols-outlined {\n font-variation-settings:\n 'FILL' 0,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n min-height: 24px;\n overflow: hidden;\n user-select: none;\n vertical-align: middle;\n width: 24px;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n}\n\n.material-symbols-outlined.fill {\n font-variation-settings:\n 'FILL' 1,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n user-select: none;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n}\n\n.menu {\n align-items: stretch;\n display: flex;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.menu li {\n align-items: center;\n border-left: 1px solid #ddd;\n cursor: pointer;\n display: flex;\n padding: 1em;\n}\n\n.menu.non-interactive li,\n.menu li.non-interactive {\n cursor: default;\n}\n\n.menu li:first-child {\n border: none;\n}\n\n.menu:not(.non-interactive) li:not(.disabled,.non-interactive,.selected):hover {\n background-color: #eee;\n}\n\n.menu li.disabled {\n color: #ccc;\n cursor: default;\n}\n\n.menu li.selected {\n background-color: #333;\n box-sizing: border-box;\n color: white;\n}\n\n.message {\n align-items: center;\n background-color: #eee;\n display: flex;\n flex: 100%;\n justify-content: center;\n line-height: 24px;\n min-height: 24px;\n padding: 1em;\n}\n\n.message:empty {\n display: none;\n}\n\n.puzzle-error .flex-left,\n.puzzle-error .flex-right {\n flex: 0;\n}\n\n.puzzle-error:not(.puzzle-loaded) #puzzle,\n.puzzle-error #modifiers {\n display: none;\n}\n\n.puzzle-error:not(.puzzle-loaded) #error {\n display: flex;\n}\n\n.puzzle-solved #puzzle {\n cursor: default;\n}\n\n.puzzle-solved footer {\n display: none;\n}\n\n.text {\n padding: 0 0.25em;\n}\n\n@media (max-width: 600px) {\n body > header {\n max-width: 100%;\n width: 100%;\n }\n\n body > header {\n border-radius: 0;\n top: 0;\n }\n\n body > header .flex-left,\n body > header .flex-right {\n order: 0;\n }\n\n body > header .flex-center {\n border-top: 1px solid #ddd;\n flex: 100%;\n order: 1;\n }\n\n #actions {\n border: 0;\n }\n}\n\n@media (max-width: 1024px) {\n dialog {\n width: 100%;\n }\n}\n"],"names":[],"version":3,"file":"index.4d663569.css.map","sourceRoot":"/__parcel_source_root/"} \ No newline at end of file diff --git a/index.f951074b.css b/index.54dc852b.css similarity index 50% rename from index.f951074b.css rename to index.54dc852b.css index 46f795d..81e17ad 100644 --- a/index.f951074b.css +++ b/index.54dc852b.css @@ -1,2 +1,2 @@ -::backdrop{opacity:.75;background-color:#fff}html,body{color:#333;background-color:#ccc;width:100%;height:100%;margin:0;padding:0;font-family:Noto Sons Mono,monospace;overflow:hidden}body{flex-direction:column;display:flex}canvas{touch-action:none;z-index:0;display:block;position:relative}code{background-color:#f4f4f4}details{border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:1em}details+details{border-top:none}details>details{border:none}details>summary{cursor:pointer}dialog{background-color:#fff;border:1px solid #999;width:50%;padding:0;box-shadow:0 0 .75rem .5rem #00000040}dialog .flex-left{flex:2}dialog details h3,dialog details h4,dialog details p{margin-left:0;margin-right:0;padding-left:0;padding-right:0}dialog h1{margin:0;padding:0}dialog h3{padding:.25rem 1rem}dialog h4{padding:0 1rem}dialog header{color:#fff;background-color:#333;align-items:center;padding:1rem;display:flex}dialog header button{color:#fff;cursor:pointer;background:0 0;border:none}dialog p{margin:1em}dialog button{padding:.5em 1em}dialog footer{background-color:#eee;border-top:1px solid #ddd;align-items:center;padding:.5em 1em;display:flex}dialog footer ul{align-items:center;margin:0;padding:0;list-style:none;display:flex}dialog footer ul li{border-left:1px solid #ddd;margin-left:.5em;padding-left:.5em}dialog footer ul li:first-child{border:none;margin:0;padding:0}body>footer,body>header{-webkit-user-select:none;user-select:none;z-index:1;background-color:#fff;border-radius:.5rem;width:fit-content;min-width:fit-content;max-width:calc(100% - 2em);margin:0 auto;position:absolute;overflow:hidden;box-shadow:0 0 .5rem .25rem #00000059}body>header{top:1em;left:0;right:0}body>footer{flex-direction:column;display:none;bottom:1em;left:0;right:0}body>footer.active{display:flex}main{flex:auto}#actions{border-left:1px solid #ddd;border-right:1px solid #ddd}#doorbell.doorbell-inline #doorbell-container{background-color:#eee;border:1px solid #ccc;width:auto;margin:0;padding:1em}#doorbell form legend{display:none}#error,#puzzle{cursor:pointer}#error{color:#666;justify-content:center;align-items:center;height:100%;font-size:6em;display:none}#footer-message{border-bottom:1px solid #ddd}#header-message{border-top:1px solid #ddd}#header-navigation{flex-wrap:wrap;justify-content:center;display:flex}#logo{width:75%;max-width:320px;margin:2em 0 1em}#modifiers{justify-content:center;display:flex}#puzzle-id{appearance:none;cursor:pointer;border:none;border-left:1px solid #ddd;padding:1em 2em 1em 1em;font-size:1em;font-weight:700}#puzzle-id:hover{background-color:#eee}#puzzle-id:focus-visible{color:#fff;fill:#fff;background-color:#333;outline:none}#puzzle-id:focus-visible+svg{fill:#fff}#selector{align-items:stretch;display:flex;position:relative}#selector svg{position:absolute;top:calc(50% - 5px);right:.75rem}#solution{cursor:default;align-items:center;line-height:24px;list-style:none;display:flex}#solution .icon{margin-left:.5em}#symbols{display:none}#version{color:#999}.beam{color:#fff;width:1em;height:1em;display:inline-block}.beam::selection{color:#fff;background-color:#000}.button{color:#333;font-family:inherit;font-size:inherit;background-color:#eee;border:1px solid #ccc;margin:0;padding:.5em 1em;text-decoration:none}.button:hover{cursor:pointer;background-color:#ddd;border-color:#aaa}.buttons{grid-gap:1em;margin:1em 0}.flex-center,.flex-left,.flex-right{flex:1;align-items:stretch;display:flex}.flex-center{justify-content:center}.flex-left{justify-content:flex-start}.flex-right{justify-content:flex-end}.grab #puzzle{cursor:grabbing}.material-symbols-outlined{font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24;-webkit-user-select:none;user-select:none;vertical-align:middle;width:24px;min-height:24px;overflow:hidden}.material-symbols-outlined.fill{font-variation-settings:"FILL" 1,"wght" 400,"GRAD" 0,"opsz" 24;-webkit-user-select:none;user-select:none}.menu{align-items:stretch;margin:0;padding:0;list-style:none;display:flex}.menu li{cursor:pointer;border-left:1px solid #ddd;align-items:center;padding:1em;display:flex}.menu.non-interactive li,.menu li.non-interactive{cursor:default}.menu li:first-child{border:none}.menu:not(.non-interactive) li:not(.disabled,.non-interactive,.selected):hover{background-color:#eee}.menu li.disabled{color:#ccc;cursor:default}.menu li.selected{box-sizing:border-box;color:#fff;background-color:#333}.message{background-color:#eee;flex:100%;justify-content:center;align-items:center;min-height:24px;padding:1em;line-height:24px;display:flex}.message:empty{display:none}.modifiers{-webkit-user-select:none;user-select:none}.puzzle-error .flex-left,.puzzle-error .flex-right{flex:0}.puzzle-error:not(.puzzle-loaded) #puzzle,.puzzle-error .modifiers{display:none}.puzzle-error:not(.puzzle-loaded) #error{display:flex}.puzzle-solved #puzzle{cursor:default}.puzzle-solved footer{display:none}.text{padding:0 .25em}@media (max-width:600px){body>header,body>footer{width:100%;max-width:100%}body>footer{border-radius:0;bottom:0}body>header{border-radius:0;top:0}body>header .flex-left,body>header .flex-right{order:0}body>header .flex-center{border-top:1px solid #ddd;flex:100%;order:1}#actions{border:0}}@media (max-width:1024px){dialog{width:100%}} -/*# sourceMappingURL=index.f951074b.css.map */ +::backdrop{opacity:.75;background-color:#fff}html,body{color:#333;background-color:#ccc;width:100%;height:100%;margin:0;padding:0;font-family:Noto Sons Mono,monospace;overflow:hidden}body{flex-direction:column;display:flex}canvas{touch-action:none;z-index:0;display:block;position:relative}code{background-color:#f4f4f4}details{border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:1em}details+details{border-top:none}details>details{border:none}details>summary{cursor:pointer}dialog{background-color:#fff;border:1px solid #999;width:50%;padding:0;box-shadow:0 0 .75rem .5rem #00000040}dialog .flex-left{flex:2}dialog details h3,dialog details h4,dialog details p{margin-left:0;margin-right:0;padding-left:0;padding-right:0}dialog h1{margin:0;padding:0}dialog h3{padding:.25rem 1rem}dialog h4{padding:0 1rem}dialog header{color:#fff;background-color:#333;align-items:center;padding:1rem;display:flex}dialog header button{color:#fff;cursor:pointer;background:0 0;border:none}dialog p{margin:1em}dialog button{padding:.5em 1em}dialog footer{background-color:#eee;border-top:1px solid #ddd;align-items:center;padding:.5em 1em;display:flex}dialog footer ul{align-items:center;margin:0;padding:0;list-style:none;display:flex}dialog footer ul li{border-left:1px solid #ddd;margin-left:.5em;padding-left:.5em}dialog footer ul li:first-child{border:none;margin:0;padding:0}body>footer,body>header{-webkit-user-select:none;user-select:none;z-index:1;background-color:#fff;border-radius:.5rem;width:fit-content;min-width:fit-content;max-width:calc(100% - 2em);margin:0 auto;position:absolute;overflow:hidden;box-shadow:0 0 .5rem .25rem #00000059}body>header{top:1em;left:0;right:0}body>footer{flex-flow:column wrap;display:none;bottom:1em;left:0;right:0}body>footer.active{display:flex}main{flex:auto}#actions{border-left:1px solid #ddd;border-right:1px solid #ddd}#doorbell.doorbell-inline #doorbell-container{background-color:#eee;border:1px solid #ccc;width:auto;margin:0;padding:1em}#doorbell form legend{display:none}#error,#puzzle{cursor:pointer}#error{color:#666;justify-content:center;align-items:center;height:100%;font-size:6em;display:none}#footer-message{border-bottom:1px solid #ddd}#header-message{border-top:1px solid #ddd}#header-navigation{flex-wrap:wrap;justify-content:center;display:flex}#logo{width:75%;max-width:320px;margin:2em 0 1em}#modifiers{-webkit-user-select:none;user-select:none;flex-wrap:wrap;justify-content:center;margin:-1px 0;display:flex}#modifiers li{border:1px solid #ddd;margin:0 0 -1px -1px}#puzzle-id{appearance:none;cursor:pointer;border:none;border-left:1px solid #ddd;padding:1em 2em 1em 1em;font-size:1em;font-weight:700}#puzzle-id:hover{background-color:#eee}#puzzle-id:focus-visible{color:#fff;fill:#fff;background-color:#333;outline:none}#puzzle-id:focus-visible+svg{fill:#fff}#selector{align-items:stretch;display:flex;position:relative}#selector svg{position:absolute;top:calc(50% - 5px);right:.75rem}#solution{cursor:default;align-items:center;line-height:24px}#solution .icon{margin-left:.5em}#symbols{display:none}#version{color:#999}.beam{color:#fff;width:1em;height:1em;display:inline-block}.beam::selection{color:#fff;background-color:#000}.button{color:#333;font-family:inherit;font-size:inherit;background-color:#eee;border:1px solid #ccc;margin:0;padding:.5em 1em;text-decoration:none}.button:hover{cursor:pointer;background-color:#ddd;border-color:#aaa}.buttons{grid-gap:1em;margin:1em 0}.flex-center,.flex-left,.flex-right{flex:1;align-items:stretch;display:flex}.flex-center{justify-content:center}.flex-left{justify-content:flex-start}.flex-right{justify-content:flex-end}.grab #puzzle{cursor:grabbing}.material-symbols-outlined{font-variation-settings:"FILL" 0,"wght" 400,"GRAD" 0,"opsz" 24;-webkit-user-select:none;user-select:none;vertical-align:middle;width:24px;min-height:24px;overflow:hidden}.material-symbols-outlined.fill{font-variation-settings:"FILL" 1,"wght" 400,"GRAD" 0,"opsz" 24;-webkit-user-select:none;user-select:none}.menu{align-items:stretch;margin:0;padding:0;list-style:none;display:flex}.menu li{cursor:pointer;border-left:1px solid #ddd;align-items:center;padding:1em;display:flex}.menu.non-interactive li,.menu li.non-interactive{cursor:default}.menu li:first-child{border:none}.menu:not(.non-interactive) li:not(.disabled,.non-interactive,.selected):hover{background-color:#eee}.menu li.disabled{color:#ccc;cursor:default}.menu li.selected{box-sizing:border-box;color:#fff;background-color:#333}.message{background-color:#eee;flex:100%;justify-content:center;align-items:center;min-height:24px;padding:1em;line-height:24px;display:flex}.message:empty{display:none}.puzzle-error .flex-left,.puzzle-error .flex-right{flex:0}.puzzle-error:not(.puzzle-loaded) #puzzle,.puzzle-error #modifiers{display:none}.puzzle-error:not(.puzzle-loaded) #error{display:flex}.puzzle-solved #puzzle{cursor:default}.puzzle-solved footer{display:none}.text{padding:0 .25em}@media (max-width:600px){body>header{border-radius:0;width:100%;max-width:100%;top:0}body>header .flex-left,body>header .flex-right{order:0}body>header .flex-center{border-top:1px solid #ddd;flex:100%;order:1}#actions{border:0}}@media (max-width:1024px){dialog{width:100%}} +/*# sourceMappingURL=index.54dc852b.css.map */ diff --git a/index.54dc852b.css.map b/index.54dc852b.css.map new file mode 100644 index 0000000..a733b10 --- /dev/null +++ b/index.54dc852b.css.map @@ -0,0 +1 @@ +{"mappings":"ACAA,6CAKA,0IAYA,wCAKA,mEAOA,8BAIA,2EAMA,gCAIA,4BAIA,+BAIA,6GAQA,yBAIA,iHASA,6BAKA,8BAIA,yBAIA,4FAQA,0EAOA,oBAIA,+BAIA,+GAQA,oFAQA,kFAMA,+DAMA,+QAkBA,mCAMA,yEAQA,gCAIA,eAIA,gEAKA,0HAQA,mCAIA,8BAKA,mGASA,6CAIA,0CAIA,sEAMA,iDAMA,sHAUA,yDAKA,uIAUA,uCAIA,iFAOA,uCAIA,6DAMA,iEAMA,6DAMA,iCAIA,sBAIA,oBAMA,2DAOA,kDAKA,oJAWA,qEAMA,mCAKA,4EAQA,oCAIA,sCAIA,qCAIA,8BAKA,qMAeA,yIAWA,0EAQA,+FAQA,iEAKA,iCAIA,qGAIA,4CAKA,yEAMA,6IAWA,4BAIA,0DAKA,gFAKA,sDAIA,sCAIA,mCAIA,sBAIA,yBACE,4DAUA,uDAKA,qEAMA,mBAKF,0BACE","sources":["index.54dc852b.css","src/styles.css"],"sourcesContent":["::backdrop {\n opacity: .75;\n background-color: #fff;\n}\n\nhtml, body {\n color: #333;\n background-color: #ccc;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n font-family: Noto Sons Mono, monospace;\n overflow: hidden;\n}\n\nbody {\n flex-direction: column;\n display: flex;\n}\n\ncanvas {\n touch-action: none;\n z-index: 0;\n display: block;\n position: relative;\n}\n\ncode {\n background-color: #f4f4f4;\n}\n\ndetails {\n border-top: 1px solid #ddd;\n border-bottom: 1px solid #ddd;\n padding: 1em;\n}\n\ndetails + details {\n border-top: none;\n}\n\ndetails > details {\n border: none;\n}\n\ndetails > summary {\n cursor: pointer;\n}\n\ndialog {\n background-color: #fff;\n border: 1px solid #999;\n width: 50%;\n padding: 0;\n box-shadow: 0 0 .75rem .5rem #00000040;\n}\n\ndialog .flex-left {\n flex: 2;\n}\n\ndialog details h3, dialog details h4, dialog details p {\n margin-left: 0;\n margin-right: 0;\n padding-left: 0;\n padding-right: 0;\n}\n\ndialog h1 {\n margin: 0;\n padding: 0;\n}\n\ndialog h3 {\n padding: .25rem 1rem;\n}\n\ndialog h4 {\n padding: 0 1rem;\n}\n\ndialog header {\n color: #fff;\n background-color: #333;\n align-items: center;\n padding: 1rem;\n display: flex;\n}\n\ndialog header button {\n color: #fff;\n cursor: pointer;\n background: none;\n border: none;\n}\n\ndialog p {\n margin: 1em;\n}\n\ndialog button {\n padding: .5em 1em;\n}\n\ndialog footer {\n background-color: #eee;\n border-top: 1px solid #ddd;\n align-items: center;\n padding: .5em 1em;\n display: flex;\n}\n\ndialog footer ul {\n align-items: center;\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n}\n\ndialog footer ul li {\n border-left: 1px solid #ddd;\n margin-left: .5em;\n padding-left: .5em;\n}\n\ndialog footer ul li:first-child {\n border: none;\n margin: 0;\n padding: 0;\n}\n\nbody > footer, body > header {\n -webkit-user-select: none;\n user-select: none;\n z-index: 1;\n background-color: #fff;\n border-radius: .5rem;\n width: fit-content;\n min-width: fit-content;\n max-width: calc(100% - 2em);\n margin: 0 auto;\n position: absolute;\n overflow: hidden;\n box-shadow: 0 0 .5rem .25rem #00000059;\n}\n\nbody > header {\n top: 1em;\n left: 0;\n right: 0;\n}\n\nbody > footer {\n flex-flow: column wrap;\n display: none;\n bottom: 1em;\n left: 0;\n right: 0;\n}\n\nbody > footer.active {\n display: flex;\n}\n\nmain {\n flex: auto;\n}\n\n#actions {\n border-left: 1px solid #ddd;\n border-right: 1px solid #ddd;\n}\n\n#doorbell.doorbell-inline #doorbell-container {\n background-color: #eee;\n border: 1px solid #ccc;\n width: auto;\n margin: 0;\n padding: 1em;\n}\n\n#doorbell form legend {\n display: none;\n}\n\n#error, #puzzle {\n cursor: pointer;\n}\n\n#error {\n color: #666;\n justify-content: center;\n align-items: center;\n height: 100%;\n font-size: 6em;\n display: none;\n}\n\n#footer-message {\n border-bottom: 1px solid #ddd;\n}\n\n#header-message {\n border-top: 1px solid #ddd;\n}\n\n#header-navigation {\n flex-wrap: wrap;\n justify-content: center;\n display: flex;\n}\n\n#logo {\n width: 75%;\n max-width: 320px;\n margin: 2em 0 1em;\n}\n\n#modifiers {\n -webkit-user-select: none;\n user-select: none;\n flex-wrap: wrap;\n justify-content: center;\n margin: -1px 0;\n display: flex;\n}\n\n#modifiers li {\n border: 1px solid #ddd;\n margin: 0 0 -1px -1px;\n}\n\n#puzzle-id {\n appearance: none;\n cursor: pointer;\n border: none;\n border-left: 1px solid #ddd;\n padding: 1em 2em 1em 1em;\n font-size: 1em;\n font-weight: bold;\n}\n\n#puzzle-id:hover {\n background-color: #eee;\n}\n\n#puzzle-id:focus-visible {\n color: #fff;\n fill: #fff;\n background-color: #333;\n outline: none;\n}\n\n#puzzle-id:focus-visible + svg {\n fill: #fff;\n}\n\n#selector {\n align-items: stretch;\n display: flex;\n position: relative;\n}\n\n#selector svg {\n position: absolute;\n top: calc(50% - 5px);\n right: .75rem;\n}\n\n#solution {\n cursor: default;\n align-items: center;\n line-height: 24px;\n}\n\n#solution .icon {\n margin-left: .5em;\n}\n\n#symbols {\n display: none;\n}\n\n#version {\n color: #999;\n}\n\n.beam {\n color: #fff;\n width: 1em;\n height: 1em;\n display: inline-block;\n}\n\n.beam::selection {\n color: #fff;\n background-color: #000;\n}\n\n.button {\n color: #333;\n font-family: inherit;\n font-size: inherit;\n background-color: #eee;\n border: 1px solid #ccc;\n margin: 0;\n padding: .5em 1em;\n text-decoration: none;\n}\n\n.button:hover {\n cursor: pointer;\n background-color: #ddd;\n border-color: #aaa;\n}\n\n.buttons {\n grid-gap: 1em;\n margin: 1em 0;\n}\n\n.flex-center, .flex-left, .flex-right {\n flex: 1;\n align-items: stretch;\n display: flex;\n}\n\n.flex-center {\n justify-content: center;\n}\n\n.flex-left {\n justify-content: flex-start;\n}\n\n.flex-right {\n justify-content: flex-end;\n}\n\n.grab #puzzle {\n cursor: grabbing;\n}\n\n.material-symbols-outlined {\n font-variation-settings: \"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24;\n -webkit-user-select: none;\n user-select: none;\n vertical-align: middle;\n width: 24px;\n min-height: 24px;\n overflow: hidden;\n}\n\n.material-symbols-outlined.fill {\n font-variation-settings: \"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24;\n -webkit-user-select: none;\n user-select: none;\n}\n\n.menu {\n align-items: stretch;\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n}\n\n.menu li {\n cursor: pointer;\n border-left: 1px solid #ddd;\n align-items: center;\n padding: 1em;\n display: flex;\n}\n\n.menu.non-interactive li, .menu li.non-interactive {\n cursor: default;\n}\n\n.menu li:first-child {\n border: none;\n}\n\n.menu:not(.non-interactive) li:not(.disabled, .non-interactive, .selected):hover {\n background-color: #eee;\n}\n\n.menu li.disabled {\n color: #ccc;\n cursor: default;\n}\n\n.menu li.selected {\n box-sizing: border-box;\n color: #fff;\n background-color: #333;\n}\n\n.message {\n background-color: #eee;\n flex: 100%;\n justify-content: center;\n align-items: center;\n min-height: 24px;\n padding: 1em;\n line-height: 24px;\n display: flex;\n}\n\n.message:empty {\n display: none;\n}\n\n.puzzle-error .flex-left, .puzzle-error .flex-right {\n flex: 0;\n}\n\n.puzzle-error:not(.puzzle-loaded) #puzzle, .puzzle-error #modifiers {\n display: none;\n}\n\n.puzzle-error:not(.puzzle-loaded) #error {\n display: flex;\n}\n\n.puzzle-solved #puzzle {\n cursor: default;\n}\n\n.puzzle-solved footer {\n display: none;\n}\n\n.text {\n padding: 0 .25em;\n}\n\n@media (width <= 600px) {\n body > header {\n border-radius: 0;\n width: 100%;\n max-width: 100%;\n top: 0;\n }\n\n body > header .flex-left, body > header .flex-right {\n order: 0;\n }\n\n body > header .flex-center {\n border-top: 1px solid #ddd;\n flex: 100%;\n order: 1;\n }\n\n #actions {\n border: 0;\n }\n}\n\n@media (width <= 1024px) {\n dialog {\n width: 100%;\n }\n}\n/*# sourceMappingURL=index.54dc852b.css.map */\n","::backdrop {\n background-color: white;\n opacity: 0.75;\n}\n\nhtml,\nbody {\n background-color: #ccc;\n color: #333;\n font-family: 'Noto Sons Mono', monospace;\n height: 100%;\n margin: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n}\n\nbody {\n display: flex;\n flex-direction: column;\n}\n\ncanvas {\n display: block;\n position: relative;\n touch-action: none;\n z-index: 0;\n}\n\ncode {\n background-color: #f4f4f4;\n}\n\ndetails {\n border-bottom: 1px solid #ddd;\n border-top: 1px solid #ddd;\n padding: 1em;\n}\n\ndetails + details {\n border-top: none;\n}\n\ndetails > details {\n border: none;\n}\n\ndetails > summary {\n cursor: pointer;\n}\n\ndialog {\n background-color: white;\n box-shadow: 0 0 0.75rem 0.5rem rgba(0, 0, 0, 0.25);\n border: 1px solid #999;\n padding: 0;\n width: 50%;\n}\n\ndialog .flex-left {\n flex: 2;\n}\n\ndialog details h3,\ndialog details h4,\ndialog details p {\n margin-left: 0;\n margin-right: 0;\n padding-left: 0;\n padding-right: 0;\n}\n\ndialog h1 {\n margin: 0;\n padding: 0;\n}\n\ndialog h3 {\n padding: 0.25rem 1rem;\n}\n\ndialog h4 {\n padding: 0 1rem;\n}\n\ndialog header {\n align-items: center;\n background-color: #333;\n color: white;\n display: flex;\n padding: 1rem;\n}\n\ndialog header button {\n border: none;\n background: none;\n color: white;\n cursor: pointer;\n}\n\ndialog p {\n margin: 1em;\n}\n\ndialog button {\n padding: 0.5em 1em;\n}\n\ndialog footer {\n align-items: center;\n background-color: #eee;\n border-top: 1px solid #ddd;\n display: flex;\n padding: 0.5em 1em;\n}\n\ndialog footer ul {\n align-items: center;\n display: flex;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\ndialog footer ul li {\n border-left: 1px solid #ddd;\n margin-left: 0.5em;\n padding-left: 0.5em;\n}\n\ndialog footer ul li:first-child {\n border: none;\n margin: 0;\n padding: 0;\n}\n\nbody > footer,\nbody > header {\n background-color: white;\n border-radius: 0.5rem;\n box-shadow: 0 0 0.5rem 0.25rem rgba(0, 0, 0, 0.35);\n margin: 0 auto;\n max-width: calc(100% - 2em);\n min-width: fit-content;\n overflow: hidden;\n position: absolute;\n /* Prevent Chrome from trying to open search on tap in mobile. */\n user-select: none;\n width: fit-content;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n z-index: 1;\n}\n\nbody > header {\n left: 0;\n right: 0;\n top: 1em;\n}\n\nbody > footer {\n display: none;\n bottom: 1em;\n flex-flow: column wrap;\n left: 0;\n right: 0;\n}\n\nbody > footer.active {\n display: flex;\n}\n\nmain {\n flex: auto;\n}\n\n#actions {\n border-left: 1px solid #ddd;\n border-right: 1px solid #ddd;\n}\n\n#doorbell.doorbell-inline #doorbell-container {\n background-color: #eee;\n border: 1px solid #ccc;\n margin: 0;\n padding: 1em;\n width: auto;\n}\n\n#doorbell form legend {\n display: none;\n}\n\n#error,\n#puzzle {\n cursor: pointer;\n}\n\n#error {\n align-items: center;\n color: #666;\n display: none;\n height: 100%;\n font-size: 6em;\n justify-content: center;\n}\n\n#footer-message {\n border-bottom: 1px solid #ddd;\n}\n\n#header-message {\n border-top: 1px solid #ddd;\n}\n\n#header-navigation {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n}\n\n#logo {\n margin: 2em 0 1em 0;\n max-width: 320px;\n width: 75%;\n}\n\n#modifiers {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n margin: -1px 0;\n user-select: none;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n}\n\n#modifiers li {\n border: 1px solid #ddd;\n margin: 0 0 -1px -1px;\n}\n\n#puzzle-id {\n appearance: none;\n border: none;\n border-left: 1px solid #ddd;\n cursor: pointer;\n font-size: 1em;\n font-weight: bold;\n padding: 1em 2em 1em 1em;\n}\n\n#puzzle-id:hover {\n background-color: #eee;\n}\n\n#puzzle-id:focus-visible {\n background-color: #333;\n color: white;\n fill: white;\n outline: none;\n}\n\n#puzzle-id:focus-visible + svg {\n fill: white;\n}\n\n#selector {\n align-items: stretch;\n display: flex;\n position: relative;\n}\n\n#selector svg {\n position: absolute;\n right: 0.75rem;\n top: calc(50% - 5px);\n}\n\n#solution {\n align-items: center;\n cursor: default;\n line-height: 24px;\n}\n\n#solution .icon {\n margin-left: 0.5em;\n}\n\n#symbols {\n display: none;\n}\n\n#version {\n color: #999;\n}\n\n/** Classes */\n\n.beam {\n color: white;\n display: inline-block;\n height: 1em;\n width: 1em;\n}\n\n.beam::selection {\n color: white;\n background-color: black;\n}\n\n.button {\n background-color: #eee;\n border: 1px solid #ccc;\n color: #333;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n padding: 0.5em 1em;\n text-decoration: none;\n}\n\n.button:hover {\n background-color: #ddd;\n border-color: #aaa;\n cursor: pointer;\n}\n\n.buttons {\n grid-gap: 1em;\n margin: 1em 0;\n}\n\n.flex-center,\n.flex-left,\n.flex-right {\n align-items: stretch;\n display: flex;\n flex: 1;\n}\n\n.flex-center {\n justify-content: center;\n}\n\n.flex-left {\n justify-content: flex-start;\n}\n\n.flex-right {\n justify-content: flex-end;\n}\n\n.grab #puzzle {\n cursor: grabbing;\n}\n\n/* https://developers.google.com/fonts/docs/material_icons */\n.material-symbols-outlined {\n font-variation-settings:\n 'FILL' 0,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n min-height: 24px;\n overflow: hidden;\n user-select: none;\n vertical-align: middle;\n width: 24px;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n}\n\n.material-symbols-outlined.fill {\n font-variation-settings:\n 'FILL' 1,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n user-select: none;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n}\n\n.menu {\n align-items: stretch;\n display: flex;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.menu li {\n align-items: center;\n border-left: 1px solid #ddd;\n cursor: pointer;\n display: flex;\n padding: 1em;\n}\n\n.menu.non-interactive li,\n.menu li.non-interactive {\n cursor: default;\n}\n\n.menu li:first-child {\n border: none;\n}\n\n.menu:not(.non-interactive) li:not(.disabled,.non-interactive,.selected):hover {\n background-color: #eee;\n}\n\n.menu li.disabled {\n color: #ccc;\n cursor: default;\n}\n\n.menu li.selected {\n background-color: #333;\n box-sizing: border-box;\n color: white;\n}\n\n.message {\n align-items: center;\n background-color: #eee;\n display: flex;\n flex: 100%;\n justify-content: center;\n line-height: 24px;\n min-height: 24px;\n padding: 1em;\n}\n\n.message:empty {\n display: none;\n}\n\n.puzzle-error .flex-left,\n.puzzle-error .flex-right {\n flex: 0;\n}\n\n.puzzle-error:not(.puzzle-loaded) #puzzle,\n.puzzle-error #modifiers {\n display: none;\n}\n\n.puzzle-error:not(.puzzle-loaded) #error {\n display: flex;\n}\n\n.puzzle-solved #puzzle {\n cursor: default;\n}\n\n.puzzle-solved footer {\n display: none;\n}\n\n.text {\n padding: 0 0.25em;\n}\n\n@media (max-width: 600px) {\n body > header {\n max-width: 100%;\n width: 100%;\n }\n\n body > header {\n border-radius: 0;\n top: 0;\n }\n\n body > header .flex-left,\n body > header .flex-right {\n order: 0;\n }\n\n body > header .flex-center {\n border-top: 1px solid #ddd;\n flex: 100%;\n order: 1;\n }\n\n #actions {\n border: 0;\n }\n}\n\n@media (max-width: 1024px) {\n dialog {\n width: 100%;\n }\n}\n"],"names":[],"version":3,"file":"index.54dc852b.css.map"} \ No newline at end of file diff --git a/index.f6478a7d.js b/index.5b31326c.js similarity index 83% rename from index.f6478a7d.js rename to index.5b31326c.js index e41471f..3d9b61b 100644 --- a/index.f6478a7d.js +++ b/index.5b31326c.js @@ -28,5 +28,5 @@ let t,e,i,n,s;function r(t,e,i,n){Object.defineProperty(t,e,{get:i,set:n,enumera * Acorn is a tiny, fast JavaScript parser written in JavaScript, * created by Marijn Haverbeke and released under an MIT license. * - */(function(e,i){var n=(e=e||u("gFNhN")).window,s=e.document,r=new function(){var t=/^(statics|enumerable|beans|preserve)$/,e=[],n=e.slice,s=Object.create,r=Object.getOwnPropertyDescriptor,a=Object.defineProperty,o=e.forEach||function(t,e){for(var i=0,n=this.length;i0||h+s0?[["dictionary",n.definitions],s]:s},deserialize:function(t,e,i,n,s){var a=t,o=!i,l=o&&t&&t.length&&"dictionary"===t[0][0];if(i=i||{},Array.isArray(t)){var h=t[0],u="dictionary"===h;if(1==t.length&&/^#/.test(h))return i.dictionary[h];h=r.exports[h],a=[];for(var c=h?1:0,d=t.length;ct.length&&(n=t.length);for(var l=0;l0){var r=e[s],a=r&&r[n];a&&a.call(this,s)}}},statics:{inject:function t(e){var i=e._events;if(i){var n={};r.each(i,function(t,i){var s="string"==typeof t,a=s?t:i,o=r.capitalize(a),l=a.substring(2).toLowerCase();n[l]=s?{}:t,a="_"+a,e["get"+o]=function(){return this[a]},e["set"+o]=function(t){var e=this[a];e&&this.off(l,e),t&&this.on(l,t),this[a]=t}}),e._eventTypes=n}return t.base.apply(this,arguments)}}},o=r.extend({_class:"PaperScope",initialize:function t(){tl=this,this.settings=new r({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 i=t.prototype;if(!this.support){var n=ts.getContext(1,1)||{};i.support={nativeDash:"setLineDash"in n||"mozDash"in n,nativeBlendModes:tr.nativeModes},ts.release(n)}if(!this.agent){var s=e.navigator.userAgent.toLowerCase(),a=(/(darwin|win|mac|linux|freebsd|sunos)/.exec(s)||[])[0],o="darwin"===a?"mac":a,l=i.agent=i.browser={platform:o};o&&(l[o]=!0),s.replace(/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,function(t,e,i,n,s){if(!l.chrome){var r="opera"===e?n:/^(node|trident)$/.test(e)?s:i;l.version=r,l.versionNumber=parseFloat(r),e=({trident:"msie",jsdom:"node"})[e]||e,l.name=e,l[e]=!0}}),l.chrome&&delete l.webkit,l.atom&&delete l.chrome}},version:"0.12.18",getView:function(){var t=this.project;return t&&t._view},getPaper:function(){return this},execute:function(t,e){var i=tl.PaperScript.execute(t,this,e);return $.updateFocus(),i},install:function(t){var e=this;for(var i in r.each(["project","view","tool"],function(i){r.define(t,i,{configurable:!0,get:function(){return e[i]}})}),this)!/^_/.test(i)&&this[i]&&(t[i]=this[i])},setup:function(t){return tl=this,this.project=new w(t),this},createCanvas:function(t,e){return ts.getCanvas(t,e)},activate:function(){tl=this},clear:function(){for(var t=this.projects,e=this.tools,i=t.length-1;i>=0;i--)t[i].remove();for(var i=e.length-1;i>=0;i--)e[i].remove()},remove:function(){this.clear(),delete o._scopes[this._id]},statics:new function(){function t(t){return t+="Attribute",function(e,i){return e[t](i)||e[t]("data-paper-"+i)}}return{_scopes:{},_id:0,get:function(t){return this._scopes[t]||null},getAttribute:t("get"),hasAttribute:t("has")}}}),l=r.extend(a,{initialize:function(t){this._scope=tl,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&&(r.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()}}),h={findItemBoundsCollisions:function(t,e,i){function n(t){for(var e=Array(t.length),i=0;i>>1;a[t[r]][e]=o;(s||(x&&O||w&&P)&&I>=A[d]-i&&E<=A[p]+i)&&(x&&O&&k.push(r?T:T-o),w&&P&&_[T].push(b))}}if(x&&(t===e&&k.push(v),_[v]=k),m.length){var M=y[c],N=h(m,c,M);m.splice(N+1,0,v)}else m.push(v)}for(var g=0;g<_.length;g++){var L=_[g];L&&L.sort(function(t,e){return t-e})}return _}},c=r.extend({initialize:function(t){this.precision=r.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,i){return this.number(t)+(i||",")+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)}});c.instance=new c;var d=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]],i=Math.abs,n=Math.sqrt,s=Math.pow,r=Math.log2||function(t){return Math.log(t)*Math.LOG2E};function a(t,e,i){return ti?i:t}function o(t,e,n){function s(t){var e=0x8000001*t,i=t-e+e;return[i,t-i]}var r=e*e-t*n,a=e*e+t*n;if(3*i(r)1e8)?s(2,-Math.round(r(t))):0}return{EPSILON:1e-12,MACHINE_EPSILON:112e-18,CURVETIME_EPSILON:1e-8,GEOMETRIC_EPSILON:1e-7,TRIGONOMETRIC_EPSILON:1e-8,ANGULAR_EPSILON:1e-5,KAPPA:4*(n(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(i,n,s,r){for(var a=t[r-2],o=e[r-2],l=(s-n)*.5,h=l+n,u=0,c=r+1>>1,d=1&r?o[u++]*i(h):0;u0?(r=n,n=d<=s?(s+r)*.5:d):(s=n,n=d>=r?(s+r)*.5:d)}return a(n,s,r)},solveQuadratic:function(t,e,s,r,h,u){var c,d=1/0;if(1e-12>i(t)){if(1e-12>i(e))return 1e-12>i(s)?-1:0;c=-s/e}else{var p=o(t,e*=-.5,s);if(p&&112e-18>i(p)){var f=l(i(t),i(e),i(s));f&&(t*=f,e*=f,s*=f,p=o(t,e,s))}if(p>=-112e-18){var g=p<0?0:n(p),m=e+(e<0?-g:g);0===m?d=-(c=s/t):(c=m/t,d=s/m)}}var _=0,v=null==h,y=h-1e-12,b=u+1e-12;return isFinite(c)&&(v||c>y&&cy&&di(t))t=e,f=r,g=o,p=1/0;else if(1e-12>i(o))f=e,g=r,p=0;else{y(-(e/t)/3);var b=_/t,x=s(i(b),1/3),w=b<0?-1:1,k=-m/t,C=k>0?1.324717957244746*Math.max(x,n(k)):x,S=p-w*C;if(S!==p){do y(S),S=0===m?p:p-_/m/1.0000000000000002;while(w*S>w*p)i(t)*p*p>i(o/p)&&(f=((g=-o/p)-r)/p)}}var T=d.solveQuadratic(t,f,g,h,u,c),I=null==u;return isFinite(p)&&(0===T||T>0&&p!==h[0]&&p!==h[1])&&(I||p>u-1e-12&&p1?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),s=0)}return n&&(this.__read=s),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 f(this.x,this.y)},toString:function(){var t=c.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 i=t/this.getLength();d.isZero(i)&&this.getAngle(),this._set(this.x*i,this.y*i)}},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)return this.isZero()?this._angle||0:this._angle=Math.atan2(this.y,this.x);var t=f.read(arguments),e=this.getLength()*t.getLength();if(d.isZero(e))return NaN;var i=this.dot(t)/e;return Math.acos(i<-1?-1:i>1?1:i)},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=f.read(arguments);return 180*Math.atan2(this.cross(t),this.dot(t))/Math.PI},getDistance:function(){var t=arguments,e=f.read(t),i=e.x-this.x,n=e.y-this.y,s=i*i+n*n;return r.read(t)?s:Math.sqrt(s)},normalize:function(t){t===i&&(t=1);var e=this.getLength(),n=0!==e?t/e:0,s=new f(this.x*n,this.y*n);return n>=0&&(s._angle=this._angle),s},rotate:function(t,e){if(0===t)return this.clone();t=t*Math.PI/180;var i=e?this.subtract(e):this,n=Math.sin(t),s=Math.cos(t);return i=new f(i.x*s-i.y*n,i.x*n+i.y*s),e?i.add(e):i},transform:function(t){return t?t._transformPoint(this):this},add:function(){var t=f.read(arguments);return new f(this.x+t.x,this.y+t.y)},subtract:function(){var t=f.read(arguments);return new f(this.x-t.x,this.y-t.y)},multiply:function(){var t=f.read(arguments);return new f(this.x*t.x,this.y*t.y)},divide:function(){var t=f.read(arguments);return new f(this.x/t.x,this.y/t.y)},modulo:function(){var t=f.read(arguments);return new f(this.x%t.x,this.y%t.y)},negate:function(){return new f(-this.x,-this.y)},isInside:function(){return v.read(arguments).contains(this)},isClose:function(){var t=arguments,e=f.read(t),i=r.read(t);return this.getDistance(e)<=i},isCollinear:function(){var t=f.read(arguments);return f.isCollinear(this.x,this.y,t.x,t.y)},isColinear:"#isCollinear",isOrthogonal:function(){var t=f.read(arguments);return f.isOrthogonal(this.x,this.y,t.x,t.y)},isZero:function(){var t=d.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=f.read(arguments);return this.x*t.x+this.y*t.y},cross:function(){var t=f.read(arguments);return this.x*t.y-this.y*t.x},project:function(){var t=f.read(arguments),e=t.isZero()?0:this.dot(t)/t.dot(t);return new f(t.x*e,t.y*e)},statics:{min:function(){var t=arguments,e=f.read(t),i=f.read(t);return new f(Math.min(e.x,i.x),Math.min(e.y,i.y))},max:function(){var t=arguments,e=f.read(t),i=f.read(t);return new f(Math.max(e.x,i.x),Math.max(e.y,i.y))},random:function(){return new f(Math.random(),Math.random())},isCollinear:function(t,e,i,n){return Math.abs(t*n-e*i)<=1e-8*Math.sqrt((t*t+e*e)*(i*i+n*n))},isOrthogonal:function(t,e,i,n){return Math.abs(t*i+e*n)<=1e-8*Math.sqrt((t*t+e*e)*(i*i+n*n))}}},r.each(["round","ceil","floor","abs"],function(t){var e=Math[t];this[t]=function(){return new f(e(this.x),e(this.y))}},{})),g=f.extend({initialize:function(t,e,i,n){this._x=t,this._y=e,this._owner=i,this._setter=n},_set:function(t,e,i){return this._x=t,this._y=e,i||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}}),m=r.extend({_class:"Size",_readIndex:!0,initialize:function(t,e){var i=typeof t,n=this.__read,s=0;if("number"===i){var r="number"==typeof e;this._set(t,r?e:t),n&&(s=r?2:1)}else if("undefined"===i||null===t)this._set(0,0),n&&(s=null===t?1:0);else{var a="string"===i?t.split(/[\s,]+/)||[]:t;s=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),s=0)}return n&&(this.__read=s),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 m(this.width,this.height)},toString:function(){var t=c.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=m.read(arguments);return new m(this.width+t.width,this.height+t.height)},subtract:function(){var t=m.read(arguments);return new m(this.width-t.width,this.height-t.height)},multiply:function(){var t=m.read(arguments);return new m(this.width*t.width,this.height*t.height)},divide:function(){var t=m.read(arguments);return new m(this.width/t.width,this.height/t.height)},modulo:function(){var t=m.read(arguments);return new m(this.width%t.width,this.height%t.height)},negate:function(){return new m(-this.width,-this.height)},isZero:function(){var t=d.isZero;return t(this.width)&&t(this.height)},isNaN:function(){return isNaN(this.width)||isNaN(this.height)},statics:{min:function(t,e){return new m(Math.min(t.width,e.width),Math.min(t.height,e.height))},max:function(t,e){return new m(Math.max(t.width,e.width),Math.max(t.height,e.height))},random:function(){return new m(Math.random(),Math.random())}}},r.each(["round","ceil","floor","abs"],function(t){var e=Math[t];this[t]=function(){return new m(e(this.width),e(this.height))}},{})),_=m.extend({initialize:function(t,e,i,n){this._width=t,this._height=e,this._owner=i,this._setter=n},_set:function(t,e,i){return this._width=t,this._height=e,i||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)}}),v=r.extend({_class:"Rectangle",_readIndex:!0,beans:!0,initialize:function(t,e,n,s){var a,o=arguments,l=typeof t;if("number"===l?(this._set(t,e,n,s),a=4):"undefined"===l||null===t?(this._set(0,0,0,0),a=null===t?1:0):1===o.length&&(Array.isArray(t)?(this._set.apply(this,t),a=1):t.x!==i||t.width!==i?(this._set(t.x||0,t.y||0,t.width||0,t.height||0),a=1):t.from===i&&t.to===i&&(this._set(0,0,0,0),r.readSupported(o,this)&&(a=1))),a===i){var h,u,c=f.readNamed(o,"from"),d=r.peek(o),p=c.x,g=c.y;if(d&&d.x!==i||r.hasNamed(o,"to")){var _=f.readNamed(o,"to");h=_.x-p,u=_.y-g,h<0&&(p=_.x,h=-h),u<0&&(g=_.y,u=-u)}else{var v=m.read(o);h=v.width,u=v.height}this._set(p,g,h,u),a=o.__index}var y=o.__filtered;return y&&(this.__filtered=y),this.__read&&(this.__read=a),this},set:"#initialize",_set:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},clone:function(){return new v(this.x,this.y,this.width,this.height)},equals:function(t){var e=r.isPlainValue(t)?v.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=c.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?f:g)(this.x,this.y,this,"setPoint")},setPoint:function(){var t=f.read(arguments);this.x=t.x,this.y=t.y},getSize:function(t){return new(t?m:_)(this.width,this.height,this,"setSize")},_fw:1,_fh:1,setSize:function(){var t=m.read(arguments),e=this._sx,i=this._sy,n=t.width,s=t.height;e&&(this.x+=(this.width-n)*e),i&&(this.y+=(this.height-s)*i),this.width=n,this.height=s,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+=(t-this.x)*2*this._sx),this.width=(t-this.x)*2),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+=(t-this.y)*2*this._sy),this.height=(t-this.y)*2),this._sy=.5,this._fh=0},getCenter:function(t){return new(t?f:g)(this.getCenterX(),this.getCenterY(),this,"setCenter")},setCenter:function(){var t=f.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!==i||4===(Array.isArray(t)?t:arguments).length?this._containsRectangle(v.read(arguments)):this._containsPoint(f.read(arguments))},_containsPoint:function(t){var e=t.x,i=t.y;return e>=this.x&&i>=this.y&&e<=this.x+this.width&&i<=this.y+this.height},_containsRectangle:function(t){var e=t.x,i=t.y;return e>=this.x&&i>=this.y&&e+t.width<=this.x+this.width&&i+t.height<=this.y+this.height},intersects:function(){var t=v.read(arguments),e=r.read(arguments)||0;return t.x+t.width>this.x-e&&t.y+t.height>this.y-e&&t.x=4&&(t[1]+=n?"Y":"X");var s=t[n?0:1],r=t[n?1:0],a="get"+s,o="get"+r,l="set"+s,h="set"+r,u="get"+i,c="set"+i;this[u]=function(t){return new(t?f:g)(this[a](),this[o](),this,c)},this[c]=function(){var t=f.read(arguments);this[l](t.x),this[h](t.y)}},{beans:!0})),y=v.extend({initialize:function(t,e,i,n,s,r){this._set(t,e,i,n,!0),this._owner=s,this._setter=r},_set:function(t,e,i,n,s){return this._x=t,this._y=e,this._width=i,this._height=n,s||this._owner[this._setter](this),this}},new function(){var t=v.prototype;return r.each(["x","y","width","height"],function(t){var e=r.capitalize(t),i="_"+t;this["get"+e]=function(){return this[i]},this["set"+e]=function(t){this[i]=t,this._dontNotify||this._owner[this._setter](this)}},r.each(["Point","Size","Center","Left","Top","Right","Bottom","CenterX","CenterY","TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],function(e){var i="set"+e;this[i]=function(){this._dontNotify=!0,t[i].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)}}))}),b=r.extend({_class:"Matrix",initialize:function t(e,i){var n=arguments,s=n.length,r=!0;if(s>=6?this._set.apply(this,n):1===s||2===s?e instanceof t?this._set(e._a,e._b,e._c,e._d,e._tx,e._ty,i):Array.isArray(e)?this._set.apply(this,i?e.concat([i]):e):r=!1:s?r=!1:this.reset(),!r)throw Error("Unsupported matrix parameters");return this},set:"#initialize",_set:function(t,e,i,n,s,r,a){return this._a=t,this._b=e,this._c=i,this._d=n,this._tx=s,this._ty=r,a||this._changed(),this},_serialize:function(t,e){return r.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 b(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=c.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 i=this._owner;return!!i&&(i.transform(null,r.pick(t,!0),e),this.isIdentity())},translate:function(){var t=f.read(arguments),e=t.x,i=t.y;return this._tx+=e*this._a+i*this._c,this._ty+=e*this._b+i*this._d,this._changed(),this},scale:function(){var t=arguments,e=f.read(t),i=f.read(t,0,{readNull:!0});return i&&this.translate(i),this._a*=e.x,this._b*=e.x,this._c*=e.y,this._d*=e.y,i&&this.translate(i.negate()),this._changed(),this},rotate:function(t){t*=Math.PI/180;var e=f.read(arguments,1),i=e.x,n=e.y,s=Math.cos(t),r=Math.sin(t),a=i-i*s+n*r,o=n-i*r-n*s,l=this._a,h=this._b,u=this._c,c=this._d;return this._a=s*l+r*u,this._b=s*h+r*c,this._c=-r*l+s*u,this._d=-r*h+s*c,this._tx+=a*l+o*u,this._ty+=a*h+o*c,this._changed(),this},shear:function(){var t=arguments,e=f.read(t),i=f.read(t,0,{readNull:!0});i&&this.translate(i);var n=this._a,s=this._b;return this._a+=e.y*this._c,this._b+=e.y*this._d,this._c+=e.x*n,this._d+=e.x*s,i&&this.translate(i.negate()),this._changed(),this},skew:function(){var t=arguments,e=f.read(t),i=f.read(t,0,{readNull:!0}),n=Math.PI/180,s=new f(Math.tan(e.x*n),Math.tan(e.y*n));return this.shear(s,i)},append:function(t,e){if(t){var i=this._a,n=this._b,s=this._c,r=this._d,a=t._a,o=t._c,l=t._b,h=t._d,u=t._tx,c=t._ty;this._a=a*i+l*s,this._c=o*i+h*s,this._b=a*n+l*r,this._d=o*n+h*r,this._tx+=u*i+c*s,this._ty+=u*n+c*r,e||this._changed()}return this},prepend:function(t,e){if(t){var i=this._a,n=this._b,s=this._c,r=this._d,a=this._tx,o=this._ty,l=t._a,h=t._c,u=t._b,c=t._d,d=t._tx,p=t._ty;this._a=l*i+h*n,this._c=l*s+h*r,this._b=u*i+c*n,this._d=u*s+c*r,this._tx=l*a+h*o+d,this._ty=u*a+c*o+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,i=this._c,n=this._d,s=this._tx,r=this._ty,a=t*n-e*i,o=null;return a&&!isNaN(a)&&isFinite(s)&&isFinite(r)&&(this._a=n/a,this._b=-e/a,this._c=-i/a,this._d=t/a,this._tx=(i*r-n*s)/a,this._ty=(e*s-t*r)/a,o=this),o},inverted:function(){return this.clone().invert()},concatenate:"#append",preConcatenate:"#prepend",chain:"#appended",_shiftless:function(){return new b(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,i){return arguments.length<3?this._transformPoint(f.read(arguments)):this._transformCoordinates(t,e,i)},_transformPoint:function(t,e,i){var n=t.x,s=t.y;return e||(e=new f),e._set(n*this._a+s*this._c+this._tx,n*this._b+s*this._d+this._ty,i)},_transformCoordinates:function(t,e,i){for(var n=0,s=2*i;nr[l]&&(r[l]=o)}return e||(e=new v),e._set(s[0],s[1],r[0]-s[0],r[1]-s[1],i)},inverseTransform:function(){return this._inverseTransform(f.read(arguments))},_inverseTransform:function(t,e,i){var n=this._a,s=this._b,r=this._c,a=this._d,o=this._tx,l=this._ty,h=n*a-s*r,u=null;if(h&&!isNaN(h)&&isFinite(o)&&isFinite(l)){var c=t.x-this._tx,d=t.y-this._ty;e||(e=new f),u=e._set((c*a-d*r)/h,(d*n-c*s)/h,i)}return u},decompose:function(){var t,e,i,n=this._a,s=this._b,r=this._c,a=this._d,o=n*a-s*r,l=Math.sqrt,h=Math.atan2,u=180/Math.PI;if(0!==n||0!==s){var c=l(n*n+s*s);t=Math.acos(n/c)*(s>0?1:-1),e=[c,o/c],i=[h(n*r+s*a,c*c),0]}else if(0!==r||0!==a){var d=l(r*r+a*a);t=Math.asin(r/d)*(a>0?1:-1),e=[o/d,d],i=[0,h(n*r+s*a,d*d)]}else t=0,i=e=[0,0];return{translation:this.getTranslation(),rotation:t*u,scaling:new f(e),skewing:new f(i[0]*u,i[1]*u)}},getValues:function(){return[this._a,this._b,this._c,this._d,this._tx,this._ty]},getTranslation:function(){return new f(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)}},r.each(["a","b","c","d","tx","ty"],function(t){var e=r.capitalize(t),i="_"+t;this["get"+e]=function(){return this[i]},this["set"+e]=function(t){this[i]=t,this._changed()}},{})),x=r.extend({_class:"Line",initialize:function(t,e,i,n,s){var r=!1;arguments.length>=4?(this._px=t,this._py=e,this._vx=i,this._vy=n,r=s):(this._px=t.x,this._py=t.y,this._vx=e.x,this._vy=e.y,r=i),r||(this._vx-=this._px,this._vy-=this._py)},getPoint:function(){return new f(this._px,this._py)},getVector:function(){return new f(this._vx,this._vy)},getLength:function(){return this.getVector().getLength()},intersect:function(t,e){return x.intersect(this._px,this._py,this._vx,this._vy,t._px,t._py,t._vx,t._vy,!0,e)},getSide:function(t,e){return x.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 x.getSignedDistance(this._px,this._py,this._vx,this._vy,t.x,t.y,!0)},isCollinear:function(t){return f.isCollinear(this._vx,this._vy,t._vx,t._vy)},isOrthogonal:function(t){return f.isOrthogonal(this._vx,this._vy,t._vx,t._vy)},statics:{intersect:function(t,e,i,n,s,r,a,o,l,h){l||(i-=t,n-=e,a-=s,o-=r);var u=i*o-n*a;if(!d.isMachineZero(u)){var c=t-s,p=e-r,g=(a*p-o*c)/u,m=(i*p-n*c)/u;if(h||-1e-12=1?1:g),new f(t+g*i,e+g*n)}},getSide:function(t,e,i,n,s,r,a,o){a||(i-=t,n-=e);var l=s-t,h=l*n-(r-e)*i;return!o&&d.isMachineZero(h)&&(h=(l*i+l*i)/(i*i+n*n))>=0&&h<=1&&(h=0),h<0?-1:h>0?1:0},getSignedDistance:function(t,e,i,n,s,r,a){return a||(i-=t,n-=e),0===i?n>0?s-t:t-s:0===n?i<0?r-e:e-r:((s-t)*n-(r-e)*i)/(n>i?n*Math.sqrt(1+i*i/(n*n)):i*Math.sqrt(1+n*n/(i*i)))},getDistance:function(t,e,i,n,s,r,a){return Math.abs(x.getSignedDistance(t,e,i,n,s,r,a))}}}),w=l.extend({_class:"Project",_list:"projects",_reference:"project",_compactSerialize:!0,initialize:function(t){l.call(this,!0),this._children=[],this._namedChildren={},this._activeLayer=null,this._currentStyle=new H(null,null,this),this._view=$.create(this,t||ts.getCanvas(1,1)),this._selectionItems={},this._selectionCount=0,this._updateVersion=0},_serialize:function(t,e){return r.serialize(this._children,t,!0,e)},_changed:function(t,e){if(1&t){var i=this._view;i&&(i._needsUpdate=!0,!i._requested&&i._autoUpdate&&i.requestUpdate())}var n=this._changes;if(n&&e){var s=this._changesById,r=e._id,a=s[r];a?a.flags|=t:n.push(s[r]={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 S({project:this,insert:!0})},getSymbolDefinitions:function(){var t=[],e={};return this.getItems({class:E,match:function(i){var n=i._definition,s=n._id;return e[s]||(e[s]=!0,t.push(n)),!1}}),t},getSymbols:"getSymbolDefinitions",getSelectedItems:function(){var t=this._selectionItems,e=[];for(var i in t){var n=t[i],s=n._selection;1&s&&n.isInserted()?e.push(n):s||this._updateSelection(n)}return e},_updateSelection:function(t){var e=t._id,i=this._selectionItems;t._selection?i[e]!==t&&(this._selectionCount++,i[e]=t):i[e]===t&&(this._selectionCount--,delete i[e])},selectAll:function(){for(var t=this._children,e=0,i=t.length;e0){t.save(),t.strokeWidth=1;var l=this._selectionItems,h=this._scope.settings.handleSize,u=this._updateVersion;for(var c in l)l[c]._drawSelection(t,e,h,l,u);t.restore()}}}),k=r.extend(a,{statics:{extend:function t(e){return e._serializeFields&&(e._serializeFields=r.set({},this.prototype._serializeFields,e._serializeFields)),t.base.apply(this,arguments)},INSERT:{insert:!0},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 b,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 r.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&&r.isPlainObject(t),s=n&&!0===t.internal,a=this._matrix=new b,o=n&&t.project||tl.project,l=tl.settings;return this._id=s?null:p.get(),this._parent=this._index=null,this._applyMatrix=this._canApplyMatrix&&l.applyMatrix,e&&a.translate(e),a._owner=this,this._style=new H(o._currentStyle,this,o),s||n&&!1==t.insert||!l.insertItems&&!(n&&!0==t.insert)?this._setProject(o):(n&&t.parent||o)._insertItem(i,this,!0),n&&t!==k.NO_INSERT&&t!==k.INSERT&&this.set(t,{internal:!0,insert:!0,project:!0,parent:!0}),n},_serialize:function(t,e){var i={},n=this;function s(s){for(var a in s){var o=n[a];r.equals(o,"leading"===a?1.2*s.fontSize:s[a])||(i[a]=r.serialize(o,t,"data"!==a,e))}}return s(this._serializeFields),this instanceof C||s(this._style._defaults),[this._class,i]},_changed:function(t){var e=this._symbol,n=this._parent||e,s=this._project;8&t&&(this._bounds=this._position=this._decomposed=i),16&t&&(this._globalMatrix=i),n&&72&t&&k._clearBoundsCache(n),2&t&&k._clearBoundsCache(this),s&&s._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 Error("Names consisting only of numbers are not supported.");var e=this._getOwner();if(t&&e){var n=e._children,s=e._namedChildren;(s[t]=s[t]||[]).push(this),t in n||(n[t]=this)}this._name=t||i,this._changed(256)},getStyle:function(){return this._style},setStyle:function(t){this.getStyle().set(t)}},r.each(["locked","visible","blendMode","opacity","guide"],function(t){var e=r.capitalize(t),i="_"+t,n={locked:256,visible:265};this["get"+e]=function(){return this[i]},this["set"+e]=function(e){e!=this[i]&&(this[i]=e,this._changed(n[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 i=this._selection;this.setSelection(e?i|t:i&~t)},isSelected:function(){if(this._selectChildren){for(var t=this._children,e=0,i=t.length;e=0;i--)if(e[i].contains(t))return!0;return!1}return t.isInside(this.getInternalBounds())},isInside:function(){return v.read(arguments).contains(this.getBounds())},_asPathItem:function(){return new R.Rectangle({rectangle:this.getInternalBounds(),matrix:this._matrix,insert:!1})},intersects:function(t,e){return t instanceof k&&this._asPathItem().getIntersections(t._asPathItem(),null,e,!0).length>0}},new function(){function t(){var t=arguments;return this._hitTest(f.read(t),P.getOptions(t))}function e(){var t=arguments,e=f.read(t),i=P.getOptions(t),n=[];return this._hitTest(e,new r({all:n},i)),n}function i(t,e,i,n){var s=this._children;if(s)for(var r=s.length-1;r>=0;r--){var a=s[r],o=a!==n&&a._hitTest(t,e,i);if(o&&!e.all)return o}return null}return w.inject({hitTest:t,hitTestAll:e,_hitTest:i}),{hitTest:t,hitTestAll:e,_hitTestChildren:i}},{_hitTest:function(t,e,i){if(this._locked||!this._visible||this._guide&&!e.guides||this.isEmpty())return null;var n=this._matrix,s=i?i.appended(n):this.getGlobalMatrix().prepend(this.getView()._matrix),a=Math.max(e.tolerance,1e-12),o=e._tolerancePadding=new m(R._getStrokePadding(a,n._shiftless().invert()));if(!(t=n._inverseTransform(t))||!this._children&&!this.getBounds({internal:!0,stroke:!0,handle:!0}).expand(o.multiply(2))._containsPoint(t))return null;var l,h,u=!(e.guides&&!this._guide||e.selected&&!this.isSelected()||e.type&&e.type!==r.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,i){var n=i?l["get"+i]():d.getPosition();if(t.subtract(n).divide(o).length<=1)return new P(e,d,{name:i?r.hyphenate(i):e,point:n})}var g=e.position,_=e.center,v=e.bounds;if(u&&this._parent&&(g||_||v)){if((_||v)&&(l=this.getInternalBounds()),!(h=g&&f("position")||_&&f("center","Center"))&&v)for(var y=["TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],b=0;b<8&&!h;b++)h=f("bounds",y[b]);h=p(h)}return h||(h=this._hitTestChildren(t,e,s)||u&&p(this._hitTestSelf(t,e,s,this.getStrokeScaling()?null:s._shiftless().invert()))||null),h&&h.point&&(h.point=n.transform(h.point)),h},_hitTestSelf:function(t,e){if(e.fill&&this.hasFill()&&this._contains(t))return new P("fill",this)},matches:function(t,e){var i=typeof t;if("object"===i){for(var n in t)if(t.hasOwnProperty(n)&&!this.matches(n,t[n]))return!1;return!0}if("function"===i)return t(this);if("match"===t)return e(this);var s=/^(empty|editable)$/.test(t)?this["is"+r.capitalize(t)]():"type"===t?r.hyphenate(this._class):this[t];if("class"===t){if("function"==typeof e)return this instanceof e;s=this._class}if("function"==typeof e)return!!e(s);if(e){if(e.test)return e.test(s);if(r.isPlainObject(e))return function t(e,i){for(var n in e)if(e.hasOwnProperty(n)){var s=e[n],a=i[n];if(r.isPlainObject(s)&&r.isPlainObject(a)){if(!t(s,a))return!1}else if(!r.equals(s,a))return!1}return!0}(e,s)}return r.equals(s,e)},getItems:function(t){return k._getItems(this,t,this._matrix)},getItem:function(t){return k._getItems(this,t,this._matrix,null,!0)[0]||null},statics:{_getItems:function t(e,i,n,s,a){if(!s){var o="object"==typeof i&&i,l=o&&o.overlapping,h=o&&o.inside,u=l||h,c=u&&v.read([u]);s={items:[],recursive:o&&!1!==o.recursive,inside:!!h,overlapping:!!l,rect:c,path:l&&new R.Rectangle({rectangle:c,insert:!1})},o&&(i=r.filter({},i,{recursive:!0,inside:!0,overlapping:!0}))}var d=e._children,p=s.items,c=s.rect;n=c&&(n||new b);for(var f=0,g=d&&d.length;f0))break}return p}}},{importJSON:function(t){var e=r.importJSON(t,this);return e!==this?this.addChild(e):e},addChild:function(t){return this.insertChild(i,t)},insertChild:function(t,e){var i=e?this.insertChildren(t,[e]):null;return i&&i[0]},addChildren:function(t){return this.insertChildren(this._children.length,t)},insertChildren:function(t,e){var i=this._children;if(i&&e&&e.length>0){e=r.slice(e);for(var n={},s=e.length-1;s>=0;s--){var a=e[s],o=a&&a._id;!a||n[o]?e.splice(s,1):(a._remove(!1,!0),n[o]=!0)}r.splice(i,e,t,0);for(var l=this._project,h=l._changes,s=0,u=e.length;s=0;n--)i[n]._remove(!0,!1);return i.length>0&&this._changed(11),i},clear:"#removeChildren",reverseChildren:function(){if(this._children){this._children.reverse();for(var t=0,e=this._children.length;t0},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}},r.each(["rotate","scale","shear","skew"],function(t){var e="rotate"===t;this[t]=function(){var i=arguments,n=(e?r:f).read(i),s=f.read(i,0,{readNull:!0});return this.transform(new b()[t](n,s||this.getPosition(!0)))}},{translate:function(){var t=new b;return this.transform(t.translate.apply(t,arguments))},transform:function(t,e,i){var n=this._matrix,s=t&&!t.isIdentity(),r=i&&this._canApplyMatrix||this._applyMatrix&&(s||!n.isIdentity()||e&&this._children);if(!s&&!r)return this;if(s){!t.isInvertible()&&n.isInvertible()&&(n._backup=n.getValues()),n.prepend(t,!0);var a=this._style,o=a.getFillColor(!0),l=a.getStrokeColor(!0);o&&o.transform(t),l&&l.transform(t)}if(r&&(r=this._transformContent(n,e,i))){var h=this._pivot;h&&n._transformPoint(h,h,!0),n.reset(!0),i&&this._canApplyMatrix&&(this._applyMatrix=!0)}var u=this._bounds,c=this._position;(s||r)&&this._changed(25);var d=s&&u&&t.decompose();if(d&&d.skewing.isZero()&&d.rotation%90==0){for(var p in u){var f=u[p];if(f.nonscaling)delete u[p];else if(r||!f.internal){var g=f.rect;t._transformBounds(g,g)}}this._bounds=u;var m=u[this._getBoundsCacheKey(this._boundsOptions||{})];m&&(this._position=this._getPositionFromBounds(m.rect))}else s&&c&&this._pivot&&(this._position=t._transformPoint(c,c));return this},_transformContent:function(t,e,i){var n=this._children;if(n){for(var s=0,r=n.length;ss:n1&&r<4?-1:1,r>2?-1:1),o=a.multiply(s),l=o.subtract(a.multiply(n));if(new v(i?o.add(a.multiply(i)):o,l).contains(e))return{point:l,quadrant:r}}}function e(t,e,i,n){var s=t.divide(e);return(!n||s.isInQuadrant(n))&&s.subtract(s.normalize()).multiply(e).divide(i).length<=1}return{_contains:function e(i){if("rectangle"!==this._type)return .5>=i.divide(this.size).getLength();var n=t(this,i);return n?1>=i.subtract(n.point).divide(this._radius).getLength():e.base.call(this,i)},_hitTestSelf:function i(n,s,r,a){var o=!1,l=this._style,h=s.stroke&&l.hasStroke(),u=s.fill&&l.hasFill();if(h||u){var c=this._type,d=this._radius,p=h?l.getStrokeWidth()/2:0,f=s._tolerancePadding.add(R._getStrokePadding(p,!l.getStrokeScaling()&&a));if("rectangle"===c){var g=f.multiply(2),m=t(this,n,g);if(m)o=e(n.subtract(m.point),d,f,m.quadrant);else{var _=new v(this._size).setCenter(0,0),y=_.expand(g),b=_.expand(g.negate());o=y._containsPoint(n)&&!b._containsPoint(n)}}else o=e(n,d,f)}return o?new P(h?"stroke":"fill",this):i.base.apply(this,arguments)}}},{statics:new function(){function t(t,e,i,n,s){var a=r.create(T.prototype);return a._type=t,a._size=i,a._radius=n,a._initialize(r.getNamed(s),e),a}return{Circle:function(){var e=arguments,i=f.readNamed(e,"center"),n=r.readNamed(e,"radius");return t("circle",i,new m(2*n),n,e)},Rectangle:function(){var e=arguments,i=v.readNamed(e,"rectangle"),n=m.min(m.readNamed(e,"radius"),i.getSize(!0).divide(2));return t("rectangle",i.getCenter(!0),i.getSize(!0),n,e)},Ellipse:function(){var e=arguments,i=T._readEllipse(e),n=i.radius;return t("ellipse",i.center,n.multiply(2),n,e)},_readEllipse:function(t){var e,i;if(r.hasNamed(t,"radius"))e=f.readNamed(t,"center"),i=m.readNamed(t,"radius");else{var n=v.readNamed(t,"rectangle");e=n.getCenter(!0),i=n.getSize(!0).divide(2)}return{center:e,radius:i}}}}}),I=k.extend({_class:"Raster",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!1,handle:!1},_serializeFields:{crossOrigin:null,source:null},_prioritize:["crossOrigin"],_smoothing:"low",beans:!0,initialize:function(t,e){if(!this._initialize(t,e!==i&&f.read(arguments))){var n,r=typeof t,a="string"===r?s.getElementById(t):"object"===r?t:null;if(a&&a!==k.NO_INSERT){if(a.getContext||null!=a.naturalHeight)n=a;else if(a){var o=m.read(arguments);o.isZero()||(n=ts.getCanvas(o))}}n?this.setImage(n):this.setSource(t)}this._size||(this._size=new m,this._loaded=!1)},_equals:function(t){return this.getSource()===t.getSource()},copyContent:function(t){var e=t._image,i=t._canvas;if(e)this._setImage(e);else if(i){var n=ts.getCanvas(t._size);n.getContext("2d").drawImage(i,0,0),this._setImage(n)}this._crossOrigin=t._crossOrigin},getSize:function(){var t=this._size;return new _(t?t.width:0,t?t.height:0,this,"setSize")},setSize:function(t,e){var i=m.read(arguments);if(i.equals(this._size))e&&this.clear();else if(i.width>0&&i.height>0){var n=!e&&this.getElement();this._setImage(ts.getCanvas(i)),n&&this.getContext(!0).drawImage(n,0,0,i.width,i.height)}else this._canvas&&ts.release(this._canvas),this._size=i.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 f(0,0).transform(t),i=new f(1,0).transform(t).subtract(e),n=new f(0,1).transform(t).subtract(e);return new m(72/i.getLength(),72/n.getLength())},getPpi:"#getResolution",getImage:function(){return this._image},setImage:function(t){var e=this;function i(t){var i=e.getView(),n=t&&t.type||"load";i&&e.responds(n)&&(tl=i._scope,e.emit(n,new J(t)))}this._setImage(t),this._loaded?setTimeout(i,0):t&&W.add(t,{load:function(n){e._setImage(t),i(n)},error:i})},_setImage:function(t){this._canvas&&ts.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 m(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=ts.getContext(this._size);try{this._image&&t.drawImage(this._image,0,0),this._canvas=t.canvas}catch(e){ts.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 i=new e.Image,n=this._crossOrigin;n&&(i.crossOrigin=n),t&&(i.src=t),this.setImage(i)},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="string"==typeof t?t:t?"low":"off",this._changed(257)},getElement:function(){return this._canvas||this._loaded&&this._image}},{beans:!1,getSubCanvas:function(){var t=v.read(arguments),e=ts.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=v.read(arguments),e=new I(k.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 i=this.getCanvas();return i?i.toDataURL.apply(i,arguments):null},drawImage:function(t){var e=f.read(arguments,1);this.getContext(!0).drawImage(t,e.x,e.y)},getAverageColor:function(t){if(t?t instanceof z?(i=t,e=t.getBounds()):"object"==typeof t&&("width"in t?e=new v(t):"x"in t&&(e=new v(t.x-.5,t.y-.5,1,1))):e=this.getBounds(),!e)return null;var e,i,n=Math.min(e.width,32),s=Math.min(e.height,32),a=I._sampleContext;a?a.clearRect(0,0,33,33):a=I._sampleContext=ts.getContext(new m(32)),a.save();var o=new b().scale(n/e.width,s/e.height).translate(-e.x,-e.y);o.applyToContext(a),i&&i.draw(a,new r({clip:!0,matrices:[o]})),this._matrix.applyToContext(a);var l=this.getElement(),h=this._size;l&&a.drawImage(l,-h.width/2,-h.height/2),a.restore();for(var u=a.getImageData(.5,.5,Math.ceil(n),Math.ceil(s)).data,c=[0,0,0],d=0,p=0,f=u.length;p0&&n.height>0){t.globalAlpha=d.clamp(this._opacity,0,1),this._setStyles(t,e,i);var s=this._smoothing,r="off"===s;G.setPrefixed(t,r?"imageSmoothingEnabled":"imageSmoothingQuality",!r&&s),t.drawImage(n,-this._size.width/2,-this._size.height/2)}},_canComposite:function(){return!0}}),E=k.extend({_class:"SymbolItem",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!0},_serializeFields:{symbol:null},initialize:function(t,e){this._initialize(t,e!==i&&f.read(arguments,1))||this.setDefinition(t instanceof A?t:new A(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 i=this._definition._item;return i._getCachedBounds(i._matrix.prepended(t),e)},_hitTestSelf:function(t,e,i){var n=e.extend({all:!1}),s=this._definition._item._hitTest(t,n,i);return s&&(s.item=this),s},_draw:function(t,e){this._definition._item.draw(t,e)}}),A=r.extend({_class:"SymbolDefinition",initialize:function(t,e){this._id=p.get(),this.project=tl.project,t&&this.setItem(t,e)},_serialize:function(t,e){return e.add(this,function(){return r.serialize([this._class,this._item],t,!1,e)})},_changed:function(t){8&t&&k._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 f),t._symbol=this,this._changed(9)},getDefinition:"#getItem",setDefinition:"#setItem",place:function(t){return new E(this,t)},clone:function(){return new A(this._item.clone(!1))},equals:function(t){return t===this||t&&this._item.equals(t._item)||!1}}),P=r.extend({_class:"HitResult",initialize:function(t,e,i){this.type=t,this.item=e,i&&this.inject(i)},statics:{getOptions:function(t){var e=t&&r.read(t);return new r({type:null,tolerance:tl.settings.hitTolerance,fill:!e,stroke:!e,segments:!e,handles:!1,ends:!1,position:!1,center:!1,bounds:!1,guides:!1,selected:!1},e)}}}),O=r.extend({_class:"Segment",beans:!0,_selection:0,initialize:function(t,e,n,s,r,a){var o,l,h,u,c=arguments.length;c>0&&(null==t||"object"==typeof t?1===c&&t&&"point"in t?(o=t.point,l=t.handleIn,h=t.handleOut,u=t.selection):(o=t,l=e,h=n,u=s):(o=[t,e],l=n!==i?[n,s]:null,h=r!==i?[r,a]:null)),new M(o,this,"_point"),new M(l,this,"_handleIn"),new M(h,this,"_handleOut"),u&&this.setSelection(u)},_serialize:function(t,e){var i=this._point,n=this._selection,s=n||this.hasHandles()?[i,this._handleIn,this._handleOut]:i;return n&&s.push(n),r.serialize(s,t,!0,e)},_changed:function(t){var e=this._path;if(e){var i,n=e._curves,s=this._index;n&&((!t||t===this._point||t===this._handleIn)&&(i=s>0?n[s-1]:e._closed?n[n.length-1]:null)&&i._changed(),(!t||t===this._point||t===this._handleOut)&&(i=n[s])&&i._changed()),e._changed(41)}},getPoint:function(){return this._point},setPoint:function(){this._point.set(f.read(arguments))},getHandleIn:function(){return this._handleIn},setHandleIn:function(){this._handleIn.set(f.read(arguments))},getHandleOut:function(){return this._handleOut},setHandleOut:function(){this._handleOut.set(f.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,i=this._path;this._selection=t=t||0,i&&t!==e&&(i._updateSelection(this,e,t),i._changed(257))},_changeSelection:function(t,e){var i=this._selection;this.setSelection(e?i|t:i&~t)},isSelected:function(){return!!(7&this._selection)},setSelected:function(t){this._changeSelection(7,t)},getIndex:function(){return this._index!==i?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 L(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 s=t||{},r=s.type,a=s.factor,o=this.getPrevious(),l=this.getNext(),h=(o||this)._point,u=this._point,c=(l||this)._point,d=h.getDistance(u),p=u.getDistance(c);if(r&&"catmull-rom"!==r){if("geometric"===r){if(o&&l){var g=h.subtract(c),m=a===i?.4:a,_=m*d/(d+p);e||this.setHandleIn(g.multiply(_)),n||this.setHandleOut(g.multiply(_-m))}}else throw Error("Smoothing method '"+r+"' not supported.")}else{var v=a===i?.5:a,y=Math.pow(d,v),b=y*y,x=Math.pow(p,v),w=x*x;if(!e&&o){var k=2*w+3*x*y+b,C=3*x*(x+y);this.setHandleIn(0!==C?new f((w*h._x+k*u._x-b*c._x)/C-u._x,(w*h._y+k*u._y-b*c._y)/C-u._y):new f)}if(!n&&l){var k=2*b+3*y*x+w,C=3*y*(y+x);this.setHandleOut(0!==C?new f((b*c._x+k*u._x-w*h._x)/C-u._x,(b*c._y+k*u._y-w*h._y)/C-u._y):new f)}}},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,i=t.clone();t.set(e),e.set(i)},reversed:function(){return new O(this._point,this._handleOut,this._handleIn)},remove:function(){return!!this._path&&!!this._path.removeSegment(this._index)},clone:function(){return new O(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,Array(6),!0),this._changed()},interpolate:function(t,e,i){var n=1-i,s=t._point,r=e._point,a=t._handleIn,o=e._handleIn,l=e._handleOut,h=t._handleOut;this._point._set(n*s._x+i*r._x,n*s._y+i*r._y,!0),this._handleIn._set(n*a._x+i*o._x,n*a._y+i*o._y,!0),this._handleOut._set(n*h._x+i*l._x,n*h._y+i*l._y,!0),this._changed()},_transformCoordinates:function(t,e,i){var n=this._point,s=i&&this._handleIn.isZero()?null:this._handleIn,r=i&&this._handleOut.isZero()?null:this._handleOut,a=n._x,o=n._y,l=2;return e[0]=a,e[1]=o,s&&(e[l++]=s._x+a,e[l++]=s._y+o),r&&(e[l++]=r._x+a,e[l++]=r._y+o),t&&(t._transformCoordinates(e,e,l/2),a=e[0],o=e[1],i?(n._x=a,n._y=o,l=2,s&&(s._x=e[l++]-a,s._y=e[l++]-o),r&&(r._x=e[l++]-a,r._y=e[l++]-o)):(s||(e[l++]=a,e[l++]=o),r||(e[l++]=a,e[l++]=o))),e}}),M=f.extend({initialize:function(t,e,n){var s,r,a;if(t){if((s=t[0])!==i)r=t[1];else{var o=t;(s=o.x)===i&&(o=f.read(arguments),s=o.x),r=o.y,a=o.selected}}else s=r=0;this._x=s,this._y=r,this._owner=e,e[n]=this,a&&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=d.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}}),N=r.extend({_class:"Curve",beans:!0,initialize:function(t,e,i,n,s,r,a,o){var l,h,u,c,d,p,f=arguments.length;3===f?(this._path=t,l=e,h=i):f?1===f?"segment1"in t?(l=new O(t.segment1),h=new O(t.segment2)):"point1"in t?(u=t.point1,d=t.handle1,p=t.handle2,c=t.point2):Array.isArray(t)&&(u=[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?(l=new O(t),h=new O(e)):4===f?(u=t,d=e,p=i,c=n):8===f&&(u=[t,e],c=[a,o],d=[i-t,n-e],p=[s-a,r-o]):(l=new O,h=new O),this._segment1=l||new O(u,null,d),this._segment2=h||new O(c,p,null)},_serialize:function(t,e){return r.serialize(this.hasHandles()?[this.getPoint1(),this.getHandle1(),this.getHandle2(),this.getPoint2()]:[this.getPoint1(),this.getPoint2()],t,!0,e)},_changed:function(){this._length=this._bounds=i},clone:function(){return new N(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 N.classify(this.getValues())},remove:function(){var t=!1;if(this._path){var e=this._segment2,i=e._handleOut;(t=e.remove())&&this._segment1._handleOut.set(i)}return t},getPoint1:function(){return this._segment1._point},setPoint1:function(){this._segment1._point.set(f.read(arguments))},getPoint2:function(){return this._segment2._point},setPoint2:function(){this._segment2._point.set(f.read(arguments))},getHandle1:function(){return this._segment1._handleOut},setHandle1:function(){this._segment1._handleOut.set(f.read(arguments))},getHandle2:function(){return this._segment2._handleIn},setHandle2:function(){this._segment2._handleIn.set(f.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 N.getValues(this._segment1,this._segment2,t)},getPoints:function(){for(var t=this.getValues(),e=[],i=0;i<8;i+=2)e.push(new f(t[i],t[i+1]));return e}},{getLength:function(){return null==this._length&&(this._length=N.getLength(this.getValues(),0,1)),this._length},getArea:function(){return N.getArea(this.getValues())},getLine:function(){return new x(this._segment1._point,this._segment2._point)},getPart:function(t,e){return new N(N.getPart(this.getValues(),t,e))},getPartLength:function(t,e){return N.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 i=null;if(t>=1e-8&&t<=.99999999){var n=N.subdivide(this.getValues(),t),s=n[0],r=n[1],a=e||this.hasHandles(),o=this._segment1,l=this._segment2,h=this._path;a&&(o._handleOut._set(s[2]-s[0],s[3]-s[1]),l._handleIn._set(r[4]-r[6],r[5]-r[7]));var u=s[6],c=s[7],d=new O(new f(u,c),a&&new f(s[4]-u,s[5]-c),a&&new f(r[2]-u,r[3]-c));h?(h.insert(o._index+1,d),i=this.getNext()):(this._segment2=d,this._changed(),i=new N(d,l))}return i},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===i?.5:e?t:this.getTimeAt(t))},split:function(t,e){return this.splitAtTime(t===i?.5:e?t:this.getTimeAt(t))},reversed:function(){return new N(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,i,n){var s=t._point,r=t._handleOut,a=e._handleIn,o=e._point,l=s.x,h=s.y,u=o.x,c=o.y,d=n?[l,h,l,h,u,c,u,c]:[l,h,l+r._x,h+r._y,u+a._x,c+a._y,u,c];return i&&i._transformCoordinates(d,d,4),d},subdivide:function(t,e){var n=t[0],s=t[1],r=t[2],a=t[3],o=t[4],l=t[5],h=t[6],u=t[7];e===i&&(e=.5);var c=1-e,d=c*n+e*r,p=c*s+e*a,f=c*r+e*o,g=c*a+e*l,m=c*o+e*h,_=c*l+e*u,v=c*d+e*f,y=c*p+e*g,b=c*f+e*m,x=c*g+e*_,w=c*v+e*b,k=c*y+e*x;return[[n,s,d,p,v,y,w,k],[w,k,b,x,m,_,h,u]]},getMonoCurves:function(t,e){var i=[],n=e?0:1,s=t[n+0],r=t[n+2],a=t[n+4],o=t[n+6];if(s>=r==r>=a&&r>=a==a>=o||N.isStraight(t))i.push(t);else{var l=[],h=d.solveQuadratic(3*(r-a)-s+o,2*(s+a)-4*r,r-s,l,1e-8,.99999999);if(h){l.sort();var u=l[0],c=N.subdivide(t,u);i.push(c[0]),h>1&&(u=(l[1]-u)/(1-u),c=N.subdivide(c[1],u),i.push(c[0])),i.push(c[1])}else i.push(t)}return i},solveCubic:function(t,e,i,n,s,r){var a=t[e],o=t[e+2],l=t[e+4],h=t[e+6],u=0;if(!(ai&&h>i&&o>i&&l>i)){var c=3*(o-a),p=3*(l-o)-c;u=d.solveCubic(h-a-c-p,p,c,a-i,n,s,r)}return u},getTimeOf:function(t,e){var i=new f(t[0],t[1]),n=new f(t[6],t[7]);if(null===(e.isClose(i,1e-12)?0:e.isClose(n,1e-12)?1:null))for(var s=[e.x,e.y],r=[],a=0;a<2;a++)for(var o=N.solveCubic(t,a,s[a],r,0,1),l=0;l.999999999999?1:N.getTimeOf(t,new f(i+h*a,n+h*o))}var u=1/0,c=0;function d(i){if(i>=0&&i<=1){var n=e.getDistance(N.getPoint(t,i),!0);if(n1e-8;)d(c-g)||d(c+g)||(g/=2);return c},getPart:function(t,e,i){var n=e>i;if(n){var s=e;e=i,i=s}return e>0&&(t=N.subdivide(t,e)[1]),i<1&&(t=N.subdivide(t,(i-e)/(1-e))[0]),n?[t[6],t[7],t[4],t[5],t[2],t[3],t[0],t[1]]:t},isFlatEnough:function(t,e){var i=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],h=t[7],u=3*s-2*i-l,c=3*r-2*n-h,d=3*a-2*l-i,p=3*o-2*h-n;return Math.max(u*u,d*d)+Math.max(c*c,p*p)<=16*e*e},getArea:function(t){var e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],a=t[5],o=t[6],l=t[7];return 3*((l-i)*(n+r)-(o-e)*(s+a)+s*(e-r)-n*(i-a)+l*(r+e/3)-o*(a+i/3))/20},getBounds:function(t){for(var e=t.slice(0,2),i=e.slice(),n=[0,0],s=0;s<2;s++)N._addBounds(t[s],t[s+2],t[s+4],t[s+6],s,0,e,i,n);return new v(e[0],e[1],i[0]-e[0],i[1]-e[1])},_addBounds:function(t,e,i,n,s,r,a,o,l){function h(t,e){var i=t-e,n=t+e;io[s]&&(o[s]=n)}r/=2;var u=a[s]+r,c=o[s]-r;if(tc||e>c||i>c||n>c){if(er.getDistance(t.add(e))&&1e-7>r.getDistance(n.add(i))){var a=s.dot(s),o=s.dot(e)/a,l=s.dot(i)/a;return o>=0&&o<=1&&l<=0&&l>=-1}}return!1},isLinear:function(t,e,i,n){var s=n.subtract(t).divide(3);return e.equals(s)&&i.negate().equals(s)}},function(t,e){this[e]=function(e){var i=this._segment1,n=this._segment2;return t(i._point,i._handleOut,n._handleIn,n._point,e)},this.statics[e]=function(e,i){var n=e[0],s=e[1],r=e[6],a=e[7];return t(new f(n,s),new f(e[2]-n,e[3]-s),new f(e[4]-r,e[5]-a),new f(r,a),i)}},{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()&&1e-8>Math.abs(this.getTangentAtTime(.5).y)},isVertical:function(){return this.isStraight()&&1e-8>Math.abs(this.getTangentAtTime(.5).x)}}),{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 L(this,t):null},getTimeAt:function(t,e){return N.getTimeAt(this.getValues(),t,e)},getParameterAt:"#getTimeAt",getTimesWithTangent:function(){var t=f.read(arguments);return t.isZero()?[]:N.getTimesWithTangent(this.getValues(),t)},getOffsetAtTime:function(t){return this.getPartLength(0,t)},getLocationOf:function(){return this.getLocationAtTime(this.getTimeOf(f.read(arguments)))},getOffsetOf:function(){var t=this.getLocationOf.apply(this,arguments);return t?t.getOffset():null},getTimeOf:function(){return N.getTimeOf(this.getValues(),f.read(arguments))},getParameterOf:"#getTimeOf",getNearestLocation:function(){var t=f.read(arguments),e=this.getValues(),i=N.getNearestTime(e,t),n=N.getPoint(e,i);return new L(this,i,n,null,t.getDistance(n))},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 r.each(t,function(t){this[t+"At"]=function(e,i){var n=this.getValues();return N[t](n,i?e:N.getTimeAt(n,e))},this[t+"AtTime"]=function(e){return N[t](this.getValues(),e)}},{statics:{_evaluateMethods:t}})},new function(){function t(t){var e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],a=t[5],o=t[6],l=t[7],h=9*(n-r)+3*(o-e),u=6*(e+r)-12*n,c=3*(n-e),d=9*(s-a)+3*(l-i),p=6*(i+a)-12*s,f=3*(s-i);return function(t){var e=(h*t+u)*t+c,i=(d*t+p)*t+f;return Math.sqrt(e*e+i*i)}}function e(t,e){return Math.max(2,Math.min(16,Math.ceil(32*Math.abs(e-t))))}function n(t,e,i,n){if(null==e||e<0||e>1)return null;var s=t[0],r=t[1],a=t[2],o=t[3],l=t[4],h=t[5],u=t[6],c=t[7],p=d.isZero;p(a-s)&&p(o-r)&&(a=s,o=r),p(l-u)&&p(h-c)&&(l=u,h=c);var g,m,_=3*(a-s),v=3*(l-a)-_,y=u-s-_-v,b=3*(o-r),x=3*(h-o)-b,w=c-r-b-x;if(0===i)g=0===e?s:1===e?u:((y*e+v)*e+_)*e+s,m=0===e?r:1===e?c:((w*e+x)*e+b)*e+r;else{if(e<1e-8?(g=_,m=b):e>.99999999?(g=3*(u-l),m=3*(c-h)):(g=(3*y*e+2*v)*e+_,m=(3*w*e+2*x)*e+b),n){0===g&&0===m&&(e<1e-8||e>.99999999)&&(g=l-a,m=h-o);var k=Math.sqrt(g*g+m*m);k&&(g/=k,m/=k)}if(3===i){var l=6*y*e+2*v,h=6*w*e+2*x,C=Math.pow(g*g+m*m,1.5);g=0!==C?(g*h-m*l)/C:0,m=0}}return 2===i?new f(m,-g):new f(g,m)}return{statics:{classify:function(t){var e=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],h=t[7],u=s*(n-h)+r*(l-e)+e*h-n*l,c=3*(a*(r-n)+o*(e-s)+s*n-r*e),p=c-u,f=p-u+(e*(h-o)+n*(a-l)+l*o-h*a),g=Math.sqrt(f*f+p*p+c*c),m=0!==g?1/g:0,_=d.isZero,v="serpentine";function y(t,e,n){var s=e!==i,r=s&&e>0&&e<1,a=s&&n>0&&n<1;return!s||(r||a)&&("loop"!==t||r&&a)||(t="arch",r=a=!1),{type:t,roots:r||a?r&&a?e0?Math.sqrt(b/3):Math.sqrt(-b),w=2*f;return y(b>0?v:"loop",(p+x)/w,(p-x)/w)},getLength:function(n,s,r,a){if(s===i&&(s=0),r===i&&(r=1),N.isStraight(n)){var o=n;r<1&&(o=N.subdivide(o,r)[0],s/=r),s>0&&(o=N.subdivide(o,s)[1]);var l=o[6]-o[0],h=o[7]-o[1];return Math.sqrt(l*l+h*h)}return d.integrate(a||t(n),s,r,e(s,r))},getTimeAt:function(n,s,r){if(r===i&&(r=s<0?1:0),0===s)return r;var a=Math.abs,o=s>0,l=o?r:0,h=o?1:r,u=t(n),c=N.getLength(n,l,h,u),p=a(s)-c;if(1e-12>a(p))return o?h:l;if(p>1e-12)return null;var f=s/c,g=0;return d.findRoot(function(t){return g+=d.integrate(u,r,t,e(r,t)),r=t,g-s},u,r+f,l,h,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],i=t[1],n=t[2],s=t[3],r=t[4],a=t[5],o=t[6],l=t[7],h=-e+3*n-3*r+o,u=3*e-6*n+3*r,c=-3*e+3*n,p=-i+3*s-3*a+l,f=3*i-6*s+3*a,g=-3*i+3*s,m=[];return d.solveCubic(9*(h*h+p*p),9*(h*u+f*p),2*(u*u+f*f)+3*(c*h+g*p),c*u+f*g,m,1e-8,.99999999),m.sort()}}}},new function(){function t(t,e,i,n,s,r,a){var o=!a&&i.getPrevious()===s,l=!a&&i!==s&&i.getNext()===s;if(null!==n&&n>=(o?1e-8:0)&&n<=(l?.99999999:1)&&null!==r&&r>=(l?1e-8:0)&&r<=(o?.99999999:1)){var h=new L(i,n,null,a),u=new L(s,r,null,a);h._intersection=u,u._intersection=h,(!e||e(h))&&L.insert(t,h,!0)}}function e(t,e,n,s){return t[0][1]s?i(e,!1,s):t[0][0]}function i(t,e,i){for(var n=t[0][0],s=t[0][1],r=1,a=t.length;r=i:l<=i)return l===i?o:n+(i-s)*(o-n)/(l-s);n=o,s=l}return null}function n(t,e,i,n,s){var r=d.isZero;if(r(n)&&r(s)){var a=N.getTimeOf(t,new f(e,i));return null===a?[]:[a]}for(var o=Math.atan2(-s,n),l=Math.sin(o),h=Math.cos(o),u=[],c=[],p=0;p<8;p+=2){var g=t[p]-e,m=t[p+1]-i;u.push(g*h-m*l,g*l+m*h)}return N.solveCubic(u,1,0,c,0,1),c}function s(i,s,r,o,l,h){var u=Math.min,c=Math.max;if(c(i[0],i[2],i[4],i[6])+1e-12>u(s[0],s[2],s[4],s[6])&&u(i[0],i[2],i[4],i[6])-1e-12u(s[1],s[3],s[5],s[7])&&u(i[1],i[3],i[5],i[7])-1e-12=4096||++u>=40)return c;var m,_,v=s[0],y=s[1],b=s[6],w=s[7],k=x.getSignedDistance,C=k(v,y,b,w,s[2],s[3]),S=k(v,y,b,w,s[4],s[5]),T=C*S>0?3/4:4/9,I=T*Math.min(0,C,S),E=T*Math.max(0,C,S),A=k(v,y,b,w,n[0],n[1]),P=k(v,y,b,w,n[2],n[3]),O=k(v,y,b,w,n[4],n[5]),M=k(v,y,b,w,n[6],n[7]),L=function(t,e,i,n){var s,r=[0,t],a=[1/3,e],o=[2/3,i],l=[1,n],h=e-(2*t+n)/3,u=i-(t+2*n)/3;if(h*u<0)s=[[r,a,l],[r,o,l]];else{var c=h/u;s=[c>=2?[r,a,l]:c<=.5?[r,o,l]:[r,a,o,l],[r,l]]}return 0>(h||u)?s.reverse():s}(A,P,O,M),z=L[0],R=L[1];if(0===C&&0===S&&0===A&&0===P&&0===O&&0===M||null==(m=e(z,R,I,E))||null==(_=e(z.reverse(),R.reverse(),I,E)))return c;var B=d+(p-d)*m,D=d+(p-d)*_;if(1e-9>Math.max(g-f,D-B)){var V=(B+D)/2,F=(f+g)/2;t(o,l,h?a:r,h?F:V,h?r:a,h?V:F)}else{n=N.getPart(n,m,_);var j=g-f;if(_-m>.8){if(D-B>j){var U=N.subdivide(n,.5),V=(B+D)/2;c=i(s,U[0],a,r,o,l,!h,u,c,f,g,B,V),c=i(s,U[1],a,r,o,l,!h,u,c,f,g,V,D)}else{var U=N.subdivide(s,.5),F=(f+g)/2;c=i(U[0],n,a,r,o,l,!h,u,c,f,F,B,D),c=i(U[1],n,a,r,o,l,!h,u,c,F,g,B,D)}}else c=0===j||j>=1e-9?i(s,n,a,r,o,l,!h,u,c,f,g,B,D):i(n,s,r,a,o,l,h,u,c,B,D,f,g)}return c})(y?s:i,y?i:s,y?o:r,y?r:o,l,h,y,0,0,0,1,0,1),!v||l.length===b)for(var p=0;p<4;p++){var w=p>>1,k=1&p,C=6*w,S=6*k,T=new f(i[C],i[C+1]),I=new f(s[S],s[S+1]);T.isClose(I,1e-12)&&t(l,h,r,w,o,k)}}}return l}function r(e,i,n,s){var r=N.classify(e);if("loop"===r.type){var a=r.roots;t(n,s,i,a[0],i,a[1])}return n}function a(t,e){function i(t){var e=t[6]-t[0],i=t[7]-t[1];return e*e+i*i}var n=Math.abs,s=x.getDistance,r=N.isStraight(t),a=N.isStraight(e),o=r&&a,l=i(t)s(c,d,p,g,u[0],u[1],!0)&&1e-7>s(c,d,p,g,u[6],u[7],!0))!o&&1e-7>s(c,d,p,g,h[2],h[3],!0)&&1e-7>s(c,d,p,g,h[4],h[5],!0)&&1e-7>s(c,d,p,g,u[2],u[3],!0)&&1e-7>s(c,d,p,g,u[4],u[5],!0)&&(r=a=o=!0);else if(o)return null;if(r^a)return null;for(var m=[t,e],_=[],v=0;v<4&&_.length<2;v++){var y=1&v,b=1^y,w=v>>1,k=N.getTimeOf(m[y],new f(m[b][w?6:0],m[b][w?7:1]));if(null!=k){var C=y?[w,k]:[k,w];(!_.length||n(C[0]-_[0][0])>1e-8&&n(C[1]-_[0][1])>1e-8)&&_.push(C)}if(v>2&&!_.length)break}if(2!==_.length)_=null;else if(!o){var S=N.getPart(t,_[0][0],_[1][0]),T=N.getPart(e,_[0][1],_[1][1]);(n(T[2]-S[2])>1e-7||n(T[3]-S[3])>1e-7||n(T[4]-S[4])>1e-7||n(T[5]-S[5])>1e-7)&&(_=null)}return _}return{getIntersections:function(t){var e=this.getValues(),i=t&&t!==this&&t.getValues();return i?s(e,i,this,t,[]):r(e,this,[])},statics:{getOverlaps:a,getIntersections:function(t,e,i,n,a,o){var l=!e;l&&(e=t);for(var u=t.length,c=e.length,d=Array(u),p=l?d:Array(c),f=[],g=0;g_){var k=e[w];s(y,p[w],v,k,f,i)}}}return f},getCurveLineIntersections:n,getTimesWithTangent:function(t,e){var i=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],h=t[7],u=e.normalize(),c=u.x,p=u.y,f=3*l-9*a+9*s-3*i,g=3*h-9*o+9*r-3*n,m=6*a-12*s+6*i,_=6*o-12*r+6*n,v=3*s-3*i,y=3*r-3*n,b=2*f*p-2*g*c,x=[];if(Math.abs(b)=0&&w<=1&&x.push(w)}}else{var k=(m*m-4*f*v)*p*p+(-2*m*_+4*g*v+4*f*y)*c*p+(_*_-4*g*y)*c*c,C=m*p-_*c;if(k>=0&&0!=b){var S=Math.sqrt(k),T=-(C+S)/b,I=(-C+S)/b;T>=0&&T<=1&&x.push(T),I>=0&&I<=1&&x.push(I)}}return x}}}}),L=r.extend({_class:"CurveLocation",initialize:function(t,e,i,n,s){if(e>=.99999999){var r=t.getNext();r&&(e=0,t=r)}this._setCurve(t),this._time=e,this._point=i||t.getPointAtTime(e),this._overlap=n,this._distance=s,this._intersection=this._next=this._previous=null},_setPath:function(t){this._path=t,this._version=t?t._version:0},_setCurve:function(t){this._setPath(t._path),this._curve=t,this._segment=null,this._segment1=t._segment1,this._segment2=t._segment2},_setSegment:function(t){var e=t.getCurve();e?this._setCurve(e):(this._setPath(t._path),this._segment1=t,this._segment2=null),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(),i=this.getTime();0===i?t=e._segment1:1===i?t=e._segment2:null!=i&&(t=e.getPartLength(0,i)a(r.getLength()-o))&&(!l&&!h||l&&h&&l.equals(h,!0))}}return i},toString:function(){var t=[],e=this.getPoint(),i=c.instance;e&&t.push("point: "+e);var n=this.getIndex();null!=n&&t.push("index: "+n);var s=this.getTime();return null!=s&&t.push("time: "+i.number(s)),null!=this._distance&&t.push("distance: "+i.number(this._distance)),"{ "+t.join(", ")+" }"},isTouching:function(){var t=this._intersection;if(t&&this.getTangent().isCollinear(t.getTangent())){var e=this.getCurve(),i=t.getCurve();return!(e.isStraight()&&i.isStraight()&&e.getLine().intersect(i.getLine()))}return!1},isCrossing:function(){var t=this._intersection;if(!t)return!1;var e=this.getTime(),i=t.getTime(),n=e>=1e-8&&e<=.99999999,s=i>=1e-8&&i<=.99999999;if(n&&s)return!this.isTouching();var r=this.getCurve(),a=r&&e<1e-8?r.getPrevious():r,o=t.getCurve(),l=o&&i<1e-8?o.getPrevious():o;if(e>.99999999&&(r=r.getNext()),i>.99999999&&(o=o.getNext()),!a||!r||!l||!o)return!1;var h=[];function u(t,e){var i=t.getValues(),n=N.classify(i).roots||N.getPeaks(i),s=n.length,r=N.getLength(i,e&&s?n[s-1]:0,!e&&s?n[0]:1);h.push(s?r:r/32)}function c(t,e,i){return ee&&te||t=-1&&r<=n;r+=s){var a=t[(r%n+n)%n];if(!e.getPoint().isClose(a.getPoint(),1e-7))break;if(e.equals(a))return a}return null}for(;s<=r;){var o,l=s+r>>>1,h=t[l];if(i&&(o=e.equals(h)?h:a(l,-1)||a(l,1)))return e._overlap&&(o._overlap=o._intersection._overlap=!0),o;var u=e.getPath(),c=h.getPath();(u!==c?u._id-c._id:e.getIndex()+e.getTime()-(h.getIndex()+h.getTime()))<0?r=l-1:s=l+1}return t.splice(s,0,e),e}return{statics:{insert:t,expand:function(e){for(var i=e.slice(),n=e.length-1;n>=0;n--)t(i,e[n]._intersection,!1);return i}}}}),z=k.extend({_class:"PathItem",_selectBounds:!1,_canScaleStroke:!0,beans:!0,initialize:function(){},statics:{create:function(t){if(r.isPlainObject(t)?(i=t.segments,e=t.pathData):Array.isArray(t)?i=t:"string"==typeof t&&(e=t),i){var e,i,n,s=i[0];n=s&&Array.isArray(s[0])}else e&&(n=(e.match(/m/gi)||[]).length>1||/z\s*\S+/i.test(e));return new(n?B:R)(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,i,n,s=t&&t.match(/[mlhvcsqtaz][^mlhvcsqtaz]*/ig),r=!1,a=new f,o=new f;function l(t,i){var n=+e[t];return r&&(n+=a[i]),n}function h(t){return new f(l(t,"x"),l(t+1,"y"))}this.clear();for(var u=0,c=s&&s.length;uh&&this[n?"removeSegments":"removeChildren"](h,l);for(var c=0;c=0&&e;u--){var c=i[u];e=!1;var p=l[u];if(p)for(var f=p.length-1;f>=0&&!e;f--)c.compare(n[p[f]])&&(!a[p[f]]&&(a[p[f]]=!0,o++),e=!0)}e=e&&o===r}return e}}),R=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===i&&(t.x!==i||t.point!==i)?e:null;n&&n.length>0?this.setSegments(n):(this._curves=i,this._segmentSelection=0,n||"string"!=typeof t||(this.setPathData(t),t=null)),this._initialize(!n&&t)},_equals:function(t){return this._closed===t._closed&&r.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=i,32&e)this._version++;else if(this._curves)for(var n=0,s=this._curves.length;n0&&(_(u[0],!0),m.push("z")),m.join("")},isEmpty:function(){return!this._segments.length},_transformContent:function(t){for(var e=this._segments,i=Array(6),n=0,s=e.length;n0&&e+s-1===u?e-1:e,d=c,p=Math.min(c+s,u);t._curves&&(n.splice.apply(n,[c,0].concat(t._curves)),d+=t._curves.length);for(var o=d;o0?t-1:t},add:function(t){var e=arguments;return e.length>1&&"number"!=typeof t?this._add(O.readList(e)):this._add([O.read(e)])[0]},insert:function(t,e){var i=arguments;return i.length>2&&"number"!=typeof e?this._add(O.readList(i,1),t):this._add([O.read(i,1)],t)[0]},addSegment:function(){return this._add([O.read(arguments)])[0]},insertSegment:function(t){return this._add([O.read(arguments,1)],t)[0]},addSegments:function(t){return this._add(O.readList(t))},insertSegments:function(t,e){return this._add(O.readList(e),t)},removeSegment:function(t){return this.removeSegments(t,t+1)[0]||null},removeSegments:function(t,e,i){t=t||0,e=r.pick(e,this._segments.length);var n=this._segments,s=this._curves,a=n.length,o=n.splice(t,e-t),l=o.length;if(!l)return o;for(var h=0;h0&&e===a+(this._closed?1:0)?t-1:t,s=s.splice(d,l),h=s.length-1;h>=0;h--)s[h]._path=null;i&&(o._curves=s.slice(1)),this._adjustCurves(d,d)}return this._changed(41),o},clear:"#removeSegments",hasHandles:function(){for(var t=this._segments,e=0,i=t.length;e0&&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,i=e.length,n=t?7:0;this._segmentSelection=n*i;for(var s=0;s0&&this.setSelected(!0)},divideAt:function(t){var e,i=this.getLocationAt(t);return i&&(e=i.getCurve().divideAt(i.getCurveOffset()))?e._segment1:null},splitAt:function(t){var e=this.getLocationAt(t),i=e&&e.index,n=e&&e.time;n>.99999999&&(i++,n=0);var s=this.getCurves();if(i>=0&&i=1e-8&&s[i++].divideAtTime(n);var r,a=this.removeSegments(i,this._segments.length,!0);return this._closed?(this.setClosed(!1),r=this):((r=new R(k.NO_INSERT)).insertAbove(this),r.copyAttributes(this)),r._add(a,0),this.addSegment(a[0]),r}return null},split:function(t,e){var n,s=e===i?t:(n=this.getCurves()[t])&&n.getLocationAtTime(e);return null!=s?this.splitAt(s):null},join:function(t,e){var i=e||0;if(t&&t!==this){var n=t._segments,s=this.getLastSegment(),r=t.getLastSegment();if(!r)return this;s&&s._point.isClose(r._point,i)&&t.reverse();var a=t.getFirstSegment();if(s&&s._point.isClose(a._point,i))s.setHandleOut(a._handleOut),this._add(n.slice(1));else{var o=this.getFirstSegment();o&&o._point.isClose(a._point,i)&&t.reverse(),r=t.getLastSegment(),o&&o._point.isClose(r._point,i)?(o.setHandleIn(r._handleIn),this._add(n.slice(0,n.length-1),0)):this._add(n.slice())}t._closed&&this._add([n[0]]),t.remove()}var l=this.getFirstSegment(),h=this.getLastSegment();return l!==h&&l._point.isClose(h._point,i)&&(l.setHandleIn(h._handleIn),h.remove(),this.setClosed(!0)),this},reduce:function(t){for(var e=this.getCurves(),i=t&&t.simplify,n=i?1e-7:0,s=e.length-1;s>=0;s--){var r=e[s];!r.hasHandles()&&(!r.hasLength(n)||i&&r.isCollinear(r.getNext()))&&r.remove()}return this},reverse:function(){this._segments.reverse();for(var t=0,e=this._segments.length;t0&&n.push(new O(e[i-1].curve.slice(6))),this.setSegments(n)},simplify:function(t){var e=new V(this).fit(t||2.5);return e&&this.setSegments(e),!!e},smooth:function(t){var e=this,n=t||{},s=n.type||"asymmetric",r=this._segments,a=r.length,o=this._closed;function l(t,i){var n=t&&t.index;if(null!=n){var s=t.path;if(s&&s!==e)throw Error(t._class+" "+n+" of "+s+" is not part of "+e);i&&t instanceof N&&n++}else n="number"==typeof t?t:i;return Math.min(n<0&&o?n%a:n<0?n+a:n,a-1)}var h=o&&n.from===i&&n.to===i,u=l(n.from,0),c=l(n.to,a-1);if(u>c){if(o)u-=a;else{var d=u;u=c,c=d}}if(/^(?:asymmetric|continuous)$/.test(s)){var p="asymmetric"===s,f=Math.min,g=c-u+1,m=g-1,_=h?f(g,4):1,v=_,y=_,b=[];if(o||(v=f(1,u),y=f(1,a-c-1)),(m+=v+y)<=1)return;for(var x=0,w=u-v;x<=m;x++,w++)b[x]=r[(w<0?w+a:w)%a]._point;for(var k=b[0]._x+2*b[1]._x,C=b[0]._y+2*b[1]._y,S=2,T=m-1,I=[k],E=[C],A=[2],P=[],O=[],x=1;x=0;x--)P[x]=(I[x]-P[x+1])/A[x],O[x]=(E[x]-O[x+1])/A[x];P[m]=(3*b[m]._x-P[T])/2,O[m]=(3*b[m]._y-O[T])/2;for(var x=v,V=m-y,w=u;x<=V;x++,w++){var F=r[w<0?w+a:w],j=F._point,U=P[x]-j._x,q=O[x]-j._y;(h||xv)&&F.setHandleIn(-U,-q)}}else for(var x=u;x<=c;x++)r[x<0?x+a:x].smooth(n,!h&&x===u,!h&&x===c)},toShape:function(t){if(!this._closed)return null;var e,n,s,r,a,o,l,h=this._segments;function u(t,e){var i=h[t],n=i.getNext(),s=h[e],r=s.getNext();return i._handleOut.isZero()&&n._handleIn.isZero()&&s._handleOut.isZero()&&r._handleIn.isZero()&&n._point.subtract(i._point).isCollinear(r._point.subtract(s._point))}function c(t){var e=h[t],i=e.getNext(),n=e._handleOut,s=i._handleIn;if(n.isOrthogonal(s)){var r=e._point,a=i._point,o=new x(r,n,!0).intersect(new x(a,s,!0),!0);return o&&d.isZero(n.getLength()/o.subtract(r).getLength()-.5522847498307936)&&d.isZero(s.getLength()/o.subtract(a).getLength()-.5522847498307936)}return!1}function p(t,e){return h[t]._point.getDistance(h[e]._point)}if(!this.hasHandles()&&4===h.length&&u(0,2)&&u(1,3)&&(n=(e=h[1]).getPrevious(),s=e.getNext(),n._handleOut.isZero()&&e._handleIn.isZero()&&e._handleOut.isZero()&&s._handleIn.isZero()&&e._point.subtract(n._point).isOrthogonal(s._point.subtract(e._point)))?(r=T.Rectangle,a=new m(p(0,3),p(0,1)),l=h[1]._point.add(h[2]._point).divide(2)):8===h.length&&c(0)&&c(2)&&c(4)&&c(6)&&u(1,5)&&u(3,7)?(r=T.Rectangle,o=(a=new m(p(1,6),p(0,3))).subtract(new m(p(0,7),p(1,2))).divide(2),l=h[3]._point.add(h[4]._point).divide(2)):4===h.length&&c(0)&&c(1)&&c(2)&&c(3)&&(d.isZero(p(0,2)-p(1,3))?(r=T.Circle,o=p(0,2)/2):(r=T.Ellipse,o=new m(p(2,0)/2,p(3,1)/2)),l=h[1]._point),r){var f=this.getPosition(!0),g=new r({center:f,size:a,radius:o,insert:!1});return g.copyAttributes(this,!0),g._matrix.prepend(this._matrix),g.rotate(l.subtract(f).getAngle()+90),(t===i||t)&&g.insertAbove(this),g}return null},toPath:"#clone",compare:function t(e){if(!e||e instanceof B)return t.base.call(this,e);var i=this.getCurves(),n=e.getCurves(),s=i.length,r=n.length;if(!s||!r)return s==r;for(var a,o,l=i[0].getValues(),h=[],u=0,c=0,d=0;d0?r-1:d,o=f[0][1];break}}for(var g,m=Math.abs,p=h[a];l&&p;){var f=N.getOverlaps(l,p);if(f&&1e-8>m(f[0][0]-c)){1===(c=f[1][0])&&(l=++um(_-o)){if(g||(g=[a,_]),1===(o=f[1][1])&&(++a>=r&&(a=0),p=h[a]||n[a].getValues(),o=0),!l)return g[0]===a&&g[1]===o;continue}}break}return!1},_hitTestSelf:function(t,e,i,n){var s,r,a,o,l,h,u=this,c=this.getStyle(),d=this._segments,p=d.length,f=this._closed,g=e._tolerancePadding,m=g,_=e.stroke&&c.hasStroke(),v=e.fill&&c.hasFill(),y=e.curves,b=_?c.getStrokeWidth()/2:v&&e.tolerance>0||y?0:null;function x(e,i){return t.subtract(e).divide(i).length<=1}function w(t,i,n){if(!e.selected||i.isSelected()){var s=t._point;if(i!==s&&(i=i.add(s)),x(i,m))return new P(n,u,{segment:t,point:i})}}function k(t,i){return(i||e.segments)&&w(t,t._point,"segment")||!i&&e.handles&&(w(t,t._handleIn,"handle-in")||w(t,t._handleOut,"handle-out"))}function C(t){o.add(t)}function S(e){var i,l=f||e._index>0&&e._index0?(s=c.getStrokeJoin(),r=c.getStrokeCap(),a=c.getMiterLimit(),m=m.add(R._getStrokePadding(b,n))):s=r="round"),!e.ends||e.segments||f){if(e.segments||e.handles){for(var T=0;T1?S(l.getSegment())||(l=null):x(l.getPoint(),m)||(l=null)}if(!l&&"miter"===s&&p>1)for(var T=0;Tt)return a.getLocationAt(t-r)}if(e.length>0&&t<=this.getLength())return new L(e[e.length-1],1)}else if(t&&t.getPath&&t.getPath()===this)return t;return null},getOffsetsWithTangent:function(){var t=f.read(arguments);if(t.isZero())return[];for(var e=[],i=0,n=this.getCurves(),s=0,r=n.length;se.indexOf(u)&&e.push(u)}i+=a.length}return e}}),new function(){function t(t,e,i){var n,s,r,a,o,l,h,u,c=e._segments,d=c.length,p=Array(6),f=!0;function g(e){if(i)e._transformCoordinates(i,p),n=p[0],s=p[1];else{var c=e._point;n=c._x,s=c._y}if(f)t.moveTo(n,s),f=!1;else{if(i)o=p[2],l=p[3];else{var d=e._handleIn;o=n+d._x,l=s+d._y}o===n&&l===s&&h===r&&u===a?t.lineTo(n,s):t.bezierCurveTo(h,u,o,l,n,s)}if(r=n,a=s,i)h=p[4],u=p[5];else{var d=e._handleOut;h=r+d._x,u=a+d._y}}for(var m=0;m0&&g(c[0])}return{_draw:function(e,i,n,s){var r=i.dontStart,a=i.dontFinish||i.clip,o=this.getStyle(),l=o.hasFill(),h=o.hasStroke(),u=o.getDashArray(),c=!tl.support.nativeDash&&h&&u&&u.length;function d(t){return u[(t%c+c)%c]}if(r||e.beginPath(),(l||h&&!c||a)&&(t(e,this,s),this._closed&&e.closePath()),!a&&(l||h)&&(this._setStyles(e,i,n),l&&(e.fill(o.getFillRule()),e.shadowColor="rgba(0,0,0,0)"),h)){if(c){r||e.beginPath();for(var p,f=new D(this,.25,32,!1,s),g=f.length,m=-o.getDashOffset(),_=0;m>0;)m-=d(_--)+d(_--);for(;m0||p>0)&&f.drawPart(e,Math.max(m,0),Math.max(p,0)),m=p+d(_++)}e.stroke()}},_drawSelected:function(e,i){e.beginPath(),t(e,this,i),e.stroke(),function(t,e,i,n){if(!(n<=0))for(var s,r,a=n/2,o=n-2,l=a-1,h=Array(6),u=0,c=e.length;u0&&!(1&p)){var f=t.fillStyle;t.fillStyle="#ffffff",t.fillRect(s-l,r-l,o,o),t.fillStyle=f}}function g(e){var i=h[e],n=h[e+1];(s!=i||r!=n)&&(t.beginPath(),t.moveTo(s,r),t.lineTo(i,n),t.stroke(),t.beginPath(),t.arc(i,n,a,0,2*Math.PI,!0),t.fill())}}(e,this._segments,i,tl.settings.handleSize)}}},new function(){function t(t){var e=t._segments;if(!e.length)throw 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 O(f.read(arguments))])},moveBy:function(){throw Error("moveBy() is unsupported on Path items.")},lineTo:function(){this._add([new O(f.read(arguments))])},cubicCurveTo:function(){var e=arguments,i=f.read(e),n=f.read(e),s=f.read(e),r=t(this);r.setHandleOut(i.subtract(r._point)),this._add([new O(s,n.subtract(s))])},quadraticCurveTo:function(){var e=arguments,i=f.read(e),n=f.read(e),s=t(this)._point;this.cubicCurveTo(i.add(s.subtract(i).multiply(1/3)),i.add(n.subtract(i).multiply(1/3)),n)},curveTo:function(){var e=arguments,i=f.read(e),n=f.read(e),s=r.pick(r.read(e),.5),a=1-s,o=t(this)._point,l=i.subtract(o.multiply(a*a)).subtract(n.multiply(s*s)).divide(2*s*a);if(l.isNaN())throw Error("Cannot put a curve through points with parameter = "+s);this.quadraticCurveTo(l,n)},arcTo:function(){var e,i,n,s,a,o=arguments,l=Math.abs,h=Math.sqrt,u=t(this),c=u._point,p=f.read(o),g=r.peek(o),_=r.pick(g,!0);if("boolean"==typeof _)var v=c.add(p).divide(2),e=v.add(v.subtract(c).rotate(_?-90:90));else if(2>=r.remain(o))e=p,p=f.read(o);else if(!c.equals(p)){var y=m.read(o),w=d.isZero;if(w(y.width)||w(y.height))return this.lineTo(p);var k=r.read(o),_=!!r.read(o),C=!!r.read(o),v=c.add(p).divide(2),S=c.subtract(v).rotate(-k),T=S.x,I=S.y,E=l(y.width),A=l(y.height),P=E*E,M=A*A,N=T*T,L=I*I,z=h(N/P+L/M);if(z>1&&(E*=z,A*=z,P=E*E,M=A*A),1e-12>l(z=(P*M-P*L-M*N)/(P*L+M*N))&&(z=0),z<0)throw Error("Cannot create an arc with the given arguments");i=new f(E*I/A,-A*T/E).multiply((C===_?-1:1)*h(z)).rotate(k).add(v),n=(s=(a=new b().translate(i).rotate(k).scale(E,A))._inverseTransform(c)).getDirectedAngle(a._inverseTransform(p)),!_&&n>0?n-=360:_&&n<0&&(n+=360)}if(e){var R=new x(c.add(e).divide(2),e.subtract(c).rotate(90),!0),B=new x(e.add(p).divide(2),p.subtract(e).rotate(90),!0),D=new x(c,p),V=D.getSide(e);if(!(i=R.intersect(B,!0))){if(!V)return this.lineTo(p);throw Error("Cannot create an arc with the given arguments")}n=(s=c.subtract(i)).getDirectedAngle(p.subtract(i));var F=D.getSide(i,!0);0===F?n=V*l(n):V===F&&(n+=n<0?360:-360)}if(n){for(var j=l(n),U=j>=360?4:Math.ceil((j-1e-5)/90),q=n/U,Z=q*Math.PI/360,H=4/3*Math.sin(Z)/(1+Math.cos(Z)),G=[],W=0;W<=U;W++){var S=p,$=null;if(W0){for(var k=1;k=180)&&(c=c.negate(),d=d.negate()),o&&a(u),a(u.add(c)),"miter"===e){var g=new x(u.add(c),new f(-c.y,c.x),!0).intersect(new x(u.add(d),new f(-d.y,d.x),!0),!0);g&&u.getDistance(g)<=n*i&&a(g)}a(u.add(d))},_addSquareCap:function(t,e,i,n,s,r,a){var o=t._point.transform(n),l=t.getLocation(),h=l.getNormal().multiply(0===l.getTime()?i:-i).transform(s);"square"===e&&(a&&(r(o.subtract(h)),r(o.add(h))),o=o.add(h.rotate(-90))),r(o.add(h)),r(o.subtract(h))},getHandleBounds:function(t,e,i,n,s){var r,a,o=i.getStyle();if(s.stroke&&o.hasStroke()){var l=i._getStrokeMatrix(n,s),h=o.getStrokeWidth()/2,u=h;"miter"===o.getStrokeJoin()&&(u=h*o.getMiterLimit()),"square"===o.getStrokeCap()&&(u=Math.max(u,h*Math.SQRT2)),r=R._getStrokePadding(h,l),a=R._getStrokePadding(u,l)}for(var c=Array(6),d=1/0,p=-1/0,f=1/0,g=p,m=0,_=t.length;m<_;m++){t[m]._transformCoordinates(n,c);for(var y=0;y<6;y+=2){var b=y?r:a,x=b?b[0]:0,w=b?b[1]:0,k=c[y],C=c[y+1],S=k-x,T=k+x,I=C-w,E=C+w;Sp&&(p=T),Ig&&(g=E)}}return new v(d,f,p-d,g-f)}}});R.inject({statics:new function(){var t=[new O([-1,0],[0,.5522847498307936],[0,-.5522847498307936]),new O([0,-1],[-.5522847498307936,0],[.5522847498307936,0]),new O([1,0],[0,-.5522847498307936],[0,.5522847498307936]),new O([0,1],[.5522847498307936,0],[-.5522847498307936,0])];function e(t,e,i){var n=r.getNamed(i),s=new R(n&&(!0==n.insert?k.INSERT:!1==n.insert?k.NO_INSERT:null));return s._add(t),s._closed=e,s.set(n,k.INSERT)}function i(i,n,s){for(var r=[,,,,],a=0;a<4;a++){var o=t[a];r[a]=new O(o._point.multiply(n).add(i),o._handleIn.multiply(n),o._handleOut.multiply(n))}return e(r,!0,s)}return{Line:function(){var t=arguments;return e([new O(f.readNamed(t,"from")),new O(f.readNamed(t,"to"))],!1,t)},Circle:function(){var t=arguments;return i(f.readNamed(t,"center"),new m(r.readNamed(t,"radius")),t)},Rectangle:function(){var t,i=arguments,n=v.readNamed(i,"rectangle"),s=m.readNamed(i,"radius",0,{readNull:!0}),r=n.getBottomLeft(!0),a=n.getTopLeft(!0),o=n.getTopRight(!0),l=n.getBottomRight(!0);if(!s||s.isZero())t=[new O(r),new O(a),new O(o),new O(l)];else{var h=(s=m.min(s,n.getSize(!0).divide(2))).width,u=s.height,c=.5522847498307936*h,d=.5522847498307936*u;t=[new O(r.add(h,0),null,[-c,0]),new O(r.subtract(0,u),[0,d]),new O(a.add(0,u),null,[0,-d]),new O(a.add(h,0),[-c,0],null),new O(o.subtract(h,0),null,[c,0]),new O(o.add(0,u),[0,-d],null),new O(l.subtract(0,u),null,[0,d]),new O(l.subtract(h,0),[c,0])]}return e(t,!0,i)},RoundRectangle:"#Rectangle",Ellipse:function(){var t=arguments,e=T._readEllipse(t);return i(e.center,e.radius,t)},Oval:"#Ellipse",Arc:function(){var t=arguments,e=f.readNamed(t,"from"),i=f.readNamed(t,"through"),n=f.readNamed(t,"to"),s=r.getNamed(t),a=new R(s&&!1==s.insert&&k.NO_INSERT);return a.moveTo(e),a.arcTo(i,n),a.set(s)},RegularPolygon:function(){for(var t=arguments,i=f.readNamed(t,"center"),n=r.readNamed(t,"sides"),s=r.readNamed(t,"radius"),a=360/n,o=n%3==0,l=new f(0,o?-s:s),h=o?-1:.5,u=Array(n),c=0;c=0;a--){var o=n[a];n!==i||o instanceof R||(n=r.slice(n)),Array.isArray(o)?n[a]=new R({segments:o,insert:!1}):o instanceof B&&(n.splice.apply(n,[a,1].concat(o.removeChildren())),o.remove())}return t.base.call(this,e,n)},reduce:function t(e){for(var i=this._children,n=i.length-1;n>=0;n--){var s=i[n].reduce(e);s.isEmpty()&&s.remove()}if(!i.length){var s=new R(k.NO_INSERT);return s.copyAttributes(this),s.insertAbove(this),this.remove(),s}return t.base.call(this)},isClosed:function(){for(var t=this._children,e=0,i=t.length;e=0;f--){var g=r[f].split();g&&(p(g)&&g.getFirstSegment().setHandleIn(0,0),n.getLastSegment().setHandleOut(0,0))}return p(n),l(d,!1,t,e)}function f(t,e){for(var i=t;i;){if(i===e)return;i=i._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 g(t){for(var e=t.length-1;e>=0;e--)t[e].clearHandles()}function m(t,e,i){var s=t&&t.length;if(s){var a=r.each(t,function(t,e){this[t._id]={container:null,winding:t.isClockwise()?1:-1,index:e}},{}),o=t.slice().sort(function(t,e){return n(e.getArea())-n(t.getArea())}),l=o[0],u=h.findItemBoundsCollisions(o,null,d.GEOMETRIC_EPSILON);null==i&&(i=l.isClockwise());for(var c=0;c=0;v--)if(m[v]=0;c--){var d=i[c];d._path&&(h[u(d)]=!0)}for(var c=t.length-1;c>=0;c--){var p,m=t[c],_=m._time,v=_,y=e&&!e(m),d=m._curve;if(d&&(d!==s?(o=!d.hasHandles()||h&&h[u(d)],n=[],r=null,s=d):r>=1e-8&&(_/=r)),y){n&&n.push(m);continue}if(e&&a.unshift(m),r=v,_<1e-8)p=d._segment1;else if(_>.99999999)p=d._segment2;else{var b=d.divideAtTime(_,!0);o&&l.push(d,b),p=b._segment1;for(var x=n.length-1;x>=0;x--){var w=n[x];w._time=(w._time-_)/(1-_)}}m._setSegment(p);var k=p._intersection,C=m._intersection;if(k){f(k,C);for(var S=k;S;)f(S._intersection,k),S=S._next}else p._intersection=C}return i||g(l),a||t}function v(i,s,r,a,o){var l,h,u=Array.isArray(s)?s:s[r?"hor":"ver"],c=r?1:0,d=1^c,p=[i.x,i.y],f=p[c],g=p[d],m=f-1e-9,_=f+1e-9,y=0,b=0,x=0,w=0,k=!1,C=!1,S=1,T=[];function I(n){var h=n[d+0],u=n[d+2],p=n[d+4],y=n[d+6];if(g<=e(h,u,p,y)&&g>=t(h,u,p,y)){for(var b,C=n[c+0],I=n[c+2],E=n[c+4],A=n[c+6],P=m>e(C,I,E,A)||_e(h,u))){var p=n[c+0],y=n[c+2],b=n[c+4],C=n[c+6];if(h===u){(p<_&&C>m||C<_&&p>m)&&(k=!0);return}var I=g===h?0:g===u?1:m>e(p,y,b,C)||_0?T[0]:1,E=0===I?p:1===I?C:N.getPoint(n,I)[r?"y":"x"],A=h>u?1:-1,P=l[d]>l[d+6]?1:-1,O=l[c+6];return g!==h?(E_?w+=A:k=!0,E>f-1e-6&&E_&&(w+=A):p!=O&&(O<_&&E>_?(w+=A,k=!0):O>m&&Em&&E<_&&0===N.getTangent(n,I)[r?"x":"y"]&&v(i,s,!r,a,!0)}}(P[O]))return b}}for(var E=0,A=u.length;Ea.quality&&(a=T);break}c-=y}for(var g=o.length-1;g>=0;g--)o[g].segment._winding=a}function b(t,e){var i,n=[];function s(t){var i;return!!(t&&!t._visited&&(!e||e[(i=t._winding||{}).winding]&&!(e.unite&&2===i.winding&&i.windingL&&i.windingR)))}function r(t){if(t){for(var e=0,n=i.length;e=0;h--){var u=l[h],c=u._path,d=u._segment,p=d.getPrevious(),f=d.getNext();i(p,c)&&i(f,c)&&(d.remove(),p._handleOut._set(0,0),f._handleIn._set(0,0),p===d||p.getCurve().hasLength()||(f._handleIn.set(p._handleIn),p.remove()))}s&&(_(a,n&&function(t){var e=t.getCurve(),i=t.getSegment(),n=t._intersection,s=n._curve,r=n._segment;if(e&&s&&e._path&&s._path)return!0;i&&(i._intersection=null),r&&(r._intersection=null)},o),o&&g(o),e=b(r.each(e,function(t){r.push(this,t._segments)},[])));var m,v=e.length;return v>1&&t?(e!==t&&this.setChildren(e),m=this):1!==v||t||(e[0]!==this&&this.setSegments(e[0].removeSegments()),m=this),m||((m=new B(k.NO_INSERT)).addChildren(e),(m=m.reduce()).copyAttributes(this),this.replaceWith(m)),m},reorient:function(t,e){var n=this._children;return n&&n.length?this.setChildren(m(this.removeChildren(),function(e){return!!(t?e:1&e)},e)):e!==i&&this.setClockwise(e),this},getInteriorPoint:function(){var i=this.getBounds().getCenter(!0);if(!this.contains(i)){for(var n=this.getCurves(),s=i.y,r=[],a=[],o=0,l=n.length;o=t(u,c,d,p)&&s<=e(u,c,d,p))for(var f=N.getMonoCurves(h),g=0,m=f.length;g=v&&s<=y||s>=y&&s<=v)){var b=s===v?_[0]:s===y?_[6]:1===N.solveCubic(_,1,s,a,0,1)?N.getPoint(_,a[0]).x:(_[0]+_[6])/2;r.push(b)}}}r.length>1&&(r.sort(function(t,e){return t-e}),i.x=(r[0]+r[1])/2)}return i}}});var D=r.extend({_class:"PathFlattener",initialize:function(t,e,i,n,s){var r,a=[],o=[],l=0,h=1/(i||32),u=t._segments,c=u[0];function d(t,i){var r=N.getValues(t,i,s);a.push(r),function t(i,s,r,a){if(!(a-r>h)||n&&N.isStraight(i)||N.isFlatEnough(i,e||.25)){var u=i[6]-i[0],c=i[7]-i[1],d=Math.sqrt(u*u+c*c);d>0&&(l+=d,o.push({offset:l,curve:i,index:s,time:a}))}else{var p=N.subdivide(i,.5),f=(r+a)/2;t(p[0],s,r,f),t(p[1],s,f,a)}}(r,t._index,0,1)}for(var p=1,f=u.length;p=t){this.index=e;var a=i[e-1],o=a&&a.index===r.index?a.time:0,l=a?a.offset:0;return{index:r.index,time:o+(r.time-o)*(t-l)/(r.offset-l)}}}return{index:i[n-1].index,time:1}},drawPart:function(t,e,i){for(var n=this._get(e),s=this._get(i),r=n.index,a=s.index;r<=a;r++){var o=N.getPart(this.curves[r],r===n.index?n.time:0,r===s.index?s.time:1);r===n.index&&t.moveTo(o[0],o[1]),t.bezierCurveTo.apply(t,o.slice(2))}}},r.each(N._evaluateMethods,function(t){this[t+"At"]=function(e){var i=this._get(e);return N[t](this.curves[i.index],i.time)}},{})),V=r.extend({initialize:function(t){for(var e,i=this.points=[],n=t._segments,s=t._closed,r=0,a=n.length;r0&&(n=[new O(e[0])],i>1&&(this.fitCubic(n,t,0,i-1,e[1].subtract(e[0]),e[i-2].subtract(e[i-1])),this.closed&&(n.shift(),n.pop()))),n},fitCubic:function(t,e,i,n,s,r){var a=this.points;if(n-i==1){var o=a[i],l=a[n],h=o.getDistance(l)/3;this.addCurve(t,[o,o.add(s.normalize(h)),l.add(r.normalize(h)),l]);return}for(var u,c=this.chordLengthParameterize(i,n),d=Math.max(e,e*e),p=!0,f=0;f<=4;f++){var g=this.generateBezier(i,n,c,s,r),m=this.findMaxError(i,n,g,c);if(m.error=d)break;p=this.reparameterize(i,n,c,g),d=m.error}var _=a[u-1].subtract(a[u+1]);this.fitCubic(t,e,i,u,s,_),this.fitCubic(t,e,u,n,_.negate(),r)},addCurve:function(t,e){t[t.length-1].setHandleOut(e[1].subtract(e[0])),t.push(new O(e[3],e[2].subtract(e[3])))},generateBezier:function(t,e,i,n,s){for(var r=Math.abs,a=this.points,o=a[t],l=a[e],h=[[0,0],[0,0]],u=[0,0],c=0,d=e-t+1;c1e-12){var T=h[0][0]*u[1]-h[1][0]*u[0];k=(u[0]*h[1][1]-u[1]*h[0][1])/S,C=T/S}else{var I=h[0][0]+h[0][1],E=h[1][0]+h[1][1];k=C=r(I)>1e-12?u[0]/I:r(E)>1e-12?u[1]/E:0}var A,P,O=l.getDistance(o),M=1e-12*O;if(kO*O&&(k=C=O/3,A=P=null)}return[o,o.add(A||n.normalize(k)),l.add(P||s.normalize(C)),l]},reparameterize:function(t,e,i,n){for(var s=t;s<=e;s++)i[s-t]=this.findRoot(n,this.points[s],i[s-t]);for(var s=1,r=i.length;s=r&&(r=l,s=a)}return{error:r,index:s}}}),F=k.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&&r.isPlainObject(t)&&t.x===i&&t.y===i;this._initialize(e&&t,!e&&f.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/mg),this._changed(521)},isEmpty:function(){return!this._content},getCharacterStyle:"#getStyle",setCharacterStyle:"#setStyle",getParagraphStyle:"#getStyle",setParagraphStyle:"#setStyle"}),j=F.extend({_class:"PointText",initialize:function(){F.apply(this,arguments)},getPoint:function(){var t=this._matrix.getTranslation();return new g(t.x,t.y,this,"setPoint")},setPoint:function(){var t=f.read(arguments);this.translate(t.subtract(this._matrix.getTranslation()))},_draw:function(t,e,i){if(this._content){this._setStyles(t,e,i);var n=this._lines,s=this._style,r=s.hasFill(),a=s.hasStroke(),o=s.getLeading(),l=t.shadowColor;t.font=s.getFontStyle(),t.textAlign=s.getJustification();for(var h=0,u=n.length;h1&&(l-=1),a[o]=6*l<1?r+(s-r)*6*l:2*l<1?s:3*l<2?r+(s-r)*(2/3-l)*6:r}return a},"rgb-gray":function(t,e,i){return[.2989*t+.587*e+.114*i]},"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 r.each(e,function(t,n){i[n]=[],r.each(t,function(t,s){var a=r.capitalize(t),o=/^(hue|saturation)$/.test(t),l=i[n][s]="gradient"===n?"gradient"===t?function(t){var e=this._components[0];return t=q.read(Array.isArray(t)?t:arguments,0,{readNull:!0}),e!==t&&(e&&e._removeOwner(this),t&&t._addOwner(this)),t}:function(){return f.read(arguments,0,{readNull:"highlight"===t,clone:!0})}:function(t){return null==t||isNaN(t)?0:+t};this["get"+a]=function(){return this._type===n||o&&/^hs[bl]$/.test(this._type)?this._components[s]:this._convert(n)[s]},this["set"+a]=function(t){this._type===n||o&&/^hs[bl]$/.test(this._type)||(this._components=this._convert(n),this._properties=e[n],this._type=n),this._components[s]=l.call(this,t),this._changed()}},this)},{_class:"Color",_readIndex:!0,initialize:function a(o){var l,h,u,c,d=arguments,p=this.__read,f=0;Array.isArray(o)&&(o=(d=o)[0]);var g=null!=o&&typeof o;if("string"===g&&o in e&&(l=o,Array.isArray(o=d[1])?(h=o,u=d[2]):(p&&(f=1),d=r.slice(d,1),g=typeof o)),!h){if(c="number"===g?d:"object"===g&&null!=o.length?o:null){l||(l=c.length>=3?"rgb":"gray");var m=e[l].length;u=c[m],p&&(f+=c===arguments?m+(null!=u?1:0):1),c.length>m&&(c=r.slice(c,0,m))}else if("string"===g){var _=function(e){var i,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),a="rgb";if(r){var o=r[4]?4:3;i=Array(o);for(var l=0;l1?1:t)*255)}return e=[n(e[0]),n(e[1]),n(e[2])],i<1&&e.push(i<0?0:i),t?"#"+(0x1000000+(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 i,n=this._components,s=n[0],r=s._stops,a=n[1],o=n[2],l=n[3],h=e&&e.inverted();if(h&&(a=h._transformPoint(a),o=h._transformPoint(o),l&&(l=h._transformPoint(l))),s._radial){var u=o.getDistance(a);if(l){var c=l.subtract(a);c.getLength()>u&&(l=a.add(c.normalize(u-.1)))}var d=l||a;i=t.createRadialGradient(d.x,d.y,0,a.x,a.y,u)}else i=t.createLinearGradient(a.x,a.y,o.x,o.y);for(var p=0,f=r.length;p0&&!(i instanceof B);if(r)for(var a=0,o=s.length;a0&&!(a instanceof B);if(h&&!t)for(var u=0,p=o.length;u0},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),i=this.getFontSize();return/pt|em|%|px/.test(i)&&(i=this.getView().getPixelSize(i)),null!=e?e:1.2*i}}),G=new function(){function t(t,e,i,n){for(var s=["","webkit","moz","Moz","ms","o"],r=e[0].toUpperCase()+e.substring(1),a=0;a<6;a++){var o=s[a],l=o?o+r:e;if(l in t){if(!i)return t[l];t[l]=n;break}}}return{getStyles:function(t){var e=t&&9!==t.nodeType?t.ownerDocument:t,i=e&&e.defaultView;return i&&i.getComputedStyle(t,"")},getBounds:function(t,e){var i,n=t.ownerDocument,s=n.body,r=n.documentElement;try{i=t.getBoundingClientRect()}catch(t){i={left:0,top:0,width:0,height:0}}var a=i.left-(r.clientLeft||s.clientLeft||0),o=i.top-(r.clientTop||s.clientTop||0);if(!e){var l=n.defaultView;a+=l.pageXOffset||r.scrollLeft||s.scrollLeft,o+=l.pageYOffset||r.scrollTop||s.scrollTop}return new v(a,o,i.width,i.height)},getViewportBounds:function(t){var e=t.ownerDocument,i=e.defaultView,n=e.documentElement;return new v(0,0,i.innerWidth||n.clientWidth,i.innerHeight||n.clientHeight)},getOffset:function(t,e){return G.getBounds(t,e).getPoint()},getSize:function(t){return G.getBounds(t,!0).getSize()},isInvisible:function(t){return G.getSize(t).equals(new m(0,0))},isInView:function(t){return!G.isInvisible(t)&&G.getViewportBounds(t).intersects(G.getBounds(t,!0))},isInserted:function(t){return s.body.contains(t)},getPrefixed:function(e,i){return e&&t(e,i)},setPrefixed:function(e,i,n){if("object"==typeof i)for(var s in i)t(e,s,!0,i[s]);else t(e,i,!0,n)}}},W={add:function(t,e){if(t)for(var i in e)for(var n=e[i],r=i.split(/[\s,]+/g),a=0,o=r.length;a1?r.hyphenate(e):e.toLowerCase())}function d(e,i,n,s){var a,o=$._focused;if(l[i]=e,e?h[i]=n:delete h[i],i.length>1&&(a=r.camelize(i))in u){u[a]=e;var c=tl&&tl.agent;if("meta"===a&&c&&c.mac){if(e)t={};else{for(var p in t)p in h&&d(!1,p,t[p],s);t=null}}}else e&&t&&(t[i]=n);o&&o._handleKeyEvent(e?"keydown":"keyup",s,i,n)}return W.add(s,{keydown:function(t){var i=c(t),n=tl&&tl.agent;i.length>1||n&&n.chrome&&(t.altKey||n.mac&&t.metaKey||!n.mac&&t.ctrlKey)?d(!0,i,o[i]||(i.length>1?"":i),t):e=i},keypress:function(t){if(e){var i=c(t),n=t.charCode,s=n>=32?String.fromCharCode(n):i.length>1?"":i;i!==e&&(i=s.toLowerCase()),d(!0,i,s,t),e=null}},keyup:function(t){var e=c(t);e in h&&d(!1,e,h[e],t)}}),W.add(n,{blur:function(t){for(var e in h)d(!1,e,h[e],t)}}),{modifiers:u,isDown:function(t){return!!l[t]}}},X=J.extend({_class:"MouseEvent",initialize:function(t,e,i,n,s){this.type=t,this.event=e,this.point=i,this.target=n,this.delta=s},toString:function(){return"{ type: '"+this.type+"', point: "+this.point+", target: "+this.target+(this.delta?", delta: "+this.delta:"")+", modifiers: "+this.getModifiers()+" }"}}),tt=J.extend({_class:"ToolEvent",_item:null,initialize:function(t,e,i){this.tool=t,this.type=e,this.event=i},_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,i=e._parent;/^(Group|CompoundPath)$/.test(i._class);)e=i,i=i._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()+" }"}}),te=l.extend({_class:"Tool",_list:"tools",_reference:"tool",_events:["onMouseDown","onMouseUp","onMouseDrag","onMouseMove","onActivate","onDeactivate","onEditOptions","onKeyDown","onKeyUp"],initialize:function(t){l.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=0&&r.equals(a))return!1;if(a&&(null!=t||null!=e)){var l=r.subtract(a),h=l.getLength();if(h<(t||0))return!1;e&&(r=a.add(l.normalize(Math.min(h,e))))}o._moveCount++}return o._point=r,o._lastPoint=a||r,n.down&&(o._moveCount=-1,o._downPoint=r,o._downCount++),!0}function h(){r&&(a=o.emit(t,new tt(o,t,e))||a)}if(n.down)l(),h();else if(n.up)l(null,this._maxDistance),h();else if(r)for(;l(this._minDistance,this._maxDistance);)h();return a}}),ti=r.extend(a,{_class:"Tween",statics:{easings:new r({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:-1+2*(2-t)*t},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,i,n,s,r,a){this.object=e;var o=typeof r,l="function"===o;this.type=l?o:"string"===o?r:"linear",this.easing=l?r:t.easings[this.type],this.duration=s,this.running=!1,this._then=null,this._startTime=null;var h=i||n;this._keys=h?Object.keys(h):[],this._parsedKeys=this._parseKeys(this._keys),this._from=h&&this._getState(i),this._to=h&&this._getState(n),!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),i=this._keys,n=function(i){return"function"==typeof i?i(e,t):i},s=0,a=i&&i.length;s255){var l=255-n,f=a-n;h=n+(h-n)*l/f,u=n+(u-n)*l/f,c=n+(c-n)*l/f}}function _(t,e,i){return p(t,e,i)-d(t,e,i)}function v(t,e,i,n){var s,r=[t,e,i],a=p(t,e,i),o=d(t,e,i);s=0===d(o=o===t?0:o===e?1:2,a=a===t?0:a===e?1:2)?1===p(o,a)?2:1:0,r[a]>r[o]?(r[s]=(r[s]-r[o])*n/(r[a]-r[o]),r[a]=n):r[s]=r[a]=0,r[o]=0,h=r[0],u=r[1],c=r[2]}var y={multiply:function(){h=s*t/255,u=a*e/255,c=o*i/255},screen:function(){h=s+t-s*t/255,u=a+e-a*e/255,c=o+i-o*i/255},overlay:function(){h=s<128?2*s*t/255:255-2*(255-s)*(255-t)/255,u=a<128?2*a*e/255:255-2*(255-a)*(255-e)/255,c=o<128?2*o*i/255:255-2*(255-o)*(255-i)/255},"soft-light":function(){var n=t*s/255;h=n+s*(255-(255-s)*(255-t)/255-n)/255,u=(n=e*a/255)+a*(255-(255-a)*(255-e)/255-n)/255,c=(n=i*o/255)+o*(255-(255-o)*(255-i)/255-n)/255},"hard-light":function(){h=t<128?2*t*s/255:255-2*(255-t)*(255-s)/255,u=e<128?2*e*a/255:255-2*(255-e)*(255-a)/255,c=i<128?2*i*o/255:255-2*(255-i)*(255-o)/255},"color-dodge":function(){h=0===s?0:255===t?255:d(255,255*s/(255-t)),u=0===a?0:255===e?255:d(255,255*a/(255-e)),c=0===o?0:255===i?255:d(255,255*o/(255-i))},"color-burn":function(){h=255===s?255:0===t?0:p(0,255-(255-s)*255/t),u=255===a?255:0===e?0:p(0,255-(255-a)*255/e),c=255===o?255:0===i?0:p(0,255-(255-o)*255/i)},darken:function(){h=st?s:t,u=a>e?a:e,c=o>i?o:i},difference:function(){(h=s-t)<0&&(h=-h),(u=a-e)<0&&(u=-u),(c=o-i)<0&&(c=-c)},exclusion:function(){h=s+t*(255-s-s)/255,u=a+e*(255-a-a)/255,c=o+i*(255-o-o)/255},hue:function(){v(t,e,i,_(s,a,o)),m(h,u,c,g(s,a,o))},saturation:function(){v(s,a,o,_(t,e,i)),m(h,u,c,g(s,a,o))},luminosity:function(){m(s,a,o,g(t,e,i))},color:function(){m(t,e,i,g(s,a,o))},add:function(){h=d(s+t,255),u=d(a+e,255),c=d(o+i,255)},subtract:function(){h=p(s-t,0),u=p(a-e,0),c=p(o-i,0)},average:function(){h=(s+t)/2,u=(a+e)/2,c=(o+i)/2},negation:function(){h=255-f(255-t-s),u=255-f(255-e-a),c=255-f(255-i-o)}},b=this.nativeModes=r.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=ts.getContext(1,1,{willReadFrequently:!0});x&&(r.each(y,function(t,e){var i="darken"===e,n=!1;x.save();try{x.fillStyle=i?"#300":"#a00",x.fillRect(0,0,1,1),x.globalCompositeOperation=e,x.globalCompositeOperation===e&&(x.fillStyle=i?"#a00":"#300",x.fillRect(0,0,1,1),n=x.getImageData(0,0,1,1).data[0]!==i?170:51)}catch(t){}x.restore(),b[e]=n}),ts.release(x)),this.process=function(r,d,p,f,g){var m=d.canvas,_="normal"===r;if(_||b[r])p.save(),p.setTransform(1,0,0,1,0,0),p.globalAlpha=f,_||(p.globalCompositeOperation=r),p.drawImage(m,g.x,g.y),p.restore();else{var v=y[r];if(!v)return;for(var x=p.getImageData(g.x,g.y,m.width,m.height),w=x.data,k=d.getImageData(0,0,m.width,m.height).data,C=0,S=w.length;C=2&&!e.hasHandles()){if(h>2){o=e._closed?"polygon":"polyline";for(var c=[],d=0;d3){i.sort(function(t,e){return e.length-t.length}),e+="switch(str.length){";for(var n=0;n=170&&tV.test(String.fromCharCode(t)))},tZ=t.isIdentifierChar=function(t){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||t>=170&&tF.test(String.fromCharCode(t))))};function tH(){this.line=p,this.column=r-f}function tG(){p=1,r=f=0,d=!0,tK()}function tW(t,i){o=r,e.locations&&(h=new tH),u=t,tK(),c=i,d=t.beforeExpr}function t$(){for(var t=r,s=e.onComment&&e.locations&&new tH,a=i.charCodeAt(r+=2);r8&&t<14)++r;else if(47===t){var s=i.charCodeAt(r+1);if(42===s)!function(){var t,n=e.onComment&&e.locations&&new tH,s=r,a=i.indexOf("*/",r+=2);if(-1===a&&S(r-2,"Unterminated comment"),r=a+2,e.locations)for(tU.lastIndex=s;(t=tU.exec(i))&&t.index=5760&&tB.test(String.fromCharCode(t)))++r;else break}}function tJ(t){if(t?r=a+1:a=r,e.locations&&(l=new tH),t)return tQ();if(r>=n)return tW(O);var s=i.charCodeAt(r);if(tq(s)||92===s)return t5();var o=function(t){switch(t){case 46:return(u=i.charCodeAt(r+1))>=48&&u<=57?t0(!0):(++r,tW(tp));case 40:return++r,tW(tl);case 41:return++r,tW(th);case 59:return++r,tW(tc);case 44:return++r,tW(tu);case 91:return++r,tW(ts);case 93:return++r,tW(tr);case 123:return++r,tW(ta);case 125:return++r,tW(to);case 58:return++r,tW(td);case 63:return++r,tW(tf);case 48:var s,o,l,h,u,c,g,_=i.charCodeAt(r+1);if(120===_||88===_)return r+=2,null==(h=tX(16))&&S(a+2,"Expected hexadecimal number"),tq(i.charCodeAt(r))&&S(r,"Identifier directly after number"),tW(I,h);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t0(!1);case 34:case 39:return function(t){r++;for(var s="";;){r>=n&&S(a,"Unterminated string constant");var o=i.charCodeAt(r);if(o===t)return++r,tW(A,s);if(92===o){o=i.charCodeAt(++r);var l=/^[0-7]+/.exec(i.slice(r,r+3));for(l&&(l=l[0]);l&&parseInt(l,8)>255;)l=l.slice(0,-1);if("0"===l&&(l=null),++r,l)b&&S(r-2,"Octal literal in strict mode"),s+=String.fromCharCode(parseInt(l,8)),r+=l.length-1;else switch(o){case 110:s+="\n";break;case 114:s+="\r";break;case 120:s+=String.fromCharCode(t1(2));break;case 117:s+=String.fromCharCode(t1(4));break;case 85:s+=String.fromCharCode(t1(8));break;case 116:s+=" ";break;case 98:s+="\b";break;case 118:s+="\v";break;case 102:s+="\f";break;case 48:s+="\0";break;case 13:10===i.charCodeAt(r)&&++r;case 10:e.locations&&(f=r,++p);break;default:s+=String.fromCharCode(o)}}else(13===o||10===o||8232===o||8233===o)&&S(a,"Unterminated string constant"),s+=String.fromCharCode(o),++r}}(t);case 47:return c=i.charCodeAt(r+1),d?(++r,tQ()):61===c?tY(t_,2):tY(tg,1);case 37:case 42:return 61===i.charCodeAt(r+1)?tY(t_,2):tY(tA,1);case 124:case 38:return(g=i.charCodeAt(r+1))===t?tY(124===t?tb:tx,2):61===g?tY(t_,2):tY(124===t?tw:tC,1);case 94:return 61===i.charCodeAt(r+1)?tY(t_,2):tY(tk,1);case 43:case 45:return(s=i.charCodeAt(r+1))===t?45==s&&62==i.charCodeAt(r+2)&&tj.test(i.slice(m,r))?(r+=3,t$(),tK(),tJ()):tY(tv,2):61===s?tY(t_,2):tY(tE,1);case 60:case 62:return o=i.charCodeAt(r+1),l=1,o===t?(l=62===t&&62===i.charCodeAt(r+2)?3:2,61===i.charCodeAt(r+l))?tY(t_,l+1):tY(tI,l):33==o&&60==t&&45==i.charCodeAt(r+2)&&45==i.charCodeAt(r+3)?(r+=4,t$(),tK(),tJ()):(61===o&&(l=61===i.charCodeAt(r+2)?3:2),tY(tT,l));case 61:case 33:return 61===i.charCodeAt(r+1)?tY(tS,61===i.charCodeAt(r+2)?3:2):tY(61===t?tm:ty,1);case 126:return tY(ty,1)}return!1}(s);if(!1===o){var h=String.fromCharCode(s);if("\\"===h||tV.test(h))return t5();S(r,"Unexpected character '"+h+"'")}return o}function tY(t,e){var n=i.slice(r,r+e);r+=e,tW(t,n)}function tQ(){for(var t,e,s="",a=r;;){r>=n&&S(a,"Unterminated regular expression");var o=i.charAt(r);if(tj.test(o)&&S(a,"Unterminated regular expression"),t)t=!1;else{if("["===o)e=!0;else if("]"===o&&e)e=!1;else if("/"===o&&!e)break;t="\\"===o}++r}var s=i.slice(a,r);++r;var l=t2();l&&!/^[gmsiy]*$/.test(l)&&S(a,"Invalid regexp flag");try{var h=new RegExp(s,l)}catch(t){t instanceof SyntaxError&&S(a,t.message),S(t)}return tW(E,h)}function tX(t,e){for(var n=r,s=0,a=0,o=null==e?1/0:e;a=97?h-97+10:h>=65?h-65+10:h>=48&&h<=57?h-48:1/0)>=t)break;++r,s=s*t+l}return r===n||null!=e&&r-n!==e?null:s}function t0(t){var e=r,n=!1,s=48===i.charCodeAt(r);t||null!==tX(10)||S(e,"Invalid number"),46===i.charCodeAt(r)&&(++r,tX(10),n=!0);var a=i.charCodeAt(r);(69===a||101===a)&&((43===(a=i.charCodeAt(++r))||45===a)&&++r,null===tX(10)&&S(e,"Invalid number"),n=!0),tq(i.charCodeAt(r))&&S(r,"Identifier directly after number");var o,l=i.slice(e,r);return n?o=parseFloat(l):s&&1!==l.length?/[89]/.test(l)||b?S(e,"Invalid number"):o=parseInt(l,8):o=parseInt(l,10),tW(I,o)}function t1(t){var e=tX(16,t);return null===e&&S(a,"Bad character escape sequence"),e}function t2(){x=!1;for(var t,e=!0,n=r;;){var s=i.charCodeAt(r);if(tZ(s))x&&(t+=i.charAt(r)),++r;else if(92===s){x||(t=i.slice(n,r)),x=!0,117!=i.charCodeAt(++r)&&S(r,"Expecting Unicode escape sequence \\uXXXX"),++r;var a=t1(4),o=String.fromCharCode(a);o||S(r-1,"Invalid Unicode escape"),(e?tq(a):tZ(a))||S(r-4,"Invalid Unicode escape"),t+=o}else break;e=!1}return x?t:i.slice(n,r)}function t5(){var t=t2(),e=P;return!x&&tR(t)&&(e=tn[t]),tW(e,t)}function t3(){g=a,m=o,_=h,tJ()}function t6(t){if(b=t,r=a,e.locations)for(;r=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"use strict"===t.expression.value}function ei(t){if(u===t)return t3(),!0}function en(){return!e.strictSemicolons&&(u===O||u===to||tj.test(i.slice(m,a)))}function es(){ei(tc)||en()||ea()}function er(t){u===t?t3():ea()}function ea(){S(a,"Unexpected token")}function eo(t){"Identifier"!==t.type&&"MemberExpression"!==t.type&&S(t.start,"Assigning to rvalue"),b&&"Identifier"===t.type&&tz(t.name)&&S(t.start,"Assigning to "+t.name+" in strict mode")}var el={kind:"loop"},eh={kind:"switch"};function eu(){(u===tg||u===t_&&"/="==c)&&tJ(!0);var t,n,s=u,r=t8();switch(s){case M:case z:t3();var o=s===M;ei(tc)||en()?r.label=null:u!==P?ea():(r.label=eC(),es());for(var l=0;li){var r=t7(e);r.left=e,r.operator=c;var a=u;return t3(),r.right=t(ev(),s,n),t(et(r,a===tb||a===tx?"LogicalExpression":"BinaryExpression"),i,n)}return e}(ev(),-1,t);if(ei(tf)){var i=t7(e);return i.test=e,i.consequent=em(!0),er(td),i.alternate=em(!0,t),et(i,"ConditionalExpression")}return e}(t);if(u.isAssign){var i=t7(e);return i.operator=c,i.left=e,t3(),i.right=e_(t),eo(e),et(i,"AssignmentExpression")}return e}function ev(){if(u.prefix){var t=t8(),e=u.isUpdate;return t.operator=c,t.prefix=!0,d=!0,t3(),t.argument=ev(),e?eo(t.argument):b&&"delete"===t.operator&&"Identifier"===t.argument.type&&S(t.start,"Deleting local variable in strict mode"),et(t,e?"UpdateExpression":"UnaryExpression")}for(var i=ey(eb());u.postfix&&!en();){var t=t7(i);t.operator=c,t.prefix=!1,t.argument=i,eo(i),t3(),i=et(t,"UpdateExpression")}return i}function ey(t,e){if(ei(tp)){var i=t7(t);return i.object=t,i.property=eC(!0),i.computed=!1,ey(et(i,"MemberExpression"),e)}if(ei(ts)){var i=t7(t);return i.object=t,i.property=em(),i.computed=!0,er(tr),ey(et(i,"MemberExpression"),e)}if(!(!e&&ei(tl)))return t;var i=t7(t);return i.callee=t,i.arguments=ek(th,!1),ey(et(i,"CallExpression"),e)}function eb(){switch(u){case Q:var t,n=t8();return t3(),et(n,"ThisExpression");case P:return eC();case I:case A:case E:var n=t8();return n.value=c,n.raw=i.slice(a,o),t3(),et(n,"Literal");case X:case tt:case te:var n=t8();return n.value=u.atomValue,n.raw=u.keyword,t3(),et(n,"Literal");case tl:var s=l,r=a;t3();var d=em();return d.start=r,d.end=o,e.locations&&(d.loc.start=s,d.loc.end=h),e.ranges&&(d.range=[r,o]),er(th),d;case ts:var n=t8();return t3(),n.elements=ek(tr,!0,!0),et(n,"ArrayExpression");case ta:return function(){var t=t8(),i=!0,n=!1;for(t.properties=[],t3();!ei(to);){if(i)i=!1;else if(er(tu),e.allowTrailingCommas&&ei(to))break;var s,r={key:ex()},a=!1;if(ei(td)?(r.value=em(!0),s=r.kind="init"):e.ecmaVersion>=5&&"Identifier"===r.key.type&&("get"===r.key.name||"set"===r.key.name)?(a=n=!0,s=r.kind=r.key.name,r.key=ex(),u!==tl&&ea(),r.value=ew(t8(),!1)):ea(),"Identifier"===r.key.type&&(b||n))for(var o=0;o=0)for(var o=0;o=t)break;t+=n[1]}return t}function o(e){return t.substring(a(e.range[0]),a(e.range[1]))}function l(e,i){for(var n=a(e.range[0]),s=a(e.range[1]),o=0,l=r.length-1;l>=0;l--)if(n>r[l][0]){o=l+1;break}r.splice(o,0,[n,i.length-s+n]),t=t.substring(0,n)+i+t.substring(s)}var u,p=(i=i||{}).url||"",f=i.sourceMaps,g=i.paperFeatures||{},m=i.source||t,_=i.offset||0,v=tl.agent,y=v.versionNumber,b=!1,x=/\r\n|\n|\r/mg;if(f&&(v.chrome&&y>=30||v.webkit&&y>=537.76||v.firefox&&y>=23||v.node)){if(v.node)_-=2;else if(n&&p&&!n.location.href.indexOf(p)){var w=s.getElementsByTagName("html")[0].innerHTML;_=w.substr(0,w.indexOf(t)+1).match(x).length+1}var k=["AA"+function(t){var e="";for(t=(Math.abs(t)<<1)+(t<0?1:0);t||!e;){var i=31&t;(t>>=5)&&(i|=32),e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[i]}return e}((b=_>0&&!(v.chrome&&y>=36||v.safari&&y>=600||v.firefox&&y>=40||v.node))?0:_)+"A"];k.length=(t.match(x)||[]).length+1+(b?_:0),u={version:3,file:p,names:[],mappings:k.join(";AACA"),sourceRoot:"",sources:[p],sourcesContent:[m]}}return(!1!==g.operatorOverloading||!1!==g.moduleExports)&&function e(i,n,s){if(i){for(var r in i)if("range"!==r&&"loc"!==r){var h=i[r];if(Array.isArray(h))for(var u=0,p=h.length;u]/.test(i.operator)||"MemberExpression"===g&&i.computed)){if("UpdateExpression"===e.type){var n=o(e.argument),m="__$__("+n+', "'+e.operator[0]+'", 1)',_=n+" = "+m;e.prefix?_="("+_+")":("AssignmentExpression"===g||"VariableDeclarator"===g||"BinaryExpression"===g)&&(o(i.left||i.id)===n&&(_=m),_=n+"; "+_),l(e,_)}else if(/^.=$/.test(e.operator)&&"Literal"!==e.left.type){var h=o(e.left),u=o(e.right),m=h+" = __$__("+h+', "'+e.operator[0]+'", '+u+")";l(e,/^\(.*\)$/.test(o(e))?"("+m+")":m)}}}}(i,n),!1!==s.moduleExports&&function(t){switch(t.type){case"ExportDefaultDeclaration":l({range:[t.start,t.declaration.start]},"module.exports = ");break;case"ExportNamedDeclaration":var e=t.declaration,i=t.specifiers;if(e){var n=e.declarations;n&&(n.forEach(function(t){l(t,"module.exports."+o(t))}),l({range:[t.start,e.start+e.kind.length]},""))}else if(i){var s=i.map(function(t){var e=o(t);return"module.exports."+e+" = "+e+"; "}).join("");s&&l(t,s)}}}(i)}}(h(t,{ranges:!0,preserveParens:!0,sourceType:"module"}),null,g),u&&(b&&(t=Array(_+1).join("\n")+t),/^(inline|both)$/.test(f)&&(t+="\n//# sourceMappingURL=data:application/json;base64,"+e.btoa(unescape(encodeURIComponent(JSON.stringify(u))))),t+="\n//# sourceURL="+(p||"paperscript")),{url:p,source:m,code:t,map:u}}function y(t,e,i){tl=e;var n,a=e.getView(),o=/\btool\.\w+|\s+on(?:Key|Mouse)(?:Up|Down|Move|Drag)\b/.test(t)&&!/\bnew\s+Tool\b/.test(t)?new te:null,l=o?o._events:[],h=["onFrame","onResize"].concat(l),u=[],c=[];function d(e,i){for(var n in e)(i||!/^_/.test(n))&&RegExp("([\\b\\s\\W]|^)"+n.replace(/\$/g,"\\$")+"\\b").test(t)&&(u.push(n),c.push(e[n]))}t=("object"==typeof t?t:v(t,i)).code,d({__$__:g,$__:_,paper:e,tool:o},!0),d(e),t="var module = { exports: {} }; "+t;var p=r.each(h,function(e){RegExp("\\s+"+e+"\\b").test(t)&&(u.push(e),this.push("module.exports."+e+" = "+e+";"))},[]).join("\n");p&&(t+="\n"+p),t+="\nreturn module.exports;";var m=tl.agent;if(s&&(m.chrome||m.firefox&&m.versionNumber<40)){var y=s.createElement("script"),b=s.head||s.getElementsByTagName("head")[0];m.firefox&&(t="\n"+t),y.appendChild(s.createTextNode("document.__paperscript__ = function("+u+") {"+t+"\n}")),b.appendChild(y),n=s.__paperscript__,delete s.__paperscript__,b.removeChild(y)}else n=Function(u,t);var p=n&&n.apply(e,c),x=p||{};return r.each(l,function(t){var e=x[t];e&&(o[t]=e)}),a&&(x.onResize&&a.setOnResize(x.onResize),a.emit("resize",{size:a.size,delta:new f}),x.onFrame&&a.setOnFrame(x.onFrame),a.requestUpdate()),p}function b(t){if(/^text\/(?:x-|)paperscript$/.test(t.type)&&"true"!==o.getAttribute(t,"ignore")){var e=o.getAttribute(t,"canvas"),i=s.getElementById(e),n=t.src||t.getAttribute("data-src"),r=o.hasAttribute(t,"async"),a="data-paper-scope";if(!i)throw Error('Unable to find canvas with id "'+e+'"');var l=o.get(i.getAttribute(a))||new o().setup(i);return i.setAttribute(a,l._id),n?tn.request({url:n,async:r,mimeType:"text/plain",onLoad:function(t){y(t,l,n)}}):y(t.innerHTML,l,t.baseURI),t.setAttribute("data-paper-ignore","true"),l}}function x(){r.each(s&&s.getElementsByTagName("script"),b)}return f.inject(p),m.inject(p),U.inject(p),n&&("complete"===s.readyState?setTimeout(x):W.add(n,{load:x})),{compile:v,execute:y,load:function(t){return t?b(t):x()},parse:h,calculateBinary:g,calculateUnary:_}}).call(this);var tl=new(o.inject(r.exports,{Base:r,Numerical:d,Key:Q,DomEvent:W,DomElement:G,document:s,window:n,Symbol:A,PlacedSymbol:E}));return tl.agent.node&&u("gFNhN")(tl),"function"==typeof define&&define.amd?define("paper",tl):t&&(t.exports=tl),tl}).call(this,"object"==typeof self?self:null)}),c("gFNhN",function(t,e){}),c("7bbl5",function(t,e){r(t.exports,"isIdentifierStart",function(){return p}),r(t.exports,"isIdentifierChar",function(){return f}),r(t.exports,"TokenType",function(){return g}),r(t.exports,"keywordTypes",function(){return y}),r(t.exports,"tokTypes",function(){return x}),r(t.exports,"lineBreak",function(){return w}),r(t.exports,"lineBreakG",function(){return k}),r(t.exports,"isNewLine",function(){return C}),r(t.exports,"nonASCIIwhitespace",function(){return T}),r(t.exports,"Position",function(){return B}),r(t.exports,"SourceLocation",function(){return D}),r(t.exports,"getLineInfo",function(){return V}),r(t.exports,"defaultOptions",function(){return F}),r(t.exports,"Parser",function(){return q}),r(t.exports,"TokContext",function(){return ti}),r(t.exports,"tokContexts",function(){return tn}),r(t.exports,"Node",function(){return tu}),r(t.exports,"Token",function(){return tD}),r(t.exports,"version",function(){return tU}),r(t.exports,"parse",function(){return tq}),r(t.exports,"parseExpressionAt",function(){return tZ}),r(t.exports,"tokenizer",function(){return tH});var i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,71,5,2,1,3,3,2,0,2,1,13,9,120,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],n=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,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,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",a={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"},o="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",l={5:o,"5module":o+" export import",6:o+" const class extends export import super"},h=/^in(stanceof)?$/,u=RegExp("["+s+"]"),c=RegExp("["+s+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function d(t,e){for(var i=65536,n=0;nt);n+=2)if((i+=e[n+1])>=t)return!0;return!1}function p(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&&d(t,n)))}function f(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&c.test(String.fromCharCode(t)):!1!==e&&(d(t,n)||d(t,i)))))}var g=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 g(t,{beforeExpr:!0,binop:e})}var _={beforeExpr:!0},v={startsExpr:!0},y={};function b(t,e){return void 0===e&&(e={}),e.keyword=t,y[t]=new g(t,e)}var x={num:new g("num",v),regexp:new g("regexp",v),string:new g("string",v),name:new g("name",v),privateId:new g("privateId",v),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",_),semi:new g(";",_),colon:new g(":",_),dot:new g("."),question:new g("?",_),questionDot:new g("?."),arrow:new g("=>",_),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",_),backQuote:new g("`",v),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{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 g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:m("??",1),_break:b("break"),_case:b("case",_),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",_),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",_),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",v),_if:b("if"),_return:b("return",_),_switch:b("switch"),_throw:b("throw",_),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",v),_super:b("super",v),_class:b("class",v),_extends:b("extends",_),_export:b("export"),_import:b("import",v),_null:b("null",v),_true:b("true",v),_false:b("false",v),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,k=RegExp(w.source,"g");function C(t){return 10===t||13===t||8232===t||8233===t}function S(t,e,i){void 0===i&&(i=t.length);for(var n=e;n>10)+55296,(1023&t)+56320)}var R=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,B=function(t,e){this.line=t,this.column=e};B.prototype.offset=function(t){return new B(this.line,this.column+t)};var D=function(t,e,i){this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)};function V(t,e){for(var i=1,n=0;;){var s=S(t,n,e);if(s<0)return new B(i,e-n);++i,n=s}}var F={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},j=!1;function U(t,e){return 2|(t?4:0)|(e?8:0)}var q=function(t,e,i){this.options=t=function(t){var e,i={};for(var n in F)i[n]=t&&O(t,n)?t[n]:F[n];if("latest"===i.ecmaVersion?i.ecmaVersion=1e8:null==i.ecmaVersion?(!j&&"object"==typeof console&&console.warn&&(j=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),i.ecmaVersion=11):i.ecmaVersion>=2015&&(i.ecmaVersion-=2009),null==i.allowReserved&&(i.allowReserved=i.ecmaVersion<5),t&&null!=t.allowHashBang||(i.allowHashBang=i.ecmaVersion>=14),M(i.onToken)){var s=i.onToken;i.onToken=function(t){return s.push(t)}}return M(i.onComment)&&(i.onComment=(e=i.onComment,function(t,n,s,r,a,o){var l={type:t?"Block":"Line",value:n,start:s,end:r};i.locations&&(l.loc=new D(this,a,o)),i.ranges&&(l.range=[s,r]),e.push(l)})),i}(t),this.sourceFile=t.sourceFile,this.keywords=L(l[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var n="";!0!==t.allowReserved&&(n=a[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(n+=" await")),this.reservedWords=L(n);var s=(n?n+" ":"")+a.strict;this.reservedWordsStrict=L(s),this.reservedWordsStrictBind=L(s+" "+a.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=x.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.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Z={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};q.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},Z.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Z.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Z.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Z.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t];if(e.inClassFieldInit||256&e.flags)return!1;if(2&e.flags)return(4&e.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Z.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(64&e)>0||i||this.options.allowSuperOutsideMethod},Z.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Z.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Z.allowNewDotTarget.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(258&e)>0||i},Z.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},q.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,n=0;n=,?^&]/.test(s)||"!"===s&&"="===this.input.charAt(n+1))}t+=e[0].length,I.lastIndex=t,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===x.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===x.eof||this.type===x.braceR||w.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(x.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")};var W=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};H.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}},H.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,n=t.doubleProto;if(!e)return i>=0||n>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},H.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&n<56320)return!0;if(p(n,!0)){for(var s=i+1;f(n=this.input.charCodeAt(s),!0);)++s;if(92===n||n>55295&&n<56320)return!0;var r=this.input.slice(i,s);if(!h.test(r))return!0}return!1},$.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;I.lastIndex=this.pos;var t,e=I.exec(this.input),i=this.pos+e[0].length;return!w.test(this.input.slice(this.pos,i))&&"function"===this.input.slice(i,i+8)&&(i+8===this.input.length||!(f(t=this.input.charCodeAt(i+8))||t>55295&&t<56320))},$.parseStatement=function(t,e,i){var n,s=this.type,r=this.startNode();switch(this.isLet(t)&&(s=x._var,n="let"),s){case x._break:case x._continue:return this.parseBreakContinueStatement(r,s.keyword);case x._debugger:return this.parseDebuggerStatement(r);case x._do:return this.parseDoStatement(r);case x._for:return this.parseForStatement(r);case x._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!t);case x._class:return t&&this.unexpected(),this.parseClass(r,!0);case x._if:return this.parseIfStatement(r);case x._return:return this.parseReturnStatement(r);case x._switch:return this.parseSwitchStatement(r);case x._throw:return this.parseThrowStatement(r);case x._try:return this.parseTryStatement(r);case x._const:case x._var:return n=n||this.value,t&&"var"!==n&&this.unexpected(),this.parseVarStatement(r,n);case x._while:return this.parseWhileStatement(r);case x._with:return this.parseWithStatement(r);case x.braceL:return this.parseBlock(!0,r);case x.semi:return this.parseEmptyStatement(r);case x._export:case x._import:if(this.options.ecmaVersion>10&&s===x._import){I.lastIndex=this.pos;var a=I.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(r,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'")),s===x._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!t);var h=this.value,u=this.parseExpression();if(s===x.name&&"Identifier"===u.type&&this.eat(x.colon))return this.parseLabeledStatement(r,h,u,t);return this.parseExpressionStatement(r,u)}},$.parseBreakContinueStatement=function(t,e){var i="break"===e;this.next(),this.eat(x.semi)||this.insertSemicolon()?t.label=null:this.type!==x.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var n=0;n=6?this.eat(x.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},$.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K),this.enterScope(0),this.expect(x.parenL),this.type===x.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===x._var||this.type===x._const||i){var n=this.startNode(),s=i?"let":this.value;return(this.next(),this.parseVar(n,!0,s),this.finishNode(n,"VariableDeclaration"),(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length)?(this.options.ecmaVersion>=9&&(this.type===x._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,n)):(e>-1&&this.unexpected(e),this.parseFor(t,n))}var r=this.isContextual("let"),a=!1,o=this.containsEsc,l=new W,h=this.start,u=e>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===x._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===x._in&&this.unexpected(e),t.await=!0):a&&this.options.ecmaVersion>=8&&(u.start!==h||o||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(t.await=!1):this.unexpected()),r&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,l),this.checkLValPattern(u),this.parseForIn(t,u)):(this.checkExpressionErrors(l,!0),e>-1&&this.unexpected(e),this.parseFor(t,u))},$.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,Q|(i?0:X),!1,e)},$.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(x._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},$.parseReturnStatement=function(t){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(x.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},$.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(x.braceL),this.labels.push(J),this.enterScope(0);for(var e,i=!1;this.type!==x.braceR;)if(this.type===x._case||this.type===x._default){var n=this.type===x._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),n?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(x.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")},$.parseThrowStatement=function(t){return this.next(),w.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 Y=[];$.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(x.parenR),t},$.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===x._catch){var e=this.startNode();this.next(),this.eat(x.parenL)?e.param=this.parseCatchClauseParam():(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(x._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},$.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")},$.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(K),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},$.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")},$.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},$.parseLabeledStatement=function(t,e,i,n){for(var s=0,r=this.labels;s=0;o--){var l=this.labels[o];if(l.statementStart===t.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},$.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},$.parseBlock=function(t,e,i){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(x.braceL),t&&this.enterScope(0);this.type!==x.braceR;){var n=this.parseStatement(null);e.body.push(n)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},$.parseFor=function(t,e){return t.init=e,this.expect(x.semi),t.test=this.type===x.semi?null:this.parseExpression(),this.expect(x.semi),t.update=this.type===x.parenR?null:this.parseExpression(),this.expect(x.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},$.parseForIn=function(t,e){var i=this.type===x._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(x.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},$.parseVar=function(t,e,i,n){for(t.declarations=[],t.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(x.eq)?s.init=this.parseMaybeAssign(e):n||"const"!==i||this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n||"Identifier"===s.id.type||e&&(this.type===x._in||this.isContextual("of"))?s.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(x.comma))break}return t},$.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var Q=1,X=2;function tt(t,e){var i=t.computed,n=t.key;return!i&&("Identifier"===n.type&&n.name===e||"Literal"===n.type&&n.value===e)}$.parseFunction=function(t,e,i,n,s){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===x.star&&e&X&&this.unexpected(),t.generator=this.eat(x.star)),this.options.ecmaVersion>=8&&(t.async=!!n),e&Q&&(t.id=4&e&&this.type!==x.name?null:this.parseIdent(),t.id&&!(e&X)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(U(t.async,t.generator)),e&Q||(t.id=this.type===x.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,s),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&Q?"FunctionDeclaration":"FunctionExpression")},$.parseFunctionParams=function(t){this.expect(x.parenL),t.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},$.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var n=this.enterClassBody(),s=this.startNode(),r=!1;for(s.body=[],this.expect(x.braceL);this.type!==x.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(s.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(r&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),r=!0):a.key&&"PrivateIdentifier"===a.key.type&&function(t,e){var i=e.key.name,n=t[i],s="true";return("MethodDefinition"===e.type&&("get"===e.kind||"set"===e.kind)&&(s=(e.static?"s":"i")+e.kind),"iget"===n&&"iset"===s||"iset"===n&&"iget"===s||"sget"===n&&"sset"===s||"sset"===n&&"sget"===s)?(t[i]="true",!1):!!n||(t[i]=s,!1)}(n,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},$.parseClassElement=function(t){if(this.eat(x.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),n="",s=!1,r=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(x.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===x.star?o=!0:n="static"}if(i.static=o,!n&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===x.star)&&!this.canInsertSemicolon()?r=!0:n="async"),!n&&(e>=9||!r)&&this.eat(x.star)&&(s=!0),!n&&!r&&!s){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:n=l)}if(n?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=n,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===x.parenL||"method"!==a||s||r){var h=!i.static&&tt(i,"constructor");h&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=h?"constructor":a,this.parseClassMethod(i,s,r,h&&t)}else this.parseClassField(i);return i},$.isClassElementNameStart=function(){return this.type===x.name||this.type===x.privateId||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword},$.parseClassElementName=function(t){this.type===x.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},$.parseClassMethod=function(t,e,i,n){var s=t.key;"constructor"===t.kind?(e&&this.raise(s.start,"Constructor can't be a generator"),i&&this.raise(s.start,"Constructor can't be an async method")):t.static&&tt(t,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var r=t.value=this.parseMethod(e,i,n);return"get"===t.kind&&0!==r.params.length&&this.raiseRecoverable(r.start,"getter should have no params"),"set"===t.kind&&1!==r.params.length&&this.raiseRecoverable(r.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===r.params[0].type&&this.raiseRecoverable(r.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},$.parseClassField=function(t){if(tt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&tt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(x.eq)){var e=this.currentThisScope(),i=e.inClassFieldInit;e.inClassFieldInit=!0,t.value=this.parseMaybeAssign(),e.inClassFieldInit=i}else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")},$.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==x.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},$.parseClassId=function(t,e){this.type===x.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},$.parseClassSuper=function(t){t.superClass=this.eat(x._extends)?this.parseExprSubscripts(null,!1):null},$.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},$.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,s=0===n?null:this.privateNameStack[n-1],r=0;r=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==x.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},$.parseExport=function(t,e){if(this.next(),this.eat(x.star))return this.parseExportAllDeclaration(t,e);if(this.eat(x._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==x.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var i=0,n=t.specifiers;i=13&&this.type===x.string){var t=this.parseLiteral(this.value);return R.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},$.adaptDirectivePrologue=function(t){for(var e=0;e=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var te=q.prototype;te.toAssignable=function(t,e,i){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"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var n=0,s=t.properties;n=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(x._function))return this.overrideContext(tn.f_expr),this.parseFunction(this.startNodeAt(r,a),0,!1,!0,e);if(s&&!this.canInsertSemicolon()){if(this.eat(x.arrow))return this.parseArrowExpression(this.startNodeAt(r,a),[l],!1,e);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===x.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(x.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,a),[l],!0,e)}return l;case x.regexp:var h=this.value;return(n=this.parseLiteral(h.value)).regex={pattern:h.pattern,flags:h.flags},n;case x.num:case x.string:return this.parseLiteral(this.value);case x._null:case x._true:case x._false:return(n=this.startNode()).value=this.type===x._null?null:this.type===x._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case x.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(s,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(t.parenthesizedAssign=u),t.parenthesizedBind<0&&(t.parenthesizedBind=u)),c;case x.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(x.bracketR,!0,!0,t),this.finishNode(n,"ArrayExpression");case x.braceL:return this.overrideContext(tn.b_expr),this.parseObj(!1,t);case x._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case x._class:return this.parseClass(this.startNode(),!1);case x._new:return this.parseNew();case x.backQuote:return this.parseTemplate();case x._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(i);return this.unexpected();default:return this.parseExprAtomDefault()}},tr.parseExprAtomDefault=function(){this.unexpected()},tr.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===x.parenL&&!t)return this.parseDynamicImport(e);if(this.type===x.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);return i.name="import",e.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(e)}this.unexpected()},tr.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(x.parenR)){var e=this.start;this.eat(x.comma)&&this.eat(x.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},tr.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},tr.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).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},tr.parseParenExpression=function(){this.expect(x.parenL);var t=this.parseExpression();return this.expect(x.parenR),t},tr.shouldParseArrow=function(t){return!this.canInsertSemicolon()},tr.parseParenAndDistinguishExpression=function(t,e){var i,n=this.start,s=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,h=[],u=!0,c=!1,d=new W,p=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==x.parenR;){if(u?u=!1:this.expect(x.comma),r&&this.afterTrailingComma(x.parenR,!0)){c=!0;break}if(this.type===x.ellipsis){a=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}h.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var g=this.lastTokEnd,m=this.lastTokEndLoc;if(this.expect(x.parenR),t&&this.shouldParseArrow(h)&&this.eat(x.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=f,this.parseParenArrowList(n,s,h,e);(!h.length||c)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=f||this.awaitPos,h.length>1?((i=this.startNodeAt(o,l)).expressions=h,this.finishNodeAt(i,"SequenceExpression",g,m)):i=h[0]}else i=this.parseParenExpression();if(!this.options.preserveParens)return i;var _=this.startNodeAt(n,s);return _.expression=i,this.finishNode(_,"ParenthesizedExpression")},tr.parseParenItem=function(t){return t},tr.parseParenArrowList=function(t,e,i,n){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,n)};var ta=[];tr.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===x.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var i=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var n=this.start,s=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,s,!0,!1),this.eat(x.parenL)?t.arguments=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1):t.arguments=ta,this.finishNode(t,"NewExpression")},tr.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===x.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===x.backQuote,this.finishNode(i,"TemplateElement")},tr.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var n=this.parseTemplateElement({isTagged:e});for(i.quasis=[n];!n.tail;)this.type===x.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(x.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(x.braceR),i.quasis.push(n=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},tr.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===x.name||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===x.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},tr.parseObj=function(t,e){var i=this.startNode(),n=!0,s={};for(i.properties=[],this.next();!this.eat(x.braceR);){if(n)n=!1;else if(this.expect(x.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(x.braceR))break;var r=this.parseProperty(t,e);t||this.checkPropClash(r,s,e),i.properties.push(r)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},tr.parseProperty=function(t,e){var i,n,s,r,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(x.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,e),this.type===x.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)&&(s=this.start,r=this.startLoc),t||(i=this.eat(x.star)));var o=this.containsEsc;return this.parsePropertyName(a),!t&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(n=!0,i=this.options.ecmaVersion>=9&&this.eat(x.star),this.parsePropertyName(a)):n=!1,this.parsePropertyValue(a,t,i,n,s,r,e,o),this.finishNode(a,"Property")},tr.parseGetterSetter=function(t){t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var e="get"===t.kind?0:1;if(t.value.params.length!==e){var i=t.value.start;"get"===t.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},tr.parsePropertyValue=function(t,e,i,n,s,r,a,o){(i||n)&&this.type===x.colon&&this.unexpected(),this.eat(x.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===x.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,n)):e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===x.comma||this.type===x.braceR||this.type===x.eq?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((i||n)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=s),t.kind="init",e?t.value=this.parseMaybeDefault(s,r,this.copyNode(t.key)):this.type===x.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(s,r,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected():((i||n)&&this.unexpected(),this.parseGetterSetter(t))},tr.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(x.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(x.bracketR),t.key;t.computed=!1}return t.key=this.type===x.num||this.type===x.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},tr.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},tr.parseMethod=function(t,e,i){var n=this.startNode(),s=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=t),this.options.ecmaVersion>=8&&(n.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|U(e,n.generator)|(i?128:0)),this.expect(x.parenL),n.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=s,this.awaitPos=r,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")},tr.parseArrowExpression=function(t,e,i,n){var s=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|U(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,n),this.yieldPos=s,this.awaitPos=r,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},tr.parseFunctionBody=function(t,e,i,n){var s=e&&this.type!==x.braceL,r=this.strict,a=!1;if(s)t.body=this.parseMaybeAssign(n),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!r||o)&&(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!r&&!a&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!r),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=l}this.exitScope()},tr.isSimpleParamList=function(t){for(var e=0;e-1||s.functions.indexOf(t)>-1||s.var.indexOf(t)>-1,s.lexical.push(t),this.inModule&&1&s.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var r=this.currentScope();n=this.treatFunctionsAsVar?r.lexical.indexOf(t)>-1:r.lexical.indexOf(t)>-1||r.var.indexOf(t)>-1,r.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){n=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}n&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},tl.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},tl.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},tl.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags)return e}},tl.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags&&!(16&e.flags))return e}};var tu=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new D(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},tc=q.prototype;function td(t,e,i,n){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=n),this.options.ranges&&(t.range[1]=i),t}tc.startNode=function(){return new tu(this,this.start,this.startLoc)},tc.startNodeAt=function(t,e){return new tu(this,t,e)},tc.finishNode=function(t,e){return td.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},tc.finishNodeAt=function(t,e,i,n){return td.call(this,t,e,i,n)},tc.copyNode=function(t){var e=new tu(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};for(var tp="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",tf=tp+" Extended_Pictographic",tg=tf+" EBase EComp EMod EPres ExtPict",tm={9:tp,10:tf,11:tf,12:tg,13:tg,14:tg},t_={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},tv="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",ty="Adlam Adlm 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 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",tb=ty+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",tx=tb+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tw=tx+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",tk=tw+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",tC={9:ty,10:tb,11:tx,12:tw,13:tk,14:tk+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},tS={},tT=0,tI=[9,10,11,12,13,14];tT=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=tS[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function tO(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function tM(t){return t>=65&&t<=90||t>=97&&t<=122}function tN(t){return tM(t)||95===t}function tL(t){return t>=48&&t<=57}function tz(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function tR(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}function tB(t){return t>=48&&t<=55}tP.prototype.reset=function(t,e,i){var n=-1!==i.indexOf("v"),s=-1!==i.indexOf("u");this.start=0|t,this.source=e+"",this.flags=i,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)},tP.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},tP.prototype.at=function(t,e){void 0===e&&(e=!1);var i=this.source,n=i.length;if(t>=n)return -1;var s=i.charCodeAt(t);if(!(e||this.switchU)||s<=55295||s>=57344||t+1>=n)return s;var r=i.charCodeAt(t+1);return r>=56320&&r<=57343?(s<<10)+r-0x35fdc00:s},tP.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var i=this.source,n=i.length;if(t>=n)return n;var s,r=i.charCodeAt(t);return!(e||this.switchU)||r<=55295||r>=57344||t+1>=n||(s=i.charCodeAt(t+1))<56320||s>57343?t+1:t+2},tP.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},tP.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},tP.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},tP.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},tP.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var i=this.pos,n=0;n-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===a&&(n=!0),"v"===a&&(s=!0)}this.options.ecmaVersion>=15&&n&&s&&this.raise(t.start,"Invalid regular expression flag")},tE.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&function(t){for(var e in t)return!0;return!1}(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},tE.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,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,i=t.backReferenceNames;e=16;for(e&&(t.branchID=new tA(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},tE.regexp_alternative=function(t){for(;t.pos=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},tE.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},tE.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},tE.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var n=0,s=-1;if(this.regexp_eatDecimalDigits(t)&&(n=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue),t.eat(125)))return -1!==s&&s=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},tE.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)},tE.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},tE.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!tO(e)&&(t.lastIntValue=e,t.advance(),!0)},tE.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;-1!==(i=t.current())&&!tO(i);)t.advance();return t.pos!==e},tE.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)},tE.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,i=t.groupNames[t.lastStringValue];if(i){if(e)for(var n=0;n=11,s=t.current(n);return(t.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(s=t.lastIntValue),p(e=s,!0)||36===e||95===e)?(t.lastIntValue=s,!0):(t.pos=i,!1)},tE.regexp_eatRegExpIdentifierPart=function(t){var e,i=t.pos,n=this.options.ecmaVersion>=11,s=t.current(n);return(t.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(s=t.lastIntValue),f(e=s,!0)||36===e||95===e||8204===e||8205===e)?(t.lastIntValue=s,!0):(t.pos=i,!1)},tE.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)},tE.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},tE.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},tE.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,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},tE.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},tE.regexp_eatZero=function(t){return!(48!==t.current()||tL(t.lookahead()))&&(t.lastIntValue=0,t.advance(),!0)},tE.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)},tE.regexp_eatControlLetter=function(t){var e=t.current();return!!tM(e)&&(t.lastIntValue=e%32,t.advance(),!0)},tE.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var i=t.pos,n=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var s,r=t.lastIntValue;if(n&&r>=55296&&r<=56319){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=(r-55296)*1024+(o-56320)+65536,!0}t.pos=a,t.lastIntValue=r}return!0}if(n&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(s=t.lastIntValue)>=0&&s<=1114111)return!0;n&&t.raise("Invalid unicode escape"),t.pos=i}return!1},tE.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)},tE.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},tE.regexp_eatCharacterClassEscape=function(t){var e,i=t.current();if(100===i||68===i||115===i||83===i||119===i||87===i)return t.lastIntValue=-1,t.advance(),1;var n=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((n=80===i)||112===i)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(e=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return n&&2===e&&t.raise("Invalid property name"),e;t.raise("Invalid property name")}return 0},tE.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var n=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,n),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,s)}return 0},tE.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){O(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},tE.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},tE.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";tN(e=t.current());)t.lastStringValue+=z(e),t.advance();return""!==t.lastStringValue},tE.regexp_eatUnicodePropertyValue=function(t){var e,i=0;for(t.lastStringValue="";tN(e=i=t.current())||tL(e);)t.lastStringValue+=z(i),t.advance();return""!==t.lastStringValue},tE.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},tE.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===i&&t.raise("Negated character class may contain strings"),!0}return!1},tE.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},tE.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;t.switchU&&(-1===e||-1===i)&&t.raise("Invalid character class"),-1!==e&&-1!==i&&e>i&&t.raise("Range out of order in character class")}}},tE.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(99===i||tB(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var n=t.current();return 93!==n&&(t.lastIntValue=n,t.advance(),!0)},tE.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)},tE.regexp_classSetExpression=function(t){var e,i=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(i=2);for(var n=t.pos;t.eatChars([38,38]);){if(38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))){2!==e&&(i=1);continue}t.raise("Invalid character in character class")}if(n!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(n!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return i;2===e&&(i=2)}},tE.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var n=t.lastIntValue;return -1!==i&&-1!==n&&i>n&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},tE.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},tE.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),n=this.regexp_classContents(t);if(t.eat(93))return i&&2===n&&t.raise("Negated character class may contain strings"),n;t.pos=e}if(t.eat(92)){var s=this.regexp_eatCharacterClassEscape(t);if(s)return s;t.pos=e}return null},tE.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null},tE.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},tE.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},tE.regexp_eatClassSetCharacter=function(t){var e,i=t.pos;if(t.eat(92))return!!(this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=i,!1));var n=t.current();return!(n<0||n===t.lookahead()&&(33===n||n>=35&&n<=38||n>=42&&n<=44||46===n||n>=58&&n<=64||94===n||96===n||126===n)||40===(e=n)||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125)&&(t.advance(),t.lastIntValue=n,!0)},tE.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!(33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e)&&(t.lastIntValue=e,t.advance(),!0)},tE.regexp_eatClassControlLetter=function(t){var e=t.current();return(!!tL(e)||95===e)&&(t.lastIntValue=e%32,t.advance(),!0)},tE.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},tE.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;tL(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},tE.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;tz(i=t.current());)t.lastIntValue=16*t.lastIntValue+tR(i),t.advance();return t.pos!==e},tE.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},tE.regexp_eatOctalDigit=function(t){var e=t.current();return tB(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},tE.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var n=0;n=this.input.length)?this.finishToken(x.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},tV.readToken=function(t){return p(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},tV.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-0x35fdc00},tV.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=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(var n=void 0,s=e;(n=S(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},tV.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=t);this.pos8&&t<14||t>=5760&&T.test(String.fromCharCode(t)))++this.pos;else break e}}},tV.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},tV.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(x.ellipsis)):(++this.pos,this.finishToken(x.dot))},tV.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(x.assign,2):this.finishOp(x.slash,1)},tV.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,n=42===t?x.star:x.modulo;return(this.options.ecmaVersion>=7&&42===t&&42===e&&(++i,n=x.starstar,e=this.input.charCodeAt(this.pos+2)),61===e)?this.finishOp(x.assign,i+1):this.finishOp(n,i)},tV.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(x.assign,3):this.finishOp(124===t?x.logicalOR:x.logicalAND,2):61===e?this.finishOp(x.assign,2):this.finishOp(124===t?x.bitwiseOR:x.bitwiseAND,1)},tV.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(x.assign,2):this.finishOp(x.bitwiseXOR,1)},tV.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||w.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(x.incDec,2):61===e?this.finishOp(x.assign,2):this.finishOp(x.plusMin,1)},tV.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i))?this.finishOp(x.assign,i+1):this.finishOp(x.bitShift,i):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(i=2),this.finishOp(x.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},tV.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(x.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(x.arrow)):this.finishOp(61===t?x.eq:x.prefix,1)},tV.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(x.questionDot,2)}if(63===e)return t>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(x.assign,3):this.finishOp(x.coalesce,2)}return this.finishOp(x.question,1)},tV.readToken_numberSign=function(){var t=this.options.ecmaVersion,e=35;if(t>=13&&(++this.pos,p(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(x.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+z(e)+"'")},tV.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(x.parenL);case 41:return++this.pos,this.finishToken(x.parenR);case 59:return++this.pos,this.finishToken(x.semi);case 44:return++this.pos,this.finishToken(x.comma);case 91:return++this.pos,this.finishToken(x.bracketL);case 93:return++this.pos,this.finishToken(x.bracketR);case 123:return++this.pos,this.finishToken(x.braceL);case 125:return++this.pos,this.finishToken(x.braceR);case 58:return++this.pos,this.finishToken(x.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(x.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 63:return this.readToken_question();case 126:return this.finishOp(x.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+z(t)+"'")},tV.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},tV.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(w.test(n)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===n)e=!0;else if("]"===n&&e)e=!1;else if("/"===n&&!e)break;t="\\"===n}++this.pos}var s=this.input.slice(i,this.pos);++this.pos;var r=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(r);var o=this.regexpState||(this.regexpState=new tP(this));o.reset(i,s,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(s,a)}catch(t){}return this.finishToken(x.regexp,{pattern:s,flags:a,value:l})},tV.readInt=function(t,e,i){for(var n=this.options.ecmaVersion>=12&&void 0===e,s=i&&48===this.input.charCodeAt(this.pos),r=this.pos,a=0,o=0,l=0,h=null==e?1/0:e;l=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=t)break;o=u,a=a*t+c}return(n&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===r||null!=e&&this.pos-r!==e)?null:a},tV.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return null==i&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=tF(this.input.slice(e,this.pos)),++this.pos):p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,i)},tV.readNumber=function(t){var e,i=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(i,"Invalid number");var n=this.pos-i>=2&&48===this.input.charCodeAt(i);n&&this.strict&&this.raise(i,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&110===s){var r=tF(this.input.slice(i,this.pos));return++this.pos,p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,r)}n&&/[89]/.test(this.input.slice(i,this.pos))&&(n=!1),46!==s||n||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||n||((43===(s=this.input.charCodeAt(++this.pos))||45===s)&&++this.pos,null===this.readInt(10)&&this.raise(i,"Invalid number")),p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(e=this.input.slice(i,this.pos),n?parseInt(e,8):parseFloat(e.replace(/_/g,"")));return this.finishToken(x.num,a)},tV.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},tV.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===t)break;92===n?(e+=this.input.slice(i,this.pos)+this.readEscapedChar(!1),i=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(C(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(x.string,e)};var tj={};tV.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===tj)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1},tV.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw tj;this.raise(t,e)},tV.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1)){if(this.pos===this.start&&(this.type===x.template||this.type===x.invalidTemplate)){if(36===i)return this.pos+=2,this.finishToken(x.dollarBraceL);return++this.pos,this.finishToken(x.backQuote)}return t+=this.input.slice(e,this.pos),this.finishToken(x.template,t)}if(92===i)t+=this.input.slice(e,this.pos)+this.readEscapedChar(!0),e=this.pos;else if(C(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},tV.readInvalidTemplateToken=function(){for(;this.pos=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(n,8);return s>255&&(s=parseInt(n=n.slice(0,-1),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(s)}if(C(e))return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";return String.fromCharCode(e)}},tV.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return null===i&&this.invalidStringToken(e,"Bad character escape sequence"),i},tV.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,n=this.options.ecmaVersion>=6;this.post.map(t=>"x"===t?{type:"Tile"}:null)),type:"even-r"},solution:[{amount:100,type:"Connections"}]}}),c("4QHZj",function(t,e){t.exports=JSON.parse('{"layout":{"tiles":[[{"items":[{"direction":0,"type":"Portal"}],"modifiers":[{"type":"Immutable"}],"type":"Tile"},{"items":[{"direction":0,"type":"Portal"}],"modifiers":[{"type":"Immutable"}],"type":"Tile"},{"items":[{"openings":[null,null,null,{"color":["red","blue"],"type":"Beam"},null,null],"type":"Terminus"}],"modifiers":[{"type":"Rotate"}],"type":"Tile"},{"items":[{"openings":[null,null,null,null,{"color":"green","type":"Beam"},null],"type":"Terminus"}],"modifiers":[{"type":"Lock"},{"type":"Toggle"}],"type":"Tile"}],[{"items":[{"openings":[{"color":"red","type":"Beam"},null,null,null,null,null],"type":"Terminus"}],"modifiers":[{"type":"Lock"},{"type":"Rotate"},{"type":"Toggle"}],"type":"Tile"},{"items":[{"openings":[{"color":"blue","type":"Beam"},null,null,null,null,null],"type":"Terminus"}],"modifiers":[{"type":"Lock"},{"type":"Toggle"}],"type":"Tile"},{"items":[{"direction":0,"type":"Portal"}],"modifiers":[{"type":"Immutable"}],"type":"Tile"}]]},"solution":[{"amount":1,"type":"Connections"}]}')}),c("7Uxjd",function(t,e){t.exports=JSON.parse('{"layout":{"tiles":[[{"items":[{"color":"red","openings":[null,null,null,{"on":true,"type":"Beam"},null,null],"type":"Terminus"}],"type":"Tile"}],[{"items":[{"type":"Reflector"}],"modifiers":[{"type":"Rotate"}],"type":"Tile"}],[{"items":[{"color":"green","openings":[null,{"on":true,"type":"Beam"},null,null,null,null],"type":"Terminus"}],"type":"Tile"},{"items":[{"color":"blue","openings":[{"on":true,"type":"Beam"},null,null,null,null,null],"type":"Terminus"}],"type":"Tile"}]]},"solution":[{"amount":999,"type":"Connections"}]}')});const d=document.getElementById("feedback-container"),p=document.getElementById("dialog"),f=document.getElementById("help");document.getElementById("info").addEventListener("click",()=>{p.open||p.showModal()}),document.getElementById("feedback").addEventListener("click",()=>{f.setAttribute("open","true"),d.scrollIntoView(!0)});var g=class{constructor(t){this.selfOptions=t||{},this.pipes={}}options(t){return t&&(this.selfOptions=t),this.selfOptions}pipe(t,e){let i=e;if("string"==typeof t){if(void 0===i)return this.pipes[t];this.pipes[t]=i}if(t&&t.name){if((i=t).processor===this)return i;this.pipes[i.name]=i}return i.processor=this,i}process(t,e){let i,n=t;n.options=this.options();let s=e||t.pipe||"default";for(;s;)void 0!==n.nextAfterChildren&&(n.next=n.nextAfterChildren,n.nextAfterChildren=null),"string"==typeof s&&(s=this.pipe(s)),s.process(n),i=s,s=null,n&&n.next&&(s=(n=n.next).pipe||i);return n.hasResult?n.result:void 0}},m=class{constructor(t){this.name=t,this.filters=[]}process(t){if(!this.processor)throw Error("add this pipe to a processor before using it");let e=this.debug,i=this.filters.length;for(let n=0;nt.filterName)}after(t,...e){let i=this.indexOf(t);return this.filters.splice(i+1,0,...e),this}before(t,...e){let i=this.indexOf(t);return this.filters.splice(i,0,...e),this}replace(t,...e){let i=this.indexOf(t);return this.filters.splice(i,1,...e),this}remove(t){let e=this.indexOf(t);return this.filters.splice(e,1),this}clear(){return this.filters.length=0,this}shouldHaveResult(t){if(!1===t){this.resultCheck=null;return}if(!this.resultCheck)return this.resultCheck=t=>{if(!t.hasResult){console.log(t);let e=Error(`${this.name} failed`);throw e.noResult=!0,e}},this}};class _{setResult(t){return this.result=t,this.hasResult=!0,this}exit(){return this.exiting=!0,this}push(t,e){return t.parent=this,void 0!==e&&(t.childName=e),t.root=this.root||this,t.options=t.options||this.options,this.children?(this.children[this.children.length-1].next=t,this.children.push(t)):(this.children=[t],this.nextAfterChildren=this.next||null,this.next=t),t.next=this,this}}function v(t){if("object"!=typeof t)return t;if(null===t)return null;if(Array.isArray(t))return t.map(v);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return function(t){let e=/^\/(.*)\/([gimyu]*)$/.exec(t.toString());return new RegExp(e[1],e[2])}(t);let e={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=v(t[i]));return e}var y=class extends _{constructor(t,e){super(),this.left=t,this.right=e,this.pipe="diff"}setResult(t){if(this.options.cloneDiffValues&&"object"==typeof t){let e="function"==typeof this.options.cloneDiffValues?this.options.cloneDiffValues:v;"object"==typeof t[0]&&(t[0]=e(t[0])),"object"==typeof t[1]&&(t[1]=e(t[1]))}return super.setResult(t)}},b=class extends _{constructor(t,e){super(),this.left=t,this.delta=e,this.pipe="patch"}},x=class extends _{constructor(t){super(),this.delta=t,this.pipe="reverse"}};const w=function(t){if(t.left===t.right){t.setResult(void 0).exit();return}if(void 0===t.left){if("function"==typeof t.right)throw Error("functions are not supported");t.setResult([t.right]).exit();return}if(void 0===t.right){t.setResult([t.left,0,0]).exit();return}if("function"==typeof t.left||"function"==typeof t.right)throw Error("functions are not supported");if(t.leftType=null===t.left?"null":typeof t.left,t.rightType=null===t.right?"null":typeof t.right,t.leftType!==t.rightType||"boolean"===t.leftType||"number"===t.leftType||("object"===t.leftType&&(t.leftIsArray=Array.isArray(t.left)),"object"===t.rightType&&(t.rightIsArray=Array.isArray(t.right)),t.leftIsArray!==t.rightIsArray)){t.setResult([t.left,t.right]).exit();return}t.left instanceof RegExp&&(t.right instanceof RegExp?t.setResult([t.left.toString(),t.right.toString()]).exit():t.setResult([t.left,t.right]).exit())};w.filterName="trivial";const k=function(t){if(void 0===t.delta){t.setResult(t.left).exit();return}if(t.nested=!Array.isArray(t.delta),t.nested)return;let e=t.delta;if(1===e.length){t.setResult(e[0]).exit();return}if(2===e.length){if(t.left instanceof RegExp){let i=/^\/(.*)\/([gimyu]+)$/.exec(e[1]);if(i){t.setResult(new RegExp(i[1],i[2])).exit();return}}t.setResult(e[1]).exit();return}3===e.length&&0===e[2]&&t.setResult(void 0).exit()};k.filterName="trivial";const C=function(t){if(void 0===t.delta){t.setResult(t.delta).exit();return}if(t.nested=!Array.isArray(t.delta),t.nested)return;let e=t.delta;if(1===e.length){t.setResult([e[0],0,0]).exit();return}if(2===e.length){t.setResult([e[1],e[0]]).exit();return}3===e.length&&0===e[2]&&t.setResult([e[0]]).exit()};C.filterName="trivial";const S=t=>{let e;if(!t||!t.children)return;let i=t.children.length,n=t.result;for(let s=0;s{let e,i;if(t.leftIsArray||"object"!==t.leftType)return;let n=t.left,s=t.right,r=t.options.propertyFilter;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(!r||r(e,t))&&(i=new y(n[e],s[e]),t.push(i,e));for(e in s)Object.prototype.hasOwnProperty.call(s,e)&&(!r||r(e,t))&&void 0===n[e]&&(i=new y(void 0,s[e]),t.push(i,e));if(!t.children||0===t.children.length){t.setResult(void 0).exit();return}t.exit()};T.filterName="objects";const I=function(t){let e,i;if(!t.nested)return;let n=t.delta;if(!n._t){for(e in n)i=new b(t.left[e],n[e]),t.push(i,e);t.exit()}};I.filterName="objects";const E=function(t){let e;if(!t||!t.children||t.delta._t)return;let i=t.left,n=t.children.length;for(let s=0;s{let e;if(!t||!t.children||t.delta._t)return;let i=t.children.length,n={};for(let s=0;st[s-1][r]?--r:--s;return a};var L={get:function(t,e,i,n){let s=n||{};return N(M(t,e,i||O,s),t,e,s)}};function z(t,e,i,n,s){let r=t[i],a=e[n];if(r===a)return!0;if("object"!=typeof r||"object"!=typeof a)return!1;let o=s.objectHash;if(!o)return s.matchByPosition&&i===n;s.hashCache1=s.hashCache1||[];let l=s.hashCache1[i];if(void 0===l&&(s.hashCache1[i]=l=o(r,i)),void 0===l)return!1;s.hashCache2=s.hashCache2||[];let h=s.hashCache2[n];return void 0===h&&(s.hashCache2[n]=h=o(a,n)),void 0!==h&&l===h}const R=function(t){let e,i,n,s,r;if(!t.leftIsArray)return;let a={objectHash:t.options&&t.options.objectHash,matchByPosition:t.options&&t.options.matchByPosition},o=0,l=0,h=t.left,u=t.right,c=h.length,d=u.length;for(c>0&&d>0&&!a.objectHash&&"boolean"!=typeof a.matchByPosition&&(a.matchByPosition=!function(t,e,i,n){for(let s=0;sg.indices1.indexOf(e-o)&&(r[`_${e}`]=[h[e],0,0],m.push(e));let _=!0;t.options&&t.options.arrays&&!1===t.options.arrays.detectMove&&(_=!1);let v=!1;t.options&&t.options.arrays&&t.options.arrays.includeValueOnMove&&(v=!0);let b=m.length;for(e=o;e0){for(let c=0;ct-e,numericallyBy:t=>(e,i)=>e[t]-i[t]},D=function(t){let e,i,n;if(!t.nested)return;let s=t.delta;if("a"!==s._t)return;let r=t.left,a=[],o=[],l=[];for(e in s)if("_t"!==e){if("_"===e[0]){let t=e;if(0===s[t][2]||3===s[t][2])a.push(parseInt(e.slice(1),10));else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${s[t][2]}`)}else{let t=e;1===s[t].length?o.push({index:parseInt(t,10),value:s[t][0]}):l.push({index:parseInt(t,10),delta:s[t]})}}for(e=(a=a.sort(B.numerically)).length-1;e>=0;e--){i=a[e];let t=s[`_${i}`],n=r.splice(i,1)[0];3===t[2]&&o.push({index:t[1],value:n})}let h=(o=o.sort(B.numericallyBy("index"))).length;for(e=0;e0)for(e=0;e{if("string"==typeof e&&"_"===e[0])return parseInt(e.substring(1),10);if(Array.isArray(i)&&0===i[2])return`_${e}`;let n=+e;for(let i in t){let s=t[i];if(Array.isArray(s)){if(3===s[2]){let t=parseInt(i.substring(1),10),r=s[1];if(r===+e)return t;t<=n&&r>n?n++:t>=n&&r{let e;if(!t||!t.children)return;let i=t.delta;if("a"!==i._t)return;let n=t.children.length,s={_t:"a"};for(let r=0;r=0;)t[e]=0}const Q=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),X=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),tt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),te=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ti=Array(576);Y(ti);const tn=Array(60);Y(tn);const ts=Array(512);Y(ts);const tr=Array(256);Y(tr);const ta=Array(29);Y(ta);const to=Array(30);function tl(t,e,i,n,s){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=s,this.has_stree=t&&t.length}function th(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}Y(to);const tu=t=>t<256?ts[t]:ts[256+(t>>>7)],tc=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},td=(t,e,i)=>{t.bi_valid>16-i?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=e<{td(t,i[2*e],i[2*e+1])},tf=(t,e)=>{let i=0;do i|=1&t,t>>>=1,i<<=1;while(--e>0)return i>>>1},tg=t=>{16===t.bi_valid?(tc(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)},tm=(t,e)=>{let i,n,s,r,a,o;let l=e.dyn_tree,h=e.max_code,u=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,f=e.stat_desc.max_length,g=0;for(r=0;r<=15;r++)t.bl_count[r]=0;for(l[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)(r=l[2*l[2*(n=t.heap[i])+1]+1]+1)>f&&(r=f,g++),l[2*n+1]=r,!(n>h)&&(t.bl_count[r]++,a=0,n>=p&&(a=d[n-p]),o=l[2*n],t.opt_len+=o*(r+a),c&&(t.static_len+=o*(u[2*n+1]+a)));if(0!==g){do{for(r=f-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[f]--,g-=2}while(g>0)for(r=f;0!==r;r--)for(n=t.bl_count[r];0!==n;)!((s=t.heap[--i])>h)&&(l[2*s+1]!==r&&(t.opt_len+=(r-l[2*s+1])*l[2*s],l[2*s+1]=r),n--)}},t_=(t,e,i)=>{let n,s;let r=Array(16),a=0;for(n=1;n<=15;n++)a=a+i[n-1]<<1,r[n]=a;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=tf(r[e]++,e))}},tv=()=>{let n,s,r,a,o;let l=Array(16);for(a=0,r=0;a<28;a++)for(n=0,ta[a]=r;n<1<>=7;a<30;a++)for(n=0,to[a]=o<<7;n<1<{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},tb=t=>{t.bi_valid>8?tc(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},tx=(t,e,i,n)=>{let s=2*e,r=2*i;return t[s]{let n=t.heap[i],s=i<<1;for(;s<=t.heap_len&&(s{let n,s,r,a;let o=0;if(0!==t.sym_next)do n=(255&t.pending_buf[t.sym_buf+o++])+((255&t.pending_buf[t.sym_buf+o++])<<8),s=t.pending_buf[t.sym_buf+o++],0===n?tp(t,s,e):(tp(t,(r=tr[s])+256+1,e),0!==(a=Q[r])&&td(t,s-=ta[r],a),tp(t,r=tu(--n),i),0!==(a=X[r])&&td(t,n-=to[r],a));while(o{let i,n,s;let r=e.dyn_tree,a=e.stat_desc.static_tree,o=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(i=0,t.heap_len=0,t.heap_max=573;i>1;i>=1;i--)tw(t,r,i);s=l;do i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],tw(t,r,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,r[2*s]=r[2*i]+r[2*n],t.depth[s]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,r[2*i+1]=r[2*n+1]=s,t.heap[1]=s++,tw(t,r,1);while(t.heap_len>=2)t.heap[--t.heap_max]=t.heap[1],tm(t,e),t_(r,h,t.bl_count)},tS=(t,e,i)=>{let n,s;let r=-1,a=e[1],o=0,l=7,h=4;for(0===a&&(l=138,h=3),e[(i+1)*2+1]=65535,n=0;n<=i;n++)s=a,a=e[(n+1)*2+1],++o{let n,s;let r=-1,a=e[1],o=0,l=7,h=4;for(0===a&&(l=138,h=3),n=0;n<=i;n++)if(s=a,a=e[(n+1)*2+1],!(++o{let e;for(tS(t,t.dyn_ltree,t.l_desc.max_code),tS(t,t.dyn_dtree,t.d_desc.max_code),tC(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*te[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e},tE=(t,e,i,n)=>{let s;for(td(t,e-257,5),td(t,i-1,5),td(t,n-4,4),s=0;s{let e,i=0xf3ffc07f;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0};let tP=!1;const tO=(t,e,i,n)=>{td(t,0+(n?1:0),3),tb(t),tc(t,i),tc(t,~i),i&&t.pending_buf.set(t.window.subarray(e,e+i),t.pending),t.pending+=i};var tM={_tr_init:n=>{tP||(tv(),tP=!0),n.l_desc=new th(n.dyn_ltree,t),n.d_desc=new th(n.dyn_dtree,e),n.bl_desc=new th(n.bl_tree,i),n.bi_buf=0,n.bi_valid=0,ty(n)},_tr_stored_block:tO,_tr_flush_block:(t,e,i,n)=>{let s,r;let a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=tA(t)),tC(t,t.l_desc),tC(t,t.d_desc),a=tI(t),s=t.opt_len+3+7>>>3,(r=t.static_len+3+7>>>3)<=s&&(s=r)):s=r=i+5,i+4<=s&&-1!==e?tO(t,e,i,n):4===t.strategy||r===s?(td(t,2+(n?1:0),3),tk(t,ti,tn)):(td(t,4+(n?1:0),3),tE(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),tk(t,t.dyn_ltree,t.dyn_dtree)),ty(t),n&&tb(t)},_tr_tally:(t,e,i)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=i,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[(tr[i]+256+1)*2]++,t.dyn_dtree[2*tu(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{td(t,2,3),tp(t,256,ti),tg(t)}},tN=(t,e,i,n)=>{let s=65535&t|0,r=t>>>16&65535|0,a=0;for(;0!==i;){a=i>2e3?2e3:i,i-=a;do r=r+(s=s+e[n++]|0)|0;while(--a)s%=65521,r%=65521}return s|r<<16|0};const tL=new Uint32Array((()=>{let t,e=[];for(var i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?0xedb88320^t>>>1:t>>>1;e[i]=t}return e})());var tz=(t,e,i,n)=>{let s=n+i;t^=-1;for(let i=n;i>>8^tL[(t^e[i])&255];return -1^t},tR={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},tB={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:tD,_tr_stored_block:tV,_tr_flush_block:tF,_tr_tally:tj,_tr_align:tU}=tM,{Z_NO_FLUSH:tq,Z_PARTIAL_FLUSH:tZ,Z_FULL_FLUSH:tH,Z_FINISH:tG,Z_BLOCK:tW,Z_OK:t$,Z_STREAM_END:tK,Z_STREAM_ERROR:tJ,Z_DATA_ERROR:tY,Z_BUF_ERROR:tQ,Z_DEFAULT_COMPRESSION:tX,Z_FILTERED:t0,Z_HUFFMAN_ONLY:t1,Z_RLE:t2,Z_FIXED:t5,Z_DEFAULT_STRATEGY:t3,Z_UNKNOWN:t6,Z_DEFLATED:t4}=tB,t9=(t,e)=>(t.msg=tR[e],e),t8=t=>2*t-(t>4?9:0),t7=t=>{let e=t.length;for(;--e>=0;)t[e]=0},et=t=>{let e,i,n;let s=t.w_size;n=e=t.hash_size;do i=t.head[--n],t.head[n]=i>=s?i-s:0;while(--e)n=e=s;do i=t.prev[--n],t.prev[n]=i>=s?i-s:0;while(--e)};let ee=(t,e,i)=>(e<{let e=t.state,i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+i),t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))},en=(t,e)=>{tF(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ei(t.strm)},es=(t,e)=>{t.pending_buf[t.pending++]=e},er=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},ea=(t,e,i,n)=>{let s=t.avail_in;return(s>n&&(s=n),0===s)?0:(t.avail_in-=s,e.set(t.input.subarray(t.next_in,t.next_in+s),i),1===t.state.wrap?t.adler=tN(t.adler,e,s,i):2===t.state.wrap&&(t.adler=tz(t.adler,e,s,i)),t.next_in+=s,t.total_in+=s,s)},eo=(t,e)=>{let i,n,s=t.max_chain_length,r=t.strstart,a=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,u=t.w_mask,c=t.prev,d=t.strstart+258,p=h[r+a-1],f=h[r+a];t.prev_length>=t.good_match&&(s>>=2),o>t.lookahead&&(o=t.lookahead);do{if(h[(i=e)+a]!==f||h[i+a-1]!==p||h[i]!==h[r]||h[++i]!==h[r+1])continue;r+=2,i++;do;while(h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&ra){if(t.match_start=e,a=n,n>=o)break;p=h[r+a-1],f=h[r+a]}}while((e=c[e&u])>l&&0!=--s)return a<=t.lookahead?a:t.lookahead},el=t=>{let e,i,n;let s=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-262)&&(t.window.set(t.window.subarray(s,s+s-i),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,t.insert>t.strstart&&(t.insert=t.strstart),et(t),i+=s),0===t.strm.avail_in)break;if(e=ea(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=e,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ee(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ee(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},eh=(t,e)=>{let i=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,n,s,r,a=0,o=t.strm.avail_in;do{if(n=65535,r=t.bi_valid+42>>3,t.strm.avail_out(s=t.strstart-t.block_start)+t.strm.avail_in&&(n=s+t.strm.avail_in),n>r&&(n=r),n>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,ei(t.strm),s&&(s>n&&(s=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+s),t.strm.next_out),t.strm.next_out+=s,t.strm.avail_out-=s,t.strm.total_out+=s,t.block_start+=s,n-=s),n&&(ea(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(0===a)return((o-=t.strm.avail_in)&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_waterr&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(ea(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water>3,i=(r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r)>t.w_size?t.w_size:r,((s=t.strstart-t.block_start)>=i||(s||e===tG)&&e!==tq&&0===t.strm.avail_in&&s<=r)&&(n=s>r?r:s,a=e===tG&&0===t.strm.avail_in&&n===s?1:0,tV(t,t.block_start,n,a),t.block_start+=n,ei(t.strm)),a?3:1)},eu=(t,e)=>{let i,n;for(;;){if(t.lookahead<262){if(el(t),t.lookahead<262&&e===tq)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-262&&(t.match_length=eo(t,i)),t.match_length>=3){if(n=tj(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do t.strstart++,t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(0!=--t.match_length)t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ee(t,t.ins_h,t.window[t.strstart+1])}else n=tj(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(en(t,!1),0===t.strm.avail_out))return 1}return(t.insert=t.strstart<2?t.strstart:2,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2},ec=(t,e)=>{let i,n,s;for(;;){if(t.lookahead<262){if(el(t),t.lookahead<262&&e===tq)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==i&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){s=t.strstart+t.lookahead-3,n=tj(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=s&&(t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(0!=--t.prev_length)if(t.match_available=0,t.match_length=2,t.strstart++,n&&(en(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=tj(t,0,t.window[t.strstart-1]))&&en(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return(t.match_available&&(n=tj(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2},ed=(t,e)=>{let i,n,s,r;let a=t.window;for(;;){if(t.lookahead<=258){if(el(t),t.lookahead<=258&&e===tq)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[s=t.strstart-1])===a[++s]&&n===a[++s]&&n===a[++s]){r=t.strstart+258;do;while(n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&st.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=tj(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=tj(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(en(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2},ep=(t,e)=>{let i;for(;;){if(0===t.lookahead&&(el(t),0===t.lookahead)){if(e===tq)return 1;break}if(t.match_length=0,i=tj(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(en(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2};function ef(t,e,i,n,s){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=s}const eg=[new ef(0,0,0,0,eh),new ef(4,4,8,4,eu),new ef(4,5,16,8,eu),new ef(4,6,32,32,eu),new ef(4,4,16,16,ec),new ef(8,16,32,32,ec),new ef(8,16,128,128,ec),new ef(8,32,128,256,ec),new ef(32,128,258,1024,ec),new ef(32,258,258,4096,ec)],em=t=>{t.window_size=2*t.w_size,t7(t.head),t.max_lazy_match=eg[t.level].max_lazy,t.good_match=eg[t.level].good_length,t.nice_match=eg[t.level].nice_length,t.max_chain_length=eg[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0};function e_(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=t4,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),t7(this.dyn_ltree),t7(this.dyn_dtree),t7(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),t7(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),t7(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const ev=t=>{if(!t)return 1;let e=t.state;return e&&e.strm===t&&(42===e.status||57===e.status||69===e.status||73===e.status||91===e.status||103===e.status||113===e.status||666===e.status)?0:1},ey=t=>{if(ev(t))return t9(t,tJ);t.total_in=t.total_out=0,t.data_type=t6;let e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,tD(e),t$},eb=t=>{let e=ey(t);return e===t$&&em(t.state),e};var ex={deflateInit2:(t,e,i,n,s,r)=>{if(!t)return tJ;let a=1;if(e===tX&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),s<1||s>9||i!==t4||n<8||n>15||e<0||e>9||r<0||r>t5||8===n&&1!==a)return t9(t,tJ);8===n&&(n=9);let o=new e_;return t.state=o,o.strm=t,o.status=42,o.wrap=a,o.gzhead=null,o.w_bits=n,o.w_size=1<ev(t)||2!==t.state.wrap?tJ:(t.state.gzhead=e,t$),deflate:(t,e)=>{if(ev(t)||e>tW||e<0)return t?t9(t,tJ):tJ;let i=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===i.status&&e!==tG)return t9(t,0===t.avail_out?tQ:tJ);let n=i.last_flush;if(i.last_flush=e,0!==i.pending){if(ei(t),0===t.avail_out)return i.last_flush=-1,t$}else if(0===t.avail_in&&t8(e)<=t8(n)&&e!==tG)return t9(t,tQ);if(666===i.status&&0!==t.avail_in)return t9(t,tQ);if(42===i.status&&0===i.wrap&&(i.status=113),42===i.status){let e=t4+(i.w_bits-8<<4)<<8;if(e|=(i.strategy>=t1||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(e|=32),er(i,e+=31-e%31),0!==i.strstart&&(er(i,t.adler>>>16),er(i,65535&t.adler)),t.adler=1,i.status=113,ei(t),0!==i.pending)return i.last_flush=-1,t$}if(57===i.status){if(t.adler=0,es(i,31),es(i,139),es(i,8),i.gzhead)es(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),es(i,255&i.gzhead.time),es(i,i.gzhead.time>>8&255),es(i,i.gzhead.time>>16&255),es(i,i.gzhead.time>>24&255),es(i,9===i.level?2:i.strategy>=t1||i.level<2?4:0),es(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(es(i,255&i.gzhead.extra.length),es(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=tz(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69;else if(es(i,0),es(i,0),es(i,0),es(i,0),es(i,0),es(i,9===i.level?2:i.strategy>=t1||i.level<2?4:0),es(i,3),i.status=113,ei(t),0!==i.pending)return i.last_flush=-1,t$}if(69===i.status){if(i.gzhead.extra){let e=i.pending,n=(65535&i.gzhead.extra.length)-i.gzindex;for(;i.pending+n>i.pending_buf_size;){let s=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+s),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&&i.pending>e&&(t.adler=tz(t.adler,i.pending_buf,i.pending-e,e)),i.gzindex+=s,ei(t),0!==i.pending)return i.last_flush=-1,t$;e=0,n-=s}let s=new Uint8Array(i.gzhead.extra);i.pending_buf.set(s.subarray(i.gzindex,i.gzindex+n),i.pending),i.pending+=n,i.gzhead.hcrc&&i.pending>e&&(t.adler=tz(t.adler,i.pending_buf,i.pending-e,e)),i.gzindex=0}i.status=73}if(73===i.status){if(i.gzhead.name){let e,n=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n)),ei(t),0!==i.pending)return i.last_flush=-1,t$;n=0}e=i.gzindexn&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=91}if(91===i.status){if(i.gzhead.comment){let e,n=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n)),ei(t),0!==i.pending)return i.last_flush=-1,t$;n=0}e=i.gzindexn&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n))}i.status=103}if(103===i.status){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size&&(ei(t),0!==i.pending))return i.last_flush=-1,t$;es(i,255&t.adler),es(i,t.adler>>8&255),t.adler=0}if(i.status=113,ei(t),0!==i.pending)return i.last_flush=-1,t$}if(0!==t.avail_in||0!==i.lookahead||e!==tq&&666!==i.status){let n=0===i.level?eh(i,e):i.strategy===t1?ep(i,e):i.strategy===t2?ed(i,e):eg[i.level].func(i,e);if((3===n||4===n)&&(i.status=666),1===n||3===n)return 0===t.avail_out&&(i.last_flush=-1),t$;if(2===n&&(e===tZ?tU(i):e!==tW&&(tV(i,0,0,!1),e===tH&&(t7(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ei(t),0===t.avail_out))return i.last_flush=-1,t$}return e!==tG?t$:i.wrap<=0?tK:(2===i.wrap?(es(i,255&t.adler),es(i,t.adler>>8&255),es(i,t.adler>>16&255),es(i,t.adler>>24&255),es(i,255&t.total_in),es(i,t.total_in>>8&255),es(i,t.total_in>>16&255),es(i,t.total_in>>24&255)):(er(i,t.adler>>>16),er(i,65535&t.adler)),ei(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?t$:tK)},deflateEnd:t=>{if(ev(t))return tJ;let e=t.state.status;return t.state=null,113===e?t9(t,tY):t$},deflateSetDictionary:(t,e)=>{let i=e.length;if(ev(t))return tJ;let n=t.state,s=n.wrap;if(2===s||1===s&&42!==n.status||n.lookahead)return tJ;if(1===s&&(t.adler=tN(t.adler,e,i,0)),n.wrap=0,i>=n.w_size){0===s&&(t7(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(i-n.w_size,i),0),e=t,i=n.w_size}let r=t.avail_in,a=t.next_in,o=t.input;for(t.avail_in=i,t.next_in=0,t.input=e,el(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do n.ins_h=ee(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++;while(--e)n.strstart=t,n.lookahead=2,el(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=a,t.input=o,t.avail_in=r,n.wrap=s,t$}};const ew=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var ek={assign:function(t){let e=Array.prototype.slice.call(arguments,1);for(;e.length;){let i=e.shift();if(i){if("object"!=typeof i)throw TypeError(i+"must be non-object");for(let e in i)ew(i,e)&&(t[e]=i[e])}}return t},flattenChunks:t=>{let e=0;for(let i=0,n=t.length;i=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;eS[254]=eS[254]=1;const eT=(t,e)=>{if(e<65534&&t.subarray&&eC)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let i="";for(let n=0;n{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,i,n,s,r,a=t.length,o=0;for(s=0;s>>6:(i<65536?e[r++]=224|i>>>12:(e[r++]=240|i>>>18,e[r++]=128|i>>>12&63),e[r++]=128|i>>>6&63),e[r++]=128|63&i);return e},buf2string:(t,e)=>{let i,n;let s=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let r=Array(2*s);for(n=0,i=0;i4){r[n++]=65533,i+=a-1;continue}for(e&=2===a?31:3===a?15:7;a>1&&i1){r[n++]=65533;continue}e<65536?r[n++]=e:(e-=65536,r[n++]=55296|e>>10&1023,r[n++]=56320|1023&e)}return eT(r,n)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let i=e-1;for(;i>=0&&(192&t[i])==128;)i--;return i<0||0===i?e:i+eS[t[i]]>e?i:e}},eE=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const eA=Object.prototype.toString,{Z_NO_FLUSH:eP,Z_SYNC_FLUSH:eO,Z_FULL_FLUSH:eM,Z_FINISH:eN,Z_OK:eL,Z_STREAM_END:ez,Z_DEFAULT_COMPRESSION:eR,Z_DEFAULT_STRATEGY:eB,Z_DEFLATED:eD}=tB;function eV(t){this.options=ek.assign({level:eR,method:eD,chunkSize:16384,windowBits:15,memLevel:8,strategy:eB},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eE,this.strm.avail_out=0;let i=ex.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(i!==eL)throw Error(tR[i]);if(e.header&&ex.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?eI.string2buf(e.dictionary):"[object ArrayBuffer]"===eA.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(i=ex.deflateSetDictionary(this.strm,t))!==eL)throw Error(tR[i]);this._dict_set=!0}}function eF(t,e){let i=new eV(e);if(i.push(t,!0),i.err)throw i.msg||tR[i.err];return i.result}eV.prototype.push=function(t,e){let i,n;let s=this.strm,r=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?eN:eP,"string"==typeof t?s.input=eI.string2buf(t):"[object ArrayBuffer]"===eA.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;;){if(0===s.avail_out&&(s.output=new Uint8Array(r),s.next_out=0,s.avail_out=r),(n===eO||n===eM)&&s.avail_out<=6){this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;continue}if((i=ex.deflate(s,n))===ez)return s.next_out>0&&this.onData(s.output.subarray(0,s.next_out)),i=ex.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===eL;if(0===s.avail_out){this.onData(s.output);continue}if(n>0&&s.next_out>0){this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;continue}if(0===s.avail_in)break}return!0},eV.prototype.onData=function(t){this.chunks.push(t)},eV.prototype.onEnd=function(t){t===eL&&(this.result=ek.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ej=function(t,e){let i,n,s,r,a,o,l,h,u,c,d,p,f,g,m,_,v,y,b,x,w,k,C,S;let T=t.state;i=t.next_in,C=t.input,n=i+(t.avail_in-5),s=t.next_out,S=t.output,r=s-(e-t.avail_out),a=s+(t.avail_out-257),o=T.dmax,l=T.wsize,h=T.whave,u=T.wnext,c=T.window,d=T.hold,p=T.bits,f=T.lencode,g=T.distcode,m=(1<>>=y=v>>>24,p-=y,0==(y=v>>>16&255))S[s++]=65535&v;else if(16&y)for(b=65535&v,(y&=15)&&(p>>=y,p-=y),p<15&&(d+=C[i++]<>>=y=v>>>24,p-=y,16&(y=v>>>16&255)){if(x=65535&v,p<(y&=15)&&(d+=C[i++]<o){t.msg="invalid distance too far back",T.mode=16209;break i}if(d>>>=y,p-=y,x>(y=s-r)){if((y=x-y)>h&&T.sane){t.msg="invalid distance too far back",T.mode=16209;break i}if(w=0,k=c,0===u){if(w+=l-y,y2;)S[s++]=k[w++],S[s++]=k[w++],S[s++]=k[w++],b-=3;b&&(S[s++]=k[w++],b>1&&(S[s++]=k[w++]))}else{w=s-x;do S[s++]=S[w++],S[s++]=S[w++],S[s++]=S[w++],b-=3;while(b>2)b&&(S[s++]=S[w++],b>1&&(S[s++]=S[w++]))}}else if((64&y)==0){v=g[(65535&v)+(d&(1<>3,p-=b<<3,d&=(1<{let l,h,u,c,d,p,f,g,m;let _=o.bits,v=0,y=0,b=0,x=0,w=0,k=0,C=0,S=0,T=0,I=0,E=null,A=new Uint16Array(16),P=new Uint16Array(16),O=null;for(v=0;v<=15;v++)A[v]=0;for(y=0;y=1&&0===A[x];x--);if(w>x&&(w=x),0===x)return s[r++]=0x1400000,s[r++]=0x1400000,o.bits=1,0;for(b=1;b0&&(0===t||1!==x))return -1;for(v=1,P[1]=0;v<15;v++)P[v+1]=P[v]+A[v];for(y=0;y852||2===t&&T>592)return 1;for(;;){f=v-C,a[y]+1=p?(g=O[a[y]-p],m=E[a[y]-p]):(g=96,m=0),l=1<>C)+(h-=l)]=f<<24|g<<16|m|0;while(0!==h)for(l=1<>=1;if(0!==l?(I&=l-1,I+=l):I=0,y++,0==--A[v]){if(v===x)break;v=e[i+a[y]]}if(v>w&&(I&c)!==u){for(0===C&&(C=w),d+=b,S=1<<(k=v-C);k+C852||2===t&&T>592)return 1;s[u=I&c]=w<<24|k<<16|d-r|0}}return 0!==I&&(s[d+I]=v-C<<24|4194304),o.bits=w,0};const{Z_FINISH:eW,Z_BLOCK:e$,Z_TREES:eK,Z_OK:eJ,Z_STREAM_END:eY,Z_NEED_DICT:eQ,Z_STREAM_ERROR:eX,Z_DATA_ERROR:e0,Z_MEM_ERROR:e1,Z_BUF_ERROR:e2,Z_DEFLATED:e5}=tB,e3=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function e6(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const e4=t=>{if(!t)return 1;let e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},e9=t=>{if(e4(t))return eX;let e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,eJ},e8=t=>{if(e4(t))return eX;let e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,e9(t)},e7=(t,e)=>{let i;if(e4(t))return eX;let n=t.state;return(e<0?(i=0,e=-e):(i=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15))?eX:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,e8(t))};let it=!0;const ie=t=>{if(it){n=new Int32Array(512),s=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(eG(1,t.lens,0,288,n,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;eG(2,t.lens,0,32,s,0,t.work,{bits:5}),it=!1}t.lencode=n,t.lenbits=9,t.distcode=s,t.distbits=5},ii=(t,e,i,n)=>{let s;let r=t.state;return null===r.window&&(r.wsize=1<=r.wsize?(r.window.set(e.subarray(i-r.wsize,i),0),r.wnext=0,r.whave=r.wsize):((s=r.wsize-r.wnext)>n&&(s=n),r.window.set(e.subarray(i-n,i-n+s),r.wnext),(n-=s)?(r.window.set(e.subarray(i-n,i),0),r.wnext=n,r.whave=r.wsize):(r.wnext+=s,r.wnext===r.wsize&&(r.wnext=0),r.whave{if(!t)return eX;let i=new e6;t.state=i,i.strm=t,i.window=null,i.mode=16180;let n=e7(t,e);return n!==eJ&&(t.state=null),n},inflate:(t,e)=>{let i,n,s,r,a,o,l,h,u,c,d,p,f,g,m,_,v,y,b,x,w,k,C,S;let T=0,I=new Uint8Array(4),E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(e4(t)||!t.output||!t.input&&0!==t.avail_in)return eX;16191===(i=t.state).mode&&(i.mode=16192),a=t.next_out,s=t.output,l=t.avail_out,r=t.next_in,n=t.input,o=t.avail_in,h=i.hold,u=i.bits,c=o,d=l,k=eJ;n:for(;;)switch(i.mode){case 16180:if(0===i.wrap){i.mode=16192;break}for(;u<16;){if(0===o)break n;o--,h+=n[r++]<>>8&255,i.check=tz(i.check,I,2,0),h=0,u=0,i.mode=16181;break}if(i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",i.mode=16209;break}if((15&h)!==e5){t.msg="unknown compression method",i.mode=16209;break}if(h>>>=4,u-=4,w=(15&h)+8,0===i.wbits&&(i.wbits=w),w>15||w>i.wbits){t.msg="invalid window size",i.mode=16209;break}i.dmax=1<>8&1),512&i.flags&&4&i.wrap&&(I[0]=255&h,I[1]=h>>>8&255,i.check=tz(i.check,I,2,0)),h=0,u=0,i.mode=16182;case 16182:for(;u<32;){if(0===o)break n;o--,h+=n[r++]<>>8&255,I[2]=h>>>16&255,I[3]=h>>>24&255,i.check=tz(i.check,I,4,0)),h=0,u=0,i.mode=16183;case 16183:for(;u<16;){if(0===o)break n;o--,h+=n[r++]<>8),512&i.flags&&4&i.wrap&&(I[0]=255&h,I[1]=h>>>8&255,i.check=tz(i.check,I,2,0)),h=0,u=0,i.mode=16184;case 16184:if(1024&i.flags){for(;u<16;){if(0===o)break n;o--,h+=n[r++]<>>8&255,i.check=tz(i.check,I,2,0)),h=0,u=0}else i.head&&(i.head.extra=null);i.mode=16185;case 16185:if(1024&i.flags&&((p=i.length)>o&&(p=o),p&&(i.head&&(w=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(n.subarray(r,r+p),w)),512&i.flags&&4&i.wrap&&(i.check=tz(i.check,n,p,r)),o-=p,r+=p,i.length-=p),i.length))break n;i.length=0,i.mode=16186;case 16186:if(2048&i.flags){if(0===o)break n;p=0;do w=n[r+p++],i.head&&w&&i.length<65536&&(i.head.name+=String.fromCharCode(w));while(w&&p>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=16191;break;case 16189:for(;u<32;){if(0===o)break n;o--,h+=n[r++]<>>=7&u,u-=7&u,i.mode=16206;break}for(;u<3;){if(0===o)break n;o--,h+=n[r++]<>>=1)){case 0:i.mode=16193;break;case 1:if(ie(i),i.mode=16199,e===eK){h>>>=2,u-=2;break n}break;case 2:i.mode=16196;break;case 3:t.msg="invalid block type",i.mode=16209}h>>>=2,u-=2;break;case 16193:for(h>>>=7&u,u-=7&u;u<32;){if(0===o)break n;o--,h+=n[r++]<>>16^65535)){t.msg="invalid stored block lengths",i.mode=16209;break}if(i.length=65535&h,h=0,u=0,i.mode=16194,e===eK)break n;case 16194:i.mode=16195;case 16195:if(p=i.length){if(p>o&&(p=o),p>l&&(p=l),0===p)break n;s.set(n.subarray(r,r+p),a),o-=p,r+=p,l-=p,a+=p,i.length-=p;break}i.mode=16191;break;case 16196:for(;u<14;){if(0===o)break n;o--,h+=n[r++]<>>=5,u-=5,i.ndist=(31&h)+1,h>>>=5,u-=5,i.ncode=(15&h)+4,h>>>=4,u-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=16209;break}i.have=0,i.mode=16197;case 16197:for(;i.have>>=3,u-=3}for(;i.have<19;)i.lens[E[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,C={bits:i.lenbits},k=eG(0,i.lens,0,19,i.lencode,0,i.work,C),i.lenbits=C.bits,k){t.msg="invalid code lengths set",i.mode=16209;break}i.have=0,i.mode=16198;case 16198:for(;i.have>>24,_=T>>>16&255,v=65535&T,!(m<=u);){if(0===o)break n;o--,h+=n[r++]<>>=m,u-=m,i.lens[i.have++]=v;else{if(16===v){for(S=m+2;u>>=m,u-=m,0===i.have){t.msg="invalid bit length repeat",i.mode=16209;break}w=i.lens[i.have-1],p=3+(3&h),h>>>=2,u-=2}else if(17===v){for(S=m+3;u>>=m,u-=m,w=0,p=3+(7&h),h>>>=3,u-=3}else{for(S=m+7;u>>=m,u-=m,w=0,p=11+(127&h),h>>>=7,u-=7}if(i.have+p>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=16209;break}for(;p--;)i.lens[i.have++]=w}}if(16209===i.mode)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=16209;break}if(i.lenbits=9,C={bits:i.lenbits},k=eG(1,i.lens,0,i.nlen,i.lencode,0,i.work,C),i.lenbits=C.bits,k){t.msg="invalid literal/lengths set",i.mode=16209;break}if(i.distbits=6,i.distcode=i.distdyn,C={bits:i.distbits},k=eG(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,C),i.distbits=C.bits,k){t.msg="invalid distances set",i.mode=16209;break}if(i.mode=16199,e===eK)break n;case 16199:i.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=r,t.avail_in=o,i.hold=h,i.bits=u,ej(t,d),a=t.next_out,s=t.output,l=t.avail_out,r=t.next_in,n=t.input,o=t.avail_in,h=i.hold,u=i.bits,16191===i.mode&&(i.back=-1);break}for(i.back=0;m=(T=i.lencode[h&(1<>>24,_=T>>>16&255,v=65535&T,!(m<=u);){if(0===o)break n;o--,h+=n[r++]<>y)])>>>24,_=T>>>16&255,v=65535&T,!(y+m<=u);){if(0===o)break n;o--,h+=n[r++]<>>=y,u-=y,i.back+=y}if(h>>>=m,u-=m,i.back+=m,i.length=v,0===_){i.mode=16205;break}if(32&_){i.back=-1,i.mode=16191;break}if(64&_){t.msg="invalid literal/length code",i.mode=16209;break}i.extra=15&_,i.mode=16201;case 16201:if(i.extra){for(S=i.extra;u>>=i.extra,u-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=16202;case 16202:for(;m=(T=i.distcode[h&(1<>>24,_=T>>>16&255,v=65535&T,!(m<=u);){if(0===o)break n;o--,h+=n[r++]<>y)])>>>24,_=T>>>16&255,v=65535&T,!(y+m<=u);){if(0===o)break n;o--,h+=n[r++]<>>=y,u-=y,i.back+=y}if(h>>>=m,u-=m,i.back+=m,64&_){t.msg="invalid distance code",i.mode=16209;break}i.offset=v,i.extra=15&_,i.mode=16203;case 16203:if(i.extra){for(S=i.extra;u>>=i.extra,u-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=16209;break}i.mode=16204;case 16204:if(0===l)break n;if(p=d-l,i.offset>p){if((p=i.offset-p)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=16209;break}p>i.wnext?(p-=i.wnext,f=i.wsize-p):f=i.wnext-p,p>i.length&&(p=i.length),g=i.window}else g=s,f=a-i.offset,p=i.length;p>l&&(p=l),l-=p,i.length-=p;do s[a++]=g[f++];while(--p)0===i.length&&(i.mode=16200);break;case 16205:if(0===l)break n;s[a++]=i.length,l--,i.mode=16200;break;case 16206:if(i.wrap){for(;u<32;){if(0===o)break n;o--,h|=n[r++]<{if(e4(t))return eX;let e=t.state;return e.window&&(e.window=null),t.state=null,eJ},inflateGetHeader:(t,e)=>{if(e4(t))return eX;let i=t.state;return(2&i.wrap)==0?eX:(i.head=e,e.done=!1,eJ)},inflateSetDictionary:(t,e)=>{let i;let n=e.length;return e4(t)||0!==(i=t.state).wrap&&16190!==i.mode?eX:16190===i.mode&&tN(1,e,n,0)!==i.check?e0:ii(t,e,n,n)?(i.mode=16210,e1):(i.havedict=1,eJ)}},ir=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const ia=Object.prototype.toString,{Z_NO_FLUSH:io,Z_FINISH:il,Z_OK:ih,Z_STREAM_END:iu,Z_NEED_DICT:ic,Z_STREAM_ERROR:id,Z_DATA_ERROR:ip,Z_MEM_ERROR:ig}=tB;function im(t){this.options=ek.assign({chunkSize:65536,windowBits:15,to:""},t||{});let e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits)==0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eE,this.strm.avail_out=0;let i=is.inflateInit2(this.strm,e.windowBits);if(i!==ih||(this.header=new ir,is.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=eI.string2buf(e.dictionary):"[object ArrayBuffer]"===ia.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(i=is.inflateSetDictionary(this.strm,e.dictionary))!==ih)))throw Error(tR[i])}function i_(t,e){let i=new im(e);if(i.push(t),i.err)throw i.msg||tR[i.err];return i.result}im.prototype.push=function(t,e){let i,n,s;let r=this.strm,a=this.options.chunkSize,o=this.options.dictionary;if(this.ended)return!1;for(n=e===~~e?e:!0===e?il:io,"[object ArrayBuffer]"===ia.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),(i=is.inflate(r,n))===ic&&o&&((i=is.inflateSetDictionary(r,o))===ih?i=is.inflate(r,n):i===ip&&(i=ic));r.avail_in>0&&i===iu&&r.state.wrap>0&&0!==t[r.next_in];)is.inflateReset(r),i=is.inflate(r,n);switch(i){case id:case ip:case ic:case ig:return this.onEnd(i),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||i===iu)){if("string"===this.options.to){let t=eI.utf8border(r.output,r.next_out),e=r.next_out-t,i=eI.buf2string(r.output,t);r.next_out=e,r.avail_out=a-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out))}if(i!==ih||0!==s){if(i===iu)return i=is.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},im.prototype.onData=function(t){this.chunks.push(t)},im.prototype.onEnd=function(t){t===ih&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=ek.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:iv,deflate:iy,deflateRaw:ib,gzip:ix}={Deflate:eV,deflate:eF,deflateRaw:function(t,e){return(e=e||{}).raw=!0,eF(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,eF(t,e)},constants:tB},{Inflate:iw,inflate:ik,inflateRaw:iC,ungzip:iS}={Inflate:im,inflate:i_,inflateRaw:function(t,e){return(e=e||{}).raw=!0,i_(t,e)},ungzip:i_,constants:tB};var iT=(t,e=0,i=1)=>iN(iL(e,t),i),iI=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=iT(t[e],0,255)):3===e&&(t[e]=iT(t[e],0,1));return t};const iE={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])iE[`[object ${t}]`]=t.toLowerCase();function iA(t){return iE[Object.prototype.toString.call(t)]||"object"}var iP=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):"object"==iA(t[0])&&e?e.split("").filter(e=>void 0!==t[0][e]).map(e=>t[0][e]):t[0],iO=t=>{if(t.length<2)return null;let e=t.length-1;return"string"==iA(t[e])?t[e].toLowerCase():null};const{PI:iM,min:iN,max:iL}=Math,iz=2*iM,iR=iM/3,iB=iM/180,iD=180/iM;var iV={format:{},autodetect:[]},iF=class{constructor(...t){if("object"===iA(t[0])&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];let e=iO(t),i=!1;if(!e){for(let n of(i=!0,iV.sorted||(iV.autodetect=iV.autodetect.sort((t,e)=>e.p-t.p),iV.sorted=!0),iV.autodetect))if(e=n.test(...t))break}if(iV.format[e]){let n=iV.format[e].apply(null,i?t:t.slice(0,-1));this._rgb=iI(n)}else throw Error("unknown format: "+t);3===this._rgb.length&&this._rgb.push(1)}toString(){return"function"==iA(this.hex)?this.hex():`[${this._rgb.join(",")}]`}};const ij=(...t)=>new ij.Color(...t);ij.Color=iF,ij.version="2.6.0";const{max:iU}=Math;var iq=(...t)=>{let[e,i,n]=iP(t,"rgb"),s=1-iU(e/=255,iU(i/=255,n/=255)),r=s<1?1/(1-s):0;return[(1-e-s)*r,(1-i-s)*r,(1-n-s)*r,s]};iF.prototype.cmyk=function(){return iq(this._rgb)},ij.cmyk=(...t)=>new iF(...t,"cmyk"),iV.format.cmyk=(...t)=>{let[e,i,n,s]=t=iP(t,"cmyk"),r=t.length>4?t[4]:1;return 1===s?[0,0,0,r]:[e>=1?0:255*(1-e)*(1-s),i>=1?0:255*(1-i)*(1-s),n>=1?0:255*(1-n)*(1-s),r]},iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"cmyk"))&&4===t.length)return"cmyk"}});const iZ=t=>Math.round(100*t)/100;var iH=(...t)=>{let e=iP(t,"hsla"),i=iO(t)||"lsa";return e[0]=iZ(e[0]||0),e[1]=iZ(100*e[1])+"%",e[2]=iZ(100*e[2])+"%","hsla"===i||e.length>3&&e[3]<1?(e[3]=e.length>3?e[3]:1,i="hsla"):e.length=3,`${i}(${e.join(",")})`},iG=(...t)=>{let e,i;let[n,s,r]=t=iP(t,"rgba"),a=iN(n/=255,s/=255,r/=255),o=iL(n,s,r),l=(o+a)/2;return(o===a?(e=0,i=Number.NaN):e=l<.5?(o-a)/(o+a):(o-a)/(2-o-a),n==o?i=(s-r)/(o-a):s==o?i=2+(r-n)/(o-a):r==o&&(i=4+(n-s)/(o-a)),(i*=60)<0&&(i+=360),t.length>3&&void 0!==t[3])?[i,e,l,t[3]]:[i,e,l]};const{round:iW}=Math;var i$=(...t)=>{let e=iP(t,"rgba"),i=iO(t)||"rgb";return"hsl"==i.substr(0,3)?iH(iG(e),i):(e[0]=iW(e[0]),e[1]=iW(e[1]),e[2]=iW(e[2]),("rgba"===i||e.length>3&&e[3]<1)&&(e[3]=e.length>3?e[3]:1,i="rgba"),`${i}(${e.slice(0,"rgb"===i?3:4).join(",")})`)};const{round:iK}=Math;var iJ=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hsl");if(0===r)e=i=n=255*a;else{let t=[0,0,0],o=[0,0,0],l=a<.5?a*(1+r):a+r-a*r,h=2*a-l,u=s/360;t[0]=u+1/3,t[1]=u,t[2]=u-1/3;for(let e=0;e<3;e++)t[e]<0&&(t[e]+=1),t[e]>1&&(t[e]-=1),6*t[e]<1?o[e]=h+(l-h)*6*t[e]:2*t[e]<1?o[e]=l:3*t[e]<2?o[e]=h+(l-h)*(2/3-t[e])*6:o[e]=h;[e,i,n]=[iK(255*o[0]),iK(255*o[1]),iK(255*o[2])]}return t.length>3?[e,i,n,t[3]]:[e,i,n,1]};const iY=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,iQ=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,iX=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,i0=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,i1=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,i2=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:i5}=Math,i3=t=>{let e;if(t=t.toLowerCase().trim(),iV.format.named)try{return iV.format.named(t)}catch(t){}if(e=t.match(iY)){let t=e.slice(1,4);for(let e=0;e<3;e++)t[e]=+t[e];return t[3]=1,t}if(e=t.match(iQ)){let t=e.slice(1,5);for(let e=0;e<4;e++)t[e]=+t[e];return t}if(e=t.match(iX)){let t=e.slice(1,4);for(let e=0;e<3;e++)t[e]=i5(2.55*t[e]);return t[3]=1,t}if(e=t.match(i0)){let t=e.slice(1,5);for(let e=0;e<3;e++)t[e]=i5(2.55*t[e]);return t[3]=+t[3],t}if(e=t.match(i1)){let t=e.slice(1,4);t[1]*=.01,t[2]*=.01;let i=iJ(t);return i[3]=1,i}if(e=t.match(i2)){let t=e.slice(1,4);t[1]*=.01,t[2]*=.01;let i=iJ(t);return i[3]=+e[4],i}};i3.test=t=>iY.test(t)||iQ.test(t)||iX.test(t)||i0.test(t)||i1.test(t)||i2.test(t),iF.prototype.css=function(t){return i$(this._rgb,t)},ij.css=(...t)=>new iF(...t,"css"),iV.format.css=i3,iV.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&"string"===iA(t)&&i3.test(t))return"css"}}),iV.format.gl=(...t)=>{let e=iP(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e},ij.gl=(...t)=>new iF(...t,"gl"),iF.prototype.gl=function(){let t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};const{floor:i6}=Math;var i4=(...t)=>{let e;let[i,n,s]=iP(t,"rgb"),r=iN(i,n,s),a=iL(i,n,s),o=a-r;return 0===o?e=Number.NaN:(i===a&&(e=(n-s)/o),n===a&&(e=2+(s-i)/o),s===a&&(e=4+(i-n)/o),(e*=60)<0&&(e+=360)),[e,100*o/255,r/(255-o)*100]};iF.prototype.hcg=function(){return i4(this._rgb)},ij.hcg=(...t)=>new iF(...t,"hcg"),iV.format.hcg=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hcg");a*=255;let o=255*r;if(0===r)e=i=n=a;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);let t=i6(s/=60),l=s-t,h=a*(1-r),u=h+o*(1-l),c=h+o*l,d=h+o;switch(t){case 0:[e,i,n]=[d,c,h];break;case 1:[e,i,n]=[u,d,h];break;case 2:[e,i,n]=[h,d,c];break;case 3:[e,i,n]=[h,u,d];break;case 4:[e,i,n]=[c,h,d];break;case 5:[e,i,n]=[d,h,u]}}return[e,i,n,t.length>3?t[3]:1]},iV.autodetect.push({p:1,test:(...t)=>{if("array"===iA(t=iP(t,"hcg"))&&3===t.length)return"hcg"}});const i9=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,i8=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;var i7=t=>{if(t.match(i9)){(4===t.length||7===t.length)&&(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);let e=parseInt(t,16);return[e>>16,e>>8&255,255&e,1]}if(t.match(i8)){(5===t.length||9===t.length)&&(t=t.substr(1)),4===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);let e=parseInt(t,16),i=Math.round((255&e)/255*100)/100;return[e>>24&255,e>>16&255,e>>8&255,i]}throw Error(`unknown hex color: ${t}`)};const{round:nt}=Math;var ne=(...t)=>{let[e,i,n,s]=iP(t,"rgba"),r=iO(t)||"auto";void 0===s&&(s=1),"auto"===r&&(r=s<1?"rgba":"rgb");let a="000000"+((e=nt(e))<<16|(i=nt(i))<<8|(n=nt(n))).toString(16);a=a.substr(a.length-6);let o="0"+nt(255*s).toString(16);switch(o=o.substr(o.length-2),r.toLowerCase()){case"rgba":return`#${a}${o}`;case"argb":return`#${o}${a}`;default:return`#${a}`}};iF.prototype.hex=function(t){return ne(this._rgb,t)},ij.hex=(...t)=>new iF(...t,"hex"),iV.format.hex=i7,iV.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&"string"===iA(t)&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});const{cos:ni}=Math,{min:nn,sqrt:ns,acos:nr}=Math;var na=(...t)=>{let e,[i,n,s]=iP(t,"rgb"),r=nn(i/=255,n/=255,s/=255),a=(i+n+s)/3,o=a>0?1-r/a:0;return 0===o?e=NaN:(e=nr(e=(i-n+(i-s))/2/ns((i-n)*(i-n)+(i-s)*(n-s))),s>n&&(e=iz-e),e/=iz),[360*e,o,a]};iF.prototype.hsi=function(){return na(this._rgb)},ij.hsi=(...t)=>new iF(...t,"hsi"),iV.format.hsi=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hsi");return isNaN(s)&&(s=0),isNaN(r)&&(r=0),s>360&&(s-=360),s<0&&(s+=360),(s/=360)<1/3?i=1-((n=(1-r)/3)+(e=(1+r*ni(iz*s)/ni(iR-iz*s))/3)):s<2/3?(s-=1/3,n=1-((e=(1-r)/3)+(i=(1+r*ni(iz*s)/ni(iR-iz*s))/3))):(s-=2/3,e=1-((i=(1-r)/3)+(n=(1+r*ni(iz*s)/ni(iR-iz*s))/3))),[255*(e=iT(a*e*3)),255*(i=iT(a*i*3)),255*(n=iT(a*n*3)),t.length>3?t[3]:1]},iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"hsi"))&&3===t.length)return"hsi"}}),iF.prototype.hsl=function(){return iG(this._rgb)},ij.hsl=(...t)=>new iF(...t,"hsl"),iV.format.hsl=iJ,iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"hsl"))&&3===t.length)return"hsl"}});const{floor:no}=Math,{min:nl,max:nh}=Math;var nu=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"rgb"),o=nl(s,r,a),l=nh(s,r,a),h=l-o;return n=l/255,0===l?(e=Number.NaN,i=0):(i=h/l,s===l&&(e=(r-a)/h),r===l&&(e=2+(a-s)/h),a===l&&(e=4+(s-r)/h),(e*=60)<0&&(e+=360)),[e,i,n]};iF.prototype.hsv=function(){return nu(this._rgb)},ij.hsv=(...t)=>new iF(...t,"hsv"),iV.format.hsv=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hsv");if(a*=255,0===r)e=i=n=a;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);let t=no(s/=60),o=s-t,l=a*(1-r),h=a*(1-r*o),u=a*(1-r*(1-o));switch(t){case 0:[e,i,n]=[a,u,l];break;case 1:[e,i,n]=[h,a,l];break;case 2:[e,i,n]=[l,a,u];break;case 3:[e,i,n]=[l,h,a];break;case 4:[e,i,n]=[u,l,a];break;case 5:[e,i,n]=[a,l,h]}}return[e,i,n,t.length>3?t[3]:1]},iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"hsv"))&&3===t.length)return"hsv"}});var nc={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452};const{pow:nd}=Math,np=t=>255*(t<=.00304?12.92*t:1.055*nd(t,1/2.4)-.055),nf=t=>t>nc.t1?t*t*t:nc.t2*(t-nc.t0);var ng=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"lab");return i=(s+16)/116,e=isNaN(r)?i:i+r/500,n=isNaN(a)?i:i-a/200,i=nc.Yn*nf(i),[np(3.2404542*(e=nc.Xn*nf(e))-1.5371385*i-.4985314*(n=nc.Zn*nf(n))),np(-.969266*e+1.8760108*i+.041556*n),np(.0556434*e-.2040259*i+1.0572252*n),t.length>3?t[3]:1]};const{pow:nm}=Math,n_=t=>(t/=255)<=.04045?t/12.92:nm((t+.055)/1.055,2.4),nv=t=>t>nc.t3?nm(t,1/3):t/nc.t2+nc.t0,ny=(t,e,i)=>[nv((.4124564*(t=n_(t))+.3575761*(e=n_(e))+.1804375*(i=n_(i)))/nc.Xn),nv((.2126729*t+.7151522*e+.072175*i)/nc.Yn),nv((.0193339*t+.119192*e+.9503041*i)/nc.Zn)];var nb=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=ny(e,i,n),o=116*r-16;return[o<0?0:o,500*(s-r),200*(r-a)]};iF.prototype.lab=function(){return nb(this._rgb)},ij.lab=(...t)=>new iF(...t,"lab"),iV.format.lab=ng,iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"lab"))&&3===t.length)return"lab"}});const{sin:nx,cos:nw}=Math;var nk=(...t)=>{let[e,i,n]=iP(t,"lch");return isNaN(n)&&(n=0),[e,nw(n*=iB)*i,nx(n)*i]},nC=(...t)=>{let[e,i,n]=t=iP(t,"lch"),[s,r,a]=nk(e,i,n),[o,l,h]=ng(s,r,a);return[o,l,h,t.length>3?t[3]:1]};const{sqrt:nS,atan2:nT,round:nI}=Math;var nE=(...t)=>{let[e,i,n]=iP(t,"lab"),s=nS(i*i+n*n),r=(nT(n,i)*iD+360)%360;return 0===nI(1e4*s)&&(r=Number.NaN),[e,s,r]},nA=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=nb(e,i,n);return nE(s,r,a)};iF.prototype.lch=function(){return nA(this._rgb)},iF.prototype.hcl=function(){return nA(this._rgb).reverse()},ij.lch=(...t)=>new iF(...t,"lch"),ij.hcl=(...t)=>new iF(...t,"hcl"),iV.format.lch=nC,iV.format.hcl=(...t)=>nC(...iP(t,"hcl").reverse()),["lch","hcl"].forEach(t=>iV.autodetect.push({p:2,test:(...e)=>{if("array"===iA(e=iP(e,t))&&3===e.length)return t}}));var nP={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};iF.prototype.name=function(){let t=ne(this._rgb,"rgb");for(let e of Object.keys(nP))if(nP[e]===t)return e.toLowerCase();return t},iV.format.named=t=>{if(nP[t=t.toLowerCase()])return i7(nP[t]);throw Error("unknown color name: "+t)},iV.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&"string"===iA(t)&&nP[t.toLowerCase()])return"named"}});var nO=(...t)=>{let[e,i,n]=iP(t,"rgb");return(e<<16)+(i<<8)+n};iF.prototype.num=function(){return nO(this._rgb)},ij.num=(...t)=>new iF(...t,"num"),iV.format.num=t=>{if("number"==iA(t)&&t>=0&&t<=0xffffff)return[t>>16,t>>8&255,255&t,1];throw Error("unknown num color: "+t)},iV.autodetect.push({p:5,test:(...t)=>{if(1===t.length&&"number"===iA(t[0])&&t[0]>=0&&t[0]<=0xffffff)return"num"}});const{round:nM}=Math;iF.prototype.rgb=function(t=!0){return!1===t?this._rgb.slice(0,3):this._rgb.slice(0,3).map(nM)},iF.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,i)=>i<3?!1===t?e:nM(e):e)},ij.rgb=(...t)=>new iF(...t,"rgb"),iV.format.rgb=(...t)=>{let e=iP(t,"rgba");return void 0===e[3]&&(e[3]=1),e},iV.autodetect.push({p:3,test:(...t)=>{if("array"===iA(t=iP(t,"rgba"))&&(3===t.length||4===t.length&&"number"==iA(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}});const{log:nN}=Math;var nL=t=>{let e,i,n;let s=t/100;return s<66?(e=255,i=s<6?0:-155.25485562709179-.44596950469579133*(i=s-2)+104.49216199393888*nN(i),n=s<20?0:-254.76935184120902+.8274096064007395*(n=s-10)+115.67994401066147*nN(n)):(e=351.97690566805693+.114206453784165*(e=s-55)-40.25366309332127*nN(e),i=325.4494125711974+.07943456536662342*(i=s-50)-28.0852963507957*nN(i),n=255),[e,i,n,1]};const{round:nz}=Math;var nR=(...t)=>{let e;let i=iP(t,"rgb"),n=i[0],s=i[2],r=1e3,a=4e4;for(;a-r>.4;){let t=nL(e=(a+r)*.5);t[2]/t[0]>=s/n?a=e:r=e}return nz(e)};iF.prototype.temp=iF.prototype.kelvin=iF.prototype.temperature=function(){return nR(this._rgb)},ij.temp=ij.kelvin=ij.temperature=(...t)=>new iF(...t,"temp"),iV.format.temp=iV.format.kelvin=iV.format.temperature=nL;const{pow:nB,sign:nD}=Math;var nV=(...t)=>{let[e,i,n]=t=iP(t,"lab"),s=nB(e+.3963377774*i+.2158037573*n,3),r=nB(e-.1055613458*i-.0638541728*n,3),a=nB(e-.0894841775*i-1.291485548*n,3);return[255*nF(4.0767416621*s-3.3077115913*r+.2309699292*a),255*nF(-1.2684380046*s+2.6097574011*r-.3413193965*a),255*nF(-.0041960863*s-.7034186147*r+1.707614701*a),t.length>3?t[3]:1]};function nF(t){let e=Math.abs(t);return e>.0031308?(nD(t)||1)*(1.055*nB(e,1/2.4)-.055):12.92*t}const{cbrt:nj,pow:nU,sign:nq}=Math;var nZ=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=[nH(e/255),nH(i/255),nH(n/255)],o=nj(.4122214708*s+.5363325363*r+.0514459929*a),l=nj(.2119034982*s+.6806995451*r+.1073969566*a),h=nj(.0883024619*s+.2817188376*r+.6299787005*a);return[.2104542553*o+.793617785*l-.0040720468*h,1.9779984951*o-2.428592205*l+.4505937099*h,.0259040371*o+.7827717662*l-.808675766*h]};function nH(t){let e=Math.abs(t);return e<.04045?t/12.92:(nq(t)||1)*nU((e+.055)/1.055,2.4)}iF.prototype.oklab=function(){return nZ(this._rgb)},ij.oklab=(...t)=>new iF(...t,"oklab"),iV.format.oklab=nV,iV.autodetect.push({p:3,test:(...t)=>{if("array"===iA(t=iP(t,"oklab"))&&3===t.length)return"oklab"}});var nG=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=nZ(e,i,n);return nE(s,r,a)};iF.prototype.oklch=function(){return nG(this._rgb)},ij.oklch=(...t)=>new iF(...t,"oklch"),iV.format.oklch=(...t)=>{let[e,i,n]=t=iP(t,"lch"),[s,r,a]=nk(e,i,n),[o,l,h]=nV(s,r,a);return[o,l,h,t.length>3?t[3]:1]},iV.autodetect.push({p:3,test:(...t)=>{if("array"===iA(t=iP(t,"oklch"))&&3===t.length)return"oklch"}}),iF.prototype.alpha=function(t,e=!1){return void 0!==t&&"number"===iA(t)?e?(this._rgb[3]=t,this):new iF([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]},iF.prototype.clipped=function(){return this._rgb._clipped||!1},iF.prototype.darken=function(t=1){let e=this.lab();return e[0]-=nc.Kn*t,new iF(e,"lab").alpha(this.alpha(),!0)},iF.prototype.brighten=function(t=1){return this.darken(-t)},iF.prototype.darker=iF.prototype.darken,iF.prototype.brighter=iF.prototype.brighten,iF.prototype.get=function(t){let[e,i]=t.split("."),n=this[e]();if(!i)return n;{let t=e.indexOf(i)-("ok"===e.substr(0,2)?2:0);if(t>-1)return n[t];throw Error(`unknown channel ${i} in mode ${e}`)}};const{pow:nW}=Math;iF.prototype.luminance=function(t,e="rgb"){if(void 0!==t&&"number"===iA(t)){if(0===t)return new iF([0,0,0,this._rgb[3]],"rgb");if(1===t)return new iF([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),n=20,s=(i,r)=>{let a=i.interpolate(r,.5,e),o=a.luminance();return!(1e-7>Math.abs(t-o))&&n--?o>t?s(i,a):s(a,r):a},r=(i>t?s(new iF([0,0,0]),this):s(this,new iF([255,255,255]))).rgb();return new iF([...r,this._rgb[3]])}return n$(...this._rgb.slice(0,3))};const n$=(t,e,i)=>.2126*(t=nK(t))+.7152*(e=nK(e))+.0722*(i=nK(i)),nK=t=>(t/=255)<=.03928?t/12.92:nW((t+.055)/1.055,2.4);var nJ={},nY=(t,e,i=.5,...n)=>{let s=n[0]||"lrgb";if(nJ[s]||n.length||(s=Object.keys(nJ)[0]),!nJ[s])throw Error(`interpolation mode ${s} is not defined`);return"object"!==iA(t)&&(t=new iF(t)),"object"!==iA(e)&&(e=new iF(e)),nJ[s](t,e,i).alpha(t.alpha()+i*(e.alpha()-t.alpha()))};iF.prototype.mix=iF.prototype.interpolate=function(t,e=.5,...i){return nY(this,t,e,...i)},iF.prototype.premultiply=function(t=!1){let e=this._rgb,i=e[3];return t?(this._rgb=[e[0]*i,e[1]*i,e[2]*i,i],this):new iF([e[0]*i,e[1]*i,e[2]*i,i],"rgb")},iF.prototype.saturate=function(t=1){let e=this.lch();return e[1]+=nc.Kn*t,e[1]<0&&(e[1]=0),new iF(e,"lch").alpha(this.alpha(),!0)},iF.prototype.desaturate=function(t=1){return this.saturate(-t)},iF.prototype.set=function(t,e,i=!1){let[n,s]=t.split("."),r=this[n]();if(!s)return r;{let t=n.indexOf(s)-("ok"===n.substr(0,2)?2:0);if(t>-1){if("string"==iA(e))switch(e.charAt(0)){case"+":case"-":r[t]+=+e;break;case"*":r[t]*=+e.substr(1);break;case"/":r[t]/=+e.substr(1);break;default:r[t]=+e}else if("number"===iA(e))r[t]=e;else throw Error("unsupported value for Color.set");let s=new iF(r,n);return i?(this._rgb=s._rgb,this):s}throw Error(`unknown channel ${s} in mode ${n}`)}},iF.prototype.tint=function(t=.5,...e){return nY(this,"white",t,...e)},iF.prototype.shade=function(t=.5,...e){return nY(this,"black",t,...e)},nJ.rgb=(t,e,i)=>{let n=t._rgb,s=e._rgb;return new iF(n[0]+i*(s[0]-n[0]),n[1]+i*(s[1]-n[1]),n[2]+i*(s[2]-n[2]),"rgb")};const{sqrt:nQ,pow:nX}=Math;nJ.lrgb=(t,e,i)=>{let[n,s,r]=t._rgb,[a,o,l]=e._rgb;return new iF(nQ(nX(n,2)*(1-i)+nX(a,2)*i),nQ(nX(s,2)*(1-i)+nX(o,2)*i),nQ(nX(r,2)*(1-i)+nX(l,2)*i),"rgb")},nJ.lab=(t,e,i)=>{let n=t.lab(),s=e.lab();return new iF(n[0]+i*(s[0]-n[0]),n[1]+i*(s[1]-n[1]),n[2]+i*(s[2]-n[2]),"lab")};var n0=(t,e,i,n)=>{let s,r,a,o,l,h,u,c,d,p,f,g;return"hsl"===n?(s=t.hsl(),r=e.hsl()):"hsv"===n?(s=t.hsv(),r=e.hsv()):"hcg"===n?(s=t.hcg(),r=e.hcg()):"hsi"===n?(s=t.hsi(),r=e.hsi()):"lch"===n||"hcl"===n?(n="hcl",s=t.hcl(),r=e.hcl()):"oklch"===n&&(s=t.oklch().reverse(),r=e.oklch().reverse()),("h"===n.substr(0,1)||"oklch"===n)&&([a,l,u]=s,[o,h,c]=r),isNaN(a)||isNaN(o)?isNaN(a)?isNaN(o)?p=Number.NaN:(p=o,(1==u||0==u)&&"hsv"!=n&&(d=h)):(p=a,(1==c||0==c)&&"hsv"!=n&&(d=l)):(g=o>a&&o-a>180?o-(a+360):o180?o+360-a:o-a,p=a+i*g),void 0===d&&(d=l+i*(h-l)),f=u+i*(c-u),"oklch"===n?new iF([f,d,p],n):new iF([p,d,f],n)};const n1=(t,e,i)=>n0(t,e,i,"lch");nJ.lch=n1,nJ.hcl=n1,nJ.num=(t,e,i)=>{let n=t.num();return new iF(n+i*(e.num()-n),"num")},nJ.hcg=(t,e,i)=>n0(t,e,i,"hcg"),nJ.hsi=(t,e,i)=>n0(t,e,i,"hsi"),nJ.hsl=(t,e,i)=>n0(t,e,i,"hsl"),nJ.hsv=(t,e,i)=>n0(t,e,i,"hsv"),nJ.oklab=(t,e,i)=>{let n=t.oklab(),s=e.oklab();return new iF(n[0]+i*(s[0]-n[0]),n[1]+i*(s[1]-n[1]),n[2]+i*(s[2]-n[2]),"oklab")},nJ.oklch=(t,e,i)=>n0(t,e,i,"oklch");const{pow:n2,sqrt:n5,PI:n3,cos:n6,sin:n4,atan2:n9}=Math,n8=(t,e)=>{let i=t.length,n=[0,0,0,0];for(let s=0;s.9999999&&(n[3]=1),new iF(iI(n))},{pow:n7}=Math;function st(t){let e="rgb",i=ij("#ccc"),n=0,s=[0,1],r=[],a=[0,0],o=!1,l=[],h=!1,u=0,c=1,d=!1,p={},f=!0,g=1,m=function(t){if("string"===iA(t=t||["#fff","#000"])&&ij.brewer&&ij.brewer[t.toLowerCase()]&&(t=ij.brewer[t.toLowerCase()]),"array"===iA(t)){1===t.length&&(t=[t[0],t[0]]),t=t.slice(0);for(let e=0;e=o[i];)i++;return i-1}return 0},v=t=>t,y=t=>t,b=function(t,n){let s,h;if(null==n&&(n=!1),isNaN(t)||null===t)return i;h=n?t:o&&o.length>2?_(t)/(o.length-2):c!==u?(t-u)/(c-u):1,h=y(h),n||(h=v(h)),1!==g&&(h=n7(h,g));let d=Math.floor(1e4*(h=iT(h=a[0]+h*(1-a[0]-a[1]),0,1)));if(f&&p[d])s=p[d];else{if("array"===iA(l))for(let t=0;t=i&&t===r.length-1){s=l[t];break}if(h>i&&hp={};m(t);let w=function(t){let e=ij(b(t));return h&&e[h]?e[h]():e};return w.classes=function(t){if(null!=t){if("array"===iA(t))o=t,s=[t[0],t[t.length-1]];else{let e=ij.analyze(s);o=0===t?[e.min,e.max]:ij.limits(e,"e",t)}return w}return o},w.domain=function(t){if(!arguments.length)return s;u=t[0],c=t[t.length-1],r=[];let e=l.length;if(t.length===e&&u!==c)for(let e of Array.from(t))r.push((e-u)/(c-u));else{for(let t=0;t2){let e=t.map((e,i)=>i/(t.length-1)),i=t.map(t=>(t-u)/(c-u));i.every((t,i)=>e[i]===t)||(y=t=>{if(t<=0||t>=1)return t;let n=0;for(;t>=i[n+1];)n++;let s=(t-i[n])/(i[n+1]-i[n]);return e[n]+s*(e[n+1]-e[n])})}}return s=[u,c],w},w.mode=function(t){return arguments.length?(e=t,x(),w):e},w.range=function(t,e){return m(t,e),w},w.out=function(t){return h=t,w},w.spread=function(t){return arguments.length?(n=t,w):n},w.correctLightness=function(t){return null==t&&(t=!0),d=t,x(),v=d?function(t){let e=b(0,!0).lab()[0],i=b(1,!0).lab()[0],n=e>i,s=b(t,!0).lab()[0],r=e+(i-e)*t,a=s-r,o=0,l=1,h=20;for(;Math.abs(a)>.01&&h-- >0;)n&&(a*=-1),a<0?(o=t,t+=(l-t)*.5):(l=t,t+=(o-t)*.5),a=(s=b(t,!0).lab()[0])-r;return t}:t=>t,w},w.padding=function(t){return null!=t?("number"===iA(t)&&(t=[t,t]),a=t,w):a},w.colors=function(e,i){arguments.length<2&&(i="hex");let n=[];if(0==arguments.length)n=l.slice(0);else if(1===e)n=[w(.5)];else if(e>1){let t=s[0],i=s[1]-t;n=(function(t,e,i){let n=[],s=0r;s?t++:t--)n.push(t);return n})(0,e,!1).map(n=>w(t+n/(e-1)*i))}else{t=[];let e=[];if(o&&o.length>2)for(let t=1,i=o.length,n=1<=i;n?ti;n?t++:t--)e.push((o[t-1]+o[t])*.5);else e=s;n=e.map(t=>w(t))}return ij[i]&&(n=n.map(t=>t[i]())),n},w.cache=function(t){return null!=t?(f=t,w):f},w.gamma=function(t){return null!=t?(g=t,w):g},w.nodata=function(t){return null!=t?(i=ij(t),w):i},w}const se=function(t){let e=[1,1];for(let i=1;inew iF(t))).length)[i,n]=t.map(t=>t.lab()),e=function(t){return new iF([0,1,2].map(e=>i[e]+t*(n[e]-i[e])),"lab")};else if(3===t.length)[i,n,s]=t.map(t=>t.lab()),e=function(t){return new iF([0,1,2].map(e=>(1-t)*(1-t)*i[e]+2*(1-t)*t*n[e]+t*t*s[e]),"lab")};else if(4===t.length){let r;[i,n,s,r]=t.map(t=>t.lab()),e=function(t){return new iF([0,1,2].map(e=>(1-t)*(1-t)*(1-t)*i[e]+3*(1-t)*(1-t)*t*n[e]+3*(1-t)*t*t*s[e]+t*t*t*r[e]),"lab")}}else if(t.length>=5){let i,n,s;i=t.map(t=>t.lab()),n=se(s=t.length-1),e=function(t){let e=1-t;return new iF([0,1,2].map(r=>i.reduce((i,a,o)=>i+n[o]*e**(s-o)*t**o*a[r],0)),"lab")}}else throw RangeError("No point in running bezier with only one color.");return e},sn=(t,e,i)=>{if(!sn[i])throw Error("unknown blend mode "+i);return sn[i](t,e)},ss=t=>(e,i)=>{let n=ij(i).rgb(),s=ij(e).rgb();return ij.rgb(t(n,s))},sr=t=>(e,i)=>{let n=[];return n[0]=t(e[0],i[0]),n[1]=t(e[1],i[1]),n[2]=t(e[2],i[2]),n};sn.normal=ss(sr(t=>t)),sn.multiply=ss(sr((t,e)=>t*e/255)),sn.screen=ss(sr((t,e)=>255*(1-(1-t/255)*(1-e/255)))),sn.overlay=ss(sr((t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)))),sn.darken=ss(sr((t,e)=>t>e?e:t)),sn.lighten=ss(sr((t,e)=>t>e?t:e)),sn.dodge=ss(sr((t,e)=>255===t?255:(t=e/255*255/(1-t/255))>255?255:t)),sn.burn=ss(sr((t,e)=>255*(1-(1-e/255)/(t/255))));const{pow:sa,sin:so,cos:sl}=Math,{floor:sh,random:su}=Math,{log:sc,pow:sd,floor:sp,abs:sf}=Math;function sg(t,e=null){let i={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===iA(t)&&(t=Object.values(t)),t.forEach(t=>{e&&"object"===iA(t)&&(t=t[e]),null==t||isNaN(t)||(i.values.push(t),i.sum+=t,ti.max&&(i.max=t),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(t,e)=>sm(i,t,e),i}function sm(t,e="equal",i=7){"array"==iA(t)&&(t=sg(t));let{min:n,max:s}=t,r=t.values.sort((t,e)=>t-e);if(1===i)return[n,s];let a=[];if("c"===e.substr(0,1)&&(a.push(n),a.push(s)),"e"===e.substr(0,1)){a.push(n);for(let t=1;t 0");let t=Math.LOG10E*sc(n),e=Math.LOG10E*sc(s);a.push(n);for(let n=1;n200&&(h=!1)}let d={};for(let t=0;tt-e),a.push(p[0]);for(let t=1;t{let n=t.length;i||(i=Array.from(Array(n)).map(()=>1));let s=n/i.reduce(function(t,e){return t+e});if(i.forEach((t,e)=>{i[e]*=s}),t=t.map(t=>new iF(t)),"lrgb"===e)return n8(t,i);let r=t.shift(),a=r.get(e),o=[],l=0,h=0;for(let t=0;t{let s=t.get(e);u+=t.alpha()*i[n+1];for(let t=0;t=360;)e-=360;a[t]=e}else a[t]=a[t]/o[t];return u/=n,new iF(a,e).alpha(u>.99999?1:u,!0)},bezier:t=>{let e=si(t);return e.scale=()=>st(e),e},blend:sn,cubehelix:function(t=300,e=-1.5,i=1,n=1,s=[0,1]){let r=0,a;"array"===iA(s)?a=s[1]-s[0]:(a=0,s=[s,s]);let o=function(o){let l=iz*((t+120)/360+e*o),h=sa(s[0]+a*o,n),u=(0!==r?i[0]+o*r:i)*h*(1-h)/2,c=sl(l),d=so(l);return ij(iI([255*(h+u*(-.14861*c+1.78277*d)),255*(h+u*(-.29227*c-.90649*d)),255*(h+1.97294*c*u),1]))};return o.start=function(e){return null==e?t:(t=e,o)},o.rotations=function(t){return null==t?e:(e=t,o)},o.gamma=function(t){return null==t?n:(n=t,o)},o.hue=function(t){return null==t?i:("array"===iA(i=t)?0==(r=i[1]-i[0])&&(i=i[1]):r=0,o)},o.lightness=function(t){return null==t?s:("array"===iA(t)?(s=t,a=t[1]-t[0]):(s=[t,t],a=0),o)},o.scale=()=>ij.scale(o),o.hue(i),o},mix:nY,interpolate:nY,random:()=>{let t="#";for(let e=0;e<6;e++)t+="0123456789abcdef".charAt(sh(16*su()));return new iF(t,"hex")},scale:st,analyze:sg,contrast:(t,e)=>{t=new iF(t),e=new iF(e);let i=t.luminance(),n=e.luminance();return i>n?(i+.05)/(n+.05):(n+.05)/(i+.05)},deltaE:function(t,e,i=1,n=1,s=1){var r=function(t){return 360*t/(2*sT)},a=function(t){return 2*sT*t/360};t=new iF(t),e=new iF(e);let[o,l,h]=Array.from(t.lab()),[u,c,d]=Array.from(e.lab()),p=(o+u)/2,f=(s_(sv(l,2)+sv(h,2))+s_(sv(c,2)+sv(d,2)))/2,g=.5*(1-s_(sv(f,7)/(sv(f,7)+sv(25,7)))),m=l*(1+g),_=c*(1+g),v=s_(sv(m,2)+sv(h,2)),y=s_(sv(_,2)+sv(d,2)),b=(v+y)/2,x=r(sx(h,m)),w=r(sx(d,_)),k=x>=0?x:x+360,C=w>=0?w:w+360,S=sw(k-C)>180?(k+C+360)/2:(k+C)/2,T=1-.17*sk(a(S-30))+.24*sk(a(2*S))+.32*sk(a(3*S+6))-.2*sk(a(4*S-63)),I=C-k;I=180>=sw(I)?I:C<=k?I+360:I-360,I=2*s_(v*y)*sC(a(I)/2);let E=y-v,A=1+.015*sv(p-50,2)/s_(20+sv(p-50,2)),P=1+.045*b,O=1+.015*b*T,M=30*sS(-sv((S-275)/25,2)),N=-(2*s_(sv(b,7)/(sv(b,7)+sv(25,7))))*sC(2*a(M));return sb(0,sy(100,s_(sv((u-o)/(i*A),2)+sv(E/(n*P),2)+sv(I/(s*O),2)+E/(n*P)*N*(I/(s*O)))))},distance:function(t,e,i="lab"){t=new iF(t),e=new iF(e);let n=t.get(i),s=e.get(i),r=0;for(let t in n){let e=(n[t]||0)-(s[t]||0);r+=e*e}return Math.sqrt(r)},limits:sm,valid:(...t)=>{try{return new iF(...t),!0}catch(t){return!1}},scales:{cool:()=>st([ij.hsl(180,1,.9),ij.hsl(250,.7,.4)]),hot:()=>st(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")},input:iV,colors:nP,brewer:sI});var sE=u("hFpCu");const sA=window.location,sP=new URLSearchParams(sA.search),sO=new URL(sA),sM=new J({objectHash:sB});function sN(t){let e=window.atob((t+"===".slice((t.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/"));return new TextDecoder().decode(ik(Uint8Array.from(e,t=>t.codePointAt(0))))}function sL(t){return window.btoa(String.fromCodePoint(...iy(new TextEncoder().encode(t)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function sz(t){return t.charAt(0).toUpperCase()+t.slice(1)}function sR(...t){return t.findLast(t=>void 0!==t)}function sB(t,e){return"object"==typeof t&&"object"==typeof e?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>{let n=t[i],s=e[i];return Object.hasOwn(e,i)&&("function"==typeof n?.equals?n.equals(s):sB(n,s))}):t===e}function sD(t,e=null){document.dispatchEvent(new CustomEvent(t,{detail:e}))}function sV(t,e,i=0){return t&&e&&t.round().subtract(e.round()).length<=i}function sF(t){let e=document.createElement("span");return e.classList.add("beam"),e.style.backgroundColor=t,e.title=t,e}function sj(t){if(!t.length)return[];let e=ij.average(t).hex(),i=[];if(t.some(t=>t!==e)){let e=t.length-1;t.forEach((t,n)=>{if(i.push(sF(t)),ne.subtract(t).length-i.subtract(t).length}function sq(t,e){let i=document.createElement("span");return i.classList.add("icon","material-symbols-outlined"),i.textContent=t,i.title=e??sz(t),i}function sZ(t,e,i=t=>t/2){let n=t.subtract(e);return n.length="function"==typeof i?i(n.length):i,t.subtract(n)}function sH(t,e,i){let n=new sE.Point(0,0);return n.length=e,n.angle=60*sW(i),t.add(n)}function sG(t){return t+(t>=3?-3:3)}function sW(t,e=!0){return(t+=(e?-1:1)*2)<0?t+6:t>5?t-6:t}function s$(t){let e=document.createElement("span");return e.classList.add("text"),e.textContent=t.toString(),e}function sK(t){if(t)return t}window.base64decode=sN,window.base64encode=sL;const sJ=window.console=window.console||{debug:function(){}},sY=sJ.debug;function sQ(t){sJ.debug=t?sY:function(){}}sQ(sP.has("debug")??!1);var sE=(u("hFpCu"),u("hFpCu"));class sX{constructor(t,e){this.coordinates=[t,e],this.r=t,this.c=e}toString(){return this.coordinates.join(",")}static toAxialCoordinates(t){return new s0(t.c-(t.r-(1&t.r))/2,t.r)}}class s0{constructor(t,e,i){i||(i=-t-e),this.coordinates=[t,e,i],this.q=t,this.r=e,this.s=i}add(t){return s0.add(this,t)}equals(t){return this.q===t.q&&this.r===t.r&&this.s===t.s}isNeighbor(t){return s0.isNeighbor(this,t)}neighbor(t){return s0.neighbor(this,t)}toString(){return this.coordinates.join(",")}static add(t,e){return new s0(t.q+e.q,t.r+e.r)}static direction(t){return 0===t&&(t=6),s0.directions[6-t]}static directions=[new s0(1,0),new s0(1,-1),new s0(0,-1),new s0(-1,0),new s0(-1,1),new s0(0,1)];static isNeighbor(t,e){return s0.directions.map(e=>s0.add(t,e)).some(t=>t.equals(e))}static neighbor(t,e){return s0.add(t,s0.direction(e))}static toOffsetCoordinates(t){return new sX(t.q+(t.r-(1&t.r))/2,t.r)}}var sE=(u("hFpCu"),u("hFpCu"));class s1{#t={};constructor(t){this.setState(t)}getState(){return structuredClone(this.#t)}setState(t){this.#t=structuredClone(t)}updateState(t,e=!1){return t(this.#t),e&&sD(s1.Events.Update,{object:this}),this.getState()}static Events=Object.freeze({Update:"state-update"})}class s2 extends s1{center;data;group;id;immutable;locked;parent;sortOrder=100;type;constructor(t,e,i){if(e.id??=crypto.randomUUID().split("-")[0],super(e),this.id=e.id,this.immutable??=e?.immutable??!1,this.type=e?.type??i?.type,void 0===this.type)throw console.debug(`[Item:${this.id}]`,e),Error("Item must have type defined");this.data=Object.assign({id:this.id,type:this.type},i?.data||{}),this.locked=i?.locked!==!1,t&&(this.center=t.center),this.parent=t,this.group=new sE.Group({data:this.data,locked:this.locked})}equals(t){return t instanceof s2&&this.id===t.id}getColorElements(){return[]}getCompoundPath(){return new sE.CompoundPath({children:this.group.clone({insert:!1}).children.filter(t=>!1!==t.data.collidable)})}getIndex(){return this.group.index}getLayer(){return this.group.parent}onTap(){}onCollision({collisionStep:t}){return t}onDeselected(){}onInitialization(){}onSelected(){}remove(){this.group.remove()}toString(){return`[${this.type}:${this.id}]`}update(){}static immutable(t){return t.immutable}static Types=Object.freeze(Object.fromEntries(["beam","collision","filter","mask","portal","reflector","terminus","tile","wall"].map(t=>[t,sz(t)])))}var sE=u("hFpCu");class s5{#e=[];#i={element:document};constructor(t={}){this.#i=Object.assign(this.#i,t)}add(t,e={}){this.#e=this.#e.concat(t.map(t=>{if(!(t=Object.assign({},this.#i,e,t)).type)throw Error("Event type is required");return t.context&&(t.handler=t.handler.bind(t.context)),t.element.addEventListener(t.type,t.handler,t.options),t}))}remove(){this.#e.forEach(t=>t.element.removeEventListener(t.type,t.handler)),this.#e=[]}}var sE=u("hFpCu");class s3{#n={};#s;#r;constructor(t=[]){this.#r=t,this.#s=0!==t.length,t.forEach(t=>{this.#n[t]=new s3})}set(t,e){if(this.#s&&!this.#r.includes(t))throw Error(`Invalid key: ${t}`);this.#n[t]=e}get(t){return void 0===t?this.#n:this.#n[t]}keys(t){return Object.keys(this.#a(t))}length(t){return this.keys(t).length}unset(t){delete this.#n[t]}values(t){return Object.values(this.#a(t))}#a(t){let e=this.get(t);return e instanceof s3?e.get():e}}const s6=window.navigator;class s4{#o;#n=new s3(Object.values(s4.CacheKeys));#l;#h=new s5({context:this});#u;constructor(t){this.#o=t.getBoundingClientRect(),this.#l=t,this.#u=new sE.Point(this.#o.left,this.#o.top),this.#h.add([{type:"pointercancel",handler:this.onPointerUp},{type:"pointerdown",handler:this.onPointerDown},{type:"pointerleave",handler:this.onPointerUp},{type:"pointermove",handler:this.onPointerMove},{type:"pointerout",handler:this.onPointerUp},{type:"pointerup",handler:this.onPointerUp},{type:"wheel",handler:this.onMouseWheel,options:{passive:!1}}],{element:t})}onMouseWheel(t){t.preventDefault(),this.#c(new sE.Point(t.offsetX,t.offsetY),t.deltaY,1.05)}onPan(t){let e=/*@__PURE__*/a(sE).view.viewToProject(s4.point(t)),i=this.#d(s4.GestureKeys.Pan);if(!i){this.#p(s4.GestureKeys.Pan,{from:e});return}let n=i.from.subtract(e).add(/*@__PURE__*/a(sE).view.center);/*@__PURE__*/a(sE).view.center.subtract(n).length>1&&(document.body.classList.contains("grab")||document.body.classList.add("grab"),/*@__PURE__*/a(sE).view.center=n)}onPinch(t){let e=t[0],i=t[1],n=s4.point(e),s=s4.point(i),r=n.getDistance(s),a=this.#d(s4.GestureKeys.Pinch);if(!a){this.#p(s4.GestureKeys.Pinch,{distance:r});return}let o=n.add(s).divide(2).subtract(this.#u),l=r/a.distance,h=(a.distance-r)*l;this.#c(o,h,1.01),a.distance=r}onPointerDown(t){this.#n.get(s4.CacheKeys.Down).set(t.pointerId,t)}onPointerMove(t){let e=this.#n.get(s4.CacheKeys.Down).get(t.pointerId);if(e&&s4.point(t).subtract(s4.point(e)).length>1){this.#n.get(s4.CacheKeys.Move).set(t.pointerId,t);let e=this.#n.get(s4.CacheKeys.Move).values();2===e.length?this.onPinch(e):this.onPan(t)}}onPointerUp(t){let e=this.#n.get(s4.CacheKeys.Down).get(t.pointerId);e&&(1!==this.#n.length(s4.CacheKeys.Down)||this.#n.get(s4.CacheKeys.Move).get(t.pointerId)||this.onTap(e),document.body.classList.remove("grab"),this.#n.get(s4.CacheKeys.Down).unset(t.pointerId),this.#n.get(s4.CacheKeys.Move).unset(t.pointerId),this.#n.get(s4.CacheKeys.Gesture).unset(s4.GestureKeys.Pan),2>this.#n.length(s4.CacheKeys.Move)&&this.#n.get(s4.CacheKeys.Gesture).unset(s4.GestureKeys.Pinch))}onTap(t){let e=/*@__PURE__*/a(sE).view.viewToProject(s4.point(t).subtract(this.#u));this.#l.dispatchEvent(new CustomEvent(s4.GestureKeys.Tap,{detail:{event:t,point:e}}))}#d(t){return this.#n.get(s4.CacheKeys.Gesture).get(t)}#p(t,e){this.#n.get(s4.CacheKeys.Gesture).set(t,e)}#c(t,e,i){let n=Math.max(Math.min(e<0?/*@__PURE__*/a(sE).view.zoom*i:/*@__PURE__*/a(sE).view.zoom/i,s4.maxZoom),s4.minZoom),s=/*@__PURE__*/a(sE).view.viewToProject(t),r=s.subtract(/*@__PURE__*/a(sE).view.center),o=s.subtract(r.multiply(/*@__PURE__*/a(sE).view.zoom/n)).subtract(/*@__PURE__*/a(sE).view.center);/*@__PURE__*/a(sE).view.zoom=n,/*@__PURE__*/a(sE).view.center=/*@__PURE__*/a(sE).view.center.add(o)}static point(t){return new sE.Point(t.clientX,t.clientY)}static vibrate(t=25){s4.canVibrate&&s6.vibrate(t)}static canVibrate="function"==typeof s6.vibrate;static CacheKeys=Object.freeze({Down:"down",Move:"move",Gesture:"gesture"});static GestureKeys=Object.freeze({Pan:"pan",Pinch:"pinch",Tap:"tap"});static maxZoom=2;static minZoom=.5}var sE=u("hFpCu");class s9{definition;id;name;constructor(t,e){this.id=t,this.name=e}place(t,e){if(!this.definition){let t=document.getElementById(this.id),e=/*@__PURE__*/a(sE).project.importSVG(t);e.data.collidable=!1,e.locked=!0,this.definition=new sE.SymbolDefinition(e)}return e&&this.definition.item.set(e),this.definition.place(t)}}class s8{static Immutable=new s9("icon-immutable","block");static Lock=new s9("icon-lock","lock");static Move=new s9("icon-move","drag_pan");static RotateLeft=new s9("icon-rotate-left","rotate_left");static RotateRight=new s9("icon-rotate-right","rotate_right");static Swap=new s9("icon-swap","swap_horiz");static ToggleOff=new s9("icon-toggle-off","toggle_off");static ToggleOn=new s9("icon-toggle-on","toggle_on");static All=Object.freeze([s8.Immutable,s8.Lock,s8.Move,s8.RotateLeft,s8.RotateRight,s8.Swap,s8.ToggleOff,s8.ToggleOn]);static ByName=Object.freeze(Object.fromEntries(s8.All.map(t=>[t.name,t])))}const s7=document.getElementById("modifiers");let rt=0;class re extends s1{#f;#g=!1;#h=new s5({context:this});#m;configuration;element;disabled=!1;id=rt++;immutable=!1;name;parent;tile;title;type;constructor(t,e){super(e),this.parent=t,this.type=e.type}attach(t){this.tile=t,this.disabled=this.immutable||this.tile?.modifiers.some(t=>t.type===re.Types.immutable)||!this.tile?.items.some(t=>t.type!==s2.Types.beam)||!this.tile?.equals(this.parent)&&(this.tile.modifiers.some(t=>t.type===this.type)||this.tile?.modifiers.length===rw.MaxModifiers);let e=this.#f=document.createElement("li");e.classList.add(["modifier",this.type.toLowerCase()].join("-")),e.dataset.id=this.id.toString();let i=this.element=document.createElement("span");i.classList.add("material-symbols-outlined","fill"),e.append(i),this.update(),this.#h.add([{type:"pointerdown",handler:this.onPointerDown},{type:"pointerleave",handler:this.onPointerUp},{type:"pointerup",handler:this.onPointerUp}],{element:e}),s7.append(e)}detach(){this.#f&&(this.#h.remove(),this.#f.remove(),this.element=void 0,this.#f=void 0)}dispatchEvent(t,e){sD(t,Object.assign({},e||{},{modifier:this,tile:this.tile}))}equals(t){return t instanceof re&&this.id===t.id}getSymbol(){return s8.ByName[this.name]}move(t){this.parent?.removeModifier(this),this.parent=t,t?.addModifier(this)}moveFilter(t){return t.modifiers.some(re.immutable)||t.items.every(s2.immutable)}onPointerDown(t){0!==t.button?this.onToggle(t):this.#g=!0}onPointerUp(t){if(clearTimeout(this.#m),this.#g&&!this.disabled)switch(t.type){case"pointerleave":this.onToggle(t);break;case"pointerup":this.onTap(t)}this.#g=!1}onTap(){}onToggle(){s4.vibrate()}toString(){return[this.name,this.id].join(":")}update(t){t=Object.assign({disabled:this.disabled,name:this.name,title:this.title},t||{}),this.immutable||(this.disabled=t.disabled),this.name=t.name,this.title=t.title,this.#f&&(this.#f.classList.toggle("disabled",this.disabled),this.element.textContent=this.name,this.element.title=this.title)}static immutable(t){return t.type===re.Types.immutable}static Events=Object.freeze({Invoked:"modifier-invoked",Moved:"modifier-moved"});static Types=Object.freeze(Object.fromEntries(["immutable","lock","move","rotate","swap","toggle"].map(t=>[t,sz(t)])))}class ri extends re{#_;name=s8.Move.name;title="Move";onTap(t){super.onTap(t);let e=this.tile.items.filter(ri.movable);if(this.#_||!e.length)return;let i=new rD.Mask({id:this.toString(),onTap:this.#v.bind(this),onMask:()=>this.tile.beforeModify(),onUnmask:()=>this.tile.afterModify(),tileFilter:this.tileFilter.bind(this)});this.#_=i,sD(rD.Events.Mask,{mask:i})}moveFilter(t){return super.moveFilter(t)||!t.items.some(ri.movable)}moveItems(t){let e=this.tile.items.filter(ri.movable);return e.forEach(e=>e.move(t)),{moved:[ri.data(this.tile,t,e)],tiles:[this.tile,t]}}tileFilter(t){return!t.equals(this.tile)&&(t.modifiers.some(re.immutable)||t.items.some(t=>!ri.ignoreItemTypes.includes(t.type)))}#v(t,e){if(t.unmask(),e){let i=this.moveItems(e);t.updateSelectedTile(e),this.dispatchEvent(re.Events.Invoked,i)}this.#_=void 0}static data(t,e,i){return{fromTile:t,toTile:e,items:i}}static movable(t){return t.movable}static ignoreItemTypes=[s2.Types.beam,s2.Types.wall]}const rn=t=>class extends t{movable;constructor(t,e){super(...arguments),this.movable=!this.immutable&&!1!==e.movable}move(t){this.parent.removeItem(this);let e=this.parent.center.subtract(t.center);this.group.position=this.group.position.subtract(e),this.parent=t,this.parent.addItem(this),this.center=this.parent.center,this.onMove()}onMove(){}};class rs{color;colors;connected;direction;done;insertAbove;onAdd;onRemove;point;pathIndex;segmentIndex;state;tile;constructor(t,e,i,n,s,r,a,o,l,h,u,c,d){if(u&&!(u instanceof rr))throw Error("Step.state must be instance of StepState");this.colors=i?Array.isArray(i)?Array.from(i):[i]:[],this.colors.length&&(this.color=ij.average(this.colors).hex()),this.connected=o??!0,this.direction=n,this.done=h??!1,this.index=t,this.insertAbove=l,this.onAdd=c??sK,this.onRemove=d??sK,this.point=s,this.pathIndex=r,this.segmentIndex=a,this.state=u??new rr,this.tile=e}copy(t){return new rs(t.index??this.index,t.tile??this.tile,t.colors??t.color??this.colors,t.direction??this.direction,t.point??this.point,t.pathIndex??this.pathIndex,t.segmentIndex??this.segmentIndex,t.connected??this.connected,t.insertAbove??this.insertAbove,t.done??this.done,t.state??new rr(this.state),t.onAdd??this.onAdd,t.onRemove??this.onRemove)}equals(t){return sB(this,t)}}class rr{#n={};constructor(){let t=Object.assign({},...arguments);Object.keys(t).forEach(e=>{this[e]=t[e]})}copy(...t){return new rr(...[this].concat(t))}get(t){return this.#r(t).map(t=>this[t]).find(t=>t)}has(t){return this.#r(t).some(t=>this[t])}#r(t){return this.#n[t.name]??=Object.keys(Reflect.construct(t,[]))}static Collision=class{collision;constructor(t){this.collision=t}};static Filter=class{filter={}};static MergeInto=class{mergeInto;constructor(t){this.mergeInto={beam:t}}};static MergeWith=class{mergeWith;constructor(t){this.mergeWith=t}};static Portal=class{portal;constructor(t,e){this.portal={entryPortal:t,exitPortal:e}}};static Reflector=class{reflector;constructor(t){this.reflector={item:t}}};static TerminusConnection=class{terminusConnection;constructor(t,e){this.terminusConnection={terminus:t,opening:e}}}}class ra extends rn(s2){constructor(t,{color:e}){super(...arguments),this.color=ij.average(Array.isArray(e)?e:[e]).hex();let i=new sE.Color(e);i.alpha=.25;let n=new sE.Path.RegularPolygon({center:t.center,closed:!0,radius:t.parameters.circumradius/3,sides:3,style:{fillColor:i,strokeColor:e,strokeWidth:2}});this.group.addChild(n)}getColorElements(){return[sF(this.color)]}onCollision({currentStep:t,nextStep:e}){return e.copy(t.state.has(rr.Filter)?{colors:e.colors.concat([this.color])}:{state:new rr({insertAbove:this},new rr.Filter)})}}var sE=u("hFpCu");class ro extends re{clockwise;title="Rotate";constructor(t,e,i={}){super(...arguments),this.clockwise=sR(!0,e.clockwise,i.clockwise),this.name=ro.Names[this.clockwise?"right":"left"]}moveFilter(t){return super.moveFilter(t)||!t.items.some(t=>t.rotatable)}onTap(t){super.onTap(t);let e=this.tile.items.filter(t=>t.rotatable);e.forEach(t=>t.rotate(this.clockwise)),this.dispatchEvent(re.Events.Invoked,{items:e})}onToggle(){super.onToggle(),this.clockwise=!this.clockwise,this.updateState(t=>{t.clockwise=this.clockwise}),this.update({name:ro.Names[this.clockwise?"right":"left"]})}static Names=Object.freeze({left:s8.RotateLeft.name,right:s8.RotateRight.name})}const rl=t=>class extends t{direction;rotatable;rotation=0;rotationDegrees;constructor(t,e,i={}){super(...arguments),this.direction=sR(e.direction,i.direction),this.rotatable=!this.immutable&&sR(!0,e.rotatable,i.rotatable),this.rotationDegrees=sR(60,e.rotationDegrees,i.rotationDegrees),this.rotation=sR(0,e.rotation,i.rotation)%this.getMaxRotation()}getDirection(t){return void 0===(t=t??this.direction)?t:(t+this.rotation+6)%6}getMaxRotation(){return 360/this.rotationDegrees}onInitialization(){super.onInitialization(),this.rotateGroup(this.rotation),void 0!==this.direction&&this.rotateGroup(this.direction)}rotateGroup(t){this.group.rotate(t*this.rotationDegrees,this.center)}rotate(t){if(!this.rotatable)return;let e=!1===t?-1:1;this.rotation=(e+this.rotation)%this.getMaxRotation(),this.updateState(t=>{t.rotation=this.rotation}),this.rotateGroup(e)}};class rh extends rn(rl(s2)){#y={};constructor(t,e){super(t,e,{rotatable:void 0!==e.direction}),this.direction=e.direction;let i=t.parameters.circumradius/3,n=t.parameters.circumradius/5,s={fillColor:"black",strokeColor:"white",strokeWidth:2},r=[],a=new sE.Path.Ellipse({center:t.center,radius:[n,i],style:s});r.push(a);let o=new sE.Path.Ellipse({center:t.center,radius:[n-2*s.strokeWidth,i-2*s.strokeWidth],style:s});if(r.push(o),void 0!==this.direction){let e=new(0,sE.Path)({closed:!0,opacity:.25,segments:[t.center.add(new sE.Point(0,i)),t.center.subtract(new sE.Point(0,i)),t.center.subtract(new sE.Point(2.5*n,0))],style:{fillColor:"black"}}).subtract(a);r.unshift(e)}this.group.addChildren(r),void 0!==this.direction&&this.rotateGroup(1)}get(t){return this.#y[t]}onCollision({beam:t,currentStep:e,nextStep:i,puzzle:n}){let s=e.state.get(rr.Portal);if(s){if(s.exitPortal===this)return i.copy({insertAbove:this})}else{let t=sG(i.direction);if(sR(this.get(t),i).indexthis.update(t,e),onRemove:()=>this.update(t),state:i.state.copy(new rr.Portal(this))})}let r=this.#b(n,t,i);if(0===r.length)return console.debug(this.toString(),"no valid exit portals found"),e;if(1===r.length){let e=r[0];return console.debug(this.toString(),"single exit portal matched:",e),this.#x(t,i,e,!1)}{console.debug(this.toString(),"found multiple valid exit portals:",r);let s={exitPortals:r},a=new rD.Mask({id:this.id,onMask:()=>e.tile.beforeModify(),onTap:(e,n)=>{let r=s.exitPortals.find(t=>t.parent===n);r&&(t.addStep(this.#x(t,i,r)),e.unmask())},onUnmask:()=>e.tile.afterModify(),onUpdate:()=>{let e=this.#b(n,t,i);if(0===e.length)return console.debug(this.toString(),"mask onUpdate: no valid exit portals found"),!1;if(1===e.length){let n=e[0];return console.debug(this.toString(),"mask onUpdate: single portal matched:",n),t.addStep(this.#x(t,i,n)),!1}console.debug(this.toString(),"mask onUpdate: exit portals:",e),s.exitPortals=e},tileFilter:t=>!(t.equals(this.parent)||s.exitPortals.map(t=>t.parent).some(e=>e.equals(t)))});return n.updateSelectedTile(null),n.mask(a),e}}onMove(){super.onMove(),this.#y={}}update(t,e){this.#y[t]=e}#b(t,e,i){let n=t.getItems().filter(t=>t.type===s2.Types.portal&&!t.equals(this)&&!t.get(rh.getExitDirection(i,this,t))&&(void 0===this.getDirection()||void 0===t.getDirection()||t.getDirection()===this.getDirection()));if(n.length>1){let t=e.getState().steps?.[i.index]?.[this.id];if(void 0!==t){console.debug(this.toString(),`found exitPortalId ${t} in beam step ${i.index} state`);let e=n.find(e=>e.id===t);if(e)return[e]}}return n}#x(t,e,i,n=!0){let s=rh.getExitDirection(e,this,i);return e.copy({connected:!1,direction:s,insertAbove:i,onAdd:e=>{i.update(s,e),t.updateState(t=>(t.steps??={})[e.index]={[this.id]:i.id},n)},onRemove:e=>{t.updateState(t=>{delete t.steps[e.index]},!1),i.update(s)},point:i.parent.center,state:e.state.copy(new rr.Portal(this,i)),tile:i.parent})}static getExitDirection(t,e,i){return i.getDirection()??e.getDirection()??t.direction}}var sE=u("hFpCu");class ru extends re{on;title="Toggle";constructor(t,{on:e}){super(...arguments),this.on=e||!1,this.name=this.getName()}attach(t){super.attach(t),this.on=this.tile?.items.some(t=>t.on||t.toggled),this.update({name:this.getName()})}getName(){return ru.Names[this.on?"on":"off"]}moveFilter(t){return super.moveFilter(t)||!t.items.some(t=>t.toggleable)}onTap(t){super.onTap(t),this.on=!this.on;let e=this.tile.items.filter(t=>t.toggleable);e.forEach(t=>t.toggle(this.on)),this.update({name:this.getName()}),this.dispatchEvent(re.Events.Invoked,{items:e})}static Names=Object.freeze({on:s8.ToggleOn.name,off:s8.ToggleOff.name})}const rc=t=>class extends t{toggleable;toggled;constructor(t,e){super(...arguments),this.toggleable=!this.immutable&&!1!==e.toggleable,this.toggled=this.toggleable&&e.toggled}onToggle(){}toggle(t){this.toggled=t,this.onToggle()}};var sE=u("hFpCu");class rd{constructor(t,e,i,n){let s=[i];void 0!==n&&s.push(n),this.beam=i,this.index=t,this.item=n,this.itemIds=s.map(t=>t.id),this.items=s,this.point=e[0],this.points=e,this.withSelf=i.equals(n)}copy(t){return new rd(t.index??this.index,t.points??this.points,t.beam??this.beam,t.item??this.item)}equals(t){return t&&t.point.equals(this.point)&&t.items.every(t=>this.has(t))}has(t){return this.itemIds.includes(t.id)}mirror(){return this.copy({beam:this.item,item:this.beam})}}class rp{constructor(t,e,i){this.beams=[t].concat(e.state.get(rr.MergeWith)?.beams||[]),this.colors=e.colors.concat(t.getColors()),this.stepIndex=i}}class rf extends s2{done=!1;path=[];sortOrder=3;#n=new s3(Object.values(rf.CacheKeys));#w;#k;#C=-1;#S=[];constructor(t,e,i){e.immutable=!0,super(...arguments),this.group=null,this.#w=i.direction,this.#k={closed:!1,data:{id:this.id,type:this.type},locked:!0,strokeJoin:"round",strokeCap:"round",strokeWidth:t.radius/12}}addStep(t){let e=this.getLastStepIndex();if(this.done=!1,this.#k.strokeColor=t.color,0===this.path.length){let t=new sE.Path(this.#k);this.path.push(t),this.getLayer().insertChild(0,t)}let i=this.path[this.path.length-1],n=this.#S[e];if(!t.connected||n&&(t.color!==n.color||t.insertAbove!==n.insertAbove)){console.debug(this.toString(),"adding new path item for step:",t,"previous step:",n);let e=new sE.Path(this.#k),i=[t.point];t.connected&&i.unshift(n.point),e.add(...i),this.path.push(e),this.getLayer().insertChild(this.#T(t),e),t.segmentIndex=0}else i.add(t.point),t.segmentIndex=i.segments.length-1;return t.pathIndex=this.path.length-1,this.#S.push(t),t.index=this.#C=this.#S.length-1,t.tile.items.some(t=>t.equals(this))||t.tile.addItem(this),t.onAdd(t),console.debug(this.toString(),"added step",t),this.#I(this.#C),t}getCollision(){return this.getStep()?.state.get(rr.Collision)}getColor(){return this.getStep()?.color||this.getOpening().color}getColors(){return Array.from(this.getStep()?.colors||this.getOpening().colors)}getColorElements(t){let e=this.getSteps(t).find(t=>t.state.has(rr.MergeWith));return e?sj(e.colors):[]}getCompoundPath(){return new sE.CompoundPath({children:this.path.map(t=>t.clone({insert:!1}))})}getIndex(){return this.path[this.path.length-1].index}getLastStepIndex(){return this.length()-1}getLayer(){return this.parent.getLayer()}getMergeWith(t){return this.#n.get(rf.CacheKeys.MergeWith).get(t.id)}getOpening(){return this.parent.getOpening(this.#w)}getState(){return this.parent.getState().openings[this.#w]}getStep(t){return this.#S[t||this.getLastStepIndex()]}getSteps(t){return t?this.#S.filter(e=>e.tile===t):this.#S}isComplete(){return this.isOn()&&this.done}isConnected(){let t=this.getStep();return t?.state.has(rr.TerminusConnection)||t?.state.get(rr.MergeInto)?.beam.isConnected()}isOn(){let t=this.getOpening();return t.on&&!t.connected}isPending(){return this.isOn()&&!this.done}length(){return this.#S.length}onBeamUpdated(t){let e=t.detail.beam;if(e.isPending())return;let i=e.getStep();if(this.isComplete()){let t=this.getStep(),n=t.state.get(rr.Collision);if(n?.has(e)&&!n.equals(i?.state.get(rr.Collision))){console.debug(this.toString(),"re-evaluating collision with",e.toString()),this.done=!1,this.#C=Math.max(t.index-1,0);return}let s=t.state.get(rr.MergeInto);if(s?.beam.equals(e)&&!e.getMergeWith(this)){console.debug(this.toString(),"re-evaluating merge into",e.toString()),this.done=!1,this.#C=Math.max(this.#C-1,0);return}}let n=this.getMergeWith(e);n&&!i?.state.get(rr.MergeInto)?.beam.equals(this)&&(console.debug(this.toString(),"re-evaluating merge with",e.toString()),this.done=!1,this.#C=Math.max(n.stepIndex-1,0))}onCollision({beam:t,collision:e,collisionStep:i,currentStep:n,nextStep:s,puzzle:r}){let a=t.equals(this);if(console.debug(this.toString(),"evaluating collision with",a?"self":t.toString()),!t.isOn()){console.debug(this.toString(),"ignoring collision with inactive beam",t.toString());return}if(t.parent.equals(this.parent)&&0===n.index){console.debug(this.toString(),"ignoring collision with sibling beam",t.toString());return}if(a&&this.#CsV(e.point,t.point));if(o<0)throw Error(`Could not find matching step for beam collision between ${this.toString()} and ${t.toString()}`);let l=this.#S[o];if(l.state.get(rr.MergeInto)?.beam.equals(t)){console.debug(this.toString(),"ignoring collision with merged beam",t.toString());return}if(l.state.get(rr.TerminusConnection)?.terminus.equals(t.parent)){console.debug(this.toString(),"ignoring collision with connected beam in parent terminus",t.toString());return}let h=l.state.get(rr.Reflector)??n.state.get(rr.Reflector);if(h){let e=sH(l.point,1,sG(l.direction)),i=sH(n.point,1,sG(n.direction));if(!h.item.isSameSide(e,i)){console.debug(this.toString(),"ignoring collision with beam on opposite side of reflector",t.toString());return}}if(n.state.get(rr.Portal)??l.state.get(rr.Portal)){console.debug(this.toString(),"ignoring collision with beam using same portal",t.toString());return}let u=l.direction===s.direction;if(!u||a)return console.debug(t.toString(),"has collided with",a?"self":this.toString(),e),l.state.get(rr.Collision)?.point.equals(e.point)||(a?u||this.update(o,r.getBeamsUpdateDelay()):this.update(o,{done:!0,state:l.state.copy(new rr.Collision(e.mirror()))})),i.copy({done:!0,insertAbove:l.insertAbove});console.debug(this.toString(),"merging with",t.toString()),this.#E(o);let c=new rp(t,l,o);return this.addStep(l.copy({colors:c.colors,onAdd:()=>{this.#n.get(rf.CacheKeys.MergeWith).set(t.id,c)},onRemove:()=>{this.#n.get(rf.CacheKeys.MergeWith).unset(t.id)},state:l.state.copy(new rr.MergeWith(c))})),console.debug(t.toString(),"merging into",this.toString()),s.copy({done:!0,point:n.point,state:s.state.copy(new rr.MergeInto(this))})}onModifierInvoked(t){if(!this.isOn()){this.#S.length&&(console.debug(this.toString(),"beam has been toggled off"),this.remove());return}let e=t.detail.tiles||[t.detail.tile],i=this.#S.findIndex(t=>e.some(e=>e.equals(t.tile)));if(i>=0){console.debug(this.toString(),"re-evaluating due to modifier being invoked in matching tile",i),this.done=!1,this.#C=Math.max(i-1,0);return}if(this.isComplete()){let t=this.getStep();t.state.get(rr.Portal)?.entryPortal&&(this.done=!1)}}remove(t=0){this.#E(t)}selected(t=!0){this.path.forEach(e=>{e.selected=t})}startDirection(){return(this.getOpening().direction+this.parent.rotation)%6}step(t){let e;if(!this.isPending())return;if(console.debug(this.toString(),"currentStepIndex",this.#C),0===this.#S.length){let t=this.parent.parent;this.addStep(new rs(0,t,this.getColor(),this.startDirection(),t.center))}let i=this.#C,n=this.#S[i],s=0===i?this.startDirection():n.direction,r=sH(n.point,n.tile.parameters.inradius,s),a=t.getTile(sZ(n.point,r));if(!a){console.debug(this.toString(),"stopping due to out of bounds");let t=new rd(0,[n.point],this);return this.updateStep(i,{done:!0,state:new rr(new rr.Collision(t))})}let o=i+1,l=this.#S[o],h=this.path.length-1,u=this.path[h].segments.length-1,c=new rs(o,a,n.color,s,r,l?.pathIndex||h,l?.segmentIndex||u),d=function(t,e){let i=t.map(t=>t.id);return t.filter((t,e)=>!i.includes(t.id,e+1))}(a.items.concat(n.tile.equals(c.tile)?[]:n.tile.items),0);console.debug(this.toString(),"collision items:",d);let p=this.#A(d,n,c,t).map((t,e)=>new rd(e,t.points,this,t.item));p.length&&console.debug(this.toString(),"collisions:",p);for(let i=0;it(e.openings[this.#w]),e)}updateStep(t,e){let i=this.getStep(t);if(i){i.onRemove(i);let n=this.#O(i,e);return this.#S[t]=n,n.onAdd(n),console.debug(this.toString(),"updated step at index",t,"from",i,"to",n),this.#I(t),n}}#A(t,e,i,n){let s=[e.point,i.point],r=new sE.Path({segments:s}),a=s[0];return t.map(t=>{let e=[];return e.push(...new Set(r.getIntersections(t.getCompoundPath(),e=>!(t===this&&e.point.equals(a))).map(t=>t.point))),e.length||t.type!==s2.Types.beam||t===this||e.push(...t.getSteps().map(t=>t.point).filter(t=>s.some(e=>sV(t,e)))),e.sort(sU(a)),n.debug&&(n.drawDebugPoint(a),e.forEach(t=>n.drawDebugPoint(t,{fillColor:"black"}))),{points:e,item:t}}).filter(t=>t.points.length).sort((t,e)=>{let i=sU(a)(t.points[0],e.points[0]);return 0===i?t.item.sortOrder-e.item.sortOrder:i})}#T(t){return t.insertAbove?t.insertAbove.getIndex()+1:0}#O(t,e){return"function"==typeof e&&(e=e(t)),e instanceof rs?e:t.copy(e)}#P(t,e){if(tt.remove());let s=this.#S.splice(t);console.debug(this.toString(),"removed steps: ",s),[...new Set(s.map(t=>t.tile))].filter(t=>0===this.getSteps(t).length).forEach(t=>t.removeItem(this)),s.forEach(t=>t.onRemove(t)),this.done=!1,this.#C=t-1,this.#I(this.#C)}return i}static CacheKeys=Object.freeze({MergeWith:"mergeWith"});static Events=Object.freeze({Collision:"beam-collision",Connection:"beam-connection",Merge:"beam-merge",Update:"beam-update"})}class rg extends rn(rl(rc(s2))){sortOrder=2;#M;constructor(t,e){super(...arguments);let i=e.openings.filter(t=>t?.color).flatMap(t=>Array.isArray(t.color)?t.color:[t.color]),n=ij.average(i.length?i:Array.isArray(e.color)?e.color:[e.color]).hex(),s=e.openings.map((t,i)=>t?new rg.#N(t.color??n,i,t.connected,t.on??e.on):t).filter(t=>t);this.#M=rg.ui(t,n,s),this.group.addChildren([...this.#M.openings,this.#M.terminus]),this.color=n,this.openings=s,this.radius=this.#M.radius,this.toggled=s.some(t=>t.on),this.beams=s.map(t=>new rf(this,e.openings[t.direction],t)),this.update()}getColorElements(){return sj(this.openings.map(t=>t.color))}getOpening(t){return this.openings.find(e=>e.direction===t)}onMove(){this.beams.forEach(t=>t.remove())}onCollision({beam:t,collisionStep:e,currentStep:i,existingNextStep:n,nextStep:s}){if(console.debug(this.toString(),"collision",t.toString()),t.parent===this&&t.startDirection()===s.direction){console.debug(t.toString(),"ignoring starting terminus collision");return}let r=sG(i.direction),a=this.openings.find(t=>this.getDirection(t.direction)===r);return a&&a.color===s.color&&(!a.on||a.connected&&n?.state.get(rr.TerminusConnection)?.terminus.equals(this))?(console.debug(t.toString(),"terminus connection",this.toString(),a),s.copy({done:!0,onAdd:()=>{s.onAdd(),this.onConnection(a.direction)},onRemove:()=>{s.onRemove(),this.onDisconnection(a.direction)},state:s.state.copy(new rr.TerminusConnection(this,a))})):e}onConnection(t){let e=this.getOpening(t);e.connected||(e.connect(),this.update(),sD(rg.Events.Connection,{terminus:this,opening:e}))}onDisconnection(t){let e=this.getOpening(t);e.connected&&(e.disconnect(),this.update(),sD(rg.Events.Disconnection,{terminus:this,opening:e}))}onToggle(){this.updateState(t=>{this.openings.filter(t=>!t.connected).forEach(e=>{e.toggle(),t.openings[e.direction].on=e.on})}),this.update()}update(){this.beams.forEach(t=>{let e=t.getOpening();this.#M.openings.find(t=>t.data.direction===e.direction).opacity=e.on?1:rg.#L})}static #L=.3;static ui(t,e,i){let n=t.parameters.circumradius/2,s=new sE.Path.RegularPolygon({center:t.center,fillColor:e,opacity:1,sides:6,radius:n/2});return{openings:i.map(t=>{let e=t.direction,i=s.segments[(e+-1+6)%6].point,n=s.segments[(e+2+6)%6].point,r=n.subtract(i);r.angle+=120;let a=i.subtract(r);return new sE.Path({closed:!0,data:{collidable:!1,direction:e},fillColor:t.color,opacity:t.on?1:rg.#L,segments:[i,n,a]})}),radius:n,terminus:s}}static #N=class{constructor(t,e,i,n){this.colors=Array.isArray(t)?t:[t],this.color=ij.average(this.colors).hex(),this.direction=e,this.connected=!0===i,this.on=!0===n}connect(){this.connected=this.on=!0}disconnect(){this.connected=this.on=!1}toggle(){this.on=!this.on}};static Events=Object.freeze({Connection:"terminus-connection",Disconnection:"terminus-disconnection"})}var sE=u("hFpCu");class rm extends rn(rl(s2)){#z;constructor(t,e){super(t,e,{rotationDegrees:30}),this.color=e.color||"black",this.#z=rm.item(t,this.color),this.group.addChild(this.#z)}midLine(){return[sZ(this.#z.segments[3].point,this.#z.segments[0].point),sZ(this.#z.segments[1].point,this.#z.segments[2].point)]}getSide(t){return function(t,e){let[i,n]=t;return Math.sign((n.x-i.x)*(e.y-i.y)-(n.y-i.y)*(e.x-i.x))}(this.midLine(),t)}isSameSide(t,e){return this.getSide(t)===this.getSide(e)}onCollision({beam:t,collision:e,collisions:i,collisionStep:n,currentStep:s,nextStep:r}){let a=sG(s.direction),o=function(t,e){let i=60*sW(t,!0);return sW(function(t,e){let i=t+e;return i<0?360+i:i>360?i-360:i}(i,(30*e-i)*2)/60%6,!1)}(a,this.rotation);if(o===s.direction)return console.debug(t.toString(),"stopping due to collision with non-reflective side of reflector"),n;if(o===a)return console.debug(t.toString(),"stopping due to reflection back at self"),r.copy({done:!0,state:r.state.copy(new rr.Collision(e.copy({points:[r.point]})))});if(!s.state.has(rr.Reflector))return r.copy({state:r.state.copy(new rr.Reflector(this))});let l=sH(s.point,r.tile.parameters.inradius,o);return r.copy({direction:o,point:l})}static item(t,e){let i=t.parameters.circumradius/12,n=t.parameters.circumradius-2*i,s=t.center.subtract(new sE.Point(i/2,n/2)),r=new sE.Size(i,n);return new sE.Path.Rectangle({data:{size:r},fillColor:e,point:s,size:r})}}var sE=u("hFpCu");class r_ extends rn(rl(s2)){sortOrder=1;constructor(t,e){e.immutable??=!0,super(t,e,{rotationDegrees:60});let i=r_.item(t,e);this.group.addChildren(i)}static item(t,e){let i=t.parameters.circumradius/12,n=t.styles.default.strokeColor;return e.directions.map(e=>{let s=t.hexagon.segments[e].point,r=(e+1+6)%6,a=t.hexagon.segments[r].point;return new sE.Path({closed:!0,fillColor:n,segments:[s,t.hexagon.getLocationAt((0===e?t.hexagon.length:t.hexagon.getOffsetOf(s))-i),t.hexagon.getLocationAt((0===r?0:t.hexagon.getOffsetOf(a))+i),a]})})}}class rv extends re{immutable=!0;name="block";title="Immutable"}class ry extends re{immutable=!0;name="lock";title="Locked"}class rb extends ri{name=s8.Swap.name;title="Swap";moveItems(t){let e=t.items.filter(ri.movable),i=this.tile.items.filter(ri.movable);return i.forEach(e=>e.move(t)),e.forEach(t=>t.move(this.tile)),{moved:[ri.data(this.tile,t,i),ri.data(t,this.tile,e)],tiles:[this.tile,t]}}tileFilter(t){return!t.equals(this.tile)&&(t.modifiers.some(re.immutable)||!t.items.some(ri.movable))}}function rx(t,e){let i;switch(e.type){case re.Types.immutable:i=new rv(t,e);break;case re.Types.lock:i=new ry(t,e);break;case re.Types.move:i=new ri(t,e);break;case re.Types.rotate:i=new ro(t,e);break;case re.Types.swap:i=new rb(t,e);break;case re.Types.toggle:i=new ru(t,e);break;default:console.error("Ignoring modifier with unknown type:",e.type)}return i}class rw extends s2{icons=[];selected=!1;#M;constructor(t,e,i,n){super(null,n,{locked:!1}),this.#M=rw.ui(e,i,n,{coordinates:t,type:this.type}),this.center=this.#M.center,this.coordinates=t,this.hexagon=this.#M.hexagon,this.parameters=i,this.styles=this.#M.styles,this.group.addChildren([this.#M.hexagon]),this.items=(n.items||[]).map(t=>(function(t,e,i){let n;switch(e.type){case s2.Types.filter:n=new ra(...arguments);break;case s2.Types.portal:n=new rh(...arguments);break;case s2.Types.terminus:n=new rg(...arguments);break;case s2.Types.reflector:n=new rm(...arguments);break;case s2.Types.wall:n=new r_(...arguments);break;default:throw console.debug("itemFactory",e),Error(`Cannot create item with unknown type: ${e.type}`)}return n&&n.onInitialization(),n})(this,t)).filter(t=>void 0!==t),this.modifiers=(n.modifiers||[]).map(t=>rx(this,t)).filter(t=>void 0!==t),this.update()}addItem(t){this.items.push(t),this.update()}addModifier(t){this.modifiers.push(t),this.update()}afterModify(){this.setStyle(this.selected?"selected":"default"),this.modifiers.forEach(t=>t.update({disabled:!1}))}beforeModify(){this.group.bringToFront(),this.setStyle("edit"),this.modifiers.forEach(t=>t.update({disabled:!0}))}getState(){let t={type:this.type},e=this.items.filter(t=>t.type!==s2.Types.beam).map(t=>t.getState());e.length&&(t.items=e);let i=this.modifiers.map(t=>t.getState());return i.length&&(t.modifiers=i),t}onTap(t){this.items.forEach(e=>e.onTap(t))}onDeselected(t){this.selected=!1,this.#M.hexagon.style=this.styles.default,this.items.forEach(t=>t.onDeselected()),sD(rw.Events.Deselected,{selectedTile:t,deselectedTile:this})}onSelected(t){console.debug(this.toString(),"selected"),this.selected=!0,this.group.bringToFront(),this.#M.hexagon.style=this.styles.selected,this.items.forEach(t=>t.onSelected())}removeItem(t){let e=this.items.indexOf(t);e>=0&&(this.items.splice(e,1),this.update())}removeModifier(t){let e=this.modifiers.indexOf(t);e>=0&&(this.modifiers.splice(e,1),this.update())}setStyle(t){this.hexagon.set(this.styles[t])}teardown(){this.modifiers.forEach(t=>t.detach())}toString(){return`[${this.type}:${this.coordinates.offset.toString()}]`}update(){super.update(),this.icons=this.modifiers.map((t,e)=>{let i=sZ(this.#M.hexagon.segments[e].point,this.center,t=>t/3);return t.getSymbol().place(i,{fillColor:t.immutable?"#ccc":"#333"})}),this.group.removeChildren(1),this.group.addChildren(this.icons)}static parameters(t){let e=t/2,i=Math.sqrt(3)*e;return{circumradius:e,height:t,inradius:i/2,offsetY:3/4*t,width:i}}static ui(t,e,i,n){let s=new sE.Point(t.startingOffsetX+e.inradius+t.column*e.width,t.startingOffsetY+e.circumradius+t.row*e.offsetY),r=e.circumradius/10,a=Object.assign({},rw.Styles,{edit:Object.assign({dashArray:[r,r]},rw.Styles.edit)},i.style||{}),o=new sE.Path.RegularPolygon({center:s,closed:!0,data:n,radius:e.circumradius,sides:6,style:a.default});return{center:s,hexagon:o,styles:a}}static Events=Object.freeze({Deselected:"tile-deselected",Selected:"tile-selected"});static MaxModifiers=6;static Styles=Object.freeze({default:{dashArray:[],fillColor:new sE.Color("white"),strokeColor:new sE.Color("#666"),strokeWidth:1},edit:{strokeColor:new sE.Color("black"),strokeWidth:2},selected:{dashArray:[],strokeColor:new sE.Color("black"),strokeWidth:2}})}class rk extends s1{#R=[];#B=[];items=[];layers={};modifiers=[];tiles=[];tileSize=120;constructor(t){super(t),this.type=t.type||rk.Types.oddR;let e=/*@__PURE__*/a(sE).view.center,i=rw.parameters(this.tileSize),n=t.tiles,s=n.length*i.width,r=e.y-s/2;this.layers.tiles=new sE.Layer,this.layers.items=new sE.Layer,this.modifiers=(t.modifiers||[]).map(t=>rx(null,t)).filter(t=>void 0!==t);let o=n.reduce((t,e,i)=>{let n=e.length;return n>t.length||n===t.length&&this.#D(i)?{index:i,length:n}:t},{index:0,length:0}),l=o.length*i.width+(this.#D(o.index)?i.inradius:0),h=e.x-l/2;for(let t=0;tt.group))),this.tiles.push(p),s[l.q]=p,a[u.c]=p}this.#R.push(s),this.#B.push(a)}}getTileByAxial(t){return(this.#R[t.r]||[])[t.q]}getTileByOffset(t){return this.#B[t.r][t.c]}getState(){let t={type:this.type};t.tiles=this.#B.map(t=>t.map(t=>t?.getState()||null));let e=this.modifiers.map(t=>t.getState());return e.length&&(t.modifiers=e),t}getNeighboringTile(t,e){return this.getTileByAxial(s0.neighbor(t,sW(e)))}removeModifier(t){let e=this.modifiers.indexOf(t);e>=0&&this.modifiers.splice(e,1)}teardown(){this.modifiers.forEach(t=>t.detach()),Object.values(this.layers).forEach(t=>t.removeChildren())}#D(t){return t%2==0?this.type===rk.Types.evenR:this.type===rk.Types.oddR}static Types=Object.freeze({evenR:"even-r",oddR:"odd-r"})}var sE=(u("hFpCu"),u("hFpCu"));class rC extends s2{constructor(t,e){super(null,e,{locked:!1,type:s2.Types.mask});let i={type:this.type},n=new sE.Path.RegularPolygon({center:t.center,closed:!0,data:i,opacity:.25,radius:t.parameters.circumradius+1,sides:6,style:Object.assign({fillColor:"black"},e)});this.center=t.center,this.group.addChild(n)}}var sE=u("hFpCu");class rS extends s2{constructor(t){super(null,t,{type:s2.Types.collision});let{center:e,color:i}=t;this.center=e,this.color=i;let n=new sE.Path.Circle({center:e,closed:!0,radius:4,style:{fillColor:"white",strokeColor:i,strokeWidth:2}});this.group.addChild(n)}}const rT={"001":u("c6KoO"),"002":u("8f7Az"),"003":u("dwyZF"),"004":u("cHmaR"),"005":u("1L3os"),"006":u("lJdHO"),"007":u("ixRVx"),"008":u("mBcXZ"),"009":u("9RcUi"),"010":u("iJw1S"),"011":u("5K06G"),"012":u("jaZqg"),test_infinite_loop:u("gO2GV"),test_layout:u("biNjg"),test_portal:u("4QHZj"),test_reflector:u("7Uxjd")};function rI(t,e,i){let n=t.indexOf(e);return t[n<0?n:n+i]}class rE{ids;constructor(t){this.firstId=t[0],this.ids=t,this.lastId=t[t.length-1]}get(t){if(this.has(t))return structuredClone(rT[t])}has(t){return this.ids.includes(t)}nextId(t){return rI(this.ids,t,1)}previousId(t){return rI(this.ids,t,-1)}}const rA=new rE(Object.keys(rT).sort());rA.hidden=new rE(rA.ids.filter(t=>t.startsWith("test_"))),rA.titles=Object.fromEntries(rA.ids.map(t=>[t,rT[t].title||t])),rA.visible=new rE(rA.ids.filter(t=>!rA.hidden.has(t)));const rP=window.history,rO=window.localStorage;class rM{#V;#F;#j;#U;#q;#Z;#H;constructor(t,e,i,n,s,r){this.#j=t,this.#q=e,this.#F=i||[],this.#U=n||this.#G(),this.#Z=s,this.#H=r??e.version,this.#V=structuredClone(e),this.#F.filter((t,e)=>e<=this.#U).forEach(t=>this.apply(t)),this.#W(t)}apply(t){return"string"==typeof t&&(t=JSON.parse(t)),console.debug("StateManager: applying delta",t),sM.patch(this.#V,t)}canRedo(){return this.#U0}canUndo(){return this.#U>=0}encode(){return sL(JSON.stringify({id:this.#j,original:rA.has(this.#j)?void 0:this.#q,deltas:this.#F,deltasIndex:this.#U,selectedTile:this.#Z,version:this.#H}))}getCurrent(){return structuredClone(this.#V)}getId(){return this.#j}getTitle(){return this.getId()+(this.#V.title?` - ${this.#V.title}`:"")}getSelectedTile(){return this.#Z}moves(){return this.#U+1}length(){return this.#F.length}redo(){if(this.canRedo())return this.#U++,this.#V=structuredClone(this.#q),this.#F.filter((t,e)=>e<=this.#U).forEach(t=>this.apply(t)),this.#W(),!0}reset(){if(this.canReset())return this.#V=structuredClone(this.#q),this.#F=[],this.#U=this.#G(),this.#Z=void 0,rM.clearCache(this.getId()),this.#W(),!0}setSelectedTile(t){let e=t?.coordinates.offset.toString();this.#Z!==e&&(this.#Z=e,this.#W())}undo(){if(this.canUndo())return this.#U--,this.#V=structuredClone(this.#q),this.#F.filter((t,e)=>e<=this.#U).forEach(t=>this.apply(t)),this.#W(),!0}update(t,e=!0){let i=sM.diff(this.#V,t);console.debug("delta",i),void 0!==i&&(this.apply(i),e&&(this.#U""!==t);if(t||i.filter(t=>!rA.has(t)).some((i,n)=>{try{t=(e=rM.fromEncoded(i)).getId()}catch(t){console.debug(`Could not parse state from path segment '${n}'`,t)}return void 0!==e}),!e){t=t||i[0]||rO.getItem(rM.CacheKeys.id)||rA.visible.firstId;let n=rO.getItem(rM.key(rM.CacheKeys.state,t));if(n)try{e=rM.fromEncoded(n)}catch(e){console.debug(`Could not parse state with ID '${t}' from localStorage`,e)}}if(e){let i=e.#H,n=e.#q.version;i!==n&&(console.debug(`Invalidating cache for ID ${t} due to version mismatch. Puzzle: ${n}, Cache: ${i}`),e=void 0,rM.clearCache(t))}if(e||(e=rM.fromId(t)),!e)throw Error(`Unable to resolve state for ID '${t}'`);return e}static key(t,e){return`${t}:${e}`}static CacheKeys=Object.freeze({center:"center",id:"id",state:"state",zoom:"zoom"});static ParamKeys=Object.freeze({clearCache:"clearCache"})}class rN{#K=[];constructor(t){t.forEach(t=>this.#J(t))}teardown(){this.#K.forEach(t=>t.teardown()),rN.element.replaceChildren()}isSolved(){return this.#K.every(t=>t.isMet())}#J(t){switch(t.type){case rL.Types.connections:this.#K.push(new rz(t));break;case rL.Types.moves:this.#K.push(new rR(t));break;default:console.warn("Ignoring condition with unknown type:",t.type)}}static element=document.getElementById("solution")}class rL{constructor(t,e){this.state=t;let i=document.createElement("li");i.append(...e),rN.element.append(i)}isMet(){}teardown(){}update(){}static Types=Object.freeze(Object.fromEntries(["connections","moves"].map(t=>[t,sz(t)])))}class rz extends rL{#Y;#Q=new s5({context:this});#X=[];constructor(t){let e=document.createElement("span");e.textContent="0";let i=document.createElement("span");i.textContent=t.amount.toString(),super(t,[e,s$("/"),i,sq("link","Connections")]),this.#Y=e,this.#Q.add([{type:rg.Events.Connection,handler:this.update},{type:rg.Events.Disconnection,handler:this.update}])}isMet(){return this.#X.length===this.state.amount}teardown(){this.#Q.remove(),super.teardown()}update(t){console.debug("Connections.update",t);let e=t.detail.terminus,i=t.detail.opening,n=`${e.id}:${i.direction}`,s=this.#X.findIndex(t=>t===n);i.connected&&s<0?this.#X.push(n):!i.connected&&s>=0&&this.#X.splice(s,1),this.#Y.textContent=this.#X.length.toString()}}class rR extends rL{#Y;#Q=new s5({context:this});#tt=0;constructor(t){if(t.operator??=rR.Operators.equalTo,!Object.values(rR.Operators).includes(t.operator))throw Error(`Invalid moves operator: ${t.operator}`);let e=document.createElement("span");e.textContent="0";let i=document.createElement("span");i.textContent=t.amount.toString(),super(t,[e,s$(t.operator),i,sq("stacks","Moves")]),this.#Y=e,this.#Q.add([{type:rD.Events.Updated,handler:this.update}])}isMet(){switch(this.state.operator){case rR.Operators.equalTo:return this.#tt===this.state.amount;case rR.Operators.greaterThan:return this.#tt>this.state.amount;case rR.Operators.lessThan:return this.#tt",lessThan:"<"})}const rB=Object.freeze({footer:document.getElementById("footer"),footerMessage:document.getElementById("footer-message"),headerMessage:document.getElementById("header-message"),main:document.getElementById("main"),next:document.getElementById("next"),previous:document.getElementById("previous"),puzzle:document.getElementById("puzzle"),puzzleId:document.getElementById("puzzle-id"),redo:document.getElementById("redo"),reset:document.getElementById("reset"),undo:document.getElementById("undo"),title:document.querySelector("title")});class rD{connections=[];debug=!1;error=!1;layers={};message;selectedTile;solved=!1;#te;#ti=30;#tn={};#Q=new s5({context:this});#ts;#tr=!1;#_;#ta=[];#to;#t;#tl;#th=[];constructor(){/*@__PURE__*/a(sE).settings.insertItems=!1,/*@__PURE__*/a(sE).setup(rB.puzzle),this.#tu(),this.layers.mask=new sE.Layer,this.layers.collisions=new sE.Layer,this.layers.debug=new sE.Layer,this.#Q.add([{type:rf.Events.Update,handler:this.#tc},{type:"change",element:rB.puzzleId,handler:this.#td},{type:"click",element:rB.next,handler:this.#tp},{type:"click",element:rB.previous,handler:this.#tf},{type:"click",element:rB.redo,handler:this.#tg},{type:"click",element:rB.reset,handler:this.#tm},{type:"click",element:rB.undo,handler:this.#t_},{type:"keyup",handler:this.#tv},{type:re.Events.Invoked,handler:this.#ty},{type:rD.Events.Mask,handler:this.#tb},{type:"resize",element:window,handler:function(t,e=500){let i;return(...n)=>{clearTimeout(i),i=setTimeout(()=>{t(...n)},e)}}(this.#tu)},{type:s1.Events.Update,handler:this.#tx},{type:"tap",element:rB.puzzle,handler:this.#tw}]),this.#ts=new s4(rB.puzzle),this.#tk(),this.select()}centerOnTile(t){let e=this.layout.getTileByOffset(t);/*@__PURE__*/a(sE).view.center=e.center}clearDebugPoints(){this.layers.debug.clear()}drawDebugPoint(t,e={}){let i=new sE.Path.Circle(Object.assign({radius:3,fillColor:"red",strokeColor:"white",strokeWidth:1,center:t},e));this.layers.debug.addChild(i)}getBeamsUpdateDelay(){return this.#ti}getItems(t){return(t?this.#th.filter(e=>e===t):this.#th).flatMap(t=>t.items)}getTile(t){let e=/*@__PURE__*/a(sE).project.hitTest(t.ceil(),{fill:!0,match:t=>t.item.data.type===s2.Types.tile,segments:!0,stroke:!0,tolerance:0});return e?this.layout.getTileByAxial(e.item.data.coordinates.axial):e}mask(t){if(this.#_){if(this.#_.equals(t))throw console.debug(t),Error(`Duplicate mask detected: ${t.id}`);console.debug("adding mask to queue",t),this.#ta.push(t);return}this.#_=t;let e=this.#th.filter(t.tileFilter).map(e=>new rC(e,"function"==typeof t.configuration.style?t.configuration.style(e):t.configuration.style));this.layers.mask.addChildren(e.map(t=>t.group)),t.message&&(rB.headerMessage.textContent=t.message),t.onMask(this),document.body.classList.add(rD.Events.Mask)}select(t){if(void 0===t||t!==this.#t?.getId()){try{this.#t=rM.resolve(t)}catch(t){this.#tC(t,"Could not load puzzle.")}this.#tS()}}unmask(){console.debug("unmask",this.#_),this.layers.mask.removeChildren(),this.#tT(this.selectedTile),this.#_.onUnmask(this),this.#_=void 0,document.body.classList.remove(rD.Events.Mask);let t=this.#ta.pop();t&&(console.debug("processing next mask in queue",t),setTimeout(()=>{!1!==t.onUpdate()&&this.mask(t)}))}update(){this.#_||this.#tr||(this.#tr=!0,this.#tI())}updateSelectedTile(t){let e=this.selectedTile;return this.selectedTile=t,this.#t.setSelectedTile(t),this.#tT(t),this.#tE(t,e),e&&e!==t&&e.onDeselected(t),t&&t!==e&&t.onSelected(e),e}updateState(t=!0){this.#t.update(Object.assign(this.#t.getCurrent(),{layout:this.layout.getState()}),t),this.#tA(),t&&sD(rD.Events.Updated,{state:this.#t})}#tP(){[this.layout.layers.tiles,this.layout.layers.items,this.layers.mask,this.layers.collisions,this.layers.debug].forEach(t=>/*@__PURE__*/a(sE).project.addLayer(t))}#tO(t){return this.layout.modifiers.concat(t?.modifiers||[]).filter(t=>!t.immutable).sort((t,e)=>t.id-e.id)}#tp(){let t=rA.visible.nextId(this.#t.getId());t&&this.select(t)}#tc(t){let e=t.detail.beam,i=t.detail.state;if(i?.has(rr.Collision)){let t=i.get(rr.Collision),n=rD.Collision.id(t.point),s=this.#tn[n];s?s.addBeam(e):this.#tn[n]=new rD.Collision(this.layers.collisions,[e],t.point);let r=this.#_?.configuration;r?.beam?.equals(e)&&this.unmask()}Object.values(this.#tn).forEach(t=>t.update()),this.#te.filter(t=>t!==e).forEach(e=>e.onBeamUpdated(t,this)),setTimeout(()=>this.update(),0)}#tC(t,e,i){this.error=!0,"string"==typeof t&&(i=e=t,t=void 0),t&&console.error(t),(i=i??t?.cause)&&console.error("cause:",i),e=e??t?.message??"The puzzle has encountered an error, please consider reporting.",rB.headerMessage.textContent=e,document.body.classList.add(rD.Events.Error)}#tv(t){this.debug&&"s"===t.key&&this.update()}#tb(t){console.debug("Mask event",t),this.mask(t.detail.mask)}#ty(t){let e=t.detail.modifier,i=t.detail.tile;!e.parent&&i.modifiers.some(t=>t.type===re.Types.lock)&&!i.modifiers.some(t=>t.type===e.type)&&i.modifiers.lengtht.type===e.type&&t.id!==e.id).forEach(t=>t.update({disabled:!0}))),this.updateState(),this.#te.sort(t=>i.items.some(e=>e===t)?-1:0).forEach(e=>e.onModifierInvoked(t,this)),setTimeout(()=>this.update(),0)}#td(t){this.select(t.target.value)}#tM(){if(this.solved)return;this.solved=!0,this.updateSelectedTile(void 0),this.mask(rD.#tN);let t=document.createElement("span");t.classList.add(rD.ClassNames.Icon),t.textContent="celebration",t.title="Solved!",rB.headerMessage.replaceChildren(t),document.body.classList.add(rD.Events.Solved),sD(rD.Events.Solved)}#tx(){this.updateState()}#tw(t){let e;if(this.solved||this.error)return;let i=/*@__PURE__*/a(sE).project.hitTest(t.detail.point);switch(i?.item.data.type){case s2.Types.mask:return;case s2.Types.tile:e=this.layout.getTileByAxial(i.item.data.coordinates.axial)}if(this.#_)this.#_.onTap(this,e);else{let i=this.updateSelectedTile(e);e&&e===i&&e.onTap(t)}}#tf(){let t=rA.visible.previousId(this.#t.getId());t&&this.select(t)}#tg(){this.#t.redo()&&this.#tS()}#tS(){this.error=!1,this.#t&&this.#tL(),this.#tz(),sD(rD.Events.Updated,{state:this.#t})}#tR(){Object.values(this.layers).forEach(t=>t.removeChildren()),/*@__PURE__*/a(sE).project.clear()}#tm(){this.#t.reset()&&this.#tS()}#tu(){let{width:t,height:e}=rB.main.getBoundingClientRect();rB.puzzle.style.height=e+"px",rB.puzzle.style.width=t+"px",/*@__PURE__*/a(sE).view.viewSize=new sE.Size(t,e)}#tz(){let{layout:t,message:e,solution:i}=this.#t.getCurrent();this.layout=new rk(t),this.message=e,this.#to=new rN(i),this.#th=this.layout.tiles,this.#tl=this.layout.items.filter(t=>t.type===s2.Types.terminus),this.#te=this.#tl.flatMap(t=>t.beams),this.#tP(),document.body.classList.add(rD.Events.Loaded);let n=this.#t.getSelectedTile(),s=n?this.layout.getTileByOffset(new sX(...n.split(","))):void 0;this.updateSelectedTile(s),this.updateState(!1),this.update()}#tL(){document.body.classList.remove(...Object.values(rD.Events)),this.#tR(),this.#th.forEach(t=>t.teardown()),this.#th=[],this.#to?.teardown(),this.#to=void 0,this.solved=!1,this.layout?.teardown(),this.layout=void 0,this.selectedTile=void 0,this.#te=[],this.#tn={},this.#tr=!1,this.#_=void 0,this.#ta=[],this.#tl=[]}#t_(){this.#t.undo()&&this.#tS()}#tA(){let t=this.#t.getId(),e=this.#t.getTitle();rB.title.textContent=`Beaming: Puzzle ${e}`,function(t,...e){e.forEach(e=>e.classList.remove(t))}(rD.ClassNames.Disabled,...Array.from(document.querySelectorAll("#actions li")));let i=[];this.#t.canUndo()||i.push(rB.undo),this.#t.canRedo()||i.push(rB.redo),this.#t.canReset()||i.push(rB.reset),rA.visible.has(t)?(rB.puzzleId.value=t,t===rA.visible.firstId?i.push(rB.previous):t===rA.visible.lastId&&i.push(rB.next)):(rB.puzzleId.value="",i.push(rB.previous,rB.next)),function(t,...e){e.forEach(e=>e.classList.add(t))}(rD.ClassNames.Disabled,...i)}#tk(){for(let t of(rB.puzzleId.replaceChildren(),rA.visible.ids)){let e=document.createElement("option");e.value=t,e.innerText=rA.titles[t],rB.puzzleId.append(e)}}#tI(){let t=this.#te.filter(t=>t.isPending());if(!t.length){this.#tr=!1,setTimeout(()=>{this.#to.isSolved()&&this.#tM()},0);return}this.debug&&this.layers.debug.clear(),t.forEach(t=>t.step(this)),setTimeout(()=>this.#tI(),this.#ti)}#tT(t){if(rB.headerMessage.textContent=this.message,rB.footerMessage.replaceChildren(),t){let e=t.items.map(e=>e.getColorElements(t)).find(t=>t.length>1)||[];rB.footerMessage.replaceChildren(...e)}}#tE(t,e){this.#tO(e).forEach(t=>t.detach());let i=this.#tO(t);i.forEach(e=>e.attach(t)),rB.footer.classList.toggle(rD.ClassNames.Active,i.length>0)}static Collision=class{constructor(t,e,i,n){this.id=rD.Collision.id(i),this.layer=t,this.beams=e,this.point=i,this.item=n}addBeam(t){return this.beams.some(e=>e.id===t.id)||this.beams.push(t),this.beams}addItem(t){this.item=new rS({center:this.point,color:t}),this.layer.addChild(this.item.group)}equals(t){return sV(this.point,t?.point)}getColor(){return this.beams.length?ij.average(this.beams.map(t=>t.getColor())).hex():void 0}removeItem(){this.item&&(this.item.remove(),this.item=void 0)}update(){this.beams=this.beams.filter(t=>this.equals(t.getCollision()));let t=this.getColor();this.item&&(!this.beams.length||this.item.color!==t)&&this.removeItem(),this.beams.length&&!this.item&&this.addItem(t)}static id(t){let e=t.round();return[e.x,e.y].join(",")}};static ClassNames=Object.freeze({Active:"active",Disabled:"disabled",Icon:"material-symbols-outlined"});static Events=Object.freeze({Error:"puzzle-error",Loaded:"puzzle-loaded",Mask:"puzzle-mask",Solved:"puzzle-solved",Updated:"puzzle-updated"});static Mask=class{constructor(t={}){t.style??={},this.configuration=t,this.id=t.id,this.message=t.message,this.tileFilter=t.tileFilter??sK(!0),this.onMask=t.onMask??sK,this.onTap=t.onTap??sK,this.onUnmask=t.onUnmask??sK,this.onUpdate=t.onUpdate??sK}equals(t){return this.id===t.id}};static #tB=t=>t.type===s2.Types.beam&&t.isConnected();static #tN=new rD.Mask({style:t=>{let e=t.items.filter(rD.#tB).flatMap(e=>e.getSteps(t).flatMap(t=>t.color));return{fillColor:ij.average(e).hex()}},tileFilter:t=>t.items.some(rD.#tB)})}const rV=document.createElement("script");rV.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=G-HXLD6EE5NS"),document.head.append(rV);const rF=window.dataLayer=window.dataLayer||[];function rj(){rF.push(arguments)}rj("js",new Date),rj("config","G-HXLD6EE5NS");const rU=window.doorbellOptions={appKey:"o1smdnJiyxObjMcY0jSTf08TIhA814yLq68rEwTDWTavma7dtIVKEdwzMePE2LHC",container:document.getElementById("feedback-container"),hideButton:!0,properties:{}},rq=document.createElement("script");rq.setAttribute("src","https://embed.doorbell.io/button/14129/1705777677/init?native_json=1&needs_postmessage=0"),document.head.append(rq),document.addEventListener("puzzle-updated",t=>{rU.properties.puzzleId=t.detail.state.getId()});const rZ=new rD,rH={debug:sQ,puzzle:rZ};rH.centerOnTile=function(t,e){return rZ.centerOnTile(new sX(t,e))},rH.clearDebugPoints=rZ.clearDebugPoints.bind(rZ),rH.drawDebugPoint=function(t,e,i){return rZ.drawDebugPoint(new sE.Point(t,e),i)},window.beaming=rH; -//# sourceMappingURL=index.f6478a7d.js.map + */(function(e,i){var n=(e=e||u("gFNhN")).window,s=e.document,r=new function(){var t=/^(statics|enumerable|beans|preserve)$/,e=[],n=e.slice,s=Object.create,r=Object.getOwnPropertyDescriptor,a=Object.defineProperty,o=e.forEach||function(t,e){for(var i=0,n=this.length;i0||h+s0?[["dictionary",n.definitions],s]:s},deserialize:function(t,e,i,n,s){var a=t,o=!i,l=o&&t&&t.length&&"dictionary"===t[0][0];if(i=i||{},Array.isArray(t)){var h=t[0],u="dictionary"===h;if(1==t.length&&/^#/.test(h))return i.dictionary[h];h=r.exports[h],a=[];for(var c=h?1:0,d=t.length;ct.length&&(n=t.length);for(var l=0;l0){var r=e[s],a=r&&r[n];a&&a.call(this,s)}}},statics:{inject:function t(e){var i=e._events;if(i){var n={};r.each(i,function(t,i){var s="string"==typeof t,a=s?t:i,o=r.capitalize(a),l=a.substring(2).toLowerCase();n[l]=s?{}:t,a="_"+a,e["get"+o]=function(){return this[a]},e["set"+o]=function(t){var e=this[a];e&&this.off(l,e),t&&this.on(l,t),this[a]=t}}),e._eventTypes=n}return t.base.apply(this,arguments)}}},o=r.extend({_class:"PaperScope",initialize:function t(){tl=this,this.settings=new r({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 i=t.prototype;if(!this.support){var n=ts.getContext(1,1)||{};i.support={nativeDash:"setLineDash"in n||"mozDash"in n,nativeBlendModes:tr.nativeModes},ts.release(n)}if(!this.agent){var s=e.navigator.userAgent.toLowerCase(),a=(/(darwin|win|mac|linux|freebsd|sunos)/.exec(s)||[])[0],o="darwin"===a?"mac":a,l=i.agent=i.browser={platform:o};o&&(l[o]=!0),s.replace(/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\/?\s*([.\d]+)(?:.*version\/([.\d]+))?(?:.*rv\:v?([.\d]+))?/g,function(t,e,i,n,s){if(!l.chrome){var r="opera"===e?n:/^(node|trident)$/.test(e)?s:i;l.version=r,l.versionNumber=parseFloat(r),e=({trident:"msie",jsdom:"node"})[e]||e,l.name=e,l[e]=!0}}),l.chrome&&delete l.webkit,l.atom&&delete l.chrome}},version:"0.12.18",getView:function(){var t=this.project;return t&&t._view},getPaper:function(){return this},execute:function(t,e){var i=tl.PaperScript.execute(t,this,e);return W.updateFocus(),i},install:function(t){var e=this;for(var i in r.each(["project","view","tool"],function(i){r.define(t,i,{configurable:!0,get:function(){return e[i]}})}),this)!/^_/.test(i)&&this[i]&&(t[i]=this[i])},setup:function(t){return tl=this,this.project=new w(t),this},createCanvas:function(t,e){return ts.getCanvas(t,e)},activate:function(){tl=this},clear:function(){for(var t=this.projects,e=this.tools,i=t.length-1;i>=0;i--)t[i].remove();for(var i=e.length-1;i>=0;i--)e[i].remove()},remove:function(){this.clear(),delete o._scopes[this._id]},statics:new function(){function t(t){return t+="Attribute",function(e,i){return e[t](i)||e[t]("data-paper-"+i)}}return{_scopes:{},_id:0,get:function(t){return this._scopes[t]||null},getAttribute:t("get"),hasAttribute:t("has")}}}),l=r.extend(a,{initialize:function(t){this._scope=tl,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&&(r.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()}}),h={findItemBoundsCollisions:function(t,e,i){function n(t){for(var e=Array(t.length),i=0;i>>1;a[t[r]][e]=o;(s||(x&&O||w&&P)&&T>=A[d]-i&&E<=A[p]+i)&&(x&&O&&k.push(r?I:I-o),w&&P&&_[I].push(b))}}if(x&&(t===e&&k.push(v),_[v]=k),m.length){var M=y[c],N=h(m,c,M);m.splice(N+1,0,v)}else m.push(v)}for(var g=0;g<_.length;g++){var L=_[g];L&&L.sort(function(t,e){return t-e})}return _}},c=r.extend({initialize:function(t){this.precision=r.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,i){return this.number(t)+(i||",")+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)}});c.instance=new c;var d=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]],i=Math.abs,n=Math.sqrt,s=Math.pow,r=Math.log2||function(t){return Math.log(t)*Math.LOG2E};function a(t,e,i){return ti?i:t}function o(t,e,n){function s(t){var e=0x8000001*t,i=t-e+e;return[i,t-i]}var r=e*e-t*n,a=e*e+t*n;if(3*i(r)1e8)?s(2,-Math.round(r(t))):0}return{EPSILON:1e-12,MACHINE_EPSILON:112e-18,CURVETIME_EPSILON:1e-8,GEOMETRIC_EPSILON:1e-7,TRIGONOMETRIC_EPSILON:1e-8,ANGULAR_EPSILON:1e-5,KAPPA:4*(n(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(i,n,s,r){for(var a=t[r-2],o=e[r-2],l=(s-n)*.5,h=l+n,u=0,c=r+1>>1,d=1&r?o[u++]*i(h):0;u0?(r=n,n=d<=s?(s+r)*.5:d):(s=n,n=d>=r?(s+r)*.5:d)}return a(n,s,r)},solveQuadratic:function(t,e,s,r,h,u){var c,d=1/0;if(1e-12>i(t)){if(1e-12>i(e))return 1e-12>i(s)?-1:0;c=-s/e}else{var p=o(t,e*=-.5,s);if(p&&112e-18>i(p)){var f=l(i(t),i(e),i(s));f&&(t*=f,e*=f,s*=f,p=o(t,e,s))}if(p>=-112e-18){var g=p<0?0:n(p),m=e+(e<0?-g:g);0===m?d=-(c=s/t):(c=m/t,d=s/m)}}var _=0,v=null==h,y=h-1e-12,b=u+1e-12;return isFinite(c)&&(v||c>y&&cy&&di(t))t=e,f=r,g=o,p=1/0;else if(1e-12>i(o))f=e,g=r,p=0;else{y(-(e/t)/3);var b=_/t,x=s(i(b),1/3),w=b<0?-1:1,k=-m/t,S=k>0?1.324717957244746*Math.max(x,n(k)):x,C=p-w*S;if(C!==p){do y(C),C=0===m?p:p-_/m/1.0000000000000002;while(w*C>w*p)i(t)*p*p>i(o/p)&&(f=((g=-o/p)-r)/p)}}var I=d.solveQuadratic(t,f,g,h,u,c),T=null==u;return isFinite(p)&&(0===I||I>0&&p!==h[0]&&p!==h[1])&&(T||p>u-1e-12&&p1?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),s=0)}return n&&(this.__read=s),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 f(this.x,this.y)},toString:function(){var t=c.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 i=t/this.getLength();d.isZero(i)&&this.getAngle(),this._set(this.x*i,this.y*i)}},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)return this.isZero()?this._angle||0:this._angle=Math.atan2(this.y,this.x);var t=f.read(arguments),e=this.getLength()*t.getLength();if(d.isZero(e))return NaN;var i=this.dot(t)/e;return Math.acos(i<-1?-1:i>1?1:i)},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=f.read(arguments);return 180*Math.atan2(this.cross(t),this.dot(t))/Math.PI},getDistance:function(){var t=arguments,e=f.read(t),i=e.x-this.x,n=e.y-this.y,s=i*i+n*n;return r.read(t)?s:Math.sqrt(s)},normalize:function(t){t===i&&(t=1);var e=this.getLength(),n=0!==e?t/e:0,s=new f(this.x*n,this.y*n);return n>=0&&(s._angle=this._angle),s},rotate:function(t,e){if(0===t)return this.clone();t=t*Math.PI/180;var i=e?this.subtract(e):this,n=Math.sin(t),s=Math.cos(t);return i=new f(i.x*s-i.y*n,i.x*n+i.y*s),e?i.add(e):i},transform:function(t){return t?t._transformPoint(this):this},add:function(){var t=f.read(arguments);return new f(this.x+t.x,this.y+t.y)},subtract:function(){var t=f.read(arguments);return new f(this.x-t.x,this.y-t.y)},multiply:function(){var t=f.read(arguments);return new f(this.x*t.x,this.y*t.y)},divide:function(){var t=f.read(arguments);return new f(this.x/t.x,this.y/t.y)},modulo:function(){var t=f.read(arguments);return new f(this.x%t.x,this.y%t.y)},negate:function(){return new f(-this.x,-this.y)},isInside:function(){return v.read(arguments).contains(this)},isClose:function(){var t=arguments,e=f.read(t),i=r.read(t);return this.getDistance(e)<=i},isCollinear:function(){var t=f.read(arguments);return f.isCollinear(this.x,this.y,t.x,t.y)},isColinear:"#isCollinear",isOrthogonal:function(){var t=f.read(arguments);return f.isOrthogonal(this.x,this.y,t.x,t.y)},isZero:function(){var t=d.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=f.read(arguments);return this.x*t.x+this.y*t.y},cross:function(){var t=f.read(arguments);return this.x*t.y-this.y*t.x},project:function(){var t=f.read(arguments),e=t.isZero()?0:this.dot(t)/t.dot(t);return new f(t.x*e,t.y*e)},statics:{min:function(){var t=arguments,e=f.read(t),i=f.read(t);return new f(Math.min(e.x,i.x),Math.min(e.y,i.y))},max:function(){var t=arguments,e=f.read(t),i=f.read(t);return new f(Math.max(e.x,i.x),Math.max(e.y,i.y))},random:function(){return new f(Math.random(),Math.random())},isCollinear:function(t,e,i,n){return Math.abs(t*n-e*i)<=1e-8*Math.sqrt((t*t+e*e)*(i*i+n*n))},isOrthogonal:function(t,e,i,n){return Math.abs(t*i+e*n)<=1e-8*Math.sqrt((t*t+e*e)*(i*i+n*n))}}},r.each(["round","ceil","floor","abs"],function(t){var e=Math[t];this[t]=function(){return new f(e(this.x),e(this.y))}},{})),g=f.extend({initialize:function(t,e,i,n){this._x=t,this._y=e,this._owner=i,this._setter=n},_set:function(t,e,i){return this._x=t,this._y=e,i||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}}),m=r.extend({_class:"Size",_readIndex:!0,initialize:function(t,e){var i=typeof t,n=this.__read,s=0;if("number"===i){var r="number"==typeof e;this._set(t,r?e:t),n&&(s=r?2:1)}else if("undefined"===i||null===t)this._set(0,0),n&&(s=null===t?1:0);else{var a="string"===i?t.split(/[\s,]+/)||[]:t;s=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),s=0)}return n&&(this.__read=s),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 m(this.width,this.height)},toString:function(){var t=c.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=m.read(arguments);return new m(this.width+t.width,this.height+t.height)},subtract:function(){var t=m.read(arguments);return new m(this.width-t.width,this.height-t.height)},multiply:function(){var t=m.read(arguments);return new m(this.width*t.width,this.height*t.height)},divide:function(){var t=m.read(arguments);return new m(this.width/t.width,this.height/t.height)},modulo:function(){var t=m.read(arguments);return new m(this.width%t.width,this.height%t.height)},negate:function(){return new m(-this.width,-this.height)},isZero:function(){var t=d.isZero;return t(this.width)&&t(this.height)},isNaN:function(){return isNaN(this.width)||isNaN(this.height)},statics:{min:function(t,e){return new m(Math.min(t.width,e.width),Math.min(t.height,e.height))},max:function(t,e){return new m(Math.max(t.width,e.width),Math.max(t.height,e.height))},random:function(){return new m(Math.random(),Math.random())}}},r.each(["round","ceil","floor","abs"],function(t){var e=Math[t];this[t]=function(){return new m(e(this.width),e(this.height))}},{})),_=m.extend({initialize:function(t,e,i,n){this._width=t,this._height=e,this._owner=i,this._setter=n},_set:function(t,e,i){return this._width=t,this._height=e,i||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)}}),v=r.extend({_class:"Rectangle",_readIndex:!0,beans:!0,initialize:function(t,e,n,s){var a,o=arguments,l=typeof t;if("number"===l?(this._set(t,e,n,s),a=4):"undefined"===l||null===t?(this._set(0,0,0,0),a=null===t?1:0):1===o.length&&(Array.isArray(t)?(this._set.apply(this,t),a=1):t.x!==i||t.width!==i?(this._set(t.x||0,t.y||0,t.width||0,t.height||0),a=1):t.from===i&&t.to===i&&(this._set(0,0,0,0),r.readSupported(o,this)&&(a=1))),a===i){var h,u,c=f.readNamed(o,"from"),d=r.peek(o),p=c.x,g=c.y;if(d&&d.x!==i||r.hasNamed(o,"to")){var _=f.readNamed(o,"to");h=_.x-p,u=_.y-g,h<0&&(p=_.x,h=-h),u<0&&(g=_.y,u=-u)}else{var v=m.read(o);h=v.width,u=v.height}this._set(p,g,h,u),a=o.__index}var y=o.__filtered;return y&&(this.__filtered=y),this.__read&&(this.__read=a),this},set:"#initialize",_set:function(t,e,i,n){return this.x=t,this.y=e,this.width=i,this.height=n,this},clone:function(){return new v(this.x,this.y,this.width,this.height)},equals:function(t){var e=r.isPlainValue(t)?v.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=c.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?f:g)(this.x,this.y,this,"setPoint")},setPoint:function(){var t=f.read(arguments);this.x=t.x,this.y=t.y},getSize:function(t){return new(t?m:_)(this.width,this.height,this,"setSize")},_fw:1,_fh:1,setSize:function(){var t=m.read(arguments),e=this._sx,i=this._sy,n=t.width,s=t.height;e&&(this.x+=(this.width-n)*e),i&&(this.y+=(this.height-s)*i),this.width=n,this.height=s,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+=(t-this.x)*2*this._sx),this.width=(t-this.x)*2),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+=(t-this.y)*2*this._sy),this.height=(t-this.y)*2),this._sy=.5,this._fh=0},getCenter:function(t){return new(t?f:g)(this.getCenterX(),this.getCenterY(),this,"setCenter")},setCenter:function(){var t=f.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!==i||4===(Array.isArray(t)?t:arguments).length?this._containsRectangle(v.read(arguments)):this._containsPoint(f.read(arguments))},_containsPoint:function(t){var e=t.x,i=t.y;return e>=this.x&&i>=this.y&&e<=this.x+this.width&&i<=this.y+this.height},_containsRectangle:function(t){var e=t.x,i=t.y;return e>=this.x&&i>=this.y&&e+t.width<=this.x+this.width&&i+t.height<=this.y+this.height},intersects:function(){var t=v.read(arguments),e=r.read(arguments)||0;return t.x+t.width>this.x-e&&t.y+t.height>this.y-e&&t.x=4&&(t[1]+=n?"Y":"X");var s=t[n?0:1],r=t[n?1:0],a="get"+s,o="get"+r,l="set"+s,h="set"+r,u="get"+i,c="set"+i;this[u]=function(t){return new(t?f:g)(this[a](),this[o](),this,c)},this[c]=function(){var t=f.read(arguments);this[l](t.x),this[h](t.y)}},{beans:!0})),y=v.extend({initialize:function(t,e,i,n,s,r){this._set(t,e,i,n,!0),this._owner=s,this._setter=r},_set:function(t,e,i,n,s){return this._x=t,this._y=e,this._width=i,this._height=n,s||this._owner[this._setter](this),this}},new function(){var t=v.prototype;return r.each(["x","y","width","height"],function(t){var e=r.capitalize(t),i="_"+t;this["get"+e]=function(){return this[i]},this["set"+e]=function(t){this[i]=t,this._dontNotify||this._owner[this._setter](this)}},r.each(["Point","Size","Center","Left","Top","Right","Bottom","CenterX","CenterY","TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],function(e){var i="set"+e;this[i]=function(){this._dontNotify=!0,t[i].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)}}))}),b=r.extend({_class:"Matrix",initialize:function t(e,i){var n=arguments,s=n.length,r=!0;if(s>=6?this._set.apply(this,n):1===s||2===s?e instanceof t?this._set(e._a,e._b,e._c,e._d,e._tx,e._ty,i):Array.isArray(e)?this._set.apply(this,i?e.concat([i]):e):r=!1:s?r=!1:this.reset(),!r)throw Error("Unsupported matrix parameters");return this},set:"#initialize",_set:function(t,e,i,n,s,r,a){return this._a=t,this._b=e,this._c=i,this._d=n,this._tx=s,this._ty=r,a||this._changed(),this},_serialize:function(t,e){return r.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 b(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=c.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 i=this._owner;return!!i&&(i.transform(null,r.pick(t,!0),e),this.isIdentity())},translate:function(){var t=f.read(arguments),e=t.x,i=t.y;return this._tx+=e*this._a+i*this._c,this._ty+=e*this._b+i*this._d,this._changed(),this},scale:function(){var t=arguments,e=f.read(t),i=f.read(t,0,{readNull:!0});return i&&this.translate(i),this._a*=e.x,this._b*=e.x,this._c*=e.y,this._d*=e.y,i&&this.translate(i.negate()),this._changed(),this},rotate:function(t){t*=Math.PI/180;var e=f.read(arguments,1),i=e.x,n=e.y,s=Math.cos(t),r=Math.sin(t),a=i-i*s+n*r,o=n-i*r-n*s,l=this._a,h=this._b,u=this._c,c=this._d;return this._a=s*l+r*u,this._b=s*h+r*c,this._c=-r*l+s*u,this._d=-r*h+s*c,this._tx+=a*l+o*u,this._ty+=a*h+o*c,this._changed(),this},shear:function(){var t=arguments,e=f.read(t),i=f.read(t,0,{readNull:!0});i&&this.translate(i);var n=this._a,s=this._b;return this._a+=e.y*this._c,this._b+=e.y*this._d,this._c+=e.x*n,this._d+=e.x*s,i&&this.translate(i.negate()),this._changed(),this},skew:function(){var t=arguments,e=f.read(t),i=f.read(t,0,{readNull:!0}),n=Math.PI/180,s=new f(Math.tan(e.x*n),Math.tan(e.y*n));return this.shear(s,i)},append:function(t,e){if(t){var i=this._a,n=this._b,s=this._c,r=this._d,a=t._a,o=t._c,l=t._b,h=t._d,u=t._tx,c=t._ty;this._a=a*i+l*s,this._c=o*i+h*s,this._b=a*n+l*r,this._d=o*n+h*r,this._tx+=u*i+c*s,this._ty+=u*n+c*r,e||this._changed()}return this},prepend:function(t,e){if(t){var i=this._a,n=this._b,s=this._c,r=this._d,a=this._tx,o=this._ty,l=t._a,h=t._c,u=t._b,c=t._d,d=t._tx,p=t._ty;this._a=l*i+h*n,this._c=l*s+h*r,this._b=u*i+c*n,this._d=u*s+c*r,this._tx=l*a+h*o+d,this._ty=u*a+c*o+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,i=this._c,n=this._d,s=this._tx,r=this._ty,a=t*n-e*i,o=null;return a&&!isNaN(a)&&isFinite(s)&&isFinite(r)&&(this._a=n/a,this._b=-e/a,this._c=-i/a,this._d=t/a,this._tx=(i*r-n*s)/a,this._ty=(e*s-t*r)/a,o=this),o},inverted:function(){return this.clone().invert()},concatenate:"#append",preConcatenate:"#prepend",chain:"#appended",_shiftless:function(){return new b(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,i){return arguments.length<3?this._transformPoint(f.read(arguments)):this._transformCoordinates(t,e,i)},_transformPoint:function(t,e,i){var n=t.x,s=t.y;return e||(e=new f),e._set(n*this._a+s*this._c+this._tx,n*this._b+s*this._d+this._ty,i)},_transformCoordinates:function(t,e,i){for(var n=0,s=2*i;nr[l]&&(r[l]=o)}return e||(e=new v),e._set(s[0],s[1],r[0]-s[0],r[1]-s[1],i)},inverseTransform:function(){return this._inverseTransform(f.read(arguments))},_inverseTransform:function(t,e,i){var n=this._a,s=this._b,r=this._c,a=this._d,o=this._tx,l=this._ty,h=n*a-s*r,u=null;if(h&&!isNaN(h)&&isFinite(o)&&isFinite(l)){var c=t.x-this._tx,d=t.y-this._ty;e||(e=new f),u=e._set((c*a-d*r)/h,(d*n-c*s)/h,i)}return u},decompose:function(){var t,e,i,n=this._a,s=this._b,r=this._c,a=this._d,o=n*a-s*r,l=Math.sqrt,h=Math.atan2,u=180/Math.PI;if(0!==n||0!==s){var c=l(n*n+s*s);t=Math.acos(n/c)*(s>0?1:-1),e=[c,o/c],i=[h(n*r+s*a,c*c),0]}else if(0!==r||0!==a){var d=l(r*r+a*a);t=Math.asin(r/d)*(a>0?1:-1),e=[o/d,d],i=[0,h(n*r+s*a,d*d)]}else t=0,i=e=[0,0];return{translation:this.getTranslation(),rotation:t*u,scaling:new f(e),skewing:new f(i[0]*u,i[1]*u)}},getValues:function(){return[this._a,this._b,this._c,this._d,this._tx,this._ty]},getTranslation:function(){return new f(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)}},r.each(["a","b","c","d","tx","ty"],function(t){var e=r.capitalize(t),i="_"+t;this["get"+e]=function(){return this[i]},this["set"+e]=function(t){this[i]=t,this._changed()}},{})),x=r.extend({_class:"Line",initialize:function(t,e,i,n,s){var r=!1;arguments.length>=4?(this._px=t,this._py=e,this._vx=i,this._vy=n,r=s):(this._px=t.x,this._py=t.y,this._vx=e.x,this._vy=e.y,r=i),r||(this._vx-=this._px,this._vy-=this._py)},getPoint:function(){return new f(this._px,this._py)},getVector:function(){return new f(this._vx,this._vy)},getLength:function(){return this.getVector().getLength()},intersect:function(t,e){return x.intersect(this._px,this._py,this._vx,this._vy,t._px,t._py,t._vx,t._vy,!0,e)},getSide:function(t,e){return x.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 x.getSignedDistance(this._px,this._py,this._vx,this._vy,t.x,t.y,!0)},isCollinear:function(t){return f.isCollinear(this._vx,this._vy,t._vx,t._vy)},isOrthogonal:function(t){return f.isOrthogonal(this._vx,this._vy,t._vx,t._vy)},statics:{intersect:function(t,e,i,n,s,r,a,o,l,h){l||(i-=t,n-=e,a-=s,o-=r);var u=i*o-n*a;if(!d.isMachineZero(u)){var c=t-s,p=e-r,g=(a*p-o*c)/u,m=(i*p-n*c)/u;if(h||-1e-12=1?1:g),new f(t+g*i,e+g*n)}},getSide:function(t,e,i,n,s,r,a,o){a||(i-=t,n-=e);var l=s-t,h=l*n-(r-e)*i;return!o&&d.isMachineZero(h)&&(h=(l*i+l*i)/(i*i+n*n))>=0&&h<=1&&(h=0),h<0?-1:h>0?1:0},getSignedDistance:function(t,e,i,n,s,r,a){return a||(i-=t,n-=e),0===i?n>0?s-t:t-s:0===n?i<0?r-e:e-r:((s-t)*n-(r-e)*i)/(n>i?n*Math.sqrt(1+i*i/(n*n)):i*Math.sqrt(1+n*n/(i*i)))},getDistance:function(t,e,i,n,s,r,a){return Math.abs(x.getSignedDistance(t,e,i,n,s,r,a))}}}),w=l.extend({_class:"Project",_list:"projects",_reference:"project",_compactSerialize:!0,initialize:function(t){l.call(this,!0),this._children=[],this._namedChildren={},this._activeLayer=null,this._currentStyle=new H(null,null,this),this._view=W.create(this,t||ts.getCanvas(1,1)),this._selectionItems={},this._selectionCount=0,this._updateVersion=0},_serialize:function(t,e){return r.serialize(this._children,t,!0,e)},_changed:function(t,e){if(1&t){var i=this._view;i&&(i._needsUpdate=!0,!i._requested&&i._autoUpdate&&i.requestUpdate())}var n=this._changes;if(n&&e){var s=this._changesById,r=e._id,a=s[r];a?a.flags|=t:n.push(s[r]={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 C({project:this,insert:!0})},getSymbolDefinitions:function(){var t=[],e={};return this.getItems({class:E,match:function(i){var n=i._definition,s=n._id;return e[s]||(e[s]=!0,t.push(n)),!1}}),t},getSymbols:"getSymbolDefinitions",getSelectedItems:function(){var t=this._selectionItems,e=[];for(var i in t){var n=t[i],s=n._selection;1&s&&n.isInserted()?e.push(n):s||this._updateSelection(n)}return e},_updateSelection:function(t){var e=t._id,i=this._selectionItems;t._selection?i[e]!==t&&(this._selectionCount++,i[e]=t):i[e]===t&&(this._selectionCount--,delete i[e])},selectAll:function(){for(var t=this._children,e=0,i=t.length;e0){t.save(),t.strokeWidth=1;var l=this._selectionItems,h=this._scope.settings.handleSize,u=this._updateVersion;for(var c in l)l[c]._drawSelection(t,e,h,l,u);t.restore()}}}),k=r.extend(a,{statics:{extend:function t(e){return e._serializeFields&&(e._serializeFields=r.set({},this.prototype._serializeFields,e._serializeFields)),t.base.apply(this,arguments)},INSERT:{insert:!0},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 b,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 r.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&&r.isPlainObject(t),s=n&&!0===t.internal,a=this._matrix=new b,o=n&&t.project||tl.project,l=tl.settings;return this._id=s?null:p.get(),this._parent=this._index=null,this._applyMatrix=this._canApplyMatrix&&l.applyMatrix,e&&a.translate(e),a._owner=this,this._style=new H(o._currentStyle,this,o),s||n&&!1==t.insert||!l.insertItems&&!(n&&!0==t.insert)?this._setProject(o):(n&&t.parent||o)._insertItem(i,this,!0),n&&t!==k.NO_INSERT&&t!==k.INSERT&&this.set(t,{internal:!0,insert:!0,project:!0,parent:!0}),n},_serialize:function(t,e){var i={},n=this;function s(s){for(var a in s){var o=n[a];r.equals(o,"leading"===a?1.2*s.fontSize:s[a])||(i[a]=r.serialize(o,t,"data"!==a,e))}}return s(this._serializeFields),this instanceof S||s(this._style._defaults),[this._class,i]},_changed:function(t){var e=this._symbol,n=this._parent||e,s=this._project;8&t&&(this._bounds=this._position=this._decomposed=i),16&t&&(this._globalMatrix=i),n&&72&t&&k._clearBoundsCache(n),2&t&&k._clearBoundsCache(this),s&&s._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 Error("Names consisting only of numbers are not supported.");var e=this._getOwner();if(t&&e){var n=e._children,s=e._namedChildren;(s[t]=s[t]||[]).push(this),t in n||(n[t]=this)}this._name=t||i,this._changed(256)},getStyle:function(){return this._style},setStyle:function(t){this.getStyle().set(t)}},r.each(["locked","visible","blendMode","opacity","guide"],function(t){var e=r.capitalize(t),i="_"+t,n={locked:256,visible:265};this["get"+e]=function(){return this[i]},this["set"+e]=function(e){e!=this[i]&&(this[i]=e,this._changed(n[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 i=this._selection;this.setSelection(e?i|t:i&~t)},isSelected:function(){if(this._selectChildren){for(var t=this._children,e=0,i=t.length;e=0;i--)if(e[i].contains(t))return!0;return!1}return t.isInside(this.getInternalBounds())},isInside:function(){return v.read(arguments).contains(this.getBounds())},_asPathItem:function(){return new R.Rectangle({rectangle:this.getInternalBounds(),matrix:this._matrix,insert:!1})},intersects:function(t,e){return t instanceof k&&this._asPathItem().getIntersections(t._asPathItem(),null,e,!0).length>0}},new function(){function t(){var t=arguments;return this._hitTest(f.read(t),P.getOptions(t))}function e(){var t=arguments,e=f.read(t),i=P.getOptions(t),n=[];return this._hitTest(e,new r({all:n},i)),n}function i(t,e,i,n){var s=this._children;if(s)for(var r=s.length-1;r>=0;r--){var a=s[r],o=a!==n&&a._hitTest(t,e,i);if(o&&!e.all)return o}return null}return w.inject({hitTest:t,hitTestAll:e,_hitTest:i}),{hitTest:t,hitTestAll:e,_hitTestChildren:i}},{_hitTest:function(t,e,i){if(this._locked||!this._visible||this._guide&&!e.guides||this.isEmpty())return null;var n=this._matrix,s=i?i.appended(n):this.getGlobalMatrix().prepend(this.getView()._matrix),a=Math.max(e.tolerance,1e-12),o=e._tolerancePadding=new m(R._getStrokePadding(a,n._shiftless().invert()));if(!(t=n._inverseTransform(t))||!this._children&&!this.getBounds({internal:!0,stroke:!0,handle:!0}).expand(o.multiply(2))._containsPoint(t))return null;var l,h,u=!(e.guides&&!this._guide||e.selected&&!this.isSelected()||e.type&&e.type!==r.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,i){var n=i?l["get"+i]():d.getPosition();if(t.subtract(n).divide(o).length<=1)return new P(e,d,{name:i?r.hyphenate(i):e,point:n})}var g=e.position,_=e.center,v=e.bounds;if(u&&this._parent&&(g||_||v)){if((_||v)&&(l=this.getInternalBounds()),!(h=g&&f("position")||_&&f("center","Center"))&&v)for(var y=["TopLeft","TopRight","BottomLeft","BottomRight","LeftCenter","TopCenter","RightCenter","BottomCenter"],b=0;b<8&&!h;b++)h=f("bounds",y[b]);h=p(h)}return h||(h=this._hitTestChildren(t,e,s)||u&&p(this._hitTestSelf(t,e,s,this.getStrokeScaling()?null:s._shiftless().invert()))||null),h&&h.point&&(h.point=n.transform(h.point)),h},_hitTestSelf:function(t,e){if(e.fill&&this.hasFill()&&this._contains(t))return new P("fill",this)},matches:function(t,e){var i=typeof t;if("object"===i){for(var n in t)if(t.hasOwnProperty(n)&&!this.matches(n,t[n]))return!1;return!0}if("function"===i)return t(this);if("match"===t)return e(this);var s=/^(empty|editable)$/.test(t)?this["is"+r.capitalize(t)]():"type"===t?r.hyphenate(this._class):this[t];if("class"===t){if("function"==typeof e)return this instanceof e;s=this._class}if("function"==typeof e)return!!e(s);if(e){if(e.test)return e.test(s);if(r.isPlainObject(e))return function t(e,i){for(var n in e)if(e.hasOwnProperty(n)){var s=e[n],a=i[n];if(r.isPlainObject(s)&&r.isPlainObject(a)){if(!t(s,a))return!1}else if(!r.equals(s,a))return!1}return!0}(e,s)}return r.equals(s,e)},getItems:function(t){return k._getItems(this,t,this._matrix)},getItem:function(t){return k._getItems(this,t,this._matrix,null,!0)[0]||null},statics:{_getItems:function t(e,i,n,s,a){if(!s){var o="object"==typeof i&&i,l=o&&o.overlapping,h=o&&o.inside,u=l||h,c=u&&v.read([u]);s={items:[],recursive:o&&!1!==o.recursive,inside:!!h,overlapping:!!l,rect:c,path:l&&new R.Rectangle({rectangle:c,insert:!1})},o&&(i=r.filter({},i,{recursive:!0,inside:!0,overlapping:!0}))}var d=e._children,p=s.items,c=s.rect;n=c&&(n||new b);for(var f=0,g=d&&d.length;f0))break}return p}}},{importJSON:function(t){var e=r.importJSON(t,this);return e!==this?this.addChild(e):e},addChild:function(t){return this.insertChild(i,t)},insertChild:function(t,e){var i=e?this.insertChildren(t,[e]):null;return i&&i[0]},addChildren:function(t){return this.insertChildren(this._children.length,t)},insertChildren:function(t,e){var i=this._children;if(i&&e&&e.length>0){e=r.slice(e);for(var n={},s=e.length-1;s>=0;s--){var a=e[s],o=a&&a._id;!a||n[o]?e.splice(s,1):(a._remove(!1,!0),n[o]=!0)}r.splice(i,e,t,0);for(var l=this._project,h=l._changes,s=0,u=e.length;s=0;n--)i[n]._remove(!0,!1);return i.length>0&&this._changed(11),i},clear:"#removeChildren",reverseChildren:function(){if(this._children){this._children.reverse();for(var t=0,e=this._children.length;t0},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}},r.each(["rotate","scale","shear","skew"],function(t){var e="rotate"===t;this[t]=function(){var i=arguments,n=(e?r:f).read(i),s=f.read(i,0,{readNull:!0});return this.transform(new b()[t](n,s||this.getPosition(!0)))}},{translate:function(){var t=new b;return this.transform(t.translate.apply(t,arguments))},transform:function(t,e,i){var n=this._matrix,s=t&&!t.isIdentity(),r=i&&this._canApplyMatrix||this._applyMatrix&&(s||!n.isIdentity()||e&&this._children);if(!s&&!r)return this;if(s){!t.isInvertible()&&n.isInvertible()&&(n._backup=n.getValues()),n.prepend(t,!0);var a=this._style,o=a.getFillColor(!0),l=a.getStrokeColor(!0);o&&o.transform(t),l&&l.transform(t)}if(r&&(r=this._transformContent(n,e,i))){var h=this._pivot;h&&n._transformPoint(h,h,!0),n.reset(!0),i&&this._canApplyMatrix&&(this._applyMatrix=!0)}var u=this._bounds,c=this._position;(s||r)&&this._changed(25);var d=s&&u&&t.decompose();if(d&&d.skewing.isZero()&&d.rotation%90==0){for(var p in u){var f=u[p];if(f.nonscaling)delete u[p];else if(r||!f.internal){var g=f.rect;t._transformBounds(g,g)}}this._bounds=u;var m=u[this._getBoundsCacheKey(this._boundsOptions||{})];m&&(this._position=this._getPositionFromBounds(m.rect))}else s&&c&&this._pivot&&(this._position=t._transformPoint(c,c));return this},_transformContent:function(t,e,i){var n=this._children;if(n){for(var s=0,r=n.length;ss:n1&&r<4?-1:1,r>2?-1:1),o=a.multiply(s),l=o.subtract(a.multiply(n));if(new v(i?o.add(a.multiply(i)):o,l).contains(e))return{point:l,quadrant:r}}}function e(t,e,i,n){var s=t.divide(e);return(!n||s.isInQuadrant(n))&&s.subtract(s.normalize()).multiply(e).divide(i).length<=1}return{_contains:function e(i){if("rectangle"!==this._type)return .5>=i.divide(this.size).getLength();var n=t(this,i);return n?1>=i.subtract(n.point).divide(this._radius).getLength():e.base.call(this,i)},_hitTestSelf:function i(n,s,r,a){var o=!1,l=this._style,h=s.stroke&&l.hasStroke(),u=s.fill&&l.hasFill();if(h||u){var c=this._type,d=this._radius,p=h?l.getStrokeWidth()/2:0,f=s._tolerancePadding.add(R._getStrokePadding(p,!l.getStrokeScaling()&&a));if("rectangle"===c){var g=f.multiply(2),m=t(this,n,g);if(m)o=e(n.subtract(m.point),d,f,m.quadrant);else{var _=new v(this._size).setCenter(0,0),y=_.expand(g),b=_.expand(g.negate());o=y._containsPoint(n)&&!b._containsPoint(n)}}else o=e(n,d,f)}return o?new P(h?"stroke":"fill",this):i.base.apply(this,arguments)}}},{statics:new function(){function t(t,e,i,n,s){var a=r.create(I.prototype);return a._type=t,a._size=i,a._radius=n,a._initialize(r.getNamed(s),e),a}return{Circle:function(){var e=arguments,i=f.readNamed(e,"center"),n=r.readNamed(e,"radius");return t("circle",i,new m(2*n),n,e)},Rectangle:function(){var e=arguments,i=v.readNamed(e,"rectangle"),n=m.min(m.readNamed(e,"radius"),i.getSize(!0).divide(2));return t("rectangle",i.getCenter(!0),i.getSize(!0),n,e)},Ellipse:function(){var e=arguments,i=I._readEllipse(e),n=i.radius;return t("ellipse",i.center,n.multiply(2),n,e)},_readEllipse:function(t){var e,i;if(r.hasNamed(t,"radius"))e=f.readNamed(t,"center"),i=m.readNamed(t,"radius");else{var n=v.readNamed(t,"rectangle");e=n.getCenter(!0),i=n.getSize(!0).divide(2)}return{center:e,radius:i}}}}}),T=k.extend({_class:"Raster",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!1,handle:!1},_serializeFields:{crossOrigin:null,source:null},_prioritize:["crossOrigin"],_smoothing:"low",beans:!0,initialize:function(t,e){if(!this._initialize(t,e!==i&&f.read(arguments))){var n,r=typeof t,a="string"===r?s.getElementById(t):"object"===r?t:null;if(a&&a!==k.NO_INSERT){if(a.getContext||null!=a.naturalHeight)n=a;else if(a){var o=m.read(arguments);o.isZero()||(n=ts.getCanvas(o))}}n?this.setImage(n):this.setSource(t)}this._size||(this._size=new m,this._loaded=!1)},_equals:function(t){return this.getSource()===t.getSource()},copyContent:function(t){var e=t._image,i=t._canvas;if(e)this._setImage(e);else if(i){var n=ts.getCanvas(t._size);n.getContext("2d").drawImage(i,0,0),this._setImage(n)}this._crossOrigin=t._crossOrigin},getSize:function(){var t=this._size;return new _(t?t.width:0,t?t.height:0,this,"setSize")},setSize:function(t,e){var i=m.read(arguments);if(i.equals(this._size))e&&this.clear();else if(i.width>0&&i.height>0){var n=!e&&this.getElement();this._setImage(ts.getCanvas(i)),n&&this.getContext(!0).drawImage(n,0,0,i.width,i.height)}else this._canvas&&ts.release(this._canvas),this._size=i.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 f(0,0).transform(t),i=new f(1,0).transform(t).subtract(e),n=new f(0,1).transform(t).subtract(e);return new m(72/i.getLength(),72/n.getLength())},getPpi:"#getResolution",getImage:function(){return this._image},setImage:function(t){var e=this;function i(t){var i=e.getView(),n=t&&t.type||"load";i&&e.responds(n)&&(tl=i._scope,e.emit(n,new J(t)))}this._setImage(t),this._loaded?setTimeout(i,0):t&&$.add(t,{load:function(n){e._setImage(t),i(n)},error:i})},_setImage:function(t){this._canvas&&ts.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 m(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=ts.getContext(this._size);try{this._image&&t.drawImage(this._image,0,0),this._canvas=t.canvas}catch(e){ts.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 i=new e.Image,n=this._crossOrigin;n&&(i.crossOrigin=n),t&&(i.src=t),this.setImage(i)},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="string"==typeof t?t:t?"low":"off",this._changed(257)},getElement:function(){return this._canvas||this._loaded&&this._image}},{beans:!1,getSubCanvas:function(){var t=v.read(arguments),e=ts.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=v.read(arguments),e=new T(k.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 i=this.getCanvas();return i?i.toDataURL.apply(i,arguments):null},drawImage:function(t){var e=f.read(arguments,1);this.getContext(!0).drawImage(t,e.x,e.y)},getAverageColor:function(t){if(t?t instanceof z?(i=t,e=t.getBounds()):"object"==typeof t&&("width"in t?e=new v(t):"x"in t&&(e=new v(t.x-.5,t.y-.5,1,1))):e=this.getBounds(),!e)return null;var e,i,n=Math.min(e.width,32),s=Math.min(e.height,32),a=T._sampleContext;a?a.clearRect(0,0,33,33):a=T._sampleContext=ts.getContext(new m(32)),a.save();var o=new b().scale(n/e.width,s/e.height).translate(-e.x,-e.y);o.applyToContext(a),i&&i.draw(a,new r({clip:!0,matrices:[o]})),this._matrix.applyToContext(a);var l=this.getElement(),h=this._size;l&&a.drawImage(l,-h.width/2,-h.height/2),a.restore();for(var u=a.getImageData(.5,.5,Math.ceil(n),Math.ceil(s)).data,c=[0,0,0],d=0,p=0,f=u.length;p0&&n.height>0){t.globalAlpha=d.clamp(this._opacity,0,1),this._setStyles(t,e,i);var s=this._smoothing,r="off"===s;G.setPrefixed(t,r?"imageSmoothingEnabled":"imageSmoothingQuality",!r&&s),t.drawImage(n,-this._size.width/2,-this._size.height/2)}},_canComposite:function(){return!0}}),E=k.extend({_class:"SymbolItem",_applyMatrix:!1,_canApplyMatrix:!1,_boundsOptions:{stroke:!0},_serializeFields:{symbol:null},initialize:function(t,e){this._initialize(t,e!==i&&f.read(arguments,1))||this.setDefinition(t instanceof A?t:new A(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 i=this._definition._item;return i._getCachedBounds(i._matrix.prepended(t),e)},_hitTestSelf:function(t,e,i){var n=e.extend({all:!1}),s=this._definition._item._hitTest(t,n,i);return s&&(s.item=this),s},_draw:function(t,e){this._definition._item.draw(t,e)}}),A=r.extend({_class:"SymbolDefinition",initialize:function(t,e){this._id=p.get(),this.project=tl.project,t&&this.setItem(t,e)},_serialize:function(t,e){return e.add(this,function(){return r.serialize([this._class,this._item],t,!1,e)})},_changed:function(t){8&t&&k._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 f),t._symbol=this,this._changed(9)},getDefinition:"#getItem",setDefinition:"#setItem",place:function(t){return new E(this,t)},clone:function(){return new A(this._item.clone(!1))},equals:function(t){return t===this||t&&this._item.equals(t._item)||!1}}),P=r.extend({_class:"HitResult",initialize:function(t,e,i){this.type=t,this.item=e,i&&this.inject(i)},statics:{getOptions:function(t){var e=t&&r.read(t);return new r({type:null,tolerance:tl.settings.hitTolerance,fill:!e,stroke:!e,segments:!e,handles:!1,ends:!1,position:!1,center:!1,bounds:!1,guides:!1,selected:!1},e)}}}),O=r.extend({_class:"Segment",beans:!0,_selection:0,initialize:function(t,e,n,s,r,a){var o,l,h,u,c=arguments.length;c>0&&(null==t||"object"==typeof t?1===c&&t&&"point"in t?(o=t.point,l=t.handleIn,h=t.handleOut,u=t.selection):(o=t,l=e,h=n,u=s):(o=[t,e],l=n!==i?[n,s]:null,h=r!==i?[r,a]:null)),new M(o,this,"_point"),new M(l,this,"_handleIn"),new M(h,this,"_handleOut"),u&&this.setSelection(u)},_serialize:function(t,e){var i=this._point,n=this._selection,s=n||this.hasHandles()?[i,this._handleIn,this._handleOut]:i;return n&&s.push(n),r.serialize(s,t,!0,e)},_changed:function(t){var e=this._path;if(e){var i,n=e._curves,s=this._index;n&&((!t||t===this._point||t===this._handleIn)&&(i=s>0?n[s-1]:e._closed?n[n.length-1]:null)&&i._changed(),(!t||t===this._point||t===this._handleOut)&&(i=n[s])&&i._changed()),e._changed(41)}},getPoint:function(){return this._point},setPoint:function(){this._point.set(f.read(arguments))},getHandleIn:function(){return this._handleIn},setHandleIn:function(){this._handleIn.set(f.read(arguments))},getHandleOut:function(){return this._handleOut},setHandleOut:function(){this._handleOut.set(f.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,i=this._path;this._selection=t=t||0,i&&t!==e&&(i._updateSelection(this,e,t),i._changed(257))},_changeSelection:function(t,e){var i=this._selection;this.setSelection(e?i|t:i&~t)},isSelected:function(){return!!(7&this._selection)},setSelected:function(t){this._changeSelection(7,t)},getIndex:function(){return this._index!==i?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 L(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 s=t||{},r=s.type,a=s.factor,o=this.getPrevious(),l=this.getNext(),h=(o||this)._point,u=this._point,c=(l||this)._point,d=h.getDistance(u),p=u.getDistance(c);if(r&&"catmull-rom"!==r){if("geometric"===r){if(o&&l){var g=h.subtract(c),m=a===i?.4:a,_=m*d/(d+p);e||this.setHandleIn(g.multiply(_)),n||this.setHandleOut(g.multiply(_-m))}}else throw Error("Smoothing method '"+r+"' not supported.")}else{var v=a===i?.5:a,y=Math.pow(d,v),b=y*y,x=Math.pow(p,v),w=x*x;if(!e&&o){var k=2*w+3*x*y+b,S=3*x*(x+y);this.setHandleIn(0!==S?new f((w*h._x+k*u._x-b*c._x)/S-u._x,(w*h._y+k*u._y-b*c._y)/S-u._y):new f)}if(!n&&l){var k=2*b+3*y*x+w,S=3*y*(y+x);this.setHandleOut(0!==S?new f((b*c._x+k*u._x-w*h._x)/S-u._x,(b*c._y+k*u._y-w*h._y)/S-u._y):new f)}}},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,i=t.clone();t.set(e),e.set(i)},reversed:function(){return new O(this._point,this._handleOut,this._handleIn)},remove:function(){return!!this._path&&!!this._path.removeSegment(this._index)},clone:function(){return new O(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,Array(6),!0),this._changed()},interpolate:function(t,e,i){var n=1-i,s=t._point,r=e._point,a=t._handleIn,o=e._handleIn,l=e._handleOut,h=t._handleOut;this._point._set(n*s._x+i*r._x,n*s._y+i*r._y,!0),this._handleIn._set(n*a._x+i*o._x,n*a._y+i*o._y,!0),this._handleOut._set(n*h._x+i*l._x,n*h._y+i*l._y,!0),this._changed()},_transformCoordinates:function(t,e,i){var n=this._point,s=i&&this._handleIn.isZero()?null:this._handleIn,r=i&&this._handleOut.isZero()?null:this._handleOut,a=n._x,o=n._y,l=2;return e[0]=a,e[1]=o,s&&(e[l++]=s._x+a,e[l++]=s._y+o),r&&(e[l++]=r._x+a,e[l++]=r._y+o),t&&(t._transformCoordinates(e,e,l/2),a=e[0],o=e[1],i?(n._x=a,n._y=o,l=2,s&&(s._x=e[l++]-a,s._y=e[l++]-o),r&&(r._x=e[l++]-a,r._y=e[l++]-o)):(s||(e[l++]=a,e[l++]=o),r||(e[l++]=a,e[l++]=o))),e}}),M=f.extend({initialize:function(t,e,n){var s,r,a;if(t){if((s=t[0])!==i)r=t[1];else{var o=t;(s=o.x)===i&&(o=f.read(arguments),s=o.x),r=o.y,a=o.selected}}else s=r=0;this._x=s,this._y=r,this._owner=e,e[n]=this,a&&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=d.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}}),N=r.extend({_class:"Curve",beans:!0,initialize:function(t,e,i,n,s,r,a,o){var l,h,u,c,d,p,f=arguments.length;3===f?(this._path=t,l=e,h=i):f?1===f?"segment1"in t?(l=new O(t.segment1),h=new O(t.segment2)):"point1"in t?(u=t.point1,d=t.handle1,p=t.handle2,c=t.point2):Array.isArray(t)&&(u=[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?(l=new O(t),h=new O(e)):4===f?(u=t,d=e,p=i,c=n):8===f&&(u=[t,e],c=[a,o],d=[i-t,n-e],p=[s-a,r-o]):(l=new O,h=new O),this._segment1=l||new O(u,null,d),this._segment2=h||new O(c,p,null)},_serialize:function(t,e){return r.serialize(this.hasHandles()?[this.getPoint1(),this.getHandle1(),this.getHandle2(),this.getPoint2()]:[this.getPoint1(),this.getPoint2()],t,!0,e)},_changed:function(){this._length=this._bounds=i},clone:function(){return new N(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 N.classify(this.getValues())},remove:function(){var t=!1;if(this._path){var e=this._segment2,i=e._handleOut;(t=e.remove())&&this._segment1._handleOut.set(i)}return t},getPoint1:function(){return this._segment1._point},setPoint1:function(){this._segment1._point.set(f.read(arguments))},getPoint2:function(){return this._segment2._point},setPoint2:function(){this._segment2._point.set(f.read(arguments))},getHandle1:function(){return this._segment1._handleOut},setHandle1:function(){this._segment1._handleOut.set(f.read(arguments))},getHandle2:function(){return this._segment2._handleIn},setHandle2:function(){this._segment2._handleIn.set(f.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 N.getValues(this._segment1,this._segment2,t)},getPoints:function(){for(var t=this.getValues(),e=[],i=0;i<8;i+=2)e.push(new f(t[i],t[i+1]));return e}},{getLength:function(){return null==this._length&&(this._length=N.getLength(this.getValues(),0,1)),this._length},getArea:function(){return N.getArea(this.getValues())},getLine:function(){return new x(this._segment1._point,this._segment2._point)},getPart:function(t,e){return new N(N.getPart(this.getValues(),t,e))},getPartLength:function(t,e){return N.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 i=null;if(t>=1e-8&&t<=.99999999){var n=N.subdivide(this.getValues(),t),s=n[0],r=n[1],a=e||this.hasHandles(),o=this._segment1,l=this._segment2,h=this._path;a&&(o._handleOut._set(s[2]-s[0],s[3]-s[1]),l._handleIn._set(r[4]-r[6],r[5]-r[7]));var u=s[6],c=s[7],d=new O(new f(u,c),a&&new f(s[4]-u,s[5]-c),a&&new f(r[2]-u,r[3]-c));h?(h.insert(o._index+1,d),i=this.getNext()):(this._segment2=d,this._changed(),i=new N(d,l))}return i},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===i?.5:e?t:this.getTimeAt(t))},split:function(t,e){return this.splitAtTime(t===i?.5:e?t:this.getTimeAt(t))},reversed:function(){return new N(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,i,n){var s=t._point,r=t._handleOut,a=e._handleIn,o=e._point,l=s.x,h=s.y,u=o.x,c=o.y,d=n?[l,h,l,h,u,c,u,c]:[l,h,l+r._x,h+r._y,u+a._x,c+a._y,u,c];return i&&i._transformCoordinates(d,d,4),d},subdivide:function(t,e){var n=t[0],s=t[1],r=t[2],a=t[3],o=t[4],l=t[5],h=t[6],u=t[7];e===i&&(e=.5);var c=1-e,d=c*n+e*r,p=c*s+e*a,f=c*r+e*o,g=c*a+e*l,m=c*o+e*h,_=c*l+e*u,v=c*d+e*f,y=c*p+e*g,b=c*f+e*m,x=c*g+e*_,w=c*v+e*b,k=c*y+e*x;return[[n,s,d,p,v,y,w,k],[w,k,b,x,m,_,h,u]]},getMonoCurves:function(t,e){var i=[],n=e?0:1,s=t[n+0],r=t[n+2],a=t[n+4],o=t[n+6];if(s>=r==r>=a&&r>=a==a>=o||N.isStraight(t))i.push(t);else{var l=[],h=d.solveQuadratic(3*(r-a)-s+o,2*(s+a)-4*r,r-s,l,1e-8,.99999999);if(h){l.sort();var u=l[0],c=N.subdivide(t,u);i.push(c[0]),h>1&&(u=(l[1]-u)/(1-u),c=N.subdivide(c[1],u),i.push(c[0])),i.push(c[1])}else i.push(t)}return i},solveCubic:function(t,e,i,n,s,r){var a=t[e],o=t[e+2],l=t[e+4],h=t[e+6],u=0;if(!(ai&&h>i&&o>i&&l>i)){var c=3*(o-a),p=3*(l-o)-c;u=d.solveCubic(h-a-c-p,p,c,a-i,n,s,r)}return u},getTimeOf:function(t,e){var i=new f(t[0],t[1]),n=new f(t[6],t[7]);if(null===(e.isClose(i,1e-12)?0:e.isClose(n,1e-12)?1:null))for(var s=[e.x,e.y],r=[],a=0;a<2;a++)for(var o=N.solveCubic(t,a,s[a],r,0,1),l=0;l.999999999999?1:N.getTimeOf(t,new f(i+h*a,n+h*o))}var u=1/0,c=0;function d(i){if(i>=0&&i<=1){var n=e.getDistance(N.getPoint(t,i),!0);if(n1e-8;)d(c-g)||d(c+g)||(g/=2);return c},getPart:function(t,e,i){var n=e>i;if(n){var s=e;e=i,i=s}return e>0&&(t=N.subdivide(t,e)[1]),i<1&&(t=N.subdivide(t,(i-e)/(1-e))[0]),n?[t[6],t[7],t[4],t[5],t[2],t[3],t[0],t[1]]:t},isFlatEnough:function(t,e){var i=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],h=t[7],u=3*s-2*i-l,c=3*r-2*n-h,d=3*a-2*l-i,p=3*o-2*h-n;return Math.max(u*u,d*d)+Math.max(c*c,p*p)<=16*e*e},getArea:function(t){var e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],a=t[5],o=t[6],l=t[7];return 3*((l-i)*(n+r)-(o-e)*(s+a)+s*(e-r)-n*(i-a)+l*(r+e/3)-o*(a+i/3))/20},getBounds:function(t){for(var e=t.slice(0,2),i=e.slice(),n=[0,0],s=0;s<2;s++)N._addBounds(t[s],t[s+2],t[s+4],t[s+6],s,0,e,i,n);return new v(e[0],e[1],i[0]-e[0],i[1]-e[1])},_addBounds:function(t,e,i,n,s,r,a,o,l){function h(t,e){var i=t-e,n=t+e;io[s]&&(o[s]=n)}r/=2;var u=a[s]+r,c=o[s]-r;if(tc||e>c||i>c||n>c){if(er.getDistance(t.add(e))&&1e-7>r.getDistance(n.add(i))){var a=s.dot(s),o=s.dot(e)/a,l=s.dot(i)/a;return o>=0&&o<=1&&l<=0&&l>=-1}}return!1},isLinear:function(t,e,i,n){var s=n.subtract(t).divide(3);return e.equals(s)&&i.negate().equals(s)}},function(t,e){this[e]=function(e){var i=this._segment1,n=this._segment2;return t(i._point,i._handleOut,n._handleIn,n._point,e)},this.statics[e]=function(e,i){var n=e[0],s=e[1],r=e[6],a=e[7];return t(new f(n,s),new f(e[2]-n,e[3]-s),new f(e[4]-r,e[5]-a),new f(r,a),i)}},{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()&&1e-8>Math.abs(this.getTangentAtTime(.5).y)},isVertical:function(){return this.isStraight()&&1e-8>Math.abs(this.getTangentAtTime(.5).x)}}),{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 L(this,t):null},getTimeAt:function(t,e){return N.getTimeAt(this.getValues(),t,e)},getParameterAt:"#getTimeAt",getTimesWithTangent:function(){var t=f.read(arguments);return t.isZero()?[]:N.getTimesWithTangent(this.getValues(),t)},getOffsetAtTime:function(t){return this.getPartLength(0,t)},getLocationOf:function(){return this.getLocationAtTime(this.getTimeOf(f.read(arguments)))},getOffsetOf:function(){var t=this.getLocationOf.apply(this,arguments);return t?t.getOffset():null},getTimeOf:function(){return N.getTimeOf(this.getValues(),f.read(arguments))},getParameterOf:"#getTimeOf",getNearestLocation:function(){var t=f.read(arguments),e=this.getValues(),i=N.getNearestTime(e,t),n=N.getPoint(e,i);return new L(this,i,n,null,t.getDistance(n))},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 r.each(t,function(t){this[t+"At"]=function(e,i){var n=this.getValues();return N[t](n,i?e:N.getTimeAt(n,e))},this[t+"AtTime"]=function(e){return N[t](this.getValues(),e)}},{statics:{_evaluateMethods:t}})},new function(){function t(t){var e=t[0],i=t[1],n=t[2],s=t[3],r=t[4],a=t[5],o=t[6],l=t[7],h=9*(n-r)+3*(o-e),u=6*(e+r)-12*n,c=3*(n-e),d=9*(s-a)+3*(l-i),p=6*(i+a)-12*s,f=3*(s-i);return function(t){var e=(h*t+u)*t+c,i=(d*t+p)*t+f;return Math.sqrt(e*e+i*i)}}function e(t,e){return Math.max(2,Math.min(16,Math.ceil(32*Math.abs(e-t))))}function n(t,e,i,n){if(null==e||e<0||e>1)return null;var s=t[0],r=t[1],a=t[2],o=t[3],l=t[4],h=t[5],u=t[6],c=t[7],p=d.isZero;p(a-s)&&p(o-r)&&(a=s,o=r),p(l-u)&&p(h-c)&&(l=u,h=c);var g,m,_=3*(a-s),v=3*(l-a)-_,y=u-s-_-v,b=3*(o-r),x=3*(h-o)-b,w=c-r-b-x;if(0===i)g=0===e?s:1===e?u:((y*e+v)*e+_)*e+s,m=0===e?r:1===e?c:((w*e+x)*e+b)*e+r;else{if(e<1e-8?(g=_,m=b):e>.99999999?(g=3*(u-l),m=3*(c-h)):(g=(3*y*e+2*v)*e+_,m=(3*w*e+2*x)*e+b),n){0===g&&0===m&&(e<1e-8||e>.99999999)&&(g=l-a,m=h-o);var k=Math.sqrt(g*g+m*m);k&&(g/=k,m/=k)}if(3===i){var l=6*y*e+2*v,h=6*w*e+2*x,S=Math.pow(g*g+m*m,1.5);g=0!==S?(g*h-m*l)/S:0,m=0}}return 2===i?new f(m,-g):new f(g,m)}return{statics:{classify:function(t){var e=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],h=t[7],u=s*(n-h)+r*(l-e)+e*h-n*l,c=3*(a*(r-n)+o*(e-s)+s*n-r*e),p=c-u,f=p-u+(e*(h-o)+n*(a-l)+l*o-h*a),g=Math.sqrt(f*f+p*p+c*c),m=0!==g?1/g:0,_=d.isZero,v="serpentine";function y(t,e,n){var s=e!==i,r=s&&e>0&&e<1,a=s&&n>0&&n<1;return!s||(r||a)&&("loop"!==t||r&&a)||(t="arch",r=a=!1),{type:t,roots:r||a?r&&a?e0?Math.sqrt(b/3):Math.sqrt(-b),w=2*f;return y(b>0?v:"loop",(p+x)/w,(p-x)/w)},getLength:function(n,s,r,a){if(s===i&&(s=0),r===i&&(r=1),N.isStraight(n)){var o=n;r<1&&(o=N.subdivide(o,r)[0],s/=r),s>0&&(o=N.subdivide(o,s)[1]);var l=o[6]-o[0],h=o[7]-o[1];return Math.sqrt(l*l+h*h)}return d.integrate(a||t(n),s,r,e(s,r))},getTimeAt:function(n,s,r){if(r===i&&(r=s<0?1:0),0===s)return r;var a=Math.abs,o=s>0,l=o?r:0,h=o?1:r,u=t(n),c=N.getLength(n,l,h,u),p=a(s)-c;if(1e-12>a(p))return o?h:l;if(p>1e-12)return null;var f=s/c,g=0;return d.findRoot(function(t){return g+=d.integrate(u,r,t,e(r,t)),r=t,g-s},u,r+f,l,h,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],i=t[1],n=t[2],s=t[3],r=t[4],a=t[5],o=t[6],l=t[7],h=-e+3*n-3*r+o,u=3*e-6*n+3*r,c=-3*e+3*n,p=-i+3*s-3*a+l,f=3*i-6*s+3*a,g=-3*i+3*s,m=[];return d.solveCubic(9*(h*h+p*p),9*(h*u+f*p),2*(u*u+f*f)+3*(c*h+g*p),c*u+f*g,m,1e-8,.99999999),m.sort()}}}},new function(){function t(t,e,i,n,s,r,a){var o=!a&&i.getPrevious()===s,l=!a&&i!==s&&i.getNext()===s;if(null!==n&&n>=(o?1e-8:0)&&n<=(l?.99999999:1)&&null!==r&&r>=(l?1e-8:0)&&r<=(o?.99999999:1)){var h=new L(i,n,null,a),u=new L(s,r,null,a);h._intersection=u,u._intersection=h,(!e||e(h))&&L.insert(t,h,!0)}}function e(t,e,n,s){return t[0][1]s?i(e,!1,s):t[0][0]}function i(t,e,i){for(var n=t[0][0],s=t[0][1],r=1,a=t.length;r=i:l<=i)return l===i?o:n+(i-s)*(o-n)/(l-s);n=o,s=l}return null}function n(t,e,i,n,s){var r=d.isZero;if(r(n)&&r(s)){var a=N.getTimeOf(t,new f(e,i));return null===a?[]:[a]}for(var o=Math.atan2(-s,n),l=Math.sin(o),h=Math.cos(o),u=[],c=[],p=0;p<8;p+=2){var g=t[p]-e,m=t[p+1]-i;u.push(g*h-m*l,g*l+m*h)}return N.solveCubic(u,1,0,c,0,1),c}function s(i,s,r,o,l,h){var u=Math.min,c=Math.max;if(c(i[0],i[2],i[4],i[6])+1e-12>u(s[0],s[2],s[4],s[6])&&u(i[0],i[2],i[4],i[6])-1e-12u(s[1],s[3],s[5],s[7])&&u(i[1],i[3],i[5],i[7])-1e-12=4096||++u>=40)return c;var m,_,v=s[0],y=s[1],b=s[6],w=s[7],k=x.getSignedDistance,S=k(v,y,b,w,s[2],s[3]),C=k(v,y,b,w,s[4],s[5]),I=S*C>0?3/4:4/9,T=I*Math.min(0,S,C),E=I*Math.max(0,S,C),A=k(v,y,b,w,n[0],n[1]),P=k(v,y,b,w,n[2],n[3]),O=k(v,y,b,w,n[4],n[5]),M=k(v,y,b,w,n[6],n[7]),L=function(t,e,i,n){var s,r=[0,t],a=[1/3,e],o=[2/3,i],l=[1,n],h=e-(2*t+n)/3,u=i-(t+2*n)/3;if(h*u<0)s=[[r,a,l],[r,o,l]];else{var c=h/u;s=[c>=2?[r,a,l]:c<=.5?[r,o,l]:[r,a,o,l],[r,l]]}return 0>(h||u)?s.reverse():s}(A,P,O,M),z=L[0],R=L[1];if(0===S&&0===C&&0===A&&0===P&&0===O&&0===M||null==(m=e(z,R,T,E))||null==(_=e(z.reverse(),R.reverse(),T,E)))return c;var B=d+(p-d)*m,D=d+(p-d)*_;if(1e-9>Math.max(g-f,D-B)){var V=(B+D)/2,F=(f+g)/2;t(o,l,h?a:r,h?F:V,h?r:a,h?V:F)}else{n=N.getPart(n,m,_);var j=g-f;if(_-m>.8){if(D-B>j){var U=N.subdivide(n,.5),V=(B+D)/2;c=i(s,U[0],a,r,o,l,!h,u,c,f,g,B,V),c=i(s,U[1],a,r,o,l,!h,u,c,f,g,V,D)}else{var U=N.subdivide(s,.5),F=(f+g)/2;c=i(U[0],n,a,r,o,l,!h,u,c,f,F,B,D),c=i(U[1],n,a,r,o,l,!h,u,c,F,g,B,D)}}else c=0===j||j>=1e-9?i(s,n,a,r,o,l,!h,u,c,f,g,B,D):i(n,s,r,a,o,l,h,u,c,B,D,f,g)}return c})(y?s:i,y?i:s,y?o:r,y?r:o,l,h,y,0,0,0,1,0,1),!v||l.length===b)for(var p=0;p<4;p++){var w=p>>1,k=1&p,S=6*w,C=6*k,I=new f(i[S],i[S+1]),T=new f(s[C],s[C+1]);I.isClose(T,1e-12)&&t(l,h,r,w,o,k)}}}return l}function r(e,i,n,s){var r=N.classify(e);if("loop"===r.type){var a=r.roots;t(n,s,i,a[0],i,a[1])}return n}function a(t,e){function i(t){var e=t[6]-t[0],i=t[7]-t[1];return e*e+i*i}var n=Math.abs,s=x.getDistance,r=N.isStraight(t),a=N.isStraight(e),o=r&&a,l=i(t)s(c,d,p,g,u[0],u[1],!0)&&1e-7>s(c,d,p,g,u[6],u[7],!0))!o&&1e-7>s(c,d,p,g,h[2],h[3],!0)&&1e-7>s(c,d,p,g,h[4],h[5],!0)&&1e-7>s(c,d,p,g,u[2],u[3],!0)&&1e-7>s(c,d,p,g,u[4],u[5],!0)&&(r=a=o=!0);else if(o)return null;if(r^a)return null;for(var m=[t,e],_=[],v=0;v<4&&_.length<2;v++){var y=1&v,b=1^y,w=v>>1,k=N.getTimeOf(m[y],new f(m[b][w?6:0],m[b][w?7:1]));if(null!=k){var S=y?[w,k]:[k,w];(!_.length||n(S[0]-_[0][0])>1e-8&&n(S[1]-_[0][1])>1e-8)&&_.push(S)}if(v>2&&!_.length)break}if(2!==_.length)_=null;else if(!o){var C=N.getPart(t,_[0][0],_[1][0]),I=N.getPart(e,_[0][1],_[1][1]);(n(I[2]-C[2])>1e-7||n(I[3]-C[3])>1e-7||n(I[4]-C[4])>1e-7||n(I[5]-C[5])>1e-7)&&(_=null)}return _}return{getIntersections:function(t){var e=this.getValues(),i=t&&t!==this&&t.getValues();return i?s(e,i,this,t,[]):r(e,this,[])},statics:{getOverlaps:a,getIntersections:function(t,e,i,n,a,o){var l=!e;l&&(e=t);for(var u=t.length,c=e.length,d=Array(u),p=l?d:Array(c),f=[],g=0;g_){var k=e[w];s(y,p[w],v,k,f,i)}}}return f},getCurveLineIntersections:n,getTimesWithTangent:function(t,e){var i=t[0],n=t[1],s=t[2],r=t[3],a=t[4],o=t[5],l=t[6],h=t[7],u=e.normalize(),c=u.x,p=u.y,f=3*l-9*a+9*s-3*i,g=3*h-9*o+9*r-3*n,m=6*a-12*s+6*i,_=6*o-12*r+6*n,v=3*s-3*i,y=3*r-3*n,b=2*f*p-2*g*c,x=[];if(Math.abs(b)=0&&w<=1&&x.push(w)}}else{var k=(m*m-4*f*v)*p*p+(-2*m*_+4*g*v+4*f*y)*c*p+(_*_-4*g*y)*c*c,S=m*p-_*c;if(k>=0&&0!=b){var C=Math.sqrt(k),I=-(S+C)/b,T=(-S+C)/b;I>=0&&I<=1&&x.push(I),T>=0&&T<=1&&x.push(T)}}return x}}}}),L=r.extend({_class:"CurveLocation",initialize:function(t,e,i,n,s){if(e>=.99999999){var r=t.getNext();r&&(e=0,t=r)}this._setCurve(t),this._time=e,this._point=i||t.getPointAtTime(e),this._overlap=n,this._distance=s,this._intersection=this._next=this._previous=null},_setPath:function(t){this._path=t,this._version=t?t._version:0},_setCurve:function(t){this._setPath(t._path),this._curve=t,this._segment=null,this._segment1=t._segment1,this._segment2=t._segment2},_setSegment:function(t){var e=t.getCurve();e?this._setCurve(e):(this._setPath(t._path),this._segment1=t,this._segment2=null),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(),i=this.getTime();0===i?t=e._segment1:1===i?t=e._segment2:null!=i&&(t=e.getPartLength(0,i)a(r.getLength()-o))&&(!l&&!h||l&&h&&l.equals(h,!0))}}return i},toString:function(){var t=[],e=this.getPoint(),i=c.instance;e&&t.push("point: "+e);var n=this.getIndex();null!=n&&t.push("index: "+n);var s=this.getTime();return null!=s&&t.push("time: "+i.number(s)),null!=this._distance&&t.push("distance: "+i.number(this._distance)),"{ "+t.join(", ")+" }"},isTouching:function(){var t=this._intersection;if(t&&this.getTangent().isCollinear(t.getTangent())){var e=this.getCurve(),i=t.getCurve();return!(e.isStraight()&&i.isStraight()&&e.getLine().intersect(i.getLine()))}return!1},isCrossing:function(){var t=this._intersection;if(!t)return!1;var e=this.getTime(),i=t.getTime(),n=e>=1e-8&&e<=.99999999,s=i>=1e-8&&i<=.99999999;if(n&&s)return!this.isTouching();var r=this.getCurve(),a=r&&e<1e-8?r.getPrevious():r,o=t.getCurve(),l=o&&i<1e-8?o.getPrevious():o;if(e>.99999999&&(r=r.getNext()),i>.99999999&&(o=o.getNext()),!a||!r||!l||!o)return!1;var h=[];function u(t,e){var i=t.getValues(),n=N.classify(i).roots||N.getPeaks(i),s=n.length,r=N.getLength(i,e&&s?n[s-1]:0,!e&&s?n[0]:1);h.push(s?r:r/32)}function c(t,e,i){return ee&&te||t=-1&&r<=n;r+=s){var a=t[(r%n+n)%n];if(!e.getPoint().isClose(a.getPoint(),1e-7))break;if(e.equals(a))return a}return null}for(;s<=r;){var o,l=s+r>>>1,h=t[l];if(i&&(o=e.equals(h)?h:a(l,-1)||a(l,1)))return e._overlap&&(o._overlap=o._intersection._overlap=!0),o;var u=e.getPath(),c=h.getPath();(u!==c?u._id-c._id:e.getIndex()+e.getTime()-(h.getIndex()+h.getTime()))<0?r=l-1:s=l+1}return t.splice(s,0,e),e}return{statics:{insert:t,expand:function(e){for(var i=e.slice(),n=e.length-1;n>=0;n--)t(i,e[n]._intersection,!1);return i}}}}),z=k.extend({_class:"PathItem",_selectBounds:!1,_canScaleStroke:!0,beans:!0,initialize:function(){},statics:{create:function(t){if(r.isPlainObject(t)?(i=t.segments,e=t.pathData):Array.isArray(t)?i=t:"string"==typeof t&&(e=t),i){var e,i,n,s=i[0];n=s&&Array.isArray(s[0])}else e&&(n=(e.match(/m/gi)||[]).length>1||/z\s*\S+/i.test(e));return new(n?B:R)(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,i,n,s=t&&t.match(/[mlhvcsqtaz][^mlhvcsqtaz]*/ig),r=!1,a=new f,o=new f;function l(t,i){var n=+e[t];return r&&(n+=a[i]),n}function h(t){return new f(l(t,"x"),l(t+1,"y"))}this.clear();for(var u=0,c=s&&s.length;uh&&this[n?"removeSegments":"removeChildren"](h,l);for(var c=0;c=0&&e;u--){var c=i[u];e=!1;var p=l[u];if(p)for(var f=p.length-1;f>=0&&!e;f--)c.compare(n[p[f]])&&(!a[p[f]]&&(a[p[f]]=!0,o++),e=!0)}e=e&&o===r}return e}}),R=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===i&&(t.x!==i||t.point!==i)?e:null;n&&n.length>0?this.setSegments(n):(this._curves=i,this._segmentSelection=0,n||"string"!=typeof t||(this.setPathData(t),t=null)),this._initialize(!n&&t)},_equals:function(t){return this._closed===t._closed&&r.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=i,32&e)this._version++;else if(this._curves)for(var n=0,s=this._curves.length;n0&&(_(u[0],!0),m.push("z")),m.join("")},isEmpty:function(){return!this._segments.length},_transformContent:function(t){for(var e=this._segments,i=Array(6),n=0,s=e.length;n0&&e+s-1===u?e-1:e,d=c,p=Math.min(c+s,u);t._curves&&(n.splice.apply(n,[c,0].concat(t._curves)),d+=t._curves.length);for(var o=d;o0?t-1:t},add:function(t){var e=arguments;return e.length>1&&"number"!=typeof t?this._add(O.readList(e)):this._add([O.read(e)])[0]},insert:function(t,e){var i=arguments;return i.length>2&&"number"!=typeof e?this._add(O.readList(i,1),t):this._add([O.read(i,1)],t)[0]},addSegment:function(){return this._add([O.read(arguments)])[0]},insertSegment:function(t){return this._add([O.read(arguments,1)],t)[0]},addSegments:function(t){return this._add(O.readList(t))},insertSegments:function(t,e){return this._add(O.readList(e),t)},removeSegment:function(t){return this.removeSegments(t,t+1)[0]||null},removeSegments:function(t,e,i){t=t||0,e=r.pick(e,this._segments.length);var n=this._segments,s=this._curves,a=n.length,o=n.splice(t,e-t),l=o.length;if(!l)return o;for(var h=0;h0&&e===a+(this._closed?1:0)?t-1:t,s=s.splice(d,l),h=s.length-1;h>=0;h--)s[h]._path=null;i&&(o._curves=s.slice(1)),this._adjustCurves(d,d)}return this._changed(41),o},clear:"#removeSegments",hasHandles:function(){for(var t=this._segments,e=0,i=t.length;e0&&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,i=e.length,n=t?7:0;this._segmentSelection=n*i;for(var s=0;s0&&this.setSelected(!0)},divideAt:function(t){var e,i=this.getLocationAt(t);return i&&(e=i.getCurve().divideAt(i.getCurveOffset()))?e._segment1:null},splitAt:function(t){var e=this.getLocationAt(t),i=e&&e.index,n=e&&e.time;n>.99999999&&(i++,n=0);var s=this.getCurves();if(i>=0&&i=1e-8&&s[i++].divideAtTime(n);var r,a=this.removeSegments(i,this._segments.length,!0);return this._closed?(this.setClosed(!1),r=this):((r=new R(k.NO_INSERT)).insertAbove(this),r.copyAttributes(this)),r._add(a,0),this.addSegment(a[0]),r}return null},split:function(t,e){var n,s=e===i?t:(n=this.getCurves()[t])&&n.getLocationAtTime(e);return null!=s?this.splitAt(s):null},join:function(t,e){var i=e||0;if(t&&t!==this){var n=t._segments,s=this.getLastSegment(),r=t.getLastSegment();if(!r)return this;s&&s._point.isClose(r._point,i)&&t.reverse();var a=t.getFirstSegment();if(s&&s._point.isClose(a._point,i))s.setHandleOut(a._handleOut),this._add(n.slice(1));else{var o=this.getFirstSegment();o&&o._point.isClose(a._point,i)&&t.reverse(),r=t.getLastSegment(),o&&o._point.isClose(r._point,i)?(o.setHandleIn(r._handleIn),this._add(n.slice(0,n.length-1),0)):this._add(n.slice())}t._closed&&this._add([n[0]]),t.remove()}var l=this.getFirstSegment(),h=this.getLastSegment();return l!==h&&l._point.isClose(h._point,i)&&(l.setHandleIn(h._handleIn),h.remove(),this.setClosed(!0)),this},reduce:function(t){for(var e=this.getCurves(),i=t&&t.simplify,n=i?1e-7:0,s=e.length-1;s>=0;s--){var r=e[s];!r.hasHandles()&&(!r.hasLength(n)||i&&r.isCollinear(r.getNext()))&&r.remove()}return this},reverse:function(){this._segments.reverse();for(var t=0,e=this._segments.length;t0&&n.push(new O(e[i-1].curve.slice(6))),this.setSegments(n)},simplify:function(t){var e=new V(this).fit(t||2.5);return e&&this.setSegments(e),!!e},smooth:function(t){var e=this,n=t||{},s=n.type||"asymmetric",r=this._segments,a=r.length,o=this._closed;function l(t,i){var n=t&&t.index;if(null!=n){var s=t.path;if(s&&s!==e)throw Error(t._class+" "+n+" of "+s+" is not part of "+e);i&&t instanceof N&&n++}else n="number"==typeof t?t:i;return Math.min(n<0&&o?n%a:n<0?n+a:n,a-1)}var h=o&&n.from===i&&n.to===i,u=l(n.from,0),c=l(n.to,a-1);if(u>c){if(o)u-=a;else{var d=u;u=c,c=d}}if(/^(?:asymmetric|continuous)$/.test(s)){var p="asymmetric"===s,f=Math.min,g=c-u+1,m=g-1,_=h?f(g,4):1,v=_,y=_,b=[];if(o||(v=f(1,u),y=f(1,a-c-1)),(m+=v+y)<=1)return;for(var x=0,w=u-v;x<=m;x++,w++)b[x]=r[(w<0?w+a:w)%a]._point;for(var k=b[0]._x+2*b[1]._x,S=b[0]._y+2*b[1]._y,C=2,I=m-1,T=[k],E=[S],A=[2],P=[],O=[],x=1;x=0;x--)P[x]=(T[x]-P[x+1])/A[x],O[x]=(E[x]-O[x+1])/A[x];P[m]=(3*b[m]._x-P[I])/2,O[m]=(3*b[m]._y-O[I])/2;for(var x=v,V=m-y,w=u;x<=V;x++,w++){var F=r[w<0?w+a:w],j=F._point,U=P[x]-j._x,q=O[x]-j._y;(h||xv)&&F.setHandleIn(-U,-q)}}else for(var x=u;x<=c;x++)r[x<0?x+a:x].smooth(n,!h&&x===u,!h&&x===c)},toShape:function(t){if(!this._closed)return null;var e,n,s,r,a,o,l,h=this._segments;function u(t,e){var i=h[t],n=i.getNext(),s=h[e],r=s.getNext();return i._handleOut.isZero()&&n._handleIn.isZero()&&s._handleOut.isZero()&&r._handleIn.isZero()&&n._point.subtract(i._point).isCollinear(r._point.subtract(s._point))}function c(t){var e=h[t],i=e.getNext(),n=e._handleOut,s=i._handleIn;if(n.isOrthogonal(s)){var r=e._point,a=i._point,o=new x(r,n,!0).intersect(new x(a,s,!0),!0);return o&&d.isZero(n.getLength()/o.subtract(r).getLength()-.5522847498307936)&&d.isZero(s.getLength()/o.subtract(a).getLength()-.5522847498307936)}return!1}function p(t,e){return h[t]._point.getDistance(h[e]._point)}if(!this.hasHandles()&&4===h.length&&u(0,2)&&u(1,3)&&(n=(e=h[1]).getPrevious(),s=e.getNext(),n._handleOut.isZero()&&e._handleIn.isZero()&&e._handleOut.isZero()&&s._handleIn.isZero()&&e._point.subtract(n._point).isOrthogonal(s._point.subtract(e._point)))?(r=I.Rectangle,a=new m(p(0,3),p(0,1)),l=h[1]._point.add(h[2]._point).divide(2)):8===h.length&&c(0)&&c(2)&&c(4)&&c(6)&&u(1,5)&&u(3,7)?(r=I.Rectangle,o=(a=new m(p(1,6),p(0,3))).subtract(new m(p(0,7),p(1,2))).divide(2),l=h[3]._point.add(h[4]._point).divide(2)):4===h.length&&c(0)&&c(1)&&c(2)&&c(3)&&(d.isZero(p(0,2)-p(1,3))?(r=I.Circle,o=p(0,2)/2):(r=I.Ellipse,o=new m(p(2,0)/2,p(3,1)/2)),l=h[1]._point),r){var f=this.getPosition(!0),g=new r({center:f,size:a,radius:o,insert:!1});return g.copyAttributes(this,!0),g._matrix.prepend(this._matrix),g.rotate(l.subtract(f).getAngle()+90),(t===i||t)&&g.insertAbove(this),g}return null},toPath:"#clone",compare:function t(e){if(!e||e instanceof B)return t.base.call(this,e);var i=this.getCurves(),n=e.getCurves(),s=i.length,r=n.length;if(!s||!r)return s==r;for(var a,o,l=i[0].getValues(),h=[],u=0,c=0,d=0;d0?r-1:d,o=f[0][1];break}}for(var g,m=Math.abs,p=h[a];l&&p;){var f=N.getOverlaps(l,p);if(f&&1e-8>m(f[0][0]-c)){1===(c=f[1][0])&&(l=++um(_-o)){if(g||(g=[a,_]),1===(o=f[1][1])&&(++a>=r&&(a=0),p=h[a]||n[a].getValues(),o=0),!l)return g[0]===a&&g[1]===o;continue}}break}return!1},_hitTestSelf:function(t,e,i,n){var s,r,a,o,l,h,u=this,c=this.getStyle(),d=this._segments,p=d.length,f=this._closed,g=e._tolerancePadding,m=g,_=e.stroke&&c.hasStroke(),v=e.fill&&c.hasFill(),y=e.curves,b=_?c.getStrokeWidth()/2:v&&e.tolerance>0||y?0:null;function x(e,i){return t.subtract(e).divide(i).length<=1}function w(t,i,n){if(!e.selected||i.isSelected()){var s=t._point;if(i!==s&&(i=i.add(s)),x(i,m))return new P(n,u,{segment:t,point:i})}}function k(t,i){return(i||e.segments)&&w(t,t._point,"segment")||!i&&e.handles&&(w(t,t._handleIn,"handle-in")||w(t,t._handleOut,"handle-out"))}function S(t){o.add(t)}function C(e){var i,l=f||e._index>0&&e._index0?(s=c.getStrokeJoin(),r=c.getStrokeCap(),a=c.getMiterLimit(),m=m.add(R._getStrokePadding(b,n))):s=r="round"),!e.ends||e.segments||f){if(e.segments||e.handles){for(var I=0;I1?C(l.getSegment())||(l=null):x(l.getPoint(),m)||(l=null)}if(!l&&"miter"===s&&p>1)for(var I=0;It)return a.getLocationAt(t-r)}if(e.length>0&&t<=this.getLength())return new L(e[e.length-1],1)}else if(t&&t.getPath&&t.getPath()===this)return t;return null},getOffsetsWithTangent:function(){var t=f.read(arguments);if(t.isZero())return[];for(var e=[],i=0,n=this.getCurves(),s=0,r=n.length;se.indexOf(u)&&e.push(u)}i+=a.length}return e}}),new function(){function t(t,e,i){var n,s,r,a,o,l,h,u,c=e._segments,d=c.length,p=Array(6),f=!0;function g(e){if(i)e._transformCoordinates(i,p),n=p[0],s=p[1];else{var c=e._point;n=c._x,s=c._y}if(f)t.moveTo(n,s),f=!1;else{if(i)o=p[2],l=p[3];else{var d=e._handleIn;o=n+d._x,l=s+d._y}o===n&&l===s&&h===r&&u===a?t.lineTo(n,s):t.bezierCurveTo(h,u,o,l,n,s)}if(r=n,a=s,i)h=p[4],u=p[5];else{var d=e._handleOut;h=r+d._x,u=a+d._y}}for(var m=0;m0&&g(c[0])}return{_draw:function(e,i,n,s){var r=i.dontStart,a=i.dontFinish||i.clip,o=this.getStyle(),l=o.hasFill(),h=o.hasStroke(),u=o.getDashArray(),c=!tl.support.nativeDash&&h&&u&&u.length;function d(t){return u[(t%c+c)%c]}if(r||e.beginPath(),(l||h&&!c||a)&&(t(e,this,s),this._closed&&e.closePath()),!a&&(l||h)&&(this._setStyles(e,i,n),l&&(e.fill(o.getFillRule()),e.shadowColor="rgba(0,0,0,0)"),h)){if(c){r||e.beginPath();for(var p,f=new D(this,.25,32,!1,s),g=f.length,m=-o.getDashOffset(),_=0;m>0;)m-=d(_--)+d(_--);for(;m0||p>0)&&f.drawPart(e,Math.max(m,0),Math.max(p,0)),m=p+d(_++)}e.stroke()}},_drawSelected:function(e,i){e.beginPath(),t(e,this,i),e.stroke(),function(t,e,i,n){if(!(n<=0))for(var s,r,a=n/2,o=n-2,l=a-1,h=Array(6),u=0,c=e.length;u0&&!(1&p)){var f=t.fillStyle;t.fillStyle="#ffffff",t.fillRect(s-l,r-l,o,o),t.fillStyle=f}}function g(e){var i=h[e],n=h[e+1];(s!=i||r!=n)&&(t.beginPath(),t.moveTo(s,r),t.lineTo(i,n),t.stroke(),t.beginPath(),t.arc(i,n,a,0,2*Math.PI,!0),t.fill())}}(e,this._segments,i,tl.settings.handleSize)}}},new function(){function t(t){var e=t._segments;if(!e.length)throw 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 O(f.read(arguments))])},moveBy:function(){throw Error("moveBy() is unsupported on Path items.")},lineTo:function(){this._add([new O(f.read(arguments))])},cubicCurveTo:function(){var e=arguments,i=f.read(e),n=f.read(e),s=f.read(e),r=t(this);r.setHandleOut(i.subtract(r._point)),this._add([new O(s,n.subtract(s))])},quadraticCurveTo:function(){var e=arguments,i=f.read(e),n=f.read(e),s=t(this)._point;this.cubicCurveTo(i.add(s.subtract(i).multiply(1/3)),i.add(n.subtract(i).multiply(1/3)),n)},curveTo:function(){var e=arguments,i=f.read(e),n=f.read(e),s=r.pick(r.read(e),.5),a=1-s,o=t(this)._point,l=i.subtract(o.multiply(a*a)).subtract(n.multiply(s*s)).divide(2*s*a);if(l.isNaN())throw Error("Cannot put a curve through points with parameter = "+s);this.quadraticCurveTo(l,n)},arcTo:function(){var e,i,n,s,a,o=arguments,l=Math.abs,h=Math.sqrt,u=t(this),c=u._point,p=f.read(o),g=r.peek(o),_=r.pick(g,!0);if("boolean"==typeof _)var v=c.add(p).divide(2),e=v.add(v.subtract(c).rotate(_?-90:90));else if(2>=r.remain(o))e=p,p=f.read(o);else if(!c.equals(p)){var y=m.read(o),w=d.isZero;if(w(y.width)||w(y.height))return this.lineTo(p);var k=r.read(o),_=!!r.read(o),S=!!r.read(o),v=c.add(p).divide(2),C=c.subtract(v).rotate(-k),I=C.x,T=C.y,E=l(y.width),A=l(y.height),P=E*E,M=A*A,N=I*I,L=T*T,z=h(N/P+L/M);if(z>1&&(E*=z,A*=z,P=E*E,M=A*A),1e-12>l(z=(P*M-P*L-M*N)/(P*L+M*N))&&(z=0),z<0)throw Error("Cannot create an arc with the given arguments");i=new f(E*T/A,-A*I/E).multiply((S===_?-1:1)*h(z)).rotate(k).add(v),n=(s=(a=new b().translate(i).rotate(k).scale(E,A))._inverseTransform(c)).getDirectedAngle(a._inverseTransform(p)),!_&&n>0?n-=360:_&&n<0&&(n+=360)}if(e){var R=new x(c.add(e).divide(2),e.subtract(c).rotate(90),!0),B=new x(e.add(p).divide(2),p.subtract(e).rotate(90),!0),D=new x(c,p),V=D.getSide(e);if(!(i=R.intersect(B,!0))){if(!V)return this.lineTo(p);throw Error("Cannot create an arc with the given arguments")}n=(s=c.subtract(i)).getDirectedAngle(p.subtract(i));var F=D.getSide(i,!0);0===F?n=V*l(n):V===F&&(n+=n<0?360:-360)}if(n){for(var j=l(n),U=j>=360?4:Math.ceil((j-1e-5)/90),q=n/U,Z=q*Math.PI/360,H=4/3*Math.sin(Z)/(1+Math.cos(Z)),G=[],$=0;$<=U;$++){var C=p,W=null;if($0){for(var k=1;k=180)&&(c=c.negate(),d=d.negate()),o&&a(u),a(u.add(c)),"miter"===e){var g=new x(u.add(c),new f(-c.y,c.x),!0).intersect(new x(u.add(d),new f(-d.y,d.x),!0),!0);g&&u.getDistance(g)<=n*i&&a(g)}a(u.add(d))},_addSquareCap:function(t,e,i,n,s,r,a){var o=t._point.transform(n),l=t.getLocation(),h=l.getNormal().multiply(0===l.getTime()?i:-i).transform(s);"square"===e&&(a&&(r(o.subtract(h)),r(o.add(h))),o=o.add(h.rotate(-90))),r(o.add(h)),r(o.subtract(h))},getHandleBounds:function(t,e,i,n,s){var r,a,o=i.getStyle();if(s.stroke&&o.hasStroke()){var l=i._getStrokeMatrix(n,s),h=o.getStrokeWidth()/2,u=h;"miter"===o.getStrokeJoin()&&(u=h*o.getMiterLimit()),"square"===o.getStrokeCap()&&(u=Math.max(u,h*Math.SQRT2)),r=R._getStrokePadding(h,l),a=R._getStrokePadding(u,l)}for(var c=Array(6),d=1/0,p=-1/0,f=1/0,g=p,m=0,_=t.length;m<_;m++){t[m]._transformCoordinates(n,c);for(var y=0;y<6;y+=2){var b=y?r:a,x=b?b[0]:0,w=b?b[1]:0,k=c[y],S=c[y+1],C=k-x,I=k+x,T=S-w,E=S+w;Cp&&(p=I),Tg&&(g=E)}}return new v(d,f,p-d,g-f)}}});R.inject({statics:new function(){var t=[new O([-1,0],[0,.5522847498307936],[0,-.5522847498307936]),new O([0,-1],[-.5522847498307936,0],[.5522847498307936,0]),new O([1,0],[0,-.5522847498307936],[0,.5522847498307936]),new O([0,1],[.5522847498307936,0],[-.5522847498307936,0])];function e(t,e,i){var n=r.getNamed(i),s=new R(n&&(!0==n.insert?k.INSERT:!1==n.insert?k.NO_INSERT:null));return s._add(t),s._closed=e,s.set(n,k.INSERT)}function i(i,n,s){for(var r=[,,,,],a=0;a<4;a++){var o=t[a];r[a]=new O(o._point.multiply(n).add(i),o._handleIn.multiply(n),o._handleOut.multiply(n))}return e(r,!0,s)}return{Line:function(){var t=arguments;return e([new O(f.readNamed(t,"from")),new O(f.readNamed(t,"to"))],!1,t)},Circle:function(){var t=arguments;return i(f.readNamed(t,"center"),new m(r.readNamed(t,"radius")),t)},Rectangle:function(){var t,i=arguments,n=v.readNamed(i,"rectangle"),s=m.readNamed(i,"radius",0,{readNull:!0}),r=n.getBottomLeft(!0),a=n.getTopLeft(!0),o=n.getTopRight(!0),l=n.getBottomRight(!0);if(!s||s.isZero())t=[new O(r),new O(a),new O(o),new O(l)];else{var h=(s=m.min(s,n.getSize(!0).divide(2))).width,u=s.height,c=.5522847498307936*h,d=.5522847498307936*u;t=[new O(r.add(h,0),null,[-c,0]),new O(r.subtract(0,u),[0,d]),new O(a.add(0,u),null,[0,-d]),new O(a.add(h,0),[-c,0],null),new O(o.subtract(h,0),null,[c,0]),new O(o.add(0,u),[0,-d],null),new O(l.subtract(0,u),null,[0,d]),new O(l.subtract(h,0),[c,0])]}return e(t,!0,i)},RoundRectangle:"#Rectangle",Ellipse:function(){var t=arguments,e=I._readEllipse(t);return i(e.center,e.radius,t)},Oval:"#Ellipse",Arc:function(){var t=arguments,e=f.readNamed(t,"from"),i=f.readNamed(t,"through"),n=f.readNamed(t,"to"),s=r.getNamed(t),a=new R(s&&!1==s.insert&&k.NO_INSERT);return a.moveTo(e),a.arcTo(i,n),a.set(s)},RegularPolygon:function(){for(var t=arguments,i=f.readNamed(t,"center"),n=r.readNamed(t,"sides"),s=r.readNamed(t,"radius"),a=360/n,o=n%3==0,l=new f(0,o?-s:s),h=o?-1:.5,u=Array(n),c=0;c=0;a--){var o=n[a];n!==i||o instanceof R||(n=r.slice(n)),Array.isArray(o)?n[a]=new R({segments:o,insert:!1}):o instanceof B&&(n.splice.apply(n,[a,1].concat(o.removeChildren())),o.remove())}return t.base.call(this,e,n)},reduce:function t(e){for(var i=this._children,n=i.length-1;n>=0;n--){var s=i[n].reduce(e);s.isEmpty()&&s.remove()}if(!i.length){var s=new R(k.NO_INSERT);return s.copyAttributes(this),s.insertAbove(this),this.remove(),s}return t.base.call(this)},isClosed:function(){for(var t=this._children,e=0,i=t.length;e=0;f--){var g=r[f].split();g&&(p(g)&&g.getFirstSegment().setHandleIn(0,0),n.getLastSegment().setHandleOut(0,0))}return p(n),l(d,!1,t,e)}function f(t,e){for(var i=t;i;){if(i===e)return;i=i._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 g(t){for(var e=t.length-1;e>=0;e--)t[e].clearHandles()}function m(t,e,i){var s=t&&t.length;if(s){var a=r.each(t,function(t,e){this[t._id]={container:null,winding:t.isClockwise()?1:-1,index:e}},{}),o=t.slice().sort(function(t,e){return n(e.getArea())-n(t.getArea())}),l=o[0],u=h.findItemBoundsCollisions(o,null,d.GEOMETRIC_EPSILON);null==i&&(i=l.isClockwise());for(var c=0;c=0;v--)if(m[v]=0;c--){var d=i[c];d._path&&(h[u(d)]=!0)}for(var c=t.length-1;c>=0;c--){var p,m=t[c],_=m._time,v=_,y=e&&!e(m),d=m._curve;if(d&&(d!==s?(o=!d.hasHandles()||h&&h[u(d)],n=[],r=null,s=d):r>=1e-8&&(_/=r)),y){n&&n.push(m);continue}if(e&&a.unshift(m),r=v,_<1e-8)p=d._segment1;else if(_>.99999999)p=d._segment2;else{var b=d.divideAtTime(_,!0);o&&l.push(d,b),p=b._segment1;for(var x=n.length-1;x>=0;x--){var w=n[x];w._time=(w._time-_)/(1-_)}}m._setSegment(p);var k=p._intersection,S=m._intersection;if(k){f(k,S);for(var C=k;C;)f(C._intersection,k),C=C._next}else p._intersection=S}return i||g(l),a||t}function v(i,s,r,a,o){var l,h,u=Array.isArray(s)?s:s[r?"hor":"ver"],c=r?1:0,d=1^c,p=[i.x,i.y],f=p[c],g=p[d],m=f-1e-9,_=f+1e-9,y=0,b=0,x=0,w=0,k=!1,S=!1,C=1,I=[];function T(n){var h=n[d+0],u=n[d+2],p=n[d+4],y=n[d+6];if(g<=e(h,u,p,y)&&g>=t(h,u,p,y)){for(var b,S=n[c+0],T=n[c+2],E=n[c+4],A=n[c+6],P=m>e(S,T,E,A)||_e(h,u))){var p=n[c+0],y=n[c+2],b=n[c+4],S=n[c+6];if(h===u){(p<_&&S>m||S<_&&p>m)&&(k=!0);return}var T=g===h?0:g===u?1:m>e(p,y,b,S)||_0?I[0]:1,E=0===T?p:1===T?S:N.getPoint(n,T)[r?"y":"x"],A=h>u?1:-1,P=l[d]>l[d+6]?1:-1,O=l[c+6];return g!==h?(E_?w+=A:k=!0,E>f-1e-6&&E_&&(w+=A):p!=O&&(O<_&&E>_?(w+=A,k=!0):O>m&&Em&&E<_&&0===N.getTangent(n,T)[r?"x":"y"]&&v(i,s,!r,a,!0)}}(P[O]))return b}}for(var E=0,A=u.length;Ea.quality&&(a=I);break}c-=y}for(var g=o.length-1;g>=0;g--)o[g].segment._winding=a}function b(t,e){var i,n=[];function s(t){var i;return!!(t&&!t._visited&&(!e||e[(i=t._winding||{}).winding]&&!(e.unite&&2===i.winding&&i.windingL&&i.windingR)))}function r(t){if(t){for(var e=0,n=i.length;e=0;h--){var u=l[h],c=u._path,d=u._segment,p=d.getPrevious(),f=d.getNext();i(p,c)&&i(f,c)&&(d.remove(),p._handleOut._set(0,0),f._handleIn._set(0,0),p===d||p.getCurve().hasLength()||(f._handleIn.set(p._handleIn),p.remove()))}s&&(_(a,n&&function(t){var e=t.getCurve(),i=t.getSegment(),n=t._intersection,s=n._curve,r=n._segment;if(e&&s&&e._path&&s._path)return!0;i&&(i._intersection=null),r&&(r._intersection=null)},o),o&&g(o),e=b(r.each(e,function(t){r.push(this,t._segments)},[])));var m,v=e.length;return v>1&&t?(e!==t&&this.setChildren(e),m=this):1!==v||t||(e[0]!==this&&this.setSegments(e[0].removeSegments()),m=this),m||((m=new B(k.NO_INSERT)).addChildren(e),(m=m.reduce()).copyAttributes(this),this.replaceWith(m)),m},reorient:function(t,e){var n=this._children;return n&&n.length?this.setChildren(m(this.removeChildren(),function(e){return!!(t?e:1&e)},e)):e!==i&&this.setClockwise(e),this},getInteriorPoint:function(){var i=this.getBounds().getCenter(!0);if(!this.contains(i)){for(var n=this.getCurves(),s=i.y,r=[],a=[],o=0,l=n.length;o=t(u,c,d,p)&&s<=e(u,c,d,p))for(var f=N.getMonoCurves(h),g=0,m=f.length;g=v&&s<=y||s>=y&&s<=v)){var b=s===v?_[0]:s===y?_[6]:1===N.solveCubic(_,1,s,a,0,1)?N.getPoint(_,a[0]).x:(_[0]+_[6])/2;r.push(b)}}}r.length>1&&(r.sort(function(t,e){return t-e}),i.x=(r[0]+r[1])/2)}return i}}});var D=r.extend({_class:"PathFlattener",initialize:function(t,e,i,n,s){var r,a=[],o=[],l=0,h=1/(i||32),u=t._segments,c=u[0];function d(t,i){var r=N.getValues(t,i,s);a.push(r),function t(i,s,r,a){if(!(a-r>h)||n&&N.isStraight(i)||N.isFlatEnough(i,e||.25)){var u=i[6]-i[0],c=i[7]-i[1],d=Math.sqrt(u*u+c*c);d>0&&(l+=d,o.push({offset:l,curve:i,index:s,time:a}))}else{var p=N.subdivide(i,.5),f=(r+a)/2;t(p[0],s,r,f),t(p[1],s,f,a)}}(r,t._index,0,1)}for(var p=1,f=u.length;p=t){this.index=e;var a=i[e-1],o=a&&a.index===r.index?a.time:0,l=a?a.offset:0;return{index:r.index,time:o+(r.time-o)*(t-l)/(r.offset-l)}}}return{index:i[n-1].index,time:1}},drawPart:function(t,e,i){for(var n=this._get(e),s=this._get(i),r=n.index,a=s.index;r<=a;r++){var o=N.getPart(this.curves[r],r===n.index?n.time:0,r===s.index?s.time:1);r===n.index&&t.moveTo(o[0],o[1]),t.bezierCurveTo.apply(t,o.slice(2))}}},r.each(N._evaluateMethods,function(t){this[t+"At"]=function(e){var i=this._get(e);return N[t](this.curves[i.index],i.time)}},{})),V=r.extend({initialize:function(t){for(var e,i=this.points=[],n=t._segments,s=t._closed,r=0,a=n.length;r0&&(n=[new O(e[0])],i>1&&(this.fitCubic(n,t,0,i-1,e[1].subtract(e[0]),e[i-2].subtract(e[i-1])),this.closed&&(n.shift(),n.pop()))),n},fitCubic:function(t,e,i,n,s,r){var a=this.points;if(n-i==1){var o=a[i],l=a[n],h=o.getDistance(l)/3;this.addCurve(t,[o,o.add(s.normalize(h)),l.add(r.normalize(h)),l]);return}for(var u,c=this.chordLengthParameterize(i,n),d=Math.max(e,e*e),p=!0,f=0;f<=4;f++){var g=this.generateBezier(i,n,c,s,r),m=this.findMaxError(i,n,g,c);if(m.error=d)break;p=this.reparameterize(i,n,c,g),d=m.error}var _=a[u-1].subtract(a[u+1]);this.fitCubic(t,e,i,u,s,_),this.fitCubic(t,e,u,n,_.negate(),r)},addCurve:function(t,e){t[t.length-1].setHandleOut(e[1].subtract(e[0])),t.push(new O(e[3],e[2].subtract(e[3])))},generateBezier:function(t,e,i,n,s){for(var r=Math.abs,a=this.points,o=a[t],l=a[e],h=[[0,0],[0,0]],u=[0,0],c=0,d=e-t+1;c1e-12){var I=h[0][0]*u[1]-h[1][0]*u[0];k=(u[0]*h[1][1]-u[1]*h[0][1])/C,S=I/C}else{var T=h[0][0]+h[0][1],E=h[1][0]+h[1][1];k=S=r(T)>1e-12?u[0]/T:r(E)>1e-12?u[1]/E:0}var A,P,O=l.getDistance(o),M=1e-12*O;if(kO*O&&(k=S=O/3,A=P=null)}return[o,o.add(A||n.normalize(k)),l.add(P||s.normalize(S)),l]},reparameterize:function(t,e,i,n){for(var s=t;s<=e;s++)i[s-t]=this.findRoot(n,this.points[s],i[s-t]);for(var s=1,r=i.length;s=r&&(r=l,s=a)}return{error:r,index:s}}}),F=k.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&&r.isPlainObject(t)&&t.x===i&&t.y===i;this._initialize(e&&t,!e&&f.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/mg),this._changed(521)},isEmpty:function(){return!this._content},getCharacterStyle:"#getStyle",setCharacterStyle:"#setStyle",getParagraphStyle:"#getStyle",setParagraphStyle:"#setStyle"}),j=F.extend({_class:"PointText",initialize:function(){F.apply(this,arguments)},getPoint:function(){var t=this._matrix.getTranslation();return new g(t.x,t.y,this,"setPoint")},setPoint:function(){var t=f.read(arguments);this.translate(t.subtract(this._matrix.getTranslation()))},_draw:function(t,e,i){if(this._content){this._setStyles(t,e,i);var n=this._lines,s=this._style,r=s.hasFill(),a=s.hasStroke(),o=s.getLeading(),l=t.shadowColor;t.font=s.getFontStyle(),t.textAlign=s.getJustification();for(var h=0,u=n.length;h1&&(l-=1),a[o]=6*l<1?r+(s-r)*6*l:2*l<1?s:3*l<2?r+(s-r)*(2/3-l)*6:r}return a},"rgb-gray":function(t,e,i){return[.2989*t+.587*e+.114*i]},"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 r.each(e,function(t,n){i[n]=[],r.each(t,function(t,s){var a=r.capitalize(t),o=/^(hue|saturation)$/.test(t),l=i[n][s]="gradient"===n?"gradient"===t?function(t){var e=this._components[0];return t=q.read(Array.isArray(t)?t:arguments,0,{readNull:!0}),e!==t&&(e&&e._removeOwner(this),t&&t._addOwner(this)),t}:function(){return f.read(arguments,0,{readNull:"highlight"===t,clone:!0})}:function(t){return null==t||isNaN(t)?0:+t};this["get"+a]=function(){return this._type===n||o&&/^hs[bl]$/.test(this._type)?this._components[s]:this._convert(n)[s]},this["set"+a]=function(t){this._type===n||o&&/^hs[bl]$/.test(this._type)||(this._components=this._convert(n),this._properties=e[n],this._type=n),this._components[s]=l.call(this,t),this._changed()}},this)},{_class:"Color",_readIndex:!0,initialize:function a(o){var l,h,u,c,d=arguments,p=this.__read,f=0;Array.isArray(o)&&(o=(d=o)[0]);var g=null!=o&&typeof o;if("string"===g&&o in e&&(l=o,Array.isArray(o=d[1])?(h=o,u=d[2]):(p&&(f=1),d=r.slice(d,1),g=typeof o)),!h){if(c="number"===g?d:"object"===g&&null!=o.length?o:null){l||(l=c.length>=3?"rgb":"gray");var m=e[l].length;u=c[m],p&&(f+=c===arguments?m+(null!=u?1:0):1),c.length>m&&(c=r.slice(c,0,m))}else if("string"===g){var _=function(e){var i,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),a="rgb";if(r){var o=r[4]?4:3;i=Array(o);for(var l=0;l1?1:t)*255)}return e=[n(e[0]),n(e[1]),n(e[2])],i<1&&e.push(i<0?0:i),t?"#"+(0x1000000+(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 i,n=this._components,s=n[0],r=s._stops,a=n[1],o=n[2],l=n[3],h=e&&e.inverted();if(h&&(a=h._transformPoint(a),o=h._transformPoint(o),l&&(l=h._transformPoint(l))),s._radial){var u=o.getDistance(a);if(l){var c=l.subtract(a);c.getLength()>u&&(l=a.add(c.normalize(u-.1)))}var d=l||a;i=t.createRadialGradient(d.x,d.y,0,a.x,a.y,u)}else i=t.createLinearGradient(a.x,a.y,o.x,o.y);for(var p=0,f=r.length;p0&&!(i instanceof B);if(r)for(var a=0,o=s.length;a0&&!(a instanceof B);if(h&&!t)for(var u=0,p=o.length;u0},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),i=this.getFontSize();return/pt|em|%|px/.test(i)&&(i=this.getView().getPixelSize(i)),null!=e?e:1.2*i}}),G=new function(){function t(t,e,i,n){for(var s=["","webkit","moz","Moz","ms","o"],r=e[0].toUpperCase()+e.substring(1),a=0;a<6;a++){var o=s[a],l=o?o+r:e;if(l in t){if(!i)return t[l];t[l]=n;break}}}return{getStyles:function(t){var e=t&&9!==t.nodeType?t.ownerDocument:t,i=e&&e.defaultView;return i&&i.getComputedStyle(t,"")},getBounds:function(t,e){var i,n=t.ownerDocument,s=n.body,r=n.documentElement;try{i=t.getBoundingClientRect()}catch(t){i={left:0,top:0,width:0,height:0}}var a=i.left-(r.clientLeft||s.clientLeft||0),o=i.top-(r.clientTop||s.clientTop||0);if(!e){var l=n.defaultView;a+=l.pageXOffset||r.scrollLeft||s.scrollLeft,o+=l.pageYOffset||r.scrollTop||s.scrollTop}return new v(a,o,i.width,i.height)},getViewportBounds:function(t){var e=t.ownerDocument,i=e.defaultView,n=e.documentElement;return new v(0,0,i.innerWidth||n.clientWidth,i.innerHeight||n.clientHeight)},getOffset:function(t,e){return G.getBounds(t,e).getPoint()},getSize:function(t){return G.getBounds(t,!0).getSize()},isInvisible:function(t){return G.getSize(t).equals(new m(0,0))},isInView:function(t){return!G.isInvisible(t)&&G.getViewportBounds(t).intersects(G.getBounds(t,!0))},isInserted:function(t){return s.body.contains(t)},getPrefixed:function(e,i){return e&&t(e,i)},setPrefixed:function(e,i,n){if("object"==typeof i)for(var s in i)t(e,s,!0,i[s]);else t(e,i,!0,n)}}},$={add:function(t,e){if(t)for(var i in e)for(var n=e[i],r=i.split(/[\s,]+/g),a=0,o=r.length;a1?r.hyphenate(e):e.toLowerCase())}function d(e,i,n,s){var a,o=W._focused;if(l[i]=e,e?h[i]=n:delete h[i],i.length>1&&(a=r.camelize(i))in u){u[a]=e;var c=tl&&tl.agent;if("meta"===a&&c&&c.mac){if(e)t={};else{for(var p in t)p in h&&d(!1,p,t[p],s);t=null}}}else e&&t&&(t[i]=n);o&&o._handleKeyEvent(e?"keydown":"keyup",s,i,n)}return $.add(s,{keydown:function(t){var i=c(t),n=tl&&tl.agent;i.length>1||n&&n.chrome&&(t.altKey||n.mac&&t.metaKey||!n.mac&&t.ctrlKey)?d(!0,i,o[i]||(i.length>1?"":i),t):e=i},keypress:function(t){if(e){var i=c(t),n=t.charCode,s=n>=32?String.fromCharCode(n):i.length>1?"":i;i!==e&&(i=s.toLowerCase()),d(!0,i,s,t),e=null}},keyup:function(t){var e=c(t);e in h&&d(!1,e,h[e],t)}}),$.add(n,{blur:function(t){for(var e in h)d(!1,e,h[e],t)}}),{modifiers:u,isDown:function(t){return!!l[t]}}},X=J.extend({_class:"MouseEvent",initialize:function(t,e,i,n,s){this.type=t,this.event=e,this.point=i,this.target=n,this.delta=s},toString:function(){return"{ type: '"+this.type+"', point: "+this.point+", target: "+this.target+(this.delta?", delta: "+this.delta:"")+", modifiers: "+this.getModifiers()+" }"}}),tt=J.extend({_class:"ToolEvent",_item:null,initialize:function(t,e,i){this.tool=t,this.type=e,this.event=i},_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,i=e._parent;/^(Group|CompoundPath)$/.test(i._class);)e=i,i=i._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()+" }"}}),te=l.extend({_class:"Tool",_list:"tools",_reference:"tool",_events:["onMouseDown","onMouseUp","onMouseDrag","onMouseMove","onActivate","onDeactivate","onEditOptions","onKeyDown","onKeyUp"],initialize:function(t){l.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=0&&r.equals(a))return!1;if(a&&(null!=t||null!=e)){var l=r.subtract(a),h=l.getLength();if(h<(t||0))return!1;e&&(r=a.add(l.normalize(Math.min(h,e))))}o._moveCount++}return o._point=r,o._lastPoint=a||r,n.down&&(o._moveCount=-1,o._downPoint=r,o._downCount++),!0}function h(){r&&(a=o.emit(t,new tt(o,t,e))||a)}if(n.down)l(),h();else if(n.up)l(null,this._maxDistance),h();else if(r)for(;l(this._minDistance,this._maxDistance);)h();return a}}),ti=r.extend(a,{_class:"Tween",statics:{easings:new r({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:-1+2*(2-t)*t},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,i,n,s,r,a){this.object=e;var o=typeof r,l="function"===o;this.type=l?o:"string"===o?r:"linear",this.easing=l?r:t.easings[this.type],this.duration=s,this.running=!1,this._then=null,this._startTime=null;var h=i||n;this._keys=h?Object.keys(h):[],this._parsedKeys=this._parseKeys(this._keys),this._from=h&&this._getState(i),this._to=h&&this._getState(n),!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),i=this._keys,n=function(i){return"function"==typeof i?i(e,t):i},s=0,a=i&&i.length;s255){var l=255-n,f=a-n;h=n+(h-n)*l/f,u=n+(u-n)*l/f,c=n+(c-n)*l/f}}function _(t,e,i){return p(t,e,i)-d(t,e,i)}function v(t,e,i,n){var s,r=[t,e,i],a=p(t,e,i),o=d(t,e,i);s=0===d(o=o===t?0:o===e?1:2,a=a===t?0:a===e?1:2)?1===p(o,a)?2:1:0,r[a]>r[o]?(r[s]=(r[s]-r[o])*n/(r[a]-r[o]),r[a]=n):r[s]=r[a]=0,r[o]=0,h=r[0],u=r[1],c=r[2]}var y={multiply:function(){h=s*t/255,u=a*e/255,c=o*i/255},screen:function(){h=s+t-s*t/255,u=a+e-a*e/255,c=o+i-o*i/255},overlay:function(){h=s<128?2*s*t/255:255-2*(255-s)*(255-t)/255,u=a<128?2*a*e/255:255-2*(255-a)*(255-e)/255,c=o<128?2*o*i/255:255-2*(255-o)*(255-i)/255},"soft-light":function(){var n=t*s/255;h=n+s*(255-(255-s)*(255-t)/255-n)/255,u=(n=e*a/255)+a*(255-(255-a)*(255-e)/255-n)/255,c=(n=i*o/255)+o*(255-(255-o)*(255-i)/255-n)/255},"hard-light":function(){h=t<128?2*t*s/255:255-2*(255-t)*(255-s)/255,u=e<128?2*e*a/255:255-2*(255-e)*(255-a)/255,c=i<128?2*i*o/255:255-2*(255-i)*(255-o)/255},"color-dodge":function(){h=0===s?0:255===t?255:d(255,255*s/(255-t)),u=0===a?0:255===e?255:d(255,255*a/(255-e)),c=0===o?0:255===i?255:d(255,255*o/(255-i))},"color-burn":function(){h=255===s?255:0===t?0:p(0,255-(255-s)*255/t),u=255===a?255:0===e?0:p(0,255-(255-a)*255/e),c=255===o?255:0===i?0:p(0,255-(255-o)*255/i)},darken:function(){h=st?s:t,u=a>e?a:e,c=o>i?o:i},difference:function(){(h=s-t)<0&&(h=-h),(u=a-e)<0&&(u=-u),(c=o-i)<0&&(c=-c)},exclusion:function(){h=s+t*(255-s-s)/255,u=a+e*(255-a-a)/255,c=o+i*(255-o-o)/255},hue:function(){v(t,e,i,_(s,a,o)),m(h,u,c,g(s,a,o))},saturation:function(){v(s,a,o,_(t,e,i)),m(h,u,c,g(s,a,o))},luminosity:function(){m(s,a,o,g(t,e,i))},color:function(){m(t,e,i,g(s,a,o))},add:function(){h=d(s+t,255),u=d(a+e,255),c=d(o+i,255)},subtract:function(){h=p(s-t,0),u=p(a-e,0),c=p(o-i,0)},average:function(){h=(s+t)/2,u=(a+e)/2,c=(o+i)/2},negation:function(){h=255-f(255-t-s),u=255-f(255-e-a),c=255-f(255-i-o)}},b=this.nativeModes=r.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=ts.getContext(1,1,{willReadFrequently:!0});x&&(r.each(y,function(t,e){var i="darken"===e,n=!1;x.save();try{x.fillStyle=i?"#300":"#a00",x.fillRect(0,0,1,1),x.globalCompositeOperation=e,x.globalCompositeOperation===e&&(x.fillStyle=i?"#a00":"#300",x.fillRect(0,0,1,1),n=x.getImageData(0,0,1,1).data[0]!==i?170:51)}catch(t){}x.restore(),b[e]=n}),ts.release(x)),this.process=function(r,d,p,f,g){var m=d.canvas,_="normal"===r;if(_||b[r])p.save(),p.setTransform(1,0,0,1,0,0),p.globalAlpha=f,_||(p.globalCompositeOperation=r),p.drawImage(m,g.x,g.y),p.restore();else{var v=y[r];if(!v)return;for(var x=p.getImageData(g.x,g.y,m.width,m.height),w=x.data,k=d.getImageData(0,0,m.width,m.height).data,S=0,C=w.length;S=2&&!e.hasHandles()){if(h>2){o=e._closed?"polygon":"polyline";for(var c=[],d=0;d3){i.sort(function(t,e){return e.length-t.length}),e+="switch(str.length){";for(var n=0;n=170&&tV.test(String.fromCharCode(t)))},tZ=t.isIdentifierChar=function(t){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||t>=170&&tF.test(String.fromCharCode(t))))};function tH(){this.line=p,this.column=r-f}function tG(){p=1,r=f=0,d=!0,tK()}function t$(t,i){o=r,e.locations&&(h=new tH),u=t,tK(),c=i,d=t.beforeExpr}function tW(){for(var t=r,s=e.onComment&&e.locations&&new tH,a=i.charCodeAt(r+=2);r8&&t<14)++r;else if(47===t){var s=i.charCodeAt(r+1);if(42===s)!function(){var t,n=e.onComment&&e.locations&&new tH,s=r,a=i.indexOf("*/",r+=2);if(-1===a&&C(r-2,"Unterminated comment"),r=a+2,e.locations)for(tU.lastIndex=s;(t=tU.exec(i))&&t.index=5760&&tB.test(String.fromCharCode(t)))++r;else break}}function tJ(t){if(t?r=a+1:a=r,e.locations&&(l=new tH),t)return tQ();if(r>=n)return t$(O);var s=i.charCodeAt(r);if(tq(s)||92===s)return t5();var o=function(t){switch(t){case 46:return(u=i.charCodeAt(r+1))>=48&&u<=57?t0(!0):(++r,t$(tp));case 40:return++r,t$(tl);case 41:return++r,t$(th);case 59:return++r,t$(tc);case 44:return++r,t$(tu);case 91:return++r,t$(ts);case 93:return++r,t$(tr);case 123:return++r,t$(ta);case 125:return++r,t$(to);case 58:return++r,t$(td);case 63:return++r,t$(tf);case 48:var s,o,l,h,u,c,g,_=i.charCodeAt(r+1);if(120===_||88===_)return r+=2,null==(h=tX(16))&&C(a+2,"Expected hexadecimal number"),tq(i.charCodeAt(r))&&C(r,"Identifier directly after number"),t$(T,h);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return t0(!1);case 34:case 39:return function(t){r++;for(var s="";;){r>=n&&C(a,"Unterminated string constant");var o=i.charCodeAt(r);if(o===t)return++r,t$(A,s);if(92===o){o=i.charCodeAt(++r);var l=/^[0-7]+/.exec(i.slice(r,r+3));for(l&&(l=l[0]);l&&parseInt(l,8)>255;)l=l.slice(0,-1);if("0"===l&&(l=null),++r,l)b&&C(r-2,"Octal literal in strict mode"),s+=String.fromCharCode(parseInt(l,8)),r+=l.length-1;else switch(o){case 110:s+="\n";break;case 114:s+="\r";break;case 120:s+=String.fromCharCode(t1(2));break;case 117:s+=String.fromCharCode(t1(4));break;case 85:s+=String.fromCharCode(t1(8));break;case 116:s+=" ";break;case 98:s+="\b";break;case 118:s+="\v";break;case 102:s+="\f";break;case 48:s+="\0";break;case 13:10===i.charCodeAt(r)&&++r;case 10:e.locations&&(f=r,++p);break;default:s+=String.fromCharCode(o)}}else(13===o||10===o||8232===o||8233===o)&&C(a,"Unterminated string constant"),s+=String.fromCharCode(o),++r}}(t);case 47:return c=i.charCodeAt(r+1),d?(++r,tQ()):61===c?tY(t_,2):tY(tg,1);case 37:case 42:return 61===i.charCodeAt(r+1)?tY(t_,2):tY(tA,1);case 124:case 38:return(g=i.charCodeAt(r+1))===t?tY(124===t?tb:tx,2):61===g?tY(t_,2):tY(124===t?tw:tS,1);case 94:return 61===i.charCodeAt(r+1)?tY(t_,2):tY(tk,1);case 43:case 45:return(s=i.charCodeAt(r+1))===t?45==s&&62==i.charCodeAt(r+2)&&tj.test(i.slice(m,r))?(r+=3,tW(),tK(),tJ()):tY(tv,2):61===s?tY(t_,2):tY(tE,1);case 60:case 62:return o=i.charCodeAt(r+1),l=1,o===t?(l=62===t&&62===i.charCodeAt(r+2)?3:2,61===i.charCodeAt(r+l))?tY(t_,l+1):tY(tT,l):33==o&&60==t&&45==i.charCodeAt(r+2)&&45==i.charCodeAt(r+3)?(r+=4,tW(),tK(),tJ()):(61===o&&(l=61===i.charCodeAt(r+2)?3:2),tY(tI,l));case 61:case 33:return 61===i.charCodeAt(r+1)?tY(tC,61===i.charCodeAt(r+2)?3:2):tY(61===t?tm:ty,1);case 126:return tY(ty,1)}return!1}(s);if(!1===o){var h=String.fromCharCode(s);if("\\"===h||tV.test(h))return t5();C(r,"Unexpected character '"+h+"'")}return o}function tY(t,e){var n=i.slice(r,r+e);r+=e,t$(t,n)}function tQ(){for(var t,e,s="",a=r;;){r>=n&&C(a,"Unterminated regular expression");var o=i.charAt(r);if(tj.test(o)&&C(a,"Unterminated regular expression"),t)t=!1;else{if("["===o)e=!0;else if("]"===o&&e)e=!1;else if("/"===o&&!e)break;t="\\"===o}++r}var s=i.slice(a,r);++r;var l=t2();l&&!/^[gmsiy]*$/.test(l)&&C(a,"Invalid regexp flag");try{var h=new RegExp(s,l)}catch(t){t instanceof SyntaxError&&C(a,t.message),C(t)}return t$(E,h)}function tX(t,e){for(var n=r,s=0,a=0,o=null==e?1/0:e;a=97?h-97+10:h>=65?h-65+10:h>=48&&h<=57?h-48:1/0)>=t)break;++r,s=s*t+l}return r===n||null!=e&&r-n!==e?null:s}function t0(t){var e=r,n=!1,s=48===i.charCodeAt(r);t||null!==tX(10)||C(e,"Invalid number"),46===i.charCodeAt(r)&&(++r,tX(10),n=!0);var a=i.charCodeAt(r);(69===a||101===a)&&((43===(a=i.charCodeAt(++r))||45===a)&&++r,null===tX(10)&&C(e,"Invalid number"),n=!0),tq(i.charCodeAt(r))&&C(r,"Identifier directly after number");var o,l=i.slice(e,r);return n?o=parseFloat(l):s&&1!==l.length?/[89]/.test(l)||b?C(e,"Invalid number"):o=parseInt(l,8):o=parseInt(l,10),t$(T,o)}function t1(t){var e=tX(16,t);return null===e&&C(a,"Bad character escape sequence"),e}function t2(){x=!1;for(var t,e=!0,n=r;;){var s=i.charCodeAt(r);if(tZ(s))x&&(t+=i.charAt(r)),++r;else if(92===s){x||(t=i.slice(n,r)),x=!0,117!=i.charCodeAt(++r)&&C(r,"Expecting Unicode escape sequence \\uXXXX"),++r;var a=t1(4),o=String.fromCharCode(a);o||C(r-1,"Invalid Unicode escape"),(e?tq(a):tZ(a))||C(r-4,"Invalid Unicode escape"),t+=o}else break;e=!1}return x?t:i.slice(n,r)}function t5(){var t=t2(),e=P;return!x&&tR(t)&&(e=tn[t]),t$(e,t)}function t3(){g=a,m=o,_=h,tJ()}function t6(t){if(b=t,r=a,e.locations)for(;r=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"use strict"===t.expression.value}function ei(t){if(u===t)return t3(),!0}function en(){return!e.strictSemicolons&&(u===O||u===to||tj.test(i.slice(m,a)))}function es(){ei(tc)||en()||ea()}function er(t){u===t?t3():ea()}function ea(){C(a,"Unexpected token")}function eo(t){"Identifier"!==t.type&&"MemberExpression"!==t.type&&C(t.start,"Assigning to rvalue"),b&&"Identifier"===t.type&&tz(t.name)&&C(t.start,"Assigning to "+t.name+" in strict mode")}var el={kind:"loop"},eh={kind:"switch"};function eu(){(u===tg||u===t_&&"/="==c)&&tJ(!0);var t,n,s=u,r=t8();switch(s){case M:case z:t3();var o=s===M;ei(tc)||en()?r.label=null:u!==P?ea():(r.label=eS(),es());for(var l=0;li){var r=t7(e);r.left=e,r.operator=c;var a=u;return t3(),r.right=t(ev(),s,n),t(et(r,a===tb||a===tx?"LogicalExpression":"BinaryExpression"),i,n)}return e}(ev(),-1,t);if(ei(tf)){var i=t7(e);return i.test=e,i.consequent=em(!0),er(td),i.alternate=em(!0,t),et(i,"ConditionalExpression")}return e}(t);if(u.isAssign){var i=t7(e);return i.operator=c,i.left=e,t3(),i.right=e_(t),eo(e),et(i,"AssignmentExpression")}return e}function ev(){if(u.prefix){var t=t8(),e=u.isUpdate;return t.operator=c,t.prefix=!0,d=!0,t3(),t.argument=ev(),e?eo(t.argument):b&&"delete"===t.operator&&"Identifier"===t.argument.type&&C(t.start,"Deleting local variable in strict mode"),et(t,e?"UpdateExpression":"UnaryExpression")}for(var i=ey(eb());u.postfix&&!en();){var t=t7(i);t.operator=c,t.prefix=!1,t.argument=i,eo(i),t3(),i=et(t,"UpdateExpression")}return i}function ey(t,e){if(ei(tp)){var i=t7(t);return i.object=t,i.property=eS(!0),i.computed=!1,ey(et(i,"MemberExpression"),e)}if(ei(ts)){var i=t7(t);return i.object=t,i.property=em(),i.computed=!0,er(tr),ey(et(i,"MemberExpression"),e)}if(!(!e&&ei(tl)))return t;var i=t7(t);return i.callee=t,i.arguments=ek(th,!1),ey(et(i,"CallExpression"),e)}function eb(){switch(u){case Q:var t,n=t8();return t3(),et(n,"ThisExpression");case P:return eS();case T:case A:case E:var n=t8();return n.value=c,n.raw=i.slice(a,o),t3(),et(n,"Literal");case X:case tt:case te:var n=t8();return n.value=u.atomValue,n.raw=u.keyword,t3(),et(n,"Literal");case tl:var s=l,r=a;t3();var d=em();return d.start=r,d.end=o,e.locations&&(d.loc.start=s,d.loc.end=h),e.ranges&&(d.range=[r,o]),er(th),d;case ts:var n=t8();return t3(),n.elements=ek(tr,!0,!0),et(n,"ArrayExpression");case ta:return function(){var t=t8(),i=!0,n=!1;for(t.properties=[],t3();!ei(to);){if(i)i=!1;else if(er(tu),e.allowTrailingCommas&&ei(to))break;var s,r={key:ex()},a=!1;if(ei(td)?(r.value=em(!0),s=r.kind="init"):e.ecmaVersion>=5&&"Identifier"===r.key.type&&("get"===r.key.name||"set"===r.key.name)?(a=n=!0,s=r.kind=r.key.name,r.key=ex(),u!==tl&&ea(),r.value=ew(t8(),!1)):ea(),"Identifier"===r.key.type&&(b||n))for(var o=0;o=0)for(var o=0;o=t)break;t+=n[1]}return t}function o(e){return t.substring(a(e.range[0]),a(e.range[1]))}function l(e,i){for(var n=a(e.range[0]),s=a(e.range[1]),o=0,l=r.length-1;l>=0;l--)if(n>r[l][0]){o=l+1;break}r.splice(o,0,[n,i.length-s+n]),t=t.substring(0,n)+i+t.substring(s)}var u,p=(i=i||{}).url||"",f=i.sourceMaps,g=i.paperFeatures||{},m=i.source||t,_=i.offset||0,v=tl.agent,y=v.versionNumber,b=!1,x=/\r\n|\n|\r/mg;if(f&&(v.chrome&&y>=30||v.webkit&&y>=537.76||v.firefox&&y>=23||v.node)){if(v.node)_-=2;else if(n&&p&&!n.location.href.indexOf(p)){var w=s.getElementsByTagName("html")[0].innerHTML;_=w.substr(0,w.indexOf(t)+1).match(x).length+1}var k=["AA"+function(t){var e="";for(t=(Math.abs(t)<<1)+(t<0?1:0);t||!e;){var i=31&t;(t>>=5)&&(i|=32),e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[i]}return e}((b=_>0&&!(v.chrome&&y>=36||v.safari&&y>=600||v.firefox&&y>=40||v.node))?0:_)+"A"];k.length=(t.match(x)||[]).length+1+(b?_:0),u={version:3,file:p,names:[],mappings:k.join(";AACA"),sourceRoot:"",sources:[p],sourcesContent:[m]}}return(!1!==g.operatorOverloading||!1!==g.moduleExports)&&function e(i,n,s){if(i){for(var r in i)if("range"!==r&&"loc"!==r){var h=i[r];if(Array.isArray(h))for(var u=0,p=h.length;u]/.test(i.operator)||"MemberExpression"===g&&i.computed)){if("UpdateExpression"===e.type){var n=o(e.argument),m="__$__("+n+', "'+e.operator[0]+'", 1)',_=n+" = "+m;e.prefix?_="("+_+")":("AssignmentExpression"===g||"VariableDeclarator"===g||"BinaryExpression"===g)&&(o(i.left||i.id)===n&&(_=m),_=n+"; "+_),l(e,_)}else if(/^.=$/.test(e.operator)&&"Literal"!==e.left.type){var h=o(e.left),u=o(e.right),m=h+" = __$__("+h+', "'+e.operator[0]+'", '+u+")";l(e,/^\(.*\)$/.test(o(e))?"("+m+")":m)}}}}(i,n),!1!==s.moduleExports&&function(t){switch(t.type){case"ExportDefaultDeclaration":l({range:[t.start,t.declaration.start]},"module.exports = ");break;case"ExportNamedDeclaration":var e=t.declaration,i=t.specifiers;if(e){var n=e.declarations;n&&(n.forEach(function(t){l(t,"module.exports."+o(t))}),l({range:[t.start,e.start+e.kind.length]},""))}else if(i){var s=i.map(function(t){var e=o(t);return"module.exports."+e+" = "+e+"; "}).join("");s&&l(t,s)}}}(i)}}(h(t,{ranges:!0,preserveParens:!0,sourceType:"module"}),null,g),u&&(b&&(t=Array(_+1).join("\n")+t),/^(inline|both)$/.test(f)&&(t+="\n//# sourceMappingURL=data:application/json;base64,"+e.btoa(unescape(encodeURIComponent(JSON.stringify(u))))),t+="\n//# sourceURL="+(p||"paperscript")),{url:p,source:m,code:t,map:u}}function y(t,e,i){tl=e;var n,a=e.getView(),o=/\btool\.\w+|\s+on(?:Key|Mouse)(?:Up|Down|Move|Drag)\b/.test(t)&&!/\bnew\s+Tool\b/.test(t)?new te:null,l=o?o._events:[],h=["onFrame","onResize"].concat(l),u=[],c=[];function d(e,i){for(var n in e)(i||!/^_/.test(n))&&RegExp("([\\b\\s\\W]|^)"+n.replace(/\$/g,"\\$")+"\\b").test(t)&&(u.push(n),c.push(e[n]))}t=("object"==typeof t?t:v(t,i)).code,d({__$__:g,$__:_,paper:e,tool:o},!0),d(e),t="var module = { exports: {} }; "+t;var p=r.each(h,function(e){RegExp("\\s+"+e+"\\b").test(t)&&(u.push(e),this.push("module.exports."+e+" = "+e+";"))},[]).join("\n");p&&(t+="\n"+p),t+="\nreturn module.exports;";var m=tl.agent;if(s&&(m.chrome||m.firefox&&m.versionNumber<40)){var y=s.createElement("script"),b=s.head||s.getElementsByTagName("head")[0];m.firefox&&(t="\n"+t),y.appendChild(s.createTextNode("document.__paperscript__ = function("+u+") {"+t+"\n}")),b.appendChild(y),n=s.__paperscript__,delete s.__paperscript__,b.removeChild(y)}else n=Function(u,t);var p=n&&n.apply(e,c),x=p||{};return r.each(l,function(t){var e=x[t];e&&(o[t]=e)}),a&&(x.onResize&&a.setOnResize(x.onResize),a.emit("resize",{size:a.size,delta:new f}),x.onFrame&&a.setOnFrame(x.onFrame),a.requestUpdate()),p}function b(t){if(/^text\/(?:x-|)paperscript$/.test(t.type)&&"true"!==o.getAttribute(t,"ignore")){var e=o.getAttribute(t,"canvas"),i=s.getElementById(e),n=t.src||t.getAttribute("data-src"),r=o.hasAttribute(t,"async"),a="data-paper-scope";if(!i)throw Error('Unable to find canvas with id "'+e+'"');var l=o.get(i.getAttribute(a))||new o().setup(i);return i.setAttribute(a,l._id),n?tn.request({url:n,async:r,mimeType:"text/plain",onLoad:function(t){y(t,l,n)}}):y(t.innerHTML,l,t.baseURI),t.setAttribute("data-paper-ignore","true"),l}}function x(){r.each(s&&s.getElementsByTagName("script"),b)}return f.inject(p),m.inject(p),U.inject(p),n&&("complete"===s.readyState?setTimeout(x):$.add(n,{load:x})),{compile:v,execute:y,load:function(t){return t?b(t):x()},parse:h,calculateBinary:g,calculateUnary:_}}).call(this);var tl=new(o.inject(r.exports,{Base:r,Numerical:d,Key:Q,DomEvent:$,DomElement:G,document:s,window:n,Symbol:A,PlacedSymbol:E}));return tl.agent.node&&u("gFNhN")(tl),"function"==typeof define&&define.amd?define("paper",tl):t&&(t.exports=tl),tl}).call(this,"object"==typeof self?self:null)}),c("gFNhN",function(t,e){}),c("7bbl5",function(t,e){r(t.exports,"isIdentifierStart",function(){return p}),r(t.exports,"isIdentifierChar",function(){return f}),r(t.exports,"TokenType",function(){return g}),r(t.exports,"keywordTypes",function(){return y}),r(t.exports,"tokTypes",function(){return x}),r(t.exports,"lineBreak",function(){return w}),r(t.exports,"lineBreakG",function(){return k}),r(t.exports,"isNewLine",function(){return S}),r(t.exports,"nonASCIIwhitespace",function(){return I}),r(t.exports,"Position",function(){return B}),r(t.exports,"SourceLocation",function(){return D}),r(t.exports,"getLineInfo",function(){return V}),r(t.exports,"defaultOptions",function(){return F}),r(t.exports,"Parser",function(){return q}),r(t.exports,"TokContext",function(){return ti}),r(t.exports,"tokContexts",function(){return tn}),r(t.exports,"Node",function(){return tu}),r(t.exports,"Token",function(){return tD}),r(t.exports,"version",function(){return tU}),r(t.exports,"parse",function(){return tq}),r(t.exports,"parseExpressionAt",function(){return tZ}),r(t.exports,"tokenizer",function(){return tH});var i=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,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,71,5,2,1,3,3,2,0,2,1,13,9,120,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,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,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,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],n=[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,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,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,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,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,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,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,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,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,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,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,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],s="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",a={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"},o="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",l={5:o,"5module":o+" export import",6:o+" const class extends export import super"},h=/^in(stanceof)?$/,u=RegExp("["+s+"]"),c=RegExp("["+s+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function d(t,e){for(var i=65536,n=0;nt);n+=2)if((i+=e[n+1])>=t)return!0;return!1}function p(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&&d(t,n)))}function f(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&c.test(String.fromCharCode(t)):!1!==e&&(d(t,n)||d(t,i)))))}var g=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 g(t,{beforeExpr:!0,binop:e})}var _={beforeExpr:!0},v={startsExpr:!0},y={};function b(t,e){return void 0===e&&(e={}),e.keyword=t,y[t]=new g(t,e)}var x={num:new g("num",v),regexp:new g("regexp",v),string:new g("string",v),name:new g("name",v),privateId:new g("privateId",v),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",_),semi:new g(";",_),colon:new g(":",_),dot:new g("."),question:new g("?",_),questionDot:new g("?."),arrow:new g("=>",_),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",_),backQuote:new g("`",v),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{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 g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:m("%",10),star:m("*",10),slash:m("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:m("??",1),_break:b("break"),_case:b("case",_),_catch:b("catch"),_continue:b("continue"),_debugger:b("debugger"),_default:b("default",_),_do:b("do",{isLoop:!0,beforeExpr:!0}),_else:b("else",_),_finally:b("finally"),_for:b("for",{isLoop:!0}),_function:b("function",v),_if:b("if"),_return:b("return",_),_switch:b("switch"),_throw:b("throw",_),_try:b("try"),_var:b("var"),_const:b("const"),_while:b("while",{isLoop:!0}),_with:b("with"),_new:b("new",{beforeExpr:!0,startsExpr:!0}),_this:b("this",v),_super:b("super",v),_class:b("class",v),_extends:b("extends",_),_export:b("export"),_import:b("import",v),_null:b("null",v),_true:b("true",v),_false:b("false",v),_in:b("in",{beforeExpr:!0,binop:7}),_instanceof:b("instanceof",{beforeExpr:!0,binop:7}),_typeof:b("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:b("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:b("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,k=RegExp(w.source,"g");function S(t){return 10===t||13===t||8232===t||8233===t}function C(t,e,i){void 0===i&&(i=t.length);for(var n=e;n>10)+55296,(1023&t)+56320)}var R=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,B=function(t,e){this.line=t,this.column=e};B.prototype.offset=function(t){return new B(this.line,this.column+t)};var D=function(t,e,i){this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)};function V(t,e){for(var i=1,n=0;;){var s=C(t,n,e);if(s<0)return new B(i,e-n);++i,n=s}}var F={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},j=!1;function U(t,e){return 2|(t?4:0)|(e?8:0)}var q=function(t,e,i){this.options=t=function(t){var e,i={};for(var n in F)i[n]=t&&O(t,n)?t[n]:F[n];if("latest"===i.ecmaVersion?i.ecmaVersion=1e8:null==i.ecmaVersion?(!j&&"object"==typeof console&&console.warn&&(j=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),i.ecmaVersion=11):i.ecmaVersion>=2015&&(i.ecmaVersion-=2009),null==i.allowReserved&&(i.allowReserved=i.ecmaVersion<5),t&&null!=t.allowHashBang||(i.allowHashBang=i.ecmaVersion>=14),M(i.onToken)){var s=i.onToken;i.onToken=function(t){return s.push(t)}}return M(i.onComment)&&(i.onComment=(e=i.onComment,function(t,n,s,r,a,o){var l={type:t?"Block":"Line",value:n,start:s,end:r};i.locations&&(l.loc=new D(this,a,o)),i.ranges&&(l.range=[s,r]),e.push(l)})),i}(t),this.sourceFile=t.sourceFile,this.keywords=L(l[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var n="";!0!==t.allowReserved&&(n=a[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(n+=" await")),this.reservedWords=L(n);var s=(n?n+" ":"")+a.strict;this.reservedWordsStrict=L(s),this.reservedWordsStrictBind=L(s+" "+a.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=x.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.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Z={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};q.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},Z.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Z.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Z.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Z.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t];if(e.inClassFieldInit||256&e.flags)return!1;if(2&e.flags)return(4&e.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Z.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(64&e)>0||i||this.options.allowSuperOutsideMethod},Z.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Z.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Z.allowNewDotTarget.get=function(){var t=this.currentThisScope(),e=t.flags,i=t.inClassFieldInit;return(258&e)>0||i},Z.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},q.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,n=0;n=,?^&]/.test(s)||"!"===s&&"="===this.input.charAt(n+1))}t+=e[0].length,T.lastIndex=t,t+=T.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===x.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===x.eof||this.type===x.braceR||w.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(x.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")};var $=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};H.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}},H.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,n=t.doubleProto;if(!e)return i>=0||n>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},H.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&n<56320)return!0;if(p(n,!0)){for(var s=i+1;f(n=this.input.charCodeAt(s),!0);)++s;if(92===n||n>55295&&n<56320)return!0;var r=this.input.slice(i,s);if(!h.test(r))return!0}return!1},W.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;T.lastIndex=this.pos;var t,e=T.exec(this.input),i=this.pos+e[0].length;return!w.test(this.input.slice(this.pos,i))&&"function"===this.input.slice(i,i+8)&&(i+8===this.input.length||!(f(t=this.input.charCodeAt(i+8))||t>55295&&t<56320))},W.parseStatement=function(t,e,i){var n,s=this.type,r=this.startNode();switch(this.isLet(t)&&(s=x._var,n="let"),s){case x._break:case x._continue:return this.parseBreakContinueStatement(r,s.keyword);case x._debugger:return this.parseDebuggerStatement(r);case x._do:return this.parseDoStatement(r);case x._for:return this.parseForStatement(r);case x._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!t);case x._class:return t&&this.unexpected(),this.parseClass(r,!0);case x._if:return this.parseIfStatement(r);case x._return:return this.parseReturnStatement(r);case x._switch:return this.parseSwitchStatement(r);case x._throw:return this.parseThrowStatement(r);case x._try:return this.parseTryStatement(r);case x._const:case x._var:return n=n||this.value,t&&"var"!==n&&this.unexpected(),this.parseVarStatement(r,n);case x._while:return this.parseWhileStatement(r);case x._with:return this.parseWithStatement(r);case x.braceL:return this.parseBlock(!0,r);case x.semi:return this.parseEmptyStatement(r);case x._export:case x._import:if(this.options.ecmaVersion>10&&s===x._import){T.lastIndex=this.pos;var a=T.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(r,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'")),s===x._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!t);var h=this.value,u=this.parseExpression();if(s===x.name&&"Identifier"===u.type&&this.eat(x.colon))return this.parseLabeledStatement(r,h,u,t);return this.parseExpressionStatement(r,u)}},W.parseBreakContinueStatement=function(t,e){var i="break"===e;this.next(),this.eat(x.semi)||this.insertSemicolon()?t.label=null:this.type!==x.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var n=0;n=6?this.eat(x.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},W.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(K),this.enterScope(0),this.expect(x.parenL),this.type===x.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===x._var||this.type===x._const||i){var n=this.startNode(),s=i?"let":this.value;return(this.next(),this.parseVar(n,!0,s),this.finishNode(n,"VariableDeclaration"),(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===n.declarations.length)?(this.options.ecmaVersion>=9&&(this.type===x._in?e>-1&&this.unexpected(e):t.await=e>-1),this.parseForIn(t,n)):(e>-1&&this.unexpected(e),this.parseFor(t,n))}var r=this.isContextual("let"),a=!1,o=this.containsEsc,l=new $,h=this.start,u=e>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===x._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===x._in&&this.unexpected(e),t.await=!0):a&&this.options.ecmaVersion>=8&&(u.start!==h||o||"Identifier"!==u.type||"async"!==u.name?this.options.ecmaVersion>=9&&(t.await=!1):this.unexpected()),r&&a&&this.raise(u.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(u,!1,l),this.checkLValPattern(u),this.parseForIn(t,u)):(this.checkExpressionErrors(l,!0),e>-1&&this.unexpected(e),this.parseFor(t,u))},W.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,Q|(i?0:X),!1,e)},W.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(x._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(x.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},W.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(x.braceL),this.labels.push(J),this.enterScope(0);for(var e,i=!1;this.type!==x.braceR;)if(this.type===x._case||this.type===x._default){var n=this.type===x._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),n?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(x.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(),w.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 Y=[];W.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(x.parenR),t},W.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===x._catch){var e=this.startNode();this.next(),this.eat(x.parenL)?e.param=this.parseCatchClauseParam():(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(x._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,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")},W.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(K),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,i,n){for(var s=0,r=this.labels;s=0;o--){var l=this.labels[o];if(l.statementStart===t.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:e,kind:a,statementStart:this.start}),t.body=this.parseStatement(n?-1===n.indexOf("label")?n+"label":n:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},W.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},W.parseBlock=function(t,e,i){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(x.braceL),t&&this.enterScope(0);this.type!==x.braceR;){var n=this.parseStatement(null);e.body.push(n)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},W.parseFor=function(t,e){return t.init=e,this.expect(x.semi),t.test=this.type===x.semi?null:this.parseExpression(),this.expect(x.semi),t.update=this.type===x.parenR?null:this.parseExpression(),this.expect(x.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},W.parseForIn=function(t,e){var i=this.type===x._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(x.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},W.parseVar=function(t,e,i,n){for(t.declarations=[],t.kind=i;;){var s=this.startNode();if(this.parseVarId(s,i),this.eat(x.eq)?s.init=this.parseMaybeAssign(e):n||"const"!==i||this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of")?n||"Identifier"===s.id.type||e&&(this.type===x._in||this.isContextual("of"))?s.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),t.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(x.comma))break}return t},W.parseVarId=function(t,e){t.id=this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var Q=1,X=2;function tt(t,e){var i=t.computed,n=t.key;return!i&&("Identifier"===n.type&&n.name===e||"Literal"===n.type&&n.value===e)}W.parseFunction=function(t,e,i,n,s){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===x.star&&e&X&&this.unexpected(),t.generator=this.eat(x.star)),this.options.ecmaVersion>=8&&(t.async=!!n),e&Q&&(t.id=4&e&&this.type!==x.name?null:this.parseIdent(),t.id&&!(e&X)&&this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var r=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(U(t.async,t.generator)),e&Q||(t.id=this.type===x.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,s),this.yieldPos=r,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(t,e&Q?"FunctionDeclaration":"FunctionExpression")},W.parseFunctionParams=function(t){this.expect(x.parenL),t.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},W.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var n=this.enterClassBody(),s=this.startNode(),r=!1;for(s.body=[],this.expect(x.braceL);this.type!==x.braceR;){var a=this.parseClassElement(null!==t.superClass);a&&(s.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(r&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),r=!0):a.key&&"PrivateIdentifier"===a.key.type&&function(t,e){var i=e.key.name,n=t[i],s="true";return("MethodDefinition"===e.type&&("get"===e.kind||"set"===e.kind)&&(s=(e.static?"s":"i")+e.kind),"iget"===n&&"iset"===s||"iset"===n&&"iget"===s||"sget"===n&&"sset"===s||"sset"===n&&"sget"===s)?(t[i]="true",!1):!!n||(t[i]=s,!1)}(n,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},W.parseClassElement=function(t){if(this.eat(x.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),n="",s=!1,r=!1,a="method",o=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(x.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===x.star?o=!0:n="static"}if(i.static=o,!n&&e>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===x.star)&&!this.canInsertSemicolon()?r=!0:n="async"),!n&&(e>=9||!r)&&this.eat(x.star)&&(s=!0),!n&&!r&&!s){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=l:n=l)}if(n?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=n,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===x.parenL||"method"!==a||s||r){var h=!i.static&&tt(i,"constructor");h&&"method"!==a&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=h?"constructor":a,this.parseClassMethod(i,s,r,h&&t)}else this.parseClassField(i);return i},W.isClassElementNameStart=function(){return this.type===x.name||this.type===x.privateId||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword},W.parseClassElementName=function(t){this.type===x.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},W.parseClassMethod=function(t,e,i,n){var s=t.key;"constructor"===t.kind?(e&&this.raise(s.start,"Constructor can't be a generator"),i&&this.raise(s.start,"Constructor can't be an async method")):t.static&&tt(t,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var r=t.value=this.parseMethod(e,i,n);return"get"===t.kind&&0!==r.params.length&&this.raiseRecoverable(r.start,"getter should have no params"),"set"===t.kind&&1!==r.params.length&&this.raiseRecoverable(r.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===r.params[0].type&&this.raiseRecoverable(r.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},W.parseClassField=function(t){if(tt(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&tt(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(x.eq)){var e=this.currentThisScope(),i=e.inClassFieldInit;e.inClassFieldInit=!0,t.value=this.parseMaybeAssign(),e.inClassFieldInit=i}else t.value=null;return this.semicolon(),this.finishNode(t,"PropertyDefinition")},W.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==x.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},W.parseClassId=function(t,e){this.type===x.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},W.parseClassSuper=function(t){t.superClass=this.eat(x._extends)?this.parseExprSubscripts(null,!1):null},W.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},W.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var n=this.privateNameStack.length,s=0===n?null:this.privateNameStack[n-1],r=0;r=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==x.string&&this.unexpected(),t.source=this.parseExprAtom(),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},W.parseExport=function(t,e){if(this.next(),this.eat(x.star))return this.parseExportAllDeclaration(t,e);if(this.eat(x._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null;else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==x.string&&this.unexpected(),t.source=this.parseExprAtom();else{for(var i=0,n=t.specifiers;i=13&&this.type===x.string){var t=this.parseLiteral(this.value);return R.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},W.adaptDirectivePrologue=function(t){for(var e=0;e=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var te=q.prototype;te.toAssignable=function(t,e,i){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"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var n=0,s=t.properties;n=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(x._function))return this.overrideContext(tn.f_expr),this.parseFunction(this.startNodeAt(r,a),0,!1,!0,e);if(s&&!this.canInsertSemicolon()){if(this.eat(x.arrow))return this.parseArrowExpression(this.startNodeAt(r,a),[l],!1,e);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===x.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(x.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(r,a),[l],!0,e)}return l;case x.regexp:var h=this.value;return(n=this.parseLiteral(h.value)).regex={pattern:h.pattern,flags:h.flags},n;case x.num:case x.string:return this.parseLiteral(this.value);case x._null:case x._true:case x._false:return(n=this.startNode()).value=this.type===x._null?null:this.type===x._true,n.raw=this.type.keyword,this.next(),this.finishNode(n,"Literal");case x.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(s,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(t.parenthesizedAssign=u),t.parenthesizedBind<0&&(t.parenthesizedBind=u)),c;case x.bracketL:return n=this.startNode(),this.next(),n.elements=this.parseExprList(x.bracketR,!0,!0,t),this.finishNode(n,"ArrayExpression");case x.braceL:return this.overrideContext(tn.b_expr),this.parseObj(!1,t);case x._function:return n=this.startNode(),this.next(),this.parseFunction(n,0);case x._class:return this.parseClass(this.startNode(),!1);case x._new:return this.parseNew();case x.backQuote:return this.parseTemplate();case x._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(i);return this.unexpected();default:return this.parseExprAtomDefault()}},tr.parseExprAtomDefault=function(){this.unexpected()},tr.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===x.parenL&&!t)return this.parseDynamicImport(e);if(this.type===x.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);return i.name="import",e.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(e)}this.unexpected()},tr.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),!this.eat(x.parenR)){var e=this.start;this.eat(x.comma)&&this.eat(x.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},tr.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},tr.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).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},tr.parseParenExpression=function(){this.expect(x.parenL);var t=this.parseExpression();return this.expect(x.parenR),t},tr.shouldParseArrow=function(t){return!this.canInsertSemicolon()},tr.parseParenAndDistinguishExpression=function(t,e){var i,n=this.start,s=this.startLoc,r=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,h=[],u=!0,c=!1,d=new $,p=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==x.parenR;){if(u?u=!1:this.expect(x.comma),r&&this.afterTrailingComma(x.parenR,!0)){c=!0;break}if(this.type===x.ellipsis){a=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}h.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var g=this.lastTokEnd,m=this.lastTokEndLoc;if(this.expect(x.parenR),t&&this.shouldParseArrow(h)&&this.eat(x.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=p,this.awaitPos=f,this.parseParenArrowList(n,s,h,e);(!h.length||c)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(d,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=f||this.awaitPos,h.length>1?((i=this.startNodeAt(o,l)).expressions=h,this.finishNodeAt(i,"SequenceExpression",g,m)):i=h[0]}else i=this.parseParenExpression();if(!this.options.preserveParens)return i;var _=this.startNodeAt(n,s);return _.expression=i,this.finishNode(_,"ParenthesizedExpression")},tr.parseParenItem=function(t){return t},tr.parseParenArrowList=function(t,e,i,n){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,n)};var ta=[];tr.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===x.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var i=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var n=this.start,s=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),n,s,!0,!1),this.eat(x.parenL)?t.arguments=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1):t.arguments=ta,this.finishNode(t,"NewExpression")},tr.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===x.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===x.backQuote,this.finishNode(i,"TemplateElement")},tr.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var n=this.parseTemplateElement({isTagged:e});for(i.quasis=[n];!n.tail;)this.type===x.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(x.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(x.braceR),i.quasis.push(n=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},tr.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===x.name||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===x.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},tr.parseObj=function(t,e){var i=this.startNode(),n=!0,s={};for(i.properties=[],this.next();!this.eat(x.braceR);){if(n)n=!1;else if(this.expect(x.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(x.braceR))break;var r=this.parseProperty(t,e);t||this.checkPropClash(r,s,e),i.properties.push(r)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},tr.parseProperty=function(t,e){var i,n,s,r,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(x.ellipsis))return t?(a.argument=this.parseIdent(!1),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,e),this.type===x.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)&&(s=this.start,r=this.startLoc),t||(i=this.eat(x.star)));var o=this.containsEsc;return this.parsePropertyName(a),!t&&!o&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(a)?(n=!0,i=this.options.ecmaVersion>=9&&this.eat(x.star),this.parsePropertyName(a)):n=!1,this.parsePropertyValue(a,t,i,n,s,r,e,o),this.finishNode(a,"Property")},tr.parseGetterSetter=function(t){t.kind=t.key.name,this.parsePropertyName(t),t.value=this.parseMethod(!1);var e="get"===t.kind?0:1;if(t.value.params.length!==e){var i=t.value.start;"get"===t.kind?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},tr.parsePropertyValue=function(t,e,i,n,s,r,a,o){(i||n)&&this.type===x.colon&&this.unexpected(),this.eat(x.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),t.kind="init"):this.options.ecmaVersion>=6&&this.type===x.parenL?(e&&this.unexpected(),t.kind="init",t.method=!0,t.value=this.parseMethod(i,n)):e||o||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===x.comma||this.type===x.braceR||this.type===x.eq?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((i||n)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=s),t.kind="init",e?t.value=this.parseMaybeDefault(s,r,this.copyNode(t.key)):this.type===x.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),t.value=this.parseMaybeDefault(s,r,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.shorthand=!0):this.unexpected():((i||n)&&this.unexpected(),this.parseGetterSetter(t))},tr.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(x.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(x.bracketR),t.key;t.computed=!1}return t.key=this.type===x.num||this.type===x.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},tr.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},tr.parseMethod=function(t,e,i){var n=this.startNode(),s=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=t),this.options.ecmaVersion>=8&&(n.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|U(e,n.generator)|(i?128:0)),this.expect(x.parenL),n.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0,!1),this.yieldPos=s,this.awaitPos=r,this.awaitIdentPos=a,this.finishNode(n,"FunctionExpression")},tr.parseArrowExpression=function(t,e,i,n){var s=this.yieldPos,r=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|U(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,n),this.yieldPos=s,this.awaitPos=r,this.awaitIdentPos=a,this.finishNode(t,"ArrowFunctionExpression")},tr.parseFunctionBody=function(t,e,i,n){var s=e&&this.type!==x.braceL,r=this.strict,a=!1;if(s)t.body=this.parseMaybeAssign(n),t.expression=!0,this.checkParams(t,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);(!r||o)&&(a=this.strictDirective(this.end))&&o&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],a&&(this.strict=!0),this.checkParams(t,!r&&!a&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,a&&!r),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=l}this.exitScope()},tr.isSimpleParamList=function(t){for(var e=0;e-1||s.functions.indexOf(t)>-1||s.var.indexOf(t)>-1,s.lexical.push(t),this.inModule&&1&s.flags&&delete this.undefinedExports[t]}else if(4===e)this.currentScope().lexical.push(t);else if(3===e){var r=this.currentScope();n=this.treatFunctionsAsVar?r.lexical.indexOf(t)>-1:r.lexical.indexOf(t)>-1||r.var.indexOf(t)>-1,r.functions.push(t)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];if(o.lexical.indexOf(t)>-1&&!(32&o.flags&&o.lexical[0]===t)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(t)>-1){n=!0;break}if(o.var.push(t),this.inModule&&1&o.flags&&delete this.undefinedExports[t],259&o.flags)break}n&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},tl.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},tl.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},tl.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags)return e}},tl.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(259&e.flags&&!(16&e.flags))return e}};var tu=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new D(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},tc=q.prototype;function td(t,e,i,n){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=n),this.options.ranges&&(t.range[1]=i),t}tc.startNode=function(){return new tu(this,this.start,this.startLoc)},tc.startNodeAt=function(t,e){return new tu(this,t,e)},tc.finishNode=function(t,e){return td.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},tc.finishNodeAt=function(t,e,i,n){return td.call(this,t,e,i,n)},tc.copyNode=function(t){var e=new tu(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};for(var tp="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",tf=tp+" Extended_Pictographic",tg=tf+" EBase EComp EMod EPres ExtPict",tm={9:tp,10:tf,11:tf,12:tg,13:tg,14:tg},t_={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},tv="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",ty="Adlam Adlm 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 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",tb=ty+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",tx=tb+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",tw=tx+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",tk=tw+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",tS={9:ty,10:tb,11:tx,12:tw,13:tk,14:tk+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},tC={},tI=0,tT=[9,10,11,12,13,14];tI=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=tC[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function tO(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function tM(t){return t>=65&&t<=90||t>=97&&t<=122}function tN(t){return tM(t)||95===t}function tL(t){return t>=48&&t<=57}function tz(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function tR(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}function tB(t){return t>=48&&t<=55}tP.prototype.reset=function(t,e,i){var n=-1!==i.indexOf("v"),s=-1!==i.indexOf("u");this.start=0|t,this.source=e+"",this.flags=i,n&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)},tP.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},tP.prototype.at=function(t,e){void 0===e&&(e=!1);var i=this.source,n=i.length;if(t>=n)return -1;var s=i.charCodeAt(t);if(!(e||this.switchU)||s<=55295||s>=57344||t+1>=n)return s;var r=i.charCodeAt(t+1);return r>=56320&&r<=57343?(s<<10)+r-0x35fdc00:s},tP.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var i=this.source,n=i.length;if(t>=n)return n;var s,r=i.charCodeAt(t);return!(e||this.switchU)||r<=55295||r>=57344||t+1>=n||(s=i.charCodeAt(t+1))<56320||s>57343?t+1:t+2},tP.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},tP.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},tP.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},tP.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},tP.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var i=this.pos,n=0;n-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===a&&(n=!0),"v"===a&&(s=!0)}this.options.ecmaVersion>=15&&n&&s&&this.raise(t.start,"Invalid regular expression flag")},tE.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&function(t){for(var e in t)return!0;return!1}(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},tE.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,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,i=t.backReferenceNames;e=16;for(e&&(t.branchID=new tA(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},tE.regexp_alternative=function(t){for(;t.pos=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},tE.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},tE.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},tE.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var n=0,s=-1;if(this.regexp_eatDecimalDigits(t)&&(n=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue),t.eat(125)))return -1!==s&&s=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},tE.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)},tE.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},tE.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!tO(e)&&(t.lastIntValue=e,t.advance(),!0)},tE.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;-1!==(i=t.current())&&!tO(i);)t.advance();return t.pos!==e},tE.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)},tE.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,i=t.groupNames[t.lastStringValue];if(i){if(e)for(var n=0;n=11,s=t.current(n);return(t.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(s=t.lastIntValue),p(e=s,!0)||36===e||95===e)?(t.lastIntValue=s,!0):(t.pos=i,!1)},tE.regexp_eatRegExpIdentifierPart=function(t){var e,i=t.pos,n=this.options.ecmaVersion>=11,s=t.current(n);return(t.advance(n),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,n)&&(s=t.lastIntValue),f(e=s,!0)||36===e||95===e||8204===e||8205===e)?(t.lastIntValue=s,!0):(t.pos=i,!1)},tE.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)},tE.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},tE.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},tE.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,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},tE.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},tE.regexp_eatZero=function(t){return!(48!==t.current()||tL(t.lookahead()))&&(t.lastIntValue=0,t.advance(),!0)},tE.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)},tE.regexp_eatControlLetter=function(t){var e=t.current();return!!tM(e)&&(t.lastIntValue=e%32,t.advance(),!0)},tE.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var i=t.pos,n=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var s,r=t.lastIntValue;if(n&&r>=55296&&r<=56319){var a=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var o=t.lastIntValue;if(o>=56320&&o<=57343)return t.lastIntValue=(r-55296)*1024+(o-56320)+65536,!0}t.pos=a,t.lastIntValue=r}return!0}if(n&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&(s=t.lastIntValue)>=0&&s<=1114111)return!0;n&&t.raise("Invalid unicode escape"),t.pos=i}return!1},tE.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)},tE.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},tE.regexp_eatCharacterClassEscape=function(t){var e,i=t.current();if(100===i||68===i||115===i||83===i||119===i||87===i)return t.lastIntValue=-1,t.advance(),1;var n=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((n=80===i)||112===i)){if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(e=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return n&&2===e&&t.raise("Invalid property name"),e;t.raise("Invalid property name")}return 0},tE.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var n=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,n),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,s)}return 0},tE.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){O(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},tE.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},tE.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";tN(e=t.current());)t.lastStringValue+=z(e),t.advance();return""!==t.lastStringValue},tE.regexp_eatUnicodePropertyValue=function(t){var e,i=0;for(t.lastStringValue="";tN(e=i=t.current())||tL(e);)t.lastStringValue+=z(i),t.advance();return""!==t.lastStringValue},tE.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},tE.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===i&&t.raise("Negated character class may contain strings"),!0}return!1},tE.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},tE.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;t.switchU&&(-1===e||-1===i)&&t.raise("Invalid character class"),-1!==e&&-1!==i&&e>i&&t.raise("Range out of order in character class")}}},tE.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(99===i||tB(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var n=t.current();return 93!==n&&(t.lastIntValue=n,t.advance(),!0)},tE.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)},tE.regexp_classSetExpression=function(t){var e,i=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(i=2);for(var n=t.pos;t.eatChars([38,38]);){if(38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))){2!==e&&(i=1);continue}t.raise("Invalid character in character class")}if(n!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(n!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return i;2===e&&(i=2)}},tE.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var n=t.lastIntValue;return -1!==i&&-1!==n&&i>n&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},tE.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},tE.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),n=this.regexp_classContents(t);if(t.eat(93))return i&&2===n&&t.raise("Negated character class may contain strings"),n;t.pos=e}if(t.eat(92)){var s=this.regexp_eatCharacterClassEscape(t);if(s)return s;t.pos=e}return null},tE.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null},tE.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},tE.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},tE.regexp_eatClassSetCharacter=function(t){var e,i=t.pos;if(t.eat(92))return!!(this.regexp_eatCharacterEscape(t)||this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=i,!1));var n=t.current();return!(n<0||n===t.lookahead()&&(33===n||n>=35&&n<=38||n>=42&&n<=44||46===n||n>=58&&n<=64||94===n||96===n||126===n)||40===(e=n)||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125)&&(t.advance(),t.lastIntValue=n,!0)},tE.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!(33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e)&&(t.lastIntValue=e,t.advance(),!0)},tE.regexp_eatClassControlLetter=function(t){var e=t.current();return(!!tL(e)||95===e)&&(t.lastIntValue=e%32,t.advance(),!0)},tE.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},tE.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;tL(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},tE.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;tz(i=t.current());)t.lastIntValue=16*t.lastIntValue+tR(i),t.advance();return t.pos!==e},tE.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},tE.regexp_eatOctalDigit=function(t){var e=t.current();return tB(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},tE.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var n=0;n=this.input.length)?this.finishToken(x.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},tV.readToken=function(t){return p(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},tV.fullCharCodeAtPos=function(){var t=this.input.charCodeAt(this.pos);if(t<=55295||t>=56320)return t;var e=this.input.charCodeAt(this.pos+1);return e<=56319||e>=57344?t:(t<<10)+e-0x35fdc00},tV.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=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(var n=void 0,s=e;(n=C(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=n;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},tV.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=t);this.pos8&&t<14||t>=5760&&I.test(String.fromCharCode(t)))++this.pos;else break e}}},tV.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},tV.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(x.ellipsis)):(++this.pos,this.finishToken(x.dot))},tV.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(x.assign,2):this.finishOp(x.slash,1)},tV.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,n=42===t?x.star:x.modulo;return(this.options.ecmaVersion>=7&&42===t&&42===e&&(++i,n=x.starstar,e=this.input.charCodeAt(this.pos+2)),61===e)?this.finishOp(x.assign,i+1):this.finishOp(n,i)},tV.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(x.assign,3):this.finishOp(124===t?x.logicalOR:x.logicalAND,2):61===e?this.finishOp(x.assign,2):this.finishOp(124===t?x.bitwiseOR:x.bitwiseAND,1)},tV.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(x.assign,2):this.finishOp(x.bitwiseXOR,1)},tV.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||w.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(x.incDec,2):61===e?this.finishOp(x.assign,2):this.finishOp(x.plusMin,1)},tV.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i))?this.finishOp(x.assign,i+1):this.finishOp(x.bitShift,i):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(i=2),this.finishOp(x.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},tV.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(x.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(x.arrow)):this.finishOp(61===t?x.eq:x.prefix,1)},tV.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(x.questionDot,2)}if(63===e)return t>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(x.assign,3):this.finishOp(x.coalesce,2)}return this.finishOp(x.question,1)},tV.readToken_numberSign=function(){var t=this.options.ecmaVersion,e=35;if(t>=13&&(++this.pos,p(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(x.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+z(e)+"'")},tV.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(x.parenL);case 41:return++this.pos,this.finishToken(x.parenR);case 59:return++this.pos,this.finishToken(x.semi);case 44:return++this.pos,this.finishToken(x.comma);case 91:return++this.pos,this.finishToken(x.bracketL);case 93:return++this.pos,this.finishToken(x.bracketR);case 123:return++this.pos,this.finishToken(x.braceL);case 125:return++this.pos,this.finishToken(x.braceR);case 58:return++this.pos,this.finishToken(x.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(x.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 63:return this.readToken_question();case 126:return this.finishOp(x.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+z(t)+"'")},tV.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},tV.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(w.test(n)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===n)e=!0;else if("]"===n&&e)e=!1;else if("/"===n&&!e)break;t="\\"===n}++this.pos}var s=this.input.slice(i,this.pos);++this.pos;var r=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(r);var o=this.regexpState||(this.regexpState=new tP(this));o.reset(i,s,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(s,a)}catch(t){}return this.finishToken(x.regexp,{pattern:s,flags:a,value:l})},tV.readInt=function(t,e,i){for(var n=this.options.ecmaVersion>=12&&void 0===e,s=i&&48===this.input.charCodeAt(this.pos),r=this.pos,a=0,o=0,l=0,h=null==e?1/0:e;l=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=t)break;o=u,a=a*t+c}return(n&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===r||null!=e&&this.pos-r!==e)?null:a},tV.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return null==i&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=tF(this.input.slice(e,this.pos)),++this.pos):p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,i)},tV.readNumber=function(t){var e,i=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(i,"Invalid number");var n=this.pos-i>=2&&48===this.input.charCodeAt(i);n&&this.strict&&this.raise(i,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!n&&!t&&this.options.ecmaVersion>=11&&110===s){var r=tF(this.input.slice(i,this.pos));return++this.pos,p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,r)}n&&/[89]/.test(this.input.slice(i,this.pos))&&(n=!1),46!==s||n||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||n||((43===(s=this.input.charCodeAt(++this.pos))||45===s)&&++this.pos,null===this.readInt(10)&&this.raise(i,"Invalid number")),p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(e=this.input.slice(i,this.pos),n?parseInt(e,8):parseFloat(e.replace(/_/g,"")));return this.finishToken(x.num,a)},tV.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},tV.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===t)break;92===n?(e+=this.input.slice(i,this.pos)+this.readEscapedChar(!1),i=this.pos):8232===n||8233===n?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(S(n)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(x.string,e)};var tj={};tV.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t===tj)this.readInvalidTemplateToken();else throw t}this.inTemplateElement=!1},tV.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw tj;this.raise(t,e)},tV.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1)){if(this.pos===this.start&&(this.type===x.template||this.type===x.invalidTemplate)){if(36===i)return this.pos+=2,this.finishToken(x.dollarBraceL);return++this.pos,this.finishToken(x.backQuote)}return t+=this.input.slice(e,this.pos),this.finishToken(x.template,t)}if(92===i)t+=this.input.slice(e,this.pos)+this.readEscapedChar(!0),e=this.pos;else if(S(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},tV.readInvalidTemplateToken=function(){for(;this.pos=48&&e<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(n,8);return s>255&&(s=parseInt(n=n.slice(0,-1),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(s)}if(S(e))return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";return String.fromCharCode(e)}},tV.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return null===i&&this.invalidStringToken(e,"Bad character escape sequence"),i},tV.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,n=this.options.ecmaVersion>=6;this.post.map(t=>"x"===t?{type:"Tile"}:null)),type:"even-r"},solution:[{amount:100,type:"Connections"}]}}),c("4QHZj",function(t,e){t.exports=JSON.parse('{"layout":{"tiles":[[{"items":[{"direction":0,"type":"Portal"}],"modifiers":[{"type":"Immutable"}],"type":"Tile"},{"items":[{"direction":0,"type":"Portal"}],"modifiers":[{"type":"Immutable"}],"type":"Tile"},{"items":[{"openings":[null,null,null,{"color":["red","blue"],"type":"Beam"},null,null],"type":"Terminus"}],"modifiers":[{"type":"Rotate"}],"type":"Tile"},{"items":[{"openings":[null,null,null,null,{"color":"green","type":"Beam"},null],"type":"Terminus"}],"modifiers":[{"type":"Lock"},{"type":"Toggle"}],"type":"Tile"}],[{"items":[{"openings":[{"color":"red","type":"Beam"},null,null,null,null,null],"type":"Terminus"}],"modifiers":[{"type":"Lock"},{"type":"Rotate"},{"type":"Toggle"}],"type":"Tile"},{"items":[{"openings":[{"color":"blue","type":"Beam"},null,null,null,null,null],"type":"Terminus"}],"modifiers":[{"type":"Lock"},{"type":"Toggle"}],"type":"Tile"},{"items":[{"direction":0,"type":"Portal"}],"modifiers":[{"type":"Immutable"}],"type":"Tile"}]]},"solution":[{"amount":1,"type":"Connections"}]}')}),c("7Uxjd",function(t,e){t.exports=JSON.parse('{"layout":{"tiles":[[{"items":[{"color":"red","openings":[null,null,null,{"on":true,"type":"Beam"},null,null],"type":"Terminus"}],"type":"Tile"}],[{"items":[{"type":"Reflector"}],"modifiers":[{"type":"Rotate"}],"type":"Tile"}],[{"items":[{"color":"green","openings":[null,{"on":true,"type":"Beam"},null,null,null,null],"type":"Terminus"}],"type":"Tile"},{"items":[{"color":"blue","openings":[{"on":true,"type":"Beam"},null,null,null,null,null],"type":"Terminus"}],"type":"Tile"}]]},"solution":[{"amount":999,"type":"Connections"}]}')});const d=document.getElementById("feedback-container"),p=document.getElementById("dialog"),f=document.getElementById("help");document.getElementById("info").addEventListener("click",()=>{p.open||p.showModal()}),document.getElementById("feedback").addEventListener("click",()=>{f.setAttribute("open","true"),d.scrollIntoView(!0)});var g=class{constructor(t){this.selfOptions=t||{},this.pipes={}}options(t){return t&&(this.selfOptions=t),this.selfOptions}pipe(t,e){let i=e;if("string"==typeof t){if(void 0===i)return this.pipes[t];this.pipes[t]=i}if(t&&t.name){if((i=t).processor===this)return i;this.pipes[i.name]=i}return i.processor=this,i}process(t,e){let i,n=t;n.options=this.options();let s=e||t.pipe||"default";for(;s;)void 0!==n.nextAfterChildren&&(n.next=n.nextAfterChildren,n.nextAfterChildren=null),"string"==typeof s&&(s=this.pipe(s)),s.process(n),i=s,s=null,n&&n.next&&(s=(n=n.next).pipe||i);return n.hasResult?n.result:void 0}},m=class{constructor(t){this.name=t,this.filters=[]}process(t){if(!this.processor)throw Error("add this pipe to a processor before using it");let e=this.debug,i=this.filters.length;for(let n=0;nt.filterName)}after(t,...e){let i=this.indexOf(t);return this.filters.splice(i+1,0,...e),this}before(t,...e){let i=this.indexOf(t);return this.filters.splice(i,0,...e),this}replace(t,...e){let i=this.indexOf(t);return this.filters.splice(i,1,...e),this}remove(t){let e=this.indexOf(t);return this.filters.splice(e,1),this}clear(){return this.filters.length=0,this}shouldHaveResult(t){if(!1===t){this.resultCheck=null;return}if(!this.resultCheck)return this.resultCheck=t=>{if(!t.hasResult){console.log(t);let e=Error(`${this.name} failed`);throw e.noResult=!0,e}},this}};class _{setResult(t){return this.result=t,this.hasResult=!0,this}exit(){return this.exiting=!0,this}push(t,e){return t.parent=this,void 0!==e&&(t.childName=e),t.root=this.root||this,t.options=t.options||this.options,this.children?(this.children[this.children.length-1].next=t,this.children.push(t)):(this.children=[t],this.nextAfterChildren=this.next||null,this.next=t),t.next=this,this}}function v(t){if("object"!=typeof t)return t;if(null===t)return null;if(Array.isArray(t))return t.map(v);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return function(t){let e=/^\/(.*)\/([gimyu]*)$/.exec(t.toString());return new RegExp(e[1],e[2])}(t);let e={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=v(t[i]));return e}var y=class extends _{constructor(t,e){super(),this.left=t,this.right=e,this.pipe="diff"}setResult(t){if(this.options.cloneDiffValues&&"object"==typeof t){let e="function"==typeof this.options.cloneDiffValues?this.options.cloneDiffValues:v;"object"==typeof t[0]&&(t[0]=e(t[0])),"object"==typeof t[1]&&(t[1]=e(t[1]))}return super.setResult(t)}},b=class extends _{constructor(t,e){super(),this.left=t,this.delta=e,this.pipe="patch"}},x=class extends _{constructor(t){super(),this.delta=t,this.pipe="reverse"}};const w=function(t){if(t.left===t.right){t.setResult(void 0).exit();return}if(void 0===t.left){if("function"==typeof t.right)throw Error("functions are not supported");t.setResult([t.right]).exit();return}if(void 0===t.right){t.setResult([t.left,0,0]).exit();return}if("function"==typeof t.left||"function"==typeof t.right)throw Error("functions are not supported");if(t.leftType=null===t.left?"null":typeof t.left,t.rightType=null===t.right?"null":typeof t.right,t.leftType!==t.rightType||"boolean"===t.leftType||"number"===t.leftType||("object"===t.leftType&&(t.leftIsArray=Array.isArray(t.left)),"object"===t.rightType&&(t.rightIsArray=Array.isArray(t.right)),t.leftIsArray!==t.rightIsArray)){t.setResult([t.left,t.right]).exit();return}t.left instanceof RegExp&&(t.right instanceof RegExp?t.setResult([t.left.toString(),t.right.toString()]).exit():t.setResult([t.left,t.right]).exit())};w.filterName="trivial";const k=function(t){if(void 0===t.delta){t.setResult(t.left).exit();return}if(t.nested=!Array.isArray(t.delta),t.nested)return;let e=t.delta;if(1===e.length){t.setResult(e[0]).exit();return}if(2===e.length){if(t.left instanceof RegExp){let i=/^\/(.*)\/([gimyu]+)$/.exec(e[1]);if(i){t.setResult(new RegExp(i[1],i[2])).exit();return}}t.setResult(e[1]).exit();return}3===e.length&&0===e[2]&&t.setResult(void 0).exit()};k.filterName="trivial";const S=function(t){if(void 0===t.delta){t.setResult(t.delta).exit();return}if(t.nested=!Array.isArray(t.delta),t.nested)return;let e=t.delta;if(1===e.length){t.setResult([e[0],0,0]).exit();return}if(2===e.length){t.setResult([e[1],e[0]]).exit();return}3===e.length&&0===e[2]&&t.setResult([e[0]]).exit()};S.filterName="trivial";const C=t=>{let e;if(!t||!t.children)return;let i=t.children.length,n=t.result;for(let s=0;s{let e,i;if(t.leftIsArray||"object"!==t.leftType)return;let n=t.left,s=t.right,r=t.options.propertyFilter;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(!r||r(e,t))&&(i=new y(n[e],s[e]),t.push(i,e));for(e in s)Object.prototype.hasOwnProperty.call(s,e)&&(!r||r(e,t))&&void 0===n[e]&&(i=new y(void 0,s[e]),t.push(i,e));if(!t.children||0===t.children.length){t.setResult(void 0).exit();return}t.exit()};I.filterName="objects";const T=function(t){let e,i;if(!t.nested)return;let n=t.delta;if(!n._t){for(e in n)i=new b(t.left[e],n[e]),t.push(i,e);t.exit()}};T.filterName="objects";const E=function(t){let e;if(!t||!t.children||t.delta._t)return;let i=t.left,n=t.children.length;for(let s=0;s{let e;if(!t||!t.children||t.delta._t)return;let i=t.children.length,n={};for(let s=0;st[s-1][r]?--r:--s;return a};var L={get:function(t,e,i,n){let s=n||{};return N(M(t,e,i||O,s),t,e,s)}};function z(t,e,i,n,s){let r=t[i],a=e[n];if(r===a)return!0;if("object"!=typeof r||"object"!=typeof a)return!1;let o=s.objectHash;if(!o)return s.matchByPosition&&i===n;s.hashCache1=s.hashCache1||[];let l=s.hashCache1[i];if(void 0===l&&(s.hashCache1[i]=l=o(r,i)),void 0===l)return!1;s.hashCache2=s.hashCache2||[];let h=s.hashCache2[n];return void 0===h&&(s.hashCache2[n]=h=o(a,n)),void 0!==h&&l===h}const R=function(t){let e,i,n,s,r;if(!t.leftIsArray)return;let a={objectHash:t.options&&t.options.objectHash,matchByPosition:t.options&&t.options.matchByPosition},o=0,l=0,h=t.left,u=t.right,c=h.length,d=u.length;for(c>0&&d>0&&!a.objectHash&&"boolean"!=typeof a.matchByPosition&&(a.matchByPosition=!function(t,e,i,n){for(let s=0;sg.indices1.indexOf(e-o)&&(r[`_${e}`]=[h[e],0,0],m.push(e));let _=!0;t.options&&t.options.arrays&&!1===t.options.arrays.detectMove&&(_=!1);let v=!1;t.options&&t.options.arrays&&t.options.arrays.includeValueOnMove&&(v=!0);let b=m.length;for(e=o;e0){for(let c=0;ct-e,numericallyBy:t=>(e,i)=>e[t]-i[t]},D=function(t){let e,i,n;if(!t.nested)return;let s=t.delta;if("a"!==s._t)return;let r=t.left,a=[],o=[],l=[];for(e in s)if("_t"!==e){if("_"===e[0]){let t=e;if(0===s[t][2]||3===s[t][2])a.push(parseInt(e.slice(1),10));else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${s[t][2]}`)}else{let t=e;1===s[t].length?o.push({index:parseInt(t,10),value:s[t][0]}):l.push({index:parseInt(t,10),delta:s[t]})}}for(e=(a=a.sort(B.numerically)).length-1;e>=0;e--){i=a[e];let t=s[`_${i}`],n=r.splice(i,1)[0];3===t[2]&&o.push({index:t[1],value:n})}let h=(o=o.sort(B.numericallyBy("index"))).length;for(e=0;e0)for(e=0;e{if("string"==typeof e&&"_"===e[0])return parseInt(e.substring(1),10);if(Array.isArray(i)&&0===i[2])return`_${e}`;let n=+e;for(let i in t){let s=t[i];if(Array.isArray(s)){if(3===s[2]){let t=parseInt(i.substring(1),10),r=s[1];if(r===+e)return t;t<=n&&r>n?n++:t>=n&&r{let e;if(!t||!t.children)return;let i=t.delta;if("a"!==i._t)return;let n=t.children.length,s={_t:"a"};for(let r=0;r=0;)t[e]=0}const Q=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),X=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),tt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),te=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ti=Array(576);Y(ti);const tn=Array(60);Y(tn);const ts=Array(512);Y(ts);const tr=Array(256);Y(tr);const ta=Array(29);Y(ta);const to=Array(30);function tl(t,e,i,n,s){this.static_tree=t,this.extra_bits=e,this.extra_base=i,this.elems=n,this.max_length=s,this.has_stree=t&&t.length}function th(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}Y(to);const tu=t=>t<256?ts[t]:ts[256+(t>>>7)],tc=(t,e)=>{t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255},td=(t,e,i)=>{t.bi_valid>16-i?(t.bi_buf|=e<>16-t.bi_valid,t.bi_valid+=i-16):(t.bi_buf|=e<{td(t,i[2*e],i[2*e+1])},tf=(t,e)=>{let i=0;do i|=1&t,t>>>=1,i<<=1;while(--e>0)return i>>>1},tg=t=>{16===t.bi_valid?(tc(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)},tm=(t,e)=>{let i,n,s,r,a,o;let l=e.dyn_tree,h=e.max_code,u=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,f=e.stat_desc.max_length,g=0;for(r=0;r<=15;r++)t.bl_count[r]=0;for(l[2*t.heap[t.heap_max]+1]=0,i=t.heap_max+1;i<573;i++)(r=l[2*l[2*(n=t.heap[i])+1]+1]+1)>f&&(r=f,g++),l[2*n+1]=r,!(n>h)&&(t.bl_count[r]++,a=0,n>=p&&(a=d[n-p]),o=l[2*n],t.opt_len+=o*(r+a),c&&(t.static_len+=o*(u[2*n+1]+a)));if(0!==g){do{for(r=f-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[f]--,g-=2}while(g>0)for(r=f;0!==r;r--)for(n=t.bl_count[r];0!==n;)!((s=t.heap[--i])>h)&&(l[2*s+1]!==r&&(t.opt_len+=(r-l[2*s+1])*l[2*s],l[2*s+1]=r),n--)}},t_=(t,e,i)=>{let n,s;let r=Array(16),a=0;for(n=1;n<=15;n++)a=a+i[n-1]<<1,r[n]=a;for(s=0;s<=e;s++){let e=t[2*s+1];0!==e&&(t[2*s]=tf(r[e]++,e))}},tv=()=>{let n,s,r,a,o;let l=Array(16);for(a=0,r=0;a<28;a++)for(n=0,ta[a]=r;n<1<>=7;a<30;a++)for(n=0,to[a]=o<<7;n<1<{let e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.sym_next=t.matches=0},tb=t=>{t.bi_valid>8?tc(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},tx=(t,e,i,n)=>{let s=2*e,r=2*i;return t[s]{let n=t.heap[i],s=i<<1;for(;s<=t.heap_len&&(s{let n,s,r,a;let o=0;if(0!==t.sym_next)do n=(255&t.pending_buf[t.sym_buf+o++])+((255&t.pending_buf[t.sym_buf+o++])<<8),s=t.pending_buf[t.sym_buf+o++],0===n?tp(t,s,e):(tp(t,(r=tr[s])+256+1,e),0!==(a=Q[r])&&td(t,s-=ta[r],a),tp(t,r=tu(--n),i),0!==(a=X[r])&&td(t,n-=to[r],a));while(o{let i,n,s;let r=e.dyn_tree,a=e.stat_desc.static_tree,o=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(i=0,t.heap_len=0,t.heap_max=573;i>1;i>=1;i--)tw(t,r,i);s=l;do i=t.heap[1],t.heap[1]=t.heap[t.heap_len--],tw(t,r,1),n=t.heap[1],t.heap[--t.heap_max]=i,t.heap[--t.heap_max]=n,r[2*s]=r[2*i]+r[2*n],t.depth[s]=(t.depth[i]>=t.depth[n]?t.depth[i]:t.depth[n])+1,r[2*i+1]=r[2*n+1]=s,t.heap[1]=s++,tw(t,r,1);while(t.heap_len>=2)t.heap[--t.heap_max]=t.heap[1],tm(t,e),t_(r,h,t.bl_count)},tC=(t,e,i)=>{let n,s;let r=-1,a=e[1],o=0,l=7,h=4;for(0===a&&(l=138,h=3),e[(i+1)*2+1]=65535,n=0;n<=i;n++)s=a,a=e[(n+1)*2+1],++o{let n,s;let r=-1,a=e[1],o=0,l=7,h=4;for(0===a&&(l=138,h=3),n=0;n<=i;n++)if(s=a,a=e[(n+1)*2+1],!(++o{let e;for(tC(t,t.dyn_ltree,t.l_desc.max_code),tC(t,t.dyn_dtree,t.d_desc.max_code),tS(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*te[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e},tE=(t,e,i,n)=>{let s;for(td(t,e-257,5),td(t,i-1,5),td(t,n-4,4),s=0;s{let e,i=0xf3ffc07f;for(e=0;e<=31;e++,i>>>=1)if(1&i&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0};let tP=!1;const tO=(t,e,i,n)=>{td(t,0+(n?1:0),3),tb(t),tc(t,i),tc(t,~i),i&&t.pending_buf.set(t.window.subarray(e,e+i),t.pending),t.pending+=i};var tM={_tr_init:n=>{tP||(tv(),tP=!0),n.l_desc=new th(n.dyn_ltree,t),n.d_desc=new th(n.dyn_dtree,e),n.bl_desc=new th(n.bl_tree,i),n.bi_buf=0,n.bi_valid=0,ty(n)},_tr_stored_block:tO,_tr_flush_block:(t,e,i,n)=>{let s,r;let a=0;t.level>0?(2===t.strm.data_type&&(t.strm.data_type=tA(t)),tS(t,t.l_desc),tS(t,t.d_desc),a=tT(t),s=t.opt_len+3+7>>>3,(r=t.static_len+3+7>>>3)<=s&&(s=r)):s=r=i+5,i+4<=s&&-1!==e?tO(t,e,i,n):4===t.strategy||r===s?(td(t,2+(n?1:0),3),tk(t,ti,tn)):(td(t,4+(n?1:0),3),tE(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),tk(t,t.dyn_ltree,t.dyn_dtree)),ty(t),n&&tb(t)},_tr_tally:(t,e,i)=>(t.pending_buf[t.sym_buf+t.sym_next++]=e,t.pending_buf[t.sym_buf+t.sym_next++]=e>>8,t.pending_buf[t.sym_buf+t.sym_next++]=i,0===e?t.dyn_ltree[2*i]++:(t.matches++,e--,t.dyn_ltree[(tr[i]+256+1)*2]++,t.dyn_dtree[2*tu(e)]++),t.sym_next===t.sym_end),_tr_align:t=>{td(t,2,3),tp(t,256,ti),tg(t)}},tN=(t,e,i,n)=>{let s=65535&t|0,r=t>>>16&65535|0,a=0;for(;0!==i;){a=i>2e3?2e3:i,i-=a;do r=r+(s=s+e[n++]|0)|0;while(--a)s%=65521,r%=65521}return s|r<<16|0};const tL=new Uint32Array((()=>{let t,e=[];for(var i=0;i<256;i++){t=i;for(var n=0;n<8;n++)t=1&t?0xedb88320^t>>>1:t>>>1;e[i]=t}return e})());var tz=(t,e,i,n)=>{let s=n+i;t^=-1;for(let i=n;i>>8^tL[(t^e[i])&255];return -1^t},tR={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},tB={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:tD,_tr_stored_block:tV,_tr_flush_block:tF,_tr_tally:tj,_tr_align:tU}=tM,{Z_NO_FLUSH:tq,Z_PARTIAL_FLUSH:tZ,Z_FULL_FLUSH:tH,Z_FINISH:tG,Z_BLOCK:t$,Z_OK:tW,Z_STREAM_END:tK,Z_STREAM_ERROR:tJ,Z_DATA_ERROR:tY,Z_BUF_ERROR:tQ,Z_DEFAULT_COMPRESSION:tX,Z_FILTERED:t0,Z_HUFFMAN_ONLY:t1,Z_RLE:t2,Z_FIXED:t5,Z_DEFAULT_STRATEGY:t3,Z_UNKNOWN:t6,Z_DEFLATED:t4}=tB,t9=(t,e)=>(t.msg=tR[e],e),t8=t=>2*t-(t>4?9:0),t7=t=>{let e=t.length;for(;--e>=0;)t[e]=0},et=t=>{let e,i,n;let s=t.w_size;n=e=t.hash_size;do i=t.head[--n],t.head[n]=i>=s?i-s:0;while(--e)n=e=s;do i=t.prev[--n],t.prev[n]=i>=s?i-s:0;while(--e)};let ee=(t,e,i)=>(e<{let e=t.state,i=e.pending;i>t.avail_out&&(i=t.avail_out),0!==i&&(t.output.set(e.pending_buf.subarray(e.pending_out,e.pending_out+i),t.next_out),t.next_out+=i,e.pending_out+=i,t.total_out+=i,t.avail_out-=i,e.pending-=i,0===e.pending&&(e.pending_out=0))},en=(t,e)=>{tF(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,ei(t.strm)},es=(t,e)=>{t.pending_buf[t.pending++]=e},er=(t,e)=>{t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e},ea=(t,e,i,n)=>{let s=t.avail_in;return(s>n&&(s=n),0===s)?0:(t.avail_in-=s,e.set(t.input.subarray(t.next_in,t.next_in+s),i),1===t.state.wrap?t.adler=tN(t.adler,e,s,i):2===t.state.wrap&&(t.adler=tz(t.adler,e,s,i)),t.next_in+=s,t.total_in+=s,s)},eo=(t,e)=>{let i,n,s=t.max_chain_length,r=t.strstart,a=t.prev_length,o=t.nice_match,l=t.strstart>t.w_size-262?t.strstart-(t.w_size-262):0,h=t.window,u=t.w_mask,c=t.prev,d=t.strstart+258,p=h[r+a-1],f=h[r+a];t.prev_length>=t.good_match&&(s>>=2),o>t.lookahead&&(o=t.lookahead);do{if(h[(i=e)+a]!==f||h[i+a-1]!==p||h[i]!==h[r]||h[++i]!==h[r+1])continue;r+=2,i++;do;while(h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&h[++r]===h[++i]&&ra){if(t.match_start=e,a=n,n>=o)break;p=h[r+a-1],f=h[r+a]}}while((e=c[e&u])>l&&0!=--s)return a<=t.lookahead?a:t.lookahead},el=t=>{let e,i,n;let s=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-262)&&(t.window.set(t.window.subarray(s,s+s-i),0),t.match_start-=s,t.strstart-=s,t.block_start-=s,t.insert>t.strstart&&(t.insert=t.strstart),et(t),i+=s),0===t.strm.avail_in)break;if(e=ea(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=e,t.lookahead+t.insert>=3)for(n=t.strstart-t.insert,t.ins_h=t.window[n],t.ins_h=ee(t,t.ins_h,t.window[n+1]);t.insert&&(t.ins_h=ee(t,t.ins_h,t.window[n+3-1]),t.prev[n&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=n,n++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<262&&0!==t.strm.avail_in)},eh=(t,e)=>{let i=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,n,s,r,a=0,o=t.strm.avail_in;do{if(n=65535,r=t.bi_valid+42>>3,t.strm.avail_out(s=t.strstart-t.block_start)+t.strm.avail_in&&(n=s+t.strm.avail_in),n>r&&(n=r),n>8,t.pending_buf[t.pending-2]=~n,t.pending_buf[t.pending-1]=~n>>8,ei(t.strm),s&&(s>n&&(s=n),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+s),t.strm.next_out),t.strm.next_out+=s,t.strm.avail_out-=s,t.strm.total_out+=s,t.block_start+=s,n-=s),n&&(ea(t.strm,t.strm.output,t.strm.next_out,n),t.strm.next_out+=n,t.strm.avail_out-=n,t.strm.total_out+=n)}while(0===a)return((o-=t.strm.avail_in)&&(o>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=o&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-o,t.strm.next_in),t.strstart),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.block_start=t.strstart),t.high_waterr&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(ea(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water>3,i=(r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r)>t.w_size?t.w_size:r,((s=t.strstart-t.block_start)>=i||(s||e===tG)&&e!==tq&&0===t.strm.avail_in&&s<=r)&&(n=s>r?r:s,a=e===tG&&0===t.strm.avail_in&&n===s?1:0,tV(t,t.block_start,n,a),t.block_start+=n,ei(t.strm)),a?3:1)},eu=(t,e)=>{let i,n;for(;;){if(t.lookahead<262){if(el(t),t.lookahead<262&&e===tq)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==i&&t.strstart-i<=t.w_size-262&&(t.match_length=eo(t,i)),t.match_length>=3){if(n=tj(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do t.strstart++,t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(0!=--t.match_length)t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=ee(t,t.ins_h,t.window[t.strstart+1])}else n=tj(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(en(t,!1),0===t.strm.avail_out))return 1}return(t.insert=t.strstart<2?t.strstart:2,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2},ec=(t,e)=>{let i,n,s;for(;;){if(t.lookahead<262){if(el(t),t.lookahead<262&&e===tq)return 1;if(0===t.lookahead)break}if(i=0,t.lookahead>=3&&(t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==i&&t.prev_length4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){s=t.strstart+t.lookahead-3,n=tj(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=s&&(t.ins_h=ee(t,t.ins_h,t.window[t.strstart+3-1]),i=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(0!=--t.prev_length)if(t.match_available=0,t.match_length=2,t.strstart++,n&&(en(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=tj(t,0,t.window[t.strstart-1]))&&en(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return(t.match_available&&(n=tj(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2},ed=(t,e)=>{let i,n,s,r;let a=t.window;for(;;){if(t.lookahead<=258){if(el(t),t.lookahead<=258&&e===tq)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[s=t.strstart-1])===a[++s]&&n===a[++s]&&n===a[++s]){r=t.strstart+258;do;while(n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&n===a[++s]&&st.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(i=tj(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(i=tj(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),i&&(en(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2},ep=(t,e)=>{let i;for(;;){if(0===t.lookahead&&(el(t),0===t.lookahead)){if(e===tq)return 1;break}if(t.match_length=0,i=tj(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,i&&(en(t,!1),0===t.strm.avail_out))return 1}return(t.insert=0,e===tG)?(en(t,!0),0===t.strm.avail_out)?3:4:t.sym_next&&(en(t,!1),0===t.strm.avail_out)?1:2};function ef(t,e,i,n,s){this.good_length=t,this.max_lazy=e,this.nice_length=i,this.max_chain=n,this.func=s}const eg=[new ef(0,0,0,0,eh),new ef(4,4,8,4,eu),new ef(4,5,16,8,eu),new ef(4,6,32,32,eu),new ef(4,4,16,16,ec),new ef(8,16,32,32,ec),new ef(8,16,128,128,ec),new ef(8,32,128,256,ec),new ef(32,128,258,1024,ec),new ef(32,258,258,4096,ec)],em=t=>{t.window_size=2*t.w_size,t7(t.head),t.max_lazy_match=eg[t.level].max_lazy,t.good_match=eg[t.level].good_length,t.nice_match=eg[t.level].nice_length,t.max_chain_length=eg[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0};function e_(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=t4,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),t7(this.dyn_ltree),t7(this.dyn_dtree),t7(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),t7(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),t7(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const ev=t=>{if(!t)return 1;let e=t.state;return e&&e.strm===t&&(42===e.status||57===e.status||69===e.status||73===e.status||91===e.status||103===e.status||113===e.status||666===e.status)?0:1},ey=t=>{if(ev(t))return t9(t,tJ);t.total_in=t.total_out=0,t.data_type=t6;let e=t.state;return e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=2===e.wrap?57:e.wrap?42:113,t.adler=2===e.wrap?0:1,e.last_flush=-2,tD(e),tW},eb=t=>{let e=ey(t);return e===tW&&em(t.state),e};var ex={deflateInit2:(t,e,i,n,s,r)=>{if(!t)return tJ;let a=1;if(e===tX&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),s<1||s>9||i!==t4||n<8||n>15||e<0||e>9||r<0||r>t5||8===n&&1!==a)return t9(t,tJ);8===n&&(n=9);let o=new e_;return t.state=o,o.strm=t,o.status=42,o.wrap=a,o.gzhead=null,o.w_bits=n,o.w_size=1<ev(t)||2!==t.state.wrap?tJ:(t.state.gzhead=e,tW),deflate:(t,e)=>{if(ev(t)||e>t$||e<0)return t?t9(t,tJ):tJ;let i=t.state;if(!t.output||0!==t.avail_in&&!t.input||666===i.status&&e!==tG)return t9(t,0===t.avail_out?tQ:tJ);let n=i.last_flush;if(i.last_flush=e,0!==i.pending){if(ei(t),0===t.avail_out)return i.last_flush=-1,tW}else if(0===t.avail_in&&t8(e)<=t8(n)&&e!==tG)return t9(t,tQ);if(666===i.status&&0!==t.avail_in)return t9(t,tQ);if(42===i.status&&0===i.wrap&&(i.status=113),42===i.status){let e=t4+(i.w_bits-8<<4)<<8;if(e|=(i.strategy>=t1||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(e|=32),er(i,e+=31-e%31),0!==i.strstart&&(er(i,t.adler>>>16),er(i,65535&t.adler)),t.adler=1,i.status=113,ei(t),0!==i.pending)return i.last_flush=-1,tW}if(57===i.status){if(t.adler=0,es(i,31),es(i,139),es(i,8),i.gzhead)es(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),es(i,255&i.gzhead.time),es(i,i.gzhead.time>>8&255),es(i,i.gzhead.time>>16&255),es(i,i.gzhead.time>>24&255),es(i,9===i.level?2:i.strategy>=t1||i.level<2?4:0),es(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(es(i,255&i.gzhead.extra.length),es(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(t.adler=tz(t.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69;else if(es(i,0),es(i,0),es(i,0),es(i,0),es(i,0),es(i,9===i.level?2:i.strategy>=t1||i.level<2?4:0),es(i,3),i.status=113,ei(t),0!==i.pending)return i.last_flush=-1,tW}if(69===i.status){if(i.gzhead.extra){let e=i.pending,n=(65535&i.gzhead.extra.length)-i.gzindex;for(;i.pending+n>i.pending_buf_size;){let s=i.pending_buf_size-i.pending;if(i.pending_buf.set(i.gzhead.extra.subarray(i.gzindex,i.gzindex+s),i.pending),i.pending=i.pending_buf_size,i.gzhead.hcrc&&i.pending>e&&(t.adler=tz(t.adler,i.pending_buf,i.pending-e,e)),i.gzindex+=s,ei(t),0!==i.pending)return i.last_flush=-1,tW;e=0,n-=s}let s=new Uint8Array(i.gzhead.extra);i.pending_buf.set(s.subarray(i.gzindex,i.gzindex+n),i.pending),i.pending+=n,i.gzhead.hcrc&&i.pending>e&&(t.adler=tz(t.adler,i.pending_buf,i.pending-e,e)),i.gzindex=0}i.status=73}if(73===i.status){if(i.gzhead.name){let e,n=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n)),ei(t),0!==i.pending)return i.last_flush=-1,tW;n=0}e=i.gzindexn&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n)),i.gzindex=0}i.status=91}if(91===i.status){if(i.gzhead.comment){let e,n=i.pending;do{if(i.pending===i.pending_buf_size){if(i.gzhead.hcrc&&i.pending>n&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n)),ei(t),0!==i.pending)return i.last_flush=-1,tW;n=0}e=i.gzindexn&&(t.adler=tz(t.adler,i.pending_buf,i.pending-n,n))}i.status=103}if(103===i.status){if(i.gzhead.hcrc){if(i.pending+2>i.pending_buf_size&&(ei(t),0!==i.pending))return i.last_flush=-1,tW;es(i,255&t.adler),es(i,t.adler>>8&255),t.adler=0}if(i.status=113,ei(t),0!==i.pending)return i.last_flush=-1,tW}if(0!==t.avail_in||0!==i.lookahead||e!==tq&&666!==i.status){let n=0===i.level?eh(i,e):i.strategy===t1?ep(i,e):i.strategy===t2?ed(i,e):eg[i.level].func(i,e);if((3===n||4===n)&&(i.status=666),1===n||3===n)return 0===t.avail_out&&(i.last_flush=-1),tW;if(2===n&&(e===tZ?tU(i):e!==t$&&(tV(i,0,0,!1),e===tH&&(t7(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ei(t),0===t.avail_out))return i.last_flush=-1,tW}return e!==tG?tW:i.wrap<=0?tK:(2===i.wrap?(es(i,255&t.adler),es(i,t.adler>>8&255),es(i,t.adler>>16&255),es(i,t.adler>>24&255),es(i,255&t.total_in),es(i,t.total_in>>8&255),es(i,t.total_in>>16&255),es(i,t.total_in>>24&255)):(er(i,t.adler>>>16),er(i,65535&t.adler)),ei(t),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?tW:tK)},deflateEnd:t=>{if(ev(t))return tJ;let e=t.state.status;return t.state=null,113===e?t9(t,tY):tW},deflateSetDictionary:(t,e)=>{let i=e.length;if(ev(t))return tJ;let n=t.state,s=n.wrap;if(2===s||1===s&&42!==n.status||n.lookahead)return tJ;if(1===s&&(t.adler=tN(t.adler,e,i,0)),n.wrap=0,i>=n.w_size){0===s&&(t7(n.head),n.strstart=0,n.block_start=0,n.insert=0);let t=new Uint8Array(n.w_size);t.set(e.subarray(i-n.w_size,i),0),e=t,i=n.w_size}let r=t.avail_in,a=t.next_in,o=t.input;for(t.avail_in=i,t.next_in=0,t.input=e,el(n);n.lookahead>=3;){let t=n.strstart,e=n.lookahead-2;do n.ins_h=ee(n,n.ins_h,n.window[t+3-1]),n.prev[t&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=t,t++;while(--e)n.strstart=t,n.lookahead=2,el(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=a,t.input=o,t.avail_in=r,n.wrap=s,tW}};const ew=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var ek={assign:function(t){let e=Array.prototype.slice.call(arguments,1);for(;e.length;){let i=e.shift();if(i){if("object"!=typeof i)throw TypeError(i+"must be non-object");for(let e in i)ew(i,e)&&(t[e]=i[e])}}return t},flattenChunks:t=>{let e=0;for(let i=0,n=t.length;i=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;eC[254]=eC[254]=1;const eI=(t,e)=>{if(e<65534&&t.subarray&&eS)return String.fromCharCode.apply(null,t.length===e?t:t.subarray(0,e));let i="";for(let n=0;n{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let e,i,n,s,r,a=t.length,o=0;for(s=0;s>>6:(i<65536?e[r++]=224|i>>>12:(e[r++]=240|i>>>18,e[r++]=128|i>>>12&63),e[r++]=128|i>>>6&63),e[r++]=128|63&i);return e},buf2string:(t,e)=>{let i,n;let s=e||t.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,e));let r=Array(2*s);for(n=0,i=0;i4){r[n++]=65533,i+=a-1;continue}for(e&=2===a?31:3===a?15:7;a>1&&i1){r[n++]=65533;continue}e<65536?r[n++]=e:(e-=65536,r[n++]=55296|e>>10&1023,r[n++]=56320|1023&e)}return eI(r,n)},utf8border:(t,e)=>{(e=e||t.length)>t.length&&(e=t.length);let i=e-1;for(;i>=0&&(192&t[i])==128;)i--;return i<0||0===i?e:i+eC[t[i]]>e?i:e}},eE=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const eA=Object.prototype.toString,{Z_NO_FLUSH:eP,Z_SYNC_FLUSH:eO,Z_FULL_FLUSH:eM,Z_FINISH:eN,Z_OK:eL,Z_STREAM_END:ez,Z_DEFAULT_COMPRESSION:eR,Z_DEFAULT_STRATEGY:eB,Z_DEFLATED:eD}=tB;function eV(t){this.options=ek.assign({level:eR,method:eD,chunkSize:16384,windowBits:15,memLevel:8,strategy:eB},t||{});let e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eE,this.strm.avail_out=0;let i=ex.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(i!==eL)throw Error(tR[i]);if(e.header&&ex.deflateSetHeader(this.strm,e.header),e.dictionary){let t;if(t="string"==typeof e.dictionary?eT.string2buf(e.dictionary):"[object ArrayBuffer]"===eA.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,(i=ex.deflateSetDictionary(this.strm,t))!==eL)throw Error(tR[i]);this._dict_set=!0}}function eF(t,e){let i=new eV(e);if(i.push(t,!0),i.err)throw i.msg||tR[i.err];return i.result}eV.prototype.push=function(t,e){let i,n;let s=this.strm,r=this.options.chunkSize;if(this.ended)return!1;for(n=e===~~e?e:!0===e?eN:eP,"string"==typeof t?s.input=eT.string2buf(t):"[object ArrayBuffer]"===eA.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;;){if(0===s.avail_out&&(s.output=new Uint8Array(r),s.next_out=0,s.avail_out=r),(n===eO||n===eM)&&s.avail_out<=6){this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;continue}if((i=ex.deflate(s,n))===ez)return s.next_out>0&&this.onData(s.output.subarray(0,s.next_out)),i=ex.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===eL;if(0===s.avail_out){this.onData(s.output);continue}if(n>0&&s.next_out>0){this.onData(s.output.subarray(0,s.next_out)),s.avail_out=0;continue}if(0===s.avail_in)break}return!0},eV.prototype.onData=function(t){this.chunks.push(t)},eV.prototype.onEnd=function(t){t===eL&&(this.result=ek.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ej=function(t,e){let i,n,s,r,a,o,l,h,u,c,d,p,f,g,m,_,v,y,b,x,w,k,S,C;let I=t.state;i=t.next_in,S=t.input,n=i+(t.avail_in-5),s=t.next_out,C=t.output,r=s-(e-t.avail_out),a=s+(t.avail_out-257),o=I.dmax,l=I.wsize,h=I.whave,u=I.wnext,c=I.window,d=I.hold,p=I.bits,f=I.lencode,g=I.distcode,m=(1<>>=y=v>>>24,p-=y,0==(y=v>>>16&255))C[s++]=65535&v;else if(16&y)for(b=65535&v,(y&=15)&&(p>>=y,p-=y),p<15&&(d+=S[i++]<>>=y=v>>>24,p-=y,16&(y=v>>>16&255)){if(x=65535&v,p<(y&=15)&&(d+=S[i++]<o){t.msg="invalid distance too far back",I.mode=16209;break i}if(d>>>=y,p-=y,x>(y=s-r)){if((y=x-y)>h&&I.sane){t.msg="invalid distance too far back",I.mode=16209;break i}if(w=0,k=c,0===u){if(w+=l-y,y2;)C[s++]=k[w++],C[s++]=k[w++],C[s++]=k[w++],b-=3;b&&(C[s++]=k[w++],b>1&&(C[s++]=k[w++]))}else{w=s-x;do C[s++]=C[w++],C[s++]=C[w++],C[s++]=C[w++],b-=3;while(b>2)b&&(C[s++]=C[w++],b>1&&(C[s++]=C[w++]))}}else if((64&y)==0){v=g[(65535&v)+(d&(1<>3,p-=b<<3,d&=(1<{let l,h,u,c,d,p,f,g,m;let _=o.bits,v=0,y=0,b=0,x=0,w=0,k=0,S=0,C=0,I=0,T=0,E=null,A=new Uint16Array(16),P=new Uint16Array(16),O=null;for(v=0;v<=15;v++)A[v]=0;for(y=0;y=1&&0===A[x];x--);if(w>x&&(w=x),0===x)return s[r++]=0x1400000,s[r++]=0x1400000,o.bits=1,0;for(b=1;b0&&(0===t||1!==x))return -1;for(v=1,P[1]=0;v<15;v++)P[v+1]=P[v]+A[v];for(y=0;y852||2===t&&I>592)return 1;for(;;){f=v-S,a[y]+1=p?(g=O[a[y]-p],m=E[a[y]-p]):(g=96,m=0),l=1<>S)+(h-=l)]=f<<24|g<<16|m|0;while(0!==h)for(l=1<>=1;if(0!==l?(T&=l-1,T+=l):T=0,y++,0==--A[v]){if(v===x)break;v=e[i+a[y]]}if(v>w&&(T&c)!==u){for(0===S&&(S=w),d+=b,C=1<<(k=v-S);k+S852||2===t&&I>592)return 1;s[u=T&c]=w<<24|k<<16|d-r|0}}return 0!==T&&(s[d+T]=v-S<<24|4194304),o.bits=w,0};const{Z_FINISH:e$,Z_BLOCK:eW,Z_TREES:eK,Z_OK:eJ,Z_STREAM_END:eY,Z_NEED_DICT:eQ,Z_STREAM_ERROR:eX,Z_DATA_ERROR:e0,Z_MEM_ERROR:e1,Z_BUF_ERROR:e2,Z_DEFLATED:e5}=tB,e3=t=>(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24);function e6(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const e4=t=>{if(!t)return 1;let e=t.state;return!e||e.strm!==t||e.mode<16180||e.mode>16211?1:0},e9=t=>{if(e4(t))return eX;let e=t.state;return t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=16180,e.last=0,e.havedict=0,e.flags=-1,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,eJ},e8=t=>{if(e4(t))return eX;let e=t.state;return e.wsize=0,e.whave=0,e.wnext=0,e9(t)},e7=(t,e)=>{let i;if(e4(t))return eX;let n=t.state;return(e<0?(i=0,e=-e):(i=(e>>4)+5,e<48&&(e&=15)),e&&(e<8||e>15))?eX:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=i,n.wbits=e,e8(t))};let it=!0;const ie=t=>{if(it){n=new Int32Array(512),s=new Int32Array(32);let e=0;for(;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(eG(1,t.lens,0,288,n,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;eG(2,t.lens,0,32,s,0,t.work,{bits:5}),it=!1}t.lencode=n,t.lenbits=9,t.distcode=s,t.distbits=5},ii=(t,e,i,n)=>{let s;let r=t.state;return null===r.window&&(r.wsize=1<=r.wsize?(r.window.set(e.subarray(i-r.wsize,i),0),r.wnext=0,r.whave=r.wsize):((s=r.wsize-r.wnext)>n&&(s=n),r.window.set(e.subarray(i-n,i-n+s),r.wnext),(n-=s)?(r.window.set(e.subarray(i-n,i),0),r.wnext=n,r.whave=r.wsize):(r.wnext+=s,r.wnext===r.wsize&&(r.wnext=0),r.whave{if(!t)return eX;let i=new e6;t.state=i,i.strm=t,i.window=null,i.mode=16180;let n=e7(t,e);return n!==eJ&&(t.state=null),n},inflate:(t,e)=>{let i,n,s,r,a,o,l,h,u,c,d,p,f,g,m,_,v,y,b,x,w,k,S,C;let I=0,T=new Uint8Array(4),E=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(e4(t)||!t.output||!t.input&&0!==t.avail_in)return eX;16191===(i=t.state).mode&&(i.mode=16192),a=t.next_out,s=t.output,l=t.avail_out,r=t.next_in,n=t.input,o=t.avail_in,h=i.hold,u=i.bits,c=o,d=l,k=eJ;n:for(;;)switch(i.mode){case 16180:if(0===i.wrap){i.mode=16192;break}for(;u<16;){if(0===o)break n;o--,h+=n[r++]<>>8&255,i.check=tz(i.check,T,2,0),h=0,u=0,i.mode=16181;break}if(i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",i.mode=16209;break}if((15&h)!==e5){t.msg="unknown compression method",i.mode=16209;break}if(h>>>=4,u-=4,w=(15&h)+8,0===i.wbits&&(i.wbits=w),w>15||w>i.wbits){t.msg="invalid window size",i.mode=16209;break}i.dmax=1<>8&1),512&i.flags&&4&i.wrap&&(T[0]=255&h,T[1]=h>>>8&255,i.check=tz(i.check,T,2,0)),h=0,u=0,i.mode=16182;case 16182:for(;u<32;){if(0===o)break n;o--,h+=n[r++]<>>8&255,T[2]=h>>>16&255,T[3]=h>>>24&255,i.check=tz(i.check,T,4,0)),h=0,u=0,i.mode=16183;case 16183:for(;u<16;){if(0===o)break n;o--,h+=n[r++]<>8),512&i.flags&&4&i.wrap&&(T[0]=255&h,T[1]=h>>>8&255,i.check=tz(i.check,T,2,0)),h=0,u=0,i.mode=16184;case 16184:if(1024&i.flags){for(;u<16;){if(0===o)break n;o--,h+=n[r++]<>>8&255,i.check=tz(i.check,T,2,0)),h=0,u=0}else i.head&&(i.head.extra=null);i.mode=16185;case 16185:if(1024&i.flags&&((p=i.length)>o&&(p=o),p&&(i.head&&(w=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Uint8Array(i.head.extra_len)),i.head.extra.set(n.subarray(r,r+p),w)),512&i.flags&&4&i.wrap&&(i.check=tz(i.check,n,p,r)),o-=p,r+=p,i.length-=p),i.length))break n;i.length=0,i.mode=16186;case 16186:if(2048&i.flags){if(0===o)break n;p=0;do w=n[r+p++],i.head&&w&&i.length<65536&&(i.head.name+=String.fromCharCode(w));while(w&&p>9&1,i.head.done=!0),t.adler=i.check=0,i.mode=16191;break;case 16189:for(;u<32;){if(0===o)break n;o--,h+=n[r++]<>>=7&u,u-=7&u,i.mode=16206;break}for(;u<3;){if(0===o)break n;o--,h+=n[r++]<>>=1)){case 0:i.mode=16193;break;case 1:if(ie(i),i.mode=16199,e===eK){h>>>=2,u-=2;break n}break;case 2:i.mode=16196;break;case 3:t.msg="invalid block type",i.mode=16209}h>>>=2,u-=2;break;case 16193:for(h>>>=7&u,u-=7&u;u<32;){if(0===o)break n;o--,h+=n[r++]<>>16^65535)){t.msg="invalid stored block lengths",i.mode=16209;break}if(i.length=65535&h,h=0,u=0,i.mode=16194,e===eK)break n;case 16194:i.mode=16195;case 16195:if(p=i.length){if(p>o&&(p=o),p>l&&(p=l),0===p)break n;s.set(n.subarray(r,r+p),a),o-=p,r+=p,l-=p,a+=p,i.length-=p;break}i.mode=16191;break;case 16196:for(;u<14;){if(0===o)break n;o--,h+=n[r++]<>>=5,u-=5,i.ndist=(31&h)+1,h>>>=5,u-=5,i.ncode=(15&h)+4,h>>>=4,u-=4,i.nlen>286||i.ndist>30){t.msg="too many length or distance symbols",i.mode=16209;break}i.have=0,i.mode=16197;case 16197:for(;i.have>>=3,u-=3}for(;i.have<19;)i.lens[E[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,S={bits:i.lenbits},k=eG(0,i.lens,0,19,i.lencode,0,i.work,S),i.lenbits=S.bits,k){t.msg="invalid code lengths set",i.mode=16209;break}i.have=0,i.mode=16198;case 16198:for(;i.have>>24,_=I>>>16&255,v=65535&I,!(m<=u);){if(0===o)break n;o--,h+=n[r++]<>>=m,u-=m,i.lens[i.have++]=v;else{if(16===v){for(C=m+2;u>>=m,u-=m,0===i.have){t.msg="invalid bit length repeat",i.mode=16209;break}w=i.lens[i.have-1],p=3+(3&h),h>>>=2,u-=2}else if(17===v){for(C=m+3;u>>=m,u-=m,w=0,p=3+(7&h),h>>>=3,u-=3}else{for(C=m+7;u>>=m,u-=m,w=0,p=11+(127&h),h>>>=7,u-=7}if(i.have+p>i.nlen+i.ndist){t.msg="invalid bit length repeat",i.mode=16209;break}for(;p--;)i.lens[i.have++]=w}}if(16209===i.mode)break;if(0===i.lens[256]){t.msg="invalid code -- missing end-of-block",i.mode=16209;break}if(i.lenbits=9,S={bits:i.lenbits},k=eG(1,i.lens,0,i.nlen,i.lencode,0,i.work,S),i.lenbits=S.bits,k){t.msg="invalid literal/lengths set",i.mode=16209;break}if(i.distbits=6,i.distcode=i.distdyn,S={bits:i.distbits},k=eG(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,S),i.distbits=S.bits,k){t.msg="invalid distances set",i.mode=16209;break}if(i.mode=16199,e===eK)break n;case 16199:i.mode=16200;case 16200:if(o>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=r,t.avail_in=o,i.hold=h,i.bits=u,ej(t,d),a=t.next_out,s=t.output,l=t.avail_out,r=t.next_in,n=t.input,o=t.avail_in,h=i.hold,u=i.bits,16191===i.mode&&(i.back=-1);break}for(i.back=0;m=(I=i.lencode[h&(1<>>24,_=I>>>16&255,v=65535&I,!(m<=u);){if(0===o)break n;o--,h+=n[r++]<>y)])>>>24,_=I>>>16&255,v=65535&I,!(y+m<=u);){if(0===o)break n;o--,h+=n[r++]<>>=y,u-=y,i.back+=y}if(h>>>=m,u-=m,i.back+=m,i.length=v,0===_){i.mode=16205;break}if(32&_){i.back=-1,i.mode=16191;break}if(64&_){t.msg="invalid literal/length code",i.mode=16209;break}i.extra=15&_,i.mode=16201;case 16201:if(i.extra){for(C=i.extra;u>>=i.extra,u-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=16202;case 16202:for(;m=(I=i.distcode[h&(1<>>24,_=I>>>16&255,v=65535&I,!(m<=u);){if(0===o)break n;o--,h+=n[r++]<>y)])>>>24,_=I>>>16&255,v=65535&I,!(y+m<=u);){if(0===o)break n;o--,h+=n[r++]<>>=y,u-=y,i.back+=y}if(h>>>=m,u-=m,i.back+=m,64&_){t.msg="invalid distance code",i.mode=16209;break}i.offset=v,i.extra=15&_,i.mode=16203;case 16203:if(i.extra){for(C=i.extra;u>>=i.extra,u-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){t.msg="invalid distance too far back",i.mode=16209;break}i.mode=16204;case 16204:if(0===l)break n;if(p=d-l,i.offset>p){if((p=i.offset-p)>i.whave&&i.sane){t.msg="invalid distance too far back",i.mode=16209;break}p>i.wnext?(p-=i.wnext,f=i.wsize-p):f=i.wnext-p,p>i.length&&(p=i.length),g=i.window}else g=s,f=a-i.offset,p=i.length;p>l&&(p=l),l-=p,i.length-=p;do s[a++]=g[f++];while(--p)0===i.length&&(i.mode=16200);break;case 16205:if(0===l)break n;s[a++]=i.length,l--,i.mode=16200;break;case 16206:if(i.wrap){for(;u<32;){if(0===o)break n;o--,h|=n[r++]<{if(e4(t))return eX;let e=t.state;return e.window&&(e.window=null),t.state=null,eJ},inflateGetHeader:(t,e)=>{if(e4(t))return eX;let i=t.state;return(2&i.wrap)==0?eX:(i.head=e,e.done=!1,eJ)},inflateSetDictionary:(t,e)=>{let i;let n=e.length;return e4(t)||0!==(i=t.state).wrap&&16190!==i.mode?eX:16190===i.mode&&tN(1,e,n,0)!==i.check?e0:ii(t,e,n,n)?(i.mode=16210,e1):(i.havedict=1,eJ)}},ir=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const ia=Object.prototype.toString,{Z_NO_FLUSH:io,Z_FINISH:il,Z_OK:ih,Z_STREAM_END:iu,Z_NEED_DICT:ic,Z_STREAM_ERROR:id,Z_DATA_ERROR:ip,Z_MEM_ERROR:ig}=tB;function im(t){this.options=ek.assign({chunkSize:65536,windowBits:15,to:""},t||{});let e=this.options;e.raw&&e.windowBits>=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),e.windowBits>=0&&e.windowBits<16&&!(t&&t.windowBits)&&(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&(15&e.windowBits)==0&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new eE,this.strm.avail_out=0;let i=is.inflateInit2(this.strm,e.windowBits);if(i!==ih||(this.header=new ir,is.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=eT.string2buf(e.dictionary):"[object ArrayBuffer]"===ia.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(i=is.inflateSetDictionary(this.strm,e.dictionary))!==ih)))throw Error(tR[i])}function i_(t,e){let i=new im(e);if(i.push(t),i.err)throw i.msg||tR[i.err];return i.result}im.prototype.push=function(t,e){let i,n,s;let r=this.strm,a=this.options.chunkSize,o=this.options.dictionary;if(this.ended)return!1;for(n=e===~~e?e:!0===e?il:io,"[object ArrayBuffer]"===ia.call(t)?r.input=new Uint8Array(t):r.input=t,r.next_in=0,r.avail_in=r.input.length;;){for(0===r.avail_out&&(r.output=new Uint8Array(a),r.next_out=0,r.avail_out=a),(i=is.inflate(r,n))===ic&&o&&((i=is.inflateSetDictionary(r,o))===ih?i=is.inflate(r,n):i===ip&&(i=ic));r.avail_in>0&&i===iu&&r.state.wrap>0&&0!==t[r.next_in];)is.inflateReset(r),i=is.inflate(r,n);switch(i){case id:case ip:case ic:case ig:return this.onEnd(i),this.ended=!0,!1}if(s=r.avail_out,r.next_out&&(0===r.avail_out||i===iu)){if("string"===this.options.to){let t=eT.utf8border(r.output,r.next_out),e=r.next_out-t,i=eT.buf2string(r.output,t);r.next_out=e,r.avail_out=a-e,e&&r.output.set(r.output.subarray(t,t+e),0),this.onData(i)}else this.onData(r.output.length===r.next_out?r.output:r.output.subarray(0,r.next_out))}if(i!==ih||0!==s){if(i===iu)return i=is.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,!0;if(0===r.avail_in)break}}return!0},im.prototype.onData=function(t){this.chunks.push(t)},im.prototype.onEnd=function(t){t===ih&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=ek.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};const{Deflate:iv,deflate:iy,deflateRaw:ib,gzip:ix}={Deflate:eV,deflate:eF,deflateRaw:function(t,e){return(e=e||{}).raw=!0,eF(t,e)},gzip:function(t,e){return(e=e||{}).gzip=!0,eF(t,e)},constants:tB},{Inflate:iw,inflate:ik,inflateRaw:iS,ungzip:iC}={Inflate:im,inflate:i_,inflateRaw:function(t,e){return(e=e||{}).raw=!0,i_(t,e)},ungzip:i_,constants:tB};var iI=(t,e=0,i=1)=>iN(iL(e,t),i),iT=t=>{t._clipped=!1,t._unclipped=t.slice(0);for(let e=0;e<=3;e++)e<3?((t[e]<0||t[e]>255)&&(t._clipped=!0),t[e]=iI(t[e],0,255)):3===e&&(t[e]=iI(t[e],0,1));return t};const iE={};for(let t of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])iE[`[object ${t}]`]=t.toLowerCase();function iA(t){return iE[Object.prototype.toString.call(t)]||"object"}var iP=(t,e=null)=>t.length>=3?Array.prototype.slice.call(t):"object"==iA(t[0])&&e?e.split("").filter(e=>void 0!==t[0][e]).map(e=>t[0][e]):t[0],iO=t=>{if(t.length<2)return null;let e=t.length-1;return"string"==iA(t[e])?t[e].toLowerCase():null};const{PI:iM,min:iN,max:iL}=Math,iz=2*iM,iR=iM/3,iB=iM/180,iD=180/iM;var iV={format:{},autodetect:[]},iF=class{constructor(...t){if("object"===iA(t[0])&&t[0].constructor&&t[0].constructor===this.constructor)return t[0];let e=iO(t),i=!1;if(!e){for(let n of(i=!0,iV.sorted||(iV.autodetect=iV.autodetect.sort((t,e)=>e.p-t.p),iV.sorted=!0),iV.autodetect))if(e=n.test(...t))break}if(iV.format[e]){let n=iV.format[e].apply(null,i?t:t.slice(0,-1));this._rgb=iT(n)}else throw Error("unknown format: "+t);3===this._rgb.length&&this._rgb.push(1)}toString(){return"function"==iA(this.hex)?this.hex():`[${this._rgb.join(",")}]`}};const ij=(...t)=>new ij.Color(...t);ij.Color=iF,ij.version="2.6.0";const{max:iU}=Math;var iq=(...t)=>{let[e,i,n]=iP(t,"rgb"),s=1-iU(e/=255,iU(i/=255,n/=255)),r=s<1?1/(1-s):0;return[(1-e-s)*r,(1-i-s)*r,(1-n-s)*r,s]};iF.prototype.cmyk=function(){return iq(this._rgb)},ij.cmyk=(...t)=>new iF(...t,"cmyk"),iV.format.cmyk=(...t)=>{let[e,i,n,s]=t=iP(t,"cmyk"),r=t.length>4?t[4]:1;return 1===s?[0,0,0,r]:[e>=1?0:255*(1-e)*(1-s),i>=1?0:255*(1-i)*(1-s),n>=1?0:255*(1-n)*(1-s),r]},iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"cmyk"))&&4===t.length)return"cmyk"}});const iZ=t=>Math.round(100*t)/100;var iH=(...t)=>{let e=iP(t,"hsla"),i=iO(t)||"lsa";return e[0]=iZ(e[0]||0),e[1]=iZ(100*e[1])+"%",e[2]=iZ(100*e[2])+"%","hsla"===i||e.length>3&&e[3]<1?(e[3]=e.length>3?e[3]:1,i="hsla"):e.length=3,`${i}(${e.join(",")})`},iG=(...t)=>{let e,i;let[n,s,r]=t=iP(t,"rgba"),a=iN(n/=255,s/=255,r/=255),o=iL(n,s,r),l=(o+a)/2;return(o===a?(e=0,i=Number.NaN):e=l<.5?(o-a)/(o+a):(o-a)/(2-o-a),n==o?i=(s-r)/(o-a):s==o?i=2+(r-n)/(o-a):r==o&&(i=4+(n-s)/(o-a)),(i*=60)<0&&(i+=360),t.length>3&&void 0!==t[3])?[i,e,l,t[3]]:[i,e,l]};const{round:i$}=Math;var iW=(...t)=>{let e=iP(t,"rgba"),i=iO(t)||"rgb";return"hsl"==i.substr(0,3)?iH(iG(e),i):(e[0]=i$(e[0]),e[1]=i$(e[1]),e[2]=i$(e[2]),("rgba"===i||e.length>3&&e[3]<1)&&(e[3]=e.length>3?e[3]:1,i="rgba"),`${i}(${e.slice(0,"rgb"===i?3:4).join(",")})`)};const{round:iK}=Math;var iJ=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hsl");if(0===r)e=i=n=255*a;else{let t=[0,0,0],o=[0,0,0],l=a<.5?a*(1+r):a+r-a*r,h=2*a-l,u=s/360;t[0]=u+1/3,t[1]=u,t[2]=u-1/3;for(let e=0;e<3;e++)t[e]<0&&(t[e]+=1),t[e]>1&&(t[e]-=1),6*t[e]<1?o[e]=h+(l-h)*6*t[e]:2*t[e]<1?o[e]=l:3*t[e]<2?o[e]=h+(l-h)*(2/3-t[e])*6:o[e]=h;[e,i,n]=[iK(255*o[0]),iK(255*o[1]),iK(255*o[2])]}return t.length>3?[e,i,n,t[3]]:[e,i,n,1]};const iY=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,iQ=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,iX=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,i0=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,i1=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,i2=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,{round:i5}=Math,i3=t=>{let e;if(t=t.toLowerCase().trim(),iV.format.named)try{return iV.format.named(t)}catch(t){}if(e=t.match(iY)){let t=e.slice(1,4);for(let e=0;e<3;e++)t[e]=+t[e];return t[3]=1,t}if(e=t.match(iQ)){let t=e.slice(1,5);for(let e=0;e<4;e++)t[e]=+t[e];return t}if(e=t.match(iX)){let t=e.slice(1,4);for(let e=0;e<3;e++)t[e]=i5(2.55*t[e]);return t[3]=1,t}if(e=t.match(i0)){let t=e.slice(1,5);for(let e=0;e<3;e++)t[e]=i5(2.55*t[e]);return t[3]=+t[3],t}if(e=t.match(i1)){let t=e.slice(1,4);t[1]*=.01,t[2]*=.01;let i=iJ(t);return i[3]=1,i}if(e=t.match(i2)){let t=e.slice(1,4);t[1]*=.01,t[2]*=.01;let i=iJ(t);return i[3]=+e[4],i}};i3.test=t=>iY.test(t)||iQ.test(t)||iX.test(t)||i0.test(t)||i1.test(t)||i2.test(t),iF.prototype.css=function(t){return iW(this._rgb,t)},ij.css=(...t)=>new iF(...t,"css"),iV.format.css=i3,iV.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&"string"===iA(t)&&i3.test(t))return"css"}}),iV.format.gl=(...t)=>{let e=iP(t,"rgba");return e[0]*=255,e[1]*=255,e[2]*=255,e},ij.gl=(...t)=>new iF(...t,"gl"),iF.prototype.gl=function(){let t=this._rgb;return[t[0]/255,t[1]/255,t[2]/255,t[3]]};const{floor:i6}=Math;var i4=(...t)=>{let e;let[i,n,s]=iP(t,"rgb"),r=iN(i,n,s),a=iL(i,n,s),o=a-r;return 0===o?e=Number.NaN:(i===a&&(e=(n-s)/o),n===a&&(e=2+(s-i)/o),s===a&&(e=4+(i-n)/o),(e*=60)<0&&(e+=360)),[e,100*o/255,r/(255-o)*100]};iF.prototype.hcg=function(){return i4(this._rgb)},ij.hcg=(...t)=>new iF(...t,"hcg"),iV.format.hcg=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hcg");a*=255;let o=255*r;if(0===r)e=i=n=a;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);let t=i6(s/=60),l=s-t,h=a*(1-r),u=h+o*(1-l),c=h+o*l,d=h+o;switch(t){case 0:[e,i,n]=[d,c,h];break;case 1:[e,i,n]=[u,d,h];break;case 2:[e,i,n]=[h,d,c];break;case 3:[e,i,n]=[h,u,d];break;case 4:[e,i,n]=[c,h,d];break;case 5:[e,i,n]=[d,h,u]}}return[e,i,n,t.length>3?t[3]:1]},iV.autodetect.push({p:1,test:(...t)=>{if("array"===iA(t=iP(t,"hcg"))&&3===t.length)return"hcg"}});const i9=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,i8=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;var i7=t=>{if(t.match(i9)){(4===t.length||7===t.length)&&(t=t.substr(1)),3===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]);let e=parseInt(t,16);return[e>>16,e>>8&255,255&e,1]}if(t.match(i8)){(5===t.length||9===t.length)&&(t=t.substr(1)),4===t.length&&(t=(t=t.split(""))[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);let e=parseInt(t,16),i=Math.round((255&e)/255*100)/100;return[e>>24&255,e>>16&255,e>>8&255,i]}throw Error(`unknown hex color: ${t}`)};const{round:nt}=Math;var ne=(...t)=>{let[e,i,n,s]=iP(t,"rgba"),r=iO(t)||"auto";void 0===s&&(s=1),"auto"===r&&(r=s<1?"rgba":"rgb");let a="000000"+((e=nt(e))<<16|(i=nt(i))<<8|(n=nt(n))).toString(16);a=a.substr(a.length-6);let o="0"+nt(255*s).toString(16);switch(o=o.substr(o.length-2),r.toLowerCase()){case"rgba":return`#${a}${o}`;case"argb":return`#${o}${a}`;default:return`#${a}`}};iF.prototype.hex=function(t){return ne(this._rgb,t)},ij.hex=(...t)=>new iF(...t,"hex"),iV.format.hex=i7,iV.autodetect.push({p:4,test:(t,...e)=>{if(!e.length&&"string"===iA(t)&&[3,4,5,6,7,8,9].indexOf(t.length)>=0)return"hex"}});const{cos:ni}=Math,{min:nn,sqrt:ns,acos:nr}=Math;var na=(...t)=>{let e,[i,n,s]=iP(t,"rgb"),r=nn(i/=255,n/=255,s/=255),a=(i+n+s)/3,o=a>0?1-r/a:0;return 0===o?e=NaN:(e=nr(e=(i-n+(i-s))/2/ns((i-n)*(i-n)+(i-s)*(n-s))),s>n&&(e=iz-e),e/=iz),[360*e,o,a]};iF.prototype.hsi=function(){return na(this._rgb)},ij.hsi=(...t)=>new iF(...t,"hsi"),iV.format.hsi=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hsi");return isNaN(s)&&(s=0),isNaN(r)&&(r=0),s>360&&(s-=360),s<0&&(s+=360),(s/=360)<1/3?i=1-((n=(1-r)/3)+(e=(1+r*ni(iz*s)/ni(iR-iz*s))/3)):s<2/3?(s-=1/3,n=1-((e=(1-r)/3)+(i=(1+r*ni(iz*s)/ni(iR-iz*s))/3))):(s-=2/3,e=1-((i=(1-r)/3)+(n=(1+r*ni(iz*s)/ni(iR-iz*s))/3))),[255*(e=iI(a*e*3)),255*(i=iI(a*i*3)),255*(n=iI(a*n*3)),t.length>3?t[3]:1]},iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"hsi"))&&3===t.length)return"hsi"}}),iF.prototype.hsl=function(){return iG(this._rgb)},ij.hsl=(...t)=>new iF(...t,"hsl"),iV.format.hsl=iJ,iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"hsl"))&&3===t.length)return"hsl"}});const{floor:no}=Math,{min:nl,max:nh}=Math;var nu=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"rgb"),o=nl(s,r,a),l=nh(s,r,a),h=l-o;return n=l/255,0===l?(e=Number.NaN,i=0):(i=h/l,s===l&&(e=(r-a)/h),r===l&&(e=2+(a-s)/h),a===l&&(e=4+(s-r)/h),(e*=60)<0&&(e+=360)),[e,i,n]};iF.prototype.hsv=function(){return nu(this._rgb)},ij.hsv=(...t)=>new iF(...t,"hsv"),iV.format.hsv=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"hsv");if(a*=255,0===r)e=i=n=a;else{360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360);let t=no(s/=60),o=s-t,l=a*(1-r),h=a*(1-r*o),u=a*(1-r*(1-o));switch(t){case 0:[e,i,n]=[a,u,l];break;case 1:[e,i,n]=[h,a,l];break;case 2:[e,i,n]=[l,a,u];break;case 3:[e,i,n]=[l,h,a];break;case 4:[e,i,n]=[u,l,a];break;case 5:[e,i,n]=[a,l,h]}}return[e,i,n,t.length>3?t[3]:1]},iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"hsv"))&&3===t.length)return"hsv"}});var nc={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452};const{pow:nd}=Math,np=t=>255*(t<=.00304?12.92*t:1.055*nd(t,1/2.4)-.055),nf=t=>t>nc.t1?t*t*t:nc.t2*(t-nc.t0);var ng=(...t)=>{let e,i,n;let[s,r,a]=t=iP(t,"lab");return i=(s+16)/116,e=isNaN(r)?i:i+r/500,n=isNaN(a)?i:i-a/200,i=nc.Yn*nf(i),[np(3.2404542*(e=nc.Xn*nf(e))-1.5371385*i-.4985314*(n=nc.Zn*nf(n))),np(-.969266*e+1.8760108*i+.041556*n),np(.0556434*e-.2040259*i+1.0572252*n),t.length>3?t[3]:1]};const{pow:nm}=Math,n_=t=>(t/=255)<=.04045?t/12.92:nm((t+.055)/1.055,2.4),nv=t=>t>nc.t3?nm(t,1/3):t/nc.t2+nc.t0,ny=(t,e,i)=>[nv((.4124564*(t=n_(t))+.3575761*(e=n_(e))+.1804375*(i=n_(i)))/nc.Xn),nv((.2126729*t+.7151522*e+.072175*i)/nc.Yn),nv((.0193339*t+.119192*e+.9503041*i)/nc.Zn)];var nb=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=ny(e,i,n),o=116*r-16;return[o<0?0:o,500*(s-r),200*(r-a)]};iF.prototype.lab=function(){return nb(this._rgb)},ij.lab=(...t)=>new iF(...t,"lab"),iV.format.lab=ng,iV.autodetect.push({p:2,test:(...t)=>{if("array"===iA(t=iP(t,"lab"))&&3===t.length)return"lab"}});const{sin:nx,cos:nw}=Math;var nk=(...t)=>{let[e,i,n]=iP(t,"lch");return isNaN(n)&&(n=0),[e,nw(n*=iB)*i,nx(n)*i]},nS=(...t)=>{let[e,i,n]=t=iP(t,"lch"),[s,r,a]=nk(e,i,n),[o,l,h]=ng(s,r,a);return[o,l,h,t.length>3?t[3]:1]};const{sqrt:nC,atan2:nI,round:nT}=Math;var nE=(...t)=>{let[e,i,n]=iP(t,"lab"),s=nC(i*i+n*n),r=(nI(n,i)*iD+360)%360;return 0===nT(1e4*s)&&(r=Number.NaN),[e,s,r]},nA=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=nb(e,i,n);return nE(s,r,a)};iF.prototype.lch=function(){return nA(this._rgb)},iF.prototype.hcl=function(){return nA(this._rgb).reverse()},ij.lch=(...t)=>new iF(...t,"lch"),ij.hcl=(...t)=>new iF(...t,"hcl"),iV.format.lch=nS,iV.format.hcl=(...t)=>nS(...iP(t,"hcl").reverse()),["lch","hcl"].forEach(t=>iV.autodetect.push({p:2,test:(...e)=>{if("array"===iA(e=iP(e,t))&&3===e.length)return t}}));var nP={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};iF.prototype.name=function(){let t=ne(this._rgb,"rgb");for(let e of Object.keys(nP))if(nP[e]===t)return e.toLowerCase();return t},iV.format.named=t=>{if(nP[t=t.toLowerCase()])return i7(nP[t]);throw Error("unknown color name: "+t)},iV.autodetect.push({p:5,test:(t,...e)=>{if(!e.length&&"string"===iA(t)&&nP[t.toLowerCase()])return"named"}});var nO=(...t)=>{let[e,i,n]=iP(t,"rgb");return(e<<16)+(i<<8)+n};iF.prototype.num=function(){return nO(this._rgb)},ij.num=(...t)=>new iF(...t,"num"),iV.format.num=t=>{if("number"==iA(t)&&t>=0&&t<=0xffffff)return[t>>16,t>>8&255,255&t,1];throw Error("unknown num color: "+t)},iV.autodetect.push({p:5,test:(...t)=>{if(1===t.length&&"number"===iA(t[0])&&t[0]>=0&&t[0]<=0xffffff)return"num"}});const{round:nM}=Math;iF.prototype.rgb=function(t=!0){return!1===t?this._rgb.slice(0,3):this._rgb.slice(0,3).map(nM)},iF.prototype.rgba=function(t=!0){return this._rgb.slice(0,4).map((e,i)=>i<3?!1===t?e:nM(e):e)},ij.rgb=(...t)=>new iF(...t,"rgb"),iV.format.rgb=(...t)=>{let e=iP(t,"rgba");return void 0===e[3]&&(e[3]=1),e},iV.autodetect.push({p:3,test:(...t)=>{if("array"===iA(t=iP(t,"rgba"))&&(3===t.length||4===t.length&&"number"==iA(t[3])&&t[3]>=0&&t[3]<=1))return"rgb"}});const{log:nN}=Math;var nL=t=>{let e,i,n;let s=t/100;return s<66?(e=255,i=s<6?0:-155.25485562709179-.44596950469579133*(i=s-2)+104.49216199393888*nN(i),n=s<20?0:-254.76935184120902+.8274096064007395*(n=s-10)+115.67994401066147*nN(n)):(e=351.97690566805693+.114206453784165*(e=s-55)-40.25366309332127*nN(e),i=325.4494125711974+.07943456536662342*(i=s-50)-28.0852963507957*nN(i),n=255),[e,i,n,1]};const{round:nz}=Math;var nR=(...t)=>{let e;let i=iP(t,"rgb"),n=i[0],s=i[2],r=1e3,a=4e4;for(;a-r>.4;){let t=nL(e=(a+r)*.5);t[2]/t[0]>=s/n?a=e:r=e}return nz(e)};iF.prototype.temp=iF.prototype.kelvin=iF.prototype.temperature=function(){return nR(this._rgb)},ij.temp=ij.kelvin=ij.temperature=(...t)=>new iF(...t,"temp"),iV.format.temp=iV.format.kelvin=iV.format.temperature=nL;const{pow:nB,sign:nD}=Math;var nV=(...t)=>{let[e,i,n]=t=iP(t,"lab"),s=nB(e+.3963377774*i+.2158037573*n,3),r=nB(e-.1055613458*i-.0638541728*n,3),a=nB(e-.0894841775*i-1.291485548*n,3);return[255*nF(4.0767416621*s-3.3077115913*r+.2309699292*a),255*nF(-1.2684380046*s+2.6097574011*r-.3413193965*a),255*nF(-.0041960863*s-.7034186147*r+1.707614701*a),t.length>3?t[3]:1]};function nF(t){let e=Math.abs(t);return e>.0031308?(nD(t)||1)*(1.055*nB(e,1/2.4)-.055):12.92*t}const{cbrt:nj,pow:nU,sign:nq}=Math;var nZ=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=[nH(e/255),nH(i/255),nH(n/255)],o=nj(.4122214708*s+.5363325363*r+.0514459929*a),l=nj(.2119034982*s+.6806995451*r+.1073969566*a),h=nj(.0883024619*s+.2817188376*r+.6299787005*a);return[.2104542553*o+.793617785*l-.0040720468*h,1.9779984951*o-2.428592205*l+.4505937099*h,.0259040371*o+.7827717662*l-.808675766*h]};function nH(t){let e=Math.abs(t);return e<.04045?t/12.92:(nq(t)||1)*nU((e+.055)/1.055,2.4)}iF.prototype.oklab=function(){return nZ(this._rgb)},ij.oklab=(...t)=>new iF(...t,"oklab"),iV.format.oklab=nV,iV.autodetect.push({p:3,test:(...t)=>{if("array"===iA(t=iP(t,"oklab"))&&3===t.length)return"oklab"}});var nG=(...t)=>{let[e,i,n]=iP(t,"rgb"),[s,r,a]=nZ(e,i,n);return nE(s,r,a)};iF.prototype.oklch=function(){return nG(this._rgb)},ij.oklch=(...t)=>new iF(...t,"oklch"),iV.format.oklch=(...t)=>{let[e,i,n]=t=iP(t,"lch"),[s,r,a]=nk(e,i,n),[o,l,h]=nV(s,r,a);return[o,l,h,t.length>3?t[3]:1]},iV.autodetect.push({p:3,test:(...t)=>{if("array"===iA(t=iP(t,"oklch"))&&3===t.length)return"oklch"}}),iF.prototype.alpha=function(t,e=!1){return void 0!==t&&"number"===iA(t)?e?(this._rgb[3]=t,this):new iF([this._rgb[0],this._rgb[1],this._rgb[2],t],"rgb"):this._rgb[3]},iF.prototype.clipped=function(){return this._rgb._clipped||!1},iF.prototype.darken=function(t=1){let e=this.lab();return e[0]-=nc.Kn*t,new iF(e,"lab").alpha(this.alpha(),!0)},iF.prototype.brighten=function(t=1){return this.darken(-t)},iF.prototype.darker=iF.prototype.darken,iF.prototype.brighter=iF.prototype.brighten,iF.prototype.get=function(t){let[e,i]=t.split("."),n=this[e]();if(!i)return n;{let t=e.indexOf(i)-("ok"===e.substr(0,2)?2:0);if(t>-1)return n[t];throw Error(`unknown channel ${i} in mode ${e}`)}};const{pow:n$}=Math;iF.prototype.luminance=function(t,e="rgb"){if(void 0!==t&&"number"===iA(t)){if(0===t)return new iF([0,0,0,this._rgb[3]],"rgb");if(1===t)return new iF([255,255,255,this._rgb[3]],"rgb");let i=this.luminance(),n=20,s=(i,r)=>{let a=i.interpolate(r,.5,e),o=a.luminance();return!(1e-7>Math.abs(t-o))&&n--?o>t?s(i,a):s(a,r):a},r=(i>t?s(new iF([0,0,0]),this):s(this,new iF([255,255,255]))).rgb();return new iF([...r,this._rgb[3]])}return nW(...this._rgb.slice(0,3))};const nW=(t,e,i)=>.2126*(t=nK(t))+.7152*(e=nK(e))+.0722*(i=nK(i)),nK=t=>(t/=255)<=.03928?t/12.92:n$((t+.055)/1.055,2.4);var nJ={},nY=(t,e,i=.5,...n)=>{let s=n[0]||"lrgb";if(nJ[s]||n.length||(s=Object.keys(nJ)[0]),!nJ[s])throw Error(`interpolation mode ${s} is not defined`);return"object"!==iA(t)&&(t=new iF(t)),"object"!==iA(e)&&(e=new iF(e)),nJ[s](t,e,i).alpha(t.alpha()+i*(e.alpha()-t.alpha()))};iF.prototype.mix=iF.prototype.interpolate=function(t,e=.5,...i){return nY(this,t,e,...i)},iF.prototype.premultiply=function(t=!1){let e=this._rgb,i=e[3];return t?(this._rgb=[e[0]*i,e[1]*i,e[2]*i,i],this):new iF([e[0]*i,e[1]*i,e[2]*i,i],"rgb")},iF.prototype.saturate=function(t=1){let e=this.lch();return e[1]+=nc.Kn*t,e[1]<0&&(e[1]=0),new iF(e,"lch").alpha(this.alpha(),!0)},iF.prototype.desaturate=function(t=1){return this.saturate(-t)},iF.prototype.set=function(t,e,i=!1){let[n,s]=t.split("."),r=this[n]();if(!s)return r;{let t=n.indexOf(s)-("ok"===n.substr(0,2)?2:0);if(t>-1){if("string"==iA(e))switch(e.charAt(0)){case"+":case"-":r[t]+=+e;break;case"*":r[t]*=+e.substr(1);break;case"/":r[t]/=+e.substr(1);break;default:r[t]=+e}else if("number"===iA(e))r[t]=e;else throw Error("unsupported value for Color.set");let s=new iF(r,n);return i?(this._rgb=s._rgb,this):s}throw Error(`unknown channel ${s} in mode ${n}`)}},iF.prototype.tint=function(t=.5,...e){return nY(this,"white",t,...e)},iF.prototype.shade=function(t=.5,...e){return nY(this,"black",t,...e)},nJ.rgb=(t,e,i)=>{let n=t._rgb,s=e._rgb;return new iF(n[0]+i*(s[0]-n[0]),n[1]+i*(s[1]-n[1]),n[2]+i*(s[2]-n[2]),"rgb")};const{sqrt:nQ,pow:nX}=Math;nJ.lrgb=(t,e,i)=>{let[n,s,r]=t._rgb,[a,o,l]=e._rgb;return new iF(nQ(nX(n,2)*(1-i)+nX(a,2)*i),nQ(nX(s,2)*(1-i)+nX(o,2)*i),nQ(nX(r,2)*(1-i)+nX(l,2)*i),"rgb")},nJ.lab=(t,e,i)=>{let n=t.lab(),s=e.lab();return new iF(n[0]+i*(s[0]-n[0]),n[1]+i*(s[1]-n[1]),n[2]+i*(s[2]-n[2]),"lab")};var n0=(t,e,i,n)=>{let s,r,a,o,l,h,u,c,d,p,f,g;return"hsl"===n?(s=t.hsl(),r=e.hsl()):"hsv"===n?(s=t.hsv(),r=e.hsv()):"hcg"===n?(s=t.hcg(),r=e.hcg()):"hsi"===n?(s=t.hsi(),r=e.hsi()):"lch"===n||"hcl"===n?(n="hcl",s=t.hcl(),r=e.hcl()):"oklch"===n&&(s=t.oklch().reverse(),r=e.oklch().reverse()),("h"===n.substr(0,1)||"oklch"===n)&&([a,l,u]=s,[o,h,c]=r),isNaN(a)||isNaN(o)?isNaN(a)?isNaN(o)?p=Number.NaN:(p=o,(1==u||0==u)&&"hsv"!=n&&(d=h)):(p=a,(1==c||0==c)&&"hsv"!=n&&(d=l)):(g=o>a&&o-a>180?o-(a+360):o180?o+360-a:o-a,p=a+i*g),void 0===d&&(d=l+i*(h-l)),f=u+i*(c-u),"oklch"===n?new iF([f,d,p],n):new iF([p,d,f],n)};const n1=(t,e,i)=>n0(t,e,i,"lch");nJ.lch=n1,nJ.hcl=n1,nJ.num=(t,e,i)=>{let n=t.num();return new iF(n+i*(e.num()-n),"num")},nJ.hcg=(t,e,i)=>n0(t,e,i,"hcg"),nJ.hsi=(t,e,i)=>n0(t,e,i,"hsi"),nJ.hsl=(t,e,i)=>n0(t,e,i,"hsl"),nJ.hsv=(t,e,i)=>n0(t,e,i,"hsv"),nJ.oklab=(t,e,i)=>{let n=t.oklab(),s=e.oklab();return new iF(n[0]+i*(s[0]-n[0]),n[1]+i*(s[1]-n[1]),n[2]+i*(s[2]-n[2]),"oklab")},nJ.oklch=(t,e,i)=>n0(t,e,i,"oklch");const{pow:n2,sqrt:n5,PI:n3,cos:n6,sin:n4,atan2:n9}=Math,n8=(t,e)=>{let i=t.length,n=[0,0,0,0];for(let s=0;s.9999999&&(n[3]=1),new iF(iT(n))},{pow:n7}=Math;function st(t){let e="rgb",i=ij("#ccc"),n=0,s=[0,1],r=[],a=[0,0],o=!1,l=[],h=!1,u=0,c=1,d=!1,p={},f=!0,g=1,m=function(t){if("string"===iA(t=t||["#fff","#000"])&&ij.brewer&&ij.brewer[t.toLowerCase()]&&(t=ij.brewer[t.toLowerCase()]),"array"===iA(t)){1===t.length&&(t=[t[0],t[0]]),t=t.slice(0);for(let e=0;e=o[i];)i++;return i-1}return 0},v=t=>t,y=t=>t,b=function(t,n){let s,h;if(null==n&&(n=!1),isNaN(t)||null===t)return i;h=n?t:o&&o.length>2?_(t)/(o.length-2):c!==u?(t-u)/(c-u):1,h=y(h),n||(h=v(h)),1!==g&&(h=n7(h,g));let d=Math.floor(1e4*(h=iI(h=a[0]+h*(1-a[0]-a[1]),0,1)));if(f&&p[d])s=p[d];else{if("array"===iA(l))for(let t=0;t=i&&t===r.length-1){s=l[t];break}if(h>i&&hp={};m(t);let w=function(t){let e=ij(b(t));return h&&e[h]?e[h]():e};return w.classes=function(t){if(null!=t){if("array"===iA(t))o=t,s=[t[0],t[t.length-1]];else{let e=ij.analyze(s);o=0===t?[e.min,e.max]:ij.limits(e,"e",t)}return w}return o},w.domain=function(t){if(!arguments.length)return s;u=t[0],c=t[t.length-1],r=[];let e=l.length;if(t.length===e&&u!==c)for(let e of Array.from(t))r.push((e-u)/(c-u));else{for(let t=0;t2){let e=t.map((e,i)=>i/(t.length-1)),i=t.map(t=>(t-u)/(c-u));i.every((t,i)=>e[i]===t)||(y=t=>{if(t<=0||t>=1)return t;let n=0;for(;t>=i[n+1];)n++;let s=(t-i[n])/(i[n+1]-i[n]);return e[n]+s*(e[n+1]-e[n])})}}return s=[u,c],w},w.mode=function(t){return arguments.length?(e=t,x(),w):e},w.range=function(t,e){return m(t,e),w},w.out=function(t){return h=t,w},w.spread=function(t){return arguments.length?(n=t,w):n},w.correctLightness=function(t){return null==t&&(t=!0),d=t,x(),v=d?function(t){let e=b(0,!0).lab()[0],i=b(1,!0).lab()[0],n=e>i,s=b(t,!0).lab()[0],r=e+(i-e)*t,a=s-r,o=0,l=1,h=20;for(;Math.abs(a)>.01&&h-- >0;)n&&(a*=-1),a<0?(o=t,t+=(l-t)*.5):(l=t,t+=(o-t)*.5),a=(s=b(t,!0).lab()[0])-r;return t}:t=>t,w},w.padding=function(t){return null!=t?("number"===iA(t)&&(t=[t,t]),a=t,w):a},w.colors=function(e,i){arguments.length<2&&(i="hex");let n=[];if(0==arguments.length)n=l.slice(0);else if(1===e)n=[w(.5)];else if(e>1){let t=s[0],i=s[1]-t;n=(function(t,e,i){let n=[],s=0r;s?t++:t--)n.push(t);return n})(0,e,!1).map(n=>w(t+n/(e-1)*i))}else{t=[];let e=[];if(o&&o.length>2)for(let t=1,i=o.length,n=1<=i;n?ti;n?t++:t--)e.push((o[t-1]+o[t])*.5);else e=s;n=e.map(t=>w(t))}return ij[i]&&(n=n.map(t=>t[i]())),n},w.cache=function(t){return null!=t?(f=t,w):f},w.gamma=function(t){return null!=t?(g=t,w):g},w.nodata=function(t){return null!=t?(i=ij(t),w):i},w}const se=function(t){let e=[1,1];for(let i=1;inew iF(t))).length)[i,n]=t.map(t=>t.lab()),e=function(t){return new iF([0,1,2].map(e=>i[e]+t*(n[e]-i[e])),"lab")};else if(3===t.length)[i,n,s]=t.map(t=>t.lab()),e=function(t){return new iF([0,1,2].map(e=>(1-t)*(1-t)*i[e]+2*(1-t)*t*n[e]+t*t*s[e]),"lab")};else if(4===t.length){let r;[i,n,s,r]=t.map(t=>t.lab()),e=function(t){return new iF([0,1,2].map(e=>(1-t)*(1-t)*(1-t)*i[e]+3*(1-t)*(1-t)*t*n[e]+3*(1-t)*t*t*s[e]+t*t*t*r[e]),"lab")}}else if(t.length>=5){let i,n,s;i=t.map(t=>t.lab()),n=se(s=t.length-1),e=function(t){let e=1-t;return new iF([0,1,2].map(r=>i.reduce((i,a,o)=>i+n[o]*e**(s-o)*t**o*a[r],0)),"lab")}}else throw RangeError("No point in running bezier with only one color.");return e},sn=(t,e,i)=>{if(!sn[i])throw Error("unknown blend mode "+i);return sn[i](t,e)},ss=t=>(e,i)=>{let n=ij(i).rgb(),s=ij(e).rgb();return ij.rgb(t(n,s))},sr=t=>(e,i)=>{let n=[];return n[0]=t(e[0],i[0]),n[1]=t(e[1],i[1]),n[2]=t(e[2],i[2]),n};sn.normal=ss(sr(t=>t)),sn.multiply=ss(sr((t,e)=>t*e/255)),sn.screen=ss(sr((t,e)=>255*(1-(1-t/255)*(1-e/255)))),sn.overlay=ss(sr((t,e)=>e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255)))),sn.darken=ss(sr((t,e)=>t>e?e:t)),sn.lighten=ss(sr((t,e)=>t>e?t:e)),sn.dodge=ss(sr((t,e)=>255===t?255:(t=e/255*255/(1-t/255))>255?255:t)),sn.burn=ss(sr((t,e)=>255*(1-(1-e/255)/(t/255))));const{pow:sa,sin:so,cos:sl}=Math,{floor:sh,random:su}=Math,{log:sc,pow:sd,floor:sp,abs:sf}=Math;function sg(t,e=null){let i={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===iA(t)&&(t=Object.values(t)),t.forEach(t=>{e&&"object"===iA(t)&&(t=t[e]),null==t||isNaN(t)||(i.values.push(t),i.sum+=t,ti.max&&(i.max=t),i.count+=1)}),i.domain=[i.min,i.max],i.limits=(t,e)=>sm(i,t,e),i}function sm(t,e="equal",i=7){"array"==iA(t)&&(t=sg(t));let{min:n,max:s}=t,r=t.values.sort((t,e)=>t-e);if(1===i)return[n,s];let a=[];if("c"===e.substr(0,1)&&(a.push(n),a.push(s)),"e"===e.substr(0,1)){a.push(n);for(let t=1;t 0");let t=Math.LOG10E*sc(n),e=Math.LOG10E*sc(s);a.push(n);for(let n=1;n200&&(h=!1)}let d={};for(let t=0;tt-e),a.push(p[0]);for(let t=1;t{let n=t.length;i||(i=Array.from(Array(n)).map(()=>1));let s=n/i.reduce(function(t,e){return t+e});if(i.forEach((t,e)=>{i[e]*=s}),t=t.map(t=>new iF(t)),"lrgb"===e)return n8(t,i);let r=t.shift(),a=r.get(e),o=[],l=0,h=0;for(let t=0;t{let s=t.get(e);u+=t.alpha()*i[n+1];for(let t=0;t=360;)e-=360;a[t]=e}else a[t]=a[t]/o[t];return u/=n,new iF(a,e).alpha(u>.99999?1:u,!0)},bezier:t=>{let e=si(t);return e.scale=()=>st(e),e},blend:sn,cubehelix:function(t=300,e=-1.5,i=1,n=1,s=[0,1]){let r=0,a;"array"===iA(s)?a=s[1]-s[0]:(a=0,s=[s,s]);let o=function(o){let l=iz*((t+120)/360+e*o),h=sa(s[0]+a*o,n),u=(0!==r?i[0]+o*r:i)*h*(1-h)/2,c=sl(l),d=so(l);return ij(iT([255*(h+u*(-.14861*c+1.78277*d)),255*(h+u*(-.29227*c-.90649*d)),255*(h+1.97294*c*u),1]))};return o.start=function(e){return null==e?t:(t=e,o)},o.rotations=function(t){return null==t?e:(e=t,o)},o.gamma=function(t){return null==t?n:(n=t,o)},o.hue=function(t){return null==t?i:("array"===iA(i=t)?0==(r=i[1]-i[0])&&(i=i[1]):r=0,o)},o.lightness=function(t){return null==t?s:("array"===iA(t)?(s=t,a=t[1]-t[0]):(s=[t,t],a=0),o)},o.scale=()=>ij.scale(o),o.hue(i),o},mix:nY,interpolate:nY,random:()=>{let t="#";for(let e=0;e<6;e++)t+="0123456789abcdef".charAt(sh(16*su()));return new iF(t,"hex")},scale:st,analyze:sg,contrast:(t,e)=>{t=new iF(t),e=new iF(e);let i=t.luminance(),n=e.luminance();return i>n?(i+.05)/(n+.05):(n+.05)/(i+.05)},deltaE:function(t,e,i=1,n=1,s=1){var r=function(t){return 360*t/(2*sI)},a=function(t){return 2*sI*t/360};t=new iF(t),e=new iF(e);let[o,l,h]=Array.from(t.lab()),[u,c,d]=Array.from(e.lab()),p=(o+u)/2,f=(s_(sv(l,2)+sv(h,2))+s_(sv(c,2)+sv(d,2)))/2,g=.5*(1-s_(sv(f,7)/(sv(f,7)+sv(25,7)))),m=l*(1+g),_=c*(1+g),v=s_(sv(m,2)+sv(h,2)),y=s_(sv(_,2)+sv(d,2)),b=(v+y)/2,x=r(sx(h,m)),w=r(sx(d,_)),k=x>=0?x:x+360,S=w>=0?w:w+360,C=sw(k-S)>180?(k+S+360)/2:(k+S)/2,I=1-.17*sk(a(C-30))+.24*sk(a(2*C))+.32*sk(a(3*C+6))-.2*sk(a(4*C-63)),T=S-k;T=180>=sw(T)?T:S<=k?T+360:T-360,T=2*s_(v*y)*sS(a(T)/2);let E=y-v,A=1+.015*sv(p-50,2)/s_(20+sv(p-50,2)),P=1+.045*b,O=1+.015*b*I,M=30*sC(-sv((C-275)/25,2)),N=-(2*s_(sv(b,7)/(sv(b,7)+sv(25,7))))*sS(2*a(M));return sb(0,sy(100,s_(sv((u-o)/(i*A),2)+sv(E/(n*P),2)+sv(T/(s*O),2)+E/(n*P)*N*(T/(s*O)))))},distance:function(t,e,i="lab"){t=new iF(t),e=new iF(e);let n=t.get(i),s=e.get(i),r=0;for(let t in n){let e=(n[t]||0)-(s[t]||0);r+=e*e}return Math.sqrt(r)},limits:sm,valid:(...t)=>{try{return new iF(...t),!0}catch(t){return!1}},scales:{cool:()=>st([ij.hsl(180,1,.9),ij.hsl(250,.7,.4)]),hot:()=>st(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")},input:iV,colors:nP,brewer:sT});var sE=u("hFpCu");const sA=window.location,sP=new URLSearchParams(sA.search),sO=new URL(sA),sM=new J({objectHash:sB});function sN(t){let e=window.atob((t+"===".slice((t.length+3)%4)).replace(/-/g,"+").replace(/_/g,"/"));return new TextDecoder().decode(ik(Uint8Array.from(e,t=>t.codePointAt(0))))}function sL(t){return window.btoa(String.fromCodePoint(...iy(new TextEncoder().encode(t)))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function sz(t){return t.charAt(0).toUpperCase()+t.slice(1)}function sR(...t){return t.findLast(t=>void 0!==t)}function sB(t,e){return"object"==typeof t&&"object"==typeof e?Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(i=>{let n=t[i],s=e[i];return Object.hasOwn(e,i)&&("function"==typeof n?.equals?n.equals(s):sB(n,s))}):t===e}function sD(t,e=null){document.dispatchEvent(new CustomEvent(t,{detail:e}))}function sV(t,e,i=0){return t&&e&&t.round().subtract(e.round()).length<=i}function sF(t){let e=document.createElement("span");return e.classList.add("beam"),e.style.backgroundColor=t,e.title=t,e}function sj(t){if(!t.length)return[];let e=ij.average(t).hex(),i=[];if(t.some(t=>t!==e)){let e=t.length-1;t.forEach((t,n)=>{if(i.push(sF(t)),ne.subtract(t).length-i.subtract(t).length}function sq(t,e){let i=document.createElement("span");return i.classList.add("icon","material-symbols-outlined"),i.textContent=t,i.title=e??sz(t),i}function sZ(t,e,i=t=>t/2){let n=t.subtract(e);return n.length="function"==typeof i?i(n.length):i,t.subtract(n)}function sH(t,e,i){let n=new sE.Point(0,0);return n.length=e,n.angle=60*s$(i),t.add(n)}function sG(t){return t+(t>=3?-3:3)}function s$(t,e=!0){return(t+=(e?-1:1)*2)<0?t+6:t>5?t-6:t}function sW(t){let e=document.createElement("span");return e.classList.add("text"),e.textContent=t.toString(),e}function sK(t){if(t)return t}window.base64decode=sN,window.base64encode=sL;const sJ=window.console=window.console||{debug:function(){}},sY=sJ.debug;function sQ(t){sJ.debug=t?sY:function(){}}sQ(sP.has("debug")??!1);var sE=(u("hFpCu"),u("hFpCu"));class sX{constructor(t,e){this.coordinates=[t,e],this.r=t,this.c=e}toString(){return this.coordinates.join(",")}static toAxialCoordinates(t){return new s0(t.c-(t.r-(1&t.r))/2,t.r)}}class s0{constructor(t,e,i){i||(i=-t-e),this.coordinates=[t,e,i],this.q=t,this.r=e,this.s=i}add(t){return s0.add(this,t)}equals(t){return this.q===t.q&&this.r===t.r&&this.s===t.s}isNeighbor(t){return s0.isNeighbor(this,t)}neighbor(t){return s0.neighbor(this,t)}toString(){return this.coordinates.join(",")}static add(t,e){return new s0(t.q+e.q,t.r+e.r)}static direction(t){return 0===t&&(t=6),s0.directions[6-t]}static directions=[new s0(1,0),new s0(1,-1),new s0(0,-1),new s0(-1,0),new s0(-1,1),new s0(0,1)];static isNeighbor(t,e){return s0.directions.map(e=>s0.add(t,e)).some(t=>t.equals(e))}static neighbor(t,e){return s0.add(t,s0.direction(e))}static toOffsetCoordinates(t){return new sX(t.q+(t.r-(1&t.r))/2,t.r)}}var sE=(u("hFpCu"),u("hFpCu"));class s1{#t={};constructor(t){this.setState(t)}getState(){return structuredClone(this.#t)}setState(t){this.#t=structuredClone(t)}updateState(t,e=!1){return t(this.#t),e&&sD(s1.Events.Update,{object:this}),this.getState()}static Events=Object.freeze({Update:"state-update"})}class s2 extends s1{center;data;group;id;immutable;locked;parent;sortOrder=100;type;constructor(t,e,i){if(e.id??=crypto.randomUUID().split("-")[0],super(e),this.id=e.id,this.immutable??=e?.immutable??!1,this.type=e?.type??i?.type,void 0===this.type)throw console.debug(`[Item:${this.id}]`,e,i),Error("Item must have type defined");this.data=Object.assign({id:this.id,type:this.type},i?.data||{}),this.locked=i?.locked!==!1,t&&(this.center=t.center),this.parent=t,this.group=new sE.Group({data:this.data,locked:this.locked})}equals(t){return t instanceof s2&&this.id===t.id}getColorElements(){return[]}getCompoundPath(){return new sE.CompoundPath({children:this.group.clone({insert:!1}).children.filter(t=>!1!==t.data.collidable)})}getIndex(){return this.group.index}getLayer(){return this.group.parent}onTap(){}onCollision({collisionStep:t}){return t}onDeselected(){}onInitialization(){}onSelected(){}remove(){this.group.remove()}toString(){return`[${this.type}:${this.id}]`}update(){}static immutable(t){return t.immutable}static Types=Object.freeze(Object.fromEntries(["beam","collision","filter","mask","portal","reflector","terminus","tile","wall"].map(t=>[t,sz(t)])))}var sE=u("hFpCu");class s5{#e=[];#i={element:document};constructor(t={}){this.#i=Object.assign(this.#i,t)}add(t,e={}){this.#e=this.#e.concat(t.map(t=>{if(!(t=Object.assign({},this.#i,e,t)).type)throw Error("Event type is required");return t.context&&(t.handler=t.handler.bind(t.context)),t.element.addEventListener(t.type,t.handler,t.options),t}))}remove(){this.#e.forEach(t=>t.element.removeEventListener(t.type,t.handler)),this.#e=[]}}var sE=u("hFpCu");class s3{#n={};#s;#r;constructor(t=[]){this.#r=t,this.#s=0!==t.length,t.forEach(t=>{this.#n[t]=new s3})}set(t,e){if(this.#s&&!this.#r.includes(t))throw Error(`Invalid key: ${t}`);this.#n[t]=e}get(t){return void 0===t?this.#n:this.#n[t]}keys(t){return Object.keys(this.#a(t))}length(t){return this.keys(t).length}unset(t){delete this.#n[t]}values(t){return Object.values(this.#a(t))}#a(t){let e=this.get(t);return e instanceof s3?e.get():e}}const s6=window.navigator;class s4{#o;#n=new s3(Object.values(s4.CacheKeys));#l;#h=new s5({context:this});#u;constructor(t){this.#o=t.getBoundingClientRect(),this.#l=t,this.#u=new sE.Point(this.#o.left,this.#o.top),this.#h.add([{type:"pointercancel",handler:this.onPointerUp},{type:"pointerdown",handler:this.onPointerDown},{type:"pointerleave",handler:this.onPointerUp},{type:"pointermove",handler:this.onPointerMove},{type:"pointerout",handler:this.onPointerUp},{type:"pointerup",handler:this.onPointerUp},{type:"wheel",handler:this.onMouseWheel,options:{passive:!1}}],{element:t})}onMouseWheel(t){t.preventDefault(),this.#c(new sE.Point(t.offsetX,t.offsetY),t.deltaY,1.05)}onPan(t){let e=/*@__PURE__*/a(sE).view.viewToProject(s4.point(t)),i=this.#d(s4.GestureKeys.Pan);if(!i){this.#p(s4.GestureKeys.Pan,{from:e});return}let n=i.from.subtract(e).add(/*@__PURE__*/a(sE).view.center);/*@__PURE__*/a(sE).view.center.subtract(n).length>1&&(document.body.classList.contains("grab")||document.body.classList.add("grab"),/*@__PURE__*/a(sE).view.center=n)}onPinch(t){let e=t[0],i=t[1],n=s4.point(e),s=s4.point(i),r=n.getDistance(s),a=this.#d(s4.GestureKeys.Pinch);if(!a){this.#p(s4.GestureKeys.Pinch,{distance:r});return}let o=n.add(s).divide(2).subtract(this.#u),l=r/a.distance,h=(a.distance-r)*l;this.#c(o,h,1.01),a.distance=r}onPointerDown(t){this.#n.get(s4.CacheKeys.Down).set(t.pointerId,t)}onPointerMove(t){let e=this.#n.get(s4.CacheKeys.Down).get(t.pointerId);if(e&&s4.point(t).subtract(s4.point(e)).length>1){this.#n.get(s4.CacheKeys.Move).set(t.pointerId,t);let e=this.#n.get(s4.CacheKeys.Move).values();2===e.length?this.onPinch(e):this.onPan(t)}}onPointerUp(t){let e=this.#n.get(s4.CacheKeys.Down).get(t.pointerId);e&&(1!==this.#n.length(s4.CacheKeys.Down)||this.#n.get(s4.CacheKeys.Move).get(t.pointerId)||this.onTap(e),document.body.classList.remove("grab"),this.#n.get(s4.CacheKeys.Down).unset(t.pointerId),this.#n.get(s4.CacheKeys.Move).unset(t.pointerId),this.#n.get(s4.CacheKeys.Gesture).unset(s4.GestureKeys.Pan),2>this.#n.length(s4.CacheKeys.Move)&&this.#n.get(s4.CacheKeys.Gesture).unset(s4.GestureKeys.Pinch))}onTap(t){let e=/*@__PURE__*/a(sE).view.viewToProject(s4.point(t).subtract(this.#u));this.#l.dispatchEvent(new CustomEvent(s4.GestureKeys.Tap,{detail:{event:t,point:e}}))}#d(t){return this.#n.get(s4.CacheKeys.Gesture).get(t)}#p(t,e){this.#n.get(s4.CacheKeys.Gesture).set(t,e)}#c(t,e,i){let n=Math.max(Math.min(e<0?/*@__PURE__*/a(sE).view.zoom*i:/*@__PURE__*/a(sE).view.zoom/i,s4.maxZoom),s4.minZoom),s=/*@__PURE__*/a(sE).view.viewToProject(t),r=s.subtract(/*@__PURE__*/a(sE).view.center),o=s.subtract(r.multiply(/*@__PURE__*/a(sE).view.zoom/n)).subtract(/*@__PURE__*/a(sE).view.center);/*@__PURE__*/a(sE).view.zoom=n,/*@__PURE__*/a(sE).view.center=/*@__PURE__*/a(sE).view.center.add(o)}static point(t){return new sE.Point(t.clientX,t.clientY)}static vibrate(t=25){s4.canVibrate&&s6.vibrate(t)}static canVibrate="function"==typeof s6.vibrate;static CacheKeys=Object.freeze({Down:"down",Move:"move",Gesture:"gesture"});static GestureKeys=Object.freeze({Pan:"pan",Pinch:"pinch",Tap:"tap"});static maxZoom=2;static minZoom=.5}var sE=u("hFpCu");class s9{definition;id;name;constructor(t,e){this.id=t,this.name=e}place(t,e){if(!this.definition){let t=document.getElementById(this.id),e=/*@__PURE__*/a(sE).project.importSVG(t);e.data.collidable=!1,e.locked=!0,this.definition=new sE.SymbolDefinition(e)}return e&&this.definition.item.set(e),this.definition.place(t)}}class s8{static Immutable=new s9("icon-immutable","block");static Lock=new s9("icon-lock","lock");static Move=new s9("icon-move","drag_pan");static RotateLeft=new s9("icon-rotate-left","rotate_left");static RotateRight=new s9("icon-rotate-right","rotate_right");static Swap=new s9("icon-swap","swap_horiz");static ToggleOff=new s9("icon-toggle-off","toggle_off");static ToggleOn=new s9("icon-toggle-on","toggle_on");static All=Object.freeze([s8.Immutable,s8.Lock,s8.Move,s8.RotateLeft,s8.RotateRight,s8.Swap,s8.ToggleOff,s8.ToggleOn]);static ByName=Object.freeze(Object.fromEntries(s8.All.map(t=>[t.name,t])))}const s7=document.getElementById("modifiers");let rt=0;class re extends s1{#f;#g=!1;#h=new s5({context:this});#m;configuration;element;disabled=!1;immutable=!1;name;parent;tile;title;type;constructor(t,e){e.id??=rt++,super(e),this.id=e.id,this.parent=t,this.type=e.type}attach(t){this.tile=t,this.disabled=this.immutable||this.tile?.modifiers.some(t=>t.type===re.Types.immutable)||!this.tile?.items.some(t=>t.type!==s2.Types.beam)||!this.tile?.equals(this.parent)&&(this.tile.modifiers.some(t=>t.type===this.type)||this.tile?.modifiers.length===rw.MaxModifiers);let e=this.#f=document.createElement("li");e.classList.add(["modifier",this.type.toLowerCase()].join("-")),e.dataset.id=this.id.toString();let i=this.element=document.createElement("span");i.classList.add("material-symbols-outlined","fill"),e.append(i),this.update(),this.#h.add([{type:"pointerdown",handler:this.onPointerDown},{type:"pointerleave",handler:this.onPointerUp},{type:"pointerup",handler:this.onPointerUp}],{element:e}),s7.append(e)}detach(){this.#f&&(this.#h.remove(),this.#f.remove(),this.element=void 0,this.#f=void 0)}dispatchEvent(t,e){sD(t,Object.assign({},e||{},{modifier:this,tile:this.tile}))}equals(t){return t instanceof re&&this.id===t.id}getSymbol(){return s8.ByName[this.name]}move(t){this.parent?.removeModifier(this),this.parent=t,t?.addModifier(this)}moveFilter(t){return t.modifiers.some(re.immutable)||t.items.every(s2.immutable)}onPointerDown(t){0!==t.button?this.onToggle(t):this.#g=!0}onPointerUp(t){if(clearTimeout(this.#m),this.#g&&!this.disabled){switch(t.type){case"pointerleave":this.onToggle(t);break;case"pointerup":this.onTap(t)}this.parent?.updateIcon(this)}this.#g=!1}onTap(){}onToggle(){s4.vibrate()}toString(){return[this.name,this.id].join(":")}update(t){t=Object.assign({disabled:this.disabled,name:this.name,title:this.title},t||{}),this.immutable||(this.disabled=t.disabled),this.name=t.name,this.title=t.title,this.#f&&(this.#f.classList.toggle("disabled",this.disabled),this.element.textContent=this.name,this.element.title=this.title)}static immutable(t){return t.type===re.Types.immutable}static Events=Object.freeze({Invoked:"modifier-invoked",Moved:"modifier-moved"});static Types=Object.freeze(Object.fromEntries(["immutable","lock","move","rotate","swap","toggle"].map(t=>[t,sz(t)])))}class ri extends re{#_;name=s8.Move.name;title="Move";onTap(t){super.onTap(t);let e=this.tile.items.filter(ri.movable);if(this.#_||!e.length)return;let i=new rD.Mask({id:this.toString(),onTap:this.#v.bind(this),onMask:()=>this.tile.beforeModify(),onUnmask:()=>this.tile.afterModify(),tileFilter:this.tileFilter.bind(this)});this.#_=i,sD(rD.Events.Mask,{mask:i})}moveFilter(t){return super.moveFilter(t)||!t.items.some(ri.movable)}moveItems(t){let e=this.tile.items.filter(ri.movable);return e.forEach(e=>e.move(t)),{moved:[ri.data(this.tile,t,e)],tiles:[this.tile,t]}}tileFilter(t){return!t.equals(this.tile)&&(t.modifiers.some(re.immutable)||t.items.some(t=>!ri.ignoreItemTypes.includes(t.type)))}#v(t,e){if(t.unmask(),e){let i=this.moveItems(e);t.updateSelectedTile(e),this.dispatchEvent(re.Events.Invoked,i)}this.#_=void 0}static data(t,e,i){return{fromTile:t,toTile:e,items:i}}static movable(t){return t.movable}static ignoreItemTypes=[s2.Types.beam,s2.Types.wall]}const rn=t=>class extends t{movable;constructor(t,e){super(...arguments),this.movable=!this.immutable&&!1!==e.movable}move(t){this.parent.removeItem(this);let e=this.parent.center.subtract(t.center);this.group.position=this.group.position.subtract(e),this.parent=t,this.parent.addItem(this),this.center=this.parent.center,this.onMove()}onMove(){}};class rs{color;colors;connected;direction;done;insertAbove;onAdd;onRemove;point;pathIndex;segmentIndex;state;tile;constructor(t,e,i,n,s,r,a,o,l,h,u,c,d){if(u&&!(u instanceof rr))throw Error("Step.state must be instance of StepState");this.colors=i?Array.isArray(i)?Array.from(i):[i]:[],this.colors.length&&(this.color=ij.average(this.colors).hex()),this.connected=o??!0,this.direction=n,this.done=h??!1,this.index=t,this.insertAbove=l,this.onAdd=c??sK,this.onRemove=d??sK,this.point=s,this.pathIndex=r,this.segmentIndex=a,this.state=u??new rr,this.tile=e}copy(t){return new rs(t.index??this.index,t.tile??this.tile,t.colors??t.color??this.colors,t.direction??this.direction,t.point??this.point,t.pathIndex??this.pathIndex,t.segmentIndex??this.segmentIndex,t.connected??this.connected,t.insertAbove??this.insertAbove,t.done??this.done,t.state??new rr(this.state),t.onAdd??this.onAdd,t.onRemove??this.onRemove)}equals(t){return sB(this,t)}}class rr{#n={};constructor(){let t=Object.assign({},...arguments);Object.keys(t).forEach(e=>{this[e]=t[e]})}copy(...t){return new rr(...[this].concat(t))}get(t){return this.#r(t).map(t=>this[t]).find(t=>t)}has(t){return this.#r(t).some(t=>this[t])}#r(t){return this.#n[t.name]??=Object.keys(Reflect.construct(t,[]))}static Collision=class{collision;constructor(t){this.collision=t}};static Filter=class{filter={}};static MergeInto=class{mergeInto;constructor(t){this.mergeInto={beam:t}}};static MergeWith=class{mergeWith;constructor(t){this.mergeWith=t}};static Portal=class{portal;constructor(t,e){this.portal={entryPortal:t,exitPortal:e}}};static Reflector=class{reflector;constructor(t){this.reflector={item:t}}};static TerminusConnection=class{terminusConnection;constructor(t,e){this.terminusConnection={terminus:t,opening:e}}}}class ra extends rn(s2){constructor(t,{color:e}){super(...arguments),this.color=ij.average(Array.isArray(e)?e:[e]).hex();let i=new sE.Color(e);i.alpha=.25;let n=new sE.Path.RegularPolygon({center:t.center,closed:!0,radius:t.parameters.circumradius/3,sides:3,style:{fillColor:i,strokeColor:e,strokeWidth:2}});this.group.addChild(n)}getColorElements(){return[sF(this.color)]}onCollision({currentStep:t,nextStep:e}){return e.copy(t.state.has(rr.Filter)?{colors:e.colors.concat([this.color])}:{state:new rr({insertAbove:this},new rr.Filter)})}}var sE=u("hFpCu");class ro extends re{clockwise;title="Rotate";constructor(t,e,i={}){super(...arguments),this.clockwise=sR(!0,e.clockwise,i.clockwise),this.name=ro.Names[this.clockwise?"right":"left"]}moveFilter(t){return super.moveFilter(t)||!t.items.some(t=>t.rotatable)}onTap(t){super.onTap(t);let e=this.tile.items.filter(t=>t.rotatable);e.forEach(t=>t.rotate(this.clockwise)),this.dispatchEvent(re.Events.Invoked,{items:e})}onToggle(){super.onToggle(),this.clockwise=!this.clockwise,this.updateState(t=>{t.clockwise=this.clockwise}),this.update({name:ro.Names[this.clockwise?"right":"left"]})}static Names=Object.freeze({left:s8.RotateLeft.name,right:s8.RotateRight.name})}const rl=t=>class extends t{direction;rotatable;rotation=0;rotationDegrees;constructor(t,e,i={}){super(...arguments),this.direction=sR(e.direction,i.direction),this.rotatable=!this.immutable&&sR(!0,e.rotatable,i.rotatable),this.rotationDegrees=sR(60,e.rotationDegrees,i.rotationDegrees),this.rotation=sR(0,e.rotation,i.rotation)%this.getMaxRotation()}getDirection(t){return void 0===(t=t??this.direction)?t:(t+this.rotation+6)%6}getMaxRotation(){return 360/this.rotationDegrees}onInitialization(){super.onInitialization(),this.rotateGroup(this.rotation),void 0!==this.direction&&this.rotateGroup(this.direction)}rotateGroup(t){this.group.rotate(t*this.rotationDegrees,this.center)}rotate(t){if(!this.rotatable)return;let e=!1===t?-1:1;this.rotation=(e+this.rotation)%this.getMaxRotation(),this.updateState(t=>{t.rotation=this.rotation}),this.rotateGroup(e)}};class rh extends rn(rl(s2)){#y={};constructor(t,e){super(t,e,{rotatable:void 0!==e.direction}),this.direction=e.direction;let i=t.parameters.circumradius/3,n=t.parameters.circumradius/5,s={fillColor:"black",strokeColor:"white",strokeWidth:2},r=[],a=new sE.Path.Ellipse({center:t.center,radius:[n,i],style:s});r.push(a);let o=new sE.Path.Ellipse({center:t.center,radius:[n-2*s.strokeWidth,i-2*s.strokeWidth],style:s});if(r.push(o),void 0!==this.direction){let e=new(0,sE.Path)({closed:!0,opacity:.25,segments:[t.center.add(new sE.Point(0,i)),t.center.subtract(new sE.Point(0,i)),t.center.subtract(new sE.Point(2.5*n,0))],style:{fillColor:"black"}}).subtract(a);r.unshift(e)}this.group.addChildren(r),void 0!==this.direction&&this.rotateGroup(1)}get(t){return this.#y[t]}onCollision({beam:t,currentStep:e,nextStep:i,puzzle:n}){let s=e.state.get(rr.Portal);if(s){if(s.exitPortal===this)return i.copy({insertAbove:this})}else{let t=sG(i.direction);if(sR(this.get(t),i).indexthis.update(t,e),onRemove:()=>this.update(t),state:i.state.copy(new rr.Portal(this))})}let r=this.#b(n,t,i);if(0===r.length)return console.debug(this.toString(),"no valid exit portals found"),e;if(1===r.length){let e=r[0];return console.debug(this.toString(),"single exit portal matched:",e),this.#x(t,i,e)}{console.debug(this.toString(),"found multiple valid exit portals:",r);let s={exitPortals:r},a=new rD.Mask({id:this.id,onMask:()=>e.tile.beforeModify(),onTap:(e,n)=>{let r=s.exitPortals.find(t=>t.parent===n);r&&(e.addMove(),t.addStep(this.#x(t,i,r)),e.unmask())},onUnmask:()=>e.tile.afterModify(),onUpdate:()=>{let e=this.#b(n,t,i);if(0===e.length)return console.debug(this.toString(),"mask onUpdate: no valid exit portals found"),!1;if(1===e.length){let n=e[0];return console.debug(this.toString(),"mask onUpdate: single portal matched:",n),t.addStep(this.#x(t,i,n)),!1}console.debug(this.toString(),"mask onUpdate: exit portals:",e),s.exitPortals=e},tileFilter:t=>!(t.equals(this.parent)||s.exitPortals.map(t=>t.parent).some(e=>e.equals(t)))});return n.updateSelectedTile(null),n.mask(a),e}}onMove(){super.onMove(),this.#y={}}update(t,e){this.#y[t]=e}#b(t,e,i){let n=t.getItems().filter(t=>t.type===s2.Types.portal&&!t.equals(this)&&!t.get(rh.getExitDirection(i,this,t))&&(void 0===this.getDirection()||void 0===t.getDirection()||t.getDirection()===this.getDirection()));if(n.length>1){let t=e.getState().steps?.[i.index]?.[this.id];if(void 0!==t){console.debug(this.toString(),`found exitPortalId ${t} in beam step ${i.index} state`);let e=n.find(e=>e.id===t);if(e)return[e]}}return n}#x(t,e,i){let n=rh.getExitDirection(e,this,i);return e.copy({connected:!1,direction:n,insertAbove:i,onAdd:e=>{i.update(n,e),t.updateState(t=>(t.steps??={})[e.index]={[this.id]:i.id})},onRemove:e=>{t.updateState(t=>{delete t.steps[e.index]}),i.update(n)},point:i.parent.center,state:e.state.copy(new rr.Portal(this,i)),tile:i.parent})}static getExitDirection(t,e,i){return i.getDirection()??e.getDirection()??t.direction}}var sE=u("hFpCu");class ru extends re{on;title="Toggle";constructor(t,e){super(...arguments),this.on=e.on||this.parent?.items.some(t=>t.on||t.toggled),this.name=this.getName()}attach(t){super.attach(t),this.on=this.tile?.items.some(t=>t.on||t.toggled),this.update({name:this.getName()})}getName(){return ru.Names[this.on?"on":"off"]}moveFilter(t){return super.moveFilter(t)||!t.items.some(t=>t.toggleable)}onTap(t){super.onTap(t),this.on=!this.on;let e=this.tile.items.filter(t=>t.toggleable);e.forEach(t=>t.toggle(this.on)),this.update({name:this.getName()}),this.dispatchEvent(re.Events.Invoked,{items:e})}static Names=Object.freeze({on:s8.ToggleOn.name,off:s8.ToggleOff.name})}const rc=t=>class extends t{toggleable;toggled;constructor(t,e){super(...arguments),this.toggleable=!this.immutable&&!1!==e.toggleable,this.toggled=this.toggleable&&e.toggled}onToggle(){}toggle(t){this.toggled=t,this.onToggle()}};var sE=u("hFpCu");class rd{constructor(t,e,i,n){let s=[i];void 0!==n&&s.push(n),this.beam=i,this.index=t,this.item=n,this.itemIds=s.map(t=>t.id),this.items=s,this.point=e[0],this.points=e,this.withSelf=i.equals(n)}copy(t){return new rd(t.index??this.index,t.points??this.points,t.beam??this.beam,t.item??this.item)}equals(t){return t&&t.point.equals(this.point)&&t.items.every(t=>this.has(t))}has(t){return this.itemIds.includes(t.id)}mirror(){return this.copy({beam:this.item,item:this.beam})}}class rp{constructor(t,e,i){this.beams=[t].concat(e.state.get(rr.MergeWith)?.beams||[]),this.colors=e.colors.concat(t.getColors()),this.stepIndex=i}}class rf extends s2{done=!1;path=[];sortOrder=3;#n=new s3(Object.values(rf.CacheKeys));#w;#k;#S=-1;#C=[];constructor(t,e,i){e.immutable=!0,super(...arguments),this.group=null,this.#w=i.direction,this.#k={closed:!1,data:{id:this.id,type:this.type},locked:!0,strokeJoin:"round",strokeCap:"round",strokeWidth:t.radius/12}}addStep(t){let e=this.getLastStepIndex();if(this.done=!1,this.#k.strokeColor=t.color,0===this.path.length){let t=new sE.Path(this.#k);this.path.push(t),this.getLayer().insertChild(0,t)}let i=this.path[this.path.length-1],n=this.#C[e];if(!t.connected||n&&(t.color!==n.color||t.insertAbove!==n.insertAbove)){console.debug(this.toString(),"adding new path item for step:",t,"previous step:",n);let e=new sE.Path(this.#k),i=[t.point];t.connected&&i.unshift(n.point),e.add(...i),this.path.push(e),this.getLayer().insertChild(this.#I(t),e),t.segmentIndex=0}else i.add(t.point),t.segmentIndex=i.segments.length-1;return t.pathIndex=this.path.length-1,this.#C.push(t),t.index=this.#S=this.#C.length-1,t.tile.items.some(t=>t.equals(this))||t.tile.addItem(this),t.onAdd(t),console.debug(this.toString(),"added step",t),this.#T(this.#S),t}getCollision(){return this.getStep()?.state.get(rr.Collision)}getColor(){return this.getStep()?.color||this.getOpening().color}getColors(){return Array.from(this.getStep()?.colors||this.getOpening().colors)}getColorElements(t){let e=this.getSteps(t).find(t=>t.state.has(rr.MergeWith));return e?sj(e.colors):[]}getCompoundPath(){return new sE.CompoundPath({children:this.path.map(t=>t.clone({insert:!1}))})}getIndex(){return this.path[this.path.length-1].index}getLastStepIndex(){return this.length()-1}getLayer(){return this.parent.getLayer()}getMergeWith(t){return this.#n.get(rf.CacheKeys.MergeWith).get(t.id)}getOpening(){return this.parent.getOpening(this.#w)}getState(){return this.parent.getState().openings[this.#w]}getStep(t){return this.#C[t||this.getLastStepIndex()]}getSteps(t){return t?this.#C.filter(e=>e.tile===t):this.#C}isComplete(){return this.isOn()&&this.done}isConnected(){let t=this.getStep();return t?.state.has(rr.TerminusConnection)||t?.state.get(rr.MergeInto)?.beam.isConnected()}isOn(){let t=this.getOpening();return t.on&&!t.connected}isPending(){return this.isOn()&&!this.done}length(){return this.#C.length}onBeamUpdated(t){let e=t.detail.beam;if(e.isPending())return;let i=e.getStep();if(this.isComplete()){let t=this.getStep(),n=t.state.get(rr.Collision);if(n?.has(e)&&!n.equals(i?.state.get(rr.Collision))){console.debug(this.toString(),"re-evaluating collision with",e.toString()),this.done=!1,this.#S=Math.max(t.index-1,0);return}let s=t.state.get(rr.MergeInto);if(s?.beam.equals(e)&&!e.getMergeWith(this)){console.debug(this.toString(),"re-evaluating merge into",e.toString()),this.done=!1,this.#S=Math.max(this.#S-1,0);return}}let n=this.getMergeWith(e);n&&!i?.state.get(rr.MergeInto)?.beam.equals(this)&&(console.debug(this.toString(),"re-evaluating merge with",e.toString()),this.done=!1,this.#S=Math.max(n.stepIndex-1,0))}onCollision({beam:t,collision:e,collisionStep:i,currentStep:n,nextStep:s,puzzle:r}){let a=t.equals(this);if(console.debug(this.toString(),"evaluating collision with",a?"self":t.toString()),!t.isOn()){console.debug(this.toString(),"ignoring collision with inactive beam",t.toString());return}if(t.parent.equals(this.parent)&&0===n.index){console.debug(this.toString(),"ignoring collision with sibling beam",t.toString());return}if(a&&this.#SsV(e.point,t.point));if(o<0)throw Error(`Could not find matching step for beam collision between ${this.toString()} and ${t.toString()}`);let l=this.#C[o];if(l.state.get(rr.MergeInto)?.beam.equals(t)){console.debug(this.toString(),"ignoring collision with merged beam",t.toString());return}if(l.state.get(rr.TerminusConnection)?.terminus.equals(t.parent)){console.debug(this.toString(),"ignoring collision with connected beam in parent terminus",t.toString());return}let h=l.state.get(rr.Reflector)??n.state.get(rr.Reflector);if(h){let e=sH(l.point,1,sG(l.direction)),i=sH(n.point,1,sG(n.direction));if(!h.item.isSameSide(e,i)){console.debug(this.toString(),"ignoring collision with beam on opposite side of reflector",t.toString());return}}if(n.state.get(rr.Portal)??l.state.get(rr.Portal)){console.debug(this.toString(),"ignoring collision with beam using same portal",t.toString());return}let u=l.direction===s.direction;if(!u||a)return console.debug(t.toString(),"has collided with",a?"self":this.toString(),e),l.state.get(rr.Collision)?.point.equals(e.point)||(a?u||this.update(o,r.getBeamsUpdateDelay()):this.update(o,{done:!0,state:l.state.copy(new rr.Collision(e.mirror()))})),i.copy({done:!0,insertAbove:l.insertAbove});console.debug(this.toString(),"merging with",t.toString()),this.#E(o);let c=new rp(t,l,o);return this.addStep(l.copy({colors:c.colors,onAdd:()=>{this.#n.get(rf.CacheKeys.MergeWith).set(t.id,c)},onRemove:()=>{this.#n.get(rf.CacheKeys.MergeWith).unset(t.id)},state:l.state.copy(new rr.MergeWith(c))})),console.debug(t.toString(),"merging into",this.toString()),s.copy({done:!0,point:n.point,state:s.state.copy(new rr.MergeInto(this))})}onModifierInvoked(t){if(!this.isOn()){this.#C.length&&(console.debug(this.toString(),"beam has been toggled off"),this.remove());return}let e=t.detail.tiles||[t.detail.tile],i=this.#C.findIndex(t=>e.some(e=>e.equals(t.tile)));if(i>=0){console.debug(this.toString(),"re-evaluating due to modifier being invoked in matching tile",i),this.done=!1,this.#S=Math.max(i-1,0);return}if(this.isComplete()){let t=this.getStep();t.state.get(rr.Portal)?.entryPortal&&(this.done=!1)}}remove(t=0){this.#E(t)}selected(t=!0){this.path.forEach(e=>{e.selected=t})}startDirection(){return(this.getOpening().direction+this.parent.rotation)%6}step(t){let e;if(!this.isPending())return;if(console.debug(this.toString(),"currentStepIndex",this.#S),0===this.#C.length){let t=this.parent.parent;this.addStep(new rs(0,t,this.getColor(),this.startDirection(),t.center))}let i=this.#S,n=this.#C[i],s=0===i?this.startDirection():n.direction,r=sH(n.point,n.tile.parameters.inradius,s),a=t.getTile(sZ(n.point,r));if(!a){console.debug(this.toString(),"stopping due to out of bounds");let t=new rd(0,[n.point],this);return this.updateStep(i,{done:!0,state:new rr(new rr.Collision(t))})}let o=i+1,l=this.#C[o],h=this.path.length-1,u=this.path[h].segments.length-1,c=new rs(o,a,n.color,s,r,l?.pathIndex||h,l?.segmentIndex||u),d=function(t,e){let i=t.map(t=>t.id);return t.filter((t,e)=>!i.includes(t.id,e+1))}(a.items.concat(n.tile.equals(c.tile)?[]:n.tile.items),0);console.debug(this.toString(),"collision items:",d);let p=this.#A(d,n,c,t).map((t,e)=>new rd(e,t.points,this,t.item));p.length&&console.debug(this.toString(),"collisions:",p);for(let i=0;it(e.openings[this.#w]),e)}updateStep(t,e){let i=this.getStep(t);if(i){i.onRemove(i);let n=this.#O(i,e);return this.#C[t]=n,n.onAdd(n),console.debug(this.toString(),"updated step at index",t,"from",i,"to",n),this.#T(t),n}}#A(t,e,i,n){let s=[e.point,i.point],r=new sE.Path({segments:s}),a=s[0];return t.map(t=>{let e=[];return e.push(...new Set(r.getIntersections(t.getCompoundPath(),e=>!(t===this&&e.point.equals(a))).map(t=>t.point))),e.length||t.type!==s2.Types.beam||t===this||e.push(...t.getSteps().map(t=>t.point).filter(t=>s.some(e=>sV(t,e)))),e.sort(sU(a)),n.debug&&(n.drawDebugPoint(a),e.forEach(t=>n.drawDebugPoint(t,{fillColor:"black"}))),{points:e,item:t}}).filter(t=>t.points.length).sort((t,e)=>{let i=sU(a)(t.points[0],e.points[0]);return 0===i?t.item.sortOrder-e.item.sortOrder:i})}#I(t){return t.insertAbove?t.insertAbove.getIndex()+1:0}#O(t,e){return"function"==typeof e&&(e=e(t)),e instanceof rs?e:t.copy(e)}#P(t,e){if(tt.remove());let s=this.#C.splice(t);console.debug(this.toString(),"removed steps: ",s),[...new Set(s.map(t=>t.tile))].filter(t=>0===this.getSteps(t).length).forEach(t=>t.removeItem(this)),s.forEach(t=>t.onRemove(t)),this.done=!1,this.#S=t-1,this.#T(this.#S)}return i}static CacheKeys=Object.freeze({MergeWith:"mergeWith"});static Events=Object.freeze({Collision:"beam-collision",Connection:"beam-connection",Merge:"beam-merge",Update:"beam-update"})}class rg extends rn(rl(rc(s2))){sortOrder=2;#M;constructor(t,e){super(...arguments);let i=e.openings.filter(t=>t?.color).flatMap(t=>Array.isArray(t.color)?t.color:[t.color]),n=ij.average(i.length?i:Array.isArray(e.color)?e.color:[e.color]).hex(),s=e.openings.map((t,i)=>t?new rg.#N(t.color??n,i,t.connected,t.on??e.on):t).filter(t=>t);this.#M=rg.ui(t,n,s),this.group.addChildren([...this.#M.openings,this.#M.terminus]),this.color=n,this.openings=s,this.radius=this.#M.radius,this.toggled=s.some(t=>t.on),this.beams=s.map(t=>new rf(this,e.openings[t.direction],t)),this.update()}getColorElements(){return sj(this.openings.map(t=>t.color))}getOpening(t){return this.openings.find(e=>e.direction===t)}onMove(){this.beams.forEach(t=>t.remove())}onCollision({beam:t,collisionStep:e,currentStep:i,existingNextStep:n,nextStep:s}){if(console.debug(this.toString(),"collision",t.toString()),t.parent===this&&t.startDirection()===s.direction){console.debug(t.toString(),"ignoring starting terminus collision");return}let r=sG(i.direction),a=this.openings.find(t=>this.getDirection(t.direction)===r);return a&&a.color===s.color&&(!a.on||a.connected&&n?.state.get(rr.TerminusConnection)?.terminus.equals(this))?(console.debug(t.toString(),"terminus connection",this.toString(),a),s.copy({done:!0,onAdd:()=>{s.onAdd(),this.onConnection(a.direction)},onRemove:()=>{s.onRemove(),this.onDisconnection(a.direction)},state:s.state.copy(new rr.TerminusConnection(this,a))})):e}onConnection(t){let e=this.getOpening(t);e.connected||(e.connect(),this.update(),sD(rg.Events.Connection,{terminus:this,opening:e}))}onDisconnection(t){let e=this.getOpening(t);e.connected&&(e.disconnect(),this.update(),sD(rg.Events.Disconnection,{terminus:this,opening:e}))}onToggle(){this.updateState(t=>{this.openings.filter(t=>!t.connected).forEach(e=>{e.toggle(),t.openings[e.direction].on=e.on})}),this.update()}update(){this.beams.forEach(t=>{let e=t.getOpening();this.#M.openings.find(t=>t.data.direction===e.direction).opacity=e.on?1:rg.#L})}static #L=.3;static ui(t,e,i){let n=t.parameters.circumradius/2,s=new sE.Path.RegularPolygon({center:t.center,fillColor:e,opacity:1,sides:6,radius:n/2});return{openings:i.map(t=>{let e=t.direction,i=s.segments[(e+-1+6)%6].point,n=s.segments[(e+2+6)%6].point,r=n.subtract(i);r.angle+=120;let a=i.subtract(r);return new sE.Path({closed:!0,data:{collidable:!1,direction:e},fillColor:t.color,opacity:t.on?1:rg.#L,segments:[i,n,a]})}),radius:n,terminus:s}}static #N=class{constructor(t,e,i,n){this.colors=Array.isArray(t)?t:[t],this.color=ij.average(this.colors).hex(),this.direction=e,this.connected=!0===i,this.on=!0===n}connect(){this.connected=this.on=!0}disconnect(){this.connected=this.on=!1}toggle(){this.on=!this.on}};static Events=Object.freeze({Connection:"terminus-connection",Disconnection:"terminus-disconnection"})}var sE=u("hFpCu");class rm extends rn(rl(s2)){#z;constructor(t,e){super(t,e,{rotationDegrees:30}),this.color=e.color||"black",this.#z=rm.item(t,this.color),this.group.addChild(this.#z)}midLine(){return[sZ(this.#z.segments[3].point,this.#z.segments[0].point),sZ(this.#z.segments[1].point,this.#z.segments[2].point)]}getSide(t){return function(t,e){let[i,n]=t;return Math.sign((n.x-i.x)*(e.y-i.y)-(n.y-i.y)*(e.x-i.x))}(this.midLine(),t)}isSameSide(t,e){return this.getSide(t)===this.getSide(e)}onCollision({beam:t,collision:e,collisions:i,collisionStep:n,currentStep:s,nextStep:r}){let a=sG(s.direction),o=function(t,e){let i=60*s$(t,!0);return s$(function(t,e){let i=t+e;return i<0?360+i:i>360?i-360:i}(i,(30*e-i)*2)/60%6,!1)}(a,this.rotation);if(o===s.direction)return console.debug(t.toString(),"stopping due to collision with non-reflective side of reflector"),n;if(o===a)return console.debug(t.toString(),"stopping due to reflection back at self"),r.copy({done:!0,state:r.state.copy(new rr.Collision(e.copy({points:[r.point]})))});if(!s.state.has(rr.Reflector))return r.copy({state:r.state.copy(new rr.Reflector(this))});let l=sH(s.point,r.tile.parameters.inradius,o);return r.copy({direction:o,point:l})}static item(t,e){let i=t.parameters.circumradius/12,n=t.parameters.circumradius-2*i,s=t.center.subtract(new sE.Point(i/2,n/2)),r=new sE.Size(i,n);return new sE.Path.Rectangle({data:{size:r},fillColor:e,point:s,size:r})}}var sE=u("hFpCu");class r_ extends rn(rl(s2)){sortOrder=1;constructor(t,e){e.immutable??=!0,super(t,e,{rotationDegrees:60});let i=r_.item(t,e);this.group.addChildren(i)}static item(t,e){let i=t.parameters.circumradius/12,n=t.styles.default.strokeColor;return e.directions.map(e=>{let s=t.hexagon.segments[e].point,r=(e+1+6)%6,a=t.hexagon.segments[r].point;return new sE.Path({closed:!0,fillColor:n,segments:[s,t.hexagon.getLocationAt((0===e?t.hexagon.length:t.hexagon.getOffsetOf(s))-i),t.hexagon.getLocationAt((0===r?0:t.hexagon.getOffsetOf(a))+i),a]})})}}class rv extends re{immutable=!0;name="block";title="Immutable"}class ry extends re{immutable=!0;name="lock";title="Locked"}class rb extends ri{name=s8.Swap.name;title="Swap";moveItems(t){let e=t.items.filter(ri.movable),i=this.tile.items.filter(ri.movable);return i.forEach(e=>e.move(t)),e.forEach(t=>t.move(this.tile)),{moved:[ri.data(this.tile,t,i),ri.data(t,this.tile,e)],tiles:[this.tile,t]}}tileFilter(t){return!t.equals(this.tile)&&(t.modifiers.some(re.immutable)||!t.items.some(ri.movable))}}function rx(t,e,i){let n;switch(e.type){case re.Types.immutable:n=new rv(...arguments);break;case re.Types.lock:n=new ry(...arguments);break;case re.Types.move:n=new ri(...arguments);break;case re.Types.rotate:n=new ro(...arguments);break;case re.Types.swap:n=new rb(...arguments);break;case re.Types.toggle:n=new ru(...arguments);break;default:console.error("Ignoring modifier with unknown type:",e.type)}return n}class rw extends s2{selected=!1;#M;constructor(t,e,i,n){super(null,n,{locked:!1}),this.#M=rw.ui(e,i,n,{coordinates:t,type:this.type}),this.center=this.#M.center,this.coordinates=t,this.hexagon=this.#M.hexagon,this.parameters=i,this.styles=this.#M.styles,this.group.addChildren([this.#M.hexagon]),this.items=(n.items||[]).map((t,e)=>(function(t,e,i){let n;switch(e.type){case s2.Types.filter:n=new ra(...arguments);break;case s2.Types.portal:n=new rh(...arguments);break;case s2.Types.terminus:n=new rg(...arguments);break;case s2.Types.reflector:n=new rm(...arguments);break;case s2.Types.wall:n=new r_(...arguments);break;default:throw console.debug("itemFactory",e),Error(`Cannot create item with unknown type: ${e.type}`)}return n&&n.onInitialization(),n})(this,t,e)).filter(t=>void 0!==t),this.modifiers=(n.modifiers||[]).map((t,e)=>rx(this,t,e)).filter(t=>void 0!==t),this.modifiers.forEach(t=>this.updateIcon(t)),this.update()}addItem(t){this.items.push(t),this.update()}addModifier(t){this.modifiers.push(t),this.updateIcon(t)}afterModify(){this.setStyle(this.selected?"selected":"default"),this.modifiers.forEach(t=>t.update({disabled:!1}))}beforeModify(){this.group.bringToFront(),this.setStyle("edit"),this.modifiers.forEach(t=>t.update({disabled:!0}))}getState(){let t={id:this.id,type:this.type},e=this.items.filter(t=>t.type!==s2.Types.beam).map(t=>t.getState());e.length&&(t.items=e);let i=this.modifiers.map(t=>t.getState());return i.length&&(t.modifiers=i),t}onTap(t){this.items.forEach(e=>e.onTap(t))}onDeselected(t){this.selected=!1,this.#M.hexagon.style=this.styles.default,this.items.forEach(t=>t.onDeselected()),sD(rw.Events.Deselected,{selectedTile:t,deselectedTile:this})}onSelected(t){console.debug(this.toString(),"selected"),this.selected=!0,this.group.bringToFront(),this.#M.hexagon.style=this.styles.selected,this.items.forEach(t=>t.onSelected())}removeItem(t){let e=this.items.indexOf(t);e>=0&&(this.items.splice(e,1),this.update())}removeModifier(t){let e=this.modifiers.indexOf(t);e>=0&&(this.modifiers.splice(e,1),this.updateIcon(t))}setStyle(t){this.hexagon.set(this.styles[t])}teardown(){this.modifiers.forEach(t=>t.detach())}toString(){return`[${this.type}:${this.coordinates.offset.toString()}]`}updateIcon(t){let e=this.modifiers.indexOf(t);if(e>=0){let i=sZ(this.#M.hexagon.segments[e].point,this.center,t=>t/3),n={fillColor:t.immutable?"#ccc":"#333"},s=t.getSymbol().place(i,{style:n});s.data={id:t.id,name:t.name,type:t.type};let r=this.group.children.findIndex(e=>e.data.id===t.id);r>=0?this.group.children[r].replaceWith(s):this.group.addChild(s)}}static parameters(t){let e=t/2,i=Math.sqrt(3)*e;return{circumradius:e,height:t,inradius:i/2,offsetY:3/4*t,width:i}}static ui(t,e,i,n){let s=new sE.Point(t.startingOffsetX+e.inradius+t.column*e.width,t.startingOffsetY+e.circumradius+t.row*e.offsetY),r=e.circumradius/10,a=Object.assign({},rw.Styles,{edit:Object.assign({dashArray:[r,r]},rw.Styles.edit)},i.style||{}),o=new sE.Path.RegularPolygon({center:s,closed:!0,data:n,radius:e.circumradius,sides:6,style:a.default});return{center:s,hexagon:o,styles:a}}static Events=Object.freeze({Deselected:"tile-deselected",Selected:"tile-selected"});static MaxModifiers=6;static Styles=Object.freeze({default:{dashArray:[],fillColor:new sE.Color("white"),strokeColor:new sE.Color("#666"),strokeWidth:1},edit:{strokeColor:new sE.Color("black"),strokeWidth:2},selected:{dashArray:[],strokeColor:new sE.Color("black"),strokeWidth:2}})}class rk extends s1{#R=[];#B=[];items=[];layers={};modifiers=[];tiles=[];tileSize=120;constructor(t){super(t),this.type=t.type||rk.Types.oddR;let e=/*@__PURE__*/a(sE).view.center,i=rw.parameters(this.tileSize),n=t.tiles,s=n.length*i.width,r=e.y-s/2;this.layers.tiles=new sE.Layer,this.layers.items=new sE.Layer,this.modifiers=(t.modifiers||[]).map((t,e)=>rx(null,t,e)).filter(t=>void 0!==t);let o=n.reduce((t,e,i)=>{let n=e.length;return n>t.length||n===t.length&&this.#D(i)?{index:i,length:n}:t},{index:0,length:0}),l=o.length*i.width+(this.#D(o.index)?i.inradius:0),h=e.x-l/2;for(let t=0;tt.group))),this.tiles.push(p),s[l.q]=p,a[u.c]=p}this.#R.push(s),this.#B.push(a)}}getTileByAxial(t){return(this.#R[t.r]||[])[t.q]}getTileByOffset(t){return this.#B[t.r][t.c]}getState(){let t={type:this.type};t.tiles=this.#B.map(t=>t.map(t=>t?.getState()||null));let e=this.modifiers.map(t=>t.getState());return e.length&&(t.modifiers=e),t}getNeighboringTile(t,e){return this.getTileByAxial(s0.neighbor(t,s$(e)))}removeModifier(t){let e=this.modifiers.indexOf(t);e>=0&&this.modifiers.splice(e,1)}teardown(){this.modifiers.forEach(t=>t.detach()),Object.values(this.layers).forEach(t=>t.removeChildren())}#D(t){return t%2==0?this.type===rk.Types.evenR:this.type===rk.Types.oddR}static Types=Object.freeze({evenR:"even-r",oddR:"odd-r"})}var sE=(u("hFpCu"),u("hFpCu"));class rS extends s2{constructor(t,e){super(null,e,{locked:!1,type:s2.Types.mask});let i={type:this.type},n=new sE.Path.RegularPolygon({center:t.center,closed:!0,data:i,opacity:.25,radius:t.parameters.circumradius+1,sides:6,style:Object.assign({fillColor:"black"},e)});this.center=t.center,this.group.addChild(n)}}var sE=u("hFpCu");class rC extends s2{constructor(t){super(null,t,{type:s2.Types.collision});let{center:e,color:i}=t;this.center=e,this.color=i;let n=new sE.Path.Circle({center:e,closed:!0,radius:4,style:{fillColor:"white",strokeColor:i,strokeWidth:2}});this.group.addChild(n)}}const rI={"001":u("c6KoO"),"002":u("8f7Az"),"003":u("dwyZF"),"004":u("cHmaR"),"005":u("1L3os"),"006":u("lJdHO"),"007":u("ixRVx"),"008":u("mBcXZ"),"009":u("9RcUi"),"010":u("iJw1S"),"011":u("5K06G"),"012":u("jaZqg"),test_infinite_loop:u("gO2GV"),test_layout:u("biNjg"),test_portal:u("4QHZj"),test_reflector:u("7Uxjd")};function rT(t,e,i){let n=t.indexOf(e);return t[n<0?n:n+i]}class rE{ids;constructor(t){this.firstId=t[0],this.ids=t,this.lastId=t[t.length-1]}get(t){if(this.has(t))return structuredClone(rI[t])}has(t){return this.ids.includes(t)}nextId(t){return rT(this.ids,t,1)}previousId(t){return rT(this.ids,t,-1)}}const rA=new rE(Object.keys(rI).sort());rA.hidden=new rE(rA.ids.filter(t=>t.startsWith("test_"))),rA.titles=Object.fromEntries(rA.ids.map(t=>[t,rI[t].title||t])),rA.visible=new rE(rA.ids.filter(t=>!rA.hidden.has(t)));const rP=window.history,rO=window.localStorage;class rM{#V;#F;#j;#U;#q;#Z;#H;#G;constructor(t,e,i,n,s,r,a){console.log(n),this.#j=t,this.#Z=e,this.#F=i||[],this.#q=s||[],this.#U=n??this.#q.length-1,this.#H=r,this.#G=a??rM.Version,this.#$(),this.#W()}addMove(){if(this.#U0}canUndo(){return this.#U>=0}encode(){return sL(JSON.stringify({id:this.#j,original:rA.has(this.#j)?{version:this.#Z.version}:this.#Z,deltas:this.#F,moveIndex:this.#U,moves:this.#q,selectedTile:this.#H,version:this.#G}))}getCurrent(){return structuredClone(this.#V)}getDeltaIndex(){return console.debug(this.toString(),"getDeltaIndex",this.#q,this.#U,this.#F.length-1),this.#Ui<=t).forEach(t=>this.#K(t))}#W(){let t=this.getId(),e=this.encode();sO.hash=["",t,e].join("/"),rP.pushState({id:t,state:e},"",sO),rO.setItem(rM.CacheKeys.id,t),rO.setItem(this.#J(rM.CacheKeys.state),e)}static clearCache(t){t?(sO.hash=`/${t}`,rP.pushState({id:t},"",sO),rO.removeItem(rM.key(rM.CacheKeys.state,t))):(sO.hash="",rP.pushState({},"",sO),t=rO.getItem(rM.CacheKeys.id),rO.clear(),rO.setItem(rM.CacheKeys.id,t))}static fromEncoded(t){if(void 0===(t=JSON.parse(sN(t))).id){console.warn("Invalid cache, ignoring.");return}if(t.version!==rM.Version){console.debug(`Invalidating cache due to version mismatch. Ours: ${rM.Version}, theirs: ${t.version}.`),rM.clearCache();return}if(rA.has(t.id)){let e=rA.get(t.id);if(e&&e.version!==t.original?.version){console.debug(`Invalidating cache for puzzle ${t.id} due to version mismatch. Ours: ${e.version}, theirs: ${t.original?.version}.`),rM.clearCache(t.id);return}t.original=e}return new rM(t.id,t.original,t.deltas,t.moveIndex,t.moves,t.selectedTile,t.version)}static fromId(t){return new rM(t,rA.get(t))}static resolve(t){let e;sP.has(rM.ParamKeys.clearCache)&&rM.clearCache(sP.get(rM.ParamKeys.clearCache));let i=sO.hash.substring(1).split("/").filter(t=>""!==t);if(t||i.filter(t=>!rA.has(t)).some((i,n)=>{try{t=(e=rM.fromEncoded(i)).getId()}catch(t){console.debug(`Could not parse state from path segment '${n}'`,t)}return void 0!==e}),!e){t=t||i[0]||rO.getItem(rM.CacheKeys.id)||rA.visible.firstId;let n=rO.getItem(rM.key(rM.CacheKeys.state,t));if(n)try{e=rM.fromEncoded(n)}catch(e){console.debug(`Could not parse state with ID '${t}' from localStorage`,e)}}if(e||(e=rM.fromId(t)),!e)throw Error(`Unable to resolve state for ID '${t}'`);return e}static key(t,e){return`${t}:${e}`}static CacheKeys=Object.freeze({center:"center",id:"id",state:"state",zoom:"zoom"});static ParamKeys=Object.freeze({clearCache:"clearCache"});static Version=3}class rN{#Y=[];constructor(t){t.forEach(t=>this.#Q(t))}teardown(){this.#Y.forEach(t=>t.teardown()),rN.element.replaceChildren()}isSolved(){return this.#Y.every(t=>t.isMet())}#Q(t){switch(t.type){case rL.Types.connections:this.#Y.push(new rz(t));break;case rL.Types.moves:this.#Y.push(new rR(t));break;default:console.warn("Ignoring condition with unknown type:",t.type)}}static element=document.getElementById("solution")}class rL{constructor(t,e){this.state=t;let i=document.createElement("li");i.append(...e),rN.element.append(i)}isMet(){}teardown(){}update(){}static Types=Object.freeze(Object.fromEntries(["connections","moves"].map(t=>[t,sz(t)])))}class rz extends rL{#X;#tt=new s5({context:this});#te=[];constructor(t){let e=document.createElement("span");e.textContent="0";let i=document.createElement("span");i.textContent=t.amount.toString(),super(t,[e,sW("/"),i,sq("link","Connections")]),this.#X=e,this.#tt.add([{type:rg.Events.Connection,handler:this.update},{type:rg.Events.Disconnection,handler:this.update}])}isMet(){return this.#te.length===this.state.amount}teardown(){this.#tt.remove(),super.teardown()}update(t){console.debug("Connections.update",t);let e=t.detail.terminus,i=t.detail.opening,n=`${e.id}:${i.direction}`,s=this.#te.findIndex(t=>t===n);i.connected&&s<0?this.#te.push(n):!i.connected&&s>=0&&this.#te.splice(s,1),this.#X.textContent=this.#te.length.toString()}}class rR extends rL{#X;#tt=new s5({context:this});#q=0;constructor(t){if(t.operator??=rR.Operators.equalTo,!Object.values(rR.Operators).includes(t.operator))throw Error(`Invalid moves operator: ${t.operator}`);let e=document.createElement("span");e.textContent="0";let i=document.createElement("span");i.textContent=t.amount.toString(),super(t,[e,sW(t.operator),i,sq("stacks","Moves")]),this.#X=e,this.#tt.add([{type:rD.Events.Updated,handler:this.update}])}isMet(){switch(this.state.operator){case rR.Operators.equalTo:return this.#q===this.state.amount;case rR.Operators.greaterThan:return this.#q>this.state.amount;case rR.Operators.lessThan:return this.#q",lessThan:"<"})}const rB=Object.freeze({footer:document.getElementById("footer"),footerMessage:document.getElementById("footer-message"),headerMessage:document.getElementById("header-message"),main:document.getElementById("main"),next:document.getElementById("next"),previous:document.getElementById("previous"),puzzle:document.getElementById("puzzle"),puzzleId:document.getElementById("puzzle-id"),redo:document.getElementById("redo"),reset:document.getElementById("reset"),undo:document.getElementById("undo"),title:document.querySelector("title")});class rD{connections=[];debug=!1;error=!1;layers={};message;selectedTile;solved=!1;#ti;#tn=30;#ts={};#tt=new s5({context:this});#tr;#ta=!1;#_;#to=[];#tl;#t;#th;#tu=[];constructor(){/*@__PURE__*/a(sE).settings.insertItems=!1,/*@__PURE__*/a(sE).setup(rB.puzzle),this.#tc(),this.layers.mask=new sE.Layer,this.layers.collisions=new sE.Layer,this.layers.debug=new sE.Layer,this.#tt.add([{type:rf.Events.Update,handler:this.#td},{type:"change",element:rB.puzzleId,handler:this.#tp},{type:"click",element:rB.next,handler:this.#tf},{type:"click",element:rB.previous,handler:this.#tg},{type:"click",element:rB.redo,handler:this.#tm},{type:"click",element:rB.reset,handler:this.#t_},{type:"click",element:rB.undo,handler:this.#tv},{type:"keyup",handler:this.#ty},{type:re.Events.Invoked,handler:this.#tb},{type:rD.Events.Mask,handler:this.#tx},{type:"resize",element:window,handler:function(t,e=500){let i;return(...n)=>{clearTimeout(i),i=setTimeout(()=>{t(...n)},e)}}(this.#tc)},{type:s1.Events.Update,handler:this.#tw},{type:"tap",element:rB.puzzle,handler:this.#tk}]),this.#tr=new s4(rB.puzzle),this.#tS(),this.select()}addMove(){return this.#t.addMove()}centerOnTile(t){let e=this.layout.getTileByOffset(t);/*@__PURE__*/a(sE).view.center=e.center}clearDebugPoints(){this.layers.debug.clear()}drawDebugPoint(t,e={}){let i=new sE.Path.Circle(Object.assign({radius:3,fillColor:"red",strokeColor:"white",strokeWidth:1,center:t},e));this.layers.debug.addChild(i)}getBeamsUpdateDelay(){return this.#tn}getItems(t){return(t?this.#tu.filter(e=>e===t):this.#tu).flatMap(t=>t.items)}getTile(t){let e=/*@__PURE__*/a(sE).project.hitTest(t.ceil(),{fill:!0,match:t=>t.item.data.type===s2.Types.tile,segments:!0,stroke:!0,tolerance:0});return e?this.layout.getTileByAxial(e.item.data.coordinates.axial):e}mask(t){if(this.#_){if(this.#_.equals(t))throw console.debug(t),Error(`Duplicate mask detected: ${t.id}`);console.debug("adding mask to queue",t),this.#to.push(t);return}this.#_=t;let e=this.#tu.filter(t.tileFilter).map(e=>new rS(e,"function"==typeof t.configuration.style?t.configuration.style(e):t.configuration.style));this.layers.mask.addChildren(e.map(t=>t.group)),t.message&&(rB.headerMessage.textContent=t.message),t.onMask(this),document.body.classList.add(rD.Events.Mask)}select(t){if(void 0===t||t!==this.#t?.getId()){try{this.#t=rM.resolve(t)}catch(t){this.#tC(t,"Could not load puzzle.")}this.#tI()}}unmask(){console.debug("unmask",this.#_),this.layers.mask.removeChildren(),this.#tT(this.selectedTile),this.#_.onUnmask(this),this.#_=void 0,document.body.classList.remove(rD.Events.Mask);let t=this.#to.pop();t&&(console.debug("processing next mask in queue",t),setTimeout(()=>{!1!==t.onUpdate()&&this.mask(t)}))}update(){this.#_||this.#ta||(this.#ta=!0,this.#tE())}updateSelectedTile(t){let e=this.selectedTile;return this.selectedTile=t,this.#t.setSelectedTile(t),this.#tT(t),this.#tA(t,e),e&&e!==t&&e.onDeselected(t),t&&t!==e&&t.onSelected(e),e}updateState(){this.#t.update(Object.assign(this.#t.getCurrent(),{layout:this.layout.getState()})),this.#tP(),sD(rD.Events.Updated,{state:this.#t})}#tO(){[this.layout.layers.tiles,this.layout.layers.items,this.layers.mask,this.layers.collisions,this.layers.debug].forEach(t=>/*@__PURE__*/a(sE).project.addLayer(t))}#tM(t){return(t?.modifiers||[]).concat(this.layout.modifiers).filter(t=>!t.immutable).sort((t,e)=>t.id-e.id)}#tf(){let t=rA.visible.nextId(this.#t.getId());t&&this.select(t)}#td(t){let e=t.detail.beam,i=t.detail.state;if(i?.has(rr.Collision)){let t=i.get(rr.Collision),n=rD.Collision.id(t.point),s=this.#ts[n];s?s.addBeam(e):this.#ts[n]=new rD.Collision(this.layers.collisions,[e],t.point);let r=this.#_?.configuration;r?.beam?.equals(e)&&this.unmask()}Object.values(this.#ts).forEach(t=>t.update()),this.#ti.filter(t=>t!==e).forEach(e=>e.onBeamUpdated(t,this)),setTimeout(()=>this.update(),0)}#tC(t,e,i){this.error=!0,"string"==typeof t&&(i=e=t,t=void 0),t&&console.error(t),(i=i??t?.cause)&&console.error("cause:",i),e=e??t?.message??"The puzzle has encountered an error, please consider reporting.",rB.headerMessage.textContent=e,document.body.classList.add(rD.Events.Error)}#ty(t){this.debug&&"s"===t.key&&this.update()}#tx(t){console.debug("Mask event",t),this.mask(t.detail.mask)}#tb(t){let e=t.detail.modifier,i=t.detail.tile;!e.parent&&i.modifiers.some(t=>t.type===re.Types.lock)&&!i.modifiers.some(t=>t.type===e.type)&&i.modifiers.lengtht.type===e.type&&t.id!==e.id).forEach(t=>t.update({disabled:!0}))),this.addMove(),this.updateState(),this.#ti.sort(t=>i.items.some(e=>e===t)?-1:0).forEach(e=>e.onModifierInvoked(t,this)),setTimeout(()=>this.update(),0)}#tp(t){this.select(t.target.value)}#tN(){if(this.solved)return;this.solved=!0,this.updateSelectedTile(void 0),this.mask(rD.#tL);let t=document.createElement("span");t.classList.add(rD.ClassNames.Icon),t.textContent="celebration",t.title="Solved!",rB.headerMessage.replaceChildren(t),document.body.classList.add(rD.Events.Solved),sD(rD.Events.Solved)}#tw(t){console.debug("Puzzle.#onStateUpdate()",t),this.updateState()}#tk(t){let e;if(this.solved||this.error)return;let i=/*@__PURE__*/a(sE).project.hitTest(t.detail.point);switch(i?.item.data.type){case s2.Types.mask:return;case s2.Types.tile:e=this.layout.getTileByAxial(i.item.data.coordinates.axial)}if(this.#_)this.#_.onTap(this,e);else{let i=this.updateSelectedTile(e);e&&e===i&&e.onTap(t)}}#tg(){let t=rA.visible.previousId(this.#t.getId());t&&this.select(t)}#tm(){this.#t.redo()&&this.#tI()}#tI(){this.error=!1,this.#t&&this.#tz(),this.#tR(),sD(rD.Events.Updated,{state:this.#t})}#tB(){Object.values(this.layers).forEach(t=>t.removeChildren()),/*@__PURE__*/a(sE).project.clear()}#t_(){this.#t.reset()&&this.#tI()}#tc(){let{width:t,height:e}=rB.main.getBoundingClientRect();rB.puzzle.style.height=e+"px",rB.puzzle.style.width=t+"px",/*@__PURE__*/a(sE).view.viewSize=new sE.Size(t,e)}#tR(){let{layout:t,message:e,solution:i}=this.#t.getCurrent();this.layout=new rk(t),this.message=e,this.#tl=new rN(i),this.#tu=this.layout.tiles,this.#th=this.layout.items.filter(t=>t.type===s2.Types.terminus),this.#ti=this.#th.flatMap(t=>t.beams),this.#tO(),document.body.classList.add(rD.Events.Loaded);let n=this.#t.getSelectedTile(),s=n?this.layout.getTileByOffset(new sX(...n.split(","))):void 0;this.updateSelectedTile(s),this.updateState(),this.update()}#tz(){document.body.classList.remove(...Object.values(rD.Events)),this.#tB(),this.#tu.forEach(t=>t.teardown()),this.#tu=[],this.#tl?.teardown(),this.#tl=void 0,this.solved=!1,this.layout?.teardown(),this.layout=void 0,this.selectedTile=void 0,this.#ti=[],this.#ts={},this.#ta=!1,this.#_=void 0,this.#to=[],this.#th=[]}#tv(){this.#t.undo()&&this.#tI()}#tP(){let t=this.#t.getId(),e=this.#t.getTitle();rB.title.textContent=`Beaming: Puzzle ${e}`,function(t,...e){e.forEach(e=>e.classList.remove(t))}(rD.ClassNames.Disabled,...Array.from(document.querySelectorAll("#actions li")));let i=[];this.#t.canUndo()||i.push(rB.undo),this.#t.canRedo()||i.push(rB.redo),this.#t.canReset()||i.push(rB.reset),rA.visible.has(t)?(rB.puzzleId.value=t,t===rA.visible.firstId?i.push(rB.previous):t===rA.visible.lastId&&i.push(rB.next)):(rB.puzzleId.value="",i.push(rB.previous,rB.next)),function(t,...e){e.forEach(e=>e.classList.add(t))}(rD.ClassNames.Disabled,...i)}#tS(){for(let t of(rB.puzzleId.replaceChildren(),rA.visible.ids)){let e=document.createElement("option");e.value=t,e.innerText=rA.titles[t],rB.puzzleId.append(e)}}#tE(){let t=this.#ti.filter(t=>t.isPending());if(!t.length){this.#ta=!1,setTimeout(()=>{this.#tl.isSolved()&&this.#tN()},0);return}this.debug&&this.layers.debug.clear(),t.forEach(t=>t.step(this)),setTimeout(()=>this.#tE(),this.#tn)}#tT(t){if(rB.headerMessage.textContent=this.message,rB.footerMessage.replaceChildren(),t){let e=t.items.map(e=>e.getColorElements(t)).find(t=>t.length>1)||[];rB.footerMessage.replaceChildren(...e)}}#tA(t,e){this.#tM(e).forEach(t=>t.detach());let i=this.#tM(t);i.forEach(e=>e.attach(t)),rB.footer.classList.toggle(rD.ClassNames.Active,i.length>0)}static Collision=class{constructor(t,e,i,n){this.id=rD.Collision.id(i),this.layer=t,this.beams=e,this.point=i,this.item=n}addBeam(t){return this.beams.some(e=>e.id===t.id)||this.beams.push(t),this.beams}addItem(t){this.item=new rC({center:this.point,color:t}),this.layer.addChild(this.item.group)}equals(t){return sV(this.point,t?.point)}getColor(){return this.beams.length?ij.average(this.beams.map(t=>t.getColor())).hex():void 0}removeItem(){this.item&&(this.item.remove(),this.item=void 0)}update(){this.beams=this.beams.filter(t=>this.equals(t.getCollision()));let t=this.getColor();this.item&&(!this.beams.length||this.item.color!==t)&&this.removeItem(),this.beams.length&&!this.item&&this.addItem(t)}static id(t){let e=t.round();return[e.x,e.y].join(",")}};static ClassNames=Object.freeze({Active:"active",Disabled:"disabled",Icon:"material-symbols-outlined"});static Events=Object.freeze({Error:"puzzle-error",Loaded:"puzzle-loaded",Mask:"puzzle-mask",Solved:"puzzle-solved",Updated:"puzzle-updated"});static Mask=class{constructor(t={}){t.style??={},this.configuration=t,this.id=t.id,this.message=t.message,this.tileFilter=t.tileFilter??sK(!0),this.onMask=t.onMask??sK,this.onTap=t.onTap??sK,this.onUnmask=t.onUnmask??sK,this.onUpdate=t.onUpdate??sK}equals(t){return this.id===t.id}};static #tD=t=>t.type===s2.Types.beam&&t.isConnected();static #tL=new rD.Mask({style:t=>{let e=t.items.filter(rD.#tD).flatMap(e=>e.getSteps(t).flatMap(t=>t.color));return{fillColor:ij.average(e).hex()}},tileFilter:t=>t.items.some(rD.#tD)})}const rV=document.createElement("script");rV.setAttribute("src","https://www.googletagmanager.com/gtag/js?id=G-HXLD6EE5NS"),document.head.append(rV);const rF=window.dataLayer=window.dataLayer||[];function rj(){rF.push(arguments)}rj("js",new Date),rj("config","G-HXLD6EE5NS");const rU=window.doorbellOptions={appKey:"o1smdnJiyxObjMcY0jSTf08TIhA814yLq68rEwTDWTavma7dtIVKEdwzMePE2LHC",container:document.getElementById("feedback-container"),hideButton:!0,properties:{}},rq=document.createElement("script");rq.setAttribute("src","https://embed.doorbell.io/button/14129/1705777677/init?native_json=1&needs_postmessage=0"),document.head.append(rq),document.addEventListener("puzzle-updated",t=>{rU.properties.puzzleId=t.detail.state.getId()});const rZ=new rD,rH={debug:sQ,puzzle:rZ};rH.centerOnTile=function(t,e){return rZ.centerOnTile(new sX(t,e))},rH.clearDebugPoints=rZ.clearDebugPoints.bind(rZ),rH.drawDebugPoint=function(t,e,i){return rZ.drawDebugPoint(new sE.Point(t,e),i)},window.beaming=rH; +//# sourceMappingURL=index.5b31326c.js.map diff --git a/index.5b31326c.js.map b/index.5b31326c.js.map new file mode 100644 index 0000000..86159a3 --- /dev/null +++ b/index.5b31326c.js.map @@ -0,0 +1 @@ +{"mappings":"IuCkLI,EACA,EACA,EAkyJA,EAAQ,E,S,E,C,C,C,C,C,C,C,E,O,c,C,E,E,C,I,E,I,E,W,C,E,a,C,C,E,C,S,E,C,E,O,G,E,U,C,E,O,C,C,C,I,E,A,a,O,W,W,A,a,O,K,K,A,a,O,O,O,A,a,O,O,O,C,E,E,C,E,E,C,E,E,E,iB,A,O,I,A,C,E,S,C,E,G,K,E,O,C,C,E,C,O,C,G,K,E,C,I,E,C,C,E,A,Q,C,C,E,C,I,E,C,G,E,Q,C,C,E,O,C,C,E,C,E,E,I,C,E,O,C,E,E,O,E,E,O,A,C,I,E,A,M,uB,E,I,O,E,I,C,mB,C,C,E,Q,C,S,C,C,C,E,C,C,E,C,C,E,E,iB,C,G,I,E,E,Q,C,E,Q,S,C,C,C,EtCt9JZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BC,EAEW,AAAA,CAAA,SAAS,CAAI,CAAE,CAAS,EAGpC,IAAI,EAAS,AADb,CAAA,EAAO,GAAP,EAAA,QAAA,EACkB,MAAM,CACvB,EAAW,EAAK,QAAQ,CAErB,EAAO,IAAI,WACd,IAAI,EAAS,wCACZ,EAAQ,EAAE,CACV,EAAQ,EAAM,KAAK,CACnB,EAAS,OAAO,MAAM,CACtB,EAAW,OAAO,wBAAwB,CAC1C,EAAS,OAAO,cAAc,CAE9B,EAAU,EAAM,OAAO,EAAI,SAAS,CAAI,CAAE,CAAI,EAC7C,IAAK,IAAI,EAAI,EAA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,GAAO,CAAA,EAAe,CAC9D,EAAE,AACJ,CkCptBA,MAAM,GAAS,SAAS,aAAa,CAAC,UACtC,GAAO,YAAY,CAAC,MAAO,4DAC3B,SAAS,IAAI,CAAC,MAAM,CAAC,IAErB,MAAM,GAAY,OAAO,SAAS,CAAG,OAAO,SAAS,EAAI,EAAE,CAC3D,SAAS,KAAU,GAAU,IAAI,CAAC,UAAW,CAC7C,GAAK,KAAM,IAAI,MACf,GAAK,SAAU,gBCPf,MAAM,GAAkB,OAAO,eAAe,CAAG,CAC/C,OAAQ,mEACR,UAAW,SAAS,cAAc,CAAC,sBACnC,WAAY,CAAA,EACZ,WAAY,CAAC,CACf,EAEM,GAAS,SAAS,aAAa,CAAC,UACtC,GAAO,YAAY,CACjB,MACA,4FAEF,SAAS,IAAI,CAAC,MAAM,CAAC,IAErB,SAAS,gBAAgB,CAAC,iBAAkB,AAAC,IAC3C,GAAgB,UAAU,CAAC,QAAQ,CAAG,EAAM,MAAM,CAAC,KAAK,CAAC,KAAK,EAChE,GvJLA,MAAM,GAAS,IAAI,GACb,GAAU,CAAE,MAAA,GAAO,OAAA,EAAO,CAGhC,CAAA,GAAQ,YAAY,CAAG,SAAU,CAAC,CAAE,CAAC,EACnC,OAAO,GAAO,YAAY,CAAC,IAAI,GAAkB,EAAG,GACtD,EAEA,GAAQ,gBAAgB,CAAG,GAAO,gBAAgB,CAAC,IAAI,CAAC,IACxD,GAAQ,cAAc,CAAG,SAAU,CAAC,CAAE,CAAC,CAAE,CAAK,EAC5C,OAAO,GAAO,cAAc,CAAC,IAAI,GAAA,KAAI,CAAE,EAAG,GAAI,EAChD,EAGA,OAAO,OAAO,CAAG","sources":["","node_modules/paper/dist/paper-full.js","node_modules/@parcel/node-resolver-core/lib/_empty.js","node_modules/acorn/dist/acorn.mjs","src/puzzles/001.json","src/puzzles/002.json","src/puzzles/003.json","src/puzzles/004.json","src/puzzles/005.json","src/puzzles/006.json","src/puzzles/007.json","src/puzzles/008.json","src/puzzles/009.json","src/puzzles/010.json","src/puzzles/011.json","src/puzzles/012.json","src/puzzles/test/infiniteLoop.json","src/puzzles/test/layout.js","src/puzzles/test/portal.json","src/puzzles/test/reflector.json","src/index.js","src/info.js","src/components/debug.js","src/components/util.js","node_modules/jsondiffpatch/lib/index.js","node_modules/jsondiffpatch/lib/diffpatcher.js","node_modules/jsondiffpatch/lib/processor.js","node_modules/jsondiffpatch/lib/pipe.js","node_modules/jsondiffpatch/lib/contexts/diff.js","node_modules/jsondiffpatch/lib/contexts/context.js","node_modules/jsondiffpatch/lib/clone.js","node_modules/jsondiffpatch/lib/contexts/patch.js","node_modules/jsondiffpatch/lib/contexts/reverse.js","node_modules/jsondiffpatch/lib/filters/trivial.js","node_modules/jsondiffpatch/lib/filters/nested.js","node_modules/jsondiffpatch/lib/filters/arrays.js","node_modules/jsondiffpatch/lib/filters/lcs.js","node_modules/jsondiffpatch/lib/filters/dates.js","node_modules/jsondiffpatch/lib/filters/texts.js","node_modules/pako/dist/pako.esm.mjs","node_modules/chroma-js/index.js","node_modules/chroma-js/src/chroma.js","node_modules/chroma-js/src/Color.js","node_modules/chroma-js/src/utils/index.js","node_modules/chroma-js/src/utils/clip_rgb.js","node_modules/chroma-js/src/utils/limit.js","node_modules/chroma-js/src/utils/type.js","node_modules/chroma-js/src/utils/unpack.js","node_modules/chroma-js/src/utils/last.js","node_modules/chroma-js/src/io/input.js","node_modules/chroma-js/src/version.js","node_modules/chroma-js/src/io/cmyk/index.js","node_modules/chroma-js/src/io/cmyk/cmyk2rgb.js","node_modules/chroma-js/src/io/cmyk/rgb2cmyk.js","node_modules/chroma-js/src/io/css/index.js","node_modules/chroma-js/src/io/css/rgb2css.js","node_modules/chroma-js/src/io/css/hsl2css.js","node_modules/chroma-js/src/io/hsl/rgb2hsl.js","node_modules/chroma-js/src/io/css/css2rgb.js","node_modules/chroma-js/src/io/hsl/hsl2rgb.js","node_modules/chroma-js/src/io/gl/index.js","node_modules/chroma-js/src/io/hcg/index.js","node_modules/chroma-js/src/io/hcg/hcg2rgb.js","node_modules/chroma-js/src/io/hcg/rgb2hcg.js","node_modules/chroma-js/src/io/hex/index.js","node_modules/chroma-js/src/io/hex/hex2rgb.js","node_modules/chroma-js/src/io/hex/rgb2hex.js","node_modules/chroma-js/src/io/hsi/index.js","node_modules/chroma-js/src/io/hsi/hsi2rgb.js","node_modules/chroma-js/src/io/hsi/rgb2hsi.js","node_modules/chroma-js/src/io/hsl/index.js","node_modules/chroma-js/src/io/hsv/index.js","node_modules/chroma-js/src/io/hsv/hsv2rgb.js","node_modules/chroma-js/src/io/hsv/rgb2hsv.js","node_modules/chroma-js/src/io/lab/index.js","node_modules/chroma-js/src/io/lab/lab2rgb.js","node_modules/chroma-js/src/io/lab/lab-constants.js","node_modules/chroma-js/src/io/lab/rgb2lab.js","node_modules/chroma-js/src/io/lch/index.js","node_modules/chroma-js/src/io/lch/lch2rgb.js","node_modules/chroma-js/src/io/lch/lch2lab.js","node_modules/chroma-js/src/io/lch/hcl2rgb.js","node_modules/chroma-js/src/io/lch/rgb2lch.js","node_modules/chroma-js/src/io/lch/lab2lch.js","node_modules/chroma-js/src/io/named/index.js","node_modules/chroma-js/src/colors/w3cx11.js","node_modules/chroma-js/src/io/num/index.js","node_modules/chroma-js/src/io/num/num2rgb.js","node_modules/chroma-js/src/io/num/rgb2num.js","node_modules/chroma-js/src/io/rgb/index.js","node_modules/chroma-js/src/io/temp/index.js","node_modules/chroma-js/src/io/temp/temperature2rgb.js","node_modules/chroma-js/src/io/temp/rgb2temperature.js","node_modules/chroma-js/src/io/oklab/index.js","node_modules/chroma-js/src/io/oklab/oklab2rgb.js","node_modules/chroma-js/src/io/oklab/rgb2oklab.js","node_modules/chroma-js/src/io/oklch/index.js","node_modules/chroma-js/src/io/oklch/oklch2rgb.js","node_modules/chroma-js/src/io/oklch/rgb2oklch.js","node_modules/chroma-js/src/ops/alpha.js","node_modules/chroma-js/src/ops/clipped.js","node_modules/chroma-js/src/ops/darken.js","node_modules/chroma-js/src/ops/get.js","node_modules/chroma-js/src/ops/luminance.js","node_modules/chroma-js/src/ops/mix.js","node_modules/chroma-js/src/generator/mix.js","node_modules/chroma-js/src/interpolator/index.js","node_modules/chroma-js/src/ops/premultiply.js","node_modules/chroma-js/src/ops/saturate.js","node_modules/chroma-js/src/ops/set.js","node_modules/chroma-js/src/ops/shade.js","node_modules/chroma-js/src/interpolator/rgb.js","node_modules/chroma-js/src/interpolator/lrgb.js","node_modules/chroma-js/src/interpolator/lab.js","node_modules/chroma-js/src/interpolator/lch.js","node_modules/chroma-js/src/interpolator/_hsx.js","node_modules/chroma-js/src/interpolator/num.js","node_modules/chroma-js/src/interpolator/hcg.js","node_modules/chroma-js/src/interpolator/hsi.js","node_modules/chroma-js/src/interpolator/hsl.js","node_modules/chroma-js/src/interpolator/hsv.js","node_modules/chroma-js/src/interpolator/oklab.js","node_modules/chroma-js/src/interpolator/oklch.js","node_modules/chroma-js/src/generator/average.js","node_modules/chroma-js/src/generator/bezier.js","node_modules/chroma-js/src/generator/scale.js","node_modules/chroma-js/src/generator/blend.js","node_modules/chroma-js/src/generator/cubehelix.js","node_modules/chroma-js/src/generator/random.js","node_modules/chroma-js/src/utils/analyze.js","node_modules/chroma-js/src/utils/contrast.js","node_modules/chroma-js/src/utils/delta-e.js","node_modules/chroma-js/src/utils/distance.js","node_modules/chroma-js/src/utils/valid.js","node_modules/chroma-js/src/utils/scales.js","node_modules/chroma-js/src/colors/colorbrewer.js","src/components/puzzle.js","src/components/layout.js","src/components/coordinates/cube.js","src/components/coordinates/offset.js","src/components/items/tile.js","src/components/item.js","src/components/stateful.js","src/components/itemFactory.js","src/components/items/filter.js","src/components/modifiers/move.js","src/components/modifier.js","src/components/eventListeners.js","src/components/interact.js","src/components/cache.js","src/components/icons.js","src/components/symbol.js","src/components/step.js","src/components/items/portal.js","src/components/modifiers/rotate.js","src/components/items/terminus.js","src/components/modifiers/toggle.js","src/components/items/beam.js","src/components/collision.js","src/components/items/reflector.js","src/components/items/wall.js","src/components/modifierFactory.js","src/components/modifiers/immutable.js","src/components/modifiers/lock.js","src/components/modifiers/swap.js","src/components/items/mask.js","src/components/items/collision.js","src/components/state.js","src/puzzles/index.js","src/components/solution.js","src/analytics.js","src/feedback.js"],"sourcesContent":["\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true, configurable: true});\n}\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\n var $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequiref3c5\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequiref3c5\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"hFpCu\", function(module, exports) {\n/*!\n * Paper.js v0.12.18 - The Swiss Army Knife of Vector Graphics Scripting.\n * http://paperjs.org/\n *\n * Copyright (c) 2011 - 2020, Jürg Lehni & Jonathan Puckey\n * http://juerglehni.com/ & https://puckey.studio/\n *\n * Distributed under the MIT license. See LICENSE file for details.\n *\n * All rights reserved.\n *\n * Date: Wed Jul 17 14:57:24 2024 +0200\n *\n ***\n *\n * Straps.js - Class inheritance library with support for bean-style accessors\n *\n * Copyright (c) 2006 - 2020 Jürg Lehni\n * http://juerglehni.com/\n *\n * Distributed under the MIT license.\n *\n ***\n *\n * Acorn.js\n * https://marijnhaverbeke.nl/acorn/\n *\n * Acorn is a tiny, fast JavaScript parser written in JavaScript,\n * created by Marijn Haverbeke and released under an MIT license.\n *\n */ \n\n\nvar paper = (function(self1, undefined) {\n self1 = self1 || (parcelRequire(\"gFNhN\"));\n var window = self1.window, document = self1.document;\n var Base = new function() {\n var hidden = /^(statics|enumerable|beans|preserve)$/, array = [], slice = array.slice, create = Object.create, describe = Object.getOwnPropertyDescriptor, define1 = Object.defineProperty, forEach = array.forEach || function(iter, bind) {\n for(var i = 0, l = this.length; i < l; i++)iter.call(bind, this[i], i, this);\n }, forIn = function(iter, bind) {\n for(var i in this)if (this.hasOwnProperty(i)) iter.call(bind, this[i], i, this);\n }, set = Object.assign || function(dst) {\n for(var i = 1, l = arguments.length; i < l; i++){\n var src = arguments[i];\n for(var key in src)if (src.hasOwnProperty(key)) dst[key] = src[key];\n }\n return dst;\n }, each = function(obj, iter, bind) {\n if (obj) {\n var desc = describe(obj, \"length\");\n (desc && typeof desc.value === \"number\" ? forEach : forIn).call(obj, iter, bind = bind || obj);\n }\n return bind;\n };\n function inject(dest, src, enumerable, beans, preserve) {\n var beansNames = {};\n function field(name, val) {\n val = val || (val = describe(src, name)) && (val.get ? val : val.value);\n if (typeof val === \"string\" && val[0] === \"#\") val = dest[val.substring(1)] || val;\n var isFunc = typeof val === \"function\", res = val, prev = preserve || isFunc && !val.base ? val && val.get ? name in dest : dest[name] : null, bean;\n if (!preserve || !prev) {\n if (isFunc && prev) val.base = prev;\n if (isFunc && beans !== false && (bean = name.match(/^([gs]et|is)(([A-Z])(.*))$/))) beansNames[bean[3].toLowerCase() + bean[4]] = bean[2];\n if (!res || isFunc || !res.get || typeof res.get !== \"function\" || !Base.isPlainObject(res)) res = {\n value: res,\n writable: true\n };\n if ((describe(dest, name) || {\n configurable: true\n }).configurable) {\n res.configurable = true;\n res.enumerable = enumerable != null ? enumerable : !bean;\n }\n define1(dest, name, res);\n }\n }\n if (src) {\n for(var name in src)if (src.hasOwnProperty(name) && !hidden.test(name)) field(name);\n for(var name in beansNames){\n var part = beansNames[name], set = dest[\"set\" + part], get = dest[\"get\" + part] || set && dest[\"is\" + part];\n if (get && (beans === true || get.length === 0)) field(name, {\n get: get,\n set: set\n });\n }\n }\n return dest;\n }\n function Base() {\n for(var i = 0, l = arguments.length; i < l; i++){\n var src = arguments[i];\n if (src) set(this, src);\n }\n return this;\n }\n return inject(Base, {\n inject: function(src) {\n if (src) {\n var statics = src.statics === true ? src : src.statics, beans = src.beans, preserve = src.preserve;\n if (statics !== src) inject(this.prototype, src, src.enumerable, beans, preserve);\n inject(this, statics, null, beans, preserve);\n }\n for(var i = 1, l = arguments.length; i < l; i++)this.inject(arguments[i]);\n return this;\n },\n extend: function() {\n var base = this, ctor, proto;\n for(var i = 0, obj, l = arguments.length; i < l && !(ctor && proto); i++){\n obj = arguments[i];\n ctor = ctor || obj.initialize;\n proto = proto || obj.prototype;\n }\n ctor = ctor || function() {\n base.apply(this, arguments);\n };\n proto = ctor.prototype = proto || create(this.prototype);\n define1(proto, \"constructor\", {\n value: ctor,\n writable: true,\n configurable: true\n });\n inject(ctor, this);\n if (arguments.length) this.inject.apply(ctor, arguments);\n ctor.base = base;\n return ctor;\n }\n }).inject({\n enumerable: false,\n initialize: Base,\n set: Base,\n inject: function() {\n for(var i = 0, l = arguments.length; i < l; i++){\n var src = arguments[i];\n if (src) inject(this, src, src.enumerable, src.beans, src.preserve);\n }\n return this;\n },\n extend: function() {\n var res = create(this);\n return res.inject.apply(res, arguments);\n },\n each: function(iter, bind) {\n return each(this, iter, bind);\n },\n clone: function() {\n return new this.constructor(this);\n },\n statics: {\n set: set,\n each: each,\n create: create,\n define: define1,\n describe: describe,\n clone: function(obj) {\n return set(new obj.constructor(), obj);\n },\n isPlainObject: function(obj) {\n var ctor = obj != null && obj.constructor;\n return ctor && (ctor === Object || ctor === Base || ctor.name === \"Object\");\n },\n pick: function(a, b) {\n return a !== undefined ? a : b;\n },\n slice: function(list, begin, end) {\n return slice.call(list, begin, end);\n }\n }\n });\n };\n module.exports = Base;\n Base.inject({\n enumerable: false,\n toString: function() {\n return this._id != null ? (this._class || \"Object\") + (this._name ? \" '\" + this._name + \"'\" : \" @\" + this._id) : \"{ \" + Base.each(this, function(value, key) {\n if (!/^_/.test(key)) {\n var type = typeof value;\n this.push(key + \": \" + (type === \"number\" ? Formatter.instance.number(value) : type === \"string\" ? \"'\" + value + \"'\" : value));\n }\n }, []).join(\", \") + \" }\";\n },\n getClassName: function() {\n return this._class || \"\";\n },\n importJSON: function(json) {\n return Base.importJSON(json, this);\n },\n exportJSON: function(options) {\n return Base.exportJSON(this, options);\n },\n toJSON: function() {\n return Base.serialize(this);\n },\n set: function(props, exclude) {\n if (props) Base.filter(this, props, exclude, this._prioritize);\n return this;\n }\n }, {\n beans: false,\n statics: {\n exports: {},\n extend: function extend() {\n var res = extend.base.apply(this, arguments), name = res.prototype._class;\n if (name && !Base.exports[name]) Base.exports[name] = res;\n return res;\n },\n equals: function(obj1, obj2) {\n if (obj1 === obj2) return true;\n if (obj1 && obj1.equals) return obj1.equals(obj2);\n if (obj2 && obj2.equals) return obj2.equals(obj1);\n if (obj1 && obj2 && typeof obj1 === \"object\" && typeof obj2 === \"object\") {\n if (Array.isArray(obj1) && Array.isArray(obj2)) {\n var length = obj1.length;\n if (length !== obj2.length) return false;\n while(length--){\n if (!Base.equals(obj1[length], obj2[length])) return false;\n }\n } else {\n var keys = Object.keys(obj1), length = keys.length;\n if (length !== Object.keys(obj2).length) return false;\n while(length--){\n var key = keys[length];\n if (!(obj2.hasOwnProperty(key) && Base.equals(obj1[key], obj2[key]))) return false;\n }\n }\n return true;\n }\n return false;\n },\n read: function(list, start, options, amount) {\n if (this === Base) {\n var value = this.peek(list, start);\n list.__index++;\n return value;\n }\n var proto = this.prototype, readIndex = proto._readIndex, begin = start || readIndex && list.__index || 0, length = list.length, obj = list[begin];\n amount = amount || length - begin;\n if (obj instanceof this || options && options.readNull && obj == null && amount <= 1) {\n if (readIndex) list.__index = begin + 1;\n return obj && options && options.clone ? obj.clone() : obj;\n }\n obj = Base.create(proto);\n if (readIndex) obj.__read = true;\n obj = obj.initialize.apply(obj, begin > 0 || begin + amount < length ? Base.slice(list, begin, begin + amount) : list) || obj;\n if (readIndex) {\n list.__index = begin + obj.__read;\n var filtered = obj.__filtered;\n if (filtered) {\n list.__filtered = filtered;\n obj.__filtered = undefined;\n }\n obj.__read = undefined;\n }\n return obj;\n },\n peek: function(list, start) {\n return list[list.__index = start || list.__index || 0];\n },\n remain: function(list) {\n return list.length - (list.__index || 0);\n },\n readList: function(list, start, options, amount) {\n var res = [], entry, begin = start || 0, end = amount ? begin + amount : list.length;\n for(var i = begin; i < end; i++)res.push(Array.isArray(entry = list[i]) ? this.read(entry, 0, options) : this.read(list, i, options, 1));\n return res;\n },\n readNamed: function(list, name, start, options, amount) {\n var value = this.getNamed(list, name), hasValue = value !== undefined;\n if (hasValue) {\n var filtered = list.__filtered;\n if (!filtered) {\n var source = this.getSource(list);\n filtered = list.__filtered = Base.create(source);\n filtered.__unfiltered = source;\n }\n filtered[name] = undefined;\n }\n return this.read(hasValue ? [\n value\n ] : list, start, options, amount);\n },\n readSupported: function(list, dest) {\n var source = this.getSource(list), that = this, read = false;\n if (source) Object.keys(source).forEach(function(key) {\n if (key in dest) {\n var value = that.readNamed(list, key);\n if (value !== undefined) dest[key] = value;\n read = true;\n }\n });\n return read;\n },\n getSource: function(list) {\n var source = list.__source;\n if (source === undefined) {\n var arg = list.length === 1 && list[0];\n source = list.__source = arg && Base.isPlainObject(arg) ? arg : null;\n }\n return source;\n },\n getNamed: function(list, name) {\n var source = this.getSource(list);\n if (source) return name ? source[name] : list.__filtered || source;\n },\n hasNamed: function(list, name) {\n return !!this.getNamed(list, name);\n },\n filter: function(dest, source, exclude, prioritize) {\n var processed;\n function handleKey(key) {\n if (!(exclude && key in exclude) && !(processed && key in processed)) {\n var value = source[key];\n if (value !== undefined) dest[key] = value;\n }\n }\n if (prioritize) {\n var keys = {};\n for(var i = 0, key, l = prioritize.length; i < l; i++)if ((key = prioritize[i]) in source) {\n handleKey(key);\n keys[key] = true;\n }\n processed = keys;\n }\n Object.keys(source.__unfiltered || source).forEach(handleKey);\n return dest;\n },\n isPlainValue: function(obj, asString) {\n return Base.isPlainObject(obj) || Array.isArray(obj) || asString && typeof obj === \"string\";\n },\n serialize: function(obj, options, compact, dictionary) {\n options = options || {};\n var isRoot = !dictionary, res;\n if (isRoot) {\n options.formatter = new Formatter(options.precision);\n dictionary = {\n length: 0,\n definitions: {},\n references: {},\n add: function(item, create) {\n var id = \"#\" + item._id, ref = this.references[id];\n if (!ref) {\n this.length++;\n var res = create.call(item), name = item._class;\n if (name && res[0] !== name) res.unshift(name);\n this.definitions[id] = res;\n ref = this.references[id] = [\n id\n ];\n }\n return ref;\n }\n };\n }\n if (obj && obj._serialize) {\n res = obj._serialize(options, dictionary);\n var name = obj._class;\n if (name && !obj._compactSerialize && (isRoot || !compact) && res[0] !== name) res.unshift(name);\n } else if (Array.isArray(obj)) {\n res = [];\n for(var i = 0, l = obj.length; i < l; i++)res[i] = Base.serialize(obj[i], options, compact, dictionary);\n } else if (Base.isPlainObject(obj)) {\n res = {};\n var keys = Object.keys(obj);\n for(var i = 0, l = keys.length; i < l; i++){\n var key = keys[i];\n res[key] = Base.serialize(obj[key], options, compact, dictionary);\n }\n } else if (typeof obj === \"number\") res = options.formatter.number(obj, options.precision);\n else res = obj;\n return isRoot && dictionary.length > 0 ? [\n [\n \"dictionary\",\n dictionary.definitions\n ],\n res\n ] : res;\n },\n deserialize: function(json, create, _data, _setDictionary, _isRoot) {\n var res = json, isFirst = !_data, hasDictionary = isFirst && json && json.length && json[0][0] === \"dictionary\";\n _data = _data || {};\n if (Array.isArray(json)) {\n var type = json[0], isDictionary = type === \"dictionary\";\n if (json.length == 1 && /^#/.test(type)) return _data.dictionary[type];\n type = Base.exports[type];\n res = [];\n for(var i = type ? 1 : 0, l = json.length; i < l; i++)res.push(Base.deserialize(json[i], create, _data, isDictionary, hasDictionary));\n if (type) {\n var args = res;\n if (create) res = create(type, args, isFirst || _isRoot);\n else res = new type(args);\n }\n } else if (Base.isPlainObject(json)) {\n res = {};\n if (_setDictionary) _data.dictionary = res;\n for(var key in json)res[key] = Base.deserialize(json[key], create, _data);\n }\n return hasDictionary ? res[1] : res;\n },\n exportJSON: function(obj, options) {\n var json = Base.serialize(obj, options);\n return options && options.asString == false ? json : JSON.stringify(json);\n },\n importJSON: function(json, target) {\n return Base.deserialize(typeof json === \"string\" ? JSON.parse(json) : json, function(ctor, args, isRoot) {\n var useTarget = isRoot && target && target.constructor === ctor, obj = useTarget ? target : Base.create(ctor.prototype);\n if (args.length === 1 && obj instanceof Item && (useTarget || !(obj instanceof Layer))) {\n var arg = args[0];\n if (Base.isPlainObject(arg)) {\n arg.insert = false;\n if (useTarget) args = args.concat([\n Item.INSERT\n ]);\n }\n }\n (useTarget ? obj.set : ctor).apply(obj, args);\n if (useTarget) target = null;\n return obj;\n });\n },\n push: function(list, items) {\n var itemsLength = items.length;\n if (itemsLength < 4096) list.push.apply(list, items);\n else {\n var startLength = list.length;\n list.length += itemsLength;\n for(var i = 0; i < itemsLength; i++)list[startLength + i] = items[i];\n }\n return list;\n },\n splice: function(list, items, index, remove) {\n var amount = items && items.length, append = index === undefined;\n index = append ? list.length : index;\n if (index > list.length) index = list.length;\n for(var i = 0; i < amount; i++)items[i]._index = index + i;\n if (append) {\n Base.push(list, items);\n return [];\n } else {\n var args = [\n index,\n remove\n ];\n if (items) Base.push(args, items);\n var removed = list.splice.apply(list, args);\n for(var i = 0, l = removed.length; i < l; i++)removed[i]._index = undefined;\n for(var i = index + amount, l = list.length; i < l; i++)list[i]._index = i;\n return removed;\n }\n },\n capitalize: function(str) {\n return str.replace(/\\b[a-z]/g, function(match) {\n return match.toUpperCase();\n });\n },\n camelize: function(str) {\n return str.replace(/-(.)/g, function(match, chr) {\n return chr.toUpperCase();\n });\n },\n hyphenate: function(str) {\n return str.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n }\n }\n });\n var Emitter = {\n on: function(type, func) {\n if (typeof type !== \"string\") Base.each(type, function(value, key) {\n this.on(key, value);\n }, this);\n else {\n var types = this._eventTypes, entry = types && types[type], handlers = this._callbacks = this._callbacks || {};\n handlers = handlers[type] = handlers[type] || [];\n if (handlers.indexOf(func) === -1) {\n handlers.push(func);\n if (entry && entry.install && handlers.length === 1) entry.install.call(this, type);\n }\n }\n return this;\n },\n off: function(type, func) {\n if (typeof type !== \"string\") {\n Base.each(type, function(value, key) {\n this.off(key, value);\n }, this);\n return;\n }\n var types = this._eventTypes, entry = types && types[type], handlers = this._callbacks && this._callbacks[type], index;\n if (handlers) {\n if (!func || (index = handlers.indexOf(func)) !== -1 && handlers.length === 1) {\n if (entry && entry.uninstall) entry.uninstall.call(this, type);\n delete this._callbacks[type];\n } else if (index !== -1) handlers.splice(index, 1);\n }\n return this;\n },\n once: function(type, func) {\n return this.on(type, function handler() {\n func.apply(this, arguments);\n this.off(type, handler);\n });\n },\n emit: function(type, event) {\n var handlers = this._callbacks && this._callbacks[type];\n if (!handlers) return false;\n var args = Base.slice(arguments, 1), setTarget = event && event.target && !event.currentTarget;\n handlers = handlers.slice();\n if (setTarget) event.currentTarget = this;\n for(var i = 0, l = handlers.length; i < l; i++)if (handlers[i].apply(this, args) == false) {\n if (event && event.stop) event.stop();\n break;\n }\n if (setTarget) delete event.currentTarget;\n return true;\n },\n responds: function(type) {\n return !!(this._callbacks && this._callbacks[type]);\n },\n attach: \"#on\",\n detach: \"#off\",\n fire: \"#emit\",\n _installEvents: function(install) {\n var types = this._eventTypes, handlers = this._callbacks, key = install ? \"install\" : \"uninstall\";\n if (types) {\n for(var type in handlers)if (handlers[type].length > 0) {\n var entry = types[type], func = entry && entry[key];\n if (func) func.call(this, type);\n }\n }\n },\n statics: {\n inject: function inject(src) {\n var events = src._events;\n if (events) {\n var types = {};\n Base.each(events, function(entry, key) {\n var isString = typeof entry === \"string\", name = isString ? entry : key, part = Base.capitalize(name), type = name.substring(2).toLowerCase();\n types[type] = isString ? {} : entry;\n name = \"_\" + name;\n src[\"get\" + part] = function() {\n return this[name];\n };\n src[\"set\" + part] = function(func) {\n var prev = this[name];\n if (prev) this.off(type, prev);\n if (func) this.on(type, func);\n this[name] = func;\n };\n });\n src._eventTypes = types;\n }\n return inject.base.apply(this, arguments);\n }\n }\n };\n var PaperScope = Base.extend({\n _class: \"PaperScope\",\n initialize: function PaperScope() {\n paper = this;\n this.settings = new Base({\n applyMatrix: true,\n insertItems: true,\n handleSize: 4,\n hitTolerance: 0\n });\n this.project = null;\n this.projects = [];\n this.tools = [];\n this._id = PaperScope._id++;\n PaperScope._scopes[this._id] = this;\n var proto = PaperScope.prototype;\n if (!this.support) {\n var ctx = CanvasProvider.getContext(1, 1) || {};\n proto.support = {\n nativeDash: \"setLineDash\" in ctx || \"mozDash\" in ctx,\n nativeBlendModes: BlendMode.nativeModes\n };\n CanvasProvider.release(ctx);\n }\n if (!this.agent) {\n var user = self1.navigator.userAgent.toLowerCase(), os = (/(darwin|win|mac|linux|freebsd|sunos)/.exec(user) || [])[0], platform = os === \"darwin\" ? \"mac\" : os, agent = proto.agent = proto.browser = {\n platform: platform\n };\n if (platform) agent[platform] = true;\n user.replace(/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\\/?\\s*([.\\d]+)(?:.*version\\/([.\\d]+))?(?:.*rv\\:v?([.\\d]+))?/g, function(match, n, v1, v2, rv) {\n if (!agent.chrome) {\n var v = n === \"opera\" ? v2 : /^(node|trident)$/.test(n) ? rv : v1;\n agent.version = v;\n agent.versionNumber = parseFloat(v);\n n = ({\n trident: \"msie\",\n jsdom: \"node\"\n })[n] || n;\n agent.name = n;\n agent[n] = true;\n }\n });\n if (agent.chrome) delete agent.webkit;\n if (agent.atom) delete agent.chrome;\n }\n },\n version: \"0.12.18\",\n getView: function() {\n var project = this.project;\n return project && project._view;\n },\n getPaper: function() {\n return this;\n },\n execute: function(code, options) {\n var exports = paper.PaperScript.execute(code, this, options);\n View.updateFocus();\n return exports;\n },\n install: function(scope) {\n var that = this;\n Base.each([\n \"project\",\n \"view\",\n \"tool\"\n ], function(key) {\n Base.define(scope, key, {\n configurable: true,\n get: function() {\n return that[key];\n }\n });\n });\n for(var key in this)if (!/^_/.test(key) && this[key]) scope[key] = this[key];\n },\n setup: function(element) {\n paper = this;\n this.project = new Project(element);\n return this;\n },\n createCanvas: function(width, height) {\n return CanvasProvider.getCanvas(width, height);\n },\n activate: function() {\n paper = this;\n },\n clear: function() {\n var projects = this.projects, tools = this.tools;\n for(var i = projects.length - 1; i >= 0; i--)projects[i].remove();\n for(var i = tools.length - 1; i >= 0; i--)tools[i].remove();\n },\n remove: function() {\n this.clear();\n delete PaperScope._scopes[this._id];\n },\n statics: new function() {\n function handleAttribute(name) {\n name += \"Attribute\";\n return function(el, attr) {\n return el[name](attr) || el[name](\"data-paper-\" + attr);\n };\n }\n return {\n _scopes: {},\n _id: 0,\n get: function(id) {\n return this._scopes[id] || null;\n },\n getAttribute: handleAttribute(\"get\"),\n hasAttribute: handleAttribute(\"has\")\n };\n }\n });\n var PaperScopeItem = Base.extend(Emitter, {\n initialize: function(activate) {\n this._scope = paper;\n this._index = this._scope[this._list].push(this) - 1;\n if (activate || !this._scope[this._reference]) this.activate();\n },\n activate: function() {\n if (!this._scope) return false;\n var prev = this._scope[this._reference];\n if (prev && prev !== this) prev.emit(\"deactivate\");\n this._scope[this._reference] = this;\n this.emit(\"activate\", prev);\n return true;\n },\n isActive: function() {\n return this._scope[this._reference] === this;\n },\n remove: function() {\n if (this._index == null) return false;\n Base.splice(this._scope[this._list], null, this._index, 1);\n if (this._scope[this._reference] == this) this._scope[this._reference] = null;\n this._scope = null;\n return true;\n },\n getView: function() {\n return this._scope.getView();\n }\n });\n var CollisionDetection = {\n findItemBoundsCollisions: function(items1, items2, tolerance) {\n function getBounds(items) {\n var bounds = new Array(items.length);\n for(var i = 0; i < items.length; i++){\n var rect = items[i].getBounds();\n bounds[i] = [\n rect.left,\n rect.top,\n rect.right,\n rect.bottom\n ];\n }\n return bounds;\n }\n var bounds1 = getBounds(items1), bounds2 = !items2 || items2 === items1 ? bounds1 : getBounds(items2);\n return this.findBoundsCollisions(bounds1, bounds2, tolerance || 0);\n },\n findCurveBoundsCollisions: function(curves1, curves2, tolerance, bothAxis) {\n function getBounds(curves) {\n var min = Math.min, max = Math.max, bounds = new Array(curves.length);\n for(var i = 0; i < curves.length; i++){\n var v = curves[i];\n bounds[i] = [\n min(v[0], v[2], v[4], v[6]),\n min(v[1], v[3], v[5], v[7]),\n max(v[0], v[2], v[4], v[6]),\n max(v[1], v[3], v[5], v[7])\n ];\n }\n return bounds;\n }\n var bounds1 = getBounds(curves1), bounds2 = !curves2 || curves2 === curves1 ? bounds1 : getBounds(curves2);\n if (bothAxis) {\n var hor = this.findBoundsCollisions(bounds1, bounds2, tolerance || 0, false, true), ver = this.findBoundsCollisions(bounds1, bounds2, tolerance || 0, true, true), list = [];\n for(var i = 0, l = hor.length; i < l; i++)list[i] = {\n hor: hor[i],\n ver: ver[i]\n };\n return list;\n }\n return this.findBoundsCollisions(bounds1, bounds2, tolerance || 0);\n },\n findBoundsCollisions: function(boundsA, boundsB, tolerance, sweepVertical, onlySweepAxisCollisions) {\n var self1 = !boundsB || boundsA === boundsB, allBounds = self1 ? boundsA : boundsA.concat(boundsB), lengthA = boundsA.length, lengthAll = allBounds.length;\n function binarySearch(indices, coord, value) {\n var lo = 0, hi = indices.length;\n while(lo < hi){\n var mid = hi + lo >>> 1;\n if (allBounds[indices[mid]][coord] < value) lo = mid + 1;\n else hi = mid;\n }\n return lo - 1;\n }\n var pri0 = sweepVertical ? 1 : 0, pri1 = pri0 + 2, sec0 = sweepVertical ? 0 : 1, sec1 = sec0 + 2;\n var allIndicesByPri0 = new Array(lengthAll);\n for(var i = 0; i < lengthAll; i++)allIndicesByPri0[i] = i;\n allIndicesByPri0.sort(function(i1, i2) {\n return allBounds[i1][pri0] - allBounds[i2][pri0];\n });\n var activeIndicesByPri1 = [], allCollisions = new Array(lengthA);\n for(var i = 0; i < lengthAll; i++){\n var curIndex = allIndicesByPri0[i], curBounds = allBounds[curIndex], origIndex = self1 ? curIndex : curIndex - lengthA, isCurrentA = curIndex < lengthA, isCurrentB = self1 || !isCurrentA, curCollisions = isCurrentA ? [] : null;\n if (activeIndicesByPri1.length) {\n var pruneCount = binarySearch(activeIndicesByPri1, pri1, curBounds[pri0] - tolerance) + 1;\n activeIndicesByPri1.splice(0, pruneCount);\n if (self1 && onlySweepAxisCollisions) {\n curCollisions = curCollisions.concat(activeIndicesByPri1);\n for(var j = 0; j < activeIndicesByPri1.length; j++){\n var activeIndex = activeIndicesByPri1[j];\n allCollisions[activeIndex].push(origIndex);\n }\n } else {\n var curSec1 = curBounds[sec1], curSec0 = curBounds[sec0];\n for(var j = 0; j < activeIndicesByPri1.length; j++){\n var activeIndex = activeIndicesByPri1[j], activeBounds = allBounds[activeIndex], isActiveA = activeIndex < lengthA, isActiveB = self1 || activeIndex >= lengthA;\n if (onlySweepAxisCollisions || (isCurrentA && isActiveB || isCurrentB && isActiveA) && curSec1 >= activeBounds[sec0] - tolerance && curSec0 <= activeBounds[sec1] + tolerance) {\n if (isCurrentA && isActiveB) curCollisions.push(self1 ? activeIndex : activeIndex - lengthA);\n if (isCurrentB && isActiveA) allCollisions[activeIndex].push(origIndex);\n }\n }\n }\n }\n if (isCurrentA) {\n if (boundsA === boundsB) curCollisions.push(curIndex);\n allCollisions[curIndex] = curCollisions;\n }\n if (activeIndicesByPri1.length) {\n var curPri1 = curBounds[pri1], index = binarySearch(activeIndicesByPri1, pri1, curPri1);\n activeIndicesByPri1.splice(index + 1, 0, curIndex);\n } else activeIndicesByPri1.push(curIndex);\n }\n for(var i = 0; i < allCollisions.length; i++){\n var collisions = allCollisions[i];\n if (collisions) collisions.sort(function(i1, i2) {\n return i1 - i2;\n });\n }\n return allCollisions;\n }\n };\n var Formatter = Base.extend({\n initialize: function(precision) {\n this.precision = Base.pick(precision, 5);\n this.multiplier = Math.pow(10, this.precision);\n },\n number: function(val) {\n return this.precision < 16 ? Math.round(val * this.multiplier) / this.multiplier : val;\n },\n pair: function(val1, val2, separator) {\n return this.number(val1) + (separator || \",\") + this.number(val2);\n },\n point: function(val, separator) {\n return this.number(val.x) + (separator || \",\") + this.number(val.y);\n },\n size: function(val, separator) {\n return this.number(val.width) + (separator || \",\") + this.number(val.height);\n },\n rectangle: function(val, separator) {\n return this.point(val, separator) + (separator || \",\") + this.size(val, separator);\n }\n });\n Formatter.instance = new Formatter();\n var Numerical = new function() {\n var abscissas = [\n [\n 0.5773502691896257645091488\n ],\n [\n 0,\n 0.7745966692414833770358531\n ],\n [\n 0.3399810435848562648026658,\n 0.8611363115940525752239465\n ],\n [\n 0,\n 0.5384693101056830910363144,\n 0.9061798459386639927976269\n ],\n [\n 0.2386191860831969086305017,\n 0.6612093864662645136613996,\n 0.9324695142031520278123016\n ],\n [\n 0,\n 0.4058451513773971669066064,\n 0.7415311855993944398638648,\n 0.9491079123427585245261897\n ],\n [\n 0.1834346424956498049394761,\n 0.5255324099163289858177390,\n 0.7966664774136267395915539,\n 0.9602898564975362316835609\n ],\n [\n 0,\n 0.3242534234038089290385380,\n 0.6133714327005903973087020,\n 0.8360311073266357942994298,\n 0.9681602395076260898355762\n ],\n [\n 0.1488743389816312108848260,\n 0.4333953941292471907992659,\n 0.6794095682990244062343274,\n 0.8650633666889845107320967,\n 0.9739065285171717200779640\n ],\n [\n 0,\n 0.2695431559523449723315320,\n 0.5190961292068118159257257,\n 0.7301520055740493240934163,\n 0.8870625997680952990751578,\n 0.9782286581460569928039380\n ],\n [\n 0.1252334085114689154724414,\n 0.3678314989981801937526915,\n 0.5873179542866174472967024,\n 0.7699026741943046870368938,\n 0.9041172563704748566784659,\n 0.9815606342467192506905491\n ],\n [\n 0,\n 0.2304583159551347940655281,\n 0.4484927510364468528779129,\n 0.6423493394403402206439846,\n 0.8015780907333099127942065,\n 0.9175983992229779652065478,\n 0.9841830547185881494728294\n ],\n [\n 0.1080549487073436620662447,\n 0.3191123689278897604356718,\n 0.5152486363581540919652907,\n 0.6872929048116854701480198,\n 0.8272013150697649931897947,\n 0.9284348836635735173363911,\n 0.9862838086968123388415973\n ],\n [\n 0,\n 0.2011940939974345223006283,\n 0.3941513470775633698972074,\n 0.5709721726085388475372267,\n 0.7244177313601700474161861,\n 0.8482065834104272162006483,\n 0.9372733924007059043077589,\n 0.9879925180204854284895657\n ],\n [\n 0.0950125098376374401853193,\n 0.2816035507792589132304605,\n 0.4580167776572273863424194,\n 0.6178762444026437484466718,\n 0.7554044083550030338951012,\n 0.8656312023878317438804679,\n 0.9445750230732325760779884,\n 0.9894009349916499325961542\n ]\n ];\n var weights = [\n [\n 1\n ],\n [\n 0.8888888888888888888888889,\n 0.5555555555555555555555556\n ],\n [\n 0.6521451548625461426269361,\n 0.3478548451374538573730639\n ],\n [\n 0.5688888888888888888888889,\n 0.4786286704993664680412915,\n 0.2369268850561890875142640\n ],\n [\n 0.4679139345726910473898703,\n 0.3607615730481386075698335,\n 0.1713244923791703450402961\n ],\n [\n 0.4179591836734693877551020,\n 0.3818300505051189449503698,\n 0.2797053914892766679014678,\n 0.1294849661688696932706114\n ],\n [\n 0.3626837833783619829651504,\n 0.3137066458778872873379622,\n 0.2223810344533744705443560,\n 0.1012285362903762591525314\n ],\n [\n 0.3302393550012597631645251,\n 0.3123470770400028400686304,\n 0.2606106964029354623187429,\n 0.1806481606948574040584720,\n 0.0812743883615744119718922\n ],\n [\n 0.2955242247147528701738930,\n 0.2692667193099963550912269,\n 0.2190863625159820439955349,\n 0.1494513491505805931457763,\n 0.0666713443086881375935688\n ],\n [\n 0.2729250867779006307144835,\n 0.2628045445102466621806889,\n 0.2331937645919904799185237,\n 0.1862902109277342514260976,\n 0.1255803694649046246346943,\n 0.0556685671161736664827537\n ],\n [\n 0.2491470458134027850005624,\n 0.2334925365383548087608499,\n 0.2031674267230659217490645,\n 0.1600783285433462263346525,\n 0.1069393259953184309602547,\n 0.0471753363865118271946160\n ],\n [\n 0.2325515532308739101945895,\n 0.2262831802628972384120902,\n 0.2078160475368885023125232,\n 0.1781459807619457382800467,\n 0.1388735102197872384636018,\n 0.0921214998377284479144218,\n 0.0404840047653158795200216\n ],\n [\n 0.2152638534631577901958764,\n 0.2051984637212956039659241,\n 0.1855383974779378137417166,\n 0.1572031671581935345696019,\n 0.1215185706879031846894148,\n 0.0801580871597602098056333,\n 0.0351194603317518630318329\n ],\n [\n 0.2025782419255612728806202,\n 0.1984314853271115764561183,\n 0.1861610000155622110268006,\n 0.1662692058169939335532009,\n 0.1395706779261543144478048,\n 0.1071592204671719350118695,\n 0.0703660474881081247092674,\n 0.0307532419961172683546284\n ],\n [\n 0.1894506104550684962853967,\n 0.1826034150449235888667637,\n 0.1691565193950025381893121,\n 0.1495959888165767320815017,\n 0.1246289712555338720524763,\n 0.0951585116824927848099251,\n 0.0622535239386478928628438,\n 0.0271524594117540948517806\n ]\n ];\n var abs = Math.abs, sqrt = Math.sqrt, pow = Math.pow, log2 = Math.log2 || function(x) {\n return Math.log(x) * Math.LOG2E;\n }, EPSILON = 1e-12, MACHINE_EPSILON = 1.12e-16;\n function clamp(value, min, max) {\n return value < min ? min : value > max ? max : value;\n }\n function getDiscriminant(a, b, c) {\n function split(v) {\n var x = v * 134217729, y = v - x, hi = y + x, lo = v - hi;\n return [\n hi,\n lo\n ];\n }\n var D = b * b - a * c, E = b * b + a * c;\n if (abs(D) * 3 < E) {\n var ad = split(a), bd = split(b), cd = split(c), p = b * b, dp = bd[0] * bd[0] - p + 2 * bd[0] * bd[1] + bd[1] * bd[1], q = a * c, dq = ad[0] * cd[0] - q + ad[0] * cd[1] + ad[1] * cd[0] + ad[1] * cd[1];\n D = p - q + (dp - dq);\n }\n return D;\n }\n function getNormalizationFactor() {\n var norm = Math.max.apply(Math, arguments);\n return norm && (norm < 1e-8 || norm > 1e8) ? pow(2, -Math.round(log2(norm))) : 0;\n }\n return {\n EPSILON: EPSILON,\n MACHINE_EPSILON: MACHINE_EPSILON,\n CURVETIME_EPSILON: 1e-8,\n GEOMETRIC_EPSILON: 1e-7,\n TRIGONOMETRIC_EPSILON: 1e-8,\n ANGULAR_EPSILON: 1e-5,\n KAPPA: 4 * (sqrt(2) - 1) / 3,\n isZero: function(val) {\n return val >= -EPSILON && val <= EPSILON;\n },\n isMachineZero: function(val) {\n return val >= -MACHINE_EPSILON && val <= MACHINE_EPSILON;\n },\n clamp: clamp,\n integrate: function(f, a, b, n) {\n var x = abscissas[n - 2], w = weights[n - 2], A = (b - a) * 0.5, B = A + a, i = 0, m = n + 1 >> 1, sum = n & 1 ? w[i++] * f(B) : 0;\n while(i < m){\n var Ax = A * x[i];\n sum += w[i++] * (f(B + Ax) + f(B - Ax));\n }\n return A * sum;\n },\n findRoot: function(f, df, x, a, b, n, tolerance) {\n for(var i = 0; i < n; i++){\n var fx = f(x), dx = fx / df(x), nx = x - dx;\n if (abs(dx) < tolerance) {\n x = nx;\n break;\n }\n if (fx > 0) {\n b = x;\n x = nx <= a ? (a + b) * 0.5 : nx;\n } else {\n a = x;\n x = nx >= b ? (a + b) * 0.5 : nx;\n }\n }\n return clamp(x, a, b);\n },\n solveQuadratic: function(a, b, c, roots, min, max) {\n var x1, x2 = Infinity;\n if (abs(a) < EPSILON) {\n if (abs(b) < EPSILON) return abs(c) < EPSILON ? -1 : 0;\n x1 = -c / b;\n } else {\n b *= -0.5;\n var D = getDiscriminant(a, b, c);\n if (D && abs(D) < MACHINE_EPSILON) {\n var f = getNormalizationFactor(abs(a), abs(b), abs(c));\n if (f) {\n a *= f;\n b *= f;\n c *= f;\n D = getDiscriminant(a, b, c);\n }\n }\n if (D >= -MACHINE_EPSILON) {\n var Q = D < 0 ? 0 : sqrt(D), R = b + (b < 0 ? -Q : Q);\n if (R === 0) {\n x1 = c / a;\n x2 = -x1;\n } else {\n x1 = R / a;\n x2 = c / R;\n }\n }\n }\n var count = 0, boundless = min == null, minB = min - EPSILON, maxB = max + EPSILON;\n if (isFinite(x1) && (boundless || x1 > minB && x1 < maxB)) roots[count++] = boundless ? x1 : clamp(x1, min, max);\n if (x2 !== x1 && isFinite(x2) && (boundless || x2 > minB && x2 < maxB)) roots[count++] = boundless ? x2 : clamp(x2, min, max);\n return count;\n },\n solveCubic: function(a, b, c, d, roots, min, max) {\n var f = getNormalizationFactor(abs(a), abs(b), abs(c), abs(d)), x, b1, c2, qd, q;\n if (f) {\n a *= f;\n b *= f;\n c *= f;\n d *= f;\n }\n function evaluate(x0) {\n x = x0;\n var tmp = a * x;\n b1 = tmp + b;\n c2 = b1 * x + c;\n qd = (tmp + b1) * x + c2;\n q = c2 * x + d;\n }\n if (abs(a) < EPSILON) {\n a = b;\n b1 = c;\n c2 = d;\n x = Infinity;\n } else if (abs(d) < EPSILON) {\n b1 = b;\n c2 = c;\n x = 0;\n } else {\n evaluate(-(b / a) / 3);\n var t = q / a, r = pow(abs(t), 1 / 3), s = t < 0 ? -1 : 1, td = -qd / a, rd = td > 0 ? 1.324717957244746 * Math.max(r, sqrt(td)) : r, x0 = x - s * rd;\n if (x0 !== x) {\n do {\n evaluate(x0);\n x0 = qd === 0 ? x : x - q / qd / (1 + MACHINE_EPSILON);\n }while (s * x0 > s * x);\n if (abs(a) * x * x > abs(d / x)) {\n c2 = -d / x;\n b1 = (c2 - c) / x;\n }\n }\n }\n var count = Numerical.solveQuadratic(a, b1, c2, roots, min, max), boundless = min == null;\n if (isFinite(x) && (count === 0 || count > 0 && x !== roots[0] && x !== roots[1]) && (boundless || x > min - EPSILON && x < max + EPSILON)) roots[count++] = boundless ? x : clamp(x, min, max);\n return count;\n }\n };\n };\n var UID = {\n _id: 1,\n _pools: {},\n get: function(name) {\n if (name) {\n var pool = this._pools[name];\n if (!pool) pool = this._pools[name] = {\n _id: 1\n };\n return pool._id++;\n } else return this._id++;\n }\n };\n var Point = Base.extend({\n _class: \"Point\",\n _readIndex: true,\n initialize: function Point(arg0, arg1) {\n var type = typeof arg0, reading = this.__read, read = 0;\n if (type === \"number\") {\n var hasY = typeof arg1 === \"number\";\n this._set(arg0, hasY ? arg1 : arg0);\n if (reading) read = hasY ? 2 : 1;\n } else if (type === \"undefined\" || arg0 === null) {\n this._set(0, 0);\n if (reading) read = arg0 === null ? 1 : 0;\n } else {\n var obj = type === \"string\" ? arg0.split(/[\\s,]+/) || [] : arg0;\n read = 1;\n if (Array.isArray(obj)) this._set(+obj[0], +(obj.length > 1 ? obj[1] : obj[0]));\n else if (\"x\" in obj) this._set(obj.x || 0, obj.y || 0);\n else if (\"width\" in obj) this._set(obj.width || 0, obj.height || 0);\n else if (\"angle\" in obj) {\n this._set(obj.length || 0, 0);\n this.setAngle(obj.angle || 0);\n } else {\n this._set(0, 0);\n read = 0;\n }\n }\n if (reading) this.__read = read;\n return this;\n },\n set: \"#initialize\",\n _set: function(x, y) {\n this.x = x;\n this.y = y;\n return this;\n },\n equals: function(point) {\n return this === point || point && (this.x === point.x && this.y === point.y || Array.isArray(point) && this.x === point[0] && this.y === point[1]) || false;\n },\n clone: function() {\n return new Point(this.x, this.y);\n },\n toString: function() {\n var f = Formatter.instance;\n return \"{ x: \" + f.number(this.x) + \", y: \" + f.number(this.y) + \" }\";\n },\n _serialize: function(options) {\n var f = options.formatter;\n return [\n f.number(this.x),\n f.number(this.y)\n ];\n },\n getLength: function() {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n },\n setLength: function(length) {\n if (this.isZero()) {\n var angle = this._angle || 0;\n this._set(Math.cos(angle) * length, Math.sin(angle) * length);\n } else {\n var scale = length / this.getLength();\n if (Numerical.isZero(scale)) this.getAngle();\n this._set(this.x * scale, this.y * scale);\n }\n },\n getAngle: function() {\n return this.getAngleInRadians.apply(this, arguments) * 180 / Math.PI;\n },\n setAngle: function(angle) {\n this.setAngleInRadians.call(this, angle * Math.PI / 180);\n },\n getAngleInDegrees: \"#getAngle\",\n setAngleInDegrees: \"#setAngle\",\n getAngleInRadians: function() {\n if (!arguments.length) return this.isZero() ? this._angle || 0 : this._angle = Math.atan2(this.y, this.x);\n else {\n var point = Point.read(arguments), div = this.getLength() * point.getLength();\n if (Numerical.isZero(div)) return NaN;\n else {\n var a = this.dot(point) / div;\n return Math.acos(a < -1 ? -1 : a > 1 ? 1 : a);\n }\n }\n },\n setAngleInRadians: function(angle) {\n this._angle = angle;\n if (!this.isZero()) {\n var length = this.getLength();\n this._set(Math.cos(angle) * length, Math.sin(angle) * length);\n }\n },\n getQuadrant: function() {\n return this.x >= 0 ? this.y >= 0 ? 1 : 4 : this.y >= 0 ? 2 : 3;\n }\n }, {\n beans: false,\n getDirectedAngle: function() {\n var point = Point.read(arguments);\n return Math.atan2(this.cross(point), this.dot(point)) * 180 / Math.PI;\n },\n getDistance: function() {\n var args = arguments, point = Point.read(args), x = point.x - this.x, y = point.y - this.y, d = x * x + y * y, squared = Base.read(args);\n return squared ? d : Math.sqrt(d);\n },\n normalize: function(length) {\n if (length === undefined) length = 1;\n var current = this.getLength(), scale = current !== 0 ? length / current : 0, point = new Point(this.x * scale, this.y * scale);\n if (scale >= 0) point._angle = this._angle;\n return point;\n },\n rotate: function(angle, center) {\n if (angle === 0) return this.clone();\n angle = angle * Math.PI / 180;\n var point = center ? this.subtract(center) : this, sin = Math.sin(angle), cos = Math.cos(angle);\n point = new Point(point.x * cos - point.y * sin, point.x * sin + point.y * cos);\n return center ? point.add(center) : point;\n },\n transform: function(matrix) {\n return matrix ? matrix._transformPoint(this) : this;\n },\n add: function() {\n var point = Point.read(arguments);\n return new Point(this.x + point.x, this.y + point.y);\n },\n subtract: function() {\n var point = Point.read(arguments);\n return new Point(this.x - point.x, this.y - point.y);\n },\n multiply: function() {\n var point = Point.read(arguments);\n return new Point(this.x * point.x, this.y * point.y);\n },\n divide: function() {\n var point = Point.read(arguments);\n return new Point(this.x / point.x, this.y / point.y);\n },\n modulo: function() {\n var point = Point.read(arguments);\n return new Point(this.x % point.x, this.y % point.y);\n },\n negate: function() {\n return new Point(-this.x, -this.y);\n },\n isInside: function() {\n return Rectangle.read(arguments).contains(this);\n },\n isClose: function() {\n var args = arguments, point = Point.read(args), tolerance = Base.read(args);\n return this.getDistance(point) <= tolerance;\n },\n isCollinear: function() {\n var point = Point.read(arguments);\n return Point.isCollinear(this.x, this.y, point.x, point.y);\n },\n isColinear: \"#isCollinear\",\n isOrthogonal: function() {\n var point = Point.read(arguments);\n return Point.isOrthogonal(this.x, this.y, point.x, point.y);\n },\n isZero: function() {\n var isZero = Numerical.isZero;\n return isZero(this.x) && isZero(this.y);\n },\n isNaN: function() {\n return isNaN(this.x) || isNaN(this.y);\n },\n isInQuadrant: function(q) {\n return this.x * (q > 1 && q < 4 ? -1 : 1) >= 0 && this.y * (q > 2 ? -1 : 1) >= 0;\n },\n dot: function() {\n var point = Point.read(arguments);\n return this.x * point.x + this.y * point.y;\n },\n cross: function() {\n var point = Point.read(arguments);\n return this.x * point.y - this.y * point.x;\n },\n project: function() {\n var point = Point.read(arguments), scale = point.isZero() ? 0 : this.dot(point) / point.dot(point);\n return new Point(point.x * scale, point.y * scale);\n },\n statics: {\n min: function() {\n var args = arguments, point1 = Point.read(args), point2 = Point.read(args);\n return new Point(Math.min(point1.x, point2.x), Math.min(point1.y, point2.y));\n },\n max: function() {\n var args = arguments, point1 = Point.read(args), point2 = Point.read(args);\n return new Point(Math.max(point1.x, point2.x), Math.max(point1.y, point2.y));\n },\n random: function() {\n return new Point(Math.random(), Math.random());\n },\n isCollinear: function(x1, y1, x2, y2) {\n return Math.abs(x1 * y2 - y1 * x2) <= Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2)) * 1e-8;\n },\n isOrthogonal: function(x1, y1, x2, y2) {\n return Math.abs(x1 * x2 + y1 * y2) <= Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2)) * 1e-8;\n }\n }\n }, Base.each([\n \"round\",\n \"ceil\",\n \"floor\",\n \"abs\"\n ], function(key) {\n var op = Math[key];\n this[key] = function() {\n return new Point(op(this.x), op(this.y));\n };\n }, {}));\n var LinkedPoint = Point.extend({\n initialize: function Point(x, y, owner, setter) {\n this._x = x;\n this._y = y;\n this._owner = owner;\n this._setter = setter;\n },\n _set: function(x, y, _dontNotify) {\n this._x = x;\n this._y = y;\n if (!_dontNotify) this._owner[this._setter](this);\n return this;\n },\n getX: function() {\n return this._x;\n },\n setX: function(x) {\n this._x = x;\n this._owner[this._setter](this);\n },\n getY: function() {\n return this._y;\n },\n setY: function(y) {\n this._y = y;\n this._owner[this._setter](this);\n },\n isSelected: function() {\n return !!(this._owner._selection & this._getSelection());\n },\n setSelected: function(selected) {\n this._owner._changeSelection(this._getSelection(), selected);\n },\n _getSelection: function() {\n return this._setter === \"setPosition\" ? 4 : 0;\n }\n });\n var Size = Base.extend({\n _class: \"Size\",\n _readIndex: true,\n initialize: function Size(arg0, arg1) {\n var type = typeof arg0, reading = this.__read, read = 0;\n if (type === \"number\") {\n var hasHeight = typeof arg1 === \"number\";\n this._set(arg0, hasHeight ? arg1 : arg0);\n if (reading) read = hasHeight ? 2 : 1;\n } else if (type === \"undefined\" || arg0 === null) {\n this._set(0, 0);\n if (reading) read = arg0 === null ? 1 : 0;\n } else {\n var obj = type === \"string\" ? arg0.split(/[\\s,]+/) || [] : arg0;\n read = 1;\n if (Array.isArray(obj)) this._set(+obj[0], +(obj.length > 1 ? obj[1] : obj[0]));\n else if (\"width\" in obj) this._set(obj.width || 0, obj.height || 0);\n else if (\"x\" in obj) this._set(obj.x || 0, obj.y || 0);\n else {\n this._set(0, 0);\n read = 0;\n }\n }\n if (reading) this.__read = read;\n return this;\n },\n set: \"#initialize\",\n _set: function(width, height) {\n this.width = width;\n this.height = height;\n return this;\n },\n equals: function(size) {\n return size === this || size && (this.width === size.width && this.height === size.height || Array.isArray(size) && this.width === size[0] && this.height === size[1]) || false;\n },\n clone: function() {\n return new Size(this.width, this.height);\n },\n toString: function() {\n var f = Formatter.instance;\n return \"{ width: \" + f.number(this.width) + \", height: \" + f.number(this.height) + \" }\";\n },\n _serialize: function(options) {\n var f = options.formatter;\n return [\n f.number(this.width),\n f.number(this.height)\n ];\n },\n add: function() {\n var size = Size.read(arguments);\n return new Size(this.width + size.width, this.height + size.height);\n },\n subtract: function() {\n var size = Size.read(arguments);\n return new Size(this.width - size.width, this.height - size.height);\n },\n multiply: function() {\n var size = Size.read(arguments);\n return new Size(this.width * size.width, this.height * size.height);\n },\n divide: function() {\n var size = Size.read(arguments);\n return new Size(this.width / size.width, this.height / size.height);\n },\n modulo: function() {\n var size = Size.read(arguments);\n return new Size(this.width % size.width, this.height % size.height);\n },\n negate: function() {\n return new Size(-this.width, -this.height);\n },\n isZero: function() {\n var isZero = Numerical.isZero;\n return isZero(this.width) && isZero(this.height);\n },\n isNaN: function() {\n return isNaN(this.width) || isNaN(this.height);\n },\n statics: {\n min: function(size1, size2) {\n return new Size(Math.min(size1.width, size2.width), Math.min(size1.height, size2.height));\n },\n max: function(size1, size2) {\n return new Size(Math.max(size1.width, size2.width), Math.max(size1.height, size2.height));\n },\n random: function() {\n return new Size(Math.random(), Math.random());\n }\n }\n }, Base.each([\n \"round\",\n \"ceil\",\n \"floor\",\n \"abs\"\n ], function(key) {\n var op = Math[key];\n this[key] = function() {\n return new Size(op(this.width), op(this.height));\n };\n }, {}));\n var LinkedSize = Size.extend({\n initialize: function Size(width, height, owner, setter) {\n this._width = width;\n this._height = height;\n this._owner = owner;\n this._setter = setter;\n },\n _set: function(width, height, _dontNotify) {\n this._width = width;\n this._height = height;\n if (!_dontNotify) this._owner[this._setter](this);\n return this;\n },\n getWidth: function() {\n return this._width;\n },\n setWidth: function(width) {\n this._width = width;\n this._owner[this._setter](this);\n },\n getHeight: function() {\n return this._height;\n },\n setHeight: function(height) {\n this._height = height;\n this._owner[this._setter](this);\n }\n });\n var Rectangle = Base.extend({\n _class: \"Rectangle\",\n _readIndex: true,\n beans: true,\n initialize: function Rectangle(arg0, arg1, arg2, arg3) {\n var args = arguments, type = typeof arg0, read;\n if (type === \"number\") {\n this._set(arg0, arg1, arg2, arg3);\n read = 4;\n } else if (type === \"undefined\" || arg0 === null) {\n this._set(0, 0, 0, 0);\n read = arg0 === null ? 1 : 0;\n } else if (args.length === 1) {\n if (Array.isArray(arg0)) {\n this._set.apply(this, arg0);\n read = 1;\n } else if (arg0.x !== undefined || arg0.width !== undefined) {\n this._set(arg0.x || 0, arg0.y || 0, arg0.width || 0, arg0.height || 0);\n read = 1;\n } else if (arg0.from === undefined && arg0.to === undefined) {\n this._set(0, 0, 0, 0);\n if (Base.readSupported(args, this)) read = 1;\n }\n }\n if (read === undefined) {\n var frm = Point.readNamed(args, \"from\"), next = Base.peek(args), x = frm.x, y = frm.y, width, height;\n if (next && next.x !== undefined || Base.hasNamed(args, \"to\")) {\n var to = Point.readNamed(args, \"to\");\n width = to.x - x;\n height = to.y - y;\n if (width < 0) {\n x = to.x;\n width = -width;\n }\n if (height < 0) {\n y = to.y;\n height = -height;\n }\n } else {\n var size = Size.read(args);\n width = size.width;\n height = size.height;\n }\n this._set(x, y, width, height);\n read = args.__index;\n }\n var filtered = args.__filtered;\n if (filtered) this.__filtered = filtered;\n if (this.__read) this.__read = read;\n return this;\n },\n set: \"#initialize\",\n _set: function(x, y, width, height) {\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n return this;\n },\n clone: function() {\n return new Rectangle(this.x, this.y, this.width, this.height);\n },\n equals: function(rect) {\n var rt = Base.isPlainValue(rect) ? Rectangle.read(arguments) : rect;\n return rt === this || rt && this.x === rt.x && this.y === rt.y && this.width === rt.width && this.height === rt.height || false;\n },\n toString: function() {\n var f = Formatter.instance;\n return \"{ x: \" + f.number(this.x) + \", y: \" + f.number(this.y) + \", width: \" + f.number(this.width) + \", height: \" + f.number(this.height) + \" }\";\n },\n _serialize: function(options) {\n var f = options.formatter;\n return [\n f.number(this.x),\n f.number(this.y),\n f.number(this.width),\n f.number(this.height)\n ];\n },\n getPoint: function(_dontLink) {\n var ctor = _dontLink ? Point : LinkedPoint;\n return new ctor(this.x, this.y, this, \"setPoint\");\n },\n setPoint: function() {\n var point = Point.read(arguments);\n this.x = point.x;\n this.y = point.y;\n },\n getSize: function(_dontLink) {\n var ctor = _dontLink ? Size : LinkedSize;\n return new ctor(this.width, this.height, this, \"setSize\");\n },\n _fw: 1,\n _fh: 1,\n setSize: function() {\n var size = Size.read(arguments), sx = this._sx, sy = this._sy, w = size.width, h = size.height;\n if (sx) this.x += (this.width - w) * sx;\n if (sy) this.y += (this.height - h) * sy;\n this.width = w;\n this.height = h;\n this._fw = this._fh = 1;\n },\n getLeft: function() {\n return this.x;\n },\n setLeft: function(left) {\n if (!this._fw) {\n var amount = left - this.x;\n this.width -= this._sx === 0.5 ? amount * 2 : amount;\n }\n this.x = left;\n this._sx = this._fw = 0;\n },\n getTop: function() {\n return this.y;\n },\n setTop: function(top) {\n if (!this._fh) {\n var amount = top - this.y;\n this.height -= this._sy === 0.5 ? amount * 2 : amount;\n }\n this.y = top;\n this._sy = this._fh = 0;\n },\n getRight: function() {\n return this.x + this.width;\n },\n setRight: function(right) {\n if (!this._fw) {\n var amount = right - this.x;\n this.width = this._sx === 0.5 ? amount * 2 : amount;\n }\n this.x = right - this.width;\n this._sx = 1;\n this._fw = 0;\n },\n getBottom: function() {\n return this.y + this.height;\n },\n setBottom: function(bottom) {\n if (!this._fh) {\n var amount = bottom - this.y;\n this.height = this._sy === 0.5 ? amount * 2 : amount;\n }\n this.y = bottom - this.height;\n this._sy = 1;\n this._fh = 0;\n },\n getCenterX: function() {\n return this.x + this.width / 2;\n },\n setCenterX: function(x) {\n if (this._fw || this._sx === 0.5) this.x = x - this.width / 2;\n else {\n if (this._sx) this.x += (x - this.x) * 2 * this._sx;\n this.width = (x - this.x) * 2;\n }\n this._sx = 0.5;\n this._fw = 0;\n },\n getCenterY: function() {\n return this.y + this.height / 2;\n },\n setCenterY: function(y) {\n if (this._fh || this._sy === 0.5) this.y = y - this.height / 2;\n else {\n if (this._sy) this.y += (y - this.y) * 2 * this._sy;\n this.height = (y - this.y) * 2;\n }\n this._sy = 0.5;\n this._fh = 0;\n },\n getCenter: function(_dontLink) {\n var ctor = _dontLink ? Point : LinkedPoint;\n return new ctor(this.getCenterX(), this.getCenterY(), this, \"setCenter\");\n },\n setCenter: function() {\n var point = Point.read(arguments);\n this.setCenterX(point.x);\n this.setCenterY(point.y);\n return this;\n },\n getArea: function() {\n return this.width * this.height;\n },\n isEmpty: function() {\n return this.width === 0 || this.height === 0;\n },\n contains: function(arg) {\n return arg && arg.width !== undefined || (Array.isArray(arg) ? arg : arguments).length === 4 ? this._containsRectangle(Rectangle.read(arguments)) : this._containsPoint(Point.read(arguments));\n },\n _containsPoint: function(point) {\n var x = point.x, y = point.y;\n return x >= this.x && y >= this.y && x <= this.x + this.width && y <= this.y + this.height;\n },\n _containsRectangle: function(rect) {\n var x = rect.x, y = rect.y;\n return x >= this.x && y >= this.y && x + rect.width <= this.x + this.width && y + rect.height <= this.y + this.height;\n },\n intersects: function() {\n var rect = Rectangle.read(arguments), epsilon = Base.read(arguments) || 0;\n return rect.x + rect.width > this.x - epsilon && rect.y + rect.height > this.y - epsilon && rect.x < this.x + this.width + epsilon && rect.y < this.y + this.height + epsilon;\n },\n intersect: function() {\n var rect = Rectangle.read(arguments), x1 = Math.max(this.x, rect.x), y1 = Math.max(this.y, rect.y), x2 = Math.min(this.x + this.width, rect.x + rect.width), y2 = Math.min(this.y + this.height, rect.y + rect.height);\n return new Rectangle(x1, y1, x2 - x1, y2 - y1);\n },\n unite: function() {\n var rect = Rectangle.read(arguments), x1 = Math.min(this.x, rect.x), y1 = Math.min(this.y, rect.y), x2 = Math.max(this.x + this.width, rect.x + rect.width), y2 = Math.max(this.y + this.height, rect.y + rect.height);\n return new Rectangle(x1, y1, x2 - x1, y2 - y1);\n },\n include: function() {\n var point = Point.read(arguments);\n var x1 = Math.min(this.x, point.x), y1 = Math.min(this.y, point.y), x2 = Math.max(this.x + this.width, point.x), y2 = Math.max(this.y + this.height, point.y);\n return new Rectangle(x1, y1, x2 - x1, y2 - y1);\n },\n expand: function() {\n var amount = Size.read(arguments), hor = amount.width, ver = amount.height;\n return new Rectangle(this.x - hor / 2, this.y - ver / 2, this.width + hor, this.height + ver);\n },\n scale: function(hor, ver) {\n return this.expand(this.width * hor - this.width, this.height * (ver === undefined ? hor : ver) - this.height);\n }\n }, Base.each([\n [\n \"Top\",\n \"Left\"\n ],\n [\n \"Top\",\n \"Right\"\n ],\n [\n \"Bottom\",\n \"Left\"\n ],\n [\n \"Bottom\",\n \"Right\"\n ],\n [\n \"Left\",\n \"Center\"\n ],\n [\n \"Top\",\n \"Center\"\n ],\n [\n \"Right\",\n \"Center\"\n ],\n [\n \"Bottom\",\n \"Center\"\n ]\n ], function(parts, index) {\n var part = parts.join(\"\"), xFirst = /^[RL]/.test(part);\n if (index >= 4) parts[1] += xFirst ? \"Y\" : \"X\";\n var x = parts[xFirst ? 0 : 1], y = parts[xFirst ? 1 : 0], getX = \"get\" + x, getY = \"get\" + y, setX = \"set\" + x, setY = \"set\" + y, get = \"get\" + part, set = \"set\" + part;\n this[get] = function(_dontLink) {\n var ctor = _dontLink ? Point : LinkedPoint;\n return new ctor(this[getX](), this[getY](), this, set);\n };\n this[set] = function() {\n var point = Point.read(arguments);\n this[setX](point.x);\n this[setY](point.y);\n };\n }, {\n beans: true\n }));\n var LinkedRectangle = Rectangle.extend({\n initialize: function Rectangle(x, y, width, height, owner, setter) {\n this._set(x, y, width, height, true);\n this._owner = owner;\n this._setter = setter;\n },\n _set: function(x, y, width, height, _dontNotify) {\n this._x = x;\n this._y = y;\n this._width = width;\n this._height = height;\n if (!_dontNotify) this._owner[this._setter](this);\n return this;\n }\n }, new function() {\n var proto = Rectangle.prototype;\n return Base.each([\n \"x\",\n \"y\",\n \"width\",\n \"height\"\n ], function(key) {\n var part = Base.capitalize(key), internal = \"_\" + key;\n this[\"get\" + part] = function() {\n return this[internal];\n };\n this[\"set\" + part] = function(value) {\n this[internal] = value;\n if (!this._dontNotify) this._owner[this._setter](this);\n };\n }, Base.each([\n \"Point\",\n \"Size\",\n \"Center\",\n \"Left\",\n \"Top\",\n \"Right\",\n \"Bottom\",\n \"CenterX\",\n \"CenterY\",\n \"TopLeft\",\n \"TopRight\",\n \"BottomLeft\",\n \"BottomRight\",\n \"LeftCenter\",\n \"TopCenter\",\n \"RightCenter\",\n \"BottomCenter\"\n ], function(key) {\n var name = \"set\" + key;\n this[name] = function() {\n this._dontNotify = true;\n proto[name].apply(this, arguments);\n this._dontNotify = false;\n this._owner[this._setter](this);\n };\n }, {\n isSelected: function() {\n return !!(this._owner._selection & 2);\n },\n setSelected: function(selected) {\n var owner = this._owner;\n if (owner._changeSelection) owner._changeSelection(2, selected);\n }\n }));\n });\n var Matrix = Base.extend({\n _class: \"Matrix\",\n initialize: function Matrix(arg, _dontNotify) {\n var args = arguments, count = args.length, ok = true;\n if (count >= 6) this._set.apply(this, args);\n else if (count === 1 || count === 2) {\n if (arg instanceof Matrix) this._set(arg._a, arg._b, arg._c, arg._d, arg._tx, arg._ty, _dontNotify);\n else if (Array.isArray(arg)) this._set.apply(this, _dontNotify ? arg.concat([\n _dontNotify\n ]) : arg);\n else ok = false;\n } else if (!count) this.reset();\n else ok = false;\n if (!ok) throw new Error(\"Unsupported matrix parameters\");\n return this;\n },\n set: \"#initialize\",\n _set: function(a, b, c, d, tx, ty, _dontNotify) {\n this._a = a;\n this._b = b;\n this._c = c;\n this._d = d;\n this._tx = tx;\n this._ty = ty;\n if (!_dontNotify) this._changed();\n return this;\n },\n _serialize: function(options, dictionary) {\n return Base.serialize(this.getValues(), options, true, dictionary);\n },\n _changed: function() {\n var owner = this._owner;\n if (owner) {\n if (owner._applyMatrix) owner.transform(null, true);\n else owner._changed(25);\n }\n },\n clone: function() {\n return new Matrix(this._a, this._b, this._c, this._d, this._tx, this._ty);\n },\n equals: function(mx) {\n return mx === this || mx && this._a === mx._a && this._b === mx._b && this._c === mx._c && this._d === mx._d && this._tx === mx._tx && this._ty === mx._ty;\n },\n toString: function() {\n var f = Formatter.instance;\n return \"[[\" + [\n f.number(this._a),\n f.number(this._c),\n f.number(this._tx)\n ].join(\", \") + \"], [\" + [\n f.number(this._b),\n f.number(this._d),\n f.number(this._ty)\n ].join(\", \") + \"]]\";\n },\n reset: function(_dontNotify) {\n this._a = this._d = 1;\n this._b = this._c = this._tx = this._ty = 0;\n if (!_dontNotify) this._changed();\n return this;\n },\n apply: function(recursively, _setApplyMatrix) {\n var owner = this._owner;\n if (owner) {\n owner.transform(null, Base.pick(recursively, true), _setApplyMatrix);\n return this.isIdentity();\n }\n return false;\n },\n translate: function() {\n var point = Point.read(arguments), x = point.x, y = point.y;\n this._tx += x * this._a + y * this._c;\n this._ty += x * this._b + y * this._d;\n this._changed();\n return this;\n },\n scale: function() {\n var args = arguments, scale = Point.read(args), center = Point.read(args, 0, {\n readNull: true\n });\n if (center) this.translate(center);\n this._a *= scale.x;\n this._b *= scale.x;\n this._c *= scale.y;\n this._d *= scale.y;\n if (center) this.translate(center.negate());\n this._changed();\n return this;\n },\n rotate: function(angle) {\n angle *= Math.PI / 180;\n var center = Point.read(arguments, 1), x = center.x, y = center.y, cos = Math.cos(angle), sin = Math.sin(angle), tx = x - x * cos + y * sin, ty = y - x * sin - y * cos, a = this._a, b = this._b, c = this._c, d = this._d;\n this._a = cos * a + sin * c;\n this._b = cos * b + sin * d;\n this._c = -sin * a + cos * c;\n this._d = -sin * b + cos * d;\n this._tx += tx * a + ty * c;\n this._ty += tx * b + ty * d;\n this._changed();\n return this;\n },\n shear: function() {\n var args = arguments, shear = Point.read(args), center = Point.read(args, 0, {\n readNull: true\n });\n if (center) this.translate(center);\n var a = this._a, b = this._b;\n this._a += shear.y * this._c;\n this._b += shear.y * this._d;\n this._c += shear.x * a;\n this._d += shear.x * b;\n if (center) this.translate(center.negate());\n this._changed();\n return this;\n },\n skew: function() {\n var args = arguments, skew = Point.read(args), center = Point.read(args, 0, {\n readNull: true\n }), toRadians = Math.PI / 180, shear = new Point(Math.tan(skew.x * toRadians), Math.tan(skew.y * toRadians));\n return this.shear(shear, center);\n },\n append: function(mx, _dontNotify) {\n if (mx) {\n var a1 = this._a, b1 = this._b, c1 = this._c, d1 = this._d, a2 = mx._a, b2 = mx._c, c2 = mx._b, d2 = mx._d, tx2 = mx._tx, ty2 = mx._ty;\n this._a = a2 * a1 + c2 * c1;\n this._c = b2 * a1 + d2 * c1;\n this._b = a2 * b1 + c2 * d1;\n this._d = b2 * b1 + d2 * d1;\n this._tx += tx2 * a1 + ty2 * c1;\n this._ty += tx2 * b1 + ty2 * d1;\n if (!_dontNotify) this._changed();\n }\n return this;\n },\n prepend: function(mx, _dontNotify) {\n if (mx) {\n var a1 = this._a, b1 = this._b, c1 = this._c, d1 = this._d, tx1 = this._tx, ty1 = this._ty, a2 = mx._a, b2 = mx._c, c2 = mx._b, d2 = mx._d, tx2 = mx._tx, ty2 = mx._ty;\n this._a = a2 * a1 + b2 * b1;\n this._c = a2 * c1 + b2 * d1;\n this._b = c2 * a1 + d2 * b1;\n this._d = c2 * c1 + d2 * d1;\n this._tx = a2 * tx1 + b2 * ty1 + tx2;\n this._ty = c2 * tx1 + d2 * ty1 + ty2;\n if (!_dontNotify) this._changed();\n }\n return this;\n },\n appended: function(mx) {\n return this.clone().append(mx);\n },\n prepended: function(mx) {\n return this.clone().prepend(mx);\n },\n invert: function() {\n var a = this._a, b = this._b, c = this._c, d = this._d, tx = this._tx, ty = this._ty, det = a * d - b * c, res = null;\n if (det && !isNaN(det) && isFinite(tx) && isFinite(ty)) {\n this._a = d / det;\n this._b = -b / det;\n this._c = -c / det;\n this._d = a / det;\n this._tx = (c * ty - d * tx) / det;\n this._ty = (b * tx - a * ty) / det;\n res = this;\n }\n return res;\n },\n inverted: function() {\n return this.clone().invert();\n },\n concatenate: \"#append\",\n preConcatenate: \"#prepend\",\n chain: \"#appended\",\n _shiftless: function() {\n return new Matrix(this._a, this._b, this._c, this._d, 0, 0);\n },\n _orNullIfIdentity: function() {\n return this.isIdentity() ? null : this;\n },\n isIdentity: function() {\n return this._a === 1 && this._b === 0 && this._c === 0 && this._d === 1 && this._tx === 0 && this._ty === 0;\n },\n isInvertible: function() {\n var det = this._a * this._d - this._c * this._b;\n return det && !isNaN(det) && isFinite(this._tx) && isFinite(this._ty);\n },\n isSingular: function() {\n return !this.isInvertible();\n },\n transform: function(src, dst, count) {\n return arguments.length < 3 ? this._transformPoint(Point.read(arguments)) : this._transformCoordinates(src, dst, count);\n },\n _transformPoint: function(point, dest, _dontNotify) {\n var x = point.x, y = point.y;\n if (!dest) dest = new Point();\n return dest._set(x * this._a + y * this._c + this._tx, x * this._b + y * this._d + this._ty, _dontNotify);\n },\n _transformCoordinates: function(src, dst, count) {\n for(var i = 0, max = 2 * count; i < max; i += 2){\n var x = src[i], y = src[i + 1];\n dst[i] = x * this._a + y * this._c + this._tx;\n dst[i + 1] = x * this._b + y * this._d + this._ty;\n }\n return dst;\n },\n _transformCorners: function(rect) {\n var x1 = rect.x, y1 = rect.y, x2 = x1 + rect.width, y2 = y1 + rect.height, coords = [\n x1,\n y1,\n x2,\n y1,\n x2,\n y2,\n x1,\n y2\n ];\n return this._transformCoordinates(coords, coords, 4);\n },\n _transformBounds: function(bounds, dest, _dontNotify) {\n var coords = this._transformCorners(bounds), min = coords.slice(0, 2), max = min.slice();\n for(var i = 2; i < 8; i++){\n var val = coords[i], j = i & 1;\n if (val < min[j]) min[j] = val;\n else if (val > max[j]) max[j] = val;\n }\n if (!dest) dest = new Rectangle();\n return dest._set(min[0], min[1], max[0] - min[0], max[1] - min[1], _dontNotify);\n },\n inverseTransform: function() {\n return this._inverseTransform(Point.read(arguments));\n },\n _inverseTransform: function(point, dest, _dontNotify) {\n var a = this._a, b = this._b, c = this._c, d = this._d, tx = this._tx, ty = this._ty, det = a * d - b * c, res = null;\n if (det && !isNaN(det) && isFinite(tx) && isFinite(ty)) {\n var x = point.x - this._tx, y = point.y - this._ty;\n if (!dest) dest = new Point();\n res = dest._set((x * d - y * c) / det, (y * a - x * b) / det, _dontNotify);\n }\n return res;\n },\n decompose: function() {\n var a = this._a, b = this._b, c = this._c, d = this._d, det = a * d - b * c, sqrt = Math.sqrt, atan2 = Math.atan2, degrees = 180 / Math.PI, rotate, scale, skew;\n if (a !== 0 || b !== 0) {\n var r = sqrt(a * a + b * b);\n rotate = Math.acos(a / r) * (b > 0 ? 1 : -1);\n scale = [\n r,\n det / r\n ];\n skew = [\n atan2(a * c + b * d, r * r),\n 0\n ];\n } else if (c !== 0 || d !== 0) {\n var s = sqrt(c * c + d * d);\n rotate = Math.asin(c / s) * (d > 0 ? 1 : -1);\n scale = [\n det / s,\n s\n ];\n skew = [\n 0,\n atan2(a * c + b * d, s * s)\n ];\n } else {\n rotate = 0;\n skew = scale = [\n 0,\n 0\n ];\n }\n return {\n translation: this.getTranslation(),\n rotation: rotate * degrees,\n scaling: new Point(scale),\n skewing: new Point(skew[0] * degrees, skew[1] * degrees)\n };\n },\n getValues: function() {\n return [\n this._a,\n this._b,\n this._c,\n this._d,\n this._tx,\n this._ty\n ];\n },\n getTranslation: function() {\n return new Point(this._tx, this._ty);\n },\n getScaling: function() {\n return this.decompose().scaling;\n },\n getRotation: function() {\n return this.decompose().rotation;\n },\n applyToContext: function(ctx) {\n if (!this.isIdentity()) ctx.transform(this._a, this._b, this._c, this._d, this._tx, this._ty);\n }\n }, Base.each([\n \"a\",\n \"b\",\n \"c\",\n \"d\",\n \"tx\",\n \"ty\"\n ], function(key) {\n var part = Base.capitalize(key), prop = \"_\" + key;\n this[\"get\" + part] = function() {\n return this[prop];\n };\n this[\"set\" + part] = function(value) {\n this[prop] = value;\n this._changed();\n };\n }, {}));\n var Line = Base.extend({\n _class: \"Line\",\n initialize: function Line(arg0, arg1, arg2, arg3, arg4) {\n var asVector = false;\n if (arguments.length >= 4) {\n this._px = arg0;\n this._py = arg1;\n this._vx = arg2;\n this._vy = arg3;\n asVector = arg4;\n } else {\n this._px = arg0.x;\n this._py = arg0.y;\n this._vx = arg1.x;\n this._vy = arg1.y;\n asVector = arg2;\n }\n if (!asVector) {\n this._vx -= this._px;\n this._vy -= this._py;\n }\n },\n getPoint: function() {\n return new Point(this._px, this._py);\n },\n getVector: function() {\n return new Point(this._vx, this._vy);\n },\n getLength: function() {\n return this.getVector().getLength();\n },\n intersect: function(line, isInfinite) {\n return Line.intersect(this._px, this._py, this._vx, this._vy, line._px, line._py, line._vx, line._vy, true, isInfinite);\n },\n getSide: function(point, isInfinite) {\n return Line.getSide(this._px, this._py, this._vx, this._vy, point.x, point.y, true, isInfinite);\n },\n getDistance: function(point) {\n return Math.abs(this.getSignedDistance(point));\n },\n getSignedDistance: function(point) {\n return Line.getSignedDistance(this._px, this._py, this._vx, this._vy, point.x, point.y, true);\n },\n isCollinear: function(line) {\n return Point.isCollinear(this._vx, this._vy, line._vx, line._vy);\n },\n isOrthogonal: function(line) {\n return Point.isOrthogonal(this._vx, this._vy, line._vx, line._vy);\n },\n statics: {\n intersect: function(p1x, p1y, v1x, v1y, p2x, p2y, v2x, v2y, asVector, isInfinite) {\n if (!asVector) {\n v1x -= p1x;\n v1y -= p1y;\n v2x -= p2x;\n v2y -= p2y;\n }\n var cross = v1x * v2y - v1y * v2x;\n if (!Numerical.isMachineZero(cross)) {\n var dx = p1x - p2x, dy = p1y - p2y, u1 = (v2x * dy - v2y * dx) / cross, u2 = (v1x * dy - v1y * dx) / cross, epsilon = 1e-12, uMin = -epsilon, uMax = 1 + epsilon;\n if (isInfinite || uMin < u1 && u1 < uMax && uMin < u2 && u2 < uMax) {\n if (!isInfinite) u1 = u1 <= 0 ? 0 : u1 >= 1 ? 1 : u1;\n return new Point(p1x + u1 * v1x, p1y + u1 * v1y);\n }\n }\n },\n getSide: function(px, py, vx, vy, x, y, asVector, isInfinite) {\n if (!asVector) {\n vx -= px;\n vy -= py;\n }\n var v2x = x - px, v2y = y - py, ccw = v2x * vy - v2y * vx;\n if (!isInfinite && Numerical.isMachineZero(ccw)) {\n ccw = (v2x * vx + v2x * vx) / (vx * vx + vy * vy);\n if (ccw >= 0 && ccw <= 1) ccw = 0;\n }\n return ccw < 0 ? -1 : ccw > 0 ? 1 : 0;\n },\n getSignedDistance: function(px, py, vx, vy, x, y, asVector) {\n if (!asVector) {\n vx -= px;\n vy -= py;\n }\n return vx === 0 ? vy > 0 ? x - px : px - x : vy === 0 ? vx < 0 ? y - py : py - y : ((x - px) * vy - (y - py) * vx) / (vy > vx ? vy * Math.sqrt(1 + vx * vx / (vy * vy)) : vx * Math.sqrt(1 + vy * vy / (vx * vx)));\n },\n getDistance: function(px, py, vx, vy, x, y, asVector) {\n return Math.abs(Line.getSignedDistance(px, py, vx, vy, x, y, asVector));\n }\n }\n });\n var Project = PaperScopeItem.extend({\n _class: \"Project\",\n _list: \"projects\",\n _reference: \"project\",\n _compactSerialize: true,\n initialize: function Project(element) {\n PaperScopeItem.call(this, true);\n this._children = [];\n this._namedChildren = {};\n this._activeLayer = null;\n this._currentStyle = new Style(null, null, this);\n this._view = View.create(this, element || CanvasProvider.getCanvas(1, 1));\n this._selectionItems = {};\n this._selectionCount = 0;\n this._updateVersion = 0;\n },\n _serialize: function(options, dictionary) {\n return Base.serialize(this._children, options, true, dictionary);\n },\n _changed: function(flags, item) {\n if (flags & 1) {\n var view = this._view;\n if (view) {\n view._needsUpdate = true;\n if (!view._requested && view._autoUpdate) view.requestUpdate();\n }\n }\n var changes = this._changes;\n if (changes && item) {\n var changesById = this._changesById, id = item._id, entry = changesById[id];\n if (entry) entry.flags |= flags;\n else changes.push(changesById[id] = {\n item: item,\n flags: flags\n });\n }\n },\n clear: function() {\n var children = this._children;\n for(var i = children.length - 1; i >= 0; i--)children[i].remove();\n },\n isEmpty: function() {\n return !this._children.length;\n },\n remove: function remove() {\n if (!remove.base.call(this)) return false;\n if (this._view) this._view.remove();\n return true;\n },\n getView: function() {\n return this._view;\n },\n getCurrentStyle: function() {\n return this._currentStyle;\n },\n setCurrentStyle: function(style) {\n this._currentStyle.set(style);\n },\n getIndex: function() {\n return this._index;\n },\n getOptions: function() {\n return this._scope.settings;\n },\n getLayers: function() {\n return this._children;\n },\n getActiveLayer: function() {\n return this._activeLayer || new Layer({\n project: this,\n insert: true\n });\n },\n getSymbolDefinitions: function() {\n var definitions = [], ids = {};\n this.getItems({\n class: SymbolItem,\n match: function(item) {\n var definition = item._definition, id = definition._id;\n if (!ids[id]) {\n ids[id] = true;\n definitions.push(definition);\n }\n return false;\n }\n });\n return definitions;\n },\n getSymbols: \"getSymbolDefinitions\",\n getSelectedItems: function() {\n var selectionItems = this._selectionItems, items = [];\n for(var id in selectionItems){\n var item = selectionItems[id], selection = item._selection;\n if (selection & 1 && item.isInserted()) items.push(item);\n else if (!selection) this._updateSelection(item);\n }\n return items;\n },\n _updateSelection: function(item) {\n var id = item._id, selectionItems = this._selectionItems;\n if (item._selection) {\n if (selectionItems[id] !== item) {\n this._selectionCount++;\n selectionItems[id] = item;\n }\n } else if (selectionItems[id] === item) {\n this._selectionCount--;\n delete selectionItems[id];\n }\n },\n selectAll: function() {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)children[i].setFullySelected(true);\n },\n deselectAll: function() {\n var selectionItems = this._selectionItems;\n for(var i in selectionItems)selectionItems[i].setFullySelected(false);\n },\n addLayer: function(layer) {\n return this.insertLayer(undefined, layer);\n },\n insertLayer: function(index, layer) {\n if (layer instanceof Layer) {\n layer._remove(false, true);\n Base.splice(this._children, [\n layer\n ], index, 0);\n layer._setProject(this, true);\n var name = layer._name;\n if (name) layer.setName(name);\n if (this._changes) layer._changed(5);\n if (!this._activeLayer) this._activeLayer = layer;\n } else layer = null;\n return layer;\n },\n _insertItem: function(index, item, _created) {\n item = this.insertLayer(index, item) || (this._activeLayer || this._insertItem(undefined, new Layer(Item.NO_INSERT), true)).insertChild(index, item);\n if (_created && item.activate) item.activate();\n return item;\n },\n getItems: function(options) {\n return Item._getItems(this, options);\n },\n getItem: function(options) {\n return Item._getItems(this, options, null, null, true)[0] || null;\n },\n importJSON: function(json) {\n this.activate();\n var layer = this._activeLayer;\n return Base.importJSON(json, layer && layer.isEmpty() && layer);\n },\n removeOn: function(type) {\n var sets = this._removeSets;\n if (sets) {\n if (type === \"mouseup\") sets.mousedrag = null;\n var set = sets[type];\n if (set) {\n for(var id in set){\n var item = set[id];\n for(var key in sets){\n var other = sets[key];\n if (other && other != set) delete other[item._id];\n }\n item.remove();\n }\n sets[type] = null;\n }\n }\n },\n draw: function(ctx, matrix, pixelRatio) {\n this._updateVersion++;\n ctx.save();\n matrix.applyToContext(ctx);\n var children = this._children, param = new Base({\n offset: new Point(0, 0),\n pixelRatio: pixelRatio,\n viewMatrix: matrix.isIdentity() ? null : matrix,\n matrices: [\n new Matrix()\n ],\n updateMatrix: true\n });\n for(var i = 0, l = children.length; i < l; i++)children[i].draw(ctx, param);\n ctx.restore();\n if (this._selectionCount > 0) {\n ctx.save();\n ctx.strokeWidth = 1;\n var items = this._selectionItems, size = this._scope.settings.handleSize, version = this._updateVersion;\n for(var id in items)items[id]._drawSelection(ctx, matrix, size, items, version);\n ctx.restore();\n }\n }\n });\n var Item = Base.extend(Emitter, {\n statics: {\n extend: function extend(src) {\n if (src._serializeFields) src._serializeFields = Base.set({}, this.prototype._serializeFields, src._serializeFields);\n return extend.base.apply(this, arguments);\n },\n INSERT: {\n insert: true\n },\n NO_INSERT: {\n insert: false\n }\n },\n _class: \"Item\",\n _name: null,\n _applyMatrix: true,\n _canApplyMatrix: true,\n _canScaleStroke: false,\n _pivot: null,\n _visible: true,\n _blendMode: \"normal\",\n _opacity: 1,\n _locked: false,\n _guide: false,\n _clipMask: false,\n _selection: 0,\n _selectBounds: true,\n _selectChildren: false,\n _serializeFields: {\n name: null,\n applyMatrix: null,\n matrix: new Matrix(),\n pivot: null,\n visible: true,\n blendMode: \"normal\",\n opacity: 1,\n locked: false,\n guide: false,\n clipMask: false,\n selected: false,\n data: {}\n },\n _prioritize: [\n \"applyMatrix\"\n ]\n }, new function() {\n var handlers = [\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseDrag\",\n \"onClick\",\n \"onDoubleClick\",\n \"onMouseMove\",\n \"onMouseEnter\",\n \"onMouseLeave\"\n ];\n return Base.each(handlers, function(name) {\n this._events[name] = {\n install: function(type) {\n this.getView()._countItemEvent(type, 1);\n },\n uninstall: function(type) {\n this.getView()._countItemEvent(type, -1);\n }\n };\n }, {\n _events: {\n onFrame: {\n install: function() {\n this.getView()._animateItem(this, true);\n },\n uninstall: function() {\n this.getView()._animateItem(this, false);\n }\n },\n onLoad: {},\n onError: {}\n },\n statics: {\n _itemHandlers: handlers\n }\n });\n }, {\n initialize: function Item() {},\n _initialize: function(props, point) {\n var hasProps = props && Base.isPlainObject(props), internal = hasProps && props.internal === true, matrix = this._matrix = new Matrix(), project = hasProps && props.project || paper.project, settings = paper.settings;\n this._id = internal ? null : UID.get();\n this._parent = this._index = null;\n this._applyMatrix = this._canApplyMatrix && settings.applyMatrix;\n if (point) matrix.translate(point);\n matrix._owner = this;\n this._style = new Style(project._currentStyle, this, project);\n if (internal || hasProps && props.insert == false || !settings.insertItems && !(hasProps && props.insert == true)) this._setProject(project);\n else (hasProps && props.parent || project)._insertItem(undefined, this, true);\n if (hasProps && props !== Item.NO_INSERT && props !== Item.INSERT) this.set(props, {\n internal: true,\n insert: true,\n project: true,\n parent: true\n });\n return hasProps;\n },\n _serialize: function(options, dictionary) {\n var props = {}, that = this;\n function serialize(fields) {\n for(var key in fields){\n var value = that[key];\n if (!Base.equals(value, key === \"leading\" ? fields.fontSize * 1.2 : fields[key])) props[key] = Base.serialize(value, options, key !== \"data\", dictionary);\n }\n }\n serialize(this._serializeFields);\n if (!(this instanceof Group)) serialize(this._style._defaults);\n return [\n this._class,\n props\n ];\n },\n _changed: function(flags) {\n var symbol = this._symbol, cacheParent = this._parent || symbol, project = this._project;\n if (flags & 8) this._bounds = this._position = this._decomposed = undefined;\n if (flags & 16) this._globalMatrix = undefined;\n if (cacheParent && flags & 72) Item._clearBoundsCache(cacheParent);\n if (flags & 2) Item._clearBoundsCache(this);\n if (project) project._changed(flags, this);\n if (symbol) symbol._changed(flags);\n },\n getId: function() {\n return this._id;\n },\n getName: function() {\n return this._name;\n },\n setName: function(name) {\n if (this._name) this._removeNamed();\n if (name === +name + \"\") throw new Error(\"Names consisting only of numbers are not supported.\");\n var owner = this._getOwner();\n if (name && owner) {\n var children = owner._children, namedChildren = owner._namedChildren;\n (namedChildren[name] = namedChildren[name] || []).push(this);\n if (!(name in children)) children[name] = this;\n }\n this._name = name || undefined;\n this._changed(256);\n },\n getStyle: function() {\n return this._style;\n },\n setStyle: function(style) {\n this.getStyle().set(style);\n }\n }, Base.each([\n \"locked\",\n \"visible\",\n \"blendMode\",\n \"opacity\",\n \"guide\"\n ], function(name) {\n var part = Base.capitalize(name), key = \"_\" + name, flags = {\n locked: 256,\n visible: 265\n };\n this[\"get\" + part] = function() {\n return this[key];\n };\n this[\"set\" + part] = function(value) {\n if (value != this[key]) {\n this[key] = value;\n this._changed(flags[name] || 257);\n }\n };\n }, {}), {\n beans: true,\n getSelection: function() {\n return this._selection;\n },\n setSelection: function(selection) {\n if (selection !== this._selection) {\n this._selection = selection;\n var project = this._project;\n if (project) {\n project._updateSelection(this);\n this._changed(257);\n }\n }\n },\n _changeSelection: function(flag, selected) {\n var selection = this._selection;\n this.setSelection(selected ? selection | flag : selection & ~flag);\n },\n isSelected: function() {\n if (this._selectChildren) {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)if (children[i].isSelected()) return true;\n }\n return !!(this._selection & 1);\n },\n setSelected: function(selected) {\n if (this._selectChildren) {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)children[i].setSelected(selected);\n }\n this._changeSelection(1, selected);\n },\n isFullySelected: function() {\n var children = this._children, selected = !!(this._selection & 1);\n if (children && selected) {\n for(var i = 0, l = children.length; i < l; i++)if (!children[i].isFullySelected()) return false;\n return true;\n }\n return selected;\n },\n setFullySelected: function(selected) {\n var children = this._children;\n if (children) for(var i = 0, l = children.length; i < l; i++)children[i].setFullySelected(selected);\n this._changeSelection(1, selected);\n },\n isClipMask: function() {\n return this._clipMask;\n },\n setClipMask: function(clipMask) {\n if (this._clipMask != (clipMask = !!clipMask)) {\n this._clipMask = clipMask;\n if (clipMask) {\n this.setFillColor(null);\n this.setStrokeColor(null);\n }\n this._changed(257);\n if (this._parent) this._parent._changed(2048);\n }\n },\n getData: function() {\n if (!this._data) this._data = {};\n return this._data;\n },\n setData: function(data) {\n this._data = data;\n },\n getPosition: function(_dontLink) {\n var ctor = _dontLink ? Point : LinkedPoint;\n var position = this._position || (this._position = this._getPositionFromBounds());\n return new ctor(position.x, position.y, this, \"setPosition\");\n },\n setPosition: function() {\n this.translate(Point.read(arguments).subtract(this.getPosition(true)));\n },\n _getPositionFromBounds: function(bounds) {\n return this._pivot ? this._matrix._transformPoint(this._pivot) : (bounds || this.getBounds()).getCenter(true);\n },\n getPivot: function() {\n var pivot = this._pivot;\n return pivot ? new LinkedPoint(pivot.x, pivot.y, this, \"setPivot\") : null;\n },\n setPivot: function() {\n this._pivot = Point.read(arguments, 0, {\n clone: true,\n readNull: true\n });\n this._position = undefined;\n }\n }, Base.each({\n getStrokeBounds: {\n stroke: true\n },\n getHandleBounds: {\n handle: true\n },\n getInternalBounds: {\n internal: true\n }\n }, function(options, key) {\n this[key] = function(matrix) {\n return this.getBounds(matrix, options);\n };\n }, {\n beans: true,\n getBounds: function(matrix, options) {\n var hasMatrix = options || matrix instanceof Matrix, opts = Base.set({}, hasMatrix ? options : matrix, this._boundsOptions);\n if (!opts.stroke || this.getStrokeScaling()) opts.cacheItem = this;\n var rect = this._getCachedBounds(hasMatrix && matrix, opts).rect;\n return !arguments.length ? new LinkedRectangle(rect.x, rect.y, rect.width, rect.height, this, \"setBounds\") : rect;\n },\n setBounds: function() {\n var rect = Rectangle.read(arguments), bounds = this.getBounds(), _matrix = this._matrix, matrix = new Matrix(), center = rect.getCenter();\n matrix.translate(center);\n if (rect.width != bounds.width || rect.height != bounds.height) {\n if (!_matrix.isInvertible()) {\n _matrix.set(_matrix._backup || new Matrix().translate(_matrix.getTranslation()));\n bounds = this.getBounds();\n }\n matrix.scale(bounds.width !== 0 ? rect.width / bounds.width : 0, bounds.height !== 0 ? rect.height / bounds.height : 0);\n }\n center = bounds.getCenter();\n matrix.translate(-center.x, -center.y);\n this.transform(matrix);\n },\n _getBounds: function(matrix, options) {\n var children = this._children;\n if (!children || !children.length) return new Rectangle();\n Item._updateBoundsCache(this, options.cacheItem);\n return Item._getBounds(children, matrix, options);\n },\n _getBoundsCacheKey: function(options, internal) {\n return [\n options.stroke ? 1 : 0,\n options.handle ? 1 : 0,\n internal ? 1 : 0\n ].join(\"\");\n },\n _getCachedBounds: function(matrix, options, noInternal) {\n matrix = matrix && matrix._orNullIfIdentity();\n var internal = options.internal && !noInternal, cacheItem = options.cacheItem, _matrix = internal ? null : this._matrix._orNullIfIdentity(), cacheKey = cacheItem && (!matrix || matrix.equals(_matrix)) && this._getBoundsCacheKey(options, internal), bounds = this._bounds;\n Item._updateBoundsCache(this._parent || this._symbol, cacheItem);\n if (cacheKey && bounds && cacheKey in bounds) {\n var cached = bounds[cacheKey];\n return {\n rect: cached.rect.clone(),\n nonscaling: cached.nonscaling\n };\n }\n var res = this._getBounds(matrix || _matrix, options), rect = res.rect || res, style = this._style, nonscaling = res.nonscaling || style.hasStroke() && !style.getStrokeScaling();\n if (cacheKey) {\n if (!bounds) this._bounds = bounds = {};\n var cached = bounds[cacheKey] = {\n rect: rect.clone(),\n nonscaling: nonscaling,\n internal: internal\n };\n }\n return {\n rect: rect,\n nonscaling: nonscaling\n };\n },\n _getStrokeMatrix: function(matrix, options) {\n var parent = this.getStrokeScaling() ? null : options && options.internal ? this : this._parent || this._symbol && this._symbol._item, mx = parent ? parent.getViewMatrix().invert() : matrix;\n return mx && mx._shiftless();\n },\n statics: {\n _updateBoundsCache: function(parent, item) {\n if (parent && item) {\n var id = item._id, ref = parent._boundsCache = parent._boundsCache || {\n ids: {},\n list: []\n };\n if (!ref.ids[id]) {\n ref.list.push(item);\n ref.ids[id] = item;\n }\n }\n },\n _clearBoundsCache: function(item) {\n var cache = item._boundsCache;\n if (cache) {\n item._bounds = item._position = item._boundsCache = undefined;\n for(var i = 0, list = cache.list, l = list.length; i < l; i++){\n var other = list[i];\n if (other !== item) {\n other._bounds = other._position = undefined;\n if (other._boundsCache) Item._clearBoundsCache(other);\n }\n }\n }\n },\n _getBounds: function(items, matrix, options) {\n var x1 = Infinity, x2 = -x1, y1 = x1, y2 = x2, nonscaling = false;\n options = options || {};\n for(var i = 0, l = items.length; i < l; i++){\n var item = items[i];\n if (item._visible && !item.isEmpty(true)) {\n var bounds = item._getCachedBounds(matrix && matrix.appended(item._matrix), options, true), rect = bounds.rect;\n x1 = Math.min(rect.x, x1);\n y1 = Math.min(rect.y, y1);\n x2 = Math.max(rect.x + rect.width, x2);\n y2 = Math.max(rect.y + rect.height, y2);\n if (bounds.nonscaling) nonscaling = true;\n }\n }\n return {\n rect: isFinite(x1) ? new Rectangle(x1, y1, x2 - x1, y2 - y1) : new Rectangle(),\n nonscaling: nonscaling\n };\n }\n }\n }), {\n beans: true,\n _decompose: function() {\n return this._applyMatrix ? null : this._decomposed || (this._decomposed = this._matrix.decompose());\n },\n getRotation: function() {\n var decomposed = this._decompose();\n return decomposed ? decomposed.rotation : 0;\n },\n setRotation: function(rotation) {\n var current = this.getRotation();\n if (current != null && rotation != null) {\n var decomposed = this._decomposed;\n this.rotate(rotation - current);\n if (decomposed) {\n decomposed.rotation = rotation;\n this._decomposed = decomposed;\n }\n }\n },\n getScaling: function() {\n var decomposed = this._decompose(), s = decomposed && decomposed.scaling;\n return new LinkedPoint(s ? s.x : 1, s ? s.y : 1, this, \"setScaling\");\n },\n setScaling: function() {\n var current = this.getScaling(), scaling = Point.read(arguments, 0, {\n clone: true,\n readNull: true\n });\n if (current && scaling && !current.equals(scaling)) {\n var rotation = this.getRotation(), decomposed = this._decomposed, matrix = new Matrix(), isZero = Numerical.isZero;\n if (isZero(current.x) || isZero(current.y)) {\n matrix.translate(decomposed.translation);\n if (rotation) matrix.rotate(rotation);\n matrix.scale(scaling.x, scaling.y);\n this._matrix.set(matrix);\n } else {\n var center = this.getPosition(true);\n matrix.translate(center);\n if (rotation) matrix.rotate(rotation);\n matrix.scale(scaling.x / current.x, scaling.y / current.y);\n if (rotation) matrix.rotate(-rotation);\n matrix.translate(center.negate());\n this.transform(matrix);\n }\n if (decomposed) {\n decomposed.scaling = scaling;\n this._decomposed = decomposed;\n }\n }\n },\n getMatrix: function() {\n return this._matrix;\n },\n setMatrix: function() {\n var matrix = this._matrix;\n matrix.set.apply(matrix, arguments);\n },\n getGlobalMatrix: function(_dontClone) {\n var matrix = this._globalMatrix;\n if (matrix) {\n var parent = this._parent;\n var parents = [];\n while(parent){\n if (!parent._globalMatrix) {\n matrix = null;\n for(var i = 0, l = parents.length; i < l; i++)parents[i]._globalMatrix = null;\n break;\n }\n parents.push(parent);\n parent = parent._parent;\n }\n }\n if (!matrix) {\n matrix = this._globalMatrix = this._matrix.clone();\n var parent = this._parent;\n if (parent) matrix.prepend(parent.getGlobalMatrix(true));\n }\n return _dontClone ? matrix : matrix.clone();\n },\n getViewMatrix: function() {\n return this.getGlobalMatrix().prepend(this.getView()._matrix);\n },\n getApplyMatrix: function() {\n return this._applyMatrix;\n },\n setApplyMatrix: function(apply) {\n if (this._applyMatrix = this._canApplyMatrix && !!apply) this.transform(null, true);\n },\n getTransformContent: \"#getApplyMatrix\",\n setTransformContent: \"#setApplyMatrix\"\n }, {\n getProject: function() {\n return this._project;\n },\n _setProject: function(project, installEvents) {\n if (this._project !== project) {\n if (this._project) this._installEvents(false);\n this._project = project;\n var children = this._children;\n for(var i = 0, l = children && children.length; i < l; i++)children[i]._setProject(project);\n installEvents = true;\n }\n if (installEvents) this._installEvents(true);\n },\n getView: function() {\n return this._project._view;\n },\n _installEvents: function _installEvents(install) {\n _installEvents.base.call(this, install);\n var children = this._children;\n for(var i = 0, l = children && children.length; i < l; i++)children[i]._installEvents(install);\n },\n getLayer: function() {\n var parent = this;\n while(parent = parent._parent){\n if (parent instanceof Layer) return parent;\n }\n return null;\n },\n getParent: function() {\n return this._parent;\n },\n setParent: function(item) {\n return item.addChild(this);\n },\n _getOwner: \"#getParent\",\n getChildren: function() {\n return this._children;\n },\n setChildren: function(items) {\n this.removeChildren();\n this.addChildren(items);\n },\n getFirstChild: function() {\n return this._children && this._children[0] || null;\n },\n getLastChild: function() {\n return this._children && this._children[this._children.length - 1] || null;\n },\n getNextSibling: function() {\n var owner = this._getOwner();\n return owner && owner._children[this._index + 1] || null;\n },\n getPreviousSibling: function() {\n var owner = this._getOwner();\n return owner && owner._children[this._index - 1] || null;\n },\n getIndex: function() {\n return this._index;\n },\n setIndex: function(index) {\n var parent = this._parent, children = parent && parent._children;\n if (children) parent.insertChildren(index in children ? index : undefined, [\n this\n ]);\n },\n equals: function(item) {\n return item === this || item && this._class === item._class && this._style.equals(item._style) && this._matrix.equals(item._matrix) && this._locked === item._locked && this._visible === item._visible && this._blendMode === item._blendMode && this._opacity === item._opacity && this._clipMask === item._clipMask && this._guide === item._guide && this._equals(item) || false;\n },\n _equals: function(item) {\n return Base.equals(this._children, item._children);\n },\n clone: function(options) {\n var copy = new this.constructor(Item.NO_INSERT), children = this._children, insert = Base.pick(options ? options.insert : undefined, options === undefined || options === true), deep = Base.pick(options ? options.deep : undefined, true);\n if (children) copy.copyAttributes(this);\n if (!children || deep) copy.copyContent(this);\n if (!children) copy.copyAttributes(this);\n if (insert) copy.insertAbove(this);\n var name = this._name, parent = this._parent;\n if (name && parent) {\n var children = parent._children, orig = name, i = 1;\n while(children[name])name = orig + \" \" + i++;\n if (name !== orig) copy.setName(name);\n }\n return copy;\n },\n copyContent: function(source) {\n var children = source._children;\n for(var i = 0, l = children && children.length; i < l; i++)this.addChild(children[i].clone(false), true);\n },\n copyAttributes: function(source, excludeMatrix) {\n this.setStyle(source._style);\n var keys = [\n \"_locked\",\n \"_visible\",\n \"_blendMode\",\n \"_opacity\",\n \"_clipMask\",\n \"_guide\"\n ];\n for(var i = 0, l = keys.length; i < l; i++){\n var key = keys[i];\n if (source.hasOwnProperty(key)) this[key] = source[key];\n }\n if (!excludeMatrix) this._matrix.set(source._matrix, true);\n this.setApplyMatrix(source._applyMatrix);\n this.setPivot(source._pivot);\n this.setSelection(source._selection);\n var data = source._data, name = source._name;\n this._data = data ? Base.clone(data) : null;\n if (name) this.setName(name);\n },\n rasterize: function(arg0, arg1) {\n var resolution, insert, raster;\n if (Base.isPlainObject(arg0)) {\n resolution = arg0.resolution;\n insert = arg0.insert;\n raster = arg0.raster;\n } else {\n resolution = arg0;\n insert = arg1;\n }\n if (!raster) raster = new Raster(Item.NO_INSERT);\n var bounds = this.getStrokeBounds(), scale = (resolution || this.getView().getResolution()) / 72, topLeft = bounds.getTopLeft().floor(), bottomRight = bounds.getBottomRight().ceil(), boundsSize = new Size(bottomRight.subtract(topLeft)), rasterSize = boundsSize.multiply(scale);\n raster.setSize(rasterSize, true);\n if (!rasterSize.isZero()) {\n var ctx = raster.getContext(true), matrix = new Matrix().scale(scale).translate(topLeft.negate());\n ctx.save();\n matrix.applyToContext(ctx);\n this.draw(ctx, new Base({\n matrices: [\n matrix\n ]\n }));\n ctx.restore();\n }\n raster._matrix.set(new Matrix().translate(topLeft.add(boundsSize.divide(2))).scale(1 / scale));\n if (insert === undefined || insert) raster.insertAbove(this);\n return raster;\n },\n contains: function() {\n var matrix = this._matrix;\n return matrix.isInvertible() && !!this._contains(matrix._inverseTransform(Point.read(arguments)));\n },\n _contains: function(point) {\n var children = this._children;\n if (children) {\n for(var i = children.length - 1; i >= 0; i--){\n if (children[i].contains(point)) return true;\n }\n return false;\n }\n return point.isInside(this.getInternalBounds());\n },\n isInside: function() {\n return Rectangle.read(arguments).contains(this.getBounds());\n },\n _asPathItem: function() {\n return new Path.Rectangle({\n rectangle: this.getInternalBounds(),\n matrix: this._matrix,\n insert: false\n });\n },\n intersects: function(item, _matrix) {\n if (!(item instanceof Item)) return false;\n return this._asPathItem().getIntersections(item._asPathItem(), null, _matrix, true).length > 0;\n }\n }, new function() {\n function hitTest() {\n var args = arguments;\n return this._hitTest(Point.read(args), HitResult.getOptions(args));\n }\n function hitTestAll() {\n var args = arguments, point = Point.read(args), options = HitResult.getOptions(args), all = [];\n this._hitTest(point, new Base({\n all: all\n }, options));\n return all;\n }\n function hitTestChildren(point, options, viewMatrix, _exclude) {\n var children = this._children;\n if (children) for(var i = children.length - 1; i >= 0; i--){\n var child = children[i];\n var res = child !== _exclude && child._hitTest(point, options, viewMatrix);\n if (res && !options.all) return res;\n }\n return null;\n }\n Project.inject({\n hitTest: hitTest,\n hitTestAll: hitTestAll,\n _hitTest: hitTestChildren\n });\n return {\n hitTest: hitTest,\n hitTestAll: hitTestAll,\n _hitTestChildren: hitTestChildren\n };\n }, {\n _hitTest: function(point, options, parentViewMatrix) {\n if (this._locked || !this._visible || this._guide && !options.guides || this.isEmpty()) return null;\n var matrix = this._matrix, viewMatrix = parentViewMatrix ? parentViewMatrix.appended(matrix) : this.getGlobalMatrix().prepend(this.getView()._matrix), tolerance = Math.max(options.tolerance, 1e-12), tolerancePadding = options._tolerancePadding = new Size(Path._getStrokePadding(tolerance, matrix._shiftless().invert()));\n point = matrix._inverseTransform(point);\n if (!point || !this._children && !this.getBounds({\n internal: true,\n stroke: true,\n handle: true\n }).expand(tolerancePadding.multiply(2))._containsPoint(point)) return null;\n var checkSelf = !(options.guides && !this._guide || options.selected && !this.isSelected() || options.type && options.type !== Base.hyphenate(this._class) || options.class && !(this instanceof options.class)), match = options.match, that = this, bounds, res;\n function filter(hit) {\n if (hit && match && !match(hit)) hit = null;\n if (hit && options.all) options.all.push(hit);\n return hit;\n }\n function checkPoint(type, part) {\n var pt = part ? bounds[\"get\" + part]() : that.getPosition();\n if (point.subtract(pt).divide(tolerancePadding).length <= 1) return new HitResult(type, that, {\n name: part ? Base.hyphenate(part) : type,\n point: pt\n });\n }\n var checkPosition = options.position, checkCenter = options.center, checkBounds = options.bounds;\n if (checkSelf && this._parent && (checkPosition || checkCenter || checkBounds)) {\n if (checkCenter || checkBounds) bounds = this.getInternalBounds();\n res = checkPosition && checkPoint(\"position\") || checkCenter && checkPoint(\"center\", \"Center\");\n if (!res && checkBounds) {\n var points = [\n \"TopLeft\",\n \"TopRight\",\n \"BottomLeft\",\n \"BottomRight\",\n \"LeftCenter\",\n \"TopCenter\",\n \"RightCenter\",\n \"BottomCenter\"\n ];\n for(var i = 0; i < 8 && !res; i++)res = checkPoint(\"bounds\", points[i]);\n }\n res = filter(res);\n }\n if (!res) res = this._hitTestChildren(point, options, viewMatrix) || checkSelf && filter(this._hitTestSelf(point, options, viewMatrix, this.getStrokeScaling() ? null : viewMatrix._shiftless().invert())) || null;\n if (res && res.point) res.point = matrix.transform(res.point);\n return res;\n },\n _hitTestSelf: function(point, options) {\n if (options.fill && this.hasFill() && this._contains(point)) return new HitResult(\"fill\", this);\n },\n matches: function(name, compare) {\n function matchObject(obj1, obj2) {\n for(var i in obj1)if (obj1.hasOwnProperty(i)) {\n var val1 = obj1[i], val2 = obj2[i];\n if (Base.isPlainObject(val1) && Base.isPlainObject(val2)) {\n if (!matchObject(val1, val2)) return false;\n } else if (!Base.equals(val1, val2)) return false;\n }\n return true;\n }\n var type = typeof name;\n if (type === \"object\") {\n for(var key in name){\n if (name.hasOwnProperty(key) && !this.matches(key, name[key])) return false;\n }\n return true;\n } else if (type === \"function\") return name(this);\n else if (name === \"match\") return compare(this);\n else {\n var value = /^(empty|editable)$/.test(name) ? this[\"is\" + Base.capitalize(name)]() : name === \"type\" ? Base.hyphenate(this._class) : this[name];\n if (name === \"class\") {\n if (typeof compare === \"function\") return this instanceof compare;\n value = this._class;\n }\n if (typeof compare === \"function\") return !!compare(value);\n else if (compare) {\n if (compare.test) return compare.test(value);\n else if (Base.isPlainObject(compare)) return matchObject(compare, value);\n }\n return Base.equals(value, compare);\n }\n },\n getItems: function(options) {\n return Item._getItems(this, options, this._matrix);\n },\n getItem: function(options) {\n return Item._getItems(this, options, this._matrix, null, true)[0] || null;\n },\n statics: {\n _getItems: function _getItems(item, options, matrix, param, firstOnly) {\n if (!param) {\n var obj = typeof options === \"object\" && options, overlapping = obj && obj.overlapping, inside = obj && obj.inside, bounds = overlapping || inside, rect = bounds && Rectangle.read([\n bounds\n ]);\n param = {\n items: [],\n recursive: obj && obj.recursive !== false,\n inside: !!inside,\n overlapping: !!overlapping,\n rect: rect,\n path: overlapping && new Path.Rectangle({\n rectangle: rect,\n insert: false\n })\n };\n if (obj) options = Base.filter({}, options, {\n recursive: true,\n inside: true,\n overlapping: true\n });\n }\n var children = item._children, items = param.items, rect = param.rect;\n matrix = rect && (matrix || new Matrix());\n for(var i = 0, l = children && children.length; i < l; i++){\n var child = children[i], childMatrix = matrix && matrix.appended(child._matrix), add = true;\n if (rect) {\n var bounds = child.getBounds(childMatrix);\n if (!rect.intersects(bounds)) continue;\n if (!(rect.contains(bounds) || param.overlapping && (bounds.contains(rect) || param.path.intersects(child, childMatrix)))) add = false;\n }\n if (add && child.matches(options)) {\n items.push(child);\n if (firstOnly) break;\n }\n if (param.recursive !== false) _getItems(child, options, childMatrix, param, firstOnly);\n if (firstOnly && items.length > 0) break;\n }\n return items;\n }\n }\n }, {\n importJSON: function(json) {\n var res = Base.importJSON(json, this);\n return res !== this ? this.addChild(res) : res;\n },\n addChild: function(item) {\n return this.insertChild(undefined, item);\n },\n insertChild: function(index, item) {\n var res = item ? this.insertChildren(index, [\n item\n ]) : null;\n return res && res[0];\n },\n addChildren: function(items) {\n return this.insertChildren(this._children.length, items);\n },\n insertChildren: function(index, items) {\n var children = this._children;\n if (children && items && items.length > 0) {\n items = Base.slice(items);\n var inserted = {};\n for(var i = items.length - 1; i >= 0; i--){\n var item = items[i], id = item && item._id;\n if (!item || inserted[id]) items.splice(i, 1);\n else {\n item._remove(false, true);\n inserted[id] = true;\n }\n }\n Base.splice(children, items, index, 0);\n var project = this._project, notifySelf = project._changes;\n for(var i = 0, l = items.length; i < l; i++){\n var item = items[i], name = item._name;\n item._parent = this;\n item._setProject(project, true);\n if (name) item.setName(name);\n if (notifySelf) item._changed(5);\n }\n this._changed(11);\n } else items = null;\n return items;\n },\n _insertItem: \"#insertChild\",\n _insertAt: function(item, offset) {\n var owner = item && item._getOwner(), res = item !== this && owner ? this : null;\n if (res) {\n res._remove(false, true);\n owner._insertItem(item._index + offset, res);\n }\n return res;\n },\n insertAbove: function(item) {\n return this._insertAt(item, 1);\n },\n insertBelow: function(item) {\n return this._insertAt(item, 0);\n },\n sendToBack: function() {\n var owner = this._getOwner();\n return owner ? owner._insertItem(0, this) : null;\n },\n bringToFront: function() {\n var owner = this._getOwner();\n return owner ? owner._insertItem(undefined, this) : null;\n },\n appendTop: \"#addChild\",\n appendBottom: function(item) {\n return this.insertChild(0, item);\n },\n moveAbove: \"#insertAbove\",\n moveBelow: \"#insertBelow\",\n addTo: function(owner) {\n return owner._insertItem(undefined, this);\n },\n copyTo: function(owner) {\n return this.clone(false).addTo(owner);\n },\n reduce: function(options) {\n var children = this._children;\n if (children && children.length === 1) {\n var child = children[0].reduce(options);\n if (this._parent) {\n child.insertAbove(this);\n this.remove();\n } else child.remove();\n return child;\n }\n return this;\n },\n _removeNamed: function() {\n var owner = this._getOwner();\n if (owner) {\n var children = owner._children, namedChildren = owner._namedChildren, name = this._name, namedArray = namedChildren[name], index = namedArray ? namedArray.indexOf(this) : -1;\n if (index !== -1) {\n if (children[name] == this) delete children[name];\n namedArray.splice(index, 1);\n if (namedArray.length) children[name] = namedArray[0];\n else delete namedChildren[name];\n }\n }\n },\n _remove: function(notifySelf, notifyParent) {\n var owner = this._getOwner(), project = this._project, index = this._index;\n if (this._style) this._style._dispose();\n if (owner) {\n if (this._name) this._removeNamed();\n if (index != null) {\n if (project._activeLayer === this) project._activeLayer = this.getNextSibling() || this.getPreviousSibling();\n Base.splice(owner._children, null, index, 1);\n }\n this._installEvents(false);\n if (notifySelf && project._changes) this._changed(5);\n if (notifyParent) owner._changed(11, this);\n this._parent = null;\n return true;\n }\n return false;\n },\n remove: function() {\n return this._remove(true, true);\n },\n replaceWith: function(item) {\n var ok = item && item.insertBelow(this);\n if (ok) this.remove();\n return ok;\n },\n removeChildren: function(start, end) {\n if (!this._children) return null;\n start = start || 0;\n end = Base.pick(end, this._children.length);\n var removed = Base.splice(this._children, null, start, end - start);\n for(var i = removed.length - 1; i >= 0; i--)removed[i]._remove(true, false);\n if (removed.length > 0) this._changed(11);\n return removed;\n },\n clear: \"#removeChildren\",\n reverseChildren: function() {\n if (this._children) {\n this._children.reverse();\n for(var i = 0, l = this._children.length; i < l; i++)this._children[i]._index = i;\n this._changed(11);\n }\n },\n isEmpty: function(recursively) {\n var children = this._children;\n var numChildren = children ? children.length : 0;\n if (recursively) {\n for(var i = 0; i < numChildren; i++){\n if (!children[i].isEmpty(recursively)) return false;\n }\n return true;\n }\n return !numChildren;\n },\n isEditable: function() {\n var item = this;\n while(item){\n if (!item._visible || item._locked) return false;\n item = item._parent;\n }\n return true;\n },\n hasFill: function() {\n return this.getStyle().hasFill();\n },\n hasStroke: function() {\n return this.getStyle().hasStroke();\n },\n hasShadow: function() {\n return this.getStyle().hasShadow();\n },\n _getOrder: function(item) {\n function getList(item) {\n var list = [];\n do list.unshift(item);\n while (item = item._parent);\n return list;\n }\n var list1 = getList(this), list2 = getList(item);\n for(var i = 0, l = Math.min(list1.length, list2.length); i < l; i++){\n if (list1[i] != list2[i]) return list1[i]._index < list2[i]._index ? 1 : -1;\n }\n return 0;\n },\n hasChildren: function() {\n return this._children && this._children.length > 0;\n },\n isInserted: function() {\n return this._parent ? this._parent.isInserted() : false;\n },\n isAbove: function(item) {\n return this._getOrder(item) === -1;\n },\n isBelow: function(item) {\n return this._getOrder(item) === 1;\n },\n isParent: function(item) {\n return this._parent === item;\n },\n isChild: function(item) {\n return item && item._parent === this;\n },\n isDescendant: function(item) {\n var parent = this;\n while(parent = parent._parent){\n if (parent === item) return true;\n }\n return false;\n },\n isAncestor: function(item) {\n return item ? item.isDescendant(this) : false;\n },\n isSibling: function(item) {\n return this._parent === item._parent;\n },\n isGroupedWith: function(item) {\n var parent = this._parent;\n while(parent){\n if (parent._parent && /^(Group|Layer|CompoundPath)$/.test(parent._class) && item.isDescendant(parent)) return true;\n parent = parent._parent;\n }\n return false;\n }\n }, Base.each([\n \"rotate\",\n \"scale\",\n \"shear\",\n \"skew\"\n ], function(key) {\n var rotate = key === \"rotate\";\n this[key] = function() {\n var args = arguments, value = (rotate ? Base : Point).read(args), center = Point.read(args, 0, {\n readNull: true\n });\n return this.transform(new Matrix()[key](value, center || this.getPosition(true)));\n };\n }, {\n translate: function() {\n var mx = new Matrix();\n return this.transform(mx.translate.apply(mx, arguments));\n },\n transform: function(matrix, _applyRecursively, _setApplyMatrix) {\n var _matrix = this._matrix, transformMatrix = matrix && !matrix.isIdentity(), applyMatrix = _setApplyMatrix && this._canApplyMatrix || this._applyMatrix && (transformMatrix || !_matrix.isIdentity() || _applyRecursively && this._children);\n if (!transformMatrix && !applyMatrix) return this;\n if (transformMatrix) {\n if (!matrix.isInvertible() && _matrix.isInvertible()) _matrix._backup = _matrix.getValues();\n _matrix.prepend(matrix, true);\n var style = this._style, fillColor = style.getFillColor(true), strokeColor = style.getStrokeColor(true);\n if (fillColor) fillColor.transform(matrix);\n if (strokeColor) strokeColor.transform(matrix);\n }\n if (applyMatrix && (applyMatrix = this._transformContent(_matrix, _applyRecursively, _setApplyMatrix))) {\n var pivot = this._pivot;\n if (pivot) _matrix._transformPoint(pivot, pivot, true);\n _matrix.reset(true);\n if (_setApplyMatrix && this._canApplyMatrix) this._applyMatrix = true;\n }\n var bounds = this._bounds, position = this._position;\n if (transformMatrix || applyMatrix) this._changed(25);\n var decomp = transformMatrix && bounds && matrix.decompose();\n if (decomp && decomp.skewing.isZero() && decomp.rotation % 90 === 0) {\n for(var key in bounds){\n var cache = bounds[key];\n if (cache.nonscaling) delete bounds[key];\n else if (applyMatrix || !cache.internal) {\n var rect = cache.rect;\n matrix._transformBounds(rect, rect);\n }\n }\n this._bounds = bounds;\n var cached = bounds[this._getBoundsCacheKey(this._boundsOptions || {})];\n if (cached) this._position = this._getPositionFromBounds(cached.rect);\n } else if (transformMatrix && position && this._pivot) this._position = matrix._transformPoint(position, position);\n return this;\n },\n _transformContent: function(matrix, applyRecursively, setApplyMatrix) {\n var children = this._children;\n if (children) {\n for(var i = 0, l = children.length; i < l; i++)children[i].transform(matrix, applyRecursively, setApplyMatrix);\n return true;\n }\n },\n globalToLocal: function() {\n return this.getGlobalMatrix(true)._inverseTransform(Point.read(arguments));\n },\n localToGlobal: function() {\n return this.getGlobalMatrix(true)._transformPoint(Point.read(arguments));\n },\n parentToLocal: function() {\n return this._matrix._inverseTransform(Point.read(arguments));\n },\n localToParent: function() {\n return this._matrix._transformPoint(Point.read(arguments));\n },\n fitBounds: function(rectangle, fill) {\n rectangle = Rectangle.read(arguments);\n var bounds = this.getBounds(), itemRatio = bounds.height / bounds.width, rectRatio = rectangle.height / rectangle.width, scale = (fill ? itemRatio > rectRatio : itemRatio < rectRatio) ? rectangle.width / bounds.width : rectangle.height / bounds.height, newBounds = new Rectangle(new Point(), new Size(bounds.width * scale, bounds.height * scale));\n newBounds.setCenter(rectangle.getCenter());\n this.setBounds(newBounds);\n }\n }), {\n _setStyles: function(ctx, param, viewMatrix) {\n var style = this._style, matrix = this._matrix;\n if (style.hasFill()) ctx.fillStyle = style.getFillColor().toCanvasStyle(ctx, matrix);\n if (style.hasStroke()) {\n ctx.strokeStyle = style.getStrokeColor().toCanvasStyle(ctx, matrix);\n ctx.lineWidth = style.getStrokeWidth();\n var strokeJoin = style.getStrokeJoin(), strokeCap = style.getStrokeCap(), miterLimit = style.getMiterLimit();\n if (strokeJoin) ctx.lineJoin = strokeJoin;\n if (strokeCap) ctx.lineCap = strokeCap;\n if (miterLimit) ctx.miterLimit = miterLimit;\n if (paper.support.nativeDash) {\n var dashArray = style.getDashArray(), dashOffset = style.getDashOffset();\n if (dashArray && dashArray.length) {\n if (\"setLineDash\" in ctx) {\n ctx.setLineDash(dashArray);\n ctx.lineDashOffset = dashOffset;\n } else {\n ctx.mozDash = dashArray;\n ctx.mozDashOffset = dashOffset;\n }\n }\n }\n }\n if (style.hasShadow()) {\n var pixelRatio = param.pixelRatio || 1, mx = viewMatrix._shiftless().prepend(new Matrix().scale(pixelRatio, pixelRatio)), blur = mx.transform(new Point(style.getShadowBlur(), 0)), offset = mx.transform(this.getShadowOffset());\n ctx.shadowColor = style.getShadowColor().toCanvasStyle(ctx);\n ctx.shadowBlur = blur.getLength();\n ctx.shadowOffsetX = offset.x;\n ctx.shadowOffsetY = offset.y;\n }\n },\n draw: function(ctx, param, parentStrokeMatrix) {\n var updateVersion = this._updateVersion = this._project._updateVersion;\n if (!this._visible || this._opacity === 0) return;\n var matrices = param.matrices, viewMatrix = param.viewMatrix, matrix = this._matrix, globalMatrix = matrices[matrices.length - 1].appended(matrix);\n if (!globalMatrix.isInvertible()) return;\n viewMatrix = viewMatrix ? viewMatrix.appended(globalMatrix) : globalMatrix;\n matrices.push(globalMatrix);\n if (param.updateMatrix) this._globalMatrix = globalMatrix;\n var blendMode = this._blendMode, opacity = Numerical.clamp(this._opacity, 0, 1), normalBlend = blendMode === \"normal\", nativeBlend = BlendMode.nativeModes[blendMode], direct = normalBlend && opacity === 1 || param.dontStart || param.clip || (nativeBlend || normalBlend && opacity < 1) && this._canComposite(), pixelRatio = param.pixelRatio || 1, mainCtx, itemOffset, prevOffset;\n if (!direct) {\n var bounds = this.getStrokeBounds(viewMatrix);\n if (!bounds.width || !bounds.height) {\n matrices.pop();\n return;\n }\n prevOffset = param.offset;\n itemOffset = param.offset = bounds.getTopLeft().floor();\n mainCtx = ctx;\n ctx = CanvasProvider.getContext(bounds.getSize().ceil().add(1).multiply(pixelRatio));\n if (pixelRatio !== 1) ctx.scale(pixelRatio, pixelRatio);\n }\n ctx.save();\n var strokeMatrix = parentStrokeMatrix ? parentStrokeMatrix.appended(matrix) : this._canScaleStroke && !this.getStrokeScaling(true) && viewMatrix, clip = !direct && param.clipItem, transform = !strokeMatrix || clip;\n if (direct) {\n ctx.globalAlpha = opacity;\n if (nativeBlend) ctx.globalCompositeOperation = blendMode;\n } else if (transform) ctx.translate(-itemOffset.x, -itemOffset.y);\n if (transform) (direct ? matrix : viewMatrix).applyToContext(ctx);\n if (clip) param.clipItem.draw(ctx, param.extend({\n clip: true\n }));\n if (strokeMatrix) {\n ctx.setTransform(pixelRatio, 0, 0, pixelRatio, 0, 0);\n var offset = param.offset;\n if (offset) ctx.translate(-offset.x, -offset.y);\n }\n this._draw(ctx, param, viewMatrix, strokeMatrix);\n ctx.restore();\n matrices.pop();\n if (param.clip && !param.dontFinish) ctx.clip(this.getFillRule());\n if (!direct) {\n BlendMode.process(blendMode, ctx, mainCtx, opacity, itemOffset.subtract(prevOffset).multiply(pixelRatio));\n CanvasProvider.release(ctx);\n param.offset = prevOffset;\n }\n },\n _isUpdated: function(updateVersion) {\n var parent = this._parent;\n if (parent instanceof CompoundPath) return parent._isUpdated(updateVersion);\n var updated = this._updateVersion === updateVersion;\n if (!updated && parent && parent._visible && parent._isUpdated(updateVersion)) {\n this._updateVersion = updateVersion;\n updated = true;\n }\n return updated;\n },\n _drawSelection: function(ctx, matrix, size, selectionItems, updateVersion) {\n var selection = this._selection, itemSelected = selection & 1, boundsSelected = selection & 2 || itemSelected && this._selectBounds, positionSelected = selection & 4;\n if (!this._drawSelected) itemSelected = false;\n if ((itemSelected || boundsSelected || positionSelected) && this._isUpdated(updateVersion)) {\n var layer, color = this.getSelectedColor(true) || (layer = this.getLayer()) && layer.getSelectedColor(true), mx = matrix.appended(this.getGlobalMatrix(true)), half = size / 2;\n ctx.strokeStyle = ctx.fillStyle = color ? color.toCanvasStyle(ctx) : \"#009dec\";\n if (itemSelected) this._drawSelected(ctx, mx, selectionItems);\n if (positionSelected) {\n var pos = this.getPosition(true), parent = this._parent, point = parent ? parent.localToGlobal(pos) : pos, x = point.x, y = point.y;\n ctx.beginPath();\n ctx.arc(x, y, half, 0, Math.PI * 2, true);\n ctx.stroke();\n var deltas = [\n [\n 0,\n -1\n ],\n [\n 1,\n 0\n ],\n [\n 0,\n 1\n ],\n [\n -1,\n 0\n ]\n ], start = half, end = size + 1;\n for(var i = 0; i < 4; i++){\n var delta = deltas[i], dx = delta[0], dy = delta[1];\n ctx.moveTo(x + dx * start, y + dy * start);\n ctx.lineTo(x + dx * end, y + dy * end);\n ctx.stroke();\n }\n }\n if (boundsSelected) {\n var coords = mx._transformCorners(this.getInternalBounds());\n ctx.beginPath();\n for(var i = 0; i < 8; i++)ctx[!i ? \"moveTo\" : \"lineTo\"](coords[i], coords[++i]);\n ctx.closePath();\n ctx.stroke();\n for(var i = 0; i < 8; i++)ctx.fillRect(coords[i] - half, coords[++i] - half, size, size);\n }\n }\n },\n _canComposite: function() {\n return false;\n }\n }, Base.each([\n \"down\",\n \"drag\",\n \"up\",\n \"move\"\n ], function(key) {\n this[\"removeOn\" + Base.capitalize(key)] = function() {\n var hash = {};\n hash[key] = true;\n return this.removeOn(hash);\n };\n }, {\n removeOn: function(obj) {\n for(var name in obj)if (obj[name]) {\n var key = \"mouse\" + name, project = this._project, sets = project._removeSets = project._removeSets || {};\n sets[key] = sets[key] || {};\n sets[key][this._id] = this;\n }\n return this;\n }\n }), {\n tween: function(from, to, options) {\n if (!options) {\n options = to;\n to = from;\n from = null;\n if (!options) {\n options = to;\n to = null;\n }\n }\n var easing = options && options.easing, start = options && options.start, duration = options != null && (typeof options === \"number\" ? options : options.duration), tween = new Tween(this, from, to, duration, easing, start);\n function onFrame(event) {\n tween._handleFrame(event.time * 1000);\n if (!tween.running) this.off(\"frame\", onFrame);\n }\n if (duration) this.on(\"frame\", onFrame);\n return tween;\n },\n tweenTo: function(to, options) {\n return this.tween(null, to, options);\n },\n tweenFrom: function(from, options) {\n return this.tween(from, null, options);\n }\n });\n var Group = Item.extend({\n _class: \"Group\",\n _selectBounds: false,\n _selectChildren: true,\n _serializeFields: {\n children: []\n },\n initialize: function Group(arg) {\n this._children = [];\n this._namedChildren = {};\n if (!this._initialize(arg)) this.addChildren(Array.isArray(arg) ? arg : arguments);\n },\n _changed: function _changed(flags) {\n _changed.base.call(this, flags);\n if (flags & 2050) this._clipItem = undefined;\n },\n _getClipItem: function() {\n var clipItem = this._clipItem;\n if (clipItem === undefined) {\n clipItem = null;\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)if (children[i]._clipMask) {\n clipItem = children[i];\n break;\n }\n this._clipItem = clipItem;\n }\n return clipItem;\n },\n isClipped: function() {\n return !!this._getClipItem();\n },\n setClipped: function(clipped) {\n var child = this.getFirstChild();\n if (child) child.setClipMask(clipped);\n },\n _getBounds: function _getBounds(matrix, options) {\n var clipItem = this._getClipItem();\n return clipItem ? clipItem._getCachedBounds(clipItem._matrix.prepended(matrix), Base.set({}, options, {\n stroke: false\n })) : _getBounds.base.call(this, matrix, options);\n },\n _hitTestChildren: function _hitTestChildren(point, options, viewMatrix) {\n var clipItem = this._getClipItem();\n return (!clipItem || clipItem.contains(point)) && _hitTestChildren.base.call(this, point, options, viewMatrix, clipItem);\n },\n _draw: function(ctx, param) {\n var clip = param.clip, clipItem = !clip && this._getClipItem();\n param = param.extend({\n clipItem: clipItem,\n clip: false\n });\n if (clip) {\n ctx.beginPath();\n param.dontStart = param.dontFinish = true;\n } else if (clipItem) clipItem.draw(ctx, param.extend({\n clip: true\n }));\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++){\n var item = children[i];\n if (item !== clipItem) item.draw(ctx, param);\n }\n }\n });\n var Layer = Group.extend({\n _class: \"Layer\",\n initialize: function Layer() {\n Group.apply(this, arguments);\n },\n _getOwner: function() {\n return this._parent || this._index != null && this._project;\n },\n isInserted: function isInserted() {\n return this._parent ? isInserted.base.call(this) : this._index != null;\n },\n activate: function() {\n this._project._activeLayer = this;\n },\n _hitTestSelf: function() {}\n });\n var Shape = Item.extend({\n _class: \"Shape\",\n _applyMatrix: false,\n _canApplyMatrix: false,\n _canScaleStroke: true,\n _serializeFields: {\n type: null,\n size: null,\n radius: null\n },\n initialize: function Shape(props, point) {\n this._initialize(props, point);\n },\n _equals: function(item) {\n return this._type === item._type && this._size.equals(item._size) && Base.equals(this._radius, item._radius);\n },\n copyContent: function(source) {\n this.setType(source._type);\n this.setSize(source._size);\n this.setRadius(source._radius);\n },\n getType: function() {\n return this._type;\n },\n setType: function(type) {\n this._type = type;\n },\n getShape: \"#getType\",\n setShape: \"#setType\",\n getSize: function() {\n var size = this._size;\n return new LinkedSize(size.width, size.height, this, \"setSize\");\n },\n setSize: function() {\n var size = Size.read(arguments);\n if (!this._size) this._size = size.clone();\n else if (!this._size.equals(size)) {\n var type = this._type, width = size.width, height = size.height;\n if (type === \"rectangle\") this._radius.set(Size.min(this._radius, size.divide(2).abs()));\n else if (type === \"circle\") {\n width = height = (width + height) / 2;\n this._radius = width / 2;\n } else if (type === \"ellipse\") this._radius._set(width / 2, height / 2);\n this._size._set(width, height);\n this._changed(9);\n }\n },\n getRadius: function() {\n var rad = this._radius;\n return this._type === \"circle\" ? rad : new LinkedSize(rad.width, rad.height, this, \"setRadius\");\n },\n setRadius: function(radius) {\n var type = this._type;\n if (type === \"circle\") {\n if (radius === this._radius) return;\n var size = radius * 2;\n this._radius = radius;\n this._size._set(size, size);\n } else {\n radius = Size.read(arguments);\n if (!this._radius) this._radius = radius.clone();\n else {\n if (this._radius.equals(radius)) return;\n this._radius.set(radius);\n if (type === \"rectangle\") {\n var size = Size.max(this._size, radius.multiply(2));\n this._size.set(size);\n } else if (type === \"ellipse\") this._size._set(radius.width * 2, radius.height * 2);\n }\n }\n this._changed(9);\n },\n isEmpty: function() {\n return false;\n },\n toPath: function(insert) {\n var path = new Path[Base.capitalize(this._type)]({\n center: new Point(),\n size: this._size,\n radius: this._radius,\n insert: false\n });\n path.copyAttributes(this);\n if (paper.settings.applyMatrix) path.setApplyMatrix(true);\n if (insert === undefined || insert) path.insertAbove(this);\n return path;\n },\n toShape: \"#clone\",\n _asPathItem: function() {\n return this.toPath(false);\n },\n _draw: function(ctx, param, viewMatrix, strokeMatrix) {\n var style = this._style, hasFill = style.hasFill(), hasStroke = style.hasStroke(), dontPaint = param.dontFinish || param.clip, untransformed = !strokeMatrix;\n if (hasFill || hasStroke || dontPaint) {\n var type = this._type, radius = this._radius, isCircle = type === \"circle\";\n if (!param.dontStart) ctx.beginPath();\n if (untransformed && isCircle) ctx.arc(0, 0, radius, 0, Math.PI * 2, true);\n else {\n var rx = isCircle ? radius : radius.width, ry = isCircle ? radius : radius.height, size = this._size, width = size.width, height = size.height;\n if (untransformed && type === \"rectangle\" && rx === 0 && ry === 0) ctx.rect(-width / 2, -height / 2, width, height);\n else {\n var x = width / 2, y = height / 2, kappa = 0.44771525016920644, cx = rx * kappa, cy = ry * kappa, c = [\n -x,\n -y + ry,\n -x,\n -y + cy,\n -x + cx,\n -y,\n -x + rx,\n -y,\n x - rx,\n -y,\n x - cx,\n -y,\n x,\n -y + cy,\n x,\n -y + ry,\n x,\n y - ry,\n x,\n y - cy,\n x - cx,\n y,\n x - rx,\n y,\n -x + rx,\n y,\n -x + cx,\n y,\n -x,\n y - cy,\n -x,\n y - ry\n ];\n if (strokeMatrix) strokeMatrix.transform(c, c, 32);\n ctx.moveTo(c[0], c[1]);\n ctx.bezierCurveTo(c[2], c[3], c[4], c[5], c[6], c[7]);\n if (x !== rx) ctx.lineTo(c[8], c[9]);\n ctx.bezierCurveTo(c[10], c[11], c[12], c[13], c[14], c[15]);\n if (y !== ry) ctx.lineTo(c[16], c[17]);\n ctx.bezierCurveTo(c[18], c[19], c[20], c[21], c[22], c[23]);\n if (x !== rx) ctx.lineTo(c[24], c[25]);\n ctx.bezierCurveTo(c[26], c[27], c[28], c[29], c[30], c[31]);\n }\n }\n ctx.closePath();\n }\n if (!dontPaint && (hasFill || hasStroke)) {\n this._setStyles(ctx, param, viewMatrix);\n if (hasFill) {\n ctx.fill(style.getFillRule());\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n }\n if (hasStroke) ctx.stroke();\n }\n },\n _canComposite: function() {\n return !(this.hasFill() && this.hasStroke());\n },\n _getBounds: function(matrix, options) {\n var rect = new Rectangle(this._size).setCenter(0, 0), style = this._style, strokeWidth = options.stroke && style.hasStroke() && style.getStrokeWidth();\n if (matrix) rect = matrix._transformBounds(rect);\n return strokeWidth ? rect.expand(Path._getStrokePadding(strokeWidth, this._getStrokeMatrix(matrix, options))) : rect;\n }\n }, new function() {\n function getCornerCenter(that, point, expand) {\n var radius = that._radius;\n if (!radius.isZero()) {\n var halfSize = that._size.divide(2);\n for(var q = 1; q <= 4; q++){\n var dir = new Point(q > 1 && q < 4 ? -1 : 1, q > 2 ? -1 : 1), corner = dir.multiply(halfSize), center = corner.subtract(dir.multiply(radius)), rect = new Rectangle(expand ? corner.add(dir.multiply(expand)) : corner, center);\n if (rect.contains(point)) return {\n point: center,\n quadrant: q\n };\n }\n }\n }\n function isOnEllipseStroke(point, radius, padding, quadrant) {\n var vector = point.divide(radius);\n return (!quadrant || vector.isInQuadrant(quadrant)) && vector.subtract(vector.normalize()).multiply(radius).divide(padding).length <= 1;\n }\n return {\n _contains: function _contains(point) {\n if (this._type === \"rectangle\") {\n var center = getCornerCenter(this, point);\n return center ? point.subtract(center.point).divide(this._radius).getLength() <= 1 : _contains.base.call(this, point);\n } else return point.divide(this.size).getLength() <= 0.5;\n },\n _hitTestSelf: function _hitTestSelf(point, options, viewMatrix, strokeMatrix) {\n var hit = false, style = this._style, hitStroke = options.stroke && style.hasStroke(), hitFill = options.fill && style.hasFill();\n if (hitStroke || hitFill) {\n var type = this._type, radius = this._radius, strokeRadius = hitStroke ? style.getStrokeWidth() / 2 : 0, strokePadding = options._tolerancePadding.add(Path._getStrokePadding(strokeRadius, !style.getStrokeScaling() && strokeMatrix));\n if (type === \"rectangle\") {\n var padding = strokePadding.multiply(2), center = getCornerCenter(this, point, padding);\n if (center) hit = isOnEllipseStroke(point.subtract(center.point), radius, strokePadding, center.quadrant);\n else {\n var rect = new Rectangle(this._size).setCenter(0, 0), outer = rect.expand(padding), inner = rect.expand(padding.negate());\n hit = outer._containsPoint(point) && !inner._containsPoint(point);\n }\n } else hit = isOnEllipseStroke(point, radius, strokePadding);\n }\n return hit ? new HitResult(hitStroke ? \"stroke\" : \"fill\", this) : _hitTestSelf.base.apply(this, arguments);\n }\n };\n }, {\n statics: new function() {\n function createShape(type, point, size, radius, args) {\n var item = Base.create(Shape.prototype);\n item._type = type;\n item._size = size;\n item._radius = radius;\n item._initialize(Base.getNamed(args), point);\n return item;\n }\n return {\n Circle: function() {\n var args = arguments, center = Point.readNamed(args, \"center\"), radius = Base.readNamed(args, \"radius\");\n return createShape(\"circle\", center, new Size(radius * 2), radius, args);\n },\n Rectangle: function() {\n var args = arguments, rect = Rectangle.readNamed(args, \"rectangle\"), radius = Size.min(Size.readNamed(args, \"radius\"), rect.getSize(true).divide(2));\n return createShape(\"rectangle\", rect.getCenter(true), rect.getSize(true), radius, args);\n },\n Ellipse: function() {\n var args = arguments, ellipse = Shape._readEllipse(args), radius = ellipse.radius;\n return createShape(\"ellipse\", ellipse.center, radius.multiply(2), radius, args);\n },\n _readEllipse: function(args) {\n var center, radius;\n if (Base.hasNamed(args, \"radius\")) {\n center = Point.readNamed(args, \"center\");\n radius = Size.readNamed(args, \"radius\");\n } else {\n var rect = Rectangle.readNamed(args, \"rectangle\");\n center = rect.getCenter(true);\n radius = rect.getSize(true).divide(2);\n }\n return {\n center: center,\n radius: radius\n };\n }\n };\n }\n });\n var Raster = Item.extend({\n _class: \"Raster\",\n _applyMatrix: false,\n _canApplyMatrix: false,\n _boundsOptions: {\n stroke: false,\n handle: false\n },\n _serializeFields: {\n crossOrigin: null,\n source: null\n },\n _prioritize: [\n \"crossOrigin\"\n ],\n _smoothing: \"low\",\n beans: true,\n initialize: function Raster(source, position) {\n if (!this._initialize(source, position !== undefined && Point.read(arguments))) {\n var image, type = typeof source, object = type === \"string\" ? document.getElementById(source) : type === \"object\" ? source : null;\n if (object && object !== Item.NO_INSERT) {\n if (object.getContext || object.naturalHeight != null) image = object;\n else if (object) {\n var size = Size.read(arguments);\n if (!size.isZero()) image = CanvasProvider.getCanvas(size);\n }\n }\n if (image) this.setImage(image);\n else this.setSource(source);\n }\n if (!this._size) {\n this._size = new Size();\n this._loaded = false;\n }\n },\n _equals: function(item) {\n return this.getSource() === item.getSource();\n },\n copyContent: function(source) {\n var image = source._image, canvas = source._canvas;\n if (image) this._setImage(image);\n else if (canvas) {\n var copyCanvas = CanvasProvider.getCanvas(source._size);\n copyCanvas.getContext(\"2d\").drawImage(canvas, 0, 0);\n this._setImage(copyCanvas);\n }\n this._crossOrigin = source._crossOrigin;\n },\n getSize: function() {\n var size = this._size;\n return new LinkedSize(size ? size.width : 0, size ? size.height : 0, this, \"setSize\");\n },\n setSize: function(_size, _clear) {\n var size = Size.read(arguments);\n if (!size.equals(this._size)) {\n if (size.width > 0 && size.height > 0) {\n var element = !_clear && this.getElement();\n this._setImage(CanvasProvider.getCanvas(size));\n if (element) this.getContext(true).drawImage(element, 0, 0, size.width, size.height);\n } else {\n if (this._canvas) CanvasProvider.release(this._canvas);\n this._size = size.clone();\n }\n } else if (_clear) this.clear();\n },\n getWidth: function() {\n return this._size ? this._size.width : 0;\n },\n setWidth: function(width) {\n this.setSize(width, this.getHeight());\n },\n getHeight: function() {\n return this._size ? this._size.height : 0;\n },\n setHeight: function(height) {\n this.setSize(this.getWidth(), height);\n },\n getLoaded: function() {\n return this._loaded;\n },\n isEmpty: function() {\n var size = this._size;\n return !size || size.width === 0 && size.height === 0;\n },\n getResolution: function() {\n var matrix = this._matrix, orig = new Point(0, 0).transform(matrix), u = new Point(1, 0).transform(matrix).subtract(orig), v = new Point(0, 1).transform(matrix).subtract(orig);\n return new Size(72 / u.getLength(), 72 / v.getLength());\n },\n getPpi: \"#getResolution\",\n getImage: function() {\n return this._image;\n },\n setImage: function(image) {\n var that = this;\n function emit(event) {\n var view = that.getView(), type = event && event.type || \"load\";\n if (view && that.responds(type)) {\n paper = view._scope;\n that.emit(type, new Event(event));\n }\n }\n this._setImage(image);\n if (this._loaded) setTimeout(emit, 0);\n else if (image) DomEvent.add(image, {\n load: function(event) {\n that._setImage(image);\n emit(event);\n },\n error: emit\n });\n },\n _setImage: function(image) {\n if (this._canvas) CanvasProvider.release(this._canvas);\n if (image && image.getContext) {\n this._image = null;\n this._canvas = image;\n this._loaded = true;\n } else {\n this._image = image;\n this._canvas = null;\n this._loaded = !!(image && image.src && image.complete);\n }\n this._size = new Size(image ? image.naturalWidth || image.width : 0, image ? image.naturalHeight || image.height : 0);\n this._context = null;\n this._changed(1033);\n },\n getCanvas: function() {\n if (!this._canvas) {\n var ctx = CanvasProvider.getContext(this._size);\n try {\n if (this._image) ctx.drawImage(this._image, 0, 0);\n this._canvas = ctx.canvas;\n } catch (e) {\n CanvasProvider.release(ctx);\n }\n }\n return this._canvas;\n },\n setCanvas: \"#setImage\",\n getContext: function(_change) {\n if (!this._context) this._context = this.getCanvas().getContext(\"2d\");\n if (_change) {\n this._image = null;\n this._changed(1025);\n }\n return this._context;\n },\n setContext: function(context) {\n this._context = context;\n },\n getSource: function() {\n var image = this._image;\n return image && image.src || this.toDataURL();\n },\n setSource: function(src) {\n var image = new self1.Image(), crossOrigin = this._crossOrigin;\n if (crossOrigin) image.crossOrigin = crossOrigin;\n if (src) image.src = src;\n this.setImage(image);\n },\n getCrossOrigin: function() {\n var image = this._image;\n return image && image.crossOrigin || this._crossOrigin || \"\";\n },\n setCrossOrigin: function(crossOrigin) {\n this._crossOrigin = crossOrigin;\n var image = this._image;\n if (image) image.crossOrigin = crossOrigin;\n },\n getSmoothing: function() {\n return this._smoothing;\n },\n setSmoothing: function(smoothing) {\n this._smoothing = typeof smoothing === \"string\" ? smoothing : smoothing ? \"low\" : \"off\";\n this._changed(257);\n },\n getElement: function() {\n return this._canvas || this._loaded && this._image;\n }\n }, {\n beans: false,\n getSubCanvas: function() {\n var rect = Rectangle.read(arguments), ctx = CanvasProvider.getContext(rect.getSize());\n ctx.drawImage(this.getCanvas(), rect.x, rect.y, rect.width, rect.height, 0, 0, rect.width, rect.height);\n return ctx.canvas;\n },\n getSubRaster: function() {\n var rect = Rectangle.read(arguments), raster = new Raster(Item.NO_INSERT);\n raster._setImage(this.getSubCanvas(rect));\n raster.translate(rect.getCenter().subtract(this.getSize().divide(2)));\n raster._matrix.prepend(this._matrix);\n raster.insertAbove(this);\n return raster;\n },\n toDataURL: function() {\n var image = this._image, src = image && image.src;\n if (/^data:/.test(src)) return src;\n var canvas = this.getCanvas();\n return canvas ? canvas.toDataURL.apply(canvas, arguments) : null;\n },\n drawImage: function(image) {\n var point = Point.read(arguments, 1);\n this.getContext(true).drawImage(image, point.x, point.y);\n },\n getAverageColor: function(object) {\n var bounds, path;\n if (!object) bounds = this.getBounds();\n else if (object instanceof PathItem) {\n path = object;\n bounds = object.getBounds();\n } else if (typeof object === \"object\") {\n if (\"width\" in object) bounds = new Rectangle(object);\n else if (\"x\" in object) bounds = new Rectangle(object.x - 0.5, object.y - 0.5, 1, 1);\n }\n if (!bounds) return null;\n var sampleSize = 32, width = Math.min(bounds.width, sampleSize), height = Math.min(bounds.height, sampleSize);\n var ctx = Raster._sampleContext;\n if (!ctx) ctx = Raster._sampleContext = CanvasProvider.getContext(new Size(sampleSize));\n else ctx.clearRect(0, 0, sampleSize + 1, sampleSize + 1);\n ctx.save();\n var matrix = new Matrix().scale(width / bounds.width, height / bounds.height).translate(-bounds.x, -bounds.y);\n matrix.applyToContext(ctx);\n if (path) path.draw(ctx, new Base({\n clip: true,\n matrices: [\n matrix\n ]\n }));\n this._matrix.applyToContext(ctx);\n var element = this.getElement(), size = this._size;\n if (element) ctx.drawImage(element, -size.width / 2, -size.height / 2);\n ctx.restore();\n var pixels = ctx.getImageData(0.5, 0.5, Math.ceil(width), Math.ceil(height)).data, channels = [\n 0,\n 0,\n 0\n ], total = 0;\n for(var i = 0, l = pixels.length; i < l; i += 4){\n var alpha = pixels[i + 3];\n total += alpha;\n alpha /= 255;\n channels[0] += pixels[i] * alpha;\n channels[1] += pixels[i + 1] * alpha;\n channels[2] += pixels[i + 2] * alpha;\n }\n for(var i = 0; i < 3; i++)channels[i] /= total;\n return total ? Color.read(channels) : null;\n },\n getPixel: function() {\n var point = Point.read(arguments);\n var data = this.getContext().getImageData(point.x, point.y, 1, 1).data;\n return new Color(\"rgb\", [\n data[0] / 255,\n data[1] / 255,\n data[2] / 255\n ], data[3] / 255);\n },\n setPixel: function() {\n var args = arguments, point = Point.read(args), color = Color.read(args), components = color._convert(\"rgb\"), alpha = color._alpha, ctx = this.getContext(true), imageData = ctx.createImageData(1, 1), data = imageData.data;\n data[0] = components[0] * 255;\n data[1] = components[1] * 255;\n data[2] = components[2] * 255;\n data[3] = alpha != null ? alpha * 255 : 255;\n ctx.putImageData(imageData, point.x, point.y);\n },\n clear: function() {\n var size = this._size;\n this.getContext(true).clearRect(0, 0, size.width + 1, size.height + 1);\n },\n createImageData: function() {\n var size = Size.read(arguments);\n return this.getContext().createImageData(size.width, size.height);\n },\n getImageData: function() {\n var rect = Rectangle.read(arguments);\n if (rect.isEmpty()) rect = new Rectangle(this._size);\n return this.getContext().getImageData(rect.x, rect.y, rect.width, rect.height);\n },\n putImageData: function(data) {\n var point = Point.read(arguments, 1);\n this.getContext(true).putImageData(data, point.x, point.y);\n },\n setImageData: function(data) {\n this.setSize(data);\n this.getContext(true).putImageData(data, 0, 0);\n },\n _getBounds: function(matrix, options) {\n var rect = new Rectangle(this._size).setCenter(0, 0);\n return matrix ? matrix._transformBounds(rect) : rect;\n },\n _hitTestSelf: function(point) {\n if (this._contains(point)) {\n var that = this;\n return new HitResult(\"pixel\", that, {\n offset: point.add(that._size.divide(2)).round(),\n color: {\n get: function() {\n return that.getPixel(this.offset);\n }\n }\n });\n }\n },\n _draw: function(ctx, param, viewMatrix) {\n var element = this.getElement();\n if (element && element.width > 0 && element.height > 0) {\n ctx.globalAlpha = Numerical.clamp(this._opacity, 0, 1);\n this._setStyles(ctx, param, viewMatrix);\n var smoothing = this._smoothing, disabled = smoothing === \"off\";\n DomElement.setPrefixed(ctx, disabled ? \"imageSmoothingEnabled\" : \"imageSmoothingQuality\", disabled ? false : smoothing);\n ctx.drawImage(element, -this._size.width / 2, -this._size.height / 2);\n }\n },\n _canComposite: function() {\n return true;\n }\n });\n var SymbolItem = Item.extend({\n _class: \"SymbolItem\",\n _applyMatrix: false,\n _canApplyMatrix: false,\n _boundsOptions: {\n stroke: true\n },\n _serializeFields: {\n symbol: null\n },\n initialize: function SymbolItem(arg0, arg1) {\n if (!this._initialize(arg0, arg1 !== undefined && Point.read(arguments, 1))) this.setDefinition(arg0 instanceof SymbolDefinition ? arg0 : new SymbolDefinition(arg0));\n },\n _equals: function(item) {\n return this._definition === item._definition;\n },\n copyContent: function(source) {\n this.setDefinition(source._definition);\n },\n getDefinition: function() {\n return this._definition;\n },\n setDefinition: function(definition) {\n this._definition = definition;\n this._changed(9);\n },\n getSymbol: \"#getDefinition\",\n setSymbol: \"#setDefinition\",\n isEmpty: function() {\n return this._definition._item.isEmpty();\n },\n _getBounds: function(matrix, options) {\n var item = this._definition._item;\n return item._getCachedBounds(item._matrix.prepended(matrix), options);\n },\n _hitTestSelf: function(point, options, viewMatrix) {\n var opts = options.extend({\n all: false\n });\n var res = this._definition._item._hitTest(point, opts, viewMatrix);\n if (res) res.item = this;\n return res;\n },\n _draw: function(ctx, param) {\n this._definition._item.draw(ctx, param);\n }\n });\n var SymbolDefinition = Base.extend({\n _class: \"SymbolDefinition\",\n initialize: function SymbolDefinition(item, dontCenter) {\n this._id = UID.get();\n this.project = paper.project;\n if (item) this.setItem(item, dontCenter);\n },\n _serialize: function(options, dictionary) {\n return dictionary.add(this, function() {\n return Base.serialize([\n this._class,\n this._item\n ], options, false, dictionary);\n });\n },\n _changed: function(flags) {\n if (flags & 8) Item._clearBoundsCache(this);\n if (flags & 1) this.project._changed(flags);\n },\n getItem: function() {\n return this._item;\n },\n setItem: function(item, _dontCenter) {\n if (item._symbol) item = item.clone();\n if (this._item) this._item._symbol = null;\n this._item = item;\n item.remove();\n item.setSelected(false);\n if (!_dontCenter) item.setPosition(new Point());\n item._symbol = this;\n this._changed(9);\n },\n getDefinition: \"#getItem\",\n setDefinition: \"#setItem\",\n place: function(position) {\n return new SymbolItem(this, position);\n },\n clone: function() {\n return new SymbolDefinition(this._item.clone(false));\n },\n equals: function(symbol) {\n return symbol === this || symbol && this._item.equals(symbol._item) || false;\n }\n });\n var HitResult = Base.extend({\n _class: \"HitResult\",\n initialize: function HitResult(type, item, values) {\n this.type = type;\n this.item = item;\n if (values) this.inject(values);\n },\n statics: {\n getOptions: function(args) {\n var options = args && Base.read(args);\n return new Base({\n type: null,\n tolerance: paper.settings.hitTolerance,\n fill: !options,\n stroke: !options,\n segments: !options,\n handles: false,\n ends: false,\n position: false,\n center: false,\n bounds: false,\n guides: false,\n selected: false\n }, options);\n }\n }\n });\n var Segment = Base.extend({\n _class: \"Segment\",\n beans: true,\n _selection: 0,\n initialize: function Segment(arg0, arg1, arg2, arg3, arg4, arg5) {\n var count = arguments.length, point, handleIn, handleOut, selection;\n if (count > 0) {\n if (arg0 == null || typeof arg0 === \"object\") {\n if (count === 1 && arg0 && \"point\" in arg0) {\n point = arg0.point;\n handleIn = arg0.handleIn;\n handleOut = arg0.handleOut;\n selection = arg0.selection;\n } else {\n point = arg0;\n handleIn = arg1;\n handleOut = arg2;\n selection = arg3;\n }\n } else {\n point = [\n arg0,\n arg1\n ];\n handleIn = arg2 !== undefined ? [\n arg2,\n arg3\n ] : null;\n handleOut = arg4 !== undefined ? [\n arg4,\n arg5\n ] : null;\n }\n }\n new SegmentPoint(point, this, \"_point\");\n new SegmentPoint(handleIn, this, \"_handleIn\");\n new SegmentPoint(handleOut, this, \"_handleOut\");\n if (selection) this.setSelection(selection);\n },\n _serialize: function(options, dictionary) {\n var point = this._point, selection = this._selection, obj = selection || this.hasHandles() ? [\n point,\n this._handleIn,\n this._handleOut\n ] : point;\n if (selection) obj.push(selection);\n return Base.serialize(obj, options, true, dictionary);\n },\n _changed: function(point) {\n var path = this._path;\n if (!path) return;\n var curves = path._curves, index = this._index, curve;\n if (curves) {\n if ((!point || point === this._point || point === this._handleIn) && (curve = index > 0 ? curves[index - 1] : path._closed ? curves[curves.length - 1] : null)) curve._changed();\n if ((!point || point === this._point || point === this._handleOut) && (curve = curves[index])) curve._changed();\n }\n path._changed(41);\n },\n getPoint: function() {\n return this._point;\n },\n setPoint: function() {\n this._point.set(Point.read(arguments));\n },\n getHandleIn: function() {\n return this._handleIn;\n },\n setHandleIn: function() {\n this._handleIn.set(Point.read(arguments));\n },\n getHandleOut: function() {\n return this._handleOut;\n },\n setHandleOut: function() {\n this._handleOut.set(Point.read(arguments));\n },\n hasHandles: function() {\n return !this._handleIn.isZero() || !this._handleOut.isZero();\n },\n isSmooth: function() {\n var handleIn = this._handleIn, handleOut = this._handleOut;\n return !handleIn.isZero() && !handleOut.isZero() && handleIn.isCollinear(handleOut);\n },\n clearHandles: function() {\n this._handleIn._set(0, 0);\n this._handleOut._set(0, 0);\n },\n getSelection: function() {\n return this._selection;\n },\n setSelection: function(selection) {\n var oldSelection = this._selection, path = this._path;\n this._selection = selection = selection || 0;\n if (path && selection !== oldSelection) {\n path._updateSelection(this, oldSelection, selection);\n path._changed(257);\n }\n },\n _changeSelection: function(flag, selected) {\n var selection = this._selection;\n this.setSelection(selected ? selection | flag : selection & ~flag);\n },\n isSelected: function() {\n return !!(this._selection & 7);\n },\n setSelected: function(selected) {\n this._changeSelection(7, selected);\n },\n getIndex: function() {\n return this._index !== undefined ? this._index : null;\n },\n getPath: function() {\n return this._path || null;\n },\n getCurve: function() {\n var path = this._path, index = this._index;\n if (path) {\n if (index > 0 && !path._closed && index === path._segments.length - 1) index--;\n return path.getCurves()[index] || null;\n }\n return null;\n },\n getLocation: function() {\n var curve = this.getCurve();\n return curve ? new CurveLocation(curve, this === curve._segment1 ? 0 : 1) : null;\n },\n getNext: function() {\n var segments = this._path && this._path._segments;\n return segments && (segments[this._index + 1] || this._path._closed && segments[0]) || null;\n },\n smooth: function(options, _first, _last) {\n var opts = options || {}, type = opts.type, factor = opts.factor, prev = this.getPrevious(), next = this.getNext(), p0 = (prev || this)._point, p1 = this._point, p2 = (next || this)._point, d1 = p0.getDistance(p1), d2 = p1.getDistance(p2);\n if (!type || type === \"catmull-rom\") {\n var a = factor === undefined ? 0.5 : factor, d1_a = Math.pow(d1, a), d1_2a = d1_a * d1_a, d2_a = Math.pow(d2, a), d2_2a = d2_a * d2_a;\n if (!_first && prev) {\n var A = 2 * d2_2a + 3 * d2_a * d1_a + d1_2a, N = 3 * d2_a * (d2_a + d1_a);\n this.setHandleIn(N !== 0 ? new Point((d2_2a * p0._x + A * p1._x - d1_2a * p2._x) / N - p1._x, (d2_2a * p0._y + A * p1._y - d1_2a * p2._y) / N - p1._y) : new Point());\n }\n if (!_last && next) {\n var A = 2 * d1_2a + 3 * d1_a * d2_a + d2_2a, N = 3 * d1_a * (d1_a + d2_a);\n this.setHandleOut(N !== 0 ? new Point((d1_2a * p2._x + A * p1._x - d2_2a * p0._x) / N - p1._x, (d1_2a * p2._y + A * p1._y - d2_2a * p0._y) / N - p1._y) : new Point());\n }\n } else if (type === \"geometric\") {\n if (prev && next) {\n var vector = p0.subtract(p2), t = factor === undefined ? 0.4 : factor, k = t * d1 / (d1 + d2);\n if (!_first) this.setHandleIn(vector.multiply(k));\n if (!_last) this.setHandleOut(vector.multiply(k - t));\n }\n } else throw new Error(\"Smoothing method '\" + type + \"' not supported.\");\n },\n getPrevious: function() {\n var segments = this._path && this._path._segments;\n return segments && (segments[this._index - 1] || this._path._closed && segments[segments.length - 1]) || null;\n },\n isFirst: function() {\n return !this._index;\n },\n isLast: function() {\n var path = this._path;\n return path && this._index === path._segments.length - 1 || false;\n },\n reverse: function() {\n var handleIn = this._handleIn, handleOut = this._handleOut, tmp = handleIn.clone();\n handleIn.set(handleOut);\n handleOut.set(tmp);\n },\n reversed: function() {\n return new Segment(this._point, this._handleOut, this._handleIn);\n },\n remove: function() {\n return this._path ? !!this._path.removeSegment(this._index) : false;\n },\n clone: function() {\n return new Segment(this._point, this._handleIn, this._handleOut);\n },\n equals: function(segment) {\n return segment === this || segment && this._class === segment._class && this._point.equals(segment._point) && this._handleIn.equals(segment._handleIn) && this._handleOut.equals(segment._handleOut) || false;\n },\n toString: function() {\n var parts = [\n \"point: \" + this._point\n ];\n if (!this._handleIn.isZero()) parts.push(\"handleIn: \" + this._handleIn);\n if (!this._handleOut.isZero()) parts.push(\"handleOut: \" + this._handleOut);\n return \"{ \" + parts.join(\", \") + \" }\";\n },\n transform: function(matrix) {\n this._transformCoordinates(matrix, new Array(6), true);\n this._changed();\n },\n interpolate: function(from, to, factor) {\n var u = 1 - factor, v = factor, point1 = from._point, point2 = to._point, handleIn1 = from._handleIn, handleIn2 = to._handleIn, handleOut2 = to._handleOut, handleOut1 = from._handleOut;\n this._point._set(u * point1._x + v * point2._x, u * point1._y + v * point2._y, true);\n this._handleIn._set(u * handleIn1._x + v * handleIn2._x, u * handleIn1._y + v * handleIn2._y, true);\n this._handleOut._set(u * handleOut1._x + v * handleOut2._x, u * handleOut1._y + v * handleOut2._y, true);\n this._changed();\n },\n _transformCoordinates: function(matrix, coords, change) {\n var point = this._point, handleIn = !change || !this._handleIn.isZero() ? this._handleIn : null, handleOut = !change || !this._handleOut.isZero() ? this._handleOut : null, x = point._x, y = point._y, i = 2;\n coords[0] = x;\n coords[1] = y;\n if (handleIn) {\n coords[i++] = handleIn._x + x;\n coords[i++] = handleIn._y + y;\n }\n if (handleOut) {\n coords[i++] = handleOut._x + x;\n coords[i++] = handleOut._y + y;\n }\n if (matrix) {\n matrix._transformCoordinates(coords, coords, i / 2);\n x = coords[0];\n y = coords[1];\n if (change) {\n point._x = x;\n point._y = y;\n i = 2;\n if (handleIn) {\n handleIn._x = coords[i++] - x;\n handleIn._y = coords[i++] - y;\n }\n if (handleOut) {\n handleOut._x = coords[i++] - x;\n handleOut._y = coords[i++] - y;\n }\n } else {\n if (!handleIn) {\n coords[i++] = x;\n coords[i++] = y;\n }\n if (!handleOut) {\n coords[i++] = x;\n coords[i++] = y;\n }\n }\n }\n return coords;\n }\n });\n var SegmentPoint = Point.extend({\n initialize: function SegmentPoint(point, owner, key) {\n var x, y, selected;\n if (!point) x = y = 0;\n else if ((x = point[0]) !== undefined) y = point[1];\n else {\n var pt = point;\n if ((x = pt.x) === undefined) {\n pt = Point.read(arguments);\n x = pt.x;\n }\n y = pt.y;\n selected = pt.selected;\n }\n this._x = x;\n this._y = y;\n this._owner = owner;\n owner[key] = this;\n if (selected) this.setSelected(true);\n },\n _set: function(x, y) {\n this._x = x;\n this._y = y;\n this._owner._changed(this);\n return this;\n },\n getX: function() {\n return this._x;\n },\n setX: function(x) {\n this._x = x;\n this._owner._changed(this);\n },\n getY: function() {\n return this._y;\n },\n setY: function(y) {\n this._y = y;\n this._owner._changed(this);\n },\n isZero: function() {\n var isZero = Numerical.isZero;\n return isZero(this._x) && isZero(this._y);\n },\n isSelected: function() {\n return !!(this._owner._selection & this._getSelection());\n },\n setSelected: function(selected) {\n this._owner._changeSelection(this._getSelection(), selected);\n },\n _getSelection: function() {\n var owner = this._owner;\n return this === owner._point ? 1 : this === owner._handleIn ? 2 : this === owner._handleOut ? 4 : 0;\n }\n });\n var Curve = Base.extend({\n _class: \"Curve\",\n beans: true,\n initialize: function Curve(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {\n var count = arguments.length, seg1, seg2, point1, point2, handle1, handle2;\n if (count === 3) {\n this._path = arg0;\n seg1 = arg1;\n seg2 = arg2;\n } else if (!count) {\n seg1 = new Segment();\n seg2 = new Segment();\n } else if (count === 1) {\n if (\"segment1\" in arg0) {\n seg1 = new Segment(arg0.segment1);\n seg2 = new Segment(arg0.segment2);\n } else if (\"point1\" in arg0) {\n point1 = arg0.point1;\n handle1 = arg0.handle1;\n handle2 = arg0.handle2;\n point2 = arg0.point2;\n } else if (Array.isArray(arg0)) {\n point1 = [\n arg0[0],\n arg0[1]\n ];\n point2 = [\n arg0[6],\n arg0[7]\n ];\n handle1 = [\n arg0[2] - arg0[0],\n arg0[3] - arg0[1]\n ];\n handle2 = [\n arg0[4] - arg0[6],\n arg0[5] - arg0[7]\n ];\n }\n } else if (count === 2) {\n seg1 = new Segment(arg0);\n seg2 = new Segment(arg1);\n } else if (count === 4) {\n point1 = arg0;\n handle1 = arg1;\n handle2 = arg2;\n point2 = arg3;\n } else if (count === 8) {\n point1 = [\n arg0,\n arg1\n ];\n point2 = [\n arg6,\n arg7\n ];\n handle1 = [\n arg2 - arg0,\n arg3 - arg1\n ];\n handle2 = [\n arg4 - arg6,\n arg5 - arg7\n ];\n }\n this._segment1 = seg1 || new Segment(point1, null, handle1);\n this._segment2 = seg2 || new Segment(point2, handle2, null);\n },\n _serialize: function(options, dictionary) {\n return Base.serialize(this.hasHandles() ? [\n this.getPoint1(),\n this.getHandle1(),\n this.getHandle2(),\n this.getPoint2()\n ] : [\n this.getPoint1(),\n this.getPoint2()\n ], options, true, dictionary);\n },\n _changed: function() {\n this._length = this._bounds = undefined;\n },\n clone: function() {\n return new Curve(this._segment1, this._segment2);\n },\n toString: function() {\n var parts = [\n \"point1: \" + this._segment1._point\n ];\n if (!this._segment1._handleOut.isZero()) parts.push(\"handle1: \" + this._segment1._handleOut);\n if (!this._segment2._handleIn.isZero()) parts.push(\"handle2: \" + this._segment2._handleIn);\n parts.push(\"point2: \" + this._segment2._point);\n return \"{ \" + parts.join(\", \") + \" }\";\n },\n classify: function() {\n return Curve.classify(this.getValues());\n },\n remove: function() {\n var removed = false;\n if (this._path) {\n var segment2 = this._segment2, handleOut = segment2._handleOut;\n removed = segment2.remove();\n if (removed) this._segment1._handleOut.set(handleOut);\n }\n return removed;\n },\n getPoint1: function() {\n return this._segment1._point;\n },\n setPoint1: function() {\n this._segment1._point.set(Point.read(arguments));\n },\n getPoint2: function() {\n return this._segment2._point;\n },\n setPoint2: function() {\n this._segment2._point.set(Point.read(arguments));\n },\n getHandle1: function() {\n return this._segment1._handleOut;\n },\n setHandle1: function() {\n this._segment1._handleOut.set(Point.read(arguments));\n },\n getHandle2: function() {\n return this._segment2._handleIn;\n },\n setHandle2: function() {\n this._segment2._handleIn.set(Point.read(arguments));\n },\n getSegment1: function() {\n return this._segment1;\n },\n getSegment2: function() {\n return this._segment2;\n },\n getPath: function() {\n return this._path;\n },\n getIndex: function() {\n return this._segment1._index;\n },\n getNext: function() {\n var curves = this._path && this._path._curves;\n return curves && (curves[this._segment1._index + 1] || this._path._closed && curves[0]) || null;\n },\n getPrevious: function() {\n var curves = this._path && this._path._curves;\n return curves && (curves[this._segment1._index - 1] || this._path._closed && curves[curves.length - 1]) || null;\n },\n isFirst: function() {\n return !this._segment1._index;\n },\n isLast: function() {\n var path = this._path;\n return path && this._segment1._index === path._curves.length - 1 || false;\n },\n isSelected: function() {\n return this.getPoint1().isSelected() && this.getHandle1().isSelected() && this.getHandle2().isSelected() && this.getPoint2().isSelected();\n },\n setSelected: function(selected) {\n this.getPoint1().setSelected(selected);\n this.getHandle1().setSelected(selected);\n this.getHandle2().setSelected(selected);\n this.getPoint2().setSelected(selected);\n },\n getValues: function(matrix) {\n return Curve.getValues(this._segment1, this._segment2, matrix);\n },\n getPoints: function() {\n var coords = this.getValues(), points = [];\n for(var i = 0; i < 8; i += 2)points.push(new Point(coords[i], coords[i + 1]));\n return points;\n }\n }, {\n getLength: function() {\n if (this._length == null) this._length = Curve.getLength(this.getValues(), 0, 1);\n return this._length;\n },\n getArea: function() {\n return Curve.getArea(this.getValues());\n },\n getLine: function() {\n return new Line(this._segment1._point, this._segment2._point);\n },\n getPart: function(from, to) {\n return new Curve(Curve.getPart(this.getValues(), from, to));\n },\n getPartLength: function(from, to) {\n return Curve.getLength(this.getValues(), from, to);\n },\n divideAt: function(location) {\n return this.divideAtTime(location && location.curve === this ? location.time : this.getTimeAt(location));\n },\n divideAtTime: function(time, _setHandles) {\n var tMin = 1e-8, tMax = 1 - tMin, res = null;\n if (time >= tMin && time <= tMax) {\n var parts = Curve.subdivide(this.getValues(), time), left = parts[0], right = parts[1], setHandles = _setHandles || this.hasHandles(), seg1 = this._segment1, seg2 = this._segment2, path = this._path;\n if (setHandles) {\n seg1._handleOut._set(left[2] - left[0], left[3] - left[1]);\n seg2._handleIn._set(right[4] - right[6], right[5] - right[7]);\n }\n var x = left[6], y = left[7], segment = new Segment(new Point(x, y), setHandles && new Point(left[4] - x, left[5] - y), setHandles && new Point(right[2] - x, right[3] - y));\n if (path) {\n path.insert(seg1._index + 1, segment);\n res = this.getNext();\n } else {\n this._segment2 = segment;\n this._changed();\n res = new Curve(segment, seg2);\n }\n }\n return res;\n },\n splitAt: function(location) {\n var path = this._path;\n return path ? path.splitAt(location) : null;\n },\n splitAtTime: function(time) {\n return this.splitAt(this.getLocationAtTime(time));\n },\n divide: function(offset, isTime) {\n return this.divideAtTime(offset === undefined ? 0.5 : isTime ? offset : this.getTimeAt(offset));\n },\n split: function(offset, isTime) {\n return this.splitAtTime(offset === undefined ? 0.5 : isTime ? offset : this.getTimeAt(offset));\n },\n reversed: function() {\n return new Curve(this._segment2.reversed(), this._segment1.reversed());\n },\n clearHandles: function() {\n this._segment1._handleOut._set(0, 0);\n this._segment2._handleIn._set(0, 0);\n },\n statics: {\n getValues: function(segment1, segment2, matrix, straight) {\n var p1 = segment1._point, h1 = segment1._handleOut, h2 = segment2._handleIn, p2 = segment2._point, x1 = p1.x, y1 = p1.y, x2 = p2.x, y2 = p2.y, values = straight ? [\n x1,\n y1,\n x1,\n y1,\n x2,\n y2,\n x2,\n y2\n ] : [\n x1,\n y1,\n x1 + h1._x,\n y1 + h1._y,\n x2 + h2._x,\n y2 + h2._y,\n x2,\n y2\n ];\n if (matrix) matrix._transformCoordinates(values, values, 4);\n return values;\n },\n subdivide: function(v, t) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7];\n if (t === undefined) t = 0.5;\n var u = 1 - t, x4 = u * x0 + t * x1, y4 = u * y0 + t * y1, x5 = u * x1 + t * x2, y5 = u * y1 + t * y2, x6 = u * x2 + t * x3, y6 = u * y2 + t * y3, x7 = u * x4 + t * x5, y7 = u * y4 + t * y5, x8 = u * x5 + t * x6, y8 = u * y5 + t * y6, x9 = u * x7 + t * x8, y9 = u * y7 + t * y8;\n return [\n [\n x0,\n y0,\n x4,\n y4,\n x7,\n y7,\n x9,\n y9\n ],\n [\n x9,\n y9,\n x8,\n y8,\n x6,\n y6,\n x3,\n y3\n ]\n ];\n },\n getMonoCurves: function(v, dir) {\n var curves = [], io = dir ? 0 : 1, o0 = v[io + 0], o1 = v[io + 2], o2 = v[io + 4], o3 = v[io + 6];\n if (o0 >= o1 === o1 >= o2 && o1 >= o2 === o2 >= o3 || Curve.isStraight(v)) curves.push(v);\n else {\n var a = 3 * (o1 - o2) - o0 + o3, b = 2 * (o0 + o2) - 4 * o1, c = o1 - o0, tMin = 1e-8, tMax = 1 - tMin, roots = [], n = Numerical.solveQuadratic(a, b, c, roots, tMin, tMax);\n if (!n) curves.push(v);\n else {\n roots.sort();\n var t = roots[0], parts = Curve.subdivide(v, t);\n curves.push(parts[0]);\n if (n > 1) {\n t = (roots[1] - t) / (1 - t);\n parts = Curve.subdivide(parts[1], t);\n curves.push(parts[0]);\n }\n curves.push(parts[1]);\n }\n }\n return curves;\n },\n solveCubic: function(v, coord, val, roots, min, max) {\n var v0 = v[coord], v1 = v[coord + 2], v2 = v[coord + 4], v3 = v[coord + 6], res = 0;\n if (!(v0 < val && v3 < val && v1 < val && v2 < val || v0 > val && v3 > val && v1 > val && v2 > val)) {\n var c = 3 * (v1 - v0), b = 3 * (v2 - v1) - c, a = v3 - v0 - c - b;\n res = Numerical.solveCubic(a, b, c, v0 - val, roots, min, max);\n }\n return res;\n },\n getTimeOf: function(v, point) {\n var p0 = new Point(v[0], v[1]), p3 = new Point(v[6], v[7]), epsilon = 1e-12, geomEpsilon = 1e-7, t = point.isClose(p0, epsilon) ? 0 : point.isClose(p3, epsilon) ? 1 : null;\n if (t === null) {\n var coords = [\n point.x,\n point.y\n ], roots = [];\n for(var c = 0; c < 2; c++){\n var count = Curve.solveCubic(v, c, coords[c], roots, 0, 1);\n for(var i = 0; i < count; i++){\n var u = roots[i];\n if (point.isClose(Curve.getPoint(v, u), geomEpsilon)) return u;\n }\n }\n }\n return point.isClose(p0, geomEpsilon) ? 0 : point.isClose(p3, geomEpsilon) ? 1 : null;\n },\n getNearestTime: function(v, point) {\n if (Curve.isStraight(v)) {\n var x0 = v[0], y0 = v[1], x3 = v[6], y3 = v[7], vx = x3 - x0, vy = y3 - y0, det = vx * vx + vy * vy;\n if (det === 0) return 0;\n var u = ((point.x - x0) * vx + (point.y - y0) * vy) / det;\n return u < 1e-12 ? 0 : u > 0.999999999999 ? 1 : Curve.getTimeOf(v, new Point(x0 + u * vx, y0 + u * vy));\n }\n var count = 100, minDist = Infinity, minT = 0;\n function refine(t) {\n if (t >= 0 && t <= 1) {\n var dist = point.getDistance(Curve.getPoint(v, t), true);\n if (dist < minDist) {\n minDist = dist;\n minT = t;\n return true;\n }\n }\n }\n for(var i = 0; i <= count; i++)refine(i / count);\n var step = 1 / (count * 2);\n while(step > 1e-8)if (!refine(minT - step) && !refine(minT + step)) step /= 2;\n return minT;\n },\n getPart: function(v, from, to) {\n var flip = from > to;\n if (flip) {\n var tmp = from;\n from = to;\n to = tmp;\n }\n if (from > 0) v = Curve.subdivide(v, from)[1];\n if (to < 1) v = Curve.subdivide(v, (to - from) / (1 - from))[0];\n return flip ? [\n v[6],\n v[7],\n v[4],\n v[5],\n v[2],\n v[3],\n v[0],\n v[1]\n ] : v;\n },\n isFlatEnough: function(v, flatness) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], ux = 3 * x1 - 2 * x0 - x3, uy = 3 * y1 - 2 * y0 - y3, vx = 3 * x2 - 2 * x3 - x0, vy = 3 * y2 - 2 * y3 - y0;\n return Math.max(ux * ux, vx * vx) + Math.max(uy * uy, vy * vy) <= 16 * flatness * flatness;\n },\n getArea: function(v) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7];\n return 3 * ((y3 - y0) * (x1 + x2) - (x3 - x0) * (y1 + y2) + y1 * (x0 - x2) - x1 * (y0 - y2) + y3 * (x2 + x0 / 3) - x3 * (y2 + y0 / 3)) / 20;\n },\n getBounds: function(v) {\n var min = v.slice(0, 2), max = min.slice(), roots = [\n 0,\n 0\n ];\n for(var i = 0; i < 2; i++)Curve._addBounds(v[i], v[i + 2], v[i + 4], v[i + 6], i, 0, min, max, roots);\n return new Rectangle(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n },\n _addBounds: function(v0, v1, v2, v3, coord, padding, min, max, roots) {\n function add(value, padding) {\n var left = value - padding, right = value + padding;\n if (left < min[coord]) min[coord] = left;\n if (right > max[coord]) max[coord] = right;\n }\n padding /= 2;\n var minPad = min[coord] + padding, maxPad = max[coord] - padding;\n if (v0 < minPad || v1 < minPad || v2 < minPad || v3 < minPad || v0 > maxPad || v1 > maxPad || v2 > maxPad || v3 > maxPad) {\n if (v1 < v0 != v1 < v3 && v2 < v0 != v2 < v3) {\n add(v0, 0);\n add(v3, 0);\n } else {\n var a = 3 * (v1 - v2) - v0 + v3, b = 2 * (v0 + v2) - 4 * v1, c = v1 - v0, count = Numerical.solveQuadratic(a, b, c, roots), tMin = 1e-8, tMax = 1 - tMin;\n add(v3, 0);\n for(var i = 0; i < count; i++){\n var t = roots[i], u = 1 - t;\n if (tMin <= t && t <= tMax) add(u * u * u * v0 + 3 * u * u * t * v1 + 3 * u * t * t * v2 + t * t * t * v3, padding);\n }\n }\n }\n }\n }\n }, Base.each([\n \"getBounds\",\n \"getStrokeBounds\",\n \"getHandleBounds\"\n ], function(name) {\n this[name] = function() {\n if (!this._bounds) this._bounds = {};\n var bounds = this._bounds[name];\n if (!bounds) bounds = this._bounds[name] = Path[name]([\n this._segment1,\n this._segment2\n ], false, this._path);\n return bounds.clone();\n };\n }, {}), Base.each({\n isStraight: function(p1, h1, h2, p2) {\n if (h1.isZero() && h2.isZero()) return true;\n else {\n var v = p2.subtract(p1);\n if (v.isZero()) return false;\n else if (v.isCollinear(h1) && v.isCollinear(h2)) {\n var l = new Line(p1, p2), epsilon = 1e-7;\n if (l.getDistance(p1.add(h1)) < epsilon && l.getDistance(p2.add(h2)) < epsilon) {\n var div = v.dot(v), s1 = v.dot(h1) / div, s2 = v.dot(h2) / div;\n return s1 >= 0 && s1 <= 1 && s2 <= 0 && s2 >= -1;\n }\n }\n }\n return false;\n },\n isLinear: function(p1, h1, h2, p2) {\n var third = p2.subtract(p1).divide(3);\n return h1.equals(third) && h2.negate().equals(third);\n }\n }, function(test, name) {\n this[name] = function(epsilon) {\n var seg1 = this._segment1, seg2 = this._segment2;\n return test(seg1._point, seg1._handleOut, seg2._handleIn, seg2._point, epsilon);\n };\n this.statics[name] = function(v, epsilon) {\n var x0 = v[0], y0 = v[1], x3 = v[6], y3 = v[7];\n return test(new Point(x0, y0), new Point(v[2] - x0, v[3] - y0), new Point(v[4] - x3, v[5] - y3), new Point(x3, y3), epsilon);\n };\n }, {\n statics: {},\n hasHandles: function() {\n return !this._segment1._handleOut.isZero() || !this._segment2._handleIn.isZero();\n },\n hasLength: function(epsilon) {\n return (!this.getPoint1().equals(this.getPoint2()) || this.hasHandles()) && this.getLength() > (epsilon || 0);\n },\n isCollinear: function(curve) {\n return curve && this.isStraight() && curve.isStraight() && this.getLine().isCollinear(curve.getLine());\n },\n isHorizontal: function() {\n return this.isStraight() && Math.abs(this.getTangentAtTime(0.5).y) < 1e-8;\n },\n isVertical: function() {\n return this.isStraight() && Math.abs(this.getTangentAtTime(0.5).x) < 1e-8;\n }\n }), {\n beans: false,\n getLocationAt: function(offset, _isTime) {\n return this.getLocationAtTime(_isTime ? offset : this.getTimeAt(offset));\n },\n getLocationAtTime: function(t) {\n return t != null && t >= 0 && t <= 1 ? new CurveLocation(this, t) : null;\n },\n getTimeAt: function(offset, start) {\n return Curve.getTimeAt(this.getValues(), offset, start);\n },\n getParameterAt: \"#getTimeAt\",\n getTimesWithTangent: function() {\n var tangent = Point.read(arguments);\n return tangent.isZero() ? [] : Curve.getTimesWithTangent(this.getValues(), tangent);\n },\n getOffsetAtTime: function(t) {\n return this.getPartLength(0, t);\n },\n getLocationOf: function() {\n return this.getLocationAtTime(this.getTimeOf(Point.read(arguments)));\n },\n getOffsetOf: function() {\n var loc = this.getLocationOf.apply(this, arguments);\n return loc ? loc.getOffset() : null;\n },\n getTimeOf: function() {\n return Curve.getTimeOf(this.getValues(), Point.read(arguments));\n },\n getParameterOf: \"#getTimeOf\",\n getNearestLocation: function() {\n var point = Point.read(arguments), values = this.getValues(), t = Curve.getNearestTime(values, point), pt = Curve.getPoint(values, t);\n return new CurveLocation(this, t, pt, null, point.getDistance(pt));\n },\n getNearestPoint: function() {\n var loc = this.getNearestLocation.apply(this, arguments);\n return loc ? loc.getPoint() : loc;\n }\n }, new function() {\n var methods = [\n \"getPoint\",\n \"getTangent\",\n \"getNormal\",\n \"getWeightedTangent\",\n \"getWeightedNormal\",\n \"getCurvature\"\n ];\n return Base.each(methods, function(name) {\n this[name + \"At\"] = function(location, _isTime) {\n var values = this.getValues();\n return Curve[name](values, _isTime ? location : Curve.getTimeAt(values, location));\n };\n this[name + \"AtTime\"] = function(time) {\n return Curve[name](this.getValues(), time);\n };\n }, {\n statics: {\n _evaluateMethods: methods\n }\n });\n }, new function() {\n function getLengthIntegrand(v) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], ax = 9 * (x1 - x2) + 3 * (x3 - x0), bx = 6 * (x0 + x2) - 12 * x1, cx = 3 * (x1 - x0), ay = 9 * (y1 - y2) + 3 * (y3 - y0), by = 6 * (y0 + y2) - 12 * y1, cy = 3 * (y1 - y0);\n return function(t) {\n var dx = (ax * t + bx) * t + cx, dy = (ay * t + by) * t + cy;\n return Math.sqrt(dx * dx + dy * dy);\n };\n }\n function getIterations(a, b) {\n return Math.max(2, Math.min(16, Math.ceil(Math.abs(b - a) * 32)));\n }\n function evaluate(v, t, type, normalized) {\n if (t == null || t < 0 || t > 1) return null;\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], isZero = Numerical.isZero;\n if (isZero(x1 - x0) && isZero(y1 - y0)) {\n x1 = x0;\n y1 = y0;\n }\n if (isZero(x2 - x3) && isZero(y2 - y3)) {\n x2 = x3;\n y2 = y3;\n }\n var cx = 3 * (x1 - x0), bx = 3 * (x2 - x1) - cx, ax = x3 - x0 - cx - bx, cy = 3 * (y1 - y0), by = 3 * (y2 - y1) - cy, ay = y3 - y0 - cy - by, x, y;\n if (type === 0) {\n x = t === 0 ? x0 : t === 1 ? x3 : ((ax * t + bx) * t + cx) * t + x0;\n y = t === 0 ? y0 : t === 1 ? y3 : ((ay * t + by) * t + cy) * t + y0;\n } else {\n var tMin = 1e-8, tMax = 1 - tMin;\n if (t < tMin) {\n x = cx;\n y = cy;\n } else if (t > tMax) {\n x = 3 * (x3 - x2);\n y = 3 * (y3 - y2);\n } else {\n x = (3 * ax * t + 2 * bx) * t + cx;\n y = (3 * ay * t + 2 * by) * t + cy;\n }\n if (normalized) {\n if (x === 0 && y === 0 && (t < tMin || t > tMax)) {\n x = x2 - x1;\n y = y2 - y1;\n }\n var len = Math.sqrt(x * x + y * y);\n if (len) {\n x /= len;\n y /= len;\n }\n }\n if (type === 3) {\n var x2 = 6 * ax * t + 2 * bx, y2 = 6 * ay * t + 2 * by, d = Math.pow(x * x + y * y, 1.5);\n x = d !== 0 ? (x * y2 - y * x2) / d : 0;\n y = 0;\n }\n }\n return type === 2 ? new Point(y, -x) : new Point(x, y);\n }\n return {\n statics: {\n classify: function(v) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], a1 = x0 * (y3 - y2) + y0 * (x2 - x3) + x3 * y2 - y3 * x2, a2 = x1 * (y0 - y3) + y1 * (x3 - x0) + x0 * y3 - y0 * x3, a3 = x2 * (y1 - y0) + y2 * (x0 - x1) + x1 * y0 - y1 * x0, d3 = 3 * a3, d2 = d3 - a2, d1 = d2 - a2 + a1, l = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3), s = l !== 0 ? 1 / l : 0, isZero = Numerical.isZero, serpentine = \"serpentine\";\n d1 *= s;\n d2 *= s;\n d3 *= s;\n function type(type, t1, t2) {\n var hasRoots = t1 !== undefined, t1Ok = hasRoots && t1 > 0 && t1 < 1, t2Ok = hasRoots && t2 > 0 && t2 < 1;\n if (hasRoots && (!(t1Ok || t2Ok) || type === \"loop\" && !(t1Ok && t2Ok))) {\n type = \"arch\";\n t1Ok = t2Ok = false;\n }\n return {\n type: type,\n roots: t1Ok || t2Ok ? t1Ok && t2Ok ? t1 < t2 ? [\n t1,\n t2\n ] : [\n t2,\n t1\n ] : [\n t1Ok ? t1 : t2\n ] : null\n };\n }\n if (isZero(d1)) return isZero(d2) ? type(isZero(d3) ? \"line\" : \"quadratic\") : type(serpentine, d3 / (3 * d2));\n var d = 3 * d2 * d2 - 4 * d1 * d3;\n if (isZero(d)) return type(\"cusp\", d2 / (2 * d1));\n var f1 = d > 0 ? Math.sqrt(d / 3) : Math.sqrt(-d), f2 = 2 * d1;\n return type(d > 0 ? serpentine : \"loop\", (d2 + f1) / f2, (d2 - f1) / f2);\n },\n getLength: function(v, a, b, ds) {\n if (a === undefined) a = 0;\n if (b === undefined) b = 1;\n if (Curve.isStraight(v)) {\n var c = v;\n if (b < 1) {\n c = Curve.subdivide(c, b)[0];\n a /= b;\n }\n if (a > 0) c = Curve.subdivide(c, a)[1];\n var dx = c[6] - c[0], dy = c[7] - c[1];\n return Math.sqrt(dx * dx + dy * dy);\n }\n return Numerical.integrate(ds || getLengthIntegrand(v), a, b, getIterations(a, b));\n },\n getTimeAt: function(v, offset, start) {\n if (start === undefined) start = offset < 0 ? 1 : 0;\n if (offset === 0) return start;\n var abs = Math.abs, epsilon = 1e-12, forward = offset > 0, a = forward ? start : 0, b = forward ? 1 : start, ds = getLengthIntegrand(v), rangeLength = Curve.getLength(v, a, b, ds), diff = abs(offset) - rangeLength;\n if (abs(diff) < epsilon) return forward ? b : a;\n else if (diff > epsilon) return null;\n var guess = offset / rangeLength, length = 0;\n function f(t) {\n length += Numerical.integrate(ds, start, t, getIterations(start, t));\n start = t;\n return length - offset;\n }\n return Numerical.findRoot(f, ds, start + guess, a, b, 32, 1e-12);\n },\n getPoint: function(v, t) {\n return evaluate(v, t, 0, false);\n },\n getTangent: function(v, t) {\n return evaluate(v, t, 1, true);\n },\n getWeightedTangent: function(v, t) {\n return evaluate(v, t, 1, false);\n },\n getNormal: function(v, t) {\n return evaluate(v, t, 2, true);\n },\n getWeightedNormal: function(v, t) {\n return evaluate(v, t, 2, false);\n },\n getCurvature: function(v, t) {\n return evaluate(v, t, 3, false).x;\n },\n getPeaks: function(v) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], ax = -x0 + 3 * x1 - 3 * x2 + x3, bx = 3 * x0 - 6 * x1 + 3 * x2, cx = -3 * x0 + 3 * x1, ay = -y0 + 3 * y1 - 3 * y2 + y3, by = 3 * y0 - 6 * y1 + 3 * y2, cy = -3 * y0 + 3 * y1, tMin = 1e-8, tMax = 1 - tMin, roots = [];\n Numerical.solveCubic(9 * (ax * ax + ay * ay), 9 * (ax * bx + by * ay), 2 * (bx * bx + by * by) + 3 * (cx * ax + cy * ay), cx * bx + by * cy, roots, tMin, tMax);\n return roots.sort();\n }\n }\n };\n }, new function() {\n function addLocation(locations, include, c1, t1, c2, t2, overlap) {\n var excludeStart = !overlap && c1.getPrevious() === c2, excludeEnd = !overlap && c1 !== c2 && c1.getNext() === c2, tMin = 1e-8, tMax = 1 - tMin;\n if (t1 !== null && t1 >= (excludeStart ? tMin : 0) && t1 <= (excludeEnd ? tMax : 1)) {\n if (t2 !== null && t2 >= (excludeEnd ? tMin : 0) && t2 <= (excludeStart ? tMax : 1)) {\n var loc1 = new CurveLocation(c1, t1, null, overlap), loc2 = new CurveLocation(c2, t2, null, overlap);\n loc1._intersection = loc2;\n loc2._intersection = loc1;\n if (!include || include(loc1)) CurveLocation.insert(locations, loc1, true);\n }\n }\n }\n function addCurveIntersections(v1, v2, c1, c2, locations, include, flip, recursion, calls, tMin, tMax, uMin, uMax) {\n if (++calls >= 4096 || ++recursion >= 40) return calls;\n var fatLineEpsilon = 1e-9, q0x = v2[0], q0y = v2[1], q3x = v2[6], q3y = v2[7], getSignedDistance = Line.getSignedDistance, d1 = getSignedDistance(q0x, q0y, q3x, q3y, v2[2], v2[3]), d2 = getSignedDistance(q0x, q0y, q3x, q3y, v2[4], v2[5]), factor = d1 * d2 > 0 ? 3 / 4 : 4 / 9, dMin = factor * Math.min(0, d1, d2), dMax = factor * Math.max(0, d1, d2), dp0 = getSignedDistance(q0x, q0y, q3x, q3y, v1[0], v1[1]), dp1 = getSignedDistance(q0x, q0y, q3x, q3y, v1[2], v1[3]), dp2 = getSignedDistance(q0x, q0y, q3x, q3y, v1[4], v1[5]), dp3 = getSignedDistance(q0x, q0y, q3x, q3y, v1[6], v1[7]), hull = getConvexHull(dp0, dp1, dp2, dp3), top = hull[0], bottom = hull[1], tMinClip, tMaxClip;\n if (d1 === 0 && d2 === 0 && dp0 === 0 && dp1 === 0 && dp2 === 0 && dp3 === 0 || (tMinClip = clipConvexHull(top, bottom, dMin, dMax)) == null || (tMaxClip = clipConvexHull(top.reverse(), bottom.reverse(), dMin, dMax)) == null) return calls;\n var tMinNew = tMin + (tMax - tMin) * tMinClip, tMaxNew = tMin + (tMax - tMin) * tMaxClip;\n if (Math.max(uMax - uMin, tMaxNew - tMinNew) < fatLineEpsilon) {\n var t = (tMinNew + tMaxNew) / 2, u = (uMin + uMax) / 2;\n addLocation(locations, include, flip ? c2 : c1, flip ? u : t, flip ? c1 : c2, flip ? t : u);\n } else {\n v1 = Curve.getPart(v1, tMinClip, tMaxClip);\n var uDiff = uMax - uMin;\n if (tMaxClip - tMinClip > 0.8) {\n if (tMaxNew - tMinNew > uDiff) {\n var parts = Curve.subdivide(v1, 0.5), t = (tMinNew + tMaxNew) / 2;\n calls = addCurveIntersections(v2, parts[0], c2, c1, locations, include, !flip, recursion, calls, uMin, uMax, tMinNew, t);\n calls = addCurveIntersections(v2, parts[1], c2, c1, locations, include, !flip, recursion, calls, uMin, uMax, t, tMaxNew);\n } else {\n var parts = Curve.subdivide(v2, 0.5), u = (uMin + uMax) / 2;\n calls = addCurveIntersections(parts[0], v1, c2, c1, locations, include, !flip, recursion, calls, uMin, u, tMinNew, tMaxNew);\n calls = addCurveIntersections(parts[1], v1, c2, c1, locations, include, !flip, recursion, calls, u, uMax, tMinNew, tMaxNew);\n }\n } else if (uDiff === 0 || uDiff >= fatLineEpsilon) calls = addCurveIntersections(v2, v1, c2, c1, locations, include, !flip, recursion, calls, uMin, uMax, tMinNew, tMaxNew);\n else calls = addCurveIntersections(v1, v2, c1, c2, locations, include, flip, recursion, calls, tMinNew, tMaxNew, uMin, uMax);\n }\n return calls;\n }\n function getConvexHull(dq0, dq1, dq2, dq3) {\n var p0 = [\n 0,\n dq0\n ], p1 = [\n 1 / 3,\n dq1\n ], p2 = [\n 2 / 3,\n dq2\n ], p3 = [\n 1,\n dq3\n ], dist1 = dq1 - (2 * dq0 + dq3) / 3, dist2 = dq2 - (dq0 + 2 * dq3) / 3, hull;\n if (dist1 * dist2 < 0) hull = [\n [\n p0,\n p1,\n p3\n ],\n [\n p0,\n p2,\n p3\n ]\n ];\n else {\n var distRatio = dist1 / dist2;\n hull = [\n distRatio >= 2 ? [\n p0,\n p1,\n p3\n ] : distRatio <= 0.5 ? [\n p0,\n p2,\n p3\n ] : [\n p0,\n p1,\n p2,\n p3\n ],\n [\n p0,\n p3\n ]\n ];\n }\n return (dist1 || dist2) < 0 ? hull.reverse() : hull;\n }\n function clipConvexHull(hullTop, hullBottom, dMin, dMax) {\n if (hullTop[0][1] < dMin) return clipConvexHullPart(hullTop, true, dMin);\n else if (hullBottom[0][1] > dMax) return clipConvexHullPart(hullBottom, false, dMax);\n else return hullTop[0][0];\n }\n function clipConvexHullPart(part, top, threshold) {\n var px = part[0][0], py = part[0][1];\n for(var i = 1, l = part.length; i < l; i++){\n var qx = part[i][0], qy = part[i][1];\n if (top ? qy >= threshold : qy <= threshold) return qy === threshold ? qx : px + (threshold - py) * (qx - px) / (qy - py);\n px = qx;\n py = qy;\n }\n return null;\n }\n function getCurveLineIntersections(v, px, py, vx, vy) {\n var isZero = Numerical.isZero;\n if (isZero(vx) && isZero(vy)) {\n var t = Curve.getTimeOf(v, new Point(px, py));\n return t === null ? [] : [\n t\n ];\n }\n var angle = Math.atan2(-vy, vx), sin = Math.sin(angle), cos = Math.cos(angle), rv = [], roots = [];\n for(var i = 0; i < 8; i += 2){\n var x = v[i] - px, y = v[i + 1] - py;\n rv.push(x * cos - y * sin, x * sin + y * cos);\n }\n Curve.solveCubic(rv, 1, 0, roots, 0, 1);\n return roots;\n }\n function addCurveLineIntersections(v1, v2, c1, c2, locations, include, flip) {\n var x1 = v2[0], y1 = v2[1], x2 = v2[6], y2 = v2[7], roots = getCurveLineIntersections(v1, x1, y1, x2 - x1, y2 - y1);\n for(var i = 0, l = roots.length; i < l; i++){\n var t1 = roots[i], p1 = Curve.getPoint(v1, t1), t2 = Curve.getTimeOf(v2, p1);\n if (t2 !== null) addLocation(locations, include, flip ? c2 : c1, flip ? t2 : t1, flip ? c1 : c2, flip ? t1 : t2);\n }\n }\n function addLineIntersection(v1, v2, c1, c2, locations, include) {\n var pt = Line.intersect(v1[0], v1[1], v1[6], v1[7], v2[0], v2[1], v2[6], v2[7]);\n if (pt) addLocation(locations, include, c1, Curve.getTimeOf(v1, pt), c2, Curve.getTimeOf(v2, pt));\n }\n function getCurveIntersections(v1, v2, c1, c2, locations, include) {\n var epsilon = 1e-12, min = Math.min, max = Math.max;\n if (max(v1[0], v1[2], v1[4], v1[6]) + epsilon > min(v2[0], v2[2], v2[4], v2[6]) && min(v1[0], v1[2], v1[4], v1[6]) - epsilon < max(v2[0], v2[2], v2[4], v2[6]) && max(v1[1], v1[3], v1[5], v1[7]) + epsilon > min(v2[1], v2[3], v2[5], v2[7]) && min(v1[1], v1[3], v1[5], v1[7]) - epsilon < max(v2[1], v2[3], v2[5], v2[7])) {\n var overlaps = getOverlaps(v1, v2);\n if (overlaps) for(var i = 0; i < 2; i++){\n var overlap = overlaps[i];\n addLocation(locations, include, c1, overlap[0], c2, overlap[1], true);\n }\n else {\n var straight1 = Curve.isStraight(v1), straight2 = Curve.isStraight(v2), straight = straight1 && straight2, flip = straight1 && !straight2, before = locations.length;\n (straight ? addLineIntersection : straight1 || straight2 ? addCurveLineIntersections : addCurveIntersections)(flip ? v2 : v1, flip ? v1 : v2, flip ? c2 : c1, flip ? c1 : c2, locations, include, flip, 0, 0, 0, 1, 0, 1);\n if (!straight || locations.length === before) for(var i = 0; i < 4; i++){\n var t1 = i >> 1, t2 = i & 1, i1 = t1 * 6, i2 = t2 * 6, p1 = new Point(v1[i1], v1[i1 + 1]), p2 = new Point(v2[i2], v2[i2 + 1]);\n if (p1.isClose(p2, epsilon)) addLocation(locations, include, c1, t1, c2, t2);\n }\n }\n }\n return locations;\n }\n function getSelfIntersection(v1, c1, locations, include) {\n var info = Curve.classify(v1);\n if (info.type === \"loop\") {\n var roots = info.roots;\n addLocation(locations, include, c1, roots[0], c1, roots[1]);\n }\n return locations;\n }\n function getIntersections(curves1, curves2, include, matrix1, matrix2, _returnFirst) {\n var epsilon = 1e-7, self1 = !curves2;\n if (self1) curves2 = curves1;\n var length1 = curves1.length, length2 = curves2.length, values1 = new Array(length1), values2 = self1 ? values1 : new Array(length2), locations = [];\n for(var i = 0; i < length1; i++)values1[i] = curves1[i].getValues(matrix1);\n if (!self1) for(var i = 0; i < length2; i++)values2[i] = curves2[i].getValues(matrix2);\n var boundsCollisions = CollisionDetection.findCurveBoundsCollisions(values1, values2, epsilon);\n for(var index1 = 0; index1 < length1; index1++){\n var curve1 = curves1[index1], v1 = values1[index1];\n if (self1) getSelfIntersection(v1, curve1, locations, include);\n var collisions1 = boundsCollisions[index1];\n if (collisions1) for(var j = 0; j < collisions1.length; j++){\n if (_returnFirst && locations.length) return locations;\n var index2 = collisions1[j];\n if (!self1 || index2 > index1) {\n var curve2 = curves2[index2], v2 = values2[index2];\n getCurveIntersections(v1, v2, curve1, curve2, locations, include);\n }\n }\n }\n return locations;\n }\n function getOverlaps(v1, v2) {\n function getSquaredLineLength(v) {\n var x = v[6] - v[0], y = v[7] - v[1];\n return x * x + y * y;\n }\n var abs = Math.abs, getDistance = Line.getDistance, timeEpsilon = 1e-8, geomEpsilon = 1e-7, straight1 = Curve.isStraight(v1), straight2 = Curve.isStraight(v2), straightBoth = straight1 && straight2, flip = getSquaredLineLength(v1) < getSquaredLineLength(v2), l1 = flip ? v2 : v1, l2 = flip ? v1 : v2, px = l1[0], py = l1[1], vx = l1[6] - px, vy = l1[7] - py;\n if (getDistance(px, py, vx, vy, l2[0], l2[1], true) < geomEpsilon && getDistance(px, py, vx, vy, l2[6], l2[7], true) < geomEpsilon) {\n if (!straightBoth && getDistance(px, py, vx, vy, l1[2], l1[3], true) < geomEpsilon && getDistance(px, py, vx, vy, l1[4], l1[5], true) < geomEpsilon && getDistance(px, py, vx, vy, l2[2], l2[3], true) < geomEpsilon && getDistance(px, py, vx, vy, l2[4], l2[5], true) < geomEpsilon) straight1 = straight2 = straightBoth = true;\n } else if (straightBoth) return null;\n if (straight1 ^ straight2) return null;\n var v = [\n v1,\n v2\n ], pairs = [];\n for(var i = 0; i < 4 && pairs.length < 2; i++){\n var i1 = i & 1, i2 = i1 ^ 1, t1 = i >> 1, t2 = Curve.getTimeOf(v[i1], new Point(v[i2][t1 ? 6 : 0], v[i2][t1 ? 7 : 1]));\n if (t2 != null) {\n var pair = i1 ? [\n t1,\n t2\n ] : [\n t2,\n t1\n ];\n if (!pairs.length || abs(pair[0] - pairs[0][0]) > timeEpsilon && abs(pair[1] - pairs[0][1]) > timeEpsilon) pairs.push(pair);\n }\n if (i > 2 && !pairs.length) break;\n }\n if (pairs.length !== 2) pairs = null;\n else if (!straightBoth) {\n var o1 = Curve.getPart(v1, pairs[0][0], pairs[1][0]), o2 = Curve.getPart(v2, pairs[0][1], pairs[1][1]);\n if (abs(o2[2] - o1[2]) > geomEpsilon || abs(o2[3] - o1[3]) > geomEpsilon || abs(o2[4] - o1[4]) > geomEpsilon || abs(o2[5] - o1[5]) > geomEpsilon) pairs = null;\n }\n return pairs;\n }\n function getTimesWithTangent(v, tangent) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], normalized = tangent.normalize(), tx = normalized.x, ty = normalized.y, ax = 3 * x3 - 9 * x2 + 9 * x1 - 3 * x0, ay = 3 * y3 - 9 * y2 + 9 * y1 - 3 * y0, bx = 6 * x2 - 12 * x1 + 6 * x0, by = 6 * y2 - 12 * y1 + 6 * y0, cx = 3 * x1 - 3 * x0, cy = 3 * y1 - 3 * y0, den = 2 * ax * ty - 2 * ay * tx, times = [];\n if (Math.abs(den) < Numerical.CURVETIME_EPSILON) {\n var num = ax * cy - ay * cx, den = ax * by - ay * bx;\n if (den != 0) {\n var t = -num / den;\n if (t >= 0 && t <= 1) times.push(t);\n }\n } else {\n var delta = (bx * bx - 4 * ax * cx) * ty * ty + (-2 * bx * by + 4 * ay * cx + 4 * ax * cy) * tx * ty + (by * by - 4 * ay * cy) * tx * tx, k = bx * ty - by * tx;\n if (delta >= 0 && den != 0) {\n var d = Math.sqrt(delta), t0 = -(k + d) / den, t1 = (-k + d) / den;\n if (t0 >= 0 && t0 <= 1) times.push(t0);\n if (t1 >= 0 && t1 <= 1) times.push(t1);\n }\n }\n return times;\n }\n return {\n getIntersections: function(curve) {\n var v1 = this.getValues(), v2 = curve && curve !== this && curve.getValues();\n return v2 ? getCurveIntersections(v1, v2, this, curve, []) : getSelfIntersection(v1, this, []);\n },\n statics: {\n getOverlaps: getOverlaps,\n getIntersections: getIntersections,\n getCurveLineIntersections: getCurveLineIntersections,\n getTimesWithTangent: getTimesWithTangent\n }\n };\n });\n var CurveLocation = Base.extend({\n _class: \"CurveLocation\",\n initialize: function CurveLocation(curve, time, point, _overlap, _distance) {\n if (time >= 0.99999999) {\n var next = curve.getNext();\n if (next) {\n time = 0;\n curve = next;\n }\n }\n this._setCurve(curve);\n this._time = time;\n this._point = point || curve.getPointAtTime(time);\n this._overlap = _overlap;\n this._distance = _distance;\n this._intersection = this._next = this._previous = null;\n },\n _setPath: function(path) {\n this._path = path;\n this._version = path ? path._version : 0;\n },\n _setCurve: function(curve) {\n this._setPath(curve._path);\n this._curve = curve;\n this._segment = null;\n this._segment1 = curve._segment1;\n this._segment2 = curve._segment2;\n },\n _setSegment: function(segment) {\n var curve = segment.getCurve();\n if (curve) this._setCurve(curve);\n else {\n this._setPath(segment._path);\n this._segment1 = segment;\n this._segment2 = null;\n }\n this._segment = segment;\n this._time = segment === this._segment1 ? 0 : 1;\n this._point = segment._point.clone();\n },\n getSegment: function() {\n var segment = this._segment;\n if (!segment) {\n var curve = this.getCurve(), time = this.getTime();\n if (time === 0) segment = curve._segment1;\n else if (time === 1) segment = curve._segment2;\n else if (time != null) segment = curve.getPartLength(0, time) < curve.getPartLength(time, 1) ? curve._segment1 : curve._segment2;\n this._segment = segment;\n }\n return segment;\n },\n getCurve: function() {\n var path = this._path, that = this;\n if (path && path._version !== this._version) this._time = this._offset = this._curveOffset = this._curve = null;\n function trySegment(segment) {\n var curve = segment && segment.getCurve();\n if (curve && (that._time = curve.getTimeOf(that._point)) != null) {\n that._setCurve(curve);\n return curve;\n }\n }\n return this._curve || trySegment(this._segment) || trySegment(this._segment1) || trySegment(this._segment2.getPrevious());\n },\n getPath: function() {\n var curve = this.getCurve();\n return curve && curve._path;\n },\n getIndex: function() {\n var curve = this.getCurve();\n return curve && curve.getIndex();\n },\n getTime: function() {\n var curve = this.getCurve(), time = this._time;\n return curve && time == null ? this._time = curve.getTimeOf(this._point) : time;\n },\n getParameter: \"#getTime\",\n getPoint: function() {\n return this._point;\n },\n getOffset: function() {\n var offset = this._offset;\n if (offset == null) {\n offset = 0;\n var path = this.getPath(), index = this.getIndex();\n if (path && index != null) {\n var curves = path.getCurves();\n for(var i = 0; i < index; i++)offset += curves[i].getLength();\n }\n this._offset = offset += this.getCurveOffset();\n }\n return offset;\n },\n getCurveOffset: function() {\n var offset = this._curveOffset;\n if (offset == null) {\n var curve = this.getCurve(), time = this.getTime();\n this._curveOffset = offset = time != null && curve && curve.getPartLength(0, time);\n }\n return offset;\n },\n getIntersection: function() {\n return this._intersection;\n },\n getDistance: function() {\n return this._distance;\n },\n divide: function() {\n var curve = this.getCurve(), res = curve && curve.divideAtTime(this.getTime());\n if (res) this._setSegment(res._segment1);\n return res;\n },\n split: function() {\n var curve = this.getCurve(), path = curve._path, res = curve && curve.splitAtTime(this.getTime());\n if (res) this._setSegment(path.getLastSegment());\n return res;\n },\n equals: function(loc, _ignoreOther) {\n var res = this === loc;\n if (!res && loc instanceof CurveLocation) {\n var c1 = this.getCurve(), c2 = loc.getCurve(), p1 = c1._path, p2 = c2._path;\n if (p1 === p2) {\n var abs = Math.abs, epsilon = 1e-7, diff = abs(this.getOffset() - loc.getOffset()), i1 = !_ignoreOther && this._intersection, i2 = !_ignoreOther && loc._intersection;\n res = (diff < epsilon || p1 && abs(p1.getLength() - diff) < epsilon) && (!i1 && !i2 || i1 && i2 && i1.equals(i2, true));\n }\n }\n return res;\n },\n toString: function() {\n var parts = [], point = this.getPoint(), f = Formatter.instance;\n if (point) parts.push(\"point: \" + point);\n var index = this.getIndex();\n if (index != null) parts.push(\"index: \" + index);\n var time = this.getTime();\n if (time != null) parts.push(\"time: \" + f.number(time));\n if (this._distance != null) parts.push(\"distance: \" + f.number(this._distance));\n return \"{ \" + parts.join(\", \") + \" }\";\n },\n isTouching: function() {\n var inter = this._intersection;\n if (inter && this.getTangent().isCollinear(inter.getTangent())) {\n var curve1 = this.getCurve(), curve2 = inter.getCurve();\n return !(curve1.isStraight() && curve2.isStraight() && curve1.getLine().intersect(curve2.getLine()));\n }\n return false;\n },\n isCrossing: function() {\n var inter = this._intersection;\n if (!inter) return false;\n var t1 = this.getTime(), t2 = inter.getTime(), tMin = 1e-8, tMax = 1 - tMin, t1Inside = t1 >= tMin && t1 <= tMax, t2Inside = t2 >= tMin && t2 <= tMax;\n if (t1Inside && t2Inside) return !this.isTouching();\n var c2 = this.getCurve(), c1 = c2 && t1 < tMin ? c2.getPrevious() : c2, c4 = inter.getCurve(), c3 = c4 && t2 < tMin ? c4.getPrevious() : c4;\n if (t1 > tMax) c2 = c2.getNext();\n if (t2 > tMax) c4 = c4.getNext();\n if (!c1 || !c2 || !c3 || !c4) return false;\n var offsets = [];\n function addOffsets(curve, end) {\n var v = curve.getValues(), roots = Curve.classify(v).roots || Curve.getPeaks(v), count = roots.length, offset = Curve.getLength(v, end && count ? roots[count - 1] : 0, !end && count ? roots[0] : 1);\n offsets.push(count ? offset : offset / 32);\n }\n function isInRange(angle, min, max) {\n return min < max ? angle > min && angle < max : angle > min || angle < max;\n }\n if (!t1Inside) {\n addOffsets(c1, true);\n addOffsets(c2, false);\n }\n if (!t2Inside) {\n addOffsets(c3, true);\n addOffsets(c4, false);\n }\n var pt = this.getPoint(), offset = Math.min.apply(Math, offsets), v2 = t1Inside ? c2.getTangentAtTime(t1) : c2.getPointAt(offset).subtract(pt), v1 = t1Inside ? v2.negate() : c1.getPointAt(-offset).subtract(pt), v4 = t2Inside ? c4.getTangentAtTime(t2) : c4.getPointAt(offset).subtract(pt), v3 = t2Inside ? v4.negate() : c3.getPointAt(-offset).subtract(pt), a1 = v1.getAngle(), a2 = v2.getAngle(), a3 = v3.getAngle(), a4 = v4.getAngle();\n return !!(t1Inside ? isInRange(a1, a3, a4) ^ isInRange(a2, a3, a4) && isInRange(a1, a4, a3) ^ isInRange(a2, a4, a3) : isInRange(a3, a1, a2) ^ isInRange(a4, a1, a2) && isInRange(a3, a2, a1) ^ isInRange(a4, a2, a1));\n },\n hasOverlap: function() {\n return !!this._overlap;\n }\n }, Base.each(Curve._evaluateMethods, function(name) {\n var get = name + \"At\";\n this[name] = function() {\n var curve = this.getCurve(), time = this.getTime();\n return time != null && curve && curve[get](time, true);\n };\n }, {\n preserve: true\n }), new function() {\n function insert(locations, loc, merge) {\n var length = locations.length, l = 0, r = length - 1;\n function search(index, dir) {\n for(var i = index + dir; i >= -1 && i <= length; i += dir){\n var loc2 = locations[(i % length + length) % length];\n if (!loc.getPoint().isClose(loc2.getPoint(), 1e-7)) break;\n if (loc.equals(loc2)) return loc2;\n }\n return null;\n }\n while(l <= r){\n var m = l + r >>> 1, loc2 = locations[m], found;\n if (merge && (found = loc.equals(loc2) ? loc2 : search(m, -1) || search(m, 1))) {\n if (loc._overlap) found._overlap = found._intersection._overlap = true;\n return found;\n }\n var path1 = loc.getPath(), path2 = loc2.getPath(), diff = path1 !== path2 ? path1._id - path2._id : loc.getIndex() + loc.getTime() - (loc2.getIndex() + loc2.getTime());\n if (diff < 0) r = m - 1;\n else l = m + 1;\n }\n locations.splice(l, 0, loc);\n return loc;\n }\n return {\n statics: {\n insert: insert,\n expand: function(locations) {\n var expanded = locations.slice();\n for(var i = locations.length - 1; i >= 0; i--)insert(expanded, locations[i]._intersection, false);\n return expanded;\n }\n }\n };\n });\n var PathItem = Item.extend({\n _class: \"PathItem\",\n _selectBounds: false,\n _canScaleStroke: true,\n beans: true,\n initialize: function PathItem() {},\n statics: {\n create: function(arg) {\n var data, segments, compound;\n if (Base.isPlainObject(arg)) {\n segments = arg.segments;\n data = arg.pathData;\n } else if (Array.isArray(arg)) segments = arg;\n else if (typeof arg === \"string\") data = arg;\n if (segments) {\n var first = segments[0];\n compound = first && Array.isArray(first[0]);\n } else if (data) compound = (data.match(/m/gi) || []).length > 1 || /z\\s*\\S+/i.test(data);\n var ctor = compound ? CompoundPath : Path;\n return new ctor(arg);\n }\n },\n _asPathItem: function() {\n return this;\n },\n isClockwise: function() {\n return this.getArea() >= 0;\n },\n setClockwise: function(clockwise) {\n if (this.isClockwise() != (clockwise = !!clockwise)) this.reverse();\n },\n setPathData: function(data) {\n var parts = data && data.match(/[mlhvcsqtaz][^mlhvcsqtaz]*/ig), coords, relative = false, previous, control, current = new Point(), start = new Point();\n function getCoord(index, coord) {\n var val = +coords[index];\n if (relative) val += current[coord];\n return val;\n }\n function getPoint(index) {\n return new Point(getCoord(index, \"x\"), getCoord(index + 1, \"y\"));\n }\n this.clear();\n for(var i = 0, l = parts && parts.length; i < l; i++){\n var part = parts[i], command = part[0], lower = command.toLowerCase();\n coords = part.match(/[+-]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?/g);\n var length = coords && coords.length;\n relative = command === lower;\n if (previous === \"z\" && !/[mz]/.test(lower)) this.moveTo(current);\n switch(lower){\n case \"m\":\n case \"l\":\n var move = lower === \"m\";\n for(var j = 0; j < length; j += 2){\n this[move ? \"moveTo\" : \"lineTo\"](current = getPoint(j));\n if (move) {\n start = current;\n move = false;\n }\n }\n control = current;\n break;\n case \"h\":\n case \"v\":\n var coord = lower === \"h\" ? \"x\" : \"y\";\n current = current.clone();\n for(var j = 0; j < length; j++){\n current[coord] = getCoord(j, coord);\n this.lineTo(current);\n }\n control = current;\n break;\n case \"c\":\n for(var j = 0; j < length; j += 6)this.cubicCurveTo(getPoint(j), control = getPoint(j + 2), current = getPoint(j + 4));\n break;\n case \"s\":\n for(var j = 0; j < length; j += 4){\n this.cubicCurveTo(/[cs]/.test(previous) ? current.multiply(2).subtract(control) : current, control = getPoint(j), current = getPoint(j + 2));\n previous = lower;\n }\n break;\n case \"q\":\n for(var j = 0; j < length; j += 4)this.quadraticCurveTo(control = getPoint(j), current = getPoint(j + 2));\n break;\n case \"t\":\n for(var j = 0; j < length; j += 2){\n this.quadraticCurveTo(control = /[qt]/.test(previous) ? current.multiply(2).subtract(control) : current, current = getPoint(j));\n previous = lower;\n }\n break;\n case \"a\":\n for(var j = 0; j < length; j += 7)this.arcTo(current = getPoint(j + 5), new Size(+coords[j], +coords[j + 1]), +coords[j + 2], +coords[j + 4], +coords[j + 3]);\n break;\n case \"z\":\n this.closePath(1e-12);\n current = start;\n break;\n }\n previous = lower;\n }\n },\n _canComposite: function() {\n return !(this.hasFill() && this.hasStroke());\n },\n _contains: function(point) {\n var winding = point.isInside(this.getBounds({\n internal: true,\n handle: true\n })) ? this._getWinding(point) : {};\n return winding.onPath || !!(this.getFillRule() === \"evenodd\" ? winding.windingL & 1 || winding.windingR & 1 : winding.winding);\n },\n getIntersections: function(path, include, _matrix, _returnFirst) {\n var self1 = this === path || !path, matrix1 = this._matrix._orNullIfIdentity(), matrix2 = self1 ? matrix1 : (_matrix || path._matrix)._orNullIfIdentity();\n return self1 || this.getBounds(matrix1).intersects(path.getBounds(matrix2), 1e-12) ? Curve.getIntersections(this.getCurves(), !self1 && path.getCurves(), include, matrix1, matrix2, _returnFirst) : [];\n },\n getCrossings: function(path) {\n return this.getIntersections(path, function(inter) {\n return inter.isCrossing();\n });\n },\n getNearestLocation: function() {\n var point = Point.read(arguments), curves = this.getCurves(), minDist = Infinity, minLoc = null;\n for(var i = 0, l = curves.length; i < l; i++){\n var loc = curves[i].getNearestLocation(point);\n if (loc._distance < minDist) {\n minDist = loc._distance;\n minLoc = loc;\n }\n }\n return minLoc;\n },\n getNearestPoint: function() {\n var loc = this.getNearestLocation.apply(this, arguments);\n return loc ? loc.getPoint() : loc;\n },\n interpolate: function(from, to, factor) {\n var isPath = !this._children, name = isPath ? \"_segments\" : \"_children\", itemsFrom = from[name], itemsTo = to[name], items = this[name];\n if (!itemsFrom || !itemsTo || itemsFrom.length !== itemsTo.length) throw new Error(\"Invalid operands in interpolate() call: \" + from + \", \" + to);\n var current = items.length, length = itemsTo.length;\n if (current < length) {\n var ctor = isPath ? Segment : Path;\n for(var i = current; i < length; i++)this.add(new ctor());\n } else if (current > length) this[isPath ? \"removeSegments\" : \"removeChildren\"](length, current);\n for(var i = 0; i < length; i++)items[i].interpolate(itemsFrom[i], itemsTo[i], factor);\n if (isPath) {\n this.setClosed(from._closed);\n this._changed(9);\n }\n },\n compare: function(path) {\n var ok = false;\n if (path) {\n var paths1 = this._children || [\n this\n ], paths2 = path._children ? path._children.slice() : [\n path\n ], length1 = paths1.length, length2 = paths2.length, matched = [], count = 0;\n ok = true;\n var boundsOverlaps = CollisionDetection.findItemBoundsCollisions(paths1, paths2, Numerical.GEOMETRIC_EPSILON);\n for(var i1 = length1 - 1; i1 >= 0 && ok; i1--){\n var path1 = paths1[i1];\n ok = false;\n var pathBoundsOverlaps = boundsOverlaps[i1];\n if (pathBoundsOverlaps) {\n for(var i2 = pathBoundsOverlaps.length - 1; i2 >= 0 && !ok; i2--)if (path1.compare(paths2[pathBoundsOverlaps[i2]])) {\n if (!matched[pathBoundsOverlaps[i2]]) {\n matched[pathBoundsOverlaps[i2]] = true;\n count++;\n }\n ok = true;\n }\n }\n }\n ok = ok && count === length2;\n }\n return ok;\n }\n });\n var Path = PathItem.extend({\n _class: \"Path\",\n _serializeFields: {\n segments: [],\n closed: false\n },\n initialize: function Path(arg) {\n this._closed = false;\n this._segments = [];\n this._version = 0;\n var args = arguments, segments = Array.isArray(arg) ? typeof arg[0] === \"object\" ? arg : args : arg && arg.size === undefined && (arg.x !== undefined || arg.point !== undefined) ? args : null;\n if (segments && segments.length > 0) this.setSegments(segments);\n else {\n this._curves = undefined;\n this._segmentSelection = 0;\n if (!segments && typeof arg === \"string\") {\n this.setPathData(arg);\n arg = null;\n }\n }\n this._initialize(!segments && arg);\n },\n _equals: function(item) {\n return this._closed === item._closed && Base.equals(this._segments, item._segments);\n },\n copyContent: function(source) {\n this.setSegments(source._segments);\n this._closed = source._closed;\n },\n _changed: function _changed(flags) {\n _changed.base.call(this, flags);\n if (flags & 8) {\n this._length = this._area = undefined;\n if (flags & 32) this._version++;\n else if (this._curves) for(var i = 0, l = this._curves.length; i < l; i++)this._curves[i]._changed();\n } else if (flags & 64) this._bounds = undefined;\n },\n getStyle: function() {\n var parent = this._parent;\n return (parent instanceof CompoundPath ? parent : this)._style;\n },\n getSegments: function() {\n return this._segments;\n },\n setSegments: function(segments) {\n var fullySelected = this.isFullySelected(), length = segments && segments.length;\n this._segments.length = 0;\n this._segmentSelection = 0;\n this._curves = undefined;\n if (length) {\n var last = segments[length - 1];\n if (typeof last === \"boolean\") {\n this.setClosed(last);\n length--;\n }\n this._add(Segment.readList(segments, 0, {}, length));\n }\n if (fullySelected) this.setFullySelected(true);\n },\n getFirstSegment: function() {\n return this._segments[0];\n },\n getLastSegment: function() {\n return this._segments[this._segments.length - 1];\n },\n getCurves: function() {\n var curves = this._curves, segments = this._segments;\n if (!curves) {\n var length = this._countCurves();\n curves = this._curves = new Array(length);\n for(var i = 0; i < length; i++)curves[i] = new Curve(this, segments[i], segments[i + 1] || segments[0]);\n }\n return curves;\n },\n getFirstCurve: function() {\n return this.getCurves()[0];\n },\n getLastCurve: function() {\n var curves = this.getCurves();\n return curves[curves.length - 1];\n },\n isClosed: function() {\n return this._closed;\n },\n setClosed: function(closed) {\n if (this._closed != (closed = !!closed)) {\n this._closed = closed;\n if (this._curves) {\n var length = this._curves.length = this._countCurves();\n if (closed) this._curves[length - 1] = new Curve(this, this._segments[length - 1], this._segments[0]);\n }\n this._changed(41);\n }\n }\n }, {\n beans: true,\n getPathData: function(_matrix, _precision) {\n var segments = this._segments, length = segments.length, f = new Formatter(_precision), coords = new Array(6), first = true, curX, curY, prevX, prevY, inX, inY, outX, outY, parts = [];\n function addSegment(segment, skipLine) {\n segment._transformCoordinates(_matrix, coords);\n curX = coords[0];\n curY = coords[1];\n if (first) {\n parts.push(\"M\" + f.pair(curX, curY));\n first = false;\n } else {\n inX = coords[2];\n inY = coords[3];\n if (inX === curX && inY === curY && outX === prevX && outY === prevY) {\n if (!skipLine) {\n var dx = curX - prevX, dy = curY - prevY;\n parts.push(dx === 0 ? \"v\" + f.number(dy) : dy === 0 ? \"h\" + f.number(dx) : \"l\" + f.pair(dx, dy));\n }\n } else parts.push(\"c\" + f.pair(outX - prevX, outY - prevY) + \" \" + f.pair(inX - prevX, inY - prevY) + \" \" + f.pair(curX - prevX, curY - prevY));\n }\n prevX = curX;\n prevY = curY;\n outX = coords[4];\n outY = coords[5];\n }\n if (!length) return \"\";\n for(var i = 0; i < length; i++)addSegment(segments[i]);\n if (this._closed && length > 0) {\n addSegment(segments[0], true);\n parts.push(\"z\");\n }\n return parts.join(\"\");\n },\n isEmpty: function() {\n return !this._segments.length;\n },\n _transformContent: function(matrix) {\n var segments = this._segments, coords = new Array(6);\n for(var i = 0, l = segments.length; i < l; i++)segments[i]._transformCoordinates(matrix, coords, true);\n return true;\n },\n _add: function(segs, index) {\n var segments = this._segments, curves = this._curves, amount = segs.length, append = index == null, index = append ? segments.length : index;\n for(var i = 0; i < amount; i++){\n var segment = segs[i];\n if (segment._path) segment = segs[i] = segment.clone();\n segment._path = this;\n segment._index = index + i;\n if (segment._selection) this._updateSelection(segment, 0, segment._selection);\n }\n if (append) Base.push(segments, segs);\n else {\n segments.splice.apply(segments, [\n index,\n 0\n ].concat(segs));\n for(var i = index + amount, l = segments.length; i < l; i++)segments[i]._index = i;\n }\n if (curves) {\n var total = this._countCurves(), start = index > 0 && index + amount - 1 === total ? index - 1 : index, insert = start, end = Math.min(start + amount, total);\n if (segs._curves) {\n curves.splice.apply(curves, [\n start,\n 0\n ].concat(segs._curves));\n insert += segs._curves.length;\n }\n for(var i = insert; i < end; i++)curves.splice(i, 0, new Curve(this, null, null));\n this._adjustCurves(start, end);\n }\n this._changed(41);\n return segs;\n },\n _adjustCurves: function(start, end) {\n var segments = this._segments, curves = this._curves, curve;\n for(var i = start; i < end; i++){\n curve = curves[i];\n curve._path = this;\n curve._segment1 = segments[i];\n curve._segment2 = segments[i + 1] || segments[0];\n curve._changed();\n }\n if (curve = curves[this._closed && !start ? segments.length - 1 : start - 1]) {\n curve._segment2 = segments[start] || segments[0];\n curve._changed();\n }\n if (curve = curves[end]) {\n curve._segment1 = segments[end];\n curve._changed();\n }\n },\n _countCurves: function() {\n var length = this._segments.length;\n return !this._closed && length > 0 ? length - 1 : length;\n },\n add: function(segment1) {\n var args = arguments;\n return args.length > 1 && typeof segment1 !== \"number\" ? this._add(Segment.readList(args)) : this._add([\n Segment.read(args)\n ])[0];\n },\n insert: function(index, segment1) {\n var args = arguments;\n return args.length > 2 && typeof segment1 !== \"number\" ? this._add(Segment.readList(args, 1), index) : this._add([\n Segment.read(args, 1)\n ], index)[0];\n },\n addSegment: function() {\n return this._add([\n Segment.read(arguments)\n ])[0];\n },\n insertSegment: function(index) {\n return this._add([\n Segment.read(arguments, 1)\n ], index)[0];\n },\n addSegments: function(segments) {\n return this._add(Segment.readList(segments));\n },\n insertSegments: function(index, segments) {\n return this._add(Segment.readList(segments), index);\n },\n removeSegment: function(index) {\n return this.removeSegments(index, index + 1)[0] || null;\n },\n removeSegments: function(start, end, _includeCurves) {\n start = start || 0;\n end = Base.pick(end, this._segments.length);\n var segments = this._segments, curves = this._curves, count = segments.length, removed = segments.splice(start, end - start), amount = removed.length;\n if (!amount) return removed;\n for(var i = 0; i < amount; i++){\n var segment = removed[i];\n if (segment._selection) this._updateSelection(segment, segment._selection, 0);\n segment._index = segment._path = null;\n }\n for(var i = start, l = segments.length; i < l; i++)segments[i]._index = i;\n if (curves) {\n var index = start > 0 && end === count + (this._closed ? 1 : 0) ? start - 1 : start, curves = curves.splice(index, amount);\n for(var i = curves.length - 1; i >= 0; i--)curves[i]._path = null;\n if (_includeCurves) removed._curves = curves.slice(1);\n this._adjustCurves(index, index);\n }\n this._changed(41);\n return removed;\n },\n clear: \"#removeSegments\",\n hasHandles: function() {\n var segments = this._segments;\n for(var i = 0, l = segments.length; i < l; i++){\n if (segments[i].hasHandles()) return true;\n }\n return false;\n },\n clearHandles: function() {\n var segments = this._segments;\n for(var i = 0, l = segments.length; i < l; i++)segments[i].clearHandles();\n },\n getLength: function() {\n if (this._length == null) {\n var curves = this.getCurves(), length = 0;\n for(var i = 0, l = curves.length; i < l; i++)length += curves[i].getLength();\n this._length = length;\n }\n return this._length;\n },\n getArea: function() {\n var area = this._area;\n if (area == null) {\n var segments = this._segments, closed = this._closed;\n area = 0;\n for(var i = 0, l = segments.length; i < l; i++){\n var last = i + 1 === l;\n area += Curve.getArea(Curve.getValues(segments[i], segments[last ? 0 : i + 1], null, last && !closed));\n }\n this._area = area;\n }\n return area;\n },\n isFullySelected: function() {\n var length = this._segments.length;\n return this.isSelected() && length > 0 && this._segmentSelection === length * 7;\n },\n setFullySelected: function(selected) {\n if (selected) this._selectSegments(true);\n this.setSelected(selected);\n },\n setSelection: function setSelection(selection) {\n if (!(selection & 1)) this._selectSegments(false);\n setSelection.base.call(this, selection);\n },\n _selectSegments: function(selected) {\n var segments = this._segments, length = segments.length, selection = selected ? 7 : 0;\n this._segmentSelection = selection * length;\n for(var i = 0; i < length; i++)segments[i]._selection = selection;\n },\n _updateSelection: function(segment, oldSelection, newSelection) {\n segment._selection = newSelection;\n var selection = this._segmentSelection += newSelection - oldSelection;\n if (selection > 0) this.setSelected(true);\n },\n divideAt: function(location) {\n var loc = this.getLocationAt(location), curve;\n return loc && (curve = loc.getCurve().divideAt(loc.getCurveOffset())) ? curve._segment1 : null;\n },\n splitAt: function(location) {\n var loc = this.getLocationAt(location), index = loc && loc.index, time = loc && loc.time, tMin = 1e-8, tMax = 1 - tMin;\n if (time > tMax) {\n index++;\n time = 0;\n }\n var curves = this.getCurves();\n if (index >= 0 && index < curves.length) {\n if (time >= tMin) curves[index++].divideAtTime(time);\n var segs = this.removeSegments(index, this._segments.length, true), path;\n if (this._closed) {\n this.setClosed(false);\n path = this;\n } else {\n path = new Path(Item.NO_INSERT);\n path.insertAbove(this);\n path.copyAttributes(this);\n }\n path._add(segs, 0);\n this.addSegment(segs[0]);\n return path;\n }\n return null;\n },\n split: function(index, time) {\n var curve, location = time === undefined ? index : (curve = this.getCurves()[index]) && curve.getLocationAtTime(time);\n return location != null ? this.splitAt(location) : null;\n },\n join: function(path, tolerance) {\n var epsilon = tolerance || 0;\n if (path && path !== this) {\n var segments = path._segments, last1 = this.getLastSegment(), last2 = path.getLastSegment();\n if (!last2) return this;\n if (last1 && last1._point.isClose(last2._point, epsilon)) path.reverse();\n var first2 = path.getFirstSegment();\n if (last1 && last1._point.isClose(first2._point, epsilon)) {\n last1.setHandleOut(first2._handleOut);\n this._add(segments.slice(1));\n } else {\n var first1 = this.getFirstSegment();\n if (first1 && first1._point.isClose(first2._point, epsilon)) path.reverse();\n last2 = path.getLastSegment();\n if (first1 && first1._point.isClose(last2._point, epsilon)) {\n first1.setHandleIn(last2._handleIn);\n this._add(segments.slice(0, segments.length - 1), 0);\n } else this._add(segments.slice());\n }\n if (path._closed) this._add([\n segments[0]\n ]);\n path.remove();\n }\n var first = this.getFirstSegment(), last = this.getLastSegment();\n if (first !== last && first._point.isClose(last._point, epsilon)) {\n first.setHandleIn(last._handleIn);\n last.remove();\n this.setClosed(true);\n }\n return this;\n },\n reduce: function(options) {\n var curves = this.getCurves(), simplify = options && options.simplify, tolerance = simplify ? 1e-7 : 0;\n for(var i = curves.length - 1; i >= 0; i--){\n var curve = curves[i];\n if (!curve.hasHandles() && (!curve.hasLength(tolerance) || simplify && curve.isCollinear(curve.getNext()))) curve.remove();\n }\n return this;\n },\n reverse: function() {\n this._segments.reverse();\n for(var i = 0, l = this._segments.length; i < l; i++){\n var segment = this._segments[i];\n var handleIn = segment._handleIn;\n segment._handleIn = segment._handleOut;\n segment._handleOut = handleIn;\n segment._index = i;\n }\n this._curves = null;\n this._changed(9);\n },\n flatten: function(flatness) {\n var flattener = new PathFlattener(this, flatness || 0.25, 256, true), parts = flattener.parts, length = parts.length, segments = [];\n for(var i = 0; i < length; i++)segments.push(new Segment(parts[i].curve.slice(0, 2)));\n if (!this._closed && length > 0) segments.push(new Segment(parts[length - 1].curve.slice(6)));\n this.setSegments(segments);\n },\n simplify: function(tolerance) {\n var segments = new PathFitter(this).fit(tolerance || 2.5);\n if (segments) this.setSegments(segments);\n return !!segments;\n },\n smooth: function(options) {\n var that = this, opts = options || {}, type = opts.type || \"asymmetric\", segments = this._segments, length = segments.length, closed = this._closed;\n function getIndex(value, _default) {\n var index = value && value.index;\n if (index != null) {\n var path = value.path;\n if (path && path !== that) throw new Error(value._class + \" \" + index + \" of \" + path + \" is not part of \" + that);\n if (_default && value instanceof Curve) index++;\n } else index = typeof value === \"number\" ? value : _default;\n return Math.min(index < 0 && closed ? index % length : index < 0 ? index + length : index, length - 1);\n }\n var loop = closed && opts.from === undefined && opts.to === undefined, from = getIndex(opts.from, 0), to = getIndex(opts.to, length - 1);\n if (from > to) {\n if (closed) from -= length;\n else {\n var tmp = from;\n from = to;\n to = tmp;\n }\n }\n if (/^(?:asymmetric|continuous)$/.test(type)) {\n var asymmetric = type === \"asymmetric\", min = Math.min, amount = to - from + 1, n = amount - 1, padding = loop ? min(amount, 4) : 1, paddingLeft = padding, paddingRight = padding, knots = [];\n if (!closed) {\n paddingLeft = min(1, from);\n paddingRight = min(1, length - to - 1);\n }\n n += paddingLeft + paddingRight;\n if (n <= 1) return;\n for(var i = 0, j = from - paddingLeft; i <= n; i++, j++)knots[i] = segments[(j < 0 ? j + length : j) % length]._point;\n var x = knots[0]._x + 2 * knots[1]._x, y = knots[0]._y + 2 * knots[1]._y, f = 2, n_1 = n - 1, rx = [\n x\n ], ry = [\n y\n ], rf = [\n f\n ], px = [], py = [];\n for(var i = 1; i < n; i++){\n var internal = i < n_1, a = internal ? 1 : asymmetric ? 1 : 2, b = internal ? 4 : asymmetric ? 2 : 7, u = internal ? 4 : asymmetric ? 3 : 8, v = internal ? 2 : asymmetric ? 0 : 1, m = a / f;\n f = rf[i] = b - m;\n x = rx[i] = u * knots[i]._x + v * knots[i + 1]._x - m * x;\n y = ry[i] = u * knots[i]._y + v * knots[i + 1]._y - m * y;\n }\n px[n_1] = rx[n_1] / rf[n_1];\n py[n_1] = ry[n_1] / rf[n_1];\n for(var i = n - 2; i >= 0; i--){\n px[i] = (rx[i] - px[i + 1]) / rf[i];\n py[i] = (ry[i] - py[i + 1]) / rf[i];\n }\n px[n] = (3 * knots[n]._x - px[n_1]) / 2;\n py[n] = (3 * knots[n]._y - py[n_1]) / 2;\n for(var i = paddingLeft, max = n - paddingRight, j = from; i <= max; i++, j++){\n var segment = segments[j < 0 ? j + length : j], pt = segment._point, hx = px[i] - pt._x, hy = py[i] - pt._y;\n if (loop || i < max) segment.setHandleOut(hx, hy);\n if (loop || i > paddingLeft) segment.setHandleIn(-hx, -hy);\n }\n } else for(var i = from; i <= to; i++)segments[i < 0 ? i + length : i].smooth(opts, !loop && i === from, !loop && i === to);\n },\n toShape: function(insert) {\n if (!this._closed) return null;\n var segments = this._segments, type, size, radius, topCenter;\n function isCollinear(i, j) {\n var seg1 = segments[i], seg2 = seg1.getNext(), seg3 = segments[j], seg4 = seg3.getNext();\n return seg1._handleOut.isZero() && seg2._handleIn.isZero() && seg3._handleOut.isZero() && seg4._handleIn.isZero() && seg2._point.subtract(seg1._point).isCollinear(seg4._point.subtract(seg3._point));\n }\n function isOrthogonal(i) {\n var seg2 = segments[i], seg1 = seg2.getPrevious(), seg3 = seg2.getNext();\n return seg1._handleOut.isZero() && seg2._handleIn.isZero() && seg2._handleOut.isZero() && seg3._handleIn.isZero() && seg2._point.subtract(seg1._point).isOrthogonal(seg3._point.subtract(seg2._point));\n }\n function isArc(i) {\n var seg1 = segments[i], seg2 = seg1.getNext(), handle1 = seg1._handleOut, handle2 = seg2._handleIn, kappa = 0.5522847498307936;\n if (handle1.isOrthogonal(handle2)) {\n var pt1 = seg1._point, pt2 = seg2._point, corner = new Line(pt1, handle1, true).intersect(new Line(pt2, handle2, true), true);\n return corner && Numerical.isZero(handle1.getLength() / corner.subtract(pt1).getLength() - kappa) && Numerical.isZero(handle2.getLength() / corner.subtract(pt2).getLength() - kappa);\n }\n return false;\n }\n function getDistance(i, j) {\n return segments[i]._point.getDistance(segments[j]._point);\n }\n if (!this.hasHandles() && segments.length === 4 && isCollinear(0, 2) && isCollinear(1, 3) && isOrthogonal(1)) {\n type = Shape.Rectangle;\n size = new Size(getDistance(0, 3), getDistance(0, 1));\n topCenter = segments[1]._point.add(segments[2]._point).divide(2);\n } else if (segments.length === 8 && isArc(0) && isArc(2) && isArc(4) && isArc(6) && isCollinear(1, 5) && isCollinear(3, 7)) {\n type = Shape.Rectangle;\n size = new Size(getDistance(1, 6), getDistance(0, 3));\n radius = size.subtract(new Size(getDistance(0, 7), getDistance(1, 2))).divide(2);\n topCenter = segments[3]._point.add(segments[4]._point).divide(2);\n } else if (segments.length === 4 && isArc(0) && isArc(1) && isArc(2) && isArc(3)) {\n if (Numerical.isZero(getDistance(0, 2) - getDistance(1, 3))) {\n type = Shape.Circle;\n radius = getDistance(0, 2) / 2;\n } else {\n type = Shape.Ellipse;\n radius = new Size(getDistance(2, 0) / 2, getDistance(3, 1) / 2);\n }\n topCenter = segments[1]._point;\n }\n if (type) {\n var center = this.getPosition(true), shape = new type({\n center: center,\n size: size,\n radius: radius,\n insert: false\n });\n shape.copyAttributes(this, true);\n shape._matrix.prepend(this._matrix);\n shape.rotate(topCenter.subtract(center).getAngle() + 90);\n if (insert === undefined || insert) shape.insertAbove(this);\n return shape;\n }\n return null;\n },\n toPath: \"#clone\",\n compare: function compare(path) {\n if (!path || path instanceof CompoundPath) return compare.base.call(this, path);\n var curves1 = this.getCurves(), curves2 = path.getCurves(), length1 = curves1.length, length2 = curves2.length;\n if (!length1 || !length2) return length1 == length2;\n var v1 = curves1[0].getValues(), values2 = [], pos1 = 0, pos2, end1 = 0, end2;\n for(var i = 0; i < length2; i++){\n var v2 = curves2[i].getValues();\n values2.push(v2);\n var overlaps = Curve.getOverlaps(v1, v2);\n if (overlaps) {\n pos2 = !i && overlaps[0][0] > 0 ? length2 - 1 : i;\n end2 = overlaps[0][1];\n break;\n }\n }\n var abs = Math.abs, epsilon = 1e-8, v2 = values2[pos2], start2;\n while(v1 && v2){\n var overlaps = Curve.getOverlaps(v1, v2);\n if (overlaps) {\n var t1 = overlaps[0][0];\n if (abs(t1 - end1) < epsilon) {\n end1 = overlaps[1][0];\n if (end1 === 1) {\n v1 = ++pos1 < length1 ? curves1[pos1].getValues() : null;\n end1 = 0;\n }\n var t2 = overlaps[0][1];\n if (abs(t2 - end2) < epsilon) {\n if (!start2) start2 = [\n pos2,\n t2\n ];\n end2 = overlaps[1][1];\n if (end2 === 1) {\n if (++pos2 >= length2) pos2 = 0;\n v2 = values2[pos2] || curves2[pos2].getValues();\n end2 = 0;\n }\n if (!v1) return start2[0] === pos2 && start2[1] === end2;\n continue;\n }\n }\n }\n break;\n }\n return false;\n },\n _hitTestSelf: function(point, options, viewMatrix, strokeMatrix) {\n var that = this, style = this.getStyle(), segments = this._segments, numSegments = segments.length, closed = this._closed, tolerancePadding = options._tolerancePadding, strokePadding = tolerancePadding, join, cap, miterLimit, area, loc, res, hitStroke = options.stroke && style.hasStroke(), hitFill = options.fill && style.hasFill(), hitCurves = options.curves, strokeRadius = hitStroke ? style.getStrokeWidth() / 2 : hitFill && options.tolerance > 0 || hitCurves ? 0 : null;\n if (strokeRadius !== null) {\n if (strokeRadius > 0) {\n join = style.getStrokeJoin();\n cap = style.getStrokeCap();\n miterLimit = style.getMiterLimit();\n strokePadding = strokePadding.add(Path._getStrokePadding(strokeRadius, strokeMatrix));\n } else join = cap = \"round\";\n }\n function isCloseEnough(pt, padding) {\n return point.subtract(pt).divide(padding).length <= 1;\n }\n function checkSegmentPoint(seg, pt, name) {\n if (!options.selected || pt.isSelected()) {\n var anchor = seg._point;\n if (pt !== anchor) pt = pt.add(anchor);\n if (isCloseEnough(pt, strokePadding)) return new HitResult(name, that, {\n segment: seg,\n point: pt\n });\n }\n }\n function checkSegmentPoints(seg, ends) {\n return (ends || options.segments) && checkSegmentPoint(seg, seg._point, \"segment\") || !ends && options.handles && (checkSegmentPoint(seg, seg._handleIn, \"handle-in\") || checkSegmentPoint(seg, seg._handleOut, \"handle-out\"));\n }\n function addToArea(point) {\n area.add(point);\n }\n function checkSegmentStroke(segment) {\n var isJoin = closed || segment._index > 0 && segment._index < numSegments - 1;\n if ((isJoin ? join : cap) === \"round\") return isCloseEnough(segment._point, strokePadding);\n else {\n area = new Path({\n internal: true,\n closed: true\n });\n if (isJoin) {\n if (!segment.isSmooth()) Path._addBevelJoin(segment, join, strokeRadius, miterLimit, null, strokeMatrix, addToArea, true);\n } else if (cap === \"square\") Path._addSquareCap(segment, cap, strokeRadius, null, strokeMatrix, addToArea, true);\n if (!area.isEmpty()) {\n var loc;\n return area.contains(point) || (loc = area.getNearestLocation(point)) && isCloseEnough(loc.getPoint(), tolerancePadding);\n }\n }\n }\n if (options.ends && !options.segments && !closed) {\n if (res = checkSegmentPoints(segments[0], true) || checkSegmentPoints(segments[numSegments - 1], true)) return res;\n } else if (options.segments || options.handles) {\n for(var i = 0; i < numSegments; i++)if (res = checkSegmentPoints(segments[i])) return res;\n }\n if (strokeRadius !== null) {\n loc = this.getNearestLocation(point);\n if (loc) {\n var time = loc.getTime();\n if (time === 0 || time === 1 && numSegments > 1) {\n if (!checkSegmentStroke(loc.getSegment())) loc = null;\n } else if (!isCloseEnough(loc.getPoint(), strokePadding)) loc = null;\n }\n if (!loc && join === \"miter\" && numSegments > 1) for(var i = 0; i < numSegments; i++){\n var segment = segments[i];\n if (point.getDistance(segment._point) <= miterLimit * strokeRadius && checkSegmentStroke(segment)) {\n loc = segment.getLocation();\n break;\n }\n }\n }\n return !loc && hitFill && this._contains(point) || loc && !hitStroke && !hitCurves ? new HitResult(\"fill\", this) : loc ? new HitResult(hitStroke ? \"stroke\" : \"curve\", this, {\n location: loc,\n point: loc.getPoint()\n }) : null;\n }\n }, Base.each(Curve._evaluateMethods, function(name) {\n this[name + \"At\"] = function(offset) {\n var loc = this.getLocationAt(offset);\n return loc && loc[name]();\n };\n }, {\n beans: false,\n getLocationOf: function() {\n var point = Point.read(arguments), curves = this.getCurves();\n for(var i = 0, l = curves.length; i < l; i++){\n var loc = curves[i].getLocationOf(point);\n if (loc) return loc;\n }\n return null;\n },\n getOffsetOf: function() {\n var loc = this.getLocationOf.apply(this, arguments);\n return loc ? loc.getOffset() : null;\n },\n getLocationAt: function(offset) {\n if (typeof offset === \"number\") {\n var curves = this.getCurves(), length = 0;\n for(var i = 0, l = curves.length; i < l; i++){\n var start = length, curve = curves[i];\n length += curve.getLength();\n if (length > offset) return curve.getLocationAt(offset - start);\n }\n if (curves.length > 0 && offset <= this.getLength()) return new CurveLocation(curves[curves.length - 1], 1);\n } else if (offset && offset.getPath && offset.getPath() === this) return offset;\n return null;\n },\n getOffsetsWithTangent: function() {\n var tangent = Point.read(arguments);\n if (tangent.isZero()) return [];\n var offsets = [];\n var curveStart = 0;\n var curves = this.getCurves();\n for(var i = 0, l = curves.length; i < l; i++){\n var curve = curves[i];\n var curveTimes = curve.getTimesWithTangent(tangent);\n for(var j = 0, m = curveTimes.length; j < m; j++){\n var offset = curveStart + curve.getOffsetAtTime(curveTimes[j]);\n if (offsets.indexOf(offset) < 0) offsets.push(offset);\n }\n curveStart += curve.length;\n }\n return offsets;\n }\n }), new function() {\n function drawHandles(ctx, segments, matrix, size) {\n if (size <= 0) return;\n var half = size / 2, miniSize = size - 2, miniHalf = half - 1, coords = new Array(6), pX, pY;\n function drawHandle(index) {\n var hX = coords[index], hY = coords[index + 1];\n if (pX != hX || pY != hY) {\n ctx.beginPath();\n ctx.moveTo(pX, pY);\n ctx.lineTo(hX, hY);\n ctx.stroke();\n ctx.beginPath();\n ctx.arc(hX, hY, half, 0, Math.PI * 2, true);\n ctx.fill();\n }\n }\n for(var i = 0, l = segments.length; i < l; i++){\n var segment = segments[i], selection = segment._selection;\n segment._transformCoordinates(matrix, coords);\n pX = coords[0];\n pY = coords[1];\n if (selection & 2) drawHandle(2);\n if (selection & 4) drawHandle(4);\n ctx.fillRect(pX - half, pY - half, size, size);\n if (miniSize > 0 && !(selection & 1)) {\n var fillStyle = ctx.fillStyle;\n ctx.fillStyle = \"#ffffff\";\n ctx.fillRect(pX - miniHalf, pY - miniHalf, miniSize, miniSize);\n ctx.fillStyle = fillStyle;\n }\n }\n }\n function drawSegments(ctx, path, matrix) {\n var segments = path._segments, length = segments.length, coords = new Array(6), first = true, curX, curY, prevX, prevY, inX, inY, outX, outY;\n function drawSegment(segment) {\n if (matrix) {\n segment._transformCoordinates(matrix, coords);\n curX = coords[0];\n curY = coords[1];\n } else {\n var point = segment._point;\n curX = point._x;\n curY = point._y;\n }\n if (first) {\n ctx.moveTo(curX, curY);\n first = false;\n } else {\n if (matrix) {\n inX = coords[2];\n inY = coords[3];\n } else {\n var handle = segment._handleIn;\n inX = curX + handle._x;\n inY = curY + handle._y;\n }\n if (inX === curX && inY === curY && outX === prevX && outY === prevY) ctx.lineTo(curX, curY);\n else ctx.bezierCurveTo(outX, outY, inX, inY, curX, curY);\n }\n prevX = curX;\n prevY = curY;\n if (matrix) {\n outX = coords[4];\n outY = coords[5];\n } else {\n var handle = segment._handleOut;\n outX = prevX + handle._x;\n outY = prevY + handle._y;\n }\n }\n for(var i = 0; i < length; i++)drawSegment(segments[i]);\n if (path._closed && length > 0) drawSegment(segments[0]);\n }\n return {\n _draw: function(ctx, param, viewMatrix, strokeMatrix) {\n var dontStart = param.dontStart, dontPaint = param.dontFinish || param.clip, style = this.getStyle(), hasFill = style.hasFill(), hasStroke = style.hasStroke(), dashArray = style.getDashArray(), dashLength = !paper.support.nativeDash && hasStroke && dashArray && dashArray.length;\n if (!dontStart) ctx.beginPath();\n if (hasFill || hasStroke && !dashLength || dontPaint) {\n drawSegments(ctx, this, strokeMatrix);\n if (this._closed) ctx.closePath();\n }\n function getOffset(i) {\n return dashArray[(i % dashLength + dashLength) % dashLength];\n }\n if (!dontPaint && (hasFill || hasStroke)) {\n this._setStyles(ctx, param, viewMatrix);\n if (hasFill) {\n ctx.fill(style.getFillRule());\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n }\n if (hasStroke) {\n if (dashLength) {\n if (!dontStart) ctx.beginPath();\n var flattener = new PathFlattener(this, 0.25, 32, false, strokeMatrix), length = flattener.length, from = -style.getDashOffset(), to, i = 0;\n while(from > 0)from -= getOffset(i--) + getOffset(i--);\n while(from < length){\n to = from + getOffset(i++);\n if (from > 0 || to > 0) flattener.drawPart(ctx, Math.max(from, 0), Math.max(to, 0));\n from = to + getOffset(i++);\n }\n }\n ctx.stroke();\n }\n }\n },\n _drawSelected: function(ctx, matrix) {\n ctx.beginPath();\n drawSegments(ctx, this, matrix);\n ctx.stroke();\n drawHandles(ctx, this._segments, matrix, paper.settings.handleSize);\n }\n };\n }, new function() {\n function getCurrentSegment(that) {\n var segments = that._segments;\n if (!segments.length) throw new Error(\"Use a moveTo() command first\");\n return segments[segments.length - 1];\n }\n return {\n moveTo: function() {\n var segments = this._segments;\n if (segments.length === 1) this.removeSegment(0);\n if (!segments.length) this._add([\n new Segment(Point.read(arguments))\n ]);\n },\n moveBy: function() {\n throw new Error(\"moveBy() is unsupported on Path items.\");\n },\n lineTo: function() {\n this._add([\n new Segment(Point.read(arguments))\n ]);\n },\n cubicCurveTo: function() {\n var args = arguments, handle1 = Point.read(args), handle2 = Point.read(args), to = Point.read(args), current = getCurrentSegment(this);\n current.setHandleOut(handle1.subtract(current._point));\n this._add([\n new Segment(to, handle2.subtract(to))\n ]);\n },\n quadraticCurveTo: function() {\n var args = arguments, handle = Point.read(args), to = Point.read(args), current = getCurrentSegment(this)._point;\n this.cubicCurveTo(handle.add(current.subtract(handle).multiply(1 / 3)), handle.add(to.subtract(handle).multiply(1 / 3)), to);\n },\n curveTo: function() {\n var args = arguments, through = Point.read(args), to = Point.read(args), t = Base.pick(Base.read(args), 0.5), t1 = 1 - t, current = getCurrentSegment(this)._point, handle = through.subtract(current.multiply(t1 * t1)).subtract(to.multiply(t * t)).divide(2 * t * t1);\n if (handle.isNaN()) throw new Error(\"Cannot put a curve through points with parameter = \" + t);\n this.quadraticCurveTo(handle, to);\n },\n arcTo: function() {\n var args = arguments, abs = Math.abs, sqrt = Math.sqrt, current = getCurrentSegment(this), from = current._point, to = Point.read(args), through, peek = Base.peek(args), clockwise = Base.pick(peek, true), center, extent, vector, matrix;\n if (typeof clockwise === \"boolean\") var middle = from.add(to).divide(2), through = middle.add(middle.subtract(from).rotate(clockwise ? -90 : 90));\n else if (Base.remain(args) <= 2) {\n through = to;\n to = Point.read(args);\n } else if (!from.equals(to)) {\n var radius = Size.read(args), isZero = Numerical.isZero;\n if (isZero(radius.width) || isZero(radius.height)) return this.lineTo(to);\n var rotation = Base.read(args), clockwise = !!Base.read(args), large = !!Base.read(args), middle = from.add(to).divide(2), pt = from.subtract(middle).rotate(-rotation), x = pt.x, y = pt.y, rx = abs(radius.width), ry = abs(radius.height), rxSq = rx * rx, rySq = ry * ry, xSq = x * x, ySq = y * y;\n var factor = sqrt(xSq / rxSq + ySq / rySq);\n if (factor > 1) {\n rx *= factor;\n ry *= factor;\n rxSq = rx * rx;\n rySq = ry * ry;\n }\n factor = (rxSq * rySq - rxSq * ySq - rySq * xSq) / (rxSq * ySq + rySq * xSq);\n if (abs(factor) < 1e-12) factor = 0;\n if (factor < 0) throw new Error(\"Cannot create an arc with the given arguments\");\n center = new Point(rx * y / ry, -ry * x / rx).multiply((large === clockwise ? -1 : 1) * sqrt(factor)).rotate(rotation).add(middle);\n matrix = new Matrix().translate(center).rotate(rotation).scale(rx, ry);\n vector = matrix._inverseTransform(from);\n extent = vector.getDirectedAngle(matrix._inverseTransform(to));\n if (!clockwise && extent > 0) extent -= 360;\n else if (clockwise && extent < 0) extent += 360;\n }\n if (through) {\n var l1 = new Line(from.add(through).divide(2), through.subtract(from).rotate(90), true), l2 = new Line(through.add(to).divide(2), to.subtract(through).rotate(90), true), line = new Line(from, to), throughSide = line.getSide(through);\n center = l1.intersect(l2, true);\n if (!center) {\n if (!throughSide) return this.lineTo(to);\n throw new Error(\"Cannot create an arc with the given arguments\");\n }\n vector = from.subtract(center);\n extent = vector.getDirectedAngle(to.subtract(center));\n var centerSide = line.getSide(center, true);\n if (centerSide === 0) extent = throughSide * abs(extent);\n else if (throughSide === centerSide) extent += extent < 0 ? 360 : -360;\n }\n if (extent) {\n var epsilon = 1e-5, ext = abs(extent), count = ext >= 360 ? 4 : Math.ceil((ext - epsilon) / 90), inc = extent / count, half = inc * Math.PI / 360, z = 4 / 3 * Math.sin(half) / (1 + Math.cos(half)), segments = [];\n for(var i = 0; i <= count; i++){\n var pt = to, out = null;\n if (i < count) {\n out = vector.rotate(90).multiply(z);\n if (matrix) {\n pt = matrix._transformPoint(vector);\n out = matrix._transformPoint(vector.add(out)).subtract(pt);\n } else pt = center.add(vector);\n }\n if (!i) current.setHandleOut(out);\n else {\n var _in = vector.rotate(-90).multiply(z);\n if (matrix) _in = matrix._transformPoint(vector.add(_in)).subtract(pt);\n segments.push(new Segment(pt, _in, out));\n }\n vector = vector.rotate(inc);\n }\n this._add(segments);\n }\n },\n lineBy: function() {\n var to = Point.read(arguments), current = getCurrentSegment(this)._point;\n this.lineTo(current.add(to));\n },\n curveBy: function() {\n var args = arguments, through = Point.read(args), to = Point.read(args), parameter = Base.read(args), current = getCurrentSegment(this)._point;\n this.curveTo(current.add(through), current.add(to), parameter);\n },\n cubicCurveBy: function() {\n var args = arguments, handle1 = Point.read(args), handle2 = Point.read(args), to = Point.read(args), current = getCurrentSegment(this)._point;\n this.cubicCurveTo(current.add(handle1), current.add(handle2), current.add(to));\n },\n quadraticCurveBy: function() {\n var args = arguments, handle = Point.read(args), to = Point.read(args), current = getCurrentSegment(this)._point;\n this.quadraticCurveTo(current.add(handle), current.add(to));\n },\n arcBy: function() {\n var args = arguments, current = getCurrentSegment(this)._point, point = current.add(Point.read(args)), clockwise = Base.pick(Base.peek(args), true);\n if (typeof clockwise === \"boolean\") this.arcTo(point, clockwise);\n else this.arcTo(point, current.add(Point.read(args)));\n },\n closePath: function(tolerance) {\n this.setClosed(true);\n this.join(this, tolerance);\n }\n };\n }, {\n _getBounds: function(matrix, options) {\n var method = options.handle ? \"getHandleBounds\" : options.stroke ? \"getStrokeBounds\" : \"getBounds\";\n return Path[method](this._segments, this._closed, this, matrix, options);\n },\n statics: {\n getBounds: function(segments, closed, path, matrix, options, strokePadding) {\n var first = segments[0];\n if (!first) return new Rectangle();\n var coords = new Array(6), prevCoords = first._transformCoordinates(matrix, new Array(6)), min = prevCoords.slice(0, 2), max = min.slice(), roots = new Array(2);\n function processSegment(segment) {\n segment._transformCoordinates(matrix, coords);\n for(var i = 0; i < 2; i++)Curve._addBounds(prevCoords[i], prevCoords[i + 4], coords[i + 2], coords[i], i, strokePadding ? strokePadding[i] : 0, min, max, roots);\n var tmp = prevCoords;\n prevCoords = coords;\n coords = tmp;\n }\n for(var i = 1, l = segments.length; i < l; i++)processSegment(segments[i]);\n if (closed) processSegment(first);\n return new Rectangle(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n },\n getStrokeBounds: function(segments, closed, path, matrix, options) {\n var style = path.getStyle(), stroke = style.hasStroke(), strokeWidth = style.getStrokeWidth(), strokeMatrix = stroke && path._getStrokeMatrix(matrix, options), strokePadding = stroke && Path._getStrokePadding(strokeWidth, strokeMatrix), bounds = Path.getBounds(segments, closed, path, matrix, options, strokePadding);\n if (!stroke) return bounds;\n var strokeRadius = strokeWidth / 2, join = style.getStrokeJoin(), cap = style.getStrokeCap(), miterLimit = style.getMiterLimit(), joinBounds = new Rectangle(new Size(strokePadding));\n function addPoint(point) {\n bounds = bounds.include(point);\n }\n function addRound(segment) {\n bounds = bounds.unite(joinBounds.setCenter(segment._point.transform(matrix)));\n }\n function addJoin(segment, join) {\n if (join === \"round\" || segment.isSmooth()) addRound(segment);\n else Path._addBevelJoin(segment, join, strokeRadius, miterLimit, matrix, strokeMatrix, addPoint);\n }\n function addCap(segment, cap) {\n if (cap === \"round\") addRound(segment);\n else Path._addSquareCap(segment, cap, strokeRadius, matrix, strokeMatrix, addPoint);\n }\n var length = segments.length - (closed ? 0 : 1);\n if (length > 0) {\n for(var i = 1; i < length; i++)addJoin(segments[i], join);\n if (closed) addJoin(segments[0], join);\n else {\n addCap(segments[0], cap);\n addCap(segments[segments.length - 1], cap);\n }\n }\n return bounds;\n },\n _getStrokePadding: function(radius, matrix) {\n if (!matrix) return [\n radius,\n radius\n ];\n var hor = new Point(radius, 0).transform(matrix), ver = new Point(0, radius).transform(matrix), phi = hor.getAngleInRadians(), a = hor.getLength(), b = ver.getLength();\n var sin = Math.sin(phi), cos = Math.cos(phi), tan = Math.tan(phi), tx = Math.atan2(b * tan, a), ty = Math.atan2(b, tan * a);\n return [\n Math.abs(a * Math.cos(tx) * cos + b * Math.sin(tx) * sin),\n Math.abs(b * Math.sin(ty) * cos + a * Math.cos(ty) * sin)\n ];\n },\n _addBevelJoin: function(segment, join, radius, miterLimit, matrix, strokeMatrix, addPoint, isArea) {\n var curve2 = segment.getCurve(), curve1 = curve2.getPrevious(), point = curve2.getPoint1().transform(matrix), normal1 = curve1.getNormalAtTime(1).multiply(radius).transform(strokeMatrix), normal2 = curve2.getNormalAtTime(0).multiply(radius).transform(strokeMatrix), angle = normal1.getDirectedAngle(normal2);\n if (angle < 0 || angle >= 180) {\n normal1 = normal1.negate();\n normal2 = normal2.negate();\n }\n if (isArea) addPoint(point);\n addPoint(point.add(normal1));\n if (join === \"miter\") {\n var corner = new Line(point.add(normal1), new Point(-normal1.y, normal1.x), true).intersect(new Line(point.add(normal2), new Point(-normal2.y, normal2.x), true), true);\n if (corner && point.getDistance(corner) <= miterLimit * radius) addPoint(corner);\n }\n addPoint(point.add(normal2));\n },\n _addSquareCap: function(segment, cap, radius, matrix, strokeMatrix, addPoint, isArea) {\n var point = segment._point.transform(matrix), loc = segment.getLocation(), normal = loc.getNormal().multiply(loc.getTime() === 0 ? radius : -radius).transform(strokeMatrix);\n if (cap === \"square\") {\n if (isArea) {\n addPoint(point.subtract(normal));\n addPoint(point.add(normal));\n }\n point = point.add(normal.rotate(-90));\n }\n addPoint(point.add(normal));\n addPoint(point.subtract(normal));\n },\n getHandleBounds: function(segments, closed, path, matrix, options) {\n var style = path.getStyle(), stroke = options.stroke && style.hasStroke(), strokePadding, joinPadding;\n if (stroke) {\n var strokeMatrix = path._getStrokeMatrix(matrix, options), strokeRadius = style.getStrokeWidth() / 2, joinRadius = strokeRadius;\n if (style.getStrokeJoin() === \"miter\") joinRadius = strokeRadius * style.getMiterLimit();\n if (style.getStrokeCap() === \"square\") joinRadius = Math.max(joinRadius, strokeRadius * Math.SQRT2);\n strokePadding = Path._getStrokePadding(strokeRadius, strokeMatrix);\n joinPadding = Path._getStrokePadding(joinRadius, strokeMatrix);\n }\n var coords = new Array(6), x1 = Infinity, x2 = -x1, y1 = x1, y2 = x2;\n for(var i = 0, l = segments.length; i < l; i++){\n var segment = segments[i];\n segment._transformCoordinates(matrix, coords);\n for(var j = 0; j < 6; j += 2){\n var padding = !j ? joinPadding : strokePadding, paddingX = padding ? padding[0] : 0, paddingY = padding ? padding[1] : 0, x = coords[j], y = coords[j + 1], xn = x - paddingX, xx = x + paddingX, yn = y - paddingY, yx = y + paddingY;\n if (xn < x1) x1 = xn;\n if (xx > x2) x2 = xx;\n if (yn < y1) y1 = yn;\n if (yx > y2) y2 = yx;\n }\n }\n return new Rectangle(x1, y1, x2 - x1, y2 - y1);\n }\n }\n });\n Path.inject({\n statics: new function() {\n var kappa = 0.5522847498307936, ellipseSegments = [\n new Segment([\n -1,\n 0\n ], [\n 0,\n kappa\n ], [\n 0,\n -kappa\n ]),\n new Segment([\n 0,\n -1\n ], [\n -kappa,\n 0\n ], [\n kappa,\n 0\n ]),\n new Segment([\n 1,\n 0\n ], [\n 0,\n -kappa\n ], [\n 0,\n kappa\n ]),\n new Segment([\n 0,\n 1\n ], [\n kappa,\n 0\n ], [\n -kappa,\n 0\n ])\n ];\n function createPath(segments, closed, args) {\n var props = Base.getNamed(args), path = new Path(props && (props.insert == true ? Item.INSERT : props.insert == false ? Item.NO_INSERT : null));\n path._add(segments);\n path._closed = closed;\n return path.set(props, Item.INSERT);\n }\n function createEllipse(center, radius, args) {\n var segments = new Array(4);\n for(var i = 0; i < 4; i++){\n var segment = ellipseSegments[i];\n segments[i] = new Segment(segment._point.multiply(radius).add(center), segment._handleIn.multiply(radius), segment._handleOut.multiply(radius));\n }\n return createPath(segments, true, args);\n }\n return {\n Line: function() {\n var args = arguments;\n return createPath([\n new Segment(Point.readNamed(args, \"from\")),\n new Segment(Point.readNamed(args, \"to\"))\n ], false, args);\n },\n Circle: function() {\n var args = arguments, center = Point.readNamed(args, \"center\"), radius = Base.readNamed(args, \"radius\");\n return createEllipse(center, new Size(radius), args);\n },\n Rectangle: function() {\n var args = arguments, rect = Rectangle.readNamed(args, \"rectangle\"), radius = Size.readNamed(args, \"radius\", 0, {\n readNull: true\n }), bl = rect.getBottomLeft(true), tl = rect.getTopLeft(true), tr = rect.getTopRight(true), br = rect.getBottomRight(true), segments;\n if (!radius || radius.isZero()) segments = [\n new Segment(bl),\n new Segment(tl),\n new Segment(tr),\n new Segment(br)\n ];\n else {\n radius = Size.min(radius, rect.getSize(true).divide(2));\n var rx = radius.width, ry = radius.height, hx = rx * kappa, hy = ry * kappa;\n segments = [\n new Segment(bl.add(rx, 0), null, [\n -hx,\n 0\n ]),\n new Segment(bl.subtract(0, ry), [\n 0,\n hy\n ]),\n new Segment(tl.add(0, ry), null, [\n 0,\n -hy\n ]),\n new Segment(tl.add(rx, 0), [\n -hx,\n 0\n ], null),\n new Segment(tr.subtract(rx, 0), null, [\n hx,\n 0\n ]),\n new Segment(tr.add(0, ry), [\n 0,\n -hy\n ], null),\n new Segment(br.subtract(0, ry), null, [\n 0,\n hy\n ]),\n new Segment(br.subtract(rx, 0), [\n hx,\n 0\n ])\n ];\n }\n return createPath(segments, true, args);\n },\n RoundRectangle: \"#Rectangle\",\n Ellipse: function() {\n var args = arguments, ellipse = Shape._readEllipse(args);\n return createEllipse(ellipse.center, ellipse.radius, args);\n },\n Oval: \"#Ellipse\",\n Arc: function() {\n var args = arguments, from = Point.readNamed(args, \"from\"), through = Point.readNamed(args, \"through\"), to = Point.readNamed(args, \"to\"), props = Base.getNamed(args), path = new Path(props && props.insert == false && Item.NO_INSERT);\n path.moveTo(from);\n path.arcTo(through, to);\n return path.set(props);\n },\n RegularPolygon: function() {\n var args = arguments, center = Point.readNamed(args, \"center\"), sides = Base.readNamed(args, \"sides\"), radius = Base.readNamed(args, \"radius\"), step = 360 / sides, three = sides % 3 === 0, vector = new Point(0, three ? -radius : radius), offset = three ? -1 : 0.5, segments = new Array(sides);\n for(var i = 0; i < sides; i++)segments[i] = new Segment(center.add(vector.rotate((i + offset) * step)));\n return createPath(segments, true, args);\n },\n Star: function() {\n var args = arguments, center = Point.readNamed(args, \"center\"), points = Base.readNamed(args, \"points\") * 2, radius1 = Base.readNamed(args, \"radius1\"), radius2 = Base.readNamed(args, \"radius2\"), step = 360 / points, vector = new Point(0, -1), segments = new Array(points);\n for(var i = 0; i < points; i++)segments[i] = new Segment(center.add(vector.rotate(step * i).multiply(i % 2 ? radius2 : radius1)));\n return createPath(segments, true, args);\n }\n };\n }\n });\n var CompoundPath = PathItem.extend({\n _class: \"CompoundPath\",\n _serializeFields: {\n children: []\n },\n beans: true,\n initialize: function CompoundPath(arg) {\n this._children = [];\n this._namedChildren = {};\n if (!this._initialize(arg)) {\n if (typeof arg === \"string\") this.setPathData(arg);\n else this.addChildren(Array.isArray(arg) ? arg : arguments);\n }\n },\n insertChildren: function insertChildren(index, items) {\n var list = items, first = list[0];\n if (first && typeof first[0] === \"number\") list = [\n list\n ];\n for(var i = items.length - 1; i >= 0; i--){\n var item = list[i];\n if (list === items && !(item instanceof Path)) list = Base.slice(list);\n if (Array.isArray(item)) list[i] = new Path({\n segments: item,\n insert: false\n });\n else if (item instanceof CompoundPath) {\n list.splice.apply(list, [\n i,\n 1\n ].concat(item.removeChildren()));\n item.remove();\n }\n }\n return insertChildren.base.call(this, index, list);\n },\n reduce: function reduce(options) {\n var children = this._children;\n for(var i = children.length - 1; i >= 0; i--){\n var path = children[i].reduce(options);\n if (path.isEmpty()) path.remove();\n }\n if (!children.length) {\n var path = new Path(Item.NO_INSERT);\n path.copyAttributes(this);\n path.insertAbove(this);\n this.remove();\n return path;\n }\n return reduce.base.call(this);\n },\n isClosed: function() {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++){\n if (!children[i]._closed) return false;\n }\n return true;\n },\n setClosed: function(closed) {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)children[i].setClosed(closed);\n },\n getFirstSegment: function() {\n var first = this.getFirstChild();\n return first && first.getFirstSegment();\n },\n getLastSegment: function() {\n var last = this.getLastChild();\n return last && last.getLastSegment();\n },\n getCurves: function() {\n var children = this._children, curves = [];\n for(var i = 0, l = children.length; i < l; i++)Base.push(curves, children[i].getCurves());\n return curves;\n },\n getFirstCurve: function() {\n var first = this.getFirstChild();\n return first && first.getFirstCurve();\n },\n getLastCurve: function() {\n var last = this.getLastChild();\n return last && last.getLastCurve();\n },\n getArea: function() {\n var children = this._children, area = 0;\n for(var i = 0, l = children.length; i < l; i++)area += children[i].getArea();\n return area;\n },\n getLength: function() {\n var children = this._children, length = 0;\n for(var i = 0, l = children.length; i < l; i++)length += children[i].getLength();\n return length;\n },\n getPathData: function(_matrix, _precision) {\n var children = this._children, paths = [];\n for(var i = 0, l = children.length; i < l; i++){\n var child = children[i], mx = child._matrix;\n paths.push(child.getPathData(_matrix && !mx.isIdentity() ? _matrix.appended(mx) : _matrix, _precision));\n }\n return paths.join(\"\");\n },\n _hitTestChildren: function _hitTestChildren(point, options, viewMatrix) {\n return _hitTestChildren.base.call(this, point, options.class === Path || options.type === \"path\" ? options : Base.set({}, options, {\n fill: false\n }), viewMatrix);\n },\n _draw: function(ctx, param, viewMatrix, strokeMatrix) {\n var children = this._children;\n if (!children.length) return;\n param = param.extend({\n dontStart: true,\n dontFinish: true\n });\n ctx.beginPath();\n for(var i = 0, l = children.length; i < l; i++)children[i].draw(ctx, param, strokeMatrix);\n if (!param.clip) {\n this._setStyles(ctx, param, viewMatrix);\n var style = this._style;\n if (style.hasFill()) {\n ctx.fill(style.getFillRule());\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n }\n if (style.hasStroke()) ctx.stroke();\n }\n },\n _drawSelected: function(ctx, matrix, selectionItems) {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++){\n var child = children[i], mx = child._matrix;\n if (!selectionItems[child._id]) child._drawSelected(ctx, mx.isIdentity() ? matrix : matrix.appended(mx));\n }\n }\n }, new function() {\n function getCurrentPath(that, check) {\n var children = that._children;\n if (check && !children.length) throw new Error(\"Use a moveTo() command first\");\n return children[children.length - 1];\n }\n return Base.each([\n \"lineTo\",\n \"cubicCurveTo\",\n \"quadraticCurveTo\",\n \"curveTo\",\n \"arcTo\",\n \"lineBy\",\n \"cubicCurveBy\",\n \"quadraticCurveBy\",\n \"curveBy\",\n \"arcBy\"\n ], function(key) {\n this[key] = function() {\n var path = getCurrentPath(this, true);\n path[key].apply(path, arguments);\n };\n }, {\n moveTo: function() {\n var current = getCurrentPath(this), path = current && current.isEmpty() ? current : new Path(Item.NO_INSERT);\n if (path !== current) this.addChild(path);\n path.moveTo.apply(path, arguments);\n },\n moveBy: function() {\n var current = getCurrentPath(this, true), last = current && current.getLastSegment(), point = Point.read(arguments);\n this.moveTo(last ? point.add(last._point) : point);\n },\n closePath: function(tolerance) {\n getCurrentPath(this, true).closePath(tolerance);\n }\n });\n }, Base.each([\n \"reverse\",\n \"flatten\",\n \"simplify\",\n \"smooth\"\n ], function(key) {\n this[key] = function(param) {\n var children = this._children, res;\n for(var i = 0, l = children.length; i < l; i++)res = children[i][key](param) || res;\n return res;\n };\n }, {}));\n PathItem.inject(new function() {\n var min = Math.min, max = Math.max, abs = Math.abs, operators = {\n unite: {\n \"1\": true,\n \"2\": true\n },\n intersect: {\n \"2\": true\n },\n subtract: {\n \"1\": true\n },\n exclude: {\n \"1\": true,\n \"-1\": true\n }\n };\n function getPaths(path) {\n return path._children || [\n path\n ];\n }\n function preparePath(path, resolve) {\n var res = path.clone(false).reduce({\n simplify: true\n }).transform(null, true, true);\n if (resolve) {\n var paths = getPaths(res);\n for(var i = 0, l = paths.length; i < l; i++){\n var path = paths[i];\n if (!path._closed && !path.isEmpty()) {\n path.closePath(1e-12);\n path.getFirstSegment().setHandleIn(0, 0);\n path.getLastSegment().setHandleOut(0, 0);\n }\n }\n res = res.resolveCrossings().reorient(res.getFillRule() === \"nonzero\", true);\n }\n return res;\n }\n function createResult(paths, simplify, path1, path2, options) {\n var result = new CompoundPath(Item.NO_INSERT);\n result.addChildren(paths, true);\n result = result.reduce({\n simplify: simplify\n });\n if (!(options && options.insert == false)) result.insertAbove(path2 && path1.isSibling(path2) && path1.getIndex() < path2.getIndex() ? path2 : path1);\n result.copyAttributes(path1, true);\n return result;\n }\n function filterIntersection(inter) {\n return inter.hasOverlap() || inter.isCrossing();\n }\n function traceBoolean(path1, path2, operation, options) {\n if (options && (options.trace == false || options.stroke) && /^(subtract|intersect)$/.test(operation)) return splitBoolean(path1, path2, operation);\n var _path1 = preparePath(path1, true), _path2 = path2 && path1 !== path2 && preparePath(path2, true), operator = operators[operation];\n operator[operation] = true;\n if (_path2 && (operator.subtract || operator.exclude) ^ (_path2.isClockwise() ^ _path1.isClockwise())) _path2.reverse();\n var crossings = divideLocations(CurveLocation.expand(_path1.getIntersections(_path2, filterIntersection))), paths1 = getPaths(_path1), paths2 = _path2 && getPaths(_path2), segments = [], curves = [], paths;\n function collectPaths(paths) {\n for(var i = 0, l = paths.length; i < l; i++){\n var path = paths[i];\n Base.push(segments, path._segments);\n Base.push(curves, path.getCurves());\n path._overlapsOnly = true;\n }\n }\n function getCurves(indices) {\n var list = [];\n for(var i = 0, l = indices && indices.length; i < l; i++)list.push(curves[indices[i]]);\n return list;\n }\n if (crossings.length) {\n collectPaths(paths1);\n if (paths2) collectPaths(paths2);\n var curvesValues = new Array(curves.length);\n for(var i = 0, l = curves.length; i < l; i++)curvesValues[i] = curves[i].getValues();\n var curveCollisions = CollisionDetection.findCurveBoundsCollisions(curvesValues, curvesValues, 0, true);\n var curveCollisionsMap = {};\n for(var i = 0; i < curves.length; i++){\n var curve = curves[i], id = curve._path._id, map = curveCollisionsMap[id] = curveCollisionsMap[id] || {};\n map[curve.getIndex()] = {\n hor: getCurves(curveCollisions[i].hor),\n ver: getCurves(curveCollisions[i].ver)\n };\n }\n for(var i = 0, l = crossings.length; i < l; i++)propagateWinding(crossings[i]._segment, _path1, _path2, curveCollisionsMap, operator);\n for(var i = 0, l = segments.length; i < l; i++){\n var segment = segments[i], inter = segment._intersection;\n if (!segment._winding) propagateWinding(segment, _path1, _path2, curveCollisionsMap, operator);\n if (!(inter && inter._overlap)) segment._path._overlapsOnly = false;\n }\n paths = tracePaths(segments, operator);\n } else paths = reorientPaths(paths2 ? paths1.concat(paths2) : paths1.slice(), function(w) {\n return !!operator[w];\n });\n return createResult(paths, true, path1, path2, options);\n }\n function splitBoolean(path1, path2, operation) {\n var _path1 = preparePath(path1), _path2 = preparePath(path2), crossings = _path1.getIntersections(_path2, filterIntersection), subtract = operation === \"subtract\", divide = operation === \"divide\", added = {}, paths = [];\n function addPath(path) {\n if (!added[path._id] && (divide || _path2.contains(path.getPointAt(path.getLength() / 2)) ^ subtract)) {\n paths.unshift(path);\n return added[path._id] = true;\n }\n }\n for(var i = crossings.length - 1; i >= 0; i--){\n var path = crossings[i].split();\n if (path) {\n if (addPath(path)) path.getFirstSegment().setHandleIn(0, 0);\n _path1.getLastSegment().setHandleOut(0, 0);\n }\n }\n addPath(_path1);\n return createResult(paths, false, path1, path2);\n }\n function linkIntersections(from, to) {\n var prev = from;\n while(prev){\n if (prev === to) return;\n prev = prev._previous;\n }\n while(from._next && from._next !== to)from = from._next;\n if (!from._next) {\n while(to._previous)to = to._previous;\n from._next = to;\n to._previous = from;\n }\n }\n function clearCurveHandles(curves) {\n for(var i = curves.length - 1; i >= 0; i--)curves[i].clearHandles();\n }\n function reorientPaths(paths, isInside, clockwise) {\n var length = paths && paths.length;\n if (length) {\n var lookup = Base.each(paths, function(path, i) {\n this[path._id] = {\n container: null,\n winding: path.isClockwise() ? 1 : -1,\n index: i\n };\n }, {}), sorted = paths.slice().sort(function(a, b) {\n return abs(b.getArea()) - abs(a.getArea());\n }), first = sorted[0];\n var collisions = CollisionDetection.findItemBoundsCollisions(sorted, null, Numerical.GEOMETRIC_EPSILON);\n if (clockwise == null) clockwise = first.isClockwise();\n for(var i = 0; i < length; i++){\n var path1 = sorted[i], entry1 = lookup[path1._id], containerWinding = 0, indices = collisions[i];\n if (indices) {\n var point = null;\n for(var j = indices.length - 1; j >= 0; j--)if (indices[j] < i) {\n point = point || path1.getInteriorPoint();\n var path2 = sorted[indices[j]];\n if (path2.contains(point)) {\n var entry2 = lookup[path2._id];\n containerWinding = entry2.winding;\n entry1.winding += containerWinding;\n entry1.container = entry2.exclude ? entry2.container : path2;\n break;\n }\n }\n }\n if (isInside(entry1.winding) === isInside(containerWinding)) {\n entry1.exclude = true;\n paths[entry1.index] = null;\n } else {\n var container = entry1.container;\n path1.setClockwise(container ? !container.isClockwise() : clockwise);\n }\n }\n }\n return paths;\n }\n function divideLocations(locations, include, clearLater) {\n var results = include && [], tMin = 1e-8, tMax = 1 - tMin, clearHandles = false, clearCurves = clearLater || [], clearLookup = clearLater && {}, renormalizeLocs, prevCurve, prevTime;\n function getId(curve) {\n return curve._path._id + \".\" + curve._segment1._index;\n }\n for(var i = (clearLater && clearLater.length) - 1; i >= 0; i--){\n var curve = clearLater[i];\n if (curve._path) clearLookup[getId(curve)] = true;\n }\n for(var i = locations.length - 1; i >= 0; i--){\n var loc = locations[i], time = loc._time, origTime = time, exclude = include && !include(loc), curve = loc._curve, segment;\n if (curve) {\n if (curve !== prevCurve) {\n clearHandles = !curve.hasHandles() || clearLookup && clearLookup[getId(curve)];\n renormalizeLocs = [];\n prevTime = null;\n prevCurve = curve;\n } else if (prevTime >= tMin) time /= prevTime;\n }\n if (exclude) {\n if (renormalizeLocs) renormalizeLocs.push(loc);\n continue;\n } else if (include) results.unshift(loc);\n prevTime = origTime;\n if (time < tMin) segment = curve._segment1;\n else if (time > tMax) segment = curve._segment2;\n else {\n var newCurve = curve.divideAtTime(time, true);\n if (clearHandles) clearCurves.push(curve, newCurve);\n segment = newCurve._segment1;\n for(var j = renormalizeLocs.length - 1; j >= 0; j--){\n var l = renormalizeLocs[j];\n l._time = (l._time - time) / (1 - time);\n }\n }\n loc._setSegment(segment);\n var inter = segment._intersection, dest = loc._intersection;\n if (inter) {\n linkIntersections(inter, dest);\n var other = inter;\n while(other){\n linkIntersections(other._intersection, inter);\n other = other._next;\n }\n } else segment._intersection = dest;\n }\n if (!clearLater) clearCurveHandles(clearCurves);\n return results || locations;\n }\n function getWinding(point, curves, dir, closed, dontFlip) {\n var curvesList = Array.isArray(curves) ? curves : curves[dir ? \"hor\" : \"ver\"];\n var ia = dir ? 1 : 0, io = ia ^ 1, pv = [\n point.x,\n point.y\n ], pa = pv[ia], po = pv[io], windingEpsilon = 1e-9, qualityEpsilon = 1e-6, paL = pa - windingEpsilon, paR = pa + windingEpsilon, windingL = 0, windingR = 0, pathWindingL = 0, pathWindingR = 0, onPath = false, onAnyPath = false, quality = 1, roots = [], vPrev, vClose;\n function addWinding(v) {\n var o0 = v[io + 0], o3 = v[io + 6];\n if (po < min(o0, o3) || po > max(o0, o3)) return;\n var a0 = v[ia + 0], a1 = v[ia + 2], a2 = v[ia + 4], a3 = v[ia + 6];\n if (o0 === o3) {\n if (a0 < paR && a3 > paL || a3 < paR && a0 > paL) onPath = true;\n return;\n }\n var t = po === o0 ? 0 : po === o3 ? 1 : paL > max(a0, a1, a2, a3) || paR < min(a0, a1, a2, a3) ? 1 : Curve.solveCubic(v, io, po, roots, 0, 1) > 0 ? roots[0] : 1, a = t === 0 ? a0 : t === 1 ? a3 : Curve.getPoint(v, t)[dir ? \"y\" : \"x\"], winding = o0 > o3 ? 1 : -1, windingPrev = vPrev[io] > vPrev[io + 6] ? 1 : -1, a3Prev = vPrev[ia + 6];\n if (po !== o0) {\n if (a < paL) pathWindingL += winding;\n else if (a > paR) pathWindingR += winding;\n else onPath = true;\n if (a > pa - qualityEpsilon && a < pa + qualityEpsilon) quality /= 2;\n } else {\n if (winding !== windingPrev) {\n if (a0 < paL) pathWindingL += winding;\n else if (a0 > paR) pathWindingR += winding;\n } else if (a0 != a3Prev) {\n if (a3Prev < paR && a > paR) {\n pathWindingR += winding;\n onPath = true;\n } else if (a3Prev > paL && a < paL) {\n pathWindingL += winding;\n onPath = true;\n }\n }\n quality /= 4;\n }\n vPrev = v;\n return !dontFlip && a > paL && a < paR && Curve.getTangent(v, t)[dir ? \"x\" : \"y\"] === 0 && getWinding(point, curves, !dir, closed, true);\n }\n function handleCurve(v) {\n var o0 = v[io + 0], o1 = v[io + 2], o2 = v[io + 4], o3 = v[io + 6];\n if (po <= max(o0, o1, o2, o3) && po >= min(o0, o1, o2, o3)) {\n var a0 = v[ia + 0], a1 = v[ia + 2], a2 = v[ia + 4], a3 = v[ia + 6], monoCurves = paL > max(a0, a1, a2, a3) || paR < min(a0, a1, a2, a3) ? [\n v\n ] : Curve.getMonoCurves(v, dir), res;\n for(var i = 0, l = monoCurves.length; i < l; i++){\n if (res = addWinding(monoCurves[i])) return res;\n }\n }\n }\n for(var i = 0, l = curvesList.length; i < l; i++){\n var curve = curvesList[i], path = curve._path, v = curve.getValues(), res;\n if (!i || curvesList[i - 1]._path !== path) {\n vPrev = null;\n if (!path._closed) {\n vClose = Curve.getValues(path.getLastCurve().getSegment2(), curve.getSegment1(), null, !closed);\n if (vClose[io] !== vClose[io + 6]) vPrev = vClose;\n }\n if (!vPrev) {\n vPrev = v;\n var prev = path.getLastCurve();\n while(prev && prev !== curve){\n var v2 = prev.getValues();\n if (v2[io] !== v2[io + 6]) {\n vPrev = v2;\n break;\n }\n prev = prev.getPrevious();\n }\n }\n }\n if (res = handleCurve(v)) return res;\n if (i + 1 === l || curvesList[i + 1]._path !== path) {\n if (vClose && (res = handleCurve(vClose))) return res;\n if (onPath && !pathWindingL && !pathWindingR) pathWindingL = pathWindingR = path.isClockwise(closed) ^ dir ? 1 : -1;\n windingL += pathWindingL;\n windingR += pathWindingR;\n pathWindingL = pathWindingR = 0;\n if (onPath) {\n onAnyPath = true;\n onPath = false;\n }\n vClose = null;\n }\n }\n windingL = abs(windingL);\n windingR = abs(windingR);\n return {\n winding: max(windingL, windingR),\n windingL: windingL,\n windingR: windingR,\n quality: quality,\n onPath: onAnyPath\n };\n }\n function propagateWinding(segment, path1, path2, curveCollisionsMap, operator) {\n var chain = [], start = segment, totalLength = 0, winding;\n do {\n var curve = segment.getCurve();\n if (curve) {\n var length = curve.getLength();\n chain.push({\n segment: segment,\n curve: curve,\n length: length\n });\n totalLength += length;\n }\n segment = segment.getNext();\n }while (segment && !segment._intersection && segment !== start);\n var offsets = [\n 0.5,\n 0.25,\n 0.75\n ], winding = {\n winding: 0,\n quality: -1\n }, tMin = 1e-3, tMax = 1 - tMin;\n for(var i = 0; i < offsets.length && winding.quality < 0.5; i++){\n var length = totalLength * offsets[i];\n for(var j = 0, l = chain.length; j < l; j++){\n var entry = chain[j], curveLength = entry.length;\n if (length <= curveLength) {\n var curve = entry.curve, path = curve._path, parent = path._parent, operand = parent instanceof CompoundPath ? parent : path, t = Numerical.clamp(curve.getTimeAt(length), tMin, tMax), pt = curve.getPointAtTime(t), dir = abs(curve.getTangentAtTime(t).y) < Math.SQRT1_2;\n var wind = null;\n if (operator.subtract && path2) {\n var otherPath = operand === path1 ? path2 : path1, pathWinding = otherPath._getWinding(pt, dir, true);\n if (operand === path1 && pathWinding.winding || operand === path2 && !pathWinding.winding) {\n if (pathWinding.quality < 1) continue;\n else wind = {\n winding: 0,\n quality: 1\n };\n }\n }\n wind = wind || getWinding(pt, curveCollisionsMap[path._id][curve.getIndex()], dir, true);\n if (wind.quality > winding.quality) winding = wind;\n break;\n }\n length -= curveLength;\n }\n }\n for(var j = chain.length - 1; j >= 0; j--)chain[j].segment._winding = winding;\n }\n function tracePaths(segments, operator) {\n var paths = [], starts;\n function isValid(seg) {\n var winding;\n return !!(seg && !seg._visited && (!operator || operator[(winding = seg._winding || {}).winding] && !(operator.unite && winding.winding === 2 && winding.windingL && winding.windingR)));\n }\n function isStart(seg) {\n if (seg) for(var i = 0, l = starts.length; i < l; i++){\n if (seg === starts[i]) return true;\n }\n return false;\n }\n function visitPath(path) {\n var segments = path._segments;\n for(var i = 0, l = segments.length; i < l; i++)segments[i]._visited = true;\n }\n function getCrossingSegments(segment, collectStarts) {\n var inter = segment._intersection, start = inter, crossings = [];\n if (collectStarts) starts = [\n segment\n ];\n function collect(inter, end) {\n while(inter && inter !== end){\n var other = inter._segment, path = other && other._path;\n if (path) {\n var next = other.getNext() || path.getFirstSegment(), nextInter = next._intersection;\n if (other !== segment && (isStart(other) || isStart(next) || next && isValid(other) && (isValid(next) || nextInter && isValid(nextInter._segment)))) crossings.push(other);\n if (collectStarts) starts.push(other);\n }\n inter = inter._next;\n }\n }\n if (inter) {\n collect(inter);\n while(inter && inter._previous)inter = inter._previous;\n collect(inter, start);\n }\n return crossings;\n }\n segments.sort(function(seg1, seg2) {\n var inter1 = seg1._intersection, inter2 = seg2._intersection, over1 = !!(inter1 && inter1._overlap), over2 = !!(inter2 && inter2._overlap), path1 = seg1._path, path2 = seg2._path;\n return over1 ^ over2 ? over1 ? 1 : -1 : !inter1 ^ !inter2 ? inter1 ? 1 : -1 : path1 !== path2 ? path1._id - path2._id : seg1._index - seg2._index;\n });\n for(var i = 0, l = segments.length; i < l; i++){\n var seg = segments[i], valid = isValid(seg), path = null, finished = false, closed = true, branches = [], branch, visited, handleIn;\n if (valid && seg._path._overlapsOnly) {\n var path1 = seg._path, path2 = seg._intersection._segment._path;\n if (path1.compare(path2)) {\n if (path1.getArea()) paths.push(path1.clone(false));\n visitPath(path1);\n visitPath(path2);\n valid = false;\n }\n }\n while(valid){\n var first = !path, crossings = getCrossingSegments(seg, first), other = crossings.shift(), finished = !first && (isStart(seg) || isStart(other)), cross = !finished && other;\n if (first) {\n path = new Path(Item.NO_INSERT);\n branch = null;\n }\n if (finished) {\n if (seg.isFirst() || seg.isLast()) closed = seg._path._closed;\n seg._visited = true;\n break;\n }\n if (cross && branch) {\n branches.push(branch);\n branch = null;\n }\n if (!branch) {\n if (cross) crossings.push(seg);\n branch = {\n start: path._segments.length,\n crossings: crossings,\n visited: visited = [],\n handleIn: handleIn\n };\n }\n if (cross) seg = other;\n if (!isValid(seg)) {\n path.removeSegments(branch.start);\n for(var j = 0, k = visited.length; j < k; j++)visited[j]._visited = false;\n visited.length = 0;\n do {\n seg = branch && branch.crossings.shift();\n if (!seg || !seg._path) {\n seg = null;\n branch = branches.pop();\n if (branch) {\n visited = branch.visited;\n handleIn = branch.handleIn;\n }\n }\n }while (branch && !isValid(seg));\n if (!seg) break;\n }\n var next = seg.getNext();\n path.add(new Segment(seg._point, handleIn, next && seg._handleOut));\n seg._visited = true;\n visited.push(seg);\n seg = next || seg._path.getFirstSegment();\n handleIn = next && next._handleIn;\n }\n if (finished) {\n if (closed) {\n path.getFirstSegment().setHandleIn(handleIn);\n path.setClosed(closed);\n }\n if (path.getArea() !== 0) paths.push(path);\n }\n }\n return paths;\n }\n return {\n _getWinding: function(point, dir, closed) {\n return getWinding(point, this.getCurves(), dir, closed);\n },\n unite: function(path, options) {\n return traceBoolean(this, path, \"unite\", options);\n },\n intersect: function(path, options) {\n return traceBoolean(this, path, \"intersect\", options);\n },\n subtract: function(path, options) {\n return traceBoolean(this, path, \"subtract\", options);\n },\n exclude: function(path, options) {\n return traceBoolean(this, path, \"exclude\", options);\n },\n divide: function(path, options) {\n return options && (options.trace == false || options.stroke) ? splitBoolean(this, path, \"divide\") : createResult([\n this.subtract(path, options),\n this.intersect(path, options)\n ], true, this, path, options);\n },\n resolveCrossings: function() {\n var children = this._children, paths = children || [\n this\n ];\n function hasOverlap(seg, path) {\n var inter = seg && seg._intersection;\n return inter && inter._overlap && inter._path === path;\n }\n var hasOverlaps = false, hasCrossings = false, intersections = this.getIntersections(null, function(inter) {\n return inter.hasOverlap() && (hasOverlaps = true) || inter.isCrossing() && (hasCrossings = true);\n }), clearCurves = hasOverlaps && hasCrossings && [];\n intersections = CurveLocation.expand(intersections);\n if (hasOverlaps) {\n var overlaps = divideLocations(intersections, function(inter) {\n return inter.hasOverlap();\n }, clearCurves);\n for(var i = overlaps.length - 1; i >= 0; i--){\n var overlap = overlaps[i], path = overlap._path, seg = overlap._segment, prev = seg.getPrevious(), next = seg.getNext();\n if (hasOverlap(prev, path) && hasOverlap(next, path)) {\n seg.remove();\n prev._handleOut._set(0, 0);\n next._handleIn._set(0, 0);\n if (prev !== seg && !prev.getCurve().hasLength()) {\n next._handleIn.set(prev._handleIn);\n prev.remove();\n }\n }\n }\n }\n if (hasCrossings) {\n divideLocations(intersections, hasOverlaps && function(inter) {\n var curve1 = inter.getCurve(), seg1 = inter.getSegment(), other = inter._intersection, curve2 = other._curve, seg2 = other._segment;\n if (curve1 && curve2 && curve1._path && curve2._path) return true;\n if (seg1) seg1._intersection = null;\n if (seg2) seg2._intersection = null;\n }, clearCurves);\n if (clearCurves) clearCurveHandles(clearCurves);\n paths = tracePaths(Base.each(paths, function(path) {\n Base.push(this, path._segments);\n }, []));\n }\n var length = paths.length, item;\n if (length > 1 && children) {\n if (paths !== children) this.setChildren(paths);\n item = this;\n } else if (length === 1 && !children) {\n if (paths[0] !== this) this.setSegments(paths[0].removeSegments());\n item = this;\n }\n if (!item) {\n item = new CompoundPath(Item.NO_INSERT);\n item.addChildren(paths);\n item = item.reduce();\n item.copyAttributes(this);\n this.replaceWith(item);\n }\n return item;\n },\n reorient: function(nonZero, clockwise) {\n var children = this._children;\n if (children && children.length) this.setChildren(reorientPaths(this.removeChildren(), function(w) {\n return !!(nonZero ? w : w & 1);\n }, clockwise));\n else if (clockwise !== undefined) this.setClockwise(clockwise);\n return this;\n },\n getInteriorPoint: function() {\n var bounds = this.getBounds(), point = bounds.getCenter(true);\n if (!this.contains(point)) {\n var curves = this.getCurves(), y = point.y, intercepts = [], roots = [];\n for(var i = 0, l = curves.length; i < l; i++){\n var v = curves[i].getValues(), o0 = v[1], o1 = v[3], o2 = v[5], o3 = v[7];\n if (y >= min(o0, o1, o2, o3) && y <= max(o0, o1, o2, o3)) {\n var monoCurves = Curve.getMonoCurves(v);\n for(var j = 0, m = monoCurves.length; j < m; j++){\n var mv = monoCurves[j], mo0 = mv[1], mo3 = mv[7];\n if (mo0 !== mo3 && (y >= mo0 && y <= mo3 || y >= mo3 && y <= mo0)) {\n var x = y === mo0 ? mv[0] : y === mo3 ? mv[6] : Curve.solveCubic(mv, 1, y, roots, 0, 1) === 1 ? Curve.getPoint(mv, roots[0]).x : (mv[0] + mv[6]) / 2;\n intercepts.push(x);\n }\n }\n }\n }\n if (intercepts.length > 1) {\n intercepts.sort(function(a, b) {\n return a - b;\n });\n point.x = (intercepts[0] + intercepts[1]) / 2;\n }\n }\n return point;\n }\n };\n });\n var PathFlattener = Base.extend({\n _class: \"PathFlattener\",\n initialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {\n var curves = [], parts = [], length = 0, minSpan = 1 / (maxRecursion || 32), segments = path._segments, segment1 = segments[0], segment2;\n function addCurve(segment1, segment2) {\n var curve = Curve.getValues(segment1, segment2, matrix);\n curves.push(curve);\n computeParts(curve, segment1._index, 0, 1);\n }\n function computeParts(curve, index, t1, t2) {\n if (t2 - t1 > minSpan && !(ignoreStraight && Curve.isStraight(curve)) && !Curve.isFlatEnough(curve, flatness || 0.25)) {\n var halves = Curve.subdivide(curve, 0.5), tMid = (t1 + t2) / 2;\n computeParts(halves[0], index, t1, tMid);\n computeParts(halves[1], index, tMid, t2);\n } else {\n var dx = curve[6] - curve[0], dy = curve[7] - curve[1], dist = Math.sqrt(dx * dx + dy * dy);\n if (dist > 0) {\n length += dist;\n parts.push({\n offset: length,\n curve: curve,\n index: index,\n time: t2\n });\n }\n }\n }\n for(var i = 1, l = segments.length; i < l; i++){\n segment2 = segments[i];\n addCurve(segment1, segment2);\n segment1 = segment2;\n }\n if (path._closed) addCurve(segment2 || segment1, segments[0]);\n this.curves = curves;\n this.parts = parts;\n this.length = length;\n this.index = 0;\n },\n _get: function(offset) {\n var parts = this.parts, length = parts.length, start, i, j = this.index;\n for(;;){\n i = j;\n if (!j || parts[--j].offset < offset) break;\n }\n for(; i < length; i++){\n var part = parts[i];\n if (part.offset >= offset) {\n this.index = i;\n var prev = parts[i - 1], prevTime = prev && prev.index === part.index ? prev.time : 0, prevOffset = prev ? prev.offset : 0;\n return {\n index: part.index,\n time: prevTime + (part.time - prevTime) * (offset - prevOffset) / (part.offset - prevOffset)\n };\n }\n }\n return {\n index: parts[length - 1].index,\n time: 1\n };\n },\n drawPart: function(ctx, from, to) {\n var start = this._get(from), end = this._get(to);\n for(var i = start.index, l = end.index; i <= l; i++){\n var curve = Curve.getPart(this.curves[i], i === start.index ? start.time : 0, i === end.index ? end.time : 1);\n if (i === start.index) ctx.moveTo(curve[0], curve[1]);\n ctx.bezierCurveTo.apply(ctx, curve.slice(2));\n }\n }\n }, Base.each(Curve._evaluateMethods, function(name) {\n this[name + \"At\"] = function(offset) {\n var param = this._get(offset);\n return Curve[name](this.curves[param.index], param.time);\n };\n }, {}));\n var PathFitter = Base.extend({\n initialize: function(path) {\n var points = this.points = [], segments = path._segments, closed = path._closed;\n for(var i = 0, prev, l = segments.length; i < l; i++){\n var point = segments[i].point;\n if (!prev || !prev.equals(point)) points.push(prev = point.clone());\n }\n if (closed) {\n points.unshift(points[points.length - 1]);\n points.push(points[1]);\n }\n this.closed = closed;\n },\n fit: function(error) {\n var points = this.points, length = points.length, segments = null;\n if (length > 0) {\n segments = [\n new Segment(points[0])\n ];\n if (length > 1) {\n this.fitCubic(segments, error, 0, length - 1, points[1].subtract(points[0]), points[length - 2].subtract(points[length - 1]));\n if (this.closed) {\n segments.shift();\n segments.pop();\n }\n }\n }\n return segments;\n },\n fitCubic: function(segments, error, first, last, tan1, tan2) {\n var points = this.points;\n if (last - first === 1) {\n var pt1 = points[first], pt2 = points[last], dist = pt1.getDistance(pt2) / 3;\n this.addCurve(segments, [\n pt1,\n pt1.add(tan1.normalize(dist)),\n pt2.add(tan2.normalize(dist)),\n pt2\n ]);\n return;\n }\n var uPrime = this.chordLengthParameterize(first, last), maxError = Math.max(error, error * error), split, parametersInOrder = true;\n for(var i = 0; i <= 4; i++){\n var curve = this.generateBezier(first, last, uPrime, tan1, tan2);\n var max = this.findMaxError(first, last, curve, uPrime);\n if (max.error < error && parametersInOrder) {\n this.addCurve(segments, curve);\n return;\n }\n split = max.index;\n if (max.error >= maxError) break;\n parametersInOrder = this.reparameterize(first, last, uPrime, curve);\n maxError = max.error;\n }\n var tanCenter = points[split - 1].subtract(points[split + 1]);\n this.fitCubic(segments, error, first, split, tan1, tanCenter);\n this.fitCubic(segments, error, split, last, tanCenter.negate(), tan2);\n },\n addCurve: function(segments, curve) {\n var prev = segments[segments.length - 1];\n prev.setHandleOut(curve[1].subtract(curve[0]));\n segments.push(new Segment(curve[3], curve[2].subtract(curve[3])));\n },\n generateBezier: function(first, last, uPrime, tan1, tan2) {\n var epsilon = 1e-12, abs = Math.abs, points = this.points, pt1 = points[first], pt2 = points[last], C = [\n [\n 0,\n 0\n ],\n [\n 0,\n 0\n ]\n ], X = [\n 0,\n 0\n ];\n for(var i = 0, l = last - first + 1; i < l; i++){\n var u = uPrime[i], t = 1 - u, b = 3 * u * t, b0 = t * t * t, b1 = b * t, b2 = b * u, b3 = u * u * u, a1 = tan1.normalize(b1), a2 = tan2.normalize(b2), tmp = points[first + i].subtract(pt1.multiply(b0 + b1)).subtract(pt2.multiply(b2 + b3));\n C[0][0] += a1.dot(a1);\n C[0][1] += a1.dot(a2);\n C[1][0] = C[0][1];\n C[1][1] += a2.dot(a2);\n X[0] += a1.dot(tmp);\n X[1] += a2.dot(tmp);\n }\n var detC0C1 = C[0][0] * C[1][1] - C[1][0] * C[0][1], alpha1, alpha2;\n if (abs(detC0C1) > epsilon) {\n var detC0X = C[0][0] * X[1] - C[1][0] * X[0], detXC1 = X[0] * C[1][1] - X[1] * C[0][1];\n alpha1 = detXC1 / detC0C1;\n alpha2 = detC0X / detC0C1;\n } else {\n var c0 = C[0][0] + C[0][1], c1 = C[1][0] + C[1][1];\n alpha1 = alpha2 = abs(c0) > epsilon ? X[0] / c0 : abs(c1) > epsilon ? X[1] / c1 : 0;\n }\n var segLength = pt2.getDistance(pt1), eps = epsilon * segLength, handle1, handle2;\n if (alpha1 < eps || alpha2 < eps) alpha1 = alpha2 = segLength / 3;\n else {\n var line = pt2.subtract(pt1);\n handle1 = tan1.normalize(alpha1);\n handle2 = tan2.normalize(alpha2);\n if (handle1.dot(line) - handle2.dot(line) > segLength * segLength) {\n alpha1 = alpha2 = segLength / 3;\n handle1 = handle2 = null;\n }\n }\n return [\n pt1,\n pt1.add(handle1 || tan1.normalize(alpha1)),\n pt2.add(handle2 || tan2.normalize(alpha2)),\n pt2\n ];\n },\n reparameterize: function(first, last, u, curve) {\n for(var i = first; i <= last; i++)u[i - first] = this.findRoot(curve, this.points[i], u[i - first]);\n for(var i = 1, l = u.length; i < l; i++){\n if (u[i] <= u[i - 1]) return false;\n }\n return true;\n },\n findRoot: function(curve, point, u) {\n var curve1 = [], curve2 = [];\n for(var i = 0; i <= 2; i++)curve1[i] = curve[i + 1].subtract(curve[i]).multiply(3);\n for(var i = 0; i <= 1; i++)curve2[i] = curve1[i + 1].subtract(curve1[i]).multiply(2);\n var pt = this.evaluate(3, curve, u), pt1 = this.evaluate(2, curve1, u), pt2 = this.evaluate(1, curve2, u), diff = pt.subtract(point), df = pt1.dot(pt1) + diff.dot(pt2);\n return Numerical.isMachineZero(df) ? u : u - diff.dot(pt1) / df;\n },\n evaluate: function(degree, curve, t) {\n var tmp = curve.slice();\n for(var i = 1; i <= degree; i++)for(var j = 0; j <= degree - i; j++)tmp[j] = tmp[j].multiply(1 - t).add(tmp[j + 1].multiply(t));\n return tmp[0];\n },\n chordLengthParameterize: function(first, last) {\n var u = [\n 0\n ];\n for(var i = first + 1; i <= last; i++)u[i - first] = u[i - first - 1] + this.points[i].getDistance(this.points[i - 1]);\n for(var i = 1, m = last - first; i <= m; i++)u[i] /= u[m];\n return u;\n },\n findMaxError: function(first, last, curve, u) {\n var index = Math.floor((last - first + 1) / 2), maxDist = 0;\n for(var i = first + 1; i < last; i++){\n var P = this.evaluate(3, curve, u[i - first]);\n var v = P.subtract(this.points[i]);\n var dist = v.x * v.x + v.y * v.y;\n if (dist >= maxDist) {\n maxDist = dist;\n index = i;\n }\n }\n return {\n error: maxDist,\n index: index\n };\n }\n });\n var TextItem = Item.extend({\n _class: \"TextItem\",\n _applyMatrix: false,\n _canApplyMatrix: false,\n _serializeFields: {\n content: null\n },\n _boundsOptions: {\n stroke: false,\n handle: false\n },\n initialize: function TextItem(arg) {\n this._content = \"\";\n this._lines = [];\n var hasProps = arg && Base.isPlainObject(arg) && arg.x === undefined && arg.y === undefined;\n this._initialize(hasProps && arg, !hasProps && Point.read(arguments));\n },\n _equals: function(item) {\n return this._content === item._content;\n },\n copyContent: function(source) {\n this.setContent(source._content);\n },\n getContent: function() {\n return this._content;\n },\n setContent: function(content) {\n this._content = \"\" + content;\n this._lines = this._content.split(/\\r\\n|\\n|\\r/mg);\n this._changed(521);\n },\n isEmpty: function() {\n return !this._content;\n },\n getCharacterStyle: \"#getStyle\",\n setCharacterStyle: \"#setStyle\",\n getParagraphStyle: \"#getStyle\",\n setParagraphStyle: \"#setStyle\"\n });\n var PointText = TextItem.extend({\n _class: \"PointText\",\n initialize: function PointText() {\n TextItem.apply(this, arguments);\n },\n getPoint: function() {\n var point = this._matrix.getTranslation();\n return new LinkedPoint(point.x, point.y, this, \"setPoint\");\n },\n setPoint: function() {\n var point = Point.read(arguments);\n this.translate(point.subtract(this._matrix.getTranslation()));\n },\n _draw: function(ctx, param, viewMatrix) {\n if (!this._content) return;\n this._setStyles(ctx, param, viewMatrix);\n var lines = this._lines, style = this._style, hasFill = style.hasFill(), hasStroke = style.hasStroke(), leading = style.getLeading(), shadowColor = ctx.shadowColor;\n ctx.font = style.getFontStyle();\n ctx.textAlign = style.getJustification();\n for(var i = 0, l = lines.length; i < l; i++){\n ctx.shadowColor = shadowColor;\n var line = lines[i];\n if (hasFill) {\n ctx.fillText(line, 0, 0);\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n }\n if (hasStroke) ctx.strokeText(line, 0, 0);\n ctx.translate(0, leading);\n }\n },\n _getBounds: function(matrix, options) {\n var style = this._style, lines = this._lines, numLines = lines.length, justification = style.getJustification(), leading = style.getLeading(), width = this.getView().getTextWidth(style.getFontStyle(), lines), x = 0;\n if (justification !== \"left\") x -= width / (justification === \"center\" ? 2 : 1);\n var rect = new Rectangle(x, numLines ? -0.75 * leading : 0, width, numLines * leading);\n return matrix ? matrix._transformBounds(rect, rect) : rect;\n }\n });\n var Color = Base.extend(new function() {\n var types = {\n gray: [\n \"gray\"\n ],\n rgb: [\n \"red\",\n \"green\",\n \"blue\"\n ],\n hsb: [\n \"hue\",\n \"saturation\",\n \"brightness\"\n ],\n hsl: [\n \"hue\",\n \"saturation\",\n \"lightness\"\n ],\n gradient: [\n \"gradient\",\n \"origin\",\n \"destination\",\n \"highlight\"\n ]\n };\n var componentParsers = {}, namedColors = {\n transparent: [\n 0,\n 0,\n 0,\n 0\n ]\n }, colorCtx;\n function fromCSS(string) {\n var match = string.match(/^#([\\da-f]{2})([\\da-f]{2})([\\da-f]{2})([\\da-f]{2})?$/i) || string.match(/^#([\\da-f])([\\da-f])([\\da-f])([\\da-f])?$/i), type = \"rgb\", components;\n if (match) {\n var amount = match[4] ? 4 : 3;\n components = new Array(amount);\n for(var i = 0; i < amount; i++){\n var value = match[i + 1];\n components[i] = parseInt(value.length == 1 ? value + value : value, 16) / 255;\n }\n } else if (match = string.match(/^(rgb|hsl)a?\\((.*)\\)$/)) {\n type = match[1];\n components = match[2].trim().split(/[,\\s]+/g);\n var isHSL = type === \"hsl\";\n for(var i = 0, l = Math.min(components.length, 4); i < l; i++){\n var component = components[i];\n var value = parseFloat(component);\n if (isHSL) {\n if (i === 0) {\n var unit = component.match(/([a-z]*)$/)[1];\n value *= ({\n turn: 360,\n rad: 180 / Math.PI,\n grad: 0.9\n })[unit] || 1;\n } else if (i < 3) value /= 100;\n } else if (i < 3) value /= /%$/.test(component) ? 100 : 255;\n components[i] = value;\n }\n } else {\n var color = namedColors[string];\n if (!color) {\n if (window) {\n if (!colorCtx) {\n colorCtx = CanvasProvider.getContext(1, 1, {\n willReadFrequently: true\n });\n colorCtx.globalCompositeOperation = \"copy\";\n }\n colorCtx.fillStyle = \"rgba(0,0,0,0)\";\n colorCtx.fillStyle = string;\n colorCtx.fillRect(0, 0, 1, 1);\n var data = colorCtx.getImageData(0, 0, 1, 1).data;\n color = namedColors[string] = [\n data[0] / 255,\n data[1] / 255,\n data[2] / 255\n ];\n } else color = [\n 0,\n 0,\n 0\n ];\n }\n components = color.slice();\n }\n return [\n type,\n components\n ];\n }\n var hsbIndices = [\n [\n 0,\n 3,\n 1\n ],\n [\n 2,\n 0,\n 1\n ],\n [\n 1,\n 0,\n 3\n ],\n [\n 1,\n 2,\n 0\n ],\n [\n 3,\n 1,\n 0\n ],\n [\n 0,\n 1,\n 2\n ]\n ];\n var converters = {\n \"rgb-hsb\": function(r, g, b) {\n var max = Math.max(r, g, b), min = Math.min(r, g, b), delta = max - min, h = delta === 0 ? 0 : (max == r ? (g - b) / delta + (g < b ? 6 : 0) : max == g ? (b - r) / delta + 2 : (r - g) / delta + 4) * 60;\n return [\n h,\n max === 0 ? 0 : delta / max,\n max\n ];\n },\n \"hsb-rgb\": function(h, s, b) {\n h = (h / 60 % 6 + 6) % 6;\n var i = Math.floor(h), f = h - i, i = hsbIndices[i], v = [\n b,\n b * (1 - s),\n b * (1 - s * f),\n b * (1 - s * (1 - f))\n ];\n return [\n v[i[0]],\n v[i[1]],\n v[i[2]]\n ];\n },\n \"rgb-hsl\": function(r, g, b) {\n var max = Math.max(r, g, b), min = Math.min(r, g, b), delta = max - min, achromatic = delta === 0, h = achromatic ? 0 : (max == r ? (g - b) / delta + (g < b ? 6 : 0) : max == g ? (b - r) / delta + 2 : (r - g) / delta + 4) * 60, l = (max + min) / 2, s = achromatic ? 0 : l < 0.5 ? delta / (max + min) : delta / (2 - max - min);\n return [\n h,\n s,\n l\n ];\n },\n \"hsl-rgb\": function(h, s, l) {\n h = (h / 360 % 1 + 1) % 1;\n if (s === 0) return [\n l,\n l,\n l\n ];\n var t3s = [\n h + 1 / 3,\n h,\n h - 1 / 3\n ], t2 = l < 0.5 ? l * (1 + s) : l + s - l * s, t1 = 2 * l - t2, c = [];\n for(var i = 0; i < 3; i++){\n var t3 = t3s[i];\n if (t3 < 0) t3 += 1;\n if (t3 > 1) t3 -= 1;\n c[i] = 6 * t3 < 1 ? t1 + (t2 - t1) * 6 * t3 : 2 * t3 < 1 ? t2 : 3 * t3 < 2 ? t1 + (t2 - t1) * (2 / 3 - t3) * 6 : t1;\n }\n return c;\n },\n \"rgb-gray\": function(r, g, b) {\n return [\n r * 0.2989 + g * 0.587 + b * 0.114\n ];\n },\n \"gray-rgb\": function(g) {\n return [\n g,\n g,\n g\n ];\n },\n \"gray-hsb\": function(g) {\n return [\n 0,\n 0,\n g\n ];\n },\n \"gray-hsl\": function(g) {\n return [\n 0,\n 0,\n g\n ];\n },\n \"gradient-rgb\": function() {\n return [];\n },\n \"rgb-gradient\": function() {\n return [];\n }\n };\n return Base.each(types, function(properties, type) {\n componentParsers[type] = [];\n Base.each(properties, function(name, index) {\n var part = Base.capitalize(name), hasOverlap = /^(hue|saturation)$/.test(name), parser = componentParsers[type][index] = type === \"gradient\" ? name === \"gradient\" ? function(value) {\n var current = this._components[0];\n value = Gradient.read(Array.isArray(value) ? value : arguments, 0, {\n readNull: true\n });\n if (current !== value) {\n if (current) current._removeOwner(this);\n if (value) value._addOwner(this);\n }\n return value;\n } : function() {\n return Point.read(arguments, 0, {\n readNull: name === \"highlight\",\n clone: true\n });\n } : function(value) {\n return value == null || isNaN(value) ? 0 : +value;\n };\n this[\"get\" + part] = function() {\n return this._type === type || hasOverlap && /^hs[bl]$/.test(this._type) ? this._components[index] : this._convert(type)[index];\n };\n this[\"set\" + part] = function(value) {\n if (this._type !== type && !(hasOverlap && /^hs[bl]$/.test(this._type))) {\n this._components = this._convert(type);\n this._properties = types[type];\n this._type = type;\n }\n this._components[index] = parser.call(this, value);\n this._changed();\n };\n }, this);\n }, {\n _class: \"Color\",\n _readIndex: true,\n initialize: function Color(arg) {\n var args = arguments, reading = this.__read, read = 0, type, components, alpha, values;\n if (Array.isArray(arg)) {\n args = arg;\n arg = args[0];\n }\n var argType = arg != null && typeof arg;\n if (argType === \"string\" && arg in types) {\n type = arg;\n arg = args[1];\n if (Array.isArray(arg)) {\n components = arg;\n alpha = args[2];\n } else {\n if (reading) read = 1;\n args = Base.slice(args, 1);\n argType = typeof arg;\n }\n }\n if (!components) {\n values = argType === \"number\" ? args : argType === \"object\" && arg.length != null ? arg : null;\n if (values) {\n if (!type) type = values.length >= 3 ? \"rgb\" : \"gray\";\n var length = types[type].length;\n alpha = values[length];\n if (reading) read += values === arguments ? length + (alpha != null ? 1 : 0) : 1;\n if (values.length > length) values = Base.slice(values, 0, length);\n } else if (argType === \"string\") {\n var converted = fromCSS(arg);\n type = converted[0];\n components = converted[1];\n if (components.length === 4) {\n alpha = components[3];\n components.length--;\n }\n } else if (argType === \"object\") {\n if (arg.constructor === Color) {\n type = arg._type;\n components = arg._components.slice();\n alpha = arg._alpha;\n if (type === \"gradient\") for(var i = 1, l = components.length; i < l; i++){\n var point = components[i];\n if (point) components[i] = point.clone();\n }\n } else if (arg.constructor === Gradient) {\n type = \"gradient\";\n values = args;\n } else {\n type = \"hue\" in arg ? \"lightness\" in arg ? \"hsl\" : \"hsb\" : \"gradient\" in arg || \"stops\" in arg || \"radial\" in arg ? \"gradient\" : \"gray\" in arg ? \"gray\" : \"rgb\";\n var properties = types[type], parsers = componentParsers[type];\n this._components = components = [];\n for(var i = 0, l = properties.length; i < l; i++){\n var value = arg[properties[i]];\n if (value == null && !i && type === \"gradient\" && \"stops\" in arg) value = {\n stops: arg.stops,\n radial: arg.radial\n };\n value = parsers[i].call(this, value);\n if (value != null) components[i] = value;\n }\n alpha = arg.alpha;\n }\n }\n if (reading && type) read = 1;\n }\n this._type = type || \"rgb\";\n if (!components) {\n this._components = components = [];\n var parsers = componentParsers[this._type];\n for(var i = 0, l = parsers.length; i < l; i++){\n var value = parsers[i].call(this, values && values[i]);\n if (value != null) components[i] = value;\n }\n }\n this._components = components;\n this._properties = types[this._type];\n this._alpha = alpha;\n if (reading) this.__read = read;\n return this;\n },\n set: \"#initialize\",\n _serialize: function(options, dictionary) {\n var components = this.getComponents();\n return Base.serialize(/^(gray|rgb)$/.test(this._type) ? components : [\n this._type\n ].concat(components), options, true, dictionary);\n },\n _changed: function() {\n this._canvasStyle = null;\n if (this._owner) {\n if (this._setter) this._owner[this._setter](this);\n else this._owner._changed(129);\n }\n },\n _convert: function(type) {\n var converter;\n return this._type === type ? this._components.slice() : (converter = converters[this._type + \"-\" + type]) ? converter.apply(this, this._components) : converters[\"rgb-\" + type].apply(this, converters[this._type + \"-rgb\"].apply(this, this._components));\n },\n convert: function(type) {\n return new Color(type, this._convert(type), this._alpha);\n },\n getType: function() {\n return this._type;\n },\n setType: function(type) {\n this._components = this._convert(type);\n this._properties = types[type];\n this._type = type;\n },\n getComponents: function() {\n var components = this._components.slice();\n if (this._alpha != null) components.push(this._alpha);\n return components;\n },\n getAlpha: function() {\n return this._alpha != null ? this._alpha : 1;\n },\n setAlpha: function(alpha) {\n this._alpha = alpha == null ? null : Math.min(Math.max(alpha, 0), 1);\n this._changed();\n },\n hasAlpha: function() {\n return this._alpha != null;\n },\n equals: function(color) {\n var col = Base.isPlainValue(color, true) ? Color.read(arguments) : color;\n return col === this || col && this._class === col._class && this._type === col._type && this.getAlpha() === col.getAlpha() && Base.equals(this._components, col._components) || false;\n },\n toString: function() {\n var properties = this._properties, parts = [], isGradient = this._type === \"gradient\", f = Formatter.instance;\n for(var i = 0, l = properties.length; i < l; i++){\n var value = this._components[i];\n if (value != null) parts.push(properties[i] + \": \" + (isGradient ? value : f.number(value)));\n }\n if (this._alpha != null) parts.push(\"alpha: \" + f.number(this._alpha));\n return \"{ \" + parts.join(\", \") + \" }\";\n },\n toCSS: function(hex) {\n var components = this._convert(\"rgb\"), alpha = hex || this._alpha == null ? 1 : this._alpha;\n function convert(val) {\n return Math.round((val < 0 ? 0 : val > 1 ? 1 : val) * 255);\n }\n components = [\n convert(components[0]),\n convert(components[1]),\n convert(components[2])\n ];\n if (alpha < 1) components.push(alpha < 0 ? 0 : alpha);\n return hex ? \"#\" + (16777216 + (components[0] << 16) + (components[1] << 8) + components[2]).toString(16).slice(1) : (components.length == 4 ? \"rgba(\" : \"rgb(\") + components.join(\",\") + \")\";\n },\n toCanvasStyle: function(ctx, matrix) {\n if (this._canvasStyle) return this._canvasStyle;\n if (this._type !== \"gradient\") return this._canvasStyle = this.toCSS();\n var components = this._components, gradient = components[0], stops = gradient._stops, origin = components[1], destination = components[2], highlight = components[3], inverse = matrix && matrix.inverted(), canvasGradient;\n if (inverse) {\n origin = inverse._transformPoint(origin);\n destination = inverse._transformPoint(destination);\n if (highlight) highlight = inverse._transformPoint(highlight);\n }\n if (gradient._radial) {\n var radius = destination.getDistance(origin);\n if (highlight) {\n var vector = highlight.subtract(origin);\n if (vector.getLength() > radius) highlight = origin.add(vector.normalize(radius - 0.1));\n }\n var start = highlight || origin;\n canvasGradient = ctx.createRadialGradient(start.x, start.y, 0, origin.x, origin.y, radius);\n } else canvasGradient = ctx.createLinearGradient(origin.x, origin.y, destination.x, destination.y);\n for(var i = 0, l = stops.length; i < l; i++){\n var stop = stops[i], offset = stop._offset;\n canvasGradient.addColorStop(offset == null ? i / (l - 1) : offset, stop._color.toCanvasStyle());\n }\n return this._canvasStyle = canvasGradient;\n },\n transform: function(matrix) {\n if (this._type === \"gradient\") {\n var components = this._components;\n for(var i = 1, l = components.length; i < l; i++){\n var point = components[i];\n matrix._transformPoint(point, point, true);\n }\n this._changed();\n }\n },\n statics: {\n _types: types,\n random: function() {\n var random = Math.random;\n return new Color(random(), random(), random());\n },\n _setOwner: function(color, owner, setter) {\n if (color) {\n if (color._owner && owner && color._owner !== owner) color = color.clone();\n if (!color._owner ^ !owner) {\n color._owner = owner || null;\n color._setter = setter || null;\n }\n }\n return color;\n }\n }\n });\n }, new function() {\n var operators = {\n add: function(a, b) {\n return a + b;\n },\n subtract: function(a, b) {\n return a - b;\n },\n multiply: function(a, b) {\n return a * b;\n },\n divide: function(a, b) {\n return a / b;\n }\n };\n return Base.each(operators, function(operator, name) {\n this[name] = function(color) {\n color = Color.read(arguments);\n var type = this._type, components1 = this._components, components2 = color._convert(type);\n for(var i = 0, l = components1.length; i < l; i++)components2[i] = operator(components1[i], components2[i]);\n return new Color(type, components2, this._alpha != null ? operator(this._alpha, color.getAlpha()) : null);\n };\n }, {});\n });\n var Gradient = Base.extend({\n _class: \"Gradient\",\n initialize: function Gradient(stops, radial) {\n this._id = UID.get();\n if (stops && Base.isPlainObject(stops)) {\n this.set(stops);\n stops = radial = null;\n }\n if (this._stops == null) this.setStops(stops || [\n \"white\",\n \"black\"\n ]);\n if (this._radial == null) this.setRadial(typeof radial === \"string\" && radial === \"radial\" || radial || false);\n },\n _serialize: function(options, dictionary) {\n return dictionary.add(this, function() {\n return Base.serialize([\n this._stops,\n this._radial\n ], options, true, dictionary);\n });\n },\n _changed: function() {\n for(var i = 0, l = this._owners && this._owners.length; i < l; i++)this._owners[i]._changed();\n },\n _addOwner: function(color) {\n if (!this._owners) this._owners = [];\n this._owners.push(color);\n },\n _removeOwner: function(color) {\n var index = this._owners ? this._owners.indexOf(color) : -1;\n if (index != -1) {\n this._owners.splice(index, 1);\n if (!this._owners.length) this._owners = undefined;\n }\n },\n clone: function() {\n var stops = [];\n for(var i = 0, l = this._stops.length; i < l; i++)stops[i] = this._stops[i].clone();\n return new Gradient(stops, this._radial);\n },\n getStops: function() {\n return this._stops;\n },\n setStops: function(stops) {\n if (stops.length < 2) throw new Error(\"Gradient stop list needs to contain at least two stops.\");\n var _stops = this._stops;\n if (_stops) for(var i = 0, l = _stops.length; i < l; i++)_stops[i]._owner = undefined;\n _stops = this._stops = GradientStop.readList(stops, 0, {\n clone: true\n });\n for(var i = 0, l = _stops.length; i < l; i++)_stops[i]._owner = this;\n this._changed();\n },\n getRadial: function() {\n return this._radial;\n },\n setRadial: function(radial) {\n this._radial = radial;\n this._changed();\n },\n equals: function(gradient) {\n if (gradient === this) return true;\n if (gradient && this._class === gradient._class) {\n var stops1 = this._stops, stops2 = gradient._stops, length = stops1.length;\n if (length === stops2.length) {\n for(var i = 0; i < length; i++){\n if (!stops1[i].equals(stops2[i])) return false;\n }\n return true;\n }\n }\n return false;\n }\n });\n var GradientStop = Base.extend({\n _class: \"GradientStop\",\n initialize: function GradientStop(arg0, arg1) {\n var color = arg0, offset = arg1;\n if (typeof arg0 === \"object\" && arg1 === undefined) {\n if (Array.isArray(arg0) && typeof arg0[0] !== \"number\") {\n color = arg0[0];\n offset = arg0[1];\n } else if (\"color\" in arg0 || \"offset\" in arg0 || \"rampPoint\" in arg0) {\n color = arg0.color;\n offset = arg0.offset || arg0.rampPoint || 0;\n }\n }\n this.setColor(color);\n this.setOffset(offset);\n },\n clone: function() {\n return new GradientStop(this._color.clone(), this._offset);\n },\n _serialize: function(options, dictionary) {\n var color = this._color, offset = this._offset;\n return Base.serialize(offset == null ? [\n color\n ] : [\n color,\n offset\n ], options, true, dictionary);\n },\n _changed: function() {\n if (this._owner) this._owner._changed(129);\n },\n getOffset: function() {\n return this._offset;\n },\n setOffset: function(offset) {\n this._offset = offset;\n this._changed();\n },\n getRampPoint: \"#getOffset\",\n setRampPoint: \"#setOffset\",\n getColor: function() {\n return this._color;\n },\n setColor: function() {\n Color._setOwner(this._color, null);\n this._color = Color._setOwner(Color.read(arguments, 0), this, \"setColor\");\n this._changed();\n },\n equals: function(stop) {\n return stop === this || stop && this._class === stop._class && this._color.equals(stop._color) && this._offset == stop._offset || false;\n }\n });\n var Style = Base.extend(new function() {\n var itemDefaults = {\n fillColor: null,\n fillRule: \"nonzero\",\n strokeColor: null,\n strokeWidth: 1,\n strokeCap: \"butt\",\n strokeJoin: \"miter\",\n strokeScaling: true,\n miterLimit: 10,\n dashOffset: 0,\n dashArray: [],\n shadowColor: null,\n shadowBlur: 0,\n shadowOffset: new Point(),\n selectedColor: null\n }, groupDefaults = Base.set({}, itemDefaults, {\n fontFamily: \"sans-serif\",\n fontWeight: \"normal\",\n fontSize: 12,\n leading: null,\n justification: \"left\"\n }), textDefaults = Base.set({}, groupDefaults, {\n fillColor: new Color()\n }), flags = {\n strokeWidth: 193,\n strokeCap: 193,\n strokeJoin: 193,\n strokeScaling: 201,\n miterLimit: 193,\n fontFamily: 9,\n fontWeight: 9,\n fontSize: 9,\n font: 9,\n leading: 9,\n justification: 9\n }, item = {\n beans: true\n }, fields = {\n _class: \"Style\",\n beans: true,\n initialize: function Style(style, _owner, _project) {\n this._values = {};\n this._owner = _owner;\n this._project = _owner && _owner._project || _project || paper.project;\n this._defaults = !_owner || _owner instanceof Group ? groupDefaults : _owner instanceof TextItem ? textDefaults : itemDefaults;\n if (style) this.set(style);\n }\n };\n Base.each(groupDefaults, function(value, key) {\n var isColor = /Color$/.test(key), isPoint = key === \"shadowOffset\", part = Base.capitalize(key), flag = flags[key], set = \"set\" + part, get = \"get\" + part;\n fields[set] = function(value) {\n var owner = this._owner, children = owner && owner._children, applyToChildren = children && children.length > 0 && !(owner instanceof CompoundPath);\n if (applyToChildren) for(var i = 0, l = children.length; i < l; i++)children[i]._style[set](value);\n if ((key === \"selectedColor\" || !applyToChildren) && key in this._defaults) {\n var old = this._values[key];\n if (old !== value) {\n if (isColor) {\n if (old) {\n Color._setOwner(old, null);\n old._canvasStyle = null;\n }\n if (value && value.constructor === Color) value = Color._setOwner(value, owner, applyToChildren && set);\n }\n this._values[key] = value;\n if (owner) owner._changed(flag || 129);\n }\n }\n };\n fields[get] = function(_dontMerge) {\n var owner = this._owner, children = owner && owner._children, applyToChildren = children && children.length > 0 && !(owner instanceof CompoundPath), value;\n if (applyToChildren && !_dontMerge) for(var i = 0, l = children.length; i < l; i++){\n var childValue = children[i]._style[get]();\n if (!i) value = childValue;\n else if (!Base.equals(value, childValue)) return undefined;\n }\n else if (key in this._defaults) {\n var value = this._values[key];\n if (value === undefined) {\n value = this._defaults[key];\n if (value && value.clone) value = value.clone();\n } else {\n var ctor = isColor ? Color : isPoint ? Point : null;\n if (ctor && !(value && value.constructor === ctor)) this._values[key] = value = ctor.read([\n value\n ], 0, {\n readNull: true,\n clone: true\n });\n }\n }\n if (value && isColor) value = Color._setOwner(value, owner, applyToChildren && set);\n return value;\n };\n item[get] = function(_dontMerge) {\n return this._style[get](_dontMerge);\n };\n item[set] = function(value) {\n this._style[set](value);\n };\n });\n Base.each({\n Font: \"FontFamily\",\n WindingRule: \"FillRule\"\n }, function(value, key) {\n var get = \"get\" + key, set = \"set\" + key;\n fields[get] = item[get] = \"#get\" + value;\n fields[set] = item[set] = \"#set\" + value;\n });\n Item.inject(item);\n return fields;\n }, {\n set: function(style) {\n var isStyle = style instanceof Style, values = isStyle ? style._values : style;\n if (values) {\n for(var key in values)if (key in this._defaults) {\n var value = values[key];\n this[key] = value && isStyle && value.clone ? value.clone() : value;\n }\n }\n },\n equals: function(style) {\n function compare(style1, style2, secondary) {\n var values1 = style1._values, values2 = style2._values, defaults2 = style2._defaults;\n for(var key in values1){\n var value1 = values1[key], value2 = values2[key];\n if (!(secondary && key in values2) && !Base.equals(value1, value2 === undefined ? defaults2[key] : value2)) return false;\n }\n return true;\n }\n return style === this || style && this._class === style._class && compare(this, style) && compare(style, this, true) || false;\n },\n _dispose: function() {\n var color;\n color = this.getFillColor();\n if (color) color._canvasStyle = null;\n color = this.getStrokeColor();\n if (color) color._canvasStyle = null;\n color = this.getShadowColor();\n if (color) color._canvasStyle = null;\n },\n hasFill: function() {\n var color = this.getFillColor();\n return !!color && color.alpha > 0;\n },\n hasStroke: function() {\n var color = this.getStrokeColor();\n return !!color && color.alpha > 0 && this.getStrokeWidth() > 0;\n },\n hasShadow: function() {\n var color = this.getShadowColor();\n return !!color && color.alpha > 0 && (this.getShadowBlur() > 0 || !this.getShadowOffset().isZero());\n },\n getView: function() {\n return this._project._view;\n },\n getFontStyle: function() {\n var fontSize = this.getFontSize();\n return this.getFontWeight() + \" \" + fontSize + (/[a-z]/i.test(fontSize + \"\") ? \" \" : \"px \") + this.getFontFamily();\n },\n getFont: \"#getFontFamily\",\n setFont: \"#setFontFamily\",\n getLeading: function getLeading() {\n var leading = getLeading.base.call(this), fontSize = this.getFontSize();\n if (/pt|em|%|px/.test(fontSize)) fontSize = this.getView().getPixelSize(fontSize);\n return leading != null ? leading : fontSize * 1.2;\n }\n });\n var DomElement = new function() {\n function handlePrefix(el, name, set, value) {\n var prefixes = [\n \"\",\n \"webkit\",\n \"moz\",\n \"Moz\",\n \"ms\",\n \"o\"\n ], suffix = name[0].toUpperCase() + name.substring(1);\n for(var i = 0; i < 6; i++){\n var prefix = prefixes[i], key = prefix ? prefix + suffix : name;\n if (key in el) {\n if (set) el[key] = value;\n else return el[key];\n break;\n }\n }\n }\n return {\n getStyles: function(el) {\n var doc = el && el.nodeType !== 9 ? el.ownerDocument : el, view = doc && doc.defaultView;\n return view && view.getComputedStyle(el, \"\");\n },\n getBounds: function(el, viewport) {\n var doc = el.ownerDocument, body = doc.body, html = doc.documentElement, rect;\n try {\n rect = el.getBoundingClientRect();\n } catch (e) {\n rect = {\n left: 0,\n top: 0,\n width: 0,\n height: 0\n };\n }\n var x = rect.left - (html.clientLeft || body.clientLeft || 0), y = rect.top - (html.clientTop || body.clientTop || 0);\n if (!viewport) {\n var view = doc.defaultView;\n x += view.pageXOffset || html.scrollLeft || body.scrollLeft;\n y += view.pageYOffset || html.scrollTop || body.scrollTop;\n }\n return new Rectangle(x, y, rect.width, rect.height);\n },\n getViewportBounds: function(el) {\n var doc = el.ownerDocument, view = doc.defaultView, html = doc.documentElement;\n return new Rectangle(0, 0, view.innerWidth || html.clientWidth, view.innerHeight || html.clientHeight);\n },\n getOffset: function(el, viewport) {\n return DomElement.getBounds(el, viewport).getPoint();\n },\n getSize: function(el) {\n return DomElement.getBounds(el, true).getSize();\n },\n isInvisible: function(el) {\n return DomElement.getSize(el).equals(new Size(0, 0));\n },\n isInView: function(el) {\n return !DomElement.isInvisible(el) && DomElement.getViewportBounds(el).intersects(DomElement.getBounds(el, true));\n },\n isInserted: function(el) {\n return document.body.contains(el);\n },\n getPrefixed: function(el, name) {\n return el && handlePrefix(el, name);\n },\n setPrefixed: function(el, name, value) {\n if (typeof name === \"object\") for(var key in name)handlePrefix(el, key, true, name[key]);\n else handlePrefix(el, name, true, value);\n }\n };\n };\n var DomEvent = {\n add: function(el, events) {\n if (el) for(var type in events){\n var func = events[type], parts = type.split(/[\\s,]+/g);\n for(var i = 0, l = parts.length; i < l; i++){\n var name = parts[i];\n var options = el === document && (name === \"touchstart\" || name === \"touchmove\") ? {\n passive: false\n } : false;\n el.addEventListener(name, func, options);\n }\n }\n },\n remove: function(el, events) {\n if (el) for(var type in events){\n var func = events[type], parts = type.split(/[\\s,]+/g);\n for(var i = 0, l = parts.length; i < l; i++)el.removeEventListener(parts[i], func, false);\n }\n },\n getPoint: function(event) {\n var pos = event.targetTouches ? event.targetTouches.length ? event.targetTouches[0] : event.changedTouches[0] : event;\n return new Point(pos.pageX || pos.clientX + document.documentElement.scrollLeft, pos.pageY || pos.clientY + document.documentElement.scrollTop);\n },\n getTarget: function(event) {\n return event.target || event.srcElement;\n },\n getRelatedTarget: function(event) {\n return event.relatedTarget || event.toElement;\n },\n getOffset: function(event, target) {\n return DomEvent.getPoint(event).subtract(DomElement.getOffset(target || DomEvent.getTarget(event)));\n }\n };\n DomEvent.requestAnimationFrame = new function() {\n var nativeRequest = DomElement.getPrefixed(window, \"requestAnimationFrame\"), requested = false, callbacks = [], timer;\n function handleCallbacks() {\n var functions = callbacks;\n callbacks = [];\n for(var i = 0, l = functions.length; i < l; i++)functions[i]();\n requested = nativeRequest && callbacks.length;\n if (requested) nativeRequest(handleCallbacks);\n }\n return function(callback) {\n callbacks.push(callback);\n if (nativeRequest) {\n if (!requested) {\n nativeRequest(handleCallbacks);\n requested = true;\n }\n } else if (!timer) timer = setInterval(handleCallbacks, 1000 / 60);\n };\n };\n var View = Base.extend(Emitter, {\n _class: \"View\",\n initialize: function View(project, element) {\n function getSize(name) {\n return element[name] || parseInt(element.getAttribute(name), 10);\n }\n function getCanvasSize() {\n var size = DomElement.getSize(element);\n return size.isNaN() || size.isZero() ? new Size(getSize(\"width\"), getSize(\"height\")) : size;\n }\n var size;\n if (window && element) {\n this._id = element.getAttribute(\"id\");\n if (this._id == null) element.setAttribute(\"id\", this._id = \"paper-view-\" + View._id++);\n DomEvent.add(element, this._viewEvents);\n var none = \"none\";\n DomElement.setPrefixed(element.style, {\n userDrag: none,\n userSelect: none,\n touchCallout: none,\n contentZooming: none,\n tapHighlightColor: \"rgba(0,0,0,0)\"\n });\n if (PaperScope.hasAttribute(element, \"resize\")) {\n var that = this;\n DomEvent.add(window, this._windowEvents = {\n resize: function() {\n that.setViewSize(getCanvasSize());\n }\n });\n }\n size = getCanvasSize();\n if (PaperScope.hasAttribute(element, \"stats\") && typeof Stats !== \"undefined\") {\n this._stats = new Stats();\n var stats = this._stats.domElement, style = stats.style, offset = DomElement.getOffset(element);\n style.position = \"absolute\";\n style.left = offset.x + \"px\";\n style.top = offset.y + \"px\";\n document.body.appendChild(stats);\n }\n } else {\n size = new Size(element);\n element = null;\n }\n this._project = project;\n this._scope = project._scope;\n this._element = element;\n if (!this._pixelRatio) this._pixelRatio = window && window.devicePixelRatio || 1;\n this._setElementSize(size.width, size.height);\n this._viewSize = size;\n View._views.push(this);\n View._viewsById[this._id] = this;\n (this._matrix = new Matrix())._owner = this;\n if (!View._focused) View._focused = this;\n this._frameItems = {};\n this._frameItemCount = 0;\n this._itemEvents = {\n native: {},\n virtual: {}\n };\n this._autoUpdate = !paper.agent.node;\n this._needsUpdate = false;\n },\n remove: function() {\n if (!this._project) return false;\n if (View._focused === this) View._focused = null;\n View._views.splice(View._views.indexOf(this), 1);\n delete View._viewsById[this._id];\n var project = this._project;\n if (project._view === this) project._view = null;\n DomEvent.remove(this._element, this._viewEvents);\n DomEvent.remove(window, this._windowEvents);\n this._element = this._project = null;\n this.off(\"frame\");\n this._animate = false;\n this._frameItems = {};\n return true;\n },\n _events: Base.each(Item._itemHandlers.concat([\n \"onResize\",\n \"onKeyDown\",\n \"onKeyUp\"\n ]), function(name) {\n this[name] = {};\n }, {\n onFrame: {\n install: function() {\n this.play();\n },\n uninstall: function() {\n this.pause();\n }\n }\n }),\n _animate: false,\n _time: 0,\n _count: 0,\n getAutoUpdate: function() {\n return this._autoUpdate;\n },\n setAutoUpdate: function(autoUpdate) {\n this._autoUpdate = autoUpdate;\n if (autoUpdate) this.requestUpdate();\n },\n update: function() {},\n draw: function() {\n this.update();\n },\n requestUpdate: function() {\n if (!this._requested) {\n var that = this;\n DomEvent.requestAnimationFrame(function() {\n that._requested = false;\n if (that._animate) {\n that.requestUpdate();\n var element = that._element;\n if ((!DomElement.getPrefixed(document, \"hidden\") || PaperScope.getAttribute(element, \"keepalive\") === \"true\") && DomElement.isInView(element)) that._handleFrame();\n }\n if (that._autoUpdate) that.update();\n });\n this._requested = true;\n }\n },\n play: function() {\n this._animate = true;\n this.requestUpdate();\n },\n pause: function() {\n this._animate = false;\n },\n _handleFrame: function() {\n paper = this._scope;\n var now = Date.now() / 1000, delta = this._last ? now - this._last : 0;\n this._last = now;\n this.emit(\"frame\", new Base({\n delta: delta,\n time: this._time += delta,\n count: this._count++\n }));\n if (this._stats) this._stats.update();\n },\n _animateItem: function(item, animate) {\n var items = this._frameItems;\n if (animate) {\n items[item._id] = {\n item: item,\n time: 0,\n count: 0\n };\n if (++this._frameItemCount === 1) this.on(\"frame\", this._handleFrameItems);\n } else {\n delete items[item._id];\n if (--this._frameItemCount === 0) this.off(\"frame\", this._handleFrameItems);\n }\n },\n _handleFrameItems: function(event) {\n for(var i in this._frameItems){\n var entry = this._frameItems[i];\n entry.item.emit(\"frame\", new Base(event, {\n time: entry.time += event.delta,\n count: entry.count++\n }));\n }\n },\n _changed: function() {\n this._project._changed(4097);\n this._bounds = this._decomposed = undefined;\n },\n getElement: function() {\n return this._element;\n },\n getPixelRatio: function() {\n return this._pixelRatio;\n },\n getResolution: function() {\n return this._pixelRatio * 72;\n },\n getViewSize: function() {\n var size = this._viewSize;\n return new LinkedSize(size.width, size.height, this, \"setViewSize\");\n },\n setViewSize: function() {\n var size = Size.read(arguments), delta = size.subtract(this._viewSize);\n if (delta.isZero()) return;\n this._setElementSize(size.width, size.height);\n this._viewSize.set(size);\n this._changed();\n this.emit(\"resize\", {\n size: size,\n delta: delta\n });\n if (this._autoUpdate) this.update();\n },\n _setElementSize: function(width, height) {\n var element = this._element;\n if (element) {\n if (element.width !== width) element.width = width;\n if (element.height !== height) element.height = height;\n }\n },\n getBounds: function() {\n if (!this._bounds) this._bounds = this._matrix.inverted()._transformBounds(new Rectangle(new Point(), this._viewSize));\n return this._bounds;\n },\n getSize: function() {\n return this.getBounds().getSize();\n },\n isVisible: function() {\n return DomElement.isInView(this._element);\n },\n isInserted: function() {\n return DomElement.isInserted(this._element);\n },\n getPixelSize: function(size) {\n var element = this._element, pixels;\n if (element) {\n var parent = element.parentNode, temp = document.createElement(\"div\");\n temp.style.fontSize = size;\n parent.appendChild(temp);\n pixels = parseFloat(DomElement.getStyles(temp).fontSize);\n parent.removeChild(temp);\n } else pixels = parseFloat(pixels);\n return pixels;\n },\n getTextWidth: function(font, lines) {\n return 0;\n }\n }, Base.each([\n \"rotate\",\n \"scale\",\n \"shear\",\n \"skew\"\n ], function(key) {\n var rotate = key === \"rotate\";\n this[key] = function() {\n var args = arguments, value = (rotate ? Base : Point).read(args), center = Point.read(args, 0, {\n readNull: true\n });\n return this.transform(new Matrix()[key](value, center || this.getCenter(true)));\n };\n }, {\n _decompose: function() {\n return this._decomposed || (this._decomposed = this._matrix.decompose());\n },\n translate: function() {\n var mx = new Matrix();\n return this.transform(mx.translate.apply(mx, arguments));\n },\n getCenter: function() {\n return this.getBounds().getCenter();\n },\n setCenter: function() {\n var center = Point.read(arguments);\n this.translate(this.getCenter().subtract(center));\n },\n getZoom: function() {\n var scaling = this._decompose().scaling;\n return (scaling.x + scaling.y) / 2;\n },\n setZoom: function(zoom) {\n this.transform(new Matrix().scale(zoom / this.getZoom(), this.getCenter()));\n },\n getRotation: function() {\n return this._decompose().rotation;\n },\n setRotation: function(rotation) {\n var current = this.getRotation();\n if (current != null && rotation != null) this.rotate(rotation - current);\n },\n getScaling: function() {\n var scaling = this._decompose().scaling;\n return new LinkedPoint(scaling.x, scaling.y, this, \"setScaling\");\n },\n setScaling: function() {\n var current = this.getScaling(), scaling = Point.read(arguments, 0, {\n clone: true,\n readNull: true\n });\n if (current && scaling) this.scale(scaling.x / current.x, scaling.y / current.y);\n },\n getMatrix: function() {\n return this._matrix;\n },\n setMatrix: function() {\n var matrix = this._matrix;\n matrix.set.apply(matrix, arguments);\n },\n transform: function(matrix) {\n this._matrix.append(matrix);\n },\n scrollBy: function() {\n this.translate(Point.read(arguments).negate());\n }\n }), {\n projectToView: function() {\n return this._matrix._transformPoint(Point.read(arguments));\n },\n viewToProject: function() {\n return this._matrix._inverseTransform(Point.read(arguments));\n },\n getEventPoint: function(event) {\n return this.viewToProject(DomEvent.getOffset(event, this._element));\n }\n }, {\n statics: {\n _views: [],\n _viewsById: {},\n _id: 0,\n create: function(project, element) {\n if (document && typeof element === \"string\") element = document.getElementById(element);\n var ctor = window ? CanvasView : View;\n return new ctor(project, element);\n }\n }\n }, new function() {\n if (!window) return;\n var prevFocus, tempFocus, dragging = false, mouseDown = false;\n function getView(event) {\n var target = DomEvent.getTarget(event);\n return target.getAttribute && View._viewsById[target.getAttribute(\"id\")];\n }\n function updateFocus() {\n var view = View._focused;\n if (!view || !view.isVisible()) {\n for(var i = 0, l = View._views.length; i < l; i++)if ((view = View._views[i]).isVisible()) {\n View._focused = tempFocus = view;\n break;\n }\n }\n }\n function handleMouseMove(view, event, point) {\n view._handleMouseEvent(\"mousemove\", event, point);\n }\n var navigator = window.navigator, mousedown, mousemove, mouseup;\n if (navigator.pointerEnabled || navigator.msPointerEnabled) {\n mousedown = \"pointerdown MSPointerDown\";\n mousemove = \"pointermove MSPointerMove\";\n mouseup = \"pointerup pointercancel MSPointerUp MSPointerCancel\";\n } else {\n mousedown = \"touchstart\";\n mousemove = \"touchmove\";\n mouseup = \"touchend touchcancel\";\n if (!(\"ontouchstart\" in window && navigator.userAgent.match(/mobile|tablet|ip(ad|hone|od)|android|silk/i))) {\n mousedown += \" mousedown\";\n mousemove += \" mousemove\";\n mouseup += \" mouseup\";\n }\n }\n var viewEvents = {}, docEvents = {\n mouseout: function(event) {\n var view = View._focused, target = DomEvent.getRelatedTarget(event);\n if (view && (!target || target.nodeName === \"HTML\")) {\n var offset = DomEvent.getOffset(event, view._element), x = offset.x, abs = Math.abs, ax = abs(x), max = 33554432, diff = ax - max;\n offset.x = abs(diff) < ax ? diff * (x < 0 ? -1 : 1) : x;\n handleMouseMove(view, event, view.viewToProject(offset));\n }\n },\n scroll: updateFocus\n };\n viewEvents[mousedown] = function(event) {\n var view = View._focused = getView(event);\n if (!dragging) {\n dragging = true;\n view._handleMouseEvent(\"mousedown\", event);\n }\n };\n docEvents[mousemove] = function(event) {\n var view = View._focused;\n if (!mouseDown) {\n var target = getView(event);\n if (target) {\n if (view !== target) {\n if (view) handleMouseMove(view, event);\n if (!prevFocus) prevFocus = view;\n view = View._focused = tempFocus = target;\n }\n } else if (tempFocus && tempFocus === view) {\n if (prevFocus && !prevFocus.isInserted()) prevFocus = null;\n view = View._focused = prevFocus;\n prevFocus = null;\n updateFocus();\n }\n }\n if (view) handleMouseMove(view, event);\n };\n docEvents[mousedown] = function() {\n mouseDown = true;\n };\n docEvents[mouseup] = function(event) {\n var view = View._focused;\n if (view && dragging) view._handleMouseEvent(\"mouseup\", event);\n mouseDown = dragging = false;\n };\n DomEvent.add(document, docEvents);\n DomEvent.add(window, {\n load: updateFocus\n });\n var called = false, prevented = false, fallbacks = {\n doubleclick: \"click\",\n mousedrag: \"mousemove\"\n }, wasInView = false, overView, downPoint, lastPoint, downItem, overItem, dragItem, clickItem, clickTime, dblClick;\n function emitMouseEvent(obj, target, type, event, point, prevPoint, stopItem) {\n var stopped = false, mouseEvent;\n function emit(obj, type) {\n if (obj.responds(type)) {\n if (!mouseEvent) mouseEvent = new MouseEvent(type, event, point, target || obj, prevPoint ? point.subtract(prevPoint) : null);\n if (obj.emit(type, mouseEvent)) {\n called = true;\n if (mouseEvent.prevented) prevented = true;\n if (mouseEvent.stopped) return stopped = true;\n }\n } else {\n var fallback = fallbacks[type];\n if (fallback) return emit(obj, fallback);\n }\n }\n while(obj && obj !== stopItem){\n if (emit(obj, type)) break;\n obj = obj._parent;\n }\n return stopped;\n }\n function emitMouseEvents(view, hitItem, type, event, point, prevPoint) {\n view._project.removeOn(type);\n prevented = called = false;\n return dragItem && emitMouseEvent(dragItem, null, type, event, point, prevPoint) || hitItem && hitItem !== dragItem && !hitItem.isDescendant(dragItem) && emitMouseEvent(hitItem, null, type === \"mousedrag\" ? \"mousemove\" : type, event, point, prevPoint, dragItem) || emitMouseEvent(view, dragItem || hitItem || view, type, event, point, prevPoint);\n }\n var itemEventsMap = {\n mousedown: {\n mousedown: 1,\n mousedrag: 1,\n click: 1,\n doubleclick: 1\n },\n mouseup: {\n mouseup: 1,\n mousedrag: 1,\n click: 1,\n doubleclick: 1\n },\n mousemove: {\n mousedrag: 1,\n mousemove: 1,\n mouseenter: 1,\n mouseleave: 1\n }\n };\n return {\n _viewEvents: viewEvents,\n _handleMouseEvent: function(type, event, point) {\n var itemEvents = this._itemEvents, hitItems = itemEvents.native[type], nativeMove = type === \"mousemove\", tool = this._scope.tool, view = this;\n function responds(type) {\n return itemEvents.virtual[type] || view.responds(type) || tool && tool.responds(type);\n }\n if (nativeMove && dragging && responds(\"mousedrag\")) type = \"mousedrag\";\n if (!point) point = this.getEventPoint(event);\n var inView = this.getBounds().contains(point), hit = hitItems && inView && view._project.hitTest(point, {\n tolerance: 0,\n fill: true,\n stroke: true\n }), hitItem = hit && hit.item || null, handle = false, mouse = {};\n mouse[type.substr(5)] = true;\n if (hitItems && hitItem !== overItem) {\n if (overItem) emitMouseEvent(overItem, null, \"mouseleave\", event, point);\n if (hitItem) emitMouseEvent(hitItem, null, \"mouseenter\", event, point);\n overItem = hitItem;\n }\n if (wasInView ^ inView) {\n emitMouseEvent(this, null, inView ? \"mouseenter\" : \"mouseleave\", event, point);\n overView = inView ? this : null;\n handle = true;\n }\n if ((inView || mouse.drag) && !point.equals(lastPoint)) {\n emitMouseEvents(this, hitItem, nativeMove ? type : \"mousemove\", event, point, lastPoint);\n handle = true;\n }\n wasInView = inView;\n if (mouse.down && inView || mouse.up && downPoint) {\n emitMouseEvents(this, hitItem, type, event, point, downPoint);\n if (mouse.down) {\n dblClick = hitItem === clickItem && Date.now() - clickTime < 300;\n downItem = clickItem = hitItem;\n if (!prevented && hitItem) {\n var item = hitItem;\n while(item && !item.responds(\"mousedrag\"))item = item._parent;\n if (item) dragItem = hitItem;\n }\n downPoint = point;\n } else if (mouse.up) {\n if (!prevented && hitItem === downItem) {\n clickTime = Date.now();\n emitMouseEvents(this, hitItem, dblClick ? \"doubleclick\" : \"click\", event, point, downPoint);\n dblClick = false;\n }\n downItem = dragItem = null;\n }\n wasInView = false;\n handle = true;\n }\n lastPoint = point;\n if (handle && tool) called = tool._handleMouseEvent(type, event, point, mouse) || called;\n if (event.cancelable !== false && (called && !mouse.move || mouse.down && responds(\"mouseup\"))) event.preventDefault();\n },\n _handleKeyEvent: function(type, event, key, character) {\n var scope = this._scope, tool = scope.tool, keyEvent;\n function emit(obj) {\n if (obj.responds(type)) {\n paper = scope;\n obj.emit(type, keyEvent = keyEvent || new KeyEvent(type, event, key, character));\n }\n }\n if (this.isVisible()) {\n emit(this);\n if (tool && tool.responds(type)) emit(tool);\n }\n },\n _countItemEvent: function(type, sign) {\n var itemEvents = this._itemEvents, native = itemEvents.native, virtual = itemEvents.virtual;\n for(var key in itemEventsMap)native[key] = (native[key] || 0) + (itemEventsMap[key][type] || 0) * sign;\n virtual[type] = (virtual[type] || 0) + sign;\n },\n statics: {\n updateFocus: updateFocus,\n _resetState: function() {\n dragging = mouseDown = called = wasInView = false;\n prevFocus = tempFocus = overView = downPoint = lastPoint = downItem = overItem = dragItem = clickItem = clickTime = dblClick = null;\n }\n }\n };\n });\n var CanvasView = View.extend({\n _class: \"CanvasView\",\n initialize: function CanvasView(project, canvas) {\n if (!(canvas instanceof window.HTMLCanvasElement)) {\n var size = Size.read(arguments, 1);\n if (size.isZero()) throw new Error(\"Cannot create CanvasView with the provided argument: \" + Base.slice(arguments, 1));\n canvas = CanvasProvider.getCanvas(size);\n }\n var ctx = this._context = canvas.getContext(\"2d\");\n ctx.save();\n this._pixelRatio = 1;\n if (!/^off|false$/.test(PaperScope.getAttribute(canvas, \"hidpi\"))) {\n var deviceRatio = window.devicePixelRatio || 1, backingStoreRatio = DomElement.getPrefixed(ctx, \"backingStorePixelRatio\") || 1;\n this._pixelRatio = deviceRatio / backingStoreRatio;\n }\n View.call(this, project, canvas);\n this._needsUpdate = true;\n },\n remove: function remove() {\n this._context.restore();\n return remove.base.call(this);\n },\n _setElementSize: function _setElementSize(width, height) {\n var pixelRatio = this._pixelRatio;\n _setElementSize.base.call(this, width * pixelRatio, height * pixelRatio);\n if (pixelRatio !== 1) {\n var element = this._element, ctx = this._context;\n if (!PaperScope.hasAttribute(element, \"resize\")) {\n var style = element.style;\n style.width = width + \"px\";\n style.height = height + \"px\";\n }\n ctx.restore();\n ctx.save();\n ctx.scale(pixelRatio, pixelRatio);\n }\n },\n getContext: function() {\n return this._context;\n },\n getPixelSize: function getPixelSize(size) {\n var agent = paper.agent, pixels;\n if (agent && agent.firefox) pixels = getPixelSize.base.call(this, size);\n else {\n var ctx = this._context, prevFont = ctx.font;\n ctx.font = size + \" serif\";\n pixels = parseFloat(ctx.font);\n ctx.font = prevFont;\n }\n return pixels;\n },\n getTextWidth: function(font, lines) {\n var ctx = this._context, prevFont = ctx.font, width = 0;\n ctx.font = font;\n for(var i = 0, l = lines.length; i < l; i++)width = Math.max(width, ctx.measureText(lines[i]).width);\n ctx.font = prevFont;\n return width;\n },\n update: function() {\n if (!this._needsUpdate) return false;\n var project = this._project, ctx = this._context, size = this._viewSize;\n ctx.clearRect(0, 0, size.width + 1, size.height + 1);\n if (project) project.draw(ctx, this._matrix, this._pixelRatio);\n this._needsUpdate = false;\n return true;\n }\n });\n var Event = Base.extend({\n _class: \"Event\",\n initialize: function Event(event) {\n this.event = event;\n this.type = event && event.type;\n },\n prevented: false,\n stopped: false,\n preventDefault: function() {\n this.prevented = true;\n this.event.preventDefault();\n },\n stopPropagation: function() {\n this.stopped = true;\n this.event.stopPropagation();\n },\n stop: function() {\n this.stopPropagation();\n this.preventDefault();\n },\n getTimeStamp: function() {\n return this.event.timeStamp;\n },\n getModifiers: function() {\n return Key.modifiers;\n }\n });\n var KeyEvent = Event.extend({\n _class: \"KeyEvent\",\n initialize: function KeyEvent(type, event, key, character) {\n this.type = type;\n this.event = event;\n this.key = key;\n this.character = character;\n },\n toString: function() {\n return \"{ type: '\" + this.type + \"', key: '\" + this.key + \"', character: '\" + this.character + \"', modifiers: \" + this.getModifiers() + \" }\";\n }\n });\n var Key = new function() {\n var keyLookup = {\n \"\t\": \"tab\",\n \" \": \"space\",\n \"\\b\": \"backspace\",\n \"\\x7f\": \"delete\",\n \"Spacebar\": \"space\",\n \"Del\": \"delete\",\n \"Win\": \"meta\",\n \"Esc\": \"escape\"\n }, charLookup = {\n \"tab\": \"\t\",\n \"space\": \" \",\n \"enter\": \"\\r\"\n }, keyMap = {}, charMap = {}, metaFixMap, downKey, modifiers = new Base({\n shift: false,\n control: false,\n alt: false,\n meta: false,\n capsLock: false,\n space: false\n }).inject({\n option: {\n get: function() {\n return this.alt;\n }\n },\n command: {\n get: function() {\n var agent = paper && paper.agent;\n return agent && agent.mac ? this.meta : this.control;\n }\n }\n });\n function getKey(event) {\n var key = event.key || event.keyIdentifier;\n key = /^U\\+/.test(key) ? String.fromCharCode(parseInt(key.substr(2), 16)) : /^Arrow[A-Z]/.test(key) ? key.substr(5) : key === \"Unidentified\" || key === undefined ? String.fromCharCode(event.keyCode) : key;\n return keyLookup[key] || (key.length > 1 ? Base.hyphenate(key) : key.toLowerCase());\n }\n function handleKey(down, key, character, event) {\n var type = down ? \"keydown\" : \"keyup\", view = View._focused, name;\n keyMap[key] = down;\n if (down) charMap[key] = character;\n else delete charMap[key];\n if (key.length > 1 && (name = Base.camelize(key)) in modifiers) {\n modifiers[name] = down;\n var agent = paper && paper.agent;\n if (name === \"meta\" && agent && agent.mac) {\n if (down) metaFixMap = {};\n else {\n for(var k in metaFixMap)if (k in charMap) handleKey(false, k, metaFixMap[k], event);\n metaFixMap = null;\n }\n }\n } else if (down && metaFixMap) metaFixMap[key] = character;\n if (view) view._handleKeyEvent(down ? \"keydown\" : \"keyup\", event, key, character);\n }\n DomEvent.add(document, {\n keydown: function(event) {\n var key = getKey(event), agent = paper && paper.agent;\n if (key.length > 1 || agent && agent.chrome && (event.altKey || agent.mac && event.metaKey || !agent.mac && event.ctrlKey)) handleKey(true, key, charLookup[key] || (key.length > 1 ? \"\" : key), event);\n else downKey = key;\n },\n keypress: function(event) {\n if (downKey) {\n var key = getKey(event), code = event.charCode, character = code >= 32 ? String.fromCharCode(code) : key.length > 1 ? \"\" : key;\n if (key !== downKey) key = character.toLowerCase();\n handleKey(true, key, character, event);\n downKey = null;\n }\n },\n keyup: function(event) {\n var key = getKey(event);\n if (key in charMap) handleKey(false, key, charMap[key], event);\n }\n });\n DomEvent.add(window, {\n blur: function(event) {\n for(var key in charMap)handleKey(false, key, charMap[key], event);\n }\n });\n return {\n modifiers: modifiers,\n isDown: function(key) {\n return !!keyMap[key];\n }\n };\n };\n var MouseEvent = Event.extend({\n _class: \"MouseEvent\",\n initialize: function MouseEvent(type, event, point, target, delta) {\n this.type = type;\n this.event = event;\n this.point = point;\n this.target = target;\n this.delta = delta;\n },\n toString: function() {\n return \"{ type: '\" + this.type + \"', point: \" + this.point + \", target: \" + this.target + (this.delta ? \", delta: \" + this.delta : \"\") + \", modifiers: \" + this.getModifiers() + \" }\";\n }\n });\n var ToolEvent = Event.extend({\n _class: \"ToolEvent\",\n _item: null,\n initialize: function ToolEvent(tool, type, event) {\n this.tool = tool;\n this.type = type;\n this.event = event;\n },\n _choosePoint: function(point, toolPoint) {\n return point ? point : toolPoint ? toolPoint.clone() : null;\n },\n getPoint: function() {\n return this._choosePoint(this._point, this.tool._point);\n },\n setPoint: function(point) {\n this._point = point;\n },\n getLastPoint: function() {\n return this._choosePoint(this._lastPoint, this.tool._lastPoint);\n },\n setLastPoint: function(lastPoint) {\n this._lastPoint = lastPoint;\n },\n getDownPoint: function() {\n return this._choosePoint(this._downPoint, this.tool._downPoint);\n },\n setDownPoint: function(downPoint) {\n this._downPoint = downPoint;\n },\n getMiddlePoint: function() {\n if (!this._middlePoint && this.tool._lastPoint) return this.tool._point.add(this.tool._lastPoint).divide(2);\n return this._middlePoint;\n },\n setMiddlePoint: function(middlePoint) {\n this._middlePoint = middlePoint;\n },\n getDelta: function() {\n return !this._delta && this.tool._lastPoint ? this.tool._point.subtract(this.tool._lastPoint) : this._delta;\n },\n setDelta: function(delta) {\n this._delta = delta;\n },\n getCount: function() {\n return this.tool[/^mouse(down|up)$/.test(this.type) ? \"_downCount\" : \"_moveCount\"];\n },\n setCount: function(count) {\n this.tool[/^mouse(down|up)$/.test(this.type) ? \"downCount\" : \"count\"] = count;\n },\n getItem: function() {\n if (!this._item) {\n var result = this.tool._scope.project.hitTest(this.getPoint());\n if (result) {\n var item = result.item, parent = item._parent;\n while(/^(Group|CompoundPath)$/.test(parent._class)){\n item = parent;\n parent = parent._parent;\n }\n this._item = item;\n }\n }\n return this._item;\n },\n setItem: function(item) {\n this._item = item;\n },\n toString: function() {\n return \"{ type: \" + this.type + \", point: \" + this.getPoint() + \", count: \" + this.getCount() + \", modifiers: \" + this.getModifiers() + \" }\";\n }\n });\n var Tool = PaperScopeItem.extend({\n _class: \"Tool\",\n _list: \"tools\",\n _reference: \"tool\",\n _events: [\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseDrag\",\n \"onMouseMove\",\n \"onActivate\",\n \"onDeactivate\",\n \"onEditOptions\",\n \"onKeyDown\",\n \"onKeyUp\"\n ],\n initialize: function Tool(props) {\n PaperScopeItem.call(this);\n this._moveCount = -1;\n this._downCount = -1;\n this.set(props);\n },\n getMinDistance: function() {\n return this._minDistance;\n },\n setMinDistance: function(minDistance) {\n this._minDistance = minDistance;\n if (minDistance != null && this._maxDistance != null && minDistance > this._maxDistance) this._maxDistance = minDistance;\n },\n getMaxDistance: function() {\n return this._maxDistance;\n },\n setMaxDistance: function(maxDistance) {\n this._maxDistance = maxDistance;\n if (this._minDistance != null && maxDistance != null && maxDistance < this._minDistance) this._minDistance = maxDistance;\n },\n getFixedDistance: function() {\n return this._minDistance == this._maxDistance ? this._minDistance : null;\n },\n setFixedDistance: function(distance) {\n this._minDistance = this._maxDistance = distance;\n },\n _handleMouseEvent: function(type, event, point, mouse) {\n paper = this._scope;\n if (mouse.drag && !this.responds(type)) type = \"mousemove\";\n var move = mouse.move || mouse.drag, responds = this.responds(type), called = false, tool = this;\n function update(minDistance, maxDistance) {\n var pt = point, toolPoint = move ? tool._point : tool._downPoint || pt;\n if (move) {\n if (tool._moveCount >= 0 && pt.equals(toolPoint)) return false;\n if (toolPoint && (minDistance != null || maxDistance != null)) {\n var vector = pt.subtract(toolPoint), distance = vector.getLength();\n if (distance < (minDistance || 0)) return false;\n if (maxDistance) pt = toolPoint.add(vector.normalize(Math.min(distance, maxDistance)));\n }\n tool._moveCount++;\n }\n tool._point = pt;\n tool._lastPoint = toolPoint || pt;\n if (mouse.down) {\n tool._moveCount = -1;\n tool._downPoint = pt;\n tool._downCount++;\n }\n return true;\n }\n function emit() {\n if (responds) called = tool.emit(type, new ToolEvent(tool, type, event)) || called;\n }\n if (mouse.down) {\n update();\n emit();\n } else if (mouse.up) {\n update(null, this._maxDistance);\n emit();\n } else if (responds) while(update(this._minDistance, this._maxDistance))emit();\n return called;\n }\n });\n var Tween = Base.extend(Emitter, {\n _class: \"Tween\",\n statics: {\n easings: new Base({\n linear: function(t) {\n return t;\n },\n easeInQuad: function(t) {\n return t * t;\n },\n easeOutQuad: function(t) {\n return t * (2 - t);\n },\n easeInOutQuad: function(t) {\n return t < 0.5 ? 2 * t * t : -1 + 2 * (2 - t) * t;\n },\n easeInCubic: function(t) {\n return t * t * t;\n },\n easeOutCubic: function(t) {\n return --t * t * t + 1;\n },\n easeInOutCubic: function(t) {\n return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;\n },\n easeInQuart: function(t) {\n return t * t * t * t;\n },\n easeOutQuart: function(t) {\n return 1 - --t * t * t * t;\n },\n easeInOutQuart: function(t) {\n return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;\n },\n easeInQuint: function(t) {\n return t * t * t * t * t;\n },\n easeOutQuint: function(t) {\n return 1 + --t * t * t * t * t;\n },\n easeInOutQuint: function(t) {\n return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;\n }\n })\n },\n initialize: function Tween(object, from, to, duration, easing, start) {\n this.object = object;\n var type = typeof easing;\n var isFunction = type === \"function\";\n this.type = isFunction ? type : type === \"string\" ? easing : \"linear\";\n this.easing = isFunction ? easing : Tween.easings[this.type];\n this.duration = duration;\n this.running = false;\n this._then = null;\n this._startTime = null;\n var state = from || to;\n this._keys = state ? Object.keys(state) : [];\n this._parsedKeys = this._parseKeys(this._keys);\n this._from = state && this._getState(from);\n this._to = state && this._getState(to);\n if (start !== false) this.start();\n },\n then: function(then) {\n this._then = then;\n return this;\n },\n start: function() {\n this._startTime = null;\n this.running = true;\n return this;\n },\n stop: function() {\n this.running = false;\n return this;\n },\n update: function(progress) {\n if (this.running) {\n if (progress >= 1) {\n progress = 1;\n this.running = false;\n }\n var factor = this.easing(progress), keys = this._keys, getValue = function(value) {\n return typeof value === \"function\" ? value(factor, progress) : value;\n };\n for(var i = 0, l = keys && keys.length; i < l; i++){\n var key = keys[i], from = getValue(this._from[key]), to = getValue(this._to[key]), value = from && to && from.__add && to.__add ? to.__subtract(from).__multiply(factor).__add(from) : (to - from) * factor + from;\n this._setProperty(this._parsedKeys[key], value);\n }\n if (this.responds(\"update\")) this.emit(\"update\", new Base({\n progress: progress,\n factor: factor\n }));\n if (!this.running && this._then) this._then(this.object);\n }\n return this;\n },\n _events: {\n onUpdate: {}\n },\n _handleFrame: function(time) {\n var startTime = this._startTime, progress = startTime ? (time - startTime) / this.duration : 0;\n if (!startTime) this._startTime = time;\n this.update(progress);\n },\n _getState: function(state) {\n var keys = this._keys, result = {};\n for(var i = 0, l = keys.length; i < l; i++){\n var key = keys[i], path = this._parsedKeys[key], current = this._getProperty(path), value;\n if (state) {\n var resolved = this._resolveValue(current, state[key]);\n this._setProperty(path, resolved);\n value = this._getProperty(path);\n value = value && value.clone ? value.clone() : value;\n this._setProperty(path, current);\n } else value = current && current.clone ? current.clone() : current;\n result[key] = value;\n }\n return result;\n },\n _resolveValue: function(current, value) {\n if (value) {\n if (Array.isArray(value) && value.length === 2) {\n var operator = value[0];\n return operator && operator.match && operator.match(/^[+\\-\\*\\/]=/) ? this._calculate(current, operator[0], value[1]) : value;\n } else if (typeof value === \"string\") {\n var match = value.match(/^[+\\-*/]=(.*)/);\n if (match) {\n var parsed = JSON.parse(match[1].replace(/(['\"])?([a-zA-Z0-9_]+)(['\"])?:/g, '\"$2\": '));\n return this._calculate(current, value[0], parsed);\n }\n }\n }\n return value;\n },\n _calculate: function(left, operator, right) {\n return paper.PaperScript.calculateBinary(left, operator, right);\n },\n _parseKeys: function(keys) {\n var parsed = {};\n for(var i = 0, l = keys.length; i < l; i++){\n var key = keys[i], path = key.replace(/\\.([^.]*)/g, \"/$1\").replace(/\\[['\"]?([^'\"\\]]*)['\"]?\\]/g, \"/$1\");\n parsed[key] = path.split(\"/\");\n }\n return parsed;\n },\n _getProperty: function(path, offset) {\n var obj = this.object;\n for(var i = 0, l = path.length - (offset || 0); i < l && obj; i++)obj = obj[path[i]];\n return obj;\n },\n _setProperty: function(path, value) {\n var dest = this._getProperty(path, 1);\n if (dest) dest[path[path.length - 1]] = value;\n }\n });\n var Http = {\n request: function(options) {\n var xhr = new self1.XMLHttpRequest();\n xhr.open((options.method || \"get\").toUpperCase(), options.url, Base.pick(options.async, true));\n if (options.mimeType) xhr.overrideMimeType(options.mimeType);\n xhr.onload = function() {\n var status = xhr.status;\n if (status === 0 || status === 200) {\n if (options.onLoad) options.onLoad.call(xhr, xhr.responseText);\n } else xhr.onerror();\n };\n xhr.onerror = function() {\n var status = xhr.status, message = 'Could not load \"' + options.url + '\" (Status: ' + status + \")\";\n if (options.onError) options.onError(message, status);\n else throw new Error(message);\n };\n return xhr.send(null);\n }\n };\n var CanvasProvider = Base.exports.CanvasProvider = {\n canvases: [],\n getCanvas: function(width, height, options) {\n if (!window) return null;\n var canvas, clear = true;\n if (typeof width === \"object\") {\n height = width.height;\n width = width.width;\n }\n if (this.canvases.length) canvas = this.canvases.pop();\n else {\n canvas = document.createElement(\"canvas\");\n clear = false;\n }\n var ctx = canvas.getContext(\"2d\", options || {});\n if (!ctx) throw new Error(\"Canvas \" + canvas + \" is unable to provide a 2D context.\");\n if (canvas.width === width && canvas.height === height) {\n if (clear) ctx.clearRect(0, 0, width + 1, height + 1);\n } else {\n canvas.width = width;\n canvas.height = height;\n }\n ctx.save();\n return canvas;\n },\n getContext: function(width, height, options) {\n var canvas = this.getCanvas(width, height, options);\n return canvas ? canvas.getContext(\"2d\", options || {}) : null;\n },\n release: function(obj) {\n var canvas = obj && obj.canvas ? obj.canvas : obj;\n if (canvas && canvas.getContext) {\n canvas.getContext(\"2d\").restore();\n this.canvases.push(canvas);\n }\n }\n };\n var BlendMode = new function() {\n var min = Math.min, max = Math.max, abs = Math.abs, sr, sg, sb, sa, br, bg, bb, ba, dr, dg, db;\n function getLum(r, g, b) {\n return 0.2989 * r + 0.587 * g + 0.114 * b;\n }\n function setLum(r, g, b, l) {\n var d = l - getLum(r, g, b);\n dr = r + d;\n dg = g + d;\n db = b + d;\n var l = getLum(dr, dg, db), mn = min(dr, dg, db), mx = max(dr, dg, db);\n if (mn < 0) {\n var lmn = l - mn;\n dr = l + (dr - l) * l / lmn;\n dg = l + (dg - l) * l / lmn;\n db = l + (db - l) * l / lmn;\n }\n if (mx > 255) {\n var ln = 255 - l, mxl = mx - l;\n dr = l + (dr - l) * ln / mxl;\n dg = l + (dg - l) * ln / mxl;\n db = l + (db - l) * ln / mxl;\n }\n }\n function getSat(r, g, b) {\n return max(r, g, b) - min(r, g, b);\n }\n function setSat(r, g, b, s) {\n var col = [\n r,\n g,\n b\n ], mx = max(r, g, b), mn = min(r, g, b), md;\n mn = mn === r ? 0 : mn === g ? 1 : 2;\n mx = mx === r ? 0 : mx === g ? 1 : 2;\n md = min(mn, mx) === 0 ? max(mn, mx) === 1 ? 2 : 1 : 0;\n if (col[mx] > col[mn]) {\n col[md] = (col[md] - col[mn]) * s / (col[mx] - col[mn]);\n col[mx] = s;\n } else col[md] = col[mx] = 0;\n col[mn] = 0;\n dr = col[0];\n dg = col[1];\n db = col[2];\n }\n var modes = {\n multiply: function() {\n dr = br * sr / 255;\n dg = bg * sg / 255;\n db = bb * sb / 255;\n },\n screen: function() {\n dr = br + sr - br * sr / 255;\n dg = bg + sg - bg * sg / 255;\n db = bb + sb - bb * sb / 255;\n },\n overlay: function() {\n dr = br < 128 ? 2 * br * sr / 255 : 255 - 2 * (255 - br) * (255 - sr) / 255;\n dg = bg < 128 ? 2 * bg * sg / 255 : 255 - 2 * (255 - bg) * (255 - sg) / 255;\n db = bb < 128 ? 2 * bb * sb / 255 : 255 - 2 * (255 - bb) * (255 - sb) / 255;\n },\n \"soft-light\": function() {\n var t = sr * br / 255;\n dr = t + br * (255 - (255 - br) * (255 - sr) / 255 - t) / 255;\n t = sg * bg / 255;\n dg = t + bg * (255 - (255 - bg) * (255 - sg) / 255 - t) / 255;\n t = sb * bb / 255;\n db = t + bb * (255 - (255 - bb) * (255 - sb) / 255 - t) / 255;\n },\n \"hard-light\": function() {\n dr = sr < 128 ? 2 * sr * br / 255 : 255 - 2 * (255 - sr) * (255 - br) / 255;\n dg = sg < 128 ? 2 * sg * bg / 255 : 255 - 2 * (255 - sg) * (255 - bg) / 255;\n db = sb < 128 ? 2 * sb * bb / 255 : 255 - 2 * (255 - sb) * (255 - bb) / 255;\n },\n \"color-dodge\": function() {\n dr = br === 0 ? 0 : sr === 255 ? 255 : min(255, 255 * br / (255 - sr));\n dg = bg === 0 ? 0 : sg === 255 ? 255 : min(255, 255 * bg / (255 - sg));\n db = bb === 0 ? 0 : sb === 255 ? 255 : min(255, 255 * bb / (255 - sb));\n },\n \"color-burn\": function() {\n dr = br === 255 ? 255 : sr === 0 ? 0 : max(0, 255 - (255 - br) * 255 / sr);\n dg = bg === 255 ? 255 : sg === 0 ? 0 : max(0, 255 - (255 - bg) * 255 / sg);\n db = bb === 255 ? 255 : sb === 0 ? 0 : max(0, 255 - (255 - bb) * 255 / sb);\n },\n darken: function() {\n dr = br < sr ? br : sr;\n dg = bg < sg ? bg : sg;\n db = bb < sb ? bb : sb;\n },\n lighten: function() {\n dr = br > sr ? br : sr;\n dg = bg > sg ? bg : sg;\n db = bb > sb ? bb : sb;\n },\n difference: function() {\n dr = br - sr;\n if (dr < 0) dr = -dr;\n dg = bg - sg;\n if (dg < 0) dg = -dg;\n db = bb - sb;\n if (db < 0) db = -db;\n },\n exclusion: function() {\n dr = br + sr * (255 - br - br) / 255;\n dg = bg + sg * (255 - bg - bg) / 255;\n db = bb + sb * (255 - bb - bb) / 255;\n },\n hue: function() {\n setSat(sr, sg, sb, getSat(br, bg, bb));\n setLum(dr, dg, db, getLum(br, bg, bb));\n },\n saturation: function() {\n setSat(br, bg, bb, getSat(sr, sg, sb));\n setLum(dr, dg, db, getLum(br, bg, bb));\n },\n luminosity: function() {\n setLum(br, bg, bb, getLum(sr, sg, sb));\n },\n color: function() {\n setLum(sr, sg, sb, getLum(br, bg, bb));\n },\n add: function() {\n dr = min(br + sr, 255);\n dg = min(bg + sg, 255);\n db = min(bb + sb, 255);\n },\n subtract: function() {\n dr = max(br - sr, 0);\n dg = max(bg - sg, 0);\n db = max(bb - sb, 0);\n },\n average: function() {\n dr = (br + sr) / 2;\n dg = (bg + sg) / 2;\n db = (bb + sb) / 2;\n },\n negation: function() {\n dr = 255 - abs(255 - sr - br);\n dg = 255 - abs(255 - sg - bg);\n db = 255 - abs(255 - sb - bb);\n }\n };\n var nativeModes = this.nativeModes = Base.each([\n \"source-over\",\n \"source-in\",\n \"source-out\",\n \"source-atop\",\n \"destination-over\",\n \"destination-in\",\n \"destination-out\",\n \"destination-atop\",\n \"lighter\",\n \"darker\",\n \"copy\",\n \"xor\"\n ], function(mode) {\n this[mode] = true;\n }, {});\n var ctx = CanvasProvider.getContext(1, 1, {\n willReadFrequently: true\n });\n if (ctx) {\n Base.each(modes, function(func, mode) {\n var darken = mode === \"darken\", ok = false;\n ctx.save();\n try {\n ctx.fillStyle = darken ? \"#300\" : \"#a00\";\n ctx.fillRect(0, 0, 1, 1);\n ctx.globalCompositeOperation = mode;\n if (ctx.globalCompositeOperation === mode) {\n ctx.fillStyle = darken ? \"#a00\" : \"#300\";\n ctx.fillRect(0, 0, 1, 1);\n ok = ctx.getImageData(0, 0, 1, 1).data[0] !== darken ? 170 : 51;\n }\n } catch (e) {}\n ctx.restore();\n nativeModes[mode] = ok;\n });\n CanvasProvider.release(ctx);\n }\n this.process = function(mode, srcContext, dstContext, alpha, offset) {\n var srcCanvas = srcContext.canvas, normal = mode === \"normal\";\n if (normal || nativeModes[mode]) {\n dstContext.save();\n dstContext.setTransform(1, 0, 0, 1, 0, 0);\n dstContext.globalAlpha = alpha;\n if (!normal) dstContext.globalCompositeOperation = mode;\n dstContext.drawImage(srcCanvas, offset.x, offset.y);\n dstContext.restore();\n } else {\n var process = modes[mode];\n if (!process) return;\n var dstData = dstContext.getImageData(offset.x, offset.y, srcCanvas.width, srcCanvas.height), dst = dstData.data, src = srcContext.getImageData(0, 0, srcCanvas.width, srcCanvas.height).data;\n for(var i = 0, l = dst.length; i < l; i += 4){\n sr = src[i];\n br = dst[i];\n sg = src[i + 1];\n bg = dst[i + 1];\n sb = src[i + 2];\n bb = dst[i + 2];\n sa = src[i + 3];\n ba = dst[i + 3];\n process();\n var a1 = sa * alpha / 255, a2 = 1 - a1;\n dst[i] = a1 * dr + a2 * br;\n dst[i + 1] = a1 * dg + a2 * bg;\n dst[i + 2] = a1 * db + a2 * bb;\n dst[i + 3] = sa * alpha + a2 * ba;\n }\n dstContext.putImageData(dstData, offset.x, offset.y);\n }\n };\n };\n var SvgElement = new function() {\n var svg = \"http://www.w3.org/2000/svg\", xmlns = \"http://www.w3.org/2000/xmlns\", xlink = \"http://www.w3.org/1999/xlink\", attributeNamespace = {\n href: xlink,\n xlink: xmlns,\n xmlns: xmlns + \"/\",\n \"xmlns:xlink\": xmlns + \"/\"\n };\n function create(tag, attributes, formatter) {\n return set(document.createElementNS(svg, tag), attributes, formatter);\n }\n function get(node, name) {\n var namespace = attributeNamespace[name], value = namespace ? node.getAttributeNS(namespace, name) : node.getAttribute(name);\n return value === \"null\" ? null : value;\n }\n function set(node, attributes, formatter) {\n for(var name in attributes){\n var value = attributes[name], namespace = attributeNamespace[name];\n if (typeof value === \"number\" && formatter) value = formatter.number(value);\n if (namespace) node.setAttributeNS(namespace, name, value);\n else node.setAttribute(name, value);\n }\n return node;\n }\n return {\n svg: svg,\n xmlns: xmlns,\n xlink: xlink,\n create: create,\n get: get,\n set: set\n };\n };\n var SvgStyles = Base.each({\n fillColor: [\n \"fill\",\n \"color\"\n ],\n fillRule: [\n \"fill-rule\",\n \"string\"\n ],\n strokeColor: [\n \"stroke\",\n \"color\"\n ],\n strokeWidth: [\n \"stroke-width\",\n \"number\"\n ],\n strokeCap: [\n \"stroke-linecap\",\n \"string\"\n ],\n strokeJoin: [\n \"stroke-linejoin\",\n \"string\"\n ],\n strokeScaling: [\n \"vector-effect\",\n \"lookup\",\n {\n true: \"none\",\n false: \"non-scaling-stroke\"\n },\n function(item, value) {\n return !value && (item instanceof PathItem || item instanceof Shape || item instanceof TextItem);\n }\n ],\n miterLimit: [\n \"stroke-miterlimit\",\n \"number\"\n ],\n dashArray: [\n \"stroke-dasharray\",\n \"array\"\n ],\n dashOffset: [\n \"stroke-dashoffset\",\n \"number\"\n ],\n fontFamily: [\n \"font-family\",\n \"string\"\n ],\n fontWeight: [\n \"font-weight\",\n \"string\"\n ],\n fontSize: [\n \"font-size\",\n \"number\"\n ],\n justification: [\n \"text-anchor\",\n \"lookup\",\n {\n left: \"start\",\n center: \"middle\",\n right: \"end\"\n }\n ],\n opacity: [\n \"opacity\",\n \"number\"\n ],\n blendMode: [\n \"mix-blend-mode\",\n \"style\"\n ]\n }, function(entry, key) {\n var part = Base.capitalize(key), lookup = entry[2];\n this[key] = {\n type: entry[1],\n property: key,\n attribute: entry[0],\n toSVG: lookup,\n fromSVG: lookup && Base.each(lookup, function(value, name) {\n this[value] = name;\n }, {}),\n exportFilter: entry[3],\n get: \"get\" + part,\n set: \"set\" + part\n };\n }, {});\n new function() {\n var formatter;\n function getTransform(matrix, coordinates, center) {\n var attrs = new Base(), trans = matrix.getTranslation();\n if (coordinates) {\n var point;\n if (matrix.isInvertible()) {\n matrix = matrix._shiftless();\n point = matrix._inverseTransform(trans);\n trans = null;\n } else point = new Point();\n attrs[center ? \"cx\" : \"x\"] = point.x;\n attrs[center ? \"cy\" : \"y\"] = point.y;\n }\n if (!matrix.isIdentity()) {\n var decomposed = matrix.decompose();\n if (decomposed) {\n var parts = [], angle = decomposed.rotation, scale = decomposed.scaling, skew = decomposed.skewing;\n if (trans && !trans.isZero()) parts.push(\"translate(\" + formatter.point(trans) + \")\");\n if (angle) parts.push(\"rotate(\" + formatter.number(angle) + \")\");\n if (!Numerical.isZero(scale.x - 1) || !Numerical.isZero(scale.y - 1)) parts.push(\"scale(\" + formatter.point(scale) + \")\");\n if (skew.x) parts.push(\"skewX(\" + formatter.number(skew.x) + \")\");\n if (skew.y) parts.push(\"skewY(\" + formatter.number(skew.y) + \")\");\n attrs.transform = parts.join(\" \");\n } else attrs.transform = \"matrix(\" + matrix.getValues().join(\",\") + \")\";\n }\n return attrs;\n }\n function exportGroup(item, options) {\n var attrs = getTransform(item._matrix), children = item._children;\n var node = SvgElement.create(\"g\", attrs, formatter);\n for(var i = 0, l = children.length; i < l; i++){\n var child = children[i];\n var childNode = exportSVG(child, options);\n if (childNode) {\n if (child.isClipMask()) {\n var clip = SvgElement.create(\"clipPath\");\n clip.appendChild(childNode);\n setDefinition(child, clip, \"clip\");\n SvgElement.set(node, {\n \"clip-path\": \"url(#\" + clip.id + \")\"\n });\n } else node.appendChild(childNode);\n }\n }\n return node;\n }\n function exportRaster(item, options) {\n var attrs = getTransform(item._matrix, true), size = item.getSize(), image = item.getImage();\n attrs.x -= size.width / 2;\n attrs.y -= size.height / 2;\n attrs.width = size.width;\n attrs.height = size.height;\n attrs.href = options.embedImages == false && image && image.src || item.toDataURL();\n return SvgElement.create(\"image\", attrs, formatter);\n }\n function exportPath(item, options) {\n var matchShapes = options.matchShapes;\n if (matchShapes) {\n var shape = item.toShape(false);\n if (shape) return exportShape(shape, options);\n }\n var segments = item._segments, length = segments.length, type, attrs = getTransform(item._matrix);\n if (matchShapes && length >= 2 && !item.hasHandles()) {\n if (length > 2) {\n type = item._closed ? \"polygon\" : \"polyline\";\n var parts = [];\n for(var i = 0; i < length; i++)parts.push(formatter.point(segments[i]._point));\n attrs.points = parts.join(\" \");\n } else {\n type = \"line\";\n var start = segments[0]._point, end = segments[1]._point;\n attrs.set({\n x1: start.x,\n y1: start.y,\n x2: end.x,\n y2: end.y\n });\n }\n } else {\n type = \"path\";\n attrs.d = item.getPathData(null, options.precision);\n }\n return SvgElement.create(type, attrs, formatter);\n }\n function exportShape(item) {\n var type = item._type, radius = item._radius, attrs = getTransform(item._matrix, true, type !== \"rectangle\");\n if (type === \"rectangle\") {\n type = \"rect\";\n var size = item._size, width = size.width, height = size.height;\n attrs.x -= width / 2;\n attrs.y -= height / 2;\n attrs.width = width;\n attrs.height = height;\n if (radius.isZero()) radius = null;\n }\n if (radius) {\n if (type === \"circle\") attrs.r = radius;\n else {\n attrs.rx = radius.width;\n attrs.ry = radius.height;\n }\n }\n return SvgElement.create(type, attrs, formatter);\n }\n function exportCompoundPath(item, options) {\n var attrs = getTransform(item._matrix);\n var data = item.getPathData(null, options.precision);\n if (data) attrs.d = data;\n return SvgElement.create(\"path\", attrs, formatter);\n }\n function exportSymbolItem(item, options) {\n var attrs = getTransform(item._matrix, true), definition = item._definition, node = getDefinition(definition, \"symbol\"), definitionItem = definition._item, bounds = definitionItem.getStrokeBounds();\n if (!node) {\n node = SvgElement.create(\"symbol\", {\n viewBox: formatter.rectangle(bounds)\n });\n node.appendChild(exportSVG(definitionItem, options));\n setDefinition(definition, node, \"symbol\");\n }\n attrs.href = \"#\" + node.id;\n attrs.x += bounds.x;\n attrs.y += bounds.y;\n attrs.width = bounds.width;\n attrs.height = bounds.height;\n attrs.overflow = \"visible\";\n return SvgElement.create(\"use\", attrs, formatter);\n }\n function exportGradient(color) {\n var gradientNode = getDefinition(color, \"color\");\n if (!gradientNode) {\n var gradient = color.getGradient(), radial = gradient._radial, origin = color.getOrigin(), destination = color.getDestination(), attrs;\n if (radial) {\n attrs = {\n cx: origin.x,\n cy: origin.y,\n r: origin.getDistance(destination)\n };\n var highlight = color.getHighlight();\n if (highlight) {\n attrs.fx = highlight.x;\n attrs.fy = highlight.y;\n }\n } else attrs = {\n x1: origin.x,\n y1: origin.y,\n x2: destination.x,\n y2: destination.y\n };\n attrs.gradientUnits = \"userSpaceOnUse\";\n gradientNode = SvgElement.create((radial ? \"radial\" : \"linear\") + \"Gradient\", attrs, formatter);\n var stops = gradient._stops;\n for(var i = 0, l = stops.length; i < l; i++){\n var stop = stops[i], stopColor = stop._color, alpha = stopColor.getAlpha(), offset = stop._offset;\n attrs = {\n offset: offset == null ? i / (l - 1) : offset\n };\n if (stopColor) attrs[\"stop-color\"] = stopColor.toCSS(true);\n if (alpha < 1) attrs[\"stop-opacity\"] = alpha;\n gradientNode.appendChild(SvgElement.create(\"stop\", attrs, formatter));\n }\n setDefinition(color, gradientNode, \"color\");\n }\n return \"url(#\" + gradientNode.id + \")\";\n }\n function exportText(item) {\n var node = SvgElement.create(\"text\", getTransform(item._matrix, true), formatter);\n node.textContent = item._content;\n return node;\n }\n var exporters = {\n Group: exportGroup,\n Layer: exportGroup,\n Raster: exportRaster,\n Path: exportPath,\n Shape: exportShape,\n CompoundPath: exportCompoundPath,\n SymbolItem: exportSymbolItem,\n PointText: exportText\n };\n function applyStyle(item, node, options, isRoot) {\n var attrs = {}, parent = !isRoot && item.getParent(), style = [];\n if (item._name != null) attrs.id = item._name;\n Base.each(SvgStyles, function(entry) {\n var get = entry.get, type = entry.type, value = item[get]();\n if (entry.exportFilter ? entry.exportFilter(item, value) : options.reduceAttributes == false || !parent || !Base.equals(parent[get](), value)) {\n if (type === \"color\" && value != null) {\n var alpha = value.getAlpha();\n if (alpha < 1) attrs[entry.attribute + \"-opacity\"] = alpha;\n }\n if (type === \"style\") style.push(entry.attribute + \": \" + value);\n else attrs[entry.attribute] = value == null ? \"none\" : type === \"color\" ? value.gradient ? exportGradient(value, item) : value.toCSS(true) : type === \"array\" ? value.join(\",\") : type === \"lookup\" ? entry.toSVG[value] : value;\n }\n });\n if (style.length) attrs.style = style.join(\";\");\n if (attrs.opacity === 1) delete attrs.opacity;\n if (!item._visible) attrs.visibility = \"hidden\";\n return SvgElement.set(node, attrs, formatter);\n }\n var definitions;\n function getDefinition(item, type) {\n if (!definitions) definitions = {\n ids: {},\n svgs: {}\n };\n return item && definitions.svgs[type + \"-\" + (item._id || item.__id || (item.__id = UID.get(\"svg\")))];\n }\n function setDefinition(item, node, type) {\n if (!definitions) getDefinition();\n var typeId = definitions.ids[type] = (definitions.ids[type] || 0) + 1;\n node.id = type + \"-\" + typeId;\n definitions.svgs[type + \"-\" + (item._id || item.__id)] = node;\n }\n function exportDefinitions(node, options) {\n var svg = node, defs = null;\n if (definitions) {\n svg = node.nodeName.toLowerCase() === \"svg\" && node;\n for(var i in definitions.svgs){\n if (!defs) {\n if (!svg) {\n svg = SvgElement.create(\"svg\");\n svg.appendChild(node);\n }\n defs = svg.insertBefore(SvgElement.create(\"defs\"), svg.firstChild);\n }\n defs.appendChild(definitions.svgs[i]);\n }\n definitions = null;\n }\n return options.asString ? new self1.XMLSerializer().serializeToString(svg) : svg;\n }\n function exportSVG(item, options, isRoot) {\n var exporter = exporters[item._class], node = exporter && exporter(item, options);\n if (node) {\n var onExport = options.onExport;\n if (onExport) node = onExport(item, node, options) || node;\n var data = JSON.stringify(item._data);\n if (data && data !== \"{}\" && data !== \"null\") node.setAttribute(\"data-paper-data\", data);\n }\n return node && applyStyle(item, node, options, isRoot);\n }\n function setOptions(options) {\n if (!options) options = {};\n formatter = new Formatter(options.precision);\n return options;\n }\n Item.inject({\n exportSVG: function(options) {\n options = setOptions(options);\n return exportDefinitions(exportSVG(this, options, true), options);\n }\n });\n Project.inject({\n exportSVG: function(options) {\n options = setOptions(options);\n var children = this._children, view = this.getView(), bounds = Base.pick(options.bounds, \"view\"), mx = options.matrix || bounds === \"view\" && view._matrix, matrix = mx && Matrix.read([\n mx\n ]), rect = bounds === \"view\" ? new Rectangle([\n 0,\n 0\n ], view.getViewSize()) : bounds === \"content\" ? Item._getBounds(children, matrix, {\n stroke: true\n }).rect : Rectangle.read([\n bounds\n ], 0, {\n readNull: true\n }), attrs = {\n version: \"1.1\",\n xmlns: SvgElement.svg,\n \"xmlns:xlink\": SvgElement.xlink\n };\n if (rect) {\n attrs.width = rect.width;\n attrs.height = rect.height;\n if (rect.x || rect.x === 0 || rect.y || rect.y === 0) attrs.viewBox = formatter.rectangle(rect);\n }\n var node = SvgElement.create(\"svg\", attrs, formatter), parent = node;\n if (matrix && !matrix.isIdentity()) parent = node.appendChild(SvgElement.create(\"g\", getTransform(matrix), formatter));\n for(var i = 0, l = children.length; i < l; i++)parent.appendChild(exportSVG(children[i], options, true));\n return exportDefinitions(node, options);\n }\n });\n };\n new function() {\n var definitions = {}, rootSize;\n function getValue(node, name, isString, allowNull, allowPercent, defaultValue) {\n var value = SvgElement.get(node, name) || defaultValue, res = value == null ? allowNull ? null : isString ? \"\" : 0 : isString ? value : parseFloat(value);\n return /%\\s*$/.test(value) ? res / 100 * (allowPercent ? 1 : rootSize[/x|^width/.test(name) ? \"width\" : \"height\"]) : res;\n }\n function getPoint(node, x, y, allowNull, allowPercent, defaultX, defaultY) {\n x = getValue(node, x || \"x\", false, allowNull, allowPercent, defaultX);\n y = getValue(node, y || \"y\", false, allowNull, allowPercent, defaultY);\n return allowNull && (x == null || y == null) ? null : new Point(x, y);\n }\n function getSize(node, w, h, allowNull, allowPercent) {\n w = getValue(node, w || \"width\", false, allowNull, allowPercent);\n h = getValue(node, h || \"height\", false, allowNull, allowPercent);\n return allowNull && (w == null || h == null) ? null : new Size(w, h);\n }\n function convertValue(value, type, lookup) {\n return value === \"none\" ? null : type === \"number\" ? parseFloat(value) : type === \"array\" ? value ? value.split(/[\\s,]+/g).map(parseFloat) : [] : type === \"color\" ? getDefinition(value) || value : type === \"lookup\" ? lookup[value] : value;\n }\n function importGroup(node, type, options, isRoot) {\n var nodes = node.childNodes, isClip = type === \"clippath\", isDefs = type === \"defs\", item = new Group(), project = item._project, currentStyle = project._currentStyle, children = [];\n if (!isClip && !isDefs) {\n item = applyAttributes(item, node, isRoot);\n project._currentStyle = item._style.clone();\n }\n if (isRoot) {\n var defs = node.querySelectorAll(\"defs\");\n for(var i = 0, l = defs.length; i < l; i++)importNode(defs[i], options, false);\n }\n for(var i = 0, l = nodes.length; i < l; i++){\n var childNode = nodes[i], child;\n if (childNode.nodeType === 1 && !/^defs$/i.test(childNode.nodeName) && (child = importNode(childNode, options, false)) && !(child instanceof SymbolDefinition)) children.push(child);\n }\n item.addChildren(children);\n if (isClip) item = applyAttributes(item.reduce(), node, isRoot);\n project._currentStyle = currentStyle;\n if (isClip || isDefs) {\n item.remove();\n item = null;\n }\n return item;\n }\n function importPoly(node, type) {\n var coords = node.getAttribute(\"points\").match(/[+-]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?/g), points = [];\n for(var i = 0, l = coords.length; i < l; i += 2)points.push(new Point(parseFloat(coords[i]), parseFloat(coords[i + 1])));\n var path = new Path(points);\n if (type === \"polygon\") path.closePath();\n return path;\n }\n function importPath(node) {\n return PathItem.create(node.getAttribute(\"d\"));\n }\n function importGradient(node, type) {\n var id = (getValue(node, \"href\", true) || \"\").substring(1), radial = type === \"radialgradient\", gradient;\n if (id) {\n gradient = definitions[id].getGradient();\n if (gradient._radial ^ radial) {\n gradient = gradient.clone();\n gradient._radial = radial;\n }\n } else {\n var nodes = node.childNodes, stops = [];\n for(var i = 0, l = nodes.length; i < l; i++){\n var child = nodes[i];\n if (child.nodeType === 1) stops.push(applyAttributes(new GradientStop(), child));\n }\n gradient = new Gradient(stops, radial);\n }\n var origin, destination, highlight, scaleToBounds = getValue(node, \"gradientUnits\", true) !== \"userSpaceOnUse\";\n if (radial) {\n origin = getPoint(node, \"cx\", \"cy\", false, scaleToBounds, \"50%\", \"50%\");\n destination = origin.add(getValue(node, \"r\", false, false, scaleToBounds, \"50%\"), 0);\n highlight = getPoint(node, \"fx\", \"fy\", true, scaleToBounds);\n } else {\n origin = getPoint(node, \"x1\", \"y1\", false, scaleToBounds, \"0%\", \"0%\");\n destination = getPoint(node, \"x2\", \"y2\", false, scaleToBounds, \"100%\", \"0%\");\n }\n var color = applyAttributes(new Color(gradient, origin, destination, highlight), node);\n color._scaleToBounds = scaleToBounds;\n return null;\n }\n var importers = {\n \"#document\": function(node, type, options, isRoot) {\n var nodes = node.childNodes;\n for(var i = 0, l = nodes.length; i < l; i++){\n var child = nodes[i];\n if (child.nodeType === 1) return importNode(child, options, isRoot);\n }\n },\n g: importGroup,\n svg: importGroup,\n clippath: importGroup,\n polygon: importPoly,\n polyline: importPoly,\n path: importPath,\n lineargradient: importGradient,\n radialgradient: importGradient,\n image: function(node) {\n var raster = new Raster(getValue(node, \"href\", true));\n raster.on(\"load\", function() {\n var size = getSize(node);\n this.setSize(size);\n var center = getPoint(node).add(size.divide(2));\n this._matrix.append(new Matrix().translate(center));\n });\n return raster;\n },\n symbol: function(node, type, options, isRoot) {\n return new SymbolDefinition(importGroup(node, type, options, isRoot), true);\n },\n defs: importGroup,\n use: function(node) {\n var id = (getValue(node, \"href\", true) || \"\").substring(1), definition = definitions[id], point = getPoint(node);\n return definition ? definition instanceof SymbolDefinition ? definition.place(point) : definition.clone().translate(point) : null;\n },\n circle: function(node) {\n return new Shape.Circle(getPoint(node, \"cx\", \"cy\"), getValue(node, \"r\"));\n },\n ellipse: function(node) {\n return new Shape.Ellipse({\n center: getPoint(node, \"cx\", \"cy\"),\n radius: getSize(node, \"rx\", \"ry\")\n });\n },\n rect: function(node) {\n return new Shape.Rectangle(new Rectangle(getPoint(node), getSize(node)), getSize(node, \"rx\", \"ry\"));\n },\n line: function(node) {\n return new Path.Line(getPoint(node, \"x1\", \"y1\"), getPoint(node, \"x2\", \"y2\"));\n },\n text: function(node) {\n var text = new PointText(getPoint(node).add(getPoint(node, \"dx\", \"dy\")));\n text.setContent(node.textContent.trim() || \"\");\n return text;\n },\n switch: importGroup\n };\n function applyTransform(item, value, name, node) {\n if (item.transform) {\n var transforms = (node.getAttribute(name) || \"\").split(/\\)\\s*/g), matrix = new Matrix();\n for(var i = 0, l = transforms.length; i < l; i++){\n var transform = transforms[i];\n if (!transform) break;\n var parts = transform.split(/\\(\\s*/), command = parts[0].trim(), v = parts[1].split(/[\\s,]+/g);\n for(var j = 0, m = v.length; j < m; j++)v[j] = parseFloat(v[j]);\n switch(command){\n case \"matrix\":\n matrix.append(new Matrix(v[0], v[1], v[2], v[3], v[4], v[5]));\n break;\n case \"rotate\":\n matrix.rotate(v[0], v[1] || 0, v[2] || 0);\n break;\n case \"translate\":\n matrix.translate(v[0], v[1] || 0);\n break;\n case \"scale\":\n matrix.scale(v);\n break;\n case \"skewX\":\n matrix.skew(v[0], 0);\n break;\n case \"skewY\":\n matrix.skew(0, v[0]);\n break;\n }\n }\n item.transform(matrix);\n }\n }\n function applyOpacity(item, value, name) {\n var key = name === \"fill-opacity\" ? \"getFillColor\" : \"getStrokeColor\", color = item[key] && item[key]();\n if (color) color.setAlpha(parseFloat(value));\n }\n var attributes = Base.set(Base.each(SvgStyles, function(entry) {\n this[entry.attribute] = function(item, value) {\n if (item[entry.set]) {\n item[entry.set](convertValue(value, entry.type, entry.fromSVG));\n if (entry.type === \"color\") {\n var color = item[entry.get]();\n if (color) {\n if (color._scaleToBounds) {\n var bounds = item.getBounds();\n color.transform(new Matrix().translate(bounds.getPoint()).scale(bounds.getSize()));\n }\n }\n }\n }\n };\n }, {}), {\n id: function(item, value) {\n definitions[value] = item;\n if (item.setName) item.setName(value);\n },\n \"clip-path\": function(item, value) {\n var clip = getDefinition(value);\n if (clip) {\n clip = clip.clone();\n clip.setClipMask(true);\n if (item instanceof Group) item.insertChild(0, clip);\n else return new Group(clip, item);\n }\n },\n gradientTransform: applyTransform,\n transform: applyTransform,\n \"fill-opacity\": applyOpacity,\n \"stroke-opacity\": applyOpacity,\n visibility: function(item, value) {\n if (item.setVisible) item.setVisible(value === \"visible\");\n },\n display: function(item, value) {\n if (item.setVisible) item.setVisible(value !== null);\n },\n \"stop-color\": function(item, value) {\n if (item.setColor) item.setColor(value);\n },\n \"stop-opacity\": function(item, value) {\n if (item._color) item._color.setAlpha(parseFloat(value));\n },\n offset: function(item, value) {\n if (item.setOffset) {\n var percent = value.match(/(.*)%$/);\n item.setOffset(percent ? percent[1] / 100 : parseFloat(value));\n }\n },\n viewBox: function(item, value, name, node, styles) {\n var rect = new Rectangle(convertValue(value, \"array\")), size = getSize(node, null, null, true), group, matrix;\n if (item instanceof Group) {\n var scale = size ? size.divide(rect.getSize()) : 1, matrix = new Matrix().scale(scale).translate(rect.getPoint().negate());\n group = item;\n } else if (item instanceof SymbolDefinition) {\n if (size) rect.setSize(size);\n group = item._item;\n }\n if (group) {\n if (getAttribute(node, \"overflow\", styles) !== \"visible\") {\n var clip = new Shape.Rectangle(rect);\n clip.setClipMask(true);\n group.addChild(clip);\n }\n if (matrix) group.transform(matrix);\n }\n }\n });\n function getAttribute(node, name, styles) {\n var attr = node.attributes[name], value = attr && attr.value;\n if (!value && node.style) {\n var style = Base.camelize(name);\n value = node.style[style];\n if (!value && styles.node[style] !== styles.parent[style]) value = styles.node[style];\n }\n return !value ? undefined : value === \"none\" ? null : value;\n }\n function applyAttributes(item, node, isRoot) {\n var parent = node.parentNode, styles = {\n node: DomElement.getStyles(node) || {},\n parent: !isRoot && !/^defs$/i.test(parent.tagName) && DomElement.getStyles(parent) || {}\n };\n Base.each(attributes, function(apply, name) {\n var value = getAttribute(node, name, styles);\n item = value !== undefined && apply(item, value, name, node, styles) || item;\n });\n return item;\n }\n function getDefinition(value) {\n var match = value && value.match(/\\((?:[\"'#]*)([^\"')]+)/), name = match && match[1], res = name && definitions[window ? name.replace(window.location.href.split(\"#\")[0] + \"#\", \"\") : name];\n if (res && res._scaleToBounds) {\n res = res.clone();\n res._scaleToBounds = true;\n }\n return res;\n }\n function importNode(node, options, isRoot) {\n var type = node.nodeName.toLowerCase(), isElement = type !== \"#document\", body = document.body, container, parent, next;\n if (isRoot && isElement) {\n rootSize = paper.getView().getSize();\n rootSize = getSize(node, null, null, true) || rootSize;\n container = SvgElement.create(\"svg\", {\n style: \"stroke-width: 1px; stroke-miterlimit: 10\"\n });\n parent = node.parentNode;\n next = node.nextSibling;\n container.appendChild(node);\n body.appendChild(container);\n }\n var settings = paper.settings, applyMatrix = settings.applyMatrix, insertItems = settings.insertItems;\n settings.applyMatrix = false;\n settings.insertItems = false;\n var importer = importers[type], item = importer && importer(node, type, options, isRoot) || null;\n settings.insertItems = insertItems;\n settings.applyMatrix = applyMatrix;\n if (item) {\n if (isElement && !(item instanceof Group)) item = applyAttributes(item, node, isRoot);\n var onImport = options.onImport, data = isElement && node.getAttribute(\"data-paper-data\");\n if (onImport) item = onImport(node, item, options) || item;\n if (options.expandShapes && item instanceof Shape) {\n item.remove();\n item = item.toPath();\n }\n if (data) item._data = JSON.parse(data);\n }\n if (container) {\n body.removeChild(container);\n if (parent) {\n if (next) parent.insertBefore(node, next);\n else parent.appendChild(node);\n }\n }\n if (isRoot) {\n definitions = {};\n if (item && Base.pick(options.applyMatrix, applyMatrix)) item.matrix.apply(true, true);\n }\n return item;\n }\n function importSVG(source, options, owner) {\n if (!source) return null;\n options = typeof options === \"function\" ? {\n onLoad: options\n } : options || {};\n var scope = paper, item = null;\n function onLoad(svg) {\n try {\n var node = typeof svg === \"object\" ? svg : new self1.DOMParser().parseFromString(svg.trim(), \"image/svg+xml\");\n if (!node.nodeName) {\n node = null;\n throw new Error(\"Unsupported SVG source: \" + source);\n }\n paper = scope;\n item = importNode(node, options, true);\n if (!options || options.insert !== false) owner._insertItem(undefined, item);\n var onLoad = options.onLoad;\n if (onLoad) onLoad(item, svg);\n } catch (e) {\n onError(e);\n }\n }\n function onError(message, status) {\n var onError = options.onError;\n if (onError) onError(message, status);\n else throw new Error(message);\n }\n if (typeof source === \"string\" && !/^[\\s\\S]* 3) {\n cats.sort(function(a, b) {\n return b.length - a.length;\n });\n f += \"switch(str.length){\";\n for(var i = 0; i < cats.length; ++i){\n var cat = cats[i];\n f += \"case \" + cat[0].length + \":\";\n compareTo(cat);\n }\n f += \"}\";\n } else compareTo(words);\n return new Function(\"str\", f);\n }\n var isReservedWord3 = makePredicate(\"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\");\n var isReservedWord5 = makePredicate(\"class enum extends super const export import\");\n var isStrictReservedWord = makePredicate(\"implements interface let package private protected public static yield\");\n var isStrictBadIdWord = makePredicate(\"eval arguments\");\n var isKeyword = makePredicate(\"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\");\n var nonASCIIwhitespace = /[\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/;\n var nonASCIIidentifierStartChars = \"\\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\";\n var nonASCIIidentifierChars = \"\\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\";\n var nonASCIIidentifierStart = new RegExp(\"[\" + nonASCIIidentifierStartChars + \"]\");\n var nonASCIIidentifier = new RegExp(\"[\" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + \"]\");\n var newline = /[\\n\\r\\u2028\\u2029]/;\n var lineBreak = /\\r\\n|[\\n\\r\\u2028\\u2029]/g;\n var isIdentifierStart = exports.isIdentifierStart = function(code) {\n if (code < 65) return code === 36;\n if (code < 91) return true;\n if (code < 97) return code === 95;\n if (code < 123) return true;\n return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));\n };\n var isIdentifierChar = exports.isIdentifierChar = function(code) {\n if (code < 48) return code === 36;\n if (code < 58) return true;\n if (code < 65) return false;\n if (code < 91) return true;\n if (code < 97) return code === 95;\n if (code < 123) return true;\n return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));\n };\n function line_loc_t() {\n this.line = tokCurLine;\n this.column = tokPos - tokLineStart;\n }\n function initTokenState() {\n tokCurLine = 1;\n tokPos = tokLineStart = 0;\n tokRegexpAllowed = true;\n skipSpace();\n }\n function finishToken(type, val) {\n tokEnd = tokPos;\n if (options.locations) tokEndLoc = new line_loc_t;\n tokType = type;\n skipSpace();\n tokVal = val;\n tokRegexpAllowed = type.beforeExpr;\n }\n function skipBlockComment() {\n var startLoc = options.onComment && options.locations && new line_loc_t;\n var start = tokPos, end = input.indexOf(\"*/\", tokPos += 2);\n if (end === -1) raise(tokPos - 2, \"Unterminated comment\");\n tokPos = end + 2;\n if (options.locations) {\n lineBreak.lastIndex = start;\n var match;\n while((match = lineBreak.exec(input)) && match.index < tokPos){\n ++tokCurLine;\n tokLineStart = match.index + match[0].length;\n }\n }\n if (options.onComment) options.onComment(true, input.slice(start + 2, end), start, tokPos, startLoc, options.locations && new line_loc_t);\n }\n function skipLineComment() {\n var start = tokPos;\n var startLoc = options.onComment && options.locations && new line_loc_t;\n var ch = input.charCodeAt(tokPos += 2);\n while(tokPos < inputLen && ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233){\n ++tokPos;\n ch = input.charCodeAt(tokPos);\n }\n if (options.onComment) options.onComment(false, input.slice(start + 2, tokPos), start, tokPos, startLoc, options.locations && new line_loc_t);\n }\n function skipSpace() {\n while(tokPos < inputLen){\n var ch = input.charCodeAt(tokPos);\n if (ch === 32) ++tokPos;\n else if (ch === 13) {\n ++tokPos;\n var next = input.charCodeAt(tokPos);\n if (next === 10) ++tokPos;\n if (options.locations) {\n ++tokCurLine;\n tokLineStart = tokPos;\n }\n } else if (ch === 10 || ch === 8232 || ch === 8233) {\n ++tokPos;\n if (options.locations) {\n ++tokCurLine;\n tokLineStart = tokPos;\n }\n } else if (ch > 8 && ch < 14) ++tokPos;\n else if (ch === 47) {\n var next = input.charCodeAt(tokPos + 1);\n if (next === 42) skipBlockComment();\n else if (next === 47) skipLineComment();\n else break;\n } else if (ch === 160) ++tokPos;\n else if (ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) ++tokPos;\n else break;\n }\n }\n function readToken_dot() {\n var next = input.charCodeAt(tokPos + 1);\n if (next >= 48 && next <= 57) return readNumber(true);\n ++tokPos;\n return finishToken(_dot);\n }\n function readToken_slash() {\n var next = input.charCodeAt(tokPos + 1);\n if (tokRegexpAllowed) {\n ++tokPos;\n return readRegexp();\n }\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(_slash, 1);\n }\n function readToken_mult_modulo() {\n var next = input.charCodeAt(tokPos + 1);\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(_multiplyModulo, 1);\n }\n function readToken_pipe_amp(code) {\n var next = input.charCodeAt(tokPos + 1);\n if (next === code) return finishOp(code === 124 ? _logicalOR : _logicalAND, 2);\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(code === 124 ? _bitwiseOR : _bitwiseAND, 1);\n }\n function readToken_caret() {\n var next = input.charCodeAt(tokPos + 1);\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(_bitwiseXOR, 1);\n }\n function readToken_plus_min(code) {\n var next = input.charCodeAt(tokPos + 1);\n if (next === code) {\n if (next == 45 && input.charCodeAt(tokPos + 2) == 62 && newline.test(input.slice(lastEnd, tokPos))) {\n tokPos += 3;\n skipLineComment();\n skipSpace();\n return readToken();\n }\n return finishOp(_incDec, 2);\n }\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(_plusMin, 1);\n }\n function readToken_lt_gt(code) {\n var next = input.charCodeAt(tokPos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && input.charCodeAt(tokPos + 2) === 62 ? 3 : 2;\n if (input.charCodeAt(tokPos + size) === 61) return finishOp(_assign, size + 1);\n return finishOp(_bitShift, size);\n }\n if (next == 33 && code == 60 && input.charCodeAt(tokPos + 2) == 45 && input.charCodeAt(tokPos + 3) == 45) {\n tokPos += 4;\n skipLineComment();\n skipSpace();\n return readToken();\n }\n if (next === 61) size = input.charCodeAt(tokPos + 2) === 61 ? 3 : 2;\n return finishOp(_relational, size);\n }\n function readToken_eq_excl(code) {\n var next = input.charCodeAt(tokPos + 1);\n if (next === 61) return finishOp(_equality, input.charCodeAt(tokPos + 2) === 61 ? 3 : 2);\n return finishOp(code === 61 ? _eq : _prefix, 1);\n }\n function getTokenFromCode(code) {\n switch(code){\n case 46:\n return readToken_dot();\n case 40:\n ++tokPos;\n return finishToken(_parenL);\n case 41:\n ++tokPos;\n return finishToken(_parenR);\n case 59:\n ++tokPos;\n return finishToken(_semi);\n case 44:\n ++tokPos;\n return finishToken(_comma);\n case 91:\n ++tokPos;\n return finishToken(_bracketL);\n case 93:\n ++tokPos;\n return finishToken(_bracketR);\n case 123:\n ++tokPos;\n return finishToken(_braceL);\n case 125:\n ++tokPos;\n return finishToken(_braceR);\n case 58:\n ++tokPos;\n return finishToken(_colon);\n case 63:\n ++tokPos;\n return finishToken(_question);\n case 48:\n var next = input.charCodeAt(tokPos + 1);\n if (next === 120 || next === 88) return readHexNumber();\n case 49:\n case 50:\n case 51:\n case 52:\n case 53:\n case 54:\n case 55:\n case 56:\n case 57:\n return readNumber(false);\n case 34:\n case 39:\n return readString(code);\n case 47:\n return readToken_slash(code);\n case 37:\n case 42:\n return readToken_mult_modulo();\n case 124:\n case 38:\n return readToken_pipe_amp(code);\n case 94:\n return readToken_caret();\n case 43:\n case 45:\n return readToken_plus_min(code);\n case 60:\n case 62:\n return readToken_lt_gt(code);\n case 61:\n case 33:\n return readToken_eq_excl(code);\n case 126:\n return finishOp(_prefix, 1);\n }\n return false;\n }\n function readToken(forceRegexp) {\n if (!forceRegexp) tokStart = tokPos;\n else tokPos = tokStart + 1;\n if (options.locations) tokStartLoc = new line_loc_t;\n if (forceRegexp) return readRegexp();\n if (tokPos >= inputLen) return finishToken(_eof);\n var code = input.charCodeAt(tokPos);\n if (isIdentifierStart(code) || code === 92) return readWord();\n var tok = getTokenFromCode(code);\n if (tok === false) {\n var ch = String.fromCharCode(code);\n if (ch === \"\\\\\" || nonASCIIidentifierStart.test(ch)) return readWord();\n raise(tokPos, \"Unexpected character '\" + ch + \"'\");\n }\n return tok;\n }\n function finishOp(type, size) {\n var str = input.slice(tokPos, tokPos + size);\n tokPos += size;\n finishToken(type, str);\n }\n function readRegexp() {\n var content = \"\", escaped, inClass, start = tokPos;\n for(;;){\n if (tokPos >= inputLen) raise(start, \"Unterminated regular expression\");\n var ch = input.charAt(tokPos);\n if (newline.test(ch)) raise(start, \"Unterminated regular expression\");\n if (!escaped) {\n if (ch === \"[\") inClass = true;\n else if (ch === \"]\" && inClass) inClass = false;\n else if (ch === \"/\" && !inClass) break;\n escaped = ch === \"\\\\\";\n } else escaped = false;\n ++tokPos;\n }\n var content = input.slice(start, tokPos);\n ++tokPos;\n var mods = readWord1();\n if (mods && !/^[gmsiy]*$/.test(mods)) raise(start, \"Invalid regexp flag\");\n try {\n var value = new RegExp(content, mods);\n } catch (e) {\n if (e instanceof SyntaxError) raise(start, e.message);\n raise(e);\n }\n return finishToken(_regexp, value);\n }\n function readInt(radix, len) {\n var start = tokPos, total = 0;\n for(var i = 0, e = len == null ? Infinity : len; i < e; ++i){\n var code = input.charCodeAt(tokPos), val;\n if (code >= 97) val = code - 97 + 10;\n else if (code >= 65) val = code - 65 + 10;\n else if (code >= 48 && code <= 57) val = code - 48;\n else val = Infinity;\n if (val >= radix) break;\n ++tokPos;\n total = total * radix + val;\n }\n if (tokPos === start || len != null && tokPos - start !== len) return null;\n return total;\n }\n function readHexNumber() {\n tokPos += 2;\n var val = readInt(16);\n if (val == null) raise(tokStart + 2, \"Expected hexadecimal number\");\n if (isIdentifierStart(input.charCodeAt(tokPos))) raise(tokPos, \"Identifier directly after number\");\n return finishToken(_num, val);\n }\n function readNumber(startsWithDot) {\n var start = tokPos, isFloat = false, octal = input.charCodeAt(tokPos) === 48;\n if (!startsWithDot && readInt(10) === null) raise(start, \"Invalid number\");\n if (input.charCodeAt(tokPos) === 46) {\n ++tokPos;\n readInt(10);\n isFloat = true;\n }\n var next = input.charCodeAt(tokPos);\n if (next === 69 || next === 101) {\n next = input.charCodeAt(++tokPos);\n if (next === 43 || next === 45) ++tokPos;\n if (readInt(10) === null) raise(start, \"Invalid number\");\n isFloat = true;\n }\n if (isIdentifierStart(input.charCodeAt(tokPos))) raise(tokPos, \"Identifier directly after number\");\n var str = input.slice(start, tokPos), val;\n if (isFloat) val = parseFloat(str);\n else if (!octal || str.length === 1) val = parseInt(str, 10);\n else if (/[89]/.test(str) || strict) raise(start, \"Invalid number\");\n else val = parseInt(str, 8);\n return finishToken(_num, val);\n }\n function readString(quote) {\n tokPos++;\n var out = \"\";\n for(;;){\n if (tokPos >= inputLen) raise(tokStart, \"Unterminated string constant\");\n var ch = input.charCodeAt(tokPos);\n if (ch === quote) {\n ++tokPos;\n return finishToken(_string, out);\n }\n if (ch === 92) {\n ch = input.charCodeAt(++tokPos);\n var octal = /^[0-7]+/.exec(input.slice(tokPos, tokPos + 3));\n if (octal) octal = octal[0];\n while(octal && parseInt(octal, 8) > 255)octal = octal.slice(0, -1);\n if (octal === \"0\") octal = null;\n ++tokPos;\n if (octal) {\n if (strict) raise(tokPos - 2, \"Octal literal in strict mode\");\n out += String.fromCharCode(parseInt(octal, 8));\n tokPos += octal.length - 1;\n } else switch(ch){\n case 110:\n out += \"\\n\";\n break;\n case 114:\n out += \"\\r\";\n break;\n case 120:\n out += String.fromCharCode(readHexChar(2));\n break;\n case 117:\n out += String.fromCharCode(readHexChar(4));\n break;\n case 85:\n out += String.fromCharCode(readHexChar(8));\n break;\n case 116:\n out += \"\t\";\n break;\n case 98:\n out += \"\\b\";\n break;\n case 118:\n out += \"\\v\";\n break;\n case 102:\n out += \"\\f\";\n break;\n case 48:\n out += \"\\0\";\n break;\n case 13:\n if (input.charCodeAt(tokPos) === 10) ++tokPos;\n case 10:\n if (options.locations) {\n tokLineStart = tokPos;\n ++tokCurLine;\n }\n break;\n default:\n out += String.fromCharCode(ch);\n break;\n }\n } else {\n if (ch === 13 || ch === 10 || ch === 8232 || ch === 8233) raise(tokStart, \"Unterminated string constant\");\n out += String.fromCharCode(ch);\n ++tokPos;\n }\n }\n }\n function readHexChar(len) {\n var n = readInt(16, len);\n if (n === null) raise(tokStart, \"Bad character escape sequence\");\n return n;\n }\n var containsEsc;\n function readWord1() {\n containsEsc = false;\n var word, first = true, start = tokPos;\n for(;;){\n var ch = input.charCodeAt(tokPos);\n if (isIdentifierChar(ch)) {\n if (containsEsc) word += input.charAt(tokPos);\n ++tokPos;\n } else if (ch === 92) {\n if (!containsEsc) word = input.slice(start, tokPos);\n containsEsc = true;\n if (input.charCodeAt(++tokPos) != 117) raise(tokPos, \"Expecting Unicode escape sequence \\\\uXXXX\");\n ++tokPos;\n var esc = readHexChar(4);\n var escStr = String.fromCharCode(esc);\n if (!escStr) raise(tokPos - 1, \"Invalid Unicode escape\");\n if (!(first ? isIdentifierStart(esc) : isIdentifierChar(esc))) raise(tokPos - 4, \"Invalid Unicode escape\");\n word += escStr;\n } else break;\n first = false;\n }\n return containsEsc ? word : input.slice(start, tokPos);\n }\n function readWord() {\n var word = readWord1();\n var type = _name;\n if (!containsEsc && isKeyword(word)) type = keywordTypes[word];\n return finishToken(type, word);\n }\n function next() {\n lastStart = tokStart;\n lastEnd = tokEnd;\n lastEndLoc = tokEndLoc;\n readToken();\n }\n function setStrict(strct) {\n strict = strct;\n tokPos = tokStart;\n if (options.locations) while(tokPos < tokLineStart){\n tokLineStart = input.lastIndexOf(\"\\n\", tokLineStart - 2) + 1;\n --tokCurLine;\n }\n skipSpace();\n readToken();\n }\n function node_t() {\n this.type = null;\n this.start = tokStart;\n this.end = null;\n }\n function node_loc_t() {\n this.start = tokStartLoc;\n this.end = null;\n if (sourceFile !== null) this.source = sourceFile;\n }\n function startNode() {\n var node = new node_t();\n if (options.locations) node.loc = new node_loc_t();\n if (options.directSourceFile) node.sourceFile = options.directSourceFile;\n if (options.ranges) node.range = [\n tokStart,\n 0\n ];\n return node;\n }\n function startNodeFrom(other) {\n var node = new node_t();\n node.start = other.start;\n if (options.locations) {\n node.loc = new node_loc_t();\n node.loc.start = other.loc.start;\n }\n if (options.ranges) node.range = [\n other.range[0],\n 0\n ];\n return node;\n }\n function finishNode(node, type) {\n node.type = type;\n node.end = lastEnd;\n if (options.locations) node.loc.end = lastEndLoc;\n if (options.ranges) node.range[1] = lastEnd;\n return node;\n }\n function isUseStrict(stmt) {\n return options.ecmaVersion >= 5 && stmt.type === \"ExpressionStatement\" && stmt.expression.type === \"Literal\" && stmt.expression.value === \"use strict\";\n }\n function eat(type) {\n if (tokType === type) {\n next();\n return true;\n }\n }\n function canInsertSemicolon() {\n return !options.strictSemicolons && (tokType === _eof || tokType === _braceR || newline.test(input.slice(lastEnd, tokStart)));\n }\n function semicolon() {\n if (!eat(_semi) && !canInsertSemicolon()) unexpected();\n }\n function expect(type) {\n if (tokType === type) next();\n else unexpected();\n }\n function unexpected() {\n raise(tokStart, \"Unexpected token\");\n }\n function checkLVal(expr) {\n if (expr.type !== \"Identifier\" && expr.type !== \"MemberExpression\") raise(expr.start, \"Assigning to rvalue\");\n if (strict && expr.type === \"Identifier\" && isStrictBadIdWord(expr.name)) raise(expr.start, \"Assigning to \" + expr.name + \" in strict mode\");\n }\n function parseTopLevel(program) {\n lastStart = lastEnd = tokPos;\n if (options.locations) lastEndLoc = new line_loc_t;\n inFunction = strict = null;\n labels = [];\n readToken();\n var node = program || startNode(), first = true;\n if (!program) node.body = [];\n while(tokType !== _eof){\n var stmt = parseStatement();\n node.body.push(stmt);\n if (first && isUseStrict(stmt)) setStrict(true);\n first = false;\n }\n return finishNode(node, \"Program\");\n }\n var loopLabel = {\n kind: \"loop\"\n }, switchLabel = {\n kind: \"switch\"\n };\n function parseStatement() {\n if (tokType === _slash || tokType === _assign && tokVal == \"/=\") readToken(true);\n var starttype = tokType, node = startNode();\n switch(starttype){\n case _break:\n case _continue:\n next();\n var isBreak = starttype === _break;\n if (eat(_semi) || canInsertSemicolon()) node.label = null;\n else if (tokType !== _name) unexpected();\n else {\n node.label = parseIdent();\n semicolon();\n }\n for(var i = 0; i < labels.length; ++i){\n var lab = labels[i];\n if (node.label == null || lab.name === node.label.name) {\n if (lab.kind != null && (isBreak || lab.kind === \"loop\")) break;\n if (node.label && isBreak) break;\n }\n }\n if (i === labels.length) raise(node.start, \"Unsyntactic \" + starttype.keyword);\n return finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\");\n case _debugger:\n next();\n semicolon();\n return finishNode(node, \"DebuggerStatement\");\n case _do:\n next();\n labels.push(loopLabel);\n node.body = parseStatement();\n labels.pop();\n expect(_while);\n node.test = parseParenExpression();\n semicolon();\n return finishNode(node, \"DoWhileStatement\");\n case _for:\n next();\n labels.push(loopLabel);\n expect(_parenL);\n if (tokType === _semi) return parseFor(node, null);\n if (tokType === _var) {\n var init = startNode();\n next();\n parseVar(init, true);\n finishNode(init, \"VariableDeclaration\");\n if (init.declarations.length === 1 && eat(_in)) return parseForIn(node, init);\n return parseFor(node, init);\n }\n var init = parseExpression(false, true);\n if (eat(_in)) {\n checkLVal(init);\n return parseForIn(node, init);\n }\n return parseFor(node, init);\n case _function:\n next();\n return parseFunction(node, true);\n case _if:\n next();\n node.test = parseParenExpression();\n node.consequent = parseStatement();\n node.alternate = eat(_else) ? parseStatement() : null;\n return finishNode(node, \"IfStatement\");\n case _return:\n if (!inFunction && !options.allowReturnOutsideFunction) raise(tokStart, \"'return' outside of function\");\n next();\n if (eat(_semi) || canInsertSemicolon()) node.argument = null;\n else {\n node.argument = parseExpression();\n semicolon();\n }\n return finishNode(node, \"ReturnStatement\");\n case _switch:\n next();\n node.discriminant = parseParenExpression();\n node.cases = [];\n expect(_braceL);\n labels.push(switchLabel);\n for(var cur, sawDefault; tokType != _braceR;)if (tokType === _case || tokType === _default) {\n var isCase = tokType === _case;\n if (cur) finishNode(cur, \"SwitchCase\");\n node.cases.push(cur = startNode());\n cur.consequent = [];\n next();\n if (isCase) cur.test = parseExpression();\n else {\n if (sawDefault) raise(lastStart, \"Multiple default clauses\");\n sawDefault = true;\n cur.test = null;\n }\n expect(_colon);\n } else {\n if (!cur) unexpected();\n cur.consequent.push(parseStatement());\n }\n if (cur) finishNode(cur, \"SwitchCase\");\n next();\n labels.pop();\n return finishNode(node, \"SwitchStatement\");\n case _throw:\n next();\n if (newline.test(input.slice(lastEnd, tokStart))) raise(lastEnd, \"Illegal newline after throw\");\n node.argument = parseExpression();\n semicolon();\n return finishNode(node, \"ThrowStatement\");\n case _try:\n next();\n node.block = parseBlock();\n node.handler = null;\n if (tokType === _catch) {\n var clause = startNode();\n next();\n expect(_parenL);\n clause.param = parseIdent();\n if (strict && isStrictBadIdWord(clause.param.name)) raise(clause.param.start, \"Binding \" + clause.param.name + \" in strict mode\");\n expect(_parenR);\n clause.guard = null;\n clause.body = parseBlock();\n node.handler = finishNode(clause, \"CatchClause\");\n }\n node.guardedHandlers = empty;\n node.finalizer = eat(_finally) ? parseBlock() : null;\n if (!node.handler && !node.finalizer) raise(node.start, \"Missing catch or finally clause\");\n return finishNode(node, \"TryStatement\");\n case _var:\n next();\n parseVar(node);\n semicolon();\n return finishNode(node, \"VariableDeclaration\");\n case _while:\n next();\n node.test = parseParenExpression();\n labels.push(loopLabel);\n node.body = parseStatement();\n labels.pop();\n return finishNode(node, \"WhileStatement\");\n case _with:\n if (strict) raise(tokStart, \"'with' in strict mode\");\n next();\n node.object = parseParenExpression();\n node.body = parseStatement();\n return finishNode(node, \"WithStatement\");\n case _braceL:\n return parseBlock();\n case _semi:\n next();\n return finishNode(node, \"EmptyStatement\");\n default:\n var maybeName = tokVal, expr = parseExpression();\n if (starttype === _name && expr.type === \"Identifier\" && eat(_colon)) {\n for(var i = 0; i < labels.length; ++i)if (labels[i].name === maybeName) raise(expr.start, \"Label '\" + maybeName + \"' is already declared\");\n var kind = tokType.isLoop ? \"loop\" : tokType === _switch ? \"switch\" : null;\n labels.push({\n name: maybeName,\n kind: kind\n });\n node.body = parseStatement();\n labels.pop();\n node.label = expr;\n return finishNode(node, \"LabeledStatement\");\n } else {\n node.expression = expr;\n semicolon();\n return finishNode(node, \"ExpressionStatement\");\n }\n }\n }\n function parseParenExpression() {\n expect(_parenL);\n var val = parseExpression();\n expect(_parenR);\n return val;\n }\n function parseBlock(allowStrict) {\n var node = startNode(), first = true, strict = false, oldStrict;\n node.body = [];\n expect(_braceL);\n while(!eat(_braceR)){\n var stmt = parseStatement();\n node.body.push(stmt);\n if (first && allowStrict && isUseStrict(stmt)) {\n oldStrict = strict;\n setStrict(strict = true);\n }\n first = false;\n }\n if (strict && !oldStrict) setStrict(false);\n return finishNode(node, \"BlockStatement\");\n }\n function parseFor(node, init) {\n node.init = init;\n expect(_semi);\n node.test = tokType === _semi ? null : parseExpression();\n expect(_semi);\n node.update = tokType === _parenR ? null : parseExpression();\n expect(_parenR);\n node.body = parseStatement();\n labels.pop();\n return finishNode(node, \"ForStatement\");\n }\n function parseForIn(node, init) {\n node.left = init;\n node.right = parseExpression();\n expect(_parenR);\n node.body = parseStatement();\n labels.pop();\n return finishNode(node, \"ForInStatement\");\n }\n function parseVar(node, noIn) {\n node.declarations = [];\n node.kind = \"var\";\n for(;;){\n var decl = startNode();\n decl.id = parseIdent();\n if (strict && isStrictBadIdWord(decl.id.name)) raise(decl.id.start, \"Binding \" + decl.id.name + \" in strict mode\");\n decl.init = eat(_eq) ? parseExpression(true, noIn) : null;\n node.declarations.push(finishNode(decl, \"VariableDeclarator\"));\n if (!eat(_comma)) break;\n }\n return node;\n }\n function parseExpression(noComma, noIn) {\n var expr = parseMaybeAssign(noIn);\n if (!noComma && tokType === _comma) {\n var node = startNodeFrom(expr);\n node.expressions = [\n expr\n ];\n while(eat(_comma))node.expressions.push(parseMaybeAssign(noIn));\n return finishNode(node, \"SequenceExpression\");\n }\n return expr;\n }\n function parseMaybeAssign(noIn) {\n var left = parseMaybeConditional(noIn);\n if (tokType.isAssign) {\n var node = startNodeFrom(left);\n node.operator = tokVal;\n node.left = left;\n next();\n node.right = parseMaybeAssign(noIn);\n checkLVal(left);\n return finishNode(node, \"AssignmentExpression\");\n }\n return left;\n }\n function parseMaybeConditional(noIn) {\n var expr = parseExprOps(noIn);\n if (eat(_question)) {\n var node = startNodeFrom(expr);\n node.test = expr;\n node.consequent = parseExpression(true);\n expect(_colon);\n node.alternate = parseExpression(true, noIn);\n return finishNode(node, \"ConditionalExpression\");\n }\n return expr;\n }\n function parseExprOps(noIn) {\n return parseExprOp(parseMaybeUnary(), -1, noIn);\n }\n function parseExprOp(left, minPrec, noIn) {\n var prec = tokType.binop;\n if (prec != null && (!noIn || tokType !== _in)) {\n if (prec > minPrec) {\n var node = startNodeFrom(left);\n node.left = left;\n node.operator = tokVal;\n var op = tokType;\n next();\n node.right = parseExprOp(parseMaybeUnary(), prec, noIn);\n var exprNode = finishNode(node, op === _logicalOR || op === _logicalAND ? \"LogicalExpression\" : \"BinaryExpression\");\n return parseExprOp(exprNode, minPrec, noIn);\n }\n }\n return left;\n }\n function parseMaybeUnary() {\n if (tokType.prefix) {\n var node = startNode(), update = tokType.isUpdate;\n node.operator = tokVal;\n node.prefix = true;\n tokRegexpAllowed = true;\n next();\n node.argument = parseMaybeUnary();\n if (update) checkLVal(node.argument);\n else if (strict && node.operator === \"delete\" && node.argument.type === \"Identifier\") raise(node.start, \"Deleting local variable in strict mode\");\n return finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\");\n }\n var expr = parseExprSubscripts();\n while(tokType.postfix && !canInsertSemicolon()){\n var node = startNodeFrom(expr);\n node.operator = tokVal;\n node.prefix = false;\n node.argument = expr;\n checkLVal(expr);\n next();\n expr = finishNode(node, \"UpdateExpression\");\n }\n return expr;\n }\n function parseExprSubscripts() {\n return parseSubscripts(parseExprAtom());\n }\n function parseSubscripts(base, noCalls) {\n if (eat(_dot)) {\n var node = startNodeFrom(base);\n node.object = base;\n node.property = parseIdent(true);\n node.computed = false;\n return parseSubscripts(finishNode(node, \"MemberExpression\"), noCalls);\n } else if (eat(_bracketL)) {\n var node = startNodeFrom(base);\n node.object = base;\n node.property = parseExpression();\n node.computed = true;\n expect(_bracketR);\n return parseSubscripts(finishNode(node, \"MemberExpression\"), noCalls);\n } else if (!noCalls && eat(_parenL)) {\n var node = startNodeFrom(base);\n node.callee = base;\n node.arguments = parseExprList(_parenR, false);\n return parseSubscripts(finishNode(node, \"CallExpression\"), noCalls);\n } else return base;\n }\n function parseExprAtom() {\n switch(tokType){\n case _this:\n var node = startNode();\n next();\n return finishNode(node, \"ThisExpression\");\n case _name:\n return parseIdent();\n case _num:\n case _string:\n case _regexp:\n var node = startNode();\n node.value = tokVal;\n node.raw = input.slice(tokStart, tokEnd);\n next();\n return finishNode(node, \"Literal\");\n case _null:\n case _true:\n case _false:\n var node = startNode();\n node.value = tokType.atomValue;\n node.raw = tokType.keyword;\n next();\n return finishNode(node, \"Literal\");\n case _parenL:\n var tokStartLoc1 = tokStartLoc, tokStart1 = tokStart;\n next();\n var val = parseExpression();\n val.start = tokStart1;\n val.end = tokEnd;\n if (options.locations) {\n val.loc.start = tokStartLoc1;\n val.loc.end = tokEndLoc;\n }\n if (options.ranges) val.range = [\n tokStart1,\n tokEnd\n ];\n expect(_parenR);\n return val;\n case _bracketL:\n var node = startNode();\n next();\n node.elements = parseExprList(_bracketR, true, true);\n return finishNode(node, \"ArrayExpression\");\n case _braceL:\n return parseObj();\n case _function:\n var node = startNode();\n next();\n return parseFunction(node, false);\n case _new:\n return parseNew();\n default:\n unexpected();\n }\n }\n function parseNew() {\n var node = startNode();\n next();\n node.callee = parseSubscripts(parseExprAtom(), true);\n if (eat(_parenL)) node.arguments = parseExprList(_parenR, false);\n else node.arguments = empty;\n return finishNode(node, \"NewExpression\");\n }\n function parseObj() {\n var node = startNode(), first = true, sawGetSet = false;\n node.properties = [];\n next();\n while(!eat(_braceR)){\n if (!first) {\n expect(_comma);\n if (options.allowTrailingCommas && eat(_braceR)) break;\n } else first = false;\n var prop = {\n key: parsePropertyName()\n }, isGetSet = false, kind;\n if (eat(_colon)) {\n prop.value = parseExpression(true);\n kind = prop.kind = \"init\";\n } else if (options.ecmaVersion >= 5 && prop.key.type === \"Identifier\" && (prop.key.name === \"get\" || prop.key.name === \"set\")) {\n isGetSet = sawGetSet = true;\n kind = prop.kind = prop.key.name;\n prop.key = parsePropertyName();\n if (tokType !== _parenL) unexpected();\n prop.value = parseFunction(startNode(), false);\n } else unexpected();\n if (prop.key.type === \"Identifier\" && (strict || sawGetSet)) for(var i = 0; i < node.properties.length; ++i){\n var other = node.properties[i];\n if (other.key.name === prop.key.name) {\n var conflict = kind == other.kind || isGetSet && other.kind === \"init\" || kind === \"init\" && (other.kind === \"get\" || other.kind === \"set\");\n if (conflict && !strict && kind === \"init\" && other.kind === \"init\") conflict = false;\n if (conflict) raise(prop.key.start, \"Redefinition of property\");\n }\n }\n node.properties.push(prop);\n }\n return finishNode(node, \"ObjectExpression\");\n }\n function parsePropertyName() {\n if (tokType === _num || tokType === _string) return parseExprAtom();\n return parseIdent(true);\n }\n function parseFunction(node, isStatement) {\n if (tokType === _name) node.id = parseIdent();\n else if (isStatement) unexpected();\n else node.id = null;\n node.params = [];\n var first = true;\n expect(_parenL);\n while(!eat(_parenR)){\n if (!first) expect(_comma);\n else first = false;\n node.params.push(parseIdent());\n }\n var oldInFunc = inFunction, oldLabels = labels;\n inFunction = true;\n labels = [];\n node.body = parseBlock(true);\n inFunction = oldInFunc;\n labels = oldLabels;\n if (strict || node.body.body.length && isUseStrict(node.body.body[0])) for(var i = node.id ? -1 : 0; i < node.params.length; ++i){\n var id = i < 0 ? node.id : node.params[i];\n if (isStrictReservedWord(id.name) || isStrictBadIdWord(id.name)) raise(id.start, \"Defining '\" + id.name + \"' in strict mode\");\n if (i >= 0) {\n for(var j = 0; j < i; ++j)if (id.name === node.params[j].name) raise(id.start, \"Argument name clash in strict mode\");\n }\n }\n return finishNode(node, isStatement ? \"FunctionDeclaration\" : \"FunctionExpression\");\n }\n function parseExprList(close, allowTrailingComma, allowEmpty) {\n var elts = [], first = true;\n while(!eat(close)){\n if (!first) {\n expect(_comma);\n if (allowTrailingComma && options.allowTrailingCommas && eat(close)) break;\n } else first = false;\n if (allowEmpty && tokType === _comma) elts.push(null);\n else elts.push(parseExpression(true));\n }\n return elts;\n }\n function parseIdent(liberal) {\n var node = startNode();\n if (liberal && options.forbidReserved == \"everywhere\") liberal = false;\n if (tokType === _name) {\n if (!liberal && (options.forbidReserved && (options.ecmaVersion === 3 ? isReservedWord3 : isReservedWord5)(tokVal) || strict && isStrictReservedWord(tokVal)) && input.slice(tokStart, tokEnd).indexOf(\"\\\\\") == -1) raise(tokStart, \"The keyword '\" + tokVal + \"' is reserved\");\n node.name = tokVal;\n } else if (liberal && tokType.keyword) node.name = tokType.keyword;\n else unexpected();\n tokRegexpAllowed = false;\n next();\n return finishNode(node, \"Identifier\");\n }\n });\n if (!acorn.version) acorn = null;\n }\n function parse(code, options) {\n return (global.acorn || acorn).parse(code, options);\n }\n var binaryOperators = {\n \"+\": \"__add\",\n \"-\": \"__subtract\",\n \"*\": \"__multiply\",\n \"/\": \"__divide\",\n \"%\": \"__modulo\",\n \"==\": \"__equals\",\n \"!=\": \"__equals\"\n };\n var unaryOperators = {\n \"-\": \"__negate\",\n \"+\": \"__self\"\n };\n var fields = Base.each([\n \"add\",\n \"subtract\",\n \"multiply\",\n \"divide\",\n \"modulo\",\n \"equals\",\n \"negate\"\n ], function(name) {\n this[\"__\" + name] = \"#\" + name;\n }, {\n __self: function() {\n return this;\n }\n });\n Point.inject(fields);\n Size.inject(fields);\n Color.inject(fields);\n function __$__(left, operator, right) {\n var handler = binaryOperators[operator];\n if (left && left[handler]) {\n var res = left[handler](right);\n return operator === \"!=\" ? !res : res;\n }\n switch(operator){\n case \"+\":\n return left + right;\n case \"-\":\n return left - right;\n case \"*\":\n return left * right;\n case \"/\":\n return left / right;\n case \"%\":\n return left % right;\n case \"==\":\n return left == right;\n case \"!=\":\n return left != right;\n }\n }\n function $__(operator, value) {\n var handler = unaryOperators[operator];\n if (value && value[handler]) return value[handler]();\n switch(operator){\n case \"+\":\n return +value;\n case \"-\":\n return -value;\n }\n }\n function compile(code, options) {\n if (!code) return \"\";\n options = options || {};\n var insertions = [];\n function getOffset(offset) {\n for(var i = 0, l = insertions.length; i < l; i++){\n var insertion = insertions[i];\n if (insertion[0] >= offset) break;\n offset += insertion[1];\n }\n return offset;\n }\n function getCode(node) {\n return code.substring(getOffset(node.range[0]), getOffset(node.range[1]));\n }\n function getBetween(left, right) {\n return code.substring(getOffset(left.range[1]), getOffset(right.range[0]));\n }\n function replaceCode(node, str) {\n var start = getOffset(node.range[0]), end = getOffset(node.range[1]), insert = 0;\n for(var i = insertions.length - 1; i >= 0; i--)if (start > insertions[i][0]) {\n insert = i + 1;\n break;\n }\n insertions.splice(insert, 0, [\n start,\n str.length - end + start\n ]);\n code = code.substring(0, start) + str + code.substring(end);\n }\n function handleOverloading(node, parent) {\n switch(node.type){\n case \"UnaryExpression\":\n if (node.operator in unaryOperators && node.argument.type !== \"Literal\") {\n var arg = getCode(node.argument);\n replaceCode(node, '$__(\"' + node.operator + '\", ' + arg + \")\");\n }\n break;\n case \"BinaryExpression\":\n if (node.operator in binaryOperators && node.left.type !== \"Literal\") {\n var left = getCode(node.left), right = getCode(node.right), between = getBetween(node.left, node.right), operator = node.operator;\n replaceCode(node, \"__$__(\" + left + \",\" + between.replace(new RegExp(\"\\\\\" + operator), '\"' + operator + '\"') + \", \" + right + \")\");\n }\n break;\n case \"UpdateExpression\":\n case \"AssignmentExpression\":\n var parentType = parent && parent.type;\n if (!(parentType === \"ForStatement\" || parentType === \"BinaryExpression\" && /^[=!<>]/.test(parent.operator) || parentType === \"MemberExpression\" && parent.computed)) {\n if (node.type === \"UpdateExpression\") {\n var arg = getCode(node.argument), exp = \"__$__(\" + arg + ', \"' + node.operator[0] + '\", 1)', str = arg + \" = \" + exp;\n if (node.prefix) str = \"(\" + str + \")\";\n else if (parentType === \"AssignmentExpression\" || parentType === \"VariableDeclarator\" || parentType === \"BinaryExpression\") {\n if (getCode(parent.left || parent.id) === arg) str = exp;\n str = arg + \"; \" + str;\n }\n replaceCode(node, str);\n } else if (/^.=$/.test(node.operator) && node.left.type !== \"Literal\") {\n var left = getCode(node.left), right = getCode(node.right), exp = left + \" = __$__(\" + left + ', \"' + node.operator[0] + '\", ' + right + \")\";\n replaceCode(node, /^\\(.*\\)$/.test(getCode(node)) ? \"(\" + exp + \")\" : exp);\n }\n }\n break;\n }\n }\n function handleExports(node) {\n switch(node.type){\n case \"ExportDefaultDeclaration\":\n replaceCode({\n range: [\n node.start,\n node.declaration.start\n ]\n }, \"module.exports = \");\n break;\n case \"ExportNamedDeclaration\":\n var declaration = node.declaration;\n var specifiers = node.specifiers;\n if (declaration) {\n var declarations = declaration.declarations;\n if (declarations) {\n declarations.forEach(function(dec) {\n replaceCode(dec, \"module.exports.\" + getCode(dec));\n });\n replaceCode({\n range: [\n node.start,\n declaration.start + declaration.kind.length\n ]\n }, \"\");\n }\n } else if (specifiers) {\n var exports = specifiers.map(function(specifier) {\n var name = getCode(specifier);\n return \"module.exports.\" + name + \" = \" + name + \"; \";\n }).join(\"\");\n if (exports) replaceCode(node, exports);\n }\n break;\n }\n }\n function walkAST(node, parent, paperFeatures) {\n if (node) {\n for(var key in node)if (key !== \"range\" && key !== \"loc\") {\n var value = node[key];\n if (Array.isArray(value)) for(var i = 0, l = value.length; i < l; i++)walkAST(value[i], node, paperFeatures);\n else if (value && typeof value === \"object\") walkAST(value, node, paperFeatures);\n }\n if (paperFeatures.operatorOverloading !== false) handleOverloading(node, parent);\n if (paperFeatures.moduleExports !== false) handleExports(node);\n }\n }\n function encodeVLQ(value) {\n var res = \"\", base64 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n value = (Math.abs(value) << 1) + (value < 0 ? 1 : 0);\n while(value || !res){\n var next = value & 31;\n value >>= 5;\n if (value) next |= 32;\n res += base64[next];\n }\n return res;\n }\n var url = options.url || \"\", sourceMaps = options.sourceMaps, paperFeatures = options.paperFeatures || {}, source = options.source || code, offset = options.offset || 0, agent = paper.agent, version = agent.versionNumber, offsetCode = false, lineBreaks = /\\r\\n|\\n|\\r/mg, map;\n if (sourceMaps && (agent.chrome && version >= 30 || agent.webkit && version >= 537.76 || agent.firefox && version >= 23 || agent.node)) {\n if (agent.node) offset -= 2;\n else if (window && url && !window.location.href.indexOf(url)) {\n var html = document.getElementsByTagName(\"html\")[0].innerHTML;\n offset = html.substr(0, html.indexOf(code) + 1).match(lineBreaks).length + 1;\n }\n offsetCode = offset > 0 && !(agent.chrome && version >= 36 || agent.safari && version >= 600 || agent.firefox && version >= 40 || agent.node);\n var mappings = [\n \"AA\" + encodeVLQ(offsetCode ? 0 : offset) + \"A\"\n ];\n mappings.length = (code.match(lineBreaks) || []).length + 1 + (offsetCode ? offset : 0);\n map = {\n version: 3,\n file: url,\n names: [],\n mappings: mappings.join(\";AACA\"),\n sourceRoot: \"\",\n sources: [\n url\n ],\n sourcesContent: [\n source\n ]\n };\n }\n if (paperFeatures.operatorOverloading !== false || paperFeatures.moduleExports !== false) walkAST(parse(code, {\n ranges: true,\n preserveParens: true,\n sourceType: \"module\"\n }), null, paperFeatures);\n if (map) {\n if (offsetCode) code = new Array(offset + 1).join(\"\\n\") + code;\n if (/^(inline|both)$/.test(sourceMaps)) code += \"\\n//# sourceMappingURL=data:application/json;base64,\" + self1.btoa(unescape(encodeURIComponent(JSON.stringify(map))));\n code += \"\\n//# sourceURL=\" + (url || \"paperscript\");\n }\n return {\n url: url,\n source: source,\n code: code,\n map: map\n };\n }\n function execute(code, scope, options) {\n paper = scope;\n var view = scope.getView(), tool = /\\btool\\.\\w+|\\s+on(?:Key|Mouse)(?:Up|Down|Move|Drag)\\b/.test(code) && !/\\bnew\\s+Tool\\b/.test(code) ? new Tool() : null, toolHandlers = tool ? tool._events : [], handlers = [\n \"onFrame\",\n \"onResize\"\n ].concat(toolHandlers), params = [], args = [], func, compiled = typeof code === \"object\" ? code : compile(code, options);\n code = compiled.code;\n function expose(scope, hidden) {\n for(var key in scope)if ((hidden || !/^_/.test(key)) && new RegExp(\"([\\\\b\\\\s\\\\W]|^)\" + key.replace(/\\$/g, \"\\\\$\") + \"\\\\b\").test(code)) {\n params.push(key);\n args.push(scope[key]);\n }\n }\n expose({\n __$__: __$__,\n $__: $__,\n paper: scope,\n tool: tool\n }, true);\n expose(scope);\n code = \"var module = { exports: {} }; \" + code;\n var exports = Base.each(handlers, function(key) {\n if (new RegExp(\"\\\\s+\" + key + \"\\\\b\").test(code)) {\n params.push(key);\n this.push(\"module.exports.\" + key + \" = \" + key + \";\");\n }\n }, []).join(\"\\n\");\n if (exports) code += \"\\n\" + exports;\n code += \"\\nreturn module.exports;\";\n var agent = paper.agent;\n if (document && (agent.chrome || agent.firefox && agent.versionNumber < 40)) {\n var script = document.createElement(\"script\"), head = document.head || document.getElementsByTagName(\"head\")[0];\n if (agent.firefox) code = \"\\n\" + code;\n script.appendChild(document.createTextNode(\"document.__paperscript__ = function(\" + params + \") {\" + code + \"\\n}\"));\n head.appendChild(script);\n func = document.__paperscript__;\n delete document.__paperscript__;\n head.removeChild(script);\n } else func = Function(params, code);\n var exports = func && func.apply(scope, args);\n var obj = exports || {};\n Base.each(toolHandlers, function(key) {\n var value = obj[key];\n if (value) tool[key] = value;\n });\n if (view) {\n if (obj.onResize) view.setOnResize(obj.onResize);\n view.emit(\"resize\", {\n size: view.size,\n delta: new Point()\n });\n if (obj.onFrame) view.setOnFrame(obj.onFrame);\n view.requestUpdate();\n }\n return exports;\n }\n function loadScript(script) {\n if (/^text\\/(?:x-|)paperscript$/.test(script.type) && PaperScope.getAttribute(script, \"ignore\") !== \"true\") {\n var canvasId = PaperScope.getAttribute(script, \"canvas\"), canvas = document.getElementById(canvasId), src = script.src || script.getAttribute(\"data-src\"), async = PaperScope.hasAttribute(script, \"async\"), scopeAttribute = \"data-paper-scope\";\n if (!canvas) throw new Error('Unable to find canvas with id \"' + canvasId + '\"');\n var scope = PaperScope.get(canvas.getAttribute(scopeAttribute)) || new PaperScope().setup(canvas);\n canvas.setAttribute(scopeAttribute, scope._id);\n if (src) Http.request({\n url: src,\n async: async,\n mimeType: \"text/plain\",\n onLoad: function(code) {\n execute(code, scope, src);\n }\n });\n else execute(script.innerHTML, scope, script.baseURI);\n script.setAttribute(\"data-paper-ignore\", \"true\");\n return scope;\n }\n }\n function loadAll() {\n Base.each(document && document.getElementsByTagName(\"script\"), loadScript);\n }\n function load(script) {\n return script ? loadScript(script) : loadAll();\n }\n if (window) {\n if (document.readyState === \"complete\") setTimeout(loadAll);\n else DomEvent.add(window, {\n load: loadAll\n });\n }\n return {\n compile: compile,\n execute: execute,\n load: load,\n parse: parse,\n calculateBinary: __$__,\n calculateUnary: $__\n };\n }).call(this);\n var paper = new (PaperScope.inject(Base.exports, {\n Base: Base,\n Numerical: Numerical,\n Key: Key,\n DomEvent: DomEvent,\n DomElement: DomElement,\n document: document,\n window: window,\n Symbol: SymbolDefinition,\n PlacedSymbol: SymbolItem\n }))();\n if (paper.agent.node) (parcelRequire(\"gFNhN\"))(paper);\n if (typeof define === \"function\" && define.amd) define(\"paper\", paper);\n else if (module) module.exports = paper;\n return paper;\n}).call(this, typeof self === \"object\" ? self : null);\n\n});\nparcelRegister(\"gFNhN\", function(module, exports) {\n\"use strict\";\n\n});\n\nparcelRegister(\"7bbl5\", function(module, exports) {\n\n$parcel$export(module.exports, \"isIdentifierStart\", function () { return $f0e98b2c23d58ac9$export$56b48cc5d7560ffb; });\n$parcel$export(module.exports, \"isIdentifierChar\", function () { return $f0e98b2c23d58ac9$export$332f4d7bee38db93; });\n$parcel$export(module.exports, \"TokenType\", function () { return $f0e98b2c23d58ac9$export$f435f793048e7a0f; });\n$parcel$export(module.exports, \"keywordTypes\", function () { return $f0e98b2c23d58ac9$export$d53f8326294b31d8; });\n$parcel$export(module.exports, \"tokTypes\", function () { return $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8; });\n$parcel$export(module.exports, \"lineBreak\", function () { return $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6; });\n$parcel$export(module.exports, \"lineBreakG\", function () { return $f0e98b2c23d58ac9$export$866e20207bbc41f2; });\n$parcel$export(module.exports, \"isNewLine\", function () { return $f0e98b2c23d58ac9$export$2c19a3e3b4008fff; });\n$parcel$export(module.exports, \"nonASCIIwhitespace\", function () { return $f0e98b2c23d58ac9$export$268622f0f1cbc82b; });\n$parcel$export(module.exports, \"Position\", function () { return $f0e98b2c23d58ac9$export$13807d9ee5a34a42; });\n$parcel$export(module.exports, \"SourceLocation\", function () { return $f0e98b2c23d58ac9$export$7387db7caf96fcdb; });\n$parcel$export(module.exports, \"getLineInfo\", function () { return $f0e98b2c23d58ac9$export$7af82191547c5ff7; });\n$parcel$export(module.exports, \"defaultOptions\", function () { return $f0e98b2c23d58ac9$export$ba43bf67f3d48107; });\n$parcel$export(module.exports, \"Parser\", function () { return $f0e98b2c23d58ac9$export$7acfa6ed01010e37; });\n$parcel$export(module.exports, \"TokContext\", function () { return $f0e98b2c23d58ac9$export$68e7b4c4d99215d9; });\n$parcel$export(module.exports, \"tokContexts\", function () { return $f0e98b2c23d58ac9$export$2b5f701edfbd6f00; });\n$parcel$export(module.exports, \"Node\", function () { return $f0e98b2c23d58ac9$export$85c928794f8d04d4; });\n$parcel$export(module.exports, \"Token\", function () { return $f0e98b2c23d58ac9$export$50792b0e93539fde; });\n$parcel$export(module.exports, \"version\", function () { return $f0e98b2c23d58ac9$export$83d89fbfd8236492; });\n$parcel$export(module.exports, \"parse\", function () { return $f0e98b2c23d58ac9$export$98e6a39c04603d36; });\n$parcel$export(module.exports, \"parseExpressionAt\", function () { return $f0e98b2c23d58ac9$export$61f24eb03dd7ce92; });\n$parcel$export(module.exports, \"tokenizer\", function () { return $f0e98b2c23d58ac9$export$5f8c09e3ae6f64e1; });\n// This file was generated. Do not modify manually!\nvar $f0e98b2c23d58ac9$var$astralIdentifierCodes = [\n 509,\n 0,\n 227,\n 0,\n 150,\n 4,\n 294,\n 9,\n 1368,\n 2,\n 2,\n 1,\n 6,\n 3,\n 41,\n 2,\n 5,\n 0,\n 166,\n 1,\n 574,\n 3,\n 9,\n 9,\n 370,\n 1,\n 81,\n 2,\n 71,\n 10,\n 50,\n 3,\n 123,\n 2,\n 54,\n 14,\n 32,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418,\n 49,\n 513,\n 54,\n 5,\n 49,\n 9,\n 0,\n 15,\n 0,\n 23,\n 4,\n 2,\n 14,\n 1361,\n 6,\n 2,\n 16,\n 3,\n 6,\n 2,\n 1,\n 2,\n 4,\n 101,\n 0,\n 161,\n 6,\n 10,\n 9,\n 357,\n 0,\n 62,\n 13,\n 499,\n 13,\n 983,\n 6,\n 110,\n 6,\n 6,\n 9,\n 4759,\n 9,\n 787719,\n 239\n];\n// This file was generated. Do not modify manually!\nvar $f0e98b2c23d58ac9$var$astralIdentifierStartCodes = [\n 0,\n 11,\n 2,\n 25,\n 2,\n 18,\n 2,\n 1,\n 2,\n 14,\n 3,\n 13,\n 35,\n 122,\n 70,\n 52,\n 268,\n 28,\n 4,\n 48,\n 48,\n 31,\n 14,\n 29,\n 6,\n 37,\n 11,\n 29,\n 3,\n 35,\n 5,\n 7,\n 2,\n 4,\n 43,\n 157,\n 19,\n 35,\n 5,\n 35,\n 5,\n 39,\n 9,\n 51,\n 13,\n 10,\n 2,\n 14,\n 2,\n 6,\n 2,\n 1,\n 2,\n 10,\n 2,\n 14,\n 2,\n 6,\n 2,\n 1,\n 68,\n 310,\n 10,\n 21,\n 11,\n 7,\n 25,\n 5,\n 2,\n 41,\n 2,\n 8,\n 70,\n 5,\n 3,\n 0,\n 2,\n 43,\n 2,\n 1,\n 4,\n 0,\n 3,\n 22,\n 11,\n 22,\n 10,\n 30,\n 66,\n 18,\n 2,\n 1,\n 11,\n 21,\n 11,\n 25,\n 71,\n 55,\n 7,\n 1,\n 65,\n 0,\n 16,\n 3,\n 2,\n 2,\n 2,\n 28,\n 43,\n 28,\n 4,\n 28,\n 36,\n 7,\n 2,\n 27,\n 28,\n 53,\n 11,\n 21,\n 11,\n 18,\n 14,\n 17,\n 111,\n 72,\n 56,\n 50,\n 14,\n 50,\n 14,\n 35,\n 349,\n 41,\n 7,\n 1,\n 79,\n 28,\n 11,\n 0,\n 9,\n 21,\n 43,\n 17,\n 47,\n 20,\n 28,\n 22,\n 13,\n 52,\n 58,\n 1,\n 3,\n 0,\n 14,\n 44,\n 33,\n 24,\n 27,\n 35,\n 30,\n 0,\n 3,\n 0,\n 9,\n 34,\n 4,\n 0,\n 13,\n 47,\n 15,\n 3,\n 22,\n 0,\n 2,\n 0,\n 36,\n 17,\n 2,\n 24,\n 20,\n 1,\n 64,\n 6,\n 2,\n 0,\n 2,\n 3,\n 2,\n 14,\n 2,\n 9,\n 8,\n 46,\n 39,\n 7,\n 3,\n 1,\n 3,\n 21,\n 2,\n 6,\n 2,\n 1,\n 2,\n 4,\n 4,\n 0,\n 19,\n 0,\n 13,\n 4,\n 159,\n 52,\n 19,\n 3,\n 21,\n 2,\n 31,\n 47,\n 21,\n 1,\n 2,\n 0,\n 185,\n 46,\n 42,\n 3,\n 37,\n 47,\n 21,\n 0,\n 60,\n 42,\n 14,\n 0,\n 72,\n 26,\n 38,\n 6,\n 186,\n 43,\n 117,\n 63,\n 32,\n 7,\n 3,\n 0,\n 3,\n 7,\n 2,\n 1,\n 2,\n 23,\n 16,\n 0,\n 2,\n 0,\n 95,\n 7,\n 3,\n 38,\n 17,\n 0,\n 2,\n 0,\n 29,\n 0,\n 11,\n 39,\n 8,\n 0,\n 22,\n 0,\n 12,\n 45,\n 20,\n 0,\n 19,\n 72,\n 264,\n 8,\n 2,\n 36,\n 18,\n 0,\n 50,\n 29,\n 113,\n 6,\n 2,\n 1,\n 2,\n 37,\n 22,\n 0,\n 26,\n 5,\n 2,\n 1,\n 2,\n 31,\n 15,\n 0,\n 328,\n 18,\n 16,\n 0,\n 2,\n 12,\n 2,\n 33,\n 125,\n 0,\n 80,\n 921,\n 103,\n 110,\n 18,\n 195,\n 2637,\n 96,\n 16,\n 1071,\n 18,\n 5,\n 4026,\n 582,\n 8634,\n 568,\n 8,\n 30,\n 18,\n 78,\n 18,\n 29,\n 19,\n 47,\n 17,\n 3,\n 32,\n 20,\n 6,\n 18,\n 689,\n 63,\n 129,\n 74,\n 6,\n 0,\n 67,\n 12,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15,\n 7472,\n 16,\n 621,\n 2467,\n 541,\n 1507,\n 4938,\n 6,\n 4191\n];\n// This file was generated. Do not modify manually!\nvar $f0e98b2c23d58ac9$var$nonASCIIidentifierChars = \"\\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\\u0898-\\u089F\\u08CA-\\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\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B66-\\u0B6F\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C04\\u0C3C\\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\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D66-\\u0D6F\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0E50-\\u0E59\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\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-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u180F-\\u1819\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u194F\\u19D0-\\u19DA\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AB0-\\u1ABD\\u1ABF-\\u1ACE\\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-\\u1DFF\\u200C\\u200D\\u203F\\u2040\\u2054\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\u30FB\\uA620-\\uA629\\uA66F\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\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\\uFF65\";\n// This file was generated. Do not modify manually!\nvar $f0e98b2c23d58ac9$var$nonASCIIidentifierStartChars = \"\\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\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\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\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\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-\\u1711\\u171F-\\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-\\u1B4C\\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-\\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-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4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D7\\uFFDA-\\uFFDC\";\n// These are a run-length and offset encoded representation of the\n// >0xffff code points that are a valid part of identifiers. The\n// offset starts at 0x10000, and each pair of numbers represents an\n// offset to the next range, and then a size of the range.\n// Reserved word lists for various dialects of the language\nvar $f0e98b2c23d58ac9$var$reservedWords = {\n 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\",\n 5: \"class enum extends super const export import\",\n 6: \"enum\",\n strict: \"implements interface let package private protected public static yield\",\n strictBind: \"eval arguments\"\n};\n// And the keywords\nvar $f0e98b2c23d58ac9$var$ecma5AndLessKeywords = \"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\";\nvar $f0e98b2c23d58ac9$var$keywords$1 = {\n 5: $f0e98b2c23d58ac9$var$ecma5AndLessKeywords,\n \"5module\": $f0e98b2c23d58ac9$var$ecma5AndLessKeywords + \" export import\",\n 6: $f0e98b2c23d58ac9$var$ecma5AndLessKeywords + \" const class extends export import super\"\n};\nvar $f0e98b2c23d58ac9$var$keywordRelationalOperator = /^in(stanceof)?$/;\n// ## Character categories\nvar $f0e98b2c23d58ac9$var$nonASCIIidentifierStart = new RegExp(\"[\" + $f0e98b2c23d58ac9$var$nonASCIIidentifierStartChars + \"]\");\nvar $f0e98b2c23d58ac9$var$nonASCIIidentifier = new RegExp(\"[\" + $f0e98b2c23d58ac9$var$nonASCIIidentifierStartChars + $f0e98b2c23d58ac9$var$nonASCIIidentifierChars + \"]\");\n// This has a complexity linear to the value of the code. The\n// assumption is that looking up astral identifier characters is\n// rare.\nfunction $f0e98b2c23d58ac9$var$isInAstralSet(code, set) {\n var pos = 0x10000;\n for(var i = 0; i < set.length; i += 2){\n pos += set[i];\n if (pos > code) return false;\n pos += set[i + 1];\n if (pos >= code) return true;\n }\n return false;\n}\n// Test whether a given character code starts an identifier.\nfunction $f0e98b2c23d58ac9$export$56b48cc5d7560ffb(code, astral) {\n if (code < 65) return code === 36;\n if (code < 91) return true;\n if (code < 97) return code === 95;\n if (code < 123) return true;\n if (code <= 0xffff) return code >= 0xaa && $f0e98b2c23d58ac9$var$nonASCIIidentifierStart.test(String.fromCharCode(code));\n if (astral === false) return false;\n return $f0e98b2c23d58ac9$var$isInAstralSet(code, $f0e98b2c23d58ac9$var$astralIdentifierStartCodes);\n}\n// Test whether a given character is part of an identifier.\nfunction $f0e98b2c23d58ac9$export$332f4d7bee38db93(code, astral) {\n if (code < 48) return code === 36;\n if (code < 58) return true;\n if (code < 65) return false;\n if (code < 91) return true;\n if (code < 97) return code === 95;\n if (code < 123) return true;\n if (code <= 0xffff) return code >= 0xaa && $f0e98b2c23d58ac9$var$nonASCIIidentifier.test(String.fromCharCode(code));\n if (astral === false) return false;\n return $f0e98b2c23d58ac9$var$isInAstralSet(code, $f0e98b2c23d58ac9$var$astralIdentifierStartCodes) || $f0e98b2c23d58ac9$var$isInAstralSet(code, $f0e98b2c23d58ac9$var$astralIdentifierCodes);\n}\n// ## Token types\n// The assignment of fine-grained, information-carrying type objects\n// allows the tokenizer to store the information it has about a\n// token in a way that is very cheap for the parser to look up.\n// All token type variables start with an underscore, to make them\n// easy to recognize.\n// The `beforeExpr` property is used to disambiguate between regular\n// expressions and divisions. It is set on all token types that can\n// be followed by an expression (thus, a slash after them would be a\n// regular expression).\n//\n// The `startsExpr` property is used to check if the token ends a\n// `yield` expression. It is set on all token types that either can\n// directly start an expression (like a quotation mark) or can\n// continue an expression (like the body of a string).\n//\n// `isLoop` marks a keyword as starting a loop, which is important\n// to know when parsing a label, in order to allow or disallow\n// continue jumps to that label.\nvar $f0e98b2c23d58ac9$export$f435f793048e7a0f = function TokenType(label, conf) {\n if (conf === void 0) conf = {};\n this.label = label;\n this.keyword = conf.keyword;\n this.beforeExpr = !!conf.beforeExpr;\n this.startsExpr = !!conf.startsExpr;\n this.isLoop = !!conf.isLoop;\n this.isAssign = !!conf.isAssign;\n this.prefix = !!conf.prefix;\n this.postfix = !!conf.postfix;\n this.binop = conf.binop || null;\n this.updateContext = null;\n};\nfunction $f0e98b2c23d58ac9$var$binop(name, prec) {\n return new $f0e98b2c23d58ac9$export$f435f793048e7a0f(name, {\n beforeExpr: true,\n binop: prec\n });\n}\nvar $f0e98b2c23d58ac9$var$beforeExpr = {\n beforeExpr: true\n}, $f0e98b2c23d58ac9$var$startsExpr = {\n startsExpr: true\n};\n// Map keyword names to token types.\nvar $f0e98b2c23d58ac9$export$d53f8326294b31d8 = {};\n// Succinct definitions of keyword token types\nfunction $f0e98b2c23d58ac9$var$kw(name, options) {\n if (options === void 0) options = {};\n options.keyword = name;\n return $f0e98b2c23d58ac9$export$d53f8326294b31d8[name] = new $f0e98b2c23d58ac9$export$f435f793048e7a0f(name, options);\n}\nvar $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8 = {\n num: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"num\", $f0e98b2c23d58ac9$var$startsExpr),\n regexp: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"regexp\", $f0e98b2c23d58ac9$var$startsExpr),\n string: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"string\", $f0e98b2c23d58ac9$var$startsExpr),\n name: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"name\", $f0e98b2c23d58ac9$var$startsExpr),\n privateId: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"privateId\", $f0e98b2c23d58ac9$var$startsExpr),\n eof: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"eof\"),\n // Punctuation token types.\n bracketL: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"[\", {\n beforeExpr: true,\n startsExpr: true\n }),\n bracketR: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"]\"),\n braceL: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"{\", {\n beforeExpr: true,\n startsExpr: true\n }),\n braceR: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"}\"),\n parenL: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"(\", {\n beforeExpr: true,\n startsExpr: true\n }),\n parenR: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\")\"),\n comma: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\",\", $f0e98b2c23d58ac9$var$beforeExpr),\n semi: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\";\", $f0e98b2c23d58ac9$var$beforeExpr),\n colon: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\":\", $f0e98b2c23d58ac9$var$beforeExpr),\n dot: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\".\"),\n question: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"?\", $f0e98b2c23d58ac9$var$beforeExpr),\n questionDot: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"?.\"),\n arrow: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"=>\", $f0e98b2c23d58ac9$var$beforeExpr),\n template: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"template\"),\n invalidTemplate: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"invalidTemplate\"),\n ellipsis: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"...\", $f0e98b2c23d58ac9$var$beforeExpr),\n backQuote: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"`\", $f0e98b2c23d58ac9$var$startsExpr),\n dollarBraceL: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"${\", {\n beforeExpr: true,\n startsExpr: true\n }),\n // Operators. These carry several kinds of properties to help the\n // parser use them properly (the presence of these properties is\n // what categorizes them as operators).\n //\n // `binop`, when present, specifies that this operator is a binary\n // operator, and will refer to its precedence.\n //\n // `prefix` and `postfix` mark the operator as a prefix or postfix\n // unary operator.\n //\n // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as\n // binary operators with a very low precedence, that should result\n // in AssignmentExpression nodes.\n eq: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"=\", {\n beforeExpr: true,\n isAssign: true\n }),\n assign: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"_=\", {\n beforeExpr: true,\n isAssign: true\n }),\n incDec: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"++/--\", {\n prefix: true,\n postfix: true,\n startsExpr: true\n }),\n prefix: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"!/~\", {\n beforeExpr: true,\n prefix: true,\n startsExpr: true\n }),\n logicalOR: $f0e98b2c23d58ac9$var$binop(\"||\", 1),\n logicalAND: $f0e98b2c23d58ac9$var$binop(\"&&\", 2),\n bitwiseOR: $f0e98b2c23d58ac9$var$binop(\"|\", 3),\n bitwiseXOR: $f0e98b2c23d58ac9$var$binop(\"^\", 4),\n bitwiseAND: $f0e98b2c23d58ac9$var$binop(\"&\", 5),\n equality: $f0e98b2c23d58ac9$var$binop(\"==/!=/===/!==\", 6),\n relational: $f0e98b2c23d58ac9$var$binop(\"/<=/>=\", 7),\n bitShift: $f0e98b2c23d58ac9$var$binop(\"<>/>>>\", 8),\n plusMin: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"+/-\", {\n beforeExpr: true,\n binop: 9,\n prefix: true,\n startsExpr: true\n }),\n modulo: $f0e98b2c23d58ac9$var$binop(\"%\", 10),\n star: $f0e98b2c23d58ac9$var$binop(\"*\", 10),\n slash: $f0e98b2c23d58ac9$var$binop(\"/\", 10),\n starstar: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"**\", {\n beforeExpr: true\n }),\n coalesce: $f0e98b2c23d58ac9$var$binop(\"??\", 1),\n // Keyword token types.\n _break: $f0e98b2c23d58ac9$var$kw(\"break\"),\n _case: $f0e98b2c23d58ac9$var$kw(\"case\", $f0e98b2c23d58ac9$var$beforeExpr),\n _catch: $f0e98b2c23d58ac9$var$kw(\"catch\"),\n _continue: $f0e98b2c23d58ac9$var$kw(\"continue\"),\n _debugger: $f0e98b2c23d58ac9$var$kw(\"debugger\"),\n _default: $f0e98b2c23d58ac9$var$kw(\"default\", $f0e98b2c23d58ac9$var$beforeExpr),\n _do: $f0e98b2c23d58ac9$var$kw(\"do\", {\n isLoop: true,\n beforeExpr: true\n }),\n _else: $f0e98b2c23d58ac9$var$kw(\"else\", $f0e98b2c23d58ac9$var$beforeExpr),\n _finally: $f0e98b2c23d58ac9$var$kw(\"finally\"),\n _for: $f0e98b2c23d58ac9$var$kw(\"for\", {\n isLoop: true\n }),\n _function: $f0e98b2c23d58ac9$var$kw(\"function\", $f0e98b2c23d58ac9$var$startsExpr),\n _if: $f0e98b2c23d58ac9$var$kw(\"if\"),\n _return: $f0e98b2c23d58ac9$var$kw(\"return\", $f0e98b2c23d58ac9$var$beforeExpr),\n _switch: $f0e98b2c23d58ac9$var$kw(\"switch\"),\n _throw: $f0e98b2c23d58ac9$var$kw(\"throw\", $f0e98b2c23d58ac9$var$beforeExpr),\n _try: $f0e98b2c23d58ac9$var$kw(\"try\"),\n _var: $f0e98b2c23d58ac9$var$kw(\"var\"),\n _const: $f0e98b2c23d58ac9$var$kw(\"const\"),\n _while: $f0e98b2c23d58ac9$var$kw(\"while\", {\n isLoop: true\n }),\n _with: $f0e98b2c23d58ac9$var$kw(\"with\"),\n _new: $f0e98b2c23d58ac9$var$kw(\"new\", {\n beforeExpr: true,\n startsExpr: true\n }),\n _this: $f0e98b2c23d58ac9$var$kw(\"this\", $f0e98b2c23d58ac9$var$startsExpr),\n _super: $f0e98b2c23d58ac9$var$kw(\"super\", $f0e98b2c23d58ac9$var$startsExpr),\n _class: $f0e98b2c23d58ac9$var$kw(\"class\", $f0e98b2c23d58ac9$var$startsExpr),\n _extends: $f0e98b2c23d58ac9$var$kw(\"extends\", $f0e98b2c23d58ac9$var$beforeExpr),\n _export: $f0e98b2c23d58ac9$var$kw(\"export\"),\n _import: $f0e98b2c23d58ac9$var$kw(\"import\", $f0e98b2c23d58ac9$var$startsExpr),\n _null: $f0e98b2c23d58ac9$var$kw(\"null\", $f0e98b2c23d58ac9$var$startsExpr),\n _true: $f0e98b2c23d58ac9$var$kw(\"true\", $f0e98b2c23d58ac9$var$startsExpr),\n _false: $f0e98b2c23d58ac9$var$kw(\"false\", $f0e98b2c23d58ac9$var$startsExpr),\n _in: $f0e98b2c23d58ac9$var$kw(\"in\", {\n beforeExpr: true,\n binop: 7\n }),\n _instanceof: $f0e98b2c23d58ac9$var$kw(\"instanceof\", {\n beforeExpr: true,\n binop: 7\n }),\n _typeof: $f0e98b2c23d58ac9$var$kw(\"typeof\", {\n beforeExpr: true,\n prefix: true,\n startsExpr: true\n }),\n _void: $f0e98b2c23d58ac9$var$kw(\"void\", {\n beforeExpr: true,\n prefix: true,\n startsExpr: true\n }),\n _delete: $f0e98b2c23d58ac9$var$kw(\"delete\", {\n beforeExpr: true,\n prefix: true,\n startsExpr: true\n })\n};\n// Matches a whole line break (where CRLF is considered a single\n// line break). Used to count lines.\nvar $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6 = /\\r\\n?|\\n|\\u2028|\\u2029/;\nvar $f0e98b2c23d58ac9$export$866e20207bbc41f2 = new RegExp($f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.source, \"g\");\nfunction $f0e98b2c23d58ac9$export$2c19a3e3b4008fff(code) {\n return code === 10 || code === 13 || code === 0x2028 || code === 0x2029;\n}\nfunction $f0e98b2c23d58ac9$var$nextLineBreak(code, from, end) {\n if (end === void 0) end = code.length;\n for(var i = from; i < end; i++){\n var next = code.charCodeAt(i);\n if ($f0e98b2c23d58ac9$export$2c19a3e3b4008fff(next)) return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1;\n }\n return -1;\n}\nvar $f0e98b2c23d58ac9$export$268622f0f1cbc82b = /[\\u1680\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/;\nvar $f0e98b2c23d58ac9$var$skipWhiteSpace = /(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;\nvar $f0e98b2c23d58ac9$var$ref = Object.prototype;\nvar $f0e98b2c23d58ac9$var$hasOwnProperty = $f0e98b2c23d58ac9$var$ref.hasOwnProperty;\nvar $f0e98b2c23d58ac9$var$toString = $f0e98b2c23d58ac9$var$ref.toString;\nvar $f0e98b2c23d58ac9$var$hasOwn = Object.hasOwn || function(obj, propName) {\n return $f0e98b2c23d58ac9$var$hasOwnProperty.call(obj, propName);\n};\nvar $f0e98b2c23d58ac9$var$isArray = Array.isArray || function(obj) {\n return $f0e98b2c23d58ac9$var$toString.call(obj) === \"[object Array]\";\n};\nvar $f0e98b2c23d58ac9$var$regexpCache = Object.create(null);\nfunction $f0e98b2c23d58ac9$var$wordsRegexp(words) {\n return $f0e98b2c23d58ac9$var$regexpCache[words] || ($f0e98b2c23d58ac9$var$regexpCache[words] = new RegExp(\"^(?:\" + words.replace(/ /g, \"|\") + \")$\"));\n}\nfunction $f0e98b2c23d58ac9$var$codePointToString(code) {\n // UTF-16 Decoding\n if (code <= 0xFFFF) return String.fromCharCode(code);\n code -= 0x10000;\n return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00);\n}\nvar $f0e98b2c23d58ac9$var$loneSurrogate = /(?:[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])/;\n// These are used when `options.locations` is on, for the\n// `startLoc` and `endLoc` properties.\nvar $f0e98b2c23d58ac9$export$13807d9ee5a34a42 = function Position(line, col) {\n this.line = line;\n this.column = col;\n};\n$f0e98b2c23d58ac9$export$13807d9ee5a34a42.prototype.offset = function offset(n) {\n return new $f0e98b2c23d58ac9$export$13807d9ee5a34a42(this.line, this.column + n);\n};\nvar $f0e98b2c23d58ac9$export$7387db7caf96fcdb = function SourceLocation(p, start, end) {\n this.start = start;\n this.end = end;\n if (p.sourceFile !== null) this.source = p.sourceFile;\n};\n// The `getLineInfo` function is mostly useful when the\n// `locations` option is off (for performance reasons) and you\n// want to find the line/column position for a given character\n// offset. `input` should be the code string that the offset refers\n// into.\nfunction $f0e98b2c23d58ac9$export$7af82191547c5ff7(input, offset) {\n for(var line = 1, cur = 0;;){\n var nextBreak = $f0e98b2c23d58ac9$var$nextLineBreak(input, cur, offset);\n if (nextBreak < 0) return new $f0e98b2c23d58ac9$export$13807d9ee5a34a42(line, offset - cur);\n ++line;\n cur = nextBreak;\n }\n}\n// A second argument must be given to configure the parser process.\n// These options are recognized (only `ecmaVersion` is required):\nvar $f0e98b2c23d58ac9$export$ba43bf67f3d48107 = {\n // `ecmaVersion` indicates the ECMAScript version to parse. Must be\n // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10\n // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `\"latest\"`\n // (the latest version the library supports). This influences\n // support for strict mode, the set of reserved words, and support\n // for new syntax features.\n ecmaVersion: null,\n // `sourceType` indicates the mode the code should be parsed in.\n // Can be either `\"script\"` or `\"module\"`. This influences global\n // strict mode and parsing of `import` and `export` declarations.\n sourceType: \"script\",\n // `onInsertedSemicolon` can be a callback that will be called when\n // a semicolon is automatically inserted. It will be passed the\n // position of the inserted semicolon as an offset, and if\n // `locations` is enabled, it is given the location as a `{line,\n // column}` object as second argument.\n onInsertedSemicolon: null,\n // `onTrailingComma` is similar to `onInsertedSemicolon`, but for\n // trailing commas.\n onTrailingComma: null,\n // By default, reserved words are only enforced if ecmaVersion >= 5.\n // Set `allowReserved` to a boolean value to explicitly turn this on\n // an off. When this option has the value \"never\", reserved words\n // and keywords can also not be used as property names.\n allowReserved: null,\n // When enabled, a return at the top level is not considered an\n // error.\n allowReturnOutsideFunction: false,\n // When enabled, import/export statements are not constrained to\n // appearing at the top of the program, and an import.meta expression\n // in a script isn't considered an error.\n allowImportExportEverywhere: false,\n // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022.\n // When enabled, await identifiers are allowed to appear at the top-level scope,\n // but they are still not allowed in non-async functions.\n allowAwaitOutsideFunction: null,\n // When enabled, super identifiers are not constrained to\n // appearing in methods and do not raise an error when they appear elsewhere.\n allowSuperOutsideMethod: null,\n // When enabled, hashbang directive in the beginning of file is\n // allowed and treated as a line comment. Enabled by default when\n // `ecmaVersion` >= 2023.\n allowHashBang: false,\n // By default, the parser will verify that private properties are\n // only used in places where they are valid and have been declared.\n // Set this to false to turn such checks off.\n checkPrivateFields: true,\n // When `locations` is on, `loc` properties holding objects with\n // `start` and `end` properties in `{line, column}` form (with\n // line being 1-based and column 0-based) will be attached to the\n // nodes.\n locations: false,\n // A function can be passed as `onToken` option, which will\n // cause Acorn to call that function with object in the same\n // format as tokens returned from `tokenizer().getToken()`. Note\n // that you are not allowed to call the parser from the\n // callback—that will corrupt its internal state.\n onToken: null,\n // A function can be passed as `onComment` option, which will\n // cause Acorn to call that function with `(block, text, start,\n // end)` parameters whenever a comment is skipped. `block` is a\n // boolean indicating whether this is a block (`/* */`) comment,\n // `text` is the content of the comment, and `start` and `end` are\n // character offsets that denote the start and end of the comment.\n // When the `locations` option is on, two more parameters are\n // passed, the full `{line, column}` locations of the start and\n // end of the comments. Note that you are not allowed to call the\n // parser from the callback—that will corrupt its internal state.\n // When this option has an array as value, objects representing the\n // comments are pushed to it.\n onComment: null,\n // Nodes have their start and end characters offsets recorded in\n // `start` and `end` properties (directly on the node, rather than\n // the `loc` object, which holds line/column data. To also add a\n // [semi-standardized][range] `range` property holding a `[start,\n // end]` array with the same numbers, set the `ranges` option to\n // `true`.\n //\n // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678\n ranges: false,\n // It is possible to parse multiple files into a single AST by\n // passing the tree produced by parsing the first file as\n // `program` option in subsequent parses. This will add the\n // toplevel forms of the parsed file to the `Program` (top) node\n // of an existing parse tree.\n program: null,\n // When `locations` is on, you can pass this to record the source\n // file in every node's `loc` object.\n sourceFile: null,\n // This value, if given, is stored in every node, whether\n // `locations` is on or off.\n directSourceFile: null,\n // When enabled, parenthesized expressions are represented by\n // (non-standard) ParenthesizedExpression nodes\n preserveParens: false\n};\n// Interpret and default an options object\nvar $f0e98b2c23d58ac9$var$warnedAboutEcmaVersion = false;\nfunction $f0e98b2c23d58ac9$var$getOptions(opts) {\n var options = {};\n for(var opt in $f0e98b2c23d58ac9$export$ba43bf67f3d48107)options[opt] = opts && $f0e98b2c23d58ac9$var$hasOwn(opts, opt) ? opts[opt] : $f0e98b2c23d58ac9$export$ba43bf67f3d48107[opt];\n if (options.ecmaVersion === \"latest\") options.ecmaVersion = 1e8;\n else if (options.ecmaVersion == null) {\n if (!$f0e98b2c23d58ac9$var$warnedAboutEcmaVersion && typeof console === \"object\" && console.warn) {\n $f0e98b2c23d58ac9$var$warnedAboutEcmaVersion = true;\n console.warn(\"Since Acorn 8.0.0, options.ecmaVersion is required.\\nDefaulting to 2020, but this will stop working in the future.\");\n }\n options.ecmaVersion = 11;\n } else if (options.ecmaVersion >= 2015) options.ecmaVersion -= 2009;\n if (options.allowReserved == null) options.allowReserved = options.ecmaVersion < 5;\n if (!opts || opts.allowHashBang == null) options.allowHashBang = options.ecmaVersion >= 14;\n if ($f0e98b2c23d58ac9$var$isArray(options.onToken)) {\n var tokens = options.onToken;\n options.onToken = function(token) {\n return tokens.push(token);\n };\n }\n if ($f0e98b2c23d58ac9$var$isArray(options.onComment)) options.onComment = $f0e98b2c23d58ac9$var$pushComment(options, options.onComment);\n return options;\n}\nfunction $f0e98b2c23d58ac9$var$pushComment(options, array) {\n return function(block, text, start, end, startLoc, endLoc) {\n var comment = {\n type: block ? \"Block\" : \"Line\",\n value: text,\n start: start,\n end: end\n };\n if (options.locations) comment.loc = new $f0e98b2c23d58ac9$export$7387db7caf96fcdb(this, startLoc, endLoc);\n if (options.ranges) comment.range = [\n start,\n end\n ];\n array.push(comment);\n };\n}\n// Each scope gets a bitset that may contain these flags\nvar $f0e98b2c23d58ac9$var$SCOPE_TOP = 1, $f0e98b2c23d58ac9$var$SCOPE_FUNCTION = 2, $f0e98b2c23d58ac9$var$SCOPE_ASYNC = 4, $f0e98b2c23d58ac9$var$SCOPE_GENERATOR = 8, $f0e98b2c23d58ac9$var$SCOPE_ARROW = 16, $f0e98b2c23d58ac9$var$SCOPE_SIMPLE_CATCH = 32, $f0e98b2c23d58ac9$var$SCOPE_SUPER = 64, $f0e98b2c23d58ac9$var$SCOPE_DIRECT_SUPER = 128, $f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK = 256, $f0e98b2c23d58ac9$var$SCOPE_VAR = $f0e98b2c23d58ac9$var$SCOPE_TOP | $f0e98b2c23d58ac9$var$SCOPE_FUNCTION | $f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK;\nfunction $f0e98b2c23d58ac9$var$functionFlags(async, generator) {\n return $f0e98b2c23d58ac9$var$SCOPE_FUNCTION | (async ? $f0e98b2c23d58ac9$var$SCOPE_ASYNC : 0) | (generator ? $f0e98b2c23d58ac9$var$SCOPE_GENERATOR : 0);\n}\n// Used in checkLVal* and declareName to determine the type of a binding\nvar $f0e98b2c23d58ac9$var$BIND_NONE = 0, $f0e98b2c23d58ac9$var$BIND_VAR = 1, $f0e98b2c23d58ac9$var$BIND_LEXICAL = 2, $f0e98b2c23d58ac9$var$BIND_FUNCTION = 3, $f0e98b2c23d58ac9$var$BIND_SIMPLE_CATCH = 4, $f0e98b2c23d58ac9$var$BIND_OUTSIDE = 5; // Special case for function names as bound inside the function\nvar $f0e98b2c23d58ac9$export$7acfa6ed01010e37 = function Parser(options, input, startPos) {\n this.options = options = $f0e98b2c23d58ac9$var$getOptions(options);\n this.sourceFile = options.sourceFile;\n this.keywords = $f0e98b2c23d58ac9$var$wordsRegexp($f0e98b2c23d58ac9$var$keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === \"module\" ? \"5module\" : 5]);\n var reserved = \"\";\n if (options.allowReserved !== true) {\n reserved = $f0e98b2c23d58ac9$var$reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3];\n if (options.sourceType === \"module\") reserved += \" await\";\n }\n this.reservedWords = $f0e98b2c23d58ac9$var$wordsRegexp(reserved);\n var reservedStrict = (reserved ? reserved + \" \" : \"\") + $f0e98b2c23d58ac9$var$reservedWords.strict;\n this.reservedWordsStrict = $f0e98b2c23d58ac9$var$wordsRegexp(reservedStrict);\n this.reservedWordsStrictBind = $f0e98b2c23d58ac9$var$wordsRegexp(reservedStrict + \" \" + $f0e98b2c23d58ac9$var$reservedWords.strictBind);\n this.input = String(input);\n // Used to signal to callers of `readWord1` whether the word\n // contained any escape sequences. This is needed because words with\n // escape sequences must not be interpreted as keywords.\n this.containsEsc = false;\n // Set up token state\n // The current position of the tokenizer in the input.\n if (startPos) {\n this.pos = startPos;\n this.lineStart = this.input.lastIndexOf(\"\\n\", startPos - 1) + 1;\n this.curLine = this.input.slice(0, this.lineStart).split($f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6).length;\n } else {\n this.pos = this.lineStart = 0;\n this.curLine = 1;\n }\n // Properties of the current token:\n // Its type\n this.type = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof;\n // For tokens that include more information than their type, the value\n this.value = null;\n // Its start and end offset\n this.start = this.end = this.pos;\n // And, if locations are used, the {line, column} object\n // corresponding to those offsets\n this.startLoc = this.endLoc = this.curPosition();\n // Position information for the previous token\n this.lastTokEndLoc = this.lastTokStartLoc = null;\n this.lastTokStart = this.lastTokEnd = this.pos;\n // The context stack is used to superficially track syntactic\n // context to predict whether a regular expression is allowed in a\n // given position.\n this.context = this.initialContext();\n this.exprAllowed = true;\n // Figure out if it's a module code.\n this.inModule = options.sourceType === \"module\";\n this.strict = this.inModule || this.strictDirective(this.pos);\n // Used to signify the start of a potential arrow function\n this.potentialArrowAt = -1;\n this.potentialArrowInForAwait = false;\n // Positions to delayed-check that yield/await does not exist in default parameters.\n this.yieldPos = this.awaitPos = this.awaitIdentPos = 0;\n // Labels in scope.\n this.labels = [];\n // Thus-far undefined exports.\n this.undefinedExports = Object.create(null);\n // If enabled, skip leading hashbang line.\n if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === \"#!\") this.skipLineComment(2);\n // Scope tracking for duplicate variable names (see scope.js)\n this.scopeStack = [];\n this.enterScope($f0e98b2c23d58ac9$var$SCOPE_TOP);\n // For RegExp validation\n this.regexpState = null;\n // The stack of private names.\n // Each element has two properties: 'declared' and 'used'.\n // When it exited from the outermost class definition, all used private names must be declared.\n this.privateNameStack = [];\n};\nvar $f0e98b2c23d58ac9$var$prototypeAccessors = {\n inFunction: {\n configurable: true\n },\n inGenerator: {\n configurable: true\n },\n inAsync: {\n configurable: true\n },\n canAwait: {\n configurable: true\n },\n allowSuper: {\n configurable: true\n },\n allowDirectSuper: {\n configurable: true\n },\n treatFunctionsAsVar: {\n configurable: true\n },\n allowNewDotTarget: {\n configurable: true\n },\n inClassStaticBlock: {\n configurable: true\n }\n};\n$f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype.parse = function parse() {\n var node = this.options.program || this.startNode();\n this.nextToken();\n return this.parseTopLevel(node);\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.inFunction.get = function() {\n return (this.currentVarScope().flags & $f0e98b2c23d58ac9$var$SCOPE_FUNCTION) > 0;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.inGenerator.get = function() {\n return (this.currentVarScope().flags & $f0e98b2c23d58ac9$var$SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.inAsync.get = function() {\n return (this.currentVarScope().flags & $f0e98b2c23d58ac9$var$SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.canAwait.get = function() {\n for(var i = this.scopeStack.length - 1; i >= 0; i--){\n var scope = this.scopeStack[i];\n if (scope.inClassFieldInit || scope.flags & $f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK) return false;\n if (scope.flags & $f0e98b2c23d58ac9$var$SCOPE_FUNCTION) return (scope.flags & $f0e98b2c23d58ac9$var$SCOPE_ASYNC) > 0;\n }\n return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.allowSuper.get = function() {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & $f0e98b2c23d58ac9$var$SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.allowDirectSuper.get = function() {\n return (this.currentThisScope().flags & $f0e98b2c23d58ac9$var$SCOPE_DIRECT_SUPER) > 0;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.treatFunctionsAsVar.get = function() {\n return this.treatFunctionsAsVarInScope(this.currentScope());\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.allowNewDotTarget.get = function() {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & ($f0e98b2c23d58ac9$var$SCOPE_FUNCTION | $f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK)) > 0 || inClassFieldInit;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.inClassStaticBlock.get = function() {\n return (this.currentVarScope().flags & $f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK) > 0;\n};\n$f0e98b2c23d58ac9$export$7acfa6ed01010e37.extend = function extend() {\n var plugins = [], len = arguments.length;\n while(len--)plugins[len] = arguments[len];\n var cls = this;\n for(var i = 0; i < plugins.length; i++)cls = plugins[i](cls);\n return cls;\n};\n$f0e98b2c23d58ac9$export$7acfa6ed01010e37.parse = function parse(input, options) {\n return new this(options, input).parse();\n};\n$f0e98b2c23d58ac9$export$7acfa6ed01010e37.parseExpressionAt = function parseExpressionAt(input, pos, options) {\n var parser = new this(options, input, pos);\n parser.nextToken();\n return parser.parseExpression();\n};\n$f0e98b2c23d58ac9$export$7acfa6ed01010e37.tokenizer = function tokenizer(input, options) {\n return new this(options, input);\n};\nObject.defineProperties($f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype, $f0e98b2c23d58ac9$var$prototypeAccessors);\nvar $f0e98b2c23d58ac9$var$pp$9 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// ## Parser utilities\nvar $f0e98b2c23d58ac9$var$literal = /^(?:'((?:\\\\[^]|[^'\\\\])*?)'|\"((?:\\\\[^]|[^\"\\\\])*?)\")/;\n$f0e98b2c23d58ac9$var$pp$9.strictDirective = function(start) {\n if (this.options.ecmaVersion < 5) return false;\n for(;;){\n // Try to find string literal.\n $f0e98b2c23d58ac9$var$skipWhiteSpace.lastIndex = start;\n start += $f0e98b2c23d58ac9$var$skipWhiteSpace.exec(this.input)[0].length;\n var match = $f0e98b2c23d58ac9$var$literal.exec(this.input.slice(start));\n if (!match) return false;\n if ((match[1] || match[2]) === \"use strict\") {\n $f0e98b2c23d58ac9$var$skipWhiteSpace.lastIndex = start + match[0].length;\n var spaceAfter = $f0e98b2c23d58ac9$var$skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;\n var next = this.input.charAt(end);\n return next === \";\" || next === \"}\" || $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(spaceAfter[0]) && !(/[(`.[+\\-/*%<>=,?^&]/.test(next) || next === \"!\" && this.input.charAt(end + 1) === \"=\");\n }\n start += match[0].length;\n // Skip semicolon, if any.\n $f0e98b2c23d58ac9$var$skipWhiteSpace.lastIndex = start;\n start += $f0e98b2c23d58ac9$var$skipWhiteSpace.exec(this.input)[0].length;\n if (this.input[start] === \";\") start++;\n }\n};\n// Predicate that tests whether the next token is of the given\n// type, and if yes, consumes it as a side effect.\n$f0e98b2c23d58ac9$var$pp$9.eat = function(type) {\n if (this.type === type) {\n this.next();\n return true;\n } else return false;\n};\n// Tests whether parsed token is a contextual keyword.\n$f0e98b2c23d58ac9$var$pp$9.isContextual = function(name) {\n return this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name && this.value === name && !this.containsEsc;\n};\n// Consumes contextual keyword if possible.\n$f0e98b2c23d58ac9$var$pp$9.eatContextual = function(name) {\n if (!this.isContextual(name)) return false;\n this.next();\n return true;\n};\n// Asserts that following token is given contextual keyword.\n$f0e98b2c23d58ac9$var$pp$9.expectContextual = function(name) {\n if (!this.eatContextual(name)) this.unexpected();\n};\n// Test whether a semicolon can be inserted at the current position.\n$f0e98b2c23d58ac9$var$pp$9.canInsertSemicolon = function() {\n return this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR || $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start));\n};\n$f0e98b2c23d58ac9$var$pp$9.insertSemicolon = function() {\n if (this.canInsertSemicolon()) {\n if (this.options.onInsertedSemicolon) this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc);\n return true;\n }\n};\n// Consume a semicolon, or, failing that, see if we are allowed to\n// pretend that there is a semicolon at this position.\n$f0e98b2c23d58ac9$var$pp$9.semicolon = function() {\n if (!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi) && !this.insertSemicolon()) this.unexpected();\n};\n$f0e98b2c23d58ac9$var$pp$9.afterTrailingComma = function(tokType, notNext) {\n if (this.type === tokType) {\n if (this.options.onTrailingComma) this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc);\n if (!notNext) this.next();\n return true;\n }\n};\n// Expect a token of a given type. If found, consume it, otherwise,\n// raise an unexpected token error.\n$f0e98b2c23d58ac9$var$pp$9.expect = function(type) {\n this.eat(type) || this.unexpected();\n};\n// Raise an unexpected token error.\n$f0e98b2c23d58ac9$var$pp$9.unexpected = function(pos) {\n this.raise(pos != null ? pos : this.start, \"Unexpected token\");\n};\nvar $f0e98b2c23d58ac9$var$DestructuringErrors = function DestructuringErrors() {\n this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;\n};\n$f0e98b2c23d58ac9$var$pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {\n if (!refDestructuringErrors) return;\n if (refDestructuringErrors.trailingComma > -1) this.raiseRecoverable(refDestructuringErrors.trailingComma, \"Comma is not permitted after the rest element\");\n var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;\n if (parens > -1) this.raiseRecoverable(parens, isAssign ? \"Assigning to rvalue\" : \"Parenthesized pattern\");\n};\n$f0e98b2c23d58ac9$var$pp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) {\n if (!refDestructuringErrors) return false;\n var shorthandAssign = refDestructuringErrors.shorthandAssign;\n var doubleProto = refDestructuringErrors.doubleProto;\n if (!andThrow) return shorthandAssign >= 0 || doubleProto >= 0;\n if (shorthandAssign >= 0) this.raise(shorthandAssign, \"Shorthand property assignments are valid only in destructuring patterns\");\n if (doubleProto >= 0) this.raiseRecoverable(doubleProto, \"Redefinition of __proto__ property\");\n};\n$f0e98b2c23d58ac9$var$pp$9.checkYieldAwaitInDefaultParams = function() {\n if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos)) this.raise(this.yieldPos, \"Yield expression cannot be a default value\");\n if (this.awaitPos) this.raise(this.awaitPos, \"Await expression cannot be a default value\");\n};\n$f0e98b2c23d58ac9$var$pp$9.isSimpleAssignTarget = function(expr) {\n if (expr.type === \"ParenthesizedExpression\") return this.isSimpleAssignTarget(expr.expression);\n return expr.type === \"Identifier\" || expr.type === \"MemberExpression\";\n};\nvar $f0e98b2c23d58ac9$var$pp$8 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// ### Statement parsing\n// Parse a program. Initializes the parser, reads any number of\n// statements, and wraps them in a Program node. Optionally takes a\n// `program` argument. If present, the statements will be appended\n// to its body instead of creating a new node.\n$f0e98b2c23d58ac9$var$pp$8.parseTopLevel = function(node) {\n var exports = Object.create(null);\n if (!node.body) node.body = [];\n while(this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof){\n var stmt = this.parseStatement(null, true, exports);\n node.body.push(stmt);\n }\n if (this.inModule) for(var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1){\n var name = list[i];\n this.raiseRecoverable(this.undefinedExports[name].start, \"Export '\" + name + \"' is not defined\");\n }\n this.adaptDirectivePrologue(node.body);\n this.next();\n node.sourceType = this.options.sourceType;\n return this.finishNode(node, \"Program\");\n};\nvar $f0e98b2c23d58ac9$var$loopLabel = {\n kind: \"loop\"\n}, $f0e98b2c23d58ac9$var$switchLabel = {\n kind: \"switch\"\n};\n$f0e98b2c23d58ac9$var$pp$8.isLet = function(context) {\n if (this.options.ecmaVersion < 6 || !this.isContextual(\"let\")) return false;\n $f0e98b2c23d58ac9$var$skipWhiteSpace.lastIndex = this.pos;\n var skip = $f0e98b2c23d58ac9$var$skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);\n // For ambiguous cases, determine if a LexicalDeclaration (or only a\n // Statement) is allowed here. If context is not empty then only a Statement\n // is allowed. However, `let [` is an explicit negative lookahead for\n // ExpressionStatement, so special-case it first.\n if (nextCh === 91 || nextCh === 92) return true;\n // '[', '\\'\n if (context) return false;\n if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) return true;\n // '{', astral\n if ($f0e98b2c23d58ac9$export$56b48cc5d7560ffb(nextCh, true)) {\n var pos = next + 1;\n while($f0e98b2c23d58ac9$export$332f4d7bee38db93(nextCh = this.input.charCodeAt(pos), true))++pos;\n if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) return true;\n var ident = this.input.slice(next, pos);\n if (!$f0e98b2c23d58ac9$var$keywordRelationalOperator.test(ident)) return true;\n }\n return false;\n};\n// check 'async [no LineTerminator here] function'\n// - 'async /*foo*/ function' is OK.\n// - 'async /*\\n*/ function' is invalid.\n$f0e98b2c23d58ac9$var$pp$8.isAsyncFunction = function() {\n if (this.options.ecmaVersion < 8 || !this.isContextual(\"async\")) return false;\n $f0e98b2c23d58ac9$var$skipWhiteSpace.lastIndex = this.pos;\n var skip = $f0e98b2c23d58ac9$var$skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, after;\n return !$f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.pos, next)) && this.input.slice(next, next + 8) === \"function\" && (next + 8 === this.input.length || !($f0e98b2c23d58ac9$export$332f4d7bee38db93(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00));\n};\n// Parse a single statement.\n//\n// If expecting a statement and finding a slash operator, parse a\n// regular expression literal. This is to handle cases like\n// `if (foo) /blah/.exec(foo)`, where looking at the previous token\n// does not help.\n$f0e98b2c23d58ac9$var$pp$8.parseStatement = function(context, topLevel, exports) {\n var starttype = this.type, node = this.startNode(), kind;\n if (this.isLet(context)) {\n starttype = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._var;\n kind = \"let\";\n }\n // Most types of statements are recognized by the keyword they\n // start with. Many are trivial to parse, some require a bit of\n // complexity.\n switch(starttype){\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._break:\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._continue:\n return this.parseBreakContinueStatement(node, starttype.keyword);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._debugger:\n return this.parseDebuggerStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._do:\n return this.parseDoStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._for:\n return this.parseForStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._function:\n // Function as sole body of either an if statement or a labeled statement\n // works, but not when it is part of a labeled statement that is the sole\n // body of an if statement.\n if (context && (this.strict || context !== \"if\" && context !== \"label\") && this.options.ecmaVersion >= 6) this.unexpected();\n return this.parseFunctionStatement(node, false, !context);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._class:\n if (context) this.unexpected();\n return this.parseClass(node, true);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._if:\n return this.parseIfStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._return:\n return this.parseReturnStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._switch:\n return this.parseSwitchStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._throw:\n return this.parseThrowStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._try:\n return this.parseTryStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._const:\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._var:\n kind = kind || this.value;\n if (context && kind !== \"var\") this.unexpected();\n return this.parseVarStatement(node, kind);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._while:\n return this.parseWhileStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._with:\n return this.parseWithStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL:\n return this.parseBlock(true, node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi:\n return this.parseEmptyStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._export:\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._import:\n if (this.options.ecmaVersion > 10 && starttype === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._import) {\n $f0e98b2c23d58ac9$var$skipWhiteSpace.lastIndex = this.pos;\n var skip = $f0e98b2c23d58ac9$var$skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);\n if (nextCh === 40 || nextCh === 46) return this.parseExpressionStatement(node, this.parseExpression());\n }\n if (!this.options.allowImportExportEverywhere) {\n if (!topLevel) this.raise(this.start, \"'import' and 'export' may only appear at the top level\");\n if (!this.inModule) this.raise(this.start, \"'import' and 'export' may appear only with 'sourceType: module'\");\n }\n return starttype === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._import ? this.parseImport(node) : this.parseExport(node, exports);\n // If the statement does not start with a statement keyword or a\n // brace, it's an ExpressionStatement or LabeledStatement. We\n // simply start parsing an expression, and afterwards, if the\n // next token is a colon and the expression was a simple\n // Identifier node, we switch to interpreting it as a label.\n default:\n if (this.isAsyncFunction()) {\n if (context) this.unexpected();\n this.next();\n return this.parseFunctionStatement(node, true, !context);\n }\n var maybeName = this.value, expr = this.parseExpression();\n if (starttype === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name && expr.type === \"Identifier\" && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon)) return this.parseLabeledStatement(node, maybeName, expr, context);\n else return this.parseExpressionStatement(node, expr);\n }\n};\n$f0e98b2c23d58ac9$var$pp$8.parseBreakContinueStatement = function(node, keyword) {\n var isBreak = keyword === \"break\";\n this.next();\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi) || this.insertSemicolon()) node.label = null;\n else if (this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) this.unexpected();\n else {\n node.label = this.parseIdent();\n this.semicolon();\n }\n // Verify that there is an actual destination to break or\n // continue to.\n var i = 0;\n for(; i < this.labels.length; ++i){\n var lab = this.labels[i];\n if (node.label == null || lab.name === node.label.name) {\n if (lab.kind != null && (isBreak || lab.kind === \"loop\")) break;\n if (node.label && isBreak) break;\n }\n }\n if (i === this.labels.length) this.raise(node.start, \"Unsyntactic \" + keyword);\n return this.finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseDebuggerStatement = function(node) {\n this.next();\n this.semicolon();\n return this.finishNode(node, \"DebuggerStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseDoStatement = function(node) {\n this.next();\n this.labels.push($f0e98b2c23d58ac9$var$loopLabel);\n node.body = this.parseStatement(\"do\");\n this.labels.pop();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._while);\n node.test = this.parseParenExpression();\n if (this.options.ecmaVersion >= 6) this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi);\n else this.semicolon();\n return this.finishNode(node, \"DoWhileStatement\");\n};\n// Disambiguating between a `for` and a `for`/`in` or `for`/`of`\n// loop is non-trivial. Basically, we have to parse the init `var`\n// statement or expression, disallowing the `in` operator (see\n// the second parameter to `parseExpression`), and then check\n// whether the next token is `in` or `of`. When there is no init\n// part (semicolon immediately after the opening parenthesis), it\n// is a regular `for` loop.\n$f0e98b2c23d58ac9$var$pp$8.parseForStatement = function(node) {\n this.next();\n var awaitAt = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual(\"await\") ? this.lastTokStart : -1;\n this.labels.push($f0e98b2c23d58ac9$var$loopLabel);\n this.enterScope(0);\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL);\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi) {\n if (awaitAt > -1) this.unexpected(awaitAt);\n return this.parseFor(node, null);\n }\n var isLet = this.isLet();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._var || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._const || isLet) {\n var init$1 = this.startNode(), kind = isLet ? \"let\" : this.value;\n this.next();\n this.parseVar(init$1, true, kind);\n this.finishNode(init$1, \"VariableDeclaration\");\n if ((this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in || this.options.ecmaVersion >= 6 && this.isContextual(\"of\")) && init$1.declarations.length === 1) {\n if (this.options.ecmaVersion >= 9) {\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in) {\n if (awaitAt > -1) this.unexpected(awaitAt);\n } else node.await = awaitAt > -1;\n }\n return this.parseForIn(node, init$1);\n }\n if (awaitAt > -1) this.unexpected(awaitAt);\n return this.parseFor(node, init$1);\n }\n var startsWithLet = this.isContextual(\"let\"), isForOf = false;\n var containsEsc = this.containsEsc;\n var refDestructuringErrors = new $f0e98b2c23d58ac9$var$DestructuringErrors;\n var initPos = this.start;\n var init = awaitAt > -1 ? this.parseExprSubscripts(refDestructuringErrors, \"await\") : this.parseExpression(true, refDestructuringErrors);\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) {\n if (awaitAt > -1) {\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in) this.unexpected(awaitAt);\n node.await = true;\n } else if (isForOf && this.options.ecmaVersion >= 8) {\n if (init.start === initPos && !containsEsc && init.type === \"Identifier\" && init.name === \"async\") this.unexpected();\n else if (this.options.ecmaVersion >= 9) node.await = false;\n }\n if (startsWithLet && isForOf) this.raise(init.start, \"The left-hand side of a for-of loop may not start with 'let'.\");\n this.toAssignable(init, false, refDestructuringErrors);\n this.checkLValPattern(init);\n return this.parseForIn(node, init);\n } else this.checkExpressionErrors(refDestructuringErrors, true);\n if (awaitAt > -1) this.unexpected(awaitAt);\n return this.parseFor(node, init);\n};\n$f0e98b2c23d58ac9$var$pp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) {\n this.next();\n return this.parseFunction(node, $f0e98b2c23d58ac9$var$FUNC_STATEMENT | (declarationPosition ? 0 : $f0e98b2c23d58ac9$var$FUNC_HANGING_STATEMENT), false, isAsync);\n};\n$f0e98b2c23d58ac9$var$pp$8.parseIfStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n // allow function declarations in branches, but only in non-strict mode\n node.consequent = this.parseStatement(\"if\");\n node.alternate = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._else) ? this.parseStatement(\"if\") : null;\n return this.finishNode(node, \"IfStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseReturnStatement = function(node) {\n if (!this.inFunction && !this.options.allowReturnOutsideFunction) this.raise(this.start, \"'return' outside of function\");\n this.next();\n // In `return` (and `break`/`continue`), the keywords with\n // optional arguments, we eagerly look for a semicolon or the\n // possibility to insert one.\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi) || this.insertSemicolon()) node.argument = null;\n else {\n node.argument = this.parseExpression();\n this.semicolon();\n }\n return this.finishNode(node, \"ReturnStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseSwitchStatement = function(node) {\n this.next();\n node.discriminant = this.parseParenExpression();\n node.cases = [];\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL);\n this.labels.push($f0e98b2c23d58ac9$var$switchLabel);\n this.enterScope(0);\n // Statements under must be grouped (by label) in SwitchCase\n // nodes. `cur` is used to keep the node that we are currently\n // adding statements to.\n var cur;\n for(var sawDefault = false; this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR;)if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._case || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._default) {\n var isCase = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._case;\n if (cur) this.finishNode(cur, \"SwitchCase\");\n node.cases.push(cur = this.startNode());\n cur.consequent = [];\n this.next();\n if (isCase) cur.test = this.parseExpression();\n else {\n if (sawDefault) this.raiseRecoverable(this.lastTokStart, \"Multiple default clauses\");\n sawDefault = true;\n cur.test = null;\n }\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon);\n } else {\n if (!cur) this.unexpected();\n cur.consequent.push(this.parseStatement(null));\n }\n this.exitScope();\n if (cur) this.finishNode(cur, \"SwitchCase\");\n this.next(); // Closing brace\n this.labels.pop();\n return this.finishNode(node, \"SwitchStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseThrowStatement = function(node) {\n this.next();\n if ($f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start))) this.raise(this.lastTokEnd, \"Illegal newline after throw\");\n node.argument = this.parseExpression();\n this.semicolon();\n return this.finishNode(node, \"ThrowStatement\");\n};\n// Reused empty array added for node fields that are always empty.\nvar $f0e98b2c23d58ac9$var$empty$1 = [];\n$f0e98b2c23d58ac9$var$pp$8.parseCatchClauseParam = function() {\n var param = this.parseBindingAtom();\n var simple = param.type === \"Identifier\";\n this.enterScope(simple ? $f0e98b2c23d58ac9$var$SCOPE_SIMPLE_CATCH : 0);\n this.checkLValPattern(param, simple ? $f0e98b2c23d58ac9$var$BIND_SIMPLE_CATCH : $f0e98b2c23d58ac9$var$BIND_LEXICAL);\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR);\n return param;\n};\n$f0e98b2c23d58ac9$var$pp$8.parseTryStatement = function(node) {\n this.next();\n node.block = this.parseBlock();\n node.handler = null;\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._catch) {\n var clause = this.startNode();\n this.next();\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL)) clause.param = this.parseCatchClauseParam();\n else {\n if (this.options.ecmaVersion < 10) this.unexpected();\n clause.param = null;\n this.enterScope(0);\n }\n clause.body = this.parseBlock(false);\n this.exitScope();\n node.handler = this.finishNode(clause, \"CatchClause\");\n }\n node.finalizer = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._finally) ? this.parseBlock() : null;\n if (!node.handler && !node.finalizer) this.raise(node.start, \"Missing catch or finally clause\");\n return this.finishNode(node, \"TryStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseVarStatement = function(node, kind, allowMissingInitializer) {\n this.next();\n this.parseVar(node, false, kind, allowMissingInitializer);\n this.semicolon();\n return this.finishNode(node, \"VariableDeclaration\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseWhileStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n this.labels.push($f0e98b2c23d58ac9$var$loopLabel);\n node.body = this.parseStatement(\"while\");\n this.labels.pop();\n return this.finishNode(node, \"WhileStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseWithStatement = function(node) {\n if (this.strict) this.raise(this.start, \"'with' in strict mode\");\n this.next();\n node.object = this.parseParenExpression();\n node.body = this.parseStatement(\"with\");\n return this.finishNode(node, \"WithStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseEmptyStatement = function(node) {\n this.next();\n return this.finishNode(node, \"EmptyStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseLabeledStatement = function(node, maybeName, expr, context) {\n for(var i$1 = 0, list = this.labels; i$1 < list.length; i$1 += 1){\n var label = list[i$1];\n if (label.name === maybeName) this.raise(expr.start, \"Label '\" + maybeName + \"' is already declared\");\n }\n var kind = this.type.isLoop ? \"loop\" : this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._switch ? \"switch\" : null;\n for(var i = this.labels.length - 1; i >= 0; i--){\n var label$1 = this.labels[i];\n if (label$1.statementStart === node.start) {\n // Update information about previous labels on this node\n label$1.statementStart = this.start;\n label$1.kind = kind;\n } else break;\n }\n this.labels.push({\n name: maybeName,\n kind: kind,\n statementStart: this.start\n });\n node.body = this.parseStatement(context ? context.indexOf(\"label\") === -1 ? context + \"label\" : context : \"label\");\n this.labels.pop();\n node.label = expr;\n return this.finishNode(node, \"LabeledStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseExpressionStatement = function(node, expr) {\n node.expression = expr;\n this.semicolon();\n return this.finishNode(node, \"ExpressionStatement\");\n};\n// Parse a semicolon-enclosed block of statements, handling `\"use\n// strict\"` declarations when `allowStrict` is true (used for\n// function bodies).\n$f0e98b2c23d58ac9$var$pp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) {\n if (createNewLexicalScope === void 0) createNewLexicalScope = true;\n if (node === void 0) node = this.startNode();\n node.body = [];\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL);\n if (createNewLexicalScope) this.enterScope(0);\n while(this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR){\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n if (exitStrict) this.strict = false;\n this.next();\n if (createNewLexicalScope) this.exitScope();\n return this.finishNode(node, \"BlockStatement\");\n};\n// Parse a regular `for` loop. The disambiguation code in\n// `parseStatement` will already have parsed the init statement or\n// expression.\n$f0e98b2c23d58ac9$var$pp$8.parseFor = function(node, init) {\n node.init = init;\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi);\n node.test = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi ? null : this.parseExpression();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi);\n node.update = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR ? null : this.parseExpression();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR);\n node.body = this.parseStatement(\"for\");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node, \"ForStatement\");\n};\n// Parse a `for`/`in` and `for`/`of` loop, which are almost\n// same from parser's perspective.\n$f0e98b2c23d58ac9$var$pp$8.parseForIn = function(node, init) {\n var isForIn = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in;\n this.next();\n if (init.type === \"VariableDeclaration\" && init.declarations[0].init != null && (!isForIn || this.options.ecmaVersion < 8 || this.strict || init.kind !== \"var\" || init.declarations[0].id.type !== \"Identifier\")) this.raise(init.start, (isForIn ? \"for-in\" : \"for-of\") + \" loop variable declaration may not have an initializer\");\n node.left = init;\n node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR);\n node.body = this.parseStatement(\"for\");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node, isForIn ? \"ForInStatement\" : \"ForOfStatement\");\n};\n// Parse a list of variable declarations.\n$f0e98b2c23d58ac9$var$pp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {\n node.declarations = [];\n node.kind = kind;\n for(;;){\n var decl = this.startNode();\n this.parseVarId(decl, kind);\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq)) decl.init = this.parseMaybeAssign(isFor);\n else if (!allowMissingInitializer && kind === \"const\" && !(this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in || this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) this.unexpected();\n else if (!allowMissingInitializer && decl.id.type !== \"Identifier\" && !(isFor && (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in || this.isContextual(\"of\")))) this.raise(this.lastTokEnd, \"Complex binding patterns require an initialization value\");\n else decl.init = null;\n node.declarations.push(this.finishNode(decl, \"VariableDeclarator\"));\n if (!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma)) break;\n }\n return node;\n};\n$f0e98b2c23d58ac9$var$pp$8.parseVarId = function(decl, kind) {\n decl.id = this.parseBindingAtom();\n this.checkLValPattern(decl.id, kind === \"var\" ? $f0e98b2c23d58ac9$var$BIND_VAR : $f0e98b2c23d58ac9$var$BIND_LEXICAL, false);\n};\nvar $f0e98b2c23d58ac9$var$FUNC_STATEMENT = 1, $f0e98b2c23d58ac9$var$FUNC_HANGING_STATEMENT = 2, $f0e98b2c23d58ac9$var$FUNC_NULLABLE_ID = 4;\n// Parse a function declaration or literal (depending on the\n// `statement & FUNC_STATEMENT`).\n// Remove `allowExpressionBody` for 7.0.0, as it is only called with false\n$f0e98b2c23d58ac9$var$pp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) {\n this.initFunction(node);\n if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) {\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star && statement & $f0e98b2c23d58ac9$var$FUNC_HANGING_STATEMENT) this.unexpected();\n node.generator = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star);\n }\n if (this.options.ecmaVersion >= 8) node.async = !!isAsync;\n if (statement & $f0e98b2c23d58ac9$var$FUNC_STATEMENT) {\n node.id = statement & $f0e98b2c23d58ac9$var$FUNC_NULLABLE_ID && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name ? null : this.parseIdent();\n if (node.id && !(statement & $f0e98b2c23d58ac9$var$FUNC_HANGING_STATEMENT)) this.checkLValSimple(node.id, this.strict || node.generator || node.async ? this.treatFunctionsAsVar ? $f0e98b2c23d58ac9$var$BIND_VAR : $f0e98b2c23d58ac9$var$BIND_LEXICAL : $f0e98b2c23d58ac9$var$BIND_FUNCTION);\n }\n var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope($f0e98b2c23d58ac9$var$functionFlags(node.async, node.generator));\n if (!(statement & $f0e98b2c23d58ac9$var$FUNC_STATEMENT)) node.id = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name ? this.parseIdent() : null;\n this.parseFunctionParams(node);\n this.parseFunctionBody(node, allowExpressionBody, false, forInit);\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, statement & $f0e98b2c23d58ac9$var$FUNC_STATEMENT ? \"FunctionDeclaration\" : \"FunctionExpression\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseFunctionParams = function(node) {\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL);\n node.params = this.parseBindingList($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR, false, this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n};\n// Parse a class declaration or literal (depending on the\n// `isStatement` parameter).\n$f0e98b2c23d58ac9$var$pp$8.parseClass = function(node, isStatement) {\n this.next();\n // ecma-262 14.6 Class Definitions\n // A class definition is always strict mode code.\n var oldStrict = this.strict;\n this.strict = true;\n this.parseClassId(node, isStatement);\n this.parseClassSuper(node);\n var privateNameMap = this.enterClassBody();\n var classBody = this.startNode();\n var hadConstructor = false;\n classBody.body = [];\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL);\n while(this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR){\n var element = this.parseClassElement(node.superClass !== null);\n if (element) {\n classBody.body.push(element);\n if (element.type === \"MethodDefinition\" && element.kind === \"constructor\") {\n if (hadConstructor) this.raiseRecoverable(element.start, \"Duplicate constructor in the same class\");\n hadConstructor = true;\n } else if (element.key && element.key.type === \"PrivateIdentifier\" && $f0e98b2c23d58ac9$var$isPrivateNameConflicted(privateNameMap, element)) this.raiseRecoverable(element.key.start, \"Identifier '#\" + element.key.name + \"' has already been declared\");\n }\n }\n this.strict = oldStrict;\n this.next();\n node.body = this.finishNode(classBody, \"ClassBody\");\n this.exitClassBody();\n return this.finishNode(node, isStatement ? \"ClassDeclaration\" : \"ClassExpression\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassElement = function(constructorAllowsSuper) {\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi)) return null;\n var ecmaVersion = this.options.ecmaVersion;\n var node = this.startNode();\n var keyName = \"\";\n var isGenerator = false;\n var isAsync = false;\n var kind = \"method\";\n var isStatic = false;\n if (this.eatContextual(\"static\")) {\n // Parse static init block\n if (ecmaVersion >= 13 && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL)) {\n this.parseClassStaticBlock(node);\n return node;\n }\n if (this.isClassElementNameStart() || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star) isStatic = true;\n else keyName = \"static\";\n }\n node.static = isStatic;\n if (!keyName && ecmaVersion >= 8 && this.eatContextual(\"async\")) {\n if ((this.isClassElementNameStart() || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star) && !this.canInsertSemicolon()) isAsync = true;\n else keyName = \"async\";\n }\n if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star)) isGenerator = true;\n if (!keyName && !isAsync && !isGenerator) {\n var lastValue = this.value;\n if (this.eatContextual(\"get\") || this.eatContextual(\"set\")) {\n if (this.isClassElementNameStart()) kind = lastValue;\n else keyName = lastValue;\n }\n }\n // Parse element name\n if (keyName) {\n // 'async', 'get', 'set', or 'static' were not a keyword contextually.\n // The last token is any of those. Make it the element name.\n node.computed = false;\n node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc);\n node.key.name = keyName;\n this.finishNode(node.key, \"Identifier\");\n } else this.parseClassElementName(node);\n // Parse element value\n if (ecmaVersion < 13 || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL || kind !== \"method\" || isGenerator || isAsync) {\n var isConstructor = !node.static && $f0e98b2c23d58ac9$var$checkKeyName(node, \"constructor\");\n var allowsDirectSuper = isConstructor && constructorAllowsSuper;\n // Couldn't move this check into the 'parseClassMethod' method for backward compatibility.\n if (isConstructor && kind !== \"method\") this.raise(node.key.start, \"Constructor can't have get/set modifier\");\n node.kind = isConstructor ? \"constructor\" : kind;\n this.parseClassMethod(node, isGenerator, isAsync, allowsDirectSuper);\n } else this.parseClassField(node);\n return node;\n};\n$f0e98b2c23d58ac9$var$pp$8.isClassElementNameStart = function() {\n return this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.privateId || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.num || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL || this.type.keyword;\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassElementName = function(element) {\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.privateId) {\n if (this.value === \"constructor\") this.raise(this.start, \"Classes can't have an element named '#constructor'\");\n element.computed = false;\n element.key = this.parsePrivateIdent();\n } else this.parsePropertyName(element);\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassMethod = function(method, isGenerator, isAsync, allowsDirectSuper) {\n // Check key and flags\n var key = method.key;\n if (method.kind === \"constructor\") {\n if (isGenerator) this.raise(key.start, \"Constructor can't be a generator\");\n if (isAsync) this.raise(key.start, \"Constructor can't be an async method\");\n } else if (method.static && $f0e98b2c23d58ac9$var$checkKeyName(method, \"prototype\")) this.raise(key.start, \"Classes may not have a static property named prototype\");\n // Parse value\n var value = method.value = this.parseMethod(isGenerator, isAsync, allowsDirectSuper);\n // Check value\n if (method.kind === \"get\" && value.params.length !== 0) this.raiseRecoverable(value.start, \"getter should have no params\");\n if (method.kind === \"set\" && value.params.length !== 1) this.raiseRecoverable(value.start, \"setter should have exactly one param\");\n if (method.kind === \"set\" && value.params[0].type === \"RestElement\") this.raiseRecoverable(value.params[0].start, \"Setter cannot use rest params\");\n return this.finishNode(method, \"MethodDefinition\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassField = function(field) {\n if ($f0e98b2c23d58ac9$var$checkKeyName(field, \"constructor\")) this.raise(field.key.start, \"Classes can't have a field named 'constructor'\");\n else if (field.static && $f0e98b2c23d58ac9$var$checkKeyName(field, \"prototype\")) this.raise(field.key.start, \"Classes can't have a static field named 'prototype'\");\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq)) {\n // To raise SyntaxError if 'arguments' exists in the initializer.\n var scope = this.currentThisScope();\n var inClassFieldInit = scope.inClassFieldInit;\n scope.inClassFieldInit = true;\n field.value = this.parseMaybeAssign();\n scope.inClassFieldInit = inClassFieldInit;\n } else field.value = null;\n this.semicolon();\n return this.finishNode(field, \"PropertyDefinition\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassStaticBlock = function(node) {\n node.body = [];\n var oldLabels = this.labels;\n this.labels = [];\n this.enterScope($f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK | $f0e98b2c23d58ac9$var$SCOPE_SUPER);\n while(this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR){\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n this.next();\n this.exitScope();\n this.labels = oldLabels;\n return this.finishNode(node, \"StaticBlock\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassId = function(node, isStatement) {\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) {\n node.id = this.parseIdent();\n if (isStatement) this.checkLValSimple(node.id, $f0e98b2c23d58ac9$var$BIND_LEXICAL, false);\n } else {\n if (isStatement === true) this.unexpected();\n node.id = null;\n }\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassSuper = function(node) {\n node.superClass = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._extends) ? this.parseExprSubscripts(null, false) : null;\n};\n$f0e98b2c23d58ac9$var$pp$8.enterClassBody = function() {\n var element = {\n declared: Object.create(null),\n used: []\n };\n this.privateNameStack.push(element);\n return element.declared;\n};\n$f0e98b2c23d58ac9$var$pp$8.exitClassBody = function() {\n var ref = this.privateNameStack.pop();\n var declared = ref.declared;\n var used = ref.used;\n if (!this.options.checkPrivateFields) return;\n var len = this.privateNameStack.length;\n var parent = len === 0 ? null : this.privateNameStack[len - 1];\n for(var i = 0; i < used.length; ++i){\n var id = used[i];\n if (!$f0e98b2c23d58ac9$var$hasOwn(declared, id.name)) {\n if (parent) parent.used.push(id);\n else this.raiseRecoverable(id.start, \"Private field '#\" + id.name + \"' must be declared in an enclosing class\");\n }\n }\n};\nfunction $f0e98b2c23d58ac9$var$isPrivateNameConflicted(privateNameMap, element) {\n var name = element.key.name;\n var curr = privateNameMap[name];\n var next = \"true\";\n if (element.type === \"MethodDefinition\" && (element.kind === \"get\" || element.kind === \"set\")) next = (element.static ? \"s\" : \"i\") + element.kind;\n // `class { get #a(){}; static set #a(_){} }` is also conflict.\n if (curr === \"iget\" && next === \"iset\" || curr === \"iset\" && next === \"iget\" || curr === \"sget\" && next === \"sset\" || curr === \"sset\" && next === \"sget\") {\n privateNameMap[name] = \"true\";\n return false;\n } else if (!curr) {\n privateNameMap[name] = next;\n return false;\n } else return true;\n}\nfunction $f0e98b2c23d58ac9$var$checkKeyName(node, name) {\n var computed = node.computed;\n var key = node.key;\n return !computed && (key.type === \"Identifier\" && key.name === name || key.type === \"Literal\" && key.value === name);\n}\n// Parses module export declaration.\n$f0e98b2c23d58ac9$var$pp$8.parseExportAllDeclaration = function(node, exports) {\n if (this.options.ecmaVersion >= 11) {\n if (this.eatContextual(\"as\")) {\n node.exported = this.parseModuleExportName();\n this.checkExport(exports, node.exported, this.lastTokStart);\n } else node.exported = null;\n }\n this.expectContextual(\"from\");\n if (this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string) this.unexpected();\n node.source = this.parseExprAtom();\n this.semicolon();\n return this.finishNode(node, \"ExportAllDeclaration\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseExport = function(node, exports) {\n this.next();\n // export * from '...'\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star)) return this.parseExportAllDeclaration(node, exports);\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._default)) {\n this.checkExport(exports, \"default\", this.lastTokStart);\n node.declaration = this.parseExportDefaultDeclaration();\n return this.finishNode(node, \"ExportDefaultDeclaration\");\n }\n // export var|const|let|function|class ...\n if (this.shouldParseExportStatement()) {\n node.declaration = this.parseExportDeclaration(node);\n if (node.declaration.type === \"VariableDeclaration\") this.checkVariableExport(exports, node.declaration.declarations);\n else this.checkExport(exports, node.declaration.id, node.declaration.id.start);\n node.specifiers = [];\n node.source = null;\n } else {\n node.declaration = null;\n node.specifiers = this.parseExportSpecifiers(exports);\n if (this.eatContextual(\"from\")) {\n if (this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string) this.unexpected();\n node.source = this.parseExprAtom();\n } else {\n for(var i = 0, list = node.specifiers; i < list.length; i += 1){\n // check for keywords used as local names\n var spec = list[i];\n this.checkUnreserved(spec.local);\n // check if export is defined\n this.checkLocalExport(spec.local);\n if (spec.local.type === \"Literal\") this.raise(spec.local.start, \"A string literal cannot be used as an exported binding without `from`.\");\n }\n node.source = null;\n }\n this.semicolon();\n }\n return this.finishNode(node, \"ExportNamedDeclaration\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseExportDeclaration = function(node) {\n return this.parseStatement(null);\n};\n$f0e98b2c23d58ac9$var$pp$8.parseExportDefaultDeclaration = function() {\n var isAsync;\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._function || (isAsync = this.isAsyncFunction())) {\n var fNode = this.startNode();\n this.next();\n if (isAsync) this.next();\n return this.parseFunction(fNode, $f0e98b2c23d58ac9$var$FUNC_STATEMENT | $f0e98b2c23d58ac9$var$FUNC_NULLABLE_ID, false, isAsync);\n } else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._class) {\n var cNode = this.startNode();\n return this.parseClass(cNode, \"nullableID\");\n } else {\n var declaration = this.parseMaybeAssign();\n this.semicolon();\n return declaration;\n }\n};\n$f0e98b2c23d58ac9$var$pp$8.checkExport = function(exports, name, pos) {\n if (!exports) return;\n if (typeof name !== \"string\") name = name.type === \"Identifier\" ? name.name : name.value;\n if ($f0e98b2c23d58ac9$var$hasOwn(exports, name)) this.raiseRecoverable(pos, \"Duplicate export '\" + name + \"'\");\n exports[name] = true;\n};\n$f0e98b2c23d58ac9$var$pp$8.checkPatternExport = function(exports, pat) {\n var type = pat.type;\n if (type === \"Identifier\") this.checkExport(exports, pat, pat.start);\n else if (type === \"ObjectPattern\") for(var i = 0, list = pat.properties; i < list.length; i += 1){\n var prop = list[i];\n this.checkPatternExport(exports, prop);\n }\n else if (type === \"ArrayPattern\") for(var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1){\n var elt = list$1[i$1];\n if (elt) this.checkPatternExport(exports, elt);\n }\n else if (type === \"Property\") this.checkPatternExport(exports, pat.value);\n else if (type === \"AssignmentPattern\") this.checkPatternExport(exports, pat.left);\n else if (type === \"RestElement\") this.checkPatternExport(exports, pat.argument);\n};\n$f0e98b2c23d58ac9$var$pp$8.checkVariableExport = function(exports, decls) {\n if (!exports) return;\n for(var i = 0, list = decls; i < list.length; i += 1){\n var decl = list[i];\n this.checkPatternExport(exports, decl.id);\n }\n};\n$f0e98b2c23d58ac9$var$pp$8.shouldParseExportStatement = function() {\n return this.type.keyword === \"var\" || this.type.keyword === \"const\" || this.type.keyword === \"class\" || this.type.keyword === \"function\" || this.isLet() || this.isAsyncFunction();\n};\n// Parses a comma-separated list of module exports.\n$f0e98b2c23d58ac9$var$pp$8.parseExportSpecifier = function(exports) {\n var node = this.startNode();\n node.local = this.parseModuleExportName();\n node.exported = this.eatContextual(\"as\") ? this.parseModuleExportName() : node.local;\n this.checkExport(exports, node.exported, node.exported.start);\n return this.finishNode(node, \"ExportSpecifier\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseExportSpecifiers = function(exports) {\n var nodes = [], first = true;\n // export { x, y as z } [from '...']\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL);\n while(!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR)){\n if (!first) {\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma);\n if (this.afterTrailingComma($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR)) break;\n } else first = false;\n nodes.push(this.parseExportSpecifier(exports));\n }\n return nodes;\n};\n// Parses import declaration.\n$f0e98b2c23d58ac9$var$pp$8.parseImport = function(node) {\n this.next();\n // import '...'\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string) {\n node.specifiers = $f0e98b2c23d58ac9$var$empty$1;\n node.source = this.parseExprAtom();\n } else {\n node.specifiers = this.parseImportSpecifiers();\n this.expectContextual(\"from\");\n node.source = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string ? this.parseExprAtom() : this.unexpected();\n }\n this.semicolon();\n return this.finishNode(node, \"ImportDeclaration\");\n};\n// Parses a comma-separated list of module imports.\n$f0e98b2c23d58ac9$var$pp$8.parseImportSpecifier = function() {\n var node = this.startNode();\n node.imported = this.parseModuleExportName();\n if (this.eatContextual(\"as\")) node.local = this.parseIdent();\n else {\n this.checkUnreserved(node.imported);\n node.local = node.imported;\n }\n this.checkLValSimple(node.local, $f0e98b2c23d58ac9$var$BIND_LEXICAL);\n return this.finishNode(node, \"ImportSpecifier\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseImportDefaultSpecifier = function() {\n // import defaultObj, { x, y as z } from '...'\n var node = this.startNode();\n node.local = this.parseIdent();\n this.checkLValSimple(node.local, $f0e98b2c23d58ac9$var$BIND_LEXICAL);\n return this.finishNode(node, \"ImportDefaultSpecifier\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseImportNamespaceSpecifier = function() {\n var node = this.startNode();\n this.next();\n this.expectContextual(\"as\");\n node.local = this.parseIdent();\n this.checkLValSimple(node.local, $f0e98b2c23d58ac9$var$BIND_LEXICAL);\n return this.finishNode(node, \"ImportNamespaceSpecifier\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseImportSpecifiers = function() {\n var nodes = [], first = true;\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) {\n nodes.push(this.parseImportDefaultSpecifier());\n if (!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma)) return nodes;\n }\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star) {\n nodes.push(this.parseImportNamespaceSpecifier());\n return nodes;\n }\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL);\n while(!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR)){\n if (!first) {\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma);\n if (this.afterTrailingComma($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR)) break;\n } else first = false;\n nodes.push(this.parseImportSpecifier());\n }\n return nodes;\n};\n$f0e98b2c23d58ac9$var$pp$8.parseModuleExportName = function() {\n if (this.options.ecmaVersion >= 13 && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string) {\n var stringLiteral = this.parseLiteral(this.value);\n if ($f0e98b2c23d58ac9$var$loneSurrogate.test(stringLiteral.value)) this.raise(stringLiteral.start, \"An export name cannot include a lone surrogate.\");\n return stringLiteral;\n }\n return this.parseIdent(true);\n};\n// Set `ExpressionStatement#directive` property for directive prologues.\n$f0e98b2c23d58ac9$var$pp$8.adaptDirectivePrologue = function(statements) {\n for(var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i)statements[i].directive = statements[i].expression.raw.slice(1, -1);\n};\n$f0e98b2c23d58ac9$var$pp$8.isDirectiveCandidate = function(statement) {\n return this.options.ecmaVersion >= 5 && statement.type === \"ExpressionStatement\" && statement.expression.type === \"Literal\" && typeof statement.expression.value === \"string\" && // Reject parenthesized strings.\n (this.input[statement.start] === '\"' || this.input[statement.start] === \"'\");\n};\nvar $f0e98b2c23d58ac9$var$pp$7 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// Convert existing expression atom to assignable pattern\n// if possible.\n$f0e98b2c23d58ac9$var$pp$7.toAssignable = function(node, isBinding, refDestructuringErrors) {\n if (this.options.ecmaVersion >= 6 && node) switch(node.type){\n case \"Identifier\":\n if (this.inAsync && node.name === \"await\") this.raise(node.start, \"Cannot use 'await' as identifier inside an async function\");\n break;\n case \"ObjectPattern\":\n case \"ArrayPattern\":\n case \"AssignmentPattern\":\n case \"RestElement\":\n break;\n case \"ObjectExpression\":\n node.type = \"ObjectPattern\";\n if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true);\n for(var i = 0, list = node.properties; i < list.length; i += 1){\n var prop = list[i];\n this.toAssignable(prop, isBinding);\n // Early error:\n // AssignmentRestProperty[Yield, Await] :\n // `...` DestructuringAssignmentTarget[Yield, Await]\n //\n // It is a Syntax Error if |DestructuringAssignmentTarget| is an |ArrayLiteral| or an |ObjectLiteral|.\n if (prop.type === \"RestElement\" && (prop.argument.type === \"ArrayPattern\" || prop.argument.type === \"ObjectPattern\")) this.raise(prop.argument.start, \"Unexpected token\");\n }\n break;\n case \"Property\":\n // AssignmentProperty has type === \"Property\"\n if (node.kind !== \"init\") this.raise(node.key.start, \"Object pattern can't contain getter or setter\");\n this.toAssignable(node.value, isBinding);\n break;\n case \"ArrayExpression\":\n node.type = \"ArrayPattern\";\n if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true);\n this.toAssignableList(node.elements, isBinding);\n break;\n case \"SpreadElement\":\n node.type = \"RestElement\";\n this.toAssignable(node.argument, isBinding);\n if (node.argument.type === \"AssignmentPattern\") this.raise(node.argument.start, \"Rest elements cannot have a default value\");\n break;\n case \"AssignmentExpression\":\n if (node.operator !== \"=\") this.raise(node.left.end, \"Only '=' operator can be used for specifying default value.\");\n node.type = \"AssignmentPattern\";\n delete node.operator;\n this.toAssignable(node.left, isBinding);\n break;\n case \"ParenthesizedExpression\":\n this.toAssignable(node.expression, isBinding, refDestructuringErrors);\n break;\n case \"ChainExpression\":\n this.raiseRecoverable(node.start, \"Optional chaining cannot appear in left-hand side\");\n break;\n case \"MemberExpression\":\n if (!isBinding) break;\n default:\n this.raise(node.start, \"Assigning to rvalue\");\n }\n else if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true);\n return node;\n};\n// Convert list of expression atoms to binding list.\n$f0e98b2c23d58ac9$var$pp$7.toAssignableList = function(exprList, isBinding) {\n var end = exprList.length;\n for(var i = 0; i < end; i++){\n var elt = exprList[i];\n if (elt) this.toAssignable(elt, isBinding);\n }\n if (end) {\n var last = exprList[end - 1];\n if (this.options.ecmaVersion === 6 && isBinding && last && last.type === \"RestElement\" && last.argument.type !== \"Identifier\") this.unexpected(last.argument.start);\n }\n return exprList;\n};\n// Parses spread element.\n$f0e98b2c23d58ac9$var$pp$7.parseSpread = function(refDestructuringErrors) {\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeAssign(false, refDestructuringErrors);\n return this.finishNode(node, \"SpreadElement\");\n};\n$f0e98b2c23d58ac9$var$pp$7.parseRestBinding = function() {\n var node = this.startNode();\n this.next();\n // RestElement inside of a function parameter must be an identifier\n if (this.options.ecmaVersion === 6 && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) this.unexpected();\n node.argument = this.parseBindingAtom();\n return this.finishNode(node, \"RestElement\");\n};\n// Parses lvalue (assignable) atom.\n$f0e98b2c23d58ac9$var$pp$7.parseBindingAtom = function() {\n if (this.options.ecmaVersion >= 6) switch(this.type){\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL:\n var node = this.startNode();\n this.next();\n node.elements = this.parseBindingList($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketR, true, true);\n return this.finishNode(node, \"ArrayPattern\");\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL:\n return this.parseObj(true);\n }\n return this.parseIdent();\n};\n$f0e98b2c23d58ac9$var$pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {\n var elts = [], first = true;\n while(!this.eat(close)){\n if (first) first = false;\n else this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma);\n if (allowEmpty && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) elts.push(null);\n else if (allowTrailingComma && this.afterTrailingComma(close)) break;\n else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.ellipsis) {\n var rest = this.parseRestBinding();\n this.parseBindingListItem(rest);\n elts.push(rest);\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\");\n this.expect(close);\n break;\n } else elts.push(this.parseAssignableListItem(allowModifiers));\n }\n return elts;\n};\n$f0e98b2c23d58ac9$var$pp$7.parseAssignableListItem = function(allowModifiers) {\n var elem = this.parseMaybeDefault(this.start, this.startLoc);\n this.parseBindingListItem(elem);\n return elem;\n};\n$f0e98b2c23d58ac9$var$pp$7.parseBindingListItem = function(param) {\n return param;\n};\n// Parses assignment pattern around given atom if possible.\n$f0e98b2c23d58ac9$var$pp$7.parseMaybeDefault = function(startPos, startLoc, left) {\n left = left || this.parseBindingAtom();\n if (this.options.ecmaVersion < 6 || !this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq)) return left;\n var node = this.startNodeAt(startPos, startLoc);\n node.left = left;\n node.right = this.parseMaybeAssign();\n return this.finishNode(node, \"AssignmentPattern\");\n};\n// The following three functions all verify that a node is an lvalue —\n// something that can be bound, or assigned to. In order to do so, they perform\n// a variety of checks:\n//\n// - Check that none of the bound/assigned-to identifiers are reserved words.\n// - Record name declarations for bindings in the appropriate scope.\n// - Check duplicate argument names, if checkClashes is set.\n//\n// If a complex binding pattern is encountered (e.g., object and array\n// destructuring), the entire pattern is recursively checked.\n//\n// There are three versions of checkLVal*() appropriate for different\n// circumstances:\n//\n// - checkLValSimple() shall be used if the syntactic construct supports\n// nothing other than identifiers and member expressions. Parenthesized\n// expressions are also correctly handled. This is generally appropriate for\n// constructs for which the spec says\n//\n// > It is a Syntax Error if AssignmentTargetType of [the production] is not\n// > simple.\n//\n// It is also appropriate for checking if an identifier is valid and not\n// defined elsewhere, like import declarations or function/class identifiers.\n//\n// Examples where this is used include:\n// a += …;\n// import a from '…';\n// where a is the node to be checked.\n//\n// - checkLValPattern() shall be used if the syntactic construct supports\n// anything checkLValSimple() supports, as well as object and array\n// destructuring patterns. This is generally appropriate for constructs for\n// which the spec says\n//\n// > It is a Syntax Error if [the production] is neither an ObjectLiteral nor\n// > an ArrayLiteral and AssignmentTargetType of [the production] is not\n// > simple.\n//\n// Examples where this is used include:\n// (a = …);\n// const a = …;\n// try { … } catch (a) { … }\n// where a is the node to be checked.\n//\n// - checkLValInnerPattern() shall be used if the syntactic construct supports\n// anything checkLValPattern() supports, as well as default assignment\n// patterns, rest elements, and other constructs that may appear within an\n// object or array destructuring pattern.\n//\n// As a special case, function parameters also use checkLValInnerPattern(),\n// as they also support defaults and rest constructs.\n//\n// These functions deliberately support both assignment and binding constructs,\n// as the logic for both is exceedingly similar. If the node is the target of\n// an assignment, then bindingType should be set to BIND_NONE. Otherwise, it\n// should be set to the appropriate BIND_* constant, like BIND_VAR or\n// BIND_LEXICAL.\n//\n// If the function is called with a non-BIND_NONE bindingType, then\n// additionally a checkClashes object may be specified to allow checking for\n// duplicate argument names. checkClashes is ignored if the provided construct\n// is an assignment (i.e., bindingType is BIND_NONE).\n$f0e98b2c23d58ac9$var$pp$7.checkLValSimple = function(expr, bindingType, checkClashes) {\n if (bindingType === void 0) bindingType = $f0e98b2c23d58ac9$var$BIND_NONE;\n var isBind = bindingType !== $f0e98b2c23d58ac9$var$BIND_NONE;\n switch(expr.type){\n case \"Identifier\":\n if (this.strict && this.reservedWordsStrictBind.test(expr.name)) this.raiseRecoverable(expr.start, (isBind ? \"Binding \" : \"Assigning to \") + expr.name + \" in strict mode\");\n if (isBind) {\n if (bindingType === $f0e98b2c23d58ac9$var$BIND_LEXICAL && expr.name === \"let\") this.raiseRecoverable(expr.start, \"let is disallowed as a lexically bound name\");\n if (checkClashes) {\n if ($f0e98b2c23d58ac9$var$hasOwn(checkClashes, expr.name)) this.raiseRecoverable(expr.start, \"Argument name clash\");\n checkClashes[expr.name] = true;\n }\n if (bindingType !== $f0e98b2c23d58ac9$var$BIND_OUTSIDE) this.declareName(expr.name, bindingType, expr.start);\n }\n break;\n case \"ChainExpression\":\n this.raiseRecoverable(expr.start, \"Optional chaining cannot appear in left-hand side\");\n break;\n case \"MemberExpression\":\n if (isBind) this.raiseRecoverable(expr.start, \"Binding member expression\");\n break;\n case \"ParenthesizedExpression\":\n if (isBind) this.raiseRecoverable(expr.start, \"Binding parenthesized expression\");\n return this.checkLValSimple(expr.expression, bindingType, checkClashes);\n default:\n this.raise(expr.start, (isBind ? \"Binding\" : \"Assigning to\") + \" rvalue\");\n }\n};\n$f0e98b2c23d58ac9$var$pp$7.checkLValPattern = function(expr, bindingType, checkClashes) {\n if (bindingType === void 0) bindingType = $f0e98b2c23d58ac9$var$BIND_NONE;\n switch(expr.type){\n case \"ObjectPattern\":\n for(var i = 0, list = expr.properties; i < list.length; i += 1){\n var prop = list[i];\n this.checkLValInnerPattern(prop, bindingType, checkClashes);\n }\n break;\n case \"ArrayPattern\":\n for(var i$1 = 0, list$1 = expr.elements; i$1 < list$1.length; i$1 += 1){\n var elem = list$1[i$1];\n if (elem) this.checkLValInnerPattern(elem, bindingType, checkClashes);\n }\n break;\n default:\n this.checkLValSimple(expr, bindingType, checkClashes);\n }\n};\n$f0e98b2c23d58ac9$var$pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {\n if (bindingType === void 0) bindingType = $f0e98b2c23d58ac9$var$BIND_NONE;\n switch(expr.type){\n case \"Property\":\n // AssignmentProperty has type === \"Property\"\n this.checkLValInnerPattern(expr.value, bindingType, checkClashes);\n break;\n case \"AssignmentPattern\":\n this.checkLValPattern(expr.left, bindingType, checkClashes);\n break;\n case \"RestElement\":\n this.checkLValPattern(expr.argument, bindingType, checkClashes);\n break;\n default:\n this.checkLValPattern(expr, bindingType, checkClashes);\n }\n};\n// The algorithm used to determine whether a regexp can appear at a\n// given point in the program is loosely based on sweet.js' approach.\n// See https://github.com/mozilla/sweet.js/wiki/design\nvar $f0e98b2c23d58ac9$export$68e7b4c4d99215d9 = function TokContext(token, isExpr, preserveSpace, override, generator) {\n this.token = token;\n this.isExpr = !!isExpr;\n this.preserveSpace = !!preserveSpace;\n this.override = override;\n this.generator = !!generator;\n};\nvar $f0e98b2c23d58ac9$export$2b5f701edfbd6f00 = {\n b_stat: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"{\", false),\n b_expr: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"{\", true),\n b_tmpl: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"${\", false),\n p_stat: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"(\", false),\n p_expr: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"(\", true),\n q_tmpl: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"`\", true, true, function(p) {\n return p.tryReadTemplateToken();\n }),\n f_stat: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"function\", false),\n f_expr: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"function\", true),\n f_expr_gen: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"function\", true, false, null, true),\n f_gen: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"function\", false, false, null, true)\n};\nvar $f0e98b2c23d58ac9$var$pp$6 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n$f0e98b2c23d58ac9$var$pp$6.initialContext = function() {\n return [\n $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_stat\n ];\n};\n$f0e98b2c23d58ac9$var$pp$6.curContext = function() {\n return this.context[this.context.length - 1];\n};\n$f0e98b2c23d58ac9$var$pp$6.braceIsBlock = function(prevType) {\n var parent = this.curContext();\n if (parent === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_expr || parent === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_stat) return true;\n if (prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon && (parent === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_stat || parent === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_expr)) return !parent.isExpr;\n // The check for `tt.name && exprAllowed` detects whether we are\n // after a `yield` or `of` construct. See the `updateContext` for\n // `tt.name`.\n if (prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._return || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name && this.exprAllowed) return $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start));\n if (prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._else || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.arrow) return true;\n if (prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL) return parent === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_stat;\n if (prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._var || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._const || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) return false;\n return !this.exprAllowed;\n};\n$f0e98b2c23d58ac9$var$pp$6.inGeneratorContext = function() {\n for(var i = this.context.length - 1; i >= 1; i--){\n var context = this.context[i];\n if (context.token === \"function\") return context.generator;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$pp$6.updateContext = function(prevType) {\n var update, type = this.type;\n if (type.keyword && prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot) this.exprAllowed = false;\n else if (update = type.updateContext) update.call(this, prevType);\n else this.exprAllowed = type.beforeExpr;\n};\n// Used to handle edge cases when token context could not be inferred correctly during tokenization phase\n$f0e98b2c23d58ac9$var$pp$6.overrideContext = function(tokenCtx) {\n if (this.curContext() !== tokenCtx) this.context[this.context.length - 1] = tokenCtx;\n};\n// Token-specific context update code\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR.updateContext = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR.updateContext = function() {\n if (this.context.length === 1) {\n this.exprAllowed = true;\n return;\n }\n var out = this.context.pop();\n if (out === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_stat && this.curContext().token === \"function\") out = this.context.pop();\n this.exprAllowed = !out.isExpr;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL.updateContext = function(prevType) {\n this.context.push(this.braceIsBlock(prevType) ? $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_stat : $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_expr);\n this.exprAllowed = true;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dollarBraceL.updateContext = function() {\n this.context.push($f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_tmpl);\n this.exprAllowed = true;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL.updateContext = function(prevType) {\n var statementParens = prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._if || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._for || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._with || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._while;\n this.context.push(statementParens ? $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.p_stat : $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.p_expr);\n this.exprAllowed = true;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.incDec.updateContext = function() {\n// tokExprAllowed stays unchanged\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._function.updateContext = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._class.updateContext = function(prevType) {\n if (prevType.beforeExpr && prevType !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._else && !(prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi && this.curContext() !== $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.p_stat) && !(prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._return && $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start))) && !((prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL) && this.curContext() === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_stat)) this.context.push($f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_expr);\n else this.context.push($f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_stat);\n this.exprAllowed = false;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon.updateContext = function() {\n if (this.curContext().token === \"function\") this.context.pop();\n this.exprAllowed = true;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.backQuote.updateContext = function() {\n if (this.curContext() === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.q_tmpl) this.context.pop();\n else this.context.push($f0e98b2c23d58ac9$export$2b5f701edfbd6f00.q_tmpl);\n this.exprAllowed = false;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star.updateContext = function(prevType) {\n if (prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._function) {\n var index = this.context.length - 1;\n if (this.context[index] === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_expr) this.context[index] = $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_expr_gen;\n else this.context[index] = $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_gen;\n }\n this.exprAllowed = true;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name.updateContext = function(prevType) {\n var allowed = false;\n if (this.options.ecmaVersion >= 6 && prevType !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot) {\n if (this.value === \"of\" && !this.exprAllowed || this.value === \"yield\" && this.inGeneratorContext()) allowed = true;\n }\n this.exprAllowed = allowed;\n};\n// A recursive descent parser operates by defining functions for all\n// syntactic elements, and recursively calling those, each function\n// advancing the input stream and returning an AST node. Precedence\n// of constructs (for example, the fact that `!x[1]` means `!(x[1])`\n// instead of `(!x)[1]` is handled by the fact that the parser\n// function that parses unary prefix operators is called first, and\n// in turn calls the function that parses `[]` subscripts — that\n// way, it'll receive the node for `x[1]` already parsed, and wraps\n// *that* in the unary operator node.\n//\n// Acorn uses an [operator precedence parser][opp] to handle binary\n// operator precedence, because it is much more compact than using\n// the technique outlined above, which uses different, nesting\n// functions to specify precedence, for all of the ten binary\n// precedence levels that JavaScript defines.\n//\n// [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser\nvar $f0e98b2c23d58ac9$var$pp$5 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// Check if property name clashes with already added.\n// Object/class getters and setters are not allowed to clash —\n// either with each other or with an init property — and in\n// strict mode, init properties are also not allowed to be repeated.\n$f0e98b2c23d58ac9$var$pp$5.checkPropClash = function(prop, propHash, refDestructuringErrors) {\n if (this.options.ecmaVersion >= 9 && prop.type === \"SpreadElement\") return;\n if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand)) return;\n var key = prop.key;\n var name;\n switch(key.type){\n case \"Identifier\":\n name = key.name;\n break;\n case \"Literal\":\n name = String(key.value);\n break;\n default:\n return;\n }\n var kind = prop.kind;\n if (this.options.ecmaVersion >= 6) {\n if (name === \"__proto__\" && kind === \"init\") {\n if (propHash.proto) {\n if (refDestructuringErrors) {\n if (refDestructuringErrors.doubleProto < 0) refDestructuringErrors.doubleProto = key.start;\n } else this.raiseRecoverable(key.start, \"Redefinition of __proto__ property\");\n }\n propHash.proto = true;\n }\n return;\n }\n name = \"$\" + name;\n var other = propHash[name];\n if (other) {\n var redefinition;\n if (kind === \"init\") redefinition = this.strict && other.init || other.get || other.set;\n else redefinition = other.init || other[kind];\n if (redefinition) this.raiseRecoverable(key.start, \"Redefinition of property\");\n } else other = propHash[name] = {\n init: false,\n get: false,\n set: false\n };\n other[kind] = true;\n};\n// ### Expression parsing\n// These nest, from the most general expression type at the top to\n// 'atomic', nondivisible expression types at the bottom. Most of\n// the functions will simply let the function(s) below them parse,\n// and, *if* the syntactic construct they handle is present, wrap\n// the AST node that the inner parser gave them in another node.\n// Parse a full expression. The optional arguments are used to\n// forbid the `in` operator (in for loops initalization expressions)\n// and provide reference for storing '=' operator inside shorthand\n// property assignment in contexts where both object expression\n// and object pattern might appear (so it's possible to raise\n// delayed syntax error at correct position).\n$f0e98b2c23d58ac9$var$pp$5.parseExpression = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseMaybeAssign(forInit, refDestructuringErrors);\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) {\n var node = this.startNodeAt(startPos, startLoc);\n node.expressions = [\n expr\n ];\n while(this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma))node.expressions.push(this.parseMaybeAssign(forInit, refDestructuringErrors));\n return this.finishNode(node, \"SequenceExpression\");\n }\n return expr;\n};\n// Parse an assignment expression. This includes applications of\n// operators like `+=`.\n$f0e98b2c23d58ac9$var$pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {\n if (this.isContextual(\"yield\")) {\n if (this.inGenerator) return this.parseYield(forInit);\n else this.exprAllowed = false;\n }\n var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1;\n if (refDestructuringErrors) {\n oldParenAssign = refDestructuringErrors.parenthesizedAssign;\n oldTrailingComma = refDestructuringErrors.trailingComma;\n oldDoubleProto = refDestructuringErrors.doubleProto;\n refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1;\n } else {\n refDestructuringErrors = new $f0e98b2c23d58ac9$var$DestructuringErrors;\n ownDestructuringErrors = true;\n }\n var startPos = this.start, startLoc = this.startLoc;\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) {\n this.potentialArrowAt = this.start;\n this.potentialArrowInForAwait = forInit === \"await\";\n }\n var left = this.parseMaybeConditional(forInit, refDestructuringErrors);\n if (afterLeftParse) left = afterLeftParse.call(this, left, startPos, startLoc);\n if (this.type.isAssign) {\n var node = this.startNodeAt(startPos, startLoc);\n node.operator = this.value;\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq) left = this.toAssignable(left, false, refDestructuringErrors);\n if (!ownDestructuringErrors) refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1;\n if (refDestructuringErrors.shorthandAssign >= left.start) refDestructuringErrors.shorthandAssign = -1;\n // reset because shorthand default was used correctly\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq) this.checkLValPattern(left);\n else this.checkLValSimple(left);\n node.left = left;\n this.next();\n node.right = this.parseMaybeAssign(forInit);\n if (oldDoubleProto > -1) refDestructuringErrors.doubleProto = oldDoubleProto;\n return this.finishNode(node, \"AssignmentExpression\");\n } else if (ownDestructuringErrors) this.checkExpressionErrors(refDestructuringErrors, true);\n if (oldParenAssign > -1) refDestructuringErrors.parenthesizedAssign = oldParenAssign;\n if (oldTrailingComma > -1) refDestructuringErrors.trailingComma = oldTrailingComma;\n return left;\n};\n// Parse a ternary conditional (`?:`) operator.\n$f0e98b2c23d58ac9$var$pp$5.parseMaybeConditional = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseExprOps(forInit, refDestructuringErrors);\n if (this.checkExpressionErrors(refDestructuringErrors)) return expr;\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.question)) {\n var node = this.startNodeAt(startPos, startLoc);\n node.test = expr;\n node.consequent = this.parseMaybeAssign();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon);\n node.alternate = this.parseMaybeAssign(forInit);\n return this.finishNode(node, \"ConditionalExpression\");\n }\n return expr;\n};\n// Start the precedence parser.\n$f0e98b2c23d58ac9$var$pp$5.parseExprOps = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseMaybeUnary(refDestructuringErrors, false, false, forInit);\n if (this.checkExpressionErrors(refDestructuringErrors)) return expr;\n return expr.start === startPos && expr.type === \"ArrowFunctionExpression\" ? expr : this.parseExprOp(expr, startPos, startLoc, -1, forInit);\n};\n// Parse binary operators with the operator precedence parsing\n// algorithm. `left` is the left-hand side of the operator.\n// `minPrec` provides context that allows the function to stop and\n// defer further parser to one of its callers when it encounters an\n// operator that has a lower precedence than the set it is parsing.\n$f0e98b2c23d58ac9$var$pp$5.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) {\n var prec = this.type.binop;\n if (prec != null && (!forInit || this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in)) {\n if (prec > minPrec) {\n var logical = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalOR || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalAND;\n var coalesce = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.coalesce;\n if (coalesce) // Handle the precedence of `tt.coalesce` as equal to the range of logical expressions.\n // In other words, `node.right` shouldn't contain logical expressions in order to check the mixed error.\n prec = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalAND.binop;\n var op = this.value;\n this.next();\n var startPos = this.start, startLoc = this.startLoc;\n var right = this.parseExprOp(this.parseMaybeUnary(null, false, false, forInit), startPos, startLoc, prec, forInit);\n var node = this.buildBinary(leftStartPos, leftStartLoc, left, right, op, logical || coalesce);\n if (logical && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.coalesce || coalesce && (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalOR || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalAND)) this.raiseRecoverable(this.start, \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses\");\n return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, forInit);\n }\n }\n return left;\n};\n$f0e98b2c23d58ac9$var$pp$5.buildBinary = function(startPos, startLoc, left, right, op, logical) {\n if (right.type === \"PrivateIdentifier\") this.raise(right.start, \"Private identifier can only be left side of binary expression\");\n var node = this.startNodeAt(startPos, startLoc);\n node.left = left;\n node.operator = op;\n node.right = right;\n return this.finishNode(node, logical ? \"LogicalExpression\" : \"BinaryExpression\");\n};\n// Parse unary operators, both prefix and postfix.\n$f0e98b2c23d58ac9$var$pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) {\n var startPos = this.start, startLoc = this.startLoc, expr;\n if (this.isContextual(\"await\") && this.canAwait) {\n expr = this.parseAwait(forInit);\n sawUnary = true;\n } else if (this.type.prefix) {\n var node = this.startNode(), update = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.incDec;\n node.operator = this.value;\n node.prefix = true;\n this.next();\n node.argument = this.parseMaybeUnary(null, true, update, forInit);\n this.checkExpressionErrors(refDestructuringErrors, true);\n if (update) this.checkLValSimple(node.argument);\n else if (this.strict && node.operator === \"delete\" && $f0e98b2c23d58ac9$var$isLocalVariableAccess(node.argument)) this.raiseRecoverable(node.start, \"Deleting local variable in strict mode\");\n else if (node.operator === \"delete\" && $f0e98b2c23d58ac9$var$isPrivateFieldAccess(node.argument)) this.raiseRecoverable(node.start, \"Private fields can not be deleted\");\n else sawUnary = true;\n expr = this.finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\");\n } else if (!sawUnary && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.privateId) {\n if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) this.unexpected();\n expr = this.parsePrivateIdent();\n // only could be private fields in 'in', such as #x in obj\n if (this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in) this.unexpected();\n } else {\n expr = this.parseExprSubscripts(refDestructuringErrors, forInit);\n if (this.checkExpressionErrors(refDestructuringErrors)) return expr;\n while(this.type.postfix && !this.canInsertSemicolon()){\n var node$1 = this.startNodeAt(startPos, startLoc);\n node$1.operator = this.value;\n node$1.prefix = false;\n node$1.argument = expr;\n this.checkLValSimple(expr);\n this.next();\n expr = this.finishNode(node$1, \"UpdateExpression\");\n }\n }\n if (!incDec && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.starstar)) {\n if (sawUnary) this.unexpected(this.lastTokStart);\n else return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), \"**\", false);\n } else return expr;\n};\nfunction $f0e98b2c23d58ac9$var$isLocalVariableAccess(node) {\n return node.type === \"Identifier\" || node.type === \"ParenthesizedExpression\" && $f0e98b2c23d58ac9$var$isLocalVariableAccess(node.expression);\n}\nfunction $f0e98b2c23d58ac9$var$isPrivateFieldAccess(node) {\n return node.type === \"MemberExpression\" && node.property.type === \"PrivateIdentifier\" || node.type === \"ChainExpression\" && $f0e98b2c23d58ac9$var$isPrivateFieldAccess(node.expression) || node.type === \"ParenthesizedExpression\" && $f0e98b2c23d58ac9$var$isPrivateFieldAccess(node.expression);\n}\n// Parse call, dot, and `[]`-subscript expressions.\n$f0e98b2c23d58ac9$var$pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseExprAtom(refDestructuringErrors, forInit);\n if (expr.type === \"ArrowFunctionExpression\" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== \")\") return expr;\n var result = this.parseSubscripts(expr, startPos, startLoc, false, forInit);\n if (refDestructuringErrors && result.type === \"MemberExpression\") {\n if (refDestructuringErrors.parenthesizedAssign >= result.start) refDestructuringErrors.parenthesizedAssign = -1;\n if (refDestructuringErrors.parenthesizedBind >= result.start) refDestructuringErrors.parenthesizedBind = -1;\n if (refDestructuringErrors.trailingComma >= result.start) refDestructuringErrors.trailingComma = -1;\n }\n return result;\n};\n$f0e98b2c23d58ac9$var$pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {\n var maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === \"Identifier\" && base.name === \"async\" && this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 && this.potentialArrowAt === base.start;\n var optionalChained = false;\n while(true){\n var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit);\n if (element.optional) optionalChained = true;\n if (element === base || element.type === \"ArrowFunctionExpression\") {\n if (optionalChained) {\n var chainNode = this.startNodeAt(startPos, startLoc);\n chainNode.expression = element;\n element = this.finishNode(chainNode, \"ChainExpression\");\n }\n return element;\n }\n base = element;\n }\n};\n$f0e98b2c23d58ac9$var$pp$5.shouldParseAsyncArrow = function() {\n return !this.canInsertSemicolon() && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.arrow);\n};\n$f0e98b2c23d58ac9$var$pp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit);\n};\n$f0e98b2c23d58ac9$var$pp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {\n var optionalSupported = this.options.ecmaVersion >= 11;\n var optional = optionalSupported && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.questionDot);\n if (noCalls && optional) this.raise(this.lastTokStart, \"Optional chaining cannot appear in the callee of new expressions\");\n var computed = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL);\n if (computed || optional && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.backQuote || this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot)) {\n var node = this.startNodeAt(startPos, startLoc);\n node.object = base;\n if (computed) {\n node.property = this.parseExpression();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketR);\n } else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.privateId && base.type !== \"Super\") node.property = this.parsePrivateIdent();\n else node.property = this.parseIdent(this.options.allowReserved !== \"never\");\n node.computed = !!computed;\n if (optionalSupported) node.optional = optional;\n base = this.finishNode(node, \"MemberExpression\");\n } else if (!noCalls && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL)) {\n var refDestructuringErrors = new $f0e98b2c23d58ac9$var$DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n var exprList = this.parseExprList($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);\n if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {\n this.checkPatternErrors(refDestructuringErrors, false);\n this.checkYieldAwaitInDefaultParams();\n if (this.awaitIdentPos > 0) this.raise(this.awaitIdentPos, \"Cannot use 'await' as identifier inside an async function\");\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit);\n }\n this.checkExpressionErrors(refDestructuringErrors, true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n this.awaitIdentPos = oldAwaitIdentPos || this.awaitIdentPos;\n var node$1 = this.startNodeAt(startPos, startLoc);\n node$1.callee = base;\n node$1.arguments = exprList;\n if (optionalSupported) node$1.optional = optional;\n base = this.finishNode(node$1, \"CallExpression\");\n } else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.backQuote) {\n if (optional || optionalChained) this.raise(this.start, \"Optional chaining cannot appear in the tag of tagged template expressions\");\n var node$2 = this.startNodeAt(startPos, startLoc);\n node$2.tag = base;\n node$2.quasi = this.parseTemplate({\n isTagged: true\n });\n base = this.finishNode(node$2, \"TaggedTemplateExpression\");\n }\n return base;\n};\n// Parse an atomic expression — either a single token that is an\n// expression, an expression started by a keyword like `function` or\n// `new`, or an expression wrapped in punctuation like `()`, `[]`,\n// or `{}`.\n$f0e98b2c23d58ac9$var$pp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {\n // If a division operator appears in an expression position, the\n // tokenizer got confused, and we force it to read a regexp instead.\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.slash) this.readRegexp();\n var node, canBeArrow = this.potentialArrowAt === this.start;\n switch(this.type){\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._super:\n if (!this.allowSuper) this.raise(this.start, \"'super' keyword outside a method\");\n node = this.startNode();\n this.next();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL && !this.allowDirectSuper) this.raise(node.start, \"super() call outside constructor of a subclass\");\n // The `super` keyword can appear at below:\n // SuperProperty:\n // super [ Expression ]\n // super . IdentifierName\n // SuperCall:\n // super ( Arguments )\n if (this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL) this.unexpected();\n return this.finishNode(node, \"Super\");\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._this:\n node = this.startNode();\n this.next();\n return this.finishNode(node, \"ThisExpression\");\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name:\n var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc;\n var id = this.parseIdent(false);\n if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === \"async\" && !this.canInsertSemicolon() && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._function)) {\n this.overrideContext($f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_expr);\n return this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit);\n }\n if (canBeArrow && !this.canInsertSemicolon()) {\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.arrow)) return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [\n id\n ], false, forInit);\n if (this.options.ecmaVersion >= 8 && id.name === \"async\" && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name && !containsEsc && (!this.potentialArrowInForAwait || this.value !== \"of\" || this.containsEsc)) {\n id = this.parseIdent(false);\n if (this.canInsertSemicolon() || !this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.arrow)) this.unexpected();\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [\n id\n ], true, forInit);\n }\n }\n return id;\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.regexp:\n var value = this.value;\n node = this.parseLiteral(value.value);\n node.regex = {\n pattern: value.pattern,\n flags: value.flags\n };\n return node;\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.num:\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string:\n return this.parseLiteral(this.value);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._null:\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._true:\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._false:\n node = this.startNode();\n node.value = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._null ? null : this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._true;\n node.raw = this.type.keyword;\n this.next();\n return this.finishNode(node, \"Literal\");\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL:\n var start = this.start, expr = this.parseParenAndDistinguishExpression(canBeArrow, forInit);\n if (refDestructuringErrors) {\n if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr)) refDestructuringErrors.parenthesizedAssign = start;\n if (refDestructuringErrors.parenthesizedBind < 0) refDestructuringErrors.parenthesizedBind = start;\n }\n return expr;\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL:\n node = this.startNode();\n this.next();\n node.elements = this.parseExprList($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketR, true, true, refDestructuringErrors);\n return this.finishNode(node, \"ArrayExpression\");\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL:\n this.overrideContext($f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_expr);\n return this.parseObj(false, refDestructuringErrors);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._function:\n node = this.startNode();\n this.next();\n return this.parseFunction(node, 0);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._class:\n return this.parseClass(this.startNode(), false);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._new:\n return this.parseNew();\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.backQuote:\n return this.parseTemplate();\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._import:\n if (this.options.ecmaVersion >= 11) return this.parseExprImport(forNew);\n else return this.unexpected();\n default:\n return this.parseExprAtomDefault();\n }\n};\n$f0e98b2c23d58ac9$var$pp$5.parseExprAtomDefault = function() {\n this.unexpected();\n};\n$f0e98b2c23d58ac9$var$pp$5.parseExprImport = function(forNew) {\n var node = this.startNode();\n // Consume `import` as an identifier for `import.meta`.\n // Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.\n if (this.containsEsc) this.raiseRecoverable(this.start, \"Escape sequence in keyword import\");\n this.next();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL && !forNew) return this.parseDynamicImport(node);\n else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot) {\n var meta = this.startNodeAt(node.start, node.loc && node.loc.start);\n meta.name = \"import\";\n node.meta = this.finishNode(meta, \"Identifier\");\n return this.parseImportMeta(node);\n } else this.unexpected();\n};\n$f0e98b2c23d58ac9$var$pp$5.parseDynamicImport = function(node) {\n this.next(); // skip `(`\n // Parse node.source.\n node.source = this.parseMaybeAssign();\n // Verify ending.\n if (!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR)) {\n var errorPos = this.start;\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR)) this.raiseRecoverable(errorPos, \"Trailing comma is not allowed in import()\");\n else this.unexpected(errorPos);\n }\n return this.finishNode(node, \"ImportExpression\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseImportMeta = function(node) {\n this.next(); // skip `.`\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n if (node.property.name !== \"meta\") this.raiseRecoverable(node.property.start, \"The only valid meta property for import is 'import.meta'\");\n if (containsEsc) this.raiseRecoverable(node.start, \"'import.meta' must not contain escaped characters\");\n if (this.options.sourceType !== \"module\" && !this.options.allowImportExportEverywhere) this.raiseRecoverable(node.start, \"Cannot use 'import.meta' outside a module\");\n return this.finishNode(node, \"MetaProperty\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseLiteral = function(value) {\n var node = this.startNode();\n node.value = value;\n node.raw = this.input.slice(this.start, this.end);\n if (node.raw.charCodeAt(node.raw.length - 1) === 110) node.bigint = node.raw.slice(0, -1).replace(/_/g, \"\");\n this.next();\n return this.finishNode(node, \"Literal\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseParenExpression = function() {\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL);\n var val = this.parseExpression();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR);\n return val;\n};\n$f0e98b2c23d58ac9$var$pp$5.shouldParseArrow = function(exprList) {\n return !this.canInsertSemicolon();\n};\n$f0e98b2c23d58ac9$var$pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {\n var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;\n if (this.options.ecmaVersion >= 6) {\n this.next();\n var innerStartPos = this.start, innerStartLoc = this.startLoc;\n var exprList = [], first = true, lastIsComma = false;\n var refDestructuringErrors = new $f0e98b2c23d58ac9$var$DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart;\n this.yieldPos = 0;\n this.awaitPos = 0;\n // Do not save awaitIdentPos to allow checking awaits nested in parameters\n while(this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR){\n first ? first = false : this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma);\n if (allowTrailingComma && this.afterTrailingComma($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR, true)) {\n lastIsComma = true;\n break;\n } else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.ellipsis) {\n spreadStart = this.start;\n exprList.push(this.parseParenItem(this.parseRestBinding()));\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\");\n break;\n } else exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem));\n }\n var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR);\n if (canBeArrow && this.shouldParseArrow(exprList) && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.arrow)) {\n this.checkPatternErrors(refDestructuringErrors, false);\n this.checkYieldAwaitInDefaultParams();\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n return this.parseParenArrowList(startPos, startLoc, exprList, forInit);\n }\n if (!exprList.length || lastIsComma) this.unexpected(this.lastTokStart);\n if (spreadStart) this.unexpected(spreadStart);\n this.checkExpressionErrors(refDestructuringErrors, true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n if (exprList.length > 1) {\n val = this.startNodeAt(innerStartPos, innerStartLoc);\n val.expressions = exprList;\n this.finishNodeAt(val, \"SequenceExpression\", innerEndPos, innerEndLoc);\n } else val = exprList[0];\n } else val = this.parseParenExpression();\n if (this.options.preserveParens) {\n var par = this.startNodeAt(startPos, startLoc);\n par.expression = val;\n return this.finishNode(par, \"ParenthesizedExpression\");\n } else return val;\n};\n$f0e98b2c23d58ac9$var$pp$5.parseParenItem = function(item) {\n return item;\n};\n$f0e98b2c23d58ac9$var$pp$5.parseParenArrowList = function(startPos, startLoc, exprList, forInit) {\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, false, forInit);\n};\n// New's precedence is slightly tricky. It must allow its argument to\n// be a `[]` or dot subscript expression, but not a call — at least,\n// not without wrapping it in parentheses. Thus, it uses the noCalls\n// argument to parseSubscripts to prevent it from consuming the\n// argument list.\nvar $f0e98b2c23d58ac9$var$empty = [];\n$f0e98b2c23d58ac9$var$pp$5.parseNew = function() {\n if (this.containsEsc) this.raiseRecoverable(this.start, \"Escape sequence in keyword new\");\n var node = this.startNode();\n this.next();\n if (this.options.ecmaVersion >= 6 && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot) {\n var meta = this.startNodeAt(node.start, node.loc && node.loc.start);\n meta.name = \"new\";\n node.meta = this.finishNode(meta, \"Identifier\");\n this.next();\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n if (node.property.name !== \"target\") this.raiseRecoverable(node.property.start, \"The only valid meta property for new is 'new.target'\");\n if (containsEsc) this.raiseRecoverable(node.start, \"'new.target' must not contain escaped characters\");\n if (!this.allowNewDotTarget) this.raiseRecoverable(node.start, \"'new.target' can only be used in functions and class static block\");\n return this.finishNode(node, \"MetaProperty\");\n }\n var startPos = this.start, startLoc = this.startLoc;\n node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL)) node.arguments = this.parseExprList($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR, this.options.ecmaVersion >= 8, false);\n else node.arguments = $f0e98b2c23d58ac9$var$empty;\n return this.finishNode(node, \"NewExpression\");\n};\n// Parse template expression.\n$f0e98b2c23d58ac9$var$pp$5.parseTemplateElement = function(ref) {\n var isTagged = ref.isTagged;\n var elem = this.startNode();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.invalidTemplate) {\n if (!isTagged) this.raiseRecoverable(this.start, \"Bad escape sequence in untagged template literal\");\n elem.value = {\n raw: this.value.replace(/\\r\\n?/g, \"\\n\"),\n cooked: null\n };\n } else elem.value = {\n raw: this.input.slice(this.start, this.end).replace(/\\r\\n?/g, \"\\n\"),\n cooked: this.value\n };\n this.next();\n elem.tail = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.backQuote;\n return this.finishNode(elem, \"TemplateElement\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseTemplate = function(ref) {\n if (ref === void 0) ref = {};\n var isTagged = ref.isTagged;\n if (isTagged === void 0) isTagged = false;\n var node = this.startNode();\n this.next();\n node.expressions = [];\n var curElt = this.parseTemplateElement({\n isTagged: isTagged\n });\n node.quasis = [\n curElt\n ];\n while(!curElt.tail){\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof) this.raise(this.pos, \"Unterminated template literal\");\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dollarBraceL);\n node.expressions.push(this.parseExpression());\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR);\n node.quasis.push(curElt = this.parseTemplateElement({\n isTagged: isTagged\n }));\n }\n this.next();\n return this.finishNode(node, \"TemplateLiteral\");\n};\n$f0e98b2c23d58ac9$var$pp$5.isAsyncProp = function(prop) {\n return !prop.computed && prop.key.type === \"Identifier\" && prop.key.name === \"async\" && (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.num || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star) && !$f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start));\n};\n// Parse an object literal or binding pattern.\n$f0e98b2c23d58ac9$var$pp$5.parseObj = function(isPattern, refDestructuringErrors) {\n var node = this.startNode(), first = true, propHash = {};\n node.properties = [];\n this.next();\n while(!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR)){\n if (!first) {\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma);\n if (this.options.ecmaVersion >= 5 && this.afterTrailingComma($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR)) break;\n } else first = false;\n var prop = this.parseProperty(isPattern, refDestructuringErrors);\n if (!isPattern) this.checkPropClash(prop, propHash, refDestructuringErrors);\n node.properties.push(prop);\n }\n return this.finishNode(node, isPattern ? \"ObjectPattern\" : \"ObjectExpression\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseProperty = function(isPattern, refDestructuringErrors) {\n var prop = this.startNode(), isGenerator, isAsync, startPos, startLoc;\n if (this.options.ecmaVersion >= 9 && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.ellipsis)) {\n if (isPattern) {\n prop.argument = this.parseIdent(false);\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\");\n return this.finishNode(prop, \"RestElement\");\n }\n // Parse argument.\n prop.argument = this.parseMaybeAssign(false, refDestructuringErrors);\n // To disallow trailing comma via `this.toAssignable()`.\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma && refDestructuringErrors && refDestructuringErrors.trailingComma < 0) refDestructuringErrors.trailingComma = this.start;\n // Finish\n return this.finishNode(prop, \"SpreadElement\");\n }\n if (this.options.ecmaVersion >= 6) {\n prop.method = false;\n prop.shorthand = false;\n if (isPattern || refDestructuringErrors) {\n startPos = this.start;\n startLoc = this.startLoc;\n }\n if (!isPattern) isGenerator = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star);\n }\n var containsEsc = this.containsEsc;\n this.parsePropertyName(prop);\n if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {\n isAsync = true;\n isGenerator = this.options.ecmaVersion >= 9 && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star);\n this.parsePropertyName(prop);\n } else isAsync = false;\n this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);\n return this.finishNode(prop, \"Property\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseGetterSetter = function(prop) {\n prop.kind = prop.key.name;\n this.parsePropertyName(prop);\n prop.value = this.parseMethod(false);\n var paramCount = prop.kind === \"get\" ? 0 : 1;\n if (prop.value.params.length !== paramCount) {\n var start = prop.value.start;\n if (prop.kind === \"get\") this.raiseRecoverable(start, \"getter should have no params\");\n else this.raiseRecoverable(start, \"setter should have exactly one param\");\n } else if (prop.kind === \"set\" && prop.value.params[0].type === \"RestElement\") this.raiseRecoverable(prop.value.params[0].start, \"Setter cannot use rest params\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {\n if ((isGenerator || isAsync) && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon) this.unexpected();\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon)) {\n prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors);\n prop.kind = \"init\";\n } else if (this.options.ecmaVersion >= 6 && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL) {\n if (isPattern) this.unexpected();\n prop.kind = \"init\";\n prop.method = true;\n prop.value = this.parseMethod(isGenerator, isAsync);\n } else if (!isPattern && !containsEsc && this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === \"Identifier\" && (prop.key.name === \"get\" || prop.key.name === \"set\") && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq) {\n if (isGenerator || isAsync) this.unexpected();\n this.parseGetterSetter(prop);\n } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === \"Identifier\") {\n if (isGenerator || isAsync) this.unexpected();\n this.checkUnreserved(prop.key);\n if (prop.key.name === \"await\" && !this.awaitIdentPos) this.awaitIdentPos = startPos;\n prop.kind = \"init\";\n if (isPattern) prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));\n else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq && refDestructuringErrors) {\n if (refDestructuringErrors.shorthandAssign < 0) refDestructuringErrors.shorthandAssign = this.start;\n prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));\n } else prop.value = this.copyNode(prop.key);\n prop.shorthand = true;\n } else this.unexpected();\n};\n$f0e98b2c23d58ac9$var$pp$5.parsePropertyName = function(prop) {\n if (this.options.ecmaVersion >= 6) {\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL)) {\n prop.computed = true;\n prop.key = this.parseMaybeAssign();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketR);\n return prop.key;\n } else prop.computed = false;\n }\n return prop.key = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.num || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== \"never\");\n};\n// Initialize empty function node.\n$f0e98b2c23d58ac9$var$pp$5.initFunction = function(node) {\n node.id = null;\n if (this.options.ecmaVersion >= 6) node.generator = node.expression = false;\n if (this.options.ecmaVersion >= 8) node.async = false;\n};\n// Parse object or class method.\n$f0e98b2c23d58ac9$var$pp$5.parseMethod = function(isGenerator, isAsync, allowDirectSuper) {\n var node = this.startNode(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.initFunction(node);\n if (this.options.ecmaVersion >= 6) node.generator = isGenerator;\n if (this.options.ecmaVersion >= 8) node.async = !!isAsync;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope($f0e98b2c23d58ac9$var$functionFlags(isAsync, node.generator) | $f0e98b2c23d58ac9$var$SCOPE_SUPER | (allowDirectSuper ? $f0e98b2c23d58ac9$var$SCOPE_DIRECT_SUPER : 0));\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL);\n node.params = this.parseBindingList($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR, false, this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n this.parseFunctionBody(node, false, true, false);\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, \"FunctionExpression\");\n};\n// Parse arrow function expression with given parameters.\n$f0e98b2c23d58ac9$var$pp$5.parseArrowExpression = function(node, params, isAsync, forInit) {\n var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.enterScope($f0e98b2c23d58ac9$var$functionFlags(isAsync, false) | $f0e98b2c23d58ac9$var$SCOPE_ARROW);\n this.initFunction(node);\n if (this.options.ecmaVersion >= 8) node.async = !!isAsync;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n node.params = this.toAssignableList(params, true);\n this.parseFunctionBody(node, true, false, forInit);\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, \"ArrowFunctionExpression\");\n};\n// Parse function body and check parameters.\n$f0e98b2c23d58ac9$var$pp$5.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) {\n var isExpression = isArrowFunction && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL;\n var oldStrict = this.strict, useStrict = false;\n if (isExpression) {\n node.body = this.parseMaybeAssign(forInit);\n node.expression = true;\n this.checkParams(node, false);\n } else {\n var nonSimple = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(node.params);\n if (!oldStrict || nonSimple) {\n useStrict = this.strictDirective(this.end);\n // If this is a strict mode function, verify that argument names\n // are not repeated, and it does not try to bind the words `eval`\n // or `arguments`.\n if (useStrict && nonSimple) this.raiseRecoverable(node.start, \"Illegal 'use strict' directive in function with non-simple parameter list\");\n }\n // Start a new scope with regard to labels and the `inFunction`\n // flag (restore them to their old value afterwards).\n var oldLabels = this.labels;\n this.labels = [];\n if (useStrict) this.strict = true;\n // Add the params to varDeclaredNames to ensure that an error is thrown\n // if a let/const declaration in the function clashes with one of the params.\n this.checkParams(node, !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params));\n // Ensure the function name isn't a forbidden identifier in strict mode, e.g. 'eval'\n if (this.strict && node.id) this.checkLValSimple(node.id, $f0e98b2c23d58ac9$var$BIND_OUTSIDE);\n node.body = this.parseBlock(false, undefined, useStrict && !oldStrict);\n node.expression = false;\n this.adaptDirectivePrologue(node.body.body);\n this.labels = oldLabels;\n }\n this.exitScope();\n};\n$f0e98b2c23d58ac9$var$pp$5.isSimpleParamList = function(params) {\n for(var i = 0, list = params; i < list.length; i += 1){\n var param = list[i];\n if (param.type !== \"Identifier\") return false;\n }\n return true;\n};\n// Checks function params for various disallowed patterns such as using \"eval\"\n// or \"arguments\" and duplicate parameters.\n$f0e98b2c23d58ac9$var$pp$5.checkParams = function(node, allowDuplicates) {\n var nameHash = Object.create(null);\n for(var i = 0, list = node.params; i < list.length; i += 1){\n var param = list[i];\n this.checkLValInnerPattern(param, $f0e98b2c23d58ac9$var$BIND_VAR, allowDuplicates ? null : nameHash);\n }\n};\n// Parses a comma-separated list of expressions, and returns them as\n// an array. `close` is the token type that ends the list, and\n// `allowEmpty` can be turned on to allow subsequent commas with\n// nothing in between them to be parsed as `null` (which is needed\n// for array literals).\n$f0e98b2c23d58ac9$var$pp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) {\n var elts = [], first = true;\n while(!this.eat(close)){\n if (!first) {\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma);\n if (allowTrailingComma && this.afterTrailingComma(close)) break;\n } else first = false;\n var elt = void 0;\n if (allowEmpty && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) elt = null;\n else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.ellipsis) {\n elt = this.parseSpread(refDestructuringErrors);\n if (refDestructuringErrors && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma && refDestructuringErrors.trailingComma < 0) refDestructuringErrors.trailingComma = this.start;\n } else elt = this.parseMaybeAssign(false, refDestructuringErrors);\n elts.push(elt);\n }\n return elts;\n};\n$f0e98b2c23d58ac9$var$pp$5.checkUnreserved = function(ref) {\n var start = ref.start;\n var end = ref.end;\n var name = ref.name;\n if (this.inGenerator && name === \"yield\") this.raiseRecoverable(start, \"Cannot use 'yield' as identifier inside a generator\");\n if (this.inAsync && name === \"await\") this.raiseRecoverable(start, \"Cannot use 'await' as identifier inside an async function\");\n if (this.currentThisScope().inClassFieldInit && name === \"arguments\") this.raiseRecoverable(start, \"Cannot use 'arguments' in class field initializer\");\n if (this.inClassStaticBlock && (name === \"arguments\" || name === \"await\")) this.raise(start, \"Cannot use \" + name + \" in class static initialization block\");\n if (this.keywords.test(name)) this.raise(start, \"Unexpected keyword '\" + name + \"'\");\n if (this.options.ecmaVersion < 6 && this.input.slice(start, end).indexOf(\"\\\\\") !== -1) return;\n var re = this.strict ? this.reservedWordsStrict : this.reservedWords;\n if (re.test(name)) {\n if (!this.inAsync && name === \"await\") this.raiseRecoverable(start, \"Cannot use keyword 'await' outside an async function\");\n this.raiseRecoverable(start, \"The keyword '\" + name + \"' is reserved\");\n }\n};\n// Parse the next token as an identifier. If `liberal` is true (used\n// when parsing properties), it will also convert keywords into\n// identifiers.\n$f0e98b2c23d58ac9$var$pp$5.parseIdent = function(liberal) {\n var node = this.parseIdentNode();\n this.next(!!liberal);\n this.finishNode(node, \"Identifier\");\n if (!liberal) {\n this.checkUnreserved(node);\n if (node.name === \"await\" && !this.awaitIdentPos) this.awaitIdentPos = node.start;\n }\n return node;\n};\n$f0e98b2c23d58ac9$var$pp$5.parseIdentNode = function() {\n var node = this.startNode();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) node.name = this.value;\n else if (this.type.keyword) {\n node.name = this.type.keyword;\n // To fix https://github.com/acornjs/acorn/issues/575\n // `class` and `function` keywords push new context into this.context.\n // But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name.\n // If the previous token is a dot, this does not apply because the context-managing code already ignored the keyword\n if ((node.name === \"class\" || node.name === \"function\") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) this.context.pop();\n this.type = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name;\n } else this.unexpected();\n return node;\n};\n$f0e98b2c23d58ac9$var$pp$5.parsePrivateIdent = function() {\n var node = this.startNode();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.privateId) node.name = this.value;\n else this.unexpected();\n this.next();\n this.finishNode(node, \"PrivateIdentifier\");\n // For validating existence\n if (this.options.checkPrivateFields) {\n if (this.privateNameStack.length === 0) this.raise(node.start, \"Private field '#\" + node.name + \"' must be declared in an enclosing class\");\n else this.privateNameStack[this.privateNameStack.length - 1].used.push(node);\n }\n return node;\n};\n// Parses yield expression inside generator.\n$f0e98b2c23d58ac9$var$pp$5.parseYield = function(forInit) {\n if (!this.yieldPos) this.yieldPos = this.start;\n var node = this.startNode();\n this.next();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi || this.canInsertSemicolon() || this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star && !this.type.startsExpr) {\n node.delegate = false;\n node.argument = null;\n } else {\n node.delegate = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star);\n node.argument = this.parseMaybeAssign(forInit);\n }\n return this.finishNode(node, \"YieldExpression\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseAwait = function(forInit) {\n if (!this.awaitPos) this.awaitPos = this.start;\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeUnary(null, true, false, forInit);\n return this.finishNode(node, \"AwaitExpression\");\n};\nvar $f0e98b2c23d58ac9$var$pp$4 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// This function is used to raise exceptions on parse errors. It\n// takes an offset integer (into the current `input`) to indicate\n// the location of the error, attaches the position to the end\n// of the error message, and then raises a `SyntaxError` with that\n// message.\n$f0e98b2c23d58ac9$var$pp$4.raise = function(pos, message) {\n var loc = $f0e98b2c23d58ac9$export$7af82191547c5ff7(this.input, pos);\n message += \" (\" + loc.line + \":\" + loc.column + \")\";\n var err = new SyntaxError(message);\n err.pos = pos;\n err.loc = loc;\n err.raisedAt = this.pos;\n throw err;\n};\n$f0e98b2c23d58ac9$var$pp$4.raiseRecoverable = $f0e98b2c23d58ac9$var$pp$4.raise;\n$f0e98b2c23d58ac9$var$pp$4.curPosition = function() {\n if (this.options.locations) return new $f0e98b2c23d58ac9$export$13807d9ee5a34a42(this.curLine, this.pos - this.lineStart);\n};\nvar $f0e98b2c23d58ac9$var$pp$3 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\nvar $f0e98b2c23d58ac9$var$Scope = function Scope(flags) {\n this.flags = flags;\n // A list of var-declared names in the current lexical scope\n this.var = [];\n // A list of lexically-declared names in the current lexical scope\n this.lexical = [];\n // A list of lexically-declared FunctionDeclaration names in the current lexical scope\n this.functions = [];\n // A switch to disallow the identifier reference 'arguments'\n this.inClassFieldInit = false;\n};\n// The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names.\n$f0e98b2c23d58ac9$var$pp$3.enterScope = function(flags) {\n this.scopeStack.push(new $f0e98b2c23d58ac9$var$Scope(flags));\n};\n$f0e98b2c23d58ac9$var$pp$3.exitScope = function() {\n this.scopeStack.pop();\n};\n// The spec says:\n// > At the top level of a function, or script, function declarations are\n// > treated like var declarations rather than like lexical declarations.\n$f0e98b2c23d58ac9$var$pp$3.treatFunctionsAsVarInScope = function(scope) {\n return scope.flags & $f0e98b2c23d58ac9$var$SCOPE_FUNCTION || !this.inModule && scope.flags & $f0e98b2c23d58ac9$var$SCOPE_TOP;\n};\n$f0e98b2c23d58ac9$var$pp$3.declareName = function(name, bindingType, pos) {\n var redeclared = false;\n if (bindingType === $f0e98b2c23d58ac9$var$BIND_LEXICAL) {\n var scope = this.currentScope();\n redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1;\n scope.lexical.push(name);\n if (this.inModule && scope.flags & $f0e98b2c23d58ac9$var$SCOPE_TOP) delete this.undefinedExports[name];\n } else if (bindingType === $f0e98b2c23d58ac9$var$BIND_SIMPLE_CATCH) {\n var scope$1 = this.currentScope();\n scope$1.lexical.push(name);\n } else if (bindingType === $f0e98b2c23d58ac9$var$BIND_FUNCTION) {\n var scope$2 = this.currentScope();\n if (this.treatFunctionsAsVar) redeclared = scope$2.lexical.indexOf(name) > -1;\n else redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1;\n scope$2.functions.push(name);\n } else for(var i = this.scopeStack.length - 1; i >= 0; --i){\n var scope$3 = this.scopeStack[i];\n if (scope$3.lexical.indexOf(name) > -1 && !(scope$3.flags & $f0e98b2c23d58ac9$var$SCOPE_SIMPLE_CATCH && scope$3.lexical[0] === name) || !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) {\n redeclared = true;\n break;\n }\n scope$3.var.push(name);\n if (this.inModule && scope$3.flags & $f0e98b2c23d58ac9$var$SCOPE_TOP) delete this.undefinedExports[name];\n if (scope$3.flags & $f0e98b2c23d58ac9$var$SCOPE_VAR) break;\n }\n if (redeclared) this.raiseRecoverable(pos, \"Identifier '\" + name + \"' has already been declared\");\n};\n$f0e98b2c23d58ac9$var$pp$3.checkLocalExport = function(id) {\n // scope.functions must be empty as Module code is always strict.\n if (this.scopeStack[0].lexical.indexOf(id.name) === -1 && this.scopeStack[0].var.indexOf(id.name) === -1) this.undefinedExports[id.name] = id;\n};\n$f0e98b2c23d58ac9$var$pp$3.currentScope = function() {\n return this.scopeStack[this.scopeStack.length - 1];\n};\n$f0e98b2c23d58ac9$var$pp$3.currentVarScope = function() {\n for(var i = this.scopeStack.length - 1;; i--){\n var scope = this.scopeStack[i];\n if (scope.flags & $f0e98b2c23d58ac9$var$SCOPE_VAR) return scope;\n }\n};\n// Could be useful for `this`, `new.target`, `super()`, `super.property`, and `super[property]`.\n$f0e98b2c23d58ac9$var$pp$3.currentThisScope = function() {\n for(var i = this.scopeStack.length - 1;; i--){\n var scope = this.scopeStack[i];\n if (scope.flags & $f0e98b2c23d58ac9$var$SCOPE_VAR && !(scope.flags & $f0e98b2c23d58ac9$var$SCOPE_ARROW)) return scope;\n }\n};\nvar $f0e98b2c23d58ac9$export$85c928794f8d04d4 = function Node(parser, pos, loc) {\n this.type = \"\";\n this.start = pos;\n this.end = 0;\n if (parser.options.locations) this.loc = new $f0e98b2c23d58ac9$export$7387db7caf96fcdb(parser, loc);\n if (parser.options.directSourceFile) this.sourceFile = parser.options.directSourceFile;\n if (parser.options.ranges) this.range = [\n pos,\n 0\n ];\n};\n// Start an AST node, attaching a start offset.\nvar $f0e98b2c23d58ac9$var$pp$2 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n$f0e98b2c23d58ac9$var$pp$2.startNode = function() {\n return new $f0e98b2c23d58ac9$export$85c928794f8d04d4(this, this.start, this.startLoc);\n};\n$f0e98b2c23d58ac9$var$pp$2.startNodeAt = function(pos, loc) {\n return new $f0e98b2c23d58ac9$export$85c928794f8d04d4(this, pos, loc);\n};\n// Finish an AST node, adding `type` and `end` properties.\nfunction $f0e98b2c23d58ac9$var$finishNodeAt(node, type, pos, loc) {\n node.type = type;\n node.end = pos;\n if (this.options.locations) node.loc.end = loc;\n if (this.options.ranges) node.range[1] = pos;\n return node;\n}\n$f0e98b2c23d58ac9$var$pp$2.finishNode = function(node, type) {\n return $f0e98b2c23d58ac9$var$finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);\n};\n// Finish node at given position\n$f0e98b2c23d58ac9$var$pp$2.finishNodeAt = function(node, type, pos, loc) {\n return $f0e98b2c23d58ac9$var$finishNodeAt.call(this, node, type, pos, loc);\n};\n$f0e98b2c23d58ac9$var$pp$2.copyNode = function(node) {\n var newNode = new $f0e98b2c23d58ac9$export$85c928794f8d04d4(this, node.start, this.startLoc);\n for(var prop in node)newNode[prop] = node[prop];\n return newNode;\n};\n// This file contains Unicode properties extracted from the ECMAScript specification.\n// The lists are extracted like so:\n// $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)\n// #table-binary-unicode-properties\nvar $f0e98b2c23d58ac9$var$ecma9BinaryProperties = \"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\";\nvar $f0e98b2c23d58ac9$var$ecma10BinaryProperties = $f0e98b2c23d58ac9$var$ecma9BinaryProperties + \" Extended_Pictographic\";\nvar $f0e98b2c23d58ac9$var$ecma11BinaryProperties = $f0e98b2c23d58ac9$var$ecma10BinaryProperties;\nvar $f0e98b2c23d58ac9$var$ecma12BinaryProperties = $f0e98b2c23d58ac9$var$ecma11BinaryProperties + \" EBase EComp EMod EPres ExtPict\";\nvar $f0e98b2c23d58ac9$var$ecma13BinaryProperties = $f0e98b2c23d58ac9$var$ecma12BinaryProperties;\nvar $f0e98b2c23d58ac9$var$ecma14BinaryProperties = $f0e98b2c23d58ac9$var$ecma13BinaryProperties;\nvar $f0e98b2c23d58ac9$var$unicodeBinaryProperties = {\n 9: $f0e98b2c23d58ac9$var$ecma9BinaryProperties,\n 10: $f0e98b2c23d58ac9$var$ecma10BinaryProperties,\n 11: $f0e98b2c23d58ac9$var$ecma11BinaryProperties,\n 12: $f0e98b2c23d58ac9$var$ecma12BinaryProperties,\n 13: $f0e98b2c23d58ac9$var$ecma13BinaryProperties,\n 14: $f0e98b2c23d58ac9$var$ecma14BinaryProperties\n};\n// #table-binary-unicode-properties-of-strings\nvar $f0e98b2c23d58ac9$var$ecma14BinaryPropertiesOfStrings = \"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji\";\nvar $f0e98b2c23d58ac9$var$unicodeBinaryPropertiesOfStrings = {\n 9: \"\",\n 10: \"\",\n 11: \"\",\n 12: \"\",\n 13: \"\",\n 14: $f0e98b2c23d58ac9$var$ecma14BinaryPropertiesOfStrings\n};\n// #table-unicode-general-category-values\nvar $f0e98b2c23d58ac9$var$unicodeGeneralCategoryValues = \"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\";\n// #table-unicode-script-values\nvar $f0e98b2c23d58ac9$var$ecma9ScriptValues = \"Adlam Adlm 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 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\";\nvar $f0e98b2c23d58ac9$var$ecma10ScriptValues = $f0e98b2c23d58ac9$var$ecma9ScriptValues + \" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd\";\nvar $f0e98b2c23d58ac9$var$ecma11ScriptValues = $f0e98b2c23d58ac9$var$ecma10ScriptValues + \" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho\";\nvar $f0e98b2c23d58ac9$var$ecma12ScriptValues = $f0e98b2c23d58ac9$var$ecma11ScriptValues + \" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi\";\nvar $f0e98b2c23d58ac9$var$ecma13ScriptValues = $f0e98b2c23d58ac9$var$ecma12ScriptValues + \" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith\";\nvar $f0e98b2c23d58ac9$var$ecma14ScriptValues = $f0e98b2c23d58ac9$var$ecma13ScriptValues + \" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz\";\nvar $f0e98b2c23d58ac9$var$unicodeScriptValues = {\n 9: $f0e98b2c23d58ac9$var$ecma9ScriptValues,\n 10: $f0e98b2c23d58ac9$var$ecma10ScriptValues,\n 11: $f0e98b2c23d58ac9$var$ecma11ScriptValues,\n 12: $f0e98b2c23d58ac9$var$ecma12ScriptValues,\n 13: $f0e98b2c23d58ac9$var$ecma13ScriptValues,\n 14: $f0e98b2c23d58ac9$var$ecma14ScriptValues\n};\nvar $f0e98b2c23d58ac9$var$data = {};\nfunction $f0e98b2c23d58ac9$var$buildUnicodeData(ecmaVersion) {\n var d = $f0e98b2c23d58ac9$var$data[ecmaVersion] = {\n binary: $f0e98b2c23d58ac9$var$wordsRegexp($f0e98b2c23d58ac9$var$unicodeBinaryProperties[ecmaVersion] + \" \" + $f0e98b2c23d58ac9$var$unicodeGeneralCategoryValues),\n binaryOfStrings: $f0e98b2c23d58ac9$var$wordsRegexp($f0e98b2c23d58ac9$var$unicodeBinaryPropertiesOfStrings[ecmaVersion]),\n nonBinary: {\n General_Category: $f0e98b2c23d58ac9$var$wordsRegexp($f0e98b2c23d58ac9$var$unicodeGeneralCategoryValues),\n Script: $f0e98b2c23d58ac9$var$wordsRegexp($f0e98b2c23d58ac9$var$unicodeScriptValues[ecmaVersion])\n }\n };\n d.nonBinary.Script_Extensions = d.nonBinary.Script;\n d.nonBinary.gc = d.nonBinary.General_Category;\n d.nonBinary.sc = d.nonBinary.Script;\n d.nonBinary.scx = d.nonBinary.Script_Extensions;\n}\nfor(var $f0e98b2c23d58ac9$var$i = 0, $f0e98b2c23d58ac9$var$list = [\n 9,\n 10,\n 11,\n 12,\n 13,\n 14\n]; $f0e98b2c23d58ac9$var$i < $f0e98b2c23d58ac9$var$list.length; $f0e98b2c23d58ac9$var$i += 1){\n var $f0e98b2c23d58ac9$var$ecmaVersion = $f0e98b2c23d58ac9$var$list[$f0e98b2c23d58ac9$var$i];\n $f0e98b2c23d58ac9$var$buildUnicodeData($f0e98b2c23d58ac9$var$ecmaVersion);\n}\nvar $f0e98b2c23d58ac9$var$pp$1 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// Track disjunction structure to determine whether a duplicate\n// capture group name is allowed because it is in a separate branch.\nvar $f0e98b2c23d58ac9$var$BranchID = function BranchID(parent, base) {\n // Parent disjunction branch\n this.parent = parent;\n // Identifies this set of sibling branches\n this.base = base || this;\n};\n$f0e98b2c23d58ac9$var$BranchID.prototype.separatedFrom = function separatedFrom(alt) {\n // A branch is separate from another branch if they or any of\n // their parents are siblings in a given disjunction\n for(var self = this; self; self = self.parent)for(var other = alt; other; other = other.parent){\n if (self.base === other.base && self !== other) return true;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$BranchID.prototype.sibling = function sibling() {\n return new $f0e98b2c23d58ac9$var$BranchID(this.parent, this.base);\n};\nvar $f0e98b2c23d58ac9$var$RegExpValidationState = function RegExpValidationState(parser) {\n this.parser = parser;\n this.validFlags = \"gim\" + (parser.options.ecmaVersion >= 6 ? \"uy\" : \"\") + (parser.options.ecmaVersion >= 9 ? \"s\" : \"\") + (parser.options.ecmaVersion >= 13 ? \"d\" : \"\") + (parser.options.ecmaVersion >= 15 ? \"v\" : \"\");\n this.unicodeProperties = $f0e98b2c23d58ac9$var$data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];\n this.source = \"\";\n this.flags = \"\";\n this.start = 0;\n this.switchU = false;\n this.switchV = false;\n this.switchN = false;\n this.pos = 0;\n this.lastIntValue = 0;\n this.lastStringValue = \"\";\n this.lastAssertionIsQuantifiable = false;\n this.numCapturingParens = 0;\n this.maxBackReference = 0;\n this.groupNames = Object.create(null);\n this.backReferenceNames = [];\n this.branchID = null;\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.reset = function reset(start, pattern, flags) {\n var unicodeSets = flags.indexOf(\"v\") !== -1;\n var unicode = flags.indexOf(\"u\") !== -1;\n this.start = start | 0;\n this.source = pattern + \"\";\n this.flags = flags;\n if (unicodeSets && this.parser.options.ecmaVersion >= 15) {\n this.switchU = true;\n this.switchV = true;\n this.switchN = true;\n } else {\n this.switchU = unicode && this.parser.options.ecmaVersion >= 6;\n this.switchV = false;\n this.switchN = unicode && this.parser.options.ecmaVersion >= 9;\n }\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.raise = function raise(message) {\n this.parser.raiseRecoverable(this.start, \"Invalid regular expression: /\" + this.source + \"/: \" + message);\n};\n// If u flag is given, this returns the code point at the index (it combines a surrogate pair).\n// Otherwise, this returns the code unit of the index (can be a part of a surrogate pair).\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.at = function at(i, forceU) {\n if (forceU === void 0) forceU = false;\n var s = this.source;\n var l = s.length;\n if (i >= l) return -1;\n var c = s.charCodeAt(i);\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) return c;\n var next = s.charCodeAt(i + 1);\n return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c;\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.nextIndex = function nextIndex(i, forceU) {\n if (forceU === void 0) forceU = false;\n var s = this.source;\n var l = s.length;\n if (i >= l) return l;\n var c = s.charCodeAt(i), next;\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l || (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) return i + 1;\n return i + 2;\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.current = function current(forceU) {\n if (forceU === void 0) forceU = false;\n return this.at(this.pos, forceU);\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.lookahead = function lookahead(forceU) {\n if (forceU === void 0) forceU = false;\n return this.at(this.nextIndex(this.pos, forceU), forceU);\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.advance = function advance(forceU) {\n if (forceU === void 0) forceU = false;\n this.pos = this.nextIndex(this.pos, forceU);\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.eat = function eat(ch, forceU) {\n if (forceU === void 0) forceU = false;\n if (this.current(forceU) === ch) {\n this.advance(forceU);\n return true;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.eatChars = function eatChars(chs, forceU) {\n if (forceU === void 0) forceU = false;\n var pos = this.pos;\n for(var i = 0, list = chs; i < list.length; i += 1){\n var ch = list[i];\n var current = this.at(pos, forceU);\n if (current === -1 || current !== ch) return false;\n pos = this.nextIndex(pos, forceU);\n }\n this.pos = pos;\n return true;\n};\n/**\n * Validate the flags part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */ $f0e98b2c23d58ac9$var$pp$1.validateRegExpFlags = function(state) {\n var validFlags = state.validFlags;\n var flags = state.flags;\n var u = false;\n var v = false;\n for(var i = 0; i < flags.length; i++){\n var flag = flags.charAt(i);\n if (validFlags.indexOf(flag) === -1) this.raise(state.start, \"Invalid regular expression flag\");\n if (flags.indexOf(flag, i + 1) > -1) this.raise(state.start, \"Duplicate regular expression flag\");\n if (flag === \"u\") u = true;\n if (flag === \"v\") v = true;\n }\n if (this.options.ecmaVersion >= 15 && u && v) this.raise(state.start, \"Invalid regular expression flag\");\n};\nfunction $f0e98b2c23d58ac9$var$hasProp(obj) {\n for(var _ in obj)return true;\n return false;\n}\n/**\n * Validate the pattern part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */ $f0e98b2c23d58ac9$var$pp$1.validateRegExpPattern = function(state) {\n this.regexp_pattern(state);\n // The goal symbol for the parse is |Pattern[~U, ~N]|. If the result of\n // parsing contains a |GroupName|, reparse with the goal symbol\n // |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError*\n // exception if _P_ did not conform to the grammar, if any elements of _P_\n // were not matched by the parse, or if any Early Error conditions exist.\n if (!state.switchN && this.options.ecmaVersion >= 9 && $f0e98b2c23d58ac9$var$hasProp(state.groupNames)) {\n state.switchN = true;\n this.regexp_pattern(state);\n }\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern\n$f0e98b2c23d58ac9$var$pp$1.regexp_pattern = function(state) {\n state.pos = 0;\n state.lastIntValue = 0;\n state.lastStringValue = \"\";\n state.lastAssertionIsQuantifiable = false;\n state.numCapturingParens = 0;\n state.maxBackReference = 0;\n state.groupNames = Object.create(null);\n state.backReferenceNames.length = 0;\n state.branchID = null;\n this.regexp_disjunction(state);\n if (state.pos !== state.source.length) {\n // Make the same messages as V8.\n if (state.eat(0x29 /* ) */ )) state.raise(\"Unmatched ')'\");\n if (state.eat(0x5D /* ] */ ) || state.eat(0x7D /* } */ )) state.raise(\"Lone quantifier brackets\");\n }\n if (state.maxBackReference > state.numCapturingParens) state.raise(\"Invalid escape\");\n for(var i = 0, list = state.backReferenceNames; i < list.length; i += 1){\n var name = list[i];\n if (!state.groupNames[name]) state.raise(\"Invalid named capture referenced\");\n }\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction\n$f0e98b2c23d58ac9$var$pp$1.regexp_disjunction = function(state) {\n var trackDisjunction = this.options.ecmaVersion >= 16;\n if (trackDisjunction) state.branchID = new $f0e98b2c23d58ac9$var$BranchID(state.branchID, null);\n this.regexp_alternative(state);\n while(state.eat(0x7C /* | */ )){\n if (trackDisjunction) state.branchID = state.branchID.sibling();\n this.regexp_alternative(state);\n }\n if (trackDisjunction) state.branchID = state.branchID.parent;\n // Make the same message as V8.\n if (this.regexp_eatQuantifier(state, true)) state.raise(\"Nothing to repeat\");\n if (state.eat(0x7B /* { */ )) state.raise(\"Lone quantifier brackets\");\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative\n$f0e98b2c23d58ac9$var$pp$1.regexp_alternative = function(state) {\n while(state.pos < state.source.length && this.regexp_eatTerm(state));\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatTerm = function(state) {\n if (this.regexp_eatAssertion(state)) {\n // Handle `QuantifiableAssertion Quantifier` alternative.\n // `state.lastAssertionIsQuantifiable` is true if the last eaten Assertion\n // is a QuantifiableAssertion.\n if (state.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(state)) // Make the same message as V8.\n {\n if (state.switchU) state.raise(\"Invalid quantifier\");\n }\n return true;\n }\n if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) {\n this.regexp_eatQuantifier(state);\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatAssertion = function(state) {\n var start = state.pos;\n state.lastAssertionIsQuantifiable = false;\n // ^, $\n if (state.eat(0x5E /* ^ */ ) || state.eat(0x24 /* $ */ )) return true;\n // \\b \\B\n if (state.eat(0x5C /* \\ */ )) {\n if (state.eat(0x42 /* B */ ) || state.eat(0x62 /* b */ )) return true;\n state.pos = start;\n }\n // Lookahead / Lookbehind\n if (state.eat(0x28 /* ( */ ) && state.eat(0x3F /* ? */ )) {\n var lookbehind = false;\n if (this.options.ecmaVersion >= 9) lookbehind = state.eat(0x3C /* < */ );\n if (state.eat(0x3D /* = */ ) || state.eat(0x21 /* ! */ )) {\n this.regexp_disjunction(state);\n if (!state.eat(0x29 /* ) */ )) state.raise(\"Unterminated group\");\n state.lastAssertionIsQuantifiable = !lookbehind;\n return true;\n }\n }\n state.pos = start;\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatQuantifier = function(state, noError) {\n if (noError === void 0) noError = false;\n if (this.regexp_eatQuantifierPrefix(state, noError)) {\n state.eat(0x3F /* ? */ );\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatQuantifierPrefix = function(state, noError) {\n return state.eat(0x2A /* * */ ) || state.eat(0x2B /* + */ ) || state.eat(0x3F /* ? */ ) || this.regexp_eatBracedQuantifier(state, noError);\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatBracedQuantifier = function(state, noError) {\n var start = state.pos;\n if (state.eat(0x7B /* { */ )) {\n var min = 0, max = -1;\n if (this.regexp_eatDecimalDigits(state)) {\n min = state.lastIntValue;\n if (state.eat(0x2C /* , */ ) && this.regexp_eatDecimalDigits(state)) max = state.lastIntValue;\n if (state.eat(0x7D /* } */ )) {\n // SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-term\n if (max !== -1 && max < min && !noError) state.raise(\"numbers out of order in {} quantifier\");\n return true;\n }\n }\n if (state.switchU && !noError) state.raise(\"Incomplete quantifier\");\n state.pos = start;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Atom\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatAtom = function(state) {\n return this.regexp_eatPatternCharacters(state) || state.eat(0x2E /* . */ ) || this.regexp_eatReverseSolidusAtomEscape(state) || this.regexp_eatCharacterClass(state) || this.regexp_eatUncapturingGroup(state) || this.regexp_eatCapturingGroup(state);\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatReverseSolidusAtomEscape = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */ )) {\n if (this.regexp_eatAtomEscape(state)) return true;\n state.pos = start;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatUncapturingGroup = function(state) {\n var start = state.pos;\n if (state.eat(0x28 /* ( */ )) {\n if (state.eat(0x3F /* ? */ ) && state.eat(0x3A /* : */ )) {\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */ )) return true;\n state.raise(\"Unterminated group\");\n }\n state.pos = start;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatCapturingGroup = function(state) {\n if (state.eat(0x28 /* ( */ )) {\n if (this.options.ecmaVersion >= 9) this.regexp_groupSpecifier(state);\n else if (state.current() === 0x3F /* ? */ ) state.raise(\"Invalid group\");\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */ )) {\n state.numCapturingParens += 1;\n return true;\n }\n state.raise(\"Unterminated group\");\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatExtendedAtom = function(state) {\n return state.eat(0x2E /* . */ ) || this.regexp_eatReverseSolidusAtomEscape(state) || this.regexp_eatCharacterClass(state) || this.regexp_eatUncapturingGroup(state) || this.regexp_eatCapturingGroup(state) || this.regexp_eatInvalidBracedQuantifier(state) || this.regexp_eatExtendedPatternCharacter(state);\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatInvalidBracedQuantifier = function(state) {\n if (this.regexp_eatBracedQuantifier(state, true)) state.raise(\"Nothing to repeat\");\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatSyntaxCharacter = function(state) {\n var ch = state.current();\n if ($f0e98b2c23d58ac9$var$isSyntaxCharacter(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true;\n }\n return false;\n};\nfunction $f0e98b2c23d58ac9$var$isSyntaxCharacter(ch) {\n return ch === 0x24 /* $ */ || ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ || ch === 0x2E /* . */ || ch === 0x3F /* ? */ || ch >= 0x5B /* [ */ && ch <= 0x5E /* ^ */ || ch >= 0x7B /* { */ && ch <= 0x7D /* } */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter\n// But eat eager.\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatPatternCharacters = function(state) {\n var start = state.pos;\n var ch = 0;\n while((ch = state.current()) !== -1 && !$f0e98b2c23d58ac9$var$isSyntaxCharacter(ch))state.advance();\n return state.pos !== start;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatExtendedPatternCharacter = function(state) {\n var ch = state.current();\n if (ch !== -1 && ch !== 0x24 /* $ */ && !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ ) && ch !== 0x2E /* . */ && ch !== 0x3F /* ? */ && ch !== 0x5B /* [ */ && ch !== 0x5E /* ^ */ && ch !== 0x7C /* | */ ) {\n state.advance();\n return true;\n }\n return false;\n};\n// GroupSpecifier ::\n// [empty]\n// `?` GroupName\n$f0e98b2c23d58ac9$var$pp$1.regexp_groupSpecifier = function(state) {\n if (state.eat(0x3F /* ? */ )) {\n if (!this.regexp_eatGroupName(state)) state.raise(\"Invalid group\");\n var trackDisjunction = this.options.ecmaVersion >= 16;\n var known = state.groupNames[state.lastStringValue];\n if (known) {\n if (trackDisjunction) for(var i = 0, list = known; i < list.length; i += 1){\n var altID = list[i];\n if (!altID.separatedFrom(state.branchID)) state.raise(\"Duplicate capture group name\");\n }\n else state.raise(\"Duplicate capture group name\");\n }\n if (trackDisjunction) (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);\n else state.groupNames[state.lastStringValue] = true;\n }\n};\n// GroupName ::\n// `<` RegExpIdentifierName `>`\n// Note: this updates `state.lastStringValue` property with the eaten name.\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatGroupName = function(state) {\n state.lastStringValue = \"\";\n if (state.eat(0x3C /* < */ )) {\n if (this.regexp_eatRegExpIdentifierName(state) && state.eat(0x3E /* > */ )) return true;\n state.raise(\"Invalid capture group name\");\n }\n return false;\n};\n// RegExpIdentifierName ::\n// RegExpIdentifierStart\n// RegExpIdentifierName RegExpIdentifierPart\n// Note: this updates `state.lastStringValue` property with the eaten name.\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatRegExpIdentifierName = function(state) {\n state.lastStringValue = \"\";\n if (this.regexp_eatRegExpIdentifierStart(state)) {\n state.lastStringValue += $f0e98b2c23d58ac9$var$codePointToString(state.lastIntValue);\n while(this.regexp_eatRegExpIdentifierPart(state))state.lastStringValue += $f0e98b2c23d58ac9$var$codePointToString(state.lastIntValue);\n return true;\n }\n return false;\n};\n// RegExpIdentifierStart ::\n// UnicodeIDStart\n// `$`\n// `_`\n// `\\` RegExpUnicodeEscapeSequence[+U]\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatRegExpIdentifierStart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) ch = state.lastIntValue;\n if ($f0e98b2c23d58ac9$var$isRegExpIdentifierStart(ch)) {\n state.lastIntValue = ch;\n return true;\n }\n state.pos = start;\n return false;\n};\nfunction $f0e98b2c23d58ac9$var$isRegExpIdentifierStart(ch) {\n return $f0e98b2c23d58ac9$export$56b48cc5d7560ffb(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ ;\n}\n// RegExpIdentifierPart ::\n// UnicodeIDContinue\n// `$`\n// `_`\n// `\\` RegExpUnicodeEscapeSequence[+U]\n// \n// \n$f0e98b2c23d58ac9$var$pp$1.regexp_eatRegExpIdentifierPart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) ch = state.lastIntValue;\n if ($f0e98b2c23d58ac9$var$isRegExpIdentifierPart(ch)) {\n state.lastIntValue = ch;\n return true;\n }\n state.pos = start;\n return false;\n};\nfunction $f0e98b2c23d58ac9$var$isRegExpIdentifierPart(ch) {\n return $f0e98b2c23d58ac9$export$332f4d7bee38db93(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /* */ || ch === 0x200D /* */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatAtomEscape = function(state) {\n if (this.regexp_eatBackReference(state) || this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state) || state.switchN && this.regexp_eatKGroupName(state)) return true;\n if (state.switchU) {\n // Make the same message as V8.\n if (state.current() === 0x63 /* c */ ) state.raise(\"Invalid unicode escape\");\n state.raise(\"Invalid escape\");\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatBackReference = function(state) {\n var start = state.pos;\n if (this.regexp_eatDecimalEscape(state)) {\n var n = state.lastIntValue;\n if (state.switchU) {\n // For SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-atomescape\n if (n > state.maxBackReference) state.maxBackReference = n;\n return true;\n }\n if (n <= state.numCapturingParens) return true;\n state.pos = start;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatKGroupName = function(state) {\n if (state.eat(0x6B /* k */ )) {\n if (this.regexp_eatGroupName(state)) {\n state.backReferenceNames.push(state.lastStringValue);\n return true;\n }\n state.raise(\"Invalid named reference\");\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatCharacterEscape = function(state) {\n return this.regexp_eatControlEscape(state) || this.regexp_eatCControlLetter(state) || this.regexp_eatZero(state) || this.regexp_eatHexEscapeSequence(state) || this.regexp_eatRegExpUnicodeEscapeSequence(state, false) || !state.switchU && this.regexp_eatLegacyOctalEscapeSequence(state) || this.regexp_eatIdentityEscape(state);\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatCControlLetter = function(state) {\n var start = state.pos;\n if (state.eat(0x63 /* c */ )) {\n if (this.regexp_eatControlLetter(state)) return true;\n state.pos = start;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatZero = function(state) {\n if (state.current() === 0x30 /* 0 */ && !$f0e98b2c23d58ac9$var$isDecimalDigit(state.lookahead())) {\n state.lastIntValue = 0;\n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatControlEscape = function(state) {\n var ch = state.current();\n if (ch === 0x74 /* t */ ) {\n state.lastIntValue = 0x09; /* \\t */ \n state.advance();\n return true;\n }\n if (ch === 0x6E /* n */ ) {\n state.lastIntValue = 0x0A; /* \\n */ \n state.advance();\n return true;\n }\n if (ch === 0x76 /* v */ ) {\n state.lastIntValue = 0x0B; /* \\v */ \n state.advance();\n return true;\n }\n if (ch === 0x66 /* f */ ) {\n state.lastIntValue = 0x0C; /* \\f */ \n state.advance();\n return true;\n }\n if (ch === 0x72 /* r */ ) {\n state.lastIntValue = 0x0D; /* \\r */ \n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatControlLetter = function(state) {\n var ch = state.current();\n if ($f0e98b2c23d58ac9$var$isControlLetter(ch)) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true;\n }\n return false;\n};\nfunction $f0e98b2c23d58ac9$var$isControlLetter(ch) {\n return ch >= 0x41 /* A */ && ch <= 0x5A /* Z */ || ch >= 0x61 /* a */ && ch <= 0x7A /* z */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {\n if (forceU === void 0) forceU = false;\n var start = state.pos;\n var switchU = forceU || state.switchU;\n if (state.eat(0x75 /* u */ )) {\n if (this.regexp_eatFixedHexDigits(state, 4)) {\n var lead = state.lastIntValue;\n if (switchU && lead >= 0xD800 && lead <= 0xDBFF) {\n var leadSurrogateEnd = state.pos;\n if (state.eat(0x5C /* \\ */ ) && state.eat(0x75 /* u */ ) && this.regexp_eatFixedHexDigits(state, 4)) {\n var trail = state.lastIntValue;\n if (trail >= 0xDC00 && trail <= 0xDFFF) {\n state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000;\n return true;\n }\n }\n state.pos = leadSurrogateEnd;\n state.lastIntValue = lead;\n }\n return true;\n }\n if (switchU && state.eat(0x7B /* { */ ) && this.regexp_eatHexDigits(state) && state.eat(0x7D /* } */ ) && $f0e98b2c23d58ac9$var$isValidUnicode(state.lastIntValue)) return true;\n if (switchU) state.raise(\"Invalid unicode escape\");\n state.pos = start;\n }\n return false;\n};\nfunction $f0e98b2c23d58ac9$var$isValidUnicode(ch) {\n return ch >= 0 && ch <= 0x10FFFF;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatIdentityEscape = function(state) {\n if (state.switchU) {\n if (this.regexp_eatSyntaxCharacter(state)) return true;\n if (state.eat(0x2F /* / */ )) {\n state.lastIntValue = 0x2F; /* / */ \n return true;\n }\n return false;\n }\n var ch = state.current();\n if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */ )) {\n state.lastIntValue = ch;\n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatDecimalEscape = function(state) {\n state.lastIntValue = 0;\n var ch = state.current();\n if (ch >= 0x31 /* 1 */ && ch <= 0x39 /* 9 */ ) {\n do {\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */ );\n state.advance();\n }while ((ch = state.current()) >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */ );\n return true;\n }\n return false;\n};\n// Return values used by character set parsing methods, needed to\n// forbid negation of sets that can match strings.\nvar $f0e98b2c23d58ac9$var$CharSetNone = 0; // Nothing parsed\nvar $f0e98b2c23d58ac9$var$CharSetOk = 1; // Construct parsed, cannot contain strings\nvar $f0e98b2c23d58ac9$var$CharSetString = 2; // Construct parsed, can contain strings\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatCharacterClassEscape = function(state) {\n var ch = state.current();\n if ($f0e98b2c23d58ac9$var$isCharacterClassEscape(ch)) {\n state.lastIntValue = -1;\n state.advance();\n return $f0e98b2c23d58ac9$var$CharSetOk;\n }\n var negate = false;\n if (state.switchU && this.options.ecmaVersion >= 9 && ((negate = ch === 0x50 /* P */ ) || ch === 0x70 /* p */ )) {\n state.lastIntValue = -1;\n state.advance();\n var result;\n if (state.eat(0x7B /* { */ ) && (result = this.regexp_eatUnicodePropertyValueExpression(state)) && state.eat(0x7D /* } */ )) {\n if (negate && result === $f0e98b2c23d58ac9$var$CharSetString) state.raise(\"Invalid property name\");\n return result;\n }\n state.raise(\"Invalid property name\");\n }\n return $f0e98b2c23d58ac9$var$CharSetNone;\n};\nfunction $f0e98b2c23d58ac9$var$isCharacterClassEscape(ch) {\n return ch === 0x64 /* d */ || ch === 0x44 /* D */ || ch === 0x73 /* s */ || ch === 0x53 /* S */ || ch === 0x77 /* w */ || ch === 0x57 /* W */ ;\n}\n// UnicodePropertyValueExpression ::\n// UnicodePropertyName `=` UnicodePropertyValue\n// LoneUnicodePropertyNameOrValue\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {\n var start = state.pos;\n // UnicodePropertyName `=` UnicodePropertyValue\n if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */ )) {\n var name = state.lastStringValue;\n if (this.regexp_eatUnicodePropertyValue(state)) {\n var value = state.lastStringValue;\n this.regexp_validateUnicodePropertyNameAndValue(state, name, value);\n return $f0e98b2c23d58ac9$var$CharSetOk;\n }\n }\n state.pos = start;\n // LoneUnicodePropertyNameOrValue\n if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {\n var nameOrValue = state.lastStringValue;\n return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);\n }\n return $f0e98b2c23d58ac9$var$CharSetNone;\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) {\n if (!$f0e98b2c23d58ac9$var$hasOwn(state.unicodeProperties.nonBinary, name)) state.raise(\"Invalid property name\");\n if (!state.unicodeProperties.nonBinary[name].test(value)) state.raise(\"Invalid property value\");\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {\n if (state.unicodeProperties.binary.test(nameOrValue)) return $f0e98b2c23d58ac9$var$CharSetOk;\n if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) return $f0e98b2c23d58ac9$var$CharSetString;\n state.raise(\"Invalid property name\");\n};\n// UnicodePropertyName ::\n// UnicodePropertyNameCharacters\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatUnicodePropertyName = function(state) {\n var ch = 0;\n state.lastStringValue = \"\";\n while($f0e98b2c23d58ac9$var$isUnicodePropertyNameCharacter(ch = state.current())){\n state.lastStringValue += $f0e98b2c23d58ac9$var$codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== \"\";\n};\nfunction $f0e98b2c23d58ac9$var$isUnicodePropertyNameCharacter(ch) {\n return $f0e98b2c23d58ac9$var$isControlLetter(ch) || ch === 0x5F /* _ */ ;\n}\n// UnicodePropertyValue ::\n// UnicodePropertyValueCharacters\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatUnicodePropertyValue = function(state) {\n var ch = 0;\n state.lastStringValue = \"\";\n while($f0e98b2c23d58ac9$var$isUnicodePropertyValueCharacter(ch = state.current())){\n state.lastStringValue += $f0e98b2c23d58ac9$var$codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== \"\";\n};\nfunction $f0e98b2c23d58ac9$var$isUnicodePropertyValueCharacter(ch) {\n return $f0e98b2c23d58ac9$var$isUnicodePropertyNameCharacter(ch) || $f0e98b2c23d58ac9$var$isDecimalDigit(ch);\n}\n// LoneUnicodePropertyNameOrValue ::\n// UnicodePropertyValueCharacters\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {\n return this.regexp_eatUnicodePropertyValue(state);\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatCharacterClass = function(state) {\n if (state.eat(0x5B /* [ */ )) {\n var negate = state.eat(0x5E /* ^ */ );\n var result = this.regexp_classContents(state);\n if (!state.eat(0x5D /* ] */ )) state.raise(\"Unterminated character class\");\n if (negate && result === $f0e98b2c23d58ac9$var$CharSetString) state.raise(\"Negated character class may contain strings\");\n return true;\n }\n return false;\n};\n// https://tc39.es/ecma262/#prod-ClassContents\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges\n$f0e98b2c23d58ac9$var$pp$1.regexp_classContents = function(state) {\n if (state.current() === 0x5D /* ] */ ) return $f0e98b2c23d58ac9$var$CharSetOk;\n if (state.switchV) return this.regexp_classSetExpression(state);\n this.regexp_nonEmptyClassRanges(state);\n return $f0e98b2c23d58ac9$var$CharSetOk;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash\n$f0e98b2c23d58ac9$var$pp$1.regexp_nonEmptyClassRanges = function(state) {\n while(this.regexp_eatClassAtom(state)){\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */ ) && this.regexp_eatClassAtom(state)) {\n var right = state.lastIntValue;\n if (state.switchU && (left === -1 || right === -1)) state.raise(\"Invalid character class\");\n if (left !== -1 && right !== -1 && left > right) state.raise(\"Range out of order in character class\");\n }\n }\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassAtom = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */ )) {\n if (this.regexp_eatClassEscape(state)) return true;\n if (state.switchU) {\n // Make the same message as V8.\n var ch$1 = state.current();\n if (ch$1 === 0x63 /* c */ || $f0e98b2c23d58ac9$var$isOctalDigit(ch$1)) state.raise(\"Invalid class escape\");\n state.raise(\"Invalid escape\");\n }\n state.pos = start;\n }\n var ch = state.current();\n if (ch !== 0x5D /* ] */ ) {\n state.lastIntValue = ch;\n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassEscape = function(state) {\n var start = state.pos;\n if (state.eat(0x62 /* b */ )) {\n state.lastIntValue = 0x08; /* */ \n return true;\n }\n if (state.switchU && state.eat(0x2D /* - */ )) {\n state.lastIntValue = 0x2D; /* - */ \n return true;\n }\n if (!state.switchU && state.eat(0x63 /* c */ )) {\n if (this.regexp_eatClassControlLetter(state)) return true;\n state.pos = start;\n }\n return this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state);\n};\n// https://tc39.es/ecma262/#prod-ClassSetExpression\n// https://tc39.es/ecma262/#prod-ClassUnion\n// https://tc39.es/ecma262/#prod-ClassIntersection\n// https://tc39.es/ecma262/#prod-ClassSubtraction\n$f0e98b2c23d58ac9$var$pp$1.regexp_classSetExpression = function(state) {\n var result = $f0e98b2c23d58ac9$var$CharSetOk, subResult;\n if (this.regexp_eatClassSetRange(state)) ;\n else if (subResult = this.regexp_eatClassSetOperand(state)) {\n if (subResult === $f0e98b2c23d58ac9$var$CharSetString) result = $f0e98b2c23d58ac9$var$CharSetString;\n // https://tc39.es/ecma262/#prod-ClassIntersection\n var start = state.pos;\n while(state.eatChars([\n 0x26,\n 0x26\n ])){\n if (state.current() !== 0x26 /* & */ && (subResult = this.regexp_eatClassSetOperand(state))) {\n if (subResult !== $f0e98b2c23d58ac9$var$CharSetString) result = $f0e98b2c23d58ac9$var$CharSetOk;\n continue;\n }\n state.raise(\"Invalid character in character class\");\n }\n if (start !== state.pos) return result;\n // https://tc39.es/ecma262/#prod-ClassSubtraction\n while(state.eatChars([\n 0x2D,\n 0x2D\n ])){\n if (this.regexp_eatClassSetOperand(state)) continue;\n state.raise(\"Invalid character in character class\");\n }\n if (start !== state.pos) return result;\n } else state.raise(\"Invalid character in character class\");\n // https://tc39.es/ecma262/#prod-ClassUnion\n for(;;){\n if (this.regexp_eatClassSetRange(state)) continue;\n subResult = this.regexp_eatClassSetOperand(state);\n if (!subResult) return result;\n if (subResult === $f0e98b2c23d58ac9$var$CharSetString) result = $f0e98b2c23d58ac9$var$CharSetString;\n }\n};\n// https://tc39.es/ecma262/#prod-ClassSetRange\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassSetRange = function(state) {\n var start = state.pos;\n if (this.regexp_eatClassSetCharacter(state)) {\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */ ) && this.regexp_eatClassSetCharacter(state)) {\n var right = state.lastIntValue;\n if (left !== -1 && right !== -1 && left > right) state.raise(\"Range out of order in character class\");\n return true;\n }\n state.pos = start;\n }\n return false;\n};\n// https://tc39.es/ecma262/#prod-ClassSetOperand\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassSetOperand = function(state) {\n if (this.regexp_eatClassSetCharacter(state)) return $f0e98b2c23d58ac9$var$CharSetOk;\n return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state);\n};\n// https://tc39.es/ecma262/#prod-NestedClass\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatNestedClass = function(state) {\n var start = state.pos;\n if (state.eat(0x5B /* [ */ )) {\n var negate = state.eat(0x5E /* ^ */ );\n var result = this.regexp_classContents(state);\n if (state.eat(0x5D /* ] */ )) {\n if (negate && result === $f0e98b2c23d58ac9$var$CharSetString) state.raise(\"Negated character class may contain strings\");\n return result;\n }\n state.pos = start;\n }\n if (state.eat(0x5C /* \\ */ )) {\n var result$1 = this.regexp_eatCharacterClassEscape(state);\n if (result$1) return result$1;\n state.pos = start;\n }\n return null;\n};\n// https://tc39.es/ecma262/#prod-ClassStringDisjunction\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassStringDisjunction = function(state) {\n var start = state.pos;\n if (state.eatChars([\n 0x5C,\n 0x71\n ])) {\n if (state.eat(0x7B /* { */ )) {\n var result = this.regexp_classStringDisjunctionContents(state);\n if (state.eat(0x7D /* } */ )) return result;\n } else // Make the same message as V8.\n state.raise(\"Invalid escape\");\n state.pos = start;\n }\n return null;\n};\n// https://tc39.es/ecma262/#prod-ClassStringDisjunctionContents\n$f0e98b2c23d58ac9$var$pp$1.regexp_classStringDisjunctionContents = function(state) {\n var result = this.regexp_classString(state);\n while(state.eat(0x7C /* | */ ))if (this.regexp_classString(state) === $f0e98b2c23d58ac9$var$CharSetString) result = $f0e98b2c23d58ac9$var$CharSetString;\n return result;\n};\n// https://tc39.es/ecma262/#prod-ClassString\n// https://tc39.es/ecma262/#prod-NonEmptyClassString\n$f0e98b2c23d58ac9$var$pp$1.regexp_classString = function(state) {\n var count = 0;\n while(this.regexp_eatClassSetCharacter(state))count++;\n return count === 1 ? $f0e98b2c23d58ac9$var$CharSetOk : $f0e98b2c23d58ac9$var$CharSetString;\n};\n// https://tc39.es/ecma262/#prod-ClassSetCharacter\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassSetCharacter = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */ )) {\n if (this.regexp_eatCharacterEscape(state) || this.regexp_eatClassSetReservedPunctuator(state)) return true;\n if (state.eat(0x62 /* b */ )) {\n state.lastIntValue = 0x08; /* */ \n return true;\n }\n state.pos = start;\n return false;\n }\n var ch = state.current();\n if (ch < 0 || ch === state.lookahead() && $f0e98b2c23d58ac9$var$isClassSetReservedDoublePunctuatorCharacter(ch)) return false;\n if ($f0e98b2c23d58ac9$var$isClassSetSyntaxCharacter(ch)) return false;\n state.advance();\n state.lastIntValue = ch;\n return true;\n};\n// https://tc39.es/ecma262/#prod-ClassSetReservedDoublePunctuator\nfunction $f0e98b2c23d58ac9$var$isClassSetReservedDoublePunctuatorCharacter(ch) {\n return ch === 0x21 /* ! */ || ch >= 0x23 /* # */ && ch <= 0x26 /* & */ || ch >= 0x2A /* * */ && ch <= 0x2C /* , */ || ch === 0x2E /* . */ || ch >= 0x3A /* : */ && ch <= 0x40 /* @ */ || ch === 0x5E /* ^ */ || ch === 0x60 /* ` */ || ch === 0x7E /* ~ */ ;\n}\n// https://tc39.es/ecma262/#prod-ClassSetSyntaxCharacter\nfunction $f0e98b2c23d58ac9$var$isClassSetSyntaxCharacter(ch) {\n return ch === 0x28 /* ( */ || ch === 0x29 /* ) */ || ch === 0x2D /* - */ || ch === 0x2F /* / */ || ch >= 0x5B /* [ */ && ch <= 0x5D /* ] */ || ch >= 0x7B /* { */ && ch <= 0x7D /* } */ ;\n}\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassSetReservedPunctuator = function(state) {\n var ch = state.current();\n if ($f0e98b2c23d58ac9$var$isClassSetReservedPunctuator(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true;\n }\n return false;\n};\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\nfunction $f0e98b2c23d58ac9$var$isClassSetReservedPunctuator(ch) {\n return ch === 0x21 /* ! */ || ch === 0x23 /* # */ || ch === 0x25 /* % */ || ch === 0x26 /* & */ || ch === 0x2C /* , */ || ch === 0x2D /* - */ || ch >= 0x3A /* : */ && ch <= 0x3E /* > */ || ch === 0x40 /* @ */ || ch === 0x60 /* ` */ || ch === 0x7E /* ~ */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassControlLetter = function(state) {\n var ch = state.current();\n if ($f0e98b2c23d58ac9$var$isDecimalDigit(ch) || ch === 0x5F /* _ */ ) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatHexEscapeSequence = function(state) {\n var start = state.pos;\n if (state.eat(0x78 /* x */ )) {\n if (this.regexp_eatFixedHexDigits(state, 2)) return true;\n if (state.switchU) state.raise(\"Invalid escape\");\n state.pos = start;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatDecimalDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while($f0e98b2c23d58ac9$var$isDecimalDigit(ch = state.current())){\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */ );\n state.advance();\n }\n return state.pos !== start;\n};\nfunction $f0e98b2c23d58ac9$var$isDecimalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatHexDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while($f0e98b2c23d58ac9$var$isHexDigit(ch = state.current())){\n state.lastIntValue = 16 * state.lastIntValue + $f0e98b2c23d58ac9$var$hexToInt(ch);\n state.advance();\n }\n return state.pos !== start;\n};\nfunction $f0e98b2c23d58ac9$var$isHexDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */ || ch >= 0x41 /* A */ && ch <= 0x46 /* F */ || ch >= 0x61 /* a */ && ch <= 0x66 /* f */ ;\n}\nfunction $f0e98b2c23d58ac9$var$hexToInt(ch) {\n if (ch >= 0x41 /* A */ && ch <= 0x46 /* F */ ) return 10 + (ch - 0x41 /* A */ );\n if (ch >= 0x61 /* a */ && ch <= 0x66 /* f */ ) return 10 + (ch - 0x61 /* a */ );\n return ch - 0x30 /* 0 */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence\n// Allows only 0-377(octal) i.e. 0-255(decimal).\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {\n if (this.regexp_eatOctalDigit(state)) {\n var n1 = state.lastIntValue;\n if (this.regexp_eatOctalDigit(state)) {\n var n2 = state.lastIntValue;\n if (n1 <= 3 && this.regexp_eatOctalDigit(state)) state.lastIntValue = n1 * 64 + n2 * 8 + state.lastIntValue;\n else state.lastIntValue = n1 * 8 + n2;\n } else state.lastIntValue = n1;\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatOctalDigit = function(state) {\n var ch = state.current();\n if ($f0e98b2c23d58ac9$var$isOctalDigit(ch)) {\n state.lastIntValue = ch - 0x30; /* 0 */ \n state.advance();\n return true;\n }\n state.lastIntValue = 0;\n return false;\n};\nfunction $f0e98b2c23d58ac9$var$isOctalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit\n// And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatFixedHexDigits = function(state, length) {\n var start = state.pos;\n state.lastIntValue = 0;\n for(var i = 0; i < length; ++i){\n var ch = state.current();\n if (!$f0e98b2c23d58ac9$var$isHexDigit(ch)) {\n state.pos = start;\n return false;\n }\n state.lastIntValue = 16 * state.lastIntValue + $f0e98b2c23d58ac9$var$hexToInt(ch);\n state.advance();\n }\n return true;\n};\n// Object type used to represent tokens. Note that normally, tokens\n// simply exist as properties on the parser object. This is only\n// used for the onToken callback and the external tokenizer.\nvar $f0e98b2c23d58ac9$export$50792b0e93539fde = function Token(p) {\n this.type = p.type;\n this.value = p.value;\n this.start = p.start;\n this.end = p.end;\n if (p.options.locations) this.loc = new $f0e98b2c23d58ac9$export$7387db7caf96fcdb(p, p.startLoc, p.endLoc);\n if (p.options.ranges) this.range = [\n p.start,\n p.end\n ];\n};\n// ## Tokenizer\nvar $f0e98b2c23d58ac9$var$pp = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// Move to the next token\n$f0e98b2c23d58ac9$var$pp.next = function(ignoreEscapeSequenceInKeyword) {\n if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc) this.raiseRecoverable(this.start, \"Escape sequence in keyword \" + this.type.keyword);\n if (this.options.onToken) this.options.onToken(new $f0e98b2c23d58ac9$export$50792b0e93539fde(this));\n this.lastTokEnd = this.end;\n this.lastTokStart = this.start;\n this.lastTokEndLoc = this.endLoc;\n this.lastTokStartLoc = this.startLoc;\n this.nextToken();\n};\n$f0e98b2c23d58ac9$var$pp.getToken = function() {\n this.next();\n return new $f0e98b2c23d58ac9$export$50792b0e93539fde(this);\n};\n// If we're in an ES6 environment, make parsers iterable\nif (typeof Symbol !== \"undefined\") $f0e98b2c23d58ac9$var$pp[Symbol.iterator] = function() {\n var this$1$1 = this;\n return {\n next: function() {\n var token = this$1$1.getToken();\n return {\n done: token.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof,\n value: token\n };\n }\n };\n};\n// Toggle strict mode. Re-reads the next number or string to please\n// pedantic tests (`\"use strict\"; 010;` should fail).\n// Read a single token, updating the parser object's token-related\n// properties.\n$f0e98b2c23d58ac9$var$pp.nextToken = function() {\n var curContext = this.curContext();\n if (!curContext || !curContext.preserveSpace) this.skipSpace();\n this.start = this.pos;\n if (this.options.locations) this.startLoc = this.curPosition();\n if (this.pos >= this.input.length) return this.finishToken($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof);\n if (curContext.override) return curContext.override(this);\n else this.readToken(this.fullCharCodeAtPos());\n};\n$f0e98b2c23d58ac9$var$pp.readToken = function(code) {\n // Identifier or keyword. '\\uXXXX' sequences are allowed in\n // identifiers, so '\\' also dispatches to that.\n if ($f0e98b2c23d58ac9$export$56b48cc5d7560ffb(code, this.options.ecmaVersion >= 6) || code === 92 /* '\\' */ ) return this.readWord();\n return this.getTokenFromCode(code);\n};\n$f0e98b2c23d58ac9$var$pp.fullCharCodeAtPos = function() {\n var code = this.input.charCodeAt(this.pos);\n if (code <= 0xd7ff || code >= 0xdc00) return code;\n var next = this.input.charCodeAt(this.pos + 1);\n return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00;\n};\n$f0e98b2c23d58ac9$var$pp.skipBlockComment = function() {\n var startLoc = this.options.onComment && this.curPosition();\n var start = this.pos, end = this.input.indexOf(\"*/\", this.pos += 2);\n if (end === -1) this.raise(this.pos - 2, \"Unterminated comment\");\n this.pos = end + 2;\n if (this.options.locations) for(var nextBreak = void 0, pos = start; (nextBreak = $f0e98b2c23d58ac9$var$nextLineBreak(this.input, pos, this.pos)) > -1;){\n ++this.curLine;\n pos = this.lineStart = nextBreak;\n }\n if (this.options.onComment) this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos, startLoc, this.curPosition());\n};\n$f0e98b2c23d58ac9$var$pp.skipLineComment = function(startSkip) {\n var start = this.pos;\n var startLoc = this.options.onComment && this.curPosition();\n var ch = this.input.charCodeAt(this.pos += startSkip);\n while(this.pos < this.input.length && !$f0e98b2c23d58ac9$export$2c19a3e3b4008fff(ch))ch = this.input.charCodeAt(++this.pos);\n if (this.options.onComment) this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos, startLoc, this.curPosition());\n};\n// Called at the start of the parse and after every token. Skips\n// whitespace and comments, and.\n$f0e98b2c23d58ac9$var$pp.skipSpace = function() {\n loop: while(this.pos < this.input.length){\n var ch = this.input.charCodeAt(this.pos);\n switch(ch){\n case 32:\n case 160:\n ++this.pos;\n break;\n case 13:\n if (this.input.charCodeAt(this.pos + 1) === 10) ++this.pos;\n case 10:\n case 8232:\n case 8233:\n ++this.pos;\n if (this.options.locations) {\n ++this.curLine;\n this.lineStart = this.pos;\n }\n break;\n case 47:\n switch(this.input.charCodeAt(this.pos + 1)){\n case 42:\n this.skipBlockComment();\n break;\n case 47:\n this.skipLineComment(2);\n break;\n default:\n break loop;\n }\n break;\n default:\n if (ch > 8 && ch < 14 || ch >= 5760 && $f0e98b2c23d58ac9$export$268622f0f1cbc82b.test(String.fromCharCode(ch))) ++this.pos;\n else break loop;\n }\n }\n};\n// Called at the end of every token. Sets `end`, `val`, and\n// maintains `context` and `exprAllowed`, and skips the space after\n// the token, so that the next one's `start` will point at the\n// right position.\n$f0e98b2c23d58ac9$var$pp.finishToken = function(type, val) {\n this.end = this.pos;\n if (this.options.locations) this.endLoc = this.curPosition();\n var prevType = this.type;\n this.type = type;\n this.value = val;\n this.updateContext(prevType);\n};\n// ### Token reading\n// This is the function that is called to fetch the next token. It\n// is somewhat obscure, because it works in character codes rather\n// than characters, and because operator parsing has been inlined\n// into it.\n//\n// All in the name of speed.\n//\n$f0e98b2c23d58ac9$var$pp.readToken_dot = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next >= 48 && next <= 57) return this.readNumber(true);\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) {\n this.pos += 3;\n return this.finishToken($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.ellipsis);\n } else {\n ++this.pos;\n return this.finishToken($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot);\n }\n};\n$f0e98b2c23d58ac9$var$pp.readToken_slash = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (this.exprAllowed) {\n ++this.pos;\n return this.readRegexp();\n }\n if (next === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.slash, 1);\n};\n$f0e98b2c23d58ac9$var$pp.readToken_mult_modulo_exp = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n var tokentype = code === 42 ? $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star : $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.modulo;\n // exponentiation operator ** and **=\n if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) {\n ++size;\n tokentype = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.starstar;\n next = this.input.charCodeAt(this.pos + 2);\n }\n if (next === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, size + 1);\n return this.finishOp(tokentype, size);\n};\n$f0e98b2c23d58ac9$var$pp.readToken_pipe_amp = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (this.options.ecmaVersion >= 12) {\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (next2 === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, 3);\n }\n return this.finishOp(code === 124 ? $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalOR : $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalAND, 2);\n }\n if (next === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp(code === 124 ? $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bitwiseOR : $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bitwiseAND, 1);\n};\n$f0e98b2c23d58ac9$var$pp.readToken_caret = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bitwiseXOR, 1);\n};\n$f0e98b2c23d58ac9$var$pp.readToken_plus_min = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.pos)))) {\n // A `-->` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken();\n }\n return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.incDec, 2);\n }\n if (next === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.plusMin, 1);\n};\n$f0e98b2c23d58ac9$var$pp.readToken_lt_gt = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, size + 1);\n return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bitShift, size);\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45) {\n // `` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types$1.incDec, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.plusMin, 1)\n};\n\npp.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(types$1.bitShift, size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // ` convert colors\nimport './src/io/cmyk/index.js';\nimport './src/io/css/index.js';\nimport './src/io/gl/index.js';\nimport './src/io/hcg/index.js';\nimport './src/io/hex/index.js';\nimport './src/io/hsi/index.js';\nimport './src/io/hsl/index.js';\nimport './src/io/hsv/index.js';\nimport './src/io/lab/index.js';\nimport './src/io/lch/index.js';\nimport './src/io/named/index.js';\nimport './src/io/num/index.js';\nimport './src/io/rgb/index.js';\nimport './src/io/temp/index.js';\nimport './src/io/oklab/index.js';\nimport './src/io/oklch/index.js';\n\n// operators --> modify existing Colors\nimport './src/ops/alpha.js';\nimport './src/ops/clipped.js';\nimport './src/ops/darken.js';\nimport './src/ops/get.js';\nimport './src/ops/luminance.js';\nimport './src/ops/mix.js';\nimport './src/ops/premultiply.js';\nimport './src/ops/saturate.js';\nimport './src/ops/set.js';\nimport './src/ops/shade.js';\n\n// interpolators\nimport './src/interpolator/rgb.js';\nimport './src/interpolator/lrgb.js';\nimport './src/interpolator/lab.js';\nimport './src/interpolator/lch.js';\nimport './src/interpolator/num.js';\nimport './src/interpolator/hcg.js';\nimport './src/interpolator/hsi.js';\nimport './src/interpolator/hsl.js';\nimport './src/interpolator/hsv.js';\nimport './src/interpolator/oklab.js';\nimport './src/interpolator/oklch.js';\n\n// generators -- > create new colors\nimport average from './src/generator/average.js';\nimport bezier from './src/generator/bezier.js';\nimport blend from './src/generator/blend.js';\nimport cubehelix from './src/generator/cubehelix.js';\nimport mix from './src/generator/mix.js';\nimport random from './src/generator/random.js';\nimport scale from './src/generator/scale.js';\n\n// other utility methods\nimport { analyze } from './src/utils/analyze.js';\nimport contrast from './src/utils/contrast.js';\nimport deltaE from './src/utils/delta-e.js';\nimport distance from './src/utils/distance.js';\nimport { limits } from './src/utils/analyze.js';\nimport valid from './src/utils/valid.js';\nimport input from './src/io/input.js';\n\n// scale\nimport scales from './src/utils/scales.js';\n\n// colors\nimport colors from './src/colors/w3cx11.js';\nimport brewer from './src/colors/colorbrewer.js';\n\nObject.assign(chroma, {\n average,\n bezier,\n blend,\n cubehelix,\n mix,\n interpolate: mix,\n random,\n scale,\n analyze,\n contrast,\n deltaE,\n distance,\n limits,\n valid,\n scales,\n input,\n colors,\n brewer\n});\n\nexport default chroma;\n","import Color from './Color.js';\nimport { version } from './version.js';\n\nconst chroma = (...args) => {\n return new chroma.Color(...args);\n};\n\nchroma.Color = Color;\nchroma.version = version;\n\nexport default chroma;\n","import { last, clip_rgb, type } from './utils/index.js';\nimport _input from './io/input.js';\n\nclass Color {\n constructor(...args) {\n const me = this;\n if (\n type(args[0]) === 'object' &&\n args[0].constructor &&\n args[0].constructor === this.constructor\n ) {\n // the argument is already a Color instance\n return args[0];\n }\n // last argument could be the mode\n let mode = last(args);\n let autodetect = false;\n if (!mode) {\n autodetect = true;\n if (!_input.sorted) {\n _input.autodetect = _input.autodetect.sort((a, b) => b.p - a.p);\n _input.sorted = true;\n }\n // auto-detect format\n for (let chk of _input.autodetect) {\n mode = chk.test(...args);\n if (mode) break;\n }\n }\n if (_input.format[mode]) {\n const rgb = _input.format[mode].apply(\n null,\n autodetect ? args : args.slice(0, -1)\n );\n me._rgb = clip_rgb(rgb);\n } else {\n throw new Error('unknown format: ' + args);\n }\n // add alpha channel\n if (me._rgb.length === 3) me._rgb.push(1);\n }\n toString() {\n if (type(this.hex) == 'function') return this.hex();\n return `[${this._rgb.join(',')}]`;\n }\n}\nexport default Color;\n","const { PI, min, max } = Math;\n\nexport { default as clip_rgb } from './clip_rgb.js';\nexport { default as limit } from './limit.js';\nexport { default as type } from './type.js';\nexport { default as unpack } from './unpack.js';\nexport { default as last } from './last.js';\n\nconst TWOPI = PI * 2;\nconst PITHIRD = PI / 3;\nconst DEG2RAD = PI / 180;\nconst RAD2DEG = 180 / PI;\n\nexport { PI, TWOPI, PITHIRD, DEG2RAD, RAD2DEG, min, max };\n","import limit from './limit.js';\n\nexport default (rgb) => {\n rgb._clipped = false;\n rgb._unclipped = rgb.slice(0);\n for (let i = 0; i <= 3; i++) {\n if (i < 3) {\n if (rgb[i] < 0 || rgb[i] > 255) rgb._clipped = true;\n rgb[i] = limit(rgb[i], 0, 255);\n } else if (i === 3) {\n rgb[i] = limit(rgb[i], 0, 1);\n }\n }\n return rgb;\n};\n","import { min, max } from './index.js';\n\nexport default (x, low = 0, high = 1) => {\n return min(max(low, x), high);\n};\n","// ported from jQuery's $.type\nconst classToType = {};\nfor (let name of [\n 'Boolean',\n 'Number',\n 'String',\n 'Function',\n 'Array',\n 'Date',\n 'RegExp',\n 'Undefined',\n 'Null'\n]) {\n classToType[`[object ${name}]`] = name.toLowerCase();\n}\nexport default function (obj) {\n return classToType[Object.prototype.toString.call(obj)] || 'object';\n}\n","import type from './type.js';\n\nexport default (args, keyOrder = null) => {\n // if called with more than 3 arguments, we return the arguments\n if (args.length >= 3) return Array.prototype.slice.call(args);\n // with less than 3 args we check if first arg is object\n // and use the keyOrder string to extract and sort properties\n if (type(args[0]) == 'object' && keyOrder) {\n return keyOrder\n .split('')\n .filter((k) => args[0][k] !== undefined)\n .map((k) => args[0][k]);\n }\n // otherwise we just return the first argument\n // (which we suppose is an array of args)\n return args[0];\n};\n","import type from './type.js';\n\nexport default (args) => {\n if (args.length < 2) return null;\n const l = args.length - 1;\n if (type(args[l]) == 'string') return args[l].toLowerCase();\n return null;\n};\n","export default {\n format: {},\n autodetect: []\n};\n","// this gets updated automatically\nexport const version = '2.6.0';\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { unpack, type } from '../../utils/index.js';\nimport cmyk2rgb from './cmyk2rgb.js';\nimport rgb2cmyk from './rgb2cmyk.js';\n\nColor.prototype.cmyk = function () {\n return rgb2cmyk(this._rgb);\n};\n\nchroma.cmyk = (...args) => new Color(...args, 'cmyk');\n\ninput.format.cmyk = cmyk2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'cmyk');\n if (type(args) === 'array' && args.length === 4) {\n return 'cmyk';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\n\nconst cmyk2rgb = (...args) => {\n args = unpack(args, 'cmyk');\n const [c, m, y, k] = args;\n const alpha = args.length > 4 ? args[4] : 1;\n if (k === 1) return [0, 0, 0, alpha];\n return [\n c >= 1 ? 0 : 255 * (1 - c) * (1 - k), // r\n m >= 1 ? 0 : 255 * (1 - m) * (1 - k), // g\n y >= 1 ? 0 : 255 * (1 - y) * (1 - k), // b\n alpha\n ];\n};\n\nexport default cmyk2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { max } = Math;\n\nconst rgb2cmyk = (...args) => {\n let [r, g, b] = unpack(args, 'rgb');\n r = r / 255;\n g = g / 255;\n b = b / 255;\n const k = 1 - max(r, max(g, b));\n const f = k < 1 ? 1 / (1 - k) : 0;\n const c = (1 - r - k) * f;\n const m = (1 - g - k) * f;\n const y = (1 - b - k) * f;\n return [c, m, y, k];\n};\n\nexport default rgb2cmyk;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\n\nimport rgb2css from './rgb2css.js';\nimport css2rgb from './css2rgb.js';\n\nColor.prototype.css = function (mode) {\n return rgb2css(this._rgb, mode);\n};\n\nchroma.css = (...args) => new Color(...args, 'css');\n\ninput.format.css = css2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (h, ...rest) => {\n if (!rest.length && type(h) === 'string' && css2rgb.test(h)) {\n return 'css';\n }\n }\n});\n","import { unpack, last } from '../../utils/index.js';\nimport hsl2css from './hsl2css.js';\nimport rgb2hsl from '../hsl/rgb2hsl.js';\nconst { round } = Math;\n\n/*\n * supported arguments:\n * - rgb2css(r,g,b)\n * - rgb2css(r,g,b,a)\n * - rgb2css([r,g,b], mode)\n * - rgb2css([r,g,b,a], mode)\n * - rgb2css({r,g,b,a}, mode)\n */\nconst rgb2css = (...args) => {\n const rgba = unpack(args, 'rgba');\n let mode = last(args) || 'rgb';\n if (mode.substr(0, 3) == 'hsl') {\n return hsl2css(rgb2hsl(rgba), mode);\n }\n rgba[0] = round(rgba[0]);\n rgba[1] = round(rgba[1]);\n rgba[2] = round(rgba[2]);\n if (mode === 'rgba' || (rgba.length > 3 && rgba[3] < 1)) {\n rgba[3] = rgba.length > 3 ? rgba[3] : 1;\n mode = 'rgba';\n }\n return `${mode}(${rgba.slice(0, mode === 'rgb' ? 3 : 4).join(',')})`;\n};\n\nexport default rgb2css;\n","import { unpack, last } from '../../utils/index.js';\nconst rnd = (a) => Math.round(a * 100) / 100;\n\n/*\n * supported arguments:\n * - hsl2css(h,s,l)\n * - hsl2css(h,s,l,a)\n * - hsl2css([h,s,l], mode)\n * - hsl2css([h,s,l,a], mode)\n * - hsl2css({h,s,l,a}, mode)\n */\nconst hsl2css = (...args) => {\n const hsla = unpack(args, 'hsla');\n let mode = last(args) || 'lsa';\n hsla[0] = rnd(hsla[0] || 0);\n hsla[1] = rnd(hsla[1] * 100) + '%';\n hsla[2] = rnd(hsla[2] * 100) + '%';\n if (mode === 'hsla' || (hsla.length > 3 && hsla[3] < 1)) {\n hsla[3] = hsla.length > 3 ? hsla[3] : 1;\n mode = 'hsla';\n } else {\n hsla.length = 3;\n }\n return `${mode}(${hsla.join(',')})`;\n};\n\nexport default hsl2css;\n","import { unpack, min, max } from '../../utils/index.js';\n\n/*\n * supported arguments:\n * - rgb2hsl(r,g,b)\n * - rgb2hsl(r,g,b,a)\n * - rgb2hsl([r,g,b])\n * - rgb2hsl([r,g,b,a])\n * - rgb2hsl({r,g,b,a})\n */\nconst rgb2hsl = (...args) => {\n args = unpack(args, 'rgba');\n let [r, g, b] = args;\n\n r /= 255;\n g /= 255;\n b /= 255;\n\n const minRgb = min(r, g, b);\n const maxRgb = max(r, g, b);\n\n const l = (maxRgb + minRgb) / 2;\n let s, h;\n\n if (maxRgb === minRgb) {\n s = 0;\n h = Number.NaN;\n } else {\n s =\n l < 0.5\n ? (maxRgb - minRgb) / (maxRgb + minRgb)\n : (maxRgb - minRgb) / (2 - maxRgb - minRgb);\n }\n\n if (r == maxRgb) h = (g - b) / (maxRgb - minRgb);\n else if (g == maxRgb) h = 2 + (b - r) / (maxRgb - minRgb);\n else if (b == maxRgb) h = 4 + (r - g) / (maxRgb - minRgb);\n\n h *= 60;\n if (h < 0) h += 360;\n if (args.length > 3 && args[3] !== undefined) return [h, s, l, args[3]];\n return [h, s, l];\n};\n\nexport default rgb2hsl;\n","import hsl2rgb from '../hsl/hsl2rgb.js';\nimport input from '../input.js';\n\nconst RE_RGB = /^rgb\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*\\)$/;\nconst RE_RGBA =\n /^rgba\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\nconst RE_RGB_PCT =\n /^rgb\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/;\nconst RE_RGBA_PCT =\n /^rgba\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\nconst RE_HSL =\n /^hsl\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/;\nconst RE_HSLA =\n /^hsla\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\n\nconst { round } = Math;\n\nconst css2rgb = (css) => {\n css = css.toLowerCase().trim();\n let m;\n\n if (input.format.named) {\n try {\n return input.format.named(css);\n // eslint-disable-next-line\n } catch (e) {}\n }\n\n // rgb(250,20,0)\n if ((m = css.match(RE_RGB))) {\n const rgb = m.slice(1, 4);\n for (let i = 0; i < 3; i++) {\n rgb[i] = +rgb[i];\n }\n rgb[3] = 1; // default alpha\n return rgb;\n }\n\n // rgba(250,20,0,0.4)\n if ((m = css.match(RE_RGBA))) {\n const rgb = m.slice(1, 5);\n for (let i = 0; i < 4; i++) {\n rgb[i] = +rgb[i];\n }\n return rgb;\n }\n\n // rgb(100%,0%,0%)\n if ((m = css.match(RE_RGB_PCT))) {\n const rgb = m.slice(1, 4);\n for (let i = 0; i < 3; i++) {\n rgb[i] = round(rgb[i] * 2.55);\n }\n rgb[3] = 1; // default alpha\n return rgb;\n }\n\n // rgba(100%,0%,0%,0.4)\n if ((m = css.match(RE_RGBA_PCT))) {\n const rgb = m.slice(1, 5);\n for (let i = 0; i < 3; i++) {\n rgb[i] = round(rgb[i] * 2.55);\n }\n rgb[3] = +rgb[3];\n return rgb;\n }\n\n // hsl(0,100%,50%)\n if ((m = css.match(RE_HSL))) {\n const hsl = m.slice(1, 4);\n hsl[1] *= 0.01;\n hsl[2] *= 0.01;\n const rgb = hsl2rgb(hsl);\n rgb[3] = 1;\n return rgb;\n }\n\n // hsla(0,100%,50%,0.5)\n if ((m = css.match(RE_HSLA))) {\n const hsl = m.slice(1, 4);\n hsl[1] *= 0.01;\n hsl[2] *= 0.01;\n const rgb = hsl2rgb(hsl);\n rgb[3] = +m[4]; // default alpha = 1\n return rgb;\n }\n};\n\ncss2rgb.test = (s) => {\n return (\n RE_RGB.test(s) ||\n RE_RGBA.test(s) ||\n RE_RGB_PCT.test(s) ||\n RE_RGBA_PCT.test(s) ||\n RE_HSL.test(s) ||\n RE_HSLA.test(s)\n );\n};\n\nexport default css2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { round } = Math;\n\nconst hsl2rgb = (...args) => {\n args = unpack(args, 'hsl');\n const [h, s, l] = args;\n let r, g, b;\n if (s === 0) {\n r = g = b = l * 255;\n } else {\n const t3 = [0, 0, 0];\n const c = [0, 0, 0];\n const t2 = l < 0.5 ? l * (1 + s) : l + s - l * s;\n const t1 = 2 * l - t2;\n const h_ = h / 360;\n t3[0] = h_ + 1 / 3;\n t3[1] = h_;\n t3[2] = h_ - 1 / 3;\n for (let i = 0; i < 3; i++) {\n if (t3[i] < 0) t3[i] += 1;\n if (t3[i] > 1) t3[i] -= 1;\n if (6 * t3[i] < 1) c[i] = t1 + (t2 - t1) * 6 * t3[i];\n else if (2 * t3[i] < 1) c[i] = t2;\n else if (3 * t3[i] < 2) c[i] = t1 + (t2 - t1) * (2 / 3 - t3[i]) * 6;\n else c[i] = t1;\n }\n [r, g, b] = [round(c[0] * 255), round(c[1] * 255), round(c[2] * 255)];\n }\n if (args.length > 3) {\n // keep alpha channel\n return [r, g, b, args[3]];\n }\n return [r, g, b, 1];\n};\n\nexport default hsl2rgb;\n","import Color from '../../Color.js';\nimport chroma from '../../chroma.js';\nimport input from '../input.js';\nimport { unpack } from '../../utils/index.js';\n\ninput.format.gl = (...args) => {\n const rgb = unpack(args, 'rgba');\n rgb[0] *= 255;\n rgb[1] *= 255;\n rgb[2] *= 255;\n return rgb;\n};\n\nchroma.gl = (...args) => new Color(...args, 'gl');\n\nColor.prototype.gl = function () {\n const rgb = this._rgb;\n return [rgb[0] / 255, rgb[1] / 255, rgb[2] / 255, rgb[3]];\n};\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hcg2rgb from './hcg2rgb.js';\nimport rgb2hcg from './rgb2hcg.js';\n\nColor.prototype.hcg = function () {\n return rgb2hcg(this._rgb);\n};\n\nchroma.hcg = (...args) => new Color(...args, 'hcg');\n\ninput.format.hcg = hcg2rgb;\n\ninput.autodetect.push({\n p: 1,\n test: (...args) => {\n args = unpack(args, 'hcg');\n if (type(args) === 'array' && args.length === 3) {\n return 'hcg';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { floor } = Math;\n\n/*\n * this is basically just HSV with some minor tweaks\n *\n * hue.. [0..360]\n * chroma .. [0..1]\n * grayness .. [0..1]\n */\n\nconst hcg2rgb = (...args) => {\n args = unpack(args, 'hcg');\n let [h, c, _g] = args;\n let r, g, b;\n _g = _g * 255;\n const _c = c * 255;\n if (c === 0) {\n r = g = b = _g;\n } else {\n if (h === 360) h = 0;\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 60;\n const i = floor(h);\n const f = h - i;\n const p = _g * (1 - c);\n const q = p + _c * (1 - f);\n const t = p + _c * f;\n const v = p + _c;\n switch (i) {\n case 0:\n [r, g, b] = [v, t, p];\n break;\n case 1:\n [r, g, b] = [q, v, p];\n break;\n case 2:\n [r, g, b] = [p, v, t];\n break;\n case 3:\n [r, g, b] = [p, q, v];\n break;\n case 4:\n [r, g, b] = [t, p, v];\n break;\n case 5:\n [r, g, b] = [v, p, q];\n break;\n }\n }\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default hcg2rgb;\n","import { unpack, max, min } from '../../utils/index.js';\n\nconst rgb2hcg = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const minRgb = min(r, g, b);\n const maxRgb = max(r, g, b);\n const delta = maxRgb - minRgb;\n const c = (delta * 100) / 255;\n const _g = (minRgb / (255 - delta)) * 100;\n let h;\n if (delta === 0) {\n h = Number.NaN;\n } else {\n if (r === maxRgb) h = (g - b) / delta;\n if (g === maxRgb) h = 2 + (b - r) / delta;\n if (b === maxRgb) h = 4 + (r - g) / delta;\n h *= 60;\n if (h < 0) h += 360;\n }\n return [h, c, _g];\n};\n\nexport default rgb2hcg;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport { type } from '../../utils/index.js';\nimport input from '../input.js';\nimport hex2rgb from './hex2rgb.js';\nimport rgb2hex from './rgb2hex.js';\n\nColor.prototype.hex = function (mode) {\n return rgb2hex(this._rgb, mode);\n};\n\nchroma.hex = (...args) => new Color(...args, 'hex');\n\ninput.format.hex = hex2rgb;\ninput.autodetect.push({\n p: 4,\n test: (h, ...rest) => {\n if (\n !rest.length &&\n type(h) === 'string' &&\n [3, 4, 5, 6, 7, 8, 9].indexOf(h.length) >= 0\n ) {\n return 'hex';\n }\n }\n});\n","const RE_HEX = /^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;\nconst RE_HEXA = /^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;\n\nconst hex2rgb = (hex) => {\n if (hex.match(RE_HEX)) {\n // remove optional leading #\n if (hex.length === 4 || hex.length === 7) {\n hex = hex.substr(1);\n }\n // expand short-notation to full six-digit\n if (hex.length === 3) {\n hex = hex.split('');\n hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];\n }\n const u = parseInt(hex, 16);\n const r = u >> 16;\n const g = (u >> 8) & 0xff;\n const b = u & 0xff;\n return [r, g, b, 1];\n }\n\n // match rgba hex format, eg #FF000077\n if (hex.match(RE_HEXA)) {\n if (hex.length === 5 || hex.length === 9) {\n // remove optional leading #\n hex = hex.substr(1);\n }\n // expand short-notation to full eight-digit\n if (hex.length === 4) {\n hex = hex.split('');\n hex =\n hex[0] +\n hex[0] +\n hex[1] +\n hex[1] +\n hex[2] +\n hex[2] +\n hex[3] +\n hex[3];\n }\n const u = parseInt(hex, 16);\n const r = (u >> 24) & 0xff;\n const g = (u >> 16) & 0xff;\n const b = (u >> 8) & 0xff;\n const a = Math.round(((u & 0xff) / 0xff) * 100) / 100;\n return [r, g, b, a];\n }\n\n // we used to check for css colors here\n // if _input.css? and rgb = _input.css hex\n // return rgb\n\n throw new Error(`unknown hex color: ${hex}`);\n};\n\nexport default hex2rgb;\n","import { unpack, last } from '../../utils/index.js';\nconst { round } = Math;\n\nconst rgb2hex = (...args) => {\n let [r, g, b, a] = unpack(args, 'rgba');\n let mode = last(args) || 'auto';\n if (a === undefined) a = 1;\n if (mode === 'auto') {\n mode = a < 1 ? 'rgba' : 'rgb';\n }\n r = round(r);\n g = round(g);\n b = round(b);\n const u = (r << 16) | (g << 8) | b;\n let str = '000000' + u.toString(16); //#.toUpperCase();\n str = str.substr(str.length - 6);\n let hxa = '0' + round(a * 255).toString(16);\n hxa = hxa.substr(hxa.length - 2);\n switch (mode.toLowerCase()) {\n case 'rgba':\n return `#${str}${hxa}`;\n case 'argb':\n return `#${hxa}${str}`;\n default:\n return `#${str}`;\n }\n};\n\nexport default rgb2hex;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsi2rgb from './hsi2rgb.js';\nimport rgb2hsi from './rgb2hsi.js';\n\nColor.prototype.hsi = function () {\n return rgb2hsi(this._rgb);\n};\n\nchroma.hsi = (...args) => new Color(...args, 'hsi');\n\ninput.format.hsi = hsi2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsi');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsi';\n }\n }\n});\n","import { unpack, limit, TWOPI, PITHIRD } from '../../utils/index.js';\nconst { cos } = Math;\n\n/*\n * hue [0..360]\n * saturation [0..1]\n * intensity [0..1]\n */\nconst hsi2rgb = (...args) => {\n /*\n borrowed from here:\n http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/hsi2rgb.cpp\n */\n args = unpack(args, 'hsi');\n let [h, s, i] = args;\n let r, g, b;\n\n if (isNaN(h)) h = 0;\n if (isNaN(s)) s = 0;\n // normalize hue\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 360;\n if (h < 1 / 3) {\n b = (1 - s) / 3;\n r = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n g = 1 - (b + r);\n } else if (h < 2 / 3) {\n h -= 1 / 3;\n r = (1 - s) / 3;\n g = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n b = 1 - (r + g);\n } else {\n h -= 2 / 3;\n g = (1 - s) / 3;\n b = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n r = 1 - (g + b);\n }\n r = limit(i * r * 3);\n g = limit(i * g * 3);\n b = limit(i * b * 3);\n return [r * 255, g * 255, b * 255, args.length > 3 ? args[3] : 1];\n};\n\nexport default hsi2rgb;\n","import { unpack, TWOPI } from '../../utils/index.js';\nconst { min, sqrt, acos } = Math;\n\nconst rgb2hsi = (...args) => {\n /*\n borrowed from here:\n http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/rgb2hsi.cpp\n */\n let [r, g, b] = unpack(args, 'rgb');\n r /= 255;\n g /= 255;\n b /= 255;\n let h;\n const min_ = min(r, g, b);\n const i = (r + g + b) / 3;\n const s = i > 0 ? 1 - min_ / i : 0;\n if (s === 0) {\n h = NaN;\n } else {\n h = (r - g + (r - b)) / 2;\n h /= sqrt((r - g) * (r - g) + (r - b) * (g - b));\n h = acos(h);\n if (b > g) {\n h = TWOPI - h;\n }\n h /= TWOPI;\n }\n return [h * 360, s, i];\n};\n\nexport default rgb2hsi;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsl2rgb from './hsl2rgb.js';\nimport rgb2hsl from './rgb2hsl.js';\n\nColor.prototype.hsl = function () {\n return rgb2hsl(this._rgb);\n};\n\nchroma.hsl = (...args) => new Color(...args, 'hsl');\n\ninput.format.hsl = hsl2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsl');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsl';\n }\n }\n});\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsv2rgb from './hsv2rgb.js';\nimport rgb2hsv from './rgb2hsv.js';\n\nColor.prototype.hsv = function () {\n return rgb2hsv(this._rgb);\n};\n\nchroma.hsv = (...args) => new Color(...args, 'hsv');\n\ninput.format.hsv = hsv2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsv');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsv';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { floor } = Math;\n\nconst hsv2rgb = (...args) => {\n args = unpack(args, 'hsv');\n let [h, s, v] = args;\n let r, g, b;\n v *= 255;\n if (s === 0) {\n r = g = b = v;\n } else {\n if (h === 360) h = 0;\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 60;\n\n const i = floor(h);\n const f = h - i;\n const p = v * (1 - s);\n const q = v * (1 - s * f);\n const t = v * (1 - s * (1 - f));\n\n switch (i) {\n case 0:\n [r, g, b] = [v, t, p];\n break;\n case 1:\n [r, g, b] = [q, v, p];\n break;\n case 2:\n [r, g, b] = [p, v, t];\n break;\n case 3:\n [r, g, b] = [p, q, v];\n break;\n case 4:\n [r, g, b] = [t, p, v];\n break;\n case 5:\n [r, g, b] = [v, p, q];\n break;\n }\n }\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default hsv2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { min, max } = Math;\n\n/*\n * supported arguments:\n * - rgb2hsv(r,g,b)\n * - rgb2hsv([r,g,b])\n * - rgb2hsv({r,g,b})\n */\nconst rgb2hsl = (...args) => {\n args = unpack(args, 'rgb');\n let [r, g, b] = args;\n const min_ = min(r, g, b);\n const max_ = max(r, g, b);\n const delta = max_ - min_;\n let h, s, v;\n v = max_ / 255.0;\n if (max_ === 0) {\n h = Number.NaN;\n s = 0;\n } else {\n s = delta / max_;\n if (r === max_) h = (g - b) / delta;\n if (g === max_) h = 2 + (b - r) / delta;\n if (b === max_) h = 4 + (r - g) / delta;\n h *= 60;\n if (h < 0) h += 360;\n }\n return [h, s, v];\n};\n\nexport default rgb2hsl;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport lab2rgb from './lab2rgb.js';\nimport rgb2lab from './rgb2lab.js';\n\nColor.prototype.lab = function () {\n return rgb2lab(this._rgb);\n};\n\nchroma.lab = (...args) => new Color(...args, 'lab');\n\ninput.format.lab = lab2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'lab');\n if (type(args) === 'array' && args.length === 3) {\n return 'lab';\n }\n }\n});\n","import LAB_CONSTANTS from './lab-constants.js';\nimport { unpack } from '../../utils/index.js';\nconst { pow } = Math;\n\n/*\n * L* [0..100]\n * a [-100..100]\n * b [-100..100]\n */\nconst lab2rgb = (...args) => {\n args = unpack(args, 'lab');\n const [l, a, b] = args;\n let x, y, z, r, g, b_;\n\n y = (l + 16) / 116;\n x = isNaN(a) ? y : y + a / 500;\n z = isNaN(b) ? y : y - b / 200;\n\n y = LAB_CONSTANTS.Yn * lab_xyz(y);\n x = LAB_CONSTANTS.Xn * lab_xyz(x);\n z = LAB_CONSTANTS.Zn * lab_xyz(z);\n\n r = xyz_rgb(3.2404542 * x - 1.5371385 * y - 0.4985314 * z); // D65 -> sRGB\n g = xyz_rgb(-0.969266 * x + 1.8760108 * y + 0.041556 * z);\n b_ = xyz_rgb(0.0556434 * x - 0.2040259 * y + 1.0572252 * z);\n\n return [r, g, b_, args.length > 3 ? args[3] : 1];\n};\n\nconst xyz_rgb = (r) => {\n return 255 * (r <= 0.00304 ? 12.92 * r : 1.055 * pow(r, 1 / 2.4) - 0.055);\n};\n\nconst lab_xyz = (t) => {\n return t > LAB_CONSTANTS.t1\n ? t * t * t\n : LAB_CONSTANTS.t2 * (t - LAB_CONSTANTS.t0);\n};\n\nexport default lab2rgb;\n","export default {\n // Corresponds roughly to RGB brighter/darker\n Kn: 18,\n\n // D65 standard referent\n Xn: 0.95047,\n Yn: 1,\n Zn: 1.08883,\n\n t0: 0.137931034, // 4 / 29\n t1: 0.206896552, // 6 / 29\n t2: 0.12841855, // 3 * t1 * t1\n t3: 0.008856452 // t1 * t1 * t1\n};\n","import LAB_CONSTANTS from './lab-constants.js';\nimport { unpack } from '../../utils/index.js';\nconst { pow } = Math;\n\nconst rgb2lab = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [x, y, z] = rgb2xyz(r, g, b);\n const l = 116 * y - 16;\n return [l < 0 ? 0 : l, 500 * (x - y), 200 * (y - z)];\n};\n\nconst rgb_xyz = (r) => {\n if ((r /= 255) <= 0.04045) return r / 12.92;\n return pow((r + 0.055) / 1.055, 2.4);\n};\n\nconst xyz_lab = (t) => {\n if (t > LAB_CONSTANTS.t3) return pow(t, 1 / 3);\n return t / LAB_CONSTANTS.t2 + LAB_CONSTANTS.t0;\n};\n\nconst rgb2xyz = (r, g, b) => {\n r = rgb_xyz(r);\n g = rgb_xyz(g);\n b = rgb_xyz(b);\n const x = xyz_lab(\n (0.4124564 * r + 0.3575761 * g + 0.1804375 * b) / LAB_CONSTANTS.Xn\n );\n const y = xyz_lab(\n (0.2126729 * r + 0.7151522 * g + 0.072175 * b) / LAB_CONSTANTS.Yn\n );\n const z = xyz_lab(\n (0.0193339 * r + 0.119192 * g + 0.9503041 * b) / LAB_CONSTANTS.Zn\n );\n return [x, y, z];\n};\n\nexport default rgb2lab;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport lch2rgb from './lch2rgb.js';\nimport hcl2rgb from './hcl2rgb.js';\nimport rgb2lch from './rgb2lch.js';\n\nColor.prototype.lch = function () {\n return rgb2lch(this._rgb);\n};\nColor.prototype.hcl = function () {\n return rgb2lch(this._rgb).reverse();\n};\n\nchroma.lch = (...args) => new Color(...args, 'lch');\nchroma.hcl = (...args) => new Color(...args, 'hcl');\n\ninput.format.lch = lch2rgb;\ninput.format.hcl = hcl2rgb;\n['lch', 'hcl'].forEach((m) =>\n input.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, m);\n if (type(args) === 'array' && args.length === 3) {\n return m;\n }\n }\n })\n);\n","import { unpack } from '../../utils/index.js';\nimport lch2lab from './lch2lab.js';\nimport lab2rgb from '../lab/lab2rgb.js';\n\nconst lch2rgb = (...args) => {\n args = unpack(args, 'lch');\n const [l, c, h] = args;\n const [L, a, b_] = lch2lab(l, c, h);\n const [r, g, b] = lab2rgb(L, a, b_);\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default lch2rgb;\n","import { unpack, DEG2RAD } from '../../utils/index.js';\nconst { sin, cos } = Math;\n\nconst lch2lab = (...args) => {\n /*\n Convert from a qualitative parameter h and a quantitative parameter l to a 24-bit pixel.\n These formulas were invented by David Dalrymple to obtain maximum contrast without going\n out of gamut if the parameters are in the range 0-1.\n\n A saturation multiplier was added by Gregor Aisch\n */\n let [l, c, h] = unpack(args, 'lch');\n if (isNaN(h)) h = 0;\n h = h * DEG2RAD;\n return [l, cos(h) * c, sin(h) * c];\n};\n\nexport default lch2lab;\n","import { unpack } from '../../utils/index.js';\nimport lch2rgb from './lch2rgb.js';\n\nconst hcl2rgb = (...args) => {\n const hcl = unpack(args, 'hcl').reverse();\n return lch2rgb(...hcl);\n};\n\nexport default hcl2rgb;\n","import { unpack } from '../../utils/index.js';\nimport rgb2lab from '../lab/rgb2lab.js';\nimport lab2lch from './lab2lch.js';\n\nconst rgb2lch = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [l, a, b_] = rgb2lab(r, g, b);\n return lab2lch(l, a, b_);\n};\n\nexport default rgb2lch;\n","import { unpack, RAD2DEG } from '../../utils/index.js';\nconst { sqrt, atan2, round } = Math;\n\nconst lab2lch = (...args) => {\n const [l, a, b] = unpack(args, 'lab');\n const c = sqrt(a * a + b * b);\n let h = (atan2(b, a) * RAD2DEG + 360) % 360;\n if (round(c * 10000) === 0) h = Number.NaN;\n return [l, c, h];\n};\n\nexport default lab2lch;\n","import Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\n\nimport w3cx11 from '../../colors/w3cx11.js';\nimport hex2rgb from '../hex/hex2rgb.js';\nimport rgb2hex from '../hex/rgb2hex.js';\n\nColor.prototype.name = function () {\n const hex = rgb2hex(this._rgb, 'rgb');\n for (let n of Object.keys(w3cx11)) {\n if (w3cx11[n] === hex) return n.toLowerCase();\n }\n return hex;\n};\n\ninput.format.named = (name) => {\n name = name.toLowerCase();\n if (w3cx11[name]) return hex2rgb(w3cx11[name]);\n throw new Error('unknown color name: ' + name);\n};\n\ninput.autodetect.push({\n p: 5,\n test: (h, ...rest) => {\n if (!rest.length && type(h) === 'string' && w3cx11[h.toLowerCase()]) {\n return 'named';\n }\n }\n});\n","/**\n\tX11 color names\n\n\thttp://www.w3.org/TR/css3-color/#svg-color\n*/\n\nconst w3cx11 = {\n aliceblue: '#f0f8ff',\n antiquewhite: '#faebd7',\n aqua: '#00ffff',\n aquamarine: '#7fffd4',\n azure: '#f0ffff',\n beige: '#f5f5dc',\n bisque: '#ffe4c4',\n black: '#000000',\n blanchedalmond: '#ffebcd',\n blue: '#0000ff',\n blueviolet: '#8a2be2',\n brown: '#a52a2a',\n burlywood: '#deb887',\n cadetblue: '#5f9ea0',\n chartreuse: '#7fff00',\n chocolate: '#d2691e',\n coral: '#ff7f50',\n cornflowerblue: '#6495ed',\n cornsilk: '#fff8dc',\n crimson: '#dc143c',\n cyan: '#00ffff',\n darkblue: '#00008b',\n darkcyan: '#008b8b',\n darkgoldenrod: '#b8860b',\n darkgray: '#a9a9a9',\n darkgreen: '#006400',\n darkgrey: '#a9a9a9',\n darkkhaki: '#bdb76b',\n darkmagenta: '#8b008b',\n darkolivegreen: '#556b2f',\n darkorange: '#ff8c00',\n darkorchid: '#9932cc',\n darkred: '#8b0000',\n darksalmon: '#e9967a',\n darkseagreen: '#8fbc8f',\n darkslateblue: '#483d8b',\n darkslategray: '#2f4f4f',\n darkslategrey: '#2f4f4f',\n darkturquoise: '#00ced1',\n darkviolet: '#9400d3',\n deeppink: '#ff1493',\n deepskyblue: '#00bfff',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1e90ff',\n firebrick: '#b22222',\n floralwhite: '#fffaf0',\n forestgreen: '#228b22',\n fuchsia: '#ff00ff',\n gainsboro: '#dcdcdc',\n ghostwhite: '#f8f8ff',\n gold: '#ffd700',\n goldenrod: '#daa520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#adff2f',\n grey: '#808080',\n honeydew: '#f0fff0',\n hotpink: '#ff69b4',\n indianred: '#cd5c5c',\n indigo: '#4b0082',\n ivory: '#fffff0',\n khaki: '#f0e68c',\n laserlemon: '#ffff54',\n lavender: '#e6e6fa',\n lavenderblush: '#fff0f5',\n lawngreen: '#7cfc00',\n lemonchiffon: '#fffacd',\n lightblue: '#add8e6',\n lightcoral: '#f08080',\n lightcyan: '#e0ffff',\n lightgoldenrod: '#fafad2',\n lightgoldenrodyellow: '#fafad2',\n lightgray: '#d3d3d3',\n lightgreen: '#90ee90',\n lightgrey: '#d3d3d3',\n lightpink: '#ffb6c1',\n lightsalmon: '#ffa07a',\n lightseagreen: '#20b2aa',\n lightskyblue: '#87cefa',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#b0c4de',\n lightyellow: '#ffffe0',\n lime: '#00ff00',\n limegreen: '#32cd32',\n linen: '#faf0e6',\n magenta: '#ff00ff',\n maroon: '#800000',\n maroon2: '#7f0000',\n maroon3: '#b03060',\n mediumaquamarine: '#66cdaa',\n mediumblue: '#0000cd',\n mediumorchid: '#ba55d3',\n mediumpurple: '#9370db',\n mediumseagreen: '#3cb371',\n mediumslateblue: '#7b68ee',\n mediumspringgreen: '#00fa9a',\n mediumturquoise: '#48d1cc',\n mediumvioletred: '#c71585',\n midnightblue: '#191970',\n mintcream: '#f5fffa',\n mistyrose: '#ffe4e1',\n moccasin: '#ffe4b5',\n navajowhite: '#ffdead',\n navy: '#000080',\n oldlace: '#fdf5e6',\n olive: '#808000',\n olivedrab: '#6b8e23',\n orange: '#ffa500',\n orangered: '#ff4500',\n orchid: '#da70d6',\n palegoldenrod: '#eee8aa',\n palegreen: '#98fb98',\n paleturquoise: '#afeeee',\n palevioletred: '#db7093',\n papayawhip: '#ffefd5',\n peachpuff: '#ffdab9',\n peru: '#cd853f',\n pink: '#ffc0cb',\n plum: '#dda0dd',\n powderblue: '#b0e0e6',\n purple: '#800080',\n purple2: '#7f007f',\n purple3: '#a020f0',\n rebeccapurple: '#663399',\n red: '#ff0000',\n rosybrown: '#bc8f8f',\n royalblue: '#4169e1',\n saddlebrown: '#8b4513',\n salmon: '#fa8072',\n sandybrown: '#f4a460',\n seagreen: '#2e8b57',\n seashell: '#fff5ee',\n sienna: '#a0522d',\n silver: '#c0c0c0',\n skyblue: '#87ceeb',\n slateblue: '#6a5acd',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#fffafa',\n springgreen: '#00ff7f',\n steelblue: '#4682b4',\n tan: '#d2b48c',\n teal: '#008080',\n thistle: '#d8bfd8',\n tomato: '#ff6347',\n turquoise: '#40e0d0',\n violet: '#ee82ee',\n wheat: '#f5deb3',\n white: '#ffffff',\n whitesmoke: '#f5f5f5',\n yellow: '#ffff00',\n yellowgreen: '#9acd32'\n};\n\nexport default w3cx11;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\nimport num2rgb from './num2rgb.js';\nimport rgb2num from './rgb2num.js';\n\nColor.prototype.num = function () {\n return rgb2num(this._rgb);\n};\n\nchroma.num = (...args) => new Color(...args, 'num');\n\ninput.format.num = num2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (...args) => {\n if (\n args.length === 1 &&\n type(args[0]) === 'number' &&\n args[0] >= 0 &&\n args[0] <= 0xffffff\n ) {\n return 'num';\n }\n }\n});\n","import { type } from '../../utils/index.js';\n\nconst num2rgb = (num) => {\n if (type(num) == 'number' && num >= 0 && num <= 0xffffff) {\n const r = num >> 16;\n const g = (num >> 8) & 0xff;\n const b = num & 0xff;\n return [r, g, b, 1];\n }\n throw new Error('unknown num color: ' + num);\n};\n\nexport default num2rgb;\n","import { unpack } from '../../utils/index.js';\n\nconst rgb2num = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n return (r << 16) + (g << 8) + b;\n};\n\nexport default rgb2num;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { unpack, type } from '../../utils/index.js';\nconst { round } = Math;\n\nColor.prototype.rgb = function (rnd = true) {\n if (rnd === false) return this._rgb.slice(0, 3);\n return this._rgb.slice(0, 3).map(round);\n};\n\nColor.prototype.rgba = function (rnd = true) {\n return this._rgb.slice(0, 4).map((v, i) => {\n return i < 3 ? (rnd === false ? v : round(v)) : v;\n });\n};\n\nchroma.rgb = (...args) => new Color(...args, 'rgb');\n\ninput.format.rgb = (...args) => {\n const rgba = unpack(args, 'rgba');\n if (rgba[3] === undefined) rgba[3] = 1;\n return rgba;\n};\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'rgba');\n if (\n type(args) === 'array' &&\n (args.length === 3 ||\n (args.length === 4 &&\n type(args[3]) == 'number' &&\n args[3] >= 0 &&\n args[3] <= 1))\n ) {\n return 'rgb';\n }\n }\n});\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport temperature2rgb from './temperature2rgb.js';\nimport rgb2temperature from './rgb2temperature.js';\n\nColor.prototype.temp =\n Color.prototype.kelvin =\n Color.prototype.temperature =\n function () {\n return rgb2temperature(this._rgb);\n };\n\nchroma.temp =\n chroma.kelvin =\n chroma.temperature =\n (...args) => new Color(...args, 'temp');\n\ninput.format.temp =\n input.format.kelvin =\n input.format.temperature =\n temperature2rgb;\n","/*\n * Based on implementation by Neil Bartlett\n * https://github.com/neilbartlett/color-temperature\n */\n\nconst { log } = Math;\n\nconst temperature2rgb = (kelvin) => {\n const temp = kelvin / 100;\n let r, g, b;\n if (temp < 66) {\n r = 255;\n g =\n temp < 6\n ? 0\n : -155.25485562709179 -\n 0.44596950469579133 * (g = temp - 2) +\n 104.49216199393888 * log(g);\n b =\n temp < 20\n ? 0\n : -254.76935184120902 +\n 0.8274096064007395 * (b = temp - 10) +\n 115.67994401066147 * log(b);\n } else {\n r =\n 351.97690566805693 +\n 0.114206453784165 * (r = temp - 55) -\n 40.25366309332127 * log(r);\n g =\n 325.4494125711974 +\n 0.07943456536662342 * (g = temp - 50) -\n 28.0852963507957 * log(g);\n b = 255;\n }\n return [r, g, b, 1];\n};\n\nexport default temperature2rgb;\n","/*\n * Based on implementation by Neil Bartlett\n * https://github.com/neilbartlett/color-temperature\n **/\n\nimport temperature2rgb from './temperature2rgb.js';\nimport { unpack } from '../../utils/index.js';\nconst { round } = Math;\n\nconst rgb2temperature = (...args) => {\n const rgb = unpack(args, 'rgb');\n const r = rgb[0],\n b = rgb[2];\n let minTemp = 1000;\n let maxTemp = 40000;\n const eps = 0.4;\n let temp;\n while (maxTemp - minTemp > eps) {\n temp = (maxTemp + minTemp) * 0.5;\n const rgb = temperature2rgb(temp);\n if (rgb[2] / rgb[0] >= b / r) {\n maxTemp = temp;\n } else {\n minTemp = temp;\n }\n }\n return round(temp);\n};\n\nexport default rgb2temperature;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport oklab2rgb from './oklab2rgb.js';\nimport rgb2oklab from './rgb2oklab.js';\n\nColor.prototype.oklab = function () {\n return rgb2oklab(this._rgb);\n};\n\nchroma.oklab = (...args) => new Color(...args, 'oklab');\n\ninput.format.oklab = oklab2rgb;\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'oklab');\n if (type(args) === 'array' && args.length === 3) {\n return 'oklab';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { pow, sign } = Math;\n\n/*\n * L* [0..100]\n * a [-100..100]\n * b [-100..100]\n */\nconst oklab2rgb = (...args) => {\n args = unpack(args, 'lab');\n const [L, a, b] = args;\n\n const l = pow(L + 0.3963377774 * a + 0.2158037573 * b, 3);\n const m = pow(L - 0.1055613458 * a - 0.0638541728 * b, 3);\n const s = pow(L - 0.0894841775 * a - 1.291485548 * b, 3);\n\n return [\n 255 * lrgb2rgb(+4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s),\n 255 * lrgb2rgb(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),\n 255 * lrgb2rgb(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s),\n args.length > 3 ? args[3] : 1\n ];\n};\n\nexport default oklab2rgb;\n\nfunction lrgb2rgb(c) {\n const abs = Math.abs(c);\n if (abs > 0.0031308) {\n return (sign(c) || 1) * (1.055 * pow(abs, 1 / 2.4) - 0.055);\n }\n return c * 12.92;\n}\n","import { unpack } from '../../utils/index.js';\nconst { cbrt, pow, sign } = Math;\n\nconst rgb2oklab = (...args) => {\n // OKLab color space implementation taken from\n // https://bottosson.github.io/posts/oklab/\n const [r, g, b] = unpack(args, 'rgb');\n const [lr, lg, lb] = [\n rgb2lrgb(r / 255),\n rgb2lrgb(g / 255),\n rgb2lrgb(b / 255)\n ];\n const l = cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);\n const m = cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);\n const s = cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);\n\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s\n ];\n};\n\nexport default rgb2oklab;\n\nfunction rgb2lrgb(c) {\n const abs = Math.abs(c);\n if (abs < 0.04045) {\n return c / 12.92;\n }\n return (sign(c) || 1) * pow((abs + 0.055) / 1.055, 2.4);\n}\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport oklch2rgb from './oklch2rgb.js';\nimport rgb2oklch from './rgb2oklch.js';\n\nColor.prototype.oklch = function () {\n return rgb2oklch(this._rgb);\n};\n\nchroma.oklch = (...args) => new Color(...args, 'oklch');\n\ninput.format.oklch = oklch2rgb;\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'oklch');\n if (type(args) === 'array' && args.length === 3) {\n return 'oklch';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nimport lch2lab from '../lch/lch2lab.js';\nimport oklab2rgb from '../oklab/oklab2rgb.js';\n\nconst oklch2rgb = (...args) => {\n args = unpack(args, 'lch');\n const [l, c, h] = args;\n const [L, a, b_] = lch2lab(l, c, h);\n const [r, g, b] = oklab2rgb(L, a, b_);\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default oklch2rgb;\n","import { unpack } from '../../utils/index.js';\nimport rgb2oklab from '../oklab/rgb2oklab.js';\nimport lab2lch from '../lch/lab2lch.js';\n\nconst rgb2oklch = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [l, a, b_] = rgb2oklab(r, g, b);\n return lab2lch(l, a, b_);\n};\n\nexport default rgb2oklch;\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.alpha = function (a, mutate = false) {\n if (a !== undefined && type(a) === 'number') {\n if (mutate) {\n this._rgb[3] = a;\n return this;\n }\n return new Color([this._rgb[0], this._rgb[1], this._rgb[2], a], 'rgb');\n }\n return this._rgb[3];\n};\n","import Color from '../Color.js';\n\nColor.prototype.clipped = function () {\n return this._rgb._clipped || false;\n};\n","import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.darken = function (amount = 1) {\n const me = this;\n const lab = me.lab();\n lab[0] -= LAB_CONSTANTS.Kn * amount;\n return new Color(lab, 'lab').alpha(me.alpha(), true);\n};\n\nColor.prototype.brighten = function (amount = 1) {\n return this.darken(-amount);\n};\n\nColor.prototype.darker = Color.prototype.darken;\nColor.prototype.brighter = Color.prototype.brighten;\n","import Color from '../Color.js';\n\nColor.prototype.get = function (mc) {\n const [mode, channel] = mc.split('.');\n const src = this[mode]();\n if (channel) {\n const i = mode.indexOf(channel) - (mode.substr(0, 2) === 'ok' ? 2 : 0);\n if (i > -1) return src[i];\n throw new Error(`unknown channel ${channel} in mode ${mode}`);\n } else {\n return src;\n }\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\nconst { pow } = Math;\n\nconst EPS = 1e-7;\nconst MAX_ITER = 20;\n\nColor.prototype.luminance = function (lum, mode = 'rgb') {\n if (lum !== undefined && type(lum) === 'number') {\n if (lum === 0) {\n // return pure black\n return new Color([0, 0, 0, this._rgb[3]], 'rgb');\n }\n if (lum === 1) {\n // return pure white\n return new Color([255, 255, 255, this._rgb[3]], 'rgb');\n }\n // compute new color using...\n let cur_lum = this.luminance();\n let max_iter = MAX_ITER;\n\n const test = (low, high) => {\n const mid = low.interpolate(high, 0.5, mode);\n const lm = mid.luminance();\n if (Math.abs(lum - lm) < EPS || !max_iter--) {\n // close enough\n return mid;\n }\n return lm > lum ? test(low, mid) : test(mid, high);\n };\n\n const rgb = (\n cur_lum > lum\n ? test(new Color([0, 0, 0]), this)\n : test(this, new Color([255, 255, 255]))\n ).rgb();\n return new Color([...rgb, this._rgb[3]]);\n }\n return rgb2luminance(...this._rgb.slice(0, 3));\n};\n\nconst rgb2luminance = (r, g, b) => {\n // relative luminance\n // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n r = luminance_x(r);\n g = luminance_x(g);\n b = luminance_x(b);\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\n};\n\nconst luminance_x = (x) => {\n x /= 255;\n return x <= 0.03928 ? x / 12.92 : pow((x + 0.055) / 1.055, 2.4);\n};\n","import Color from '../Color.js';\nimport mix from '../generator/mix.js';\n\nColor.prototype.mix = Color.prototype.interpolate = function (\n col2,\n f = 0.5,\n ...rest\n) {\n return mix(this, col2, f, ...rest);\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\nimport interpolator from '../interpolator/index.js';\n\nexport default (col1, col2, f = 0.5, ...rest) => {\n let mode = rest[0] || 'lrgb';\n if (!interpolator[mode] && !rest.length) {\n // fall back to the first supported mode\n mode = Object.keys(interpolator)[0];\n }\n if (!interpolator[mode]) {\n throw new Error(`interpolation mode ${mode} is not defined`);\n }\n if (type(col1) !== 'object') col1 = new Color(col1);\n if (type(col2) !== 'object') col2 = new Color(col2);\n return interpolator[mode](col1, col2, f).alpha(\n col1.alpha() + f * (col2.alpha() - col1.alpha())\n );\n};\n","export default {};\n","import Color from '../Color.js';\n\nColor.prototype.premultiply = function (mutate = false) {\n const rgb = this._rgb;\n const a = rgb[3];\n if (mutate) {\n this._rgb = [rgb[0] * a, rgb[1] * a, rgb[2] * a, a];\n return this;\n } else {\n return new Color([rgb[0] * a, rgb[1] * a, rgb[2] * a, a], 'rgb');\n }\n};\n","import '../io/lch/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.saturate = function (amount = 1) {\n const me = this;\n const lch = me.lch();\n lch[1] += LAB_CONSTANTS.Kn * amount;\n if (lch[1] < 0) lch[1] = 0;\n return new Color(lch, 'lch').alpha(me.alpha(), true);\n};\n\nColor.prototype.desaturate = function (amount = 1) {\n return this.saturate(-amount);\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.set = function (mc, value, mutate = false) {\n const [mode, channel] = mc.split('.');\n const src = this[mode]();\n if (channel) {\n const i = mode.indexOf(channel) - (mode.substr(0, 2) === 'ok' ? 2 : 0);\n if (i > -1) {\n if (type(value) == 'string') {\n switch (value.charAt(0)) {\n case '+':\n src[i] += +value;\n break;\n case '-':\n src[i] += +value;\n break;\n case '*':\n src[i] *= +value.substr(1);\n break;\n case '/':\n src[i] /= +value.substr(1);\n break;\n default:\n src[i] = +value;\n }\n } else if (type(value) === 'number') {\n src[i] = value;\n } else {\n throw new Error(`unsupported value for Color.set`);\n }\n const out = new Color(src, mode);\n if (mutate) {\n this._rgb = out._rgb;\n return this;\n }\n return out;\n }\n throw new Error(`unknown channel ${channel} in mode ${mode}`);\n } else {\n return src;\n }\n};\n","import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport mix from '../generator/mix.js';\n\nColor.prototype.tint = function (f = 0.5, ...rest) {\n return mix(this, 'white', f, ...rest);\n};\n\nColor.prototype.shade = function (f = 0.5, ...rest) {\n return mix(this, 'black', f, ...rest);\n};\n","import Color from '../Color.js';\nimport index from './index.js';\n\nconst rgb = (col1, col2, f) => {\n const xyz0 = col1._rgb;\n const xyz1 = col2._rgb;\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'rgb'\n );\n};\n\n// register interpolator\nindex.rgb = rgb;\n\nexport default rgb;\n","import Color from '../Color.js';\nconst { sqrt, pow } = Math;\nimport index from './index.js';\n\nconst lrgb = (col1, col2, f) => {\n const [x1, y1, z1] = col1._rgb;\n const [x2, y2, z2] = col2._rgb;\n return new Color(\n sqrt(pow(x1, 2) * (1 - f) + pow(x2, 2) * f),\n sqrt(pow(y1, 2) * (1 - f) + pow(y2, 2) * f),\n sqrt(pow(z1, 2) * (1 - f) + pow(z2, 2) * f),\n 'rgb'\n );\n};\n\n// register interpolator\nindex.lrgb = lrgb;\n\nexport default lrgb;\n","import '../io/lab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst lab = (col1, col2, f) => {\n const xyz0 = col1.lab();\n const xyz1 = col2.lab();\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'lab'\n );\n};\n\n// register interpolator\nindex.lab = lab;\n\nexport default lab;\n","import '../io/lch/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst lch = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'lch');\n};\n\n// register interpolator\nindex.lch = lch;\nindex.hcl = lch;\n\nexport default lch;\n","import Color from '../Color.js';\n\nexport default (col1, col2, f, m) => {\n let xyz0, xyz1;\n if (m === 'hsl') {\n xyz0 = col1.hsl();\n xyz1 = col2.hsl();\n } else if (m === 'hsv') {\n xyz0 = col1.hsv();\n xyz1 = col2.hsv();\n } else if (m === 'hcg') {\n xyz0 = col1.hcg();\n xyz1 = col2.hcg();\n } else if (m === 'hsi') {\n xyz0 = col1.hsi();\n xyz1 = col2.hsi();\n } else if (m === 'lch' || m === 'hcl') {\n m = 'hcl';\n xyz0 = col1.hcl();\n xyz1 = col2.hcl();\n } else if (m === 'oklch') {\n xyz0 = col1.oklch().reverse();\n xyz1 = col2.oklch().reverse();\n }\n\n let hue0, hue1, sat0, sat1, lbv0, lbv1;\n if (m.substr(0, 1) === 'h' || m === 'oklch') {\n [hue0, sat0, lbv0] = xyz0;\n [hue1, sat1, lbv1] = xyz1;\n }\n\n let sat, hue, lbv, dh;\n\n if (!isNaN(hue0) && !isNaN(hue1)) {\n // both colors have hue\n if (hue1 > hue0 && hue1 - hue0 > 180) {\n dh = hue1 - (hue0 + 360);\n } else if (hue1 < hue0 && hue0 - hue1 > 180) {\n dh = hue1 + 360 - hue0;\n } else {\n dh = hue1 - hue0;\n }\n hue = hue0 + f * dh;\n } else if (!isNaN(hue0)) {\n hue = hue0;\n if ((lbv1 == 1 || lbv1 == 0) && m != 'hsv') sat = sat0;\n } else if (!isNaN(hue1)) {\n hue = hue1;\n if ((lbv0 == 1 || lbv0 == 0) && m != 'hsv') sat = sat1;\n } else {\n hue = Number.NaN;\n }\n\n if (sat === undefined) sat = sat0 + f * (sat1 - sat0);\n lbv = lbv0 + f * (lbv1 - lbv0);\n return m === 'oklch'\n ? new Color([lbv, sat, hue], m)\n : new Color([hue, sat, lbv], m);\n};\n","import '../io/num/index.js';\nimport index from './index.js';\n\nimport Color from '../Color.js';\n\nconst num = (col1, col2, f) => {\n const c1 = col1.num();\n const c2 = col2.num();\n return new Color(c1 + f * (c2 - c1), 'num');\n};\n\n// register interpolator\nindex.num = num;\n\nexport default num;\n","import '../io/hcg/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hcg = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hcg');\n};\n\n// register interpolator\nindex.hcg = hcg;\n\nexport default hcg;\n","import '../io/hsi/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsi = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsi');\n};\n\n// register interpolator\nindex.hsi = hsi;\n\nexport default hsi;\n","import '../io/hsl/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsl = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsl');\n};\n\n// register interpolator\nindex.hsl = hsl;\n\nexport default hsl;\n","import '../io/hsv/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsv = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsv');\n};\n\n// register interpolator\nindex.hsv = hsv;\n\nexport default hsv;\n","import '../io/oklab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst oklab = (col1, col2, f) => {\n const xyz0 = col1.oklab();\n const xyz1 = col2.oklab();\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'oklab'\n );\n};\n\n// register interpolator\nindex.oklab = oklab;\n\nexport default oklab;\n","import '../io/lch/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst oklch = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'oklch');\n};\n\n// register interpolator\nindex.oklch = oklch;\n\nexport default oklch;\n","import Color from '../Color.js';\nimport { clip_rgb } from '../utils/index.js';\n\nconst { pow, sqrt, PI, cos, sin, atan2 } = Math;\n\nexport default (colors, mode = 'lrgb', weights = null) => {\n const l = colors.length;\n if (!weights) weights = Array.from(new Array(l)).map(() => 1);\n // normalize weights\n const k =\n l /\n weights.reduce(function (a, b) {\n return a + b;\n });\n weights.forEach((w, i) => {\n weights[i] *= k;\n });\n // convert colors to Color objects\n colors = colors.map((c) => new Color(c));\n if (mode === 'lrgb') {\n return _average_lrgb(colors, weights);\n }\n const first = colors.shift();\n const xyz = first.get(mode);\n const cnt = [];\n let dx = 0;\n let dy = 0;\n // initial color\n for (let i = 0; i < xyz.length; i++) {\n xyz[i] = (xyz[i] || 0) * weights[0];\n cnt.push(isNaN(xyz[i]) ? 0 : weights[0]);\n if (mode.charAt(i) === 'h' && !isNaN(xyz[i])) {\n const A = (xyz[i] / 180) * PI;\n dx += cos(A) * weights[0];\n dy += sin(A) * weights[0];\n }\n }\n\n let alpha = first.alpha() * weights[0];\n colors.forEach((c, ci) => {\n const xyz2 = c.get(mode);\n alpha += c.alpha() * weights[ci + 1];\n for (let i = 0; i < xyz.length; i++) {\n if (!isNaN(xyz2[i])) {\n cnt[i] += weights[ci + 1];\n if (mode.charAt(i) === 'h') {\n const A = (xyz2[i] / 180) * PI;\n dx += cos(A) * weights[ci + 1];\n dy += sin(A) * weights[ci + 1];\n } else {\n xyz[i] += xyz2[i] * weights[ci + 1];\n }\n }\n }\n });\n\n for (let i = 0; i < xyz.length; i++) {\n if (mode.charAt(i) === 'h') {\n let A = (atan2(dy / cnt[i], dx / cnt[i]) / PI) * 180;\n while (A < 0) A += 360;\n while (A >= 360) A -= 360;\n xyz[i] = A;\n } else {\n xyz[i] = xyz[i] / cnt[i];\n }\n }\n alpha /= l;\n return new Color(xyz, mode).alpha(alpha > 0.99999 ? 1 : alpha, true);\n};\n\nconst _average_lrgb = (colors, weights) => {\n const l = colors.length;\n const xyz = [0, 0, 0, 0];\n for (let i = 0; i < colors.length; i++) {\n const col = colors[i];\n const f = weights[i] / l;\n const rgb = col._rgb;\n xyz[0] += pow(rgb[0], 2) * f;\n xyz[1] += pow(rgb[1], 2) * f;\n xyz[2] += pow(rgb[2], 2) * f;\n xyz[3] += rgb[3] * f;\n }\n xyz[0] = sqrt(xyz[0]);\n xyz[1] = sqrt(xyz[1]);\n xyz[2] = sqrt(xyz[2]);\n if (xyz[3] > 0.9999999) xyz[3] = 1;\n return new Color(clip_rgb(xyz));\n};\n","//\n// interpolates between a set of colors uzing a bezier spline\n//\n\n// @requires utils lab\nimport Color from '../Color.js';\nimport '../io/lab/index.js';\nimport scale from './scale.js';\n\n// nth row of the pascal triangle\nconst binom_row = function (n) {\n let row = [1, 1];\n for (let i = 1; i < n; i++) {\n let newrow = [1];\n for (let j = 1; j <= row.length; j++) {\n newrow[j] = (row[j] || 0) + row[j - 1];\n }\n row = newrow;\n }\n return row;\n};\n\nconst bezier = function (colors) {\n let I, lab0, lab1, lab2;\n colors = colors.map((c) => new Color(c));\n if (colors.length === 2) {\n // linear interpolation\n [lab0, lab1] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map((i) => lab0[i] + t * (lab1[i] - lab0[i]));\n return new Color(lab, 'lab');\n };\n } else if (colors.length === 3) {\n // quadratic bezier interpolation\n [lab0, lab1, lab2] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map(\n (i) =>\n (1 - t) * (1 - t) * lab0[i] +\n 2 * (1 - t) * t * lab1[i] +\n t * t * lab2[i]\n );\n return new Color(lab, 'lab');\n };\n } else if (colors.length === 4) {\n // cubic bezier interpolation\n let lab3;\n [lab0, lab1, lab2, lab3] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map(\n (i) =>\n (1 - t) * (1 - t) * (1 - t) * lab0[i] +\n 3 * (1 - t) * (1 - t) * t * lab1[i] +\n 3 * (1 - t) * t * t * lab2[i] +\n t * t * t * lab3[i]\n );\n return new Color(lab, 'lab');\n };\n } else if (colors.length >= 5) {\n // general case (degree n bezier)\n let labs, row, n;\n labs = colors.map((c) => c.lab());\n n = colors.length - 1;\n row = binom_row(n);\n I = function (t) {\n const u = 1 - t;\n const lab = [0, 1, 2].map((i) =>\n labs.reduce(\n (sum, el, j) =>\n sum + row[j] * u ** (n - j) * t ** j * el[i],\n 0\n )\n );\n return new Color(lab, 'lab');\n };\n } else {\n throw new RangeError('No point in running bezier with only one color.');\n }\n return I;\n};\n\nexport default (colors) => {\n const f = bezier(colors);\n f.scale = () => scale(f);\n return f;\n};\n","// minimal multi-purpose interface\n\n// @requires utils color analyze\nimport chroma from '../chroma.js';\nimport { limit, type } from '../utils/index.js';\n\nconst { pow } = Math;\n\nexport default function (colors) {\n // constructor\n let _mode = 'rgb';\n let _nacol = chroma('#ccc');\n let _spread = 0;\n // const _fixed = false;\n let _domain = [0, 1];\n let _pos = [];\n let _padding = [0, 0];\n let _classes = false;\n let _colors = [];\n let _out = false;\n let _min = 0;\n let _max = 1;\n let _correctLightness = false;\n let _colorCache = {};\n let _useCache = true;\n let _gamma = 1;\n\n // private methods\n\n const setColors = function (colors) {\n colors = colors || ['#fff', '#000'];\n if (\n colors &&\n type(colors) === 'string' &&\n chroma.brewer &&\n chroma.brewer[colors.toLowerCase()]\n ) {\n colors = chroma.brewer[colors.toLowerCase()];\n }\n if (type(colors) === 'array') {\n // handle single color\n if (colors.length === 1) {\n colors = [colors[0], colors[0]];\n }\n // make a copy of the colors\n colors = colors.slice(0);\n // convert to chroma classes\n for (let c = 0; c < colors.length; c++) {\n colors[c] = chroma(colors[c]);\n }\n // auto-fill color position\n _pos.length = 0;\n for (let c = 0; c < colors.length; c++) {\n _pos.push(c / (colors.length - 1));\n }\n }\n resetCache();\n return (_colors = colors);\n };\n\n const getClass = function (value) {\n if (_classes != null) {\n const n = _classes.length - 1;\n let i = 0;\n while (i < n && value >= _classes[i]) {\n i++;\n }\n return i - 1;\n }\n return 0;\n };\n\n let tMapLightness = (t) => t;\n let tMapDomain = (t) => t;\n\n // const classifyValue = function(value) {\n // let val = value;\n // if (_classes.length > 2) {\n // const n = _classes.length-1;\n // const i = getClass(value);\n // const minc = _classes[0] + ((_classes[1]-_classes[0]) * (0 + (_spread * 0.5))); // center of 1st class\n // const maxc = _classes[n-1] + ((_classes[n]-_classes[n-1]) * (1 - (_spread * 0.5))); // center of last class\n // val = _min + ((((_classes[i] + ((_classes[i+1] - _classes[i]) * 0.5)) - minc) / (maxc-minc)) * (_max - _min));\n // }\n // return val;\n // };\n\n const getColor = function (val, bypassMap) {\n let col, t;\n if (bypassMap == null) {\n bypassMap = false;\n }\n if (isNaN(val) || val === null) {\n return _nacol;\n }\n if (!bypassMap) {\n if (_classes && _classes.length > 2) {\n // find the class\n const c = getClass(val);\n t = c / (_classes.length - 2);\n } else if (_max !== _min) {\n // just interpolate between min/max\n t = (val - _min) / (_max - _min);\n } else {\n t = 1;\n }\n } else {\n t = val;\n }\n\n // domain map\n t = tMapDomain(t);\n\n if (!bypassMap) {\n t = tMapLightness(t); // lightness correction\n }\n\n if (_gamma !== 1) {\n t = pow(t, _gamma);\n }\n\n t = _padding[0] + t * (1 - _padding[0] - _padding[1]);\n\n t = limit(t, 0, 1);\n\n const k = Math.floor(t * 10000);\n\n if (_useCache && _colorCache[k]) {\n col = _colorCache[k];\n } else {\n if (type(_colors) === 'array') {\n //for i in [0.._pos.length-1]\n for (let i = 0; i < _pos.length; i++) {\n const p = _pos[i];\n if (t <= p) {\n col = _colors[i];\n break;\n }\n if (t >= p && i === _pos.length - 1) {\n col = _colors[i];\n break;\n }\n if (t > p && t < _pos[i + 1]) {\n t = (t - p) / (_pos[i + 1] - p);\n col = chroma.interpolate(\n _colors[i],\n _colors[i + 1],\n t,\n _mode\n );\n break;\n }\n }\n } else if (type(_colors) === 'function') {\n col = _colors(t);\n }\n if (_useCache) {\n _colorCache[k] = col;\n }\n }\n return col;\n };\n\n var resetCache = () => (_colorCache = {});\n\n setColors(colors);\n\n // public interface\n\n const f = function (v) {\n const c = chroma(getColor(v));\n if (_out && c[_out]) {\n return c[_out]();\n } else {\n return c;\n }\n };\n\n f.classes = function (classes) {\n if (classes != null) {\n if (type(classes) === 'array') {\n _classes = classes;\n _domain = [classes[0], classes[classes.length - 1]];\n } else {\n const d = chroma.analyze(_domain);\n if (classes === 0) {\n _classes = [d.min, d.max];\n } else {\n _classes = chroma.limits(d, 'e', classes);\n }\n }\n return f;\n }\n return _classes;\n };\n\n f.domain = function (domain) {\n if (!arguments.length) {\n return _domain;\n }\n _min = domain[0];\n _max = domain[domain.length - 1];\n _pos = [];\n const k = _colors.length;\n if (domain.length === k && _min !== _max) {\n // update positions\n for (let d of Array.from(domain)) {\n _pos.push((d - _min) / (_max - _min));\n }\n } else {\n for (let c = 0; c < k; c++) {\n _pos.push(c / (k - 1));\n }\n if (domain.length > 2) {\n // set domain map\n const tOut = domain.map((d, i) => i / (domain.length - 1));\n const tBreaks = domain.map((d) => (d - _min) / (_max - _min));\n if (!tBreaks.every((val, i) => tOut[i] === val)) {\n tMapDomain = (t) => {\n if (t <= 0 || t >= 1) return t;\n let i = 0;\n while (t >= tBreaks[i + 1]) i++;\n const f =\n (t - tBreaks[i]) / (tBreaks[i + 1] - tBreaks[i]);\n const out = tOut[i] + f * (tOut[i + 1] - tOut[i]);\n return out;\n };\n }\n }\n }\n _domain = [_min, _max];\n return f;\n };\n\n f.mode = function (_m) {\n if (!arguments.length) {\n return _mode;\n }\n _mode = _m;\n resetCache();\n return f;\n };\n\n f.range = function (colors, _pos) {\n setColors(colors, _pos);\n return f;\n };\n\n f.out = function (_o) {\n _out = _o;\n return f;\n };\n\n f.spread = function (val) {\n if (!arguments.length) {\n return _spread;\n }\n _spread = val;\n return f;\n };\n\n f.correctLightness = function (v) {\n if (v == null) {\n v = true;\n }\n _correctLightness = v;\n resetCache();\n if (_correctLightness) {\n tMapLightness = function (t) {\n const L0 = getColor(0, true).lab()[0];\n const L1 = getColor(1, true).lab()[0];\n const pol = L0 > L1;\n let L_actual = getColor(t, true).lab()[0];\n const L_ideal = L0 + (L1 - L0) * t;\n let L_diff = L_actual - L_ideal;\n let t0 = 0;\n let t1 = 1;\n let max_iter = 20;\n while (Math.abs(L_diff) > 1e-2 && max_iter-- > 0) {\n (function () {\n if (pol) {\n L_diff *= -1;\n }\n if (L_diff < 0) {\n t0 = t;\n t += (t1 - t) * 0.5;\n } else {\n t1 = t;\n t += (t0 - t) * 0.5;\n }\n L_actual = getColor(t, true).lab()[0];\n return (L_diff = L_actual - L_ideal);\n })();\n }\n return t;\n };\n } else {\n tMapLightness = (t) => t;\n }\n return f;\n };\n\n f.padding = function (p) {\n if (p != null) {\n if (type(p) === 'number') {\n p = [p, p];\n }\n _padding = p;\n return f;\n } else {\n return _padding;\n }\n };\n\n f.colors = function (numColors, out) {\n // If no arguments are given, return the original colors that were provided\n if (arguments.length < 2) {\n out = 'hex';\n }\n let result = [];\n\n if (arguments.length === 0) {\n result = _colors.slice(0);\n } else if (numColors === 1) {\n result = [f(0.5)];\n } else if (numColors > 1) {\n const dm = _domain[0];\n const dd = _domain[1] - dm;\n result = __range__(0, numColors, false).map((i) =>\n f(dm + (i / (numColors - 1)) * dd)\n );\n } else {\n // returns all colors based on the defined classes\n colors = [];\n let samples = [];\n if (_classes && _classes.length > 2) {\n for (\n let i = 1, end = _classes.length, asc = 1 <= end;\n asc ? i < end : i > end;\n asc ? i++ : i--\n ) {\n samples.push((_classes[i - 1] + _classes[i]) * 0.5);\n }\n } else {\n samples = _domain;\n }\n result = samples.map((v) => f(v));\n }\n\n if (chroma[out]) {\n result = result.map((c) => c[out]());\n }\n return result;\n };\n\n f.cache = function (c) {\n if (c != null) {\n _useCache = c;\n return f;\n } else {\n return _useCache;\n }\n };\n\n f.gamma = function (g) {\n if (g != null) {\n _gamma = g;\n return f;\n } else {\n return _gamma;\n }\n };\n\n f.nodata = function (d) {\n if (d != null) {\n _nacol = chroma(d);\n return f;\n } else {\n return _nacol;\n }\n };\n\n return f;\n}\n\nfunction __range__(left, right, inclusive) {\n let range = [];\n let ascending = left < right;\n let end = !inclusive ? right : ascending ? right + 1 : right - 1;\n for (let i = left; ascending ? i < end : i > end; ascending ? i++ : i--) {\n range.push(i);\n }\n return range;\n}\n","/*\n * interpolates between a set of colors uzing a bezier spline\n * blend mode formulas taken from https://web.archive.org/web/20180110014946/http://www.venture-ware.com/kevin/coding/lets-learn-math-photoshop-blend-modes/\n */\n\nimport '../io/rgb/index.js';\nimport chroma from '../chroma.js';\n\nconst blend = (bottom, top, mode) => {\n if (!blend[mode]) {\n throw new Error('unknown blend mode ' + mode);\n }\n return blend[mode](bottom, top);\n};\n\nconst blend_f = (f) => (bottom, top) => {\n const c0 = chroma(top).rgb();\n const c1 = chroma(bottom).rgb();\n return chroma.rgb(f(c0, c1));\n};\n\nconst each = (f) => (c0, c1) => {\n const out = [];\n out[0] = f(c0[0], c1[0]);\n out[1] = f(c0[1], c1[1]);\n out[2] = f(c0[2], c1[2]);\n return out;\n};\n\nconst normal = (a) => a;\nconst multiply = (a, b) => (a * b) / 255;\nconst darken = (a, b) => (a > b ? b : a);\nconst lighten = (a, b) => (a > b ? a : b);\nconst screen = (a, b) => 255 * (1 - (1 - a / 255) * (1 - b / 255));\nconst overlay = (a, b) =>\n b < 128 ? (2 * a * b) / 255 : 255 * (1 - 2 * (1 - a / 255) * (1 - b / 255));\nconst burn = (a, b) => 255 * (1 - (1 - b / 255) / (a / 255));\nconst dodge = (a, b) => {\n if (a === 255) return 255;\n a = (255 * (b / 255)) / (1 - a / 255);\n return a > 255 ? 255 : a;\n};\n\n// # add = (a,b) ->\n// # if (a + b > 255) then 255 else a + b\n\nblend.normal = blend_f(each(normal));\nblend.multiply = blend_f(each(multiply));\nblend.screen = blend_f(each(screen));\nblend.overlay = blend_f(each(overlay));\nblend.darken = blend_f(each(darken));\nblend.lighten = blend_f(each(lighten));\nblend.dodge = blend_f(each(dodge));\nblend.burn = blend_f(each(burn));\n// blend.add = blend_f(each(add));\n\nexport default blend;\n","// cubehelix interpolation\n// based on D.A. Green \"A colour scheme for the display of astronomical intensity images\"\n// http://astron-soc.in/bulletin/11June/289392011.pdf\nimport { type, clip_rgb, TWOPI } from '../utils/index.js';\nimport chroma from '../chroma.js';\nconst { pow, sin, cos } = Math;\n\nexport default function (\n start = 300,\n rotations = -1.5,\n hue = 1,\n gamma = 1,\n lightness = [0, 1]\n) {\n let dh = 0,\n dl;\n if (type(lightness) === 'array') {\n dl = lightness[1] - lightness[0];\n } else {\n dl = 0;\n lightness = [lightness, lightness];\n }\n const f = function (fract) {\n const a = TWOPI * ((start + 120) / 360 + rotations * fract);\n const l = pow(lightness[0] + dl * fract, gamma);\n const h = dh !== 0 ? hue[0] + fract * dh : hue;\n const amp = (h * l * (1 - l)) / 2;\n const cos_a = cos(a);\n const sin_a = sin(a);\n const r = l + amp * (-0.14861 * cos_a + 1.78277 * sin_a);\n const g = l + amp * (-0.29227 * cos_a - 0.90649 * sin_a);\n const b = l + amp * (+1.97294 * cos_a);\n return chroma(clip_rgb([r * 255, g * 255, b * 255, 1]));\n };\n f.start = function (s) {\n if (s == null) {\n return start;\n }\n start = s;\n return f;\n };\n f.rotations = function (r) {\n if (r == null) {\n return rotations;\n }\n rotations = r;\n return f;\n };\n f.gamma = function (g) {\n if (g == null) {\n return gamma;\n }\n gamma = g;\n return f;\n };\n f.hue = function (h) {\n if (h == null) {\n return hue;\n }\n hue = h;\n if (type(hue) === 'array') {\n dh = hue[1] - hue[0];\n if (dh === 0) {\n hue = hue[1];\n }\n } else {\n dh = 0;\n }\n return f;\n };\n f.lightness = function (h) {\n if (h == null) {\n return lightness;\n }\n if (type(h) === 'array') {\n lightness = h;\n dl = h[1] - h[0];\n } else {\n lightness = [h, h];\n dl = 0;\n }\n return f;\n };\n f.scale = () => chroma.scale(f);\n f.hue(hue);\n return f;\n}\n","import Color from '../Color.js';\nconst digits = '0123456789abcdef';\n\nconst { floor, random } = Math;\n\nexport default () => {\n let code = '#';\n for (let i = 0; i < 6; i++) {\n code += digits.charAt(floor(random() * 16));\n }\n return new Color(code, 'hex');\n};\n","import type from './type.js';\n\nconst { log, pow, floor, abs } = Math;\n\nexport function analyze(data, key = null) {\n const r = {\n min: Number.MAX_VALUE,\n max: Number.MAX_VALUE * -1,\n sum: 0,\n values: [],\n count: 0\n };\n if (type(data) === 'object') {\n data = Object.values(data);\n }\n data.forEach((val) => {\n if (key && type(val) === 'object') val = val[key];\n if (val !== undefined && val !== null && !isNaN(val)) {\n r.values.push(val);\n r.sum += val;\n if (val < r.min) r.min = val;\n if (val > r.max) r.max = val;\n r.count += 1;\n }\n });\n\n r.domain = [r.min, r.max];\n\n r.limits = (mode, num) => limits(r, mode, num);\n\n return r;\n}\n\nexport function limits(data, mode = 'equal', num = 7) {\n if (type(data) == 'array') {\n data = analyze(data);\n }\n const { min, max } = data;\n const values = data.values.sort((a, b) => a - b);\n\n if (num === 1) {\n return [min, max];\n }\n\n const limits = [];\n\n if (mode.substr(0, 1) === 'c') {\n // continuous\n limits.push(min);\n limits.push(max);\n }\n\n if (mode.substr(0, 1) === 'e') {\n // equal interval\n limits.push(min);\n for (let i = 1; i < num; i++) {\n limits.push(min + (i / num) * (max - min));\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'l') {\n // log scale\n if (min <= 0) {\n throw new Error(\n 'Logarithmic scales are only possible for values > 0'\n );\n }\n const min_log = Math.LOG10E * log(min);\n const max_log = Math.LOG10E * log(max);\n limits.push(min);\n for (let i = 1; i < num; i++) {\n limits.push(pow(10, min_log + (i / num) * (max_log - min_log)));\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'q') {\n // quantile scale\n limits.push(min);\n for (let i = 1; i < num; i++) {\n const p = ((values.length - 1) * i) / num;\n const pb = floor(p);\n if (pb === p) {\n limits.push(values[pb]);\n } else {\n // p > pb\n const pr = p - pb;\n limits.push(values[pb] * (1 - pr) + values[pb + 1] * pr);\n }\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'k') {\n // k-means clustering\n /*\n implementation based on\n http://code.google.com/p/figue/source/browse/trunk/figue.js#336\n simplified for 1-d input values\n */\n let cluster;\n const n = values.length;\n const assignments = new Array(n);\n const clusterSizes = new Array(num);\n let repeat = true;\n let nb_iters = 0;\n let centroids = null;\n\n // get seed values\n centroids = [];\n centroids.push(min);\n for (let i = 1; i < num; i++) {\n centroids.push(min + (i / num) * (max - min));\n }\n centroids.push(max);\n\n while (repeat) {\n // assignment step\n for (let j = 0; j < num; j++) {\n clusterSizes[j] = 0;\n }\n for (let i = 0; i < n; i++) {\n const value = values[i];\n let mindist = Number.MAX_VALUE;\n let best;\n for (let j = 0; j < num; j++) {\n const dist = abs(centroids[j] - value);\n if (dist < mindist) {\n mindist = dist;\n best = j;\n }\n clusterSizes[best]++;\n assignments[i] = best;\n }\n }\n\n // update centroids step\n const newCentroids = new Array(num);\n for (let j = 0; j < num; j++) {\n newCentroids[j] = null;\n }\n for (let i = 0; i < n; i++) {\n cluster = assignments[i];\n if (newCentroids[cluster] === null) {\n newCentroids[cluster] = values[i];\n } else {\n newCentroids[cluster] += values[i];\n }\n }\n for (let j = 0; j < num; j++) {\n newCentroids[j] *= 1 / clusterSizes[j];\n }\n\n // check convergence\n repeat = false;\n for (let j = 0; j < num; j++) {\n if (newCentroids[j] !== centroids[j]) {\n repeat = true;\n break;\n }\n }\n\n centroids = newCentroids;\n nb_iters++;\n\n if (nb_iters > 200) {\n repeat = false;\n }\n }\n\n // finished k-means clustering\n // the next part is borrowed from gabrielflor.it\n const kClusters = {};\n for (let j = 0; j < num; j++) {\n kClusters[j] = [];\n }\n for (let i = 0; i < n; i++) {\n cluster = assignments[i];\n kClusters[cluster].push(values[i]);\n }\n let tmpKMeansBreaks = [];\n for (let j = 0; j < num; j++) {\n tmpKMeansBreaks.push(kClusters[j][0]);\n tmpKMeansBreaks.push(kClusters[j][kClusters[j].length - 1]);\n }\n tmpKMeansBreaks = tmpKMeansBreaks.sort((a, b) => a - b);\n limits.push(tmpKMeansBreaks[0]);\n for (let i = 1; i < tmpKMeansBreaks.length; i += 2) {\n const v = tmpKMeansBreaks[i];\n if (!isNaN(v) && limits.indexOf(v) === -1) {\n limits.push(v);\n }\n }\n }\n return limits;\n}\n","import Color from '../Color.js';\nimport '../ops/luminance.js';\n\nexport default (a, b) => {\n // WCAG contrast ratio\n // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef\n a = new Color(a);\n b = new Color(b);\n const l1 = a.luminance();\n const l2 = b.luminance();\n return l1 > l2 ? (l1 + 0.05) / (l2 + 0.05) : (l2 + 0.05) / (l1 + 0.05);\n};\n","import Color from '../Color.js';\nconst { sqrt, pow, min, max, atan2, abs, cos, sin, exp, PI } = Math;\n\nexport default function (a, b, Kl = 1, Kc = 1, Kh = 1) {\n // Delta E (CIE 2000)\n // see http://www.brucelindbloom.com/index.html?Eqn_DeltaE_CIE2000.html\n var rad2deg = function (rad) {\n return (360 * rad) / (2 * PI);\n };\n var deg2rad = function (deg) {\n return (2 * PI * deg) / 360;\n };\n a = new Color(a);\n b = new Color(b);\n const [L1, a1, b1] = Array.from(a.lab());\n const [L2, a2, b2] = Array.from(b.lab());\n const avgL = (L1 + L2) / 2;\n const C1 = sqrt(pow(a1, 2) + pow(b1, 2));\n const C2 = sqrt(pow(a2, 2) + pow(b2, 2));\n const avgC = (C1 + C2) / 2;\n const G = 0.5 * (1 - sqrt(pow(avgC, 7) / (pow(avgC, 7) + pow(25, 7))));\n const a1p = a1 * (1 + G);\n const a2p = a2 * (1 + G);\n const C1p = sqrt(pow(a1p, 2) + pow(b1, 2));\n const C2p = sqrt(pow(a2p, 2) + pow(b2, 2));\n const avgCp = (C1p + C2p) / 2;\n const arctan1 = rad2deg(atan2(b1, a1p));\n const arctan2 = rad2deg(atan2(b2, a2p));\n const h1p = arctan1 >= 0 ? arctan1 : arctan1 + 360;\n const h2p = arctan2 >= 0 ? arctan2 : arctan2 + 360;\n const avgHp =\n abs(h1p - h2p) > 180 ? (h1p + h2p + 360) / 2 : (h1p + h2p) / 2;\n const T =\n 1 -\n 0.17 * cos(deg2rad(avgHp - 30)) +\n 0.24 * cos(deg2rad(2 * avgHp)) +\n 0.32 * cos(deg2rad(3 * avgHp + 6)) -\n 0.2 * cos(deg2rad(4 * avgHp - 63));\n let deltaHp = h2p - h1p;\n deltaHp =\n abs(deltaHp) <= 180\n ? deltaHp\n : h2p <= h1p\n ? deltaHp + 360\n : deltaHp - 360;\n deltaHp = 2 * sqrt(C1p * C2p) * sin(deg2rad(deltaHp) / 2);\n const deltaL = L2 - L1;\n const deltaCp = C2p - C1p;\n const sl = 1 + (0.015 * pow(avgL - 50, 2)) / sqrt(20 + pow(avgL - 50, 2));\n const sc = 1 + 0.045 * avgCp;\n const sh = 1 + 0.015 * avgCp * T;\n const deltaTheta = 30 * exp(-pow((avgHp - 275) / 25, 2));\n const Rc = 2 * sqrt(pow(avgCp, 7) / (pow(avgCp, 7) + pow(25, 7)));\n const Rt = -Rc * sin(2 * deg2rad(deltaTheta));\n const result = sqrt(\n pow(deltaL / (Kl * sl), 2) +\n pow(deltaCp / (Kc * sc), 2) +\n pow(deltaHp / (Kh * sh), 2) +\n Rt * (deltaCp / (Kc * sc)) * (deltaHp / (Kh * sh))\n );\n return max(0, min(100, result));\n}\n","import Color from '../Color.js';\n\n// simple Euclidean distance\nexport default function (a, b, mode = 'lab') {\n // Delta E (CIE 1976)\n // see http://www.brucelindbloom.com/index.html?Equations.html\n a = new Color(a);\n b = new Color(b);\n const l1 = a.get(mode);\n const l2 = b.get(mode);\n let sum_sq = 0;\n for (let i in l1) {\n const d = (l1[i] || 0) - (l2[i] || 0);\n sum_sq += d * d;\n }\n return Math.sqrt(sum_sq);\n}\n","import Color from '../Color.js';\n\nexport default (...args) => {\n try {\n new Color(...args);\n return true;\n // eslint-disable-next-line\n } catch (e) {\n return false;\n }\n};\n","// some pre-defined color scales:\nimport chroma from '../chroma.js';\nimport '../io/hsl/index.js';\nimport scale from '../generator/scale.js';\n\nexport default {\n cool() {\n return scale([chroma.hsl(180, 1, 0.9), chroma.hsl(250, 0.7, 0.4)]);\n },\n hot() {\n return scale(['#000', '#f00', '#ff0', '#fff'], [0, 0.25, 0.75, 1]).mode(\n 'rgb'\n );\n }\n};\n","/**\n ColorBrewer colors for chroma.js\n\n Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The\n Pennsylvania State University.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software distributed\n under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n CONDITIONS OF ANY KIND, either express or implied. See the License for the\n specific language governing permissions and limitations under the License.\n*/\n\nconst colorbrewer = {\n // sequential\n OrRd: ['#fff7ec', '#fee8c8', '#fdd49e', '#fdbb84', '#fc8d59', '#ef6548', '#d7301f', '#b30000', '#7f0000'],\n PuBu: ['#fff7fb', '#ece7f2', '#d0d1e6', '#a6bddb', '#74a9cf', '#3690c0', '#0570b0', '#045a8d', '#023858'],\n BuPu: ['#f7fcfd', '#e0ecf4', '#bfd3e6', '#9ebcda', '#8c96c6', '#8c6bb1', '#88419d', '#810f7c', '#4d004b'],\n Oranges: ['#fff5eb', '#fee6ce', '#fdd0a2', '#fdae6b', '#fd8d3c', '#f16913', '#d94801', '#a63603', '#7f2704'],\n BuGn: ['#f7fcfd', '#e5f5f9', '#ccece6', '#99d8c9', '#66c2a4', '#41ae76', '#238b45', '#006d2c', '#00441b'],\n YlOrBr: ['#ffffe5', '#fff7bc', '#fee391', '#fec44f', '#fe9929', '#ec7014', '#cc4c02', '#993404', '#662506'],\n YlGn: ['#ffffe5', '#f7fcb9', '#d9f0a3', '#addd8e', '#78c679', '#41ab5d', '#238443', '#006837', '#004529'],\n Reds: ['#fff5f0', '#fee0d2', '#fcbba1', '#fc9272', '#fb6a4a', '#ef3b2c', '#cb181d', '#a50f15', '#67000d'],\n RdPu: ['#fff7f3', '#fde0dd', '#fcc5c0', '#fa9fb5', '#f768a1', '#dd3497', '#ae017e', '#7a0177', '#49006a'],\n Greens: ['#f7fcf5', '#e5f5e0', '#c7e9c0', '#a1d99b', '#74c476', '#41ab5d', '#238b45', '#006d2c', '#00441b'],\n YlGnBu: ['#ffffd9', '#edf8b1', '#c7e9b4', '#7fcdbb', '#41b6c4', '#1d91c0', '#225ea8', '#253494', '#081d58'],\n Purples: ['#fcfbfd', '#efedf5', '#dadaeb', '#bcbddc', '#9e9ac8', '#807dba', '#6a51a3', '#54278f', '#3f007d'],\n GnBu: ['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081'],\n Greys: ['#ffffff', '#f0f0f0', '#d9d9d9', '#bdbdbd', '#969696', '#737373', '#525252', '#252525', '#000000'],\n YlOrRd: ['#ffffcc', '#ffeda0', '#fed976', '#feb24c', '#fd8d3c', '#fc4e2a', '#e31a1c', '#bd0026', '#800026'],\n PuRd: ['#f7f4f9', '#e7e1ef', '#d4b9da', '#c994c7', '#df65b0', '#e7298a', '#ce1256', '#980043', '#67001f'],\n Blues: ['#f7fbff', '#deebf7', '#c6dbef', '#9ecae1', '#6baed6', '#4292c6', '#2171b5', '#08519c', '#08306b'],\n PuBuGn: ['#fff7fb', '#ece2f0', '#d0d1e6', '#a6bddb', '#67a9cf', '#3690c0', '#02818a', '#016c59', '#014636'],\n Viridis: ['#440154', '#482777', '#3f4a8a', '#31678e', '#26838f', '#1f9d8a', '#6cce5a', '#b6de2b', '#fee825'],\n\n // diverging\n Spectral: ['#9e0142', '#d53e4f', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#e6f598', '#abdda4', '#66c2a5', '#3288bd', '#5e4fa2'],\n RdYlGn: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#d9ef8b', '#a6d96a', '#66bd63', '#1a9850', '#006837'],\n RdBu: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#f7f7f7', '#d1e5f0', '#92c5de', '#4393c3', '#2166ac', '#053061'],\n PiYG: ['#8e0152', '#c51b7d', '#de77ae', '#f1b6da', '#fde0ef', '#f7f7f7', '#e6f5d0', '#b8e186', '#7fbc41', '#4d9221', '#276419'],\n PRGn: ['#40004b', '#762a83', '#9970ab', '#c2a5cf', '#e7d4e8', '#f7f7f7', '#d9f0d3', '#a6dba0', '#5aae61', '#1b7837', '#00441b'],\n RdYlBu: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee090', '#ffffbf', '#e0f3f8', '#abd9e9', '#74add1', '#4575b4', '#313695'],\n BrBG: ['#543005', '#8c510a', '#bf812d', '#dfc27d', '#f6e8c3', '#f5f5f5', '#c7eae5', '#80cdc1', '#35978f', '#01665e', '#003c30'],\n RdGy: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#ffffff', '#e0e0e0', '#bababa', '#878787', '#4d4d4d', '#1a1a1a'],\n PuOr: ['#7f3b08', '#b35806', '#e08214', '#fdb863', '#fee0b6', '#f7f7f7', '#d8daeb', '#b2abd2', '#8073ac', '#542788', '#2d004b'],\n\n // qualitative\n Set2: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', '#e5c494', '#b3b3b3'],\n Accent: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0', '#f0027f', '#bf5b17', '#666666'],\n Set1: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33', '#a65628', '#f781bf', '#999999'],\n Set3: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462', '#b3de69', '#fccde5', '#d9d9d9', '#bc80bd', '#ccebc5', '#ffed6f'],\n Dark2: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02', '#a6761d', '#666666'],\n Paired: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f', '#ff7f00', '#cab2d6', '#6a3d9a', '#ffff99', '#b15928'],\n Pastel2: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4', '#e6f5c9', '#fff2ae', '#f1e2cc', '#cccccc'],\n Pastel1: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4', '#fed9a6', '#ffffcc', '#e5d8bd', '#fddaec', '#f2f2f2']\n};\n\n// add lowercase aliases for case-insensitive matches\nfor (let key of Object.keys(colorbrewer)) {\n colorbrewer[key.toLowerCase()] = colorbrewer[key];\n}\n\nexport default colorbrewer;\n","import { Layout } from './layout'\nimport chroma from 'chroma-js'\nimport paper, { Layer, Path, Size } from 'paper'\nimport { addClass, debounce, emitEvent, fuzzyEquals, noop, removeClass } from './util'\nimport { Item } from './item'\nimport { Mask } from './items/mask'\nimport { Modifier } from './modifier'\nimport { Beam } from './items/beam'\nimport { Collision as CollisionItem } from './items/collision'\nimport { Stateful } from './stateful'\nimport { OffsetCoordinates } from './coordinates/offset'\nimport { State } from './state'\nimport { Puzzles } from '../puzzles'\nimport { StepState } from './step'\nimport { EventListeners } from './eventListeners'\nimport { Solution } from './solution'\nimport { Interact } from './interact'\nimport { Tile } from './items/tile'\n\nconst elements = Object.freeze({\n footer: document.getElementById('footer'),\n footerMessage: document.getElementById('footer-message'),\n headerMessage: document.getElementById('header-message'),\n main: document.getElementById('main'),\n next: document.getElementById('next'),\n previous: document.getElementById('previous'),\n puzzle: document.getElementById('puzzle'),\n puzzleId: document.getElementById('puzzle-id'),\n redo: document.getElementById('redo'),\n reset: document.getElementById('reset'),\n undo: document.getElementById('undo'),\n title: document.querySelector('title')\n})\n\n// There are various spots below that utilize setTimeout in order to process events in order and to prevent\n// long-running computations from blocking UI updates.\n// See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Event_loop\nexport class Puzzle {\n connections = []\n debug = false\n error = false\n layers = {}\n message\n selectedTile\n solved = false\n\n #beams\n #beamsUpdateDelay = 30\n #collisions = {}\n #eventListeners = new EventListeners({ context: this })\n #interact\n #isUpdatingBeams = false\n #mask\n #maskQueue = []\n #solution\n #state\n #termini\n #tiles = []\n\n constructor () {\n // Don't automatically insert items into the scene graph, they must be explicitly inserted\n paper.settings.insertItems = false\n // noinspection JSCheckFunctionSignatures\n paper.setup(elements.puzzle)\n\n this.#resize()\n\n this.layers.mask = new Layer()\n this.layers.collisions = new Layer()\n this.layers.debug = new Layer()\n\n this.#eventListeners.add([\n { type: Beam.Events.Update, handler: this.#onBeamUpdate },\n { type: 'change', element: elements.puzzleId, handler: this.#onSelect },\n { type: 'click', element: elements.next, handler: this.#next },\n { type: 'click', element: elements.previous, handler: this.#previous },\n { type: 'click', element: elements.redo, handler: this.#redo },\n { type: 'click', element: elements.reset, handler: this.#reset },\n { type: 'click', element: elements.undo, handler: this.#undo },\n { type: 'keyup', handler: this.#onKeyup },\n { type: Modifier.Events.Invoked, handler: this.#onModifierInvoked },\n { type: Puzzle.Events.Mask, handler: this.#onMask },\n { type: 'resize', element: window, handler: debounce(this.#resize) },\n { type: Stateful.Events.Update, handler: this.#onStateUpdate },\n { type: 'tap', element: elements.puzzle, handler: this.#onTap }\n ])\n\n this.#interact = new Interact(elements.puzzle)\n this.#updateDropdown()\n\n this.select()\n }\n\n addMove () {\n return this.#state.addMove()\n }\n\n centerOnTile (offset) {\n const tile = this.layout.getTileByOffset(offset)\n paper.view.center = tile.center\n }\n\n clearDebugPoints () {\n this.layers.debug.clear()\n }\n\n drawDebugPoint (point, style = {}) {\n const circle = new Path.Circle(Object.assign({\n radius: 3,\n fillColor: 'red',\n strokeColor: 'white',\n strokeWidth: 1,\n center: point\n }, style))\n this.layers.debug.addChild(circle)\n }\n\n getBeamsUpdateDelay () {\n return this.#beamsUpdateDelay\n }\n\n getItems (tile) {\n return (tile ? this.#tiles.filter((t) => t === tile) : this.#tiles).flatMap((tile) => tile.items)\n }\n\n getTile (point) {\n const result = paper.project.hitTest(point.ceil(), {\n fill: true,\n match: (result) => result.item.data.type === Item.Types.tile,\n segments: true,\n stroke: true,\n tolerance: 0\n })\n return result ? this.layout.getTileByAxial(result.item.data.coordinates.axial) : result\n }\n\n mask (mask) {\n if (this.#mask) {\n if (this.#mask.equals(mask)) {\n console.debug(mask)\n throw new Error(`Duplicate mask detected: ${mask.id}`)\n }\n\n console.debug('adding mask to queue', mask)\n this.#maskQueue.push(mask)\n return\n }\n\n this.#mask = mask\n\n // TODO animation?\n const tiles = this.#tiles.filter(mask.tileFilter)\n .map((tile) => new Mask(\n tile,\n typeof mask.configuration.style === 'function'\n ? mask.configuration.style(tile)\n : mask.configuration.style\n ))\n\n this.layers.mask.addChildren(tiles.map((tile) => tile.group))\n\n if (mask.message) {\n elements.headerMessage.textContent = mask.message\n }\n\n mask.onMask(this)\n\n document.body.classList.add(Puzzle.Events.Mask)\n }\n\n select (id) {\n if (id !== undefined && id === this.#state?.getId()) {\n // This ID is already selected\n return\n }\n\n try {\n this.#state = State.resolve(id)\n } catch (e) {\n this.#onError(e, 'Could not load puzzle.')\n }\n\n this.#reload()\n }\n\n unmask () {\n console.debug('unmask', this.#mask)\n this.layers.mask.removeChildren()\n this.#updateMessage(this.selectedTile)\n this.#mask.onUnmask(this)\n this.#mask = undefined\n\n document.body.classList.remove(Puzzle.Events.Mask)\n\n const mask = this.#maskQueue.pop()\n if (mask) {\n console.debug('processing next mask in queue', mask)\n // Evaluate after any current events have processed (e.g. beam updates from last mask)\n setTimeout(() => {\n // Allow mask to update since state may have changed since it was queued\n // If onUpdate returns false the mask will not be applied\n if (mask.onUpdate() !== false) {\n this.mask(mask)\n }\n })\n }\n }\n\n update () {\n if (!this.#mask && !this.#isUpdatingBeams) {\n this.#isUpdatingBeams = true\n this.#updateBeams()\n }\n }\n\n updateSelectedTile (tile) {\n const previouslySelectedTile = this.selectedTile\n\n this.selectedTile = tile\n this.#state.setSelectedTile(tile)\n this.#updateMessage(tile)\n this.#updateModifiers(tile, previouslySelectedTile)\n\n if (previouslySelectedTile && previouslySelectedTile !== tile) {\n previouslySelectedTile.onDeselected(tile)\n }\n\n if (tile && tile !== previouslySelectedTile) {\n tile.onSelected(previouslySelectedTile)\n }\n\n return previouslySelectedTile\n }\n\n updateState () {\n this.#state.update(Object.assign(this.#state.getCurrent(), { layout: this.layout.getState() }))\n this.#updateActions()\n\n emitEvent(Puzzle.Events.Updated, { state: this.#state })\n }\n\n #addLayers () {\n // Add layers in the order we want them\n [\n this.layout.layers.tiles,\n this.layout.layers.items,\n this.layers.mask,\n this.layers.collisions,\n this.layers.debug\n ].forEach((layer) => paper.project.addLayer(layer))\n }\n\n #getModifiers (tile) {\n // Sort by ID to ensure they always appear in the same order regardless of ownership\n return (tile?.modifiers || []).concat(this.layout.modifiers)\n .filter((modifier) => !modifier.immutable)\n .sort((a, b) => a.id - b.id)\n }\n\n #next () {\n const id = Puzzles.visible.nextId(this.#state.getId())\n if (id) {\n this.select(id)\n }\n }\n\n #onBeamUpdate (event) {\n const beam = event.detail.beam\n const state = event.detail.state\n\n if (state?.has(StepState.Collision)) {\n const collision = state.get(StepState.Collision)\n const collisionId = Puzzle.Collision.id(collision.point)\n const existing = this.#collisions[collisionId]\n\n if (existing) {\n existing.addBeam(beam)\n } else {\n this.#collisions[collisionId] = new Puzzle.Collision(this.layers.collisions, [beam], collision.point)\n }\n\n // Beam with collision has an active mask\n const mask = this.#mask?.configuration\n if (mask?.beam?.equals(beam)) {\n this.unmask()\n }\n }\n\n Object.values(this.#collisions).forEach((collision) => collision.update())\n\n this.#beams\n .filter((otherBeam) => otherBeam !== beam)\n .forEach((beam) => beam.onBeamUpdated(event, this))\n\n setTimeout(() => this.update(), 0)\n }\n\n #onError (error, message, cause) {\n this.error = true\n\n // Support exclusion of error\n if (typeof error === 'string') {\n message = error\n cause = message\n error = undefined\n }\n\n if (error) {\n console.error(error)\n }\n\n cause = cause ?? error?.cause\n if (cause) {\n console.error('cause:', cause)\n }\n\n message = message ?? error?.message ?? 'The puzzle has encountered an error, please consider reporting.'\n elements.headerMessage.textContent = message\n document.body.classList.add(Puzzle.Events.Error)\n }\n\n #onKeyup (event) {\n if (this.debug && event.key === 's') {\n this.update()\n }\n }\n\n #onMask (event) {\n console.debug('Mask event', event)\n this.mask(event.detail.mask)\n }\n\n #onModifierInvoked (event) {\n const modifier = event.detail.modifier\n const tile = event.detail.tile\n\n if (\n // Modifier does not belong to a tile\n !modifier.parent &&\n // Tile has a lock modifier\n tile.modifiers.some((modifier) => modifier.type === Modifier.Types.lock) &&\n // Tile does not already have a modifier of this type\n !tile.modifiers.some((other) => other.type === modifier.type) &&\n // Tile has less than the maximum number of modifiers\n tile.modifiers.length < Tile.MaxModifiers\n ) {\n console.debug('locking modifier to tile', modifier, tile)\n this.layout.removeModifier(modifier)\n modifier.move(tile)\n // Disable any other attached modifiers of this type to prevent duplicate locking\n this.#getModifiers(tile)\n .filter((other) => other.type === modifier.type && other.id !== modifier.id)\n .forEach((other) => other.update({ disabled: true }))\n }\n\n this.addMove()\n this.updateState()\n\n this.#beams\n // Update beams in the tile being modified first\n .sort((beam) => tile.items.some((item) => item === beam) ? -1 : 0)\n .forEach((beam) => beam.onModifierInvoked(event, this))\n\n setTimeout(() => this.update(), 0)\n }\n\n #onSelect (event) {\n this.select(event.target.value)\n }\n\n #onSolved () {\n if (this.solved) {\n return\n }\n\n this.solved = true\n\n this.updateSelectedTile(undefined)\n this.mask(Puzzle.#solvedMask)\n\n const span = document.createElement('span')\n span.classList.add(Puzzle.ClassNames.Icon)\n span.textContent = 'celebration'\n span.title = 'Solved!'\n\n elements.headerMessage.replaceChildren(span)\n\n document.body.classList.add(Puzzle.Events.Solved)\n emitEvent(Puzzle.Events.Solved)\n }\n\n #onStateUpdate (event) {\n console.debug('Puzzle.#onStateUpdate()', event)\n this.updateState()\n }\n\n #onTap (event) {\n let tile\n\n if (this.solved || this.error) {\n return\n }\n\n const result = paper.project.hitTest(event.detail.point)\n\n switch (result?.item.data.type) {\n case Item.Types.mask:\n return\n case Item.Types.tile:\n tile = this.layout.getTileByAxial(result.item.data.coordinates.axial)\n break\n }\n\n // There is an active mask\n if (this.#mask) {\n this.#mask.onTap(this, tile)\n } else {\n const previouslySelectedTile = this.updateSelectedTile(tile)\n\n if (tile && tile === previouslySelectedTile) {\n tile.onTap(event)\n }\n }\n }\n\n #previous () {\n const id = Puzzles.visible.previousId(this.#state.getId())\n if (id) {\n this.select(id)\n }\n }\n\n #redo () {\n if (this.#state.redo()) {\n this.#reload()\n }\n }\n\n #reload () {\n this.error = false\n\n if (this.#state) {\n this.#teardown()\n }\n\n this.#setup()\n\n emitEvent(Puzzle.Events.Updated, { state: this.#state })\n }\n\n #removeLayers () {\n Object.values(this.layers).forEach((layer) => layer.removeChildren())\n paper.project.clear()\n }\n\n #reset () {\n if (this.#state.reset()) {\n this.#reload()\n }\n }\n\n #resize () {\n const { width, height } = elements.main.getBoundingClientRect()\n elements.puzzle.style.height = height + 'px'\n elements.puzzle.style.width = width + 'px'\n paper.view.viewSize = new Size(width, height)\n }\n\n #setup () {\n const { layout, message, solution } = this.#state.getCurrent()\n\n this.layout = new Layout(layout)\n this.message = message\n this.#solution = new Solution(solution)\n\n this.#tiles = this.layout.tiles\n this.#termini = this.layout.items.filter((item) => item.type === Item.Types.terminus)\n this.#beams = this.#termini.flatMap((terminus) => terminus.beams)\n\n this.#addLayers()\n\n document.body.classList.add(Puzzle.Events.Loaded)\n\n const selectedTileId = this.#state.getSelectedTile()\n const selectedTile = selectedTileId\n ? this.layout.getTileByOffset(new OffsetCoordinates(...selectedTileId.split(',')))\n : undefined\n\n this.updateSelectedTile(selectedTile)\n this.updateState()\n this.update()\n }\n\n #teardown () {\n document.body.classList.remove(...Object.values(Puzzle.Events))\n\n this.#removeLayers()\n\n this.#tiles.forEach((tile) => tile.teardown())\n this.#tiles = []\n this.#solution?.teardown()\n this.#solution = undefined\n this.solved = false\n this.layout?.teardown()\n this.layout = undefined\n this.selectedTile = undefined\n this.#beams = []\n this.#collisions = {}\n this.#isUpdatingBeams = false\n this.#mask = undefined\n this.#maskQueue = []\n this.#termini = []\n }\n\n #undo () {\n if (this.#state.undo()) {\n this.#reload()\n }\n }\n\n #updateActions () {\n const id = this.#state.getId()\n const title = this.#state.getTitle()\n\n // Update browser title\n elements.title.textContent = `Beaming: Puzzle ${title}`\n\n removeClass(Puzzle.ClassNames.Disabled, ...Array.from(document.querySelectorAll('#actions li')))\n\n const disable = []\n\n if (!this.#state.canUndo()) {\n disable.push(elements.undo)\n }\n\n if (!this.#state.canRedo()) {\n disable.push(elements.redo)\n }\n\n if (!this.#state.canReset()) {\n disable.push(elements.reset)\n }\n\n if (!Puzzles.visible.has(id)) {\n // Custom puzzle\n elements.puzzleId.value = ''\n disable.push(elements.previous, elements.next)\n } else {\n elements.puzzleId.value = id\n\n if (id === Puzzles.visible.firstId) {\n disable.push(elements.previous)\n } else if (id === Puzzles.visible.lastId) {\n disable.push(elements.next)\n }\n }\n\n addClass(Puzzle.ClassNames.Disabled, ...disable)\n }\n\n #updateDropdown () {\n elements.puzzleId.replaceChildren()\n for (const id of Puzzles.visible.ids) {\n const option = document.createElement('option')\n option.value = id\n option.innerText = Puzzles.titles[id]\n elements.puzzleId.append(option)\n }\n }\n\n #updateBeams () {\n const beams = this.#beams.filter((beam) => beam.isPending())\n\n if (!beams.length) {\n this.#isUpdatingBeams = false\n\n // Ensure we check for a solution after all other in-progress events have processed\n setTimeout(() => {\n if (this.#solution.isSolved()) {\n this.#onSolved()\n }\n }, 0)\n return\n }\n\n if (this.debug) {\n this.layers.debug.clear()\n }\n\n beams.forEach((beam) => beam.step(this))\n\n // Ensure the UI has a chance to update between loops\n setTimeout(() => this.#updateBeams(), this.#beamsUpdateDelay)\n }\n\n #updateMessage (tile) {\n elements.headerMessage.textContent = this.message\n elements.footerMessage.replaceChildren()\n\n if (tile) {\n // Check to see if tile has any color elements that need to be displayed\n // Note: these will only be displayed if the tile contains an item with more than one color\n const colorElements = tile.items\n .map((item) => item.getColorElements(tile))\n .find((colorElements) => colorElements.length > 1) || []\n elements.footerMessage.replaceChildren(...colorElements)\n }\n }\n\n #updateModifiers (tile, previouslySelectedTile) {\n this.#getModifiers(previouslySelectedTile).forEach((modifier) => modifier.detach())\n\n const modifiers = this.#getModifiers(tile)\n modifiers.forEach((modifier) => modifier.attach(tile))\n\n elements.footer.classList.toggle(Puzzle.ClassNames.Active, modifiers.length > 0)\n }\n\n static Collision = class {\n constructor (layer, beams, point, item = undefined) {\n this.id = Puzzle.Collision.id(point)\n this.layer = layer\n this.beams = beams\n this.point = point\n this.item = item\n }\n\n addBeam (beam) {\n if (!this.beams.some((otherBeam) => otherBeam.id === beam.id)) {\n this.beams.push(beam)\n }\n\n return this.beams\n }\n\n addItem (color) {\n this.item = new CollisionItem({ center: this.point, color })\n this.layer.addChild(this.item.group)\n }\n\n equals (other) {\n return fuzzyEquals(this.point, other?.point)\n }\n\n getColor () {\n return this.beams.length\n ? chroma.average(this.beams.map((beam) => beam.getColor())).hex()\n : undefined\n }\n\n removeItem () {\n if (this.item) {\n this.item.remove()\n this.item = undefined\n }\n }\n\n update () {\n // Remove any beam which no longer matches its collision point\n this.beams = this.beams.filter((beam) => this.equals(beam.getCollision()))\n\n const color = this.getColor()\n\n // Remove no longer valid collision items\n if (this.item && (!this.beams.length || this.item.color !== color)) {\n this.removeItem()\n }\n\n // Add missing collision items\n if (this.beams.length && !this.item) {\n this.addItem(color)\n }\n }\n\n static id (point) {\n const rounded = point.round()\n return [rounded.x, rounded.y].join(',')\n }\n }\n\n static ClassNames = Object.freeze({\n Active: 'active',\n Disabled: 'disabled',\n Icon: 'material-symbols-outlined'\n })\n\n static Events = Object.freeze({\n Error: 'puzzle-error',\n Loaded: 'puzzle-loaded',\n Mask: 'puzzle-mask',\n Solved: 'puzzle-solved',\n Updated: 'puzzle-updated'\n })\n\n static Mask = class {\n constructor (configuration = {}) {\n configuration.style ??= {}\n this.configuration = configuration\n\n this.id = configuration.id\n this.message = configuration.message\n this.tileFilter = configuration.tileFilter ?? noop(true)\n this.onMask = configuration.onMask ?? noop\n this.onTap = configuration.onTap ?? noop\n this.onUnmask = configuration.onUnmask ?? noop\n this.onUpdate = configuration.onUpdate ?? noop\n }\n\n equals (other) {\n return this.id === other.id\n }\n }\n\n // Filters for all beams that are connected to the terminus, or have been merged into a beam that is connected\n static #connectedBeams = (item) => item.type === Item.Types.beam && item.isConnected()\n\n static #solvedMask = new Puzzle.Mask({\n style: (tile) => {\n const beams = tile.items.filter(Puzzle.#connectedBeams)\n const colors = beams.flatMap((beam) => beam.getSteps(tile).flatMap((step) => step.color))\n return { fillColor: chroma.average(colors).hex() }\n },\n tileFilter: (tile) => tile.items.some(Puzzle.#connectedBeams)\n })\n}\n","import paper, { Layer } from 'paper'\nimport { CubeCoordinates } from './coordinates/cube'\nimport { OffsetCoordinates } from './coordinates/offset'\nimport { Tile } from './items/tile'\nimport { getConvertedDirection } from './util'\nimport { Stateful } from './stateful'\nimport { modifierFactory } from './modifierFactory'\n\nexport class Layout extends Stateful {\n #tilesByAxial = []\n #tilesByOffset = []\n\n items = []\n layers = {}\n modifiers = []\n tiles = []\n tileSize = 120\n\n constructor (state) {\n super(state)\n\n this.type = state.type || Layout.Types.oddR\n\n const center = paper.view.center\n const parameters = Tile.parameters(this.tileSize)\n const tiles = state.tiles\n\n // Using parameters.width because we want the \"stacked height\", or the height of the hexagon without the points.\n const height = tiles.length * parameters.width\n const startingOffsetY = center.y - (height / 2)\n\n // noinspection JSValidateTypes\n this.layers.tiles = new Layer()\n // noinspection JSValidateTypes\n this.layers.items = new Layer()\n\n this.modifiers = (state.modifiers || [])\n .map((state, index) => modifierFactory(null, state, index))\n .filter((modifier) => modifier !== undefined)\n\n // Find the widest row\n const widestRow = tiles.reduce((current, row, index) => {\n const length = row.length\n\n // Favor offset rows, since they will be wider\n if (length > current.length || (length === current.length && this.#isOffsetRow(index))) {\n return { index, length }\n }\n\n return current\n }, { index: 0, length: 0 })\n\n const width = (widestRow.length * parameters.width) + (this.#isOffsetRow(widestRow.index) ? parameters.inradius : 0)\n const startingOffsetX = center.x - (width / 2)\n\n for (let r = 0; r < tiles.length; r++) {\n const row = tiles[r]\n const rowByAxial = new Array(row.length).fill(null)\n const rowByOffset = new Array(row.length).fill(null)\n const rowOffset = Math.floor(r / 2)\n\n for (let c = 0; c < row.length; c++) {\n const axial = new CubeCoordinates(c - rowOffset, r)\n const offset = new OffsetCoordinates(r, c)\n\n const layout = {\n row: r,\n column: c,\n // Shift row to the right if it is an offset row\n startingOffsetX: startingOffsetX + (this.#isOffsetRow(r) ? parameters.inradius : 0),\n startingOffsetY\n }\n\n const state = row[c]\n if (!state) {\n continue\n }\n\n const tile = new Tile({ axial, offset }, layout, parameters, state)\n\n this.layers.tiles.addChild(tile.group)\n\n if (tile.items.length) {\n this.items.push(...tile.items)\n this.layers.items.addChildren(tile.items.map((item) => item.group))\n }\n\n this.tiles.push(tile)\n\n rowByAxial[axial.q] = tile\n rowByOffset[offset.c] = tile\n }\n\n this.#tilesByAxial.push(rowByAxial)\n this.#tilesByOffset.push(rowByOffset)\n }\n }\n\n getTileByAxial (axial) {\n return (this.#tilesByAxial[axial.r] || [])[axial.q]\n }\n\n getTileByOffset (offset) {\n return this.#tilesByOffset[offset.r][offset.c]\n }\n\n getState () {\n const state = { type: this.type }\n\n // Tiles are defined by offset in the puzzle state\n state.tiles = this.#tilesByOffset.map((row) => row.map((tile) => tile?.getState() || null))\n const modifiers = this.modifiers.map((modifier) => modifier.getState())\n if (modifiers.length) {\n state.modifiers = modifiers\n }\n\n return state\n }\n\n getNeighboringTile (axial, direction) {\n return this.getTileByAxial(CubeCoordinates.neighbor(axial, getConvertedDirection(direction)))\n }\n\n removeModifier (modifier) {\n const index = this.modifiers.indexOf(modifier)\n if (index >= 0) {\n this.modifiers.splice(index, 1)\n }\n }\n\n teardown () {\n this.modifiers.forEach((modifier) => modifier.detach())\n Object.values(this.layers).forEach((layer) => layer.removeChildren())\n }\n\n #isOffsetRow (index) {\n return index % 2 === 0 ? this.type === Layout.Types.evenR : this.type === Layout.Types.oddR\n }\n\n static Types = Object.freeze({\n evenR: 'even-r',\n oddR: 'odd-r'\n })\n}\n","import { OffsetCoordinates } from './offset'\n\n/**\n * @see https://www.redblobgames.com/grids/hexagons/#coordinates\n */\nexport class CubeCoordinates {\n constructor (q, r, s) {\n if (!s) s = -q - r\n this.coordinates = [q, r, s]\n this.q = q\n this.r = r\n this.s = s\n }\n\n add (other) {\n return CubeCoordinates.add(this, other)\n }\n\n equals (other) {\n return this.q === other.q && this.r === other.r && this.s === other.s\n }\n\n isNeighbor (other) {\n return CubeCoordinates.isNeighbor(this, other)\n }\n\n neighbor (direction) {\n return CubeCoordinates.neighbor(this, direction)\n }\n\n toString () {\n return this.coordinates.join(',')\n }\n\n static add (a, b) {\n return new CubeCoordinates(a.q + b.q, a.r + b.r)\n }\n\n static direction (direction) {\n if (direction === 0) direction = 6\n // PaperJS uses a clockwise system, but the axial system is counter-clockwise.\n // So we flip the direction here by subtracting it from six\n return CubeCoordinates.directions[6 - direction]\n }\n\n static directions = [\n new CubeCoordinates(1, 0),\n new CubeCoordinates(1, -1),\n new CubeCoordinates(0, -1),\n new CubeCoordinates(-1, 0),\n new CubeCoordinates(-1, 1),\n new CubeCoordinates(0, 1)\n ]\n\n static isNeighbor (a, b) {\n return CubeCoordinates.directions\n .map((direction) => CubeCoordinates.add(a, direction))\n .some((neighbor) => neighbor.equals(b))\n }\n\n static neighbor (start, direction) {\n return CubeCoordinates.add(start, CubeCoordinates.direction(direction))\n }\n\n static toOffsetCoordinates (axial) {\n const c = axial.q + (axial.r - (axial.r & 1)) / 2\n return new OffsetCoordinates(c, axial.r)\n }\n}\n","import { CubeCoordinates } from './cube'\n\nexport class OffsetCoordinates {\n constructor (r, c) {\n this.coordinates = [r, c]\n this.r = r\n this.c = c\n }\n\n toString () {\n return this.coordinates.join(',')\n }\n\n static toAxialCoordinates (offset) {\n const q = offset.c - (offset.r - (offset.r & 1)) / 2\n return new CubeCoordinates(q, offset.r)\n }\n}\n","import { Color, Path, Point } from 'paper'\nimport { Item } from '../item'\nimport { itemFactory } from '../itemFactory'\nimport { emitEvent, getPointBetween } from '../util'\nimport { modifierFactory } from '../modifierFactory'\n\nexport class Tile extends Item {\n selected = false\n\n #ui\n\n constructor (coordinates, layout, parameters, state) {\n super(null, state, { locked: false })\n\n this.#ui = Tile.ui(layout, parameters, state, { coordinates, type: this.type })\n\n this.center = this.#ui.center\n this.coordinates = coordinates\n this.hexagon = this.#ui.hexagon\n this.parameters = parameters\n this.styles = this.#ui.styles\n\n this.group.addChildren([this.#ui.hexagon])\n\n // These need to be last, since they reference this\n this.items = (state.items || [])\n .map((state, index) => itemFactory(this, state, index))\n .filter((item) => item !== undefined)\n\n this.modifiers = (state.modifiers || [])\n .map((state, index) => modifierFactory(this, state, index))\n .filter((modifier) => modifier !== undefined)\n\n this.modifiers.forEach((modifier) => this.updateIcon(modifier))\n\n this.update()\n }\n\n addItem (item) {\n this.items.push(item)\n this.update()\n }\n\n addModifier (modifier) {\n this.modifiers.push(modifier)\n this.updateIcon(modifier)\n }\n\n afterModify () {\n this.setStyle(this.selected ? 'selected' : 'default')\n this.modifiers.forEach((modifier) => modifier.update({ disabled: false }))\n }\n\n beforeModify () {\n this.group.bringToFront()\n this.setStyle('edit')\n this.modifiers.forEach((modifier) => modifier.update({ disabled: true }))\n }\n\n getState () {\n const state = { id: this.id, type: this.type }\n\n // Filter out beams, which are not stored in state\n const items = this.items.filter((item) => item.type !== Item.Types.beam).map((item) => item.getState())\n if (items.length) {\n state.items = items\n }\n\n const modifiers = this.modifiers.map((modifier) => modifier.getState())\n if (modifiers.length) {\n state.modifiers = modifiers\n }\n\n // noinspection JSValidateTypes\n return state\n }\n\n onTap (event) {\n this.items.forEach((item) => item.onTap(event))\n }\n\n onDeselected (selectedTile) {\n this.selected = false\n this.#ui.hexagon.style = this.styles.default\n this.items.forEach((item) => item.onDeselected())\n\n emitEvent(Tile.Events.Deselected, { selectedTile, deselectedTile: this })\n }\n\n onSelected (deselectedTile) {\n console.debug(this.toString(), 'selected')\n this.selected = true\n this.group.bringToFront()\n this.#ui.hexagon.style = this.styles.selected\n this.items.forEach((item) => item.onSelected())\n }\n\n removeItem (item) {\n const index = this.items.indexOf(item)\n if (index >= 0) {\n this.items.splice(index, 1)\n this.update()\n }\n }\n\n removeModifier (modifier) {\n const index = this.modifiers.indexOf(modifier)\n if (index >= 0) {\n this.modifiers.splice(index, 1)\n this.updateIcon(modifier)\n }\n }\n\n setStyle (style) {\n this.hexagon.set(this.styles[style])\n }\n\n teardown () {\n this.modifiers.forEach((modifier) => modifier.detach())\n }\n\n toString () {\n return `[${this.type}:${this.coordinates.offset.toString()}]`\n }\n\n updateIcon (modifier) {\n const index = this.modifiers.indexOf(modifier)\n if (index >= 0) {\n const position = getPointBetween(\n this.#ui.hexagon.segments[index].point,\n this.center,\n (length) => length / 3\n )\n const style = { fillColor: modifier.immutable ? '#ccc' : '#333' }\n const icon = modifier.getSymbol().place(position, { style })\n icon.data = { id: modifier.id, name: modifier.name, type: modifier.type }\n const childIndex = this.group.children.findIndex((icon) => icon.data.id === modifier.id)\n if (childIndex >= 0) {\n // Update existing\n this.group.children[childIndex].replaceWith(icon)\n } else {\n this.group.addChild(icon)\n }\n }\n }\n\n static parameters (height) {\n const circumradius = height / 2\n const width = Math.sqrt(3) * circumradius\n const inradius = width / 2\n const offsetY = height * (3 / 4)\n\n return {\n circumradius,\n height,\n inradius,\n offsetY,\n width\n }\n }\n\n static ui (layout, parameters, configuration, data) {\n const center = new Point(\n layout.startingOffsetX + parameters.inradius + layout.column * parameters.width,\n layout.startingOffsetY + parameters.circumradius + layout.row * parameters.offsetY\n )\n\n const dashWidth = parameters.circumradius / 10\n\n const styles = Object.assign(\n {},\n Tile.Styles,\n {\n edit: Object.assign({ dashArray: [dashWidth, dashWidth] }, Tile.Styles.edit)\n },\n configuration.style || {}\n )\n\n const hexagon = new Path.RegularPolygon({\n center,\n closed: true,\n data,\n radius: parameters.circumradius,\n sides: 6,\n style: styles.default\n })\n\n return { center, hexagon, styles }\n }\n\n static Events = Object.freeze({\n Deselected: 'tile-deselected',\n Selected: 'tile-selected'\n })\n\n static MaxModifiers = 6\n\n static Styles = Object.freeze({\n // Need to use new Color here explicitly due to:\n // https://github.com/paperjs/paper.js/issues/2049\n default: {\n dashArray: [],\n fillColor: new Color('white'),\n strokeColor: new Color('#666'),\n strokeWidth: 1\n },\n edit: {\n strokeColor: new Color('black'),\n strokeWidth: 2\n },\n selected: {\n dashArray: [],\n strokeColor: new Color('black'),\n strokeWidth: 2\n }\n })\n}\n","import { capitalize, uniqueId } from './util'\nimport { CompoundPath, Group } from 'paper'\nimport { Stateful } from './stateful'\n\nexport class Item extends Stateful {\n center\n data\n group\n id\n immutable\n // Whether the item can be clicked on\n locked\n parent\n sortOrder = 100\n type\n\n constructor (parent, state, configuration) {\n // Retain ID from state if it exists, otherwise generate a new one\n state.id ??= uniqueId()\n\n super(state)\n\n this.id = state.id\n this.immutable ??= state?.immutable ?? false\n this.type = state?.type ?? configuration?.type\n if (this.type === undefined) {\n console.debug(`[Item:${this.id}]`, state, configuration)\n throw new Error('Item must have type defined')\n }\n\n this.data = Object.assign({ id: this.id, type: this.type }, configuration?.data || {})\n this.locked = configuration?.locked !== false\n\n if (parent) {\n this.center = parent.center\n }\n\n this.parent = parent\n this.group = new Group({ data: this.data, locked: this.locked })\n }\n\n equals (otherItem) {\n return otherItem instanceof Item && this.id === otherItem.id\n }\n\n getColorElements () {\n return []\n }\n\n getCompoundPath () {\n return new CompoundPath({\n // Must explicitly add insert: false for clone\n // https://github.com/paperjs/paper.js/issues/1721\n children: this.group.clone({ insert: false }).children\n .filter((child) => child.data.collidable !== false)\n })\n }\n\n getIndex () {\n return this.group.index\n }\n\n getLayer () {\n return this.group.parent\n }\n\n onTap () {}\n\n onCollision ({ collisionStep }) {\n return collisionStep\n }\n\n onDeselected () { }\n\n onInitialization () {}\n\n onSelected () {}\n\n remove () {\n this.group.remove()\n }\n\n toString () {\n return `[${this.type}:${this.id}]`\n }\n\n update () {}\n\n static immutable (item) {\n return item.immutable\n }\n\n static Types = Object.freeze(Object.fromEntries([\n 'beam',\n 'collision',\n 'filter',\n 'mask',\n 'portal',\n 'reflector',\n 'terminus',\n 'tile',\n 'wall'\n ].map((type) => [type, capitalize(type)])))\n}\n","import { emitEvent } from './util'\n\nexport class Stateful {\n #state = {}\n\n constructor (state) {\n this.setState(state)\n }\n\n getState () {\n return structuredClone(this.#state)\n }\n\n setState (state) {\n this.#state = structuredClone(state)\n }\n\n updateState (updater, dispatchEvent = false) {\n updater(this.#state)\n\n if (dispatchEvent) {\n // This will cause puzzle cache to update\n emitEvent(Stateful.Events.Update, { object: this })\n }\n\n return this.getState()\n }\n\n static Events = Object.freeze({\n Update: 'state-update'\n })\n}\n","import { Filter } from './items/filter'\nimport { Portal } from './items/portal'\nimport { Terminus } from './items/terminus'\nimport { Reflector } from './items/reflector'\nimport { Wall } from './items/wall'\nimport { Item } from './item'\n\nexport function itemFactory (parent, state, index) {\n let item\n\n switch (state.type) {\n case Item.Types.filter:\n item = new Filter(...arguments)\n break\n case Item.Types.portal:\n item = new Portal(...arguments)\n break\n case Item.Types.terminus:\n item = new Terminus(...arguments)\n break\n case Item.Types.reflector:\n item = new Reflector(...arguments)\n break\n case Item.Types.wall:\n item = new Wall(...arguments)\n break\n default:\n console.debug('itemFactory', state)\n throw new Error(`Cannot create item with unknown type: ${state.type}`)\n }\n\n if (item) {\n item.onInitialization()\n }\n\n return item\n}\n","import chroma from 'chroma-js'\nimport { Item } from '../item'\nimport { Color, Path } from 'paper'\nimport { movable } from '../modifiers/move'\nimport { getColorElement } from '../util'\nimport { StepState } from '../step'\n\nexport class Filter extends movable(Item) {\n constructor (tile, { color }) {\n super(...arguments)\n\n this.color = chroma.average(Array.isArray(color) ? color : [color]).hex()\n\n const fillColor = new Color(color)\n fillColor.alpha = 0.25\n\n // TODO: update to something else? prism?\n const item = new Path.RegularPolygon({\n center: tile.center,\n closed: true,\n radius: tile.parameters.circumradius / 3,\n sides: 3,\n style: {\n fillColor,\n strokeColor: color,\n strokeWidth: 2\n }\n })\n\n this.group.addChild(item)\n }\n\n getColorElements () {\n return [getColorElement(this.color)]\n }\n\n onCollision ({ currentStep, nextStep }) {\n // The beam will collide with the filter twice, on entry and exit, so ignore the first one, but track in state\n return nextStep.copy(\n currentStep.state.has(StepState.Filter)\n ? { colors: nextStep.colors.concat([this.color]) }\n : { state: new StepState({ insertAbove: this }, new StepState.Filter()) }\n )\n }\n}\n","import { Modifier } from '../modifier'\nimport { Puzzle } from '../puzzle'\nimport { emitEvent } from '../util'\nimport { Item } from '../item'\nimport { Icons } from '../icons'\n\nexport class Move extends Modifier {\n #mask\n\n name = Icons.Move.name\n title = 'Move'\n\n onTap (event) {\n super.onTap(event)\n\n const items = this.tile.items.filter(Move.movable)\n if (this.#mask || !items.length) {\n return\n }\n\n const mask = new Puzzle.Mask({\n id: this.toString(),\n onTap: this.#maskOnTap.bind(this),\n onMask: () => this.tile.beforeModify(),\n onUnmask: () => this.tile.afterModify(),\n tileFilter: this.tileFilter.bind(this)\n })\n\n this.#mask = mask\n\n emitEvent(Puzzle.Events.Mask, { mask })\n }\n\n moveFilter (tile) {\n // Filter out tiles that contain no movable items\n return super.moveFilter(tile) || !tile.items.some(Move.movable)\n }\n\n moveItems (tile) {\n const items = this.tile.items.filter(Move.movable)\n items.forEach((item) => item.move(tile))\n return {\n moved: [Move.data(this.tile, tile, items)],\n tiles: [this.tile, tile]\n }\n }\n\n tileFilter (tile) {\n // Never mask current tile\n return !tile.equals(this.tile) && (\n // Mask immutable tiles\n tile.modifiers.some(Modifier.immutable) ||\n // Mask tiles that contain any items we don't ignore\n tile.items.some((item) => !Move.ignoreItemTypes.includes(item.type))\n )\n }\n\n #maskOnTap (puzzle, tile) {\n puzzle.unmask()\n\n if (tile) {\n const data = this.moveItems(tile)\n\n puzzle.updateSelectedTile(tile)\n\n this.dispatchEvent(Modifier.Events.Invoked, data)\n }\n\n this.#mask = undefined\n }\n\n static data (fromTile, toTile, items) {\n return { fromTile, toTile, items }\n }\n\n static movable (item) {\n return item.movable\n }\n\n static ignoreItemTypes = [Item.Types.beam, Item.Types.wall]\n}\n\n/**\n * Move an item from one tile to another.\n * @param SuperClass\n * @returns {{new(*, *): MovableItem, movable: boolean, prototype: MovableItem}}\n */\nexport const movable = (SuperClass) => class MovableItem extends SuperClass {\n movable\n\n constructor (parent, state) {\n super(...arguments)\n this.movable = !this.immutable && state.movable !== false\n }\n\n move (tile) {\n this.parent.removeItem(this)\n\n // Update the position of the item group based on the vector of the tile we are moving to\n const vector = this.parent.center.subtract(tile.center)\n this.group.position = this.group.position.subtract(vector)\n\n // Update tile reference\n this.parent = tile\n this.parent.addItem(this)\n this.center = this.parent.center\n\n this.onMove()\n }\n\n onMove () {}\n}\n","import { capitalize, emitEvent } from './util'\nimport { Stateful } from './stateful'\nimport { EventListeners } from './eventListeners'\nimport { Interact } from './interact'\nimport { Item } from './item'\nimport { Icons } from './icons'\nimport { Tile } from './items/tile'\n\nconst modifiers = document.getElementById('modifiers')\n\n// Use incrementing IDs to preserve sort order\nlet uniqueId = 0\n\nexport class Modifier extends Stateful {\n #container\n #down = false\n #eventListener = new EventListeners({ context: this })\n #timeoutId\n\n configuration\n element\n disabled = false\n immutable = false\n name\n parent\n tile\n title\n type\n\n constructor (tile, state) {\n // Retain ID from state if it exists, otherwise generate a new one\n state.id ??= uniqueId++\n super(state)\n\n this.id = state.id\n this.parent = tile\n this.type = state.type\n }\n\n /**\n * Attach the modifier to the DOM and add listeners.\n */\n attach (tile) {\n this.tile = tile\n\n // Disable by default if: modifier is immutable\n this.disabled = this.immutable ||\n // The tile contains an immutable modifier\n this.tile?.modifiers.some((modifier) => modifier.type === Modifier.Types.immutable) ||\n // The tile has no interactable items\n !this.tile?.items.some((item) => item.type !== Item.Types.beam) ||\n (\n // The tile being attached to is not this modifier's parent\n !this.tile?.equals(this.parent) && (\n // The tile contains another modifier of this type already\n this.tile.modifiers.some((modifier) => modifier.type === this.type) ||\n // The tile already contains the max number of modifiers\n this.tile?.modifiers.length === Tile.MaxModifiers\n )\n )\n\n const li = this.#container = document.createElement('li')\n\n li.classList.add(['modifier', this.type.toLowerCase()].join('-'))\n li.dataset.id = this.id.toString()\n\n const span = this.element = document.createElement('span')\n\n span.classList.add('material-symbols-outlined', 'fill')\n\n li.append(span)\n\n this.update()\n\n this.#eventListener.add([\n { type: 'pointerdown', handler: this.onPointerDown },\n { type: 'pointerleave', handler: this.onPointerUp },\n { type: 'pointerup', handler: this.onPointerUp }\n ], { element: li })\n\n modifiers.append(li)\n }\n\n /**\n * Remove listeners and the modifier from the DOM.\n */\n detach () {\n if (!this.#container) {\n return\n }\n\n this.#eventListener.remove()\n this.#container.remove()\n\n this.element = undefined\n this.#container = undefined\n }\n\n dispatchEvent (event, detail) {\n emitEvent(event, Object.assign({}, detail || {}, { modifier: this, tile: this.tile }))\n }\n\n equals (other) {\n return other instanceof Modifier && this.id === other.id\n }\n\n getSymbol () {\n return Icons.ByName[this.name]\n }\n\n move (tile) {\n this.parent?.removeModifier(this)\n this.parent = tile\n tile?.addModifier(this)\n }\n\n moveFilter (tile) {\n // Mask immutable tiles\n return tile.modifiers.some(Modifier.immutable) ||\n // Mask tiles that only contain immutable items\n tile.items.every(Item.immutable)\n }\n\n onPointerDown (event) {\n if (event.button !== 0) {\n // Support toggle on non-primary pointer button\n this.onToggle(event)\n } else {\n this.#down = true\n }\n }\n\n onPointerUp (event) {\n clearTimeout(this.#timeoutId)\n\n if (this.#down && !this.disabled) {\n switch (event.type) {\n case 'pointerleave': {\n // Support swiping up on pointer device\n this.onToggle(event)\n break\n }\n case 'pointerup': {\n this.onTap(event)\n break\n }\n }\n\n // Keep the tile icon in sync\n this.parent?.updateIcon(this)\n }\n\n this.#down = false\n }\n\n onTap () {}\n\n onToggle () {\n Interact.vibrate()\n }\n\n toString () {\n return [this.name, this.id].join(':')\n }\n\n update (options) {\n options = Object.assign(\n { disabled: this.disabled, name: this.name, title: this.title },\n options || {}\n )\n\n if (!this.immutable) {\n this.disabled = options.disabled\n }\n\n this.name = options.name\n this.title = options.title\n\n if (this.#container) {\n this.#container.classList.toggle('disabled', this.disabled)\n this.element.textContent = this.name\n this.element.title = this.title\n }\n }\n\n static immutable (modifier) {\n return modifier.type === Modifier.Types.immutable\n }\n\n static Events = Object.freeze({\n Invoked: 'modifier-invoked',\n Moved: 'modifier-moved'\n })\n\n static Types = Object.freeze(Object.fromEntries([\n 'immutable',\n 'lock',\n 'move',\n 'rotate',\n 'swap',\n 'toggle'\n ].map((type) => [type, capitalize(type)])))\n}\n","export class EventListeners {\n #events = []\n #options = { element: document }\n\n constructor (options = {}) {\n this.#options = Object.assign(this.#options, options)\n }\n\n add (events, options = {}) {\n this.#events = this.#events.concat(events.map((event) => {\n event = Object.assign({}, this.#options, options, event)\n if (!event.type) {\n throw new Error('Event type is required')\n }\n if (event.context) {\n event.handler = event.handler.bind(event.context)\n }\n event.element.addEventListener(event.type, event.handler, event.options)\n return event\n }))\n }\n\n remove () {\n this.#events.forEach((event) => event.element.removeEventListener(event.type, event.handler))\n this.#events = []\n }\n}\n","import paper, { Point } from 'paper'\nimport { Cache } from './cache'\nimport { EventListeners } from './eventListeners'\n\nconst navigator = window.navigator\n\nexport class Interact {\n #bounds\n #cache = new Cache(Object.values(Interact.CacheKeys))\n #element\n #eventListener = new EventListeners({ context: this })\n #offset\n\n constructor (element) {\n this.#bounds = element.getBoundingClientRect()\n this.#element = element\n this.#offset = new Point(this.#bounds.left, this.#bounds.top)\n this.#eventListener.add([\n { type: 'pointercancel', handler: this.onPointerUp },\n { type: 'pointerdown', handler: this.onPointerDown },\n { type: 'pointerleave', handler: this.onPointerUp },\n { type: 'pointermove', handler: this.onPointerMove },\n { type: 'pointerout', handler: this.onPointerUp },\n { type: 'pointerup', handler: this.onPointerUp },\n { type: 'wheel', handler: this.onMouseWheel, options: { passive: false } }\n ], { element })\n }\n\n onMouseWheel (event) {\n event.preventDefault()\n this.#zoom(new Point(event.offsetX, event.offsetY), event.deltaY, 1.05)\n }\n\n onPan (event) {\n const point = paper.view.viewToProject(Interact.point(event))\n const pan = this.#getGesture(Interact.GestureKeys.Pan)\n\n if (!pan) {\n this.#setGesture(Interact.GestureKeys.Pan, { from: point })\n return\n }\n\n const center = pan.from.subtract(point).add(paper.view.center)\n\n // Allow a little wiggle room to prevent panning on tap\n if (paper.view.center.subtract(center).length > 1) {\n if (!document.body.classList.contains('grab')) {\n document.body.classList.add('grab')\n }\n\n // Center on the cursor\n paper.view.center = center\n }\n }\n\n onPinch (events) {\n const pointer0 = events[0]\n const pointer1 = events[1]\n\n const point0 = Interact.point(pointer0)\n const point1 = Interact.point(pointer1)\n const distance = point0.getDistance(point1)\n\n const pinch = this.#getGesture(Interact.GestureKeys.Pinch)\n if (!pinch) {\n this.#setGesture(Interact.GestureKeys.Pinch, { distance })\n return\n }\n\n const center = point0.add(point1).divide(2).subtract(this.#offset)\n const scale = distance / pinch.distance\n const delta = (pinch.distance - distance) * scale\n\n this.#zoom(center, delta, 1.01)\n\n pinch.distance = distance\n }\n\n onPointerDown (event) {\n this.#cache.get(Interact.CacheKeys.Down).set(event.pointerId, event)\n }\n\n onPointerMove (event) {\n const down = this.#cache.get(Interact.CacheKeys.Down).get(event.pointerId)\n if (!down) {\n // Ignore events until there is a pointer down event\n return\n }\n\n // For some reason pointermove fires on mobile even if there was no movement\n const diff = Interact.point(event).subtract(Interact.point(down)).length\n if (diff > 1) {\n this.#cache.get(Interact.CacheKeys.Move).set(event.pointerId, event)\n\n const events = this.#cache.get(Interact.CacheKeys.Move).values()\n if (events.length === 2) {\n this.onPinch(events)\n } else {\n this.onPan(event)\n }\n }\n }\n\n onPointerUp (event) {\n const down = this.#cache.get(Interact.CacheKeys.Down).get(event.pointerId)\n if (!down) {\n return\n }\n\n if (\n this.#cache.length(Interact.CacheKeys.Down) === 1 &&\n !this.#cache.get(Interact.CacheKeys.Move).get(event.pointerId)\n ) {\n this.onTap(down)\n }\n\n document.body.classList.remove('grab')\n\n this.#cache.get(Interact.CacheKeys.Down).unset(event.pointerId)\n this.#cache.get(Interact.CacheKeys.Move).unset(event.pointerId)\n this.#cache.get(Interact.CacheKeys.Gesture).unset(Interact.GestureKeys.Pan)\n\n if (this.#cache.length(Interact.CacheKeys.Move) < 2) {\n this.#cache.get(Interact.CacheKeys.Gesture).unset(Interact.GestureKeys.Pinch)\n }\n }\n\n onTap (event) {\n const point = paper.view.viewToProject(Interact.point(event).subtract(this.#offset))\n this.#element.dispatchEvent(new CustomEvent(Interact.GestureKeys.Tap, { detail: { event, point } }))\n }\n\n #getGesture (key) {\n return this.#cache.get(Interact.CacheKeys.Gesture).get(key)\n }\n\n #setGesture (key, value) {\n this.#cache.get(Interact.CacheKeys.Gesture).set(key, value)\n }\n\n #zoom (point, delta, factor) {\n const zoom = Math.max(\n Math.min(\n delta < 0 ? paper.view.zoom * factor : paper.view.zoom / factor,\n Interact.maxZoom\n ),\n Interact.minZoom\n )\n\n // Convert the touch point from the view coordinate space to the project coordinate space\n const touchPoint = paper.view.viewToProject(point)\n const touchOffset = touchPoint.subtract(paper.view.center)\n\n // Adjust center towards cursor location\n const zoomOffset = touchPoint\n .subtract(touchOffset.multiply(paper.view.zoom / zoom))\n .subtract(paper.view.center)\n\n paper.view.zoom = zoom\n paper.view.center = paper.view.center.add(zoomOffset)\n }\n\n static point (event) {\n return new Point(event.clientX, event.clientY)\n }\n\n static vibrate (pattern = 25) {\n if (Interact.canVibrate) {\n navigator.vibrate(pattern)\n }\n }\n\n // WebKit does not support vibration\n static canVibrate = typeof navigator.vibrate === 'function'\n\n static CacheKeys = Object.freeze({\n Down: 'down',\n Move: 'move',\n Gesture: 'gesture'\n })\n\n static GestureKeys = Object.freeze({\n Pan: 'pan',\n Pinch: 'pinch',\n Tap: 'tap'\n })\n\n static maxZoom = 2\n static minZoom = 0.5\n}\n","export class Cache {\n #cache = {}\n #hasKeys\n #keys\n\n constructor (keys = []) {\n this.#keys = keys\n this.#hasKeys = keys.length !== 0\n\n keys.forEach((key) => { this.#cache[key] = new Cache() })\n }\n\n set (key, item) {\n if (this.#hasKeys && !this.#keys.includes(key)) {\n throw new Error(`Invalid key: ${key}`)\n }\n\n this.#cache[key] = item\n }\n\n get (key) {\n return key === undefined ? this.#cache : this.#cache[key]\n }\n\n keys (key) {\n return Object.keys(this.#get(key))\n }\n\n length (key) {\n return this.keys(key).length\n }\n\n unset (key) {\n delete this.#cache[key]\n }\n\n values (key) {\n return Object.values(this.#get(key))\n }\n\n #get (key) {\n const value = this.get(key)\n return value instanceof Cache ? value.get() : value\n }\n}\n","import { Symbol } from './symbol'\n\nexport class Icons {\n static Immutable = new Symbol('icon-immutable', 'block')\n static Lock = new Symbol('icon-lock', 'lock')\n static Move = new Symbol('icon-move', 'drag_pan')\n static RotateLeft = new Symbol('icon-rotate-left', 'rotate_left')\n static RotateRight = new Symbol('icon-rotate-right', 'rotate_right')\n static Swap = new Symbol('icon-swap', 'swap_horiz')\n static ToggleOff = new Symbol('icon-toggle-off', 'toggle_off')\n static ToggleOn = new Symbol('icon-toggle-on', 'toggle_on')\n\n static All = Object.freeze([\n Icons.Immutable,\n Icons.Lock,\n Icons.Move,\n Icons.RotateLeft,\n Icons.RotateRight,\n Icons.Swap,\n Icons.ToggleOff,\n Icons.ToggleOn\n ])\n\n static ByName = Object.freeze(Object.fromEntries(Icons.All.map((icon) => [icon.name, icon])))\n}\n","import paper, { SymbolDefinition } from 'paper'\n\nexport class Symbol {\n definition\n id\n name\n\n constructor (id, name) {\n this.id = id\n this.name = name\n }\n\n place (position, settings) {\n if (!this.definition) {\n const element = document.getElementById(this.id)\n const item = paper.project.importSVG(element)\n // By default, symbols will be excluded from beam collisions\n item.data.collidable = false\n // By default, symbols cannot be clicked on\n item.locked = true\n this.definition = new SymbolDefinition(item)\n }\n\n if (settings) {\n this.definition.item.set(settings)\n }\n\n return this.definition.place(position)\n }\n}\n","import chroma from 'chroma-js'\nimport { deepEqual, noop } from './util'\n\nexport class Step {\n color\n colors\n connected\n direction\n done\n insertAbove\n onAdd\n onRemove\n point\n pathIndex\n segmentIndex\n state\n tile\n\n constructor (\n index,\n tile,\n colors,\n direction,\n point,\n pathIndex,\n segmentIndex,\n connected,\n insertAbove,\n done,\n state,\n onAdd,\n onRemove\n ) {\n if (state && !(state instanceof StepState)) {\n throw new Error('Step.state must be instance of StepState')\n }\n\n this.colors = colors ? (Array.isArray(colors) ? Array.from(colors) : [colors]) : []\n\n if (this.colors.length) {\n this.color = chroma.average(this.colors).hex()\n }\n\n this.connected = connected ?? true\n this.direction = direction\n this.done = done ?? false\n this.index = index\n this.insertAbove = insertAbove\n // The onAdd and onRemove methods should be idempotent!\n this.onAdd = onAdd ?? noop\n this.onRemove = onRemove ?? noop\n this.point = point\n this.pathIndex = pathIndex\n this.segmentIndex = segmentIndex\n this.state = state ?? new StepState()\n this.tile = tile\n }\n\n copy (settings) {\n return new Step(\n settings.index ?? this.index,\n settings.tile ?? this.tile,\n settings.colors ?? settings.color ?? this.colors,\n settings.direction ?? this.direction,\n settings.point ?? this.point,\n settings.pathIndex ?? this.pathIndex,\n settings.segmentIndex ?? this.segmentIndex,\n settings.connected ?? this.connected,\n settings.insertAbove ?? this.insertAbove,\n settings.done ?? this.done,\n settings.state ?? new StepState(this.state),\n settings.onAdd ?? this.onAdd,\n settings.onRemove ?? this.onRemove\n )\n }\n\n equals (step) {\n return deepEqual(this, step)\n }\n}\n\nexport class StepState {\n #cache = {}\n\n constructor () {\n const settings = Object.assign({}, ...arguments)\n Object.keys(settings).forEach((key) => { this[key] = settings[key] })\n }\n\n copy (...settings) {\n return new StepState(...([this].concat(settings)))\n }\n\n get (Class) {\n return this.#keys(Class).map((key) => this[key]).find((value) => value)\n }\n\n has (Class) {\n return this.#keys(Class).some((key) => this[key])\n }\n\n #keys (Class) {\n return (this.#cache[Class.name] ??= Object.keys(Reflect.construct(Class, [])))\n }\n\n static Collision = class StepCollision {\n collision\n\n // Item is optional, in the case of an out-of-bounds collision for example\n constructor (collision) {\n this.collision = collision\n }\n }\n\n static Filter = class StepFilter {\n filter = {}\n }\n\n static MergeInto = class StepMergeInto {\n mergeInto\n\n constructor (beam) {\n this.mergeInto = { beam }\n }\n }\n\n static MergeWith = class StepMergeWith {\n mergeWith\n\n constructor (mergeWith) {\n this.mergeWith = mergeWith\n }\n }\n\n static Portal = class StepPortal {\n portal\n\n constructor (entryPortal, exitPortal) {\n this.portal = { entryPortal, exitPortal }\n }\n }\n\n static Reflector = class StepReflector {\n reflector\n\n constructor (item) {\n this.reflector = { item }\n }\n }\n\n static TerminusConnection = class StepTerminusConnection {\n terminusConnection\n\n constructor (terminus, opening) {\n this.terminusConnection = { terminus, opening }\n }\n }\n}\n","import { movable } from '../modifiers/move'\nimport { Item } from '../item'\nimport { Path, Point } from 'paper'\nimport { rotatable } from '../modifiers/rotate'\nimport { StepState } from '../step'\nimport { Puzzle } from '../puzzle'\nimport { coalesce, getOppositeDirection } from '../util'\n\nexport class Portal extends movable(rotatable(Item)) {\n #directions = {}\n\n constructor (tile, state) {\n // Only allow rotation if direction is defined\n super(tile, state, { rotatable: state.direction !== undefined })\n\n this.direction = state.direction\n\n const height = tile.parameters.circumradius / 3\n const width = tile.parameters.circumradius / 5\n\n const style = {\n fillColor: 'black',\n strokeColor: 'white',\n strokeWidth: 2\n }\n\n const children = []\n\n // TODO: consider adding an item with a gradient that fades to black at the center of the ellipse\n // This will help distinguish visually that beams are entering/exiting a portal when there are multiple\n const ellipse = new Path.Ellipse({\n center: tile.center,\n radius: [width, height],\n style\n })\n\n children.push(ellipse)\n\n const ring = new Path.Ellipse({\n center: tile.center,\n radius: [width - style.strokeWidth * 2, height - style.strokeWidth * 2],\n style\n })\n\n children.push(ring)\n\n if (this.direction !== undefined) {\n const pointer = new Path({\n closed: true,\n opacity: 0.25,\n segments: [\n tile.center.add(new Point(0, height)),\n tile.center.subtract(new Point(0, height)),\n tile.center.subtract(new Point(width * 2.5, 0))\n ],\n style: {\n fillColor: 'black'\n }\n }).subtract(ellipse)\n\n children.unshift(pointer)\n }\n\n this.group.addChildren(children)\n\n if (this.direction !== undefined) {\n // Properly align items with hexagonal rotation\n this.rotateGroup(1)\n }\n }\n\n get (direction) {\n return this.#directions[direction]\n }\n\n onCollision ({ beam, currentStep, nextStep, puzzle }) {\n const portalState = currentStep.state.get(StepState.Portal)\n if (!portalState) {\n const entryDirection = getOppositeDirection(nextStep.direction)\n const existing = coalesce(this.get(entryDirection), nextStep)\n if (existing.index < nextStep.index) {\n // Checking stepIndex to exclude cases where we are doing a re-evaluation of history.\n console.debug(\n this.toString(),\n 'ignoring beam trying to enter through a direction which is already occupied:',\n entryDirection\n )\n return\n }\n\n // Handle entry collision\n return nextStep.copy({\n insertAbove: this,\n onAdd: (step) => this.update(entryDirection, step),\n onRemove: () => this.update(entryDirection),\n state: nextStep.state.copy(new StepState.Portal(this))\n })\n } else if (portalState.exitPortal === this) {\n // Handle exit collision\n return nextStep.copy({ insertAbove: this })\n }\n\n const exitPortals = this.#getExitPortals(puzzle, beam, nextStep)\n\n if (exitPortals.length === 0) {\n console.debug(this.toString(), 'no valid exit portals found')\n // This will cause the beam to stop\n return currentStep\n } else if (exitPortals.length === 1) {\n const exitPortal = exitPortals[0]\n console.debug(this.toString(), 'single exit portal matched:', exitPortal)\n return this.#getStep(beam, nextStep, exitPortal)\n } else {\n // Multiple matching destinations. User will need to pick one manually.\n console.debug(this.toString(), 'found multiple valid exit portals:', exitPortals)\n // Cache exit portals for use in mask\n const data = { exitPortals }\n const mask = new Puzzle.Mask(\n {\n id: this.id,\n onMask: () => currentStep.tile.beforeModify(),\n onTap: (puzzle, tile) => {\n const exitPortal = data.exitPortals.find((portal) => portal.parent === tile)\n if (exitPortal) {\n // Add a move, since the user made a decision\n puzzle.addMove()\n beam.addStep(this.#getStep(beam, nextStep, exitPortal))\n puzzle.unmask()\n }\n },\n onUnmask: () => currentStep.tile.afterModify(),\n onUpdate: () => {\n // State may have changed, fetch portals again\n const exitPortals = this.#getExitPortals(puzzle, beam, nextStep)\n if (exitPortals.length === 0) {\n console.debug(this.toString(), 'mask onUpdate: no valid exit portals found')\n // Cancel the mask\n // This will also cause the beam to stop\n return false\n } else if (exitPortals.length === 1) {\n const exitPortal = exitPortals[0]\n console.debug(this.toString(), 'mask onUpdate: single portal matched:', exitPortal)\n beam.addStep(this.#getStep(beam, nextStep, exitPortal))\n // Cancel the mask\n return false\n } else {\n console.debug(this.toString(), 'mask onUpdate: exit portals:', exitPortals)\n data.exitPortals = exitPortals\n }\n },\n tileFilter: (tile) => {\n // Mask any invalid tiles. Exclude the entry portal tile\n return !(tile.equals(this.parent) ||\n data.exitPortals.map((portal) => portal.parent).some((validTile) => validTile.equals(tile)))\n }\n }\n )\n\n puzzle.updateSelectedTile(null)\n puzzle.mask(mask)\n\n // This will cause the beam to stop\n return currentStep\n }\n }\n\n onMove () {\n super.onMove()\n\n // Invalidate directions cache\n this.#directions = {}\n }\n\n update (direction, data) {\n this.#directions[direction] = data\n }\n\n #getExitPortals (puzzle, beam, nextStep) {\n const exitPortals = puzzle.getItems().filter((item) =>\n // Is a portal\n item.type === Item.Types.portal &&\n // But not the entry portal\n !item.equals(this) &&\n // There is no other beam occupying the portal at the exit direction\n !item.get(Portal.getExitDirection(nextStep, this, item)) && (\n // Entry portals without defined direction can exit from any other portal.\n this.getDirection() === undefined ||\n // Exit portals without defined direction can be used by any entry portal.\n item.getDirection() === undefined ||\n // Exit portals with a defined direction can only be used by entry portals with the same defined direction.\n item.getDirection() === this.getDirection()\n )\n )\n\n if (exitPortals.length > 1) {\n // Check for existing exitPortalId in beam state for this step\n const exitPortalId = beam.getState().steps?.[nextStep.index]?.[this.id]\n if (exitPortalId !== undefined) {\n console.debug(this.toString(), `found exitPortalId ${exitPortalId} in beam step ${nextStep.index} state`)\n const existing = exitPortals.find((item) => item.id === exitPortalId)\n if (existing) {\n return [existing]\n }\n }\n }\n\n return exitPortals\n }\n\n #getStep (beam, nextStep, exitPortal) {\n const direction = Portal.getExitDirection(nextStep, this, exitPortal)\n return nextStep.copy({\n connected: false,\n direction,\n insertAbove: exitPortal,\n onAdd: (step) => {\n exitPortal.update(direction, step)\n // Store this decision in beam state\n // TODO: store this less cryptically (e.g. use \"portal\")\n beam.updateState((state) => ((state.steps ??= {})[step.index] = { [this.id]: exitPortal.id }))\n },\n onRemove: (step) => {\n // Remove any associated beam state\n beam.updateState((state) => { delete state.steps[step.index] })\n exitPortal.update(direction)\n },\n point: exitPortal.parent.center,\n state: nextStep.state.copy(new StepState.Portal(this, exitPortal)),\n tile: exitPortal.parent\n })\n }\n\n static getExitDirection (step, entryPortal, exitPortal) {\n // Direction precedence is as follows:\n // - direction defined by exit portal\n // - direction defined by entry portal\n // - direction beam was traveling when it reached the entry portal\n return exitPortal.getDirection() ?? entryPortal.getDirection() ?? step.direction\n }\n}\n","import { Modifier } from '../modifier'\nimport { addDirection, coalesce } from '../util'\nimport { Icons } from '../icons'\n\nexport class Rotate extends Modifier {\n clockwise\n title = 'Rotate'\n\n constructor (tile, state, configuration = {}) {\n super(...arguments)\n\n this.clockwise = coalesce(true, state.clockwise, configuration.clockwise)\n this.name = Rotate.Names[this.clockwise ? 'right' : 'left']\n }\n\n moveFilter (tile) {\n // Filter out tiles that contain no rotatable items\n return super.moveFilter(tile) || !tile.items.some((item) => item.rotatable)\n }\n\n onTap (event) {\n super.onTap(event)\n\n const items = this.tile.items.filter((item) => item.rotatable)\n items.forEach((item) => item.rotate(this.clockwise))\n\n this.dispatchEvent(Modifier.Events.Invoked, { items })\n }\n\n onToggle () {\n super.onToggle()\n\n this.clockwise = !this.clockwise\n this.updateState((state) => { state.clockwise = this.clockwise })\n this.update({ name: Rotate.Names[this.clockwise ? 'right' : 'left'] })\n }\n\n static Names = Object.freeze({ left: Icons.RotateLeft.name, right: Icons.RotateRight.name })\n}\n\n/**\n * A mixin for Item which provides rotate behaviors.\n */\nexport const rotatable = (SuperClass) => class RotatableItem extends SuperClass {\n direction\n\n rotatable\n rotation = 0\n rotationDegrees\n\n constructor (parent, state, configuration = {}) {\n super(...arguments)\n\n this.direction = coalesce(state.direction, configuration.direction)\n this.rotatable = !this.immutable && coalesce(true, state.rotatable, configuration.rotatable)\n this.rotationDegrees = coalesce(60, state.rotationDegrees, configuration.rotationDegrees)\n this.rotation = coalesce(0, state.rotation, configuration.rotation) % this.getMaxRotation()\n }\n\n // Get the direction of an item with rotation factored in\n getDirection (direction) {\n direction = direction ?? this.direction\n return direction === undefined\n ? direction\n : addDirection(direction, this.rotation)\n }\n\n getMaxRotation () {\n return (360 / this.rotationDegrees)\n }\n\n onInitialization () {\n super.onInitialization()\n\n this.rotateGroup(this.rotation)\n\n if (this.direction !== undefined) {\n // Direction will not affect initial rotation of item\n this.rotateGroup(this.direction)\n }\n }\n\n rotateGroup (rotation) {\n this.group.rotate(rotation * this.rotationDegrees, this.center)\n }\n\n rotate (clockwise) {\n if (!this.rotatable) {\n return\n }\n\n const rotation = clockwise === false ? -1 : 1\n\n this.rotation = (rotation + this.rotation) % this.getMaxRotation()\n\n this.updateState((state) => { state.rotation = this.rotation })\n this.rotateGroup(rotation)\n }\n}\n","import chroma from 'chroma-js'\nimport { Path } from 'paper'\nimport { toggleable } from '../modifiers/toggle'\nimport { Item } from '../item'\nimport { rotatable } from '../modifiers/rotate'\nimport { getColorElements, emitEvent, getOppositeDirection, addDirection, subtractDirection } from '../util'\nimport { Beam } from './beam'\nimport { movable } from '../modifiers/move'\nimport { StepState } from '../step'\n\nexport class Terminus extends movable(rotatable(toggleable(Item))) {\n sortOrder = 2\n\n #ui\n\n constructor (tile, state) {\n super(...arguments)\n\n const colors = state.openings.filter((opening) => opening?.color)\n .flatMap((opening) => Array.isArray(opening.color) ? opening.color : [opening.color])\n const color = chroma.average(\n colors.length ? colors : (Array.isArray(state.color) ? state.color : [state.color])\n ).hex()\n\n const openings = state.openings.map((opening, direction) =>\n opening\n ? new Terminus.#Opening(\n opening.color ?? color,\n direction,\n opening.connected,\n opening.on ?? state.on\n )\n : opening\n ).filter((opening) => opening)\n\n this.#ui = Terminus.ui(tile, color, openings)\n\n this.group.addChildren([...this.#ui.openings, this.#ui.terminus])\n\n this.color = color\n this.openings = openings\n this.radius = this.#ui.radius\n this.toggled = openings.some((opening) => opening.on)\n\n // Needs to be last since it references 'this'\n this.beams = openings.map((opening) => new Beam(this, state.openings[opening.direction], opening))\n\n this.update()\n }\n\n getColorElements () {\n return getColorElements(this.openings.map((opening) => opening.color))\n }\n\n getOpening (direction) {\n return this.openings.find((opening) => opening.direction === direction)\n }\n\n onMove () {\n this.beams.forEach((beam) => beam.remove())\n }\n\n onCollision ({ beam, collisionStep, currentStep, existingNextStep, nextStep }) {\n console.debug(this.toString(), 'collision', beam.toString())\n\n // Colliding with the starting terminus, ignore\n if (beam.parent === this && beam.startDirection() === nextStep.direction) {\n console.debug(beam.toString(), 'ignoring starting terminus collision')\n return\n }\n\n const directionFrom = getOppositeDirection(currentStep.direction)\n\n // Take rotation of terminus into account\n const opening = this.openings.find((opening) => this.getDirection(opening.direction) === directionFrom)\n if (\n opening && opening.color === nextStep.color && (\n !opening.on ||\n // When re-evaluating history of an already connected opening\n (opening.connected && existingNextStep?.state.get(StepState.TerminusConnection)?.terminus.equals(this))\n )\n ) {\n // Beam has connected to a valid opening\n console.debug(beam.toString(), 'terminus connection', this.toString(), opening)\n return nextStep.copy({\n done: true,\n onAdd: () => {\n nextStep.onAdd()\n this.onConnection(opening.direction)\n },\n onRemove: () => {\n nextStep.onRemove()\n this.onDisconnection(opening.direction)\n },\n state: nextStep.state.copy(new StepState.TerminusConnection(this, opening))\n })\n }\n\n // Otherwise, treat this as a collision\n return collisionStep\n }\n\n onConnection (direction) {\n const opening = this.getOpening(direction)\n\n if (opening.connected) {\n // Already connected\n return\n }\n\n opening.connect()\n this.update()\n\n emitEvent(Terminus.Events.Connection, { terminus: this, opening })\n }\n\n onDisconnection (direction) {\n const opening = this.getOpening(direction)\n\n if (!opening.connected) {\n // Already disconnected\n return\n }\n\n opening.disconnect()\n this.update()\n\n emitEvent(Terminus.Events.Disconnection, { terminus: this, opening })\n }\n\n onToggle () {\n this.updateState((state) => {\n this.openings.filter((opening) => !opening.connected).forEach((opening) => {\n opening.toggle()\n state.openings[opening.direction].on = opening.on\n })\n })\n this.update()\n }\n\n update () {\n this.beams.forEach((beam) => {\n const opening = beam.getOpening()\n const item = this.#ui.openings.find((item) => item.data.direction === opening.direction)\n item.opacity = opening.on ? 1 : Terminus.#openingOffOpacity\n })\n }\n\n static #openingOffOpacity = 0.3\n\n static ui (tile, color, configuration) {\n const radius = tile.parameters.circumradius / 2\n\n const terminus = new Path.RegularPolygon({\n center: tile.center,\n fillColor: color,\n opacity: 1,\n sides: 6,\n radius: radius / 2\n })\n\n const openings = configuration.map((opening) => {\n const direction = opening.direction\n\n // Each opening is essentially a triangle from the mid-point segments of the terminus with the tip of the triangle\n // pointing in the direction of the opening. This ensures there isn't a gap between the opening triangle and the\n // terminus hexagon.\n const p1 = terminus.segments[subtractDirection(direction, 1)].point\n const p2 = terminus.segments[addDirection(direction, 2)].point\n\n const vector = p2.subtract(p1)\n\n vector.angle += 120\n\n const p3 = p1.subtract(vector)\n\n return new Path({\n closed: true,\n data: { collidable: false, direction },\n fillColor: opening.color,\n opacity: opening.on ? 1 : Terminus.#openingOffOpacity,\n segments: [p1, p2, p3]\n })\n })\n\n return { openings, radius, terminus }\n }\n\n static #Opening = class {\n constructor (color, direction, connected, on) {\n this.colors = Array.isArray(color) ? color : [color]\n this.color = chroma.average(this.colors).hex()\n this.direction = direction\n this.connected = connected === true\n this.on = on === true\n }\n\n connect () {\n this.connected = this.on = true\n }\n\n disconnect () {\n this.connected = this.on = false\n }\n\n toggle () {\n this.on = !this.on\n }\n }\n\n static Events = Object.freeze({\n Connection: 'terminus-connection',\n Disconnection: 'terminus-disconnection'\n })\n}\n","import { Modifier } from '../modifier'\nimport { Icons } from '../icons'\n\nexport class Toggle extends Modifier {\n on\n title = 'Toggle'\n\n constructor (tile, state) {\n super(...arguments)\n\n // TODO: refactor to use 'toggled' everywhere\n this.on = state.on || this.parent?.items.some(item => item.on || item.toggled)\n this.name = this.getName()\n }\n\n attach (tile) {\n super.attach(tile)\n\n // TODO: refactor to use 'toggled' everywhere\n this.on = this.tile?.items.some(item => item.on || item.toggled)\n this.update({ name: this.getName() })\n }\n\n getName () {\n return Toggle.Names[this.on ? 'on' : 'off']\n }\n\n moveFilter (tile) {\n // Filter out tiles that contain no toggleable items\n return super.moveFilter(tile) || !tile.items.some(item => item.toggleable)\n }\n\n onTap (event) {\n super.onTap(event)\n\n this.on = !this.on\n\n const items = this.tile.items.filter((item) => item.toggleable)\n items.forEach((item) => item.toggle(this.on))\n\n this.update({ name: this.getName() })\n\n this.dispatchEvent(Modifier.Events.Invoked, { items })\n }\n\n static Names = Object.freeze({ on: Icons.ToggleOn.name, off: Icons.ToggleOff.name })\n}\n\n/**\n * A mixin for Item which provides toggle behaviors.\n *\n * @param SuperClass\n * @returns {{new(*, *): ToggleableItem, toggled: *, prototype: ToggleableItem}}\n * @constructor\n */\nexport const toggleable = (SuperClass) => class ToggleableItem extends SuperClass {\n toggleable\n toggled\n\n constructor (parent, configuration) {\n super(...arguments)\n\n this.toggleable = !this.immutable && configuration.toggleable !== false\n this.toggled = this.toggleable && configuration.toggled\n }\n\n onToggle () {}\n\n toggle (toggled) {\n this.toggled = toggled\n this.onToggle()\n }\n}\n","import chroma from 'chroma-js'\nimport { CompoundPath, Path } from 'paper'\nimport { Item } from '../item'\nimport {\n getColorElements,\n emitEvent,\n fuzzyEquals,\n getPointBetween,\n getDistance,\n getOppositeDirection,\n uniqueBy, getPointFrom\n} from '../util'\nimport { Step, StepState } from '../step'\nimport { Collision, CollisionMergeWith } from '../collision'\nimport { Cache } from '../cache'\n\nexport class Beam extends Item {\n done = false\n path = []\n sortOrder = 3\n\n #cache = new Cache(Object.values(Beam.CacheKeys))\n #direction\n #path\n #stepIndex = -1\n #steps = []\n\n constructor (terminus, state, configuration) {\n // Exclude from modification\n state.immutable = true\n\n super(...arguments)\n\n this.group = null\n this.#direction = configuration.direction\n\n this.#path = {\n closed: false,\n data: { id: this.id, type: this.type },\n locked: true,\n strokeJoin: 'round',\n strokeCap: 'round',\n strokeWidth: terminus.radius / 12\n }\n }\n\n addStep (step) {\n const lastStepIndex = this.getLastStepIndex()\n\n // Can't be done if adding a new step\n this.done = false\n\n this.#path.strokeColor = step.color\n\n if (this.path.length === 0) {\n const path = new Path(this.#path)\n this.path.push(path)\n this.getLayer().insertChild(0, path)\n }\n\n const currentPath = this.path[this.path.length - 1]\n const previousStep = this.#steps[lastStepIndex]\n\n // Handles cases that require adding a new path item\n if (\n !step.connected || (\n previousStep && (\n step.color !== previousStep.color ||\n step.insertAbove !== previousStep.insertAbove\n )\n )\n ) {\n console.debug(this.toString(), 'adding new path item for step:', step, 'previous step:', previousStep)\n\n const path = new Path(this.#path)\n const points = [step.point]\n\n // If the next step is connected, we will link it with the previous step\n if (step.connected) {\n points.unshift(previousStep.point)\n }\n\n path.add(...points)\n this.path.push(path)\n\n // Unless specified in the state, the path will be inserted beneath all items\n this.getLayer().insertChild(this.#getItemIndex(step), path)\n\n // Reset the segmentIndex\n step.segmentIndex = 0\n } else {\n currentPath.add(step.point)\n step.segmentIndex = currentPath.segments.length - 1\n }\n\n step.pathIndex = this.path.length - 1\n\n this.#steps.push(step)\n\n step.index = this.#stepIndex = this.#steps.length - 1\n\n if (!step.tile.items.some((item) => item.equals(this))) {\n // Add this beam to the tile item list so other beams can see it\n step.tile.addItem(this)\n }\n\n step.onAdd(step)\n\n console.debug(this.toString(), 'added step', step)\n\n this.#onUpdate(this.#stepIndex)\n\n return step\n }\n\n getCollision () {\n return this.getStep()?.state.get(StepState.Collision)\n }\n\n getColor () {\n return this.getStep()?.color || this.getOpening().color\n }\n\n getColors () {\n return Array.from(this.getStep()?.colors || this.getOpening().colors)\n }\n\n getColorElements (tile) {\n // Show color elements for merged beams\n const step = this.getSteps(tile).find((step) => step.state.has(StepState.MergeWith))\n return step ? getColorElements(step.colors) : []\n }\n\n getCompoundPath () {\n return new CompoundPath({ children: this.path.map((item) => item.clone({ insert: false })) })\n }\n\n getIndex () {\n return this.path[this.path.length - 1].index\n }\n\n getLastStepIndex () {\n return this.length() - 1\n }\n\n getLayer () {\n return this.parent.getLayer()\n }\n\n getMergeWith (beam) {\n return this.#cache.get(Beam.CacheKeys.MergeWith).get(beam.id)\n }\n\n getOpening () {\n return this.parent.getOpening(this.#direction)\n }\n\n getState () {\n return this.parent.getState().openings[this.#direction]\n }\n\n getStep (stepIndex) {\n return this.#steps[stepIndex || this.getLastStepIndex()]\n }\n\n getSteps (tile) {\n return tile ? this.#steps.filter((step) => step.tile === tile) : this.#steps\n }\n\n isComplete () {\n return this.isOn() && this.done\n }\n\n isConnected () {\n const step = this.getStep()\n return step?.state.has(StepState.TerminusConnection) ||\n // Consider beams which have merged into connected beams to also be connected\n step?.state.get(StepState.MergeInto)?.beam.isConnected()\n }\n\n isOn () {\n const opening = this.getOpening()\n // The opening will also be on if another beam connects with it\n return opening.on && !opening.connected\n }\n\n isPending () {\n return this.isOn() && !this.done\n }\n\n length () {\n return this.#steps.length\n }\n\n onBeamUpdated (event) {\n const beam = event.detail.beam\n\n if (beam.isPending()) {\n // Wait for beam to finish before evaluating\n return\n }\n\n const beamLastStep = beam.getStep()\n\n if (this.isComplete()) {\n const lastStep = this.getStep()\n\n // Check for invalid collisions\n const collision = lastStep.state.get(StepState.Collision)\n if (collision?.has(beam) && !collision.equals(beamLastStep?.state.get(StepState.Collision))) {\n console.debug(this.toString(), 're-evaluating collision with', beam.toString())\n this.done = false\n this.#stepIndex = Math.max(lastStep.index - 1, 0)\n return\n }\n\n // Check for invalid mergedInto\n const mergeInto = lastStep.state.get(StepState.MergeInto)\n if (mergeInto?.beam.equals(beam) && !beam.getMergeWith(this)) {\n console.debug(this.toString(), 're-evaluating merge into', beam.toString())\n this.done = false\n this.#stepIndex = Math.max(this.#stepIndex - 1, 0)\n return\n }\n }\n\n // Check for invalid mergedWith\n const mergeWith = this.getMergeWith(beam)\n if (mergeWith && !beamLastStep?.state.get(StepState.MergeInto)?.beam.equals(this)) {\n console.debug(this.toString(), 're-evaluating merge with', beam.toString())\n this.done = false\n this.#stepIndex = Math.max(mergeWith.stepIndex - 1, 0)\n }\n }\n\n onCollision ({ beam, collision, collisionStep, currentStep, nextStep, puzzle }) {\n const isSelf = beam.equals(this)\n\n console.debug(this.toString(), 'evaluating collision with', (isSelf ? 'self' : beam.toString()))\n\n if (!beam.isOn()) {\n console.debug(this.toString(), 'ignoring collision with inactive beam', beam.toString())\n return\n }\n\n if (beam.parent.equals(this.parent) && currentStep.index === 0) {\n console.debug(this.toString(), 'ignoring collision with sibling beam', beam.toString())\n return\n }\n\n if (isSelf && this.#stepIndex < this.getLastStepIndex()) {\n console.debug(this.toString(), 'ignoring collision with self while re-evaluating history')\n return\n }\n\n // Find the step with matching collision point\n const stepIndex = this.#steps.findLastIndex((step) => fuzzyEquals(collision.point, step.point))\n if (stepIndex < 0) {\n // This error will occur if the steps are out of sync with the path segments for some reason\n throw new Error(\n `Could not find matching step for beam collision between ${this.toString()} and ${beam.toString()}`)\n }\n\n const step = this.#steps[stepIndex]\n\n if (step.state.get(StepState.MergeInto)?.beam.equals(beam)) {\n console.debug(this.toString(), 'ignoring collision with merged beam', beam.toString())\n return\n }\n\n // Note: we only want to evaluate this at the collision point, otherwise terminus connection is irrelevant.\n if (step.state.get(StepState.TerminusConnection)?.terminus.equals(beam.parent)) {\n console.debug(this.toString(), 'ignoring collision with connected beam in parent terminus', beam.toString())\n return\n }\n\n // Check for a reflection on either this beam or the one being collided with at the collision point.\n const reflector = step.state.get(StepState.Reflector) ?? currentStep.state.get(StepState.Reflector)\n if (reflector) {\n // Since every step goes to the center of the tile, we need to go one pixel back in the direction we came from\n // in order to properly test which side of the reflector the beams are on.\n const stepPoint = getPointFrom(step.point, 1, getOppositeDirection(step.direction))\n const nextStepPoint = getPointFrom(currentStep.point, 1, getOppositeDirection(currentStep.direction))\n if (!reflector.item.isSameSide(stepPoint, nextStepPoint)) {\n console.debug(this.toString(), 'ignoring collision with beam on opposite side of reflector', beam.toString())\n return\n }\n }\n\n // Check for a portal on either beam\n const portal = currentStep.state.get(StepState.Portal) ?? step.state.get(StepState.Portal)\n if (portal) {\n console.debug(this.toString(), 'ignoring collision with beam using same portal', beam.toString())\n return\n }\n\n const isSameDirection = step.direction === nextStep.direction\n if (!isSameDirection || isSelf) {\n // Beams are traveling in different directions (collision), or a beam is trying to merge into itself\n console.debug(beam.toString(), 'has collided with', (isSelf ? 'self' : this.toString()), collision)\n\n if (!step.state.get(StepState.Collision)?.point.equals(collision.point)) {\n // No need to update if there is already an existing collision at this same point\n if (!isSelf) {\n // Update beam at point of impact\n this.update(stepIndex, {\n done: true,\n state: step.state.copy(new StepState.Collision(collision.mirror()))\n })\n } else if (!isSameDirection) {\n // For a collision with self, the update at point of impact will occur on the next update loop. This results in\n // a better visualization of the collision which will result in an infinite looping animation.\n this.update(stepIndex, puzzle.getBeamsUpdateDelay())\n }\n }\n\n return collisionStep.copy({\n done: true,\n // Use same insertion point as the beam we collided with to ensure proper item hierarchy.\n insertAbove: step.insertAbove\n })\n }\n\n console.debug(this.toString(), 'merging with', beam.toString())\n\n // Update history to reflect changing color of path\n this.#updateHistory(stepIndex)\n\n const mergeWith = new CollisionMergeWith(beam, step, stepIndex)\n this.addStep(step.copy({\n colors: mergeWith.colors,\n onAdd: () => {\n this.#cache.get(Beam.CacheKeys.MergeWith).set(beam.id, mergeWith)\n },\n onRemove: () => {\n this.#cache.get(Beam.CacheKeys.MergeWith).unset(beam.id)\n },\n state: step.state.copy(new StepState.MergeWith(mergeWith))\n }))\n\n console.debug(beam.toString(), 'merging into', this.toString())\n\n return nextStep.copy({\n done: true,\n // Stop at current step point\n point: currentStep.point,\n state: nextStep.state.copy(new StepState.MergeInto(this))\n })\n }\n\n onModifierInvoked (event) {\n if (!this.isOn()) {\n if (this.#steps.length) {\n console.debug(this.toString(), 'beam has been toggled off')\n this.remove()\n }\n return\n }\n\n const tiles = event.detail.tiles || [event.detail.tile]\n\n // We want the first step that contains the tile the event occurred on\n const stepIndex = this.#steps.findIndex((step) => tiles.some((tile) => tile.equals(step.tile)))\n if (stepIndex >= 0) {\n console.debug(this.toString(), 're-evaluating due to modifier being invoked in matching tile', stepIndex)\n // Re-evaluate beginning at the step before the matched one\n this.done = false\n this.#stepIndex = Math.max(stepIndex - 1, 0)\n return\n }\n\n if (this.isComplete()) {\n const lastStep = this.getStep()\n\n if (lastStep.state.get(StepState.Portal)?.entryPortal) {\n // Check for valid exit portal\n this.done = false\n }\n }\n }\n\n remove (stepIndex = 0) {\n this.#updateHistory(stepIndex)\n }\n\n selected (selected = true) {\n this.path.forEach((path) => { path.selected = selected })\n }\n\n startDirection () {\n // Take rotation of the parent (terminus) into account\n return (this.getOpening().direction + this.parent.rotation) % 6\n }\n\n /**\n * On each step, a beam will move towards the edge of the current tile until it either reaches that point, or it\n * intersects with something else. A beam will be considered 'done' when it either collides with something or it\n * reaches a terminus opening.\n */\n step (puzzle) {\n if (!this.isPending()) {\n return\n }\n\n console.debug(this.toString(), 'currentStepIndex', this.#stepIndex)\n\n // First step\n if (this.#steps.length === 0) {\n const tile = this.parent.parent\n this.addStep(new Step(0, tile, this.getColor(), this.startDirection(), tile.center))\n }\n\n const currentStepIndex = this.#stepIndex\n const currentStep = this.#steps[currentStepIndex]\n\n // On the first step, we have to take the rotation of the terminus into account\n const direction = currentStepIndex === 0 ? this.startDirection() : currentStep.direction\n const nextStepPoint = getPointFrom(currentStep.point, currentStep.tile.parameters.inradius, direction)\n\n // Use the midpoint between the previous and next step points to calculate which tile we are in.\n // This will ensure we consistently pick the same tile when the next step point is on the edge of two tiles.\n const tile = puzzle.getTile(getPointBetween(currentStep.point, nextStepPoint))\n\n // The next step would be off the grid\n if (!tile) {\n console.debug(this.toString(), 'stopping due to out of bounds')\n\n const collision = new Collision(0, [currentStep.point], this)\n return this.updateStep(currentStepIndex, {\n done: true,\n state: new StepState(new StepState.Collision(collision))\n })\n }\n\n const nextStepIndex = currentStepIndex + 1\n const existingNextStep = this.#steps[nextStepIndex]\n const lastPathIndex = this.path.length - 1\n const lastSegmentIndex = this.path[lastPathIndex].segments.length - 1\n\n let nextStep = new Step(\n nextStepIndex,\n tile,\n currentStep.color,\n direction,\n nextStepPoint,\n existingNextStep?.pathIndex || lastPathIndex,\n existingNextStep?.segmentIndex || lastSegmentIndex\n )\n\n const items = uniqueBy(\n tile.items.concat(currentStep.tile.equals(nextStep.tile) ? [] : currentStep.tile.items),\n 'id'\n )\n\n console.debug(this.toString(), 'collision items:', items)\n\n // See if there are any collisions along the path we plan to take\n const collisions = this.#getCollisions(items, currentStep, nextStep, puzzle)\n .map((collision, index) => new Collision(index, collision.points, this, collision.item))\n\n if (collisions.length) {\n console.debug(this.toString(), 'collisions:', collisions)\n }\n\n let collisionStep\n for (let collisionIndex = 0; collisionIndex < collisions.length; collisionIndex++) {\n const collision = collisions[collisionIndex]\n\n console.debug(this.toString(), 'resolving collision:', collision)\n\n // By default, the next step will be treated as a collision with the beam stopping at the first point of\n // intersection with the item.\n collisionStep = nextStep.copy({\n done: true,\n point: collision.point,\n state: nextStep.state.copy(new StepState.Collision(collision))\n })\n\n // Allow the item to change the resulting step\n collisionStep = collision.item.onCollision({\n beam: this,\n collision,\n collisions,\n collisionStep,\n currentStep,\n nextStep,\n existingNextStep,\n puzzle\n })\n\n if (collisionStep instanceof Step) {\n break\n }\n }\n\n if (collisionStep) {\n nextStep = collisionStep\n }\n\n // See if we need to change history\n if (existingNextStep) {\n // The next step we would take is the same as the step that already exists in history\n if (nextStep.equals(existingNextStep)) {\n this.#stepIndex++\n\n const lastStepIndex = this.getLastStepIndex()\n console.debug(\n this.toString(),\n 'new step is same as existing. new step index:',\n this.#stepIndex,\n 'last step index:',\n lastStepIndex\n )\n\n if (this.#stepIndex === lastStepIndex) {\n // To ensure we mark as done\n this.#onUpdate(this.#stepIndex)\n }\n\n return existingNextStep\n } else {\n console.debug(\n this.toString(),\n `is revising history at step index: ${nextStepIndex}`,\n 'existing step:',\n existingNextStep,\n 'new step:',\n nextStep\n )\n this.#updateHistory(nextStepIndex)\n }\n }\n\n if (currentStepIndex === this.#stepIndex && currentStep.point.equals(nextStep.point)) {\n // Note: ensuring history has not been modified when evaluating next step vs current\n console.debug(this.toString(), 'next step point is same as current step point, stopping.', nextStep)\n return this.updateStep(currentStepIndex, nextStep.copy({ done: true }))\n }\n\n return this.addStep(nextStep)\n }\n\n toString () {\n return `[${this.type}:${this.id}:${chroma(this.getColor()).name()}]`\n }\n\n update (stepIndex, settings = {}, timeout) {\n if (typeof settings === 'number') {\n timeout = settings\n settings = {}\n }\n const update = this.#update.bind(this, stepIndex, settings, timeout)\n return timeout === undefined ? update() : setTimeout(update, timeout)\n }\n\n updateState (updater, dispatchEvent = true) {\n return this.parent.updateState((state) => updater(state.openings[this.#direction]), dispatchEvent)\n }\n\n updateStep (stepIndex, settings) {\n const step = this.getStep(stepIndex)\n if (step) {\n // Update is essentially: remove, update, add\n step.onRemove(step)\n const updatedStep = this.#getUpdatedStep(step, settings)\n this.#steps[stepIndex] = updatedStep\n updatedStep.onAdd(updatedStep)\n\n console.debug(this.toString(), 'updated step at index', stepIndex, 'from', step, 'to', updatedStep)\n this.#onUpdate(stepIndex)\n return updatedStep\n }\n }\n\n #getCollisions (items, currentStep, nextStep, puzzle) {\n const segments = [currentStep.point, nextStep.point]\n const path = new Path({ segments })\n const firstPoint = segments[0]\n return items\n .map((item) => {\n const points = []\n const intersections = path.getIntersections(\n item.getCompoundPath(),\n // Ignore first point from self which will always collide\n (curveLocation) => !(item === this && curveLocation.point.equals(firstPoint))\n )\n\n points.push(...new Set(intersections.map((intersection) => intersection.point)))\n\n // Handle the edge case of colliding with a beam with a single, isolated path item.\n // This will happen in the case of a portal exit collision, for example.\n if (!points.length && item.type === Item.Types.beam && item !== this) {\n points.push(\n ...item.getSteps().map((step) => step.point)\n .filter((point) => segments.some((segment) => fuzzyEquals(point, segment)))\n )\n }\n\n // Sort collision points by distance from origin point (closest collision points first)\n points.sort(getDistance(firstPoint))\n\n if (puzzle.debug) {\n puzzle.drawDebugPoint(firstPoint)\n points.forEach((point) => puzzle.drawDebugPoint(point, { fillColor: 'black' }))\n }\n\n return { points, item }\n })\n .filter((result) => result.points.length)\n .sort((a, b) => {\n // Sort items returned by proximity to starting point\n const distance = getDistance(firstPoint)(a.points[0], b.points[0])\n if (distance === 0) {\n // If two items are an equal distance away, sort by sort order as defined on item\n return a.item.sortOrder - b.item.sortOrder\n }\n\n return distance\n })\n }\n\n #getItemIndex (step) {\n return step.insertAbove ? step.insertAbove.getIndex() + 1 : 0\n }\n\n #getUpdatedStep (step, settings) {\n if (typeof settings === 'function') {\n settings = settings(step)\n }\n\n return settings instanceof Step ? settings : step.copy(settings)\n }\n\n #update (stepIndex, settings) {\n if (stepIndex < this.getLastStepIndex()) {\n const step = this.#updateHistory(stepIndex)\n this.addStep(this.#getUpdatedStep(step, settings))\n } else {\n this.updateStep(stepIndex, settings)\n }\n }\n\n #onUpdate (stepIndex) {\n const lastStepIndex = this.getLastStepIndex()\n stepIndex ??= lastStepIndex\n\n const step = this.getStep(stepIndex)\n\n if (stepIndex === lastStepIndex) {\n // Update beam status if last step was updated\n this.done = step?.done ?? false\n }\n\n emitEvent(Beam.Events.Update, { beam: this, state: step?.state, step, stepIndex })\n }\n\n #updateHistory (stepIndex) {\n const lastStepIndex = this.getLastStepIndex()\n const step = this.#steps[stepIndex]\n\n console.debug(\n this.toString(),\n 'updateHistory',\n 'stepIndex:',\n stepIndex,\n 'lastStepIndex:',\n lastStepIndex,\n 'step:',\n step\n )\n\n if (step) {\n const currentPath = this.path[step.pathIndex]\n\n // Remove any now invalid path segments\n currentPath.removeSegments(step.segmentIndex)\n\n // If the current path is empty, remove it along with everything after it.\n const spliceIndex = step.pathIndex + (currentPath.segments.length === 0 ? 0 : 1)\n\n // Remove any now invalid path items\n this.path.splice(spliceIndex).forEach((item) => item.remove())\n\n const deletedSteps = this.#steps.splice(stepIndex)\n\n console.debug(this.toString(), 'removed steps: ', deletedSteps)\n\n const tiles = [...new Set(deletedSteps.map((step) => step.tile))]\n // Remove references to the beam in any tiles it is no longer in\n tiles.filter((tile) => this.getSteps(tile).length === 0).forEach((tile) => tile.removeItem(this))\n\n deletedSteps.forEach((step) => step.onRemove(step))\n\n this.done = false\n this.#stepIndex = (stepIndex - 1)\n\n this.#onUpdate(this.#stepIndex)\n }\n\n return step\n }\n\n static CacheKeys = Object.freeze({\n MergeWith: 'mergeWith'\n })\n\n static Events = Object.freeze({\n Collision: 'beam-collision',\n Connection: 'beam-connection',\n Merge: 'beam-merge',\n Update: 'beam-update'\n })\n}\n","import { StepState } from './step'\n\nexport class Collision {\n constructor (index, points, beam, item) {\n const items = [beam]\n\n if (item !== undefined) {\n items.push(item)\n }\n\n this.beam = beam\n this.index = index\n\n // The item that was collided with\n this.item = item\n this.itemIds = items.map((item) => item.id)\n this.items = items\n\n // The first collision point\n this.point = points[0]\n this.points = points\n\n // Check if the collision is with self\n this.withSelf = beam.equals(item)\n }\n\n copy (settings) {\n return new Collision(\n settings.index ?? this.index,\n settings.points ?? this.points,\n settings.beam ?? this.beam,\n settings.item ?? this.item\n )\n }\n\n equals (other) {\n return other && other.point.equals(this.point) &&\n other.items.every((item) => this.has(item))\n }\n\n has (item) {\n return this.itemIds.includes(item.id)\n }\n\n mirror () {\n return this.copy({ beam: this.item, item: this.beam })\n }\n}\n\nexport class CollisionMergeWith {\n constructor (beam, step, stepIndex) {\n this.beams = [beam].concat(step.state.get(StepState.MergeWith)?.beams || [])\n this.colors = step.colors.concat(beam.getColors())\n this.stepIndex = stepIndex\n }\n}\n","import { Path, Point, Size } from 'paper'\nimport { Item } from '../item'\nimport { rotatable } from '../modifiers/rotate'\nimport { getPointBetween, getOppositeDirection, getPosition, getReflectedDirection, getPointFrom } from '../util'\nimport { movable } from '../modifiers/move'\nimport { StepState } from '../step'\n\nexport class Reflector extends movable(rotatable(Item)) {\n #item\n\n constructor (tile, state) {\n super(tile, state, { rotationDegrees: 30 })\n\n this.color = state.color || 'black'\n this.#item = Reflector.item(tile, this.color)\n\n this.group.addChild(this.#item)\n }\n\n midLine () {\n // Two points which form a line through the mid-point of the reflector\n return [\n getPointBetween(this.#item.segments[3].point, this.#item.segments[0].point),\n getPointBetween(this.#item.segments[1].point, this.#item.segments[2].point)\n ]\n }\n\n getSide (point) {\n // Returns the side of the reflector the point is on (0, 1, or -1)\n return getPosition(this.midLine(), point)\n }\n\n isSameSide (pointA, pointB) {\n return this.getSide(pointA) === this.getSide(pointB)\n }\n\n onCollision ({ beam, collision, collisions, collisionStep, currentStep, nextStep }) {\n const directionFrom = getOppositeDirection(currentStep.direction)\n const directionTo = getReflectedDirection(directionFrom, this.rotation)\n\n if (directionTo === currentStep.direction) {\n console.debug(beam.toString(), 'stopping due to collision with non-reflective side of reflector')\n return collisionStep\n }\n\n if (directionTo === directionFrom) {\n console.debug(beam.toString(), 'stopping due to reflection back at self')\n // Unsure why this rule was here, but it was causing a bug when re-evaluating history\n // if (collisions.some((collision) => collision.item.type === Item.Types.beam)) {\n // // If there is also a beam collision in the list of collisions for this step, let that one resolve it\n // return\n // } else {\n // Instead of using collisionStep, just add a collision to nextStep. This will ensure any beams that hit the\n // same side of the reflector will collide with this beam.\n return nextStep.copy({\n done: true,\n state: nextStep.state.copy(new StepState.Collision(collision.copy({ points: [nextStep.point] })))\n })\n // }\n }\n\n // The beam will collide with a reflector twice, on entry and exit, so ignore the first one, but track in state\n if (!currentStep.state.has(StepState.Reflector)) {\n return nextStep.copy({ state: nextStep.state.copy(new StepState.Reflector(this)) })\n }\n\n const point = getPointFrom(currentStep.point, nextStep.tile.parameters.inradius, directionTo)\n return nextStep.copy({ direction: directionTo, point })\n }\n\n static item (tile, color) {\n const width = tile.parameters.circumradius / 12\n const length = tile.parameters.circumradius - (width * 2)\n const topLeft = tile.center.subtract(new Point(width / 2, length / 2))\n const size = new Size(width, length)\n\n return new Path.Rectangle({\n data: { size },\n fillColor: color,\n point: topLeft,\n size\n })\n }\n}\n","import { Item } from '../item'\nimport { Path } from 'paper'\nimport { addDirection } from '../util'\nimport { rotatable } from '../modifiers/rotate'\nimport { movable } from '../modifiers/move'\n\nexport class Wall extends movable(rotatable(Item)) {\n sortOrder = 1\n\n constructor (tile, state) {\n // Exclude from modification by default\n state.immutable ??= true\n\n super(tile, state, { rotationDegrees: 60 })\n\n const walls = Wall.item(tile, state)\n this.group.addChildren(walls)\n }\n\n static item (tile, configuration) {\n const radius = tile.parameters.circumradius\n const width = radius / 12\n const fillColor = tile.styles.default.strokeColor\n\n return configuration.directions.map((direction) => {\n const firstSegment = tile.hexagon.segments[direction].point\n const nextDirection = addDirection(direction, 1)\n const lastSegment = tile.hexagon.segments[nextDirection].point\n\n return new Path({\n closed: true,\n fillColor,\n segments: [\n firstSegment,\n tile.hexagon.getLocationAt(\n (direction === 0 ? tile.hexagon.length : tile.hexagon.getOffsetOf(firstSegment)) - width\n ),\n tile.hexagon.getLocationAt(\n (nextDirection === 0 ? 0 : tile.hexagon.getOffsetOf(lastSegment)) + width\n ),\n lastSegment\n ]\n })\n })\n }\n}\n","import { Immutable } from './modifiers/immutable'\nimport { Lock } from './modifiers/lock'\nimport { Move } from './modifiers/move'\nimport { Rotate } from './modifiers/rotate'\nimport { Toggle } from './modifiers/toggle'\nimport { Modifier } from './modifier'\nimport { Swap } from './modifiers/swap'\n\nexport function modifierFactory (parent, state, index) {\n let modifier\n\n switch (state.type) {\n case Modifier.Types.immutable:\n modifier = new Immutable(...arguments)\n break\n case Modifier.Types.lock:\n modifier = new Lock(...arguments)\n break\n case Modifier.Types.move:\n modifier = new Move(...arguments)\n break\n case Modifier.Types.rotate:\n modifier = new Rotate(...arguments)\n break\n case Modifier.Types.swap:\n modifier = new Swap(...arguments)\n break\n case Modifier.Types.toggle:\n modifier = new Toggle(...arguments)\n break\n default:\n console.error('Ignoring modifier with unknown type:', state.type)\n break\n }\n\n return modifier\n}\n","import { Modifier } from '../modifier'\n\nexport class Immutable extends Modifier {\n immutable = true\n name = 'block'\n title = 'Immutable'\n}\n","import { Modifier } from '../modifier'\n\nexport class Lock extends Modifier {\n immutable = true\n name = 'lock'\n title = 'Locked'\n}\n","import { Move } from './move'\nimport { Modifier } from '../modifier'\nimport { Icons } from '../icons'\n\nexport class Swap extends Move {\n name = Icons.Swap.name\n title = 'Swap'\n\n moveItems (tile) {\n const toItems = tile.items.filter(Move.movable)\n const fromItems = this.tile.items.filter(Move.movable)\n\n fromItems.forEach((item) => item.move(tile))\n toItems.forEach((item) => item.move(this.tile))\n\n return {\n moved: [Move.data(this.tile, tile, fromItems), Move.data(tile, this.tile, toItems)],\n tiles: [this.tile, tile]\n }\n }\n\n tileFilter (tile) {\n // Never mask current tile\n return !tile.equals(this.tile) && (\n // Mask immutable tiles\n tile.modifiers.some(Modifier.immutable) ||\n // Mask tiles that don't contain any movable items\n !tile.items.some(Move.movable)\n )\n }\n}\n","import { Item } from '../item'\nimport { Path } from 'paper'\n\nexport class Mask extends Item {\n constructor (tile, style) {\n super(null, style, { locked: false, type: Item.Types.mask })\n\n const data = { type: this.type }\n const item = new Path.RegularPolygon({\n center: tile.center,\n closed: true,\n data,\n opacity: 0.25,\n radius: tile.parameters.circumradius + 1,\n sides: 6,\n style: Object.assign({ fillColor: 'black' }, style)\n })\n\n this.center = tile.center\n this.group.addChild(item)\n }\n}\n","import { Item } from '../item'\nimport { Path } from 'paper'\n\nexport class Collision extends Item {\n constructor (state) {\n super(null, state, { type: Item.Types.collision })\n\n const { center, color } = state\n\n this.center = center\n this.color = color\n\n const item = new Path.Circle({\n center,\n closed: true,\n radius: 4,\n style: {\n fillColor: 'white',\n strokeColor: color,\n strokeWidth: 2\n }\n })\n\n this.group.addChild(item)\n }\n}\n","import { Puzzles } from '../puzzles'\nimport { base64decode, base64encode, jsonDiffPatch, params, url } from './util'\n\nconst history = window.history\nconst localStorage = window.localStorage\n\nexport class State {\n #current\n #deltas\n #id\n #moveIndex\n #moves\n #original\n #selectedTile\n #version\n\n constructor (id, original, deltas, moveIndex, moves, selectedTile, version) {\n console.log(moveIndex)\n this.#id = id\n this.#original = original\n this.#deltas = deltas || []\n this.#moves = moves || []\n this.#moveIndex = moveIndex ?? this.#moves.length - 1\n this.#selectedTile = selectedTile\n this.#version = version ?? State.Version\n\n this.#resetCurrent()\n this.#updateCache()\n }\n\n addMove () {\n // Handle moving after an undo (revising history)\n if (this.#moveIndex < this.#moves.length - 1) {\n const deltaIndex = this.getDeltaIndex()\n\n console.debug(\n this.toString(),\n 'addMove: revising history. moves:',\n this.#moves,\n `moveIndex: ${this.#moveIndex}`,\n `deltaIndex: ${deltaIndex}`\n )\n\n // Remove all deltas after the current one\n this.#deltas.splice(deltaIndex + 1)\n // Remove all moves after the current one\n this.#moves.splice(this.#moveIndex + 1)\n }\n\n const deltaIndex = this.#deltas.length - 1\n if (!this.#moves.includes(deltaIndex)) {\n // Don't add duplicate moves\n this.#moves.push(deltaIndex)\n } else {\n console.debug(this.toString(), `addMove: ignoring duplicate move: ${deltaIndex}`)\n }\n\n this.#moveIndex = this.#moves.length - 1\n\n console.debug(this.toString(), 'addMove: added move', this.#moveIndex, deltaIndex)\n\n return this.#moveIndex\n }\n\n canRedo () {\n return this.#moveIndex < this.#moves.length - 1\n }\n\n canReset () {\n return this.#moves.length > 0\n }\n\n canUndo () {\n return this.#moveIndex >= 0\n }\n\n encode () {\n return base64encode(JSON.stringify({\n id: this.#id,\n // If this puzzle exists in code, just cache the version\n original: Puzzles.has(this.#id) ? { version: this.#original.version } : this.#original,\n deltas: this.#deltas,\n moveIndex: this.#moveIndex,\n moves: this.#moves,\n selectedTile: this.#selectedTile,\n version: this.#version\n }))\n }\n\n getCurrent () {\n return structuredClone(this.#current)\n }\n\n getDeltaIndex () {\n console.debug(this.toString(), 'getDeltaIndex', this.#moves, this.#moveIndex, this.#deltas.length - 1)\n // If there are no moves, or the user is on the latest move, use the latest delta index\n // Otherwise, use the delta index indicated by the move\n return this.#moveIndex < this.#moves.length - 1 ? this.#moves[this.#moveIndex + 1] : this.#deltas.length - 1\n }\n\n getId () {\n return this.#id\n }\n\n getTitle () {\n return this.getId() + (this.#current.title ? ` - ${this.#current.title}` : '')\n }\n\n getSelectedTile () {\n return this.#selectedTile\n }\n\n moves () {\n return this.#moves\n }\n\n redo () {\n if (!this.canRedo()) {\n return\n }\n\n this.#moveIndex++\n this.#resetCurrent()\n this.#updateCache()\n\n return true\n }\n\n reset () {\n if (!this.canReset()) {\n return\n }\n\n // Reset to the state prior to the first move\n this.#deltas.splice(this.#moves[0] + 1)\n this.#moveIndex = -1\n this.#moves = []\n this.#selectedTile = undefined\n\n State.clearCache(this.getId())\n\n this.#resetCurrent()\n this.#updateCache()\n\n return true\n }\n\n setSelectedTile (tile) {\n const id = tile?.coordinates.offset.toString()\n if (this.#selectedTile !== id) {\n this.#selectedTile = id\n this.#updateCache()\n }\n }\n\n toString () {\n return `[State:${this.#deltas.length - 1}:${this.#moveIndex}]`\n }\n\n undo () {\n if (!this.canUndo()) {\n return\n }\n\n console.log(this.toString(), 'undo', this.#moveIndex)\n\n this.#moveIndex--\n this.#resetCurrent()\n this.#updateCache()\n\n return true\n }\n\n update (newState) {\n const delta = jsonDiffPatch.diff(this.#current, newState)\n console.debug(this.toString(), 'update', delta)\n\n if (delta === undefined) {\n // Nothing to do\n return\n }\n\n // It seems that the jsondiffpatch library modifies deltas on patch. To prevent that, they will be stored as\n // their stringified JSON representation and parsed before being applied.\n // See:https://github.com/benjamine/jsondiffpatch/issues/34\n this.#deltas.push(JSON.stringify(delta))\n\n this.#apply(delta)\n this.#updateCache()\n }\n\n #apply (delta) {\n // Support for deltas stored as stringified JSON in cache\n if (typeof delta === 'string') {\n delta = JSON.parse(delta)\n }\n console.debug(this.toString(), 'apply', delta)\n return jsonDiffPatch.patch(this.#current, delta)\n }\n\n #key (key) {\n return State.key(key, this.getId())\n }\n\n #resetCurrent () {\n // Start with the original state\n this.#current = structuredClone(this.#original)\n\n // Then apply every delta until the currently active delta\n const deltaIndex = this.getDeltaIndex()\n\n console.log(this.toString(), 'resetCurrent', deltaIndex)\n\n this.#deltas.filter((delta, index) => index <= deltaIndex).forEach((delta) => this.#apply(delta))\n }\n\n #updateCache () {\n const id = this.getId()\n const state = this.encode()\n\n url.hash = ['', id, state].join('/')\n history.pushState({ id, state }, '', url)\n localStorage.setItem(State.CacheKeys.id, id)\n localStorage.setItem(this.#key(State.CacheKeys.state), state)\n }\n\n static clearCache (id) {\n if (!id) {\n // Clear everything\n url.hash = ''\n history.pushState({}, '', url)\n id = localStorage.getItem(State.CacheKeys.id)\n localStorage.clear()\n // Keep current puzzle ID\n localStorage.setItem(State.CacheKeys.id, id)\n } else {\n // Clear a single puzzle\n url.hash = `/${id}`\n history.pushState({ id }, '', url)\n localStorage.removeItem(State.key(State.CacheKeys.state, id))\n }\n }\n\n static fromEncoded (state) {\n state = JSON.parse(base64decode(state))\n\n if (state.id === undefined) {\n console.warn('Invalid cache, ignoring.')\n return\n }\n\n if (state.version !== State.Version) {\n console.debug(\n 'Invalidating cache due to version mismatch. ' +\n `Ours: ${State.Version}, theirs: ${state.version}.`\n )\n State.clearCache()\n return\n }\n\n if (Puzzles.has(state.id)) {\n const original = Puzzles.get(state.id)\n if (original && original.version !== state.original?.version) {\n console.debug(\n `Invalidating cache for puzzle ${state.id} due to version mismatch. ` +\n `Ours: ${original.version}, theirs: ${state.original?.version}.`\n )\n State.clearCache(state.id)\n return\n }\n state.original = original\n }\n\n return new State(\n state.id,\n state.original,\n state.deltas,\n state.moveIndex,\n state.moves,\n state.selectedTile,\n state.version\n )\n }\n\n static fromId (id) {\n return new State(id, Puzzles.get(id))\n }\n\n static resolve (id) {\n let state\n\n // Allow cache to be cleared via URL param\n if (params.has(State.ParamKeys.clearCache)) {\n State.clearCache(params.get(State.ParamKeys.clearCache))\n }\n\n const pathSegments = url.hash.substring(1).split('/').filter((path) => path !== '')\n\n if (!id) {\n // If no explicit ID is given, try to load state from URL\n pathSegments.filter((path) => !Puzzles.has(path)).some((segment, index) => {\n try {\n state = State.fromEncoded(segment)\n id = state.getId()\n } catch (e) {\n console.debug(`Could not parse state from path segment '${index}'`, e)\n }\n\n return state !== undefined\n })\n }\n\n if (!state) {\n // Update ID before checking for state in localStorage.\n id = id || pathSegments[0] || localStorage.getItem(State.CacheKeys.id) || Puzzles.visible.firstId\n\n const localState = localStorage.getItem(State.key(State.CacheKeys.state, id))\n if (localState) {\n try {\n state = State.fromEncoded(localState)\n } catch (e) {\n console.debug(`Could not parse state with ID '${id}' from localStorage`, e)\n }\n }\n }\n\n if (!state) {\n // Fall back to loading state from Puzzles cache by ID\n state = State.fromId(id)\n }\n\n if (!state) {\n throw new Error(`Unable to resolve state for ID '${id}'`)\n }\n\n return state\n }\n\n static key (key, id) {\n return `${key}:${id}`\n }\n\n static CacheKeys = Object.freeze({\n center: 'center',\n id: 'id',\n state: 'state',\n zoom: 'zoom'\n })\n\n static ParamKeys = Object.freeze({\n clearCache: 'clearCache'\n })\n\n // This should be incremented whenever the state cache object changes in a way that requires it to be invalidated\n // Use this sparingly as it will reset the state of every puzzle on the users end\n static Version = 3\n}\n","const puzzles = {\n '001': require('./001.json'),\n '002': require('./002.json'),\n '003': require('./003.json'),\n '004': require('./004.json'),\n '005': require('./005.json'),\n '006': require('./006.json'),\n '007': require('./007.json'),\n '008': require('./008.json'),\n '009': require('./009.json'),\n '010': require('./010.json'),\n '011': require('./011.json'),\n '012': require('./012.json'),\n test_infinite_loop: require('./test/infiniteLoop.json'),\n test_layout: require('./test/layout'),\n test_portal: require('./test/portal.json'),\n test_reflector: require('./test/reflector.json')\n}\n\nfunction traverse (ids, id, amount) {\n const index = ids.indexOf(id)\n return ids[index < 0 ? index : index + amount]\n}\n\nclass PuzzleGroup {\n ids\n\n constructor (ids) {\n this.firstId = ids[0]\n this.ids = ids\n this.lastId = ids[ids.length - 1]\n }\n\n get (id) {\n if (this.has(id)) {\n // Note: deep cloning puzzles to prevent mutation\n return structuredClone(puzzles[id])\n }\n }\n\n has (id) {\n return this.ids.includes(id)\n }\n\n nextId (id) {\n return traverse(this.ids, id, 1)\n }\n\n previousId (id) {\n return traverse(this.ids, id, -1)\n }\n}\n\nexport const Puzzles = new PuzzleGroup(Object.keys(puzzles).sort())\n\nPuzzles.hidden = new PuzzleGroup(Puzzles.ids.filter((id) => id.startsWith('test_')))\nPuzzles.titles = Object.fromEntries(Puzzles.ids.map((id) => [id, puzzles[id].title || id]))\nPuzzles.visible = new PuzzleGroup(Puzzles.ids.filter((id) => !Puzzles.hidden.has(id)))\n","import { capitalize, getIconElement, getTextElement } from './util'\nimport { Terminus } from './items/terminus'\nimport { EventListeners } from './eventListeners'\nimport { Puzzle } from './puzzle'\n\nexport class Solution {\n #conditions = []\n\n constructor (state) {\n state.forEach((condition) => this.#conditionFactory(condition))\n }\n\n teardown () {\n this.#conditions.forEach((condition) => condition.teardown())\n Solution.element.replaceChildren()\n }\n\n isSolved () {\n return this.#conditions.every((condition) => condition.isMet())\n }\n\n #conditionFactory (condition) {\n switch (condition.type) {\n case SolutionCondition.Types.connections: {\n this.#conditions.push(new Connections(condition))\n break\n }\n case SolutionCondition.Types.moves: {\n this.#conditions.push(new Moves(condition))\n break\n }\n default: {\n console.warn('Ignoring condition with unknown type:', condition.type)\n break\n }\n }\n }\n\n static element = document.getElementById('solution')\n}\n\nclass SolutionCondition {\n constructor (state, elements) {\n this.state = state\n\n const li = document.createElement('li')\n li.append(...elements)\n Solution.element.append(li)\n }\n\n isMet () {}\n\n teardown () {}\n\n update () {}\n\n static Types = Object.freeze(Object.fromEntries([\n 'connections',\n 'moves'\n ].map((type) => [type, capitalize(type)])))\n}\n\nclass Connections extends SolutionCondition {\n #completed\n #eventListeners = new EventListeners({ context: this })\n #connections = []\n\n constructor (state) {\n const completed = document.createElement('span')\n completed.textContent = '0'\n\n const required = document.createElement('span')\n required.textContent = state.amount.toString()\n\n const elements = [\n completed,\n getTextElement('/'),\n required,\n getIconElement('link', 'Connections')\n ]\n\n super(state, elements)\n\n this.#completed = completed\n\n this.#eventListeners.add([\n { type: Terminus.Events.Connection, handler: this.update },\n { type: Terminus.Events.Disconnection, handler: this.update }\n ])\n }\n\n isMet () {\n return this.#connections.length === this.state.amount\n }\n\n teardown () {\n this.#eventListeners.remove()\n super.teardown()\n }\n\n update (event) {\n console.debug('Connections.update', event)\n\n const terminus = event.detail.terminus\n const opening = event.detail.opening\n const connectionId = `${terminus.id}:${opening.direction}`\n const connectionIndex = this.#connections.findIndex((connection) => connection === connectionId)\n\n if (opening.connected && connectionIndex < 0) {\n this.#connections.push(connectionId)\n } else if (!opening.connected && connectionIndex >= 0) {\n this.#connections.splice(connectionIndex, 1)\n }\n\n this.#completed.textContent = this.#connections.length.toString()\n }\n}\n\nclass Moves extends SolutionCondition {\n #completed\n #eventListeners = new EventListeners({ context: this })\n #moves = 0\n\n constructor (state) {\n state.operator ??= Moves.Operators.equalTo\n\n if (!Object.values(Moves.Operators).includes(state.operator)) {\n throw new Error(`Invalid moves operator: ${state.operator}`)\n }\n\n const completed = document.createElement('span')\n completed.textContent = '0'\n\n const required = document.createElement('span')\n required.textContent = state.amount.toString()\n\n const elements = [\n completed,\n getTextElement(state.operator),\n required,\n getIconElement('stacks', 'Moves')\n ]\n\n super(state, elements)\n\n this.#completed = completed\n this.#eventListeners.add([{ type: Puzzle.Events.Updated, handler: this.update }])\n }\n\n isMet () {\n // TODO: support 'between' syntax like 2 < 3 < 4 ?\n switch (this.state.operator) {\n case Moves.Operators.equalTo:\n return this.#moves === this.state.amount\n case Moves.Operators.greaterThan:\n return this.#moves > this.state.amount\n case Moves.Operators.lessThan:\n return this.#moves < this.state.amount\n }\n }\n\n teardown () {\n this.#eventListeners.remove()\n super.teardown()\n }\n\n update (event) {\n console.debug('Moves.update', event)\n this.#moves = event.detail.state.moves().length\n this.#completed.textContent = this.#moves.toString()\n }\n\n static Operators = Object.freeze({\n equalTo: '=',\n greaterThan: '>',\n lessThan: '<'\n })\n}\n","const script = document.createElement('script')\nscript.setAttribute('src', 'https://www.googletagmanager.com/gtag/js?id=G-HXLD6EE5NS')\ndocument.head.append(script)\n\nconst dataLayer = window.dataLayer = window.dataLayer || []\nfunction gtag () { dataLayer.push(arguments) }\ngtag('js', new Date())\ngtag('config', 'G-HXLD6EE5NS')\n","const doorbellOptions = window.doorbellOptions = {\n appKey: 'o1smdnJiyxObjMcY0jSTf08TIhA814yLq68rEwTDWTavma7dtIVKEdwzMePE2LHC',\n container: document.getElementById('feedback-container'),\n hideButton: true,\n properties: {}\n}\n\nconst script = document.createElement('script')\nscript.setAttribute(\n 'src',\n 'https://embed.doorbell.io/button/14129/1705777677/init?native_json=1&needs_postmessage=0'\n)\ndocument.head.append(script)\n\ndocument.addEventListener('puzzle-updated', (event) => {\n doorbellOptions.properties.puzzleId = event.detail.state.getId()\n})\n"],"names":["$b8ea597934691048$var$static_l_desc","$b8ea597934691048$var$static_d_desc","$b8ea597934691048$var$static_bl_desc","$b8ea597934691048$var$lenfix","$b8ea597934691048$var$distfix","$parcel$export","e","n","v","s","Object","defineProperty","get","set","enumerable","configurable","$parcel$interopDefault","a","__esModule","default","$parcel$global","globalThis","self","window","global","$parcel$modules","$parcel$inits","parcelRequire","id","exports","init","module","call","err","Error","code","register","parcelRegister","self1","undefined","document","Base","hidden","array","slice","create","describe","getOwnPropertyDescriptor","define1","forEach","iter","bind","i","l","length","forIn","hasOwnProperty","assign","dst","arguments","src","key","each","obj","desc","value","inject","dest","beans","preserve","beansNames","field","name","val","substring","bean","isFunc","res","prev","base","match","toLowerCase","isPlainObject","writable","test","part","statics","prototype","extend","ctor","proto","initialize","apply","clone","constructor","define","pick","b","list","begin","end","toString","_id","_class","_name","type","push","Formatter","instance","number","join","getClassName","importJSON","json","exportJSON","options","toJSON","serialize","props","exclude","filter","_prioritize","equals","obj1","obj2","Array","isArray","keys","read","start","amount","peek","__index","readIndex","_readIndex","readNull","__read","filtered","__filtered","remain","readList","entry","readNamed","getNamed","hasValue","source","getSource","__unfiltered","readSupported","that","__source","arg","hasNamed","prioritize","handleKey","processed","isPlainValue","asString","compact","dictionary","isRoot","formatter","precision","definitions","references","add","item","ref","unshift","_serialize","_compactSerialize","deserialize","_data","_setDictionary","_isRoot","isFirst","hasDictionary","isDictionary","args","JSON","stringify","target","parse","useTarget","Item","Layer","insert","concat","INSERT","items","itemsLength","startLength","splice","index","remove","append","_index","removed","capitalize","str","replace","toUpperCase","camelize","chr","hyphenate","Emitter","on","func","types","_eventTypes","handlers","_callbacks","indexOf","install","off","uninstall","once","handler","emit","event","setTarget","currentTarget","stop","responds","attach","detach","fire","_installEvents","events","_events","isString","PaperScope","paper","settings","applyMatrix","insertItems","handleSize","hitTolerance","project","projects","tools","_scopes","support","ctx","CanvasProvider","getContext","nativeDash","nativeBlendModes","BlendMode","nativeModes","release","agent","user","navigator","userAgent","os","exec","platform","browser","v1","v2","rv","chrome","version","versionNumber","parseFloat","trident","jsdom","webkit","atom","getView","_view","getPaper","execute","PaperScript","View","updateFocus","scope","setup","element","Project","createCanvas","width","height","getCanvas","activate","clear","handleAttribute","el","attr","getAttribute","hasAttribute","PaperScopeItem","_scope","_list","_reference","isActive","CollisionDetection","findItemBoundsCollisions","items1","items2","tolerance","getBounds","bounds","rect","left","top","right","bottom","bounds1","bounds2","findBoundsCollisions","findCurveBoundsCollisions","curves1","curves2","bothAxis","curves","min","Math","max","hor","ver","boundsA","boundsB","sweepVertical","onlySweepAxisCollisions","allBounds","lengthA","lengthAll","binarySearch","indices","coord","lo","hi","mid","pri0","pri1","sec0","sec1","allIndicesByPri0","sort","i1","i2","activeIndicesByPri1","allCollisions","curIndex","curBounds","origIndex","isCurrentA","isCurrentB","curCollisions","pruneCount","j","activeIndex","curSec1","curSec0","activeBounds","isActiveA","isActiveB","curPri1","collisions","multiplier","pow","round","pair","val1","val2","separator","point","x","y","size","rectangle","Numerical","abscissas","weights","abs","sqrt","log2","log","LOG2E","clamp","getDiscriminant","c","split","D","E","ad","bd","cd","p","dp","q","dq","getNormalizationFactor","norm","EPSILON","MACHINE_EPSILON","CURVETIME_EPSILON","GEOMETRIC_EPSILON","TRIGONOMETRIC_EPSILON","ANGULAR_EPSILON","KAPPA","isZero","isMachineZero","integrate","f","w","A","B","m","sum","Ax","findRoot","df","fx","dx","nx","solveQuadratic","roots","x1","x2","Infinity","Q","R","count","boundless","minB","maxB","isFinite","solveCubic","d","b1","c2","qd","evaluate","x0","tmp","t","r","td","rd","UID","_pools","pool","Point","arg0","arg1","reading","hasY","_set","setAngle","angle","getLength","setLength","_angle","cos","sin","scale","getAngle","getAngleInRadians","PI","setAngleInRadians","getAngleInDegrees","setAngleInDegrees","atan2","div","NaN","dot","acos","getQuadrant","getDirectedAngle","cross","getDistance","squared","normalize","current","rotate","center","subtract","transform","matrix","_transformPoint","multiply","divide","modulo","negate","isInside","Rectangle","contains","isClose","isCollinear","isColinear","isOrthogonal","isNaN","isInQuadrant","point1","point2","random","y1","y2","op","LinkedPoint","owner","setter","_x","_y","_owner","_setter","_dontNotify","getX","setX","getY","setY","isSelected","_selection","_getSelection","setSelected","selected","_changeSelection","Size","hasHeight","size1","size2","LinkedSize","_width","_height","getWidth","setWidth","getHeight","setHeight","arg2","arg3","from","to","frm","next","rt","getPoint","_dontLink","setPoint","getSize","_fw","_fh","setSize","sx","_sx","sy","_sy","h","getLeft","setLeft","getTop","setTop","getRight","setRight","getBottom","setBottom","getCenterX","setCenterX","getCenterY","setCenterY","getCenter","setCenter","getArea","isEmpty","_containsRectangle","_containsPoint","intersects","epsilon","intersect","unite","include","expand","parts","xFirst","LinkedRectangle","internal","Matrix","ok","_a","_b","_c","_d","_tx","_ty","reset","tx","ty","_changed","getValues","_applyMatrix","mx","recursively","_setApplyMatrix","isIdentity","translate","shear","skew","toRadians","tan","a1","c1","d1","a2","b2","d2","tx2","ty2","prepend","tx1","ty1","appended","prepended","invert","det","inverted","concatenate","preConcatenate","chain","_shiftless","_orNullIfIdentity","isInvertible","isSingular","_transformCoordinates","_transformCorners","coords","_transformBounds","inverseTransform","_inverseTransform","decompose","degrees","asin","translation","getTranslation","rotation","scaling","skewing","getScaling","getRotation","applyToContext","prop","Line","arg4","asVector","_px","_py","_vx","_vy","getVector","line","isInfinite","getSide","getSignedDistance","p1x","p1y","v1x","v1y","p2x","p2y","v2x","v2y","dy","u1","u2","uMin","px","py","vx","vy","ccw","_children","_namedChildren","_activeLayer","_currentStyle","Style","_selectionItems","_selectionCount","_updateVersion","flags","view","_needsUpdate","_requested","_autoUpdate","requestUpdate","changes","_changes","changesById","_changesById","children","getCurrentStyle","setCurrentStyle","style","getIndex","getOptions","getLayers","getActiveLayer","getSymbolDefinitions","ids","getItems","class","SymbolItem","definition","_definition","getSymbols","getSelectedItems","selectionItems","selection","isInserted","_updateSelection","selectAll","setFullySelected","deselectAll","addLayer","layer","insertLayer","_remove","_setProject","setName","_insertItem","_created","NO_INSERT","insertChild","_getItems","getItem","removeOn","sets","_removeSets","mousedrag","other","draw","pixelRatio","save","param","offset","viewMatrix","matrices","updateMatrix","restore","strokeWidth","_drawSelection","_serializeFields","_canApplyMatrix","_canScaleStroke","_pivot","_visible","_blendMode","_opacity","_locked","_guide","_clipMask","_selectBounds","_selectChildren","pivot","visible","blendMode","opacity","locked","guide","clipMask","data","_countItemEvent","onFrame","_animateItem","onLoad","onError","_itemHandlers","_initialize","hasProps","_matrix","_parent","_style","parent","fields","fontSize","Group","_defaults","symbol","_symbol","cacheParent","_project","_bounds","_position","_decomposed","_globalMatrix","_clearBoundsCache","getId","getName","_removeNamed","_getOwner","namedChildren","getStyle","setStyle","getSelection","setSelection","flag","isFullySelected","isClipMask","setClipMask","setFillColor","setStrokeColor","getData","setData","getPosition","position","_getPositionFromBounds","setPosition","getPivot","setPivot","getStrokeBounds","stroke","getHandleBounds","handle","getInternalBounds","hasMatrix","opts","_boundsOptions","getStrokeScaling","cacheItem","_getCachedBounds","setBounds","_backup","_getBounds","_updateBoundsCache","_getBoundsCacheKey","noInternal","cacheKey","cached","nonscaling","hasStroke","_getStrokeMatrix","_item","getViewMatrix","_boundsCache","cache","_decompose","decomposed","setRotation","setScaling","getMatrix","setMatrix","getGlobalMatrix","_dontClone","parents","getApplyMatrix","setApplyMatrix","getTransformContent","setTransformContent","getProject","installEvents","getLayer","getParent","setParent","addChild","getChildren","setChildren","removeChildren","addChildren","getFirstChild","getLastChild","getNextSibling","getPreviousSibling","setIndex","insertChildren","_equals","copy","deep","copyAttributes","copyContent","insertAbove","orig","excludeMatrix","rasterize","resolution","raster","Raster","getResolution","topLeft","getTopLeft","floor","boundsSize","bottomRight","getBottomRight","ceil","rasterSize","_contains","_asPathItem","Path","getIntersections","hitTest","_hitTest","HitResult","hitTestAll","all","hitTestChildren","_exclude","child","_hitTestChildren","parentViewMatrix","guides","tolerancePadding","_tolerancePadding","_getStrokePadding","checkSelf","hit","checkPoint","pt","checkPosition","checkCenter","checkBounds","points","_hitTestSelf","fill","hasFill","matches","compare","matchObject","firstOnly","overlapping","inside","recursive","path","childMatrix","inserted","notifySelf","_insertAt","insertBelow","sendToBack","bringToFront","appendTop","appendBottom","moveAbove","moveBelow","addTo","copyTo","reduce","namedArray","notifyParent","_dispose","replaceWith","reverseChildren","reverse","numChildren","isEditable","hasShadow","_getOrder","getList","list1","list2","hasChildren","isAbove","isBelow","isParent","isChild","isDescendant","isAncestor","isSibling","isGroupedWith","_applyRecursively","transformMatrix","fillColor","getFillColor","strokeColor","getStrokeColor","_transformContent","decomp","applyRecursively","globalToLocal","localToGlobal","parentToLocal","localToParent","fitBounds","itemRatio","rectRatio","newBounds","_setStyles","fillStyle","toCanvasStyle","strokeStyle","lineWidth","getStrokeWidth","strokeJoin","getStrokeJoin","strokeCap","getStrokeCap","miterLimit","getMiterLimit","lineJoin","lineCap","dashArray","getDashArray","dashOffset","getDashOffset","setLineDash","lineDashOffset","mozDash","mozDashOffset","blur","getShadowBlur","getShadowOffset","shadowColor","getShadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","parentStrokeMatrix","globalMatrix","mainCtx","itemOffset","prevOffset","normalBlend","nativeBlend","direct","dontStart","clip","_canComposite","pop","strokeMatrix","clipItem","globalAlpha","globalCompositeOperation","setTransform","_draw","dontFinish","getFillRule","process","_isUpdated","updateVersion","CompoundPath","updated","itemSelected","boundsSelected","positionSelected","_drawSelected","color","getSelectedColor","half","pos","beginPath","arc","deltas","delta","moveTo","lineTo","closePath","fillRect","hash","tween","easing","duration","Tween","_handleFrame","time","running","tweenTo","tweenFrom","_clipItem","_getClipItem","isClipped","setClipped","clipped","Shape","radius","_type","_size","_radius","setType","setRadius","getType","getShape","setShape","getRadius","rad","toPath","toShape","dontPaint","untransformed","isCircle","rx","ry","cx","cy","bezierCurveTo","getCornerCenter","halfSize","dir","corner","quadrant","isOnEllipseStroke","padding","vector","hitStroke","hitFill","strokeRadius","strokePadding","outer","inner","createShape","Circle","Ellipse","ellipse","_readEllipse","crossOrigin","_smoothing","image","object","getElementById","naturalHeight","setImage","setSource","_loaded","_image","canvas","_canvas","_setImage","copyCanvas","drawImage","_crossOrigin","_clear","getElement","getLoaded","u","getPpi","getImage","Event","setTimeout","DomEvent","load","error","complete","naturalWidth","_context","setCanvas","_change","setContext","context","toDataURL","Image","getCrossOrigin","setCrossOrigin","getSmoothing","setSmoothing","smoothing","getSubCanvas","getSubRaster","getAverageColor","PathItem","_sampleContext","clearRect","sampleSize","pixels","getImageData","channels","total","alpha","Color","getPixel","setPixel","components","_convert","_alpha","imageData","createImageData","putImageData","setImageData","disabled","DomElement","setPrefixed","setDefinition","SymbolDefinition","getDefinition","getSymbol","setSymbol","dontCenter","setItem","_dontCenter","place","values","segments","handles","ends","Segment","arg5","handleIn","handleOut","SegmentPoint","_point","hasHandles","_handleIn","_handleOut","_path","curve","_curves","_closed","getHandleIn","setHandleIn","getHandleOut","setHandleOut","isSmooth","clearHandles","oldSelection","getPath","getCurve","_segments","getCurves","getLocation","CurveLocation","_segment1","getNext","smooth","_first","_last","factor","getPrevious","p0","p1","p2","k","d1_a","d1_2a","d2_a","d2_2a","N","isLast","reversed","removeSegment","segment","interpolate","handleIn1","handleIn2","handleOut2","handleOut1","change","Curve","arg6","arg7","seg1","seg2","handle1","handle2","segment1","segment2","_segment2","getPoint1","getHandle1","getHandle2","getPoint2","_length","classify","setPoint1","setPoint2","setHandle1","setHandle2","getSegment1","getSegment2","getPoints","getLine","getPart","getPartLength","divideAt","location","divideAtTime","getTimeAt","_setHandles","subdivide","setHandles","splitAt","splitAtTime","getLocationAtTime","isTime","straight","h1","h2","y0","x3","y3","x4","y4","x5","y5","x6","y6","x7","y7","x8","y8","x9","y9","getMonoCurves","io","o0","o1","o2","o3","isStraight","v0","v3","getTimeOf","p3","getNearestTime","minDist","minT","refine","dist","step","flip","isFlatEnough","flatness","ux","uy","_addBounds","minPad","maxPad","s1","s2","isLinear","third","hasLength","isHorizontal","getTangentAtTime","isVertical","getLocationAt","_isTime","getParameterAt","getTimesWithTangent","tangent","getOffsetAtTime","getLocationOf","getOffsetOf","loc","getOffset","getParameterOf","getNearestLocation","getNearestPoint","methods","_evaluateMethods","getLengthIntegrand","ax","bx","ay","by","getIterations","normalized","len","d3","serpentine","t1","t2","hasRoots","t1Ok","t2Ok","f1","f2","ds","forward","rangeLength","diff","guess","getTangent","getWeightedTangent","getNormal","getWeightedNormal","getCurvature","getPeaks","addLocation","locations","overlap","excludeStart","excludeEnd","loc1","loc2","_intersection","clipConvexHull","hullTop","hullBottom","dMin","dMax","clipConvexHullPart","threshold","qx","qy","getCurveLineIntersections","getCurveIntersections","overlaps","getOverlaps","straight1","straight2","before","addCurveIntersections","recursion","calls","tMin","tMax","uMax","tMinClip","tMaxClip","q0x","q0y","q3x","q3y","dp0","dp1","dp2","dp3","hull","getConvexHull","dq0","dq1","dq2","dq3","dist1","dist2","distRatio","tMinNew","tMaxNew","uDiff","getSelfIntersection","info","getSquaredLineLength","straightBoth","l1","l2","pairs","matrix1","matrix2","_returnFirst","length1","length2","values1","values2","boundsCollisions","index1","curve1","collisions1","index2","curve2","den","times","t0","_overlap","_distance","_setCurve","_time","getPointAtTime","_next","_previous","_setPath","_version","_curve","_segment","_setSegment","getSegment","getTime","trySegment","_offset","_curveOffset","getParameter","getCurveOffset","getIntersection","getLastSegment","_ignoreOther","isTouching","inter","isCrossing","t1Inside","t2Inside","c4","c3","offsets","addOffsets","isInRange","getPointAt","v4","a3","a4","hasOverlap","merge","search","found","path1","path2","expanded","pathData","compound","first","isClockwise","setClockwise","clockwise","setPathData","previous","control","relative","getCoord","command","lower","move","cubicCurveTo","quadraticCurveTo","arcTo","winding","_getWinding","onPath","windingL","windingR","getCrossings","minLoc","isPath","itemsFrom","itemsTo","setClosed","paths1","paths2","matched","boundsOverlaps","pathBoundsOverlaps","closed","setSegments","_segmentSelection","_area","getSegments","fullySelected","last","_add","getFirstSegment","_countCurves","getFirstCurve","getLastCurve","isClosed","getPathData","_precision","curX","curY","prevX","prevY","inX","inY","outX","outY","addSegment","skipLine","segs","_adjustCurves","insertSegment","addSegments","insertSegments","removeSegments","_includeCurves","area","_selectSegments","newSelection","last1","last2","first2","first1","simplify","flatten","flattener","PathFlattener","PathFitter","fit","_default","loop","asymmetric","paddingLeft","paddingRight","knots","n_1","rf","hx","hy","seg3","topCenter","seg4","isArc","pt1","pt2","shape","pos2","end2","pos1","end1","start2","cap","numSegments","hitCurves","isCloseEnough","checkSegmentPoint","seg","anchor","checkSegmentPoints","addToArea","checkSegmentStroke","isJoin","_addBevelJoin","_addSquareCap","getOffsetsWithTangent","curveStart","curveTimes","drawSegments","drawSegment","dashLength","drawPart","drawHandles","pX","pY","miniSize","miniHalf","drawHandle","hX","hY","getCurrentSegment","moveBy","curveTo","through","extent","middle","large","rxSq","rySq","xSq","ySq","throughSide","centerSide","ext","inc","z","out","_in","lineBy","curveBy","parameter","cubicCurveBy","quadraticCurveBy","arcBy","prevCoords","processSegment","joinBounds","addPoint","addRound","addJoin","addCap","phi","isArea","normal1","getNormalAtTime","normal2","normal","joinPadding","joinRadius","SQRT2","paddingX","paddingY","xn","xx","yn","yx","ellipseSegments","createPath","createEllipse","bl","getBottomLeft","tl","tr","getTopRight","br","RoundRectangle","Oval","Arc","RegularPolygon","sides","three","Star","radius1","radius2","paths","getCurrentPath","check","operators","getPaths","preparePath","resolve","resolveCrossings","reorient","createResult","result","filterIntersection","traceBoolean","operation","trace","splitBoolean","_path1","_path2","operator","crossings","divideLocations","collectPaths","_overlapsOnly","curvesValues","curveCollisions","curveCollisionsMap","map","propagateWinding","_winding","tracePaths","reorientPaths","added","addPath","linkIntersections","clearCurveHandles","lookup","container","sorted","entry1","containerWinding","getInteriorPoint","entry2","clearLater","renormalizeLocs","prevCurve","prevTime","results","clearCurves","clearLookup","origTime","newCurve","getWinding","dontFlip","vPrev","vClose","curvesList","ia","pv","pa","po","paL","paR","pathWindingL","pathWindingR","onAnyPath","quality","handleCurve","a0","monoCurves","addWinding","windingPrev","a3Prev","totalLength","curveLength","operand","SQRT1_2","wind","pathWinding","otherPath","starts","isValid","_visited","isStart","visitPath","inter1","inter2","over1","over2","branch","visited","valid","finished","branches","getCrossingSegments","collectStarts","collect","nextInter","shift","hasOverlaps","hasCrossings","intersections","nonZero","intercepts","mv","mo0","mo3","maxRecursion","ignoreStraight","minSpan","addCurve","computeParts","halves","tMid","_get","fitCubic","tan1","tan2","uPrime","chordLengthParameterize","maxError","parametersInOrder","generateBezier","findMaxError","reparameterize","tanCenter","C","X","b0","b3","alpha1","alpha2","detC0C1","detC0X","detXC1","c0","segLength","eps","degree","maxDist","P","TextItem","content","_content","_lines","setContent","getContent","getCharacterStyle","setCharacterStyle","getParagraphStyle","setParagraphStyle","PointText","lines","leading","getLeading","font","getFontStyle","textAlign","getJustification","fillText","strokeText","numLines","justification","getTextWidth","colorCtx","gray","rgb","hsb","hsl","gradient","componentParsers","namedColors","transparent","hsbIndices","converters","g","achromatic","t3s","t3","properties","parser","_components","Gradient","_removeOwner","_addOwner","_properties","argType","converted","fromCSS","string","parseInt","trim","isHSL","component","turn","grad","willReadFrequently","parsers","stops","radial","getComponents","_canvasStyle","converter","convert","getAlpha","setAlpha","hasAlpha","col","isGradient","toCSS","hex","canvasGradient","_stops","origin","destination","highlight","inverse","_radial","createRadialGradient","createLinearGradient","addColorStop","_color","_types","_setOwner","components1","components2","setStops","setRadial","_owners","getStops","GradientStop","getRadial","stops1","stops2","rampPoint","setColor","setOffset","getRampPoint","setRampPoint","getColor","itemDefaults","fillRule","strokeScaling","shadowOffset","selectedColor","groupDefaults","fontFamily","fontWeight","textDefaults","_values","isColor","isPoint","applyToChildren","old","_dontMerge","childValue","Font","WindingRule","isStyle","style1","style2","secondary","defaults2","value1","value2","getFontSize","getFontWeight","getFontFamily","getFont","setFont","getPixelSize","handlePrefix","prefixes","suffix","prefix","getStyles","doc","nodeType","ownerDocument","defaultView","getComputedStyle","viewport","body","html","documentElement","getBoundingClientRect","clientLeft","clientTop","pageXOffset","scrollLeft","pageYOffset","scrollTop","getViewportBounds","innerWidth","clientWidth","innerHeight","clientHeight","isInvisible","isInView","getPrefixed","passive","addEventListener","removeEventListener","targetTouches","changedTouches","pageX","clientX","pageY","clientY","getTarget","srcElement","getRelatedTarget","relatedTarget","toElement","requestAnimationFrame","timer","nativeRequest","requested","callbacks","handleCallbacks","functions","callback","setInterval","getCanvasSize","setAttribute","_viewEvents","none","userDrag","userSelect","touchCallout","contentZooming","tapHighlightColor","_windowEvents","resize","setViewSize","Stats","_stats","stats","domElement","appendChild","_element","_pixelRatio","devicePixelRatio","_setElementSize","_viewSize","_views","_viewsById","_focused","_frameItems","_frameItemCount","_itemEvents","native","virtual","node","_animate","play","pause","_count","getAutoUpdate","setAutoUpdate","autoUpdate","update","now","Date","animate","_handleFrameItems","getPixelRatio","getViewSize","isVisible","parentNode","temp","createElement","removeChild","getZoom","setZoom","zoom","scrollBy","projectToView","viewToProject","getEventPoint","CanvasView","prevFocus","tempFocus","mousedown","mousemove","mouseup","dragging","mouseDown","pointerEnabled","msPointerEnabled","viewEvents","docEvents","mouseout","nodeName","handleMouseMove","scroll","_handleMouseEvent","downPoint","lastPoint","downItem","overItem","dragItem","clickItem","clickTime","dblClick","called","prevented","fallbacks","doubleclick","wasInView","itemEventsMap","click","mouseenter","mouseleave","itemEvents","hitItems","nativeMove","tool","inView","hitItem","mouse","substr","emitMouseEvent","drag","emitMouseEvents","down","up","cancelable","preventDefault","_handleKeyEvent","character","keyEvent","KeyEvent","sign","_resetState","prevPoint","stopItem","mouseEvent","stopped","MouseEvent","fallback","HTMLCanvasElement","deviceRatio","backingStoreRatio","firefox","prevFont","measureText","stopPropagation","getTimeStamp","timeStamp","getModifiers","Key","modifiers","metaFixMap","downKey","keyLookup","charLookup","keyMap","charMap","alt","meta","capsLock","space","option","mac","getKey","keyIdentifier","String","fromCharCode","keyCode","keydown","altKey","metaKey","ctrlKey","keypress","charCode","keyup","isDown","ToolEvent","_choosePoint","toolPoint","getLastPoint","_lastPoint","setLastPoint","getDownPoint","_downPoint","setDownPoint","getMiddlePoint","_middlePoint","setMiddlePoint","middlePoint","getDelta","_delta","setDelta","getCount","setCount","Tool","_moveCount","_downCount","getMinDistance","_minDistance","setMinDistance","minDistance","_maxDistance","getMaxDistance","setMaxDistance","maxDistance","getFixedDistance","setFixedDistance","distance","easings","linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","isFunction","_then","_startTime","state","_keys","_parsedKeys","_parseKeys","_from","_getState","_to","then","progress","getValue","__add","__subtract","__multiply","_setProperty","onUpdate","startTime","_getProperty","resolved","_resolveValue","_calculate","parsed","calculateBinary","Http","request","xhr","XMLHttpRequest","open","method","url","async","mimeType","overrideMimeType","onload","status","responseText","onerror","message","send","canvases","sr","sg","sb","sa","bg","bb","ba","dr","dg","db","getLum","setLum","mn","lmn","ln","mxl","getSat","setSat","md","modes","screen","overlay","darken","lighten","difference","exclusion","hue","saturation","luminosity","average","negation","mode","srcContext","dstContext","srcCanvas","dstData","SvgElement","svg","xmlns","xlink","attributeNamespace","href","attributes","namespace","setAttributeNS","tag","createElementNS","getAttributeNS","SvgStyles","true","false","property","attribute","toSVG","fromSVG","exportFilter","getTransform","coordinates","attrs","trans","exportGroup","childNode","exportSVG","exportShape","exporters","embedImages","matchShapes","definitionItem","viewBox","overflow","textContent","svgs","__id","typeId","exportDefinitions","defs","insertBefore","firstChild","XMLSerializer","serializeToString","exporter","onExport","reduceAttributes","exportGradient","gradientNode","getGradient","getOrigin","getDestination","getHighlight","fy","gradientUnits","stopColor","visibility","setOptions","rootSize","allowNull","allowPercent","defaultValue","defaultX","defaultY","convertValue","importGroup","nodes","childNodes","isClip","isDefs","currentStyle","applyAttributes","querySelectorAll","importNode","importPoly","importGradient","scaleToBounds","_scaleToBounds","importers","clippath","polygon","polyline","lineargradient","radialgradient","use","circle","text","switch","applyTransform","transforms","applyOpacity","gradientTransform","setVisible","display","percent","styles","group","tagName","isElement","nextSibling","importer","onImport","expandShapes","importSVG","DOMParser","parseFromString","File","reader","FileReader","readAsText","mod","acorn","inpt","inputLen","input","initTokenState","parseTopLevel","program","lastStart","lastEnd","tokPos","lastEndLoc","line_loc_t","inFunction","strict","labels","readToken","startNode","tokType","_eof","stmt","parseStatement","isUseStrict","setStrict","finishNode","sourceFile","tokStart","tokEnd","tokStartLoc","tokEndLoc","tokVal","tokRegexpAllowed","tokCurLine","tokLineStart","containsEsc","defaultOptions","ecmaVersion","strictSemicolons","allowTrailingCommas","forbidReserved","allowReturnOutsideFunction","onComment","ranges","directSourceFile","opt","getLineInfo","cur","lineBreak","lastIndex","column","raise","SyntaxError","raisedAt","tokenize","getToken","forceRegexp","startLoc","endLoc","jumpTo","reAllowed","skipSpace","empty","_num","_regexp","_string","_break","keyword","_case","beforeExpr","_catch","_continue","_debugger","_do","isLoop","_else","_finally","_for","_function","_if","_return","_switch","_throw","_try","_var","_while","_with","_new","_this","_null","atomValue","_true","_false","binop","keywordTypes","_bracketL","_bracketR","_braceL","_braceR","_parenL","_parenR","_comma","_semi","_colon","_dot","_question","_slash","_eq","isAssign","_assign","_incDec","postfix","isUpdate","_prefix","_logicalOR","_logicalAND","_bitwiseOR","_bitwiseXOR","_bitwiseAND","_equality","_relational","_bitShift","_plusMin","_multiplyModulo","kw","tokTypes","bracketL","bracketR","braceL","braceR","parenL","parenR","comma","semi","colon","question","slash","eq","eof","num","regexp","makePredicate","words","cats","compareTo","arr","cat","Function","isReservedWord3","isReservedWord5","isStrictReservedWord","isStrictBadIdWord","isKeyword","nonASCIIwhitespace","nonASCIIidentifierStartChars","nonASCIIidentifierStart","RegExp","nonASCIIidentifier","newline","isIdentifierStart","isIdentifierChar","finishToken","skipLineComment","ch","charCodeAt","skipBlockComment","readRegexp","readWord","tok","getTokenFromCode","readNumber","readInt","readString","quote","octal","readHexChar","finishOp","escaped","inClass","charAt","mods","readWord1","radix","startsWithDot","isFloat","word","esc","escStr","strct","lastIndexOf","node_t","node_loc_t","range","startNodeFrom","expression","eat","canInsertSemicolon","semicolon","unexpected","expect","checkLVal","expr","loopLabel","kind","switchLabel","sawDefault","starttype","isBreak","label","parseIdent","lab","parseParenExpression","parseFor","parseVar","declarations","parseForIn","parseExpression","parseFunction","consequent","alternate","argument","discriminant","cases","isCase","block","parseBlock","clause","guard","guardedHandlers","finalizer","maybeName","allowStrict","oldStrict","noIn","decl","noComma","parseMaybeAssign","expressions","parseMaybeConditional","parseExprOp","minPrec","prec","parseMaybeUnary","parseSubscripts","parseExprAtom","noCalls","computed","callee","parseExprList","raw","tokStartLoc1","tokStart1","elements","parseObj","sawGetSet","parsePropertyName","isGetSet","conflict","isStatement","params","oldInFunc","oldLabels","close","allowTrailingComma","allowEmpty","elts","liberal","binaryOperators","unaryOperators","__self","__$__","$__","compile","insertions","insertion","getCode","replaceCode","sourceMaps","paperFeatures","offsetCode","lineBreaks","getElementsByTagName","innerHTML","mappings","encodeVLQ","base64","safari","file","names","sourceRoot","sources","sourcesContent","operatorOverloading","moduleExports","walkAST","handleOverloading","between","parentType","exp","handleExports","declaration","specifiers","dec","specifier","preserveParens","sourceType","btoa","unescape","encodeURIComponent","toolHandlers","expose","compiled","script","head","createTextNode","__paperscript__","onResize","setOnResize","setOnFrame","loadScript","canvasId","scopeAttribute","baseURI","loadAll","readyState","calculateUnary","Symbol","PlacedSymbol","amd","$f0e98b2c23d58ac9$export$56b48cc5d7560ffb","$f0e98b2c23d58ac9$export$332f4d7bee38db93","$f0e98b2c23d58ac9$export$f435f793048e7a0f","$f0e98b2c23d58ac9$export$d53f8326294b31d8","$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8","$f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6","$f0e98b2c23d58ac9$export$866e20207bbc41f2","$f0e98b2c23d58ac9$export$2c19a3e3b4008fff","$f0e98b2c23d58ac9$export$268622f0f1cbc82b","$f0e98b2c23d58ac9$export$13807d9ee5a34a42","$f0e98b2c23d58ac9$export$7387db7caf96fcdb","$f0e98b2c23d58ac9$export$7af82191547c5ff7","$f0e98b2c23d58ac9$export$ba43bf67f3d48107","$f0e98b2c23d58ac9$export$7acfa6ed01010e37","$f0e98b2c23d58ac9$export$68e7b4c4d99215d9","$f0e98b2c23d58ac9$export$2b5f701edfbd6f00","$f0e98b2c23d58ac9$export$85c928794f8d04d4","$f0e98b2c23d58ac9$export$50792b0e93539fde","$f0e98b2c23d58ac9$export$83d89fbfd8236492","$f0e98b2c23d58ac9$export$98e6a39c04603d36","$f0e98b2c23d58ac9$export$61f24eb03dd7ce92","$f0e98b2c23d58ac9$export$5f8c09e3ae6f64e1","$f0e98b2c23d58ac9$var$astralIdentifierCodes","$f0e98b2c23d58ac9$var$astralIdentifierStartCodes","$f0e98b2c23d58ac9$var$nonASCIIidentifierStartChars","$f0e98b2c23d58ac9$var$reservedWords","strictBind","$f0e98b2c23d58ac9$var$ecma5AndLessKeywords","$f0e98b2c23d58ac9$var$keywords$1","$f0e98b2c23d58ac9$var$keywordRelationalOperator","$f0e98b2c23d58ac9$var$nonASCIIidentifierStart","$f0e98b2c23d58ac9$var$nonASCIIidentifier","$f0e98b2c23d58ac9$var$isInAstralSet","astral","conf","startsExpr","updateContext","$f0e98b2c23d58ac9$var$binop","$f0e98b2c23d58ac9$var$beforeExpr","$f0e98b2c23d58ac9$var$startsExpr","$f0e98b2c23d58ac9$var$kw","privateId","questionDot","arrow","template","invalidTemplate","ellipsis","backQuote","dollarBraceL","incDec","logicalOR","logicalAND","bitwiseOR","bitwiseXOR","bitwiseAND","equality","relational","bitShift","plusMin","star","starstar","coalesce","_const","_super","_extends","_export","_import","_instanceof","_typeof","_void","_delete","$f0e98b2c23d58ac9$var$nextLineBreak","$f0e98b2c23d58ac9$var$skipWhiteSpace","$f0e98b2c23d58ac9$var$ref","$f0e98b2c23d58ac9$var$hasOwnProperty","$f0e98b2c23d58ac9$var$toString","$f0e98b2c23d58ac9$var$hasOwn","hasOwn","propName","$f0e98b2c23d58ac9$var$isArray","$f0e98b2c23d58ac9$var$regexpCache","$f0e98b2c23d58ac9$var$wordsRegexp","$f0e98b2c23d58ac9$var$codePointToString","$f0e98b2c23d58ac9$var$loneSurrogate","nextBreak","onInsertedSemicolon","onTrailingComma","allowReserved","allowImportExportEverywhere","allowAwaitOutsideFunction","allowSuperOutsideMethod","allowHashBang","checkPrivateFields","onToken","$f0e98b2c23d58ac9$var$warnedAboutEcmaVersion","$f0e98b2c23d58ac9$var$functionFlags","generator","$f0e98b2c23d58ac9$var$SCOPE_FUNCTION","startPos","$f0e98b2c23d58ac9$var$getOptions","console","warn","tokens","token","comment","keywords","reserved","reservedWords","reservedStrict","reservedWordsStrict","reservedWordsStrictBind","lineStart","curLine","curPosition","lastTokEndLoc","lastTokStartLoc","lastTokStart","lastTokEnd","initialContext","exprAllowed","inModule","strictDirective","potentialArrowAt","potentialArrowInForAwait","yieldPos","awaitPos","awaitIdentPos","undefinedExports","scopeStack","enterScope","regexpState","privateNameStack","$f0e98b2c23d58ac9$var$prototypeAccessors","inGenerator","inAsync","canAwait","allowSuper","allowDirectSuper","treatFunctionsAsVar","allowNewDotTarget","inClassStaticBlock","nextToken","currentVarScope","inClassFieldInit","currentThisScope","treatFunctionsAsVarInScope","currentScope","plugins","cls","parseExpressionAt","tokenizer","defineProperties","$f0e98b2c23d58ac9$var$pp$9","$f0e98b2c23d58ac9$var$literal","spaceAfter","isContextual","eatContextual","expectContextual","insertSemicolon","afterTrailingComma","notNext","$f0e98b2c23d58ac9$var$DestructuringErrors","shorthandAssign","trailingComma","parenthesizedAssign","parenthesizedBind","doubleProto","checkPatternErrors","refDestructuringErrors","raiseRecoverable","parens","checkExpressionErrors","andThrow","checkYieldAwaitInDefaultParams","isSimpleAssignTarget","$f0e98b2c23d58ac9$var$pp$8","adaptDirectivePrologue","$f0e98b2c23d58ac9$var$loopLabel","$f0e98b2c23d58ac9$var$switchLabel","isLet","skip","nextCh","ident","isAsyncFunction","after","topLevel","parseBreakContinueStatement","parseDebuggerStatement","parseDoStatement","parseForStatement","parseFunctionStatement","parseClass","parseIfStatement","parseReturnStatement","parseSwitchStatement","parseThrowStatement","parseTryStatement","parseVarStatement","parseWhileStatement","parseWithStatement","parseEmptyStatement","parseExpressionStatement","parseImport","parseExport","parseLabeledStatement","awaitAt","init$1","await","startsWithLet","isForOf","initPos","parseExprSubscripts","toAssignable","checkLValPattern","isAsync","declarationPosition","$f0e98b2c23d58ac9$var$FUNC_STATEMENT","$f0e98b2c23d58ac9$var$FUNC_HANGING_STATEMENT","exitScope","$f0e98b2c23d58ac9$var$empty$1","parseCatchClauseParam","parseBindingAtom","simple","allowMissingInitializer","i$1","label$1","statementStart","createNewLexicalScope","exitStrict","isForIn","isFor","parseVarId","$f0e98b2c23d58ac9$var$checkKeyName","statement","allowExpressionBody","forInit","initFunction","checkLValSimple","oldYieldPos","oldAwaitPos","oldAwaitIdentPos","parseFunctionParams","parseFunctionBody","parseBindingList","parseClassId","parseClassSuper","privateNameMap","enterClassBody","classBody","hadConstructor","parseClassElement","superClass","$f0e98b2c23d58ac9$var$isPrivateNameConflicted","curr","static","exitClassBody","constructorAllowsSuper","keyName","isGenerator","isStatic","parseClassStaticBlock","isClassElementNameStart","lastValue","startNodeAt","parseClassElementName","isConstructor","parseClassMethod","parseClassField","parsePrivateIdent","allowsDirectSuper","parseMethod","$f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK","declared","used","parseExportAllDeclaration","exported","parseModuleExportName","checkExport","parseExportDefaultDeclaration","shouldParseExportStatement","parseExportDeclaration","checkVariableExport","parseExportSpecifiers","spec","checkUnreserved","local","checkLocalExport","fNode","cNode","checkPatternExport","pat","list$1","elt","decls","parseExportSpecifier","parseImportSpecifiers","parseImportSpecifier","imported","parseImportDefaultSpecifier","parseImportNamespaceSpecifier","stringLiteral","parseLiteral","statements","isDirectiveCandidate","directive","$f0e98b2c23d58ac9$var$pp$7","isBinding","toAssignableList","exprList","parseSpread","parseRestBinding","allowModifiers","rest","parseBindingListItem","parseAssignableListItem","elem","parseMaybeDefault","bindingType","checkClashes","isBind","declareName","checkLValInnerPattern","isExpr","preserveSpace","override","b_stat","b_expr","b_tmpl","p_stat","p_expr","q_tmpl","tryReadTemplateToken","f_stat","f_expr","f_expr_gen","f_gen","$f0e98b2c23d58ac9$var$pp$6","curContext","braceIsBlock","prevType","inGeneratorContext","overrideContext","tokenCtx","statementParens","allowed","$f0e98b2c23d58ac9$var$pp$5","checkPropClash","propHash","shorthand","afterLeftParse","parseYield","ownDestructuringErrors","oldParenAssign","oldTrailingComma","oldDoubleProto","parseExprOps","leftStartPos","leftStartLoc","logical","buildBinary","sawUnary","parseAwait","$f0e98b2c23d58ac9$var$isLocalVariableAccess","$f0e98b2c23d58ac9$var$isPrivateFieldAccess","node$1","maybeAsyncArrow","optionalChained","parseSubscript","optional","chainNode","shouldParseAsyncArrow","parseSubscriptAsyncArrow","parseArrowExpression","optionalSupported","node$2","quasi","parseTemplate","isTagged","forNew","canBeArrow","regex","pattern","parseParenAndDistinguishExpression","parseNew","parseExprImport","parseExprAtomDefault","parseDynamicImport","parseImportMeta","errorPos","bigint","shouldParseArrow","spreadStart","innerStartPos","innerStartLoc","lastIsComma","parseParenItem","innerEndPos","innerEndLoc","parseParenArrowList","finishNodeAt","par","$f0e98b2c23d58ac9$var$empty","parseTemplateElement","cooked","tail","curElt","quasis","isAsyncProp","isPattern","parseProperty","parsePropertyValue","parseGetterSetter","paramCount","copyNode","isArrowFunction","isMethod","isExpression","useStrict","checkParams","nonSimple","isSimpleParamList","allowDuplicates","nameHash","re","parseIdentNode","delegate","$f0e98b2c23d58ac9$var$pp$4","$f0e98b2c23d58ac9$var$pp$3","$f0e98b2c23d58ac9$var$Scope","var","lexical","redeclared","scope$1","scope$2","scope$3","$f0e98b2c23d58ac9$var$SCOPE_TOP","$f0e98b2c23d58ac9$var$pp$2","$f0e98b2c23d58ac9$var$finishNodeAt","newNode","$f0e98b2c23d58ac9$var$ecma9BinaryProperties","$f0e98b2c23d58ac9$var$ecma10BinaryProperties","$f0e98b2c23d58ac9$var$ecma12BinaryProperties","$f0e98b2c23d58ac9$var$ecma11BinaryProperties","$f0e98b2c23d58ac9$var$unicodeBinaryProperties","$f0e98b2c23d58ac9$var$unicodeBinaryPropertiesOfStrings","$f0e98b2c23d58ac9$var$unicodeGeneralCategoryValues","$f0e98b2c23d58ac9$var$ecma9ScriptValues","$f0e98b2c23d58ac9$var$ecma10ScriptValues","$f0e98b2c23d58ac9$var$ecma11ScriptValues","$f0e98b2c23d58ac9$var$ecma12ScriptValues","$f0e98b2c23d58ac9$var$ecma13ScriptValues","$f0e98b2c23d58ac9$var$unicodeScriptValues","$f0e98b2c23d58ac9$var$data","$f0e98b2c23d58ac9$var$i","$f0e98b2c23d58ac9$var$list","$f0e98b2c23d58ac9$var$buildUnicodeData","binary","binaryOfStrings","nonBinary","General_Category","Script","Script_Extensions","gc","sc","scx","$f0e98b2c23d58ac9$var$pp$1","$f0e98b2c23d58ac9$var$BranchID","separatedFrom","sibling","$f0e98b2c23d58ac9$var$RegExpValidationState","validFlags","unicodeProperties","switchU","switchV","switchN","lastIntValue","lastStringValue","lastAssertionIsQuantifiable","numCapturingParens","maxBackReference","groupNames","backReferenceNames","branchID","$f0e98b2c23d58ac9$var$isSyntaxCharacter","$f0e98b2c23d58ac9$var$isControlLetter","$f0e98b2c23d58ac9$var$isUnicodePropertyNameCharacter","$f0e98b2c23d58ac9$var$isDecimalDigit","$f0e98b2c23d58ac9$var$isHexDigit","$f0e98b2c23d58ac9$var$hexToInt","$f0e98b2c23d58ac9$var$isOctalDigit","unicodeSets","unicode","at","forceU","nextIndex","lookahead","advance","eatChars","chs","validateRegExpFlags","validateRegExpPattern","regexp_pattern","$f0e98b2c23d58ac9$var$hasProp","_","regexp_disjunction","trackDisjunction","regexp_alternative","regexp_eatQuantifier","regexp_eatTerm","regexp_eatAssertion","regexp_eatAtom","regexp_eatExtendedAtom","lookbehind","noError","regexp_eatQuantifierPrefix","regexp_eatBracedQuantifier","regexp_eatDecimalDigits","regexp_eatPatternCharacters","regexp_eatReverseSolidusAtomEscape","regexp_eatCharacterClass","regexp_eatUncapturingGroup","regexp_eatCapturingGroup","regexp_eatAtomEscape","regexp_groupSpecifier","regexp_eatInvalidBracedQuantifier","regexp_eatExtendedPatternCharacter","regexp_eatSyntaxCharacter","regexp_eatGroupName","known","altID","regexp_eatRegExpIdentifierName","regexp_eatRegExpIdentifierStart","regexp_eatRegExpIdentifierPart","regexp_eatRegExpUnicodeEscapeSequence","regexp_eatBackReference","regexp_eatCharacterClassEscape","regexp_eatCharacterEscape","regexp_eatKGroupName","regexp_eatDecimalEscape","regexp_eatControlEscape","regexp_eatCControlLetter","regexp_eatZero","regexp_eatHexEscapeSequence","regexp_eatLegacyOctalEscapeSequence","regexp_eatIdentityEscape","regexp_eatControlLetter","regexp_eatFixedHexDigits","lead","leadSurrogateEnd","trail","regexp_eatHexDigits","regexp_eatUnicodePropertyValueExpression","regexp_eatUnicodePropertyName","regexp_eatUnicodePropertyValue","regexp_validateUnicodePropertyNameAndValue","regexp_eatLoneUnicodePropertyNameOrValue","nameOrValue","regexp_validateUnicodePropertyNameOrValue","regexp_classContents","regexp_classSetExpression","regexp_nonEmptyClassRanges","regexp_eatClassAtom","regexp_eatClassEscape","ch$1","regexp_eatClassControlLetter","subResult","regexp_eatClassSetRange","regexp_eatClassSetOperand","regexp_eatClassSetCharacter","regexp_eatClassStringDisjunction","regexp_eatNestedClass","result$1","regexp_classStringDisjunctionContents","regexp_classString","regexp_eatClassSetReservedPunctuator","regexp_eatOctalDigit","n1","n2","$f0e98b2c23d58ac9$var$pp","$f0e98b2c23d58ac9$var$stringToBigInt","BigInt","ignoreEscapeSequenceInKeyword","iterator","this$1$1","done","fullCharCodeAtPos","startSkip","readToken_dot","next2","readToken_slash","readToken_mult_modulo_exp","tokentype","readToken_pipe_amp","readToken_caret","readToken_plus_min","readToken_lt_gt","readToken_eq_excl","readToken_question","next2$1","readToken_numberSign","readRadixNumber","flagsStart","maybeLegacyOctalNumericLiteral","allowSeparators","isLegacyOctalNumericLiteral","lastCode","val$1","readCodePoint","codePos","invalidStringToken","chunkStart","readEscapedChar","$f0e98b2c23d58ac9$var$INVALID_TEMPLATE_ESCAPE_ERROR","inTemplateElement","readTmplToken","readInvalidTemplateToken","inTemplate","octalStr","escStart","Parser","Position","SourceLocation","Node","TokenType","TokContext","tokContexts","Token","isNewLine","lineBreakG","$83a7a00c3abde207$export$2e2bcd8739ae039","layout","tiles","$83a7a00c3abde207$var$layout","solution","$5f77a1132959636d$var$container","$5f77a1132959636d$var$dialog","$5f77a1132959636d$var$help","showModal","scrollIntoView","$2bfca13ad910c056$export$2e2bcd8739ae039","selfOptions","pipes","pipe","pipeArg","processor","lastPipe","nextPipe","nextAfterChildren","hasResult","$4b3a4f9971dfd11f$export$2e2bcd8739ae039","filters","debug","filterName","exiting","resultCheck","msg","shouldHaveResult","should","noResult","$e9b2e8bb279f614c$export$2e2bcd8739ae039","setResult","exit","childName","root","$3383b9bfdfb3a92e$export$2e2bcd8739ae039","$3383b9bfdfb3a92e$var$cloneRegExp","regexMatch","cloned","$ea655194af34c016$export$2e2bcd8739ae039","cloneDiffValues","$fcf8dd03cdbf4430$export$2e2bcd8739ae039","$82864bc3974cd149$export$2e2bcd8739ae039","$cb6bc7c1a2416044$export$32e2de1ca8818233","leftType","rightType","leftIsArray","rightIsArray","$cb6bc7c1a2416044$export$b17cd1eea2ef8348","nested","nonNestedDelta","regexArgs","$cb6bc7c1a2416044$export$9d101d90be8482a0","$fad0d73b9c59b660$export$3b212405c262fd6e","_t","$fad0d73b9c59b660$export$81d88d7d212bb18e","propertyFilter","$fad0d73b9c59b660$export$b17cd1eea2ef8348","nestedDelta","objectDelta","$fad0d73b9c59b660$export$575f4633982343e8","deltaWithChildren","$fad0d73b9c59b660$export$9d101d90be8482a0","$fad0d73b9c59b660$export$84a677efe7258d3b","$f03df935593440df$var$defaultMatch","array1","array2","$f03df935593440df$var$lengthMatrix","len1","len2","$f03df935593440df$var$backtrack","subsequence","sequence","indices1","indices2","valueAtMatrixAbove","$f03df935593440df$export$2e2bcd8739ae039","innerContext","$a19812cbdcd458da$var$matchItems","objectHash","matchByPosition","hashCache1","hash1","hashCache2","hash2","$a19812cbdcd458da$export$32e2de1ca8818233","matchContext","commonHead","commonTail","$a19812cbdcd458da$var$arraysHaveMatchByRef","trimmed1","trimmed2","seq","removedItems","detectMove","arrays","includeValueOnMove","removedItemsLength","indexOnArray2","isMove","removeItemIndex1","$a19812cbdcd458da$var$compare","numerically","numericallyBy","$a19812cbdcd458da$export$b17cd1eea2ef8348","toRemove","toInsert","toModify","removedOrMovedIndex","numberIndex","indexDiff","removedValue","toInsertLength","toModifyLength","modification","$a19812cbdcd458da$export$575f4633982343e8","$a19812cbdcd458da$export$9d101d90be8482a0","newName","arrayMoveDelta","arrayDelta","$a19812cbdcd458da$var$reverseArrayDeltaIndex","itemDelta","reverseIndex","deltaIndex","deltaItem","moveFromIndex","moveToIndex","$a19812cbdcd458da$export$84a677efe7258d3b","$db273bf4a2715f93$export$32e2de1ca8818233","$53af34752a83816e$var$cachedDiffPatch","$53af34752a83816e$var$getDiffMatchPatch","required","textDiff","diffMatchPatch","diff_match_patch_not_found","txt1","txt2","patch_toText","patch_make","patch","patch_apply","patch_fromText","textPatchFailed","$53af34752a83816e$export$32e2de1ca8818233","minLength","$53af34752a83816e$export$b17cd1eea2ef8348","textDiffDelta","$53af34752a83816e$var$textDeltaReverse","lineTmp","header","headerRegex","$53af34752a83816e$export$9d101d90be8482a0","$356a848867d17460$export$2e2bcd8739ae039","unpatch","$b8ea597934691048$var$zero$1","buf","$b8ea597934691048$var$extra_lbits","Uint8Array","$b8ea597934691048$var$extra_dbits","$b8ea597934691048$var$extra_blbits","$b8ea597934691048$var$bl_order","$b8ea597934691048$var$static_ltree","$b8ea597934691048$var$static_dtree","$b8ea597934691048$var$D_CODES$1","$b8ea597934691048$var$_dist_code","$b8ea597934691048$var$_length_code","$b8ea597934691048$var$MAX_MATCH$1","$b8ea597934691048$var$base_length","$b8ea597934691048$var$base_dist","$b8ea597934691048$var$StaticTreeDesc","static_tree","extra_bits","extra_base","elems","max_length","has_stree","$b8ea597934691048$var$TreeDesc","dyn_tree","stat_desc","max_code","$b8ea597934691048$var$d_code","$b8ea597934691048$var$put_short","pending_buf","pending","$b8ea597934691048$var$send_bits","bi_valid","$b8ea597934691048$var$Buf_size","bi_buf","$b8ea597934691048$var$send_code","tree","$b8ea597934691048$var$bi_reverse","$b8ea597934691048$var$bi_flush","$b8ea597934691048$var$gen_bitlen","bits","xbits","stree","extra","bl_count","heap","heap_max","opt_len","static_len","$b8ea597934691048$var$gen_codes","next_code","$b8ea597934691048$var$MAX_BITS$1","$b8ea597934691048$var$tr_static_init","$b8ea597934691048$var$LENGTH_CODES$1","$b8ea597934691048$var$L_CODES$1","$b8ea597934691048$var$LITERALS$1","$b8ea597934691048$var$init_block","dyn_ltree","dyn_dtree","bl_tree","$b8ea597934691048$var$END_BLOCK","sym_next","$b8ea597934691048$var$bi_windup","$b8ea597934691048$var$smaller","depth","_n2","_m2","$b8ea597934691048$var$pqdownheap","heap_len","$b8ea597934691048$var$compress_block","ltree","dtree","lc","sym_buf","$b8ea597934691048$var$build_tree","$b8ea597934691048$var$scan_tree","curlen","prevlen","nextlen","max_count","min_count","$b8ea597934691048$var$REP_3_6","$b8ea597934691048$var$REPZ_3_10","$b8ea597934691048$var$REPZ_11_138","$b8ea597934691048$var$send_tree","$b8ea597934691048$var$build_bl_tree","max_blindex","l_desc","d_desc","bl_desc","$b8ea597934691048$var$BL_CODES$1","$b8ea597934691048$var$send_all_trees","lcodes","dcodes","blcodes","rank","$b8ea597934691048$var$detect_data_type","block_mask","$b8ea597934691048$var$static_init_done","$b8ea597934691048$var$_tr_stored_block$1","stored_len","$b8ea597934691048$var$STORED_BLOCK","subarray","$b8ea597934691048$var$trees","_tr_init","_tr_stored_block","_tr_flush_block","opt_lenb","static_lenb","level","strm","data_type","strategy","$b8ea597934691048$var$STATIC_TREES","$b8ea597934691048$var$DYN_TREES","_tr_tally","sym_end","_tr_align","$b8ea597934691048$var$adler32_1","adler","$b8ea597934691048$var$crcTable","Uint32Array","$b8ea597934691048$var$makeTable","table","$b8ea597934691048$var$crc32_1","crc","$b8ea597934691048$var$messages","$b8ea597934691048$var$constants$2","Z_NO_FLUSH","Z_PARTIAL_FLUSH","Z_SYNC_FLUSH","Z_FULL_FLUSH","Z_FINISH","Z_BLOCK","Z_TREES","Z_OK","Z_STREAM_END","Z_NEED_DICT","Z_ERRNO","Z_STREAM_ERROR","Z_DATA_ERROR","Z_MEM_ERROR","Z_BUF_ERROR","Z_NO_COMPRESSION","Z_BEST_SPEED","Z_BEST_COMPRESSION","Z_DEFAULT_COMPRESSION","Z_FILTERED","Z_HUFFMAN_ONLY","Z_RLE","Z_FIXED","Z_DEFAULT_STRATEGY","Z_BINARY","Z_TEXT","Z_UNKNOWN","Z_DEFLATED","$b8ea597934691048$var$_tr_init","$b8ea597934691048$var$_tr_stored_block","$b8ea597934691048$var$_tr_flush_block","$b8ea597934691048$var$_tr_tally","$b8ea597934691048$var$_tr_align","$b8ea597934691048$var$Z_NO_FLUSH$2","$b8ea597934691048$var$Z_PARTIAL_FLUSH","$b8ea597934691048$var$Z_FULL_FLUSH$1","$b8ea597934691048$var$Z_FINISH$3","$b8ea597934691048$var$Z_BLOCK$1","$b8ea597934691048$var$Z_OK$3","$b8ea597934691048$var$Z_STREAM_END$3","$b8ea597934691048$var$Z_STREAM_ERROR$2","$b8ea597934691048$var$Z_DATA_ERROR$2","$b8ea597934691048$var$Z_BUF_ERROR$1","$b8ea597934691048$var$Z_DEFAULT_COMPRESSION$1","$b8ea597934691048$var$Z_FILTERED","$b8ea597934691048$var$Z_HUFFMAN_ONLY","$b8ea597934691048$var$Z_RLE","$b8ea597934691048$var$Z_FIXED","$b8ea597934691048$var$Z_DEFAULT_STRATEGY$1","$b8ea597934691048$var$Z_UNKNOWN","$b8ea597934691048$var$Z_DEFLATED$2","$b8ea597934691048$var$err","errorCode","$b8ea597934691048$var$rank","$b8ea597934691048$var$zero","$b8ea597934691048$var$slide_hash","wsize","w_size","hash_size","$b8ea597934691048$var$HASH","hash_shift","hash_mask","$b8ea597934691048$var$flush_pending","avail_out","output","pending_out","next_out","total_out","$b8ea597934691048$var$flush_block_only","block_start","strstart","$b8ea597934691048$var$put_byte","$b8ea597934691048$var$putShortMSB","$b8ea597934691048$var$read_buf","avail_in","next_in","wrap","total_in","$b8ea597934691048$var$longest_match","cur_match","chain_length","max_chain_length","scan","best_len","prev_length","nice_match","limit","$b8ea597934691048$var$MAX_MATCH","_win","wmask","w_mask","strend","scan_end1","scan_end","good_match","match_start","$b8ea597934691048$var$fill_window","more","_w_size","window_size","ins_h","$b8ea597934691048$var$deflate_stored","flush","min_block","pending_buf_size","have","high_water","$b8ea597934691048$var$deflate_fast","hash_head","bflush","match_length","max_lazy_match","$b8ea597934691048$var$MIN_MATCH","$b8ea597934691048$var$deflate_slow","max_insert","prev_match","match_available","$b8ea597934691048$var$deflate_rle","$b8ea597934691048$var$deflate_huff","$b8ea597934691048$var$Config","good_length","max_lazy","nice_length","max_chain","$b8ea597934691048$var$configuration_table","$b8ea597934691048$var$lm_init","$b8ea597934691048$var$DeflateState","gzhead","gzindex","last_flush","w_bits","hash_bits","Uint16Array","$b8ea597934691048$var$HEAP_SIZE","$b8ea597934691048$var$MAX_BITS","lit_bufsize","$b8ea597934691048$var$deflateStateCheck","$b8ea597934691048$var$deflateResetKeep","$b8ea597934691048$var$deflateReset","ret","$b8ea597934691048$var$deflate_1$2","deflateInit2","windowBits","memLevel","deflateSetHeader","deflate","old_flush","level_flags","hcrc","beg","gzhead_extra","bstate","deflateEnd","deflateSetDictionary","dictLength","tmpDict","avail","$b8ea597934691048$var$_has","$b8ea597934691048$var$common","TypeError","flattenChunks","chunks","chunk","$b8ea597934691048$var$STR_APPLY_UIA_OK","__","$b8ea597934691048$var$_utf8len","$b8ea597934691048$var$buf2binstring","$b8ea597934691048$var$strings","string2buf","TextEncoder","encode","m_pos","str_len","buf_len","buf2string","TextDecoder","decode","utf16buf","c_len","utf8border","$b8ea597934691048$var$zstream","$b8ea597934691048$var$toString$1","$b8ea597934691048$var$Z_NO_FLUSH$1","$b8ea597934691048$var$Z_SYNC_FLUSH","$b8ea597934691048$var$Z_FULL_FLUSH","$b8ea597934691048$var$Z_FINISH$2","$b8ea597934691048$var$Z_OK$2","$b8ea597934691048$var$Z_STREAM_END$2","$b8ea597934691048$var$Z_DEFAULT_COMPRESSION","$b8ea597934691048$var$Z_DEFAULT_STRATEGY","$b8ea597934691048$var$Z_DEFLATED$1","$b8ea597934691048$var$Deflate$1","chunkSize","gzip","ended","dict","_dict_set","$b8ea597934691048$var$deflate$1","deflator","flush_mode","_flush_mode","onData","onEnd","$b8ea597934691048$var$inffast","_out","dmax","whave","wnext","s_window","hold","lcode","dcode","lmask","dmask","here","from_source","lencode","distcode","lenbits","distbits","sane","$b8ea597934691048$var$lbase","$b8ea597934691048$var$lext","$b8ea597934691048$var$dbase","$b8ea597934691048$var$dext","$b8ea597934691048$var$inftrees","lens","lens_index","codes","table_index","work","incr","low","mask","here_bits","here_op","here_val","sym","drop","huff","$b8ea597934691048$var$MAXBITS","offs","$b8ea597934691048$var$Z_FINISH$1","$b8ea597934691048$var$Z_BLOCK","$b8ea597934691048$var$Z_TREES","$b8ea597934691048$var$Z_OK$1","$b8ea597934691048$var$Z_STREAM_END$1","$b8ea597934691048$var$Z_NEED_DICT$1","$b8ea597934691048$var$Z_STREAM_ERROR$1","$b8ea597934691048$var$Z_DATA_ERROR$1","$b8ea597934691048$var$Z_MEM_ERROR$1","$b8ea597934691048$var$Z_BUF_ERROR","$b8ea597934691048$var$Z_DEFLATED","$b8ea597934691048$var$zswap32","$b8ea597934691048$var$InflateState","havedict","wbits","ncode","nlen","ndist","lendyn","distdyn","back","was","$b8ea597934691048$var$inflateStateCheck","$b8ea597934691048$var$inflateResetKeep","Int32Array","$b8ea597934691048$var$inflateReset","$b8ea597934691048$var$inflateReset2","$b8ea597934691048$var$virgin","$b8ea597934691048$var$fixedtables","$b8ea597934691048$var$updatewindow","$b8ea597934691048$var$inflate_1$2","inflateReset","inflateInit2","inflate","put","last_bits","last_op","last_val","hbuf","order","inf_leave","xflags","extra_len","inflateEnd","inflateGetHeader","inflateSetDictionary","dictid","$b8ea597934691048$var$gzheader","$b8ea597934691048$var$toString","$b8ea597934691048$var$Z_NO_FLUSH","$b8ea597934691048$var$Z_FINISH","$b8ea597934691048$var$Z_OK","$b8ea597934691048$var$Z_STREAM_END","$b8ea597934691048$var$Z_NEED_DICT","$b8ea597934691048$var$Z_STREAM_ERROR","$b8ea597934691048$var$Z_DATA_ERROR","$b8ea597934691048$var$Z_MEM_ERROR","$b8ea597934691048$var$Inflate$1","$b8ea597934691048$var$inflate$1","inflator","last_avail_out","next_out_utf8","utf8str","Deflate","$b8ea597934691048$var$Deflate","$b8ea597934691048$var$deflate","deflateRaw","$b8ea597934691048$var$deflateRaw","$b8ea597934691048$var$gzip","constants","Inflate","$b8ea597934691048$var$Inflate","$b8ea597934691048$var$inflate","inflateRaw","$b8ea597934691048$var$inflateRaw","ungzip","$b8ea597934691048$var$ungzip","$137404b6d0cfde4e$export$2e2bcd8739ae039","high","$a5a92a62d3edbc43$export$2e2bcd8739ae039","_clipped","_unclipped","$5fda3950bb619556$var$classToType","$5fda3950bb619556$export$2e2bcd8739ae039","$8593640d53905edb$export$2e2bcd8739ae039","keyOrder","$a8f6222dee0f7fe8$export$2e2bcd8739ae039","$11f22f41de3332f8$export$6b5c1ceb16d01dc3","$11f22f41de3332f8$export$96ec731ed4dcb222","$11f22f41de3332f8$export$8960430cfd85939f","$11f22f41de3332f8$export$af54f71c879f5ba9","$11f22f41de3332f8$export$e734282486210baf","$11f22f41de3332f8$export$460c4029b1a54a2e","$11f22f41de3332f8$export$914076c8150813e5","$8d49620e5ef17305$export$2e2bcd8739ae039","format","autodetect","$1e45ca72491138a4$export$2e2bcd8739ae039","chk","me","_rgb","$72b0761388aa46bb$var$chroma","$45a6ec3a8d863d98$var$max","$45a6ec3a8d863d98$export$2e2bcd8739ae039","cmyk","$47021e6b4c3bfd3a$var$rnd","$47021e6b4c3bfd3a$export$2e2bcd8739ae039","hsla","$79fe535940fa9585$export$2e2bcd8739ae039","minRgb","maxRgb","Number","$9d2591a70f6b6b16$var$round","$9d2591a70f6b6b16$export$2e2bcd8739ae039","rgba","$2adb206b446487a0$var$round","$2adb206b446487a0$export$2e2bcd8739ae039","h_","$9bddb45bc0bccd65$var$RE_RGB","$9bddb45bc0bccd65$var$RE_RGBA","$9bddb45bc0bccd65$var$RE_RGB_PCT","$9bddb45bc0bccd65$var$RE_RGBA_PCT","$9bddb45bc0bccd65$var$RE_HSL","$9bddb45bc0bccd65$var$RE_HSLA","$9bddb45bc0bccd65$var$round","$9bddb45bc0bccd65$var$css2rgb","css","named","gl","$12cd6456a6ffb1f8$var$floor","$55262e9754e312ec$export$2e2bcd8739ae039","hcg","_g","$d517b99751be1459$var$RE_HEX","$d517b99751be1459$var$RE_HEXA","$d517b99751be1459$export$2e2bcd8739ae039","$f6548abb2773ef1c$var$round","$f6548abb2773ef1c$export$2e2bcd8739ae039","hxa","$a10e534a729ae917$var$cos","$c0ce3494d576afe1$var$min","$c0ce3494d576afe1$var$sqrt","$c0ce3494d576afe1$var$acos","$c0ce3494d576afe1$export$2e2bcd8739ae039","min_","hsi","$4653d27b9747cc29$var$floor","$c2959bf1250163c6$var$min","$c2959bf1250163c6$var$max","$c2959bf1250163c6$export$2e2bcd8739ae039","max_","hsv","$223c7f1ef8365fd9$export$2e2bcd8739ae039","Kn","Xn","Yn","Zn","$e7b384b2907671a3$var$pow","$e7b384b2907671a3$var$xyz_rgb","$e7b384b2907671a3$var$lab_xyz","$e7b384b2907671a3$export$2e2bcd8739ae039","$08d7ec6d342e1bc7$var$pow","$08d7ec6d342e1bc7$var$rgb_xyz","$08d7ec6d342e1bc7$var$xyz_lab","$08d7ec6d342e1bc7$var$rgb2xyz","$08d7ec6d342e1bc7$export$2e2bcd8739ae039","$cbd9526de46beb58$var$sin","$cbd9526de46beb58$var$cos","$cbd9526de46beb58$export$2e2bcd8739ae039","$7c5a1aa85039daa9$export$2e2bcd8739ae039","L","b_","$bc8d68aadb237cc2$var$sqrt","$bc8d68aadb237cc2$var$atan2","$bc8d68aadb237cc2$var$round","$bc8d68aadb237cc2$export$2e2bcd8739ae039","$f66f618f5dc21f04$export$2e2bcd8739ae039","lch","hcl","$03f5e843babda959$export$2e2bcd8739ae039","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","laserlemon","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrod","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","maroon2","maroon3","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","purple2","purple3","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","$ce16acd081b97e26$export$2e2bcd8739ae039","$69b494a3f09c924b$var$round","rnd","$e90cd7f1ec86df2d$var$log","$e90cd7f1ec86df2d$export$2e2bcd8739ae039","kelvin","$4acc84d828d1e234$var$round","$4acc84d828d1e234$export$2e2bcd8739ae039","minTemp","maxTemp","temperature","$3397c0d4a2155cca$var$pow","$3397c0d4a2155cca$var$sign","$3397c0d4a2155cca$export$2e2bcd8739ae039","$3397c0d4a2155cca$var$lrgb2rgb","cbrt","$e06192afa278a38f$var$cbrt","$e06192afa278a38f$var$pow","$e06192afa278a38f$var$sign","$e06192afa278a38f$export$2e2bcd8739ae039","lr","lg","lb","$e06192afa278a38f$var$rgb2lrgb","oklab","$25d01afc1f7835d9$export$2e2bcd8739ae039","oklch","mutate","brighten","darker","brighter","mc","channel","$b8b8ef4d4b59b632$var$pow","luminance","lum","cur_lum","max_iter","lm","$b8b8ef4d4b59b632$var$rgb2luminance","$b8b8ef4d4b59b632$var$luminance_x","$09ccb7dc564f7989$export$2e2bcd8739ae039","$cf75d20271ce89ae$export$2e2bcd8739ae039","col1","col2","mix","premultiply","saturate","desaturate","tint","shade","xyz0","xyz1","$00ac444caf989bb7$var$sqrt","$00ac444caf989bb7$var$pow","lrgb","z1","z2","$bc7dccc937be932b$export$2e2bcd8739ae039","hue0","hue1","sat0","sat1","lbv0","lbv1","sat","lbv","dh","$f2a47d2ef962b642$var$lch","$6be88a7268a83d8d$var$pow","$6be88a7268a83d8d$var$sqrt","$6be88a7268a83d8d$var$PI","$6be88a7268a83d8d$var$cos","$6be88a7268a83d8d$var$sin","$6be88a7268a83d8d$var$atan2","$6be88a7268a83d8d$var$_average_lrgb","colors","xyz","$509169bcfe79edee$var$pow","$509169bcfe79edee$export$2e2bcd8739ae039","_mode","_nacol","_spread","_domain","_pos","_padding","_classes","_colors","_min","_max","_correctLightness","_colorCache","_useCache","_gamma","setColors","brewer","resetCache","getClass","tMapLightness","tMapDomain","bypassMap","classes","analyze","limits","domain","tOut","tBreaks","every","_m","_o","spread","correctLightness","L0","L1","pol","L_actual","L_ideal","L_diff","numColors","dm","dd","$509169bcfe79edee$var$__range__","inclusive","ascending","samples","asc","gamma","nodata","$d426b500f99ee8bf$var$binom_row","row","newrow","$d426b500f99ee8bf$var$bezier","I","lab0","lab1","lab2","lab3","labs","RangeError","$e329eac878fdd72e$var$blend","$e329eac878fdd72e$var$blend_f","$e329eac878fdd72e$var$each","dodge","burn","$210cb2d7d54707e5$var$pow","$210cb2d7d54707e5$var$sin","$210cb2d7d54707e5$var$cos","$3c0befd79304fae5$var$floor","$3c0befd79304fae5$var$random","$74c8bd6e13bc69eb$var$log","$74c8bd6e13bc69eb$var$pow","$74c8bd6e13bc69eb$var$floor","$74c8bd6e13bc69eb$var$abs","$74c8bd6e13bc69eb$export$7cbcccfbecde6416","MAX_VALUE","$74c8bd6e13bc69eb$export$e331ca4ad6a82555","min_log","LOG10E","max_log","pb","pr","cluster","assignments","clusterSizes","repeat","nb_iters","centroids","best","mindist","newCentroids","kClusters","tmpKMeansBreaks","$4950f035d5f618b5$var$sqrt","$4950f035d5f618b5$var$pow","$4950f035d5f618b5$var$min","$4950f035d5f618b5$var$max","$4950f035d5f618b5$var$atan2","$4950f035d5f618b5$var$abs","$4950f035d5f618b5$var$cos","$4950f035d5f618b5$var$sin","$4950f035d5f618b5$var$exp","$4950f035d5f618b5$var$PI","$68f73cad8793307e$var$colorbrewer","OrRd","PuBu","BuPu","Oranges","BuGn","YlOrBr","YlGn","Reds","RdPu","Greens","YlGnBu","Purples","GnBu","Greys","YlOrRd","PuRd","Blues","PuBuGn","Viridis","Spectral","RdYlGn","RdBu","PiYG","PRGn","RdYlBu","BrBG","RdGy","PuOr","Set2","Accent","Set1","Set3","Dark2","Paired","Pastel2","Pastel1","cnt","ci","xyz2","bezier","blend","cubehelix","rotations","lightness","dl","fract","amp","cos_a","sin_a","$3c0befd79304fae5$var$digits","contrast","deltaE","Kl","Kc","Kh","rad2deg","deg2rad","deg","L2","avgL","avgC","C1","G","a1p","a2p","C1p","C2p","avgCp","arctan1","arctan2","h1p","h2p","avgHp","T","deltaHp","deltaCp","sl","sh","deltaTheta","Rt","deltaL","sum_sq","scales","cool","hot","$hFpCu","$c5a0b96abcd6dbcd$var$location","$c5a0b96abcd6dbcd$export$281ad3752a540efe","URLSearchParams","$c5a0b96abcd6dbcd$export$128fa18b7194ef","URL","$c5a0b96abcd6dbcd$export$1bb10639a2cd4297","$c5a0b96abcd6dbcd$export$9cb4719e2e525b7a","$c5a0b96abcd6dbcd$export$afb15ede80c42aab","binString","atob","codePointAt","$c5a0b96abcd6dbcd$export$4e633de97d65d1c8","fromCodePoint","$c5a0b96abcd6dbcd$export$9a00dee1beb8f576","$c5a0b96abcd6dbcd$export$6e5538615c060df7","findLast","xv","yv","$c5a0b96abcd6dbcd$export$e3bf03cc76d2c0a1","detail","dispatchEvent","CustomEvent","$c5a0b96abcd6dbcd$export$c23f9d3341b5fd07","pointA","pointB","maxDiff","$c5a0b96abcd6dbcd$export$3cb91a81090b9eee","span","classList","backgroundColor","title","$c5a0b96abcd6dbcd$export$6d3741128bd5bb7d","some","maxColorIndex","plus","$c5a0b96abcd6dbcd$export$79376507b09a66f","$c5a0b96abcd6dbcd$export$f6292fcace2a1886","$c5a0b96abcd6dbcd$export$78da85ac75754159","$c5a0b96abcd6dbcd$export$bd58da2e19cd17da","direction","$c5a0b96abcd6dbcd$export$c43d7a950587702b","$c5a0b96abcd6dbcd$export$35d6177dfa7903b5","toPaperJs","$c5a0b96abcd6dbcd$export$43941667eccc070","$c5a0b96abcd6dbcd$export$8793edee2d425525","base64decode","base64encode","$77e640c1aaab669f$var$console","$77e640c1aaab669f$var$consoleDebug","$77e640c1aaab669f$export$1c9f709888824e05","has","$1024ef6a63be0e18$export$2e382909194b1aab","toAxialCoordinates","$3f2d62ea7d5da3d6$export$c56d3ccff2456440","isNeighbor","neighbor","directions","toOffsetCoordinates","axial","$92f12ea2067f7a87$export$654f18991713c8c4","setState","getState","structuredClone","updateState","updater","Events","Update","freeze","$7f0d958f0726b89e$export$6d08773d2e66f8f2","immutable","sortOrder","configuration","crypto","randomUUID","otherItem","getColorElements","getCompoundPath","collidable","onTap","onCollision","collisionStep","onDeselected","onInitialization","onSelected","Types","fromEntries","$7cd91973a7925acd$export$b20b719ec758a20f","$40d8a77a984c51a9$export$94affb487e701bf2","includes","unset","$b8e3951689bc8f9e$var$navigator","$b8e3951689bc8f9e$export$b0d759d807f751d4","CacheKeys","onPointerUp","onPointerDown","onPointerMove","onMouseWheel","offsetX","offsetY","deltaY","onPan","pan","GestureKeys","Pan","onPinch","pointer0","pointer1","point0","pinch","Pinch","Down","pointerId","Move","Gesture","Tap","maxZoom","minZoom","touchPoint","touchOffset","zoomOffset","vibrate","canVibrate","$83056ce6d313c7dc$export$3e25e887b7a5b37b","$f9ad5402abe64457$export$4f13f83fd8bb1dac","Immutable","Lock","RotateLeft","RotateRight","Swap","ToggleOff","ToggleOn","All","ByName","icon","$1f24870028eeabcc$var$modifiers","$1f24870028eeabcc$var$uniqueId","$1f24870028eeabcc$export$5acd5e6efc9671b7","tile","modifier","beam","$e980209ca439f282$export$235cb65c20ad2b7","MaxModifiers","li","dataset","removeModifier","addModifier","moveFilter","button","onToggle","clearTimeout","updateIcon","toggle","Invoked","Moved","$f00c5e8e3b24f55c$export$e49a5ad3dd6df925","movable","$15dbe6491c90ff2e$export$a9753b1ffc289935","Mask","onMask","beforeModify","onUnmask","afterModify","tileFilter","moveItems","moved","ignoreItemTypes","puzzle","unmask","updateSelectedTile","fromTile","toTile","wall","$f00c5e8e3b24f55c$export$1288a4f7eae890b0","SuperClass","removeItem","addItem","onMove","$268becbe2ffcc8a3$export$fd55ce593607084a","connected","onAdd","onRemove","pathIndex","segmentIndex","$268becbe2ffcc8a3$export$81262d6ca0162a3","Class","find","Reflect","construct","Collision","collision","Filter","MergeInto","mergeInto","MergeWith","mergeWith","Portal","portal","entryPortal","exitPortal","Reflector","reflector","TerminusConnection","terminusConnection","terminus","opening","$903d7b3eecd4d3a8$export$ec91da630f36d5ea","parameters","circumradius","currentStep","nextStep","$f48c890393349af7$export$152db69a76b6b79e","Names","rotatable","$f48c890393349af7$export$781de49a9284d537","rotationDegrees","getMaxRotation","getDirection","rotateGroup","$d430de8cd820c3cd$export$602eac185826482c","ring","pointer","portalState","entryDirection","existing","exitPortals","addMove","addStep","validTile","getExitDirection","exitPortalId","steps","$6756284c9622095f$export$bea8ebba691c5813","toggled","toggleable","$6756284c9622095f$export$cdb1ce8c4b8a5afe","$ff7d3b28e31d2a30$export$88c9f72b40fcdd85","itemIds","withSelf","mirror","$ff7d3b28e31d2a30$export$20aab196240bbdf2","stepIndex","beams","getColors","$eb2b229f23b512af$export$693b33588b3dd9d8","lastStepIndex","getLastStepIndex","currentPath","previousStep","getCollision","getStep","getOpening","getSteps","getMergeWith","openings","isComplete","isOn","isConnected","isPending","onBeamUpdated","beamLastStep","lastStep","isSelf","findLastIndex","stepPoint","nextStepPoint","isSameSide","isSameDirection","getBeamsUpdateDelay","onModifierInvoked","findIndex","startDirection","currentStepIndex","inradius","getTile","updateStep","nextStepIndex","existingNextStep","lastPathIndex","lastSegmentIndex","collisionIndex","timeout","updatedStep","firstPoint","Set","curveLocation","intersection","drawDebugPoint","spliceIndex","deletedSteps","Connection","Merge","$d8b66316ed43c40f$export$3ad31a823e05e6fb","flatMap","ui","directionFrom","onConnection","onDisconnection","connect","disconnect","Disconnection","$b41b1d7e9f79d24a$export$edf083caefbff926","midLine","directionTo","beamDirection","reflectorDirection","beamAngle","$c5a0b96abcd6dbcd$export$1a23559e655dacdd","original","reflectorAngle","$3d5ce7d56315a48f$export$cb4338d67ffa8a1d","walls","firstSegment","hexagon","nextDirection","lastSegment","$d12f93ae41726cf2$export$4b0ab9e4fad38dea","$54e671c4824aed95$export$5b9db7ce80343746","$7993f13e9449b6b9$export$bdb5f0a1b77546f4","toItems","fromItems","$86f6b44b69017f0d$export$1d55952676fae128","lock","swap","selectedTile","Deselected","deselectedTile","teardown","childIndex","startingOffsetX","startingOffsetY","dashWidth","Styles","edit","Selected","$99408c3658777a44$export$c84671f46d6a1ca","layers","tileSize","oddR","widestRow","rowByAxial","rowByOffset","rowOffset","getTileByAxial","getTileByOffset","getNeighboringTile","evenR","$01f46eb6f3519d51$export$991dcf7284de63d","$d156ca7729efc9b3$export$88c9f72b40fcdd85","$b090bea9f5eab78e$var$puzzles","test_infinite_loop","test_layout","test_portal","test_reflector","$b090bea9f5eab78e$var$traverse","$b090bea9f5eab78e$var$PuzzleGroup","firstId","lastId","nextId","previousId","$b090bea9f5eab78e$export$f68871ba002ca835","startsWith","titles","$4c3397e7d04ad378$var$history","history","$4c3397e7d04ad378$var$localStorage","localStorage","$4c3397e7d04ad378$export$7254cc27399e90bd","moveIndex","moves","Version","getDeltaIndex","canRedo","canReset","canUndo","getCurrent","getTitle","getSelectedTile","redo","clearCache","setSelectedTile","undo","newState","pushState","fromEncoded","fromId","ParamKeys","pathSegments","localState","$784ae6de7637c8a9$export$a337a674d761bdc2","condition","replaceChildren","isSolved","isMet","$784ae6de7637c8a9$var$SolutionCondition","connections","$784ae6de7637c8a9$var$Connections","$784ae6de7637c8a9$var$Moves","completed","connectionId","connectionIndex","connection","Operators","equalTo","Updated","greaterThan","lessThan","$15dbe6491c90ff2e$var$elements","footer","footerMessage","headerMessage","main","puzzleId","querySelector","solved","delay","select","centerOnTile","clearDebugPoints","previouslySelectedTile","collisionId","addBeam","otherBeam","cause","ClassNames","Icon","Solved","viewSize","Loaded","selectedTileId","className","Disabled","disable","innerText","colorElements","Active","rounded","$796068c1abf8becc$var$script","$796068c1abf8becc$var$dataLayer","dataLayer","$796068c1abf8becc$var$gtag","$43a0370408551d62$var$doorbellOptions","doorbellOptions","appKey","hideButton","$43a0370408551d62$var$script","$b7ac0cf7b7632c81$var$puzzle","$b7ac0cf7b7632c81$var$beaming","beaming"],"version":3,"file":"index.5b31326c.js.map"} \ No newline at end of file diff --git a/index.975ef6c8.js b/index.975ef6c8.js index a829ad5..62b188c 100644 --- a/index.975ef6c8.js +++ b/index.975ef6c8.js @@ -29991,6 +29991,9 @@ class Puzzle { this.#updateDropdown(); this.select(); } + addMove() { + return this.#state.addMove(); + } centerOnTile(offset) { const tile = this.layout.getTileByOffset(offset); (0, _paperDefault.default).view.center = tile.center; @@ -30086,12 +30089,12 @@ class Puzzle { if (tile && tile !== previouslySelectedTile) tile.onSelected(previouslySelectedTile); return previouslySelectedTile; } - updateState(keepDelta = true) { + updateState() { this.#state.update(Object.assign(this.#state.getCurrent(), { layout: this.layout.getState() - }), keepDelta); + })); this.#updateActions(); - if (keepDelta) (0, _util.emitEvent)(Puzzle.Events.Updated, { + (0, _util.emitEvent)(Puzzle.Events.Updated, { state: this.#state }); } @@ -30107,7 +30110,7 @@ class Puzzle { } #getModifiers(tile) { // Sort by ID to ensure they always appear in the same order regardless of ownership - return this.layout.modifiers.concat(tile?.modifiers || []).filter((modifier)=>!modifier.immutable).sort((a, b)=>a.id - b.id); + return (tile?.modifiers || []).concat(this.layout.modifiers).filter((modifier)=>!modifier.immutable).sort((a, b)=>a.id - b.id); } #next() { const id = (0, _puzzles.Puzzles).visible.nextId(this.#state.getId()); @@ -30170,6 +30173,7 @@ class Puzzle { disabled: true })); } + this.addMove(); this.updateState(); this.#beams// Update beams in the tile being modified first .sort((beam)=>tile.items.some((item)=>item === beam) ? -1 : 0).forEach((beam)=>beam.onModifierInvoked(event, this)); @@ -30191,7 +30195,8 @@ class Puzzle { document.body.classList.add(Puzzle.Events.Solved); (0, _util.emitEvent)(Puzzle.Events.Solved); } - #onStateUpdate() { + #onStateUpdate(event) { + console.debug("Puzzle.#onStateUpdate()", event); this.updateState(); } #onTap(event) { @@ -30253,7 +30258,7 @@ class Puzzle { const selectedTileId = this.#state.getSelectedTile(); const selectedTile = selectedTileId ? this.layout.getTileByOffset(new (0, _offset.OffsetCoordinates)(...selectedTileId.split(","))) : undefined; this.updateSelectedTile(selectedTile); - this.updateState(false); + this.updateState(); this.update(); } #teardown() { @@ -30461,7 +30466,7 @@ class Layout extends (0, _stateful.Stateful) { this.layers.tiles = new (0, _paper.Layer)(); // noinspection JSValidateTypes this.layers.items = new (0, _paper.Layer)(); - this.modifiers = (state.modifiers || []).map((state)=>(0, _modifierFactory.modifierFactory)(null, state)).filter((modifier)=>modifier !== undefined); + this.modifiers = (state.modifiers || []).map((state, index)=>(0, _modifierFactory.modifierFactory)(null, state, index)).filter((modifier)=>modifier !== undefined); // Find the widest row const widestRow = tiles.reduce((current, row, index)=>{ const length = row.length; @@ -30643,7 +30648,6 @@ var _itemFactory = require("../itemFactory"); var _util = require("../util"); var _modifierFactory = require("../modifierFactory"); class Tile extends (0, _item.Item) { - icons = []; selected = false; #ui; constructor(coordinates, layout, parameters, state){ @@ -30663,8 +30667,9 @@ class Tile extends (0, _item.Item) { this.#ui.hexagon ]); // These need to be last, since they reference this - this.items = (state.items || []).map((state)=>(0, _itemFactory.itemFactory)(this, state)).filter((item)=>item !== undefined); - this.modifiers = (state.modifiers || []).map((state)=>(0, _modifierFactory.modifierFactory)(this, state)).filter((modifier)=>modifier !== undefined); + this.items = (state.items || []).map((state, index)=>(0, _itemFactory.itemFactory)(this, state, index)).filter((item)=>item !== undefined); + this.modifiers = (state.modifiers || []).map((state, index)=>(0, _modifierFactory.modifierFactory)(this, state, index)).filter((modifier)=>modifier !== undefined); + this.modifiers.forEach((modifier)=>this.updateIcon(modifier)); this.update(); } addItem(item) { @@ -30673,7 +30678,7 @@ class Tile extends (0, _item.Item) { } addModifier(modifier) { this.modifiers.push(modifier); - this.update(); + this.updateIcon(modifier); } afterModify() { this.setStyle(this.selected ? "selected" : "default"); @@ -30690,6 +30695,7 @@ class Tile extends (0, _item.Item) { } getState() { const state = { + id: this.id, type: this.type }; // Filter out beams, which are not stored in state @@ -30730,7 +30736,7 @@ class Tile extends (0, _item.Item) { const index = this.modifiers.indexOf(modifier); if (index >= 0) { this.modifiers.splice(index, 1); - this.update(); + this.updateIcon(modifier); } } setStyle(style) { @@ -30742,18 +30748,26 @@ class Tile extends (0, _item.Item) { toString() { return `[${this.type}:${this.coordinates.offset.toString()}]`; } - update() { - super.update(); - // Update tile modifier icons - this.icons = this.modifiers.map((modifier, index)=>{ + updateIcon(modifier) { + const index = this.modifiers.indexOf(modifier); + if (index >= 0) { const position = (0, _util.getPointBetween)(this.#ui.hexagon.segments[index].point, this.center, (length)=>length / 3); - return modifier.getSymbol().place(position, { + const style = { fillColor: modifier.immutable ? "#ccc" : "#333" + }; + const icon = modifier.getSymbol().place(position, { + style }); - }); - // Everything after child 0 (hexagon) is an icon - this.group.removeChildren(1); - this.group.addChildren(this.icons); + icon.data = { + id: modifier.id, + name: modifier.name, + type: modifier.type + }; + const childIndex = this.group.children.findIndex((icon)=>icon.data.id === modifier.id); + if (childIndex >= 0) // Update existing + this.group.children[childIndex].replaceWith(icon); + else this.group.addChild(icon); + } } static parameters(height) { const circumradius = height / 2; @@ -30845,7 +30859,7 @@ class Item extends (0, _stateful.Stateful) { this.immutable ??= state?.immutable ?? false; this.type = state?.type ?? configuration?.type; if (this.type === undefined) { - console.debug(`[Item:${this.id}]`, state); + console.debug(`[Item:${this.id}]`, state, configuration); throw new Error("Item must have type defined"); } this.data = Object.assign({ @@ -30953,7 +30967,7 @@ var _terminus = require("./items/terminus"); var _reflector = require("./items/reflector"); var _wall = require("./items/wall"); var _item = require("./item"); -function itemFactory(parent, state, configuration) { +function itemFactory(parent, state, index) { let item; switch(state.type){ case (0, _item.Item).Types.filter: @@ -31140,6 +31154,7 @@ var _item = require("./item"); var _icons = require("./icons"); var _tile = require("./items/tile"); const modifiers = document.getElementById("modifiers"); +// Use incrementing IDs to preserve sort order let uniqueId = 0; class Modifier extends (0, _stateful.Stateful) { #container; @@ -31151,7 +31166,6 @@ class Modifier extends (0, _stateful.Stateful) { configuration; element; disabled = false; - id = uniqueId++; immutable = false; name; parent; @@ -31159,7 +31173,10 @@ class Modifier extends (0, _stateful.Stateful) { title; type; constructor(tile, state){ + // Retain ID from state if it exists, otherwise generate a new one + state.id ??= uniqueId++; super(state); + this.id = state.id; this.parent = tile; this.type = state.type; } @@ -31240,14 +31257,18 @@ class Modifier extends (0, _stateful.Stateful) { } onPointerUp(event) { clearTimeout(this.#timeoutId); - if (this.#down && !this.disabled) switch(event.type){ - case "pointerleave": - // Support swiping up on pointer device - this.onToggle(event); - break; - case "pointerup": - this.onTap(event); - break; + if (this.#down && !this.disabled) { + switch(event.type){ + case "pointerleave": + // Support swiping up on pointer device + this.onToggle(event); + break; + case "pointerup": + this.onTap(event); + break; + } + // Keep the tile icon in sync + this.parent?.updateIcon(this); } this.#down = false; } @@ -31813,8 +31834,7 @@ class Portal extends (0, _move.movable)((0, _rotate.rotatable)((0, _item.Item))) } else if (exitPortals.length === 1) { const exitPortal = exitPortals[0]; console.debug(this.toString(), "single exit portal matched:", exitPortal); - // Since no user choice was made, don't store this decision as a delta (move) - return this.#getStep(beam, nextStep, exitPortal, false); + return this.#getStep(beam, nextStep, exitPortal); } else { // Multiple matching destinations. User will need to pick one manually. console.debug(this.toString(), "found multiple valid exit portals:", exitPortals); @@ -31828,6 +31848,8 @@ class Portal extends (0, _move.movable)((0, _rotate.rotatable)((0, _item.Item))) onTap: (puzzle, tile)=>{ const exitPortal = data.exitPortals.find((portal)=>portal.parent === tile); if (exitPortal) { + // Add a move, since the user made a decision + puzzle.addMove(); beam.addStep(this.#getStep(beam, nextStep, exitPortal)); puzzle.unmask(); } @@ -31892,7 +31914,7 @@ class Portal extends (0, _move.movable)((0, _rotate.rotatable)((0, _item.Item))) } return exitPortals; } - #getStep(beam, nextStep, exitPortal, keepDelta = true) { + #getStep(beam, nextStep, exitPortal) { const direction = Portal.getExitDirection(nextStep, this, exitPortal); return nextStep.copy({ connected: false, @@ -31900,17 +31922,17 @@ class Portal extends (0, _move.movable)((0, _rotate.rotatable)((0, _item.Item))) insertAbove: exitPortal, onAdd: (step)=>{ exitPortal.update(direction, step); - // Store this decision in beam state and generate a matching delta + // Store this decision in beam state + // TODO: store this less cryptically (e.g. use "portal") beam.updateState((state)=>(state.steps ??= {})[step.index] = { [this.id]: exitPortal.id - }, keepDelta); + }); }, onRemove: (step)=>{ - // Remove any associated beam state, but don't generate a delta. - // If the step is being removed, a delta for that action was most likely created elsewhere already. + // Remove any associated beam state beam.updateState((state)=>{ delete state.steps[step.index]; - }, false); + }); exitPortal.update(direction); }, point: exitPortal.parent.center, @@ -32203,15 +32225,15 @@ var _icons = require("../icons"); class Toggle extends (0, _modifier.Modifier) { on; title = "Toggle"; - constructor(tile, { on }){ + constructor(tile, state){ super(...arguments); - this.on = on || false; + // TODO: refactor to use 'toggled' everywhere + this.on = state.on || this.parent?.items.some((item)=>item.on || item.toggled); this.name = this.getName(); } attach(tile) { super.attach(tile); - // Consider the modifier toggled if there is at least one toggled item in the tile - // TODO: refactor to be 'toggled' everywhere + // TODO: refactor to use 'toggled' everywhere this.on = this.tile?.items.some((item)=>item.on || item.toggled); this.update({ name: this.getName() @@ -32966,29 +32988,29 @@ var _rotate = require("./modifiers/rotate"); var _toggle = require("./modifiers/toggle"); var _modifier = require("./modifier"); var _swap = require("./modifiers/swap"); -function modifierFactory(tile, configuration) { +function modifierFactory(parent, state, index) { let modifier; - switch(configuration.type){ + switch(state.type){ case (0, _modifier.Modifier).Types.immutable: - modifier = new (0, _immutable.Immutable)(tile, configuration); + modifier = new (0, _immutable.Immutable)(...arguments); break; case (0, _modifier.Modifier).Types.lock: - modifier = new (0, _lock.Lock)(tile, configuration); + modifier = new (0, _lock.Lock)(...arguments); break; case (0, _modifier.Modifier).Types.move: - modifier = new (0, _move.Move)(tile, configuration); + modifier = new (0, _move.Move)(...arguments); break; case (0, _modifier.Modifier).Types.rotate: - modifier = new (0, _rotate.Rotate)(tile, configuration); + modifier = new (0, _rotate.Rotate)(...arguments); break; case (0, _modifier.Modifier).Types.swap: - modifier = new (0, _swap.Swap)(tile, configuration); + modifier = new (0, _swap.Swap)(...arguments); break; case (0, _modifier.Modifier).Types.toggle: - modifier = new (0, _toggle.Toggle)(tile, configuration); + modifier = new (0, _toggle.Toggle)(...arguments); break; default: - console.error("Ignoring modifier with unknown type:", configuration.type); + console.error("Ignoring modifier with unknown type:", state.type); break; } return modifier; @@ -33121,44 +33143,60 @@ class State { #current; #deltas; #id; - #index; + #moveIndex; + #moves; #original; #selectedTile; #version; - constructor(id, original, deltas, deltasIndex, selectedTile, version){ + constructor(id, original, deltas, moveIndex, moves, selectedTile, version){ + console.log(moveIndex); this.#id = id; this.#original = original; this.#deltas = deltas || []; - this.#index = deltasIndex || this.#lastIndex(); + this.#moves = moves || []; + this.#moveIndex = moveIndex ?? this.#moves.length - 1; this.#selectedTile = selectedTile; - this.#version = version ?? original.version; - // Update current state - this.#current = structuredClone(original); - this.#deltas.filter((delta, index)=>index <= this.#index).forEach((delta)=>this.apply(delta)); - this.#updateCache(id); + this.#version = version ?? State.Version; + this.#resetCurrent(); + this.#updateCache(); } - apply(delta) { - // Support for deltas stored as stringified JSON in cache - if (typeof delta === "string") delta = JSON.parse(delta); - console.debug("StateManager: applying delta", delta); - return (0, _util.jsonDiffPatch).patch(this.#current, delta); + addMove() { + // Handle moving after an undo (revising history) + if (this.#moveIndex < this.#moves.length - 1) { + const deltaIndex = this.getDeltaIndex(); + console.debug(this.toString(), "addMove: revising history. moves:", this.#moves, `moveIndex: ${this.#moveIndex}`, `deltaIndex: ${deltaIndex}`); + // Remove all deltas after the current one + this.#deltas.splice(deltaIndex + 1); + // Remove all moves after the current one + this.#moves.splice(this.#moveIndex + 1); + } + const deltaIndex = this.#deltas.length - 1; + if (!this.#moves.includes(deltaIndex)) // Don't add duplicate moves + this.#moves.push(deltaIndex); + else console.debug(this.toString(), `addMove: ignoring duplicate move: ${deltaIndex}`); + this.#moveIndex = this.#moves.length - 1; + console.debug(this.toString(), "addMove: added move", this.#moveIndex, deltaIndex); + return this.#moveIndex; } canRedo() { - return this.#index < this.#lastIndex(); + return this.#moveIndex < this.#moves.length - 1; } canReset() { - return this.#deltas.length > 0; + return this.#moves.length > 0; } canUndo() { - return this.#index >= 0; + return this.#moveIndex >= 0; } encode() { return (0, _util.base64encode)(JSON.stringify({ id: this.#id, - // No need to cache puzzles which exist in code - original: (0, _puzzles.Puzzles).has(this.#id) ? undefined : this.#original, + // If this puzzle exists in code, just cache the version + original: (0, _puzzles.Puzzles).has(this.#id) ? { + version: this.#original.version + } : this.#original, deltas: this.#deltas, - deltasIndex: this.#index, + moveIndex: this.#moveIndex, + moves: this.#moves, selectedTile: this.#selectedTile, version: this.#version })); @@ -33166,6 +33204,12 @@ class State { getCurrent() { return structuredClone(this.#current); } + getDeltaIndex() { + console.debug(this.toString(), "getDeltaIndex", this.#moves, this.#moveIndex, this.#deltas.length - 1); + // If there are no moves, or the user is on the latest move, use the latest delta index + // Otherwise, use the delta index indicated by the move + return this.#moveIndex < this.#moves.length - 1 ? this.#moves[this.#moveIndex + 1] : this.#deltas.length - 1; + } getId() { return this.#id; } @@ -33176,26 +33220,24 @@ class State { return this.#selectedTile; } moves() { - return this.#index + 1; - } - length() { - return this.#deltas.length; + return this.#moves; } redo() { if (!this.canRedo()) return; - this.#index++; - this.#current = structuredClone(this.#original); - this.#deltas.filter((delta, index)=>index <= this.#index).forEach((delta)=>this.apply(delta)); + this.#moveIndex++; + this.#resetCurrent(); this.#updateCache(); return true; } reset() { if (!this.canReset()) return; - this.#current = structuredClone(this.#original); - this.#deltas = []; - this.#index = this.#lastIndex(); + // Reset to the state prior to the first move + this.#deltas.splice(this.#moves[0] + 1); + this.#moveIndex = -1; + this.#moves = []; this.#selectedTile = undefined; State.clearCache(this.getId()); + this.#resetCurrent(); this.#updateCache(); return true; } @@ -33206,37 +33248,45 @@ class State { this.#updateCache(); } } + toString() { + return `[State:${this.#deltas.length - 1}:${this.#moveIndex}]`; + } undo() { if (!this.canUndo()) return; - this.#index--; - this.#current = structuredClone(this.#original); - this.#deltas.filter((delta, index)=>index <= this.#index).forEach((delta)=>this.apply(delta)); + console.log(this.toString(), "undo", this.#moveIndex); + this.#moveIndex--; + this.#resetCurrent(); this.#updateCache(); return true; } - update(newState, keepDelta = true) { + update(newState) { const delta = (0, _util.jsonDiffPatch).diff(this.#current, newState); - console.debug("delta", delta); + console.debug(this.toString(), "update", delta); if (delta === undefined) // Nothing to do return; - this.apply(delta); - if (keepDelta) { - // Handle updating after undoing - if (this.#index < this.#lastIndex()) // Remove all deltas after the current one - this.#deltas.splice(this.#index + 1); - // It seems that the jsondiffpatch library modifies deltas on patch. To prevent that, they will be stored as - // their stringified JSON representation and parsed before being applied. - // See:https://github.com/benjamine/jsondiffpatch/issues/34 - this.#deltas.push(JSON.stringify(delta)); - this.#index = this.#lastIndex(); - } + // It seems that the jsondiffpatch library modifies deltas on patch. To prevent that, they will be stored as + // their stringified JSON representation and parsed before being applied. + // See:https://github.com/benjamine/jsondiffpatch/issues/34 + this.#deltas.push(JSON.stringify(delta)); + this.#apply(delta); this.#updateCache(); } + #apply(delta) { + // Support for deltas stored as stringified JSON in cache + if (typeof delta === "string") delta = JSON.parse(delta); + console.debug(this.toString(), "apply", delta); + return (0, _util.jsonDiffPatch).patch(this.#current, delta); + } #key(key) { return State.key(key, this.getId()); } - #lastIndex() { - return this.#deltas.length - 1; + #resetCurrent() { + // Start with the original state + this.#current = structuredClone(this.#original); + // Then apply every delta until the currently active delta + const deltaIndex = this.getDeltaIndex(); + console.log(this.toString(), "resetCurrent", deltaIndex); + this.#deltas.filter((delta, index)=>index <= deltaIndex).forEach((delta)=>this.#apply(delta)); } #updateCache() { const id = this.getId(); @@ -33273,9 +33323,25 @@ class State { } static fromEncoded(state) { state = JSON.parse((0, _util.base64decode)(state)); - state.original = state.original || (0, _puzzles.Puzzles).get(state.id); - state.original.version ??= 0; - return new State(state.id, state.original, state.deltas, state.deltasIndex, state.selectedTile, state.version); + if (state.id === undefined) { + console.warn("Invalid cache, ignoring."); + return; + } + if (state.version !== State.Version) { + console.debug("Invalidating cache due to version mismatch. " + `Ours: ${State.Version}, theirs: ${state.version}.`); + State.clearCache(); + return; + } + if ((0, _puzzles.Puzzles).has(state.id)) { + const original = (0, _puzzles.Puzzles).get(state.id); + if (original && original.version !== state.original?.version) { + console.debug(`Invalidating cache for puzzle ${state.id} due to version mismatch. ` + `Ours: ${original.version}, theirs: ${state.original?.version}.`); + State.clearCache(state.id); + return; + } + state.original = original; + } + return new State(state.id, state.original, state.deltas, state.moveIndex, state.moves, state.selectedTile, state.version); } static fromId(id) { return new State(id, (0, _puzzles.Puzzles).get(id)); @@ -33305,15 +33371,6 @@ class State { console.debug(`Could not parse state with ID '${id}' from localStorage`, e); } } - if (state) { - const cachedVersion = state.#version; - const originalVersion = state.#original.version; - if (cachedVersion !== originalVersion) { - console.debug(`Invalidating cache for ID ${id} due to version mismatch. ` + `Puzzle: ${originalVersion}, Cache: ${cachedVersion}`); - state = undefined; - State.clearCache(id); - } - } if (!state) // Fall back to loading state from Puzzles cache by ID state = State.fromId(id); if (!state) throw new Error(`Unable to resolve state for ID '${id}'`); @@ -33331,6 +33388,9 @@ class State { static ParamKeys = Object.freeze({ clearCache: "clearCache" }); + // This should be incremented whenever the state cache object changes in a way that requires it to be invalidated + // Use this sparingly as it will reset the state of every puzzle on the users end + static Version = 3; } },{"../puzzles":"7ifRD","./util":"92uDI","@parcel/transformer-js/src/esmodule-helpers.js":"gkKU3"}],"7ifRD":[function(require,module,exports) { @@ -33638,7 +33698,7 @@ class Moves extends SolutionCondition { } update(event) { console.debug("Moves.update", event); - this.#moves = event.detail.state.moves(); + this.#moves = event.detail.state.moves().length; this.#completed.textContent = this.#moves.toString(); } static Operators = Object.freeze({ diff --git a/index.975ef6c8.js.map b/index.975ef6c8.js.map index d980737..93f2c89 100644 --- a/index.975ef6c8.js.map +++ b/index.975ef6c8.js.map @@ -1 +1 @@ -{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAI,WAAW;AAAK,IAAI,WAAW;AAAK,IAAI,aAAa;AAAM,IAAI,eAAe;AAAmB,IAAI,cAAc;AAAM,OAAO,MAAM,CAAC,aAAa,GAAG;AAAmB;AAE9K,8JAA8J,GAC9J;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,GACA,IAAI,aAAa;AACjB,IAAI,YAAY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AAAD,EAAE,UAAU;SAC1B;QAED,KAAK,CAAC,OAAO;QAEb,IAAI,CAAC,CAAC,SAAS,GAAG;QAClB,IAAI,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC;YAAC;gBAAE,MAAM,CAAA,GAAA,cAAM,AAAD,EAAE,MAAM,CAAC,OAAO;gBAAE,SAAS,IAAI,CAAC,MAAM;YAAC;SAAE;IAClF;IAEA,QAAS;QACP,kDAAkD;QAClD,OAAQ,IAAI,CAAC,KAAK,CAAC,QAAQ;YACzB,KAAK,MAAM,SAAS,CAAC,OAAO;gBAC1B,OAAO,IAAI,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM;YAC1C,KAAK,MAAM,SAAS,CAAC,WAAW;gBAC9B,OAAO,IAAI,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM;YACxC,KAAK,MAAM,SAAS,CAAC,QAAQ;gBAC3B,OAAO,IAAI,CAAC,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM;QAC1C;IACF;IAEA,WAAY;QACV,IAAI,CAAC,CAAC,cAAc,CAAC,MAAM;QAC3B,KAAK,CAAC;IACR;IAEA,OAAQ,KAAK,EAAE;QACb,QAAQ,KAAK,CAAC,gBAAgB;QAC9B,IAAI,CAAC,CAAC,KAAK,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,KAAK;QACtC,IAAI,CAAC,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC,KAAK,CAAC,QAAQ;IACpD;IAEA,OAAO,YAAY,OAAO,MAAM,CAAC;QAC/B,SAAS;QACT,aAAa;QACb,UAAU;IACZ,GAAE;AACJ","sources":["node_modules/@parcel/runtime-browser-hmr/lib/runtime-93f7d09574ed46c9.js","src/index.js","src/info.js","src/components/debug.js","src/components/util.js","node_modules/jsondiffpatch/lib/index.js","node_modules/jsondiffpatch/lib/diffpatcher.js","node_modules/jsondiffpatch/lib/processor.js","node_modules/@parcel/transformer-js/src/esmodule-helpers.js","node_modules/jsondiffpatch/lib/pipe.js","node_modules/jsondiffpatch/lib/contexts/diff.js","node_modules/jsondiffpatch/lib/contexts/context.js","node_modules/jsondiffpatch/lib/clone.js","node_modules/jsondiffpatch/lib/contexts/patch.js","node_modules/jsondiffpatch/lib/contexts/reverse.js","node_modules/jsondiffpatch/lib/filters/trivial.js","node_modules/jsondiffpatch/lib/filters/nested.js","node_modules/jsondiffpatch/lib/filters/arrays.js","node_modules/jsondiffpatch/lib/filters/lcs.js","node_modules/jsondiffpatch/lib/filters/dates.js","node_modules/jsondiffpatch/lib/filters/texts.js","node_modules/jsondiffpatch/lib/date-reviver.js","node_modules/pako/dist/pako.esm.mjs","node_modules/chroma-js/index.js","node_modules/chroma-js/src/chroma.js","node_modules/chroma-js/src/Color.js","node_modules/chroma-js/src/utils/index.js","node_modules/chroma-js/src/utils/clip_rgb.js","node_modules/chroma-js/src/utils/limit.js","node_modules/chroma-js/src/utils/type.js","node_modules/chroma-js/src/utils/unpack.js","node_modules/chroma-js/src/utils/last.js","node_modules/chroma-js/src/io/input.js","node_modules/chroma-js/src/version.js","node_modules/chroma-js/src/io/cmyk/index.js","node_modules/chroma-js/src/io/cmyk/cmyk2rgb.js","node_modules/chroma-js/src/io/cmyk/rgb2cmyk.js","node_modules/chroma-js/src/io/css/index.js","node_modules/chroma-js/src/io/css/rgb2css.js","node_modules/chroma-js/src/io/css/hsl2css.js","node_modules/chroma-js/src/io/hsl/rgb2hsl.js","node_modules/chroma-js/src/io/css/css2rgb.js","node_modules/chroma-js/src/io/hsl/hsl2rgb.js","node_modules/chroma-js/src/io/gl/index.js","node_modules/chroma-js/src/io/hcg/index.js","node_modules/chroma-js/src/io/hcg/hcg2rgb.js","node_modules/chroma-js/src/io/hcg/rgb2hcg.js","node_modules/chroma-js/src/io/hex/index.js","node_modules/chroma-js/src/io/hex/hex2rgb.js","node_modules/chroma-js/src/io/hex/rgb2hex.js","node_modules/chroma-js/src/io/hsi/index.js","node_modules/chroma-js/src/io/hsi/hsi2rgb.js","node_modules/chroma-js/src/io/hsi/rgb2hsi.js","node_modules/chroma-js/src/io/hsl/index.js","node_modules/chroma-js/src/io/hsv/index.js","node_modules/chroma-js/src/io/hsv/hsv2rgb.js","node_modules/chroma-js/src/io/hsv/rgb2hsv.js","node_modules/chroma-js/src/io/lab/index.js","node_modules/chroma-js/src/io/lab/lab2rgb.js","node_modules/chroma-js/src/io/lab/lab-constants.js","node_modules/chroma-js/src/io/lab/rgb2lab.js","node_modules/chroma-js/src/io/lch/index.js","node_modules/chroma-js/src/io/lch/lch2rgb.js","node_modules/chroma-js/src/io/lch/lch2lab.js","node_modules/chroma-js/src/io/lch/hcl2rgb.js","node_modules/chroma-js/src/io/lch/rgb2lch.js","node_modules/chroma-js/src/io/lch/lab2lch.js","node_modules/chroma-js/src/io/named/index.js","node_modules/chroma-js/src/colors/w3cx11.js","node_modules/chroma-js/src/io/num/index.js","node_modules/chroma-js/src/io/num/num2rgb.js","node_modules/chroma-js/src/io/num/rgb2num.js","node_modules/chroma-js/src/io/rgb/index.js","node_modules/chroma-js/src/io/temp/index.js","node_modules/chroma-js/src/io/temp/temperature2rgb.js","node_modules/chroma-js/src/io/temp/rgb2temperature.js","node_modules/chroma-js/src/io/oklab/index.js","node_modules/chroma-js/src/io/oklab/oklab2rgb.js","node_modules/chroma-js/src/io/oklab/rgb2oklab.js","node_modules/chroma-js/src/io/oklch/index.js","node_modules/chroma-js/src/io/oklch/oklch2rgb.js","node_modules/chroma-js/src/io/oklch/rgb2oklch.js","node_modules/chroma-js/src/ops/alpha.js","node_modules/chroma-js/src/ops/clipped.js","node_modules/chroma-js/src/ops/darken.js","node_modules/chroma-js/src/ops/get.js","node_modules/chroma-js/src/ops/luminance.js","node_modules/chroma-js/src/ops/mix.js","node_modules/chroma-js/src/generator/mix.js","node_modules/chroma-js/src/interpolator/index.js","node_modules/chroma-js/src/ops/premultiply.js","node_modules/chroma-js/src/ops/saturate.js","node_modules/chroma-js/src/ops/set.js","node_modules/chroma-js/src/ops/shade.js","node_modules/chroma-js/src/interpolator/rgb.js","node_modules/chroma-js/src/interpolator/lrgb.js","node_modules/chroma-js/src/interpolator/lab.js","node_modules/chroma-js/src/interpolator/lch.js","node_modules/chroma-js/src/interpolator/_hsx.js","node_modules/chroma-js/src/interpolator/num.js","node_modules/chroma-js/src/interpolator/hcg.js","node_modules/chroma-js/src/interpolator/hsi.js","node_modules/chroma-js/src/interpolator/hsl.js","node_modules/chroma-js/src/interpolator/hsv.js","node_modules/chroma-js/src/interpolator/oklab.js","node_modules/chroma-js/src/interpolator/oklch.js","node_modules/chroma-js/src/generator/average.js","node_modules/chroma-js/src/generator/bezier.js","node_modules/chroma-js/src/generator/scale.js","node_modules/chroma-js/src/generator/blend.js","node_modules/chroma-js/src/generator/cubehelix.js","node_modules/chroma-js/src/generator/random.js","node_modules/chroma-js/src/utils/analyze.js","node_modules/chroma-js/src/utils/contrast.js","node_modules/chroma-js/src/utils/delta-e.js","node_modules/chroma-js/src/utils/distance.js","node_modules/chroma-js/src/utils/valid.js","node_modules/chroma-js/src/utils/scales.js","node_modules/chroma-js/src/colors/colorbrewer.js","node_modules/paper/dist/paper-full.js","node_modules/@parcel/node-resolver-core/lib/_empty.js","node_modules/acorn/dist/acorn.mjs","src/components/puzzle.js","src/components/layout.js","src/components/coordinates/cube.js","src/components/coordinates/offset.js","src/components/items/tile.js","src/components/item.js","src/components/stateful.js","src/components/itemFactory.js","src/components/items/filter.js","src/components/modifiers/move.js","src/components/modifier.js","src/components/eventListeners.js","src/components/interact.js","src/components/cache.js","src/components/icons.js","src/components/symbol.js","src/components/step.js","src/components/items/portal.js","src/components/modifiers/rotate.js","src/components/items/terminus.js","src/components/modifiers/toggle.js","src/components/items/beam.js","src/components/collision.js","src/components/items/reflector.js","src/components/items/wall.js","src/components/modifierFactory.js","src/components/modifiers/immutable.js","src/components/modifiers/lock.js","src/components/modifiers/swap.js","src/components/items/mask.js","src/components/items/collision.js","src/components/state.js","src/puzzles/index.js","src/puzzles/001.json","src/puzzles/002.json","src/puzzles/003.json","src/puzzles/004.json","src/puzzles/005.json","src/puzzles/006.json","src/puzzles/007.json","src/puzzles/008.json","src/puzzles/009.json","src/puzzles/010.json","src/puzzles/011.json","src/puzzles/012.json","src/puzzles/test/infiniteLoop.json","src/puzzles/test/layout.js","src/puzzles/test/portal.json","src/puzzles/test/reflector.json","src/components/solution.js"],"sourcesContent":["var HMR_HOST = null;var HMR_PORT = null;var HMR_SECURE = false;var HMR_ENV_HASH = \"d6ea1d42532a7575\";var HMR_USE_SSE = false;module.bundle.HMR_BUNDLE_ID = \"890e741a975ef6c8\";\"use strict\";\n\n/* global HMR_HOST, HMR_PORT, HMR_ENV_HASH, HMR_SECURE, HMR_USE_SSE, chrome, browser, __parcel__import__, __parcel__importScripts__, ServiceWorkerGlobalScope */\n/*::\nimport type {\n HMRAsset,\n HMRMessage,\n} from '@parcel/reporter-dev-server/src/HMRServer.js';\ninterface ParcelRequire {\n (string): mixed;\n cache: {|[string]: ParcelModule|};\n hotData: {|[string]: mixed|};\n Module: any;\n parent: ?ParcelRequire;\n isParcelRequire: true;\n modules: {|[string]: [Function, {|[string]: string|}]|};\n HMR_BUNDLE_ID: string;\n root: ParcelRequire;\n}\ninterface ParcelModule {\n hot: {|\n data: mixed,\n accept(cb: (Function) => void): void,\n dispose(cb: (mixed) => void): void,\n // accept(deps: Array | string, cb: (Function) => void): void,\n // decline(): void,\n _acceptCallbacks: Array<(Function) => void>,\n _disposeCallbacks: Array<(mixed) => void>,\n |};\n}\ninterface ExtensionContext {\n runtime: {|\n reload(): void,\n getURL(url: string): string;\n getManifest(): {manifest_version: number, ...};\n |};\n}\ndeclare var module: {bundle: ParcelRequire, ...};\ndeclare var HMR_HOST: string;\ndeclare var HMR_PORT: string;\ndeclare var HMR_ENV_HASH: string;\ndeclare var HMR_SECURE: boolean;\ndeclare var HMR_USE_SSE: boolean;\ndeclare var chrome: ExtensionContext;\ndeclare var browser: ExtensionContext;\ndeclare var __parcel__import__: (string) => Promise;\ndeclare var __parcel__importScripts__: (string) => Promise;\ndeclare var globalThis: typeof self;\ndeclare var ServiceWorkerGlobalScope: Object;\n*/\nvar OVERLAY_ID = '__parcel__error__overlay__';\nvar OldModule = module.bundle.Module;\nfunction Module(moduleName) {\n OldModule.call(this, moduleName);\n this.hot = {\n data: module.bundle.hotData[moduleName],\n _acceptCallbacks: [],\n _disposeCallbacks: [],\n accept: function (fn) {\n this._acceptCallbacks.push(fn || function () {});\n },\n dispose: function (fn) {\n this._disposeCallbacks.push(fn);\n }\n };\n module.bundle.hotData[moduleName] = undefined;\n}\nmodule.bundle.Module = Module;\nmodule.bundle.hotData = {};\nvar checkedAssets /*: {|[string]: boolean|} */, assetsToDispose /*: Array<[ParcelRequire, string]> */, assetsToAccept /*: Array<[ParcelRequire, string]> */;\n\nfunction getHostname() {\n return HMR_HOST || (location.protocol.indexOf('http') === 0 ? location.hostname : 'localhost');\n}\nfunction getPort() {\n return HMR_PORT || location.port;\n}\n\n// eslint-disable-next-line no-redeclare\nvar parent = module.bundle.parent;\nif ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {\n var hostname = getHostname();\n var port = getPort();\n var protocol = HMR_SECURE || location.protocol == 'https:' && !['localhost', '127.0.0.1', '0.0.0.0'].includes(hostname) ? 'wss' : 'ws';\n var ws;\n if (HMR_USE_SSE) {\n ws = new EventSource('/__parcel_hmr');\n } else {\n try {\n ws = new WebSocket(protocol + '://' + hostname + (port ? ':' + port : '') + '/');\n } catch (err) {\n if (err.message) {\n console.error(err.message);\n }\n ws = {};\n }\n }\n\n // Web extension context\n var extCtx = typeof browser === 'undefined' ? typeof chrome === 'undefined' ? null : chrome : browser;\n\n // Safari doesn't support sourceURL in error stacks.\n // eval may also be disabled via CSP, so do a quick check.\n var supportsSourceURL = false;\n try {\n (0, eval)('throw new Error(\"test\"); //# sourceURL=test.js');\n } catch (err) {\n supportsSourceURL = err.stack.includes('test.js');\n }\n\n // $FlowFixMe\n ws.onmessage = async function (event /*: {data: string, ...} */) {\n checkedAssets = {} /*: {|[string]: boolean|} */;\n assetsToAccept = [];\n assetsToDispose = [];\n var data /*: HMRMessage */ = JSON.parse(event.data);\n if (data.type === 'update') {\n // Remove error overlay if there is one\n if (typeof document !== 'undefined') {\n removeErrorOverlay();\n }\n let assets = data.assets.filter(asset => asset.envHash === HMR_ENV_HASH);\n\n // Handle HMR Update\n let handled = assets.every(asset => {\n return asset.type === 'css' || asset.type === 'js' && hmrAcceptCheck(module.bundle.root, asset.id, asset.depsByBundle);\n });\n if (handled) {\n console.clear();\n\n // Dispatch custom event so other runtimes (e.g React Refresh) are aware.\n if (typeof window !== 'undefined' && typeof CustomEvent !== 'undefined') {\n window.dispatchEvent(new CustomEvent('parcelhmraccept'));\n }\n await hmrApplyUpdates(assets);\n\n // Dispose all old assets.\n let processedAssets = {} /*: {|[string]: boolean|} */;\n for (let i = 0; i < assetsToDispose.length; i++) {\n let id = assetsToDispose[i][1];\n if (!processedAssets[id]) {\n hmrDispose(assetsToDispose[i][0], id);\n processedAssets[id] = true;\n }\n }\n\n // Run accept callbacks. This will also re-execute other disposed assets in topological order.\n processedAssets = {};\n for (let i = 0; i < assetsToAccept.length; i++) {\n let id = assetsToAccept[i][1];\n if (!processedAssets[id]) {\n hmrAccept(assetsToAccept[i][0], id);\n processedAssets[id] = true;\n }\n }\n } else fullReload();\n }\n if (data.type === 'error') {\n // Log parcel errors to console\n for (let ansiDiagnostic of data.diagnostics.ansi) {\n let stack = ansiDiagnostic.codeframe ? ansiDiagnostic.codeframe : ansiDiagnostic.stack;\n console.error('🚨 [parcel]: ' + ansiDiagnostic.message + '\\n' + stack + '\\n\\n' + ansiDiagnostic.hints.join('\\n'));\n }\n if (typeof document !== 'undefined') {\n // Render the fancy html overlay\n removeErrorOverlay();\n var overlay = createErrorOverlay(data.diagnostics.html);\n // $FlowFixMe\n document.body.appendChild(overlay);\n }\n }\n };\n if (ws instanceof WebSocket) {\n ws.onerror = function (e) {\n if (e.message) {\n console.error(e.message);\n }\n };\n ws.onclose = function () {\n console.warn('[parcel] 🚨 Connection to the HMR server was lost');\n };\n }\n}\nfunction removeErrorOverlay() {\n var overlay = document.getElementById(OVERLAY_ID);\n if (overlay) {\n overlay.remove();\n console.log('[parcel] ✨ Error resolved');\n }\n}\nfunction createErrorOverlay(diagnostics) {\n var overlay = document.createElement('div');\n overlay.id = OVERLAY_ID;\n let errorHTML = '
';\n for (let diagnostic of diagnostics) {\n let stack = diagnostic.frames.length ? diagnostic.frames.reduce((p, frame) => {\n return `${p}\n${frame.location}\n${frame.code}`;\n }, '') : diagnostic.stack;\n errorHTML += `\n
\n
\n 🚨 ${diagnostic.message}\n
\n
${stack}
\n
\n ${diagnostic.hints.map(hint => '
💡 ' + hint + '
').join('')}\n
\n ${diagnostic.documentation ? `` : ''}\n
\n `;\n }\n errorHTML += '
';\n overlay.innerHTML = errorHTML;\n return overlay;\n}\nfunction fullReload() {\n if ('reload' in location) {\n location.reload();\n } else if (extCtx && extCtx.runtime && extCtx.runtime.reload) {\n extCtx.runtime.reload();\n }\n}\nfunction getParents(bundle, id) /*: Array<[ParcelRequire, string]> */{\n var modules = bundle.modules;\n if (!modules) {\n return [];\n }\n var parents = [];\n var k, d, dep;\n for (k in modules) {\n for (d in modules[k][1]) {\n dep = modules[k][1][d];\n if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) {\n parents.push([bundle, k]);\n }\n }\n }\n if (bundle.parent) {\n parents = parents.concat(getParents(bundle.parent, id));\n }\n return parents;\n}\nfunction updateLink(link) {\n var href = link.getAttribute('href');\n if (!href) {\n return;\n }\n var newLink = link.cloneNode();\n newLink.onload = function () {\n if (link.parentNode !== null) {\n // $FlowFixMe\n link.parentNode.removeChild(link);\n }\n };\n newLink.setAttribute('href',\n // $FlowFixMe\n href.split('?')[0] + '?' + Date.now());\n // $FlowFixMe\n link.parentNode.insertBefore(newLink, link.nextSibling);\n}\nvar cssTimeout = null;\nfunction reloadCSS() {\n if (cssTimeout) {\n return;\n }\n cssTimeout = setTimeout(function () {\n var links = document.querySelectorAll('link[rel=\"stylesheet\"]');\n for (var i = 0; i < links.length; i++) {\n // $FlowFixMe[incompatible-type]\n var href /*: string */ = links[i].getAttribute('href');\n var hostname = getHostname();\n var servedFromHMRServer = hostname === 'localhost' ? new RegExp('^(https?:\\\\/\\\\/(0.0.0.0|127.0.0.1)|localhost):' + getPort()).test(href) : href.indexOf(hostname + ':' + getPort());\n var absolute = /^https?:\\/\\//i.test(href) && href.indexOf(location.origin) !== 0 && !servedFromHMRServer;\n if (!absolute) {\n updateLink(links[i]);\n }\n }\n cssTimeout = null;\n }, 50);\n}\nfunction hmrDownload(asset) {\n if (asset.type === 'js') {\n if (typeof document !== 'undefined') {\n let script = document.createElement('script');\n script.src = asset.url + '?t=' + Date.now();\n if (asset.outputFormat === 'esmodule') {\n script.type = 'module';\n }\n return new Promise((resolve, reject) => {\n var _document$head;\n script.onload = () => resolve(script);\n script.onerror = reject;\n (_document$head = document.head) === null || _document$head === void 0 || _document$head.appendChild(script);\n });\n } else if (typeof importScripts === 'function') {\n // Worker scripts\n if (asset.outputFormat === 'esmodule') {\n return __parcel__import__(asset.url + '?t=' + Date.now());\n } else {\n return new Promise((resolve, reject) => {\n try {\n __parcel__importScripts__(asset.url + '?t=' + Date.now());\n resolve();\n } catch (err) {\n reject(err);\n }\n });\n }\n }\n }\n}\nasync function hmrApplyUpdates(assets) {\n global.parcelHotUpdate = Object.create(null);\n let scriptsToRemove;\n try {\n // If sourceURL comments aren't supported in eval, we need to load\n // the update from the dev server over HTTP so that stack traces\n // are correct in errors/logs. This is much slower than eval, so\n // we only do it if needed (currently just Safari).\n // https://bugs.webkit.org/show_bug.cgi?id=137297\n // This path is also taken if a CSP disallows eval.\n if (!supportsSourceURL) {\n let promises = assets.map(asset => {\n var _hmrDownload;\n return (_hmrDownload = hmrDownload(asset)) === null || _hmrDownload === void 0 ? void 0 : _hmrDownload.catch(err => {\n // Web extension fix\n if (extCtx && extCtx.runtime && extCtx.runtime.getManifest().manifest_version == 3 && typeof ServiceWorkerGlobalScope != 'undefined' && global instanceof ServiceWorkerGlobalScope) {\n extCtx.runtime.reload();\n return;\n }\n throw err;\n });\n });\n scriptsToRemove = await Promise.all(promises);\n }\n assets.forEach(function (asset) {\n hmrApply(module.bundle.root, asset);\n });\n } finally {\n delete global.parcelHotUpdate;\n if (scriptsToRemove) {\n scriptsToRemove.forEach(script => {\n if (script) {\n var _document$head2;\n (_document$head2 = document.head) === null || _document$head2 === void 0 || _document$head2.removeChild(script);\n }\n });\n }\n }\n}\nfunction hmrApply(bundle /*: ParcelRequire */, asset /*: HMRAsset */) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n if (asset.type === 'css') {\n reloadCSS();\n } else if (asset.type === 'js') {\n let deps = asset.depsByBundle[bundle.HMR_BUNDLE_ID];\n if (deps) {\n if (modules[asset.id]) {\n // Remove dependencies that are removed and will become orphaned.\n // This is necessary so that if the asset is added back again, the cache is gone, and we prevent a full page reload.\n let oldDeps = modules[asset.id][1];\n for (let dep in oldDeps) {\n if (!deps[dep] || deps[dep] !== oldDeps[dep]) {\n let id = oldDeps[dep];\n let parents = getParents(module.bundle.root, id);\n if (parents.length === 1) {\n hmrDelete(module.bundle.root, id);\n }\n }\n }\n }\n if (supportsSourceURL) {\n // Global eval. We would use `new Function` here but browser\n // support for source maps is better with eval.\n (0, eval)(asset.output);\n }\n\n // $FlowFixMe\n let fn = global.parcelHotUpdate[asset.id];\n modules[asset.id] = [fn, deps];\n } else if (bundle.parent) {\n hmrApply(bundle.parent, asset);\n }\n }\n}\nfunction hmrDelete(bundle, id) {\n let modules = bundle.modules;\n if (!modules) {\n return;\n }\n if (modules[id]) {\n // Collect dependencies that will become orphaned when this module is deleted.\n let deps = modules[id][1];\n let orphans = [];\n for (let dep in deps) {\n let parents = getParents(module.bundle.root, deps[dep]);\n if (parents.length === 1) {\n orphans.push(deps[dep]);\n }\n }\n\n // Delete the module. This must be done before deleting dependencies in case of circular dependencies.\n delete modules[id];\n delete bundle.cache[id];\n\n // Now delete the orphans.\n orphans.forEach(id => {\n hmrDelete(module.bundle.root, id);\n });\n } else if (bundle.parent) {\n hmrDelete(bundle.parent, id);\n }\n}\nfunction hmrAcceptCheck(bundle /*: ParcelRequire */, id /*: string */, depsByBundle /*: ?{ [string]: { [string]: string } }*/) {\n if (hmrAcceptCheckOne(bundle, id, depsByBundle)) {\n return true;\n }\n\n // Traverse parents breadth first. All possible ancestries must accept the HMR update, or we'll reload.\n let parents = getParents(module.bundle.root, id);\n let accepted = false;\n while (parents.length > 0) {\n let v = parents.shift();\n let a = hmrAcceptCheckOne(v[0], v[1], null);\n if (a) {\n // If this parent accepts, stop traversing upward, but still consider siblings.\n accepted = true;\n } else {\n // Otherwise, queue the parents in the next level upward.\n let p = getParents(module.bundle.root, v[1]);\n if (p.length === 0) {\n // If there are no parents, then we've reached an entry without accepting. Reload.\n accepted = false;\n break;\n }\n parents.push(...p);\n }\n }\n return accepted;\n}\nfunction hmrAcceptCheckOne(bundle /*: ParcelRequire */, id /*: string */, depsByBundle /*: ?{ [string]: { [string]: string } }*/) {\n var modules = bundle.modules;\n if (!modules) {\n return;\n }\n if (depsByBundle && !depsByBundle[bundle.HMR_BUNDLE_ID]) {\n // If we reached the root bundle without finding where the asset should go,\n // there's nothing to do. Mark as \"accepted\" so we don't reload the page.\n if (!bundle.parent) {\n return true;\n }\n return hmrAcceptCheck(bundle.parent, id, depsByBundle);\n }\n if (checkedAssets[id]) {\n return true;\n }\n checkedAssets[id] = true;\n var cached = bundle.cache[id];\n assetsToDispose.push([bundle, id]);\n if (!cached || cached.hot && cached.hot._acceptCallbacks.length) {\n assetsToAccept.push([bundle, id]);\n return true;\n }\n}\nfunction hmrDispose(bundle /*: ParcelRequire */, id /*: string */) {\n var cached = bundle.cache[id];\n bundle.hotData[id] = {};\n if (cached && cached.hot) {\n cached.hot.data = bundle.hotData[id];\n }\n if (cached && cached.hot && cached.hot._disposeCallbacks.length) {\n cached.hot._disposeCallbacks.forEach(function (cb) {\n cb(bundle.hotData[id]);\n });\n }\n delete bundle.cache[id];\n}\nfunction hmrAccept(bundle /*: ParcelRequire */, id /*: string */) {\n // Execute the module.\n bundle(id);\n\n // Run the accept callbacks in the new version of the module.\n var cached = bundle.cache[id];\n if (cached && cached.hot && cached.hot._acceptCallbacks.length) {\n cached.hot._acceptCallbacks.forEach(function (cb) {\n var assetsToAlsoAccept = cb(function () {\n return getParents(module.bundle.root, id);\n });\n if (assetsToAlsoAccept && assetsToAccept.length) {\n assetsToAlsoAccept.forEach(function (a) {\n hmrDispose(a[0], a[1]);\n });\n\n // $FlowFixMe[method-unbinding]\n assetsToAccept.push.apply(assetsToAccept, assetsToAlsoAccept);\n }\n });\n }\n}","import './info'\nimport { debug } from './components/debug'\nimport { Point } from 'paper'\nimport { Puzzle } from './components/puzzle'\nimport { OffsetCoordinates } from './components/coordinates/offset'\n\nif (process.env.NODE_ENV === 'production') {\n require('./analytics')\n require('./feedback')\n}\n\nconst puzzle = new Puzzle()\nconst beaming = { debug, puzzle }\n\n// Used by functional tests\nbeaming.centerOnTile = function (r, c) {\n return puzzle.centerOnTile(new OffsetCoordinates(r, c))\n}\n\nbeaming.clearDebugPoints = puzzle.clearDebugPoints.bind(puzzle)\nbeaming.drawDebugPoint = function (x, y, style) {\n return puzzle.drawDebugPoint(new Point(x, y), style)\n}\n\n// Export\nwindow.beaming = beaming\n","const container = document.getElementById('feedback-container')\nconst dialog = document.getElementById('dialog')\nconst help = document.getElementById('help')\n\ndocument.getElementById('info').addEventListener('click', () => {\n if (!dialog.open) {\n dialog.showModal()\n }\n})\n\ndocument.getElementById('feedback').addEventListener('click', () => {\n help.setAttribute('open', 'true')\n container.scrollIntoView(true)\n})\n","import { params } from './util'\n\nconst console = window.console = window.console || { debug: function () {} }\nconst consoleDebug = console.debug\n\nexport function debug (debug) {\n console.debug = debug ? consoleDebug : function () {}\n}\n\n// Silence debug logging by default\ndebug(params.has('debug') ?? false)\n","import * as jsonDiffPatchFactory from 'jsondiffpatch'\nimport pako from 'pako'\nimport chroma from 'chroma-js'\nimport { Point } from 'paper'\n\nconst location = window.location\n\nexport const params = new URLSearchParams(location.search)\nexport const url = new URL(location)\n\n// noinspection JSCheckFunctionSignatures\nexport const jsonDiffPatch = jsonDiffPatchFactory.create({ objectHash: deepEqual })\n\nexport function addClass (className, ...elements) {\n elements.forEach((element) => element.classList.add(className))\n}\n\nexport function addDegrees (original, degrees) {\n const result = original + degrees\n if (result < 0) return 360 + result\n else if (result > 360) return result - 360\n return result\n}\n\nexport function addDirection (direction, amount) {\n return ((direction + amount) + 6) % 6\n}\n\nexport function base64decode (string) {\n const binString = window.atob(base64unescape(string))\n // noinspection JSCheckFunctionSignatures\n return new TextDecoder().decode(pako.inflate(Uint8Array.from(binString, (c) => c.codePointAt(0))))\n}\n\nwindow.base64decode = base64decode\n\nexport function base64encode (string) {\n return base64escape(window.btoa(String.fromCodePoint(...pako.deflate(new TextEncoder().encode(string)))))\n}\n\nwindow.base64encode = base64encode\n\nfunction base64escape (string) {\n // https://en.wikipedia.org/wiki/Base64#URL_applications\n return string.replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=/g, '')\n}\n\nfunction base64unescape (string) {\n return (string + '==='.slice((string.length + 3) % 4))\n .replace(/-/g, '+').replace(/_/g, '/')\n}\n\nexport function capitalize (string) {\n return string.charAt(0).toUpperCase() + string.slice(1)\n}\n\nexport function coalesce (...args) {\n return args.findLast((arg) => arg !== undefined)\n}\n\n/**\n * Calls the given function one time after a task has finished for the given amount of time.\n * @param func the function to call\n * @param delay the time to wait after the task has completed\n * @returns {(function(...[*]): void)|*}\n */\nexport function debounce (func, delay = 500) {\n let timeout\n return (...args) => {\n clearTimeout(timeout)\n timeout = setTimeout(() => {\n func(...args)\n }, delay)\n }\n}\n\nexport function deepEqual (x, y) {\n return typeof x === 'object' && typeof y === 'object'\n ? (\n Object.keys(x).length === Object.keys(y).length &&\n Object.keys(x).every(key => {\n const xv = x[key]\n const yv = y[key]\n return Object.hasOwn(y, key) &&\n (typeof xv?.equals === 'function' ? xv.equals(yv) : deepEqual(xv, yv))\n })\n )\n : (x === y)\n}\n\nexport function emitEvent (event, detail = null) {\n document.dispatchEvent(new CustomEvent(event, { detail }))\n}\n\nexport function fuzzyEquals (pointA, pointB, maxDiff = 0) {\n return pointA && pointB && pointA.round().subtract(pointB.round()).length <= maxDiff\n}\n\nexport function getCentroid (triangle) {\n const segments = triangle.segments\n const vertex = segments[0].point\n const opposite = segments[1].point.subtract(segments[1].point.subtract(segments[2].point).divide(2))\n return vertex.add(opposite.subtract(vertex).multiply(2 / 3))\n}\n\nexport function getColorElement (color) {\n const span = document.createElement('span')\n span.classList.add('beam')\n span.style.backgroundColor = color\n span.title = color\n return span\n}\n\nexport function getColorElements (colors) {\n if (!colors.length) {\n return []\n }\n\n const color = chroma.average(colors).hex()\n const elements = []\n\n if (colors.some((other) => other !== color)) {\n const maxColorIndex = colors.length - 1\n\n colors.forEach((color, index) => {\n elements.push(getColorElement(color))\n if (index < maxColorIndex) {\n const plus = document.createElement('span')\n plus.classList.add('text')\n plus.textContent = '+'\n elements.push(plus)\n }\n })\n\n const equals = document.createElement('span')\n equals.classList.add('text')\n equals.textContent = '='\n elements.push(equals)\n }\n\n elements.push(getColorElement(color))\n\n return elements\n}\n\nexport function getDistance (point) {\n return (a, b) => a.subtract(point).length - b.subtract(point).length\n}\n\nexport function getIconElement (name, title) {\n const span = document.createElement('span')\n span.classList.add('icon', 'material-symbols-outlined')\n span.textContent = name\n span.title = title ?? capitalize(name)\n return span\n}\n\nexport function getPointBetween (pointA, pointB, length = (length) => length / 2) {\n const vector = pointA.subtract(pointB)\n vector.length = typeof length === 'function' ? length(vector.length) : length\n return pointA.subtract(vector)\n}\n\nexport function getPointFrom (point, length, direction) {\n const vector = new Point(0, 0)\n vector.length = length\n vector.angle = getConvertedDirection(direction) * 60\n return point.add(vector)\n}\n\nexport function getOppositeDirection (direction) {\n return direction + (direction >= 3 ? -3 : 3)\n}\n\n// Normalize the direction. Currently, directions correspond to points in the hexagon as PaperJS draws it, with the\n// first point (direction zero) corresponding to direction 4 in the cube system. May want to revisit this at some\n// point when standardizing directions across everything.\n// See: http://paperjs.org/tutorials/geometry/vector-geometry/\n// TODO: may want to consider updating directions across this project to something more uniform\nexport function getConvertedDirection (direction, toPaperJs = true) {\n direction = direction + (toPaperJs ? -1 : 1) * 2\n if (direction < 0) return direction + 6\n else if (direction > 5) return direction - 6\n return direction\n}\n\n// Gets the position of the point relative to the line.\n// Returns 0 if point is on the line, +1 on one side of the line and -1 on the other.\nexport function getPosition (line, point) {\n const [a, b] = line; const c = point\n return Math.sign((b.x - a.x) * (c.y - a.y) - (b.y - a.y) * (c.x - a.x))\n}\n\nexport function getReflectedDirection (beamDirection, reflectorDirection) {\n // Have to convert to PaperJS directions on the way in\n const beamAngle = getConvertedDirection(beamDirection, true) * 60\n const reflectorAngle = reflectorDirection * 30\n const reflectedBeamAngle = (reflectorAngle - beamAngle) * 2\n // And convert back to our normal directions on the way out\n return getConvertedDirection((addDegrees(beamAngle, reflectedBeamAngle) / 60) % 6, false)\n}\n\nexport function getTextElement (text) {\n const span = document.createElement('span')\n span.classList.add('text')\n span.textContent = text.toString()\n return span\n}\n\nexport function noop (value) {\n if (value) {\n return value\n }\n}\n\nexport function removeClass (className, ...elements) {\n elements.forEach((element) => element.classList.remove(className))\n}\n\nexport function subtractDirection (direction, amount) {\n return addDirection(direction, amount * -1)\n}\n\nexport function uniqueBy (array, key) {\n const values = array.map((value) => value[key])\n return array.filter((value, index) => !values.includes(value[key], index + 1))\n}\n\nexport function uniqueId () {\n return crypto.randomUUID().split('-')[0]\n}\n","import DiffPatcher from './diffpatcher.js';\nimport dateReviver from './date-reviver.js';\nexport { DiffPatcher, dateReviver };\nexport function create(options) {\n return new DiffPatcher(options);\n}\nlet defaultInstance;\nexport function diff(left, right) {\n if (!defaultInstance) {\n defaultInstance = new DiffPatcher();\n }\n return defaultInstance.diff(left, right);\n}\nexport function patch(left, delta) {\n if (!defaultInstance) {\n defaultInstance = new DiffPatcher();\n }\n return defaultInstance.patch(left, delta);\n}\nexport function unpatch(right, delta) {\n if (!defaultInstance) {\n defaultInstance = new DiffPatcher();\n }\n return defaultInstance.unpatch(right, delta);\n}\nexport function reverse(delta) {\n if (!defaultInstance) {\n defaultInstance = new DiffPatcher();\n }\n return defaultInstance.reverse(delta);\n}\nexport function clone(value) {\n if (!defaultInstance) {\n defaultInstance = new DiffPatcher();\n }\n return defaultInstance.clone(value);\n}\n","import Processor from './processor.js';\nimport Pipe from './pipe.js';\nimport DiffContext from './contexts/diff.js';\nimport PatchContext from './contexts/patch.js';\nimport ReverseContext from './contexts/reverse.js';\nimport clone from './clone.js';\nimport * as trivial from './filters/trivial.js';\nimport * as nested from './filters/nested.js';\nimport * as arrays from './filters/arrays.js';\nimport * as dates from './filters/dates.js';\nimport * as texts from './filters/texts.js';\nclass DiffPatcher {\n constructor(options) {\n this.processor = new Processor(options);\n this.processor.pipe(new Pipe('diff')\n .append(nested.collectChildrenDiffFilter, trivial.diffFilter, dates.diffFilter, texts.diffFilter, nested.objectsDiffFilter, arrays.diffFilter)\n .shouldHaveResult());\n this.processor.pipe(new Pipe('patch')\n .append(nested.collectChildrenPatchFilter, arrays.collectChildrenPatchFilter, trivial.patchFilter, texts.patchFilter, nested.patchFilter, arrays.patchFilter)\n .shouldHaveResult());\n this.processor.pipe(new Pipe('reverse')\n .append(nested.collectChildrenReverseFilter, arrays.collectChildrenReverseFilter, trivial.reverseFilter, texts.reverseFilter, nested.reverseFilter, arrays.reverseFilter)\n .shouldHaveResult());\n }\n options(options) {\n return this.processor.options(options);\n }\n diff(left, right) {\n return this.processor.process(new DiffContext(left, right));\n }\n patch(left, delta) {\n return this.processor.process(new PatchContext(left, delta));\n }\n reverse(delta) {\n return this.processor.process(new ReverseContext(delta));\n }\n unpatch(right, delta) {\n return this.patch(right, this.reverse(delta));\n }\n clone(value) {\n return clone(value);\n }\n}\nexport default DiffPatcher;\n","class Processor {\n constructor(options) {\n this.selfOptions = options || {};\n this.pipes = {};\n }\n options(options) {\n if (options) {\n this.selfOptions = options;\n }\n return this.selfOptions;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n pipe(name, pipeArg) {\n let pipe = pipeArg;\n if (typeof name === 'string') {\n if (typeof pipe === 'undefined') {\n return this.pipes[name];\n }\n else {\n this.pipes[name] = pipe;\n }\n }\n if (name && name.name) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n pipe = name;\n if (pipe.processor === this) {\n return pipe;\n }\n this.pipes[pipe.name] = pipe;\n }\n pipe.processor = this;\n return pipe;\n }\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n process(input, pipe) {\n let context = input;\n context.options = this.options();\n let nextPipe = pipe || input.pipe || 'default';\n let lastPipe;\n while (nextPipe) {\n if (typeof context.nextAfterChildren !== 'undefined') {\n // children processed and coming back to parent\n context.next = context.nextAfterChildren;\n context.nextAfterChildren = null;\n }\n if (typeof nextPipe === 'string') {\n nextPipe = this.pipe(nextPipe);\n }\n nextPipe.process(context);\n lastPipe = nextPipe;\n nextPipe = null;\n if (context) {\n if (context.next) {\n context = context.next;\n nextPipe = context.pipe || lastPipe;\n }\n }\n }\n // eslint-disable-next-line @typescript-eslint/no-unsafe-return\n return context.hasResult ? context.result : undefined;\n }\n}\nexport default Processor;\n","exports.interopDefault = function (a) {\n return a && a.__esModule ? a : {default: a};\n};\n\nexports.defineInteropFlag = function (a) {\n Object.defineProperty(a, '__esModule', {value: true});\n};\n\nexports.exportAll = function (source, dest) {\n Object.keys(source).forEach(function (key) {\n if (\n key === 'default' ||\n key === '__esModule' ||\n Object.prototype.hasOwnProperty.call(dest, key)\n ) {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function () {\n return source[key];\n },\n });\n });\n\n return dest;\n};\n\nexports.export = function (dest, destName, get) {\n Object.defineProperty(dest, destName, {\n enumerable: true,\n get: get,\n });\n};\n","// eslint-disable-next-line @typescript-eslint/no-explicit-any\nclass Pipe {\n constructor(name) {\n this.name = name;\n this.filters = [];\n }\n process(input) {\n if (!this.processor) {\n throw new Error('add this pipe to a processor before using it');\n }\n const debug = this.debug;\n const length = this.filters.length;\n const context = input;\n for (let index = 0; index < length; index++) {\n const filter = this.filters[index];\n if (debug) {\n this.log(`filter: ${filter.filterName}`);\n }\n filter(context);\n if (typeof context === 'object' && context.exiting) {\n context.exiting = false;\n break;\n }\n }\n if (!context.next && this.resultCheck) {\n this.resultCheck(context);\n }\n }\n log(msg) {\n console.log(`[jsondiffpatch] ${this.name} pipe, ${msg}`);\n }\n append(...args) {\n this.filters.push(...args);\n return this;\n }\n prepend(...args) {\n this.filters.unshift(...args);\n return this;\n }\n indexOf(filterName) {\n if (!filterName) {\n throw new Error('a filter name is required');\n }\n for (let index = 0; index < this.filters.length; index++) {\n const filter = this.filters[index];\n if (filter.filterName === filterName) {\n return index;\n }\n }\n throw new Error(`filter not found: ${filterName}`);\n }\n list() {\n return this.filters.map((f) => f.filterName);\n }\n after(filterName, ...params) {\n const index = this.indexOf(filterName);\n this.filters.splice(index + 1, 0, ...params);\n return this;\n }\n before(filterName, ...params) {\n const index = this.indexOf(filterName);\n this.filters.splice(index, 0, ...params);\n return this;\n }\n replace(filterName, ...params) {\n const index = this.indexOf(filterName);\n this.filters.splice(index, 1, ...params);\n return this;\n }\n remove(filterName) {\n const index = this.indexOf(filterName);\n this.filters.splice(index, 1);\n return this;\n }\n clear() {\n this.filters.length = 0;\n return this;\n }\n shouldHaveResult(should) {\n if (should === false) {\n this.resultCheck = null;\n return;\n }\n if (this.resultCheck) {\n return;\n }\n this.resultCheck = (context) => {\n if (!context.hasResult) {\n console.log(context);\n const error = new Error(`${this.name} failed`);\n error.noResult = true;\n throw error;\n }\n };\n return this;\n }\n}\nexport default Pipe;\n","import Context from './context.js';\nimport defaultClone from '../clone.js';\nclass DiffContext extends Context {\n constructor(left, right) {\n super();\n this.left = left;\n this.right = right;\n this.pipe = 'diff';\n }\n setResult(result) {\n if (this.options.cloneDiffValues && typeof result === 'object') {\n const clone = typeof this.options.cloneDiffValues === 'function'\n ? this.options.cloneDiffValues\n : defaultClone;\n if (typeof result[0] === 'object') {\n result[0] = clone(result[0]);\n }\n if (typeof result[1] === 'object') {\n result[1] = clone(result[1]);\n }\n }\n return super.setResult(result);\n }\n}\nexport default DiffContext;\n","export default class Context {\n setResult(result) {\n this.result = result;\n this.hasResult = true;\n return this;\n }\n exit() {\n this.exiting = true;\n return this;\n }\n push(child, name) {\n child.parent = this;\n if (typeof name !== 'undefined') {\n child.childName = name;\n }\n child.root = this.root || this;\n child.options = child.options || this.options;\n if (!this.children) {\n this.children = [child];\n this.nextAfterChildren = this.next || null;\n this.next = child;\n }\n else {\n this.children[this.children.length - 1].next = child;\n this.children.push(child);\n }\n child.next = this;\n return this;\n }\n}\n","function cloneRegExp(re) {\n const regexMatch = /^\\/(.*)\\/([gimyu]*)$/.exec(re.toString());\n return new RegExp(regexMatch[1], regexMatch[2]);\n}\nexport default function clone(arg) {\n if (typeof arg !== 'object') {\n return arg;\n }\n if (arg === null) {\n return null;\n }\n if (Array.isArray(arg)) {\n return arg.map(clone);\n }\n if (arg instanceof Date) {\n return new Date(arg.getTime());\n }\n if (arg instanceof RegExp) {\n return cloneRegExp(arg);\n }\n const cloned = {};\n for (const name in arg) {\n if (Object.prototype.hasOwnProperty.call(arg, name)) {\n cloned[name] = clone(arg[name]);\n }\n }\n return cloned;\n}\n","import Context from './context.js';\nclass PatchContext extends Context {\n constructor(left, delta) {\n super();\n this.left = left;\n this.delta = delta;\n this.pipe = 'patch';\n }\n}\nexport default PatchContext;\n","import Context from './context.js';\nclass ReverseContext extends Context {\n constructor(delta) {\n super();\n this.delta = delta;\n this.pipe = 'reverse';\n }\n}\nexport default ReverseContext;\n","export const diffFilter = function trivialMatchesDiffFilter(context) {\n if (context.left === context.right) {\n context.setResult(undefined).exit();\n return;\n }\n if (typeof context.left === 'undefined') {\n if (typeof context.right === 'function') {\n throw new Error('functions are not supported');\n }\n context.setResult([context.right]).exit();\n return;\n }\n if (typeof context.right === 'undefined') {\n context.setResult([context.left, 0, 0]).exit();\n return;\n }\n if (typeof context.left === 'function' ||\n typeof context.right === 'function') {\n throw new Error('functions are not supported');\n }\n context.leftType = context.left === null ? 'null' : typeof context.left;\n context.rightType = context.right === null ? 'null' : typeof context.right;\n if (context.leftType !== context.rightType) {\n context.setResult([context.left, context.right]).exit();\n return;\n }\n if (context.leftType === 'boolean' || context.leftType === 'number') {\n context.setResult([context.left, context.right]).exit();\n return;\n }\n if (context.leftType === 'object') {\n context.leftIsArray = Array.isArray(context.left);\n }\n if (context.rightType === 'object') {\n context.rightIsArray = Array.isArray(context.right);\n }\n if (context.leftIsArray !== context.rightIsArray) {\n context.setResult([context.left, context.right]).exit();\n return;\n }\n if (context.left instanceof RegExp) {\n if (context.right instanceof RegExp) {\n context\n .setResult([context.left.toString(), context.right.toString()])\n .exit();\n }\n else {\n context.setResult([context.left, context.right]).exit();\n }\n }\n};\ndiffFilter.filterName = 'trivial';\nexport const patchFilter = function trivialMatchesPatchFilter(context) {\n if (typeof context.delta === 'undefined') {\n context.setResult(context.left).exit();\n return;\n }\n context.nested = !Array.isArray(context.delta);\n if (context.nested) {\n return;\n }\n const nonNestedDelta = context.delta;\n if (nonNestedDelta.length === 1) {\n context.setResult(nonNestedDelta[0]).exit();\n return;\n }\n if (nonNestedDelta.length === 2) {\n if (context.left instanceof RegExp) {\n const regexArgs = /^\\/(.*)\\/([gimyu]+)$/.exec(nonNestedDelta[1]);\n if (regexArgs) {\n context.setResult(new RegExp(regexArgs[1], regexArgs[2])).exit();\n return;\n }\n }\n context.setResult(nonNestedDelta[1]).exit();\n return;\n }\n if (nonNestedDelta.length === 3 && nonNestedDelta[2] === 0) {\n context.setResult(undefined).exit();\n }\n};\npatchFilter.filterName = 'trivial';\nexport const reverseFilter = function trivialReferseFilter(context) {\n if (typeof context.delta === 'undefined') {\n context.setResult(context.delta).exit();\n return;\n }\n context.nested = !Array.isArray(context.delta);\n if (context.nested) {\n return;\n }\n const nonNestedDelta = context.delta;\n if (nonNestedDelta.length === 1) {\n context.setResult([nonNestedDelta[0], 0, 0]).exit();\n return;\n }\n if (nonNestedDelta.length === 2) {\n context.setResult([nonNestedDelta[1], nonNestedDelta[0]]).exit();\n return;\n }\n if (nonNestedDelta.length === 3 && nonNestedDelta[2] === 0) {\n context.setResult([nonNestedDelta[0]]).exit();\n }\n};\nreverseFilter.filterName = 'trivial';\n","import DiffContext from '../contexts/diff.js';\nimport PatchContext from '../contexts/patch.js';\nimport ReverseContext from '../contexts/reverse.js';\nexport const collectChildrenDiffFilter = (context) => {\n if (!context || !context.children) {\n return;\n }\n const length = context.children.length;\n let child;\n let result = context.result;\n for (let index = 0; index < length; index++) {\n child = context.children[index];\n if (typeof child.result === 'undefined') {\n continue;\n }\n result = result || {};\n result[child.childName] = child.result;\n }\n if (result && context.leftIsArray) {\n result._t = 'a';\n }\n context.setResult(result).exit();\n};\ncollectChildrenDiffFilter.filterName = 'collectChildren';\nexport const objectsDiffFilter = (context) => {\n if (context.leftIsArray || context.leftType !== 'object') {\n return;\n }\n const left = context.left;\n const right = context.right;\n let name;\n let child;\n const propertyFilter = context.options.propertyFilter;\n for (name in left) {\n if (!Object.prototype.hasOwnProperty.call(left, name)) {\n continue;\n }\n if (propertyFilter && !propertyFilter(name, context)) {\n continue;\n }\n child = new DiffContext(left[name], right[name]);\n context.push(child, name);\n }\n for (name in right) {\n if (!Object.prototype.hasOwnProperty.call(right, name)) {\n continue;\n }\n if (propertyFilter && !propertyFilter(name, context)) {\n continue;\n }\n if (typeof left[name] === 'undefined') {\n child = new DiffContext(undefined, right[name]);\n context.push(child, name);\n }\n }\n if (!context.children || context.children.length === 0) {\n context.setResult(undefined).exit();\n return;\n }\n context.exit();\n};\nobjectsDiffFilter.filterName = 'objects';\nexport const patchFilter = function nestedPatchFilter(context) {\n if (!context.nested) {\n return;\n }\n const nestedDelta = context.delta;\n if (nestedDelta._t) {\n return;\n }\n const objectDelta = nestedDelta;\n let name;\n let child;\n for (name in objectDelta) {\n child = new PatchContext(context.left[name], objectDelta[name]);\n context.push(child, name);\n }\n context.exit();\n};\npatchFilter.filterName = 'objects';\nexport const collectChildrenPatchFilter = function collectChildrenPatchFilter(context) {\n if (!context || !context.children) {\n return;\n }\n const deltaWithChildren = context.delta;\n if (deltaWithChildren._t) {\n return;\n }\n const object = context.left;\n const length = context.children.length;\n let child;\n for (let index = 0; index < length; index++) {\n child = context.children[index];\n const property = child.childName;\n if (Object.prototype.hasOwnProperty.call(context.left, property) &&\n child.result === undefined) {\n delete object[property];\n }\n else if (object[property] !== child.result) {\n object[property] = child.result;\n }\n }\n context.setResult(object).exit();\n};\ncollectChildrenPatchFilter.filterName = 'collectChildren';\nexport const reverseFilter = function nestedReverseFilter(context) {\n if (!context.nested) {\n return;\n }\n const nestedDelta = context.delta;\n if (nestedDelta._t) {\n return;\n }\n const objectDelta = context.delta;\n let name;\n let child;\n for (name in objectDelta) {\n child = new ReverseContext(objectDelta[name]);\n context.push(child, name);\n }\n context.exit();\n};\nreverseFilter.filterName = 'objects';\nexport const collectChildrenReverseFilter = (context) => {\n if (!context || !context.children) {\n return;\n }\n const deltaWithChildren = context.delta;\n if (deltaWithChildren._t) {\n return;\n }\n const length = context.children.length;\n let child;\n const delta = {};\n for (let index = 0; index < length; index++) {\n child = context.children[index];\n const property = child.childName;\n if (delta[property] !== child.result) {\n delta[property] = child.result;\n }\n }\n context.setResult(delta).exit();\n};\ncollectChildrenReverseFilter.filterName = 'collectChildren';\n","import DiffContext from '../contexts/diff.js';\nimport PatchContext from '../contexts/patch.js';\nimport ReverseContext from '../contexts/reverse.js';\nimport lcs from './lcs.js';\nconst ARRAY_MOVE = 3;\nfunction arraysHaveMatchByRef(array1, array2, len1, len2) {\n for (let index1 = 0; index1 < len1; index1++) {\n const val1 = array1[index1];\n for (let index2 = 0; index2 < len2; index2++) {\n const val2 = array2[index2];\n if (index1 !== index2 && val1 === val2) {\n return true;\n }\n }\n }\n}\nfunction matchItems(array1, array2, index1, index2, context) {\n const value1 = array1[index1];\n const value2 = array2[index2];\n if (value1 === value2) {\n return true;\n }\n if (typeof value1 !== 'object' || typeof value2 !== 'object') {\n return false;\n }\n const objectHash = context.objectHash;\n if (!objectHash) {\n // no way to match objects was provided, try match by position\n return context.matchByPosition && index1 === index2;\n }\n context.hashCache1 = context.hashCache1 || [];\n let hash1 = context.hashCache1[index1];\n if (typeof hash1 === 'undefined') {\n context.hashCache1[index1] = hash1 = objectHash(value1, index1);\n }\n if (typeof hash1 === 'undefined') {\n return false;\n }\n context.hashCache2 = context.hashCache2 || [];\n let hash2 = context.hashCache2[index2];\n if (typeof hash2 === 'undefined') {\n context.hashCache2[index2] = hash2 = objectHash(value2, index2);\n }\n if (typeof hash2 === 'undefined') {\n return false;\n }\n return hash1 === hash2;\n}\nexport const diffFilter = function arraysDiffFilter(context) {\n if (!context.leftIsArray) {\n return;\n }\n const matchContext = {\n objectHash: context.options && context.options.objectHash,\n matchByPosition: context.options && context.options.matchByPosition,\n };\n let commonHead = 0;\n let commonTail = 0;\n let index;\n let index1;\n let index2;\n const array1 = context.left;\n const array2 = context.right;\n const len1 = array1.length;\n const len2 = array2.length;\n let child;\n if (len1 > 0 &&\n len2 > 0 &&\n !matchContext.objectHash &&\n typeof matchContext.matchByPosition !== 'boolean') {\n matchContext.matchByPosition = !arraysHaveMatchByRef(array1, array2, len1, len2);\n }\n // separate common head\n while (commonHead < len1 &&\n commonHead < len2 &&\n matchItems(array1, array2, commonHead, commonHead, matchContext)) {\n index = commonHead;\n child = new DiffContext(array1[index], array2[index]);\n context.push(child, index);\n commonHead++;\n }\n // separate common tail\n while (commonTail + commonHead < len1 &&\n commonTail + commonHead < len2 &&\n matchItems(array1, array2, len1 - 1 - commonTail, len2 - 1 - commonTail, matchContext)) {\n index1 = len1 - 1 - commonTail;\n index2 = len2 - 1 - commonTail;\n child = new DiffContext(array1[index1], array2[index2]);\n context.push(child, index2);\n commonTail++;\n }\n let result;\n if (commonHead + commonTail === len1) {\n if (len1 === len2) {\n // arrays are identical\n context.setResult(undefined).exit();\n return;\n }\n // trivial case, a block (1 or more consecutive items) was added\n result = result || {\n _t: 'a',\n };\n for (index = commonHead; index < len2 - commonTail; index++) {\n result[index] = [array2[index]];\n }\n context.setResult(result).exit();\n return;\n }\n if (commonHead + commonTail === len2) {\n // trivial case, a block (1 or more consecutive items) was removed\n result = result || {\n _t: 'a',\n };\n for (index = commonHead; index < len1 - commonTail; index++) {\n result[`_${index}`] = [array1[index], 0, 0];\n }\n context.setResult(result).exit();\n return;\n }\n // reset hash cache\n delete matchContext.hashCache1;\n delete matchContext.hashCache2;\n // diff is not trivial, find the LCS (Longest Common Subsequence)\n const trimmed1 = array1.slice(commonHead, len1 - commonTail);\n const trimmed2 = array2.slice(commonHead, len2 - commonTail);\n const seq = lcs.get(trimmed1, trimmed2, matchItems, matchContext);\n const removedItems = [];\n result = result || {\n _t: 'a',\n };\n for (index = commonHead; index < len1 - commonTail; index++) {\n if (seq.indices1.indexOf(index - commonHead) < 0) {\n // removed\n result[`_${index}`] = [array1[index], 0, 0];\n removedItems.push(index);\n }\n }\n let detectMove = true;\n if (context.options &&\n context.options.arrays &&\n context.options.arrays.detectMove === false) {\n detectMove = false;\n }\n let includeValueOnMove = false;\n if (context.options &&\n context.options.arrays &&\n context.options.arrays.includeValueOnMove) {\n includeValueOnMove = true;\n }\n const removedItemsLength = removedItems.length;\n for (index = commonHead; index < len2 - commonTail; index++) {\n const indexOnArray2 = seq.indices2.indexOf(index - commonHead);\n if (indexOnArray2 < 0) {\n // added, try to match with a removed item and register as position move\n let isMove = false;\n if (detectMove && removedItemsLength > 0) {\n for (let removeItemIndex1 = 0; removeItemIndex1 < removedItemsLength; removeItemIndex1++) {\n index1 = removedItems[removeItemIndex1];\n if (matchItems(trimmed1, trimmed2, index1 - commonHead, index - commonHead, matchContext)) {\n // store position move as: [originalValue, newPosition, ARRAY_MOVE]\n result[`_${index1}`].splice(1, 2, index, ARRAY_MOVE);\n if (!includeValueOnMove) {\n // don't include moved value on diff, to save bytes\n result[`_${index1}`][0] = '';\n }\n index2 = index;\n child = new DiffContext(array1[index1], array2[index2]);\n context.push(child, index2);\n removedItems.splice(removeItemIndex1, 1);\n isMove = true;\n break;\n }\n }\n }\n if (!isMove) {\n // added\n result[index] = [array2[index]];\n }\n }\n else {\n // match, do inner diff\n index1 = seq.indices1[indexOnArray2] + commonHead;\n index2 = seq.indices2[indexOnArray2] + commonHead;\n child = new DiffContext(array1[index1], array2[index2]);\n context.push(child, index2);\n }\n }\n context.setResult(result).exit();\n};\ndiffFilter.filterName = 'arrays';\nconst compare = {\n numerically(a, b) {\n return a - b;\n },\n numericallyBy(name) {\n return (a, b) => a[name] - b[name];\n },\n};\nexport const patchFilter = function nestedPatchFilter(context) {\n if (!context.nested) {\n return;\n }\n const nestedDelta = context.delta;\n if (nestedDelta._t !== 'a') {\n return;\n }\n let index;\n let index1;\n const delta = nestedDelta;\n const array = context.left;\n // first, separate removals, insertions and modifications\n let toRemove = [];\n let toInsert = [];\n const toModify = [];\n for (index in delta) {\n if (index !== '_t') {\n if (index[0] === '_') {\n const removedOrMovedIndex = index;\n // removed item from original array\n if (delta[removedOrMovedIndex][2] === 0 ||\n delta[removedOrMovedIndex][2] === ARRAY_MOVE) {\n toRemove.push(parseInt(index.slice(1), 10));\n }\n else {\n throw new Error('only removal or move can be applied at original array indices,' +\n ` invalid diff type: ${delta[removedOrMovedIndex][2]}`);\n }\n }\n else {\n const numberIndex = index;\n if (delta[numberIndex].length === 1) {\n // added item at new array\n toInsert.push({\n index: parseInt(numberIndex, 10),\n value: delta[numberIndex][0],\n });\n }\n else {\n // modified item at new array\n toModify.push({\n index: parseInt(numberIndex, 10),\n delta: delta[numberIndex],\n });\n }\n }\n }\n }\n // remove items, in reverse order to avoid sawing our own floor\n toRemove = toRemove.sort(compare.numerically);\n for (index = toRemove.length - 1; index >= 0; index--) {\n index1 = toRemove[index];\n const indexDiff = delta[`_${index1}`];\n const removedValue = array.splice(index1, 1)[0];\n if (indexDiff[2] === ARRAY_MOVE) {\n // reinsert later\n toInsert.push({\n index: indexDiff[1],\n value: removedValue,\n });\n }\n }\n // insert items, in reverse order to avoid moving our own floor\n toInsert = toInsert.sort(compare.numericallyBy('index'));\n const toInsertLength = toInsert.length;\n for (index = 0; index < toInsertLength; index++) {\n const insertion = toInsert[index];\n array.splice(insertion.index, 0, insertion.value);\n }\n // apply modifications\n const toModifyLength = toModify.length;\n let child;\n if (toModifyLength > 0) {\n for (index = 0; index < toModifyLength; index++) {\n const modification = toModify[index];\n child = new PatchContext(array[modification.index], modification.delta);\n context.push(child, modification.index);\n }\n }\n if (!context.children) {\n context.setResult(array).exit();\n return;\n }\n context.exit();\n};\npatchFilter.filterName = 'arrays';\nexport const collectChildrenPatchFilter = function collectChildrenPatchFilter(context) {\n if (!context || !context.children) {\n return;\n }\n const deltaWithChildren = context.delta;\n if (deltaWithChildren._t !== 'a') {\n return;\n }\n const array = context.left;\n const length = context.children.length;\n let child;\n for (let index = 0; index < length; index++) {\n child = context.children[index];\n const arrayIndex = child.childName;\n array[arrayIndex] = child.result;\n }\n context.setResult(array).exit();\n};\ncollectChildrenPatchFilter.filterName = 'arraysCollectChildren';\nexport const reverseFilter = function arraysReverseFilter(context) {\n if (!context.nested) {\n const nonNestedDelta = context.delta;\n if (nonNestedDelta[2] === ARRAY_MOVE) {\n const arrayMoveDelta = nonNestedDelta;\n context.newName = `_${arrayMoveDelta[1]}`;\n context\n .setResult([\n arrayMoveDelta[0],\n parseInt(context.childName.substring(1), 10),\n ARRAY_MOVE,\n ])\n .exit();\n }\n return;\n }\n const nestedDelta = context.delta;\n if (nestedDelta._t !== 'a') {\n return;\n }\n const arrayDelta = nestedDelta;\n let name;\n let child;\n for (name in arrayDelta) {\n if (name === '_t') {\n continue;\n }\n child = new ReverseContext(arrayDelta[name]);\n context.push(child, name);\n }\n context.exit();\n};\nreverseFilter.filterName = 'arrays';\nconst reverseArrayDeltaIndex = (delta, index, itemDelta) => {\n if (typeof index === 'string' && index[0] === '_') {\n return parseInt(index.substring(1), 10);\n }\n else if (Array.isArray(itemDelta) && itemDelta[2] === 0) {\n return `_${index}`;\n }\n let reverseIndex = +index;\n for (const deltaIndex in delta) {\n const deltaItem = delta[deltaIndex];\n if (Array.isArray(deltaItem)) {\n if (deltaItem[2] === ARRAY_MOVE) {\n const moveFromIndex = parseInt(deltaIndex.substring(1), 10);\n const moveToIndex = deltaItem[1];\n if (moveToIndex === +index) {\n return moveFromIndex;\n }\n if (moveFromIndex <= reverseIndex && moveToIndex > reverseIndex) {\n reverseIndex++;\n }\n else if (moveFromIndex >= reverseIndex &&\n moveToIndex < reverseIndex) {\n reverseIndex--;\n }\n }\n else if (deltaItem[2] === 0) {\n const deleteIndex = parseInt(deltaIndex.substring(1), 10);\n if (deleteIndex <= reverseIndex) {\n reverseIndex++;\n }\n }\n else if (deltaItem.length === 1 &&\n parseInt(deltaIndex, 10) <= reverseIndex) {\n reverseIndex--;\n }\n }\n }\n return reverseIndex;\n};\nexport const collectChildrenReverseFilter = (context) => {\n if (!context || !context.children) {\n return;\n }\n const deltaWithChildren = context.delta;\n if (deltaWithChildren._t !== 'a') {\n return;\n }\n const arrayDelta = deltaWithChildren;\n const length = context.children.length;\n let child;\n const delta = {\n _t: 'a',\n };\n for (let index = 0; index < length; index++) {\n child = context.children[index];\n let name = child.newName;\n if (typeof name === 'undefined') {\n name = reverseArrayDeltaIndex(arrayDelta, child.childName, child.result);\n }\n if (delta[name] !== child.result) {\n // There's no way to type this well.\n delta[name] = child.result;\n }\n }\n context.setResult(delta).exit();\n};\ncollectChildrenReverseFilter.filterName = 'arraysCollectChildren';\n","/*\n\nLCS implementation that supports arrays or strings\n\nreference: http://en.wikipedia.org/wiki/Longest_common_subsequence_problem\n\n*/\nconst defaultMatch = function (array1, array2, index1, index2) {\n return array1[index1] === array2[index2];\n};\nconst lengthMatrix = function (array1, array2, match, context) {\n const len1 = array1.length;\n const len2 = array2.length;\n let x, y;\n // initialize empty matrix of len1+1 x len2+1\n const matrix = new Array(len1 + 1);\n for (x = 0; x < len1 + 1; x++) {\n matrix[x] = new Array(len2 + 1);\n for (y = 0; y < len2 + 1; y++) {\n matrix[x][y] = 0;\n }\n }\n matrix.match = match;\n // save sequence lengths for each coordinate\n for (x = 1; x < len1 + 1; x++) {\n for (y = 1; y < len2 + 1; y++) {\n if (match(array1, array2, x - 1, y - 1, context)) {\n matrix[x][y] = matrix[x - 1][y - 1] + 1;\n }\n else {\n matrix[x][y] = Math.max(matrix[x - 1][y], matrix[x][y - 1]);\n }\n }\n }\n return matrix;\n};\nconst backtrack = function (matrix, array1, array2, context) {\n let index1 = array1.length;\n let index2 = array2.length;\n const subsequence = {\n sequence: [],\n indices1: [],\n indices2: [],\n };\n while (index1 !== 0 && index2 !== 0) {\n const sameLetter = matrix.match(array1, array2, index1 - 1, index2 - 1, context);\n if (sameLetter) {\n subsequence.sequence.unshift(array1[index1 - 1]);\n subsequence.indices1.unshift(index1 - 1);\n subsequence.indices2.unshift(index2 - 1);\n --index1;\n --index2;\n }\n else {\n const valueAtMatrixAbove = matrix[index1][index2 - 1];\n const valueAtMatrixLeft = matrix[index1 - 1][index2];\n if (valueAtMatrixAbove > valueAtMatrixLeft) {\n --index2;\n }\n else {\n --index1;\n }\n }\n }\n return subsequence;\n};\nconst get = function (array1, array2, match, context) {\n const innerContext = context || {};\n const matrix = lengthMatrix(array1, array2, match || defaultMatch, innerContext);\n return backtrack(matrix, array1, array2, innerContext);\n};\nexport default {\n get,\n};\n","export const diffFilter = function datesDiffFilter(context) {\n if (context.left instanceof Date) {\n if (context.right instanceof Date) {\n if (context.left.getTime() !== context.right.getTime()) {\n context.setResult([context.left, context.right]);\n }\n else {\n context.setResult(undefined);\n }\n }\n else {\n context.setResult([context.left, context.right]);\n }\n context.exit();\n }\n else if (context.right instanceof Date) {\n context.setResult([context.left, context.right]).exit();\n }\n};\ndiffFilter.filterName = 'dates';\n","const TEXT_DIFF = 2;\nconst DEFAULT_MIN_LENGTH = 60;\nlet cachedDiffPatch = null;\nfunction getDiffMatchPatch(options, required) {\n var _a;\n if (!cachedDiffPatch) {\n let instance;\n if ((_a = options === null || options === void 0 ? void 0 : options.textDiff) === null || _a === void 0 ? void 0 : _a.diffMatchPatch) {\n instance = new options.textDiff.diffMatchPatch();\n }\n else {\n if (!required) {\n return null;\n }\n const error = new Error('The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.');\n // eslint-disable-next-line camelcase\n error.diff_match_patch_not_found = true;\n throw error;\n }\n cachedDiffPatch = {\n diff: function (txt1, txt2) {\n return instance.patch_toText(instance.patch_make(txt1, txt2));\n },\n patch: function (txt1, patch) {\n const results = instance.patch_apply(instance.patch_fromText(patch), txt1);\n for (let i = 0; i < results[1].length; i++) {\n if (!results[1][i]) {\n const error = new Error('text patch failed');\n error.textPatchFailed = true;\n }\n }\n return results[0];\n },\n };\n }\n return cachedDiffPatch;\n}\nexport const diffFilter = function textsDiffFilter(context) {\n if (context.leftType !== 'string') {\n return;\n }\n const left = context.left;\n const right = context.right;\n const minLength = (context.options &&\n context.options.textDiff &&\n context.options.textDiff.minLength) ||\n DEFAULT_MIN_LENGTH;\n if (left.length < minLength || right.length < minLength) {\n context.setResult([left, right]).exit();\n return;\n }\n // large text, try to use a text-diff algorithm\n const diffMatchPatch = getDiffMatchPatch(context.options);\n if (!diffMatchPatch) {\n // diff-match-patch library not available,\n // fallback to regular string replace\n context.setResult([left, right]).exit();\n return;\n }\n const diff = diffMatchPatch.diff;\n context.setResult([diff(left, right), 0, TEXT_DIFF]).exit();\n};\ndiffFilter.filterName = 'texts';\nexport const patchFilter = function textsPatchFilter(context) {\n if (context.nested) {\n return;\n }\n const nonNestedDelta = context.delta;\n if (nonNestedDelta[2] !== TEXT_DIFF) {\n return;\n }\n const textDiffDelta = nonNestedDelta;\n // text-diff, use a text-patch algorithm\n const patch = getDiffMatchPatch(context.options, true).patch;\n context.setResult(patch(context.left, textDiffDelta[0])).exit();\n};\npatchFilter.filterName = 'texts';\nconst textDeltaReverse = function (delta) {\n let i;\n let l;\n let line;\n let lineTmp;\n let header = null;\n const headerRegex = /^@@ +-(\\d+),(\\d+) +\\+(\\d+),(\\d+) +@@$/;\n let lineHeader;\n const lines = delta.split('\\n');\n for (i = 0, l = lines.length; i < l; i++) {\n line = lines[i];\n const lineStart = line.slice(0, 1);\n if (lineStart === '@') {\n header = headerRegex.exec(line);\n lineHeader = i;\n // fix header\n lines[lineHeader] =\n '@@ -' +\n header[3] +\n ',' +\n header[4] +\n ' +' +\n header[1] +\n ',' +\n header[2] +\n ' @@';\n }\n else if (lineStart === '+') {\n lines[i] = '-' + lines[i].slice(1);\n if (lines[i - 1].slice(0, 1) === '+') {\n // swap lines to keep default order (-+)\n lineTmp = lines[i];\n lines[i] = lines[i - 1];\n lines[i - 1] = lineTmp;\n }\n }\n else if (lineStart === '-') {\n lines[i] = '+' + lines[i].slice(1);\n }\n }\n return lines.join('\\n');\n};\nexport const reverseFilter = function textsReverseFilter(context) {\n if (context.nested) {\n return;\n }\n const nonNestedDelta = context.delta;\n if (nonNestedDelta[2] !== TEXT_DIFF) {\n return;\n }\n const textDiffDelta = nonNestedDelta;\n // text-diff, use a text-diff algorithm\n context\n .setResult([textDeltaReverse(textDiffDelta[0]), 0, TEXT_DIFF])\n .exit();\n};\nreverseFilter.filterName = 'texts';\n","// use as 2nd parameter for JSON.parse to revive Date instances\nexport default function dateReviver(key, value) {\n let parts;\n if (typeof value === 'string') {\n parts =\n /^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d*))?(Z|([+-])(\\d{2}):(\\d{2}))$/.exec(value);\n if (parts) {\n return new Date(Date.UTC(+parts[1], +parts[2] - 1, +parts[3], +parts[4], +parts[5], +parts[6], +(parts[7] || 0)));\n }\n }\n return value;\n}\n","\n/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n/* eslint-disable space-unary-ops */\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\n\n//const Z_FILTERED = 1;\n//const Z_HUFFMAN_ONLY = 2;\n//const Z_RLE = 3;\nconst Z_FIXED$1 = 4;\n//const Z_DEFAULT_STRATEGY = 0;\n\n/* Possible values of the data_type field (though see inflate()) */\nconst Z_BINARY = 0;\nconst Z_TEXT = 1;\n//const Z_ASCII = 1; // = Z_TEXT\nconst Z_UNKNOWN$1 = 2;\n\n/*============================================================================*/\n\n\nfunction zero$1(buf) { let len = buf.length; while (--len >= 0) { buf[len] = 0; } }\n\n// From zutil.h\n\nconst STORED_BLOCK = 0;\nconst STATIC_TREES = 1;\nconst DYN_TREES = 2;\n/* The three kinds of block type */\n\nconst MIN_MATCH$1 = 3;\nconst MAX_MATCH$1 = 258;\n/* The minimum and maximum match lengths */\n\n// From deflate.h\n/* ===========================================================================\n * Internal compression state.\n */\n\nconst LENGTH_CODES$1 = 29;\n/* number of length codes, not counting the special END_BLOCK code */\n\nconst LITERALS$1 = 256;\n/* number of literal bytes 0..255 */\n\nconst L_CODES$1 = LITERALS$1 + 1 + LENGTH_CODES$1;\n/* number of Literal or Length codes, including the END_BLOCK code */\n\nconst D_CODES$1 = 30;\n/* number of distance codes */\n\nconst BL_CODES$1 = 19;\n/* number of codes used to transfer the bit lengths */\n\nconst HEAP_SIZE$1 = 2 * L_CODES$1 + 1;\n/* maximum heap size */\n\nconst MAX_BITS$1 = 15;\n/* All codes must not exceed MAX_BITS bits */\n\nconst Buf_size = 16;\n/* size of bit buffer in bi_buf */\n\n\n/* ===========================================================================\n * Constants\n */\n\nconst MAX_BL_BITS = 7;\n/* Bit length codes must not exceed MAX_BL_BITS bits */\n\nconst END_BLOCK = 256;\n/* end of block literal code */\n\nconst REP_3_6 = 16;\n/* repeat previous bit length 3-6 times (2 bits of repeat count) */\n\nconst REPZ_3_10 = 17;\n/* repeat a zero length 3-10 times (3 bits of repeat count) */\n\nconst REPZ_11_138 = 18;\n/* repeat a zero length 11-138 times (7 bits of repeat count) */\n\n/* eslint-disable comma-spacing,array-bracket-spacing */\nconst extra_lbits = /* extra bits for each length code */\n new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]);\n\nconst extra_dbits = /* extra bits for each distance code */\n new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]);\n\nconst extra_blbits = /* extra bits for each bit length code */\n new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]);\n\nconst bl_order =\n new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);\n/* eslint-enable comma-spacing,array-bracket-spacing */\n\n/* The lengths of the bit length codes are sent in order of decreasing\n * probability, to avoid transmitting the lengths for unused bit length codes.\n */\n\n/* ===========================================================================\n * Local data. These are initialized only once.\n */\n\n// We pre-fill arrays with 0 to avoid uninitialized gaps\n\nconst DIST_CODE_LEN = 512; /* see definition of array dist_code below */\n\n// !!!! Use flat array instead of structure, Freq = i*2, Len = i*2+1\nconst static_ltree = new Array((L_CODES$1 + 2) * 2);\nzero$1(static_ltree);\n/* The static literal tree. Since the bit lengths are imposed, there is no\n * need for the L_CODES extra codes used during heap construction. However\n * The codes 286 and 287 are needed to build a canonical tree (see _tr_init\n * below).\n */\n\nconst static_dtree = new Array(D_CODES$1 * 2);\nzero$1(static_dtree);\n/* The static distance tree. (Actually a trivial tree since all codes use\n * 5 bits.)\n */\n\nconst _dist_code = new Array(DIST_CODE_LEN);\nzero$1(_dist_code);\n/* Distance codes. The first 256 values correspond to the distances\n * 3 .. 258, the last 256 values correspond to the top 8 bits of\n * the 15 bit distances.\n */\n\nconst _length_code = new Array(MAX_MATCH$1 - MIN_MATCH$1 + 1);\nzero$1(_length_code);\n/* length code for each normalized match length (0 == MIN_MATCH) */\n\nconst base_length = new Array(LENGTH_CODES$1);\nzero$1(base_length);\n/* First normalized length for each code (0 = MIN_MATCH) */\n\nconst base_dist = new Array(D_CODES$1);\nzero$1(base_dist);\n/* First normalized distance for each code (0 = distance of 1) */\n\n\nfunction StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {\n\n this.static_tree = static_tree; /* static tree or NULL */\n this.extra_bits = extra_bits; /* extra bits for each code or NULL */\n this.extra_base = extra_base; /* base index for extra_bits */\n this.elems = elems; /* max number of elements in the tree */\n this.max_length = max_length; /* max bit length for the codes */\n\n // show if `static_tree` has data or dummy - needed for monomorphic objects\n this.has_stree = static_tree && static_tree.length;\n}\n\n\nlet static_l_desc;\nlet static_d_desc;\nlet static_bl_desc;\n\n\nfunction TreeDesc(dyn_tree, stat_desc) {\n this.dyn_tree = dyn_tree; /* the dynamic tree */\n this.max_code = 0; /* largest code with non zero frequency */\n this.stat_desc = stat_desc; /* the corresponding static tree */\n}\n\n\n\nconst d_code = (dist) => {\n\n return dist < 256 ? _dist_code[dist] : _dist_code[256 + (dist >>> 7)];\n};\n\n\n/* ===========================================================================\n * Output a short LSB first on the stream.\n * IN assertion: there is enough room in pendingBuf.\n */\nconst put_short = (s, w) => {\n// put_byte(s, (uch)((w) & 0xff));\n// put_byte(s, (uch)((ush)(w) >> 8));\n s.pending_buf[s.pending++] = (w) & 0xff;\n s.pending_buf[s.pending++] = (w >>> 8) & 0xff;\n};\n\n\n/* ===========================================================================\n * Send a value on a given number of bits.\n * IN assertion: length <= 16 and value fits in length bits.\n */\nconst send_bits = (s, value, length) => {\n\n if (s.bi_valid > (Buf_size - length)) {\n s.bi_buf |= (value << s.bi_valid) & 0xffff;\n put_short(s, s.bi_buf);\n s.bi_buf = value >> (Buf_size - s.bi_valid);\n s.bi_valid += length - Buf_size;\n } else {\n s.bi_buf |= (value << s.bi_valid) & 0xffff;\n s.bi_valid += length;\n }\n};\n\n\nconst send_code = (s, c, tree) => {\n\n send_bits(s, tree[c * 2]/*.Code*/, tree[c * 2 + 1]/*.Len*/);\n};\n\n\n/* ===========================================================================\n * Reverse the first len bits of a code, using straightforward code (a faster\n * method would use a table)\n * IN assertion: 1 <= len <= 15\n */\nconst bi_reverse = (code, len) => {\n\n let res = 0;\n do {\n res |= code & 1;\n code >>>= 1;\n res <<= 1;\n } while (--len > 0);\n return res >>> 1;\n};\n\n\n/* ===========================================================================\n * Flush the bit buffer, keeping at most 7 bits in it.\n */\nconst bi_flush = (s) => {\n\n if (s.bi_valid === 16) {\n put_short(s, s.bi_buf);\n s.bi_buf = 0;\n s.bi_valid = 0;\n\n } else if (s.bi_valid >= 8) {\n s.pending_buf[s.pending++] = s.bi_buf & 0xff;\n s.bi_buf >>= 8;\n s.bi_valid -= 8;\n }\n};\n\n\n/* ===========================================================================\n * Compute the optimal bit lengths for a tree and update the total bit length\n * for the current block.\n * IN assertion: the fields freq and dad are set, heap[heap_max] and\n * above are the tree nodes sorted by increasing frequency.\n * OUT assertions: the field len is set to the optimal bit length, the\n * array bl_count contains the frequencies for each bit length.\n * The length opt_len is updated; static_len is also updated if stree is\n * not null.\n */\nconst gen_bitlen = (s, desc) => {\n// deflate_state *s;\n// tree_desc *desc; /* the tree descriptor */\n\n const tree = desc.dyn_tree;\n const max_code = desc.max_code;\n const stree = desc.stat_desc.static_tree;\n const has_stree = desc.stat_desc.has_stree;\n const extra = desc.stat_desc.extra_bits;\n const base = desc.stat_desc.extra_base;\n const max_length = desc.stat_desc.max_length;\n let h; /* heap index */\n let n, m; /* iterate over the tree elements */\n let bits; /* bit length */\n let xbits; /* extra bits */\n let f; /* frequency */\n let overflow = 0; /* number of elements with bit length too large */\n\n for (bits = 0; bits <= MAX_BITS$1; bits++) {\n s.bl_count[bits] = 0;\n }\n\n /* In a first pass, compute the optimal bit lengths (which may\n * overflow in the case of the bit length tree).\n */\n tree[s.heap[s.heap_max] * 2 + 1]/*.Len*/ = 0; /* root of the heap */\n\n for (h = s.heap_max + 1; h < HEAP_SIZE$1; h++) {\n n = s.heap[h];\n bits = tree[tree[n * 2 + 1]/*.Dad*/ * 2 + 1]/*.Len*/ + 1;\n if (bits > max_length) {\n bits = max_length;\n overflow++;\n }\n tree[n * 2 + 1]/*.Len*/ = bits;\n /* We overwrite tree[n].Dad which is no longer needed */\n\n if (n > max_code) { continue; } /* not a leaf node */\n\n s.bl_count[bits]++;\n xbits = 0;\n if (n >= base) {\n xbits = extra[n - base];\n }\n f = tree[n * 2]/*.Freq*/;\n s.opt_len += f * (bits + xbits);\n if (has_stree) {\n s.static_len += f * (stree[n * 2 + 1]/*.Len*/ + xbits);\n }\n }\n if (overflow === 0) { return; }\n\n // Tracev((stderr,\"\\nbit length overflow\\n\"));\n /* This happens for example on obj2 and pic of the Calgary corpus */\n\n /* Find the first bit length which could increase: */\n do {\n bits = max_length - 1;\n while (s.bl_count[bits] === 0) { bits--; }\n s.bl_count[bits]--; /* move one leaf down the tree */\n s.bl_count[bits + 1] += 2; /* move one overflow item as its brother */\n s.bl_count[max_length]--;\n /* The brother of the overflow item also moves one step up,\n * but this does not affect bl_count[max_length]\n */\n overflow -= 2;\n } while (overflow > 0);\n\n /* Now recompute all bit lengths, scanning in increasing frequency.\n * h is still equal to HEAP_SIZE. (It is simpler to reconstruct all\n * lengths instead of fixing only the wrong ones. This idea is taken\n * from 'ar' written by Haruhiko Okumura.)\n */\n for (bits = max_length; bits !== 0; bits--) {\n n = s.bl_count[bits];\n while (n !== 0) {\n m = s.heap[--h];\n if (m > max_code) { continue; }\n if (tree[m * 2 + 1]/*.Len*/ !== bits) {\n // Tracev((stderr,\"code %d bits %d->%d\\n\", m, tree[m].Len, bits));\n s.opt_len += (bits - tree[m * 2 + 1]/*.Len*/) * tree[m * 2]/*.Freq*/;\n tree[m * 2 + 1]/*.Len*/ = bits;\n }\n n--;\n }\n }\n};\n\n\n/* ===========================================================================\n * Generate the codes for a given tree and bit counts (which need not be\n * optimal).\n * IN assertion: the array bl_count contains the bit length statistics for\n * the given tree and the field len is set for all tree elements.\n * OUT assertion: the field code is set for all tree elements of non\n * zero code length.\n */\nconst gen_codes = (tree, max_code, bl_count) => {\n// ct_data *tree; /* the tree to decorate */\n// int max_code; /* largest code with non zero frequency */\n// ushf *bl_count; /* number of codes at each bit length */\n\n const next_code = new Array(MAX_BITS$1 + 1); /* next code value for each bit length */\n let code = 0; /* running code value */\n let bits; /* bit index */\n let n; /* code index */\n\n /* The distribution counts are first used to generate the code values\n * without bit reversal.\n */\n for (bits = 1; bits <= MAX_BITS$1; bits++) {\n code = (code + bl_count[bits - 1]) << 1;\n next_code[bits] = code;\n }\n /* Check that the bit counts in bl_count are consistent. The last code\n * must be all ones.\n */\n //Assert (code + bl_count[MAX_BITS]-1 == (1< {\n\n let n; /* iterates over tree elements */\n let bits; /* bit counter */\n let length; /* length value */\n let code; /* code value */\n let dist; /* distance index */\n const bl_count = new Array(MAX_BITS$1 + 1);\n /* number of codes at each bit length for an optimal tree */\n\n // do check in _tr_init()\n //if (static_init_done) return;\n\n /* For some embedded targets, global variables are not initialized: */\n/*#ifdef NO_INIT_GLOBAL_POINTERS\n static_l_desc.static_tree = static_ltree;\n static_l_desc.extra_bits = extra_lbits;\n static_d_desc.static_tree = static_dtree;\n static_d_desc.extra_bits = extra_dbits;\n static_bl_desc.extra_bits = extra_blbits;\n#endif*/\n\n /* Initialize the mapping length (0..255) -> length code (0..28) */\n length = 0;\n for (code = 0; code < LENGTH_CODES$1 - 1; code++) {\n base_length[code] = length;\n for (n = 0; n < (1 << extra_lbits[code]); n++) {\n _length_code[length++] = code;\n }\n }\n //Assert (length == 256, \"tr_static_init: length != 256\");\n /* Note that the length 255 (match length 258) can be represented\n * in two different ways: code 284 + 5 bits or code 285, so we\n * overwrite length_code[255] to use the best encoding:\n */\n _length_code[length - 1] = code;\n\n /* Initialize the mapping dist (0..32K) -> dist code (0..29) */\n dist = 0;\n for (code = 0; code < 16; code++) {\n base_dist[code] = dist;\n for (n = 0; n < (1 << extra_dbits[code]); n++) {\n _dist_code[dist++] = code;\n }\n }\n //Assert (dist == 256, \"tr_static_init: dist != 256\");\n dist >>= 7; /* from now on, all distances are divided by 128 */\n for (; code < D_CODES$1; code++) {\n base_dist[code] = dist << 7;\n for (n = 0; n < (1 << (extra_dbits[code] - 7)); n++) {\n _dist_code[256 + dist++] = code;\n }\n }\n //Assert (dist == 256, \"tr_static_init: 256+dist != 512\");\n\n /* Construct the codes of the static literal tree */\n for (bits = 0; bits <= MAX_BITS$1; bits++) {\n bl_count[bits] = 0;\n }\n\n n = 0;\n while (n <= 143) {\n static_ltree[n * 2 + 1]/*.Len*/ = 8;\n n++;\n bl_count[8]++;\n }\n while (n <= 255) {\n static_ltree[n * 2 + 1]/*.Len*/ = 9;\n n++;\n bl_count[9]++;\n }\n while (n <= 279) {\n static_ltree[n * 2 + 1]/*.Len*/ = 7;\n n++;\n bl_count[7]++;\n }\n while (n <= 287) {\n static_ltree[n * 2 + 1]/*.Len*/ = 8;\n n++;\n bl_count[8]++;\n }\n /* Codes 286 and 287 do not exist, but we must include them in the\n * tree construction to get a canonical Huffman tree (longest code\n * all ones)\n */\n gen_codes(static_ltree, L_CODES$1 + 1, bl_count);\n\n /* The static distance tree is trivial: */\n for (n = 0; n < D_CODES$1; n++) {\n static_dtree[n * 2 + 1]/*.Len*/ = 5;\n static_dtree[n * 2]/*.Code*/ = bi_reverse(n, 5);\n }\n\n // Now data ready and we can init static trees\n static_l_desc = new StaticTreeDesc(static_ltree, extra_lbits, LITERALS$1 + 1, L_CODES$1, MAX_BITS$1);\n static_d_desc = new StaticTreeDesc(static_dtree, extra_dbits, 0, D_CODES$1, MAX_BITS$1);\n static_bl_desc = new StaticTreeDesc(new Array(0), extra_blbits, 0, BL_CODES$1, MAX_BL_BITS);\n\n //static_init_done = true;\n};\n\n\n/* ===========================================================================\n * Initialize a new block.\n */\nconst init_block = (s) => {\n\n let n; /* iterates over tree elements */\n\n /* Initialize the trees. */\n for (n = 0; n < L_CODES$1; n++) { s.dyn_ltree[n * 2]/*.Freq*/ = 0; }\n for (n = 0; n < D_CODES$1; n++) { s.dyn_dtree[n * 2]/*.Freq*/ = 0; }\n for (n = 0; n < BL_CODES$1; n++) { s.bl_tree[n * 2]/*.Freq*/ = 0; }\n\n s.dyn_ltree[END_BLOCK * 2]/*.Freq*/ = 1;\n s.opt_len = s.static_len = 0;\n s.sym_next = s.matches = 0;\n};\n\n\n/* ===========================================================================\n * Flush the bit buffer and align the output on a byte boundary\n */\nconst bi_windup = (s) =>\n{\n if (s.bi_valid > 8) {\n put_short(s, s.bi_buf);\n } else if (s.bi_valid > 0) {\n //put_byte(s, (Byte)s->bi_buf);\n s.pending_buf[s.pending++] = s.bi_buf;\n }\n s.bi_buf = 0;\n s.bi_valid = 0;\n};\n\n/* ===========================================================================\n * Compares to subtrees, using the tree depth as tie breaker when\n * the subtrees have equal frequency. This minimizes the worst case length.\n */\nconst smaller = (tree, n, m, depth) => {\n\n const _n2 = n * 2;\n const _m2 = m * 2;\n return (tree[_n2]/*.Freq*/ < tree[_m2]/*.Freq*/ ||\n (tree[_n2]/*.Freq*/ === tree[_m2]/*.Freq*/ && depth[n] <= depth[m]));\n};\n\n/* ===========================================================================\n * Restore the heap property by moving down the tree starting at node k,\n * exchanging a node with the smallest of its two sons if necessary, stopping\n * when the heap property is re-established (each father smaller than its\n * two sons).\n */\nconst pqdownheap = (s, tree, k) => {\n// deflate_state *s;\n// ct_data *tree; /* the tree to restore */\n// int k; /* node to move down */\n\n const v = s.heap[k];\n let j = k << 1; /* left son of k */\n while (j <= s.heap_len) {\n /* Set j to the smallest of the two sons: */\n if (j < s.heap_len &&\n smaller(tree, s.heap[j + 1], s.heap[j], s.depth)) {\n j++;\n }\n /* Exit if v is smaller than both sons */\n if (smaller(tree, v, s.heap[j], s.depth)) { break; }\n\n /* Exchange v with the smallest son */\n s.heap[k] = s.heap[j];\n k = j;\n\n /* And continue down the tree, setting j to the left son of k */\n j <<= 1;\n }\n s.heap[k] = v;\n};\n\n\n// inlined manually\n// const SMALLEST = 1;\n\n/* ===========================================================================\n * Send the block data compressed using the given Huffman trees\n */\nconst compress_block = (s, ltree, dtree) => {\n// deflate_state *s;\n// const ct_data *ltree; /* literal tree */\n// const ct_data *dtree; /* distance tree */\n\n let dist; /* distance of matched string */\n let lc; /* match length or unmatched char (if dist == 0) */\n let sx = 0; /* running index in sym_buf */\n let code; /* the code to send */\n let extra; /* number of extra bits to send */\n\n if (s.sym_next !== 0) {\n do {\n dist = s.pending_buf[s.sym_buf + sx++] & 0xff;\n dist += (s.pending_buf[s.sym_buf + sx++] & 0xff) << 8;\n lc = s.pending_buf[s.sym_buf + sx++];\n if (dist === 0) {\n send_code(s, lc, ltree); /* send a literal byte */\n //Tracecv(isgraph(lc), (stderr,\" '%c' \", lc));\n } else {\n /* Here, lc is the match length - MIN_MATCH */\n code = _length_code[lc];\n send_code(s, code + LITERALS$1 + 1, ltree); /* send the length code */\n extra = extra_lbits[code];\n if (extra !== 0) {\n lc -= base_length[code];\n send_bits(s, lc, extra); /* send the extra length bits */\n }\n dist--; /* dist is now the match distance - 1 */\n code = d_code(dist);\n //Assert (code < D_CODES, \"bad d_code\");\n\n send_code(s, code, dtree); /* send the distance code */\n extra = extra_dbits[code];\n if (extra !== 0) {\n dist -= base_dist[code];\n send_bits(s, dist, extra); /* send the extra distance bits */\n }\n } /* literal or match pair ? */\n\n /* Check that the overlay between pending_buf and sym_buf is ok: */\n //Assert(s->pending < s->lit_bufsize + sx, \"pendingBuf overflow\");\n\n } while (sx < s.sym_next);\n }\n\n send_code(s, END_BLOCK, ltree);\n};\n\n\n/* ===========================================================================\n * Construct one Huffman tree and assigns the code bit strings and lengths.\n * Update the total bit length for the current block.\n * IN assertion: the field freq is set for all tree elements.\n * OUT assertions: the fields len and code are set to the optimal bit length\n * and corresponding code. The length opt_len is updated; static_len is\n * also updated if stree is not null. The field max_code is set.\n */\nconst build_tree = (s, desc) => {\n// deflate_state *s;\n// tree_desc *desc; /* the tree descriptor */\n\n const tree = desc.dyn_tree;\n const stree = desc.stat_desc.static_tree;\n const has_stree = desc.stat_desc.has_stree;\n const elems = desc.stat_desc.elems;\n let n, m; /* iterate over heap elements */\n let max_code = -1; /* largest code with non zero frequency */\n let node; /* new node being created */\n\n /* Construct the initial heap, with least frequent element in\n * heap[SMALLEST]. The sons of heap[n] are heap[2*n] and heap[2*n+1].\n * heap[0] is not used.\n */\n s.heap_len = 0;\n s.heap_max = HEAP_SIZE$1;\n\n for (n = 0; n < elems; n++) {\n if (tree[n * 2]/*.Freq*/ !== 0) {\n s.heap[++s.heap_len] = max_code = n;\n s.depth[n] = 0;\n\n } else {\n tree[n * 2 + 1]/*.Len*/ = 0;\n }\n }\n\n /* The pkzip format requires that at least one distance code exists,\n * and that at least one bit should be sent even if there is only one\n * possible code. So to avoid special checks later on we force at least\n * two codes of non zero frequency.\n */\n while (s.heap_len < 2) {\n node = s.heap[++s.heap_len] = (max_code < 2 ? ++max_code : 0);\n tree[node * 2]/*.Freq*/ = 1;\n s.depth[node] = 0;\n s.opt_len--;\n\n if (has_stree) {\n s.static_len -= stree[node * 2 + 1]/*.Len*/;\n }\n /* node is 0 or 1 so it does not have extra bits */\n }\n desc.max_code = max_code;\n\n /* The elements heap[heap_len/2+1 .. heap_len] are leaves of the tree,\n * establish sub-heaps of increasing lengths:\n */\n for (n = (s.heap_len >> 1/*int /2*/); n >= 1; n--) { pqdownheap(s, tree, n); }\n\n /* Construct the Huffman tree by repeatedly combining the least two\n * frequent nodes.\n */\n node = elems; /* next internal node of the tree */\n do {\n //pqremove(s, tree, n); /* n = node of least frequency */\n /*** pqremove ***/\n n = s.heap[1/*SMALLEST*/];\n s.heap[1/*SMALLEST*/] = s.heap[s.heap_len--];\n pqdownheap(s, tree, 1/*SMALLEST*/);\n /***/\n\n m = s.heap[1/*SMALLEST*/]; /* m = node of next least frequency */\n\n s.heap[--s.heap_max] = n; /* keep the nodes sorted by frequency */\n s.heap[--s.heap_max] = m;\n\n /* Create a new node father of n and m */\n tree[node * 2]/*.Freq*/ = tree[n * 2]/*.Freq*/ + tree[m * 2]/*.Freq*/;\n s.depth[node] = (s.depth[n] >= s.depth[m] ? s.depth[n] : s.depth[m]) + 1;\n tree[n * 2 + 1]/*.Dad*/ = tree[m * 2 + 1]/*.Dad*/ = node;\n\n /* and insert the new node in the heap */\n s.heap[1/*SMALLEST*/] = node++;\n pqdownheap(s, tree, 1/*SMALLEST*/);\n\n } while (s.heap_len >= 2);\n\n s.heap[--s.heap_max] = s.heap[1/*SMALLEST*/];\n\n /* At this point, the fields freq and dad are set. We can now\n * generate the bit lengths.\n */\n gen_bitlen(s, desc);\n\n /* The field len is now set, we can generate the bit codes */\n gen_codes(tree, max_code, s.bl_count);\n};\n\n\n/* ===========================================================================\n * Scan a literal or distance tree to determine the frequencies of the codes\n * in the bit length tree.\n */\nconst scan_tree = (s, tree, max_code) => {\n// deflate_state *s;\n// ct_data *tree; /* the tree to be scanned */\n// int max_code; /* and its largest code of non zero frequency */\n\n let n; /* iterates over all tree elements */\n let prevlen = -1; /* last emitted length */\n let curlen; /* length of current code */\n\n let nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */\n\n let count = 0; /* repeat count of the current code */\n let max_count = 7; /* max repeat count */\n let min_count = 4; /* min repeat count */\n\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n }\n tree[(max_code + 1) * 2 + 1]/*.Len*/ = 0xffff; /* guard */\n\n for (n = 0; n <= max_code; n++) {\n curlen = nextlen;\n nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;\n\n if (++count < max_count && curlen === nextlen) {\n continue;\n\n } else if (count < min_count) {\n s.bl_tree[curlen * 2]/*.Freq*/ += count;\n\n } else if (curlen !== 0) {\n\n if (curlen !== prevlen) { s.bl_tree[curlen * 2]/*.Freq*/++; }\n s.bl_tree[REP_3_6 * 2]/*.Freq*/++;\n\n } else if (count <= 10) {\n s.bl_tree[REPZ_3_10 * 2]/*.Freq*/++;\n\n } else {\n s.bl_tree[REPZ_11_138 * 2]/*.Freq*/++;\n }\n\n count = 0;\n prevlen = curlen;\n\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n\n } else if (curlen === nextlen) {\n max_count = 6;\n min_count = 3;\n\n } else {\n max_count = 7;\n min_count = 4;\n }\n }\n};\n\n\n/* ===========================================================================\n * Send a literal or distance tree in compressed form, using the codes in\n * bl_tree.\n */\nconst send_tree = (s, tree, max_code) => {\n// deflate_state *s;\n// ct_data *tree; /* the tree to be scanned */\n// int max_code; /* and its largest code of non zero frequency */\n\n let n; /* iterates over all tree elements */\n let prevlen = -1; /* last emitted length */\n let curlen; /* length of current code */\n\n let nextlen = tree[0 * 2 + 1]/*.Len*/; /* length of next code */\n\n let count = 0; /* repeat count of the current code */\n let max_count = 7; /* max repeat count */\n let min_count = 4; /* min repeat count */\n\n /* tree[max_code+1].Len = -1; */ /* guard already set */\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n }\n\n for (n = 0; n <= max_code; n++) {\n curlen = nextlen;\n nextlen = tree[(n + 1) * 2 + 1]/*.Len*/;\n\n if (++count < max_count && curlen === nextlen) {\n continue;\n\n } else if (count < min_count) {\n do { send_code(s, curlen, s.bl_tree); } while (--count !== 0);\n\n } else if (curlen !== 0) {\n if (curlen !== prevlen) {\n send_code(s, curlen, s.bl_tree);\n count--;\n }\n //Assert(count >= 3 && count <= 6, \" 3_6?\");\n send_code(s, REP_3_6, s.bl_tree);\n send_bits(s, count - 3, 2);\n\n } else if (count <= 10) {\n send_code(s, REPZ_3_10, s.bl_tree);\n send_bits(s, count - 3, 3);\n\n } else {\n send_code(s, REPZ_11_138, s.bl_tree);\n send_bits(s, count - 11, 7);\n }\n\n count = 0;\n prevlen = curlen;\n if (nextlen === 0) {\n max_count = 138;\n min_count = 3;\n\n } else if (curlen === nextlen) {\n max_count = 6;\n min_count = 3;\n\n } else {\n max_count = 7;\n min_count = 4;\n }\n }\n};\n\n\n/* ===========================================================================\n * Construct the Huffman tree for the bit lengths and return the index in\n * bl_order of the last bit length code to send.\n */\nconst build_bl_tree = (s) => {\n\n let max_blindex; /* index of last bit length code of non zero freq */\n\n /* Determine the bit length frequencies for literal and distance trees */\n scan_tree(s, s.dyn_ltree, s.l_desc.max_code);\n scan_tree(s, s.dyn_dtree, s.d_desc.max_code);\n\n /* Build the bit length tree: */\n build_tree(s, s.bl_desc);\n /* opt_len now includes the length of the tree representations, except\n * the lengths of the bit lengths codes and the 5+5+4 bits for the counts.\n */\n\n /* Determine the number of bit length codes to send. The pkzip format\n * requires that at least 4 bit length codes be sent. (appnote.txt says\n * 3 but the actual value used is 4.)\n */\n for (max_blindex = BL_CODES$1 - 1; max_blindex >= 3; max_blindex--) {\n if (s.bl_tree[bl_order[max_blindex] * 2 + 1]/*.Len*/ !== 0) {\n break;\n }\n }\n /* Update opt_len to include the bit length tree and counts */\n s.opt_len += 3 * (max_blindex + 1) + 5 + 5 + 4;\n //Tracev((stderr, \"\\ndyn trees: dyn %ld, stat %ld\",\n // s->opt_len, s->static_len));\n\n return max_blindex;\n};\n\n\n/* ===========================================================================\n * Send the header for a block using dynamic Huffman trees: the counts, the\n * lengths of the bit length codes, the literal tree and the distance tree.\n * IN assertion: lcodes >= 257, dcodes >= 1, blcodes >= 4.\n */\nconst send_all_trees = (s, lcodes, dcodes, blcodes) => {\n// deflate_state *s;\n// int lcodes, dcodes, blcodes; /* number of codes for each tree */\n\n let rank; /* index in bl_order */\n\n //Assert (lcodes >= 257 && dcodes >= 1 && blcodes >= 4, \"not enough codes\");\n //Assert (lcodes <= L_CODES && dcodes <= D_CODES && blcodes <= BL_CODES,\n // \"too many codes\");\n //Tracev((stderr, \"\\nbl counts: \"));\n send_bits(s, lcodes - 257, 5); /* not +255 as stated in appnote.txt */\n send_bits(s, dcodes - 1, 5);\n send_bits(s, blcodes - 4, 4); /* not -3 as stated in appnote.txt */\n for (rank = 0; rank < blcodes; rank++) {\n //Tracev((stderr, \"\\nbl code %2d \", bl_order[rank]));\n send_bits(s, s.bl_tree[bl_order[rank] * 2 + 1]/*.Len*/, 3);\n }\n //Tracev((stderr, \"\\nbl tree: sent %ld\", s->bits_sent));\n\n send_tree(s, s.dyn_ltree, lcodes - 1); /* literal tree */\n //Tracev((stderr, \"\\nlit tree: sent %ld\", s->bits_sent));\n\n send_tree(s, s.dyn_dtree, dcodes - 1); /* distance tree */\n //Tracev((stderr, \"\\ndist tree: sent %ld\", s->bits_sent));\n};\n\n\n/* ===========================================================================\n * Check if the data type is TEXT or BINARY, using the following algorithm:\n * - TEXT if the two conditions below are satisfied:\n * a) There are no non-portable control characters belonging to the\n * \"block list\" (0..6, 14..25, 28..31).\n * b) There is at least one printable character belonging to the\n * \"allow list\" (9 {TAB}, 10 {LF}, 13 {CR}, 32..255).\n * - BINARY otherwise.\n * - The following partially-portable control characters form a\n * \"gray list\" that is ignored in this detection algorithm:\n * (7 {BEL}, 8 {BS}, 11 {VT}, 12 {FF}, 26 {SUB}, 27 {ESC}).\n * IN assertion: the fields Freq of dyn_ltree are set.\n */\nconst detect_data_type = (s) => {\n /* block_mask is the bit mask of block-listed bytes\n * set bits 0..6, 14..25, and 28..31\n * 0xf3ffc07f = binary 11110011111111111100000001111111\n */\n let block_mask = 0xf3ffc07f;\n let n;\n\n /* Check for non-textual (\"block-listed\") bytes. */\n for (n = 0; n <= 31; n++, block_mask >>>= 1) {\n if ((block_mask & 1) && (s.dyn_ltree[n * 2]/*.Freq*/ !== 0)) {\n return Z_BINARY;\n }\n }\n\n /* Check for textual (\"allow-listed\") bytes. */\n if (s.dyn_ltree[9 * 2]/*.Freq*/ !== 0 || s.dyn_ltree[10 * 2]/*.Freq*/ !== 0 ||\n s.dyn_ltree[13 * 2]/*.Freq*/ !== 0) {\n return Z_TEXT;\n }\n for (n = 32; n < LITERALS$1; n++) {\n if (s.dyn_ltree[n * 2]/*.Freq*/ !== 0) {\n return Z_TEXT;\n }\n }\n\n /* There are no \"block-listed\" or \"allow-listed\" bytes:\n * this stream either is empty or has tolerated (\"gray-listed\") bytes only.\n */\n return Z_BINARY;\n};\n\n\nlet static_init_done = false;\n\n/* ===========================================================================\n * Initialize the tree data structures for a new zlib stream.\n */\nconst _tr_init$1 = (s) =>\n{\n\n if (!static_init_done) {\n tr_static_init();\n static_init_done = true;\n }\n\n s.l_desc = new TreeDesc(s.dyn_ltree, static_l_desc);\n s.d_desc = new TreeDesc(s.dyn_dtree, static_d_desc);\n s.bl_desc = new TreeDesc(s.bl_tree, static_bl_desc);\n\n s.bi_buf = 0;\n s.bi_valid = 0;\n\n /* Initialize the first block of the first file: */\n init_block(s);\n};\n\n\n/* ===========================================================================\n * Send a stored block\n */\nconst _tr_stored_block$1 = (s, buf, stored_len, last) => {\n//DeflateState *s;\n//charf *buf; /* input block */\n//ulg stored_len; /* length of input block */\n//int last; /* one if this is the last block for a file */\n\n send_bits(s, (STORED_BLOCK << 1) + (last ? 1 : 0), 3); /* send block type */\n bi_windup(s); /* align on byte boundary */\n put_short(s, stored_len);\n put_short(s, ~stored_len);\n if (stored_len) {\n s.pending_buf.set(s.window.subarray(buf, buf + stored_len), s.pending);\n }\n s.pending += stored_len;\n};\n\n\n/* ===========================================================================\n * Send one empty static block to give enough lookahead for inflate.\n * This takes 10 bits, of which 7 may remain in the bit buffer.\n */\nconst _tr_align$1 = (s) => {\n send_bits(s, STATIC_TREES << 1, 3);\n send_code(s, END_BLOCK, static_ltree);\n bi_flush(s);\n};\n\n\n/* ===========================================================================\n * Determine the best encoding for the current block: dynamic trees, static\n * trees or store, and write out the encoded block.\n */\nconst _tr_flush_block$1 = (s, buf, stored_len, last) => {\n//DeflateState *s;\n//charf *buf; /* input block, or NULL if too old */\n//ulg stored_len; /* length of input block */\n//int last; /* one if this is the last block for a file */\n\n let opt_lenb, static_lenb; /* opt_len and static_len in bytes */\n let max_blindex = 0; /* index of last bit length code of non zero freq */\n\n /* Build the Huffman trees unless a stored block is forced */\n if (s.level > 0) {\n\n /* Check if the file is binary or text */\n if (s.strm.data_type === Z_UNKNOWN$1) {\n s.strm.data_type = detect_data_type(s);\n }\n\n /* Construct the literal and distance trees */\n build_tree(s, s.l_desc);\n // Tracev((stderr, \"\\nlit data: dyn %ld, stat %ld\", s->opt_len,\n // s->static_len));\n\n build_tree(s, s.d_desc);\n // Tracev((stderr, \"\\ndist data: dyn %ld, stat %ld\", s->opt_len,\n // s->static_len));\n /* At this point, opt_len and static_len are the total bit lengths of\n * the compressed block data, excluding the tree representations.\n */\n\n /* Build the bit length tree for the above two trees, and get the index\n * in bl_order of the last bit length code to send.\n */\n max_blindex = build_bl_tree(s);\n\n /* Determine the best encoding. Compute the block lengths in bytes. */\n opt_lenb = (s.opt_len + 3 + 7) >>> 3;\n static_lenb = (s.static_len + 3 + 7) >>> 3;\n\n // Tracev((stderr, \"\\nopt %lu(%lu) stat %lu(%lu) stored %lu lit %u \",\n // opt_lenb, s->opt_len, static_lenb, s->static_len, stored_len,\n // s->sym_next / 3));\n\n if (static_lenb <= opt_lenb) { opt_lenb = static_lenb; }\n\n } else {\n // Assert(buf != (char*)0, \"lost buf\");\n opt_lenb = static_lenb = stored_len + 5; /* force a stored block */\n }\n\n if ((stored_len + 4 <= opt_lenb) && (buf !== -1)) {\n /* 4: two words for the lengths */\n\n /* The test buf != NULL is only necessary if LIT_BUFSIZE > WSIZE.\n * Otherwise we can't have processed more than WSIZE input bytes since\n * the last block flush, because compression would have been\n * successful. If LIT_BUFSIZE <= WSIZE, it is never too late to\n * transform a block into a stored block.\n */\n _tr_stored_block$1(s, buf, stored_len, last);\n\n } else if (s.strategy === Z_FIXED$1 || static_lenb === opt_lenb) {\n\n send_bits(s, (STATIC_TREES << 1) + (last ? 1 : 0), 3);\n compress_block(s, static_ltree, static_dtree);\n\n } else {\n send_bits(s, (DYN_TREES << 1) + (last ? 1 : 0), 3);\n send_all_trees(s, s.l_desc.max_code + 1, s.d_desc.max_code + 1, max_blindex + 1);\n compress_block(s, s.dyn_ltree, s.dyn_dtree);\n }\n // Assert (s->compressed_len == s->bits_sent, \"bad compressed size\");\n /* The above check is made mod 2^32, for files larger than 512 MB\n * and uLong implemented on 32 bits.\n */\n init_block(s);\n\n if (last) {\n bi_windup(s);\n }\n // Tracev((stderr,\"\\ncomprlen %lu(%lu) \", s->compressed_len>>3,\n // s->compressed_len-7*last));\n};\n\n/* ===========================================================================\n * Save the match info and tally the frequency counts. Return true if\n * the current block must be flushed.\n */\nconst _tr_tally$1 = (s, dist, lc) => {\n// deflate_state *s;\n// unsigned dist; /* distance of matched string */\n// unsigned lc; /* match length-MIN_MATCH or unmatched char (if dist==0) */\n\n s.pending_buf[s.sym_buf + s.sym_next++] = dist;\n s.pending_buf[s.sym_buf + s.sym_next++] = dist >> 8;\n s.pending_buf[s.sym_buf + s.sym_next++] = lc;\n if (dist === 0) {\n /* lc is the unmatched char */\n s.dyn_ltree[lc * 2]/*.Freq*/++;\n } else {\n s.matches++;\n /* Here, lc is the match length - MIN_MATCH */\n dist--; /* dist = match distance - 1 */\n //Assert((ush)dist < (ush)MAX_DIST(s) &&\n // (ush)lc <= (ush)(MAX_MATCH-MIN_MATCH) &&\n // (ush)d_code(dist) < (ush)D_CODES, \"_tr_tally: bad match\");\n\n s.dyn_ltree[(_length_code[lc] + LITERALS$1 + 1) * 2]/*.Freq*/++;\n s.dyn_dtree[d_code(dist) * 2]/*.Freq*/++;\n }\n\n return (s.sym_next === s.sym_end);\n};\n\nvar _tr_init_1 = _tr_init$1;\nvar _tr_stored_block_1 = _tr_stored_block$1;\nvar _tr_flush_block_1 = _tr_flush_block$1;\nvar _tr_tally_1 = _tr_tally$1;\nvar _tr_align_1 = _tr_align$1;\n\nvar trees = {\n\t_tr_init: _tr_init_1,\n\t_tr_stored_block: _tr_stored_block_1,\n\t_tr_flush_block: _tr_flush_block_1,\n\t_tr_tally: _tr_tally_1,\n\t_tr_align: _tr_align_1\n};\n\n// Note: adler32 takes 12% for level 0 and 2% for level 6.\n// It isn't worth it to make additional optimizations as in original.\n// Small size is preferable.\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nconst adler32 = (adler, buf, len, pos) => {\n let s1 = (adler & 0xffff) |0,\n s2 = ((adler >>> 16) & 0xffff) |0,\n n = 0;\n\n while (len !== 0) {\n // Set limit ~ twice less than 5552, to keep\n // s2 in 31-bits, because we force signed ints.\n // in other case %= will fail.\n n = len > 2000 ? 2000 : len;\n len -= n;\n\n do {\n s1 = (s1 + buf[pos++]) |0;\n s2 = (s2 + s1) |0;\n } while (--n);\n\n s1 %= 65521;\n s2 %= 65521;\n }\n\n return (s1 | (s2 << 16)) |0;\n};\n\n\nvar adler32_1 = adler32;\n\n// Note: we can't get significant speed boost here.\n// So write code to minimize size - no pregenerated tables\n// and array tools dependencies.\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n// Use ordinary array, since untyped makes no boost here\nconst makeTable = () => {\n let c, table = [];\n\n for (var n = 0; n < 256; n++) {\n c = n;\n for (var k = 0; k < 8; k++) {\n c = ((c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));\n }\n table[n] = c;\n }\n\n return table;\n};\n\n// Create table on load. Just 255 signed longs. Not a problem.\nconst crcTable = new Uint32Array(makeTable());\n\n\nconst crc32 = (crc, buf, len, pos) => {\n const t = crcTable;\n const end = pos + len;\n\n crc ^= -1;\n\n for (let i = pos; i < end; i++) {\n crc = (crc >>> 8) ^ t[(crc ^ buf[i]) & 0xFF];\n }\n\n return (crc ^ (-1)); // >>> 0;\n};\n\n\nvar crc32_1 = crc32;\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nvar messages = {\n 2: 'need dictionary', /* Z_NEED_DICT 2 */\n 1: 'stream end', /* Z_STREAM_END 1 */\n 0: '', /* Z_OK 0 */\n '-1': 'file error', /* Z_ERRNO (-1) */\n '-2': 'stream error', /* Z_STREAM_ERROR (-2) */\n '-3': 'data error', /* Z_DATA_ERROR (-3) */\n '-4': 'insufficient memory', /* Z_MEM_ERROR (-4) */\n '-5': 'buffer error', /* Z_BUF_ERROR (-5) */\n '-6': 'incompatible version' /* Z_VERSION_ERROR (-6) */\n};\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nvar constants$2 = {\n\n /* Allowed flush values; see deflate() and inflate() below for details */\n Z_NO_FLUSH: 0,\n Z_PARTIAL_FLUSH: 1,\n Z_SYNC_FLUSH: 2,\n Z_FULL_FLUSH: 3,\n Z_FINISH: 4,\n Z_BLOCK: 5,\n Z_TREES: 6,\n\n /* Return codes for the compression/decompression functions. Negative values\n * are errors, positive values are used for special but normal events.\n */\n Z_OK: 0,\n Z_STREAM_END: 1,\n Z_NEED_DICT: 2,\n Z_ERRNO: -1,\n Z_STREAM_ERROR: -2,\n Z_DATA_ERROR: -3,\n Z_MEM_ERROR: -4,\n Z_BUF_ERROR: -5,\n //Z_VERSION_ERROR: -6,\n\n /* compression levels */\n Z_NO_COMPRESSION: 0,\n Z_BEST_SPEED: 1,\n Z_BEST_COMPRESSION: 9,\n Z_DEFAULT_COMPRESSION: -1,\n\n\n Z_FILTERED: 1,\n Z_HUFFMAN_ONLY: 2,\n Z_RLE: 3,\n Z_FIXED: 4,\n Z_DEFAULT_STRATEGY: 0,\n\n /* Possible values of the data_type field (though see inflate()) */\n Z_BINARY: 0,\n Z_TEXT: 1,\n //Z_ASCII: 1, // = Z_TEXT (deprecated)\n Z_UNKNOWN: 2,\n\n /* The deflate compression method */\n Z_DEFLATED: 8\n //Z_NULL: null // Use -1 or null inline, depending on var type\n};\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nconst { _tr_init, _tr_stored_block, _tr_flush_block, _tr_tally, _tr_align } = trees;\n\n\n\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\nconst {\n Z_NO_FLUSH: Z_NO_FLUSH$2, Z_PARTIAL_FLUSH, Z_FULL_FLUSH: Z_FULL_FLUSH$1, Z_FINISH: Z_FINISH$3, Z_BLOCK: Z_BLOCK$1,\n Z_OK: Z_OK$3, Z_STREAM_END: Z_STREAM_END$3, Z_STREAM_ERROR: Z_STREAM_ERROR$2, Z_DATA_ERROR: Z_DATA_ERROR$2, Z_BUF_ERROR: Z_BUF_ERROR$1,\n Z_DEFAULT_COMPRESSION: Z_DEFAULT_COMPRESSION$1,\n Z_FILTERED, Z_HUFFMAN_ONLY, Z_RLE, Z_FIXED, Z_DEFAULT_STRATEGY: Z_DEFAULT_STRATEGY$1,\n Z_UNKNOWN,\n Z_DEFLATED: Z_DEFLATED$2\n} = constants$2;\n\n/*============================================================================*/\n\n\nconst MAX_MEM_LEVEL = 9;\n/* Maximum value for memLevel in deflateInit2 */\nconst MAX_WBITS$1 = 15;\n/* 32K LZ77 window */\nconst DEF_MEM_LEVEL = 8;\n\n\nconst LENGTH_CODES = 29;\n/* number of length codes, not counting the special END_BLOCK code */\nconst LITERALS = 256;\n/* number of literal bytes 0..255 */\nconst L_CODES = LITERALS + 1 + LENGTH_CODES;\n/* number of Literal or Length codes, including the END_BLOCK code */\nconst D_CODES = 30;\n/* number of distance codes */\nconst BL_CODES = 19;\n/* number of codes used to transfer the bit lengths */\nconst HEAP_SIZE = 2 * L_CODES + 1;\n/* maximum heap size */\nconst MAX_BITS = 15;\n/* All codes must not exceed MAX_BITS bits */\n\nconst MIN_MATCH = 3;\nconst MAX_MATCH = 258;\nconst MIN_LOOKAHEAD = (MAX_MATCH + MIN_MATCH + 1);\n\nconst PRESET_DICT = 0x20;\n\nconst INIT_STATE = 42; /* zlib header -> BUSY_STATE */\n//#ifdef GZIP\nconst GZIP_STATE = 57; /* gzip header -> BUSY_STATE | EXTRA_STATE */\n//#endif\nconst EXTRA_STATE = 69; /* gzip extra block -> NAME_STATE */\nconst NAME_STATE = 73; /* gzip file name -> COMMENT_STATE */\nconst COMMENT_STATE = 91; /* gzip comment -> HCRC_STATE */\nconst HCRC_STATE = 103; /* gzip header CRC -> BUSY_STATE */\nconst BUSY_STATE = 113; /* deflate -> FINISH_STATE */\nconst FINISH_STATE = 666; /* stream complete */\n\nconst BS_NEED_MORE = 1; /* block not completed, need more input or more output */\nconst BS_BLOCK_DONE = 2; /* block flush performed */\nconst BS_FINISH_STARTED = 3; /* finish started, need only more output at next deflate */\nconst BS_FINISH_DONE = 4; /* finish done, accept no more input or output */\n\nconst OS_CODE = 0x03; // Unix :) . Don't detect, use this default.\n\nconst err = (strm, errorCode) => {\n strm.msg = messages[errorCode];\n return errorCode;\n};\n\nconst rank = (f) => {\n return ((f) * 2) - ((f) > 4 ? 9 : 0);\n};\n\nconst zero = (buf) => {\n let len = buf.length; while (--len >= 0) { buf[len] = 0; }\n};\n\n/* ===========================================================================\n * Slide the hash table when sliding the window down (could be avoided with 32\n * bit values at the expense of memory usage). We slide even when level == 0 to\n * keep the hash table consistent if we switch back to level > 0 later.\n */\nconst slide_hash = (s) => {\n let n, m;\n let p;\n let wsize = s.w_size;\n\n n = s.hash_size;\n p = n;\n do {\n m = s.head[--p];\n s.head[p] = (m >= wsize ? m - wsize : 0);\n } while (--n);\n n = wsize;\n//#ifndef FASTEST\n p = n;\n do {\n m = s.prev[--p];\n s.prev[p] = (m >= wsize ? m - wsize : 0);\n /* If n is not on any hash chain, prev[n] is garbage but\n * its value will never be used.\n */\n } while (--n);\n//#endif\n};\n\n/* eslint-disable new-cap */\nlet HASH_ZLIB = (s, prev, data) => ((prev << s.hash_shift) ^ data) & s.hash_mask;\n// This hash causes less collisions, https://github.com/nodeca/pako/issues/135\n// But breaks binary compatibility\n//let HASH_FAST = (s, prev, data) => ((prev << 8) + (prev >> 8) + (data << 4)) & s.hash_mask;\nlet HASH = HASH_ZLIB;\n\n\n/* =========================================================================\n * Flush as much pending output as possible. All deflate() output, except for\n * some deflate_stored() output, goes through this function so some\n * applications may wish to modify it to avoid allocating a large\n * strm->next_out buffer and copying into it. (See also read_buf()).\n */\nconst flush_pending = (strm) => {\n const s = strm.state;\n\n //_tr_flush_bits(s);\n let len = s.pending;\n if (len > strm.avail_out) {\n len = strm.avail_out;\n }\n if (len === 0) { return; }\n\n strm.output.set(s.pending_buf.subarray(s.pending_out, s.pending_out + len), strm.next_out);\n strm.next_out += len;\n s.pending_out += len;\n strm.total_out += len;\n strm.avail_out -= len;\n s.pending -= len;\n if (s.pending === 0) {\n s.pending_out = 0;\n }\n};\n\n\nconst flush_block_only = (s, last) => {\n _tr_flush_block(s, (s.block_start >= 0 ? s.block_start : -1), s.strstart - s.block_start, last);\n s.block_start = s.strstart;\n flush_pending(s.strm);\n};\n\n\nconst put_byte = (s, b) => {\n s.pending_buf[s.pending++] = b;\n};\n\n\n/* =========================================================================\n * Put a short in the pending buffer. The 16-bit value is put in MSB order.\n * IN assertion: the stream state is correct and there is enough room in\n * pending_buf.\n */\nconst putShortMSB = (s, b) => {\n\n // put_byte(s, (Byte)(b >> 8));\n// put_byte(s, (Byte)(b & 0xff));\n s.pending_buf[s.pending++] = (b >>> 8) & 0xff;\n s.pending_buf[s.pending++] = b & 0xff;\n};\n\n\n/* ===========================================================================\n * Read a new buffer from the current input stream, update the adler32\n * and total number of bytes read. All deflate() input goes through\n * this function so some applications may wish to modify it to avoid\n * allocating a large strm->input buffer and copying from it.\n * (See also flush_pending()).\n */\nconst read_buf = (strm, buf, start, size) => {\n\n let len = strm.avail_in;\n\n if (len > size) { len = size; }\n if (len === 0) { return 0; }\n\n strm.avail_in -= len;\n\n // zmemcpy(buf, strm->next_in, len);\n buf.set(strm.input.subarray(strm.next_in, strm.next_in + len), start);\n if (strm.state.wrap === 1) {\n strm.adler = adler32_1(strm.adler, buf, len, start);\n }\n\n else if (strm.state.wrap === 2) {\n strm.adler = crc32_1(strm.adler, buf, len, start);\n }\n\n strm.next_in += len;\n strm.total_in += len;\n\n return len;\n};\n\n\n/* ===========================================================================\n * Set match_start to the longest match starting at the given string and\n * return its length. Matches shorter or equal to prev_length are discarded,\n * in which case the result is equal to prev_length and match_start is\n * garbage.\n * IN assertions: cur_match is the head of the hash chain for the current\n * string (strstart) and its distance is <= MAX_DIST, and prev_length >= 1\n * OUT assertion: the match length is not greater than s->lookahead.\n */\nconst longest_match = (s, cur_match) => {\n\n let chain_length = s.max_chain_length; /* max hash chain length */\n let scan = s.strstart; /* current string */\n let match; /* matched string */\n let len; /* length of current match */\n let best_len = s.prev_length; /* best match length so far */\n let nice_match = s.nice_match; /* stop if match long enough */\n const limit = (s.strstart > (s.w_size - MIN_LOOKAHEAD)) ?\n s.strstart - (s.w_size - MIN_LOOKAHEAD) : 0/*NIL*/;\n\n const _win = s.window; // shortcut\n\n const wmask = s.w_mask;\n const prev = s.prev;\n\n /* Stop when cur_match becomes <= limit. To simplify the code,\n * we prevent matches with the string of window index 0.\n */\n\n const strend = s.strstart + MAX_MATCH;\n let scan_end1 = _win[scan + best_len - 1];\n let scan_end = _win[scan + best_len];\n\n /* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.\n * It is easy to get rid of this optimization if necessary.\n */\n // Assert(s->hash_bits >= 8 && MAX_MATCH == 258, \"Code too clever\");\n\n /* Do not waste too much time if we already have a good match: */\n if (s.prev_length >= s.good_match) {\n chain_length >>= 2;\n }\n /* Do not look for matches beyond the end of the input. This is necessary\n * to make deflate deterministic.\n */\n if (nice_match > s.lookahead) { nice_match = s.lookahead; }\n\n // Assert((ulg)s->strstart <= s->window_size-MIN_LOOKAHEAD, \"need lookahead\");\n\n do {\n // Assert(cur_match < s->strstart, \"no future\");\n match = cur_match;\n\n /* Skip to next match if the match length cannot increase\n * or if the match length is less than 2. Note that the checks below\n * for insufficient lookahead only occur occasionally for performance\n * reasons. Therefore uninitialized memory will be accessed, and\n * conditional jumps will be made that depend on those values.\n * However the length of the match is limited to the lookahead, so\n * the output of deflate is not affected by the uninitialized values.\n */\n\n if (_win[match + best_len] !== scan_end ||\n _win[match + best_len - 1] !== scan_end1 ||\n _win[match] !== _win[scan] ||\n _win[++match] !== _win[scan + 1]) {\n continue;\n }\n\n /* The check at best_len-1 can be removed because it will be made\n * again later. (This heuristic is not always a win.)\n * It is not necessary to compare scan[2] and match[2] since they\n * are always equal when the other bytes match, given that\n * the hash keys are equal and that HASH_BITS >= 8.\n */\n scan += 2;\n match++;\n // Assert(*scan == *match, \"match[2]?\");\n\n /* We check for insufficient lookahead only every 8th comparison;\n * the 256th check will be made at strstart+258.\n */\n do {\n /*jshint noempty:false*/\n } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&\n scan < strend);\n\n // Assert(scan <= s->window+(unsigned)(s->window_size-1), \"wild scan\");\n\n len = MAX_MATCH - (strend - scan);\n scan = strend - MAX_MATCH;\n\n if (len > best_len) {\n s.match_start = cur_match;\n best_len = len;\n if (len >= nice_match) {\n break;\n }\n scan_end1 = _win[scan + best_len - 1];\n scan_end = _win[scan + best_len];\n }\n } while ((cur_match = prev[cur_match & wmask]) > limit && --chain_length !== 0);\n\n if (best_len <= s.lookahead) {\n return best_len;\n }\n return s.lookahead;\n};\n\n\n/* ===========================================================================\n * Fill the window when the lookahead becomes insufficient.\n * Updates strstart and lookahead.\n *\n * IN assertion: lookahead < MIN_LOOKAHEAD\n * OUT assertions: strstart <= window_size-MIN_LOOKAHEAD\n * At least one byte has been read, or avail_in == 0; reads are\n * performed for at least two bytes (required for the zip translate_eol\n * option -- not supported here).\n */\nconst fill_window = (s) => {\n\n const _w_size = s.w_size;\n let n, more, str;\n\n //Assert(s->lookahead < MIN_LOOKAHEAD, \"already enough lookahead\");\n\n do {\n more = s.window_size - s.lookahead - s.strstart;\n\n // JS ints have 32 bit, block below not needed\n /* Deal with !@#$% 64K limit: */\n //if (sizeof(int) <= 2) {\n // if (more == 0 && s->strstart == 0 && s->lookahead == 0) {\n // more = wsize;\n //\n // } else if (more == (unsigned)(-1)) {\n // /* Very unlikely, but possible on 16 bit machine if\n // * strstart == 0 && lookahead == 1 (input done a byte at time)\n // */\n // more--;\n // }\n //}\n\n\n /* If the window is almost full and there is insufficient lookahead,\n * move the upper half to the lower one to make room in the upper half.\n */\n if (s.strstart >= _w_size + (_w_size - MIN_LOOKAHEAD)) {\n\n s.window.set(s.window.subarray(_w_size, _w_size + _w_size - more), 0);\n s.match_start -= _w_size;\n s.strstart -= _w_size;\n /* we now have strstart >= MAX_DIST */\n s.block_start -= _w_size;\n if (s.insert > s.strstart) {\n s.insert = s.strstart;\n }\n slide_hash(s);\n more += _w_size;\n }\n if (s.strm.avail_in === 0) {\n break;\n }\n\n /* If there was no sliding:\n * strstart <= WSIZE+MAX_DIST-1 && lookahead <= MIN_LOOKAHEAD - 1 &&\n * more == window_size - lookahead - strstart\n * => more >= window_size - (MIN_LOOKAHEAD-1 + WSIZE + MAX_DIST-1)\n * => more >= window_size - 2*WSIZE + 2\n * In the BIG_MEM or MMAP case (not yet supported),\n * window_size == input_size + MIN_LOOKAHEAD &&\n * strstart + s->lookahead <= input_size => more >= MIN_LOOKAHEAD.\n * Otherwise, window_size == 2*WSIZE so more >= 2.\n * If there was sliding, more >= WSIZE. So in all cases, more >= 2.\n */\n //Assert(more >= 2, \"more < 2\");\n n = read_buf(s.strm, s.window, s.strstart + s.lookahead, more);\n s.lookahead += n;\n\n /* Initialize the hash value now that we have some input: */\n if (s.lookahead + s.insert >= MIN_MATCH) {\n str = s.strstart - s.insert;\n s.ins_h = s.window[str];\n\n /* UPDATE_HASH(s, s->ins_h, s->window[str + 1]); */\n s.ins_h = HASH(s, s.ins_h, s.window[str + 1]);\n//#if MIN_MATCH != 3\n// Call update_hash() MIN_MATCH-3 more times\n//#endif\n while (s.insert) {\n /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */\n s.ins_h = HASH(s, s.ins_h, s.window[str + MIN_MATCH - 1]);\n\n s.prev[str & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = str;\n str++;\n s.insert--;\n if (s.lookahead + s.insert < MIN_MATCH) {\n break;\n }\n }\n }\n /* If the whole input has less than MIN_MATCH bytes, ins_h is garbage,\n * but this is not important since only literal bytes will be emitted.\n */\n\n } while (s.lookahead < MIN_LOOKAHEAD && s.strm.avail_in !== 0);\n\n /* If the WIN_INIT bytes after the end of the current data have never been\n * written, then zero those bytes in order to avoid memory check reports of\n * the use of uninitialized (or uninitialised as Julian writes) bytes by\n * the longest match routines. Update the high water mark for the next\n * time through here. WIN_INIT is set to MAX_MATCH since the longest match\n * routines allow scanning to strstart + MAX_MATCH, ignoring lookahead.\n */\n// if (s.high_water < s.window_size) {\n// const curr = s.strstart + s.lookahead;\n// let init = 0;\n//\n// if (s.high_water < curr) {\n// /* Previous high water mark below current data -- zero WIN_INIT\n// * bytes or up to end of window, whichever is less.\n// */\n// init = s.window_size - curr;\n// if (init > WIN_INIT)\n// init = WIN_INIT;\n// zmemzero(s->window + curr, (unsigned)init);\n// s->high_water = curr + init;\n// }\n// else if (s->high_water < (ulg)curr + WIN_INIT) {\n// /* High water mark at or above current data, but below current data\n// * plus WIN_INIT -- zero out to current data plus WIN_INIT, or up\n// * to end of window, whichever is less.\n// */\n// init = (ulg)curr + WIN_INIT - s->high_water;\n// if (init > s->window_size - s->high_water)\n// init = s->window_size - s->high_water;\n// zmemzero(s->window + s->high_water, (unsigned)init);\n// s->high_water += init;\n// }\n// }\n//\n// Assert((ulg)s->strstart <= s->window_size - MIN_LOOKAHEAD,\n// \"not enough room for search\");\n};\n\n/* ===========================================================================\n * Copy without compression as much as possible from the input stream, return\n * the current block state.\n *\n * In case deflateParams() is used to later switch to a non-zero compression\n * level, s->matches (otherwise unused when storing) keeps track of the number\n * of hash table slides to perform. If s->matches is 1, then one hash table\n * slide will be done when switching. If s->matches is 2, the maximum value\n * allowed here, then the hash table will be cleared, since two or more slides\n * is the same as a clear.\n *\n * deflate_stored() is written to minimize the number of times an input byte is\n * copied. It is most efficient with large input and output buffers, which\n * maximizes the opportunites to have a single copy from next_in to next_out.\n */\nconst deflate_stored = (s, flush) => {\n\n /* Smallest worthy block size when not flushing or finishing. By default\n * this is 32K. This can be as small as 507 bytes for memLevel == 1. For\n * large input and output buffers, the stored block size will be larger.\n */\n let min_block = s.pending_buf_size - 5 > s.w_size ? s.w_size : s.pending_buf_size - 5;\n\n /* Copy as many min_block or larger stored blocks directly to next_out as\n * possible. If flushing, copy the remaining available input to next_out as\n * stored blocks, if there is enough space.\n */\n let len, left, have, last = 0;\n let used = s.strm.avail_in;\n do {\n /* Set len to the maximum size block that we can copy directly with the\n * available input data and output space. Set left to how much of that\n * would be copied from what's left in the window.\n */\n len = 65535/* MAX_STORED */; /* maximum deflate stored block length */\n have = (s.bi_valid + 42) >> 3; /* number of header bytes */\n if (s.strm.avail_out < have) { /* need room for header */\n break;\n }\n /* maximum stored block length that will fit in avail_out: */\n have = s.strm.avail_out - have;\n left = s.strstart - s.block_start; /* bytes left in window */\n if (len > left + s.strm.avail_in) {\n len = left + s.strm.avail_in; /* limit len to the input */\n }\n if (len > have) {\n len = have; /* limit len to the output */\n }\n\n /* If the stored block would be less than min_block in length, or if\n * unable to copy all of the available input when flushing, then try\n * copying to the window and the pending buffer instead. Also don't\n * write an empty block when flushing -- deflate() does that.\n */\n if (len < min_block && ((len === 0 && flush !== Z_FINISH$3) ||\n flush === Z_NO_FLUSH$2 ||\n len !== left + s.strm.avail_in)) {\n break;\n }\n\n /* Make a dummy stored block in pending to get the header bytes,\n * including any pending bits. This also updates the debugging counts.\n */\n last = flush === Z_FINISH$3 && len === left + s.strm.avail_in ? 1 : 0;\n _tr_stored_block(s, 0, 0, last);\n\n /* Replace the lengths in the dummy stored block with len. */\n s.pending_buf[s.pending - 4] = len;\n s.pending_buf[s.pending - 3] = len >> 8;\n s.pending_buf[s.pending - 2] = ~len;\n s.pending_buf[s.pending - 1] = ~len >> 8;\n\n /* Write the stored block header bytes. */\n flush_pending(s.strm);\n\n//#ifdef ZLIB_DEBUG\n// /* Update debugging counts for the data about to be copied. */\n// s->compressed_len += len << 3;\n// s->bits_sent += len << 3;\n//#endif\n\n /* Copy uncompressed bytes from the window to next_out. */\n if (left) {\n if (left > len) {\n left = len;\n }\n //zmemcpy(s->strm->next_out, s->window + s->block_start, left);\n s.strm.output.set(s.window.subarray(s.block_start, s.block_start + left), s.strm.next_out);\n s.strm.next_out += left;\n s.strm.avail_out -= left;\n s.strm.total_out += left;\n s.block_start += left;\n len -= left;\n }\n\n /* Copy uncompressed bytes directly from next_in to next_out, updating\n * the check value.\n */\n if (len) {\n read_buf(s.strm, s.strm.output, s.strm.next_out, len);\n s.strm.next_out += len;\n s.strm.avail_out -= len;\n s.strm.total_out += len;\n }\n } while (last === 0);\n\n /* Update the sliding window with the last s->w_size bytes of the copied\n * data, or append all of the copied data to the existing window if less\n * than s->w_size bytes were copied. Also update the number of bytes to\n * insert in the hash tables, in the event that deflateParams() switches to\n * a non-zero compression level.\n */\n used -= s.strm.avail_in; /* number of input bytes directly copied */\n if (used) {\n /* If any input was used, then no unused input remains in the window,\n * therefore s->block_start == s->strstart.\n */\n if (used >= s.w_size) { /* supplant the previous history */\n s.matches = 2; /* clear hash */\n //zmemcpy(s->window, s->strm->next_in - s->w_size, s->w_size);\n s.window.set(s.strm.input.subarray(s.strm.next_in - s.w_size, s.strm.next_in), 0);\n s.strstart = s.w_size;\n s.insert = s.strstart;\n }\n else {\n if (s.window_size - s.strstart <= used) {\n /* Slide the window down. */\n s.strstart -= s.w_size;\n //zmemcpy(s->window, s->window + s->w_size, s->strstart);\n s.window.set(s.window.subarray(s.w_size, s.w_size + s.strstart), 0);\n if (s.matches < 2) {\n s.matches++; /* add a pending slide_hash() */\n }\n if (s.insert > s.strstart) {\n s.insert = s.strstart;\n }\n }\n //zmemcpy(s->window + s->strstart, s->strm->next_in - used, used);\n s.window.set(s.strm.input.subarray(s.strm.next_in - used, s.strm.next_in), s.strstart);\n s.strstart += used;\n s.insert += used > s.w_size - s.insert ? s.w_size - s.insert : used;\n }\n s.block_start = s.strstart;\n }\n if (s.high_water < s.strstart) {\n s.high_water = s.strstart;\n }\n\n /* If the last block was written to next_out, then done. */\n if (last) {\n return BS_FINISH_DONE;\n }\n\n /* If flushing and all input has been consumed, then done. */\n if (flush !== Z_NO_FLUSH$2 && flush !== Z_FINISH$3 &&\n s.strm.avail_in === 0 && s.strstart === s.block_start) {\n return BS_BLOCK_DONE;\n }\n\n /* Fill the window with any remaining input. */\n have = s.window_size - s.strstart;\n if (s.strm.avail_in > have && s.block_start >= s.w_size) {\n /* Slide the window down. */\n s.block_start -= s.w_size;\n s.strstart -= s.w_size;\n //zmemcpy(s->window, s->window + s->w_size, s->strstart);\n s.window.set(s.window.subarray(s.w_size, s.w_size + s.strstart), 0);\n if (s.matches < 2) {\n s.matches++; /* add a pending slide_hash() */\n }\n have += s.w_size; /* more space now */\n if (s.insert > s.strstart) {\n s.insert = s.strstart;\n }\n }\n if (have > s.strm.avail_in) {\n have = s.strm.avail_in;\n }\n if (have) {\n read_buf(s.strm, s.window, s.strstart, have);\n s.strstart += have;\n s.insert += have > s.w_size - s.insert ? s.w_size - s.insert : have;\n }\n if (s.high_water < s.strstart) {\n s.high_water = s.strstart;\n }\n\n /* There was not enough avail_out to write a complete worthy or flushed\n * stored block to next_out. Write a stored block to pending instead, if we\n * have enough input for a worthy block, or if flushing and there is enough\n * room for the remaining input as a stored block in the pending buffer.\n */\n have = (s.bi_valid + 42) >> 3; /* number of header bytes */\n /* maximum stored block length that will fit in pending: */\n have = s.pending_buf_size - have > 65535/* MAX_STORED */ ? 65535/* MAX_STORED */ : s.pending_buf_size - have;\n min_block = have > s.w_size ? s.w_size : have;\n left = s.strstart - s.block_start;\n if (left >= min_block ||\n ((left || flush === Z_FINISH$3) && flush !== Z_NO_FLUSH$2 &&\n s.strm.avail_in === 0 && left <= have)) {\n len = left > have ? have : left;\n last = flush === Z_FINISH$3 && s.strm.avail_in === 0 &&\n len === left ? 1 : 0;\n _tr_stored_block(s, s.block_start, len, last);\n s.block_start += len;\n flush_pending(s.strm);\n }\n\n /* We've done all we can with the available input and output. */\n return last ? BS_FINISH_STARTED : BS_NEED_MORE;\n};\n\n\n/* ===========================================================================\n * Compress as much as possible from the input stream, return the current\n * block state.\n * This function does not perform lazy evaluation of matches and inserts\n * new strings in the dictionary only for unmatched strings or for short\n * matches. It is used only for the fast compression options.\n */\nconst deflate_fast = (s, flush) => {\n\n let hash_head; /* head of the hash chain */\n let bflush; /* set if current block must be flushed */\n\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the next match, plus MIN_MATCH bytes to insert the\n * string following the next match.\n */\n if (s.lookahead < MIN_LOOKAHEAD) {\n fill_window(s);\n if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH$2) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) {\n break; /* flush the current block */\n }\n }\n\n /* Insert the string window[strstart .. strstart+2] in the\n * dictionary, and set hash_head to the head of the hash chain:\n */\n hash_head = 0/*NIL*/;\n if (s.lookahead >= MIN_MATCH) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n\n /* Find the longest match, discarding those <= prev_length.\n * At this point we have always match_length < MIN_MATCH\n */\n if (hash_head !== 0/*NIL*/ && ((s.strstart - hash_head) <= (s.w_size - MIN_LOOKAHEAD))) {\n /* To simplify the code, we prevent matches with the string\n * of window index 0 (in particular we have to avoid a match\n * of the string with itself at the start of the input file).\n */\n s.match_length = longest_match(s, hash_head);\n /* longest_match() sets match_start */\n }\n if (s.match_length >= MIN_MATCH) {\n // check_match(s, s.strstart, s.match_start, s.match_length); // for debug only\n\n /*** _tr_tally_dist(s, s.strstart - s.match_start,\n s.match_length - MIN_MATCH, bflush); ***/\n bflush = _tr_tally(s, s.strstart - s.match_start, s.match_length - MIN_MATCH);\n\n s.lookahead -= s.match_length;\n\n /* Insert new strings in the hash table only if the match length\n * is not too large. This saves time but degrades compression.\n */\n if (s.match_length <= s.max_lazy_match/*max_insert_length*/ && s.lookahead >= MIN_MATCH) {\n s.match_length--; /* string at strstart already in table */\n do {\n s.strstart++;\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n /* strstart never exceeds WSIZE-MAX_MATCH, so there are\n * always MIN_MATCH bytes ahead.\n */\n } while (--s.match_length !== 0);\n s.strstart++;\n } else\n {\n s.strstart += s.match_length;\n s.match_length = 0;\n s.ins_h = s.window[s.strstart];\n /* UPDATE_HASH(s, s.ins_h, s.window[s.strstart+1]); */\n s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + 1]);\n\n//#if MIN_MATCH != 3\n// Call UPDATE_HASH() MIN_MATCH-3 more times\n//#endif\n /* If lookahead < MIN_MATCH, ins_h is garbage, but it does not\n * matter since it will be recomputed at next deflate call.\n */\n }\n } else {\n /* No match, output a literal byte */\n //Tracevv((stderr,\"%c\", s.window[s.strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = _tr_tally(s, 0, s.window[s.strstart]);\n\n s.lookahead--;\n s.strstart++;\n }\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = ((s.strstart < (MIN_MATCH - 1)) ? s.strstart : MIN_MATCH - 1);\n if (flush === Z_FINISH$3) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.sym_next) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n};\n\n/* ===========================================================================\n * Same as above, but achieves better compression. We use a lazy\n * evaluation for matches: a match is finally adopted only if there is\n * no better match at the next window position.\n */\nconst deflate_slow = (s, flush) => {\n\n let hash_head; /* head of hash chain */\n let bflush; /* set if current block must be flushed */\n\n let max_insert;\n\n /* Process the input block. */\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the next match, plus MIN_MATCH bytes to insert the\n * string following the next match.\n */\n if (s.lookahead < MIN_LOOKAHEAD) {\n fill_window(s);\n if (s.lookahead < MIN_LOOKAHEAD && flush === Z_NO_FLUSH$2) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) { break; } /* flush the current block */\n }\n\n /* Insert the string window[strstart .. strstart+2] in the\n * dictionary, and set hash_head to the head of the hash chain:\n */\n hash_head = 0/*NIL*/;\n if (s.lookahead >= MIN_MATCH) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n\n /* Find the longest match, discarding those <= prev_length.\n */\n s.prev_length = s.match_length;\n s.prev_match = s.match_start;\n s.match_length = MIN_MATCH - 1;\n\n if (hash_head !== 0/*NIL*/ && s.prev_length < s.max_lazy_match &&\n s.strstart - hash_head <= (s.w_size - MIN_LOOKAHEAD)/*MAX_DIST(s)*/) {\n /* To simplify the code, we prevent matches with the string\n * of window index 0 (in particular we have to avoid a match\n * of the string with itself at the start of the input file).\n */\n s.match_length = longest_match(s, hash_head);\n /* longest_match() sets match_start */\n\n if (s.match_length <= 5 &&\n (s.strategy === Z_FILTERED || (s.match_length === MIN_MATCH && s.strstart - s.match_start > 4096/*TOO_FAR*/))) {\n\n /* If prev_match is also MIN_MATCH, match_start is garbage\n * but we will ignore the current match anyway.\n */\n s.match_length = MIN_MATCH - 1;\n }\n }\n /* If there was a match at the previous step and the current\n * match is not better, output the previous match:\n */\n if (s.prev_length >= MIN_MATCH && s.match_length <= s.prev_length) {\n max_insert = s.strstart + s.lookahead - MIN_MATCH;\n /* Do not insert strings in hash table beyond this. */\n\n //check_match(s, s.strstart-1, s.prev_match, s.prev_length);\n\n /***_tr_tally_dist(s, s.strstart - 1 - s.prev_match,\n s.prev_length - MIN_MATCH, bflush);***/\n bflush = _tr_tally(s, s.strstart - 1 - s.prev_match, s.prev_length - MIN_MATCH);\n /* Insert in hash table all strings up to the end of the match.\n * strstart-1 and strstart are already inserted. If there is not\n * enough lookahead, the last two strings are not inserted in\n * the hash table.\n */\n s.lookahead -= s.prev_length - 1;\n s.prev_length -= 2;\n do {\n if (++s.strstart <= max_insert) {\n /*** INSERT_STRING(s, s.strstart, hash_head); ***/\n s.ins_h = HASH(s, s.ins_h, s.window[s.strstart + MIN_MATCH - 1]);\n hash_head = s.prev[s.strstart & s.w_mask] = s.head[s.ins_h];\n s.head[s.ins_h] = s.strstart;\n /***/\n }\n } while (--s.prev_length !== 0);\n s.match_available = 0;\n s.match_length = MIN_MATCH - 1;\n s.strstart++;\n\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n } else if (s.match_available) {\n /* If there was no match at the previous position, output a\n * single literal. If there was a match but the current match\n * is longer, truncate the previous match to a single literal.\n */\n //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/\n bflush = _tr_tally(s, 0, s.window[s.strstart - 1]);\n\n if (bflush) {\n /*** FLUSH_BLOCK_ONLY(s, 0) ***/\n flush_block_only(s, false);\n /***/\n }\n s.strstart++;\n s.lookahead--;\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n } else {\n /* There is no previous match to compare with, wait for\n * the next step to decide.\n */\n s.match_available = 1;\n s.strstart++;\n s.lookahead--;\n }\n }\n //Assert (flush != Z_NO_FLUSH, \"no flush?\");\n if (s.match_available) {\n //Tracevv((stderr,\"%c\", s->window[s->strstart-1]));\n /*** _tr_tally_lit(s, s.window[s.strstart-1], bflush); ***/\n bflush = _tr_tally(s, 0, s.window[s.strstart - 1]);\n\n s.match_available = 0;\n }\n s.insert = s.strstart < MIN_MATCH - 1 ? s.strstart : MIN_MATCH - 1;\n if (flush === Z_FINISH$3) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.sym_next) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n\n return BS_BLOCK_DONE;\n};\n\n\n/* ===========================================================================\n * For Z_RLE, simply look for runs of bytes, generate matches only of distance\n * one. Do not maintain a hash table. (It will be regenerated if this run of\n * deflate switches away from Z_RLE.)\n */\nconst deflate_rle = (s, flush) => {\n\n let bflush; /* set if current block must be flushed */\n let prev; /* byte at distance one to match */\n let scan, strend; /* scan goes up to strend for length of run */\n\n const _win = s.window;\n\n for (;;) {\n /* Make sure that we always have enough lookahead, except\n * at the end of the input file. We need MAX_MATCH bytes\n * for the longest run, plus one for the unrolled loop.\n */\n if (s.lookahead <= MAX_MATCH) {\n fill_window(s);\n if (s.lookahead <= MAX_MATCH && flush === Z_NO_FLUSH$2) {\n return BS_NEED_MORE;\n }\n if (s.lookahead === 0) { break; } /* flush the current block */\n }\n\n /* See how many times the previous byte repeats */\n s.match_length = 0;\n if (s.lookahead >= MIN_MATCH && s.strstart > 0) {\n scan = s.strstart - 1;\n prev = _win[scan];\n if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {\n strend = s.strstart + MAX_MATCH;\n do {\n /*jshint noempty:false*/\n } while (prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n prev === _win[++scan] && prev === _win[++scan] &&\n scan < strend);\n s.match_length = MAX_MATCH - (strend - scan);\n if (s.match_length > s.lookahead) {\n s.match_length = s.lookahead;\n }\n }\n //Assert(scan <= s->window+(uInt)(s->window_size-1), \"wild scan\");\n }\n\n /* Emit match if have run of MIN_MATCH or longer, else emit literal */\n if (s.match_length >= MIN_MATCH) {\n //check_match(s, s.strstart, s.strstart - 1, s.match_length);\n\n /*** _tr_tally_dist(s, 1, s.match_length - MIN_MATCH, bflush); ***/\n bflush = _tr_tally(s, 1, s.match_length - MIN_MATCH);\n\n s.lookahead -= s.match_length;\n s.strstart += s.match_length;\n s.match_length = 0;\n } else {\n /* No match, output a literal byte */\n //Tracevv((stderr,\"%c\", s->window[s->strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = _tr_tally(s, 0, s.window[s.strstart]);\n\n s.lookahead--;\n s.strstart++;\n }\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = 0;\n if (flush === Z_FINISH$3) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.sym_next) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n};\n\n/* ===========================================================================\n * For Z_HUFFMAN_ONLY, do not look for matches. Do not maintain a hash table.\n * (It will be regenerated if this run of deflate switches away from Huffman.)\n */\nconst deflate_huff = (s, flush) => {\n\n let bflush; /* set if current block must be flushed */\n\n for (;;) {\n /* Make sure that we have a literal to write. */\n if (s.lookahead === 0) {\n fill_window(s);\n if (s.lookahead === 0) {\n if (flush === Z_NO_FLUSH$2) {\n return BS_NEED_MORE;\n }\n break; /* flush the current block */\n }\n }\n\n /* Output a literal byte */\n s.match_length = 0;\n //Tracevv((stderr,\"%c\", s->window[s->strstart]));\n /*** _tr_tally_lit(s, s.window[s.strstart], bflush); ***/\n bflush = _tr_tally(s, 0, s.window[s.strstart]);\n s.lookahead--;\n s.strstart++;\n if (bflush) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n }\n s.insert = 0;\n if (flush === Z_FINISH$3) {\n /*** FLUSH_BLOCK(s, 1); ***/\n flush_block_only(s, true);\n if (s.strm.avail_out === 0) {\n return BS_FINISH_STARTED;\n }\n /***/\n return BS_FINISH_DONE;\n }\n if (s.sym_next) {\n /*** FLUSH_BLOCK(s, 0); ***/\n flush_block_only(s, false);\n if (s.strm.avail_out === 0) {\n return BS_NEED_MORE;\n }\n /***/\n }\n return BS_BLOCK_DONE;\n};\n\n/* Values for max_lazy_match, good_match and max_chain_length, depending on\n * the desired pack level (0..9). The values given below have been tuned to\n * exclude worst case performance for pathological files. Better values may be\n * found for specific files.\n */\nfunction Config(good_length, max_lazy, nice_length, max_chain, func) {\n\n this.good_length = good_length;\n this.max_lazy = max_lazy;\n this.nice_length = nice_length;\n this.max_chain = max_chain;\n this.func = func;\n}\n\nconst configuration_table = [\n /* good lazy nice chain */\n new Config(0, 0, 0, 0, deflate_stored), /* 0 store only */\n new Config(4, 4, 8, 4, deflate_fast), /* 1 max speed, no lazy matches */\n new Config(4, 5, 16, 8, deflate_fast), /* 2 */\n new Config(4, 6, 32, 32, deflate_fast), /* 3 */\n\n new Config(4, 4, 16, 16, deflate_slow), /* 4 lazy matches */\n new Config(8, 16, 32, 32, deflate_slow), /* 5 */\n new Config(8, 16, 128, 128, deflate_slow), /* 6 */\n new Config(8, 32, 128, 256, deflate_slow), /* 7 */\n new Config(32, 128, 258, 1024, deflate_slow), /* 8 */\n new Config(32, 258, 258, 4096, deflate_slow) /* 9 max compression */\n];\n\n\n/* ===========================================================================\n * Initialize the \"longest match\" routines for a new zlib stream\n */\nconst lm_init = (s) => {\n\n s.window_size = 2 * s.w_size;\n\n /*** CLEAR_HASH(s); ***/\n zero(s.head); // Fill with NIL (= 0);\n\n /* Set the default configuration parameters:\n */\n s.max_lazy_match = configuration_table[s.level].max_lazy;\n s.good_match = configuration_table[s.level].good_length;\n s.nice_match = configuration_table[s.level].nice_length;\n s.max_chain_length = configuration_table[s.level].max_chain;\n\n s.strstart = 0;\n s.block_start = 0;\n s.lookahead = 0;\n s.insert = 0;\n s.match_length = s.prev_length = MIN_MATCH - 1;\n s.match_available = 0;\n s.ins_h = 0;\n};\n\n\nfunction DeflateState() {\n this.strm = null; /* pointer back to this zlib stream */\n this.status = 0; /* as the name implies */\n this.pending_buf = null; /* output still pending */\n this.pending_buf_size = 0; /* size of pending_buf */\n this.pending_out = 0; /* next pending byte to output to the stream */\n this.pending = 0; /* nb of bytes in the pending buffer */\n this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip */\n this.gzhead = null; /* gzip header information to write */\n this.gzindex = 0; /* where in extra, name, or comment */\n this.method = Z_DEFLATED$2; /* can only be DEFLATED */\n this.last_flush = -1; /* value of flush param for previous deflate call */\n\n this.w_size = 0; /* LZ77 window size (32K by default) */\n this.w_bits = 0; /* log2(w_size) (8..16) */\n this.w_mask = 0; /* w_size - 1 */\n\n this.window = null;\n /* Sliding window. Input bytes are read into the second half of the window,\n * and move to the first half later to keep a dictionary of at least wSize\n * bytes. With this organization, matches are limited to a distance of\n * wSize-MAX_MATCH bytes, but this ensures that IO is always\n * performed with a length multiple of the block size.\n */\n\n this.window_size = 0;\n /* Actual size of window: 2*wSize, except when the user input buffer\n * is directly used as sliding window.\n */\n\n this.prev = null;\n /* Link to older string with same hash index. To limit the size of this\n * array to 64K, this link is maintained only for the last 32K strings.\n * An index in this array is thus a window index modulo 32K.\n */\n\n this.head = null; /* Heads of the hash chains or NIL. */\n\n this.ins_h = 0; /* hash index of string to be inserted */\n this.hash_size = 0; /* number of elements in hash table */\n this.hash_bits = 0; /* log2(hash_size) */\n this.hash_mask = 0; /* hash_size-1 */\n\n this.hash_shift = 0;\n /* Number of bits by which ins_h must be shifted at each input\n * step. It must be such that after MIN_MATCH steps, the oldest\n * byte no longer takes part in the hash key, that is:\n * hash_shift * MIN_MATCH >= hash_bits\n */\n\n this.block_start = 0;\n /* Window position at the beginning of the current output block. Gets\n * negative when the window is moved backwards.\n */\n\n this.match_length = 0; /* length of best match */\n this.prev_match = 0; /* previous match */\n this.match_available = 0; /* set if previous match exists */\n this.strstart = 0; /* start of string to insert */\n this.match_start = 0; /* start of matching string */\n this.lookahead = 0; /* number of valid bytes ahead in window */\n\n this.prev_length = 0;\n /* Length of the best match at previous step. Matches not greater than this\n * are discarded. This is used in the lazy match evaluation.\n */\n\n this.max_chain_length = 0;\n /* To speed up deflation, hash chains are never searched beyond this\n * length. A higher limit improves compression ratio but degrades the\n * speed.\n */\n\n this.max_lazy_match = 0;\n /* Attempt to find a better match only when the current match is strictly\n * smaller than this value. This mechanism is used only for compression\n * levels >= 4.\n */\n // That's alias to max_lazy_match, don't use directly\n //this.max_insert_length = 0;\n /* Insert new strings in the hash table only if the match length is not\n * greater than this length. This saves time but degrades compression.\n * max_insert_length is used only for compression levels <= 3.\n */\n\n this.level = 0; /* compression level (1..9) */\n this.strategy = 0; /* favor or force Huffman coding*/\n\n this.good_match = 0;\n /* Use a faster search when the previous match is longer than this */\n\n this.nice_match = 0; /* Stop searching when current match exceeds this */\n\n /* used by trees.c: */\n\n /* Didn't use ct_data typedef below to suppress compiler warning */\n\n // struct ct_data_s dyn_ltree[HEAP_SIZE]; /* literal and length tree */\n // struct ct_data_s dyn_dtree[2*D_CODES+1]; /* distance tree */\n // struct ct_data_s bl_tree[2*BL_CODES+1]; /* Huffman tree for bit lengths */\n\n // Use flat array of DOUBLE size, with interleaved fata,\n // because JS does not support effective\n this.dyn_ltree = new Uint16Array(HEAP_SIZE * 2);\n this.dyn_dtree = new Uint16Array((2 * D_CODES + 1) * 2);\n this.bl_tree = new Uint16Array((2 * BL_CODES + 1) * 2);\n zero(this.dyn_ltree);\n zero(this.dyn_dtree);\n zero(this.bl_tree);\n\n this.l_desc = null; /* desc. for literal tree */\n this.d_desc = null; /* desc. for distance tree */\n this.bl_desc = null; /* desc. for bit length tree */\n\n //ush bl_count[MAX_BITS+1];\n this.bl_count = new Uint16Array(MAX_BITS + 1);\n /* number of codes at each bit length for an optimal tree */\n\n //int heap[2*L_CODES+1]; /* heap used to build the Huffman trees */\n this.heap = new Uint16Array(2 * L_CODES + 1); /* heap used to build the Huffman trees */\n zero(this.heap);\n\n this.heap_len = 0; /* number of elements in the heap */\n this.heap_max = 0; /* element of largest frequency */\n /* The sons of heap[n] are heap[2*n] and heap[2*n+1]. heap[0] is not used.\n * The same heap array is used to build all trees.\n */\n\n this.depth = new Uint16Array(2 * L_CODES + 1); //uch depth[2*L_CODES+1];\n zero(this.depth);\n /* Depth of each subtree used as tie breaker for trees of equal frequency\n */\n\n this.sym_buf = 0; /* buffer for distances and literals/lengths */\n\n this.lit_bufsize = 0;\n /* Size of match buffer for literals/lengths. There are 4 reasons for\n * limiting lit_bufsize to 64K:\n * - frequencies can be kept in 16 bit counters\n * - if compression is not successful for the first block, all input\n * data is still in the window so we can still emit a stored block even\n * when input comes from standard input. (This can also be done for\n * all blocks if lit_bufsize is not greater than 32K.)\n * - if compression is not successful for a file smaller than 64K, we can\n * even emit a stored file instead of a stored block (saving 5 bytes).\n * This is applicable only for zip (not gzip or zlib).\n * - creating new Huffman trees less frequently may not provide fast\n * adaptation to changes in the input data statistics. (Take for\n * example a binary file with poorly compressible code followed by\n * a highly compressible string table.) Smaller buffer sizes give\n * fast adaptation but have of course the overhead of transmitting\n * trees more frequently.\n * - I can't count above 4\n */\n\n this.sym_next = 0; /* running index in sym_buf */\n this.sym_end = 0; /* symbol table full when sym_next reaches this */\n\n this.opt_len = 0; /* bit length of current block with optimal trees */\n this.static_len = 0; /* bit length of current block with static trees */\n this.matches = 0; /* number of string matches in current block */\n this.insert = 0; /* bytes at end of window left to insert */\n\n\n this.bi_buf = 0;\n /* Output buffer. bits are inserted starting at the bottom (least\n * significant bits).\n */\n this.bi_valid = 0;\n /* Number of valid bits in bi_buf. All bits above the last valid bit\n * are always zero.\n */\n\n // Used for window memory init. We safely ignore it for JS. That makes\n // sense only for pointers and memory check tools.\n //this.high_water = 0;\n /* High water mark offset in window for initialized bytes -- bytes above\n * this are set to zero in order to avoid memory check warnings when\n * longest match routines access bytes past the input. This is then\n * updated to the new high water mark.\n */\n}\n\n\n/* =========================================================================\n * Check for a valid deflate stream state. Return 0 if ok, 1 if not.\n */\nconst deflateStateCheck = (strm) => {\n\n if (!strm) {\n return 1;\n }\n const s = strm.state;\n if (!s || s.strm !== strm || (s.status !== INIT_STATE &&\n//#ifdef GZIP\n s.status !== GZIP_STATE &&\n//#endif\n s.status !== EXTRA_STATE &&\n s.status !== NAME_STATE &&\n s.status !== COMMENT_STATE &&\n s.status !== HCRC_STATE &&\n s.status !== BUSY_STATE &&\n s.status !== FINISH_STATE)) {\n return 1;\n }\n return 0;\n};\n\n\nconst deflateResetKeep = (strm) => {\n\n if (deflateStateCheck(strm)) {\n return err(strm, Z_STREAM_ERROR$2);\n }\n\n strm.total_in = strm.total_out = 0;\n strm.data_type = Z_UNKNOWN;\n\n const s = strm.state;\n s.pending = 0;\n s.pending_out = 0;\n\n if (s.wrap < 0) {\n s.wrap = -s.wrap;\n /* was made negative by deflate(..., Z_FINISH); */\n }\n s.status =\n//#ifdef GZIP\n s.wrap === 2 ? GZIP_STATE :\n//#endif\n s.wrap ? INIT_STATE : BUSY_STATE;\n strm.adler = (s.wrap === 2) ?\n 0 // crc32(0, Z_NULL, 0)\n :\n 1; // adler32(0, Z_NULL, 0)\n s.last_flush = -2;\n _tr_init(s);\n return Z_OK$3;\n};\n\n\nconst deflateReset = (strm) => {\n\n const ret = deflateResetKeep(strm);\n if (ret === Z_OK$3) {\n lm_init(strm.state);\n }\n return ret;\n};\n\n\nconst deflateSetHeader = (strm, head) => {\n\n if (deflateStateCheck(strm) || strm.state.wrap !== 2) {\n return Z_STREAM_ERROR$2;\n }\n strm.state.gzhead = head;\n return Z_OK$3;\n};\n\n\nconst deflateInit2 = (strm, level, method, windowBits, memLevel, strategy) => {\n\n if (!strm) { // === Z_NULL\n return Z_STREAM_ERROR$2;\n }\n let wrap = 1;\n\n if (level === Z_DEFAULT_COMPRESSION$1) {\n level = 6;\n }\n\n if (windowBits < 0) { /* suppress zlib wrapper */\n wrap = 0;\n windowBits = -windowBits;\n }\n\n else if (windowBits > 15) {\n wrap = 2; /* write gzip wrapper instead */\n windowBits -= 16;\n }\n\n\n if (memLevel < 1 || memLevel > MAX_MEM_LEVEL || method !== Z_DEFLATED$2 ||\n windowBits < 8 || windowBits > 15 || level < 0 || level > 9 ||\n strategy < 0 || strategy > Z_FIXED || (windowBits === 8 && wrap !== 1)) {\n return err(strm, Z_STREAM_ERROR$2);\n }\n\n\n if (windowBits === 8) {\n windowBits = 9;\n }\n /* until 256-byte window bug fixed */\n\n const s = new DeflateState();\n\n strm.state = s;\n s.strm = strm;\n s.status = INIT_STATE; /* to pass state test in deflateReset() */\n\n s.wrap = wrap;\n s.gzhead = null;\n s.w_bits = windowBits;\n s.w_size = 1 << s.w_bits;\n s.w_mask = s.w_size - 1;\n\n s.hash_bits = memLevel + 7;\n s.hash_size = 1 << s.hash_bits;\n s.hash_mask = s.hash_size - 1;\n s.hash_shift = ~~((s.hash_bits + MIN_MATCH - 1) / MIN_MATCH);\n\n s.window = new Uint8Array(s.w_size * 2);\n s.head = new Uint16Array(s.hash_size);\n s.prev = new Uint16Array(s.w_size);\n\n // Don't need mem init magic for JS.\n //s.high_water = 0; /* nothing written to s->window yet */\n\n s.lit_bufsize = 1 << (memLevel + 6); /* 16K elements by default */\n\n /* We overlay pending_buf and sym_buf. This works since the average size\n * for length/distance pairs over any compressed block is assured to be 31\n * bits or less.\n *\n * Analysis: The longest fixed codes are a length code of 8 bits plus 5\n * extra bits, for lengths 131 to 257. The longest fixed distance codes are\n * 5 bits plus 13 extra bits, for distances 16385 to 32768. The longest\n * possible fixed-codes length/distance pair is then 31 bits total.\n *\n * sym_buf starts one-fourth of the way into pending_buf. So there are\n * three bytes in sym_buf for every four bytes in pending_buf. Each symbol\n * in sym_buf is three bytes -- two for the distance and one for the\n * literal/length. As each symbol is consumed, the pointer to the next\n * sym_buf value to read moves forward three bytes. From that symbol, up to\n * 31 bits are written to pending_buf. The closest the written pending_buf\n * bits gets to the next sym_buf symbol to read is just before the last\n * code is written. At that time, 31*(n-2) bits have been written, just\n * after 24*(n-2) bits have been consumed from sym_buf. sym_buf starts at\n * 8*n bits into pending_buf. (Note that the symbol buffer fills when n-1\n * symbols are written.) The closest the writing gets to what is unread is\n * then n+14 bits. Here n is lit_bufsize, which is 16384 by default, and\n * can range from 128 to 32768.\n *\n * Therefore, at a minimum, there are 142 bits of space between what is\n * written and what is read in the overlain buffers, so the symbols cannot\n * be overwritten by the compressed data. That space is actually 139 bits,\n * due to the three-bit fixed-code block header.\n *\n * That covers the case where either Z_FIXED is specified, forcing fixed\n * codes, or when the use of fixed codes is chosen, because that choice\n * results in a smaller compressed block than dynamic codes. That latter\n * condition then assures that the above analysis also covers all dynamic\n * blocks. A dynamic-code block will only be chosen to be emitted if it has\n * fewer bits than a fixed-code block would for the same set of symbols.\n * Therefore its average symbol length is assured to be less than 31. So\n * the compressed data for a dynamic block also cannot overwrite the\n * symbols from which it is being constructed.\n */\n\n s.pending_buf_size = s.lit_bufsize * 4;\n s.pending_buf = new Uint8Array(s.pending_buf_size);\n\n // It is offset from `s.pending_buf` (size is `s.lit_bufsize * 2`)\n //s->sym_buf = s->pending_buf + s->lit_bufsize;\n s.sym_buf = s.lit_bufsize;\n\n //s->sym_end = (s->lit_bufsize - 1) * 3;\n s.sym_end = (s.lit_bufsize - 1) * 3;\n /* We avoid equality with lit_bufsize*3 because of wraparound at 64K\n * on 16 bit machines and because stored blocks are restricted to\n * 64K-1 bytes.\n */\n\n s.level = level;\n s.strategy = strategy;\n s.method = method;\n\n return deflateReset(strm);\n};\n\nconst deflateInit = (strm, level) => {\n\n return deflateInit2(strm, level, Z_DEFLATED$2, MAX_WBITS$1, DEF_MEM_LEVEL, Z_DEFAULT_STRATEGY$1);\n};\n\n\n/* ========================================================================= */\nconst deflate$2 = (strm, flush) => {\n\n if (deflateStateCheck(strm) || flush > Z_BLOCK$1 || flush < 0) {\n return strm ? err(strm, Z_STREAM_ERROR$2) : Z_STREAM_ERROR$2;\n }\n\n const s = strm.state;\n\n if (!strm.output ||\n (strm.avail_in !== 0 && !strm.input) ||\n (s.status === FINISH_STATE && flush !== Z_FINISH$3)) {\n return err(strm, (strm.avail_out === 0) ? Z_BUF_ERROR$1 : Z_STREAM_ERROR$2);\n }\n\n const old_flush = s.last_flush;\n s.last_flush = flush;\n\n /* Flush as much pending output as possible */\n if (s.pending !== 0) {\n flush_pending(strm);\n if (strm.avail_out === 0) {\n /* Since avail_out is 0, deflate will be called again with\n * more output space, but possibly with both pending and\n * avail_in equal to zero. There won't be anything to do,\n * but this is not an error situation so make sure we\n * return OK instead of BUF_ERROR at next call of deflate:\n */\n s.last_flush = -1;\n return Z_OK$3;\n }\n\n /* Make sure there is something to do and avoid duplicate consecutive\n * flushes. For repeated and useless calls with Z_FINISH, we keep\n * returning Z_STREAM_END instead of Z_BUF_ERROR.\n */\n } else if (strm.avail_in === 0 && rank(flush) <= rank(old_flush) &&\n flush !== Z_FINISH$3) {\n return err(strm, Z_BUF_ERROR$1);\n }\n\n /* User must not provide more input after the first FINISH: */\n if (s.status === FINISH_STATE && strm.avail_in !== 0) {\n return err(strm, Z_BUF_ERROR$1);\n }\n\n /* Write the header */\n if (s.status === INIT_STATE && s.wrap === 0) {\n s.status = BUSY_STATE;\n }\n if (s.status === INIT_STATE) {\n /* zlib header */\n let header = (Z_DEFLATED$2 + ((s.w_bits - 8) << 4)) << 8;\n let level_flags = -1;\n\n if (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2) {\n level_flags = 0;\n } else if (s.level < 6) {\n level_flags = 1;\n } else if (s.level === 6) {\n level_flags = 2;\n } else {\n level_flags = 3;\n }\n header |= (level_flags << 6);\n if (s.strstart !== 0) { header |= PRESET_DICT; }\n header += 31 - (header % 31);\n\n putShortMSB(s, header);\n\n /* Save the adler32 of the preset dictionary: */\n if (s.strstart !== 0) {\n putShortMSB(s, strm.adler >>> 16);\n putShortMSB(s, strm.adler & 0xffff);\n }\n strm.adler = 1; // adler32(0L, Z_NULL, 0);\n s.status = BUSY_STATE;\n\n /* Compression must start with an empty pending buffer */\n flush_pending(strm);\n if (s.pending !== 0) {\n s.last_flush = -1;\n return Z_OK$3;\n }\n }\n//#ifdef GZIP\n if (s.status === GZIP_STATE) {\n /* gzip header */\n strm.adler = 0; //crc32(0L, Z_NULL, 0);\n put_byte(s, 31);\n put_byte(s, 139);\n put_byte(s, 8);\n if (!s.gzhead) { // s->gzhead == Z_NULL\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, 0);\n put_byte(s, s.level === 9 ? 2 :\n (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?\n 4 : 0));\n put_byte(s, OS_CODE);\n s.status = BUSY_STATE;\n\n /* Compression must start with an empty pending buffer */\n flush_pending(strm);\n if (s.pending !== 0) {\n s.last_flush = -1;\n return Z_OK$3;\n }\n }\n else {\n put_byte(s, (s.gzhead.text ? 1 : 0) +\n (s.gzhead.hcrc ? 2 : 0) +\n (!s.gzhead.extra ? 0 : 4) +\n (!s.gzhead.name ? 0 : 8) +\n (!s.gzhead.comment ? 0 : 16)\n );\n put_byte(s, s.gzhead.time & 0xff);\n put_byte(s, (s.gzhead.time >> 8) & 0xff);\n put_byte(s, (s.gzhead.time >> 16) & 0xff);\n put_byte(s, (s.gzhead.time >> 24) & 0xff);\n put_byte(s, s.level === 9 ? 2 :\n (s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ?\n 4 : 0));\n put_byte(s, s.gzhead.os & 0xff);\n if (s.gzhead.extra && s.gzhead.extra.length) {\n put_byte(s, s.gzhead.extra.length & 0xff);\n put_byte(s, (s.gzhead.extra.length >> 8) & 0xff);\n }\n if (s.gzhead.hcrc) {\n strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending, 0);\n }\n s.gzindex = 0;\n s.status = EXTRA_STATE;\n }\n }\n if (s.status === EXTRA_STATE) {\n if (s.gzhead.extra/* != Z_NULL*/) {\n let beg = s.pending; /* start of bytes to update crc */\n let left = (s.gzhead.extra.length & 0xffff) - s.gzindex;\n while (s.pending + left > s.pending_buf_size) {\n let copy = s.pending_buf_size - s.pending;\n // zmemcpy(s.pending_buf + s.pending,\n // s.gzhead.extra + s.gzindex, copy);\n s.pending_buf.set(s.gzhead.extra.subarray(s.gzindex, s.gzindex + copy), s.pending);\n s.pending = s.pending_buf_size;\n //--- HCRC_UPDATE(beg) ---//\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n //---//\n s.gzindex += copy;\n flush_pending(strm);\n if (s.pending !== 0) {\n s.last_flush = -1;\n return Z_OK$3;\n }\n beg = 0;\n left -= copy;\n }\n // JS specific: s.gzhead.extra may be TypedArray or Array for backward compatibility\n // TypedArray.slice and TypedArray.from don't exist in IE10-IE11\n let gzhead_extra = new Uint8Array(s.gzhead.extra);\n // zmemcpy(s->pending_buf + s->pending,\n // s->gzhead->extra + s->gzindex, left);\n s.pending_buf.set(gzhead_extra.subarray(s.gzindex, s.gzindex + left), s.pending);\n s.pending += left;\n //--- HCRC_UPDATE(beg) ---//\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n //---//\n s.gzindex = 0;\n }\n s.status = NAME_STATE;\n }\n if (s.status === NAME_STATE) {\n if (s.gzhead.name/* != Z_NULL*/) {\n let beg = s.pending; /* start of bytes to update crc */\n let val;\n do {\n if (s.pending === s.pending_buf_size) {\n //--- HCRC_UPDATE(beg) ---//\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n //---//\n flush_pending(strm);\n if (s.pending !== 0) {\n s.last_flush = -1;\n return Z_OK$3;\n }\n beg = 0;\n }\n // JS specific: little magic to add zero terminator to end of string\n if (s.gzindex < s.gzhead.name.length) {\n val = s.gzhead.name.charCodeAt(s.gzindex++) & 0xff;\n } else {\n val = 0;\n }\n put_byte(s, val);\n } while (val !== 0);\n //--- HCRC_UPDATE(beg) ---//\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n //---//\n s.gzindex = 0;\n }\n s.status = COMMENT_STATE;\n }\n if (s.status === COMMENT_STATE) {\n if (s.gzhead.comment/* != Z_NULL*/) {\n let beg = s.pending; /* start of bytes to update crc */\n let val;\n do {\n if (s.pending === s.pending_buf_size) {\n //--- HCRC_UPDATE(beg) ---//\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n //---//\n flush_pending(strm);\n if (s.pending !== 0) {\n s.last_flush = -1;\n return Z_OK$3;\n }\n beg = 0;\n }\n // JS specific: little magic to add zero terminator to end of string\n if (s.gzindex < s.gzhead.comment.length) {\n val = s.gzhead.comment.charCodeAt(s.gzindex++) & 0xff;\n } else {\n val = 0;\n }\n put_byte(s, val);\n } while (val !== 0);\n //--- HCRC_UPDATE(beg) ---//\n if (s.gzhead.hcrc && s.pending > beg) {\n strm.adler = crc32_1(strm.adler, s.pending_buf, s.pending - beg, beg);\n }\n //---//\n }\n s.status = HCRC_STATE;\n }\n if (s.status === HCRC_STATE) {\n if (s.gzhead.hcrc) {\n if (s.pending + 2 > s.pending_buf_size) {\n flush_pending(strm);\n if (s.pending !== 0) {\n s.last_flush = -1;\n return Z_OK$3;\n }\n }\n put_byte(s, strm.adler & 0xff);\n put_byte(s, (strm.adler >> 8) & 0xff);\n strm.adler = 0; //crc32(0L, Z_NULL, 0);\n }\n s.status = BUSY_STATE;\n\n /* Compression must start with an empty pending buffer */\n flush_pending(strm);\n if (s.pending !== 0) {\n s.last_flush = -1;\n return Z_OK$3;\n }\n }\n//#endif\n\n /* Start a new block or continue the current one.\n */\n if (strm.avail_in !== 0 || s.lookahead !== 0 ||\n (flush !== Z_NO_FLUSH$2 && s.status !== FINISH_STATE)) {\n let bstate = s.level === 0 ? deflate_stored(s, flush) :\n s.strategy === Z_HUFFMAN_ONLY ? deflate_huff(s, flush) :\n s.strategy === Z_RLE ? deflate_rle(s, flush) :\n configuration_table[s.level].func(s, flush);\n\n if (bstate === BS_FINISH_STARTED || bstate === BS_FINISH_DONE) {\n s.status = FINISH_STATE;\n }\n if (bstate === BS_NEED_MORE || bstate === BS_FINISH_STARTED) {\n if (strm.avail_out === 0) {\n s.last_flush = -1;\n /* avoid BUF_ERROR next call, see above */\n }\n return Z_OK$3;\n /* If flush != Z_NO_FLUSH && avail_out == 0, the next call\n * of deflate should use the same flush parameter to make sure\n * that the flush is complete. So we don't have to output an\n * empty block here, this will be done at next call. This also\n * ensures that for a very small output buffer, we emit at most\n * one empty block.\n */\n }\n if (bstate === BS_BLOCK_DONE) {\n if (flush === Z_PARTIAL_FLUSH) {\n _tr_align(s);\n }\n else if (flush !== Z_BLOCK$1) { /* FULL_FLUSH or SYNC_FLUSH */\n\n _tr_stored_block(s, 0, 0, false);\n /* For a full flush, this empty block will be recognized\n * as a special marker by inflate_sync().\n */\n if (flush === Z_FULL_FLUSH$1) {\n /*** CLEAR_HASH(s); ***/ /* forget history */\n zero(s.head); // Fill with NIL (= 0);\n\n if (s.lookahead === 0) {\n s.strstart = 0;\n s.block_start = 0;\n s.insert = 0;\n }\n }\n }\n flush_pending(strm);\n if (strm.avail_out === 0) {\n s.last_flush = -1; /* avoid BUF_ERROR at next call, see above */\n return Z_OK$3;\n }\n }\n }\n\n if (flush !== Z_FINISH$3) { return Z_OK$3; }\n if (s.wrap <= 0) { return Z_STREAM_END$3; }\n\n /* Write the trailer */\n if (s.wrap === 2) {\n put_byte(s, strm.adler & 0xff);\n put_byte(s, (strm.adler >> 8) & 0xff);\n put_byte(s, (strm.adler >> 16) & 0xff);\n put_byte(s, (strm.adler >> 24) & 0xff);\n put_byte(s, strm.total_in & 0xff);\n put_byte(s, (strm.total_in >> 8) & 0xff);\n put_byte(s, (strm.total_in >> 16) & 0xff);\n put_byte(s, (strm.total_in >> 24) & 0xff);\n }\n else\n {\n putShortMSB(s, strm.adler >>> 16);\n putShortMSB(s, strm.adler & 0xffff);\n }\n\n flush_pending(strm);\n /* If avail_out is zero, the application will call deflate again\n * to flush the rest.\n */\n if (s.wrap > 0) { s.wrap = -s.wrap; }\n /* write the trailer only once! */\n return s.pending !== 0 ? Z_OK$3 : Z_STREAM_END$3;\n};\n\n\nconst deflateEnd = (strm) => {\n\n if (deflateStateCheck(strm)) {\n return Z_STREAM_ERROR$2;\n }\n\n const status = strm.state.status;\n\n strm.state = null;\n\n return status === BUSY_STATE ? err(strm, Z_DATA_ERROR$2) : Z_OK$3;\n};\n\n\n/* =========================================================================\n * Initializes the compression dictionary from the given byte\n * sequence without producing any compressed output.\n */\nconst deflateSetDictionary = (strm, dictionary) => {\n\n let dictLength = dictionary.length;\n\n if (deflateStateCheck(strm)) {\n return Z_STREAM_ERROR$2;\n }\n\n const s = strm.state;\n const wrap = s.wrap;\n\n if (wrap === 2 || (wrap === 1 && s.status !== INIT_STATE) || s.lookahead) {\n return Z_STREAM_ERROR$2;\n }\n\n /* when using zlib wrappers, compute Adler-32 for provided dictionary */\n if (wrap === 1) {\n /* adler32(strm->adler, dictionary, dictLength); */\n strm.adler = adler32_1(strm.adler, dictionary, dictLength, 0);\n }\n\n s.wrap = 0; /* avoid computing Adler-32 in read_buf */\n\n /* if dictionary would fill window, just replace the history */\n if (dictLength >= s.w_size) {\n if (wrap === 0) { /* already empty otherwise */\n /*** CLEAR_HASH(s); ***/\n zero(s.head); // Fill with NIL (= 0);\n s.strstart = 0;\n s.block_start = 0;\n s.insert = 0;\n }\n /* use the tail */\n // dictionary = dictionary.slice(dictLength - s.w_size);\n let tmpDict = new Uint8Array(s.w_size);\n tmpDict.set(dictionary.subarray(dictLength - s.w_size, dictLength), 0);\n dictionary = tmpDict;\n dictLength = s.w_size;\n }\n /* insert dictionary into window and hash */\n const avail = strm.avail_in;\n const next = strm.next_in;\n const input = strm.input;\n strm.avail_in = dictLength;\n strm.next_in = 0;\n strm.input = dictionary;\n fill_window(s);\n while (s.lookahead >= MIN_MATCH) {\n let str = s.strstart;\n let n = s.lookahead - (MIN_MATCH - 1);\n do {\n /* UPDATE_HASH(s, s->ins_h, s->window[str + MIN_MATCH-1]); */\n s.ins_h = HASH(s, s.ins_h, s.window[str + MIN_MATCH - 1]);\n\n s.prev[str & s.w_mask] = s.head[s.ins_h];\n\n s.head[s.ins_h] = str;\n str++;\n } while (--n);\n s.strstart = str;\n s.lookahead = MIN_MATCH - 1;\n fill_window(s);\n }\n s.strstart += s.lookahead;\n s.block_start = s.strstart;\n s.insert = s.lookahead;\n s.lookahead = 0;\n s.match_length = s.prev_length = MIN_MATCH - 1;\n s.match_available = 0;\n strm.next_in = next;\n strm.input = input;\n strm.avail_in = avail;\n s.wrap = wrap;\n return Z_OK$3;\n};\n\n\nvar deflateInit_1 = deflateInit;\nvar deflateInit2_1 = deflateInit2;\nvar deflateReset_1 = deflateReset;\nvar deflateResetKeep_1 = deflateResetKeep;\nvar deflateSetHeader_1 = deflateSetHeader;\nvar deflate_2$1 = deflate$2;\nvar deflateEnd_1 = deflateEnd;\nvar deflateSetDictionary_1 = deflateSetDictionary;\nvar deflateInfo = 'pako deflate (from Nodeca project)';\n\n/* Not implemented\nmodule.exports.deflateBound = deflateBound;\nmodule.exports.deflateCopy = deflateCopy;\nmodule.exports.deflateGetDictionary = deflateGetDictionary;\nmodule.exports.deflateParams = deflateParams;\nmodule.exports.deflatePending = deflatePending;\nmodule.exports.deflatePrime = deflatePrime;\nmodule.exports.deflateTune = deflateTune;\n*/\n\nvar deflate_1$2 = {\n\tdeflateInit: deflateInit_1,\n\tdeflateInit2: deflateInit2_1,\n\tdeflateReset: deflateReset_1,\n\tdeflateResetKeep: deflateResetKeep_1,\n\tdeflateSetHeader: deflateSetHeader_1,\n\tdeflate: deflate_2$1,\n\tdeflateEnd: deflateEnd_1,\n\tdeflateSetDictionary: deflateSetDictionary_1,\n\tdeflateInfo: deflateInfo\n};\n\nconst _has = (obj, key) => {\n return Object.prototype.hasOwnProperty.call(obj, key);\n};\n\nvar assign = function (obj /*from1, from2, from3, ...*/) {\n const sources = Array.prototype.slice.call(arguments, 1);\n while (sources.length) {\n const source = sources.shift();\n if (!source) { continue; }\n\n if (typeof source !== 'object') {\n throw new TypeError(source + 'must be non-object');\n }\n\n for (const p in source) {\n if (_has(source, p)) {\n obj[p] = source[p];\n }\n }\n }\n\n return obj;\n};\n\n\n// Join array of chunks to single array.\nvar flattenChunks = (chunks) => {\n // calculate data length\n let len = 0;\n\n for (let i = 0, l = chunks.length; i < l; i++) {\n len += chunks[i].length;\n }\n\n // join chunks\n const result = new Uint8Array(len);\n\n for (let i = 0, pos = 0, l = chunks.length; i < l; i++) {\n let chunk = chunks[i];\n result.set(chunk, pos);\n pos += chunk.length;\n }\n\n return result;\n};\n\nvar common = {\n\tassign: assign,\n\tflattenChunks: flattenChunks\n};\n\n// String encode/decode helpers\n\n\n// Quick check if we can use fast array to bin string conversion\n//\n// - apply(Array) can fail on Android 2.2\n// - apply(Uint8Array) can fail on iOS 5.1 Safari\n//\nlet STR_APPLY_UIA_OK = true;\n\ntry { String.fromCharCode.apply(null, new Uint8Array(1)); } catch (__) { STR_APPLY_UIA_OK = false; }\n\n\n// Table with utf8 lengths (calculated by first byte of sequence)\n// Note, that 5 & 6-byte values and some 4-byte values can not be represented in JS,\n// because max possible codepoint is 0x10ffff\nconst _utf8len = new Uint8Array(256);\nfor (let q = 0; q < 256; q++) {\n _utf8len[q] = (q >= 252 ? 6 : q >= 248 ? 5 : q >= 240 ? 4 : q >= 224 ? 3 : q >= 192 ? 2 : 1);\n}\n_utf8len[254] = _utf8len[254] = 1; // Invalid sequence start\n\n\n// convert string to array (typed, when possible)\nvar string2buf = (str) => {\n if (typeof TextEncoder === 'function' && TextEncoder.prototype.encode) {\n return new TextEncoder().encode(str);\n }\n\n let buf, c, c2, m_pos, i, str_len = str.length, buf_len = 0;\n\n // count binary size\n for (m_pos = 0; m_pos < str_len; m_pos++) {\n c = str.charCodeAt(m_pos);\n if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {\n c2 = str.charCodeAt(m_pos + 1);\n if ((c2 & 0xfc00) === 0xdc00) {\n c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\n m_pos++;\n }\n }\n buf_len += c < 0x80 ? 1 : c < 0x800 ? 2 : c < 0x10000 ? 3 : 4;\n }\n\n // allocate buffer\n buf = new Uint8Array(buf_len);\n\n // convert\n for (i = 0, m_pos = 0; i < buf_len; m_pos++) {\n c = str.charCodeAt(m_pos);\n if ((c & 0xfc00) === 0xd800 && (m_pos + 1 < str_len)) {\n c2 = str.charCodeAt(m_pos + 1);\n if ((c2 & 0xfc00) === 0xdc00) {\n c = 0x10000 + ((c - 0xd800) << 10) + (c2 - 0xdc00);\n m_pos++;\n }\n }\n if (c < 0x80) {\n /* one byte */\n buf[i++] = c;\n } else if (c < 0x800) {\n /* two bytes */\n buf[i++] = 0xC0 | (c >>> 6);\n buf[i++] = 0x80 | (c & 0x3f);\n } else if (c < 0x10000) {\n /* three bytes */\n buf[i++] = 0xE0 | (c >>> 12);\n buf[i++] = 0x80 | (c >>> 6 & 0x3f);\n buf[i++] = 0x80 | (c & 0x3f);\n } else {\n /* four bytes */\n buf[i++] = 0xf0 | (c >>> 18);\n buf[i++] = 0x80 | (c >>> 12 & 0x3f);\n buf[i++] = 0x80 | (c >>> 6 & 0x3f);\n buf[i++] = 0x80 | (c & 0x3f);\n }\n }\n\n return buf;\n};\n\n// Helper\nconst buf2binstring = (buf, len) => {\n // On Chrome, the arguments in a function call that are allowed is `65534`.\n // If the length of the buffer is smaller than that, we can use this optimization,\n // otherwise we will take a slower path.\n if (len < 65534) {\n if (buf.subarray && STR_APPLY_UIA_OK) {\n return String.fromCharCode.apply(null, buf.length === len ? buf : buf.subarray(0, len));\n }\n }\n\n let result = '';\n for (let i = 0; i < len; i++) {\n result += String.fromCharCode(buf[i]);\n }\n return result;\n};\n\n\n// convert array to string\nvar buf2string = (buf, max) => {\n const len = max || buf.length;\n\n if (typeof TextDecoder === 'function' && TextDecoder.prototype.decode) {\n return new TextDecoder().decode(buf.subarray(0, max));\n }\n\n let i, out;\n\n // Reserve max possible length (2 words per char)\n // NB: by unknown reasons, Array is significantly faster for\n // String.fromCharCode.apply than Uint16Array.\n const utf16buf = new Array(len * 2);\n\n for (out = 0, i = 0; i < len;) {\n let c = buf[i++];\n // quick process ascii\n if (c < 0x80) { utf16buf[out++] = c; continue; }\n\n let c_len = _utf8len[c];\n // skip 5 & 6 byte codes\n if (c_len > 4) { utf16buf[out++] = 0xfffd; i += c_len - 1; continue; }\n\n // apply mask on first byte\n c &= c_len === 2 ? 0x1f : c_len === 3 ? 0x0f : 0x07;\n // join the rest\n while (c_len > 1 && i < len) {\n c = (c << 6) | (buf[i++] & 0x3f);\n c_len--;\n }\n\n // terminated by end of string?\n if (c_len > 1) { utf16buf[out++] = 0xfffd; continue; }\n\n if (c < 0x10000) {\n utf16buf[out++] = c;\n } else {\n c -= 0x10000;\n utf16buf[out++] = 0xd800 | ((c >> 10) & 0x3ff);\n utf16buf[out++] = 0xdc00 | (c & 0x3ff);\n }\n }\n\n return buf2binstring(utf16buf, out);\n};\n\n\n// Calculate max possible position in utf8 buffer,\n// that will not break sequence. If that's not possible\n// - (very small limits) return max size as is.\n//\n// buf[] - utf8 bytes array\n// max - length limit (mandatory);\nvar utf8border = (buf, max) => {\n\n max = max || buf.length;\n if (max > buf.length) { max = buf.length; }\n\n // go back from last position, until start of sequence found\n let pos = max - 1;\n while (pos >= 0 && (buf[pos] & 0xC0) === 0x80) { pos--; }\n\n // Very small and broken sequence,\n // return max, because we should return something anyway.\n if (pos < 0) { return max; }\n\n // If we came to start of buffer - that means buffer is too small,\n // return max too.\n if (pos === 0) { return max; }\n\n return (pos + _utf8len[buf[pos]] > max) ? pos : max;\n};\n\nvar strings = {\n\tstring2buf: string2buf,\n\tbuf2string: buf2string,\n\tutf8border: utf8border\n};\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nfunction ZStream() {\n /* next input byte */\n this.input = null; // JS specific, because we have no pointers\n this.next_in = 0;\n /* number of bytes available at input */\n this.avail_in = 0;\n /* total number of input bytes read so far */\n this.total_in = 0;\n /* next output byte should be put there */\n this.output = null; // JS specific, because we have no pointers\n this.next_out = 0;\n /* remaining free space at output */\n this.avail_out = 0;\n /* total number of bytes output so far */\n this.total_out = 0;\n /* last error message, NULL if no error */\n this.msg = ''/*Z_NULL*/;\n /* not visible by applications */\n this.state = null;\n /* best guess about the data type: binary or text */\n this.data_type = 2/*Z_UNKNOWN*/;\n /* adler32 value of the uncompressed data */\n this.adler = 0;\n}\n\nvar zstream = ZStream;\n\nconst toString$1 = Object.prototype.toString;\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\nconst {\n Z_NO_FLUSH: Z_NO_FLUSH$1, Z_SYNC_FLUSH, Z_FULL_FLUSH, Z_FINISH: Z_FINISH$2,\n Z_OK: Z_OK$2, Z_STREAM_END: Z_STREAM_END$2,\n Z_DEFAULT_COMPRESSION,\n Z_DEFAULT_STRATEGY,\n Z_DEFLATED: Z_DEFLATED$1\n} = constants$2;\n\n/* ===========================================================================*/\n\n\n/**\n * class Deflate\n *\n * Generic JS-style wrapper for zlib calls. If you don't need\n * streaming behaviour - use more simple functions: [[deflate]],\n * [[deflateRaw]] and [[gzip]].\n **/\n\n/* internal\n * Deflate.chunks -> Array\n *\n * Chunks of output data, if [[Deflate#onData]] not overridden.\n **/\n\n/**\n * Deflate.result -> Uint8Array\n *\n * Compressed result, generated by default [[Deflate#onData]]\n * and [[Deflate#onEnd]] handlers. Filled after you push last chunk\n * (call [[Deflate#push]] with `Z_FINISH` / `true` param).\n **/\n\n/**\n * Deflate.err -> Number\n *\n * Error code after deflate finished. 0 (Z_OK) on success.\n * You will not need it in real life, because deflate errors\n * are possible only on wrong options or bad `onData` / `onEnd`\n * custom handlers.\n **/\n\n/**\n * Deflate.msg -> String\n *\n * Error message, if [[Deflate.err]] != 0\n **/\n\n\n/**\n * new Deflate(options)\n * - options (Object): zlib deflate options.\n *\n * Creates new deflator instance with specified params. Throws exception\n * on bad params. Supported options:\n *\n * - `level`\n * - `windowBits`\n * - `memLevel`\n * - `strategy`\n * - `dictionary`\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Additional options, for internal needs:\n *\n * - `chunkSize` - size of generated data chunks (16K by default)\n * - `raw` (Boolean) - do raw deflate\n * - `gzip` (Boolean) - create gzip wrapper\n * - `header` (Object) - custom header for gzip\n * - `text` (Boolean) - true if compressed data believed to be text\n * - `time` (Number) - modification time, unix timestamp\n * - `os` (Number) - operation system code\n * - `extra` (Array) - array of bytes with extra data (max 65536)\n * - `name` (String) - file name (binary string)\n * - `comment` (String) - comment (binary string)\n * - `hcrc` (Boolean) - true if header crc should be added\n *\n * ##### Example:\n *\n * ```javascript\n * const pako = require('pako')\n * , chunk1 = new Uint8Array([1,2,3,4,5,6,7,8,9])\n * , chunk2 = new Uint8Array([10,11,12,13,14,15,16,17,18,19]);\n *\n * const deflate = new pako.Deflate({ level: 3});\n *\n * deflate.push(chunk1, false);\n * deflate.push(chunk2, true); // true -> last chunk\n *\n * if (deflate.err) { throw new Error(deflate.err); }\n *\n * console.log(deflate.result);\n * ```\n **/\nfunction Deflate$1(options) {\n this.options = common.assign({\n level: Z_DEFAULT_COMPRESSION,\n method: Z_DEFLATED$1,\n chunkSize: 16384,\n windowBits: 15,\n memLevel: 8,\n strategy: Z_DEFAULT_STRATEGY\n }, options || {});\n\n let opt = this.options;\n\n if (opt.raw && (opt.windowBits > 0)) {\n opt.windowBits = -opt.windowBits;\n }\n\n else if (opt.gzip && (opt.windowBits > 0) && (opt.windowBits < 16)) {\n opt.windowBits += 16;\n }\n\n this.err = 0; // error code, if happens (0 = Z_OK)\n this.msg = ''; // error message\n this.ended = false; // used to avoid multiple onEnd() calls\n this.chunks = []; // chunks of compressed data\n\n this.strm = new zstream();\n this.strm.avail_out = 0;\n\n let status = deflate_1$2.deflateInit2(\n this.strm,\n opt.level,\n opt.method,\n opt.windowBits,\n opt.memLevel,\n opt.strategy\n );\n\n if (status !== Z_OK$2) {\n throw new Error(messages[status]);\n }\n\n if (opt.header) {\n deflate_1$2.deflateSetHeader(this.strm, opt.header);\n }\n\n if (opt.dictionary) {\n let dict;\n // Convert data if needed\n if (typeof opt.dictionary === 'string') {\n // If we need to compress text, change encoding to utf8.\n dict = strings.string2buf(opt.dictionary);\n } else if (toString$1.call(opt.dictionary) === '[object ArrayBuffer]') {\n dict = new Uint8Array(opt.dictionary);\n } else {\n dict = opt.dictionary;\n }\n\n status = deflate_1$2.deflateSetDictionary(this.strm, dict);\n\n if (status !== Z_OK$2) {\n throw new Error(messages[status]);\n }\n\n this._dict_set = true;\n }\n}\n\n/**\n * Deflate#push(data[, flush_mode]) -> Boolean\n * - data (Uint8Array|ArrayBuffer|String): input data. Strings will be\n * converted to utf8 byte sequence.\n * - flush_mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes.\n * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH.\n *\n * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with\n * new compressed chunks. Returns `true` on success. The last data block must\n * have `flush_mode` Z_FINISH (or `true`). That will flush internal pending\n * buffers and call [[Deflate#onEnd]].\n *\n * On fail call [[Deflate#onEnd]] with error code and return false.\n *\n * ##### Example\n *\n * ```javascript\n * push(chunk, false); // push one of data chunks\n * ...\n * push(chunk, true); // push last chunk\n * ```\n **/\nDeflate$1.prototype.push = function (data, flush_mode) {\n const strm = this.strm;\n const chunkSize = this.options.chunkSize;\n let status, _flush_mode;\n\n if (this.ended) { return false; }\n\n if (flush_mode === ~~flush_mode) _flush_mode = flush_mode;\n else _flush_mode = flush_mode === true ? Z_FINISH$2 : Z_NO_FLUSH$1;\n\n // Convert data if needed\n if (typeof data === 'string') {\n // If we need to compress text, change encoding to utf8.\n strm.input = strings.string2buf(data);\n } else if (toString$1.call(data) === '[object ArrayBuffer]') {\n strm.input = new Uint8Array(data);\n } else {\n strm.input = data;\n }\n\n strm.next_in = 0;\n strm.avail_in = strm.input.length;\n\n for (;;) {\n if (strm.avail_out === 0) {\n strm.output = new Uint8Array(chunkSize);\n strm.next_out = 0;\n strm.avail_out = chunkSize;\n }\n\n // Make sure avail_out > 6 to avoid repeating markers\n if ((_flush_mode === Z_SYNC_FLUSH || _flush_mode === Z_FULL_FLUSH) && strm.avail_out <= 6) {\n this.onData(strm.output.subarray(0, strm.next_out));\n strm.avail_out = 0;\n continue;\n }\n\n status = deflate_1$2.deflate(strm, _flush_mode);\n\n // Ended => flush and finish\n if (status === Z_STREAM_END$2) {\n if (strm.next_out > 0) {\n this.onData(strm.output.subarray(0, strm.next_out));\n }\n status = deflate_1$2.deflateEnd(this.strm);\n this.onEnd(status);\n this.ended = true;\n return status === Z_OK$2;\n }\n\n // Flush if out buffer full\n if (strm.avail_out === 0) {\n this.onData(strm.output);\n continue;\n }\n\n // Flush if requested and has data\n if (_flush_mode > 0 && strm.next_out > 0) {\n this.onData(strm.output.subarray(0, strm.next_out));\n strm.avail_out = 0;\n continue;\n }\n\n if (strm.avail_in === 0) break;\n }\n\n return true;\n};\n\n\n/**\n * Deflate#onData(chunk) -> Void\n * - chunk (Uint8Array): output data.\n *\n * By default, stores data blocks in `chunks[]` property and glue\n * those in `onEnd`. Override this handler, if you need another behaviour.\n **/\nDeflate$1.prototype.onData = function (chunk) {\n this.chunks.push(chunk);\n};\n\n\n/**\n * Deflate#onEnd(status) -> Void\n * - status (Number): deflate status. 0 (Z_OK) on success,\n * other if not.\n *\n * Called once after you tell deflate that the input stream is\n * complete (Z_FINISH). By default - join collected chunks,\n * free memory and fill `results` / `err` properties.\n **/\nDeflate$1.prototype.onEnd = function (status) {\n // On success - join\n if (status === Z_OK$2) {\n this.result = common.flattenChunks(this.chunks);\n }\n this.chunks = [];\n this.err = status;\n this.msg = this.strm.msg;\n};\n\n\n/**\n * deflate(data[, options]) -> Uint8Array\n * - data (Uint8Array|ArrayBuffer|String): input data to compress.\n * - options (Object): zlib deflate options.\n *\n * Compress `data` with deflate algorithm and `options`.\n *\n * Supported options are:\n *\n * - level\n * - windowBits\n * - memLevel\n * - strategy\n * - dictionary\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Sugar (options):\n *\n * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\n * negative windowBits implicitly.\n *\n * ##### Example:\n *\n * ```javascript\n * const pako = require('pako')\n * const data = new Uint8Array([1,2,3,4,5,6,7,8,9]);\n *\n * console.log(pako.deflate(data));\n * ```\n **/\nfunction deflate$1(input, options) {\n const deflator = new Deflate$1(options);\n\n deflator.push(input, true);\n\n // That will never happens, if you don't cheat with options :)\n if (deflator.err) { throw deflator.msg || messages[deflator.err]; }\n\n return deflator.result;\n}\n\n\n/**\n * deflateRaw(data[, options]) -> Uint8Array\n * - data (Uint8Array|ArrayBuffer|String): input data to compress.\n * - options (Object): zlib deflate options.\n *\n * The same as [[deflate]], but creates raw data, without wrapper\n * (header and adler32 crc).\n **/\nfunction deflateRaw$1(input, options) {\n options = options || {};\n options.raw = true;\n return deflate$1(input, options);\n}\n\n\n/**\n * gzip(data[, options]) -> Uint8Array\n * - data (Uint8Array|ArrayBuffer|String): input data to compress.\n * - options (Object): zlib deflate options.\n *\n * The same as [[deflate]], but create gzip wrapper instead of\n * deflate one.\n **/\nfunction gzip$1(input, options) {\n options = options || {};\n options.gzip = true;\n return deflate$1(input, options);\n}\n\n\nvar Deflate_1$1 = Deflate$1;\nvar deflate_2 = deflate$1;\nvar deflateRaw_1$1 = deflateRaw$1;\nvar gzip_1$1 = gzip$1;\nvar constants$1 = constants$2;\n\nvar deflate_1$1 = {\n\tDeflate: Deflate_1$1,\n\tdeflate: deflate_2,\n\tdeflateRaw: deflateRaw_1$1,\n\tgzip: gzip_1$1,\n\tconstants: constants$1\n};\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n// See state defs from inflate.js\nconst BAD$1 = 16209; /* got a data error -- remain here until reset */\nconst TYPE$1 = 16191; /* i: waiting for type bits, including last-flag bit */\n\n/*\n Decode literal, length, and distance codes and write out the resulting\n literal and match bytes until either not enough input or output is\n available, an end-of-block is encountered, or a data error is encountered.\n When large enough input and output buffers are supplied to inflate(), for\n example, a 16K input buffer and a 64K output buffer, more than 95% of the\n inflate execution time is spent in this routine.\n\n Entry assumptions:\n\n state.mode === LEN\n strm.avail_in >= 6\n strm.avail_out >= 258\n start >= strm.avail_out\n state.bits < 8\n\n On return, state.mode is one of:\n\n LEN -- ran out of enough output space or enough available input\n TYPE -- reached end of block code, inflate() to interpret next block\n BAD -- error in block data\n\n Notes:\n\n - The maximum input bits used by a length/distance pair is 15 bits for the\n length code, 5 bits for the length extra, 15 bits for the distance code,\n and 13 bits for the distance extra. This totals 48 bits, or six bytes.\n Therefore if strm.avail_in >= 6, then there is enough input to avoid\n checking for available input while decoding.\n\n - The maximum bytes that a single length/distance pair can output is 258\n bytes, which is the maximum length that can be coded. inflate_fast()\n requires strm.avail_out >= 258 for each loop to avoid checking for\n output space.\n */\nvar inffast = function inflate_fast(strm, start) {\n let _in; /* local strm.input */\n let last; /* have enough input while in < last */\n let _out; /* local strm.output */\n let beg; /* inflate()'s initial strm.output */\n let end; /* while out < end, enough space available */\n//#ifdef INFLATE_STRICT\n let dmax; /* maximum distance from zlib header */\n//#endif\n let wsize; /* window size or zero if not using window */\n let whave; /* valid bytes in the window */\n let wnext; /* window write index */\n // Use `s_window` instead `window`, avoid conflict with instrumentation tools\n let s_window; /* allocated sliding window, if wsize != 0 */\n let hold; /* local strm.hold */\n let bits; /* local strm.bits */\n let lcode; /* local strm.lencode */\n let dcode; /* local strm.distcode */\n let lmask; /* mask for first level of length codes */\n let dmask; /* mask for first level of distance codes */\n let here; /* retrieved table entry */\n let op; /* code bits, operation, extra bits, or */\n /* window position, window bytes to copy */\n let len; /* match length, unused bytes */\n let dist; /* match distance */\n let from; /* where to copy match from */\n let from_source;\n\n\n let input, output; // JS specific, because we have no pointers\n\n /* copy state to local variables */\n const state = strm.state;\n //here = state.here;\n _in = strm.next_in;\n input = strm.input;\n last = _in + (strm.avail_in - 5);\n _out = strm.next_out;\n output = strm.output;\n beg = _out - (start - strm.avail_out);\n end = _out + (strm.avail_out - 257);\n//#ifdef INFLATE_STRICT\n dmax = state.dmax;\n//#endif\n wsize = state.wsize;\n whave = state.whave;\n wnext = state.wnext;\n s_window = state.window;\n hold = state.hold;\n bits = state.bits;\n lcode = state.lencode;\n dcode = state.distcode;\n lmask = (1 << state.lenbits) - 1;\n dmask = (1 << state.distbits) - 1;\n\n\n /* decode literals and length/distances until end-of-block or not enough\n input data or output space */\n\n top:\n do {\n if (bits < 15) {\n hold += input[_in++] << bits;\n bits += 8;\n hold += input[_in++] << bits;\n bits += 8;\n }\n\n here = lcode[hold & lmask];\n\n dolen:\n for (;;) { // Goto emulation\n op = here >>> 24/*here.bits*/;\n hold >>>= op;\n bits -= op;\n op = (here >>> 16) & 0xff/*here.op*/;\n if (op === 0) { /* literal */\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n // \"inflate: literal '%c'\\n\" :\n // \"inflate: literal 0x%02x\\n\", here.val));\n output[_out++] = here & 0xffff/*here.val*/;\n }\n else if (op & 16) { /* length base */\n len = here & 0xffff/*here.val*/;\n op &= 15; /* number of extra bits */\n if (op) {\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n }\n len += hold & ((1 << op) - 1);\n hold >>>= op;\n bits -= op;\n }\n //Tracevv((stderr, \"inflate: length %u\\n\", len));\n if (bits < 15) {\n hold += input[_in++] << bits;\n bits += 8;\n hold += input[_in++] << bits;\n bits += 8;\n }\n here = dcode[hold & dmask];\n\n dodist:\n for (;;) { // goto emulation\n op = here >>> 24/*here.bits*/;\n hold >>>= op;\n bits -= op;\n op = (here >>> 16) & 0xff/*here.op*/;\n\n if (op & 16) { /* distance base */\n dist = here & 0xffff/*here.val*/;\n op &= 15; /* number of extra bits */\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n if (bits < op) {\n hold += input[_in++] << bits;\n bits += 8;\n }\n }\n dist += hold & ((1 << op) - 1);\n//#ifdef INFLATE_STRICT\n if (dist > dmax) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD$1;\n break top;\n }\n//#endif\n hold >>>= op;\n bits -= op;\n //Tracevv((stderr, \"inflate: distance %u\\n\", dist));\n op = _out - beg; /* max distance in output */\n if (dist > op) { /* see if copy from window */\n op = dist - op; /* distance back in window */\n if (op > whave) {\n if (state.sane) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD$1;\n break top;\n }\n\n// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n// if (len <= op - whave) {\n// do {\n// output[_out++] = 0;\n// } while (--len);\n// continue top;\n// }\n// len -= op - whave;\n// do {\n// output[_out++] = 0;\n// } while (--op > whave);\n// if (op === 0) {\n// from = _out - dist;\n// do {\n// output[_out++] = output[from++];\n// } while (--len);\n// continue top;\n// }\n//#endif\n }\n from = 0; // window index\n from_source = s_window;\n if (wnext === 0) { /* very common case */\n from += wsize - op;\n if (op < len) { /* some from window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n else if (wnext < op) { /* wrap around window */\n from += wsize + wnext - op;\n op -= wnext;\n if (op < len) { /* some from end of window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = 0;\n if (wnext < len) { /* some from start of window */\n op = wnext;\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n }\n else { /* contiguous in window */\n from += wnext - op;\n if (op < len) { /* some from window */\n len -= op;\n do {\n output[_out++] = s_window[from++];\n } while (--op);\n from = _out - dist; /* rest from output */\n from_source = output;\n }\n }\n while (len > 2) {\n output[_out++] = from_source[from++];\n output[_out++] = from_source[from++];\n output[_out++] = from_source[from++];\n len -= 3;\n }\n if (len) {\n output[_out++] = from_source[from++];\n if (len > 1) {\n output[_out++] = from_source[from++];\n }\n }\n }\n else {\n from = _out - dist; /* copy direct from output */\n do { /* minimum length is three */\n output[_out++] = output[from++];\n output[_out++] = output[from++];\n output[_out++] = output[from++];\n len -= 3;\n } while (len > 2);\n if (len) {\n output[_out++] = output[from++];\n if (len > 1) {\n output[_out++] = output[from++];\n }\n }\n }\n }\n else if ((op & 64) === 0) { /* 2nd level distance code */\n here = dcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\n continue dodist;\n }\n else {\n strm.msg = 'invalid distance code';\n state.mode = BAD$1;\n break top;\n }\n\n break; // need to emulate goto via \"continue\"\n }\n }\n else if ((op & 64) === 0) { /* 2nd level length code */\n here = lcode[(here & 0xffff)/*here.val*/ + (hold & ((1 << op) - 1))];\n continue dolen;\n }\n else if (op & 32) { /* end-of-block */\n //Tracevv((stderr, \"inflate: end of block\\n\"));\n state.mode = TYPE$1;\n break top;\n }\n else {\n strm.msg = 'invalid literal/length code';\n state.mode = BAD$1;\n break top;\n }\n\n break; // need to emulate goto via \"continue\"\n }\n } while (_in < last && _out < end);\n\n /* return unused bytes (on entry, bits < 8, so in won't go too far back) */\n len = bits >> 3;\n _in -= len;\n bits -= len << 3;\n hold &= (1 << bits) - 1;\n\n /* update state and return */\n strm.next_in = _in;\n strm.next_out = _out;\n strm.avail_in = (_in < last ? 5 + (last - _in) : 5 - (_in - last));\n strm.avail_out = (_out < end ? 257 + (end - _out) : 257 - (_out - end));\n state.hold = hold;\n state.bits = bits;\n return;\n};\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nconst MAXBITS = 15;\nconst ENOUGH_LENS$1 = 852;\nconst ENOUGH_DISTS$1 = 592;\n//const ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\n\nconst CODES$1 = 0;\nconst LENS$1 = 1;\nconst DISTS$1 = 2;\n\nconst lbase = new Uint16Array([ /* Length codes 257..285 base */\n 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31,\n 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0\n]);\n\nconst lext = new Uint8Array([ /* Length codes 257..285 extra */\n 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18,\n 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78\n]);\n\nconst dbase = new Uint16Array([ /* Distance codes 0..29 base */\n 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193,\n 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145,\n 8193, 12289, 16385, 24577, 0, 0\n]);\n\nconst dext = new Uint8Array([ /* Distance codes 0..29 extra */\n 16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22,\n 23, 23, 24, 24, 25, 25, 26, 26, 27, 27,\n 28, 28, 29, 29, 64, 64\n]);\n\nconst inflate_table = (type, lens, lens_index, codes, table, table_index, work, opts) =>\n{\n const bits = opts.bits;\n //here = opts.here; /* table entry for duplication */\n\n let len = 0; /* a code's length in bits */\n let sym = 0; /* index of code symbols */\n let min = 0, max = 0; /* minimum and maximum code lengths */\n let root = 0; /* number of index bits for root table */\n let curr = 0; /* number of index bits for current table */\n let drop = 0; /* code bits to drop for sub-table */\n let left = 0; /* number of prefix codes available */\n let used = 0; /* code entries in table used */\n let huff = 0; /* Huffman code */\n let incr; /* for incrementing code, index */\n let fill; /* index for replicating entries */\n let low; /* low bits for current root entry */\n let mask; /* mask for low root bits */\n let next; /* next available space in table */\n let base = null; /* base value table to use */\n// let shoextra; /* extra bits table to use */\n let match; /* use base and extra for symbol >= match */\n const count = new Uint16Array(MAXBITS + 1); //[MAXBITS+1]; /* number of codes of each length */\n const offs = new Uint16Array(MAXBITS + 1); //[MAXBITS+1]; /* offsets in table for each length */\n let extra = null;\n\n let here_bits, here_op, here_val;\n\n /*\n Process a set of code lengths to create a canonical Huffman code. The\n code lengths are lens[0..codes-1]. Each length corresponds to the\n symbols 0..codes-1. The Huffman code is generated by first sorting the\n symbols by length from short to long, and retaining the symbol order\n for codes with equal lengths. Then the code starts with all zero bits\n for the first code of the shortest length, and the codes are integer\n increments for the same length, and zeros are appended as the length\n increases. For the deflate format, these bits are stored backwards\n from their more natural integer increment ordering, and so when the\n decoding tables are built in the large loop below, the integer codes\n are incremented backwards.\n\n This routine assumes, but does not check, that all of the entries in\n lens[] are in the range 0..MAXBITS. The caller must assure this.\n 1..MAXBITS is interpreted as that code length. zero means that that\n symbol does not occur in this code.\n\n The codes are sorted by computing a count of codes for each length,\n creating from that a table of starting indices for each length in the\n sorted table, and then entering the symbols in order in the sorted\n table. The sorted table is work[], with that space being provided by\n the caller.\n\n The length counts are used for other purposes as well, i.e. finding\n the minimum and maximum length codes, determining if there are any\n codes at all, checking for a valid set of lengths, and looking ahead\n at length counts to determine sub-table sizes when building the\n decoding tables.\n */\n\n /* accumulate lengths for codes (assumes lens[] all in 0..MAXBITS) */\n for (len = 0; len <= MAXBITS; len++) {\n count[len] = 0;\n }\n for (sym = 0; sym < codes; sym++) {\n count[lens[lens_index + sym]]++;\n }\n\n /* bound code lengths, force root to be within code lengths */\n root = bits;\n for (max = MAXBITS; max >= 1; max--) {\n if (count[max] !== 0) { break; }\n }\n if (root > max) {\n root = max;\n }\n if (max === 0) { /* no symbols to code at all */\n //table.op[opts.table_index] = 64; //here.op = (var char)64; /* invalid code marker */\n //table.bits[opts.table_index] = 1; //here.bits = (var char)1;\n //table.val[opts.table_index++] = 0; //here.val = (var short)0;\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\n\n\n //table.op[opts.table_index] = 64;\n //table.bits[opts.table_index] = 1;\n //table.val[opts.table_index++] = 0;\n table[table_index++] = (1 << 24) | (64 << 16) | 0;\n\n opts.bits = 1;\n return 0; /* no symbols, but wait for decoding to report error */\n }\n for (min = 1; min < max; min++) {\n if (count[min] !== 0) { break; }\n }\n if (root < min) {\n root = min;\n }\n\n /* check for an over-subscribed or incomplete set of lengths */\n left = 1;\n for (len = 1; len <= MAXBITS; len++) {\n left <<= 1;\n left -= count[len];\n if (left < 0) {\n return -1;\n } /* over-subscribed */\n }\n if (left > 0 && (type === CODES$1 || max !== 1)) {\n return -1; /* incomplete set */\n }\n\n /* generate offsets into symbol table for each length for sorting */\n offs[1] = 0;\n for (len = 1; len < MAXBITS; len++) {\n offs[len + 1] = offs[len] + count[len];\n }\n\n /* sort symbols by length, by symbol order within each length */\n for (sym = 0; sym < codes; sym++) {\n if (lens[lens_index + sym] !== 0) {\n work[offs[lens[lens_index + sym]]++] = sym;\n }\n }\n\n /*\n Create and fill in decoding tables. In this loop, the table being\n filled is at next and has curr index bits. The code being used is huff\n with length len. That code is converted to an index by dropping drop\n bits off of the bottom. For codes where len is less than drop + curr,\n those top drop + curr - len bits are incremented through all values to\n fill the table with replicated entries.\n\n root is the number of index bits for the root table. When len exceeds\n root, sub-tables are created pointed to by the root entry with an index\n of the low root bits of huff. This is saved in low to check for when a\n new sub-table should be started. drop is zero when the root table is\n being filled, and drop is root when sub-tables are being filled.\n\n When a new sub-table is needed, it is necessary to look ahead in the\n code lengths to determine what size sub-table is needed. The length\n counts are used for this, and so count[] is decremented as codes are\n entered in the tables.\n\n used keeps track of how many table entries have been allocated from the\n provided *table space. It is checked for LENS and DIST tables against\n the constants ENOUGH_LENS and ENOUGH_DISTS to guard against changes in\n the initial root table size constants. See the comments in inftrees.h\n for more information.\n\n sym increments through all symbols, and the loop terminates when\n all codes of length max, i.e. all codes, have been processed. This\n routine permits incomplete codes, so another loop after this one fills\n in the rest of the decoding tables with invalid code markers.\n */\n\n /* set up for code type */\n // poor man optimization - use if-else instead of switch,\n // to avoid deopts in old v8\n if (type === CODES$1) {\n base = extra = work; /* dummy value--not used */\n match = 20;\n\n } else if (type === LENS$1) {\n base = lbase;\n extra = lext;\n match = 257;\n\n } else { /* DISTS */\n base = dbase;\n extra = dext;\n match = 0;\n }\n\n /* initialize opts for loop */\n huff = 0; /* starting code */\n sym = 0; /* starting code symbol */\n len = min; /* starting code length */\n next = table_index; /* current table to fill in */\n curr = root; /* current table index bits */\n drop = 0; /* current bits to drop from code for index */\n low = -1; /* trigger new sub-table when len > root */\n used = 1 << root; /* use root table entries */\n mask = used - 1; /* mask for comparing low */\n\n /* check available table space */\n if ((type === LENS$1 && used > ENOUGH_LENS$1) ||\n (type === DISTS$1 && used > ENOUGH_DISTS$1)) {\n return 1;\n }\n\n /* process all codes and make table entries */\n for (;;) {\n /* create table entry */\n here_bits = len - drop;\n if (work[sym] + 1 < match) {\n here_op = 0;\n here_val = work[sym];\n }\n else if (work[sym] >= match) {\n here_op = extra[work[sym] - match];\n here_val = base[work[sym] - match];\n }\n else {\n here_op = 32 + 64; /* end of block */\n here_val = 0;\n }\n\n /* replicate for those indices with low len bits equal to huff */\n incr = 1 << (len - drop);\n fill = 1 << curr;\n min = fill; /* save offset to next table */\n do {\n fill -= incr;\n table[next + (huff >> drop) + fill] = (here_bits << 24) | (here_op << 16) | here_val |0;\n } while (fill !== 0);\n\n /* backwards increment the len-bit code huff */\n incr = 1 << (len - 1);\n while (huff & incr) {\n incr >>= 1;\n }\n if (incr !== 0) {\n huff &= incr - 1;\n huff += incr;\n } else {\n huff = 0;\n }\n\n /* go to next symbol, update count, len */\n sym++;\n if (--count[len] === 0) {\n if (len === max) { break; }\n len = lens[lens_index + work[sym]];\n }\n\n /* create new sub-table if needed */\n if (len > root && (huff & mask) !== low) {\n /* if first time, transition to sub-tables */\n if (drop === 0) {\n drop = root;\n }\n\n /* increment past last table */\n next += min; /* here min is 1 << curr */\n\n /* determine length of next table */\n curr = len - drop;\n left = 1 << curr;\n while (curr + drop < max) {\n left -= count[curr + drop];\n if (left <= 0) { break; }\n curr++;\n left <<= 1;\n }\n\n /* check for enough space */\n used += 1 << curr;\n if ((type === LENS$1 && used > ENOUGH_LENS$1) ||\n (type === DISTS$1 && used > ENOUGH_DISTS$1)) {\n return 1;\n }\n\n /* point entry in root table to sub-table */\n low = huff & mask;\n /*table.op[low] = curr;\n table.bits[low] = root;\n table.val[low] = next - opts.table_index;*/\n table[low] = (root << 24) | (curr << 16) | (next - table_index) |0;\n }\n }\n\n /* fill in remaining table entry if code is incomplete (guaranteed to have\n at most one remaining entry, since if the code is incomplete, the\n maximum code length that was allowed to get this far is one bit) */\n if (huff !== 0) {\n //table.op[next + huff] = 64; /* invalid code marker */\n //table.bits[next + huff] = len - drop;\n //table.val[next + huff] = 0;\n table[next + huff] = ((len - drop) << 24) | (64 << 16) |0;\n }\n\n /* set return parameters */\n //opts.table_index += used;\n opts.bits = root;\n return 0;\n};\n\n\nvar inftrees = inflate_table;\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\n\n\n\n\n\nconst CODES = 0;\nconst LENS = 1;\nconst DISTS = 2;\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\nconst {\n Z_FINISH: Z_FINISH$1, Z_BLOCK, Z_TREES,\n Z_OK: Z_OK$1, Z_STREAM_END: Z_STREAM_END$1, Z_NEED_DICT: Z_NEED_DICT$1, Z_STREAM_ERROR: Z_STREAM_ERROR$1, Z_DATA_ERROR: Z_DATA_ERROR$1, Z_MEM_ERROR: Z_MEM_ERROR$1, Z_BUF_ERROR,\n Z_DEFLATED\n} = constants$2;\n\n\n/* STATES ====================================================================*/\n/* ===========================================================================*/\n\n\nconst HEAD = 16180; /* i: waiting for magic header */\nconst FLAGS = 16181; /* i: waiting for method and flags (gzip) */\nconst TIME = 16182; /* i: waiting for modification time (gzip) */\nconst OS = 16183; /* i: waiting for extra flags and operating system (gzip) */\nconst EXLEN = 16184; /* i: waiting for extra length (gzip) */\nconst EXTRA = 16185; /* i: waiting for extra bytes (gzip) */\nconst NAME = 16186; /* i: waiting for end of file name (gzip) */\nconst COMMENT = 16187; /* i: waiting for end of comment (gzip) */\nconst HCRC = 16188; /* i: waiting for header crc (gzip) */\nconst DICTID = 16189; /* i: waiting for dictionary check value */\nconst DICT = 16190; /* waiting for inflateSetDictionary() call */\nconst TYPE = 16191; /* i: waiting for type bits, including last-flag bit */\nconst TYPEDO = 16192; /* i: same, but skip check to exit inflate on new block */\nconst STORED = 16193; /* i: waiting for stored size (length and complement) */\nconst COPY_ = 16194; /* i/o: same as COPY below, but only first time in */\nconst COPY = 16195; /* i/o: waiting for input or output to copy stored block */\nconst TABLE = 16196; /* i: waiting for dynamic block table lengths */\nconst LENLENS = 16197; /* i: waiting for code length code lengths */\nconst CODELENS = 16198; /* i: waiting for length/lit and distance code lengths */\nconst LEN_ = 16199; /* i: same as LEN below, but only first time in */\nconst LEN = 16200; /* i: waiting for length/lit/eob code */\nconst LENEXT = 16201; /* i: waiting for length extra bits */\nconst DIST = 16202; /* i: waiting for distance code */\nconst DISTEXT = 16203; /* i: waiting for distance extra bits */\nconst MATCH = 16204; /* o: waiting for output space to copy string */\nconst LIT = 16205; /* o: waiting for output space to write literal */\nconst CHECK = 16206; /* i: waiting for 32-bit check value */\nconst LENGTH = 16207; /* i: waiting for 32-bit length (gzip) */\nconst DONE = 16208; /* finished check, done -- remain here until reset */\nconst BAD = 16209; /* got a data error -- remain here until reset */\nconst MEM = 16210; /* got an inflate() memory error -- remain here until reset */\nconst SYNC = 16211; /* looking for synchronization bytes to restart inflate() */\n\n/* ===========================================================================*/\n\n\n\nconst ENOUGH_LENS = 852;\nconst ENOUGH_DISTS = 592;\n//const ENOUGH = (ENOUGH_LENS+ENOUGH_DISTS);\n\nconst MAX_WBITS = 15;\n/* 32K LZ77 window */\nconst DEF_WBITS = MAX_WBITS;\n\n\nconst zswap32 = (q) => {\n\n return (((q >>> 24) & 0xff) +\n ((q >>> 8) & 0xff00) +\n ((q & 0xff00) << 8) +\n ((q & 0xff) << 24));\n};\n\n\nfunction InflateState() {\n this.strm = null; /* pointer back to this zlib stream */\n this.mode = 0; /* current inflate mode */\n this.last = false; /* true if processing last block */\n this.wrap = 0; /* bit 0 true for zlib, bit 1 true for gzip,\n bit 2 true to validate check value */\n this.havedict = false; /* true if dictionary provided */\n this.flags = 0; /* gzip header method and flags (0 if zlib), or\n -1 if raw or no header yet */\n this.dmax = 0; /* zlib header max distance (INFLATE_STRICT) */\n this.check = 0; /* protected copy of check value */\n this.total = 0; /* protected copy of output count */\n // TODO: may be {}\n this.head = null; /* where to save gzip header information */\n\n /* sliding window */\n this.wbits = 0; /* log base 2 of requested window size */\n this.wsize = 0; /* window size or zero if not using window */\n this.whave = 0; /* valid bytes in the window */\n this.wnext = 0; /* window write index */\n this.window = null; /* allocated sliding window, if needed */\n\n /* bit accumulator */\n this.hold = 0; /* input bit accumulator */\n this.bits = 0; /* number of bits in \"in\" */\n\n /* for string and stored block copying */\n this.length = 0; /* literal or length of data to copy */\n this.offset = 0; /* distance back to copy string from */\n\n /* for table and code decoding */\n this.extra = 0; /* extra bits needed */\n\n /* fixed and dynamic code tables */\n this.lencode = null; /* starting table for length/literal codes */\n this.distcode = null; /* starting table for distance codes */\n this.lenbits = 0; /* index bits for lencode */\n this.distbits = 0; /* index bits for distcode */\n\n /* dynamic table building */\n this.ncode = 0; /* number of code length code lengths */\n this.nlen = 0; /* number of length code lengths */\n this.ndist = 0; /* number of distance code lengths */\n this.have = 0; /* number of code lengths in lens[] */\n this.next = null; /* next available space in codes[] */\n\n this.lens = new Uint16Array(320); /* temporary storage for code lengths */\n this.work = new Uint16Array(288); /* work area for code table building */\n\n /*\n because we don't have pointers in js, we use lencode and distcode directly\n as buffers so we don't need codes\n */\n //this.codes = new Int32Array(ENOUGH); /* space for code tables */\n this.lendyn = null; /* dynamic table for length/literal codes (JS specific) */\n this.distdyn = null; /* dynamic table for distance codes (JS specific) */\n this.sane = 0; /* if false, allow invalid distance too far */\n this.back = 0; /* bits back of last unprocessed length/lit */\n this.was = 0; /* initial length of match */\n}\n\n\nconst inflateStateCheck = (strm) => {\n\n if (!strm) {\n return 1;\n }\n const state = strm.state;\n if (!state || state.strm !== strm ||\n state.mode < HEAD || state.mode > SYNC) {\n return 1;\n }\n return 0;\n};\n\n\nconst inflateResetKeep = (strm) => {\n\n if (inflateStateCheck(strm)) { return Z_STREAM_ERROR$1; }\n const state = strm.state;\n strm.total_in = strm.total_out = state.total = 0;\n strm.msg = ''; /*Z_NULL*/\n if (state.wrap) { /* to support ill-conceived Java test suite */\n strm.adler = state.wrap & 1;\n }\n state.mode = HEAD;\n state.last = 0;\n state.havedict = 0;\n state.flags = -1;\n state.dmax = 32768;\n state.head = null/*Z_NULL*/;\n state.hold = 0;\n state.bits = 0;\n //state.lencode = state.distcode = state.next = state.codes;\n state.lencode = state.lendyn = new Int32Array(ENOUGH_LENS);\n state.distcode = state.distdyn = new Int32Array(ENOUGH_DISTS);\n\n state.sane = 1;\n state.back = -1;\n //Tracev((stderr, \"inflate: reset\\n\"));\n return Z_OK$1;\n};\n\n\nconst inflateReset = (strm) => {\n\n if (inflateStateCheck(strm)) { return Z_STREAM_ERROR$1; }\n const state = strm.state;\n state.wsize = 0;\n state.whave = 0;\n state.wnext = 0;\n return inflateResetKeep(strm);\n\n};\n\n\nconst inflateReset2 = (strm, windowBits) => {\n let wrap;\n\n /* get the state */\n if (inflateStateCheck(strm)) { return Z_STREAM_ERROR$1; }\n const state = strm.state;\n\n /* extract wrap request from windowBits parameter */\n if (windowBits < 0) {\n wrap = 0;\n windowBits = -windowBits;\n }\n else {\n wrap = (windowBits >> 4) + 5;\n if (windowBits < 48) {\n windowBits &= 15;\n }\n }\n\n /* set number of window bits, free window if different */\n if (windowBits && (windowBits < 8 || windowBits > 15)) {\n return Z_STREAM_ERROR$1;\n }\n if (state.window !== null && state.wbits !== windowBits) {\n state.window = null;\n }\n\n /* update state and reset the rest of it */\n state.wrap = wrap;\n state.wbits = windowBits;\n return inflateReset(strm);\n};\n\n\nconst inflateInit2 = (strm, windowBits) => {\n\n if (!strm) { return Z_STREAM_ERROR$1; }\n //strm.msg = Z_NULL; /* in case we return an error */\n\n const state = new InflateState();\n\n //if (state === Z_NULL) return Z_MEM_ERROR;\n //Tracev((stderr, \"inflate: allocated\\n\"));\n strm.state = state;\n state.strm = strm;\n state.window = null/*Z_NULL*/;\n state.mode = HEAD; /* to pass state test in inflateReset2() */\n const ret = inflateReset2(strm, windowBits);\n if (ret !== Z_OK$1) {\n strm.state = null/*Z_NULL*/;\n }\n return ret;\n};\n\n\nconst inflateInit = (strm) => {\n\n return inflateInit2(strm, DEF_WBITS);\n};\n\n\n/*\n Return state with length and distance decoding tables and index sizes set to\n fixed code decoding. Normally this returns fixed tables from inffixed.h.\n If BUILDFIXED is defined, then instead this routine builds the tables the\n first time it's called, and returns those tables the first time and\n thereafter. This reduces the size of the code by about 2K bytes, in\n exchange for a little execution time. However, BUILDFIXED should not be\n used for threaded applications, since the rewriting of the tables and virgin\n may not be thread-safe.\n */\nlet virgin = true;\n\nlet lenfix, distfix; // We have no pointers in JS, so keep tables separate\n\n\nconst fixedtables = (state) => {\n\n /* build fixed huffman tables if first call (may not be thread safe) */\n if (virgin) {\n lenfix = new Int32Array(512);\n distfix = new Int32Array(32);\n\n /* literal/length table */\n let sym = 0;\n while (sym < 144) { state.lens[sym++] = 8; }\n while (sym < 256) { state.lens[sym++] = 9; }\n while (sym < 280) { state.lens[sym++] = 7; }\n while (sym < 288) { state.lens[sym++] = 8; }\n\n inftrees(LENS, state.lens, 0, 288, lenfix, 0, state.work, { bits: 9 });\n\n /* distance table */\n sym = 0;\n while (sym < 32) { state.lens[sym++] = 5; }\n\n inftrees(DISTS, state.lens, 0, 32, distfix, 0, state.work, { bits: 5 });\n\n /* do this just once */\n virgin = false;\n }\n\n state.lencode = lenfix;\n state.lenbits = 9;\n state.distcode = distfix;\n state.distbits = 5;\n};\n\n\n/*\n Update the window with the last wsize (normally 32K) bytes written before\n returning. If window does not exist yet, create it. This is only called\n when a window is already in use, or when output has been written during this\n inflate call, but the end of the deflate stream has not been reached yet.\n It is also called to create a window for dictionary data when a dictionary\n is loaded.\n\n Providing output buffers larger than 32K to inflate() should provide a speed\n advantage, since only the last 32K of output is copied to the sliding window\n upon return from inflate(), and since all distances after the first 32K of\n output will fall in the output data, making match copies simpler and faster.\n The advantage may be dependent on the size of the processor's data caches.\n */\nconst updatewindow = (strm, src, end, copy) => {\n\n let dist;\n const state = strm.state;\n\n /* if it hasn't been done already, allocate space for the window */\n if (state.window === null) {\n state.wsize = 1 << state.wbits;\n state.wnext = 0;\n state.whave = 0;\n\n state.window = new Uint8Array(state.wsize);\n }\n\n /* copy state->wsize or less output bytes into the circular window */\n if (copy >= state.wsize) {\n state.window.set(src.subarray(end - state.wsize, end), 0);\n state.wnext = 0;\n state.whave = state.wsize;\n }\n else {\n dist = state.wsize - state.wnext;\n if (dist > copy) {\n dist = copy;\n }\n //zmemcpy(state->window + state->wnext, end - copy, dist);\n state.window.set(src.subarray(end - copy, end - copy + dist), state.wnext);\n copy -= dist;\n if (copy) {\n //zmemcpy(state->window, end - copy, copy);\n state.window.set(src.subarray(end - copy, end), 0);\n state.wnext = copy;\n state.whave = state.wsize;\n }\n else {\n state.wnext += dist;\n if (state.wnext === state.wsize) { state.wnext = 0; }\n if (state.whave < state.wsize) { state.whave += dist; }\n }\n }\n return 0;\n};\n\n\nconst inflate$2 = (strm, flush) => {\n\n let state;\n let input, output; // input/output buffers\n let next; /* next input INDEX */\n let put; /* next output INDEX */\n let have, left; /* available input and output */\n let hold; /* bit buffer */\n let bits; /* bits in bit buffer */\n let _in, _out; /* save starting available input and output */\n let copy; /* number of stored or match bytes to copy */\n let from; /* where to copy match bytes from */\n let from_source;\n let here = 0; /* current decoding table entry */\n let here_bits, here_op, here_val; // paked \"here\" denormalized (JS specific)\n //let last; /* parent table entry */\n let last_bits, last_op, last_val; // paked \"last\" denormalized (JS specific)\n let len; /* length to copy for repeats, bits to drop */\n let ret; /* return code */\n const hbuf = new Uint8Array(4); /* buffer for gzip header crc calculation */\n let opts;\n\n let n; // temporary variable for NEED_BITS\n\n const order = /* permutation of code lengths */\n new Uint8Array([ 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 ]);\n\n\n if (inflateStateCheck(strm) || !strm.output ||\n (!strm.input && strm.avail_in !== 0)) {\n return Z_STREAM_ERROR$1;\n }\n\n state = strm.state;\n if (state.mode === TYPE) { state.mode = TYPEDO; } /* skip check */\n\n\n //--- LOAD() ---\n put = strm.next_out;\n output = strm.output;\n left = strm.avail_out;\n next = strm.next_in;\n input = strm.input;\n have = strm.avail_in;\n hold = state.hold;\n bits = state.bits;\n //---\n\n _in = have;\n _out = left;\n ret = Z_OK$1;\n\n inf_leave: // goto emulation\n for (;;) {\n switch (state.mode) {\n case HEAD:\n if (state.wrap === 0) {\n state.mode = TYPEDO;\n break;\n }\n //=== NEEDBITS(16);\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((state.wrap & 2) && hold === 0x8b1f) { /* gzip header */\n if (state.wbits === 0) {\n state.wbits = 15;\n }\n state.check = 0/*crc32(0L, Z_NULL, 0)*/;\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32_1(state.check, hbuf, 2, 0);\n //===//\n\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = FLAGS;\n break;\n }\n if (state.head) {\n state.head.done = false;\n }\n if (!(state.wrap & 1) || /* check if zlib header allowed */\n (((hold & 0xff)/*BITS(8)*/ << 8) + (hold >> 8)) % 31) {\n strm.msg = 'incorrect header check';\n state.mode = BAD;\n break;\n }\n if ((hold & 0x0f)/*BITS(4)*/ !== Z_DEFLATED) {\n strm.msg = 'unknown compression method';\n state.mode = BAD;\n break;\n }\n //--- DROPBITS(4) ---//\n hold >>>= 4;\n bits -= 4;\n //---//\n len = (hold & 0x0f)/*BITS(4)*/ + 8;\n if (state.wbits === 0) {\n state.wbits = len;\n }\n if (len > 15 || len > state.wbits) {\n strm.msg = 'invalid window size';\n state.mode = BAD;\n break;\n }\n\n // !!! pako patch. Force use `options.windowBits` if passed.\n // Required to always use max window size by default.\n state.dmax = 1 << state.wbits;\n //state.dmax = 1 << len;\n\n state.flags = 0; /* indicate zlib header */\n //Tracev((stderr, \"inflate: zlib header ok\\n\"));\n strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\n state.mode = hold & 0x200 ? DICTID : TYPE;\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n break;\n case FLAGS:\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.flags = hold;\n if ((state.flags & 0xff) !== Z_DEFLATED) {\n strm.msg = 'unknown compression method';\n state.mode = BAD;\n break;\n }\n if (state.flags & 0xe000) {\n strm.msg = 'unknown header flags set';\n state.mode = BAD;\n break;\n }\n if (state.head) {\n state.head.text = ((hold >> 8) & 1);\n }\n if ((state.flags & 0x0200) && (state.wrap & 4)) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32_1(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = TIME;\n /* falls through */\n case TIME:\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (state.head) {\n state.head.time = hold;\n }\n if ((state.flags & 0x0200) && (state.wrap & 4)) {\n //=== CRC4(state.check, hold)\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n hbuf[2] = (hold >>> 16) & 0xff;\n hbuf[3] = (hold >>> 24) & 0xff;\n state.check = crc32_1(state.check, hbuf, 4, 0);\n //===\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = OS;\n /* falls through */\n case OS:\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if (state.head) {\n state.head.xflags = (hold & 0xff);\n state.head.os = (hold >> 8);\n }\n if ((state.flags & 0x0200) && (state.wrap & 4)) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32_1(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = EXLEN;\n /* falls through */\n case EXLEN:\n if (state.flags & 0x0400) {\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.length = hold;\n if (state.head) {\n state.head.extra_len = hold;\n }\n if ((state.flags & 0x0200) && (state.wrap & 4)) {\n //=== CRC2(state.check, hold);\n hbuf[0] = hold & 0xff;\n hbuf[1] = (hold >>> 8) & 0xff;\n state.check = crc32_1(state.check, hbuf, 2, 0);\n //===//\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n }\n else if (state.head) {\n state.head.extra = null/*Z_NULL*/;\n }\n state.mode = EXTRA;\n /* falls through */\n case EXTRA:\n if (state.flags & 0x0400) {\n copy = state.length;\n if (copy > have) { copy = have; }\n if (copy) {\n if (state.head) {\n len = state.head.extra_len - state.length;\n if (!state.head.extra) {\n // Use untyped array for more convenient processing later\n state.head.extra = new Uint8Array(state.head.extra_len);\n }\n state.head.extra.set(\n input.subarray(\n next,\n // extra field is limited to 65536 bytes\n // - no need for additional size check\n next + copy\n ),\n /*len + copy > state.head.extra_max - len ? state.head.extra_max : copy,*/\n len\n );\n //zmemcpy(state.head.extra + len, next,\n // len + copy > state.head.extra_max ?\n // state.head.extra_max - len : copy);\n }\n if ((state.flags & 0x0200) && (state.wrap & 4)) {\n state.check = crc32_1(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n state.length -= copy;\n }\n if (state.length) { break inf_leave; }\n }\n state.length = 0;\n state.mode = NAME;\n /* falls through */\n case NAME:\n if (state.flags & 0x0800) {\n if (have === 0) { break inf_leave; }\n copy = 0;\n do {\n // TODO: 2 or 1 bytes?\n len = input[next + copy++];\n /* use constant limit because in js we should not preallocate memory */\n if (state.head && len &&\n (state.length < 65536 /*state.head.name_max*/)) {\n state.head.name += String.fromCharCode(len);\n }\n } while (len && copy < have);\n\n if ((state.flags & 0x0200) && (state.wrap & 4)) {\n state.check = crc32_1(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n if (len) { break inf_leave; }\n }\n else if (state.head) {\n state.head.name = null;\n }\n state.length = 0;\n state.mode = COMMENT;\n /* falls through */\n case COMMENT:\n if (state.flags & 0x1000) {\n if (have === 0) { break inf_leave; }\n copy = 0;\n do {\n len = input[next + copy++];\n /* use constant limit because in js we should not preallocate memory */\n if (state.head && len &&\n (state.length < 65536 /*state.head.comm_max*/)) {\n state.head.comment += String.fromCharCode(len);\n }\n } while (len && copy < have);\n if ((state.flags & 0x0200) && (state.wrap & 4)) {\n state.check = crc32_1(state.check, input, copy, next);\n }\n have -= copy;\n next += copy;\n if (len) { break inf_leave; }\n }\n else if (state.head) {\n state.head.comment = null;\n }\n state.mode = HCRC;\n /* falls through */\n case HCRC:\n if (state.flags & 0x0200) {\n //=== NEEDBITS(16); */\n while (bits < 16) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((state.wrap & 4) && hold !== (state.check & 0xffff)) {\n strm.msg = 'header crc mismatch';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n }\n if (state.head) {\n state.head.hcrc = ((state.flags >> 9) & 1);\n state.head.done = true;\n }\n strm.adler = state.check = 0;\n state.mode = TYPE;\n break;\n case DICTID:\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n strm.adler = state.check = zswap32(hold);\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = DICT;\n /* falls through */\n case DICT:\n if (state.havedict === 0) {\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n return Z_NEED_DICT$1;\n }\n strm.adler = state.check = 1/*adler32(0L, Z_NULL, 0)*/;\n state.mode = TYPE;\n /* falls through */\n case TYPE:\n if (flush === Z_BLOCK || flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case TYPEDO:\n if (state.last) {\n //--- BYTEBITS() ---//\n hold >>>= bits & 7;\n bits -= bits & 7;\n //---//\n state.mode = CHECK;\n break;\n }\n //=== NEEDBITS(3); */\n while (bits < 3) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.last = (hold & 0x01)/*BITS(1)*/;\n //--- DROPBITS(1) ---//\n hold >>>= 1;\n bits -= 1;\n //---//\n\n switch ((hold & 0x03)/*BITS(2)*/) {\n case 0: /* stored block */\n //Tracev((stderr, \"inflate: stored block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = STORED;\n break;\n case 1: /* fixed block */\n fixedtables(state);\n //Tracev((stderr, \"inflate: fixed codes block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = LEN_; /* decode codes */\n if (flush === Z_TREES) {\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n break inf_leave;\n }\n break;\n case 2: /* dynamic block */\n //Tracev((stderr, \"inflate: dynamic codes block%s\\n\",\n // state.last ? \" (last)\" : \"\"));\n state.mode = TABLE;\n break;\n case 3:\n strm.msg = 'invalid block type';\n state.mode = BAD;\n }\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n break;\n case STORED:\n //--- BYTEBITS() ---// /* go to byte boundary */\n hold >>>= bits & 7;\n bits -= bits & 7;\n //---//\n //=== NEEDBITS(32); */\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((hold & 0xffff) !== ((hold >>> 16) ^ 0xffff)) {\n strm.msg = 'invalid stored block lengths';\n state.mode = BAD;\n break;\n }\n state.length = hold & 0xffff;\n //Tracev((stderr, \"inflate: stored length %u\\n\",\n // state.length));\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n state.mode = COPY_;\n if (flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case COPY_:\n state.mode = COPY;\n /* falls through */\n case COPY:\n copy = state.length;\n if (copy) {\n if (copy > have) { copy = have; }\n if (copy > left) { copy = left; }\n if (copy === 0) { break inf_leave; }\n //--- zmemcpy(put, next, copy); ---\n output.set(input.subarray(next, next + copy), put);\n //---//\n have -= copy;\n next += copy;\n left -= copy;\n put += copy;\n state.length -= copy;\n break;\n }\n //Tracev((stderr, \"inflate: stored end\\n\"));\n state.mode = TYPE;\n break;\n case TABLE:\n //=== NEEDBITS(14); */\n while (bits < 14) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.nlen = (hold & 0x1f)/*BITS(5)*/ + 257;\n //--- DROPBITS(5) ---//\n hold >>>= 5;\n bits -= 5;\n //---//\n state.ndist = (hold & 0x1f)/*BITS(5)*/ + 1;\n //--- DROPBITS(5) ---//\n hold >>>= 5;\n bits -= 5;\n //---//\n state.ncode = (hold & 0x0f)/*BITS(4)*/ + 4;\n //--- DROPBITS(4) ---//\n hold >>>= 4;\n bits -= 4;\n //---//\n//#ifndef PKZIP_BUG_WORKAROUND\n if (state.nlen > 286 || state.ndist > 30) {\n strm.msg = 'too many length or distance symbols';\n state.mode = BAD;\n break;\n }\n//#endif\n //Tracev((stderr, \"inflate: table sizes ok\\n\"));\n state.have = 0;\n state.mode = LENLENS;\n /* falls through */\n case LENLENS:\n while (state.have < state.ncode) {\n //=== NEEDBITS(3);\n while (bits < 3) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.lens[order[state.have++]] = (hold & 0x07);//BITS(3);\n //--- DROPBITS(3) ---//\n hold >>>= 3;\n bits -= 3;\n //---//\n }\n while (state.have < 19) {\n state.lens[order[state.have++]] = 0;\n }\n // We have separate tables & no pointers. 2 commented lines below not needed.\n //state.next = state.codes;\n //state.lencode = state.next;\n // Switch to use dynamic table\n state.lencode = state.lendyn;\n state.lenbits = 7;\n\n opts = { bits: state.lenbits };\n ret = inftrees(CODES, state.lens, 0, 19, state.lencode, 0, state.work, opts);\n state.lenbits = opts.bits;\n\n if (ret) {\n strm.msg = 'invalid code lengths set';\n state.mode = BAD;\n break;\n }\n //Tracev((stderr, \"inflate: code lengths ok\\n\"));\n state.have = 0;\n state.mode = CODELENS;\n /* falls through */\n case CODELENS:\n while (state.have < state.nlen + state.ndist) {\n for (;;) {\n here = state.lencode[hold & ((1 << state.lenbits) - 1)];/*BITS(state.lenbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if (here_val < 16) {\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.lens[state.have++] = here_val;\n }\n else {\n if (here_val === 16) {\n //=== NEEDBITS(here.bits + 2);\n n = here_bits + 2;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n if (state.have === 0) {\n strm.msg = 'invalid bit length repeat';\n state.mode = BAD;\n break;\n }\n len = state.lens[state.have - 1];\n copy = 3 + (hold & 0x03);//BITS(2);\n //--- DROPBITS(2) ---//\n hold >>>= 2;\n bits -= 2;\n //---//\n }\n else if (here_val === 17) {\n //=== NEEDBITS(here.bits + 3);\n n = here_bits + 3;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n len = 0;\n copy = 3 + (hold & 0x07);//BITS(3);\n //--- DROPBITS(3) ---//\n hold >>>= 3;\n bits -= 3;\n //---//\n }\n else {\n //=== NEEDBITS(here.bits + 7);\n n = here_bits + 7;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n len = 0;\n copy = 11 + (hold & 0x7f);//BITS(7);\n //--- DROPBITS(7) ---//\n hold >>>= 7;\n bits -= 7;\n //---//\n }\n if (state.have + copy > state.nlen + state.ndist) {\n strm.msg = 'invalid bit length repeat';\n state.mode = BAD;\n break;\n }\n while (copy--) {\n state.lens[state.have++] = len;\n }\n }\n }\n\n /* handle error breaks in while */\n if (state.mode === BAD) { break; }\n\n /* check for end-of-block code (better have one) */\n if (state.lens[256] === 0) {\n strm.msg = 'invalid code -- missing end-of-block';\n state.mode = BAD;\n break;\n }\n\n /* build code tables -- note: do not change the lenbits or distbits\n values here (9 and 6) without reading the comments in inftrees.h\n concerning the ENOUGH constants, which depend on those values */\n state.lenbits = 9;\n\n opts = { bits: state.lenbits };\n ret = inftrees(LENS, state.lens, 0, state.nlen, state.lencode, 0, state.work, opts);\n // We have separate tables & no pointers. 2 commented lines below not needed.\n // state.next_index = opts.table_index;\n state.lenbits = opts.bits;\n // state.lencode = state.next;\n\n if (ret) {\n strm.msg = 'invalid literal/lengths set';\n state.mode = BAD;\n break;\n }\n\n state.distbits = 6;\n //state.distcode.copy(state.codes);\n // Switch to use dynamic table\n state.distcode = state.distdyn;\n opts = { bits: state.distbits };\n ret = inftrees(DISTS, state.lens, state.nlen, state.ndist, state.distcode, 0, state.work, opts);\n // We have separate tables & no pointers. 2 commented lines below not needed.\n // state.next_index = opts.table_index;\n state.distbits = opts.bits;\n // state.distcode = state.next;\n\n if (ret) {\n strm.msg = 'invalid distances set';\n state.mode = BAD;\n break;\n }\n //Tracev((stderr, 'inflate: codes ok\\n'));\n state.mode = LEN_;\n if (flush === Z_TREES) { break inf_leave; }\n /* falls through */\n case LEN_:\n state.mode = LEN;\n /* falls through */\n case LEN:\n if (have >= 6 && left >= 258) {\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n inffast(strm, _out);\n //--- LOAD() ---\n put = strm.next_out;\n output = strm.output;\n left = strm.avail_out;\n next = strm.next_in;\n input = strm.input;\n have = strm.avail_in;\n hold = state.hold;\n bits = state.bits;\n //---\n\n if (state.mode === TYPE) {\n state.back = -1;\n }\n break;\n }\n state.back = 0;\n for (;;) {\n here = state.lencode[hold & ((1 << state.lenbits) - 1)]; /*BITS(state.lenbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if (here_bits <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if (here_op && (here_op & 0xf0) === 0) {\n last_bits = here_bits;\n last_op = here_op;\n last_val = here_val;\n for (;;) {\n here = state.lencode[last_val +\n ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((last_bits + here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n //--- DROPBITS(last.bits) ---//\n hold >>>= last_bits;\n bits -= last_bits;\n //---//\n state.back += last_bits;\n }\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.back += here_bits;\n state.length = here_val;\n if (here_op === 0) {\n //Tracevv((stderr, here.val >= 0x20 && here.val < 0x7f ?\n // \"inflate: literal '%c'\\n\" :\n // \"inflate: literal 0x%02x\\n\", here.val));\n state.mode = LIT;\n break;\n }\n if (here_op & 32) {\n //Tracevv((stderr, \"inflate: end of block\\n\"));\n state.back = -1;\n state.mode = TYPE;\n break;\n }\n if (here_op & 64) {\n strm.msg = 'invalid literal/length code';\n state.mode = BAD;\n break;\n }\n state.extra = here_op & 15;\n state.mode = LENEXT;\n /* falls through */\n case LENEXT:\n if (state.extra) {\n //=== NEEDBITS(state.extra);\n n = state.extra;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.length += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;\n //--- DROPBITS(state.extra) ---//\n hold >>>= state.extra;\n bits -= state.extra;\n //---//\n state.back += state.extra;\n }\n //Tracevv((stderr, \"inflate: length %u\\n\", state.length));\n state.was = state.length;\n state.mode = DIST;\n /* falls through */\n case DIST:\n for (;;) {\n here = state.distcode[hold & ((1 << state.distbits) - 1)];/*BITS(state.distbits)*/\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n if ((here_op & 0xf0) === 0) {\n last_bits = here_bits;\n last_op = here_op;\n last_val = here_val;\n for (;;) {\n here = state.distcode[last_val +\n ((hold & ((1 << (last_bits + last_op)) - 1))/*BITS(last.bits + last.op)*/ >> last_bits)];\n here_bits = here >>> 24;\n here_op = (here >>> 16) & 0xff;\n here_val = here & 0xffff;\n\n if ((last_bits + here_bits) <= bits) { break; }\n //--- PULLBYTE() ---//\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n //---//\n }\n //--- DROPBITS(last.bits) ---//\n hold >>>= last_bits;\n bits -= last_bits;\n //---//\n state.back += last_bits;\n }\n //--- DROPBITS(here.bits) ---//\n hold >>>= here_bits;\n bits -= here_bits;\n //---//\n state.back += here_bits;\n if (here_op & 64) {\n strm.msg = 'invalid distance code';\n state.mode = BAD;\n break;\n }\n state.offset = here_val;\n state.extra = (here_op) & 15;\n state.mode = DISTEXT;\n /* falls through */\n case DISTEXT:\n if (state.extra) {\n //=== NEEDBITS(state.extra);\n n = state.extra;\n while (bits < n) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n state.offset += hold & ((1 << state.extra) - 1)/*BITS(state.extra)*/;\n //--- DROPBITS(state.extra) ---//\n hold >>>= state.extra;\n bits -= state.extra;\n //---//\n state.back += state.extra;\n }\n//#ifdef INFLATE_STRICT\n if (state.offset > state.dmax) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break;\n }\n//#endif\n //Tracevv((stderr, \"inflate: distance %u\\n\", state.offset));\n state.mode = MATCH;\n /* falls through */\n case MATCH:\n if (left === 0) { break inf_leave; }\n copy = _out - left;\n if (state.offset > copy) { /* copy from window */\n copy = state.offset - copy;\n if (copy > state.whave) {\n if (state.sane) {\n strm.msg = 'invalid distance too far back';\n state.mode = BAD;\n break;\n }\n// (!) This block is disabled in zlib defaults,\n// don't enable it for binary compatibility\n//#ifdef INFLATE_ALLOW_INVALID_DISTANCE_TOOFAR_ARRR\n// Trace((stderr, \"inflate.c too far\\n\"));\n// copy -= state.whave;\n// if (copy > state.length) { copy = state.length; }\n// if (copy > left) { copy = left; }\n// left -= copy;\n// state.length -= copy;\n// do {\n// output[put++] = 0;\n// } while (--copy);\n// if (state.length === 0) { state.mode = LEN; }\n// break;\n//#endif\n }\n if (copy > state.wnext) {\n copy -= state.wnext;\n from = state.wsize - copy;\n }\n else {\n from = state.wnext - copy;\n }\n if (copy > state.length) { copy = state.length; }\n from_source = state.window;\n }\n else { /* copy from output */\n from_source = output;\n from = put - state.offset;\n copy = state.length;\n }\n if (copy > left) { copy = left; }\n left -= copy;\n state.length -= copy;\n do {\n output[put++] = from_source[from++];\n } while (--copy);\n if (state.length === 0) { state.mode = LEN; }\n break;\n case LIT:\n if (left === 0) { break inf_leave; }\n output[put++] = state.length;\n left--;\n state.mode = LEN;\n break;\n case CHECK:\n if (state.wrap) {\n //=== NEEDBITS(32);\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n // Use '|' instead of '+' to make sure that result is signed\n hold |= input[next++] << bits;\n bits += 8;\n }\n //===//\n _out -= left;\n strm.total_out += _out;\n state.total += _out;\n if ((state.wrap & 4) && _out) {\n strm.adler = state.check =\n /*UPDATE_CHECK(state.check, put - _out, _out);*/\n (state.flags ? crc32_1(state.check, output, _out, put - _out) : adler32_1(state.check, output, _out, put - _out));\n\n }\n _out = left;\n // NB: crc32 stored as signed 32-bit int, zswap32 returns signed too\n if ((state.wrap & 4) && (state.flags ? hold : zswap32(hold)) !== state.check) {\n strm.msg = 'incorrect data check';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n //Tracev((stderr, \"inflate: check matches trailer\\n\"));\n }\n state.mode = LENGTH;\n /* falls through */\n case LENGTH:\n if (state.wrap && state.flags) {\n //=== NEEDBITS(32);\n while (bits < 32) {\n if (have === 0) { break inf_leave; }\n have--;\n hold += input[next++] << bits;\n bits += 8;\n }\n //===//\n if ((state.wrap & 4) && hold !== (state.total & 0xffffffff)) {\n strm.msg = 'incorrect length check';\n state.mode = BAD;\n break;\n }\n //=== INITBITS();\n hold = 0;\n bits = 0;\n //===//\n //Tracev((stderr, \"inflate: length matches trailer\\n\"));\n }\n state.mode = DONE;\n /* falls through */\n case DONE:\n ret = Z_STREAM_END$1;\n break inf_leave;\n case BAD:\n ret = Z_DATA_ERROR$1;\n break inf_leave;\n case MEM:\n return Z_MEM_ERROR$1;\n case SYNC:\n /* falls through */\n default:\n return Z_STREAM_ERROR$1;\n }\n }\n\n // inf_leave <- here is real place for \"goto inf_leave\", emulated via \"break inf_leave\"\n\n /*\n Return from inflate(), updating the total counts and the check value.\n If there was no progress during the inflate() call, return a buffer\n error. Call updatewindow() to create and/or update the window state.\n Note: a memory error from inflate() is non-recoverable.\n */\n\n //--- RESTORE() ---\n strm.next_out = put;\n strm.avail_out = left;\n strm.next_in = next;\n strm.avail_in = have;\n state.hold = hold;\n state.bits = bits;\n //---\n\n if (state.wsize || (_out !== strm.avail_out && state.mode < BAD &&\n (state.mode < CHECK || flush !== Z_FINISH$1))) {\n if (updatewindow(strm, strm.output, strm.next_out, _out - strm.avail_out)) ;\n }\n _in -= strm.avail_in;\n _out -= strm.avail_out;\n strm.total_in += _in;\n strm.total_out += _out;\n state.total += _out;\n if ((state.wrap & 4) && _out) {\n strm.adler = state.check = /*UPDATE_CHECK(state.check, strm.next_out - _out, _out);*/\n (state.flags ? crc32_1(state.check, output, _out, strm.next_out - _out) : adler32_1(state.check, output, _out, strm.next_out - _out));\n }\n strm.data_type = state.bits + (state.last ? 64 : 0) +\n (state.mode === TYPE ? 128 : 0) +\n (state.mode === LEN_ || state.mode === COPY_ ? 256 : 0);\n if (((_in === 0 && _out === 0) || flush === Z_FINISH$1) && ret === Z_OK$1) {\n ret = Z_BUF_ERROR;\n }\n return ret;\n};\n\n\nconst inflateEnd = (strm) => {\n\n if (inflateStateCheck(strm)) {\n return Z_STREAM_ERROR$1;\n }\n\n let state = strm.state;\n if (state.window) {\n state.window = null;\n }\n strm.state = null;\n return Z_OK$1;\n};\n\n\nconst inflateGetHeader = (strm, head) => {\n\n /* check state */\n if (inflateStateCheck(strm)) { return Z_STREAM_ERROR$1; }\n const state = strm.state;\n if ((state.wrap & 2) === 0) { return Z_STREAM_ERROR$1; }\n\n /* save header structure */\n state.head = head;\n head.done = false;\n return Z_OK$1;\n};\n\n\nconst inflateSetDictionary = (strm, dictionary) => {\n const dictLength = dictionary.length;\n\n let state;\n let dictid;\n let ret;\n\n /* check state */\n if (inflateStateCheck(strm)) { return Z_STREAM_ERROR$1; }\n state = strm.state;\n\n if (state.wrap !== 0 && state.mode !== DICT) {\n return Z_STREAM_ERROR$1;\n }\n\n /* check for correct dictionary identifier */\n if (state.mode === DICT) {\n dictid = 1; /* adler32(0, null, 0)*/\n /* dictid = adler32(dictid, dictionary, dictLength); */\n dictid = adler32_1(dictid, dictionary, dictLength, 0);\n if (dictid !== state.check) {\n return Z_DATA_ERROR$1;\n }\n }\n /* copy dictionary to window using updatewindow(), which will amend the\n existing dictionary if appropriate */\n ret = updatewindow(strm, dictionary, dictLength, dictLength);\n if (ret) {\n state.mode = MEM;\n return Z_MEM_ERROR$1;\n }\n state.havedict = 1;\n // Tracev((stderr, \"inflate: dictionary set\\n\"));\n return Z_OK$1;\n};\n\n\nvar inflateReset_1 = inflateReset;\nvar inflateReset2_1 = inflateReset2;\nvar inflateResetKeep_1 = inflateResetKeep;\nvar inflateInit_1 = inflateInit;\nvar inflateInit2_1 = inflateInit2;\nvar inflate_2$1 = inflate$2;\nvar inflateEnd_1 = inflateEnd;\nvar inflateGetHeader_1 = inflateGetHeader;\nvar inflateSetDictionary_1 = inflateSetDictionary;\nvar inflateInfo = 'pako inflate (from Nodeca project)';\n\n/* Not implemented\nmodule.exports.inflateCodesUsed = inflateCodesUsed;\nmodule.exports.inflateCopy = inflateCopy;\nmodule.exports.inflateGetDictionary = inflateGetDictionary;\nmodule.exports.inflateMark = inflateMark;\nmodule.exports.inflatePrime = inflatePrime;\nmodule.exports.inflateSync = inflateSync;\nmodule.exports.inflateSyncPoint = inflateSyncPoint;\nmodule.exports.inflateUndermine = inflateUndermine;\nmodule.exports.inflateValidate = inflateValidate;\n*/\n\nvar inflate_1$2 = {\n\tinflateReset: inflateReset_1,\n\tinflateReset2: inflateReset2_1,\n\tinflateResetKeep: inflateResetKeep_1,\n\tinflateInit: inflateInit_1,\n\tinflateInit2: inflateInit2_1,\n\tinflate: inflate_2$1,\n\tinflateEnd: inflateEnd_1,\n\tinflateGetHeader: inflateGetHeader_1,\n\tinflateSetDictionary: inflateSetDictionary_1,\n\tinflateInfo: inflateInfo\n};\n\n// (C) 1995-2013 Jean-loup Gailly and Mark Adler\n// (C) 2014-2017 Vitaly Puzrin and Andrey Tupitsin\n//\n// This software is provided 'as-is', without any express or implied\n// warranty. In no event will the authors be held liable for any damages\n// arising from the use of this software.\n//\n// Permission is granted to anyone to use this software for any purpose,\n// including commercial applications, and to alter it and redistribute it\n// freely, subject to the following restrictions:\n//\n// 1. The origin of this software must not be misrepresented; you must not\n// claim that you wrote the original software. If you use this software\n// in a product, an acknowledgment in the product documentation would be\n// appreciated but is not required.\n// 2. Altered source versions must be plainly marked as such, and must not be\n// misrepresented as being the original software.\n// 3. This notice may not be removed or altered from any source distribution.\n\nfunction GZheader() {\n /* true if compressed data believed to be text */\n this.text = 0;\n /* modification time */\n this.time = 0;\n /* extra flags (not used when writing a gzip file) */\n this.xflags = 0;\n /* operating system */\n this.os = 0;\n /* pointer to extra field or Z_NULL if none */\n this.extra = null;\n /* extra field length (valid if extra != Z_NULL) */\n this.extra_len = 0; // Actually, we don't need it in JS,\n // but leave for few code modifications\n\n //\n // Setup limits is not necessary because in js we should not preallocate memory\n // for inflate use constant limit in 65536 bytes\n //\n\n /* space at extra (only when reading header) */\n // this.extra_max = 0;\n /* pointer to zero-terminated file name or Z_NULL */\n this.name = '';\n /* space at name (only when reading header) */\n // this.name_max = 0;\n /* pointer to zero-terminated comment or Z_NULL */\n this.comment = '';\n /* space at comment (only when reading header) */\n // this.comm_max = 0;\n /* true if there was or will be a header crc */\n this.hcrc = 0;\n /* true when done reading gzip header (not used when writing a gzip file) */\n this.done = false;\n}\n\nvar gzheader = GZheader;\n\nconst toString = Object.prototype.toString;\n\n/* Public constants ==========================================================*/\n/* ===========================================================================*/\n\nconst {\n Z_NO_FLUSH, Z_FINISH,\n Z_OK, Z_STREAM_END, Z_NEED_DICT, Z_STREAM_ERROR, Z_DATA_ERROR, Z_MEM_ERROR\n} = constants$2;\n\n/* ===========================================================================*/\n\n\n/**\n * class Inflate\n *\n * Generic JS-style wrapper for zlib calls. If you don't need\n * streaming behaviour - use more simple functions: [[inflate]]\n * and [[inflateRaw]].\n **/\n\n/* internal\n * inflate.chunks -> Array\n *\n * Chunks of output data, if [[Inflate#onData]] not overridden.\n **/\n\n/**\n * Inflate.result -> Uint8Array|String\n *\n * Uncompressed result, generated by default [[Inflate#onData]]\n * and [[Inflate#onEnd]] handlers. Filled after you push last chunk\n * (call [[Inflate#push]] with `Z_FINISH` / `true` param).\n **/\n\n/**\n * Inflate.err -> Number\n *\n * Error code after inflate finished. 0 (Z_OK) on success.\n * Should be checked if broken data possible.\n **/\n\n/**\n * Inflate.msg -> String\n *\n * Error message, if [[Inflate.err]] != 0\n **/\n\n\n/**\n * new Inflate(options)\n * - options (Object): zlib inflate options.\n *\n * Creates new inflator instance with specified params. Throws exception\n * on bad params. Supported options:\n *\n * - `windowBits`\n * - `dictionary`\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information on these.\n *\n * Additional options, for internal needs:\n *\n * - `chunkSize` - size of generated data chunks (16K by default)\n * - `raw` (Boolean) - do raw inflate\n * - `to` (String) - if equal to 'string', then result will be converted\n * from utf8 to utf16 (javascript) string. When string output requested,\n * chunk length can differ from `chunkSize`, depending on content.\n *\n * By default, when no options set, autodetect deflate/gzip data format via\n * wrapper header.\n *\n * ##### Example:\n *\n * ```javascript\n * const pako = require('pako')\n * const chunk1 = new Uint8Array([1,2,3,4,5,6,7,8,9])\n * const chunk2 = new Uint8Array([10,11,12,13,14,15,16,17,18,19]);\n *\n * const inflate = new pako.Inflate({ level: 3});\n *\n * inflate.push(chunk1, false);\n * inflate.push(chunk2, true); // true -> last chunk\n *\n * if (inflate.err) { throw new Error(inflate.err); }\n *\n * console.log(inflate.result);\n * ```\n **/\nfunction Inflate$1(options) {\n this.options = common.assign({\n chunkSize: 1024 * 64,\n windowBits: 15,\n to: ''\n }, options || {});\n\n const opt = this.options;\n\n // Force window size for `raw` data, if not set directly,\n // because we have no header for autodetect.\n if (opt.raw && (opt.windowBits >= 0) && (opt.windowBits < 16)) {\n opt.windowBits = -opt.windowBits;\n if (opt.windowBits === 0) { opt.windowBits = -15; }\n }\n\n // If `windowBits` not defined (and mode not raw) - set autodetect flag for gzip/deflate\n if ((opt.windowBits >= 0) && (opt.windowBits < 16) &&\n !(options && options.windowBits)) {\n opt.windowBits += 32;\n }\n\n // Gzip header has no info about windows size, we can do autodetect only\n // for deflate. So, if window size not set, force it to max when gzip possible\n if ((opt.windowBits > 15) && (opt.windowBits < 48)) {\n // bit 3 (16) -> gzipped data\n // bit 4 (32) -> autodetect gzip/deflate\n if ((opt.windowBits & 15) === 0) {\n opt.windowBits |= 15;\n }\n }\n\n this.err = 0; // error code, if happens (0 = Z_OK)\n this.msg = ''; // error message\n this.ended = false; // used to avoid multiple onEnd() calls\n this.chunks = []; // chunks of compressed data\n\n this.strm = new zstream();\n this.strm.avail_out = 0;\n\n let status = inflate_1$2.inflateInit2(\n this.strm,\n opt.windowBits\n );\n\n if (status !== Z_OK) {\n throw new Error(messages[status]);\n }\n\n this.header = new gzheader();\n\n inflate_1$2.inflateGetHeader(this.strm, this.header);\n\n // Setup dictionary\n if (opt.dictionary) {\n // Convert data if needed\n if (typeof opt.dictionary === 'string') {\n opt.dictionary = strings.string2buf(opt.dictionary);\n } else if (toString.call(opt.dictionary) === '[object ArrayBuffer]') {\n opt.dictionary = new Uint8Array(opt.dictionary);\n }\n if (opt.raw) { //In raw mode we need to set the dictionary early\n status = inflate_1$2.inflateSetDictionary(this.strm, opt.dictionary);\n if (status !== Z_OK) {\n throw new Error(messages[status]);\n }\n }\n }\n}\n\n/**\n * Inflate#push(data[, flush_mode]) -> Boolean\n * - data (Uint8Array|ArrayBuffer): input data\n * - flush_mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE\n * flush modes. See constants. Skipped or `false` means Z_NO_FLUSH,\n * `true` means Z_FINISH.\n *\n * Sends input data to inflate pipe, generating [[Inflate#onData]] calls with\n * new output chunks. Returns `true` on success. If end of stream detected,\n * [[Inflate#onEnd]] will be called.\n *\n * `flush_mode` is not needed for normal operation, because end of stream\n * detected automatically. You may try to use it for advanced things, but\n * this functionality was not tested.\n *\n * On fail call [[Inflate#onEnd]] with error code and return false.\n *\n * ##### Example\n *\n * ```javascript\n * push(chunk, false); // push one of data chunks\n * ...\n * push(chunk, true); // push last chunk\n * ```\n **/\nInflate$1.prototype.push = function (data, flush_mode) {\n const strm = this.strm;\n const chunkSize = this.options.chunkSize;\n const dictionary = this.options.dictionary;\n let status, _flush_mode, last_avail_out;\n\n if (this.ended) return false;\n\n if (flush_mode === ~~flush_mode) _flush_mode = flush_mode;\n else _flush_mode = flush_mode === true ? Z_FINISH : Z_NO_FLUSH;\n\n // Convert data if needed\n if (toString.call(data) === '[object ArrayBuffer]') {\n strm.input = new Uint8Array(data);\n } else {\n strm.input = data;\n }\n\n strm.next_in = 0;\n strm.avail_in = strm.input.length;\n\n for (;;) {\n if (strm.avail_out === 0) {\n strm.output = new Uint8Array(chunkSize);\n strm.next_out = 0;\n strm.avail_out = chunkSize;\n }\n\n status = inflate_1$2.inflate(strm, _flush_mode);\n\n if (status === Z_NEED_DICT && dictionary) {\n status = inflate_1$2.inflateSetDictionary(strm, dictionary);\n\n if (status === Z_OK) {\n status = inflate_1$2.inflate(strm, _flush_mode);\n } else if (status === Z_DATA_ERROR) {\n // Replace code with more verbose\n status = Z_NEED_DICT;\n }\n }\n\n // Skip snyc markers if more data follows and not raw mode\n while (strm.avail_in > 0 &&\n status === Z_STREAM_END &&\n strm.state.wrap > 0 &&\n data[strm.next_in] !== 0)\n {\n inflate_1$2.inflateReset(strm);\n status = inflate_1$2.inflate(strm, _flush_mode);\n }\n\n switch (status) {\n case Z_STREAM_ERROR:\n case Z_DATA_ERROR:\n case Z_NEED_DICT:\n case Z_MEM_ERROR:\n this.onEnd(status);\n this.ended = true;\n return false;\n }\n\n // Remember real `avail_out` value, because we may patch out buffer content\n // to align utf8 strings boundaries.\n last_avail_out = strm.avail_out;\n\n if (strm.next_out) {\n if (strm.avail_out === 0 || status === Z_STREAM_END) {\n\n if (this.options.to === 'string') {\n\n let next_out_utf8 = strings.utf8border(strm.output, strm.next_out);\n\n let tail = strm.next_out - next_out_utf8;\n let utf8str = strings.buf2string(strm.output, next_out_utf8);\n\n // move tail & realign counters\n strm.next_out = tail;\n strm.avail_out = chunkSize - tail;\n if (tail) strm.output.set(strm.output.subarray(next_out_utf8, next_out_utf8 + tail), 0);\n\n this.onData(utf8str);\n\n } else {\n this.onData(strm.output.length === strm.next_out ? strm.output : strm.output.subarray(0, strm.next_out));\n }\n }\n }\n\n // Must repeat iteration if out buffer is full\n if (status === Z_OK && last_avail_out === 0) continue;\n\n // Finalize if end of stream reached.\n if (status === Z_STREAM_END) {\n status = inflate_1$2.inflateEnd(this.strm);\n this.onEnd(status);\n this.ended = true;\n return true;\n }\n\n if (strm.avail_in === 0) break;\n }\n\n return true;\n};\n\n\n/**\n * Inflate#onData(chunk) -> Void\n * - chunk (Uint8Array|String): output data. When string output requested,\n * each chunk will be string.\n *\n * By default, stores data blocks in `chunks[]` property and glue\n * those in `onEnd`. Override this handler, if you need another behaviour.\n **/\nInflate$1.prototype.onData = function (chunk) {\n this.chunks.push(chunk);\n};\n\n\n/**\n * Inflate#onEnd(status) -> Void\n * - status (Number): inflate status. 0 (Z_OK) on success,\n * other if not.\n *\n * Called either after you tell inflate that the input stream is\n * complete (Z_FINISH). By default - join collected chunks,\n * free memory and fill `results` / `err` properties.\n **/\nInflate$1.prototype.onEnd = function (status) {\n // On success - join\n if (status === Z_OK) {\n if (this.options.to === 'string') {\n this.result = this.chunks.join('');\n } else {\n this.result = common.flattenChunks(this.chunks);\n }\n }\n this.chunks = [];\n this.err = status;\n this.msg = this.strm.msg;\n};\n\n\n/**\n * inflate(data[, options]) -> Uint8Array|String\n * - data (Uint8Array|ArrayBuffer): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * Decompress `data` with inflate/ungzip and `options`. Autodetect\n * format via wrapper header by default. That's why we don't provide\n * separate `ungzip` method.\n *\n * Supported options are:\n *\n * - windowBits\n *\n * [http://zlib.net/manual.html#Advanced](http://zlib.net/manual.html#Advanced)\n * for more information.\n *\n * Sugar (options):\n *\n * - `raw` (Boolean) - say that we work with raw stream, if you don't wish to specify\n * negative windowBits implicitly.\n * - `to` (String) - if equal to 'string', then result will be converted\n * from utf8 to utf16 (javascript) string. When string output requested,\n * chunk length can differ from `chunkSize`, depending on content.\n *\n *\n * ##### Example:\n *\n * ```javascript\n * const pako = require('pako');\n * const input = pako.deflate(new Uint8Array([1,2,3,4,5,6,7,8,9]));\n * let output;\n *\n * try {\n * output = pako.inflate(input);\n * } catch (err) {\n * console.log(err);\n * }\n * ```\n **/\nfunction inflate$1(input, options) {\n const inflator = new Inflate$1(options);\n\n inflator.push(input);\n\n // That will never happens, if you don't cheat with options :)\n if (inflator.err) throw inflator.msg || messages[inflator.err];\n\n return inflator.result;\n}\n\n\n/**\n * inflateRaw(data[, options]) -> Uint8Array|String\n * - data (Uint8Array|ArrayBuffer): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * The same as [[inflate]], but creates raw data, without wrapper\n * (header and adler32 crc).\n **/\nfunction inflateRaw$1(input, options) {\n options = options || {};\n options.raw = true;\n return inflate$1(input, options);\n}\n\n\n/**\n * ungzip(data[, options]) -> Uint8Array|String\n * - data (Uint8Array|ArrayBuffer): input data to decompress.\n * - options (Object): zlib inflate options.\n *\n * Just shortcut to [[inflate]], because it autodetects format\n * by header.content. Done for convenience.\n **/\n\n\nvar Inflate_1$1 = Inflate$1;\nvar inflate_2 = inflate$1;\nvar inflateRaw_1$1 = inflateRaw$1;\nvar ungzip$1 = inflate$1;\nvar constants = constants$2;\n\nvar inflate_1$1 = {\n\tInflate: Inflate_1$1,\n\tinflate: inflate_2,\n\tinflateRaw: inflateRaw_1$1,\n\tungzip: ungzip$1,\n\tconstants: constants\n};\n\nconst { Deflate, deflate, deflateRaw, gzip } = deflate_1$1;\n\nconst { Inflate, inflate, inflateRaw, ungzip } = inflate_1$1;\n\n\n\nvar Deflate_1 = Deflate;\nvar deflate_1 = deflate;\nvar deflateRaw_1 = deflateRaw;\nvar gzip_1 = gzip;\nvar Inflate_1 = Inflate;\nvar inflate_1 = inflate;\nvar inflateRaw_1 = inflateRaw;\nvar ungzip_1 = ungzip;\nvar constants_1 = constants$2;\n\nvar pako = {\n\tDeflate: Deflate_1,\n\tdeflate: deflate_1,\n\tdeflateRaw: deflateRaw_1,\n\tgzip: gzip_1,\n\tInflate: Inflate_1,\n\tinflate: inflate_1,\n\tinflateRaw: inflateRaw_1,\n\tungzip: ungzip_1,\n\tconstants: constants_1\n};\n\nexport { Deflate_1 as Deflate, Inflate_1 as Inflate, constants_1 as constants, pako as default, deflate_1 as deflate, deflateRaw_1 as deflateRaw, gzip_1 as gzip, inflate_1 as inflate, inflateRaw_1 as inflateRaw, ungzip_1 as ungzip };\n","import chroma from './src/chroma.js';\n\n// feel free to comment out anything to rollup\n// a smaller chroma.js built\n\n// io --> convert colors\nimport './src/io/cmyk/index.js';\nimport './src/io/css/index.js';\nimport './src/io/gl/index.js';\nimport './src/io/hcg/index.js';\nimport './src/io/hex/index.js';\nimport './src/io/hsi/index.js';\nimport './src/io/hsl/index.js';\nimport './src/io/hsv/index.js';\nimport './src/io/lab/index.js';\nimport './src/io/lch/index.js';\nimport './src/io/named/index.js';\nimport './src/io/num/index.js';\nimport './src/io/rgb/index.js';\nimport './src/io/temp/index.js';\nimport './src/io/oklab/index.js';\nimport './src/io/oklch/index.js';\n\n// operators --> modify existing Colors\nimport './src/ops/alpha.js';\nimport './src/ops/clipped.js';\nimport './src/ops/darken.js';\nimport './src/ops/get.js';\nimport './src/ops/luminance.js';\nimport './src/ops/mix.js';\nimport './src/ops/premultiply.js';\nimport './src/ops/saturate.js';\nimport './src/ops/set.js';\nimport './src/ops/shade.js';\n\n// interpolators\nimport './src/interpolator/rgb.js';\nimport './src/interpolator/lrgb.js';\nimport './src/interpolator/lab.js';\nimport './src/interpolator/lch.js';\nimport './src/interpolator/num.js';\nimport './src/interpolator/hcg.js';\nimport './src/interpolator/hsi.js';\nimport './src/interpolator/hsl.js';\nimport './src/interpolator/hsv.js';\nimport './src/interpolator/oklab.js';\nimport './src/interpolator/oklch.js';\n\n// generators -- > create new colors\nimport average from './src/generator/average.js';\nimport bezier from './src/generator/bezier.js';\nimport blend from './src/generator/blend.js';\nimport cubehelix from './src/generator/cubehelix.js';\nimport mix from './src/generator/mix.js';\nimport random from './src/generator/random.js';\nimport scale from './src/generator/scale.js';\n\n// other utility methods\nimport { analyze } from './src/utils/analyze.js';\nimport contrast from './src/utils/contrast.js';\nimport deltaE from './src/utils/delta-e.js';\nimport distance from './src/utils/distance.js';\nimport { limits } from './src/utils/analyze.js';\nimport valid from './src/utils/valid.js';\nimport input from './src/io/input.js';\n\n// scale\nimport scales from './src/utils/scales.js';\n\n// colors\nimport colors from './src/colors/w3cx11.js';\nimport brewer from './src/colors/colorbrewer.js';\n\nObject.assign(chroma, {\n average,\n bezier,\n blend,\n cubehelix,\n mix,\n interpolate: mix,\n random,\n scale,\n analyze,\n contrast,\n deltaE,\n distance,\n limits,\n valid,\n scales,\n input,\n colors,\n brewer\n});\n\nexport default chroma;\n","import Color from './Color.js';\nimport { version } from './version.js';\n\nconst chroma = (...args) => {\n return new chroma.Color(...args);\n};\n\nchroma.Color = Color;\nchroma.version = version;\n\nexport default chroma;\n","import { last, clip_rgb, type } from './utils/index.js';\nimport _input from './io/input.js';\n\nclass Color {\n constructor(...args) {\n const me = this;\n if (\n type(args[0]) === 'object' &&\n args[0].constructor &&\n args[0].constructor === this.constructor\n ) {\n // the argument is already a Color instance\n return args[0];\n }\n // last argument could be the mode\n let mode = last(args);\n let autodetect = false;\n if (!mode) {\n autodetect = true;\n if (!_input.sorted) {\n _input.autodetect = _input.autodetect.sort((a, b) => b.p - a.p);\n _input.sorted = true;\n }\n // auto-detect format\n for (let chk of _input.autodetect) {\n mode = chk.test(...args);\n if (mode) break;\n }\n }\n if (_input.format[mode]) {\n const rgb = _input.format[mode].apply(\n null,\n autodetect ? args : args.slice(0, -1)\n );\n me._rgb = clip_rgb(rgb);\n } else {\n throw new Error('unknown format: ' + args);\n }\n // add alpha channel\n if (me._rgb.length === 3) me._rgb.push(1);\n }\n toString() {\n if (type(this.hex) == 'function') return this.hex();\n return `[${this._rgb.join(',')}]`;\n }\n}\nexport default Color;\n","const { PI, min, max } = Math;\n\nexport { default as clip_rgb } from './clip_rgb.js';\nexport { default as limit } from './limit.js';\nexport { default as type } from './type.js';\nexport { default as unpack } from './unpack.js';\nexport { default as last } from './last.js';\n\nconst TWOPI = PI * 2;\nconst PITHIRD = PI / 3;\nconst DEG2RAD = PI / 180;\nconst RAD2DEG = 180 / PI;\n\nexport { PI, TWOPI, PITHIRD, DEG2RAD, RAD2DEG, min, max };\n","import limit from './limit.js';\n\nexport default (rgb) => {\n rgb._clipped = false;\n rgb._unclipped = rgb.slice(0);\n for (let i = 0; i <= 3; i++) {\n if (i < 3) {\n if (rgb[i] < 0 || rgb[i] > 255) rgb._clipped = true;\n rgb[i] = limit(rgb[i], 0, 255);\n } else if (i === 3) {\n rgb[i] = limit(rgb[i], 0, 1);\n }\n }\n return rgb;\n};\n","import { min, max } from './index.js';\n\nexport default (x, low = 0, high = 1) => {\n return min(max(low, x), high);\n};\n","// ported from jQuery's $.type\nconst classToType = {};\nfor (let name of [\n 'Boolean',\n 'Number',\n 'String',\n 'Function',\n 'Array',\n 'Date',\n 'RegExp',\n 'Undefined',\n 'Null'\n]) {\n classToType[`[object ${name}]`] = name.toLowerCase();\n}\nexport default function (obj) {\n return classToType[Object.prototype.toString.call(obj)] || 'object';\n}\n","import type from './type.js';\n\nexport default (args, keyOrder = null) => {\n // if called with more than 3 arguments, we return the arguments\n if (args.length >= 3) return Array.prototype.slice.call(args);\n // with less than 3 args we check if first arg is object\n // and use the keyOrder string to extract and sort properties\n if (type(args[0]) == 'object' && keyOrder) {\n return keyOrder\n .split('')\n .filter((k) => args[0][k] !== undefined)\n .map((k) => args[0][k]);\n }\n // otherwise we just return the first argument\n // (which we suppose is an array of args)\n return args[0];\n};\n","import type from './type.js';\n\nexport default (args) => {\n if (args.length < 2) return null;\n const l = args.length - 1;\n if (type(args[l]) == 'string') return args[l].toLowerCase();\n return null;\n};\n","export default {\n format: {},\n autodetect: []\n};\n","// this gets updated automatically\nexport const version = '2.6.0';\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { unpack, type } from '../../utils/index.js';\nimport cmyk2rgb from './cmyk2rgb.js';\nimport rgb2cmyk from './rgb2cmyk.js';\n\nColor.prototype.cmyk = function () {\n return rgb2cmyk(this._rgb);\n};\n\nchroma.cmyk = (...args) => new Color(...args, 'cmyk');\n\ninput.format.cmyk = cmyk2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'cmyk');\n if (type(args) === 'array' && args.length === 4) {\n return 'cmyk';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\n\nconst cmyk2rgb = (...args) => {\n args = unpack(args, 'cmyk');\n const [c, m, y, k] = args;\n const alpha = args.length > 4 ? args[4] : 1;\n if (k === 1) return [0, 0, 0, alpha];\n return [\n c >= 1 ? 0 : 255 * (1 - c) * (1 - k), // r\n m >= 1 ? 0 : 255 * (1 - m) * (1 - k), // g\n y >= 1 ? 0 : 255 * (1 - y) * (1 - k), // b\n alpha\n ];\n};\n\nexport default cmyk2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { max } = Math;\n\nconst rgb2cmyk = (...args) => {\n let [r, g, b] = unpack(args, 'rgb');\n r = r / 255;\n g = g / 255;\n b = b / 255;\n const k = 1 - max(r, max(g, b));\n const f = k < 1 ? 1 / (1 - k) : 0;\n const c = (1 - r - k) * f;\n const m = (1 - g - k) * f;\n const y = (1 - b - k) * f;\n return [c, m, y, k];\n};\n\nexport default rgb2cmyk;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\n\nimport rgb2css from './rgb2css.js';\nimport css2rgb from './css2rgb.js';\n\nColor.prototype.css = function (mode) {\n return rgb2css(this._rgb, mode);\n};\n\nchroma.css = (...args) => new Color(...args, 'css');\n\ninput.format.css = css2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (h, ...rest) => {\n if (!rest.length && type(h) === 'string' && css2rgb.test(h)) {\n return 'css';\n }\n }\n});\n","import { unpack, last } from '../../utils/index.js';\nimport hsl2css from './hsl2css.js';\nimport rgb2hsl from '../hsl/rgb2hsl.js';\nconst { round } = Math;\n\n/*\n * supported arguments:\n * - rgb2css(r,g,b)\n * - rgb2css(r,g,b,a)\n * - rgb2css([r,g,b], mode)\n * - rgb2css([r,g,b,a], mode)\n * - rgb2css({r,g,b,a}, mode)\n */\nconst rgb2css = (...args) => {\n const rgba = unpack(args, 'rgba');\n let mode = last(args) || 'rgb';\n if (mode.substr(0, 3) == 'hsl') {\n return hsl2css(rgb2hsl(rgba), mode);\n }\n rgba[0] = round(rgba[0]);\n rgba[1] = round(rgba[1]);\n rgba[2] = round(rgba[2]);\n if (mode === 'rgba' || (rgba.length > 3 && rgba[3] < 1)) {\n rgba[3] = rgba.length > 3 ? rgba[3] : 1;\n mode = 'rgba';\n }\n return `${mode}(${rgba.slice(0, mode === 'rgb' ? 3 : 4).join(',')})`;\n};\n\nexport default rgb2css;\n","import { unpack, last } from '../../utils/index.js';\nconst rnd = (a) => Math.round(a * 100) / 100;\n\n/*\n * supported arguments:\n * - hsl2css(h,s,l)\n * - hsl2css(h,s,l,a)\n * - hsl2css([h,s,l], mode)\n * - hsl2css([h,s,l,a], mode)\n * - hsl2css({h,s,l,a}, mode)\n */\nconst hsl2css = (...args) => {\n const hsla = unpack(args, 'hsla');\n let mode = last(args) || 'lsa';\n hsla[0] = rnd(hsla[0] || 0);\n hsla[1] = rnd(hsla[1] * 100) + '%';\n hsla[2] = rnd(hsla[2] * 100) + '%';\n if (mode === 'hsla' || (hsla.length > 3 && hsla[3] < 1)) {\n hsla[3] = hsla.length > 3 ? hsla[3] : 1;\n mode = 'hsla';\n } else {\n hsla.length = 3;\n }\n return `${mode}(${hsla.join(',')})`;\n};\n\nexport default hsl2css;\n","import { unpack, min, max } from '../../utils/index.js';\n\n/*\n * supported arguments:\n * - rgb2hsl(r,g,b)\n * - rgb2hsl(r,g,b,a)\n * - rgb2hsl([r,g,b])\n * - rgb2hsl([r,g,b,a])\n * - rgb2hsl({r,g,b,a})\n */\nconst rgb2hsl = (...args) => {\n args = unpack(args, 'rgba');\n let [r, g, b] = args;\n\n r /= 255;\n g /= 255;\n b /= 255;\n\n const minRgb = min(r, g, b);\n const maxRgb = max(r, g, b);\n\n const l = (maxRgb + minRgb) / 2;\n let s, h;\n\n if (maxRgb === minRgb) {\n s = 0;\n h = Number.NaN;\n } else {\n s =\n l < 0.5\n ? (maxRgb - minRgb) / (maxRgb + minRgb)\n : (maxRgb - minRgb) / (2 - maxRgb - minRgb);\n }\n\n if (r == maxRgb) h = (g - b) / (maxRgb - minRgb);\n else if (g == maxRgb) h = 2 + (b - r) / (maxRgb - minRgb);\n else if (b == maxRgb) h = 4 + (r - g) / (maxRgb - minRgb);\n\n h *= 60;\n if (h < 0) h += 360;\n if (args.length > 3 && args[3] !== undefined) return [h, s, l, args[3]];\n return [h, s, l];\n};\n\nexport default rgb2hsl;\n","import hsl2rgb from '../hsl/hsl2rgb.js';\nimport input from '../input.js';\n\nconst RE_RGB = /^rgb\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*\\)$/;\nconst RE_RGBA =\n /^rgba\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\nconst RE_RGB_PCT =\n /^rgb\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/;\nconst RE_RGBA_PCT =\n /^rgba\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\nconst RE_HSL =\n /^hsl\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/;\nconst RE_HSLA =\n /^hsla\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\n\nconst { round } = Math;\n\nconst css2rgb = (css) => {\n css = css.toLowerCase().trim();\n let m;\n\n if (input.format.named) {\n try {\n return input.format.named(css);\n // eslint-disable-next-line\n } catch (e) {}\n }\n\n // rgb(250,20,0)\n if ((m = css.match(RE_RGB))) {\n const rgb = m.slice(1, 4);\n for (let i = 0; i < 3; i++) {\n rgb[i] = +rgb[i];\n }\n rgb[3] = 1; // default alpha\n return rgb;\n }\n\n // rgba(250,20,0,0.4)\n if ((m = css.match(RE_RGBA))) {\n const rgb = m.slice(1, 5);\n for (let i = 0; i < 4; i++) {\n rgb[i] = +rgb[i];\n }\n return rgb;\n }\n\n // rgb(100%,0%,0%)\n if ((m = css.match(RE_RGB_PCT))) {\n const rgb = m.slice(1, 4);\n for (let i = 0; i < 3; i++) {\n rgb[i] = round(rgb[i] * 2.55);\n }\n rgb[3] = 1; // default alpha\n return rgb;\n }\n\n // rgba(100%,0%,0%,0.4)\n if ((m = css.match(RE_RGBA_PCT))) {\n const rgb = m.slice(1, 5);\n for (let i = 0; i < 3; i++) {\n rgb[i] = round(rgb[i] * 2.55);\n }\n rgb[3] = +rgb[3];\n return rgb;\n }\n\n // hsl(0,100%,50%)\n if ((m = css.match(RE_HSL))) {\n const hsl = m.slice(1, 4);\n hsl[1] *= 0.01;\n hsl[2] *= 0.01;\n const rgb = hsl2rgb(hsl);\n rgb[3] = 1;\n return rgb;\n }\n\n // hsla(0,100%,50%,0.5)\n if ((m = css.match(RE_HSLA))) {\n const hsl = m.slice(1, 4);\n hsl[1] *= 0.01;\n hsl[2] *= 0.01;\n const rgb = hsl2rgb(hsl);\n rgb[3] = +m[4]; // default alpha = 1\n return rgb;\n }\n};\n\ncss2rgb.test = (s) => {\n return (\n RE_RGB.test(s) ||\n RE_RGBA.test(s) ||\n RE_RGB_PCT.test(s) ||\n RE_RGBA_PCT.test(s) ||\n RE_HSL.test(s) ||\n RE_HSLA.test(s)\n );\n};\n\nexport default css2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { round } = Math;\n\nconst hsl2rgb = (...args) => {\n args = unpack(args, 'hsl');\n const [h, s, l] = args;\n let r, g, b;\n if (s === 0) {\n r = g = b = l * 255;\n } else {\n const t3 = [0, 0, 0];\n const c = [0, 0, 0];\n const t2 = l < 0.5 ? l * (1 + s) : l + s - l * s;\n const t1 = 2 * l - t2;\n const h_ = h / 360;\n t3[0] = h_ + 1 / 3;\n t3[1] = h_;\n t3[2] = h_ - 1 / 3;\n for (let i = 0; i < 3; i++) {\n if (t3[i] < 0) t3[i] += 1;\n if (t3[i] > 1) t3[i] -= 1;\n if (6 * t3[i] < 1) c[i] = t1 + (t2 - t1) * 6 * t3[i];\n else if (2 * t3[i] < 1) c[i] = t2;\n else if (3 * t3[i] < 2) c[i] = t1 + (t2 - t1) * (2 / 3 - t3[i]) * 6;\n else c[i] = t1;\n }\n [r, g, b] = [round(c[0] * 255), round(c[1] * 255), round(c[2] * 255)];\n }\n if (args.length > 3) {\n // keep alpha channel\n return [r, g, b, args[3]];\n }\n return [r, g, b, 1];\n};\n\nexport default hsl2rgb;\n","import Color from '../../Color.js';\nimport chroma from '../../chroma.js';\nimport input from '../input.js';\nimport { unpack } from '../../utils/index.js';\n\ninput.format.gl = (...args) => {\n const rgb = unpack(args, 'rgba');\n rgb[0] *= 255;\n rgb[1] *= 255;\n rgb[2] *= 255;\n return rgb;\n};\n\nchroma.gl = (...args) => new Color(...args, 'gl');\n\nColor.prototype.gl = function () {\n const rgb = this._rgb;\n return [rgb[0] / 255, rgb[1] / 255, rgb[2] / 255, rgb[3]];\n};\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hcg2rgb from './hcg2rgb.js';\nimport rgb2hcg from './rgb2hcg.js';\n\nColor.prototype.hcg = function () {\n return rgb2hcg(this._rgb);\n};\n\nchroma.hcg = (...args) => new Color(...args, 'hcg');\n\ninput.format.hcg = hcg2rgb;\n\ninput.autodetect.push({\n p: 1,\n test: (...args) => {\n args = unpack(args, 'hcg');\n if (type(args) === 'array' && args.length === 3) {\n return 'hcg';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { floor } = Math;\n\n/*\n * this is basically just HSV with some minor tweaks\n *\n * hue.. [0..360]\n * chroma .. [0..1]\n * grayness .. [0..1]\n */\n\nconst hcg2rgb = (...args) => {\n args = unpack(args, 'hcg');\n let [h, c, _g] = args;\n let r, g, b;\n _g = _g * 255;\n const _c = c * 255;\n if (c === 0) {\n r = g = b = _g;\n } else {\n if (h === 360) h = 0;\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 60;\n const i = floor(h);\n const f = h - i;\n const p = _g * (1 - c);\n const q = p + _c * (1 - f);\n const t = p + _c * f;\n const v = p + _c;\n switch (i) {\n case 0:\n [r, g, b] = [v, t, p];\n break;\n case 1:\n [r, g, b] = [q, v, p];\n break;\n case 2:\n [r, g, b] = [p, v, t];\n break;\n case 3:\n [r, g, b] = [p, q, v];\n break;\n case 4:\n [r, g, b] = [t, p, v];\n break;\n case 5:\n [r, g, b] = [v, p, q];\n break;\n }\n }\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default hcg2rgb;\n","import { unpack, max, min } from '../../utils/index.js';\n\nconst rgb2hcg = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const minRgb = min(r, g, b);\n const maxRgb = max(r, g, b);\n const delta = maxRgb - minRgb;\n const c = (delta * 100) / 255;\n const _g = (minRgb / (255 - delta)) * 100;\n let h;\n if (delta === 0) {\n h = Number.NaN;\n } else {\n if (r === maxRgb) h = (g - b) / delta;\n if (g === maxRgb) h = 2 + (b - r) / delta;\n if (b === maxRgb) h = 4 + (r - g) / delta;\n h *= 60;\n if (h < 0) h += 360;\n }\n return [h, c, _g];\n};\n\nexport default rgb2hcg;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport { type } from '../../utils/index.js';\nimport input from '../input.js';\nimport hex2rgb from './hex2rgb.js';\nimport rgb2hex from './rgb2hex.js';\n\nColor.prototype.hex = function (mode) {\n return rgb2hex(this._rgb, mode);\n};\n\nchroma.hex = (...args) => new Color(...args, 'hex');\n\ninput.format.hex = hex2rgb;\ninput.autodetect.push({\n p: 4,\n test: (h, ...rest) => {\n if (\n !rest.length &&\n type(h) === 'string' &&\n [3, 4, 5, 6, 7, 8, 9].indexOf(h.length) >= 0\n ) {\n return 'hex';\n }\n }\n});\n","const RE_HEX = /^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;\nconst RE_HEXA = /^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;\n\nconst hex2rgb = (hex) => {\n if (hex.match(RE_HEX)) {\n // remove optional leading #\n if (hex.length === 4 || hex.length === 7) {\n hex = hex.substr(1);\n }\n // expand short-notation to full six-digit\n if (hex.length === 3) {\n hex = hex.split('');\n hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];\n }\n const u = parseInt(hex, 16);\n const r = u >> 16;\n const g = (u >> 8) & 0xff;\n const b = u & 0xff;\n return [r, g, b, 1];\n }\n\n // match rgba hex format, eg #FF000077\n if (hex.match(RE_HEXA)) {\n if (hex.length === 5 || hex.length === 9) {\n // remove optional leading #\n hex = hex.substr(1);\n }\n // expand short-notation to full eight-digit\n if (hex.length === 4) {\n hex = hex.split('');\n hex =\n hex[0] +\n hex[0] +\n hex[1] +\n hex[1] +\n hex[2] +\n hex[2] +\n hex[3] +\n hex[3];\n }\n const u = parseInt(hex, 16);\n const r = (u >> 24) & 0xff;\n const g = (u >> 16) & 0xff;\n const b = (u >> 8) & 0xff;\n const a = Math.round(((u & 0xff) / 0xff) * 100) / 100;\n return [r, g, b, a];\n }\n\n // we used to check for css colors here\n // if _input.css? and rgb = _input.css hex\n // return rgb\n\n throw new Error(`unknown hex color: ${hex}`);\n};\n\nexport default hex2rgb;\n","import { unpack, last } from '../../utils/index.js';\nconst { round } = Math;\n\nconst rgb2hex = (...args) => {\n let [r, g, b, a] = unpack(args, 'rgba');\n let mode = last(args) || 'auto';\n if (a === undefined) a = 1;\n if (mode === 'auto') {\n mode = a < 1 ? 'rgba' : 'rgb';\n }\n r = round(r);\n g = round(g);\n b = round(b);\n const u = (r << 16) | (g << 8) | b;\n let str = '000000' + u.toString(16); //#.toUpperCase();\n str = str.substr(str.length - 6);\n let hxa = '0' + round(a * 255).toString(16);\n hxa = hxa.substr(hxa.length - 2);\n switch (mode.toLowerCase()) {\n case 'rgba':\n return `#${str}${hxa}`;\n case 'argb':\n return `#${hxa}${str}`;\n default:\n return `#${str}`;\n }\n};\n\nexport default rgb2hex;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsi2rgb from './hsi2rgb.js';\nimport rgb2hsi from './rgb2hsi.js';\n\nColor.prototype.hsi = function () {\n return rgb2hsi(this._rgb);\n};\n\nchroma.hsi = (...args) => new Color(...args, 'hsi');\n\ninput.format.hsi = hsi2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsi');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsi';\n }\n }\n});\n","import { unpack, limit, TWOPI, PITHIRD } from '../../utils/index.js';\nconst { cos } = Math;\n\n/*\n * hue [0..360]\n * saturation [0..1]\n * intensity [0..1]\n */\nconst hsi2rgb = (...args) => {\n /*\n borrowed from here:\n http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/hsi2rgb.cpp\n */\n args = unpack(args, 'hsi');\n let [h, s, i] = args;\n let r, g, b;\n\n if (isNaN(h)) h = 0;\n if (isNaN(s)) s = 0;\n // normalize hue\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 360;\n if (h < 1 / 3) {\n b = (1 - s) / 3;\n r = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n g = 1 - (b + r);\n } else if (h < 2 / 3) {\n h -= 1 / 3;\n r = (1 - s) / 3;\n g = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n b = 1 - (r + g);\n } else {\n h -= 2 / 3;\n g = (1 - s) / 3;\n b = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n r = 1 - (g + b);\n }\n r = limit(i * r * 3);\n g = limit(i * g * 3);\n b = limit(i * b * 3);\n return [r * 255, g * 255, b * 255, args.length > 3 ? args[3] : 1];\n};\n\nexport default hsi2rgb;\n","import { unpack, TWOPI } from '../../utils/index.js';\nconst { min, sqrt, acos } = Math;\n\nconst rgb2hsi = (...args) => {\n /*\n borrowed from here:\n http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/rgb2hsi.cpp\n */\n let [r, g, b] = unpack(args, 'rgb');\n r /= 255;\n g /= 255;\n b /= 255;\n let h;\n const min_ = min(r, g, b);\n const i = (r + g + b) / 3;\n const s = i > 0 ? 1 - min_ / i : 0;\n if (s === 0) {\n h = NaN;\n } else {\n h = (r - g + (r - b)) / 2;\n h /= sqrt((r - g) * (r - g) + (r - b) * (g - b));\n h = acos(h);\n if (b > g) {\n h = TWOPI - h;\n }\n h /= TWOPI;\n }\n return [h * 360, s, i];\n};\n\nexport default rgb2hsi;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsl2rgb from './hsl2rgb.js';\nimport rgb2hsl from './rgb2hsl.js';\n\nColor.prototype.hsl = function () {\n return rgb2hsl(this._rgb);\n};\n\nchroma.hsl = (...args) => new Color(...args, 'hsl');\n\ninput.format.hsl = hsl2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsl');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsl';\n }\n }\n});\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsv2rgb from './hsv2rgb.js';\nimport rgb2hsv from './rgb2hsv.js';\n\nColor.prototype.hsv = function () {\n return rgb2hsv(this._rgb);\n};\n\nchroma.hsv = (...args) => new Color(...args, 'hsv');\n\ninput.format.hsv = hsv2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsv');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsv';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { floor } = Math;\n\nconst hsv2rgb = (...args) => {\n args = unpack(args, 'hsv');\n let [h, s, v] = args;\n let r, g, b;\n v *= 255;\n if (s === 0) {\n r = g = b = v;\n } else {\n if (h === 360) h = 0;\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 60;\n\n const i = floor(h);\n const f = h - i;\n const p = v * (1 - s);\n const q = v * (1 - s * f);\n const t = v * (1 - s * (1 - f));\n\n switch (i) {\n case 0:\n [r, g, b] = [v, t, p];\n break;\n case 1:\n [r, g, b] = [q, v, p];\n break;\n case 2:\n [r, g, b] = [p, v, t];\n break;\n case 3:\n [r, g, b] = [p, q, v];\n break;\n case 4:\n [r, g, b] = [t, p, v];\n break;\n case 5:\n [r, g, b] = [v, p, q];\n break;\n }\n }\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default hsv2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { min, max } = Math;\n\n/*\n * supported arguments:\n * - rgb2hsv(r,g,b)\n * - rgb2hsv([r,g,b])\n * - rgb2hsv({r,g,b})\n */\nconst rgb2hsl = (...args) => {\n args = unpack(args, 'rgb');\n let [r, g, b] = args;\n const min_ = min(r, g, b);\n const max_ = max(r, g, b);\n const delta = max_ - min_;\n let h, s, v;\n v = max_ / 255.0;\n if (max_ === 0) {\n h = Number.NaN;\n s = 0;\n } else {\n s = delta / max_;\n if (r === max_) h = (g - b) / delta;\n if (g === max_) h = 2 + (b - r) / delta;\n if (b === max_) h = 4 + (r - g) / delta;\n h *= 60;\n if (h < 0) h += 360;\n }\n return [h, s, v];\n};\n\nexport default rgb2hsl;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport lab2rgb from './lab2rgb.js';\nimport rgb2lab from './rgb2lab.js';\n\nColor.prototype.lab = function () {\n return rgb2lab(this._rgb);\n};\n\nchroma.lab = (...args) => new Color(...args, 'lab');\n\ninput.format.lab = lab2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'lab');\n if (type(args) === 'array' && args.length === 3) {\n return 'lab';\n }\n }\n});\n","import LAB_CONSTANTS from './lab-constants.js';\nimport { unpack } from '../../utils/index.js';\nconst { pow } = Math;\n\n/*\n * L* [0..100]\n * a [-100..100]\n * b [-100..100]\n */\nconst lab2rgb = (...args) => {\n args = unpack(args, 'lab');\n const [l, a, b] = args;\n let x, y, z, r, g, b_;\n\n y = (l + 16) / 116;\n x = isNaN(a) ? y : y + a / 500;\n z = isNaN(b) ? y : y - b / 200;\n\n y = LAB_CONSTANTS.Yn * lab_xyz(y);\n x = LAB_CONSTANTS.Xn * lab_xyz(x);\n z = LAB_CONSTANTS.Zn * lab_xyz(z);\n\n r = xyz_rgb(3.2404542 * x - 1.5371385 * y - 0.4985314 * z); // D65 -> sRGB\n g = xyz_rgb(-0.969266 * x + 1.8760108 * y + 0.041556 * z);\n b_ = xyz_rgb(0.0556434 * x - 0.2040259 * y + 1.0572252 * z);\n\n return [r, g, b_, args.length > 3 ? args[3] : 1];\n};\n\nconst xyz_rgb = (r) => {\n return 255 * (r <= 0.00304 ? 12.92 * r : 1.055 * pow(r, 1 / 2.4) - 0.055);\n};\n\nconst lab_xyz = (t) => {\n return t > LAB_CONSTANTS.t1\n ? t * t * t\n : LAB_CONSTANTS.t2 * (t - LAB_CONSTANTS.t0);\n};\n\nexport default lab2rgb;\n","export default {\n // Corresponds roughly to RGB brighter/darker\n Kn: 18,\n\n // D65 standard referent\n Xn: 0.95047,\n Yn: 1,\n Zn: 1.08883,\n\n t0: 0.137931034, // 4 / 29\n t1: 0.206896552, // 6 / 29\n t2: 0.12841855, // 3 * t1 * t1\n t3: 0.008856452 // t1 * t1 * t1\n};\n","import LAB_CONSTANTS from './lab-constants.js';\nimport { unpack } from '../../utils/index.js';\nconst { pow } = Math;\n\nconst rgb2lab = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [x, y, z] = rgb2xyz(r, g, b);\n const l = 116 * y - 16;\n return [l < 0 ? 0 : l, 500 * (x - y), 200 * (y - z)];\n};\n\nconst rgb_xyz = (r) => {\n if ((r /= 255) <= 0.04045) return r / 12.92;\n return pow((r + 0.055) / 1.055, 2.4);\n};\n\nconst xyz_lab = (t) => {\n if (t > LAB_CONSTANTS.t3) return pow(t, 1 / 3);\n return t / LAB_CONSTANTS.t2 + LAB_CONSTANTS.t0;\n};\n\nconst rgb2xyz = (r, g, b) => {\n r = rgb_xyz(r);\n g = rgb_xyz(g);\n b = rgb_xyz(b);\n const x = xyz_lab(\n (0.4124564 * r + 0.3575761 * g + 0.1804375 * b) / LAB_CONSTANTS.Xn\n );\n const y = xyz_lab(\n (0.2126729 * r + 0.7151522 * g + 0.072175 * b) / LAB_CONSTANTS.Yn\n );\n const z = xyz_lab(\n (0.0193339 * r + 0.119192 * g + 0.9503041 * b) / LAB_CONSTANTS.Zn\n );\n return [x, y, z];\n};\n\nexport default rgb2lab;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport lch2rgb from './lch2rgb.js';\nimport hcl2rgb from './hcl2rgb.js';\nimport rgb2lch from './rgb2lch.js';\n\nColor.prototype.lch = function () {\n return rgb2lch(this._rgb);\n};\nColor.prototype.hcl = function () {\n return rgb2lch(this._rgb).reverse();\n};\n\nchroma.lch = (...args) => new Color(...args, 'lch');\nchroma.hcl = (...args) => new Color(...args, 'hcl');\n\ninput.format.lch = lch2rgb;\ninput.format.hcl = hcl2rgb;\n['lch', 'hcl'].forEach((m) =>\n input.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, m);\n if (type(args) === 'array' && args.length === 3) {\n return m;\n }\n }\n })\n);\n","import { unpack } from '../../utils/index.js';\nimport lch2lab from './lch2lab.js';\nimport lab2rgb from '../lab/lab2rgb.js';\n\nconst lch2rgb = (...args) => {\n args = unpack(args, 'lch');\n const [l, c, h] = args;\n const [L, a, b_] = lch2lab(l, c, h);\n const [r, g, b] = lab2rgb(L, a, b_);\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default lch2rgb;\n","import { unpack, DEG2RAD } from '../../utils/index.js';\nconst { sin, cos } = Math;\n\nconst lch2lab = (...args) => {\n /*\n Convert from a qualitative parameter h and a quantitative parameter l to a 24-bit pixel.\n These formulas were invented by David Dalrymple to obtain maximum contrast without going\n out of gamut if the parameters are in the range 0-1.\n\n A saturation multiplier was added by Gregor Aisch\n */\n let [l, c, h] = unpack(args, 'lch');\n if (isNaN(h)) h = 0;\n h = h * DEG2RAD;\n return [l, cos(h) * c, sin(h) * c];\n};\n\nexport default lch2lab;\n","import { unpack } from '../../utils/index.js';\nimport lch2rgb from './lch2rgb.js';\n\nconst hcl2rgb = (...args) => {\n const hcl = unpack(args, 'hcl').reverse();\n return lch2rgb(...hcl);\n};\n\nexport default hcl2rgb;\n","import { unpack } from '../../utils/index.js';\nimport rgb2lab from '../lab/rgb2lab.js';\nimport lab2lch from './lab2lch.js';\n\nconst rgb2lch = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [l, a, b_] = rgb2lab(r, g, b);\n return lab2lch(l, a, b_);\n};\n\nexport default rgb2lch;\n","import { unpack, RAD2DEG } from '../../utils/index.js';\nconst { sqrt, atan2, round } = Math;\n\nconst lab2lch = (...args) => {\n const [l, a, b] = unpack(args, 'lab');\n const c = sqrt(a * a + b * b);\n let h = (atan2(b, a) * RAD2DEG + 360) % 360;\n if (round(c * 10000) === 0) h = Number.NaN;\n return [l, c, h];\n};\n\nexport default lab2lch;\n","import Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\n\nimport w3cx11 from '../../colors/w3cx11.js';\nimport hex2rgb from '../hex/hex2rgb.js';\nimport rgb2hex from '../hex/rgb2hex.js';\n\nColor.prototype.name = function () {\n const hex = rgb2hex(this._rgb, 'rgb');\n for (let n of Object.keys(w3cx11)) {\n if (w3cx11[n] === hex) return n.toLowerCase();\n }\n return hex;\n};\n\ninput.format.named = (name) => {\n name = name.toLowerCase();\n if (w3cx11[name]) return hex2rgb(w3cx11[name]);\n throw new Error('unknown color name: ' + name);\n};\n\ninput.autodetect.push({\n p: 5,\n test: (h, ...rest) => {\n if (!rest.length && type(h) === 'string' && w3cx11[h.toLowerCase()]) {\n return 'named';\n }\n }\n});\n","/**\n\tX11 color names\n\n\thttp://www.w3.org/TR/css3-color/#svg-color\n*/\n\nconst w3cx11 = {\n aliceblue: '#f0f8ff',\n antiquewhite: '#faebd7',\n aqua: '#00ffff',\n aquamarine: '#7fffd4',\n azure: '#f0ffff',\n beige: '#f5f5dc',\n bisque: '#ffe4c4',\n black: '#000000',\n blanchedalmond: '#ffebcd',\n blue: '#0000ff',\n blueviolet: '#8a2be2',\n brown: '#a52a2a',\n burlywood: '#deb887',\n cadetblue: '#5f9ea0',\n chartreuse: '#7fff00',\n chocolate: '#d2691e',\n coral: '#ff7f50',\n cornflowerblue: '#6495ed',\n cornsilk: '#fff8dc',\n crimson: '#dc143c',\n cyan: '#00ffff',\n darkblue: '#00008b',\n darkcyan: '#008b8b',\n darkgoldenrod: '#b8860b',\n darkgray: '#a9a9a9',\n darkgreen: '#006400',\n darkgrey: '#a9a9a9',\n darkkhaki: '#bdb76b',\n darkmagenta: '#8b008b',\n darkolivegreen: '#556b2f',\n darkorange: '#ff8c00',\n darkorchid: '#9932cc',\n darkred: '#8b0000',\n darksalmon: '#e9967a',\n darkseagreen: '#8fbc8f',\n darkslateblue: '#483d8b',\n darkslategray: '#2f4f4f',\n darkslategrey: '#2f4f4f',\n darkturquoise: '#00ced1',\n darkviolet: '#9400d3',\n deeppink: '#ff1493',\n deepskyblue: '#00bfff',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1e90ff',\n firebrick: '#b22222',\n floralwhite: '#fffaf0',\n forestgreen: '#228b22',\n fuchsia: '#ff00ff',\n gainsboro: '#dcdcdc',\n ghostwhite: '#f8f8ff',\n gold: '#ffd700',\n goldenrod: '#daa520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#adff2f',\n grey: '#808080',\n honeydew: '#f0fff0',\n hotpink: '#ff69b4',\n indianred: '#cd5c5c',\n indigo: '#4b0082',\n ivory: '#fffff0',\n khaki: '#f0e68c',\n laserlemon: '#ffff54',\n lavender: '#e6e6fa',\n lavenderblush: '#fff0f5',\n lawngreen: '#7cfc00',\n lemonchiffon: '#fffacd',\n lightblue: '#add8e6',\n lightcoral: '#f08080',\n lightcyan: '#e0ffff',\n lightgoldenrod: '#fafad2',\n lightgoldenrodyellow: '#fafad2',\n lightgray: '#d3d3d3',\n lightgreen: '#90ee90',\n lightgrey: '#d3d3d3',\n lightpink: '#ffb6c1',\n lightsalmon: '#ffa07a',\n lightseagreen: '#20b2aa',\n lightskyblue: '#87cefa',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#b0c4de',\n lightyellow: '#ffffe0',\n lime: '#00ff00',\n limegreen: '#32cd32',\n linen: '#faf0e6',\n magenta: '#ff00ff',\n maroon: '#800000',\n maroon2: '#7f0000',\n maroon3: '#b03060',\n mediumaquamarine: '#66cdaa',\n mediumblue: '#0000cd',\n mediumorchid: '#ba55d3',\n mediumpurple: '#9370db',\n mediumseagreen: '#3cb371',\n mediumslateblue: '#7b68ee',\n mediumspringgreen: '#00fa9a',\n mediumturquoise: '#48d1cc',\n mediumvioletred: '#c71585',\n midnightblue: '#191970',\n mintcream: '#f5fffa',\n mistyrose: '#ffe4e1',\n moccasin: '#ffe4b5',\n navajowhite: '#ffdead',\n navy: '#000080',\n oldlace: '#fdf5e6',\n olive: '#808000',\n olivedrab: '#6b8e23',\n orange: '#ffa500',\n orangered: '#ff4500',\n orchid: '#da70d6',\n palegoldenrod: '#eee8aa',\n palegreen: '#98fb98',\n paleturquoise: '#afeeee',\n palevioletred: '#db7093',\n papayawhip: '#ffefd5',\n peachpuff: '#ffdab9',\n peru: '#cd853f',\n pink: '#ffc0cb',\n plum: '#dda0dd',\n powderblue: '#b0e0e6',\n purple: '#800080',\n purple2: '#7f007f',\n purple3: '#a020f0',\n rebeccapurple: '#663399',\n red: '#ff0000',\n rosybrown: '#bc8f8f',\n royalblue: '#4169e1',\n saddlebrown: '#8b4513',\n salmon: '#fa8072',\n sandybrown: '#f4a460',\n seagreen: '#2e8b57',\n seashell: '#fff5ee',\n sienna: '#a0522d',\n silver: '#c0c0c0',\n skyblue: '#87ceeb',\n slateblue: '#6a5acd',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#fffafa',\n springgreen: '#00ff7f',\n steelblue: '#4682b4',\n tan: '#d2b48c',\n teal: '#008080',\n thistle: '#d8bfd8',\n tomato: '#ff6347',\n turquoise: '#40e0d0',\n violet: '#ee82ee',\n wheat: '#f5deb3',\n white: '#ffffff',\n whitesmoke: '#f5f5f5',\n yellow: '#ffff00',\n yellowgreen: '#9acd32'\n};\n\nexport default w3cx11;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\nimport num2rgb from './num2rgb.js';\nimport rgb2num from './rgb2num.js';\n\nColor.prototype.num = function () {\n return rgb2num(this._rgb);\n};\n\nchroma.num = (...args) => new Color(...args, 'num');\n\ninput.format.num = num2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (...args) => {\n if (\n args.length === 1 &&\n type(args[0]) === 'number' &&\n args[0] >= 0 &&\n args[0] <= 0xffffff\n ) {\n return 'num';\n }\n }\n});\n","import { type } from '../../utils/index.js';\n\nconst num2rgb = (num) => {\n if (type(num) == 'number' && num >= 0 && num <= 0xffffff) {\n const r = num >> 16;\n const g = (num >> 8) & 0xff;\n const b = num & 0xff;\n return [r, g, b, 1];\n }\n throw new Error('unknown num color: ' + num);\n};\n\nexport default num2rgb;\n","import { unpack } from '../../utils/index.js';\n\nconst rgb2num = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n return (r << 16) + (g << 8) + b;\n};\n\nexport default rgb2num;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { unpack, type } from '../../utils/index.js';\nconst { round } = Math;\n\nColor.prototype.rgb = function (rnd = true) {\n if (rnd === false) return this._rgb.slice(0, 3);\n return this._rgb.slice(0, 3).map(round);\n};\n\nColor.prototype.rgba = function (rnd = true) {\n return this._rgb.slice(0, 4).map((v, i) => {\n return i < 3 ? (rnd === false ? v : round(v)) : v;\n });\n};\n\nchroma.rgb = (...args) => new Color(...args, 'rgb');\n\ninput.format.rgb = (...args) => {\n const rgba = unpack(args, 'rgba');\n if (rgba[3] === undefined) rgba[3] = 1;\n return rgba;\n};\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'rgba');\n if (\n type(args) === 'array' &&\n (args.length === 3 ||\n (args.length === 4 &&\n type(args[3]) == 'number' &&\n args[3] >= 0 &&\n args[3] <= 1))\n ) {\n return 'rgb';\n }\n }\n});\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport temperature2rgb from './temperature2rgb.js';\nimport rgb2temperature from './rgb2temperature.js';\n\nColor.prototype.temp =\n Color.prototype.kelvin =\n Color.prototype.temperature =\n function () {\n return rgb2temperature(this._rgb);\n };\n\nchroma.temp =\n chroma.kelvin =\n chroma.temperature =\n (...args) => new Color(...args, 'temp');\n\ninput.format.temp =\n input.format.kelvin =\n input.format.temperature =\n temperature2rgb;\n","/*\n * Based on implementation by Neil Bartlett\n * https://github.com/neilbartlett/color-temperature\n */\n\nconst { log } = Math;\n\nconst temperature2rgb = (kelvin) => {\n const temp = kelvin / 100;\n let r, g, b;\n if (temp < 66) {\n r = 255;\n g =\n temp < 6\n ? 0\n : -155.25485562709179 -\n 0.44596950469579133 * (g = temp - 2) +\n 104.49216199393888 * log(g);\n b =\n temp < 20\n ? 0\n : -254.76935184120902 +\n 0.8274096064007395 * (b = temp - 10) +\n 115.67994401066147 * log(b);\n } else {\n r =\n 351.97690566805693 +\n 0.114206453784165 * (r = temp - 55) -\n 40.25366309332127 * log(r);\n g =\n 325.4494125711974 +\n 0.07943456536662342 * (g = temp - 50) -\n 28.0852963507957 * log(g);\n b = 255;\n }\n return [r, g, b, 1];\n};\n\nexport default temperature2rgb;\n","/*\n * Based on implementation by Neil Bartlett\n * https://github.com/neilbartlett/color-temperature\n **/\n\nimport temperature2rgb from './temperature2rgb.js';\nimport { unpack } from '../../utils/index.js';\nconst { round } = Math;\n\nconst rgb2temperature = (...args) => {\n const rgb = unpack(args, 'rgb');\n const r = rgb[0],\n b = rgb[2];\n let minTemp = 1000;\n let maxTemp = 40000;\n const eps = 0.4;\n let temp;\n while (maxTemp - minTemp > eps) {\n temp = (maxTemp + minTemp) * 0.5;\n const rgb = temperature2rgb(temp);\n if (rgb[2] / rgb[0] >= b / r) {\n maxTemp = temp;\n } else {\n minTemp = temp;\n }\n }\n return round(temp);\n};\n\nexport default rgb2temperature;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport oklab2rgb from './oklab2rgb.js';\nimport rgb2oklab from './rgb2oklab.js';\n\nColor.prototype.oklab = function () {\n return rgb2oklab(this._rgb);\n};\n\nchroma.oklab = (...args) => new Color(...args, 'oklab');\n\ninput.format.oklab = oklab2rgb;\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'oklab');\n if (type(args) === 'array' && args.length === 3) {\n return 'oklab';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { pow, sign } = Math;\n\n/*\n * L* [0..100]\n * a [-100..100]\n * b [-100..100]\n */\nconst oklab2rgb = (...args) => {\n args = unpack(args, 'lab');\n const [L, a, b] = args;\n\n const l = pow(L + 0.3963377774 * a + 0.2158037573 * b, 3);\n const m = pow(L - 0.1055613458 * a - 0.0638541728 * b, 3);\n const s = pow(L - 0.0894841775 * a - 1.291485548 * b, 3);\n\n return [\n 255 * lrgb2rgb(+4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s),\n 255 * lrgb2rgb(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),\n 255 * lrgb2rgb(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s),\n args.length > 3 ? args[3] : 1\n ];\n};\n\nexport default oklab2rgb;\n\nfunction lrgb2rgb(c) {\n const abs = Math.abs(c);\n if (abs > 0.0031308) {\n return (sign(c) || 1) * (1.055 * pow(abs, 1 / 2.4) - 0.055);\n }\n return c * 12.92;\n}\n","import { unpack } from '../../utils/index.js';\nconst { cbrt, pow, sign } = Math;\n\nconst rgb2oklab = (...args) => {\n // OKLab color space implementation taken from\n // https://bottosson.github.io/posts/oklab/\n const [r, g, b] = unpack(args, 'rgb');\n const [lr, lg, lb] = [\n rgb2lrgb(r / 255),\n rgb2lrgb(g / 255),\n rgb2lrgb(b / 255)\n ];\n const l = cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);\n const m = cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);\n const s = cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);\n\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s\n ];\n};\n\nexport default rgb2oklab;\n\nfunction rgb2lrgb(c) {\n const abs = Math.abs(c);\n if (abs < 0.04045) {\n return c / 12.92;\n }\n return (sign(c) || 1) * pow((abs + 0.055) / 1.055, 2.4);\n}\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport oklch2rgb from './oklch2rgb.js';\nimport rgb2oklch from './rgb2oklch.js';\n\nColor.prototype.oklch = function () {\n return rgb2oklch(this._rgb);\n};\n\nchroma.oklch = (...args) => new Color(...args, 'oklch');\n\ninput.format.oklch = oklch2rgb;\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'oklch');\n if (type(args) === 'array' && args.length === 3) {\n return 'oklch';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nimport lch2lab from '../lch/lch2lab.js';\nimport oklab2rgb from '../oklab/oklab2rgb.js';\n\nconst oklch2rgb = (...args) => {\n args = unpack(args, 'lch');\n const [l, c, h] = args;\n const [L, a, b_] = lch2lab(l, c, h);\n const [r, g, b] = oklab2rgb(L, a, b_);\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default oklch2rgb;\n","import { unpack } from '../../utils/index.js';\nimport rgb2oklab from '../oklab/rgb2oklab.js';\nimport lab2lch from '../lch/lab2lch.js';\n\nconst rgb2oklch = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [l, a, b_] = rgb2oklab(r, g, b);\n return lab2lch(l, a, b_);\n};\n\nexport default rgb2oklch;\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.alpha = function (a, mutate = false) {\n if (a !== undefined && type(a) === 'number') {\n if (mutate) {\n this._rgb[3] = a;\n return this;\n }\n return new Color([this._rgb[0], this._rgb[1], this._rgb[2], a], 'rgb');\n }\n return this._rgb[3];\n};\n","import Color from '../Color.js';\n\nColor.prototype.clipped = function () {\n return this._rgb._clipped || false;\n};\n","import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.darken = function (amount = 1) {\n const me = this;\n const lab = me.lab();\n lab[0] -= LAB_CONSTANTS.Kn * amount;\n return new Color(lab, 'lab').alpha(me.alpha(), true);\n};\n\nColor.prototype.brighten = function (amount = 1) {\n return this.darken(-amount);\n};\n\nColor.prototype.darker = Color.prototype.darken;\nColor.prototype.brighter = Color.prototype.brighten;\n","import Color from '../Color.js';\n\nColor.prototype.get = function (mc) {\n const [mode, channel] = mc.split('.');\n const src = this[mode]();\n if (channel) {\n const i = mode.indexOf(channel) - (mode.substr(0, 2) === 'ok' ? 2 : 0);\n if (i > -1) return src[i];\n throw new Error(`unknown channel ${channel} in mode ${mode}`);\n } else {\n return src;\n }\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\nconst { pow } = Math;\n\nconst EPS = 1e-7;\nconst MAX_ITER = 20;\n\nColor.prototype.luminance = function (lum, mode = 'rgb') {\n if (lum !== undefined && type(lum) === 'number') {\n if (lum === 0) {\n // return pure black\n return new Color([0, 0, 0, this._rgb[3]], 'rgb');\n }\n if (lum === 1) {\n // return pure white\n return new Color([255, 255, 255, this._rgb[3]], 'rgb');\n }\n // compute new color using...\n let cur_lum = this.luminance();\n let max_iter = MAX_ITER;\n\n const test = (low, high) => {\n const mid = low.interpolate(high, 0.5, mode);\n const lm = mid.luminance();\n if (Math.abs(lum - lm) < EPS || !max_iter--) {\n // close enough\n return mid;\n }\n return lm > lum ? test(low, mid) : test(mid, high);\n };\n\n const rgb = (\n cur_lum > lum\n ? test(new Color([0, 0, 0]), this)\n : test(this, new Color([255, 255, 255]))\n ).rgb();\n return new Color([...rgb, this._rgb[3]]);\n }\n return rgb2luminance(...this._rgb.slice(0, 3));\n};\n\nconst rgb2luminance = (r, g, b) => {\n // relative luminance\n // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n r = luminance_x(r);\n g = luminance_x(g);\n b = luminance_x(b);\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\n};\n\nconst luminance_x = (x) => {\n x /= 255;\n return x <= 0.03928 ? x / 12.92 : pow((x + 0.055) / 1.055, 2.4);\n};\n","import Color from '../Color.js';\nimport mix from '../generator/mix.js';\n\nColor.prototype.mix = Color.prototype.interpolate = function (\n col2,\n f = 0.5,\n ...rest\n) {\n return mix(this, col2, f, ...rest);\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\nimport interpolator from '../interpolator/index.js';\n\nexport default (col1, col2, f = 0.5, ...rest) => {\n let mode = rest[0] || 'lrgb';\n if (!interpolator[mode] && !rest.length) {\n // fall back to the first supported mode\n mode = Object.keys(interpolator)[0];\n }\n if (!interpolator[mode]) {\n throw new Error(`interpolation mode ${mode} is not defined`);\n }\n if (type(col1) !== 'object') col1 = new Color(col1);\n if (type(col2) !== 'object') col2 = new Color(col2);\n return interpolator[mode](col1, col2, f).alpha(\n col1.alpha() + f * (col2.alpha() - col1.alpha())\n );\n};\n","export default {};\n","import Color from '../Color.js';\n\nColor.prototype.premultiply = function (mutate = false) {\n const rgb = this._rgb;\n const a = rgb[3];\n if (mutate) {\n this._rgb = [rgb[0] * a, rgb[1] * a, rgb[2] * a, a];\n return this;\n } else {\n return new Color([rgb[0] * a, rgb[1] * a, rgb[2] * a, a], 'rgb');\n }\n};\n","import '../io/lch/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.saturate = function (amount = 1) {\n const me = this;\n const lch = me.lch();\n lch[1] += LAB_CONSTANTS.Kn * amount;\n if (lch[1] < 0) lch[1] = 0;\n return new Color(lch, 'lch').alpha(me.alpha(), true);\n};\n\nColor.prototype.desaturate = function (amount = 1) {\n return this.saturate(-amount);\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.set = function (mc, value, mutate = false) {\n const [mode, channel] = mc.split('.');\n const src = this[mode]();\n if (channel) {\n const i = mode.indexOf(channel) - (mode.substr(0, 2) === 'ok' ? 2 : 0);\n if (i > -1) {\n if (type(value) == 'string') {\n switch (value.charAt(0)) {\n case '+':\n src[i] += +value;\n break;\n case '-':\n src[i] += +value;\n break;\n case '*':\n src[i] *= +value.substr(1);\n break;\n case '/':\n src[i] /= +value.substr(1);\n break;\n default:\n src[i] = +value;\n }\n } else if (type(value) === 'number') {\n src[i] = value;\n } else {\n throw new Error(`unsupported value for Color.set`);\n }\n const out = new Color(src, mode);\n if (mutate) {\n this._rgb = out._rgb;\n return this;\n }\n return out;\n }\n throw new Error(`unknown channel ${channel} in mode ${mode}`);\n } else {\n return src;\n }\n};\n","import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport mix from '../generator/mix.js';\n\nColor.prototype.tint = function (f = 0.5, ...rest) {\n return mix(this, 'white', f, ...rest);\n};\n\nColor.prototype.shade = function (f = 0.5, ...rest) {\n return mix(this, 'black', f, ...rest);\n};\n","import Color from '../Color.js';\nimport index from './index.js';\n\nconst rgb = (col1, col2, f) => {\n const xyz0 = col1._rgb;\n const xyz1 = col2._rgb;\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'rgb'\n );\n};\n\n// register interpolator\nindex.rgb = rgb;\n\nexport default rgb;\n","import Color from '../Color.js';\nconst { sqrt, pow } = Math;\nimport index from './index.js';\n\nconst lrgb = (col1, col2, f) => {\n const [x1, y1, z1] = col1._rgb;\n const [x2, y2, z2] = col2._rgb;\n return new Color(\n sqrt(pow(x1, 2) * (1 - f) + pow(x2, 2) * f),\n sqrt(pow(y1, 2) * (1 - f) + pow(y2, 2) * f),\n sqrt(pow(z1, 2) * (1 - f) + pow(z2, 2) * f),\n 'rgb'\n );\n};\n\n// register interpolator\nindex.lrgb = lrgb;\n\nexport default lrgb;\n","import '../io/lab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst lab = (col1, col2, f) => {\n const xyz0 = col1.lab();\n const xyz1 = col2.lab();\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'lab'\n );\n};\n\n// register interpolator\nindex.lab = lab;\n\nexport default lab;\n","import '../io/lch/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst lch = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'lch');\n};\n\n// register interpolator\nindex.lch = lch;\nindex.hcl = lch;\n\nexport default lch;\n","import Color from '../Color.js';\n\nexport default (col1, col2, f, m) => {\n let xyz0, xyz1;\n if (m === 'hsl') {\n xyz0 = col1.hsl();\n xyz1 = col2.hsl();\n } else if (m === 'hsv') {\n xyz0 = col1.hsv();\n xyz1 = col2.hsv();\n } else if (m === 'hcg') {\n xyz0 = col1.hcg();\n xyz1 = col2.hcg();\n } else if (m === 'hsi') {\n xyz0 = col1.hsi();\n xyz1 = col2.hsi();\n } else if (m === 'lch' || m === 'hcl') {\n m = 'hcl';\n xyz0 = col1.hcl();\n xyz1 = col2.hcl();\n } else if (m === 'oklch') {\n xyz0 = col1.oklch().reverse();\n xyz1 = col2.oklch().reverse();\n }\n\n let hue0, hue1, sat0, sat1, lbv0, lbv1;\n if (m.substr(0, 1) === 'h' || m === 'oklch') {\n [hue0, sat0, lbv0] = xyz0;\n [hue1, sat1, lbv1] = xyz1;\n }\n\n let sat, hue, lbv, dh;\n\n if (!isNaN(hue0) && !isNaN(hue1)) {\n // both colors have hue\n if (hue1 > hue0 && hue1 - hue0 > 180) {\n dh = hue1 - (hue0 + 360);\n } else if (hue1 < hue0 && hue0 - hue1 > 180) {\n dh = hue1 + 360 - hue0;\n } else {\n dh = hue1 - hue0;\n }\n hue = hue0 + f * dh;\n } else if (!isNaN(hue0)) {\n hue = hue0;\n if ((lbv1 == 1 || lbv1 == 0) && m != 'hsv') sat = sat0;\n } else if (!isNaN(hue1)) {\n hue = hue1;\n if ((lbv0 == 1 || lbv0 == 0) && m != 'hsv') sat = sat1;\n } else {\n hue = Number.NaN;\n }\n\n if (sat === undefined) sat = sat0 + f * (sat1 - sat0);\n lbv = lbv0 + f * (lbv1 - lbv0);\n return m === 'oklch'\n ? new Color([lbv, sat, hue], m)\n : new Color([hue, sat, lbv], m);\n};\n","import '../io/num/index.js';\nimport index from './index.js';\n\nimport Color from '../Color.js';\n\nconst num = (col1, col2, f) => {\n const c1 = col1.num();\n const c2 = col2.num();\n return new Color(c1 + f * (c2 - c1), 'num');\n};\n\n// register interpolator\nindex.num = num;\n\nexport default num;\n","import '../io/hcg/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hcg = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hcg');\n};\n\n// register interpolator\nindex.hcg = hcg;\n\nexport default hcg;\n","import '../io/hsi/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsi = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsi');\n};\n\n// register interpolator\nindex.hsi = hsi;\n\nexport default hsi;\n","import '../io/hsl/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsl = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsl');\n};\n\n// register interpolator\nindex.hsl = hsl;\n\nexport default hsl;\n","import '../io/hsv/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsv = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsv');\n};\n\n// register interpolator\nindex.hsv = hsv;\n\nexport default hsv;\n","import '../io/oklab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst oklab = (col1, col2, f) => {\n const xyz0 = col1.oklab();\n const xyz1 = col2.oklab();\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'oklab'\n );\n};\n\n// register interpolator\nindex.oklab = oklab;\n\nexport default oklab;\n","import '../io/lch/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst oklch = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'oklch');\n};\n\n// register interpolator\nindex.oklch = oklch;\n\nexport default oklch;\n","import Color from '../Color.js';\nimport { clip_rgb } from '../utils/index.js';\n\nconst { pow, sqrt, PI, cos, sin, atan2 } = Math;\n\nexport default (colors, mode = 'lrgb', weights = null) => {\n const l = colors.length;\n if (!weights) weights = Array.from(new Array(l)).map(() => 1);\n // normalize weights\n const k =\n l /\n weights.reduce(function (a, b) {\n return a + b;\n });\n weights.forEach((w, i) => {\n weights[i] *= k;\n });\n // convert colors to Color objects\n colors = colors.map((c) => new Color(c));\n if (mode === 'lrgb') {\n return _average_lrgb(colors, weights);\n }\n const first = colors.shift();\n const xyz = first.get(mode);\n const cnt = [];\n let dx = 0;\n let dy = 0;\n // initial color\n for (let i = 0; i < xyz.length; i++) {\n xyz[i] = (xyz[i] || 0) * weights[0];\n cnt.push(isNaN(xyz[i]) ? 0 : weights[0]);\n if (mode.charAt(i) === 'h' && !isNaN(xyz[i])) {\n const A = (xyz[i] / 180) * PI;\n dx += cos(A) * weights[0];\n dy += sin(A) * weights[0];\n }\n }\n\n let alpha = first.alpha() * weights[0];\n colors.forEach((c, ci) => {\n const xyz2 = c.get(mode);\n alpha += c.alpha() * weights[ci + 1];\n for (let i = 0; i < xyz.length; i++) {\n if (!isNaN(xyz2[i])) {\n cnt[i] += weights[ci + 1];\n if (mode.charAt(i) === 'h') {\n const A = (xyz2[i] / 180) * PI;\n dx += cos(A) * weights[ci + 1];\n dy += sin(A) * weights[ci + 1];\n } else {\n xyz[i] += xyz2[i] * weights[ci + 1];\n }\n }\n }\n });\n\n for (let i = 0; i < xyz.length; i++) {\n if (mode.charAt(i) === 'h') {\n let A = (atan2(dy / cnt[i], dx / cnt[i]) / PI) * 180;\n while (A < 0) A += 360;\n while (A >= 360) A -= 360;\n xyz[i] = A;\n } else {\n xyz[i] = xyz[i] / cnt[i];\n }\n }\n alpha /= l;\n return new Color(xyz, mode).alpha(alpha > 0.99999 ? 1 : alpha, true);\n};\n\nconst _average_lrgb = (colors, weights) => {\n const l = colors.length;\n const xyz = [0, 0, 0, 0];\n for (let i = 0; i < colors.length; i++) {\n const col = colors[i];\n const f = weights[i] / l;\n const rgb = col._rgb;\n xyz[0] += pow(rgb[0], 2) * f;\n xyz[1] += pow(rgb[1], 2) * f;\n xyz[2] += pow(rgb[2], 2) * f;\n xyz[3] += rgb[3] * f;\n }\n xyz[0] = sqrt(xyz[0]);\n xyz[1] = sqrt(xyz[1]);\n xyz[2] = sqrt(xyz[2]);\n if (xyz[3] > 0.9999999) xyz[3] = 1;\n return new Color(clip_rgb(xyz));\n};\n","//\n// interpolates between a set of colors uzing a bezier spline\n//\n\n// @requires utils lab\nimport Color from '../Color.js';\nimport '../io/lab/index.js';\nimport scale from './scale.js';\n\n// nth row of the pascal triangle\nconst binom_row = function (n) {\n let row = [1, 1];\n for (let i = 1; i < n; i++) {\n let newrow = [1];\n for (let j = 1; j <= row.length; j++) {\n newrow[j] = (row[j] || 0) + row[j - 1];\n }\n row = newrow;\n }\n return row;\n};\n\nconst bezier = function (colors) {\n let I, lab0, lab1, lab2;\n colors = colors.map((c) => new Color(c));\n if (colors.length === 2) {\n // linear interpolation\n [lab0, lab1] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map((i) => lab0[i] + t * (lab1[i] - lab0[i]));\n return new Color(lab, 'lab');\n };\n } else if (colors.length === 3) {\n // quadratic bezier interpolation\n [lab0, lab1, lab2] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map(\n (i) =>\n (1 - t) * (1 - t) * lab0[i] +\n 2 * (1 - t) * t * lab1[i] +\n t * t * lab2[i]\n );\n return new Color(lab, 'lab');\n };\n } else if (colors.length === 4) {\n // cubic bezier interpolation\n let lab3;\n [lab0, lab1, lab2, lab3] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map(\n (i) =>\n (1 - t) * (1 - t) * (1 - t) * lab0[i] +\n 3 * (1 - t) * (1 - t) * t * lab1[i] +\n 3 * (1 - t) * t * t * lab2[i] +\n t * t * t * lab3[i]\n );\n return new Color(lab, 'lab');\n };\n } else if (colors.length >= 5) {\n // general case (degree n bezier)\n let labs, row, n;\n labs = colors.map((c) => c.lab());\n n = colors.length - 1;\n row = binom_row(n);\n I = function (t) {\n const u = 1 - t;\n const lab = [0, 1, 2].map((i) =>\n labs.reduce(\n (sum, el, j) =>\n sum + row[j] * u ** (n - j) * t ** j * el[i],\n 0\n )\n );\n return new Color(lab, 'lab');\n };\n } else {\n throw new RangeError('No point in running bezier with only one color.');\n }\n return I;\n};\n\nexport default (colors) => {\n const f = bezier(colors);\n f.scale = () => scale(f);\n return f;\n};\n","// minimal multi-purpose interface\n\n// @requires utils color analyze\nimport chroma from '../chroma.js';\nimport { limit, type } from '../utils/index.js';\n\nconst { pow } = Math;\n\nexport default function (colors) {\n // constructor\n let _mode = 'rgb';\n let _nacol = chroma('#ccc');\n let _spread = 0;\n // const _fixed = false;\n let _domain = [0, 1];\n let _pos = [];\n let _padding = [0, 0];\n let _classes = false;\n let _colors = [];\n let _out = false;\n let _min = 0;\n let _max = 1;\n let _correctLightness = false;\n let _colorCache = {};\n let _useCache = true;\n let _gamma = 1;\n\n // private methods\n\n const setColors = function (colors) {\n colors = colors || ['#fff', '#000'];\n if (\n colors &&\n type(colors) === 'string' &&\n chroma.brewer &&\n chroma.brewer[colors.toLowerCase()]\n ) {\n colors = chroma.brewer[colors.toLowerCase()];\n }\n if (type(colors) === 'array') {\n // handle single color\n if (colors.length === 1) {\n colors = [colors[0], colors[0]];\n }\n // make a copy of the colors\n colors = colors.slice(0);\n // convert to chroma classes\n for (let c = 0; c < colors.length; c++) {\n colors[c] = chroma(colors[c]);\n }\n // auto-fill color position\n _pos.length = 0;\n for (let c = 0; c < colors.length; c++) {\n _pos.push(c / (colors.length - 1));\n }\n }\n resetCache();\n return (_colors = colors);\n };\n\n const getClass = function (value) {\n if (_classes != null) {\n const n = _classes.length - 1;\n let i = 0;\n while (i < n && value >= _classes[i]) {\n i++;\n }\n return i - 1;\n }\n return 0;\n };\n\n let tMapLightness = (t) => t;\n let tMapDomain = (t) => t;\n\n // const classifyValue = function(value) {\n // let val = value;\n // if (_classes.length > 2) {\n // const n = _classes.length-1;\n // const i = getClass(value);\n // const minc = _classes[0] + ((_classes[1]-_classes[0]) * (0 + (_spread * 0.5))); // center of 1st class\n // const maxc = _classes[n-1] + ((_classes[n]-_classes[n-1]) * (1 - (_spread * 0.5))); // center of last class\n // val = _min + ((((_classes[i] + ((_classes[i+1] - _classes[i]) * 0.5)) - minc) / (maxc-minc)) * (_max - _min));\n // }\n // return val;\n // };\n\n const getColor = function (val, bypassMap) {\n let col, t;\n if (bypassMap == null) {\n bypassMap = false;\n }\n if (isNaN(val) || val === null) {\n return _nacol;\n }\n if (!bypassMap) {\n if (_classes && _classes.length > 2) {\n // find the class\n const c = getClass(val);\n t = c / (_classes.length - 2);\n } else if (_max !== _min) {\n // just interpolate between min/max\n t = (val - _min) / (_max - _min);\n } else {\n t = 1;\n }\n } else {\n t = val;\n }\n\n // domain map\n t = tMapDomain(t);\n\n if (!bypassMap) {\n t = tMapLightness(t); // lightness correction\n }\n\n if (_gamma !== 1) {\n t = pow(t, _gamma);\n }\n\n t = _padding[0] + t * (1 - _padding[0] - _padding[1]);\n\n t = limit(t, 0, 1);\n\n const k = Math.floor(t * 10000);\n\n if (_useCache && _colorCache[k]) {\n col = _colorCache[k];\n } else {\n if (type(_colors) === 'array') {\n //for i in [0.._pos.length-1]\n for (let i = 0; i < _pos.length; i++) {\n const p = _pos[i];\n if (t <= p) {\n col = _colors[i];\n break;\n }\n if (t >= p && i === _pos.length - 1) {\n col = _colors[i];\n break;\n }\n if (t > p && t < _pos[i + 1]) {\n t = (t - p) / (_pos[i + 1] - p);\n col = chroma.interpolate(\n _colors[i],\n _colors[i + 1],\n t,\n _mode\n );\n break;\n }\n }\n } else if (type(_colors) === 'function') {\n col = _colors(t);\n }\n if (_useCache) {\n _colorCache[k] = col;\n }\n }\n return col;\n };\n\n var resetCache = () => (_colorCache = {});\n\n setColors(colors);\n\n // public interface\n\n const f = function (v) {\n const c = chroma(getColor(v));\n if (_out && c[_out]) {\n return c[_out]();\n } else {\n return c;\n }\n };\n\n f.classes = function (classes) {\n if (classes != null) {\n if (type(classes) === 'array') {\n _classes = classes;\n _domain = [classes[0], classes[classes.length - 1]];\n } else {\n const d = chroma.analyze(_domain);\n if (classes === 0) {\n _classes = [d.min, d.max];\n } else {\n _classes = chroma.limits(d, 'e', classes);\n }\n }\n return f;\n }\n return _classes;\n };\n\n f.domain = function (domain) {\n if (!arguments.length) {\n return _domain;\n }\n _min = domain[0];\n _max = domain[domain.length - 1];\n _pos = [];\n const k = _colors.length;\n if (domain.length === k && _min !== _max) {\n // update positions\n for (let d of Array.from(domain)) {\n _pos.push((d - _min) / (_max - _min));\n }\n } else {\n for (let c = 0; c < k; c++) {\n _pos.push(c / (k - 1));\n }\n if (domain.length > 2) {\n // set domain map\n const tOut = domain.map((d, i) => i / (domain.length - 1));\n const tBreaks = domain.map((d) => (d - _min) / (_max - _min));\n if (!tBreaks.every((val, i) => tOut[i] === val)) {\n tMapDomain = (t) => {\n if (t <= 0 || t >= 1) return t;\n let i = 0;\n while (t >= tBreaks[i + 1]) i++;\n const f =\n (t - tBreaks[i]) / (tBreaks[i + 1] - tBreaks[i]);\n const out = tOut[i] + f * (tOut[i + 1] - tOut[i]);\n return out;\n };\n }\n }\n }\n _domain = [_min, _max];\n return f;\n };\n\n f.mode = function (_m) {\n if (!arguments.length) {\n return _mode;\n }\n _mode = _m;\n resetCache();\n return f;\n };\n\n f.range = function (colors, _pos) {\n setColors(colors, _pos);\n return f;\n };\n\n f.out = function (_o) {\n _out = _o;\n return f;\n };\n\n f.spread = function (val) {\n if (!arguments.length) {\n return _spread;\n }\n _spread = val;\n return f;\n };\n\n f.correctLightness = function (v) {\n if (v == null) {\n v = true;\n }\n _correctLightness = v;\n resetCache();\n if (_correctLightness) {\n tMapLightness = function (t) {\n const L0 = getColor(0, true).lab()[0];\n const L1 = getColor(1, true).lab()[0];\n const pol = L0 > L1;\n let L_actual = getColor(t, true).lab()[0];\n const L_ideal = L0 + (L1 - L0) * t;\n let L_diff = L_actual - L_ideal;\n let t0 = 0;\n let t1 = 1;\n let max_iter = 20;\n while (Math.abs(L_diff) > 1e-2 && max_iter-- > 0) {\n (function () {\n if (pol) {\n L_diff *= -1;\n }\n if (L_diff < 0) {\n t0 = t;\n t += (t1 - t) * 0.5;\n } else {\n t1 = t;\n t += (t0 - t) * 0.5;\n }\n L_actual = getColor(t, true).lab()[0];\n return (L_diff = L_actual - L_ideal);\n })();\n }\n return t;\n };\n } else {\n tMapLightness = (t) => t;\n }\n return f;\n };\n\n f.padding = function (p) {\n if (p != null) {\n if (type(p) === 'number') {\n p = [p, p];\n }\n _padding = p;\n return f;\n } else {\n return _padding;\n }\n };\n\n f.colors = function (numColors, out) {\n // If no arguments are given, return the original colors that were provided\n if (arguments.length < 2) {\n out = 'hex';\n }\n let result = [];\n\n if (arguments.length === 0) {\n result = _colors.slice(0);\n } else if (numColors === 1) {\n result = [f(0.5)];\n } else if (numColors > 1) {\n const dm = _domain[0];\n const dd = _domain[1] - dm;\n result = __range__(0, numColors, false).map((i) =>\n f(dm + (i / (numColors - 1)) * dd)\n );\n } else {\n // returns all colors based on the defined classes\n colors = [];\n let samples = [];\n if (_classes && _classes.length > 2) {\n for (\n let i = 1, end = _classes.length, asc = 1 <= end;\n asc ? i < end : i > end;\n asc ? i++ : i--\n ) {\n samples.push((_classes[i - 1] + _classes[i]) * 0.5);\n }\n } else {\n samples = _domain;\n }\n result = samples.map((v) => f(v));\n }\n\n if (chroma[out]) {\n result = result.map((c) => c[out]());\n }\n return result;\n };\n\n f.cache = function (c) {\n if (c != null) {\n _useCache = c;\n return f;\n } else {\n return _useCache;\n }\n };\n\n f.gamma = function (g) {\n if (g != null) {\n _gamma = g;\n return f;\n } else {\n return _gamma;\n }\n };\n\n f.nodata = function (d) {\n if (d != null) {\n _nacol = chroma(d);\n return f;\n } else {\n return _nacol;\n }\n };\n\n return f;\n}\n\nfunction __range__(left, right, inclusive) {\n let range = [];\n let ascending = left < right;\n let end = !inclusive ? right : ascending ? right + 1 : right - 1;\n for (let i = left; ascending ? i < end : i > end; ascending ? i++ : i--) {\n range.push(i);\n }\n return range;\n}\n","/*\n * interpolates between a set of colors uzing a bezier spline\n * blend mode formulas taken from https://web.archive.org/web/20180110014946/http://www.venture-ware.com/kevin/coding/lets-learn-math-photoshop-blend-modes/\n */\n\nimport '../io/rgb/index.js';\nimport chroma from '../chroma.js';\n\nconst blend = (bottom, top, mode) => {\n if (!blend[mode]) {\n throw new Error('unknown blend mode ' + mode);\n }\n return blend[mode](bottom, top);\n};\n\nconst blend_f = (f) => (bottom, top) => {\n const c0 = chroma(top).rgb();\n const c1 = chroma(bottom).rgb();\n return chroma.rgb(f(c0, c1));\n};\n\nconst each = (f) => (c0, c1) => {\n const out = [];\n out[0] = f(c0[0], c1[0]);\n out[1] = f(c0[1], c1[1]);\n out[2] = f(c0[2], c1[2]);\n return out;\n};\n\nconst normal = (a) => a;\nconst multiply = (a, b) => (a * b) / 255;\nconst darken = (a, b) => (a > b ? b : a);\nconst lighten = (a, b) => (a > b ? a : b);\nconst screen = (a, b) => 255 * (1 - (1 - a / 255) * (1 - b / 255));\nconst overlay = (a, b) =>\n b < 128 ? (2 * a * b) / 255 : 255 * (1 - 2 * (1 - a / 255) * (1 - b / 255));\nconst burn = (a, b) => 255 * (1 - (1 - b / 255) / (a / 255));\nconst dodge = (a, b) => {\n if (a === 255) return 255;\n a = (255 * (b / 255)) / (1 - a / 255);\n return a > 255 ? 255 : a;\n};\n\n// # add = (a,b) ->\n// # if (a + b > 255) then 255 else a + b\n\nblend.normal = blend_f(each(normal));\nblend.multiply = blend_f(each(multiply));\nblend.screen = blend_f(each(screen));\nblend.overlay = blend_f(each(overlay));\nblend.darken = blend_f(each(darken));\nblend.lighten = blend_f(each(lighten));\nblend.dodge = blend_f(each(dodge));\nblend.burn = blend_f(each(burn));\n// blend.add = blend_f(each(add));\n\nexport default blend;\n","// cubehelix interpolation\n// based on D.A. Green \"A colour scheme for the display of astronomical intensity images\"\n// http://astron-soc.in/bulletin/11June/289392011.pdf\nimport { type, clip_rgb, TWOPI } from '../utils/index.js';\nimport chroma from '../chroma.js';\nconst { pow, sin, cos } = Math;\n\nexport default function (\n start = 300,\n rotations = -1.5,\n hue = 1,\n gamma = 1,\n lightness = [0, 1]\n) {\n let dh = 0,\n dl;\n if (type(lightness) === 'array') {\n dl = lightness[1] - lightness[0];\n } else {\n dl = 0;\n lightness = [lightness, lightness];\n }\n const f = function (fract) {\n const a = TWOPI * ((start + 120) / 360 + rotations * fract);\n const l = pow(lightness[0] + dl * fract, gamma);\n const h = dh !== 0 ? hue[0] + fract * dh : hue;\n const amp = (h * l * (1 - l)) / 2;\n const cos_a = cos(a);\n const sin_a = sin(a);\n const r = l + amp * (-0.14861 * cos_a + 1.78277 * sin_a);\n const g = l + amp * (-0.29227 * cos_a - 0.90649 * sin_a);\n const b = l + amp * (+1.97294 * cos_a);\n return chroma(clip_rgb([r * 255, g * 255, b * 255, 1]));\n };\n f.start = function (s) {\n if (s == null) {\n return start;\n }\n start = s;\n return f;\n };\n f.rotations = function (r) {\n if (r == null) {\n return rotations;\n }\n rotations = r;\n return f;\n };\n f.gamma = function (g) {\n if (g == null) {\n return gamma;\n }\n gamma = g;\n return f;\n };\n f.hue = function (h) {\n if (h == null) {\n return hue;\n }\n hue = h;\n if (type(hue) === 'array') {\n dh = hue[1] - hue[0];\n if (dh === 0) {\n hue = hue[1];\n }\n } else {\n dh = 0;\n }\n return f;\n };\n f.lightness = function (h) {\n if (h == null) {\n return lightness;\n }\n if (type(h) === 'array') {\n lightness = h;\n dl = h[1] - h[0];\n } else {\n lightness = [h, h];\n dl = 0;\n }\n return f;\n };\n f.scale = () => chroma.scale(f);\n f.hue(hue);\n return f;\n}\n","import Color from '../Color.js';\nconst digits = '0123456789abcdef';\n\nconst { floor, random } = Math;\n\nexport default () => {\n let code = '#';\n for (let i = 0; i < 6; i++) {\n code += digits.charAt(floor(random() * 16));\n }\n return new Color(code, 'hex');\n};\n","import type from './type.js';\n\nconst { log, pow, floor, abs } = Math;\n\nexport function analyze(data, key = null) {\n const r = {\n min: Number.MAX_VALUE,\n max: Number.MAX_VALUE * -1,\n sum: 0,\n values: [],\n count: 0\n };\n if (type(data) === 'object') {\n data = Object.values(data);\n }\n data.forEach((val) => {\n if (key && type(val) === 'object') val = val[key];\n if (val !== undefined && val !== null && !isNaN(val)) {\n r.values.push(val);\n r.sum += val;\n if (val < r.min) r.min = val;\n if (val > r.max) r.max = val;\n r.count += 1;\n }\n });\n\n r.domain = [r.min, r.max];\n\n r.limits = (mode, num) => limits(r, mode, num);\n\n return r;\n}\n\nexport function limits(data, mode = 'equal', num = 7) {\n if (type(data) == 'array') {\n data = analyze(data);\n }\n const { min, max } = data;\n const values = data.values.sort((a, b) => a - b);\n\n if (num === 1) {\n return [min, max];\n }\n\n const limits = [];\n\n if (mode.substr(0, 1) === 'c') {\n // continuous\n limits.push(min);\n limits.push(max);\n }\n\n if (mode.substr(0, 1) === 'e') {\n // equal interval\n limits.push(min);\n for (let i = 1; i < num; i++) {\n limits.push(min + (i / num) * (max - min));\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'l') {\n // log scale\n if (min <= 0) {\n throw new Error(\n 'Logarithmic scales are only possible for values > 0'\n );\n }\n const min_log = Math.LOG10E * log(min);\n const max_log = Math.LOG10E * log(max);\n limits.push(min);\n for (let i = 1; i < num; i++) {\n limits.push(pow(10, min_log + (i / num) * (max_log - min_log)));\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'q') {\n // quantile scale\n limits.push(min);\n for (let i = 1; i < num; i++) {\n const p = ((values.length - 1) * i) / num;\n const pb = floor(p);\n if (pb === p) {\n limits.push(values[pb]);\n } else {\n // p > pb\n const pr = p - pb;\n limits.push(values[pb] * (1 - pr) + values[pb + 1] * pr);\n }\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'k') {\n // k-means clustering\n /*\n implementation based on\n http://code.google.com/p/figue/source/browse/trunk/figue.js#336\n simplified for 1-d input values\n */\n let cluster;\n const n = values.length;\n const assignments = new Array(n);\n const clusterSizes = new Array(num);\n let repeat = true;\n let nb_iters = 0;\n let centroids = null;\n\n // get seed values\n centroids = [];\n centroids.push(min);\n for (let i = 1; i < num; i++) {\n centroids.push(min + (i / num) * (max - min));\n }\n centroids.push(max);\n\n while (repeat) {\n // assignment step\n for (let j = 0; j < num; j++) {\n clusterSizes[j] = 0;\n }\n for (let i = 0; i < n; i++) {\n const value = values[i];\n let mindist = Number.MAX_VALUE;\n let best;\n for (let j = 0; j < num; j++) {\n const dist = abs(centroids[j] - value);\n if (dist < mindist) {\n mindist = dist;\n best = j;\n }\n clusterSizes[best]++;\n assignments[i] = best;\n }\n }\n\n // update centroids step\n const newCentroids = new Array(num);\n for (let j = 0; j < num; j++) {\n newCentroids[j] = null;\n }\n for (let i = 0; i < n; i++) {\n cluster = assignments[i];\n if (newCentroids[cluster] === null) {\n newCentroids[cluster] = values[i];\n } else {\n newCentroids[cluster] += values[i];\n }\n }\n for (let j = 0; j < num; j++) {\n newCentroids[j] *= 1 / clusterSizes[j];\n }\n\n // check convergence\n repeat = false;\n for (let j = 0; j < num; j++) {\n if (newCentroids[j] !== centroids[j]) {\n repeat = true;\n break;\n }\n }\n\n centroids = newCentroids;\n nb_iters++;\n\n if (nb_iters > 200) {\n repeat = false;\n }\n }\n\n // finished k-means clustering\n // the next part is borrowed from gabrielflor.it\n const kClusters = {};\n for (let j = 0; j < num; j++) {\n kClusters[j] = [];\n }\n for (let i = 0; i < n; i++) {\n cluster = assignments[i];\n kClusters[cluster].push(values[i]);\n }\n let tmpKMeansBreaks = [];\n for (let j = 0; j < num; j++) {\n tmpKMeansBreaks.push(kClusters[j][0]);\n tmpKMeansBreaks.push(kClusters[j][kClusters[j].length - 1]);\n }\n tmpKMeansBreaks = tmpKMeansBreaks.sort((a, b) => a - b);\n limits.push(tmpKMeansBreaks[0]);\n for (let i = 1; i < tmpKMeansBreaks.length; i += 2) {\n const v = tmpKMeansBreaks[i];\n if (!isNaN(v) && limits.indexOf(v) === -1) {\n limits.push(v);\n }\n }\n }\n return limits;\n}\n","import Color from '../Color.js';\nimport '../ops/luminance.js';\n\nexport default (a, b) => {\n // WCAG contrast ratio\n // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef\n a = new Color(a);\n b = new Color(b);\n const l1 = a.luminance();\n const l2 = b.luminance();\n return l1 > l2 ? (l1 + 0.05) / (l2 + 0.05) : (l2 + 0.05) / (l1 + 0.05);\n};\n","import Color from '../Color.js';\nconst { sqrt, pow, min, max, atan2, abs, cos, sin, exp, PI } = Math;\n\nexport default function (a, b, Kl = 1, Kc = 1, Kh = 1) {\n // Delta E (CIE 2000)\n // see http://www.brucelindbloom.com/index.html?Eqn_DeltaE_CIE2000.html\n var rad2deg = function (rad) {\n return (360 * rad) / (2 * PI);\n };\n var deg2rad = function (deg) {\n return (2 * PI * deg) / 360;\n };\n a = new Color(a);\n b = new Color(b);\n const [L1, a1, b1] = Array.from(a.lab());\n const [L2, a2, b2] = Array.from(b.lab());\n const avgL = (L1 + L2) / 2;\n const C1 = sqrt(pow(a1, 2) + pow(b1, 2));\n const C2 = sqrt(pow(a2, 2) + pow(b2, 2));\n const avgC = (C1 + C2) / 2;\n const G = 0.5 * (1 - sqrt(pow(avgC, 7) / (pow(avgC, 7) + pow(25, 7))));\n const a1p = a1 * (1 + G);\n const a2p = a2 * (1 + G);\n const C1p = sqrt(pow(a1p, 2) + pow(b1, 2));\n const C2p = sqrt(pow(a2p, 2) + pow(b2, 2));\n const avgCp = (C1p + C2p) / 2;\n const arctan1 = rad2deg(atan2(b1, a1p));\n const arctan2 = rad2deg(atan2(b2, a2p));\n const h1p = arctan1 >= 0 ? arctan1 : arctan1 + 360;\n const h2p = arctan2 >= 0 ? arctan2 : arctan2 + 360;\n const avgHp =\n abs(h1p - h2p) > 180 ? (h1p + h2p + 360) / 2 : (h1p + h2p) / 2;\n const T =\n 1 -\n 0.17 * cos(deg2rad(avgHp - 30)) +\n 0.24 * cos(deg2rad(2 * avgHp)) +\n 0.32 * cos(deg2rad(3 * avgHp + 6)) -\n 0.2 * cos(deg2rad(4 * avgHp - 63));\n let deltaHp = h2p - h1p;\n deltaHp =\n abs(deltaHp) <= 180\n ? deltaHp\n : h2p <= h1p\n ? deltaHp + 360\n : deltaHp - 360;\n deltaHp = 2 * sqrt(C1p * C2p) * sin(deg2rad(deltaHp) / 2);\n const deltaL = L2 - L1;\n const deltaCp = C2p - C1p;\n const sl = 1 + (0.015 * pow(avgL - 50, 2)) / sqrt(20 + pow(avgL - 50, 2));\n const sc = 1 + 0.045 * avgCp;\n const sh = 1 + 0.015 * avgCp * T;\n const deltaTheta = 30 * exp(-pow((avgHp - 275) / 25, 2));\n const Rc = 2 * sqrt(pow(avgCp, 7) / (pow(avgCp, 7) + pow(25, 7)));\n const Rt = -Rc * sin(2 * deg2rad(deltaTheta));\n const result = sqrt(\n pow(deltaL / (Kl * sl), 2) +\n pow(deltaCp / (Kc * sc), 2) +\n pow(deltaHp / (Kh * sh), 2) +\n Rt * (deltaCp / (Kc * sc)) * (deltaHp / (Kh * sh))\n );\n return max(0, min(100, result));\n}\n","import Color from '../Color.js';\n\n// simple Euclidean distance\nexport default function (a, b, mode = 'lab') {\n // Delta E (CIE 1976)\n // see http://www.brucelindbloom.com/index.html?Equations.html\n a = new Color(a);\n b = new Color(b);\n const l1 = a.get(mode);\n const l2 = b.get(mode);\n let sum_sq = 0;\n for (let i in l1) {\n const d = (l1[i] || 0) - (l2[i] || 0);\n sum_sq += d * d;\n }\n return Math.sqrt(sum_sq);\n}\n","import Color from '../Color.js';\n\nexport default (...args) => {\n try {\n new Color(...args);\n return true;\n // eslint-disable-next-line\n } catch (e) {\n return false;\n }\n};\n","// some pre-defined color scales:\nimport chroma from '../chroma.js';\nimport '../io/hsl/index.js';\nimport scale from '../generator/scale.js';\n\nexport default {\n cool() {\n return scale([chroma.hsl(180, 1, 0.9), chroma.hsl(250, 0.7, 0.4)]);\n },\n hot() {\n return scale(['#000', '#f00', '#ff0', '#fff'], [0, 0.25, 0.75, 1]).mode(\n 'rgb'\n );\n }\n};\n","/**\n ColorBrewer colors for chroma.js\n\n Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The\n Pennsylvania State University.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software distributed\n under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n CONDITIONS OF ANY KIND, either express or implied. See the License for the\n specific language governing permissions and limitations under the License.\n*/\n\nconst colorbrewer = {\n // sequential\n OrRd: ['#fff7ec', '#fee8c8', '#fdd49e', '#fdbb84', '#fc8d59', '#ef6548', '#d7301f', '#b30000', '#7f0000'],\n PuBu: ['#fff7fb', '#ece7f2', '#d0d1e6', '#a6bddb', '#74a9cf', '#3690c0', '#0570b0', '#045a8d', '#023858'],\n BuPu: ['#f7fcfd', '#e0ecf4', '#bfd3e6', '#9ebcda', '#8c96c6', '#8c6bb1', '#88419d', '#810f7c', '#4d004b'],\n Oranges: ['#fff5eb', '#fee6ce', '#fdd0a2', '#fdae6b', '#fd8d3c', '#f16913', '#d94801', '#a63603', '#7f2704'],\n BuGn: ['#f7fcfd', '#e5f5f9', '#ccece6', '#99d8c9', '#66c2a4', '#41ae76', '#238b45', '#006d2c', '#00441b'],\n YlOrBr: ['#ffffe5', '#fff7bc', '#fee391', '#fec44f', '#fe9929', '#ec7014', '#cc4c02', '#993404', '#662506'],\n YlGn: ['#ffffe5', '#f7fcb9', '#d9f0a3', '#addd8e', '#78c679', '#41ab5d', '#238443', '#006837', '#004529'],\n Reds: ['#fff5f0', '#fee0d2', '#fcbba1', '#fc9272', '#fb6a4a', '#ef3b2c', '#cb181d', '#a50f15', '#67000d'],\n RdPu: ['#fff7f3', '#fde0dd', '#fcc5c0', '#fa9fb5', '#f768a1', '#dd3497', '#ae017e', '#7a0177', '#49006a'],\n Greens: ['#f7fcf5', '#e5f5e0', '#c7e9c0', '#a1d99b', '#74c476', '#41ab5d', '#238b45', '#006d2c', '#00441b'],\n YlGnBu: ['#ffffd9', '#edf8b1', '#c7e9b4', '#7fcdbb', '#41b6c4', '#1d91c0', '#225ea8', '#253494', '#081d58'],\n Purples: ['#fcfbfd', '#efedf5', '#dadaeb', '#bcbddc', '#9e9ac8', '#807dba', '#6a51a3', '#54278f', '#3f007d'],\n GnBu: ['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081'],\n Greys: ['#ffffff', '#f0f0f0', '#d9d9d9', '#bdbdbd', '#969696', '#737373', '#525252', '#252525', '#000000'],\n YlOrRd: ['#ffffcc', '#ffeda0', '#fed976', '#feb24c', '#fd8d3c', '#fc4e2a', '#e31a1c', '#bd0026', '#800026'],\n PuRd: ['#f7f4f9', '#e7e1ef', '#d4b9da', '#c994c7', '#df65b0', '#e7298a', '#ce1256', '#980043', '#67001f'],\n Blues: ['#f7fbff', '#deebf7', '#c6dbef', '#9ecae1', '#6baed6', '#4292c6', '#2171b5', '#08519c', '#08306b'],\n PuBuGn: ['#fff7fb', '#ece2f0', '#d0d1e6', '#a6bddb', '#67a9cf', '#3690c0', '#02818a', '#016c59', '#014636'],\n Viridis: ['#440154', '#482777', '#3f4a8a', '#31678e', '#26838f', '#1f9d8a', '#6cce5a', '#b6de2b', '#fee825'],\n\n // diverging\n Spectral: ['#9e0142', '#d53e4f', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#e6f598', '#abdda4', '#66c2a5', '#3288bd', '#5e4fa2'],\n RdYlGn: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#d9ef8b', '#a6d96a', '#66bd63', '#1a9850', '#006837'],\n RdBu: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#f7f7f7', '#d1e5f0', '#92c5de', '#4393c3', '#2166ac', '#053061'],\n PiYG: ['#8e0152', '#c51b7d', '#de77ae', '#f1b6da', '#fde0ef', '#f7f7f7', '#e6f5d0', '#b8e186', '#7fbc41', '#4d9221', '#276419'],\n PRGn: ['#40004b', '#762a83', '#9970ab', '#c2a5cf', '#e7d4e8', '#f7f7f7', '#d9f0d3', '#a6dba0', '#5aae61', '#1b7837', '#00441b'],\n RdYlBu: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee090', '#ffffbf', '#e0f3f8', '#abd9e9', '#74add1', '#4575b4', '#313695'],\n BrBG: ['#543005', '#8c510a', '#bf812d', '#dfc27d', '#f6e8c3', '#f5f5f5', '#c7eae5', '#80cdc1', '#35978f', '#01665e', '#003c30'],\n RdGy: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#ffffff', '#e0e0e0', '#bababa', '#878787', '#4d4d4d', '#1a1a1a'],\n PuOr: ['#7f3b08', '#b35806', '#e08214', '#fdb863', '#fee0b6', '#f7f7f7', '#d8daeb', '#b2abd2', '#8073ac', '#542788', '#2d004b'],\n\n // qualitative\n Set2: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', '#e5c494', '#b3b3b3'],\n Accent: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0', '#f0027f', '#bf5b17', '#666666'],\n Set1: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33', '#a65628', '#f781bf', '#999999'],\n Set3: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462', '#b3de69', '#fccde5', '#d9d9d9', '#bc80bd', '#ccebc5', '#ffed6f'],\n Dark2: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02', '#a6761d', '#666666'],\n Paired: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f', '#ff7f00', '#cab2d6', '#6a3d9a', '#ffff99', '#b15928'],\n Pastel2: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4', '#e6f5c9', '#fff2ae', '#f1e2cc', '#cccccc'],\n Pastel1: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4', '#fed9a6', '#ffffcc', '#e5d8bd', '#fddaec', '#f2f2f2']\n};\n\n// add lowercase aliases for case-insensitive matches\nfor (let key of Object.keys(colorbrewer)) {\n colorbrewer[key.toLowerCase()] = colorbrewer[key];\n}\n\nexport default colorbrewer;\n","/*!\n * Paper.js v0.12.18 - The Swiss Army Knife of Vector Graphics Scripting.\n * http://paperjs.org/\n *\n * Copyright (c) 2011 - 2020, Jürg Lehni & Jonathan Puckey\n * http://juerglehni.com/ & https://puckey.studio/\n *\n * Distributed under the MIT license. See LICENSE file for details.\n *\n * All rights reserved.\n *\n * Date: Wed Jul 17 14:57:24 2024 +0200\n *\n ***\n *\n * Straps.js - Class inheritance library with support for bean-style accessors\n *\n * Copyright (c) 2006 - 2020 Jürg Lehni\n * http://juerglehni.com/\n *\n * Distributed under the MIT license.\n *\n ***\n *\n * Acorn.js\n * https://marijnhaverbeke.nl/acorn/\n *\n * Acorn is a tiny, fast JavaScript parser written in JavaScript,\n * created by Marijn Haverbeke and released under an MIT license.\n *\n */\n\nvar paper = function(self, undefined) {\n\nself = self || require('./node/self.js');\nvar window = self.window,\n\tdocument = self.document;\n\nvar Base = new function() {\n\tvar hidden = /^(statics|enumerable|beans|preserve)$/,\n\t\tarray = [],\n\t\tslice = array.slice,\n\t\tcreate = Object.create,\n\t\tdescribe = Object.getOwnPropertyDescriptor,\n\t\tdefine = Object.defineProperty,\n\n\t\tforEach = array.forEach || function(iter, bind) {\n\t\t\tfor (var i = 0, l = this.length; i < l; i++) {\n\t\t\t\titer.call(bind, this[i], i, this);\n\t\t\t}\n\t\t},\n\n\t\tforIn = function(iter, bind) {\n\t\t\tfor (var i in this) {\n\t\t\t\tif (this.hasOwnProperty(i))\n\t\t\t\t\titer.call(bind, this[i], i, this);\n\t\t\t}\n\t\t},\n\n\t\tset = Object.assign || function(dst) {\n\t\t\tfor (var i = 1, l = arguments.length; i < l; i++) {\n\t\t\t\tvar src = arguments[i];\n\t\t\t\tfor (var key in src) {\n\t\t\t\t\tif (src.hasOwnProperty(key))\n\t\t\t\t\t\tdst[key] = src[key];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn dst;\n\t\t},\n\n\t\teach = function(obj, iter, bind) {\n\t\t\tif (obj) {\n\t\t\t\tvar desc = describe(obj, 'length');\n\t\t\t\t(desc && typeof desc.value === 'number' ? forEach : forIn)\n\t\t\t\t\t.call(obj, iter, bind = bind || obj);\n\t\t\t}\n\t\t\treturn bind;\n\t\t};\n\n\tfunction inject(dest, src, enumerable, beans, preserve) {\n\t\tvar beansNames = {};\n\n\t\tfunction field(name, val) {\n\t\t\tval = val || (val = describe(src, name))\n\t\t\t\t\t&& (val.get ? val : val.value);\n\t\t\tif (typeof val === 'string' && val[0] === '#')\n\t\t\t\tval = dest[val.substring(1)] || val;\n\t\t\tvar isFunc = typeof val === 'function',\n\t\t\t\tres = val,\n\t\t\t\tprev = preserve || isFunc && !val.base\n\t\t\t\t\t\t? (val && val.get ? name in dest : dest[name])\n\t\t\t\t\t\t: null,\n\t\t\t\tbean;\n\t\t\tif (!preserve || !prev) {\n\t\t\t\tif (isFunc && prev)\n\t\t\t\t\tval.base = prev;\n\t\t\t\tif (isFunc && beans !== false\n\t\t\t\t\t\t&& (bean = name.match(/^([gs]et|is)(([A-Z])(.*))$/)))\n\t\t\t\t\tbeansNames[bean[3].toLowerCase() + bean[4]] = bean[2];\n\t\t\t\tif (!res || isFunc || !res.get || typeof res.get !== 'function'\n\t\t\t\t\t\t|| !Base.isPlainObject(res)) {\n\t\t\t\t\tres = { value: res, writable: true };\n\t\t\t\t}\n\t\t\t\tif ((describe(dest, name)\n\t\t\t\t\t\t|| { configurable: true }).configurable) {\n\t\t\t\t\tres.configurable = true;\n\t\t\t\t\tres.enumerable = enumerable != null ? enumerable : !bean;\n\t\t\t\t}\n\t\t\t\tdefine(dest, name, res);\n\t\t\t}\n\t\t}\n\t\tif (src) {\n\t\t\tfor (var name in src) {\n\t\t\t\tif (src.hasOwnProperty(name) && !hidden.test(name))\n\t\t\t\t\tfield(name);\n\t\t\t}\n\t\t\tfor (var name in beansNames) {\n\t\t\t\tvar part = beansNames[name],\n\t\t\t\t\tset = dest['set' + part],\n\t\t\t\t\tget = dest['get' + part] || set && dest['is' + part];\n\t\t\t\tif (get && (beans === true || get.length === 0))\n\t\t\t\t\tfield(name, { get: get, set: set });\n\t\t\t}\n\t\t}\n\t\treturn dest;\n\t}\n\n\tfunction Base() {\n\t\tfor (var i = 0, l = arguments.length; i < l; i++) {\n\t\t\tvar src = arguments[i];\n\t\t\tif (src)\n\t\t\t\tset(this, src);\n\t\t}\n\t\treturn this;\n\t}\n\n\treturn inject(Base, {\n\t\tinject: function(src) {\n\t\t\tif (src) {\n\t\t\t\tvar statics = src.statics === true ? src : src.statics,\n\t\t\t\t\tbeans = src.beans,\n\t\t\t\t\tpreserve = src.preserve;\n\t\t\t\tif (statics !== src)\n\t\t\t\t\tinject(this.prototype, src, src.enumerable, beans, preserve);\n\t\t\t\tinject(this, statics, null, beans, preserve);\n\t\t\t}\n\t\t\tfor (var i = 1, l = arguments.length; i < l; i++)\n\t\t\t\tthis.inject(arguments[i]);\n\t\t\treturn this;\n\t\t},\n\n\t\textend: function() {\n\t\t\tvar base = this,\n\t\t\t\tctor,\n\t\t\t\tproto;\n\t\t\tfor (var i = 0, obj, l = arguments.length;\n\t\t\t\t\ti < l && !(ctor && proto); i++) {\n\t\t\t\tobj = arguments[i];\n\t\t\t\tctor = ctor || obj.initialize;\n\t\t\t\tproto = proto || obj.prototype;\n\t\t\t}\n\t\t\tctor = ctor || function() {\n\t\t\t\tbase.apply(this, arguments);\n\t\t\t};\n\t\t\tproto = ctor.prototype = proto || create(this.prototype);\n\t\t\tdefine(proto, 'constructor',\n\t\t\t\t\t{ value: ctor, writable: true, configurable: true });\n\t\t\tinject(ctor, this);\n\t\t\tif (arguments.length)\n\t\t\t\tthis.inject.apply(ctor, arguments);\n\t\t\tctor.base = base;\n\t\t\treturn ctor;\n\t\t}\n\t}).inject({\n\t\tenumerable: false,\n\n\t\tinitialize: Base,\n\n\t\tset: Base,\n\n\t\tinject: function() {\n\t\t\tfor (var i = 0, l = arguments.length; i < l; i++) {\n\t\t\t\tvar src = arguments[i];\n\t\t\t\tif (src) {\n\t\t\t\t\tinject(this, src, src.enumerable, src.beans, src.preserve);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn this;\n\t\t},\n\n\t\textend: function() {\n\t\t\tvar res = create(this);\n\t\t\treturn res.inject.apply(res, arguments);\n\t\t},\n\n\t\teach: function(iter, bind) {\n\t\t\treturn each(this, iter, bind);\n\t\t},\n\n\t\tclone: function() {\n\t\t\treturn new this.constructor(this);\n\t\t},\n\n\t\tstatics: {\n\t\t\tset: set,\n\t\t\teach: each,\n\t\t\tcreate: create,\n\t\t\tdefine: define,\n\t\t\tdescribe: describe,\n\n\t\t\tclone: function(obj) {\n\t\t\t\treturn set(new obj.constructor(), obj);\n\t\t\t},\n\n\t\t\tisPlainObject: function(obj) {\n\t\t\t\tvar ctor = obj != null && obj.constructor;\n\t\t\t\treturn ctor && (ctor === Object || ctor === Base\n\t\t\t\t\t\t|| ctor.name === 'Object');\n\t\t\t},\n\n\t\t\tpick: function(a, b) {\n\t\t\t\treturn a !== undefined ? a : b;\n\t\t\t},\n\n\t\t\tslice: function(list, begin, end) {\n\t\t\t\treturn slice.call(list, begin, end);\n\t\t\t}\n\t\t}\n\t});\n};\n\nif (typeof module !== 'undefined')\n\tmodule.exports = Base;\n\nBase.inject({\n\tenumerable: false,\n\n\ttoString: function() {\n\t\treturn this._id != null\n\t\t\t? (this._class || 'Object') + (this._name\n\t\t\t\t? \" '\" + this._name + \"'\"\n\t\t\t\t: ' @' + this._id)\n\t\t\t: '{ ' + Base.each(this, function(value, key) {\n\t\t\t\tif (!/^_/.test(key)) {\n\t\t\t\t\tvar type = typeof value;\n\t\t\t\t\tthis.push(key + ': ' + (type === 'number'\n\t\t\t\t\t\t\t? Formatter.instance.number(value)\n\t\t\t\t\t\t\t: type === 'string' ? \"'\" + value + \"'\" : value));\n\t\t\t\t}\n\t\t\t}, []).join(', ') + ' }';\n\t},\n\n\tgetClassName: function() {\n\t\treturn this._class || '';\n\t},\n\n\timportJSON: function(json) {\n\t\treturn Base.importJSON(json, this);\n\t},\n\n\texportJSON: function(options) {\n\t\treturn Base.exportJSON(this, options);\n\t},\n\n\ttoJSON: function() {\n\t\treturn Base.serialize(this);\n\t},\n\n\tset: function(props, exclude) {\n\t\tif (props)\n\t\t\tBase.filter(this, props, exclude, this._prioritize);\n\t\treturn this;\n\t}\n}, {\n\nbeans: false,\nstatics: {\n\texports: {},\n\n\textend: function extend() {\n\t\tvar res = extend.base.apply(this, arguments),\n\t\t\tname = res.prototype._class;\n\t\tif (name && !Base.exports[name])\n\t\t\tBase.exports[name] = res;\n\t\treturn res;\n\t},\n\n\tequals: function(obj1, obj2) {\n\t\tif (obj1 === obj2)\n\t\t\treturn true;\n\t\tif (obj1 && obj1.equals)\n\t\t\treturn obj1.equals(obj2);\n\t\tif (obj2 && obj2.equals)\n\t\t\treturn obj2.equals(obj1);\n\t\tif (obj1 && obj2\n\t\t\t\t&& typeof obj1 === 'object' && typeof obj2 === 'object') {\n\t\t\tif (Array.isArray(obj1) && Array.isArray(obj2)) {\n\t\t\t\tvar length = obj1.length;\n\t\t\t\tif (length !== obj2.length)\n\t\t\t\t\treturn false;\n\t\t\t\twhile (length--) {\n\t\t\t\t\tif (!Base.equals(obj1[length], obj2[length]))\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvar keys = Object.keys(obj1),\n\t\t\t\t\tlength = keys.length;\n\t\t\t\tif (length !== Object.keys(obj2).length)\n\t\t\t\t\treturn false;\n\t\t\t\twhile (length--) {\n\t\t\t\t\tvar key = keys[length];\n\t\t\t\t\tif (!(obj2.hasOwnProperty(key)\n\t\t\t\t\t\t\t&& Base.equals(obj1[key], obj2[key])))\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t},\n\n\tread: function(list, start, options, amount) {\n\t\tif (this === Base) {\n\t\t\tvar value = this.peek(list, start);\n\t\t\tlist.__index++;\n\t\t\treturn value;\n\t\t}\n\t\tvar proto = this.prototype,\n\t\t\treadIndex = proto._readIndex,\n\t\t\tbegin = start || readIndex && list.__index || 0,\n\t\t\tlength = list.length,\n\t\t\tobj = list[begin];\n\t\tamount = amount || length - begin;\n\t\tif (obj instanceof this\n\t\t\t|| options && options.readNull && obj == null && amount <= 1) {\n\t\t\tif (readIndex)\n\t\t\t\tlist.__index = begin + 1;\n\t\t\treturn obj && options && options.clone ? obj.clone() : obj;\n\t\t}\n\t\tobj = Base.create(proto);\n\t\tif (readIndex)\n\t\t\tobj.__read = true;\n\t\tobj = obj.initialize.apply(obj, begin > 0 || begin + amount < length\n\t\t\t\t? Base.slice(list, begin, begin + amount)\n\t\t\t\t: list) || obj;\n\t\tif (readIndex) {\n\t\t\tlist.__index = begin + obj.__read;\n\t\t\tvar filtered = obj.__filtered;\n\t\t\tif (filtered) {\n\t\t\t\tlist.__filtered = filtered;\n\t\t\t\tobj.__filtered = undefined;\n\t\t\t}\n\t\t\tobj.__read = undefined;\n\t\t}\n\t\treturn obj;\n\t},\n\n\tpeek: function(list, start) {\n\t\treturn list[list.__index = start || list.__index || 0];\n\t},\n\n\tremain: function(list) {\n\t\treturn list.length - (list.__index || 0);\n\t},\n\n\treadList: function(list, start, options, amount) {\n\t\tvar res = [],\n\t\t\tentry,\n\t\t\tbegin = start || 0,\n\t\t\tend = amount ? begin + amount : list.length;\n\t\tfor (var i = begin; i < end; i++) {\n\t\t\tres.push(Array.isArray(entry = list[i])\n\t\t\t\t\t? this.read(entry, 0, options)\n\t\t\t\t\t: this.read(list, i, options, 1));\n\t\t}\n\t\treturn res;\n\t},\n\n\treadNamed: function(list, name, start, options, amount) {\n\t\tvar value = this.getNamed(list, name),\n\t\t\thasValue = value !== undefined;\n\t\tif (hasValue) {\n\t\t\tvar filtered = list.__filtered;\n\t\t\tif (!filtered) {\n\t\t\t\tvar source = this.getSource(list);\n\t\t\t\tfiltered = list.__filtered = Base.create(source);\n\t\t\t\tfiltered.__unfiltered = source;\n\t\t\t}\n\t\t\tfiltered[name] = undefined;\n\t\t}\n\t\treturn this.read(hasValue ? [value] : list, start, options, amount);\n\t},\n\n\treadSupported: function(list, dest) {\n\t\tvar source = this.getSource(list),\n\t\t\tthat = this,\n\t\t\tread = false;\n\t\tif (source) {\n\t\t\tObject.keys(source).forEach(function(key) {\n\t\t\t\tif (key in dest) {\n\t\t\t\t\tvar value = that.readNamed(list, key);\n\t\t\t\t\tif (value !== undefined) {\n\t\t\t\t\t\tdest[key] = value;\n\t\t\t\t\t}\n\t\t\t\t\tread = true;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn read;\n\t},\n\n\tgetSource: function(list) {\n\t\tvar source = list.__source;\n\t\tif (source === undefined) {\n\t\t\tvar arg = list.length === 1 && list[0];\n\t\t\tsource = list.__source = arg && Base.isPlainObject(arg)\n\t\t\t\t? arg : null;\n\t\t}\n\t\treturn source;\n\t},\n\n\tgetNamed: function(list, name) {\n\t\tvar source = this.getSource(list);\n\t\tif (source) {\n\t\t\treturn name ? source[name] : list.__filtered || source;\n\t\t}\n\t},\n\n\thasNamed: function(list, name) {\n\t\treturn !!this.getNamed(list, name);\n\t},\n\n\tfilter: function(dest, source, exclude, prioritize) {\n\t\tvar processed;\n\n\t\tfunction handleKey(key) {\n\t\t\tif (!(exclude && key in exclude) &&\n\t\t\t\t!(processed && key in processed)) {\n\t\t\t\tvar value = source[key];\n\t\t\t\tif (value !== undefined)\n\t\t\t\t\tdest[key] = value;\n\t\t\t}\n\t\t}\n\n\t\tif (prioritize) {\n\t\t\tvar keys = {};\n\t\t\tfor (var i = 0, key, l = prioritize.length; i < l; i++) {\n\t\t\t\tif ((key = prioritize[i]) in source) {\n\t\t\t\t\thandleKey(key);\n\t\t\t\t\tkeys[key] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprocessed = keys;\n\t\t}\n\n\t\tObject.keys(source.__unfiltered || source).forEach(handleKey);\n\t\treturn dest;\n\t},\n\n\tisPlainValue: function(obj, asString) {\n\t\treturn Base.isPlainObject(obj) || Array.isArray(obj)\n\t\t\t\t|| asString && typeof obj === 'string';\n\t},\n\n\tserialize: function(obj, options, compact, dictionary) {\n\t\toptions = options || {};\n\n\t\tvar isRoot = !dictionary,\n\t\t\tres;\n\t\tif (isRoot) {\n\t\t\toptions.formatter = new Formatter(options.precision);\n\t\t\tdictionary = {\n\t\t\t\tlength: 0,\n\t\t\t\tdefinitions: {},\n\t\t\t\treferences: {},\n\t\t\t\tadd: function(item, create) {\n\t\t\t\t\tvar id = '#' + item._id,\n\t\t\t\t\t\tref = this.references[id];\n\t\t\t\t\tif (!ref) {\n\t\t\t\t\t\tthis.length++;\n\t\t\t\t\t\tvar res = create.call(item),\n\t\t\t\t\t\t\tname = item._class;\n\t\t\t\t\t\tif (name && res[0] !== name)\n\t\t\t\t\t\t\tres.unshift(name);\n\t\t\t\t\t\tthis.definitions[id] = res;\n\t\t\t\t\t\tref = this.references[id] = [id];\n\t\t\t\t\t}\n\t\t\t\t\treturn ref;\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\tif (obj && obj._serialize) {\n\t\t\tres = obj._serialize(options, dictionary);\n\t\t\tvar name = obj._class;\n\t\t\tif (name && !obj._compactSerialize && (isRoot || !compact)\n\t\t\t\t\t&& res[0] !== name) {\n\t\t\t\tres.unshift(name);\n\t\t\t}\n\t\t} else if (Array.isArray(obj)) {\n\t\t\tres = [];\n\t\t\tfor (var i = 0, l = obj.length; i < l; i++)\n\t\t\t\tres[i] = Base.serialize(obj[i], options, compact, dictionary);\n\t\t} else if (Base.isPlainObject(obj)) {\n\t\t\tres = {};\n\t\t\tvar keys = Object.keys(obj);\n\t\t\tfor (var i = 0, l = keys.length; i < l; i++) {\n\t\t\t\tvar key = keys[i];\n\t\t\t\tres[key] = Base.serialize(obj[key], options, compact,\n\t\t\t\t\t\tdictionary);\n\t\t\t}\n\t\t} else if (typeof obj === 'number') {\n\t\t\tres = options.formatter.number(obj, options.precision);\n\t\t} else {\n\t\t\tres = obj;\n\t\t}\n\t\treturn isRoot && dictionary.length > 0\n\t\t\t\t? [['dictionary', dictionary.definitions], res]\n\t\t\t\t: res;\n\t},\n\n\tdeserialize: function(json, create, _data, _setDictionary, _isRoot) {\n\t\tvar res = json,\n\t\t\tisFirst = !_data,\n\t\t\thasDictionary = isFirst && json && json.length\n\t\t\t\t&& json[0][0] === 'dictionary';\n\t\t_data = _data || {};\n\t\tif (Array.isArray(json)) {\n\t\t\tvar type = json[0],\n\t\t\t\tisDictionary = type === 'dictionary';\n\t\t\tif (json.length == 1 && /^#/.test(type)) {\n\t\t\t\treturn _data.dictionary[type];\n\t\t\t}\n\t\t\ttype = Base.exports[type];\n\t\t\tres = [];\n\t\t\tfor (var i = type ? 1 : 0, l = json.length; i < l; i++) {\n\t\t\t\tres.push(Base.deserialize(json[i], create, _data,\n\t\t\t\t\t\tisDictionary, hasDictionary));\n\t\t\t}\n\t\t\tif (type) {\n\t\t\t\tvar args = res;\n\t\t\t\tif (create) {\n\t\t\t\t\tres = create(type, args, isFirst || _isRoot);\n\t\t\t\t} else {\n\t\t\t\t\tres = new type(args);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (Base.isPlainObject(json)) {\n\t\t\tres = {};\n\t\t\tif (_setDictionary)\n\t\t\t\t_data.dictionary = res;\n\t\t\tfor (var key in json)\n\t\t\t\tres[key] = Base.deserialize(json[key], create, _data);\n\t\t}\n\t\treturn hasDictionary ? res[1] : res;\n\t},\n\n\texportJSON: function(obj, options) {\n\t\tvar json = Base.serialize(obj, options);\n\t\treturn options && options.asString == false\n\t\t\t\t? json\n\t\t\t\t: JSON.stringify(json);\n\t},\n\n\timportJSON: function(json, target) {\n\t\treturn Base.deserialize(\n\t\t\t\ttypeof json === 'string' ? JSON.parse(json) : json,\n\t\t\t\tfunction(ctor, args, isRoot) {\n\t\t\t\t\tvar useTarget = isRoot && target\n\t\t\t\t\t\t\t&& target.constructor === ctor,\n\t\t\t\t\t\tobj = useTarget ? target\n\t\t\t\t\t\t\t: Base.create(ctor.prototype);\n\t\t\t\t\tif (args.length === 1 && obj instanceof Item\n\t\t\t\t\t\t\t&& (useTarget || !(obj instanceof Layer))) {\n\t\t\t\t\t\tvar arg = args[0];\n\t\t\t\t\t\tif (Base.isPlainObject(arg)) {\n\t\t\t\t\t\t\targ.insert = false;\n\t\t\t\t\t\t\tif (useTarget) {\n\t\t\t\t\t\t\t\targs = args.concat([Item.INSERT]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t(useTarget ? obj.set : ctor).apply(obj, args);\n\t\t\t\t\tif (useTarget)\n\t\t\t\t\t\ttarget = null;\n\t\t\t\t\treturn obj;\n\t\t\t\t});\n\t},\n\n\tpush: function(list, items) {\n\t\tvar itemsLength = items.length;\n\t\tif (itemsLength < 4096) {\n\t\t\tlist.push.apply(list, items);\n\t\t} else {\n\t\t\tvar startLength = list.length;\n\t\t\tlist.length += itemsLength;\n\t\t\tfor (var i = 0; i < itemsLength; i++) {\n\t\t\t\tlist[startLength + i] = items[i];\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t},\n\n\tsplice: function(list, items, index, remove) {\n\t\tvar amount = items && items.length,\n\t\t\tappend = index === undefined;\n\t\tindex = append ? list.length : index;\n\t\tif (index > list.length)\n\t\t\tindex = list.length;\n\t\tfor (var i = 0; i < amount; i++)\n\t\t\titems[i]._index = index + i;\n\t\tif (append) {\n\t\t\tBase.push(list, items);\n\t\t\treturn [];\n\t\t} else {\n\t\t\tvar args = [index, remove];\n\t\t\tif (items)\n\t\t\t\tBase.push(args, items);\n\t\t\tvar removed = list.splice.apply(list, args);\n\t\t\tfor (var i = 0, l = removed.length; i < l; i++)\n\t\t\t\tremoved[i]._index = undefined;\n\t\t\tfor (var i = index + amount, l = list.length; i < l; i++)\n\t\t\t\tlist[i]._index = i;\n\t\t\treturn removed;\n\t\t}\n\t},\n\n\tcapitalize: function(str) {\n\t\treturn str.replace(/\\b[a-z]/g, function(match) {\n\t\t\treturn match.toUpperCase();\n\t\t});\n\t},\n\n\tcamelize: function(str) {\n\t\treturn str.replace(/-(.)/g, function(match, chr) {\n\t\t\treturn chr.toUpperCase();\n\t\t});\n\t},\n\n\thyphenate: function(str) {\n\t\treturn str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n\t}\n}});\n\nvar Emitter = {\n\ton: function(type, func) {\n\t\tif (typeof type !== 'string') {\n\t\t\tBase.each(type, function(value, key) {\n\t\t\t\tthis.on(key, value);\n\t\t\t}, this);\n\t\t} else {\n\t\t\tvar types = this._eventTypes,\n\t\t\t\tentry = types && types[type],\n\t\t\t\thandlers = this._callbacks = this._callbacks || {};\n\t\t\thandlers = handlers[type] = handlers[type] || [];\n\t\t\tif (handlers.indexOf(func) === -1) {\n\t\t\t\thandlers.push(func);\n\t\t\t\tif (entry && entry.install && handlers.length === 1)\n\t\t\t\t\tentry.install.call(this, type);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t},\n\n\toff: function(type, func) {\n\t\tif (typeof type !== 'string') {\n\t\t\tBase.each(type, function(value, key) {\n\t\t\t\tthis.off(key, value);\n\t\t\t}, this);\n\t\t\treturn;\n\t\t}\n\t\tvar types = this._eventTypes,\n\t\t\tentry = types && types[type],\n\t\t\thandlers = this._callbacks && this._callbacks[type],\n\t\t\tindex;\n\t\tif (handlers) {\n\t\t\tif (!func || (index = handlers.indexOf(func)) !== -1\n\t\t\t\t\t&& handlers.length === 1) {\n\t\t\t\tif (entry && entry.uninstall)\n\t\t\t\t\tentry.uninstall.call(this, type);\n\t\t\t\tdelete this._callbacks[type];\n\t\t\t} else if (index !== -1) {\n\t\t\t\thandlers.splice(index, 1);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t},\n\n\tonce: function(type, func) {\n\t\treturn this.on(type, function handler() {\n\t\t\tfunc.apply(this, arguments);\n\t\t\tthis.off(type, handler);\n\t\t});\n\t},\n\n\temit: function(type, event) {\n\t\tvar handlers = this._callbacks && this._callbacks[type];\n\t\tif (!handlers)\n\t\t\treturn false;\n\t\tvar args = Base.slice(arguments, 1),\n\t\t\tsetTarget = event && event.target && !event.currentTarget;\n\t\thandlers = handlers.slice();\n\t\tif (setTarget)\n\t\t\tevent.currentTarget = this;\n\t\tfor (var i = 0, l = handlers.length; i < l; i++) {\n\t\t\tif (handlers[i].apply(this, args) == false) {\n\t\t\t\tif (event && event.stop)\n\t\t\t\t\tevent.stop();\n\t\t\t\tbreak;\n\t\t }\n\t\t}\n\t\tif (setTarget)\n\t\t\tdelete event.currentTarget;\n\t\treturn true;\n\t},\n\n\tresponds: function(type) {\n\t\treturn !!(this._callbacks && this._callbacks[type]);\n\t},\n\n\tattach: '#on',\n\tdetach: '#off',\n\tfire: '#emit',\n\n\t_installEvents: function(install) {\n\t\tvar types = this._eventTypes,\n\t\t\thandlers = this._callbacks,\n\t\t\tkey = install ? 'install' : 'uninstall';\n\t\tif (types) {\n\t\t\tfor (var type in handlers) {\n\t\t\t\tif (handlers[type].length > 0) {\n\t\t\t\t\tvar entry = types[type],\n\t\t\t\t\t\tfunc = entry && entry[key];\n\t\t\t\t\tif (func)\n\t\t\t\t\t\tfunc.call(this, type);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tstatics: {\n\t\tinject: function inject(src) {\n\t\t\tvar events = src._events;\n\t\t\tif (events) {\n\t\t\t\tvar types = {};\n\t\t\t\tBase.each(events, function(entry, key) {\n\t\t\t\t\tvar isString = typeof entry === 'string',\n\t\t\t\t\t\tname = isString ? entry : key,\n\t\t\t\t\t\tpart = Base.capitalize(name),\n\t\t\t\t\t\ttype = name.substring(2).toLowerCase();\n\t\t\t\t\ttypes[type] = isString ? {} : entry;\n\t\t\t\t\tname = '_' + name;\n\t\t\t\t\tsrc['get' + part] = function() {\n\t\t\t\t\t\treturn this[name];\n\t\t\t\t\t};\n\t\t\t\t\tsrc['set' + part] = function(func) {\n\t\t\t\t\t\tvar prev = this[name];\n\t\t\t\t\t\tif (prev)\n\t\t\t\t\t\t\tthis.off(type, prev);\n\t\t\t\t\t\tif (func)\n\t\t\t\t\t\t\tthis.on(type, func);\n\t\t\t\t\t\tthis[name] = func;\n\t\t\t\t\t};\n\t\t\t\t});\n\t\t\t\tsrc._eventTypes = types;\n\t\t\t}\n\t\t\treturn inject.base.apply(this, arguments);\n\t\t}\n\t}\n};\n\nvar PaperScope = Base.extend({\n\t_class: 'PaperScope',\n\n\tinitialize: function PaperScope() {\n\t\tpaper = this;\n\t\tthis.settings = new Base({\n\t\t\tapplyMatrix: true,\n\t\t\tinsertItems: true,\n\t\t\thandleSize: 4,\n\t\t\thitTolerance: 0\n\t\t});\n\t\tthis.project = null;\n\t\tthis.projects = [];\n\t\tthis.tools = [];\n\t\tthis._id = PaperScope._id++;\n\t\tPaperScope._scopes[this._id] = this;\n\t\tvar proto = PaperScope.prototype;\n\t\tif (!this.support) {\n\t\t\tvar ctx = CanvasProvider.getContext(1, 1) || {};\n\t\t\tproto.support = {\n\t\t\t\tnativeDash: 'setLineDash' in ctx || 'mozDash' in ctx,\n\t\t\t\tnativeBlendModes: BlendMode.nativeModes\n\t\t\t};\n\t\t\tCanvasProvider.release(ctx);\n\t\t}\n\t\tif (!this.agent) {\n\t\t\tvar user = self.navigator.userAgent.toLowerCase(),\n\t\t\t\tos = (/(darwin|win|mac|linux|freebsd|sunos)/.exec(user)||[])[0],\n\t\t\t\tplatform = os === 'darwin' ? 'mac' : os,\n\t\t\t\tagent = proto.agent = proto.browser = { platform: platform };\n\t\t\tif (platform)\n\t\t\t\tagent[platform] = true;\n\t\t\tuser.replace(\n\t\t\t\t/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\\/?\\s*([.\\d]+)(?:.*version\\/([.\\d]+))?(?:.*rv\\:v?([.\\d]+))?/g,\n\t\t\t\tfunction(match, n, v1, v2, rv) {\n\t\t\t\t\tif (!agent.chrome) {\n\t\t\t\t\t\tvar v = n === 'opera' ? v2 :\n\t\t\t\t\t\t\t\t/^(node|trident)$/.test(n) ? rv : v1;\n\t\t\t\t\t\tagent.version = v;\n\t\t\t\t\t\tagent.versionNumber = parseFloat(v);\n\t\t\t\t\t\tn = { trident: 'msie', jsdom: 'node' }[n] || n;\n\t\t\t\t\t\tagent.name = n;\n\t\t\t\t\t\tagent[n] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t\tif (agent.chrome)\n\t\t\t\tdelete agent.webkit;\n\t\t\tif (agent.atom)\n\t\t\t\tdelete agent.chrome;\n\t\t}\n\t},\n\n\tversion: \"0.12.18\",\n\n\tgetView: function() {\n\t\tvar project = this.project;\n\t\treturn project && project._view;\n\t},\n\n\tgetPaper: function() {\n\t\treturn this;\n\t},\n\n\texecute: function(code, options) {\n\t\t\tvar exports = paper.PaperScript.execute(code, this, options);\n\t\t\tView.updateFocus();\n\t\t\treturn exports;\n\t},\n\n\tinstall: function(scope) {\n\t\tvar that = this;\n\t\tBase.each(['project', 'view', 'tool'], function(key) {\n\t\t\tBase.define(scope, key, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tget: function() {\n\t\t\t\t\treturn that[key];\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t\tfor (var key in this)\n\t\t\tif (!/^_/.test(key) && this[key])\n\t\t\t\tscope[key] = this[key];\n\t},\n\n\tsetup: function(element) {\n\t\tpaper = this;\n\t\tthis.project = new Project(element);\n\t\treturn this;\n\t},\n\n\tcreateCanvas: function(width, height) {\n\t\treturn CanvasProvider.getCanvas(width, height);\n\t},\n\n\tactivate: function() {\n\t\tpaper = this;\n\t},\n\n\tclear: function() {\n\t\tvar projects = this.projects,\n\t\t\ttools = this.tools;\n\t\tfor (var i = projects.length - 1; i >= 0; i--)\n\t\t\tprojects[i].remove();\n\t\tfor (var i = tools.length - 1; i >= 0; i--)\n\t\t\ttools[i].remove();\n\t},\n\n\tremove: function() {\n\t\tthis.clear();\n\t\tdelete PaperScope._scopes[this._id];\n\t},\n\n\tstatics: new function() {\n\t\tfunction handleAttribute(name) {\n\t\t\tname += 'Attribute';\n\t\t\treturn function(el, attr) {\n\t\t\t\treturn el[name](attr) || el[name]('data-paper-' + attr);\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\t_scopes: {},\n\t\t\t_id: 0,\n\n\t\t\tget: function(id) {\n\t\t\t\treturn this._scopes[id] || null;\n\t\t\t},\n\n\t\t\tgetAttribute: handleAttribute('get'),\n\t\t\thasAttribute: handleAttribute('has')\n\t\t};\n\t}\n});\n\nvar PaperScopeItem = Base.extend(Emitter, {\n\n\tinitialize: function(activate) {\n\t\tthis._scope = paper;\n\t\tthis._index = this._scope[this._list].push(this) - 1;\n\t\tif (activate || !this._scope[this._reference])\n\t\t\tthis.activate();\n\t},\n\n\tactivate: function() {\n\t\tif (!this._scope)\n\t\t\treturn false;\n\t\tvar prev = this._scope[this._reference];\n\t\tif (prev && prev !== this)\n\t\t\tprev.emit('deactivate');\n\t\tthis._scope[this._reference] = this;\n\t\tthis.emit('activate', prev);\n\t\treturn true;\n\t},\n\n\tisActive: function() {\n\t\treturn this._scope[this._reference] === this;\n\t},\n\n\tremove: function() {\n\t\tif (this._index == null)\n\t\t\treturn false;\n\t\tBase.splice(this._scope[this._list], null, this._index, 1);\n\t\tif (this._scope[this._reference] == this)\n\t\t\tthis._scope[this._reference] = null;\n\t\tthis._scope = null;\n\t\treturn true;\n\t},\n\n\tgetView: function() {\n\t\treturn this._scope.getView();\n\t}\n});\n\nvar CollisionDetection = {\n\tfindItemBoundsCollisions: function(items1, items2, tolerance) {\n\t\tfunction getBounds(items) {\n\t\t\tvar bounds = new Array(items.length);\n\t\t\tfor (var i = 0; i < items.length; i++) {\n\t\t\t\tvar rect = items[i].getBounds();\n\t\t\t\tbounds[i] = [rect.left, rect.top, rect.right, rect.bottom];\n\t\t\t}\n\t\t\treturn bounds;\n\t\t}\n\n\t\tvar bounds1 = getBounds(items1),\n\t\t\tbounds2 = !items2 || items2 === items1\n\t\t\t\t? bounds1\n\t\t\t\t: getBounds(items2);\n\t\treturn this.findBoundsCollisions(bounds1, bounds2, tolerance || 0);\n\t},\n\n\tfindCurveBoundsCollisions: function(curves1, curves2, tolerance, bothAxis) {\n\t\tfunction getBounds(curves) {\n\t\t\tvar min = Math.min,\n\t\t\t\tmax = Math.max,\n\t\t\t\tbounds = new Array(curves.length);\n\t\t\tfor (var i = 0; i < curves.length; i++) {\n\t\t\t\tvar v = curves[i];\n\t\t\t\tbounds[i] = [\n\t\t\t\t\tmin(v[0], v[2], v[4], v[6]),\n\t\t\t\t\tmin(v[1], v[3], v[5], v[7]),\n\t\t\t\t\tmax(v[0], v[2], v[4], v[6]),\n\t\t\t\t\tmax(v[1], v[3], v[5], v[7])\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn bounds;\n\t\t}\n\n\t\tvar bounds1 = getBounds(curves1),\n\t\t\tbounds2 = !curves2 || curves2 === curves1\n\t\t\t\t? bounds1\n\t\t\t\t: getBounds(curves2);\n\t\tif (bothAxis) {\n\t\t\tvar hor = this.findBoundsCollisions(\n\t\t\t\t\tbounds1, bounds2, tolerance || 0, false, true),\n\t\t\t\tver = this.findBoundsCollisions(\n\t\t\t\t\tbounds1, bounds2, tolerance || 0, true, true),\n\t\t\t\tlist = [];\n\t\t\tfor (var i = 0, l = hor.length; i < l; i++) {\n\t\t\t\tlist[i] = { hor: hor[i], ver: ver[i] };\n\t\t\t}\n\t\t\treturn list;\n\t\t}\n\t\treturn this.findBoundsCollisions(bounds1, bounds2, tolerance || 0);\n\t},\n\n\tfindBoundsCollisions: function(boundsA, boundsB, tolerance,\n\t\tsweepVertical, onlySweepAxisCollisions) {\n\t\tvar self = !boundsB || boundsA === boundsB,\n\t\t\tallBounds = self ? boundsA : boundsA.concat(boundsB),\n\t\t\tlengthA = boundsA.length,\n\t\t\tlengthAll = allBounds.length;\n\n\t\tfunction binarySearch(indices, coord, value) {\n\t\t\tvar lo = 0,\n\t\t\t\thi = indices.length;\n\t\t\twhile (lo < hi) {\n\t\t\t\tvar mid = (hi + lo) >>> 1;\n\t\t\t\tif (allBounds[indices[mid]][coord] < value) {\n\t\t\t\t\tlo = mid + 1;\n\t\t\t\t} else {\n\t\t\t\t\thi = mid;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn lo - 1;\n\t\t}\n\n\t\tvar pri0 = sweepVertical ? 1 : 0,\n\t\t\tpri1 = pri0 + 2,\n\t\t\tsec0 = sweepVertical ? 0 : 1,\n\t\t\tsec1 = sec0 + 2;\n\t\tvar allIndicesByPri0 = new Array(lengthAll);\n\t\tfor (var i = 0; i < lengthAll; i++) {\n\t\t\tallIndicesByPri0[i] = i;\n\t\t}\n\t\tallIndicesByPri0.sort(function(i1, i2) {\n\t\t\treturn allBounds[i1][pri0] - allBounds[i2][pri0];\n\t\t});\n\t\tvar activeIndicesByPri1 = [],\n\t\t\tallCollisions = new Array(lengthA);\n\t\tfor (var i = 0; i < lengthAll; i++) {\n\t\t\tvar curIndex = allIndicesByPri0[i],\n\t\t\t\tcurBounds = allBounds[curIndex],\n\t\t\t\torigIndex = self ? curIndex : curIndex - lengthA,\n\t\t\t\tisCurrentA = curIndex < lengthA,\n\t\t\t\tisCurrentB = self || !isCurrentA,\n\t\t\t\tcurCollisions = isCurrentA ? [] : null;\n\t\t\tif (activeIndicesByPri1.length) {\n\t\t\t\tvar pruneCount = binarySearch(activeIndicesByPri1, pri1,\n\t\t\t\t\t\tcurBounds[pri0] - tolerance) + 1;\n\t\t\t\tactiveIndicesByPri1.splice(0, pruneCount);\n\t\t\t\tif (self && onlySweepAxisCollisions) {\n\t\t\t\t\tcurCollisions = curCollisions.concat(activeIndicesByPri1);\n\t\t\t\t\tfor (var j = 0; j < activeIndicesByPri1.length; j++) {\n\t\t\t\t\t\tvar activeIndex = activeIndicesByPri1[j];\n\t\t\t\t\t\tallCollisions[activeIndex].push(origIndex);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvar curSec1 = curBounds[sec1],\n\t\t\t\t\t\tcurSec0 = curBounds[sec0];\n\t\t\t\t\tfor (var j = 0; j < activeIndicesByPri1.length; j++) {\n\t\t\t\t\t\tvar activeIndex = activeIndicesByPri1[j],\n\t\t\t\t\t\t\tactiveBounds = allBounds[activeIndex],\n\t\t\t\t\t\t\tisActiveA = activeIndex < lengthA,\n\t\t\t\t\t\t\tisActiveB = self || activeIndex >= lengthA;\n\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tonlySweepAxisCollisions ||\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\tisCurrentA && isActiveB ||\n\t\t\t\t\t\t\t\tisCurrentB && isActiveA\n\t\t\t\t\t\t\t) && (\n\t\t\t\t\t\t\t\tcurSec1 >= activeBounds[sec0] - tolerance &&\n\t\t\t\t\t\t\t\tcurSec0 <= activeBounds[sec1] + tolerance\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tif (isCurrentA && isActiveB) {\n\t\t\t\t\t\t\t\tcurCollisions.push(\n\t\t\t\t\t\t\t\t\tself ? activeIndex : activeIndex - lengthA);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (isCurrentB && isActiveA) {\n\t\t\t\t\t\t\t\tallCollisions[activeIndex].push(origIndex);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isCurrentA) {\n\t\t\t\tif (boundsA === boundsB) {\n\t\t\t\t\tcurCollisions.push(curIndex);\n\t\t\t\t}\n\t\t\t\tallCollisions[curIndex] = curCollisions;\n\t\t\t}\n\t\t\tif (activeIndicesByPri1.length) {\n\t\t\t\tvar curPri1 = curBounds[pri1],\n\t\t\t\t\tindex = binarySearch(activeIndicesByPri1, pri1, curPri1);\n\t\t\t\tactiveIndicesByPri1.splice(index + 1, 0, curIndex);\n\t\t\t} else {\n\t\t\t\tactiveIndicesByPri1.push(curIndex);\n\t\t\t}\n\t\t}\n\t\tfor (var i = 0; i < allCollisions.length; i++) {\n\t\t\tvar collisions = allCollisions[i];\n\t\t\tif (collisions) {\n\t\t\t\tcollisions.sort(function(i1, i2) { return i1 - i2; });\n\t\t\t}\n\t\t}\n\t\treturn allCollisions;\n\t}\n};\n\nvar Formatter = Base.extend({\n\tinitialize: function(precision) {\n\t\tthis.precision = Base.pick(precision, 5);\n\t\tthis.multiplier = Math.pow(10, this.precision);\n\t},\n\n\tnumber: function(val) {\n\t\treturn this.precision < 16\n\t\t\t\t? Math.round(val * this.multiplier) / this.multiplier : val;\n\t},\n\n\tpair: function(val1, val2, separator) {\n\t\treturn this.number(val1) + (separator || ',') + this.number(val2);\n\t},\n\n\tpoint: function(val, separator) {\n\t\treturn this.number(val.x) + (separator || ',') + this.number(val.y);\n\t},\n\n\tsize: function(val, separator) {\n\t\treturn this.number(val.width) + (separator || ',')\n\t\t\t\t+ this.number(val.height);\n\t},\n\n\trectangle: function(val, separator) {\n\t\treturn this.point(val, separator) + (separator || ',')\n\t\t\t\t+ this.size(val, separator);\n\t}\n});\n\nFormatter.instance = new Formatter();\n\nvar Numerical = new function() {\n\n\tvar abscissas = [\n\t\t[ 0.5773502691896257645091488],\n\t\t[0,0.7745966692414833770358531],\n\t\t[ 0.3399810435848562648026658,0.8611363115940525752239465],\n\t\t[0,0.5384693101056830910363144,0.9061798459386639927976269],\n\t\t[ 0.2386191860831969086305017,0.6612093864662645136613996,0.9324695142031520278123016],\n\t\t[0,0.4058451513773971669066064,0.7415311855993944398638648,0.9491079123427585245261897],\n\t\t[ 0.1834346424956498049394761,0.5255324099163289858177390,0.7966664774136267395915539,0.9602898564975362316835609],\n\t\t[0,0.3242534234038089290385380,0.6133714327005903973087020,0.8360311073266357942994298,0.9681602395076260898355762],\n\t\t[ 0.1488743389816312108848260,0.4333953941292471907992659,0.6794095682990244062343274,0.8650633666889845107320967,0.9739065285171717200779640],\n\t\t[0,0.2695431559523449723315320,0.5190961292068118159257257,0.7301520055740493240934163,0.8870625997680952990751578,0.9782286581460569928039380],\n\t\t[ 0.1252334085114689154724414,0.3678314989981801937526915,0.5873179542866174472967024,0.7699026741943046870368938,0.9041172563704748566784659,0.9815606342467192506905491],\n\t\t[0,0.2304583159551347940655281,0.4484927510364468528779129,0.6423493394403402206439846,0.8015780907333099127942065,0.9175983992229779652065478,0.9841830547185881494728294],\n\t\t[ 0.1080549487073436620662447,0.3191123689278897604356718,0.5152486363581540919652907,0.6872929048116854701480198,0.8272013150697649931897947,0.9284348836635735173363911,0.9862838086968123388415973],\n\t\t[0,0.2011940939974345223006283,0.3941513470775633698972074,0.5709721726085388475372267,0.7244177313601700474161861,0.8482065834104272162006483,0.9372733924007059043077589,0.9879925180204854284895657],\n\t\t[ 0.0950125098376374401853193,0.2816035507792589132304605,0.4580167776572273863424194,0.6178762444026437484466718,0.7554044083550030338951012,0.8656312023878317438804679,0.9445750230732325760779884,0.9894009349916499325961542]\n\t];\n\n\tvar weights = [\n\t\t[1],\n\t\t[0.8888888888888888888888889,0.5555555555555555555555556],\n\t\t[0.6521451548625461426269361,0.3478548451374538573730639],\n\t\t[0.5688888888888888888888889,0.4786286704993664680412915,0.2369268850561890875142640],\n\t\t[0.4679139345726910473898703,0.3607615730481386075698335,0.1713244923791703450402961],\n\t\t[0.4179591836734693877551020,0.3818300505051189449503698,0.2797053914892766679014678,0.1294849661688696932706114],\n\t\t[0.3626837833783619829651504,0.3137066458778872873379622,0.2223810344533744705443560,0.1012285362903762591525314],\n\t\t[0.3302393550012597631645251,0.3123470770400028400686304,0.2606106964029354623187429,0.1806481606948574040584720,0.0812743883615744119718922],\n\t\t[0.2955242247147528701738930,0.2692667193099963550912269,0.2190863625159820439955349,0.1494513491505805931457763,0.0666713443086881375935688],\n\t\t[0.2729250867779006307144835,0.2628045445102466621806889,0.2331937645919904799185237,0.1862902109277342514260976,0.1255803694649046246346943,0.0556685671161736664827537],\n\t\t[0.2491470458134027850005624,0.2334925365383548087608499,0.2031674267230659217490645,0.1600783285433462263346525,0.1069393259953184309602547,0.0471753363865118271946160],\n\t\t[0.2325515532308739101945895,0.2262831802628972384120902,0.2078160475368885023125232,0.1781459807619457382800467,0.1388735102197872384636018,0.0921214998377284479144218,0.0404840047653158795200216],\n\t\t[0.2152638534631577901958764,0.2051984637212956039659241,0.1855383974779378137417166,0.1572031671581935345696019,0.1215185706879031846894148,0.0801580871597602098056333,0.0351194603317518630318329],\n\t\t[0.2025782419255612728806202,0.1984314853271115764561183,0.1861610000155622110268006,0.1662692058169939335532009,0.1395706779261543144478048,0.1071592204671719350118695,0.0703660474881081247092674,0.0307532419961172683546284],\n\t\t[0.1894506104550684962853967,0.1826034150449235888667637,0.1691565193950025381893121,0.1495959888165767320815017,0.1246289712555338720524763,0.0951585116824927848099251,0.0622535239386478928628438,0.0271524594117540948517806]\n\t];\n\n\tvar abs = Math.abs,\n\t\tsqrt = Math.sqrt,\n\t\tpow = Math.pow,\n\t\tlog2 = Math.log2 || function(x) {\n\t\t\treturn Math.log(x) * Math.LOG2E;\n\t\t},\n\t\tEPSILON = 1e-12,\n\t\tMACHINE_EPSILON = 1.12e-16;\n\n\tfunction clamp(value, min, max) {\n\t\treturn value < min ? min : value > max ? max : value;\n\t}\n\n\tfunction getDiscriminant(a, b, c) {\n\t\tfunction split(v) {\n\t\t\tvar x = v * 134217729,\n\t\t\t\ty = v - x,\n\t\t\t\thi = y + x,\n\t\t\t\tlo = v - hi;\n\t\t\treturn [hi, lo];\n\t\t}\n\n\t\tvar D = b * b - a * c,\n\t\t\tE = b * b + a * c;\n\t\tif (abs(D) * 3 < E) {\n\t\t\tvar ad = split(a),\n\t\t\t\tbd = split(b),\n\t\t\t\tcd = split(c),\n\t\t\t\tp = b * b,\n\t\t\t\tdp = (bd[0] * bd[0] - p + 2 * bd[0] * bd[1]) + bd[1] * bd[1],\n\t\t\t\tq = a * c,\n\t\t\t\tdq = (ad[0] * cd[0] - q + ad[0] * cd[1] + ad[1] * cd[0])\n\t\t\t\t\t\t+ ad[1] * cd[1];\n\t\t\tD = (p - q) + (dp - dq);\n\t\t}\n\t\treturn D;\n\t}\n\n\tfunction getNormalizationFactor() {\n\t\tvar norm = Math.max.apply(Math, arguments);\n\t\treturn norm && (norm < 1e-8 || norm > 1e8)\n\t\t\t\t? pow(2, -Math.round(log2(norm)))\n\t\t\t\t: 0;\n\t}\n\n\treturn {\n\t\tEPSILON: EPSILON,\n\t\tMACHINE_EPSILON: MACHINE_EPSILON,\n\t\tCURVETIME_EPSILON: 1e-8,\n\t\tGEOMETRIC_EPSILON: 1e-7,\n\t\tTRIGONOMETRIC_EPSILON: 1e-8,\n\t\tANGULAR_EPSILON: 1e-5,\n\t\tKAPPA: 4 * (sqrt(2) - 1) / 3,\n\n\t\tisZero: function(val) {\n\t\t\treturn val >= -EPSILON && val <= EPSILON;\n\t\t},\n\n\t\tisMachineZero: function(val) {\n\t\t\treturn val >= -MACHINE_EPSILON && val <= MACHINE_EPSILON;\n\t\t},\n\n\t\tclamp: clamp,\n\n\t\tintegrate: function(f, a, b, n) {\n\t\t\tvar x = abscissas[n - 2],\n\t\t\t\tw = weights[n - 2],\n\t\t\t\tA = (b - a) * 0.5,\n\t\t\t\tB = A + a,\n\t\t\t\ti = 0,\n\t\t\t\tm = (n + 1) >> 1,\n\t\t\t\tsum = n & 1 ? w[i++] * f(B) : 0;\n\t\t\twhile (i < m) {\n\t\t\t\tvar Ax = A * x[i];\n\t\t\t\tsum += w[i++] * (f(B + Ax) + f(B - Ax));\n\t\t\t}\n\t\t\treturn A * sum;\n\t\t},\n\n\t\tfindRoot: function(f, df, x, a, b, n, tolerance) {\n\t\t\tfor (var i = 0; i < n; i++) {\n\t\t\t\tvar fx = f(x),\n\t\t\t\t\tdx = fx / df(x),\n\t\t\t\t\tnx = x - dx;\n\t\t\t\tif (abs(dx) < tolerance) {\n\t\t\t\t\tx = nx;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (fx > 0) {\n\t\t\t\t\tb = x;\n\t\t\t\t\tx = nx <= a ? (a + b) * 0.5 : nx;\n\t\t\t\t} else {\n\t\t\t\t\ta = x;\n\t\t\t\t\tx = nx >= b ? (a + b) * 0.5 : nx;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn clamp(x, a, b);\n\t\t},\n\n\t\tsolveQuadratic: function(a, b, c, roots, min, max) {\n\t\t\tvar x1, x2 = Infinity;\n\t\t\tif (abs(a) < EPSILON) {\n\t\t\t\tif (abs(b) < EPSILON)\n\t\t\t\t\treturn abs(c) < EPSILON ? -1 : 0;\n\t\t\t\tx1 = -c / b;\n\t\t\t} else {\n\t\t\t\tb *= -0.5;\n\t\t\t\tvar D = getDiscriminant(a, b, c);\n\t\t\t\tif (D && abs(D) < MACHINE_EPSILON) {\n\t\t\t\t\tvar f = getNormalizationFactor(abs(a), abs(b), abs(c));\n\t\t\t\t\tif (f) {\n\t\t\t\t\t\ta *= f;\n\t\t\t\t\t\tb *= f;\n\t\t\t\t\t\tc *= f;\n\t\t\t\t\t\tD = getDiscriminant(a, b, c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (D >= -MACHINE_EPSILON) {\n\t\t\t\t\tvar Q = D < 0 ? 0 : sqrt(D),\n\t\t\t\t\t\tR = b + (b < 0 ? -Q : Q);\n\t\t\t\t\tif (R === 0) {\n\t\t\t\t\t\tx1 = c / a;\n\t\t\t\t\t\tx2 = -x1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tx1 = R / a;\n\t\t\t\t\t\tx2 = c / R;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar count = 0,\n\t\t\t\tboundless = min == null,\n\t\t\t\tminB = min - EPSILON,\n\t\t\t\tmaxB = max + EPSILON;\n\t\t\tif (isFinite(x1) && (boundless || x1 > minB && x1 < maxB))\n\t\t\t\troots[count++] = boundless ? x1 : clamp(x1, min, max);\n\t\t\tif (x2 !== x1\n\t\t\t\t\t&& isFinite(x2) && (boundless || x2 > minB && x2 < maxB))\n\t\t\t\troots[count++] = boundless ? x2 : clamp(x2, min, max);\n\t\t\treturn count;\n\t\t},\n\n\t\tsolveCubic: function(a, b, c, d, roots, min, max) {\n\t\t\tvar f = getNormalizationFactor(abs(a), abs(b), abs(c), abs(d)),\n\t\t\t\tx, b1, c2, qd, q;\n\t\t\tif (f) {\n\t\t\t\ta *= f;\n\t\t\t\tb *= f;\n\t\t\t\tc *= f;\n\t\t\t\td *= f;\n\t\t\t}\n\n\t\t\tfunction evaluate(x0) {\n\t\t\t\tx = x0;\n\t\t\t\tvar tmp = a * x;\n\t\t\t\tb1 = tmp + b;\n\t\t\t\tc2 = b1 * x + c;\n\t\t\t\tqd = (tmp + b1) * x + c2;\n\t\t\t\tq = c2 * x + d;\n\t\t\t}\n\n\t\t\tif (abs(a) < EPSILON) {\n\t\t\t\ta = b;\n\t\t\t\tb1 = c;\n\t\t\t\tc2 = d;\n\t\t\t\tx = Infinity;\n\t\t\t} else if (abs(d) < EPSILON) {\n\t\t\t\tb1 = b;\n\t\t\t\tc2 = c;\n\t\t\t\tx = 0;\n\t\t\t} else {\n\t\t\t\tevaluate(-(b / a) / 3);\n\t\t\t\tvar t = q / a,\n\t\t\t\t\tr = pow(abs(t), 1/3),\n\t\t\t\t\ts = t < 0 ? -1 : 1,\n\t\t\t\t\ttd = -qd / a,\n\t\t\t\t\trd = td > 0 ? 1.324717957244746 * Math.max(r, sqrt(td)) : r,\n\t\t\t\t\tx0 = x - s * rd;\n\t\t\t\tif (x0 !== x) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tevaluate(x0);\n\t\t\t\t\t\tx0 = qd === 0 ? x : x - q / qd / (1 + MACHINE_EPSILON);\n\t\t\t\t\t} while (s * x0 > s * x);\n\t\t\t\t\tif (abs(a) * x * x > abs(d / x)) {\n\t\t\t\t\t\tc2 = -d / x;\n\t\t\t\t\t\tb1 = (c2 - c) / x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar count = Numerical.solveQuadratic(a, b1, c2, roots, min, max),\n\t\t\t\tboundless = min == null;\n\t\t\tif (isFinite(x) && (count === 0\n\t\t\t\t\t|| count > 0 && x !== roots[0] && x !== roots[1])\n\t\t\t\t\t&& (boundless || x > min - EPSILON && x < max + EPSILON))\n\t\t\t\troots[count++] = boundless ? x : clamp(x, min, max);\n\t\t\treturn count;\n\t\t}\n\t};\n};\n\nvar UID = {\n\t_id: 1,\n\t_pools: {},\n\n\tget: function(name) {\n\t\tif (name) {\n\t\t\tvar pool = this._pools[name];\n\t\t\tif (!pool)\n\t\t\t\tpool = this._pools[name] = { _id: 1 };\n\t\t\treturn pool._id++;\n\t\t} else {\n\t\t\treturn this._id++;\n\t\t}\n\t}\n};\n\nvar Point = Base.extend({\n\t_class: 'Point',\n\t_readIndex: true,\n\n\tinitialize: function Point(arg0, arg1) {\n\t\tvar type = typeof arg0,\n\t\t\treading = this.__read,\n\t\t\tread = 0;\n\t\tif (type === 'number') {\n\t\t\tvar hasY = typeof arg1 === 'number';\n\t\t\tthis._set(arg0, hasY ? arg1 : arg0);\n\t\t\tif (reading)\n\t\t\t\tread = hasY ? 2 : 1;\n\t\t} else if (type === 'undefined' || arg0 === null) {\n\t\t\tthis._set(0, 0);\n\t\t\tif (reading)\n\t\t\t\tread = arg0 === null ? 1 : 0;\n\t\t} else {\n\t\t\tvar obj = type === 'string' ? arg0.split(/[\\s,]+/) || [] : arg0;\n\t\t\tread = 1;\n\t\t\tif (Array.isArray(obj)) {\n\t\t\t\tthis._set(+obj[0], +(obj.length > 1 ? obj[1] : obj[0]));\n\t\t\t} else if ('x' in obj) {\n\t\t\t\tthis._set(obj.x || 0, obj.y || 0);\n\t\t\t} else if ('width' in obj) {\n\t\t\t\tthis._set(obj.width || 0, obj.height || 0);\n\t\t\t} else if ('angle' in obj) {\n\t\t\t\tthis._set(obj.length || 0, 0);\n\t\t\t\tthis.setAngle(obj.angle || 0);\n\t\t\t} else {\n\t\t\t\tthis._set(0, 0);\n\t\t\t\tread = 0;\n\t\t\t}\n\t\t}\n\t\tif (reading)\n\t\t\tthis.__read = read;\n\t\treturn this;\n\t},\n\n\tset: '#initialize',\n\n\t_set: function(x, y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\treturn this;\n\t},\n\n\tequals: function(point) {\n\t\treturn this === point || point\n\t\t\t\t&& (this.x === point.x && this.y === point.y\n\t\t\t\t\t|| Array.isArray(point)\n\t\t\t\t\t\t&& this.x === point[0] && this.y === point[1])\n\t\t\t\t|| false;\n\t},\n\n\tclone: function() {\n\t\treturn new Point(this.x, this.y);\n\t},\n\n\ttoString: function() {\n\t\tvar f = Formatter.instance;\n\t\treturn '{ x: ' + f.number(this.x) + ', y: ' + f.number(this.y) + ' }';\n\t},\n\n\t_serialize: function(options) {\n\t\tvar f = options.formatter;\n\t\treturn [f.number(this.x), f.number(this.y)];\n\t},\n\n\tgetLength: function() {\n\t\treturn Math.sqrt(this.x * this.x + this.y * this.y);\n\t},\n\n\tsetLength: function(length) {\n\t\tif (this.isZero()) {\n\t\t\tvar angle = this._angle || 0;\n\t\t\tthis._set(\n\t\t\t\tMath.cos(angle) * length,\n\t\t\t\tMath.sin(angle) * length\n\t\t\t);\n\t\t} else {\n\t\t\tvar scale = length / this.getLength();\n\t\t\tif (Numerical.isZero(scale))\n\t\t\t\tthis.getAngle();\n\t\t\tthis._set(\n\t\t\t\tthis.x * scale,\n\t\t\t\tthis.y * scale\n\t\t\t);\n\t\t}\n\t},\n\tgetAngle: function() {\n\t\treturn this.getAngleInRadians.apply(this, arguments) * 180 / Math.PI;\n\t},\n\n\tsetAngle: function(angle) {\n\t\tthis.setAngleInRadians.call(this, angle * Math.PI / 180);\n\t},\n\n\tgetAngleInDegrees: '#getAngle',\n\tsetAngleInDegrees: '#setAngle',\n\n\tgetAngleInRadians: function() {\n\t\tif (!arguments.length) {\n\t\t\treturn this.isZero()\n\t\t\t\t\t? this._angle || 0\n\t\t\t\t\t: this._angle = Math.atan2(this.y, this.x);\n\t\t} else {\n\t\t\tvar point = Point.read(arguments),\n\t\t\t\tdiv = this.getLength() * point.getLength();\n\t\t\tif (Numerical.isZero(div)) {\n\t\t\t\treturn NaN;\n\t\t\t} else {\n\t\t\t\tvar a = this.dot(point) / div;\n\t\t\t\treturn Math.acos(a < -1 ? -1 : a > 1 ? 1 : a);\n\t\t\t}\n\t\t}\n\t},\n\n\tsetAngleInRadians: function(angle) {\n\t\tthis._angle = angle;\n\t\tif (!this.isZero()) {\n\t\t\tvar length = this.getLength();\n\t\t\tthis._set(\n\t\t\t\tMath.cos(angle) * length,\n\t\t\t\tMath.sin(angle) * length\n\t\t\t);\n\t\t}\n\t},\n\n\tgetQuadrant: function() {\n\t\treturn this.x >= 0 ? this.y >= 0 ? 1 : 4 : this.y >= 0 ? 2 : 3;\n\t}\n}, {\n\tbeans: false,\n\n\tgetDirectedAngle: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn Math.atan2(this.cross(point), this.dot(point)) * 180 / Math.PI;\n\t},\n\n\tgetDistance: function() {\n\t\tvar args = arguments,\n\t\t\tpoint = Point.read(args),\n\t\t\tx = point.x - this.x,\n\t\t\ty = point.y - this.y,\n\t\t\td = x * x + y * y,\n\t\t\tsquared = Base.read(args);\n\t\treturn squared ? d : Math.sqrt(d);\n\t},\n\n\tnormalize: function(length) {\n\t\tif (length === undefined)\n\t\t\tlength = 1;\n\t\tvar current = this.getLength(),\n\t\t\tscale = current !== 0 ? length / current : 0,\n\t\t\tpoint = new Point(this.x * scale, this.y * scale);\n\t\tif (scale >= 0)\n\t\t\tpoint._angle = this._angle;\n\t\treturn point;\n\t},\n\n\trotate: function(angle, center) {\n\t\tif (angle === 0)\n\t\t\treturn this.clone();\n\t\tangle = angle * Math.PI / 180;\n\t\tvar point = center ? this.subtract(center) : this,\n\t\t\tsin = Math.sin(angle),\n\t\t\tcos = Math.cos(angle);\n\t\tpoint = new Point(\n\t\t\tpoint.x * cos - point.y * sin,\n\t\t\tpoint.x * sin + point.y * cos\n\t\t);\n\t\treturn center ? point.add(center) : point;\n\t},\n\n\ttransform: function(matrix) {\n\t\treturn matrix ? matrix._transformPoint(this) : this;\n\t},\n\n\tadd: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn new Point(this.x + point.x, this.y + point.y);\n\t},\n\n\tsubtract: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn new Point(this.x - point.x, this.y - point.y);\n\t},\n\n\tmultiply: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn new Point(this.x * point.x, this.y * point.y);\n\t},\n\n\tdivide: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn new Point(this.x / point.x, this.y / point.y);\n\t},\n\n\tmodulo: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn new Point(this.x % point.x, this.y % point.y);\n\t},\n\n\tnegate: function() {\n\t\treturn new Point(-this.x, -this.y);\n\t},\n\n\tisInside: function() {\n\t\treturn Rectangle.read(arguments).contains(this);\n\t},\n\n\tisClose: function() {\n\t\tvar args = arguments,\n\t\t\tpoint = Point.read(args),\n\t\t\ttolerance = Base.read(args);\n\t\treturn this.getDistance(point) <= tolerance;\n\t},\n\n\tisCollinear: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn Point.isCollinear(this.x, this.y, point.x, point.y);\n\t},\n\n\tisColinear: '#isCollinear',\n\n\tisOrthogonal: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn Point.isOrthogonal(this.x, this.y, point.x, point.y);\n\t},\n\n\tisZero: function() {\n\t\tvar isZero = Numerical.isZero;\n\t\treturn isZero(this.x) && isZero(this.y);\n\t},\n\n\tisNaN: function() {\n\t\treturn isNaN(this.x) || isNaN(this.y);\n\t},\n\n\tisInQuadrant: function(q) {\n\t\treturn this.x * (q > 1 && q < 4 ? -1 : 1) >= 0\n\t\t\t&& this.y * (q > 2 ? -1 : 1) >= 0;\n\t},\n\n\tdot: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn this.x * point.x + this.y * point.y;\n\t},\n\n\tcross: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn this.x * point.y - this.y * point.x;\n\t},\n\n\tproject: function() {\n\t\tvar point = Point.read(arguments),\n\t\t\tscale = point.isZero() ? 0 : this.dot(point) / point.dot(point);\n\t\treturn new Point(\n\t\t\tpoint.x * scale,\n\t\t\tpoint.y * scale\n\t\t);\n\t},\n\n\tstatics: {\n\t\tmin: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tpoint1 = Point.read(args),\n\t\t\t\tpoint2 = Point.read(args);\n\t\t\treturn new Point(\n\t\t\t\tMath.min(point1.x, point2.x),\n\t\t\t\tMath.min(point1.y, point2.y)\n\t\t\t);\n\t\t},\n\n\t\tmax: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tpoint1 = Point.read(args),\n\t\t\t\tpoint2 = Point.read(args);\n\t\t\treturn new Point(\n\t\t\t\tMath.max(point1.x, point2.x),\n\t\t\t\tMath.max(point1.y, point2.y)\n\t\t\t);\n\t\t},\n\n\t\trandom: function() {\n\t\t\treturn new Point(Math.random(), Math.random());\n\t\t},\n\n\t\tisCollinear: function(x1, y1, x2, y2) {\n\t\t\treturn Math.abs(x1 * y2 - y1 * x2)\n\t\t\t\t\t<= Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2))\n\t\t\t\t\t\t* 1e-8;\n\t\t},\n\n\t\tisOrthogonal: function(x1, y1, x2, y2) {\n\t\t\treturn Math.abs(x1 * x2 + y1 * y2)\n\t\t\t\t\t<= Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2))\n\t\t\t\t\t\t* 1e-8;\n\t\t}\n\t}\n}, Base.each(['round', 'ceil', 'floor', 'abs'], function(key) {\n\tvar op = Math[key];\n\tthis[key] = function() {\n\t\treturn new Point(op(this.x), op(this.y));\n\t};\n}, {}));\n\nvar LinkedPoint = Point.extend({\n\tinitialize: function Point(x, y, owner, setter) {\n\t\tthis._x = x;\n\t\tthis._y = y;\n\t\tthis._owner = owner;\n\t\tthis._setter = setter;\n\t},\n\n\t_set: function(x, y, _dontNotify) {\n\t\tthis._x = x;\n\t\tthis._y = y;\n\t\tif (!_dontNotify)\n\t\t\tthis._owner[this._setter](this);\n\t\treturn this;\n\t},\n\n\tgetX: function() {\n\t\treturn this._x;\n\t},\n\n\tsetX: function(x) {\n\t\tthis._x = x;\n\t\tthis._owner[this._setter](this);\n\t},\n\n\tgetY: function() {\n\t\treturn this._y;\n\t},\n\n\tsetY: function(y) {\n\t\tthis._y = y;\n\t\tthis._owner[this._setter](this);\n\t},\n\n\tisSelected: function() {\n\t\treturn !!(this._owner._selection & this._getSelection());\n\t},\n\n\tsetSelected: function(selected) {\n\t\tthis._owner._changeSelection(this._getSelection(), selected);\n\t},\n\n\t_getSelection: function() {\n\t\treturn this._setter === 'setPosition' ? 4 : 0;\n\t}\n});\n\nvar Size = Base.extend({\n\t_class: 'Size',\n\t_readIndex: true,\n\n\tinitialize: function Size(arg0, arg1) {\n\t\tvar type = typeof arg0,\n\t\t\treading = this.__read,\n\t\t\tread = 0;\n\t\tif (type === 'number') {\n\t\t\tvar hasHeight = typeof arg1 === 'number';\n\t\t\tthis._set(arg0, hasHeight ? arg1 : arg0);\n\t\t\tif (reading)\n\t\t\t\tread = hasHeight ? 2 : 1;\n\t\t} else if (type === 'undefined' || arg0 === null) {\n\t\t\tthis._set(0, 0);\n\t\t\tif (reading)\n\t\t\t\tread = arg0 === null ? 1 : 0;\n\t\t} else {\n\t\t\tvar obj = type === 'string' ? arg0.split(/[\\s,]+/) || [] : arg0;\n\t\t\tread = 1;\n\t\t\tif (Array.isArray(obj)) {\n\t\t\t\tthis._set(+obj[0], +(obj.length > 1 ? obj[1] : obj[0]));\n\t\t\t} else if ('width' in obj) {\n\t\t\t\tthis._set(obj.width || 0, obj.height || 0);\n\t\t\t} else if ('x' in obj) {\n\t\t\t\tthis._set(obj.x || 0, obj.y || 0);\n\t\t\t} else {\n\t\t\t\tthis._set(0, 0);\n\t\t\t\tread = 0;\n\t\t\t}\n\t\t}\n\t\tif (reading)\n\t\t\tthis.__read = read;\n\t\treturn this;\n\t},\n\n\tset: '#initialize',\n\n\t_set: function(width, height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\treturn this;\n\t},\n\n\tequals: function(size) {\n\t\treturn size === this || size && (this.width === size.width\n\t\t\t\t&& this.height === size.height\n\t\t\t\t|| Array.isArray(size) && this.width === size[0]\n\t\t\t\t\t&& this.height === size[1]) || false;\n\t},\n\n\tclone: function() {\n\t\treturn new Size(this.width, this.height);\n\t},\n\n\ttoString: function() {\n\t\tvar f = Formatter.instance;\n\t\treturn '{ width: ' + f.number(this.width)\n\t\t\t\t+ ', height: ' + f.number(this.height) + ' }';\n\t},\n\n\t_serialize: function(options) {\n\t\tvar f = options.formatter;\n\t\treturn [f.number(this.width),\n\t\t\t\tf.number(this.height)];\n\t},\n\n\tadd: function() {\n\t\tvar size = Size.read(arguments);\n\t\treturn new Size(this.width + size.width, this.height + size.height);\n\t},\n\n\tsubtract: function() {\n\t\tvar size = Size.read(arguments);\n\t\treturn new Size(this.width - size.width, this.height - size.height);\n\t},\n\n\tmultiply: function() {\n\t\tvar size = Size.read(arguments);\n\t\treturn new Size(this.width * size.width, this.height * size.height);\n\t},\n\n\tdivide: function() {\n\t\tvar size = Size.read(arguments);\n\t\treturn new Size(this.width / size.width, this.height / size.height);\n\t},\n\n\tmodulo: function() {\n\t\tvar size = Size.read(arguments);\n\t\treturn new Size(this.width % size.width, this.height % size.height);\n\t},\n\n\tnegate: function() {\n\t\treturn new Size(-this.width, -this.height);\n\t},\n\n\tisZero: function() {\n\t\tvar isZero = Numerical.isZero;\n\t\treturn isZero(this.width) && isZero(this.height);\n\t},\n\n\tisNaN: function() {\n\t\treturn isNaN(this.width) || isNaN(this.height);\n\t},\n\n\tstatics: {\n\t\tmin: function(size1, size2) {\n\t\t\treturn new Size(\n\t\t\t\tMath.min(size1.width, size2.width),\n\t\t\t\tMath.min(size1.height, size2.height));\n\t\t},\n\n\t\tmax: function(size1, size2) {\n\t\t\treturn new Size(\n\t\t\t\tMath.max(size1.width, size2.width),\n\t\t\t\tMath.max(size1.height, size2.height));\n\t\t},\n\n\t\trandom: function() {\n\t\t\treturn new Size(Math.random(), Math.random());\n\t\t}\n\t}\n}, Base.each(['round', 'ceil', 'floor', 'abs'], function(key) {\n\tvar op = Math[key];\n\tthis[key] = function() {\n\t\treturn new Size(op(this.width), op(this.height));\n\t};\n}, {}));\n\nvar LinkedSize = Size.extend({\n\tinitialize: function Size(width, height, owner, setter) {\n\t\tthis._width = width;\n\t\tthis._height = height;\n\t\tthis._owner = owner;\n\t\tthis._setter = setter;\n\t},\n\n\t_set: function(width, height, _dontNotify) {\n\t\tthis._width = width;\n\t\tthis._height = height;\n\t\tif (!_dontNotify)\n\t\t\tthis._owner[this._setter](this);\n\t\treturn this;\n\t},\n\n\tgetWidth: function() {\n\t\treturn this._width;\n\t},\n\n\tsetWidth: function(width) {\n\t\tthis._width = width;\n\t\tthis._owner[this._setter](this);\n\t},\n\n\tgetHeight: function() {\n\t\treturn this._height;\n\t},\n\n\tsetHeight: function(height) {\n\t\tthis._height = height;\n\t\tthis._owner[this._setter](this);\n\t}\n});\n\nvar Rectangle = Base.extend({\n\t_class: 'Rectangle',\n\t_readIndex: true,\n\tbeans: true,\n\n\tinitialize: function Rectangle(arg0, arg1, arg2, arg3) {\n\t\tvar args = arguments,\n\t\t\ttype = typeof arg0,\n\t\t\tread;\n\t\tif (type === 'number') {\n\t\t\tthis._set(arg0, arg1, arg2, arg3);\n\t\t\tread = 4;\n\t\t} else if (type === 'undefined' || arg0 === null) {\n\t\t\tthis._set(0, 0, 0, 0);\n\t\t\tread = arg0 === null ? 1 : 0;\n\t\t} else if (args.length === 1) {\n\t\t\tif (Array.isArray(arg0)) {\n\t\t\t\tthis._set.apply(this, arg0);\n\t\t\t\tread = 1;\n\t\t\t} else if (arg0.x !== undefined || arg0.width !== undefined) {\n\t\t\t\tthis._set(arg0.x || 0, arg0.y || 0,\n\t\t\t\t\t\targ0.width || 0, arg0.height || 0);\n\t\t\t\tread = 1;\n\t\t\t} else if (arg0.from === undefined && arg0.to === undefined) {\n\t\t\t\tthis._set(0, 0, 0, 0);\n\t\t\t\tif (Base.readSupported(args, this)) {\n\t\t\t\t\tread = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (read === undefined) {\n\t\t\tvar frm = Point.readNamed(args, 'from'),\n\t\t\t\tnext = Base.peek(args),\n\t\t\t\tx = frm.x,\n\t\t\t\ty = frm.y,\n\t\t\t\twidth,\n\t\t\t\theight;\n\t\t\tif (next && next.x !== undefined || Base.hasNamed(args, 'to')) {\n\t\t\t\tvar to = Point.readNamed(args, 'to');\n\t\t\t\twidth = to.x - x;\n\t\t\t\theight = to.y - y;\n\t\t\t\tif (width < 0) {\n\t\t\t\t\tx = to.x;\n\t\t\t\t\twidth = -width;\n\t\t\t\t}\n\t\t\t\tif (height < 0) {\n\t\t\t\t\ty = to.y;\n\t\t\t\t\theight = -height;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvar size = Size.read(args);\n\t\t\t\twidth = size.width;\n\t\t\t\theight = size.height;\n\t\t\t}\n\t\t\tthis._set(x, y, width, height);\n\t\t\tread = args.__index;\n\t\t}\n\t\tvar filtered = args.__filtered;\n\t\tif (filtered)\n\t\t\tthis.__filtered = filtered;\n\t\tif (this.__read)\n\t\t\tthis.__read = read;\n\t\treturn this;\n\t},\n\n\tset: '#initialize',\n\n\t_set: function(x, y, width, height) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\treturn this;\n\t},\n\n\tclone: function() {\n\t\treturn new Rectangle(this.x, this.y, this.width, this.height);\n\t},\n\n\tequals: function(rect) {\n\t\tvar rt = Base.isPlainValue(rect)\n\t\t\t\t? Rectangle.read(arguments)\n\t\t\t\t: rect;\n\t\treturn rt === this\n\t\t\t\t|| rt && this.x === rt.x && this.y === rt.y\n\t\t\t\t\t&& this.width === rt.width && this.height === rt.height\n\t\t\t\t|| false;\n\t},\n\n\ttoString: function() {\n\t\tvar f = Formatter.instance;\n\t\treturn '{ x: ' + f.number(this.x)\n\t\t\t\t+ ', y: ' + f.number(this.y)\n\t\t\t\t+ ', width: ' + f.number(this.width)\n\t\t\t\t+ ', height: ' + f.number(this.height)\n\t\t\t\t+ ' }';\n\t},\n\n\t_serialize: function(options) {\n\t\tvar f = options.formatter;\n\t\treturn [f.number(this.x),\n\t\t\t\tf.number(this.y),\n\t\t\t\tf.number(this.width),\n\t\t\t\tf.number(this.height)];\n\t},\n\n\tgetPoint: function(_dontLink) {\n\t\tvar ctor = _dontLink ? Point : LinkedPoint;\n\t\treturn new ctor(this.x, this.y, this, 'setPoint');\n\t},\n\n\tsetPoint: function() {\n\t\tvar point = Point.read(arguments);\n\t\tthis.x = point.x;\n\t\tthis.y = point.y;\n\t},\n\n\tgetSize: function(_dontLink) {\n\t\tvar ctor = _dontLink ? Size : LinkedSize;\n\t\treturn new ctor(this.width, this.height, this, 'setSize');\n\t},\n\n\t_fw: 1,\n\t_fh: 1,\n\n\tsetSize: function() {\n\t\tvar size = Size.read(arguments),\n\t\t\tsx = this._sx,\n\t\t\tsy = this._sy,\n\t\t\tw = size.width,\n\t\t\th = size.height;\n\t\tif (sx) {\n\t\t\tthis.x += (this.width - w) * sx;\n\t\t}\n\t\tif (sy) {\n\t\t\tthis.y += (this.height - h) * sy;\n\t\t}\n\t\tthis.width = w;\n\t\tthis.height = h;\n\t\tthis._fw = this._fh = 1;\n\t},\n\n\tgetLeft: function() {\n\t\treturn this.x;\n\t},\n\n\tsetLeft: function(left) {\n\t\tif (!this._fw) {\n\t\t\tvar amount = left - this.x;\n\t\t\tthis.width -= this._sx === 0.5 ? amount * 2 : amount;\n\t\t}\n\t\tthis.x = left;\n\t\tthis._sx = this._fw = 0;\n\t},\n\n\tgetTop: function() {\n\t\treturn this.y;\n\t},\n\n\tsetTop: function(top) {\n\t\tif (!this._fh) {\n\t\t\tvar amount = top - this.y;\n\t\t\tthis.height -= this._sy === 0.5 ? amount * 2 : amount;\n\t\t}\n\t\tthis.y = top;\n\t\tthis._sy = this._fh = 0;\n\t},\n\n\tgetRight: function() {\n\t\treturn this.x + this.width;\n\t},\n\n\tsetRight: function(right) {\n\t\tif (!this._fw) {\n\t\t\tvar amount = right - this.x;\n\t\t\tthis.width = this._sx === 0.5 ? amount * 2 : amount;\n\t\t}\n\t\tthis.x = right - this.width;\n\t\tthis._sx = 1;\n\t\tthis._fw = 0;\n\t},\n\n\tgetBottom: function() {\n\t\treturn this.y + this.height;\n\t},\n\n\tsetBottom: function(bottom) {\n\t\tif (!this._fh) {\n\t\t\tvar amount = bottom - this.y;\n\t\t\tthis.height = this._sy === 0.5 ? amount * 2 : amount;\n\t\t}\n\t\tthis.y = bottom - this.height;\n\t\tthis._sy = 1;\n\t\tthis._fh = 0;\n\t},\n\n\tgetCenterX: function() {\n\t\treturn this.x + this.width / 2;\n\t},\n\n\tsetCenterX: function(x) {\n\t\tif (this._fw || this._sx === 0.5) {\n\t\t\tthis.x = x - this.width / 2;\n\t\t} else {\n\t\t\tif (this._sx) {\n\t\t\t\tthis.x += (x - this.x) * 2 * this._sx;\n\t\t\t}\n\t\t\tthis.width = (x - this.x) * 2;\n\t\t}\n\t\tthis._sx = 0.5;\n\t\tthis._fw = 0;\n\t},\n\n\tgetCenterY: function() {\n\t\treturn this.y + this.height / 2;\n\t},\n\n\tsetCenterY: function(y) {\n\t\tif (this._fh || this._sy === 0.5) {\n\t\t\tthis.y = y - this.height / 2;\n\t\t} else {\n\t\t\tif (this._sy) {\n\t\t\t\tthis.y += (y - this.y) * 2 * this._sy;\n\t\t\t}\n\t\t\tthis.height = (y - this.y) * 2;\n\t\t}\n\t\tthis._sy = 0.5;\n\t\tthis._fh = 0;\n\t},\n\n\tgetCenter: function(_dontLink) {\n\t\tvar ctor = _dontLink ? Point : LinkedPoint;\n\t\treturn new ctor(this.getCenterX(), this.getCenterY(), this, 'setCenter');\n\t},\n\n\tsetCenter: function() {\n\t\tvar point = Point.read(arguments);\n\t\tthis.setCenterX(point.x);\n\t\tthis.setCenterY(point.y);\n\t\treturn this;\n\t},\n\n\tgetArea: function() {\n\t\treturn this.width * this.height;\n\t},\n\n\tisEmpty: function() {\n\t\treturn this.width === 0 || this.height === 0;\n\t},\n\n\tcontains: function(arg) {\n\t\treturn arg && arg.width !== undefined\n\t\t\t\t|| (Array.isArray(arg) ? arg : arguments).length === 4\n\t\t\t\t? this._containsRectangle(Rectangle.read(arguments))\n\t\t\t\t: this._containsPoint(Point.read(arguments));\n\t},\n\n\t_containsPoint: function(point) {\n\t\tvar x = point.x,\n\t\t\ty = point.y;\n\t\treturn x >= this.x && y >= this.y\n\t\t\t\t&& x <= this.x + this.width\n\t\t\t\t&& y <= this.y + this.height;\n\t},\n\n\t_containsRectangle: function(rect) {\n\t\tvar x = rect.x,\n\t\t\ty = rect.y;\n\t\treturn x >= this.x && y >= this.y\n\t\t\t\t&& x + rect.width <= this.x + this.width\n\t\t\t\t&& y + rect.height <= this.y + this.height;\n\t},\n\n\tintersects: function() {\n\t\tvar rect = Rectangle.read(arguments),\n\t\t\tepsilon = Base.read(arguments) || 0;\n\t\treturn rect.x + rect.width > this.x - epsilon\n\t\t\t\t&& rect.y + rect.height > this.y - epsilon\n\t\t\t\t&& rect.x < this.x + this.width + epsilon\n\t\t\t\t&& rect.y < this.y + this.height + epsilon;\n\t},\n\n\tintersect: function() {\n\t\tvar rect = Rectangle.read(arguments),\n\t\t\tx1 = Math.max(this.x, rect.x),\n\t\t\ty1 = Math.max(this.y, rect.y),\n\t\t\tx2 = Math.min(this.x + this.width, rect.x + rect.width),\n\t\t\ty2 = Math.min(this.y + this.height, rect.y + rect.height);\n\t\treturn new Rectangle(x1, y1, x2 - x1, y2 - y1);\n\t},\n\n\tunite: function() {\n\t\tvar rect = Rectangle.read(arguments),\n\t\t\tx1 = Math.min(this.x, rect.x),\n\t\t\ty1 = Math.min(this.y, rect.y),\n\t\t\tx2 = Math.max(this.x + this.width, rect.x + rect.width),\n\t\t\ty2 = Math.max(this.y + this.height, rect.y + rect.height);\n\t\treturn new Rectangle(x1, y1, x2 - x1, y2 - y1);\n\t},\n\n\tinclude: function() {\n\t\tvar point = Point.read(arguments);\n\t\tvar x1 = Math.min(this.x, point.x),\n\t\t\ty1 = Math.min(this.y, point.y),\n\t\t\tx2 = Math.max(this.x + this.width, point.x),\n\t\t\ty2 = Math.max(this.y + this.height, point.y);\n\t\treturn new Rectangle(x1, y1, x2 - x1, y2 - y1);\n\t},\n\n\texpand: function() {\n\t\tvar amount = Size.read(arguments),\n\t\t\thor = amount.width,\n\t\t\tver = amount.height;\n\t\treturn new Rectangle(this.x - hor / 2, this.y - ver / 2,\n\t\t\t\tthis.width + hor, this.height + ver);\n\t},\n\n\tscale: function(hor, ver) {\n\t\treturn this.expand(this.width * hor - this.width,\n\t\t\t\tthis.height * (ver === undefined ? hor : ver) - this.height);\n\t}\n}, Base.each([\n\t\t['Top', 'Left'], ['Top', 'Right'],\n\t\t['Bottom', 'Left'], ['Bottom', 'Right'],\n\t\t['Left', 'Center'], ['Top', 'Center'],\n\t\t['Right', 'Center'], ['Bottom', 'Center']\n\t],\n\tfunction(parts, index) {\n\t\tvar part = parts.join(''),\n\t\t\txFirst = /^[RL]/.test(part);\n\t\tif (index >= 4)\n\t\t\tparts[1] += xFirst ? 'Y' : 'X';\n\t\tvar x = parts[xFirst ? 0 : 1],\n\t\t\ty = parts[xFirst ? 1 : 0],\n\t\t\tgetX = 'get' + x,\n\t\t\tgetY = 'get' + y,\n\t\t\tsetX = 'set' + x,\n\t\t\tsetY = 'set' + y,\n\t\t\tget = 'get' + part,\n\t\t\tset = 'set' + part;\n\t\tthis[get] = function(_dontLink) {\n\t\t\tvar ctor = _dontLink ? Point : LinkedPoint;\n\t\t\treturn new ctor(this[getX](), this[getY](), this, set);\n\t\t};\n\t\tthis[set] = function() {\n\t\t\tvar point = Point.read(arguments);\n\t\t\tthis[setX](point.x);\n\t\t\tthis[setY](point.y);\n\t\t};\n\t}, {\n\t\tbeans: true\n\t}\n));\n\nvar LinkedRectangle = Rectangle.extend({\n\tinitialize: function Rectangle(x, y, width, height, owner, setter) {\n\t\tthis._set(x, y, width, height, true);\n\t\tthis._owner = owner;\n\t\tthis._setter = setter;\n\t},\n\n\t_set: function(x, y, width, height, _dontNotify) {\n\t\tthis._x = x;\n\t\tthis._y = y;\n\t\tthis._width = width;\n\t\tthis._height = height;\n\t\tif (!_dontNotify)\n\t\t\tthis._owner[this._setter](this);\n\t\treturn this;\n\t}\n},\nnew function() {\n\tvar proto = Rectangle.prototype;\n\n\treturn Base.each(['x', 'y', 'width', 'height'], function(key) {\n\t\tvar part = Base.capitalize(key),\n\t\t\tinternal = '_' + key;\n\t\tthis['get' + part] = function() {\n\t\t\treturn this[internal];\n\t\t};\n\n\t\tthis['set' + part] = function(value) {\n\t\t\tthis[internal] = value;\n\t\t\tif (!this._dontNotify)\n\t\t\t\tthis._owner[this._setter](this);\n\t\t};\n\t}, Base.each(['Point', 'Size', 'Center',\n\t\t\t'Left', 'Top', 'Right', 'Bottom', 'CenterX', 'CenterY',\n\t\t\t'TopLeft', 'TopRight', 'BottomLeft', 'BottomRight',\n\t\t\t'LeftCenter', 'TopCenter', 'RightCenter', 'BottomCenter'],\n\t\tfunction(key) {\n\t\t\tvar name = 'set' + key;\n\t\t\tthis[name] = function() {\n\t\t\t\tthis._dontNotify = true;\n\t\t\t\tproto[name].apply(this, arguments);\n\t\t\t\tthis._dontNotify = false;\n\t\t\t\tthis._owner[this._setter](this);\n\t\t\t};\n\t\t}, {\n\t\t\tisSelected: function() {\n\t\t\t\treturn !!(this._owner._selection & 2);\n\t\t\t},\n\n\t\t\tsetSelected: function(selected) {\n\t\t\t\tvar owner = this._owner;\n\t\t\t\tif (owner._changeSelection) {\n\t\t\t\t\towner._changeSelection(2, selected);\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t);\n});\n\nvar Matrix = Base.extend({\n\t_class: 'Matrix',\n\n\tinitialize: function Matrix(arg, _dontNotify) {\n\t\tvar args = arguments,\n\t\t\tcount = args.length,\n\t\t\tok = true;\n\t\tif (count >= 6) {\n\t\t\tthis._set.apply(this, args);\n\t\t} else if (count === 1 || count === 2) {\n\t\t\tif (arg instanceof Matrix) {\n\t\t\t\tthis._set(arg._a, arg._b, arg._c, arg._d, arg._tx, arg._ty,\n\t\t\t\t\t\t_dontNotify);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tthis._set.apply(this,\n\t\t\t\t\t\t_dontNotify ? arg.concat([_dontNotify]) : arg);\n\t\t\t} else {\n\t\t\t\tok = false;\n\t\t\t}\n\t\t} else if (!count) {\n\t\t\tthis.reset();\n\t\t} else {\n\t\t\tok = false;\n\t\t}\n\t\tif (!ok) {\n\t\t\tthrow new Error('Unsupported matrix parameters');\n\t\t}\n\t\treturn this;\n\t},\n\n\tset: '#initialize',\n\n\t_set: function(a, b, c, d, tx, ty, _dontNotify) {\n\t\tthis._a = a;\n\t\tthis._b = b;\n\t\tthis._c = c;\n\t\tthis._d = d;\n\t\tthis._tx = tx;\n\t\tthis._ty = ty;\n\t\tif (!_dontNotify)\n\t\t\tthis._changed();\n\t\treturn this;\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\treturn Base.serialize(this.getValues(), options, true, dictionary);\n\t},\n\n\t_changed: function() {\n\t\tvar owner = this._owner;\n\t\tif (owner) {\n\t\t\tif (owner._applyMatrix) {\n\t\t\t\towner.transform(null, true);\n\t\t\t} else {\n\t\t\t\towner._changed(25);\n\t\t\t}\n\t\t}\n\t},\n\n\tclone: function() {\n\t\treturn new Matrix(this._a, this._b, this._c, this._d,\n\t\t\t\tthis._tx, this._ty);\n\t},\n\n\tequals: function(mx) {\n\t\treturn mx === this || mx && this._a === mx._a && this._b === mx._b\n\t\t\t\t&& this._c === mx._c && this._d === mx._d\n\t\t\t\t&& this._tx === mx._tx && this._ty === mx._ty;\n\t},\n\n\ttoString: function() {\n\t\tvar f = Formatter.instance;\n\t\treturn '[[' + [f.number(this._a), f.number(this._c),\n\t\t\t\t\tf.number(this._tx)].join(', ') + '], ['\n\t\t\t\t+ [f.number(this._b), f.number(this._d),\n\t\t\t\t\tf.number(this._ty)].join(', ') + ']]';\n\t},\n\n\treset: function(_dontNotify) {\n\t\tthis._a = this._d = 1;\n\t\tthis._b = this._c = this._tx = this._ty = 0;\n\t\tif (!_dontNotify)\n\t\t\tthis._changed();\n\t\treturn this;\n\t},\n\n\tapply: function(recursively, _setApplyMatrix) {\n\t\tvar owner = this._owner;\n\t\tif (owner) {\n\t\t\towner.transform(null, Base.pick(recursively, true), _setApplyMatrix);\n\t\t\treturn this.isIdentity();\n\t\t}\n\t\treturn false;\n\t},\n\n\ttranslate: function() {\n\t\tvar point = Point.read(arguments),\n\t\t\tx = point.x,\n\t\t\ty = point.y;\n\t\tthis._tx += x * this._a + y * this._c;\n\t\tthis._ty += x * this._b + y * this._d;\n\t\tthis._changed();\n\t\treturn this;\n\t},\n\n\tscale: function() {\n\t\tvar args = arguments,\n\t\t\tscale = Point.read(args),\n\t\t\tcenter = Point.read(args, 0, { readNull: true });\n\t\tif (center)\n\t\t\tthis.translate(center);\n\t\tthis._a *= scale.x;\n\t\tthis._b *= scale.x;\n\t\tthis._c *= scale.y;\n\t\tthis._d *= scale.y;\n\t\tif (center)\n\t\t\tthis.translate(center.negate());\n\t\tthis._changed();\n\t\treturn this;\n\t},\n\n\trotate: function(angle ) {\n\t\tangle *= Math.PI / 180;\n\t\tvar center = Point.read(arguments, 1),\n\t\t\tx = center.x,\n\t\t\ty = center.y,\n\t\t\tcos = Math.cos(angle),\n\t\t\tsin = Math.sin(angle),\n\t\t\ttx = x - x * cos + y * sin,\n\t\t\tty = y - x * sin - y * cos,\n\t\t\ta = this._a,\n\t\t\tb = this._b,\n\t\t\tc = this._c,\n\t\t\td = this._d;\n\t\tthis._a = cos * a + sin * c;\n\t\tthis._b = cos * b + sin * d;\n\t\tthis._c = -sin * a + cos * c;\n\t\tthis._d = -sin * b + cos * d;\n\t\tthis._tx += tx * a + ty * c;\n\t\tthis._ty += tx * b + ty * d;\n\t\tthis._changed();\n\t\treturn this;\n\t},\n\n\tshear: function() {\n\t\tvar args = arguments,\n\t\t\tshear = Point.read(args),\n\t\t\tcenter = Point.read(args, 0, { readNull: true });\n\t\tif (center)\n\t\t\tthis.translate(center);\n\t\tvar a = this._a,\n\t\t\tb = this._b;\n\t\tthis._a += shear.y * this._c;\n\t\tthis._b += shear.y * this._d;\n\t\tthis._c += shear.x * a;\n\t\tthis._d += shear.x * b;\n\t\tif (center)\n\t\t\tthis.translate(center.negate());\n\t\tthis._changed();\n\t\treturn this;\n\t},\n\n\tskew: function() {\n\t\tvar args = arguments,\n\t\t\tskew = Point.read(args),\n\t\t\tcenter = Point.read(args, 0, { readNull: true }),\n\t\t\ttoRadians = Math.PI / 180,\n\t\t\tshear = new Point(Math.tan(skew.x * toRadians),\n\t\t\t\tMath.tan(skew.y * toRadians));\n\t\treturn this.shear(shear, center);\n\t},\n\n\tappend: function(mx, _dontNotify) {\n\t\tif (mx) {\n\t\t\tvar a1 = this._a,\n\t\t\t\tb1 = this._b,\n\t\t\t\tc1 = this._c,\n\t\t\t\td1 = this._d,\n\t\t\t\ta2 = mx._a,\n\t\t\t\tb2 = mx._c,\n\t\t\t\tc2 = mx._b,\n\t\t\t\td2 = mx._d,\n\t\t\t\ttx2 = mx._tx,\n\t\t\t\tty2 = mx._ty;\n\t\t\tthis._a = a2 * a1 + c2 * c1;\n\t\t\tthis._c = b2 * a1 + d2 * c1;\n\t\t\tthis._b = a2 * b1 + c2 * d1;\n\t\t\tthis._d = b2 * b1 + d2 * d1;\n\t\t\tthis._tx += tx2 * a1 + ty2 * c1;\n\t\t\tthis._ty += tx2 * b1 + ty2 * d1;\n\t\t\tif (!_dontNotify)\n\t\t\t\tthis._changed();\n\t\t}\n\t\treturn this;\n\t},\n\n\tprepend: function(mx, _dontNotify) {\n\t\tif (mx) {\n\t\t\tvar a1 = this._a,\n\t\t\t\tb1 = this._b,\n\t\t\t\tc1 = this._c,\n\t\t\t\td1 = this._d,\n\t\t\t\ttx1 = this._tx,\n\t\t\t\tty1 = this._ty,\n\t\t\t\ta2 = mx._a,\n\t\t\t\tb2 = mx._c,\n\t\t\t\tc2 = mx._b,\n\t\t\t\td2 = mx._d,\n\t\t\t\ttx2 = mx._tx,\n\t\t\t\tty2 = mx._ty;\n\t\t\tthis._a = a2 * a1 + b2 * b1;\n\t\t\tthis._c = a2 * c1 + b2 * d1;\n\t\t\tthis._b = c2 * a1 + d2 * b1;\n\t\t\tthis._d = c2 * c1 + d2 * d1;\n\t\t\tthis._tx = a2 * tx1 + b2 * ty1 + tx2;\n\t\t\tthis._ty = c2 * tx1 + d2 * ty1 + ty2;\n\t\t\tif (!_dontNotify)\n\t\t\t\tthis._changed();\n\t\t}\n\t\treturn this;\n\t},\n\n\tappended: function(mx) {\n\t\treturn this.clone().append(mx);\n\t},\n\n\tprepended: function(mx) {\n\t\treturn this.clone().prepend(mx);\n\t},\n\n\tinvert: function() {\n\t\tvar a = this._a,\n\t\t\tb = this._b,\n\t\t\tc = this._c,\n\t\t\td = this._d,\n\t\t\ttx = this._tx,\n\t\t\tty = this._ty,\n\t\t\tdet = a * d - b * c,\n\t\t\tres = null;\n\t\tif (det && !isNaN(det) && isFinite(tx) && isFinite(ty)) {\n\t\t\tthis._a = d / det;\n\t\t\tthis._b = -b / det;\n\t\t\tthis._c = -c / det;\n\t\t\tthis._d = a / det;\n\t\t\tthis._tx = (c * ty - d * tx) / det;\n\t\t\tthis._ty = (b * tx - a * ty) / det;\n\t\t\tres = this;\n\t\t}\n\t\treturn res;\n\t},\n\n\tinverted: function() {\n\t\treturn this.clone().invert();\n\t},\n\n\tconcatenate: '#append',\n\tpreConcatenate: '#prepend',\n\tchain: '#appended',\n\n\t_shiftless: function() {\n\t\treturn new Matrix(this._a, this._b, this._c, this._d, 0, 0);\n\t},\n\n\t_orNullIfIdentity: function() {\n\t\treturn this.isIdentity() ? null : this;\n\t},\n\n\tisIdentity: function() {\n\t\treturn this._a === 1 && this._b === 0 && this._c === 0 && this._d === 1\n\t\t\t\t&& this._tx === 0 && this._ty === 0;\n\t},\n\n\tisInvertible: function() {\n\t\tvar det = this._a * this._d - this._c * this._b;\n\t\treturn det && !isNaN(det) && isFinite(this._tx) && isFinite(this._ty);\n\t},\n\n\tisSingular: function() {\n\t\treturn !this.isInvertible();\n\t},\n\n\ttransform: function( src, dst, count) {\n\t\treturn arguments.length < 3\n\t\t\t? this._transformPoint(Point.read(arguments))\n\t\t\t: this._transformCoordinates(src, dst, count);\n\t},\n\n\t_transformPoint: function(point, dest, _dontNotify) {\n\t\tvar x = point.x,\n\t\t\ty = point.y;\n\t\tif (!dest)\n\t\t\tdest = new Point();\n\t\treturn dest._set(\n\t\t\t\tx * this._a + y * this._c + this._tx,\n\t\t\t\tx * this._b + y * this._d + this._ty,\n\t\t\t\t_dontNotify);\n\t},\n\n\t_transformCoordinates: function(src, dst, count) {\n\t\tfor (var i = 0, max = 2 * count; i < max; i += 2) {\n\t\t\tvar x = src[i],\n\t\t\t\ty = src[i + 1];\n\t\t\tdst[i] = x * this._a + y * this._c + this._tx;\n\t\t\tdst[i + 1] = x * this._b + y * this._d + this._ty;\n\t\t}\n\t\treturn dst;\n\t},\n\n\t_transformCorners: function(rect) {\n\t\tvar x1 = rect.x,\n\t\t\ty1 = rect.y,\n\t\t\tx2 = x1 + rect.width,\n\t\t\ty2 = y1 + rect.height,\n\t\t\tcoords = [ x1, y1, x2, y1, x2, y2, x1, y2 ];\n\t\treturn this._transformCoordinates(coords, coords, 4);\n\t},\n\n\t_transformBounds: function(bounds, dest, _dontNotify) {\n\t\tvar coords = this._transformCorners(bounds),\n\t\t\tmin = coords.slice(0, 2),\n\t\t\tmax = min.slice();\n\t\tfor (var i = 2; i < 8; i++) {\n\t\t\tvar val = coords[i],\n\t\t\t\tj = i & 1;\n\t\t\tif (val < min[j]) {\n\t\t\t\tmin[j] = val;\n\t\t\t} else if (val > max[j]) {\n\t\t\t\tmax[j] = val;\n\t\t\t}\n\t\t}\n\t\tif (!dest)\n\t\t\tdest = new Rectangle();\n\t\treturn dest._set(min[0], min[1], max[0] - min[0], max[1] - min[1],\n\t\t\t\t_dontNotify);\n\t},\n\n\tinverseTransform: function() {\n\t\treturn this._inverseTransform(Point.read(arguments));\n\t},\n\n\t_inverseTransform: function(point, dest, _dontNotify) {\n\t\tvar a = this._a,\n\t\t\tb = this._b,\n\t\t\tc = this._c,\n\t\t\td = this._d,\n\t\t\ttx = this._tx,\n\t\t\tty = this._ty,\n\t\t\tdet = a * d - b * c,\n\t\t\tres = null;\n\t\tif (det && !isNaN(det) && isFinite(tx) && isFinite(ty)) {\n\t\t\tvar x = point.x - this._tx,\n\t\t\t\ty = point.y - this._ty;\n\t\t\tif (!dest)\n\t\t\t\tdest = new Point();\n\t\t\tres = dest._set(\n\t\t\t\t\t(x * d - y * c) / det,\n\t\t\t\t\t(y * a - x * b) / det,\n\t\t\t\t\t_dontNotify);\n\t\t}\n\t\treturn res;\n\t},\n\n\tdecompose: function() {\n\t\tvar a = this._a,\n\t\t\tb = this._b,\n\t\t\tc = this._c,\n\t\t\td = this._d,\n\t\t\tdet = a * d - b * c,\n\t\t\tsqrt = Math.sqrt,\n\t\t\tatan2 = Math.atan2,\n\t\t\tdegrees = 180 / Math.PI,\n\t\t\trotate,\n\t\t\tscale,\n\t\t\tskew;\n\t\tif (a !== 0 || b !== 0) {\n\t\t\tvar r = sqrt(a * a + b * b);\n\t\t\trotate = Math.acos(a / r) * (b > 0 ? 1 : -1);\n\t\t\tscale = [r, det / r];\n\t\t\tskew = [atan2(a * c + b * d, r * r), 0];\n\t\t} else if (c !== 0 || d !== 0) {\n\t\t\tvar s = sqrt(c * c + d * d);\n\t\t\trotate = Math.asin(c / s) * (d > 0 ? 1 : -1);\n\t\t\tscale = [det / s, s];\n\t\t\tskew = [0, atan2(a * c + b * d, s * s)];\n\t\t} else {\n\t\t\trotate = 0;\n\t\t\tskew = scale = [0, 0];\n\t\t}\n\t\treturn {\n\t\t\ttranslation: this.getTranslation(),\n\t\t\trotation: rotate * degrees,\n\t\t\tscaling: new Point(scale),\n\t\t\tskewing: new Point(skew[0] * degrees, skew[1] * degrees)\n\t\t};\n\t},\n\n\tgetValues: function() {\n\t\treturn [ this._a, this._b, this._c, this._d, this._tx, this._ty ];\n\t},\n\n\tgetTranslation: function() {\n\t\treturn new Point(this._tx, this._ty);\n\t},\n\n\tgetScaling: function() {\n\t\treturn this.decompose().scaling;\n\t},\n\n\tgetRotation: function() {\n\t\treturn this.decompose().rotation;\n\t},\n\n\tapplyToContext: function(ctx) {\n\t\tif (!this.isIdentity()) {\n\t\t\tctx.transform(this._a, this._b, this._c, this._d,\n\t\t\t\t\tthis._tx, this._ty);\n\t\t}\n\t}\n}, Base.each(['a', 'b', 'c', 'd', 'tx', 'ty'], function(key) {\n\tvar part = Base.capitalize(key),\n\t\tprop = '_' + key;\n\tthis['get' + part] = function() {\n\t\treturn this[prop];\n\t};\n\tthis['set' + part] = function(value) {\n\t\tthis[prop] = value;\n\t\tthis._changed();\n\t};\n}, {}));\n\nvar Line = Base.extend({\n\t_class: 'Line',\n\n\tinitialize: function Line(arg0, arg1, arg2, arg3, arg4) {\n\t\tvar asVector = false;\n\t\tif (arguments.length >= 4) {\n\t\t\tthis._px = arg0;\n\t\t\tthis._py = arg1;\n\t\t\tthis._vx = arg2;\n\t\t\tthis._vy = arg3;\n\t\t\tasVector = arg4;\n\t\t} else {\n\t\t\tthis._px = arg0.x;\n\t\t\tthis._py = arg0.y;\n\t\t\tthis._vx = arg1.x;\n\t\t\tthis._vy = arg1.y;\n\t\t\tasVector = arg2;\n\t\t}\n\t\tif (!asVector) {\n\t\t\tthis._vx -= this._px;\n\t\t\tthis._vy -= this._py;\n\t\t}\n\t},\n\n\tgetPoint: function() {\n\t\treturn new Point(this._px, this._py);\n\t},\n\n\tgetVector: function() {\n\t\treturn new Point(this._vx, this._vy);\n\t},\n\n\tgetLength: function() {\n\t\treturn this.getVector().getLength();\n\t},\n\n\tintersect: function(line, isInfinite) {\n\t\treturn Line.intersect(\n\t\t\t\tthis._px, this._py, this._vx, this._vy,\n\t\t\t\tline._px, line._py, line._vx, line._vy,\n\t\t\t\ttrue, isInfinite);\n\t},\n\n\tgetSide: function(point, isInfinite) {\n\t\treturn Line.getSide(\n\t\t\t\tthis._px, this._py, this._vx, this._vy,\n\t\t\t\tpoint.x, point.y, true, isInfinite);\n\t},\n\n\tgetDistance: function(point) {\n\t\treturn Math.abs(this.getSignedDistance(point));\n\t},\n\n\tgetSignedDistance: function(point) {\n\t\treturn Line.getSignedDistance(this._px, this._py, this._vx, this._vy,\n\t\t\t\tpoint.x, point.y, true);\n\t},\n\n\tisCollinear: function(line) {\n\t\treturn Point.isCollinear(this._vx, this._vy, line._vx, line._vy);\n\t},\n\n\tisOrthogonal: function(line) {\n\t\treturn Point.isOrthogonal(this._vx, this._vy, line._vx, line._vy);\n\t},\n\n\tstatics: {\n\t\tintersect: function(p1x, p1y, v1x, v1y, p2x, p2y, v2x, v2y, asVector,\n\t\t\t\tisInfinite) {\n\t\t\tif (!asVector) {\n\t\t\t\tv1x -= p1x;\n\t\t\t\tv1y -= p1y;\n\t\t\t\tv2x -= p2x;\n\t\t\t\tv2y -= p2y;\n\t\t\t}\n\t\t\tvar cross = v1x * v2y - v1y * v2x;\n\t\t\tif (!Numerical.isMachineZero(cross)) {\n\t\t\t\tvar dx = p1x - p2x,\n\t\t\t\t\tdy = p1y - p2y,\n\t\t\t\t\tu1 = (v2x * dy - v2y * dx) / cross,\n\t\t\t\t\tu2 = (v1x * dy - v1y * dx) / cross,\n\t\t\t\t\tepsilon = 1e-12,\n\t\t\t\t\tuMin = -epsilon,\n\t\t\t\t\tuMax = 1 + epsilon;\n\t\t\t\tif (isInfinite\n\t\t\t\t\t\t|| uMin < u1 && u1 < uMax && uMin < u2 && u2 < uMax) {\n\t\t\t\t\tif (!isInfinite) {\n\t\t\t\t\t\tu1 = u1 <= 0 ? 0 : u1 >= 1 ? 1 : u1;\n\t\t\t\t\t}\n\t\t\t\t\treturn new Point(\n\t\t\t\t\t\t\tp1x + u1 * v1x,\n\t\t\t\t\t\t\tp1y + u1 * v1y);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tgetSide: function(px, py, vx, vy, x, y, asVector, isInfinite) {\n\t\t\tif (!asVector) {\n\t\t\t\tvx -= px;\n\t\t\t\tvy -= py;\n\t\t\t}\n\t\t\tvar v2x = x - px,\n\t\t\t\tv2y = y - py,\n\t\t\t\tccw = v2x * vy - v2y * vx;\n\t\t\tif (!isInfinite && Numerical.isMachineZero(ccw)) {\n\t\t\t\tccw = (v2x * vx + v2x * vx) / (vx * vx + vy * vy);\n\t\t\t\tif (ccw >= 0 && ccw <= 1)\n\t\t\t\t\tccw = 0;\n\t\t\t}\n\t\t\treturn ccw < 0 ? -1 : ccw > 0 ? 1 : 0;\n\t\t},\n\n\t\tgetSignedDistance: function(px, py, vx, vy, x, y, asVector) {\n\t\t\tif (!asVector) {\n\t\t\t\tvx -= px;\n\t\t\t\tvy -= py;\n\t\t\t}\n\t\t\t return vx === 0 ? (vy > 0 ? x - px : px - x)\n\t\t\t\t\t: vy === 0 ? (vx < 0 ? y - py : py - y)\n\t\t\t\t\t: ((x - px) * vy - (y - py) * vx) / (\n\t\t\t\t\t\tvy > vx\n\t\t\t\t\t\t\t? vy * Math.sqrt(1 + (vx * vx) / (vy * vy))\n\t\t\t\t\t\t\t: vx * Math.sqrt(1 + (vy * vy) / (vx * vx))\n\t\t\t\t\t);\n\t\t},\n\n\t\tgetDistance: function(px, py, vx, vy, x, y, asVector) {\n\t\t\treturn Math.abs(\n\t\t\t\t\tLine.getSignedDistance(px, py, vx, vy, x, y, asVector));\n\t\t}\n\t}\n});\n\nvar Project = PaperScopeItem.extend({\n\t_class: 'Project',\n\t_list: 'projects',\n\t_reference: 'project',\n\t_compactSerialize: true,\n\n\tinitialize: function Project(element) {\n\t\tPaperScopeItem.call(this, true);\n\t\tthis._children = [];\n\t\tthis._namedChildren = {};\n\t\tthis._activeLayer = null;\n\t\tthis._currentStyle = new Style(null, null, this);\n\t\tthis._view = View.create(this,\n\t\t\t\telement || CanvasProvider.getCanvas(1, 1));\n\t\tthis._selectionItems = {};\n\t\tthis._selectionCount = 0;\n\t\tthis._updateVersion = 0;\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\treturn Base.serialize(this._children, options, true, dictionary);\n\t},\n\n\t_changed: function(flags, item) {\n\t\tif (flags & 1) {\n\t\t\tvar view = this._view;\n\t\t\tif (view) {\n\t\t\t\tview._needsUpdate = true;\n\t\t\t\tif (!view._requested && view._autoUpdate)\n\t\t\t\t\tview.requestUpdate();\n\t\t\t}\n\t\t}\n\t\tvar changes = this._changes;\n\t\tif (changes && item) {\n\t\t\tvar changesById = this._changesById,\n\t\t\t\tid = item._id,\n\t\t\t\tentry = changesById[id];\n\t\t\tif (entry) {\n\t\t\t\tentry.flags |= flags;\n\t\t\t} else {\n\t\t\t\tchanges.push(changesById[id] = { item: item, flags: flags });\n\t\t\t}\n\t\t}\n\t},\n\n\tclear: function() {\n\t\tvar children = this._children;\n\t\tfor (var i = children.length - 1; i >= 0; i--)\n\t\t\tchildren[i].remove();\n\t},\n\n\tisEmpty: function() {\n\t\treturn !this._children.length;\n\t},\n\n\tremove: function remove() {\n\t\tif (!remove.base.call(this))\n\t\t\treturn false;\n\t\tif (this._view)\n\t\t\tthis._view.remove();\n\t\treturn true;\n\t},\n\n\tgetView: function() {\n\t\treturn this._view;\n\t},\n\n\tgetCurrentStyle: function() {\n\t\treturn this._currentStyle;\n\t},\n\n\tsetCurrentStyle: function(style) {\n\t\tthis._currentStyle.set(style);\n\t},\n\n\tgetIndex: function() {\n\t\treturn this._index;\n\t},\n\n\tgetOptions: function() {\n\t\treturn this._scope.settings;\n\t},\n\n\tgetLayers: function() {\n\t\treturn this._children;\n\t},\n\n\tgetActiveLayer: function() {\n\t\treturn this._activeLayer || new Layer({ project: this, insert: true });\n\t},\n\n\tgetSymbolDefinitions: function() {\n\t\tvar definitions = [],\n\t\t\tids = {};\n\t\tthis.getItems({\n\t\t\tclass: SymbolItem,\n\t\t\tmatch: function(item) {\n\t\t\t\tvar definition = item._definition,\n\t\t\t\t\tid = definition._id;\n\t\t\t\tif (!ids[id]) {\n\t\t\t\t\tids[id] = true;\n\t\t\t\t\tdefinitions.push(definition);\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\treturn definitions;\n\t},\n\n\tgetSymbols: 'getSymbolDefinitions',\n\n\tgetSelectedItems: function() {\n\t\tvar selectionItems = this._selectionItems,\n\t\t\titems = [];\n\t\tfor (var id in selectionItems) {\n\t\t\tvar item = selectionItems[id],\n\t\t\t\tselection = item._selection;\n\t\t\tif ((selection & 1) && item.isInserted()) {\n\t\t\t\titems.push(item);\n\t\t\t} else if (!selection) {\n\t\t\t\tthis._updateSelection(item);\n\t\t\t}\n\t\t}\n\t\treturn items;\n\t},\n\n\t_updateSelection: function(item) {\n\t\tvar id = item._id,\n\t\t\tselectionItems = this._selectionItems;\n\t\tif (item._selection) {\n\t\t\tif (selectionItems[id] !== item) {\n\t\t\t\tthis._selectionCount++;\n\t\t\t\tselectionItems[id] = item;\n\t\t\t}\n\t\t} else if (selectionItems[id] === item) {\n\t\t\tthis._selectionCount--;\n\t\t\tdelete selectionItems[id];\n\t\t}\n\t},\n\n\tselectAll: function() {\n\t\tvar children = this._children;\n\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\tchildren[i].setFullySelected(true);\n\t},\n\n\tdeselectAll: function() {\n\t\tvar selectionItems = this._selectionItems;\n\t\tfor (var i in selectionItems)\n\t\t\tselectionItems[i].setFullySelected(false);\n\t},\n\n\taddLayer: function(layer) {\n\t\treturn this.insertLayer(undefined, layer);\n\t},\n\n\tinsertLayer: function(index, layer) {\n\t\tif (layer instanceof Layer) {\n\t\t\tlayer._remove(false, true);\n\t\t\tBase.splice(this._children, [layer], index, 0);\n\t\t\tlayer._setProject(this, true);\n\t\t\tvar name = layer._name;\n\t\t\tif (name)\n\t\t\t\tlayer.setName(name);\n\t\t\tif (this._changes)\n\t\t\t\tlayer._changed(5);\n\t\t\tif (!this._activeLayer)\n\t\t\t\tthis._activeLayer = layer;\n\t\t} else {\n\t\t\tlayer = null;\n\t\t}\n\t\treturn layer;\n\t},\n\n\t_insertItem: function(index, item, _created) {\n\t\titem = this.insertLayer(index, item)\n\t\t\t\t|| (this._activeLayer || this._insertItem(undefined,\n\t\t\t\t\t\tnew Layer(Item.NO_INSERT), true))\n\t\t\t\t\t\t.insertChild(index, item);\n\t\tif (_created && item.activate)\n\t\t\titem.activate();\n\t\treturn item;\n\t},\n\n\tgetItems: function(options) {\n\t\treturn Item._getItems(this, options);\n\t},\n\n\tgetItem: function(options) {\n\t\treturn Item._getItems(this, options, null, null, true)[0] || null;\n\t},\n\n\timportJSON: function(json) {\n\t\tthis.activate();\n\t\tvar layer = this._activeLayer;\n\t\treturn Base.importJSON(json, layer && layer.isEmpty() && layer);\n\t},\n\n\tremoveOn: function(type) {\n\t\tvar sets = this._removeSets;\n\t\tif (sets) {\n\t\t\tif (type === 'mouseup')\n\t\t\t\tsets.mousedrag = null;\n\t\t\tvar set = sets[type];\n\t\t\tif (set) {\n\t\t\t\tfor (var id in set) {\n\t\t\t\t\tvar item = set[id];\n\t\t\t\t\tfor (var key in sets) {\n\t\t\t\t\t\tvar other = sets[key];\n\t\t\t\t\t\tif (other && other != set)\n\t\t\t\t\t\t\tdelete other[item._id];\n\t\t\t\t\t}\n\t\t\t\t\titem.remove();\n\t\t\t\t}\n\t\t\t\tsets[type] = null;\n\t\t\t}\n\t\t}\n\t},\n\n\tdraw: function(ctx, matrix, pixelRatio) {\n\t\tthis._updateVersion++;\n\t\tctx.save();\n\t\tmatrix.applyToContext(ctx);\n\t\tvar children = this._children,\n\t\t\tparam = new Base({\n\t\t\t\toffset: new Point(0, 0),\n\t\t\t\tpixelRatio: pixelRatio,\n\t\t\t\tviewMatrix: matrix.isIdentity() ? null : matrix,\n\t\t\t\tmatrices: [new Matrix()],\n\t\t\t\tupdateMatrix: true\n\t\t\t});\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tchildren[i].draw(ctx, param);\n\t\t}\n\t\tctx.restore();\n\n\t\tif (this._selectionCount > 0) {\n\t\t\tctx.save();\n\t\t\tctx.strokeWidth = 1;\n\t\t\tvar items = this._selectionItems,\n\t\t\t\tsize = this._scope.settings.handleSize,\n\t\t\t\tversion = this._updateVersion;\n\t\t\tfor (var id in items) {\n\t\t\t\titems[id]._drawSelection(ctx, matrix, size, items, version);\n\t\t\t}\n\t\t\tctx.restore();\n\t\t}\n\t}\n});\n\nvar Item = Base.extend(Emitter, {\n\tstatics: {\n\t\textend: function extend(src) {\n\t\t\tif (src._serializeFields)\n\t\t\t\tsrc._serializeFields = Base.set({},\n\t\t\t\t\tthis.prototype._serializeFields, src._serializeFields);\n\t\t\treturn extend.base.apply(this, arguments);\n\t\t},\n\n\t\tINSERT: { insert: true },\n\t\tNO_INSERT: { insert: false }\n\t},\n\n\t_class: 'Item',\n\t_name: null,\n\t_applyMatrix: true,\n\t_canApplyMatrix: true,\n\t_canScaleStroke: false,\n\t_pivot: null,\n\t_visible: true,\n\t_blendMode: 'normal',\n\t_opacity: 1,\n\t_locked: false,\n\t_guide: false,\n\t_clipMask: false,\n\t_selection: 0,\n\t_selectBounds: true,\n\t_selectChildren: false,\n\t_serializeFields: {\n\t\tname: null,\n\t\tapplyMatrix: null,\n\t\tmatrix: new Matrix(),\n\t\tpivot: null,\n\t\tvisible: true,\n\t\tblendMode: 'normal',\n\t\topacity: 1,\n\t\tlocked: false,\n\t\tguide: false,\n\t\tclipMask: false,\n\t\tselected: false,\n\t\tdata: {}\n\t},\n\t_prioritize: ['applyMatrix']\n},\nnew function() {\n\tvar handlers = ['onMouseDown', 'onMouseUp', 'onMouseDrag', 'onClick',\n\t\t\t'onDoubleClick', 'onMouseMove', 'onMouseEnter', 'onMouseLeave'];\n\treturn Base.each(handlers,\n\t\tfunction(name) {\n\t\t\tthis._events[name] = {\n\t\t\t\tinstall: function(type) {\n\t\t\t\t\tthis.getView()._countItemEvent(type, 1);\n\t\t\t\t},\n\n\t\t\t\tuninstall: function(type) {\n\t\t\t\t\tthis.getView()._countItemEvent(type, -1);\n\t\t\t\t}\n\t\t\t};\n\t\t}, {\n\t\t\t_events: {\n\t\t\t\tonFrame: {\n\t\t\t\t\tinstall: function() {\n\t\t\t\t\t\tthis.getView()._animateItem(this, true);\n\t\t\t\t\t},\n\n\t\t\t\t\tuninstall: function() {\n\t\t\t\t\t\tthis.getView()._animateItem(this, false);\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\tonLoad: {},\n\t\t\t\tonError: {}\n\t\t\t},\n\t\t\tstatics: {\n\t\t\t\t_itemHandlers: handlers\n\t\t\t}\n\t\t}\n\t);\n}, {\n\tinitialize: function Item() {\n\t},\n\n\t_initialize: function(props, point) {\n\t\tvar hasProps = props && Base.isPlainObject(props),\n\t\t\tinternal = hasProps && props.internal === true,\n\t\t\tmatrix = this._matrix = new Matrix(),\n\t\t\tproject = hasProps && props.project || paper.project,\n\t\t\tsettings = paper.settings;\n\t\tthis._id = internal ? null : UID.get();\n\t\tthis._parent = this._index = null;\n\t\tthis._applyMatrix = this._canApplyMatrix && settings.applyMatrix;\n\t\tif (point)\n\t\t\tmatrix.translate(point);\n\t\tmatrix._owner = this;\n\t\tthis._style = new Style(project._currentStyle, this, project);\n\t\tif (internal || hasProps && props.insert == false\n\t\t\t|| !settings.insertItems && !(hasProps && props.insert == true)) {\n\t\t\tthis._setProject(project);\n\t\t} else {\n\t\t\t(hasProps && props.parent || project)\n\t\t\t\t\t._insertItem(undefined, this, true);\n\t\t}\n\t\tif (hasProps && props !== Item.NO_INSERT && props !== Item.INSERT) {\n\t\t\tthis.set(props, {\n\t\t\t\tinternal: true, insert: true, project: true, parent: true\n\t\t\t});\n\t\t}\n\t\treturn hasProps;\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\tvar props = {},\n\t\t\tthat = this;\n\n\t\tfunction serialize(fields) {\n\t\t\tfor (var key in fields) {\n\t\t\t\tvar value = that[key];\n\t\t\t\tif (!Base.equals(value, key === 'leading'\n\t\t\t\t\t\t? fields.fontSize * 1.2 : fields[key])) {\n\t\t\t\t\tprops[key] = Base.serialize(value, options,\n\t\t\t\t\t\t\tkey !== 'data', dictionary);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tserialize(this._serializeFields);\n\t\tif (!(this instanceof Group))\n\t\t\tserialize(this._style._defaults);\n\t\treturn [ this._class, props ];\n\t},\n\n\t_changed: function(flags) {\n\t\tvar symbol = this._symbol,\n\t\t\tcacheParent = this._parent || symbol,\n\t\t\tproject = this._project;\n\t\tif (flags & 8) {\n\t\t\tthis._bounds = this._position = this._decomposed = undefined;\n\t\t}\n\t\tif (flags & 16) {\n\t\t\tthis._globalMatrix = undefined;\n\t\t}\n\t\tif (cacheParent\n\t\t\t\t&& (flags & 72)) {\n\t\t\tItem._clearBoundsCache(cacheParent);\n\t\t}\n\t\tif (flags & 2) {\n\t\t\tItem._clearBoundsCache(this);\n\t\t}\n\t\tif (project)\n\t\t\tproject._changed(flags, this);\n\t\tif (symbol)\n\t\t\tsymbol._changed(flags);\n\t},\n\n\tgetId: function() {\n\t\treturn this._id;\n\t},\n\n\tgetName: function() {\n\t\treturn this._name;\n\t},\n\n\tsetName: function(name) {\n\n\t\tif (this._name)\n\t\t\tthis._removeNamed();\n\t\tif (name === (+name) + '')\n\t\t\tthrow new Error(\n\t\t\t\t\t'Names consisting only of numbers are not supported.');\n\t\tvar owner = this._getOwner();\n\t\tif (name && owner) {\n\t\t\tvar children = owner._children,\n\t\t\t\tnamedChildren = owner._namedChildren;\n\t\t\t(namedChildren[name] = namedChildren[name] || []).push(this);\n\t\t\tif (!(name in children))\n\t\t\t\tchildren[name] = this;\n\t\t}\n\t\tthis._name = name || undefined;\n\t\tthis._changed(256);\n\t},\n\n\tgetStyle: function() {\n\t\treturn this._style;\n\t},\n\n\tsetStyle: function(style) {\n\t\tthis.getStyle().set(style);\n\t}\n}, Base.each(['locked', 'visible', 'blendMode', 'opacity', 'guide'],\n\tfunction(name) {\n\t\tvar part = Base.capitalize(name),\n\t\t\tkey = '_' + name,\n\t\t\tflags = {\n\t\t\t\tlocked: 256,\n\t\t\t\tvisible: 265\n\t\t\t};\n\t\tthis['get' + part] = function() {\n\t\t\treturn this[key];\n\t\t};\n\t\tthis['set' + part] = function(value) {\n\t\t\tif (value != this[key]) {\n\t\t\t\tthis[key] = value;\n\t\t\t\tthis._changed(flags[name] || 257);\n\t\t\t}\n\t\t};\n\t},\n{}), {\n\tbeans: true,\n\n\tgetSelection: function() {\n\t\treturn this._selection;\n\t},\n\n\tsetSelection: function(selection) {\n\t\tif (selection !== this._selection) {\n\t\t\tthis._selection = selection;\n\t\t\tvar project = this._project;\n\t\t\tif (project) {\n\t\t\t\tproject._updateSelection(this);\n\t\t\t\tthis._changed(257);\n\t\t\t}\n\t\t}\n\t},\n\n\t_changeSelection: function(flag, selected) {\n\t\tvar selection = this._selection;\n\t\tthis.setSelection(selected ? selection | flag : selection & ~flag);\n\t},\n\n\tisSelected: function() {\n\t\tif (this._selectChildren) {\n\t\t\tvar children = this._children;\n\t\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\t\tif (children[i].isSelected())\n\t\t\t\t\treturn true;\n\t\t}\n\t\treturn !!(this._selection & 1);\n\t},\n\n\tsetSelected: function(selected) {\n\t\tif (this._selectChildren) {\n\t\t\tvar children = this._children;\n\t\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\t\tchildren[i].setSelected(selected);\n\t\t}\n\t\tthis._changeSelection(1, selected);\n\t},\n\n\tisFullySelected: function() {\n\t\tvar children = this._children,\n\t\t\tselected = !!(this._selection & 1);\n\t\tif (children && selected) {\n\t\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\t\tif (!children[i].isFullySelected())\n\t\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}\n\t\treturn selected;\n\t},\n\n\tsetFullySelected: function(selected) {\n\t\tvar children = this._children;\n\t\tif (children) {\n\t\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\t\tchildren[i].setFullySelected(selected);\n\t\t}\n\t\tthis._changeSelection(1, selected);\n\t},\n\n\tisClipMask: function() {\n\t\treturn this._clipMask;\n\t},\n\n\tsetClipMask: function(clipMask) {\n\t\tif (this._clipMask != (clipMask = !!clipMask)) {\n\t\t\tthis._clipMask = clipMask;\n\t\t\tif (clipMask) {\n\t\t\t\tthis.setFillColor(null);\n\t\t\t\tthis.setStrokeColor(null);\n\t\t\t}\n\t\t\tthis._changed(257);\n\t\t\tif (this._parent)\n\t\t\t\tthis._parent._changed(2048);\n\t\t}\n\t},\n\n\tgetData: function() {\n\t\tif (!this._data)\n\t\t\tthis._data = {};\n\t\treturn this._data;\n\t},\n\n\tsetData: function(data) {\n\t\tthis._data = data;\n\t},\n\n\tgetPosition: function(_dontLink) {\n\t\tvar ctor = _dontLink ? Point : LinkedPoint;\n\t\tvar position = this._position ||\n\t\t\t(this._position = this._getPositionFromBounds());\n\t\treturn new ctor(position.x, position.y, this, 'setPosition');\n\t},\n\n\tsetPosition: function() {\n\t\tthis.translate(Point.read(arguments).subtract(this.getPosition(true)));\n\t},\n\n\t_getPositionFromBounds: function(bounds) {\n\t\treturn this._pivot\n\t\t\t\t? this._matrix._transformPoint(this._pivot)\n\t\t\t\t: (bounds || this.getBounds()).getCenter(true);\n\t},\n\n\tgetPivot: function() {\n\t\tvar pivot = this._pivot;\n\t\treturn pivot\n\t\t\t\t? new LinkedPoint(pivot.x, pivot.y, this, 'setPivot')\n\t\t\t\t: null;\n\t},\n\n\tsetPivot: function() {\n\t\tthis._pivot = Point.read(arguments, 0, { clone: true, readNull: true });\n\t\tthis._position = undefined;\n\t}\n}, Base.each({\n\t\tgetStrokeBounds: { stroke: true },\n\t\tgetHandleBounds: { handle: true },\n\t\tgetInternalBounds: { internal: true }\n\t},\n\tfunction(options, key) {\n\t\tthis[key] = function(matrix) {\n\t\t\treturn this.getBounds(matrix, options);\n\t\t};\n\t},\n{\n\tbeans: true,\n\n\tgetBounds: function(matrix, options) {\n\t\tvar hasMatrix = options || matrix instanceof Matrix,\n\t\t\topts = Base.set({}, hasMatrix ? options : matrix,\n\t\t\t\t\tthis._boundsOptions);\n\t\tif (!opts.stroke || this.getStrokeScaling())\n\t\t\topts.cacheItem = this;\n\t\tvar rect = this._getCachedBounds(hasMatrix && matrix, opts).rect;\n\t\treturn !arguments.length\n\t\t\t\t? new LinkedRectangle(rect.x, rect.y, rect.width, rect.height,\n\t\t\t\t\tthis, 'setBounds')\n\t\t\t\t: rect;\n\t},\n\n\tsetBounds: function() {\n\t\tvar rect = Rectangle.read(arguments),\n\t\t\tbounds = this.getBounds(),\n\t\t\t_matrix = this._matrix,\n\t\t\tmatrix = new Matrix(),\n\t\t\tcenter = rect.getCenter();\n\t\tmatrix.translate(center);\n\t\tif (rect.width != bounds.width || rect.height != bounds.height) {\n\t\t\tif (!_matrix.isInvertible()) {\n\t\t\t\t_matrix.set(_matrix._backup\n\t\t\t\t\t\t|| new Matrix().translate(_matrix.getTranslation()));\n\t\t\t\tbounds = this.getBounds();\n\t\t\t}\n\t\t\tmatrix.scale(\n\t\t\t\t\tbounds.width !== 0 ? rect.width / bounds.width : 0,\n\t\t\t\t\tbounds.height !== 0 ? rect.height / bounds.height : 0);\n\t\t}\n\t\tcenter = bounds.getCenter();\n\t\tmatrix.translate(-center.x, -center.y);\n\t\tthis.transform(matrix);\n\t},\n\n\t_getBounds: function(matrix, options) {\n\t\tvar children = this._children;\n\t\tif (!children || !children.length)\n\t\t\treturn new Rectangle();\n\t\tItem._updateBoundsCache(this, options.cacheItem);\n\t\treturn Item._getBounds(children, matrix, options);\n\t},\n\n\t_getBoundsCacheKey: function(options, internal) {\n\t\treturn [\n\t\t\toptions.stroke ? 1 : 0,\n\t\t\toptions.handle ? 1 : 0,\n\t\t\tinternal ? 1 : 0\n\t\t].join('');\n\t},\n\n\t_getCachedBounds: function(matrix, options, noInternal) {\n\t\tmatrix = matrix && matrix._orNullIfIdentity();\n\t\tvar internal = options.internal && !noInternal,\n\t\t\tcacheItem = options.cacheItem,\n\t\t\t_matrix = internal ? null : this._matrix._orNullIfIdentity(),\n\t\t\tcacheKey = cacheItem && (!matrix || matrix.equals(_matrix))\n\t\t\t\t&& this._getBoundsCacheKey(options, internal),\n\t\t\tbounds = this._bounds;\n\t\tItem._updateBoundsCache(this._parent || this._symbol, cacheItem);\n\t\tif (cacheKey && bounds && cacheKey in bounds) {\n\t\t\tvar cached = bounds[cacheKey];\n\t\t\treturn {\n\t\t\t\trect: cached.rect.clone(),\n\t\t\t\tnonscaling: cached.nonscaling\n\t\t\t};\n\t\t}\n\t\tvar res = this._getBounds(matrix || _matrix, options),\n\t\t\trect = res.rect || res,\n\t\t\tstyle = this._style,\n\t\t\tnonscaling = res.nonscaling || style.hasStroke()\n\t\t\t\t&& !style.getStrokeScaling();\n\t\tif (cacheKey) {\n\t\t\tif (!bounds) {\n\t\t\t\tthis._bounds = bounds = {};\n\t\t\t}\n\t\t\tvar cached = bounds[cacheKey] = {\n\t\t\t\trect: rect.clone(),\n\t\t\t\tnonscaling: nonscaling,\n\t\t\t\tinternal: internal\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\trect: rect,\n\t\t\tnonscaling: nonscaling\n\t\t};\n\t},\n\n\t_getStrokeMatrix: function(matrix, options) {\n\t\tvar parent = this.getStrokeScaling() ? null\n\t\t\t\t: options && options.internal ? this\n\t\t\t\t\t: this._parent || this._symbol && this._symbol._item,\n\t\t\tmx = parent ? parent.getViewMatrix().invert() : matrix;\n\t\treturn mx && mx._shiftless();\n\t},\n\n\tstatics: {\n\t\t_updateBoundsCache: function(parent, item) {\n\t\t\tif (parent && item) {\n\t\t\t\tvar id = item._id,\n\t\t\t\t\tref = parent._boundsCache = parent._boundsCache || {\n\t\t\t\t\t\tids: {},\n\t\t\t\t\t\tlist: []\n\t\t\t\t\t};\n\t\t\t\tif (!ref.ids[id]) {\n\t\t\t\t\tref.list.push(item);\n\t\t\t\t\tref.ids[id] = item;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_clearBoundsCache: function(item) {\n\t\t\tvar cache = item._boundsCache;\n\t\t\tif (cache) {\n\t\t\t\titem._bounds = item._position = item._boundsCache = undefined;\n\t\t\t\tfor (var i = 0, list = cache.list, l = list.length; i < l; i++){\n\t\t\t\t\tvar other = list[i];\n\t\t\t\t\tif (other !== item) {\n\t\t\t\t\t\tother._bounds = other._position = undefined;\n\t\t\t\t\t\tif (other._boundsCache)\n\t\t\t\t\t\t\tItem._clearBoundsCache(other);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_getBounds: function(items, matrix, options) {\n\t\t\tvar x1 = Infinity,\n\t\t\t\tx2 = -x1,\n\t\t\t\ty1 = x1,\n\t\t\t\ty2 = x2,\n\t\t\t\tnonscaling = false;\n\t\t\toptions = options || {};\n\t\t\tfor (var i = 0, l = items.length; i < l; i++) {\n\t\t\t\tvar item = items[i];\n\t\t\t\tif (item._visible && !item.isEmpty(true)) {\n\t\t\t\t\tvar bounds = item._getCachedBounds(\n\t\t\t\t\t\tmatrix && matrix.appended(item._matrix), options, true),\n\t\t\t\t\t\trect = bounds.rect;\n\t\t\t\t\tx1 = Math.min(rect.x, x1);\n\t\t\t\t\ty1 = Math.min(rect.y, y1);\n\t\t\t\t\tx2 = Math.max(rect.x + rect.width, x2);\n\t\t\t\t\ty2 = Math.max(rect.y + rect.height, y2);\n\t\t\t\t\tif (bounds.nonscaling)\n\t\t\t\t\t\tnonscaling = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn {\n\t\t\t\trect: isFinite(x1)\n\t\t\t\t\t? new Rectangle(x1, y1, x2 - x1, y2 - y1)\n\t\t\t\t\t: new Rectangle(),\n\t\t\t\tnonscaling: nonscaling\n\t\t\t};\n\t\t}\n\t}\n\n}), {\n\tbeans: true,\n\n\t_decompose: function() {\n\t\treturn this._applyMatrix\n\t\t\t? null\n\t\t\t: this._decomposed || (this._decomposed = this._matrix.decompose());\n\t},\n\n\tgetRotation: function() {\n\t\tvar decomposed = this._decompose();\n\t\treturn decomposed ? decomposed.rotation : 0;\n\t},\n\n\tsetRotation: function(rotation) {\n\t\tvar current = this.getRotation();\n\t\tif (current != null && rotation != null) {\n\t\t\tvar decomposed = this._decomposed;\n\t\t\tthis.rotate(rotation - current);\n\t\t\tif (decomposed) {\n\t\t\t\tdecomposed.rotation = rotation;\n\t\t\t\tthis._decomposed = decomposed;\n\t\t\t}\n\t\t}\n\t},\n\n\tgetScaling: function() {\n\t\tvar decomposed = this._decompose(),\n\t\t\ts = decomposed && decomposed.scaling;\n\t\treturn new LinkedPoint(s ? s.x : 1, s ? s.y : 1, this, 'setScaling');\n\t},\n\n\tsetScaling: function() {\n\t\tvar current = this.getScaling(),\n\t\t\tscaling = Point.read(arguments, 0, { clone: true, readNull: true });\n\t\tif (current && scaling && !current.equals(scaling)) {\n\t\t\tvar rotation = this.getRotation(),\n\t\t\t\tdecomposed = this._decomposed,\n\t\t\t\tmatrix = new Matrix(),\n\t\t\t\tisZero = Numerical.isZero;\n\t\t\tif (isZero(current.x) || isZero(current.y)) {\n\t\t\t\tmatrix.translate(decomposed.translation);\n\t\t\t\tif (rotation) {\n\t\t\t\t\tmatrix.rotate(rotation);\n\t\t\t\t}\n\t\t\t\tmatrix.scale(scaling.x, scaling.y);\n\t\t\t\tthis._matrix.set(matrix);\n\t\t\t} else {\n\t\t\t\tvar center = this.getPosition(true);\n\t\t\t\tmatrix.translate(center);\n\t\t\t\tif (rotation)\n\t\t\t\t\tmatrix.rotate(rotation);\n\t\t\t\tmatrix.scale(scaling.x / current.x, scaling.y / current.y);\n\t\t\t\tif (rotation)\n\t\t\t\t\tmatrix.rotate(-rotation);\n\t\t\t\tmatrix.translate(center.negate());\n\t\t\t\tthis.transform(matrix);\n\t\t\t}\n\t\t\tif (decomposed) {\n\t\t\t\tdecomposed.scaling = scaling;\n\t\t\t\tthis._decomposed = decomposed;\n\t\t\t}\n\t\t}\n\t},\n\n\tgetMatrix: function() {\n\t\treturn this._matrix;\n\t},\n\n\tsetMatrix: function() {\n\t\tvar matrix = this._matrix;\n\t\tmatrix.set.apply(matrix, arguments);\n\t},\n\n\tgetGlobalMatrix: function(_dontClone) {\n\t\tvar matrix = this._globalMatrix;\n\t\tif (matrix) {\n\t\t\tvar parent = this._parent;\n\t\t\tvar parents = [];\n\t\t\twhile (parent) {\n\t\t\t\tif (!parent._globalMatrix) {\n\t\t\t\t\tmatrix = null;\n\t\t\t\t\tfor (var i = 0, l = parents.length; i < l; i++) {\n\t\t\t\t\t\tparents[i]._globalMatrix = null;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tparents.push(parent);\n\t\t\t\tparent = parent._parent;\n\t\t\t}\n\t\t}\n\t\tif (!matrix) {\n\t\t\tmatrix = this._globalMatrix = this._matrix.clone();\n\t\t\tvar parent = this._parent;\n\t\t\tif (parent)\n\t\t\t\tmatrix.prepend(parent.getGlobalMatrix(true));\n\t\t}\n\t\treturn _dontClone ? matrix : matrix.clone();\n\t},\n\n\tgetViewMatrix: function() {\n\t\treturn this.getGlobalMatrix().prepend(this.getView()._matrix);\n\t},\n\n\tgetApplyMatrix: function() {\n\t\treturn this._applyMatrix;\n\t},\n\n\tsetApplyMatrix: function(apply) {\n\t\tif (this._applyMatrix = this._canApplyMatrix && !!apply)\n\t\t\tthis.transform(null, true);\n\t},\n\n\tgetTransformContent: '#getApplyMatrix',\n\tsetTransformContent: '#setApplyMatrix',\n}, {\n\tgetProject: function() {\n\t\treturn this._project;\n\t},\n\n\t_setProject: function(project, installEvents) {\n\t\tif (this._project !== project) {\n\t\t\tif (this._project)\n\t\t\t\tthis._installEvents(false);\n\t\t\tthis._project = project;\n\t\t\tvar children = this._children;\n\t\t\tfor (var i = 0, l = children && children.length; i < l; i++)\n\t\t\t\tchildren[i]._setProject(project);\n\t\t\tinstallEvents = true;\n\t\t}\n\t\tif (installEvents)\n\t\t\tthis._installEvents(true);\n\t},\n\n\tgetView: function() {\n\t\treturn this._project._view;\n\t},\n\n\t_installEvents: function _installEvents(install) {\n\t\t_installEvents.base.call(this, install);\n\t\tvar children = this._children;\n\t\tfor (var i = 0, l = children && children.length; i < l; i++)\n\t\t\tchildren[i]._installEvents(install);\n\t},\n\n\tgetLayer: function() {\n\t\tvar parent = this;\n\t\twhile (parent = parent._parent) {\n\t\t\tif (parent instanceof Layer)\n\t\t\t\treturn parent;\n\t\t}\n\t\treturn null;\n\t},\n\n\tgetParent: function() {\n\t\treturn this._parent;\n\t},\n\n\tsetParent: function(item) {\n\t\treturn item.addChild(this);\n\t},\n\n\t_getOwner: '#getParent',\n\n\tgetChildren: function() {\n\t\treturn this._children;\n\t},\n\n\tsetChildren: function(items) {\n\t\tthis.removeChildren();\n\t\tthis.addChildren(items);\n\t},\n\n\tgetFirstChild: function() {\n\t\treturn this._children && this._children[0] || null;\n\t},\n\n\tgetLastChild: function() {\n\t\treturn this._children && this._children[this._children.length - 1]\n\t\t\t\t|| null;\n\t},\n\n\tgetNextSibling: function() {\n\t\tvar owner = this._getOwner();\n\t\treturn owner && owner._children[this._index + 1] || null;\n\t},\n\n\tgetPreviousSibling: function() {\n\t\tvar owner = this._getOwner();\n\t\treturn owner && owner._children[this._index - 1] || null;\n\t},\n\n\tgetIndex: function() {\n\t\treturn this._index;\n\t},\n\n\tsetIndex: function(index) {\n\t\tvar parent = this._parent,\n\t\t\tchildren = parent && parent._children;\n\t\tif (children) {\n\t\t\tparent.insertChildren(index in children ? index : undefined,\n\t\t\t\t\t\t\t\t [this]);\n\t\t}\n\t},\n\n\tequals: function(item) {\n\t\treturn item === this || item && this._class === item._class\n\t\t\t\t&& this._style.equals(item._style)\n\t\t\t\t&& this._matrix.equals(item._matrix)\n\t\t\t\t&& this._locked === item._locked\n\t\t\t\t&& this._visible === item._visible\n\t\t\t\t&& this._blendMode === item._blendMode\n\t\t\t\t&& this._opacity === item._opacity\n\t\t\t\t&& this._clipMask === item._clipMask\n\t\t\t\t&& this._guide === item._guide\n\t\t\t\t&& this._equals(item)\n\t\t\t\t|| false;\n\t},\n\n\t_equals: function(item) {\n\t\treturn Base.equals(this._children, item._children);\n\t},\n\n\tclone: function(options) {\n\t\tvar copy = new this.constructor(Item.NO_INSERT),\n\t\t\tchildren = this._children,\n\t\t\tinsert = Base.pick(options ? options.insert : undefined,\n\t\t\t\t\toptions === undefined || options === true),\n\t\t\tdeep = Base.pick(options ? options.deep : undefined, true);\n\t\tif (children)\n\t\t\tcopy.copyAttributes(this);\n\t\tif (!children || deep)\n\t\t\tcopy.copyContent(this);\n\t\tif (!children)\n\t\t\tcopy.copyAttributes(this);\n\t\tif (insert)\n\t\t\tcopy.insertAbove(this);\n\t\tvar name = this._name,\n\t\t\tparent = this._parent;\n\t\tif (name && parent) {\n\t\t\tvar children = parent._children,\n\t\t\t\torig = name,\n\t\t\t\ti = 1;\n\t\t\twhile (children[name])\n\t\t\t\tname = orig + ' ' + (i++);\n\t\t\tif (name !== orig)\n\t\t\t\tcopy.setName(name);\n\t\t}\n\t\treturn copy;\n\t},\n\n\tcopyContent: function(source) {\n\t\tvar children = source._children;\n\t\tfor (var i = 0, l = children && children.length; i < l; i++) {\n\t\t\tthis.addChild(children[i].clone(false), true);\n\t\t}\n\t},\n\n\tcopyAttributes: function(source, excludeMatrix) {\n\t\tthis.setStyle(source._style);\n\t\tvar keys = ['_locked', '_visible', '_blendMode', '_opacity',\n\t\t\t\t'_clipMask', '_guide'];\n\t\tfor (var i = 0, l = keys.length; i < l; i++) {\n\t\t\tvar key = keys[i];\n\t\t\tif (source.hasOwnProperty(key))\n\t\t\t\tthis[key] = source[key];\n\t\t}\n\t\tif (!excludeMatrix)\n\t\t\tthis._matrix.set(source._matrix, true);\n\t\tthis.setApplyMatrix(source._applyMatrix);\n\t\tthis.setPivot(source._pivot);\n\t\tthis.setSelection(source._selection);\n\t\tvar data = source._data,\n\t\t\tname = source._name;\n\t\tthis._data = data ? Base.clone(data) : null;\n\t\tif (name)\n\t\t\tthis.setName(name);\n\t},\n\n\trasterize: function(arg0, arg1) {\n\t\tvar resolution,\n\t\t\tinsert,\n\t\t\traster;\n\t\tif (Base.isPlainObject(arg0)) {\n\t\t\tresolution = arg0.resolution;\n\t\t\tinsert = arg0.insert;\n\t\t\traster = arg0.raster;\n\t\t} else {\n\t\t\tresolution = arg0;\n\t\t\tinsert = arg1;\n\t\t}\n\t\tif (!raster) {\n\t\t\traster = new Raster(Item.NO_INSERT);\n\t\t}\n\t\tvar bounds = this.getStrokeBounds(),\n\t\t\tscale = (resolution || this.getView().getResolution()) / 72,\n\t\t\ttopLeft = bounds.getTopLeft().floor(),\n\t\t\tbottomRight = bounds.getBottomRight().ceil(),\n\t\t\tboundsSize = new Size(bottomRight.subtract(topLeft)),\n\t\t\trasterSize = boundsSize.multiply(scale);\n\t\traster.setSize(rasterSize, true);\n\n\t\tif (!rasterSize.isZero()) {\n\t\t\tvar ctx = raster.getContext(true),\n\t\t\t\tmatrix = new Matrix().scale(scale).translate(topLeft.negate());\n\t\t\tctx.save();\n\t\t\tmatrix.applyToContext(ctx);\n\t\t\tthis.draw(ctx, new Base({ matrices: [matrix] }));\n\t\t\tctx.restore();\n\t\t}\n\t\traster._matrix.set(\n\t\t\tnew Matrix()\n\t\t\t\t.translate(topLeft.add(boundsSize.divide(2)))\n\t\t\t\t.scale(1 / scale)\n\t\t);\n\t\tif (insert === undefined || insert) {\n\t\t\traster.insertAbove(this);\n\t\t}\n\t\treturn raster;\n\t},\n\n\tcontains: function() {\n\t\tvar matrix = this._matrix;\n\t\treturn (\n\t\t\tmatrix.isInvertible() &&\n\t\t\t!!this._contains(matrix._inverseTransform(Point.read(arguments)))\n\t\t);\n\t},\n\n\t_contains: function(point) {\n\t\tvar children = this._children;\n\t\tif (children) {\n\t\t\tfor (var i = children.length - 1; i >= 0; i--) {\n\t\t\t\tif (children[i].contains(point))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn point.isInside(this.getInternalBounds());\n\t},\n\n\tisInside: function() {\n\t\treturn Rectangle.read(arguments).contains(this.getBounds());\n\t},\n\n\t_asPathItem: function() {\n\t\treturn new Path.Rectangle({\n\t\t\trectangle: this.getInternalBounds(),\n\t\t\tmatrix: this._matrix,\n\t\t\tinsert: false,\n\t\t});\n\t},\n\n\tintersects: function(item, _matrix) {\n\t\tif (!(item instanceof Item))\n\t\t\treturn false;\n\t\treturn this._asPathItem().getIntersections(item._asPathItem(), null,\n\t\t\t\t_matrix, true).length > 0;\n\t}\n},\nnew function() {\n\tfunction hitTest() {\n\t\tvar args = arguments;\n\t\treturn this._hitTest(\n\t\t\t\tPoint.read(args),\n\t\t\t\tHitResult.getOptions(args));\n\t}\n\n\tfunction hitTestAll() {\n\t\tvar args = arguments,\n\t\t\tpoint = Point.read(args),\n\t\t\toptions = HitResult.getOptions(args),\n\t\t\tall = [];\n\t\tthis._hitTest(point, new Base({ all: all }, options));\n\t\treturn all;\n\t}\n\n\tfunction hitTestChildren(point, options, viewMatrix, _exclude) {\n\t\tvar children = this._children;\n\t\tif (children) {\n\t\t\tfor (var i = children.length - 1; i >= 0; i--) {\n\t\t\t\tvar child = children[i];\n\t\t\t\tvar res = child !== _exclude && child._hitTest(point, options,\n\t\t\t\t\t\tviewMatrix);\n\t\t\t\tif (res && !options.all)\n\t\t\t\t\treturn res;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tProject.inject({\n\t\thitTest: hitTest,\n\t\thitTestAll: hitTestAll,\n\t\t_hitTest: hitTestChildren\n\t});\n\n\treturn {\n\t\thitTest: hitTest,\n\t\thitTestAll: hitTestAll,\n\t\t_hitTestChildren: hitTestChildren,\n\t};\n}, {\n\n\t_hitTest: function(point, options, parentViewMatrix) {\n\t\tif (this._locked || !this._visible || this._guide && !options.guides\n\t\t\t\t|| this.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\n\t\tvar matrix = this._matrix,\n\t\t\tviewMatrix = parentViewMatrix\n\t\t\t\t\t? parentViewMatrix.appended(matrix)\n\t\t\t\t\t: this.getGlobalMatrix().prepend(this.getView()._matrix),\n\t\t\ttolerance = Math.max(options.tolerance, 1e-12),\n\t\t\ttolerancePadding = options._tolerancePadding = new Size(\n\t\t\t\t\tPath._getStrokePadding(tolerance,\n\t\t\t\t\t\tmatrix._shiftless().invert()));\n\t\tpoint = matrix._inverseTransform(point);\n\t\tif (!point || !this._children &&\n\t\t\t!this.getBounds({ internal: true, stroke: true, handle: true })\n\t\t\t\t.expand(tolerancePadding.multiply(2))._containsPoint(point)) {\n\t\t\treturn null;\n\t\t}\n\n\t\tvar checkSelf = !(options.guides && !this._guide\n\t\t\t\t|| options.selected && !this.isSelected()\n\t\t\t\t|| options.type && options.type !== Base.hyphenate(this._class)\n\t\t\t\t|| options.class && !(this instanceof options.class)),\n\t\t\tmatch = options.match,\n\t\t\tthat = this,\n\t\t\tbounds,\n\t\t\tres;\n\n\t\tfunction filter(hit) {\n\t\t\tif (hit && match && !match(hit))\n\t\t\t\thit = null;\n\t\t\tif (hit && options.all)\n\t\t\t\toptions.all.push(hit);\n\t\t\treturn hit;\n\t\t}\n\n\t\tfunction checkPoint(type, part) {\n\t\t\tvar pt = part ? bounds['get' + part]() : that.getPosition();\n\t\t\tif (point.subtract(pt).divide(tolerancePadding).length <= 1) {\n\t\t\t\treturn new HitResult(type, that, {\n\t\t\t\t\tname: part ? Base.hyphenate(part) : type,\n\t\t\t\t\tpoint: pt\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tvar checkPosition = options.position,\n\t\t\tcheckCenter = options.center,\n\t\t\tcheckBounds = options.bounds;\n\t\tif (checkSelf && this._parent\n\t\t\t\t&& (checkPosition || checkCenter || checkBounds)) {\n\t\t\tif (checkCenter || checkBounds) {\n\t\t\t\tbounds = this.getInternalBounds();\n\t\t\t}\n\t\t\tres = checkPosition && checkPoint('position') ||\n\t\t\t\t\tcheckCenter && checkPoint('center', 'Center');\n\t\t\tif (!res && checkBounds) {\n\t\t\t\tvar points = [\n\t\t\t\t\t'TopLeft', 'TopRight', 'BottomLeft', 'BottomRight',\n\t\t\t\t\t'LeftCenter', 'TopCenter', 'RightCenter', 'BottomCenter'\n\t\t\t\t];\n\t\t\t\tfor (var i = 0; i < 8 && !res; i++) {\n\t\t\t\t\tres = checkPoint('bounds', points[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tres = filter(res);\n\t\t}\n\n\t\tif (!res) {\n\t\t\tres = this._hitTestChildren(point, options, viewMatrix)\n\t\t\t\t|| checkSelf\n\t\t\t\t\t&& filter(this._hitTestSelf(point, options, viewMatrix,\n\t\t\t\t\t\tthis.getStrokeScaling() ? null\n\t\t\t\t\t\t\t: viewMatrix._shiftless().invert()))\n\t\t\t\t|| null;\n\t\t}\n\t\tif (res && res.point) {\n\t\t\tres.point = matrix.transform(res.point);\n\t\t}\n\t\treturn res;\n\t},\n\n\t_hitTestSelf: function(point, options) {\n\t\tif (options.fill && this.hasFill() && this._contains(point))\n\t\t\treturn new HitResult('fill', this);\n\t},\n\n\tmatches: function(name, compare) {\n\t\tfunction matchObject(obj1, obj2) {\n\t\t\tfor (var i in obj1) {\n\t\t\t\tif (obj1.hasOwnProperty(i)) {\n\t\t\t\t\tvar val1 = obj1[i],\n\t\t\t\t\t\tval2 = obj2[i];\n\t\t\t\t\tif (Base.isPlainObject(val1) && Base.isPlainObject(val2)) {\n\t\t\t\t\t\tif (!matchObject(val1, val2))\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t} else if (!Base.equals(val1, val2)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\tvar type = typeof name;\n\t\tif (type === 'object') {\n\t\t\tfor (var key in name) {\n\t\t\t\tif (name.hasOwnProperty(key) && !this.matches(key, name[key]))\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (type === 'function') {\n\t\t\treturn name(this);\n\t\t} else if (name === 'match') {\n\t\t\treturn compare(this);\n\t\t} else {\n\t\t\tvar value = /^(empty|editable)$/.test(name)\n\t\t\t\t\t? this['is' + Base.capitalize(name)]()\n\t\t\t\t\t: name === 'type'\n\t\t\t\t\t\t? Base.hyphenate(this._class)\n\t\t\t\t\t\t: this[name];\n\t\t\tif (name === 'class') {\n\t\t\t\tif (typeof compare === 'function')\n\t\t\t\t\treturn this instanceof compare;\n\t\t\t\tvalue = this._class;\n\t\t\t}\n\t\t\tif (typeof compare === 'function') {\n\t\t\t\treturn !!compare(value);\n\t\t\t} else if (compare) {\n\t\t\t\tif (compare.test) {\n\t\t\t\t\treturn compare.test(value);\n\t\t\t\t} else if (Base.isPlainObject(compare)) {\n\t\t\t\t\treturn matchObject(compare, value);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn Base.equals(value, compare);\n\t\t}\n\t},\n\n\tgetItems: function(options) {\n\t\treturn Item._getItems(this, options, this._matrix);\n\t},\n\n\tgetItem: function(options) {\n\t\treturn Item._getItems(this, options, this._matrix, null, true)[0]\n\t\t\t\t|| null;\n\t},\n\n\tstatics: {\n\t\t_getItems: function _getItems(item, options, matrix, param, firstOnly) {\n\t\t\tif (!param) {\n\t\t\t\tvar obj = typeof options === 'object' && options,\n\t\t\t\t\toverlapping = obj && obj.overlapping,\n\t\t\t\t\tinside = obj && obj.inside,\n\t\t\t\t\tbounds = overlapping || inside,\n\t\t\t\t\trect = bounds && Rectangle.read([bounds]);\n\t\t\t\tparam = {\n\t\t\t\t\titems: [],\n\t\t\t\t\trecursive: obj && obj.recursive !== false,\n\t\t\t\t\tinside: !!inside,\n\t\t\t\t\toverlapping: !!overlapping,\n\t\t\t\t\trect: rect,\n\t\t\t\t\tpath: overlapping && new Path.Rectangle({\n\t\t\t\t\t\trectangle: rect,\n\t\t\t\t\t\tinsert: false\n\t\t\t\t\t})\n\t\t\t\t};\n\t\t\t\tif (obj) {\n\t\t\t\t\toptions = Base.filter({}, options, {\n\t\t\t\t\t\trecursive: true, inside: true, overlapping: true\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar children = item._children,\n\t\t\t\titems = param.items,\n\t\t\t\trect = param.rect;\n\t\t\tmatrix = rect && (matrix || new Matrix());\n\t\t\tfor (var i = 0, l = children && children.length; i < l; i++) {\n\t\t\t\tvar child = children[i],\n\t\t\t\t\tchildMatrix = matrix && matrix.appended(child._matrix),\n\t\t\t\t\tadd = true;\n\t\t\t\tif (rect) {\n\t\t\t\t\tvar bounds = child.getBounds(childMatrix);\n\t\t\t\t\tif (!rect.intersects(bounds))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif (!(rect.contains(bounds)\n\t\t\t\t\t\t\t|| param.overlapping && (bounds.contains(rect)\n\t\t\t\t\t\t\t\t|| param.path.intersects(child, childMatrix))))\n\t\t\t\t\t\tadd = false;\n\t\t\t\t}\n\t\t\t\tif (add && child.matches(options)) {\n\t\t\t\t\titems.push(child);\n\t\t\t\t\tif (firstOnly)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (param.recursive !== false) {\n\t\t\t\t\t_getItems(child, options, childMatrix, param, firstOnly);\n\t\t\t\t}\n\t\t\t\tif (firstOnly && items.length > 0)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn items;\n\t\t}\n\t}\n}, {\n\n\timportJSON: function(json) {\n\t\tvar res = Base.importJSON(json, this);\n\t\treturn res !== this ? this.addChild(res) : res;\n\t},\n\n\taddChild: function(item) {\n\t\treturn this.insertChild(undefined, item);\n\t},\n\n\tinsertChild: function(index, item) {\n\t\tvar res = item ? this.insertChildren(index, [item]) : null;\n\t\treturn res && res[0];\n\t},\n\n\taddChildren: function(items) {\n\t\treturn this.insertChildren(this._children.length, items);\n\t},\n\n\tinsertChildren: function(index, items) {\n\t\tvar children = this._children;\n\t\tif (children && items && items.length > 0) {\n\t\t\titems = Base.slice(items);\n\t\t\tvar inserted = {};\n\t\t\tfor (var i = items.length - 1; i >= 0; i--) {\n\t\t\t\tvar item = items[i],\n\t\t\t\t\tid = item && item._id;\n\t\t\t\tif (!item || inserted[id]) {\n\t\t\t\t\titems.splice(i, 1);\n\t\t\t\t} else {\n\t\t\t\t\titem._remove(false, true);\n\t\t\t\t\tinserted[id] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tBase.splice(children, items, index, 0);\n\t\t\tvar project = this._project,\n\t\t\t\tnotifySelf = project._changes;\n\t\t\tfor (var i = 0, l = items.length; i < l; i++) {\n\t\t\t\tvar item = items[i],\n\t\t\t\t\tname = item._name;\n\t\t\t\titem._parent = this;\n\t\t\t\titem._setProject(project, true);\n\t\t\t\tif (name)\n\t\t\t\t\titem.setName(name);\n\t\t\t\tif (notifySelf)\n\t\t\t\t\titem._changed(5);\n\t\t\t}\n\t\t\tthis._changed(11);\n\t\t} else {\n\t\t\titems = null;\n\t\t}\n\t\treturn items;\n\t},\n\n\t_insertItem: '#insertChild',\n\n\t_insertAt: function(item, offset) {\n\t\tvar owner = item && item._getOwner(),\n\t\t\tres = item !== this && owner ? this : null;\n\t\tif (res) {\n\t\t\tres._remove(false, true);\n\t\t\towner._insertItem(item._index + offset, res);\n\t\t}\n\t\treturn res;\n\t},\n\n\tinsertAbove: function(item) {\n\t\treturn this._insertAt(item, 1);\n\t},\n\n\tinsertBelow: function(item) {\n\t\treturn this._insertAt(item, 0);\n\t},\n\n\tsendToBack: function() {\n\t\tvar owner = this._getOwner();\n\t\treturn owner ? owner._insertItem(0, this) : null;\n\t},\n\n\tbringToFront: function() {\n\t\tvar owner = this._getOwner();\n\t\treturn owner ? owner._insertItem(undefined, this) : null;\n\t},\n\n\tappendTop: '#addChild',\n\n\tappendBottom: function(item) {\n\t\treturn this.insertChild(0, item);\n\t},\n\n\tmoveAbove: '#insertAbove',\n\n\tmoveBelow: '#insertBelow',\n\n\taddTo: function(owner) {\n\t\treturn owner._insertItem(undefined, this);\n\t},\n\n\tcopyTo: function(owner) {\n\t\treturn this.clone(false).addTo(owner);\n\t},\n\n\treduce: function(options) {\n\t\tvar children = this._children;\n\t\tif (children && children.length === 1) {\n\t\t\tvar child = children[0].reduce(options);\n\t\t\tif (this._parent) {\n\t\t\t\tchild.insertAbove(this);\n\t\t\t\tthis.remove();\n\t\t\t} else {\n\t\t\t\tchild.remove();\n\t\t\t}\n\t\t\treturn child;\n\t\t}\n\t\treturn this;\n\t},\n\n\t_removeNamed: function() {\n\t\tvar owner = this._getOwner();\n\t\tif (owner) {\n\t\t\tvar children = owner._children,\n\t\t\t\tnamedChildren = owner._namedChildren,\n\t\t\t\tname = this._name,\n\t\t\t\tnamedArray = namedChildren[name],\n\t\t\t\tindex = namedArray ? namedArray.indexOf(this) : -1;\n\t\t\tif (index !== -1) {\n\t\t\t\tif (children[name] == this)\n\t\t\t\t\tdelete children[name];\n\t\t\t\tnamedArray.splice(index, 1);\n\t\t\t\tif (namedArray.length) {\n\t\t\t\t\tchildren[name] = namedArray[0];\n\t\t\t\t} else {\n\t\t\t\t\tdelete namedChildren[name];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t_remove: function(notifySelf, notifyParent) {\n\t\tvar owner = this._getOwner(),\n\t\t\tproject = this._project,\n\t\t\tindex = this._index;\n\t\tif (this._style)\n\t\t\tthis._style._dispose();\n\t\tif (owner) {\n\t\t\tif (this._name)\n\t\t\t\tthis._removeNamed();\n\t\t\tif (index != null) {\n\t\t\t\tif (project._activeLayer === this)\n\t\t\t\t\tproject._activeLayer = this.getNextSibling()\n\t\t\t\t\t\t\t|| this.getPreviousSibling();\n\t\t\t\tBase.splice(owner._children, null, index, 1);\n\t\t\t}\n\t\t\tthis._installEvents(false);\n\t\t\tif (notifySelf && project._changes)\n\t\t\t\tthis._changed(5);\n\t\t\tif (notifyParent)\n\t\t\t\towner._changed(11, this);\n\t\t\tthis._parent = null;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t},\n\n\tremove: function() {\n\t\treturn this._remove(true, true);\n\t},\n\n\treplaceWith: function(item) {\n\t\tvar ok = item && item.insertBelow(this);\n\t\tif (ok)\n\t\t\tthis.remove();\n\t\treturn ok;\n\t},\n\n\tremoveChildren: function(start, end) {\n\t\tif (!this._children)\n\t\t\treturn null;\n\t\tstart = start || 0;\n\t\tend = Base.pick(end, this._children.length);\n\t\tvar removed = Base.splice(this._children, null, start, end - start);\n\t\tfor (var i = removed.length - 1; i >= 0; i--) {\n\t\t\tremoved[i]._remove(true, false);\n\t\t}\n\t\tif (removed.length > 0)\n\t\t\tthis._changed(11);\n\t\treturn removed;\n\t},\n\n\tclear: '#removeChildren',\n\n\treverseChildren: function() {\n\t\tif (this._children) {\n\t\t\tthis._children.reverse();\n\t\t\tfor (var i = 0, l = this._children.length; i < l; i++)\n\t\t\t\tthis._children[i]._index = i;\n\t\t\tthis._changed(11);\n\t\t}\n\t},\n\n\tisEmpty: function(recursively) {\n\t\tvar children = this._children;\n\t\tvar numChildren = children ? children.length : 0;\n\t\tif (recursively) {\n\t\t\tfor (var i = 0; i < numChildren; i++) {\n\t\t\t\tif (!children[i].isEmpty(recursively)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn !numChildren;\n\t},\n\n\tisEditable: function() {\n\t\tvar item = this;\n\t\twhile (item) {\n\t\t\tif (!item._visible || item._locked)\n\t\t\t\treturn false;\n\t\t\titem = item._parent;\n\t\t}\n\t\treturn true;\n\t},\n\n\thasFill: function() {\n\t\treturn this.getStyle().hasFill();\n\t},\n\n\thasStroke: function() {\n\t\treturn this.getStyle().hasStroke();\n\t},\n\n\thasShadow: function() {\n\t\treturn this.getStyle().hasShadow();\n\t},\n\n\t_getOrder: function(item) {\n\t\tfunction getList(item) {\n\t\t\tvar list = [];\n\t\t\tdo {\n\t\t\t\tlist.unshift(item);\n\t\t\t} while (item = item._parent);\n\t\t\treturn list;\n\t\t}\n\t\tvar list1 = getList(this),\n\t\t\tlist2 = getList(item);\n\t\tfor (var i = 0, l = Math.min(list1.length, list2.length); i < l; i++) {\n\t\t\tif (list1[i] != list2[i]) {\n\t\t\t\treturn list1[i]._index < list2[i]._index ? 1 : -1;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t},\n\n\thasChildren: function() {\n\t\treturn this._children && this._children.length > 0;\n\t},\n\n\tisInserted: function() {\n\t\treturn this._parent ? this._parent.isInserted() : false;\n\t},\n\n\tisAbove: function(item) {\n\t\treturn this._getOrder(item) === -1;\n\t},\n\n\tisBelow: function(item) {\n\t\treturn this._getOrder(item) === 1;\n\t},\n\n\tisParent: function(item) {\n\t\treturn this._parent === item;\n\t},\n\n\tisChild: function(item) {\n\t\treturn item && item._parent === this;\n\t},\n\n\tisDescendant: function(item) {\n\t\tvar parent = this;\n\t\twhile (parent = parent._parent) {\n\t\t\tif (parent === item)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t},\n\n\tisAncestor: function(item) {\n\t\treturn item ? item.isDescendant(this) : false;\n\t},\n\n\tisSibling: function(item) {\n\t\treturn this._parent === item._parent;\n\t},\n\n\tisGroupedWith: function(item) {\n\t\tvar parent = this._parent;\n\t\twhile (parent) {\n\t\t\tif (parent._parent\n\t\t\t\t&& /^(Group|Layer|CompoundPath)$/.test(parent._class)\n\t\t\t\t&& item.isDescendant(parent))\n\t\t\t\t\treturn true;\n\t\t\tparent = parent._parent;\n\t\t}\n\t\treturn false;\n\t},\n\n}, Base.each(['rotate', 'scale', 'shear', 'skew'], function(key) {\n\tvar rotate = key === 'rotate';\n\tthis[key] = function() {\n\t\tvar args = arguments,\n\t\t\tvalue = (rotate ? Base : Point).read(args),\n\t\t\tcenter = Point.read(args, 0, { readNull: true });\n\t\treturn this.transform(new Matrix()[key](value,\n\t\t\t\tcenter || this.getPosition(true)));\n\t};\n}, {\n\ttranslate: function() {\n\t\tvar mx = new Matrix();\n\t\treturn this.transform(mx.translate.apply(mx, arguments));\n\t},\n\n\ttransform: function(matrix, _applyRecursively, _setApplyMatrix) {\n\t\tvar _matrix = this._matrix,\n\t\t\ttransformMatrix = matrix && !matrix.isIdentity(),\n\t\t\tapplyMatrix = (\n\t\t\t\t_setApplyMatrix && this._canApplyMatrix ||\n\t\t\t\tthis._applyMatrix && (\n\t\t\t\t\ttransformMatrix || !_matrix.isIdentity() ||\n\t\t\t\t\t_applyRecursively && this._children\n\t\t\t\t)\n\t\t\t);\n\t\tif (!transformMatrix && !applyMatrix)\n\t\t\treturn this;\n\t\tif (transformMatrix) {\n\t\t\tif (!matrix.isInvertible() && _matrix.isInvertible())\n\t\t\t\t_matrix._backup = _matrix.getValues();\n\t\t\t_matrix.prepend(matrix, true);\n\t\t\tvar style = this._style,\n\t\t\t\tfillColor = style.getFillColor(true),\n\t\t\t\tstrokeColor = style.getStrokeColor(true);\n\t\t\tif (fillColor)\n\t\t\t\tfillColor.transform(matrix);\n\t\t\tif (strokeColor)\n\t\t\t\tstrokeColor.transform(matrix);\n\t\t}\n\n\t\tif (applyMatrix && (applyMatrix = this._transformContent(\n\t\t\t\t_matrix, _applyRecursively, _setApplyMatrix))) {\n\t\t\tvar pivot = this._pivot;\n\t\t\tif (pivot)\n\t\t\t\t_matrix._transformPoint(pivot, pivot, true);\n\t\t\t_matrix.reset(true);\n\t\t\tif (_setApplyMatrix && this._canApplyMatrix)\n\t\t\t\tthis._applyMatrix = true;\n\t\t}\n\t\tvar bounds = this._bounds,\n\t\t\tposition = this._position;\n\t\tif (transformMatrix || applyMatrix) {\n\t\t\tthis._changed(25);\n\t\t}\n\t\tvar decomp = transformMatrix && bounds && matrix.decompose();\n\t\tif (decomp && decomp.skewing.isZero() && decomp.rotation % 90 === 0) {\n\t\t\tfor (var key in bounds) {\n\t\t\t\tvar cache = bounds[key];\n\t\t\t\tif (cache.nonscaling) {\n\t\t\t\t\tdelete bounds[key];\n\t\t\t\t} else if (applyMatrix || !cache.internal) {\n\t\t\t\t\tvar rect = cache.rect;\n\t\t\t\t\tmatrix._transformBounds(rect, rect);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis._bounds = bounds;\n\t\t\tvar cached = bounds[this._getBoundsCacheKey(\n\t\t\t\tthis._boundsOptions || {})];\n\t\t\tif (cached) {\n\t\t\t\tthis._position = this._getPositionFromBounds(cached.rect);\n\t\t\t}\n\t\t} else if (transformMatrix && position && this._pivot) {\n\t\t\tthis._position = matrix._transformPoint(position, position);\n\t\t}\n\t\treturn this;\n\t},\n\n\t_transformContent: function(matrix, applyRecursively, setApplyMatrix) {\n\t\tvar children = this._children;\n\t\tif (children) {\n\t\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\t\tchildren[i].transform(matrix, applyRecursively, setApplyMatrix);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t},\n\n\tglobalToLocal: function() {\n\t\treturn this.getGlobalMatrix(true)._inverseTransform(\n\t\t\t\tPoint.read(arguments));\n\t},\n\n\tlocalToGlobal: function() {\n\t\treturn this.getGlobalMatrix(true)._transformPoint(\n\t\t\t\tPoint.read(arguments));\n\t},\n\n\tparentToLocal: function() {\n\t\treturn this._matrix._inverseTransform(Point.read(arguments));\n\t},\n\n\tlocalToParent: function() {\n\t\treturn this._matrix._transformPoint(Point.read(arguments));\n\t},\n\n\tfitBounds: function(rectangle, fill) {\n\t\trectangle = Rectangle.read(arguments);\n\t\tvar bounds = this.getBounds(),\n\t\t\titemRatio = bounds.height / bounds.width,\n\t\t\trectRatio = rectangle.height / rectangle.width,\n\t\t\tscale = (fill ? itemRatio > rectRatio : itemRatio < rectRatio)\n\t\t\t\t\t? rectangle.width / bounds.width\n\t\t\t\t\t: rectangle.height / bounds.height,\n\t\t\tnewBounds = new Rectangle(new Point(),\n\t\t\t\t\tnew Size(bounds.width * scale, bounds.height * scale));\n\t\tnewBounds.setCenter(rectangle.getCenter());\n\t\tthis.setBounds(newBounds);\n\t}\n}), {\n\n\t_setStyles: function(ctx, param, viewMatrix) {\n\t\tvar style = this._style,\n\t\t\tmatrix = this._matrix;\n\t\tif (style.hasFill()) {\n\t\t\tctx.fillStyle = style.getFillColor().toCanvasStyle(ctx, matrix);\n\t\t}\n\t\tif (style.hasStroke()) {\n\t\t\tctx.strokeStyle = style.getStrokeColor().toCanvasStyle(ctx, matrix);\n\t\t\tctx.lineWidth = style.getStrokeWidth();\n\t\t\tvar strokeJoin = style.getStrokeJoin(),\n\t\t\t\tstrokeCap = style.getStrokeCap(),\n\t\t\t\tmiterLimit = style.getMiterLimit();\n\t\t\tif (strokeJoin)\n\t\t\t\tctx.lineJoin = strokeJoin;\n\t\t\tif (strokeCap)\n\t\t\t\tctx.lineCap = strokeCap;\n\t\t\tif (miterLimit)\n\t\t\t\tctx.miterLimit = miterLimit;\n\t\t\tif (paper.support.nativeDash) {\n\t\t\t\tvar dashArray = style.getDashArray(),\n\t\t\t\t\tdashOffset = style.getDashOffset();\n\t\t\t\tif (dashArray && dashArray.length) {\n\t\t\t\t\tif ('setLineDash' in ctx) {\n\t\t\t\t\t\tctx.setLineDash(dashArray);\n\t\t\t\t\t\tctx.lineDashOffset = dashOffset;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tctx.mozDash = dashArray;\n\t\t\t\t\t\tctx.mozDashOffset = dashOffset;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (style.hasShadow()) {\n\t\t\tvar pixelRatio = param.pixelRatio || 1,\n\t\t\t\tmx = viewMatrix._shiftless().prepend(\n\t\t\t\t\tnew Matrix().scale(pixelRatio, pixelRatio)),\n\t\t\t\tblur = mx.transform(new Point(style.getShadowBlur(), 0)),\n\t\t\t\toffset = mx.transform(this.getShadowOffset());\n\t\t\tctx.shadowColor = style.getShadowColor().toCanvasStyle(ctx);\n\t\t\tctx.shadowBlur = blur.getLength();\n\t\t\tctx.shadowOffsetX = offset.x;\n\t\t\tctx.shadowOffsetY = offset.y;\n\t\t}\n\t},\n\n\tdraw: function(ctx, param, parentStrokeMatrix) {\n\t\tvar updateVersion = this._updateVersion = this._project._updateVersion;\n\t\tif (!this._visible || this._opacity === 0)\n\t\t\treturn;\n\t\tvar matrices = param.matrices,\n\t\t\tviewMatrix = param.viewMatrix,\n\t\t\tmatrix = this._matrix,\n\t\t\tglobalMatrix = matrices[matrices.length - 1].appended(matrix);\n\t\tif (!globalMatrix.isInvertible())\n\t\t\treturn;\n\n\t\tviewMatrix = viewMatrix ? viewMatrix.appended(globalMatrix)\n\t\t\t\t: globalMatrix;\n\n\t\tmatrices.push(globalMatrix);\n\t\tif (param.updateMatrix) {\n\t\t\tthis._globalMatrix = globalMatrix;\n\t\t}\n\n\t\tvar blendMode = this._blendMode,\n\t\t\topacity = Numerical.clamp(this._opacity, 0, 1),\n\t\t\tnormalBlend = blendMode === 'normal',\n\t\t\tnativeBlend = BlendMode.nativeModes[blendMode],\n\t\t\tdirect = normalBlend && opacity === 1\n\t\t\t\t\t|| param.dontStart\n\t\t\t\t\t|| param.clip\n\t\t\t\t\t|| (nativeBlend || normalBlend && opacity < 1)\n\t\t\t\t\t\t&& this._canComposite(),\n\t\t\tpixelRatio = param.pixelRatio || 1,\n\t\t\tmainCtx, itemOffset, prevOffset;\n\t\tif (!direct) {\n\t\t\tvar bounds = this.getStrokeBounds(viewMatrix);\n\t\t\tif (!bounds.width || !bounds.height) {\n\t\t\t\tmatrices.pop();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprevOffset = param.offset;\n\t\t\titemOffset = param.offset = bounds.getTopLeft().floor();\n\t\t\tmainCtx = ctx;\n\t\t\tctx = CanvasProvider.getContext(bounds.getSize().ceil().add(1)\n\t\t\t\t\t.multiply(pixelRatio));\n\t\t\tif (pixelRatio !== 1)\n\t\t\t\tctx.scale(pixelRatio, pixelRatio);\n\t\t}\n\t\tctx.save();\n\t\tvar strokeMatrix = parentStrokeMatrix\n\t\t\t\t? parentStrokeMatrix.appended(matrix)\n\t\t\t\t: this._canScaleStroke && !this.getStrokeScaling(true)\n\t\t\t\t\t&& viewMatrix,\n\t\t\tclip = !direct && param.clipItem,\n\t\t\ttransform = !strokeMatrix || clip;\n\t\tif (direct) {\n\t\t\tctx.globalAlpha = opacity;\n\t\t\tif (nativeBlend)\n\t\t\t\tctx.globalCompositeOperation = blendMode;\n\t\t} else if (transform) {\n\t\t\tctx.translate(-itemOffset.x, -itemOffset.y);\n\t\t}\n\t\tif (transform) {\n\t\t\t(direct ? matrix : viewMatrix).applyToContext(ctx);\n\t\t}\n\t\tif (clip) {\n\t\t\tparam.clipItem.draw(ctx, param.extend({ clip: true }));\n\t\t}\n\t\tif (strokeMatrix) {\n\t\t\tctx.setTransform(pixelRatio, 0, 0, pixelRatio, 0, 0);\n\t\t\tvar offset = param.offset;\n\t\t\tif (offset)\n\t\t\t\tctx.translate(-offset.x, -offset.y);\n\t\t}\n\t\tthis._draw(ctx, param, viewMatrix, strokeMatrix);\n\t\tctx.restore();\n\t\tmatrices.pop();\n\t\tif (param.clip && !param.dontFinish) {\n\t\t\tctx.clip(this.getFillRule());\n\t\t}\n\t\tif (!direct) {\n\t\t\tBlendMode.process(blendMode, ctx, mainCtx, opacity,\n\t\t\t\t\titemOffset.subtract(prevOffset).multiply(pixelRatio));\n\t\t\tCanvasProvider.release(ctx);\n\t\t\tparam.offset = prevOffset;\n\t\t}\n\t},\n\n\t_isUpdated: function(updateVersion) {\n\t\tvar parent = this._parent;\n\t\tif (parent instanceof CompoundPath)\n\t\t\treturn parent._isUpdated(updateVersion);\n\t\tvar updated = this._updateVersion === updateVersion;\n\t\tif (!updated && parent && parent._visible\n\t\t\t\t&& parent._isUpdated(updateVersion)) {\n\t\t\tthis._updateVersion = updateVersion;\n\t\t\tupdated = true;\n\t\t}\n\t\treturn updated;\n\t},\n\n\t_drawSelection: function(ctx, matrix, size, selectionItems, updateVersion) {\n\t\tvar selection = this._selection,\n\t\t\titemSelected = selection & 1,\n\t\t\tboundsSelected = selection & 2\n\t\t\t\t\t|| itemSelected && this._selectBounds,\n\t\t\tpositionSelected = selection & 4;\n\t\tif (!this._drawSelected)\n\t\t\titemSelected = false;\n\t\tif ((itemSelected || boundsSelected || positionSelected)\n\t\t\t\t&& this._isUpdated(updateVersion)) {\n\t\t\tvar layer,\n\t\t\t\tcolor = this.getSelectedColor(true) || (layer = this.getLayer())\n\t\t\t\t\t&& layer.getSelectedColor(true),\n\t\t\t\tmx = matrix.appended(this.getGlobalMatrix(true)),\n\t\t\t\thalf = size / 2;\n\t\t\tctx.strokeStyle = ctx.fillStyle = color\n\t\t\t\t\t? color.toCanvasStyle(ctx) : '#009dec';\n\t\t\tif (itemSelected)\n\t\t\t\tthis._drawSelected(ctx, mx, selectionItems);\n\t\t\tif (positionSelected) {\n\t\t\t\tvar pos = this.getPosition(true),\n\t\t\t\t\tparent = this._parent,\n\t\t\t\t\tpoint = parent ? parent.localToGlobal(pos) : pos,\n\t\t\t\t\tx = point.x,\n\t\t\t\t\ty = point.y;\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.arc(x, y, half, 0, Math.PI * 2, true);\n\t\t\t\tctx.stroke();\n\t\t\t\tvar deltas = [[0, -1], [1, 0], [0, 1], [-1, 0]],\n\t\t\t\t\tstart = half,\n\t\t\t\t\tend = size + 1;\n\t\t\t\tfor (var i = 0; i < 4; i++) {\n\t\t\t\t\tvar delta = deltas[i],\n\t\t\t\t\t\tdx = delta[0],\n\t\t\t\t\t\tdy = delta[1];\n\t\t\t\t\tctx.moveTo(x + dx * start, y + dy * start);\n\t\t\t\t\tctx.lineTo(x + dx * end, y + dy * end);\n\t\t\t\t\tctx.stroke();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (boundsSelected) {\n\t\t\t\tvar coords = mx._transformCorners(this.getInternalBounds());\n\t\t\t\tctx.beginPath();\n\t\t\t\tfor (var i = 0; i < 8; i++) {\n\t\t\t\t\tctx[!i ? 'moveTo' : 'lineTo'](coords[i], coords[++i]);\n\t\t\t\t}\n\t\t\t\tctx.closePath();\n\t\t\t\tctx.stroke();\n\t\t\t\tfor (var i = 0; i < 8; i++) {\n\t\t\t\t\tctx.fillRect(coords[i] - half, coords[++i] - half,\n\t\t\t\t\t\t\tsize, size);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t_canComposite: function() {\n\t\treturn false;\n\t}\n}, Base.each(['down', 'drag', 'up', 'move'], function(key) {\n\tthis['removeOn' + Base.capitalize(key)] = function() {\n\t\tvar hash = {};\n\t\thash[key] = true;\n\t\treturn this.removeOn(hash);\n\t};\n}, {\n\n\tremoveOn: function(obj) {\n\t\tfor (var name in obj) {\n\t\t\tif (obj[name]) {\n\t\t\t\tvar key = 'mouse' + name,\n\t\t\t\t\tproject = this._project,\n\t\t\t\t\tsets = project._removeSets = project._removeSets || {};\n\t\t\t\tsets[key] = sets[key] || {};\n\t\t\t\tsets[key][this._id] = this;\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n}), {\n\ttween: function(from, to, options) {\n\t\tif (!options) {\n\t\t\toptions = to;\n\t\t\tto = from;\n\t\t\tfrom = null;\n\t\t\tif (!options) {\n\t\t\t\toptions = to;\n\t\t\t\tto = null;\n\t\t\t}\n\t\t}\n\t\tvar easing = options && options.easing,\n\t\t\tstart = options && options.start,\n\t\t\tduration = options != null && (\n\t\t\t\ttypeof options === 'number' ? options : options.duration\n\t\t\t),\n\t\t\ttween = new Tween(this, from, to, duration, easing, start);\n\t\tfunction onFrame(event) {\n\t\t\ttween._handleFrame(event.time * 1000);\n\t\t\tif (!tween.running) {\n\t\t\t\tthis.off('frame', onFrame);\n\t\t\t}\n\t\t}\n\t\tif (duration) {\n\t\t\tthis.on('frame', onFrame);\n\t\t}\n\t\treturn tween;\n\t},\n\n\ttweenTo: function(to, options) {\n\t\treturn this.tween(null, to, options);\n\t},\n\n\ttweenFrom: function(from, options) {\n\t\treturn this.tween(from, null, options);\n\t}\n});\n\nvar Group = Item.extend({\n\t_class: 'Group',\n\t_selectBounds: false,\n\t_selectChildren: true,\n\t_serializeFields: {\n\t\tchildren: []\n\t},\n\n\tinitialize: function Group(arg) {\n\t\tthis._children = [];\n\t\tthis._namedChildren = {};\n\t\tif (!this._initialize(arg))\n\t\t\tthis.addChildren(Array.isArray(arg) ? arg : arguments);\n\t},\n\n\t_changed: function _changed(flags) {\n\t\t_changed.base.call(this, flags);\n\t\tif (flags & 2050) {\n\t\t\tthis._clipItem = undefined;\n\t\t}\n\t},\n\n\t_getClipItem: function() {\n\t\tvar clipItem = this._clipItem;\n\t\tif (clipItem === undefined) {\n\t\t\tclipItem = null;\n\t\t\tvar children = this._children;\n\t\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\t\tif (children[i]._clipMask) {\n\t\t\t\t\tclipItem = children[i];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis._clipItem = clipItem;\n\t\t}\n\t\treturn clipItem;\n\t},\n\n\tisClipped: function() {\n\t\treturn !!this._getClipItem();\n\t},\n\n\tsetClipped: function(clipped) {\n\t\tvar child = this.getFirstChild();\n\t\tif (child)\n\t\t\tchild.setClipMask(clipped);\n\t},\n\n\t_getBounds: function _getBounds(matrix, options) {\n\t\tvar clipItem = this._getClipItem();\n\t\treturn clipItem\n\t\t\t? clipItem._getCachedBounds(clipItem._matrix.prepended(matrix),\n\t\t\t\tBase.set({}, options, { stroke: false }))\n\t\t\t: _getBounds.base.call(this, matrix, options);\n\t},\n\n\t_hitTestChildren: function _hitTestChildren(point, options, viewMatrix) {\n\t\tvar clipItem = this._getClipItem();\n\t\treturn (!clipItem || clipItem.contains(point))\n\t\t\t\t&& _hitTestChildren.base.call(this, point, options, viewMatrix,\n\t\t\t\t\tclipItem);\n\t},\n\n\t_draw: function(ctx, param) {\n\t\tvar clip = param.clip,\n\t\t\tclipItem = !clip && this._getClipItem();\n\t\tparam = param.extend({ clipItem: clipItem, clip: false });\n\t\tif (clip) {\n\t\t\tctx.beginPath();\n\t\t\tparam.dontStart = param.dontFinish = true;\n\t\t} else if (clipItem) {\n\t\t\tclipItem.draw(ctx, param.extend({ clip: true }));\n\t\t}\n\t\tvar children = this._children;\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tvar item = children[i];\n\t\t\tif (item !== clipItem)\n\t\t\t\titem.draw(ctx, param);\n\t\t}\n\t}\n});\n\nvar Layer = Group.extend({\n\t_class: 'Layer',\n\n\tinitialize: function Layer() {\n\t\tGroup.apply(this, arguments);\n\t},\n\n\t_getOwner: function() {\n\t\treturn this._parent || this._index != null && this._project;\n\t},\n\n\tisInserted: function isInserted() {\n\t\treturn this._parent ? isInserted.base.call(this) : this._index != null;\n\t},\n\n\tactivate: function() {\n\t\tthis._project._activeLayer = this;\n\t},\n\n\t_hitTestSelf: function() {\n\t}\n});\n\nvar Shape = Item.extend({\n\t_class: 'Shape',\n\t_applyMatrix: false,\n\t_canApplyMatrix: false,\n\t_canScaleStroke: true,\n\t_serializeFields: {\n\t\ttype: null,\n\t\tsize: null,\n\t\tradius: null\n\t},\n\n\tinitialize: function Shape(props, point) {\n\t\tthis._initialize(props, point);\n\t},\n\n\t_equals: function(item) {\n\t\treturn this._type === item._type\n\t\t\t&& this._size.equals(item._size)\n\t\t\t&& Base.equals(this._radius, item._radius);\n\t},\n\n\tcopyContent: function(source) {\n\t\tthis.setType(source._type);\n\t\tthis.setSize(source._size);\n\t\tthis.setRadius(source._radius);\n\t},\n\n\tgetType: function() {\n\t\treturn this._type;\n\t},\n\n\tsetType: function(type) {\n\t\tthis._type = type;\n\t},\n\n\tgetShape: '#getType',\n\tsetShape: '#setType',\n\n\tgetSize: function() {\n\t\tvar size = this._size;\n\t\treturn new LinkedSize(size.width, size.height, this, 'setSize');\n\t},\n\n\tsetSize: function() {\n\t\tvar size = Size.read(arguments);\n\t\tif (!this._size) {\n\t\t\tthis._size = size.clone();\n\t\t} else if (!this._size.equals(size)) {\n\t\t\tvar type = this._type,\n\t\t\t\twidth = size.width,\n\t\t\t\theight = size.height;\n\t\t\tif (type === 'rectangle') {\n\t\t\t\tthis._radius.set(Size.min(this._radius, size.divide(2).abs()));\n\t\t\t} else if (type === 'circle') {\n\t\t\t\twidth = height = (width + height) / 2;\n\t\t\t\tthis._radius = width / 2;\n\t\t\t} else if (type === 'ellipse') {\n\t\t\t\tthis._radius._set(width / 2, height / 2);\n\t\t\t}\n\t\t\tthis._size._set(width, height);\n\t\t\tthis._changed(9);\n\t\t}\n\t},\n\n\tgetRadius: function() {\n\t\tvar rad = this._radius;\n\t\treturn this._type === 'circle'\n\t\t\t\t? rad\n\t\t\t\t: new LinkedSize(rad.width, rad.height, this, 'setRadius');\n\t},\n\n\tsetRadius: function(radius) {\n\t\tvar type = this._type;\n\t\tif (type === 'circle') {\n\t\t\tif (radius === this._radius)\n\t\t\t\treturn;\n\t\t\tvar size = radius * 2;\n\t\t\tthis._radius = radius;\n\t\t\tthis._size._set(size, size);\n\t\t} else {\n\t\t\tradius = Size.read(arguments);\n\t\t\tif (!this._radius) {\n\t\t\t\tthis._radius = radius.clone();\n\t\t\t} else {\n\t\t\t\tif (this._radius.equals(radius))\n\t\t\t\t\treturn;\n\t\t\t\tthis._radius.set(radius);\n\t\t\t\tif (type === 'rectangle') {\n\t\t\t\t\tvar size = Size.max(this._size, radius.multiply(2));\n\t\t\t\t\tthis._size.set(size);\n\t\t\t\t} else if (type === 'ellipse') {\n\t\t\t\t\tthis._size._set(radius.width * 2, radius.height * 2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis._changed(9);\n\t},\n\n\tisEmpty: function() {\n\t\treturn false;\n\t},\n\n\ttoPath: function(insert) {\n\t\tvar path = new Path[Base.capitalize(this._type)]({\n\t\t\tcenter: new Point(),\n\t\t\tsize: this._size,\n\t\t\tradius: this._radius,\n\t\t\tinsert: false\n\t\t});\n\t\tpath.copyAttributes(this);\n\t\tif (paper.settings.applyMatrix)\n\t\t\tpath.setApplyMatrix(true);\n\t\tif (insert === undefined || insert)\n\t\t\tpath.insertAbove(this);\n\t\treturn path;\n\t},\n\n\ttoShape: '#clone',\n\n\t_asPathItem: function() {\n\t\treturn this.toPath(false);\n\t},\n\n\t_draw: function(ctx, param, viewMatrix, strokeMatrix) {\n\t\tvar style = this._style,\n\t\t\thasFill = style.hasFill(),\n\t\t\thasStroke = style.hasStroke(),\n\t\t\tdontPaint = param.dontFinish || param.clip,\n\t\t\tuntransformed = !strokeMatrix;\n\t\tif (hasFill || hasStroke || dontPaint) {\n\t\t\tvar type = this._type,\n\t\t\t\tradius = this._radius,\n\t\t\t\tisCircle = type === 'circle';\n\t\t\tif (!param.dontStart)\n\t\t\t\tctx.beginPath();\n\t\t\tif (untransformed && isCircle) {\n\t\t\t\tctx.arc(0, 0, radius, 0, Math.PI * 2, true);\n\t\t\t} else {\n\t\t\t\tvar rx = isCircle ? radius : radius.width,\n\t\t\t\t\try = isCircle ? radius : radius.height,\n\t\t\t\t\tsize = this._size,\n\t\t\t\t\twidth = size.width,\n\t\t\t\t\theight = size.height;\n\t\t\t\tif (untransformed && type === 'rectangle' && rx === 0 && ry === 0) {\n\t\t\t\t\tctx.rect(-width / 2, -height / 2, width, height);\n\t\t\t\t} else {\n\t\t\t\t\tvar x = width / 2,\n\t\t\t\t\t\ty = height / 2,\n\t\t\t\t\t\tkappa = 1 - 0.5522847498307936,\n\t\t\t\t\t\tcx = rx * kappa,\n\t\t\t\t\t\tcy = ry * kappa,\n\t\t\t\t\t\tc = [\n\t\t\t\t\t\t\t-x, -y + ry,\n\t\t\t\t\t\t\t-x, -y + cy,\n\t\t\t\t\t\t\t-x + cx, -y,\n\t\t\t\t\t\t\t-x + rx, -y,\n\t\t\t\t\t\t\tx - rx, -y,\n\t\t\t\t\t\t\tx - cx, -y,\n\t\t\t\t\t\t\tx, -y + cy,\n\t\t\t\t\t\t\tx, -y + ry,\n\t\t\t\t\t\t\tx, y - ry,\n\t\t\t\t\t\t\tx, y - cy,\n\t\t\t\t\t\t\tx - cx, y,\n\t\t\t\t\t\t\tx - rx, y,\n\t\t\t\t\t\t\t-x + rx, y,\n\t\t\t\t\t\t\t-x + cx, y,\n\t\t\t\t\t\t\t-x, y - cy,\n\t\t\t\t\t\t\t-x, y - ry\n\t\t\t\t\t\t];\n\t\t\t\t\tif (strokeMatrix)\n\t\t\t\t\t\tstrokeMatrix.transform(c, c, 32);\n\t\t\t\t\tctx.moveTo(c[0], c[1]);\n\t\t\t\t\tctx.bezierCurveTo(c[2], c[3], c[4], c[5], c[6], c[7]);\n\t\t\t\t\tif (x !== rx)\n\t\t\t\t\t\tctx.lineTo(c[8], c[9]);\n\t\t\t\t\tctx.bezierCurveTo(c[10], c[11], c[12], c[13], c[14], c[15]);\n\t\t\t\t\tif (y !== ry)\n\t\t\t\t\t\tctx.lineTo(c[16], c[17]);\n\t\t\t\t\tctx.bezierCurveTo(c[18], c[19], c[20], c[21], c[22], c[23]);\n\t\t\t\t\tif (x !== rx)\n\t\t\t\t\t\tctx.lineTo(c[24], c[25]);\n\t\t\t\t\tctx.bezierCurveTo(c[26], c[27], c[28], c[29], c[30], c[31]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tctx.closePath();\n\t\t}\n\t\tif (!dontPaint && (hasFill || hasStroke)) {\n\t\t\tthis._setStyles(ctx, param, viewMatrix);\n\t\t\tif (hasFill) {\n\t\t\t\tctx.fill(style.getFillRule());\n\t\t\t\tctx.shadowColor = 'rgba(0,0,0,0)';\n\t\t\t}\n\t\t\tif (hasStroke)\n\t\t\t\tctx.stroke();\n\t\t}\n\t},\n\n\t_canComposite: function() {\n\t\treturn !(this.hasFill() && this.hasStroke());\n\t},\n\n\t_getBounds: function(matrix, options) {\n\t\tvar rect = new Rectangle(this._size).setCenter(0, 0),\n\t\t\tstyle = this._style,\n\t\t\tstrokeWidth = options.stroke && style.hasStroke()\n\t\t\t\t\t&& style.getStrokeWidth();\n\t\tif (matrix)\n\t\t\trect = matrix._transformBounds(rect);\n\t\treturn strokeWidth\n\t\t\t\t? rect.expand(Path._getStrokePadding(strokeWidth,\n\t\t\t\t\tthis._getStrokeMatrix(matrix, options)))\n\t\t\t\t: rect;\n\t}\n},\nnew function() {\n\tfunction getCornerCenter(that, point, expand) {\n\t\tvar radius = that._radius;\n\t\tif (!radius.isZero()) {\n\t\t\tvar halfSize = that._size.divide(2);\n\t\t\tfor (var q = 1; q <= 4; q++) {\n\t\t\t\tvar dir = new Point(q > 1 && q < 4 ? -1 : 1, q > 2 ? -1 : 1),\n\t\t\t\t\tcorner = dir.multiply(halfSize),\n\t\t\t\t\tcenter = corner.subtract(dir.multiply(radius)),\n\t\t\t\t\trect = new Rectangle(\n\t\t\t\t\t\t\texpand ? corner.add(dir.multiply(expand)) : corner,\n\t\t\t\t\t\t\tcenter);\n\t\t\t\tif (rect.contains(point))\n\t\t\t\t\treturn { point: center, quadrant: q };\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction isOnEllipseStroke(point, radius, padding, quadrant) {\n\t\tvar vector = point.divide(radius);\n\t\treturn (!quadrant || vector.isInQuadrant(quadrant)) &&\n\t\t\t\tvector.subtract(vector.normalize()).multiply(radius)\n\t\t\t\t\t.divide(padding).length <= 1;\n\t}\n\n\treturn {\n\t\t_contains: function _contains(point) {\n\t\t\tif (this._type === 'rectangle') {\n\t\t\t\tvar center = getCornerCenter(this, point);\n\t\t\t\treturn center\n\t\t\t\t\t\t? point.subtract(center.point).divide(this._radius)\n\t\t\t\t\t\t\t.getLength() <= 1\n\t\t\t\t\t\t: _contains.base.call(this, point);\n\t\t\t} else {\n\t\t\t\treturn point.divide(this.size).getLength() <= 0.5;\n\t\t\t}\n\t\t},\n\n\t\t_hitTestSelf: function _hitTestSelf(point, options, viewMatrix,\n\t\t\t\tstrokeMatrix) {\n\t\t\tvar hit = false,\n\t\t\t\tstyle = this._style,\n\t\t\t\thitStroke = options.stroke && style.hasStroke(),\n\t\t\t\thitFill = options.fill && style.hasFill();\n\t\t\tif (hitStroke || hitFill) {\n\t\t\t\tvar type = this._type,\n\t\t\t\t\tradius = this._radius,\n\t\t\t\t\tstrokeRadius = hitStroke ? style.getStrokeWidth() / 2 : 0,\n\t\t\t\t\tstrokePadding = options._tolerancePadding.add(\n\t\t\t\t\t\tPath._getStrokePadding(strokeRadius,\n\t\t\t\t\t\t\t!style.getStrokeScaling() && strokeMatrix));\n\t\t\t\tif (type === 'rectangle') {\n\t\t\t\t\tvar padding = strokePadding.multiply(2),\n\t\t\t\t\t\tcenter = getCornerCenter(this, point, padding);\n\t\t\t\t\tif (center) {\n\t\t\t\t\t\thit = isOnEllipseStroke(point.subtract(center.point),\n\t\t\t\t\t\t\t\tradius, strokePadding, center.quadrant);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar rect = new Rectangle(this._size).setCenter(0, 0),\n\t\t\t\t\t\t\touter = rect.expand(padding),\n\t\t\t\t\t\t\tinner = rect.expand(padding.negate());\n\t\t\t\t\t\thit = outer._containsPoint(point)\n\t\t\t\t\t\t\t\t&& !inner._containsPoint(point);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\thit = isOnEllipseStroke(point, radius, strokePadding);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn hit ? new HitResult(hitStroke ? 'stroke' : 'fill', this)\n\t\t\t\t\t: _hitTestSelf.base.apply(this, arguments);\n\t\t}\n\t};\n}, {\n\nstatics: new function() {\n\tfunction createShape(type, point, size, radius, args) {\n\t\tvar item = Base.create(Shape.prototype);\n\t\titem._type = type;\n\t\titem._size = size;\n\t\titem._radius = radius;\n\t\titem._initialize(Base.getNamed(args), point);\n\t\treturn item;\n\t}\n\n\treturn {\n\t\tCircle: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tcenter = Point.readNamed(args, 'center'),\n\t\t\t\tradius = Base.readNamed(args, 'radius');\n\t\t\treturn createShape('circle', center, new Size(radius * 2), radius,\n\t\t\t\t\targs);\n\t\t},\n\n\t\tRectangle: function() {\n\t\t\tvar args = arguments,\n\t\t\t\trect = Rectangle.readNamed(args, 'rectangle'),\n\t\t\t\tradius = Size.min(Size.readNamed(args, 'radius'),\n\t\t\t\t\t\trect.getSize(true).divide(2));\n\t\t\treturn createShape('rectangle', rect.getCenter(true),\n\t\t\t\t\trect.getSize(true), radius, args);\n\t\t},\n\n\t\tEllipse: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tellipse = Shape._readEllipse(args),\n\t\t\t\tradius = ellipse.radius;\n\t\t\treturn createShape('ellipse', ellipse.center, radius.multiply(2),\n\t\t\t\t\tradius, args);\n\t\t},\n\n\t\t_readEllipse: function(args) {\n\t\t\tvar center,\n\t\t\t\tradius;\n\t\t\tif (Base.hasNamed(args, 'radius')) {\n\t\t\t\tcenter = Point.readNamed(args, 'center');\n\t\t\t\tradius = Size.readNamed(args, 'radius');\n\t\t\t} else {\n\t\t\t\tvar rect = Rectangle.readNamed(args, 'rectangle');\n\t\t\t\tcenter = rect.getCenter(true);\n\t\t\t\tradius = rect.getSize(true).divide(2);\n\t\t\t}\n\t\t\treturn { center: center, radius: radius };\n\t\t}\n\t};\n}});\n\nvar Raster = Item.extend({\n\t_class: 'Raster',\n\t_applyMatrix: false,\n\t_canApplyMatrix: false,\n\t_boundsOptions: { stroke: false, handle: false },\n\t_serializeFields: {\n\t\tcrossOrigin: null,\n\t\tsource: null\n\t},\n\t_prioritize: ['crossOrigin'],\n\t_smoothing: 'low',\n\tbeans: true,\n\n\tinitialize: function Raster(source, position) {\n\t\tif (!this._initialize(source,\n\t\t\t\tposition !== undefined && Point.read(arguments))) {\n\t\t\tvar image,\n\t\t\t\ttype = typeof source,\n\t\t\t\tobject = type === 'string'\n\t\t\t\t\t? document.getElementById(source)\n\t\t\t\t\t: type === 'object'\n\t\t\t\t\t\t? source\n\t\t\t\t\t\t: null;\n\t\t\tif (object && object !== Item.NO_INSERT) {\n\t\t\t\tif (object.getContext || object.naturalHeight != null) {\n\t\t\t\t\timage = object;\n\t\t\t\t} else if (object) {\n\t\t\t\t\tvar size = Size.read(arguments);\n\t\t\t\t\tif (!size.isZero()) {\n\t\t\t\t\t\timage = CanvasProvider.getCanvas(size);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (image) {\n\t\t\t\tthis.setImage(image);\n\t\t\t} else {\n\t\t\t\tthis.setSource(source);\n\t\t\t}\n\t\t}\n\t\tif (!this._size) {\n\t\t\tthis._size = new Size();\n\t\t\tthis._loaded = false;\n\t\t}\n\t},\n\n\t_equals: function(item) {\n\t\treturn this.getSource() === item.getSource();\n\t},\n\n\tcopyContent: function(source) {\n\t\tvar image = source._image,\n\t\t\tcanvas = source._canvas;\n\t\tif (image) {\n\t\t\tthis._setImage(image);\n\t\t} else if (canvas) {\n\t\t\tvar copyCanvas = CanvasProvider.getCanvas(source._size);\n\t\t\tcopyCanvas.getContext('2d').drawImage(canvas, 0, 0);\n\t\t\tthis._setImage(copyCanvas);\n\t\t}\n\t\tthis._crossOrigin = source._crossOrigin;\n\t},\n\n\tgetSize: function() {\n\t\tvar size = this._size;\n\t\treturn new LinkedSize(size ? size.width : 0, size ? size.height : 0,\n\t\t\t\tthis, 'setSize');\n\t},\n\n\tsetSize: function(_size, _clear) {\n\t\tvar size = Size.read(arguments);\n\t\tif (!size.equals(this._size)) {\n\t\t\tif (size.width > 0 && size.height > 0) {\n\t\t\t\tvar element = !_clear && this.getElement();\n\t\t\t\tthis._setImage(CanvasProvider.getCanvas(size));\n\t\t\t\tif (element) {\n\t\t\t\t\tthis.getContext(true).drawImage(element, 0, 0,\n\t\t\t\t\t\t\tsize.width, size.height);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (this._canvas)\n\t\t\t\t\tCanvasProvider.release(this._canvas);\n\t\t\t\tthis._size = size.clone();\n\t\t\t}\n\t\t} else if (_clear) {\n\t\t\tthis.clear();\n\t\t}\n\t},\n\n\tgetWidth: function() {\n\t\treturn this._size ? this._size.width : 0;\n\t},\n\n\tsetWidth: function(width) {\n\t\tthis.setSize(width, this.getHeight());\n\t},\n\n\tgetHeight: function() {\n\t\treturn this._size ? this._size.height : 0;\n\t},\n\n\tsetHeight: function(height) {\n\t\tthis.setSize(this.getWidth(), height);\n\t},\n\n\tgetLoaded: function() {\n\t\treturn this._loaded;\n\t},\n\n\tisEmpty: function() {\n\t\tvar size = this._size;\n\t\treturn !size || size.width === 0 && size.height === 0;\n\t},\n\n\tgetResolution: function() {\n\t\tvar matrix = this._matrix,\n\t\t\torig = new Point(0, 0).transform(matrix),\n\t\t\tu = new Point(1, 0).transform(matrix).subtract(orig),\n\t\t\tv = new Point(0, 1).transform(matrix).subtract(orig);\n\t\treturn new Size(\n\t\t\t72 / u.getLength(),\n\t\t\t72 / v.getLength()\n\t\t);\n\t},\n\n\tgetPpi: '#getResolution',\n\n\tgetImage: function() {\n\t\treturn this._image;\n\t},\n\n\tsetImage: function(image) {\n\t\tvar that = this;\n\n\t\tfunction emit(event) {\n\t\t\tvar view = that.getView(),\n\t\t\t\ttype = event && event.type || 'load';\n\t\t\tif (view && that.responds(type)) {\n\t\t\t\tpaper = view._scope;\n\t\t\t\tthat.emit(type, new Event(event));\n\t\t\t}\n\t\t}\n\n\t\tthis._setImage(image);\n\t\tif (this._loaded) {\n\t\t\tsetTimeout(emit, 0);\n\t\t} else if (image) {\n\t\t\tDomEvent.add(image, {\n\t\t\t\tload: function(event) {\n\t\t\t\t\tthat._setImage(image);\n\t\t\t\t\temit(event);\n\t\t\t\t},\n\t\t\t\terror: emit\n\t\t\t});\n\t\t}\n\t},\n\n\t_setImage: function(image) {\n\t\tif (this._canvas)\n\t\t\tCanvasProvider.release(this._canvas);\n\t\tif (image && image.getContext) {\n\t\t\tthis._image = null;\n\t\t\tthis._canvas = image;\n\t\t\tthis._loaded = true;\n\t\t} else {\n\t\t\tthis._image = image;\n\t\t\tthis._canvas = null;\n\t\t\tthis._loaded = !!(image && image.src && image.complete);\n\t\t}\n\t\tthis._size = new Size(\n\t\t\t\timage ? image.naturalWidth || image.width : 0,\n\t\t\t\timage ? image.naturalHeight || image.height : 0);\n\t\tthis._context = null;\n\t\tthis._changed(1033);\n\t},\n\n\tgetCanvas: function() {\n\t\tif (!this._canvas) {\n\t\t\tvar ctx = CanvasProvider.getContext(this._size);\n\t\t\ttry {\n\t\t\t\tif (this._image)\n\t\t\t\t\tctx.drawImage(this._image, 0, 0);\n\t\t\t\tthis._canvas = ctx.canvas;\n\t\t\t} catch (e) {\n\t\t\t\tCanvasProvider.release(ctx);\n\t\t\t}\n\t\t}\n\t\treturn this._canvas;\n\t},\n\n\tsetCanvas: '#setImage',\n\n\tgetContext: function(_change) {\n\t\tif (!this._context)\n\t\t\tthis._context = this.getCanvas().getContext('2d');\n\t\tif (_change) {\n\t\t\tthis._image = null;\n\t\t\tthis._changed(1025);\n\t\t}\n\t\treturn this._context;\n\t},\n\n\tsetContext: function(context) {\n\t\tthis._context = context;\n\t},\n\n\tgetSource: function() {\n\t\tvar image = this._image;\n\t\treturn image && image.src || this.toDataURL();\n\t},\n\n\tsetSource: function(src) {\n\t\tvar image = new self.Image(),\n\t\t\tcrossOrigin = this._crossOrigin;\n\t\tif (crossOrigin)\n\t\t\timage.crossOrigin = crossOrigin;\n\t\tif (src)\n\t\t\timage.src = src;\n\t\tthis.setImage(image);\n\t},\n\n\tgetCrossOrigin: function() {\n\t\tvar image = this._image;\n\t\treturn image && image.crossOrigin || this._crossOrigin || '';\n\t},\n\n\tsetCrossOrigin: function(crossOrigin) {\n\t\tthis._crossOrigin = crossOrigin;\n\t\tvar image = this._image;\n\t\tif (image)\n\t\t\timage.crossOrigin = crossOrigin;\n\t},\n\n\tgetSmoothing: function() {\n\t\treturn this._smoothing;\n\t},\n\n\tsetSmoothing: function(smoothing) {\n\t\tthis._smoothing = typeof smoothing === 'string'\n\t\t\t? smoothing\n\t\t\t: smoothing ? 'low' : 'off';\n\t\tthis._changed(257);\n\t},\n\n\tgetElement: function() {\n\t\treturn this._canvas || this._loaded && this._image;\n\t}\n}, {\n\tbeans: false,\n\n\tgetSubCanvas: function() {\n\t\tvar rect = Rectangle.read(arguments),\n\t\t\tctx = CanvasProvider.getContext(rect.getSize());\n\t\tctx.drawImage(this.getCanvas(), rect.x, rect.y,\n\t\t\t\trect.width, rect.height, 0, 0, rect.width, rect.height);\n\t\treturn ctx.canvas;\n\t},\n\n\tgetSubRaster: function() {\n\t\tvar rect = Rectangle.read(arguments),\n\t\t\traster = new Raster(Item.NO_INSERT);\n\t\traster._setImage(this.getSubCanvas(rect));\n\t\traster.translate(rect.getCenter().subtract(this.getSize().divide(2)));\n\t\traster._matrix.prepend(this._matrix);\n\t\traster.insertAbove(this);\n\t\treturn raster;\n\t},\n\n\ttoDataURL: function() {\n\t\tvar image = this._image,\n\t\t\tsrc = image && image.src;\n\t\tif (/^data:/.test(src))\n\t\t\treturn src;\n\t\tvar canvas = this.getCanvas();\n\t\treturn canvas ? canvas.toDataURL.apply(canvas, arguments) : null;\n\t},\n\n\tdrawImage: function(image ) {\n\t\tvar point = Point.read(arguments, 1);\n\t\tthis.getContext(true).drawImage(image, point.x, point.y);\n\t},\n\n\tgetAverageColor: function(object) {\n\t\tvar bounds, path;\n\t\tif (!object) {\n\t\t\tbounds = this.getBounds();\n\t\t} else if (object instanceof PathItem) {\n\t\t\tpath = object;\n\t\t\tbounds = object.getBounds();\n\t\t} else if (typeof object === 'object') {\n\t\t\tif ('width' in object) {\n\t\t\t\tbounds = new Rectangle(object);\n\t\t\t} else if ('x' in object) {\n\t\t\t\tbounds = new Rectangle(object.x - 0.5, object.y - 0.5, 1, 1);\n\t\t\t}\n\t\t}\n\t\tif (!bounds)\n\t\t\treturn null;\n\t\tvar sampleSize = 32,\n\t\t\twidth = Math.min(bounds.width, sampleSize),\n\t\t\theight = Math.min(bounds.height, sampleSize);\n\t\tvar ctx = Raster._sampleContext;\n\t\tif (!ctx) {\n\t\t\tctx = Raster._sampleContext = CanvasProvider.getContext(\n\t\t\t\t\tnew Size(sampleSize));\n\t\t} else {\n\t\t\tctx.clearRect(0, 0, sampleSize + 1, sampleSize + 1);\n\t\t}\n\t\tctx.save();\n\t\tvar matrix = new Matrix()\n\t\t\t\t.scale(width / bounds.width, height / bounds.height)\n\t\t\t\t.translate(-bounds.x, -bounds.y);\n\t\tmatrix.applyToContext(ctx);\n\t\tif (path)\n\t\t\tpath.draw(ctx, new Base({ clip: true, matrices: [matrix] }));\n\t\tthis._matrix.applyToContext(ctx);\n\t\tvar element = this.getElement(),\n\t\t\tsize = this._size;\n\t\tif (element)\n\t\t\tctx.drawImage(element, -size.width / 2, -size.height / 2);\n\t\tctx.restore();\n\t\tvar pixels = ctx.getImageData(0.5, 0.5, Math.ceil(width),\n\t\t\t\tMath.ceil(height)).data,\n\t\t\tchannels = [0, 0, 0],\n\t\t\ttotal = 0;\n\t\tfor (var i = 0, l = pixels.length; i < l; i += 4) {\n\t\t\tvar alpha = pixels[i + 3];\n\t\t\ttotal += alpha;\n\t\t\talpha /= 255;\n\t\t\tchannels[0] += pixels[i] * alpha;\n\t\t\tchannels[1] += pixels[i + 1] * alpha;\n\t\t\tchannels[2] += pixels[i + 2] * alpha;\n\t\t}\n\t\tfor (var i = 0; i < 3; i++)\n\t\t\tchannels[i] /= total;\n\t\treturn total ? Color.read(channels) : null;\n\t},\n\n\tgetPixel: function() {\n\t\tvar point = Point.read(arguments);\n\t\tvar data = this.getContext().getImageData(point.x, point.y, 1, 1).data;\n\t\treturn new Color('rgb', [data[0] / 255, data[1] / 255, data[2] / 255],\n\t\t\t\tdata[3] / 255);\n\t},\n\n\tsetPixel: function() {\n\t\tvar args = arguments,\n\t\t\tpoint = Point.read(args),\n\t\t\tcolor = Color.read(args),\n\t\t\tcomponents = color._convert('rgb'),\n\t\t\talpha = color._alpha,\n\t\t\tctx = this.getContext(true),\n\t\t\timageData = ctx.createImageData(1, 1),\n\t\t\tdata = imageData.data;\n\t\tdata[0] = components[0] * 255;\n\t\tdata[1] = components[1] * 255;\n\t\tdata[2] = components[2] * 255;\n\t\tdata[3] = alpha != null ? alpha * 255 : 255;\n\t\tctx.putImageData(imageData, point.x, point.y);\n\t},\n\n\tclear: function() {\n\t\tvar size = this._size;\n\t\tthis.getContext(true).clearRect(0, 0, size.width + 1, size.height + 1);\n\t},\n\n\tcreateImageData: function() {\n\t\tvar size = Size.read(arguments);\n\t\treturn this.getContext().createImageData(size.width, size.height);\n\t},\n\n\tgetImageData: function() {\n\t\tvar rect = Rectangle.read(arguments);\n\t\tif (rect.isEmpty())\n\t\t\trect = new Rectangle(this._size);\n\t\treturn this.getContext().getImageData(rect.x, rect.y,\n\t\t\t\trect.width, rect.height);\n\t},\n\n\tputImageData: function(data ) {\n\t\tvar point = Point.read(arguments, 1);\n\t\tthis.getContext(true).putImageData(data, point.x, point.y);\n\t},\n\n\tsetImageData: function(data) {\n\t\tthis.setSize(data);\n\t\tthis.getContext(true).putImageData(data, 0, 0);\n\t},\n\n\t_getBounds: function(matrix, options) {\n\t\tvar rect = new Rectangle(this._size).setCenter(0, 0);\n\t\treturn matrix ? matrix._transformBounds(rect) : rect;\n\t},\n\n\t_hitTestSelf: function(point) {\n\t\tif (this._contains(point)) {\n\t\t\tvar that = this;\n\t\t\treturn new HitResult('pixel', that, {\n\t\t\t\toffset: point.add(that._size.divide(2)).round(),\n\t\t\t\tcolor: {\n\t\t\t\t\tget: function() {\n\t\t\t\t\t\treturn that.getPixel(this.offset);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t},\n\n\t_draw: function(ctx, param, viewMatrix) {\n\t\tvar element = this.getElement();\n\t\tif (element && element.width > 0 && element.height > 0) {\n\t\t\tctx.globalAlpha = Numerical.clamp(this._opacity, 0, 1);\n\n\t\t\tthis._setStyles(ctx, param, viewMatrix);\n\n\t\t\tvar smoothing = this._smoothing,\n\t\t\t\tdisabled = smoothing === 'off';\n\t\t\tDomElement.setPrefixed(\n\t\t\t\tctx,\n\t\t\t\tdisabled ? 'imageSmoothingEnabled' : 'imageSmoothingQuality',\n\t\t\t\tdisabled ? false : smoothing\n\t\t\t);\n\n\t\t\tctx.drawImage(element,\n\t\t\t\t\t-this._size.width / 2, -this._size.height / 2);\n\t\t}\n\t},\n\n\t_canComposite: function() {\n\t\treturn true;\n\t}\n});\n\nvar SymbolItem = Item.extend({\n\t_class: 'SymbolItem',\n\t_applyMatrix: false,\n\t_canApplyMatrix: false,\n\t_boundsOptions: { stroke: true },\n\t_serializeFields: {\n\t\tsymbol: null\n\t},\n\n\tinitialize: function SymbolItem(arg0, arg1) {\n\t\tif (!this._initialize(arg0,\n\t\t\t\targ1 !== undefined && Point.read(arguments, 1)))\n\t\t\tthis.setDefinition(arg0 instanceof SymbolDefinition ?\n\t\t\t\t\targ0 : new SymbolDefinition(arg0));\n\t},\n\n\t_equals: function(item) {\n\t\treturn this._definition === item._definition;\n\t},\n\n\tcopyContent: function(source) {\n\t\tthis.setDefinition(source._definition);\n\t},\n\n\tgetDefinition: function() {\n\t\treturn this._definition;\n\t},\n\n\tsetDefinition: function(definition) {\n\t\tthis._definition = definition;\n\t\tthis._changed(9);\n\t},\n\n\tgetSymbol: '#getDefinition',\n\tsetSymbol: '#setDefinition',\n\n\tisEmpty: function() {\n\t\treturn this._definition._item.isEmpty();\n\t},\n\n\t_getBounds: function(matrix, options) {\n\t\tvar item = this._definition._item;\n\t\treturn item._getCachedBounds(item._matrix.prepended(matrix), options);\n\t},\n\n\t_hitTestSelf: function(point, options, viewMatrix) {\n\t\tvar opts = options.extend({ all: false });\n\t\tvar res = this._definition._item._hitTest(point, opts, viewMatrix);\n\t\tif (res)\n\t\t\tres.item = this;\n\t\treturn res;\n\t},\n\n\t_draw: function(ctx, param) {\n\t\tthis._definition._item.draw(ctx, param);\n\t}\n\n});\n\nvar SymbolDefinition = Base.extend({\n\t_class: 'SymbolDefinition',\n\n\tinitialize: function SymbolDefinition(item, dontCenter) {\n\t\tthis._id = UID.get();\n\t\tthis.project = paper.project;\n\t\tif (item)\n\t\t\tthis.setItem(item, dontCenter);\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\treturn dictionary.add(this, function() {\n\t\t\treturn Base.serialize([this._class, this._item],\n\t\t\t\t\toptions, false, dictionary);\n\t\t});\n\t},\n\n\t_changed: function(flags) {\n\t\tif (flags & 8)\n\t\t\tItem._clearBoundsCache(this);\n\t\tif (flags & 1)\n\t\t\tthis.project._changed(flags);\n\t},\n\n\tgetItem: function() {\n\t\treturn this._item;\n\t},\n\n\tsetItem: function(item, _dontCenter) {\n\t\tif (item._symbol)\n\t\t\titem = item.clone();\n\t\tif (this._item)\n\t\t\tthis._item._symbol = null;\n\t\tthis._item = item;\n\t\titem.remove();\n\t\titem.setSelected(false);\n\t\tif (!_dontCenter)\n\t\t\titem.setPosition(new Point());\n\t\titem._symbol = this;\n\t\tthis._changed(9);\n\t},\n\n\tgetDefinition: '#getItem',\n\tsetDefinition: '#setItem',\n\n\tplace: function(position) {\n\t\treturn new SymbolItem(this, position);\n\t},\n\n\tclone: function() {\n\t\treturn new SymbolDefinition(this._item.clone(false));\n\t},\n\n\tequals: function(symbol) {\n\t\treturn symbol === this\n\t\t\t\t|| symbol && this._item.equals(symbol._item)\n\t\t\t\t|| false;\n\t}\n});\n\nvar HitResult = Base.extend({\n\t_class: 'HitResult',\n\n\tinitialize: function HitResult(type, item, values) {\n\t\tthis.type = type;\n\t\tthis.item = item;\n\t\tif (values)\n\t\t\tthis.inject(values);\n\t},\n\n\tstatics: {\n\t\tgetOptions: function(args) {\n\t\t\tvar options = args && Base.read(args);\n\t\t\treturn new Base({\n\t\t\t\ttype: null,\n\t\t\t\ttolerance: paper.settings.hitTolerance,\n\t\t\t\tfill: !options,\n\t\t\t\tstroke: !options,\n\t\t\t\tsegments: !options,\n\t\t\t\thandles: false,\n\t\t\t\tends: false,\n\t\t\t\tposition: false,\n\t\t\t\tcenter: false,\n\t\t\t\tbounds: false,\n\t\t\t\tguides: false,\n\t\t\t\tselected: false\n\t\t\t}, options);\n\t\t}\n\t}\n});\n\nvar Segment = Base.extend({\n\t_class: 'Segment',\n\tbeans: true,\n\t_selection: 0,\n\n\tinitialize: function Segment(arg0, arg1, arg2, arg3, arg4, arg5) {\n\t\tvar count = arguments.length,\n\t\t\tpoint, handleIn, handleOut, selection;\n\t\tif (count > 0) {\n\t\t\tif (arg0 == null || typeof arg0 === 'object') {\n\t\t\t\tif (count === 1 && arg0 && 'point' in arg0) {\n\t\t\t\t\tpoint = arg0.point;\n\t\t\t\t\thandleIn = arg0.handleIn;\n\t\t\t\t\thandleOut = arg0.handleOut;\n\t\t\t\t\tselection = arg0.selection;\n\t\t\t\t} else {\n\t\t\t\t\tpoint = arg0;\n\t\t\t\t\thandleIn = arg1;\n\t\t\t\t\thandleOut = arg2;\n\t\t\t\t\tselection = arg3;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tpoint = [ arg0, arg1 ];\n\t\t\t\thandleIn = arg2 !== undefined ? [ arg2, arg3 ] : null;\n\t\t\t\thandleOut = arg4 !== undefined ? [ arg4, arg5 ] : null;\n\t\t\t}\n\t\t}\n\t\tnew SegmentPoint(point, this, '_point');\n\t\tnew SegmentPoint(handleIn, this, '_handleIn');\n\t\tnew SegmentPoint(handleOut, this, '_handleOut');\n\t\tif (selection)\n\t\t\tthis.setSelection(selection);\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\tvar point = this._point,\n\t\t\tselection = this._selection,\n\t\t\tobj = selection || this.hasHandles()\n\t\t\t\t\t? [point, this._handleIn, this._handleOut]\n\t\t\t\t\t: point;\n\t\tif (selection)\n\t\t\tobj.push(selection);\n\t\treturn Base.serialize(obj, options, true, dictionary);\n\t},\n\n\t_changed: function(point) {\n\t\tvar path = this._path;\n\t\tif (!path)\n\t\t\treturn;\n\t\tvar curves = path._curves,\n\t\t\tindex = this._index,\n\t\t\tcurve;\n\t\tif (curves) {\n\t\t\tif ((!point || point === this._point || point === this._handleIn)\n\t\t\t\t\t&& (curve = index > 0 ? curves[index - 1] : path._closed\n\t\t\t\t\t\t? curves[curves.length - 1] : null))\n\t\t\t\tcurve._changed();\n\t\t\tif ((!point || point === this._point || point === this._handleOut)\n\t\t\t\t\t&& (curve = curves[index]))\n\t\t\t\tcurve._changed();\n\t\t}\n\t\tpath._changed(41);\n\t},\n\n\tgetPoint: function() {\n\t\treturn this._point;\n\t},\n\n\tsetPoint: function() {\n\t\tthis._point.set(Point.read(arguments));\n\t},\n\n\tgetHandleIn: function() {\n\t\treturn this._handleIn;\n\t},\n\n\tsetHandleIn: function() {\n\t\tthis._handleIn.set(Point.read(arguments));\n\t},\n\n\tgetHandleOut: function() {\n\t\treturn this._handleOut;\n\t},\n\n\tsetHandleOut: function() {\n\t\tthis._handleOut.set(Point.read(arguments));\n\t},\n\n\thasHandles: function() {\n\t\treturn !this._handleIn.isZero() || !this._handleOut.isZero();\n\t},\n\n\tisSmooth: function() {\n\t\tvar handleIn = this._handleIn,\n\t\t\thandleOut = this._handleOut;\n\t\treturn !handleIn.isZero() && !handleOut.isZero()\n\t\t\t\t&& handleIn.isCollinear(handleOut);\n\t},\n\n\tclearHandles: function() {\n\t\tthis._handleIn._set(0, 0);\n\t\tthis._handleOut._set(0, 0);\n\t},\n\n\tgetSelection: function() {\n\t\treturn this._selection;\n\t},\n\n\tsetSelection: function(selection) {\n\t\tvar oldSelection = this._selection,\n\t\t\tpath = this._path;\n\t\tthis._selection = selection = selection || 0;\n\t\tif (path && selection !== oldSelection) {\n\t\t\tpath._updateSelection(this, oldSelection, selection);\n\t\t\tpath._changed(257);\n\t\t}\n\t},\n\n\t_changeSelection: function(flag, selected) {\n\t\tvar selection = this._selection;\n\t\tthis.setSelection(selected ? selection | flag : selection & ~flag);\n\t},\n\n\tisSelected: function() {\n\t\treturn !!(this._selection & 7);\n\t},\n\n\tsetSelected: function(selected) {\n\t\tthis._changeSelection(7, selected);\n\t},\n\n\tgetIndex: function() {\n\t\treturn this._index !== undefined ? this._index : null;\n\t},\n\n\tgetPath: function() {\n\t\treturn this._path || null;\n\t},\n\n\tgetCurve: function() {\n\t\tvar path = this._path,\n\t\t\tindex = this._index;\n\t\tif (path) {\n\t\t\tif (index > 0 && !path._closed\n\t\t\t\t\t&& index === path._segments.length - 1)\n\t\t\t\tindex--;\n\t\t\treturn path.getCurves()[index] || null;\n\t\t}\n\t\treturn null;\n\t},\n\n\tgetLocation: function() {\n\t\tvar curve = this.getCurve();\n\t\treturn curve\n\t\t\t\t? new CurveLocation(curve, this === curve._segment1 ? 0 : 1)\n\t\t\t\t: null;\n\t},\n\n\tgetNext: function() {\n\t\tvar segments = this._path && this._path._segments;\n\t\treturn segments && (segments[this._index + 1]\n\t\t\t\t|| this._path._closed && segments[0]) || null;\n\t},\n\n\tsmooth: function(options, _first, _last) {\n\t\tvar opts = options || {},\n\t\t\ttype = opts.type,\n\t\t\tfactor = opts.factor,\n\t\t\tprev = this.getPrevious(),\n\t\t\tnext = this.getNext(),\n\t\t\tp0 = (prev || this)._point,\n\t\t\tp1 = this._point,\n\t\t\tp2 = (next || this)._point,\n\t\t\td1 = p0.getDistance(p1),\n\t\t\td2 = p1.getDistance(p2);\n\t\tif (!type || type === 'catmull-rom') {\n\t\t\tvar a = factor === undefined ? 0.5 : factor,\n\t\t\t\td1_a = Math.pow(d1, a),\n\t\t\t\td1_2a = d1_a * d1_a,\n\t\t\t\td2_a = Math.pow(d2, a),\n\t\t\t\td2_2a = d2_a * d2_a;\n\t\t\tif (!_first && prev) {\n\t\t\t\tvar A = 2 * d2_2a + 3 * d2_a * d1_a + d1_2a,\n\t\t\t\t\tN = 3 * d2_a * (d2_a + d1_a);\n\t\t\t\tthis.setHandleIn(N !== 0\n\t\t\t\t\t? new Point(\n\t\t\t\t\t\t(d2_2a * p0._x + A * p1._x - d1_2a * p2._x) / N - p1._x,\n\t\t\t\t\t\t(d2_2a * p0._y + A * p1._y - d1_2a * p2._y) / N - p1._y)\n\t\t\t\t\t: new Point());\n\t\t\t}\n\t\t\tif (!_last && next) {\n\t\t\t\tvar A = 2 * d1_2a + 3 * d1_a * d2_a + d2_2a,\n\t\t\t\t\tN = 3 * d1_a * (d1_a + d2_a);\n\t\t\t\tthis.setHandleOut(N !== 0\n\t\t\t\t\t? new Point(\n\t\t\t\t\t\t(d1_2a * p2._x + A * p1._x - d2_2a * p0._x) / N - p1._x,\n\t\t\t\t\t\t(d1_2a * p2._y + A * p1._y - d2_2a * p0._y) / N - p1._y)\n\t\t\t\t\t: new Point());\n\t\t\t}\n\t\t} else if (type === 'geometric') {\n\t\t\tif (prev && next) {\n\t\t\t\tvar vector = p0.subtract(p2),\n\t\t\t\t\tt = factor === undefined ? 0.4 : factor,\n\t\t\t\t\tk = t * d1 / (d1 + d2);\n\t\t\t\tif (!_first)\n\t\t\t\t\tthis.setHandleIn(vector.multiply(k));\n\t\t\t\tif (!_last)\n\t\t\t\t\tthis.setHandleOut(vector.multiply(k - t));\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new Error('Smoothing method \\'' + type + '\\' not supported.');\n\t\t}\n\t},\n\n\tgetPrevious: function() {\n\t\tvar segments = this._path && this._path._segments;\n\t\treturn segments && (segments[this._index - 1]\n\t\t\t\t|| this._path._closed && segments[segments.length - 1]) || null;\n\t},\n\n\tisFirst: function() {\n\t\treturn !this._index;\n\t},\n\n\tisLast: function() {\n\t\tvar path = this._path;\n\t\treturn path && this._index === path._segments.length - 1 || false;\n\t},\n\n\treverse: function() {\n\t\tvar handleIn = this._handleIn,\n\t\t\thandleOut = this._handleOut,\n\t\t\ttmp = handleIn.clone();\n\t\thandleIn.set(handleOut);\n\t\thandleOut.set(tmp);\n\t},\n\n\treversed: function() {\n\t\treturn new Segment(this._point, this._handleOut, this._handleIn);\n\t},\n\n\tremove: function() {\n\t\treturn this._path ? !!this._path.removeSegment(this._index) : false;\n\t},\n\n\tclone: function() {\n\t\treturn new Segment(this._point, this._handleIn, this._handleOut);\n\t},\n\n\tequals: function(segment) {\n\t\treturn segment === this || segment && this._class === segment._class\n\t\t\t\t&& this._point.equals(segment._point)\n\t\t\t\t&& this._handleIn.equals(segment._handleIn)\n\t\t\t\t&& this._handleOut.equals(segment._handleOut)\n\t\t\t\t|| false;\n\t},\n\n\ttoString: function() {\n\t\tvar parts = [ 'point: ' + this._point ];\n\t\tif (!this._handleIn.isZero())\n\t\t\tparts.push('handleIn: ' + this._handleIn);\n\t\tif (!this._handleOut.isZero())\n\t\t\tparts.push('handleOut: ' + this._handleOut);\n\t\treturn '{ ' + parts.join(', ') + ' }';\n\t},\n\n\ttransform: function(matrix) {\n\t\tthis._transformCoordinates(matrix, new Array(6), true);\n\t\tthis._changed();\n\t},\n\n\tinterpolate: function(from, to, factor) {\n\t\tvar u = 1 - factor,\n\t\t\tv = factor,\n\t\t\tpoint1 = from._point,\n\t\t\tpoint2 = to._point,\n\t\t\thandleIn1 = from._handleIn,\n\t\t\thandleIn2 = to._handleIn,\n\t\t\thandleOut2 = to._handleOut,\n\t\t\thandleOut1 = from._handleOut;\n\t\tthis._point._set(\n\t\t\t\tu * point1._x + v * point2._x,\n\t\t\t\tu * point1._y + v * point2._y, true);\n\t\tthis._handleIn._set(\n\t\t\t\tu * handleIn1._x + v * handleIn2._x,\n\t\t\t\tu * handleIn1._y + v * handleIn2._y, true);\n\t\tthis._handleOut._set(\n\t\t\t\tu * handleOut1._x + v * handleOut2._x,\n\t\t\t\tu * handleOut1._y + v * handleOut2._y, true);\n\t\tthis._changed();\n\t},\n\n\t_transformCoordinates: function(matrix, coords, change) {\n\t\tvar point = this._point,\n\t\t\thandleIn = !change || !this._handleIn.isZero()\n\t\t\t\t\t? this._handleIn : null,\n\t\t\thandleOut = !change || !this._handleOut.isZero()\n\t\t\t\t\t? this._handleOut : null,\n\t\t\tx = point._x,\n\t\t\ty = point._y,\n\t\t\ti = 2;\n\t\tcoords[0] = x;\n\t\tcoords[1] = y;\n\t\tif (handleIn) {\n\t\t\tcoords[i++] = handleIn._x + x;\n\t\t\tcoords[i++] = handleIn._y + y;\n\t\t}\n\t\tif (handleOut) {\n\t\t\tcoords[i++] = handleOut._x + x;\n\t\t\tcoords[i++] = handleOut._y + y;\n\t\t}\n\t\tif (matrix) {\n\t\t\tmatrix._transformCoordinates(coords, coords, i / 2);\n\t\t\tx = coords[0];\n\t\t\ty = coords[1];\n\t\t\tif (change) {\n\t\t\t\tpoint._x = x;\n\t\t\t\tpoint._y = y;\n\t\t\t\ti = 2;\n\t\t\t\tif (handleIn) {\n\t\t\t\t\thandleIn._x = coords[i++] - x;\n\t\t\t\t\thandleIn._y = coords[i++] - y;\n\t\t\t\t}\n\t\t\t\tif (handleOut) {\n\t\t\t\t\thandleOut._x = coords[i++] - x;\n\t\t\t\t\thandleOut._y = coords[i++] - y;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (!handleIn) {\n\t\t\t\t\tcoords[i++] = x;\n\t\t\t\t\tcoords[i++] = y;\n\t\t\t\t}\n\t\t\t\tif (!handleOut) {\n\t\t\t\t\tcoords[i++] = x;\n\t\t\t\t\tcoords[i++] = y;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn coords;\n\t}\n});\n\nvar SegmentPoint = Point.extend({\n\tinitialize: function SegmentPoint(point, owner, key) {\n\t\tvar x, y,\n\t\t\tselected;\n\t\tif (!point) {\n\t\t\tx = y = 0;\n\t\t} else if ((x = point[0]) !== undefined) {\n\t\t\ty = point[1];\n\t\t} else {\n\t\t\tvar pt = point;\n\t\t\tif ((x = pt.x) === undefined) {\n\t\t\t\tpt = Point.read(arguments);\n\t\t\t\tx = pt.x;\n\t\t\t}\n\t\t\ty = pt.y;\n\t\t\tselected = pt.selected;\n\t\t}\n\t\tthis._x = x;\n\t\tthis._y = y;\n\t\tthis._owner = owner;\n\t\towner[key] = this;\n\t\tif (selected)\n\t\t\tthis.setSelected(true);\n\t},\n\n\t_set: function(x, y) {\n\t\tthis._x = x;\n\t\tthis._y = y;\n\t\tthis._owner._changed(this);\n\t\treturn this;\n\t},\n\n\tgetX: function() {\n\t\treturn this._x;\n\t},\n\n\tsetX: function(x) {\n\t\tthis._x = x;\n\t\tthis._owner._changed(this);\n\t},\n\n\tgetY: function() {\n\t\treturn this._y;\n\t},\n\n\tsetY: function(y) {\n\t\tthis._y = y;\n\t\tthis._owner._changed(this);\n\t},\n\n\tisZero: function() {\n\t\tvar isZero = Numerical.isZero;\n\t\treturn isZero(this._x) && isZero(this._y);\n\t},\n\n\tisSelected: function() {\n\t\treturn !!(this._owner._selection & this._getSelection());\n\t},\n\n\tsetSelected: function(selected) {\n\t\tthis._owner._changeSelection(this._getSelection(), selected);\n\t},\n\n\t_getSelection: function() {\n\t\tvar owner = this._owner;\n\t\treturn this === owner._point ? 1\n\t\t\t: this === owner._handleIn ? 2\n\t\t\t: this === owner._handleOut ? 4\n\t\t\t: 0;\n\t}\n});\n\nvar Curve = Base.extend({\n\t_class: 'Curve',\n\tbeans: true,\n\n\tinitialize: function Curve(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {\n\t\tvar count = arguments.length,\n\t\t\tseg1, seg2,\n\t\t\tpoint1, point2,\n\t\t\thandle1, handle2;\n\t\tif (count === 3) {\n\t\t\tthis._path = arg0;\n\t\t\tseg1 = arg1;\n\t\t\tseg2 = arg2;\n\t\t} else if (!count) {\n\t\t\tseg1 = new Segment();\n\t\t\tseg2 = new Segment();\n\t\t} else if (count === 1) {\n\t\t\tif ('segment1' in arg0) {\n\t\t\t\tseg1 = new Segment(arg0.segment1);\n\t\t\t\tseg2 = new Segment(arg0.segment2);\n\t\t\t} else if ('point1' in arg0) {\n\t\t\t\tpoint1 = arg0.point1;\n\t\t\t\thandle1 = arg0.handle1;\n\t\t\t\thandle2 = arg0.handle2;\n\t\t\t\tpoint2 = arg0.point2;\n\t\t\t} else if (Array.isArray(arg0)) {\n\t\t\t\tpoint1 = [arg0[0], arg0[1]];\n\t\t\t\tpoint2 = [arg0[6], arg0[7]];\n\t\t\t\thandle1 = [arg0[2] - arg0[0], arg0[3] - arg0[1]];\n\t\t\t\thandle2 = [arg0[4] - arg0[6], arg0[5] - arg0[7]];\n\t\t\t}\n\t\t} else if (count === 2) {\n\t\t\tseg1 = new Segment(arg0);\n\t\t\tseg2 = new Segment(arg1);\n\t\t} else if (count === 4) {\n\t\t\tpoint1 = arg0;\n\t\t\thandle1 = arg1;\n\t\t\thandle2 = arg2;\n\t\t\tpoint2 = arg3;\n\t\t} else if (count === 8) {\n\t\t\tpoint1 = [arg0, arg1];\n\t\t\tpoint2 = [arg6, arg7];\n\t\t\thandle1 = [arg2 - arg0, arg3 - arg1];\n\t\t\thandle2 = [arg4 - arg6, arg5 - arg7];\n\t\t}\n\t\tthis._segment1 = seg1 || new Segment(point1, null, handle1);\n\t\tthis._segment2 = seg2 || new Segment(point2, handle2, null);\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\treturn Base.serialize(this.hasHandles()\n\t\t\t\t? [this.getPoint1(), this.getHandle1(), this.getHandle2(),\n\t\t\t\t\tthis.getPoint2()]\n\t\t\t\t: [this.getPoint1(), this.getPoint2()],\n\t\t\t\toptions, true, dictionary);\n\t},\n\n\t_changed: function() {\n\t\tthis._length = this._bounds = undefined;\n\t},\n\n\tclone: function() {\n\t\treturn new Curve(this._segment1, this._segment2);\n\t},\n\n\ttoString: function() {\n\t\tvar parts = [ 'point1: ' + this._segment1._point ];\n\t\tif (!this._segment1._handleOut.isZero())\n\t\t\tparts.push('handle1: ' + this._segment1._handleOut);\n\t\tif (!this._segment2._handleIn.isZero())\n\t\t\tparts.push('handle2: ' + this._segment2._handleIn);\n\t\tparts.push('point2: ' + this._segment2._point);\n\t\treturn '{ ' + parts.join(', ') + ' }';\n\t},\n\n\tclassify: function() {\n\t\treturn Curve.classify(this.getValues());\n\t},\n\n\tremove: function() {\n\t\tvar removed = false;\n\t\tif (this._path) {\n\t\t\tvar segment2 = this._segment2,\n\t\t\t\thandleOut = segment2._handleOut;\n\t\t\tremoved = segment2.remove();\n\t\t\tif (removed)\n\t\t\t\tthis._segment1._handleOut.set(handleOut);\n\t\t}\n\t\treturn removed;\n\t},\n\n\tgetPoint1: function() {\n\t\treturn this._segment1._point;\n\t},\n\n\tsetPoint1: function() {\n\t\tthis._segment1._point.set(Point.read(arguments));\n\t},\n\n\tgetPoint2: function() {\n\t\treturn this._segment2._point;\n\t},\n\n\tsetPoint2: function() {\n\t\tthis._segment2._point.set(Point.read(arguments));\n\t},\n\n\tgetHandle1: function() {\n\t\treturn this._segment1._handleOut;\n\t},\n\n\tsetHandle1: function() {\n\t\tthis._segment1._handleOut.set(Point.read(arguments));\n\t},\n\n\tgetHandle2: function() {\n\t\treturn this._segment2._handleIn;\n\t},\n\n\tsetHandle2: function() {\n\t\tthis._segment2._handleIn.set(Point.read(arguments));\n\t},\n\n\tgetSegment1: function() {\n\t\treturn this._segment1;\n\t},\n\n\tgetSegment2: function() {\n\t\treturn this._segment2;\n\t},\n\n\tgetPath: function() {\n\t\treturn this._path;\n\t},\n\n\tgetIndex: function() {\n\t\treturn this._segment1._index;\n\t},\n\n\tgetNext: function() {\n\t\tvar curves = this._path && this._path._curves;\n\t\treturn curves && (curves[this._segment1._index + 1]\n\t\t\t\t|| this._path._closed && curves[0]) || null;\n\t},\n\n\tgetPrevious: function() {\n\t\tvar curves = this._path && this._path._curves;\n\t\treturn curves && (curves[this._segment1._index - 1]\n\t\t\t\t|| this._path._closed && curves[curves.length - 1]) || null;\n\t},\n\n\tisFirst: function() {\n\t\treturn !this._segment1._index;\n\t},\n\n\tisLast: function() {\n\t\tvar path = this._path;\n\t\treturn path && this._segment1._index === path._curves.length - 1\n\t\t\t\t|| false;\n\t},\n\n\tisSelected: function() {\n\t\treturn this.getPoint1().isSelected()\n\t\t\t\t&& this.getHandle1().isSelected()\n\t\t\t\t&& this.getHandle2().isSelected()\n\t\t\t\t&& this.getPoint2().isSelected();\n\t},\n\n\tsetSelected: function(selected) {\n\t\tthis.getPoint1().setSelected(selected);\n\t\tthis.getHandle1().setSelected(selected);\n\t\tthis.getHandle2().setSelected(selected);\n\t\tthis.getPoint2().setSelected(selected);\n\t},\n\n\tgetValues: function(matrix) {\n\t\treturn Curve.getValues(this._segment1, this._segment2, matrix);\n\t},\n\n\tgetPoints: function() {\n\t\tvar coords = this.getValues(),\n\t\t\tpoints = [];\n\t\tfor (var i = 0; i < 8; i += 2)\n\t\t\tpoints.push(new Point(coords[i], coords[i + 1]));\n\t\treturn points;\n\t}\n}, {\n\tgetLength: function() {\n\t\tif (this._length == null)\n\t\t\tthis._length = Curve.getLength(this.getValues(), 0, 1);\n\t\treturn this._length;\n\t},\n\n\tgetArea: function() {\n\t\treturn Curve.getArea(this.getValues());\n\t},\n\n\tgetLine: function() {\n\t\treturn new Line(this._segment1._point, this._segment2._point);\n\t},\n\n\tgetPart: function(from, to) {\n\t\treturn new Curve(Curve.getPart(this.getValues(), from, to));\n\t},\n\n\tgetPartLength: function(from, to) {\n\t\treturn Curve.getLength(this.getValues(), from, to);\n\t},\n\n\tdivideAt: function(location) {\n\t\treturn this.divideAtTime(location && location.curve === this\n\t\t\t\t? location.time : this.getTimeAt(location));\n\t},\n\n\tdivideAtTime: function(time, _setHandles) {\n\t\tvar tMin = 1e-8,\n\t\t\ttMax = 1 - tMin,\n\t\t\tres = null;\n\t\tif (time >= tMin && time <= tMax) {\n\t\t\tvar parts = Curve.subdivide(this.getValues(), time),\n\t\t\t\tleft = parts[0],\n\t\t\t\tright = parts[1],\n\t\t\t\tsetHandles = _setHandles || this.hasHandles(),\n\t\t\t\tseg1 = this._segment1,\n\t\t\t\tseg2 = this._segment2,\n\t\t\t\tpath = this._path;\n\t\t\tif (setHandles) {\n\t\t\t\tseg1._handleOut._set(left[2] - left[0], left[3] - left[1]);\n\t\t\t\tseg2._handleIn._set(right[4] - right[6],right[5] - right[7]);\n\t\t\t}\n\t\t\tvar x = left[6], y = left[7],\n\t\t\t\tsegment = new Segment(new Point(x, y),\n\t\t\t\t\t\tsetHandles && new Point(left[4] - x, left[5] - y),\n\t\t\t\t\t\tsetHandles && new Point(right[2] - x, right[3] - y));\n\t\t\tif (path) {\n\t\t\t\tpath.insert(seg1._index + 1, segment);\n\t\t\t\tres = this.getNext();\n\t\t\t} else {\n\t\t\t\tthis._segment2 = segment;\n\t\t\t\tthis._changed();\n\t\t\t\tres = new Curve(segment, seg2);\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t},\n\n\tsplitAt: function(location) {\n\t\tvar path = this._path;\n\t\treturn path ? path.splitAt(location) : null;\n\t},\n\n\tsplitAtTime: function(time) {\n\t\treturn this.splitAt(this.getLocationAtTime(time));\n\t},\n\n\tdivide: function(offset, isTime) {\n\t\treturn this.divideAtTime(offset === undefined ? 0.5 : isTime ? offset\n\t\t\t\t: this.getTimeAt(offset));\n\t},\n\n\tsplit: function(offset, isTime) {\n\t\treturn this.splitAtTime(offset === undefined ? 0.5 : isTime ? offset\n\t\t\t\t: this.getTimeAt(offset));\n\t},\n\n\treversed: function() {\n\t\treturn new Curve(this._segment2.reversed(), this._segment1.reversed());\n\t},\n\n\tclearHandles: function() {\n\t\tthis._segment1._handleOut._set(0, 0);\n\t\tthis._segment2._handleIn._set(0, 0);\n\t},\n\nstatics: {\n\tgetValues: function(segment1, segment2, matrix, straight) {\n\t\tvar p1 = segment1._point,\n\t\t\th1 = segment1._handleOut,\n\t\t\th2 = segment2._handleIn,\n\t\t\tp2 = segment2._point,\n\t\t\tx1 = p1.x, y1 = p1.y,\n\t\t\tx2 = p2.x, y2 = p2.y,\n\t\t\tvalues = straight\n\t\t\t\t? [ x1, y1, x1, y1, x2, y2, x2, y2 ]\n\t\t\t\t: [\n\t\t\t\t\tx1, y1,\n\t\t\t\t\tx1 + h1._x, y1 + h1._y,\n\t\t\t\t\tx2 + h2._x, y2 + h2._y,\n\t\t\t\t\tx2, y2\n\t\t\t\t];\n\t\tif (matrix)\n\t\t\tmatrix._transformCoordinates(values, values, 4);\n\t\treturn values;\n\t},\n\n\tsubdivide: function(v, t) {\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx1 = v[2], y1 = v[3],\n\t\t\tx2 = v[4], y2 = v[5],\n\t\t\tx3 = v[6], y3 = v[7];\n\t\tif (t === undefined)\n\t\t\tt = 0.5;\n\t\tvar u = 1 - t,\n\t\t\tx4 = u * x0 + t * x1, y4 = u * y0 + t * y1,\n\t\t\tx5 = u * x1 + t * x2, y5 = u * y1 + t * y2,\n\t\t\tx6 = u * x2 + t * x3, y6 = u * y2 + t * y3,\n\t\t\tx7 = u * x4 + t * x5, y7 = u * y4 + t * y5,\n\t\t\tx8 = u * x5 + t * x6, y8 = u * y5 + t * y6,\n\t\t\tx9 = u * x7 + t * x8, y9 = u * y7 + t * y8;\n\t\treturn [\n\t\t\t[x0, y0, x4, y4, x7, y7, x9, y9],\n\t\t\t[x9, y9, x8, y8, x6, y6, x3, y3]\n\t\t];\n\t},\n\n\tgetMonoCurves: function(v, dir) {\n\t\tvar curves = [],\n\t\t\tio = dir ? 0 : 1,\n\t\t\to0 = v[io + 0],\n\t\t\to1 = v[io + 2],\n\t\t\to2 = v[io + 4],\n\t\t\to3 = v[io + 6];\n\t\tif ((o0 >= o1) === (o1 >= o2) && (o1 >= o2) === (o2 >= o3)\n\t\t\t\t|| Curve.isStraight(v)) {\n\t\t\tcurves.push(v);\n\t\t} else {\n\t\t\tvar a = 3 * (o1 - o2) - o0 + o3,\n\t\t\t\tb = 2 * (o0 + o2) - 4 * o1,\n\t\t\t\tc = o1 - o0,\n\t\t\t\ttMin = 1e-8,\n\t\t\t\ttMax = 1 - tMin,\n\t\t\t\troots = [],\n\t\t\t\tn = Numerical.solveQuadratic(a, b, c, roots, tMin, tMax);\n\t\t\tif (!n) {\n\t\t\t\tcurves.push(v);\n\t\t\t} else {\n\t\t\t\troots.sort();\n\t\t\t\tvar t = roots[0],\n\t\t\t\t\tparts = Curve.subdivide(v, t);\n\t\t\t\tcurves.push(parts[0]);\n\t\t\t\tif (n > 1) {\n\t\t\t\t\tt = (roots[1] - t) / (1 - t);\n\t\t\t\t\tparts = Curve.subdivide(parts[1], t);\n\t\t\t\t\tcurves.push(parts[0]);\n\t\t\t\t}\n\t\t\t\tcurves.push(parts[1]);\n\t\t\t}\n\t\t}\n\t\treturn curves;\n\t},\n\n\tsolveCubic: function (v, coord, val, roots, min, max) {\n\t\tvar v0 = v[coord],\n\t\t\tv1 = v[coord + 2],\n\t\t\tv2 = v[coord + 4],\n\t\t\tv3 = v[coord + 6],\n\t\t\tres = 0;\n\t\tif ( !(v0 < val && v3 < val && v1 < val && v2 < val ||\n\t\t\t\tv0 > val && v3 > val && v1 > val && v2 > val)) {\n\t\t\tvar c = 3 * (v1 - v0),\n\t\t\t\tb = 3 * (v2 - v1) - c,\n\t\t\t\ta = v3 - v0 - c - b;\n\t\t\tres = Numerical.solveCubic(a, b, c, v0 - val, roots, min, max);\n\t\t}\n\t\treturn res;\n\t},\n\n\tgetTimeOf: function(v, point) {\n\t\tvar p0 = new Point(v[0], v[1]),\n\t\t\tp3 = new Point(v[6], v[7]),\n\t\t\tepsilon = 1e-12,\n\t\t\tgeomEpsilon = 1e-7,\n\t\t\tt = point.isClose(p0, epsilon) ? 0\n\t\t\t : point.isClose(p3, epsilon) ? 1\n\t\t\t : null;\n\t\tif (t === null) {\n\t\t\tvar coords = [point.x, point.y],\n\t\t\t\troots = [];\n\t\t\tfor (var c = 0; c < 2; c++) {\n\t\t\t\tvar count = Curve.solveCubic(v, c, coords[c], roots, 0, 1);\n\t\t\t\tfor (var i = 0; i < count; i++) {\n\t\t\t\t\tvar u = roots[i];\n\t\t\t\t\tif (point.isClose(Curve.getPoint(v, u), geomEpsilon))\n\t\t\t\t\t\treturn u;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn point.isClose(p0, geomEpsilon) ? 0\n\t\t\t : point.isClose(p3, geomEpsilon) ? 1\n\t\t\t : null;\n\t},\n\n\tgetNearestTime: function(v, point) {\n\t\tif (Curve.isStraight(v)) {\n\t\t\tvar x0 = v[0], y0 = v[1],\n\t\t\t\tx3 = v[6], y3 = v[7],\n\t\t\t\tvx = x3 - x0, vy = y3 - y0,\n\t\t\t\tdet = vx * vx + vy * vy;\n\t\t\tif (det === 0)\n\t\t\t\treturn 0;\n\t\t\tvar u = ((point.x - x0) * vx + (point.y - y0) * vy) / det;\n\t\t\treturn u < 1e-12 ? 0\n\t\t\t\t : u > 0.999999999999 ? 1\n\t\t\t\t : Curve.getTimeOf(v,\n\t\t\t\t\tnew Point(x0 + u * vx, y0 + u * vy));\n\t\t}\n\n\t\tvar count = 100,\n\t\t\tminDist = Infinity,\n\t\t\tminT = 0;\n\n\t\tfunction refine(t) {\n\t\t\tif (t >= 0 && t <= 1) {\n\t\t\t\tvar dist = point.getDistance(Curve.getPoint(v, t), true);\n\t\t\t\tif (dist < minDist) {\n\t\t\t\t\tminDist = dist;\n\t\t\t\t\tminT = t;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (var i = 0; i <= count; i++)\n\t\t\trefine(i / count);\n\n\t\tvar step = 1 / (count * 2);\n\t\twhile (step > 1e-8) {\n\t\t\tif (!refine(minT - step) && !refine(minT + step))\n\t\t\t\tstep /= 2;\n\t\t}\n\t\treturn minT;\n\t},\n\n\tgetPart: function(v, from, to) {\n\t\tvar flip = from > to;\n\t\tif (flip) {\n\t\t\tvar tmp = from;\n\t\t\tfrom = to;\n\t\t\tto = tmp;\n\t\t}\n\t\tif (from > 0)\n\t\t\tv = Curve.subdivide(v, from)[1];\n\t\tif (to < 1)\n\t\t\tv = Curve.subdivide(v, (to - from) / (1 - from))[0];\n\t\treturn flip\n\t\t\t\t? [v[6], v[7], v[4], v[5], v[2], v[3], v[0], v[1]]\n\t\t\t\t: v;\n\t},\n\n\tisFlatEnough: function(v, flatness) {\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx1 = v[2], y1 = v[3],\n\t\t\tx2 = v[4], y2 = v[5],\n\t\t\tx3 = v[6], y3 = v[7],\n\t\t\tux = 3 * x1 - 2 * x0 - x3,\n\t\t\tuy = 3 * y1 - 2 * y0 - y3,\n\t\t\tvx = 3 * x2 - 2 * x3 - x0,\n\t\t\tvy = 3 * y2 - 2 * y3 - y0;\n\t\treturn Math.max(ux * ux, vx * vx) + Math.max(uy * uy, vy * vy)\n\t\t\t\t<= 16 * flatness * flatness;\n\t},\n\n\tgetArea: function(v) {\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx1 = v[2], y1 = v[3],\n\t\t\tx2 = v[4], y2 = v[5],\n\t\t\tx3 = v[6], y3 = v[7];\n\t\treturn 3 * ((y3 - y0) * (x1 + x2) - (x3 - x0) * (y1 + y2)\n\t\t\t\t+ y1 * (x0 - x2) - x1 * (y0 - y2)\n\t\t\t\t+ y3 * (x2 + x0 / 3) - x3 * (y2 + y0 / 3)) / 20;\n\t},\n\n\tgetBounds: function(v) {\n\t\tvar min = v.slice(0, 2),\n\t\t\tmax = min.slice(),\n\t\t\troots = [0, 0];\n\t\tfor (var i = 0; i < 2; i++)\n\t\t\tCurve._addBounds(v[i], v[i + 2], v[i + 4], v[i + 6],\n\t\t\t\t\ti, 0, min, max, roots);\n\t\treturn new Rectangle(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n\t},\n\n\t_addBounds: function(v0, v1, v2, v3, coord, padding, min, max, roots) {\n\t\tfunction add(value, padding) {\n\t\t\tvar left = value - padding,\n\t\t\t\tright = value + padding;\n\t\t\tif (left < min[coord])\n\t\t\t\tmin[coord] = left;\n\t\t\tif (right > max[coord])\n\t\t\t\tmax[coord] = right;\n\t\t}\n\n\t\tpadding /= 2;\n\t\tvar minPad = min[coord] + padding,\n\t\t\tmaxPad = max[coord] - padding;\n\t\tif ( v0 < minPad || v1 < minPad || v2 < minPad || v3 < minPad ||\n\t\t\t\tv0 > maxPad || v1 > maxPad || v2 > maxPad || v3 > maxPad) {\n\t\t\tif (v1 < v0 != v1 < v3 && v2 < v0 != v2 < v3) {\n\t\t\t\tadd(v0, 0);\n\t\t\t\tadd(v3, 0);\n\t\t\t} else {\n\t\t\t\tvar a = 3 * (v1 - v2) - v0 + v3,\n\t\t\t\t\tb = 2 * (v0 + v2) - 4 * v1,\n\t\t\t\t\tc = v1 - v0,\n\t\t\t\t\tcount = Numerical.solveQuadratic(a, b, c, roots),\n\t\t\t\t\ttMin = 1e-8,\n\t\t\t\t\ttMax = 1 - tMin;\n\t\t\t\tadd(v3, 0);\n\t\t\t\tfor (var i = 0; i < count; i++) {\n\t\t\t\t\tvar t = roots[i],\n\t\t\t\t\t\tu = 1 - t;\n\t\t\t\t\tif (tMin <= t && t <= tMax)\n\t\t\t\t\t\tadd(u * u * u * v0\n\t\t\t\t\t\t\t+ 3 * u * u * t * v1\n\t\t\t\t\t\t\t+ 3 * u * t * t * v2\n\t\t\t\t\t\t\t+ t * t * t * v3,\n\t\t\t\t\t\t\tpadding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}}, Base.each(\n\t['getBounds', 'getStrokeBounds', 'getHandleBounds'],\n\tfunction(name) {\n\t\tthis[name] = function() {\n\t\t\tif (!this._bounds)\n\t\t\t\tthis._bounds = {};\n\t\t\tvar bounds = this._bounds[name];\n\t\t\tif (!bounds) {\n\t\t\t\tbounds = this._bounds[name] = Path[name](\n\t\t\t\t\t\t[this._segment1, this._segment2], false, this._path);\n\t\t\t}\n\t\t\treturn bounds.clone();\n\t\t};\n\t},\n{\n\n}), Base.each({\n\tisStraight: function(p1, h1, h2, p2) {\n\t\tif (h1.isZero() && h2.isZero()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tvar v = p2.subtract(p1);\n\t\t\tif (v.isZero()) {\n\t\t\t\treturn false;\n\t\t\t} else if (v.isCollinear(h1) && v.isCollinear(h2)) {\n\t\t\t\tvar l = new Line(p1, p2),\n\t\t\t\t\tepsilon = 1e-7;\n\t\t\t\tif (l.getDistance(p1.add(h1)) < epsilon &&\n\t\t\t\t\tl.getDistance(p2.add(h2)) < epsilon) {\n\t\t\t\t\tvar div = v.dot(v),\n\t\t\t\t\t\ts1 = v.dot(h1) / div,\n\t\t\t\t\t\ts2 = v.dot(h2) / div;\n\t\t\t\t\treturn s1 >= 0 && s1 <= 1 && s2 <= 0 && s2 >= -1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t},\n\n\tisLinear: function(p1, h1, h2, p2) {\n\t\tvar third = p2.subtract(p1).divide(3);\n\t\treturn h1.equals(third) && h2.negate().equals(third);\n\t}\n}, function(test, name) {\n\tthis[name] = function(epsilon) {\n\t\tvar seg1 = this._segment1,\n\t\t\tseg2 = this._segment2;\n\t\treturn test(seg1._point, seg1._handleOut, seg2._handleIn, seg2._point,\n\t\t\t\tepsilon);\n\t};\n\n\tthis.statics[name] = function(v, epsilon) {\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx3 = v[6], y3 = v[7];\n\t\treturn test(\n\t\t\t\tnew Point(x0, y0),\n\t\t\t\tnew Point(v[2] - x0, v[3] - y0),\n\t\t\t\tnew Point(v[4] - x3, v[5] - y3),\n\t\t\t\tnew Point(x3, y3), epsilon);\n\t};\n}, {\n\tstatics: {},\n\n\thasHandles: function() {\n\t\treturn !this._segment1._handleOut.isZero()\n\t\t\t\t|| !this._segment2._handleIn.isZero();\n\t},\n\n\thasLength: function(epsilon) {\n\t\treturn (!this.getPoint1().equals(this.getPoint2()) || this.hasHandles())\n\t\t\t\t&& this.getLength() > (epsilon || 0);\n\t},\n\n\tisCollinear: function(curve) {\n\t\treturn curve && this.isStraight() && curve.isStraight()\n\t\t\t\t&& this.getLine().isCollinear(curve.getLine());\n\t},\n\n\tisHorizontal: function() {\n\t\treturn this.isStraight() && Math.abs(this.getTangentAtTime(0.5).y)\n\t\t\t\t< 1e-8;\n\t},\n\n\tisVertical: function() {\n\t\treturn this.isStraight() && Math.abs(this.getTangentAtTime(0.5).x)\n\t\t\t\t< 1e-8;\n\t}\n}), {\n\tbeans: false,\n\n\tgetLocationAt: function(offset, _isTime) {\n\t\treturn this.getLocationAtTime(\n\t\t\t\t_isTime ? offset : this.getTimeAt(offset));\n\t},\n\n\tgetLocationAtTime: function(t) {\n\t\treturn t != null && t >= 0 && t <= 1\n\t\t\t\t? new CurveLocation(this, t)\n\t\t\t\t: null;\n\t},\n\n\tgetTimeAt: function(offset, start) {\n\t\treturn Curve.getTimeAt(this.getValues(), offset, start);\n\t},\n\n\tgetParameterAt: '#getTimeAt',\n\n\tgetTimesWithTangent: function () {\n\t\tvar tangent = Point.read(arguments);\n\t\treturn tangent.isZero()\n\t\t\t\t? []\n\t\t\t\t: Curve.getTimesWithTangent(this.getValues(), tangent);\n\t},\n\n\tgetOffsetAtTime: function(t) {\n\t\treturn this.getPartLength(0, t);\n\t},\n\n\tgetLocationOf: function() {\n\t\treturn this.getLocationAtTime(this.getTimeOf(Point.read(arguments)));\n\t},\n\n\tgetOffsetOf: function() {\n\t\tvar loc = this.getLocationOf.apply(this, arguments);\n\t\treturn loc ? loc.getOffset() : null;\n\t},\n\n\tgetTimeOf: function() {\n\t\treturn Curve.getTimeOf(this.getValues(), Point.read(arguments));\n\t},\n\n\tgetParameterOf: '#getTimeOf',\n\n\tgetNearestLocation: function() {\n\t\tvar point = Point.read(arguments),\n\t\t\tvalues = this.getValues(),\n\t\t\tt = Curve.getNearestTime(values, point),\n\t\t\tpt = Curve.getPoint(values, t);\n\t\treturn new CurveLocation(this, t, pt, null, point.getDistance(pt));\n\t},\n\n\tgetNearestPoint: function() {\n\t\tvar loc = this.getNearestLocation.apply(this, arguments);\n\t\treturn loc ? loc.getPoint() : loc;\n\t}\n\n},\nnew function() {\n\tvar methods = ['getPoint', 'getTangent', 'getNormal', 'getWeightedTangent',\n\t\t'getWeightedNormal', 'getCurvature'];\n\treturn Base.each(methods,\n\t\tfunction(name) {\n\t\t\tthis[name + 'At'] = function(location, _isTime) {\n\t\t\t\tvar values = this.getValues();\n\t\t\t\treturn Curve[name](values, _isTime ? location\n\t\t\t\t\t\t: Curve.getTimeAt(values, location));\n\t\t\t};\n\n\t\t\tthis[name + 'AtTime'] = function(time) {\n\t\t\t\treturn Curve[name](this.getValues(), time);\n\t\t\t};\n\t\t}, {\n\t\t\tstatics: {\n\t\t\t\t_evaluateMethods: methods\n\t\t\t}\n\t\t}\n\t);\n},\nnew function() {\n\n\tfunction getLengthIntegrand(v) {\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx1 = v[2], y1 = v[3],\n\t\t\tx2 = v[4], y2 = v[5],\n\t\t\tx3 = v[6], y3 = v[7],\n\n\t\t\tax = 9 * (x1 - x2) + 3 * (x3 - x0),\n\t\t\tbx = 6 * (x0 + x2) - 12 * x1,\n\t\t\tcx = 3 * (x1 - x0),\n\n\t\t\tay = 9 * (y1 - y2) + 3 * (y3 - y0),\n\t\t\tby = 6 * (y0 + y2) - 12 * y1,\n\t\t\tcy = 3 * (y1 - y0);\n\n\t\treturn function(t) {\n\t\t\tvar dx = (ax * t + bx) * t + cx,\n\t\t\t\tdy = (ay * t + by) * t + cy;\n\t\t\treturn Math.sqrt(dx * dx + dy * dy);\n\t\t};\n\t}\n\n\tfunction getIterations(a, b) {\n\t\treturn Math.max(2, Math.min(16, Math.ceil(Math.abs(b - a) * 32)));\n\t}\n\n\tfunction evaluate(v, t, type, normalized) {\n\t\tif (t == null || t < 0 || t > 1)\n\t\t\treturn null;\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx1 = v[2], y1 = v[3],\n\t\t\tx2 = v[4], y2 = v[5],\n\t\t\tx3 = v[6], y3 = v[7],\n\t\t\tisZero = Numerical.isZero;\n\t\tif (isZero(x1 - x0) && isZero(y1 - y0)) {\n\t\t\tx1 = x0;\n\t\t\ty1 = y0;\n\t\t}\n\t\tif (isZero(x2 - x3) && isZero(y2 - y3)) {\n\t\t\tx2 = x3;\n\t\t\ty2 = y3;\n\t\t}\n\t\tvar cx = 3 * (x1 - x0),\n\t\t\tbx = 3 * (x2 - x1) - cx,\n\t\t\tax = x3 - x0 - cx - bx,\n\t\t\tcy = 3 * (y1 - y0),\n\t\t\tby = 3 * (y2 - y1) - cy,\n\t\t\tay = y3 - y0 - cy - by,\n\t\t\tx, y;\n\t\tif (type === 0) {\n\t\t\tx = t === 0 ? x0 : t === 1 ? x3\n\t\t\t\t\t: ((ax * t + bx) * t + cx) * t + x0;\n\t\t\ty = t === 0 ? y0 : t === 1 ? y3\n\t\t\t\t\t: ((ay * t + by) * t + cy) * t + y0;\n\t\t} else {\n\t\t\tvar tMin = 1e-8,\n\t\t\t\ttMax = 1 - tMin;\n\t\t\tif (t < tMin) {\n\t\t\t\tx = cx;\n\t\t\t\ty = cy;\n\t\t\t} else if (t > tMax) {\n\t\t\t\tx = 3 * (x3 - x2);\n\t\t\t\ty = 3 * (y3 - y2);\n\t\t\t} else {\n\t\t\t\tx = (3 * ax * t + 2 * bx) * t + cx;\n\t\t\t\ty = (3 * ay * t + 2 * by) * t + cy;\n\t\t\t}\n\t\t\tif (normalized) {\n\t\t\t\tif (x === 0 && y === 0 && (t < tMin || t > tMax)) {\n\t\t\t\t\tx = x2 - x1;\n\t\t\t\t\ty = y2 - y1;\n\t\t\t\t}\n\t\t\t\tvar len = Math.sqrt(x * x + y * y);\n\t\t\t\tif (len) {\n\t\t\t\t\tx /= len;\n\t\t\t\t\ty /= len;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (type === 3) {\n\t\t\t\tvar x2 = 6 * ax * t + 2 * bx,\n\t\t\t\t\ty2 = 6 * ay * t + 2 * by,\n\t\t\t\t\td = Math.pow(x * x + y * y, 3 / 2);\n\t\t\t\tx = d !== 0 ? (x * y2 - y * x2) / d : 0;\n\t\t\t\ty = 0;\n\t\t\t}\n\t\t}\n\t\treturn type === 2 ? new Point(y, -x) : new Point(x, y);\n\t}\n\n\treturn { statics: {\n\n\t\tclassify: function(v) {\n\n\t\t\tvar x0 = v[0], y0 = v[1],\n\t\t\t\tx1 = v[2], y1 = v[3],\n\t\t\t\tx2 = v[4], y2 = v[5],\n\t\t\t\tx3 = v[6], y3 = v[7],\n\t\t\t\ta1 = x0 * (y3 - y2) + y0 * (x2 - x3) + x3 * y2 - y3 * x2,\n\t\t\t\ta2 = x1 * (y0 - y3) + y1 * (x3 - x0) + x0 * y3 - y0 * x3,\n\t\t\t\ta3 = x2 * (y1 - y0) + y2 * (x0 - x1) + x1 * y0 - y1 * x0,\n\t\t\t\td3 = 3 * a3,\n\t\t\t\td2 = d3 - a2,\n\t\t\t\td1 = d2 - a2 + a1,\n\t\t\t\tl = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3),\n\t\t\t\ts = l !== 0 ? 1 / l : 0,\n\t\t\t\tisZero = Numerical.isZero,\n\t\t\t\tserpentine = 'serpentine';\n\t\t\td1 *= s;\n\t\t\td2 *= s;\n\t\t\td3 *= s;\n\n\t\t\tfunction type(type, t1, t2) {\n\t\t\t\tvar hasRoots = t1 !== undefined,\n\t\t\t\t\tt1Ok = hasRoots && t1 > 0 && t1 < 1,\n\t\t\t\t\tt2Ok = hasRoots && t2 > 0 && t2 < 1;\n\t\t\t\tif (hasRoots && (!(t1Ok || t2Ok)\n\t\t\t\t\t\t|| type === 'loop' && !(t1Ok && t2Ok))) {\n\t\t\t\t\ttype = 'arch';\n\t\t\t\t\tt1Ok = t2Ok = false;\n\t\t\t\t}\n\t\t\t\treturn {\n\t\t\t\t\ttype: type,\n\t\t\t\t\troots: t1Ok || t2Ok\n\t\t\t\t\t\t\t? t1Ok && t2Ok\n\t\t\t\t\t\t\t\t? t1 < t2 ? [t1, t2] : [t2, t1]\n\t\t\t\t\t\t\t\t: [t1Ok ? t1 : t2]\n\t\t\t\t\t\t\t: null\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (isZero(d1)) {\n\t\t\t\treturn isZero(d2)\n\t\t\t\t\t\t? type(isZero(d3) ? 'line' : 'quadratic')\n\t\t\t\t\t\t: type(serpentine, d3 / (3 * d2));\n\t\t\t}\n\t\t\tvar d = 3 * d2 * d2 - 4 * d1 * d3;\n\t\t\tif (isZero(d)) {\n\t\t\t\treturn type('cusp', d2 / (2 * d1));\n\t\t\t}\n\t\t\tvar f1 = d > 0 ? Math.sqrt(d / 3) : Math.sqrt(-d),\n\t\t\t\tf2 = 2 * d1;\n\t\t\treturn type(d > 0 ? serpentine : 'loop',\n\t\t\t\t\t(d2 + f1) / f2,\n\t\t\t\t\t(d2 - f1) / f2);\n\t\t},\n\n\t\tgetLength: function(v, a, b, ds) {\n\t\t\tif (a === undefined)\n\t\t\t\ta = 0;\n\t\t\tif (b === undefined)\n\t\t\t\tb = 1;\n\t\t\tif (Curve.isStraight(v)) {\n\t\t\t\tvar c = v;\n\t\t\t\tif (b < 1) {\n\t\t\t\t\tc = Curve.subdivide(c, b)[0];\n\t\t\t\t\ta /= b;\n\t\t\t\t}\n\t\t\t\tif (a > 0) {\n\t\t\t\t\tc = Curve.subdivide(c, a)[1];\n\t\t\t\t}\n\t\t\t\tvar dx = c[6] - c[0],\n\t\t\t\t\tdy = c[7] - c[1];\n\t\t\t\treturn Math.sqrt(dx * dx + dy * dy);\n\t\t\t}\n\t\t\treturn Numerical.integrate(ds || getLengthIntegrand(v), a, b,\n\t\t\t\t\tgetIterations(a, b));\n\t\t},\n\n\t\tgetTimeAt: function(v, offset, start) {\n\t\t\tif (start === undefined)\n\t\t\t\tstart = offset < 0 ? 1 : 0;\n\t\t\tif (offset === 0)\n\t\t\t\treturn start;\n\t\t\tvar abs = Math.abs,\n\t\t\t\tepsilon = 1e-12,\n\t\t\t\tforward = offset > 0,\n\t\t\t\ta = forward ? start : 0,\n\t\t\t\tb = forward ? 1 : start,\n\t\t\t\tds = getLengthIntegrand(v),\n\t\t\t\trangeLength = Curve.getLength(v, a, b, ds),\n\t\t\t\tdiff = abs(offset) - rangeLength;\n\t\t\tif (abs(diff) < epsilon) {\n\t\t\t\treturn forward ? b : a;\n\t\t\t} else if (diff > epsilon) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tvar guess = offset / rangeLength,\n\t\t\t\tlength = 0;\n\t\t\tfunction f(t) {\n\t\t\t\tlength += Numerical.integrate(ds, start, t,\n\t\t\t\t\t\tgetIterations(start, t));\n\t\t\t\tstart = t;\n\t\t\t\treturn length - offset;\n\t\t\t}\n\t\t\treturn Numerical.findRoot(f, ds, start + guess, a, b, 32,\n\t\t\t\t\t1e-12);\n\t\t},\n\n\t\tgetPoint: function(v, t) {\n\t\t\treturn evaluate(v, t, 0, false);\n\t\t},\n\n\t\tgetTangent: function(v, t) {\n\t\t\treturn evaluate(v, t, 1, true);\n\t\t},\n\n\t\tgetWeightedTangent: function(v, t) {\n\t\t\treturn evaluate(v, t, 1, false);\n\t\t},\n\n\t\tgetNormal: function(v, t) {\n\t\t\treturn evaluate(v, t, 2, true);\n\t\t},\n\n\t\tgetWeightedNormal: function(v, t) {\n\t\t\treturn evaluate(v, t, 2, false);\n\t\t},\n\n\t\tgetCurvature: function(v, t) {\n\t\t\treturn evaluate(v, t, 3, false).x;\n\t\t},\n\n\t\tgetPeaks: function(v) {\n\t\t\tvar x0 = v[0], y0 = v[1],\n\t\t\t\tx1 = v[2], y1 = v[3],\n\t\t\t\tx2 = v[4], y2 = v[5],\n\t\t\t\tx3 = v[6], y3 = v[7],\n\t\t\t\tax = -x0 + 3 * x1 - 3 * x2 + x3,\n\t\t\t\tbx = 3 * x0 - 6 * x1 + 3 * x2,\n\t\t\t\tcx = -3 * x0 + 3 * x1,\n\t\t\t\tay = -y0 + 3 * y1 - 3 * y2 + y3,\n\t\t\t\tby = 3 * y0 - 6 * y1 + 3 * y2,\n\t\t\t\tcy = -3 * y0 + 3 * y1,\n\t\t\t\ttMin = 1e-8,\n\t\t\t\ttMax = 1 - tMin,\n\t\t\t\troots = [];\n\t\t\tNumerical.solveCubic(\n\t\t\t\t\t9 * (ax * ax + ay * ay),\n\t\t\t\t\t9 * (ax * bx + by * ay),\n\t\t\t\t\t2 * (bx * bx + by * by) + 3 * (cx * ax + cy * ay),\n\t\t\t\t\t(cx * bx + by * cy),\n\t\t\t\t\troots, tMin, tMax);\n\t\t\treturn roots.sort();\n\t\t}\n\t}};\n},\nnew function() {\n\n\tfunction addLocation(locations, include, c1, t1, c2, t2, overlap) {\n\t\tvar excludeStart = !overlap && c1.getPrevious() === c2,\n\t\t\texcludeEnd = !overlap && c1 !== c2 && c1.getNext() === c2,\n\t\t\ttMin = 1e-8,\n\t\t\ttMax = 1 - tMin;\n\t\tif (t1 !== null && t1 >= (excludeStart ? tMin : 0) &&\n\t\t\tt1 <= (excludeEnd ? tMax : 1)) {\n\t\t\tif (t2 !== null && t2 >= (excludeEnd ? tMin : 0) &&\n\t\t\t\tt2 <= (excludeStart ? tMax : 1)) {\n\t\t\t\tvar loc1 = new CurveLocation(c1, t1, null, overlap),\n\t\t\t\t\tloc2 = new CurveLocation(c2, t2, null, overlap);\n\t\t\t\tloc1._intersection = loc2;\n\t\t\t\tloc2._intersection = loc1;\n\t\t\t\tif (!include || include(loc1)) {\n\t\t\t\t\tCurveLocation.insert(locations, loc1, true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction addCurveIntersections(v1, v2, c1, c2, locations, include, flip,\n\t\t\trecursion, calls, tMin, tMax, uMin, uMax) {\n\t\tif (++calls >= 4096 || ++recursion >= 40)\n\t\t\treturn calls;\n\t\tvar fatLineEpsilon = 1e-9,\n\t\t\tq0x = v2[0], q0y = v2[1], q3x = v2[6], q3y = v2[7],\n\t\t\tgetSignedDistance = Line.getSignedDistance,\n\t\t\td1 = getSignedDistance(q0x, q0y, q3x, q3y, v2[2], v2[3]),\n\t\t\td2 = getSignedDistance(q0x, q0y, q3x, q3y, v2[4], v2[5]),\n\t\t\tfactor = d1 * d2 > 0 ? 3 / 4 : 4 / 9,\n\t\t\tdMin = factor * Math.min(0, d1, d2),\n\t\t\tdMax = factor * Math.max(0, d1, d2),\n\t\t\tdp0 = getSignedDistance(q0x, q0y, q3x, q3y, v1[0], v1[1]),\n\t\t\tdp1 = getSignedDistance(q0x, q0y, q3x, q3y, v1[2], v1[3]),\n\t\t\tdp2 = getSignedDistance(q0x, q0y, q3x, q3y, v1[4], v1[5]),\n\t\t\tdp3 = getSignedDistance(q0x, q0y, q3x, q3y, v1[6], v1[7]),\n\t\t\thull = getConvexHull(dp0, dp1, dp2, dp3),\n\t\t\ttop = hull[0],\n\t\t\tbottom = hull[1],\n\t\t\ttMinClip,\n\t\t\ttMaxClip;\n\t\tif (d1 === 0 && d2 === 0\n\t\t\t\t&& dp0 === 0 && dp1 === 0 && dp2 === 0 && dp3 === 0\n\t\t\t|| (tMinClip = clipConvexHull(top, bottom, dMin, dMax)) == null\n\t\t\t|| (tMaxClip = clipConvexHull(top.reverse(), bottom.reverse(),\n\t\t\t\tdMin, dMax)) == null)\n\t\t\treturn calls;\n\t\tvar tMinNew = tMin + (tMax - tMin) * tMinClip,\n\t\t\ttMaxNew = tMin + (tMax - tMin) * tMaxClip;\n\t\tif (Math.max(uMax - uMin, tMaxNew - tMinNew) < fatLineEpsilon) {\n\t\t\tvar t = (tMinNew + tMaxNew) / 2,\n\t\t\t\tu = (uMin + uMax) / 2;\n\t\t\taddLocation(locations, include,\n\t\t\t\t\tflip ? c2 : c1, flip ? u : t,\n\t\t\t\t\tflip ? c1 : c2, flip ? t : u);\n\t\t} else {\n\t\t\tv1 = Curve.getPart(v1, tMinClip, tMaxClip);\n\t\t\tvar uDiff = uMax - uMin;\n\t\t\tif (tMaxClip - tMinClip > 0.8) {\n\t\t\t\tif (tMaxNew - tMinNew > uDiff) {\n\t\t\t\t\tvar parts = Curve.subdivide(v1, 0.5),\n\t\t\t\t\t\tt = (tMinNew + tMaxNew) / 2;\n\t\t\t\t\tcalls = addCurveIntersections(\n\t\t\t\t\t\t\tv2, parts[0], c2, c1, locations, include, !flip,\n\t\t\t\t\t\t\trecursion, calls, uMin, uMax, tMinNew, t);\n\t\t\t\t\tcalls = addCurveIntersections(\n\t\t\t\t\t\t\tv2, parts[1], c2, c1, locations, include, !flip,\n\t\t\t\t\t\t\trecursion, calls, uMin, uMax, t, tMaxNew);\n\t\t\t\t} else {\n\t\t\t\t\tvar parts = Curve.subdivide(v2, 0.5),\n\t\t\t\t\t\tu = (uMin + uMax) / 2;\n\t\t\t\t\tcalls = addCurveIntersections(\n\t\t\t\t\t\t\tparts[0], v1, c2, c1, locations, include, !flip,\n\t\t\t\t\t\t\trecursion, calls, uMin, u, tMinNew, tMaxNew);\n\t\t\t\t\tcalls = addCurveIntersections(\n\t\t\t\t\t\t\tparts[1], v1, c2, c1, locations, include, !flip,\n\t\t\t\t\t\t\trecursion, calls, u, uMax, tMinNew, tMaxNew);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (uDiff === 0 || uDiff >= fatLineEpsilon) {\n\t\t\t\t\tcalls = addCurveIntersections(\n\t\t\t\t\t\t\tv2, v1, c2, c1, locations, include, !flip,\n\t\t\t\t\t\t\trecursion, calls, uMin, uMax, tMinNew, tMaxNew);\n\t\t\t\t} else {\n\t\t\t\t\tcalls = addCurveIntersections(\n\t\t\t\t\t\t\tv1, v2, c1, c2, locations, include, flip,\n\t\t\t\t\t\t\trecursion, calls, tMinNew, tMaxNew, uMin, uMax);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn calls;\n\t}\n\n\tfunction getConvexHull(dq0, dq1, dq2, dq3) {\n\t\tvar p0 = [ 0, dq0 ],\n\t\t\tp1 = [ 1 / 3, dq1 ],\n\t\t\tp2 = [ 2 / 3, dq2 ],\n\t\t\tp3 = [ 1, dq3 ],\n\t\t\tdist1 = dq1 - (2 * dq0 + dq3) / 3,\n\t\t\tdist2 = dq2 - (dq0 + 2 * dq3) / 3,\n\t\t\thull;\n\t\tif (dist1 * dist2 < 0) {\n\t\t\thull = [[p0, p1, p3], [p0, p2, p3]];\n\t\t} else {\n\t\t\tvar distRatio = dist1 / dist2;\n\t\t\thull = [\n\t\t\t\tdistRatio >= 2 ? [p0, p1, p3]\n\t\t\t\t: distRatio <= 0.5 ? [p0, p2, p3]\n\t\t\t\t: [p0, p1, p2, p3],\n\t\t\t\t[p0, p3]\n\t\t\t];\n\t\t}\n\t\treturn (dist1 || dist2) < 0 ? hull.reverse() : hull;\n\t}\n\n\tfunction clipConvexHull(hullTop, hullBottom, dMin, dMax) {\n\t\tif (hullTop[0][1] < dMin) {\n\t\t\treturn clipConvexHullPart(hullTop, true, dMin);\n\t\t} else if (hullBottom[0][1] > dMax) {\n\t\t\treturn clipConvexHullPart(hullBottom, false, dMax);\n\t\t} else {\n\t\t\treturn hullTop[0][0];\n\t\t}\n\t}\n\n\tfunction clipConvexHullPart(part, top, threshold) {\n\t\tvar px = part[0][0],\n\t\t\tpy = part[0][1];\n\t\tfor (var i = 1, l = part.length; i < l; i++) {\n\t\t\tvar qx = part[i][0],\n\t\t\t\tqy = part[i][1];\n\t\t\tif (top ? qy >= threshold : qy <= threshold) {\n\t\t\t\treturn qy === threshold ? qx\n\t\t\t\t\t\t: px + (threshold - py) * (qx - px) / (qy - py);\n\t\t\t}\n\t\t\tpx = qx;\n\t\t\tpy = qy;\n\t\t}\n\t\treturn null;\n\t}\n\n\tfunction getCurveLineIntersections(v, px, py, vx, vy) {\n\t\tvar isZero = Numerical.isZero;\n\t\tif (isZero(vx) && isZero(vy)) {\n\t\t\tvar t = Curve.getTimeOf(v, new Point(px, py));\n\t\t\treturn t === null ? [] : [t];\n\t\t}\n\t\tvar angle = Math.atan2(-vy, vx),\n\t\t\tsin = Math.sin(angle),\n\t\t\tcos = Math.cos(angle),\n\t\t\trv = [],\n\t\t\troots = [];\n\t\tfor (var i = 0; i < 8; i += 2) {\n\t\t\tvar x = v[i] - px,\n\t\t\t\ty = v[i + 1] - py;\n\t\t\trv.push(\n\t\t\t\tx * cos - y * sin,\n\t\t\t\tx * sin + y * cos);\n\t\t}\n\t\tCurve.solveCubic(rv, 1, 0, roots, 0, 1);\n\t\treturn roots;\n\t}\n\n\tfunction addCurveLineIntersections(v1, v2, c1, c2, locations, include,\n\t\t\tflip) {\n\t\tvar x1 = v2[0], y1 = v2[1],\n\t\t\tx2 = v2[6], y2 = v2[7],\n\t\t\troots = getCurveLineIntersections(v1, x1, y1, x2 - x1, y2 - y1);\n\t\tfor (var i = 0, l = roots.length; i < l; i++) {\n\t\t\tvar t1 = roots[i],\n\t\t\t\tp1 = Curve.getPoint(v1, t1),\n\t\t\t\tt2 = Curve.getTimeOf(v2, p1);\n\t\t\tif (t2 !== null) {\n\t\t\t\taddLocation(locations, include,\n\t\t\t\t\t\tflip ? c2 : c1, flip ? t2 : t1,\n\t\t\t\t\t\tflip ? c1 : c2, flip ? t1 : t2);\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction addLineIntersection(v1, v2, c1, c2, locations, include) {\n\t\tvar pt = Line.intersect(\n\t\t\t\tv1[0], v1[1], v1[6], v1[7],\n\t\t\t\tv2[0], v2[1], v2[6], v2[7]);\n\t\tif (pt) {\n\t\t\taddLocation(locations, include,\n\t\t\t\t\tc1, Curve.getTimeOf(v1, pt),\n\t\t\t\t\tc2, Curve.getTimeOf(v2, pt));\n\t\t}\n\t}\n\n\tfunction getCurveIntersections(v1, v2, c1, c2, locations, include) {\n\t\tvar epsilon = 1e-12,\n\t\t\tmin = Math.min,\n\t\t\tmax = Math.max;\n\n\t\tif (max(v1[0], v1[2], v1[4], v1[6]) + epsilon >\n\t\t\tmin(v2[0], v2[2], v2[4], v2[6]) &&\n\t\t\tmin(v1[0], v1[2], v1[4], v1[6]) - epsilon <\n\t\t\tmax(v2[0], v2[2], v2[4], v2[6]) &&\n\t\t\tmax(v1[1], v1[3], v1[5], v1[7]) + epsilon >\n\t\t\tmin(v2[1], v2[3], v2[5], v2[7]) &&\n\t\t\tmin(v1[1], v1[3], v1[5], v1[7]) - epsilon <\n\t\t\tmax(v2[1], v2[3], v2[5], v2[7])) {\n\t\t\tvar overlaps = getOverlaps(v1, v2);\n\t\t\tif (overlaps) {\n\t\t\t\tfor (var i = 0; i < 2; i++) {\n\t\t\t\t\tvar overlap = overlaps[i];\n\t\t\t\t\taddLocation(locations, include,\n\t\t\t\t\t\t\tc1, overlap[0],\n\t\t\t\t\t\t\tc2, overlap[1], true);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvar straight1 = Curve.isStraight(v1),\n\t\t\t\t\tstraight2 = Curve.isStraight(v2),\n\t\t\t\t\tstraight = straight1 && straight2,\n\t\t\t\t\tflip = straight1 && !straight2,\n\t\t\t\t\tbefore = locations.length;\n\t\t\t\t(straight\n\t\t\t\t\t? addLineIntersection\n\t\t\t\t\t: straight1 || straight2\n\t\t\t\t\t\t? addCurveLineIntersections\n\t\t\t\t\t\t: addCurveIntersections)(\n\t\t\t\t\t\t\tflip ? v2 : v1, flip ? v1 : v2,\n\t\t\t\t\t\t\tflip ? c2 : c1, flip ? c1 : c2,\n\t\t\t\t\t\t\tlocations, include, flip,\n\t\t\t\t\t\t\t0, 0, 0, 1, 0, 1);\n\t\t\t\tif (!straight || locations.length === before) {\n\t\t\t\t\tfor (var i = 0; i < 4; i++) {\n\t\t\t\t\t\tvar t1 = i >> 1,\n\t\t\t\t\t\t\tt2 = i & 1,\n\t\t\t\t\t\t\ti1 = t1 * 6,\n\t\t\t\t\t\t\ti2 = t2 * 6,\n\t\t\t\t\t\t\tp1 = new Point(v1[i1], v1[i1 + 1]),\n\t\t\t\t\t\t\tp2 = new Point(v2[i2], v2[i2 + 1]);\n\t\t\t\t\t\tif (p1.isClose(p2, epsilon)) {\n\t\t\t\t\t\t\taddLocation(locations, include,\n\t\t\t\t\t\t\t\t\tc1, t1,\n\t\t\t\t\t\t\t\t\tc2, t2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn locations;\n\t}\n\n\tfunction getSelfIntersection(v1, c1, locations, include) {\n\t\tvar info = Curve.classify(v1);\n\t\tif (info.type === 'loop') {\n\t\t\tvar roots = info.roots;\n\t\t\taddLocation(locations, include,\n\t\t\t\t\tc1, roots[0],\n\t\t\t\t\tc1, roots[1]);\n\t\t}\n\t return locations;\n\t}\n\n\tfunction getIntersections(curves1, curves2, include, matrix1, matrix2,\n\t\t\t_returnFirst) {\n\t\tvar epsilon = 1e-7,\n\t\t\tself = !curves2;\n\t\tif (self)\n\t\t\tcurves2 = curves1;\n\t\tvar length1 = curves1.length,\n\t\t\tlength2 = curves2.length,\n\t\t\tvalues1 = new Array(length1),\n\t\t\tvalues2 = self ? values1 : new Array(length2),\n\t\t\tlocations = [];\n\n\t\tfor (var i = 0; i < length1; i++) {\n\t\t\tvalues1[i] = curves1[i].getValues(matrix1);\n\t\t}\n\t\tif (!self) {\n\t\t\tfor (var i = 0; i < length2; i++) {\n\t\t\t\tvalues2[i] = curves2[i].getValues(matrix2);\n\t\t\t}\n\t\t}\n\t\tvar boundsCollisions = CollisionDetection.findCurveBoundsCollisions(\n\t\t\t\tvalues1, values2, epsilon);\n\t\tfor (var index1 = 0; index1 < length1; index1++) {\n\t\t\tvar curve1 = curves1[index1],\n\t\t\t\tv1 = values1[index1];\n\t\t\tif (self) {\n\t\t\t\tgetSelfIntersection(v1, curve1, locations, include);\n\t\t\t}\n\t\t\tvar collisions1 = boundsCollisions[index1];\n\t\t\tif (collisions1) {\n\t\t\t\tfor (var j = 0; j < collisions1.length; j++) {\n\t\t\t\t\tif (_returnFirst && locations.length)\n\t\t\t\t\t\treturn locations;\n\t\t\t\t\tvar index2 = collisions1[j];\n\t\t\t\t\tif (!self || index2 > index1) {\n\t\t\t\t\t\tvar curve2 = curves2[index2],\n\t\t\t\t\t\t\tv2 = values2[index2];\n\t\t\t\t\t\tgetCurveIntersections(\n\t\t\t\t\t\t\t\tv1, v2, curve1, curve2, locations, include);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn locations;\n\t}\n\n\tfunction getOverlaps(v1, v2) {\n\n\t\tfunction getSquaredLineLength(v) {\n\t\t\tvar x = v[6] - v[0],\n\t\t\t\ty = v[7] - v[1];\n\t\t\treturn x * x + y * y;\n\t\t}\n\n\t\tvar abs = Math.abs,\n\t\t\tgetDistance = Line.getDistance,\n\t\t\ttimeEpsilon = 1e-8,\n\t\t\tgeomEpsilon = 1e-7,\n\t\t\tstraight1 = Curve.isStraight(v1),\n\t\t\tstraight2 = Curve.isStraight(v2),\n\t\t\tstraightBoth = straight1 && straight2,\n\t\t\tflip = getSquaredLineLength(v1) < getSquaredLineLength(v2),\n\t\t\tl1 = flip ? v2 : v1,\n\t\t\tl2 = flip ? v1 : v2,\n\t\t\tpx = l1[0], py = l1[1],\n\t\t\tvx = l1[6] - px, vy = l1[7] - py;\n\t\tif (getDistance(px, py, vx, vy, l2[0], l2[1], true) < geomEpsilon &&\n\t\t\tgetDistance(px, py, vx, vy, l2[6], l2[7], true) < geomEpsilon) {\n\t\t\tif (!straightBoth &&\n\t\t\t\tgetDistance(px, py, vx, vy, l1[2], l1[3], true) < geomEpsilon &&\n\t\t\t\tgetDistance(px, py, vx, vy, l1[4], l1[5], true) < geomEpsilon &&\n\t\t\t\tgetDistance(px, py, vx, vy, l2[2], l2[3], true) < geomEpsilon &&\n\t\t\t\tgetDistance(px, py, vx, vy, l2[4], l2[5], true) < geomEpsilon) {\n\t\t\t\tstraight1 = straight2 = straightBoth = true;\n\t\t\t}\n\t\t} else if (straightBoth) {\n\t\t\treturn null;\n\t\t}\n\t\tif (straight1 ^ straight2) {\n\t\t\treturn null;\n\t\t}\n\n\t\tvar v = [v1, v2],\n\t\t\tpairs = [];\n\t\tfor (var i = 0; i < 4 && pairs.length < 2; i++) {\n\t\t\tvar i1 = i & 1,\n\t\t\t\ti2 = i1 ^ 1,\n\t\t\t\tt1 = i >> 1,\n\t\t\t\tt2 = Curve.getTimeOf(v[i1], new Point(\n\t\t\t\t\tv[i2][t1 ? 6 : 0],\n\t\t\t\t\tv[i2][t1 ? 7 : 1]));\n\t\t\tif (t2 != null) {\n\t\t\t\tvar pair = i1 ? [t1, t2] : [t2, t1];\n\t\t\t\tif (!pairs.length ||\n\t\t\t\t\tabs(pair[0] - pairs[0][0]) > timeEpsilon &&\n\t\t\t\t\tabs(pair[1] - pairs[0][1]) > timeEpsilon) {\n\t\t\t\t\tpairs.push(pair);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i > 2 && !pairs.length)\n\t\t\t\tbreak;\n\t\t}\n\t\tif (pairs.length !== 2) {\n\t\t\tpairs = null;\n\t\t} else if (!straightBoth) {\n\t\t\tvar o1 = Curve.getPart(v1, pairs[0][0], pairs[1][0]),\n\t\t\t\to2 = Curve.getPart(v2, pairs[0][1], pairs[1][1]);\n\t\t\tif (abs(o2[2] - o1[2]) > geomEpsilon ||\n\t\t\t\tabs(o2[3] - o1[3]) > geomEpsilon ||\n\t\t\t\tabs(o2[4] - o1[4]) > geomEpsilon ||\n\t\t\t\tabs(o2[5] - o1[5]) > geomEpsilon)\n\t\t\t\tpairs = null;\n\t\t}\n\t\treturn pairs;\n\t}\n\n\tfunction getTimesWithTangent(v, tangent) {\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx1 = v[2], y1 = v[3],\n\t\t\tx2 = v[4], y2 = v[5],\n\t\t\tx3 = v[6], y3 = v[7],\n\t\t\tnormalized = tangent.normalize(),\n\t\t\ttx = normalized.x,\n\t\t\tty = normalized.y,\n\t\t\tax = 3 * x3 - 9 * x2 + 9 * x1 - 3 * x0,\n\t\t\tay = 3 * y3 - 9 * y2 + 9 * y1 - 3 * y0,\n\t\t\tbx = 6 * x2 - 12 * x1 + 6 * x0,\n\t\t\tby = 6 * y2 - 12 * y1 + 6 * y0,\n\t\t\tcx = 3 * x1 - 3 * x0,\n\t\t\tcy = 3 * y1 - 3 * y0,\n\t\t\tden = 2 * ax * ty - 2 * ay * tx,\n\t\t\ttimes = [];\n\t\tif (Math.abs(den) < Numerical.CURVETIME_EPSILON) {\n\t\t\tvar num = ax * cy - ay * cx,\n\t\t\t\tden = ax * by - ay * bx;\n\t\t\tif (den != 0) {\n\t\t\t\tvar t = -num / den;\n\t\t\t\tif (t >= 0 && t <= 1) times.push(t);\n\t\t\t}\n\t\t} else {\n\t\t\tvar delta = (bx * bx - 4 * ax * cx) * ty * ty +\n\t\t\t\t(-2 * bx * by + 4 * ay * cx + 4 * ax * cy) * tx * ty +\n\t\t\t\t(by * by - 4 * ay * cy) * tx * tx,\n\t\t\t\tk = bx * ty - by * tx;\n\t\t\tif (delta >= 0 && den != 0) {\n\t\t\t\tvar d = Math.sqrt(delta),\n\t\t\t\t\tt0 = -(k + d) / den,\n\t\t\t\t\tt1 = (-k + d) / den;\n\t\t\t\tif (t0 >= 0 && t0 <= 1) times.push(t0);\n\t\t\t\tif (t1 >= 0 && t1 <= 1) times.push(t1);\n\t\t\t}\n\t\t}\n\t\treturn times;\n\t}\n\n\treturn {\n\t\tgetIntersections: function(curve) {\n\t\t\tvar v1 = this.getValues(),\n\t\t\t\tv2 = curve && curve !== this && curve.getValues();\n\t\t\treturn v2 ? getCurveIntersections(v1, v2, this, curve, [])\n\t\t\t\t\t : getSelfIntersection(v1, this, []);\n\t\t},\n\n\t\tstatics: {\n\t\t\tgetOverlaps: getOverlaps,\n\t\t\tgetIntersections: getIntersections,\n\t\t\tgetCurveLineIntersections: getCurveLineIntersections,\n\t\t\tgetTimesWithTangent: getTimesWithTangent\n\t\t}\n\t};\n});\n\nvar CurveLocation = Base.extend({\n\t_class: 'CurveLocation',\n\n\tinitialize: function CurveLocation(curve, time, point, _overlap, _distance) {\n\t\tif (time >= 0.99999999) {\n\t\t\tvar next = curve.getNext();\n\t\t\tif (next) {\n\t\t\t\ttime = 0;\n\t\t\t\tcurve = next;\n\t\t\t}\n\t\t}\n\t\tthis._setCurve(curve);\n\t\tthis._time = time;\n\t\tthis._point = point || curve.getPointAtTime(time);\n\t\tthis._overlap = _overlap;\n\t\tthis._distance = _distance;\n\t\tthis._intersection = this._next = this._previous = null;\n\t},\n\n\t_setPath: function(path) {\n\t\tthis._path = path;\n\t\tthis._version = path ? path._version : 0;\n\t},\n\n\t_setCurve: function(curve) {\n\t\tthis._setPath(curve._path);\n\t\tthis._curve = curve;\n\t\tthis._segment = null;\n\t\tthis._segment1 = curve._segment1;\n\t\tthis._segment2 = curve._segment2;\n\t},\n\n\t_setSegment: function(segment) {\n\t\tvar curve = segment.getCurve();\n\t\tif (curve) {\n\t\t\tthis._setCurve(curve);\n\t\t} else {\n\t\t\tthis._setPath(segment._path);\n\t\t\tthis._segment1 = segment;\n\t\t\tthis._segment2 = null;\n\t\t}\n\t\tthis._segment = segment;\n\t\tthis._time = segment === this._segment1 ? 0 : 1;\n\t\tthis._point = segment._point.clone();\n\t},\n\n\tgetSegment: function() {\n\t\tvar segment = this._segment;\n\t\tif (!segment) {\n\t\t\tvar curve = this.getCurve(),\n\t\t\t\ttime = this.getTime();\n\t\t\tif (time === 0) {\n\t\t\t\tsegment = curve._segment1;\n\t\t\t} else if (time === 1) {\n\t\t\t\tsegment = curve._segment2;\n\t\t\t} else if (time != null) {\n\t\t\t\tsegment = curve.getPartLength(0, time)\n\t\t\t\t\t< curve.getPartLength(time, 1)\n\t\t\t\t\t\t? curve._segment1\n\t\t\t\t\t\t: curve._segment2;\n\t\t\t}\n\t\t\tthis._segment = segment;\n\t\t}\n\t\treturn segment;\n\t},\n\n\tgetCurve: function() {\n\t\tvar path = this._path,\n\t\t\tthat = this;\n\t\tif (path && path._version !== this._version) {\n\t\t\tthis._time = this._offset = this._curveOffset = this._curve = null;\n\t\t}\n\n\t\tfunction trySegment(segment) {\n\t\t\tvar curve = segment && segment.getCurve();\n\t\t\tif (curve && (that._time = curve.getTimeOf(that._point)) != null) {\n\t\t\t\tthat._setCurve(curve);\n\t\t\t\treturn curve;\n\t\t\t}\n\t\t}\n\n\t\treturn this._curve\n\t\t\t|| trySegment(this._segment)\n\t\t\t|| trySegment(this._segment1)\n\t\t\t|| trySegment(this._segment2.getPrevious());\n\t},\n\n\tgetPath: function() {\n\t\tvar curve = this.getCurve();\n\t\treturn curve && curve._path;\n\t},\n\n\tgetIndex: function() {\n\t\tvar curve = this.getCurve();\n\t\treturn curve && curve.getIndex();\n\t},\n\n\tgetTime: function() {\n\t\tvar curve = this.getCurve(),\n\t\t\ttime = this._time;\n\t\treturn curve && time == null\n\t\t\t? this._time = curve.getTimeOf(this._point)\n\t\t\t: time;\n\t},\n\n\tgetParameter: '#getTime',\n\n\tgetPoint: function() {\n\t\treturn this._point;\n\t},\n\n\tgetOffset: function() {\n\t\tvar offset = this._offset;\n\t\tif (offset == null) {\n\t\t\toffset = 0;\n\t\t\tvar path = this.getPath(),\n\t\t\t\tindex = this.getIndex();\n\t\t\tif (path && index != null) {\n\t\t\t\tvar curves = path.getCurves();\n\t\t\t\tfor (var i = 0; i < index; i++)\n\t\t\t\t\toffset += curves[i].getLength();\n\t\t\t}\n\t\t\tthis._offset = offset += this.getCurveOffset();\n\t\t}\n\t\treturn offset;\n\t},\n\n\tgetCurveOffset: function() {\n\t\tvar offset = this._curveOffset;\n\t\tif (offset == null) {\n\t\t\tvar curve = this.getCurve(),\n\t\t\t\ttime = this.getTime();\n\t\t\tthis._curveOffset = offset = time != null && curve\n\t\t\t\t\t&& curve.getPartLength(0, time);\n\t\t}\n\t\treturn offset;\n\t},\n\n\tgetIntersection: function() {\n\t\treturn this._intersection;\n\t},\n\n\tgetDistance: function() {\n\t\treturn this._distance;\n\t},\n\n\tdivide: function() {\n\t\tvar curve = this.getCurve(),\n\t\t\tres = curve && curve.divideAtTime(this.getTime());\n\t\tif (res) {\n\t\t\tthis._setSegment(res._segment1);\n\t\t}\n\t\treturn res;\n\t},\n\n\tsplit: function() {\n\t\tvar curve = this.getCurve(),\n\t\t\tpath = curve._path,\n\t\t\tres = curve && curve.splitAtTime(this.getTime());\n\t\tif (res) {\n\t\t\tthis._setSegment(path.getLastSegment());\n\t\t}\n\t\treturn res;\n\t},\n\n\tequals: function(loc, _ignoreOther) {\n\t\tvar res = this === loc;\n\t\tif (!res && loc instanceof CurveLocation) {\n\t\t\tvar c1 = this.getCurve(),\n\t\t\t\tc2 = loc.getCurve(),\n\t\t\t\tp1 = c1._path,\n\t\t\t\tp2 = c2._path;\n\t\t\tif (p1 === p2) {\n\t\t\t\tvar abs = Math.abs,\n\t\t\t\t\tepsilon = 1e-7,\n\t\t\t\t\tdiff = abs(this.getOffset() - loc.getOffset()),\n\t\t\t\t\ti1 = !_ignoreOther && this._intersection,\n\t\t\t\t\ti2 = !_ignoreOther && loc._intersection;\n\t\t\t\tres = (diff < epsilon\n\t\t\t\t\t\t|| p1 && abs(p1.getLength() - diff) < epsilon)\n\t\t\t\t\t&& (!i1 && !i2 || i1 && i2 && i1.equals(i2, true));\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t},\n\n\ttoString: function() {\n\t\tvar parts = [],\n\t\t\tpoint = this.getPoint(),\n\t\t\tf = Formatter.instance;\n\t\tif (point)\n\t\t\tparts.push('point: ' + point);\n\t\tvar index = this.getIndex();\n\t\tif (index != null)\n\t\t\tparts.push('index: ' + index);\n\t\tvar time = this.getTime();\n\t\tif (time != null)\n\t\t\tparts.push('time: ' + f.number(time));\n\t\tif (this._distance != null)\n\t\t\tparts.push('distance: ' + f.number(this._distance));\n\t\treturn '{ ' + parts.join(', ') + ' }';\n\t},\n\n\tisTouching: function() {\n\t\tvar inter = this._intersection;\n\t\tif (inter && this.getTangent().isCollinear(inter.getTangent())) {\n\t\t\tvar curve1 = this.getCurve(),\n\t\t\t\tcurve2 = inter.getCurve();\n\t\t\treturn !(curve1.isStraight() && curve2.isStraight()\n\t\t\t\t\t&& curve1.getLine().intersect(curve2.getLine()));\n\t\t}\n\t\treturn false;\n\t},\n\n\tisCrossing: function() {\n\t\tvar inter = this._intersection;\n\t\tif (!inter)\n\t\t\treturn false;\n\t\tvar t1 = this.getTime(),\n\t\t\tt2 = inter.getTime(),\n\t\t\ttMin = 1e-8,\n\t\t\ttMax = 1 - tMin,\n\t\t\tt1Inside = t1 >= tMin && t1 <= tMax,\n\t\t\tt2Inside = t2 >= tMin && t2 <= tMax;\n\t\tif (t1Inside && t2Inside)\n\t\t\treturn !this.isTouching();\n\t\tvar c2 = this.getCurve(),\n\t\t\tc1 = c2 && t1 < tMin ? c2.getPrevious() : c2,\n\t\t\tc4 = inter.getCurve(),\n\t\t\tc3 = c4 && t2 < tMin ? c4.getPrevious() : c4;\n\t\tif (t1 > tMax)\n\t\t\tc2 = c2.getNext();\n\t\tif (t2 > tMax)\n\t\t\tc4 = c4.getNext();\n\t\tif (!c1 || !c2 || !c3 || !c4)\n\t\t\treturn false;\n\n\t\tvar offsets = [];\n\n\t\tfunction addOffsets(curve, end) {\n\t\t\tvar v = curve.getValues(),\n\t\t\t\troots = Curve.classify(v).roots || Curve.getPeaks(v),\n\t\t\t\tcount = roots.length,\n\t\t\t\toffset = Curve.getLength(v,\n\t\t\t\t\tend && count ? roots[count - 1] : 0,\n\t\t\t\t\t!end && count ? roots[0] : 1);\n\t\t\toffsets.push(count ? offset : offset / 32);\n\t\t}\n\n\t\tfunction isInRange(angle, min, max) {\n\t\t\treturn min < max\n\t\t\t\t\t? angle > min && angle < max\n\t\t\t\t\t: angle > min || angle < max;\n\t\t}\n\n\t\tif (!t1Inside) {\n\t\t\taddOffsets(c1, true);\n\t\t\taddOffsets(c2, false);\n\t\t}\n\t\tif (!t2Inside) {\n\t\t\taddOffsets(c3, true);\n\t\t\taddOffsets(c4, false);\n\t\t}\n\t\tvar pt = this.getPoint(),\n\t\t\toffset = Math.min.apply(Math, offsets),\n\t\t\tv2 = t1Inside ? c2.getTangentAtTime(t1)\n\t\t\t\t\t: c2.getPointAt(offset).subtract(pt),\n\t\t\tv1 = t1Inside ? v2.negate()\n\t\t\t\t\t: c1.getPointAt(-offset).subtract(pt),\n\t\t\tv4 = t2Inside ? c4.getTangentAtTime(t2)\n\t\t\t\t\t: c4.getPointAt(offset).subtract(pt),\n\t\t\tv3 = t2Inside ? v4.negate()\n\t\t\t\t\t: c3.getPointAt(-offset).subtract(pt),\n\t\t\ta1 = v1.getAngle(),\n\t\t\ta2 = v2.getAngle(),\n\t\t\ta3 = v3.getAngle(),\n\t\t\ta4 = v4.getAngle();\n\t\treturn !!(t1Inside\n\t\t\t\t? (isInRange(a1, a3, a4) ^ isInRange(a2, a3, a4)) &&\n\t\t\t\t (isInRange(a1, a4, a3) ^ isInRange(a2, a4, a3))\n\t\t\t\t: (isInRange(a3, a1, a2) ^ isInRange(a4, a1, a2)) &&\n\t\t\t\t (isInRange(a3, a2, a1) ^ isInRange(a4, a2, a1)));\n\t},\n\n\thasOverlap: function() {\n\t\treturn !!this._overlap;\n\t}\n}, Base.each(Curve._evaluateMethods, function(name) {\n\tvar get = name + 'At';\n\tthis[name] = function() {\n\t\tvar curve = this.getCurve(),\n\t\t\ttime = this.getTime();\n\t\treturn time != null && curve && curve[get](time, true);\n\t};\n}, {\n\tpreserve: true\n}),\nnew function() {\n\n\tfunction insert(locations, loc, merge) {\n\t\tvar length = locations.length,\n\t\t\tl = 0,\n\t\t\tr = length - 1;\n\n\t\tfunction search(index, dir) {\n\t\t\tfor (var i = index + dir; i >= -1 && i <= length; i += dir) {\n\t\t\t\tvar loc2 = locations[((i % length) + length) % length];\n\t\t\t\tif (!loc.getPoint().isClose(loc2.getPoint(),\n\t\t\t\t\t\t1e-7))\n\t\t\t\t\tbreak;\n\t\t\t\tif (loc.equals(loc2))\n\t\t\t\t\treturn loc2;\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\n\t\twhile (l <= r) {\n\t\t\tvar m = (l + r) >>> 1,\n\t\t\t\tloc2 = locations[m],\n\t\t\t\tfound;\n\t\t\tif (merge && (found = loc.equals(loc2) ? loc2\n\t\t\t\t\t: (search(m, -1) || search(m, 1)))) {\n\t\t\t\tif (loc._overlap) {\n\t\t\t\t\tfound._overlap = found._intersection._overlap = true;\n\t\t\t\t}\n\t\t\t\treturn found;\n\t\t\t}\n\t\tvar path1 = loc.getPath(),\n\t\t\tpath2 = loc2.getPath(),\n\t\t\tdiff = path1 !== path2\n\t\t\t\t? path1._id - path2._id\n\t\t\t\t: (loc.getIndex() + loc.getTime())\n\t\t\t\t- (loc2.getIndex() + loc2.getTime());\n\t\t\tif (diff < 0) {\n\t\t\t\tr = m - 1;\n\t\t\t} else {\n\t\t\t\tl = m + 1;\n\t\t\t}\n\t\t}\n\t\tlocations.splice(l, 0, loc);\n\t\treturn loc;\n\t}\n\n\treturn { statics: {\n\t\tinsert: insert,\n\n\t\texpand: function(locations) {\n\t\t\tvar expanded = locations.slice();\n\t\t\tfor (var i = locations.length - 1; i >= 0; i--) {\n\t\t\t\tinsert(expanded, locations[i]._intersection, false);\n\t\t\t}\n\t\t\treturn expanded;\n\t\t}\n\t}};\n});\n\nvar PathItem = Item.extend({\n\t_class: 'PathItem',\n\t_selectBounds: false,\n\t_canScaleStroke: true,\n\tbeans: true,\n\n\tinitialize: function PathItem() {\n\t},\n\n\tstatics: {\n\t\tcreate: function(arg) {\n\t\t\tvar data,\n\t\t\t\tsegments,\n\t\t\t\tcompound;\n\t\t\tif (Base.isPlainObject(arg)) {\n\t\t\t\tsegments = arg.segments;\n\t\t\t\tdata = arg.pathData;\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tsegments = arg;\n\t\t\t} else if (typeof arg === 'string') {\n\t\t\t\tdata = arg;\n\t\t\t}\n\t\t\tif (segments) {\n\t\t\t\tvar first = segments[0];\n\t\t\t\tcompound = first && Array.isArray(first[0]);\n\t\t\t} else if (data) {\n\t\t\t\tcompound = (data.match(/m/gi) || []).length > 1\n\t\t\t\t\t\t|| /z\\s*\\S+/i.test(data);\n\t\t\t}\n\t\t\tvar ctor = compound ? CompoundPath : Path;\n\t\t\treturn new ctor(arg);\n\t\t}\n\t},\n\n\t_asPathItem: function() {\n\t\treturn this;\n\t},\n\n\tisClockwise: function() {\n\t\treturn this.getArea() >= 0;\n\t},\n\n\tsetClockwise: function(clockwise) {\n\t\tif (this.isClockwise() != (clockwise = !!clockwise))\n\t\t\tthis.reverse();\n\t},\n\n\tsetPathData: function(data) {\n\n\t\tvar parts = data && data.match(/[mlhvcsqtaz][^mlhvcsqtaz]*/ig),\n\t\t\tcoords,\n\t\t\trelative = false,\n\t\t\tprevious,\n\t\t\tcontrol,\n\t\t\tcurrent = new Point(),\n\t\t\tstart = new Point();\n\n\t\tfunction getCoord(index, coord) {\n\t\t\tvar val = +coords[index];\n\t\t\tif (relative)\n\t\t\t\tval += current[coord];\n\t\t\treturn val;\n\t\t}\n\n\t\tfunction getPoint(index) {\n\t\t\treturn new Point(\n\t\t\t\tgetCoord(index, 'x'),\n\t\t\t\tgetCoord(index + 1, 'y')\n\t\t\t);\n\t\t}\n\n\t\tthis.clear();\n\n\t\tfor (var i = 0, l = parts && parts.length; i < l; i++) {\n\t\t\tvar part = parts[i],\n\t\t\t\tcommand = part[0],\n\t\t\t\tlower = command.toLowerCase();\n\t\t\tcoords = part.match(/[+-]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?/g);\n\t\t\tvar length = coords && coords.length;\n\t\t\trelative = command === lower;\n\t\t\tif (previous === 'z' && !/[mz]/.test(lower))\n\t\t\t\tthis.moveTo(current);\n\t\t\tswitch (lower) {\n\t\t\tcase 'm':\n\t\t\tcase 'l':\n\t\t\t\tvar move = lower === 'm';\n\t\t\t\tfor (var j = 0; j < length; j += 2) {\n\t\t\t\t\tthis[move ? 'moveTo' : 'lineTo'](current = getPoint(j));\n\t\t\t\t\tif (move) {\n\t\t\t\t\t\tstart = current;\n\t\t\t\t\t\tmove = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcontrol = current;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\tcase 'v':\n\t\t\t\tvar coord = lower === 'h' ? 'x' : 'y';\n\t\t\t\tcurrent = current.clone();\n\t\t\t\tfor (var j = 0; j < length; j++) {\n\t\t\t\t\tcurrent[coord] = getCoord(j, coord);\n\t\t\t\t\tthis.lineTo(current);\n\t\t\t\t}\n\t\t\t\tcontrol = current;\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tfor (var j = 0; j < length; j += 6) {\n\t\t\t\t\tthis.cubicCurveTo(\n\t\t\t\t\t\t\tgetPoint(j),\n\t\t\t\t\t\t\tcontrol = getPoint(j + 2),\n\t\t\t\t\t\t\tcurrent = getPoint(j + 4));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tfor (var j = 0; j < length; j += 4) {\n\t\t\t\t\tthis.cubicCurveTo(\n\t\t\t\t\t\t\t/[cs]/.test(previous)\n\t\t\t\t\t\t\t\t\t? current.multiply(2).subtract(control)\n\t\t\t\t\t\t\t\t\t: current,\n\t\t\t\t\t\t\tcontrol = getPoint(j),\n\t\t\t\t\t\t\tcurrent = getPoint(j + 2));\n\t\t\t\t\tprevious = lower;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\tfor (var j = 0; j < length; j += 4) {\n\t\t\t\t\tthis.quadraticCurveTo(\n\t\t\t\t\t\t\tcontrol = getPoint(j),\n\t\t\t\t\t\t\tcurrent = getPoint(j + 2));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\t\tfor (var j = 0; j < length; j += 2) {\n\t\t\t\t\tthis.quadraticCurveTo(\n\t\t\t\t\t\t\tcontrol = (/[qt]/.test(previous)\n\t\t\t\t\t\t\t\t\t? current.multiply(2).subtract(control)\n\t\t\t\t\t\t\t\t\t: current),\n\t\t\t\t\t\t\tcurrent = getPoint(j));\n\t\t\t\t\tprevious = lower;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'a':\n\t\t\t\tfor (var j = 0; j < length; j += 7) {\n\t\t\t\t\tthis.arcTo(current = getPoint(j + 5),\n\t\t\t\t\t\t\tnew Size(+coords[j], +coords[j + 1]),\n\t\t\t\t\t\t\t+coords[j + 2], +coords[j + 4], +coords[j + 3]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'z':\n\t\t\t\tthis.closePath(1e-12);\n\t\t\t\tcurrent = start;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tprevious = lower;\n\t\t}\n\t},\n\n\t_canComposite: function() {\n\t\treturn !(this.hasFill() && this.hasStroke());\n\t},\n\n\t_contains: function(point) {\n\t\tvar winding = point.isInside(\n\t\t\t\tthis.getBounds({ internal: true, handle: true }))\n\t\t\t\t\t? this._getWinding(point)\n\t\t\t\t\t: {};\n\t\treturn winding.onPath || !!(this.getFillRule() === 'evenodd'\n\t\t\t\t? winding.windingL & 1 || winding.windingR & 1\n\t\t\t\t: winding.winding);\n\t},\n\n\tgetIntersections: function(path, include, _matrix, _returnFirst) {\n\t\tvar self = this === path || !path,\n\t\t\tmatrix1 = this._matrix._orNullIfIdentity(),\n\t\t\tmatrix2 = self ? matrix1\n\t\t\t\t: (_matrix || path._matrix)._orNullIfIdentity();\n\t\treturn self || this.getBounds(matrix1).intersects(\n\t\t\t\tpath.getBounds(matrix2), 1e-12)\n\t\t\t\t? Curve.getIntersections(\n\t\t\t\t\t\tthis.getCurves(), !self && path.getCurves(), include,\n\t\t\t\t\t\tmatrix1, matrix2, _returnFirst)\n\t\t\t\t: [];\n\t},\n\n\tgetCrossings: function(path) {\n\t\treturn this.getIntersections(path, function(inter) {\n\t\t\treturn inter.isCrossing();\n\t\t});\n\t},\n\n\tgetNearestLocation: function() {\n\t\tvar point = Point.read(arguments),\n\t\t\tcurves = this.getCurves(),\n\t\t\tminDist = Infinity,\n\t\t\tminLoc = null;\n\t\tfor (var i = 0, l = curves.length; i < l; i++) {\n\t\t\tvar loc = curves[i].getNearestLocation(point);\n\t\t\tif (loc._distance < minDist) {\n\t\t\t\tminDist = loc._distance;\n\t\t\t\tminLoc = loc;\n\t\t\t}\n\t\t}\n\t\treturn minLoc;\n\t},\n\n\tgetNearestPoint: function() {\n\t\tvar loc = this.getNearestLocation.apply(this, arguments);\n\t\treturn loc ? loc.getPoint() : loc;\n\t},\n\n\tinterpolate: function(from, to, factor) {\n\t\tvar isPath = !this._children,\n\t\t\tname = isPath ? '_segments' : '_children',\n\t\t\titemsFrom = from[name],\n\t\t\titemsTo = to[name],\n\t\t\titems = this[name];\n\t\tif (!itemsFrom || !itemsTo || itemsFrom.length !== itemsTo.length) {\n\t\t\tthrow new Error('Invalid operands in interpolate() call: ' +\n\t\t\t\t\tfrom + ', ' + to);\n\t\t}\n\t\tvar current = items.length,\n\t\t\tlength = itemsTo.length;\n\t\tif (current < length) {\n\t\t\tvar ctor = isPath ? Segment : Path;\n\t\t\tfor (var i = current; i < length; i++) {\n\t\t\t\tthis.add(new ctor());\n\t\t\t}\n\t\t} else if (current > length) {\n\t\t\tthis[isPath ? 'removeSegments' : 'removeChildren'](length, current);\n\t\t}\n\t\tfor (var i = 0; i < length; i++) {\n\t\t\titems[i].interpolate(itemsFrom[i], itemsTo[i], factor);\n\t\t}\n\t\tif (isPath) {\n\t\t\tthis.setClosed(from._closed);\n\t\t\tthis._changed(9);\n\t\t}\n\t},\n\n\tcompare: function(path) {\n\t\tvar ok = false;\n\t\tif (path) {\n\t\t\tvar paths1 = this._children || [this],\n\t\t\t\tpaths2 = path._children ? path._children.slice() : [path],\n\t\t\t\tlength1 = paths1.length,\n\t\t\t\tlength2 = paths2.length,\n\t\t\t\tmatched = [],\n\t\t\t\tcount = 0;\n\t\t\tok = true;\n\t\t\tvar boundsOverlaps = CollisionDetection.findItemBoundsCollisions(paths1, paths2, Numerical.GEOMETRIC_EPSILON);\n\t\t\tfor (var i1 = length1 - 1; i1 >= 0 && ok; i1--) {\n\t\t\t\tvar path1 = paths1[i1];\n\t\t\t\tok = false;\n\t\t\t\tvar pathBoundsOverlaps = boundsOverlaps[i1];\n\t\t\t\tif (pathBoundsOverlaps) {\n\t\t\t\t\tfor (var i2 = pathBoundsOverlaps.length - 1; i2 >= 0 && !ok; i2--) {\n\t\t\t\t\t\tif (path1.compare(paths2[pathBoundsOverlaps[i2]])) {\n\t\t\t\t\t\t\tif (!matched[pathBoundsOverlaps[i2]]) {\n\t\t\t\t\t\t\t\tmatched[pathBoundsOverlaps[i2]] = true;\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tok = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tok = ok && count === length2;\n\t\t}\n\t\treturn ok;\n\t},\n\n});\n\nvar Path = PathItem.extend({\n\t_class: 'Path',\n\t_serializeFields: {\n\t\tsegments: [],\n\t\tclosed: false\n\t},\n\n\tinitialize: function Path(arg) {\n\t\tthis._closed = false;\n\t\tthis._segments = [];\n\t\tthis._version = 0;\n\t\tvar args = arguments,\n\t\t\tsegments = Array.isArray(arg)\n\t\t\t? typeof arg[0] === 'object'\n\t\t\t\t? arg\n\t\t\t\t: args\n\t\t\t: arg && (arg.size === undefined && (arg.x !== undefined\n\t\t\t\t\t|| arg.point !== undefined))\n\t\t\t\t? args\n\t\t\t\t: null;\n\t\tif (segments && segments.length > 0) {\n\t\t\tthis.setSegments(segments);\n\t\t} else {\n\t\t\tthis._curves = undefined;\n\t\t\tthis._segmentSelection = 0;\n\t\t\tif (!segments && typeof arg === 'string') {\n\t\t\t\tthis.setPathData(arg);\n\t\t\t\targ = null;\n\t\t\t}\n\t\t}\n\t\tthis._initialize(!segments && arg);\n\t},\n\n\t_equals: function(item) {\n\t\treturn this._closed === item._closed\n\t\t\t\t&& Base.equals(this._segments, item._segments);\n\t},\n\n\tcopyContent: function(source) {\n\t\tthis.setSegments(source._segments);\n\t\tthis._closed = source._closed;\n\t},\n\n\t_changed: function _changed(flags) {\n\t\t_changed.base.call(this, flags);\n\t\tif (flags & 8) {\n\t\t\tthis._length = this._area = undefined;\n\t\t\tif (flags & 32) {\n\t\t\t\tthis._version++;\n\t\t\t} else if (this._curves) {\n\t\t\t for (var i = 0, l = this._curves.length; i < l; i++)\n\t\t\t\t\tthis._curves[i]._changed();\n\t\t\t}\n\t\t} else if (flags & 64) {\n\t\t\tthis._bounds = undefined;\n\t\t}\n\t},\n\n\tgetStyle: function() {\n\t\tvar parent = this._parent;\n\t\treturn (parent instanceof CompoundPath ? parent : this)._style;\n\t},\n\n\tgetSegments: function() {\n\t\treturn this._segments;\n\t},\n\n\tsetSegments: function(segments) {\n\t\tvar fullySelected = this.isFullySelected(),\n\t\t\tlength = segments && segments.length;\n\t\tthis._segments.length = 0;\n\t\tthis._segmentSelection = 0;\n\t\tthis._curves = undefined;\n\t\tif (length) {\n\t\t\tvar last = segments[length - 1];\n\t\t\tif (typeof last === 'boolean') {\n\t\t\t\tthis.setClosed(last);\n\t\t\t\tlength--;\n\t\t\t}\n\t\t\tthis._add(Segment.readList(segments, 0, {}, length));\n\t\t}\n\t\tif (fullySelected)\n\t\t\tthis.setFullySelected(true);\n\t},\n\n\tgetFirstSegment: function() {\n\t\treturn this._segments[0];\n\t},\n\n\tgetLastSegment: function() {\n\t\treturn this._segments[this._segments.length - 1];\n\t},\n\n\tgetCurves: function() {\n\t\tvar curves = this._curves,\n\t\t\tsegments = this._segments;\n\t\tif (!curves) {\n\t\t\tvar length = this._countCurves();\n\t\t\tcurves = this._curves = new Array(length);\n\t\t\tfor (var i = 0; i < length; i++)\n\t\t\t\tcurves[i] = new Curve(this, segments[i],\n\t\t\t\t\tsegments[i + 1] || segments[0]);\n\t\t}\n\t\treturn curves;\n\t},\n\n\tgetFirstCurve: function() {\n\t\treturn this.getCurves()[0];\n\t},\n\n\tgetLastCurve: function() {\n\t\tvar curves = this.getCurves();\n\t\treturn curves[curves.length - 1];\n\t},\n\n\tisClosed: function() {\n\t\treturn this._closed;\n\t},\n\n\tsetClosed: function(closed) {\n\t\tif (this._closed != (closed = !!closed)) {\n\t\t\tthis._closed = closed;\n\t\t\tif (this._curves) {\n\t\t\t\tvar length = this._curves.length = this._countCurves();\n\t\t\t\tif (closed)\n\t\t\t\t\tthis._curves[length - 1] = new Curve(this,\n\t\t\t\t\t\tthis._segments[length - 1], this._segments[0]);\n\t\t\t}\n\t\t\tthis._changed(41);\n\t\t}\n\t}\n}, {\n\tbeans: true,\n\n\tgetPathData: function(_matrix, _precision) {\n\t\tvar segments = this._segments,\n\t\t\tlength = segments.length,\n\t\t\tf = new Formatter(_precision),\n\t\t\tcoords = new Array(6),\n\t\t\tfirst = true,\n\t\t\tcurX, curY,\n\t\t\tprevX, prevY,\n\t\t\tinX, inY,\n\t\t\toutX, outY,\n\t\t\tparts = [];\n\n\t\tfunction addSegment(segment, skipLine) {\n\t\t\tsegment._transformCoordinates(_matrix, coords);\n\t\t\tcurX = coords[0];\n\t\t\tcurY = coords[1];\n\t\t\tif (first) {\n\t\t\t\tparts.push('M' + f.pair(curX, curY));\n\t\t\t\tfirst = false;\n\t\t\t} else {\n\t\t\t\tinX = coords[2];\n\t\t\t\tinY = coords[3];\n\t\t\t\tif (inX === curX && inY === curY\n\t\t\t\t\t\t&& outX === prevX && outY === prevY) {\n\t\t\t\t\tif (!skipLine) {\n\t\t\t\t\t\tvar dx = curX - prevX,\n\t\t\t\t\t\t\tdy = curY - prevY;\n\t\t\t\t\t\tparts.push(\n\t\t\t\t\t\t\t dx === 0 ? 'v' + f.number(dy)\n\t\t\t\t\t\t\t: dy === 0 ? 'h' + f.number(dx)\n\t\t\t\t\t\t\t: 'l' + f.pair(dx, dy));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tparts.push('c' + f.pair(outX - prevX, outY - prevY)\n\t\t\t\t\t\t\t + ' ' + f.pair( inX - prevX, inY - prevY)\n\t\t\t\t\t\t\t + ' ' + f.pair(curX - prevX, curY - prevY));\n\t\t\t\t}\n\t\t\t}\n\t\t\tprevX = curX;\n\t\t\tprevY = curY;\n\t\t\toutX = coords[4];\n\t\t\toutY = coords[5];\n\t\t}\n\n\t\tif (!length)\n\t\t\treturn '';\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\taddSegment(segments[i]);\n\t\tif (this._closed && length > 0) {\n\t\t\taddSegment(segments[0], true);\n\t\t\tparts.push('z');\n\t\t}\n\t\treturn parts.join('');\n\t},\n\n\tisEmpty: function() {\n\t\treturn !this._segments.length;\n\t},\n\n\t_transformContent: function(matrix) {\n\t\tvar segments = this._segments,\n\t\t\tcoords = new Array(6);\n\t\tfor (var i = 0, l = segments.length; i < l; i++)\n\t\t\tsegments[i]._transformCoordinates(matrix, coords, true);\n\t\treturn true;\n\t},\n\n\t_add: function(segs, index) {\n\t\tvar segments = this._segments,\n\t\t\tcurves = this._curves,\n\t\t\tamount = segs.length,\n\t\t\tappend = index == null,\n\t\t\tindex = append ? segments.length : index;\n\t\tfor (var i = 0; i < amount; i++) {\n\t\t\tvar segment = segs[i];\n\t\t\tif (segment._path)\n\t\t\t\tsegment = segs[i] = segment.clone();\n\t\t\tsegment._path = this;\n\t\t\tsegment._index = index + i;\n\t\t\tif (segment._selection)\n\t\t\t\tthis._updateSelection(segment, 0, segment._selection);\n\t\t}\n\t\tif (append) {\n\t\t\tBase.push(segments, segs);\n\t\t} else {\n\t\t\tsegments.splice.apply(segments, [index, 0].concat(segs));\n\t\t\tfor (var i = index + amount, l = segments.length; i < l; i++)\n\t\t\t\tsegments[i]._index = i;\n\t\t}\n\t\tif (curves) {\n\t\t\tvar total = this._countCurves(),\n\t\t\t\tstart = index > 0 && index + amount - 1 === total ? index - 1\n\t\t\t\t\t: index,\n\t\t\t\tinsert = start,\n\t\t\t\tend = Math.min(start + amount, total);\n\t\t\tif (segs._curves) {\n\t\t\t\tcurves.splice.apply(curves, [start, 0].concat(segs._curves));\n\t\t\t\tinsert += segs._curves.length;\n\t\t\t}\n\t\t\tfor (var i = insert; i < end; i++)\n\t\t\t\tcurves.splice(i, 0, new Curve(this, null, null));\n\t\t\tthis._adjustCurves(start, end);\n\t\t}\n\t\tthis._changed(41);\n\t\treturn segs;\n\t},\n\n\t_adjustCurves: function(start, end) {\n\t\tvar segments = this._segments,\n\t\t\tcurves = this._curves,\n\t\t\tcurve;\n\t\tfor (var i = start; i < end; i++) {\n\t\t\tcurve = curves[i];\n\t\t\tcurve._path = this;\n\t\t\tcurve._segment1 = segments[i];\n\t\t\tcurve._segment2 = segments[i + 1] || segments[0];\n\t\t\tcurve._changed();\n\t\t}\n\t\tif (curve = curves[this._closed && !start ? segments.length - 1\n\t\t\t\t: start - 1]) {\n\t\t\tcurve._segment2 = segments[start] || segments[0];\n\t\t\tcurve._changed();\n\t\t}\n\t\tif (curve = curves[end]) {\n\t\t\tcurve._segment1 = segments[end];\n\t\t\tcurve._changed();\n\t\t}\n\t},\n\n\t_countCurves: function() {\n\t\tvar length = this._segments.length;\n\t\treturn !this._closed && length > 0 ? length - 1 : length;\n\t},\n\n\tadd: function(segment1 ) {\n\t\tvar args = arguments;\n\t\treturn args.length > 1 && typeof segment1 !== 'number'\n\t\t\t? this._add(Segment.readList(args))\n\t\t\t: this._add([ Segment.read(args) ])[0];\n\t},\n\n\tinsert: function(index, segment1 ) {\n\t\tvar args = arguments;\n\t\treturn args.length > 2 && typeof segment1 !== 'number'\n\t\t\t? this._add(Segment.readList(args, 1), index)\n\t\t\t: this._add([ Segment.read(args, 1) ], index)[0];\n\t},\n\n\taddSegment: function() {\n\t\treturn this._add([ Segment.read(arguments) ])[0];\n\t},\n\n\tinsertSegment: function(index ) {\n\t\treturn this._add([ Segment.read(arguments, 1) ], index)[0];\n\t},\n\n\taddSegments: function(segments) {\n\t\treturn this._add(Segment.readList(segments));\n\t},\n\n\tinsertSegments: function(index, segments) {\n\t\treturn this._add(Segment.readList(segments), index);\n\t},\n\n\tremoveSegment: function(index) {\n\t\treturn this.removeSegments(index, index + 1)[0] || null;\n\t},\n\n\tremoveSegments: function(start, end, _includeCurves) {\n\t\tstart = start || 0;\n\t\tend = Base.pick(end, this._segments.length);\n\t\tvar segments = this._segments,\n\t\t\tcurves = this._curves,\n\t\t\tcount = segments.length,\n\t\t\tremoved = segments.splice(start, end - start),\n\t\t\tamount = removed.length;\n\t\tif (!amount)\n\t\t\treturn removed;\n\t\tfor (var i = 0; i < amount; i++) {\n\t\t\tvar segment = removed[i];\n\t\t\tif (segment._selection)\n\t\t\t\tthis._updateSelection(segment, segment._selection, 0);\n\t\t\tsegment._index = segment._path = null;\n\t\t}\n\t\tfor (var i = start, l = segments.length; i < l; i++)\n\t\t\tsegments[i]._index = i;\n\t\tif (curves) {\n\t\t\tvar index = start > 0 && end === count + (this._closed ? 1 : 0)\n\t\t\t\t\t? start - 1\n\t\t\t\t\t: start,\n\t\t\t\tcurves = curves.splice(index, amount);\n\t\t\tfor (var i = curves.length - 1; i >= 0; i--)\n\t\t\t\tcurves[i]._path = null;\n\t\t\tif (_includeCurves)\n\t\t\t\tremoved._curves = curves.slice(1);\n\t\t\tthis._adjustCurves(index, index);\n\t\t}\n\t\tthis._changed(41);\n\t\treturn removed;\n\t},\n\n\tclear: '#removeSegments',\n\n\thasHandles: function() {\n\t\tvar segments = this._segments;\n\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\tif (segments[i].hasHandles())\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t},\n\n\tclearHandles: function() {\n\t\tvar segments = this._segments;\n\t\tfor (var i = 0, l = segments.length; i < l; i++)\n\t\t\tsegments[i].clearHandles();\n\t},\n\n\tgetLength: function() {\n\t\tif (this._length == null) {\n\t\t\tvar curves = this.getCurves(),\n\t\t\t\tlength = 0;\n\t\t\tfor (var i = 0, l = curves.length; i < l; i++)\n\t\t\t\tlength += curves[i].getLength();\n\t\t\tthis._length = length;\n\t\t}\n\t\treturn this._length;\n\t},\n\n\tgetArea: function() {\n\t\tvar area = this._area;\n\t\tif (area == null) {\n\t\t\tvar segments = this._segments,\n\t\t\t\tclosed = this._closed;\n\t\t\tarea = 0;\n\t\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\t\tvar last = i + 1 === l;\n\t\t\t\tarea += Curve.getArea(Curve.getValues(\n\t\t\t\t\t\tsegments[i], segments[last ? 0 : i + 1],\n\t\t\t\t\t\tnull, last && !closed));\n\t\t\t}\n\t\t\tthis._area = area;\n\t\t}\n\t\treturn area;\n\t},\n\n\tisFullySelected: function() {\n\t\tvar length = this._segments.length;\n\t\treturn this.isSelected() && length > 0 && this._segmentSelection\n\t\t\t\t=== length * 7;\n\t},\n\n\tsetFullySelected: function(selected) {\n\t\tif (selected)\n\t\t\tthis._selectSegments(true);\n\t\tthis.setSelected(selected);\n\t},\n\n\tsetSelection: function setSelection(selection) {\n\t\tif (!(selection & 1))\n\t\t\tthis._selectSegments(false);\n\t\tsetSelection.base.call(this, selection);\n\t},\n\n\t_selectSegments: function(selected) {\n\t\tvar segments = this._segments,\n\t\t\tlength = segments.length,\n\t\t\tselection = selected ? 7 : 0;\n\t\tthis._segmentSelection = selection * length;\n\t\tfor (var i = 0; i < length; i++)\n\t\t\tsegments[i]._selection = selection;\n\t},\n\n\t_updateSelection: function(segment, oldSelection, newSelection) {\n\t\tsegment._selection = newSelection;\n\t\tvar selection = this._segmentSelection += newSelection - oldSelection;\n\t\tif (selection > 0)\n\t\t\tthis.setSelected(true);\n\t},\n\n\tdivideAt: function(location) {\n\t\tvar loc = this.getLocationAt(location),\n\t\t\tcurve;\n\t\treturn loc && (curve = loc.getCurve().divideAt(loc.getCurveOffset()))\n\t\t\t\t? curve._segment1\n\t\t\t\t: null;\n\t},\n\n\tsplitAt: function(location) {\n\t\tvar loc = this.getLocationAt(location),\n\t\t\tindex = loc && loc.index,\n\t\t\ttime = loc && loc.time,\n\t\t\ttMin = 1e-8,\n\t\t\ttMax = 1 - tMin;\n\t\tif (time > tMax) {\n\t\t\tindex++;\n\t\t\ttime = 0;\n\t\t}\n\t\tvar curves = this.getCurves();\n\t\tif (index >= 0 && index < curves.length) {\n\t\t\tif (time >= tMin) {\n\t\t\t\tcurves[index++].divideAtTime(time);\n\t\t\t}\n\t\t\tvar segs = this.removeSegments(index, this._segments.length, true),\n\t\t\t\tpath;\n\t\t\tif (this._closed) {\n\t\t\t\tthis.setClosed(false);\n\t\t\t\tpath = this;\n\t\t\t} else {\n\t\t\t\tpath = new Path(Item.NO_INSERT);\n\t\t\t\tpath.insertAbove(this);\n\t\t\t\tpath.copyAttributes(this);\n\t\t\t}\n\t\t\tpath._add(segs, 0);\n\t\t\tthis.addSegment(segs[0]);\n\t\t\treturn path;\n\t\t}\n\t\treturn null;\n\t},\n\n\tsplit: function(index, time) {\n\t\tvar curve,\n\t\t\tlocation = time === undefined ? index\n\t\t\t\t: (curve = this.getCurves()[index])\n\t\t\t\t\t&& curve.getLocationAtTime(time);\n\t\treturn location != null ? this.splitAt(location) : null;\n\t},\n\n\tjoin: function(path, tolerance) {\n\t\tvar epsilon = tolerance || 0;\n\t\tif (path && path !== this) {\n\t\t\tvar segments = path._segments,\n\t\t\t\tlast1 = this.getLastSegment(),\n\t\t\t\tlast2 = path.getLastSegment();\n\t\t\tif (!last2)\n\t\t\t\treturn this;\n\t\t\tif (last1 && last1._point.isClose(last2._point, epsilon))\n\t\t\t\tpath.reverse();\n\t\t\tvar first2 = path.getFirstSegment();\n\t\t\tif (last1 && last1._point.isClose(first2._point, epsilon)) {\n\t\t\t\tlast1.setHandleOut(first2._handleOut);\n\t\t\t\tthis._add(segments.slice(1));\n\t\t\t} else {\n\t\t\t\tvar first1 = this.getFirstSegment();\n\t\t\t\tif (first1 && first1._point.isClose(first2._point, epsilon))\n\t\t\t\t\tpath.reverse();\n\t\t\t\tlast2 = path.getLastSegment();\n\t\t\t\tif (first1 && first1._point.isClose(last2._point, epsilon)) {\n\t\t\t\t\tfirst1.setHandleIn(last2._handleIn);\n\t\t\t\t\tthis._add(segments.slice(0, segments.length - 1), 0);\n\t\t\t\t} else {\n\t\t\t\t\tthis._add(segments.slice());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (path._closed)\n\t\t\t\tthis._add([segments[0]]);\n\t\t\tpath.remove();\n\t\t}\n\t\tvar first = this.getFirstSegment(),\n\t\t\tlast = this.getLastSegment();\n\t\tif (first !== last && first._point.isClose(last._point, epsilon)) {\n\t\t\tfirst.setHandleIn(last._handleIn);\n\t\t\tlast.remove();\n\t\t\tthis.setClosed(true);\n\t\t}\n\t\treturn this;\n\t},\n\n\treduce: function(options) {\n\t\tvar curves = this.getCurves(),\n\t\t\tsimplify = options && options.simplify,\n\t\t\ttolerance = simplify ? 1e-7 : 0;\n\t\tfor (var i = curves.length - 1; i >= 0; i--) {\n\t\t\tvar curve = curves[i];\n\t\t\tif (!curve.hasHandles() && (!curve.hasLength(tolerance)\n\t\t\t\t\t|| simplify && curve.isCollinear(curve.getNext())))\n\t\t\t\tcurve.remove();\n\t\t}\n\t\treturn this;\n\t},\n\n\treverse: function() {\n\t\tthis._segments.reverse();\n\t\tfor (var i = 0, l = this._segments.length; i < l; i++) {\n\t\t\tvar segment = this._segments[i];\n\t\t\tvar handleIn = segment._handleIn;\n\t\t\tsegment._handleIn = segment._handleOut;\n\t\t\tsegment._handleOut = handleIn;\n\t\t\tsegment._index = i;\n\t\t}\n\t\tthis._curves = null;\n\t\tthis._changed(9);\n\t},\n\n\tflatten: function(flatness) {\n\t\tvar flattener = new PathFlattener(this, flatness || 0.25, 256, true),\n\t\t\tparts = flattener.parts,\n\t\t\tlength = parts.length,\n\t\t\tsegments = [];\n\t\tfor (var i = 0; i < length; i++) {\n\t\t\tsegments.push(new Segment(parts[i].curve.slice(0, 2)));\n\t\t}\n\t\tif (!this._closed && length > 0) {\n\t\t\tsegments.push(new Segment(parts[length - 1].curve.slice(6)));\n\t\t}\n\t\tthis.setSegments(segments);\n\t},\n\n\tsimplify: function(tolerance) {\n\t\tvar segments = new PathFitter(this).fit(tolerance || 2.5);\n\t\tif (segments)\n\t\t\tthis.setSegments(segments);\n\t\treturn !!segments;\n\t},\n\n\tsmooth: function(options) {\n\t\tvar that = this,\n\t\t\topts = options || {},\n\t\t\ttype = opts.type || 'asymmetric',\n\t\t\tsegments = this._segments,\n\t\t\tlength = segments.length,\n\t\t\tclosed = this._closed;\n\n\t\tfunction getIndex(value, _default) {\n\t\t\tvar index = value && value.index;\n\t\t\tif (index != null) {\n\t\t\t\tvar path = value.path;\n\t\t\t\tif (path && path !== that)\n\t\t\t\t\tthrow new Error(value._class + ' ' + index + ' of ' + path\n\t\t\t\t\t\t\t+ ' is not part of ' + that);\n\t\t\t\tif (_default && value instanceof Curve)\n\t\t\t\t\tindex++;\n\t\t\t} else {\n\t\t\t\tindex = typeof value === 'number' ? value : _default;\n\t\t\t}\n\t\t\treturn Math.min(index < 0 && closed\n\t\t\t\t\t? index % length\n\t\t\t\t\t: index < 0 ? index + length : index, length - 1);\n\t\t}\n\n\t\tvar loop = closed && opts.from === undefined && opts.to === undefined,\n\t\t\tfrom = getIndex(opts.from, 0),\n\t\t\tto = getIndex(opts.to, length - 1);\n\n\t\tif (from > to) {\n\t\t\tif (closed) {\n\t\t\t\tfrom -= length;\n\t\t\t} else {\n\t\t\t\tvar tmp = from;\n\t\t\t\tfrom = to;\n\t\t\t\tto = tmp;\n\t\t\t}\n\t\t}\n\t\tif (/^(?:asymmetric|continuous)$/.test(type)) {\n\t\t\tvar asymmetric = type === 'asymmetric',\n\t\t\t\tmin = Math.min,\n\t\t\t\tamount = to - from + 1,\n\t\t\t\tn = amount - 1,\n\t\t\t\tpadding = loop ? min(amount, 4) : 1,\n\t\t\t\tpaddingLeft = padding,\n\t\t\t\tpaddingRight = padding,\n\t\t\t\tknots = [];\n\t\t\tif (!closed) {\n\t\t\t\tpaddingLeft = min(1, from);\n\t\t\t\tpaddingRight = min(1, length - to - 1);\n\t\t\t}\n\t\t\tn += paddingLeft + paddingRight;\n\t\t\tif (n <= 1)\n\t\t\t\treturn;\n\t\t\tfor (var i = 0, j = from - paddingLeft; i <= n; i++, j++) {\n\t\t\t\tknots[i] = segments[(j < 0 ? j + length : j) % length]._point;\n\t\t\t}\n\n\t\t\tvar x = knots[0]._x + 2 * knots[1]._x,\n\t\t\t\ty = knots[0]._y + 2 * knots[1]._y,\n\t\t\t\tf = 2,\n\t\t\t\tn_1 = n - 1,\n\t\t\t\trx = [x],\n\t\t\t\try = [y],\n\t\t\t\trf = [f],\n\t\t\t\tpx = [],\n\t\t\t\tpy = [];\n\t\t\tfor (var i = 1; i < n; i++) {\n\t\t\t\tvar internal = i < n_1,\n\t\t\t\t\ta = internal ? 1 : asymmetric ? 1 : 2,\n\t\t\t\t\tb = internal ? 4 : asymmetric ? 2 : 7,\n\t\t\t\t\tu = internal ? 4 : asymmetric ? 3 : 8,\n\t\t\t\t\tv = internal ? 2 : asymmetric ? 0 : 1,\n\t\t\t\t\tm = a / f;\n\t\t\t\tf = rf[i] = b - m;\n\t\t\t\tx = rx[i] = u * knots[i]._x + v * knots[i + 1]._x - m * x;\n\t\t\t\ty = ry[i] = u * knots[i]._y + v * knots[i + 1]._y - m * y;\n\t\t\t}\n\n\t\t\tpx[n_1] = rx[n_1] / rf[n_1];\n\t\t\tpy[n_1] = ry[n_1] / rf[n_1];\n\t\t\tfor (var i = n - 2; i >= 0; i--) {\n\t\t\t\tpx[i] = (rx[i] - px[i + 1]) / rf[i];\n\t\t\t\tpy[i] = (ry[i] - py[i + 1]) / rf[i];\n\t\t\t}\n\t\t\tpx[n] = (3 * knots[n]._x - px[n_1]) / 2;\n\t\t\tpy[n] = (3 * knots[n]._y - py[n_1]) / 2;\n\n\t\t\tfor (var i = paddingLeft, max = n - paddingRight, j = from;\n\t\t\t\t\ti <= max; i++, j++) {\n\t\t\t\tvar segment = segments[j < 0 ? j + length : j],\n\t\t\t\t\tpt = segment._point,\n\t\t\t\t\thx = px[i] - pt._x,\n\t\t\t\t\thy = py[i] - pt._y;\n\t\t\t\tif (loop || i < max)\n\t\t\t\t\tsegment.setHandleOut(hx, hy);\n\t\t\t\tif (loop || i > paddingLeft)\n\t\t\t\t\tsegment.setHandleIn(-hx, -hy);\n\t\t\t}\n\t\t} else {\n\t\t\tfor (var i = from; i <= to; i++) {\n\t\t\t\tsegments[i < 0 ? i + length : i].smooth(opts,\n\t\t\t\t\t\t!loop && i === from, !loop && i === to);\n\t\t\t}\n\t\t}\n\t},\n\n\ttoShape: function(insert) {\n\t\tif (!this._closed)\n\t\t\treturn null;\n\n\t\tvar segments = this._segments,\n\t\t\ttype,\n\t\t\tsize,\n\t\t\tradius,\n\t\t\ttopCenter;\n\n\t\tfunction isCollinear(i, j) {\n\t\t\tvar seg1 = segments[i],\n\t\t\t\tseg2 = seg1.getNext(),\n\t\t\t\tseg3 = segments[j],\n\t\t\t\tseg4 = seg3.getNext();\n\t\t\treturn seg1._handleOut.isZero() && seg2._handleIn.isZero()\n\t\t\t\t\t&& seg3._handleOut.isZero() && seg4._handleIn.isZero()\n\t\t\t\t\t&& seg2._point.subtract(seg1._point).isCollinear(\n\t\t\t\t\t\tseg4._point.subtract(seg3._point));\n\t\t}\n\n\t\tfunction isOrthogonal(i) {\n\t\t\tvar seg2 = segments[i],\n\t\t\t\tseg1 = seg2.getPrevious(),\n\t\t\t\tseg3 = seg2.getNext();\n\t\t\treturn seg1._handleOut.isZero() && seg2._handleIn.isZero()\n\t\t\t\t\t&& seg2._handleOut.isZero() && seg3._handleIn.isZero()\n\t\t\t\t\t&& seg2._point.subtract(seg1._point).isOrthogonal(\n\t\t\t\t\t\tseg3._point.subtract(seg2._point));\n\t\t}\n\n\t\tfunction isArc(i) {\n\t\t\tvar seg1 = segments[i],\n\t\t\t\tseg2 = seg1.getNext(),\n\t\t\t\thandle1 = seg1._handleOut,\n\t\t\t\thandle2 = seg2._handleIn,\n\t\t\t\tkappa = 0.5522847498307936;\n\t\t\tif (handle1.isOrthogonal(handle2)) {\n\t\t\t\tvar pt1 = seg1._point,\n\t\t\t\t\tpt2 = seg2._point,\n\t\t\t\t\tcorner = new Line(pt1, handle1, true).intersect(\n\t\t\t\t\t\t\tnew Line(pt2, handle2, true), true);\n\t\t\t\treturn corner && Numerical.isZero(handle1.getLength() /\n\t\t\t\t\t\tcorner.subtract(pt1).getLength() - kappa)\n\t\t\t\t\t&& Numerical.isZero(handle2.getLength() /\n\t\t\t\t\t\tcorner.subtract(pt2).getLength() - kappa);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\n\t\tfunction getDistance(i, j) {\n\t\t\treturn segments[i]._point.getDistance(segments[j]._point);\n\t\t}\n\n\t\tif (!this.hasHandles() && segments.length === 4\n\t\t\t\t&& isCollinear(0, 2) && isCollinear(1, 3) && isOrthogonal(1)) {\n\t\t\ttype = Shape.Rectangle;\n\t\t\tsize = new Size(getDistance(0, 3), getDistance(0, 1));\n\t\t\ttopCenter = segments[1]._point.add(segments[2]._point).divide(2);\n\t\t} else if (segments.length === 8 && isArc(0) && isArc(2) && isArc(4)\n\t\t\t\t&& isArc(6) && isCollinear(1, 5) && isCollinear(3, 7)) {\n\t\t\ttype = Shape.Rectangle;\n\t\t\tsize = new Size(getDistance(1, 6), getDistance(0, 3));\n\t\t\tradius = size.subtract(new Size(getDistance(0, 7),\n\t\t\t\t\tgetDistance(1, 2))).divide(2);\n\t\t\ttopCenter = segments[3]._point.add(segments[4]._point).divide(2);\n\t\t} else if (segments.length === 4\n\t\t\t\t&& isArc(0) && isArc(1) && isArc(2) && isArc(3)) {\n\t\t\tif (Numerical.isZero(getDistance(0, 2) - getDistance(1, 3))) {\n\t\t\t\ttype = Shape.Circle;\n\t\t\t\tradius = getDistance(0, 2) / 2;\n\t\t\t} else {\n\t\t\t\ttype = Shape.Ellipse;\n\t\t\t\tradius = new Size(getDistance(2, 0) / 2, getDistance(3, 1) / 2);\n\t\t\t}\n\t\t\ttopCenter = segments[1]._point;\n\t\t}\n\n\t\tif (type) {\n\t\t\tvar center = this.getPosition(true),\n\t\t\t\tshape = new type({\n\t\t\t\t\tcenter: center,\n\t\t\t\t\tsize: size,\n\t\t\t\t\tradius: radius,\n\t\t\t\t\tinsert: false\n\t\t\t\t});\n\t\t\tshape.copyAttributes(this, true);\n\t\t\tshape._matrix.prepend(this._matrix);\n\t\t\tshape.rotate(topCenter.subtract(center).getAngle() + 90);\n\t\t\tif (insert === undefined || insert)\n\t\t\t\tshape.insertAbove(this);\n\t\t\treturn shape;\n\t\t}\n\t\treturn null;\n\t},\n\n\ttoPath: '#clone',\n\n\tcompare: function compare(path) {\n\t\tif (!path || path instanceof CompoundPath)\n\t\t\treturn compare.base.call(this, path);\n\t\tvar curves1 = this.getCurves(),\n\t\t\tcurves2 = path.getCurves(),\n\t\t\tlength1 = curves1.length,\n\t\t\tlength2 = curves2.length;\n\t\tif (!length1 || !length2) {\n\t\t\treturn length1 == length2;\n\t\t}\n\t\tvar v1 = curves1[0].getValues(),\n\t\t\tvalues2 = [],\n\t\t\tpos1 = 0, pos2,\n\t\t\tend1 = 0, end2;\n\t\tfor (var i = 0; i < length2; i++) {\n\t\t\tvar v2 = curves2[i].getValues();\n\t\t\tvalues2.push(v2);\n\t\t\tvar overlaps = Curve.getOverlaps(v1, v2);\n\t\t\tif (overlaps) {\n\t\t\t\tpos2 = !i && overlaps[0][0] > 0 ? length2 - 1 : i;\n\t\t\t\tend2 = overlaps[0][1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tvar abs = Math.abs,\n\t\t\tepsilon = 1e-8,\n\t\t\tv2 = values2[pos2],\n\t\t\tstart2;\n\t\twhile (v1 && v2) {\n\t\t\tvar overlaps = Curve.getOverlaps(v1, v2);\n\t\t\tif (overlaps) {\n\t\t\t\tvar t1 = overlaps[0][0];\n\t\t\t\tif (abs(t1 - end1) < epsilon) {\n\t\t\t\t\tend1 = overlaps[1][0];\n\t\t\t\t\tif (end1 === 1) {\n\t\t\t\t\t\tv1 = ++pos1 < length1 ? curves1[pos1].getValues() : null;\n\t\t\t\t\t\tend1 = 0;\n\t\t\t\t\t}\n\t\t\t\t\tvar t2 = overlaps[0][1];\n\t\t\t\t\tif (abs(t2 - end2) < epsilon) {\n\t\t\t\t\t\tif (!start2)\n\t\t\t\t\t\t\tstart2 = [pos2, t2];\n\t\t\t\t\t\tend2 = overlaps[1][1];\n\t\t\t\t\t\tif (end2 === 1) {\n\t\t\t\t\t\t\tif (++pos2 >= length2)\n\t\t\t\t\t\t\t\tpos2 = 0;\n\t\t\t\t\t\t\tv2 = values2[pos2] || curves2[pos2].getValues();\n\t\t\t\t\t\t\tend2 = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!v1) {\n\t\t\t\t\t\t\treturn start2[0] === pos2 && start2[1] === end2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\treturn false;\n\t},\n\n\t_hitTestSelf: function(point, options, viewMatrix, strokeMatrix) {\n\t\tvar that = this,\n\t\t\tstyle = this.getStyle(),\n\t\t\tsegments = this._segments,\n\t\t\tnumSegments = segments.length,\n\t\t\tclosed = this._closed,\n\t\t\ttolerancePadding = options._tolerancePadding,\n\t\t\tstrokePadding = tolerancePadding,\n\t\t\tjoin, cap, miterLimit,\n\t\t\tarea, loc, res,\n\t\t\thitStroke = options.stroke && style.hasStroke(),\n\t\t\thitFill = options.fill && style.hasFill(),\n\t\t\thitCurves = options.curves,\n\t\t\tstrokeRadius = hitStroke\n\t\t\t\t\t? style.getStrokeWidth() / 2\n\t\t\t\t\t: hitFill && options.tolerance > 0 || hitCurves\n\t\t\t\t\t\t? 0 : null;\n\t\tif (strokeRadius !== null) {\n\t\t\tif (strokeRadius > 0) {\n\t\t\t\tjoin = style.getStrokeJoin();\n\t\t\t\tcap = style.getStrokeCap();\n\t\t\t\tmiterLimit = style.getMiterLimit();\n\t\t\t\tstrokePadding = strokePadding.add(\n\t\t\t\t\tPath._getStrokePadding(strokeRadius, strokeMatrix));\n\t\t\t} else {\n\t\t\t\tjoin = cap = 'round';\n\t\t\t}\n\t\t}\n\n\t\tfunction isCloseEnough(pt, padding) {\n\t\t\treturn point.subtract(pt).divide(padding).length <= 1;\n\t\t}\n\n\t\tfunction checkSegmentPoint(seg, pt, name) {\n\t\t\tif (!options.selected || pt.isSelected()) {\n\t\t\t\tvar anchor = seg._point;\n\t\t\t\tif (pt !== anchor)\n\t\t\t\t\tpt = pt.add(anchor);\n\t\t\t\tif (isCloseEnough(pt, strokePadding)) {\n\t\t\t\t\treturn new HitResult(name, that, {\n\t\t\t\t\t\tsegment: seg,\n\t\t\t\t\t\tpoint: pt\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfunction checkSegmentPoints(seg, ends) {\n\t\t\treturn (ends || options.segments)\n\t\t\t\t&& checkSegmentPoint(seg, seg._point, 'segment')\n\t\t\t\t|| (!ends && options.handles) && (\n\t\t\t\t\tcheckSegmentPoint(seg, seg._handleIn, 'handle-in') ||\n\t\t\t\t\tcheckSegmentPoint(seg, seg._handleOut, 'handle-out'));\n\t\t}\n\n\t\tfunction addToArea(point) {\n\t\t\tarea.add(point);\n\t\t}\n\n\t\tfunction checkSegmentStroke(segment) {\n\t\t\tvar isJoin = closed || segment._index > 0\n\t\t\t\t\t&& segment._index < numSegments - 1;\n\t\t\tif ((isJoin ? join : cap) === 'round') {\n\t\t\t\treturn isCloseEnough(segment._point, strokePadding);\n\t\t\t} else {\n\t\t\t\tarea = new Path({ internal: true, closed: true });\n\t\t\t\tif (isJoin) {\n\t\t\t\t\tif (!segment.isSmooth()) {\n\t\t\t\t\t\tPath._addBevelJoin(segment, join, strokeRadius,\n\t\t\t\t\t\t\t miterLimit, null, strokeMatrix, addToArea, true);\n\t\t\t\t\t}\n\t\t\t\t} else if (cap === 'square') {\n\t\t\t\t\tPath._addSquareCap(segment, cap, strokeRadius, null,\n\t\t\t\t\t\t\tstrokeMatrix, addToArea, true);\n\t\t\t\t}\n\t\t\t\tif (!area.isEmpty()) {\n\t\t\t\t\tvar loc;\n\t\t\t\t\treturn area.contains(point)\n\t\t\t\t\t\t|| (loc = area.getNearestLocation(point))\n\t\t\t\t\t\t\t&& isCloseEnough(loc.getPoint(), tolerancePadding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (options.ends && !options.segments && !closed) {\n\t\t\tif (res = checkSegmentPoints(segments[0], true)\n\t\t\t\t\t|| checkSegmentPoints(segments[numSegments - 1], true))\n\t\t\t\treturn res;\n\t\t} else if (options.segments || options.handles) {\n\t\t\tfor (var i = 0; i < numSegments; i++)\n\t\t\t\tif (res = checkSegmentPoints(segments[i]))\n\t\t\t\t\treturn res;\n\t\t}\n\t\tif (strokeRadius !== null) {\n\t\t\tloc = this.getNearestLocation(point);\n\t\t\tif (loc) {\n\t\t\t\tvar time = loc.getTime();\n\t\t\t\tif (time === 0 || time === 1 && numSegments > 1) {\n\t\t\t\t\tif (!checkSegmentStroke(loc.getSegment()))\n\t\t\t\t\t\tloc = null;\n\t\t\t\t} else if (!isCloseEnough(loc.getPoint(), strokePadding)) {\n\t\t\t\t\tloc = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!loc && join === 'miter' && numSegments > 1) {\n\t\t\t\tfor (var i = 0; i < numSegments; i++) {\n\t\t\t\t\tvar segment = segments[i];\n\t\t\t\t\tif (point.getDistance(segment._point)\n\t\t\t\t\t\t\t<= miterLimit * strokeRadius\n\t\t\t\t\t\t\t&& checkSegmentStroke(segment)) {\n\t\t\t\t\t\tloc = segment.getLocation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn !loc && hitFill && this._contains(point)\n\t\t\t\t|| loc && !hitStroke && !hitCurves\n\t\t\t\t\t? new HitResult('fill', this)\n\t\t\t\t\t: loc\n\t\t\t\t\t\t? new HitResult(hitStroke ? 'stroke' : 'curve', this, {\n\t\t\t\t\t\t\tlocation: loc,\n\t\t\t\t\t\t\tpoint: loc.getPoint()\n\t\t\t\t\t\t})\n\t\t\t\t\t\t: null;\n\t}\n\n}, Base.each(Curve._evaluateMethods,\n\tfunction(name) {\n\t\tthis[name + 'At'] = function(offset) {\n\t\t\tvar loc = this.getLocationAt(offset);\n\t\t\treturn loc && loc[name]();\n\t\t};\n\t},\n{\n\tbeans: false,\n\n\tgetLocationOf: function() {\n\t\tvar point = Point.read(arguments),\n\t\t\tcurves = this.getCurves();\n\t\tfor (var i = 0, l = curves.length; i < l; i++) {\n\t\t\tvar loc = curves[i].getLocationOf(point);\n\t\t\tif (loc)\n\t\t\t\treturn loc;\n\t\t}\n\t\treturn null;\n\t},\n\n\tgetOffsetOf: function() {\n\t\tvar loc = this.getLocationOf.apply(this, arguments);\n\t\treturn loc ? loc.getOffset() : null;\n\t},\n\n\tgetLocationAt: function(offset) {\n\t\tif (typeof offset === 'number') {\n\t\t\tvar curves = this.getCurves(),\n\t\t\t\tlength = 0;\n\t\t\tfor (var i = 0, l = curves.length; i < l; i++) {\n\t\t\t\tvar start = length,\n\t\t\t\t\tcurve = curves[i];\n\t\t\t\tlength += curve.getLength();\n\t\t\t\tif (length > offset) {\n\t\t\t\t\treturn curve.getLocationAt(offset - start);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (curves.length > 0 && offset <= this.getLength()) {\n\t\t\t\treturn new CurveLocation(curves[curves.length - 1], 1);\n\t\t\t}\n\t\t} else if (offset && offset.getPath && offset.getPath() === this) {\n\t\t\treturn offset;\n\t\t}\n\t\treturn null;\n\t},\n\n\tgetOffsetsWithTangent: function() {\n\t\tvar tangent = Point.read(arguments);\n\t\tif (tangent.isZero()) {\n\t\t\treturn [];\n\t\t}\n\n\t\tvar offsets = [];\n\t\tvar curveStart = 0;\n\t\tvar curves = this.getCurves();\n\t\tfor (var i = 0, l = curves.length; i < l; i++) {\n\t\t\tvar curve = curves[i];\n\t\t\tvar curveTimes = curve.getTimesWithTangent(tangent);\n\t\t\tfor (var j = 0, m = curveTimes.length; j < m; j++) {\n\t\t\t\tvar offset = curveStart + curve.getOffsetAtTime(curveTimes[j]);\n\t\t\t\tif (offsets.indexOf(offset) < 0) {\n\t\t\t\t\toffsets.push(offset);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcurveStart += curve.length;\n\t\t}\n\t\treturn offsets;\n\t}\n}),\nnew function() {\n\n\tfunction drawHandles(ctx, segments, matrix, size) {\n\t\tif (size <= 0) return;\n\n\t\tvar half = size / 2,\n\t\t\tminiSize = size - 2,\n\t\t\tminiHalf = half - 1,\n\t\t\tcoords = new Array(6),\n\t\t\tpX, pY;\n\n\t\tfunction drawHandle(index) {\n\t\t\tvar hX = coords[index],\n\t\t\t\thY = coords[index + 1];\n\t\t\tif (pX != hX || pY != hY) {\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.moveTo(pX, pY);\n\t\t\t\tctx.lineTo(hX, hY);\n\t\t\t\tctx.stroke();\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.arc(hX, hY, half, 0, Math.PI * 2, true);\n\t\t\t\tctx.fill();\n\t\t\t}\n\t\t}\n\n\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\tvar segment = segments[i],\n\t\t\t\tselection = segment._selection;\n\t\t\tsegment._transformCoordinates(matrix, coords);\n\t\t\tpX = coords[0];\n\t\t\tpY = coords[1];\n\t\t\tif (selection & 2)\n\t\t\t\tdrawHandle(2);\n\t\t\tif (selection & 4)\n\t\t\t\tdrawHandle(4);\n\t\t\tctx.fillRect(pX - half, pY - half, size, size);\n\t\t\tif (miniSize > 0 && !(selection & 1)) {\n\t\t\t\tvar fillStyle = ctx.fillStyle;\n\t\t\t\tctx.fillStyle = '#ffffff';\n\t\t\t\tctx.fillRect(pX - miniHalf, pY - miniHalf, miniSize, miniSize);\n\t\t\t\tctx.fillStyle = fillStyle;\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction drawSegments(ctx, path, matrix) {\n\t\tvar segments = path._segments,\n\t\t\tlength = segments.length,\n\t\t\tcoords = new Array(6),\n\t\t\tfirst = true,\n\t\t\tcurX, curY,\n\t\t\tprevX, prevY,\n\t\t\tinX, inY,\n\t\t\toutX, outY;\n\n\t\tfunction drawSegment(segment) {\n\t\t\tif (matrix) {\n\t\t\t\tsegment._transformCoordinates(matrix, coords);\n\t\t\t\tcurX = coords[0];\n\t\t\t\tcurY = coords[1];\n\t\t\t} else {\n\t\t\t\tvar point = segment._point;\n\t\t\t\tcurX = point._x;\n\t\t\t\tcurY = point._y;\n\t\t\t}\n\t\t\tif (first) {\n\t\t\t\tctx.moveTo(curX, curY);\n\t\t\t\tfirst = false;\n\t\t\t} else {\n\t\t\t\tif (matrix) {\n\t\t\t\t\tinX = coords[2];\n\t\t\t\t\tinY = coords[3];\n\t\t\t\t} else {\n\t\t\t\t\tvar handle = segment._handleIn;\n\t\t\t\t\tinX = curX + handle._x;\n\t\t\t\t\tinY = curY + handle._y;\n\t\t\t\t}\n\t\t\t\tif (inX === curX && inY === curY\n\t\t\t\t\t\t&& outX === prevX && outY === prevY) {\n\t\t\t\t\tctx.lineTo(curX, curY);\n\t\t\t\t} else {\n\t\t\t\t\tctx.bezierCurveTo(outX, outY, inX, inY, curX, curY);\n\t\t\t\t}\n\t\t\t}\n\t\t\tprevX = curX;\n\t\t\tprevY = curY;\n\t\t\tif (matrix) {\n\t\t\t\toutX = coords[4];\n\t\t\t\toutY = coords[5];\n\t\t\t} else {\n\t\t\t\tvar handle = segment._handleOut;\n\t\t\t\toutX = prevX + handle._x;\n\t\t\t\toutY = prevY + handle._y;\n\t\t\t}\n\t\t}\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\tdrawSegment(segments[i]);\n\t\tif (path._closed && length > 0)\n\t\t\tdrawSegment(segments[0]);\n\t}\n\n\treturn {\n\t\t_draw: function(ctx, param, viewMatrix, strokeMatrix) {\n\t\t\tvar dontStart = param.dontStart,\n\t\t\t\tdontPaint = param.dontFinish || param.clip,\n\t\t\t\tstyle = this.getStyle(),\n\t\t\t\thasFill = style.hasFill(),\n\t\t\t\thasStroke = style.hasStroke(),\n\t\t\t\tdashArray = style.getDashArray(),\n\t\t\t\tdashLength = !paper.support.nativeDash && hasStroke\n\t\t\t\t\t\t&& dashArray && dashArray.length;\n\n\t\t\tif (!dontStart)\n\t\t\t\tctx.beginPath();\n\n\t\t\tif (hasFill || hasStroke && !dashLength || dontPaint) {\n\t\t\t\tdrawSegments(ctx, this, strokeMatrix);\n\t\t\t\tif (this._closed)\n\t\t\t\t\tctx.closePath();\n\t\t\t}\n\n\t\t\tfunction getOffset(i) {\n\t\t\t\treturn dashArray[((i % dashLength) + dashLength) % dashLength];\n\t\t\t}\n\n\t\t\tif (!dontPaint && (hasFill || hasStroke)) {\n\t\t\t\tthis._setStyles(ctx, param, viewMatrix);\n\t\t\t\tif (hasFill) {\n\t\t\t\t\tctx.fill(style.getFillRule());\n\t\t\t\t\tctx.shadowColor = 'rgba(0,0,0,0)';\n\t\t\t\t}\n\t\t\t\tif (hasStroke) {\n\t\t\t\t\tif (dashLength) {\n\t\t\t\t\t\tif (!dontStart)\n\t\t\t\t\t\t\tctx.beginPath();\n\t\t\t\t\t\tvar flattener = new PathFlattener(this, 0.25, 32, false,\n\t\t\t\t\t\t\t\tstrokeMatrix),\n\t\t\t\t\t\t\tlength = flattener.length,\n\t\t\t\t\t\t\tfrom = -style.getDashOffset(), to,\n\t\t\t\t\t\t\ti = 0;\n\t\t\t\t\t\twhile (from > 0) {\n\t\t\t\t\t\t\tfrom -= getOffset(i--) + getOffset(i--);\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (from < length) {\n\t\t\t\t\t\t\tto = from + getOffset(i++);\n\t\t\t\t\t\t\tif (from > 0 || to > 0)\n\t\t\t\t\t\t\t\tflattener.drawPart(ctx,\n\t\t\t\t\t\t\t\t\t\tMath.max(from, 0), Math.max(to, 0));\n\t\t\t\t\t\t\tfrom = to + getOffset(i++);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tctx.stroke();\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_drawSelected: function(ctx, matrix) {\n\t\t\tctx.beginPath();\n\t\t\tdrawSegments(ctx, this, matrix);\n\t\t\tctx.stroke();\n\t\t\tdrawHandles(ctx, this._segments, matrix, paper.settings.handleSize);\n\t\t}\n\t};\n},\nnew function() {\n\tfunction getCurrentSegment(that) {\n\t\tvar segments = that._segments;\n\t\tif (!segments.length)\n\t\t\tthrow new Error('Use a moveTo() command first');\n\t\treturn segments[segments.length - 1];\n\t}\n\n\treturn {\n\t\tmoveTo: function() {\n\t\t\tvar segments = this._segments;\n\t\t\tif (segments.length === 1)\n\t\t\t\tthis.removeSegment(0);\n\t\t\tif (!segments.length)\n\t\t\t\tthis._add([ new Segment(Point.read(arguments)) ]);\n\t\t},\n\n\t\tmoveBy: function() {\n\t\t\tthrow new Error('moveBy() is unsupported on Path items.');\n\t\t},\n\n\t\tlineTo: function() {\n\t\t\tthis._add([ new Segment(Point.read(arguments)) ]);\n\t\t},\n\n\t\tcubicCurveTo: function() {\n\t\t\tvar args = arguments,\n\t\t\t\thandle1 = Point.read(args),\n\t\t\t\thandle2 = Point.read(args),\n\t\t\t\tto = Point.read(args),\n\t\t\t\tcurrent = getCurrentSegment(this);\n\t\t\tcurrent.setHandleOut(handle1.subtract(current._point));\n\t\t\tthis._add([ new Segment(to, handle2.subtract(to)) ]);\n\t\t},\n\n\t\tquadraticCurveTo: function() {\n\t\t\tvar args = arguments,\n\t\t\t\thandle = Point.read(args),\n\t\t\t\tto = Point.read(args),\n\t\t\t\tcurrent = getCurrentSegment(this)._point;\n\t\t\tthis.cubicCurveTo(\n\t\t\t\thandle.add(current.subtract(handle).multiply(1 / 3)),\n\t\t\t\thandle.add(to.subtract(handle).multiply(1 / 3)),\n\t\t\t\tto\n\t\t\t);\n\t\t},\n\n\t\tcurveTo: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tthrough = Point.read(args),\n\t\t\t\tto = Point.read(args),\n\t\t\t\tt = Base.pick(Base.read(args), 0.5),\n\t\t\t\tt1 = 1 - t,\n\t\t\t\tcurrent = getCurrentSegment(this)._point,\n\t\t\t\thandle = through.subtract(current.multiply(t1 * t1))\n\t\t\t\t\t.subtract(to.multiply(t * t)).divide(2 * t * t1);\n\t\t\tif (handle.isNaN())\n\t\t\t\tthrow new Error(\n\t\t\t\t\t'Cannot put a curve through points with parameter = ' + t);\n\t\t\tthis.quadraticCurveTo(handle, to);\n\t\t},\n\n\t\tarcTo: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tabs = Math.abs,\n\t\t\t\tsqrt = Math.sqrt,\n\t\t\t\tcurrent = getCurrentSegment(this),\n\t\t\t\tfrom = current._point,\n\t\t\t\tto = Point.read(args),\n\t\t\t\tthrough,\n\t\t\t\tpeek = Base.peek(args),\n\t\t\t\tclockwise = Base.pick(peek, true),\n\t\t\t\tcenter, extent, vector, matrix;\n\t\t\tif (typeof clockwise === 'boolean') {\n\t\t\t\tvar middle = from.add(to).divide(2),\n\t\t\t\tthrough = middle.add(middle.subtract(from).rotate(\n\t\t\t\t\t\tclockwise ? -90 : 90));\n\t\t\t} else if (Base.remain(args) <= 2) {\n\t\t\t\tthrough = to;\n\t\t\t\tto = Point.read(args);\n\t\t\t} else if (!from.equals(to)) {\n\t\t\t\tvar radius = Size.read(args),\n\t\t\t\t\tisZero = Numerical.isZero;\n\t\t\t\tif (isZero(radius.width) || isZero(radius.height))\n\t\t\t\t\treturn this.lineTo(to);\n\t\t\t\tvar rotation = Base.read(args),\n\t\t\t\t\tclockwise = !!Base.read(args),\n\t\t\t\t\tlarge = !!Base.read(args),\n\t\t\t\t\tmiddle = from.add(to).divide(2),\n\t\t\t\t\tpt = from.subtract(middle).rotate(-rotation),\n\t\t\t\t\tx = pt.x,\n\t\t\t\t\ty = pt.y,\n\t\t\t\t\trx = abs(radius.width),\n\t\t\t\t\try = abs(radius.height),\n\t\t\t\t\trxSq = rx * rx,\n\t\t\t\t\trySq = ry * ry,\n\t\t\t\t\txSq = x * x,\n\t\t\t\t\tySq = y * y;\n\t\t\t\tvar factor = sqrt(xSq / rxSq + ySq / rySq);\n\t\t\t\tif (factor > 1) {\n\t\t\t\t\trx *= factor;\n\t\t\t\t\try *= factor;\n\t\t\t\t\trxSq = rx * rx;\n\t\t\t\t\trySq = ry * ry;\n\t\t\t\t}\n\t\t\t\tfactor = (rxSq * rySq - rxSq * ySq - rySq * xSq) /\n\t\t\t\t\t\t(rxSq * ySq + rySq * xSq);\n\t\t\t\tif (abs(factor) < 1e-12)\n\t\t\t\t\tfactor = 0;\n\t\t\t\tif (factor < 0)\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t'Cannot create an arc with the given arguments');\n\t\t\t\tcenter = new Point(rx * y / ry, -ry * x / rx)\n\t\t\t\t\t\t.multiply((large === clockwise ? -1 : 1) * sqrt(factor))\n\t\t\t\t\t\t.rotate(rotation).add(middle);\n\t\t\t\tmatrix = new Matrix().translate(center).rotate(rotation)\n\t\t\t\t\t\t.scale(rx, ry);\n\t\t\t\tvector = matrix._inverseTransform(from);\n\t\t\t\textent = vector.getDirectedAngle(matrix._inverseTransform(to));\n\t\t\t\tif (!clockwise && extent > 0)\n\t\t\t\t\textent -= 360;\n\t\t\t\telse if (clockwise && extent < 0)\n\t\t\t\t\textent += 360;\n\t\t\t}\n\t\t\tif (through) {\n\t\t\t\tvar l1 = new Line(from.add(through).divide(2),\n\t\t\t\t\t\t\tthrough.subtract(from).rotate(90), true),\n\t\t\t\t\tl2 = new Line(through.add(to).divide(2),\n\t\t\t\t\t\t\tto.subtract(through).rotate(90), true),\n\t\t\t\t\tline = new Line(from, to),\n\t\t\t\t\tthroughSide = line.getSide(through);\n\t\t\t\tcenter = l1.intersect(l2, true);\n\t\t\t\tif (!center) {\n\t\t\t\t\tif (!throughSide)\n\t\t\t\t\t\treturn this.lineTo(to);\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t'Cannot create an arc with the given arguments');\n\t\t\t\t}\n\t\t\t\tvector = from.subtract(center);\n\t\t\t\textent = vector.getDirectedAngle(to.subtract(center));\n\t\t\t\tvar centerSide = line.getSide(center, true);\n\t\t\t\tif (centerSide === 0) {\n\t\t\t\t\textent = throughSide * abs(extent);\n\t\t\t\t} else if (throughSide === centerSide) {\n\t\t\t\t\textent += extent < 0 ? 360 : -360;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (extent) {\n\t\t\t\tvar epsilon = 1e-5,\n\t\t\t\t\text = abs(extent),\n\t\t\t\t\tcount = ext >= 360\n\t\t\t\t\t\t? 4\n\t\t\t\t\t\t: Math.ceil((ext - epsilon) / 90),\n\t\t\t\t\tinc = extent / count,\n\t\t\t\t\thalf = inc * Math.PI / 360,\n\t\t\t\t\tz = 4 / 3 * Math.sin(half) / (1 + Math.cos(half)),\n\t\t\t\t\tsegments = [];\n\t\t\t\tfor (var i = 0; i <= count; i++) {\n\t\t\t\t\tvar pt = to,\n\t\t\t\t\t\tout = null;\n\t\t\t\t\tif (i < count) {\n\t\t\t\t\t\tout = vector.rotate(90).multiply(z);\n\t\t\t\t\t\tif (matrix) {\n\t\t\t\t\t\t\tpt = matrix._transformPoint(vector);\n\t\t\t\t\t\t\tout = matrix._transformPoint(vector.add(out))\n\t\t\t\t\t\t\t\t\t.subtract(pt);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpt = center.add(vector);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!i) {\n\t\t\t\t\t\tcurrent.setHandleOut(out);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar _in = vector.rotate(-90).multiply(z);\n\t\t\t\t\t\tif (matrix) {\n\t\t\t\t\t\t\t_in = matrix._transformPoint(vector.add(_in))\n\t\t\t\t\t\t\t\t\t.subtract(pt);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsegments.push(new Segment(pt, _in, out));\n\t\t\t\t\t}\n\t\t\t\t\tvector = vector.rotate(inc);\n\t\t\t\t}\n\t\t\t\tthis._add(segments);\n\t\t\t}\n\t\t},\n\n\t\tlineBy: function() {\n\t\t\tvar to = Point.read(arguments),\n\t\t\t\tcurrent = getCurrentSegment(this)._point;\n\t\t\tthis.lineTo(current.add(to));\n\t\t},\n\n\t\tcurveBy: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tthrough = Point.read(args),\n\t\t\t\tto = Point.read(args),\n\t\t\t\tparameter = Base.read(args),\n\t\t\t\tcurrent = getCurrentSegment(this)._point;\n\t\t\tthis.curveTo(current.add(through), current.add(to), parameter);\n\t\t},\n\n\t\tcubicCurveBy: function() {\n\t\t\tvar args = arguments,\n\t\t\t\thandle1 = Point.read(args),\n\t\t\t\thandle2 = Point.read(args),\n\t\t\t\tto = Point.read(args),\n\t\t\t\tcurrent = getCurrentSegment(this)._point;\n\t\t\tthis.cubicCurveTo(current.add(handle1), current.add(handle2),\n\t\t\t\t\tcurrent.add(to));\n\t\t},\n\n\t\tquadraticCurveBy: function() {\n\t\t\tvar args = arguments,\n\t\t\t\thandle = Point.read(args),\n\t\t\t\tto = Point.read(args),\n\t\t\t\tcurrent = getCurrentSegment(this)._point;\n\t\t\tthis.quadraticCurveTo(current.add(handle), current.add(to));\n\t\t},\n\n\t\tarcBy: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tcurrent = getCurrentSegment(this)._point,\n\t\t\t\tpoint = current.add(Point.read(args)),\n\t\t\t\tclockwise = Base.pick(Base.peek(args), true);\n\t\t\tif (typeof clockwise === 'boolean') {\n\t\t\t\tthis.arcTo(point, clockwise);\n\t\t\t} else {\n\t\t\t\tthis.arcTo(point, current.add(Point.read(args)));\n\t\t\t}\n\t\t},\n\n\t\tclosePath: function(tolerance) {\n\t\t\tthis.setClosed(true);\n\t\t\tthis.join(this, tolerance);\n\t\t}\n\t};\n}, {\n\n\t_getBounds: function(matrix, options) {\n\t\tvar method = options.handle\n\t\t\t\t? 'getHandleBounds'\n\t\t\t\t: options.stroke\n\t\t\t\t? 'getStrokeBounds'\n\t\t\t\t: 'getBounds';\n\t\treturn Path[method](this._segments, this._closed, this, matrix, options);\n\t},\n\nstatics: {\n\tgetBounds: function(segments, closed, path, matrix, options, strokePadding) {\n\t\tvar first = segments[0];\n\t\tif (!first)\n\t\t\treturn new Rectangle();\n\t\tvar coords = new Array(6),\n\t\t\tprevCoords = first._transformCoordinates(matrix, new Array(6)),\n\t\t\tmin = prevCoords.slice(0, 2),\n\t\t\tmax = min.slice(),\n\t\t\troots = new Array(2);\n\n\t\tfunction processSegment(segment) {\n\t\t\tsegment._transformCoordinates(matrix, coords);\n\t\t\tfor (var i = 0; i < 2; i++) {\n\t\t\t\tCurve._addBounds(\n\t\t\t\t\tprevCoords[i],\n\t\t\t\t\tprevCoords[i + 4],\n\t\t\t\t\tcoords[i + 2],\n\t\t\t\t\tcoords[i],\n\t\t\t\t\ti, strokePadding ? strokePadding[i] : 0, min, max, roots);\n\t\t\t}\n\t\t\tvar tmp = prevCoords;\n\t\t\tprevCoords = coords;\n\t\t\tcoords = tmp;\n\t\t}\n\n\t\tfor (var i = 1, l = segments.length; i < l; i++)\n\t\t\tprocessSegment(segments[i]);\n\t\tif (closed)\n\t\t\tprocessSegment(first);\n\t\treturn new Rectangle(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n\t},\n\n\tgetStrokeBounds: function(segments, closed, path, matrix, options) {\n\t\tvar style = path.getStyle(),\n\t\t\tstroke = style.hasStroke(),\n\t\t\tstrokeWidth = style.getStrokeWidth(),\n\t\t\tstrokeMatrix = stroke && path._getStrokeMatrix(matrix, options),\n\t\t\tstrokePadding = stroke && Path._getStrokePadding(strokeWidth,\n\t\t\t\tstrokeMatrix),\n\t\t\tbounds = Path.getBounds(segments, closed, path, matrix, options,\n\t\t\t\tstrokePadding);\n\t\tif (!stroke)\n\t\t\treturn bounds;\n\t\tvar strokeRadius = strokeWidth / 2,\n\t\t\tjoin = style.getStrokeJoin(),\n\t\t\tcap = style.getStrokeCap(),\n\t\t\tmiterLimit = style.getMiterLimit(),\n\t\t\tjoinBounds = new Rectangle(new Size(strokePadding));\n\n\t\tfunction addPoint(point) {\n\t\t\tbounds = bounds.include(point);\n\t\t}\n\n\t\tfunction addRound(segment) {\n\t\t\tbounds = bounds.unite(\n\t\t\t\t\tjoinBounds.setCenter(segment._point.transform(matrix)));\n\t\t}\n\n\t\tfunction addJoin(segment, join) {\n\t\t\tif (join === 'round' || segment.isSmooth()) {\n\t\t\t\taddRound(segment);\n\t\t\t} else {\n\t\t\t\tPath._addBevelJoin(segment, join, strokeRadius, miterLimit,\n\t\t\t\t\t\tmatrix, strokeMatrix, addPoint);\n\t\t\t}\n\t\t}\n\n\t\tfunction addCap(segment, cap) {\n\t\t\tif (cap === 'round') {\n\t\t\t\taddRound(segment);\n\t\t\t} else {\n\t\t\t\tPath._addSquareCap(segment, cap, strokeRadius, matrix,\n\t\t\t\t\t\tstrokeMatrix, addPoint);\n\t\t\t}\n\t\t}\n\n\t\tvar length = segments.length - (closed ? 0 : 1);\n\t\tif (length > 0) {\n\t\t\tfor (var i = 1; i < length; i++) {\n\t\t\t\taddJoin(segments[i], join);\n\t\t\t}\n\t\t\tif (closed) {\n\t\t\t\taddJoin(segments[0], join);\n\t\t\t} else {\n\t\t\t\taddCap(segments[0], cap);\n\t\t\t\taddCap(segments[segments.length - 1], cap);\n\t\t\t}\n\t\t}\n\t\treturn bounds;\n\t},\n\n\t_getStrokePadding: function(radius, matrix) {\n\t\tif (!matrix)\n\t\t\treturn [radius, radius];\n\t\tvar hor = new Point(radius, 0).transform(matrix),\n\t\t\tver = new Point(0, radius).transform(matrix),\n\t\t\tphi = hor.getAngleInRadians(),\n\t\t\ta = hor.getLength(),\n\t\t\tb = ver.getLength();\n\t\tvar sin = Math.sin(phi),\n\t\t\tcos = Math.cos(phi),\n\t\t\ttan = Math.tan(phi),\n\t\t\ttx = Math.atan2(b * tan, a),\n\t\t\tty = Math.atan2(b, tan * a);\n\t\treturn [Math.abs(a * Math.cos(tx) * cos + b * Math.sin(tx) * sin),\n\t\t\t\tMath.abs(b * Math.sin(ty) * cos + a * Math.cos(ty) * sin)];\n\t},\n\n\t_addBevelJoin: function(segment, join, radius, miterLimit, matrix,\n\t\t\tstrokeMatrix, addPoint, isArea) {\n\t\tvar curve2 = segment.getCurve(),\n\t\t\tcurve1 = curve2.getPrevious(),\n\t\t\tpoint = curve2.getPoint1().transform(matrix),\n\t\t\tnormal1 = curve1.getNormalAtTime(1).multiply(radius)\n\t\t\t\t.transform(strokeMatrix),\n\t\t\tnormal2 = curve2.getNormalAtTime(0).multiply(radius)\n\t\t\t\t.transform(strokeMatrix),\n\t\t\t\tangle = normal1.getDirectedAngle(normal2);\n\t\tif (angle < 0 || angle >= 180) {\n\t\t\tnormal1 = normal1.negate();\n\t\t\tnormal2 = normal2.negate();\n\t\t}\n\t\tif (isArea)\n\t\t\taddPoint(point);\n\t\taddPoint(point.add(normal1));\n\t\tif (join === 'miter') {\n\t\t\tvar corner = new Line(point.add(normal1),\n\t\t\t\t\tnew Point(-normal1.y, normal1.x), true\n\t\t\t\t).intersect(new Line(point.add(normal2),\n\t\t\t\t\tnew Point(-normal2.y, normal2.x), true\n\t\t\t\t), true);\n\t\t\tif (corner && point.getDistance(corner) <= miterLimit * radius) {\n\t\t\t\taddPoint(corner);\n\t\t\t}\n\t\t}\n\t\taddPoint(point.add(normal2));\n\t},\n\n\t_addSquareCap: function(segment, cap, radius, matrix, strokeMatrix,\n\t\t\taddPoint, isArea) {\n\t\tvar point = segment._point.transform(matrix),\n\t\t\tloc = segment.getLocation(),\n\t\t\tnormal = loc.getNormal()\n\t\t\t\t\t.multiply(loc.getTime() === 0 ? radius : -radius)\n\t\t\t\t\t.transform(strokeMatrix);\n\t\tif (cap === 'square') {\n\t\t\tif (isArea) {\n\t\t\t\taddPoint(point.subtract(normal));\n\t\t\t\taddPoint(point.add(normal));\n\t\t\t}\n\t\t\tpoint = point.add(normal.rotate(-90));\n\t\t}\n\t\taddPoint(point.add(normal));\n\t\taddPoint(point.subtract(normal));\n\t},\n\n\tgetHandleBounds: function(segments, closed, path, matrix, options) {\n\t\tvar style = path.getStyle(),\n\t\t\tstroke = options.stroke && style.hasStroke(),\n\t\t\tstrokePadding,\n\t\t\tjoinPadding;\n\t\tif (stroke) {\n\t\t\tvar strokeMatrix = path._getStrokeMatrix(matrix, options),\n\t\t\t\tstrokeRadius = style.getStrokeWidth() / 2,\n\t\t\t\tjoinRadius = strokeRadius;\n\t\t\tif (style.getStrokeJoin() === 'miter')\n\t\t\t\tjoinRadius = strokeRadius * style.getMiterLimit();\n\t\t\tif (style.getStrokeCap() === 'square')\n\t\t\t\tjoinRadius = Math.max(joinRadius, strokeRadius * Math.SQRT2);\n\t\t\tstrokePadding = Path._getStrokePadding(strokeRadius, strokeMatrix);\n\t\t\tjoinPadding = Path._getStrokePadding(joinRadius, strokeMatrix);\n\t\t}\n\t\tvar coords = new Array(6),\n\t\t\tx1 = Infinity,\n\t\t\tx2 = -x1,\n\t\t\ty1 = x1,\n\t\t\ty2 = x2;\n\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\tvar segment = segments[i];\n\t\t\tsegment._transformCoordinates(matrix, coords);\n\t\t\tfor (var j = 0; j < 6; j += 2) {\n\t\t\t\tvar padding = !j ? joinPadding : strokePadding,\n\t\t\t\t\tpaddingX = padding ? padding[0] : 0,\n\t\t\t\t\tpaddingY = padding ? padding[1] : 0,\n\t\t\t\t\tx = coords[j],\n\t\t\t\t\ty = coords[j + 1],\n\t\t\t\t\txn = x - paddingX,\n\t\t\t\t\txx = x + paddingX,\n\t\t\t\t\tyn = y - paddingY,\n\t\t\t\t\tyx = y + paddingY;\n\t\t\t\tif (xn < x1) x1 = xn;\n\t\t\t\tif (xx > x2) x2 = xx;\n\t\t\t\tif (yn < y1) y1 = yn;\n\t\t\t\tif (yx > y2) y2 = yx;\n\t\t\t}\n\t\t}\n\t\treturn new Rectangle(x1, y1, x2 - x1, y2 - y1);\n\t}\n}});\n\nPath.inject({ statics: new function() {\n\n\tvar kappa = 0.5522847498307936,\n\t\tellipseSegments = [\n\t\t\tnew Segment([-1, 0], [0, kappa ], [0, -kappa]),\n\t\t\tnew Segment([0, -1], [-kappa, 0], [kappa, 0 ]),\n\t\t\tnew Segment([1, 0], [0, -kappa], [0, kappa ]),\n\t\t\tnew Segment([0, 1], [kappa, 0 ], [-kappa, 0])\n\t\t];\n\n\tfunction createPath(segments, closed, args) {\n\t\tvar props = Base.getNamed(args),\n\t\t\tpath = new Path(props && (\n\t\t\t\tprops.insert == true ? Item.INSERT\n\t\t\t\t: props.insert == false ? Item.NO_INSERT\n\t\t\t\t: null\n\t\t\t));\n\t\tpath._add(segments);\n\t\tpath._closed = closed;\n\t\treturn path.set(props, Item.INSERT);\n\t}\n\n\tfunction createEllipse(center, radius, args) {\n\t\tvar segments = new Array(4);\n\t\tfor (var i = 0; i < 4; i++) {\n\t\t\tvar segment = ellipseSegments[i];\n\t\t\tsegments[i] = new Segment(\n\t\t\t\tsegment._point.multiply(radius).add(center),\n\t\t\t\tsegment._handleIn.multiply(radius),\n\t\t\t\tsegment._handleOut.multiply(radius)\n\t\t\t);\n\t\t}\n\t\treturn createPath(segments, true, args);\n\t}\n\n\treturn {\n\t\tLine: function() {\n\t\t\tvar args = arguments;\n\t\t\treturn createPath([\n\t\t\t\tnew Segment(Point.readNamed(args, 'from')),\n\t\t\t\tnew Segment(Point.readNamed(args, 'to'))\n\t\t\t], false, args);\n\t\t},\n\n\t\tCircle: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tcenter = Point.readNamed(args, 'center'),\n\t\t\t\tradius = Base.readNamed(args, 'radius');\n\t\t\treturn createEllipse(center, new Size(radius), args);\n\t\t},\n\n\t\tRectangle: function() {\n\t\t\tvar args = arguments,\n\t\t\t\trect = Rectangle.readNamed(args, 'rectangle'),\n\t\t\t\tradius = Size.readNamed(args, 'radius', 0,\n\t\t\t\t\t\t{ readNull: true }),\n\t\t\t\tbl = rect.getBottomLeft(true),\n\t\t\t\ttl = rect.getTopLeft(true),\n\t\t\t\ttr = rect.getTopRight(true),\n\t\t\t\tbr = rect.getBottomRight(true),\n\t\t\t\tsegments;\n\t\t\tif (!radius || radius.isZero()) {\n\t\t\t\tsegments = [\n\t\t\t\t\tnew Segment(bl),\n\t\t\t\t\tnew Segment(tl),\n\t\t\t\t\tnew Segment(tr),\n\t\t\t\t\tnew Segment(br)\n\t\t\t\t];\n\t\t\t} else {\n\t\t\t\tradius = Size.min(radius, rect.getSize(true).divide(2));\n\t\t\t\tvar rx = radius.width,\n\t\t\t\t\try = radius.height,\n\t\t\t\t\thx = rx * kappa,\n\t\t\t\t\thy = ry * kappa;\n\t\t\t\tsegments = [\n\t\t\t\t\tnew Segment(bl.add(rx, 0), null, [-hx, 0]),\n\t\t\t\t\tnew Segment(bl.subtract(0, ry), [0, hy]),\n\t\t\t\t\tnew Segment(tl.add(0, ry), null, [0, -hy]),\n\t\t\t\t\tnew Segment(tl.add(rx, 0), [-hx, 0], null),\n\t\t\t\t\tnew Segment(tr.subtract(rx, 0), null, [hx, 0]),\n\t\t\t\t\tnew Segment(tr.add(0, ry), [0, -hy], null),\n\t\t\t\t\tnew Segment(br.subtract(0, ry), null, [0, hy]),\n\t\t\t\t\tnew Segment(br.subtract(rx, 0), [hx, 0])\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn createPath(segments, true, args);\n\t\t},\n\n\t\tRoundRectangle: '#Rectangle',\n\n\t\tEllipse: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tellipse = Shape._readEllipse(args);\n\t\t\treturn createEllipse(ellipse.center, ellipse.radius, args);\n\t\t},\n\n\t\tOval: '#Ellipse',\n\n\t\tArc: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tfrom = Point.readNamed(args, 'from'),\n\t\t\t\tthrough = Point.readNamed(args, 'through'),\n\t\t\t\tto = Point.readNamed(args, 'to'),\n\t\t\t\tprops = Base.getNamed(args),\n\t\t\t\tpath = new Path(props && props.insert == false\n\t\t\t\t\t\t&& Item.NO_INSERT);\n\t\t\tpath.moveTo(from);\n\t\t\tpath.arcTo(through, to);\n\t\t\treturn path.set(props);\n\t\t},\n\n\t\tRegularPolygon: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tcenter = Point.readNamed(args, 'center'),\n\t\t\t\tsides = Base.readNamed(args, 'sides'),\n\t\t\t\tradius = Base.readNamed(args, 'radius'),\n\t\t\t\tstep = 360 / sides,\n\t\t\t\tthree = sides % 3 === 0,\n\t\t\t\tvector = new Point(0, three ? -radius : radius),\n\t\t\t\toffset = three ? -1 : 0.5,\n\t\t\t\tsegments = new Array(sides);\n\t\t\tfor (var i = 0; i < sides; i++)\n\t\t\t\tsegments[i] = new Segment(center.add(\n\t\t\t\t\tvector.rotate((i + offset) * step)));\n\t\t\treturn createPath(segments, true, args);\n\t\t},\n\n\t\tStar: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tcenter = Point.readNamed(args, 'center'),\n\t\t\t\tpoints = Base.readNamed(args, 'points') * 2,\n\t\t\t\tradius1 = Base.readNamed(args, 'radius1'),\n\t\t\t\tradius2 = Base.readNamed(args, 'radius2'),\n\t\t\t\tstep = 360 / points,\n\t\t\t\tvector = new Point(0, -1),\n\t\t\t\tsegments = new Array(points);\n\t\t\tfor (var i = 0; i < points; i++)\n\t\t\t\tsegments[i] = new Segment(center.add(vector.rotate(step * i)\n\t\t\t\t\t\t.multiply(i % 2 ? radius2 : radius1)));\n\t\t\treturn createPath(segments, true, args);\n\t\t}\n\t};\n}});\n\nvar CompoundPath = PathItem.extend({\n\t_class: 'CompoundPath',\n\t_serializeFields: {\n\t\tchildren: []\n\t},\n\tbeans: true,\n\n\tinitialize: function CompoundPath(arg) {\n\t\tthis._children = [];\n\t\tthis._namedChildren = {};\n\t\tif (!this._initialize(arg)) {\n\t\t\tif (typeof arg === 'string') {\n\t\t\t\tthis.setPathData(arg);\n\t\t\t} else {\n\t\t\t\tthis.addChildren(Array.isArray(arg) ? arg : arguments);\n\t\t\t}\n\t\t}\n\t},\n\n\tinsertChildren: function insertChildren(index, items) {\n\t\tvar list = items,\n\t\t\tfirst = list[0];\n\t\tif (first && typeof first[0] === 'number')\n\t\t\tlist = [list];\n\t\tfor (var i = items.length - 1; i >= 0; i--) {\n\t\t\tvar item = list[i];\n\t\t\tif (list === items && !(item instanceof Path))\n\t\t\t\tlist = Base.slice(list);\n\t\t\tif (Array.isArray(item)) {\n\t\t\t\tlist[i] = new Path({ segments: item, insert: false });\n\t\t\t} else if (item instanceof CompoundPath) {\n\t\t\t\tlist.splice.apply(list, [i, 1].concat(item.removeChildren()));\n\t\t\t\titem.remove();\n\t\t\t}\n\t\t}\n\t\treturn insertChildren.base.call(this, index, list);\n\t},\n\n\treduce: function reduce(options) {\n\t\tvar children = this._children;\n\t\tfor (var i = children.length - 1; i >= 0; i--) {\n\t\t\tvar path = children[i].reduce(options);\n\t\t\tif (path.isEmpty())\n\t\t\t\tpath.remove();\n\t\t}\n\t\tif (!children.length) {\n\t\t\tvar path = new Path(Item.NO_INSERT);\n\t\t\tpath.copyAttributes(this);\n\t\t\tpath.insertAbove(this);\n\t\t\tthis.remove();\n\t\t\treturn path;\n\t\t}\n\t\treturn reduce.base.call(this);\n\t},\n\n\tisClosed: function() {\n\t\tvar children = this._children;\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tif (!children[i]._closed)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\tsetClosed: function(closed) {\n\t\tvar children = this._children;\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tchildren[i].setClosed(closed);\n\t\t}\n\t},\n\n\tgetFirstSegment: function() {\n\t\tvar first = this.getFirstChild();\n\t\treturn first && first.getFirstSegment();\n\t},\n\n\tgetLastSegment: function() {\n\t\tvar last = this.getLastChild();\n\t\treturn last && last.getLastSegment();\n\t},\n\n\tgetCurves: function() {\n\t\tvar children = this._children,\n\t\t\tcurves = [];\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tBase.push(curves, children[i].getCurves());\n\t\t}\n\t\treturn curves;\n\t},\n\n\tgetFirstCurve: function() {\n\t\tvar first = this.getFirstChild();\n\t\treturn first && first.getFirstCurve();\n\t},\n\n\tgetLastCurve: function() {\n\t\tvar last = this.getLastChild();\n\t\treturn last && last.getLastCurve();\n\t},\n\n\tgetArea: function() {\n\t\tvar children = this._children,\n\t\t\tarea = 0;\n\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\tarea += children[i].getArea();\n\t\treturn area;\n\t},\n\n\tgetLength: function() {\n\t\tvar children = this._children,\n\t\t\tlength = 0;\n\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\tlength += children[i].getLength();\n\t\treturn length;\n\t},\n\n\tgetPathData: function(_matrix, _precision) {\n\t\tvar children = this._children,\n\t\t\tpaths = [];\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tvar child = children[i],\n\t\t\t\tmx = child._matrix;\n\t\t\tpaths.push(child.getPathData(_matrix && !mx.isIdentity()\n\t\t\t\t\t? _matrix.appended(mx) : _matrix, _precision));\n\t\t}\n\t\treturn paths.join('');\n\t},\n\n\t_hitTestChildren: function _hitTestChildren(point, options, viewMatrix) {\n\t\treturn _hitTestChildren.base.call(this, point,\n\t\t\t\toptions.class === Path || options.type === 'path' ? options\n\t\t\t\t\t: Base.set({}, options, { fill: false }),\n\t\t\t\tviewMatrix);\n\t},\n\n\t_draw: function(ctx, param, viewMatrix, strokeMatrix) {\n\t\tvar children = this._children;\n\t\tif (!children.length)\n\t\t\treturn;\n\n\t\tparam = param.extend({ dontStart: true, dontFinish: true });\n\t\tctx.beginPath();\n\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\tchildren[i].draw(ctx, param, strokeMatrix);\n\n\t\tif (!param.clip) {\n\t\t\tthis._setStyles(ctx, param, viewMatrix);\n\t\t\tvar style = this._style;\n\t\t\tif (style.hasFill()) {\n\t\t\t\tctx.fill(style.getFillRule());\n\t\t\t\tctx.shadowColor = 'rgba(0,0,0,0)';\n\t\t\t}\n\t\t\tif (style.hasStroke())\n\t\t\t\tctx.stroke();\n\t\t}\n\t},\n\n\t_drawSelected: function(ctx, matrix, selectionItems) {\n\t\tvar children = this._children;\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tvar child = children[i],\n\t\t\t\tmx = child._matrix;\n\t\t\tif (!selectionItems[child._id]) {\n\t\t\t\tchild._drawSelected(ctx, mx.isIdentity() ? matrix\n\t\t\t\t\t\t: matrix.appended(mx));\n\t\t\t}\n\t\t}\n\t}\n},\nnew function() {\n\tfunction getCurrentPath(that, check) {\n\t\tvar children = that._children;\n\t\tif (check && !children.length)\n\t\t\tthrow new Error('Use a moveTo() command first');\n\t\treturn children[children.length - 1];\n\t}\n\n\treturn Base.each(['lineTo', 'cubicCurveTo', 'quadraticCurveTo', 'curveTo',\n\t\t\t'arcTo', 'lineBy', 'cubicCurveBy', 'quadraticCurveBy', 'curveBy',\n\t\t\t'arcBy'],\n\t\tfunction(key) {\n\t\t\tthis[key] = function() {\n\t\t\t\tvar path = getCurrentPath(this, true);\n\t\t\t\tpath[key].apply(path, arguments);\n\t\t\t};\n\t\t}, {\n\t\t\tmoveTo: function() {\n\t\t\t\tvar current = getCurrentPath(this),\n\t\t\t\t\tpath = current && current.isEmpty() ? current\n\t\t\t\t\t\t\t: new Path(Item.NO_INSERT);\n\t\t\t\tif (path !== current)\n\t\t\t\t\tthis.addChild(path);\n\t\t\t\tpath.moveTo.apply(path, arguments);\n\t\t\t},\n\n\t\t\tmoveBy: function() {\n\t\t\t\tvar current = getCurrentPath(this, true),\n\t\t\t\t\tlast = current && current.getLastSegment(),\n\t\t\t\t\tpoint = Point.read(arguments);\n\t\t\t\tthis.moveTo(last ? point.add(last._point) : point);\n\t\t\t},\n\n\t\t\tclosePath: function(tolerance) {\n\t\t\t\tgetCurrentPath(this, true).closePath(tolerance);\n\t\t\t}\n\t\t}\n\t);\n}, Base.each(['reverse', 'flatten', 'simplify', 'smooth'], function(key) {\n\tthis[key] = function(param) {\n\t\tvar children = this._children,\n\t\t\tres;\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tres = children[i][key](param) || res;\n\t\t}\n\t\treturn res;\n\t};\n}, {}));\n\nPathItem.inject(new function() {\n\tvar min = Math.min,\n\t\tmax = Math.max,\n\t\tabs = Math.abs,\n\t\toperators = {\n\t\t\tunite: { '1': true, '2': true },\n\t\t\tintersect: { '2': true },\n\t\t\tsubtract: { '1': true },\n\t\t\texclude: { '1': true, '-1': true }\n\t\t};\n\n\tfunction getPaths(path) {\n\t\treturn path._children || [path];\n\t}\n\n\tfunction preparePath(path, resolve) {\n\t\tvar res = path\n\t\t\t.clone(false)\n\t\t\t.reduce({ simplify: true })\n\t\t\t.transform(null, true, true);\n\t\tif (resolve) {\n\t\t\tvar paths = getPaths(res);\n\t\t\tfor (var i = 0, l = paths.length; i < l; i++) {\n\t\t\t\tvar path = paths[i];\n\t\t\t\tif (!path._closed && !path.isEmpty()) {\n\t\t\t\t\tpath.closePath(1e-12);\n\t\t\t\t\tpath.getFirstSegment().setHandleIn(0, 0);\n\t\t\t\t\tpath.getLastSegment().setHandleOut(0, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tres = res\n\t\t\t\t.resolveCrossings()\n\t\t\t\t.reorient(res.getFillRule() === 'nonzero', true);\n\t\t}\n\t\treturn res;\n\t}\n\n\tfunction createResult(paths, simplify, path1, path2, options) {\n\t\tvar result = new CompoundPath(Item.NO_INSERT);\n\t\tresult.addChildren(paths, true);\n\t\tresult = result.reduce({ simplify: simplify });\n\t\tif (!(options && options.insert == false)) {\n\t\t\tresult.insertAbove(path2 && path1.isSibling(path2)\n\t\t\t\t\t&& path1.getIndex() < path2.getIndex() ? path2 : path1);\n\t\t}\n\t\tresult.copyAttributes(path1, true);\n\t\treturn result;\n\t}\n\n\tfunction filterIntersection(inter) {\n\t\treturn inter.hasOverlap() || inter.isCrossing();\n\t}\n\n\tfunction traceBoolean(path1, path2, operation, options) {\n\t\tif (options && (options.trace == false || options.stroke) &&\n\t\t\t\t/^(subtract|intersect)$/.test(operation))\n\t\t\treturn splitBoolean(path1, path2, operation);\n\t\tvar _path1 = preparePath(path1, true),\n\t\t\t_path2 = path2 && path1 !== path2 && preparePath(path2, true),\n\t\t\toperator = operators[operation];\n\t\toperator[operation] = true;\n\t\tif (_path2 && (operator.subtract || operator.exclude)\n\t\t\t\t^ (_path2.isClockwise() ^ _path1.isClockwise()))\n\t\t\t_path2.reverse();\n\t\tvar crossings = divideLocations(CurveLocation.expand(\n\t\t\t\t_path1.getIntersections(_path2, filterIntersection))),\n\t\t\tpaths1 = getPaths(_path1),\n\t\t\tpaths2 = _path2 && getPaths(_path2),\n\t\t\tsegments = [],\n\t\t\tcurves = [],\n\t\t\tpaths;\n\n\t\tfunction collectPaths(paths) {\n\t\t\tfor (var i = 0, l = paths.length; i < l; i++) {\n\t\t\t\tvar path = paths[i];\n\t\t\t\tBase.push(segments, path._segments);\n\t\t\t\tBase.push(curves, path.getCurves());\n\t\t\t\tpath._overlapsOnly = true;\n\t\t\t}\n\t\t}\n\n\t\tfunction getCurves(indices) {\n\t\t\tvar list = [];\n\t\t\tfor (var i = 0, l = indices && indices.length; i < l; i++) {\n\t\t\t\tlist.push(curves[indices[i]]);\n\t\t\t}\n\t\t\treturn list;\n\t\t}\n\n\t\tif (crossings.length) {\n\t\t\tcollectPaths(paths1);\n\t\t\tif (paths2)\n\t\t\t\tcollectPaths(paths2);\n\n\t\t\tvar curvesValues = new Array(curves.length);\n\t\t\tfor (var i = 0, l = curves.length; i < l; i++) {\n\t\t\t\tcurvesValues[i] = curves[i].getValues();\n\t\t\t}\n\t\t\tvar curveCollisions = CollisionDetection.findCurveBoundsCollisions(\n\t\t\t\t\tcurvesValues, curvesValues, 0, true);\n\t\t\tvar curveCollisionsMap = {};\n\t\t\tfor (var i = 0; i < curves.length; i++) {\n\t\t\t\tvar curve = curves[i],\n\t\t\t\t\tid = curve._path._id,\n\t\t\t\t\tmap = curveCollisionsMap[id] = curveCollisionsMap[id] || {};\n\t\t\t\tmap[curve.getIndex()] = {\n\t\t\t\t\thor: getCurves(curveCollisions[i].hor),\n\t\t\t\t\tver: getCurves(curveCollisions[i].ver)\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tfor (var i = 0, l = crossings.length; i < l; i++) {\n\t\t\t\tpropagateWinding(crossings[i]._segment, _path1, _path2,\n\t\t\t\t\t\tcurveCollisionsMap, operator);\n\t\t\t}\n\t\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\t\tvar segment = segments[i],\n\t\t\t\t\tinter = segment._intersection;\n\t\t\t\tif (!segment._winding) {\n\t\t\t\t\tpropagateWinding(segment, _path1, _path2,\n\t\t\t\t\t\t\tcurveCollisionsMap, operator);\n\t\t\t\t}\n\t\t\t\tif (!(inter && inter._overlap))\n\t\t\t\t\tsegment._path._overlapsOnly = false;\n\t\t\t}\n\t\t\tpaths = tracePaths(segments, operator);\n\t\t} else {\n\t\t\tpaths = reorientPaths(\n\t\t\t\t\tpaths2 ? paths1.concat(paths2) : paths1.slice(),\n\t\t\t\t\tfunction(w) {\n\t\t\t\t\t\treturn !!operator[w];\n\t\t\t\t\t});\n\t\t}\n\t\treturn createResult(paths, true, path1, path2, options);\n\t}\n\n\tfunction splitBoolean(path1, path2, operation) {\n\t\tvar _path1 = preparePath(path1),\n\t\t\t_path2 = preparePath(path2),\n\t\t\tcrossings = _path1.getIntersections(_path2, filterIntersection),\n\t\t\tsubtract = operation === 'subtract',\n\t\t\tdivide = operation === 'divide',\n\t\t\tadded = {},\n\t\t\tpaths = [];\n\n\t\tfunction addPath(path) {\n\t\t\tif (!added[path._id] && (divide ||\n\t\t\t\t\t_path2.contains(path.getPointAt(path.getLength() / 2))\n\t\t\t\t\t\t^ subtract)) {\n\t\t\t\tpaths.unshift(path);\n\t\t\t\treturn added[path._id] = true;\n\t\t\t}\n\t\t}\n\n\t\tfor (var i = crossings.length - 1; i >= 0; i--) {\n\t\t\tvar path = crossings[i].split();\n\t\t\tif (path) {\n\t\t\t\tif (addPath(path))\n\t\t\t\t\tpath.getFirstSegment().setHandleIn(0, 0);\n\t\t\t\t_path1.getLastSegment().setHandleOut(0, 0);\n\t\t\t}\n\t\t}\n\t\taddPath(_path1);\n\t\treturn createResult(paths, false, path1, path2);\n\t}\n\n\tfunction linkIntersections(from, to) {\n\t\tvar prev = from;\n\t\twhile (prev) {\n\t\t\tif (prev === to)\n\t\t\t\treturn;\n\t\t\tprev = prev._previous;\n\t\t}\n\t\twhile (from._next && from._next !== to)\n\t\t\tfrom = from._next;\n\t\tif (!from._next) {\n\t\t\twhile (to._previous)\n\t\t\t\tto = to._previous;\n\t\t\tfrom._next = to;\n\t\t\tto._previous = from;\n\t\t}\n\t}\n\n\tfunction clearCurveHandles(curves) {\n\t\tfor (var i = curves.length - 1; i >= 0; i--)\n\t\t\tcurves[i].clearHandles();\n\t}\n\n\tfunction reorientPaths(paths, isInside, clockwise) {\n\t\tvar length = paths && paths.length;\n\t\tif (length) {\n\t\t\tvar lookup = Base.each(paths, function (path, i) {\n\t\t\t\t\tthis[path._id] = {\n\t\t\t\t\t\tcontainer: null,\n\t\t\t\t\t\twinding: path.isClockwise() ? 1 : -1,\n\t\t\t\t\t\tindex: i\n\t\t\t\t\t};\n\t\t\t\t}, {}),\n\t\t\t\tsorted = paths.slice().sort(function (a, b) {\n\t\t\t\t\treturn abs(b.getArea()) - abs(a.getArea());\n\t\t\t\t}),\n\t\t\t\tfirst = sorted[0];\n\t\t\tvar collisions = CollisionDetection.findItemBoundsCollisions(sorted,\n\t\t\t\t\tnull, Numerical.GEOMETRIC_EPSILON);\n\t\t\tif (clockwise == null)\n\t\t\t\tclockwise = first.isClockwise();\n\t\t\tfor (var i = 0; i < length; i++) {\n\t\t\t\tvar path1 = sorted[i],\n\t\t\t\t\tentry1 = lookup[path1._id],\n\t\t\t\t\tcontainerWinding = 0,\n\t\t\t\t\tindices = collisions[i];\n\t\t\t\tif (indices) {\n\t\t\t\t\tvar point = null;\n\t\t\t\t\tfor (var j = indices.length - 1; j >= 0; j--) {\n\t\t\t\t\t\tif (indices[j] < i) {\n\t\t\t\t\t\t\tpoint = point || path1.getInteriorPoint();\n\t\t\t\t\t\t\tvar path2 = sorted[indices[j]];\n\t\t\t\t\t\t\tif (path2.contains(point)) {\n\t\t\t\t\t\t\t\tvar entry2 = lookup[path2._id];\n\t\t\t\t\t\t\t\tcontainerWinding = entry2.winding;\n\t\t\t\t\t\t\t\tentry1.winding += containerWinding;\n\t\t\t\t\t\t\t\tentry1.container = entry2.exclude\n\t\t\t\t\t\t\t\t\t? entry2.container : path2;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (isInside(entry1.winding) === isInside(containerWinding)) {\n\t\t\t\t\tentry1.exclude = true;\n\t\t\t\t\tpaths[entry1.index] = null;\n\t\t\t\t} else {\n\t\t\t\t\tvar container = entry1.container;\n\t\t\t\t\tpath1.setClockwise(\n\t\t\t\t\t\t\tcontainer ? !container.isClockwise() : clockwise);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn paths;\n\t}\n\n\tfunction divideLocations(locations, include, clearLater) {\n\t\tvar results = include && [],\n\t\t\ttMin = 1e-8,\n\t\t\ttMax = 1 - tMin,\n\t\t\tclearHandles = false,\n\t\t\tclearCurves = clearLater || [],\n\t\t\tclearLookup = clearLater && {},\n\t\t\trenormalizeLocs,\n\t\t\tprevCurve,\n\t\t\tprevTime;\n\n\t\tfunction getId(curve) {\n\t\t\treturn curve._path._id + '.' + curve._segment1._index;\n\t\t}\n\n\t\tfor (var i = (clearLater && clearLater.length) - 1; i >= 0; i--) {\n\t\t\tvar curve = clearLater[i];\n\t\t\tif (curve._path)\n\t\t\t\tclearLookup[getId(curve)] = true;\n\t\t}\n\n\t\tfor (var i = locations.length - 1; i >= 0; i--) {\n\t\t\tvar loc = locations[i],\n\t\t\t\ttime = loc._time,\n\t\t\t\torigTime = time,\n\t\t\t\texclude = include && !include(loc),\n\t\t\t\tcurve = loc._curve,\n\t\t\t\tsegment;\n\t\t\tif (curve) {\n\t\t\t\tif (curve !== prevCurve) {\n\t\t\t\t\tclearHandles = !curve.hasHandles()\n\t\t\t\t\t\t\t|| clearLookup && clearLookup[getId(curve)];\n\t\t\t\t\trenormalizeLocs = [];\n\t\t\t\t\tprevTime = null;\n\t\t\t\t\tprevCurve = curve;\n\t\t\t\t} else if (prevTime >= tMin) {\n\t\t\t\t\ttime /= prevTime;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (exclude) {\n\t\t\t\tif (renormalizeLocs)\n\t\t\t\t\trenormalizeLocs.push(loc);\n\t\t\t\tcontinue;\n\t\t\t} else if (include) {\n\t\t\t\tresults.unshift(loc);\n\t\t\t}\n\t\t\tprevTime = origTime;\n\t\t\tif (time < tMin) {\n\t\t\t\tsegment = curve._segment1;\n\t\t\t} else if (time > tMax) {\n\t\t\t\tsegment = curve._segment2;\n\t\t\t} else {\n\t\t\t\tvar newCurve = curve.divideAtTime(time, true);\n\t\t\t\tif (clearHandles)\n\t\t\t\t\tclearCurves.push(curve, newCurve);\n\t\t\t\tsegment = newCurve._segment1;\n\t\t\t\tfor (var j = renormalizeLocs.length - 1; j >= 0; j--) {\n\t\t\t\t\tvar l = renormalizeLocs[j];\n\t\t\t\t\tl._time = (l._time - time) / (1 - time);\n\t\t\t\t}\n\t\t\t}\n\t\t\tloc._setSegment(segment);\n\t\t\tvar inter = segment._intersection,\n\t\t\t\tdest = loc._intersection;\n\t\t\tif (inter) {\n\t\t\t\tlinkIntersections(inter, dest);\n\t\t\t\tvar other = inter;\n\t\t\t\twhile (other) {\n\t\t\t\t\tlinkIntersections(other._intersection, inter);\n\t\t\t\t\tother = other._next;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsegment._intersection = dest;\n\t\t\t}\n\t\t}\n\t\tif (!clearLater)\n\t\t\tclearCurveHandles(clearCurves);\n\t\treturn results || locations;\n\t}\n\n\tfunction getWinding(point, curves, dir, closed, dontFlip) {\n\t\tvar curvesList = Array.isArray(curves)\n\t\t\t? curves\n\t\t\t: curves[dir ? 'hor' : 'ver'];\n\t\tvar ia = dir ? 1 : 0,\n\t\t\tio = ia ^ 1,\n\t\t\tpv = [point.x, point.y],\n\t\t\tpa = pv[ia],\n\t\t\tpo = pv[io],\n\t\t\twindingEpsilon = 1e-9,\n\t\t\tqualityEpsilon = 1e-6,\n\t\t\tpaL = pa - windingEpsilon,\n\t\t\tpaR = pa + windingEpsilon,\n\t\t\twindingL = 0,\n\t\t\twindingR = 0,\n\t\t\tpathWindingL = 0,\n\t\t\tpathWindingR = 0,\n\t\t\tonPath = false,\n\t\t\tonAnyPath = false,\n\t\t\tquality = 1,\n\t\t\troots = [],\n\t\t\tvPrev,\n\t\t\tvClose;\n\n\t\tfunction addWinding(v) {\n\t\t\tvar o0 = v[io + 0],\n\t\t\t\to3 = v[io + 6];\n\t\t\tif (po < min(o0, o3) || po > max(o0, o3)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar a0 = v[ia + 0],\n\t\t\t\ta1 = v[ia + 2],\n\t\t\t\ta2 = v[ia + 4],\n\t\t\t\ta3 = v[ia + 6];\n\t\t\tif (o0 === o3) {\n\t\t\t\tif (a0 < paR && a3 > paL || a3 < paR && a0 > paL) {\n\t\t\t\t\tonPath = true;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar t = po === o0 ? 0\n\t\t\t\t\t: po === o3 ? 1\n\t\t\t\t\t: paL > max(a0, a1, a2, a3) || paR < min(a0, a1, a2, a3)\n\t\t\t\t\t? 1\n\t\t\t\t\t: Curve.solveCubic(v, io, po, roots, 0, 1) > 0\n\t\t\t\t\t\t? roots[0]\n\t\t\t\t\t\t: 1,\n\t\t\t\ta = t === 0 ? a0\n\t\t\t\t\t: t === 1 ? a3\n\t\t\t\t\t: Curve.getPoint(v, t)[dir ? 'y' : 'x'],\n\t\t\t\twinding = o0 > o3 ? 1 : -1,\n\t\t\t\twindingPrev = vPrev[io] > vPrev[io + 6] ? 1 : -1,\n\t\t\t\ta3Prev = vPrev[ia + 6];\n\t\t\tif (po !== o0) {\n\t\t\t\tif (a < paL) {\n\t\t\t\t\tpathWindingL += winding;\n\t\t\t\t} else if (a > paR) {\n\t\t\t\t\tpathWindingR += winding;\n\t\t\t\t} else {\n\t\t\t\t\tonPath = true;\n\t\t\t\t}\n\t\t\t\tif (a > pa - qualityEpsilon && a < pa + qualityEpsilon)\n\t\t\t\t\tquality /= 2;\n\t\t\t} else {\n\t\t\t\tif (winding !== windingPrev) {\n\t\t\t\t\tif (a0 < paL) {\n\t\t\t\t\t\tpathWindingL += winding;\n\t\t\t\t\t} else if (a0 > paR) {\n\t\t\t\t\t\tpathWindingR += winding;\n\t\t\t\t\t}\n\t\t\t\t} else if (a0 != a3Prev) {\n\t\t\t\t\tif (a3Prev < paR && a > paR) {\n\t\t\t\t\t\tpathWindingR += winding;\n\t\t\t\t\t\tonPath = true;\n\t\t\t\t\t} else if (a3Prev > paL && a < paL) {\n\t\t\t\t\t\tpathWindingL += winding;\n\t\t\t\t\t\tonPath = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tquality /= 4;\n\t\t\t}\n\t\t\tvPrev = v;\n\t\t\treturn !dontFlip && a > paL && a < paR\n\t\t\t\t\t&& Curve.getTangent(v, t)[dir ? 'x' : 'y'] === 0\n\t\t\t\t\t&& getWinding(point, curves, !dir, closed, true);\n\t\t}\n\n\t\tfunction handleCurve(v) {\n\t\t\tvar o0 = v[io + 0],\n\t\t\t\to1 = v[io + 2],\n\t\t\t\to2 = v[io + 4],\n\t\t\t\to3 = v[io + 6];\n\t\t\tif (po <= max(o0, o1, o2, o3) && po >= min(o0, o1, o2, o3)) {\n\t\t\t\tvar a0 = v[ia + 0],\n\t\t\t\t\ta1 = v[ia + 2],\n\t\t\t\t\ta2 = v[ia + 4],\n\t\t\t\t\ta3 = v[ia + 6],\n\t\t\t\t\tmonoCurves = paL > max(a0, a1, a2, a3) ||\n\t\t\t\t\t\t\t\t paR < min(a0, a1, a2, a3)\n\t\t\t\t\t\t\t? [v] : Curve.getMonoCurves(v, dir),\n\t\t\t\t\tres;\n\t\t\t\tfor (var i = 0, l = monoCurves.length; i < l; i++) {\n\t\t\t\t\tif (res = addWinding(monoCurves[i]))\n\t\t\t\t\t\treturn res;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (var i = 0, l = curvesList.length; i < l; i++) {\n\t\t\tvar curve = curvesList[i],\n\t\t\t\tpath = curve._path,\n\t\t\t\tv = curve.getValues(),\n\t\t\t\tres;\n\t\t\tif (!i || curvesList[i - 1]._path !== path) {\n\t\t\t\tvPrev = null;\n\t\t\t\tif (!path._closed) {\n\t\t\t\t\tvClose = Curve.getValues(\n\t\t\t\t\t\t\tpath.getLastCurve().getSegment2(),\n\t\t\t\t\t\t\tcurve.getSegment1(),\n\t\t\t\t\t\t\tnull, !closed);\n\t\t\t\t\tif (vClose[io] !== vClose[io + 6]) {\n\t\t\t\t\t\tvPrev = vClose;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!vPrev) {\n\t\t\t\t\tvPrev = v;\n\t\t\t\t\tvar prev = path.getLastCurve();\n\t\t\t\t\twhile (prev && prev !== curve) {\n\t\t\t\t\t\tvar v2 = prev.getValues();\n\t\t\t\t\t\tif (v2[io] !== v2[io + 6]) {\n\t\t\t\t\t\t\tvPrev = v2;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tprev = prev.getPrevious();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (res = handleCurve(v))\n\t\t\t\treturn res;\n\n\t\t\tif (i + 1 === l || curvesList[i + 1]._path !== path) {\n\t\t\t\tif (vClose && (res = handleCurve(vClose)))\n\t\t\t\t\treturn res;\n\t\t\t\tif (onPath && !pathWindingL && !pathWindingR) {\n\t\t\t\t\tpathWindingL = pathWindingR = path.isClockwise(closed) ^ dir\n\t\t\t\t\t\t\t? 1 : -1;\n\t\t\t\t}\n\t\t\t\twindingL += pathWindingL;\n\t\t\t\twindingR += pathWindingR;\n\t\t\t\tpathWindingL = pathWindingR = 0;\n\t\t\t\tif (onPath) {\n\t\t\t\t\tonAnyPath = true;\n\t\t\t\t\tonPath = false;\n\t\t\t\t}\n\t\t\t\tvClose = null;\n\t\t\t}\n\t\t}\n\t\twindingL = abs(windingL);\n\t\twindingR = abs(windingR);\n\t\treturn {\n\t\t\twinding: max(windingL, windingR),\n\t\t\twindingL: windingL,\n\t\t\twindingR: windingR,\n\t\t\tquality: quality,\n\t\t\tonPath: onAnyPath\n\t\t};\n\t}\n\n\tfunction propagateWinding(segment, path1, path2, curveCollisionsMap,\n\t\t\toperator) {\n\t\tvar chain = [],\n\t\t\tstart = segment,\n\t\t\ttotalLength = 0,\n\t\t\twinding;\n\t\tdo {\n\t\t\tvar curve = segment.getCurve();\n\t\t\tif (curve) {\n\t\t\t\tvar length = curve.getLength();\n\t\t\t\tchain.push({ segment: segment, curve: curve, length: length });\n\t\t\t\ttotalLength += length;\n\t\t\t}\n\t\t\tsegment = segment.getNext();\n\t\t} while (segment && !segment._intersection && segment !== start);\n\t\tvar offsets = [0.5, 0.25, 0.75],\n\t\t\twinding = { winding: 0, quality: -1 },\n\t\t\ttMin = 1e-3,\n\t\t\ttMax = 1 - tMin;\n\t\tfor (var i = 0; i < offsets.length && winding.quality < 0.5; i++) {\n\t\t\tvar length = totalLength * offsets[i];\n\t\t\tfor (var j = 0, l = chain.length; j < l; j++) {\n\t\t\t\tvar entry = chain[j],\n\t\t\t\t\tcurveLength = entry.length;\n\t\t\t\tif (length <= curveLength) {\n\t\t\t\t\tvar curve = entry.curve,\n\t\t\t\t\t\tpath = curve._path,\n\t\t\t\t\t\tparent = path._parent,\n\t\t\t\t\t\toperand = parent instanceof CompoundPath ? parent : path,\n\t\t\t\t\t\tt = Numerical.clamp(curve.getTimeAt(length), tMin, tMax),\n\t\t\t\t\t\tpt = curve.getPointAtTime(t),\n\t\t\t\t\t\tdir = abs(curve.getTangentAtTime(t).y) < Math.SQRT1_2;\n\t\t\t\t\tvar wind = null;\n\t\t\t\t\tif (operator.subtract && path2) {\n\t\t\t\t\t\tvar otherPath = operand === path1 ? path2 : path1,\n\t\t\t\t\t\t\tpathWinding = otherPath._getWinding(pt, dir, true);\n\t\t\t\t\t\tif (operand === path1 && pathWinding.winding ||\n\t\t\t\t\t\t\toperand === path2 && !pathWinding.winding) {\n\t\t\t\t\t\t\tif (pathWinding.quality < 1) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twind = { winding: 0, quality: 1 };\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\twind = wind || getWinding(\n\t\t\t\t\t\t\tpt, curveCollisionsMap[path._id][curve.getIndex()],\n\t\t\t\t\t\t\tdir, true);\n\t\t\t\t\tif (wind.quality > winding.quality)\n\t\t\t\t\t\twinding = wind;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tlength -= curveLength;\n\t\t\t}\n\t\t}\n\t\tfor (var j = chain.length - 1; j >= 0; j--) {\n\t\t\tchain[j].segment._winding = winding;\n\t\t}\n\t}\n\n\tfunction tracePaths(segments, operator) {\n\t\tvar paths = [],\n\t\t\tstarts;\n\n\t\tfunction isValid(seg) {\n\t\t\tvar winding;\n\t\t\treturn !!(seg && !seg._visited && (!operator\n\t\t\t\t\t|| operator[(winding = seg._winding || {}).winding]\n\t\t\t\t\t\t&& !(operator.unite && winding.winding === 2\n\t\t\t\t\t\t\t&& winding.windingL && winding.windingR)));\n\t\t}\n\n\t\tfunction isStart(seg) {\n\t\t\tif (seg) {\n\t\t\t\tfor (var i = 0, l = starts.length; i < l; i++) {\n\t\t\t\t\tif (seg === starts[i])\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\n\t\tfunction visitPath(path) {\n\t\t\tvar segments = path._segments;\n\t\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\t\tsegments[i]._visited = true;\n\t\t\t}\n\t\t}\n\n\t\tfunction getCrossingSegments(segment, collectStarts) {\n\t\t\tvar inter = segment._intersection,\n\t\t\t\tstart = inter,\n\t\t\t\tcrossings = [];\n\t\t\tif (collectStarts)\n\t\t\t\tstarts = [segment];\n\n\t\t\tfunction collect(inter, end) {\n\t\t\t\twhile (inter && inter !== end) {\n\t\t\t\t\tvar other = inter._segment,\n\t\t\t\t\t\tpath = other && other._path;\n\t\t\t\t\tif (path) {\n\t\t\t\t\t\tvar next = other.getNext() || path.getFirstSegment(),\n\t\t\t\t\t\t\tnextInter = next._intersection;\n\t\t\t\t\t\tif (other !== segment && (isStart(other)\n\t\t\t\t\t\t\t|| isStart(next)\n\t\t\t\t\t\t\t|| next && (isValid(other) && (isValid(next)\n\t\t\t\t\t\t\t\t|| nextInter && isValid(nextInter._segment))))\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tcrossings.push(other);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (collectStarts)\n\t\t\t\t\t\t\tstarts.push(other);\n\t\t\t\t\t}\n\t\t\t\t\tinter = inter._next;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (inter) {\n\t\t\t\tcollect(inter);\n\t\t\t\twhile (inter && inter._previous)\n\t\t\t\t\tinter = inter._previous;\n\t\t\t\tcollect(inter, start);\n\t\t\t}\n\t\t\treturn crossings;\n\t\t}\n\n\t\tsegments.sort(function(seg1, seg2) {\n\t\t\tvar inter1 = seg1._intersection,\n\t\t\t\tinter2 = seg2._intersection,\n\t\t\t\tover1 = !!(inter1 && inter1._overlap),\n\t\t\t\tover2 = !!(inter2 && inter2._overlap),\n\t\t\t\tpath1 = seg1._path,\n\t\t\t\tpath2 = seg2._path;\n\t\t\treturn over1 ^ over2\n\t\t\t\t\t? over1 ? 1 : -1\n\t\t\t\t\t: !inter1 ^ !inter2\n\t\t\t\t\t\t? inter1 ? 1 : -1\n\t\t\t\t\t\t: path1 !== path2\n\t\t\t\t\t\t\t? path1._id - path2._id\n\t\t\t\t\t\t\t: seg1._index - seg2._index;\n\t\t});\n\n\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\tvar seg = segments[i],\n\t\t\t\tvalid = isValid(seg),\n\t\t\t\tpath = null,\n\t\t\t\tfinished = false,\n\t\t\t\tclosed = true,\n\t\t\t\tbranches = [],\n\t\t\t\tbranch,\n\t\t\t\tvisited,\n\t\t\t\thandleIn;\n\t\t\tif (valid && seg._path._overlapsOnly) {\n\t\t\t\tvar path1 = seg._path,\n\t\t\t\t\tpath2 = seg._intersection._segment._path;\n\t\t\t\tif (path1.compare(path2)) {\n\t\t\t\t\tif (path1.getArea())\n\t\t\t\t\t\tpaths.push(path1.clone(false));\n\t\t\t\t\tvisitPath(path1);\n\t\t\t\t\tvisitPath(path2);\n\t\t\t\t\tvalid = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile (valid) {\n\t\t\t\tvar first = !path,\n\t\t\t\t\tcrossings = getCrossingSegments(seg, first),\n\t\t\t\t\tother = crossings.shift(),\n\t\t\t\t\tfinished = !first && (isStart(seg) || isStart(other)),\n\t\t\t\t\tcross = !finished && other;\n\t\t\t\tif (first) {\n\t\t\t\t\tpath = new Path(Item.NO_INSERT);\n\t\t\t\t\tbranch = null;\n\t\t\t\t}\n\t\t\t\tif (finished) {\n\t\t\t\t\tif (seg.isFirst() || seg.isLast())\n\t\t\t\t\t\tclosed = seg._path._closed;\n\t\t\t\t\tseg._visited = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (cross && branch) {\n\t\t\t\t\tbranches.push(branch);\n\t\t\t\t\tbranch = null;\n\t\t\t\t}\n\t\t\t\tif (!branch) {\n\t\t\t\t\tif (cross)\n\t\t\t\t\t\tcrossings.push(seg);\n\t\t\t\t\tbranch = {\n\t\t\t\t\t\tstart: path._segments.length,\n\t\t\t\t\t\tcrossings: crossings,\n\t\t\t\t\t\tvisited: visited = [],\n\t\t\t\t\t\thandleIn: handleIn\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tif (cross)\n\t\t\t\t\tseg = other;\n\t\t\t\tif (!isValid(seg)) {\n\t\t\t\t\tpath.removeSegments(branch.start);\n\t\t\t\t\tfor (var j = 0, k = visited.length; j < k; j++) {\n\t\t\t\t\t\tvisited[j]._visited = false;\n\t\t\t\t\t}\n\t\t\t\t\tvisited.length = 0;\n\t\t\t\t\tdo {\n\t\t\t\t\t\tseg = branch && branch.crossings.shift();\n\t\t\t\t\t\tif (!seg || !seg._path) {\n\t\t\t\t\t\t\tseg = null;\n\t\t\t\t\t\t\tbranch = branches.pop();\n\t\t\t\t\t\t\tif (branch) {\n\t\t\t\t\t\t\t\tvisited = branch.visited;\n\t\t\t\t\t\t\t\thandleIn = branch.handleIn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} while (branch && !isValid(seg));\n\t\t\t\t\tif (!seg)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tvar next = seg.getNext();\n\t\t\t\tpath.add(new Segment(seg._point, handleIn,\n\t\t\t\t\t\tnext && seg._handleOut));\n\t\t\t\tseg._visited = true;\n\t\t\t\tvisited.push(seg);\n\t\t\t\tseg = next || seg._path.getFirstSegment();\n\t\t\t\thandleIn = next && next._handleIn;\n\t\t\t}\n\t\t\tif (finished) {\n\t\t\t\tif (closed) {\n\t\t\t\t\tpath.getFirstSegment().setHandleIn(handleIn);\n\t\t\t\t\tpath.setClosed(closed);\n\t\t\t\t}\n\t\t\t\tif (path.getArea() !== 0) {\n\t\t\t\t\tpaths.push(path);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn paths;\n\t}\n\n\treturn {\n\t\t_getWinding: function(point, dir, closed) {\n\t\t\treturn getWinding(point, this.getCurves(), dir, closed);\n\t\t},\n\n\t\tunite: function(path, options) {\n\t\t\treturn traceBoolean(this, path, 'unite', options);\n\t\t},\n\n\t\tintersect: function(path, options) {\n\t\t\treturn traceBoolean(this, path, 'intersect', options);\n\t\t},\n\n\t\tsubtract: function(path, options) {\n\t\t\treturn traceBoolean(this, path, 'subtract', options);\n\t\t},\n\n\t\texclude: function(path, options) {\n\t\t\treturn traceBoolean(this, path, 'exclude', options);\n\t\t},\n\n\t\tdivide: function(path, options) {\n\t\t\treturn options && (options.trace == false || options.stroke)\n\t\t\t\t\t? splitBoolean(this, path, 'divide')\n\t\t\t\t\t: createResult([\n\t\t\t\t\t\tthis.subtract(path, options),\n\t\t\t\t\t\tthis.intersect(path, options)\n\t\t\t\t\t], true, this, path, options);\n\t\t},\n\n\t\tresolveCrossings: function() {\n\t\t\tvar children = this._children,\n\t\t\t\tpaths = children || [this];\n\n\t\t\tfunction hasOverlap(seg, path) {\n\t\t\t\tvar inter = seg && seg._intersection;\n\t\t\t\treturn inter && inter._overlap && inter._path === path;\n\t\t\t}\n\n\t\t\tvar hasOverlaps = false,\n\t\t\t\thasCrossings = false,\n\t\t\t\tintersections = this.getIntersections(null, function(inter) {\n\t\t\t\t\treturn inter.hasOverlap() && (hasOverlaps = true) ||\n\t\t\t\t\t\t\tinter.isCrossing() && (hasCrossings = true);\n\t\t\t\t}),\n\t\t\t\tclearCurves = hasOverlaps && hasCrossings && [];\n\t\t\tintersections = CurveLocation.expand(intersections);\n\t\t\tif (hasOverlaps) {\n\t\t\t\tvar overlaps = divideLocations(intersections, function(inter) {\n\t\t\t\t\treturn inter.hasOverlap();\n\t\t\t\t}, clearCurves);\n\t\t\t\tfor (var i = overlaps.length - 1; i >= 0; i--) {\n\t\t\t\t\tvar overlap = overlaps[i],\n\t\t\t\t\t\tpath = overlap._path,\n\t\t\t\t\t\tseg = overlap._segment,\n\t\t\t\t\t\tprev = seg.getPrevious(),\n\t\t\t\t\t\tnext = seg.getNext();\n\t\t\t\t\tif (hasOverlap(prev, path) && hasOverlap(next, path)) {\n\t\t\t\t\t\tseg.remove();\n\t\t\t\t\t\tprev._handleOut._set(0, 0);\n\t\t\t\t\t\tnext._handleIn._set(0, 0);\n\t\t\t\t\t\tif (prev !== seg && !prev.getCurve().hasLength()) {\n\t\t\t\t\t\t\tnext._handleIn.set(prev._handleIn);\n\t\t\t\t\t\t\tprev.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (hasCrossings) {\n\t\t\t\tdivideLocations(intersections, hasOverlaps && function(inter) {\n\t\t\t\t\tvar curve1 = inter.getCurve(),\n\t\t\t\t\t\tseg1 = inter.getSegment(),\n\t\t\t\t\t\tother = inter._intersection,\n\t\t\t\t\t\tcurve2 = other._curve,\n\t\t\t\t\t\tseg2 = other._segment;\n\t\t\t\t\tif (curve1 && curve2 && curve1._path && curve2._path)\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tif (seg1)\n\t\t\t\t\t\tseg1._intersection = null;\n\t\t\t\t\tif (seg2)\n\t\t\t\t\t\tseg2._intersection = null;\n\t\t\t\t}, clearCurves);\n\t\t\t\tif (clearCurves)\n\t\t\t\t\tclearCurveHandles(clearCurves);\n\t\t\t\tpaths = tracePaths(Base.each(paths, function(path) {\n\t\t\t\t\tBase.push(this, path._segments);\n\t\t\t\t}, []));\n\t\t\t}\n\t\t\tvar length = paths.length,\n\t\t\t\titem;\n\t\t\tif (length > 1 && children) {\n\t\t\t\tif (paths !== children)\n\t\t\t\t\tthis.setChildren(paths);\n\t\t\t\titem = this;\n\t\t\t} else if (length === 1 && !children) {\n\t\t\t\tif (paths[0] !== this)\n\t\t\t\t\tthis.setSegments(paths[0].removeSegments());\n\t\t\t\titem = this;\n\t\t\t}\n\t\t\tif (!item) {\n\t\t\t\titem = new CompoundPath(Item.NO_INSERT);\n\t\t\t\titem.addChildren(paths);\n\t\t\t\titem = item.reduce();\n\t\t\t\titem.copyAttributes(this);\n\t\t\t\tthis.replaceWith(item);\n\t\t\t}\n\t\t\treturn item;\n\t\t},\n\n\t\treorient: function(nonZero, clockwise) {\n\t\t\tvar children = this._children;\n\t\t\tif (children && children.length) {\n\t\t\t\tthis.setChildren(reorientPaths(this.removeChildren(),\n\t\t\t\t\t\tfunction(w) {\n\t\t\t\t\t\t\treturn !!(nonZero ? w : w & 1);\n\t\t\t\t\t\t},\n\t\t\t\t\t\tclockwise));\n\t\t\t} else if (clockwise !== undefined) {\n\t\t\t\tthis.setClockwise(clockwise);\n\t\t\t}\n\t\t\treturn this;\n\t\t},\n\n\t\tgetInteriorPoint: function() {\n\t\t\tvar bounds = this.getBounds(),\n\t\t\t\tpoint = bounds.getCenter(true);\n\t\t\tif (!this.contains(point)) {\n\t\t\t\tvar curves = this.getCurves(),\n\t\t\t\t\ty = point.y,\n\t\t\t\t\tintercepts = [],\n\t\t\t\t\troots = [];\n\t\t\t\tfor (var i = 0, l = curves.length; i < l; i++) {\n\t\t\t\t\tvar v = curves[i].getValues(),\n\t\t\t\t\t\to0 = v[1],\n\t\t\t\t\t\to1 = v[3],\n\t\t\t\t\t\to2 = v[5],\n\t\t\t\t\t\to3 = v[7];\n\t\t\t\t\tif (y >= min(o0, o1, o2, o3) && y <= max(o0, o1, o2, o3)) {\n\t\t\t\t\t\tvar monoCurves = Curve.getMonoCurves(v);\n\t\t\t\t\t\tfor (var j = 0, m = monoCurves.length; j < m; j++) {\n\t\t\t\t\t\t\tvar mv = monoCurves[j],\n\t\t\t\t\t\t\t\tmo0 = mv[1],\n\t\t\t\t\t\t\t\tmo3 = mv[7];\n\t\t\t\t\t\t\tif ((mo0 !== mo3) &&\n\t\t\t\t\t\t\t\t(y >= mo0 && y <= mo3 || y >= mo3 && y <= mo0)){\n\t\t\t\t\t\t\t\tvar x = y === mo0 ? mv[0]\n\t\t\t\t\t\t\t\t\t: y === mo3 ? mv[6]\n\t\t\t\t\t\t\t\t\t: Curve.solveCubic(mv, 1, y, roots, 0, 1)\n\t\t\t\t\t\t\t\t\t\t=== 1\n\t\t\t\t\t\t\t\t\t\t? Curve.getPoint(mv, roots[0]).x\n\t\t\t\t\t\t\t\t\t\t: (mv[0] + mv[6]) / 2;\n\t\t\t\t\t\t\t\tintercepts.push(x);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (intercepts.length > 1) {\n\t\t\t\t\tintercepts.sort(function(a, b) { return a - b; });\n\t\t\t\t\tpoint.x = (intercepts[0] + intercepts[1]) / 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn point;\n\t\t}\n\t};\n});\n\nvar PathFlattener = Base.extend({\n\t_class: 'PathFlattener',\n\n\tinitialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {\n\t\tvar curves = [],\n\t\t\tparts = [],\n\t\t\tlength = 0,\n\t\t\tminSpan = 1 / (maxRecursion || 32),\n\t\t\tsegments = path._segments,\n\t\t\tsegment1 = segments[0],\n\t\t\tsegment2;\n\n\t\tfunction addCurve(segment1, segment2) {\n\t\t\tvar curve = Curve.getValues(segment1, segment2, matrix);\n\t\t\tcurves.push(curve);\n\t\t\tcomputeParts(curve, segment1._index, 0, 1);\n\t\t}\n\n\t\tfunction computeParts(curve, index, t1, t2) {\n\t\t\tif ((t2 - t1) > minSpan\n\t\t\t\t\t&& !(ignoreStraight && Curve.isStraight(curve))\n\t\t\t\t\t&& !Curve.isFlatEnough(curve, flatness || 0.25)) {\n\t\t\t\tvar halves = Curve.subdivide(curve, 0.5),\n\t\t\t\t\ttMid = (t1 + t2) / 2;\n\t\t\t\tcomputeParts(halves[0], index, t1, tMid);\n\t\t\t\tcomputeParts(halves[1], index, tMid, t2);\n\t\t\t} else {\n\t\t\t\tvar dx = curve[6] - curve[0],\n\t\t\t\t\tdy = curve[7] - curve[1],\n\t\t\t\t\tdist = Math.sqrt(dx * dx + dy * dy);\n\t\t\t\tif (dist > 0) {\n\t\t\t\t\tlength += dist;\n\t\t\t\t\tparts.push({\n\t\t\t\t\t\toffset: length,\n\t\t\t\t\t\tcurve: curve,\n\t\t\t\t\t\tindex: index,\n\t\t\t\t\t\ttime: t2,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (var i = 1, l = segments.length; i < l; i++) {\n\t\t\tsegment2 = segments[i];\n\t\t\taddCurve(segment1, segment2);\n\t\t\tsegment1 = segment2;\n\t\t}\n\t\tif (path._closed)\n\t\t\taddCurve(segment2 || segment1, segments[0]);\n\t\tthis.curves = curves;\n\t\tthis.parts = parts;\n\t\tthis.length = length;\n\t\tthis.index = 0;\n\t},\n\n\t_get: function(offset) {\n\t\tvar parts = this.parts,\n\t\t\tlength = parts.length,\n\t\t\tstart,\n\t\t\ti, j = this.index;\n\t\tfor (;;) {\n\t\t\ti = j;\n\t\t\tif (!j || parts[--j].offset < offset)\n\t\t\t\tbreak;\n\t\t}\n\t\tfor (; i < length; i++) {\n\t\t\tvar part = parts[i];\n\t\t\tif (part.offset >= offset) {\n\t\t\t\tthis.index = i;\n\t\t\t\tvar prev = parts[i - 1],\n\t\t\t\t\tprevTime = prev && prev.index === part.index ? prev.time : 0,\n\t\t\t\t\tprevOffset = prev ? prev.offset : 0;\n\t\t\t\treturn {\n\t\t\t\t\tindex: part.index,\n\t\t\t\t\ttime: prevTime + (part.time - prevTime)\n\t\t\t\t\t\t* (offset - prevOffset) / (part.offset - prevOffset)\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tindex: parts[length - 1].index,\n\t\t\ttime: 1\n\t\t};\n\t},\n\n\tdrawPart: function(ctx, from, to) {\n\t\tvar start = this._get(from),\n\t\t\tend = this._get(to);\n\t\tfor (var i = start.index, l = end.index; i <= l; i++) {\n\t\t\tvar curve = Curve.getPart(this.curves[i],\n\t\t\t\t\ti === start.index ? start.time : 0,\n\t\t\t\t\ti === end.index ? end.time : 1);\n\t\t\tif (i === start.index)\n\t\t\t\tctx.moveTo(curve[0], curve[1]);\n\t\t\tctx.bezierCurveTo.apply(ctx, curve.slice(2));\n\t\t}\n\t}\n}, Base.each(Curve._evaluateMethods,\n\tfunction(name) {\n\t\tthis[name + 'At'] = function(offset) {\n\t\t\tvar param = this._get(offset);\n\t\t\treturn Curve[name](this.curves[param.index], param.time);\n\t\t};\n\t}, {})\n);\n\nvar PathFitter = Base.extend({\n\tinitialize: function(path) {\n\t\tvar points = this.points = [],\n\t\t\tsegments = path._segments,\n\t\t\tclosed = path._closed;\n\t\tfor (var i = 0, prev, l = segments.length; i < l; i++) {\n\t\t\tvar point = segments[i].point;\n\t\t\tif (!prev || !prev.equals(point)) {\n\t\t\t\tpoints.push(prev = point.clone());\n\t\t\t}\n\t\t}\n\t\tif (closed) {\n\t\t\tpoints.unshift(points[points.length - 1]);\n\t\t\tpoints.push(points[1]);\n\t\t}\n\t\tthis.closed = closed;\n\t},\n\n\tfit: function(error) {\n\t\tvar points = this.points,\n\t\t\tlength = points.length,\n\t\t\tsegments = null;\n\t\tif (length > 0) {\n\t\t\tsegments = [new Segment(points[0])];\n\t\t\tif (length > 1) {\n\t\t\t\tthis.fitCubic(segments, error, 0, length - 1,\n\t\t\t\t\t\tpoints[1].subtract(points[0]),\n\t\t\t\t\t\tpoints[length - 2].subtract(points[length - 1]));\n\t\t\t\tif (this.closed) {\n\t\t\t\t\tsegments.shift();\n\t\t\t\t\tsegments.pop();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn segments;\n\t},\n\n\tfitCubic: function(segments, error, first, last, tan1, tan2) {\n\t\tvar points = this.points;\n\t\tif (last - first === 1) {\n\t\t\tvar pt1 = points[first],\n\t\t\t\tpt2 = points[last],\n\t\t\t\tdist = pt1.getDistance(pt2) / 3;\n\t\t\tthis.addCurve(segments, [pt1, pt1.add(tan1.normalize(dist)),\n\t\t\t\t\tpt2.add(tan2.normalize(dist)), pt2]);\n\t\t\treturn;\n\t\t}\n\t\tvar uPrime = this.chordLengthParameterize(first, last),\n\t\t\tmaxError = Math.max(error, error * error),\n\t\t\tsplit,\n\t\t\tparametersInOrder = true;\n\t\tfor (var i = 0; i <= 4; i++) {\n\t\t\tvar curve = this.generateBezier(first, last, uPrime, tan1, tan2);\n\t\t\tvar max = this.findMaxError(first, last, curve, uPrime);\n\t\t\tif (max.error < error && parametersInOrder) {\n\t\t\t\tthis.addCurve(segments, curve);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tsplit = max.index;\n\t\t\tif (max.error >= maxError)\n\t\t\t\tbreak;\n\t\t\tparametersInOrder = this.reparameterize(first, last, uPrime, curve);\n\t\t\tmaxError = max.error;\n\t\t}\n\t\tvar tanCenter = points[split - 1].subtract(points[split + 1]);\n\t\tthis.fitCubic(segments, error, first, split, tan1, tanCenter);\n\t\tthis.fitCubic(segments, error, split, last, tanCenter.negate(), tan2);\n\t},\n\n\taddCurve: function(segments, curve) {\n\t\tvar prev = segments[segments.length - 1];\n\t\tprev.setHandleOut(curve[1].subtract(curve[0]));\n\t\tsegments.push(new Segment(curve[3], curve[2].subtract(curve[3])));\n\t},\n\n\tgenerateBezier: function(first, last, uPrime, tan1, tan2) {\n\t\tvar epsilon = 1e-12,\n\t\t\tabs = Math.abs,\n\t\t\tpoints = this.points,\n\t\t\tpt1 = points[first],\n\t\t\tpt2 = points[last],\n\t\t\tC = [[0, 0], [0, 0]],\n\t\t\tX = [0, 0];\n\n\t\tfor (var i = 0, l = last - first + 1; i < l; i++) {\n\t\t\tvar u = uPrime[i],\n\t\t\t\tt = 1 - u,\n\t\t\t\tb = 3 * u * t,\n\t\t\t\tb0 = t * t * t,\n\t\t\t\tb1 = b * t,\n\t\t\t\tb2 = b * u,\n\t\t\t\tb3 = u * u * u,\n\t\t\t\ta1 = tan1.normalize(b1),\n\t\t\t\ta2 = tan2.normalize(b2),\n\t\t\t\ttmp = points[first + i]\n\t\t\t\t\t.subtract(pt1.multiply(b0 + b1))\n\t\t\t\t\t.subtract(pt2.multiply(b2 + b3));\n\t\t\tC[0][0] += a1.dot(a1);\n\t\t\tC[0][1] += a1.dot(a2);\n\t\t\tC[1][0] = C[0][1];\n\t\t\tC[1][1] += a2.dot(a2);\n\t\t\tX[0] += a1.dot(tmp);\n\t\t\tX[1] += a2.dot(tmp);\n\t\t}\n\n\t\tvar detC0C1 = C[0][0] * C[1][1] - C[1][0] * C[0][1],\n\t\t\talpha1,\n\t\t\talpha2;\n\t\tif (abs(detC0C1) > epsilon) {\n\t\t\tvar detC0X = C[0][0] * X[1] - C[1][0] * X[0],\n\t\t\t\tdetXC1 = X[0] * C[1][1] - X[1] * C[0][1];\n\t\t\talpha1 = detXC1 / detC0C1;\n\t\t\talpha2 = detC0X / detC0C1;\n\t\t} else {\n\t\t\tvar c0 = C[0][0] + C[0][1],\n\t\t\t\tc1 = C[1][0] + C[1][1];\n\t\t\talpha1 = alpha2 = abs(c0) > epsilon ? X[0] / c0\n\t\t\t\t\t\t\t: abs(c1) > epsilon ? X[1] / c1\n\t\t\t\t\t\t\t: 0;\n\t\t}\n\n\t\tvar segLength = pt2.getDistance(pt1),\n\t\t\teps = epsilon * segLength,\n\t\t\thandle1,\n\t\t\thandle2;\n\t\tif (alpha1 < eps || alpha2 < eps) {\n\t\t\talpha1 = alpha2 = segLength / 3;\n\t\t} else {\n\t\t\tvar line = pt2.subtract(pt1);\n\t\t\thandle1 = tan1.normalize(alpha1);\n\t\t\thandle2 = tan2.normalize(alpha2);\n\t\t\tif (handle1.dot(line) - handle2.dot(line) > segLength * segLength) {\n\t\t\t\talpha1 = alpha2 = segLength / 3;\n\t\t\t\thandle1 = handle2 = null;\n\t\t\t}\n\t\t}\n\n\t\treturn [pt1,\n\t\t\t\tpt1.add(handle1 || tan1.normalize(alpha1)),\n\t\t\t\tpt2.add(handle2 || tan2.normalize(alpha2)),\n\t\t\t\tpt2];\n\t},\n\n\treparameterize: function(first, last, u, curve) {\n\t\tfor (var i = first; i <= last; i++) {\n\t\t\tu[i - first] = this.findRoot(curve, this.points[i], u[i - first]);\n\t\t}\n\t\tfor (var i = 1, l = u.length; i < l; i++) {\n\t\t\tif (u[i] <= u[i - 1])\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\tfindRoot: function(curve, point, u) {\n\t\tvar curve1 = [],\n\t\t\tcurve2 = [];\n\t\tfor (var i = 0; i <= 2; i++) {\n\t\t\tcurve1[i] = curve[i + 1].subtract(curve[i]).multiply(3);\n\t\t}\n\t\tfor (var i = 0; i <= 1; i++) {\n\t\t\tcurve2[i] = curve1[i + 1].subtract(curve1[i]).multiply(2);\n\t\t}\n\t\tvar pt = this.evaluate(3, curve, u),\n\t\t\tpt1 = this.evaluate(2, curve1, u),\n\t\t\tpt2 = this.evaluate(1, curve2, u),\n\t\t\tdiff = pt.subtract(point),\n\t\t\tdf = pt1.dot(pt1) + diff.dot(pt2);\n\t\treturn Numerical.isMachineZero(df) ? u : u - diff.dot(pt1) / df;\n\t},\n\n\tevaluate: function(degree, curve, t) {\n\t\tvar tmp = curve.slice();\n\t\tfor (var i = 1; i <= degree; i++) {\n\t\t\tfor (var j = 0; j <= degree - i; j++) {\n\t\t\t\ttmp[j] = tmp[j].multiply(1 - t).add(tmp[j + 1].multiply(t));\n\t\t\t}\n\t\t}\n\t\treturn tmp[0];\n\t},\n\n\tchordLengthParameterize: function(first, last) {\n\t\tvar u = [0];\n\t\tfor (var i = first + 1; i <= last; i++) {\n\t\t\tu[i - first] = u[i - first - 1]\n\t\t\t\t\t+ this.points[i].getDistance(this.points[i - 1]);\n\t\t}\n\t\tfor (var i = 1, m = last - first; i <= m; i++) {\n\t\t\tu[i] /= u[m];\n\t\t}\n\t\treturn u;\n\t},\n\n\tfindMaxError: function(first, last, curve, u) {\n\t\tvar index = Math.floor((last - first + 1) / 2),\n\t\t\tmaxDist = 0;\n\t\tfor (var i = first + 1; i < last; i++) {\n\t\t\tvar P = this.evaluate(3, curve, u[i - first]);\n\t\t\tvar v = P.subtract(this.points[i]);\n\t\t\tvar dist = v.x * v.x + v.y * v.y;\n\t\t\tif (dist >= maxDist) {\n\t\t\t\tmaxDist = dist;\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\terror: maxDist,\n\t\t\tindex: index\n\t\t};\n\t}\n});\n\nvar TextItem = Item.extend({\n\t_class: 'TextItem',\n\t_applyMatrix: false,\n\t_canApplyMatrix: false,\n\t_serializeFields: {\n\t\tcontent: null\n\t},\n\t_boundsOptions: { stroke: false, handle: false },\n\n\tinitialize: function TextItem(arg) {\n\t\tthis._content = '';\n\t\tthis._lines = [];\n\t\tvar hasProps = arg && Base.isPlainObject(arg)\n\t\t\t\t&& arg.x === undefined && arg.y === undefined;\n\t\tthis._initialize(hasProps && arg, !hasProps && Point.read(arguments));\n\t},\n\n\t_equals: function(item) {\n\t\treturn this._content === item._content;\n\t},\n\n\tcopyContent: function(source) {\n\t\tthis.setContent(source._content);\n\t},\n\n\tgetContent: function() {\n\t\treturn this._content;\n\t},\n\n\tsetContent: function(content) {\n\t\tthis._content = '' + content;\n\t\tthis._lines = this._content.split(/\\r\\n|\\n|\\r/mg);\n\t\tthis._changed(521);\n\t},\n\n\tisEmpty: function() {\n\t\treturn !this._content;\n\t},\n\n\tgetCharacterStyle: '#getStyle',\n\tsetCharacterStyle: '#setStyle',\n\n\tgetParagraphStyle: '#getStyle',\n\tsetParagraphStyle: '#setStyle'\n});\n\nvar PointText = TextItem.extend({\n\t_class: 'PointText',\n\n\tinitialize: function PointText() {\n\t\tTextItem.apply(this, arguments);\n\t},\n\n\tgetPoint: function() {\n\t\tvar point = this._matrix.getTranslation();\n\t\treturn new LinkedPoint(point.x, point.y, this, 'setPoint');\n\t},\n\n\tsetPoint: function() {\n\t\tvar point = Point.read(arguments);\n\t\tthis.translate(point.subtract(this._matrix.getTranslation()));\n\t},\n\n\t_draw: function(ctx, param, viewMatrix) {\n\t\tif (!this._content)\n\t\t\treturn;\n\t\tthis._setStyles(ctx, param, viewMatrix);\n\t\tvar lines = this._lines,\n\t\t\tstyle = this._style,\n\t\t\thasFill = style.hasFill(),\n\t\t\thasStroke = style.hasStroke(),\n\t\t\tleading = style.getLeading(),\n\t\t\tshadowColor = ctx.shadowColor;\n\t\tctx.font = style.getFontStyle();\n\t\tctx.textAlign = style.getJustification();\n\t\tfor (var i = 0, l = lines.length; i < l; i++) {\n\t\t\tctx.shadowColor = shadowColor;\n\t\t\tvar line = lines[i];\n\t\t\tif (hasFill) {\n\t\t\t\tctx.fillText(line, 0, 0);\n\t\t\t\tctx.shadowColor = 'rgba(0,0,0,0)';\n\t\t\t}\n\t\t\tif (hasStroke)\n\t\t\t\tctx.strokeText(line, 0, 0);\n\t\t\tctx.translate(0, leading);\n\t\t}\n\t},\n\n\t_getBounds: function(matrix, options) {\n\t\tvar style = this._style,\n\t\t\tlines = this._lines,\n\t\t\tnumLines = lines.length,\n\t\t\tjustification = style.getJustification(),\n\t\t\tleading = style.getLeading(),\n\t\t\twidth = this.getView().getTextWidth(style.getFontStyle(), lines),\n\t\t\tx = 0;\n\t\tif (justification !== 'left')\n\t\t\tx -= width / (justification === 'center' ? 2: 1);\n\t\tvar rect = new Rectangle(x,\n\t\t\t\t\tnumLines ? - 0.75 * leading : 0,\n\t\t\t\t\twidth, numLines * leading);\n\t\treturn matrix ? matrix._transformBounds(rect, rect) : rect;\n\t}\n});\n\nvar Color = Base.extend(new function() {\n\tvar types = {\n\t\tgray: ['gray'],\n\t\trgb: ['red', 'green', 'blue'],\n\t\thsb: ['hue', 'saturation', 'brightness'],\n\t\thsl: ['hue', 'saturation', 'lightness'],\n\t\tgradient: ['gradient', 'origin', 'destination', 'highlight']\n\t};\n\n\tvar componentParsers = {},\n\t\tnamedColors = {\n\t\t\ttransparent: [0, 0, 0, 0]\n\t\t},\n\t\tcolorCtx;\n\n\tfunction fromCSS(string) {\n\t\tvar match = string.match(\n\t\t\t\t/^#([\\da-f]{2})([\\da-f]{2})([\\da-f]{2})([\\da-f]{2})?$/i\n\t\t\t) || string.match(\n\t\t\t\t/^#([\\da-f])([\\da-f])([\\da-f])([\\da-f])?$/i\n\t\t\t),\n\t\t\ttype = 'rgb',\n\t\t\tcomponents;\n\t\tif (match) {\n\t\t\tvar amount = match[4] ? 4 : 3;\n\t\t\tcomponents = new Array(amount);\n\t\t\tfor (var i = 0; i < amount; i++) {\n\t\t\t\tvar value = match[i + 1];\n\t\t\t\tcomponents[i] = parseInt(value.length == 1\n\t\t\t\t\t\t? value + value : value, 16) / 255;\n\t\t\t}\n\t\t} else if (match = string.match(/^(rgb|hsl)a?\\((.*)\\)$/)) {\n\t\t\ttype = match[1];\n\t\t\tcomponents = match[2].trim().split(/[,\\s]+/g);\n\t\t\tvar isHSL = type === 'hsl';\n\t\t\tfor (var i = 0, l = Math.min(components.length, 4); i < l; i++) {\n\t\t\t\tvar component = components[i];\n\t\t\t\tvar value = parseFloat(component);\n\t\t\t\tif (isHSL) {\n\t\t\t\t\tif (i === 0) {\n\t\t\t\t\t\tvar unit = component.match(/([a-z]*)$/)[1];\n\t\t\t\t\t\tvalue *= ({\n\t\t\t\t\t\t\tturn: 360,\n\t\t\t\t\t\t\trad: 180 / Math.PI,\n\t\t\t\t\t\t\tgrad: 0.9\n\t\t\t\t\t\t}[unit] || 1);\n\t\t\t\t\t} else if (i < 3) {\n\t\t\t\t\t\tvalue /= 100;\n\t\t\t\t\t}\n\t\t\t\t} else if (i < 3) {\n\t\t\t\t\tvalue /= /%$/.test(component) ? 100 : 255;\n\t\t\t\t}\n\t\t\t\tcomponents[i] = value;\n\t\t\t}\n\t\t} else {\n\t\t\tvar color = namedColors[string];\n\t\t\tif (!color) {\n\t\t\t\tif (window) {\n\t\t\t\t\tif (!colorCtx) {\n\t\t\t\t\t\tcolorCtx = CanvasProvider.getContext(1, 1, {\n\t\t\t\t\t\t\twillReadFrequently: true\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcolorCtx.globalCompositeOperation = 'copy';\n\t\t\t\t\t}\n\t\t\t\t\tcolorCtx.fillStyle = 'rgba(0,0,0,0)';\n\t\t\t\t\tcolorCtx.fillStyle = string;\n\t\t\t\t\tcolorCtx.fillRect(0, 0, 1, 1);\n\t\t\t\t\tvar data = colorCtx.getImageData(0, 0, 1, 1).data;\n\t\t\t\t\tcolor = namedColors[string] = [\n\t\t\t\t\t\tdata[0] / 255,\n\t\t\t\t\t\tdata[1] / 255,\n\t\t\t\t\t\tdata[2] / 255\n\t\t\t\t\t];\n\t\t\t\t} else {\n\t\t\t\t\tcolor = [0, 0, 0];\n\t\t\t\t}\n\t\t\t}\n\t\t\tcomponents = color.slice();\n\t\t}\n\t\treturn [type, components];\n\t}\n\n\tvar hsbIndices = [\n\t\t[0, 3, 1],\n\t\t[2, 0, 1],\n\t\t[1, 0, 3],\n\t\t[1, 2, 0],\n\t\t[3, 1, 0],\n\t\t[0, 1, 2]\n\t];\n\n\tvar converters = {\n\t\t'rgb-hsb': function(r, g, b) {\n\t\t\tvar max = Math.max(r, g, b),\n\t\t\t\tmin = Math.min(r, g, b),\n\t\t\t\tdelta = max - min,\n\t\t\t\th = delta === 0 ? 0\n\t\t\t\t\t: ( max == r ? (g - b) / delta + (g < b ? 6 : 0)\n\t\t\t\t\t\t: max == g ? (b - r) / delta + 2\n\t\t\t\t\t\t: (r - g) / delta + 4) * 60;\n\t\t\treturn [h, max === 0 ? 0 : delta / max, max];\n\t\t},\n\n\t\t'hsb-rgb': function(h, s, b) {\n\t\t\th = (((h / 60) % 6) + 6) % 6;\n\t\t\tvar i = Math.floor(h),\n\t\t\t\tf = h - i,\n\t\t\t\ti = hsbIndices[i],\n\t\t\t\tv = [\n\t\t\t\t\tb,\n\t\t\t\t\tb * (1 - s),\n\t\t\t\t\tb * (1 - s * f),\n\t\t\t\t\tb * (1 - s * (1 - f))\n\t\t\t\t];\n\t\t\treturn [v[i[0]], v[i[1]], v[i[2]]];\n\t\t},\n\n\t\t'rgb-hsl': function(r, g, b) {\n\t\t\tvar max = Math.max(r, g, b),\n\t\t\t\tmin = Math.min(r, g, b),\n\t\t\t\tdelta = max - min,\n\t\t\t\tachromatic = delta === 0,\n\t\t\t\th = achromatic ? 0\n\t\t\t\t\t: ( max == r ? (g - b) / delta + (g < b ? 6 : 0)\n\t\t\t\t\t\t: max == g ? (b - r) / delta + 2\n\t\t\t\t\t\t: (r - g) / delta + 4) * 60,\n\t\t\t\tl = (max + min) / 2,\n\t\t\t\ts = achromatic ? 0 : l < 0.5\n\t\t\t\t\t\t? delta / (max + min)\n\t\t\t\t\t\t: delta / (2 - max - min);\n\t\t\treturn [h, s, l];\n\t\t},\n\n\t\t'hsl-rgb': function(h, s, l) {\n\t\t\th = (((h / 360) % 1) + 1) % 1;\n\t\t\tif (s === 0)\n\t\t\t\treturn [l, l, l];\n\t\t\tvar t3s = [ h + 1 / 3, h, h - 1 / 3 ],\n\t\t\t\tt2 = l < 0.5 ? l * (1 + s) : l + s - l * s,\n\t\t\t\tt1 = 2 * l - t2,\n\t\t\t\tc = [];\n\t\t\tfor (var i = 0; i < 3; i++) {\n\t\t\t\tvar t3 = t3s[i];\n\t\t\t\tif (t3 < 0) t3 += 1;\n\t\t\t\tif (t3 > 1) t3 -= 1;\n\t\t\t\tc[i] = 6 * t3 < 1\n\t\t\t\t\t? t1 + (t2 - t1) * 6 * t3\n\t\t\t\t\t: 2 * t3 < 1\n\t\t\t\t\t\t? t2\n\t\t\t\t\t\t: 3 * t3 < 2\n\t\t\t\t\t\t\t? t1 + (t2 - t1) * ((2 / 3) - t3) * 6\n\t\t\t\t\t\t\t: t1;\n\t\t\t}\n\t\t\treturn c;\n\t\t},\n\n\t\t'rgb-gray': function(r, g, b) {\n\t\t\treturn [r * 0.2989 + g * 0.587 + b * 0.114];\n\t\t},\n\n\t\t'gray-rgb': function(g) {\n\t\t\treturn [g, g, g];\n\t\t},\n\n\t\t'gray-hsb': function(g) {\n\t\t\treturn [0, 0, g];\n\t\t},\n\n\t\t'gray-hsl': function(g) {\n\t\t\treturn [0, 0, g];\n\t\t},\n\n\t\t'gradient-rgb': function() {\n\t\t\treturn [];\n\t\t},\n\n\t\t'rgb-gradient': function() {\n\t\t\treturn [];\n\t\t}\n\n\t};\n\n\treturn Base.each(types, function(properties, type) {\n\t\tcomponentParsers[type] = [];\n\t\tBase.each(properties, function(name, index) {\n\t\t\tvar part = Base.capitalize(name),\n\t\t\t\thasOverlap = /^(hue|saturation)$/.test(name),\n\t\t\t\tparser = componentParsers[type][index] = type === 'gradient'\n\t\t\t\t\t? name === 'gradient'\n\t\t\t\t\t\t? function(value) {\n\t\t\t\t\t\t\tvar current = this._components[0];\n\t\t\t\t\t\t\tvalue = Gradient.read(\n\t\t\t\t\t\t\t\tArray.isArray(value)\n\t\t\t\t\t\t\t\t\t? value\n\t\t\t\t\t\t\t\t\t: arguments, 0, { readNull: true }\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tif (current !== value) {\n\t\t\t\t\t\t\t\tif (current)\n\t\t\t\t\t\t\t\t\tcurrent._removeOwner(this);\n\t\t\t\t\t\t\t\tif (value)\n\t\t\t\t\t\t\t\t\tvalue._addOwner(this);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn value;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t: function() {\n\t\t\t\t\t\t\treturn Point.read(arguments, 0, {\n\t\t\t\t\t\t\t\t\treadNull: name === 'highlight',\n\t\t\t\t\t\t\t\t\tclone: true\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t: function(value) {\n\t\t\t\t\t\treturn value == null || isNaN(value) ? 0 : +value;\n\t\t\t\t\t};\n\t\t\tthis['get' + part] = function() {\n\t\t\t\treturn this._type === type\n\t\t\t\t\t|| hasOverlap && /^hs[bl]$/.test(this._type)\n\t\t\t\t\t\t? this._components[index]\n\t\t\t\t\t\t: this._convert(type)[index];\n\t\t\t};\n\n\t\t\tthis['set' + part] = function(value) {\n\t\t\t\tif (this._type !== type\n\t\t\t\t\t\t&& !(hasOverlap && /^hs[bl]$/.test(this._type))) {\n\t\t\t\t\tthis._components = this._convert(type);\n\t\t\t\t\tthis._properties = types[type];\n\t\t\t\t\tthis._type = type;\n\t\t\t\t}\n\t\t\t\tthis._components[index] = parser.call(this, value);\n\t\t\t\tthis._changed();\n\t\t\t};\n\t\t}, this);\n\t}, {\n\t\t_class: 'Color',\n\t\t_readIndex: true,\n\n\t\tinitialize: function Color(arg) {\n\t\t\tvar args = arguments,\n\t\t\t\treading = this.__read,\n\t\t\t\tread = 0,\n\t\t\t\ttype,\n\t\t\t\tcomponents,\n\t\t\t\talpha,\n\t\t\t\tvalues;\n\t\t\tif (Array.isArray(arg)) {\n\t\t\t\targs = arg;\n\t\t\t\targ = args[0];\n\t\t\t}\n\t\t\tvar argType = arg != null && typeof arg;\n\t\t\tif (argType === 'string' && arg in types) {\n\t\t\t\ttype = arg;\n\t\t\t\targ = args[1];\n\t\t\t\tif (Array.isArray(arg)) {\n\t\t\t\t\tcomponents = arg;\n\t\t\t\t\talpha = args[2];\n\t\t\t\t} else {\n\t\t\t\t\tif (reading)\n\t\t\t\t\t\tread = 1;\n\t\t\t\t\targs = Base.slice(args, 1);\n\t\t\t\t\targType = typeof arg;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!components) {\n\t\t\t\tvalues = argType === 'number'\n\t\t\t\t\t\t? args\n\t\t\t\t\t\t: argType === 'object' && arg.length != null\n\t\t\t\t\t\t\t? arg\n\t\t\t\t\t\t\t: null;\n\t\t\t\tif (values) {\n\t\t\t\t\tif (!type)\n\t\t\t\t\t\ttype = values.length >= 3\n\t\t\t\t\t\t\t\t? 'rgb'\n\t\t\t\t\t\t\t\t: 'gray';\n\t\t\t\t\tvar length = types[type].length;\n\t\t\t\t\talpha = values[length];\n\t\t\t\t\tif (reading) {\n\t\t\t\t\t\tread += values === arguments\n\t\t\t\t\t\t\t? length + (alpha != null ? 1 : 0)\n\t\t\t\t\t\t\t: 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (values.length > length)\n\t\t\t\t\t\tvalues = Base.slice(values, 0, length);\n\t\t\t\t} else if (argType === 'string') {\n\t\t\t\t\tvar converted = fromCSS(arg);\n\t\t\t\t\ttype = converted[0];\n\t\t\t\t\tcomponents = converted[1];\n\t\t\t\t\tif (components.length === 4) {\n\t\t\t\t\t\talpha = components[3];\n\t\t\t\t\t\tcomponents.length--;\n\t\t\t\t\t}\n\t\t\t\t} else if (argType === 'object') {\n\t\t\t\t\tif (arg.constructor === Color) {\n\t\t\t\t\t\ttype = arg._type;\n\t\t\t\t\t\tcomponents = arg._components.slice();\n\t\t\t\t\t\talpha = arg._alpha;\n\t\t\t\t\t\tif (type === 'gradient') {\n\t\t\t\t\t\t\tfor (var i = 1, l = components.length; i < l; i++) {\n\t\t\t\t\t\t\t\tvar point = components[i];\n\t\t\t\t\t\t\t\tif (point)\n\t\t\t\t\t\t\t\t\tcomponents[i] = point.clone();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (arg.constructor === Gradient) {\n\t\t\t\t\t\ttype = 'gradient';\n\t\t\t\t\t\tvalues = args;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttype = 'hue' in arg\n\t\t\t\t\t\t\t? 'lightness' in arg\n\t\t\t\t\t\t\t\t? 'hsl'\n\t\t\t\t\t\t\t\t: 'hsb'\n\t\t\t\t\t\t\t: 'gradient' in arg || 'stops' in arg\n\t\t\t\t\t\t\t\t\t|| 'radial' in arg\n\t\t\t\t\t\t\t\t? 'gradient'\n\t\t\t\t\t\t\t\t: 'gray' in arg\n\t\t\t\t\t\t\t\t\t? 'gray'\n\t\t\t\t\t\t\t\t\t: 'rgb';\n\t\t\t\t\t\tvar properties = types[type],\n\t\t\t\t\t\t\tparsers = componentParsers[type];\n\t\t\t\t\t\tthis._components = components = [];\n\t\t\t\t\t\tfor (var i = 0, l = properties.length; i < l; i++) {\n\t\t\t\t\t\t\tvar value = arg[properties[i]];\n\t\t\t\t\t\t\tif (value == null && !i && type === 'gradient'\n\t\t\t\t\t\t\t\t\t&& 'stops' in arg) {\n\t\t\t\t\t\t\t\tvalue = {\n\t\t\t\t\t\t\t\t\tstops: arg.stops,\n\t\t\t\t\t\t\t\t\tradial: arg.radial\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalue = parsers[i].call(this, value);\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t\tcomponents[i] = value;\n\t\t\t\t\t\t}\n\t\t\t\t\t\talpha = arg.alpha;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (reading && type)\n\t\t\t\t\tread = 1;\n\t\t\t}\n\t\t\tthis._type = type || 'rgb';\n\t\t\tif (!components) {\n\t\t\t\tthis._components = components = [];\n\t\t\t\tvar parsers = componentParsers[this._type];\n\t\t\t\tfor (var i = 0, l = parsers.length; i < l; i++) {\n\t\t\t\t\tvar value = parsers[i].call(this, values && values[i]);\n\t\t\t\t\tif (value != null)\n\t\t\t\t\t\tcomponents[i] = value;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis._components = components;\n\t\t\tthis._properties = types[this._type];\n\t\t\tthis._alpha = alpha;\n\t\t\tif (reading)\n\t\t\t\tthis.__read = read;\n\t\t\treturn this;\n\t\t},\n\n\t\tset: '#initialize',\n\n\t\t_serialize: function(options, dictionary) {\n\t\t\tvar components = this.getComponents();\n\t\t\treturn Base.serialize(\n\t\t\t\t\t/^(gray|rgb)$/.test(this._type)\n\t\t\t\t\t\t? components\n\t\t\t\t\t\t: [this._type].concat(components),\n\t\t\t\t\toptions, true, dictionary);\n\t\t},\n\n\t\t_changed: function() {\n\t\t\tthis._canvasStyle = null;\n\t\t\tif (this._owner) {\n\t\t\t\tif (this._setter) {\n\t\t\t\t\tthis._owner[this._setter](this);\n\t\t\t\t} else {\n\t\t\t\t\tthis._owner._changed(129);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_convert: function(type) {\n\t\t\tvar converter;\n\t\t\treturn this._type === type\n\t\t\t\t\t? this._components.slice()\n\t\t\t\t\t: (converter = converters[this._type + '-' + type])\n\t\t\t\t\t\t? converter.apply(this, this._components)\n\t\t\t\t\t\t: converters['rgb-' + type].apply(this,\n\t\t\t\t\t\t\tconverters[this._type + '-rgb'].apply(this,\n\t\t\t\t\t\t\t\tthis._components));\n\t\t},\n\n\t\tconvert: function(type) {\n\t\t\treturn new Color(type, this._convert(type), this._alpha);\n\t\t},\n\n\t\tgetType: function() {\n\t\t\treturn this._type;\n\t\t},\n\n\t\tsetType: function(type) {\n\t\t\tthis._components = this._convert(type);\n\t\t\tthis._properties = types[type];\n\t\t\tthis._type = type;\n\t\t},\n\n\t\tgetComponents: function() {\n\t\t\tvar components = this._components.slice();\n\t\t\tif (this._alpha != null)\n\t\t\t\tcomponents.push(this._alpha);\n\t\t\treturn components;\n\t\t},\n\n\t\tgetAlpha: function() {\n\t\t\treturn this._alpha != null ? this._alpha : 1;\n\t\t},\n\n\t\tsetAlpha: function(alpha) {\n\t\t\tthis._alpha = alpha == null ? null : Math.min(Math.max(alpha, 0), 1);\n\t\t\tthis._changed();\n\t\t},\n\n\t\thasAlpha: function() {\n\t\t\treturn this._alpha != null;\n\t\t},\n\n\t\tequals: function(color) {\n\t\t\tvar col = Base.isPlainValue(color, true)\n\t\t\t\t\t? Color.read(arguments)\n\t\t\t\t\t: color;\n\t\t\treturn col === this || col && this._class === col._class\n\t\t\t\t\t&& this._type === col._type\n\t\t\t\t\t&& this.getAlpha() === col.getAlpha()\n\t\t\t\t\t&& Base.equals(this._components, col._components)\n\t\t\t\t\t|| false;\n\t\t},\n\n\t\ttoString: function() {\n\t\t\tvar properties = this._properties,\n\t\t\t\tparts = [],\n\t\t\t\tisGradient = this._type === 'gradient',\n\t\t\t\tf = Formatter.instance;\n\t\t\tfor (var i = 0, l = properties.length; i < l; i++) {\n\t\t\t\tvar value = this._components[i];\n\t\t\t\tif (value != null)\n\t\t\t\t\tparts.push(properties[i] + ': '\n\t\t\t\t\t\t\t+ (isGradient ? value : f.number(value)));\n\t\t\t}\n\t\t\tif (this._alpha != null)\n\t\t\t\tparts.push('alpha: ' + f.number(this._alpha));\n\t\t\treturn '{ ' + parts.join(', ') + ' }';\n\t\t},\n\n\t\ttoCSS: function(hex) {\n\t\t\tvar components = this._convert('rgb'),\n\t\t\t\talpha = hex || this._alpha == null ? 1 : this._alpha;\n\t\t\tfunction convert(val) {\n\t\t\t\treturn Math.round((val < 0 ? 0 : val > 1 ? 1 : val) * 255);\n\t\t\t}\n\t\t\tcomponents = [\n\t\t\t\tconvert(components[0]),\n\t\t\t\tconvert(components[1]),\n\t\t\t\tconvert(components[2])\n\t\t\t];\n\t\t\tif (alpha < 1)\n\t\t\t\tcomponents.push(alpha < 0 ? 0 : alpha);\n\t\t\treturn hex\n\t\t\t\t\t? '#' + ((1 << 24) + (components[0] << 16)\n\t\t\t\t\t\t+ (components[1] << 8)\n\t\t\t\t\t\t+ components[2]).toString(16).slice(1)\n\t\t\t\t\t: (components.length == 4 ? 'rgba(' : 'rgb(')\n\t\t\t\t\t\t+ components.join(',') + ')';\n\t\t},\n\n\t\ttoCanvasStyle: function(ctx, matrix) {\n\t\t\tif (this._canvasStyle)\n\t\t\t\treturn this._canvasStyle;\n\t\t\tif (this._type !== 'gradient')\n\t\t\t\treturn this._canvasStyle = this.toCSS();\n\t\t\tvar components = this._components,\n\t\t\t\tgradient = components[0],\n\t\t\t\tstops = gradient._stops,\n\t\t\t\torigin = components[1],\n\t\t\t\tdestination = components[2],\n\t\t\t\thighlight = components[3],\n\t\t\t\tinverse = matrix && matrix.inverted(),\n\t\t\t\tcanvasGradient;\n\t\t\tif (inverse) {\n\t\t\t\torigin = inverse._transformPoint(origin);\n\t\t\t\tdestination = inverse._transformPoint(destination);\n\t\t\t\tif (highlight)\n\t\t\t\t\thighlight = inverse._transformPoint(highlight);\n\t\t\t}\n\t\t\tif (gradient._radial) {\n\t\t\t\tvar radius = destination.getDistance(origin);\n\t\t\t\tif (highlight) {\n\t\t\t\t\tvar vector = highlight.subtract(origin);\n\t\t\t\t\tif (vector.getLength() > radius)\n\t\t\t\t\t\thighlight = origin.add(vector.normalize(radius - 0.1));\n\t\t\t\t}\n\t\t\t\tvar start = highlight || origin;\n\t\t\t\tcanvasGradient = ctx.createRadialGradient(start.x, start.y,\n\t\t\t\t\t\t0, origin.x, origin.y, radius);\n\t\t\t} else {\n\t\t\t\tcanvasGradient = ctx.createLinearGradient(origin.x, origin.y,\n\t\t\t\t\t\tdestination.x, destination.y);\n\t\t\t}\n\t\t\tfor (var i = 0, l = stops.length; i < l; i++) {\n\t\t\t\tvar stop = stops[i],\n\t\t\t\t\toffset = stop._offset;\n\t\t\t\tcanvasGradient.addColorStop(\n\t\t\t\t\t\toffset == null ? i / (l - 1) : offset,\n\t\t\t\t\t\tstop._color.toCanvasStyle());\n\t\t\t}\n\t\t\treturn this._canvasStyle = canvasGradient;\n\t\t},\n\n\t\ttransform: function(matrix) {\n\t\t\tif (this._type === 'gradient') {\n\t\t\t\tvar components = this._components;\n\t\t\t\tfor (var i = 1, l = components.length; i < l; i++) {\n\t\t\t\t\tvar point = components[i];\n\t\t\t\t\tmatrix._transformPoint(point, point, true);\n\t\t\t\t}\n\t\t\t\tthis._changed();\n\t\t\t}\n\t\t},\n\n\t\tstatics: {\n\t\t\t_types: types,\n\n\t\t\trandom: function() {\n\t\t\t\tvar random = Math.random;\n\t\t\t\treturn new Color(random(), random(), random());\n\t\t\t},\n\n\t\t\t_setOwner: function(color, owner, setter) {\n\t\t\t\tif (color) {\n\t\t\t\t\tif (color._owner && owner && color._owner !== owner) {\n\t\t\t\t\t\tcolor = color.clone();\n\t\t\t\t\t}\n\t\t\t\t\tif (!color._owner ^ !owner) {\n\t\t\t\t\t\tcolor._owner = owner || null;\n\t\t\t\t\t\tcolor._setter = setter || null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn color;\n\t\t\t}\n\t\t}\n\t});\n},\nnew function() {\n\tvar operators = {\n\t\tadd: function(a, b) {\n\t\t\treturn a + b;\n\t\t},\n\n\t\tsubtract: function(a, b) {\n\t\t\treturn a - b;\n\t\t},\n\n\t\tmultiply: function(a, b) {\n\t\t\treturn a * b;\n\t\t},\n\n\t\tdivide: function(a, b) {\n\t\t\treturn a / b;\n\t\t}\n\t};\n\n\treturn Base.each(operators, function(operator, name) {\n\t\tthis[name] = function(color) {\n\t\t\tcolor = Color.read(arguments);\n\t\t\tvar type = this._type,\n\t\t\t\tcomponents1 = this._components,\n\t\t\t\tcomponents2 = color._convert(type);\n\t\t\tfor (var i = 0, l = components1.length; i < l; i++)\n\t\t\t\tcomponents2[i] = operator(components1[i], components2[i]);\n\t\t\treturn new Color(type, components2,\n\t\t\t\t\tthis._alpha != null\n\t\t\t\t\t\t\t? operator(this._alpha, color.getAlpha())\n\t\t\t\t\t\t\t: null);\n\t\t};\n\t}, {\n\t});\n});\n\nvar Gradient = Base.extend({\n\t_class: 'Gradient',\n\n\tinitialize: function Gradient(stops, radial) {\n\t\tthis._id = UID.get();\n\t\tif (stops && Base.isPlainObject(stops)) {\n\t\t\tthis.set(stops);\n\t\t\tstops = radial = null;\n\t\t}\n\t\tif (this._stops == null) {\n\t\t\tthis.setStops(stops || ['white', 'black']);\n\t\t}\n\t\tif (this._radial == null) {\n\t\t\tthis.setRadial(typeof radial === 'string' && radial === 'radial'\n\t\t\t\t\t|| radial || false);\n\t\t}\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\treturn dictionary.add(this, function() {\n\t\t\treturn Base.serialize([this._stops, this._radial],\n\t\t\t\t\toptions, true, dictionary);\n\t\t});\n\t},\n\n\t_changed: function() {\n\t\tfor (var i = 0, l = this._owners && this._owners.length; i < l; i++) {\n\t\t\tthis._owners[i]._changed();\n\t\t}\n\t},\n\n\t_addOwner: function(color) {\n\t\tif (!this._owners)\n\t\t\tthis._owners = [];\n\t\tthis._owners.push(color);\n\t},\n\n\t_removeOwner: function(color) {\n\t\tvar index = this._owners ? this._owners.indexOf(color) : -1;\n\t\tif (index != -1) {\n\t\t\tthis._owners.splice(index, 1);\n\t\t\tif (!this._owners.length)\n\t\t\t\tthis._owners = undefined;\n\t\t}\n\t},\n\n\tclone: function() {\n\t\tvar stops = [];\n\t\tfor (var i = 0, l = this._stops.length; i < l; i++) {\n\t\t\tstops[i] = this._stops[i].clone();\n\t\t}\n\t\treturn new Gradient(stops, this._radial);\n\t},\n\n\tgetStops: function() {\n\t\treturn this._stops;\n\t},\n\n\tsetStops: function(stops) {\n\t\tif (stops.length < 2) {\n\t\t\tthrow new Error(\n\t\t\t\t\t'Gradient stop list needs to contain at least two stops.');\n\t\t}\n\t\tvar _stops = this._stops;\n\t\tif (_stops) {\n\t\t\tfor (var i = 0, l = _stops.length; i < l; i++)\n\t\t\t\t_stops[i]._owner = undefined;\n\t\t}\n\t\t_stops = this._stops = GradientStop.readList(stops, 0, { clone: true });\n\t\tfor (var i = 0, l = _stops.length; i < l; i++)\n\t\t\t_stops[i]._owner = this;\n\t\tthis._changed();\n\t},\n\n\tgetRadial: function() {\n\t\treturn this._radial;\n\t},\n\n\tsetRadial: function(radial) {\n\t\tthis._radial = radial;\n\t\tthis._changed();\n\t},\n\n\tequals: function(gradient) {\n\t\tif (gradient === this)\n\t\t\treturn true;\n\t\tif (gradient && this._class === gradient._class) {\n\t\t\tvar stops1 = this._stops,\n\t\t\t\tstops2 = gradient._stops,\n\t\t\t\tlength = stops1.length;\n\t\t\tif (length === stops2.length) {\n\t\t\t\tfor (var i = 0; i < length; i++) {\n\t\t\t\t\tif (!stops1[i].equals(stops2[i]))\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n});\n\nvar GradientStop = Base.extend({\n\t_class: 'GradientStop',\n\n\tinitialize: function GradientStop(arg0, arg1) {\n\t\tvar color = arg0,\n\t\t\toffset = arg1;\n\t\tif (typeof arg0 === 'object' && arg1 === undefined) {\n\t\t\tif (Array.isArray(arg0) && typeof arg0[0] !== 'number') {\n\t\t\t\tcolor = arg0[0];\n\t\t\t\toffset = arg0[1];\n\t\t\t} else if ('color' in arg0 || 'offset' in arg0\n\t\t\t\t\t|| 'rampPoint' in arg0) {\n\t\t\t\tcolor = arg0.color;\n\t\t\t\toffset = arg0.offset || arg0.rampPoint || 0;\n\t\t\t}\n\t\t}\n\t\tthis.setColor(color);\n\t\tthis.setOffset(offset);\n\t},\n\n\tclone: function() {\n\t\treturn new GradientStop(this._color.clone(), this._offset);\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\tvar color = this._color,\n\t\t\toffset = this._offset;\n\t\treturn Base.serialize(offset == null ? [color] : [color, offset],\n\t\t\t\toptions, true, dictionary);\n\t},\n\n\t_changed: function() {\n\t\tif (this._owner)\n\t\t\tthis._owner._changed(129);\n\t},\n\n\tgetOffset: function() {\n\t\treturn this._offset;\n\t},\n\n\tsetOffset: function(offset) {\n\t\tthis._offset = offset;\n\t\tthis._changed();\n\t},\n\n\tgetRampPoint: '#getOffset',\n\tsetRampPoint: '#setOffset',\n\n\tgetColor: function() {\n\t\treturn this._color;\n\t},\n\n\tsetColor: function() {\n\t\tColor._setOwner(this._color, null);\n\t\tthis._color = Color._setOwner(Color.read(arguments, 0), this,\n\t\t\t\t'setColor');\n\t\tthis._changed();\n\t},\n\n\tequals: function(stop) {\n\t\treturn stop === this || stop && this._class === stop._class\n\t\t\t\t&& this._color.equals(stop._color)\n\t\t\t\t&& this._offset == stop._offset\n\t\t\t\t|| false;\n\t}\n});\n\nvar Style = Base.extend(new function() {\n\tvar itemDefaults = {\n\t\tfillColor: null,\n\t\tfillRule: 'nonzero',\n\t\tstrokeColor: null,\n\t\tstrokeWidth: 1,\n\t\tstrokeCap: 'butt',\n\t\tstrokeJoin: 'miter',\n\t\tstrokeScaling: true,\n\t\tmiterLimit: 10,\n\t\tdashOffset: 0,\n\t\tdashArray: [],\n\t\tshadowColor: null,\n\t\tshadowBlur: 0,\n\t\tshadowOffset: new Point(),\n\t\tselectedColor: null\n\t},\n\tgroupDefaults = Base.set({}, itemDefaults, {\n\t\tfontFamily: 'sans-serif',\n\t\tfontWeight: 'normal',\n\t\tfontSize: 12,\n\t\tleading: null,\n\t\tjustification: 'left'\n\t}),\n\ttextDefaults = Base.set({}, groupDefaults, {\n\t\tfillColor: new Color()\n\t}),\n\tflags = {\n\t\tstrokeWidth: 193,\n\t\tstrokeCap: 193,\n\t\tstrokeJoin: 193,\n\t\tstrokeScaling: 201,\n\t\tmiterLimit: 193,\n\t\tfontFamily: 9,\n\t\tfontWeight: 9,\n\t\tfontSize: 9,\n\t\tfont: 9,\n\t\tleading: 9,\n\t\tjustification: 9\n\t},\n\titem = {\n\t\tbeans: true\n\t},\n\tfields = {\n\t\t_class: 'Style',\n\t\tbeans: true,\n\n\t\tinitialize: function Style(style, _owner, _project) {\n\t\t\tthis._values = {};\n\t\t\tthis._owner = _owner;\n\t\t\tthis._project = _owner && _owner._project || _project\n\t\t\t\t\t|| paper.project;\n\t\t\tthis._defaults = !_owner || _owner instanceof Group ? groupDefaults\n\t\t\t\t\t: _owner instanceof TextItem ? textDefaults\n\t\t\t\t\t: itemDefaults;\n\t\t\tif (style)\n\t\t\t\tthis.set(style);\n\t\t}\n\t};\n\n\tBase.each(groupDefaults, function(value, key) {\n\t\tvar isColor = /Color$/.test(key),\n\t\t\tisPoint = key === 'shadowOffset',\n\t\t\tpart = Base.capitalize(key),\n\t\t\tflag = flags[key],\n\t\t\tset = 'set' + part,\n\t\t\tget = 'get' + part;\n\n\t\tfields[set] = function(value) {\n\t\t\tvar owner = this._owner,\n\t\t\t\tchildren = owner && owner._children,\n\t\t\t\tapplyToChildren = children && children.length > 0\n\t\t\t\t\t&& !(owner instanceof CompoundPath);\n\t\t\tif (applyToChildren) {\n\t\t\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\t\t\tchildren[i]._style[set](value);\n\t\t\t}\n\t\t\tif ((key === 'selectedColor' || !applyToChildren)\n\t\t\t\t\t&& key in this._defaults) {\n\t\t\t\tvar old = this._values[key];\n\t\t\t\tif (old !== value) {\n\t\t\t\t\tif (isColor) {\n\t\t\t\t\t\tif (old) {\n\t\t\t\t\t\t\tColor._setOwner(old, null);\n\t\t\t\t\t\t\told._canvasStyle = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (value && value.constructor === Color) {\n\t\t\t\t\t\t\tvalue = Color._setOwner(value, owner,\n\t\t\t\t\t\t\t\t\tapplyToChildren && set);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tthis._values[key] = value;\n\t\t\t\t\tif (owner)\n\t\t\t\t\t\towner._changed(flag || 129);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tfields[get] = function(_dontMerge) {\n\t\t\tvar owner = this._owner,\n\t\t\t\tchildren = owner && owner._children,\n\t\t\t\tapplyToChildren = children && children.length > 0\n\t\t\t\t\t&& !(owner instanceof CompoundPath),\n\t\t\t\tvalue;\n\t\t\tif (applyToChildren && !_dontMerge) {\n\t\t\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\t\t\tvar childValue = children[i]._style[get]();\n\t\t\t\t\tif (!i) {\n\t\t\t\t\t\tvalue = childValue;\n\t\t\t\t\t} else if (!Base.equals(value, childValue)) {\n\t\t\t\t\t\treturn undefined;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (key in this._defaults) {\n\t\t\t\tvar value = this._values[key];\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tvalue = this._defaults[key];\n\t\t\t\t\tif (value && value.clone) {\n\t\t\t\t\t\tvalue = value.clone();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvar ctor = isColor ? Color : isPoint ? Point : null;\n\t\t\t\t\tif (ctor && !(value && value.constructor === ctor)) {\n\t\t\t\t\t\tthis._values[key] = value = ctor.read([value], 0,\n\t\t\t\t\t\t\t\t{ readNull: true, clone: true });\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (value && isColor) {\n\t\t\t\tvalue = Color._setOwner(value, owner, applyToChildren && set);\n\t\t\t}\n\t\t\treturn value;\n\t\t};\n\n\t\titem[get] = function(_dontMerge) {\n\t\t\treturn this._style[get](_dontMerge);\n\t\t};\n\n\t\titem[set] = function(value) {\n\t\t\tthis._style[set](value);\n\t\t};\n\t});\n\n\tBase.each({\n\t\tFont: 'FontFamily',\n\t\tWindingRule: 'FillRule'\n\t}, function(value, key) {\n\t\tvar get = 'get' + key,\n\t\t\tset = 'set' + key;\n\t\tfields[get] = item[get] = '#get' + value;\n\t\tfields[set] = item[set] = '#set' + value;\n\t});\n\n\tItem.inject(item);\n\treturn fields;\n}, {\n\tset: function(style) {\n\t\tvar isStyle = style instanceof Style,\n\t\t\tvalues = isStyle ? style._values : style;\n\t\tif (values) {\n\t\t\tfor (var key in values) {\n\t\t\t\tif (key in this._defaults) {\n\t\t\t\t\tvar value = values[key];\n\t\t\t\t\tthis[key] = value && isStyle && value.clone\n\t\t\t\t\t\t\t? value.clone() : value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tequals: function(style) {\n\t\tfunction compare(style1, style2, secondary) {\n\t\t\tvar values1 = style1._values,\n\t\t\t\tvalues2 = style2._values,\n\t\t\t\tdefaults2 = style2._defaults;\n\t\t\tfor (var key in values1) {\n\t\t\t\tvar value1 = values1[key],\n\t\t\t\t\tvalue2 = values2[key];\n\t\t\t\tif (!(secondary && key in values2) && !Base.equals(value1,\n\t\t\t\t\t\tvalue2 === undefined ? defaults2[key] : value2))\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\treturn style === this || style && this._class === style._class\n\t\t\t\t&& compare(this, style)\n\t\t\t\t&& compare(style, this, true)\n\t\t\t\t|| false;\n\t},\n\n\t_dispose: function() {\n\t\tvar color;\n\t\tcolor = this.getFillColor();\n\t\tif (color) color._canvasStyle = null;\n\t\tcolor = this.getStrokeColor();\n\t\tif (color) color._canvasStyle = null;\n\t\tcolor = this.getShadowColor();\n\t\tif (color) color._canvasStyle = null;\n\t},\n\n\thasFill: function() {\n\t\tvar color = this.getFillColor();\n\t\treturn !!color && color.alpha > 0;\n\t},\n\n\thasStroke: function() {\n\t\tvar color = this.getStrokeColor();\n\t\treturn !!color && color.alpha > 0 && this.getStrokeWidth() > 0;\n\t},\n\n\thasShadow: function() {\n\t\tvar color = this.getShadowColor();\n\t\treturn !!color && color.alpha > 0 && (this.getShadowBlur() > 0\n\t\t\t\t|| !this.getShadowOffset().isZero());\n\t},\n\n\tgetView: function() {\n\t\treturn this._project._view;\n\t},\n\n\tgetFontStyle: function() {\n\t\tvar fontSize = this.getFontSize();\n\t\treturn this.getFontWeight()\n\t\t\t\t+ ' ' + fontSize + (/[a-z]/i.test(fontSize + '') ? ' ' : 'px ')\n\t\t\t\t+ this.getFontFamily();\n\t},\n\n\tgetFont: '#getFontFamily',\n\tsetFont: '#setFontFamily',\n\n\tgetLeading: function getLeading() {\n\t\tvar leading = getLeading.base.call(this),\n\t\t\tfontSize = this.getFontSize();\n\t\tif (/pt|em|%|px/.test(fontSize))\n\t\t\tfontSize = this.getView().getPixelSize(fontSize);\n\t\treturn leading != null ? leading : fontSize * 1.2;\n\t}\n\n});\n\nvar DomElement = new function() {\n\tfunction handlePrefix(el, name, set, value) {\n\t\tvar prefixes = ['', 'webkit', 'moz', 'Moz', 'ms', 'o'],\n\t\t\tsuffix = name[0].toUpperCase() + name.substring(1);\n\t\tfor (var i = 0; i < 6; i++) {\n\t\t\tvar prefix = prefixes[i],\n\t\t\t\tkey = prefix ? prefix + suffix : name;\n\t\t\tif (key in el) {\n\t\t\t\tif (set) {\n\t\t\t\t\tel[key] = value;\n\t\t\t\t} else {\n\t\t\t\t\treturn el[key];\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn {\n\t\tgetStyles: function(el) {\n\t\t\tvar doc = el && el.nodeType !== 9 ? el.ownerDocument : el,\n\t\t\t\tview = doc && doc.defaultView;\n\t\t\treturn view && view.getComputedStyle(el, '');\n\t\t},\n\n\t\tgetBounds: function(el, viewport) {\n\t\t\tvar doc = el.ownerDocument,\n\t\t\t\tbody = doc.body,\n\t\t\t\thtml = doc.documentElement,\n\t\t\t\trect;\n\t\t\ttry {\n\t\t\t\trect = el.getBoundingClientRect();\n\t\t\t} catch (e) {\n\t\t\t\trect = { left: 0, top: 0, width: 0, height: 0 };\n\t\t\t}\n\t\t\tvar x = rect.left - (html.clientLeft || body.clientLeft || 0),\n\t\t\t\ty = rect.top - (html.clientTop || body.clientTop || 0);\n\t\t\tif (!viewport) {\n\t\t\t\tvar view = doc.defaultView;\n\t\t\t\tx += view.pageXOffset || html.scrollLeft || body.scrollLeft;\n\t\t\t\ty += view.pageYOffset || html.scrollTop || body.scrollTop;\n\t\t\t}\n\t\t\treturn new Rectangle(x, y, rect.width, rect.height);\n\t\t},\n\n\t\tgetViewportBounds: function(el) {\n\t\t\tvar doc = el.ownerDocument,\n\t\t\t\tview = doc.defaultView,\n\t\t\t\thtml = doc.documentElement;\n\t\t\treturn new Rectangle(0, 0,\n\t\t\t\tview.innerWidth || html.clientWidth,\n\t\t\t\tview.innerHeight || html.clientHeight\n\t\t\t);\n\t\t},\n\n\t\tgetOffset: function(el, viewport) {\n\t\t\treturn DomElement.getBounds(el, viewport).getPoint();\n\t\t},\n\n\t\tgetSize: function(el) {\n\t\t\treturn DomElement.getBounds(el, true).getSize();\n\t\t},\n\n\t\tisInvisible: function(el) {\n\t\t\treturn DomElement.getSize(el).equals(new Size(0, 0));\n\t\t},\n\n\t\tisInView: function(el) {\n\t\t\treturn !DomElement.isInvisible(el)\n\t\t\t\t\t&& DomElement.getViewportBounds(el).intersects(\n\t\t\t\t\t\tDomElement.getBounds(el, true));\n\t\t},\n\n\t\tisInserted: function(el) {\n\t\t\treturn document.body.contains(el);\n\t\t},\n\n\t\tgetPrefixed: function(el, name) {\n\t\t\treturn el && handlePrefix(el, name);\n\t\t},\n\n\t\tsetPrefixed: function(el, name, value) {\n\t\t\tif (typeof name === 'object') {\n\t\t\t\tfor (var key in name)\n\t\t\t\t\thandlePrefix(el, key, true, name[key]);\n\t\t\t} else {\n\t\t\t\thandlePrefix(el, name, true, value);\n\t\t\t}\n\t\t}\n\t};\n};\n\nvar DomEvent = {\n\tadd: function(el, events) {\n\t\tif (el) {\n\t\t\tfor (var type in events) {\n\t\t\t\tvar func = events[type],\n\t\t\t\t\tparts = type.split(/[\\s,]+/g);\n\t\t\t\tfor (var i = 0, l = parts.length; i < l; i++) {\n\t\t\t\t\tvar name = parts[i];\n\t\t\t\t\tvar options = (\n\t\t\t\t\t\tel === document\n\t\t\t\t\t\t&& (name === 'touchstart' || name === 'touchmove')\n\t\t\t\t\t) ? { passive: false } : false;\n\t\t\t\t\tel.addEventListener(name, func, options);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tremove: function(el, events) {\n\t\tif (el) {\n\t\t\tfor (var type in events) {\n\t\t\t\tvar func = events[type],\n\t\t\t\t\tparts = type.split(/[\\s,]+/g);\n\t\t\t\tfor (var i = 0, l = parts.length; i < l; i++)\n\t\t\t\t\tel.removeEventListener(parts[i], func, false);\n\t\t\t}\n\t\t}\n\t},\n\n\tgetPoint: function(event) {\n\t\tvar pos = event.targetTouches\n\t\t\t\t? event.targetTouches.length\n\t\t\t\t\t? event.targetTouches[0]\n\t\t\t\t\t: event.changedTouches[0]\n\t\t\t\t: event;\n\t\treturn new Point(\n\t\t\tpos.pageX || pos.clientX + document.documentElement.scrollLeft,\n\t\t\tpos.pageY || pos.clientY + document.documentElement.scrollTop\n\t\t);\n\t},\n\n\tgetTarget: function(event) {\n\t\treturn event.target || event.srcElement;\n\t},\n\n\tgetRelatedTarget: function(event) {\n\t\treturn event.relatedTarget || event.toElement;\n\t},\n\n\tgetOffset: function(event, target) {\n\t\treturn DomEvent.getPoint(event).subtract(DomElement.getOffset(\n\t\t\t\ttarget || DomEvent.getTarget(event)));\n\t}\n};\n\nDomEvent.requestAnimationFrame = new function() {\n\tvar nativeRequest = DomElement.getPrefixed(window, 'requestAnimationFrame'),\n\t\trequested = false,\n\t\tcallbacks = [],\n\t\ttimer;\n\n\tfunction handleCallbacks() {\n\t\tvar functions = callbacks;\n\t\tcallbacks = [];\n\t\tfor (var i = 0, l = functions.length; i < l; i++)\n\t\t\tfunctions[i]();\n\t\trequested = nativeRequest && callbacks.length;\n\t\tif (requested)\n\t\t\tnativeRequest(handleCallbacks);\n\t}\n\n\treturn function(callback) {\n\t\tcallbacks.push(callback);\n\t\tif (nativeRequest) {\n\t\t\tif (!requested) {\n\t\t\t\tnativeRequest(handleCallbacks);\n\t\t\t\trequested = true;\n\t\t\t}\n\t\t} else if (!timer) {\n\t\t\ttimer = setInterval(handleCallbacks, 1000 / 60);\n\t\t}\n\t};\n};\n\nvar View = Base.extend(Emitter, {\n\t_class: 'View',\n\n\tinitialize: function View(project, element) {\n\n\t\tfunction getSize(name) {\n\t\t\treturn element[name] || parseInt(element.getAttribute(name), 10);\n\t\t}\n\n\t\tfunction getCanvasSize() {\n\t\t\tvar size = DomElement.getSize(element);\n\t\t\treturn size.isNaN() || size.isZero()\n\t\t\t\t\t? new Size(getSize('width'), getSize('height'))\n\t\t\t\t\t: size;\n\t\t}\n\n\t\tvar size;\n\t\tif (window && element) {\n\t\t\tthis._id = element.getAttribute('id');\n\t\t\tif (this._id == null)\n\t\t\t\telement.setAttribute('id', this._id = 'paper-view-' + View._id++);\n\t\t\tDomEvent.add(element, this._viewEvents);\n\t\t\tvar none = 'none';\n\t\t\tDomElement.setPrefixed(element.style, {\n\t\t\t\tuserDrag: none,\n\t\t\t\tuserSelect: none,\n\t\t\t\ttouchCallout: none,\n\t\t\t\tcontentZooming: none,\n\t\t\t\ttapHighlightColor: 'rgba(0,0,0,0)'\n\t\t\t});\n\n\t\t\tif (PaperScope.hasAttribute(element, 'resize')) {\n\t\t\t\tvar that = this;\n\t\t\t\tDomEvent.add(window, this._windowEvents = {\n\t\t\t\t\tresize: function() {\n\t\t\t\t\t\tthat.setViewSize(getCanvasSize());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tsize = getCanvasSize();\n\n\t\t\tif (PaperScope.hasAttribute(element, 'stats')\n\t\t\t\t\t&& typeof Stats !== 'undefined') {\n\t\t\t\tthis._stats = new Stats();\n\t\t\t\tvar stats = this._stats.domElement,\n\t\t\t\t\tstyle = stats.style,\n\t\t\t\t\toffset = DomElement.getOffset(element);\n\t\t\t\tstyle.position = 'absolute';\n\t\t\t\tstyle.left = offset.x + 'px';\n\t\t\t\tstyle.top = offset.y + 'px';\n\t\t\t\tdocument.body.appendChild(stats);\n\t\t\t}\n\t\t} else {\n\t\t\tsize = new Size(element);\n\t\t\telement = null;\n\t\t}\n\t\tthis._project = project;\n\t\tthis._scope = project._scope;\n\t\tthis._element = element;\n\t\tif (!this._pixelRatio)\n\t\t\tthis._pixelRatio = window && window.devicePixelRatio || 1;\n\t\tthis._setElementSize(size.width, size.height);\n\t\tthis._viewSize = size;\n\t\tView._views.push(this);\n\t\tView._viewsById[this._id] = this;\n\t\t(this._matrix = new Matrix())._owner = this;\n\t\tif (!View._focused)\n\t\t\tView._focused = this;\n\t\tthis._frameItems = {};\n\t\tthis._frameItemCount = 0;\n\t\tthis._itemEvents = { native: {}, virtual: {} };\n\t\tthis._autoUpdate = !paper.agent.node;\n\t\tthis._needsUpdate = false;\n\t},\n\n\tremove: function() {\n\t\tif (!this._project)\n\t\t\treturn false;\n\t\tif (View._focused === this)\n\t\t\tView._focused = null;\n\t\tView._views.splice(View._views.indexOf(this), 1);\n\t\tdelete View._viewsById[this._id];\n\t\tvar project = this._project;\n\t\tif (project._view === this)\n\t\t\tproject._view = null;\n\t\tDomEvent.remove(this._element, this._viewEvents);\n\t\tDomEvent.remove(window, this._windowEvents);\n\t\tthis._element = this._project = null;\n\t\tthis.off('frame');\n\t\tthis._animate = false;\n\t\tthis._frameItems = {};\n\t\treturn true;\n\t},\n\n\t_events: Base.each(\n\t\tItem._itemHandlers.concat(['onResize', 'onKeyDown', 'onKeyUp']),\n\t\tfunction(name) {\n\t\t\tthis[name] = {};\n\t\t}, {\n\t\t\tonFrame: {\n\t\t\t\tinstall: function() {\n\t\t\t\t\tthis.play();\n\t\t\t\t},\n\n\t\t\t\tuninstall: function() {\n\t\t\t\t\tthis.pause();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t),\n\n\t_animate: false,\n\t_time: 0,\n\t_count: 0,\n\n\tgetAutoUpdate: function() {\n\t\treturn this._autoUpdate;\n\t},\n\n\tsetAutoUpdate: function(autoUpdate) {\n\t\tthis._autoUpdate = autoUpdate;\n\t\tif (autoUpdate)\n\t\t\tthis.requestUpdate();\n\t},\n\n\tupdate: function() {\n\t},\n\n\tdraw: function() {\n\t\tthis.update();\n\t},\n\n\trequestUpdate: function() {\n\t\tif (!this._requested) {\n\t\t\tvar that = this;\n\t\t\tDomEvent.requestAnimationFrame(function() {\n\t\t\t\tthat._requested = false;\n\t\t\t\tif (that._animate) {\n\t\t\t\t\tthat.requestUpdate();\n\t\t\t\t\tvar element = that._element;\n\t\t\t\t\tif ((!DomElement.getPrefixed(document, 'hidden')\n\t\t\t\t\t\t\t|| PaperScope.getAttribute(element, 'keepalive')\n\t\t\t\t\t\t\t\t=== 'true') && DomElement.isInView(element)) {\n\t\t\t\t\t\tthat._handleFrame();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (that._autoUpdate)\n\t\t\t\t\tthat.update();\n\t\t\t});\n\t\t\tthis._requested = true;\n\t\t}\n\t},\n\n\tplay: function() {\n\t\tthis._animate = true;\n\t\tthis.requestUpdate();\n\t},\n\n\tpause: function() {\n\t\tthis._animate = false;\n\t},\n\n\t_handleFrame: function() {\n\t\tpaper = this._scope;\n\t\tvar now = Date.now() / 1000,\n\t\t\tdelta = this._last ? now - this._last : 0;\n\t\tthis._last = now;\n\t\tthis.emit('frame', new Base({\n\t\t\tdelta: delta,\n\t\t\ttime: this._time += delta,\n\t\t\tcount: this._count++\n\t\t}));\n\t\tif (this._stats)\n\t\t\tthis._stats.update();\n\t},\n\n\t_animateItem: function(item, animate) {\n\t\tvar items = this._frameItems;\n\t\tif (animate) {\n\t\t\titems[item._id] = {\n\t\t\t\titem: item,\n\t\t\t\ttime: 0,\n\t\t\t\tcount: 0\n\t\t\t};\n\t\t\tif (++this._frameItemCount === 1)\n\t\t\t\tthis.on('frame', this._handleFrameItems);\n\t\t} else {\n\t\t\tdelete items[item._id];\n\t\t\tif (--this._frameItemCount === 0) {\n\t\t\t\tthis.off('frame', this._handleFrameItems);\n\t\t\t}\n\t\t}\n\t},\n\n\t_handleFrameItems: function(event) {\n\t\tfor (var i in this._frameItems) {\n\t\t\tvar entry = this._frameItems[i];\n\t\t\tentry.item.emit('frame', new Base(event, {\n\t\t\t\ttime: entry.time += event.delta,\n\t\t\t\tcount: entry.count++\n\t\t\t}));\n\t\t}\n\t},\n\n\t_changed: function() {\n\t\tthis._project._changed(4097);\n\t\tthis._bounds = this._decomposed = undefined;\n\t},\n\n\tgetElement: function() {\n\t\treturn this._element;\n\t},\n\n\tgetPixelRatio: function() {\n\t\treturn this._pixelRatio;\n\t},\n\n\tgetResolution: function() {\n\t\treturn this._pixelRatio * 72;\n\t},\n\n\tgetViewSize: function() {\n\t\tvar size = this._viewSize;\n\t\treturn new LinkedSize(size.width, size.height, this, 'setViewSize');\n\t},\n\n\tsetViewSize: function() {\n\t\tvar size = Size.read(arguments),\n\t\t\tdelta = size.subtract(this._viewSize);\n\t\tif (delta.isZero())\n\t\t\treturn;\n\t\tthis._setElementSize(size.width, size.height);\n\t\tthis._viewSize.set(size);\n\t\tthis._changed();\n\t\tthis.emit('resize', { size: size, delta: delta });\n\t\tif (this._autoUpdate) {\n\t\t\tthis.update();\n\t\t}\n\t},\n\n\t_setElementSize: function(width, height) {\n\t\tvar element = this._element;\n\t\tif (element) {\n\t\t\tif (element.width !== width)\n\t\t\t\telement.width = width;\n\t\t\tif (element.height !== height)\n\t\t\t\telement.height = height;\n\t\t}\n\t},\n\n\tgetBounds: function() {\n\t\tif (!this._bounds)\n\t\t\tthis._bounds = this._matrix.inverted()._transformBounds(\n\t\t\t\t\tnew Rectangle(new Point(), this._viewSize));\n\t\treturn this._bounds;\n\t},\n\n\tgetSize: function() {\n\t\treturn this.getBounds().getSize();\n\t},\n\n\tisVisible: function() {\n\t\treturn DomElement.isInView(this._element);\n\t},\n\n\tisInserted: function() {\n\t\treturn DomElement.isInserted(this._element);\n\t},\n\n\tgetPixelSize: function(size) {\n\t\tvar element = this._element,\n\t\t\tpixels;\n\t\tif (element) {\n\t\t\tvar parent = element.parentNode,\n\t\t\t\ttemp = document.createElement('div');\n\t\t\ttemp.style.fontSize = size;\n\t\t\tparent.appendChild(temp);\n\t\t\tpixels = parseFloat(DomElement.getStyles(temp).fontSize);\n\t\t\tparent.removeChild(temp);\n\t\t} else {\n\t\t\tpixels = parseFloat(pixels);\n\t\t}\n\t\treturn pixels;\n\t},\n\n\tgetTextWidth: function(font, lines) {\n\t\treturn 0;\n\t}\n}, Base.each(['rotate', 'scale', 'shear', 'skew'], function(key) {\n\tvar rotate = key === 'rotate';\n\tthis[key] = function() {\n\t\tvar args = arguments,\n\t\t\tvalue = (rotate ? Base : Point).read(args),\n\t\t\tcenter = Point.read(args, 0, { readNull: true });\n\t\treturn this.transform(new Matrix()[key](value,\n\t\t\t\tcenter || this.getCenter(true)));\n\t};\n}, {\n\t_decompose: function() {\n\t\treturn this._decomposed || (this._decomposed = this._matrix.decompose());\n\t},\n\n\ttranslate: function() {\n\t\tvar mx = new Matrix();\n\t\treturn this.transform(mx.translate.apply(mx, arguments));\n\t},\n\n\tgetCenter: function() {\n\t\treturn this.getBounds().getCenter();\n\t},\n\n\tsetCenter: function() {\n\t\tvar center = Point.read(arguments);\n\t\tthis.translate(this.getCenter().subtract(center));\n\t},\n\n\tgetZoom: function() {\n\t\tvar scaling = this._decompose().scaling;\n\t\treturn (scaling.x + scaling.y) / 2;\n\t},\n\n\tsetZoom: function(zoom) {\n\t\tthis.transform(new Matrix().scale(zoom / this.getZoom(),\n\t\t\tthis.getCenter()));\n\t},\n\n\tgetRotation: function() {\n\t\treturn this._decompose().rotation;\n\t},\n\n\tsetRotation: function(rotation) {\n\t\tvar current = this.getRotation();\n\t\tif (current != null && rotation != null) {\n\t\t\tthis.rotate(rotation - current);\n\t\t}\n\t},\n\n\tgetScaling: function() {\n\t\tvar scaling = this._decompose().scaling;\n\t\treturn new LinkedPoint(scaling.x, scaling.y, this, 'setScaling');\n\t},\n\n\tsetScaling: function() {\n\t\tvar current = this.getScaling(),\n\t\t\tscaling = Point.read(arguments, 0, { clone: true, readNull: true });\n\t\tif (current && scaling) {\n\t\t\tthis.scale(scaling.x / current.x, scaling.y / current.y);\n\t\t}\n\t},\n\n\tgetMatrix: function() {\n\t\treturn this._matrix;\n\t},\n\n\tsetMatrix: function() {\n\t\tvar matrix = this._matrix;\n\t\tmatrix.set.apply(matrix, arguments);\n\t},\n\n\ttransform: function(matrix) {\n\t\tthis._matrix.append(matrix);\n\t},\n\n\tscrollBy: function() {\n\t\tthis.translate(Point.read(arguments).negate());\n\t}\n}), {\n\n\tprojectToView: function() {\n\t\treturn this._matrix._transformPoint(Point.read(arguments));\n\t},\n\n\tviewToProject: function() {\n\t\treturn this._matrix._inverseTransform(Point.read(arguments));\n\t},\n\n\tgetEventPoint: function(event) {\n\t\treturn this.viewToProject(DomEvent.getOffset(event, this._element));\n\t},\n\n}, {\n\tstatics: {\n\t\t_views: [],\n\t\t_viewsById: {},\n\t\t_id: 0,\n\n\t\tcreate: function(project, element) {\n\t\t\tif (document && typeof element === 'string')\n\t\t\t\telement = document.getElementById(element);\n\t\t\tvar ctor = window ? CanvasView : View;\n\t\t\treturn new ctor(project, element);\n\t\t}\n\t}\n},\nnew function() {\n\tif (!window)\n\t\treturn;\n\tvar prevFocus,\n\t\ttempFocus,\n\t\tdragging = false,\n\t\tmouseDown = false;\n\n\tfunction getView(event) {\n\t\tvar target = DomEvent.getTarget(event);\n\t\treturn target.getAttribute && View._viewsById[\n\t\t\t\ttarget.getAttribute('id')];\n\t}\n\n\tfunction updateFocus() {\n\t\tvar view = View._focused;\n\t\tif (!view || !view.isVisible()) {\n\t\t\tfor (var i = 0, l = View._views.length; i < l; i++) {\n\t\t\t\tif ((view = View._views[i]).isVisible()) {\n\t\t\t\t\tView._focused = tempFocus = view;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction handleMouseMove(view, event, point) {\n\t\tview._handleMouseEvent('mousemove', event, point);\n\t}\n\n\tvar navigator = window.navigator,\n\t\tmousedown, mousemove, mouseup;\n\tif (navigator.pointerEnabled || navigator.msPointerEnabled) {\n\t\tmousedown = 'pointerdown MSPointerDown';\n\t\tmousemove = 'pointermove MSPointerMove';\n\t\tmouseup = 'pointerup pointercancel MSPointerUp MSPointerCancel';\n\t} else {\n\t\tmousedown = 'touchstart';\n\t\tmousemove = 'touchmove';\n\t\tmouseup = 'touchend touchcancel';\n\t\tif (!('ontouchstart' in window && navigator.userAgent.match(\n\t\t\t\t/mobile|tablet|ip(ad|hone|od)|android|silk/i))) {\n\t\t\tmousedown += ' mousedown';\n\t\t\tmousemove += ' mousemove';\n\t\t\tmouseup += ' mouseup';\n\t\t}\n\t}\n\n\tvar viewEvents = {},\n\t\tdocEvents = {\n\t\t\tmouseout: function(event) {\n\t\t\t\tvar view = View._focused,\n\t\t\t\t\ttarget = DomEvent.getRelatedTarget(event);\n\t\t\t\tif (view && (!target || target.nodeName === 'HTML')) {\n\t\t\t\t\tvar offset = DomEvent.getOffset(event, view._element),\n\t\t\t\t\t\tx = offset.x,\n\t\t\t\t\t\tabs = Math.abs,\n\t\t\t\t\t\tax = abs(x),\n\t\t\t\t\t\tmax = 1 << 25,\n\t\t\t\t\t\tdiff = ax - max;\n\t\t\t\t\toffset.x = abs(diff) < ax ? diff * (x < 0 ? -1 : 1) : x;\n\t\t\t\t\thandleMouseMove(view, event, view.viewToProject(offset));\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tscroll: updateFocus\n\t\t};\n\n\tviewEvents[mousedown] = function(event) {\n\t\tvar view = View._focused = getView(event);\n\t\tif (!dragging) {\n\t\t\tdragging = true;\n\t\t\tview._handleMouseEvent('mousedown', event);\n\t\t}\n\t};\n\n\tdocEvents[mousemove] = function(event) {\n\t\tvar view = View._focused;\n\t\tif (!mouseDown) {\n\t\t\tvar target = getView(event);\n\t\t\tif (target) {\n\t\t\t\tif (view !== target) {\n\t\t\t\t\tif (view)\n\t\t\t\t\t\thandleMouseMove(view, event);\n\t\t\t\t\tif (!prevFocus)\n\t\t\t\t\t\tprevFocus = view;\n\t\t\t\t\tview = View._focused = tempFocus = target;\n\t\t\t\t}\n\t\t\t} else if (tempFocus && tempFocus === view) {\n\t\t\t\tif (prevFocus && !prevFocus.isInserted())\n\t\t\t\t\tprevFocus = null;\n\t\t\t\tview = View._focused = prevFocus;\n\t\t\t\tprevFocus = null;\n\t\t\t\tupdateFocus();\n\t\t\t}\n\t\t}\n\t\tif (view)\n\t\t\thandleMouseMove(view, event);\n\t};\n\n\tdocEvents[mousedown] = function() {\n\t\tmouseDown = true;\n\t};\n\n\tdocEvents[mouseup] = function(event) {\n\t\tvar view = View._focused;\n\t\tif (view && dragging)\n\t\t\tview._handleMouseEvent('mouseup', event);\n\t\tmouseDown = dragging = false;\n\t};\n\n\tDomEvent.add(document, docEvents);\n\n\tDomEvent.add(window, {\n\t\tload: updateFocus\n\t});\n\n\tvar called = false,\n\t\tprevented = false,\n\t\tfallbacks = {\n\t\t\tdoubleclick: 'click',\n\t\t\tmousedrag: 'mousemove'\n\t\t},\n\t\twasInView = false,\n\t\toverView,\n\t\tdownPoint,\n\t\tlastPoint,\n\t\tdownItem,\n\t\toverItem,\n\t\tdragItem,\n\t\tclickItem,\n\t\tclickTime,\n\t\tdblClick;\n\n\tfunction emitMouseEvent(obj, target, type, event, point, prevPoint,\n\t\t\tstopItem) {\n\t\tvar stopped = false,\n\t\t\tmouseEvent;\n\n\t\tfunction emit(obj, type) {\n\t\t\tif (obj.responds(type)) {\n\t\t\t\tif (!mouseEvent) {\n\t\t\t\t\tmouseEvent = new MouseEvent(type, event, point,\n\t\t\t\t\t\t\ttarget || obj,\n\t\t\t\t\t\t\tprevPoint ? point.subtract(prevPoint) : null);\n\t\t\t\t}\n\t\t\t\tif (obj.emit(type, mouseEvent)) {\n\t\t\t\t\tcalled = true;\n\t\t\t\t\tif (mouseEvent.prevented)\n\t\t\t\t\t\tprevented = true;\n\t\t\t\t\tif (mouseEvent.stopped)\n\t\t\t\t\t\treturn stopped = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvar fallback = fallbacks[type];\n\t\t\t\tif (fallback)\n\t\t\t\t\treturn emit(obj, fallback);\n\t\t\t}\n\t\t}\n\n\t\twhile (obj && obj !== stopItem) {\n\t\t\tif (emit(obj, type))\n\t\t\t\tbreak;\n\t\t\tobj = obj._parent;\n\t\t}\n\t\treturn stopped;\n\t}\n\n\tfunction emitMouseEvents(view, hitItem, type, event, point, prevPoint) {\n\t\tview._project.removeOn(type);\n\t\tprevented = called = false;\n\t\treturn (dragItem && emitMouseEvent(dragItem, null, type, event,\n\t\t\t\t\tpoint, prevPoint)\n\t\t\t|| hitItem && hitItem !== dragItem\n\t\t\t\t&& !hitItem.isDescendant(dragItem)\n\t\t\t\t&& emitMouseEvent(hitItem, null, type === 'mousedrag' ?\n\t\t\t\t\t'mousemove' : type, event, point, prevPoint, dragItem)\n\t\t\t|| emitMouseEvent(view, dragItem || hitItem || view, type, event,\n\t\t\t\t\tpoint, prevPoint));\n\t}\n\n\tvar itemEventsMap = {\n\t\tmousedown: {\n\t\t\tmousedown: 1,\n\t\t\tmousedrag: 1,\n\t\t\tclick: 1,\n\t\t\tdoubleclick: 1\n\t\t},\n\t\tmouseup: {\n\t\t\tmouseup: 1,\n\t\t\tmousedrag: 1,\n\t\t\tclick: 1,\n\t\t\tdoubleclick: 1\n\t\t},\n\t\tmousemove: {\n\t\t\tmousedrag: 1,\n\t\t\tmousemove: 1,\n\t\t\tmouseenter: 1,\n\t\t\tmouseleave: 1\n\t\t}\n\t};\n\n\treturn {\n\t\t_viewEvents: viewEvents,\n\n\t\t_handleMouseEvent: function(type, event, point) {\n\t\t\tvar itemEvents = this._itemEvents,\n\t\t\t\thitItems = itemEvents.native[type],\n\t\t\t\tnativeMove = type === 'mousemove',\n\t\t\t\ttool = this._scope.tool,\n\t\t\t\tview = this;\n\n\t\t\tfunction responds(type) {\n\t\t\t\treturn itemEvents.virtual[type] || view.responds(type)\n\t\t\t\t\t\t|| tool && tool.responds(type);\n\t\t\t}\n\n\t\t\tif (nativeMove && dragging && responds('mousedrag'))\n\t\t\t\ttype = 'mousedrag';\n\t\t\tif (!point)\n\t\t\t\tpoint = this.getEventPoint(event);\n\n\t\t\tvar inView = this.getBounds().contains(point),\n\t\t\t\thit = hitItems && inView && view._project.hitTest(point, {\n\t\t\t\t\ttolerance: 0,\n\t\t\t\t\tfill: true,\n\t\t\t\t\tstroke: true\n\t\t\t\t}),\n\t\t\t\thitItem = hit && hit.item || null,\n\t\t\t\thandle = false,\n\t\t\t\tmouse = {};\n\t\t\tmouse[type.substr(5)] = true;\n\n\t\t\tif (hitItems && hitItem !== overItem) {\n\t\t\t\tif (overItem) {\n\t\t\t\t\temitMouseEvent(overItem, null, 'mouseleave', event, point);\n\t\t\t\t}\n\t\t\t\tif (hitItem) {\n\t\t\t\t\temitMouseEvent(hitItem, null, 'mouseenter', event, point);\n\t\t\t\t}\n\t\t\t\toverItem = hitItem;\n\t\t\t}\n\t\t\tif (wasInView ^ inView) {\n\t\t\t\temitMouseEvent(this, null, inView ? 'mouseenter' : 'mouseleave',\n\t\t\t\t\t\tevent, point);\n\t\t\t\toverView = inView ? this : null;\n\t\t\t\thandle = true;\n\t\t\t}\n\t\t\tif ((inView || mouse.drag) && !point.equals(lastPoint)) {\n\t\t\t\temitMouseEvents(this, hitItem, nativeMove ? type : 'mousemove',\n\t\t\t\t\t\tevent, point, lastPoint);\n\t\t\t\thandle = true;\n\t\t\t}\n\t\t\twasInView = inView;\n\t\t\tif (mouse.down && inView || mouse.up && downPoint) {\n\t\t\t\temitMouseEvents(this, hitItem, type, event, point, downPoint);\n\t\t\t\tif (mouse.down) {\n\t\t\t\t\tdblClick = hitItem === clickItem\n\t\t\t\t\t\t&& (Date.now() - clickTime < 300);\n\t\t\t\t\tdownItem = clickItem = hitItem;\n\t\t\t\t\tif (!prevented && hitItem) {\n\t\t\t\t\t\tvar item = hitItem;\n\t\t\t\t\t\twhile (item && !item.responds('mousedrag'))\n\t\t\t\t\t\t\titem = item._parent;\n\t\t\t\t\t\tif (item)\n\t\t\t\t\t\t\tdragItem = hitItem;\n\t\t\t\t\t}\n\t\t\t\t\tdownPoint = point;\n\t\t\t\t} else if (mouse.up) {\n\t\t\t\t\tif (!prevented && hitItem === downItem) {\n\t\t\t\t\t\tclickTime = Date.now();\n\t\t\t\t\t\temitMouseEvents(this, hitItem, dblClick ? 'doubleclick'\n\t\t\t\t\t\t\t\t: 'click', event, point, downPoint);\n\t\t\t\t\t\tdblClick = false;\n\t\t\t\t\t}\n\t\t\t\t\tdownItem = dragItem = null;\n\t\t\t\t}\n\t\t\t\twasInView = false;\n\t\t\t\thandle = true;\n\t\t\t}\n\t\t\tlastPoint = point;\n\t\t\tif (handle && tool) {\n\t\t\t\tcalled = tool._handleMouseEvent(type, event, point, mouse)\n\t\t\t\t\t|| called;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tevent.cancelable !== false\n\t\t\t\t&& (called && !mouse.move || mouse.down && responds('mouseup'))\n\t\t\t) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t},\n\n\t\t_handleKeyEvent: function(type, event, key, character) {\n\t\t\tvar scope = this._scope,\n\t\t\t\ttool = scope.tool,\n\t\t\t\tkeyEvent;\n\n\t\t\tfunction emit(obj) {\n\t\t\t\tif (obj.responds(type)) {\n\t\t\t\t\tpaper = scope;\n\t\t\t\t\tobj.emit(type, keyEvent = keyEvent\n\t\t\t\t\t\t\t|| new KeyEvent(type, event, key, character));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.isVisible()) {\n\t\t\t\temit(this);\n\t\t\t\tif (tool && tool.responds(type))\n\t\t\t\t\temit(tool);\n\t\t\t}\n\t\t},\n\n\t\t_countItemEvent: function(type, sign) {\n\t\t\tvar itemEvents = this._itemEvents,\n\t\t\t\tnative = itemEvents.native,\n\t\t\t\tvirtual = itemEvents.virtual;\n\t\t\tfor (var key in itemEventsMap) {\n\t\t\t\tnative[key] = (native[key] || 0)\n\t\t\t\t\t\t+ (itemEventsMap[key][type] || 0) * sign;\n\t\t\t}\n\t\t\tvirtual[type] = (virtual[type] || 0) + sign;\n\t\t},\n\n\t\tstatics: {\n\t\t\tupdateFocus: updateFocus,\n\n\t\t\t_resetState: function() {\n\t\t\t\tdragging = mouseDown = called = wasInView = false;\n\t\t\t\tprevFocus = tempFocus = overView = downPoint = lastPoint =\n\t\t\t\t\tdownItem = overItem = dragItem = clickItem = clickTime =\n\t\t\t\t\tdblClick = null;\n\t\t\t}\n\t\t}\n\t};\n});\n\nvar CanvasView = View.extend({\n\t_class: 'CanvasView',\n\n\tinitialize: function CanvasView(project, canvas) {\n\t\tif (!(canvas instanceof window.HTMLCanvasElement)) {\n\t\t\tvar size = Size.read(arguments, 1);\n\t\t\tif (size.isZero())\n\t\t\t\tthrow new Error(\n\t\t\t\t\t\t'Cannot create CanvasView with the provided argument: '\n\t\t\t\t\t\t+ Base.slice(arguments, 1));\n\t\t\tcanvas = CanvasProvider.getCanvas(size);\n\t\t}\n\t\tvar ctx = this._context = canvas.getContext('2d');\n\t\tctx.save();\n\t\tthis._pixelRatio = 1;\n\t\tif (!/^off|false$/.test(PaperScope.getAttribute(canvas, 'hidpi'))) {\n\t\t\tvar deviceRatio = window.devicePixelRatio || 1,\n\t\t\t\tbackingStoreRatio = DomElement.getPrefixed(ctx,\n\t\t\t\t\t\t'backingStorePixelRatio') || 1;\n\t\t\tthis._pixelRatio = deviceRatio / backingStoreRatio;\n\t\t}\n\t\tView.call(this, project, canvas);\n\t\tthis._needsUpdate = true;\n\t},\n\n\tremove: function remove() {\n\t\tthis._context.restore();\n\t\treturn remove.base.call(this);\n\t},\n\n\t_setElementSize: function _setElementSize(width, height) {\n\t\tvar pixelRatio = this._pixelRatio;\n\t\t_setElementSize.base.call(this, width * pixelRatio, height * pixelRatio);\n\t\tif (pixelRatio !== 1) {\n\t\t\tvar element = this._element,\n\t\t\t\tctx = this._context;\n\t\t\tif (!PaperScope.hasAttribute(element, 'resize')) {\n\t\t\t\tvar style = element.style;\n\t\t\t\tstyle.width = width + 'px';\n\t\t\t\tstyle.height = height + 'px';\n\t\t\t}\n\t\t\tctx.restore();\n\t\t\tctx.save();\n\t\t\tctx.scale(pixelRatio, pixelRatio);\n\t\t}\n\t},\n\n\tgetContext: function() {\n\t\treturn this._context;\n\t},\n\n\tgetPixelSize: function getPixelSize(size) {\n\t\tvar agent = paper.agent,\n\t\t\tpixels;\n\t\tif (agent && agent.firefox) {\n\t\t\tpixels = getPixelSize.base.call(this, size);\n\t\t} else {\n\t\t\tvar ctx = this._context,\n\t\t\t\tprevFont = ctx.font;\n\t\t\tctx.font = size + ' serif';\n\t\t\tpixels = parseFloat(ctx.font);\n\t\t\tctx.font = prevFont;\n\t\t}\n\t\treturn pixels;\n\t},\n\n\tgetTextWidth: function(font, lines) {\n\t\tvar ctx = this._context,\n\t\t\tprevFont = ctx.font,\n\t\t\twidth = 0;\n\t\tctx.font = font;\n\t\tfor (var i = 0, l = lines.length; i < l; i++)\n\t\t\twidth = Math.max(width, ctx.measureText(lines[i]).width);\n\t\tctx.font = prevFont;\n\t\treturn width;\n\t},\n\n\tupdate: function() {\n\t\tif (!this._needsUpdate)\n\t\t\treturn false;\n\t\tvar project = this._project,\n\t\t\tctx = this._context,\n\t\t\tsize = this._viewSize;\n\t\tctx.clearRect(0, 0, size.width + 1, size.height + 1);\n\t\tif (project)\n\t\t\tproject.draw(ctx, this._matrix, this._pixelRatio);\n\t\tthis._needsUpdate = false;\n\t\treturn true;\n\t}\n});\n\nvar Event = Base.extend({\n\t_class: 'Event',\n\n\tinitialize: function Event(event) {\n\t\tthis.event = event;\n\t\tthis.type = event && event.type;\n\t},\n\n\tprevented: false,\n\tstopped: false,\n\n\tpreventDefault: function() {\n\t\tthis.prevented = true;\n\t\tthis.event.preventDefault();\n\t},\n\n\tstopPropagation: function() {\n\t\tthis.stopped = true;\n\t\tthis.event.stopPropagation();\n\t},\n\n\tstop: function() {\n\t\tthis.stopPropagation();\n\t\tthis.preventDefault();\n\t},\n\n\tgetTimeStamp: function() {\n\t\treturn this.event.timeStamp;\n\t},\n\n\tgetModifiers: function() {\n\t\treturn Key.modifiers;\n\t}\n});\n\nvar KeyEvent = Event.extend({\n\t_class: 'KeyEvent',\n\n\tinitialize: function KeyEvent(type, event, key, character) {\n\t\tthis.type = type;\n\t\tthis.event = event;\n\t\tthis.key = key;\n\t\tthis.character = character;\n\t},\n\n\ttoString: function() {\n\t\treturn \"{ type: '\" + this.type\n\t\t\t\t+ \"', key: '\" + this.key\n\t\t\t\t+ \"', character: '\" + this.character\n\t\t\t\t+ \"', modifiers: \" + this.getModifiers()\n\t\t\t\t+ \" }\";\n\t}\n});\n\nvar Key = new function() {\n\tvar keyLookup = {\n\t\t\t'\\t': 'tab',\n\t\t\t' ': 'space',\n\t\t\t'\\b': 'backspace',\n\t\t\t'\\x7f': 'delete',\n\t\t\t'Spacebar': 'space',\n\t\t\t'Del': 'delete',\n\t\t\t'Win': 'meta',\n\t\t\t'Esc': 'escape'\n\t\t},\n\n\t\tcharLookup = {\n\t\t\t'tab': '\\t',\n\t\t\t'space': ' ',\n\t\t\t'enter': '\\r'\n\t\t},\n\n\t\tkeyMap = {},\n\t\tcharMap = {},\n\t\tmetaFixMap,\n\t\tdownKey,\n\n\t\tmodifiers = new Base({\n\t\t\tshift: false,\n\t\t\tcontrol: false,\n\t\t\talt: false,\n\t\t\tmeta: false,\n\t\t\tcapsLock: false,\n\t\t\tspace: false\n\t\t}).inject({\n\t\t\toption: {\n\t\t\t\tget: function() {\n\t\t\t\t\treturn this.alt;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tcommand: {\n\t\t\t\tget: function() {\n\t\t\t\t\tvar agent = paper && paper.agent;\n\t\t\t\t\treturn agent && agent.mac ? this.meta : this.control;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\tfunction getKey(event) {\n\t\tvar key = event.key || event.keyIdentifier;\n\t\tkey = /^U\\+/.test(key)\n\t\t\t\t? String.fromCharCode(parseInt(key.substr(2), 16))\n\t\t\t\t: /^Arrow[A-Z]/.test(key) ? key.substr(5)\n\t\t\t\t: key === 'Unidentified' || key === undefined\n\t\t\t\t\t? String.fromCharCode(event.keyCode)\n\t\t\t\t\t: key;\n\t\treturn keyLookup[key] ||\n\t\t\t\t(key.length > 1 ? Base.hyphenate(key) : key.toLowerCase());\n\t}\n\n\tfunction handleKey(down, key, character, event) {\n\t\tvar type = down ? 'keydown' : 'keyup',\n\t\t\tview = View._focused,\n\t\t\tname;\n\t\tkeyMap[key] = down;\n\t\tif (down) {\n\t\t\tcharMap[key] = character;\n\t\t} else {\n\t\t\tdelete charMap[key];\n\t\t}\n\t\tif (key.length > 1 && (name = Base.camelize(key)) in modifiers) {\n\t\t\tmodifiers[name] = down;\n\t\t\tvar agent = paper && paper.agent;\n\t\t\tif (name === 'meta' && agent && agent.mac) {\n\t\t\t\tif (down) {\n\t\t\t\t\tmetaFixMap = {};\n\t\t\t\t} else {\n\t\t\t\t\tfor (var k in metaFixMap) {\n\t\t\t\t\t\tif (k in charMap)\n\t\t\t\t\t\t\thandleKey(false, k, metaFixMap[k], event);\n\t\t\t\t\t}\n\t\t\t\t\tmetaFixMap = null;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (down && metaFixMap) {\n\t\t\tmetaFixMap[key] = character;\n\t\t}\n\t\tif (view) {\n\t\t\tview._handleKeyEvent(down ? 'keydown' : 'keyup', event, key,\n\t\t\t\t\tcharacter);\n\t\t}\n\t}\n\n\tDomEvent.add(document, {\n\t\tkeydown: function(event) {\n\t\t\tvar key = getKey(event),\n\t\t\t\tagent = paper && paper.agent;\n\t\t\tif (key.length > 1 || agent && (agent.chrome && (event.altKey\n\t\t\t\t\t\t|| agent.mac && event.metaKey\n\t\t\t\t\t\t|| !agent.mac && event.ctrlKey))) {\n\t\t\t\thandleKey(true, key,\n\t\t\t\t\t\tcharLookup[key] || (key.length > 1 ? '' : key), event);\n\t\t\t} else {\n\t\t\t\tdownKey = key;\n\t\t\t}\n\t\t},\n\n\t\tkeypress: function(event) {\n\t\t\tif (downKey) {\n\t\t\t\tvar key = getKey(event),\n\t\t\t\t\tcode = event.charCode,\n\t\t\t\t\tcharacter = code >= 32 ? String.fromCharCode(code)\n\t\t\t\t\t\t: key.length > 1 ? '' : key;\n\t\t\t\tif (key !== downKey) {\n\t\t\t\t\tkey = character.toLowerCase();\n\t\t\t\t}\n\t\t\t\thandleKey(true, key, character, event);\n\t\t\t\tdownKey = null;\n\t\t\t}\n\t\t},\n\n\t\tkeyup: function(event) {\n\t\t\tvar key = getKey(event);\n\t\t\tif (key in charMap)\n\t\t\t\thandleKey(false, key, charMap[key], event);\n\t\t}\n\t});\n\n\tDomEvent.add(window, {\n\t\tblur: function(event) {\n\t\t\tfor (var key in charMap)\n\t\t\t\thandleKey(false, key, charMap[key], event);\n\t\t}\n\t});\n\n\treturn {\n\t\tmodifiers: modifiers,\n\n\t\tisDown: function(key) {\n\t\t\treturn !!keyMap[key];\n\t\t}\n\t};\n};\n\nvar MouseEvent = Event.extend({\n\t_class: 'MouseEvent',\n\n\tinitialize: function MouseEvent(type, event, point, target, delta) {\n\t\tthis.type = type;\n\t\tthis.event = event;\n\t\tthis.point = point;\n\t\tthis.target = target;\n\t\tthis.delta = delta;\n\t},\n\n\ttoString: function() {\n\t\treturn \"{ type: '\" + this.type\n\t\t\t\t+ \"', point: \" + this.point\n\t\t\t\t+ ', target: ' + this.target\n\t\t\t\t+ (this.delta ? ', delta: ' + this.delta : '')\n\t\t\t\t+ ', modifiers: ' + this.getModifiers()\n\t\t\t\t+ ' }';\n\t}\n});\n\nvar ToolEvent = Event.extend({\n\t_class: 'ToolEvent',\n\t_item: null,\n\n\tinitialize: function ToolEvent(tool, type, event) {\n\t\tthis.tool = tool;\n\t\tthis.type = type;\n\t\tthis.event = event;\n\t},\n\n\t_choosePoint: function(point, toolPoint) {\n\t\treturn point ? point : toolPoint ? toolPoint.clone() : null;\n\t},\n\n\tgetPoint: function() {\n\t\treturn this._choosePoint(this._point, this.tool._point);\n\t},\n\n\tsetPoint: function(point) {\n\t\tthis._point = point;\n\t},\n\n\tgetLastPoint: function() {\n\t\treturn this._choosePoint(this._lastPoint, this.tool._lastPoint);\n\t},\n\n\tsetLastPoint: function(lastPoint) {\n\t\tthis._lastPoint = lastPoint;\n\t},\n\n\tgetDownPoint: function() {\n\t\treturn this._choosePoint(this._downPoint, this.tool._downPoint);\n\t},\n\n\tsetDownPoint: function(downPoint) {\n\t\tthis._downPoint = downPoint;\n\t},\n\n\tgetMiddlePoint: function() {\n\t\tif (!this._middlePoint && this.tool._lastPoint) {\n\t\t\treturn this.tool._point.add(this.tool._lastPoint).divide(2);\n\t\t}\n\t\treturn this._middlePoint;\n\t},\n\n\tsetMiddlePoint: function(middlePoint) {\n\t\tthis._middlePoint = middlePoint;\n\t},\n\n\tgetDelta: function() {\n\t\treturn !this._delta && this.tool._lastPoint\n\t\t\t\t? this.tool._point.subtract(this.tool._lastPoint)\n\t\t\t\t: this._delta;\n\t},\n\n\tsetDelta: function(delta) {\n\t\tthis._delta = delta;\n\t},\n\n\tgetCount: function() {\n\t\treturn this.tool[/^mouse(down|up)$/.test(this.type)\n\t\t\t\t? '_downCount' : '_moveCount'];\n\t},\n\n\tsetCount: function(count) {\n\t\tthis.tool[/^mouse(down|up)$/.test(this.type) ? 'downCount' : 'count']\n\t\t\t= count;\n\t},\n\n\tgetItem: function() {\n\t\tif (!this._item) {\n\t\t\tvar result = this.tool._scope.project.hitTest(this.getPoint());\n\t\t\tif (result) {\n\t\t\t\tvar item = result.item,\n\t\t\t\t\tparent = item._parent;\n\t\t\t\twhile (/^(Group|CompoundPath)$/.test(parent._class)) {\n\t\t\t\t\titem = parent;\n\t\t\t\t\tparent = parent._parent;\n\t\t\t\t}\n\t\t\t\tthis._item = item;\n\t\t\t}\n\t\t}\n\t\treturn this._item;\n\t},\n\n\tsetItem: function(item) {\n\t\tthis._item = item;\n\t},\n\n\ttoString: function() {\n\t\treturn '{ type: ' + this.type\n\t\t\t\t+ ', point: ' + this.getPoint()\n\t\t\t\t+ ', count: ' + this.getCount()\n\t\t\t\t+ ', modifiers: ' + this.getModifiers()\n\t\t\t\t+ ' }';\n\t}\n});\n\nvar Tool = PaperScopeItem.extend({\n\t_class: 'Tool',\n\t_list: 'tools',\n\t_reference: 'tool',\n\t_events: ['onMouseDown', 'onMouseUp', 'onMouseDrag', 'onMouseMove',\n\t\t\t'onActivate', 'onDeactivate', 'onEditOptions', 'onKeyDown',\n\t\t\t'onKeyUp'],\n\n\tinitialize: function Tool(props) {\n\t\tPaperScopeItem.call(this);\n\t\tthis._moveCount = -1;\n\t\tthis._downCount = -1;\n\t\tthis.set(props);\n\t},\n\n\tgetMinDistance: function() {\n\t\treturn this._minDistance;\n\t},\n\n\tsetMinDistance: function(minDistance) {\n\t\tthis._minDistance = minDistance;\n\t\tif (minDistance != null && this._maxDistance != null\n\t\t\t\t&& minDistance > this._maxDistance) {\n\t\t\tthis._maxDistance = minDistance;\n\t\t}\n\t},\n\n\tgetMaxDistance: function() {\n\t\treturn this._maxDistance;\n\t},\n\n\tsetMaxDistance: function(maxDistance) {\n\t\tthis._maxDistance = maxDistance;\n\t\tif (this._minDistance != null && maxDistance != null\n\t\t\t\t&& maxDistance < this._minDistance) {\n\t\t\tthis._minDistance = maxDistance;\n\t\t}\n\t},\n\n\tgetFixedDistance: function() {\n\t\treturn this._minDistance == this._maxDistance\n\t\t\t? this._minDistance : null;\n\t},\n\n\tsetFixedDistance: function(distance) {\n\t\tthis._minDistance = this._maxDistance = distance;\n\t},\n\n\t_handleMouseEvent: function(type, event, point, mouse) {\n\t\tpaper = this._scope;\n\t\tif (mouse.drag && !this.responds(type))\n\t\t\ttype = 'mousemove';\n\t\tvar move = mouse.move || mouse.drag,\n\t\t\tresponds = this.responds(type),\n\t\t\tcalled = false,\n\t\t\ttool = this;\n\t\tfunction update(minDistance, maxDistance) {\n\t\t\tvar pt = point,\n\t\t\t\ttoolPoint = move ? tool._point : (tool._downPoint || pt);\n\t\t\tif (move) {\n\t\t\t\tif (tool._moveCount >= 0 && pt.equals(toolPoint)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (toolPoint && (minDistance != null || maxDistance != null)) {\n\t\t\t\t\tvar vector = pt.subtract(toolPoint),\n\t\t\t\t\t\tdistance = vector.getLength();\n\t\t\t\t\tif (distance < (minDistance || 0))\n\t\t\t\t\t\treturn false;\n\t\t\t\t\tif (maxDistance) {\n\t\t\t\t\t\tpt = toolPoint.add(vector.normalize(\n\t\t\t\t\t\t\t\tMath.min(distance, maxDistance)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttool._moveCount++;\n\t\t\t}\n\t\t\ttool._point = pt;\n\t\t\ttool._lastPoint = toolPoint || pt;\n\t\t\tif (mouse.down) {\n\t\t\t\ttool._moveCount = -1;\n\t\t\t\ttool._downPoint = pt;\n\t\t\t\ttool._downCount++;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tfunction emit() {\n\t\t\tif (responds) {\n\t\t\t\tcalled = tool.emit(type, new ToolEvent(tool, type, event))\n\t\t\t\t\t\t|| called;\n\t\t\t}\n\t\t}\n\n\t\tif (mouse.down) {\n\t\t\tupdate();\n\t\t\temit();\n\t\t} else if (mouse.up) {\n\t\t\tupdate(null, this._maxDistance);\n\t\t\temit();\n\t\t} else if (responds) {\n\t\t\twhile (update(this._minDistance, this._maxDistance))\n\t\t\t\temit();\n\t\t}\n\t\treturn called;\n\t}\n\n});\n\nvar Tween = Base.extend(Emitter, {\n\t_class: 'Tween',\n\n\tstatics: {\n\t\teasings: new Base({\n\t\t\tlinear: function(t) {\n\t\t\t\treturn t;\n\t\t\t},\n\n\t\t\teaseInQuad: function(t) {\n\t\t\t\treturn t * t;\n\t\t\t},\n\n\t\t\teaseOutQuad: function(t) {\n\t\t\t\treturn t * (2 - t);\n\t\t\t},\n\n\t\t\teaseInOutQuad: function(t) {\n\t\t\t\treturn t < 0.5\n\t\t\t\t\t? 2 * t * t\n\t\t\t\t\t: -1 + 2 * (2 - t) * t;\n\t\t\t},\n\n\t\t\teaseInCubic: function(t) {\n\t\t\t\treturn t * t * t;\n\t\t\t},\n\n\t\t\teaseOutCubic: function(t) {\n\t\t\t\treturn --t * t * t + 1;\n\t\t\t},\n\n\t\t\teaseInOutCubic: function(t) {\n\t\t\t\treturn t < 0.5\n\t\t\t\t\t? 4 * t * t * t\n\t\t\t\t\t: (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;\n\t\t\t},\n\n\t\t\teaseInQuart: function(t) {\n\t\t\t\treturn t * t * t * t;\n\t\t\t},\n\n\t\t\teaseOutQuart: function(t) {\n\t\t\t\treturn 1 - (--t) * t * t * t;\n\t\t\t},\n\n\t\t\teaseInOutQuart: function(t) {\n\t\t\t\treturn t < 0.5\n\t\t\t\t\t? 8 * t * t * t * t\n\t\t\t\t\t: 1 - 8 * (--t) * t * t * t;\n\t\t\t},\n\n\t\t\teaseInQuint: function(t) {\n\t\t\t\treturn t * t * t * t * t;\n\t\t\t},\n\n\t\t\teaseOutQuint: function(t) {\n\t\t\t\treturn 1 + --t * t * t * t * t;\n\t\t\t},\n\n\t\t\teaseInOutQuint: function(t) {\n\t\t\t\treturn t < 0.5\n\t\t\t\t\t? 16 * t * t * t * t * t\n\t\t\t\t\t: 1 + 16 * (--t) * t * t * t * t;\n\t\t\t}\n\t\t})\n\t},\n\n\tinitialize: function Tween(object, from, to, duration, easing, start) {\n\t\tthis.object = object;\n\t\tvar type = typeof easing;\n\t\tvar isFunction = type === 'function';\n\t\tthis.type = isFunction\n\t\t\t? type\n\t\t\t: type === 'string'\n\t\t\t\t? easing\n\t\t\t\t: 'linear';\n\t\tthis.easing = isFunction ? easing : Tween.easings[this.type];\n\t\tthis.duration = duration;\n\t\tthis.running = false;\n\n\t\tthis._then = null;\n\t\tthis._startTime = null;\n\t\tvar state = from || to;\n\t\tthis._keys = state ? Object.keys(state) : [];\n\t\tthis._parsedKeys = this._parseKeys(this._keys);\n\t\tthis._from = state && this._getState(from);\n\t\tthis._to = state && this._getState(to);\n\t\tif (start !== false) {\n\t\t\tthis.start();\n\t\t}\n\t},\n\n\tthen: function(then) {\n\t\tthis._then = then;\n\t\treturn this;\n\t},\n\n\tstart: function() {\n\t\tthis._startTime = null;\n\t\tthis.running = true;\n\t\treturn this;\n\t},\n\n\tstop: function() {\n\t\tthis.running = false;\n\t\treturn this;\n\t},\n\n\tupdate: function(progress) {\n\t\tif (this.running) {\n\t\t\tif (progress >= 1) {\n\t\t\t\tprogress = 1;\n\t\t\t\tthis.running = false;\n\t\t\t}\n\n\t\t\tvar factor = this.easing(progress),\n\t\t\t\tkeys = this._keys,\n\t\t\t\tgetValue = function(value) {\n\t\t\t\t\treturn typeof value === 'function'\n\t\t\t\t\t\t? value(factor, progress)\n\t\t\t\t\t\t: value;\n\t\t\t\t};\n\t\t\tfor (var i = 0, l = keys && keys.length; i < l; i++) {\n\t\t\t\tvar key = keys[i],\n\t\t\t\t\tfrom = getValue(this._from[key]),\n\t\t\t\t\tto = getValue(this._to[key]),\n\t\t\t\t\tvalue = (from && to && from.__add && to.__add)\n\t\t\t\t\t\t? to.__subtract(from).__multiply(factor).__add(from)\n\t\t\t\t\t\t: ((to - from) * factor) + from;\n\t\t\t\tthis._setProperty(this._parsedKeys[key], value);\n\t\t\t}\n\n\t\t\tif (this.responds('update')) {\n\t\t\t\tthis.emit('update', new Base({\n\t\t\t\t\tprogress: progress,\n\t\t\t\t\tfactor: factor\n\t\t\t\t}));\n\t\t\t}\n\t\t\tif (!this.running && this._then) {\n\t\t\t\tthis._then(this.object);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t},\n\n\t_events: {\n\t\tonUpdate: {}\n\t},\n\n\t_handleFrame: function(time) {\n\t\tvar startTime = this._startTime,\n\t\t\tprogress = startTime\n\t\t\t\t? (time - startTime) / this.duration\n\t\t\t\t: 0;\n\t\tif (!startTime) {\n\t\t\tthis._startTime = time;\n\t\t}\n\t\tthis.update(progress);\n\t},\n\n\t_getState: function(state) {\n\t\tvar keys = this._keys,\n\t\t\tresult = {};\n\t\tfor (var i = 0, l = keys.length; i < l; i++) {\n\t\t\tvar key = keys[i],\n\t\t\t\tpath = this._parsedKeys[key],\n\t\t\t\tcurrent = this._getProperty(path),\n\t\t\t\tvalue;\n\t\t\tif (state) {\n\t\t\t\tvar resolved = this._resolveValue(current, state[key]);\n\t\t\t\tthis._setProperty(path, resolved);\n\t\t\t\tvalue = this._getProperty(path);\n\t\t\t\tvalue = value && value.clone ? value.clone() : value;\n\t\t\t\tthis._setProperty(path, current);\n\t\t\t} else {\n\t\t\t\tvalue = current && current.clone ? current.clone() : current;\n\t\t\t}\n\t\t\tresult[key] = value;\n\t\t}\n\t\treturn result;\n\t},\n\n\t_resolveValue: function(current, value) {\n\t\tif (value) {\n\t\t\tif (Array.isArray(value) && value.length === 2) {\n\t\t\t\tvar operator = value[0];\n\t\t\t\treturn (\n\t\t\t\t\toperator &&\n\t\t\t\t\toperator.match &&\n\t\t\t\t\toperator.match(/^[+\\-\\*\\/]=/)\n\t\t\t\t)\n\t\t\t\t\t? this._calculate(current, operator[0], value[1])\n\t\t\t\t\t: value;\n\t\t\t} else if (typeof value === 'string') {\n\t\t\t\tvar match = value.match(/^[+\\-*/]=(.*)/);\n\t\t\t\tif (match) {\n\t\t\t\t\tvar parsed = JSON.parse(match[1].replace(\n\t\t\t\t\t\t/(['\"])?([a-zA-Z0-9_]+)(['\"])?:/g,\n\t\t\t\t\t\t'\"$2\": '\n\t\t\t\t\t));\n\t\t\t\t\treturn this._calculate(current, value[0], parsed);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn value;\n\t},\n\n\t_calculate: function(left, operator, right) {\n\t\treturn paper.PaperScript.calculateBinary(left, operator, right);\n\t},\n\n\t_parseKeys: function(keys) {\n\t\tvar parsed = {};\n\t\tfor (var i = 0, l = keys.length; i < l; i++) {\n\t\t\tvar key = keys[i],\n\t\t\t\tpath = key\n\t\t\t\t\t.replace(/\\.([^.]*)/g, '/$1')\n\t\t\t\t\t.replace(/\\[['\"]?([^'\"\\]]*)['\"]?\\]/g, '/$1');\n\t\t\tparsed[key] = path.split('/');\n\t\t}\n\t\treturn parsed;\n\t},\n\n\t_getProperty: function(path, offset) {\n\t\tvar obj = this.object;\n\t\tfor (var i = 0, l = path.length - (offset || 0); i < l && obj; i++) {\n\t\t\tobj = obj[path[i]];\n\t\t}\n\t\treturn obj;\n\t},\n\n\t_setProperty: function(path, value) {\n\t\tvar dest = this._getProperty(path, 1);\n\t\tif (dest) {\n\t\t\tdest[path[path.length - 1]] = value;\n\t\t}\n\t}\n});\n\nvar Http = {\n\trequest: function(options) {\n\t\tvar xhr = new self.XMLHttpRequest();\n\t\txhr.open((options.method || 'get').toUpperCase(), options.url,\n\t\t\t\tBase.pick(options.async, true));\n\t\tif (options.mimeType)\n\t\t\txhr.overrideMimeType(options.mimeType);\n\t\txhr.onload = function() {\n\t\t\tvar status = xhr.status;\n\t\t\tif (status === 0 || status === 200) {\n\t\t\t\tif (options.onLoad) {\n\t\t\t\t\toptions.onLoad.call(xhr, xhr.responseText);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\txhr.onerror();\n\t\t\t}\n\t\t};\n\t\txhr.onerror = function() {\n\t\t\tvar status = xhr.status,\n\t\t\t\tmessage = 'Could not load \"' + options.url + '\" (Status: '\n\t\t\t\t\t\t+ status + ')';\n\t\t\tif (options.onError) {\n\t\t\t\toptions.onError(message, status);\n\t\t\t} else {\n\t\t\t\tthrow new Error(message);\n\t\t\t}\n\t\t};\n\t\treturn xhr.send(null);\n\t}\n};\n\nvar CanvasProvider = Base.exports.CanvasProvider = {\n\tcanvases: [],\n\n\tgetCanvas: function(width, height, options) {\n\t\tif (!window)\n\t\t\treturn null;\n\t\tvar canvas,\n\t\t\tclear = true;\n\t\tif (typeof width === 'object') {\n\t\t\theight = width.height;\n\t\t\twidth = width.width;\n\t\t}\n\t\tif (this.canvases.length) {\n\t\t\tcanvas = this.canvases.pop();\n\t\t} else {\n\t\t\tcanvas = document.createElement('canvas');\n\t\t\tclear = false;\n\t\t}\n\t\tvar ctx = canvas.getContext('2d', options || {});\n\t\tif (!ctx) {\n\t\t\tthrow new Error('Canvas ' + canvas +\n\t\t\t\t\t' is unable to provide a 2D context.');\n\t\t}\n\t\tif (canvas.width === width && canvas.height === height) {\n\t\t\tif (clear)\n\t\t\t\tctx.clearRect(0, 0, width + 1, height + 1);\n\t\t} else {\n\t\t\tcanvas.width = width;\n\t\t\tcanvas.height = height;\n\t\t}\n\t\tctx.save();\n\t\treturn canvas;\n\t},\n\n\tgetContext: function(width, height, options) {\n\t\tvar canvas = this.getCanvas(width, height, options);\n\t\treturn canvas ? canvas.getContext('2d', options || {}) : null;\n\t},\n\n\trelease: function(obj) {\n\t\tvar canvas = obj && obj.canvas ? obj.canvas : obj;\n\t\tif (canvas && canvas.getContext) {\n\t\t\tcanvas.getContext('2d').restore();\n\t\t\tthis.canvases.push(canvas);\n\t\t}\n\t}\n};\n\nvar BlendMode = new function() {\n\tvar min = Math.min,\n\t\tmax = Math.max,\n\t\tabs = Math.abs,\n\t\tsr, sg, sb, sa,\n\t\tbr, bg, bb, ba,\n\t\tdr, dg, db;\n\n\tfunction getLum(r, g, b) {\n\t\treturn 0.2989 * r + 0.587 * g + 0.114 * b;\n\t}\n\n\tfunction setLum(r, g, b, l) {\n\t\tvar d = l - getLum(r, g, b);\n\t\tdr = r + d;\n\t\tdg = g + d;\n\t\tdb = b + d;\n\t\tvar l = getLum(dr, dg, db),\n\t\t\tmn = min(dr, dg, db),\n\t\t\tmx = max(dr, dg, db);\n\t\tif (mn < 0) {\n\t\t\tvar lmn = l - mn;\n\t\t\tdr = l + (dr - l) * l / lmn;\n\t\t\tdg = l + (dg - l) * l / lmn;\n\t\t\tdb = l + (db - l) * l / lmn;\n\t\t}\n\t\tif (mx > 255) {\n\t\t\tvar ln = 255 - l,\n\t\t\t\tmxl = mx - l;\n\t\t\tdr = l + (dr - l) * ln / mxl;\n\t\t\tdg = l + (dg - l) * ln / mxl;\n\t\t\tdb = l + (db - l) * ln / mxl;\n\t\t}\n\t}\n\n\tfunction getSat(r, g, b) {\n\t\treturn max(r, g, b) - min(r, g, b);\n\t}\n\n\tfunction setSat(r, g, b, s) {\n\t\tvar col = [r, g, b],\n\t\t\tmx = max(r, g, b),\n\t\t\tmn = min(r, g, b),\n\t\t\tmd;\n\t\tmn = mn === r ? 0 : mn === g ? 1 : 2;\n\t\tmx = mx === r ? 0 : mx === g ? 1 : 2;\n\t\tmd = min(mn, mx) === 0 ? max(mn, mx) === 1 ? 2 : 1 : 0;\n\t\tif (col[mx] > col[mn]) {\n\t\t\tcol[md] = (col[md] - col[mn]) * s / (col[mx] - col[mn]);\n\t\t\tcol[mx] = s;\n\t\t} else {\n\t\t\tcol[md] = col[mx] = 0;\n\t\t}\n\t\tcol[mn] = 0;\n\t\tdr = col[0];\n\t\tdg = col[1];\n\t\tdb = col[2];\n\t}\n\n\tvar modes = {\n\t\tmultiply: function() {\n\t\t\tdr = br * sr / 255;\n\t\t\tdg = bg * sg / 255;\n\t\t\tdb = bb * sb / 255;\n\t\t},\n\n\t\tscreen: function() {\n\t\t\tdr = br + sr - (br * sr / 255);\n\t\t\tdg = bg + sg - (bg * sg / 255);\n\t\t\tdb = bb + sb - (bb * sb / 255);\n\t\t},\n\n\t\toverlay: function() {\n\t\t\tdr = br < 128 ? 2 * br * sr / 255 : 255 - 2 * (255 - br) * (255 - sr) / 255;\n\t\t\tdg = bg < 128 ? 2 * bg * sg / 255 : 255 - 2 * (255 - bg) * (255 - sg) / 255;\n\t\t\tdb = bb < 128 ? 2 * bb * sb / 255 : 255 - 2 * (255 - bb) * (255 - sb) / 255;\n\t\t},\n\n\t\t'soft-light': function() {\n\t\t\tvar t = sr * br / 255;\n\t\t\tdr = t + br * (255 - (255 - br) * (255 - sr) / 255 - t) / 255;\n\t\t\tt = sg * bg / 255;\n\t\t\tdg = t + bg * (255 - (255 - bg) * (255 - sg) / 255 - t) / 255;\n\t\t\tt = sb * bb / 255;\n\t\t\tdb = t + bb * (255 - (255 - bb) * (255 - sb) / 255 - t) / 255;\n\t\t},\n\n\t\t'hard-light': function() {\n\t\t\tdr = sr < 128 ? 2 * sr * br / 255 : 255 - 2 * (255 - sr) * (255 - br) / 255;\n\t\t\tdg = sg < 128 ? 2 * sg * bg / 255 : 255 - 2 * (255 - sg) * (255 - bg) / 255;\n\t\t\tdb = sb < 128 ? 2 * sb * bb / 255 : 255 - 2 * (255 - sb) * (255 - bb) / 255;\n\t\t},\n\n\t\t'color-dodge': function() {\n\t\t\tdr = br === 0 ? 0 : sr === 255 ? 255 : min(255, 255 * br / (255 - sr));\n\t\t\tdg = bg === 0 ? 0 : sg === 255 ? 255 : min(255, 255 * bg / (255 - sg));\n\t\t\tdb = bb === 0 ? 0 : sb === 255 ? 255 : min(255, 255 * bb / (255 - sb));\n\t\t},\n\n\t\t'color-burn': function() {\n\t\t\tdr = br === 255 ? 255 : sr === 0 ? 0 : max(0, 255 - (255 - br) * 255 / sr);\n\t\t\tdg = bg === 255 ? 255 : sg === 0 ? 0 : max(0, 255 - (255 - bg) * 255 / sg);\n\t\t\tdb = bb === 255 ? 255 : sb === 0 ? 0 : max(0, 255 - (255 - bb) * 255 / sb);\n\t\t},\n\n\t\tdarken: function() {\n\t\t\tdr = br < sr ? br : sr;\n\t\t\tdg = bg < sg ? bg : sg;\n\t\t\tdb = bb < sb ? bb : sb;\n\t\t},\n\n\t\tlighten: function() {\n\t\t\tdr = br > sr ? br : sr;\n\t\t\tdg = bg > sg ? bg : sg;\n\t\t\tdb = bb > sb ? bb : sb;\n\t\t},\n\n\t\tdifference: function() {\n\t\t\tdr = br - sr;\n\t\t\tif (dr < 0)\n\t\t\t\tdr = -dr;\n\t\t\tdg = bg - sg;\n\t\t\tif (dg < 0)\n\t\t\t\tdg = -dg;\n\t\t\tdb = bb - sb;\n\t\t\tif (db < 0)\n\t\t\t\tdb = -db;\n\t\t},\n\n\t\texclusion: function() {\n\t\t\tdr = br + sr * (255 - br - br) / 255;\n\t\t\tdg = bg + sg * (255 - bg - bg) / 255;\n\t\t\tdb = bb + sb * (255 - bb - bb) / 255;\n\t\t},\n\n\t\thue: function() {\n\t\t\tsetSat(sr, sg, sb, getSat(br, bg, bb));\n\t\t\tsetLum(dr, dg, db, getLum(br, bg, bb));\n\t\t},\n\n\t\tsaturation: function() {\n\t\t\tsetSat(br, bg, bb, getSat(sr, sg, sb));\n\t\t\tsetLum(dr, dg, db, getLum(br, bg, bb));\n\t\t},\n\n\t\tluminosity: function() {\n\t\t\tsetLum(br, bg, bb, getLum(sr, sg, sb));\n\t\t},\n\n\t\tcolor: function() {\n\t\t\tsetLum(sr, sg, sb, getLum(br, bg, bb));\n\t\t},\n\n\t\tadd: function() {\n\t\t\tdr = min(br + sr, 255);\n\t\t\tdg = min(bg + sg, 255);\n\t\t\tdb = min(bb + sb, 255);\n\t\t},\n\n\t\tsubtract: function() {\n\t\t\tdr = max(br - sr, 0);\n\t\t\tdg = max(bg - sg, 0);\n\t\t\tdb = max(bb - sb, 0);\n\t\t},\n\n\t\taverage: function() {\n\t\t\tdr = (br + sr) / 2;\n\t\t\tdg = (bg + sg) / 2;\n\t\t\tdb = (bb + sb) / 2;\n\t\t},\n\n\t\tnegation: function() {\n\t\t\tdr = 255 - abs(255 - sr - br);\n\t\t\tdg = 255 - abs(255 - sg - bg);\n\t\t\tdb = 255 - abs(255 - sb - bb);\n\t\t}\n\t};\n\n\tvar nativeModes = this.nativeModes = Base.each([\n\t\t'source-over', 'source-in', 'source-out', 'source-atop',\n\t\t'destination-over', 'destination-in', 'destination-out',\n\t\t'destination-atop', 'lighter', 'darker', 'copy', 'xor'\n\t], function(mode) {\n\t\tthis[mode] = true;\n\t}, {});\n\n\tvar ctx = CanvasProvider.getContext(1, 1, { willReadFrequently: true });\n\tif (ctx) {\n\t\tBase.each(modes, function(func, mode) {\n\t\t\tvar darken = mode === 'darken',\n\t\t\t\tok = false;\n\t\t\tctx.save();\n\t\t\ttry {\n\t\t\t\tctx.fillStyle = darken ? '#300' : '#a00';\n\t\t\t\tctx.fillRect(0, 0, 1, 1);\n\t\t\t\tctx.globalCompositeOperation = mode;\n\t\t\t\tif (ctx.globalCompositeOperation === mode) {\n\t\t\t\t\tctx.fillStyle = darken ? '#a00' : '#300';\n\t\t\t\t\tctx.fillRect(0, 0, 1, 1);\n\t\t\t\t\tok = ctx.getImageData(0, 0, 1, 1).data[0] !== darken\n\t\t\t\t\t\t\t? 170 : 51;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\t\t\tctx.restore();\n\t\t\tnativeModes[mode] = ok;\n\t\t});\n\t\tCanvasProvider.release(ctx);\n\t}\n\n\tthis.process = function(mode, srcContext, dstContext, alpha, offset) {\n\t\tvar srcCanvas = srcContext.canvas,\n\t\t\tnormal = mode === 'normal';\n\t\tif (normal || nativeModes[mode]) {\n\t\t\tdstContext.save();\n\t\t\tdstContext.setTransform(1, 0, 0, 1, 0, 0);\n\t\t\tdstContext.globalAlpha = alpha;\n\t\t\tif (!normal)\n\t\t\t\tdstContext.globalCompositeOperation = mode;\n\t\t\tdstContext.drawImage(srcCanvas, offset.x, offset.y);\n\t\t\tdstContext.restore();\n\t\t} else {\n\t\t\tvar process = modes[mode];\n\t\t\tif (!process)\n\t\t\t\treturn;\n\t\t\tvar dstData = dstContext.getImageData(offset.x, offset.y,\n\t\t\t\t\tsrcCanvas.width, srcCanvas.height),\n\t\t\t\tdst = dstData.data,\n\t\t\t\tsrc = srcContext.getImageData(0, 0,\n\t\t\t\t\tsrcCanvas.width, srcCanvas.height).data;\n\t\t\tfor (var i = 0, l = dst.length; i < l; i += 4) {\n\t\t\t\tsr = src[i];\n\t\t\t\tbr = dst[i];\n\t\t\t\tsg = src[i + 1];\n\t\t\t\tbg = dst[i + 1];\n\t\t\t\tsb = src[i + 2];\n\t\t\t\tbb = dst[i + 2];\n\t\t\t\tsa = src[i + 3];\n\t\t\t\tba = dst[i + 3];\n\t\t\t\tprocess();\n\t\t\t\tvar a1 = sa * alpha / 255,\n\t\t\t\t\ta2 = 1 - a1;\n\t\t\t\tdst[i] = a1 * dr + a2 * br;\n\t\t\t\tdst[i + 1] = a1 * dg + a2 * bg;\n\t\t\t\tdst[i + 2] = a1 * db + a2 * bb;\n\t\t\t\tdst[i + 3] = sa * alpha + a2 * ba;\n\t\t\t}\n\t\t\tdstContext.putImageData(dstData, offset.x, offset.y);\n\t\t}\n\t};\n};\n\nvar SvgElement = new function() {\n\tvar svg = 'http://www.w3.org/2000/svg',\n\t\txmlns = 'http://www.w3.org/2000/xmlns',\n\t\txlink = 'http://www.w3.org/1999/xlink',\n\t\tattributeNamespace = {\n\t\t\thref: xlink,\n\t\t\txlink: xmlns,\n\t\t\txmlns: xmlns + '/',\n\t\t\t'xmlns:xlink': xmlns + '/'\n\t\t};\n\n\tfunction create(tag, attributes, formatter) {\n\t\treturn set(document.createElementNS(svg, tag), attributes, formatter);\n\t}\n\n\tfunction get(node, name) {\n\t\tvar namespace = attributeNamespace[name],\n\t\t\tvalue = namespace\n\t\t\t\t? node.getAttributeNS(namespace, name)\n\t\t\t\t: node.getAttribute(name);\n\t\treturn value === 'null' ? null : value;\n\t}\n\n\tfunction set(node, attributes, formatter) {\n\t\tfor (var name in attributes) {\n\t\t\tvar value = attributes[name],\n\t\t\t\tnamespace = attributeNamespace[name];\n\t\t\tif (typeof value === 'number' && formatter)\n\t\t\t\tvalue = formatter.number(value);\n\t\t\tif (namespace) {\n\t\t\t\tnode.setAttributeNS(namespace, name, value);\n\t\t\t} else {\n\t\t\t\tnode.setAttribute(name, value);\n\t\t\t}\n\t\t}\n\t\treturn node;\n\t}\n\n\treturn {\n\t\tsvg: svg,\n\t\txmlns: xmlns,\n\t\txlink: xlink,\n\n\t\tcreate: create,\n\t\tget: get,\n\t\tset: set\n\t};\n};\n\nvar SvgStyles = Base.each({\n\tfillColor: ['fill', 'color'],\n\tfillRule: ['fill-rule', 'string'],\n\tstrokeColor: ['stroke', 'color'],\n\tstrokeWidth: ['stroke-width', 'number'],\n\tstrokeCap: ['stroke-linecap', 'string'],\n\tstrokeJoin: ['stroke-linejoin', 'string'],\n\tstrokeScaling: ['vector-effect', 'lookup', {\n\t\ttrue: 'none',\n\t\tfalse: 'non-scaling-stroke'\n\t}, function(item, value) {\n\t\treturn !value\n\t\t\t\t&& (item instanceof PathItem\n\t\t\t\t\t|| item instanceof Shape\n\t\t\t\t\t|| item instanceof TextItem);\n\t}],\n\tmiterLimit: ['stroke-miterlimit', 'number'],\n\tdashArray: ['stroke-dasharray', 'array'],\n\tdashOffset: ['stroke-dashoffset', 'number'],\n\tfontFamily: ['font-family', 'string'],\n\tfontWeight: ['font-weight', 'string'],\n\tfontSize: ['font-size', 'number'],\n\tjustification: ['text-anchor', 'lookup', {\n\t\tleft: 'start',\n\t\tcenter: 'middle',\n\t\tright: 'end'\n\t}],\n\topacity: ['opacity', 'number'],\n\tblendMode: ['mix-blend-mode', 'style']\n}, function(entry, key) {\n\tvar part = Base.capitalize(key),\n\t\tlookup = entry[2];\n\tthis[key] = {\n\t\ttype: entry[1],\n\t\tproperty: key,\n\t\tattribute: entry[0],\n\t\ttoSVG: lookup,\n\t\tfromSVG: lookup && Base.each(lookup, function(value, name) {\n\t\t\tthis[value] = name;\n\t\t}, {}),\n\t\texportFilter: entry[3],\n\t\tget: 'get' + part,\n\t\tset: 'set' + part\n\t};\n}, {});\n\nnew function() {\n\tvar formatter;\n\n\tfunction getTransform(matrix, coordinates, center) {\n\t\tvar attrs = new Base(),\n\t\t\ttrans = matrix.getTranslation();\n\t\tif (coordinates) {\n\t\t\tvar point;\n\t\t\tif (matrix.isInvertible()) {\n\t\t\t\tmatrix = matrix._shiftless();\n\t\t\t\tpoint = matrix._inverseTransform(trans);\n\t\t\t\ttrans = null;\n\t\t\t} else {\n\t\t\t\tpoint = new Point();\n\t\t\t}\n\t\t\tattrs[center ? 'cx' : 'x'] = point.x;\n\t\t\tattrs[center ? 'cy' : 'y'] = point.y;\n\t\t}\n\t\tif (!matrix.isIdentity()) {\n\t\t\tvar decomposed = matrix.decompose();\n\t\t\tif (decomposed) {\n\t\t\t\tvar parts = [],\n\t\t\t\t\tangle = decomposed.rotation,\n\t\t\t\t\tscale = decomposed.scaling,\n\t\t\t\t\tskew = decomposed.skewing;\n\t\t\t\tif (trans && !trans.isZero())\n\t\t\t\t\tparts.push('translate(' + formatter.point(trans) + ')');\n\t\t\t\tif (angle)\n\t\t\t\t\tparts.push('rotate(' + formatter.number(angle) + ')');\n\t\t\t\tif (!Numerical.isZero(scale.x - 1)\n\t\t\t\t\t\t|| !Numerical.isZero(scale.y - 1))\n\t\t\t\t\tparts.push('scale(' + formatter.point(scale) +')');\n\t\t\t\tif (skew.x)\n\t\t\t\t\tparts.push('skewX(' + formatter.number(skew.x) + ')');\n\t\t\t\tif (skew.y)\n\t\t\t\t\tparts.push('skewY(' + formatter.number(skew.y) + ')');\n\t\t\t\tattrs.transform = parts.join(' ');\n\t\t\t} else {\n\t\t\t\tattrs.transform = 'matrix(' + matrix.getValues().join(',') + ')';\n\t\t\t}\n\t\t}\n\t\treturn attrs;\n\t}\n\n\tfunction exportGroup(item, options) {\n\t\tvar attrs = getTransform(item._matrix),\n\t\t\tchildren = item._children;\n\t\tvar node = SvgElement.create('g', attrs, formatter);\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tvar child = children[i];\n\t\t\tvar childNode = exportSVG(child, options);\n\t\t\tif (childNode) {\n\t\t\t\tif (child.isClipMask()) {\n\t\t\t\t\tvar clip = SvgElement.create('clipPath');\n\t\t\t\t\tclip.appendChild(childNode);\n\t\t\t\t\tsetDefinition(child, clip, 'clip');\n\t\t\t\t\tSvgElement.set(node, {\n\t\t\t\t\t\t'clip-path': 'url(#' + clip.id + ')'\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tnode.appendChild(childNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn node;\n\t}\n\n\tfunction exportRaster(item, options) {\n\t\tvar attrs = getTransform(item._matrix, true),\n\t\t\tsize = item.getSize(),\n\t\t\timage = item.getImage();\n\t\tattrs.x -= size.width / 2;\n\t\tattrs.y -= size.height / 2;\n\t\tattrs.width = size.width;\n\t\tattrs.height = size.height;\n\t\tattrs.href = options.embedImages == false && image && image.src\n\t\t\t\t|| item.toDataURL();\n\t\treturn SvgElement.create('image', attrs, formatter);\n\t}\n\n\tfunction exportPath(item, options) {\n\t\tvar matchShapes = options.matchShapes;\n\t\tif (matchShapes) {\n\t\t\tvar shape = item.toShape(false);\n\t\t\tif (shape)\n\t\t\t\treturn exportShape(shape, options);\n\t\t}\n\t\tvar segments = item._segments,\n\t\t\tlength = segments.length,\n\t\t\ttype,\n\t\t\tattrs = getTransform(item._matrix);\n\t\tif (matchShapes && length >= 2 && !item.hasHandles()) {\n\t\t\tif (length > 2) {\n\t\t\t\ttype = item._closed ? 'polygon' : 'polyline';\n\t\t\t\tvar parts = [];\n\t\t\t\tfor (var i = 0; i < length; i++) {\n\t\t\t\t\tparts.push(formatter.point(segments[i]._point));\n\t\t\t\t}\n\t\t\t\tattrs.points = parts.join(' ');\n\t\t\t} else {\n\t\t\t\ttype = 'line';\n\t\t\t\tvar start = segments[0]._point,\n\t\t\t\t\tend = segments[1]._point;\n\t\t\t\tattrs.set({\n\t\t\t\t\tx1: start.x,\n\t\t\t\t\ty1: start.y,\n\t\t\t\t\tx2: end.x,\n\t\t\t\t\ty2: end.y\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\ttype = 'path';\n\t\t\tattrs.d = item.getPathData(null, options.precision);\n\t\t}\n\t\treturn SvgElement.create(type, attrs, formatter);\n\t}\n\n\tfunction exportShape(item) {\n\t\tvar type = item._type,\n\t\t\tradius = item._radius,\n\t\t\tattrs = getTransform(item._matrix, true, type !== 'rectangle');\n\t\tif (type === 'rectangle') {\n\t\t\ttype = 'rect';\n\t\t\tvar size = item._size,\n\t\t\t\twidth = size.width,\n\t\t\t\theight = size.height;\n\t\t\tattrs.x -= width / 2;\n\t\t\tattrs.y -= height / 2;\n\t\t\tattrs.width = width;\n\t\t\tattrs.height = height;\n\t\t\tif (radius.isZero())\n\t\t\t\tradius = null;\n\t\t}\n\t\tif (radius) {\n\t\t\tif (type === 'circle') {\n\t\t\t\tattrs.r = radius;\n\t\t\t} else {\n\t\t\t\tattrs.rx = radius.width;\n\t\t\t\tattrs.ry = radius.height;\n\t\t\t}\n\t\t}\n\t\treturn SvgElement.create(type, attrs, formatter);\n\t}\n\n\tfunction exportCompoundPath(item, options) {\n\t\tvar attrs = getTransform(item._matrix);\n\t\tvar data = item.getPathData(null, options.precision);\n\t\tif (data)\n\t\t\tattrs.d = data;\n\t\treturn SvgElement.create('path', attrs, formatter);\n\t}\n\n\tfunction exportSymbolItem(item, options) {\n\t\tvar attrs = getTransform(item._matrix, true),\n\t\t\tdefinition = item._definition,\n\t\t\tnode = getDefinition(definition, 'symbol'),\n\t\t\tdefinitionItem = definition._item,\n\t\t\tbounds = definitionItem.getStrokeBounds();\n\t\tif (!node) {\n\t\t\tnode = SvgElement.create('symbol', {\n\t\t\t\tviewBox: formatter.rectangle(bounds)\n\t\t\t});\n\t\t\tnode.appendChild(exportSVG(definitionItem, options));\n\t\t\tsetDefinition(definition, node, 'symbol');\n\t\t}\n\t\tattrs.href = '#' + node.id;\n\t\tattrs.x += bounds.x;\n\t\tattrs.y += bounds.y;\n\t\tattrs.width = bounds.width;\n\t\tattrs.height = bounds.height;\n\t\tattrs.overflow = 'visible';\n\t\treturn SvgElement.create('use', attrs, formatter);\n\t}\n\n\tfunction exportGradient(color) {\n\t\tvar gradientNode = getDefinition(color, 'color');\n\t\tif (!gradientNode) {\n\t\t\tvar gradient = color.getGradient(),\n\t\t\t\tradial = gradient._radial,\n\t\t\t\torigin = color.getOrigin(),\n\t\t\t\tdestination = color.getDestination(),\n\t\t\t\tattrs;\n\t\t\tif (radial) {\n\t\t\t\tattrs = {\n\t\t\t\t\tcx: origin.x,\n\t\t\t\t\tcy: origin.y,\n\t\t\t\t\tr: origin.getDistance(destination)\n\t\t\t\t};\n\t\t\t\tvar highlight = color.getHighlight();\n\t\t\t\tif (highlight) {\n\t\t\t\t\tattrs.fx = highlight.x;\n\t\t\t\t\tattrs.fy = highlight.y;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tattrs = {\n\t\t\t\t\tx1: origin.x,\n\t\t\t\t\ty1: origin.y,\n\t\t\t\t\tx2: destination.x,\n\t\t\t\t\ty2: destination.y\n\t\t\t\t};\n\t\t\t}\n\t\t\tattrs.gradientUnits = 'userSpaceOnUse';\n\t\t\tgradientNode = SvgElement.create((radial ? 'radial' : 'linear')\n\t\t\t\t\t+ 'Gradient', attrs, formatter);\n\t\t\tvar stops = gradient._stops;\n\t\t\tfor (var i = 0, l = stops.length; i < l; i++) {\n\t\t\t\tvar stop = stops[i],\n\t\t\t\t\tstopColor = stop._color,\n\t\t\t\t\talpha = stopColor.getAlpha(),\n\t\t\t\t\toffset = stop._offset;\n\t\t\t\tattrs = {\n\t\t\t\t\toffset: offset == null ? i / (l - 1) : offset\n\t\t\t\t};\n\t\t\t\tif (stopColor)\n\t\t\t\t\tattrs['stop-color'] = stopColor.toCSS(true);\n\t\t\t\tif (alpha < 1)\n\t\t\t\t\tattrs['stop-opacity'] = alpha;\n\t\t\t\tgradientNode.appendChild(\n\t\t\t\t\t\tSvgElement.create('stop', attrs, formatter));\n\t\t\t}\n\t\t\tsetDefinition(color, gradientNode, 'color');\n\t\t}\n\t\treturn 'url(#' + gradientNode.id + ')';\n\t}\n\n\tfunction exportText(item) {\n\t\tvar node = SvgElement.create('text', getTransform(item._matrix, true),\n\t\t\t\tformatter);\n\t\tnode.textContent = item._content;\n\t\treturn node;\n\t}\n\n\tvar exporters = {\n\t\tGroup: exportGroup,\n\t\tLayer: exportGroup,\n\t\tRaster: exportRaster,\n\t\tPath: exportPath,\n\t\tShape: exportShape,\n\t\tCompoundPath: exportCompoundPath,\n\t\tSymbolItem: exportSymbolItem,\n\t\tPointText: exportText\n\t};\n\n\tfunction applyStyle(item, node, options, isRoot) {\n\t\tvar attrs = {},\n\t\t\tparent = !isRoot && item.getParent(),\n\t\t\tstyle = [];\n\n\t\tif (item._name != null)\n\t\t\tattrs.id = item._name;\n\n\t\tBase.each(SvgStyles, function(entry) {\n\t\t\tvar get = entry.get,\n\t\t\t\ttype = entry.type,\n\t\t\t\tvalue = item[get]();\n\t\t\tif (entry.exportFilter\n\t\t\t\t\t? entry.exportFilter(item, value)\n\t\t\t\t\t: options.reduceAttributes == false\n\t\t\t\t\t\t|| !parent || !Base.equals(parent[get](), value)) {\n\t\t\t\tif (type === 'color' && value != null) {\n\t\t\t\t\tvar alpha = value.getAlpha();\n\t\t\t\t\tif (alpha < 1)\n\t\t\t\t\t\tattrs[entry.attribute + '-opacity'] = alpha;\n\t\t\t\t}\n\t\t\t\tif (type === 'style') {\n\t\t\t\t\tstyle.push(entry.attribute + ': ' + value);\n\t\t\t\t} else {\n\t\t\t\t\tattrs[entry.attribute] = value == null ? 'none'\n\t\t\t\t\t\t\t: type === 'color' ? value.gradient\n\t\t\t\t\t\t\t\t? exportGradient(value, item)\n\t\t\t\t\t\t\t\t: value.toCSS(true)\n\t\t\t\t\t\t\t: type === 'array' ? value.join(',')\n\t\t\t\t\t\t\t: type === 'lookup' ? entry.toSVG[value]\n\t\t\t\t\t\t\t: value;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tif (style.length)\n\t\t\tattrs.style = style.join(';');\n\n\t\tif (attrs.opacity === 1)\n\t\t\tdelete attrs.opacity;\n\n\t\tif (!item._visible)\n\t\t\tattrs.visibility = 'hidden';\n\n\t\treturn SvgElement.set(node, attrs, formatter);\n\t}\n\n\tvar definitions;\n\tfunction getDefinition(item, type) {\n\t\tif (!definitions)\n\t\t\tdefinitions = { ids: {}, svgs: {} };\n\t\treturn item && definitions.svgs[type + '-'\n\t\t\t\t+ (item._id || item.__id || (item.__id = UID.get('svg')))];\n\t}\n\n\tfunction setDefinition(item, node, type) {\n\t\tif (!definitions)\n\t\t\tgetDefinition();\n\t\tvar typeId = definitions.ids[type] = (definitions.ids[type] || 0) + 1;\n\t\tnode.id = type + '-' + typeId;\n\t\tdefinitions.svgs[type + '-' + (item._id || item.__id)] = node;\n\t}\n\n\tfunction exportDefinitions(node, options) {\n\t\tvar svg = node,\n\t\t\tdefs = null;\n\t\tif (definitions) {\n\t\t\tsvg = node.nodeName.toLowerCase() === 'svg' && node;\n\t\t\tfor (var i in definitions.svgs) {\n\t\t\t\tif (!defs) {\n\t\t\t\t\tif (!svg) {\n\t\t\t\t\t\tsvg = SvgElement.create('svg');\n\t\t\t\t\t\tsvg.appendChild(node);\n\t\t\t\t\t}\n\t\t\t\t\tdefs = svg.insertBefore(SvgElement.create('defs'),\n\t\t\t\t\t\t\tsvg.firstChild);\n\t\t\t\t}\n\t\t\t\tdefs.appendChild(definitions.svgs[i]);\n\t\t\t}\n\t\t\tdefinitions = null;\n\t\t}\n\t\treturn options.asString\n\t\t\t\t? new self.XMLSerializer().serializeToString(svg)\n\t\t\t\t: svg;\n\t}\n\n\tfunction exportSVG(item, options, isRoot) {\n\t\tvar exporter = exporters[item._class],\n\t\t\tnode = exporter && exporter(item, options);\n\t\tif (node) {\n\t\t\tvar onExport = options.onExport;\n\t\t\tif (onExport)\n\t\t\t\tnode = onExport(item, node, options) || node;\n\t\t\tvar data = JSON.stringify(item._data);\n\t\t\tif (data && data !== '{}' && data !== 'null')\n\t\t\t\tnode.setAttribute('data-paper-data', data);\n\t\t}\n\t\treturn node && applyStyle(item, node, options, isRoot);\n\t}\n\n\tfunction setOptions(options) {\n\t\tif (!options)\n\t\t\toptions = {};\n\t\tformatter = new Formatter(options.precision);\n\t\treturn options;\n\t}\n\n\tItem.inject({\n\t\texportSVG: function(options) {\n\t\t\toptions = setOptions(options);\n\t\t\treturn exportDefinitions(exportSVG(this, options, true), options);\n\t\t}\n\t});\n\n\tProject.inject({\n\t\texportSVG: function(options) {\n\t\t\toptions = setOptions(options);\n\t\t\tvar children = this._children,\n\t\t\t\tview = this.getView(),\n\t\t\t\tbounds = Base.pick(options.bounds, 'view'),\n\t\t\t\tmx = options.matrix || bounds === 'view' && view._matrix,\n\t\t\t\tmatrix = mx && Matrix.read([mx]),\n\t\t\t\trect = bounds === 'view'\n\t\t\t\t\t? new Rectangle([0, 0], view.getViewSize())\n\t\t\t\t\t: bounds === 'content'\n\t\t\t\t\t\t? Item._getBounds(children, matrix, { stroke: true })\n\t\t\t\t\t\t\t.rect\n\t\t\t\t\t\t: Rectangle.read([bounds], 0, { readNull: true }),\n\t\t\t\tattrs = {\n\t\t\t\t\tversion: '1.1',\n\t\t\t\t\txmlns: SvgElement.svg,\n\t\t\t\t\t'xmlns:xlink': SvgElement.xlink,\n\t\t\t\t};\n\t\t\tif (rect) {\n\t\t\t\tattrs.width = rect.width;\n\t\t\t\tattrs.height = rect.height;\n\t\t\t\tif (rect.x || rect.x === 0 || rect.y || rect.y === 0)\n\t\t\t\t\tattrs.viewBox = formatter.rectangle(rect);\n\t\t\t}\n\t\t\tvar node = SvgElement.create('svg', attrs, formatter),\n\t\t\t\tparent = node;\n\t\t\tif (matrix && !matrix.isIdentity()) {\n\t\t\t\tparent = node.appendChild(SvgElement.create('g',\n\t\t\t\t\t\tgetTransform(matrix), formatter));\n\t\t\t}\n\t\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\t\tparent.appendChild(exportSVG(children[i], options, true));\n\t\t\t}\n\t\t\treturn exportDefinitions(node, options);\n\t\t}\n\t});\n};\n\nnew function() {\n\n\tvar definitions = {},\n\t\trootSize;\n\n\tfunction getValue(node, name, isString, allowNull, allowPercent,\n\t\t\tdefaultValue) {\n\t\tvar value = SvgElement.get(node, name) || defaultValue,\n\t\t\tres = value == null\n\t\t\t\t? allowNull\n\t\t\t\t\t? null\n\t\t\t\t\t: isString ? '' : 0\n\t\t\t\t: isString\n\t\t\t\t\t? value\n\t\t\t\t\t: parseFloat(value);\n\t\treturn /%\\s*$/.test(value)\n\t\t\t? (res / 100) * (allowPercent ? 1\n\t\t\t\t: rootSize[/x|^width/.test(name) ? 'width' : 'height'])\n\t\t\t: res;\n\t}\n\n\tfunction getPoint(node, x, y, allowNull, allowPercent, defaultX, defaultY) {\n\t\tx = getValue(node, x || 'x', false, allowNull, allowPercent, defaultX);\n\t\ty = getValue(node, y || 'y', false, allowNull, allowPercent, defaultY);\n\t\treturn allowNull && (x == null || y == null) ? null\n\t\t\t\t: new Point(x, y);\n\t}\n\n\tfunction getSize(node, w, h, allowNull, allowPercent) {\n\t\tw = getValue(node, w || 'width', false, allowNull, allowPercent);\n\t\th = getValue(node, h || 'height', false, allowNull, allowPercent);\n\t\treturn allowNull && (w == null || h == null) ? null\n\t\t\t\t: new Size(w, h);\n\t}\n\n\tfunction convertValue(value, type, lookup) {\n\t\treturn value === 'none' ? null\n\t\t\t\t: type === 'number' ? parseFloat(value)\n\t\t\t\t: type === 'array' ?\n\t\t\t\t\tvalue ? value.split(/[\\s,]+/g).map(parseFloat) : []\n\t\t\t\t: type === 'color' ? getDefinition(value) || value\n\t\t\t\t: type === 'lookup' ? lookup[value]\n\t\t\t\t: value;\n\t}\n\n\tfunction importGroup(node, type, options, isRoot) {\n\t\tvar nodes = node.childNodes,\n\t\t\tisClip = type === 'clippath',\n\t\t\tisDefs = type === 'defs',\n\t\t\titem = new Group(),\n\t\t\tproject = item._project,\n\t\t\tcurrentStyle = project._currentStyle,\n\t\t\tchildren = [];\n\t\tif (!isClip && !isDefs) {\n\t\t\titem = applyAttributes(item, node, isRoot);\n\t\t\tproject._currentStyle = item._style.clone();\n\t\t}\n\t\tif (isRoot) {\n\t\t\tvar defs = node.querySelectorAll('defs');\n\t\t\tfor (var i = 0, l = defs.length; i < l; i++) {\n\t\t\t\timportNode(defs[i], options, false);\n\t\t\t}\n\t\t}\n\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\tvar childNode = nodes[i],\n\t\t\t\tchild;\n\t\t\tif (childNode.nodeType === 1\n\t\t\t\t\t&& !/^defs$/i.test(childNode.nodeName)\n\t\t\t\t\t&& (child = importNode(childNode, options, false))\n\t\t\t\t\t&& !(child instanceof SymbolDefinition))\n\t\t\t\tchildren.push(child);\n\t\t}\n\t\titem.addChildren(children);\n\t\tif (isClip)\n\t\t\titem = applyAttributes(item.reduce(), node, isRoot);\n\t\tproject._currentStyle = currentStyle;\n\t\tif (isClip || isDefs) {\n\t\t\titem.remove();\n\t\t\titem = null;\n\t\t}\n\t\treturn item;\n\t}\n\n\tfunction importPoly(node, type) {\n\t\tvar coords = node.getAttribute('points').match(\n\t\t\t\t\t/[+-]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?/g),\n\t\t\tpoints = [];\n\t\tfor (var i = 0, l = coords.length; i < l; i += 2)\n\t\t\tpoints.push(new Point(\n\t\t\t\t\tparseFloat(coords[i]),\n\t\t\t\t\tparseFloat(coords[i + 1])));\n\t\tvar path = new Path(points);\n\t\tif (type === 'polygon')\n\t\t\tpath.closePath();\n\t\treturn path;\n\t}\n\n\tfunction importPath(node) {\n\t\treturn PathItem.create(node.getAttribute('d'));\n\t}\n\n\tfunction importGradient(node, type) {\n\t\tvar id = (getValue(node, 'href', true) || '').substring(1),\n\t\t\tradial = type === 'radialgradient',\n\t\t\tgradient;\n\t\tif (id) {\n\t\t\tgradient = definitions[id].getGradient();\n\t\t\tif (gradient._radial ^ radial) {\n\t\t\t\tgradient = gradient.clone();\n\t\t\t\tgradient._radial = radial;\n\t\t\t}\n\t\t} else {\n\t\t\tvar nodes = node.childNodes,\n\t\t\t\tstops = [];\n\t\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\t\tvar child = nodes[i];\n\t\t\t\tif (child.nodeType === 1)\n\t\t\t\t\tstops.push(applyAttributes(new GradientStop(), child));\n\t\t\t}\n\t\t\tgradient = new Gradient(stops, radial);\n\t\t}\n\t\tvar origin, destination, highlight,\n\t\t\tscaleToBounds = getValue(node, 'gradientUnits', true) !==\n\t\t\t\t'userSpaceOnUse';\n\t\tif (radial) {\n\t\t\torigin = getPoint(node, 'cx', 'cy', false, scaleToBounds,\n\t\t\t\t'50%', '50%');\n\t\t\tdestination = origin.add(\n\t\t\t\tgetValue(node, 'r', false, false, scaleToBounds, '50%'), 0);\n\t\t\thighlight = getPoint(node, 'fx', 'fy', true, scaleToBounds);\n\t\t} else {\n\t\t\torigin = getPoint(node, 'x1', 'y1', false, scaleToBounds,\n\t\t\t\t'0%', '0%');\n\t\t\tdestination = getPoint(node, 'x2', 'y2', false, scaleToBounds,\n\t\t\t\t'100%', '0%');\n\t\t}\n\t\tvar color = applyAttributes(\n\t\t\t\tnew Color(gradient, origin, destination, highlight), node);\n\t\tcolor._scaleToBounds = scaleToBounds;\n\t\treturn null;\n\t}\n\n\tvar importers = {\n\t\t'#document': function (node, type, options, isRoot) {\n\t\t\tvar nodes = node.childNodes;\n\t\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\t\tvar child = nodes[i];\n\t\t\t\tif (child.nodeType === 1)\n\t\t\t\t\treturn importNode(child, options, isRoot);\n\t\t\t}\n\t\t},\n\t\tg: importGroup,\n\t\tsvg: importGroup,\n\t\tclippath: importGroup,\n\t\tpolygon: importPoly,\n\t\tpolyline: importPoly,\n\t\tpath: importPath,\n\t\tlineargradient: importGradient,\n\t\tradialgradient: importGradient,\n\n\t\timage: function (node) {\n\t\t\tvar raster = new Raster(getValue(node, 'href', true));\n\t\t\traster.on('load', function() {\n\t\t\t\tvar size = getSize(node);\n\t\t\t\tthis.setSize(size);\n\t\t\t\tvar center = getPoint(node).add(size.divide(2));\n\t\t\t\tthis._matrix.append(new Matrix().translate(center));\n\t\t\t});\n\t\t\treturn raster;\n\t\t},\n\n\t\tsymbol: function(node, type, options, isRoot) {\n\t\t\treturn new SymbolDefinition(\n\t\t\t\t\timportGroup(node, type, options, isRoot), true);\n\t\t},\n\n\t\tdefs: importGroup,\n\n\t\tuse: function(node) {\n\t\t\tvar id = (getValue(node, 'href', true) || '').substring(1),\n\t\t\t\tdefinition = definitions[id],\n\t\t\t\tpoint = getPoint(node);\n\t\t\treturn definition\n\t\t\t\t\t? definition instanceof SymbolDefinition\n\t\t\t\t\t\t? definition.place(point)\n\t\t\t\t\t\t: definition.clone().translate(point)\n\t\t\t\t\t: null;\n\t\t},\n\n\t\tcircle: function(node) {\n\t\t\treturn new Shape.Circle(\n\t\t\t\t\tgetPoint(node, 'cx', 'cy'),\n\t\t\t\t\tgetValue(node, 'r'));\n\t\t},\n\n\t\tellipse: function(node) {\n\t\t\treturn new Shape.Ellipse({\n\t\t\t\tcenter: getPoint(node, 'cx', 'cy'),\n\t\t\t\tradius: getSize(node, 'rx', 'ry')\n\t\t\t});\n\t\t},\n\n\t\trect: function(node) {\n\t\t\treturn new Shape.Rectangle(new Rectangle(\n\t\t\t\t\t\tgetPoint(node),\n\t\t\t\t\t\tgetSize(node)\n\t\t\t\t\t), getSize(node, 'rx', 'ry'));\n\t\t\t},\n\n\t\tline: function(node) {\n\t\t\treturn new Path.Line(\n\t\t\t\t\tgetPoint(node, 'x1', 'y1'),\n\t\t\t\t\tgetPoint(node, 'x2', 'y2'));\n\t\t},\n\n\t\ttext: function(node) {\n\t\t\tvar text = new PointText(getPoint(node).add(\n\t\t\t\t\tgetPoint(node, 'dx', 'dy')));\n\t\t\ttext.setContent(node.textContent.trim() || '');\n\t\t\treturn text;\n\t\t},\n\n\t\tswitch: importGroup\n\t};\n\n\tfunction applyTransform(item, value, name, node) {\n\t\tif (item.transform) {\n\t\t\tvar transforms = (node.getAttribute(name) || '').split(/\\)\\s*/g),\n\t\t\t\tmatrix = new Matrix();\n\t\t\tfor (var i = 0, l = transforms.length; i < l; i++) {\n\t\t\t\tvar transform = transforms[i];\n\t\t\t\tif (!transform)\n\t\t\t\t\tbreak;\n\t\t\t\tvar parts = transform.split(/\\(\\s*/),\n\t\t\t\t\tcommand = parts[0].trim(),\n\t\t\t\t\tv = parts[1].split(/[\\s,]+/g);\n\t\t\t\tfor (var j = 0, m = v.length; j < m; j++)\n\t\t\t\t\tv[j] = parseFloat(v[j]);\n\t\t\t\tswitch (command) {\n\t\t\t\tcase 'matrix':\n\t\t\t\t\tmatrix.append(\n\t\t\t\t\t\t\tnew Matrix(v[0], v[1], v[2], v[3], v[4], v[5]));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'rotate':\n\t\t\t\t\tmatrix.rotate(v[0], v[1] || 0, v[2] || 0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'translate':\n\t\t\t\t\tmatrix.translate(v[0], v[1] || 0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'scale':\n\t\t\t\t\tmatrix.scale(v);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'skewX':\n\t\t\t\t\tmatrix.skew(v[0], 0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'skewY':\n\t\t\t\t\tmatrix.skew(0, v[0]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\titem.transform(matrix);\n\t\t}\n\t}\n\n\tfunction applyOpacity(item, value, name) {\n\t\tvar key = name === 'fill-opacity' ? 'getFillColor' : 'getStrokeColor',\n\t\t\tcolor = item[key] && item[key]();\n\t\tif (color)\n\t\t\tcolor.setAlpha(parseFloat(value));\n\t}\n\n\tvar attributes = Base.set(Base.each(SvgStyles, function(entry) {\n\t\tthis[entry.attribute] = function(item, value) {\n\t\t\tif (item[entry.set]) {\n\t\t\t\titem[entry.set](convertValue(value, entry.type, entry.fromSVG));\n\t\t\t\tif (entry.type === 'color') {\n\t\t\t\t\tvar color = item[entry.get]();\n\t\t\t\t\tif (color) {\n\t\t\t\t\t\tif (color._scaleToBounds) {\n\t\t\t\t\t\t\tvar bounds = item.getBounds();\n\t\t\t\t\t\t\tcolor.transform(new Matrix()\n\t\t\t\t\t\t\t\t.translate(bounds.getPoint())\n\t\t\t\t\t\t\t\t.scale(bounds.getSize()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}, {}), {\n\t\tid: function(item, value) {\n\t\t\tdefinitions[value] = item;\n\t\t\tif (item.setName)\n\t\t\t\titem.setName(value);\n\t\t},\n\n\t\t'clip-path': function(item, value) {\n\t\t\tvar clip = getDefinition(value);\n\t\t\tif (clip) {\n\t\t\t\tclip = clip.clone();\n\t\t\t\tclip.setClipMask(true);\n\t\t\t\tif (item instanceof Group) {\n\t\t\t\t\titem.insertChild(0, clip);\n\t\t\t\t} else {\n\t\t\t\t\treturn new Group(clip, item);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tgradientTransform: applyTransform,\n\t\ttransform: applyTransform,\n\n\t\t'fill-opacity': applyOpacity,\n\t\t'stroke-opacity': applyOpacity,\n\n\t\tvisibility: function(item, value) {\n\t\t\tif (item.setVisible)\n\t\t\t\titem.setVisible(value === 'visible');\n\t\t},\n\n\t\tdisplay: function(item, value) {\n\t\t\tif (item.setVisible)\n\t\t\t\titem.setVisible(value !== null);\n\t\t},\n\n\t\t'stop-color': function(item, value) {\n\t\t\tif (item.setColor)\n\t\t\t\titem.setColor(value);\n\t\t},\n\n\t\t'stop-opacity': function(item, value) {\n\t\t\tif (item._color)\n\t\t\t\titem._color.setAlpha(parseFloat(value));\n\t\t},\n\n\t\toffset: function(item, value) {\n\t\t\tif (item.setOffset) {\n\t\t\t\tvar percent = value.match(/(.*)%$/);\n\t\t\t\titem.setOffset(percent ? percent[1] / 100 : parseFloat(value));\n\t\t\t}\n\t\t},\n\n\t\tviewBox: function(item, value, name, node, styles) {\n\t\t\tvar rect = new Rectangle(convertValue(value, 'array')),\n\t\t\t\tsize = getSize(node, null, null, true),\n\t\t\t\tgroup,\n\t\t\t\tmatrix;\n\t\t\tif (item instanceof Group) {\n\t\t\t\tvar scale = size ? size.divide(rect.getSize()) : 1,\n\t\t\t\tmatrix = new Matrix().scale(scale)\n\t\t\t\t\t\t.translate(rect.getPoint().negate());\n\t\t\t\tgroup = item;\n\t\t\t} else if (item instanceof SymbolDefinition) {\n\t\t\t\tif (size)\n\t\t\t\t\trect.setSize(size);\n\t\t\t\tgroup = item._item;\n\t\t\t}\n\t\t\tif (group) {\n\t\t\t\tif (getAttribute(node, 'overflow', styles) !== 'visible') {\n\t\t\t\t\tvar clip = new Shape.Rectangle(rect);\n\t\t\t\t\tclip.setClipMask(true);\n\t\t\t\t\tgroup.addChild(clip);\n\t\t\t\t}\n\t\t\t\tif (matrix)\n\t\t\t\t\tgroup.transform(matrix);\n\t\t\t}\n\t\t}\n\t});\n\n\tfunction getAttribute(node, name, styles) {\n\t\tvar attr = node.attributes[name],\n\t\t\tvalue = attr && attr.value;\n\t\tif (!value && node.style) {\n\t\t\tvar style = Base.camelize(name);\n\t\t\tvalue = node.style[style];\n\t\t\tif (!value && styles.node[style] !== styles.parent[style])\n\t\t\t\tvalue = styles.node[style];\n\t\t}\n\t\treturn !value ? undefined\n\t\t\t\t: value === 'none' ? null\n\t\t\t\t: value;\n\t}\n\n\tfunction applyAttributes(item, node, isRoot) {\n\t\tvar parent = node.parentNode,\n\t\t\tstyles = {\n\t\t\t\tnode: DomElement.getStyles(node) || {},\n\t\t\t\tparent: !isRoot && !/^defs$/i.test(parent.tagName)\n\t\t\t\t\t\t&& DomElement.getStyles(parent) || {}\n\t\t\t};\n\t\tBase.each(attributes, function(apply, name) {\n\t\t\tvar value = getAttribute(node, name, styles);\n\t\t\titem = value !== undefined\n\t\t\t\t\t&& apply(item, value, name, node, styles) || item;\n\t\t});\n\t\treturn item;\n\t}\n\n\tfunction getDefinition(value) {\n\t\tvar match = value && value.match(/\\((?:[\"'#]*)([^\"')]+)/),\n\t\t\tname = match && match[1],\n\t\t\tres = name && definitions[window\n\t\t\t\t\t? name.replace(window.location.href.split('#')[0] + '#', '')\n\t\t\t\t\t: name];\n\t\tif (res && res._scaleToBounds) {\n\t\t\tres = res.clone();\n\t\t\tres._scaleToBounds = true;\n\t\t}\n\t\treturn res;\n\t}\n\n\tfunction importNode(node, options, isRoot) {\n\t\tvar type = node.nodeName.toLowerCase(),\n\t\t\tisElement = type !== '#document',\n\t\t\tbody = document.body,\n\t\t\tcontainer,\n\t\t\tparent,\n\t\t\tnext;\n\t\tif (isRoot && isElement) {\n\t\t\trootSize = paper.getView().getSize();\n\t\t\trootSize = getSize(node, null, null, true) || rootSize;\n\t\t\tcontainer = SvgElement.create('svg', {\n\t\t\t\tstyle: 'stroke-width: 1px; stroke-miterlimit: 10'\n\t\t\t});\n\t\t\tparent = node.parentNode;\n\t\t\tnext = node.nextSibling;\n\t\t\tcontainer.appendChild(node);\n\t\t\tbody.appendChild(container);\n\t\t}\n\t\tvar settings = paper.settings,\n\t\t\tapplyMatrix = settings.applyMatrix,\n\t\t\tinsertItems = settings.insertItems;\n\t\tsettings.applyMatrix = false;\n\t\tsettings.insertItems = false;\n\t\tvar importer = importers[type],\n\t\t\titem = importer && importer(node, type, options, isRoot) || null;\n\t\tsettings.insertItems = insertItems;\n\t\tsettings.applyMatrix = applyMatrix;\n\t\tif (item) {\n\t\t\tif (isElement && !(item instanceof Group))\n\t\t\t\titem = applyAttributes(item, node, isRoot);\n\t\t\tvar onImport = options.onImport,\n\t\t\t\tdata = isElement && node.getAttribute('data-paper-data');\n\t\t\tif (onImport)\n\t\t\t\titem = onImport(node, item, options) || item;\n\t\t\tif (options.expandShapes && item instanceof Shape) {\n\t\t\t\titem.remove();\n\t\t\t\titem = item.toPath();\n\t\t\t}\n\t\t\tif (data)\n\t\t\t\titem._data = JSON.parse(data);\n\t\t}\n\t\tif (container) {\n\t\t\tbody.removeChild(container);\n\t\t\tif (parent) {\n\t\t\t\tif (next) {\n\t\t\t\t\tparent.insertBefore(node, next);\n\t\t\t\t} else {\n\t\t\t\t\tparent.appendChild(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isRoot) {\n\t\t\tdefinitions = {};\n\t\t\tif (item && Base.pick(options.applyMatrix, applyMatrix))\n\t\t\t\titem.matrix.apply(true, true);\n\t\t}\n\t\treturn item;\n\t}\n\n\tfunction importSVG(source, options, owner) {\n\t\tif (!source)\n\t\t\treturn null;\n\t\toptions = typeof options === 'function' ? { onLoad: options }\n\t\t\t\t: options || {};\n\t\tvar scope = paper,\n\t\t\titem = null;\n\n\t\tfunction onLoad(svg) {\n\t\t\ttry {\n\t\t\t\tvar node = typeof svg === 'object'\n\t\t\t\t\t? svg\n\t\t\t\t\t: new self.DOMParser().parseFromString(\n\t\t\t\t\t\tsvg.trim(),\n\t\t\t\t\t\t'image/svg+xml'\n\t\t\t\t\t);\n\t\t\t\tif (!node.nodeName) {\n\t\t\t\t\tnode = null;\n\t\t\t\t\tthrow new Error('Unsupported SVG source: ' + source);\n\t\t\t\t}\n\t\t\t\tpaper = scope;\n\t\t\t\titem = importNode(node, options, true);\n\t\t\t\tif (!options || options.insert !== false) {\n\t\t\t\t\towner._insertItem(undefined, item);\n\t\t\t\t}\n\t\t\t\tvar onLoad = options.onLoad;\n\t\t\t\tif (onLoad)\n\t\t\t\t\tonLoad(item, svg);\n\t\t\t} catch (e) {\n\t\t\t\tonError(e);\n\t\t\t}\n\t\t}\n\n\t\tfunction onError(message, status) {\n\t\t\tvar onError = options.onError;\n\t\t\tif (onError) {\n\t\t\t\tonError(message, status);\n\t\t\t} else {\n\t\t\t\tthrow new Error(message);\n\t\t\t}\n\t\t}\n\n\t\tif (typeof source === 'string' && !/^[\\s\\S]* 3) {\n\t cats.sort(function(a, b) {return b.length - a.length;});\n\t f += \"switch(str.length){\";\n\t for (var i = 0; i < cats.length; ++i) {\n\t\tvar cat = cats[i];\n\t\tf += \"case \" + cat[0].length + \":\";\n\t\tcompareTo(cat);\n\t }\n\t f += \"}\";\n\n\t} else {\n\t compareTo(words);\n\t}\n\treturn new Function(\"str\", f);\n }\n\n var isReservedWord3 = makePredicate(\"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\");\n\n var isReservedWord5 = makePredicate(\"class enum extends super const export import\");\n\n var isStrictReservedWord = makePredicate(\"implements interface let package private protected public static yield\");\n\n var isStrictBadIdWord = makePredicate(\"eval arguments\");\n\n var isKeyword = makePredicate(\"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\");\n\n var nonASCIIwhitespace = /[\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/;\n var nonASCIIidentifierStartChars = \"\\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\";\n var nonASCIIidentifierChars = \"\\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\";\n var nonASCIIidentifierStart = new RegExp(\"[\" + nonASCIIidentifierStartChars + \"]\");\n var nonASCIIidentifier = new RegExp(\"[\" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + \"]\");\n\n var newline = /[\\n\\r\\u2028\\u2029]/;\n\n var lineBreak = /\\r\\n|[\\n\\r\\u2028\\u2029]/g;\n\n var isIdentifierStart = exports.isIdentifierStart = function(code) {\n\tif (code < 65) return code === 36;\n\tif (code < 91) return true;\n\tif (code < 97) return code === 95;\n\tif (code < 123)return true;\n\treturn code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));\n };\n\n var isIdentifierChar = exports.isIdentifierChar = function(code) {\n\tif (code < 48) return code === 36;\n\tif (code < 58) return true;\n\tif (code < 65) return false;\n\tif (code < 91) return true;\n\tif (code < 97) return code === 95;\n\tif (code < 123)return true;\n\treturn code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));\n };\n\n function line_loc_t() {\n\tthis.line = tokCurLine;\n\tthis.column = tokPos - tokLineStart;\n }\n\n function initTokenState() {\n\ttokCurLine = 1;\n\ttokPos = tokLineStart = 0;\n\ttokRegexpAllowed = true;\n\tskipSpace();\n }\n\n function finishToken(type, val) {\n\ttokEnd = tokPos;\n\tif (options.locations) tokEndLoc = new line_loc_t;\n\ttokType = type;\n\tskipSpace();\n\ttokVal = val;\n\ttokRegexpAllowed = type.beforeExpr;\n }\n\n function skipBlockComment() {\n\tvar startLoc = options.onComment && options.locations && new line_loc_t;\n\tvar start = tokPos, end = input.indexOf(\"*/\", tokPos += 2);\n\tif (end === -1) raise(tokPos - 2, \"Unterminated comment\");\n\ttokPos = end + 2;\n\tif (options.locations) {\n\t lineBreak.lastIndex = start;\n\t var match;\n\t while ((match = lineBreak.exec(input)) && match.index < tokPos) {\n\t\t++tokCurLine;\n\t\ttokLineStart = match.index + match[0].length;\n\t }\n\t}\n\tif (options.onComment)\n\t options.onComment(true, input.slice(start + 2, end), start, tokPos,\n\t\t\t\t\t\tstartLoc, options.locations && new line_loc_t);\n }\n\n function skipLineComment() {\n\tvar start = tokPos;\n\tvar startLoc = options.onComment && options.locations && new line_loc_t;\n\tvar ch = input.charCodeAt(tokPos+=2);\n\twhile (tokPos < inputLen && ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233) {\n\t ++tokPos;\n\t ch = input.charCodeAt(tokPos);\n\t}\n\tif (options.onComment)\n\t options.onComment(false, input.slice(start + 2, tokPos), start, tokPos,\n\t\t\t\t\t\tstartLoc, options.locations && new line_loc_t);\n }\n\n function skipSpace() {\n\twhile (tokPos < inputLen) {\n\t var ch = input.charCodeAt(tokPos);\n\t if (ch === 32) {\n\t\t++tokPos;\n\t } else if (ch === 13) {\n\t\t++tokPos;\n\t\tvar next = input.charCodeAt(tokPos);\n\t\tif (next === 10) {\n\t\t ++tokPos;\n\t\t}\n\t\tif (options.locations) {\n\t\t ++tokCurLine;\n\t\t tokLineStart = tokPos;\n\t\t}\n\t } else if (ch === 10 || ch === 8232 || ch === 8233) {\n\t\t++tokPos;\n\t\tif (options.locations) {\n\t\t ++tokCurLine;\n\t\t tokLineStart = tokPos;\n\t\t}\n\t } else if (ch > 8 && ch < 14) {\n\t\t++tokPos;\n\t } else if (ch === 47) {\n\t\tvar next = input.charCodeAt(tokPos + 1);\n\t\tif (next === 42) {\n\t\t skipBlockComment();\n\t\t} else if (next === 47) {\n\t\t skipLineComment();\n\t\t} else break;\n\t } else if (ch === 160) {\n\t\t++tokPos;\n\t } else if (ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {\n\t\t++tokPos;\n\t } else {\n\t\tbreak;\n\t }\n\t}\n }\n\n function readToken_dot() {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (next >= 48 && next <= 57) return readNumber(true);\n\t++tokPos;\n\treturn finishToken(_dot);\n }\n\n function readToken_slash() {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (tokRegexpAllowed) {++tokPos; return readRegexp();}\n\tif (next === 61) return finishOp(_assign, 2);\n\treturn finishOp(_slash, 1);\n }\n\n function readToken_mult_modulo() {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (next === 61) return finishOp(_assign, 2);\n\treturn finishOp(_multiplyModulo, 1);\n }\n\n function readToken_pipe_amp(code) {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (next === code) return finishOp(code === 124 ? _logicalOR : _logicalAND, 2);\n\tif (next === 61) return finishOp(_assign, 2);\n\treturn finishOp(code === 124 ? _bitwiseOR : _bitwiseAND, 1);\n }\n\n function readToken_caret() {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (next === 61) return finishOp(_assign, 2);\n\treturn finishOp(_bitwiseXOR, 1);\n }\n\n function readToken_plus_min(code) {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (next === code) {\n\t if (next == 45 && input.charCodeAt(tokPos + 2) == 62 &&\n\t\t newline.test(input.slice(lastEnd, tokPos))) {\n\t\ttokPos += 3;\n\t\tskipLineComment();\n\t\tskipSpace();\n\t\treturn readToken();\n\t }\n\t return finishOp(_incDec, 2);\n\t}\n\tif (next === 61) return finishOp(_assign, 2);\n\treturn finishOp(_plusMin, 1);\n }\n\n function readToken_lt_gt(code) {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tvar size = 1;\n\tif (next === code) {\n\t size = code === 62 && input.charCodeAt(tokPos + 2) === 62 ? 3 : 2;\n\t if (input.charCodeAt(tokPos + size) === 61) return finishOp(_assign, size + 1);\n\t return finishOp(_bitShift, size);\n\t}\n\tif (next == 33 && code == 60 && input.charCodeAt(tokPos + 2) == 45 &&\n\t\tinput.charCodeAt(tokPos + 3) == 45) {\n\t tokPos += 4;\n\t skipLineComment();\n\t skipSpace();\n\t return readToken();\n\t}\n\tif (next === 61)\n\t size = input.charCodeAt(tokPos + 2) === 61 ? 3 : 2;\n\treturn finishOp(_relational, size);\n }\n\n function readToken_eq_excl(code) {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (next === 61) return finishOp(_equality, input.charCodeAt(tokPos + 2) === 61 ? 3 : 2);\n\treturn finishOp(code === 61 ? _eq : _prefix, 1);\n }\n\n function getTokenFromCode(code) {\n\tswitch(code) {\n\tcase 46:\n\t return readToken_dot();\n\n\tcase 40: ++tokPos; return finishToken(_parenL);\n\tcase 41: ++tokPos; return finishToken(_parenR);\n\tcase 59: ++tokPos; return finishToken(_semi);\n\tcase 44: ++tokPos; return finishToken(_comma);\n\tcase 91: ++tokPos; return finishToken(_bracketL);\n\tcase 93: ++tokPos; return finishToken(_bracketR);\n\tcase 123: ++tokPos; return finishToken(_braceL);\n\tcase 125: ++tokPos; return finishToken(_braceR);\n\tcase 58: ++tokPos; return finishToken(_colon);\n\tcase 63: ++tokPos; return finishToken(_question);\n\n\tcase 48:\n\t var next = input.charCodeAt(tokPos + 1);\n\t if (next === 120 || next === 88) return readHexNumber();\n\tcase 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57:\n\t return readNumber(false);\n\n\tcase 34: case 39:\n\t return readString(code);\n\n\tcase 47:\n\t return readToken_slash(code);\n\n\tcase 37: case 42:\n\t return readToken_mult_modulo();\n\n\tcase 124: case 38:\n\t return readToken_pipe_amp(code);\n\n\tcase 94:\n\t return readToken_caret();\n\n\tcase 43: case 45:\n\t return readToken_plus_min(code);\n\n\tcase 60: case 62:\n\t return readToken_lt_gt(code);\n\n\tcase 61: case 33:\n\t return readToken_eq_excl(code);\n\n\tcase 126:\n\t return finishOp(_prefix, 1);\n\t}\n\n\treturn false;\n }\n\n function readToken(forceRegexp) {\n\tif (!forceRegexp) tokStart = tokPos;\n\telse tokPos = tokStart + 1;\n\tif (options.locations) tokStartLoc = new line_loc_t;\n\tif (forceRegexp) return readRegexp();\n\tif (tokPos >= inputLen) return finishToken(_eof);\n\n\tvar code = input.charCodeAt(tokPos);\n\tif (isIdentifierStart(code) || code === 92 ) return readWord();\n\n\tvar tok = getTokenFromCode(code);\n\n\tif (tok === false) {\n\t var ch = String.fromCharCode(code);\n\t if (ch === \"\\\\\" || nonASCIIidentifierStart.test(ch)) return readWord();\n\t raise(tokPos, \"Unexpected character '\" + ch + \"'\");\n\t}\n\treturn tok;\n }\n\n function finishOp(type, size) {\n\tvar str = input.slice(tokPos, tokPos + size);\n\ttokPos += size;\n\tfinishToken(type, str);\n }\n\n function readRegexp() {\n\tvar content = \"\", escaped, inClass, start = tokPos;\n\tfor (;;) {\n\t if (tokPos >= inputLen) raise(start, \"Unterminated regular expression\");\n\t var ch = input.charAt(tokPos);\n\t if (newline.test(ch)) raise(start, \"Unterminated regular expression\");\n\t if (!escaped) {\n\t\tif (ch === \"[\") inClass = true;\n\t\telse if (ch === \"]\" && inClass) inClass = false;\n\t\telse if (ch === \"/\" && !inClass) break;\n\t\tescaped = ch === \"\\\\\";\n\t } else escaped = false;\n\t ++tokPos;\n\t}\n\tvar content = input.slice(start, tokPos);\n\t++tokPos;\n\tvar mods = readWord1();\n\tif (mods && !/^[gmsiy]*$/.test(mods)) raise(start, \"Invalid regexp flag\");\n\ttry {\n\t var value = new RegExp(content, mods);\n\t} catch (e) {\n\t if (e instanceof SyntaxError) raise(start, e.message);\n\t raise(e);\n\t}\n\treturn finishToken(_regexp, value);\n }\n\n function readInt(radix, len) {\n\tvar start = tokPos, total = 0;\n\tfor (var i = 0, e = len == null ? Infinity : len; i < e; ++i) {\n\t var code = input.charCodeAt(tokPos), val;\n\t if (code >= 97) val = code - 97 + 10;\n\t else if (code >= 65) val = code - 65 + 10;\n\t else if (code >= 48 && code <= 57) val = code - 48;\n\t else val = Infinity;\n\t if (val >= radix) break;\n\t ++tokPos;\n\t total = total * radix + val;\n\t}\n\tif (tokPos === start || len != null && tokPos - start !== len) return null;\n\n\treturn total;\n }\n\n function readHexNumber() {\n\ttokPos += 2;\n\tvar val = readInt(16);\n\tif (val == null) raise(tokStart + 2, \"Expected hexadecimal number\");\n\tif (isIdentifierStart(input.charCodeAt(tokPos))) raise(tokPos, \"Identifier directly after number\");\n\treturn finishToken(_num, val);\n }\n\n function readNumber(startsWithDot) {\n\tvar start = tokPos, isFloat = false, octal = input.charCodeAt(tokPos) === 48;\n\tif (!startsWithDot && readInt(10) === null) raise(start, \"Invalid number\");\n\tif (input.charCodeAt(tokPos) === 46) {\n\t ++tokPos;\n\t readInt(10);\n\t isFloat = true;\n\t}\n\tvar next = input.charCodeAt(tokPos);\n\tif (next === 69 || next === 101) {\n\t next = input.charCodeAt(++tokPos);\n\t if (next === 43 || next === 45) ++tokPos;\n\t if (readInt(10) === null) raise(start, \"Invalid number\");\n\t isFloat = true;\n\t}\n\tif (isIdentifierStart(input.charCodeAt(tokPos))) raise(tokPos, \"Identifier directly after number\");\n\n\tvar str = input.slice(start, tokPos), val;\n\tif (isFloat) val = parseFloat(str);\n\telse if (!octal || str.length === 1) val = parseInt(str, 10);\n\telse if (/[89]/.test(str) || strict) raise(start, \"Invalid number\");\n\telse val = parseInt(str, 8);\n\treturn finishToken(_num, val);\n }\n\n function readString(quote) {\n\ttokPos++;\n\tvar out = \"\";\n\tfor (;;) {\n\t if (tokPos >= inputLen) raise(tokStart, \"Unterminated string constant\");\n\t var ch = input.charCodeAt(tokPos);\n\t if (ch === quote) {\n\t\t++tokPos;\n\t\treturn finishToken(_string, out);\n\t }\n\t if (ch === 92) {\n\t\tch = input.charCodeAt(++tokPos);\n\t\tvar octal = /^[0-7]+/.exec(input.slice(tokPos, tokPos + 3));\n\t\tif (octal) octal = octal[0];\n\t\twhile (octal && parseInt(octal, 8) > 255) octal = octal.slice(0, -1);\n\t\tif (octal === \"0\") octal = null;\n\t\t++tokPos;\n\t\tif (octal) {\n\t\t if (strict) raise(tokPos - 2, \"Octal literal in strict mode\");\n\t\t out += String.fromCharCode(parseInt(octal, 8));\n\t\t tokPos += octal.length - 1;\n\t\t} else {\n\t\t switch (ch) {\n\t\t case 110: out += \"\\n\"; break;\n\t\t case 114: out += \"\\r\"; break;\n\t\t case 120: out += String.fromCharCode(readHexChar(2)); break;\n\t\t case 117: out += String.fromCharCode(readHexChar(4)); break;\n\t\t case 85: out += String.fromCharCode(readHexChar(8)); break;\n\t\t case 116: out += \"\\t\"; break;\n\t\t case 98: out += \"\\b\"; break;\n\t\t case 118: out += \"\\u000b\"; break;\n\t\t case 102: out += \"\\f\"; break;\n\t\t case 48: out += \"\\0\"; break;\n\t\t case 13: if (input.charCodeAt(tokPos) === 10) ++tokPos;\n\t\t case 10:\n\t\t\tif (options.locations) { tokLineStart = tokPos; ++tokCurLine; }\n\t\t\tbreak;\n\t\t default: out += String.fromCharCode(ch); break;\n\t\t }\n\t\t}\n\t } else {\n\t\tif (ch === 13 || ch === 10 || ch === 8232 || ch === 8233) raise(tokStart, \"Unterminated string constant\");\n\t\tout += String.fromCharCode(ch);\n\t\t++tokPos;\n\t }\n\t}\n }\n\n function readHexChar(len) {\n\tvar n = readInt(16, len);\n\tif (n === null) raise(tokStart, \"Bad character escape sequence\");\n\treturn n;\n }\n\n var containsEsc;\n\n function readWord1() {\n\tcontainsEsc = false;\n\tvar word, first = true, start = tokPos;\n\tfor (;;) {\n\t var ch = input.charCodeAt(tokPos);\n\t if (isIdentifierChar(ch)) {\n\t\tif (containsEsc) word += input.charAt(tokPos);\n\t\t++tokPos;\n\t } else if (ch === 92) {\n\t\tif (!containsEsc) word = input.slice(start, tokPos);\n\t\tcontainsEsc = true;\n\t\tif (input.charCodeAt(++tokPos) != 117)\n\t\t raise(tokPos, \"Expecting Unicode escape sequence \\\\uXXXX\");\n\t\t++tokPos;\n\t\tvar esc = readHexChar(4);\n\t\tvar escStr = String.fromCharCode(esc);\n\t\tif (!escStr) raise(tokPos - 1, \"Invalid Unicode escape\");\n\t\tif (!(first ? isIdentifierStart(esc) : isIdentifierChar(esc)))\n\t\t raise(tokPos - 4, \"Invalid Unicode escape\");\n\t\tword += escStr;\n\t } else {\n\t\tbreak;\n\t }\n\t first = false;\n\t}\n\treturn containsEsc ? word : input.slice(start, tokPos);\n }\n\n function readWord() {\n\tvar word = readWord1();\n\tvar type = _name;\n\tif (!containsEsc && isKeyword(word))\n\t type = keywordTypes[word];\n\treturn finishToken(type, word);\n }\n\n function next() {\n\tlastStart = tokStart;\n\tlastEnd = tokEnd;\n\tlastEndLoc = tokEndLoc;\n\treadToken();\n }\n\n function setStrict(strct) {\n\tstrict = strct;\n\ttokPos = tokStart;\n\tif (options.locations) {\n\t while (tokPos < tokLineStart) {\n\t\ttokLineStart = input.lastIndexOf(\"\\n\", tokLineStart - 2) + 1;\n\t\t--tokCurLine;\n\t }\n\t}\n\tskipSpace();\n\treadToken();\n }\n\n function node_t() {\n\tthis.type = null;\n\tthis.start = tokStart;\n\tthis.end = null;\n }\n\n function node_loc_t() {\n\tthis.start = tokStartLoc;\n\tthis.end = null;\n\tif (sourceFile !== null) this.source = sourceFile;\n }\n\n function startNode() {\n\tvar node = new node_t();\n\tif (options.locations)\n\t node.loc = new node_loc_t();\n\tif (options.directSourceFile)\n\t node.sourceFile = options.directSourceFile;\n\tif (options.ranges)\n\t node.range = [tokStart, 0];\n\treturn node;\n }\n\n function startNodeFrom(other) {\n\tvar node = new node_t();\n\tnode.start = other.start;\n\tif (options.locations) {\n\t node.loc = new node_loc_t();\n\t node.loc.start = other.loc.start;\n\t}\n\tif (options.ranges)\n\t node.range = [other.range[0], 0];\n\n\treturn node;\n }\n\n function finishNode(node, type) {\n\tnode.type = type;\n\tnode.end = lastEnd;\n\tif (options.locations)\n\t node.loc.end = lastEndLoc;\n\tif (options.ranges)\n\t node.range[1] = lastEnd;\n\treturn node;\n }\n\n function isUseStrict(stmt) {\n\treturn options.ecmaVersion >= 5 && stmt.type === \"ExpressionStatement\" &&\n\t stmt.expression.type === \"Literal\" && stmt.expression.value === \"use strict\";\n }\n\n function eat(type) {\n\tif (tokType === type) {\n\t next();\n\t return true;\n\t}\n }\n\n function canInsertSemicolon() {\n\treturn !options.strictSemicolons &&\n\t (tokType === _eof || tokType === _braceR || newline.test(input.slice(lastEnd, tokStart)));\n }\n\n function semicolon() {\n\tif (!eat(_semi) && !canInsertSemicolon()) unexpected();\n }\n\n function expect(type) {\n\tif (tokType === type) next();\n\telse unexpected();\n }\n\n function unexpected() {\n\traise(tokStart, \"Unexpected token\");\n }\n\n function checkLVal(expr) {\n\tif (expr.type !== \"Identifier\" && expr.type !== \"MemberExpression\")\n\t raise(expr.start, \"Assigning to rvalue\");\n\tif (strict && expr.type === \"Identifier\" && isStrictBadIdWord(expr.name))\n\t raise(expr.start, \"Assigning to \" + expr.name + \" in strict mode\");\n }\n\n function parseTopLevel(program) {\n\tlastStart = lastEnd = tokPos;\n\tif (options.locations) lastEndLoc = new line_loc_t;\n\tinFunction = strict = null;\n\tlabels = [];\n\treadToken();\n\n\tvar node = program || startNode(), first = true;\n\tif (!program) node.body = [];\n\twhile (tokType !== _eof) {\n\t var stmt = parseStatement();\n\t node.body.push(stmt);\n\t if (first && isUseStrict(stmt)) setStrict(true);\n\t first = false;\n\t}\n\treturn finishNode(node, \"Program\");\n }\n\n var loopLabel = {kind: \"loop\"}, switchLabel = {kind: \"switch\"};\n\n function parseStatement() {\n\tif (tokType === _slash || tokType === _assign && tokVal == \"/=\")\n\t readToken(true);\n\n\tvar starttype = tokType, node = startNode();\n\n\tswitch (starttype) {\n\tcase _break: case _continue:\n\t next();\n\t var isBreak = starttype === _break;\n\t if (eat(_semi) || canInsertSemicolon()) node.label = null;\n\t else if (tokType !== _name) unexpected();\n\t else {\n\t\tnode.label = parseIdent();\n\t\tsemicolon();\n\t }\n\n\t for (var i = 0; i < labels.length; ++i) {\n\t\tvar lab = labels[i];\n\t\tif (node.label == null || lab.name === node.label.name) {\n\t\t if (lab.kind != null && (isBreak || lab.kind === \"loop\")) break;\n\t\t if (node.label && isBreak) break;\n\t\t}\n\t }\n\t if (i === labels.length) raise(node.start, \"Unsyntactic \" + starttype.keyword);\n\t return finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\");\n\n\tcase _debugger:\n\t next();\n\t semicolon();\n\t return finishNode(node, \"DebuggerStatement\");\n\n\tcase _do:\n\t next();\n\t labels.push(loopLabel);\n\t node.body = parseStatement();\n\t labels.pop();\n\t expect(_while);\n\t node.test = parseParenExpression();\n\t semicolon();\n\t return finishNode(node, \"DoWhileStatement\");\n\n\tcase _for:\n\t next();\n\t labels.push(loopLabel);\n\t expect(_parenL);\n\t if (tokType === _semi) return parseFor(node, null);\n\t if (tokType === _var) {\n\t\tvar init = startNode();\n\t\tnext();\n\t\tparseVar(init, true);\n\t\tfinishNode(init, \"VariableDeclaration\");\n\t\tif (init.declarations.length === 1 && eat(_in))\n\t\t return parseForIn(node, init);\n\t\treturn parseFor(node, init);\n\t }\n\t var init = parseExpression(false, true);\n\t if (eat(_in)) {checkLVal(init); return parseForIn(node, init);}\n\t return parseFor(node, init);\n\n\tcase _function:\n\t next();\n\t return parseFunction(node, true);\n\n\tcase _if:\n\t next();\n\t node.test = parseParenExpression();\n\t node.consequent = parseStatement();\n\t node.alternate = eat(_else) ? parseStatement() : null;\n\t return finishNode(node, \"IfStatement\");\n\n\tcase _return:\n\t if (!inFunction && !options.allowReturnOutsideFunction)\n\t\traise(tokStart, \"'return' outside of function\");\n\t next();\n\n\t if (eat(_semi) || canInsertSemicolon()) node.argument = null;\n\t else { node.argument = parseExpression(); semicolon(); }\n\t return finishNode(node, \"ReturnStatement\");\n\n\tcase _switch:\n\t next();\n\t node.discriminant = parseParenExpression();\n\t node.cases = [];\n\t expect(_braceL);\n\t labels.push(switchLabel);\n\n\t for (var cur, sawDefault; tokType != _braceR;) {\n\t\tif (tokType === _case || tokType === _default) {\n\t\t var isCase = tokType === _case;\n\t\t if (cur) finishNode(cur, \"SwitchCase\");\n\t\t node.cases.push(cur = startNode());\n\t\t cur.consequent = [];\n\t\t next();\n\t\t if (isCase) cur.test = parseExpression();\n\t\t else {\n\t\t\tif (sawDefault) raise(lastStart, \"Multiple default clauses\"); sawDefault = true;\n\t\t\tcur.test = null;\n\t\t }\n\t\t expect(_colon);\n\t\t} else {\n\t\t if (!cur) unexpected();\n\t\t cur.consequent.push(parseStatement());\n\t\t}\n\t }\n\t if (cur) finishNode(cur, \"SwitchCase\");\n\t next();\n\t labels.pop();\n\t return finishNode(node, \"SwitchStatement\");\n\n\tcase _throw:\n\t next();\n\t if (newline.test(input.slice(lastEnd, tokStart)))\n\t\traise(lastEnd, \"Illegal newline after throw\");\n\t node.argument = parseExpression();\n\t semicolon();\n\t return finishNode(node, \"ThrowStatement\");\n\n\tcase _try:\n\t next();\n\t node.block = parseBlock();\n\t node.handler = null;\n\t if (tokType === _catch) {\n\t\tvar clause = startNode();\n\t\tnext();\n\t\texpect(_parenL);\n\t\tclause.param = parseIdent();\n\t\tif (strict && isStrictBadIdWord(clause.param.name))\n\t\t raise(clause.param.start, \"Binding \" + clause.param.name + \" in strict mode\");\n\t\texpect(_parenR);\n\t\tclause.guard = null;\n\t\tclause.body = parseBlock();\n\t\tnode.handler = finishNode(clause, \"CatchClause\");\n\t }\n\t node.guardedHandlers = empty;\n\t node.finalizer = eat(_finally) ? parseBlock() : null;\n\t if (!node.handler && !node.finalizer)\n\t\traise(node.start, \"Missing catch or finally clause\");\n\t return finishNode(node, \"TryStatement\");\n\n\tcase _var:\n\t next();\n\t parseVar(node);\n\t semicolon();\n\t return finishNode(node, \"VariableDeclaration\");\n\n\tcase _while:\n\t next();\n\t node.test = parseParenExpression();\n\t labels.push(loopLabel);\n\t node.body = parseStatement();\n\t labels.pop();\n\t return finishNode(node, \"WhileStatement\");\n\n\tcase _with:\n\t if (strict) raise(tokStart, \"'with' in strict mode\");\n\t next();\n\t node.object = parseParenExpression();\n\t node.body = parseStatement();\n\t return finishNode(node, \"WithStatement\");\n\n\tcase _braceL:\n\t return parseBlock();\n\n\tcase _semi:\n\t next();\n\t return finishNode(node, \"EmptyStatement\");\n\n\tdefault:\n\t var maybeName = tokVal, expr = parseExpression();\n\t if (starttype === _name && expr.type === \"Identifier\" && eat(_colon)) {\n\t\tfor (var i = 0; i < labels.length; ++i)\n\t\t if (labels[i].name === maybeName) raise(expr.start, \"Label '\" + maybeName + \"' is already declared\");\n\t\tvar kind = tokType.isLoop ? \"loop\" : tokType === _switch ? \"switch\" : null;\n\t\tlabels.push({name: maybeName, kind: kind});\n\t\tnode.body = parseStatement();\n\t\tlabels.pop();\n\t\tnode.label = expr;\n\t\treturn finishNode(node, \"LabeledStatement\");\n\t } else {\n\t\tnode.expression = expr;\n\t\tsemicolon();\n\t\treturn finishNode(node, \"ExpressionStatement\");\n\t }\n\t}\n }\n\n function parseParenExpression() {\n\texpect(_parenL);\n\tvar val = parseExpression();\n\texpect(_parenR);\n\treturn val;\n }\n\n function parseBlock(allowStrict) {\n\tvar node = startNode(), first = true, strict = false, oldStrict;\n\tnode.body = [];\n\texpect(_braceL);\n\twhile (!eat(_braceR)) {\n\t var stmt = parseStatement();\n\t node.body.push(stmt);\n\t if (first && allowStrict && isUseStrict(stmt)) {\n\t\toldStrict = strict;\n\t\tsetStrict(strict = true);\n\t }\n\t first = false;\n\t}\n\tif (strict && !oldStrict) setStrict(false);\n\treturn finishNode(node, \"BlockStatement\");\n }\n\n function parseFor(node, init) {\n\tnode.init = init;\n\texpect(_semi);\n\tnode.test = tokType === _semi ? null : parseExpression();\n\texpect(_semi);\n\tnode.update = tokType === _parenR ? null : parseExpression();\n\texpect(_parenR);\n\tnode.body = parseStatement();\n\tlabels.pop();\n\treturn finishNode(node, \"ForStatement\");\n }\n\n function parseForIn(node, init) {\n\tnode.left = init;\n\tnode.right = parseExpression();\n\texpect(_parenR);\n\tnode.body = parseStatement();\n\tlabels.pop();\n\treturn finishNode(node, \"ForInStatement\");\n }\n\n function parseVar(node, noIn) {\n\tnode.declarations = [];\n\tnode.kind = \"var\";\n\tfor (;;) {\n\t var decl = startNode();\n\t decl.id = parseIdent();\n\t if (strict && isStrictBadIdWord(decl.id.name))\n\t\traise(decl.id.start, \"Binding \" + decl.id.name + \" in strict mode\");\n\t decl.init = eat(_eq) ? parseExpression(true, noIn) : null;\n\t node.declarations.push(finishNode(decl, \"VariableDeclarator\"));\n\t if (!eat(_comma)) break;\n\t}\n\treturn node;\n }\n\n function parseExpression(noComma, noIn) {\n\tvar expr = parseMaybeAssign(noIn);\n\tif (!noComma && tokType === _comma) {\n\t var node = startNodeFrom(expr);\n\t node.expressions = [expr];\n\t while (eat(_comma)) node.expressions.push(parseMaybeAssign(noIn));\n\t return finishNode(node, \"SequenceExpression\");\n\t}\n\treturn expr;\n }\n\n function parseMaybeAssign(noIn) {\n\tvar left = parseMaybeConditional(noIn);\n\tif (tokType.isAssign) {\n\t var node = startNodeFrom(left);\n\t node.operator = tokVal;\n\t node.left = left;\n\t next();\n\t node.right = parseMaybeAssign(noIn);\n\t checkLVal(left);\n\t return finishNode(node, \"AssignmentExpression\");\n\t}\n\treturn left;\n }\n\n function parseMaybeConditional(noIn) {\n\tvar expr = parseExprOps(noIn);\n\tif (eat(_question)) {\n\t var node = startNodeFrom(expr);\n\t node.test = expr;\n\t node.consequent = parseExpression(true);\n\t expect(_colon);\n\t node.alternate = parseExpression(true, noIn);\n\t return finishNode(node, \"ConditionalExpression\");\n\t}\n\treturn expr;\n }\n\n function parseExprOps(noIn) {\n\treturn parseExprOp(parseMaybeUnary(), -1, noIn);\n }\n\n function parseExprOp(left, minPrec, noIn) {\n\tvar prec = tokType.binop;\n\tif (prec != null && (!noIn || tokType !== _in)) {\n\t if (prec > minPrec) {\n\t\tvar node = startNodeFrom(left);\n\t\tnode.left = left;\n\t\tnode.operator = tokVal;\n\t\tvar op = tokType;\n\t\tnext();\n\t\tnode.right = parseExprOp(parseMaybeUnary(), prec, noIn);\n\t\tvar exprNode = finishNode(node, (op === _logicalOR || op === _logicalAND) ? \"LogicalExpression\" : \"BinaryExpression\");\n\t\treturn parseExprOp(exprNode, minPrec, noIn);\n\t }\n\t}\n\treturn left;\n }\n\n function parseMaybeUnary() {\n\tif (tokType.prefix) {\n\t var node = startNode(), update = tokType.isUpdate;\n\t node.operator = tokVal;\n\t node.prefix = true;\n\t tokRegexpAllowed = true;\n\t next();\n\t node.argument = parseMaybeUnary();\n\t if (update) checkLVal(node.argument);\n\t else if (strict && node.operator === \"delete\" &&\n\t\t\t node.argument.type === \"Identifier\")\n\t\traise(node.start, \"Deleting local variable in strict mode\");\n\t return finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\");\n\t}\n\tvar expr = parseExprSubscripts();\n\twhile (tokType.postfix && !canInsertSemicolon()) {\n\t var node = startNodeFrom(expr);\n\t node.operator = tokVal;\n\t node.prefix = false;\n\t node.argument = expr;\n\t checkLVal(expr);\n\t next();\n\t expr = finishNode(node, \"UpdateExpression\");\n\t}\n\treturn expr;\n }\n\n function parseExprSubscripts() {\n\treturn parseSubscripts(parseExprAtom());\n }\n\n function parseSubscripts(base, noCalls) {\n\tif (eat(_dot)) {\n\t var node = startNodeFrom(base);\n\t node.object = base;\n\t node.property = parseIdent(true);\n\t node.computed = false;\n\t return parseSubscripts(finishNode(node, \"MemberExpression\"), noCalls);\n\t} else if (eat(_bracketL)) {\n\t var node = startNodeFrom(base);\n\t node.object = base;\n\t node.property = parseExpression();\n\t node.computed = true;\n\t expect(_bracketR);\n\t return parseSubscripts(finishNode(node, \"MemberExpression\"), noCalls);\n\t} else if (!noCalls && eat(_parenL)) {\n\t var node = startNodeFrom(base);\n\t node.callee = base;\n\t node.arguments = parseExprList(_parenR, false);\n\t return parseSubscripts(finishNode(node, \"CallExpression\"), noCalls);\n\t} else return base;\n }\n\n function parseExprAtom() {\n\tswitch (tokType) {\n\tcase _this:\n\t var node = startNode();\n\t next();\n\t return finishNode(node, \"ThisExpression\");\n\tcase _name:\n\t return parseIdent();\n\tcase _num: case _string: case _regexp:\n\t var node = startNode();\n\t node.value = tokVal;\n\t node.raw = input.slice(tokStart, tokEnd);\n\t next();\n\t return finishNode(node, \"Literal\");\n\n\tcase _null: case _true: case _false:\n\t var node = startNode();\n\t node.value = tokType.atomValue;\n\t node.raw = tokType.keyword;\n\t next();\n\t return finishNode(node, \"Literal\");\n\n\tcase _parenL:\n\t var tokStartLoc1 = tokStartLoc, tokStart1 = tokStart;\n\t next();\n\t var val = parseExpression();\n\t val.start = tokStart1;\n\t val.end = tokEnd;\n\t if (options.locations) {\n\t\tval.loc.start = tokStartLoc1;\n\t\tval.loc.end = tokEndLoc;\n\t }\n\t if (options.ranges)\n\t\tval.range = [tokStart1, tokEnd];\n\t expect(_parenR);\n\t return val;\n\n\tcase _bracketL:\n\t var node = startNode();\n\t next();\n\t node.elements = parseExprList(_bracketR, true, true);\n\t return finishNode(node, \"ArrayExpression\");\n\n\tcase _braceL:\n\t return parseObj();\n\n\tcase _function:\n\t var node = startNode();\n\t next();\n\t return parseFunction(node, false);\n\n\tcase _new:\n\t return parseNew();\n\n\tdefault:\n\t unexpected();\n\t}\n }\n\n function parseNew() {\n\tvar node = startNode();\n\tnext();\n\tnode.callee = parseSubscripts(parseExprAtom(), true);\n\tif (eat(_parenL)) node.arguments = parseExprList(_parenR, false);\n\telse node.arguments = empty;\n\treturn finishNode(node, \"NewExpression\");\n }\n\n function parseObj() {\n\tvar node = startNode(), first = true, sawGetSet = false;\n\tnode.properties = [];\n\tnext();\n\twhile (!eat(_braceR)) {\n\t if (!first) {\n\t\texpect(_comma);\n\t\tif (options.allowTrailingCommas && eat(_braceR)) break;\n\t } else first = false;\n\n\t var prop = {key: parsePropertyName()}, isGetSet = false, kind;\n\t if (eat(_colon)) {\n\t\tprop.value = parseExpression(true);\n\t\tkind = prop.kind = \"init\";\n\t } else if (options.ecmaVersion >= 5 && prop.key.type === \"Identifier\" &&\n\t\t\t\t (prop.key.name === \"get\" || prop.key.name === \"set\")) {\n\t\tisGetSet = sawGetSet = true;\n\t\tkind = prop.kind = prop.key.name;\n\t\tprop.key = parsePropertyName();\n\t\tif (tokType !== _parenL) unexpected();\n\t\tprop.value = parseFunction(startNode(), false);\n\t } else unexpected();\n\n\t if (prop.key.type === \"Identifier\" && (strict || sawGetSet)) {\n\t\tfor (var i = 0; i < node.properties.length; ++i) {\n\t\t var other = node.properties[i];\n\t\t if (other.key.name === prop.key.name) {\n\t\t\tvar conflict = kind == other.kind || isGetSet && other.kind === \"init\" ||\n\t\t\t kind === \"init\" && (other.kind === \"get\" || other.kind === \"set\");\n\t\t\tif (conflict && !strict && kind === \"init\" && other.kind === \"init\") conflict = false;\n\t\t\tif (conflict) raise(prop.key.start, \"Redefinition of property\");\n\t\t }\n\t\t}\n\t }\n\t node.properties.push(prop);\n\t}\n\treturn finishNode(node, \"ObjectExpression\");\n }\n\n function parsePropertyName() {\n\tif (tokType === _num || tokType === _string) return parseExprAtom();\n\treturn parseIdent(true);\n }\n\n function parseFunction(node, isStatement) {\n\tif (tokType === _name) node.id = parseIdent();\n\telse if (isStatement) unexpected();\n\telse node.id = null;\n\tnode.params = [];\n\tvar first = true;\n\texpect(_parenL);\n\twhile (!eat(_parenR)) {\n\t if (!first) expect(_comma); else first = false;\n\t node.params.push(parseIdent());\n\t}\n\n\tvar oldInFunc = inFunction, oldLabels = labels;\n\tinFunction = true; labels = [];\n\tnode.body = parseBlock(true);\n\tinFunction = oldInFunc; labels = oldLabels;\n\n\tif (strict || node.body.body.length && isUseStrict(node.body.body[0])) {\n\t for (var i = node.id ? -1 : 0; i < node.params.length; ++i) {\n\t\tvar id = i < 0 ? node.id : node.params[i];\n\t\tif (isStrictReservedWord(id.name) || isStrictBadIdWord(id.name))\n\t\t raise(id.start, \"Defining '\" + id.name + \"' in strict mode\");\n\t\tif (i >= 0) for (var j = 0; j < i; ++j) if (id.name === node.params[j].name)\n\t\t raise(id.start, \"Argument name clash in strict mode\");\n\t }\n\t}\n\n\treturn finishNode(node, isStatement ? \"FunctionDeclaration\" : \"FunctionExpression\");\n }\n\n function parseExprList(close, allowTrailingComma, allowEmpty) {\n\tvar elts = [], first = true;\n\twhile (!eat(close)) {\n\t if (!first) {\n\t\texpect(_comma);\n\t\tif (allowTrailingComma && options.allowTrailingCommas && eat(close)) break;\n\t } else first = false;\n\n\t if (allowEmpty && tokType === _comma) elts.push(null);\n\t else elts.push(parseExpression(true));\n\t}\n\treturn elts;\n }\n\n function parseIdent(liberal) {\n\tvar node = startNode();\n\tif (liberal && options.forbidReserved == \"everywhere\") liberal = false;\n\tif (tokType === _name) {\n\t if (!liberal &&\n\t\t (options.forbidReserved &&\n\t\t (options.ecmaVersion === 3 ? isReservedWord3 : isReservedWord5)(tokVal) ||\n\t\t strict && isStrictReservedWord(tokVal)) &&\n\t\t input.slice(tokStart, tokEnd).indexOf(\"\\\\\") == -1)\n\t\traise(tokStart, \"The keyword '\" + tokVal + \"' is reserved\");\n\t node.name = tokVal;\n\t} else if (liberal && tokType.keyword) {\n\t node.name = tokType.keyword;\n\t} else {\n\t unexpected();\n\t}\n\ttokRegexpAllowed = false;\n\tnext();\n\treturn finishNode(node, \"Identifier\");\n }\n\n});\n\n\t\tif (!acorn.version)\n\t\t\tacorn = null;\n\t}\n\n\tfunction parse(code, options) {\n\t\treturn (global.acorn || acorn).parse(code, options);\n\t}\n\n\tvar binaryOperators = {\n\t\t'+': '__add',\n\t\t'-': '__subtract',\n\t\t'*': '__multiply',\n\t\t'/': '__divide',\n\t\t'%': '__modulo',\n\t\t'==': '__equals',\n\t\t'!=': '__equals'\n\t};\n\n\tvar unaryOperators = {\n\t\t'-': '__negate',\n\t\t'+': '__self'\n\t};\n\n\tvar fields = Base.each(\n\t\t['add', 'subtract', 'multiply', 'divide', 'modulo', 'equals', 'negate'],\n\t\tfunction(name) {\n\t\t\tthis['__' + name] = '#' + name;\n\t\t},\n\t\t{\n\t\t\t__self: function() {\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}\n\t);\n\tPoint.inject(fields);\n\tSize.inject(fields);\n\tColor.inject(fields);\n\n\tfunction __$__(left, operator, right) {\n\t\tvar handler = binaryOperators[operator];\n\t\tif (left && left[handler]) {\n\t\t\tvar res = left[handler](right);\n\t\t\treturn operator === '!=' ? !res : res;\n\t\t}\n\t\tswitch (operator) {\n\t\tcase '+': return left + right;\n\t\tcase '-': return left - right;\n\t\tcase '*': return left * right;\n\t\tcase '/': return left / right;\n\t\tcase '%': return left % right;\n\t\tcase '==': return left == right;\n\t\tcase '!=': return left != right;\n\t\t}\n\t}\n\n\tfunction $__(operator, value) {\n\t\tvar handler = unaryOperators[operator];\n\t\tif (value && value[handler])\n\t\t\treturn value[handler]();\n\t\tswitch (operator) {\n\t\tcase '+': return +value;\n\t\tcase '-': return -value;\n\t\t}\n\t}\n\n\tfunction compile(code, options) {\n\t\tif (!code)\n\t\t\treturn '';\n\t\toptions = options || {};\n\n\t\tvar insertions = [];\n\n\t\tfunction getOffset(offset) {\n\t\t\tfor (var i = 0, l = insertions.length; i < l; i++) {\n\t\t\t\tvar insertion = insertions[i];\n\t\t\t\tif (insertion[0] >= offset)\n\t\t\t\t\tbreak;\n\t\t\t\toffset += insertion[1];\n\t\t\t}\n\t\t\treturn offset;\n\t\t}\n\n\t\tfunction getCode(node) {\n\t\t\treturn code.substring(getOffset(node.range[0]),\n\t\t\t\t\tgetOffset(node.range[1]));\n\t\t}\n\n\t\tfunction getBetween(left, right) {\n\t\t\treturn code.substring(getOffset(left.range[1]),\n\t\t\t\t\tgetOffset(right.range[0]));\n\t\t}\n\n\t\tfunction replaceCode(node, str) {\n\t\t\tvar start = getOffset(node.range[0]),\n\t\t\t\tend = getOffset(node.range[1]),\n\t\t\t\tinsert = 0;\n\t\t\tfor (var i = insertions.length - 1; i >= 0; i--) {\n\t\t\t\tif (start > insertions[i][0]) {\n\t\t\t\t\tinsert = i + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tinsertions.splice(insert, 0, [start, str.length - end + start]);\n\t\t\tcode = code.substring(0, start) + str + code.substring(end);\n\t\t}\n\n\t\tfunction handleOverloading(node, parent) {\n\t\t\tswitch (node.type) {\n\t\t\tcase 'UnaryExpression':\n\t\t\t\tif (node.operator in unaryOperators\n\t\t\t\t\t\t&& node.argument.type !== 'Literal') {\n\t\t\t\t\tvar arg = getCode(node.argument);\n\t\t\t\t\treplaceCode(node, '$__(\"' + node.operator + '\", '\n\t\t\t\t\t\t\t+ arg + ')');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'BinaryExpression':\n\t\t\t\tif (node.operator in binaryOperators\n\t\t\t\t\t\t&& node.left.type !== 'Literal') {\n\t\t\t\t\tvar left = getCode(node.left),\n\t\t\t\t\t\tright = getCode(node.right),\n\t\t\t\t\t\tbetween = getBetween(node.left, node.right),\n\t\t\t\t\t\toperator = node.operator;\n\t\t\t\t\treplaceCode(node, '__$__(' + left + ','\n\t\t\t\t\t\t\t+ between.replace(new RegExp('\\\\' + operator),\n\t\t\t\t\t\t\t\t'\"' + operator + '\"')\n\t\t\t\t\t\t\t+ ', ' + right + ')');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'UpdateExpression':\n\t\t\tcase 'AssignmentExpression':\n\t\t\t\tvar parentType = parent && parent.type;\n\t\t\t\tif (!(\n\t\t\t\t\t\tparentType === 'ForStatement'\n\t\t\t\t\t\t|| parentType === 'BinaryExpression'\n\t\t\t\t\t\t\t&& /^[=!<>]/.test(parent.operator)\n\t\t\t\t\t\t|| parentType === 'MemberExpression' && parent.computed\n\t\t\t\t)) {\n\t\t\t\t\tif (node.type === 'UpdateExpression') {\n\t\t\t\t\t\tvar arg = getCode(node.argument),\n\t\t\t\t\t\t\texp = '__$__(' + arg + ', \"' + node.operator[0]\n\t\t\t\t\t\t\t\t\t+ '\", 1)',\n\t\t\t\t\t\t\tstr = arg + ' = ' + exp;\n\t\t\t\t\t\tif (node.prefix) {\n\t\t\t\t\t\t\tstr = '(' + str + ')';\n\t\t\t\t\t\t} else if (\n\t\t\t\t\t\t\tparentType === 'AssignmentExpression' ||\n\t\t\t\t\t\t\tparentType === 'VariableDeclarator' ||\n\t\t\t\t\t\t\tparentType === 'BinaryExpression'\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tif (getCode(parent.left || parent.id) === arg)\n\t\t\t\t\t\t\t\tstr = exp;\n\t\t\t\t\t\t\tstr = arg + '; ' + str;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treplaceCode(node, str);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (/^.=$/.test(node.operator)\n\t\t\t\t\t\t\t\t&& node.left.type !== 'Literal') {\n\t\t\t\t\t\t\tvar left = getCode(node.left),\n\t\t\t\t\t\t\t\tright = getCode(node.right),\n\t\t\t\t\t\t\t\texp = left + ' = __$__(' + left + ', \"'\n\t\t\t\t\t\t\t\t\t+ node.operator[0] + '\", ' + right + ')';\n\t\t\t\t\t\t\treplaceCode(node, /^\\(.*\\)$/.test(getCode(node))\n\t\t\t\t\t\t\t\t\t? '(' + exp + ')' : exp);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfunction handleExports(node) {\n\t\t\tswitch (node.type) {\n\t\t\tcase 'ExportDefaultDeclaration':\n\t\t\t\treplaceCode({\n\t\t\t\t\trange: [node.start, node.declaration.start]\n\t\t\t\t}, 'module.exports = ');\n\t\t\t\tbreak;\n\t\t\tcase 'ExportNamedDeclaration':\n\t\t\t\tvar declaration = node.declaration;\n\t\t\t\tvar specifiers = node.specifiers;\n\t\t\t\tif (declaration) {\n\t\t\t\t\tvar declarations = declaration.declarations;\n\t\t\t\t\tif (declarations) {\n\t\t\t\t\t\tdeclarations.forEach(function(dec) {\n\t\t\t\t\t\t\treplaceCode(dec, 'module.exports.' + getCode(dec));\n\t\t\t\t\t\t});\n\t\t\t\t\t\treplaceCode({\n\t\t\t\t\t\t\trange: [\n\t\t\t\t\t\t\t\tnode.start,\n\t\t\t\t\t\t\t\tdeclaration.start + declaration.kind.length\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}, '');\n\t\t\t\t\t}\n\t\t\t\t} else if (specifiers) {\n\t\t\t\t\tvar exports = specifiers.map(function(specifier) {\n\t\t\t\t\t\tvar name = getCode(specifier);\n\t\t\t\t\t\treturn 'module.exports.' + name + ' = ' + name + '; ';\n\t\t\t\t\t}).join('');\n\t\t\t\t\tif (exports) {\n\t\t\t\t\t\treplaceCode(node, exports);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfunction walkAST(node, parent, paperFeatures) {\n\t\t\tif (node) {\n\t\t\t\tfor (var key in node) {\n\t\t\t\t\tif (key !== 'range' && key !== 'loc') {\n\t\t\t\t\t\tvar value = node[key];\n\t\t\t\t\t\tif (Array.isArray(value)) {\n\t\t\t\t\t\t\tfor (var i = 0, l = value.length; i < l; i++) {\n\t\t\t\t\t\t\t\twalkAST(value[i], node, paperFeatures);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (value && typeof value === 'object') {\n\t\t\t\t\t\t\twalkAST(value, node, paperFeatures);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (paperFeatures.operatorOverloading !== false) {\n\t\t\t\t\thandleOverloading(node, parent);\n\t\t\t\t}\n\t\t\t\tif (paperFeatures.moduleExports !== false) {\n\t\t\t\t\thandleExports(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfunction encodeVLQ(value) {\n\t\t\tvar res = '',\n\t\t\t\tbase64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\t\t\tvalue = (Math.abs(value) << 1) + (value < 0 ? 1 : 0);\n\t\t\twhile (value || !res) {\n\t\t\t\tvar next = value & (32 - 1);\n\t\t\t\tvalue >>= 5;\n\t\t\t\tif (value)\n\t\t\t\t\tnext |= 32;\n\t\t\t\tres += base64[next];\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tvar url = options.url || '',\n\t\t\tsourceMaps = options.sourceMaps,\n\t\t\tpaperFeatures = options.paperFeatures || {},\n\t\t\tsource = options.source || code,\n\t\t\toffset = options.offset || 0,\n\t\t\tagent = paper.agent,\n\t\t\tversion = agent.versionNumber,\n\t\t\toffsetCode = false,\n\t\t\tlineBreaks = /\\r\\n|\\n|\\r/mg,\n\t\t\tmap;\n\t\tif (sourceMaps && (agent.chrome && version >= 30\n\t\t\t\t|| agent.webkit && version >= 537.76\n\t\t\t\t|| agent.firefox && version >= 23\n\t\t\t\t|| agent.node)) {\n\t\t\tif (agent.node) {\n\t\t\t\toffset -= 2;\n\t\t\t} else if (window && url && !window.location.href.indexOf(url)) {\n\t\t\t\tvar html = document.getElementsByTagName('html')[0].innerHTML;\n\t\t\t\toffset = html.substr(0, html.indexOf(code) + 1).match(\n\t\t\t\t\t\tlineBreaks).length + 1;\n\t\t\t}\n\t\t\toffsetCode = offset > 0 && !(\n\t\t\t\t\tagent.chrome && version >= 36 ||\n\t\t\t\t\tagent.safari && version >= 600 ||\n\t\t\t\t\tagent.firefox && version >= 40 ||\n\t\t\t\t\tagent.node);\n\t\t\tvar mappings = ['AA' + encodeVLQ(offsetCode ? 0 : offset) + 'A'];\n\t\t\tmappings.length = (code.match(lineBreaks) || []).length + 1\n\t\t\t\t\t+ (offsetCode ? offset : 0);\n\t\t\tmap = {\n\t\t\t\tversion: 3,\n\t\t\t\tfile: url,\n\t\t\t\tnames:[],\n\t\t\t\tmappings: mappings.join(';AACA'),\n\t\t\t\tsourceRoot: '',\n\t\t\t\tsources: [url],\n\t\t\t\tsourcesContent: [source]\n\t\t\t};\n\t\t}\n\t\tif (\n\t\t\tpaperFeatures.operatorOverloading !== false ||\n\t\t\tpaperFeatures.moduleExports !== false\n\t\t) {\n\t\t\twalkAST(parse(code, {\n\t\t\t\tranges: true,\n\t\t\t\tpreserveParens: true,\n\t\t\t\tsourceType: 'module'\n\t\t\t}), null, paperFeatures);\n\t\t}\n\t\tif (map) {\n\t\t\tif (offsetCode) {\n\t\t\t\tcode = new Array(offset + 1).join('\\n') + code;\n\t\t\t}\n\t\t\tif (/^(inline|both)$/.test(sourceMaps)) {\n\t\t\t\tcode += \"\\n//# sourceMappingURL=data:application/json;base64,\"\n\t\t\t\t\t\t+ self.btoa(unescape(encodeURIComponent(\n\t\t\t\t\t\t\tJSON.stringify(map))));\n\t\t\t}\n\t\t\tcode += \"\\n//# sourceURL=\" + (url || 'paperscript');\n\t\t}\n\t\treturn {\n\t\t\turl: url,\n\t\t\tsource: source,\n\t\t\tcode: code,\n\t\t\tmap: map\n\t\t};\n\t}\n\n\tfunction execute(code, scope, options) {\n\t\tpaper = scope;\n\t\tvar view = scope.getView(),\n\t\t\ttool = /\\btool\\.\\w+|\\s+on(?:Key|Mouse)(?:Up|Down|Move|Drag)\\b/\n\t\t\t\t\t.test(code) && !/\\bnew\\s+Tool\\b/.test(code)\n\t\t\t\t\t\t? new Tool() : null,\n\t\t\ttoolHandlers = tool ? tool._events : [],\n\t\t\thandlers = ['onFrame', 'onResize'].concat(toolHandlers),\n\t\t\tparams = [],\n\t\t\targs = [],\n\t\t\tfunc,\n\t\t\tcompiled = typeof code === 'object' ? code : compile(code, options);\n\t\tcode = compiled.code;\n\t\tfunction expose(scope, hidden) {\n\t\t\tfor (var key in scope) {\n\t\t\t\tif ((hidden || !/^_/.test(key)) && new RegExp('([\\\\b\\\\s\\\\W]|^)'\n\t\t\t\t\t\t+ key.replace(/\\$/g, '\\\\$') + '\\\\b').test(code)) {\n\t\t\t\t\tparams.push(key);\n\t\t\t\t\targs.push(scope[key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\texpose({ __$__: __$__, $__: $__, paper: scope, tool: tool },\n\t\t\t\ttrue);\n\t\texpose(scope);\n\t\tcode = 'var module = { exports: {} }; ' + code;\n\t\tvar exports = Base.each(handlers, function(key) {\n\t\t\tif (new RegExp('\\\\s+' + key + '\\\\b').test(code)) {\n\t\t\t\tparams.push(key);\n\t\t\t\tthis.push('module.exports.' + key + ' = ' + key + ';');\n\t\t\t}\n\t\t}, []).join('\\n');\n\t\tif (exports) {\n\t\t\tcode += '\\n' + exports;\n\t\t}\n\t\tcode += '\\nreturn module.exports;';\n\t\tvar agent = paper.agent;\n\t\tif (document && (agent.chrome\n\t\t\t\t|| agent.firefox && agent.versionNumber < 40)) {\n\t\t\tvar script = document.createElement('script'),\n\t\t\t\thead = document.head || document.getElementsByTagName('head')[0];\n\t\t\tif (agent.firefox)\n\t\t\t\tcode = '\\n' + code;\n\t\t\tscript.appendChild(document.createTextNode(\n\t\t\t\t'document.__paperscript__ = function(' + params + ') {' +\n\t\t\t\t\tcode +\n\t\t\t\t'\\n}'\n\t\t\t));\n\t\t\thead.appendChild(script);\n\t\t\tfunc = document.__paperscript__;\n\t\t\tdelete document.__paperscript__;\n\t\t\thead.removeChild(script);\n\t\t} else {\n\t\t\tfunc = Function(params, code);\n\t\t}\n\t\tvar exports = func && func.apply(scope, args);\n\t\tvar obj = exports || {};\n\t\tBase.each(toolHandlers, function(key) {\n\t\t\tvar value = obj[key];\n\t\t\tif (value)\n\t\t\t\ttool[key] = value;\n\t\t});\n\t\tif (view) {\n\t\t\tif (obj.onResize)\n\t\t\t\tview.setOnResize(obj.onResize);\n\t\t\tview.emit('resize', {\n\t\t\t\tsize: view.size,\n\t\t\t\tdelta: new Point()\n\t\t\t});\n\t\t\tif (obj.onFrame)\n\t\t\t\tview.setOnFrame(obj.onFrame);\n\t\t\tview.requestUpdate();\n\t\t}\n\t\treturn exports;\n\t}\n\n\tfunction loadScript(script) {\n\t\tif (/^text\\/(?:x-|)paperscript$/.test(script.type)\n\t\t\t\t&& PaperScope.getAttribute(script, 'ignore') !== 'true') {\n\t\t\tvar canvasId = PaperScope.getAttribute(script, 'canvas'),\n\t\t\t\tcanvas = document.getElementById(canvasId),\n\t\t\t\tsrc = script.src || script.getAttribute('data-src'),\n\t\t\t\tasync = PaperScope.hasAttribute(script, 'async'),\n\t\t\t\tscopeAttribute = 'data-paper-scope';\n\t\t\tif (!canvas)\n\t\t\t\tthrow new Error('Unable to find canvas with id \"'\n\t\t\t\t\t\t+ canvasId + '\"');\n\t\t\tvar scope = PaperScope.get(canvas.getAttribute(scopeAttribute))\n\t\t\t\t\t\t|| new PaperScope().setup(canvas);\n\t\t\tcanvas.setAttribute(scopeAttribute, scope._id);\n\t\t\tif (src) {\n\t\t\t\tHttp.request({\n\t\t\t\t\turl: src,\n\t\t\t\t\tasync: async,\n\t\t\t\t\tmimeType: 'text/plain',\n\t\t\t\t\tonLoad: function(code) {\n\t\t\t\t\t\texecute(code, scope, src);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\texecute(script.innerHTML, scope, script.baseURI);\n\t\t\t}\n\t\t\tscript.setAttribute('data-paper-ignore', 'true');\n\t\t\treturn scope;\n\t\t}\n\t}\n\n\tfunction loadAll() {\n\t\tBase.each(document && document.getElementsByTagName('script'),\n\t\t\t\tloadScript);\n\t}\n\n\tfunction load(script) {\n\t\treturn script ? loadScript(script) : loadAll();\n\t}\n\n\tif (window) {\n\t\tif (document.readyState === 'complete') {\n\t\t\tsetTimeout(loadAll);\n\t\t} else {\n\t\t\tDomEvent.add(window, { load: loadAll });\n\t\t}\n\t}\n\n\treturn {\n\t\tcompile: compile,\n\t\texecute: execute,\n\t\tload: load,\n\t\tparse: parse,\n\t\tcalculateBinary: __$__,\n\t\tcalculateUnary: $__\n\t};\n\n}.call(this);\n\nvar paper = new (PaperScope.inject(Base.exports, {\n\tBase: Base,\n\tNumerical: Numerical,\n\tKey: Key,\n\tDomEvent: DomEvent,\n\tDomElement: DomElement,\n\tdocument: document,\n\twindow: window,\n\tSymbol: SymbolDefinition,\n\tPlacedSymbol: SymbolItem\n}))();\n\nif (paper.agent.node) {\n\trequire('./node/extend.js')(paper);\n}\n\nif (typeof define === 'function' && define.amd) {\n\tdefine('paper', paper);\n} else if (typeof module === 'object' && module) {\n\tmodule.exports = paper;\n}\n\nreturn paper;\n}.call(this, typeof self === 'object' ? self : null);\n","\"use strict\";","// This file was generated. Do not modify manually!\nvar astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 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, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 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, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 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, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];\n\n// This file was generated. Do not modify manually!\nvar astralIdentifierStartCodes = [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, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 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, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 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, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 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, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 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, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 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, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];\n\n// This file was generated. Do not modify manually!\nvar nonASCIIidentifierChars = \"\\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\\u0898-\\u089f\\u08ca-\\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\\u0b55-\\u0b57\\u0b62\\u0b63\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c00-\\u0c04\\u0c3c\\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\\u0cf3\\u0d00-\\u0d03\\u0d3b\\u0d3c\\u0d3e-\\u0d44\\u0d46-\\u0d48\\u0d4a-\\u0d4d\\u0d57\\u0d62\\u0d63\\u0d66-\\u0d6f\\u0d81-\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0de6-\\u0def\\u0df2\\u0df3\\u0e31\\u0e34-\\u0e3a\\u0e47-\\u0e4e\\u0e50-\\u0e59\\u0eb1\\u0eb4-\\u0ebc\\u0ec8-\\u0ece\\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-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17b4-\\u17d3\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u180f-\\u1819\\u18a9\\u1920-\\u192b\\u1930-\\u193b\\u1946-\\u194f\\u19d0-\\u19da\\u1a17-\\u1a1b\\u1a55-\\u1a5e\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1ab0-\\u1abd\\u1abf-\\u1ace\\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-\\u1dff\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2cef-\\u2cf1\\u2d7f\\u2de0-\\u2dff\\u302a-\\u302f\\u3099\\u309a\\u30fb\\ua620-\\ua629\\ua66f\\ua674-\\ua67d\\ua69e\\ua69f\\ua6f0\\ua6f1\\ua802\\ua806\\ua80b\\ua823-\\ua827\\ua82c\\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\\uff65\";\n\n// This file was generated. Do not modify manually!\nvar nonASCIIidentifierStartChars = \"\\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\\u0870-\\u0887\\u0889-\\u088e\\u08a0-\\u08c9\\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\\u0c5d\\u0c60\\u0c61\\u0c80\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cdd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d04-\\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-\\u1711\\u171f-\\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-\\u1b4c\\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-\\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-\\u31bf\\u31f0-\\u31ff\\u3400-\\u4dbf\\u4e00-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua69d\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua7ca\\ua7d0\\ua7d1\\ua7d3\\ua7d5-\\ua7d9\\ua7f2-\\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-\\uab69\\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\";\n\n// These are a run-length and offset encoded representation of the\n// >0xffff code points that are a valid part of identifiers. The\n// offset starts at 0x10000, and each pair of numbers represents an\n// offset to the next range, and then a size of the range.\n\n// Reserved word lists for various dialects of the language\n\nvar reservedWords = {\n 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\",\n 5: \"class enum extends super const export import\",\n 6: \"enum\",\n strict: \"implements interface let package private protected public static yield\",\n strictBind: \"eval arguments\"\n};\n\n// And the keywords\n\nvar ecma5AndLessKeywords = \"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\";\n\nvar keywords$1 = {\n 5: ecma5AndLessKeywords,\n \"5module\": ecma5AndLessKeywords + \" export import\",\n 6: ecma5AndLessKeywords + \" const class extends export import super\"\n};\n\nvar keywordRelationalOperator = /^in(stanceof)?$/;\n\n// ## Character categories\n\nvar nonASCIIidentifierStart = new RegExp(\"[\" + nonASCIIidentifierStartChars + \"]\");\nvar nonASCIIidentifier = new RegExp(\"[\" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + \"]\");\n\n// This has a complexity linear to the value of the code. The\n// assumption is that looking up astral identifier characters is\n// rare.\nfunction isInAstralSet(code, set) {\n var pos = 0x10000;\n for (var i = 0; i < set.length; i += 2) {\n pos += set[i];\n if (pos > code) { return false }\n pos += set[i + 1];\n if (pos >= code) { return true }\n }\n return false\n}\n\n// Test whether a given character code starts an identifier.\n\nfunction isIdentifierStart(code, astral) {\n if (code < 65) { return code === 36 }\n if (code < 91) { return true }\n if (code < 97) { return code === 95 }\n if (code < 123) { return true }\n if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)) }\n if (astral === false) { return false }\n return isInAstralSet(code, astralIdentifierStartCodes)\n}\n\n// Test whether a given character is part of an identifier.\n\nfunction isIdentifierChar(code, astral) {\n if (code < 48) { return code === 36 }\n if (code < 58) { return true }\n if (code < 65) { return false }\n if (code < 91) { return true }\n if (code < 97) { return code === 95 }\n if (code < 123) { return true }\n if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)) }\n if (astral === false) { return false }\n return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes)\n}\n\n// ## Token types\n\n// The assignment of fine-grained, information-carrying type objects\n// allows the tokenizer to store the information it has about a\n// token in a way that is very cheap for the parser to look up.\n\n// All token type variables start with an underscore, to make them\n// easy to recognize.\n\n// The `beforeExpr` property is used to disambiguate between regular\n// expressions and divisions. It is set on all token types that can\n// be followed by an expression (thus, a slash after them would be a\n// regular expression).\n//\n// The `startsExpr` property is used to check if the token ends a\n// `yield` expression. It is set on all token types that either can\n// directly start an expression (like a quotation mark) or can\n// continue an expression (like the body of a string).\n//\n// `isLoop` marks a keyword as starting a loop, which is important\n// to know when parsing a label, in order to allow or disallow\n// continue jumps to that label.\n\nvar TokenType = function TokenType(label, conf) {\n if ( conf === void 0 ) conf = {};\n\n this.label = label;\n this.keyword = conf.keyword;\n this.beforeExpr = !!conf.beforeExpr;\n this.startsExpr = !!conf.startsExpr;\n this.isLoop = !!conf.isLoop;\n this.isAssign = !!conf.isAssign;\n this.prefix = !!conf.prefix;\n this.postfix = !!conf.postfix;\n this.binop = conf.binop || null;\n this.updateContext = null;\n};\n\nfunction binop(name, prec) {\n return new TokenType(name, {beforeExpr: true, binop: prec})\n}\nvar beforeExpr = {beforeExpr: true}, startsExpr = {startsExpr: true};\n\n// Map keyword names to token types.\n\nvar keywords = {};\n\n// Succinct definitions of keyword token types\nfunction kw(name, options) {\n if ( options === void 0 ) options = {};\n\n options.keyword = name;\n return keywords[name] = new TokenType(name, options)\n}\n\nvar types$1 = {\n num: new TokenType(\"num\", startsExpr),\n regexp: new TokenType(\"regexp\", startsExpr),\n string: new TokenType(\"string\", startsExpr),\n name: new TokenType(\"name\", startsExpr),\n privateId: new TokenType(\"privateId\", startsExpr),\n eof: new TokenType(\"eof\"),\n\n // Punctuation token types.\n bracketL: new TokenType(\"[\", {beforeExpr: true, startsExpr: true}),\n bracketR: new TokenType(\"]\"),\n braceL: new TokenType(\"{\", {beforeExpr: true, startsExpr: true}),\n braceR: new TokenType(\"}\"),\n parenL: new TokenType(\"(\", {beforeExpr: true, startsExpr: true}),\n parenR: new TokenType(\")\"),\n comma: new TokenType(\",\", beforeExpr),\n semi: new TokenType(\";\", beforeExpr),\n colon: new TokenType(\":\", beforeExpr),\n dot: new TokenType(\".\"),\n question: new TokenType(\"?\", beforeExpr),\n questionDot: new TokenType(\"?.\"),\n arrow: new TokenType(\"=>\", beforeExpr),\n template: new TokenType(\"template\"),\n invalidTemplate: new TokenType(\"invalidTemplate\"),\n ellipsis: new TokenType(\"...\", beforeExpr),\n backQuote: new TokenType(\"`\", startsExpr),\n dollarBraceL: new TokenType(\"${\", {beforeExpr: true, startsExpr: true}),\n\n // Operators. These carry several kinds of properties to help the\n // parser use them properly (the presence of these properties is\n // what categorizes them as operators).\n //\n // `binop`, when present, specifies that this operator is a binary\n // operator, and will refer to its precedence.\n //\n // `prefix` and `postfix` mark the operator as a prefix or postfix\n // unary operator.\n //\n // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as\n // binary operators with a very low precedence, that should result\n // in AssignmentExpression nodes.\n\n eq: new TokenType(\"=\", {beforeExpr: true, isAssign: true}),\n assign: new TokenType(\"_=\", {beforeExpr: true, isAssign: true}),\n incDec: new TokenType(\"++/--\", {prefix: true, postfix: true, startsExpr: true}),\n prefix: new TokenType(\"!/~\", {beforeExpr: true, prefix: true, startsExpr: true}),\n logicalOR: binop(\"||\", 1),\n logicalAND: binop(\"&&\", 2),\n bitwiseOR: binop(\"|\", 3),\n bitwiseXOR: binop(\"^\", 4),\n bitwiseAND: binop(\"&\", 5),\n equality: binop(\"==/!=/===/!==\", 6),\n relational: binop(\"/<=/>=\", 7),\n bitShift: binop(\"<>/>>>\", 8),\n plusMin: new TokenType(\"+/-\", {beforeExpr: true, binop: 9, prefix: true, startsExpr: true}),\n modulo: binop(\"%\", 10),\n star: binop(\"*\", 10),\n slash: binop(\"/\", 10),\n starstar: new TokenType(\"**\", {beforeExpr: true}),\n coalesce: binop(\"??\", 1),\n\n // Keyword token types.\n _break: kw(\"break\"),\n _case: kw(\"case\", beforeExpr),\n _catch: kw(\"catch\"),\n _continue: kw(\"continue\"),\n _debugger: kw(\"debugger\"),\n _default: kw(\"default\", beforeExpr),\n _do: kw(\"do\", {isLoop: true, beforeExpr: true}),\n _else: kw(\"else\", beforeExpr),\n _finally: kw(\"finally\"),\n _for: kw(\"for\", {isLoop: true}),\n _function: kw(\"function\", startsExpr),\n _if: kw(\"if\"),\n _return: kw(\"return\", beforeExpr),\n _switch: kw(\"switch\"),\n _throw: kw(\"throw\", beforeExpr),\n _try: kw(\"try\"),\n _var: kw(\"var\"),\n _const: kw(\"const\"),\n _while: kw(\"while\", {isLoop: true}),\n _with: kw(\"with\"),\n _new: kw(\"new\", {beforeExpr: true, startsExpr: true}),\n _this: kw(\"this\", startsExpr),\n _super: kw(\"super\", startsExpr),\n _class: kw(\"class\", startsExpr),\n _extends: kw(\"extends\", beforeExpr),\n _export: kw(\"export\"),\n _import: kw(\"import\", startsExpr),\n _null: kw(\"null\", startsExpr),\n _true: kw(\"true\", startsExpr),\n _false: kw(\"false\", startsExpr),\n _in: kw(\"in\", {beforeExpr: true, binop: 7}),\n _instanceof: kw(\"instanceof\", {beforeExpr: true, binop: 7}),\n _typeof: kw(\"typeof\", {beforeExpr: true, prefix: true, startsExpr: true}),\n _void: kw(\"void\", {beforeExpr: true, prefix: true, startsExpr: true}),\n _delete: kw(\"delete\", {beforeExpr: true, prefix: true, startsExpr: true})\n};\n\n// Matches a whole line break (where CRLF is considered a single\n// line break). Used to count lines.\n\nvar lineBreak = /\\r\\n?|\\n|\\u2028|\\u2029/;\nvar lineBreakG = new RegExp(lineBreak.source, \"g\");\n\nfunction isNewLine(code) {\n return code === 10 || code === 13 || code === 0x2028 || code === 0x2029\n}\n\nfunction nextLineBreak(code, from, end) {\n if ( end === void 0 ) end = code.length;\n\n for (var i = from; i < end; i++) {\n var next = code.charCodeAt(i);\n if (isNewLine(next))\n { return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1 }\n }\n return -1\n}\n\nvar nonASCIIwhitespace = /[\\u1680\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/;\n\nvar skipWhiteSpace = /(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;\n\nvar ref = Object.prototype;\nvar hasOwnProperty = ref.hasOwnProperty;\nvar toString = ref.toString;\n\nvar hasOwn = Object.hasOwn || (function (obj, propName) { return (\n hasOwnProperty.call(obj, propName)\n); });\n\nvar isArray = Array.isArray || (function (obj) { return (\n toString.call(obj) === \"[object Array]\"\n); });\n\nvar regexpCache = Object.create(null);\n\nfunction wordsRegexp(words) {\n return regexpCache[words] || (regexpCache[words] = new RegExp(\"^(?:\" + words.replace(/ /g, \"|\") + \")$\"))\n}\n\nfunction codePointToString(code) {\n // UTF-16 Decoding\n if (code <= 0xFFFF) { return String.fromCharCode(code) }\n code -= 0x10000;\n return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00)\n}\n\nvar loneSurrogate = /(?:[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])/;\n\n// These are used when `options.locations` is on, for the\n// `startLoc` and `endLoc` properties.\n\nvar Position = function Position(line, col) {\n this.line = line;\n this.column = col;\n};\n\nPosition.prototype.offset = function offset (n) {\n return new Position(this.line, this.column + n)\n};\n\nvar SourceLocation = function SourceLocation(p, start, end) {\n this.start = start;\n this.end = end;\n if (p.sourceFile !== null) { this.source = p.sourceFile; }\n};\n\n// The `getLineInfo` function is mostly useful when the\n// `locations` option is off (for performance reasons) and you\n// want to find the line/column position for a given character\n// offset. `input` should be the code string that the offset refers\n// into.\n\nfunction getLineInfo(input, offset) {\n for (var line = 1, cur = 0;;) {\n var nextBreak = nextLineBreak(input, cur, offset);\n if (nextBreak < 0) { return new Position(line, offset - cur) }\n ++line;\n cur = nextBreak;\n }\n}\n\n// A second argument must be given to configure the parser process.\n// These options are recognized (only `ecmaVersion` is required):\n\nvar defaultOptions = {\n // `ecmaVersion` indicates the ECMAScript version to parse. Must be\n // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10\n // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `\"latest\"`\n // (the latest version the library supports). This influences\n // support for strict mode, the set of reserved words, and support\n // for new syntax features.\n ecmaVersion: null,\n // `sourceType` indicates the mode the code should be parsed in.\n // Can be either `\"script\"` or `\"module\"`. This influences global\n // strict mode and parsing of `import` and `export` declarations.\n sourceType: \"script\",\n // `onInsertedSemicolon` can be a callback that will be called when\n // a semicolon is automatically inserted. It will be passed the\n // position of the inserted semicolon as an offset, and if\n // `locations` is enabled, it is given the location as a `{line,\n // column}` object as second argument.\n onInsertedSemicolon: null,\n // `onTrailingComma` is similar to `onInsertedSemicolon`, but for\n // trailing commas.\n onTrailingComma: null,\n // By default, reserved words are only enforced if ecmaVersion >= 5.\n // Set `allowReserved` to a boolean value to explicitly turn this on\n // an off. When this option has the value \"never\", reserved words\n // and keywords can also not be used as property names.\n allowReserved: null,\n // When enabled, a return at the top level is not considered an\n // error.\n allowReturnOutsideFunction: false,\n // When enabled, import/export statements are not constrained to\n // appearing at the top of the program, and an import.meta expression\n // in a script isn't considered an error.\n allowImportExportEverywhere: false,\n // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022.\n // When enabled, await identifiers are allowed to appear at the top-level scope,\n // but they are still not allowed in non-async functions.\n allowAwaitOutsideFunction: null,\n // When enabled, super identifiers are not constrained to\n // appearing in methods and do not raise an error when they appear elsewhere.\n allowSuperOutsideMethod: null,\n // When enabled, hashbang directive in the beginning of file is\n // allowed and treated as a line comment. Enabled by default when\n // `ecmaVersion` >= 2023.\n allowHashBang: false,\n // By default, the parser will verify that private properties are\n // only used in places where they are valid and have been declared.\n // Set this to false to turn such checks off.\n checkPrivateFields: true,\n // When `locations` is on, `loc` properties holding objects with\n // `start` and `end` properties in `{line, column}` form (with\n // line being 1-based and column 0-based) will be attached to the\n // nodes.\n locations: false,\n // A function can be passed as `onToken` option, which will\n // cause Acorn to call that function with object in the same\n // format as tokens returned from `tokenizer().getToken()`. Note\n // that you are not allowed to call the parser from the\n // callback—that will corrupt its internal state.\n onToken: null,\n // A function can be passed as `onComment` option, which will\n // cause Acorn to call that function with `(block, text, start,\n // end)` parameters whenever a comment is skipped. `block` is a\n // boolean indicating whether this is a block (`/* */`) comment,\n // `text` is the content of the comment, and `start` and `end` are\n // character offsets that denote the start and end of the comment.\n // When the `locations` option is on, two more parameters are\n // passed, the full `{line, column}` locations of the start and\n // end of the comments. Note that you are not allowed to call the\n // parser from the callback—that will corrupt its internal state.\n // When this option has an array as value, objects representing the\n // comments are pushed to it.\n onComment: null,\n // Nodes have their start and end characters offsets recorded in\n // `start` and `end` properties (directly on the node, rather than\n // the `loc` object, which holds line/column data. To also add a\n // [semi-standardized][range] `range` property holding a `[start,\n // end]` array with the same numbers, set the `ranges` option to\n // `true`.\n //\n // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678\n ranges: false,\n // It is possible to parse multiple files into a single AST by\n // passing the tree produced by parsing the first file as\n // `program` option in subsequent parses. This will add the\n // toplevel forms of the parsed file to the `Program` (top) node\n // of an existing parse tree.\n program: null,\n // When `locations` is on, you can pass this to record the source\n // file in every node's `loc` object.\n sourceFile: null,\n // This value, if given, is stored in every node, whether\n // `locations` is on or off.\n directSourceFile: null,\n // When enabled, parenthesized expressions are represented by\n // (non-standard) ParenthesizedExpression nodes\n preserveParens: false\n};\n\n// Interpret and default an options object\n\nvar warnedAboutEcmaVersion = false;\n\nfunction getOptions(opts) {\n var options = {};\n\n for (var opt in defaultOptions)\n { options[opt] = opts && hasOwn(opts, opt) ? opts[opt] : defaultOptions[opt]; }\n\n if (options.ecmaVersion === \"latest\") {\n options.ecmaVersion = 1e8;\n } else if (options.ecmaVersion == null) {\n if (!warnedAboutEcmaVersion && typeof console === \"object\" && console.warn) {\n warnedAboutEcmaVersion = true;\n console.warn(\"Since Acorn 8.0.0, options.ecmaVersion is required.\\nDefaulting to 2020, but this will stop working in the future.\");\n }\n options.ecmaVersion = 11;\n } else if (options.ecmaVersion >= 2015) {\n options.ecmaVersion -= 2009;\n }\n\n if (options.allowReserved == null)\n { options.allowReserved = options.ecmaVersion < 5; }\n\n if (!opts || opts.allowHashBang == null)\n { options.allowHashBang = options.ecmaVersion >= 14; }\n\n if (isArray(options.onToken)) {\n var tokens = options.onToken;\n options.onToken = function (token) { return tokens.push(token); };\n }\n if (isArray(options.onComment))\n { options.onComment = pushComment(options, options.onComment); }\n\n return options\n}\n\nfunction pushComment(options, array) {\n return function(block, text, start, end, startLoc, endLoc) {\n var comment = {\n type: block ? \"Block\" : \"Line\",\n value: text,\n start: start,\n end: end\n };\n if (options.locations)\n { comment.loc = new SourceLocation(this, startLoc, endLoc); }\n if (options.ranges)\n { comment.range = [start, end]; }\n array.push(comment);\n }\n}\n\n// Each scope gets a bitset that may contain these flags\nvar\n SCOPE_TOP = 1,\n SCOPE_FUNCTION = 2,\n SCOPE_ASYNC = 4,\n SCOPE_GENERATOR = 8,\n SCOPE_ARROW = 16,\n SCOPE_SIMPLE_CATCH = 32,\n SCOPE_SUPER = 64,\n SCOPE_DIRECT_SUPER = 128,\n SCOPE_CLASS_STATIC_BLOCK = 256,\n SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;\n\nfunction functionFlags(async, generator) {\n return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0)\n}\n\n// Used in checkLVal* and declareName to determine the type of a binding\nvar\n BIND_NONE = 0, // Not a binding\n BIND_VAR = 1, // Var-style binding\n BIND_LEXICAL = 2, // Let- or const-style binding\n BIND_FUNCTION = 3, // Function declaration\n BIND_SIMPLE_CATCH = 4, // Simple (identifier pattern) catch binding\n BIND_OUTSIDE = 5; // Special case for function names as bound inside the function\n\nvar Parser = function Parser(options, input, startPos) {\n this.options = options = getOptions(options);\n this.sourceFile = options.sourceFile;\n this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === \"module\" ? \"5module\" : 5]);\n var reserved = \"\";\n if (options.allowReserved !== true) {\n reserved = reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3];\n if (options.sourceType === \"module\") { reserved += \" await\"; }\n }\n this.reservedWords = wordsRegexp(reserved);\n var reservedStrict = (reserved ? reserved + \" \" : \"\") + reservedWords.strict;\n this.reservedWordsStrict = wordsRegexp(reservedStrict);\n this.reservedWordsStrictBind = wordsRegexp(reservedStrict + \" \" + reservedWords.strictBind);\n this.input = String(input);\n\n // Used to signal to callers of `readWord1` whether the word\n // contained any escape sequences. This is needed because words with\n // escape sequences must not be interpreted as keywords.\n this.containsEsc = false;\n\n // Set up token state\n\n // The current position of the tokenizer in the input.\n if (startPos) {\n this.pos = startPos;\n this.lineStart = this.input.lastIndexOf(\"\\n\", startPos - 1) + 1;\n this.curLine = this.input.slice(0, this.lineStart).split(lineBreak).length;\n } else {\n this.pos = this.lineStart = 0;\n this.curLine = 1;\n }\n\n // Properties of the current token:\n // Its type\n this.type = types$1.eof;\n // For tokens that include more information than their type, the value\n this.value = null;\n // Its start and end offset\n this.start = this.end = this.pos;\n // And, if locations are used, the {line, column} object\n // corresponding to those offsets\n this.startLoc = this.endLoc = this.curPosition();\n\n // Position information for the previous token\n this.lastTokEndLoc = this.lastTokStartLoc = null;\n this.lastTokStart = this.lastTokEnd = this.pos;\n\n // The context stack is used to superficially track syntactic\n // context to predict whether a regular expression is allowed in a\n // given position.\n this.context = this.initialContext();\n this.exprAllowed = true;\n\n // Figure out if it's a module code.\n this.inModule = options.sourceType === \"module\";\n this.strict = this.inModule || this.strictDirective(this.pos);\n\n // Used to signify the start of a potential arrow function\n this.potentialArrowAt = -1;\n this.potentialArrowInForAwait = false;\n\n // Positions to delayed-check that yield/await does not exist in default parameters.\n this.yieldPos = this.awaitPos = this.awaitIdentPos = 0;\n // Labels in scope.\n this.labels = [];\n // Thus-far undefined exports.\n this.undefinedExports = Object.create(null);\n\n // If enabled, skip leading hashbang line.\n if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === \"#!\")\n { this.skipLineComment(2); }\n\n // Scope tracking for duplicate variable names (see scope.js)\n this.scopeStack = [];\n this.enterScope(SCOPE_TOP);\n\n // For RegExp validation\n this.regexpState = null;\n\n // The stack of private names.\n // Each element has two properties: 'declared' and 'used'.\n // When it exited from the outermost class definition, all used private names must be declared.\n this.privateNameStack = [];\n};\n\nvar prototypeAccessors = { inFunction: { configurable: true },inGenerator: { configurable: true },inAsync: { configurable: true },canAwait: { configurable: true },allowSuper: { configurable: true },allowDirectSuper: { configurable: true },treatFunctionsAsVar: { configurable: true },allowNewDotTarget: { configurable: true },inClassStaticBlock: { configurable: true } };\n\nParser.prototype.parse = function parse () {\n var node = this.options.program || this.startNode();\n this.nextToken();\n return this.parseTopLevel(node)\n};\n\nprototypeAccessors.inFunction.get = function () { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 };\n\nprototypeAccessors.inGenerator.get = function () { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit };\n\nprototypeAccessors.inAsync.get = function () { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit };\n\nprototypeAccessors.canAwait.get = function () {\n for (var i = this.scopeStack.length - 1; i >= 0; i--) {\n var scope = this.scopeStack[i];\n if (scope.inClassFieldInit || scope.flags & SCOPE_CLASS_STATIC_BLOCK) { return false }\n if (scope.flags & SCOPE_FUNCTION) { return (scope.flags & SCOPE_ASYNC) > 0 }\n }\n return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction\n};\n\nprototypeAccessors.allowSuper.get = function () {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod\n};\n\nprototypeAccessors.allowDirectSuper.get = function () { return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0 };\n\nprototypeAccessors.treatFunctionsAsVar.get = function () { return this.treatFunctionsAsVarInScope(this.currentScope()) };\n\nprototypeAccessors.allowNewDotTarget.get = function () {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & (SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK)) > 0 || inClassFieldInit\n};\n\nprototypeAccessors.inClassStaticBlock.get = function () {\n return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0\n};\n\nParser.extend = function extend () {\n var plugins = [], len = arguments.length;\n while ( len-- ) plugins[ len ] = arguments[ len ];\n\n var cls = this;\n for (var i = 0; i < plugins.length; i++) { cls = plugins[i](cls); }\n return cls\n};\n\nParser.parse = function parse (input, options) {\n return new this(options, input).parse()\n};\n\nParser.parseExpressionAt = function parseExpressionAt (input, pos, options) {\n var parser = new this(options, input, pos);\n parser.nextToken();\n return parser.parseExpression()\n};\n\nParser.tokenizer = function tokenizer (input, options) {\n return new this(options, input)\n};\n\nObject.defineProperties( Parser.prototype, prototypeAccessors );\n\nvar pp$9 = Parser.prototype;\n\n// ## Parser utilities\n\nvar literal = /^(?:'((?:\\\\[^]|[^'\\\\])*?)'|\"((?:\\\\[^]|[^\"\\\\])*?)\")/;\npp$9.strictDirective = function(start) {\n if (this.options.ecmaVersion < 5) { return false }\n for (;;) {\n // Try to find string literal.\n skipWhiteSpace.lastIndex = start;\n start += skipWhiteSpace.exec(this.input)[0].length;\n var match = literal.exec(this.input.slice(start));\n if (!match) { return false }\n if ((match[1] || match[2]) === \"use strict\") {\n skipWhiteSpace.lastIndex = start + match[0].length;\n var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;\n var next = this.input.charAt(end);\n return next === \";\" || next === \"}\" ||\n (lineBreak.test(spaceAfter[0]) &&\n !(/[(`.[+\\-/*%<>=,?^&]/.test(next) || next === \"!\" && this.input.charAt(end + 1) === \"=\"))\n }\n start += match[0].length;\n\n // Skip semicolon, if any.\n skipWhiteSpace.lastIndex = start;\n start += skipWhiteSpace.exec(this.input)[0].length;\n if (this.input[start] === \";\")\n { start++; }\n }\n};\n\n// Predicate that tests whether the next token is of the given\n// type, and if yes, consumes it as a side effect.\n\npp$9.eat = function(type) {\n if (this.type === type) {\n this.next();\n return true\n } else {\n return false\n }\n};\n\n// Tests whether parsed token is a contextual keyword.\n\npp$9.isContextual = function(name) {\n return this.type === types$1.name && this.value === name && !this.containsEsc\n};\n\n// Consumes contextual keyword if possible.\n\npp$9.eatContextual = function(name) {\n if (!this.isContextual(name)) { return false }\n this.next();\n return true\n};\n\n// Asserts that following token is given contextual keyword.\n\npp$9.expectContextual = function(name) {\n if (!this.eatContextual(name)) { this.unexpected(); }\n};\n\n// Test whether a semicolon can be inserted at the current position.\n\npp$9.canInsertSemicolon = function() {\n return this.type === types$1.eof ||\n this.type === types$1.braceR ||\n lineBreak.test(this.input.slice(this.lastTokEnd, this.start))\n};\n\npp$9.insertSemicolon = function() {\n if (this.canInsertSemicolon()) {\n if (this.options.onInsertedSemicolon)\n { this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc); }\n return true\n }\n};\n\n// Consume a semicolon, or, failing that, see if we are allowed to\n// pretend that there is a semicolon at this position.\n\npp$9.semicolon = function() {\n if (!this.eat(types$1.semi) && !this.insertSemicolon()) { this.unexpected(); }\n};\n\npp$9.afterTrailingComma = function(tokType, notNext) {\n if (this.type === tokType) {\n if (this.options.onTrailingComma)\n { this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc); }\n if (!notNext)\n { this.next(); }\n return true\n }\n};\n\n// Expect a token of a given type. If found, consume it, otherwise,\n// raise an unexpected token error.\n\npp$9.expect = function(type) {\n this.eat(type) || this.unexpected();\n};\n\n// Raise an unexpected token error.\n\npp$9.unexpected = function(pos) {\n this.raise(pos != null ? pos : this.start, \"Unexpected token\");\n};\n\nvar DestructuringErrors = function DestructuringErrors() {\n this.shorthandAssign =\n this.trailingComma =\n this.parenthesizedAssign =\n this.parenthesizedBind =\n this.doubleProto =\n -1;\n};\n\npp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {\n if (!refDestructuringErrors) { return }\n if (refDestructuringErrors.trailingComma > -1)\n { this.raiseRecoverable(refDestructuringErrors.trailingComma, \"Comma is not permitted after the rest element\"); }\n var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;\n if (parens > -1) { this.raiseRecoverable(parens, isAssign ? \"Assigning to rvalue\" : \"Parenthesized pattern\"); }\n};\n\npp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) {\n if (!refDestructuringErrors) { return false }\n var shorthandAssign = refDestructuringErrors.shorthandAssign;\n var doubleProto = refDestructuringErrors.doubleProto;\n if (!andThrow) { return shorthandAssign >= 0 || doubleProto >= 0 }\n if (shorthandAssign >= 0)\n { this.raise(shorthandAssign, \"Shorthand property assignments are valid only in destructuring patterns\"); }\n if (doubleProto >= 0)\n { this.raiseRecoverable(doubleProto, \"Redefinition of __proto__ property\"); }\n};\n\npp$9.checkYieldAwaitInDefaultParams = function() {\n if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos))\n { this.raise(this.yieldPos, \"Yield expression cannot be a default value\"); }\n if (this.awaitPos)\n { this.raise(this.awaitPos, \"Await expression cannot be a default value\"); }\n};\n\npp$9.isSimpleAssignTarget = function(expr) {\n if (expr.type === \"ParenthesizedExpression\")\n { return this.isSimpleAssignTarget(expr.expression) }\n return expr.type === \"Identifier\" || expr.type === \"MemberExpression\"\n};\n\nvar pp$8 = Parser.prototype;\n\n// ### Statement parsing\n\n// Parse a program. Initializes the parser, reads any number of\n// statements, and wraps them in a Program node. Optionally takes a\n// `program` argument. If present, the statements will be appended\n// to its body instead of creating a new node.\n\npp$8.parseTopLevel = function(node) {\n var exports = Object.create(null);\n if (!node.body) { node.body = []; }\n while (this.type !== types$1.eof) {\n var stmt = this.parseStatement(null, true, exports);\n node.body.push(stmt);\n }\n if (this.inModule)\n { for (var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1)\n {\n var name = list[i];\n\n this.raiseRecoverable(this.undefinedExports[name].start, (\"Export '\" + name + \"' is not defined\"));\n } }\n this.adaptDirectivePrologue(node.body);\n this.next();\n node.sourceType = this.options.sourceType;\n return this.finishNode(node, \"Program\")\n};\n\nvar loopLabel = {kind: \"loop\"}, switchLabel = {kind: \"switch\"};\n\npp$8.isLet = function(context) {\n if (this.options.ecmaVersion < 6 || !this.isContextual(\"let\")) { return false }\n skipWhiteSpace.lastIndex = this.pos;\n var skip = skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);\n // For ambiguous cases, determine if a LexicalDeclaration (or only a\n // Statement) is allowed here. If context is not empty then only a Statement\n // is allowed. However, `let [` is an explicit negative lookahead for\n // ExpressionStatement, so special-case it first.\n if (nextCh === 91 || nextCh === 92) { return true } // '[', '\\'\n if (context) { return false }\n\n if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } // '{', astral\n if (isIdentifierStart(nextCh, true)) {\n var pos = next + 1;\n while (isIdentifierChar(nextCh = this.input.charCodeAt(pos), true)) { ++pos; }\n if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true }\n var ident = this.input.slice(next, pos);\n if (!keywordRelationalOperator.test(ident)) { return true }\n }\n return false\n};\n\n// check 'async [no LineTerminator here] function'\n// - 'async /*foo*/ function' is OK.\n// - 'async /*\\n*/ function' is invalid.\npp$8.isAsyncFunction = function() {\n if (this.options.ecmaVersion < 8 || !this.isContextual(\"async\"))\n { return false }\n\n skipWhiteSpace.lastIndex = this.pos;\n var skip = skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, after;\n return !lineBreak.test(this.input.slice(this.pos, next)) &&\n this.input.slice(next, next + 8) === \"function\" &&\n (next + 8 === this.input.length ||\n !(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00))\n};\n\n// Parse a single statement.\n//\n// If expecting a statement and finding a slash operator, parse a\n// regular expression literal. This is to handle cases like\n// `if (foo) /blah/.exec(foo)`, where looking at the previous token\n// does not help.\n\npp$8.parseStatement = function(context, topLevel, exports) {\n var starttype = this.type, node = this.startNode(), kind;\n\n if (this.isLet(context)) {\n starttype = types$1._var;\n kind = \"let\";\n }\n\n // Most types of statements are recognized by the keyword they\n // start with. Many are trivial to parse, some require a bit of\n // complexity.\n\n switch (starttype) {\n case types$1._break: case types$1._continue: return this.parseBreakContinueStatement(node, starttype.keyword)\n case types$1._debugger: return this.parseDebuggerStatement(node)\n case types$1._do: return this.parseDoStatement(node)\n case types$1._for: return this.parseForStatement(node)\n case types$1._function:\n // Function as sole body of either an if statement or a labeled statement\n // works, but not when it is part of a labeled statement that is the sole\n // body of an if statement.\n if ((context && (this.strict || context !== \"if\" && context !== \"label\")) && this.options.ecmaVersion >= 6) { this.unexpected(); }\n return this.parseFunctionStatement(node, false, !context)\n case types$1._class:\n if (context) { this.unexpected(); }\n return this.parseClass(node, true)\n case types$1._if: return this.parseIfStatement(node)\n case types$1._return: return this.parseReturnStatement(node)\n case types$1._switch: return this.parseSwitchStatement(node)\n case types$1._throw: return this.parseThrowStatement(node)\n case types$1._try: return this.parseTryStatement(node)\n case types$1._const: case types$1._var:\n kind = kind || this.value;\n if (context && kind !== \"var\") { this.unexpected(); }\n return this.parseVarStatement(node, kind)\n case types$1._while: return this.parseWhileStatement(node)\n case types$1._with: return this.parseWithStatement(node)\n case types$1.braceL: return this.parseBlock(true, node)\n case types$1.semi: return this.parseEmptyStatement(node)\n case types$1._export:\n case types$1._import:\n if (this.options.ecmaVersion > 10 && starttype === types$1._import) {\n skipWhiteSpace.lastIndex = this.pos;\n var skip = skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);\n if (nextCh === 40 || nextCh === 46) // '(' or '.'\n { return this.parseExpressionStatement(node, this.parseExpression()) }\n }\n\n if (!this.options.allowImportExportEverywhere) {\n if (!topLevel)\n { this.raise(this.start, \"'import' and 'export' may only appear at the top level\"); }\n if (!this.inModule)\n { this.raise(this.start, \"'import' and 'export' may appear only with 'sourceType: module'\"); }\n }\n return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports)\n\n // If the statement does not start with a statement keyword or a\n // brace, it's an ExpressionStatement or LabeledStatement. We\n // simply start parsing an expression, and afterwards, if the\n // next token is a colon and the expression was a simple\n // Identifier node, we switch to interpreting it as a label.\n default:\n if (this.isAsyncFunction()) {\n if (context) { this.unexpected(); }\n this.next();\n return this.parseFunctionStatement(node, true, !context)\n }\n\n var maybeName = this.value, expr = this.parseExpression();\n if (starttype === types$1.name && expr.type === \"Identifier\" && this.eat(types$1.colon))\n { return this.parseLabeledStatement(node, maybeName, expr, context) }\n else { return this.parseExpressionStatement(node, expr) }\n }\n};\n\npp$8.parseBreakContinueStatement = function(node, keyword) {\n var isBreak = keyword === \"break\";\n this.next();\n if (this.eat(types$1.semi) || this.insertSemicolon()) { node.label = null; }\n else if (this.type !== types$1.name) { this.unexpected(); }\n else {\n node.label = this.parseIdent();\n this.semicolon();\n }\n\n // Verify that there is an actual destination to break or\n // continue to.\n var i = 0;\n for (; i < this.labels.length; ++i) {\n var lab = this.labels[i];\n if (node.label == null || lab.name === node.label.name) {\n if (lab.kind != null && (isBreak || lab.kind === \"loop\")) { break }\n if (node.label && isBreak) { break }\n }\n }\n if (i === this.labels.length) { this.raise(node.start, \"Unsyntactic \" + keyword); }\n return this.finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\")\n};\n\npp$8.parseDebuggerStatement = function(node) {\n this.next();\n this.semicolon();\n return this.finishNode(node, \"DebuggerStatement\")\n};\n\npp$8.parseDoStatement = function(node) {\n this.next();\n this.labels.push(loopLabel);\n node.body = this.parseStatement(\"do\");\n this.labels.pop();\n this.expect(types$1._while);\n node.test = this.parseParenExpression();\n if (this.options.ecmaVersion >= 6)\n { this.eat(types$1.semi); }\n else\n { this.semicolon(); }\n return this.finishNode(node, \"DoWhileStatement\")\n};\n\n// Disambiguating between a `for` and a `for`/`in` or `for`/`of`\n// loop is non-trivial. Basically, we have to parse the init `var`\n// statement or expression, disallowing the `in` operator (see\n// the second parameter to `parseExpression`), and then check\n// whether the next token is `in` or `of`. When there is no init\n// part (semicolon immediately after the opening parenthesis), it\n// is a regular `for` loop.\n\npp$8.parseForStatement = function(node) {\n this.next();\n var awaitAt = (this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual(\"await\")) ? this.lastTokStart : -1;\n this.labels.push(loopLabel);\n this.enterScope(0);\n this.expect(types$1.parenL);\n if (this.type === types$1.semi) {\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n return this.parseFor(node, null)\n }\n var isLet = this.isLet();\n if (this.type === types$1._var || this.type === types$1._const || isLet) {\n var init$1 = this.startNode(), kind = isLet ? \"let\" : this.value;\n this.next();\n this.parseVar(init$1, true, kind);\n this.finishNode(init$1, \"VariableDeclaration\");\n if ((this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) && init$1.declarations.length === 1) {\n if (this.options.ecmaVersion >= 9) {\n if (this.type === types$1._in) {\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n } else { node.await = awaitAt > -1; }\n }\n return this.parseForIn(node, init$1)\n }\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n return this.parseFor(node, init$1)\n }\n var startsWithLet = this.isContextual(\"let\"), isForOf = false;\n var containsEsc = this.containsEsc;\n var refDestructuringErrors = new DestructuringErrors;\n var initPos = this.start;\n var init = awaitAt > -1\n ? this.parseExprSubscripts(refDestructuringErrors, \"await\")\n : this.parseExpression(true, refDestructuringErrors);\n if (this.type === types$1._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) {\n if (awaitAt > -1) { // implies `ecmaVersion >= 9` (see declaration of awaitAt)\n if (this.type === types$1._in) { this.unexpected(awaitAt); }\n node.await = true;\n } else if (isForOf && this.options.ecmaVersion >= 8) {\n if (init.start === initPos && !containsEsc && init.type === \"Identifier\" && init.name === \"async\") { this.unexpected(); }\n else if (this.options.ecmaVersion >= 9) { node.await = false; }\n }\n if (startsWithLet && isForOf) { this.raise(init.start, \"The left-hand side of a for-of loop may not start with 'let'.\"); }\n this.toAssignable(init, false, refDestructuringErrors);\n this.checkLValPattern(init);\n return this.parseForIn(node, init)\n } else {\n this.checkExpressionErrors(refDestructuringErrors, true);\n }\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n return this.parseFor(node, init)\n};\n\npp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) {\n this.next();\n return this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), false, isAsync)\n};\n\npp$8.parseIfStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n // allow function declarations in branches, but only in non-strict mode\n node.consequent = this.parseStatement(\"if\");\n node.alternate = this.eat(types$1._else) ? this.parseStatement(\"if\") : null;\n return this.finishNode(node, \"IfStatement\")\n};\n\npp$8.parseReturnStatement = function(node) {\n if (!this.inFunction && !this.options.allowReturnOutsideFunction)\n { this.raise(this.start, \"'return' outside of function\"); }\n this.next();\n\n // In `return` (and `break`/`continue`), the keywords with\n // optional arguments, we eagerly look for a semicolon or the\n // possibility to insert one.\n\n if (this.eat(types$1.semi) || this.insertSemicolon()) { node.argument = null; }\n else { node.argument = this.parseExpression(); this.semicolon(); }\n return this.finishNode(node, \"ReturnStatement\")\n};\n\npp$8.parseSwitchStatement = function(node) {\n this.next();\n node.discriminant = this.parseParenExpression();\n node.cases = [];\n this.expect(types$1.braceL);\n this.labels.push(switchLabel);\n this.enterScope(0);\n\n // Statements under must be grouped (by label) in SwitchCase\n // nodes. `cur` is used to keep the node that we are currently\n // adding statements to.\n\n var cur;\n for (var sawDefault = false; this.type !== types$1.braceR;) {\n if (this.type === types$1._case || this.type === types$1._default) {\n var isCase = this.type === types$1._case;\n if (cur) { this.finishNode(cur, \"SwitchCase\"); }\n node.cases.push(cur = this.startNode());\n cur.consequent = [];\n this.next();\n if (isCase) {\n cur.test = this.parseExpression();\n } else {\n if (sawDefault) { this.raiseRecoverable(this.lastTokStart, \"Multiple default clauses\"); }\n sawDefault = true;\n cur.test = null;\n }\n this.expect(types$1.colon);\n } else {\n if (!cur) { this.unexpected(); }\n cur.consequent.push(this.parseStatement(null));\n }\n }\n this.exitScope();\n if (cur) { this.finishNode(cur, \"SwitchCase\"); }\n this.next(); // Closing brace\n this.labels.pop();\n return this.finishNode(node, \"SwitchStatement\")\n};\n\npp$8.parseThrowStatement = function(node) {\n this.next();\n if (lineBreak.test(this.input.slice(this.lastTokEnd, this.start)))\n { this.raise(this.lastTokEnd, \"Illegal newline after throw\"); }\n node.argument = this.parseExpression();\n this.semicolon();\n return this.finishNode(node, \"ThrowStatement\")\n};\n\n// Reused empty array added for node fields that are always empty.\n\nvar empty$1 = [];\n\npp$8.parseCatchClauseParam = function() {\n var param = this.parseBindingAtom();\n var simple = param.type === \"Identifier\";\n this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);\n this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);\n this.expect(types$1.parenR);\n\n return param\n};\n\npp$8.parseTryStatement = function(node) {\n this.next();\n node.block = this.parseBlock();\n node.handler = null;\n if (this.type === types$1._catch) {\n var clause = this.startNode();\n this.next();\n if (this.eat(types$1.parenL)) {\n clause.param = this.parseCatchClauseParam();\n } else {\n if (this.options.ecmaVersion < 10) { this.unexpected(); }\n clause.param = null;\n this.enterScope(0);\n }\n clause.body = this.parseBlock(false);\n this.exitScope();\n node.handler = this.finishNode(clause, \"CatchClause\");\n }\n node.finalizer = this.eat(types$1._finally) ? this.parseBlock() : null;\n if (!node.handler && !node.finalizer)\n { this.raise(node.start, \"Missing catch or finally clause\"); }\n return this.finishNode(node, \"TryStatement\")\n};\n\npp$8.parseVarStatement = function(node, kind, allowMissingInitializer) {\n this.next();\n this.parseVar(node, false, kind, allowMissingInitializer);\n this.semicolon();\n return this.finishNode(node, \"VariableDeclaration\")\n};\n\npp$8.parseWhileStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n this.labels.push(loopLabel);\n node.body = this.parseStatement(\"while\");\n this.labels.pop();\n return this.finishNode(node, \"WhileStatement\")\n};\n\npp$8.parseWithStatement = function(node) {\n if (this.strict) { this.raise(this.start, \"'with' in strict mode\"); }\n this.next();\n node.object = this.parseParenExpression();\n node.body = this.parseStatement(\"with\");\n return this.finishNode(node, \"WithStatement\")\n};\n\npp$8.parseEmptyStatement = function(node) {\n this.next();\n return this.finishNode(node, \"EmptyStatement\")\n};\n\npp$8.parseLabeledStatement = function(node, maybeName, expr, context) {\n for (var i$1 = 0, list = this.labels; i$1 < list.length; i$1 += 1)\n {\n var label = list[i$1];\n\n if (label.name === maybeName)\n { this.raise(expr.start, \"Label '\" + maybeName + \"' is already declared\");\n } }\n var kind = this.type.isLoop ? \"loop\" : this.type === types$1._switch ? \"switch\" : null;\n for (var i = this.labels.length - 1; i >= 0; i--) {\n var label$1 = this.labels[i];\n if (label$1.statementStart === node.start) {\n // Update information about previous labels on this node\n label$1.statementStart = this.start;\n label$1.kind = kind;\n } else { break }\n }\n this.labels.push({name: maybeName, kind: kind, statementStart: this.start});\n node.body = this.parseStatement(context ? context.indexOf(\"label\") === -1 ? context + \"label\" : context : \"label\");\n this.labels.pop();\n node.label = expr;\n return this.finishNode(node, \"LabeledStatement\")\n};\n\npp$8.parseExpressionStatement = function(node, expr) {\n node.expression = expr;\n this.semicolon();\n return this.finishNode(node, \"ExpressionStatement\")\n};\n\n// Parse a semicolon-enclosed block of statements, handling `\"use\n// strict\"` declarations when `allowStrict` is true (used for\n// function bodies).\n\npp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) {\n if ( createNewLexicalScope === void 0 ) createNewLexicalScope = true;\n if ( node === void 0 ) node = this.startNode();\n\n node.body = [];\n this.expect(types$1.braceL);\n if (createNewLexicalScope) { this.enterScope(0); }\n while (this.type !== types$1.braceR) {\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n if (exitStrict) { this.strict = false; }\n this.next();\n if (createNewLexicalScope) { this.exitScope(); }\n return this.finishNode(node, \"BlockStatement\")\n};\n\n// Parse a regular `for` loop. The disambiguation code in\n// `parseStatement` will already have parsed the init statement or\n// expression.\n\npp$8.parseFor = function(node, init) {\n node.init = init;\n this.expect(types$1.semi);\n node.test = this.type === types$1.semi ? null : this.parseExpression();\n this.expect(types$1.semi);\n node.update = this.type === types$1.parenR ? null : this.parseExpression();\n this.expect(types$1.parenR);\n node.body = this.parseStatement(\"for\");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node, \"ForStatement\")\n};\n\n// Parse a `for`/`in` and `for`/`of` loop, which are almost\n// same from parser's perspective.\n\npp$8.parseForIn = function(node, init) {\n var isForIn = this.type === types$1._in;\n this.next();\n\n if (\n init.type === \"VariableDeclaration\" &&\n init.declarations[0].init != null &&\n (\n !isForIn ||\n this.options.ecmaVersion < 8 ||\n this.strict ||\n init.kind !== \"var\" ||\n init.declarations[0].id.type !== \"Identifier\"\n )\n ) {\n this.raise(\n init.start,\n ((isForIn ? \"for-in\" : \"for-of\") + \" loop variable declaration may not have an initializer\")\n );\n }\n node.left = init;\n node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign();\n this.expect(types$1.parenR);\n node.body = this.parseStatement(\"for\");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node, isForIn ? \"ForInStatement\" : \"ForOfStatement\")\n};\n\n// Parse a list of variable declarations.\n\npp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {\n node.declarations = [];\n node.kind = kind;\n for (;;) {\n var decl = this.startNode();\n this.parseVarId(decl, kind);\n if (this.eat(types$1.eq)) {\n decl.init = this.parseMaybeAssign(isFor);\n } else if (!allowMissingInitializer && kind === \"const\" && !(this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual(\"of\")))) {\n this.unexpected();\n } else if (!allowMissingInitializer && decl.id.type !== \"Identifier\" && !(isFor && (this.type === types$1._in || this.isContextual(\"of\")))) {\n this.raise(this.lastTokEnd, \"Complex binding patterns require an initialization value\");\n } else {\n decl.init = null;\n }\n node.declarations.push(this.finishNode(decl, \"VariableDeclarator\"));\n if (!this.eat(types$1.comma)) { break }\n }\n return node\n};\n\npp$8.parseVarId = function(decl, kind) {\n decl.id = this.parseBindingAtom();\n this.checkLValPattern(decl.id, kind === \"var\" ? BIND_VAR : BIND_LEXICAL, false);\n};\n\nvar FUNC_STATEMENT = 1, FUNC_HANGING_STATEMENT = 2, FUNC_NULLABLE_ID = 4;\n\n// Parse a function declaration or literal (depending on the\n// `statement & FUNC_STATEMENT`).\n\n// Remove `allowExpressionBody` for 7.0.0, as it is only called with false\npp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) {\n this.initFunction(node);\n if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) {\n if (this.type === types$1.star && (statement & FUNC_HANGING_STATEMENT))\n { this.unexpected(); }\n node.generator = this.eat(types$1.star);\n }\n if (this.options.ecmaVersion >= 8)\n { node.async = !!isAsync; }\n\n if (statement & FUNC_STATEMENT) {\n node.id = (statement & FUNC_NULLABLE_ID) && this.type !== types$1.name ? null : this.parseIdent();\n if (node.id && !(statement & FUNC_HANGING_STATEMENT))\n // If it is a regular function declaration in sloppy mode, then it is\n // subject to Annex B semantics (BIND_FUNCTION). Otherwise, the binding\n // mode depends on properties of the current scope (see\n // treatFunctionsAsVar).\n { this.checkLValSimple(node.id, (this.strict || node.generator || node.async) ? this.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION); }\n }\n\n var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope(functionFlags(node.async, node.generator));\n\n if (!(statement & FUNC_STATEMENT))\n { node.id = this.type === types$1.name ? this.parseIdent() : null; }\n\n this.parseFunctionParams(node);\n this.parseFunctionBody(node, allowExpressionBody, false, forInit);\n\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, (statement & FUNC_STATEMENT) ? \"FunctionDeclaration\" : \"FunctionExpression\")\n};\n\npp$8.parseFunctionParams = function(node) {\n this.expect(types$1.parenL);\n node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n};\n\n// Parse a class declaration or literal (depending on the\n// `isStatement` parameter).\n\npp$8.parseClass = function(node, isStatement) {\n this.next();\n\n // ecma-262 14.6 Class Definitions\n // A class definition is always strict mode code.\n var oldStrict = this.strict;\n this.strict = true;\n\n this.parseClassId(node, isStatement);\n this.parseClassSuper(node);\n var privateNameMap = this.enterClassBody();\n var classBody = this.startNode();\n var hadConstructor = false;\n classBody.body = [];\n this.expect(types$1.braceL);\n while (this.type !== types$1.braceR) {\n var element = this.parseClassElement(node.superClass !== null);\n if (element) {\n classBody.body.push(element);\n if (element.type === \"MethodDefinition\" && element.kind === \"constructor\") {\n if (hadConstructor) { this.raiseRecoverable(element.start, \"Duplicate constructor in the same class\"); }\n hadConstructor = true;\n } else if (element.key && element.key.type === \"PrivateIdentifier\" && isPrivateNameConflicted(privateNameMap, element)) {\n this.raiseRecoverable(element.key.start, (\"Identifier '#\" + (element.key.name) + \"' has already been declared\"));\n }\n }\n }\n this.strict = oldStrict;\n this.next();\n node.body = this.finishNode(classBody, \"ClassBody\");\n this.exitClassBody();\n return this.finishNode(node, isStatement ? \"ClassDeclaration\" : \"ClassExpression\")\n};\n\npp$8.parseClassElement = function(constructorAllowsSuper) {\n if (this.eat(types$1.semi)) { return null }\n\n var ecmaVersion = this.options.ecmaVersion;\n var node = this.startNode();\n var keyName = \"\";\n var isGenerator = false;\n var isAsync = false;\n var kind = \"method\";\n var isStatic = false;\n\n if (this.eatContextual(\"static\")) {\n // Parse static init block\n if (ecmaVersion >= 13 && this.eat(types$1.braceL)) {\n this.parseClassStaticBlock(node);\n return node\n }\n if (this.isClassElementNameStart() || this.type === types$1.star) {\n isStatic = true;\n } else {\n keyName = \"static\";\n }\n }\n node.static = isStatic;\n if (!keyName && ecmaVersion >= 8 && this.eatContextual(\"async\")) {\n if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) {\n isAsync = true;\n } else {\n keyName = \"async\";\n }\n }\n if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star)) {\n isGenerator = true;\n }\n if (!keyName && !isAsync && !isGenerator) {\n var lastValue = this.value;\n if (this.eatContextual(\"get\") || this.eatContextual(\"set\")) {\n if (this.isClassElementNameStart()) {\n kind = lastValue;\n } else {\n keyName = lastValue;\n }\n }\n }\n\n // Parse element name\n if (keyName) {\n // 'async', 'get', 'set', or 'static' were not a keyword contextually.\n // The last token is any of those. Make it the element name.\n node.computed = false;\n node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc);\n node.key.name = keyName;\n this.finishNode(node.key, \"Identifier\");\n } else {\n this.parseClassElementName(node);\n }\n\n // Parse element value\n if (ecmaVersion < 13 || this.type === types$1.parenL || kind !== \"method\" || isGenerator || isAsync) {\n var isConstructor = !node.static && checkKeyName(node, \"constructor\");\n var allowsDirectSuper = isConstructor && constructorAllowsSuper;\n // Couldn't move this check into the 'parseClassMethod' method for backward compatibility.\n if (isConstructor && kind !== \"method\") { this.raise(node.key.start, \"Constructor can't have get/set modifier\"); }\n node.kind = isConstructor ? \"constructor\" : kind;\n this.parseClassMethod(node, isGenerator, isAsync, allowsDirectSuper);\n } else {\n this.parseClassField(node);\n }\n\n return node\n};\n\npp$8.isClassElementNameStart = function() {\n return (\n this.type === types$1.name ||\n this.type === types$1.privateId ||\n this.type === types$1.num ||\n this.type === types$1.string ||\n this.type === types$1.bracketL ||\n this.type.keyword\n )\n};\n\npp$8.parseClassElementName = function(element) {\n if (this.type === types$1.privateId) {\n if (this.value === \"constructor\") {\n this.raise(this.start, \"Classes can't have an element named '#constructor'\");\n }\n element.computed = false;\n element.key = this.parsePrivateIdent();\n } else {\n this.parsePropertyName(element);\n }\n};\n\npp$8.parseClassMethod = function(method, isGenerator, isAsync, allowsDirectSuper) {\n // Check key and flags\n var key = method.key;\n if (method.kind === \"constructor\") {\n if (isGenerator) { this.raise(key.start, \"Constructor can't be a generator\"); }\n if (isAsync) { this.raise(key.start, \"Constructor can't be an async method\"); }\n } else if (method.static && checkKeyName(method, \"prototype\")) {\n this.raise(key.start, \"Classes may not have a static property named prototype\");\n }\n\n // Parse value\n var value = method.value = this.parseMethod(isGenerator, isAsync, allowsDirectSuper);\n\n // Check value\n if (method.kind === \"get\" && value.params.length !== 0)\n { this.raiseRecoverable(value.start, \"getter should have no params\"); }\n if (method.kind === \"set\" && value.params.length !== 1)\n { this.raiseRecoverable(value.start, \"setter should have exactly one param\"); }\n if (method.kind === \"set\" && value.params[0].type === \"RestElement\")\n { this.raiseRecoverable(value.params[0].start, \"Setter cannot use rest params\"); }\n\n return this.finishNode(method, \"MethodDefinition\")\n};\n\npp$8.parseClassField = function(field) {\n if (checkKeyName(field, \"constructor\")) {\n this.raise(field.key.start, \"Classes can't have a field named 'constructor'\");\n } else if (field.static && checkKeyName(field, \"prototype\")) {\n this.raise(field.key.start, \"Classes can't have a static field named 'prototype'\");\n }\n\n if (this.eat(types$1.eq)) {\n // To raise SyntaxError if 'arguments' exists in the initializer.\n var scope = this.currentThisScope();\n var inClassFieldInit = scope.inClassFieldInit;\n scope.inClassFieldInit = true;\n field.value = this.parseMaybeAssign();\n scope.inClassFieldInit = inClassFieldInit;\n } else {\n field.value = null;\n }\n this.semicolon();\n\n return this.finishNode(field, \"PropertyDefinition\")\n};\n\npp$8.parseClassStaticBlock = function(node) {\n node.body = [];\n\n var oldLabels = this.labels;\n this.labels = [];\n this.enterScope(SCOPE_CLASS_STATIC_BLOCK | SCOPE_SUPER);\n while (this.type !== types$1.braceR) {\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n this.next();\n this.exitScope();\n this.labels = oldLabels;\n\n return this.finishNode(node, \"StaticBlock\")\n};\n\npp$8.parseClassId = function(node, isStatement) {\n if (this.type === types$1.name) {\n node.id = this.parseIdent();\n if (isStatement)\n { this.checkLValSimple(node.id, BIND_LEXICAL, false); }\n } else {\n if (isStatement === true)\n { this.unexpected(); }\n node.id = null;\n }\n};\n\npp$8.parseClassSuper = function(node) {\n node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(null, false) : null;\n};\n\npp$8.enterClassBody = function() {\n var element = {declared: Object.create(null), used: []};\n this.privateNameStack.push(element);\n return element.declared\n};\n\npp$8.exitClassBody = function() {\n var ref = this.privateNameStack.pop();\n var declared = ref.declared;\n var used = ref.used;\n if (!this.options.checkPrivateFields) { return }\n var len = this.privateNameStack.length;\n var parent = len === 0 ? null : this.privateNameStack[len - 1];\n for (var i = 0; i < used.length; ++i) {\n var id = used[i];\n if (!hasOwn(declared, id.name)) {\n if (parent) {\n parent.used.push(id);\n } else {\n this.raiseRecoverable(id.start, (\"Private field '#\" + (id.name) + \"' must be declared in an enclosing class\"));\n }\n }\n }\n};\n\nfunction isPrivateNameConflicted(privateNameMap, element) {\n var name = element.key.name;\n var curr = privateNameMap[name];\n\n var next = \"true\";\n if (element.type === \"MethodDefinition\" && (element.kind === \"get\" || element.kind === \"set\")) {\n next = (element.static ? \"s\" : \"i\") + element.kind;\n }\n\n // `class { get #a(){}; static set #a(_){} }` is also conflict.\n if (\n curr === \"iget\" && next === \"iset\" ||\n curr === \"iset\" && next === \"iget\" ||\n curr === \"sget\" && next === \"sset\" ||\n curr === \"sset\" && next === \"sget\"\n ) {\n privateNameMap[name] = \"true\";\n return false\n } else if (!curr) {\n privateNameMap[name] = next;\n return false\n } else {\n return true\n }\n}\n\nfunction checkKeyName(node, name) {\n var computed = node.computed;\n var key = node.key;\n return !computed && (\n key.type === \"Identifier\" && key.name === name ||\n key.type === \"Literal\" && key.value === name\n )\n}\n\n// Parses module export declaration.\n\npp$8.parseExportAllDeclaration = function(node, exports) {\n if (this.options.ecmaVersion >= 11) {\n if (this.eatContextual(\"as\")) {\n node.exported = this.parseModuleExportName();\n this.checkExport(exports, node.exported, this.lastTokStart);\n } else {\n node.exported = null;\n }\n }\n this.expectContextual(\"from\");\n if (this.type !== types$1.string) { this.unexpected(); }\n node.source = this.parseExprAtom();\n this.semicolon();\n return this.finishNode(node, \"ExportAllDeclaration\")\n};\n\npp$8.parseExport = function(node, exports) {\n this.next();\n // export * from '...'\n if (this.eat(types$1.star)) {\n return this.parseExportAllDeclaration(node, exports)\n }\n if (this.eat(types$1._default)) { // export default ...\n this.checkExport(exports, \"default\", this.lastTokStart);\n node.declaration = this.parseExportDefaultDeclaration();\n return this.finishNode(node, \"ExportDefaultDeclaration\")\n }\n // export var|const|let|function|class ...\n if (this.shouldParseExportStatement()) {\n node.declaration = this.parseExportDeclaration(node);\n if (node.declaration.type === \"VariableDeclaration\")\n { this.checkVariableExport(exports, node.declaration.declarations); }\n else\n { this.checkExport(exports, node.declaration.id, node.declaration.id.start); }\n node.specifiers = [];\n node.source = null;\n } else { // export { x, y as z } [from '...']\n node.declaration = null;\n node.specifiers = this.parseExportSpecifiers(exports);\n if (this.eatContextual(\"from\")) {\n if (this.type !== types$1.string) { this.unexpected(); }\n node.source = this.parseExprAtom();\n } else {\n for (var i = 0, list = node.specifiers; i < list.length; i += 1) {\n // check for keywords used as local names\n var spec = list[i];\n\n this.checkUnreserved(spec.local);\n // check if export is defined\n this.checkLocalExport(spec.local);\n\n if (spec.local.type === \"Literal\") {\n this.raise(spec.local.start, \"A string literal cannot be used as an exported binding without `from`.\");\n }\n }\n\n node.source = null;\n }\n this.semicolon();\n }\n return this.finishNode(node, \"ExportNamedDeclaration\")\n};\n\npp$8.parseExportDeclaration = function(node) {\n return this.parseStatement(null)\n};\n\npp$8.parseExportDefaultDeclaration = function() {\n var isAsync;\n if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {\n var fNode = this.startNode();\n this.next();\n if (isAsync) { this.next(); }\n return this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync)\n } else if (this.type === types$1._class) {\n var cNode = this.startNode();\n return this.parseClass(cNode, \"nullableID\")\n } else {\n var declaration = this.parseMaybeAssign();\n this.semicolon();\n return declaration\n }\n};\n\npp$8.checkExport = function(exports, name, pos) {\n if (!exports) { return }\n if (typeof name !== \"string\")\n { name = name.type === \"Identifier\" ? name.name : name.value; }\n if (hasOwn(exports, name))\n { this.raiseRecoverable(pos, \"Duplicate export '\" + name + \"'\"); }\n exports[name] = true;\n};\n\npp$8.checkPatternExport = function(exports, pat) {\n var type = pat.type;\n if (type === \"Identifier\")\n { this.checkExport(exports, pat, pat.start); }\n else if (type === \"ObjectPattern\")\n { for (var i = 0, list = pat.properties; i < list.length; i += 1)\n {\n var prop = list[i];\n\n this.checkPatternExport(exports, prop);\n } }\n else if (type === \"ArrayPattern\")\n { for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) {\n var elt = list$1[i$1];\n\n if (elt) { this.checkPatternExport(exports, elt); }\n } }\n else if (type === \"Property\")\n { this.checkPatternExport(exports, pat.value); }\n else if (type === \"AssignmentPattern\")\n { this.checkPatternExport(exports, pat.left); }\n else if (type === \"RestElement\")\n { this.checkPatternExport(exports, pat.argument); }\n};\n\npp$8.checkVariableExport = function(exports, decls) {\n if (!exports) { return }\n for (var i = 0, list = decls; i < list.length; i += 1)\n {\n var decl = list[i];\n\n this.checkPatternExport(exports, decl.id);\n }\n};\n\npp$8.shouldParseExportStatement = function() {\n return this.type.keyword === \"var\" ||\n this.type.keyword === \"const\" ||\n this.type.keyword === \"class\" ||\n this.type.keyword === \"function\" ||\n this.isLet() ||\n this.isAsyncFunction()\n};\n\n// Parses a comma-separated list of module exports.\n\npp$8.parseExportSpecifier = function(exports) {\n var node = this.startNode();\n node.local = this.parseModuleExportName();\n\n node.exported = this.eatContextual(\"as\") ? this.parseModuleExportName() : node.local;\n this.checkExport(\n exports,\n node.exported,\n node.exported.start\n );\n\n return this.finishNode(node, \"ExportSpecifier\")\n};\n\npp$8.parseExportSpecifiers = function(exports) {\n var nodes = [], first = true;\n // export { x, y as z } [from '...']\n this.expect(types$1.braceL);\n while (!this.eat(types$1.braceR)) {\n if (!first) {\n this.expect(types$1.comma);\n if (this.afterTrailingComma(types$1.braceR)) { break }\n } else { first = false; }\n\n nodes.push(this.parseExportSpecifier(exports));\n }\n return nodes\n};\n\n// Parses import declaration.\n\npp$8.parseImport = function(node) {\n this.next();\n\n // import '...'\n if (this.type === types$1.string) {\n node.specifiers = empty$1;\n node.source = this.parseExprAtom();\n } else {\n node.specifiers = this.parseImportSpecifiers();\n this.expectContextual(\"from\");\n node.source = this.type === types$1.string ? this.parseExprAtom() : this.unexpected();\n }\n this.semicolon();\n return this.finishNode(node, \"ImportDeclaration\")\n};\n\n// Parses a comma-separated list of module imports.\n\npp$8.parseImportSpecifier = function() {\n var node = this.startNode();\n node.imported = this.parseModuleExportName();\n\n if (this.eatContextual(\"as\")) {\n node.local = this.parseIdent();\n } else {\n this.checkUnreserved(node.imported);\n node.local = node.imported;\n }\n this.checkLValSimple(node.local, BIND_LEXICAL);\n\n return this.finishNode(node, \"ImportSpecifier\")\n};\n\npp$8.parseImportDefaultSpecifier = function() {\n // import defaultObj, { x, y as z } from '...'\n var node = this.startNode();\n node.local = this.parseIdent();\n this.checkLValSimple(node.local, BIND_LEXICAL);\n return this.finishNode(node, \"ImportDefaultSpecifier\")\n};\n\npp$8.parseImportNamespaceSpecifier = function() {\n var node = this.startNode();\n this.next();\n this.expectContextual(\"as\");\n node.local = this.parseIdent();\n this.checkLValSimple(node.local, BIND_LEXICAL);\n return this.finishNode(node, \"ImportNamespaceSpecifier\")\n};\n\npp$8.parseImportSpecifiers = function() {\n var nodes = [], first = true;\n if (this.type === types$1.name) {\n nodes.push(this.parseImportDefaultSpecifier());\n if (!this.eat(types$1.comma)) { return nodes }\n }\n if (this.type === types$1.star) {\n nodes.push(this.parseImportNamespaceSpecifier());\n return nodes\n }\n this.expect(types$1.braceL);\n while (!this.eat(types$1.braceR)) {\n if (!first) {\n this.expect(types$1.comma);\n if (this.afterTrailingComma(types$1.braceR)) { break }\n } else { first = false; }\n\n nodes.push(this.parseImportSpecifier());\n }\n return nodes\n};\n\npp$8.parseModuleExportName = function() {\n if (this.options.ecmaVersion >= 13 && this.type === types$1.string) {\n var stringLiteral = this.parseLiteral(this.value);\n if (loneSurrogate.test(stringLiteral.value)) {\n this.raise(stringLiteral.start, \"An export name cannot include a lone surrogate.\");\n }\n return stringLiteral\n }\n return this.parseIdent(true)\n};\n\n// Set `ExpressionStatement#directive` property for directive prologues.\npp$8.adaptDirectivePrologue = function(statements) {\n for (var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i) {\n statements[i].directive = statements[i].expression.raw.slice(1, -1);\n }\n};\npp$8.isDirectiveCandidate = function(statement) {\n return (\n this.options.ecmaVersion >= 5 &&\n statement.type === \"ExpressionStatement\" &&\n statement.expression.type === \"Literal\" &&\n typeof statement.expression.value === \"string\" &&\n // Reject parenthesized strings.\n (this.input[statement.start] === \"\\\"\" || this.input[statement.start] === \"'\")\n )\n};\n\nvar pp$7 = Parser.prototype;\n\n// Convert existing expression atom to assignable pattern\n// if possible.\n\npp$7.toAssignable = function(node, isBinding, refDestructuringErrors) {\n if (this.options.ecmaVersion >= 6 && node) {\n switch (node.type) {\n case \"Identifier\":\n if (this.inAsync && node.name === \"await\")\n { this.raise(node.start, \"Cannot use 'await' as identifier inside an async function\"); }\n break\n\n case \"ObjectPattern\":\n case \"ArrayPattern\":\n case \"AssignmentPattern\":\n case \"RestElement\":\n break\n\n case \"ObjectExpression\":\n node.type = \"ObjectPattern\";\n if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }\n for (var i = 0, list = node.properties; i < list.length; i += 1) {\n var prop = list[i];\n\n this.toAssignable(prop, isBinding);\n // Early error:\n // AssignmentRestProperty[Yield, Await] :\n // `...` DestructuringAssignmentTarget[Yield, Await]\n //\n // It is a Syntax Error if |DestructuringAssignmentTarget| is an |ArrayLiteral| or an |ObjectLiteral|.\n if (\n prop.type === \"RestElement\" &&\n (prop.argument.type === \"ArrayPattern\" || prop.argument.type === \"ObjectPattern\")\n ) {\n this.raise(prop.argument.start, \"Unexpected token\");\n }\n }\n break\n\n case \"Property\":\n // AssignmentProperty has type === \"Property\"\n if (node.kind !== \"init\") { this.raise(node.key.start, \"Object pattern can't contain getter or setter\"); }\n this.toAssignable(node.value, isBinding);\n break\n\n case \"ArrayExpression\":\n node.type = \"ArrayPattern\";\n if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }\n this.toAssignableList(node.elements, isBinding);\n break\n\n case \"SpreadElement\":\n node.type = \"RestElement\";\n this.toAssignable(node.argument, isBinding);\n if (node.argument.type === \"AssignmentPattern\")\n { this.raise(node.argument.start, \"Rest elements cannot have a default value\"); }\n break\n\n case \"AssignmentExpression\":\n if (node.operator !== \"=\") { this.raise(node.left.end, \"Only '=' operator can be used for specifying default value.\"); }\n node.type = \"AssignmentPattern\";\n delete node.operator;\n this.toAssignable(node.left, isBinding);\n break\n\n case \"ParenthesizedExpression\":\n this.toAssignable(node.expression, isBinding, refDestructuringErrors);\n break\n\n case \"ChainExpression\":\n this.raiseRecoverable(node.start, \"Optional chaining cannot appear in left-hand side\");\n break\n\n case \"MemberExpression\":\n if (!isBinding) { break }\n\n default:\n this.raise(node.start, \"Assigning to rvalue\");\n }\n } else if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }\n return node\n};\n\n// Convert list of expression atoms to binding list.\n\npp$7.toAssignableList = function(exprList, isBinding) {\n var end = exprList.length;\n for (var i = 0; i < end; i++) {\n var elt = exprList[i];\n if (elt) { this.toAssignable(elt, isBinding); }\n }\n if (end) {\n var last = exprList[end - 1];\n if (this.options.ecmaVersion === 6 && isBinding && last && last.type === \"RestElement\" && last.argument.type !== \"Identifier\")\n { this.unexpected(last.argument.start); }\n }\n return exprList\n};\n\n// Parses spread element.\n\npp$7.parseSpread = function(refDestructuringErrors) {\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeAssign(false, refDestructuringErrors);\n return this.finishNode(node, \"SpreadElement\")\n};\n\npp$7.parseRestBinding = function() {\n var node = this.startNode();\n this.next();\n\n // RestElement inside of a function parameter must be an identifier\n if (this.options.ecmaVersion === 6 && this.type !== types$1.name)\n { this.unexpected(); }\n\n node.argument = this.parseBindingAtom();\n\n return this.finishNode(node, \"RestElement\")\n};\n\n// Parses lvalue (assignable) atom.\n\npp$7.parseBindingAtom = function() {\n if (this.options.ecmaVersion >= 6) {\n switch (this.type) {\n case types$1.bracketL:\n var node = this.startNode();\n this.next();\n node.elements = this.parseBindingList(types$1.bracketR, true, true);\n return this.finishNode(node, \"ArrayPattern\")\n\n case types$1.braceL:\n return this.parseObj(true)\n }\n }\n return this.parseIdent()\n};\n\npp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {\n var elts = [], first = true;\n while (!this.eat(close)) {\n if (first) { first = false; }\n else { this.expect(types$1.comma); }\n if (allowEmpty && this.type === types$1.comma) {\n elts.push(null);\n } else if (allowTrailingComma && this.afterTrailingComma(close)) {\n break\n } else if (this.type === types$1.ellipsis) {\n var rest = this.parseRestBinding();\n this.parseBindingListItem(rest);\n elts.push(rest);\n if (this.type === types$1.comma) { this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\"); }\n this.expect(close);\n break\n } else {\n elts.push(this.parseAssignableListItem(allowModifiers));\n }\n }\n return elts\n};\n\npp$7.parseAssignableListItem = function(allowModifiers) {\n var elem = this.parseMaybeDefault(this.start, this.startLoc);\n this.parseBindingListItem(elem);\n return elem\n};\n\npp$7.parseBindingListItem = function(param) {\n return param\n};\n\n// Parses assignment pattern around given atom if possible.\n\npp$7.parseMaybeDefault = function(startPos, startLoc, left) {\n left = left || this.parseBindingAtom();\n if (this.options.ecmaVersion < 6 || !this.eat(types$1.eq)) { return left }\n var node = this.startNodeAt(startPos, startLoc);\n node.left = left;\n node.right = this.parseMaybeAssign();\n return this.finishNode(node, \"AssignmentPattern\")\n};\n\n// The following three functions all verify that a node is an lvalue —\n// something that can be bound, or assigned to. In order to do so, they perform\n// a variety of checks:\n//\n// - Check that none of the bound/assigned-to identifiers are reserved words.\n// - Record name declarations for bindings in the appropriate scope.\n// - Check duplicate argument names, if checkClashes is set.\n//\n// If a complex binding pattern is encountered (e.g., object and array\n// destructuring), the entire pattern is recursively checked.\n//\n// There are three versions of checkLVal*() appropriate for different\n// circumstances:\n//\n// - checkLValSimple() shall be used if the syntactic construct supports\n// nothing other than identifiers and member expressions. Parenthesized\n// expressions are also correctly handled. This is generally appropriate for\n// constructs for which the spec says\n//\n// > It is a Syntax Error if AssignmentTargetType of [the production] is not\n// > simple.\n//\n// It is also appropriate for checking if an identifier is valid and not\n// defined elsewhere, like import declarations or function/class identifiers.\n//\n// Examples where this is used include:\n// a += …;\n// import a from '…';\n// where a is the node to be checked.\n//\n// - checkLValPattern() shall be used if the syntactic construct supports\n// anything checkLValSimple() supports, as well as object and array\n// destructuring patterns. This is generally appropriate for constructs for\n// which the spec says\n//\n// > It is a Syntax Error if [the production] is neither an ObjectLiteral nor\n// > an ArrayLiteral and AssignmentTargetType of [the production] is not\n// > simple.\n//\n// Examples where this is used include:\n// (a = …);\n// const a = …;\n// try { … } catch (a) { … }\n// where a is the node to be checked.\n//\n// - checkLValInnerPattern() shall be used if the syntactic construct supports\n// anything checkLValPattern() supports, as well as default assignment\n// patterns, rest elements, and other constructs that may appear within an\n// object or array destructuring pattern.\n//\n// As a special case, function parameters also use checkLValInnerPattern(),\n// as they also support defaults and rest constructs.\n//\n// These functions deliberately support both assignment and binding constructs,\n// as the logic for both is exceedingly similar. If the node is the target of\n// an assignment, then bindingType should be set to BIND_NONE. Otherwise, it\n// should be set to the appropriate BIND_* constant, like BIND_VAR or\n// BIND_LEXICAL.\n//\n// If the function is called with a non-BIND_NONE bindingType, then\n// additionally a checkClashes object may be specified to allow checking for\n// duplicate argument names. checkClashes is ignored if the provided construct\n// is an assignment (i.e., bindingType is BIND_NONE).\n\npp$7.checkLValSimple = function(expr, bindingType, checkClashes) {\n if ( bindingType === void 0 ) bindingType = BIND_NONE;\n\n var isBind = bindingType !== BIND_NONE;\n\n switch (expr.type) {\n case \"Identifier\":\n if (this.strict && this.reservedWordsStrictBind.test(expr.name))\n { this.raiseRecoverable(expr.start, (isBind ? \"Binding \" : \"Assigning to \") + expr.name + \" in strict mode\"); }\n if (isBind) {\n if (bindingType === BIND_LEXICAL && expr.name === \"let\")\n { this.raiseRecoverable(expr.start, \"let is disallowed as a lexically bound name\"); }\n if (checkClashes) {\n if (hasOwn(checkClashes, expr.name))\n { this.raiseRecoverable(expr.start, \"Argument name clash\"); }\n checkClashes[expr.name] = true;\n }\n if (bindingType !== BIND_OUTSIDE) { this.declareName(expr.name, bindingType, expr.start); }\n }\n break\n\n case \"ChainExpression\":\n this.raiseRecoverable(expr.start, \"Optional chaining cannot appear in left-hand side\");\n break\n\n case \"MemberExpression\":\n if (isBind) { this.raiseRecoverable(expr.start, \"Binding member expression\"); }\n break\n\n case \"ParenthesizedExpression\":\n if (isBind) { this.raiseRecoverable(expr.start, \"Binding parenthesized expression\"); }\n return this.checkLValSimple(expr.expression, bindingType, checkClashes)\n\n default:\n this.raise(expr.start, (isBind ? \"Binding\" : \"Assigning to\") + \" rvalue\");\n }\n};\n\npp$7.checkLValPattern = function(expr, bindingType, checkClashes) {\n if ( bindingType === void 0 ) bindingType = BIND_NONE;\n\n switch (expr.type) {\n case \"ObjectPattern\":\n for (var i = 0, list = expr.properties; i < list.length; i += 1) {\n var prop = list[i];\n\n this.checkLValInnerPattern(prop, bindingType, checkClashes);\n }\n break\n\n case \"ArrayPattern\":\n for (var i$1 = 0, list$1 = expr.elements; i$1 < list$1.length; i$1 += 1) {\n var elem = list$1[i$1];\n\n if (elem) { this.checkLValInnerPattern(elem, bindingType, checkClashes); }\n }\n break\n\n default:\n this.checkLValSimple(expr, bindingType, checkClashes);\n }\n};\n\npp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {\n if ( bindingType === void 0 ) bindingType = BIND_NONE;\n\n switch (expr.type) {\n case \"Property\":\n // AssignmentProperty has type === \"Property\"\n this.checkLValInnerPattern(expr.value, bindingType, checkClashes);\n break\n\n case \"AssignmentPattern\":\n this.checkLValPattern(expr.left, bindingType, checkClashes);\n break\n\n case \"RestElement\":\n this.checkLValPattern(expr.argument, bindingType, checkClashes);\n break\n\n default:\n this.checkLValPattern(expr, bindingType, checkClashes);\n }\n};\n\n// The algorithm used to determine whether a regexp can appear at a\n// given point in the program is loosely based on sweet.js' approach.\n// See https://github.com/mozilla/sweet.js/wiki/design\n\n\nvar TokContext = function TokContext(token, isExpr, preserveSpace, override, generator) {\n this.token = token;\n this.isExpr = !!isExpr;\n this.preserveSpace = !!preserveSpace;\n this.override = override;\n this.generator = !!generator;\n};\n\nvar types = {\n b_stat: new TokContext(\"{\", false),\n b_expr: new TokContext(\"{\", true),\n b_tmpl: new TokContext(\"${\", false),\n p_stat: new TokContext(\"(\", false),\n p_expr: new TokContext(\"(\", true),\n q_tmpl: new TokContext(\"`\", true, true, function (p) { return p.tryReadTemplateToken(); }),\n f_stat: new TokContext(\"function\", false),\n f_expr: new TokContext(\"function\", true),\n f_expr_gen: new TokContext(\"function\", true, false, null, true),\n f_gen: new TokContext(\"function\", false, false, null, true)\n};\n\nvar pp$6 = Parser.prototype;\n\npp$6.initialContext = function() {\n return [types.b_stat]\n};\n\npp$6.curContext = function() {\n return this.context[this.context.length - 1]\n};\n\npp$6.braceIsBlock = function(prevType) {\n var parent = this.curContext();\n if (parent === types.f_expr || parent === types.f_stat)\n { return true }\n if (prevType === types$1.colon && (parent === types.b_stat || parent === types.b_expr))\n { return !parent.isExpr }\n\n // The check for `tt.name && exprAllowed` detects whether we are\n // after a `yield` or `of` construct. See the `updateContext` for\n // `tt.name`.\n if (prevType === types$1._return || prevType === types$1.name && this.exprAllowed)\n { return lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) }\n if (prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow)\n { return true }\n if (prevType === types$1.braceL)\n { return parent === types.b_stat }\n if (prevType === types$1._var || prevType === types$1._const || prevType === types$1.name)\n { return false }\n return !this.exprAllowed\n};\n\npp$6.inGeneratorContext = function() {\n for (var i = this.context.length - 1; i >= 1; i--) {\n var context = this.context[i];\n if (context.token === \"function\")\n { return context.generator }\n }\n return false\n};\n\npp$6.updateContext = function(prevType) {\n var update, type = this.type;\n if (type.keyword && prevType === types$1.dot)\n { this.exprAllowed = false; }\n else if (update = type.updateContext)\n { update.call(this, prevType); }\n else\n { this.exprAllowed = type.beforeExpr; }\n};\n\n// Used to handle edge cases when token context could not be inferred correctly during tokenization phase\n\npp$6.overrideContext = function(tokenCtx) {\n if (this.curContext() !== tokenCtx) {\n this.context[this.context.length - 1] = tokenCtx;\n }\n};\n\n// Token-specific context update code\n\ntypes$1.parenR.updateContext = types$1.braceR.updateContext = function() {\n if (this.context.length === 1) {\n this.exprAllowed = true;\n return\n }\n var out = this.context.pop();\n if (out === types.b_stat && this.curContext().token === \"function\") {\n out = this.context.pop();\n }\n this.exprAllowed = !out.isExpr;\n};\n\ntypes$1.braceL.updateContext = function(prevType) {\n this.context.push(this.braceIsBlock(prevType) ? types.b_stat : types.b_expr);\n this.exprAllowed = true;\n};\n\ntypes$1.dollarBraceL.updateContext = function() {\n this.context.push(types.b_tmpl);\n this.exprAllowed = true;\n};\n\ntypes$1.parenL.updateContext = function(prevType) {\n var statementParens = prevType === types$1._if || prevType === types$1._for || prevType === types$1._with || prevType === types$1._while;\n this.context.push(statementParens ? types.p_stat : types.p_expr);\n this.exprAllowed = true;\n};\n\ntypes$1.incDec.updateContext = function() {\n // tokExprAllowed stays unchanged\n};\n\ntypes$1._function.updateContext = types$1._class.updateContext = function(prevType) {\n if (prevType.beforeExpr && prevType !== types$1._else &&\n !(prevType === types$1.semi && this.curContext() !== types.p_stat) &&\n !(prevType === types$1._return && lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) &&\n !((prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types.b_stat))\n { this.context.push(types.f_expr); }\n else\n { this.context.push(types.f_stat); }\n this.exprAllowed = false;\n};\n\ntypes$1.colon.updateContext = function() {\n if (this.curContext().token === \"function\") { this.context.pop(); }\n this.exprAllowed = true;\n};\n\ntypes$1.backQuote.updateContext = function() {\n if (this.curContext() === types.q_tmpl)\n { this.context.pop(); }\n else\n { this.context.push(types.q_tmpl); }\n this.exprAllowed = false;\n};\n\ntypes$1.star.updateContext = function(prevType) {\n if (prevType === types$1._function) {\n var index = this.context.length - 1;\n if (this.context[index] === types.f_expr)\n { this.context[index] = types.f_expr_gen; }\n else\n { this.context[index] = types.f_gen; }\n }\n this.exprAllowed = true;\n};\n\ntypes$1.name.updateContext = function(prevType) {\n var allowed = false;\n if (this.options.ecmaVersion >= 6 && prevType !== types$1.dot) {\n if (this.value === \"of\" && !this.exprAllowed ||\n this.value === \"yield\" && this.inGeneratorContext())\n { allowed = true; }\n }\n this.exprAllowed = allowed;\n};\n\n// A recursive descent parser operates by defining functions for all\n// syntactic elements, and recursively calling those, each function\n// advancing the input stream and returning an AST node. Precedence\n// of constructs (for example, the fact that `!x[1]` means `!(x[1])`\n// instead of `(!x)[1]` is handled by the fact that the parser\n// function that parses unary prefix operators is called first, and\n// in turn calls the function that parses `[]` subscripts — that\n// way, it'll receive the node for `x[1]` already parsed, and wraps\n// *that* in the unary operator node.\n//\n// Acorn uses an [operator precedence parser][opp] to handle binary\n// operator precedence, because it is much more compact than using\n// the technique outlined above, which uses different, nesting\n// functions to specify precedence, for all of the ten binary\n// precedence levels that JavaScript defines.\n//\n// [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser\n\n\nvar pp$5 = Parser.prototype;\n\n// Check if property name clashes with already added.\n// Object/class getters and setters are not allowed to clash —\n// either with each other or with an init property — and in\n// strict mode, init properties are also not allowed to be repeated.\n\npp$5.checkPropClash = function(prop, propHash, refDestructuringErrors) {\n if (this.options.ecmaVersion >= 9 && prop.type === \"SpreadElement\")\n { return }\n if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand))\n { return }\n var key = prop.key;\n var name;\n switch (key.type) {\n case \"Identifier\": name = key.name; break\n case \"Literal\": name = String(key.value); break\n default: return\n }\n var kind = prop.kind;\n if (this.options.ecmaVersion >= 6) {\n if (name === \"__proto__\" && kind === \"init\") {\n if (propHash.proto) {\n if (refDestructuringErrors) {\n if (refDestructuringErrors.doubleProto < 0) {\n refDestructuringErrors.doubleProto = key.start;\n }\n } else {\n this.raiseRecoverable(key.start, \"Redefinition of __proto__ property\");\n }\n }\n propHash.proto = true;\n }\n return\n }\n name = \"$\" + name;\n var other = propHash[name];\n if (other) {\n var redefinition;\n if (kind === \"init\") {\n redefinition = this.strict && other.init || other.get || other.set;\n } else {\n redefinition = other.init || other[kind];\n }\n if (redefinition)\n { this.raiseRecoverable(key.start, \"Redefinition of property\"); }\n } else {\n other = propHash[name] = {\n init: false,\n get: false,\n set: false\n };\n }\n other[kind] = true;\n};\n\n// ### Expression parsing\n\n// These nest, from the most general expression type at the top to\n// 'atomic', nondivisible expression types at the bottom. Most of\n// the functions will simply let the function(s) below them parse,\n// and, *if* the syntactic construct they handle is present, wrap\n// the AST node that the inner parser gave them in another node.\n\n// Parse a full expression. The optional arguments are used to\n// forbid the `in` operator (in for loops initalization expressions)\n// and provide reference for storing '=' operator inside shorthand\n// property assignment in contexts where both object expression\n// and object pattern might appear (so it's possible to raise\n// delayed syntax error at correct position).\n\npp$5.parseExpression = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseMaybeAssign(forInit, refDestructuringErrors);\n if (this.type === types$1.comma) {\n var node = this.startNodeAt(startPos, startLoc);\n node.expressions = [expr];\n while (this.eat(types$1.comma)) { node.expressions.push(this.parseMaybeAssign(forInit, refDestructuringErrors)); }\n return this.finishNode(node, \"SequenceExpression\")\n }\n return expr\n};\n\n// Parse an assignment expression. This includes applications of\n// operators like `+=`.\n\npp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {\n if (this.isContextual(\"yield\")) {\n if (this.inGenerator) { return this.parseYield(forInit) }\n // The tokenizer will assume an expression is allowed after\n // `yield`, but this isn't that kind of yield\n else { this.exprAllowed = false; }\n }\n\n var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1;\n if (refDestructuringErrors) {\n oldParenAssign = refDestructuringErrors.parenthesizedAssign;\n oldTrailingComma = refDestructuringErrors.trailingComma;\n oldDoubleProto = refDestructuringErrors.doubleProto;\n refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1;\n } else {\n refDestructuringErrors = new DestructuringErrors;\n ownDestructuringErrors = true;\n }\n\n var startPos = this.start, startLoc = this.startLoc;\n if (this.type === types$1.parenL || this.type === types$1.name) {\n this.potentialArrowAt = this.start;\n this.potentialArrowInForAwait = forInit === \"await\";\n }\n var left = this.parseMaybeConditional(forInit, refDestructuringErrors);\n if (afterLeftParse) { left = afterLeftParse.call(this, left, startPos, startLoc); }\n if (this.type.isAssign) {\n var node = this.startNodeAt(startPos, startLoc);\n node.operator = this.value;\n if (this.type === types$1.eq)\n { left = this.toAssignable(left, false, refDestructuringErrors); }\n if (!ownDestructuringErrors) {\n refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1;\n }\n if (refDestructuringErrors.shorthandAssign >= left.start)\n { refDestructuringErrors.shorthandAssign = -1; } // reset because shorthand default was used correctly\n if (this.type === types$1.eq)\n { this.checkLValPattern(left); }\n else\n { this.checkLValSimple(left); }\n node.left = left;\n this.next();\n node.right = this.parseMaybeAssign(forInit);\n if (oldDoubleProto > -1) { refDestructuringErrors.doubleProto = oldDoubleProto; }\n return this.finishNode(node, \"AssignmentExpression\")\n } else {\n if (ownDestructuringErrors) { this.checkExpressionErrors(refDestructuringErrors, true); }\n }\n if (oldParenAssign > -1) { refDestructuringErrors.parenthesizedAssign = oldParenAssign; }\n if (oldTrailingComma > -1) { refDestructuringErrors.trailingComma = oldTrailingComma; }\n return left\n};\n\n// Parse a ternary conditional (`?:`) operator.\n\npp$5.parseMaybeConditional = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseExprOps(forInit, refDestructuringErrors);\n if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }\n if (this.eat(types$1.question)) {\n var node = this.startNodeAt(startPos, startLoc);\n node.test = expr;\n node.consequent = this.parseMaybeAssign();\n this.expect(types$1.colon);\n node.alternate = this.parseMaybeAssign(forInit);\n return this.finishNode(node, \"ConditionalExpression\")\n }\n return expr\n};\n\n// Start the precedence parser.\n\npp$5.parseExprOps = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseMaybeUnary(refDestructuringErrors, false, false, forInit);\n if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }\n return expr.start === startPos && expr.type === \"ArrowFunctionExpression\" ? expr : this.parseExprOp(expr, startPos, startLoc, -1, forInit)\n};\n\n// Parse binary operators with the operator precedence parsing\n// algorithm. `left` is the left-hand side of the operator.\n// `minPrec` provides context that allows the function to stop and\n// defer further parser to one of its callers when it encounters an\n// operator that has a lower precedence than the set it is parsing.\n\npp$5.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) {\n var prec = this.type.binop;\n if (prec != null && (!forInit || this.type !== types$1._in)) {\n if (prec > minPrec) {\n var logical = this.type === types$1.logicalOR || this.type === types$1.logicalAND;\n var coalesce = this.type === types$1.coalesce;\n if (coalesce) {\n // Handle the precedence of `tt.coalesce` as equal to the range of logical expressions.\n // In other words, `node.right` shouldn't contain logical expressions in order to check the mixed error.\n prec = types$1.logicalAND.binop;\n }\n var op = this.value;\n this.next();\n var startPos = this.start, startLoc = this.startLoc;\n var right = this.parseExprOp(this.parseMaybeUnary(null, false, false, forInit), startPos, startLoc, prec, forInit);\n var node = this.buildBinary(leftStartPos, leftStartLoc, left, right, op, logical || coalesce);\n if ((logical && this.type === types$1.coalesce) || (coalesce && (this.type === types$1.logicalOR || this.type === types$1.logicalAND))) {\n this.raiseRecoverable(this.start, \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses\");\n }\n return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, forInit)\n }\n }\n return left\n};\n\npp$5.buildBinary = function(startPos, startLoc, left, right, op, logical) {\n if (right.type === \"PrivateIdentifier\") { this.raise(right.start, \"Private identifier can only be left side of binary expression\"); }\n var node = this.startNodeAt(startPos, startLoc);\n node.left = left;\n node.operator = op;\n node.right = right;\n return this.finishNode(node, logical ? \"LogicalExpression\" : \"BinaryExpression\")\n};\n\n// Parse unary operators, both prefix and postfix.\n\npp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) {\n var startPos = this.start, startLoc = this.startLoc, expr;\n if (this.isContextual(\"await\") && this.canAwait) {\n expr = this.parseAwait(forInit);\n sawUnary = true;\n } else if (this.type.prefix) {\n var node = this.startNode(), update = this.type === types$1.incDec;\n node.operator = this.value;\n node.prefix = true;\n this.next();\n node.argument = this.parseMaybeUnary(null, true, update, forInit);\n this.checkExpressionErrors(refDestructuringErrors, true);\n if (update) { this.checkLValSimple(node.argument); }\n else if (this.strict && node.operator === \"delete\" && isLocalVariableAccess(node.argument))\n { this.raiseRecoverable(node.start, \"Deleting local variable in strict mode\"); }\n else if (node.operator === \"delete\" && isPrivateFieldAccess(node.argument))\n { this.raiseRecoverable(node.start, \"Private fields can not be deleted\"); }\n else { sawUnary = true; }\n expr = this.finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\");\n } else if (!sawUnary && this.type === types$1.privateId) {\n if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) { this.unexpected(); }\n expr = this.parsePrivateIdent();\n // only could be private fields in 'in', such as #x in obj\n if (this.type !== types$1._in) { this.unexpected(); }\n } else {\n expr = this.parseExprSubscripts(refDestructuringErrors, forInit);\n if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }\n while (this.type.postfix && !this.canInsertSemicolon()) {\n var node$1 = this.startNodeAt(startPos, startLoc);\n node$1.operator = this.value;\n node$1.prefix = false;\n node$1.argument = expr;\n this.checkLValSimple(expr);\n this.next();\n expr = this.finishNode(node$1, \"UpdateExpression\");\n }\n }\n\n if (!incDec && this.eat(types$1.starstar)) {\n if (sawUnary)\n { this.unexpected(this.lastTokStart); }\n else\n { return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), \"**\", false) }\n } else {\n return expr\n }\n};\n\nfunction isLocalVariableAccess(node) {\n return (\n node.type === \"Identifier\" ||\n node.type === \"ParenthesizedExpression\" && isLocalVariableAccess(node.expression)\n )\n}\n\nfunction isPrivateFieldAccess(node) {\n return (\n node.type === \"MemberExpression\" && node.property.type === \"PrivateIdentifier\" ||\n node.type === \"ChainExpression\" && isPrivateFieldAccess(node.expression) ||\n node.type === \"ParenthesizedExpression\" && isPrivateFieldAccess(node.expression)\n )\n}\n\n// Parse call, dot, and `[]`-subscript expressions.\n\npp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseExprAtom(refDestructuringErrors, forInit);\n if (expr.type === \"ArrowFunctionExpression\" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== \")\")\n { return expr }\n var result = this.parseSubscripts(expr, startPos, startLoc, false, forInit);\n if (refDestructuringErrors && result.type === \"MemberExpression\") {\n if (refDestructuringErrors.parenthesizedAssign >= result.start) { refDestructuringErrors.parenthesizedAssign = -1; }\n if (refDestructuringErrors.parenthesizedBind >= result.start) { refDestructuringErrors.parenthesizedBind = -1; }\n if (refDestructuringErrors.trailingComma >= result.start) { refDestructuringErrors.trailingComma = -1; }\n }\n return result\n};\n\npp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {\n var maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === \"Identifier\" && base.name === \"async\" &&\n this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 &&\n this.potentialArrowAt === base.start;\n var optionalChained = false;\n\n while (true) {\n var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit);\n\n if (element.optional) { optionalChained = true; }\n if (element === base || element.type === \"ArrowFunctionExpression\") {\n if (optionalChained) {\n var chainNode = this.startNodeAt(startPos, startLoc);\n chainNode.expression = element;\n element = this.finishNode(chainNode, \"ChainExpression\");\n }\n return element\n }\n\n base = element;\n }\n};\n\npp$5.shouldParseAsyncArrow = function() {\n return !this.canInsertSemicolon() && this.eat(types$1.arrow)\n};\n\npp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit)\n};\n\npp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {\n var optionalSupported = this.options.ecmaVersion >= 11;\n var optional = optionalSupported && this.eat(types$1.questionDot);\n if (noCalls && optional) { this.raise(this.lastTokStart, \"Optional chaining cannot appear in the callee of new expressions\"); }\n\n var computed = this.eat(types$1.bracketL);\n if (computed || (optional && this.type !== types$1.parenL && this.type !== types$1.backQuote) || this.eat(types$1.dot)) {\n var node = this.startNodeAt(startPos, startLoc);\n node.object = base;\n if (computed) {\n node.property = this.parseExpression();\n this.expect(types$1.bracketR);\n } else if (this.type === types$1.privateId && base.type !== \"Super\") {\n node.property = this.parsePrivateIdent();\n } else {\n node.property = this.parseIdent(this.options.allowReserved !== \"never\");\n }\n node.computed = !!computed;\n if (optionalSupported) {\n node.optional = optional;\n }\n base = this.finishNode(node, \"MemberExpression\");\n } else if (!noCalls && this.eat(types$1.parenL)) {\n var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n var exprList = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);\n if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {\n this.checkPatternErrors(refDestructuringErrors, false);\n this.checkYieldAwaitInDefaultParams();\n if (this.awaitIdentPos > 0)\n { this.raise(this.awaitIdentPos, \"Cannot use 'await' as identifier inside an async function\"); }\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit)\n }\n this.checkExpressionErrors(refDestructuringErrors, true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n this.awaitIdentPos = oldAwaitIdentPos || this.awaitIdentPos;\n var node$1 = this.startNodeAt(startPos, startLoc);\n node$1.callee = base;\n node$1.arguments = exprList;\n if (optionalSupported) {\n node$1.optional = optional;\n }\n base = this.finishNode(node$1, \"CallExpression\");\n } else if (this.type === types$1.backQuote) {\n if (optional || optionalChained) {\n this.raise(this.start, \"Optional chaining cannot appear in the tag of tagged template expressions\");\n }\n var node$2 = this.startNodeAt(startPos, startLoc);\n node$2.tag = base;\n node$2.quasi = this.parseTemplate({isTagged: true});\n base = this.finishNode(node$2, \"TaggedTemplateExpression\");\n }\n return base\n};\n\n// Parse an atomic expression — either a single token that is an\n// expression, an expression started by a keyword like `function` or\n// `new`, or an expression wrapped in punctuation like `()`, `[]`,\n// or `{}`.\n\npp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {\n // If a division operator appears in an expression position, the\n // tokenizer got confused, and we force it to read a regexp instead.\n if (this.type === types$1.slash) { this.readRegexp(); }\n\n var node, canBeArrow = this.potentialArrowAt === this.start;\n switch (this.type) {\n case types$1._super:\n if (!this.allowSuper)\n { this.raise(this.start, \"'super' keyword outside a method\"); }\n node = this.startNode();\n this.next();\n if (this.type === types$1.parenL && !this.allowDirectSuper)\n { this.raise(node.start, \"super() call outside constructor of a subclass\"); }\n // The `super` keyword can appear at below:\n // SuperProperty:\n // super [ Expression ]\n // super . IdentifierName\n // SuperCall:\n // super ( Arguments )\n if (this.type !== types$1.dot && this.type !== types$1.bracketL && this.type !== types$1.parenL)\n { this.unexpected(); }\n return this.finishNode(node, \"Super\")\n\n case types$1._this:\n node = this.startNode();\n this.next();\n return this.finishNode(node, \"ThisExpression\")\n\n case types$1.name:\n var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc;\n var id = this.parseIdent(false);\n if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === \"async\" && !this.canInsertSemicolon() && this.eat(types$1._function)) {\n this.overrideContext(types.f_expr);\n return this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit)\n }\n if (canBeArrow && !this.canInsertSemicolon()) {\n if (this.eat(types$1.arrow))\n { return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], false, forInit) }\n if (this.options.ecmaVersion >= 8 && id.name === \"async\" && this.type === types$1.name && !containsEsc &&\n (!this.potentialArrowInForAwait || this.value !== \"of\" || this.containsEsc)) {\n id = this.parseIdent(false);\n if (this.canInsertSemicolon() || !this.eat(types$1.arrow))\n { this.unexpected(); }\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], true, forInit)\n }\n }\n return id\n\n case types$1.regexp:\n var value = this.value;\n node = this.parseLiteral(value.value);\n node.regex = {pattern: value.pattern, flags: value.flags};\n return node\n\n case types$1.num: case types$1.string:\n return this.parseLiteral(this.value)\n\n case types$1._null: case types$1._true: case types$1._false:\n node = this.startNode();\n node.value = this.type === types$1._null ? null : this.type === types$1._true;\n node.raw = this.type.keyword;\n this.next();\n return this.finishNode(node, \"Literal\")\n\n case types$1.parenL:\n var start = this.start, expr = this.parseParenAndDistinguishExpression(canBeArrow, forInit);\n if (refDestructuringErrors) {\n if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr))\n { refDestructuringErrors.parenthesizedAssign = start; }\n if (refDestructuringErrors.parenthesizedBind < 0)\n { refDestructuringErrors.parenthesizedBind = start; }\n }\n return expr\n\n case types$1.bracketL:\n node = this.startNode();\n this.next();\n node.elements = this.parseExprList(types$1.bracketR, true, true, refDestructuringErrors);\n return this.finishNode(node, \"ArrayExpression\")\n\n case types$1.braceL:\n this.overrideContext(types.b_expr);\n return this.parseObj(false, refDestructuringErrors)\n\n case types$1._function:\n node = this.startNode();\n this.next();\n return this.parseFunction(node, 0)\n\n case types$1._class:\n return this.parseClass(this.startNode(), false)\n\n case types$1._new:\n return this.parseNew()\n\n case types$1.backQuote:\n return this.parseTemplate()\n\n case types$1._import:\n if (this.options.ecmaVersion >= 11) {\n return this.parseExprImport(forNew)\n } else {\n return this.unexpected()\n }\n\n default:\n return this.parseExprAtomDefault()\n }\n};\n\npp$5.parseExprAtomDefault = function() {\n this.unexpected();\n};\n\npp$5.parseExprImport = function(forNew) {\n var node = this.startNode();\n\n // Consume `import` as an identifier for `import.meta`.\n // Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.\n if (this.containsEsc) { this.raiseRecoverable(this.start, \"Escape sequence in keyword import\"); }\n this.next();\n\n if (this.type === types$1.parenL && !forNew) {\n return this.parseDynamicImport(node)\n } else if (this.type === types$1.dot) {\n var meta = this.startNodeAt(node.start, node.loc && node.loc.start);\n meta.name = \"import\";\n node.meta = this.finishNode(meta, \"Identifier\");\n return this.parseImportMeta(node)\n } else {\n this.unexpected();\n }\n};\n\npp$5.parseDynamicImport = function(node) {\n this.next(); // skip `(`\n\n // Parse node.source.\n node.source = this.parseMaybeAssign();\n\n // Verify ending.\n if (!this.eat(types$1.parenR)) {\n var errorPos = this.start;\n if (this.eat(types$1.comma) && this.eat(types$1.parenR)) {\n this.raiseRecoverable(errorPos, \"Trailing comma is not allowed in import()\");\n } else {\n this.unexpected(errorPos);\n }\n }\n\n return this.finishNode(node, \"ImportExpression\")\n};\n\npp$5.parseImportMeta = function(node) {\n this.next(); // skip `.`\n\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n\n if (node.property.name !== \"meta\")\n { this.raiseRecoverable(node.property.start, \"The only valid meta property for import is 'import.meta'\"); }\n if (containsEsc)\n { this.raiseRecoverable(node.start, \"'import.meta' must not contain escaped characters\"); }\n if (this.options.sourceType !== \"module\" && !this.options.allowImportExportEverywhere)\n { this.raiseRecoverable(node.start, \"Cannot use 'import.meta' outside a module\"); }\n\n return this.finishNode(node, \"MetaProperty\")\n};\n\npp$5.parseLiteral = function(value) {\n var node = this.startNode();\n node.value = value;\n node.raw = this.input.slice(this.start, this.end);\n if (node.raw.charCodeAt(node.raw.length - 1) === 110) { node.bigint = node.raw.slice(0, -1).replace(/_/g, \"\"); }\n this.next();\n return this.finishNode(node, \"Literal\")\n};\n\npp$5.parseParenExpression = function() {\n this.expect(types$1.parenL);\n var val = this.parseExpression();\n this.expect(types$1.parenR);\n return val\n};\n\npp$5.shouldParseArrow = function(exprList) {\n return !this.canInsertSemicolon()\n};\n\npp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {\n var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;\n if (this.options.ecmaVersion >= 6) {\n this.next();\n\n var innerStartPos = this.start, innerStartLoc = this.startLoc;\n var exprList = [], first = true, lastIsComma = false;\n var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart;\n this.yieldPos = 0;\n this.awaitPos = 0;\n // Do not save awaitIdentPos to allow checking awaits nested in parameters\n while (this.type !== types$1.parenR) {\n first ? first = false : this.expect(types$1.comma);\n if (allowTrailingComma && this.afterTrailingComma(types$1.parenR, true)) {\n lastIsComma = true;\n break\n } else if (this.type === types$1.ellipsis) {\n spreadStart = this.start;\n exprList.push(this.parseParenItem(this.parseRestBinding()));\n if (this.type === types$1.comma) {\n this.raiseRecoverable(\n this.start,\n \"Comma is not permitted after the rest element\"\n );\n }\n break\n } else {\n exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem));\n }\n }\n var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;\n this.expect(types$1.parenR);\n\n if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$1.arrow)) {\n this.checkPatternErrors(refDestructuringErrors, false);\n this.checkYieldAwaitInDefaultParams();\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n return this.parseParenArrowList(startPos, startLoc, exprList, forInit)\n }\n\n if (!exprList.length || lastIsComma) { this.unexpected(this.lastTokStart); }\n if (spreadStart) { this.unexpected(spreadStart); }\n this.checkExpressionErrors(refDestructuringErrors, true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n\n if (exprList.length > 1) {\n val = this.startNodeAt(innerStartPos, innerStartLoc);\n val.expressions = exprList;\n this.finishNodeAt(val, \"SequenceExpression\", innerEndPos, innerEndLoc);\n } else {\n val = exprList[0];\n }\n } else {\n val = this.parseParenExpression();\n }\n\n if (this.options.preserveParens) {\n var par = this.startNodeAt(startPos, startLoc);\n par.expression = val;\n return this.finishNode(par, \"ParenthesizedExpression\")\n } else {\n return val\n }\n};\n\npp$5.parseParenItem = function(item) {\n return item\n};\n\npp$5.parseParenArrowList = function(startPos, startLoc, exprList, forInit) {\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, false, forInit)\n};\n\n// New's precedence is slightly tricky. It must allow its argument to\n// be a `[]` or dot subscript expression, but not a call — at least,\n// not without wrapping it in parentheses. Thus, it uses the noCalls\n// argument to parseSubscripts to prevent it from consuming the\n// argument list.\n\nvar empty = [];\n\npp$5.parseNew = function() {\n if (this.containsEsc) { this.raiseRecoverable(this.start, \"Escape sequence in keyword new\"); }\n var node = this.startNode();\n this.next();\n if (this.options.ecmaVersion >= 6 && this.type === types$1.dot) {\n var meta = this.startNodeAt(node.start, node.loc && node.loc.start);\n meta.name = \"new\";\n node.meta = this.finishNode(meta, \"Identifier\");\n this.next();\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n if (node.property.name !== \"target\")\n { this.raiseRecoverable(node.property.start, \"The only valid meta property for new is 'new.target'\"); }\n if (containsEsc)\n { this.raiseRecoverable(node.start, \"'new.target' must not contain escaped characters\"); }\n if (!this.allowNewDotTarget)\n { this.raiseRecoverable(node.start, \"'new.target' can only be used in functions and class static block\"); }\n return this.finishNode(node, \"MetaProperty\")\n }\n var startPos = this.start, startLoc = this.startLoc;\n node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);\n if (this.eat(types$1.parenL)) { node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false); }\n else { node.arguments = empty; }\n return this.finishNode(node, \"NewExpression\")\n};\n\n// Parse template expression.\n\npp$5.parseTemplateElement = function(ref) {\n var isTagged = ref.isTagged;\n\n var elem = this.startNode();\n if (this.type === types$1.invalidTemplate) {\n if (!isTagged) {\n this.raiseRecoverable(this.start, \"Bad escape sequence in untagged template literal\");\n }\n elem.value = {\n raw: this.value.replace(/\\r\\n?/g, \"\\n\"),\n cooked: null\n };\n } else {\n elem.value = {\n raw: this.input.slice(this.start, this.end).replace(/\\r\\n?/g, \"\\n\"),\n cooked: this.value\n };\n }\n this.next();\n elem.tail = this.type === types$1.backQuote;\n return this.finishNode(elem, \"TemplateElement\")\n};\n\npp$5.parseTemplate = function(ref) {\n if ( ref === void 0 ) ref = {};\n var isTagged = ref.isTagged; if ( isTagged === void 0 ) isTagged = false;\n\n var node = this.startNode();\n this.next();\n node.expressions = [];\n var curElt = this.parseTemplateElement({isTagged: isTagged});\n node.quasis = [curElt];\n while (!curElt.tail) {\n if (this.type === types$1.eof) { this.raise(this.pos, \"Unterminated template literal\"); }\n this.expect(types$1.dollarBraceL);\n node.expressions.push(this.parseExpression());\n this.expect(types$1.braceR);\n node.quasis.push(curElt = this.parseTemplateElement({isTagged: isTagged}));\n }\n this.next();\n return this.finishNode(node, \"TemplateLiteral\")\n};\n\npp$5.isAsyncProp = function(prop) {\n return !prop.computed && prop.key.type === \"Identifier\" && prop.key.name === \"async\" &&\n (this.type === types$1.name || this.type === types$1.num || this.type === types$1.string || this.type === types$1.bracketL || this.type.keyword || (this.options.ecmaVersion >= 9 && this.type === types$1.star)) &&\n !lineBreak.test(this.input.slice(this.lastTokEnd, this.start))\n};\n\n// Parse an object literal or binding pattern.\n\npp$5.parseObj = function(isPattern, refDestructuringErrors) {\n var node = this.startNode(), first = true, propHash = {};\n node.properties = [];\n this.next();\n while (!this.eat(types$1.braceR)) {\n if (!first) {\n this.expect(types$1.comma);\n if (this.options.ecmaVersion >= 5 && this.afterTrailingComma(types$1.braceR)) { break }\n } else { first = false; }\n\n var prop = this.parseProperty(isPattern, refDestructuringErrors);\n if (!isPattern) { this.checkPropClash(prop, propHash, refDestructuringErrors); }\n node.properties.push(prop);\n }\n return this.finishNode(node, isPattern ? \"ObjectPattern\" : \"ObjectExpression\")\n};\n\npp$5.parseProperty = function(isPattern, refDestructuringErrors) {\n var prop = this.startNode(), isGenerator, isAsync, startPos, startLoc;\n if (this.options.ecmaVersion >= 9 && this.eat(types$1.ellipsis)) {\n if (isPattern) {\n prop.argument = this.parseIdent(false);\n if (this.type === types$1.comma) {\n this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\");\n }\n return this.finishNode(prop, \"RestElement\")\n }\n // Parse argument.\n prop.argument = this.parseMaybeAssign(false, refDestructuringErrors);\n // To disallow trailing comma via `this.toAssignable()`.\n if (this.type === types$1.comma && refDestructuringErrors && refDestructuringErrors.trailingComma < 0) {\n refDestructuringErrors.trailingComma = this.start;\n }\n // Finish\n return this.finishNode(prop, \"SpreadElement\")\n }\n if (this.options.ecmaVersion >= 6) {\n prop.method = false;\n prop.shorthand = false;\n if (isPattern || refDestructuringErrors) {\n startPos = this.start;\n startLoc = this.startLoc;\n }\n if (!isPattern)\n { isGenerator = this.eat(types$1.star); }\n }\n var containsEsc = this.containsEsc;\n this.parsePropertyName(prop);\n if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {\n isAsync = true;\n isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$1.star);\n this.parsePropertyName(prop);\n } else {\n isAsync = false;\n }\n this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);\n return this.finishNode(prop, \"Property\")\n};\n\npp$5.parseGetterSetter = function(prop) {\n prop.kind = prop.key.name;\n this.parsePropertyName(prop);\n prop.value = this.parseMethod(false);\n var paramCount = prop.kind === \"get\" ? 0 : 1;\n if (prop.value.params.length !== paramCount) {\n var start = prop.value.start;\n if (prop.kind === \"get\")\n { this.raiseRecoverable(start, \"getter should have no params\"); }\n else\n { this.raiseRecoverable(start, \"setter should have exactly one param\"); }\n } else {\n if (prop.kind === \"set\" && prop.value.params[0].type === \"RestElement\")\n { this.raiseRecoverable(prop.value.params[0].start, \"Setter cannot use rest params\"); }\n }\n};\n\npp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {\n if ((isGenerator || isAsync) && this.type === types$1.colon)\n { this.unexpected(); }\n\n if (this.eat(types$1.colon)) {\n prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors);\n prop.kind = \"init\";\n } else if (this.options.ecmaVersion >= 6 && this.type === types$1.parenL) {\n if (isPattern) { this.unexpected(); }\n prop.kind = \"init\";\n prop.method = true;\n prop.value = this.parseMethod(isGenerator, isAsync);\n } else if (!isPattern && !containsEsc &&\n this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === \"Identifier\" &&\n (prop.key.name === \"get\" || prop.key.name === \"set\") &&\n (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) {\n if (isGenerator || isAsync) { this.unexpected(); }\n this.parseGetterSetter(prop);\n } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === \"Identifier\") {\n if (isGenerator || isAsync) { this.unexpected(); }\n this.checkUnreserved(prop.key);\n if (prop.key.name === \"await\" && !this.awaitIdentPos)\n { this.awaitIdentPos = startPos; }\n prop.kind = \"init\";\n if (isPattern) {\n prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));\n } else if (this.type === types$1.eq && refDestructuringErrors) {\n if (refDestructuringErrors.shorthandAssign < 0)\n { refDestructuringErrors.shorthandAssign = this.start; }\n prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));\n } else {\n prop.value = this.copyNode(prop.key);\n }\n prop.shorthand = true;\n } else { this.unexpected(); }\n};\n\npp$5.parsePropertyName = function(prop) {\n if (this.options.ecmaVersion >= 6) {\n if (this.eat(types$1.bracketL)) {\n prop.computed = true;\n prop.key = this.parseMaybeAssign();\n this.expect(types$1.bracketR);\n return prop.key\n } else {\n prop.computed = false;\n }\n }\n return prop.key = this.type === types$1.num || this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== \"never\")\n};\n\n// Initialize empty function node.\n\npp$5.initFunction = function(node) {\n node.id = null;\n if (this.options.ecmaVersion >= 6) { node.generator = node.expression = false; }\n if (this.options.ecmaVersion >= 8) { node.async = false; }\n};\n\n// Parse object or class method.\n\npp$5.parseMethod = function(isGenerator, isAsync, allowDirectSuper) {\n var node = this.startNode(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n\n this.initFunction(node);\n if (this.options.ecmaVersion >= 6)\n { node.generator = isGenerator; }\n if (this.options.ecmaVersion >= 8)\n { node.async = !!isAsync; }\n\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope(functionFlags(isAsync, node.generator) | SCOPE_SUPER | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0));\n\n this.expect(types$1.parenL);\n node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n this.parseFunctionBody(node, false, true, false);\n\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, \"FunctionExpression\")\n};\n\n// Parse arrow function expression with given parameters.\n\npp$5.parseArrowExpression = function(node, params, isAsync, forInit) {\n var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n\n this.enterScope(functionFlags(isAsync, false) | SCOPE_ARROW);\n this.initFunction(node);\n if (this.options.ecmaVersion >= 8) { node.async = !!isAsync; }\n\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n\n node.params = this.toAssignableList(params, true);\n this.parseFunctionBody(node, true, false, forInit);\n\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, \"ArrowFunctionExpression\")\n};\n\n// Parse function body and check parameters.\n\npp$5.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) {\n var isExpression = isArrowFunction && this.type !== types$1.braceL;\n var oldStrict = this.strict, useStrict = false;\n\n if (isExpression) {\n node.body = this.parseMaybeAssign(forInit);\n node.expression = true;\n this.checkParams(node, false);\n } else {\n var nonSimple = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(node.params);\n if (!oldStrict || nonSimple) {\n useStrict = this.strictDirective(this.end);\n // If this is a strict mode function, verify that argument names\n // are not repeated, and it does not try to bind the words `eval`\n // or `arguments`.\n if (useStrict && nonSimple)\n { this.raiseRecoverable(node.start, \"Illegal 'use strict' directive in function with non-simple parameter list\"); }\n }\n // Start a new scope with regard to labels and the `inFunction`\n // flag (restore them to their old value afterwards).\n var oldLabels = this.labels;\n this.labels = [];\n if (useStrict) { this.strict = true; }\n\n // Add the params to varDeclaredNames to ensure that an error is thrown\n // if a let/const declaration in the function clashes with one of the params.\n this.checkParams(node, !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params));\n // Ensure the function name isn't a forbidden identifier in strict mode, e.g. 'eval'\n if (this.strict && node.id) { this.checkLValSimple(node.id, BIND_OUTSIDE); }\n node.body = this.parseBlock(false, undefined, useStrict && !oldStrict);\n node.expression = false;\n this.adaptDirectivePrologue(node.body.body);\n this.labels = oldLabels;\n }\n this.exitScope();\n};\n\npp$5.isSimpleParamList = function(params) {\n for (var i = 0, list = params; i < list.length; i += 1)\n {\n var param = list[i];\n\n if (param.type !== \"Identifier\") { return false\n } }\n return true\n};\n\n// Checks function params for various disallowed patterns such as using \"eval\"\n// or \"arguments\" and duplicate parameters.\n\npp$5.checkParams = function(node, allowDuplicates) {\n var nameHash = Object.create(null);\n for (var i = 0, list = node.params; i < list.length; i += 1)\n {\n var param = list[i];\n\n this.checkLValInnerPattern(param, BIND_VAR, allowDuplicates ? null : nameHash);\n }\n};\n\n// Parses a comma-separated list of expressions, and returns them as\n// an array. `close` is the token type that ends the list, and\n// `allowEmpty` can be turned on to allow subsequent commas with\n// nothing in between them to be parsed as `null` (which is needed\n// for array literals).\n\npp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) {\n var elts = [], first = true;\n while (!this.eat(close)) {\n if (!first) {\n this.expect(types$1.comma);\n if (allowTrailingComma && this.afterTrailingComma(close)) { break }\n } else { first = false; }\n\n var elt = (void 0);\n if (allowEmpty && this.type === types$1.comma)\n { elt = null; }\n else if (this.type === types$1.ellipsis) {\n elt = this.parseSpread(refDestructuringErrors);\n if (refDestructuringErrors && this.type === types$1.comma && refDestructuringErrors.trailingComma < 0)\n { refDestructuringErrors.trailingComma = this.start; }\n } else {\n elt = this.parseMaybeAssign(false, refDestructuringErrors);\n }\n elts.push(elt);\n }\n return elts\n};\n\npp$5.checkUnreserved = function(ref) {\n var start = ref.start;\n var end = ref.end;\n var name = ref.name;\n\n if (this.inGenerator && name === \"yield\")\n { this.raiseRecoverable(start, \"Cannot use 'yield' as identifier inside a generator\"); }\n if (this.inAsync && name === \"await\")\n { this.raiseRecoverable(start, \"Cannot use 'await' as identifier inside an async function\"); }\n if (this.currentThisScope().inClassFieldInit && name === \"arguments\")\n { this.raiseRecoverable(start, \"Cannot use 'arguments' in class field initializer\"); }\n if (this.inClassStaticBlock && (name === \"arguments\" || name === \"await\"))\n { this.raise(start, (\"Cannot use \" + name + \" in class static initialization block\")); }\n if (this.keywords.test(name))\n { this.raise(start, (\"Unexpected keyword '\" + name + \"'\")); }\n if (this.options.ecmaVersion < 6 &&\n this.input.slice(start, end).indexOf(\"\\\\\") !== -1) { return }\n var re = this.strict ? this.reservedWordsStrict : this.reservedWords;\n if (re.test(name)) {\n if (!this.inAsync && name === \"await\")\n { this.raiseRecoverable(start, \"Cannot use keyword 'await' outside an async function\"); }\n this.raiseRecoverable(start, (\"The keyword '\" + name + \"' is reserved\"));\n }\n};\n\n// Parse the next token as an identifier. If `liberal` is true (used\n// when parsing properties), it will also convert keywords into\n// identifiers.\n\npp$5.parseIdent = function(liberal) {\n var node = this.parseIdentNode();\n this.next(!!liberal);\n this.finishNode(node, \"Identifier\");\n if (!liberal) {\n this.checkUnreserved(node);\n if (node.name === \"await\" && !this.awaitIdentPos)\n { this.awaitIdentPos = node.start; }\n }\n return node\n};\n\npp$5.parseIdentNode = function() {\n var node = this.startNode();\n if (this.type === types$1.name) {\n node.name = this.value;\n } else if (this.type.keyword) {\n node.name = this.type.keyword;\n\n // To fix https://github.com/acornjs/acorn/issues/575\n // `class` and `function` keywords push new context into this.context.\n // But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name.\n // If the previous token is a dot, this does not apply because the context-managing code already ignored the keyword\n if ((node.name === \"class\" || node.name === \"function\") &&\n (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) {\n this.context.pop();\n }\n this.type = types$1.name;\n } else {\n this.unexpected();\n }\n return node\n};\n\npp$5.parsePrivateIdent = function() {\n var node = this.startNode();\n if (this.type === types$1.privateId) {\n node.name = this.value;\n } else {\n this.unexpected();\n }\n this.next();\n this.finishNode(node, \"PrivateIdentifier\");\n\n // For validating existence\n if (this.options.checkPrivateFields) {\n if (this.privateNameStack.length === 0) {\n this.raise(node.start, (\"Private field '#\" + (node.name) + \"' must be declared in an enclosing class\"));\n } else {\n this.privateNameStack[this.privateNameStack.length - 1].used.push(node);\n }\n }\n\n return node\n};\n\n// Parses yield expression inside generator.\n\npp$5.parseYield = function(forInit) {\n if (!this.yieldPos) { this.yieldPos = this.start; }\n\n var node = this.startNode();\n this.next();\n if (this.type === types$1.semi || this.canInsertSemicolon() || (this.type !== types$1.star && !this.type.startsExpr)) {\n node.delegate = false;\n node.argument = null;\n } else {\n node.delegate = this.eat(types$1.star);\n node.argument = this.parseMaybeAssign(forInit);\n }\n return this.finishNode(node, \"YieldExpression\")\n};\n\npp$5.parseAwait = function(forInit) {\n if (!this.awaitPos) { this.awaitPos = this.start; }\n\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeUnary(null, true, false, forInit);\n return this.finishNode(node, \"AwaitExpression\")\n};\n\nvar pp$4 = Parser.prototype;\n\n// This function is used to raise exceptions on parse errors. It\n// takes an offset integer (into the current `input`) to indicate\n// the location of the error, attaches the position to the end\n// of the error message, and then raises a `SyntaxError` with that\n// message.\n\npp$4.raise = function(pos, message) {\n var loc = getLineInfo(this.input, pos);\n message += \" (\" + loc.line + \":\" + loc.column + \")\";\n var err = new SyntaxError(message);\n err.pos = pos; err.loc = loc; err.raisedAt = this.pos;\n throw err\n};\n\npp$4.raiseRecoverable = pp$4.raise;\n\npp$4.curPosition = function() {\n if (this.options.locations) {\n return new Position(this.curLine, this.pos - this.lineStart)\n }\n};\n\nvar pp$3 = Parser.prototype;\n\nvar Scope = function Scope(flags) {\n this.flags = flags;\n // A list of var-declared names in the current lexical scope\n this.var = [];\n // A list of lexically-declared names in the current lexical scope\n this.lexical = [];\n // A list of lexically-declared FunctionDeclaration names in the current lexical scope\n this.functions = [];\n // A switch to disallow the identifier reference 'arguments'\n this.inClassFieldInit = false;\n};\n\n// The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names.\n\npp$3.enterScope = function(flags) {\n this.scopeStack.push(new Scope(flags));\n};\n\npp$3.exitScope = function() {\n this.scopeStack.pop();\n};\n\n// The spec says:\n// > At the top level of a function, or script, function declarations are\n// > treated like var declarations rather than like lexical declarations.\npp$3.treatFunctionsAsVarInScope = function(scope) {\n return (scope.flags & SCOPE_FUNCTION) || !this.inModule && (scope.flags & SCOPE_TOP)\n};\n\npp$3.declareName = function(name, bindingType, pos) {\n var redeclared = false;\n if (bindingType === BIND_LEXICAL) {\n var scope = this.currentScope();\n redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1;\n scope.lexical.push(name);\n if (this.inModule && (scope.flags & SCOPE_TOP))\n { delete this.undefinedExports[name]; }\n } else if (bindingType === BIND_SIMPLE_CATCH) {\n var scope$1 = this.currentScope();\n scope$1.lexical.push(name);\n } else if (bindingType === BIND_FUNCTION) {\n var scope$2 = this.currentScope();\n if (this.treatFunctionsAsVar)\n { redeclared = scope$2.lexical.indexOf(name) > -1; }\n else\n { redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1; }\n scope$2.functions.push(name);\n } else {\n for (var i = this.scopeStack.length - 1; i >= 0; --i) {\n var scope$3 = this.scopeStack[i];\n if (scope$3.lexical.indexOf(name) > -1 && !((scope$3.flags & SCOPE_SIMPLE_CATCH) && scope$3.lexical[0] === name) ||\n !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) {\n redeclared = true;\n break\n }\n scope$3.var.push(name);\n if (this.inModule && (scope$3.flags & SCOPE_TOP))\n { delete this.undefinedExports[name]; }\n if (scope$3.flags & SCOPE_VAR) { break }\n }\n }\n if (redeclared) { this.raiseRecoverable(pos, (\"Identifier '\" + name + \"' has already been declared\")); }\n};\n\npp$3.checkLocalExport = function(id) {\n // scope.functions must be empty as Module code is always strict.\n if (this.scopeStack[0].lexical.indexOf(id.name) === -1 &&\n this.scopeStack[0].var.indexOf(id.name) === -1) {\n this.undefinedExports[id.name] = id;\n }\n};\n\npp$3.currentScope = function() {\n return this.scopeStack[this.scopeStack.length - 1]\n};\n\npp$3.currentVarScope = function() {\n for (var i = this.scopeStack.length - 1;; i--) {\n var scope = this.scopeStack[i];\n if (scope.flags & SCOPE_VAR) { return scope }\n }\n};\n\n// Could be useful for `this`, `new.target`, `super()`, `super.property`, and `super[property]`.\npp$3.currentThisScope = function() {\n for (var i = this.scopeStack.length - 1;; i--) {\n var scope = this.scopeStack[i];\n if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW)) { return scope }\n }\n};\n\nvar Node = function Node(parser, pos, loc) {\n this.type = \"\";\n this.start = pos;\n this.end = 0;\n if (parser.options.locations)\n { this.loc = new SourceLocation(parser, loc); }\n if (parser.options.directSourceFile)\n { this.sourceFile = parser.options.directSourceFile; }\n if (parser.options.ranges)\n { this.range = [pos, 0]; }\n};\n\n// Start an AST node, attaching a start offset.\n\nvar pp$2 = Parser.prototype;\n\npp$2.startNode = function() {\n return new Node(this, this.start, this.startLoc)\n};\n\npp$2.startNodeAt = function(pos, loc) {\n return new Node(this, pos, loc)\n};\n\n// Finish an AST node, adding `type` and `end` properties.\n\nfunction finishNodeAt(node, type, pos, loc) {\n node.type = type;\n node.end = pos;\n if (this.options.locations)\n { node.loc.end = loc; }\n if (this.options.ranges)\n { node.range[1] = pos; }\n return node\n}\n\npp$2.finishNode = function(node, type) {\n return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc)\n};\n\n// Finish node at given position\n\npp$2.finishNodeAt = function(node, type, pos, loc) {\n return finishNodeAt.call(this, node, type, pos, loc)\n};\n\npp$2.copyNode = function(node) {\n var newNode = new Node(this, node.start, this.startLoc);\n for (var prop in node) { newNode[prop] = node[prop]; }\n return newNode\n};\n\n// This file contains Unicode properties extracted from the ECMAScript specification.\n// The lists are extracted like so:\n// $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)\n\n// #table-binary-unicode-properties\nvar ecma9BinaryProperties = \"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\";\nvar ecma10BinaryProperties = ecma9BinaryProperties + \" Extended_Pictographic\";\nvar ecma11BinaryProperties = ecma10BinaryProperties;\nvar ecma12BinaryProperties = ecma11BinaryProperties + \" EBase EComp EMod EPres ExtPict\";\nvar ecma13BinaryProperties = ecma12BinaryProperties;\nvar ecma14BinaryProperties = ecma13BinaryProperties;\n\nvar unicodeBinaryProperties = {\n 9: ecma9BinaryProperties,\n 10: ecma10BinaryProperties,\n 11: ecma11BinaryProperties,\n 12: ecma12BinaryProperties,\n 13: ecma13BinaryProperties,\n 14: ecma14BinaryProperties\n};\n\n// #table-binary-unicode-properties-of-strings\nvar ecma14BinaryPropertiesOfStrings = \"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji\";\n\nvar unicodeBinaryPropertiesOfStrings = {\n 9: \"\",\n 10: \"\",\n 11: \"\",\n 12: \"\",\n 13: \"\",\n 14: ecma14BinaryPropertiesOfStrings\n};\n\n// #table-unicode-general-category-values\nvar unicodeGeneralCategoryValues = \"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\";\n\n// #table-unicode-script-values\nvar ecma9ScriptValues = \"Adlam Adlm 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 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\";\nvar ecma10ScriptValues = ecma9ScriptValues + \" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd\";\nvar ecma11ScriptValues = ecma10ScriptValues + \" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho\";\nvar ecma12ScriptValues = ecma11ScriptValues + \" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi\";\nvar ecma13ScriptValues = ecma12ScriptValues + \" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith\";\nvar ecma14ScriptValues = ecma13ScriptValues + \" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz\";\n\nvar unicodeScriptValues = {\n 9: ecma9ScriptValues,\n 10: ecma10ScriptValues,\n 11: ecma11ScriptValues,\n 12: ecma12ScriptValues,\n 13: ecma13ScriptValues,\n 14: ecma14ScriptValues\n};\n\nvar data = {};\nfunction buildUnicodeData(ecmaVersion) {\n var d = data[ecmaVersion] = {\n binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + \" \" + unicodeGeneralCategoryValues),\n binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion]),\n nonBinary: {\n General_Category: wordsRegexp(unicodeGeneralCategoryValues),\n Script: wordsRegexp(unicodeScriptValues[ecmaVersion])\n }\n };\n d.nonBinary.Script_Extensions = d.nonBinary.Script;\n\n d.nonBinary.gc = d.nonBinary.General_Category;\n d.nonBinary.sc = d.nonBinary.Script;\n d.nonBinary.scx = d.nonBinary.Script_Extensions;\n}\n\nfor (var i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) {\n var ecmaVersion = list[i];\n\n buildUnicodeData(ecmaVersion);\n}\n\nvar pp$1 = Parser.prototype;\n\n// Track disjunction structure to determine whether a duplicate\n// capture group name is allowed because it is in a separate branch.\nvar BranchID = function BranchID(parent, base) {\n // Parent disjunction branch\n this.parent = parent;\n // Identifies this set of sibling branches\n this.base = base || this;\n};\n\nBranchID.prototype.separatedFrom = function separatedFrom (alt) {\n // A branch is separate from another branch if they or any of\n // their parents are siblings in a given disjunction\n for (var self = this; self; self = self.parent) {\n for (var other = alt; other; other = other.parent) {\n if (self.base === other.base && self !== other) { return true }\n }\n }\n return false\n};\n\nBranchID.prototype.sibling = function sibling () {\n return new BranchID(this.parent, this.base)\n};\n\nvar RegExpValidationState = function RegExpValidationState(parser) {\n this.parser = parser;\n this.validFlags = \"gim\" + (parser.options.ecmaVersion >= 6 ? \"uy\" : \"\") + (parser.options.ecmaVersion >= 9 ? \"s\" : \"\") + (parser.options.ecmaVersion >= 13 ? \"d\" : \"\") + (parser.options.ecmaVersion >= 15 ? \"v\" : \"\");\n this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];\n this.source = \"\";\n this.flags = \"\";\n this.start = 0;\n this.switchU = false;\n this.switchV = false;\n this.switchN = false;\n this.pos = 0;\n this.lastIntValue = 0;\n this.lastStringValue = \"\";\n this.lastAssertionIsQuantifiable = false;\n this.numCapturingParens = 0;\n this.maxBackReference = 0;\n this.groupNames = Object.create(null);\n this.backReferenceNames = [];\n this.branchID = null;\n};\n\nRegExpValidationState.prototype.reset = function reset (start, pattern, flags) {\n var unicodeSets = flags.indexOf(\"v\") !== -1;\n var unicode = flags.indexOf(\"u\") !== -1;\n this.start = start | 0;\n this.source = pattern + \"\";\n this.flags = flags;\n if (unicodeSets && this.parser.options.ecmaVersion >= 15) {\n this.switchU = true;\n this.switchV = true;\n this.switchN = true;\n } else {\n this.switchU = unicode && this.parser.options.ecmaVersion >= 6;\n this.switchV = false;\n this.switchN = unicode && this.parser.options.ecmaVersion >= 9;\n }\n};\n\nRegExpValidationState.prototype.raise = function raise (message) {\n this.parser.raiseRecoverable(this.start, (\"Invalid regular expression: /\" + (this.source) + \"/: \" + message));\n};\n\n// If u flag is given, this returns the code point at the index (it combines a surrogate pair).\n// Otherwise, this returns the code unit of the index (can be a part of a surrogate pair).\nRegExpValidationState.prototype.at = function at (i, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var s = this.source;\n var l = s.length;\n if (i >= l) {\n return -1\n }\n var c = s.charCodeAt(i);\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) {\n return c\n }\n var next = s.charCodeAt(i + 1);\n return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c\n};\n\nRegExpValidationState.prototype.nextIndex = function nextIndex (i, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var s = this.source;\n var l = s.length;\n if (i >= l) {\n return l\n }\n var c = s.charCodeAt(i), next;\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l ||\n (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) {\n return i + 1\n }\n return i + 2\n};\n\nRegExpValidationState.prototype.current = function current (forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n return this.at(this.pos, forceU)\n};\n\nRegExpValidationState.prototype.lookahead = function lookahead (forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n return this.at(this.nextIndex(this.pos, forceU), forceU)\n};\n\nRegExpValidationState.prototype.advance = function advance (forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n this.pos = this.nextIndex(this.pos, forceU);\n};\n\nRegExpValidationState.prototype.eat = function eat (ch, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n if (this.current(forceU) === ch) {\n this.advance(forceU);\n return true\n }\n return false\n};\n\nRegExpValidationState.prototype.eatChars = function eatChars (chs, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var pos = this.pos;\n for (var i = 0, list = chs; i < list.length; i += 1) {\n var ch = list[i];\n\n var current = this.at(pos, forceU);\n if (current === -1 || current !== ch) {\n return false\n }\n pos = this.nextIndex(pos, forceU);\n }\n this.pos = pos;\n return true\n};\n\n/**\n * Validate the flags part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */\npp$1.validateRegExpFlags = function(state) {\n var validFlags = state.validFlags;\n var flags = state.flags;\n\n var u = false;\n var v = false;\n\n for (var i = 0; i < flags.length; i++) {\n var flag = flags.charAt(i);\n if (validFlags.indexOf(flag) === -1) {\n this.raise(state.start, \"Invalid regular expression flag\");\n }\n if (flags.indexOf(flag, i + 1) > -1) {\n this.raise(state.start, \"Duplicate regular expression flag\");\n }\n if (flag === \"u\") { u = true; }\n if (flag === \"v\") { v = true; }\n }\n if (this.options.ecmaVersion >= 15 && u && v) {\n this.raise(state.start, \"Invalid regular expression flag\");\n }\n};\n\nfunction hasProp(obj) {\n for (var _ in obj) { return true }\n return false\n}\n\n/**\n * Validate the pattern part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */\npp$1.validateRegExpPattern = function(state) {\n this.regexp_pattern(state);\n\n // The goal symbol for the parse is |Pattern[~U, ~N]|. If the result of\n // parsing contains a |GroupName|, reparse with the goal symbol\n // |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError*\n // exception if _P_ did not conform to the grammar, if any elements of _P_\n // were not matched by the parse, or if any Early Error conditions exist.\n if (!state.switchN && this.options.ecmaVersion >= 9 && hasProp(state.groupNames)) {\n state.switchN = true;\n this.regexp_pattern(state);\n }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern\npp$1.regexp_pattern = function(state) {\n state.pos = 0;\n state.lastIntValue = 0;\n state.lastStringValue = \"\";\n state.lastAssertionIsQuantifiable = false;\n state.numCapturingParens = 0;\n state.maxBackReference = 0;\n state.groupNames = Object.create(null);\n state.backReferenceNames.length = 0;\n state.branchID = null;\n\n this.regexp_disjunction(state);\n\n if (state.pos !== state.source.length) {\n // Make the same messages as V8.\n if (state.eat(0x29 /* ) */)) {\n state.raise(\"Unmatched ')'\");\n }\n if (state.eat(0x5D /* ] */) || state.eat(0x7D /* } */)) {\n state.raise(\"Lone quantifier brackets\");\n }\n }\n if (state.maxBackReference > state.numCapturingParens) {\n state.raise(\"Invalid escape\");\n }\n for (var i = 0, list = state.backReferenceNames; i < list.length; i += 1) {\n var name = list[i];\n\n if (!state.groupNames[name]) {\n state.raise(\"Invalid named capture referenced\");\n }\n }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction\npp$1.regexp_disjunction = function(state) {\n var trackDisjunction = this.options.ecmaVersion >= 16;\n if (trackDisjunction) { state.branchID = new BranchID(state.branchID, null); }\n this.regexp_alternative(state);\n while (state.eat(0x7C /* | */)) {\n if (trackDisjunction) { state.branchID = state.branchID.sibling(); }\n this.regexp_alternative(state);\n }\n if (trackDisjunction) { state.branchID = state.branchID.parent; }\n\n // Make the same message as V8.\n if (this.regexp_eatQuantifier(state, true)) {\n state.raise(\"Nothing to repeat\");\n }\n if (state.eat(0x7B /* { */)) {\n state.raise(\"Lone quantifier brackets\");\n }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative\npp$1.regexp_alternative = function(state) {\n while (state.pos < state.source.length && this.regexp_eatTerm(state)) {}\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term\npp$1.regexp_eatTerm = function(state) {\n if (this.regexp_eatAssertion(state)) {\n // Handle `QuantifiableAssertion Quantifier` alternative.\n // `state.lastAssertionIsQuantifiable` is true if the last eaten Assertion\n // is a QuantifiableAssertion.\n if (state.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(state)) {\n // Make the same message as V8.\n if (state.switchU) {\n state.raise(\"Invalid quantifier\");\n }\n }\n return true\n }\n\n if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) {\n this.regexp_eatQuantifier(state);\n return true\n }\n\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion\npp$1.regexp_eatAssertion = function(state) {\n var start = state.pos;\n state.lastAssertionIsQuantifiable = false;\n\n // ^, $\n if (state.eat(0x5E /* ^ */) || state.eat(0x24 /* $ */)) {\n return true\n }\n\n // \\b \\B\n if (state.eat(0x5C /* \\ */)) {\n if (state.eat(0x42 /* B */) || state.eat(0x62 /* b */)) {\n return true\n }\n state.pos = start;\n }\n\n // Lookahead / Lookbehind\n if (state.eat(0x28 /* ( */) && state.eat(0x3F /* ? */)) {\n var lookbehind = false;\n if (this.options.ecmaVersion >= 9) {\n lookbehind = state.eat(0x3C /* < */);\n }\n if (state.eat(0x3D /* = */) || state.eat(0x21 /* ! */)) {\n this.regexp_disjunction(state);\n if (!state.eat(0x29 /* ) */)) {\n state.raise(\"Unterminated group\");\n }\n state.lastAssertionIsQuantifiable = !lookbehind;\n return true\n }\n }\n\n state.pos = start;\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier\npp$1.regexp_eatQuantifier = function(state, noError) {\n if ( noError === void 0 ) noError = false;\n\n if (this.regexp_eatQuantifierPrefix(state, noError)) {\n state.eat(0x3F /* ? */);\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix\npp$1.regexp_eatQuantifierPrefix = function(state, noError) {\n return (\n state.eat(0x2A /* * */) ||\n state.eat(0x2B /* + */) ||\n state.eat(0x3F /* ? */) ||\n this.regexp_eatBracedQuantifier(state, noError)\n )\n};\npp$1.regexp_eatBracedQuantifier = function(state, noError) {\n var start = state.pos;\n if (state.eat(0x7B /* { */)) {\n var min = 0, max = -1;\n if (this.regexp_eatDecimalDigits(state)) {\n min = state.lastIntValue;\n if (state.eat(0x2C /* , */) && this.regexp_eatDecimalDigits(state)) {\n max = state.lastIntValue;\n }\n if (state.eat(0x7D /* } */)) {\n // SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-term\n if (max !== -1 && max < min && !noError) {\n state.raise(\"numbers out of order in {} quantifier\");\n }\n return true\n }\n }\n if (state.switchU && !noError) {\n state.raise(\"Incomplete quantifier\");\n }\n state.pos = start;\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Atom\npp$1.regexp_eatAtom = function(state) {\n return (\n this.regexp_eatPatternCharacters(state) ||\n state.eat(0x2E /* . */) ||\n this.regexp_eatReverseSolidusAtomEscape(state) ||\n this.regexp_eatCharacterClass(state) ||\n this.regexp_eatUncapturingGroup(state) ||\n this.regexp_eatCapturingGroup(state)\n )\n};\npp$1.regexp_eatReverseSolidusAtomEscape = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */)) {\n if (this.regexp_eatAtomEscape(state)) {\n return true\n }\n state.pos = start;\n }\n return false\n};\npp$1.regexp_eatUncapturingGroup = function(state) {\n var start = state.pos;\n if (state.eat(0x28 /* ( */)) {\n if (state.eat(0x3F /* ? */) && state.eat(0x3A /* : */)) {\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */)) {\n return true\n }\n state.raise(\"Unterminated group\");\n }\n state.pos = start;\n }\n return false\n};\npp$1.regexp_eatCapturingGroup = function(state) {\n if (state.eat(0x28 /* ( */)) {\n if (this.options.ecmaVersion >= 9) {\n this.regexp_groupSpecifier(state);\n } else if (state.current() === 0x3F /* ? */) {\n state.raise(\"Invalid group\");\n }\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */)) {\n state.numCapturingParens += 1;\n return true\n }\n state.raise(\"Unterminated group\");\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom\npp$1.regexp_eatExtendedAtom = function(state) {\n return (\n state.eat(0x2E /* . */) ||\n this.regexp_eatReverseSolidusAtomEscape(state) ||\n this.regexp_eatCharacterClass(state) ||\n this.regexp_eatUncapturingGroup(state) ||\n this.regexp_eatCapturingGroup(state) ||\n this.regexp_eatInvalidBracedQuantifier(state) ||\n this.regexp_eatExtendedPatternCharacter(state)\n )\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier\npp$1.regexp_eatInvalidBracedQuantifier = function(state) {\n if (this.regexp_eatBracedQuantifier(state, true)) {\n state.raise(\"Nothing to repeat\");\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter\npp$1.regexp_eatSyntaxCharacter = function(state) {\n var ch = state.current();\n if (isSyntaxCharacter(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n return false\n};\nfunction isSyntaxCharacter(ch) {\n return (\n ch === 0x24 /* $ */ ||\n ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ ||\n ch === 0x2E /* . */ ||\n ch === 0x3F /* ? */ ||\n ch >= 0x5B /* [ */ && ch <= 0x5E /* ^ */ ||\n ch >= 0x7B /* { */ && ch <= 0x7D /* } */\n )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter\n// But eat eager.\npp$1.regexp_eatPatternCharacters = function(state) {\n var start = state.pos;\n var ch = 0;\n while ((ch = state.current()) !== -1 && !isSyntaxCharacter(ch)) {\n state.advance();\n }\n return state.pos !== start\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter\npp$1.regexp_eatExtendedPatternCharacter = function(state) {\n var ch = state.current();\n if (\n ch !== -1 &&\n ch !== 0x24 /* $ */ &&\n !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */) &&\n ch !== 0x2E /* . */ &&\n ch !== 0x3F /* ? */ &&\n ch !== 0x5B /* [ */ &&\n ch !== 0x5E /* ^ */ &&\n ch !== 0x7C /* | */\n ) {\n state.advance();\n return true\n }\n return false\n};\n\n// GroupSpecifier ::\n// [empty]\n// `?` GroupName\npp$1.regexp_groupSpecifier = function(state) {\n if (state.eat(0x3F /* ? */)) {\n if (!this.regexp_eatGroupName(state)) { state.raise(\"Invalid group\"); }\n var trackDisjunction = this.options.ecmaVersion >= 16;\n var known = state.groupNames[state.lastStringValue];\n if (known) {\n if (trackDisjunction) {\n for (var i = 0, list = known; i < list.length; i += 1) {\n var altID = list[i];\n\n if (!altID.separatedFrom(state.branchID))\n { state.raise(\"Duplicate capture group name\"); }\n }\n } else {\n state.raise(\"Duplicate capture group name\");\n }\n }\n if (trackDisjunction) {\n (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);\n } else {\n state.groupNames[state.lastStringValue] = true;\n }\n }\n};\n\n// GroupName ::\n// `<` RegExpIdentifierName `>`\n// Note: this updates `state.lastStringValue` property with the eaten name.\npp$1.regexp_eatGroupName = function(state) {\n state.lastStringValue = \"\";\n if (state.eat(0x3C /* < */)) {\n if (this.regexp_eatRegExpIdentifierName(state) && state.eat(0x3E /* > */)) {\n return true\n }\n state.raise(\"Invalid capture group name\");\n }\n return false\n};\n\n// RegExpIdentifierName ::\n// RegExpIdentifierStart\n// RegExpIdentifierName RegExpIdentifierPart\n// Note: this updates `state.lastStringValue` property with the eaten name.\npp$1.regexp_eatRegExpIdentifierName = function(state) {\n state.lastStringValue = \"\";\n if (this.regexp_eatRegExpIdentifierStart(state)) {\n state.lastStringValue += codePointToString(state.lastIntValue);\n while (this.regexp_eatRegExpIdentifierPart(state)) {\n state.lastStringValue += codePointToString(state.lastIntValue);\n }\n return true\n }\n return false\n};\n\n// RegExpIdentifierStart ::\n// UnicodeIDStart\n// `$`\n// `_`\n// `\\` RegExpUnicodeEscapeSequence[+U]\npp$1.regexp_eatRegExpIdentifierStart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) {\n ch = state.lastIntValue;\n }\n if (isRegExpIdentifierStart(ch)) {\n state.lastIntValue = ch;\n return true\n }\n\n state.pos = start;\n return false\n};\nfunction isRegExpIdentifierStart(ch) {\n return isIdentifierStart(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */\n}\n\n// RegExpIdentifierPart ::\n// UnicodeIDContinue\n// `$`\n// `_`\n// `\\` RegExpUnicodeEscapeSequence[+U]\n// \n// \npp$1.regexp_eatRegExpIdentifierPart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) {\n ch = state.lastIntValue;\n }\n if (isRegExpIdentifierPart(ch)) {\n state.lastIntValue = ch;\n return true\n }\n\n state.pos = start;\n return false\n};\nfunction isRegExpIdentifierPart(ch) {\n return isIdentifierChar(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /* */ || ch === 0x200D /* */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape\npp$1.regexp_eatAtomEscape = function(state) {\n if (\n this.regexp_eatBackReference(state) ||\n this.regexp_eatCharacterClassEscape(state) ||\n this.regexp_eatCharacterEscape(state) ||\n (state.switchN && this.regexp_eatKGroupName(state))\n ) {\n return true\n }\n if (state.switchU) {\n // Make the same message as V8.\n if (state.current() === 0x63 /* c */) {\n state.raise(\"Invalid unicode escape\");\n }\n state.raise(\"Invalid escape\");\n }\n return false\n};\npp$1.regexp_eatBackReference = function(state) {\n var start = state.pos;\n if (this.regexp_eatDecimalEscape(state)) {\n var n = state.lastIntValue;\n if (state.switchU) {\n // For SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-atomescape\n if (n > state.maxBackReference) {\n state.maxBackReference = n;\n }\n return true\n }\n if (n <= state.numCapturingParens) {\n return true\n }\n state.pos = start;\n }\n return false\n};\npp$1.regexp_eatKGroupName = function(state) {\n if (state.eat(0x6B /* k */)) {\n if (this.regexp_eatGroupName(state)) {\n state.backReferenceNames.push(state.lastStringValue);\n return true\n }\n state.raise(\"Invalid named reference\");\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape\npp$1.regexp_eatCharacterEscape = function(state) {\n return (\n this.regexp_eatControlEscape(state) ||\n this.regexp_eatCControlLetter(state) ||\n this.regexp_eatZero(state) ||\n this.regexp_eatHexEscapeSequence(state) ||\n this.regexp_eatRegExpUnicodeEscapeSequence(state, false) ||\n (!state.switchU && this.regexp_eatLegacyOctalEscapeSequence(state)) ||\n this.regexp_eatIdentityEscape(state)\n )\n};\npp$1.regexp_eatCControlLetter = function(state) {\n var start = state.pos;\n if (state.eat(0x63 /* c */)) {\n if (this.regexp_eatControlLetter(state)) {\n return true\n }\n state.pos = start;\n }\n return false\n};\npp$1.regexp_eatZero = function(state) {\n if (state.current() === 0x30 /* 0 */ && !isDecimalDigit(state.lookahead())) {\n state.lastIntValue = 0;\n state.advance();\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape\npp$1.regexp_eatControlEscape = function(state) {\n var ch = state.current();\n if (ch === 0x74 /* t */) {\n state.lastIntValue = 0x09; /* \\t */\n state.advance();\n return true\n }\n if (ch === 0x6E /* n */) {\n state.lastIntValue = 0x0A; /* \\n */\n state.advance();\n return true\n }\n if (ch === 0x76 /* v */) {\n state.lastIntValue = 0x0B; /* \\v */\n state.advance();\n return true\n }\n if (ch === 0x66 /* f */) {\n state.lastIntValue = 0x0C; /* \\f */\n state.advance();\n return true\n }\n if (ch === 0x72 /* r */) {\n state.lastIntValue = 0x0D; /* \\r */\n state.advance();\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter\npp$1.regexp_eatControlLetter = function(state) {\n var ch = state.current();\n if (isControlLetter(ch)) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true\n }\n return false\n};\nfunction isControlLetter(ch) {\n return (\n (ch >= 0x41 /* A */ && ch <= 0x5A /* Z */) ||\n (ch >= 0x61 /* a */ && ch <= 0x7A /* z */)\n )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence\npp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var start = state.pos;\n var switchU = forceU || state.switchU;\n\n if (state.eat(0x75 /* u */)) {\n if (this.regexp_eatFixedHexDigits(state, 4)) {\n var lead = state.lastIntValue;\n if (switchU && lead >= 0xD800 && lead <= 0xDBFF) {\n var leadSurrogateEnd = state.pos;\n if (state.eat(0x5C /* \\ */) && state.eat(0x75 /* u */) && this.regexp_eatFixedHexDigits(state, 4)) {\n var trail = state.lastIntValue;\n if (trail >= 0xDC00 && trail <= 0xDFFF) {\n state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000;\n return true\n }\n }\n state.pos = leadSurrogateEnd;\n state.lastIntValue = lead;\n }\n return true\n }\n if (\n switchU &&\n state.eat(0x7B /* { */) &&\n this.regexp_eatHexDigits(state) &&\n state.eat(0x7D /* } */) &&\n isValidUnicode(state.lastIntValue)\n ) {\n return true\n }\n if (switchU) {\n state.raise(\"Invalid unicode escape\");\n }\n state.pos = start;\n }\n\n return false\n};\nfunction isValidUnicode(ch) {\n return ch >= 0 && ch <= 0x10FFFF\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape\npp$1.regexp_eatIdentityEscape = function(state) {\n if (state.switchU) {\n if (this.regexp_eatSyntaxCharacter(state)) {\n return true\n }\n if (state.eat(0x2F /* / */)) {\n state.lastIntValue = 0x2F; /* / */\n return true\n }\n return false\n }\n\n var ch = state.current();\n if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */)) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape\npp$1.regexp_eatDecimalEscape = function(state) {\n state.lastIntValue = 0;\n var ch = state.current();\n if (ch >= 0x31 /* 1 */ && ch <= 0x39 /* 9 */) {\n do {\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */);\n state.advance();\n } while ((ch = state.current()) >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */)\n return true\n }\n return false\n};\n\n// Return values used by character set parsing methods, needed to\n// forbid negation of sets that can match strings.\nvar CharSetNone = 0; // Nothing parsed\nvar CharSetOk = 1; // Construct parsed, cannot contain strings\nvar CharSetString = 2; // Construct parsed, can contain strings\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape\npp$1.regexp_eatCharacterClassEscape = function(state) {\n var ch = state.current();\n\n if (isCharacterClassEscape(ch)) {\n state.lastIntValue = -1;\n state.advance();\n return CharSetOk\n }\n\n var negate = false;\n if (\n state.switchU &&\n this.options.ecmaVersion >= 9 &&\n ((negate = ch === 0x50 /* P */) || ch === 0x70 /* p */)\n ) {\n state.lastIntValue = -1;\n state.advance();\n var result;\n if (\n state.eat(0x7B /* { */) &&\n (result = this.regexp_eatUnicodePropertyValueExpression(state)) &&\n state.eat(0x7D /* } */)\n ) {\n if (negate && result === CharSetString) { state.raise(\"Invalid property name\"); }\n return result\n }\n state.raise(\"Invalid property name\");\n }\n\n return CharSetNone\n};\n\nfunction isCharacterClassEscape(ch) {\n return (\n ch === 0x64 /* d */ ||\n ch === 0x44 /* D */ ||\n ch === 0x73 /* s */ ||\n ch === 0x53 /* S */ ||\n ch === 0x77 /* w */ ||\n ch === 0x57 /* W */\n )\n}\n\n// UnicodePropertyValueExpression ::\n// UnicodePropertyName `=` UnicodePropertyValue\n// LoneUnicodePropertyNameOrValue\npp$1.regexp_eatUnicodePropertyValueExpression = function(state) {\n var start = state.pos;\n\n // UnicodePropertyName `=` UnicodePropertyValue\n if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */)) {\n var name = state.lastStringValue;\n if (this.regexp_eatUnicodePropertyValue(state)) {\n var value = state.lastStringValue;\n this.regexp_validateUnicodePropertyNameAndValue(state, name, value);\n return CharSetOk\n }\n }\n state.pos = start;\n\n // LoneUnicodePropertyNameOrValue\n if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {\n var nameOrValue = state.lastStringValue;\n return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue)\n }\n return CharSetNone\n};\n\npp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) {\n if (!hasOwn(state.unicodeProperties.nonBinary, name))\n { state.raise(\"Invalid property name\"); }\n if (!state.unicodeProperties.nonBinary[name].test(value))\n { state.raise(\"Invalid property value\"); }\n};\n\npp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {\n if (state.unicodeProperties.binary.test(nameOrValue)) { return CharSetOk }\n if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) { return CharSetString }\n state.raise(\"Invalid property name\");\n};\n\n// UnicodePropertyName ::\n// UnicodePropertyNameCharacters\npp$1.regexp_eatUnicodePropertyName = function(state) {\n var ch = 0;\n state.lastStringValue = \"\";\n while (isUnicodePropertyNameCharacter(ch = state.current())) {\n state.lastStringValue += codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== \"\"\n};\n\nfunction isUnicodePropertyNameCharacter(ch) {\n return isControlLetter(ch) || ch === 0x5F /* _ */\n}\n\n// UnicodePropertyValue ::\n// UnicodePropertyValueCharacters\npp$1.regexp_eatUnicodePropertyValue = function(state) {\n var ch = 0;\n state.lastStringValue = \"\";\n while (isUnicodePropertyValueCharacter(ch = state.current())) {\n state.lastStringValue += codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== \"\"\n};\nfunction isUnicodePropertyValueCharacter(ch) {\n return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch)\n}\n\n// LoneUnicodePropertyNameOrValue ::\n// UnicodePropertyValueCharacters\npp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {\n return this.regexp_eatUnicodePropertyValue(state)\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass\npp$1.regexp_eatCharacterClass = function(state) {\n if (state.eat(0x5B /* [ */)) {\n var negate = state.eat(0x5E /* ^ */);\n var result = this.regexp_classContents(state);\n if (!state.eat(0x5D /* ] */))\n { state.raise(\"Unterminated character class\"); }\n if (negate && result === CharSetString)\n { state.raise(\"Negated character class may contain strings\"); }\n return true\n }\n return false\n};\n\n// https://tc39.es/ecma262/#prod-ClassContents\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges\npp$1.regexp_classContents = function(state) {\n if (state.current() === 0x5D /* ] */) { return CharSetOk }\n if (state.switchV) { return this.regexp_classSetExpression(state) }\n this.regexp_nonEmptyClassRanges(state);\n return CharSetOk\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash\npp$1.regexp_nonEmptyClassRanges = function(state) {\n while (this.regexp_eatClassAtom(state)) {\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */) && this.regexp_eatClassAtom(state)) {\n var right = state.lastIntValue;\n if (state.switchU && (left === -1 || right === -1)) {\n state.raise(\"Invalid character class\");\n }\n if (left !== -1 && right !== -1 && left > right) {\n state.raise(\"Range out of order in character class\");\n }\n }\n }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash\npp$1.regexp_eatClassAtom = function(state) {\n var start = state.pos;\n\n if (state.eat(0x5C /* \\ */)) {\n if (this.regexp_eatClassEscape(state)) {\n return true\n }\n if (state.switchU) {\n // Make the same message as V8.\n var ch$1 = state.current();\n if (ch$1 === 0x63 /* c */ || isOctalDigit(ch$1)) {\n state.raise(\"Invalid class escape\");\n }\n state.raise(\"Invalid escape\");\n }\n state.pos = start;\n }\n\n var ch = state.current();\n if (ch !== 0x5D /* ] */) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape\npp$1.regexp_eatClassEscape = function(state) {\n var start = state.pos;\n\n if (state.eat(0x62 /* b */)) {\n state.lastIntValue = 0x08; /* */\n return true\n }\n\n if (state.switchU && state.eat(0x2D /* - */)) {\n state.lastIntValue = 0x2D; /* - */\n return true\n }\n\n if (!state.switchU && state.eat(0x63 /* c */)) {\n if (this.regexp_eatClassControlLetter(state)) {\n return true\n }\n state.pos = start;\n }\n\n return (\n this.regexp_eatCharacterClassEscape(state) ||\n this.regexp_eatCharacterEscape(state)\n )\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetExpression\n// https://tc39.es/ecma262/#prod-ClassUnion\n// https://tc39.es/ecma262/#prod-ClassIntersection\n// https://tc39.es/ecma262/#prod-ClassSubtraction\npp$1.regexp_classSetExpression = function(state) {\n var result = CharSetOk, subResult;\n if (this.regexp_eatClassSetRange(state)) ; else if (subResult = this.regexp_eatClassSetOperand(state)) {\n if (subResult === CharSetString) { result = CharSetString; }\n // https://tc39.es/ecma262/#prod-ClassIntersection\n var start = state.pos;\n while (state.eatChars([0x26, 0x26] /* && */)) {\n if (\n state.current() !== 0x26 /* & */ &&\n (subResult = this.regexp_eatClassSetOperand(state))\n ) {\n if (subResult !== CharSetString) { result = CharSetOk; }\n continue\n }\n state.raise(\"Invalid character in character class\");\n }\n if (start !== state.pos) { return result }\n // https://tc39.es/ecma262/#prod-ClassSubtraction\n while (state.eatChars([0x2D, 0x2D] /* -- */)) {\n if (this.regexp_eatClassSetOperand(state)) { continue }\n state.raise(\"Invalid character in character class\");\n }\n if (start !== state.pos) { return result }\n } else {\n state.raise(\"Invalid character in character class\");\n }\n // https://tc39.es/ecma262/#prod-ClassUnion\n for (;;) {\n if (this.regexp_eatClassSetRange(state)) { continue }\n subResult = this.regexp_eatClassSetOperand(state);\n if (!subResult) { return result }\n if (subResult === CharSetString) { result = CharSetString; }\n }\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetRange\npp$1.regexp_eatClassSetRange = function(state) {\n var start = state.pos;\n if (this.regexp_eatClassSetCharacter(state)) {\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */) && this.regexp_eatClassSetCharacter(state)) {\n var right = state.lastIntValue;\n if (left !== -1 && right !== -1 && left > right) {\n state.raise(\"Range out of order in character class\");\n }\n return true\n }\n state.pos = start;\n }\n return false\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetOperand\npp$1.regexp_eatClassSetOperand = function(state) {\n if (this.regexp_eatClassSetCharacter(state)) { return CharSetOk }\n return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state)\n};\n\n// https://tc39.es/ecma262/#prod-NestedClass\npp$1.regexp_eatNestedClass = function(state) {\n var start = state.pos;\n if (state.eat(0x5B /* [ */)) {\n var negate = state.eat(0x5E /* ^ */);\n var result = this.regexp_classContents(state);\n if (state.eat(0x5D /* ] */)) {\n if (negate && result === CharSetString) {\n state.raise(\"Negated character class may contain strings\");\n }\n return result\n }\n state.pos = start;\n }\n if (state.eat(0x5C /* \\ */)) {\n var result$1 = this.regexp_eatCharacterClassEscape(state);\n if (result$1) {\n return result$1\n }\n state.pos = start;\n }\n return null\n};\n\n// https://tc39.es/ecma262/#prod-ClassStringDisjunction\npp$1.regexp_eatClassStringDisjunction = function(state) {\n var start = state.pos;\n if (state.eatChars([0x5C, 0x71] /* \\q */)) {\n if (state.eat(0x7B /* { */)) {\n var result = this.regexp_classStringDisjunctionContents(state);\n if (state.eat(0x7D /* } */)) {\n return result\n }\n } else {\n // Make the same message as V8.\n state.raise(\"Invalid escape\");\n }\n state.pos = start;\n }\n return null\n};\n\n// https://tc39.es/ecma262/#prod-ClassStringDisjunctionContents\npp$1.regexp_classStringDisjunctionContents = function(state) {\n var result = this.regexp_classString(state);\n while (state.eat(0x7C /* | */)) {\n if (this.regexp_classString(state) === CharSetString) { result = CharSetString; }\n }\n return result\n};\n\n// https://tc39.es/ecma262/#prod-ClassString\n// https://tc39.es/ecma262/#prod-NonEmptyClassString\npp$1.regexp_classString = function(state) {\n var count = 0;\n while (this.regexp_eatClassSetCharacter(state)) { count++; }\n return count === 1 ? CharSetOk : CharSetString\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetCharacter\npp$1.regexp_eatClassSetCharacter = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */)) {\n if (\n this.regexp_eatCharacterEscape(state) ||\n this.regexp_eatClassSetReservedPunctuator(state)\n ) {\n return true\n }\n if (state.eat(0x62 /* b */)) {\n state.lastIntValue = 0x08; /* */\n return true\n }\n state.pos = start;\n return false\n }\n var ch = state.current();\n if (ch < 0 || ch === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter(ch)) { return false }\n if (isClassSetSyntaxCharacter(ch)) { return false }\n state.advance();\n state.lastIntValue = ch;\n return true\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetReservedDoublePunctuator\nfunction isClassSetReservedDoublePunctuatorCharacter(ch) {\n return (\n ch === 0x21 /* ! */ ||\n ch >= 0x23 /* # */ && ch <= 0x26 /* & */ ||\n ch >= 0x2A /* * */ && ch <= 0x2C /* , */ ||\n ch === 0x2E /* . */ ||\n ch >= 0x3A /* : */ && ch <= 0x40 /* @ */ ||\n ch === 0x5E /* ^ */ ||\n ch === 0x60 /* ` */ ||\n ch === 0x7E /* ~ */\n )\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetSyntaxCharacter\nfunction isClassSetSyntaxCharacter(ch) {\n return (\n ch === 0x28 /* ( */ ||\n ch === 0x29 /* ) */ ||\n ch === 0x2D /* - */ ||\n ch === 0x2F /* / */ ||\n ch >= 0x5B /* [ */ && ch <= 0x5D /* ] */ ||\n ch >= 0x7B /* { */ && ch <= 0x7D /* } */\n )\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\npp$1.regexp_eatClassSetReservedPunctuator = function(state) {\n var ch = state.current();\n if (isClassSetReservedPunctuator(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n return false\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\nfunction isClassSetReservedPunctuator(ch) {\n return (\n ch === 0x21 /* ! */ ||\n ch === 0x23 /* # */ ||\n ch === 0x25 /* % */ ||\n ch === 0x26 /* & */ ||\n ch === 0x2C /* , */ ||\n ch === 0x2D /* - */ ||\n ch >= 0x3A /* : */ && ch <= 0x3E /* > */ ||\n ch === 0x40 /* @ */ ||\n ch === 0x60 /* ` */ ||\n ch === 0x7E /* ~ */\n )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter\npp$1.regexp_eatClassControlLetter = function(state) {\n var ch = state.current();\n if (isDecimalDigit(ch) || ch === 0x5F /* _ */) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\npp$1.regexp_eatHexEscapeSequence = function(state) {\n var start = state.pos;\n if (state.eat(0x78 /* x */)) {\n if (this.regexp_eatFixedHexDigits(state, 2)) {\n return true\n }\n if (state.switchU) {\n state.raise(\"Invalid escape\");\n }\n state.pos = start;\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits\npp$1.regexp_eatDecimalDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while (isDecimalDigit(ch = state.current())) {\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */);\n state.advance();\n }\n return state.pos !== start\n};\nfunction isDecimalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits\npp$1.regexp_eatHexDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while (isHexDigit(ch = state.current())) {\n state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch);\n state.advance();\n }\n return state.pos !== start\n};\nfunction isHexDigit(ch) {\n return (\n (ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) ||\n (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) ||\n (ch >= 0x61 /* a */ && ch <= 0x66 /* f */)\n )\n}\nfunction hexToInt(ch) {\n if (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) {\n return 10 + (ch - 0x41 /* A */)\n }\n if (ch >= 0x61 /* a */ && ch <= 0x66 /* f */) {\n return 10 + (ch - 0x61 /* a */)\n }\n return ch - 0x30 /* 0 */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence\n// Allows only 0-377(octal) i.e. 0-255(decimal).\npp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {\n if (this.regexp_eatOctalDigit(state)) {\n var n1 = state.lastIntValue;\n if (this.regexp_eatOctalDigit(state)) {\n var n2 = state.lastIntValue;\n if (n1 <= 3 && this.regexp_eatOctalDigit(state)) {\n state.lastIntValue = n1 * 64 + n2 * 8 + state.lastIntValue;\n } else {\n state.lastIntValue = n1 * 8 + n2;\n }\n } else {\n state.lastIntValue = n1;\n }\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit\npp$1.regexp_eatOctalDigit = function(state) {\n var ch = state.current();\n if (isOctalDigit(ch)) {\n state.lastIntValue = ch - 0x30; /* 0 */\n state.advance();\n return true\n }\n state.lastIntValue = 0;\n return false\n};\nfunction isOctalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit\n// And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\npp$1.regexp_eatFixedHexDigits = function(state, length) {\n var start = state.pos;\n state.lastIntValue = 0;\n for (var i = 0; i < length; ++i) {\n var ch = state.current();\n if (!isHexDigit(ch)) {\n state.pos = start;\n return false\n }\n state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch);\n state.advance();\n }\n return true\n};\n\n// Object type used to represent tokens. Note that normally, tokens\n// simply exist as properties on the parser object. This is only\n// used for the onToken callback and the external tokenizer.\n\nvar Token = function Token(p) {\n this.type = p.type;\n this.value = p.value;\n this.start = p.start;\n this.end = p.end;\n if (p.options.locations)\n { this.loc = new SourceLocation(p, p.startLoc, p.endLoc); }\n if (p.options.ranges)\n { this.range = [p.start, p.end]; }\n};\n\n// ## Tokenizer\n\nvar pp = Parser.prototype;\n\n// Move to the next token\n\npp.next = function(ignoreEscapeSequenceInKeyword) {\n if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc)\n { this.raiseRecoverable(this.start, \"Escape sequence in keyword \" + this.type.keyword); }\n if (this.options.onToken)\n { this.options.onToken(new Token(this)); }\n\n this.lastTokEnd = this.end;\n this.lastTokStart = this.start;\n this.lastTokEndLoc = this.endLoc;\n this.lastTokStartLoc = this.startLoc;\n this.nextToken();\n};\n\npp.getToken = function() {\n this.next();\n return new Token(this)\n};\n\n// If we're in an ES6 environment, make parsers iterable\nif (typeof Symbol !== \"undefined\")\n { pp[Symbol.iterator] = function() {\n var this$1$1 = this;\n\n return {\n next: function () {\n var token = this$1$1.getToken();\n return {\n done: token.type === types$1.eof,\n value: token\n }\n }\n }\n }; }\n\n// Toggle strict mode. Re-reads the next number or string to please\n// pedantic tests (`\"use strict\"; 010;` should fail).\n\n// Read a single token, updating the parser object's token-related\n// properties.\n\npp.nextToken = function() {\n var curContext = this.curContext();\n if (!curContext || !curContext.preserveSpace) { this.skipSpace(); }\n\n this.start = this.pos;\n if (this.options.locations) { this.startLoc = this.curPosition(); }\n if (this.pos >= this.input.length) { return this.finishToken(types$1.eof) }\n\n if (curContext.override) { return curContext.override(this) }\n else { this.readToken(this.fullCharCodeAtPos()); }\n};\n\npp.readToken = function(code) {\n // Identifier or keyword. '\\uXXXX' sequences are allowed in\n // identifiers, so '\\' also dispatches to that.\n if (isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92 /* '\\' */)\n { return this.readWord() }\n\n return this.getTokenFromCode(code)\n};\n\npp.fullCharCodeAtPos = function() {\n var code = this.input.charCodeAt(this.pos);\n if (code <= 0xd7ff || code >= 0xdc00) { return code }\n var next = this.input.charCodeAt(this.pos + 1);\n return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00\n};\n\npp.skipBlockComment = function() {\n var startLoc = this.options.onComment && this.curPosition();\n var start = this.pos, end = this.input.indexOf(\"*/\", this.pos += 2);\n if (end === -1) { this.raise(this.pos - 2, \"Unterminated comment\"); }\n this.pos = end + 2;\n if (this.options.locations) {\n for (var nextBreak = (void 0), pos = start; (nextBreak = nextLineBreak(this.input, pos, this.pos)) > -1;) {\n ++this.curLine;\n pos = this.lineStart = nextBreak;\n }\n }\n if (this.options.onComment)\n { this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos,\n startLoc, this.curPosition()); }\n};\n\npp.skipLineComment = function(startSkip) {\n var start = this.pos;\n var startLoc = this.options.onComment && this.curPosition();\n var ch = this.input.charCodeAt(this.pos += startSkip);\n while (this.pos < this.input.length && !isNewLine(ch)) {\n ch = this.input.charCodeAt(++this.pos);\n }\n if (this.options.onComment)\n { this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos,\n startLoc, this.curPosition()); }\n};\n\n// Called at the start of the parse and after every token. Skips\n// whitespace and comments, and.\n\npp.skipSpace = function() {\n loop: while (this.pos < this.input.length) {\n var ch = this.input.charCodeAt(this.pos);\n switch (ch) {\n case 32: case 160: // ' '\n ++this.pos;\n break\n case 13:\n if (this.input.charCodeAt(this.pos + 1) === 10) {\n ++this.pos;\n }\n case 10: case 8232: case 8233:\n ++this.pos;\n if (this.options.locations) {\n ++this.curLine;\n this.lineStart = this.pos;\n }\n break\n case 47: // '/'\n switch (this.input.charCodeAt(this.pos + 1)) {\n case 42: // '*'\n this.skipBlockComment();\n break\n case 47:\n this.skipLineComment(2);\n break\n default:\n break loop\n }\n break\n default:\n if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {\n ++this.pos;\n } else {\n break loop\n }\n }\n }\n};\n\n// Called at the end of every token. Sets `end`, `val`, and\n// maintains `context` and `exprAllowed`, and skips the space after\n// the token, so that the next one's `start` will point at the\n// right position.\n\npp.finishToken = function(type, val) {\n this.end = this.pos;\n if (this.options.locations) { this.endLoc = this.curPosition(); }\n var prevType = this.type;\n this.type = type;\n this.value = val;\n\n this.updateContext(prevType);\n};\n\n// ### Token reading\n\n// This is the function that is called to fetch the next token. It\n// is somewhat obscure, because it works in character codes rather\n// than characters, and because operator parsing has been inlined\n// into it.\n//\n// All in the name of speed.\n//\npp.readToken_dot = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next >= 48 && next <= 57) { return this.readNumber(true) }\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) { // 46 = dot '.'\n this.pos += 3;\n return this.finishToken(types$1.ellipsis)\n } else {\n ++this.pos;\n return this.finishToken(types$1.dot)\n }\n};\n\npp.readToken_slash = function() { // '/'\n var next = this.input.charCodeAt(this.pos + 1);\n if (this.exprAllowed) { ++this.pos; return this.readRegexp() }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.slash, 1)\n};\n\npp.readToken_mult_modulo_exp = function(code) { // '%*'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n var tokentype = code === 42 ? types$1.star : types$1.modulo;\n\n // exponentiation operator ** and **=\n if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) {\n ++size;\n tokentype = types$1.starstar;\n next = this.input.charCodeAt(this.pos + 2);\n }\n\n if (next === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(tokentype, size)\n};\n\npp.readToken_pipe_amp = function(code) { // '|&'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (this.options.ecmaVersion >= 12) {\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (next2 === 61) { return this.finishOp(types$1.assign, 3) }\n }\n return this.finishOp(code === 124 ? types$1.logicalOR : types$1.logicalAND, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(code === 124 ? types$1.bitwiseOR : types$1.bitwiseAND, 1)\n};\n\npp.readToken_caret = function() { // '^'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.bitwiseXOR, 1)\n};\n\npp.readToken_plus_min = function(code) { // '+-'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 &&\n (this.lastTokEnd === 0 || lineBreak.test(this.input.slice(this.lastTokEnd, this.pos)))) {\n // A `-->` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types$1.incDec, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.plusMin, 1)\n};\n\npp.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(types$1.bitShift, size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // ` convert colors\nimport './src/io/cmyk/index.js';\nimport './src/io/css/index.js';\nimport './src/io/gl/index.js';\nimport './src/io/hcg/index.js';\nimport './src/io/hex/index.js';\nimport './src/io/hsi/index.js';\nimport './src/io/hsl/index.js';\nimport './src/io/hsv/index.js';\nimport './src/io/lab/index.js';\nimport './src/io/lch/index.js';\nimport './src/io/named/index.js';\nimport './src/io/num/index.js';\nimport './src/io/rgb/index.js';\nimport './src/io/temp/index.js';\nimport './src/io/oklab/index.js';\nimport './src/io/oklch/index.js';\n\n// operators --> modify existing Colors\nimport './src/ops/alpha.js';\nimport './src/ops/clipped.js';\nimport './src/ops/darken.js';\nimport './src/ops/get.js';\nimport './src/ops/luminance.js';\nimport './src/ops/mix.js';\nimport './src/ops/premultiply.js';\nimport './src/ops/saturate.js';\nimport './src/ops/set.js';\nimport './src/ops/shade.js';\n\n// interpolators\nimport './src/interpolator/rgb.js';\nimport './src/interpolator/lrgb.js';\nimport './src/interpolator/lab.js';\nimport './src/interpolator/lch.js';\nimport './src/interpolator/num.js';\nimport './src/interpolator/hcg.js';\nimport './src/interpolator/hsi.js';\nimport './src/interpolator/hsl.js';\nimport './src/interpolator/hsv.js';\nimport './src/interpolator/oklab.js';\nimport './src/interpolator/oklch.js';\n\n// generators -- > create new colors\nimport average from './src/generator/average.js';\nimport bezier from './src/generator/bezier.js';\nimport blend from './src/generator/blend.js';\nimport cubehelix from './src/generator/cubehelix.js';\nimport mix from './src/generator/mix.js';\nimport random from './src/generator/random.js';\nimport scale from './src/generator/scale.js';\n\n// other utility methods\nimport { analyze } from './src/utils/analyze.js';\nimport contrast from './src/utils/contrast.js';\nimport deltaE from './src/utils/delta-e.js';\nimport distance from './src/utils/distance.js';\nimport { limits } from './src/utils/analyze.js';\nimport valid from './src/utils/valid.js';\nimport input from './src/io/input.js';\n\n// scale\nimport scales from './src/utils/scales.js';\n\n// colors\nimport colors from './src/colors/w3cx11.js';\nimport brewer from './src/colors/colorbrewer.js';\n\nObject.assign(chroma, {\n average,\n bezier,\n blend,\n cubehelix,\n mix,\n interpolate: mix,\n random,\n scale,\n analyze,\n contrast,\n deltaE,\n distance,\n limits,\n valid,\n scales,\n input,\n colors,\n brewer\n});\n\nexport default chroma;\n","import Color from './Color.js';\nimport { version } from './version.js';\n\nconst chroma = (...args) => {\n return new chroma.Color(...args);\n};\n\nchroma.Color = Color;\nchroma.version = version;\n\nexport default chroma;\n","import { last, clip_rgb, type } from './utils/index.js';\nimport _input from './io/input.js';\n\nclass Color {\n constructor(...args) {\n const me = this;\n if (\n type(args[0]) === 'object' &&\n args[0].constructor &&\n args[0].constructor === this.constructor\n ) {\n // the argument is already a Color instance\n return args[0];\n }\n // last argument could be the mode\n let mode = last(args);\n let autodetect = false;\n if (!mode) {\n autodetect = true;\n if (!_input.sorted) {\n _input.autodetect = _input.autodetect.sort((a, b) => b.p - a.p);\n _input.sorted = true;\n }\n // auto-detect format\n for (let chk of _input.autodetect) {\n mode = chk.test(...args);\n if (mode) break;\n }\n }\n if (_input.format[mode]) {\n const rgb = _input.format[mode].apply(\n null,\n autodetect ? args : args.slice(0, -1)\n );\n me._rgb = clip_rgb(rgb);\n } else {\n throw new Error('unknown format: ' + args);\n }\n // add alpha channel\n if (me._rgb.length === 3) me._rgb.push(1);\n }\n toString() {\n if (type(this.hex) == 'function') return this.hex();\n return `[${this._rgb.join(',')}]`;\n }\n}\nexport default Color;\n","const { PI, min, max } = Math;\n\nexport { default as clip_rgb } from './clip_rgb.js';\nexport { default as limit } from './limit.js';\nexport { default as type } from './type.js';\nexport { default as unpack } from './unpack.js';\nexport { default as last } from './last.js';\n\nconst TWOPI = PI * 2;\nconst PITHIRD = PI / 3;\nconst DEG2RAD = PI / 180;\nconst RAD2DEG = 180 / PI;\n\nexport { PI, TWOPI, PITHIRD, DEG2RAD, RAD2DEG, min, max };\n","import limit from './limit.js';\n\nexport default (rgb) => {\n rgb._clipped = false;\n rgb._unclipped = rgb.slice(0);\n for (let i = 0; i <= 3; i++) {\n if (i < 3) {\n if (rgb[i] < 0 || rgb[i] > 255) rgb._clipped = true;\n rgb[i] = limit(rgb[i], 0, 255);\n } else if (i === 3) {\n rgb[i] = limit(rgb[i], 0, 1);\n }\n }\n return rgb;\n};\n","import { min, max } from './index.js';\n\nexport default (x, low = 0, high = 1) => {\n return min(max(low, x), high);\n};\n","// ported from jQuery's $.type\nconst classToType = {};\nfor (let name of [\n 'Boolean',\n 'Number',\n 'String',\n 'Function',\n 'Array',\n 'Date',\n 'RegExp',\n 'Undefined',\n 'Null'\n]) {\n classToType[`[object ${name}]`] = name.toLowerCase();\n}\nexport default function (obj) {\n return classToType[Object.prototype.toString.call(obj)] || 'object';\n}\n","import type from './type.js';\n\nexport default (args, keyOrder = null) => {\n // if called with more than 3 arguments, we return the arguments\n if (args.length >= 3) return Array.prototype.slice.call(args);\n // with less than 3 args we check if first arg is object\n // and use the keyOrder string to extract and sort properties\n if (type(args[0]) == 'object' && keyOrder) {\n return keyOrder\n .split('')\n .filter((k) => args[0][k] !== undefined)\n .map((k) => args[0][k]);\n }\n // otherwise we just return the first argument\n // (which we suppose is an array of args)\n return args[0];\n};\n","import type from './type.js';\n\nexport default (args) => {\n if (args.length < 2) return null;\n const l = args.length - 1;\n if (type(args[l]) == 'string') return args[l].toLowerCase();\n return null;\n};\n","export default {\n format: {},\n autodetect: []\n};\n","// this gets updated automatically\nexport const version = '2.6.0';\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { unpack, type } from '../../utils/index.js';\nimport cmyk2rgb from './cmyk2rgb.js';\nimport rgb2cmyk from './rgb2cmyk.js';\n\nColor.prototype.cmyk = function () {\n return rgb2cmyk(this._rgb);\n};\n\nchroma.cmyk = (...args) => new Color(...args, 'cmyk');\n\ninput.format.cmyk = cmyk2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'cmyk');\n if (type(args) === 'array' && args.length === 4) {\n return 'cmyk';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\n\nconst cmyk2rgb = (...args) => {\n args = unpack(args, 'cmyk');\n const [c, m, y, k] = args;\n const alpha = args.length > 4 ? args[4] : 1;\n if (k === 1) return [0, 0, 0, alpha];\n return [\n c >= 1 ? 0 : 255 * (1 - c) * (1 - k), // r\n m >= 1 ? 0 : 255 * (1 - m) * (1 - k), // g\n y >= 1 ? 0 : 255 * (1 - y) * (1 - k), // b\n alpha\n ];\n};\n\nexport default cmyk2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { max } = Math;\n\nconst rgb2cmyk = (...args) => {\n let [r, g, b] = unpack(args, 'rgb');\n r = r / 255;\n g = g / 255;\n b = b / 255;\n const k = 1 - max(r, max(g, b));\n const f = k < 1 ? 1 / (1 - k) : 0;\n const c = (1 - r - k) * f;\n const m = (1 - g - k) * f;\n const y = (1 - b - k) * f;\n return [c, m, y, k];\n};\n\nexport default rgb2cmyk;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\n\nimport rgb2css from './rgb2css.js';\nimport css2rgb from './css2rgb.js';\n\nColor.prototype.css = function (mode) {\n return rgb2css(this._rgb, mode);\n};\n\nchroma.css = (...args) => new Color(...args, 'css');\n\ninput.format.css = css2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (h, ...rest) => {\n if (!rest.length && type(h) === 'string' && css2rgb.test(h)) {\n return 'css';\n }\n }\n});\n","import { unpack, last } from '../../utils/index.js';\nimport hsl2css from './hsl2css.js';\nimport rgb2hsl from '../hsl/rgb2hsl.js';\nconst { round } = Math;\n\n/*\n * supported arguments:\n * - rgb2css(r,g,b)\n * - rgb2css(r,g,b,a)\n * - rgb2css([r,g,b], mode)\n * - rgb2css([r,g,b,a], mode)\n * - rgb2css({r,g,b,a}, mode)\n */\nconst rgb2css = (...args) => {\n const rgba = unpack(args, 'rgba');\n let mode = last(args) || 'rgb';\n if (mode.substr(0, 3) == 'hsl') {\n return hsl2css(rgb2hsl(rgba), mode);\n }\n rgba[0] = round(rgba[0]);\n rgba[1] = round(rgba[1]);\n rgba[2] = round(rgba[2]);\n if (mode === 'rgba' || (rgba.length > 3 && rgba[3] < 1)) {\n rgba[3] = rgba.length > 3 ? rgba[3] : 1;\n mode = 'rgba';\n }\n return `${mode}(${rgba.slice(0, mode === 'rgb' ? 3 : 4).join(',')})`;\n};\n\nexport default rgb2css;\n","import { unpack, last } from '../../utils/index.js';\nconst rnd = (a) => Math.round(a * 100) / 100;\n\n/*\n * supported arguments:\n * - hsl2css(h,s,l)\n * - hsl2css(h,s,l,a)\n * - hsl2css([h,s,l], mode)\n * - hsl2css([h,s,l,a], mode)\n * - hsl2css({h,s,l,a}, mode)\n */\nconst hsl2css = (...args) => {\n const hsla = unpack(args, 'hsla');\n let mode = last(args) || 'lsa';\n hsla[0] = rnd(hsla[0] || 0);\n hsla[1] = rnd(hsla[1] * 100) + '%';\n hsla[2] = rnd(hsla[2] * 100) + '%';\n if (mode === 'hsla' || (hsla.length > 3 && hsla[3] < 1)) {\n hsla[3] = hsla.length > 3 ? hsla[3] : 1;\n mode = 'hsla';\n } else {\n hsla.length = 3;\n }\n return `${mode}(${hsla.join(',')})`;\n};\n\nexport default hsl2css;\n","import { unpack, min, max } from '../../utils/index.js';\n\n/*\n * supported arguments:\n * - rgb2hsl(r,g,b)\n * - rgb2hsl(r,g,b,a)\n * - rgb2hsl([r,g,b])\n * - rgb2hsl([r,g,b,a])\n * - rgb2hsl({r,g,b,a})\n */\nconst rgb2hsl = (...args) => {\n args = unpack(args, 'rgba');\n let [r, g, b] = args;\n\n r /= 255;\n g /= 255;\n b /= 255;\n\n const minRgb = min(r, g, b);\n const maxRgb = max(r, g, b);\n\n const l = (maxRgb + minRgb) / 2;\n let s, h;\n\n if (maxRgb === minRgb) {\n s = 0;\n h = Number.NaN;\n } else {\n s =\n l < 0.5\n ? (maxRgb - minRgb) / (maxRgb + minRgb)\n : (maxRgb - minRgb) / (2 - maxRgb - minRgb);\n }\n\n if (r == maxRgb) h = (g - b) / (maxRgb - minRgb);\n else if (g == maxRgb) h = 2 + (b - r) / (maxRgb - minRgb);\n else if (b == maxRgb) h = 4 + (r - g) / (maxRgb - minRgb);\n\n h *= 60;\n if (h < 0) h += 360;\n if (args.length > 3 && args[3] !== undefined) return [h, s, l, args[3]];\n return [h, s, l];\n};\n\nexport default rgb2hsl;\n","import hsl2rgb from '../hsl/hsl2rgb.js';\nimport input from '../input.js';\n\nconst RE_RGB = /^rgb\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*\\)$/;\nconst RE_RGBA =\n /^rgba\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\nconst RE_RGB_PCT =\n /^rgb\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/;\nconst RE_RGBA_PCT =\n /^rgba\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\nconst RE_HSL =\n /^hsl\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/;\nconst RE_HSLA =\n /^hsla\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\n\nconst { round } = Math;\n\nconst css2rgb = (css) => {\n css = css.toLowerCase().trim();\n let m;\n\n if (input.format.named) {\n try {\n return input.format.named(css);\n // eslint-disable-next-line\n } catch (e) {}\n }\n\n // rgb(250,20,0)\n if ((m = css.match(RE_RGB))) {\n const rgb = m.slice(1, 4);\n for (let i = 0; i < 3; i++) {\n rgb[i] = +rgb[i];\n }\n rgb[3] = 1; // default alpha\n return rgb;\n }\n\n // rgba(250,20,0,0.4)\n if ((m = css.match(RE_RGBA))) {\n const rgb = m.slice(1, 5);\n for (let i = 0; i < 4; i++) {\n rgb[i] = +rgb[i];\n }\n return rgb;\n }\n\n // rgb(100%,0%,0%)\n if ((m = css.match(RE_RGB_PCT))) {\n const rgb = m.slice(1, 4);\n for (let i = 0; i < 3; i++) {\n rgb[i] = round(rgb[i] * 2.55);\n }\n rgb[3] = 1; // default alpha\n return rgb;\n }\n\n // rgba(100%,0%,0%,0.4)\n if ((m = css.match(RE_RGBA_PCT))) {\n const rgb = m.slice(1, 5);\n for (let i = 0; i < 3; i++) {\n rgb[i] = round(rgb[i] * 2.55);\n }\n rgb[3] = +rgb[3];\n return rgb;\n }\n\n // hsl(0,100%,50%)\n if ((m = css.match(RE_HSL))) {\n const hsl = m.slice(1, 4);\n hsl[1] *= 0.01;\n hsl[2] *= 0.01;\n const rgb = hsl2rgb(hsl);\n rgb[3] = 1;\n return rgb;\n }\n\n // hsla(0,100%,50%,0.5)\n if ((m = css.match(RE_HSLA))) {\n const hsl = m.slice(1, 4);\n hsl[1] *= 0.01;\n hsl[2] *= 0.01;\n const rgb = hsl2rgb(hsl);\n rgb[3] = +m[4]; // default alpha = 1\n return rgb;\n }\n};\n\ncss2rgb.test = (s) => {\n return (\n RE_RGB.test(s) ||\n RE_RGBA.test(s) ||\n RE_RGB_PCT.test(s) ||\n RE_RGBA_PCT.test(s) ||\n RE_HSL.test(s) ||\n RE_HSLA.test(s)\n );\n};\n\nexport default css2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { round } = Math;\n\nconst hsl2rgb = (...args) => {\n args = unpack(args, 'hsl');\n const [h, s, l] = args;\n let r, g, b;\n if (s === 0) {\n r = g = b = l * 255;\n } else {\n const t3 = [0, 0, 0];\n const c = [0, 0, 0];\n const t2 = l < 0.5 ? l * (1 + s) : l + s - l * s;\n const t1 = 2 * l - t2;\n const h_ = h / 360;\n t3[0] = h_ + 1 / 3;\n t3[1] = h_;\n t3[2] = h_ - 1 / 3;\n for (let i = 0; i < 3; i++) {\n if (t3[i] < 0) t3[i] += 1;\n if (t3[i] > 1) t3[i] -= 1;\n if (6 * t3[i] < 1) c[i] = t1 + (t2 - t1) * 6 * t3[i];\n else if (2 * t3[i] < 1) c[i] = t2;\n else if (3 * t3[i] < 2) c[i] = t1 + (t2 - t1) * (2 / 3 - t3[i]) * 6;\n else c[i] = t1;\n }\n [r, g, b] = [round(c[0] * 255), round(c[1] * 255), round(c[2] * 255)];\n }\n if (args.length > 3) {\n // keep alpha channel\n return [r, g, b, args[3]];\n }\n return [r, g, b, 1];\n};\n\nexport default hsl2rgb;\n","import Color from '../../Color.js';\nimport chroma from '../../chroma.js';\nimport input from '../input.js';\nimport { unpack } from '../../utils/index.js';\n\ninput.format.gl = (...args) => {\n const rgb = unpack(args, 'rgba');\n rgb[0] *= 255;\n rgb[1] *= 255;\n rgb[2] *= 255;\n return rgb;\n};\n\nchroma.gl = (...args) => new Color(...args, 'gl');\n\nColor.prototype.gl = function () {\n const rgb = this._rgb;\n return [rgb[0] / 255, rgb[1] / 255, rgb[2] / 255, rgb[3]];\n};\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hcg2rgb from './hcg2rgb.js';\nimport rgb2hcg from './rgb2hcg.js';\n\nColor.prototype.hcg = function () {\n return rgb2hcg(this._rgb);\n};\n\nchroma.hcg = (...args) => new Color(...args, 'hcg');\n\ninput.format.hcg = hcg2rgb;\n\ninput.autodetect.push({\n p: 1,\n test: (...args) => {\n args = unpack(args, 'hcg');\n if (type(args) === 'array' && args.length === 3) {\n return 'hcg';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { floor } = Math;\n\n/*\n * this is basically just HSV with some minor tweaks\n *\n * hue.. [0..360]\n * chroma .. [0..1]\n * grayness .. [0..1]\n */\n\nconst hcg2rgb = (...args) => {\n args = unpack(args, 'hcg');\n let [h, c, _g] = args;\n let r, g, b;\n _g = _g * 255;\n const _c = c * 255;\n if (c === 0) {\n r = g = b = _g;\n } else {\n if (h === 360) h = 0;\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 60;\n const i = floor(h);\n const f = h - i;\n const p = _g * (1 - c);\n const q = p + _c * (1 - f);\n const t = p + _c * f;\n const v = p + _c;\n switch (i) {\n case 0:\n [r, g, b] = [v, t, p];\n break;\n case 1:\n [r, g, b] = [q, v, p];\n break;\n case 2:\n [r, g, b] = [p, v, t];\n break;\n case 3:\n [r, g, b] = [p, q, v];\n break;\n case 4:\n [r, g, b] = [t, p, v];\n break;\n case 5:\n [r, g, b] = [v, p, q];\n break;\n }\n }\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default hcg2rgb;\n","import { unpack, max, min } from '../../utils/index.js';\n\nconst rgb2hcg = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const minRgb = min(r, g, b);\n const maxRgb = max(r, g, b);\n const delta = maxRgb - minRgb;\n const c = (delta * 100) / 255;\n const _g = (minRgb / (255 - delta)) * 100;\n let h;\n if (delta === 0) {\n h = Number.NaN;\n } else {\n if (r === maxRgb) h = (g - b) / delta;\n if (g === maxRgb) h = 2 + (b - r) / delta;\n if (b === maxRgb) h = 4 + (r - g) / delta;\n h *= 60;\n if (h < 0) h += 360;\n }\n return [h, c, _g];\n};\n\nexport default rgb2hcg;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport { type } from '../../utils/index.js';\nimport input from '../input.js';\nimport hex2rgb from './hex2rgb.js';\nimport rgb2hex from './rgb2hex.js';\n\nColor.prototype.hex = function (mode) {\n return rgb2hex(this._rgb, mode);\n};\n\nchroma.hex = (...args) => new Color(...args, 'hex');\n\ninput.format.hex = hex2rgb;\ninput.autodetect.push({\n p: 4,\n test: (h, ...rest) => {\n if (\n !rest.length &&\n type(h) === 'string' &&\n [3, 4, 5, 6, 7, 8, 9].indexOf(h.length) >= 0\n ) {\n return 'hex';\n }\n }\n});\n","const RE_HEX = /^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;\nconst RE_HEXA = /^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;\n\nconst hex2rgb = (hex) => {\n if (hex.match(RE_HEX)) {\n // remove optional leading #\n if (hex.length === 4 || hex.length === 7) {\n hex = hex.substr(1);\n }\n // expand short-notation to full six-digit\n if (hex.length === 3) {\n hex = hex.split('');\n hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];\n }\n const u = parseInt(hex, 16);\n const r = u >> 16;\n const g = (u >> 8) & 0xff;\n const b = u & 0xff;\n return [r, g, b, 1];\n }\n\n // match rgba hex format, eg #FF000077\n if (hex.match(RE_HEXA)) {\n if (hex.length === 5 || hex.length === 9) {\n // remove optional leading #\n hex = hex.substr(1);\n }\n // expand short-notation to full eight-digit\n if (hex.length === 4) {\n hex = hex.split('');\n hex =\n hex[0] +\n hex[0] +\n hex[1] +\n hex[1] +\n hex[2] +\n hex[2] +\n hex[3] +\n hex[3];\n }\n const u = parseInt(hex, 16);\n const r = (u >> 24) & 0xff;\n const g = (u >> 16) & 0xff;\n const b = (u >> 8) & 0xff;\n const a = Math.round(((u & 0xff) / 0xff) * 100) / 100;\n return [r, g, b, a];\n }\n\n // we used to check for css colors here\n // if _input.css? and rgb = _input.css hex\n // return rgb\n\n throw new Error(`unknown hex color: ${hex}`);\n};\n\nexport default hex2rgb;\n","import { unpack, last } from '../../utils/index.js';\nconst { round } = Math;\n\nconst rgb2hex = (...args) => {\n let [r, g, b, a] = unpack(args, 'rgba');\n let mode = last(args) || 'auto';\n if (a === undefined) a = 1;\n if (mode === 'auto') {\n mode = a < 1 ? 'rgba' : 'rgb';\n }\n r = round(r);\n g = round(g);\n b = round(b);\n const u = (r << 16) | (g << 8) | b;\n let str = '000000' + u.toString(16); //#.toUpperCase();\n str = str.substr(str.length - 6);\n let hxa = '0' + round(a * 255).toString(16);\n hxa = hxa.substr(hxa.length - 2);\n switch (mode.toLowerCase()) {\n case 'rgba':\n return `#${str}${hxa}`;\n case 'argb':\n return `#${hxa}${str}`;\n default:\n return `#${str}`;\n }\n};\n\nexport default rgb2hex;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsi2rgb from './hsi2rgb.js';\nimport rgb2hsi from './rgb2hsi.js';\n\nColor.prototype.hsi = function () {\n return rgb2hsi(this._rgb);\n};\n\nchroma.hsi = (...args) => new Color(...args, 'hsi');\n\ninput.format.hsi = hsi2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsi');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsi';\n }\n }\n});\n","import { unpack, limit, TWOPI, PITHIRD } from '../../utils/index.js';\nconst { cos } = Math;\n\n/*\n * hue [0..360]\n * saturation [0..1]\n * intensity [0..1]\n */\nconst hsi2rgb = (...args) => {\n /*\n borrowed from here:\n http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/hsi2rgb.cpp\n */\n args = unpack(args, 'hsi');\n let [h, s, i] = args;\n let r, g, b;\n\n if (isNaN(h)) h = 0;\n if (isNaN(s)) s = 0;\n // normalize hue\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 360;\n if (h < 1 / 3) {\n b = (1 - s) / 3;\n r = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n g = 1 - (b + r);\n } else if (h < 2 / 3) {\n h -= 1 / 3;\n r = (1 - s) / 3;\n g = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n b = 1 - (r + g);\n } else {\n h -= 2 / 3;\n g = (1 - s) / 3;\n b = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n r = 1 - (g + b);\n }\n r = limit(i * r * 3);\n g = limit(i * g * 3);\n b = limit(i * b * 3);\n return [r * 255, g * 255, b * 255, args.length > 3 ? args[3] : 1];\n};\n\nexport default hsi2rgb;\n","import { unpack, TWOPI } from '../../utils/index.js';\nconst { min, sqrt, acos } = Math;\n\nconst rgb2hsi = (...args) => {\n /*\n borrowed from here:\n http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/rgb2hsi.cpp\n */\n let [r, g, b] = unpack(args, 'rgb');\n r /= 255;\n g /= 255;\n b /= 255;\n let h;\n const min_ = min(r, g, b);\n const i = (r + g + b) / 3;\n const s = i > 0 ? 1 - min_ / i : 0;\n if (s === 0) {\n h = NaN;\n } else {\n h = (r - g + (r - b)) / 2;\n h /= sqrt((r - g) * (r - g) + (r - b) * (g - b));\n h = acos(h);\n if (b > g) {\n h = TWOPI - h;\n }\n h /= TWOPI;\n }\n return [h * 360, s, i];\n};\n\nexport default rgb2hsi;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsl2rgb from './hsl2rgb.js';\nimport rgb2hsl from './rgb2hsl.js';\n\nColor.prototype.hsl = function () {\n return rgb2hsl(this._rgb);\n};\n\nchroma.hsl = (...args) => new Color(...args, 'hsl');\n\ninput.format.hsl = hsl2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsl');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsl';\n }\n }\n});\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsv2rgb from './hsv2rgb.js';\nimport rgb2hsv from './rgb2hsv.js';\n\nColor.prototype.hsv = function () {\n return rgb2hsv(this._rgb);\n};\n\nchroma.hsv = (...args) => new Color(...args, 'hsv');\n\ninput.format.hsv = hsv2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsv');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsv';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { floor } = Math;\n\nconst hsv2rgb = (...args) => {\n args = unpack(args, 'hsv');\n let [h, s, v] = args;\n let r, g, b;\n v *= 255;\n if (s === 0) {\n r = g = b = v;\n } else {\n if (h === 360) h = 0;\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 60;\n\n const i = floor(h);\n const f = h - i;\n const p = v * (1 - s);\n const q = v * (1 - s * f);\n const t = v * (1 - s * (1 - f));\n\n switch (i) {\n case 0:\n [r, g, b] = [v, t, p];\n break;\n case 1:\n [r, g, b] = [q, v, p];\n break;\n case 2:\n [r, g, b] = [p, v, t];\n break;\n case 3:\n [r, g, b] = [p, q, v];\n break;\n case 4:\n [r, g, b] = [t, p, v];\n break;\n case 5:\n [r, g, b] = [v, p, q];\n break;\n }\n }\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default hsv2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { min, max } = Math;\n\n/*\n * supported arguments:\n * - rgb2hsv(r,g,b)\n * - rgb2hsv([r,g,b])\n * - rgb2hsv({r,g,b})\n */\nconst rgb2hsl = (...args) => {\n args = unpack(args, 'rgb');\n let [r, g, b] = args;\n const min_ = min(r, g, b);\n const max_ = max(r, g, b);\n const delta = max_ - min_;\n let h, s, v;\n v = max_ / 255.0;\n if (max_ === 0) {\n h = Number.NaN;\n s = 0;\n } else {\n s = delta / max_;\n if (r === max_) h = (g - b) / delta;\n if (g === max_) h = 2 + (b - r) / delta;\n if (b === max_) h = 4 + (r - g) / delta;\n h *= 60;\n if (h < 0) h += 360;\n }\n return [h, s, v];\n};\n\nexport default rgb2hsl;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport lab2rgb from './lab2rgb.js';\nimport rgb2lab from './rgb2lab.js';\n\nColor.prototype.lab = function () {\n return rgb2lab(this._rgb);\n};\n\nchroma.lab = (...args) => new Color(...args, 'lab');\n\ninput.format.lab = lab2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'lab');\n if (type(args) === 'array' && args.length === 3) {\n return 'lab';\n }\n }\n});\n","import LAB_CONSTANTS from './lab-constants.js';\nimport { unpack } from '../../utils/index.js';\nconst { pow } = Math;\n\n/*\n * L* [0..100]\n * a [-100..100]\n * b [-100..100]\n */\nconst lab2rgb = (...args) => {\n args = unpack(args, 'lab');\n const [l, a, b] = args;\n let x, y, z, r, g, b_;\n\n y = (l + 16) / 116;\n x = isNaN(a) ? y : y + a / 500;\n z = isNaN(b) ? y : y - b / 200;\n\n y = LAB_CONSTANTS.Yn * lab_xyz(y);\n x = LAB_CONSTANTS.Xn * lab_xyz(x);\n z = LAB_CONSTANTS.Zn * lab_xyz(z);\n\n r = xyz_rgb(3.2404542 * x - 1.5371385 * y - 0.4985314 * z); // D65 -> sRGB\n g = xyz_rgb(-0.969266 * x + 1.8760108 * y + 0.041556 * z);\n b_ = xyz_rgb(0.0556434 * x - 0.2040259 * y + 1.0572252 * z);\n\n return [r, g, b_, args.length > 3 ? args[3] : 1];\n};\n\nconst xyz_rgb = (r) => {\n return 255 * (r <= 0.00304 ? 12.92 * r : 1.055 * pow(r, 1 / 2.4) - 0.055);\n};\n\nconst lab_xyz = (t) => {\n return t > LAB_CONSTANTS.t1\n ? t * t * t\n : LAB_CONSTANTS.t2 * (t - LAB_CONSTANTS.t0);\n};\n\nexport default lab2rgb;\n","export default {\n // Corresponds roughly to RGB brighter/darker\n Kn: 18,\n\n // D65 standard referent\n Xn: 0.95047,\n Yn: 1,\n Zn: 1.08883,\n\n t0: 0.137931034, // 4 / 29\n t1: 0.206896552, // 6 / 29\n t2: 0.12841855, // 3 * t1 * t1\n t3: 0.008856452 // t1 * t1 * t1\n};\n","import LAB_CONSTANTS from './lab-constants.js';\nimport { unpack } from '../../utils/index.js';\nconst { pow } = Math;\n\nconst rgb2lab = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [x, y, z] = rgb2xyz(r, g, b);\n const l = 116 * y - 16;\n return [l < 0 ? 0 : l, 500 * (x - y), 200 * (y - z)];\n};\n\nconst rgb_xyz = (r) => {\n if ((r /= 255) <= 0.04045) return r / 12.92;\n return pow((r + 0.055) / 1.055, 2.4);\n};\n\nconst xyz_lab = (t) => {\n if (t > LAB_CONSTANTS.t3) return pow(t, 1 / 3);\n return t / LAB_CONSTANTS.t2 + LAB_CONSTANTS.t0;\n};\n\nconst rgb2xyz = (r, g, b) => {\n r = rgb_xyz(r);\n g = rgb_xyz(g);\n b = rgb_xyz(b);\n const x = xyz_lab(\n (0.4124564 * r + 0.3575761 * g + 0.1804375 * b) / LAB_CONSTANTS.Xn\n );\n const y = xyz_lab(\n (0.2126729 * r + 0.7151522 * g + 0.072175 * b) / LAB_CONSTANTS.Yn\n );\n const z = xyz_lab(\n (0.0193339 * r + 0.119192 * g + 0.9503041 * b) / LAB_CONSTANTS.Zn\n );\n return [x, y, z];\n};\n\nexport default rgb2lab;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport lch2rgb from './lch2rgb.js';\nimport hcl2rgb from './hcl2rgb.js';\nimport rgb2lch from './rgb2lch.js';\n\nColor.prototype.lch = function () {\n return rgb2lch(this._rgb);\n};\nColor.prototype.hcl = function () {\n return rgb2lch(this._rgb).reverse();\n};\n\nchroma.lch = (...args) => new Color(...args, 'lch');\nchroma.hcl = (...args) => new Color(...args, 'hcl');\n\ninput.format.lch = lch2rgb;\ninput.format.hcl = hcl2rgb;\n['lch', 'hcl'].forEach((m) =>\n input.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, m);\n if (type(args) === 'array' && args.length === 3) {\n return m;\n }\n }\n })\n);\n","import { unpack } from '../../utils/index.js';\nimport lch2lab from './lch2lab.js';\nimport lab2rgb from '../lab/lab2rgb.js';\n\nconst lch2rgb = (...args) => {\n args = unpack(args, 'lch');\n const [l, c, h] = args;\n const [L, a, b_] = lch2lab(l, c, h);\n const [r, g, b] = lab2rgb(L, a, b_);\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default lch2rgb;\n","import { unpack, DEG2RAD } from '../../utils/index.js';\nconst { sin, cos } = Math;\n\nconst lch2lab = (...args) => {\n /*\n Convert from a qualitative parameter h and a quantitative parameter l to a 24-bit pixel.\n These formulas were invented by David Dalrymple to obtain maximum contrast without going\n out of gamut if the parameters are in the range 0-1.\n\n A saturation multiplier was added by Gregor Aisch\n */\n let [l, c, h] = unpack(args, 'lch');\n if (isNaN(h)) h = 0;\n h = h * DEG2RAD;\n return [l, cos(h) * c, sin(h) * c];\n};\n\nexport default lch2lab;\n","import { unpack } from '../../utils/index.js';\nimport lch2rgb from './lch2rgb.js';\n\nconst hcl2rgb = (...args) => {\n const hcl = unpack(args, 'hcl').reverse();\n return lch2rgb(...hcl);\n};\n\nexport default hcl2rgb;\n","import { unpack } from '../../utils/index.js';\nimport rgb2lab from '../lab/rgb2lab.js';\nimport lab2lch from './lab2lch.js';\n\nconst rgb2lch = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [l, a, b_] = rgb2lab(r, g, b);\n return lab2lch(l, a, b_);\n};\n\nexport default rgb2lch;\n","import { unpack, RAD2DEG } from '../../utils/index.js';\nconst { sqrt, atan2, round } = Math;\n\nconst lab2lch = (...args) => {\n const [l, a, b] = unpack(args, 'lab');\n const c = sqrt(a * a + b * b);\n let h = (atan2(b, a) * RAD2DEG + 360) % 360;\n if (round(c * 10000) === 0) h = Number.NaN;\n return [l, c, h];\n};\n\nexport default lab2lch;\n","import Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\n\nimport w3cx11 from '../../colors/w3cx11.js';\nimport hex2rgb from '../hex/hex2rgb.js';\nimport rgb2hex from '../hex/rgb2hex.js';\n\nColor.prototype.name = function () {\n const hex = rgb2hex(this._rgb, 'rgb');\n for (let n of Object.keys(w3cx11)) {\n if (w3cx11[n] === hex) return n.toLowerCase();\n }\n return hex;\n};\n\ninput.format.named = (name) => {\n name = name.toLowerCase();\n if (w3cx11[name]) return hex2rgb(w3cx11[name]);\n throw new Error('unknown color name: ' + name);\n};\n\ninput.autodetect.push({\n p: 5,\n test: (h, ...rest) => {\n if (!rest.length && type(h) === 'string' && w3cx11[h.toLowerCase()]) {\n return 'named';\n }\n }\n});\n","/**\n\tX11 color names\n\n\thttp://www.w3.org/TR/css3-color/#svg-color\n*/\n\nconst w3cx11 = {\n aliceblue: '#f0f8ff',\n antiquewhite: '#faebd7',\n aqua: '#00ffff',\n aquamarine: '#7fffd4',\n azure: '#f0ffff',\n beige: '#f5f5dc',\n bisque: '#ffe4c4',\n black: '#000000',\n blanchedalmond: '#ffebcd',\n blue: '#0000ff',\n blueviolet: '#8a2be2',\n brown: '#a52a2a',\n burlywood: '#deb887',\n cadetblue: '#5f9ea0',\n chartreuse: '#7fff00',\n chocolate: '#d2691e',\n coral: '#ff7f50',\n cornflowerblue: '#6495ed',\n cornsilk: '#fff8dc',\n crimson: '#dc143c',\n cyan: '#00ffff',\n darkblue: '#00008b',\n darkcyan: '#008b8b',\n darkgoldenrod: '#b8860b',\n darkgray: '#a9a9a9',\n darkgreen: '#006400',\n darkgrey: '#a9a9a9',\n darkkhaki: '#bdb76b',\n darkmagenta: '#8b008b',\n darkolivegreen: '#556b2f',\n darkorange: '#ff8c00',\n darkorchid: '#9932cc',\n darkred: '#8b0000',\n darksalmon: '#e9967a',\n darkseagreen: '#8fbc8f',\n darkslateblue: '#483d8b',\n darkslategray: '#2f4f4f',\n darkslategrey: '#2f4f4f',\n darkturquoise: '#00ced1',\n darkviolet: '#9400d3',\n deeppink: '#ff1493',\n deepskyblue: '#00bfff',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1e90ff',\n firebrick: '#b22222',\n floralwhite: '#fffaf0',\n forestgreen: '#228b22',\n fuchsia: '#ff00ff',\n gainsboro: '#dcdcdc',\n ghostwhite: '#f8f8ff',\n gold: '#ffd700',\n goldenrod: '#daa520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#adff2f',\n grey: '#808080',\n honeydew: '#f0fff0',\n hotpink: '#ff69b4',\n indianred: '#cd5c5c',\n indigo: '#4b0082',\n ivory: '#fffff0',\n khaki: '#f0e68c',\n laserlemon: '#ffff54',\n lavender: '#e6e6fa',\n lavenderblush: '#fff0f5',\n lawngreen: '#7cfc00',\n lemonchiffon: '#fffacd',\n lightblue: '#add8e6',\n lightcoral: '#f08080',\n lightcyan: '#e0ffff',\n lightgoldenrod: '#fafad2',\n lightgoldenrodyellow: '#fafad2',\n lightgray: '#d3d3d3',\n lightgreen: '#90ee90',\n lightgrey: '#d3d3d3',\n lightpink: '#ffb6c1',\n lightsalmon: '#ffa07a',\n lightseagreen: '#20b2aa',\n lightskyblue: '#87cefa',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#b0c4de',\n lightyellow: '#ffffe0',\n lime: '#00ff00',\n limegreen: '#32cd32',\n linen: '#faf0e6',\n magenta: '#ff00ff',\n maroon: '#800000',\n maroon2: '#7f0000',\n maroon3: '#b03060',\n mediumaquamarine: '#66cdaa',\n mediumblue: '#0000cd',\n mediumorchid: '#ba55d3',\n mediumpurple: '#9370db',\n mediumseagreen: '#3cb371',\n mediumslateblue: '#7b68ee',\n mediumspringgreen: '#00fa9a',\n mediumturquoise: '#48d1cc',\n mediumvioletred: '#c71585',\n midnightblue: '#191970',\n mintcream: '#f5fffa',\n mistyrose: '#ffe4e1',\n moccasin: '#ffe4b5',\n navajowhite: '#ffdead',\n navy: '#000080',\n oldlace: '#fdf5e6',\n olive: '#808000',\n olivedrab: '#6b8e23',\n orange: '#ffa500',\n orangered: '#ff4500',\n orchid: '#da70d6',\n palegoldenrod: '#eee8aa',\n palegreen: '#98fb98',\n paleturquoise: '#afeeee',\n palevioletred: '#db7093',\n papayawhip: '#ffefd5',\n peachpuff: '#ffdab9',\n peru: '#cd853f',\n pink: '#ffc0cb',\n plum: '#dda0dd',\n powderblue: '#b0e0e6',\n purple: '#800080',\n purple2: '#7f007f',\n purple3: '#a020f0',\n rebeccapurple: '#663399',\n red: '#ff0000',\n rosybrown: '#bc8f8f',\n royalblue: '#4169e1',\n saddlebrown: '#8b4513',\n salmon: '#fa8072',\n sandybrown: '#f4a460',\n seagreen: '#2e8b57',\n seashell: '#fff5ee',\n sienna: '#a0522d',\n silver: '#c0c0c0',\n skyblue: '#87ceeb',\n slateblue: '#6a5acd',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#fffafa',\n springgreen: '#00ff7f',\n steelblue: '#4682b4',\n tan: '#d2b48c',\n teal: '#008080',\n thistle: '#d8bfd8',\n tomato: '#ff6347',\n turquoise: '#40e0d0',\n violet: '#ee82ee',\n wheat: '#f5deb3',\n white: '#ffffff',\n whitesmoke: '#f5f5f5',\n yellow: '#ffff00',\n yellowgreen: '#9acd32'\n};\n\nexport default w3cx11;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\nimport num2rgb from './num2rgb.js';\nimport rgb2num from './rgb2num.js';\n\nColor.prototype.num = function () {\n return rgb2num(this._rgb);\n};\n\nchroma.num = (...args) => new Color(...args, 'num');\n\ninput.format.num = num2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (...args) => {\n if (\n args.length === 1 &&\n type(args[0]) === 'number' &&\n args[0] >= 0 &&\n args[0] <= 0xffffff\n ) {\n return 'num';\n }\n }\n});\n","import { type } from '../../utils/index.js';\n\nconst num2rgb = (num) => {\n if (type(num) == 'number' && num >= 0 && num <= 0xffffff) {\n const r = num >> 16;\n const g = (num >> 8) & 0xff;\n const b = num & 0xff;\n return [r, g, b, 1];\n }\n throw new Error('unknown num color: ' + num);\n};\n\nexport default num2rgb;\n","import { unpack } from '../../utils/index.js';\n\nconst rgb2num = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n return (r << 16) + (g << 8) + b;\n};\n\nexport default rgb2num;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { unpack, type } from '../../utils/index.js';\nconst { round } = Math;\n\nColor.prototype.rgb = function (rnd = true) {\n if (rnd === false) return this._rgb.slice(0, 3);\n return this._rgb.slice(0, 3).map(round);\n};\n\nColor.prototype.rgba = function (rnd = true) {\n return this._rgb.slice(0, 4).map((v, i) => {\n return i < 3 ? (rnd === false ? v : round(v)) : v;\n });\n};\n\nchroma.rgb = (...args) => new Color(...args, 'rgb');\n\ninput.format.rgb = (...args) => {\n const rgba = unpack(args, 'rgba');\n if (rgba[3] === undefined) rgba[3] = 1;\n return rgba;\n};\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'rgba');\n if (\n type(args) === 'array' &&\n (args.length === 3 ||\n (args.length === 4 &&\n type(args[3]) == 'number' &&\n args[3] >= 0 &&\n args[3] <= 1))\n ) {\n return 'rgb';\n }\n }\n});\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport temperature2rgb from './temperature2rgb.js';\nimport rgb2temperature from './rgb2temperature.js';\n\nColor.prototype.temp =\n Color.prototype.kelvin =\n Color.prototype.temperature =\n function () {\n return rgb2temperature(this._rgb);\n };\n\nchroma.temp =\n chroma.kelvin =\n chroma.temperature =\n (...args) => new Color(...args, 'temp');\n\ninput.format.temp =\n input.format.kelvin =\n input.format.temperature =\n temperature2rgb;\n","/*\n * Based on implementation by Neil Bartlett\n * https://github.com/neilbartlett/color-temperature\n */\n\nconst { log } = Math;\n\nconst temperature2rgb = (kelvin) => {\n const temp = kelvin / 100;\n let r, g, b;\n if (temp < 66) {\n r = 255;\n g =\n temp < 6\n ? 0\n : -155.25485562709179 -\n 0.44596950469579133 * (g = temp - 2) +\n 104.49216199393888 * log(g);\n b =\n temp < 20\n ? 0\n : -254.76935184120902 +\n 0.8274096064007395 * (b = temp - 10) +\n 115.67994401066147 * log(b);\n } else {\n r =\n 351.97690566805693 +\n 0.114206453784165 * (r = temp - 55) -\n 40.25366309332127 * log(r);\n g =\n 325.4494125711974 +\n 0.07943456536662342 * (g = temp - 50) -\n 28.0852963507957 * log(g);\n b = 255;\n }\n return [r, g, b, 1];\n};\n\nexport default temperature2rgb;\n","/*\n * Based on implementation by Neil Bartlett\n * https://github.com/neilbartlett/color-temperature\n **/\n\nimport temperature2rgb from './temperature2rgb.js';\nimport { unpack } from '../../utils/index.js';\nconst { round } = Math;\n\nconst rgb2temperature = (...args) => {\n const rgb = unpack(args, 'rgb');\n const r = rgb[0],\n b = rgb[2];\n let minTemp = 1000;\n let maxTemp = 40000;\n const eps = 0.4;\n let temp;\n while (maxTemp - minTemp > eps) {\n temp = (maxTemp + minTemp) * 0.5;\n const rgb = temperature2rgb(temp);\n if (rgb[2] / rgb[0] >= b / r) {\n maxTemp = temp;\n } else {\n minTemp = temp;\n }\n }\n return round(temp);\n};\n\nexport default rgb2temperature;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport oklab2rgb from './oklab2rgb.js';\nimport rgb2oklab from './rgb2oklab.js';\n\nColor.prototype.oklab = function () {\n return rgb2oklab(this._rgb);\n};\n\nchroma.oklab = (...args) => new Color(...args, 'oklab');\n\ninput.format.oklab = oklab2rgb;\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'oklab');\n if (type(args) === 'array' && args.length === 3) {\n return 'oklab';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { pow, sign } = Math;\n\n/*\n * L* [0..100]\n * a [-100..100]\n * b [-100..100]\n */\nconst oklab2rgb = (...args) => {\n args = unpack(args, 'lab');\n const [L, a, b] = args;\n\n const l = pow(L + 0.3963377774 * a + 0.2158037573 * b, 3);\n const m = pow(L - 0.1055613458 * a - 0.0638541728 * b, 3);\n const s = pow(L - 0.0894841775 * a - 1.291485548 * b, 3);\n\n return [\n 255 * lrgb2rgb(+4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s),\n 255 * lrgb2rgb(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),\n 255 * lrgb2rgb(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s),\n args.length > 3 ? args[3] : 1\n ];\n};\n\nexport default oklab2rgb;\n\nfunction lrgb2rgb(c) {\n const abs = Math.abs(c);\n if (abs > 0.0031308) {\n return (sign(c) || 1) * (1.055 * pow(abs, 1 / 2.4) - 0.055);\n }\n return c * 12.92;\n}\n","import { unpack } from '../../utils/index.js';\nconst { cbrt, pow, sign } = Math;\n\nconst rgb2oklab = (...args) => {\n // OKLab color space implementation taken from\n // https://bottosson.github.io/posts/oklab/\n const [r, g, b] = unpack(args, 'rgb');\n const [lr, lg, lb] = [\n rgb2lrgb(r / 255),\n rgb2lrgb(g / 255),\n rgb2lrgb(b / 255)\n ];\n const l = cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);\n const m = cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);\n const s = cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);\n\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s\n ];\n};\n\nexport default rgb2oklab;\n\nfunction rgb2lrgb(c) {\n const abs = Math.abs(c);\n if (abs < 0.04045) {\n return c / 12.92;\n }\n return (sign(c) || 1) * pow((abs + 0.055) / 1.055, 2.4);\n}\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport oklch2rgb from './oklch2rgb.js';\nimport rgb2oklch from './rgb2oklch.js';\n\nColor.prototype.oklch = function () {\n return rgb2oklch(this._rgb);\n};\n\nchroma.oklch = (...args) => new Color(...args, 'oklch');\n\ninput.format.oklch = oklch2rgb;\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'oklch');\n if (type(args) === 'array' && args.length === 3) {\n return 'oklch';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nimport lch2lab from '../lch/lch2lab.js';\nimport oklab2rgb from '../oklab/oklab2rgb.js';\n\nconst oklch2rgb = (...args) => {\n args = unpack(args, 'lch');\n const [l, c, h] = args;\n const [L, a, b_] = lch2lab(l, c, h);\n const [r, g, b] = oklab2rgb(L, a, b_);\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default oklch2rgb;\n","import { unpack } from '../../utils/index.js';\nimport rgb2oklab from '../oklab/rgb2oklab.js';\nimport lab2lch from '../lch/lab2lch.js';\n\nconst rgb2oklch = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [l, a, b_] = rgb2oklab(r, g, b);\n return lab2lch(l, a, b_);\n};\n\nexport default rgb2oklch;\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.alpha = function (a, mutate = false) {\n if (a !== undefined && type(a) === 'number') {\n if (mutate) {\n this._rgb[3] = a;\n return this;\n }\n return new Color([this._rgb[0], this._rgb[1], this._rgb[2], a], 'rgb');\n }\n return this._rgb[3];\n};\n","import Color from '../Color.js';\n\nColor.prototype.clipped = function () {\n return this._rgb._clipped || false;\n};\n","import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.darken = function (amount = 1) {\n const me = this;\n const lab = me.lab();\n lab[0] -= LAB_CONSTANTS.Kn * amount;\n return new Color(lab, 'lab').alpha(me.alpha(), true);\n};\n\nColor.prototype.brighten = function (amount = 1) {\n return this.darken(-amount);\n};\n\nColor.prototype.darker = Color.prototype.darken;\nColor.prototype.brighter = Color.prototype.brighten;\n","import Color from '../Color.js';\n\nColor.prototype.get = function (mc) {\n const [mode, channel] = mc.split('.');\n const src = this[mode]();\n if (channel) {\n const i = mode.indexOf(channel) - (mode.substr(0, 2) === 'ok' ? 2 : 0);\n if (i > -1) return src[i];\n throw new Error(`unknown channel ${channel} in mode ${mode}`);\n } else {\n return src;\n }\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\nconst { pow } = Math;\n\nconst EPS = 1e-7;\nconst MAX_ITER = 20;\n\nColor.prototype.luminance = function (lum, mode = 'rgb') {\n if (lum !== undefined && type(lum) === 'number') {\n if (lum === 0) {\n // return pure black\n return new Color([0, 0, 0, this._rgb[3]], 'rgb');\n }\n if (lum === 1) {\n // return pure white\n return new Color([255, 255, 255, this._rgb[3]], 'rgb');\n }\n // compute new color using...\n let cur_lum = this.luminance();\n let max_iter = MAX_ITER;\n\n const test = (low, high) => {\n const mid = low.interpolate(high, 0.5, mode);\n const lm = mid.luminance();\n if (Math.abs(lum - lm) < EPS || !max_iter--) {\n // close enough\n return mid;\n }\n return lm > lum ? test(low, mid) : test(mid, high);\n };\n\n const rgb = (\n cur_lum > lum\n ? test(new Color([0, 0, 0]), this)\n : test(this, new Color([255, 255, 255]))\n ).rgb();\n return new Color([...rgb, this._rgb[3]]);\n }\n return rgb2luminance(...this._rgb.slice(0, 3));\n};\n\nconst rgb2luminance = (r, g, b) => {\n // relative luminance\n // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n r = luminance_x(r);\n g = luminance_x(g);\n b = luminance_x(b);\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\n};\n\nconst luminance_x = (x) => {\n x /= 255;\n return x <= 0.03928 ? x / 12.92 : pow((x + 0.055) / 1.055, 2.4);\n};\n","import Color from '../Color.js';\nimport mix from '../generator/mix.js';\n\nColor.prototype.mix = Color.prototype.interpolate = function (\n col2,\n f = 0.5,\n ...rest\n) {\n return mix(this, col2, f, ...rest);\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\nimport interpolator from '../interpolator/index.js';\n\nexport default (col1, col2, f = 0.5, ...rest) => {\n let mode = rest[0] || 'lrgb';\n if (!interpolator[mode] && !rest.length) {\n // fall back to the first supported mode\n mode = Object.keys(interpolator)[0];\n }\n if (!interpolator[mode]) {\n throw new Error(`interpolation mode ${mode} is not defined`);\n }\n if (type(col1) !== 'object') col1 = new Color(col1);\n if (type(col2) !== 'object') col2 = new Color(col2);\n return interpolator[mode](col1, col2, f).alpha(\n col1.alpha() + f * (col2.alpha() - col1.alpha())\n );\n};\n","export default {};\n","import Color from '../Color.js';\n\nColor.prototype.premultiply = function (mutate = false) {\n const rgb = this._rgb;\n const a = rgb[3];\n if (mutate) {\n this._rgb = [rgb[0] * a, rgb[1] * a, rgb[2] * a, a];\n return this;\n } else {\n return new Color([rgb[0] * a, rgb[1] * a, rgb[2] * a, a], 'rgb');\n }\n};\n","import '../io/lch/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.saturate = function (amount = 1) {\n const me = this;\n const lch = me.lch();\n lch[1] += LAB_CONSTANTS.Kn * amount;\n if (lch[1] < 0) lch[1] = 0;\n return new Color(lch, 'lch').alpha(me.alpha(), true);\n};\n\nColor.prototype.desaturate = function (amount = 1) {\n return this.saturate(-amount);\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.set = function (mc, value, mutate = false) {\n const [mode, channel] = mc.split('.');\n const src = this[mode]();\n if (channel) {\n const i = mode.indexOf(channel) - (mode.substr(0, 2) === 'ok' ? 2 : 0);\n if (i > -1) {\n if (type(value) == 'string') {\n switch (value.charAt(0)) {\n case '+':\n src[i] += +value;\n break;\n case '-':\n src[i] += +value;\n break;\n case '*':\n src[i] *= +value.substr(1);\n break;\n case '/':\n src[i] /= +value.substr(1);\n break;\n default:\n src[i] = +value;\n }\n } else if (type(value) === 'number') {\n src[i] = value;\n } else {\n throw new Error(`unsupported value for Color.set`);\n }\n const out = new Color(src, mode);\n if (mutate) {\n this._rgb = out._rgb;\n return this;\n }\n return out;\n }\n throw new Error(`unknown channel ${channel} in mode ${mode}`);\n } else {\n return src;\n }\n};\n","import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport mix from '../generator/mix.js';\n\nColor.prototype.tint = function (f = 0.5, ...rest) {\n return mix(this, 'white', f, ...rest);\n};\n\nColor.prototype.shade = function (f = 0.5, ...rest) {\n return mix(this, 'black', f, ...rest);\n};\n","import Color from '../Color.js';\nimport index from './index.js';\n\nconst rgb = (col1, col2, f) => {\n const xyz0 = col1._rgb;\n const xyz1 = col2._rgb;\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'rgb'\n );\n};\n\n// register interpolator\nindex.rgb = rgb;\n\nexport default rgb;\n","import Color from '../Color.js';\nconst { sqrt, pow } = Math;\nimport index from './index.js';\n\nconst lrgb = (col1, col2, f) => {\n const [x1, y1, z1] = col1._rgb;\n const [x2, y2, z2] = col2._rgb;\n return new Color(\n sqrt(pow(x1, 2) * (1 - f) + pow(x2, 2) * f),\n sqrt(pow(y1, 2) * (1 - f) + pow(y2, 2) * f),\n sqrt(pow(z1, 2) * (1 - f) + pow(z2, 2) * f),\n 'rgb'\n );\n};\n\n// register interpolator\nindex.lrgb = lrgb;\n\nexport default lrgb;\n","import '../io/lab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst lab = (col1, col2, f) => {\n const xyz0 = col1.lab();\n const xyz1 = col2.lab();\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'lab'\n );\n};\n\n// register interpolator\nindex.lab = lab;\n\nexport default lab;\n","import '../io/lch/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst lch = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'lch');\n};\n\n// register interpolator\nindex.lch = lch;\nindex.hcl = lch;\n\nexport default lch;\n","import Color from '../Color.js';\n\nexport default (col1, col2, f, m) => {\n let xyz0, xyz1;\n if (m === 'hsl') {\n xyz0 = col1.hsl();\n xyz1 = col2.hsl();\n } else if (m === 'hsv') {\n xyz0 = col1.hsv();\n xyz1 = col2.hsv();\n } else if (m === 'hcg') {\n xyz0 = col1.hcg();\n xyz1 = col2.hcg();\n } else if (m === 'hsi') {\n xyz0 = col1.hsi();\n xyz1 = col2.hsi();\n } else if (m === 'lch' || m === 'hcl') {\n m = 'hcl';\n xyz0 = col1.hcl();\n xyz1 = col2.hcl();\n } else if (m === 'oklch') {\n xyz0 = col1.oklch().reverse();\n xyz1 = col2.oklch().reverse();\n }\n\n let hue0, hue1, sat0, sat1, lbv0, lbv1;\n if (m.substr(0, 1) === 'h' || m === 'oklch') {\n [hue0, sat0, lbv0] = xyz0;\n [hue1, sat1, lbv1] = xyz1;\n }\n\n let sat, hue, lbv, dh;\n\n if (!isNaN(hue0) && !isNaN(hue1)) {\n // both colors have hue\n if (hue1 > hue0 && hue1 - hue0 > 180) {\n dh = hue1 - (hue0 + 360);\n } else if (hue1 < hue0 && hue0 - hue1 > 180) {\n dh = hue1 + 360 - hue0;\n } else {\n dh = hue1 - hue0;\n }\n hue = hue0 + f * dh;\n } else if (!isNaN(hue0)) {\n hue = hue0;\n if ((lbv1 == 1 || lbv1 == 0) && m != 'hsv') sat = sat0;\n } else if (!isNaN(hue1)) {\n hue = hue1;\n if ((lbv0 == 1 || lbv0 == 0) && m != 'hsv') sat = sat1;\n } else {\n hue = Number.NaN;\n }\n\n if (sat === undefined) sat = sat0 + f * (sat1 - sat0);\n lbv = lbv0 + f * (lbv1 - lbv0);\n return m === 'oklch'\n ? new Color([lbv, sat, hue], m)\n : new Color([hue, sat, lbv], m);\n};\n","import '../io/num/index.js';\nimport index from './index.js';\n\nimport Color from '../Color.js';\n\nconst num = (col1, col2, f) => {\n const c1 = col1.num();\n const c2 = col2.num();\n return new Color(c1 + f * (c2 - c1), 'num');\n};\n\n// register interpolator\nindex.num = num;\n\nexport default num;\n","import '../io/hcg/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hcg = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hcg');\n};\n\n// register interpolator\nindex.hcg = hcg;\n\nexport default hcg;\n","import '../io/hsi/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsi = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsi');\n};\n\n// register interpolator\nindex.hsi = hsi;\n\nexport default hsi;\n","import '../io/hsl/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsl = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsl');\n};\n\n// register interpolator\nindex.hsl = hsl;\n\nexport default hsl;\n","import '../io/hsv/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsv = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsv');\n};\n\n// register interpolator\nindex.hsv = hsv;\n\nexport default hsv;\n","import '../io/oklab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst oklab = (col1, col2, f) => {\n const xyz0 = col1.oklab();\n const xyz1 = col2.oklab();\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'oklab'\n );\n};\n\n// register interpolator\nindex.oklab = oklab;\n\nexport default oklab;\n","import '../io/lch/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst oklch = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'oklch');\n};\n\n// register interpolator\nindex.oklch = oklch;\n\nexport default oklch;\n","import Color from '../Color.js';\nimport { clip_rgb } from '../utils/index.js';\n\nconst { pow, sqrt, PI, cos, sin, atan2 } = Math;\n\nexport default (colors, mode = 'lrgb', weights = null) => {\n const l = colors.length;\n if (!weights) weights = Array.from(new Array(l)).map(() => 1);\n // normalize weights\n const k =\n l /\n weights.reduce(function (a, b) {\n return a + b;\n });\n weights.forEach((w, i) => {\n weights[i] *= k;\n });\n // convert colors to Color objects\n colors = colors.map((c) => new Color(c));\n if (mode === 'lrgb') {\n return _average_lrgb(colors, weights);\n }\n const first = colors.shift();\n const xyz = first.get(mode);\n const cnt = [];\n let dx = 0;\n let dy = 0;\n // initial color\n for (let i = 0; i < xyz.length; i++) {\n xyz[i] = (xyz[i] || 0) * weights[0];\n cnt.push(isNaN(xyz[i]) ? 0 : weights[0]);\n if (mode.charAt(i) === 'h' && !isNaN(xyz[i])) {\n const A = (xyz[i] / 180) * PI;\n dx += cos(A) * weights[0];\n dy += sin(A) * weights[0];\n }\n }\n\n let alpha = first.alpha() * weights[0];\n colors.forEach((c, ci) => {\n const xyz2 = c.get(mode);\n alpha += c.alpha() * weights[ci + 1];\n for (let i = 0; i < xyz.length; i++) {\n if (!isNaN(xyz2[i])) {\n cnt[i] += weights[ci + 1];\n if (mode.charAt(i) === 'h') {\n const A = (xyz2[i] / 180) * PI;\n dx += cos(A) * weights[ci + 1];\n dy += sin(A) * weights[ci + 1];\n } else {\n xyz[i] += xyz2[i] * weights[ci + 1];\n }\n }\n }\n });\n\n for (let i = 0; i < xyz.length; i++) {\n if (mode.charAt(i) === 'h') {\n let A = (atan2(dy / cnt[i], dx / cnt[i]) / PI) * 180;\n while (A < 0) A += 360;\n while (A >= 360) A -= 360;\n xyz[i] = A;\n } else {\n xyz[i] = xyz[i] / cnt[i];\n }\n }\n alpha /= l;\n return new Color(xyz, mode).alpha(alpha > 0.99999 ? 1 : alpha, true);\n};\n\nconst _average_lrgb = (colors, weights) => {\n const l = colors.length;\n const xyz = [0, 0, 0, 0];\n for (let i = 0; i < colors.length; i++) {\n const col = colors[i];\n const f = weights[i] / l;\n const rgb = col._rgb;\n xyz[0] += pow(rgb[0], 2) * f;\n xyz[1] += pow(rgb[1], 2) * f;\n xyz[2] += pow(rgb[2], 2) * f;\n xyz[3] += rgb[3] * f;\n }\n xyz[0] = sqrt(xyz[0]);\n xyz[1] = sqrt(xyz[1]);\n xyz[2] = sqrt(xyz[2]);\n if (xyz[3] > 0.9999999) xyz[3] = 1;\n return new Color(clip_rgb(xyz));\n};\n","//\n// interpolates between a set of colors uzing a bezier spline\n//\n\n// @requires utils lab\nimport Color from '../Color.js';\nimport '../io/lab/index.js';\nimport scale from './scale.js';\n\n// nth row of the pascal triangle\nconst binom_row = function (n) {\n let row = [1, 1];\n for (let i = 1; i < n; i++) {\n let newrow = [1];\n for (let j = 1; j <= row.length; j++) {\n newrow[j] = (row[j] || 0) + row[j - 1];\n }\n row = newrow;\n }\n return row;\n};\n\nconst bezier = function (colors) {\n let I, lab0, lab1, lab2;\n colors = colors.map((c) => new Color(c));\n if (colors.length === 2) {\n // linear interpolation\n [lab0, lab1] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map((i) => lab0[i] + t * (lab1[i] - lab0[i]));\n return new Color(lab, 'lab');\n };\n } else if (colors.length === 3) {\n // quadratic bezier interpolation\n [lab0, lab1, lab2] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map(\n (i) =>\n (1 - t) * (1 - t) * lab0[i] +\n 2 * (1 - t) * t * lab1[i] +\n t * t * lab2[i]\n );\n return new Color(lab, 'lab');\n };\n } else if (colors.length === 4) {\n // cubic bezier interpolation\n let lab3;\n [lab0, lab1, lab2, lab3] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map(\n (i) =>\n (1 - t) * (1 - t) * (1 - t) * lab0[i] +\n 3 * (1 - t) * (1 - t) * t * lab1[i] +\n 3 * (1 - t) * t * t * lab2[i] +\n t * t * t * lab3[i]\n );\n return new Color(lab, 'lab');\n };\n } else if (colors.length >= 5) {\n // general case (degree n bezier)\n let labs, row, n;\n labs = colors.map((c) => c.lab());\n n = colors.length - 1;\n row = binom_row(n);\n I = function (t) {\n const u = 1 - t;\n const lab = [0, 1, 2].map((i) =>\n labs.reduce(\n (sum, el, j) =>\n sum + row[j] * u ** (n - j) * t ** j * el[i],\n 0\n )\n );\n return new Color(lab, 'lab');\n };\n } else {\n throw new RangeError('No point in running bezier with only one color.');\n }\n return I;\n};\n\nexport default (colors) => {\n const f = bezier(colors);\n f.scale = () => scale(f);\n return f;\n};\n","// minimal multi-purpose interface\n\n// @requires utils color analyze\nimport chroma from '../chroma.js';\nimport { limit, type } from '../utils/index.js';\n\nconst { pow } = Math;\n\nexport default function (colors) {\n // constructor\n let _mode = 'rgb';\n let _nacol = chroma('#ccc');\n let _spread = 0;\n // const _fixed = false;\n let _domain = [0, 1];\n let _pos = [];\n let _padding = [0, 0];\n let _classes = false;\n let _colors = [];\n let _out = false;\n let _min = 0;\n let _max = 1;\n let _correctLightness = false;\n let _colorCache = {};\n let _useCache = true;\n let _gamma = 1;\n\n // private methods\n\n const setColors = function (colors) {\n colors = colors || ['#fff', '#000'];\n if (\n colors &&\n type(colors) === 'string' &&\n chroma.brewer &&\n chroma.brewer[colors.toLowerCase()]\n ) {\n colors = chroma.brewer[colors.toLowerCase()];\n }\n if (type(colors) === 'array') {\n // handle single color\n if (colors.length === 1) {\n colors = [colors[0], colors[0]];\n }\n // make a copy of the colors\n colors = colors.slice(0);\n // convert to chroma classes\n for (let c = 0; c < colors.length; c++) {\n colors[c] = chroma(colors[c]);\n }\n // auto-fill color position\n _pos.length = 0;\n for (let c = 0; c < colors.length; c++) {\n _pos.push(c / (colors.length - 1));\n }\n }\n resetCache();\n return (_colors = colors);\n };\n\n const getClass = function (value) {\n if (_classes != null) {\n const n = _classes.length - 1;\n let i = 0;\n while (i < n && value >= _classes[i]) {\n i++;\n }\n return i - 1;\n }\n return 0;\n };\n\n let tMapLightness = (t) => t;\n let tMapDomain = (t) => t;\n\n // const classifyValue = function(value) {\n // let val = value;\n // if (_classes.length > 2) {\n // const n = _classes.length-1;\n // const i = getClass(value);\n // const minc = _classes[0] + ((_classes[1]-_classes[0]) * (0 + (_spread * 0.5))); // center of 1st class\n // const maxc = _classes[n-1] + ((_classes[n]-_classes[n-1]) * (1 - (_spread * 0.5))); // center of last class\n // val = _min + ((((_classes[i] + ((_classes[i+1] - _classes[i]) * 0.5)) - minc) / (maxc-minc)) * (_max - _min));\n // }\n // return val;\n // };\n\n const getColor = function (val, bypassMap) {\n let col, t;\n if (bypassMap == null) {\n bypassMap = false;\n }\n if (isNaN(val) || val === null) {\n return _nacol;\n }\n if (!bypassMap) {\n if (_classes && _classes.length > 2) {\n // find the class\n const c = getClass(val);\n t = c / (_classes.length - 2);\n } else if (_max !== _min) {\n // just interpolate between min/max\n t = (val - _min) / (_max - _min);\n } else {\n t = 1;\n }\n } else {\n t = val;\n }\n\n // domain map\n t = tMapDomain(t);\n\n if (!bypassMap) {\n t = tMapLightness(t); // lightness correction\n }\n\n if (_gamma !== 1) {\n t = pow(t, _gamma);\n }\n\n t = _padding[0] + t * (1 - _padding[0] - _padding[1]);\n\n t = limit(t, 0, 1);\n\n const k = Math.floor(t * 10000);\n\n if (_useCache && _colorCache[k]) {\n col = _colorCache[k];\n } else {\n if (type(_colors) === 'array') {\n //for i in [0.._pos.length-1]\n for (let i = 0; i < _pos.length; i++) {\n const p = _pos[i];\n if (t <= p) {\n col = _colors[i];\n break;\n }\n if (t >= p && i === _pos.length - 1) {\n col = _colors[i];\n break;\n }\n if (t > p && t < _pos[i + 1]) {\n t = (t - p) / (_pos[i + 1] - p);\n col = chroma.interpolate(\n _colors[i],\n _colors[i + 1],\n t,\n _mode\n );\n break;\n }\n }\n } else if (type(_colors) === 'function') {\n col = _colors(t);\n }\n if (_useCache) {\n _colorCache[k] = col;\n }\n }\n return col;\n };\n\n var resetCache = () => (_colorCache = {});\n\n setColors(colors);\n\n // public interface\n\n const f = function (v) {\n const c = chroma(getColor(v));\n if (_out && c[_out]) {\n return c[_out]();\n } else {\n return c;\n }\n };\n\n f.classes = function (classes) {\n if (classes != null) {\n if (type(classes) === 'array') {\n _classes = classes;\n _domain = [classes[0], classes[classes.length - 1]];\n } else {\n const d = chroma.analyze(_domain);\n if (classes === 0) {\n _classes = [d.min, d.max];\n } else {\n _classes = chroma.limits(d, 'e', classes);\n }\n }\n return f;\n }\n return _classes;\n };\n\n f.domain = function (domain) {\n if (!arguments.length) {\n return _domain;\n }\n _min = domain[0];\n _max = domain[domain.length - 1];\n _pos = [];\n const k = _colors.length;\n if (domain.length === k && _min !== _max) {\n // update positions\n for (let d of Array.from(domain)) {\n _pos.push((d - _min) / (_max - _min));\n }\n } else {\n for (let c = 0; c < k; c++) {\n _pos.push(c / (k - 1));\n }\n if (domain.length > 2) {\n // set domain map\n const tOut = domain.map((d, i) => i / (domain.length - 1));\n const tBreaks = domain.map((d) => (d - _min) / (_max - _min));\n if (!tBreaks.every((val, i) => tOut[i] === val)) {\n tMapDomain = (t) => {\n if (t <= 0 || t >= 1) return t;\n let i = 0;\n while (t >= tBreaks[i + 1]) i++;\n const f =\n (t - tBreaks[i]) / (tBreaks[i + 1] - tBreaks[i]);\n const out = tOut[i] + f * (tOut[i + 1] - tOut[i]);\n return out;\n };\n }\n }\n }\n _domain = [_min, _max];\n return f;\n };\n\n f.mode = function (_m) {\n if (!arguments.length) {\n return _mode;\n }\n _mode = _m;\n resetCache();\n return f;\n };\n\n f.range = function (colors, _pos) {\n setColors(colors, _pos);\n return f;\n };\n\n f.out = function (_o) {\n _out = _o;\n return f;\n };\n\n f.spread = function (val) {\n if (!arguments.length) {\n return _spread;\n }\n _spread = val;\n return f;\n };\n\n f.correctLightness = function (v) {\n if (v == null) {\n v = true;\n }\n _correctLightness = v;\n resetCache();\n if (_correctLightness) {\n tMapLightness = function (t) {\n const L0 = getColor(0, true).lab()[0];\n const L1 = getColor(1, true).lab()[0];\n const pol = L0 > L1;\n let L_actual = getColor(t, true).lab()[0];\n const L_ideal = L0 + (L1 - L0) * t;\n let L_diff = L_actual - L_ideal;\n let t0 = 0;\n let t1 = 1;\n let max_iter = 20;\n while (Math.abs(L_diff) > 1e-2 && max_iter-- > 0) {\n (function () {\n if (pol) {\n L_diff *= -1;\n }\n if (L_diff < 0) {\n t0 = t;\n t += (t1 - t) * 0.5;\n } else {\n t1 = t;\n t += (t0 - t) * 0.5;\n }\n L_actual = getColor(t, true).lab()[0];\n return (L_diff = L_actual - L_ideal);\n })();\n }\n return t;\n };\n } else {\n tMapLightness = (t) => t;\n }\n return f;\n };\n\n f.padding = function (p) {\n if (p != null) {\n if (type(p) === 'number') {\n p = [p, p];\n }\n _padding = p;\n return f;\n } else {\n return _padding;\n }\n };\n\n f.colors = function (numColors, out) {\n // If no arguments are given, return the original colors that were provided\n if (arguments.length < 2) {\n out = 'hex';\n }\n let result = [];\n\n if (arguments.length === 0) {\n result = _colors.slice(0);\n } else if (numColors === 1) {\n result = [f(0.5)];\n } else if (numColors > 1) {\n const dm = _domain[0];\n const dd = _domain[1] - dm;\n result = __range__(0, numColors, false).map((i) =>\n f(dm + (i / (numColors - 1)) * dd)\n );\n } else {\n // returns all colors based on the defined classes\n colors = [];\n let samples = [];\n if (_classes && _classes.length > 2) {\n for (\n let i = 1, end = _classes.length, asc = 1 <= end;\n asc ? i < end : i > end;\n asc ? i++ : i--\n ) {\n samples.push((_classes[i - 1] + _classes[i]) * 0.5);\n }\n } else {\n samples = _domain;\n }\n result = samples.map((v) => f(v));\n }\n\n if (chroma[out]) {\n result = result.map((c) => c[out]());\n }\n return result;\n };\n\n f.cache = function (c) {\n if (c != null) {\n _useCache = c;\n return f;\n } else {\n return _useCache;\n }\n };\n\n f.gamma = function (g) {\n if (g != null) {\n _gamma = g;\n return f;\n } else {\n return _gamma;\n }\n };\n\n f.nodata = function (d) {\n if (d != null) {\n _nacol = chroma(d);\n return f;\n } else {\n return _nacol;\n }\n };\n\n return f;\n}\n\nfunction __range__(left, right, inclusive) {\n let range = [];\n let ascending = left < right;\n let end = !inclusive ? right : ascending ? right + 1 : right - 1;\n for (let i = left; ascending ? i < end : i > end; ascending ? i++ : i--) {\n range.push(i);\n }\n return range;\n}\n","/*\n * interpolates between a set of colors uzing a bezier spline\n * blend mode formulas taken from https://web.archive.org/web/20180110014946/http://www.venture-ware.com/kevin/coding/lets-learn-math-photoshop-blend-modes/\n */\n\nimport '../io/rgb/index.js';\nimport chroma from '../chroma.js';\n\nconst blend = (bottom, top, mode) => {\n if (!blend[mode]) {\n throw new Error('unknown blend mode ' + mode);\n }\n return blend[mode](bottom, top);\n};\n\nconst blend_f = (f) => (bottom, top) => {\n const c0 = chroma(top).rgb();\n const c1 = chroma(bottom).rgb();\n return chroma.rgb(f(c0, c1));\n};\n\nconst each = (f) => (c0, c1) => {\n const out = [];\n out[0] = f(c0[0], c1[0]);\n out[1] = f(c0[1], c1[1]);\n out[2] = f(c0[2], c1[2]);\n return out;\n};\n\nconst normal = (a) => a;\nconst multiply = (a, b) => (a * b) / 255;\nconst darken = (a, b) => (a > b ? b : a);\nconst lighten = (a, b) => (a > b ? a : b);\nconst screen = (a, b) => 255 * (1 - (1 - a / 255) * (1 - b / 255));\nconst overlay = (a, b) =>\n b < 128 ? (2 * a * b) / 255 : 255 * (1 - 2 * (1 - a / 255) * (1 - b / 255));\nconst burn = (a, b) => 255 * (1 - (1 - b / 255) / (a / 255));\nconst dodge = (a, b) => {\n if (a === 255) return 255;\n a = (255 * (b / 255)) / (1 - a / 255);\n return a > 255 ? 255 : a;\n};\n\n// # add = (a,b) ->\n// # if (a + b > 255) then 255 else a + b\n\nblend.normal = blend_f(each(normal));\nblend.multiply = blend_f(each(multiply));\nblend.screen = blend_f(each(screen));\nblend.overlay = blend_f(each(overlay));\nblend.darken = blend_f(each(darken));\nblend.lighten = blend_f(each(lighten));\nblend.dodge = blend_f(each(dodge));\nblend.burn = blend_f(each(burn));\n// blend.add = blend_f(each(add));\n\nexport default blend;\n","// cubehelix interpolation\n// based on D.A. Green \"A colour scheme for the display of astronomical intensity images\"\n// http://astron-soc.in/bulletin/11June/289392011.pdf\nimport { type, clip_rgb, TWOPI } from '../utils/index.js';\nimport chroma from '../chroma.js';\nconst { pow, sin, cos } = Math;\n\nexport default function (\n start = 300,\n rotations = -1.5,\n hue = 1,\n gamma = 1,\n lightness = [0, 1]\n) {\n let dh = 0,\n dl;\n if (type(lightness) === 'array') {\n dl = lightness[1] - lightness[0];\n } else {\n dl = 0;\n lightness = [lightness, lightness];\n }\n const f = function (fract) {\n const a = TWOPI * ((start + 120) / 360 + rotations * fract);\n const l = pow(lightness[0] + dl * fract, gamma);\n const h = dh !== 0 ? hue[0] + fract * dh : hue;\n const amp = (h * l * (1 - l)) / 2;\n const cos_a = cos(a);\n const sin_a = sin(a);\n const r = l + amp * (-0.14861 * cos_a + 1.78277 * sin_a);\n const g = l + amp * (-0.29227 * cos_a - 0.90649 * sin_a);\n const b = l + amp * (+1.97294 * cos_a);\n return chroma(clip_rgb([r * 255, g * 255, b * 255, 1]));\n };\n f.start = function (s) {\n if (s == null) {\n return start;\n }\n start = s;\n return f;\n };\n f.rotations = function (r) {\n if (r == null) {\n return rotations;\n }\n rotations = r;\n return f;\n };\n f.gamma = function (g) {\n if (g == null) {\n return gamma;\n }\n gamma = g;\n return f;\n };\n f.hue = function (h) {\n if (h == null) {\n return hue;\n }\n hue = h;\n if (type(hue) === 'array') {\n dh = hue[1] - hue[0];\n if (dh === 0) {\n hue = hue[1];\n }\n } else {\n dh = 0;\n }\n return f;\n };\n f.lightness = function (h) {\n if (h == null) {\n return lightness;\n }\n if (type(h) === 'array') {\n lightness = h;\n dl = h[1] - h[0];\n } else {\n lightness = [h, h];\n dl = 0;\n }\n return f;\n };\n f.scale = () => chroma.scale(f);\n f.hue(hue);\n return f;\n}\n","import Color from '../Color.js';\nconst digits = '0123456789abcdef';\n\nconst { floor, random } = Math;\n\nexport default () => {\n let code = '#';\n for (let i = 0; i < 6; i++) {\n code += digits.charAt(floor(random() * 16));\n }\n return new Color(code, 'hex');\n};\n","import type from './type.js';\n\nconst { log, pow, floor, abs } = Math;\n\nexport function analyze(data, key = null) {\n const r = {\n min: Number.MAX_VALUE,\n max: Number.MAX_VALUE * -1,\n sum: 0,\n values: [],\n count: 0\n };\n if (type(data) === 'object') {\n data = Object.values(data);\n }\n data.forEach((val) => {\n if (key && type(val) === 'object') val = val[key];\n if (val !== undefined && val !== null && !isNaN(val)) {\n r.values.push(val);\n r.sum += val;\n if (val < r.min) r.min = val;\n if (val > r.max) r.max = val;\n r.count += 1;\n }\n });\n\n r.domain = [r.min, r.max];\n\n r.limits = (mode, num) => limits(r, mode, num);\n\n return r;\n}\n\nexport function limits(data, mode = 'equal', num = 7) {\n if (type(data) == 'array') {\n data = analyze(data);\n }\n const { min, max } = data;\n const values = data.values.sort((a, b) => a - b);\n\n if (num === 1) {\n return [min, max];\n }\n\n const limits = [];\n\n if (mode.substr(0, 1) === 'c') {\n // continuous\n limits.push(min);\n limits.push(max);\n }\n\n if (mode.substr(0, 1) === 'e') {\n // equal interval\n limits.push(min);\n for (let i = 1; i < num; i++) {\n limits.push(min + (i / num) * (max - min));\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'l') {\n // log scale\n if (min <= 0) {\n throw new Error(\n 'Logarithmic scales are only possible for values > 0'\n );\n }\n const min_log = Math.LOG10E * log(min);\n const max_log = Math.LOG10E * log(max);\n limits.push(min);\n for (let i = 1; i < num; i++) {\n limits.push(pow(10, min_log + (i / num) * (max_log - min_log)));\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'q') {\n // quantile scale\n limits.push(min);\n for (let i = 1; i < num; i++) {\n const p = ((values.length - 1) * i) / num;\n const pb = floor(p);\n if (pb === p) {\n limits.push(values[pb]);\n } else {\n // p > pb\n const pr = p - pb;\n limits.push(values[pb] * (1 - pr) + values[pb + 1] * pr);\n }\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'k') {\n // k-means clustering\n /*\n implementation based on\n http://code.google.com/p/figue/source/browse/trunk/figue.js#336\n simplified for 1-d input values\n */\n let cluster;\n const n = values.length;\n const assignments = new Array(n);\n const clusterSizes = new Array(num);\n let repeat = true;\n let nb_iters = 0;\n let centroids = null;\n\n // get seed values\n centroids = [];\n centroids.push(min);\n for (let i = 1; i < num; i++) {\n centroids.push(min + (i / num) * (max - min));\n }\n centroids.push(max);\n\n while (repeat) {\n // assignment step\n for (let j = 0; j < num; j++) {\n clusterSizes[j] = 0;\n }\n for (let i = 0; i < n; i++) {\n const value = values[i];\n let mindist = Number.MAX_VALUE;\n let best;\n for (let j = 0; j < num; j++) {\n const dist = abs(centroids[j] - value);\n if (dist < mindist) {\n mindist = dist;\n best = j;\n }\n clusterSizes[best]++;\n assignments[i] = best;\n }\n }\n\n // update centroids step\n const newCentroids = new Array(num);\n for (let j = 0; j < num; j++) {\n newCentroids[j] = null;\n }\n for (let i = 0; i < n; i++) {\n cluster = assignments[i];\n if (newCentroids[cluster] === null) {\n newCentroids[cluster] = values[i];\n } else {\n newCentroids[cluster] += values[i];\n }\n }\n for (let j = 0; j < num; j++) {\n newCentroids[j] *= 1 / clusterSizes[j];\n }\n\n // check convergence\n repeat = false;\n for (let j = 0; j < num; j++) {\n if (newCentroids[j] !== centroids[j]) {\n repeat = true;\n break;\n }\n }\n\n centroids = newCentroids;\n nb_iters++;\n\n if (nb_iters > 200) {\n repeat = false;\n }\n }\n\n // finished k-means clustering\n // the next part is borrowed from gabrielflor.it\n const kClusters = {};\n for (let j = 0; j < num; j++) {\n kClusters[j] = [];\n }\n for (let i = 0; i < n; i++) {\n cluster = assignments[i];\n kClusters[cluster].push(values[i]);\n }\n let tmpKMeansBreaks = [];\n for (let j = 0; j < num; j++) {\n tmpKMeansBreaks.push(kClusters[j][0]);\n tmpKMeansBreaks.push(kClusters[j][kClusters[j].length - 1]);\n }\n tmpKMeansBreaks = tmpKMeansBreaks.sort((a, b) => a - b);\n limits.push(tmpKMeansBreaks[0]);\n for (let i = 1; i < tmpKMeansBreaks.length; i += 2) {\n const v = tmpKMeansBreaks[i];\n if (!isNaN(v) && limits.indexOf(v) === -1) {\n limits.push(v);\n }\n }\n }\n return limits;\n}\n","import Color from '../Color.js';\nimport '../ops/luminance.js';\n\nexport default (a, b) => {\n // WCAG contrast ratio\n // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef\n a = new Color(a);\n b = new Color(b);\n const l1 = a.luminance();\n const l2 = b.luminance();\n return l1 > l2 ? (l1 + 0.05) / (l2 + 0.05) : (l2 + 0.05) / (l1 + 0.05);\n};\n","import Color from '../Color.js';\nconst { sqrt, pow, min, max, atan2, abs, cos, sin, exp, PI } = Math;\n\nexport default function (a, b, Kl = 1, Kc = 1, Kh = 1) {\n // Delta E (CIE 2000)\n // see http://www.brucelindbloom.com/index.html?Eqn_DeltaE_CIE2000.html\n var rad2deg = function (rad) {\n return (360 * rad) / (2 * PI);\n };\n var deg2rad = function (deg) {\n return (2 * PI * deg) / 360;\n };\n a = new Color(a);\n b = new Color(b);\n const [L1, a1, b1] = Array.from(a.lab());\n const [L2, a2, b2] = Array.from(b.lab());\n const avgL = (L1 + L2) / 2;\n const C1 = sqrt(pow(a1, 2) + pow(b1, 2));\n const C2 = sqrt(pow(a2, 2) + pow(b2, 2));\n const avgC = (C1 + C2) / 2;\n const G = 0.5 * (1 - sqrt(pow(avgC, 7) / (pow(avgC, 7) + pow(25, 7))));\n const a1p = a1 * (1 + G);\n const a2p = a2 * (1 + G);\n const C1p = sqrt(pow(a1p, 2) + pow(b1, 2));\n const C2p = sqrt(pow(a2p, 2) + pow(b2, 2));\n const avgCp = (C1p + C2p) / 2;\n const arctan1 = rad2deg(atan2(b1, a1p));\n const arctan2 = rad2deg(atan2(b2, a2p));\n const h1p = arctan1 >= 0 ? arctan1 : arctan1 + 360;\n const h2p = arctan2 >= 0 ? arctan2 : arctan2 + 360;\n const avgHp =\n abs(h1p - h2p) > 180 ? (h1p + h2p + 360) / 2 : (h1p + h2p) / 2;\n const T =\n 1 -\n 0.17 * cos(deg2rad(avgHp - 30)) +\n 0.24 * cos(deg2rad(2 * avgHp)) +\n 0.32 * cos(deg2rad(3 * avgHp + 6)) -\n 0.2 * cos(deg2rad(4 * avgHp - 63));\n let deltaHp = h2p - h1p;\n deltaHp =\n abs(deltaHp) <= 180\n ? deltaHp\n : h2p <= h1p\n ? deltaHp + 360\n : deltaHp - 360;\n deltaHp = 2 * sqrt(C1p * C2p) * sin(deg2rad(deltaHp) / 2);\n const deltaL = L2 - L1;\n const deltaCp = C2p - C1p;\n const sl = 1 + (0.015 * pow(avgL - 50, 2)) / sqrt(20 + pow(avgL - 50, 2));\n const sc = 1 + 0.045 * avgCp;\n const sh = 1 + 0.015 * avgCp * T;\n const deltaTheta = 30 * exp(-pow((avgHp - 275) / 25, 2));\n const Rc = 2 * sqrt(pow(avgCp, 7) / (pow(avgCp, 7) + pow(25, 7)));\n const Rt = -Rc * sin(2 * deg2rad(deltaTheta));\n const result = sqrt(\n pow(deltaL / (Kl * sl), 2) +\n pow(deltaCp / (Kc * sc), 2) +\n pow(deltaHp / (Kh * sh), 2) +\n Rt * (deltaCp / (Kc * sc)) * (deltaHp / (Kh * sh))\n );\n return max(0, min(100, result));\n}\n","import Color from '../Color.js';\n\n// simple Euclidean distance\nexport default function (a, b, mode = 'lab') {\n // Delta E (CIE 1976)\n // see http://www.brucelindbloom.com/index.html?Equations.html\n a = new Color(a);\n b = new Color(b);\n const l1 = a.get(mode);\n const l2 = b.get(mode);\n let sum_sq = 0;\n for (let i in l1) {\n const d = (l1[i] || 0) - (l2[i] || 0);\n sum_sq += d * d;\n }\n return Math.sqrt(sum_sq);\n}\n","import Color from '../Color.js';\n\nexport default (...args) => {\n try {\n new Color(...args);\n return true;\n // eslint-disable-next-line\n } catch (e) {\n return false;\n }\n};\n","// some pre-defined color scales:\nimport chroma from '../chroma.js';\nimport '../io/hsl/index.js';\nimport scale from '../generator/scale.js';\n\nexport default {\n cool() {\n return scale([chroma.hsl(180, 1, 0.9), chroma.hsl(250, 0.7, 0.4)]);\n },\n hot() {\n return scale(['#000', '#f00', '#ff0', '#fff'], [0, 0.25, 0.75, 1]).mode(\n 'rgb'\n );\n }\n};\n","/**\n ColorBrewer colors for chroma.js\n\n Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The\n Pennsylvania State University.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software distributed\n under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n CONDITIONS OF ANY KIND, either express or implied. See the License for the\n specific language governing permissions and limitations under the License.\n*/\n\nconst colorbrewer = {\n // sequential\n OrRd: ['#fff7ec', '#fee8c8', '#fdd49e', '#fdbb84', '#fc8d59', '#ef6548', '#d7301f', '#b30000', '#7f0000'],\n PuBu: ['#fff7fb', '#ece7f2', '#d0d1e6', '#a6bddb', '#74a9cf', '#3690c0', '#0570b0', '#045a8d', '#023858'],\n BuPu: ['#f7fcfd', '#e0ecf4', '#bfd3e6', '#9ebcda', '#8c96c6', '#8c6bb1', '#88419d', '#810f7c', '#4d004b'],\n Oranges: ['#fff5eb', '#fee6ce', '#fdd0a2', '#fdae6b', '#fd8d3c', '#f16913', '#d94801', '#a63603', '#7f2704'],\n BuGn: ['#f7fcfd', '#e5f5f9', '#ccece6', '#99d8c9', '#66c2a4', '#41ae76', '#238b45', '#006d2c', '#00441b'],\n YlOrBr: ['#ffffe5', '#fff7bc', '#fee391', '#fec44f', '#fe9929', '#ec7014', '#cc4c02', '#993404', '#662506'],\n YlGn: ['#ffffe5', '#f7fcb9', '#d9f0a3', '#addd8e', '#78c679', '#41ab5d', '#238443', '#006837', '#004529'],\n Reds: ['#fff5f0', '#fee0d2', '#fcbba1', '#fc9272', '#fb6a4a', '#ef3b2c', '#cb181d', '#a50f15', '#67000d'],\n RdPu: ['#fff7f3', '#fde0dd', '#fcc5c0', '#fa9fb5', '#f768a1', '#dd3497', '#ae017e', '#7a0177', '#49006a'],\n Greens: ['#f7fcf5', '#e5f5e0', '#c7e9c0', '#a1d99b', '#74c476', '#41ab5d', '#238b45', '#006d2c', '#00441b'],\n YlGnBu: ['#ffffd9', '#edf8b1', '#c7e9b4', '#7fcdbb', '#41b6c4', '#1d91c0', '#225ea8', '#253494', '#081d58'],\n Purples: ['#fcfbfd', '#efedf5', '#dadaeb', '#bcbddc', '#9e9ac8', '#807dba', '#6a51a3', '#54278f', '#3f007d'],\n GnBu: ['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081'],\n Greys: ['#ffffff', '#f0f0f0', '#d9d9d9', '#bdbdbd', '#969696', '#737373', '#525252', '#252525', '#000000'],\n YlOrRd: ['#ffffcc', '#ffeda0', '#fed976', '#feb24c', '#fd8d3c', '#fc4e2a', '#e31a1c', '#bd0026', '#800026'],\n PuRd: ['#f7f4f9', '#e7e1ef', '#d4b9da', '#c994c7', '#df65b0', '#e7298a', '#ce1256', '#980043', '#67001f'],\n Blues: ['#f7fbff', '#deebf7', '#c6dbef', '#9ecae1', '#6baed6', '#4292c6', '#2171b5', '#08519c', '#08306b'],\n PuBuGn: ['#fff7fb', '#ece2f0', '#d0d1e6', '#a6bddb', '#67a9cf', '#3690c0', '#02818a', '#016c59', '#014636'],\n Viridis: ['#440154', '#482777', '#3f4a8a', '#31678e', '#26838f', '#1f9d8a', '#6cce5a', '#b6de2b', '#fee825'],\n\n // diverging\n Spectral: ['#9e0142', '#d53e4f', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#e6f598', '#abdda4', '#66c2a5', '#3288bd', '#5e4fa2'],\n RdYlGn: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#d9ef8b', '#a6d96a', '#66bd63', '#1a9850', '#006837'],\n RdBu: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#f7f7f7', '#d1e5f0', '#92c5de', '#4393c3', '#2166ac', '#053061'],\n PiYG: ['#8e0152', '#c51b7d', '#de77ae', '#f1b6da', '#fde0ef', '#f7f7f7', '#e6f5d0', '#b8e186', '#7fbc41', '#4d9221', '#276419'],\n PRGn: ['#40004b', '#762a83', '#9970ab', '#c2a5cf', '#e7d4e8', '#f7f7f7', '#d9f0d3', '#a6dba0', '#5aae61', '#1b7837', '#00441b'],\n RdYlBu: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee090', '#ffffbf', '#e0f3f8', '#abd9e9', '#74add1', '#4575b4', '#313695'],\n BrBG: ['#543005', '#8c510a', '#bf812d', '#dfc27d', '#f6e8c3', '#f5f5f5', '#c7eae5', '#80cdc1', '#35978f', '#01665e', '#003c30'],\n RdGy: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#ffffff', '#e0e0e0', '#bababa', '#878787', '#4d4d4d', '#1a1a1a'],\n PuOr: ['#7f3b08', '#b35806', '#e08214', '#fdb863', '#fee0b6', '#f7f7f7', '#d8daeb', '#b2abd2', '#8073ac', '#542788', '#2d004b'],\n\n // qualitative\n Set2: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', '#e5c494', '#b3b3b3'],\n Accent: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0', '#f0027f', '#bf5b17', '#666666'],\n Set1: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33', '#a65628', '#f781bf', '#999999'],\n Set3: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462', '#b3de69', '#fccde5', '#d9d9d9', '#bc80bd', '#ccebc5', '#ffed6f'],\n Dark2: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02', '#a6761d', '#666666'],\n Paired: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f', '#ff7f00', '#cab2d6', '#6a3d9a', '#ffff99', '#b15928'],\n Pastel2: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4', '#e6f5c9', '#fff2ae', '#f1e2cc', '#cccccc'],\n Pastel1: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4', '#fed9a6', '#ffffcc', '#e5d8bd', '#fddaec', '#f2f2f2']\n};\n\n// add lowercase aliases for case-insensitive matches\nfor (let key of Object.keys(colorbrewer)) {\n colorbrewer[key.toLowerCase()] = colorbrewer[key];\n}\n\nexport default colorbrewer;\n","/*!\n * Paper.js v0.12.18 - The Swiss Army Knife of Vector Graphics Scripting.\n * http://paperjs.org/\n *\n * Copyright (c) 2011 - 2020, Jürg Lehni & Jonathan Puckey\n * http://juerglehni.com/ & https://puckey.studio/\n *\n * Distributed under the MIT license. See LICENSE file for details.\n *\n * All rights reserved.\n *\n * Date: Wed Jul 17 14:57:24 2024 +0200\n *\n ***\n *\n * Straps.js - Class inheritance library with support for bean-style accessors\n *\n * Copyright (c) 2006 - 2020 Jürg Lehni\n * http://juerglehni.com/\n *\n * Distributed under the MIT license.\n *\n ***\n *\n * Acorn.js\n * https://marijnhaverbeke.nl/acorn/\n *\n * Acorn is a tiny, fast JavaScript parser written in JavaScript,\n * created by Marijn Haverbeke and released under an MIT license.\n *\n */\n\nvar paper = function(self, undefined) {\n\nself = self || require('./node/self.js');\nvar window = self.window,\n\tdocument = self.document;\n\nvar Base = new function() {\n\tvar hidden = /^(statics|enumerable|beans|preserve)$/,\n\t\tarray = [],\n\t\tslice = array.slice,\n\t\tcreate = Object.create,\n\t\tdescribe = Object.getOwnPropertyDescriptor,\n\t\tdefine = Object.defineProperty,\n\n\t\tforEach = array.forEach || function(iter, bind) {\n\t\t\tfor (var i = 0, l = this.length; i < l; i++) {\n\t\t\t\titer.call(bind, this[i], i, this);\n\t\t\t}\n\t\t},\n\n\t\tforIn = function(iter, bind) {\n\t\t\tfor (var i in this) {\n\t\t\t\tif (this.hasOwnProperty(i))\n\t\t\t\t\titer.call(bind, this[i], i, this);\n\t\t\t}\n\t\t},\n\n\t\tset = Object.assign || function(dst) {\n\t\t\tfor (var i = 1, l = arguments.length; i < l; i++) {\n\t\t\t\tvar src = arguments[i];\n\t\t\t\tfor (var key in src) {\n\t\t\t\t\tif (src.hasOwnProperty(key))\n\t\t\t\t\t\tdst[key] = src[key];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn dst;\n\t\t},\n\n\t\teach = function(obj, iter, bind) {\n\t\t\tif (obj) {\n\t\t\t\tvar desc = describe(obj, 'length');\n\t\t\t\t(desc && typeof desc.value === 'number' ? forEach : forIn)\n\t\t\t\t\t.call(obj, iter, bind = bind || obj);\n\t\t\t}\n\t\t\treturn bind;\n\t\t};\n\n\tfunction inject(dest, src, enumerable, beans, preserve) {\n\t\tvar beansNames = {};\n\n\t\tfunction field(name, val) {\n\t\t\tval = val || (val = describe(src, name))\n\t\t\t\t\t&& (val.get ? val : val.value);\n\t\t\tif (typeof val === 'string' && val[0] === '#')\n\t\t\t\tval = dest[val.substring(1)] || val;\n\t\t\tvar isFunc = typeof val === 'function',\n\t\t\t\tres = val,\n\t\t\t\tprev = preserve || isFunc && !val.base\n\t\t\t\t\t\t? (val && val.get ? name in dest : dest[name])\n\t\t\t\t\t\t: null,\n\t\t\t\tbean;\n\t\t\tif (!preserve || !prev) {\n\t\t\t\tif (isFunc && prev)\n\t\t\t\t\tval.base = prev;\n\t\t\t\tif (isFunc && beans !== false\n\t\t\t\t\t\t&& (bean = name.match(/^([gs]et|is)(([A-Z])(.*))$/)))\n\t\t\t\t\tbeansNames[bean[3].toLowerCase() + bean[4]] = bean[2];\n\t\t\t\tif (!res || isFunc || !res.get || typeof res.get !== 'function'\n\t\t\t\t\t\t|| !Base.isPlainObject(res)) {\n\t\t\t\t\tres = { value: res, writable: true };\n\t\t\t\t}\n\t\t\t\tif ((describe(dest, name)\n\t\t\t\t\t\t|| { configurable: true }).configurable) {\n\t\t\t\t\tres.configurable = true;\n\t\t\t\t\tres.enumerable = enumerable != null ? enumerable : !bean;\n\t\t\t\t}\n\t\t\t\tdefine(dest, name, res);\n\t\t\t}\n\t\t}\n\t\tif (src) {\n\t\t\tfor (var name in src) {\n\t\t\t\tif (src.hasOwnProperty(name) && !hidden.test(name))\n\t\t\t\t\tfield(name);\n\t\t\t}\n\t\t\tfor (var name in beansNames) {\n\t\t\t\tvar part = beansNames[name],\n\t\t\t\t\tset = dest['set' + part],\n\t\t\t\t\tget = dest['get' + part] || set && dest['is' + part];\n\t\t\t\tif (get && (beans === true || get.length === 0))\n\t\t\t\t\tfield(name, { get: get, set: set });\n\t\t\t}\n\t\t}\n\t\treturn dest;\n\t}\n\n\tfunction Base() {\n\t\tfor (var i = 0, l = arguments.length; i < l; i++) {\n\t\t\tvar src = arguments[i];\n\t\t\tif (src)\n\t\t\t\tset(this, src);\n\t\t}\n\t\treturn this;\n\t}\n\n\treturn inject(Base, {\n\t\tinject: function(src) {\n\t\t\tif (src) {\n\t\t\t\tvar statics = src.statics === true ? src : src.statics,\n\t\t\t\t\tbeans = src.beans,\n\t\t\t\t\tpreserve = src.preserve;\n\t\t\t\tif (statics !== src)\n\t\t\t\t\tinject(this.prototype, src, src.enumerable, beans, preserve);\n\t\t\t\tinject(this, statics, null, beans, preserve);\n\t\t\t}\n\t\t\tfor (var i = 1, l = arguments.length; i < l; i++)\n\t\t\t\tthis.inject(arguments[i]);\n\t\t\treturn this;\n\t\t},\n\n\t\textend: function() {\n\t\t\tvar base = this,\n\t\t\t\tctor,\n\t\t\t\tproto;\n\t\t\tfor (var i = 0, obj, l = arguments.length;\n\t\t\t\t\ti < l && !(ctor && proto); i++) {\n\t\t\t\tobj = arguments[i];\n\t\t\t\tctor = ctor || obj.initialize;\n\t\t\t\tproto = proto || obj.prototype;\n\t\t\t}\n\t\t\tctor = ctor || function() {\n\t\t\t\tbase.apply(this, arguments);\n\t\t\t};\n\t\t\tproto = ctor.prototype = proto || create(this.prototype);\n\t\t\tdefine(proto, 'constructor',\n\t\t\t\t\t{ value: ctor, writable: true, configurable: true });\n\t\t\tinject(ctor, this);\n\t\t\tif (arguments.length)\n\t\t\t\tthis.inject.apply(ctor, arguments);\n\t\t\tctor.base = base;\n\t\t\treturn ctor;\n\t\t}\n\t}).inject({\n\t\tenumerable: false,\n\n\t\tinitialize: Base,\n\n\t\tset: Base,\n\n\t\tinject: function() {\n\t\t\tfor (var i = 0, l = arguments.length; i < l; i++) {\n\t\t\t\tvar src = arguments[i];\n\t\t\t\tif (src) {\n\t\t\t\t\tinject(this, src, src.enumerable, src.beans, src.preserve);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn this;\n\t\t},\n\n\t\textend: function() {\n\t\t\tvar res = create(this);\n\t\t\treturn res.inject.apply(res, arguments);\n\t\t},\n\n\t\teach: function(iter, bind) {\n\t\t\treturn each(this, iter, bind);\n\t\t},\n\n\t\tclone: function() {\n\t\t\treturn new this.constructor(this);\n\t\t},\n\n\t\tstatics: {\n\t\t\tset: set,\n\t\t\teach: each,\n\t\t\tcreate: create,\n\t\t\tdefine: define,\n\t\t\tdescribe: describe,\n\n\t\t\tclone: function(obj) {\n\t\t\t\treturn set(new obj.constructor(), obj);\n\t\t\t},\n\n\t\t\tisPlainObject: function(obj) {\n\t\t\t\tvar ctor = obj != null && obj.constructor;\n\t\t\t\treturn ctor && (ctor === Object || ctor === Base\n\t\t\t\t\t\t|| ctor.name === 'Object');\n\t\t\t},\n\n\t\t\tpick: function(a, b) {\n\t\t\t\treturn a !== undefined ? a : b;\n\t\t\t},\n\n\t\t\tslice: function(list, begin, end) {\n\t\t\t\treturn slice.call(list, begin, end);\n\t\t\t}\n\t\t}\n\t});\n};\n\nif (typeof module !== 'undefined')\n\tmodule.exports = Base;\n\nBase.inject({\n\tenumerable: false,\n\n\ttoString: function() {\n\t\treturn this._id != null\n\t\t\t? (this._class || 'Object') + (this._name\n\t\t\t\t? \" '\" + this._name + \"'\"\n\t\t\t\t: ' @' + this._id)\n\t\t\t: '{ ' + Base.each(this, function(value, key) {\n\t\t\t\tif (!/^_/.test(key)) {\n\t\t\t\t\tvar type = typeof value;\n\t\t\t\t\tthis.push(key + ': ' + (type === 'number'\n\t\t\t\t\t\t\t? Formatter.instance.number(value)\n\t\t\t\t\t\t\t: type === 'string' ? \"'\" + value + \"'\" : value));\n\t\t\t\t}\n\t\t\t}, []).join(', ') + ' }';\n\t},\n\n\tgetClassName: function() {\n\t\treturn this._class || '';\n\t},\n\n\timportJSON: function(json) {\n\t\treturn Base.importJSON(json, this);\n\t},\n\n\texportJSON: function(options) {\n\t\treturn Base.exportJSON(this, options);\n\t},\n\n\ttoJSON: function() {\n\t\treturn Base.serialize(this);\n\t},\n\n\tset: function(props, exclude) {\n\t\tif (props)\n\t\t\tBase.filter(this, props, exclude, this._prioritize);\n\t\treturn this;\n\t}\n}, {\n\nbeans: false,\nstatics: {\n\texports: {},\n\n\textend: function extend() {\n\t\tvar res = extend.base.apply(this, arguments),\n\t\t\tname = res.prototype._class;\n\t\tif (name && !Base.exports[name])\n\t\t\tBase.exports[name] = res;\n\t\treturn res;\n\t},\n\n\tequals: function(obj1, obj2) {\n\t\tif (obj1 === obj2)\n\t\t\treturn true;\n\t\tif (obj1 && obj1.equals)\n\t\t\treturn obj1.equals(obj2);\n\t\tif (obj2 && obj2.equals)\n\t\t\treturn obj2.equals(obj1);\n\t\tif (obj1 && obj2\n\t\t\t\t&& typeof obj1 === 'object' && typeof obj2 === 'object') {\n\t\t\tif (Array.isArray(obj1) && Array.isArray(obj2)) {\n\t\t\t\tvar length = obj1.length;\n\t\t\t\tif (length !== obj2.length)\n\t\t\t\t\treturn false;\n\t\t\t\twhile (length--) {\n\t\t\t\t\tif (!Base.equals(obj1[length], obj2[length]))\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvar keys = Object.keys(obj1),\n\t\t\t\t\tlength = keys.length;\n\t\t\t\tif (length !== Object.keys(obj2).length)\n\t\t\t\t\treturn false;\n\t\t\t\twhile (length--) {\n\t\t\t\t\tvar key = keys[length];\n\t\t\t\t\tif (!(obj2.hasOwnProperty(key)\n\t\t\t\t\t\t\t&& Base.equals(obj1[key], obj2[key])))\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t},\n\n\tread: function(list, start, options, amount) {\n\t\tif (this === Base) {\n\t\t\tvar value = this.peek(list, start);\n\t\t\tlist.__index++;\n\t\t\treturn value;\n\t\t}\n\t\tvar proto = this.prototype,\n\t\t\treadIndex = proto._readIndex,\n\t\t\tbegin = start || readIndex && list.__index || 0,\n\t\t\tlength = list.length,\n\t\t\tobj = list[begin];\n\t\tamount = amount || length - begin;\n\t\tif (obj instanceof this\n\t\t\t|| options && options.readNull && obj == null && amount <= 1) {\n\t\t\tif (readIndex)\n\t\t\t\tlist.__index = begin + 1;\n\t\t\treturn obj && options && options.clone ? obj.clone() : obj;\n\t\t}\n\t\tobj = Base.create(proto);\n\t\tif (readIndex)\n\t\t\tobj.__read = true;\n\t\tobj = obj.initialize.apply(obj, begin > 0 || begin + amount < length\n\t\t\t\t? Base.slice(list, begin, begin + amount)\n\t\t\t\t: list) || obj;\n\t\tif (readIndex) {\n\t\t\tlist.__index = begin + obj.__read;\n\t\t\tvar filtered = obj.__filtered;\n\t\t\tif (filtered) {\n\t\t\t\tlist.__filtered = filtered;\n\t\t\t\tobj.__filtered = undefined;\n\t\t\t}\n\t\t\tobj.__read = undefined;\n\t\t}\n\t\treturn obj;\n\t},\n\n\tpeek: function(list, start) {\n\t\treturn list[list.__index = start || list.__index || 0];\n\t},\n\n\tremain: function(list) {\n\t\treturn list.length - (list.__index || 0);\n\t},\n\n\treadList: function(list, start, options, amount) {\n\t\tvar res = [],\n\t\t\tentry,\n\t\t\tbegin = start || 0,\n\t\t\tend = amount ? begin + amount : list.length;\n\t\tfor (var i = begin; i < end; i++) {\n\t\t\tres.push(Array.isArray(entry = list[i])\n\t\t\t\t\t? this.read(entry, 0, options)\n\t\t\t\t\t: this.read(list, i, options, 1));\n\t\t}\n\t\treturn res;\n\t},\n\n\treadNamed: function(list, name, start, options, amount) {\n\t\tvar value = this.getNamed(list, name),\n\t\t\thasValue = value !== undefined;\n\t\tif (hasValue) {\n\t\t\tvar filtered = list.__filtered;\n\t\t\tif (!filtered) {\n\t\t\t\tvar source = this.getSource(list);\n\t\t\t\tfiltered = list.__filtered = Base.create(source);\n\t\t\t\tfiltered.__unfiltered = source;\n\t\t\t}\n\t\t\tfiltered[name] = undefined;\n\t\t}\n\t\treturn this.read(hasValue ? [value] : list, start, options, amount);\n\t},\n\n\treadSupported: function(list, dest) {\n\t\tvar source = this.getSource(list),\n\t\t\tthat = this,\n\t\t\tread = false;\n\t\tif (source) {\n\t\t\tObject.keys(source).forEach(function(key) {\n\t\t\t\tif (key in dest) {\n\t\t\t\t\tvar value = that.readNamed(list, key);\n\t\t\t\t\tif (value !== undefined) {\n\t\t\t\t\t\tdest[key] = value;\n\t\t\t\t\t}\n\t\t\t\t\tread = true;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn read;\n\t},\n\n\tgetSource: function(list) {\n\t\tvar source = list.__source;\n\t\tif (source === undefined) {\n\t\t\tvar arg = list.length === 1 && list[0];\n\t\t\tsource = list.__source = arg && Base.isPlainObject(arg)\n\t\t\t\t? arg : null;\n\t\t}\n\t\treturn source;\n\t},\n\n\tgetNamed: function(list, name) {\n\t\tvar source = this.getSource(list);\n\t\tif (source) {\n\t\t\treturn name ? source[name] : list.__filtered || source;\n\t\t}\n\t},\n\n\thasNamed: function(list, name) {\n\t\treturn !!this.getNamed(list, name);\n\t},\n\n\tfilter: function(dest, source, exclude, prioritize) {\n\t\tvar processed;\n\n\t\tfunction handleKey(key) {\n\t\t\tif (!(exclude && key in exclude) &&\n\t\t\t\t!(processed && key in processed)) {\n\t\t\t\tvar value = source[key];\n\t\t\t\tif (value !== undefined)\n\t\t\t\t\tdest[key] = value;\n\t\t\t}\n\t\t}\n\n\t\tif (prioritize) {\n\t\t\tvar keys = {};\n\t\t\tfor (var i = 0, key, l = prioritize.length; i < l; i++) {\n\t\t\t\tif ((key = prioritize[i]) in source) {\n\t\t\t\t\thandleKey(key);\n\t\t\t\t\tkeys[key] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tprocessed = keys;\n\t\t}\n\n\t\tObject.keys(source.__unfiltered || source).forEach(handleKey);\n\t\treturn dest;\n\t},\n\n\tisPlainValue: function(obj, asString) {\n\t\treturn Base.isPlainObject(obj) || Array.isArray(obj)\n\t\t\t\t|| asString && typeof obj === 'string';\n\t},\n\n\tserialize: function(obj, options, compact, dictionary) {\n\t\toptions = options || {};\n\n\t\tvar isRoot = !dictionary,\n\t\t\tres;\n\t\tif (isRoot) {\n\t\t\toptions.formatter = new Formatter(options.precision);\n\t\t\tdictionary = {\n\t\t\t\tlength: 0,\n\t\t\t\tdefinitions: {},\n\t\t\t\treferences: {},\n\t\t\t\tadd: function(item, create) {\n\t\t\t\t\tvar id = '#' + item._id,\n\t\t\t\t\t\tref = this.references[id];\n\t\t\t\t\tif (!ref) {\n\t\t\t\t\t\tthis.length++;\n\t\t\t\t\t\tvar res = create.call(item),\n\t\t\t\t\t\t\tname = item._class;\n\t\t\t\t\t\tif (name && res[0] !== name)\n\t\t\t\t\t\t\tres.unshift(name);\n\t\t\t\t\t\tthis.definitions[id] = res;\n\t\t\t\t\t\tref = this.references[id] = [id];\n\t\t\t\t\t}\n\t\t\t\t\treturn ref;\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\tif (obj && obj._serialize) {\n\t\t\tres = obj._serialize(options, dictionary);\n\t\t\tvar name = obj._class;\n\t\t\tif (name && !obj._compactSerialize && (isRoot || !compact)\n\t\t\t\t\t&& res[0] !== name) {\n\t\t\t\tres.unshift(name);\n\t\t\t}\n\t\t} else if (Array.isArray(obj)) {\n\t\t\tres = [];\n\t\t\tfor (var i = 0, l = obj.length; i < l; i++)\n\t\t\t\tres[i] = Base.serialize(obj[i], options, compact, dictionary);\n\t\t} else if (Base.isPlainObject(obj)) {\n\t\t\tres = {};\n\t\t\tvar keys = Object.keys(obj);\n\t\t\tfor (var i = 0, l = keys.length; i < l; i++) {\n\t\t\t\tvar key = keys[i];\n\t\t\t\tres[key] = Base.serialize(obj[key], options, compact,\n\t\t\t\t\t\tdictionary);\n\t\t\t}\n\t\t} else if (typeof obj === 'number') {\n\t\t\tres = options.formatter.number(obj, options.precision);\n\t\t} else {\n\t\t\tres = obj;\n\t\t}\n\t\treturn isRoot && dictionary.length > 0\n\t\t\t\t? [['dictionary', dictionary.definitions], res]\n\t\t\t\t: res;\n\t},\n\n\tdeserialize: function(json, create, _data, _setDictionary, _isRoot) {\n\t\tvar res = json,\n\t\t\tisFirst = !_data,\n\t\t\thasDictionary = isFirst && json && json.length\n\t\t\t\t&& json[0][0] === 'dictionary';\n\t\t_data = _data || {};\n\t\tif (Array.isArray(json)) {\n\t\t\tvar type = json[0],\n\t\t\t\tisDictionary = type === 'dictionary';\n\t\t\tif (json.length == 1 && /^#/.test(type)) {\n\t\t\t\treturn _data.dictionary[type];\n\t\t\t}\n\t\t\ttype = Base.exports[type];\n\t\t\tres = [];\n\t\t\tfor (var i = type ? 1 : 0, l = json.length; i < l; i++) {\n\t\t\t\tres.push(Base.deserialize(json[i], create, _data,\n\t\t\t\t\t\tisDictionary, hasDictionary));\n\t\t\t}\n\t\t\tif (type) {\n\t\t\t\tvar args = res;\n\t\t\t\tif (create) {\n\t\t\t\t\tres = create(type, args, isFirst || _isRoot);\n\t\t\t\t} else {\n\t\t\t\t\tres = new type(args);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (Base.isPlainObject(json)) {\n\t\t\tres = {};\n\t\t\tif (_setDictionary)\n\t\t\t\t_data.dictionary = res;\n\t\t\tfor (var key in json)\n\t\t\t\tres[key] = Base.deserialize(json[key], create, _data);\n\t\t}\n\t\treturn hasDictionary ? res[1] : res;\n\t},\n\n\texportJSON: function(obj, options) {\n\t\tvar json = Base.serialize(obj, options);\n\t\treturn options && options.asString == false\n\t\t\t\t? json\n\t\t\t\t: JSON.stringify(json);\n\t},\n\n\timportJSON: function(json, target) {\n\t\treturn Base.deserialize(\n\t\t\t\ttypeof json === 'string' ? JSON.parse(json) : json,\n\t\t\t\tfunction(ctor, args, isRoot) {\n\t\t\t\t\tvar useTarget = isRoot && target\n\t\t\t\t\t\t\t&& target.constructor === ctor,\n\t\t\t\t\t\tobj = useTarget ? target\n\t\t\t\t\t\t\t: Base.create(ctor.prototype);\n\t\t\t\t\tif (args.length === 1 && obj instanceof Item\n\t\t\t\t\t\t\t&& (useTarget || !(obj instanceof Layer))) {\n\t\t\t\t\t\tvar arg = args[0];\n\t\t\t\t\t\tif (Base.isPlainObject(arg)) {\n\t\t\t\t\t\t\targ.insert = false;\n\t\t\t\t\t\t\tif (useTarget) {\n\t\t\t\t\t\t\t\targs = args.concat([Item.INSERT]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t(useTarget ? obj.set : ctor).apply(obj, args);\n\t\t\t\t\tif (useTarget)\n\t\t\t\t\t\ttarget = null;\n\t\t\t\t\treturn obj;\n\t\t\t\t});\n\t},\n\n\tpush: function(list, items) {\n\t\tvar itemsLength = items.length;\n\t\tif (itemsLength < 4096) {\n\t\t\tlist.push.apply(list, items);\n\t\t} else {\n\t\t\tvar startLength = list.length;\n\t\t\tlist.length += itemsLength;\n\t\t\tfor (var i = 0; i < itemsLength; i++) {\n\t\t\t\tlist[startLength + i] = items[i];\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t},\n\n\tsplice: function(list, items, index, remove) {\n\t\tvar amount = items && items.length,\n\t\t\tappend = index === undefined;\n\t\tindex = append ? list.length : index;\n\t\tif (index > list.length)\n\t\t\tindex = list.length;\n\t\tfor (var i = 0; i < amount; i++)\n\t\t\titems[i]._index = index + i;\n\t\tif (append) {\n\t\t\tBase.push(list, items);\n\t\t\treturn [];\n\t\t} else {\n\t\t\tvar args = [index, remove];\n\t\t\tif (items)\n\t\t\t\tBase.push(args, items);\n\t\t\tvar removed = list.splice.apply(list, args);\n\t\t\tfor (var i = 0, l = removed.length; i < l; i++)\n\t\t\t\tremoved[i]._index = undefined;\n\t\t\tfor (var i = index + amount, l = list.length; i < l; i++)\n\t\t\t\tlist[i]._index = i;\n\t\t\treturn removed;\n\t\t}\n\t},\n\n\tcapitalize: function(str) {\n\t\treturn str.replace(/\\b[a-z]/g, function(match) {\n\t\t\treturn match.toUpperCase();\n\t\t});\n\t},\n\n\tcamelize: function(str) {\n\t\treturn str.replace(/-(.)/g, function(match, chr) {\n\t\t\treturn chr.toUpperCase();\n\t\t});\n\t},\n\n\thyphenate: function(str) {\n\t\treturn str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();\n\t}\n}});\n\nvar Emitter = {\n\ton: function(type, func) {\n\t\tif (typeof type !== 'string') {\n\t\t\tBase.each(type, function(value, key) {\n\t\t\t\tthis.on(key, value);\n\t\t\t}, this);\n\t\t} else {\n\t\t\tvar types = this._eventTypes,\n\t\t\t\tentry = types && types[type],\n\t\t\t\thandlers = this._callbacks = this._callbacks || {};\n\t\t\thandlers = handlers[type] = handlers[type] || [];\n\t\t\tif (handlers.indexOf(func) === -1) {\n\t\t\t\thandlers.push(func);\n\t\t\t\tif (entry && entry.install && handlers.length === 1)\n\t\t\t\t\tentry.install.call(this, type);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t},\n\n\toff: function(type, func) {\n\t\tif (typeof type !== 'string') {\n\t\t\tBase.each(type, function(value, key) {\n\t\t\t\tthis.off(key, value);\n\t\t\t}, this);\n\t\t\treturn;\n\t\t}\n\t\tvar types = this._eventTypes,\n\t\t\tentry = types && types[type],\n\t\t\thandlers = this._callbacks && this._callbacks[type],\n\t\t\tindex;\n\t\tif (handlers) {\n\t\t\tif (!func || (index = handlers.indexOf(func)) !== -1\n\t\t\t\t\t&& handlers.length === 1) {\n\t\t\t\tif (entry && entry.uninstall)\n\t\t\t\t\tentry.uninstall.call(this, type);\n\t\t\t\tdelete this._callbacks[type];\n\t\t\t} else if (index !== -1) {\n\t\t\t\thandlers.splice(index, 1);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t},\n\n\tonce: function(type, func) {\n\t\treturn this.on(type, function handler() {\n\t\t\tfunc.apply(this, arguments);\n\t\t\tthis.off(type, handler);\n\t\t});\n\t},\n\n\temit: function(type, event) {\n\t\tvar handlers = this._callbacks && this._callbacks[type];\n\t\tif (!handlers)\n\t\t\treturn false;\n\t\tvar args = Base.slice(arguments, 1),\n\t\t\tsetTarget = event && event.target && !event.currentTarget;\n\t\thandlers = handlers.slice();\n\t\tif (setTarget)\n\t\t\tevent.currentTarget = this;\n\t\tfor (var i = 0, l = handlers.length; i < l; i++) {\n\t\t\tif (handlers[i].apply(this, args) == false) {\n\t\t\t\tif (event && event.stop)\n\t\t\t\t\tevent.stop();\n\t\t\t\tbreak;\n\t\t }\n\t\t}\n\t\tif (setTarget)\n\t\t\tdelete event.currentTarget;\n\t\treturn true;\n\t},\n\n\tresponds: function(type) {\n\t\treturn !!(this._callbacks && this._callbacks[type]);\n\t},\n\n\tattach: '#on',\n\tdetach: '#off',\n\tfire: '#emit',\n\n\t_installEvents: function(install) {\n\t\tvar types = this._eventTypes,\n\t\t\thandlers = this._callbacks,\n\t\t\tkey = install ? 'install' : 'uninstall';\n\t\tif (types) {\n\t\t\tfor (var type in handlers) {\n\t\t\t\tif (handlers[type].length > 0) {\n\t\t\t\t\tvar entry = types[type],\n\t\t\t\t\t\tfunc = entry && entry[key];\n\t\t\t\t\tif (func)\n\t\t\t\t\t\tfunc.call(this, type);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tstatics: {\n\t\tinject: function inject(src) {\n\t\t\tvar events = src._events;\n\t\t\tif (events) {\n\t\t\t\tvar types = {};\n\t\t\t\tBase.each(events, function(entry, key) {\n\t\t\t\t\tvar isString = typeof entry === 'string',\n\t\t\t\t\t\tname = isString ? entry : key,\n\t\t\t\t\t\tpart = Base.capitalize(name),\n\t\t\t\t\t\ttype = name.substring(2).toLowerCase();\n\t\t\t\t\ttypes[type] = isString ? {} : entry;\n\t\t\t\t\tname = '_' + name;\n\t\t\t\t\tsrc['get' + part] = function() {\n\t\t\t\t\t\treturn this[name];\n\t\t\t\t\t};\n\t\t\t\t\tsrc['set' + part] = function(func) {\n\t\t\t\t\t\tvar prev = this[name];\n\t\t\t\t\t\tif (prev)\n\t\t\t\t\t\t\tthis.off(type, prev);\n\t\t\t\t\t\tif (func)\n\t\t\t\t\t\t\tthis.on(type, func);\n\t\t\t\t\t\tthis[name] = func;\n\t\t\t\t\t};\n\t\t\t\t});\n\t\t\t\tsrc._eventTypes = types;\n\t\t\t}\n\t\t\treturn inject.base.apply(this, arguments);\n\t\t}\n\t}\n};\n\nvar PaperScope = Base.extend({\n\t_class: 'PaperScope',\n\n\tinitialize: function PaperScope() {\n\t\tpaper = this;\n\t\tthis.settings = new Base({\n\t\t\tapplyMatrix: true,\n\t\t\tinsertItems: true,\n\t\t\thandleSize: 4,\n\t\t\thitTolerance: 0\n\t\t});\n\t\tthis.project = null;\n\t\tthis.projects = [];\n\t\tthis.tools = [];\n\t\tthis._id = PaperScope._id++;\n\t\tPaperScope._scopes[this._id] = this;\n\t\tvar proto = PaperScope.prototype;\n\t\tif (!this.support) {\n\t\t\tvar ctx = CanvasProvider.getContext(1, 1) || {};\n\t\t\tproto.support = {\n\t\t\t\tnativeDash: 'setLineDash' in ctx || 'mozDash' in ctx,\n\t\t\t\tnativeBlendModes: BlendMode.nativeModes\n\t\t\t};\n\t\t\tCanvasProvider.release(ctx);\n\t\t}\n\t\tif (!this.agent) {\n\t\t\tvar user = self.navigator.userAgent.toLowerCase(),\n\t\t\t\tos = (/(darwin|win|mac|linux|freebsd|sunos)/.exec(user)||[])[0],\n\t\t\t\tplatform = os === 'darwin' ? 'mac' : os,\n\t\t\t\tagent = proto.agent = proto.browser = { platform: platform };\n\t\t\tif (platform)\n\t\t\t\tagent[platform] = true;\n\t\t\tuser.replace(\n\t\t\t\t/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\\/?\\s*([.\\d]+)(?:.*version\\/([.\\d]+))?(?:.*rv\\:v?([.\\d]+))?/g,\n\t\t\t\tfunction(match, n, v1, v2, rv) {\n\t\t\t\t\tif (!agent.chrome) {\n\t\t\t\t\t\tvar v = n === 'opera' ? v2 :\n\t\t\t\t\t\t\t\t/^(node|trident)$/.test(n) ? rv : v1;\n\t\t\t\t\t\tagent.version = v;\n\t\t\t\t\t\tagent.versionNumber = parseFloat(v);\n\t\t\t\t\t\tn = { trident: 'msie', jsdom: 'node' }[n] || n;\n\t\t\t\t\t\tagent.name = n;\n\t\t\t\t\t\tagent[n] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\t\t\tif (agent.chrome)\n\t\t\t\tdelete agent.webkit;\n\t\t\tif (agent.atom)\n\t\t\t\tdelete agent.chrome;\n\t\t}\n\t},\n\n\tversion: \"0.12.18\",\n\n\tgetView: function() {\n\t\tvar project = this.project;\n\t\treturn project && project._view;\n\t},\n\n\tgetPaper: function() {\n\t\treturn this;\n\t},\n\n\texecute: function(code, options) {\n\t\t\tvar exports = paper.PaperScript.execute(code, this, options);\n\t\t\tView.updateFocus();\n\t\t\treturn exports;\n\t},\n\n\tinstall: function(scope) {\n\t\tvar that = this;\n\t\tBase.each(['project', 'view', 'tool'], function(key) {\n\t\t\tBase.define(scope, key, {\n\t\t\t\tconfigurable: true,\n\t\t\t\tget: function() {\n\t\t\t\t\treturn that[key];\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t\tfor (var key in this)\n\t\t\tif (!/^_/.test(key) && this[key])\n\t\t\t\tscope[key] = this[key];\n\t},\n\n\tsetup: function(element) {\n\t\tpaper = this;\n\t\tthis.project = new Project(element);\n\t\treturn this;\n\t},\n\n\tcreateCanvas: function(width, height) {\n\t\treturn CanvasProvider.getCanvas(width, height);\n\t},\n\n\tactivate: function() {\n\t\tpaper = this;\n\t},\n\n\tclear: function() {\n\t\tvar projects = this.projects,\n\t\t\ttools = this.tools;\n\t\tfor (var i = projects.length - 1; i >= 0; i--)\n\t\t\tprojects[i].remove();\n\t\tfor (var i = tools.length - 1; i >= 0; i--)\n\t\t\ttools[i].remove();\n\t},\n\n\tremove: function() {\n\t\tthis.clear();\n\t\tdelete PaperScope._scopes[this._id];\n\t},\n\n\tstatics: new function() {\n\t\tfunction handleAttribute(name) {\n\t\t\tname += 'Attribute';\n\t\t\treturn function(el, attr) {\n\t\t\t\treturn el[name](attr) || el[name]('data-paper-' + attr);\n\t\t\t};\n\t\t}\n\n\t\treturn {\n\t\t\t_scopes: {},\n\t\t\t_id: 0,\n\n\t\t\tget: function(id) {\n\t\t\t\treturn this._scopes[id] || null;\n\t\t\t},\n\n\t\t\tgetAttribute: handleAttribute('get'),\n\t\t\thasAttribute: handleAttribute('has')\n\t\t};\n\t}\n});\n\nvar PaperScopeItem = Base.extend(Emitter, {\n\n\tinitialize: function(activate) {\n\t\tthis._scope = paper;\n\t\tthis._index = this._scope[this._list].push(this) - 1;\n\t\tif (activate || !this._scope[this._reference])\n\t\t\tthis.activate();\n\t},\n\n\tactivate: function() {\n\t\tif (!this._scope)\n\t\t\treturn false;\n\t\tvar prev = this._scope[this._reference];\n\t\tif (prev && prev !== this)\n\t\t\tprev.emit('deactivate');\n\t\tthis._scope[this._reference] = this;\n\t\tthis.emit('activate', prev);\n\t\treturn true;\n\t},\n\n\tisActive: function() {\n\t\treturn this._scope[this._reference] === this;\n\t},\n\n\tremove: function() {\n\t\tif (this._index == null)\n\t\t\treturn false;\n\t\tBase.splice(this._scope[this._list], null, this._index, 1);\n\t\tif (this._scope[this._reference] == this)\n\t\t\tthis._scope[this._reference] = null;\n\t\tthis._scope = null;\n\t\treturn true;\n\t},\n\n\tgetView: function() {\n\t\treturn this._scope.getView();\n\t}\n});\n\nvar CollisionDetection = {\n\tfindItemBoundsCollisions: function(items1, items2, tolerance) {\n\t\tfunction getBounds(items) {\n\t\t\tvar bounds = new Array(items.length);\n\t\t\tfor (var i = 0; i < items.length; i++) {\n\t\t\t\tvar rect = items[i].getBounds();\n\t\t\t\tbounds[i] = [rect.left, rect.top, rect.right, rect.bottom];\n\t\t\t}\n\t\t\treturn bounds;\n\t\t}\n\n\t\tvar bounds1 = getBounds(items1),\n\t\t\tbounds2 = !items2 || items2 === items1\n\t\t\t\t? bounds1\n\t\t\t\t: getBounds(items2);\n\t\treturn this.findBoundsCollisions(bounds1, bounds2, tolerance || 0);\n\t},\n\n\tfindCurveBoundsCollisions: function(curves1, curves2, tolerance, bothAxis) {\n\t\tfunction getBounds(curves) {\n\t\t\tvar min = Math.min,\n\t\t\t\tmax = Math.max,\n\t\t\t\tbounds = new Array(curves.length);\n\t\t\tfor (var i = 0; i < curves.length; i++) {\n\t\t\t\tvar v = curves[i];\n\t\t\t\tbounds[i] = [\n\t\t\t\t\tmin(v[0], v[2], v[4], v[6]),\n\t\t\t\t\tmin(v[1], v[3], v[5], v[7]),\n\t\t\t\t\tmax(v[0], v[2], v[4], v[6]),\n\t\t\t\t\tmax(v[1], v[3], v[5], v[7])\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn bounds;\n\t\t}\n\n\t\tvar bounds1 = getBounds(curves1),\n\t\t\tbounds2 = !curves2 || curves2 === curves1\n\t\t\t\t? bounds1\n\t\t\t\t: getBounds(curves2);\n\t\tif (bothAxis) {\n\t\t\tvar hor = this.findBoundsCollisions(\n\t\t\t\t\tbounds1, bounds2, tolerance || 0, false, true),\n\t\t\t\tver = this.findBoundsCollisions(\n\t\t\t\t\tbounds1, bounds2, tolerance || 0, true, true),\n\t\t\t\tlist = [];\n\t\t\tfor (var i = 0, l = hor.length; i < l; i++) {\n\t\t\t\tlist[i] = { hor: hor[i], ver: ver[i] };\n\t\t\t}\n\t\t\treturn list;\n\t\t}\n\t\treturn this.findBoundsCollisions(bounds1, bounds2, tolerance || 0);\n\t},\n\n\tfindBoundsCollisions: function(boundsA, boundsB, tolerance,\n\t\tsweepVertical, onlySweepAxisCollisions) {\n\t\tvar self = !boundsB || boundsA === boundsB,\n\t\t\tallBounds = self ? boundsA : boundsA.concat(boundsB),\n\t\t\tlengthA = boundsA.length,\n\t\t\tlengthAll = allBounds.length;\n\n\t\tfunction binarySearch(indices, coord, value) {\n\t\t\tvar lo = 0,\n\t\t\t\thi = indices.length;\n\t\t\twhile (lo < hi) {\n\t\t\t\tvar mid = (hi + lo) >>> 1;\n\t\t\t\tif (allBounds[indices[mid]][coord] < value) {\n\t\t\t\t\tlo = mid + 1;\n\t\t\t\t} else {\n\t\t\t\t\thi = mid;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn lo - 1;\n\t\t}\n\n\t\tvar pri0 = sweepVertical ? 1 : 0,\n\t\t\tpri1 = pri0 + 2,\n\t\t\tsec0 = sweepVertical ? 0 : 1,\n\t\t\tsec1 = sec0 + 2;\n\t\tvar allIndicesByPri0 = new Array(lengthAll);\n\t\tfor (var i = 0; i < lengthAll; i++) {\n\t\t\tallIndicesByPri0[i] = i;\n\t\t}\n\t\tallIndicesByPri0.sort(function(i1, i2) {\n\t\t\treturn allBounds[i1][pri0] - allBounds[i2][pri0];\n\t\t});\n\t\tvar activeIndicesByPri1 = [],\n\t\t\tallCollisions = new Array(lengthA);\n\t\tfor (var i = 0; i < lengthAll; i++) {\n\t\t\tvar curIndex = allIndicesByPri0[i],\n\t\t\t\tcurBounds = allBounds[curIndex],\n\t\t\t\torigIndex = self ? curIndex : curIndex - lengthA,\n\t\t\t\tisCurrentA = curIndex < lengthA,\n\t\t\t\tisCurrentB = self || !isCurrentA,\n\t\t\t\tcurCollisions = isCurrentA ? [] : null;\n\t\t\tif (activeIndicesByPri1.length) {\n\t\t\t\tvar pruneCount = binarySearch(activeIndicesByPri1, pri1,\n\t\t\t\t\t\tcurBounds[pri0] - tolerance) + 1;\n\t\t\t\tactiveIndicesByPri1.splice(0, pruneCount);\n\t\t\t\tif (self && onlySweepAxisCollisions) {\n\t\t\t\t\tcurCollisions = curCollisions.concat(activeIndicesByPri1);\n\t\t\t\t\tfor (var j = 0; j < activeIndicesByPri1.length; j++) {\n\t\t\t\t\t\tvar activeIndex = activeIndicesByPri1[j];\n\t\t\t\t\t\tallCollisions[activeIndex].push(origIndex);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvar curSec1 = curBounds[sec1],\n\t\t\t\t\t\tcurSec0 = curBounds[sec0];\n\t\t\t\t\tfor (var j = 0; j < activeIndicesByPri1.length; j++) {\n\t\t\t\t\t\tvar activeIndex = activeIndicesByPri1[j],\n\t\t\t\t\t\t\tactiveBounds = allBounds[activeIndex],\n\t\t\t\t\t\t\tisActiveA = activeIndex < lengthA,\n\t\t\t\t\t\t\tisActiveB = self || activeIndex >= lengthA;\n\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tonlySweepAxisCollisions ||\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\tisCurrentA && isActiveB ||\n\t\t\t\t\t\t\t\tisCurrentB && isActiveA\n\t\t\t\t\t\t\t) && (\n\t\t\t\t\t\t\t\tcurSec1 >= activeBounds[sec0] - tolerance &&\n\t\t\t\t\t\t\t\tcurSec0 <= activeBounds[sec1] + tolerance\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tif (isCurrentA && isActiveB) {\n\t\t\t\t\t\t\t\tcurCollisions.push(\n\t\t\t\t\t\t\t\t\tself ? activeIndex : activeIndex - lengthA);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (isCurrentB && isActiveA) {\n\t\t\t\t\t\t\t\tallCollisions[activeIndex].push(origIndex);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (isCurrentA) {\n\t\t\t\tif (boundsA === boundsB) {\n\t\t\t\t\tcurCollisions.push(curIndex);\n\t\t\t\t}\n\t\t\t\tallCollisions[curIndex] = curCollisions;\n\t\t\t}\n\t\t\tif (activeIndicesByPri1.length) {\n\t\t\t\tvar curPri1 = curBounds[pri1],\n\t\t\t\t\tindex = binarySearch(activeIndicesByPri1, pri1, curPri1);\n\t\t\t\tactiveIndicesByPri1.splice(index + 1, 0, curIndex);\n\t\t\t} else {\n\t\t\t\tactiveIndicesByPri1.push(curIndex);\n\t\t\t}\n\t\t}\n\t\tfor (var i = 0; i < allCollisions.length; i++) {\n\t\t\tvar collisions = allCollisions[i];\n\t\t\tif (collisions) {\n\t\t\t\tcollisions.sort(function(i1, i2) { return i1 - i2; });\n\t\t\t}\n\t\t}\n\t\treturn allCollisions;\n\t}\n};\n\nvar Formatter = Base.extend({\n\tinitialize: function(precision) {\n\t\tthis.precision = Base.pick(precision, 5);\n\t\tthis.multiplier = Math.pow(10, this.precision);\n\t},\n\n\tnumber: function(val) {\n\t\treturn this.precision < 16\n\t\t\t\t? Math.round(val * this.multiplier) / this.multiplier : val;\n\t},\n\n\tpair: function(val1, val2, separator) {\n\t\treturn this.number(val1) + (separator || ',') + this.number(val2);\n\t},\n\n\tpoint: function(val, separator) {\n\t\treturn this.number(val.x) + (separator || ',') + this.number(val.y);\n\t},\n\n\tsize: function(val, separator) {\n\t\treturn this.number(val.width) + (separator || ',')\n\t\t\t\t+ this.number(val.height);\n\t},\n\n\trectangle: function(val, separator) {\n\t\treturn this.point(val, separator) + (separator || ',')\n\t\t\t\t+ this.size(val, separator);\n\t}\n});\n\nFormatter.instance = new Formatter();\n\nvar Numerical = new function() {\n\n\tvar abscissas = [\n\t\t[ 0.5773502691896257645091488],\n\t\t[0,0.7745966692414833770358531],\n\t\t[ 0.3399810435848562648026658,0.8611363115940525752239465],\n\t\t[0,0.5384693101056830910363144,0.9061798459386639927976269],\n\t\t[ 0.2386191860831969086305017,0.6612093864662645136613996,0.9324695142031520278123016],\n\t\t[0,0.4058451513773971669066064,0.7415311855993944398638648,0.9491079123427585245261897],\n\t\t[ 0.1834346424956498049394761,0.5255324099163289858177390,0.7966664774136267395915539,0.9602898564975362316835609],\n\t\t[0,0.3242534234038089290385380,0.6133714327005903973087020,0.8360311073266357942994298,0.9681602395076260898355762],\n\t\t[ 0.1488743389816312108848260,0.4333953941292471907992659,0.6794095682990244062343274,0.8650633666889845107320967,0.9739065285171717200779640],\n\t\t[0,0.2695431559523449723315320,0.5190961292068118159257257,0.7301520055740493240934163,0.8870625997680952990751578,0.9782286581460569928039380],\n\t\t[ 0.1252334085114689154724414,0.3678314989981801937526915,0.5873179542866174472967024,0.7699026741943046870368938,0.9041172563704748566784659,0.9815606342467192506905491],\n\t\t[0,0.2304583159551347940655281,0.4484927510364468528779129,0.6423493394403402206439846,0.8015780907333099127942065,0.9175983992229779652065478,0.9841830547185881494728294],\n\t\t[ 0.1080549487073436620662447,0.3191123689278897604356718,0.5152486363581540919652907,0.6872929048116854701480198,0.8272013150697649931897947,0.9284348836635735173363911,0.9862838086968123388415973],\n\t\t[0,0.2011940939974345223006283,0.3941513470775633698972074,0.5709721726085388475372267,0.7244177313601700474161861,0.8482065834104272162006483,0.9372733924007059043077589,0.9879925180204854284895657],\n\t\t[ 0.0950125098376374401853193,0.2816035507792589132304605,0.4580167776572273863424194,0.6178762444026437484466718,0.7554044083550030338951012,0.8656312023878317438804679,0.9445750230732325760779884,0.9894009349916499325961542]\n\t];\n\n\tvar weights = [\n\t\t[1],\n\t\t[0.8888888888888888888888889,0.5555555555555555555555556],\n\t\t[0.6521451548625461426269361,0.3478548451374538573730639],\n\t\t[0.5688888888888888888888889,0.4786286704993664680412915,0.2369268850561890875142640],\n\t\t[0.4679139345726910473898703,0.3607615730481386075698335,0.1713244923791703450402961],\n\t\t[0.4179591836734693877551020,0.3818300505051189449503698,0.2797053914892766679014678,0.1294849661688696932706114],\n\t\t[0.3626837833783619829651504,0.3137066458778872873379622,0.2223810344533744705443560,0.1012285362903762591525314],\n\t\t[0.3302393550012597631645251,0.3123470770400028400686304,0.2606106964029354623187429,0.1806481606948574040584720,0.0812743883615744119718922],\n\t\t[0.2955242247147528701738930,0.2692667193099963550912269,0.2190863625159820439955349,0.1494513491505805931457763,0.0666713443086881375935688],\n\t\t[0.2729250867779006307144835,0.2628045445102466621806889,0.2331937645919904799185237,0.1862902109277342514260976,0.1255803694649046246346943,0.0556685671161736664827537],\n\t\t[0.2491470458134027850005624,0.2334925365383548087608499,0.2031674267230659217490645,0.1600783285433462263346525,0.1069393259953184309602547,0.0471753363865118271946160],\n\t\t[0.2325515532308739101945895,0.2262831802628972384120902,0.2078160475368885023125232,0.1781459807619457382800467,0.1388735102197872384636018,0.0921214998377284479144218,0.0404840047653158795200216],\n\t\t[0.2152638534631577901958764,0.2051984637212956039659241,0.1855383974779378137417166,0.1572031671581935345696019,0.1215185706879031846894148,0.0801580871597602098056333,0.0351194603317518630318329],\n\t\t[0.2025782419255612728806202,0.1984314853271115764561183,0.1861610000155622110268006,0.1662692058169939335532009,0.1395706779261543144478048,0.1071592204671719350118695,0.0703660474881081247092674,0.0307532419961172683546284],\n\t\t[0.1894506104550684962853967,0.1826034150449235888667637,0.1691565193950025381893121,0.1495959888165767320815017,0.1246289712555338720524763,0.0951585116824927848099251,0.0622535239386478928628438,0.0271524594117540948517806]\n\t];\n\n\tvar abs = Math.abs,\n\t\tsqrt = Math.sqrt,\n\t\tpow = Math.pow,\n\t\tlog2 = Math.log2 || function(x) {\n\t\t\treturn Math.log(x) * Math.LOG2E;\n\t\t},\n\t\tEPSILON = 1e-12,\n\t\tMACHINE_EPSILON = 1.12e-16;\n\n\tfunction clamp(value, min, max) {\n\t\treturn value < min ? min : value > max ? max : value;\n\t}\n\n\tfunction getDiscriminant(a, b, c) {\n\t\tfunction split(v) {\n\t\t\tvar x = v * 134217729,\n\t\t\t\ty = v - x,\n\t\t\t\thi = y + x,\n\t\t\t\tlo = v - hi;\n\t\t\treturn [hi, lo];\n\t\t}\n\n\t\tvar D = b * b - a * c,\n\t\t\tE = b * b + a * c;\n\t\tif (abs(D) * 3 < E) {\n\t\t\tvar ad = split(a),\n\t\t\t\tbd = split(b),\n\t\t\t\tcd = split(c),\n\t\t\t\tp = b * b,\n\t\t\t\tdp = (bd[0] * bd[0] - p + 2 * bd[0] * bd[1]) + bd[1] * bd[1],\n\t\t\t\tq = a * c,\n\t\t\t\tdq = (ad[0] * cd[0] - q + ad[0] * cd[1] + ad[1] * cd[0])\n\t\t\t\t\t\t+ ad[1] * cd[1];\n\t\t\tD = (p - q) + (dp - dq);\n\t\t}\n\t\treturn D;\n\t}\n\n\tfunction getNormalizationFactor() {\n\t\tvar norm = Math.max.apply(Math, arguments);\n\t\treturn norm && (norm < 1e-8 || norm > 1e8)\n\t\t\t\t? pow(2, -Math.round(log2(norm)))\n\t\t\t\t: 0;\n\t}\n\n\treturn {\n\t\tEPSILON: EPSILON,\n\t\tMACHINE_EPSILON: MACHINE_EPSILON,\n\t\tCURVETIME_EPSILON: 1e-8,\n\t\tGEOMETRIC_EPSILON: 1e-7,\n\t\tTRIGONOMETRIC_EPSILON: 1e-8,\n\t\tANGULAR_EPSILON: 1e-5,\n\t\tKAPPA: 4 * (sqrt(2) - 1) / 3,\n\n\t\tisZero: function(val) {\n\t\t\treturn val >= -EPSILON && val <= EPSILON;\n\t\t},\n\n\t\tisMachineZero: function(val) {\n\t\t\treturn val >= -MACHINE_EPSILON && val <= MACHINE_EPSILON;\n\t\t},\n\n\t\tclamp: clamp,\n\n\t\tintegrate: function(f, a, b, n) {\n\t\t\tvar x = abscissas[n - 2],\n\t\t\t\tw = weights[n - 2],\n\t\t\t\tA = (b - a) * 0.5,\n\t\t\t\tB = A + a,\n\t\t\t\ti = 0,\n\t\t\t\tm = (n + 1) >> 1,\n\t\t\t\tsum = n & 1 ? w[i++] * f(B) : 0;\n\t\t\twhile (i < m) {\n\t\t\t\tvar Ax = A * x[i];\n\t\t\t\tsum += w[i++] * (f(B + Ax) + f(B - Ax));\n\t\t\t}\n\t\t\treturn A * sum;\n\t\t},\n\n\t\tfindRoot: function(f, df, x, a, b, n, tolerance) {\n\t\t\tfor (var i = 0; i < n; i++) {\n\t\t\t\tvar fx = f(x),\n\t\t\t\t\tdx = fx / df(x),\n\t\t\t\t\tnx = x - dx;\n\t\t\t\tif (abs(dx) < tolerance) {\n\t\t\t\t\tx = nx;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (fx > 0) {\n\t\t\t\t\tb = x;\n\t\t\t\t\tx = nx <= a ? (a + b) * 0.5 : nx;\n\t\t\t\t} else {\n\t\t\t\t\ta = x;\n\t\t\t\t\tx = nx >= b ? (a + b) * 0.5 : nx;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn clamp(x, a, b);\n\t\t},\n\n\t\tsolveQuadratic: function(a, b, c, roots, min, max) {\n\t\t\tvar x1, x2 = Infinity;\n\t\t\tif (abs(a) < EPSILON) {\n\t\t\t\tif (abs(b) < EPSILON)\n\t\t\t\t\treturn abs(c) < EPSILON ? -1 : 0;\n\t\t\t\tx1 = -c / b;\n\t\t\t} else {\n\t\t\t\tb *= -0.5;\n\t\t\t\tvar D = getDiscriminant(a, b, c);\n\t\t\t\tif (D && abs(D) < MACHINE_EPSILON) {\n\t\t\t\t\tvar f = getNormalizationFactor(abs(a), abs(b), abs(c));\n\t\t\t\t\tif (f) {\n\t\t\t\t\t\ta *= f;\n\t\t\t\t\t\tb *= f;\n\t\t\t\t\t\tc *= f;\n\t\t\t\t\t\tD = getDiscriminant(a, b, c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (D >= -MACHINE_EPSILON) {\n\t\t\t\t\tvar Q = D < 0 ? 0 : sqrt(D),\n\t\t\t\t\t\tR = b + (b < 0 ? -Q : Q);\n\t\t\t\t\tif (R === 0) {\n\t\t\t\t\t\tx1 = c / a;\n\t\t\t\t\t\tx2 = -x1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tx1 = R / a;\n\t\t\t\t\t\tx2 = c / R;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar count = 0,\n\t\t\t\tboundless = min == null,\n\t\t\t\tminB = min - EPSILON,\n\t\t\t\tmaxB = max + EPSILON;\n\t\t\tif (isFinite(x1) && (boundless || x1 > minB && x1 < maxB))\n\t\t\t\troots[count++] = boundless ? x1 : clamp(x1, min, max);\n\t\t\tif (x2 !== x1\n\t\t\t\t\t&& isFinite(x2) && (boundless || x2 > minB && x2 < maxB))\n\t\t\t\troots[count++] = boundless ? x2 : clamp(x2, min, max);\n\t\t\treturn count;\n\t\t},\n\n\t\tsolveCubic: function(a, b, c, d, roots, min, max) {\n\t\t\tvar f = getNormalizationFactor(abs(a), abs(b), abs(c), abs(d)),\n\t\t\t\tx, b1, c2, qd, q;\n\t\t\tif (f) {\n\t\t\t\ta *= f;\n\t\t\t\tb *= f;\n\t\t\t\tc *= f;\n\t\t\t\td *= f;\n\t\t\t}\n\n\t\t\tfunction evaluate(x0) {\n\t\t\t\tx = x0;\n\t\t\t\tvar tmp = a * x;\n\t\t\t\tb1 = tmp + b;\n\t\t\t\tc2 = b1 * x + c;\n\t\t\t\tqd = (tmp + b1) * x + c2;\n\t\t\t\tq = c2 * x + d;\n\t\t\t}\n\n\t\t\tif (abs(a) < EPSILON) {\n\t\t\t\ta = b;\n\t\t\t\tb1 = c;\n\t\t\t\tc2 = d;\n\t\t\t\tx = Infinity;\n\t\t\t} else if (abs(d) < EPSILON) {\n\t\t\t\tb1 = b;\n\t\t\t\tc2 = c;\n\t\t\t\tx = 0;\n\t\t\t} else {\n\t\t\t\tevaluate(-(b / a) / 3);\n\t\t\t\tvar t = q / a,\n\t\t\t\t\tr = pow(abs(t), 1/3),\n\t\t\t\t\ts = t < 0 ? -1 : 1,\n\t\t\t\t\ttd = -qd / a,\n\t\t\t\t\trd = td > 0 ? 1.324717957244746 * Math.max(r, sqrt(td)) : r,\n\t\t\t\t\tx0 = x - s * rd;\n\t\t\t\tif (x0 !== x) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tevaluate(x0);\n\t\t\t\t\t\tx0 = qd === 0 ? x : x - q / qd / (1 + MACHINE_EPSILON);\n\t\t\t\t\t} while (s * x0 > s * x);\n\t\t\t\t\tif (abs(a) * x * x > abs(d / x)) {\n\t\t\t\t\t\tc2 = -d / x;\n\t\t\t\t\t\tb1 = (c2 - c) / x;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar count = Numerical.solveQuadratic(a, b1, c2, roots, min, max),\n\t\t\t\tboundless = min == null;\n\t\t\tif (isFinite(x) && (count === 0\n\t\t\t\t\t|| count > 0 && x !== roots[0] && x !== roots[1])\n\t\t\t\t\t&& (boundless || x > min - EPSILON && x < max + EPSILON))\n\t\t\t\troots[count++] = boundless ? x : clamp(x, min, max);\n\t\t\treturn count;\n\t\t}\n\t};\n};\n\nvar UID = {\n\t_id: 1,\n\t_pools: {},\n\n\tget: function(name) {\n\t\tif (name) {\n\t\t\tvar pool = this._pools[name];\n\t\t\tif (!pool)\n\t\t\t\tpool = this._pools[name] = { _id: 1 };\n\t\t\treturn pool._id++;\n\t\t} else {\n\t\t\treturn this._id++;\n\t\t}\n\t}\n};\n\nvar Point = Base.extend({\n\t_class: 'Point',\n\t_readIndex: true,\n\n\tinitialize: function Point(arg0, arg1) {\n\t\tvar type = typeof arg0,\n\t\t\treading = this.__read,\n\t\t\tread = 0;\n\t\tif (type === 'number') {\n\t\t\tvar hasY = typeof arg1 === 'number';\n\t\t\tthis._set(arg0, hasY ? arg1 : arg0);\n\t\t\tif (reading)\n\t\t\t\tread = hasY ? 2 : 1;\n\t\t} else if (type === 'undefined' || arg0 === null) {\n\t\t\tthis._set(0, 0);\n\t\t\tif (reading)\n\t\t\t\tread = arg0 === null ? 1 : 0;\n\t\t} else {\n\t\t\tvar obj = type === 'string' ? arg0.split(/[\\s,]+/) || [] : arg0;\n\t\t\tread = 1;\n\t\t\tif (Array.isArray(obj)) {\n\t\t\t\tthis._set(+obj[0], +(obj.length > 1 ? obj[1] : obj[0]));\n\t\t\t} else if ('x' in obj) {\n\t\t\t\tthis._set(obj.x || 0, obj.y || 0);\n\t\t\t} else if ('width' in obj) {\n\t\t\t\tthis._set(obj.width || 0, obj.height || 0);\n\t\t\t} else if ('angle' in obj) {\n\t\t\t\tthis._set(obj.length || 0, 0);\n\t\t\t\tthis.setAngle(obj.angle || 0);\n\t\t\t} else {\n\t\t\t\tthis._set(0, 0);\n\t\t\t\tread = 0;\n\t\t\t}\n\t\t}\n\t\tif (reading)\n\t\t\tthis.__read = read;\n\t\treturn this;\n\t},\n\n\tset: '#initialize',\n\n\t_set: function(x, y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\treturn this;\n\t},\n\n\tequals: function(point) {\n\t\treturn this === point || point\n\t\t\t\t&& (this.x === point.x && this.y === point.y\n\t\t\t\t\t|| Array.isArray(point)\n\t\t\t\t\t\t&& this.x === point[0] && this.y === point[1])\n\t\t\t\t|| false;\n\t},\n\n\tclone: function() {\n\t\treturn new Point(this.x, this.y);\n\t},\n\n\ttoString: function() {\n\t\tvar f = Formatter.instance;\n\t\treturn '{ x: ' + f.number(this.x) + ', y: ' + f.number(this.y) + ' }';\n\t},\n\n\t_serialize: function(options) {\n\t\tvar f = options.formatter;\n\t\treturn [f.number(this.x), f.number(this.y)];\n\t},\n\n\tgetLength: function() {\n\t\treturn Math.sqrt(this.x * this.x + this.y * this.y);\n\t},\n\n\tsetLength: function(length) {\n\t\tif (this.isZero()) {\n\t\t\tvar angle = this._angle || 0;\n\t\t\tthis._set(\n\t\t\t\tMath.cos(angle) * length,\n\t\t\t\tMath.sin(angle) * length\n\t\t\t);\n\t\t} else {\n\t\t\tvar scale = length / this.getLength();\n\t\t\tif (Numerical.isZero(scale))\n\t\t\t\tthis.getAngle();\n\t\t\tthis._set(\n\t\t\t\tthis.x * scale,\n\t\t\t\tthis.y * scale\n\t\t\t);\n\t\t}\n\t},\n\tgetAngle: function() {\n\t\treturn this.getAngleInRadians.apply(this, arguments) * 180 / Math.PI;\n\t},\n\n\tsetAngle: function(angle) {\n\t\tthis.setAngleInRadians.call(this, angle * Math.PI / 180);\n\t},\n\n\tgetAngleInDegrees: '#getAngle',\n\tsetAngleInDegrees: '#setAngle',\n\n\tgetAngleInRadians: function() {\n\t\tif (!arguments.length) {\n\t\t\treturn this.isZero()\n\t\t\t\t\t? this._angle || 0\n\t\t\t\t\t: this._angle = Math.atan2(this.y, this.x);\n\t\t} else {\n\t\t\tvar point = Point.read(arguments),\n\t\t\t\tdiv = this.getLength() * point.getLength();\n\t\t\tif (Numerical.isZero(div)) {\n\t\t\t\treturn NaN;\n\t\t\t} else {\n\t\t\t\tvar a = this.dot(point) / div;\n\t\t\t\treturn Math.acos(a < -1 ? -1 : a > 1 ? 1 : a);\n\t\t\t}\n\t\t}\n\t},\n\n\tsetAngleInRadians: function(angle) {\n\t\tthis._angle = angle;\n\t\tif (!this.isZero()) {\n\t\t\tvar length = this.getLength();\n\t\t\tthis._set(\n\t\t\t\tMath.cos(angle) * length,\n\t\t\t\tMath.sin(angle) * length\n\t\t\t);\n\t\t}\n\t},\n\n\tgetQuadrant: function() {\n\t\treturn this.x >= 0 ? this.y >= 0 ? 1 : 4 : this.y >= 0 ? 2 : 3;\n\t}\n}, {\n\tbeans: false,\n\n\tgetDirectedAngle: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn Math.atan2(this.cross(point), this.dot(point)) * 180 / Math.PI;\n\t},\n\n\tgetDistance: function() {\n\t\tvar args = arguments,\n\t\t\tpoint = Point.read(args),\n\t\t\tx = point.x - this.x,\n\t\t\ty = point.y - this.y,\n\t\t\td = x * x + y * y,\n\t\t\tsquared = Base.read(args);\n\t\treturn squared ? d : Math.sqrt(d);\n\t},\n\n\tnormalize: function(length) {\n\t\tif (length === undefined)\n\t\t\tlength = 1;\n\t\tvar current = this.getLength(),\n\t\t\tscale = current !== 0 ? length / current : 0,\n\t\t\tpoint = new Point(this.x * scale, this.y * scale);\n\t\tif (scale >= 0)\n\t\t\tpoint._angle = this._angle;\n\t\treturn point;\n\t},\n\n\trotate: function(angle, center) {\n\t\tif (angle === 0)\n\t\t\treturn this.clone();\n\t\tangle = angle * Math.PI / 180;\n\t\tvar point = center ? this.subtract(center) : this,\n\t\t\tsin = Math.sin(angle),\n\t\t\tcos = Math.cos(angle);\n\t\tpoint = new Point(\n\t\t\tpoint.x * cos - point.y * sin,\n\t\t\tpoint.x * sin + point.y * cos\n\t\t);\n\t\treturn center ? point.add(center) : point;\n\t},\n\n\ttransform: function(matrix) {\n\t\treturn matrix ? matrix._transformPoint(this) : this;\n\t},\n\n\tadd: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn new Point(this.x + point.x, this.y + point.y);\n\t},\n\n\tsubtract: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn new Point(this.x - point.x, this.y - point.y);\n\t},\n\n\tmultiply: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn new Point(this.x * point.x, this.y * point.y);\n\t},\n\n\tdivide: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn new Point(this.x / point.x, this.y / point.y);\n\t},\n\n\tmodulo: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn new Point(this.x % point.x, this.y % point.y);\n\t},\n\n\tnegate: function() {\n\t\treturn new Point(-this.x, -this.y);\n\t},\n\n\tisInside: function() {\n\t\treturn Rectangle.read(arguments).contains(this);\n\t},\n\n\tisClose: function() {\n\t\tvar args = arguments,\n\t\t\tpoint = Point.read(args),\n\t\t\ttolerance = Base.read(args);\n\t\treturn this.getDistance(point) <= tolerance;\n\t},\n\n\tisCollinear: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn Point.isCollinear(this.x, this.y, point.x, point.y);\n\t},\n\n\tisColinear: '#isCollinear',\n\n\tisOrthogonal: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn Point.isOrthogonal(this.x, this.y, point.x, point.y);\n\t},\n\n\tisZero: function() {\n\t\tvar isZero = Numerical.isZero;\n\t\treturn isZero(this.x) && isZero(this.y);\n\t},\n\n\tisNaN: function() {\n\t\treturn isNaN(this.x) || isNaN(this.y);\n\t},\n\n\tisInQuadrant: function(q) {\n\t\treturn this.x * (q > 1 && q < 4 ? -1 : 1) >= 0\n\t\t\t&& this.y * (q > 2 ? -1 : 1) >= 0;\n\t},\n\n\tdot: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn this.x * point.x + this.y * point.y;\n\t},\n\n\tcross: function() {\n\t\tvar point = Point.read(arguments);\n\t\treturn this.x * point.y - this.y * point.x;\n\t},\n\n\tproject: function() {\n\t\tvar point = Point.read(arguments),\n\t\t\tscale = point.isZero() ? 0 : this.dot(point) / point.dot(point);\n\t\treturn new Point(\n\t\t\tpoint.x * scale,\n\t\t\tpoint.y * scale\n\t\t);\n\t},\n\n\tstatics: {\n\t\tmin: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tpoint1 = Point.read(args),\n\t\t\t\tpoint2 = Point.read(args);\n\t\t\treturn new Point(\n\t\t\t\tMath.min(point1.x, point2.x),\n\t\t\t\tMath.min(point1.y, point2.y)\n\t\t\t);\n\t\t},\n\n\t\tmax: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tpoint1 = Point.read(args),\n\t\t\t\tpoint2 = Point.read(args);\n\t\t\treturn new Point(\n\t\t\t\tMath.max(point1.x, point2.x),\n\t\t\t\tMath.max(point1.y, point2.y)\n\t\t\t);\n\t\t},\n\n\t\trandom: function() {\n\t\t\treturn new Point(Math.random(), Math.random());\n\t\t},\n\n\t\tisCollinear: function(x1, y1, x2, y2) {\n\t\t\treturn Math.abs(x1 * y2 - y1 * x2)\n\t\t\t\t\t<= Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2))\n\t\t\t\t\t\t* 1e-8;\n\t\t},\n\n\t\tisOrthogonal: function(x1, y1, x2, y2) {\n\t\t\treturn Math.abs(x1 * x2 + y1 * y2)\n\t\t\t\t\t<= Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2))\n\t\t\t\t\t\t* 1e-8;\n\t\t}\n\t}\n}, Base.each(['round', 'ceil', 'floor', 'abs'], function(key) {\n\tvar op = Math[key];\n\tthis[key] = function() {\n\t\treturn new Point(op(this.x), op(this.y));\n\t};\n}, {}));\n\nvar LinkedPoint = Point.extend({\n\tinitialize: function Point(x, y, owner, setter) {\n\t\tthis._x = x;\n\t\tthis._y = y;\n\t\tthis._owner = owner;\n\t\tthis._setter = setter;\n\t},\n\n\t_set: function(x, y, _dontNotify) {\n\t\tthis._x = x;\n\t\tthis._y = y;\n\t\tif (!_dontNotify)\n\t\t\tthis._owner[this._setter](this);\n\t\treturn this;\n\t},\n\n\tgetX: function() {\n\t\treturn this._x;\n\t},\n\n\tsetX: function(x) {\n\t\tthis._x = x;\n\t\tthis._owner[this._setter](this);\n\t},\n\n\tgetY: function() {\n\t\treturn this._y;\n\t},\n\n\tsetY: function(y) {\n\t\tthis._y = y;\n\t\tthis._owner[this._setter](this);\n\t},\n\n\tisSelected: function() {\n\t\treturn !!(this._owner._selection & this._getSelection());\n\t},\n\n\tsetSelected: function(selected) {\n\t\tthis._owner._changeSelection(this._getSelection(), selected);\n\t},\n\n\t_getSelection: function() {\n\t\treturn this._setter === 'setPosition' ? 4 : 0;\n\t}\n});\n\nvar Size = Base.extend({\n\t_class: 'Size',\n\t_readIndex: true,\n\n\tinitialize: function Size(arg0, arg1) {\n\t\tvar type = typeof arg0,\n\t\t\treading = this.__read,\n\t\t\tread = 0;\n\t\tif (type === 'number') {\n\t\t\tvar hasHeight = typeof arg1 === 'number';\n\t\t\tthis._set(arg0, hasHeight ? arg1 : arg0);\n\t\t\tif (reading)\n\t\t\t\tread = hasHeight ? 2 : 1;\n\t\t} else if (type === 'undefined' || arg0 === null) {\n\t\t\tthis._set(0, 0);\n\t\t\tif (reading)\n\t\t\t\tread = arg0 === null ? 1 : 0;\n\t\t} else {\n\t\t\tvar obj = type === 'string' ? arg0.split(/[\\s,]+/) || [] : arg0;\n\t\t\tread = 1;\n\t\t\tif (Array.isArray(obj)) {\n\t\t\t\tthis._set(+obj[0], +(obj.length > 1 ? obj[1] : obj[0]));\n\t\t\t} else if ('width' in obj) {\n\t\t\t\tthis._set(obj.width || 0, obj.height || 0);\n\t\t\t} else if ('x' in obj) {\n\t\t\t\tthis._set(obj.x || 0, obj.y || 0);\n\t\t\t} else {\n\t\t\t\tthis._set(0, 0);\n\t\t\t\tread = 0;\n\t\t\t}\n\t\t}\n\t\tif (reading)\n\t\t\tthis.__read = read;\n\t\treturn this;\n\t},\n\n\tset: '#initialize',\n\n\t_set: function(width, height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\treturn this;\n\t},\n\n\tequals: function(size) {\n\t\treturn size === this || size && (this.width === size.width\n\t\t\t\t&& this.height === size.height\n\t\t\t\t|| Array.isArray(size) && this.width === size[0]\n\t\t\t\t\t&& this.height === size[1]) || false;\n\t},\n\n\tclone: function() {\n\t\treturn new Size(this.width, this.height);\n\t},\n\n\ttoString: function() {\n\t\tvar f = Formatter.instance;\n\t\treturn '{ width: ' + f.number(this.width)\n\t\t\t\t+ ', height: ' + f.number(this.height) + ' }';\n\t},\n\n\t_serialize: function(options) {\n\t\tvar f = options.formatter;\n\t\treturn [f.number(this.width),\n\t\t\t\tf.number(this.height)];\n\t},\n\n\tadd: function() {\n\t\tvar size = Size.read(arguments);\n\t\treturn new Size(this.width + size.width, this.height + size.height);\n\t},\n\n\tsubtract: function() {\n\t\tvar size = Size.read(arguments);\n\t\treturn new Size(this.width - size.width, this.height - size.height);\n\t},\n\n\tmultiply: function() {\n\t\tvar size = Size.read(arguments);\n\t\treturn new Size(this.width * size.width, this.height * size.height);\n\t},\n\n\tdivide: function() {\n\t\tvar size = Size.read(arguments);\n\t\treturn new Size(this.width / size.width, this.height / size.height);\n\t},\n\n\tmodulo: function() {\n\t\tvar size = Size.read(arguments);\n\t\treturn new Size(this.width % size.width, this.height % size.height);\n\t},\n\n\tnegate: function() {\n\t\treturn new Size(-this.width, -this.height);\n\t},\n\n\tisZero: function() {\n\t\tvar isZero = Numerical.isZero;\n\t\treturn isZero(this.width) && isZero(this.height);\n\t},\n\n\tisNaN: function() {\n\t\treturn isNaN(this.width) || isNaN(this.height);\n\t},\n\n\tstatics: {\n\t\tmin: function(size1, size2) {\n\t\t\treturn new Size(\n\t\t\t\tMath.min(size1.width, size2.width),\n\t\t\t\tMath.min(size1.height, size2.height));\n\t\t},\n\n\t\tmax: function(size1, size2) {\n\t\t\treturn new Size(\n\t\t\t\tMath.max(size1.width, size2.width),\n\t\t\t\tMath.max(size1.height, size2.height));\n\t\t},\n\n\t\trandom: function() {\n\t\t\treturn new Size(Math.random(), Math.random());\n\t\t}\n\t}\n}, Base.each(['round', 'ceil', 'floor', 'abs'], function(key) {\n\tvar op = Math[key];\n\tthis[key] = function() {\n\t\treturn new Size(op(this.width), op(this.height));\n\t};\n}, {}));\n\nvar LinkedSize = Size.extend({\n\tinitialize: function Size(width, height, owner, setter) {\n\t\tthis._width = width;\n\t\tthis._height = height;\n\t\tthis._owner = owner;\n\t\tthis._setter = setter;\n\t},\n\n\t_set: function(width, height, _dontNotify) {\n\t\tthis._width = width;\n\t\tthis._height = height;\n\t\tif (!_dontNotify)\n\t\t\tthis._owner[this._setter](this);\n\t\treturn this;\n\t},\n\n\tgetWidth: function() {\n\t\treturn this._width;\n\t},\n\n\tsetWidth: function(width) {\n\t\tthis._width = width;\n\t\tthis._owner[this._setter](this);\n\t},\n\n\tgetHeight: function() {\n\t\treturn this._height;\n\t},\n\n\tsetHeight: function(height) {\n\t\tthis._height = height;\n\t\tthis._owner[this._setter](this);\n\t}\n});\n\nvar Rectangle = Base.extend({\n\t_class: 'Rectangle',\n\t_readIndex: true,\n\tbeans: true,\n\n\tinitialize: function Rectangle(arg0, arg1, arg2, arg3) {\n\t\tvar args = arguments,\n\t\t\ttype = typeof arg0,\n\t\t\tread;\n\t\tif (type === 'number') {\n\t\t\tthis._set(arg0, arg1, arg2, arg3);\n\t\t\tread = 4;\n\t\t} else if (type === 'undefined' || arg0 === null) {\n\t\t\tthis._set(0, 0, 0, 0);\n\t\t\tread = arg0 === null ? 1 : 0;\n\t\t} else if (args.length === 1) {\n\t\t\tif (Array.isArray(arg0)) {\n\t\t\t\tthis._set.apply(this, arg0);\n\t\t\t\tread = 1;\n\t\t\t} else if (arg0.x !== undefined || arg0.width !== undefined) {\n\t\t\t\tthis._set(arg0.x || 0, arg0.y || 0,\n\t\t\t\t\t\targ0.width || 0, arg0.height || 0);\n\t\t\t\tread = 1;\n\t\t\t} else if (arg0.from === undefined && arg0.to === undefined) {\n\t\t\t\tthis._set(0, 0, 0, 0);\n\t\t\t\tif (Base.readSupported(args, this)) {\n\t\t\t\t\tread = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (read === undefined) {\n\t\t\tvar frm = Point.readNamed(args, 'from'),\n\t\t\t\tnext = Base.peek(args),\n\t\t\t\tx = frm.x,\n\t\t\t\ty = frm.y,\n\t\t\t\twidth,\n\t\t\t\theight;\n\t\t\tif (next && next.x !== undefined || Base.hasNamed(args, 'to')) {\n\t\t\t\tvar to = Point.readNamed(args, 'to');\n\t\t\t\twidth = to.x - x;\n\t\t\t\theight = to.y - y;\n\t\t\t\tif (width < 0) {\n\t\t\t\t\tx = to.x;\n\t\t\t\t\twidth = -width;\n\t\t\t\t}\n\t\t\t\tif (height < 0) {\n\t\t\t\t\ty = to.y;\n\t\t\t\t\theight = -height;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvar size = Size.read(args);\n\t\t\t\twidth = size.width;\n\t\t\t\theight = size.height;\n\t\t\t}\n\t\t\tthis._set(x, y, width, height);\n\t\t\tread = args.__index;\n\t\t}\n\t\tvar filtered = args.__filtered;\n\t\tif (filtered)\n\t\t\tthis.__filtered = filtered;\n\t\tif (this.__read)\n\t\t\tthis.__read = read;\n\t\treturn this;\n\t},\n\n\tset: '#initialize',\n\n\t_set: function(x, y, width, height) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\treturn this;\n\t},\n\n\tclone: function() {\n\t\treturn new Rectangle(this.x, this.y, this.width, this.height);\n\t},\n\n\tequals: function(rect) {\n\t\tvar rt = Base.isPlainValue(rect)\n\t\t\t\t? Rectangle.read(arguments)\n\t\t\t\t: rect;\n\t\treturn rt === this\n\t\t\t\t|| rt && this.x === rt.x && this.y === rt.y\n\t\t\t\t\t&& this.width === rt.width && this.height === rt.height\n\t\t\t\t|| false;\n\t},\n\n\ttoString: function() {\n\t\tvar f = Formatter.instance;\n\t\treturn '{ x: ' + f.number(this.x)\n\t\t\t\t+ ', y: ' + f.number(this.y)\n\t\t\t\t+ ', width: ' + f.number(this.width)\n\t\t\t\t+ ', height: ' + f.number(this.height)\n\t\t\t\t+ ' }';\n\t},\n\n\t_serialize: function(options) {\n\t\tvar f = options.formatter;\n\t\treturn [f.number(this.x),\n\t\t\t\tf.number(this.y),\n\t\t\t\tf.number(this.width),\n\t\t\t\tf.number(this.height)];\n\t},\n\n\tgetPoint: function(_dontLink) {\n\t\tvar ctor = _dontLink ? Point : LinkedPoint;\n\t\treturn new ctor(this.x, this.y, this, 'setPoint');\n\t},\n\n\tsetPoint: function() {\n\t\tvar point = Point.read(arguments);\n\t\tthis.x = point.x;\n\t\tthis.y = point.y;\n\t},\n\n\tgetSize: function(_dontLink) {\n\t\tvar ctor = _dontLink ? Size : LinkedSize;\n\t\treturn new ctor(this.width, this.height, this, 'setSize');\n\t},\n\n\t_fw: 1,\n\t_fh: 1,\n\n\tsetSize: function() {\n\t\tvar size = Size.read(arguments),\n\t\t\tsx = this._sx,\n\t\t\tsy = this._sy,\n\t\t\tw = size.width,\n\t\t\th = size.height;\n\t\tif (sx) {\n\t\t\tthis.x += (this.width - w) * sx;\n\t\t}\n\t\tif (sy) {\n\t\t\tthis.y += (this.height - h) * sy;\n\t\t}\n\t\tthis.width = w;\n\t\tthis.height = h;\n\t\tthis._fw = this._fh = 1;\n\t},\n\n\tgetLeft: function() {\n\t\treturn this.x;\n\t},\n\n\tsetLeft: function(left) {\n\t\tif (!this._fw) {\n\t\t\tvar amount = left - this.x;\n\t\t\tthis.width -= this._sx === 0.5 ? amount * 2 : amount;\n\t\t}\n\t\tthis.x = left;\n\t\tthis._sx = this._fw = 0;\n\t},\n\n\tgetTop: function() {\n\t\treturn this.y;\n\t},\n\n\tsetTop: function(top) {\n\t\tif (!this._fh) {\n\t\t\tvar amount = top - this.y;\n\t\t\tthis.height -= this._sy === 0.5 ? amount * 2 : amount;\n\t\t}\n\t\tthis.y = top;\n\t\tthis._sy = this._fh = 0;\n\t},\n\n\tgetRight: function() {\n\t\treturn this.x + this.width;\n\t},\n\n\tsetRight: function(right) {\n\t\tif (!this._fw) {\n\t\t\tvar amount = right - this.x;\n\t\t\tthis.width = this._sx === 0.5 ? amount * 2 : amount;\n\t\t}\n\t\tthis.x = right - this.width;\n\t\tthis._sx = 1;\n\t\tthis._fw = 0;\n\t},\n\n\tgetBottom: function() {\n\t\treturn this.y + this.height;\n\t},\n\n\tsetBottom: function(bottom) {\n\t\tif (!this._fh) {\n\t\t\tvar amount = bottom - this.y;\n\t\t\tthis.height = this._sy === 0.5 ? amount * 2 : amount;\n\t\t}\n\t\tthis.y = bottom - this.height;\n\t\tthis._sy = 1;\n\t\tthis._fh = 0;\n\t},\n\n\tgetCenterX: function() {\n\t\treturn this.x + this.width / 2;\n\t},\n\n\tsetCenterX: function(x) {\n\t\tif (this._fw || this._sx === 0.5) {\n\t\t\tthis.x = x - this.width / 2;\n\t\t} else {\n\t\t\tif (this._sx) {\n\t\t\t\tthis.x += (x - this.x) * 2 * this._sx;\n\t\t\t}\n\t\t\tthis.width = (x - this.x) * 2;\n\t\t}\n\t\tthis._sx = 0.5;\n\t\tthis._fw = 0;\n\t},\n\n\tgetCenterY: function() {\n\t\treturn this.y + this.height / 2;\n\t},\n\n\tsetCenterY: function(y) {\n\t\tif (this._fh || this._sy === 0.5) {\n\t\t\tthis.y = y - this.height / 2;\n\t\t} else {\n\t\t\tif (this._sy) {\n\t\t\t\tthis.y += (y - this.y) * 2 * this._sy;\n\t\t\t}\n\t\t\tthis.height = (y - this.y) * 2;\n\t\t}\n\t\tthis._sy = 0.5;\n\t\tthis._fh = 0;\n\t},\n\n\tgetCenter: function(_dontLink) {\n\t\tvar ctor = _dontLink ? Point : LinkedPoint;\n\t\treturn new ctor(this.getCenterX(), this.getCenterY(), this, 'setCenter');\n\t},\n\n\tsetCenter: function() {\n\t\tvar point = Point.read(arguments);\n\t\tthis.setCenterX(point.x);\n\t\tthis.setCenterY(point.y);\n\t\treturn this;\n\t},\n\n\tgetArea: function() {\n\t\treturn this.width * this.height;\n\t},\n\n\tisEmpty: function() {\n\t\treturn this.width === 0 || this.height === 0;\n\t},\n\n\tcontains: function(arg) {\n\t\treturn arg && arg.width !== undefined\n\t\t\t\t|| (Array.isArray(arg) ? arg : arguments).length === 4\n\t\t\t\t? this._containsRectangle(Rectangle.read(arguments))\n\t\t\t\t: this._containsPoint(Point.read(arguments));\n\t},\n\n\t_containsPoint: function(point) {\n\t\tvar x = point.x,\n\t\t\ty = point.y;\n\t\treturn x >= this.x && y >= this.y\n\t\t\t\t&& x <= this.x + this.width\n\t\t\t\t&& y <= this.y + this.height;\n\t},\n\n\t_containsRectangle: function(rect) {\n\t\tvar x = rect.x,\n\t\t\ty = rect.y;\n\t\treturn x >= this.x && y >= this.y\n\t\t\t\t&& x + rect.width <= this.x + this.width\n\t\t\t\t&& y + rect.height <= this.y + this.height;\n\t},\n\n\tintersects: function() {\n\t\tvar rect = Rectangle.read(arguments),\n\t\t\tepsilon = Base.read(arguments) || 0;\n\t\treturn rect.x + rect.width > this.x - epsilon\n\t\t\t\t&& rect.y + rect.height > this.y - epsilon\n\t\t\t\t&& rect.x < this.x + this.width + epsilon\n\t\t\t\t&& rect.y < this.y + this.height + epsilon;\n\t},\n\n\tintersect: function() {\n\t\tvar rect = Rectangle.read(arguments),\n\t\t\tx1 = Math.max(this.x, rect.x),\n\t\t\ty1 = Math.max(this.y, rect.y),\n\t\t\tx2 = Math.min(this.x + this.width, rect.x + rect.width),\n\t\t\ty2 = Math.min(this.y + this.height, rect.y + rect.height);\n\t\treturn new Rectangle(x1, y1, x2 - x1, y2 - y1);\n\t},\n\n\tunite: function() {\n\t\tvar rect = Rectangle.read(arguments),\n\t\t\tx1 = Math.min(this.x, rect.x),\n\t\t\ty1 = Math.min(this.y, rect.y),\n\t\t\tx2 = Math.max(this.x + this.width, rect.x + rect.width),\n\t\t\ty2 = Math.max(this.y + this.height, rect.y + rect.height);\n\t\treturn new Rectangle(x1, y1, x2 - x1, y2 - y1);\n\t},\n\n\tinclude: function() {\n\t\tvar point = Point.read(arguments);\n\t\tvar x1 = Math.min(this.x, point.x),\n\t\t\ty1 = Math.min(this.y, point.y),\n\t\t\tx2 = Math.max(this.x + this.width, point.x),\n\t\t\ty2 = Math.max(this.y + this.height, point.y);\n\t\treturn new Rectangle(x1, y1, x2 - x1, y2 - y1);\n\t},\n\n\texpand: function() {\n\t\tvar amount = Size.read(arguments),\n\t\t\thor = amount.width,\n\t\t\tver = amount.height;\n\t\treturn new Rectangle(this.x - hor / 2, this.y - ver / 2,\n\t\t\t\tthis.width + hor, this.height + ver);\n\t},\n\n\tscale: function(hor, ver) {\n\t\treturn this.expand(this.width * hor - this.width,\n\t\t\t\tthis.height * (ver === undefined ? hor : ver) - this.height);\n\t}\n}, Base.each([\n\t\t['Top', 'Left'], ['Top', 'Right'],\n\t\t['Bottom', 'Left'], ['Bottom', 'Right'],\n\t\t['Left', 'Center'], ['Top', 'Center'],\n\t\t['Right', 'Center'], ['Bottom', 'Center']\n\t],\n\tfunction(parts, index) {\n\t\tvar part = parts.join(''),\n\t\t\txFirst = /^[RL]/.test(part);\n\t\tif (index >= 4)\n\t\t\tparts[1] += xFirst ? 'Y' : 'X';\n\t\tvar x = parts[xFirst ? 0 : 1],\n\t\t\ty = parts[xFirst ? 1 : 0],\n\t\t\tgetX = 'get' + x,\n\t\t\tgetY = 'get' + y,\n\t\t\tsetX = 'set' + x,\n\t\t\tsetY = 'set' + y,\n\t\t\tget = 'get' + part,\n\t\t\tset = 'set' + part;\n\t\tthis[get] = function(_dontLink) {\n\t\t\tvar ctor = _dontLink ? Point : LinkedPoint;\n\t\t\treturn new ctor(this[getX](), this[getY](), this, set);\n\t\t};\n\t\tthis[set] = function() {\n\t\t\tvar point = Point.read(arguments);\n\t\t\tthis[setX](point.x);\n\t\t\tthis[setY](point.y);\n\t\t};\n\t}, {\n\t\tbeans: true\n\t}\n));\n\nvar LinkedRectangle = Rectangle.extend({\n\tinitialize: function Rectangle(x, y, width, height, owner, setter) {\n\t\tthis._set(x, y, width, height, true);\n\t\tthis._owner = owner;\n\t\tthis._setter = setter;\n\t},\n\n\t_set: function(x, y, width, height, _dontNotify) {\n\t\tthis._x = x;\n\t\tthis._y = y;\n\t\tthis._width = width;\n\t\tthis._height = height;\n\t\tif (!_dontNotify)\n\t\t\tthis._owner[this._setter](this);\n\t\treturn this;\n\t}\n},\nnew function() {\n\tvar proto = Rectangle.prototype;\n\n\treturn Base.each(['x', 'y', 'width', 'height'], function(key) {\n\t\tvar part = Base.capitalize(key),\n\t\t\tinternal = '_' + key;\n\t\tthis['get' + part] = function() {\n\t\t\treturn this[internal];\n\t\t};\n\n\t\tthis['set' + part] = function(value) {\n\t\t\tthis[internal] = value;\n\t\t\tif (!this._dontNotify)\n\t\t\t\tthis._owner[this._setter](this);\n\t\t};\n\t}, Base.each(['Point', 'Size', 'Center',\n\t\t\t'Left', 'Top', 'Right', 'Bottom', 'CenterX', 'CenterY',\n\t\t\t'TopLeft', 'TopRight', 'BottomLeft', 'BottomRight',\n\t\t\t'LeftCenter', 'TopCenter', 'RightCenter', 'BottomCenter'],\n\t\tfunction(key) {\n\t\t\tvar name = 'set' + key;\n\t\t\tthis[name] = function() {\n\t\t\t\tthis._dontNotify = true;\n\t\t\t\tproto[name].apply(this, arguments);\n\t\t\t\tthis._dontNotify = false;\n\t\t\t\tthis._owner[this._setter](this);\n\t\t\t};\n\t\t}, {\n\t\t\tisSelected: function() {\n\t\t\t\treturn !!(this._owner._selection & 2);\n\t\t\t},\n\n\t\t\tsetSelected: function(selected) {\n\t\t\t\tvar owner = this._owner;\n\t\t\t\tif (owner._changeSelection) {\n\t\t\t\t\towner._changeSelection(2, selected);\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t);\n});\n\nvar Matrix = Base.extend({\n\t_class: 'Matrix',\n\n\tinitialize: function Matrix(arg, _dontNotify) {\n\t\tvar args = arguments,\n\t\t\tcount = args.length,\n\t\t\tok = true;\n\t\tif (count >= 6) {\n\t\t\tthis._set.apply(this, args);\n\t\t} else if (count === 1 || count === 2) {\n\t\t\tif (arg instanceof Matrix) {\n\t\t\t\tthis._set(arg._a, arg._b, arg._c, arg._d, arg._tx, arg._ty,\n\t\t\t\t\t\t_dontNotify);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tthis._set.apply(this,\n\t\t\t\t\t\t_dontNotify ? arg.concat([_dontNotify]) : arg);\n\t\t\t} else {\n\t\t\t\tok = false;\n\t\t\t}\n\t\t} else if (!count) {\n\t\t\tthis.reset();\n\t\t} else {\n\t\t\tok = false;\n\t\t}\n\t\tif (!ok) {\n\t\t\tthrow new Error('Unsupported matrix parameters');\n\t\t}\n\t\treturn this;\n\t},\n\n\tset: '#initialize',\n\n\t_set: function(a, b, c, d, tx, ty, _dontNotify) {\n\t\tthis._a = a;\n\t\tthis._b = b;\n\t\tthis._c = c;\n\t\tthis._d = d;\n\t\tthis._tx = tx;\n\t\tthis._ty = ty;\n\t\tif (!_dontNotify)\n\t\t\tthis._changed();\n\t\treturn this;\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\treturn Base.serialize(this.getValues(), options, true, dictionary);\n\t},\n\n\t_changed: function() {\n\t\tvar owner = this._owner;\n\t\tif (owner) {\n\t\t\tif (owner._applyMatrix) {\n\t\t\t\towner.transform(null, true);\n\t\t\t} else {\n\t\t\t\towner._changed(25);\n\t\t\t}\n\t\t}\n\t},\n\n\tclone: function() {\n\t\treturn new Matrix(this._a, this._b, this._c, this._d,\n\t\t\t\tthis._tx, this._ty);\n\t},\n\n\tequals: function(mx) {\n\t\treturn mx === this || mx && this._a === mx._a && this._b === mx._b\n\t\t\t\t&& this._c === mx._c && this._d === mx._d\n\t\t\t\t&& this._tx === mx._tx && this._ty === mx._ty;\n\t},\n\n\ttoString: function() {\n\t\tvar f = Formatter.instance;\n\t\treturn '[[' + [f.number(this._a), f.number(this._c),\n\t\t\t\t\tf.number(this._tx)].join(', ') + '], ['\n\t\t\t\t+ [f.number(this._b), f.number(this._d),\n\t\t\t\t\tf.number(this._ty)].join(', ') + ']]';\n\t},\n\n\treset: function(_dontNotify) {\n\t\tthis._a = this._d = 1;\n\t\tthis._b = this._c = this._tx = this._ty = 0;\n\t\tif (!_dontNotify)\n\t\t\tthis._changed();\n\t\treturn this;\n\t},\n\n\tapply: function(recursively, _setApplyMatrix) {\n\t\tvar owner = this._owner;\n\t\tif (owner) {\n\t\t\towner.transform(null, Base.pick(recursively, true), _setApplyMatrix);\n\t\t\treturn this.isIdentity();\n\t\t}\n\t\treturn false;\n\t},\n\n\ttranslate: function() {\n\t\tvar point = Point.read(arguments),\n\t\t\tx = point.x,\n\t\t\ty = point.y;\n\t\tthis._tx += x * this._a + y * this._c;\n\t\tthis._ty += x * this._b + y * this._d;\n\t\tthis._changed();\n\t\treturn this;\n\t},\n\n\tscale: function() {\n\t\tvar args = arguments,\n\t\t\tscale = Point.read(args),\n\t\t\tcenter = Point.read(args, 0, { readNull: true });\n\t\tif (center)\n\t\t\tthis.translate(center);\n\t\tthis._a *= scale.x;\n\t\tthis._b *= scale.x;\n\t\tthis._c *= scale.y;\n\t\tthis._d *= scale.y;\n\t\tif (center)\n\t\t\tthis.translate(center.negate());\n\t\tthis._changed();\n\t\treturn this;\n\t},\n\n\trotate: function(angle ) {\n\t\tangle *= Math.PI / 180;\n\t\tvar center = Point.read(arguments, 1),\n\t\t\tx = center.x,\n\t\t\ty = center.y,\n\t\t\tcos = Math.cos(angle),\n\t\t\tsin = Math.sin(angle),\n\t\t\ttx = x - x * cos + y * sin,\n\t\t\tty = y - x * sin - y * cos,\n\t\t\ta = this._a,\n\t\t\tb = this._b,\n\t\t\tc = this._c,\n\t\t\td = this._d;\n\t\tthis._a = cos * a + sin * c;\n\t\tthis._b = cos * b + sin * d;\n\t\tthis._c = -sin * a + cos * c;\n\t\tthis._d = -sin * b + cos * d;\n\t\tthis._tx += tx * a + ty * c;\n\t\tthis._ty += tx * b + ty * d;\n\t\tthis._changed();\n\t\treturn this;\n\t},\n\n\tshear: function() {\n\t\tvar args = arguments,\n\t\t\tshear = Point.read(args),\n\t\t\tcenter = Point.read(args, 0, { readNull: true });\n\t\tif (center)\n\t\t\tthis.translate(center);\n\t\tvar a = this._a,\n\t\t\tb = this._b;\n\t\tthis._a += shear.y * this._c;\n\t\tthis._b += shear.y * this._d;\n\t\tthis._c += shear.x * a;\n\t\tthis._d += shear.x * b;\n\t\tif (center)\n\t\t\tthis.translate(center.negate());\n\t\tthis._changed();\n\t\treturn this;\n\t},\n\n\tskew: function() {\n\t\tvar args = arguments,\n\t\t\tskew = Point.read(args),\n\t\t\tcenter = Point.read(args, 0, { readNull: true }),\n\t\t\ttoRadians = Math.PI / 180,\n\t\t\tshear = new Point(Math.tan(skew.x * toRadians),\n\t\t\t\tMath.tan(skew.y * toRadians));\n\t\treturn this.shear(shear, center);\n\t},\n\n\tappend: function(mx, _dontNotify) {\n\t\tif (mx) {\n\t\t\tvar a1 = this._a,\n\t\t\t\tb1 = this._b,\n\t\t\t\tc1 = this._c,\n\t\t\t\td1 = this._d,\n\t\t\t\ta2 = mx._a,\n\t\t\t\tb2 = mx._c,\n\t\t\t\tc2 = mx._b,\n\t\t\t\td2 = mx._d,\n\t\t\t\ttx2 = mx._tx,\n\t\t\t\tty2 = mx._ty;\n\t\t\tthis._a = a2 * a1 + c2 * c1;\n\t\t\tthis._c = b2 * a1 + d2 * c1;\n\t\t\tthis._b = a2 * b1 + c2 * d1;\n\t\t\tthis._d = b2 * b1 + d2 * d1;\n\t\t\tthis._tx += tx2 * a1 + ty2 * c1;\n\t\t\tthis._ty += tx2 * b1 + ty2 * d1;\n\t\t\tif (!_dontNotify)\n\t\t\t\tthis._changed();\n\t\t}\n\t\treturn this;\n\t},\n\n\tprepend: function(mx, _dontNotify) {\n\t\tif (mx) {\n\t\t\tvar a1 = this._a,\n\t\t\t\tb1 = this._b,\n\t\t\t\tc1 = this._c,\n\t\t\t\td1 = this._d,\n\t\t\t\ttx1 = this._tx,\n\t\t\t\tty1 = this._ty,\n\t\t\t\ta2 = mx._a,\n\t\t\t\tb2 = mx._c,\n\t\t\t\tc2 = mx._b,\n\t\t\t\td2 = mx._d,\n\t\t\t\ttx2 = mx._tx,\n\t\t\t\tty2 = mx._ty;\n\t\t\tthis._a = a2 * a1 + b2 * b1;\n\t\t\tthis._c = a2 * c1 + b2 * d1;\n\t\t\tthis._b = c2 * a1 + d2 * b1;\n\t\t\tthis._d = c2 * c1 + d2 * d1;\n\t\t\tthis._tx = a2 * tx1 + b2 * ty1 + tx2;\n\t\t\tthis._ty = c2 * tx1 + d2 * ty1 + ty2;\n\t\t\tif (!_dontNotify)\n\t\t\t\tthis._changed();\n\t\t}\n\t\treturn this;\n\t},\n\n\tappended: function(mx) {\n\t\treturn this.clone().append(mx);\n\t},\n\n\tprepended: function(mx) {\n\t\treturn this.clone().prepend(mx);\n\t},\n\n\tinvert: function() {\n\t\tvar a = this._a,\n\t\t\tb = this._b,\n\t\t\tc = this._c,\n\t\t\td = this._d,\n\t\t\ttx = this._tx,\n\t\t\tty = this._ty,\n\t\t\tdet = a * d - b * c,\n\t\t\tres = null;\n\t\tif (det && !isNaN(det) && isFinite(tx) && isFinite(ty)) {\n\t\t\tthis._a = d / det;\n\t\t\tthis._b = -b / det;\n\t\t\tthis._c = -c / det;\n\t\t\tthis._d = a / det;\n\t\t\tthis._tx = (c * ty - d * tx) / det;\n\t\t\tthis._ty = (b * tx - a * ty) / det;\n\t\t\tres = this;\n\t\t}\n\t\treturn res;\n\t},\n\n\tinverted: function() {\n\t\treturn this.clone().invert();\n\t},\n\n\tconcatenate: '#append',\n\tpreConcatenate: '#prepend',\n\tchain: '#appended',\n\n\t_shiftless: function() {\n\t\treturn new Matrix(this._a, this._b, this._c, this._d, 0, 0);\n\t},\n\n\t_orNullIfIdentity: function() {\n\t\treturn this.isIdentity() ? null : this;\n\t},\n\n\tisIdentity: function() {\n\t\treturn this._a === 1 && this._b === 0 && this._c === 0 && this._d === 1\n\t\t\t\t&& this._tx === 0 && this._ty === 0;\n\t},\n\n\tisInvertible: function() {\n\t\tvar det = this._a * this._d - this._c * this._b;\n\t\treturn det && !isNaN(det) && isFinite(this._tx) && isFinite(this._ty);\n\t},\n\n\tisSingular: function() {\n\t\treturn !this.isInvertible();\n\t},\n\n\ttransform: function( src, dst, count) {\n\t\treturn arguments.length < 3\n\t\t\t? this._transformPoint(Point.read(arguments))\n\t\t\t: this._transformCoordinates(src, dst, count);\n\t},\n\n\t_transformPoint: function(point, dest, _dontNotify) {\n\t\tvar x = point.x,\n\t\t\ty = point.y;\n\t\tif (!dest)\n\t\t\tdest = new Point();\n\t\treturn dest._set(\n\t\t\t\tx * this._a + y * this._c + this._tx,\n\t\t\t\tx * this._b + y * this._d + this._ty,\n\t\t\t\t_dontNotify);\n\t},\n\n\t_transformCoordinates: function(src, dst, count) {\n\t\tfor (var i = 0, max = 2 * count; i < max; i += 2) {\n\t\t\tvar x = src[i],\n\t\t\t\ty = src[i + 1];\n\t\t\tdst[i] = x * this._a + y * this._c + this._tx;\n\t\t\tdst[i + 1] = x * this._b + y * this._d + this._ty;\n\t\t}\n\t\treturn dst;\n\t},\n\n\t_transformCorners: function(rect) {\n\t\tvar x1 = rect.x,\n\t\t\ty1 = rect.y,\n\t\t\tx2 = x1 + rect.width,\n\t\t\ty2 = y1 + rect.height,\n\t\t\tcoords = [ x1, y1, x2, y1, x2, y2, x1, y2 ];\n\t\treturn this._transformCoordinates(coords, coords, 4);\n\t},\n\n\t_transformBounds: function(bounds, dest, _dontNotify) {\n\t\tvar coords = this._transformCorners(bounds),\n\t\t\tmin = coords.slice(0, 2),\n\t\t\tmax = min.slice();\n\t\tfor (var i = 2; i < 8; i++) {\n\t\t\tvar val = coords[i],\n\t\t\t\tj = i & 1;\n\t\t\tif (val < min[j]) {\n\t\t\t\tmin[j] = val;\n\t\t\t} else if (val > max[j]) {\n\t\t\t\tmax[j] = val;\n\t\t\t}\n\t\t}\n\t\tif (!dest)\n\t\t\tdest = new Rectangle();\n\t\treturn dest._set(min[0], min[1], max[0] - min[0], max[1] - min[1],\n\t\t\t\t_dontNotify);\n\t},\n\n\tinverseTransform: function() {\n\t\treturn this._inverseTransform(Point.read(arguments));\n\t},\n\n\t_inverseTransform: function(point, dest, _dontNotify) {\n\t\tvar a = this._a,\n\t\t\tb = this._b,\n\t\t\tc = this._c,\n\t\t\td = this._d,\n\t\t\ttx = this._tx,\n\t\t\tty = this._ty,\n\t\t\tdet = a * d - b * c,\n\t\t\tres = null;\n\t\tif (det && !isNaN(det) && isFinite(tx) && isFinite(ty)) {\n\t\t\tvar x = point.x - this._tx,\n\t\t\t\ty = point.y - this._ty;\n\t\t\tif (!dest)\n\t\t\t\tdest = new Point();\n\t\t\tres = dest._set(\n\t\t\t\t\t(x * d - y * c) / det,\n\t\t\t\t\t(y * a - x * b) / det,\n\t\t\t\t\t_dontNotify);\n\t\t}\n\t\treturn res;\n\t},\n\n\tdecompose: function() {\n\t\tvar a = this._a,\n\t\t\tb = this._b,\n\t\t\tc = this._c,\n\t\t\td = this._d,\n\t\t\tdet = a * d - b * c,\n\t\t\tsqrt = Math.sqrt,\n\t\t\tatan2 = Math.atan2,\n\t\t\tdegrees = 180 / Math.PI,\n\t\t\trotate,\n\t\t\tscale,\n\t\t\tskew;\n\t\tif (a !== 0 || b !== 0) {\n\t\t\tvar r = sqrt(a * a + b * b);\n\t\t\trotate = Math.acos(a / r) * (b > 0 ? 1 : -1);\n\t\t\tscale = [r, det / r];\n\t\t\tskew = [atan2(a * c + b * d, r * r), 0];\n\t\t} else if (c !== 0 || d !== 0) {\n\t\t\tvar s = sqrt(c * c + d * d);\n\t\t\trotate = Math.asin(c / s) * (d > 0 ? 1 : -1);\n\t\t\tscale = [det / s, s];\n\t\t\tskew = [0, atan2(a * c + b * d, s * s)];\n\t\t} else {\n\t\t\trotate = 0;\n\t\t\tskew = scale = [0, 0];\n\t\t}\n\t\treturn {\n\t\t\ttranslation: this.getTranslation(),\n\t\t\trotation: rotate * degrees,\n\t\t\tscaling: new Point(scale),\n\t\t\tskewing: new Point(skew[0] * degrees, skew[1] * degrees)\n\t\t};\n\t},\n\n\tgetValues: function() {\n\t\treturn [ this._a, this._b, this._c, this._d, this._tx, this._ty ];\n\t},\n\n\tgetTranslation: function() {\n\t\treturn new Point(this._tx, this._ty);\n\t},\n\n\tgetScaling: function() {\n\t\treturn this.decompose().scaling;\n\t},\n\n\tgetRotation: function() {\n\t\treturn this.decompose().rotation;\n\t},\n\n\tapplyToContext: function(ctx) {\n\t\tif (!this.isIdentity()) {\n\t\t\tctx.transform(this._a, this._b, this._c, this._d,\n\t\t\t\t\tthis._tx, this._ty);\n\t\t}\n\t}\n}, Base.each(['a', 'b', 'c', 'd', 'tx', 'ty'], function(key) {\n\tvar part = Base.capitalize(key),\n\t\tprop = '_' + key;\n\tthis['get' + part] = function() {\n\t\treturn this[prop];\n\t};\n\tthis['set' + part] = function(value) {\n\t\tthis[prop] = value;\n\t\tthis._changed();\n\t};\n}, {}));\n\nvar Line = Base.extend({\n\t_class: 'Line',\n\n\tinitialize: function Line(arg0, arg1, arg2, arg3, arg4) {\n\t\tvar asVector = false;\n\t\tif (arguments.length >= 4) {\n\t\t\tthis._px = arg0;\n\t\t\tthis._py = arg1;\n\t\t\tthis._vx = arg2;\n\t\t\tthis._vy = arg3;\n\t\t\tasVector = arg4;\n\t\t} else {\n\t\t\tthis._px = arg0.x;\n\t\t\tthis._py = arg0.y;\n\t\t\tthis._vx = arg1.x;\n\t\t\tthis._vy = arg1.y;\n\t\t\tasVector = arg2;\n\t\t}\n\t\tif (!asVector) {\n\t\t\tthis._vx -= this._px;\n\t\t\tthis._vy -= this._py;\n\t\t}\n\t},\n\n\tgetPoint: function() {\n\t\treturn new Point(this._px, this._py);\n\t},\n\n\tgetVector: function() {\n\t\treturn new Point(this._vx, this._vy);\n\t},\n\n\tgetLength: function() {\n\t\treturn this.getVector().getLength();\n\t},\n\n\tintersect: function(line, isInfinite) {\n\t\treturn Line.intersect(\n\t\t\t\tthis._px, this._py, this._vx, this._vy,\n\t\t\t\tline._px, line._py, line._vx, line._vy,\n\t\t\t\ttrue, isInfinite);\n\t},\n\n\tgetSide: function(point, isInfinite) {\n\t\treturn Line.getSide(\n\t\t\t\tthis._px, this._py, this._vx, this._vy,\n\t\t\t\tpoint.x, point.y, true, isInfinite);\n\t},\n\n\tgetDistance: function(point) {\n\t\treturn Math.abs(this.getSignedDistance(point));\n\t},\n\n\tgetSignedDistance: function(point) {\n\t\treturn Line.getSignedDistance(this._px, this._py, this._vx, this._vy,\n\t\t\t\tpoint.x, point.y, true);\n\t},\n\n\tisCollinear: function(line) {\n\t\treturn Point.isCollinear(this._vx, this._vy, line._vx, line._vy);\n\t},\n\n\tisOrthogonal: function(line) {\n\t\treturn Point.isOrthogonal(this._vx, this._vy, line._vx, line._vy);\n\t},\n\n\tstatics: {\n\t\tintersect: function(p1x, p1y, v1x, v1y, p2x, p2y, v2x, v2y, asVector,\n\t\t\t\tisInfinite) {\n\t\t\tif (!asVector) {\n\t\t\t\tv1x -= p1x;\n\t\t\t\tv1y -= p1y;\n\t\t\t\tv2x -= p2x;\n\t\t\t\tv2y -= p2y;\n\t\t\t}\n\t\t\tvar cross = v1x * v2y - v1y * v2x;\n\t\t\tif (!Numerical.isMachineZero(cross)) {\n\t\t\t\tvar dx = p1x - p2x,\n\t\t\t\t\tdy = p1y - p2y,\n\t\t\t\t\tu1 = (v2x * dy - v2y * dx) / cross,\n\t\t\t\t\tu2 = (v1x * dy - v1y * dx) / cross,\n\t\t\t\t\tepsilon = 1e-12,\n\t\t\t\t\tuMin = -epsilon,\n\t\t\t\t\tuMax = 1 + epsilon;\n\t\t\t\tif (isInfinite\n\t\t\t\t\t\t|| uMin < u1 && u1 < uMax && uMin < u2 && u2 < uMax) {\n\t\t\t\t\tif (!isInfinite) {\n\t\t\t\t\t\tu1 = u1 <= 0 ? 0 : u1 >= 1 ? 1 : u1;\n\t\t\t\t\t}\n\t\t\t\t\treturn new Point(\n\t\t\t\t\t\t\tp1x + u1 * v1x,\n\t\t\t\t\t\t\tp1y + u1 * v1y);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tgetSide: function(px, py, vx, vy, x, y, asVector, isInfinite) {\n\t\t\tif (!asVector) {\n\t\t\t\tvx -= px;\n\t\t\t\tvy -= py;\n\t\t\t}\n\t\t\tvar v2x = x - px,\n\t\t\t\tv2y = y - py,\n\t\t\t\tccw = v2x * vy - v2y * vx;\n\t\t\tif (!isInfinite && Numerical.isMachineZero(ccw)) {\n\t\t\t\tccw = (v2x * vx + v2x * vx) / (vx * vx + vy * vy);\n\t\t\t\tif (ccw >= 0 && ccw <= 1)\n\t\t\t\t\tccw = 0;\n\t\t\t}\n\t\t\treturn ccw < 0 ? -1 : ccw > 0 ? 1 : 0;\n\t\t},\n\n\t\tgetSignedDistance: function(px, py, vx, vy, x, y, asVector) {\n\t\t\tif (!asVector) {\n\t\t\t\tvx -= px;\n\t\t\t\tvy -= py;\n\t\t\t}\n\t\t\t return vx === 0 ? (vy > 0 ? x - px : px - x)\n\t\t\t\t\t: vy === 0 ? (vx < 0 ? y - py : py - y)\n\t\t\t\t\t: ((x - px) * vy - (y - py) * vx) / (\n\t\t\t\t\t\tvy > vx\n\t\t\t\t\t\t\t? vy * Math.sqrt(1 + (vx * vx) / (vy * vy))\n\t\t\t\t\t\t\t: vx * Math.sqrt(1 + (vy * vy) / (vx * vx))\n\t\t\t\t\t);\n\t\t},\n\n\t\tgetDistance: function(px, py, vx, vy, x, y, asVector) {\n\t\t\treturn Math.abs(\n\t\t\t\t\tLine.getSignedDistance(px, py, vx, vy, x, y, asVector));\n\t\t}\n\t}\n});\n\nvar Project = PaperScopeItem.extend({\n\t_class: 'Project',\n\t_list: 'projects',\n\t_reference: 'project',\n\t_compactSerialize: true,\n\n\tinitialize: function Project(element) {\n\t\tPaperScopeItem.call(this, true);\n\t\tthis._children = [];\n\t\tthis._namedChildren = {};\n\t\tthis._activeLayer = null;\n\t\tthis._currentStyle = new Style(null, null, this);\n\t\tthis._view = View.create(this,\n\t\t\t\telement || CanvasProvider.getCanvas(1, 1));\n\t\tthis._selectionItems = {};\n\t\tthis._selectionCount = 0;\n\t\tthis._updateVersion = 0;\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\treturn Base.serialize(this._children, options, true, dictionary);\n\t},\n\n\t_changed: function(flags, item) {\n\t\tif (flags & 1) {\n\t\t\tvar view = this._view;\n\t\t\tif (view) {\n\t\t\t\tview._needsUpdate = true;\n\t\t\t\tif (!view._requested && view._autoUpdate)\n\t\t\t\t\tview.requestUpdate();\n\t\t\t}\n\t\t}\n\t\tvar changes = this._changes;\n\t\tif (changes && item) {\n\t\t\tvar changesById = this._changesById,\n\t\t\t\tid = item._id,\n\t\t\t\tentry = changesById[id];\n\t\t\tif (entry) {\n\t\t\t\tentry.flags |= flags;\n\t\t\t} else {\n\t\t\t\tchanges.push(changesById[id] = { item: item, flags: flags });\n\t\t\t}\n\t\t}\n\t},\n\n\tclear: function() {\n\t\tvar children = this._children;\n\t\tfor (var i = children.length - 1; i >= 0; i--)\n\t\t\tchildren[i].remove();\n\t},\n\n\tisEmpty: function() {\n\t\treturn !this._children.length;\n\t},\n\n\tremove: function remove() {\n\t\tif (!remove.base.call(this))\n\t\t\treturn false;\n\t\tif (this._view)\n\t\t\tthis._view.remove();\n\t\treturn true;\n\t},\n\n\tgetView: function() {\n\t\treturn this._view;\n\t},\n\n\tgetCurrentStyle: function() {\n\t\treturn this._currentStyle;\n\t},\n\n\tsetCurrentStyle: function(style) {\n\t\tthis._currentStyle.set(style);\n\t},\n\n\tgetIndex: function() {\n\t\treturn this._index;\n\t},\n\n\tgetOptions: function() {\n\t\treturn this._scope.settings;\n\t},\n\n\tgetLayers: function() {\n\t\treturn this._children;\n\t},\n\n\tgetActiveLayer: function() {\n\t\treturn this._activeLayer || new Layer({ project: this, insert: true });\n\t},\n\n\tgetSymbolDefinitions: function() {\n\t\tvar definitions = [],\n\t\t\tids = {};\n\t\tthis.getItems({\n\t\t\tclass: SymbolItem,\n\t\t\tmatch: function(item) {\n\t\t\t\tvar definition = item._definition,\n\t\t\t\t\tid = definition._id;\n\t\t\t\tif (!ids[id]) {\n\t\t\t\t\tids[id] = true;\n\t\t\t\t\tdefinitions.push(definition);\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\treturn definitions;\n\t},\n\n\tgetSymbols: 'getSymbolDefinitions',\n\n\tgetSelectedItems: function() {\n\t\tvar selectionItems = this._selectionItems,\n\t\t\titems = [];\n\t\tfor (var id in selectionItems) {\n\t\t\tvar item = selectionItems[id],\n\t\t\t\tselection = item._selection;\n\t\t\tif ((selection & 1) && item.isInserted()) {\n\t\t\t\titems.push(item);\n\t\t\t} else if (!selection) {\n\t\t\t\tthis._updateSelection(item);\n\t\t\t}\n\t\t}\n\t\treturn items;\n\t},\n\n\t_updateSelection: function(item) {\n\t\tvar id = item._id,\n\t\t\tselectionItems = this._selectionItems;\n\t\tif (item._selection) {\n\t\t\tif (selectionItems[id] !== item) {\n\t\t\t\tthis._selectionCount++;\n\t\t\t\tselectionItems[id] = item;\n\t\t\t}\n\t\t} else if (selectionItems[id] === item) {\n\t\t\tthis._selectionCount--;\n\t\t\tdelete selectionItems[id];\n\t\t}\n\t},\n\n\tselectAll: function() {\n\t\tvar children = this._children;\n\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\tchildren[i].setFullySelected(true);\n\t},\n\n\tdeselectAll: function() {\n\t\tvar selectionItems = this._selectionItems;\n\t\tfor (var i in selectionItems)\n\t\t\tselectionItems[i].setFullySelected(false);\n\t},\n\n\taddLayer: function(layer) {\n\t\treturn this.insertLayer(undefined, layer);\n\t},\n\n\tinsertLayer: function(index, layer) {\n\t\tif (layer instanceof Layer) {\n\t\t\tlayer._remove(false, true);\n\t\t\tBase.splice(this._children, [layer], index, 0);\n\t\t\tlayer._setProject(this, true);\n\t\t\tvar name = layer._name;\n\t\t\tif (name)\n\t\t\t\tlayer.setName(name);\n\t\t\tif (this._changes)\n\t\t\t\tlayer._changed(5);\n\t\t\tif (!this._activeLayer)\n\t\t\t\tthis._activeLayer = layer;\n\t\t} else {\n\t\t\tlayer = null;\n\t\t}\n\t\treturn layer;\n\t},\n\n\t_insertItem: function(index, item, _created) {\n\t\titem = this.insertLayer(index, item)\n\t\t\t\t|| (this._activeLayer || this._insertItem(undefined,\n\t\t\t\t\t\tnew Layer(Item.NO_INSERT), true))\n\t\t\t\t\t\t.insertChild(index, item);\n\t\tif (_created && item.activate)\n\t\t\titem.activate();\n\t\treturn item;\n\t},\n\n\tgetItems: function(options) {\n\t\treturn Item._getItems(this, options);\n\t},\n\n\tgetItem: function(options) {\n\t\treturn Item._getItems(this, options, null, null, true)[0] || null;\n\t},\n\n\timportJSON: function(json) {\n\t\tthis.activate();\n\t\tvar layer = this._activeLayer;\n\t\treturn Base.importJSON(json, layer && layer.isEmpty() && layer);\n\t},\n\n\tremoveOn: function(type) {\n\t\tvar sets = this._removeSets;\n\t\tif (sets) {\n\t\t\tif (type === 'mouseup')\n\t\t\t\tsets.mousedrag = null;\n\t\t\tvar set = sets[type];\n\t\t\tif (set) {\n\t\t\t\tfor (var id in set) {\n\t\t\t\t\tvar item = set[id];\n\t\t\t\t\tfor (var key in sets) {\n\t\t\t\t\t\tvar other = sets[key];\n\t\t\t\t\t\tif (other && other != set)\n\t\t\t\t\t\t\tdelete other[item._id];\n\t\t\t\t\t}\n\t\t\t\t\titem.remove();\n\t\t\t\t}\n\t\t\t\tsets[type] = null;\n\t\t\t}\n\t\t}\n\t},\n\n\tdraw: function(ctx, matrix, pixelRatio) {\n\t\tthis._updateVersion++;\n\t\tctx.save();\n\t\tmatrix.applyToContext(ctx);\n\t\tvar children = this._children,\n\t\t\tparam = new Base({\n\t\t\t\toffset: new Point(0, 0),\n\t\t\t\tpixelRatio: pixelRatio,\n\t\t\t\tviewMatrix: matrix.isIdentity() ? null : matrix,\n\t\t\t\tmatrices: [new Matrix()],\n\t\t\t\tupdateMatrix: true\n\t\t\t});\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tchildren[i].draw(ctx, param);\n\t\t}\n\t\tctx.restore();\n\n\t\tif (this._selectionCount > 0) {\n\t\t\tctx.save();\n\t\t\tctx.strokeWidth = 1;\n\t\t\tvar items = this._selectionItems,\n\t\t\t\tsize = this._scope.settings.handleSize,\n\t\t\t\tversion = this._updateVersion;\n\t\t\tfor (var id in items) {\n\t\t\t\titems[id]._drawSelection(ctx, matrix, size, items, version);\n\t\t\t}\n\t\t\tctx.restore();\n\t\t}\n\t}\n});\n\nvar Item = Base.extend(Emitter, {\n\tstatics: {\n\t\textend: function extend(src) {\n\t\t\tif (src._serializeFields)\n\t\t\t\tsrc._serializeFields = Base.set({},\n\t\t\t\t\tthis.prototype._serializeFields, src._serializeFields);\n\t\t\treturn extend.base.apply(this, arguments);\n\t\t},\n\n\t\tINSERT: { insert: true },\n\t\tNO_INSERT: { insert: false }\n\t},\n\n\t_class: 'Item',\n\t_name: null,\n\t_applyMatrix: true,\n\t_canApplyMatrix: true,\n\t_canScaleStroke: false,\n\t_pivot: null,\n\t_visible: true,\n\t_blendMode: 'normal',\n\t_opacity: 1,\n\t_locked: false,\n\t_guide: false,\n\t_clipMask: false,\n\t_selection: 0,\n\t_selectBounds: true,\n\t_selectChildren: false,\n\t_serializeFields: {\n\t\tname: null,\n\t\tapplyMatrix: null,\n\t\tmatrix: new Matrix(),\n\t\tpivot: null,\n\t\tvisible: true,\n\t\tblendMode: 'normal',\n\t\topacity: 1,\n\t\tlocked: false,\n\t\tguide: false,\n\t\tclipMask: false,\n\t\tselected: false,\n\t\tdata: {}\n\t},\n\t_prioritize: ['applyMatrix']\n},\nnew function() {\n\tvar handlers = ['onMouseDown', 'onMouseUp', 'onMouseDrag', 'onClick',\n\t\t\t'onDoubleClick', 'onMouseMove', 'onMouseEnter', 'onMouseLeave'];\n\treturn Base.each(handlers,\n\t\tfunction(name) {\n\t\t\tthis._events[name] = {\n\t\t\t\tinstall: function(type) {\n\t\t\t\t\tthis.getView()._countItemEvent(type, 1);\n\t\t\t\t},\n\n\t\t\t\tuninstall: function(type) {\n\t\t\t\t\tthis.getView()._countItemEvent(type, -1);\n\t\t\t\t}\n\t\t\t};\n\t\t}, {\n\t\t\t_events: {\n\t\t\t\tonFrame: {\n\t\t\t\t\tinstall: function() {\n\t\t\t\t\t\tthis.getView()._animateItem(this, true);\n\t\t\t\t\t},\n\n\t\t\t\t\tuninstall: function() {\n\t\t\t\t\t\tthis.getView()._animateItem(this, false);\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\t\tonLoad: {},\n\t\t\t\tonError: {}\n\t\t\t},\n\t\t\tstatics: {\n\t\t\t\t_itemHandlers: handlers\n\t\t\t}\n\t\t}\n\t);\n}, {\n\tinitialize: function Item() {\n\t},\n\n\t_initialize: function(props, point) {\n\t\tvar hasProps = props && Base.isPlainObject(props),\n\t\t\tinternal = hasProps && props.internal === true,\n\t\t\tmatrix = this._matrix = new Matrix(),\n\t\t\tproject = hasProps && props.project || paper.project,\n\t\t\tsettings = paper.settings;\n\t\tthis._id = internal ? null : UID.get();\n\t\tthis._parent = this._index = null;\n\t\tthis._applyMatrix = this._canApplyMatrix && settings.applyMatrix;\n\t\tif (point)\n\t\t\tmatrix.translate(point);\n\t\tmatrix._owner = this;\n\t\tthis._style = new Style(project._currentStyle, this, project);\n\t\tif (internal || hasProps && props.insert == false\n\t\t\t|| !settings.insertItems && !(hasProps && props.insert == true)) {\n\t\t\tthis._setProject(project);\n\t\t} else {\n\t\t\t(hasProps && props.parent || project)\n\t\t\t\t\t._insertItem(undefined, this, true);\n\t\t}\n\t\tif (hasProps && props !== Item.NO_INSERT && props !== Item.INSERT) {\n\t\t\tthis.set(props, {\n\t\t\t\tinternal: true, insert: true, project: true, parent: true\n\t\t\t});\n\t\t}\n\t\treturn hasProps;\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\tvar props = {},\n\t\t\tthat = this;\n\n\t\tfunction serialize(fields) {\n\t\t\tfor (var key in fields) {\n\t\t\t\tvar value = that[key];\n\t\t\t\tif (!Base.equals(value, key === 'leading'\n\t\t\t\t\t\t? fields.fontSize * 1.2 : fields[key])) {\n\t\t\t\t\tprops[key] = Base.serialize(value, options,\n\t\t\t\t\t\t\tkey !== 'data', dictionary);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tserialize(this._serializeFields);\n\t\tif (!(this instanceof Group))\n\t\t\tserialize(this._style._defaults);\n\t\treturn [ this._class, props ];\n\t},\n\n\t_changed: function(flags) {\n\t\tvar symbol = this._symbol,\n\t\t\tcacheParent = this._parent || symbol,\n\t\t\tproject = this._project;\n\t\tif (flags & 8) {\n\t\t\tthis._bounds = this._position = this._decomposed = undefined;\n\t\t}\n\t\tif (flags & 16) {\n\t\t\tthis._globalMatrix = undefined;\n\t\t}\n\t\tif (cacheParent\n\t\t\t\t&& (flags & 72)) {\n\t\t\tItem._clearBoundsCache(cacheParent);\n\t\t}\n\t\tif (flags & 2) {\n\t\t\tItem._clearBoundsCache(this);\n\t\t}\n\t\tif (project)\n\t\t\tproject._changed(flags, this);\n\t\tif (symbol)\n\t\t\tsymbol._changed(flags);\n\t},\n\n\tgetId: function() {\n\t\treturn this._id;\n\t},\n\n\tgetName: function() {\n\t\treturn this._name;\n\t},\n\n\tsetName: function(name) {\n\n\t\tif (this._name)\n\t\t\tthis._removeNamed();\n\t\tif (name === (+name) + '')\n\t\t\tthrow new Error(\n\t\t\t\t\t'Names consisting only of numbers are not supported.');\n\t\tvar owner = this._getOwner();\n\t\tif (name && owner) {\n\t\t\tvar children = owner._children,\n\t\t\t\tnamedChildren = owner._namedChildren;\n\t\t\t(namedChildren[name] = namedChildren[name] || []).push(this);\n\t\t\tif (!(name in children))\n\t\t\t\tchildren[name] = this;\n\t\t}\n\t\tthis._name = name || undefined;\n\t\tthis._changed(256);\n\t},\n\n\tgetStyle: function() {\n\t\treturn this._style;\n\t},\n\n\tsetStyle: function(style) {\n\t\tthis.getStyle().set(style);\n\t}\n}, Base.each(['locked', 'visible', 'blendMode', 'opacity', 'guide'],\n\tfunction(name) {\n\t\tvar part = Base.capitalize(name),\n\t\t\tkey = '_' + name,\n\t\t\tflags = {\n\t\t\t\tlocked: 256,\n\t\t\t\tvisible: 265\n\t\t\t};\n\t\tthis['get' + part] = function() {\n\t\t\treturn this[key];\n\t\t};\n\t\tthis['set' + part] = function(value) {\n\t\t\tif (value != this[key]) {\n\t\t\t\tthis[key] = value;\n\t\t\t\tthis._changed(flags[name] || 257);\n\t\t\t}\n\t\t};\n\t},\n{}), {\n\tbeans: true,\n\n\tgetSelection: function() {\n\t\treturn this._selection;\n\t},\n\n\tsetSelection: function(selection) {\n\t\tif (selection !== this._selection) {\n\t\t\tthis._selection = selection;\n\t\t\tvar project = this._project;\n\t\t\tif (project) {\n\t\t\t\tproject._updateSelection(this);\n\t\t\t\tthis._changed(257);\n\t\t\t}\n\t\t}\n\t},\n\n\t_changeSelection: function(flag, selected) {\n\t\tvar selection = this._selection;\n\t\tthis.setSelection(selected ? selection | flag : selection & ~flag);\n\t},\n\n\tisSelected: function() {\n\t\tif (this._selectChildren) {\n\t\t\tvar children = this._children;\n\t\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\t\tif (children[i].isSelected())\n\t\t\t\t\treturn true;\n\t\t}\n\t\treturn !!(this._selection & 1);\n\t},\n\n\tsetSelected: function(selected) {\n\t\tif (this._selectChildren) {\n\t\t\tvar children = this._children;\n\t\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\t\tchildren[i].setSelected(selected);\n\t\t}\n\t\tthis._changeSelection(1, selected);\n\t},\n\n\tisFullySelected: function() {\n\t\tvar children = this._children,\n\t\t\tselected = !!(this._selection & 1);\n\t\tif (children && selected) {\n\t\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\t\tif (!children[i].isFullySelected())\n\t\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t}\n\t\treturn selected;\n\t},\n\n\tsetFullySelected: function(selected) {\n\t\tvar children = this._children;\n\t\tif (children) {\n\t\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\t\tchildren[i].setFullySelected(selected);\n\t\t}\n\t\tthis._changeSelection(1, selected);\n\t},\n\n\tisClipMask: function() {\n\t\treturn this._clipMask;\n\t},\n\n\tsetClipMask: function(clipMask) {\n\t\tif (this._clipMask != (clipMask = !!clipMask)) {\n\t\t\tthis._clipMask = clipMask;\n\t\t\tif (clipMask) {\n\t\t\t\tthis.setFillColor(null);\n\t\t\t\tthis.setStrokeColor(null);\n\t\t\t}\n\t\t\tthis._changed(257);\n\t\t\tif (this._parent)\n\t\t\t\tthis._parent._changed(2048);\n\t\t}\n\t},\n\n\tgetData: function() {\n\t\tif (!this._data)\n\t\t\tthis._data = {};\n\t\treturn this._data;\n\t},\n\n\tsetData: function(data) {\n\t\tthis._data = data;\n\t},\n\n\tgetPosition: function(_dontLink) {\n\t\tvar ctor = _dontLink ? Point : LinkedPoint;\n\t\tvar position = this._position ||\n\t\t\t(this._position = this._getPositionFromBounds());\n\t\treturn new ctor(position.x, position.y, this, 'setPosition');\n\t},\n\n\tsetPosition: function() {\n\t\tthis.translate(Point.read(arguments).subtract(this.getPosition(true)));\n\t},\n\n\t_getPositionFromBounds: function(bounds) {\n\t\treturn this._pivot\n\t\t\t\t? this._matrix._transformPoint(this._pivot)\n\t\t\t\t: (bounds || this.getBounds()).getCenter(true);\n\t},\n\n\tgetPivot: function() {\n\t\tvar pivot = this._pivot;\n\t\treturn pivot\n\t\t\t\t? new LinkedPoint(pivot.x, pivot.y, this, 'setPivot')\n\t\t\t\t: null;\n\t},\n\n\tsetPivot: function() {\n\t\tthis._pivot = Point.read(arguments, 0, { clone: true, readNull: true });\n\t\tthis._position = undefined;\n\t}\n}, Base.each({\n\t\tgetStrokeBounds: { stroke: true },\n\t\tgetHandleBounds: { handle: true },\n\t\tgetInternalBounds: { internal: true }\n\t},\n\tfunction(options, key) {\n\t\tthis[key] = function(matrix) {\n\t\t\treturn this.getBounds(matrix, options);\n\t\t};\n\t},\n{\n\tbeans: true,\n\n\tgetBounds: function(matrix, options) {\n\t\tvar hasMatrix = options || matrix instanceof Matrix,\n\t\t\topts = Base.set({}, hasMatrix ? options : matrix,\n\t\t\t\t\tthis._boundsOptions);\n\t\tif (!opts.stroke || this.getStrokeScaling())\n\t\t\topts.cacheItem = this;\n\t\tvar rect = this._getCachedBounds(hasMatrix && matrix, opts).rect;\n\t\treturn !arguments.length\n\t\t\t\t? new LinkedRectangle(rect.x, rect.y, rect.width, rect.height,\n\t\t\t\t\tthis, 'setBounds')\n\t\t\t\t: rect;\n\t},\n\n\tsetBounds: function() {\n\t\tvar rect = Rectangle.read(arguments),\n\t\t\tbounds = this.getBounds(),\n\t\t\t_matrix = this._matrix,\n\t\t\tmatrix = new Matrix(),\n\t\t\tcenter = rect.getCenter();\n\t\tmatrix.translate(center);\n\t\tif (rect.width != bounds.width || rect.height != bounds.height) {\n\t\t\tif (!_matrix.isInvertible()) {\n\t\t\t\t_matrix.set(_matrix._backup\n\t\t\t\t\t\t|| new Matrix().translate(_matrix.getTranslation()));\n\t\t\t\tbounds = this.getBounds();\n\t\t\t}\n\t\t\tmatrix.scale(\n\t\t\t\t\tbounds.width !== 0 ? rect.width / bounds.width : 0,\n\t\t\t\t\tbounds.height !== 0 ? rect.height / bounds.height : 0);\n\t\t}\n\t\tcenter = bounds.getCenter();\n\t\tmatrix.translate(-center.x, -center.y);\n\t\tthis.transform(matrix);\n\t},\n\n\t_getBounds: function(matrix, options) {\n\t\tvar children = this._children;\n\t\tif (!children || !children.length)\n\t\t\treturn new Rectangle();\n\t\tItem._updateBoundsCache(this, options.cacheItem);\n\t\treturn Item._getBounds(children, matrix, options);\n\t},\n\n\t_getBoundsCacheKey: function(options, internal) {\n\t\treturn [\n\t\t\toptions.stroke ? 1 : 0,\n\t\t\toptions.handle ? 1 : 0,\n\t\t\tinternal ? 1 : 0\n\t\t].join('');\n\t},\n\n\t_getCachedBounds: function(matrix, options, noInternal) {\n\t\tmatrix = matrix && matrix._orNullIfIdentity();\n\t\tvar internal = options.internal && !noInternal,\n\t\t\tcacheItem = options.cacheItem,\n\t\t\t_matrix = internal ? null : this._matrix._orNullIfIdentity(),\n\t\t\tcacheKey = cacheItem && (!matrix || matrix.equals(_matrix))\n\t\t\t\t&& this._getBoundsCacheKey(options, internal),\n\t\t\tbounds = this._bounds;\n\t\tItem._updateBoundsCache(this._parent || this._symbol, cacheItem);\n\t\tif (cacheKey && bounds && cacheKey in bounds) {\n\t\t\tvar cached = bounds[cacheKey];\n\t\t\treturn {\n\t\t\t\trect: cached.rect.clone(),\n\t\t\t\tnonscaling: cached.nonscaling\n\t\t\t};\n\t\t}\n\t\tvar res = this._getBounds(matrix || _matrix, options),\n\t\t\trect = res.rect || res,\n\t\t\tstyle = this._style,\n\t\t\tnonscaling = res.nonscaling || style.hasStroke()\n\t\t\t\t&& !style.getStrokeScaling();\n\t\tif (cacheKey) {\n\t\t\tif (!bounds) {\n\t\t\t\tthis._bounds = bounds = {};\n\t\t\t}\n\t\t\tvar cached = bounds[cacheKey] = {\n\t\t\t\trect: rect.clone(),\n\t\t\t\tnonscaling: nonscaling,\n\t\t\t\tinternal: internal\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\trect: rect,\n\t\t\tnonscaling: nonscaling\n\t\t};\n\t},\n\n\t_getStrokeMatrix: function(matrix, options) {\n\t\tvar parent = this.getStrokeScaling() ? null\n\t\t\t\t: options && options.internal ? this\n\t\t\t\t\t: this._parent || this._symbol && this._symbol._item,\n\t\t\tmx = parent ? parent.getViewMatrix().invert() : matrix;\n\t\treturn mx && mx._shiftless();\n\t},\n\n\tstatics: {\n\t\t_updateBoundsCache: function(parent, item) {\n\t\t\tif (parent && item) {\n\t\t\t\tvar id = item._id,\n\t\t\t\t\tref = parent._boundsCache = parent._boundsCache || {\n\t\t\t\t\t\tids: {},\n\t\t\t\t\t\tlist: []\n\t\t\t\t\t};\n\t\t\t\tif (!ref.ids[id]) {\n\t\t\t\t\tref.list.push(item);\n\t\t\t\t\tref.ids[id] = item;\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_clearBoundsCache: function(item) {\n\t\t\tvar cache = item._boundsCache;\n\t\t\tif (cache) {\n\t\t\t\titem._bounds = item._position = item._boundsCache = undefined;\n\t\t\t\tfor (var i = 0, list = cache.list, l = list.length; i < l; i++){\n\t\t\t\t\tvar other = list[i];\n\t\t\t\t\tif (other !== item) {\n\t\t\t\t\t\tother._bounds = other._position = undefined;\n\t\t\t\t\t\tif (other._boundsCache)\n\t\t\t\t\t\t\tItem._clearBoundsCache(other);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_getBounds: function(items, matrix, options) {\n\t\t\tvar x1 = Infinity,\n\t\t\t\tx2 = -x1,\n\t\t\t\ty1 = x1,\n\t\t\t\ty2 = x2,\n\t\t\t\tnonscaling = false;\n\t\t\toptions = options || {};\n\t\t\tfor (var i = 0, l = items.length; i < l; i++) {\n\t\t\t\tvar item = items[i];\n\t\t\t\tif (item._visible && !item.isEmpty(true)) {\n\t\t\t\t\tvar bounds = item._getCachedBounds(\n\t\t\t\t\t\tmatrix && matrix.appended(item._matrix), options, true),\n\t\t\t\t\t\trect = bounds.rect;\n\t\t\t\t\tx1 = Math.min(rect.x, x1);\n\t\t\t\t\ty1 = Math.min(rect.y, y1);\n\t\t\t\t\tx2 = Math.max(rect.x + rect.width, x2);\n\t\t\t\t\ty2 = Math.max(rect.y + rect.height, y2);\n\t\t\t\t\tif (bounds.nonscaling)\n\t\t\t\t\t\tnonscaling = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn {\n\t\t\t\trect: isFinite(x1)\n\t\t\t\t\t? new Rectangle(x1, y1, x2 - x1, y2 - y1)\n\t\t\t\t\t: new Rectangle(),\n\t\t\t\tnonscaling: nonscaling\n\t\t\t};\n\t\t}\n\t}\n\n}), {\n\tbeans: true,\n\n\t_decompose: function() {\n\t\treturn this._applyMatrix\n\t\t\t? null\n\t\t\t: this._decomposed || (this._decomposed = this._matrix.decompose());\n\t},\n\n\tgetRotation: function() {\n\t\tvar decomposed = this._decompose();\n\t\treturn decomposed ? decomposed.rotation : 0;\n\t},\n\n\tsetRotation: function(rotation) {\n\t\tvar current = this.getRotation();\n\t\tif (current != null && rotation != null) {\n\t\t\tvar decomposed = this._decomposed;\n\t\t\tthis.rotate(rotation - current);\n\t\t\tif (decomposed) {\n\t\t\t\tdecomposed.rotation = rotation;\n\t\t\t\tthis._decomposed = decomposed;\n\t\t\t}\n\t\t}\n\t},\n\n\tgetScaling: function() {\n\t\tvar decomposed = this._decompose(),\n\t\t\ts = decomposed && decomposed.scaling;\n\t\treturn new LinkedPoint(s ? s.x : 1, s ? s.y : 1, this, 'setScaling');\n\t},\n\n\tsetScaling: function() {\n\t\tvar current = this.getScaling(),\n\t\t\tscaling = Point.read(arguments, 0, { clone: true, readNull: true });\n\t\tif (current && scaling && !current.equals(scaling)) {\n\t\t\tvar rotation = this.getRotation(),\n\t\t\t\tdecomposed = this._decomposed,\n\t\t\t\tmatrix = new Matrix(),\n\t\t\t\tisZero = Numerical.isZero;\n\t\t\tif (isZero(current.x) || isZero(current.y)) {\n\t\t\t\tmatrix.translate(decomposed.translation);\n\t\t\t\tif (rotation) {\n\t\t\t\t\tmatrix.rotate(rotation);\n\t\t\t\t}\n\t\t\t\tmatrix.scale(scaling.x, scaling.y);\n\t\t\t\tthis._matrix.set(matrix);\n\t\t\t} else {\n\t\t\t\tvar center = this.getPosition(true);\n\t\t\t\tmatrix.translate(center);\n\t\t\t\tif (rotation)\n\t\t\t\t\tmatrix.rotate(rotation);\n\t\t\t\tmatrix.scale(scaling.x / current.x, scaling.y / current.y);\n\t\t\t\tif (rotation)\n\t\t\t\t\tmatrix.rotate(-rotation);\n\t\t\t\tmatrix.translate(center.negate());\n\t\t\t\tthis.transform(matrix);\n\t\t\t}\n\t\t\tif (decomposed) {\n\t\t\t\tdecomposed.scaling = scaling;\n\t\t\t\tthis._decomposed = decomposed;\n\t\t\t}\n\t\t}\n\t},\n\n\tgetMatrix: function() {\n\t\treturn this._matrix;\n\t},\n\n\tsetMatrix: function() {\n\t\tvar matrix = this._matrix;\n\t\tmatrix.set.apply(matrix, arguments);\n\t},\n\n\tgetGlobalMatrix: function(_dontClone) {\n\t\tvar matrix = this._globalMatrix;\n\t\tif (matrix) {\n\t\t\tvar parent = this._parent;\n\t\t\tvar parents = [];\n\t\t\twhile (parent) {\n\t\t\t\tif (!parent._globalMatrix) {\n\t\t\t\t\tmatrix = null;\n\t\t\t\t\tfor (var i = 0, l = parents.length; i < l; i++) {\n\t\t\t\t\t\tparents[i]._globalMatrix = null;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tparents.push(parent);\n\t\t\t\tparent = parent._parent;\n\t\t\t}\n\t\t}\n\t\tif (!matrix) {\n\t\t\tmatrix = this._globalMatrix = this._matrix.clone();\n\t\t\tvar parent = this._parent;\n\t\t\tif (parent)\n\t\t\t\tmatrix.prepend(parent.getGlobalMatrix(true));\n\t\t}\n\t\treturn _dontClone ? matrix : matrix.clone();\n\t},\n\n\tgetViewMatrix: function() {\n\t\treturn this.getGlobalMatrix().prepend(this.getView()._matrix);\n\t},\n\n\tgetApplyMatrix: function() {\n\t\treturn this._applyMatrix;\n\t},\n\n\tsetApplyMatrix: function(apply) {\n\t\tif (this._applyMatrix = this._canApplyMatrix && !!apply)\n\t\t\tthis.transform(null, true);\n\t},\n\n\tgetTransformContent: '#getApplyMatrix',\n\tsetTransformContent: '#setApplyMatrix',\n}, {\n\tgetProject: function() {\n\t\treturn this._project;\n\t},\n\n\t_setProject: function(project, installEvents) {\n\t\tif (this._project !== project) {\n\t\t\tif (this._project)\n\t\t\t\tthis._installEvents(false);\n\t\t\tthis._project = project;\n\t\t\tvar children = this._children;\n\t\t\tfor (var i = 0, l = children && children.length; i < l; i++)\n\t\t\t\tchildren[i]._setProject(project);\n\t\t\tinstallEvents = true;\n\t\t}\n\t\tif (installEvents)\n\t\t\tthis._installEvents(true);\n\t},\n\n\tgetView: function() {\n\t\treturn this._project._view;\n\t},\n\n\t_installEvents: function _installEvents(install) {\n\t\t_installEvents.base.call(this, install);\n\t\tvar children = this._children;\n\t\tfor (var i = 0, l = children && children.length; i < l; i++)\n\t\t\tchildren[i]._installEvents(install);\n\t},\n\n\tgetLayer: function() {\n\t\tvar parent = this;\n\t\twhile (parent = parent._parent) {\n\t\t\tif (parent instanceof Layer)\n\t\t\t\treturn parent;\n\t\t}\n\t\treturn null;\n\t},\n\n\tgetParent: function() {\n\t\treturn this._parent;\n\t},\n\n\tsetParent: function(item) {\n\t\treturn item.addChild(this);\n\t},\n\n\t_getOwner: '#getParent',\n\n\tgetChildren: function() {\n\t\treturn this._children;\n\t},\n\n\tsetChildren: function(items) {\n\t\tthis.removeChildren();\n\t\tthis.addChildren(items);\n\t},\n\n\tgetFirstChild: function() {\n\t\treturn this._children && this._children[0] || null;\n\t},\n\n\tgetLastChild: function() {\n\t\treturn this._children && this._children[this._children.length - 1]\n\t\t\t\t|| null;\n\t},\n\n\tgetNextSibling: function() {\n\t\tvar owner = this._getOwner();\n\t\treturn owner && owner._children[this._index + 1] || null;\n\t},\n\n\tgetPreviousSibling: function() {\n\t\tvar owner = this._getOwner();\n\t\treturn owner && owner._children[this._index - 1] || null;\n\t},\n\n\tgetIndex: function() {\n\t\treturn this._index;\n\t},\n\n\tsetIndex: function(index) {\n\t\tvar parent = this._parent,\n\t\t\tchildren = parent && parent._children;\n\t\tif (children) {\n\t\t\tparent.insertChildren(index in children ? index : undefined,\n\t\t\t\t\t\t\t\t [this]);\n\t\t}\n\t},\n\n\tequals: function(item) {\n\t\treturn item === this || item && this._class === item._class\n\t\t\t\t&& this._style.equals(item._style)\n\t\t\t\t&& this._matrix.equals(item._matrix)\n\t\t\t\t&& this._locked === item._locked\n\t\t\t\t&& this._visible === item._visible\n\t\t\t\t&& this._blendMode === item._blendMode\n\t\t\t\t&& this._opacity === item._opacity\n\t\t\t\t&& this._clipMask === item._clipMask\n\t\t\t\t&& this._guide === item._guide\n\t\t\t\t&& this._equals(item)\n\t\t\t\t|| false;\n\t},\n\n\t_equals: function(item) {\n\t\treturn Base.equals(this._children, item._children);\n\t},\n\n\tclone: function(options) {\n\t\tvar copy = new this.constructor(Item.NO_INSERT),\n\t\t\tchildren = this._children,\n\t\t\tinsert = Base.pick(options ? options.insert : undefined,\n\t\t\t\t\toptions === undefined || options === true),\n\t\t\tdeep = Base.pick(options ? options.deep : undefined, true);\n\t\tif (children)\n\t\t\tcopy.copyAttributes(this);\n\t\tif (!children || deep)\n\t\t\tcopy.copyContent(this);\n\t\tif (!children)\n\t\t\tcopy.copyAttributes(this);\n\t\tif (insert)\n\t\t\tcopy.insertAbove(this);\n\t\tvar name = this._name,\n\t\t\tparent = this._parent;\n\t\tif (name && parent) {\n\t\t\tvar children = parent._children,\n\t\t\t\torig = name,\n\t\t\t\ti = 1;\n\t\t\twhile (children[name])\n\t\t\t\tname = orig + ' ' + (i++);\n\t\t\tif (name !== orig)\n\t\t\t\tcopy.setName(name);\n\t\t}\n\t\treturn copy;\n\t},\n\n\tcopyContent: function(source) {\n\t\tvar children = source._children;\n\t\tfor (var i = 0, l = children && children.length; i < l; i++) {\n\t\t\tthis.addChild(children[i].clone(false), true);\n\t\t}\n\t},\n\n\tcopyAttributes: function(source, excludeMatrix) {\n\t\tthis.setStyle(source._style);\n\t\tvar keys = ['_locked', '_visible', '_blendMode', '_opacity',\n\t\t\t\t'_clipMask', '_guide'];\n\t\tfor (var i = 0, l = keys.length; i < l; i++) {\n\t\t\tvar key = keys[i];\n\t\t\tif (source.hasOwnProperty(key))\n\t\t\t\tthis[key] = source[key];\n\t\t}\n\t\tif (!excludeMatrix)\n\t\t\tthis._matrix.set(source._matrix, true);\n\t\tthis.setApplyMatrix(source._applyMatrix);\n\t\tthis.setPivot(source._pivot);\n\t\tthis.setSelection(source._selection);\n\t\tvar data = source._data,\n\t\t\tname = source._name;\n\t\tthis._data = data ? Base.clone(data) : null;\n\t\tif (name)\n\t\t\tthis.setName(name);\n\t},\n\n\trasterize: function(arg0, arg1) {\n\t\tvar resolution,\n\t\t\tinsert,\n\t\t\traster;\n\t\tif (Base.isPlainObject(arg0)) {\n\t\t\tresolution = arg0.resolution;\n\t\t\tinsert = arg0.insert;\n\t\t\traster = arg0.raster;\n\t\t} else {\n\t\t\tresolution = arg0;\n\t\t\tinsert = arg1;\n\t\t}\n\t\tif (!raster) {\n\t\t\traster = new Raster(Item.NO_INSERT);\n\t\t}\n\t\tvar bounds = this.getStrokeBounds(),\n\t\t\tscale = (resolution || this.getView().getResolution()) / 72,\n\t\t\ttopLeft = bounds.getTopLeft().floor(),\n\t\t\tbottomRight = bounds.getBottomRight().ceil(),\n\t\t\tboundsSize = new Size(bottomRight.subtract(topLeft)),\n\t\t\trasterSize = boundsSize.multiply(scale);\n\t\traster.setSize(rasterSize, true);\n\n\t\tif (!rasterSize.isZero()) {\n\t\t\tvar ctx = raster.getContext(true),\n\t\t\t\tmatrix = new Matrix().scale(scale).translate(topLeft.negate());\n\t\t\tctx.save();\n\t\t\tmatrix.applyToContext(ctx);\n\t\t\tthis.draw(ctx, new Base({ matrices: [matrix] }));\n\t\t\tctx.restore();\n\t\t}\n\t\traster._matrix.set(\n\t\t\tnew Matrix()\n\t\t\t\t.translate(topLeft.add(boundsSize.divide(2)))\n\t\t\t\t.scale(1 / scale)\n\t\t);\n\t\tif (insert === undefined || insert) {\n\t\t\traster.insertAbove(this);\n\t\t}\n\t\treturn raster;\n\t},\n\n\tcontains: function() {\n\t\tvar matrix = this._matrix;\n\t\treturn (\n\t\t\tmatrix.isInvertible() &&\n\t\t\t!!this._contains(matrix._inverseTransform(Point.read(arguments)))\n\t\t);\n\t},\n\n\t_contains: function(point) {\n\t\tvar children = this._children;\n\t\tif (children) {\n\t\t\tfor (var i = children.length - 1; i >= 0; i--) {\n\t\t\t\tif (children[i].contains(point))\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\treturn point.isInside(this.getInternalBounds());\n\t},\n\n\tisInside: function() {\n\t\treturn Rectangle.read(arguments).contains(this.getBounds());\n\t},\n\n\t_asPathItem: function() {\n\t\treturn new Path.Rectangle({\n\t\t\trectangle: this.getInternalBounds(),\n\t\t\tmatrix: this._matrix,\n\t\t\tinsert: false,\n\t\t});\n\t},\n\n\tintersects: function(item, _matrix) {\n\t\tif (!(item instanceof Item))\n\t\t\treturn false;\n\t\treturn this._asPathItem().getIntersections(item._asPathItem(), null,\n\t\t\t\t_matrix, true).length > 0;\n\t}\n},\nnew function() {\n\tfunction hitTest() {\n\t\tvar args = arguments;\n\t\treturn this._hitTest(\n\t\t\t\tPoint.read(args),\n\t\t\t\tHitResult.getOptions(args));\n\t}\n\n\tfunction hitTestAll() {\n\t\tvar args = arguments,\n\t\t\tpoint = Point.read(args),\n\t\t\toptions = HitResult.getOptions(args),\n\t\t\tall = [];\n\t\tthis._hitTest(point, new Base({ all: all }, options));\n\t\treturn all;\n\t}\n\n\tfunction hitTestChildren(point, options, viewMatrix, _exclude) {\n\t\tvar children = this._children;\n\t\tif (children) {\n\t\t\tfor (var i = children.length - 1; i >= 0; i--) {\n\t\t\t\tvar child = children[i];\n\t\t\t\tvar res = child !== _exclude && child._hitTest(point, options,\n\t\t\t\t\t\tviewMatrix);\n\t\t\t\tif (res && !options.all)\n\t\t\t\t\treturn res;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}\n\n\tProject.inject({\n\t\thitTest: hitTest,\n\t\thitTestAll: hitTestAll,\n\t\t_hitTest: hitTestChildren\n\t});\n\n\treturn {\n\t\thitTest: hitTest,\n\t\thitTestAll: hitTestAll,\n\t\t_hitTestChildren: hitTestChildren,\n\t};\n}, {\n\n\t_hitTest: function(point, options, parentViewMatrix) {\n\t\tif (this._locked || !this._visible || this._guide && !options.guides\n\t\t\t\t|| this.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\n\t\tvar matrix = this._matrix,\n\t\t\tviewMatrix = parentViewMatrix\n\t\t\t\t\t? parentViewMatrix.appended(matrix)\n\t\t\t\t\t: this.getGlobalMatrix().prepend(this.getView()._matrix),\n\t\t\ttolerance = Math.max(options.tolerance, 1e-12),\n\t\t\ttolerancePadding = options._tolerancePadding = new Size(\n\t\t\t\t\tPath._getStrokePadding(tolerance,\n\t\t\t\t\t\tmatrix._shiftless().invert()));\n\t\tpoint = matrix._inverseTransform(point);\n\t\tif (!point || !this._children &&\n\t\t\t!this.getBounds({ internal: true, stroke: true, handle: true })\n\t\t\t\t.expand(tolerancePadding.multiply(2))._containsPoint(point)) {\n\t\t\treturn null;\n\t\t}\n\n\t\tvar checkSelf = !(options.guides && !this._guide\n\t\t\t\t|| options.selected && !this.isSelected()\n\t\t\t\t|| options.type && options.type !== Base.hyphenate(this._class)\n\t\t\t\t|| options.class && !(this instanceof options.class)),\n\t\t\tmatch = options.match,\n\t\t\tthat = this,\n\t\t\tbounds,\n\t\t\tres;\n\n\t\tfunction filter(hit) {\n\t\t\tif (hit && match && !match(hit))\n\t\t\t\thit = null;\n\t\t\tif (hit && options.all)\n\t\t\t\toptions.all.push(hit);\n\t\t\treturn hit;\n\t\t}\n\n\t\tfunction checkPoint(type, part) {\n\t\t\tvar pt = part ? bounds['get' + part]() : that.getPosition();\n\t\t\tif (point.subtract(pt).divide(tolerancePadding).length <= 1) {\n\t\t\t\treturn new HitResult(type, that, {\n\t\t\t\t\tname: part ? Base.hyphenate(part) : type,\n\t\t\t\t\tpoint: pt\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tvar checkPosition = options.position,\n\t\t\tcheckCenter = options.center,\n\t\t\tcheckBounds = options.bounds;\n\t\tif (checkSelf && this._parent\n\t\t\t\t&& (checkPosition || checkCenter || checkBounds)) {\n\t\t\tif (checkCenter || checkBounds) {\n\t\t\t\tbounds = this.getInternalBounds();\n\t\t\t}\n\t\t\tres = checkPosition && checkPoint('position') ||\n\t\t\t\t\tcheckCenter && checkPoint('center', 'Center');\n\t\t\tif (!res && checkBounds) {\n\t\t\t\tvar points = [\n\t\t\t\t\t'TopLeft', 'TopRight', 'BottomLeft', 'BottomRight',\n\t\t\t\t\t'LeftCenter', 'TopCenter', 'RightCenter', 'BottomCenter'\n\t\t\t\t];\n\t\t\t\tfor (var i = 0; i < 8 && !res; i++) {\n\t\t\t\t\tres = checkPoint('bounds', points[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tres = filter(res);\n\t\t}\n\n\t\tif (!res) {\n\t\t\tres = this._hitTestChildren(point, options, viewMatrix)\n\t\t\t\t|| checkSelf\n\t\t\t\t\t&& filter(this._hitTestSelf(point, options, viewMatrix,\n\t\t\t\t\t\tthis.getStrokeScaling() ? null\n\t\t\t\t\t\t\t: viewMatrix._shiftless().invert()))\n\t\t\t\t|| null;\n\t\t}\n\t\tif (res && res.point) {\n\t\t\tres.point = matrix.transform(res.point);\n\t\t}\n\t\treturn res;\n\t},\n\n\t_hitTestSelf: function(point, options) {\n\t\tif (options.fill && this.hasFill() && this._contains(point))\n\t\t\treturn new HitResult('fill', this);\n\t},\n\n\tmatches: function(name, compare) {\n\t\tfunction matchObject(obj1, obj2) {\n\t\t\tfor (var i in obj1) {\n\t\t\t\tif (obj1.hasOwnProperty(i)) {\n\t\t\t\t\tvar val1 = obj1[i],\n\t\t\t\t\t\tval2 = obj2[i];\n\t\t\t\t\tif (Base.isPlainObject(val1) && Base.isPlainObject(val2)) {\n\t\t\t\t\t\tif (!matchObject(val1, val2))\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t} else if (!Base.equals(val1, val2)) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\tvar type = typeof name;\n\t\tif (type === 'object') {\n\t\t\tfor (var key in name) {\n\t\t\t\tif (name.hasOwnProperty(key) && !this.matches(key, name[key]))\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (type === 'function') {\n\t\t\treturn name(this);\n\t\t} else if (name === 'match') {\n\t\t\treturn compare(this);\n\t\t} else {\n\t\t\tvar value = /^(empty|editable)$/.test(name)\n\t\t\t\t\t? this['is' + Base.capitalize(name)]()\n\t\t\t\t\t: name === 'type'\n\t\t\t\t\t\t? Base.hyphenate(this._class)\n\t\t\t\t\t\t: this[name];\n\t\t\tif (name === 'class') {\n\t\t\t\tif (typeof compare === 'function')\n\t\t\t\t\treturn this instanceof compare;\n\t\t\t\tvalue = this._class;\n\t\t\t}\n\t\t\tif (typeof compare === 'function') {\n\t\t\t\treturn !!compare(value);\n\t\t\t} else if (compare) {\n\t\t\t\tif (compare.test) {\n\t\t\t\t\treturn compare.test(value);\n\t\t\t\t} else if (Base.isPlainObject(compare)) {\n\t\t\t\t\treturn matchObject(compare, value);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn Base.equals(value, compare);\n\t\t}\n\t},\n\n\tgetItems: function(options) {\n\t\treturn Item._getItems(this, options, this._matrix);\n\t},\n\n\tgetItem: function(options) {\n\t\treturn Item._getItems(this, options, this._matrix, null, true)[0]\n\t\t\t\t|| null;\n\t},\n\n\tstatics: {\n\t\t_getItems: function _getItems(item, options, matrix, param, firstOnly) {\n\t\t\tif (!param) {\n\t\t\t\tvar obj = typeof options === 'object' && options,\n\t\t\t\t\toverlapping = obj && obj.overlapping,\n\t\t\t\t\tinside = obj && obj.inside,\n\t\t\t\t\tbounds = overlapping || inside,\n\t\t\t\t\trect = bounds && Rectangle.read([bounds]);\n\t\t\t\tparam = {\n\t\t\t\t\titems: [],\n\t\t\t\t\trecursive: obj && obj.recursive !== false,\n\t\t\t\t\tinside: !!inside,\n\t\t\t\t\toverlapping: !!overlapping,\n\t\t\t\t\trect: rect,\n\t\t\t\t\tpath: overlapping && new Path.Rectangle({\n\t\t\t\t\t\trectangle: rect,\n\t\t\t\t\t\tinsert: false\n\t\t\t\t\t})\n\t\t\t\t};\n\t\t\t\tif (obj) {\n\t\t\t\t\toptions = Base.filter({}, options, {\n\t\t\t\t\t\trecursive: true, inside: true, overlapping: true\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t\tvar children = item._children,\n\t\t\t\titems = param.items,\n\t\t\t\trect = param.rect;\n\t\t\tmatrix = rect && (matrix || new Matrix());\n\t\t\tfor (var i = 0, l = children && children.length; i < l; i++) {\n\t\t\t\tvar child = children[i],\n\t\t\t\t\tchildMatrix = matrix && matrix.appended(child._matrix),\n\t\t\t\t\tadd = true;\n\t\t\t\tif (rect) {\n\t\t\t\t\tvar bounds = child.getBounds(childMatrix);\n\t\t\t\t\tif (!rect.intersects(bounds))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif (!(rect.contains(bounds)\n\t\t\t\t\t\t\t|| param.overlapping && (bounds.contains(rect)\n\t\t\t\t\t\t\t\t|| param.path.intersects(child, childMatrix))))\n\t\t\t\t\t\tadd = false;\n\t\t\t\t}\n\t\t\t\tif (add && child.matches(options)) {\n\t\t\t\t\titems.push(child);\n\t\t\t\t\tif (firstOnly)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (param.recursive !== false) {\n\t\t\t\t\t_getItems(child, options, childMatrix, param, firstOnly);\n\t\t\t\t}\n\t\t\t\tif (firstOnly && items.length > 0)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn items;\n\t\t}\n\t}\n}, {\n\n\timportJSON: function(json) {\n\t\tvar res = Base.importJSON(json, this);\n\t\treturn res !== this ? this.addChild(res) : res;\n\t},\n\n\taddChild: function(item) {\n\t\treturn this.insertChild(undefined, item);\n\t},\n\n\tinsertChild: function(index, item) {\n\t\tvar res = item ? this.insertChildren(index, [item]) : null;\n\t\treturn res && res[0];\n\t},\n\n\taddChildren: function(items) {\n\t\treturn this.insertChildren(this._children.length, items);\n\t},\n\n\tinsertChildren: function(index, items) {\n\t\tvar children = this._children;\n\t\tif (children && items && items.length > 0) {\n\t\t\titems = Base.slice(items);\n\t\t\tvar inserted = {};\n\t\t\tfor (var i = items.length - 1; i >= 0; i--) {\n\t\t\t\tvar item = items[i],\n\t\t\t\t\tid = item && item._id;\n\t\t\t\tif (!item || inserted[id]) {\n\t\t\t\t\titems.splice(i, 1);\n\t\t\t\t} else {\n\t\t\t\t\titem._remove(false, true);\n\t\t\t\t\tinserted[id] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tBase.splice(children, items, index, 0);\n\t\t\tvar project = this._project,\n\t\t\t\tnotifySelf = project._changes;\n\t\t\tfor (var i = 0, l = items.length; i < l; i++) {\n\t\t\t\tvar item = items[i],\n\t\t\t\t\tname = item._name;\n\t\t\t\titem._parent = this;\n\t\t\t\titem._setProject(project, true);\n\t\t\t\tif (name)\n\t\t\t\t\titem.setName(name);\n\t\t\t\tif (notifySelf)\n\t\t\t\t\titem._changed(5);\n\t\t\t}\n\t\t\tthis._changed(11);\n\t\t} else {\n\t\t\titems = null;\n\t\t}\n\t\treturn items;\n\t},\n\n\t_insertItem: '#insertChild',\n\n\t_insertAt: function(item, offset) {\n\t\tvar owner = item && item._getOwner(),\n\t\t\tres = item !== this && owner ? this : null;\n\t\tif (res) {\n\t\t\tres._remove(false, true);\n\t\t\towner._insertItem(item._index + offset, res);\n\t\t}\n\t\treturn res;\n\t},\n\n\tinsertAbove: function(item) {\n\t\treturn this._insertAt(item, 1);\n\t},\n\n\tinsertBelow: function(item) {\n\t\treturn this._insertAt(item, 0);\n\t},\n\n\tsendToBack: function() {\n\t\tvar owner = this._getOwner();\n\t\treturn owner ? owner._insertItem(0, this) : null;\n\t},\n\n\tbringToFront: function() {\n\t\tvar owner = this._getOwner();\n\t\treturn owner ? owner._insertItem(undefined, this) : null;\n\t},\n\n\tappendTop: '#addChild',\n\n\tappendBottom: function(item) {\n\t\treturn this.insertChild(0, item);\n\t},\n\n\tmoveAbove: '#insertAbove',\n\n\tmoveBelow: '#insertBelow',\n\n\taddTo: function(owner) {\n\t\treturn owner._insertItem(undefined, this);\n\t},\n\n\tcopyTo: function(owner) {\n\t\treturn this.clone(false).addTo(owner);\n\t},\n\n\treduce: function(options) {\n\t\tvar children = this._children;\n\t\tif (children && children.length === 1) {\n\t\t\tvar child = children[0].reduce(options);\n\t\t\tif (this._parent) {\n\t\t\t\tchild.insertAbove(this);\n\t\t\t\tthis.remove();\n\t\t\t} else {\n\t\t\t\tchild.remove();\n\t\t\t}\n\t\t\treturn child;\n\t\t}\n\t\treturn this;\n\t},\n\n\t_removeNamed: function() {\n\t\tvar owner = this._getOwner();\n\t\tif (owner) {\n\t\t\tvar children = owner._children,\n\t\t\t\tnamedChildren = owner._namedChildren,\n\t\t\t\tname = this._name,\n\t\t\t\tnamedArray = namedChildren[name],\n\t\t\t\tindex = namedArray ? namedArray.indexOf(this) : -1;\n\t\t\tif (index !== -1) {\n\t\t\t\tif (children[name] == this)\n\t\t\t\t\tdelete children[name];\n\t\t\t\tnamedArray.splice(index, 1);\n\t\t\t\tif (namedArray.length) {\n\t\t\t\t\tchildren[name] = namedArray[0];\n\t\t\t\t} else {\n\t\t\t\t\tdelete namedChildren[name];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t_remove: function(notifySelf, notifyParent) {\n\t\tvar owner = this._getOwner(),\n\t\t\tproject = this._project,\n\t\t\tindex = this._index;\n\t\tif (this._style)\n\t\t\tthis._style._dispose();\n\t\tif (owner) {\n\t\t\tif (this._name)\n\t\t\t\tthis._removeNamed();\n\t\t\tif (index != null) {\n\t\t\t\tif (project._activeLayer === this)\n\t\t\t\t\tproject._activeLayer = this.getNextSibling()\n\t\t\t\t\t\t\t|| this.getPreviousSibling();\n\t\t\t\tBase.splice(owner._children, null, index, 1);\n\t\t\t}\n\t\t\tthis._installEvents(false);\n\t\t\tif (notifySelf && project._changes)\n\t\t\t\tthis._changed(5);\n\t\t\tif (notifyParent)\n\t\t\t\towner._changed(11, this);\n\t\t\tthis._parent = null;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t},\n\n\tremove: function() {\n\t\treturn this._remove(true, true);\n\t},\n\n\treplaceWith: function(item) {\n\t\tvar ok = item && item.insertBelow(this);\n\t\tif (ok)\n\t\t\tthis.remove();\n\t\treturn ok;\n\t},\n\n\tremoveChildren: function(start, end) {\n\t\tif (!this._children)\n\t\t\treturn null;\n\t\tstart = start || 0;\n\t\tend = Base.pick(end, this._children.length);\n\t\tvar removed = Base.splice(this._children, null, start, end - start);\n\t\tfor (var i = removed.length - 1; i >= 0; i--) {\n\t\t\tremoved[i]._remove(true, false);\n\t\t}\n\t\tif (removed.length > 0)\n\t\t\tthis._changed(11);\n\t\treturn removed;\n\t},\n\n\tclear: '#removeChildren',\n\n\treverseChildren: function() {\n\t\tif (this._children) {\n\t\t\tthis._children.reverse();\n\t\t\tfor (var i = 0, l = this._children.length; i < l; i++)\n\t\t\t\tthis._children[i]._index = i;\n\t\t\tthis._changed(11);\n\t\t}\n\t},\n\n\tisEmpty: function(recursively) {\n\t\tvar children = this._children;\n\t\tvar numChildren = children ? children.length : 0;\n\t\tif (recursively) {\n\t\t\tfor (var i = 0; i < numChildren; i++) {\n\t\t\t\tif (!children[i].isEmpty(recursively)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn !numChildren;\n\t},\n\n\tisEditable: function() {\n\t\tvar item = this;\n\t\twhile (item) {\n\t\t\tif (!item._visible || item._locked)\n\t\t\t\treturn false;\n\t\t\titem = item._parent;\n\t\t}\n\t\treturn true;\n\t},\n\n\thasFill: function() {\n\t\treturn this.getStyle().hasFill();\n\t},\n\n\thasStroke: function() {\n\t\treturn this.getStyle().hasStroke();\n\t},\n\n\thasShadow: function() {\n\t\treturn this.getStyle().hasShadow();\n\t},\n\n\t_getOrder: function(item) {\n\t\tfunction getList(item) {\n\t\t\tvar list = [];\n\t\t\tdo {\n\t\t\t\tlist.unshift(item);\n\t\t\t} while (item = item._parent);\n\t\t\treturn list;\n\t\t}\n\t\tvar list1 = getList(this),\n\t\t\tlist2 = getList(item);\n\t\tfor (var i = 0, l = Math.min(list1.length, list2.length); i < l; i++) {\n\t\t\tif (list1[i] != list2[i]) {\n\t\t\t\treturn list1[i]._index < list2[i]._index ? 1 : -1;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t},\n\n\thasChildren: function() {\n\t\treturn this._children && this._children.length > 0;\n\t},\n\n\tisInserted: function() {\n\t\treturn this._parent ? this._parent.isInserted() : false;\n\t},\n\n\tisAbove: function(item) {\n\t\treturn this._getOrder(item) === -1;\n\t},\n\n\tisBelow: function(item) {\n\t\treturn this._getOrder(item) === 1;\n\t},\n\n\tisParent: function(item) {\n\t\treturn this._parent === item;\n\t},\n\n\tisChild: function(item) {\n\t\treturn item && item._parent === this;\n\t},\n\n\tisDescendant: function(item) {\n\t\tvar parent = this;\n\t\twhile (parent = parent._parent) {\n\t\t\tif (parent === item)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t},\n\n\tisAncestor: function(item) {\n\t\treturn item ? item.isDescendant(this) : false;\n\t},\n\n\tisSibling: function(item) {\n\t\treturn this._parent === item._parent;\n\t},\n\n\tisGroupedWith: function(item) {\n\t\tvar parent = this._parent;\n\t\twhile (parent) {\n\t\t\tif (parent._parent\n\t\t\t\t&& /^(Group|Layer|CompoundPath)$/.test(parent._class)\n\t\t\t\t&& item.isDescendant(parent))\n\t\t\t\t\treturn true;\n\t\t\tparent = parent._parent;\n\t\t}\n\t\treturn false;\n\t},\n\n}, Base.each(['rotate', 'scale', 'shear', 'skew'], function(key) {\n\tvar rotate = key === 'rotate';\n\tthis[key] = function() {\n\t\tvar args = arguments,\n\t\t\tvalue = (rotate ? Base : Point).read(args),\n\t\t\tcenter = Point.read(args, 0, { readNull: true });\n\t\treturn this.transform(new Matrix()[key](value,\n\t\t\t\tcenter || this.getPosition(true)));\n\t};\n}, {\n\ttranslate: function() {\n\t\tvar mx = new Matrix();\n\t\treturn this.transform(mx.translate.apply(mx, arguments));\n\t},\n\n\ttransform: function(matrix, _applyRecursively, _setApplyMatrix) {\n\t\tvar _matrix = this._matrix,\n\t\t\ttransformMatrix = matrix && !matrix.isIdentity(),\n\t\t\tapplyMatrix = (\n\t\t\t\t_setApplyMatrix && this._canApplyMatrix ||\n\t\t\t\tthis._applyMatrix && (\n\t\t\t\t\ttransformMatrix || !_matrix.isIdentity() ||\n\t\t\t\t\t_applyRecursively && this._children\n\t\t\t\t)\n\t\t\t);\n\t\tif (!transformMatrix && !applyMatrix)\n\t\t\treturn this;\n\t\tif (transformMatrix) {\n\t\t\tif (!matrix.isInvertible() && _matrix.isInvertible())\n\t\t\t\t_matrix._backup = _matrix.getValues();\n\t\t\t_matrix.prepend(matrix, true);\n\t\t\tvar style = this._style,\n\t\t\t\tfillColor = style.getFillColor(true),\n\t\t\t\tstrokeColor = style.getStrokeColor(true);\n\t\t\tif (fillColor)\n\t\t\t\tfillColor.transform(matrix);\n\t\t\tif (strokeColor)\n\t\t\t\tstrokeColor.transform(matrix);\n\t\t}\n\n\t\tif (applyMatrix && (applyMatrix = this._transformContent(\n\t\t\t\t_matrix, _applyRecursively, _setApplyMatrix))) {\n\t\t\tvar pivot = this._pivot;\n\t\t\tif (pivot)\n\t\t\t\t_matrix._transformPoint(pivot, pivot, true);\n\t\t\t_matrix.reset(true);\n\t\t\tif (_setApplyMatrix && this._canApplyMatrix)\n\t\t\t\tthis._applyMatrix = true;\n\t\t}\n\t\tvar bounds = this._bounds,\n\t\t\tposition = this._position;\n\t\tif (transformMatrix || applyMatrix) {\n\t\t\tthis._changed(25);\n\t\t}\n\t\tvar decomp = transformMatrix && bounds && matrix.decompose();\n\t\tif (decomp && decomp.skewing.isZero() && decomp.rotation % 90 === 0) {\n\t\t\tfor (var key in bounds) {\n\t\t\t\tvar cache = bounds[key];\n\t\t\t\tif (cache.nonscaling) {\n\t\t\t\t\tdelete bounds[key];\n\t\t\t\t} else if (applyMatrix || !cache.internal) {\n\t\t\t\t\tvar rect = cache.rect;\n\t\t\t\t\tmatrix._transformBounds(rect, rect);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis._bounds = bounds;\n\t\t\tvar cached = bounds[this._getBoundsCacheKey(\n\t\t\t\tthis._boundsOptions || {})];\n\t\t\tif (cached) {\n\t\t\t\tthis._position = this._getPositionFromBounds(cached.rect);\n\t\t\t}\n\t\t} else if (transformMatrix && position && this._pivot) {\n\t\t\tthis._position = matrix._transformPoint(position, position);\n\t\t}\n\t\treturn this;\n\t},\n\n\t_transformContent: function(matrix, applyRecursively, setApplyMatrix) {\n\t\tvar children = this._children;\n\t\tif (children) {\n\t\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\t\tchildren[i].transform(matrix, applyRecursively, setApplyMatrix);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t},\n\n\tglobalToLocal: function() {\n\t\treturn this.getGlobalMatrix(true)._inverseTransform(\n\t\t\t\tPoint.read(arguments));\n\t},\n\n\tlocalToGlobal: function() {\n\t\treturn this.getGlobalMatrix(true)._transformPoint(\n\t\t\t\tPoint.read(arguments));\n\t},\n\n\tparentToLocal: function() {\n\t\treturn this._matrix._inverseTransform(Point.read(arguments));\n\t},\n\n\tlocalToParent: function() {\n\t\treturn this._matrix._transformPoint(Point.read(arguments));\n\t},\n\n\tfitBounds: function(rectangle, fill) {\n\t\trectangle = Rectangle.read(arguments);\n\t\tvar bounds = this.getBounds(),\n\t\t\titemRatio = bounds.height / bounds.width,\n\t\t\trectRatio = rectangle.height / rectangle.width,\n\t\t\tscale = (fill ? itemRatio > rectRatio : itemRatio < rectRatio)\n\t\t\t\t\t? rectangle.width / bounds.width\n\t\t\t\t\t: rectangle.height / bounds.height,\n\t\t\tnewBounds = new Rectangle(new Point(),\n\t\t\t\t\tnew Size(bounds.width * scale, bounds.height * scale));\n\t\tnewBounds.setCenter(rectangle.getCenter());\n\t\tthis.setBounds(newBounds);\n\t}\n}), {\n\n\t_setStyles: function(ctx, param, viewMatrix) {\n\t\tvar style = this._style,\n\t\t\tmatrix = this._matrix;\n\t\tif (style.hasFill()) {\n\t\t\tctx.fillStyle = style.getFillColor().toCanvasStyle(ctx, matrix);\n\t\t}\n\t\tif (style.hasStroke()) {\n\t\t\tctx.strokeStyle = style.getStrokeColor().toCanvasStyle(ctx, matrix);\n\t\t\tctx.lineWidth = style.getStrokeWidth();\n\t\t\tvar strokeJoin = style.getStrokeJoin(),\n\t\t\t\tstrokeCap = style.getStrokeCap(),\n\t\t\t\tmiterLimit = style.getMiterLimit();\n\t\t\tif (strokeJoin)\n\t\t\t\tctx.lineJoin = strokeJoin;\n\t\t\tif (strokeCap)\n\t\t\t\tctx.lineCap = strokeCap;\n\t\t\tif (miterLimit)\n\t\t\t\tctx.miterLimit = miterLimit;\n\t\t\tif (paper.support.nativeDash) {\n\t\t\t\tvar dashArray = style.getDashArray(),\n\t\t\t\t\tdashOffset = style.getDashOffset();\n\t\t\t\tif (dashArray && dashArray.length) {\n\t\t\t\t\tif ('setLineDash' in ctx) {\n\t\t\t\t\t\tctx.setLineDash(dashArray);\n\t\t\t\t\t\tctx.lineDashOffset = dashOffset;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tctx.mozDash = dashArray;\n\t\t\t\t\t\tctx.mozDashOffset = dashOffset;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (style.hasShadow()) {\n\t\t\tvar pixelRatio = param.pixelRatio || 1,\n\t\t\t\tmx = viewMatrix._shiftless().prepend(\n\t\t\t\t\tnew Matrix().scale(pixelRatio, pixelRatio)),\n\t\t\t\tblur = mx.transform(new Point(style.getShadowBlur(), 0)),\n\t\t\t\toffset = mx.transform(this.getShadowOffset());\n\t\t\tctx.shadowColor = style.getShadowColor().toCanvasStyle(ctx);\n\t\t\tctx.shadowBlur = blur.getLength();\n\t\t\tctx.shadowOffsetX = offset.x;\n\t\t\tctx.shadowOffsetY = offset.y;\n\t\t}\n\t},\n\n\tdraw: function(ctx, param, parentStrokeMatrix) {\n\t\tvar updateVersion = this._updateVersion = this._project._updateVersion;\n\t\tif (!this._visible || this._opacity === 0)\n\t\t\treturn;\n\t\tvar matrices = param.matrices,\n\t\t\tviewMatrix = param.viewMatrix,\n\t\t\tmatrix = this._matrix,\n\t\t\tglobalMatrix = matrices[matrices.length - 1].appended(matrix);\n\t\tif (!globalMatrix.isInvertible())\n\t\t\treturn;\n\n\t\tviewMatrix = viewMatrix ? viewMatrix.appended(globalMatrix)\n\t\t\t\t: globalMatrix;\n\n\t\tmatrices.push(globalMatrix);\n\t\tif (param.updateMatrix) {\n\t\t\tthis._globalMatrix = globalMatrix;\n\t\t}\n\n\t\tvar blendMode = this._blendMode,\n\t\t\topacity = Numerical.clamp(this._opacity, 0, 1),\n\t\t\tnormalBlend = blendMode === 'normal',\n\t\t\tnativeBlend = BlendMode.nativeModes[blendMode],\n\t\t\tdirect = normalBlend && opacity === 1\n\t\t\t\t\t|| param.dontStart\n\t\t\t\t\t|| param.clip\n\t\t\t\t\t|| (nativeBlend || normalBlend && opacity < 1)\n\t\t\t\t\t\t&& this._canComposite(),\n\t\t\tpixelRatio = param.pixelRatio || 1,\n\t\t\tmainCtx, itemOffset, prevOffset;\n\t\tif (!direct) {\n\t\t\tvar bounds = this.getStrokeBounds(viewMatrix);\n\t\t\tif (!bounds.width || !bounds.height) {\n\t\t\t\tmatrices.pop();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprevOffset = param.offset;\n\t\t\titemOffset = param.offset = bounds.getTopLeft().floor();\n\t\t\tmainCtx = ctx;\n\t\t\tctx = CanvasProvider.getContext(bounds.getSize().ceil().add(1)\n\t\t\t\t\t.multiply(pixelRatio));\n\t\t\tif (pixelRatio !== 1)\n\t\t\t\tctx.scale(pixelRatio, pixelRatio);\n\t\t}\n\t\tctx.save();\n\t\tvar strokeMatrix = parentStrokeMatrix\n\t\t\t\t? parentStrokeMatrix.appended(matrix)\n\t\t\t\t: this._canScaleStroke && !this.getStrokeScaling(true)\n\t\t\t\t\t&& viewMatrix,\n\t\t\tclip = !direct && param.clipItem,\n\t\t\ttransform = !strokeMatrix || clip;\n\t\tif (direct) {\n\t\t\tctx.globalAlpha = opacity;\n\t\t\tif (nativeBlend)\n\t\t\t\tctx.globalCompositeOperation = blendMode;\n\t\t} else if (transform) {\n\t\t\tctx.translate(-itemOffset.x, -itemOffset.y);\n\t\t}\n\t\tif (transform) {\n\t\t\t(direct ? matrix : viewMatrix).applyToContext(ctx);\n\t\t}\n\t\tif (clip) {\n\t\t\tparam.clipItem.draw(ctx, param.extend({ clip: true }));\n\t\t}\n\t\tif (strokeMatrix) {\n\t\t\tctx.setTransform(pixelRatio, 0, 0, pixelRatio, 0, 0);\n\t\t\tvar offset = param.offset;\n\t\t\tif (offset)\n\t\t\t\tctx.translate(-offset.x, -offset.y);\n\t\t}\n\t\tthis._draw(ctx, param, viewMatrix, strokeMatrix);\n\t\tctx.restore();\n\t\tmatrices.pop();\n\t\tif (param.clip && !param.dontFinish) {\n\t\t\tctx.clip(this.getFillRule());\n\t\t}\n\t\tif (!direct) {\n\t\t\tBlendMode.process(blendMode, ctx, mainCtx, opacity,\n\t\t\t\t\titemOffset.subtract(prevOffset).multiply(pixelRatio));\n\t\t\tCanvasProvider.release(ctx);\n\t\t\tparam.offset = prevOffset;\n\t\t}\n\t},\n\n\t_isUpdated: function(updateVersion) {\n\t\tvar parent = this._parent;\n\t\tif (parent instanceof CompoundPath)\n\t\t\treturn parent._isUpdated(updateVersion);\n\t\tvar updated = this._updateVersion === updateVersion;\n\t\tif (!updated && parent && parent._visible\n\t\t\t\t&& parent._isUpdated(updateVersion)) {\n\t\t\tthis._updateVersion = updateVersion;\n\t\t\tupdated = true;\n\t\t}\n\t\treturn updated;\n\t},\n\n\t_drawSelection: function(ctx, matrix, size, selectionItems, updateVersion) {\n\t\tvar selection = this._selection,\n\t\t\titemSelected = selection & 1,\n\t\t\tboundsSelected = selection & 2\n\t\t\t\t\t|| itemSelected && this._selectBounds,\n\t\t\tpositionSelected = selection & 4;\n\t\tif (!this._drawSelected)\n\t\t\titemSelected = false;\n\t\tif ((itemSelected || boundsSelected || positionSelected)\n\t\t\t\t&& this._isUpdated(updateVersion)) {\n\t\t\tvar layer,\n\t\t\t\tcolor = this.getSelectedColor(true) || (layer = this.getLayer())\n\t\t\t\t\t&& layer.getSelectedColor(true),\n\t\t\t\tmx = matrix.appended(this.getGlobalMatrix(true)),\n\t\t\t\thalf = size / 2;\n\t\t\tctx.strokeStyle = ctx.fillStyle = color\n\t\t\t\t\t? color.toCanvasStyle(ctx) : '#009dec';\n\t\t\tif (itemSelected)\n\t\t\t\tthis._drawSelected(ctx, mx, selectionItems);\n\t\t\tif (positionSelected) {\n\t\t\t\tvar pos = this.getPosition(true),\n\t\t\t\t\tparent = this._parent,\n\t\t\t\t\tpoint = parent ? parent.localToGlobal(pos) : pos,\n\t\t\t\t\tx = point.x,\n\t\t\t\t\ty = point.y;\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.arc(x, y, half, 0, Math.PI * 2, true);\n\t\t\t\tctx.stroke();\n\t\t\t\tvar deltas = [[0, -1], [1, 0], [0, 1], [-1, 0]],\n\t\t\t\t\tstart = half,\n\t\t\t\t\tend = size + 1;\n\t\t\t\tfor (var i = 0; i < 4; i++) {\n\t\t\t\t\tvar delta = deltas[i],\n\t\t\t\t\t\tdx = delta[0],\n\t\t\t\t\t\tdy = delta[1];\n\t\t\t\t\tctx.moveTo(x + dx * start, y + dy * start);\n\t\t\t\t\tctx.lineTo(x + dx * end, y + dy * end);\n\t\t\t\t\tctx.stroke();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (boundsSelected) {\n\t\t\t\tvar coords = mx._transformCorners(this.getInternalBounds());\n\t\t\t\tctx.beginPath();\n\t\t\t\tfor (var i = 0; i < 8; i++) {\n\t\t\t\t\tctx[!i ? 'moveTo' : 'lineTo'](coords[i], coords[++i]);\n\t\t\t\t}\n\t\t\t\tctx.closePath();\n\t\t\t\tctx.stroke();\n\t\t\t\tfor (var i = 0; i < 8; i++) {\n\t\t\t\t\tctx.fillRect(coords[i] - half, coords[++i] - half,\n\t\t\t\t\t\t\tsize, size);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t_canComposite: function() {\n\t\treturn false;\n\t}\n}, Base.each(['down', 'drag', 'up', 'move'], function(key) {\n\tthis['removeOn' + Base.capitalize(key)] = function() {\n\t\tvar hash = {};\n\t\thash[key] = true;\n\t\treturn this.removeOn(hash);\n\t};\n}, {\n\n\tremoveOn: function(obj) {\n\t\tfor (var name in obj) {\n\t\t\tif (obj[name]) {\n\t\t\t\tvar key = 'mouse' + name,\n\t\t\t\t\tproject = this._project,\n\t\t\t\t\tsets = project._removeSets = project._removeSets || {};\n\t\t\t\tsets[key] = sets[key] || {};\n\t\t\t\tsets[key][this._id] = this;\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}\n}), {\n\ttween: function(from, to, options) {\n\t\tif (!options) {\n\t\t\toptions = to;\n\t\t\tto = from;\n\t\t\tfrom = null;\n\t\t\tif (!options) {\n\t\t\t\toptions = to;\n\t\t\t\tto = null;\n\t\t\t}\n\t\t}\n\t\tvar easing = options && options.easing,\n\t\t\tstart = options && options.start,\n\t\t\tduration = options != null && (\n\t\t\t\ttypeof options === 'number' ? options : options.duration\n\t\t\t),\n\t\t\ttween = new Tween(this, from, to, duration, easing, start);\n\t\tfunction onFrame(event) {\n\t\t\ttween._handleFrame(event.time * 1000);\n\t\t\tif (!tween.running) {\n\t\t\t\tthis.off('frame', onFrame);\n\t\t\t}\n\t\t}\n\t\tif (duration) {\n\t\t\tthis.on('frame', onFrame);\n\t\t}\n\t\treturn tween;\n\t},\n\n\ttweenTo: function(to, options) {\n\t\treturn this.tween(null, to, options);\n\t},\n\n\ttweenFrom: function(from, options) {\n\t\treturn this.tween(from, null, options);\n\t}\n});\n\nvar Group = Item.extend({\n\t_class: 'Group',\n\t_selectBounds: false,\n\t_selectChildren: true,\n\t_serializeFields: {\n\t\tchildren: []\n\t},\n\n\tinitialize: function Group(arg) {\n\t\tthis._children = [];\n\t\tthis._namedChildren = {};\n\t\tif (!this._initialize(arg))\n\t\t\tthis.addChildren(Array.isArray(arg) ? arg : arguments);\n\t},\n\n\t_changed: function _changed(flags) {\n\t\t_changed.base.call(this, flags);\n\t\tif (flags & 2050) {\n\t\t\tthis._clipItem = undefined;\n\t\t}\n\t},\n\n\t_getClipItem: function() {\n\t\tvar clipItem = this._clipItem;\n\t\tif (clipItem === undefined) {\n\t\t\tclipItem = null;\n\t\t\tvar children = this._children;\n\t\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\t\tif (children[i]._clipMask) {\n\t\t\t\t\tclipItem = children[i];\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis._clipItem = clipItem;\n\t\t}\n\t\treturn clipItem;\n\t},\n\n\tisClipped: function() {\n\t\treturn !!this._getClipItem();\n\t},\n\n\tsetClipped: function(clipped) {\n\t\tvar child = this.getFirstChild();\n\t\tif (child)\n\t\t\tchild.setClipMask(clipped);\n\t},\n\n\t_getBounds: function _getBounds(matrix, options) {\n\t\tvar clipItem = this._getClipItem();\n\t\treturn clipItem\n\t\t\t? clipItem._getCachedBounds(clipItem._matrix.prepended(matrix),\n\t\t\t\tBase.set({}, options, { stroke: false }))\n\t\t\t: _getBounds.base.call(this, matrix, options);\n\t},\n\n\t_hitTestChildren: function _hitTestChildren(point, options, viewMatrix) {\n\t\tvar clipItem = this._getClipItem();\n\t\treturn (!clipItem || clipItem.contains(point))\n\t\t\t\t&& _hitTestChildren.base.call(this, point, options, viewMatrix,\n\t\t\t\t\tclipItem);\n\t},\n\n\t_draw: function(ctx, param) {\n\t\tvar clip = param.clip,\n\t\t\tclipItem = !clip && this._getClipItem();\n\t\tparam = param.extend({ clipItem: clipItem, clip: false });\n\t\tif (clip) {\n\t\t\tctx.beginPath();\n\t\t\tparam.dontStart = param.dontFinish = true;\n\t\t} else if (clipItem) {\n\t\t\tclipItem.draw(ctx, param.extend({ clip: true }));\n\t\t}\n\t\tvar children = this._children;\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tvar item = children[i];\n\t\t\tif (item !== clipItem)\n\t\t\t\titem.draw(ctx, param);\n\t\t}\n\t}\n});\n\nvar Layer = Group.extend({\n\t_class: 'Layer',\n\n\tinitialize: function Layer() {\n\t\tGroup.apply(this, arguments);\n\t},\n\n\t_getOwner: function() {\n\t\treturn this._parent || this._index != null && this._project;\n\t},\n\n\tisInserted: function isInserted() {\n\t\treturn this._parent ? isInserted.base.call(this) : this._index != null;\n\t},\n\n\tactivate: function() {\n\t\tthis._project._activeLayer = this;\n\t},\n\n\t_hitTestSelf: function() {\n\t}\n});\n\nvar Shape = Item.extend({\n\t_class: 'Shape',\n\t_applyMatrix: false,\n\t_canApplyMatrix: false,\n\t_canScaleStroke: true,\n\t_serializeFields: {\n\t\ttype: null,\n\t\tsize: null,\n\t\tradius: null\n\t},\n\n\tinitialize: function Shape(props, point) {\n\t\tthis._initialize(props, point);\n\t},\n\n\t_equals: function(item) {\n\t\treturn this._type === item._type\n\t\t\t&& this._size.equals(item._size)\n\t\t\t&& Base.equals(this._radius, item._radius);\n\t},\n\n\tcopyContent: function(source) {\n\t\tthis.setType(source._type);\n\t\tthis.setSize(source._size);\n\t\tthis.setRadius(source._radius);\n\t},\n\n\tgetType: function() {\n\t\treturn this._type;\n\t},\n\n\tsetType: function(type) {\n\t\tthis._type = type;\n\t},\n\n\tgetShape: '#getType',\n\tsetShape: '#setType',\n\n\tgetSize: function() {\n\t\tvar size = this._size;\n\t\treturn new LinkedSize(size.width, size.height, this, 'setSize');\n\t},\n\n\tsetSize: function() {\n\t\tvar size = Size.read(arguments);\n\t\tif (!this._size) {\n\t\t\tthis._size = size.clone();\n\t\t} else if (!this._size.equals(size)) {\n\t\t\tvar type = this._type,\n\t\t\t\twidth = size.width,\n\t\t\t\theight = size.height;\n\t\t\tif (type === 'rectangle') {\n\t\t\t\tthis._radius.set(Size.min(this._radius, size.divide(2).abs()));\n\t\t\t} else if (type === 'circle') {\n\t\t\t\twidth = height = (width + height) / 2;\n\t\t\t\tthis._radius = width / 2;\n\t\t\t} else if (type === 'ellipse') {\n\t\t\t\tthis._radius._set(width / 2, height / 2);\n\t\t\t}\n\t\t\tthis._size._set(width, height);\n\t\t\tthis._changed(9);\n\t\t}\n\t},\n\n\tgetRadius: function() {\n\t\tvar rad = this._radius;\n\t\treturn this._type === 'circle'\n\t\t\t\t? rad\n\t\t\t\t: new LinkedSize(rad.width, rad.height, this, 'setRadius');\n\t},\n\n\tsetRadius: function(radius) {\n\t\tvar type = this._type;\n\t\tif (type === 'circle') {\n\t\t\tif (radius === this._radius)\n\t\t\t\treturn;\n\t\t\tvar size = radius * 2;\n\t\t\tthis._radius = radius;\n\t\t\tthis._size._set(size, size);\n\t\t} else {\n\t\t\tradius = Size.read(arguments);\n\t\t\tif (!this._radius) {\n\t\t\t\tthis._radius = radius.clone();\n\t\t\t} else {\n\t\t\t\tif (this._radius.equals(radius))\n\t\t\t\t\treturn;\n\t\t\t\tthis._radius.set(radius);\n\t\t\t\tif (type === 'rectangle') {\n\t\t\t\t\tvar size = Size.max(this._size, radius.multiply(2));\n\t\t\t\t\tthis._size.set(size);\n\t\t\t\t} else if (type === 'ellipse') {\n\t\t\t\t\tthis._size._set(radius.width * 2, radius.height * 2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis._changed(9);\n\t},\n\n\tisEmpty: function() {\n\t\treturn false;\n\t},\n\n\ttoPath: function(insert) {\n\t\tvar path = new Path[Base.capitalize(this._type)]({\n\t\t\tcenter: new Point(),\n\t\t\tsize: this._size,\n\t\t\tradius: this._radius,\n\t\t\tinsert: false\n\t\t});\n\t\tpath.copyAttributes(this);\n\t\tif (paper.settings.applyMatrix)\n\t\t\tpath.setApplyMatrix(true);\n\t\tif (insert === undefined || insert)\n\t\t\tpath.insertAbove(this);\n\t\treturn path;\n\t},\n\n\ttoShape: '#clone',\n\n\t_asPathItem: function() {\n\t\treturn this.toPath(false);\n\t},\n\n\t_draw: function(ctx, param, viewMatrix, strokeMatrix) {\n\t\tvar style = this._style,\n\t\t\thasFill = style.hasFill(),\n\t\t\thasStroke = style.hasStroke(),\n\t\t\tdontPaint = param.dontFinish || param.clip,\n\t\t\tuntransformed = !strokeMatrix;\n\t\tif (hasFill || hasStroke || dontPaint) {\n\t\t\tvar type = this._type,\n\t\t\t\tradius = this._radius,\n\t\t\t\tisCircle = type === 'circle';\n\t\t\tif (!param.dontStart)\n\t\t\t\tctx.beginPath();\n\t\t\tif (untransformed && isCircle) {\n\t\t\t\tctx.arc(0, 0, radius, 0, Math.PI * 2, true);\n\t\t\t} else {\n\t\t\t\tvar rx = isCircle ? radius : radius.width,\n\t\t\t\t\try = isCircle ? radius : radius.height,\n\t\t\t\t\tsize = this._size,\n\t\t\t\t\twidth = size.width,\n\t\t\t\t\theight = size.height;\n\t\t\t\tif (untransformed && type === 'rectangle' && rx === 0 && ry === 0) {\n\t\t\t\t\tctx.rect(-width / 2, -height / 2, width, height);\n\t\t\t\t} else {\n\t\t\t\t\tvar x = width / 2,\n\t\t\t\t\t\ty = height / 2,\n\t\t\t\t\t\tkappa = 1 - 0.5522847498307936,\n\t\t\t\t\t\tcx = rx * kappa,\n\t\t\t\t\t\tcy = ry * kappa,\n\t\t\t\t\t\tc = [\n\t\t\t\t\t\t\t-x, -y + ry,\n\t\t\t\t\t\t\t-x, -y + cy,\n\t\t\t\t\t\t\t-x + cx, -y,\n\t\t\t\t\t\t\t-x + rx, -y,\n\t\t\t\t\t\t\tx - rx, -y,\n\t\t\t\t\t\t\tx - cx, -y,\n\t\t\t\t\t\t\tx, -y + cy,\n\t\t\t\t\t\t\tx, -y + ry,\n\t\t\t\t\t\t\tx, y - ry,\n\t\t\t\t\t\t\tx, y - cy,\n\t\t\t\t\t\t\tx - cx, y,\n\t\t\t\t\t\t\tx - rx, y,\n\t\t\t\t\t\t\t-x + rx, y,\n\t\t\t\t\t\t\t-x + cx, y,\n\t\t\t\t\t\t\t-x, y - cy,\n\t\t\t\t\t\t\t-x, y - ry\n\t\t\t\t\t\t];\n\t\t\t\t\tif (strokeMatrix)\n\t\t\t\t\t\tstrokeMatrix.transform(c, c, 32);\n\t\t\t\t\tctx.moveTo(c[0], c[1]);\n\t\t\t\t\tctx.bezierCurveTo(c[2], c[3], c[4], c[5], c[6], c[7]);\n\t\t\t\t\tif (x !== rx)\n\t\t\t\t\t\tctx.lineTo(c[8], c[9]);\n\t\t\t\t\tctx.bezierCurveTo(c[10], c[11], c[12], c[13], c[14], c[15]);\n\t\t\t\t\tif (y !== ry)\n\t\t\t\t\t\tctx.lineTo(c[16], c[17]);\n\t\t\t\t\tctx.bezierCurveTo(c[18], c[19], c[20], c[21], c[22], c[23]);\n\t\t\t\t\tif (x !== rx)\n\t\t\t\t\t\tctx.lineTo(c[24], c[25]);\n\t\t\t\t\tctx.bezierCurveTo(c[26], c[27], c[28], c[29], c[30], c[31]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tctx.closePath();\n\t\t}\n\t\tif (!dontPaint && (hasFill || hasStroke)) {\n\t\t\tthis._setStyles(ctx, param, viewMatrix);\n\t\t\tif (hasFill) {\n\t\t\t\tctx.fill(style.getFillRule());\n\t\t\t\tctx.shadowColor = 'rgba(0,0,0,0)';\n\t\t\t}\n\t\t\tif (hasStroke)\n\t\t\t\tctx.stroke();\n\t\t}\n\t},\n\n\t_canComposite: function() {\n\t\treturn !(this.hasFill() && this.hasStroke());\n\t},\n\n\t_getBounds: function(matrix, options) {\n\t\tvar rect = new Rectangle(this._size).setCenter(0, 0),\n\t\t\tstyle = this._style,\n\t\t\tstrokeWidth = options.stroke && style.hasStroke()\n\t\t\t\t\t&& style.getStrokeWidth();\n\t\tif (matrix)\n\t\t\trect = matrix._transformBounds(rect);\n\t\treturn strokeWidth\n\t\t\t\t? rect.expand(Path._getStrokePadding(strokeWidth,\n\t\t\t\t\tthis._getStrokeMatrix(matrix, options)))\n\t\t\t\t: rect;\n\t}\n},\nnew function() {\n\tfunction getCornerCenter(that, point, expand) {\n\t\tvar radius = that._radius;\n\t\tif (!radius.isZero()) {\n\t\t\tvar halfSize = that._size.divide(2);\n\t\t\tfor (var q = 1; q <= 4; q++) {\n\t\t\t\tvar dir = new Point(q > 1 && q < 4 ? -1 : 1, q > 2 ? -1 : 1),\n\t\t\t\t\tcorner = dir.multiply(halfSize),\n\t\t\t\t\tcenter = corner.subtract(dir.multiply(radius)),\n\t\t\t\t\trect = new Rectangle(\n\t\t\t\t\t\t\texpand ? corner.add(dir.multiply(expand)) : corner,\n\t\t\t\t\t\t\tcenter);\n\t\t\t\tif (rect.contains(point))\n\t\t\t\t\treturn { point: center, quadrant: q };\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction isOnEllipseStroke(point, radius, padding, quadrant) {\n\t\tvar vector = point.divide(radius);\n\t\treturn (!quadrant || vector.isInQuadrant(quadrant)) &&\n\t\t\t\tvector.subtract(vector.normalize()).multiply(radius)\n\t\t\t\t\t.divide(padding).length <= 1;\n\t}\n\n\treturn {\n\t\t_contains: function _contains(point) {\n\t\t\tif (this._type === 'rectangle') {\n\t\t\t\tvar center = getCornerCenter(this, point);\n\t\t\t\treturn center\n\t\t\t\t\t\t? point.subtract(center.point).divide(this._radius)\n\t\t\t\t\t\t\t.getLength() <= 1\n\t\t\t\t\t\t: _contains.base.call(this, point);\n\t\t\t} else {\n\t\t\t\treturn point.divide(this.size).getLength() <= 0.5;\n\t\t\t}\n\t\t},\n\n\t\t_hitTestSelf: function _hitTestSelf(point, options, viewMatrix,\n\t\t\t\tstrokeMatrix) {\n\t\t\tvar hit = false,\n\t\t\t\tstyle = this._style,\n\t\t\t\thitStroke = options.stroke && style.hasStroke(),\n\t\t\t\thitFill = options.fill && style.hasFill();\n\t\t\tif (hitStroke || hitFill) {\n\t\t\t\tvar type = this._type,\n\t\t\t\t\tradius = this._radius,\n\t\t\t\t\tstrokeRadius = hitStroke ? style.getStrokeWidth() / 2 : 0,\n\t\t\t\t\tstrokePadding = options._tolerancePadding.add(\n\t\t\t\t\t\tPath._getStrokePadding(strokeRadius,\n\t\t\t\t\t\t\t!style.getStrokeScaling() && strokeMatrix));\n\t\t\t\tif (type === 'rectangle') {\n\t\t\t\t\tvar padding = strokePadding.multiply(2),\n\t\t\t\t\t\tcenter = getCornerCenter(this, point, padding);\n\t\t\t\t\tif (center) {\n\t\t\t\t\t\thit = isOnEllipseStroke(point.subtract(center.point),\n\t\t\t\t\t\t\t\tradius, strokePadding, center.quadrant);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar rect = new Rectangle(this._size).setCenter(0, 0),\n\t\t\t\t\t\t\touter = rect.expand(padding),\n\t\t\t\t\t\t\tinner = rect.expand(padding.negate());\n\t\t\t\t\t\thit = outer._containsPoint(point)\n\t\t\t\t\t\t\t\t&& !inner._containsPoint(point);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\thit = isOnEllipseStroke(point, radius, strokePadding);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn hit ? new HitResult(hitStroke ? 'stroke' : 'fill', this)\n\t\t\t\t\t: _hitTestSelf.base.apply(this, arguments);\n\t\t}\n\t};\n}, {\n\nstatics: new function() {\n\tfunction createShape(type, point, size, radius, args) {\n\t\tvar item = Base.create(Shape.prototype);\n\t\titem._type = type;\n\t\titem._size = size;\n\t\titem._radius = radius;\n\t\titem._initialize(Base.getNamed(args), point);\n\t\treturn item;\n\t}\n\n\treturn {\n\t\tCircle: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tcenter = Point.readNamed(args, 'center'),\n\t\t\t\tradius = Base.readNamed(args, 'radius');\n\t\t\treturn createShape('circle', center, new Size(radius * 2), radius,\n\t\t\t\t\targs);\n\t\t},\n\n\t\tRectangle: function() {\n\t\t\tvar args = arguments,\n\t\t\t\trect = Rectangle.readNamed(args, 'rectangle'),\n\t\t\t\tradius = Size.min(Size.readNamed(args, 'radius'),\n\t\t\t\t\t\trect.getSize(true).divide(2));\n\t\t\treturn createShape('rectangle', rect.getCenter(true),\n\t\t\t\t\trect.getSize(true), radius, args);\n\t\t},\n\n\t\tEllipse: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tellipse = Shape._readEllipse(args),\n\t\t\t\tradius = ellipse.radius;\n\t\t\treturn createShape('ellipse', ellipse.center, radius.multiply(2),\n\t\t\t\t\tradius, args);\n\t\t},\n\n\t\t_readEllipse: function(args) {\n\t\t\tvar center,\n\t\t\t\tradius;\n\t\t\tif (Base.hasNamed(args, 'radius')) {\n\t\t\t\tcenter = Point.readNamed(args, 'center');\n\t\t\t\tradius = Size.readNamed(args, 'radius');\n\t\t\t} else {\n\t\t\t\tvar rect = Rectangle.readNamed(args, 'rectangle');\n\t\t\t\tcenter = rect.getCenter(true);\n\t\t\t\tradius = rect.getSize(true).divide(2);\n\t\t\t}\n\t\t\treturn { center: center, radius: radius };\n\t\t}\n\t};\n}});\n\nvar Raster = Item.extend({\n\t_class: 'Raster',\n\t_applyMatrix: false,\n\t_canApplyMatrix: false,\n\t_boundsOptions: { stroke: false, handle: false },\n\t_serializeFields: {\n\t\tcrossOrigin: null,\n\t\tsource: null\n\t},\n\t_prioritize: ['crossOrigin'],\n\t_smoothing: 'low',\n\tbeans: true,\n\n\tinitialize: function Raster(source, position) {\n\t\tif (!this._initialize(source,\n\t\t\t\tposition !== undefined && Point.read(arguments))) {\n\t\t\tvar image,\n\t\t\t\ttype = typeof source,\n\t\t\t\tobject = type === 'string'\n\t\t\t\t\t? document.getElementById(source)\n\t\t\t\t\t: type === 'object'\n\t\t\t\t\t\t? source\n\t\t\t\t\t\t: null;\n\t\t\tif (object && object !== Item.NO_INSERT) {\n\t\t\t\tif (object.getContext || object.naturalHeight != null) {\n\t\t\t\t\timage = object;\n\t\t\t\t} else if (object) {\n\t\t\t\t\tvar size = Size.read(arguments);\n\t\t\t\t\tif (!size.isZero()) {\n\t\t\t\t\t\timage = CanvasProvider.getCanvas(size);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (image) {\n\t\t\t\tthis.setImage(image);\n\t\t\t} else {\n\t\t\t\tthis.setSource(source);\n\t\t\t}\n\t\t}\n\t\tif (!this._size) {\n\t\t\tthis._size = new Size();\n\t\t\tthis._loaded = false;\n\t\t}\n\t},\n\n\t_equals: function(item) {\n\t\treturn this.getSource() === item.getSource();\n\t},\n\n\tcopyContent: function(source) {\n\t\tvar image = source._image,\n\t\t\tcanvas = source._canvas;\n\t\tif (image) {\n\t\t\tthis._setImage(image);\n\t\t} else if (canvas) {\n\t\t\tvar copyCanvas = CanvasProvider.getCanvas(source._size);\n\t\t\tcopyCanvas.getContext('2d').drawImage(canvas, 0, 0);\n\t\t\tthis._setImage(copyCanvas);\n\t\t}\n\t\tthis._crossOrigin = source._crossOrigin;\n\t},\n\n\tgetSize: function() {\n\t\tvar size = this._size;\n\t\treturn new LinkedSize(size ? size.width : 0, size ? size.height : 0,\n\t\t\t\tthis, 'setSize');\n\t},\n\n\tsetSize: function(_size, _clear) {\n\t\tvar size = Size.read(arguments);\n\t\tif (!size.equals(this._size)) {\n\t\t\tif (size.width > 0 && size.height > 0) {\n\t\t\t\tvar element = !_clear && this.getElement();\n\t\t\t\tthis._setImage(CanvasProvider.getCanvas(size));\n\t\t\t\tif (element) {\n\t\t\t\t\tthis.getContext(true).drawImage(element, 0, 0,\n\t\t\t\t\t\t\tsize.width, size.height);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (this._canvas)\n\t\t\t\t\tCanvasProvider.release(this._canvas);\n\t\t\t\tthis._size = size.clone();\n\t\t\t}\n\t\t} else if (_clear) {\n\t\t\tthis.clear();\n\t\t}\n\t},\n\n\tgetWidth: function() {\n\t\treturn this._size ? this._size.width : 0;\n\t},\n\n\tsetWidth: function(width) {\n\t\tthis.setSize(width, this.getHeight());\n\t},\n\n\tgetHeight: function() {\n\t\treturn this._size ? this._size.height : 0;\n\t},\n\n\tsetHeight: function(height) {\n\t\tthis.setSize(this.getWidth(), height);\n\t},\n\n\tgetLoaded: function() {\n\t\treturn this._loaded;\n\t},\n\n\tisEmpty: function() {\n\t\tvar size = this._size;\n\t\treturn !size || size.width === 0 && size.height === 0;\n\t},\n\n\tgetResolution: function() {\n\t\tvar matrix = this._matrix,\n\t\t\torig = new Point(0, 0).transform(matrix),\n\t\t\tu = new Point(1, 0).transform(matrix).subtract(orig),\n\t\t\tv = new Point(0, 1).transform(matrix).subtract(orig);\n\t\treturn new Size(\n\t\t\t72 / u.getLength(),\n\t\t\t72 / v.getLength()\n\t\t);\n\t},\n\n\tgetPpi: '#getResolution',\n\n\tgetImage: function() {\n\t\treturn this._image;\n\t},\n\n\tsetImage: function(image) {\n\t\tvar that = this;\n\n\t\tfunction emit(event) {\n\t\t\tvar view = that.getView(),\n\t\t\t\ttype = event && event.type || 'load';\n\t\t\tif (view && that.responds(type)) {\n\t\t\t\tpaper = view._scope;\n\t\t\t\tthat.emit(type, new Event(event));\n\t\t\t}\n\t\t}\n\n\t\tthis._setImage(image);\n\t\tif (this._loaded) {\n\t\t\tsetTimeout(emit, 0);\n\t\t} else if (image) {\n\t\t\tDomEvent.add(image, {\n\t\t\t\tload: function(event) {\n\t\t\t\t\tthat._setImage(image);\n\t\t\t\t\temit(event);\n\t\t\t\t},\n\t\t\t\terror: emit\n\t\t\t});\n\t\t}\n\t},\n\n\t_setImage: function(image) {\n\t\tif (this._canvas)\n\t\t\tCanvasProvider.release(this._canvas);\n\t\tif (image && image.getContext) {\n\t\t\tthis._image = null;\n\t\t\tthis._canvas = image;\n\t\t\tthis._loaded = true;\n\t\t} else {\n\t\t\tthis._image = image;\n\t\t\tthis._canvas = null;\n\t\t\tthis._loaded = !!(image && image.src && image.complete);\n\t\t}\n\t\tthis._size = new Size(\n\t\t\t\timage ? image.naturalWidth || image.width : 0,\n\t\t\t\timage ? image.naturalHeight || image.height : 0);\n\t\tthis._context = null;\n\t\tthis._changed(1033);\n\t},\n\n\tgetCanvas: function() {\n\t\tif (!this._canvas) {\n\t\t\tvar ctx = CanvasProvider.getContext(this._size);\n\t\t\ttry {\n\t\t\t\tif (this._image)\n\t\t\t\t\tctx.drawImage(this._image, 0, 0);\n\t\t\t\tthis._canvas = ctx.canvas;\n\t\t\t} catch (e) {\n\t\t\t\tCanvasProvider.release(ctx);\n\t\t\t}\n\t\t}\n\t\treturn this._canvas;\n\t},\n\n\tsetCanvas: '#setImage',\n\n\tgetContext: function(_change) {\n\t\tif (!this._context)\n\t\t\tthis._context = this.getCanvas().getContext('2d');\n\t\tif (_change) {\n\t\t\tthis._image = null;\n\t\t\tthis._changed(1025);\n\t\t}\n\t\treturn this._context;\n\t},\n\n\tsetContext: function(context) {\n\t\tthis._context = context;\n\t},\n\n\tgetSource: function() {\n\t\tvar image = this._image;\n\t\treturn image && image.src || this.toDataURL();\n\t},\n\n\tsetSource: function(src) {\n\t\tvar image = new self.Image(),\n\t\t\tcrossOrigin = this._crossOrigin;\n\t\tif (crossOrigin)\n\t\t\timage.crossOrigin = crossOrigin;\n\t\tif (src)\n\t\t\timage.src = src;\n\t\tthis.setImage(image);\n\t},\n\n\tgetCrossOrigin: function() {\n\t\tvar image = this._image;\n\t\treturn image && image.crossOrigin || this._crossOrigin || '';\n\t},\n\n\tsetCrossOrigin: function(crossOrigin) {\n\t\tthis._crossOrigin = crossOrigin;\n\t\tvar image = this._image;\n\t\tif (image)\n\t\t\timage.crossOrigin = crossOrigin;\n\t},\n\n\tgetSmoothing: function() {\n\t\treturn this._smoothing;\n\t},\n\n\tsetSmoothing: function(smoothing) {\n\t\tthis._smoothing = typeof smoothing === 'string'\n\t\t\t? smoothing\n\t\t\t: smoothing ? 'low' : 'off';\n\t\tthis._changed(257);\n\t},\n\n\tgetElement: function() {\n\t\treturn this._canvas || this._loaded && this._image;\n\t}\n}, {\n\tbeans: false,\n\n\tgetSubCanvas: function() {\n\t\tvar rect = Rectangle.read(arguments),\n\t\t\tctx = CanvasProvider.getContext(rect.getSize());\n\t\tctx.drawImage(this.getCanvas(), rect.x, rect.y,\n\t\t\t\trect.width, rect.height, 0, 0, rect.width, rect.height);\n\t\treturn ctx.canvas;\n\t},\n\n\tgetSubRaster: function() {\n\t\tvar rect = Rectangle.read(arguments),\n\t\t\traster = new Raster(Item.NO_INSERT);\n\t\traster._setImage(this.getSubCanvas(rect));\n\t\traster.translate(rect.getCenter().subtract(this.getSize().divide(2)));\n\t\traster._matrix.prepend(this._matrix);\n\t\traster.insertAbove(this);\n\t\treturn raster;\n\t},\n\n\ttoDataURL: function() {\n\t\tvar image = this._image,\n\t\t\tsrc = image && image.src;\n\t\tif (/^data:/.test(src))\n\t\t\treturn src;\n\t\tvar canvas = this.getCanvas();\n\t\treturn canvas ? canvas.toDataURL.apply(canvas, arguments) : null;\n\t},\n\n\tdrawImage: function(image ) {\n\t\tvar point = Point.read(arguments, 1);\n\t\tthis.getContext(true).drawImage(image, point.x, point.y);\n\t},\n\n\tgetAverageColor: function(object) {\n\t\tvar bounds, path;\n\t\tif (!object) {\n\t\t\tbounds = this.getBounds();\n\t\t} else if (object instanceof PathItem) {\n\t\t\tpath = object;\n\t\t\tbounds = object.getBounds();\n\t\t} else if (typeof object === 'object') {\n\t\t\tif ('width' in object) {\n\t\t\t\tbounds = new Rectangle(object);\n\t\t\t} else if ('x' in object) {\n\t\t\t\tbounds = new Rectangle(object.x - 0.5, object.y - 0.5, 1, 1);\n\t\t\t}\n\t\t}\n\t\tif (!bounds)\n\t\t\treturn null;\n\t\tvar sampleSize = 32,\n\t\t\twidth = Math.min(bounds.width, sampleSize),\n\t\t\theight = Math.min(bounds.height, sampleSize);\n\t\tvar ctx = Raster._sampleContext;\n\t\tif (!ctx) {\n\t\t\tctx = Raster._sampleContext = CanvasProvider.getContext(\n\t\t\t\t\tnew Size(sampleSize));\n\t\t} else {\n\t\t\tctx.clearRect(0, 0, sampleSize + 1, sampleSize + 1);\n\t\t}\n\t\tctx.save();\n\t\tvar matrix = new Matrix()\n\t\t\t\t.scale(width / bounds.width, height / bounds.height)\n\t\t\t\t.translate(-bounds.x, -bounds.y);\n\t\tmatrix.applyToContext(ctx);\n\t\tif (path)\n\t\t\tpath.draw(ctx, new Base({ clip: true, matrices: [matrix] }));\n\t\tthis._matrix.applyToContext(ctx);\n\t\tvar element = this.getElement(),\n\t\t\tsize = this._size;\n\t\tif (element)\n\t\t\tctx.drawImage(element, -size.width / 2, -size.height / 2);\n\t\tctx.restore();\n\t\tvar pixels = ctx.getImageData(0.5, 0.5, Math.ceil(width),\n\t\t\t\tMath.ceil(height)).data,\n\t\t\tchannels = [0, 0, 0],\n\t\t\ttotal = 0;\n\t\tfor (var i = 0, l = pixels.length; i < l; i += 4) {\n\t\t\tvar alpha = pixels[i + 3];\n\t\t\ttotal += alpha;\n\t\t\talpha /= 255;\n\t\t\tchannels[0] += pixels[i] * alpha;\n\t\t\tchannels[1] += pixels[i + 1] * alpha;\n\t\t\tchannels[2] += pixels[i + 2] * alpha;\n\t\t}\n\t\tfor (var i = 0; i < 3; i++)\n\t\t\tchannels[i] /= total;\n\t\treturn total ? Color.read(channels) : null;\n\t},\n\n\tgetPixel: function() {\n\t\tvar point = Point.read(arguments);\n\t\tvar data = this.getContext().getImageData(point.x, point.y, 1, 1).data;\n\t\treturn new Color('rgb', [data[0] / 255, data[1] / 255, data[2] / 255],\n\t\t\t\tdata[3] / 255);\n\t},\n\n\tsetPixel: function() {\n\t\tvar args = arguments,\n\t\t\tpoint = Point.read(args),\n\t\t\tcolor = Color.read(args),\n\t\t\tcomponents = color._convert('rgb'),\n\t\t\talpha = color._alpha,\n\t\t\tctx = this.getContext(true),\n\t\t\timageData = ctx.createImageData(1, 1),\n\t\t\tdata = imageData.data;\n\t\tdata[0] = components[0] * 255;\n\t\tdata[1] = components[1] * 255;\n\t\tdata[2] = components[2] * 255;\n\t\tdata[3] = alpha != null ? alpha * 255 : 255;\n\t\tctx.putImageData(imageData, point.x, point.y);\n\t},\n\n\tclear: function() {\n\t\tvar size = this._size;\n\t\tthis.getContext(true).clearRect(0, 0, size.width + 1, size.height + 1);\n\t},\n\n\tcreateImageData: function() {\n\t\tvar size = Size.read(arguments);\n\t\treturn this.getContext().createImageData(size.width, size.height);\n\t},\n\n\tgetImageData: function() {\n\t\tvar rect = Rectangle.read(arguments);\n\t\tif (rect.isEmpty())\n\t\t\trect = new Rectangle(this._size);\n\t\treturn this.getContext().getImageData(rect.x, rect.y,\n\t\t\t\trect.width, rect.height);\n\t},\n\n\tputImageData: function(data ) {\n\t\tvar point = Point.read(arguments, 1);\n\t\tthis.getContext(true).putImageData(data, point.x, point.y);\n\t},\n\n\tsetImageData: function(data) {\n\t\tthis.setSize(data);\n\t\tthis.getContext(true).putImageData(data, 0, 0);\n\t},\n\n\t_getBounds: function(matrix, options) {\n\t\tvar rect = new Rectangle(this._size).setCenter(0, 0);\n\t\treturn matrix ? matrix._transformBounds(rect) : rect;\n\t},\n\n\t_hitTestSelf: function(point) {\n\t\tif (this._contains(point)) {\n\t\t\tvar that = this;\n\t\t\treturn new HitResult('pixel', that, {\n\t\t\t\toffset: point.add(that._size.divide(2)).round(),\n\t\t\t\tcolor: {\n\t\t\t\t\tget: function() {\n\t\t\t\t\t\treturn that.getPixel(this.offset);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t},\n\n\t_draw: function(ctx, param, viewMatrix) {\n\t\tvar element = this.getElement();\n\t\tif (element && element.width > 0 && element.height > 0) {\n\t\t\tctx.globalAlpha = Numerical.clamp(this._opacity, 0, 1);\n\n\t\t\tthis._setStyles(ctx, param, viewMatrix);\n\n\t\t\tvar smoothing = this._smoothing,\n\t\t\t\tdisabled = smoothing === 'off';\n\t\t\tDomElement.setPrefixed(\n\t\t\t\tctx,\n\t\t\t\tdisabled ? 'imageSmoothingEnabled' : 'imageSmoothingQuality',\n\t\t\t\tdisabled ? false : smoothing\n\t\t\t);\n\n\t\t\tctx.drawImage(element,\n\t\t\t\t\t-this._size.width / 2, -this._size.height / 2);\n\t\t}\n\t},\n\n\t_canComposite: function() {\n\t\treturn true;\n\t}\n});\n\nvar SymbolItem = Item.extend({\n\t_class: 'SymbolItem',\n\t_applyMatrix: false,\n\t_canApplyMatrix: false,\n\t_boundsOptions: { stroke: true },\n\t_serializeFields: {\n\t\tsymbol: null\n\t},\n\n\tinitialize: function SymbolItem(arg0, arg1) {\n\t\tif (!this._initialize(arg0,\n\t\t\t\targ1 !== undefined && Point.read(arguments, 1)))\n\t\t\tthis.setDefinition(arg0 instanceof SymbolDefinition ?\n\t\t\t\t\targ0 : new SymbolDefinition(arg0));\n\t},\n\n\t_equals: function(item) {\n\t\treturn this._definition === item._definition;\n\t},\n\n\tcopyContent: function(source) {\n\t\tthis.setDefinition(source._definition);\n\t},\n\n\tgetDefinition: function() {\n\t\treturn this._definition;\n\t},\n\n\tsetDefinition: function(definition) {\n\t\tthis._definition = definition;\n\t\tthis._changed(9);\n\t},\n\n\tgetSymbol: '#getDefinition',\n\tsetSymbol: '#setDefinition',\n\n\tisEmpty: function() {\n\t\treturn this._definition._item.isEmpty();\n\t},\n\n\t_getBounds: function(matrix, options) {\n\t\tvar item = this._definition._item;\n\t\treturn item._getCachedBounds(item._matrix.prepended(matrix), options);\n\t},\n\n\t_hitTestSelf: function(point, options, viewMatrix) {\n\t\tvar opts = options.extend({ all: false });\n\t\tvar res = this._definition._item._hitTest(point, opts, viewMatrix);\n\t\tif (res)\n\t\t\tres.item = this;\n\t\treturn res;\n\t},\n\n\t_draw: function(ctx, param) {\n\t\tthis._definition._item.draw(ctx, param);\n\t}\n\n});\n\nvar SymbolDefinition = Base.extend({\n\t_class: 'SymbolDefinition',\n\n\tinitialize: function SymbolDefinition(item, dontCenter) {\n\t\tthis._id = UID.get();\n\t\tthis.project = paper.project;\n\t\tif (item)\n\t\t\tthis.setItem(item, dontCenter);\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\treturn dictionary.add(this, function() {\n\t\t\treturn Base.serialize([this._class, this._item],\n\t\t\t\t\toptions, false, dictionary);\n\t\t});\n\t},\n\n\t_changed: function(flags) {\n\t\tif (flags & 8)\n\t\t\tItem._clearBoundsCache(this);\n\t\tif (flags & 1)\n\t\t\tthis.project._changed(flags);\n\t},\n\n\tgetItem: function() {\n\t\treturn this._item;\n\t},\n\n\tsetItem: function(item, _dontCenter) {\n\t\tif (item._symbol)\n\t\t\titem = item.clone();\n\t\tif (this._item)\n\t\t\tthis._item._symbol = null;\n\t\tthis._item = item;\n\t\titem.remove();\n\t\titem.setSelected(false);\n\t\tif (!_dontCenter)\n\t\t\titem.setPosition(new Point());\n\t\titem._symbol = this;\n\t\tthis._changed(9);\n\t},\n\n\tgetDefinition: '#getItem',\n\tsetDefinition: '#setItem',\n\n\tplace: function(position) {\n\t\treturn new SymbolItem(this, position);\n\t},\n\n\tclone: function() {\n\t\treturn new SymbolDefinition(this._item.clone(false));\n\t},\n\n\tequals: function(symbol) {\n\t\treturn symbol === this\n\t\t\t\t|| symbol && this._item.equals(symbol._item)\n\t\t\t\t|| false;\n\t}\n});\n\nvar HitResult = Base.extend({\n\t_class: 'HitResult',\n\n\tinitialize: function HitResult(type, item, values) {\n\t\tthis.type = type;\n\t\tthis.item = item;\n\t\tif (values)\n\t\t\tthis.inject(values);\n\t},\n\n\tstatics: {\n\t\tgetOptions: function(args) {\n\t\t\tvar options = args && Base.read(args);\n\t\t\treturn new Base({\n\t\t\t\ttype: null,\n\t\t\t\ttolerance: paper.settings.hitTolerance,\n\t\t\t\tfill: !options,\n\t\t\t\tstroke: !options,\n\t\t\t\tsegments: !options,\n\t\t\t\thandles: false,\n\t\t\t\tends: false,\n\t\t\t\tposition: false,\n\t\t\t\tcenter: false,\n\t\t\t\tbounds: false,\n\t\t\t\tguides: false,\n\t\t\t\tselected: false\n\t\t\t}, options);\n\t\t}\n\t}\n});\n\nvar Segment = Base.extend({\n\t_class: 'Segment',\n\tbeans: true,\n\t_selection: 0,\n\n\tinitialize: function Segment(arg0, arg1, arg2, arg3, arg4, arg5) {\n\t\tvar count = arguments.length,\n\t\t\tpoint, handleIn, handleOut, selection;\n\t\tif (count > 0) {\n\t\t\tif (arg0 == null || typeof arg0 === 'object') {\n\t\t\t\tif (count === 1 && arg0 && 'point' in arg0) {\n\t\t\t\t\tpoint = arg0.point;\n\t\t\t\t\thandleIn = arg0.handleIn;\n\t\t\t\t\thandleOut = arg0.handleOut;\n\t\t\t\t\tselection = arg0.selection;\n\t\t\t\t} else {\n\t\t\t\t\tpoint = arg0;\n\t\t\t\t\thandleIn = arg1;\n\t\t\t\t\thandleOut = arg2;\n\t\t\t\t\tselection = arg3;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tpoint = [ arg0, arg1 ];\n\t\t\t\thandleIn = arg2 !== undefined ? [ arg2, arg3 ] : null;\n\t\t\t\thandleOut = arg4 !== undefined ? [ arg4, arg5 ] : null;\n\t\t\t}\n\t\t}\n\t\tnew SegmentPoint(point, this, '_point');\n\t\tnew SegmentPoint(handleIn, this, '_handleIn');\n\t\tnew SegmentPoint(handleOut, this, '_handleOut');\n\t\tif (selection)\n\t\t\tthis.setSelection(selection);\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\tvar point = this._point,\n\t\t\tselection = this._selection,\n\t\t\tobj = selection || this.hasHandles()\n\t\t\t\t\t? [point, this._handleIn, this._handleOut]\n\t\t\t\t\t: point;\n\t\tif (selection)\n\t\t\tobj.push(selection);\n\t\treturn Base.serialize(obj, options, true, dictionary);\n\t},\n\n\t_changed: function(point) {\n\t\tvar path = this._path;\n\t\tif (!path)\n\t\t\treturn;\n\t\tvar curves = path._curves,\n\t\t\tindex = this._index,\n\t\t\tcurve;\n\t\tif (curves) {\n\t\t\tif ((!point || point === this._point || point === this._handleIn)\n\t\t\t\t\t&& (curve = index > 0 ? curves[index - 1] : path._closed\n\t\t\t\t\t\t? curves[curves.length - 1] : null))\n\t\t\t\tcurve._changed();\n\t\t\tif ((!point || point === this._point || point === this._handleOut)\n\t\t\t\t\t&& (curve = curves[index]))\n\t\t\t\tcurve._changed();\n\t\t}\n\t\tpath._changed(41);\n\t},\n\n\tgetPoint: function() {\n\t\treturn this._point;\n\t},\n\n\tsetPoint: function() {\n\t\tthis._point.set(Point.read(arguments));\n\t},\n\n\tgetHandleIn: function() {\n\t\treturn this._handleIn;\n\t},\n\n\tsetHandleIn: function() {\n\t\tthis._handleIn.set(Point.read(arguments));\n\t},\n\n\tgetHandleOut: function() {\n\t\treturn this._handleOut;\n\t},\n\n\tsetHandleOut: function() {\n\t\tthis._handleOut.set(Point.read(arguments));\n\t},\n\n\thasHandles: function() {\n\t\treturn !this._handleIn.isZero() || !this._handleOut.isZero();\n\t},\n\n\tisSmooth: function() {\n\t\tvar handleIn = this._handleIn,\n\t\t\thandleOut = this._handleOut;\n\t\treturn !handleIn.isZero() && !handleOut.isZero()\n\t\t\t\t&& handleIn.isCollinear(handleOut);\n\t},\n\n\tclearHandles: function() {\n\t\tthis._handleIn._set(0, 0);\n\t\tthis._handleOut._set(0, 0);\n\t},\n\n\tgetSelection: function() {\n\t\treturn this._selection;\n\t},\n\n\tsetSelection: function(selection) {\n\t\tvar oldSelection = this._selection,\n\t\t\tpath = this._path;\n\t\tthis._selection = selection = selection || 0;\n\t\tif (path && selection !== oldSelection) {\n\t\t\tpath._updateSelection(this, oldSelection, selection);\n\t\t\tpath._changed(257);\n\t\t}\n\t},\n\n\t_changeSelection: function(flag, selected) {\n\t\tvar selection = this._selection;\n\t\tthis.setSelection(selected ? selection | flag : selection & ~flag);\n\t},\n\n\tisSelected: function() {\n\t\treturn !!(this._selection & 7);\n\t},\n\n\tsetSelected: function(selected) {\n\t\tthis._changeSelection(7, selected);\n\t},\n\n\tgetIndex: function() {\n\t\treturn this._index !== undefined ? this._index : null;\n\t},\n\n\tgetPath: function() {\n\t\treturn this._path || null;\n\t},\n\n\tgetCurve: function() {\n\t\tvar path = this._path,\n\t\t\tindex = this._index;\n\t\tif (path) {\n\t\t\tif (index > 0 && !path._closed\n\t\t\t\t\t&& index === path._segments.length - 1)\n\t\t\t\tindex--;\n\t\t\treturn path.getCurves()[index] || null;\n\t\t}\n\t\treturn null;\n\t},\n\n\tgetLocation: function() {\n\t\tvar curve = this.getCurve();\n\t\treturn curve\n\t\t\t\t? new CurveLocation(curve, this === curve._segment1 ? 0 : 1)\n\t\t\t\t: null;\n\t},\n\n\tgetNext: function() {\n\t\tvar segments = this._path && this._path._segments;\n\t\treturn segments && (segments[this._index + 1]\n\t\t\t\t|| this._path._closed && segments[0]) || null;\n\t},\n\n\tsmooth: function(options, _first, _last) {\n\t\tvar opts = options || {},\n\t\t\ttype = opts.type,\n\t\t\tfactor = opts.factor,\n\t\t\tprev = this.getPrevious(),\n\t\t\tnext = this.getNext(),\n\t\t\tp0 = (prev || this)._point,\n\t\t\tp1 = this._point,\n\t\t\tp2 = (next || this)._point,\n\t\t\td1 = p0.getDistance(p1),\n\t\t\td2 = p1.getDistance(p2);\n\t\tif (!type || type === 'catmull-rom') {\n\t\t\tvar a = factor === undefined ? 0.5 : factor,\n\t\t\t\td1_a = Math.pow(d1, a),\n\t\t\t\td1_2a = d1_a * d1_a,\n\t\t\t\td2_a = Math.pow(d2, a),\n\t\t\t\td2_2a = d2_a * d2_a;\n\t\t\tif (!_first && prev) {\n\t\t\t\tvar A = 2 * d2_2a + 3 * d2_a * d1_a + d1_2a,\n\t\t\t\t\tN = 3 * d2_a * (d2_a + d1_a);\n\t\t\t\tthis.setHandleIn(N !== 0\n\t\t\t\t\t? new Point(\n\t\t\t\t\t\t(d2_2a * p0._x + A * p1._x - d1_2a * p2._x) / N - p1._x,\n\t\t\t\t\t\t(d2_2a * p0._y + A * p1._y - d1_2a * p2._y) / N - p1._y)\n\t\t\t\t\t: new Point());\n\t\t\t}\n\t\t\tif (!_last && next) {\n\t\t\t\tvar A = 2 * d1_2a + 3 * d1_a * d2_a + d2_2a,\n\t\t\t\t\tN = 3 * d1_a * (d1_a + d2_a);\n\t\t\t\tthis.setHandleOut(N !== 0\n\t\t\t\t\t? new Point(\n\t\t\t\t\t\t(d1_2a * p2._x + A * p1._x - d2_2a * p0._x) / N - p1._x,\n\t\t\t\t\t\t(d1_2a * p2._y + A * p1._y - d2_2a * p0._y) / N - p1._y)\n\t\t\t\t\t: new Point());\n\t\t\t}\n\t\t} else if (type === 'geometric') {\n\t\t\tif (prev && next) {\n\t\t\t\tvar vector = p0.subtract(p2),\n\t\t\t\t\tt = factor === undefined ? 0.4 : factor,\n\t\t\t\t\tk = t * d1 / (d1 + d2);\n\t\t\t\tif (!_first)\n\t\t\t\t\tthis.setHandleIn(vector.multiply(k));\n\t\t\t\tif (!_last)\n\t\t\t\t\tthis.setHandleOut(vector.multiply(k - t));\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new Error('Smoothing method \\'' + type + '\\' not supported.');\n\t\t}\n\t},\n\n\tgetPrevious: function() {\n\t\tvar segments = this._path && this._path._segments;\n\t\treturn segments && (segments[this._index - 1]\n\t\t\t\t|| this._path._closed && segments[segments.length - 1]) || null;\n\t},\n\n\tisFirst: function() {\n\t\treturn !this._index;\n\t},\n\n\tisLast: function() {\n\t\tvar path = this._path;\n\t\treturn path && this._index === path._segments.length - 1 || false;\n\t},\n\n\treverse: function() {\n\t\tvar handleIn = this._handleIn,\n\t\t\thandleOut = this._handleOut,\n\t\t\ttmp = handleIn.clone();\n\t\thandleIn.set(handleOut);\n\t\thandleOut.set(tmp);\n\t},\n\n\treversed: function() {\n\t\treturn new Segment(this._point, this._handleOut, this._handleIn);\n\t},\n\n\tremove: function() {\n\t\treturn this._path ? !!this._path.removeSegment(this._index) : false;\n\t},\n\n\tclone: function() {\n\t\treturn new Segment(this._point, this._handleIn, this._handleOut);\n\t},\n\n\tequals: function(segment) {\n\t\treturn segment === this || segment && this._class === segment._class\n\t\t\t\t&& this._point.equals(segment._point)\n\t\t\t\t&& this._handleIn.equals(segment._handleIn)\n\t\t\t\t&& this._handleOut.equals(segment._handleOut)\n\t\t\t\t|| false;\n\t},\n\n\ttoString: function() {\n\t\tvar parts = [ 'point: ' + this._point ];\n\t\tif (!this._handleIn.isZero())\n\t\t\tparts.push('handleIn: ' + this._handleIn);\n\t\tif (!this._handleOut.isZero())\n\t\t\tparts.push('handleOut: ' + this._handleOut);\n\t\treturn '{ ' + parts.join(', ') + ' }';\n\t},\n\n\ttransform: function(matrix) {\n\t\tthis._transformCoordinates(matrix, new Array(6), true);\n\t\tthis._changed();\n\t},\n\n\tinterpolate: function(from, to, factor) {\n\t\tvar u = 1 - factor,\n\t\t\tv = factor,\n\t\t\tpoint1 = from._point,\n\t\t\tpoint2 = to._point,\n\t\t\thandleIn1 = from._handleIn,\n\t\t\thandleIn2 = to._handleIn,\n\t\t\thandleOut2 = to._handleOut,\n\t\t\thandleOut1 = from._handleOut;\n\t\tthis._point._set(\n\t\t\t\tu * point1._x + v * point2._x,\n\t\t\t\tu * point1._y + v * point2._y, true);\n\t\tthis._handleIn._set(\n\t\t\t\tu * handleIn1._x + v * handleIn2._x,\n\t\t\t\tu * handleIn1._y + v * handleIn2._y, true);\n\t\tthis._handleOut._set(\n\t\t\t\tu * handleOut1._x + v * handleOut2._x,\n\t\t\t\tu * handleOut1._y + v * handleOut2._y, true);\n\t\tthis._changed();\n\t},\n\n\t_transformCoordinates: function(matrix, coords, change) {\n\t\tvar point = this._point,\n\t\t\thandleIn = !change || !this._handleIn.isZero()\n\t\t\t\t\t? this._handleIn : null,\n\t\t\thandleOut = !change || !this._handleOut.isZero()\n\t\t\t\t\t? this._handleOut : null,\n\t\t\tx = point._x,\n\t\t\ty = point._y,\n\t\t\ti = 2;\n\t\tcoords[0] = x;\n\t\tcoords[1] = y;\n\t\tif (handleIn) {\n\t\t\tcoords[i++] = handleIn._x + x;\n\t\t\tcoords[i++] = handleIn._y + y;\n\t\t}\n\t\tif (handleOut) {\n\t\t\tcoords[i++] = handleOut._x + x;\n\t\t\tcoords[i++] = handleOut._y + y;\n\t\t}\n\t\tif (matrix) {\n\t\t\tmatrix._transformCoordinates(coords, coords, i / 2);\n\t\t\tx = coords[0];\n\t\t\ty = coords[1];\n\t\t\tif (change) {\n\t\t\t\tpoint._x = x;\n\t\t\t\tpoint._y = y;\n\t\t\t\ti = 2;\n\t\t\t\tif (handleIn) {\n\t\t\t\t\thandleIn._x = coords[i++] - x;\n\t\t\t\t\thandleIn._y = coords[i++] - y;\n\t\t\t\t}\n\t\t\t\tif (handleOut) {\n\t\t\t\t\thandleOut._x = coords[i++] - x;\n\t\t\t\t\thandleOut._y = coords[i++] - y;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (!handleIn) {\n\t\t\t\t\tcoords[i++] = x;\n\t\t\t\t\tcoords[i++] = y;\n\t\t\t\t}\n\t\t\t\tif (!handleOut) {\n\t\t\t\t\tcoords[i++] = x;\n\t\t\t\t\tcoords[i++] = y;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn coords;\n\t}\n});\n\nvar SegmentPoint = Point.extend({\n\tinitialize: function SegmentPoint(point, owner, key) {\n\t\tvar x, y,\n\t\t\tselected;\n\t\tif (!point) {\n\t\t\tx = y = 0;\n\t\t} else if ((x = point[0]) !== undefined) {\n\t\t\ty = point[1];\n\t\t} else {\n\t\t\tvar pt = point;\n\t\t\tif ((x = pt.x) === undefined) {\n\t\t\t\tpt = Point.read(arguments);\n\t\t\t\tx = pt.x;\n\t\t\t}\n\t\t\ty = pt.y;\n\t\t\tselected = pt.selected;\n\t\t}\n\t\tthis._x = x;\n\t\tthis._y = y;\n\t\tthis._owner = owner;\n\t\towner[key] = this;\n\t\tif (selected)\n\t\t\tthis.setSelected(true);\n\t},\n\n\t_set: function(x, y) {\n\t\tthis._x = x;\n\t\tthis._y = y;\n\t\tthis._owner._changed(this);\n\t\treturn this;\n\t},\n\n\tgetX: function() {\n\t\treturn this._x;\n\t},\n\n\tsetX: function(x) {\n\t\tthis._x = x;\n\t\tthis._owner._changed(this);\n\t},\n\n\tgetY: function() {\n\t\treturn this._y;\n\t},\n\n\tsetY: function(y) {\n\t\tthis._y = y;\n\t\tthis._owner._changed(this);\n\t},\n\n\tisZero: function() {\n\t\tvar isZero = Numerical.isZero;\n\t\treturn isZero(this._x) && isZero(this._y);\n\t},\n\n\tisSelected: function() {\n\t\treturn !!(this._owner._selection & this._getSelection());\n\t},\n\n\tsetSelected: function(selected) {\n\t\tthis._owner._changeSelection(this._getSelection(), selected);\n\t},\n\n\t_getSelection: function() {\n\t\tvar owner = this._owner;\n\t\treturn this === owner._point ? 1\n\t\t\t: this === owner._handleIn ? 2\n\t\t\t: this === owner._handleOut ? 4\n\t\t\t: 0;\n\t}\n});\n\nvar Curve = Base.extend({\n\t_class: 'Curve',\n\tbeans: true,\n\n\tinitialize: function Curve(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {\n\t\tvar count = arguments.length,\n\t\t\tseg1, seg2,\n\t\t\tpoint1, point2,\n\t\t\thandle1, handle2;\n\t\tif (count === 3) {\n\t\t\tthis._path = arg0;\n\t\t\tseg1 = arg1;\n\t\t\tseg2 = arg2;\n\t\t} else if (!count) {\n\t\t\tseg1 = new Segment();\n\t\t\tseg2 = new Segment();\n\t\t} else if (count === 1) {\n\t\t\tif ('segment1' in arg0) {\n\t\t\t\tseg1 = new Segment(arg0.segment1);\n\t\t\t\tseg2 = new Segment(arg0.segment2);\n\t\t\t} else if ('point1' in arg0) {\n\t\t\t\tpoint1 = arg0.point1;\n\t\t\t\thandle1 = arg0.handle1;\n\t\t\t\thandle2 = arg0.handle2;\n\t\t\t\tpoint2 = arg0.point2;\n\t\t\t} else if (Array.isArray(arg0)) {\n\t\t\t\tpoint1 = [arg0[0], arg0[1]];\n\t\t\t\tpoint2 = [arg0[6], arg0[7]];\n\t\t\t\thandle1 = [arg0[2] - arg0[0], arg0[3] - arg0[1]];\n\t\t\t\thandle2 = [arg0[4] - arg0[6], arg0[5] - arg0[7]];\n\t\t\t}\n\t\t} else if (count === 2) {\n\t\t\tseg1 = new Segment(arg0);\n\t\t\tseg2 = new Segment(arg1);\n\t\t} else if (count === 4) {\n\t\t\tpoint1 = arg0;\n\t\t\thandle1 = arg1;\n\t\t\thandle2 = arg2;\n\t\t\tpoint2 = arg3;\n\t\t} else if (count === 8) {\n\t\t\tpoint1 = [arg0, arg1];\n\t\t\tpoint2 = [arg6, arg7];\n\t\t\thandle1 = [arg2 - arg0, arg3 - arg1];\n\t\t\thandle2 = [arg4 - arg6, arg5 - arg7];\n\t\t}\n\t\tthis._segment1 = seg1 || new Segment(point1, null, handle1);\n\t\tthis._segment2 = seg2 || new Segment(point2, handle2, null);\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\treturn Base.serialize(this.hasHandles()\n\t\t\t\t? [this.getPoint1(), this.getHandle1(), this.getHandle2(),\n\t\t\t\t\tthis.getPoint2()]\n\t\t\t\t: [this.getPoint1(), this.getPoint2()],\n\t\t\t\toptions, true, dictionary);\n\t},\n\n\t_changed: function() {\n\t\tthis._length = this._bounds = undefined;\n\t},\n\n\tclone: function() {\n\t\treturn new Curve(this._segment1, this._segment2);\n\t},\n\n\ttoString: function() {\n\t\tvar parts = [ 'point1: ' + this._segment1._point ];\n\t\tif (!this._segment1._handleOut.isZero())\n\t\t\tparts.push('handle1: ' + this._segment1._handleOut);\n\t\tif (!this._segment2._handleIn.isZero())\n\t\t\tparts.push('handle2: ' + this._segment2._handleIn);\n\t\tparts.push('point2: ' + this._segment2._point);\n\t\treturn '{ ' + parts.join(', ') + ' }';\n\t},\n\n\tclassify: function() {\n\t\treturn Curve.classify(this.getValues());\n\t},\n\n\tremove: function() {\n\t\tvar removed = false;\n\t\tif (this._path) {\n\t\t\tvar segment2 = this._segment2,\n\t\t\t\thandleOut = segment2._handleOut;\n\t\t\tremoved = segment2.remove();\n\t\t\tif (removed)\n\t\t\t\tthis._segment1._handleOut.set(handleOut);\n\t\t}\n\t\treturn removed;\n\t},\n\n\tgetPoint1: function() {\n\t\treturn this._segment1._point;\n\t},\n\n\tsetPoint1: function() {\n\t\tthis._segment1._point.set(Point.read(arguments));\n\t},\n\n\tgetPoint2: function() {\n\t\treturn this._segment2._point;\n\t},\n\n\tsetPoint2: function() {\n\t\tthis._segment2._point.set(Point.read(arguments));\n\t},\n\n\tgetHandle1: function() {\n\t\treturn this._segment1._handleOut;\n\t},\n\n\tsetHandle1: function() {\n\t\tthis._segment1._handleOut.set(Point.read(arguments));\n\t},\n\n\tgetHandle2: function() {\n\t\treturn this._segment2._handleIn;\n\t},\n\n\tsetHandle2: function() {\n\t\tthis._segment2._handleIn.set(Point.read(arguments));\n\t},\n\n\tgetSegment1: function() {\n\t\treturn this._segment1;\n\t},\n\n\tgetSegment2: function() {\n\t\treturn this._segment2;\n\t},\n\n\tgetPath: function() {\n\t\treturn this._path;\n\t},\n\n\tgetIndex: function() {\n\t\treturn this._segment1._index;\n\t},\n\n\tgetNext: function() {\n\t\tvar curves = this._path && this._path._curves;\n\t\treturn curves && (curves[this._segment1._index + 1]\n\t\t\t\t|| this._path._closed && curves[0]) || null;\n\t},\n\n\tgetPrevious: function() {\n\t\tvar curves = this._path && this._path._curves;\n\t\treturn curves && (curves[this._segment1._index - 1]\n\t\t\t\t|| this._path._closed && curves[curves.length - 1]) || null;\n\t},\n\n\tisFirst: function() {\n\t\treturn !this._segment1._index;\n\t},\n\n\tisLast: function() {\n\t\tvar path = this._path;\n\t\treturn path && this._segment1._index === path._curves.length - 1\n\t\t\t\t|| false;\n\t},\n\n\tisSelected: function() {\n\t\treturn this.getPoint1().isSelected()\n\t\t\t\t&& this.getHandle1().isSelected()\n\t\t\t\t&& this.getHandle2().isSelected()\n\t\t\t\t&& this.getPoint2().isSelected();\n\t},\n\n\tsetSelected: function(selected) {\n\t\tthis.getPoint1().setSelected(selected);\n\t\tthis.getHandle1().setSelected(selected);\n\t\tthis.getHandle2().setSelected(selected);\n\t\tthis.getPoint2().setSelected(selected);\n\t},\n\n\tgetValues: function(matrix) {\n\t\treturn Curve.getValues(this._segment1, this._segment2, matrix);\n\t},\n\n\tgetPoints: function() {\n\t\tvar coords = this.getValues(),\n\t\t\tpoints = [];\n\t\tfor (var i = 0; i < 8; i += 2)\n\t\t\tpoints.push(new Point(coords[i], coords[i + 1]));\n\t\treturn points;\n\t}\n}, {\n\tgetLength: function() {\n\t\tif (this._length == null)\n\t\t\tthis._length = Curve.getLength(this.getValues(), 0, 1);\n\t\treturn this._length;\n\t},\n\n\tgetArea: function() {\n\t\treturn Curve.getArea(this.getValues());\n\t},\n\n\tgetLine: function() {\n\t\treturn new Line(this._segment1._point, this._segment2._point);\n\t},\n\n\tgetPart: function(from, to) {\n\t\treturn new Curve(Curve.getPart(this.getValues(), from, to));\n\t},\n\n\tgetPartLength: function(from, to) {\n\t\treturn Curve.getLength(this.getValues(), from, to);\n\t},\n\n\tdivideAt: function(location) {\n\t\treturn this.divideAtTime(location && location.curve === this\n\t\t\t\t? location.time : this.getTimeAt(location));\n\t},\n\n\tdivideAtTime: function(time, _setHandles) {\n\t\tvar tMin = 1e-8,\n\t\t\ttMax = 1 - tMin,\n\t\t\tres = null;\n\t\tif (time >= tMin && time <= tMax) {\n\t\t\tvar parts = Curve.subdivide(this.getValues(), time),\n\t\t\t\tleft = parts[0],\n\t\t\t\tright = parts[1],\n\t\t\t\tsetHandles = _setHandles || this.hasHandles(),\n\t\t\t\tseg1 = this._segment1,\n\t\t\t\tseg2 = this._segment2,\n\t\t\t\tpath = this._path;\n\t\t\tif (setHandles) {\n\t\t\t\tseg1._handleOut._set(left[2] - left[0], left[3] - left[1]);\n\t\t\t\tseg2._handleIn._set(right[4] - right[6],right[5] - right[7]);\n\t\t\t}\n\t\t\tvar x = left[6], y = left[7],\n\t\t\t\tsegment = new Segment(new Point(x, y),\n\t\t\t\t\t\tsetHandles && new Point(left[4] - x, left[5] - y),\n\t\t\t\t\t\tsetHandles && new Point(right[2] - x, right[3] - y));\n\t\t\tif (path) {\n\t\t\t\tpath.insert(seg1._index + 1, segment);\n\t\t\t\tres = this.getNext();\n\t\t\t} else {\n\t\t\t\tthis._segment2 = segment;\n\t\t\t\tthis._changed();\n\t\t\t\tres = new Curve(segment, seg2);\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t},\n\n\tsplitAt: function(location) {\n\t\tvar path = this._path;\n\t\treturn path ? path.splitAt(location) : null;\n\t},\n\n\tsplitAtTime: function(time) {\n\t\treturn this.splitAt(this.getLocationAtTime(time));\n\t},\n\n\tdivide: function(offset, isTime) {\n\t\treturn this.divideAtTime(offset === undefined ? 0.5 : isTime ? offset\n\t\t\t\t: this.getTimeAt(offset));\n\t},\n\n\tsplit: function(offset, isTime) {\n\t\treturn this.splitAtTime(offset === undefined ? 0.5 : isTime ? offset\n\t\t\t\t: this.getTimeAt(offset));\n\t},\n\n\treversed: function() {\n\t\treturn new Curve(this._segment2.reversed(), this._segment1.reversed());\n\t},\n\n\tclearHandles: function() {\n\t\tthis._segment1._handleOut._set(0, 0);\n\t\tthis._segment2._handleIn._set(0, 0);\n\t},\n\nstatics: {\n\tgetValues: function(segment1, segment2, matrix, straight) {\n\t\tvar p1 = segment1._point,\n\t\t\th1 = segment1._handleOut,\n\t\t\th2 = segment2._handleIn,\n\t\t\tp2 = segment2._point,\n\t\t\tx1 = p1.x, y1 = p1.y,\n\t\t\tx2 = p2.x, y2 = p2.y,\n\t\t\tvalues = straight\n\t\t\t\t? [ x1, y1, x1, y1, x2, y2, x2, y2 ]\n\t\t\t\t: [\n\t\t\t\t\tx1, y1,\n\t\t\t\t\tx1 + h1._x, y1 + h1._y,\n\t\t\t\t\tx2 + h2._x, y2 + h2._y,\n\t\t\t\t\tx2, y2\n\t\t\t\t];\n\t\tif (matrix)\n\t\t\tmatrix._transformCoordinates(values, values, 4);\n\t\treturn values;\n\t},\n\n\tsubdivide: function(v, t) {\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx1 = v[2], y1 = v[3],\n\t\t\tx2 = v[4], y2 = v[5],\n\t\t\tx3 = v[6], y3 = v[7];\n\t\tif (t === undefined)\n\t\t\tt = 0.5;\n\t\tvar u = 1 - t,\n\t\t\tx4 = u * x0 + t * x1, y4 = u * y0 + t * y1,\n\t\t\tx5 = u * x1 + t * x2, y5 = u * y1 + t * y2,\n\t\t\tx6 = u * x2 + t * x3, y6 = u * y2 + t * y3,\n\t\t\tx7 = u * x4 + t * x5, y7 = u * y4 + t * y5,\n\t\t\tx8 = u * x5 + t * x6, y8 = u * y5 + t * y6,\n\t\t\tx9 = u * x7 + t * x8, y9 = u * y7 + t * y8;\n\t\treturn [\n\t\t\t[x0, y0, x4, y4, x7, y7, x9, y9],\n\t\t\t[x9, y9, x8, y8, x6, y6, x3, y3]\n\t\t];\n\t},\n\n\tgetMonoCurves: function(v, dir) {\n\t\tvar curves = [],\n\t\t\tio = dir ? 0 : 1,\n\t\t\to0 = v[io + 0],\n\t\t\to1 = v[io + 2],\n\t\t\to2 = v[io + 4],\n\t\t\to3 = v[io + 6];\n\t\tif ((o0 >= o1) === (o1 >= o2) && (o1 >= o2) === (o2 >= o3)\n\t\t\t\t|| Curve.isStraight(v)) {\n\t\t\tcurves.push(v);\n\t\t} else {\n\t\t\tvar a = 3 * (o1 - o2) - o0 + o3,\n\t\t\t\tb = 2 * (o0 + o2) - 4 * o1,\n\t\t\t\tc = o1 - o0,\n\t\t\t\ttMin = 1e-8,\n\t\t\t\ttMax = 1 - tMin,\n\t\t\t\troots = [],\n\t\t\t\tn = Numerical.solveQuadratic(a, b, c, roots, tMin, tMax);\n\t\t\tif (!n) {\n\t\t\t\tcurves.push(v);\n\t\t\t} else {\n\t\t\t\troots.sort();\n\t\t\t\tvar t = roots[0],\n\t\t\t\t\tparts = Curve.subdivide(v, t);\n\t\t\t\tcurves.push(parts[0]);\n\t\t\t\tif (n > 1) {\n\t\t\t\t\tt = (roots[1] - t) / (1 - t);\n\t\t\t\t\tparts = Curve.subdivide(parts[1], t);\n\t\t\t\t\tcurves.push(parts[0]);\n\t\t\t\t}\n\t\t\t\tcurves.push(parts[1]);\n\t\t\t}\n\t\t}\n\t\treturn curves;\n\t},\n\n\tsolveCubic: function (v, coord, val, roots, min, max) {\n\t\tvar v0 = v[coord],\n\t\t\tv1 = v[coord + 2],\n\t\t\tv2 = v[coord + 4],\n\t\t\tv3 = v[coord + 6],\n\t\t\tres = 0;\n\t\tif ( !(v0 < val && v3 < val && v1 < val && v2 < val ||\n\t\t\t\tv0 > val && v3 > val && v1 > val && v2 > val)) {\n\t\t\tvar c = 3 * (v1 - v0),\n\t\t\t\tb = 3 * (v2 - v1) - c,\n\t\t\t\ta = v3 - v0 - c - b;\n\t\t\tres = Numerical.solveCubic(a, b, c, v0 - val, roots, min, max);\n\t\t}\n\t\treturn res;\n\t},\n\n\tgetTimeOf: function(v, point) {\n\t\tvar p0 = new Point(v[0], v[1]),\n\t\t\tp3 = new Point(v[6], v[7]),\n\t\t\tepsilon = 1e-12,\n\t\t\tgeomEpsilon = 1e-7,\n\t\t\tt = point.isClose(p0, epsilon) ? 0\n\t\t\t : point.isClose(p3, epsilon) ? 1\n\t\t\t : null;\n\t\tif (t === null) {\n\t\t\tvar coords = [point.x, point.y],\n\t\t\t\troots = [];\n\t\t\tfor (var c = 0; c < 2; c++) {\n\t\t\t\tvar count = Curve.solveCubic(v, c, coords[c], roots, 0, 1);\n\t\t\t\tfor (var i = 0; i < count; i++) {\n\t\t\t\t\tvar u = roots[i];\n\t\t\t\t\tif (point.isClose(Curve.getPoint(v, u), geomEpsilon))\n\t\t\t\t\t\treturn u;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn point.isClose(p0, geomEpsilon) ? 0\n\t\t\t : point.isClose(p3, geomEpsilon) ? 1\n\t\t\t : null;\n\t},\n\n\tgetNearestTime: function(v, point) {\n\t\tif (Curve.isStraight(v)) {\n\t\t\tvar x0 = v[0], y0 = v[1],\n\t\t\t\tx3 = v[6], y3 = v[7],\n\t\t\t\tvx = x3 - x0, vy = y3 - y0,\n\t\t\t\tdet = vx * vx + vy * vy;\n\t\t\tif (det === 0)\n\t\t\t\treturn 0;\n\t\t\tvar u = ((point.x - x0) * vx + (point.y - y0) * vy) / det;\n\t\t\treturn u < 1e-12 ? 0\n\t\t\t\t : u > 0.999999999999 ? 1\n\t\t\t\t : Curve.getTimeOf(v,\n\t\t\t\t\tnew Point(x0 + u * vx, y0 + u * vy));\n\t\t}\n\n\t\tvar count = 100,\n\t\t\tminDist = Infinity,\n\t\t\tminT = 0;\n\n\t\tfunction refine(t) {\n\t\t\tif (t >= 0 && t <= 1) {\n\t\t\t\tvar dist = point.getDistance(Curve.getPoint(v, t), true);\n\t\t\t\tif (dist < minDist) {\n\t\t\t\t\tminDist = dist;\n\t\t\t\t\tminT = t;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (var i = 0; i <= count; i++)\n\t\t\trefine(i / count);\n\n\t\tvar step = 1 / (count * 2);\n\t\twhile (step > 1e-8) {\n\t\t\tif (!refine(minT - step) && !refine(minT + step))\n\t\t\t\tstep /= 2;\n\t\t}\n\t\treturn minT;\n\t},\n\n\tgetPart: function(v, from, to) {\n\t\tvar flip = from > to;\n\t\tif (flip) {\n\t\t\tvar tmp = from;\n\t\t\tfrom = to;\n\t\t\tto = tmp;\n\t\t}\n\t\tif (from > 0)\n\t\t\tv = Curve.subdivide(v, from)[1];\n\t\tif (to < 1)\n\t\t\tv = Curve.subdivide(v, (to - from) / (1 - from))[0];\n\t\treturn flip\n\t\t\t\t? [v[6], v[7], v[4], v[5], v[2], v[3], v[0], v[1]]\n\t\t\t\t: v;\n\t},\n\n\tisFlatEnough: function(v, flatness) {\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx1 = v[2], y1 = v[3],\n\t\t\tx2 = v[4], y2 = v[5],\n\t\t\tx3 = v[6], y3 = v[7],\n\t\t\tux = 3 * x1 - 2 * x0 - x3,\n\t\t\tuy = 3 * y1 - 2 * y0 - y3,\n\t\t\tvx = 3 * x2 - 2 * x3 - x0,\n\t\t\tvy = 3 * y2 - 2 * y3 - y0;\n\t\treturn Math.max(ux * ux, vx * vx) + Math.max(uy * uy, vy * vy)\n\t\t\t\t<= 16 * flatness * flatness;\n\t},\n\n\tgetArea: function(v) {\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx1 = v[2], y1 = v[3],\n\t\t\tx2 = v[4], y2 = v[5],\n\t\t\tx3 = v[6], y3 = v[7];\n\t\treturn 3 * ((y3 - y0) * (x1 + x2) - (x3 - x0) * (y1 + y2)\n\t\t\t\t+ y1 * (x0 - x2) - x1 * (y0 - y2)\n\t\t\t\t+ y3 * (x2 + x0 / 3) - x3 * (y2 + y0 / 3)) / 20;\n\t},\n\n\tgetBounds: function(v) {\n\t\tvar min = v.slice(0, 2),\n\t\t\tmax = min.slice(),\n\t\t\troots = [0, 0];\n\t\tfor (var i = 0; i < 2; i++)\n\t\t\tCurve._addBounds(v[i], v[i + 2], v[i + 4], v[i + 6],\n\t\t\t\t\ti, 0, min, max, roots);\n\t\treturn new Rectangle(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n\t},\n\n\t_addBounds: function(v0, v1, v2, v3, coord, padding, min, max, roots) {\n\t\tfunction add(value, padding) {\n\t\t\tvar left = value - padding,\n\t\t\t\tright = value + padding;\n\t\t\tif (left < min[coord])\n\t\t\t\tmin[coord] = left;\n\t\t\tif (right > max[coord])\n\t\t\t\tmax[coord] = right;\n\t\t}\n\n\t\tpadding /= 2;\n\t\tvar minPad = min[coord] + padding,\n\t\t\tmaxPad = max[coord] - padding;\n\t\tif ( v0 < minPad || v1 < minPad || v2 < minPad || v3 < minPad ||\n\t\t\t\tv0 > maxPad || v1 > maxPad || v2 > maxPad || v3 > maxPad) {\n\t\t\tif (v1 < v0 != v1 < v3 && v2 < v0 != v2 < v3) {\n\t\t\t\tadd(v0, 0);\n\t\t\t\tadd(v3, 0);\n\t\t\t} else {\n\t\t\t\tvar a = 3 * (v1 - v2) - v0 + v3,\n\t\t\t\t\tb = 2 * (v0 + v2) - 4 * v1,\n\t\t\t\t\tc = v1 - v0,\n\t\t\t\t\tcount = Numerical.solveQuadratic(a, b, c, roots),\n\t\t\t\t\ttMin = 1e-8,\n\t\t\t\t\ttMax = 1 - tMin;\n\t\t\t\tadd(v3, 0);\n\t\t\t\tfor (var i = 0; i < count; i++) {\n\t\t\t\t\tvar t = roots[i],\n\t\t\t\t\t\tu = 1 - t;\n\t\t\t\t\tif (tMin <= t && t <= tMax)\n\t\t\t\t\t\tadd(u * u * u * v0\n\t\t\t\t\t\t\t+ 3 * u * u * t * v1\n\t\t\t\t\t\t\t+ 3 * u * t * t * v2\n\t\t\t\t\t\t\t+ t * t * t * v3,\n\t\t\t\t\t\t\tpadding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}}, Base.each(\n\t['getBounds', 'getStrokeBounds', 'getHandleBounds'],\n\tfunction(name) {\n\t\tthis[name] = function() {\n\t\t\tif (!this._bounds)\n\t\t\t\tthis._bounds = {};\n\t\t\tvar bounds = this._bounds[name];\n\t\t\tif (!bounds) {\n\t\t\t\tbounds = this._bounds[name] = Path[name](\n\t\t\t\t\t\t[this._segment1, this._segment2], false, this._path);\n\t\t\t}\n\t\t\treturn bounds.clone();\n\t\t};\n\t},\n{\n\n}), Base.each({\n\tisStraight: function(p1, h1, h2, p2) {\n\t\tif (h1.isZero() && h2.isZero()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tvar v = p2.subtract(p1);\n\t\t\tif (v.isZero()) {\n\t\t\t\treturn false;\n\t\t\t} else if (v.isCollinear(h1) && v.isCollinear(h2)) {\n\t\t\t\tvar l = new Line(p1, p2),\n\t\t\t\t\tepsilon = 1e-7;\n\t\t\t\tif (l.getDistance(p1.add(h1)) < epsilon &&\n\t\t\t\t\tl.getDistance(p2.add(h2)) < epsilon) {\n\t\t\t\t\tvar div = v.dot(v),\n\t\t\t\t\t\ts1 = v.dot(h1) / div,\n\t\t\t\t\t\ts2 = v.dot(h2) / div;\n\t\t\t\t\treturn s1 >= 0 && s1 <= 1 && s2 <= 0 && s2 >= -1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t},\n\n\tisLinear: function(p1, h1, h2, p2) {\n\t\tvar third = p2.subtract(p1).divide(3);\n\t\treturn h1.equals(third) && h2.negate().equals(third);\n\t}\n}, function(test, name) {\n\tthis[name] = function(epsilon) {\n\t\tvar seg1 = this._segment1,\n\t\t\tseg2 = this._segment2;\n\t\treturn test(seg1._point, seg1._handleOut, seg2._handleIn, seg2._point,\n\t\t\t\tepsilon);\n\t};\n\n\tthis.statics[name] = function(v, epsilon) {\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx3 = v[6], y3 = v[7];\n\t\treturn test(\n\t\t\t\tnew Point(x0, y0),\n\t\t\t\tnew Point(v[2] - x0, v[3] - y0),\n\t\t\t\tnew Point(v[4] - x3, v[5] - y3),\n\t\t\t\tnew Point(x3, y3), epsilon);\n\t};\n}, {\n\tstatics: {},\n\n\thasHandles: function() {\n\t\treturn !this._segment1._handleOut.isZero()\n\t\t\t\t|| !this._segment2._handleIn.isZero();\n\t},\n\n\thasLength: function(epsilon) {\n\t\treturn (!this.getPoint1().equals(this.getPoint2()) || this.hasHandles())\n\t\t\t\t&& this.getLength() > (epsilon || 0);\n\t},\n\n\tisCollinear: function(curve) {\n\t\treturn curve && this.isStraight() && curve.isStraight()\n\t\t\t\t&& this.getLine().isCollinear(curve.getLine());\n\t},\n\n\tisHorizontal: function() {\n\t\treturn this.isStraight() && Math.abs(this.getTangentAtTime(0.5).y)\n\t\t\t\t< 1e-8;\n\t},\n\n\tisVertical: function() {\n\t\treturn this.isStraight() && Math.abs(this.getTangentAtTime(0.5).x)\n\t\t\t\t< 1e-8;\n\t}\n}), {\n\tbeans: false,\n\n\tgetLocationAt: function(offset, _isTime) {\n\t\treturn this.getLocationAtTime(\n\t\t\t\t_isTime ? offset : this.getTimeAt(offset));\n\t},\n\n\tgetLocationAtTime: function(t) {\n\t\treturn t != null && t >= 0 && t <= 1\n\t\t\t\t? new CurveLocation(this, t)\n\t\t\t\t: null;\n\t},\n\n\tgetTimeAt: function(offset, start) {\n\t\treturn Curve.getTimeAt(this.getValues(), offset, start);\n\t},\n\n\tgetParameterAt: '#getTimeAt',\n\n\tgetTimesWithTangent: function () {\n\t\tvar tangent = Point.read(arguments);\n\t\treturn tangent.isZero()\n\t\t\t\t? []\n\t\t\t\t: Curve.getTimesWithTangent(this.getValues(), tangent);\n\t},\n\n\tgetOffsetAtTime: function(t) {\n\t\treturn this.getPartLength(0, t);\n\t},\n\n\tgetLocationOf: function() {\n\t\treturn this.getLocationAtTime(this.getTimeOf(Point.read(arguments)));\n\t},\n\n\tgetOffsetOf: function() {\n\t\tvar loc = this.getLocationOf.apply(this, arguments);\n\t\treturn loc ? loc.getOffset() : null;\n\t},\n\n\tgetTimeOf: function() {\n\t\treturn Curve.getTimeOf(this.getValues(), Point.read(arguments));\n\t},\n\n\tgetParameterOf: '#getTimeOf',\n\n\tgetNearestLocation: function() {\n\t\tvar point = Point.read(arguments),\n\t\t\tvalues = this.getValues(),\n\t\t\tt = Curve.getNearestTime(values, point),\n\t\t\tpt = Curve.getPoint(values, t);\n\t\treturn new CurveLocation(this, t, pt, null, point.getDistance(pt));\n\t},\n\n\tgetNearestPoint: function() {\n\t\tvar loc = this.getNearestLocation.apply(this, arguments);\n\t\treturn loc ? loc.getPoint() : loc;\n\t}\n\n},\nnew function() {\n\tvar methods = ['getPoint', 'getTangent', 'getNormal', 'getWeightedTangent',\n\t\t'getWeightedNormal', 'getCurvature'];\n\treturn Base.each(methods,\n\t\tfunction(name) {\n\t\t\tthis[name + 'At'] = function(location, _isTime) {\n\t\t\t\tvar values = this.getValues();\n\t\t\t\treturn Curve[name](values, _isTime ? location\n\t\t\t\t\t\t: Curve.getTimeAt(values, location));\n\t\t\t};\n\n\t\t\tthis[name + 'AtTime'] = function(time) {\n\t\t\t\treturn Curve[name](this.getValues(), time);\n\t\t\t};\n\t\t}, {\n\t\t\tstatics: {\n\t\t\t\t_evaluateMethods: methods\n\t\t\t}\n\t\t}\n\t);\n},\nnew function() {\n\n\tfunction getLengthIntegrand(v) {\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx1 = v[2], y1 = v[3],\n\t\t\tx2 = v[4], y2 = v[5],\n\t\t\tx3 = v[6], y3 = v[7],\n\n\t\t\tax = 9 * (x1 - x2) + 3 * (x3 - x0),\n\t\t\tbx = 6 * (x0 + x2) - 12 * x1,\n\t\t\tcx = 3 * (x1 - x0),\n\n\t\t\tay = 9 * (y1 - y2) + 3 * (y3 - y0),\n\t\t\tby = 6 * (y0 + y2) - 12 * y1,\n\t\t\tcy = 3 * (y1 - y0);\n\n\t\treturn function(t) {\n\t\t\tvar dx = (ax * t + bx) * t + cx,\n\t\t\t\tdy = (ay * t + by) * t + cy;\n\t\t\treturn Math.sqrt(dx * dx + dy * dy);\n\t\t};\n\t}\n\n\tfunction getIterations(a, b) {\n\t\treturn Math.max(2, Math.min(16, Math.ceil(Math.abs(b - a) * 32)));\n\t}\n\n\tfunction evaluate(v, t, type, normalized) {\n\t\tif (t == null || t < 0 || t > 1)\n\t\t\treturn null;\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx1 = v[2], y1 = v[3],\n\t\t\tx2 = v[4], y2 = v[5],\n\t\t\tx3 = v[6], y3 = v[7],\n\t\t\tisZero = Numerical.isZero;\n\t\tif (isZero(x1 - x0) && isZero(y1 - y0)) {\n\t\t\tx1 = x0;\n\t\t\ty1 = y0;\n\t\t}\n\t\tif (isZero(x2 - x3) && isZero(y2 - y3)) {\n\t\t\tx2 = x3;\n\t\t\ty2 = y3;\n\t\t}\n\t\tvar cx = 3 * (x1 - x0),\n\t\t\tbx = 3 * (x2 - x1) - cx,\n\t\t\tax = x3 - x0 - cx - bx,\n\t\t\tcy = 3 * (y1 - y0),\n\t\t\tby = 3 * (y2 - y1) - cy,\n\t\t\tay = y3 - y0 - cy - by,\n\t\t\tx, y;\n\t\tif (type === 0) {\n\t\t\tx = t === 0 ? x0 : t === 1 ? x3\n\t\t\t\t\t: ((ax * t + bx) * t + cx) * t + x0;\n\t\t\ty = t === 0 ? y0 : t === 1 ? y3\n\t\t\t\t\t: ((ay * t + by) * t + cy) * t + y0;\n\t\t} else {\n\t\t\tvar tMin = 1e-8,\n\t\t\t\ttMax = 1 - tMin;\n\t\t\tif (t < tMin) {\n\t\t\t\tx = cx;\n\t\t\t\ty = cy;\n\t\t\t} else if (t > tMax) {\n\t\t\t\tx = 3 * (x3 - x2);\n\t\t\t\ty = 3 * (y3 - y2);\n\t\t\t} else {\n\t\t\t\tx = (3 * ax * t + 2 * bx) * t + cx;\n\t\t\t\ty = (3 * ay * t + 2 * by) * t + cy;\n\t\t\t}\n\t\t\tif (normalized) {\n\t\t\t\tif (x === 0 && y === 0 && (t < tMin || t > tMax)) {\n\t\t\t\t\tx = x2 - x1;\n\t\t\t\t\ty = y2 - y1;\n\t\t\t\t}\n\t\t\t\tvar len = Math.sqrt(x * x + y * y);\n\t\t\t\tif (len) {\n\t\t\t\t\tx /= len;\n\t\t\t\t\ty /= len;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (type === 3) {\n\t\t\t\tvar x2 = 6 * ax * t + 2 * bx,\n\t\t\t\t\ty2 = 6 * ay * t + 2 * by,\n\t\t\t\t\td = Math.pow(x * x + y * y, 3 / 2);\n\t\t\t\tx = d !== 0 ? (x * y2 - y * x2) / d : 0;\n\t\t\t\ty = 0;\n\t\t\t}\n\t\t}\n\t\treturn type === 2 ? new Point(y, -x) : new Point(x, y);\n\t}\n\n\treturn { statics: {\n\n\t\tclassify: function(v) {\n\n\t\t\tvar x0 = v[0], y0 = v[1],\n\t\t\t\tx1 = v[2], y1 = v[3],\n\t\t\t\tx2 = v[4], y2 = v[5],\n\t\t\t\tx3 = v[6], y3 = v[7],\n\t\t\t\ta1 = x0 * (y3 - y2) + y0 * (x2 - x3) + x3 * y2 - y3 * x2,\n\t\t\t\ta2 = x1 * (y0 - y3) + y1 * (x3 - x0) + x0 * y3 - y0 * x3,\n\t\t\t\ta3 = x2 * (y1 - y0) + y2 * (x0 - x1) + x1 * y0 - y1 * x0,\n\t\t\t\td3 = 3 * a3,\n\t\t\t\td2 = d3 - a2,\n\t\t\t\td1 = d2 - a2 + a1,\n\t\t\t\tl = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3),\n\t\t\t\ts = l !== 0 ? 1 / l : 0,\n\t\t\t\tisZero = Numerical.isZero,\n\t\t\t\tserpentine = 'serpentine';\n\t\t\td1 *= s;\n\t\t\td2 *= s;\n\t\t\td3 *= s;\n\n\t\t\tfunction type(type, t1, t2) {\n\t\t\t\tvar hasRoots = t1 !== undefined,\n\t\t\t\t\tt1Ok = hasRoots && t1 > 0 && t1 < 1,\n\t\t\t\t\tt2Ok = hasRoots && t2 > 0 && t2 < 1;\n\t\t\t\tif (hasRoots && (!(t1Ok || t2Ok)\n\t\t\t\t\t\t|| type === 'loop' && !(t1Ok && t2Ok))) {\n\t\t\t\t\ttype = 'arch';\n\t\t\t\t\tt1Ok = t2Ok = false;\n\t\t\t\t}\n\t\t\t\treturn {\n\t\t\t\t\ttype: type,\n\t\t\t\t\troots: t1Ok || t2Ok\n\t\t\t\t\t\t\t? t1Ok && t2Ok\n\t\t\t\t\t\t\t\t? t1 < t2 ? [t1, t2] : [t2, t1]\n\t\t\t\t\t\t\t\t: [t1Ok ? t1 : t2]\n\t\t\t\t\t\t\t: null\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tif (isZero(d1)) {\n\t\t\t\treturn isZero(d2)\n\t\t\t\t\t\t? type(isZero(d3) ? 'line' : 'quadratic')\n\t\t\t\t\t\t: type(serpentine, d3 / (3 * d2));\n\t\t\t}\n\t\t\tvar d = 3 * d2 * d2 - 4 * d1 * d3;\n\t\t\tif (isZero(d)) {\n\t\t\t\treturn type('cusp', d2 / (2 * d1));\n\t\t\t}\n\t\t\tvar f1 = d > 0 ? Math.sqrt(d / 3) : Math.sqrt(-d),\n\t\t\t\tf2 = 2 * d1;\n\t\t\treturn type(d > 0 ? serpentine : 'loop',\n\t\t\t\t\t(d2 + f1) / f2,\n\t\t\t\t\t(d2 - f1) / f2);\n\t\t},\n\n\t\tgetLength: function(v, a, b, ds) {\n\t\t\tif (a === undefined)\n\t\t\t\ta = 0;\n\t\t\tif (b === undefined)\n\t\t\t\tb = 1;\n\t\t\tif (Curve.isStraight(v)) {\n\t\t\t\tvar c = v;\n\t\t\t\tif (b < 1) {\n\t\t\t\t\tc = Curve.subdivide(c, b)[0];\n\t\t\t\t\ta /= b;\n\t\t\t\t}\n\t\t\t\tif (a > 0) {\n\t\t\t\t\tc = Curve.subdivide(c, a)[1];\n\t\t\t\t}\n\t\t\t\tvar dx = c[6] - c[0],\n\t\t\t\t\tdy = c[7] - c[1];\n\t\t\t\treturn Math.sqrt(dx * dx + dy * dy);\n\t\t\t}\n\t\t\treturn Numerical.integrate(ds || getLengthIntegrand(v), a, b,\n\t\t\t\t\tgetIterations(a, b));\n\t\t},\n\n\t\tgetTimeAt: function(v, offset, start) {\n\t\t\tif (start === undefined)\n\t\t\t\tstart = offset < 0 ? 1 : 0;\n\t\t\tif (offset === 0)\n\t\t\t\treturn start;\n\t\t\tvar abs = Math.abs,\n\t\t\t\tepsilon = 1e-12,\n\t\t\t\tforward = offset > 0,\n\t\t\t\ta = forward ? start : 0,\n\t\t\t\tb = forward ? 1 : start,\n\t\t\t\tds = getLengthIntegrand(v),\n\t\t\t\trangeLength = Curve.getLength(v, a, b, ds),\n\t\t\t\tdiff = abs(offset) - rangeLength;\n\t\t\tif (abs(diff) < epsilon) {\n\t\t\t\treturn forward ? b : a;\n\t\t\t} else if (diff > epsilon) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tvar guess = offset / rangeLength,\n\t\t\t\tlength = 0;\n\t\t\tfunction f(t) {\n\t\t\t\tlength += Numerical.integrate(ds, start, t,\n\t\t\t\t\t\tgetIterations(start, t));\n\t\t\t\tstart = t;\n\t\t\t\treturn length - offset;\n\t\t\t}\n\t\t\treturn Numerical.findRoot(f, ds, start + guess, a, b, 32,\n\t\t\t\t\t1e-12);\n\t\t},\n\n\t\tgetPoint: function(v, t) {\n\t\t\treturn evaluate(v, t, 0, false);\n\t\t},\n\n\t\tgetTangent: function(v, t) {\n\t\t\treturn evaluate(v, t, 1, true);\n\t\t},\n\n\t\tgetWeightedTangent: function(v, t) {\n\t\t\treturn evaluate(v, t, 1, false);\n\t\t},\n\n\t\tgetNormal: function(v, t) {\n\t\t\treturn evaluate(v, t, 2, true);\n\t\t},\n\n\t\tgetWeightedNormal: function(v, t) {\n\t\t\treturn evaluate(v, t, 2, false);\n\t\t},\n\n\t\tgetCurvature: function(v, t) {\n\t\t\treturn evaluate(v, t, 3, false).x;\n\t\t},\n\n\t\tgetPeaks: function(v) {\n\t\t\tvar x0 = v[0], y0 = v[1],\n\t\t\t\tx1 = v[2], y1 = v[3],\n\t\t\t\tx2 = v[4], y2 = v[5],\n\t\t\t\tx3 = v[6], y3 = v[7],\n\t\t\t\tax = -x0 + 3 * x1 - 3 * x2 + x3,\n\t\t\t\tbx = 3 * x0 - 6 * x1 + 3 * x2,\n\t\t\t\tcx = -3 * x0 + 3 * x1,\n\t\t\t\tay = -y0 + 3 * y1 - 3 * y2 + y3,\n\t\t\t\tby = 3 * y0 - 6 * y1 + 3 * y2,\n\t\t\t\tcy = -3 * y0 + 3 * y1,\n\t\t\t\ttMin = 1e-8,\n\t\t\t\ttMax = 1 - tMin,\n\t\t\t\troots = [];\n\t\t\tNumerical.solveCubic(\n\t\t\t\t\t9 * (ax * ax + ay * ay),\n\t\t\t\t\t9 * (ax * bx + by * ay),\n\t\t\t\t\t2 * (bx * bx + by * by) + 3 * (cx * ax + cy * ay),\n\t\t\t\t\t(cx * bx + by * cy),\n\t\t\t\t\troots, tMin, tMax);\n\t\t\treturn roots.sort();\n\t\t}\n\t}};\n},\nnew function() {\n\n\tfunction addLocation(locations, include, c1, t1, c2, t2, overlap) {\n\t\tvar excludeStart = !overlap && c1.getPrevious() === c2,\n\t\t\texcludeEnd = !overlap && c1 !== c2 && c1.getNext() === c2,\n\t\t\ttMin = 1e-8,\n\t\t\ttMax = 1 - tMin;\n\t\tif (t1 !== null && t1 >= (excludeStart ? tMin : 0) &&\n\t\t\tt1 <= (excludeEnd ? tMax : 1)) {\n\t\t\tif (t2 !== null && t2 >= (excludeEnd ? tMin : 0) &&\n\t\t\t\tt2 <= (excludeStart ? tMax : 1)) {\n\t\t\t\tvar loc1 = new CurveLocation(c1, t1, null, overlap),\n\t\t\t\t\tloc2 = new CurveLocation(c2, t2, null, overlap);\n\t\t\t\tloc1._intersection = loc2;\n\t\t\t\tloc2._intersection = loc1;\n\t\t\t\tif (!include || include(loc1)) {\n\t\t\t\t\tCurveLocation.insert(locations, loc1, true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction addCurveIntersections(v1, v2, c1, c2, locations, include, flip,\n\t\t\trecursion, calls, tMin, tMax, uMin, uMax) {\n\t\tif (++calls >= 4096 || ++recursion >= 40)\n\t\t\treturn calls;\n\t\tvar fatLineEpsilon = 1e-9,\n\t\t\tq0x = v2[0], q0y = v2[1], q3x = v2[6], q3y = v2[7],\n\t\t\tgetSignedDistance = Line.getSignedDistance,\n\t\t\td1 = getSignedDistance(q0x, q0y, q3x, q3y, v2[2], v2[3]),\n\t\t\td2 = getSignedDistance(q0x, q0y, q3x, q3y, v2[4], v2[5]),\n\t\t\tfactor = d1 * d2 > 0 ? 3 / 4 : 4 / 9,\n\t\t\tdMin = factor * Math.min(0, d1, d2),\n\t\t\tdMax = factor * Math.max(0, d1, d2),\n\t\t\tdp0 = getSignedDistance(q0x, q0y, q3x, q3y, v1[0], v1[1]),\n\t\t\tdp1 = getSignedDistance(q0x, q0y, q3x, q3y, v1[2], v1[3]),\n\t\t\tdp2 = getSignedDistance(q0x, q0y, q3x, q3y, v1[4], v1[5]),\n\t\t\tdp3 = getSignedDistance(q0x, q0y, q3x, q3y, v1[6], v1[7]),\n\t\t\thull = getConvexHull(dp0, dp1, dp2, dp3),\n\t\t\ttop = hull[0],\n\t\t\tbottom = hull[1],\n\t\t\ttMinClip,\n\t\t\ttMaxClip;\n\t\tif (d1 === 0 && d2 === 0\n\t\t\t\t&& dp0 === 0 && dp1 === 0 && dp2 === 0 && dp3 === 0\n\t\t\t|| (tMinClip = clipConvexHull(top, bottom, dMin, dMax)) == null\n\t\t\t|| (tMaxClip = clipConvexHull(top.reverse(), bottom.reverse(),\n\t\t\t\tdMin, dMax)) == null)\n\t\t\treturn calls;\n\t\tvar tMinNew = tMin + (tMax - tMin) * tMinClip,\n\t\t\ttMaxNew = tMin + (tMax - tMin) * tMaxClip;\n\t\tif (Math.max(uMax - uMin, tMaxNew - tMinNew) < fatLineEpsilon) {\n\t\t\tvar t = (tMinNew + tMaxNew) / 2,\n\t\t\t\tu = (uMin + uMax) / 2;\n\t\t\taddLocation(locations, include,\n\t\t\t\t\tflip ? c2 : c1, flip ? u : t,\n\t\t\t\t\tflip ? c1 : c2, flip ? t : u);\n\t\t} else {\n\t\t\tv1 = Curve.getPart(v1, tMinClip, tMaxClip);\n\t\t\tvar uDiff = uMax - uMin;\n\t\t\tif (tMaxClip - tMinClip > 0.8) {\n\t\t\t\tif (tMaxNew - tMinNew > uDiff) {\n\t\t\t\t\tvar parts = Curve.subdivide(v1, 0.5),\n\t\t\t\t\t\tt = (tMinNew + tMaxNew) / 2;\n\t\t\t\t\tcalls = addCurveIntersections(\n\t\t\t\t\t\t\tv2, parts[0], c2, c1, locations, include, !flip,\n\t\t\t\t\t\t\trecursion, calls, uMin, uMax, tMinNew, t);\n\t\t\t\t\tcalls = addCurveIntersections(\n\t\t\t\t\t\t\tv2, parts[1], c2, c1, locations, include, !flip,\n\t\t\t\t\t\t\trecursion, calls, uMin, uMax, t, tMaxNew);\n\t\t\t\t} else {\n\t\t\t\t\tvar parts = Curve.subdivide(v2, 0.5),\n\t\t\t\t\t\tu = (uMin + uMax) / 2;\n\t\t\t\t\tcalls = addCurveIntersections(\n\t\t\t\t\t\t\tparts[0], v1, c2, c1, locations, include, !flip,\n\t\t\t\t\t\t\trecursion, calls, uMin, u, tMinNew, tMaxNew);\n\t\t\t\t\tcalls = addCurveIntersections(\n\t\t\t\t\t\t\tparts[1], v1, c2, c1, locations, include, !flip,\n\t\t\t\t\t\t\trecursion, calls, u, uMax, tMinNew, tMaxNew);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (uDiff === 0 || uDiff >= fatLineEpsilon) {\n\t\t\t\t\tcalls = addCurveIntersections(\n\t\t\t\t\t\t\tv2, v1, c2, c1, locations, include, !flip,\n\t\t\t\t\t\t\trecursion, calls, uMin, uMax, tMinNew, tMaxNew);\n\t\t\t\t} else {\n\t\t\t\t\tcalls = addCurveIntersections(\n\t\t\t\t\t\t\tv1, v2, c1, c2, locations, include, flip,\n\t\t\t\t\t\t\trecursion, calls, tMinNew, tMaxNew, uMin, uMax);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn calls;\n\t}\n\n\tfunction getConvexHull(dq0, dq1, dq2, dq3) {\n\t\tvar p0 = [ 0, dq0 ],\n\t\t\tp1 = [ 1 / 3, dq1 ],\n\t\t\tp2 = [ 2 / 3, dq2 ],\n\t\t\tp3 = [ 1, dq3 ],\n\t\t\tdist1 = dq1 - (2 * dq0 + dq3) / 3,\n\t\t\tdist2 = dq2 - (dq0 + 2 * dq3) / 3,\n\t\t\thull;\n\t\tif (dist1 * dist2 < 0) {\n\t\t\thull = [[p0, p1, p3], [p0, p2, p3]];\n\t\t} else {\n\t\t\tvar distRatio = dist1 / dist2;\n\t\t\thull = [\n\t\t\t\tdistRatio >= 2 ? [p0, p1, p3]\n\t\t\t\t: distRatio <= 0.5 ? [p0, p2, p3]\n\t\t\t\t: [p0, p1, p2, p3],\n\t\t\t\t[p0, p3]\n\t\t\t];\n\t\t}\n\t\treturn (dist1 || dist2) < 0 ? hull.reverse() : hull;\n\t}\n\n\tfunction clipConvexHull(hullTop, hullBottom, dMin, dMax) {\n\t\tif (hullTop[0][1] < dMin) {\n\t\t\treturn clipConvexHullPart(hullTop, true, dMin);\n\t\t} else if (hullBottom[0][1] > dMax) {\n\t\t\treturn clipConvexHullPart(hullBottom, false, dMax);\n\t\t} else {\n\t\t\treturn hullTop[0][0];\n\t\t}\n\t}\n\n\tfunction clipConvexHullPart(part, top, threshold) {\n\t\tvar px = part[0][0],\n\t\t\tpy = part[0][1];\n\t\tfor (var i = 1, l = part.length; i < l; i++) {\n\t\t\tvar qx = part[i][0],\n\t\t\t\tqy = part[i][1];\n\t\t\tif (top ? qy >= threshold : qy <= threshold) {\n\t\t\t\treturn qy === threshold ? qx\n\t\t\t\t\t\t: px + (threshold - py) * (qx - px) / (qy - py);\n\t\t\t}\n\t\t\tpx = qx;\n\t\t\tpy = qy;\n\t\t}\n\t\treturn null;\n\t}\n\n\tfunction getCurveLineIntersections(v, px, py, vx, vy) {\n\t\tvar isZero = Numerical.isZero;\n\t\tif (isZero(vx) && isZero(vy)) {\n\t\t\tvar t = Curve.getTimeOf(v, new Point(px, py));\n\t\t\treturn t === null ? [] : [t];\n\t\t}\n\t\tvar angle = Math.atan2(-vy, vx),\n\t\t\tsin = Math.sin(angle),\n\t\t\tcos = Math.cos(angle),\n\t\t\trv = [],\n\t\t\troots = [];\n\t\tfor (var i = 0; i < 8; i += 2) {\n\t\t\tvar x = v[i] - px,\n\t\t\t\ty = v[i + 1] - py;\n\t\t\trv.push(\n\t\t\t\tx * cos - y * sin,\n\t\t\t\tx * sin + y * cos);\n\t\t}\n\t\tCurve.solveCubic(rv, 1, 0, roots, 0, 1);\n\t\treturn roots;\n\t}\n\n\tfunction addCurveLineIntersections(v1, v2, c1, c2, locations, include,\n\t\t\tflip) {\n\t\tvar x1 = v2[0], y1 = v2[1],\n\t\t\tx2 = v2[6], y2 = v2[7],\n\t\t\troots = getCurveLineIntersections(v1, x1, y1, x2 - x1, y2 - y1);\n\t\tfor (var i = 0, l = roots.length; i < l; i++) {\n\t\t\tvar t1 = roots[i],\n\t\t\t\tp1 = Curve.getPoint(v1, t1),\n\t\t\t\tt2 = Curve.getTimeOf(v2, p1);\n\t\t\tif (t2 !== null) {\n\t\t\t\taddLocation(locations, include,\n\t\t\t\t\t\tflip ? c2 : c1, flip ? t2 : t1,\n\t\t\t\t\t\tflip ? c1 : c2, flip ? t1 : t2);\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction addLineIntersection(v1, v2, c1, c2, locations, include) {\n\t\tvar pt = Line.intersect(\n\t\t\t\tv1[0], v1[1], v1[6], v1[7],\n\t\t\t\tv2[0], v2[1], v2[6], v2[7]);\n\t\tif (pt) {\n\t\t\taddLocation(locations, include,\n\t\t\t\t\tc1, Curve.getTimeOf(v1, pt),\n\t\t\t\t\tc2, Curve.getTimeOf(v2, pt));\n\t\t}\n\t}\n\n\tfunction getCurveIntersections(v1, v2, c1, c2, locations, include) {\n\t\tvar epsilon = 1e-12,\n\t\t\tmin = Math.min,\n\t\t\tmax = Math.max;\n\n\t\tif (max(v1[0], v1[2], v1[4], v1[6]) + epsilon >\n\t\t\tmin(v2[0], v2[2], v2[4], v2[6]) &&\n\t\t\tmin(v1[0], v1[2], v1[4], v1[6]) - epsilon <\n\t\t\tmax(v2[0], v2[2], v2[4], v2[6]) &&\n\t\t\tmax(v1[1], v1[3], v1[5], v1[7]) + epsilon >\n\t\t\tmin(v2[1], v2[3], v2[5], v2[7]) &&\n\t\t\tmin(v1[1], v1[3], v1[5], v1[7]) - epsilon <\n\t\t\tmax(v2[1], v2[3], v2[5], v2[7])) {\n\t\t\tvar overlaps = getOverlaps(v1, v2);\n\t\t\tif (overlaps) {\n\t\t\t\tfor (var i = 0; i < 2; i++) {\n\t\t\t\t\tvar overlap = overlaps[i];\n\t\t\t\t\taddLocation(locations, include,\n\t\t\t\t\t\t\tc1, overlap[0],\n\t\t\t\t\t\t\tc2, overlap[1], true);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvar straight1 = Curve.isStraight(v1),\n\t\t\t\t\tstraight2 = Curve.isStraight(v2),\n\t\t\t\t\tstraight = straight1 && straight2,\n\t\t\t\t\tflip = straight1 && !straight2,\n\t\t\t\t\tbefore = locations.length;\n\t\t\t\t(straight\n\t\t\t\t\t? addLineIntersection\n\t\t\t\t\t: straight1 || straight2\n\t\t\t\t\t\t? addCurveLineIntersections\n\t\t\t\t\t\t: addCurveIntersections)(\n\t\t\t\t\t\t\tflip ? v2 : v1, flip ? v1 : v2,\n\t\t\t\t\t\t\tflip ? c2 : c1, flip ? c1 : c2,\n\t\t\t\t\t\t\tlocations, include, flip,\n\t\t\t\t\t\t\t0, 0, 0, 1, 0, 1);\n\t\t\t\tif (!straight || locations.length === before) {\n\t\t\t\t\tfor (var i = 0; i < 4; i++) {\n\t\t\t\t\t\tvar t1 = i >> 1,\n\t\t\t\t\t\t\tt2 = i & 1,\n\t\t\t\t\t\t\ti1 = t1 * 6,\n\t\t\t\t\t\t\ti2 = t2 * 6,\n\t\t\t\t\t\t\tp1 = new Point(v1[i1], v1[i1 + 1]),\n\t\t\t\t\t\t\tp2 = new Point(v2[i2], v2[i2 + 1]);\n\t\t\t\t\t\tif (p1.isClose(p2, epsilon)) {\n\t\t\t\t\t\t\taddLocation(locations, include,\n\t\t\t\t\t\t\t\t\tc1, t1,\n\t\t\t\t\t\t\t\t\tc2, t2);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn locations;\n\t}\n\n\tfunction getSelfIntersection(v1, c1, locations, include) {\n\t\tvar info = Curve.classify(v1);\n\t\tif (info.type === 'loop') {\n\t\t\tvar roots = info.roots;\n\t\t\taddLocation(locations, include,\n\t\t\t\t\tc1, roots[0],\n\t\t\t\t\tc1, roots[1]);\n\t\t}\n\t return locations;\n\t}\n\n\tfunction getIntersections(curves1, curves2, include, matrix1, matrix2,\n\t\t\t_returnFirst) {\n\t\tvar epsilon = 1e-7,\n\t\t\tself = !curves2;\n\t\tif (self)\n\t\t\tcurves2 = curves1;\n\t\tvar length1 = curves1.length,\n\t\t\tlength2 = curves2.length,\n\t\t\tvalues1 = new Array(length1),\n\t\t\tvalues2 = self ? values1 : new Array(length2),\n\t\t\tlocations = [];\n\n\t\tfor (var i = 0; i < length1; i++) {\n\t\t\tvalues1[i] = curves1[i].getValues(matrix1);\n\t\t}\n\t\tif (!self) {\n\t\t\tfor (var i = 0; i < length2; i++) {\n\t\t\t\tvalues2[i] = curves2[i].getValues(matrix2);\n\t\t\t}\n\t\t}\n\t\tvar boundsCollisions = CollisionDetection.findCurveBoundsCollisions(\n\t\t\t\tvalues1, values2, epsilon);\n\t\tfor (var index1 = 0; index1 < length1; index1++) {\n\t\t\tvar curve1 = curves1[index1],\n\t\t\t\tv1 = values1[index1];\n\t\t\tif (self) {\n\t\t\t\tgetSelfIntersection(v1, curve1, locations, include);\n\t\t\t}\n\t\t\tvar collisions1 = boundsCollisions[index1];\n\t\t\tif (collisions1) {\n\t\t\t\tfor (var j = 0; j < collisions1.length; j++) {\n\t\t\t\t\tif (_returnFirst && locations.length)\n\t\t\t\t\t\treturn locations;\n\t\t\t\t\tvar index2 = collisions1[j];\n\t\t\t\t\tif (!self || index2 > index1) {\n\t\t\t\t\t\tvar curve2 = curves2[index2],\n\t\t\t\t\t\t\tv2 = values2[index2];\n\t\t\t\t\t\tgetCurveIntersections(\n\t\t\t\t\t\t\t\tv1, v2, curve1, curve2, locations, include);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn locations;\n\t}\n\n\tfunction getOverlaps(v1, v2) {\n\n\t\tfunction getSquaredLineLength(v) {\n\t\t\tvar x = v[6] - v[0],\n\t\t\t\ty = v[7] - v[1];\n\t\t\treturn x * x + y * y;\n\t\t}\n\n\t\tvar abs = Math.abs,\n\t\t\tgetDistance = Line.getDistance,\n\t\t\ttimeEpsilon = 1e-8,\n\t\t\tgeomEpsilon = 1e-7,\n\t\t\tstraight1 = Curve.isStraight(v1),\n\t\t\tstraight2 = Curve.isStraight(v2),\n\t\t\tstraightBoth = straight1 && straight2,\n\t\t\tflip = getSquaredLineLength(v1) < getSquaredLineLength(v2),\n\t\t\tl1 = flip ? v2 : v1,\n\t\t\tl2 = flip ? v1 : v2,\n\t\t\tpx = l1[0], py = l1[1],\n\t\t\tvx = l1[6] - px, vy = l1[7] - py;\n\t\tif (getDistance(px, py, vx, vy, l2[0], l2[1], true) < geomEpsilon &&\n\t\t\tgetDistance(px, py, vx, vy, l2[6], l2[7], true) < geomEpsilon) {\n\t\t\tif (!straightBoth &&\n\t\t\t\tgetDistance(px, py, vx, vy, l1[2], l1[3], true) < geomEpsilon &&\n\t\t\t\tgetDistance(px, py, vx, vy, l1[4], l1[5], true) < geomEpsilon &&\n\t\t\t\tgetDistance(px, py, vx, vy, l2[2], l2[3], true) < geomEpsilon &&\n\t\t\t\tgetDistance(px, py, vx, vy, l2[4], l2[5], true) < geomEpsilon) {\n\t\t\t\tstraight1 = straight2 = straightBoth = true;\n\t\t\t}\n\t\t} else if (straightBoth) {\n\t\t\treturn null;\n\t\t}\n\t\tif (straight1 ^ straight2) {\n\t\t\treturn null;\n\t\t}\n\n\t\tvar v = [v1, v2],\n\t\t\tpairs = [];\n\t\tfor (var i = 0; i < 4 && pairs.length < 2; i++) {\n\t\t\tvar i1 = i & 1,\n\t\t\t\ti2 = i1 ^ 1,\n\t\t\t\tt1 = i >> 1,\n\t\t\t\tt2 = Curve.getTimeOf(v[i1], new Point(\n\t\t\t\t\tv[i2][t1 ? 6 : 0],\n\t\t\t\t\tv[i2][t1 ? 7 : 1]));\n\t\t\tif (t2 != null) {\n\t\t\t\tvar pair = i1 ? [t1, t2] : [t2, t1];\n\t\t\t\tif (!pairs.length ||\n\t\t\t\t\tabs(pair[0] - pairs[0][0]) > timeEpsilon &&\n\t\t\t\t\tabs(pair[1] - pairs[0][1]) > timeEpsilon) {\n\t\t\t\t\tpairs.push(pair);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (i > 2 && !pairs.length)\n\t\t\t\tbreak;\n\t\t}\n\t\tif (pairs.length !== 2) {\n\t\t\tpairs = null;\n\t\t} else if (!straightBoth) {\n\t\t\tvar o1 = Curve.getPart(v1, pairs[0][0], pairs[1][0]),\n\t\t\t\to2 = Curve.getPart(v2, pairs[0][1], pairs[1][1]);\n\t\t\tif (abs(o2[2] - o1[2]) > geomEpsilon ||\n\t\t\t\tabs(o2[3] - o1[3]) > geomEpsilon ||\n\t\t\t\tabs(o2[4] - o1[4]) > geomEpsilon ||\n\t\t\t\tabs(o2[5] - o1[5]) > geomEpsilon)\n\t\t\t\tpairs = null;\n\t\t}\n\t\treturn pairs;\n\t}\n\n\tfunction getTimesWithTangent(v, tangent) {\n\t\tvar x0 = v[0], y0 = v[1],\n\t\t\tx1 = v[2], y1 = v[3],\n\t\t\tx2 = v[4], y2 = v[5],\n\t\t\tx3 = v[6], y3 = v[7],\n\t\t\tnormalized = tangent.normalize(),\n\t\t\ttx = normalized.x,\n\t\t\tty = normalized.y,\n\t\t\tax = 3 * x3 - 9 * x2 + 9 * x1 - 3 * x0,\n\t\t\tay = 3 * y3 - 9 * y2 + 9 * y1 - 3 * y0,\n\t\t\tbx = 6 * x2 - 12 * x1 + 6 * x0,\n\t\t\tby = 6 * y2 - 12 * y1 + 6 * y0,\n\t\t\tcx = 3 * x1 - 3 * x0,\n\t\t\tcy = 3 * y1 - 3 * y0,\n\t\t\tden = 2 * ax * ty - 2 * ay * tx,\n\t\t\ttimes = [];\n\t\tif (Math.abs(den) < Numerical.CURVETIME_EPSILON) {\n\t\t\tvar num = ax * cy - ay * cx,\n\t\t\t\tden = ax * by - ay * bx;\n\t\t\tif (den != 0) {\n\t\t\t\tvar t = -num / den;\n\t\t\t\tif (t >= 0 && t <= 1) times.push(t);\n\t\t\t}\n\t\t} else {\n\t\t\tvar delta = (bx * bx - 4 * ax * cx) * ty * ty +\n\t\t\t\t(-2 * bx * by + 4 * ay * cx + 4 * ax * cy) * tx * ty +\n\t\t\t\t(by * by - 4 * ay * cy) * tx * tx,\n\t\t\t\tk = bx * ty - by * tx;\n\t\t\tif (delta >= 0 && den != 0) {\n\t\t\t\tvar d = Math.sqrt(delta),\n\t\t\t\t\tt0 = -(k + d) / den,\n\t\t\t\t\tt1 = (-k + d) / den;\n\t\t\t\tif (t0 >= 0 && t0 <= 1) times.push(t0);\n\t\t\t\tif (t1 >= 0 && t1 <= 1) times.push(t1);\n\t\t\t}\n\t\t}\n\t\treturn times;\n\t}\n\n\treturn {\n\t\tgetIntersections: function(curve) {\n\t\t\tvar v1 = this.getValues(),\n\t\t\t\tv2 = curve && curve !== this && curve.getValues();\n\t\t\treturn v2 ? getCurveIntersections(v1, v2, this, curve, [])\n\t\t\t\t\t : getSelfIntersection(v1, this, []);\n\t\t},\n\n\t\tstatics: {\n\t\t\tgetOverlaps: getOverlaps,\n\t\t\tgetIntersections: getIntersections,\n\t\t\tgetCurveLineIntersections: getCurveLineIntersections,\n\t\t\tgetTimesWithTangent: getTimesWithTangent\n\t\t}\n\t};\n});\n\nvar CurveLocation = Base.extend({\n\t_class: 'CurveLocation',\n\n\tinitialize: function CurveLocation(curve, time, point, _overlap, _distance) {\n\t\tif (time >= 0.99999999) {\n\t\t\tvar next = curve.getNext();\n\t\t\tif (next) {\n\t\t\t\ttime = 0;\n\t\t\t\tcurve = next;\n\t\t\t}\n\t\t}\n\t\tthis._setCurve(curve);\n\t\tthis._time = time;\n\t\tthis._point = point || curve.getPointAtTime(time);\n\t\tthis._overlap = _overlap;\n\t\tthis._distance = _distance;\n\t\tthis._intersection = this._next = this._previous = null;\n\t},\n\n\t_setPath: function(path) {\n\t\tthis._path = path;\n\t\tthis._version = path ? path._version : 0;\n\t},\n\n\t_setCurve: function(curve) {\n\t\tthis._setPath(curve._path);\n\t\tthis._curve = curve;\n\t\tthis._segment = null;\n\t\tthis._segment1 = curve._segment1;\n\t\tthis._segment2 = curve._segment2;\n\t},\n\n\t_setSegment: function(segment) {\n\t\tvar curve = segment.getCurve();\n\t\tif (curve) {\n\t\t\tthis._setCurve(curve);\n\t\t} else {\n\t\t\tthis._setPath(segment._path);\n\t\t\tthis._segment1 = segment;\n\t\t\tthis._segment2 = null;\n\t\t}\n\t\tthis._segment = segment;\n\t\tthis._time = segment === this._segment1 ? 0 : 1;\n\t\tthis._point = segment._point.clone();\n\t},\n\n\tgetSegment: function() {\n\t\tvar segment = this._segment;\n\t\tif (!segment) {\n\t\t\tvar curve = this.getCurve(),\n\t\t\t\ttime = this.getTime();\n\t\t\tif (time === 0) {\n\t\t\t\tsegment = curve._segment1;\n\t\t\t} else if (time === 1) {\n\t\t\t\tsegment = curve._segment2;\n\t\t\t} else if (time != null) {\n\t\t\t\tsegment = curve.getPartLength(0, time)\n\t\t\t\t\t< curve.getPartLength(time, 1)\n\t\t\t\t\t\t? curve._segment1\n\t\t\t\t\t\t: curve._segment2;\n\t\t\t}\n\t\t\tthis._segment = segment;\n\t\t}\n\t\treturn segment;\n\t},\n\n\tgetCurve: function() {\n\t\tvar path = this._path,\n\t\t\tthat = this;\n\t\tif (path && path._version !== this._version) {\n\t\t\tthis._time = this._offset = this._curveOffset = this._curve = null;\n\t\t}\n\n\t\tfunction trySegment(segment) {\n\t\t\tvar curve = segment && segment.getCurve();\n\t\t\tif (curve && (that._time = curve.getTimeOf(that._point)) != null) {\n\t\t\t\tthat._setCurve(curve);\n\t\t\t\treturn curve;\n\t\t\t}\n\t\t}\n\n\t\treturn this._curve\n\t\t\t|| trySegment(this._segment)\n\t\t\t|| trySegment(this._segment1)\n\t\t\t|| trySegment(this._segment2.getPrevious());\n\t},\n\n\tgetPath: function() {\n\t\tvar curve = this.getCurve();\n\t\treturn curve && curve._path;\n\t},\n\n\tgetIndex: function() {\n\t\tvar curve = this.getCurve();\n\t\treturn curve && curve.getIndex();\n\t},\n\n\tgetTime: function() {\n\t\tvar curve = this.getCurve(),\n\t\t\ttime = this._time;\n\t\treturn curve && time == null\n\t\t\t? this._time = curve.getTimeOf(this._point)\n\t\t\t: time;\n\t},\n\n\tgetParameter: '#getTime',\n\n\tgetPoint: function() {\n\t\treturn this._point;\n\t},\n\n\tgetOffset: function() {\n\t\tvar offset = this._offset;\n\t\tif (offset == null) {\n\t\t\toffset = 0;\n\t\t\tvar path = this.getPath(),\n\t\t\t\tindex = this.getIndex();\n\t\t\tif (path && index != null) {\n\t\t\t\tvar curves = path.getCurves();\n\t\t\t\tfor (var i = 0; i < index; i++)\n\t\t\t\t\toffset += curves[i].getLength();\n\t\t\t}\n\t\t\tthis._offset = offset += this.getCurveOffset();\n\t\t}\n\t\treturn offset;\n\t},\n\n\tgetCurveOffset: function() {\n\t\tvar offset = this._curveOffset;\n\t\tif (offset == null) {\n\t\t\tvar curve = this.getCurve(),\n\t\t\t\ttime = this.getTime();\n\t\t\tthis._curveOffset = offset = time != null && curve\n\t\t\t\t\t&& curve.getPartLength(0, time);\n\t\t}\n\t\treturn offset;\n\t},\n\n\tgetIntersection: function() {\n\t\treturn this._intersection;\n\t},\n\n\tgetDistance: function() {\n\t\treturn this._distance;\n\t},\n\n\tdivide: function() {\n\t\tvar curve = this.getCurve(),\n\t\t\tres = curve && curve.divideAtTime(this.getTime());\n\t\tif (res) {\n\t\t\tthis._setSegment(res._segment1);\n\t\t}\n\t\treturn res;\n\t},\n\n\tsplit: function() {\n\t\tvar curve = this.getCurve(),\n\t\t\tpath = curve._path,\n\t\t\tres = curve && curve.splitAtTime(this.getTime());\n\t\tif (res) {\n\t\t\tthis._setSegment(path.getLastSegment());\n\t\t}\n\t\treturn res;\n\t},\n\n\tequals: function(loc, _ignoreOther) {\n\t\tvar res = this === loc;\n\t\tif (!res && loc instanceof CurveLocation) {\n\t\t\tvar c1 = this.getCurve(),\n\t\t\t\tc2 = loc.getCurve(),\n\t\t\t\tp1 = c1._path,\n\t\t\t\tp2 = c2._path;\n\t\t\tif (p1 === p2) {\n\t\t\t\tvar abs = Math.abs,\n\t\t\t\t\tepsilon = 1e-7,\n\t\t\t\t\tdiff = abs(this.getOffset() - loc.getOffset()),\n\t\t\t\t\ti1 = !_ignoreOther && this._intersection,\n\t\t\t\t\ti2 = !_ignoreOther && loc._intersection;\n\t\t\t\tres = (diff < epsilon\n\t\t\t\t\t\t|| p1 && abs(p1.getLength() - diff) < epsilon)\n\t\t\t\t\t&& (!i1 && !i2 || i1 && i2 && i1.equals(i2, true));\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t},\n\n\ttoString: function() {\n\t\tvar parts = [],\n\t\t\tpoint = this.getPoint(),\n\t\t\tf = Formatter.instance;\n\t\tif (point)\n\t\t\tparts.push('point: ' + point);\n\t\tvar index = this.getIndex();\n\t\tif (index != null)\n\t\t\tparts.push('index: ' + index);\n\t\tvar time = this.getTime();\n\t\tif (time != null)\n\t\t\tparts.push('time: ' + f.number(time));\n\t\tif (this._distance != null)\n\t\t\tparts.push('distance: ' + f.number(this._distance));\n\t\treturn '{ ' + parts.join(', ') + ' }';\n\t},\n\n\tisTouching: function() {\n\t\tvar inter = this._intersection;\n\t\tif (inter && this.getTangent().isCollinear(inter.getTangent())) {\n\t\t\tvar curve1 = this.getCurve(),\n\t\t\t\tcurve2 = inter.getCurve();\n\t\t\treturn !(curve1.isStraight() && curve2.isStraight()\n\t\t\t\t\t&& curve1.getLine().intersect(curve2.getLine()));\n\t\t}\n\t\treturn false;\n\t},\n\n\tisCrossing: function() {\n\t\tvar inter = this._intersection;\n\t\tif (!inter)\n\t\t\treturn false;\n\t\tvar t1 = this.getTime(),\n\t\t\tt2 = inter.getTime(),\n\t\t\ttMin = 1e-8,\n\t\t\ttMax = 1 - tMin,\n\t\t\tt1Inside = t1 >= tMin && t1 <= tMax,\n\t\t\tt2Inside = t2 >= tMin && t2 <= tMax;\n\t\tif (t1Inside && t2Inside)\n\t\t\treturn !this.isTouching();\n\t\tvar c2 = this.getCurve(),\n\t\t\tc1 = c2 && t1 < tMin ? c2.getPrevious() : c2,\n\t\t\tc4 = inter.getCurve(),\n\t\t\tc3 = c4 && t2 < tMin ? c4.getPrevious() : c4;\n\t\tif (t1 > tMax)\n\t\t\tc2 = c2.getNext();\n\t\tif (t2 > tMax)\n\t\t\tc4 = c4.getNext();\n\t\tif (!c1 || !c2 || !c3 || !c4)\n\t\t\treturn false;\n\n\t\tvar offsets = [];\n\n\t\tfunction addOffsets(curve, end) {\n\t\t\tvar v = curve.getValues(),\n\t\t\t\troots = Curve.classify(v).roots || Curve.getPeaks(v),\n\t\t\t\tcount = roots.length,\n\t\t\t\toffset = Curve.getLength(v,\n\t\t\t\t\tend && count ? roots[count - 1] : 0,\n\t\t\t\t\t!end && count ? roots[0] : 1);\n\t\t\toffsets.push(count ? offset : offset / 32);\n\t\t}\n\n\t\tfunction isInRange(angle, min, max) {\n\t\t\treturn min < max\n\t\t\t\t\t? angle > min && angle < max\n\t\t\t\t\t: angle > min || angle < max;\n\t\t}\n\n\t\tif (!t1Inside) {\n\t\t\taddOffsets(c1, true);\n\t\t\taddOffsets(c2, false);\n\t\t}\n\t\tif (!t2Inside) {\n\t\t\taddOffsets(c3, true);\n\t\t\taddOffsets(c4, false);\n\t\t}\n\t\tvar pt = this.getPoint(),\n\t\t\toffset = Math.min.apply(Math, offsets),\n\t\t\tv2 = t1Inside ? c2.getTangentAtTime(t1)\n\t\t\t\t\t: c2.getPointAt(offset).subtract(pt),\n\t\t\tv1 = t1Inside ? v2.negate()\n\t\t\t\t\t: c1.getPointAt(-offset).subtract(pt),\n\t\t\tv4 = t2Inside ? c4.getTangentAtTime(t2)\n\t\t\t\t\t: c4.getPointAt(offset).subtract(pt),\n\t\t\tv3 = t2Inside ? v4.negate()\n\t\t\t\t\t: c3.getPointAt(-offset).subtract(pt),\n\t\t\ta1 = v1.getAngle(),\n\t\t\ta2 = v2.getAngle(),\n\t\t\ta3 = v3.getAngle(),\n\t\t\ta4 = v4.getAngle();\n\t\treturn !!(t1Inside\n\t\t\t\t? (isInRange(a1, a3, a4) ^ isInRange(a2, a3, a4)) &&\n\t\t\t\t (isInRange(a1, a4, a3) ^ isInRange(a2, a4, a3))\n\t\t\t\t: (isInRange(a3, a1, a2) ^ isInRange(a4, a1, a2)) &&\n\t\t\t\t (isInRange(a3, a2, a1) ^ isInRange(a4, a2, a1)));\n\t},\n\n\thasOverlap: function() {\n\t\treturn !!this._overlap;\n\t}\n}, Base.each(Curve._evaluateMethods, function(name) {\n\tvar get = name + 'At';\n\tthis[name] = function() {\n\t\tvar curve = this.getCurve(),\n\t\t\ttime = this.getTime();\n\t\treturn time != null && curve && curve[get](time, true);\n\t};\n}, {\n\tpreserve: true\n}),\nnew function() {\n\n\tfunction insert(locations, loc, merge) {\n\t\tvar length = locations.length,\n\t\t\tl = 0,\n\t\t\tr = length - 1;\n\n\t\tfunction search(index, dir) {\n\t\t\tfor (var i = index + dir; i >= -1 && i <= length; i += dir) {\n\t\t\t\tvar loc2 = locations[((i % length) + length) % length];\n\t\t\t\tif (!loc.getPoint().isClose(loc2.getPoint(),\n\t\t\t\t\t\t1e-7))\n\t\t\t\t\tbreak;\n\t\t\t\tif (loc.equals(loc2))\n\t\t\t\t\treturn loc2;\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\n\t\twhile (l <= r) {\n\t\t\tvar m = (l + r) >>> 1,\n\t\t\t\tloc2 = locations[m],\n\t\t\t\tfound;\n\t\t\tif (merge && (found = loc.equals(loc2) ? loc2\n\t\t\t\t\t: (search(m, -1) || search(m, 1)))) {\n\t\t\t\tif (loc._overlap) {\n\t\t\t\t\tfound._overlap = found._intersection._overlap = true;\n\t\t\t\t}\n\t\t\t\treturn found;\n\t\t\t}\n\t\tvar path1 = loc.getPath(),\n\t\t\tpath2 = loc2.getPath(),\n\t\t\tdiff = path1 !== path2\n\t\t\t\t? path1._id - path2._id\n\t\t\t\t: (loc.getIndex() + loc.getTime())\n\t\t\t\t- (loc2.getIndex() + loc2.getTime());\n\t\t\tif (diff < 0) {\n\t\t\t\tr = m - 1;\n\t\t\t} else {\n\t\t\t\tl = m + 1;\n\t\t\t}\n\t\t}\n\t\tlocations.splice(l, 0, loc);\n\t\treturn loc;\n\t}\n\n\treturn { statics: {\n\t\tinsert: insert,\n\n\t\texpand: function(locations) {\n\t\t\tvar expanded = locations.slice();\n\t\t\tfor (var i = locations.length - 1; i >= 0; i--) {\n\t\t\t\tinsert(expanded, locations[i]._intersection, false);\n\t\t\t}\n\t\t\treturn expanded;\n\t\t}\n\t}};\n});\n\nvar PathItem = Item.extend({\n\t_class: 'PathItem',\n\t_selectBounds: false,\n\t_canScaleStroke: true,\n\tbeans: true,\n\n\tinitialize: function PathItem() {\n\t},\n\n\tstatics: {\n\t\tcreate: function(arg) {\n\t\t\tvar data,\n\t\t\t\tsegments,\n\t\t\t\tcompound;\n\t\t\tif (Base.isPlainObject(arg)) {\n\t\t\t\tsegments = arg.segments;\n\t\t\t\tdata = arg.pathData;\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tsegments = arg;\n\t\t\t} else if (typeof arg === 'string') {\n\t\t\t\tdata = arg;\n\t\t\t}\n\t\t\tif (segments) {\n\t\t\t\tvar first = segments[0];\n\t\t\t\tcompound = first && Array.isArray(first[0]);\n\t\t\t} else if (data) {\n\t\t\t\tcompound = (data.match(/m/gi) || []).length > 1\n\t\t\t\t\t\t|| /z\\s*\\S+/i.test(data);\n\t\t\t}\n\t\t\tvar ctor = compound ? CompoundPath : Path;\n\t\t\treturn new ctor(arg);\n\t\t}\n\t},\n\n\t_asPathItem: function() {\n\t\treturn this;\n\t},\n\n\tisClockwise: function() {\n\t\treturn this.getArea() >= 0;\n\t},\n\n\tsetClockwise: function(clockwise) {\n\t\tif (this.isClockwise() != (clockwise = !!clockwise))\n\t\t\tthis.reverse();\n\t},\n\n\tsetPathData: function(data) {\n\n\t\tvar parts = data && data.match(/[mlhvcsqtaz][^mlhvcsqtaz]*/ig),\n\t\t\tcoords,\n\t\t\trelative = false,\n\t\t\tprevious,\n\t\t\tcontrol,\n\t\t\tcurrent = new Point(),\n\t\t\tstart = new Point();\n\n\t\tfunction getCoord(index, coord) {\n\t\t\tvar val = +coords[index];\n\t\t\tif (relative)\n\t\t\t\tval += current[coord];\n\t\t\treturn val;\n\t\t}\n\n\t\tfunction getPoint(index) {\n\t\t\treturn new Point(\n\t\t\t\tgetCoord(index, 'x'),\n\t\t\t\tgetCoord(index + 1, 'y')\n\t\t\t);\n\t\t}\n\n\t\tthis.clear();\n\n\t\tfor (var i = 0, l = parts && parts.length; i < l; i++) {\n\t\t\tvar part = parts[i],\n\t\t\t\tcommand = part[0],\n\t\t\t\tlower = command.toLowerCase();\n\t\t\tcoords = part.match(/[+-]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?/g);\n\t\t\tvar length = coords && coords.length;\n\t\t\trelative = command === lower;\n\t\t\tif (previous === 'z' && !/[mz]/.test(lower))\n\t\t\t\tthis.moveTo(current);\n\t\t\tswitch (lower) {\n\t\t\tcase 'm':\n\t\t\tcase 'l':\n\t\t\t\tvar move = lower === 'm';\n\t\t\t\tfor (var j = 0; j < length; j += 2) {\n\t\t\t\t\tthis[move ? 'moveTo' : 'lineTo'](current = getPoint(j));\n\t\t\t\t\tif (move) {\n\t\t\t\t\t\tstart = current;\n\t\t\t\t\t\tmove = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcontrol = current;\n\t\t\t\tbreak;\n\t\t\tcase 'h':\n\t\t\tcase 'v':\n\t\t\t\tvar coord = lower === 'h' ? 'x' : 'y';\n\t\t\t\tcurrent = current.clone();\n\t\t\t\tfor (var j = 0; j < length; j++) {\n\t\t\t\t\tcurrent[coord] = getCoord(j, coord);\n\t\t\t\t\tthis.lineTo(current);\n\t\t\t\t}\n\t\t\t\tcontrol = current;\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tfor (var j = 0; j < length; j += 6) {\n\t\t\t\t\tthis.cubicCurveTo(\n\t\t\t\t\t\t\tgetPoint(j),\n\t\t\t\t\t\t\tcontrol = getPoint(j + 2),\n\t\t\t\t\t\t\tcurrent = getPoint(j + 4));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 's':\n\t\t\t\tfor (var j = 0; j < length; j += 4) {\n\t\t\t\t\tthis.cubicCurveTo(\n\t\t\t\t\t\t\t/[cs]/.test(previous)\n\t\t\t\t\t\t\t\t\t? current.multiply(2).subtract(control)\n\t\t\t\t\t\t\t\t\t: current,\n\t\t\t\t\t\t\tcontrol = getPoint(j),\n\t\t\t\t\t\t\tcurrent = getPoint(j + 2));\n\t\t\t\t\tprevious = lower;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'q':\n\t\t\t\tfor (var j = 0; j < length; j += 4) {\n\t\t\t\t\tthis.quadraticCurveTo(\n\t\t\t\t\t\t\tcontrol = getPoint(j),\n\t\t\t\t\t\t\tcurrent = getPoint(j + 2));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\t\tfor (var j = 0; j < length; j += 2) {\n\t\t\t\t\tthis.quadraticCurveTo(\n\t\t\t\t\t\t\tcontrol = (/[qt]/.test(previous)\n\t\t\t\t\t\t\t\t\t? current.multiply(2).subtract(control)\n\t\t\t\t\t\t\t\t\t: current),\n\t\t\t\t\t\t\tcurrent = getPoint(j));\n\t\t\t\t\tprevious = lower;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'a':\n\t\t\t\tfor (var j = 0; j < length; j += 7) {\n\t\t\t\t\tthis.arcTo(current = getPoint(j + 5),\n\t\t\t\t\t\t\tnew Size(+coords[j], +coords[j + 1]),\n\t\t\t\t\t\t\t+coords[j + 2], +coords[j + 4], +coords[j + 3]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'z':\n\t\t\t\tthis.closePath(1e-12);\n\t\t\t\tcurrent = start;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tprevious = lower;\n\t\t}\n\t},\n\n\t_canComposite: function() {\n\t\treturn !(this.hasFill() && this.hasStroke());\n\t},\n\n\t_contains: function(point) {\n\t\tvar winding = point.isInside(\n\t\t\t\tthis.getBounds({ internal: true, handle: true }))\n\t\t\t\t\t? this._getWinding(point)\n\t\t\t\t\t: {};\n\t\treturn winding.onPath || !!(this.getFillRule() === 'evenodd'\n\t\t\t\t? winding.windingL & 1 || winding.windingR & 1\n\t\t\t\t: winding.winding);\n\t},\n\n\tgetIntersections: function(path, include, _matrix, _returnFirst) {\n\t\tvar self = this === path || !path,\n\t\t\tmatrix1 = this._matrix._orNullIfIdentity(),\n\t\t\tmatrix2 = self ? matrix1\n\t\t\t\t: (_matrix || path._matrix)._orNullIfIdentity();\n\t\treturn self || this.getBounds(matrix1).intersects(\n\t\t\t\tpath.getBounds(matrix2), 1e-12)\n\t\t\t\t? Curve.getIntersections(\n\t\t\t\t\t\tthis.getCurves(), !self && path.getCurves(), include,\n\t\t\t\t\t\tmatrix1, matrix2, _returnFirst)\n\t\t\t\t: [];\n\t},\n\n\tgetCrossings: function(path) {\n\t\treturn this.getIntersections(path, function(inter) {\n\t\t\treturn inter.isCrossing();\n\t\t});\n\t},\n\n\tgetNearestLocation: function() {\n\t\tvar point = Point.read(arguments),\n\t\t\tcurves = this.getCurves(),\n\t\t\tminDist = Infinity,\n\t\t\tminLoc = null;\n\t\tfor (var i = 0, l = curves.length; i < l; i++) {\n\t\t\tvar loc = curves[i].getNearestLocation(point);\n\t\t\tif (loc._distance < minDist) {\n\t\t\t\tminDist = loc._distance;\n\t\t\t\tminLoc = loc;\n\t\t\t}\n\t\t}\n\t\treturn minLoc;\n\t},\n\n\tgetNearestPoint: function() {\n\t\tvar loc = this.getNearestLocation.apply(this, arguments);\n\t\treturn loc ? loc.getPoint() : loc;\n\t},\n\n\tinterpolate: function(from, to, factor) {\n\t\tvar isPath = !this._children,\n\t\t\tname = isPath ? '_segments' : '_children',\n\t\t\titemsFrom = from[name],\n\t\t\titemsTo = to[name],\n\t\t\titems = this[name];\n\t\tif (!itemsFrom || !itemsTo || itemsFrom.length !== itemsTo.length) {\n\t\t\tthrow new Error('Invalid operands in interpolate() call: ' +\n\t\t\t\t\tfrom + ', ' + to);\n\t\t}\n\t\tvar current = items.length,\n\t\t\tlength = itemsTo.length;\n\t\tif (current < length) {\n\t\t\tvar ctor = isPath ? Segment : Path;\n\t\t\tfor (var i = current; i < length; i++) {\n\t\t\t\tthis.add(new ctor());\n\t\t\t}\n\t\t} else if (current > length) {\n\t\t\tthis[isPath ? 'removeSegments' : 'removeChildren'](length, current);\n\t\t}\n\t\tfor (var i = 0; i < length; i++) {\n\t\t\titems[i].interpolate(itemsFrom[i], itemsTo[i], factor);\n\t\t}\n\t\tif (isPath) {\n\t\t\tthis.setClosed(from._closed);\n\t\t\tthis._changed(9);\n\t\t}\n\t},\n\n\tcompare: function(path) {\n\t\tvar ok = false;\n\t\tif (path) {\n\t\t\tvar paths1 = this._children || [this],\n\t\t\t\tpaths2 = path._children ? path._children.slice() : [path],\n\t\t\t\tlength1 = paths1.length,\n\t\t\t\tlength2 = paths2.length,\n\t\t\t\tmatched = [],\n\t\t\t\tcount = 0;\n\t\t\tok = true;\n\t\t\tvar boundsOverlaps = CollisionDetection.findItemBoundsCollisions(paths1, paths2, Numerical.GEOMETRIC_EPSILON);\n\t\t\tfor (var i1 = length1 - 1; i1 >= 0 && ok; i1--) {\n\t\t\t\tvar path1 = paths1[i1];\n\t\t\t\tok = false;\n\t\t\t\tvar pathBoundsOverlaps = boundsOverlaps[i1];\n\t\t\t\tif (pathBoundsOverlaps) {\n\t\t\t\t\tfor (var i2 = pathBoundsOverlaps.length - 1; i2 >= 0 && !ok; i2--) {\n\t\t\t\t\t\tif (path1.compare(paths2[pathBoundsOverlaps[i2]])) {\n\t\t\t\t\t\t\tif (!matched[pathBoundsOverlaps[i2]]) {\n\t\t\t\t\t\t\t\tmatched[pathBoundsOverlaps[i2]] = true;\n\t\t\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tok = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tok = ok && count === length2;\n\t\t}\n\t\treturn ok;\n\t},\n\n});\n\nvar Path = PathItem.extend({\n\t_class: 'Path',\n\t_serializeFields: {\n\t\tsegments: [],\n\t\tclosed: false\n\t},\n\n\tinitialize: function Path(arg) {\n\t\tthis._closed = false;\n\t\tthis._segments = [];\n\t\tthis._version = 0;\n\t\tvar args = arguments,\n\t\t\tsegments = Array.isArray(arg)\n\t\t\t? typeof arg[0] === 'object'\n\t\t\t\t? arg\n\t\t\t\t: args\n\t\t\t: arg && (arg.size === undefined && (arg.x !== undefined\n\t\t\t\t\t|| arg.point !== undefined))\n\t\t\t\t? args\n\t\t\t\t: null;\n\t\tif (segments && segments.length > 0) {\n\t\t\tthis.setSegments(segments);\n\t\t} else {\n\t\t\tthis._curves = undefined;\n\t\t\tthis._segmentSelection = 0;\n\t\t\tif (!segments && typeof arg === 'string') {\n\t\t\t\tthis.setPathData(arg);\n\t\t\t\targ = null;\n\t\t\t}\n\t\t}\n\t\tthis._initialize(!segments && arg);\n\t},\n\n\t_equals: function(item) {\n\t\treturn this._closed === item._closed\n\t\t\t\t&& Base.equals(this._segments, item._segments);\n\t},\n\n\tcopyContent: function(source) {\n\t\tthis.setSegments(source._segments);\n\t\tthis._closed = source._closed;\n\t},\n\n\t_changed: function _changed(flags) {\n\t\t_changed.base.call(this, flags);\n\t\tif (flags & 8) {\n\t\t\tthis._length = this._area = undefined;\n\t\t\tif (flags & 32) {\n\t\t\t\tthis._version++;\n\t\t\t} else if (this._curves) {\n\t\t\t for (var i = 0, l = this._curves.length; i < l; i++)\n\t\t\t\t\tthis._curves[i]._changed();\n\t\t\t}\n\t\t} else if (flags & 64) {\n\t\t\tthis._bounds = undefined;\n\t\t}\n\t},\n\n\tgetStyle: function() {\n\t\tvar parent = this._parent;\n\t\treturn (parent instanceof CompoundPath ? parent : this)._style;\n\t},\n\n\tgetSegments: function() {\n\t\treturn this._segments;\n\t},\n\n\tsetSegments: function(segments) {\n\t\tvar fullySelected = this.isFullySelected(),\n\t\t\tlength = segments && segments.length;\n\t\tthis._segments.length = 0;\n\t\tthis._segmentSelection = 0;\n\t\tthis._curves = undefined;\n\t\tif (length) {\n\t\t\tvar last = segments[length - 1];\n\t\t\tif (typeof last === 'boolean') {\n\t\t\t\tthis.setClosed(last);\n\t\t\t\tlength--;\n\t\t\t}\n\t\t\tthis._add(Segment.readList(segments, 0, {}, length));\n\t\t}\n\t\tif (fullySelected)\n\t\t\tthis.setFullySelected(true);\n\t},\n\n\tgetFirstSegment: function() {\n\t\treturn this._segments[0];\n\t},\n\n\tgetLastSegment: function() {\n\t\treturn this._segments[this._segments.length - 1];\n\t},\n\n\tgetCurves: function() {\n\t\tvar curves = this._curves,\n\t\t\tsegments = this._segments;\n\t\tif (!curves) {\n\t\t\tvar length = this._countCurves();\n\t\t\tcurves = this._curves = new Array(length);\n\t\t\tfor (var i = 0; i < length; i++)\n\t\t\t\tcurves[i] = new Curve(this, segments[i],\n\t\t\t\t\tsegments[i + 1] || segments[0]);\n\t\t}\n\t\treturn curves;\n\t},\n\n\tgetFirstCurve: function() {\n\t\treturn this.getCurves()[0];\n\t},\n\n\tgetLastCurve: function() {\n\t\tvar curves = this.getCurves();\n\t\treturn curves[curves.length - 1];\n\t},\n\n\tisClosed: function() {\n\t\treturn this._closed;\n\t},\n\n\tsetClosed: function(closed) {\n\t\tif (this._closed != (closed = !!closed)) {\n\t\t\tthis._closed = closed;\n\t\t\tif (this._curves) {\n\t\t\t\tvar length = this._curves.length = this._countCurves();\n\t\t\t\tif (closed)\n\t\t\t\t\tthis._curves[length - 1] = new Curve(this,\n\t\t\t\t\t\tthis._segments[length - 1], this._segments[0]);\n\t\t\t}\n\t\t\tthis._changed(41);\n\t\t}\n\t}\n}, {\n\tbeans: true,\n\n\tgetPathData: function(_matrix, _precision) {\n\t\tvar segments = this._segments,\n\t\t\tlength = segments.length,\n\t\t\tf = new Formatter(_precision),\n\t\t\tcoords = new Array(6),\n\t\t\tfirst = true,\n\t\t\tcurX, curY,\n\t\t\tprevX, prevY,\n\t\t\tinX, inY,\n\t\t\toutX, outY,\n\t\t\tparts = [];\n\n\t\tfunction addSegment(segment, skipLine) {\n\t\t\tsegment._transformCoordinates(_matrix, coords);\n\t\t\tcurX = coords[0];\n\t\t\tcurY = coords[1];\n\t\t\tif (first) {\n\t\t\t\tparts.push('M' + f.pair(curX, curY));\n\t\t\t\tfirst = false;\n\t\t\t} else {\n\t\t\t\tinX = coords[2];\n\t\t\t\tinY = coords[3];\n\t\t\t\tif (inX === curX && inY === curY\n\t\t\t\t\t\t&& outX === prevX && outY === prevY) {\n\t\t\t\t\tif (!skipLine) {\n\t\t\t\t\t\tvar dx = curX - prevX,\n\t\t\t\t\t\t\tdy = curY - prevY;\n\t\t\t\t\t\tparts.push(\n\t\t\t\t\t\t\t dx === 0 ? 'v' + f.number(dy)\n\t\t\t\t\t\t\t: dy === 0 ? 'h' + f.number(dx)\n\t\t\t\t\t\t\t: 'l' + f.pair(dx, dy));\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tparts.push('c' + f.pair(outX - prevX, outY - prevY)\n\t\t\t\t\t\t\t + ' ' + f.pair( inX - prevX, inY - prevY)\n\t\t\t\t\t\t\t + ' ' + f.pair(curX - prevX, curY - prevY));\n\t\t\t\t}\n\t\t\t}\n\t\t\tprevX = curX;\n\t\t\tprevY = curY;\n\t\t\toutX = coords[4];\n\t\t\toutY = coords[5];\n\t\t}\n\n\t\tif (!length)\n\t\t\treturn '';\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\taddSegment(segments[i]);\n\t\tif (this._closed && length > 0) {\n\t\t\taddSegment(segments[0], true);\n\t\t\tparts.push('z');\n\t\t}\n\t\treturn parts.join('');\n\t},\n\n\tisEmpty: function() {\n\t\treturn !this._segments.length;\n\t},\n\n\t_transformContent: function(matrix) {\n\t\tvar segments = this._segments,\n\t\t\tcoords = new Array(6);\n\t\tfor (var i = 0, l = segments.length; i < l; i++)\n\t\t\tsegments[i]._transformCoordinates(matrix, coords, true);\n\t\treturn true;\n\t},\n\n\t_add: function(segs, index) {\n\t\tvar segments = this._segments,\n\t\t\tcurves = this._curves,\n\t\t\tamount = segs.length,\n\t\t\tappend = index == null,\n\t\t\tindex = append ? segments.length : index;\n\t\tfor (var i = 0; i < amount; i++) {\n\t\t\tvar segment = segs[i];\n\t\t\tif (segment._path)\n\t\t\t\tsegment = segs[i] = segment.clone();\n\t\t\tsegment._path = this;\n\t\t\tsegment._index = index + i;\n\t\t\tif (segment._selection)\n\t\t\t\tthis._updateSelection(segment, 0, segment._selection);\n\t\t}\n\t\tif (append) {\n\t\t\tBase.push(segments, segs);\n\t\t} else {\n\t\t\tsegments.splice.apply(segments, [index, 0].concat(segs));\n\t\t\tfor (var i = index + amount, l = segments.length; i < l; i++)\n\t\t\t\tsegments[i]._index = i;\n\t\t}\n\t\tif (curves) {\n\t\t\tvar total = this._countCurves(),\n\t\t\t\tstart = index > 0 && index + amount - 1 === total ? index - 1\n\t\t\t\t\t: index,\n\t\t\t\tinsert = start,\n\t\t\t\tend = Math.min(start + amount, total);\n\t\t\tif (segs._curves) {\n\t\t\t\tcurves.splice.apply(curves, [start, 0].concat(segs._curves));\n\t\t\t\tinsert += segs._curves.length;\n\t\t\t}\n\t\t\tfor (var i = insert; i < end; i++)\n\t\t\t\tcurves.splice(i, 0, new Curve(this, null, null));\n\t\t\tthis._adjustCurves(start, end);\n\t\t}\n\t\tthis._changed(41);\n\t\treturn segs;\n\t},\n\n\t_adjustCurves: function(start, end) {\n\t\tvar segments = this._segments,\n\t\t\tcurves = this._curves,\n\t\t\tcurve;\n\t\tfor (var i = start; i < end; i++) {\n\t\t\tcurve = curves[i];\n\t\t\tcurve._path = this;\n\t\t\tcurve._segment1 = segments[i];\n\t\t\tcurve._segment2 = segments[i + 1] || segments[0];\n\t\t\tcurve._changed();\n\t\t}\n\t\tif (curve = curves[this._closed && !start ? segments.length - 1\n\t\t\t\t: start - 1]) {\n\t\t\tcurve._segment2 = segments[start] || segments[0];\n\t\t\tcurve._changed();\n\t\t}\n\t\tif (curve = curves[end]) {\n\t\t\tcurve._segment1 = segments[end];\n\t\t\tcurve._changed();\n\t\t}\n\t},\n\n\t_countCurves: function() {\n\t\tvar length = this._segments.length;\n\t\treturn !this._closed && length > 0 ? length - 1 : length;\n\t},\n\n\tadd: function(segment1 ) {\n\t\tvar args = arguments;\n\t\treturn args.length > 1 && typeof segment1 !== 'number'\n\t\t\t? this._add(Segment.readList(args))\n\t\t\t: this._add([ Segment.read(args) ])[0];\n\t},\n\n\tinsert: function(index, segment1 ) {\n\t\tvar args = arguments;\n\t\treturn args.length > 2 && typeof segment1 !== 'number'\n\t\t\t? this._add(Segment.readList(args, 1), index)\n\t\t\t: this._add([ Segment.read(args, 1) ], index)[0];\n\t},\n\n\taddSegment: function() {\n\t\treturn this._add([ Segment.read(arguments) ])[0];\n\t},\n\n\tinsertSegment: function(index ) {\n\t\treturn this._add([ Segment.read(arguments, 1) ], index)[0];\n\t},\n\n\taddSegments: function(segments) {\n\t\treturn this._add(Segment.readList(segments));\n\t},\n\n\tinsertSegments: function(index, segments) {\n\t\treturn this._add(Segment.readList(segments), index);\n\t},\n\n\tremoveSegment: function(index) {\n\t\treturn this.removeSegments(index, index + 1)[0] || null;\n\t},\n\n\tremoveSegments: function(start, end, _includeCurves) {\n\t\tstart = start || 0;\n\t\tend = Base.pick(end, this._segments.length);\n\t\tvar segments = this._segments,\n\t\t\tcurves = this._curves,\n\t\t\tcount = segments.length,\n\t\t\tremoved = segments.splice(start, end - start),\n\t\t\tamount = removed.length;\n\t\tif (!amount)\n\t\t\treturn removed;\n\t\tfor (var i = 0; i < amount; i++) {\n\t\t\tvar segment = removed[i];\n\t\t\tif (segment._selection)\n\t\t\t\tthis._updateSelection(segment, segment._selection, 0);\n\t\t\tsegment._index = segment._path = null;\n\t\t}\n\t\tfor (var i = start, l = segments.length; i < l; i++)\n\t\t\tsegments[i]._index = i;\n\t\tif (curves) {\n\t\t\tvar index = start > 0 && end === count + (this._closed ? 1 : 0)\n\t\t\t\t\t? start - 1\n\t\t\t\t\t: start,\n\t\t\t\tcurves = curves.splice(index, amount);\n\t\t\tfor (var i = curves.length - 1; i >= 0; i--)\n\t\t\t\tcurves[i]._path = null;\n\t\t\tif (_includeCurves)\n\t\t\t\tremoved._curves = curves.slice(1);\n\t\t\tthis._adjustCurves(index, index);\n\t\t}\n\t\tthis._changed(41);\n\t\treturn removed;\n\t},\n\n\tclear: '#removeSegments',\n\n\thasHandles: function() {\n\t\tvar segments = this._segments;\n\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\tif (segments[i].hasHandles())\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t},\n\n\tclearHandles: function() {\n\t\tvar segments = this._segments;\n\t\tfor (var i = 0, l = segments.length; i < l; i++)\n\t\t\tsegments[i].clearHandles();\n\t},\n\n\tgetLength: function() {\n\t\tif (this._length == null) {\n\t\t\tvar curves = this.getCurves(),\n\t\t\t\tlength = 0;\n\t\t\tfor (var i = 0, l = curves.length; i < l; i++)\n\t\t\t\tlength += curves[i].getLength();\n\t\t\tthis._length = length;\n\t\t}\n\t\treturn this._length;\n\t},\n\n\tgetArea: function() {\n\t\tvar area = this._area;\n\t\tif (area == null) {\n\t\t\tvar segments = this._segments,\n\t\t\t\tclosed = this._closed;\n\t\t\tarea = 0;\n\t\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\t\tvar last = i + 1 === l;\n\t\t\t\tarea += Curve.getArea(Curve.getValues(\n\t\t\t\t\t\tsegments[i], segments[last ? 0 : i + 1],\n\t\t\t\t\t\tnull, last && !closed));\n\t\t\t}\n\t\t\tthis._area = area;\n\t\t}\n\t\treturn area;\n\t},\n\n\tisFullySelected: function() {\n\t\tvar length = this._segments.length;\n\t\treturn this.isSelected() && length > 0 && this._segmentSelection\n\t\t\t\t=== length * 7;\n\t},\n\n\tsetFullySelected: function(selected) {\n\t\tif (selected)\n\t\t\tthis._selectSegments(true);\n\t\tthis.setSelected(selected);\n\t},\n\n\tsetSelection: function setSelection(selection) {\n\t\tif (!(selection & 1))\n\t\t\tthis._selectSegments(false);\n\t\tsetSelection.base.call(this, selection);\n\t},\n\n\t_selectSegments: function(selected) {\n\t\tvar segments = this._segments,\n\t\t\tlength = segments.length,\n\t\t\tselection = selected ? 7 : 0;\n\t\tthis._segmentSelection = selection * length;\n\t\tfor (var i = 0; i < length; i++)\n\t\t\tsegments[i]._selection = selection;\n\t},\n\n\t_updateSelection: function(segment, oldSelection, newSelection) {\n\t\tsegment._selection = newSelection;\n\t\tvar selection = this._segmentSelection += newSelection - oldSelection;\n\t\tif (selection > 0)\n\t\t\tthis.setSelected(true);\n\t},\n\n\tdivideAt: function(location) {\n\t\tvar loc = this.getLocationAt(location),\n\t\t\tcurve;\n\t\treturn loc && (curve = loc.getCurve().divideAt(loc.getCurveOffset()))\n\t\t\t\t? curve._segment1\n\t\t\t\t: null;\n\t},\n\n\tsplitAt: function(location) {\n\t\tvar loc = this.getLocationAt(location),\n\t\t\tindex = loc && loc.index,\n\t\t\ttime = loc && loc.time,\n\t\t\ttMin = 1e-8,\n\t\t\ttMax = 1 - tMin;\n\t\tif (time > tMax) {\n\t\t\tindex++;\n\t\t\ttime = 0;\n\t\t}\n\t\tvar curves = this.getCurves();\n\t\tif (index >= 0 && index < curves.length) {\n\t\t\tif (time >= tMin) {\n\t\t\t\tcurves[index++].divideAtTime(time);\n\t\t\t}\n\t\t\tvar segs = this.removeSegments(index, this._segments.length, true),\n\t\t\t\tpath;\n\t\t\tif (this._closed) {\n\t\t\t\tthis.setClosed(false);\n\t\t\t\tpath = this;\n\t\t\t} else {\n\t\t\t\tpath = new Path(Item.NO_INSERT);\n\t\t\t\tpath.insertAbove(this);\n\t\t\t\tpath.copyAttributes(this);\n\t\t\t}\n\t\t\tpath._add(segs, 0);\n\t\t\tthis.addSegment(segs[0]);\n\t\t\treturn path;\n\t\t}\n\t\treturn null;\n\t},\n\n\tsplit: function(index, time) {\n\t\tvar curve,\n\t\t\tlocation = time === undefined ? index\n\t\t\t\t: (curve = this.getCurves()[index])\n\t\t\t\t\t&& curve.getLocationAtTime(time);\n\t\treturn location != null ? this.splitAt(location) : null;\n\t},\n\n\tjoin: function(path, tolerance) {\n\t\tvar epsilon = tolerance || 0;\n\t\tif (path && path !== this) {\n\t\t\tvar segments = path._segments,\n\t\t\t\tlast1 = this.getLastSegment(),\n\t\t\t\tlast2 = path.getLastSegment();\n\t\t\tif (!last2)\n\t\t\t\treturn this;\n\t\t\tif (last1 && last1._point.isClose(last2._point, epsilon))\n\t\t\t\tpath.reverse();\n\t\t\tvar first2 = path.getFirstSegment();\n\t\t\tif (last1 && last1._point.isClose(first2._point, epsilon)) {\n\t\t\t\tlast1.setHandleOut(first2._handleOut);\n\t\t\t\tthis._add(segments.slice(1));\n\t\t\t} else {\n\t\t\t\tvar first1 = this.getFirstSegment();\n\t\t\t\tif (first1 && first1._point.isClose(first2._point, epsilon))\n\t\t\t\t\tpath.reverse();\n\t\t\t\tlast2 = path.getLastSegment();\n\t\t\t\tif (first1 && first1._point.isClose(last2._point, epsilon)) {\n\t\t\t\t\tfirst1.setHandleIn(last2._handleIn);\n\t\t\t\t\tthis._add(segments.slice(0, segments.length - 1), 0);\n\t\t\t\t} else {\n\t\t\t\t\tthis._add(segments.slice());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (path._closed)\n\t\t\t\tthis._add([segments[0]]);\n\t\t\tpath.remove();\n\t\t}\n\t\tvar first = this.getFirstSegment(),\n\t\t\tlast = this.getLastSegment();\n\t\tif (first !== last && first._point.isClose(last._point, epsilon)) {\n\t\t\tfirst.setHandleIn(last._handleIn);\n\t\t\tlast.remove();\n\t\t\tthis.setClosed(true);\n\t\t}\n\t\treturn this;\n\t},\n\n\treduce: function(options) {\n\t\tvar curves = this.getCurves(),\n\t\t\tsimplify = options && options.simplify,\n\t\t\ttolerance = simplify ? 1e-7 : 0;\n\t\tfor (var i = curves.length - 1; i >= 0; i--) {\n\t\t\tvar curve = curves[i];\n\t\t\tif (!curve.hasHandles() && (!curve.hasLength(tolerance)\n\t\t\t\t\t|| simplify && curve.isCollinear(curve.getNext())))\n\t\t\t\tcurve.remove();\n\t\t}\n\t\treturn this;\n\t},\n\n\treverse: function() {\n\t\tthis._segments.reverse();\n\t\tfor (var i = 0, l = this._segments.length; i < l; i++) {\n\t\t\tvar segment = this._segments[i];\n\t\t\tvar handleIn = segment._handleIn;\n\t\t\tsegment._handleIn = segment._handleOut;\n\t\t\tsegment._handleOut = handleIn;\n\t\t\tsegment._index = i;\n\t\t}\n\t\tthis._curves = null;\n\t\tthis._changed(9);\n\t},\n\n\tflatten: function(flatness) {\n\t\tvar flattener = new PathFlattener(this, flatness || 0.25, 256, true),\n\t\t\tparts = flattener.parts,\n\t\t\tlength = parts.length,\n\t\t\tsegments = [];\n\t\tfor (var i = 0; i < length; i++) {\n\t\t\tsegments.push(new Segment(parts[i].curve.slice(0, 2)));\n\t\t}\n\t\tif (!this._closed && length > 0) {\n\t\t\tsegments.push(new Segment(parts[length - 1].curve.slice(6)));\n\t\t}\n\t\tthis.setSegments(segments);\n\t},\n\n\tsimplify: function(tolerance) {\n\t\tvar segments = new PathFitter(this).fit(tolerance || 2.5);\n\t\tif (segments)\n\t\t\tthis.setSegments(segments);\n\t\treturn !!segments;\n\t},\n\n\tsmooth: function(options) {\n\t\tvar that = this,\n\t\t\topts = options || {},\n\t\t\ttype = opts.type || 'asymmetric',\n\t\t\tsegments = this._segments,\n\t\t\tlength = segments.length,\n\t\t\tclosed = this._closed;\n\n\t\tfunction getIndex(value, _default) {\n\t\t\tvar index = value && value.index;\n\t\t\tif (index != null) {\n\t\t\t\tvar path = value.path;\n\t\t\t\tif (path && path !== that)\n\t\t\t\t\tthrow new Error(value._class + ' ' + index + ' of ' + path\n\t\t\t\t\t\t\t+ ' is not part of ' + that);\n\t\t\t\tif (_default && value instanceof Curve)\n\t\t\t\t\tindex++;\n\t\t\t} else {\n\t\t\t\tindex = typeof value === 'number' ? value : _default;\n\t\t\t}\n\t\t\treturn Math.min(index < 0 && closed\n\t\t\t\t\t? index % length\n\t\t\t\t\t: index < 0 ? index + length : index, length - 1);\n\t\t}\n\n\t\tvar loop = closed && opts.from === undefined && opts.to === undefined,\n\t\t\tfrom = getIndex(opts.from, 0),\n\t\t\tto = getIndex(opts.to, length - 1);\n\n\t\tif (from > to) {\n\t\t\tif (closed) {\n\t\t\t\tfrom -= length;\n\t\t\t} else {\n\t\t\t\tvar tmp = from;\n\t\t\t\tfrom = to;\n\t\t\t\tto = tmp;\n\t\t\t}\n\t\t}\n\t\tif (/^(?:asymmetric|continuous)$/.test(type)) {\n\t\t\tvar asymmetric = type === 'asymmetric',\n\t\t\t\tmin = Math.min,\n\t\t\t\tamount = to - from + 1,\n\t\t\t\tn = amount - 1,\n\t\t\t\tpadding = loop ? min(amount, 4) : 1,\n\t\t\t\tpaddingLeft = padding,\n\t\t\t\tpaddingRight = padding,\n\t\t\t\tknots = [];\n\t\t\tif (!closed) {\n\t\t\t\tpaddingLeft = min(1, from);\n\t\t\t\tpaddingRight = min(1, length - to - 1);\n\t\t\t}\n\t\t\tn += paddingLeft + paddingRight;\n\t\t\tif (n <= 1)\n\t\t\t\treturn;\n\t\t\tfor (var i = 0, j = from - paddingLeft; i <= n; i++, j++) {\n\t\t\t\tknots[i] = segments[(j < 0 ? j + length : j) % length]._point;\n\t\t\t}\n\n\t\t\tvar x = knots[0]._x + 2 * knots[1]._x,\n\t\t\t\ty = knots[0]._y + 2 * knots[1]._y,\n\t\t\t\tf = 2,\n\t\t\t\tn_1 = n - 1,\n\t\t\t\trx = [x],\n\t\t\t\try = [y],\n\t\t\t\trf = [f],\n\t\t\t\tpx = [],\n\t\t\t\tpy = [];\n\t\t\tfor (var i = 1; i < n; i++) {\n\t\t\t\tvar internal = i < n_1,\n\t\t\t\t\ta = internal ? 1 : asymmetric ? 1 : 2,\n\t\t\t\t\tb = internal ? 4 : asymmetric ? 2 : 7,\n\t\t\t\t\tu = internal ? 4 : asymmetric ? 3 : 8,\n\t\t\t\t\tv = internal ? 2 : asymmetric ? 0 : 1,\n\t\t\t\t\tm = a / f;\n\t\t\t\tf = rf[i] = b - m;\n\t\t\t\tx = rx[i] = u * knots[i]._x + v * knots[i + 1]._x - m * x;\n\t\t\t\ty = ry[i] = u * knots[i]._y + v * knots[i + 1]._y - m * y;\n\t\t\t}\n\n\t\t\tpx[n_1] = rx[n_1] / rf[n_1];\n\t\t\tpy[n_1] = ry[n_1] / rf[n_1];\n\t\t\tfor (var i = n - 2; i >= 0; i--) {\n\t\t\t\tpx[i] = (rx[i] - px[i + 1]) / rf[i];\n\t\t\t\tpy[i] = (ry[i] - py[i + 1]) / rf[i];\n\t\t\t}\n\t\t\tpx[n] = (3 * knots[n]._x - px[n_1]) / 2;\n\t\t\tpy[n] = (3 * knots[n]._y - py[n_1]) / 2;\n\n\t\t\tfor (var i = paddingLeft, max = n - paddingRight, j = from;\n\t\t\t\t\ti <= max; i++, j++) {\n\t\t\t\tvar segment = segments[j < 0 ? j + length : j],\n\t\t\t\t\tpt = segment._point,\n\t\t\t\t\thx = px[i] - pt._x,\n\t\t\t\t\thy = py[i] - pt._y;\n\t\t\t\tif (loop || i < max)\n\t\t\t\t\tsegment.setHandleOut(hx, hy);\n\t\t\t\tif (loop || i > paddingLeft)\n\t\t\t\t\tsegment.setHandleIn(-hx, -hy);\n\t\t\t}\n\t\t} else {\n\t\t\tfor (var i = from; i <= to; i++) {\n\t\t\t\tsegments[i < 0 ? i + length : i].smooth(opts,\n\t\t\t\t\t\t!loop && i === from, !loop && i === to);\n\t\t\t}\n\t\t}\n\t},\n\n\ttoShape: function(insert) {\n\t\tif (!this._closed)\n\t\t\treturn null;\n\n\t\tvar segments = this._segments,\n\t\t\ttype,\n\t\t\tsize,\n\t\t\tradius,\n\t\t\ttopCenter;\n\n\t\tfunction isCollinear(i, j) {\n\t\t\tvar seg1 = segments[i],\n\t\t\t\tseg2 = seg1.getNext(),\n\t\t\t\tseg3 = segments[j],\n\t\t\t\tseg4 = seg3.getNext();\n\t\t\treturn seg1._handleOut.isZero() && seg2._handleIn.isZero()\n\t\t\t\t\t&& seg3._handleOut.isZero() && seg4._handleIn.isZero()\n\t\t\t\t\t&& seg2._point.subtract(seg1._point).isCollinear(\n\t\t\t\t\t\tseg4._point.subtract(seg3._point));\n\t\t}\n\n\t\tfunction isOrthogonal(i) {\n\t\t\tvar seg2 = segments[i],\n\t\t\t\tseg1 = seg2.getPrevious(),\n\t\t\t\tseg3 = seg2.getNext();\n\t\t\treturn seg1._handleOut.isZero() && seg2._handleIn.isZero()\n\t\t\t\t\t&& seg2._handleOut.isZero() && seg3._handleIn.isZero()\n\t\t\t\t\t&& seg2._point.subtract(seg1._point).isOrthogonal(\n\t\t\t\t\t\tseg3._point.subtract(seg2._point));\n\t\t}\n\n\t\tfunction isArc(i) {\n\t\t\tvar seg1 = segments[i],\n\t\t\t\tseg2 = seg1.getNext(),\n\t\t\t\thandle1 = seg1._handleOut,\n\t\t\t\thandle2 = seg2._handleIn,\n\t\t\t\tkappa = 0.5522847498307936;\n\t\t\tif (handle1.isOrthogonal(handle2)) {\n\t\t\t\tvar pt1 = seg1._point,\n\t\t\t\t\tpt2 = seg2._point,\n\t\t\t\t\tcorner = new Line(pt1, handle1, true).intersect(\n\t\t\t\t\t\t\tnew Line(pt2, handle2, true), true);\n\t\t\t\treturn corner && Numerical.isZero(handle1.getLength() /\n\t\t\t\t\t\tcorner.subtract(pt1).getLength() - kappa)\n\t\t\t\t\t&& Numerical.isZero(handle2.getLength() /\n\t\t\t\t\t\tcorner.subtract(pt2).getLength() - kappa);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\n\t\tfunction getDistance(i, j) {\n\t\t\treturn segments[i]._point.getDistance(segments[j]._point);\n\t\t}\n\n\t\tif (!this.hasHandles() && segments.length === 4\n\t\t\t\t&& isCollinear(0, 2) && isCollinear(1, 3) && isOrthogonal(1)) {\n\t\t\ttype = Shape.Rectangle;\n\t\t\tsize = new Size(getDistance(0, 3), getDistance(0, 1));\n\t\t\ttopCenter = segments[1]._point.add(segments[2]._point).divide(2);\n\t\t} else if (segments.length === 8 && isArc(0) && isArc(2) && isArc(4)\n\t\t\t\t&& isArc(6) && isCollinear(1, 5) && isCollinear(3, 7)) {\n\t\t\ttype = Shape.Rectangle;\n\t\t\tsize = new Size(getDistance(1, 6), getDistance(0, 3));\n\t\t\tradius = size.subtract(new Size(getDistance(0, 7),\n\t\t\t\t\tgetDistance(1, 2))).divide(2);\n\t\t\ttopCenter = segments[3]._point.add(segments[4]._point).divide(2);\n\t\t} else if (segments.length === 4\n\t\t\t\t&& isArc(0) && isArc(1) && isArc(2) && isArc(3)) {\n\t\t\tif (Numerical.isZero(getDistance(0, 2) - getDistance(1, 3))) {\n\t\t\t\ttype = Shape.Circle;\n\t\t\t\tradius = getDistance(0, 2) / 2;\n\t\t\t} else {\n\t\t\t\ttype = Shape.Ellipse;\n\t\t\t\tradius = new Size(getDistance(2, 0) / 2, getDistance(3, 1) / 2);\n\t\t\t}\n\t\t\ttopCenter = segments[1]._point;\n\t\t}\n\n\t\tif (type) {\n\t\t\tvar center = this.getPosition(true),\n\t\t\t\tshape = new type({\n\t\t\t\t\tcenter: center,\n\t\t\t\t\tsize: size,\n\t\t\t\t\tradius: radius,\n\t\t\t\t\tinsert: false\n\t\t\t\t});\n\t\t\tshape.copyAttributes(this, true);\n\t\t\tshape._matrix.prepend(this._matrix);\n\t\t\tshape.rotate(topCenter.subtract(center).getAngle() + 90);\n\t\t\tif (insert === undefined || insert)\n\t\t\t\tshape.insertAbove(this);\n\t\t\treturn shape;\n\t\t}\n\t\treturn null;\n\t},\n\n\ttoPath: '#clone',\n\n\tcompare: function compare(path) {\n\t\tif (!path || path instanceof CompoundPath)\n\t\t\treturn compare.base.call(this, path);\n\t\tvar curves1 = this.getCurves(),\n\t\t\tcurves2 = path.getCurves(),\n\t\t\tlength1 = curves1.length,\n\t\t\tlength2 = curves2.length;\n\t\tif (!length1 || !length2) {\n\t\t\treturn length1 == length2;\n\t\t}\n\t\tvar v1 = curves1[0].getValues(),\n\t\t\tvalues2 = [],\n\t\t\tpos1 = 0, pos2,\n\t\t\tend1 = 0, end2;\n\t\tfor (var i = 0; i < length2; i++) {\n\t\t\tvar v2 = curves2[i].getValues();\n\t\t\tvalues2.push(v2);\n\t\t\tvar overlaps = Curve.getOverlaps(v1, v2);\n\t\t\tif (overlaps) {\n\t\t\t\tpos2 = !i && overlaps[0][0] > 0 ? length2 - 1 : i;\n\t\t\t\tend2 = overlaps[0][1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tvar abs = Math.abs,\n\t\t\tepsilon = 1e-8,\n\t\t\tv2 = values2[pos2],\n\t\t\tstart2;\n\t\twhile (v1 && v2) {\n\t\t\tvar overlaps = Curve.getOverlaps(v1, v2);\n\t\t\tif (overlaps) {\n\t\t\t\tvar t1 = overlaps[0][0];\n\t\t\t\tif (abs(t1 - end1) < epsilon) {\n\t\t\t\t\tend1 = overlaps[1][0];\n\t\t\t\t\tif (end1 === 1) {\n\t\t\t\t\t\tv1 = ++pos1 < length1 ? curves1[pos1].getValues() : null;\n\t\t\t\t\t\tend1 = 0;\n\t\t\t\t\t}\n\t\t\t\t\tvar t2 = overlaps[0][1];\n\t\t\t\t\tif (abs(t2 - end2) < epsilon) {\n\t\t\t\t\t\tif (!start2)\n\t\t\t\t\t\t\tstart2 = [pos2, t2];\n\t\t\t\t\t\tend2 = overlaps[1][1];\n\t\t\t\t\t\tif (end2 === 1) {\n\t\t\t\t\t\t\tif (++pos2 >= length2)\n\t\t\t\t\t\t\t\tpos2 = 0;\n\t\t\t\t\t\t\tv2 = values2[pos2] || curves2[pos2].getValues();\n\t\t\t\t\t\t\tend2 = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!v1) {\n\t\t\t\t\t\t\treturn start2[0] === pos2 && start2[1] === end2;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\treturn false;\n\t},\n\n\t_hitTestSelf: function(point, options, viewMatrix, strokeMatrix) {\n\t\tvar that = this,\n\t\t\tstyle = this.getStyle(),\n\t\t\tsegments = this._segments,\n\t\t\tnumSegments = segments.length,\n\t\t\tclosed = this._closed,\n\t\t\ttolerancePadding = options._tolerancePadding,\n\t\t\tstrokePadding = tolerancePadding,\n\t\t\tjoin, cap, miterLimit,\n\t\t\tarea, loc, res,\n\t\t\thitStroke = options.stroke && style.hasStroke(),\n\t\t\thitFill = options.fill && style.hasFill(),\n\t\t\thitCurves = options.curves,\n\t\t\tstrokeRadius = hitStroke\n\t\t\t\t\t? style.getStrokeWidth() / 2\n\t\t\t\t\t: hitFill && options.tolerance > 0 || hitCurves\n\t\t\t\t\t\t? 0 : null;\n\t\tif (strokeRadius !== null) {\n\t\t\tif (strokeRadius > 0) {\n\t\t\t\tjoin = style.getStrokeJoin();\n\t\t\t\tcap = style.getStrokeCap();\n\t\t\t\tmiterLimit = style.getMiterLimit();\n\t\t\t\tstrokePadding = strokePadding.add(\n\t\t\t\t\tPath._getStrokePadding(strokeRadius, strokeMatrix));\n\t\t\t} else {\n\t\t\t\tjoin = cap = 'round';\n\t\t\t}\n\t\t}\n\n\t\tfunction isCloseEnough(pt, padding) {\n\t\t\treturn point.subtract(pt).divide(padding).length <= 1;\n\t\t}\n\n\t\tfunction checkSegmentPoint(seg, pt, name) {\n\t\t\tif (!options.selected || pt.isSelected()) {\n\t\t\t\tvar anchor = seg._point;\n\t\t\t\tif (pt !== anchor)\n\t\t\t\t\tpt = pt.add(anchor);\n\t\t\t\tif (isCloseEnough(pt, strokePadding)) {\n\t\t\t\t\treturn new HitResult(name, that, {\n\t\t\t\t\t\tsegment: seg,\n\t\t\t\t\t\tpoint: pt\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfunction checkSegmentPoints(seg, ends) {\n\t\t\treturn (ends || options.segments)\n\t\t\t\t&& checkSegmentPoint(seg, seg._point, 'segment')\n\t\t\t\t|| (!ends && options.handles) && (\n\t\t\t\t\tcheckSegmentPoint(seg, seg._handleIn, 'handle-in') ||\n\t\t\t\t\tcheckSegmentPoint(seg, seg._handleOut, 'handle-out'));\n\t\t}\n\n\t\tfunction addToArea(point) {\n\t\t\tarea.add(point);\n\t\t}\n\n\t\tfunction checkSegmentStroke(segment) {\n\t\t\tvar isJoin = closed || segment._index > 0\n\t\t\t\t\t&& segment._index < numSegments - 1;\n\t\t\tif ((isJoin ? join : cap) === 'round') {\n\t\t\t\treturn isCloseEnough(segment._point, strokePadding);\n\t\t\t} else {\n\t\t\t\tarea = new Path({ internal: true, closed: true });\n\t\t\t\tif (isJoin) {\n\t\t\t\t\tif (!segment.isSmooth()) {\n\t\t\t\t\t\tPath._addBevelJoin(segment, join, strokeRadius,\n\t\t\t\t\t\t\t miterLimit, null, strokeMatrix, addToArea, true);\n\t\t\t\t\t}\n\t\t\t\t} else if (cap === 'square') {\n\t\t\t\t\tPath._addSquareCap(segment, cap, strokeRadius, null,\n\t\t\t\t\t\t\tstrokeMatrix, addToArea, true);\n\t\t\t\t}\n\t\t\t\tif (!area.isEmpty()) {\n\t\t\t\t\tvar loc;\n\t\t\t\t\treturn area.contains(point)\n\t\t\t\t\t\t|| (loc = area.getNearestLocation(point))\n\t\t\t\t\t\t\t&& isCloseEnough(loc.getPoint(), tolerancePadding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (options.ends && !options.segments && !closed) {\n\t\t\tif (res = checkSegmentPoints(segments[0], true)\n\t\t\t\t\t|| checkSegmentPoints(segments[numSegments - 1], true))\n\t\t\t\treturn res;\n\t\t} else if (options.segments || options.handles) {\n\t\t\tfor (var i = 0; i < numSegments; i++)\n\t\t\t\tif (res = checkSegmentPoints(segments[i]))\n\t\t\t\t\treturn res;\n\t\t}\n\t\tif (strokeRadius !== null) {\n\t\t\tloc = this.getNearestLocation(point);\n\t\t\tif (loc) {\n\t\t\t\tvar time = loc.getTime();\n\t\t\t\tif (time === 0 || time === 1 && numSegments > 1) {\n\t\t\t\t\tif (!checkSegmentStroke(loc.getSegment()))\n\t\t\t\t\t\tloc = null;\n\t\t\t\t} else if (!isCloseEnough(loc.getPoint(), strokePadding)) {\n\t\t\t\t\tloc = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!loc && join === 'miter' && numSegments > 1) {\n\t\t\t\tfor (var i = 0; i < numSegments; i++) {\n\t\t\t\t\tvar segment = segments[i];\n\t\t\t\t\tif (point.getDistance(segment._point)\n\t\t\t\t\t\t\t<= miterLimit * strokeRadius\n\t\t\t\t\t\t\t&& checkSegmentStroke(segment)) {\n\t\t\t\t\t\tloc = segment.getLocation();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn !loc && hitFill && this._contains(point)\n\t\t\t\t|| loc && !hitStroke && !hitCurves\n\t\t\t\t\t? new HitResult('fill', this)\n\t\t\t\t\t: loc\n\t\t\t\t\t\t? new HitResult(hitStroke ? 'stroke' : 'curve', this, {\n\t\t\t\t\t\t\tlocation: loc,\n\t\t\t\t\t\t\tpoint: loc.getPoint()\n\t\t\t\t\t\t})\n\t\t\t\t\t\t: null;\n\t}\n\n}, Base.each(Curve._evaluateMethods,\n\tfunction(name) {\n\t\tthis[name + 'At'] = function(offset) {\n\t\t\tvar loc = this.getLocationAt(offset);\n\t\t\treturn loc && loc[name]();\n\t\t};\n\t},\n{\n\tbeans: false,\n\n\tgetLocationOf: function() {\n\t\tvar point = Point.read(arguments),\n\t\t\tcurves = this.getCurves();\n\t\tfor (var i = 0, l = curves.length; i < l; i++) {\n\t\t\tvar loc = curves[i].getLocationOf(point);\n\t\t\tif (loc)\n\t\t\t\treturn loc;\n\t\t}\n\t\treturn null;\n\t},\n\n\tgetOffsetOf: function() {\n\t\tvar loc = this.getLocationOf.apply(this, arguments);\n\t\treturn loc ? loc.getOffset() : null;\n\t},\n\n\tgetLocationAt: function(offset) {\n\t\tif (typeof offset === 'number') {\n\t\t\tvar curves = this.getCurves(),\n\t\t\t\tlength = 0;\n\t\t\tfor (var i = 0, l = curves.length; i < l; i++) {\n\t\t\t\tvar start = length,\n\t\t\t\t\tcurve = curves[i];\n\t\t\t\tlength += curve.getLength();\n\t\t\t\tif (length > offset) {\n\t\t\t\t\treturn curve.getLocationAt(offset - start);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (curves.length > 0 && offset <= this.getLength()) {\n\t\t\t\treturn new CurveLocation(curves[curves.length - 1], 1);\n\t\t\t}\n\t\t} else if (offset && offset.getPath && offset.getPath() === this) {\n\t\t\treturn offset;\n\t\t}\n\t\treturn null;\n\t},\n\n\tgetOffsetsWithTangent: function() {\n\t\tvar tangent = Point.read(arguments);\n\t\tif (tangent.isZero()) {\n\t\t\treturn [];\n\t\t}\n\n\t\tvar offsets = [];\n\t\tvar curveStart = 0;\n\t\tvar curves = this.getCurves();\n\t\tfor (var i = 0, l = curves.length; i < l; i++) {\n\t\t\tvar curve = curves[i];\n\t\t\tvar curveTimes = curve.getTimesWithTangent(tangent);\n\t\t\tfor (var j = 0, m = curveTimes.length; j < m; j++) {\n\t\t\t\tvar offset = curveStart + curve.getOffsetAtTime(curveTimes[j]);\n\t\t\t\tif (offsets.indexOf(offset) < 0) {\n\t\t\t\t\toffsets.push(offset);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcurveStart += curve.length;\n\t\t}\n\t\treturn offsets;\n\t}\n}),\nnew function() {\n\n\tfunction drawHandles(ctx, segments, matrix, size) {\n\t\tif (size <= 0) return;\n\n\t\tvar half = size / 2,\n\t\t\tminiSize = size - 2,\n\t\t\tminiHalf = half - 1,\n\t\t\tcoords = new Array(6),\n\t\t\tpX, pY;\n\n\t\tfunction drawHandle(index) {\n\t\t\tvar hX = coords[index],\n\t\t\t\thY = coords[index + 1];\n\t\t\tif (pX != hX || pY != hY) {\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.moveTo(pX, pY);\n\t\t\t\tctx.lineTo(hX, hY);\n\t\t\t\tctx.stroke();\n\t\t\t\tctx.beginPath();\n\t\t\t\tctx.arc(hX, hY, half, 0, Math.PI * 2, true);\n\t\t\t\tctx.fill();\n\t\t\t}\n\t\t}\n\n\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\tvar segment = segments[i],\n\t\t\t\tselection = segment._selection;\n\t\t\tsegment._transformCoordinates(matrix, coords);\n\t\t\tpX = coords[0];\n\t\t\tpY = coords[1];\n\t\t\tif (selection & 2)\n\t\t\t\tdrawHandle(2);\n\t\t\tif (selection & 4)\n\t\t\t\tdrawHandle(4);\n\t\t\tctx.fillRect(pX - half, pY - half, size, size);\n\t\t\tif (miniSize > 0 && !(selection & 1)) {\n\t\t\t\tvar fillStyle = ctx.fillStyle;\n\t\t\t\tctx.fillStyle = '#ffffff';\n\t\t\t\tctx.fillRect(pX - miniHalf, pY - miniHalf, miniSize, miniSize);\n\t\t\t\tctx.fillStyle = fillStyle;\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction drawSegments(ctx, path, matrix) {\n\t\tvar segments = path._segments,\n\t\t\tlength = segments.length,\n\t\t\tcoords = new Array(6),\n\t\t\tfirst = true,\n\t\t\tcurX, curY,\n\t\t\tprevX, prevY,\n\t\t\tinX, inY,\n\t\t\toutX, outY;\n\n\t\tfunction drawSegment(segment) {\n\t\t\tif (matrix) {\n\t\t\t\tsegment._transformCoordinates(matrix, coords);\n\t\t\t\tcurX = coords[0];\n\t\t\t\tcurY = coords[1];\n\t\t\t} else {\n\t\t\t\tvar point = segment._point;\n\t\t\t\tcurX = point._x;\n\t\t\t\tcurY = point._y;\n\t\t\t}\n\t\t\tif (first) {\n\t\t\t\tctx.moveTo(curX, curY);\n\t\t\t\tfirst = false;\n\t\t\t} else {\n\t\t\t\tif (matrix) {\n\t\t\t\t\tinX = coords[2];\n\t\t\t\t\tinY = coords[3];\n\t\t\t\t} else {\n\t\t\t\t\tvar handle = segment._handleIn;\n\t\t\t\t\tinX = curX + handle._x;\n\t\t\t\t\tinY = curY + handle._y;\n\t\t\t\t}\n\t\t\t\tif (inX === curX && inY === curY\n\t\t\t\t\t\t&& outX === prevX && outY === prevY) {\n\t\t\t\t\tctx.lineTo(curX, curY);\n\t\t\t\t} else {\n\t\t\t\t\tctx.bezierCurveTo(outX, outY, inX, inY, curX, curY);\n\t\t\t\t}\n\t\t\t}\n\t\t\tprevX = curX;\n\t\t\tprevY = curY;\n\t\t\tif (matrix) {\n\t\t\t\toutX = coords[4];\n\t\t\t\toutY = coords[5];\n\t\t\t} else {\n\t\t\t\tvar handle = segment._handleOut;\n\t\t\t\toutX = prevX + handle._x;\n\t\t\t\toutY = prevY + handle._y;\n\t\t\t}\n\t\t}\n\n\t\tfor (var i = 0; i < length; i++)\n\t\t\tdrawSegment(segments[i]);\n\t\tif (path._closed && length > 0)\n\t\t\tdrawSegment(segments[0]);\n\t}\n\n\treturn {\n\t\t_draw: function(ctx, param, viewMatrix, strokeMatrix) {\n\t\t\tvar dontStart = param.dontStart,\n\t\t\t\tdontPaint = param.dontFinish || param.clip,\n\t\t\t\tstyle = this.getStyle(),\n\t\t\t\thasFill = style.hasFill(),\n\t\t\t\thasStroke = style.hasStroke(),\n\t\t\t\tdashArray = style.getDashArray(),\n\t\t\t\tdashLength = !paper.support.nativeDash && hasStroke\n\t\t\t\t\t\t&& dashArray && dashArray.length;\n\n\t\t\tif (!dontStart)\n\t\t\t\tctx.beginPath();\n\n\t\t\tif (hasFill || hasStroke && !dashLength || dontPaint) {\n\t\t\t\tdrawSegments(ctx, this, strokeMatrix);\n\t\t\t\tif (this._closed)\n\t\t\t\t\tctx.closePath();\n\t\t\t}\n\n\t\t\tfunction getOffset(i) {\n\t\t\t\treturn dashArray[((i % dashLength) + dashLength) % dashLength];\n\t\t\t}\n\n\t\t\tif (!dontPaint && (hasFill || hasStroke)) {\n\t\t\t\tthis._setStyles(ctx, param, viewMatrix);\n\t\t\t\tif (hasFill) {\n\t\t\t\t\tctx.fill(style.getFillRule());\n\t\t\t\t\tctx.shadowColor = 'rgba(0,0,0,0)';\n\t\t\t\t}\n\t\t\t\tif (hasStroke) {\n\t\t\t\t\tif (dashLength) {\n\t\t\t\t\t\tif (!dontStart)\n\t\t\t\t\t\t\tctx.beginPath();\n\t\t\t\t\t\tvar flattener = new PathFlattener(this, 0.25, 32, false,\n\t\t\t\t\t\t\t\tstrokeMatrix),\n\t\t\t\t\t\t\tlength = flattener.length,\n\t\t\t\t\t\t\tfrom = -style.getDashOffset(), to,\n\t\t\t\t\t\t\ti = 0;\n\t\t\t\t\t\twhile (from > 0) {\n\t\t\t\t\t\t\tfrom -= getOffset(i--) + getOffset(i--);\n\t\t\t\t\t\t}\n\t\t\t\t\t\twhile (from < length) {\n\t\t\t\t\t\t\tto = from + getOffset(i++);\n\t\t\t\t\t\t\tif (from > 0 || to > 0)\n\t\t\t\t\t\t\t\tflattener.drawPart(ctx,\n\t\t\t\t\t\t\t\t\t\tMath.max(from, 0), Math.max(to, 0));\n\t\t\t\t\t\t\tfrom = to + getOffset(i++);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tctx.stroke();\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_drawSelected: function(ctx, matrix) {\n\t\t\tctx.beginPath();\n\t\t\tdrawSegments(ctx, this, matrix);\n\t\t\tctx.stroke();\n\t\t\tdrawHandles(ctx, this._segments, matrix, paper.settings.handleSize);\n\t\t}\n\t};\n},\nnew function() {\n\tfunction getCurrentSegment(that) {\n\t\tvar segments = that._segments;\n\t\tif (!segments.length)\n\t\t\tthrow new Error('Use a moveTo() command first');\n\t\treturn segments[segments.length - 1];\n\t}\n\n\treturn {\n\t\tmoveTo: function() {\n\t\t\tvar segments = this._segments;\n\t\t\tif (segments.length === 1)\n\t\t\t\tthis.removeSegment(0);\n\t\t\tif (!segments.length)\n\t\t\t\tthis._add([ new Segment(Point.read(arguments)) ]);\n\t\t},\n\n\t\tmoveBy: function() {\n\t\t\tthrow new Error('moveBy() is unsupported on Path items.');\n\t\t},\n\n\t\tlineTo: function() {\n\t\t\tthis._add([ new Segment(Point.read(arguments)) ]);\n\t\t},\n\n\t\tcubicCurveTo: function() {\n\t\t\tvar args = arguments,\n\t\t\t\thandle1 = Point.read(args),\n\t\t\t\thandle2 = Point.read(args),\n\t\t\t\tto = Point.read(args),\n\t\t\t\tcurrent = getCurrentSegment(this);\n\t\t\tcurrent.setHandleOut(handle1.subtract(current._point));\n\t\t\tthis._add([ new Segment(to, handle2.subtract(to)) ]);\n\t\t},\n\n\t\tquadraticCurveTo: function() {\n\t\t\tvar args = arguments,\n\t\t\t\thandle = Point.read(args),\n\t\t\t\tto = Point.read(args),\n\t\t\t\tcurrent = getCurrentSegment(this)._point;\n\t\t\tthis.cubicCurveTo(\n\t\t\t\thandle.add(current.subtract(handle).multiply(1 / 3)),\n\t\t\t\thandle.add(to.subtract(handle).multiply(1 / 3)),\n\t\t\t\tto\n\t\t\t);\n\t\t},\n\n\t\tcurveTo: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tthrough = Point.read(args),\n\t\t\t\tto = Point.read(args),\n\t\t\t\tt = Base.pick(Base.read(args), 0.5),\n\t\t\t\tt1 = 1 - t,\n\t\t\t\tcurrent = getCurrentSegment(this)._point,\n\t\t\t\thandle = through.subtract(current.multiply(t1 * t1))\n\t\t\t\t\t.subtract(to.multiply(t * t)).divide(2 * t * t1);\n\t\t\tif (handle.isNaN())\n\t\t\t\tthrow new Error(\n\t\t\t\t\t'Cannot put a curve through points with parameter = ' + t);\n\t\t\tthis.quadraticCurveTo(handle, to);\n\t\t},\n\n\t\tarcTo: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tabs = Math.abs,\n\t\t\t\tsqrt = Math.sqrt,\n\t\t\t\tcurrent = getCurrentSegment(this),\n\t\t\t\tfrom = current._point,\n\t\t\t\tto = Point.read(args),\n\t\t\t\tthrough,\n\t\t\t\tpeek = Base.peek(args),\n\t\t\t\tclockwise = Base.pick(peek, true),\n\t\t\t\tcenter, extent, vector, matrix;\n\t\t\tif (typeof clockwise === 'boolean') {\n\t\t\t\tvar middle = from.add(to).divide(2),\n\t\t\t\tthrough = middle.add(middle.subtract(from).rotate(\n\t\t\t\t\t\tclockwise ? -90 : 90));\n\t\t\t} else if (Base.remain(args) <= 2) {\n\t\t\t\tthrough = to;\n\t\t\t\tto = Point.read(args);\n\t\t\t} else if (!from.equals(to)) {\n\t\t\t\tvar radius = Size.read(args),\n\t\t\t\t\tisZero = Numerical.isZero;\n\t\t\t\tif (isZero(radius.width) || isZero(radius.height))\n\t\t\t\t\treturn this.lineTo(to);\n\t\t\t\tvar rotation = Base.read(args),\n\t\t\t\t\tclockwise = !!Base.read(args),\n\t\t\t\t\tlarge = !!Base.read(args),\n\t\t\t\t\tmiddle = from.add(to).divide(2),\n\t\t\t\t\tpt = from.subtract(middle).rotate(-rotation),\n\t\t\t\t\tx = pt.x,\n\t\t\t\t\ty = pt.y,\n\t\t\t\t\trx = abs(radius.width),\n\t\t\t\t\try = abs(radius.height),\n\t\t\t\t\trxSq = rx * rx,\n\t\t\t\t\trySq = ry * ry,\n\t\t\t\t\txSq = x * x,\n\t\t\t\t\tySq = y * y;\n\t\t\t\tvar factor = sqrt(xSq / rxSq + ySq / rySq);\n\t\t\t\tif (factor > 1) {\n\t\t\t\t\trx *= factor;\n\t\t\t\t\try *= factor;\n\t\t\t\t\trxSq = rx * rx;\n\t\t\t\t\trySq = ry * ry;\n\t\t\t\t}\n\t\t\t\tfactor = (rxSq * rySq - rxSq * ySq - rySq * xSq) /\n\t\t\t\t\t\t(rxSq * ySq + rySq * xSq);\n\t\t\t\tif (abs(factor) < 1e-12)\n\t\t\t\t\tfactor = 0;\n\t\t\t\tif (factor < 0)\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t'Cannot create an arc with the given arguments');\n\t\t\t\tcenter = new Point(rx * y / ry, -ry * x / rx)\n\t\t\t\t\t\t.multiply((large === clockwise ? -1 : 1) * sqrt(factor))\n\t\t\t\t\t\t.rotate(rotation).add(middle);\n\t\t\t\tmatrix = new Matrix().translate(center).rotate(rotation)\n\t\t\t\t\t\t.scale(rx, ry);\n\t\t\t\tvector = matrix._inverseTransform(from);\n\t\t\t\textent = vector.getDirectedAngle(matrix._inverseTransform(to));\n\t\t\t\tif (!clockwise && extent > 0)\n\t\t\t\t\textent -= 360;\n\t\t\t\telse if (clockwise && extent < 0)\n\t\t\t\t\textent += 360;\n\t\t\t}\n\t\t\tif (through) {\n\t\t\t\tvar l1 = new Line(from.add(through).divide(2),\n\t\t\t\t\t\t\tthrough.subtract(from).rotate(90), true),\n\t\t\t\t\tl2 = new Line(through.add(to).divide(2),\n\t\t\t\t\t\t\tto.subtract(through).rotate(90), true),\n\t\t\t\t\tline = new Line(from, to),\n\t\t\t\t\tthroughSide = line.getSide(through);\n\t\t\t\tcenter = l1.intersect(l2, true);\n\t\t\t\tif (!center) {\n\t\t\t\t\tif (!throughSide)\n\t\t\t\t\t\treturn this.lineTo(to);\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t\t'Cannot create an arc with the given arguments');\n\t\t\t\t}\n\t\t\t\tvector = from.subtract(center);\n\t\t\t\textent = vector.getDirectedAngle(to.subtract(center));\n\t\t\t\tvar centerSide = line.getSide(center, true);\n\t\t\t\tif (centerSide === 0) {\n\t\t\t\t\textent = throughSide * abs(extent);\n\t\t\t\t} else if (throughSide === centerSide) {\n\t\t\t\t\textent += extent < 0 ? 360 : -360;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (extent) {\n\t\t\t\tvar epsilon = 1e-5,\n\t\t\t\t\text = abs(extent),\n\t\t\t\t\tcount = ext >= 360\n\t\t\t\t\t\t? 4\n\t\t\t\t\t\t: Math.ceil((ext - epsilon) / 90),\n\t\t\t\t\tinc = extent / count,\n\t\t\t\t\thalf = inc * Math.PI / 360,\n\t\t\t\t\tz = 4 / 3 * Math.sin(half) / (1 + Math.cos(half)),\n\t\t\t\t\tsegments = [];\n\t\t\t\tfor (var i = 0; i <= count; i++) {\n\t\t\t\t\tvar pt = to,\n\t\t\t\t\t\tout = null;\n\t\t\t\t\tif (i < count) {\n\t\t\t\t\t\tout = vector.rotate(90).multiply(z);\n\t\t\t\t\t\tif (matrix) {\n\t\t\t\t\t\t\tpt = matrix._transformPoint(vector);\n\t\t\t\t\t\t\tout = matrix._transformPoint(vector.add(out))\n\t\t\t\t\t\t\t\t\t.subtract(pt);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpt = center.add(vector);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (!i) {\n\t\t\t\t\t\tcurrent.setHandleOut(out);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvar _in = vector.rotate(-90).multiply(z);\n\t\t\t\t\t\tif (matrix) {\n\t\t\t\t\t\t\t_in = matrix._transformPoint(vector.add(_in))\n\t\t\t\t\t\t\t\t\t.subtract(pt);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsegments.push(new Segment(pt, _in, out));\n\t\t\t\t\t}\n\t\t\t\t\tvector = vector.rotate(inc);\n\t\t\t\t}\n\t\t\t\tthis._add(segments);\n\t\t\t}\n\t\t},\n\n\t\tlineBy: function() {\n\t\t\tvar to = Point.read(arguments),\n\t\t\t\tcurrent = getCurrentSegment(this)._point;\n\t\t\tthis.lineTo(current.add(to));\n\t\t},\n\n\t\tcurveBy: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tthrough = Point.read(args),\n\t\t\t\tto = Point.read(args),\n\t\t\t\tparameter = Base.read(args),\n\t\t\t\tcurrent = getCurrentSegment(this)._point;\n\t\t\tthis.curveTo(current.add(through), current.add(to), parameter);\n\t\t},\n\n\t\tcubicCurveBy: function() {\n\t\t\tvar args = arguments,\n\t\t\t\thandle1 = Point.read(args),\n\t\t\t\thandle2 = Point.read(args),\n\t\t\t\tto = Point.read(args),\n\t\t\t\tcurrent = getCurrentSegment(this)._point;\n\t\t\tthis.cubicCurveTo(current.add(handle1), current.add(handle2),\n\t\t\t\t\tcurrent.add(to));\n\t\t},\n\n\t\tquadraticCurveBy: function() {\n\t\t\tvar args = arguments,\n\t\t\t\thandle = Point.read(args),\n\t\t\t\tto = Point.read(args),\n\t\t\t\tcurrent = getCurrentSegment(this)._point;\n\t\t\tthis.quadraticCurveTo(current.add(handle), current.add(to));\n\t\t},\n\n\t\tarcBy: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tcurrent = getCurrentSegment(this)._point,\n\t\t\t\tpoint = current.add(Point.read(args)),\n\t\t\t\tclockwise = Base.pick(Base.peek(args), true);\n\t\t\tif (typeof clockwise === 'boolean') {\n\t\t\t\tthis.arcTo(point, clockwise);\n\t\t\t} else {\n\t\t\t\tthis.arcTo(point, current.add(Point.read(args)));\n\t\t\t}\n\t\t},\n\n\t\tclosePath: function(tolerance) {\n\t\t\tthis.setClosed(true);\n\t\t\tthis.join(this, tolerance);\n\t\t}\n\t};\n}, {\n\n\t_getBounds: function(matrix, options) {\n\t\tvar method = options.handle\n\t\t\t\t? 'getHandleBounds'\n\t\t\t\t: options.stroke\n\t\t\t\t? 'getStrokeBounds'\n\t\t\t\t: 'getBounds';\n\t\treturn Path[method](this._segments, this._closed, this, matrix, options);\n\t},\n\nstatics: {\n\tgetBounds: function(segments, closed, path, matrix, options, strokePadding) {\n\t\tvar first = segments[0];\n\t\tif (!first)\n\t\t\treturn new Rectangle();\n\t\tvar coords = new Array(6),\n\t\t\tprevCoords = first._transformCoordinates(matrix, new Array(6)),\n\t\t\tmin = prevCoords.slice(0, 2),\n\t\t\tmax = min.slice(),\n\t\t\troots = new Array(2);\n\n\t\tfunction processSegment(segment) {\n\t\t\tsegment._transformCoordinates(matrix, coords);\n\t\t\tfor (var i = 0; i < 2; i++) {\n\t\t\t\tCurve._addBounds(\n\t\t\t\t\tprevCoords[i],\n\t\t\t\t\tprevCoords[i + 4],\n\t\t\t\t\tcoords[i + 2],\n\t\t\t\t\tcoords[i],\n\t\t\t\t\ti, strokePadding ? strokePadding[i] : 0, min, max, roots);\n\t\t\t}\n\t\t\tvar tmp = prevCoords;\n\t\t\tprevCoords = coords;\n\t\t\tcoords = tmp;\n\t\t}\n\n\t\tfor (var i = 1, l = segments.length; i < l; i++)\n\t\t\tprocessSegment(segments[i]);\n\t\tif (closed)\n\t\t\tprocessSegment(first);\n\t\treturn new Rectangle(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n\t},\n\n\tgetStrokeBounds: function(segments, closed, path, matrix, options) {\n\t\tvar style = path.getStyle(),\n\t\t\tstroke = style.hasStroke(),\n\t\t\tstrokeWidth = style.getStrokeWidth(),\n\t\t\tstrokeMatrix = stroke && path._getStrokeMatrix(matrix, options),\n\t\t\tstrokePadding = stroke && Path._getStrokePadding(strokeWidth,\n\t\t\t\tstrokeMatrix),\n\t\t\tbounds = Path.getBounds(segments, closed, path, matrix, options,\n\t\t\t\tstrokePadding);\n\t\tif (!stroke)\n\t\t\treturn bounds;\n\t\tvar strokeRadius = strokeWidth / 2,\n\t\t\tjoin = style.getStrokeJoin(),\n\t\t\tcap = style.getStrokeCap(),\n\t\t\tmiterLimit = style.getMiterLimit(),\n\t\t\tjoinBounds = new Rectangle(new Size(strokePadding));\n\n\t\tfunction addPoint(point) {\n\t\t\tbounds = bounds.include(point);\n\t\t}\n\n\t\tfunction addRound(segment) {\n\t\t\tbounds = bounds.unite(\n\t\t\t\t\tjoinBounds.setCenter(segment._point.transform(matrix)));\n\t\t}\n\n\t\tfunction addJoin(segment, join) {\n\t\t\tif (join === 'round' || segment.isSmooth()) {\n\t\t\t\taddRound(segment);\n\t\t\t} else {\n\t\t\t\tPath._addBevelJoin(segment, join, strokeRadius, miterLimit,\n\t\t\t\t\t\tmatrix, strokeMatrix, addPoint);\n\t\t\t}\n\t\t}\n\n\t\tfunction addCap(segment, cap) {\n\t\t\tif (cap === 'round') {\n\t\t\t\taddRound(segment);\n\t\t\t} else {\n\t\t\t\tPath._addSquareCap(segment, cap, strokeRadius, matrix,\n\t\t\t\t\t\tstrokeMatrix, addPoint);\n\t\t\t}\n\t\t}\n\n\t\tvar length = segments.length - (closed ? 0 : 1);\n\t\tif (length > 0) {\n\t\t\tfor (var i = 1; i < length; i++) {\n\t\t\t\taddJoin(segments[i], join);\n\t\t\t}\n\t\t\tif (closed) {\n\t\t\t\taddJoin(segments[0], join);\n\t\t\t} else {\n\t\t\t\taddCap(segments[0], cap);\n\t\t\t\taddCap(segments[segments.length - 1], cap);\n\t\t\t}\n\t\t}\n\t\treturn bounds;\n\t},\n\n\t_getStrokePadding: function(radius, matrix) {\n\t\tif (!matrix)\n\t\t\treturn [radius, radius];\n\t\tvar hor = new Point(radius, 0).transform(matrix),\n\t\t\tver = new Point(0, radius).transform(matrix),\n\t\t\tphi = hor.getAngleInRadians(),\n\t\t\ta = hor.getLength(),\n\t\t\tb = ver.getLength();\n\t\tvar sin = Math.sin(phi),\n\t\t\tcos = Math.cos(phi),\n\t\t\ttan = Math.tan(phi),\n\t\t\ttx = Math.atan2(b * tan, a),\n\t\t\tty = Math.atan2(b, tan * a);\n\t\treturn [Math.abs(a * Math.cos(tx) * cos + b * Math.sin(tx) * sin),\n\t\t\t\tMath.abs(b * Math.sin(ty) * cos + a * Math.cos(ty) * sin)];\n\t},\n\n\t_addBevelJoin: function(segment, join, radius, miterLimit, matrix,\n\t\t\tstrokeMatrix, addPoint, isArea) {\n\t\tvar curve2 = segment.getCurve(),\n\t\t\tcurve1 = curve2.getPrevious(),\n\t\t\tpoint = curve2.getPoint1().transform(matrix),\n\t\t\tnormal1 = curve1.getNormalAtTime(1).multiply(radius)\n\t\t\t\t.transform(strokeMatrix),\n\t\t\tnormal2 = curve2.getNormalAtTime(0).multiply(radius)\n\t\t\t\t.transform(strokeMatrix),\n\t\t\t\tangle = normal1.getDirectedAngle(normal2);\n\t\tif (angle < 0 || angle >= 180) {\n\t\t\tnormal1 = normal1.negate();\n\t\t\tnormal2 = normal2.negate();\n\t\t}\n\t\tif (isArea)\n\t\t\taddPoint(point);\n\t\taddPoint(point.add(normal1));\n\t\tif (join === 'miter') {\n\t\t\tvar corner = new Line(point.add(normal1),\n\t\t\t\t\tnew Point(-normal1.y, normal1.x), true\n\t\t\t\t).intersect(new Line(point.add(normal2),\n\t\t\t\t\tnew Point(-normal2.y, normal2.x), true\n\t\t\t\t), true);\n\t\t\tif (corner && point.getDistance(corner) <= miterLimit * radius) {\n\t\t\t\taddPoint(corner);\n\t\t\t}\n\t\t}\n\t\taddPoint(point.add(normal2));\n\t},\n\n\t_addSquareCap: function(segment, cap, radius, matrix, strokeMatrix,\n\t\t\taddPoint, isArea) {\n\t\tvar point = segment._point.transform(matrix),\n\t\t\tloc = segment.getLocation(),\n\t\t\tnormal = loc.getNormal()\n\t\t\t\t\t.multiply(loc.getTime() === 0 ? radius : -radius)\n\t\t\t\t\t.transform(strokeMatrix);\n\t\tif (cap === 'square') {\n\t\t\tif (isArea) {\n\t\t\t\taddPoint(point.subtract(normal));\n\t\t\t\taddPoint(point.add(normal));\n\t\t\t}\n\t\t\tpoint = point.add(normal.rotate(-90));\n\t\t}\n\t\taddPoint(point.add(normal));\n\t\taddPoint(point.subtract(normal));\n\t},\n\n\tgetHandleBounds: function(segments, closed, path, matrix, options) {\n\t\tvar style = path.getStyle(),\n\t\t\tstroke = options.stroke && style.hasStroke(),\n\t\t\tstrokePadding,\n\t\t\tjoinPadding;\n\t\tif (stroke) {\n\t\t\tvar strokeMatrix = path._getStrokeMatrix(matrix, options),\n\t\t\t\tstrokeRadius = style.getStrokeWidth() / 2,\n\t\t\t\tjoinRadius = strokeRadius;\n\t\t\tif (style.getStrokeJoin() === 'miter')\n\t\t\t\tjoinRadius = strokeRadius * style.getMiterLimit();\n\t\t\tif (style.getStrokeCap() === 'square')\n\t\t\t\tjoinRadius = Math.max(joinRadius, strokeRadius * Math.SQRT2);\n\t\t\tstrokePadding = Path._getStrokePadding(strokeRadius, strokeMatrix);\n\t\t\tjoinPadding = Path._getStrokePadding(joinRadius, strokeMatrix);\n\t\t}\n\t\tvar coords = new Array(6),\n\t\t\tx1 = Infinity,\n\t\t\tx2 = -x1,\n\t\t\ty1 = x1,\n\t\t\ty2 = x2;\n\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\tvar segment = segments[i];\n\t\t\tsegment._transformCoordinates(matrix, coords);\n\t\t\tfor (var j = 0; j < 6; j += 2) {\n\t\t\t\tvar padding = !j ? joinPadding : strokePadding,\n\t\t\t\t\tpaddingX = padding ? padding[0] : 0,\n\t\t\t\t\tpaddingY = padding ? padding[1] : 0,\n\t\t\t\t\tx = coords[j],\n\t\t\t\t\ty = coords[j + 1],\n\t\t\t\t\txn = x - paddingX,\n\t\t\t\t\txx = x + paddingX,\n\t\t\t\t\tyn = y - paddingY,\n\t\t\t\t\tyx = y + paddingY;\n\t\t\t\tif (xn < x1) x1 = xn;\n\t\t\t\tif (xx > x2) x2 = xx;\n\t\t\t\tif (yn < y1) y1 = yn;\n\t\t\t\tif (yx > y2) y2 = yx;\n\t\t\t}\n\t\t}\n\t\treturn new Rectangle(x1, y1, x2 - x1, y2 - y1);\n\t}\n}});\n\nPath.inject({ statics: new function() {\n\n\tvar kappa = 0.5522847498307936,\n\t\tellipseSegments = [\n\t\t\tnew Segment([-1, 0], [0, kappa ], [0, -kappa]),\n\t\t\tnew Segment([0, -1], [-kappa, 0], [kappa, 0 ]),\n\t\t\tnew Segment([1, 0], [0, -kappa], [0, kappa ]),\n\t\t\tnew Segment([0, 1], [kappa, 0 ], [-kappa, 0])\n\t\t];\n\n\tfunction createPath(segments, closed, args) {\n\t\tvar props = Base.getNamed(args),\n\t\t\tpath = new Path(props && (\n\t\t\t\tprops.insert == true ? Item.INSERT\n\t\t\t\t: props.insert == false ? Item.NO_INSERT\n\t\t\t\t: null\n\t\t\t));\n\t\tpath._add(segments);\n\t\tpath._closed = closed;\n\t\treturn path.set(props, Item.INSERT);\n\t}\n\n\tfunction createEllipse(center, radius, args) {\n\t\tvar segments = new Array(4);\n\t\tfor (var i = 0; i < 4; i++) {\n\t\t\tvar segment = ellipseSegments[i];\n\t\t\tsegments[i] = new Segment(\n\t\t\t\tsegment._point.multiply(radius).add(center),\n\t\t\t\tsegment._handleIn.multiply(radius),\n\t\t\t\tsegment._handleOut.multiply(radius)\n\t\t\t);\n\t\t}\n\t\treturn createPath(segments, true, args);\n\t}\n\n\treturn {\n\t\tLine: function() {\n\t\t\tvar args = arguments;\n\t\t\treturn createPath([\n\t\t\t\tnew Segment(Point.readNamed(args, 'from')),\n\t\t\t\tnew Segment(Point.readNamed(args, 'to'))\n\t\t\t], false, args);\n\t\t},\n\n\t\tCircle: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tcenter = Point.readNamed(args, 'center'),\n\t\t\t\tradius = Base.readNamed(args, 'radius');\n\t\t\treturn createEllipse(center, new Size(radius), args);\n\t\t},\n\n\t\tRectangle: function() {\n\t\t\tvar args = arguments,\n\t\t\t\trect = Rectangle.readNamed(args, 'rectangle'),\n\t\t\t\tradius = Size.readNamed(args, 'radius', 0,\n\t\t\t\t\t\t{ readNull: true }),\n\t\t\t\tbl = rect.getBottomLeft(true),\n\t\t\t\ttl = rect.getTopLeft(true),\n\t\t\t\ttr = rect.getTopRight(true),\n\t\t\t\tbr = rect.getBottomRight(true),\n\t\t\t\tsegments;\n\t\t\tif (!radius || radius.isZero()) {\n\t\t\t\tsegments = [\n\t\t\t\t\tnew Segment(bl),\n\t\t\t\t\tnew Segment(tl),\n\t\t\t\t\tnew Segment(tr),\n\t\t\t\t\tnew Segment(br)\n\t\t\t\t];\n\t\t\t} else {\n\t\t\t\tradius = Size.min(radius, rect.getSize(true).divide(2));\n\t\t\t\tvar rx = radius.width,\n\t\t\t\t\try = radius.height,\n\t\t\t\t\thx = rx * kappa,\n\t\t\t\t\thy = ry * kappa;\n\t\t\t\tsegments = [\n\t\t\t\t\tnew Segment(bl.add(rx, 0), null, [-hx, 0]),\n\t\t\t\t\tnew Segment(bl.subtract(0, ry), [0, hy]),\n\t\t\t\t\tnew Segment(tl.add(0, ry), null, [0, -hy]),\n\t\t\t\t\tnew Segment(tl.add(rx, 0), [-hx, 0], null),\n\t\t\t\t\tnew Segment(tr.subtract(rx, 0), null, [hx, 0]),\n\t\t\t\t\tnew Segment(tr.add(0, ry), [0, -hy], null),\n\t\t\t\t\tnew Segment(br.subtract(0, ry), null, [0, hy]),\n\t\t\t\t\tnew Segment(br.subtract(rx, 0), [hx, 0])\n\t\t\t\t];\n\t\t\t}\n\t\t\treturn createPath(segments, true, args);\n\t\t},\n\n\t\tRoundRectangle: '#Rectangle',\n\n\t\tEllipse: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tellipse = Shape._readEllipse(args);\n\t\t\treturn createEllipse(ellipse.center, ellipse.radius, args);\n\t\t},\n\n\t\tOval: '#Ellipse',\n\n\t\tArc: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tfrom = Point.readNamed(args, 'from'),\n\t\t\t\tthrough = Point.readNamed(args, 'through'),\n\t\t\t\tto = Point.readNamed(args, 'to'),\n\t\t\t\tprops = Base.getNamed(args),\n\t\t\t\tpath = new Path(props && props.insert == false\n\t\t\t\t\t\t&& Item.NO_INSERT);\n\t\t\tpath.moveTo(from);\n\t\t\tpath.arcTo(through, to);\n\t\t\treturn path.set(props);\n\t\t},\n\n\t\tRegularPolygon: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tcenter = Point.readNamed(args, 'center'),\n\t\t\t\tsides = Base.readNamed(args, 'sides'),\n\t\t\t\tradius = Base.readNamed(args, 'radius'),\n\t\t\t\tstep = 360 / sides,\n\t\t\t\tthree = sides % 3 === 0,\n\t\t\t\tvector = new Point(0, three ? -radius : radius),\n\t\t\t\toffset = three ? -1 : 0.5,\n\t\t\t\tsegments = new Array(sides);\n\t\t\tfor (var i = 0; i < sides; i++)\n\t\t\t\tsegments[i] = new Segment(center.add(\n\t\t\t\t\tvector.rotate((i + offset) * step)));\n\t\t\treturn createPath(segments, true, args);\n\t\t},\n\n\t\tStar: function() {\n\t\t\tvar args = arguments,\n\t\t\t\tcenter = Point.readNamed(args, 'center'),\n\t\t\t\tpoints = Base.readNamed(args, 'points') * 2,\n\t\t\t\tradius1 = Base.readNamed(args, 'radius1'),\n\t\t\t\tradius2 = Base.readNamed(args, 'radius2'),\n\t\t\t\tstep = 360 / points,\n\t\t\t\tvector = new Point(0, -1),\n\t\t\t\tsegments = new Array(points);\n\t\t\tfor (var i = 0; i < points; i++)\n\t\t\t\tsegments[i] = new Segment(center.add(vector.rotate(step * i)\n\t\t\t\t\t\t.multiply(i % 2 ? radius2 : radius1)));\n\t\t\treturn createPath(segments, true, args);\n\t\t}\n\t};\n}});\n\nvar CompoundPath = PathItem.extend({\n\t_class: 'CompoundPath',\n\t_serializeFields: {\n\t\tchildren: []\n\t},\n\tbeans: true,\n\n\tinitialize: function CompoundPath(arg) {\n\t\tthis._children = [];\n\t\tthis._namedChildren = {};\n\t\tif (!this._initialize(arg)) {\n\t\t\tif (typeof arg === 'string') {\n\t\t\t\tthis.setPathData(arg);\n\t\t\t} else {\n\t\t\t\tthis.addChildren(Array.isArray(arg) ? arg : arguments);\n\t\t\t}\n\t\t}\n\t},\n\n\tinsertChildren: function insertChildren(index, items) {\n\t\tvar list = items,\n\t\t\tfirst = list[0];\n\t\tif (first && typeof first[0] === 'number')\n\t\t\tlist = [list];\n\t\tfor (var i = items.length - 1; i >= 0; i--) {\n\t\t\tvar item = list[i];\n\t\t\tif (list === items && !(item instanceof Path))\n\t\t\t\tlist = Base.slice(list);\n\t\t\tif (Array.isArray(item)) {\n\t\t\t\tlist[i] = new Path({ segments: item, insert: false });\n\t\t\t} else if (item instanceof CompoundPath) {\n\t\t\t\tlist.splice.apply(list, [i, 1].concat(item.removeChildren()));\n\t\t\t\titem.remove();\n\t\t\t}\n\t\t}\n\t\treturn insertChildren.base.call(this, index, list);\n\t},\n\n\treduce: function reduce(options) {\n\t\tvar children = this._children;\n\t\tfor (var i = children.length - 1; i >= 0; i--) {\n\t\t\tvar path = children[i].reduce(options);\n\t\t\tif (path.isEmpty())\n\t\t\t\tpath.remove();\n\t\t}\n\t\tif (!children.length) {\n\t\t\tvar path = new Path(Item.NO_INSERT);\n\t\t\tpath.copyAttributes(this);\n\t\t\tpath.insertAbove(this);\n\t\t\tthis.remove();\n\t\t\treturn path;\n\t\t}\n\t\treturn reduce.base.call(this);\n\t},\n\n\tisClosed: function() {\n\t\tvar children = this._children;\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tif (!children[i]._closed)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\tsetClosed: function(closed) {\n\t\tvar children = this._children;\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tchildren[i].setClosed(closed);\n\t\t}\n\t},\n\n\tgetFirstSegment: function() {\n\t\tvar first = this.getFirstChild();\n\t\treturn first && first.getFirstSegment();\n\t},\n\n\tgetLastSegment: function() {\n\t\tvar last = this.getLastChild();\n\t\treturn last && last.getLastSegment();\n\t},\n\n\tgetCurves: function() {\n\t\tvar children = this._children,\n\t\t\tcurves = [];\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tBase.push(curves, children[i].getCurves());\n\t\t}\n\t\treturn curves;\n\t},\n\n\tgetFirstCurve: function() {\n\t\tvar first = this.getFirstChild();\n\t\treturn first && first.getFirstCurve();\n\t},\n\n\tgetLastCurve: function() {\n\t\tvar last = this.getLastChild();\n\t\treturn last && last.getLastCurve();\n\t},\n\n\tgetArea: function() {\n\t\tvar children = this._children,\n\t\t\tarea = 0;\n\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\tarea += children[i].getArea();\n\t\treturn area;\n\t},\n\n\tgetLength: function() {\n\t\tvar children = this._children,\n\t\t\tlength = 0;\n\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\tlength += children[i].getLength();\n\t\treturn length;\n\t},\n\n\tgetPathData: function(_matrix, _precision) {\n\t\tvar children = this._children,\n\t\t\tpaths = [];\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tvar child = children[i],\n\t\t\t\tmx = child._matrix;\n\t\t\tpaths.push(child.getPathData(_matrix && !mx.isIdentity()\n\t\t\t\t\t? _matrix.appended(mx) : _matrix, _precision));\n\t\t}\n\t\treturn paths.join('');\n\t},\n\n\t_hitTestChildren: function _hitTestChildren(point, options, viewMatrix) {\n\t\treturn _hitTestChildren.base.call(this, point,\n\t\t\t\toptions.class === Path || options.type === 'path' ? options\n\t\t\t\t\t: Base.set({}, options, { fill: false }),\n\t\t\t\tviewMatrix);\n\t},\n\n\t_draw: function(ctx, param, viewMatrix, strokeMatrix) {\n\t\tvar children = this._children;\n\t\tif (!children.length)\n\t\t\treturn;\n\n\t\tparam = param.extend({ dontStart: true, dontFinish: true });\n\t\tctx.beginPath();\n\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\tchildren[i].draw(ctx, param, strokeMatrix);\n\n\t\tif (!param.clip) {\n\t\t\tthis._setStyles(ctx, param, viewMatrix);\n\t\t\tvar style = this._style;\n\t\t\tif (style.hasFill()) {\n\t\t\t\tctx.fill(style.getFillRule());\n\t\t\t\tctx.shadowColor = 'rgba(0,0,0,0)';\n\t\t\t}\n\t\t\tif (style.hasStroke())\n\t\t\t\tctx.stroke();\n\t\t}\n\t},\n\n\t_drawSelected: function(ctx, matrix, selectionItems) {\n\t\tvar children = this._children;\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tvar child = children[i],\n\t\t\t\tmx = child._matrix;\n\t\t\tif (!selectionItems[child._id]) {\n\t\t\t\tchild._drawSelected(ctx, mx.isIdentity() ? matrix\n\t\t\t\t\t\t: matrix.appended(mx));\n\t\t\t}\n\t\t}\n\t}\n},\nnew function() {\n\tfunction getCurrentPath(that, check) {\n\t\tvar children = that._children;\n\t\tif (check && !children.length)\n\t\t\tthrow new Error('Use a moveTo() command first');\n\t\treturn children[children.length - 1];\n\t}\n\n\treturn Base.each(['lineTo', 'cubicCurveTo', 'quadraticCurveTo', 'curveTo',\n\t\t\t'arcTo', 'lineBy', 'cubicCurveBy', 'quadraticCurveBy', 'curveBy',\n\t\t\t'arcBy'],\n\t\tfunction(key) {\n\t\t\tthis[key] = function() {\n\t\t\t\tvar path = getCurrentPath(this, true);\n\t\t\t\tpath[key].apply(path, arguments);\n\t\t\t};\n\t\t}, {\n\t\t\tmoveTo: function() {\n\t\t\t\tvar current = getCurrentPath(this),\n\t\t\t\t\tpath = current && current.isEmpty() ? current\n\t\t\t\t\t\t\t: new Path(Item.NO_INSERT);\n\t\t\t\tif (path !== current)\n\t\t\t\t\tthis.addChild(path);\n\t\t\t\tpath.moveTo.apply(path, arguments);\n\t\t\t},\n\n\t\t\tmoveBy: function() {\n\t\t\t\tvar current = getCurrentPath(this, true),\n\t\t\t\t\tlast = current && current.getLastSegment(),\n\t\t\t\t\tpoint = Point.read(arguments);\n\t\t\t\tthis.moveTo(last ? point.add(last._point) : point);\n\t\t\t},\n\n\t\t\tclosePath: function(tolerance) {\n\t\t\t\tgetCurrentPath(this, true).closePath(tolerance);\n\t\t\t}\n\t\t}\n\t);\n}, Base.each(['reverse', 'flatten', 'simplify', 'smooth'], function(key) {\n\tthis[key] = function(param) {\n\t\tvar children = this._children,\n\t\t\tres;\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tres = children[i][key](param) || res;\n\t\t}\n\t\treturn res;\n\t};\n}, {}));\n\nPathItem.inject(new function() {\n\tvar min = Math.min,\n\t\tmax = Math.max,\n\t\tabs = Math.abs,\n\t\toperators = {\n\t\t\tunite: { '1': true, '2': true },\n\t\t\tintersect: { '2': true },\n\t\t\tsubtract: { '1': true },\n\t\t\texclude: { '1': true, '-1': true }\n\t\t};\n\n\tfunction getPaths(path) {\n\t\treturn path._children || [path];\n\t}\n\n\tfunction preparePath(path, resolve) {\n\t\tvar res = path\n\t\t\t.clone(false)\n\t\t\t.reduce({ simplify: true })\n\t\t\t.transform(null, true, true);\n\t\tif (resolve) {\n\t\t\tvar paths = getPaths(res);\n\t\t\tfor (var i = 0, l = paths.length; i < l; i++) {\n\t\t\t\tvar path = paths[i];\n\t\t\t\tif (!path._closed && !path.isEmpty()) {\n\t\t\t\t\tpath.closePath(1e-12);\n\t\t\t\t\tpath.getFirstSegment().setHandleIn(0, 0);\n\t\t\t\t\tpath.getLastSegment().setHandleOut(0, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tres = res\n\t\t\t\t.resolveCrossings()\n\t\t\t\t.reorient(res.getFillRule() === 'nonzero', true);\n\t\t}\n\t\treturn res;\n\t}\n\n\tfunction createResult(paths, simplify, path1, path2, options) {\n\t\tvar result = new CompoundPath(Item.NO_INSERT);\n\t\tresult.addChildren(paths, true);\n\t\tresult = result.reduce({ simplify: simplify });\n\t\tif (!(options && options.insert == false)) {\n\t\t\tresult.insertAbove(path2 && path1.isSibling(path2)\n\t\t\t\t\t&& path1.getIndex() < path2.getIndex() ? path2 : path1);\n\t\t}\n\t\tresult.copyAttributes(path1, true);\n\t\treturn result;\n\t}\n\n\tfunction filterIntersection(inter) {\n\t\treturn inter.hasOverlap() || inter.isCrossing();\n\t}\n\n\tfunction traceBoolean(path1, path2, operation, options) {\n\t\tif (options && (options.trace == false || options.stroke) &&\n\t\t\t\t/^(subtract|intersect)$/.test(operation))\n\t\t\treturn splitBoolean(path1, path2, operation);\n\t\tvar _path1 = preparePath(path1, true),\n\t\t\t_path2 = path2 && path1 !== path2 && preparePath(path2, true),\n\t\t\toperator = operators[operation];\n\t\toperator[operation] = true;\n\t\tif (_path2 && (operator.subtract || operator.exclude)\n\t\t\t\t^ (_path2.isClockwise() ^ _path1.isClockwise()))\n\t\t\t_path2.reverse();\n\t\tvar crossings = divideLocations(CurveLocation.expand(\n\t\t\t\t_path1.getIntersections(_path2, filterIntersection))),\n\t\t\tpaths1 = getPaths(_path1),\n\t\t\tpaths2 = _path2 && getPaths(_path2),\n\t\t\tsegments = [],\n\t\t\tcurves = [],\n\t\t\tpaths;\n\n\t\tfunction collectPaths(paths) {\n\t\t\tfor (var i = 0, l = paths.length; i < l; i++) {\n\t\t\t\tvar path = paths[i];\n\t\t\t\tBase.push(segments, path._segments);\n\t\t\t\tBase.push(curves, path.getCurves());\n\t\t\t\tpath._overlapsOnly = true;\n\t\t\t}\n\t\t}\n\n\t\tfunction getCurves(indices) {\n\t\t\tvar list = [];\n\t\t\tfor (var i = 0, l = indices && indices.length; i < l; i++) {\n\t\t\t\tlist.push(curves[indices[i]]);\n\t\t\t}\n\t\t\treturn list;\n\t\t}\n\n\t\tif (crossings.length) {\n\t\t\tcollectPaths(paths1);\n\t\t\tif (paths2)\n\t\t\t\tcollectPaths(paths2);\n\n\t\t\tvar curvesValues = new Array(curves.length);\n\t\t\tfor (var i = 0, l = curves.length; i < l; i++) {\n\t\t\t\tcurvesValues[i] = curves[i].getValues();\n\t\t\t}\n\t\t\tvar curveCollisions = CollisionDetection.findCurveBoundsCollisions(\n\t\t\t\t\tcurvesValues, curvesValues, 0, true);\n\t\t\tvar curveCollisionsMap = {};\n\t\t\tfor (var i = 0; i < curves.length; i++) {\n\t\t\t\tvar curve = curves[i],\n\t\t\t\t\tid = curve._path._id,\n\t\t\t\t\tmap = curveCollisionsMap[id] = curveCollisionsMap[id] || {};\n\t\t\t\tmap[curve.getIndex()] = {\n\t\t\t\t\thor: getCurves(curveCollisions[i].hor),\n\t\t\t\t\tver: getCurves(curveCollisions[i].ver)\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tfor (var i = 0, l = crossings.length; i < l; i++) {\n\t\t\t\tpropagateWinding(crossings[i]._segment, _path1, _path2,\n\t\t\t\t\t\tcurveCollisionsMap, operator);\n\t\t\t}\n\t\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\t\tvar segment = segments[i],\n\t\t\t\t\tinter = segment._intersection;\n\t\t\t\tif (!segment._winding) {\n\t\t\t\t\tpropagateWinding(segment, _path1, _path2,\n\t\t\t\t\t\t\tcurveCollisionsMap, operator);\n\t\t\t\t}\n\t\t\t\tif (!(inter && inter._overlap))\n\t\t\t\t\tsegment._path._overlapsOnly = false;\n\t\t\t}\n\t\t\tpaths = tracePaths(segments, operator);\n\t\t} else {\n\t\t\tpaths = reorientPaths(\n\t\t\t\t\tpaths2 ? paths1.concat(paths2) : paths1.slice(),\n\t\t\t\t\tfunction(w) {\n\t\t\t\t\t\treturn !!operator[w];\n\t\t\t\t\t});\n\t\t}\n\t\treturn createResult(paths, true, path1, path2, options);\n\t}\n\n\tfunction splitBoolean(path1, path2, operation) {\n\t\tvar _path1 = preparePath(path1),\n\t\t\t_path2 = preparePath(path2),\n\t\t\tcrossings = _path1.getIntersections(_path2, filterIntersection),\n\t\t\tsubtract = operation === 'subtract',\n\t\t\tdivide = operation === 'divide',\n\t\t\tadded = {},\n\t\t\tpaths = [];\n\n\t\tfunction addPath(path) {\n\t\t\tif (!added[path._id] && (divide ||\n\t\t\t\t\t_path2.contains(path.getPointAt(path.getLength() / 2))\n\t\t\t\t\t\t^ subtract)) {\n\t\t\t\tpaths.unshift(path);\n\t\t\t\treturn added[path._id] = true;\n\t\t\t}\n\t\t}\n\n\t\tfor (var i = crossings.length - 1; i >= 0; i--) {\n\t\t\tvar path = crossings[i].split();\n\t\t\tif (path) {\n\t\t\t\tif (addPath(path))\n\t\t\t\t\tpath.getFirstSegment().setHandleIn(0, 0);\n\t\t\t\t_path1.getLastSegment().setHandleOut(0, 0);\n\t\t\t}\n\t\t}\n\t\taddPath(_path1);\n\t\treturn createResult(paths, false, path1, path2);\n\t}\n\n\tfunction linkIntersections(from, to) {\n\t\tvar prev = from;\n\t\twhile (prev) {\n\t\t\tif (prev === to)\n\t\t\t\treturn;\n\t\t\tprev = prev._previous;\n\t\t}\n\t\twhile (from._next && from._next !== to)\n\t\t\tfrom = from._next;\n\t\tif (!from._next) {\n\t\t\twhile (to._previous)\n\t\t\t\tto = to._previous;\n\t\t\tfrom._next = to;\n\t\t\tto._previous = from;\n\t\t}\n\t}\n\n\tfunction clearCurveHandles(curves) {\n\t\tfor (var i = curves.length - 1; i >= 0; i--)\n\t\t\tcurves[i].clearHandles();\n\t}\n\n\tfunction reorientPaths(paths, isInside, clockwise) {\n\t\tvar length = paths && paths.length;\n\t\tif (length) {\n\t\t\tvar lookup = Base.each(paths, function (path, i) {\n\t\t\t\t\tthis[path._id] = {\n\t\t\t\t\t\tcontainer: null,\n\t\t\t\t\t\twinding: path.isClockwise() ? 1 : -1,\n\t\t\t\t\t\tindex: i\n\t\t\t\t\t};\n\t\t\t\t}, {}),\n\t\t\t\tsorted = paths.slice().sort(function (a, b) {\n\t\t\t\t\treturn abs(b.getArea()) - abs(a.getArea());\n\t\t\t\t}),\n\t\t\t\tfirst = sorted[0];\n\t\t\tvar collisions = CollisionDetection.findItemBoundsCollisions(sorted,\n\t\t\t\t\tnull, Numerical.GEOMETRIC_EPSILON);\n\t\t\tif (clockwise == null)\n\t\t\t\tclockwise = first.isClockwise();\n\t\t\tfor (var i = 0; i < length; i++) {\n\t\t\t\tvar path1 = sorted[i],\n\t\t\t\t\tentry1 = lookup[path1._id],\n\t\t\t\t\tcontainerWinding = 0,\n\t\t\t\t\tindices = collisions[i];\n\t\t\t\tif (indices) {\n\t\t\t\t\tvar point = null;\n\t\t\t\t\tfor (var j = indices.length - 1; j >= 0; j--) {\n\t\t\t\t\t\tif (indices[j] < i) {\n\t\t\t\t\t\t\tpoint = point || path1.getInteriorPoint();\n\t\t\t\t\t\t\tvar path2 = sorted[indices[j]];\n\t\t\t\t\t\t\tif (path2.contains(point)) {\n\t\t\t\t\t\t\t\tvar entry2 = lookup[path2._id];\n\t\t\t\t\t\t\t\tcontainerWinding = entry2.winding;\n\t\t\t\t\t\t\t\tentry1.winding += containerWinding;\n\t\t\t\t\t\t\t\tentry1.container = entry2.exclude\n\t\t\t\t\t\t\t\t\t? entry2.container : path2;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (isInside(entry1.winding) === isInside(containerWinding)) {\n\t\t\t\t\tentry1.exclude = true;\n\t\t\t\t\tpaths[entry1.index] = null;\n\t\t\t\t} else {\n\t\t\t\t\tvar container = entry1.container;\n\t\t\t\t\tpath1.setClockwise(\n\t\t\t\t\t\t\tcontainer ? !container.isClockwise() : clockwise);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn paths;\n\t}\n\n\tfunction divideLocations(locations, include, clearLater) {\n\t\tvar results = include && [],\n\t\t\ttMin = 1e-8,\n\t\t\ttMax = 1 - tMin,\n\t\t\tclearHandles = false,\n\t\t\tclearCurves = clearLater || [],\n\t\t\tclearLookup = clearLater && {},\n\t\t\trenormalizeLocs,\n\t\t\tprevCurve,\n\t\t\tprevTime;\n\n\t\tfunction getId(curve) {\n\t\t\treturn curve._path._id + '.' + curve._segment1._index;\n\t\t}\n\n\t\tfor (var i = (clearLater && clearLater.length) - 1; i >= 0; i--) {\n\t\t\tvar curve = clearLater[i];\n\t\t\tif (curve._path)\n\t\t\t\tclearLookup[getId(curve)] = true;\n\t\t}\n\n\t\tfor (var i = locations.length - 1; i >= 0; i--) {\n\t\t\tvar loc = locations[i],\n\t\t\t\ttime = loc._time,\n\t\t\t\torigTime = time,\n\t\t\t\texclude = include && !include(loc),\n\t\t\t\tcurve = loc._curve,\n\t\t\t\tsegment;\n\t\t\tif (curve) {\n\t\t\t\tif (curve !== prevCurve) {\n\t\t\t\t\tclearHandles = !curve.hasHandles()\n\t\t\t\t\t\t\t|| clearLookup && clearLookup[getId(curve)];\n\t\t\t\t\trenormalizeLocs = [];\n\t\t\t\t\tprevTime = null;\n\t\t\t\t\tprevCurve = curve;\n\t\t\t\t} else if (prevTime >= tMin) {\n\t\t\t\t\ttime /= prevTime;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (exclude) {\n\t\t\t\tif (renormalizeLocs)\n\t\t\t\t\trenormalizeLocs.push(loc);\n\t\t\t\tcontinue;\n\t\t\t} else if (include) {\n\t\t\t\tresults.unshift(loc);\n\t\t\t}\n\t\t\tprevTime = origTime;\n\t\t\tif (time < tMin) {\n\t\t\t\tsegment = curve._segment1;\n\t\t\t} else if (time > tMax) {\n\t\t\t\tsegment = curve._segment2;\n\t\t\t} else {\n\t\t\t\tvar newCurve = curve.divideAtTime(time, true);\n\t\t\t\tif (clearHandles)\n\t\t\t\t\tclearCurves.push(curve, newCurve);\n\t\t\t\tsegment = newCurve._segment1;\n\t\t\t\tfor (var j = renormalizeLocs.length - 1; j >= 0; j--) {\n\t\t\t\t\tvar l = renormalizeLocs[j];\n\t\t\t\t\tl._time = (l._time - time) / (1 - time);\n\t\t\t\t}\n\t\t\t}\n\t\t\tloc._setSegment(segment);\n\t\t\tvar inter = segment._intersection,\n\t\t\t\tdest = loc._intersection;\n\t\t\tif (inter) {\n\t\t\t\tlinkIntersections(inter, dest);\n\t\t\t\tvar other = inter;\n\t\t\t\twhile (other) {\n\t\t\t\t\tlinkIntersections(other._intersection, inter);\n\t\t\t\t\tother = other._next;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsegment._intersection = dest;\n\t\t\t}\n\t\t}\n\t\tif (!clearLater)\n\t\t\tclearCurveHandles(clearCurves);\n\t\treturn results || locations;\n\t}\n\n\tfunction getWinding(point, curves, dir, closed, dontFlip) {\n\t\tvar curvesList = Array.isArray(curves)\n\t\t\t? curves\n\t\t\t: curves[dir ? 'hor' : 'ver'];\n\t\tvar ia = dir ? 1 : 0,\n\t\t\tio = ia ^ 1,\n\t\t\tpv = [point.x, point.y],\n\t\t\tpa = pv[ia],\n\t\t\tpo = pv[io],\n\t\t\twindingEpsilon = 1e-9,\n\t\t\tqualityEpsilon = 1e-6,\n\t\t\tpaL = pa - windingEpsilon,\n\t\t\tpaR = pa + windingEpsilon,\n\t\t\twindingL = 0,\n\t\t\twindingR = 0,\n\t\t\tpathWindingL = 0,\n\t\t\tpathWindingR = 0,\n\t\t\tonPath = false,\n\t\t\tonAnyPath = false,\n\t\t\tquality = 1,\n\t\t\troots = [],\n\t\t\tvPrev,\n\t\t\tvClose;\n\n\t\tfunction addWinding(v) {\n\t\t\tvar o0 = v[io + 0],\n\t\t\t\to3 = v[io + 6];\n\t\t\tif (po < min(o0, o3) || po > max(o0, o3)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar a0 = v[ia + 0],\n\t\t\t\ta1 = v[ia + 2],\n\t\t\t\ta2 = v[ia + 4],\n\t\t\t\ta3 = v[ia + 6];\n\t\t\tif (o0 === o3) {\n\t\t\t\tif (a0 < paR && a3 > paL || a3 < paR && a0 > paL) {\n\t\t\t\t\tonPath = true;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvar t = po === o0 ? 0\n\t\t\t\t\t: po === o3 ? 1\n\t\t\t\t\t: paL > max(a0, a1, a2, a3) || paR < min(a0, a1, a2, a3)\n\t\t\t\t\t? 1\n\t\t\t\t\t: Curve.solveCubic(v, io, po, roots, 0, 1) > 0\n\t\t\t\t\t\t? roots[0]\n\t\t\t\t\t\t: 1,\n\t\t\t\ta = t === 0 ? a0\n\t\t\t\t\t: t === 1 ? a3\n\t\t\t\t\t: Curve.getPoint(v, t)[dir ? 'y' : 'x'],\n\t\t\t\twinding = o0 > o3 ? 1 : -1,\n\t\t\t\twindingPrev = vPrev[io] > vPrev[io + 6] ? 1 : -1,\n\t\t\t\ta3Prev = vPrev[ia + 6];\n\t\t\tif (po !== o0) {\n\t\t\t\tif (a < paL) {\n\t\t\t\t\tpathWindingL += winding;\n\t\t\t\t} else if (a > paR) {\n\t\t\t\t\tpathWindingR += winding;\n\t\t\t\t} else {\n\t\t\t\t\tonPath = true;\n\t\t\t\t}\n\t\t\t\tif (a > pa - qualityEpsilon && a < pa + qualityEpsilon)\n\t\t\t\t\tquality /= 2;\n\t\t\t} else {\n\t\t\t\tif (winding !== windingPrev) {\n\t\t\t\t\tif (a0 < paL) {\n\t\t\t\t\t\tpathWindingL += winding;\n\t\t\t\t\t} else if (a0 > paR) {\n\t\t\t\t\t\tpathWindingR += winding;\n\t\t\t\t\t}\n\t\t\t\t} else if (a0 != a3Prev) {\n\t\t\t\t\tif (a3Prev < paR && a > paR) {\n\t\t\t\t\t\tpathWindingR += winding;\n\t\t\t\t\t\tonPath = true;\n\t\t\t\t\t} else if (a3Prev > paL && a < paL) {\n\t\t\t\t\t\tpathWindingL += winding;\n\t\t\t\t\t\tonPath = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tquality /= 4;\n\t\t\t}\n\t\t\tvPrev = v;\n\t\t\treturn !dontFlip && a > paL && a < paR\n\t\t\t\t\t&& Curve.getTangent(v, t)[dir ? 'x' : 'y'] === 0\n\t\t\t\t\t&& getWinding(point, curves, !dir, closed, true);\n\t\t}\n\n\t\tfunction handleCurve(v) {\n\t\t\tvar o0 = v[io + 0],\n\t\t\t\to1 = v[io + 2],\n\t\t\t\to2 = v[io + 4],\n\t\t\t\to3 = v[io + 6];\n\t\t\tif (po <= max(o0, o1, o2, o3) && po >= min(o0, o1, o2, o3)) {\n\t\t\t\tvar a0 = v[ia + 0],\n\t\t\t\t\ta1 = v[ia + 2],\n\t\t\t\t\ta2 = v[ia + 4],\n\t\t\t\t\ta3 = v[ia + 6],\n\t\t\t\t\tmonoCurves = paL > max(a0, a1, a2, a3) ||\n\t\t\t\t\t\t\t\t paR < min(a0, a1, a2, a3)\n\t\t\t\t\t\t\t? [v] : Curve.getMonoCurves(v, dir),\n\t\t\t\t\tres;\n\t\t\t\tfor (var i = 0, l = monoCurves.length; i < l; i++) {\n\t\t\t\t\tif (res = addWinding(monoCurves[i]))\n\t\t\t\t\t\treturn res;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (var i = 0, l = curvesList.length; i < l; i++) {\n\t\t\tvar curve = curvesList[i],\n\t\t\t\tpath = curve._path,\n\t\t\t\tv = curve.getValues(),\n\t\t\t\tres;\n\t\t\tif (!i || curvesList[i - 1]._path !== path) {\n\t\t\t\tvPrev = null;\n\t\t\t\tif (!path._closed) {\n\t\t\t\t\tvClose = Curve.getValues(\n\t\t\t\t\t\t\tpath.getLastCurve().getSegment2(),\n\t\t\t\t\t\t\tcurve.getSegment1(),\n\t\t\t\t\t\t\tnull, !closed);\n\t\t\t\t\tif (vClose[io] !== vClose[io + 6]) {\n\t\t\t\t\t\tvPrev = vClose;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (!vPrev) {\n\t\t\t\t\tvPrev = v;\n\t\t\t\t\tvar prev = path.getLastCurve();\n\t\t\t\t\twhile (prev && prev !== curve) {\n\t\t\t\t\t\tvar v2 = prev.getValues();\n\t\t\t\t\t\tif (v2[io] !== v2[io + 6]) {\n\t\t\t\t\t\t\tvPrev = v2;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tprev = prev.getPrevious();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (res = handleCurve(v))\n\t\t\t\treturn res;\n\n\t\t\tif (i + 1 === l || curvesList[i + 1]._path !== path) {\n\t\t\t\tif (vClose && (res = handleCurve(vClose)))\n\t\t\t\t\treturn res;\n\t\t\t\tif (onPath && !pathWindingL && !pathWindingR) {\n\t\t\t\t\tpathWindingL = pathWindingR = path.isClockwise(closed) ^ dir\n\t\t\t\t\t\t\t? 1 : -1;\n\t\t\t\t}\n\t\t\t\twindingL += pathWindingL;\n\t\t\t\twindingR += pathWindingR;\n\t\t\t\tpathWindingL = pathWindingR = 0;\n\t\t\t\tif (onPath) {\n\t\t\t\t\tonAnyPath = true;\n\t\t\t\t\tonPath = false;\n\t\t\t\t}\n\t\t\t\tvClose = null;\n\t\t\t}\n\t\t}\n\t\twindingL = abs(windingL);\n\t\twindingR = abs(windingR);\n\t\treturn {\n\t\t\twinding: max(windingL, windingR),\n\t\t\twindingL: windingL,\n\t\t\twindingR: windingR,\n\t\t\tquality: quality,\n\t\t\tonPath: onAnyPath\n\t\t};\n\t}\n\n\tfunction propagateWinding(segment, path1, path2, curveCollisionsMap,\n\t\t\toperator) {\n\t\tvar chain = [],\n\t\t\tstart = segment,\n\t\t\ttotalLength = 0,\n\t\t\twinding;\n\t\tdo {\n\t\t\tvar curve = segment.getCurve();\n\t\t\tif (curve) {\n\t\t\t\tvar length = curve.getLength();\n\t\t\t\tchain.push({ segment: segment, curve: curve, length: length });\n\t\t\t\ttotalLength += length;\n\t\t\t}\n\t\t\tsegment = segment.getNext();\n\t\t} while (segment && !segment._intersection && segment !== start);\n\t\tvar offsets = [0.5, 0.25, 0.75],\n\t\t\twinding = { winding: 0, quality: -1 },\n\t\t\ttMin = 1e-3,\n\t\t\ttMax = 1 - tMin;\n\t\tfor (var i = 0; i < offsets.length && winding.quality < 0.5; i++) {\n\t\t\tvar length = totalLength * offsets[i];\n\t\t\tfor (var j = 0, l = chain.length; j < l; j++) {\n\t\t\t\tvar entry = chain[j],\n\t\t\t\t\tcurveLength = entry.length;\n\t\t\t\tif (length <= curveLength) {\n\t\t\t\t\tvar curve = entry.curve,\n\t\t\t\t\t\tpath = curve._path,\n\t\t\t\t\t\tparent = path._parent,\n\t\t\t\t\t\toperand = parent instanceof CompoundPath ? parent : path,\n\t\t\t\t\t\tt = Numerical.clamp(curve.getTimeAt(length), tMin, tMax),\n\t\t\t\t\t\tpt = curve.getPointAtTime(t),\n\t\t\t\t\t\tdir = abs(curve.getTangentAtTime(t).y) < Math.SQRT1_2;\n\t\t\t\t\tvar wind = null;\n\t\t\t\t\tif (operator.subtract && path2) {\n\t\t\t\t\t\tvar otherPath = operand === path1 ? path2 : path1,\n\t\t\t\t\t\t\tpathWinding = otherPath._getWinding(pt, dir, true);\n\t\t\t\t\t\tif (operand === path1 && pathWinding.winding ||\n\t\t\t\t\t\t\toperand === path2 && !pathWinding.winding) {\n\t\t\t\t\t\t\tif (pathWinding.quality < 1) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\twind = { winding: 0, quality: 1 };\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\twind = wind || getWinding(\n\t\t\t\t\t\t\tpt, curveCollisionsMap[path._id][curve.getIndex()],\n\t\t\t\t\t\t\tdir, true);\n\t\t\t\t\tif (wind.quality > winding.quality)\n\t\t\t\t\t\twinding = wind;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tlength -= curveLength;\n\t\t\t}\n\t\t}\n\t\tfor (var j = chain.length - 1; j >= 0; j--) {\n\t\t\tchain[j].segment._winding = winding;\n\t\t}\n\t}\n\n\tfunction tracePaths(segments, operator) {\n\t\tvar paths = [],\n\t\t\tstarts;\n\n\t\tfunction isValid(seg) {\n\t\t\tvar winding;\n\t\t\treturn !!(seg && !seg._visited && (!operator\n\t\t\t\t\t|| operator[(winding = seg._winding || {}).winding]\n\t\t\t\t\t\t&& !(operator.unite && winding.winding === 2\n\t\t\t\t\t\t\t&& winding.windingL && winding.windingR)));\n\t\t}\n\n\t\tfunction isStart(seg) {\n\t\t\tif (seg) {\n\t\t\t\tfor (var i = 0, l = starts.length; i < l; i++) {\n\t\t\t\t\tif (seg === starts[i])\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\n\t\tfunction visitPath(path) {\n\t\t\tvar segments = path._segments;\n\t\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\t\tsegments[i]._visited = true;\n\t\t\t}\n\t\t}\n\n\t\tfunction getCrossingSegments(segment, collectStarts) {\n\t\t\tvar inter = segment._intersection,\n\t\t\t\tstart = inter,\n\t\t\t\tcrossings = [];\n\t\t\tif (collectStarts)\n\t\t\t\tstarts = [segment];\n\n\t\t\tfunction collect(inter, end) {\n\t\t\t\twhile (inter && inter !== end) {\n\t\t\t\t\tvar other = inter._segment,\n\t\t\t\t\t\tpath = other && other._path;\n\t\t\t\t\tif (path) {\n\t\t\t\t\t\tvar next = other.getNext() || path.getFirstSegment(),\n\t\t\t\t\t\t\tnextInter = next._intersection;\n\t\t\t\t\t\tif (other !== segment && (isStart(other)\n\t\t\t\t\t\t\t|| isStart(next)\n\t\t\t\t\t\t\t|| next && (isValid(other) && (isValid(next)\n\t\t\t\t\t\t\t\t|| nextInter && isValid(nextInter._segment))))\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tcrossings.push(other);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (collectStarts)\n\t\t\t\t\t\t\tstarts.push(other);\n\t\t\t\t\t}\n\t\t\t\t\tinter = inter._next;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (inter) {\n\t\t\t\tcollect(inter);\n\t\t\t\twhile (inter && inter._previous)\n\t\t\t\t\tinter = inter._previous;\n\t\t\t\tcollect(inter, start);\n\t\t\t}\n\t\t\treturn crossings;\n\t\t}\n\n\t\tsegments.sort(function(seg1, seg2) {\n\t\t\tvar inter1 = seg1._intersection,\n\t\t\t\tinter2 = seg2._intersection,\n\t\t\t\tover1 = !!(inter1 && inter1._overlap),\n\t\t\t\tover2 = !!(inter2 && inter2._overlap),\n\t\t\t\tpath1 = seg1._path,\n\t\t\t\tpath2 = seg2._path;\n\t\t\treturn over1 ^ over2\n\t\t\t\t\t? over1 ? 1 : -1\n\t\t\t\t\t: !inter1 ^ !inter2\n\t\t\t\t\t\t? inter1 ? 1 : -1\n\t\t\t\t\t\t: path1 !== path2\n\t\t\t\t\t\t\t? path1._id - path2._id\n\t\t\t\t\t\t\t: seg1._index - seg2._index;\n\t\t});\n\n\t\tfor (var i = 0, l = segments.length; i < l; i++) {\n\t\t\tvar seg = segments[i],\n\t\t\t\tvalid = isValid(seg),\n\t\t\t\tpath = null,\n\t\t\t\tfinished = false,\n\t\t\t\tclosed = true,\n\t\t\t\tbranches = [],\n\t\t\t\tbranch,\n\t\t\t\tvisited,\n\t\t\t\thandleIn;\n\t\t\tif (valid && seg._path._overlapsOnly) {\n\t\t\t\tvar path1 = seg._path,\n\t\t\t\t\tpath2 = seg._intersection._segment._path;\n\t\t\t\tif (path1.compare(path2)) {\n\t\t\t\t\tif (path1.getArea())\n\t\t\t\t\t\tpaths.push(path1.clone(false));\n\t\t\t\t\tvisitPath(path1);\n\t\t\t\t\tvisitPath(path2);\n\t\t\t\t\tvalid = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile (valid) {\n\t\t\t\tvar first = !path,\n\t\t\t\t\tcrossings = getCrossingSegments(seg, first),\n\t\t\t\t\tother = crossings.shift(),\n\t\t\t\t\tfinished = !first && (isStart(seg) || isStart(other)),\n\t\t\t\t\tcross = !finished && other;\n\t\t\t\tif (first) {\n\t\t\t\t\tpath = new Path(Item.NO_INSERT);\n\t\t\t\t\tbranch = null;\n\t\t\t\t}\n\t\t\t\tif (finished) {\n\t\t\t\t\tif (seg.isFirst() || seg.isLast())\n\t\t\t\t\t\tclosed = seg._path._closed;\n\t\t\t\t\tseg._visited = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (cross && branch) {\n\t\t\t\t\tbranches.push(branch);\n\t\t\t\t\tbranch = null;\n\t\t\t\t}\n\t\t\t\tif (!branch) {\n\t\t\t\t\tif (cross)\n\t\t\t\t\t\tcrossings.push(seg);\n\t\t\t\t\tbranch = {\n\t\t\t\t\t\tstart: path._segments.length,\n\t\t\t\t\t\tcrossings: crossings,\n\t\t\t\t\t\tvisited: visited = [],\n\t\t\t\t\t\thandleIn: handleIn\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tif (cross)\n\t\t\t\t\tseg = other;\n\t\t\t\tif (!isValid(seg)) {\n\t\t\t\t\tpath.removeSegments(branch.start);\n\t\t\t\t\tfor (var j = 0, k = visited.length; j < k; j++) {\n\t\t\t\t\t\tvisited[j]._visited = false;\n\t\t\t\t\t}\n\t\t\t\t\tvisited.length = 0;\n\t\t\t\t\tdo {\n\t\t\t\t\t\tseg = branch && branch.crossings.shift();\n\t\t\t\t\t\tif (!seg || !seg._path) {\n\t\t\t\t\t\t\tseg = null;\n\t\t\t\t\t\t\tbranch = branches.pop();\n\t\t\t\t\t\t\tif (branch) {\n\t\t\t\t\t\t\t\tvisited = branch.visited;\n\t\t\t\t\t\t\t\thandleIn = branch.handleIn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} while (branch && !isValid(seg));\n\t\t\t\t\tif (!seg)\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tvar next = seg.getNext();\n\t\t\t\tpath.add(new Segment(seg._point, handleIn,\n\t\t\t\t\t\tnext && seg._handleOut));\n\t\t\t\tseg._visited = true;\n\t\t\t\tvisited.push(seg);\n\t\t\t\tseg = next || seg._path.getFirstSegment();\n\t\t\t\thandleIn = next && next._handleIn;\n\t\t\t}\n\t\t\tif (finished) {\n\t\t\t\tif (closed) {\n\t\t\t\t\tpath.getFirstSegment().setHandleIn(handleIn);\n\t\t\t\t\tpath.setClosed(closed);\n\t\t\t\t}\n\t\t\t\tif (path.getArea() !== 0) {\n\t\t\t\t\tpaths.push(path);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn paths;\n\t}\n\n\treturn {\n\t\t_getWinding: function(point, dir, closed) {\n\t\t\treturn getWinding(point, this.getCurves(), dir, closed);\n\t\t},\n\n\t\tunite: function(path, options) {\n\t\t\treturn traceBoolean(this, path, 'unite', options);\n\t\t},\n\n\t\tintersect: function(path, options) {\n\t\t\treturn traceBoolean(this, path, 'intersect', options);\n\t\t},\n\n\t\tsubtract: function(path, options) {\n\t\t\treturn traceBoolean(this, path, 'subtract', options);\n\t\t},\n\n\t\texclude: function(path, options) {\n\t\t\treturn traceBoolean(this, path, 'exclude', options);\n\t\t},\n\n\t\tdivide: function(path, options) {\n\t\t\treturn options && (options.trace == false || options.stroke)\n\t\t\t\t\t? splitBoolean(this, path, 'divide')\n\t\t\t\t\t: createResult([\n\t\t\t\t\t\tthis.subtract(path, options),\n\t\t\t\t\t\tthis.intersect(path, options)\n\t\t\t\t\t], true, this, path, options);\n\t\t},\n\n\t\tresolveCrossings: function() {\n\t\t\tvar children = this._children,\n\t\t\t\tpaths = children || [this];\n\n\t\t\tfunction hasOverlap(seg, path) {\n\t\t\t\tvar inter = seg && seg._intersection;\n\t\t\t\treturn inter && inter._overlap && inter._path === path;\n\t\t\t}\n\n\t\t\tvar hasOverlaps = false,\n\t\t\t\thasCrossings = false,\n\t\t\t\tintersections = this.getIntersections(null, function(inter) {\n\t\t\t\t\treturn inter.hasOverlap() && (hasOverlaps = true) ||\n\t\t\t\t\t\t\tinter.isCrossing() && (hasCrossings = true);\n\t\t\t\t}),\n\t\t\t\tclearCurves = hasOverlaps && hasCrossings && [];\n\t\t\tintersections = CurveLocation.expand(intersections);\n\t\t\tif (hasOverlaps) {\n\t\t\t\tvar overlaps = divideLocations(intersections, function(inter) {\n\t\t\t\t\treturn inter.hasOverlap();\n\t\t\t\t}, clearCurves);\n\t\t\t\tfor (var i = overlaps.length - 1; i >= 0; i--) {\n\t\t\t\t\tvar overlap = overlaps[i],\n\t\t\t\t\t\tpath = overlap._path,\n\t\t\t\t\t\tseg = overlap._segment,\n\t\t\t\t\t\tprev = seg.getPrevious(),\n\t\t\t\t\t\tnext = seg.getNext();\n\t\t\t\t\tif (hasOverlap(prev, path) && hasOverlap(next, path)) {\n\t\t\t\t\t\tseg.remove();\n\t\t\t\t\t\tprev._handleOut._set(0, 0);\n\t\t\t\t\t\tnext._handleIn._set(0, 0);\n\t\t\t\t\t\tif (prev !== seg && !prev.getCurve().hasLength()) {\n\t\t\t\t\t\t\tnext._handleIn.set(prev._handleIn);\n\t\t\t\t\t\t\tprev.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (hasCrossings) {\n\t\t\t\tdivideLocations(intersections, hasOverlaps && function(inter) {\n\t\t\t\t\tvar curve1 = inter.getCurve(),\n\t\t\t\t\t\tseg1 = inter.getSegment(),\n\t\t\t\t\t\tother = inter._intersection,\n\t\t\t\t\t\tcurve2 = other._curve,\n\t\t\t\t\t\tseg2 = other._segment;\n\t\t\t\t\tif (curve1 && curve2 && curve1._path && curve2._path)\n\t\t\t\t\t\treturn true;\n\t\t\t\t\tif (seg1)\n\t\t\t\t\t\tseg1._intersection = null;\n\t\t\t\t\tif (seg2)\n\t\t\t\t\t\tseg2._intersection = null;\n\t\t\t\t}, clearCurves);\n\t\t\t\tif (clearCurves)\n\t\t\t\t\tclearCurveHandles(clearCurves);\n\t\t\t\tpaths = tracePaths(Base.each(paths, function(path) {\n\t\t\t\t\tBase.push(this, path._segments);\n\t\t\t\t}, []));\n\t\t\t}\n\t\t\tvar length = paths.length,\n\t\t\t\titem;\n\t\t\tif (length > 1 && children) {\n\t\t\t\tif (paths !== children)\n\t\t\t\t\tthis.setChildren(paths);\n\t\t\t\titem = this;\n\t\t\t} else if (length === 1 && !children) {\n\t\t\t\tif (paths[0] !== this)\n\t\t\t\t\tthis.setSegments(paths[0].removeSegments());\n\t\t\t\titem = this;\n\t\t\t}\n\t\t\tif (!item) {\n\t\t\t\titem = new CompoundPath(Item.NO_INSERT);\n\t\t\t\titem.addChildren(paths);\n\t\t\t\titem = item.reduce();\n\t\t\t\titem.copyAttributes(this);\n\t\t\t\tthis.replaceWith(item);\n\t\t\t}\n\t\t\treturn item;\n\t\t},\n\n\t\treorient: function(nonZero, clockwise) {\n\t\t\tvar children = this._children;\n\t\t\tif (children && children.length) {\n\t\t\t\tthis.setChildren(reorientPaths(this.removeChildren(),\n\t\t\t\t\t\tfunction(w) {\n\t\t\t\t\t\t\treturn !!(nonZero ? w : w & 1);\n\t\t\t\t\t\t},\n\t\t\t\t\t\tclockwise));\n\t\t\t} else if (clockwise !== undefined) {\n\t\t\t\tthis.setClockwise(clockwise);\n\t\t\t}\n\t\t\treturn this;\n\t\t},\n\n\t\tgetInteriorPoint: function() {\n\t\t\tvar bounds = this.getBounds(),\n\t\t\t\tpoint = bounds.getCenter(true);\n\t\t\tif (!this.contains(point)) {\n\t\t\t\tvar curves = this.getCurves(),\n\t\t\t\t\ty = point.y,\n\t\t\t\t\tintercepts = [],\n\t\t\t\t\troots = [];\n\t\t\t\tfor (var i = 0, l = curves.length; i < l; i++) {\n\t\t\t\t\tvar v = curves[i].getValues(),\n\t\t\t\t\t\to0 = v[1],\n\t\t\t\t\t\to1 = v[3],\n\t\t\t\t\t\to2 = v[5],\n\t\t\t\t\t\to3 = v[7];\n\t\t\t\t\tif (y >= min(o0, o1, o2, o3) && y <= max(o0, o1, o2, o3)) {\n\t\t\t\t\t\tvar monoCurves = Curve.getMonoCurves(v);\n\t\t\t\t\t\tfor (var j = 0, m = monoCurves.length; j < m; j++) {\n\t\t\t\t\t\t\tvar mv = monoCurves[j],\n\t\t\t\t\t\t\t\tmo0 = mv[1],\n\t\t\t\t\t\t\t\tmo3 = mv[7];\n\t\t\t\t\t\t\tif ((mo0 !== mo3) &&\n\t\t\t\t\t\t\t\t(y >= mo0 && y <= mo3 || y >= mo3 && y <= mo0)){\n\t\t\t\t\t\t\t\tvar x = y === mo0 ? mv[0]\n\t\t\t\t\t\t\t\t\t: y === mo3 ? mv[6]\n\t\t\t\t\t\t\t\t\t: Curve.solveCubic(mv, 1, y, roots, 0, 1)\n\t\t\t\t\t\t\t\t\t\t=== 1\n\t\t\t\t\t\t\t\t\t\t? Curve.getPoint(mv, roots[0]).x\n\t\t\t\t\t\t\t\t\t\t: (mv[0] + mv[6]) / 2;\n\t\t\t\t\t\t\t\tintercepts.push(x);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (intercepts.length > 1) {\n\t\t\t\t\tintercepts.sort(function(a, b) { return a - b; });\n\t\t\t\t\tpoint.x = (intercepts[0] + intercepts[1]) / 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn point;\n\t\t}\n\t};\n});\n\nvar PathFlattener = Base.extend({\n\t_class: 'PathFlattener',\n\n\tinitialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {\n\t\tvar curves = [],\n\t\t\tparts = [],\n\t\t\tlength = 0,\n\t\t\tminSpan = 1 / (maxRecursion || 32),\n\t\t\tsegments = path._segments,\n\t\t\tsegment1 = segments[0],\n\t\t\tsegment2;\n\n\t\tfunction addCurve(segment1, segment2) {\n\t\t\tvar curve = Curve.getValues(segment1, segment2, matrix);\n\t\t\tcurves.push(curve);\n\t\t\tcomputeParts(curve, segment1._index, 0, 1);\n\t\t}\n\n\t\tfunction computeParts(curve, index, t1, t2) {\n\t\t\tif ((t2 - t1) > minSpan\n\t\t\t\t\t&& !(ignoreStraight && Curve.isStraight(curve))\n\t\t\t\t\t&& !Curve.isFlatEnough(curve, flatness || 0.25)) {\n\t\t\t\tvar halves = Curve.subdivide(curve, 0.5),\n\t\t\t\t\ttMid = (t1 + t2) / 2;\n\t\t\t\tcomputeParts(halves[0], index, t1, tMid);\n\t\t\t\tcomputeParts(halves[1], index, tMid, t2);\n\t\t\t} else {\n\t\t\t\tvar dx = curve[6] - curve[0],\n\t\t\t\t\tdy = curve[7] - curve[1],\n\t\t\t\t\tdist = Math.sqrt(dx * dx + dy * dy);\n\t\t\t\tif (dist > 0) {\n\t\t\t\t\tlength += dist;\n\t\t\t\t\tparts.push({\n\t\t\t\t\t\toffset: length,\n\t\t\t\t\t\tcurve: curve,\n\t\t\t\t\t\tindex: index,\n\t\t\t\t\t\ttime: t2,\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (var i = 1, l = segments.length; i < l; i++) {\n\t\t\tsegment2 = segments[i];\n\t\t\taddCurve(segment1, segment2);\n\t\t\tsegment1 = segment2;\n\t\t}\n\t\tif (path._closed)\n\t\t\taddCurve(segment2 || segment1, segments[0]);\n\t\tthis.curves = curves;\n\t\tthis.parts = parts;\n\t\tthis.length = length;\n\t\tthis.index = 0;\n\t},\n\n\t_get: function(offset) {\n\t\tvar parts = this.parts,\n\t\t\tlength = parts.length,\n\t\t\tstart,\n\t\t\ti, j = this.index;\n\t\tfor (;;) {\n\t\t\ti = j;\n\t\t\tif (!j || parts[--j].offset < offset)\n\t\t\t\tbreak;\n\t\t}\n\t\tfor (; i < length; i++) {\n\t\t\tvar part = parts[i];\n\t\t\tif (part.offset >= offset) {\n\t\t\t\tthis.index = i;\n\t\t\t\tvar prev = parts[i - 1],\n\t\t\t\t\tprevTime = prev && prev.index === part.index ? prev.time : 0,\n\t\t\t\t\tprevOffset = prev ? prev.offset : 0;\n\t\t\t\treturn {\n\t\t\t\t\tindex: part.index,\n\t\t\t\t\ttime: prevTime + (part.time - prevTime)\n\t\t\t\t\t\t* (offset - prevOffset) / (part.offset - prevOffset)\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tindex: parts[length - 1].index,\n\t\t\ttime: 1\n\t\t};\n\t},\n\n\tdrawPart: function(ctx, from, to) {\n\t\tvar start = this._get(from),\n\t\t\tend = this._get(to);\n\t\tfor (var i = start.index, l = end.index; i <= l; i++) {\n\t\t\tvar curve = Curve.getPart(this.curves[i],\n\t\t\t\t\ti === start.index ? start.time : 0,\n\t\t\t\t\ti === end.index ? end.time : 1);\n\t\t\tif (i === start.index)\n\t\t\t\tctx.moveTo(curve[0], curve[1]);\n\t\t\tctx.bezierCurveTo.apply(ctx, curve.slice(2));\n\t\t}\n\t}\n}, Base.each(Curve._evaluateMethods,\n\tfunction(name) {\n\t\tthis[name + 'At'] = function(offset) {\n\t\t\tvar param = this._get(offset);\n\t\t\treturn Curve[name](this.curves[param.index], param.time);\n\t\t};\n\t}, {})\n);\n\nvar PathFitter = Base.extend({\n\tinitialize: function(path) {\n\t\tvar points = this.points = [],\n\t\t\tsegments = path._segments,\n\t\t\tclosed = path._closed;\n\t\tfor (var i = 0, prev, l = segments.length; i < l; i++) {\n\t\t\tvar point = segments[i].point;\n\t\t\tif (!prev || !prev.equals(point)) {\n\t\t\t\tpoints.push(prev = point.clone());\n\t\t\t}\n\t\t}\n\t\tif (closed) {\n\t\t\tpoints.unshift(points[points.length - 1]);\n\t\t\tpoints.push(points[1]);\n\t\t}\n\t\tthis.closed = closed;\n\t},\n\n\tfit: function(error) {\n\t\tvar points = this.points,\n\t\t\tlength = points.length,\n\t\t\tsegments = null;\n\t\tif (length > 0) {\n\t\t\tsegments = [new Segment(points[0])];\n\t\t\tif (length > 1) {\n\t\t\t\tthis.fitCubic(segments, error, 0, length - 1,\n\t\t\t\t\t\tpoints[1].subtract(points[0]),\n\t\t\t\t\t\tpoints[length - 2].subtract(points[length - 1]));\n\t\t\t\tif (this.closed) {\n\t\t\t\t\tsegments.shift();\n\t\t\t\t\tsegments.pop();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn segments;\n\t},\n\n\tfitCubic: function(segments, error, first, last, tan1, tan2) {\n\t\tvar points = this.points;\n\t\tif (last - first === 1) {\n\t\t\tvar pt1 = points[first],\n\t\t\t\tpt2 = points[last],\n\t\t\t\tdist = pt1.getDistance(pt2) / 3;\n\t\t\tthis.addCurve(segments, [pt1, pt1.add(tan1.normalize(dist)),\n\t\t\t\t\tpt2.add(tan2.normalize(dist)), pt2]);\n\t\t\treturn;\n\t\t}\n\t\tvar uPrime = this.chordLengthParameterize(first, last),\n\t\t\tmaxError = Math.max(error, error * error),\n\t\t\tsplit,\n\t\t\tparametersInOrder = true;\n\t\tfor (var i = 0; i <= 4; i++) {\n\t\t\tvar curve = this.generateBezier(first, last, uPrime, tan1, tan2);\n\t\t\tvar max = this.findMaxError(first, last, curve, uPrime);\n\t\t\tif (max.error < error && parametersInOrder) {\n\t\t\t\tthis.addCurve(segments, curve);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tsplit = max.index;\n\t\t\tif (max.error >= maxError)\n\t\t\t\tbreak;\n\t\t\tparametersInOrder = this.reparameterize(first, last, uPrime, curve);\n\t\t\tmaxError = max.error;\n\t\t}\n\t\tvar tanCenter = points[split - 1].subtract(points[split + 1]);\n\t\tthis.fitCubic(segments, error, first, split, tan1, tanCenter);\n\t\tthis.fitCubic(segments, error, split, last, tanCenter.negate(), tan2);\n\t},\n\n\taddCurve: function(segments, curve) {\n\t\tvar prev = segments[segments.length - 1];\n\t\tprev.setHandleOut(curve[1].subtract(curve[0]));\n\t\tsegments.push(new Segment(curve[3], curve[2].subtract(curve[3])));\n\t},\n\n\tgenerateBezier: function(first, last, uPrime, tan1, tan2) {\n\t\tvar epsilon = 1e-12,\n\t\t\tabs = Math.abs,\n\t\t\tpoints = this.points,\n\t\t\tpt1 = points[first],\n\t\t\tpt2 = points[last],\n\t\t\tC = [[0, 0], [0, 0]],\n\t\t\tX = [0, 0];\n\n\t\tfor (var i = 0, l = last - first + 1; i < l; i++) {\n\t\t\tvar u = uPrime[i],\n\t\t\t\tt = 1 - u,\n\t\t\t\tb = 3 * u * t,\n\t\t\t\tb0 = t * t * t,\n\t\t\t\tb1 = b * t,\n\t\t\t\tb2 = b * u,\n\t\t\t\tb3 = u * u * u,\n\t\t\t\ta1 = tan1.normalize(b1),\n\t\t\t\ta2 = tan2.normalize(b2),\n\t\t\t\ttmp = points[first + i]\n\t\t\t\t\t.subtract(pt1.multiply(b0 + b1))\n\t\t\t\t\t.subtract(pt2.multiply(b2 + b3));\n\t\t\tC[0][0] += a1.dot(a1);\n\t\t\tC[0][1] += a1.dot(a2);\n\t\t\tC[1][0] = C[0][1];\n\t\t\tC[1][1] += a2.dot(a2);\n\t\t\tX[0] += a1.dot(tmp);\n\t\t\tX[1] += a2.dot(tmp);\n\t\t}\n\n\t\tvar detC0C1 = C[0][0] * C[1][1] - C[1][0] * C[0][1],\n\t\t\talpha1,\n\t\t\talpha2;\n\t\tif (abs(detC0C1) > epsilon) {\n\t\t\tvar detC0X = C[0][0] * X[1] - C[1][0] * X[0],\n\t\t\t\tdetXC1 = X[0] * C[1][1] - X[1] * C[0][1];\n\t\t\talpha1 = detXC1 / detC0C1;\n\t\t\talpha2 = detC0X / detC0C1;\n\t\t} else {\n\t\t\tvar c0 = C[0][0] + C[0][1],\n\t\t\t\tc1 = C[1][0] + C[1][1];\n\t\t\talpha1 = alpha2 = abs(c0) > epsilon ? X[0] / c0\n\t\t\t\t\t\t\t: abs(c1) > epsilon ? X[1] / c1\n\t\t\t\t\t\t\t: 0;\n\t\t}\n\n\t\tvar segLength = pt2.getDistance(pt1),\n\t\t\teps = epsilon * segLength,\n\t\t\thandle1,\n\t\t\thandle2;\n\t\tif (alpha1 < eps || alpha2 < eps) {\n\t\t\talpha1 = alpha2 = segLength / 3;\n\t\t} else {\n\t\t\tvar line = pt2.subtract(pt1);\n\t\t\thandle1 = tan1.normalize(alpha1);\n\t\t\thandle2 = tan2.normalize(alpha2);\n\t\t\tif (handle1.dot(line) - handle2.dot(line) > segLength * segLength) {\n\t\t\t\talpha1 = alpha2 = segLength / 3;\n\t\t\t\thandle1 = handle2 = null;\n\t\t\t}\n\t\t}\n\n\t\treturn [pt1,\n\t\t\t\tpt1.add(handle1 || tan1.normalize(alpha1)),\n\t\t\t\tpt2.add(handle2 || tan2.normalize(alpha2)),\n\t\t\t\tpt2];\n\t},\n\n\treparameterize: function(first, last, u, curve) {\n\t\tfor (var i = first; i <= last; i++) {\n\t\t\tu[i - first] = this.findRoot(curve, this.points[i], u[i - first]);\n\t\t}\n\t\tfor (var i = 1, l = u.length; i < l; i++) {\n\t\t\tif (u[i] <= u[i - 1])\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\tfindRoot: function(curve, point, u) {\n\t\tvar curve1 = [],\n\t\t\tcurve2 = [];\n\t\tfor (var i = 0; i <= 2; i++) {\n\t\t\tcurve1[i] = curve[i + 1].subtract(curve[i]).multiply(3);\n\t\t}\n\t\tfor (var i = 0; i <= 1; i++) {\n\t\t\tcurve2[i] = curve1[i + 1].subtract(curve1[i]).multiply(2);\n\t\t}\n\t\tvar pt = this.evaluate(3, curve, u),\n\t\t\tpt1 = this.evaluate(2, curve1, u),\n\t\t\tpt2 = this.evaluate(1, curve2, u),\n\t\t\tdiff = pt.subtract(point),\n\t\t\tdf = pt1.dot(pt1) + diff.dot(pt2);\n\t\treturn Numerical.isMachineZero(df) ? u : u - diff.dot(pt1) / df;\n\t},\n\n\tevaluate: function(degree, curve, t) {\n\t\tvar tmp = curve.slice();\n\t\tfor (var i = 1; i <= degree; i++) {\n\t\t\tfor (var j = 0; j <= degree - i; j++) {\n\t\t\t\ttmp[j] = tmp[j].multiply(1 - t).add(tmp[j + 1].multiply(t));\n\t\t\t}\n\t\t}\n\t\treturn tmp[0];\n\t},\n\n\tchordLengthParameterize: function(first, last) {\n\t\tvar u = [0];\n\t\tfor (var i = first + 1; i <= last; i++) {\n\t\t\tu[i - first] = u[i - first - 1]\n\t\t\t\t\t+ this.points[i].getDistance(this.points[i - 1]);\n\t\t}\n\t\tfor (var i = 1, m = last - first; i <= m; i++) {\n\t\t\tu[i] /= u[m];\n\t\t}\n\t\treturn u;\n\t},\n\n\tfindMaxError: function(first, last, curve, u) {\n\t\tvar index = Math.floor((last - first + 1) / 2),\n\t\t\tmaxDist = 0;\n\t\tfor (var i = first + 1; i < last; i++) {\n\t\t\tvar P = this.evaluate(3, curve, u[i - first]);\n\t\t\tvar v = P.subtract(this.points[i]);\n\t\t\tvar dist = v.x * v.x + v.y * v.y;\n\t\t\tif (dist >= maxDist) {\n\t\t\t\tmaxDist = dist;\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\terror: maxDist,\n\t\t\tindex: index\n\t\t};\n\t}\n});\n\nvar TextItem = Item.extend({\n\t_class: 'TextItem',\n\t_applyMatrix: false,\n\t_canApplyMatrix: false,\n\t_serializeFields: {\n\t\tcontent: null\n\t},\n\t_boundsOptions: { stroke: false, handle: false },\n\n\tinitialize: function TextItem(arg) {\n\t\tthis._content = '';\n\t\tthis._lines = [];\n\t\tvar hasProps = arg && Base.isPlainObject(arg)\n\t\t\t\t&& arg.x === undefined && arg.y === undefined;\n\t\tthis._initialize(hasProps && arg, !hasProps && Point.read(arguments));\n\t},\n\n\t_equals: function(item) {\n\t\treturn this._content === item._content;\n\t},\n\n\tcopyContent: function(source) {\n\t\tthis.setContent(source._content);\n\t},\n\n\tgetContent: function() {\n\t\treturn this._content;\n\t},\n\n\tsetContent: function(content) {\n\t\tthis._content = '' + content;\n\t\tthis._lines = this._content.split(/\\r\\n|\\n|\\r/mg);\n\t\tthis._changed(521);\n\t},\n\n\tisEmpty: function() {\n\t\treturn !this._content;\n\t},\n\n\tgetCharacterStyle: '#getStyle',\n\tsetCharacterStyle: '#setStyle',\n\n\tgetParagraphStyle: '#getStyle',\n\tsetParagraphStyle: '#setStyle'\n});\n\nvar PointText = TextItem.extend({\n\t_class: 'PointText',\n\n\tinitialize: function PointText() {\n\t\tTextItem.apply(this, arguments);\n\t},\n\n\tgetPoint: function() {\n\t\tvar point = this._matrix.getTranslation();\n\t\treturn new LinkedPoint(point.x, point.y, this, 'setPoint');\n\t},\n\n\tsetPoint: function() {\n\t\tvar point = Point.read(arguments);\n\t\tthis.translate(point.subtract(this._matrix.getTranslation()));\n\t},\n\n\t_draw: function(ctx, param, viewMatrix) {\n\t\tif (!this._content)\n\t\t\treturn;\n\t\tthis._setStyles(ctx, param, viewMatrix);\n\t\tvar lines = this._lines,\n\t\t\tstyle = this._style,\n\t\t\thasFill = style.hasFill(),\n\t\t\thasStroke = style.hasStroke(),\n\t\t\tleading = style.getLeading(),\n\t\t\tshadowColor = ctx.shadowColor;\n\t\tctx.font = style.getFontStyle();\n\t\tctx.textAlign = style.getJustification();\n\t\tfor (var i = 0, l = lines.length; i < l; i++) {\n\t\t\tctx.shadowColor = shadowColor;\n\t\t\tvar line = lines[i];\n\t\t\tif (hasFill) {\n\t\t\t\tctx.fillText(line, 0, 0);\n\t\t\t\tctx.shadowColor = 'rgba(0,0,0,0)';\n\t\t\t}\n\t\t\tif (hasStroke)\n\t\t\t\tctx.strokeText(line, 0, 0);\n\t\t\tctx.translate(0, leading);\n\t\t}\n\t},\n\n\t_getBounds: function(matrix, options) {\n\t\tvar style = this._style,\n\t\t\tlines = this._lines,\n\t\t\tnumLines = lines.length,\n\t\t\tjustification = style.getJustification(),\n\t\t\tleading = style.getLeading(),\n\t\t\twidth = this.getView().getTextWidth(style.getFontStyle(), lines),\n\t\t\tx = 0;\n\t\tif (justification !== 'left')\n\t\t\tx -= width / (justification === 'center' ? 2: 1);\n\t\tvar rect = new Rectangle(x,\n\t\t\t\t\tnumLines ? - 0.75 * leading : 0,\n\t\t\t\t\twidth, numLines * leading);\n\t\treturn matrix ? matrix._transformBounds(rect, rect) : rect;\n\t}\n});\n\nvar Color = Base.extend(new function() {\n\tvar types = {\n\t\tgray: ['gray'],\n\t\trgb: ['red', 'green', 'blue'],\n\t\thsb: ['hue', 'saturation', 'brightness'],\n\t\thsl: ['hue', 'saturation', 'lightness'],\n\t\tgradient: ['gradient', 'origin', 'destination', 'highlight']\n\t};\n\n\tvar componentParsers = {},\n\t\tnamedColors = {\n\t\t\ttransparent: [0, 0, 0, 0]\n\t\t},\n\t\tcolorCtx;\n\n\tfunction fromCSS(string) {\n\t\tvar match = string.match(\n\t\t\t\t/^#([\\da-f]{2})([\\da-f]{2})([\\da-f]{2})([\\da-f]{2})?$/i\n\t\t\t) || string.match(\n\t\t\t\t/^#([\\da-f])([\\da-f])([\\da-f])([\\da-f])?$/i\n\t\t\t),\n\t\t\ttype = 'rgb',\n\t\t\tcomponents;\n\t\tif (match) {\n\t\t\tvar amount = match[4] ? 4 : 3;\n\t\t\tcomponents = new Array(amount);\n\t\t\tfor (var i = 0; i < amount; i++) {\n\t\t\t\tvar value = match[i + 1];\n\t\t\t\tcomponents[i] = parseInt(value.length == 1\n\t\t\t\t\t\t? value + value : value, 16) / 255;\n\t\t\t}\n\t\t} else if (match = string.match(/^(rgb|hsl)a?\\((.*)\\)$/)) {\n\t\t\ttype = match[1];\n\t\t\tcomponents = match[2].trim().split(/[,\\s]+/g);\n\t\t\tvar isHSL = type === 'hsl';\n\t\t\tfor (var i = 0, l = Math.min(components.length, 4); i < l; i++) {\n\t\t\t\tvar component = components[i];\n\t\t\t\tvar value = parseFloat(component);\n\t\t\t\tif (isHSL) {\n\t\t\t\t\tif (i === 0) {\n\t\t\t\t\t\tvar unit = component.match(/([a-z]*)$/)[1];\n\t\t\t\t\t\tvalue *= ({\n\t\t\t\t\t\t\tturn: 360,\n\t\t\t\t\t\t\trad: 180 / Math.PI,\n\t\t\t\t\t\t\tgrad: 0.9\n\t\t\t\t\t\t}[unit] || 1);\n\t\t\t\t\t} else if (i < 3) {\n\t\t\t\t\t\tvalue /= 100;\n\t\t\t\t\t}\n\t\t\t\t} else if (i < 3) {\n\t\t\t\t\tvalue /= /%$/.test(component) ? 100 : 255;\n\t\t\t\t}\n\t\t\t\tcomponents[i] = value;\n\t\t\t}\n\t\t} else {\n\t\t\tvar color = namedColors[string];\n\t\t\tif (!color) {\n\t\t\t\tif (window) {\n\t\t\t\t\tif (!colorCtx) {\n\t\t\t\t\t\tcolorCtx = CanvasProvider.getContext(1, 1, {\n\t\t\t\t\t\t\twillReadFrequently: true\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcolorCtx.globalCompositeOperation = 'copy';\n\t\t\t\t\t}\n\t\t\t\t\tcolorCtx.fillStyle = 'rgba(0,0,0,0)';\n\t\t\t\t\tcolorCtx.fillStyle = string;\n\t\t\t\t\tcolorCtx.fillRect(0, 0, 1, 1);\n\t\t\t\t\tvar data = colorCtx.getImageData(0, 0, 1, 1).data;\n\t\t\t\t\tcolor = namedColors[string] = [\n\t\t\t\t\t\tdata[0] / 255,\n\t\t\t\t\t\tdata[1] / 255,\n\t\t\t\t\t\tdata[2] / 255\n\t\t\t\t\t];\n\t\t\t\t} else {\n\t\t\t\t\tcolor = [0, 0, 0];\n\t\t\t\t}\n\t\t\t}\n\t\t\tcomponents = color.slice();\n\t\t}\n\t\treturn [type, components];\n\t}\n\n\tvar hsbIndices = [\n\t\t[0, 3, 1],\n\t\t[2, 0, 1],\n\t\t[1, 0, 3],\n\t\t[1, 2, 0],\n\t\t[3, 1, 0],\n\t\t[0, 1, 2]\n\t];\n\n\tvar converters = {\n\t\t'rgb-hsb': function(r, g, b) {\n\t\t\tvar max = Math.max(r, g, b),\n\t\t\t\tmin = Math.min(r, g, b),\n\t\t\t\tdelta = max - min,\n\t\t\t\th = delta === 0 ? 0\n\t\t\t\t\t: ( max == r ? (g - b) / delta + (g < b ? 6 : 0)\n\t\t\t\t\t\t: max == g ? (b - r) / delta + 2\n\t\t\t\t\t\t: (r - g) / delta + 4) * 60;\n\t\t\treturn [h, max === 0 ? 0 : delta / max, max];\n\t\t},\n\n\t\t'hsb-rgb': function(h, s, b) {\n\t\t\th = (((h / 60) % 6) + 6) % 6;\n\t\t\tvar i = Math.floor(h),\n\t\t\t\tf = h - i,\n\t\t\t\ti = hsbIndices[i],\n\t\t\t\tv = [\n\t\t\t\t\tb,\n\t\t\t\t\tb * (1 - s),\n\t\t\t\t\tb * (1 - s * f),\n\t\t\t\t\tb * (1 - s * (1 - f))\n\t\t\t\t];\n\t\t\treturn [v[i[0]], v[i[1]], v[i[2]]];\n\t\t},\n\n\t\t'rgb-hsl': function(r, g, b) {\n\t\t\tvar max = Math.max(r, g, b),\n\t\t\t\tmin = Math.min(r, g, b),\n\t\t\t\tdelta = max - min,\n\t\t\t\tachromatic = delta === 0,\n\t\t\t\th = achromatic ? 0\n\t\t\t\t\t: ( max == r ? (g - b) / delta + (g < b ? 6 : 0)\n\t\t\t\t\t\t: max == g ? (b - r) / delta + 2\n\t\t\t\t\t\t: (r - g) / delta + 4) * 60,\n\t\t\t\tl = (max + min) / 2,\n\t\t\t\ts = achromatic ? 0 : l < 0.5\n\t\t\t\t\t\t? delta / (max + min)\n\t\t\t\t\t\t: delta / (2 - max - min);\n\t\t\treturn [h, s, l];\n\t\t},\n\n\t\t'hsl-rgb': function(h, s, l) {\n\t\t\th = (((h / 360) % 1) + 1) % 1;\n\t\t\tif (s === 0)\n\t\t\t\treturn [l, l, l];\n\t\t\tvar t3s = [ h + 1 / 3, h, h - 1 / 3 ],\n\t\t\t\tt2 = l < 0.5 ? l * (1 + s) : l + s - l * s,\n\t\t\t\tt1 = 2 * l - t2,\n\t\t\t\tc = [];\n\t\t\tfor (var i = 0; i < 3; i++) {\n\t\t\t\tvar t3 = t3s[i];\n\t\t\t\tif (t3 < 0) t3 += 1;\n\t\t\t\tif (t3 > 1) t3 -= 1;\n\t\t\t\tc[i] = 6 * t3 < 1\n\t\t\t\t\t? t1 + (t2 - t1) * 6 * t3\n\t\t\t\t\t: 2 * t3 < 1\n\t\t\t\t\t\t? t2\n\t\t\t\t\t\t: 3 * t3 < 2\n\t\t\t\t\t\t\t? t1 + (t2 - t1) * ((2 / 3) - t3) * 6\n\t\t\t\t\t\t\t: t1;\n\t\t\t}\n\t\t\treturn c;\n\t\t},\n\n\t\t'rgb-gray': function(r, g, b) {\n\t\t\treturn [r * 0.2989 + g * 0.587 + b * 0.114];\n\t\t},\n\n\t\t'gray-rgb': function(g) {\n\t\t\treturn [g, g, g];\n\t\t},\n\n\t\t'gray-hsb': function(g) {\n\t\t\treturn [0, 0, g];\n\t\t},\n\n\t\t'gray-hsl': function(g) {\n\t\t\treturn [0, 0, g];\n\t\t},\n\n\t\t'gradient-rgb': function() {\n\t\t\treturn [];\n\t\t},\n\n\t\t'rgb-gradient': function() {\n\t\t\treturn [];\n\t\t}\n\n\t};\n\n\treturn Base.each(types, function(properties, type) {\n\t\tcomponentParsers[type] = [];\n\t\tBase.each(properties, function(name, index) {\n\t\t\tvar part = Base.capitalize(name),\n\t\t\t\thasOverlap = /^(hue|saturation)$/.test(name),\n\t\t\t\tparser = componentParsers[type][index] = type === 'gradient'\n\t\t\t\t\t? name === 'gradient'\n\t\t\t\t\t\t? function(value) {\n\t\t\t\t\t\t\tvar current = this._components[0];\n\t\t\t\t\t\t\tvalue = Gradient.read(\n\t\t\t\t\t\t\t\tArray.isArray(value)\n\t\t\t\t\t\t\t\t\t? value\n\t\t\t\t\t\t\t\t\t: arguments, 0, { readNull: true }\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tif (current !== value) {\n\t\t\t\t\t\t\t\tif (current)\n\t\t\t\t\t\t\t\t\tcurrent._removeOwner(this);\n\t\t\t\t\t\t\t\tif (value)\n\t\t\t\t\t\t\t\t\tvalue._addOwner(this);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn value;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t: function() {\n\t\t\t\t\t\t\treturn Point.read(arguments, 0, {\n\t\t\t\t\t\t\t\t\treadNull: name === 'highlight',\n\t\t\t\t\t\t\t\t\tclone: true\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t: function(value) {\n\t\t\t\t\t\treturn value == null || isNaN(value) ? 0 : +value;\n\t\t\t\t\t};\n\t\t\tthis['get' + part] = function() {\n\t\t\t\treturn this._type === type\n\t\t\t\t\t|| hasOverlap && /^hs[bl]$/.test(this._type)\n\t\t\t\t\t\t? this._components[index]\n\t\t\t\t\t\t: this._convert(type)[index];\n\t\t\t};\n\n\t\t\tthis['set' + part] = function(value) {\n\t\t\t\tif (this._type !== type\n\t\t\t\t\t\t&& !(hasOverlap && /^hs[bl]$/.test(this._type))) {\n\t\t\t\t\tthis._components = this._convert(type);\n\t\t\t\t\tthis._properties = types[type];\n\t\t\t\t\tthis._type = type;\n\t\t\t\t}\n\t\t\t\tthis._components[index] = parser.call(this, value);\n\t\t\t\tthis._changed();\n\t\t\t};\n\t\t}, this);\n\t}, {\n\t\t_class: 'Color',\n\t\t_readIndex: true,\n\n\t\tinitialize: function Color(arg) {\n\t\t\tvar args = arguments,\n\t\t\t\treading = this.__read,\n\t\t\t\tread = 0,\n\t\t\t\ttype,\n\t\t\t\tcomponents,\n\t\t\t\talpha,\n\t\t\t\tvalues;\n\t\t\tif (Array.isArray(arg)) {\n\t\t\t\targs = arg;\n\t\t\t\targ = args[0];\n\t\t\t}\n\t\t\tvar argType = arg != null && typeof arg;\n\t\t\tif (argType === 'string' && arg in types) {\n\t\t\t\ttype = arg;\n\t\t\t\targ = args[1];\n\t\t\t\tif (Array.isArray(arg)) {\n\t\t\t\t\tcomponents = arg;\n\t\t\t\t\talpha = args[2];\n\t\t\t\t} else {\n\t\t\t\t\tif (reading)\n\t\t\t\t\t\tread = 1;\n\t\t\t\t\targs = Base.slice(args, 1);\n\t\t\t\t\targType = typeof arg;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!components) {\n\t\t\t\tvalues = argType === 'number'\n\t\t\t\t\t\t? args\n\t\t\t\t\t\t: argType === 'object' && arg.length != null\n\t\t\t\t\t\t\t? arg\n\t\t\t\t\t\t\t: null;\n\t\t\t\tif (values) {\n\t\t\t\t\tif (!type)\n\t\t\t\t\t\ttype = values.length >= 3\n\t\t\t\t\t\t\t\t? 'rgb'\n\t\t\t\t\t\t\t\t: 'gray';\n\t\t\t\t\tvar length = types[type].length;\n\t\t\t\t\talpha = values[length];\n\t\t\t\t\tif (reading) {\n\t\t\t\t\t\tread += values === arguments\n\t\t\t\t\t\t\t? length + (alpha != null ? 1 : 0)\n\t\t\t\t\t\t\t: 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (values.length > length)\n\t\t\t\t\t\tvalues = Base.slice(values, 0, length);\n\t\t\t\t} else if (argType === 'string') {\n\t\t\t\t\tvar converted = fromCSS(arg);\n\t\t\t\t\ttype = converted[0];\n\t\t\t\t\tcomponents = converted[1];\n\t\t\t\t\tif (components.length === 4) {\n\t\t\t\t\t\talpha = components[3];\n\t\t\t\t\t\tcomponents.length--;\n\t\t\t\t\t}\n\t\t\t\t} else if (argType === 'object') {\n\t\t\t\t\tif (arg.constructor === Color) {\n\t\t\t\t\t\ttype = arg._type;\n\t\t\t\t\t\tcomponents = arg._components.slice();\n\t\t\t\t\t\talpha = arg._alpha;\n\t\t\t\t\t\tif (type === 'gradient') {\n\t\t\t\t\t\t\tfor (var i = 1, l = components.length; i < l; i++) {\n\t\t\t\t\t\t\t\tvar point = components[i];\n\t\t\t\t\t\t\t\tif (point)\n\t\t\t\t\t\t\t\t\tcomponents[i] = point.clone();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (arg.constructor === Gradient) {\n\t\t\t\t\t\ttype = 'gradient';\n\t\t\t\t\t\tvalues = args;\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttype = 'hue' in arg\n\t\t\t\t\t\t\t? 'lightness' in arg\n\t\t\t\t\t\t\t\t? 'hsl'\n\t\t\t\t\t\t\t\t: 'hsb'\n\t\t\t\t\t\t\t: 'gradient' in arg || 'stops' in arg\n\t\t\t\t\t\t\t\t\t|| 'radial' in arg\n\t\t\t\t\t\t\t\t? 'gradient'\n\t\t\t\t\t\t\t\t: 'gray' in arg\n\t\t\t\t\t\t\t\t\t? 'gray'\n\t\t\t\t\t\t\t\t\t: 'rgb';\n\t\t\t\t\t\tvar properties = types[type],\n\t\t\t\t\t\t\tparsers = componentParsers[type];\n\t\t\t\t\t\tthis._components = components = [];\n\t\t\t\t\t\tfor (var i = 0, l = properties.length; i < l; i++) {\n\t\t\t\t\t\t\tvar value = arg[properties[i]];\n\t\t\t\t\t\t\tif (value == null && !i && type === 'gradient'\n\t\t\t\t\t\t\t\t\t&& 'stops' in arg) {\n\t\t\t\t\t\t\t\tvalue = {\n\t\t\t\t\t\t\t\t\tstops: arg.stops,\n\t\t\t\t\t\t\t\t\tradial: arg.radial\n\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tvalue = parsers[i].call(this, value);\n\t\t\t\t\t\t\tif (value != null)\n\t\t\t\t\t\t\t\tcomponents[i] = value;\n\t\t\t\t\t\t}\n\t\t\t\t\t\talpha = arg.alpha;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (reading && type)\n\t\t\t\t\tread = 1;\n\t\t\t}\n\t\t\tthis._type = type || 'rgb';\n\t\t\tif (!components) {\n\t\t\t\tthis._components = components = [];\n\t\t\t\tvar parsers = componentParsers[this._type];\n\t\t\t\tfor (var i = 0, l = parsers.length; i < l; i++) {\n\t\t\t\t\tvar value = parsers[i].call(this, values && values[i]);\n\t\t\t\t\tif (value != null)\n\t\t\t\t\t\tcomponents[i] = value;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis._components = components;\n\t\t\tthis._properties = types[this._type];\n\t\t\tthis._alpha = alpha;\n\t\t\tif (reading)\n\t\t\t\tthis.__read = read;\n\t\t\treturn this;\n\t\t},\n\n\t\tset: '#initialize',\n\n\t\t_serialize: function(options, dictionary) {\n\t\t\tvar components = this.getComponents();\n\t\t\treturn Base.serialize(\n\t\t\t\t\t/^(gray|rgb)$/.test(this._type)\n\t\t\t\t\t\t? components\n\t\t\t\t\t\t: [this._type].concat(components),\n\t\t\t\t\toptions, true, dictionary);\n\t\t},\n\n\t\t_changed: function() {\n\t\t\tthis._canvasStyle = null;\n\t\t\tif (this._owner) {\n\t\t\t\tif (this._setter) {\n\t\t\t\t\tthis._owner[this._setter](this);\n\t\t\t\t} else {\n\t\t\t\t\tthis._owner._changed(129);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t_convert: function(type) {\n\t\t\tvar converter;\n\t\t\treturn this._type === type\n\t\t\t\t\t? this._components.slice()\n\t\t\t\t\t: (converter = converters[this._type + '-' + type])\n\t\t\t\t\t\t? converter.apply(this, this._components)\n\t\t\t\t\t\t: converters['rgb-' + type].apply(this,\n\t\t\t\t\t\t\tconverters[this._type + '-rgb'].apply(this,\n\t\t\t\t\t\t\t\tthis._components));\n\t\t},\n\n\t\tconvert: function(type) {\n\t\t\treturn new Color(type, this._convert(type), this._alpha);\n\t\t},\n\n\t\tgetType: function() {\n\t\t\treturn this._type;\n\t\t},\n\n\t\tsetType: function(type) {\n\t\t\tthis._components = this._convert(type);\n\t\t\tthis._properties = types[type];\n\t\t\tthis._type = type;\n\t\t},\n\n\t\tgetComponents: function() {\n\t\t\tvar components = this._components.slice();\n\t\t\tif (this._alpha != null)\n\t\t\t\tcomponents.push(this._alpha);\n\t\t\treturn components;\n\t\t},\n\n\t\tgetAlpha: function() {\n\t\t\treturn this._alpha != null ? this._alpha : 1;\n\t\t},\n\n\t\tsetAlpha: function(alpha) {\n\t\t\tthis._alpha = alpha == null ? null : Math.min(Math.max(alpha, 0), 1);\n\t\t\tthis._changed();\n\t\t},\n\n\t\thasAlpha: function() {\n\t\t\treturn this._alpha != null;\n\t\t},\n\n\t\tequals: function(color) {\n\t\t\tvar col = Base.isPlainValue(color, true)\n\t\t\t\t\t? Color.read(arguments)\n\t\t\t\t\t: color;\n\t\t\treturn col === this || col && this._class === col._class\n\t\t\t\t\t&& this._type === col._type\n\t\t\t\t\t&& this.getAlpha() === col.getAlpha()\n\t\t\t\t\t&& Base.equals(this._components, col._components)\n\t\t\t\t\t|| false;\n\t\t},\n\n\t\ttoString: function() {\n\t\t\tvar properties = this._properties,\n\t\t\t\tparts = [],\n\t\t\t\tisGradient = this._type === 'gradient',\n\t\t\t\tf = Formatter.instance;\n\t\t\tfor (var i = 0, l = properties.length; i < l; i++) {\n\t\t\t\tvar value = this._components[i];\n\t\t\t\tif (value != null)\n\t\t\t\t\tparts.push(properties[i] + ': '\n\t\t\t\t\t\t\t+ (isGradient ? value : f.number(value)));\n\t\t\t}\n\t\t\tif (this._alpha != null)\n\t\t\t\tparts.push('alpha: ' + f.number(this._alpha));\n\t\t\treturn '{ ' + parts.join(', ') + ' }';\n\t\t},\n\n\t\ttoCSS: function(hex) {\n\t\t\tvar components = this._convert('rgb'),\n\t\t\t\talpha = hex || this._alpha == null ? 1 : this._alpha;\n\t\t\tfunction convert(val) {\n\t\t\t\treturn Math.round((val < 0 ? 0 : val > 1 ? 1 : val) * 255);\n\t\t\t}\n\t\t\tcomponents = [\n\t\t\t\tconvert(components[0]),\n\t\t\t\tconvert(components[1]),\n\t\t\t\tconvert(components[2])\n\t\t\t];\n\t\t\tif (alpha < 1)\n\t\t\t\tcomponents.push(alpha < 0 ? 0 : alpha);\n\t\t\treturn hex\n\t\t\t\t\t? '#' + ((1 << 24) + (components[0] << 16)\n\t\t\t\t\t\t+ (components[1] << 8)\n\t\t\t\t\t\t+ components[2]).toString(16).slice(1)\n\t\t\t\t\t: (components.length == 4 ? 'rgba(' : 'rgb(')\n\t\t\t\t\t\t+ components.join(',') + ')';\n\t\t},\n\n\t\ttoCanvasStyle: function(ctx, matrix) {\n\t\t\tif (this._canvasStyle)\n\t\t\t\treturn this._canvasStyle;\n\t\t\tif (this._type !== 'gradient')\n\t\t\t\treturn this._canvasStyle = this.toCSS();\n\t\t\tvar components = this._components,\n\t\t\t\tgradient = components[0],\n\t\t\t\tstops = gradient._stops,\n\t\t\t\torigin = components[1],\n\t\t\t\tdestination = components[2],\n\t\t\t\thighlight = components[3],\n\t\t\t\tinverse = matrix && matrix.inverted(),\n\t\t\t\tcanvasGradient;\n\t\t\tif (inverse) {\n\t\t\t\torigin = inverse._transformPoint(origin);\n\t\t\t\tdestination = inverse._transformPoint(destination);\n\t\t\t\tif (highlight)\n\t\t\t\t\thighlight = inverse._transformPoint(highlight);\n\t\t\t}\n\t\t\tif (gradient._radial) {\n\t\t\t\tvar radius = destination.getDistance(origin);\n\t\t\t\tif (highlight) {\n\t\t\t\t\tvar vector = highlight.subtract(origin);\n\t\t\t\t\tif (vector.getLength() > radius)\n\t\t\t\t\t\thighlight = origin.add(vector.normalize(radius - 0.1));\n\t\t\t\t}\n\t\t\t\tvar start = highlight || origin;\n\t\t\t\tcanvasGradient = ctx.createRadialGradient(start.x, start.y,\n\t\t\t\t\t\t0, origin.x, origin.y, radius);\n\t\t\t} else {\n\t\t\t\tcanvasGradient = ctx.createLinearGradient(origin.x, origin.y,\n\t\t\t\t\t\tdestination.x, destination.y);\n\t\t\t}\n\t\t\tfor (var i = 0, l = stops.length; i < l; i++) {\n\t\t\t\tvar stop = stops[i],\n\t\t\t\t\toffset = stop._offset;\n\t\t\t\tcanvasGradient.addColorStop(\n\t\t\t\t\t\toffset == null ? i / (l - 1) : offset,\n\t\t\t\t\t\tstop._color.toCanvasStyle());\n\t\t\t}\n\t\t\treturn this._canvasStyle = canvasGradient;\n\t\t},\n\n\t\ttransform: function(matrix) {\n\t\t\tif (this._type === 'gradient') {\n\t\t\t\tvar components = this._components;\n\t\t\t\tfor (var i = 1, l = components.length; i < l; i++) {\n\t\t\t\t\tvar point = components[i];\n\t\t\t\t\tmatrix._transformPoint(point, point, true);\n\t\t\t\t}\n\t\t\t\tthis._changed();\n\t\t\t}\n\t\t},\n\n\t\tstatics: {\n\t\t\t_types: types,\n\n\t\t\trandom: function() {\n\t\t\t\tvar random = Math.random;\n\t\t\t\treturn new Color(random(), random(), random());\n\t\t\t},\n\n\t\t\t_setOwner: function(color, owner, setter) {\n\t\t\t\tif (color) {\n\t\t\t\t\tif (color._owner && owner && color._owner !== owner) {\n\t\t\t\t\t\tcolor = color.clone();\n\t\t\t\t\t}\n\t\t\t\t\tif (!color._owner ^ !owner) {\n\t\t\t\t\t\tcolor._owner = owner || null;\n\t\t\t\t\t\tcolor._setter = setter || null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn color;\n\t\t\t}\n\t\t}\n\t});\n},\nnew function() {\n\tvar operators = {\n\t\tadd: function(a, b) {\n\t\t\treturn a + b;\n\t\t},\n\n\t\tsubtract: function(a, b) {\n\t\t\treturn a - b;\n\t\t},\n\n\t\tmultiply: function(a, b) {\n\t\t\treturn a * b;\n\t\t},\n\n\t\tdivide: function(a, b) {\n\t\t\treturn a / b;\n\t\t}\n\t};\n\n\treturn Base.each(operators, function(operator, name) {\n\t\tthis[name] = function(color) {\n\t\t\tcolor = Color.read(arguments);\n\t\t\tvar type = this._type,\n\t\t\t\tcomponents1 = this._components,\n\t\t\t\tcomponents2 = color._convert(type);\n\t\t\tfor (var i = 0, l = components1.length; i < l; i++)\n\t\t\t\tcomponents2[i] = operator(components1[i], components2[i]);\n\t\t\treturn new Color(type, components2,\n\t\t\t\t\tthis._alpha != null\n\t\t\t\t\t\t\t? operator(this._alpha, color.getAlpha())\n\t\t\t\t\t\t\t: null);\n\t\t};\n\t}, {\n\t});\n});\n\nvar Gradient = Base.extend({\n\t_class: 'Gradient',\n\n\tinitialize: function Gradient(stops, radial) {\n\t\tthis._id = UID.get();\n\t\tif (stops && Base.isPlainObject(stops)) {\n\t\t\tthis.set(stops);\n\t\t\tstops = radial = null;\n\t\t}\n\t\tif (this._stops == null) {\n\t\t\tthis.setStops(stops || ['white', 'black']);\n\t\t}\n\t\tif (this._radial == null) {\n\t\t\tthis.setRadial(typeof radial === 'string' && radial === 'radial'\n\t\t\t\t\t|| radial || false);\n\t\t}\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\treturn dictionary.add(this, function() {\n\t\t\treturn Base.serialize([this._stops, this._radial],\n\t\t\t\t\toptions, true, dictionary);\n\t\t});\n\t},\n\n\t_changed: function() {\n\t\tfor (var i = 0, l = this._owners && this._owners.length; i < l; i++) {\n\t\t\tthis._owners[i]._changed();\n\t\t}\n\t},\n\n\t_addOwner: function(color) {\n\t\tif (!this._owners)\n\t\t\tthis._owners = [];\n\t\tthis._owners.push(color);\n\t},\n\n\t_removeOwner: function(color) {\n\t\tvar index = this._owners ? this._owners.indexOf(color) : -1;\n\t\tif (index != -1) {\n\t\t\tthis._owners.splice(index, 1);\n\t\t\tif (!this._owners.length)\n\t\t\t\tthis._owners = undefined;\n\t\t}\n\t},\n\n\tclone: function() {\n\t\tvar stops = [];\n\t\tfor (var i = 0, l = this._stops.length; i < l; i++) {\n\t\t\tstops[i] = this._stops[i].clone();\n\t\t}\n\t\treturn new Gradient(stops, this._radial);\n\t},\n\n\tgetStops: function() {\n\t\treturn this._stops;\n\t},\n\n\tsetStops: function(stops) {\n\t\tif (stops.length < 2) {\n\t\t\tthrow new Error(\n\t\t\t\t\t'Gradient stop list needs to contain at least two stops.');\n\t\t}\n\t\tvar _stops = this._stops;\n\t\tif (_stops) {\n\t\t\tfor (var i = 0, l = _stops.length; i < l; i++)\n\t\t\t\t_stops[i]._owner = undefined;\n\t\t}\n\t\t_stops = this._stops = GradientStop.readList(stops, 0, { clone: true });\n\t\tfor (var i = 0, l = _stops.length; i < l; i++)\n\t\t\t_stops[i]._owner = this;\n\t\tthis._changed();\n\t},\n\n\tgetRadial: function() {\n\t\treturn this._radial;\n\t},\n\n\tsetRadial: function(radial) {\n\t\tthis._radial = radial;\n\t\tthis._changed();\n\t},\n\n\tequals: function(gradient) {\n\t\tif (gradient === this)\n\t\t\treturn true;\n\t\tif (gradient && this._class === gradient._class) {\n\t\t\tvar stops1 = this._stops,\n\t\t\t\tstops2 = gradient._stops,\n\t\t\t\tlength = stops1.length;\n\t\t\tif (length === stops2.length) {\n\t\t\t\tfor (var i = 0; i < length; i++) {\n\t\t\t\t\tif (!stops1[i].equals(stops2[i]))\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n});\n\nvar GradientStop = Base.extend({\n\t_class: 'GradientStop',\n\n\tinitialize: function GradientStop(arg0, arg1) {\n\t\tvar color = arg0,\n\t\t\toffset = arg1;\n\t\tif (typeof arg0 === 'object' && arg1 === undefined) {\n\t\t\tif (Array.isArray(arg0) && typeof arg0[0] !== 'number') {\n\t\t\t\tcolor = arg0[0];\n\t\t\t\toffset = arg0[1];\n\t\t\t} else if ('color' in arg0 || 'offset' in arg0\n\t\t\t\t\t|| 'rampPoint' in arg0) {\n\t\t\t\tcolor = arg0.color;\n\t\t\t\toffset = arg0.offset || arg0.rampPoint || 0;\n\t\t\t}\n\t\t}\n\t\tthis.setColor(color);\n\t\tthis.setOffset(offset);\n\t},\n\n\tclone: function() {\n\t\treturn new GradientStop(this._color.clone(), this._offset);\n\t},\n\n\t_serialize: function(options, dictionary) {\n\t\tvar color = this._color,\n\t\t\toffset = this._offset;\n\t\treturn Base.serialize(offset == null ? [color] : [color, offset],\n\t\t\t\toptions, true, dictionary);\n\t},\n\n\t_changed: function() {\n\t\tif (this._owner)\n\t\t\tthis._owner._changed(129);\n\t},\n\n\tgetOffset: function() {\n\t\treturn this._offset;\n\t},\n\n\tsetOffset: function(offset) {\n\t\tthis._offset = offset;\n\t\tthis._changed();\n\t},\n\n\tgetRampPoint: '#getOffset',\n\tsetRampPoint: '#setOffset',\n\n\tgetColor: function() {\n\t\treturn this._color;\n\t},\n\n\tsetColor: function() {\n\t\tColor._setOwner(this._color, null);\n\t\tthis._color = Color._setOwner(Color.read(arguments, 0), this,\n\t\t\t\t'setColor');\n\t\tthis._changed();\n\t},\n\n\tequals: function(stop) {\n\t\treturn stop === this || stop && this._class === stop._class\n\t\t\t\t&& this._color.equals(stop._color)\n\t\t\t\t&& this._offset == stop._offset\n\t\t\t\t|| false;\n\t}\n});\n\nvar Style = Base.extend(new function() {\n\tvar itemDefaults = {\n\t\tfillColor: null,\n\t\tfillRule: 'nonzero',\n\t\tstrokeColor: null,\n\t\tstrokeWidth: 1,\n\t\tstrokeCap: 'butt',\n\t\tstrokeJoin: 'miter',\n\t\tstrokeScaling: true,\n\t\tmiterLimit: 10,\n\t\tdashOffset: 0,\n\t\tdashArray: [],\n\t\tshadowColor: null,\n\t\tshadowBlur: 0,\n\t\tshadowOffset: new Point(),\n\t\tselectedColor: null\n\t},\n\tgroupDefaults = Base.set({}, itemDefaults, {\n\t\tfontFamily: 'sans-serif',\n\t\tfontWeight: 'normal',\n\t\tfontSize: 12,\n\t\tleading: null,\n\t\tjustification: 'left'\n\t}),\n\ttextDefaults = Base.set({}, groupDefaults, {\n\t\tfillColor: new Color()\n\t}),\n\tflags = {\n\t\tstrokeWidth: 193,\n\t\tstrokeCap: 193,\n\t\tstrokeJoin: 193,\n\t\tstrokeScaling: 201,\n\t\tmiterLimit: 193,\n\t\tfontFamily: 9,\n\t\tfontWeight: 9,\n\t\tfontSize: 9,\n\t\tfont: 9,\n\t\tleading: 9,\n\t\tjustification: 9\n\t},\n\titem = {\n\t\tbeans: true\n\t},\n\tfields = {\n\t\t_class: 'Style',\n\t\tbeans: true,\n\n\t\tinitialize: function Style(style, _owner, _project) {\n\t\t\tthis._values = {};\n\t\t\tthis._owner = _owner;\n\t\t\tthis._project = _owner && _owner._project || _project\n\t\t\t\t\t|| paper.project;\n\t\t\tthis._defaults = !_owner || _owner instanceof Group ? groupDefaults\n\t\t\t\t\t: _owner instanceof TextItem ? textDefaults\n\t\t\t\t\t: itemDefaults;\n\t\t\tif (style)\n\t\t\t\tthis.set(style);\n\t\t}\n\t};\n\n\tBase.each(groupDefaults, function(value, key) {\n\t\tvar isColor = /Color$/.test(key),\n\t\t\tisPoint = key === 'shadowOffset',\n\t\t\tpart = Base.capitalize(key),\n\t\t\tflag = flags[key],\n\t\t\tset = 'set' + part,\n\t\t\tget = 'get' + part;\n\n\t\tfields[set] = function(value) {\n\t\t\tvar owner = this._owner,\n\t\t\t\tchildren = owner && owner._children,\n\t\t\t\tapplyToChildren = children && children.length > 0\n\t\t\t\t\t&& !(owner instanceof CompoundPath);\n\t\t\tif (applyToChildren) {\n\t\t\t\tfor (var i = 0, l = children.length; i < l; i++)\n\t\t\t\t\tchildren[i]._style[set](value);\n\t\t\t}\n\t\t\tif ((key === 'selectedColor' || !applyToChildren)\n\t\t\t\t\t&& key in this._defaults) {\n\t\t\t\tvar old = this._values[key];\n\t\t\t\tif (old !== value) {\n\t\t\t\t\tif (isColor) {\n\t\t\t\t\t\tif (old) {\n\t\t\t\t\t\t\tColor._setOwner(old, null);\n\t\t\t\t\t\t\told._canvasStyle = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (value && value.constructor === Color) {\n\t\t\t\t\t\t\tvalue = Color._setOwner(value, owner,\n\t\t\t\t\t\t\t\t\tapplyToChildren && set);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tthis._values[key] = value;\n\t\t\t\t\tif (owner)\n\t\t\t\t\t\towner._changed(flag || 129);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tfields[get] = function(_dontMerge) {\n\t\t\tvar owner = this._owner,\n\t\t\t\tchildren = owner && owner._children,\n\t\t\t\tapplyToChildren = children && children.length > 0\n\t\t\t\t\t&& !(owner instanceof CompoundPath),\n\t\t\t\tvalue;\n\t\t\tif (applyToChildren && !_dontMerge) {\n\t\t\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\t\t\tvar childValue = children[i]._style[get]();\n\t\t\t\t\tif (!i) {\n\t\t\t\t\t\tvalue = childValue;\n\t\t\t\t\t} else if (!Base.equals(value, childValue)) {\n\t\t\t\t\t\treturn undefined;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (key in this._defaults) {\n\t\t\t\tvar value = this._values[key];\n\t\t\t\tif (value === undefined) {\n\t\t\t\t\tvalue = this._defaults[key];\n\t\t\t\t\tif (value && value.clone) {\n\t\t\t\t\t\tvalue = value.clone();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvar ctor = isColor ? Color : isPoint ? Point : null;\n\t\t\t\t\tif (ctor && !(value && value.constructor === ctor)) {\n\t\t\t\t\t\tthis._values[key] = value = ctor.read([value], 0,\n\t\t\t\t\t\t\t\t{ readNull: true, clone: true });\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (value && isColor) {\n\t\t\t\tvalue = Color._setOwner(value, owner, applyToChildren && set);\n\t\t\t}\n\t\t\treturn value;\n\t\t};\n\n\t\titem[get] = function(_dontMerge) {\n\t\t\treturn this._style[get](_dontMerge);\n\t\t};\n\n\t\titem[set] = function(value) {\n\t\t\tthis._style[set](value);\n\t\t};\n\t});\n\n\tBase.each({\n\t\tFont: 'FontFamily',\n\t\tWindingRule: 'FillRule'\n\t}, function(value, key) {\n\t\tvar get = 'get' + key,\n\t\t\tset = 'set' + key;\n\t\tfields[get] = item[get] = '#get' + value;\n\t\tfields[set] = item[set] = '#set' + value;\n\t});\n\n\tItem.inject(item);\n\treturn fields;\n}, {\n\tset: function(style) {\n\t\tvar isStyle = style instanceof Style,\n\t\t\tvalues = isStyle ? style._values : style;\n\t\tif (values) {\n\t\t\tfor (var key in values) {\n\t\t\t\tif (key in this._defaults) {\n\t\t\t\t\tvar value = values[key];\n\t\t\t\t\tthis[key] = value && isStyle && value.clone\n\t\t\t\t\t\t\t? value.clone() : value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tequals: function(style) {\n\t\tfunction compare(style1, style2, secondary) {\n\t\t\tvar values1 = style1._values,\n\t\t\t\tvalues2 = style2._values,\n\t\t\t\tdefaults2 = style2._defaults;\n\t\t\tfor (var key in values1) {\n\t\t\t\tvar value1 = values1[key],\n\t\t\t\t\tvalue2 = values2[key];\n\t\t\t\tif (!(secondary && key in values2) && !Base.equals(value1,\n\t\t\t\t\t\tvalue2 === undefined ? defaults2[key] : value2))\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\treturn style === this || style && this._class === style._class\n\t\t\t\t&& compare(this, style)\n\t\t\t\t&& compare(style, this, true)\n\t\t\t\t|| false;\n\t},\n\n\t_dispose: function() {\n\t\tvar color;\n\t\tcolor = this.getFillColor();\n\t\tif (color) color._canvasStyle = null;\n\t\tcolor = this.getStrokeColor();\n\t\tif (color) color._canvasStyle = null;\n\t\tcolor = this.getShadowColor();\n\t\tif (color) color._canvasStyle = null;\n\t},\n\n\thasFill: function() {\n\t\tvar color = this.getFillColor();\n\t\treturn !!color && color.alpha > 0;\n\t},\n\n\thasStroke: function() {\n\t\tvar color = this.getStrokeColor();\n\t\treturn !!color && color.alpha > 0 && this.getStrokeWidth() > 0;\n\t},\n\n\thasShadow: function() {\n\t\tvar color = this.getShadowColor();\n\t\treturn !!color && color.alpha > 0 && (this.getShadowBlur() > 0\n\t\t\t\t|| !this.getShadowOffset().isZero());\n\t},\n\n\tgetView: function() {\n\t\treturn this._project._view;\n\t},\n\n\tgetFontStyle: function() {\n\t\tvar fontSize = this.getFontSize();\n\t\treturn this.getFontWeight()\n\t\t\t\t+ ' ' + fontSize + (/[a-z]/i.test(fontSize + '') ? ' ' : 'px ')\n\t\t\t\t+ this.getFontFamily();\n\t},\n\n\tgetFont: '#getFontFamily',\n\tsetFont: '#setFontFamily',\n\n\tgetLeading: function getLeading() {\n\t\tvar leading = getLeading.base.call(this),\n\t\t\tfontSize = this.getFontSize();\n\t\tif (/pt|em|%|px/.test(fontSize))\n\t\t\tfontSize = this.getView().getPixelSize(fontSize);\n\t\treturn leading != null ? leading : fontSize * 1.2;\n\t}\n\n});\n\nvar DomElement = new function() {\n\tfunction handlePrefix(el, name, set, value) {\n\t\tvar prefixes = ['', 'webkit', 'moz', 'Moz', 'ms', 'o'],\n\t\t\tsuffix = name[0].toUpperCase() + name.substring(1);\n\t\tfor (var i = 0; i < 6; i++) {\n\t\t\tvar prefix = prefixes[i],\n\t\t\t\tkey = prefix ? prefix + suffix : name;\n\t\t\tif (key in el) {\n\t\t\t\tif (set) {\n\t\t\t\t\tel[key] = value;\n\t\t\t\t} else {\n\t\t\t\t\treturn el[key];\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn {\n\t\tgetStyles: function(el) {\n\t\t\tvar doc = el && el.nodeType !== 9 ? el.ownerDocument : el,\n\t\t\t\tview = doc && doc.defaultView;\n\t\t\treturn view && view.getComputedStyle(el, '');\n\t\t},\n\n\t\tgetBounds: function(el, viewport) {\n\t\t\tvar doc = el.ownerDocument,\n\t\t\t\tbody = doc.body,\n\t\t\t\thtml = doc.documentElement,\n\t\t\t\trect;\n\t\t\ttry {\n\t\t\t\trect = el.getBoundingClientRect();\n\t\t\t} catch (e) {\n\t\t\t\trect = { left: 0, top: 0, width: 0, height: 0 };\n\t\t\t}\n\t\t\tvar x = rect.left - (html.clientLeft || body.clientLeft || 0),\n\t\t\t\ty = rect.top - (html.clientTop || body.clientTop || 0);\n\t\t\tif (!viewport) {\n\t\t\t\tvar view = doc.defaultView;\n\t\t\t\tx += view.pageXOffset || html.scrollLeft || body.scrollLeft;\n\t\t\t\ty += view.pageYOffset || html.scrollTop || body.scrollTop;\n\t\t\t}\n\t\t\treturn new Rectangle(x, y, rect.width, rect.height);\n\t\t},\n\n\t\tgetViewportBounds: function(el) {\n\t\t\tvar doc = el.ownerDocument,\n\t\t\t\tview = doc.defaultView,\n\t\t\t\thtml = doc.documentElement;\n\t\t\treturn new Rectangle(0, 0,\n\t\t\t\tview.innerWidth || html.clientWidth,\n\t\t\t\tview.innerHeight || html.clientHeight\n\t\t\t);\n\t\t},\n\n\t\tgetOffset: function(el, viewport) {\n\t\t\treturn DomElement.getBounds(el, viewport).getPoint();\n\t\t},\n\n\t\tgetSize: function(el) {\n\t\t\treturn DomElement.getBounds(el, true).getSize();\n\t\t},\n\n\t\tisInvisible: function(el) {\n\t\t\treturn DomElement.getSize(el).equals(new Size(0, 0));\n\t\t},\n\n\t\tisInView: function(el) {\n\t\t\treturn !DomElement.isInvisible(el)\n\t\t\t\t\t&& DomElement.getViewportBounds(el).intersects(\n\t\t\t\t\t\tDomElement.getBounds(el, true));\n\t\t},\n\n\t\tisInserted: function(el) {\n\t\t\treturn document.body.contains(el);\n\t\t},\n\n\t\tgetPrefixed: function(el, name) {\n\t\t\treturn el && handlePrefix(el, name);\n\t\t},\n\n\t\tsetPrefixed: function(el, name, value) {\n\t\t\tif (typeof name === 'object') {\n\t\t\t\tfor (var key in name)\n\t\t\t\t\thandlePrefix(el, key, true, name[key]);\n\t\t\t} else {\n\t\t\t\thandlePrefix(el, name, true, value);\n\t\t\t}\n\t\t}\n\t};\n};\n\nvar DomEvent = {\n\tadd: function(el, events) {\n\t\tif (el) {\n\t\t\tfor (var type in events) {\n\t\t\t\tvar func = events[type],\n\t\t\t\t\tparts = type.split(/[\\s,]+/g);\n\t\t\t\tfor (var i = 0, l = parts.length; i < l; i++) {\n\t\t\t\t\tvar name = parts[i];\n\t\t\t\t\tvar options = (\n\t\t\t\t\t\tel === document\n\t\t\t\t\t\t&& (name === 'touchstart' || name === 'touchmove')\n\t\t\t\t\t) ? { passive: false } : false;\n\t\t\t\t\tel.addEventListener(name, func, options);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tremove: function(el, events) {\n\t\tif (el) {\n\t\t\tfor (var type in events) {\n\t\t\t\tvar func = events[type],\n\t\t\t\t\tparts = type.split(/[\\s,]+/g);\n\t\t\t\tfor (var i = 0, l = parts.length; i < l; i++)\n\t\t\t\t\tel.removeEventListener(parts[i], func, false);\n\t\t\t}\n\t\t}\n\t},\n\n\tgetPoint: function(event) {\n\t\tvar pos = event.targetTouches\n\t\t\t\t? event.targetTouches.length\n\t\t\t\t\t? event.targetTouches[0]\n\t\t\t\t\t: event.changedTouches[0]\n\t\t\t\t: event;\n\t\treturn new Point(\n\t\t\tpos.pageX || pos.clientX + document.documentElement.scrollLeft,\n\t\t\tpos.pageY || pos.clientY + document.documentElement.scrollTop\n\t\t);\n\t},\n\n\tgetTarget: function(event) {\n\t\treturn event.target || event.srcElement;\n\t},\n\n\tgetRelatedTarget: function(event) {\n\t\treturn event.relatedTarget || event.toElement;\n\t},\n\n\tgetOffset: function(event, target) {\n\t\treturn DomEvent.getPoint(event).subtract(DomElement.getOffset(\n\t\t\t\ttarget || DomEvent.getTarget(event)));\n\t}\n};\n\nDomEvent.requestAnimationFrame = new function() {\n\tvar nativeRequest = DomElement.getPrefixed(window, 'requestAnimationFrame'),\n\t\trequested = false,\n\t\tcallbacks = [],\n\t\ttimer;\n\n\tfunction handleCallbacks() {\n\t\tvar functions = callbacks;\n\t\tcallbacks = [];\n\t\tfor (var i = 0, l = functions.length; i < l; i++)\n\t\t\tfunctions[i]();\n\t\trequested = nativeRequest && callbacks.length;\n\t\tif (requested)\n\t\t\tnativeRequest(handleCallbacks);\n\t}\n\n\treturn function(callback) {\n\t\tcallbacks.push(callback);\n\t\tif (nativeRequest) {\n\t\t\tif (!requested) {\n\t\t\t\tnativeRequest(handleCallbacks);\n\t\t\t\trequested = true;\n\t\t\t}\n\t\t} else if (!timer) {\n\t\t\ttimer = setInterval(handleCallbacks, 1000 / 60);\n\t\t}\n\t};\n};\n\nvar View = Base.extend(Emitter, {\n\t_class: 'View',\n\n\tinitialize: function View(project, element) {\n\n\t\tfunction getSize(name) {\n\t\t\treturn element[name] || parseInt(element.getAttribute(name), 10);\n\t\t}\n\n\t\tfunction getCanvasSize() {\n\t\t\tvar size = DomElement.getSize(element);\n\t\t\treturn size.isNaN() || size.isZero()\n\t\t\t\t\t? new Size(getSize('width'), getSize('height'))\n\t\t\t\t\t: size;\n\t\t}\n\n\t\tvar size;\n\t\tif (window && element) {\n\t\t\tthis._id = element.getAttribute('id');\n\t\t\tif (this._id == null)\n\t\t\t\telement.setAttribute('id', this._id = 'paper-view-' + View._id++);\n\t\t\tDomEvent.add(element, this._viewEvents);\n\t\t\tvar none = 'none';\n\t\t\tDomElement.setPrefixed(element.style, {\n\t\t\t\tuserDrag: none,\n\t\t\t\tuserSelect: none,\n\t\t\t\ttouchCallout: none,\n\t\t\t\tcontentZooming: none,\n\t\t\t\ttapHighlightColor: 'rgba(0,0,0,0)'\n\t\t\t});\n\n\t\t\tif (PaperScope.hasAttribute(element, 'resize')) {\n\t\t\t\tvar that = this;\n\t\t\t\tDomEvent.add(window, this._windowEvents = {\n\t\t\t\t\tresize: function() {\n\t\t\t\t\t\tthat.setViewSize(getCanvasSize());\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tsize = getCanvasSize();\n\n\t\t\tif (PaperScope.hasAttribute(element, 'stats')\n\t\t\t\t\t&& typeof Stats !== 'undefined') {\n\t\t\t\tthis._stats = new Stats();\n\t\t\t\tvar stats = this._stats.domElement,\n\t\t\t\t\tstyle = stats.style,\n\t\t\t\t\toffset = DomElement.getOffset(element);\n\t\t\t\tstyle.position = 'absolute';\n\t\t\t\tstyle.left = offset.x + 'px';\n\t\t\t\tstyle.top = offset.y + 'px';\n\t\t\t\tdocument.body.appendChild(stats);\n\t\t\t}\n\t\t} else {\n\t\t\tsize = new Size(element);\n\t\t\telement = null;\n\t\t}\n\t\tthis._project = project;\n\t\tthis._scope = project._scope;\n\t\tthis._element = element;\n\t\tif (!this._pixelRatio)\n\t\t\tthis._pixelRatio = window && window.devicePixelRatio || 1;\n\t\tthis._setElementSize(size.width, size.height);\n\t\tthis._viewSize = size;\n\t\tView._views.push(this);\n\t\tView._viewsById[this._id] = this;\n\t\t(this._matrix = new Matrix())._owner = this;\n\t\tif (!View._focused)\n\t\t\tView._focused = this;\n\t\tthis._frameItems = {};\n\t\tthis._frameItemCount = 0;\n\t\tthis._itemEvents = { native: {}, virtual: {} };\n\t\tthis._autoUpdate = !paper.agent.node;\n\t\tthis._needsUpdate = false;\n\t},\n\n\tremove: function() {\n\t\tif (!this._project)\n\t\t\treturn false;\n\t\tif (View._focused === this)\n\t\t\tView._focused = null;\n\t\tView._views.splice(View._views.indexOf(this), 1);\n\t\tdelete View._viewsById[this._id];\n\t\tvar project = this._project;\n\t\tif (project._view === this)\n\t\t\tproject._view = null;\n\t\tDomEvent.remove(this._element, this._viewEvents);\n\t\tDomEvent.remove(window, this._windowEvents);\n\t\tthis._element = this._project = null;\n\t\tthis.off('frame');\n\t\tthis._animate = false;\n\t\tthis._frameItems = {};\n\t\treturn true;\n\t},\n\n\t_events: Base.each(\n\t\tItem._itemHandlers.concat(['onResize', 'onKeyDown', 'onKeyUp']),\n\t\tfunction(name) {\n\t\t\tthis[name] = {};\n\t\t}, {\n\t\t\tonFrame: {\n\t\t\t\tinstall: function() {\n\t\t\t\t\tthis.play();\n\t\t\t\t},\n\n\t\t\t\tuninstall: function() {\n\t\t\t\t\tthis.pause();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t),\n\n\t_animate: false,\n\t_time: 0,\n\t_count: 0,\n\n\tgetAutoUpdate: function() {\n\t\treturn this._autoUpdate;\n\t},\n\n\tsetAutoUpdate: function(autoUpdate) {\n\t\tthis._autoUpdate = autoUpdate;\n\t\tif (autoUpdate)\n\t\t\tthis.requestUpdate();\n\t},\n\n\tupdate: function() {\n\t},\n\n\tdraw: function() {\n\t\tthis.update();\n\t},\n\n\trequestUpdate: function() {\n\t\tif (!this._requested) {\n\t\t\tvar that = this;\n\t\t\tDomEvent.requestAnimationFrame(function() {\n\t\t\t\tthat._requested = false;\n\t\t\t\tif (that._animate) {\n\t\t\t\t\tthat.requestUpdate();\n\t\t\t\t\tvar element = that._element;\n\t\t\t\t\tif ((!DomElement.getPrefixed(document, 'hidden')\n\t\t\t\t\t\t\t|| PaperScope.getAttribute(element, 'keepalive')\n\t\t\t\t\t\t\t\t=== 'true') && DomElement.isInView(element)) {\n\t\t\t\t\t\tthat._handleFrame();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (that._autoUpdate)\n\t\t\t\t\tthat.update();\n\t\t\t});\n\t\t\tthis._requested = true;\n\t\t}\n\t},\n\n\tplay: function() {\n\t\tthis._animate = true;\n\t\tthis.requestUpdate();\n\t},\n\n\tpause: function() {\n\t\tthis._animate = false;\n\t},\n\n\t_handleFrame: function() {\n\t\tpaper = this._scope;\n\t\tvar now = Date.now() / 1000,\n\t\t\tdelta = this._last ? now - this._last : 0;\n\t\tthis._last = now;\n\t\tthis.emit('frame', new Base({\n\t\t\tdelta: delta,\n\t\t\ttime: this._time += delta,\n\t\t\tcount: this._count++\n\t\t}));\n\t\tif (this._stats)\n\t\t\tthis._stats.update();\n\t},\n\n\t_animateItem: function(item, animate) {\n\t\tvar items = this._frameItems;\n\t\tif (animate) {\n\t\t\titems[item._id] = {\n\t\t\t\titem: item,\n\t\t\t\ttime: 0,\n\t\t\t\tcount: 0\n\t\t\t};\n\t\t\tif (++this._frameItemCount === 1)\n\t\t\t\tthis.on('frame', this._handleFrameItems);\n\t\t} else {\n\t\t\tdelete items[item._id];\n\t\t\tif (--this._frameItemCount === 0) {\n\t\t\t\tthis.off('frame', this._handleFrameItems);\n\t\t\t}\n\t\t}\n\t},\n\n\t_handleFrameItems: function(event) {\n\t\tfor (var i in this._frameItems) {\n\t\t\tvar entry = this._frameItems[i];\n\t\t\tentry.item.emit('frame', new Base(event, {\n\t\t\t\ttime: entry.time += event.delta,\n\t\t\t\tcount: entry.count++\n\t\t\t}));\n\t\t}\n\t},\n\n\t_changed: function() {\n\t\tthis._project._changed(4097);\n\t\tthis._bounds = this._decomposed = undefined;\n\t},\n\n\tgetElement: function() {\n\t\treturn this._element;\n\t},\n\n\tgetPixelRatio: function() {\n\t\treturn this._pixelRatio;\n\t},\n\n\tgetResolution: function() {\n\t\treturn this._pixelRatio * 72;\n\t},\n\n\tgetViewSize: function() {\n\t\tvar size = this._viewSize;\n\t\treturn new LinkedSize(size.width, size.height, this, 'setViewSize');\n\t},\n\n\tsetViewSize: function() {\n\t\tvar size = Size.read(arguments),\n\t\t\tdelta = size.subtract(this._viewSize);\n\t\tif (delta.isZero())\n\t\t\treturn;\n\t\tthis._setElementSize(size.width, size.height);\n\t\tthis._viewSize.set(size);\n\t\tthis._changed();\n\t\tthis.emit('resize', { size: size, delta: delta });\n\t\tif (this._autoUpdate) {\n\t\t\tthis.update();\n\t\t}\n\t},\n\n\t_setElementSize: function(width, height) {\n\t\tvar element = this._element;\n\t\tif (element) {\n\t\t\tif (element.width !== width)\n\t\t\t\telement.width = width;\n\t\t\tif (element.height !== height)\n\t\t\t\telement.height = height;\n\t\t}\n\t},\n\n\tgetBounds: function() {\n\t\tif (!this._bounds)\n\t\t\tthis._bounds = this._matrix.inverted()._transformBounds(\n\t\t\t\t\tnew Rectangle(new Point(), this._viewSize));\n\t\treturn this._bounds;\n\t},\n\n\tgetSize: function() {\n\t\treturn this.getBounds().getSize();\n\t},\n\n\tisVisible: function() {\n\t\treturn DomElement.isInView(this._element);\n\t},\n\n\tisInserted: function() {\n\t\treturn DomElement.isInserted(this._element);\n\t},\n\n\tgetPixelSize: function(size) {\n\t\tvar element = this._element,\n\t\t\tpixels;\n\t\tif (element) {\n\t\t\tvar parent = element.parentNode,\n\t\t\t\ttemp = document.createElement('div');\n\t\t\ttemp.style.fontSize = size;\n\t\t\tparent.appendChild(temp);\n\t\t\tpixels = parseFloat(DomElement.getStyles(temp).fontSize);\n\t\t\tparent.removeChild(temp);\n\t\t} else {\n\t\t\tpixels = parseFloat(pixels);\n\t\t}\n\t\treturn pixels;\n\t},\n\n\tgetTextWidth: function(font, lines) {\n\t\treturn 0;\n\t}\n}, Base.each(['rotate', 'scale', 'shear', 'skew'], function(key) {\n\tvar rotate = key === 'rotate';\n\tthis[key] = function() {\n\t\tvar args = arguments,\n\t\t\tvalue = (rotate ? Base : Point).read(args),\n\t\t\tcenter = Point.read(args, 0, { readNull: true });\n\t\treturn this.transform(new Matrix()[key](value,\n\t\t\t\tcenter || this.getCenter(true)));\n\t};\n}, {\n\t_decompose: function() {\n\t\treturn this._decomposed || (this._decomposed = this._matrix.decompose());\n\t},\n\n\ttranslate: function() {\n\t\tvar mx = new Matrix();\n\t\treturn this.transform(mx.translate.apply(mx, arguments));\n\t},\n\n\tgetCenter: function() {\n\t\treturn this.getBounds().getCenter();\n\t},\n\n\tsetCenter: function() {\n\t\tvar center = Point.read(arguments);\n\t\tthis.translate(this.getCenter().subtract(center));\n\t},\n\n\tgetZoom: function() {\n\t\tvar scaling = this._decompose().scaling;\n\t\treturn (scaling.x + scaling.y) / 2;\n\t},\n\n\tsetZoom: function(zoom) {\n\t\tthis.transform(new Matrix().scale(zoom / this.getZoom(),\n\t\t\tthis.getCenter()));\n\t},\n\n\tgetRotation: function() {\n\t\treturn this._decompose().rotation;\n\t},\n\n\tsetRotation: function(rotation) {\n\t\tvar current = this.getRotation();\n\t\tif (current != null && rotation != null) {\n\t\t\tthis.rotate(rotation - current);\n\t\t}\n\t},\n\n\tgetScaling: function() {\n\t\tvar scaling = this._decompose().scaling;\n\t\treturn new LinkedPoint(scaling.x, scaling.y, this, 'setScaling');\n\t},\n\n\tsetScaling: function() {\n\t\tvar current = this.getScaling(),\n\t\t\tscaling = Point.read(arguments, 0, { clone: true, readNull: true });\n\t\tif (current && scaling) {\n\t\t\tthis.scale(scaling.x / current.x, scaling.y / current.y);\n\t\t}\n\t},\n\n\tgetMatrix: function() {\n\t\treturn this._matrix;\n\t},\n\n\tsetMatrix: function() {\n\t\tvar matrix = this._matrix;\n\t\tmatrix.set.apply(matrix, arguments);\n\t},\n\n\ttransform: function(matrix) {\n\t\tthis._matrix.append(matrix);\n\t},\n\n\tscrollBy: function() {\n\t\tthis.translate(Point.read(arguments).negate());\n\t}\n}), {\n\n\tprojectToView: function() {\n\t\treturn this._matrix._transformPoint(Point.read(arguments));\n\t},\n\n\tviewToProject: function() {\n\t\treturn this._matrix._inverseTransform(Point.read(arguments));\n\t},\n\n\tgetEventPoint: function(event) {\n\t\treturn this.viewToProject(DomEvent.getOffset(event, this._element));\n\t},\n\n}, {\n\tstatics: {\n\t\t_views: [],\n\t\t_viewsById: {},\n\t\t_id: 0,\n\n\t\tcreate: function(project, element) {\n\t\t\tif (document && typeof element === 'string')\n\t\t\t\telement = document.getElementById(element);\n\t\t\tvar ctor = window ? CanvasView : View;\n\t\t\treturn new ctor(project, element);\n\t\t}\n\t}\n},\nnew function() {\n\tif (!window)\n\t\treturn;\n\tvar prevFocus,\n\t\ttempFocus,\n\t\tdragging = false,\n\t\tmouseDown = false;\n\n\tfunction getView(event) {\n\t\tvar target = DomEvent.getTarget(event);\n\t\treturn target.getAttribute && View._viewsById[\n\t\t\t\ttarget.getAttribute('id')];\n\t}\n\n\tfunction updateFocus() {\n\t\tvar view = View._focused;\n\t\tif (!view || !view.isVisible()) {\n\t\t\tfor (var i = 0, l = View._views.length; i < l; i++) {\n\t\t\t\tif ((view = View._views[i]).isVisible()) {\n\t\t\t\t\tView._focused = tempFocus = view;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tfunction handleMouseMove(view, event, point) {\n\t\tview._handleMouseEvent('mousemove', event, point);\n\t}\n\n\tvar navigator = window.navigator,\n\t\tmousedown, mousemove, mouseup;\n\tif (navigator.pointerEnabled || navigator.msPointerEnabled) {\n\t\tmousedown = 'pointerdown MSPointerDown';\n\t\tmousemove = 'pointermove MSPointerMove';\n\t\tmouseup = 'pointerup pointercancel MSPointerUp MSPointerCancel';\n\t} else {\n\t\tmousedown = 'touchstart';\n\t\tmousemove = 'touchmove';\n\t\tmouseup = 'touchend touchcancel';\n\t\tif (!('ontouchstart' in window && navigator.userAgent.match(\n\t\t\t\t/mobile|tablet|ip(ad|hone|od)|android|silk/i))) {\n\t\t\tmousedown += ' mousedown';\n\t\t\tmousemove += ' mousemove';\n\t\t\tmouseup += ' mouseup';\n\t\t}\n\t}\n\n\tvar viewEvents = {},\n\t\tdocEvents = {\n\t\t\tmouseout: function(event) {\n\t\t\t\tvar view = View._focused,\n\t\t\t\t\ttarget = DomEvent.getRelatedTarget(event);\n\t\t\t\tif (view && (!target || target.nodeName === 'HTML')) {\n\t\t\t\t\tvar offset = DomEvent.getOffset(event, view._element),\n\t\t\t\t\t\tx = offset.x,\n\t\t\t\t\t\tabs = Math.abs,\n\t\t\t\t\t\tax = abs(x),\n\t\t\t\t\t\tmax = 1 << 25,\n\t\t\t\t\t\tdiff = ax - max;\n\t\t\t\t\toffset.x = abs(diff) < ax ? diff * (x < 0 ? -1 : 1) : x;\n\t\t\t\t\thandleMouseMove(view, event, view.viewToProject(offset));\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tscroll: updateFocus\n\t\t};\n\n\tviewEvents[mousedown] = function(event) {\n\t\tvar view = View._focused = getView(event);\n\t\tif (!dragging) {\n\t\t\tdragging = true;\n\t\t\tview._handleMouseEvent('mousedown', event);\n\t\t}\n\t};\n\n\tdocEvents[mousemove] = function(event) {\n\t\tvar view = View._focused;\n\t\tif (!mouseDown) {\n\t\t\tvar target = getView(event);\n\t\t\tif (target) {\n\t\t\t\tif (view !== target) {\n\t\t\t\t\tif (view)\n\t\t\t\t\t\thandleMouseMove(view, event);\n\t\t\t\t\tif (!prevFocus)\n\t\t\t\t\t\tprevFocus = view;\n\t\t\t\t\tview = View._focused = tempFocus = target;\n\t\t\t\t}\n\t\t\t} else if (tempFocus && tempFocus === view) {\n\t\t\t\tif (prevFocus && !prevFocus.isInserted())\n\t\t\t\t\tprevFocus = null;\n\t\t\t\tview = View._focused = prevFocus;\n\t\t\t\tprevFocus = null;\n\t\t\t\tupdateFocus();\n\t\t\t}\n\t\t}\n\t\tif (view)\n\t\t\thandleMouseMove(view, event);\n\t};\n\n\tdocEvents[mousedown] = function() {\n\t\tmouseDown = true;\n\t};\n\n\tdocEvents[mouseup] = function(event) {\n\t\tvar view = View._focused;\n\t\tif (view && dragging)\n\t\t\tview._handleMouseEvent('mouseup', event);\n\t\tmouseDown = dragging = false;\n\t};\n\n\tDomEvent.add(document, docEvents);\n\n\tDomEvent.add(window, {\n\t\tload: updateFocus\n\t});\n\n\tvar called = false,\n\t\tprevented = false,\n\t\tfallbacks = {\n\t\t\tdoubleclick: 'click',\n\t\t\tmousedrag: 'mousemove'\n\t\t},\n\t\twasInView = false,\n\t\toverView,\n\t\tdownPoint,\n\t\tlastPoint,\n\t\tdownItem,\n\t\toverItem,\n\t\tdragItem,\n\t\tclickItem,\n\t\tclickTime,\n\t\tdblClick;\n\n\tfunction emitMouseEvent(obj, target, type, event, point, prevPoint,\n\t\t\tstopItem) {\n\t\tvar stopped = false,\n\t\t\tmouseEvent;\n\n\t\tfunction emit(obj, type) {\n\t\t\tif (obj.responds(type)) {\n\t\t\t\tif (!mouseEvent) {\n\t\t\t\t\tmouseEvent = new MouseEvent(type, event, point,\n\t\t\t\t\t\t\ttarget || obj,\n\t\t\t\t\t\t\tprevPoint ? point.subtract(prevPoint) : null);\n\t\t\t\t}\n\t\t\t\tif (obj.emit(type, mouseEvent)) {\n\t\t\t\t\tcalled = true;\n\t\t\t\t\tif (mouseEvent.prevented)\n\t\t\t\t\t\tprevented = true;\n\t\t\t\t\tif (mouseEvent.stopped)\n\t\t\t\t\t\treturn stopped = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tvar fallback = fallbacks[type];\n\t\t\t\tif (fallback)\n\t\t\t\t\treturn emit(obj, fallback);\n\t\t\t}\n\t\t}\n\n\t\twhile (obj && obj !== stopItem) {\n\t\t\tif (emit(obj, type))\n\t\t\t\tbreak;\n\t\t\tobj = obj._parent;\n\t\t}\n\t\treturn stopped;\n\t}\n\n\tfunction emitMouseEvents(view, hitItem, type, event, point, prevPoint) {\n\t\tview._project.removeOn(type);\n\t\tprevented = called = false;\n\t\treturn (dragItem && emitMouseEvent(dragItem, null, type, event,\n\t\t\t\t\tpoint, prevPoint)\n\t\t\t|| hitItem && hitItem !== dragItem\n\t\t\t\t&& !hitItem.isDescendant(dragItem)\n\t\t\t\t&& emitMouseEvent(hitItem, null, type === 'mousedrag' ?\n\t\t\t\t\t'mousemove' : type, event, point, prevPoint, dragItem)\n\t\t\t|| emitMouseEvent(view, dragItem || hitItem || view, type, event,\n\t\t\t\t\tpoint, prevPoint));\n\t}\n\n\tvar itemEventsMap = {\n\t\tmousedown: {\n\t\t\tmousedown: 1,\n\t\t\tmousedrag: 1,\n\t\t\tclick: 1,\n\t\t\tdoubleclick: 1\n\t\t},\n\t\tmouseup: {\n\t\t\tmouseup: 1,\n\t\t\tmousedrag: 1,\n\t\t\tclick: 1,\n\t\t\tdoubleclick: 1\n\t\t},\n\t\tmousemove: {\n\t\t\tmousedrag: 1,\n\t\t\tmousemove: 1,\n\t\t\tmouseenter: 1,\n\t\t\tmouseleave: 1\n\t\t}\n\t};\n\n\treturn {\n\t\t_viewEvents: viewEvents,\n\n\t\t_handleMouseEvent: function(type, event, point) {\n\t\t\tvar itemEvents = this._itemEvents,\n\t\t\t\thitItems = itemEvents.native[type],\n\t\t\t\tnativeMove = type === 'mousemove',\n\t\t\t\ttool = this._scope.tool,\n\t\t\t\tview = this;\n\n\t\t\tfunction responds(type) {\n\t\t\t\treturn itemEvents.virtual[type] || view.responds(type)\n\t\t\t\t\t\t|| tool && tool.responds(type);\n\t\t\t}\n\n\t\t\tif (nativeMove && dragging && responds('mousedrag'))\n\t\t\t\ttype = 'mousedrag';\n\t\t\tif (!point)\n\t\t\t\tpoint = this.getEventPoint(event);\n\n\t\t\tvar inView = this.getBounds().contains(point),\n\t\t\t\thit = hitItems && inView && view._project.hitTest(point, {\n\t\t\t\t\ttolerance: 0,\n\t\t\t\t\tfill: true,\n\t\t\t\t\tstroke: true\n\t\t\t\t}),\n\t\t\t\thitItem = hit && hit.item || null,\n\t\t\t\thandle = false,\n\t\t\t\tmouse = {};\n\t\t\tmouse[type.substr(5)] = true;\n\n\t\t\tif (hitItems && hitItem !== overItem) {\n\t\t\t\tif (overItem) {\n\t\t\t\t\temitMouseEvent(overItem, null, 'mouseleave', event, point);\n\t\t\t\t}\n\t\t\t\tif (hitItem) {\n\t\t\t\t\temitMouseEvent(hitItem, null, 'mouseenter', event, point);\n\t\t\t\t}\n\t\t\t\toverItem = hitItem;\n\t\t\t}\n\t\t\tif (wasInView ^ inView) {\n\t\t\t\temitMouseEvent(this, null, inView ? 'mouseenter' : 'mouseleave',\n\t\t\t\t\t\tevent, point);\n\t\t\t\toverView = inView ? this : null;\n\t\t\t\thandle = true;\n\t\t\t}\n\t\t\tif ((inView || mouse.drag) && !point.equals(lastPoint)) {\n\t\t\t\temitMouseEvents(this, hitItem, nativeMove ? type : 'mousemove',\n\t\t\t\t\t\tevent, point, lastPoint);\n\t\t\t\thandle = true;\n\t\t\t}\n\t\t\twasInView = inView;\n\t\t\tif (mouse.down && inView || mouse.up && downPoint) {\n\t\t\t\temitMouseEvents(this, hitItem, type, event, point, downPoint);\n\t\t\t\tif (mouse.down) {\n\t\t\t\t\tdblClick = hitItem === clickItem\n\t\t\t\t\t\t&& (Date.now() - clickTime < 300);\n\t\t\t\t\tdownItem = clickItem = hitItem;\n\t\t\t\t\tif (!prevented && hitItem) {\n\t\t\t\t\t\tvar item = hitItem;\n\t\t\t\t\t\twhile (item && !item.responds('mousedrag'))\n\t\t\t\t\t\t\titem = item._parent;\n\t\t\t\t\t\tif (item)\n\t\t\t\t\t\t\tdragItem = hitItem;\n\t\t\t\t\t}\n\t\t\t\t\tdownPoint = point;\n\t\t\t\t} else if (mouse.up) {\n\t\t\t\t\tif (!prevented && hitItem === downItem) {\n\t\t\t\t\t\tclickTime = Date.now();\n\t\t\t\t\t\temitMouseEvents(this, hitItem, dblClick ? 'doubleclick'\n\t\t\t\t\t\t\t\t: 'click', event, point, downPoint);\n\t\t\t\t\t\tdblClick = false;\n\t\t\t\t\t}\n\t\t\t\t\tdownItem = dragItem = null;\n\t\t\t\t}\n\t\t\t\twasInView = false;\n\t\t\t\thandle = true;\n\t\t\t}\n\t\t\tlastPoint = point;\n\t\t\tif (handle && tool) {\n\t\t\t\tcalled = tool._handleMouseEvent(type, event, point, mouse)\n\t\t\t\t\t|| called;\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tevent.cancelable !== false\n\t\t\t\t&& (called && !mouse.move || mouse.down && responds('mouseup'))\n\t\t\t) {\n\t\t\t\tevent.preventDefault();\n\t\t\t}\n\t\t},\n\n\t\t_handleKeyEvent: function(type, event, key, character) {\n\t\t\tvar scope = this._scope,\n\t\t\t\ttool = scope.tool,\n\t\t\t\tkeyEvent;\n\n\t\t\tfunction emit(obj) {\n\t\t\t\tif (obj.responds(type)) {\n\t\t\t\t\tpaper = scope;\n\t\t\t\t\tobj.emit(type, keyEvent = keyEvent\n\t\t\t\t\t\t\t|| new KeyEvent(type, event, key, character));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (this.isVisible()) {\n\t\t\t\temit(this);\n\t\t\t\tif (tool && tool.responds(type))\n\t\t\t\t\temit(tool);\n\t\t\t}\n\t\t},\n\n\t\t_countItemEvent: function(type, sign) {\n\t\t\tvar itemEvents = this._itemEvents,\n\t\t\t\tnative = itemEvents.native,\n\t\t\t\tvirtual = itemEvents.virtual;\n\t\t\tfor (var key in itemEventsMap) {\n\t\t\t\tnative[key] = (native[key] || 0)\n\t\t\t\t\t\t+ (itemEventsMap[key][type] || 0) * sign;\n\t\t\t}\n\t\t\tvirtual[type] = (virtual[type] || 0) + sign;\n\t\t},\n\n\t\tstatics: {\n\t\t\tupdateFocus: updateFocus,\n\n\t\t\t_resetState: function() {\n\t\t\t\tdragging = mouseDown = called = wasInView = false;\n\t\t\t\tprevFocus = tempFocus = overView = downPoint = lastPoint =\n\t\t\t\t\tdownItem = overItem = dragItem = clickItem = clickTime =\n\t\t\t\t\tdblClick = null;\n\t\t\t}\n\t\t}\n\t};\n});\n\nvar CanvasView = View.extend({\n\t_class: 'CanvasView',\n\n\tinitialize: function CanvasView(project, canvas) {\n\t\tif (!(canvas instanceof window.HTMLCanvasElement)) {\n\t\t\tvar size = Size.read(arguments, 1);\n\t\t\tif (size.isZero())\n\t\t\t\tthrow new Error(\n\t\t\t\t\t\t'Cannot create CanvasView with the provided argument: '\n\t\t\t\t\t\t+ Base.slice(arguments, 1));\n\t\t\tcanvas = CanvasProvider.getCanvas(size);\n\t\t}\n\t\tvar ctx = this._context = canvas.getContext('2d');\n\t\tctx.save();\n\t\tthis._pixelRatio = 1;\n\t\tif (!/^off|false$/.test(PaperScope.getAttribute(canvas, 'hidpi'))) {\n\t\t\tvar deviceRatio = window.devicePixelRatio || 1,\n\t\t\t\tbackingStoreRatio = DomElement.getPrefixed(ctx,\n\t\t\t\t\t\t'backingStorePixelRatio') || 1;\n\t\t\tthis._pixelRatio = deviceRatio / backingStoreRatio;\n\t\t}\n\t\tView.call(this, project, canvas);\n\t\tthis._needsUpdate = true;\n\t},\n\n\tremove: function remove() {\n\t\tthis._context.restore();\n\t\treturn remove.base.call(this);\n\t},\n\n\t_setElementSize: function _setElementSize(width, height) {\n\t\tvar pixelRatio = this._pixelRatio;\n\t\t_setElementSize.base.call(this, width * pixelRatio, height * pixelRatio);\n\t\tif (pixelRatio !== 1) {\n\t\t\tvar element = this._element,\n\t\t\t\tctx = this._context;\n\t\t\tif (!PaperScope.hasAttribute(element, 'resize')) {\n\t\t\t\tvar style = element.style;\n\t\t\t\tstyle.width = width + 'px';\n\t\t\t\tstyle.height = height + 'px';\n\t\t\t}\n\t\t\tctx.restore();\n\t\t\tctx.save();\n\t\t\tctx.scale(pixelRatio, pixelRatio);\n\t\t}\n\t},\n\n\tgetContext: function() {\n\t\treturn this._context;\n\t},\n\n\tgetPixelSize: function getPixelSize(size) {\n\t\tvar agent = paper.agent,\n\t\t\tpixels;\n\t\tif (agent && agent.firefox) {\n\t\t\tpixels = getPixelSize.base.call(this, size);\n\t\t} else {\n\t\t\tvar ctx = this._context,\n\t\t\t\tprevFont = ctx.font;\n\t\t\tctx.font = size + ' serif';\n\t\t\tpixels = parseFloat(ctx.font);\n\t\t\tctx.font = prevFont;\n\t\t}\n\t\treturn pixels;\n\t},\n\n\tgetTextWidth: function(font, lines) {\n\t\tvar ctx = this._context,\n\t\t\tprevFont = ctx.font,\n\t\t\twidth = 0;\n\t\tctx.font = font;\n\t\tfor (var i = 0, l = lines.length; i < l; i++)\n\t\t\twidth = Math.max(width, ctx.measureText(lines[i]).width);\n\t\tctx.font = prevFont;\n\t\treturn width;\n\t},\n\n\tupdate: function() {\n\t\tif (!this._needsUpdate)\n\t\t\treturn false;\n\t\tvar project = this._project,\n\t\t\tctx = this._context,\n\t\t\tsize = this._viewSize;\n\t\tctx.clearRect(0, 0, size.width + 1, size.height + 1);\n\t\tif (project)\n\t\t\tproject.draw(ctx, this._matrix, this._pixelRatio);\n\t\tthis._needsUpdate = false;\n\t\treturn true;\n\t}\n});\n\nvar Event = Base.extend({\n\t_class: 'Event',\n\n\tinitialize: function Event(event) {\n\t\tthis.event = event;\n\t\tthis.type = event && event.type;\n\t},\n\n\tprevented: false,\n\tstopped: false,\n\n\tpreventDefault: function() {\n\t\tthis.prevented = true;\n\t\tthis.event.preventDefault();\n\t},\n\n\tstopPropagation: function() {\n\t\tthis.stopped = true;\n\t\tthis.event.stopPropagation();\n\t},\n\n\tstop: function() {\n\t\tthis.stopPropagation();\n\t\tthis.preventDefault();\n\t},\n\n\tgetTimeStamp: function() {\n\t\treturn this.event.timeStamp;\n\t},\n\n\tgetModifiers: function() {\n\t\treturn Key.modifiers;\n\t}\n});\n\nvar KeyEvent = Event.extend({\n\t_class: 'KeyEvent',\n\n\tinitialize: function KeyEvent(type, event, key, character) {\n\t\tthis.type = type;\n\t\tthis.event = event;\n\t\tthis.key = key;\n\t\tthis.character = character;\n\t},\n\n\ttoString: function() {\n\t\treturn \"{ type: '\" + this.type\n\t\t\t\t+ \"', key: '\" + this.key\n\t\t\t\t+ \"', character: '\" + this.character\n\t\t\t\t+ \"', modifiers: \" + this.getModifiers()\n\t\t\t\t+ \" }\";\n\t}\n});\n\nvar Key = new function() {\n\tvar keyLookup = {\n\t\t\t'\\t': 'tab',\n\t\t\t' ': 'space',\n\t\t\t'\\b': 'backspace',\n\t\t\t'\\x7f': 'delete',\n\t\t\t'Spacebar': 'space',\n\t\t\t'Del': 'delete',\n\t\t\t'Win': 'meta',\n\t\t\t'Esc': 'escape'\n\t\t},\n\n\t\tcharLookup = {\n\t\t\t'tab': '\\t',\n\t\t\t'space': ' ',\n\t\t\t'enter': '\\r'\n\t\t},\n\n\t\tkeyMap = {},\n\t\tcharMap = {},\n\t\tmetaFixMap,\n\t\tdownKey,\n\n\t\tmodifiers = new Base({\n\t\t\tshift: false,\n\t\t\tcontrol: false,\n\t\t\talt: false,\n\t\t\tmeta: false,\n\t\t\tcapsLock: false,\n\t\t\tspace: false\n\t\t}).inject({\n\t\t\toption: {\n\t\t\t\tget: function() {\n\t\t\t\t\treturn this.alt;\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tcommand: {\n\t\t\t\tget: function() {\n\t\t\t\t\tvar agent = paper && paper.agent;\n\t\t\t\t\treturn agent && agent.mac ? this.meta : this.control;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\tfunction getKey(event) {\n\t\tvar key = event.key || event.keyIdentifier;\n\t\tkey = /^U\\+/.test(key)\n\t\t\t\t? String.fromCharCode(parseInt(key.substr(2), 16))\n\t\t\t\t: /^Arrow[A-Z]/.test(key) ? key.substr(5)\n\t\t\t\t: key === 'Unidentified' || key === undefined\n\t\t\t\t\t? String.fromCharCode(event.keyCode)\n\t\t\t\t\t: key;\n\t\treturn keyLookup[key] ||\n\t\t\t\t(key.length > 1 ? Base.hyphenate(key) : key.toLowerCase());\n\t}\n\n\tfunction handleKey(down, key, character, event) {\n\t\tvar type = down ? 'keydown' : 'keyup',\n\t\t\tview = View._focused,\n\t\t\tname;\n\t\tkeyMap[key] = down;\n\t\tif (down) {\n\t\t\tcharMap[key] = character;\n\t\t} else {\n\t\t\tdelete charMap[key];\n\t\t}\n\t\tif (key.length > 1 && (name = Base.camelize(key)) in modifiers) {\n\t\t\tmodifiers[name] = down;\n\t\t\tvar agent = paper && paper.agent;\n\t\t\tif (name === 'meta' && agent && agent.mac) {\n\t\t\t\tif (down) {\n\t\t\t\t\tmetaFixMap = {};\n\t\t\t\t} else {\n\t\t\t\t\tfor (var k in metaFixMap) {\n\t\t\t\t\t\tif (k in charMap)\n\t\t\t\t\t\t\thandleKey(false, k, metaFixMap[k], event);\n\t\t\t\t\t}\n\t\t\t\t\tmetaFixMap = null;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (down && metaFixMap) {\n\t\t\tmetaFixMap[key] = character;\n\t\t}\n\t\tif (view) {\n\t\t\tview._handleKeyEvent(down ? 'keydown' : 'keyup', event, key,\n\t\t\t\t\tcharacter);\n\t\t}\n\t}\n\n\tDomEvent.add(document, {\n\t\tkeydown: function(event) {\n\t\t\tvar key = getKey(event),\n\t\t\t\tagent = paper && paper.agent;\n\t\t\tif (key.length > 1 || agent && (agent.chrome && (event.altKey\n\t\t\t\t\t\t|| agent.mac && event.metaKey\n\t\t\t\t\t\t|| !agent.mac && event.ctrlKey))) {\n\t\t\t\thandleKey(true, key,\n\t\t\t\t\t\tcharLookup[key] || (key.length > 1 ? '' : key), event);\n\t\t\t} else {\n\t\t\t\tdownKey = key;\n\t\t\t}\n\t\t},\n\n\t\tkeypress: function(event) {\n\t\t\tif (downKey) {\n\t\t\t\tvar key = getKey(event),\n\t\t\t\t\tcode = event.charCode,\n\t\t\t\t\tcharacter = code >= 32 ? String.fromCharCode(code)\n\t\t\t\t\t\t: key.length > 1 ? '' : key;\n\t\t\t\tif (key !== downKey) {\n\t\t\t\t\tkey = character.toLowerCase();\n\t\t\t\t}\n\t\t\t\thandleKey(true, key, character, event);\n\t\t\t\tdownKey = null;\n\t\t\t}\n\t\t},\n\n\t\tkeyup: function(event) {\n\t\t\tvar key = getKey(event);\n\t\t\tif (key in charMap)\n\t\t\t\thandleKey(false, key, charMap[key], event);\n\t\t}\n\t});\n\n\tDomEvent.add(window, {\n\t\tblur: function(event) {\n\t\t\tfor (var key in charMap)\n\t\t\t\thandleKey(false, key, charMap[key], event);\n\t\t}\n\t});\n\n\treturn {\n\t\tmodifiers: modifiers,\n\n\t\tisDown: function(key) {\n\t\t\treturn !!keyMap[key];\n\t\t}\n\t};\n};\n\nvar MouseEvent = Event.extend({\n\t_class: 'MouseEvent',\n\n\tinitialize: function MouseEvent(type, event, point, target, delta) {\n\t\tthis.type = type;\n\t\tthis.event = event;\n\t\tthis.point = point;\n\t\tthis.target = target;\n\t\tthis.delta = delta;\n\t},\n\n\ttoString: function() {\n\t\treturn \"{ type: '\" + this.type\n\t\t\t\t+ \"', point: \" + this.point\n\t\t\t\t+ ', target: ' + this.target\n\t\t\t\t+ (this.delta ? ', delta: ' + this.delta : '')\n\t\t\t\t+ ', modifiers: ' + this.getModifiers()\n\t\t\t\t+ ' }';\n\t}\n});\n\nvar ToolEvent = Event.extend({\n\t_class: 'ToolEvent',\n\t_item: null,\n\n\tinitialize: function ToolEvent(tool, type, event) {\n\t\tthis.tool = tool;\n\t\tthis.type = type;\n\t\tthis.event = event;\n\t},\n\n\t_choosePoint: function(point, toolPoint) {\n\t\treturn point ? point : toolPoint ? toolPoint.clone() : null;\n\t},\n\n\tgetPoint: function() {\n\t\treturn this._choosePoint(this._point, this.tool._point);\n\t},\n\n\tsetPoint: function(point) {\n\t\tthis._point = point;\n\t},\n\n\tgetLastPoint: function() {\n\t\treturn this._choosePoint(this._lastPoint, this.tool._lastPoint);\n\t},\n\n\tsetLastPoint: function(lastPoint) {\n\t\tthis._lastPoint = lastPoint;\n\t},\n\n\tgetDownPoint: function() {\n\t\treturn this._choosePoint(this._downPoint, this.tool._downPoint);\n\t},\n\n\tsetDownPoint: function(downPoint) {\n\t\tthis._downPoint = downPoint;\n\t},\n\n\tgetMiddlePoint: function() {\n\t\tif (!this._middlePoint && this.tool._lastPoint) {\n\t\t\treturn this.tool._point.add(this.tool._lastPoint).divide(2);\n\t\t}\n\t\treturn this._middlePoint;\n\t},\n\n\tsetMiddlePoint: function(middlePoint) {\n\t\tthis._middlePoint = middlePoint;\n\t},\n\n\tgetDelta: function() {\n\t\treturn !this._delta && this.tool._lastPoint\n\t\t\t\t? this.tool._point.subtract(this.tool._lastPoint)\n\t\t\t\t: this._delta;\n\t},\n\n\tsetDelta: function(delta) {\n\t\tthis._delta = delta;\n\t},\n\n\tgetCount: function() {\n\t\treturn this.tool[/^mouse(down|up)$/.test(this.type)\n\t\t\t\t? '_downCount' : '_moveCount'];\n\t},\n\n\tsetCount: function(count) {\n\t\tthis.tool[/^mouse(down|up)$/.test(this.type) ? 'downCount' : 'count']\n\t\t\t= count;\n\t},\n\n\tgetItem: function() {\n\t\tif (!this._item) {\n\t\t\tvar result = this.tool._scope.project.hitTest(this.getPoint());\n\t\t\tif (result) {\n\t\t\t\tvar item = result.item,\n\t\t\t\t\tparent = item._parent;\n\t\t\t\twhile (/^(Group|CompoundPath)$/.test(parent._class)) {\n\t\t\t\t\titem = parent;\n\t\t\t\t\tparent = parent._parent;\n\t\t\t\t}\n\t\t\t\tthis._item = item;\n\t\t\t}\n\t\t}\n\t\treturn this._item;\n\t},\n\n\tsetItem: function(item) {\n\t\tthis._item = item;\n\t},\n\n\ttoString: function() {\n\t\treturn '{ type: ' + this.type\n\t\t\t\t+ ', point: ' + this.getPoint()\n\t\t\t\t+ ', count: ' + this.getCount()\n\t\t\t\t+ ', modifiers: ' + this.getModifiers()\n\t\t\t\t+ ' }';\n\t}\n});\n\nvar Tool = PaperScopeItem.extend({\n\t_class: 'Tool',\n\t_list: 'tools',\n\t_reference: 'tool',\n\t_events: ['onMouseDown', 'onMouseUp', 'onMouseDrag', 'onMouseMove',\n\t\t\t'onActivate', 'onDeactivate', 'onEditOptions', 'onKeyDown',\n\t\t\t'onKeyUp'],\n\n\tinitialize: function Tool(props) {\n\t\tPaperScopeItem.call(this);\n\t\tthis._moveCount = -1;\n\t\tthis._downCount = -1;\n\t\tthis.set(props);\n\t},\n\n\tgetMinDistance: function() {\n\t\treturn this._minDistance;\n\t},\n\n\tsetMinDistance: function(minDistance) {\n\t\tthis._minDistance = minDistance;\n\t\tif (minDistance != null && this._maxDistance != null\n\t\t\t\t&& minDistance > this._maxDistance) {\n\t\t\tthis._maxDistance = minDistance;\n\t\t}\n\t},\n\n\tgetMaxDistance: function() {\n\t\treturn this._maxDistance;\n\t},\n\n\tsetMaxDistance: function(maxDistance) {\n\t\tthis._maxDistance = maxDistance;\n\t\tif (this._minDistance != null && maxDistance != null\n\t\t\t\t&& maxDistance < this._minDistance) {\n\t\t\tthis._minDistance = maxDistance;\n\t\t}\n\t},\n\n\tgetFixedDistance: function() {\n\t\treturn this._minDistance == this._maxDistance\n\t\t\t? this._minDistance : null;\n\t},\n\n\tsetFixedDistance: function(distance) {\n\t\tthis._minDistance = this._maxDistance = distance;\n\t},\n\n\t_handleMouseEvent: function(type, event, point, mouse) {\n\t\tpaper = this._scope;\n\t\tif (mouse.drag && !this.responds(type))\n\t\t\ttype = 'mousemove';\n\t\tvar move = mouse.move || mouse.drag,\n\t\t\tresponds = this.responds(type),\n\t\t\tcalled = false,\n\t\t\ttool = this;\n\t\tfunction update(minDistance, maxDistance) {\n\t\t\tvar pt = point,\n\t\t\t\ttoolPoint = move ? tool._point : (tool._downPoint || pt);\n\t\t\tif (move) {\n\t\t\t\tif (tool._moveCount >= 0 && pt.equals(toolPoint)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (toolPoint && (minDistance != null || maxDistance != null)) {\n\t\t\t\t\tvar vector = pt.subtract(toolPoint),\n\t\t\t\t\t\tdistance = vector.getLength();\n\t\t\t\t\tif (distance < (minDistance || 0))\n\t\t\t\t\t\treturn false;\n\t\t\t\t\tif (maxDistance) {\n\t\t\t\t\t\tpt = toolPoint.add(vector.normalize(\n\t\t\t\t\t\t\t\tMath.min(distance, maxDistance)));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttool._moveCount++;\n\t\t\t}\n\t\t\ttool._point = pt;\n\t\t\ttool._lastPoint = toolPoint || pt;\n\t\t\tif (mouse.down) {\n\t\t\t\ttool._moveCount = -1;\n\t\t\t\ttool._downPoint = pt;\n\t\t\t\ttool._downCount++;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tfunction emit() {\n\t\t\tif (responds) {\n\t\t\t\tcalled = tool.emit(type, new ToolEvent(tool, type, event))\n\t\t\t\t\t\t|| called;\n\t\t\t}\n\t\t}\n\n\t\tif (mouse.down) {\n\t\t\tupdate();\n\t\t\temit();\n\t\t} else if (mouse.up) {\n\t\t\tupdate(null, this._maxDistance);\n\t\t\temit();\n\t\t} else if (responds) {\n\t\t\twhile (update(this._minDistance, this._maxDistance))\n\t\t\t\temit();\n\t\t}\n\t\treturn called;\n\t}\n\n});\n\nvar Tween = Base.extend(Emitter, {\n\t_class: 'Tween',\n\n\tstatics: {\n\t\teasings: new Base({\n\t\t\tlinear: function(t) {\n\t\t\t\treturn t;\n\t\t\t},\n\n\t\t\teaseInQuad: function(t) {\n\t\t\t\treturn t * t;\n\t\t\t},\n\n\t\t\teaseOutQuad: function(t) {\n\t\t\t\treturn t * (2 - t);\n\t\t\t},\n\n\t\t\teaseInOutQuad: function(t) {\n\t\t\t\treturn t < 0.5\n\t\t\t\t\t? 2 * t * t\n\t\t\t\t\t: -1 + 2 * (2 - t) * t;\n\t\t\t},\n\n\t\t\teaseInCubic: function(t) {\n\t\t\t\treturn t * t * t;\n\t\t\t},\n\n\t\t\teaseOutCubic: function(t) {\n\t\t\t\treturn --t * t * t + 1;\n\t\t\t},\n\n\t\t\teaseInOutCubic: function(t) {\n\t\t\t\treturn t < 0.5\n\t\t\t\t\t? 4 * t * t * t\n\t\t\t\t\t: (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;\n\t\t\t},\n\n\t\t\teaseInQuart: function(t) {\n\t\t\t\treturn t * t * t * t;\n\t\t\t},\n\n\t\t\teaseOutQuart: function(t) {\n\t\t\t\treturn 1 - (--t) * t * t * t;\n\t\t\t},\n\n\t\t\teaseInOutQuart: function(t) {\n\t\t\t\treturn t < 0.5\n\t\t\t\t\t? 8 * t * t * t * t\n\t\t\t\t\t: 1 - 8 * (--t) * t * t * t;\n\t\t\t},\n\n\t\t\teaseInQuint: function(t) {\n\t\t\t\treturn t * t * t * t * t;\n\t\t\t},\n\n\t\t\teaseOutQuint: function(t) {\n\t\t\t\treturn 1 + --t * t * t * t * t;\n\t\t\t},\n\n\t\t\teaseInOutQuint: function(t) {\n\t\t\t\treturn t < 0.5\n\t\t\t\t\t? 16 * t * t * t * t * t\n\t\t\t\t\t: 1 + 16 * (--t) * t * t * t * t;\n\t\t\t}\n\t\t})\n\t},\n\n\tinitialize: function Tween(object, from, to, duration, easing, start) {\n\t\tthis.object = object;\n\t\tvar type = typeof easing;\n\t\tvar isFunction = type === 'function';\n\t\tthis.type = isFunction\n\t\t\t? type\n\t\t\t: type === 'string'\n\t\t\t\t? easing\n\t\t\t\t: 'linear';\n\t\tthis.easing = isFunction ? easing : Tween.easings[this.type];\n\t\tthis.duration = duration;\n\t\tthis.running = false;\n\n\t\tthis._then = null;\n\t\tthis._startTime = null;\n\t\tvar state = from || to;\n\t\tthis._keys = state ? Object.keys(state) : [];\n\t\tthis._parsedKeys = this._parseKeys(this._keys);\n\t\tthis._from = state && this._getState(from);\n\t\tthis._to = state && this._getState(to);\n\t\tif (start !== false) {\n\t\t\tthis.start();\n\t\t}\n\t},\n\n\tthen: function(then) {\n\t\tthis._then = then;\n\t\treturn this;\n\t},\n\n\tstart: function() {\n\t\tthis._startTime = null;\n\t\tthis.running = true;\n\t\treturn this;\n\t},\n\n\tstop: function() {\n\t\tthis.running = false;\n\t\treturn this;\n\t},\n\n\tupdate: function(progress) {\n\t\tif (this.running) {\n\t\t\tif (progress >= 1) {\n\t\t\t\tprogress = 1;\n\t\t\t\tthis.running = false;\n\t\t\t}\n\n\t\t\tvar factor = this.easing(progress),\n\t\t\t\tkeys = this._keys,\n\t\t\t\tgetValue = function(value) {\n\t\t\t\t\treturn typeof value === 'function'\n\t\t\t\t\t\t? value(factor, progress)\n\t\t\t\t\t\t: value;\n\t\t\t\t};\n\t\t\tfor (var i = 0, l = keys && keys.length; i < l; i++) {\n\t\t\t\tvar key = keys[i],\n\t\t\t\t\tfrom = getValue(this._from[key]),\n\t\t\t\t\tto = getValue(this._to[key]),\n\t\t\t\t\tvalue = (from && to && from.__add && to.__add)\n\t\t\t\t\t\t? to.__subtract(from).__multiply(factor).__add(from)\n\t\t\t\t\t\t: ((to - from) * factor) + from;\n\t\t\t\tthis._setProperty(this._parsedKeys[key], value);\n\t\t\t}\n\n\t\t\tif (this.responds('update')) {\n\t\t\t\tthis.emit('update', new Base({\n\t\t\t\t\tprogress: progress,\n\t\t\t\t\tfactor: factor\n\t\t\t\t}));\n\t\t\t}\n\t\t\tif (!this.running && this._then) {\n\t\t\t\tthis._then(this.object);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t},\n\n\t_events: {\n\t\tonUpdate: {}\n\t},\n\n\t_handleFrame: function(time) {\n\t\tvar startTime = this._startTime,\n\t\t\tprogress = startTime\n\t\t\t\t? (time - startTime) / this.duration\n\t\t\t\t: 0;\n\t\tif (!startTime) {\n\t\t\tthis._startTime = time;\n\t\t}\n\t\tthis.update(progress);\n\t},\n\n\t_getState: function(state) {\n\t\tvar keys = this._keys,\n\t\t\tresult = {};\n\t\tfor (var i = 0, l = keys.length; i < l; i++) {\n\t\t\tvar key = keys[i],\n\t\t\t\tpath = this._parsedKeys[key],\n\t\t\t\tcurrent = this._getProperty(path),\n\t\t\t\tvalue;\n\t\t\tif (state) {\n\t\t\t\tvar resolved = this._resolveValue(current, state[key]);\n\t\t\t\tthis._setProperty(path, resolved);\n\t\t\t\tvalue = this._getProperty(path);\n\t\t\t\tvalue = value && value.clone ? value.clone() : value;\n\t\t\t\tthis._setProperty(path, current);\n\t\t\t} else {\n\t\t\t\tvalue = current && current.clone ? current.clone() : current;\n\t\t\t}\n\t\t\tresult[key] = value;\n\t\t}\n\t\treturn result;\n\t},\n\n\t_resolveValue: function(current, value) {\n\t\tif (value) {\n\t\t\tif (Array.isArray(value) && value.length === 2) {\n\t\t\t\tvar operator = value[0];\n\t\t\t\treturn (\n\t\t\t\t\toperator &&\n\t\t\t\t\toperator.match &&\n\t\t\t\t\toperator.match(/^[+\\-\\*\\/]=/)\n\t\t\t\t)\n\t\t\t\t\t? this._calculate(current, operator[0], value[1])\n\t\t\t\t\t: value;\n\t\t\t} else if (typeof value === 'string') {\n\t\t\t\tvar match = value.match(/^[+\\-*/]=(.*)/);\n\t\t\t\tif (match) {\n\t\t\t\t\tvar parsed = JSON.parse(match[1].replace(\n\t\t\t\t\t\t/(['\"])?([a-zA-Z0-9_]+)(['\"])?:/g,\n\t\t\t\t\t\t'\"$2\": '\n\t\t\t\t\t));\n\t\t\t\t\treturn this._calculate(current, value[0], parsed);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn value;\n\t},\n\n\t_calculate: function(left, operator, right) {\n\t\treturn paper.PaperScript.calculateBinary(left, operator, right);\n\t},\n\n\t_parseKeys: function(keys) {\n\t\tvar parsed = {};\n\t\tfor (var i = 0, l = keys.length; i < l; i++) {\n\t\t\tvar key = keys[i],\n\t\t\t\tpath = key\n\t\t\t\t\t.replace(/\\.([^.]*)/g, '/$1')\n\t\t\t\t\t.replace(/\\[['\"]?([^'\"\\]]*)['\"]?\\]/g, '/$1');\n\t\t\tparsed[key] = path.split('/');\n\t\t}\n\t\treturn parsed;\n\t},\n\n\t_getProperty: function(path, offset) {\n\t\tvar obj = this.object;\n\t\tfor (var i = 0, l = path.length - (offset || 0); i < l && obj; i++) {\n\t\t\tobj = obj[path[i]];\n\t\t}\n\t\treturn obj;\n\t},\n\n\t_setProperty: function(path, value) {\n\t\tvar dest = this._getProperty(path, 1);\n\t\tif (dest) {\n\t\t\tdest[path[path.length - 1]] = value;\n\t\t}\n\t}\n});\n\nvar Http = {\n\trequest: function(options) {\n\t\tvar xhr = new self.XMLHttpRequest();\n\t\txhr.open((options.method || 'get').toUpperCase(), options.url,\n\t\t\t\tBase.pick(options.async, true));\n\t\tif (options.mimeType)\n\t\t\txhr.overrideMimeType(options.mimeType);\n\t\txhr.onload = function() {\n\t\t\tvar status = xhr.status;\n\t\t\tif (status === 0 || status === 200) {\n\t\t\t\tif (options.onLoad) {\n\t\t\t\t\toptions.onLoad.call(xhr, xhr.responseText);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\txhr.onerror();\n\t\t\t}\n\t\t};\n\t\txhr.onerror = function() {\n\t\t\tvar status = xhr.status,\n\t\t\t\tmessage = 'Could not load \"' + options.url + '\" (Status: '\n\t\t\t\t\t\t+ status + ')';\n\t\t\tif (options.onError) {\n\t\t\t\toptions.onError(message, status);\n\t\t\t} else {\n\t\t\t\tthrow new Error(message);\n\t\t\t}\n\t\t};\n\t\treturn xhr.send(null);\n\t}\n};\n\nvar CanvasProvider = Base.exports.CanvasProvider = {\n\tcanvases: [],\n\n\tgetCanvas: function(width, height, options) {\n\t\tif (!window)\n\t\t\treturn null;\n\t\tvar canvas,\n\t\t\tclear = true;\n\t\tif (typeof width === 'object') {\n\t\t\theight = width.height;\n\t\t\twidth = width.width;\n\t\t}\n\t\tif (this.canvases.length) {\n\t\t\tcanvas = this.canvases.pop();\n\t\t} else {\n\t\t\tcanvas = document.createElement('canvas');\n\t\t\tclear = false;\n\t\t}\n\t\tvar ctx = canvas.getContext('2d', options || {});\n\t\tif (!ctx) {\n\t\t\tthrow new Error('Canvas ' + canvas +\n\t\t\t\t\t' is unable to provide a 2D context.');\n\t\t}\n\t\tif (canvas.width === width && canvas.height === height) {\n\t\t\tif (clear)\n\t\t\t\tctx.clearRect(0, 0, width + 1, height + 1);\n\t\t} else {\n\t\t\tcanvas.width = width;\n\t\t\tcanvas.height = height;\n\t\t}\n\t\tctx.save();\n\t\treturn canvas;\n\t},\n\n\tgetContext: function(width, height, options) {\n\t\tvar canvas = this.getCanvas(width, height, options);\n\t\treturn canvas ? canvas.getContext('2d', options || {}) : null;\n\t},\n\n\trelease: function(obj) {\n\t\tvar canvas = obj && obj.canvas ? obj.canvas : obj;\n\t\tif (canvas && canvas.getContext) {\n\t\t\tcanvas.getContext('2d').restore();\n\t\t\tthis.canvases.push(canvas);\n\t\t}\n\t}\n};\n\nvar BlendMode = new function() {\n\tvar min = Math.min,\n\t\tmax = Math.max,\n\t\tabs = Math.abs,\n\t\tsr, sg, sb, sa,\n\t\tbr, bg, bb, ba,\n\t\tdr, dg, db;\n\n\tfunction getLum(r, g, b) {\n\t\treturn 0.2989 * r + 0.587 * g + 0.114 * b;\n\t}\n\n\tfunction setLum(r, g, b, l) {\n\t\tvar d = l - getLum(r, g, b);\n\t\tdr = r + d;\n\t\tdg = g + d;\n\t\tdb = b + d;\n\t\tvar l = getLum(dr, dg, db),\n\t\t\tmn = min(dr, dg, db),\n\t\t\tmx = max(dr, dg, db);\n\t\tif (mn < 0) {\n\t\t\tvar lmn = l - mn;\n\t\t\tdr = l + (dr - l) * l / lmn;\n\t\t\tdg = l + (dg - l) * l / lmn;\n\t\t\tdb = l + (db - l) * l / lmn;\n\t\t}\n\t\tif (mx > 255) {\n\t\t\tvar ln = 255 - l,\n\t\t\t\tmxl = mx - l;\n\t\t\tdr = l + (dr - l) * ln / mxl;\n\t\t\tdg = l + (dg - l) * ln / mxl;\n\t\t\tdb = l + (db - l) * ln / mxl;\n\t\t}\n\t}\n\n\tfunction getSat(r, g, b) {\n\t\treturn max(r, g, b) - min(r, g, b);\n\t}\n\n\tfunction setSat(r, g, b, s) {\n\t\tvar col = [r, g, b],\n\t\t\tmx = max(r, g, b),\n\t\t\tmn = min(r, g, b),\n\t\t\tmd;\n\t\tmn = mn === r ? 0 : mn === g ? 1 : 2;\n\t\tmx = mx === r ? 0 : mx === g ? 1 : 2;\n\t\tmd = min(mn, mx) === 0 ? max(mn, mx) === 1 ? 2 : 1 : 0;\n\t\tif (col[mx] > col[mn]) {\n\t\t\tcol[md] = (col[md] - col[mn]) * s / (col[mx] - col[mn]);\n\t\t\tcol[mx] = s;\n\t\t} else {\n\t\t\tcol[md] = col[mx] = 0;\n\t\t}\n\t\tcol[mn] = 0;\n\t\tdr = col[0];\n\t\tdg = col[1];\n\t\tdb = col[2];\n\t}\n\n\tvar modes = {\n\t\tmultiply: function() {\n\t\t\tdr = br * sr / 255;\n\t\t\tdg = bg * sg / 255;\n\t\t\tdb = bb * sb / 255;\n\t\t},\n\n\t\tscreen: function() {\n\t\t\tdr = br + sr - (br * sr / 255);\n\t\t\tdg = bg + sg - (bg * sg / 255);\n\t\t\tdb = bb + sb - (bb * sb / 255);\n\t\t},\n\n\t\toverlay: function() {\n\t\t\tdr = br < 128 ? 2 * br * sr / 255 : 255 - 2 * (255 - br) * (255 - sr) / 255;\n\t\t\tdg = bg < 128 ? 2 * bg * sg / 255 : 255 - 2 * (255 - bg) * (255 - sg) / 255;\n\t\t\tdb = bb < 128 ? 2 * bb * sb / 255 : 255 - 2 * (255 - bb) * (255 - sb) / 255;\n\t\t},\n\n\t\t'soft-light': function() {\n\t\t\tvar t = sr * br / 255;\n\t\t\tdr = t + br * (255 - (255 - br) * (255 - sr) / 255 - t) / 255;\n\t\t\tt = sg * bg / 255;\n\t\t\tdg = t + bg * (255 - (255 - bg) * (255 - sg) / 255 - t) / 255;\n\t\t\tt = sb * bb / 255;\n\t\t\tdb = t + bb * (255 - (255 - bb) * (255 - sb) / 255 - t) / 255;\n\t\t},\n\n\t\t'hard-light': function() {\n\t\t\tdr = sr < 128 ? 2 * sr * br / 255 : 255 - 2 * (255 - sr) * (255 - br) / 255;\n\t\t\tdg = sg < 128 ? 2 * sg * bg / 255 : 255 - 2 * (255 - sg) * (255 - bg) / 255;\n\t\t\tdb = sb < 128 ? 2 * sb * bb / 255 : 255 - 2 * (255 - sb) * (255 - bb) / 255;\n\t\t},\n\n\t\t'color-dodge': function() {\n\t\t\tdr = br === 0 ? 0 : sr === 255 ? 255 : min(255, 255 * br / (255 - sr));\n\t\t\tdg = bg === 0 ? 0 : sg === 255 ? 255 : min(255, 255 * bg / (255 - sg));\n\t\t\tdb = bb === 0 ? 0 : sb === 255 ? 255 : min(255, 255 * bb / (255 - sb));\n\t\t},\n\n\t\t'color-burn': function() {\n\t\t\tdr = br === 255 ? 255 : sr === 0 ? 0 : max(0, 255 - (255 - br) * 255 / sr);\n\t\t\tdg = bg === 255 ? 255 : sg === 0 ? 0 : max(0, 255 - (255 - bg) * 255 / sg);\n\t\t\tdb = bb === 255 ? 255 : sb === 0 ? 0 : max(0, 255 - (255 - bb) * 255 / sb);\n\t\t},\n\n\t\tdarken: function() {\n\t\t\tdr = br < sr ? br : sr;\n\t\t\tdg = bg < sg ? bg : sg;\n\t\t\tdb = bb < sb ? bb : sb;\n\t\t},\n\n\t\tlighten: function() {\n\t\t\tdr = br > sr ? br : sr;\n\t\t\tdg = bg > sg ? bg : sg;\n\t\t\tdb = bb > sb ? bb : sb;\n\t\t},\n\n\t\tdifference: function() {\n\t\t\tdr = br - sr;\n\t\t\tif (dr < 0)\n\t\t\t\tdr = -dr;\n\t\t\tdg = bg - sg;\n\t\t\tif (dg < 0)\n\t\t\t\tdg = -dg;\n\t\t\tdb = bb - sb;\n\t\t\tif (db < 0)\n\t\t\t\tdb = -db;\n\t\t},\n\n\t\texclusion: function() {\n\t\t\tdr = br + sr * (255 - br - br) / 255;\n\t\t\tdg = bg + sg * (255 - bg - bg) / 255;\n\t\t\tdb = bb + sb * (255 - bb - bb) / 255;\n\t\t},\n\n\t\thue: function() {\n\t\t\tsetSat(sr, sg, sb, getSat(br, bg, bb));\n\t\t\tsetLum(dr, dg, db, getLum(br, bg, bb));\n\t\t},\n\n\t\tsaturation: function() {\n\t\t\tsetSat(br, bg, bb, getSat(sr, sg, sb));\n\t\t\tsetLum(dr, dg, db, getLum(br, bg, bb));\n\t\t},\n\n\t\tluminosity: function() {\n\t\t\tsetLum(br, bg, bb, getLum(sr, sg, sb));\n\t\t},\n\n\t\tcolor: function() {\n\t\t\tsetLum(sr, sg, sb, getLum(br, bg, bb));\n\t\t},\n\n\t\tadd: function() {\n\t\t\tdr = min(br + sr, 255);\n\t\t\tdg = min(bg + sg, 255);\n\t\t\tdb = min(bb + sb, 255);\n\t\t},\n\n\t\tsubtract: function() {\n\t\t\tdr = max(br - sr, 0);\n\t\t\tdg = max(bg - sg, 0);\n\t\t\tdb = max(bb - sb, 0);\n\t\t},\n\n\t\taverage: function() {\n\t\t\tdr = (br + sr) / 2;\n\t\t\tdg = (bg + sg) / 2;\n\t\t\tdb = (bb + sb) / 2;\n\t\t},\n\n\t\tnegation: function() {\n\t\t\tdr = 255 - abs(255 - sr - br);\n\t\t\tdg = 255 - abs(255 - sg - bg);\n\t\t\tdb = 255 - abs(255 - sb - bb);\n\t\t}\n\t};\n\n\tvar nativeModes = this.nativeModes = Base.each([\n\t\t'source-over', 'source-in', 'source-out', 'source-atop',\n\t\t'destination-over', 'destination-in', 'destination-out',\n\t\t'destination-atop', 'lighter', 'darker', 'copy', 'xor'\n\t], function(mode) {\n\t\tthis[mode] = true;\n\t}, {});\n\n\tvar ctx = CanvasProvider.getContext(1, 1, { willReadFrequently: true });\n\tif (ctx) {\n\t\tBase.each(modes, function(func, mode) {\n\t\t\tvar darken = mode === 'darken',\n\t\t\t\tok = false;\n\t\t\tctx.save();\n\t\t\ttry {\n\t\t\t\tctx.fillStyle = darken ? '#300' : '#a00';\n\t\t\t\tctx.fillRect(0, 0, 1, 1);\n\t\t\t\tctx.globalCompositeOperation = mode;\n\t\t\t\tif (ctx.globalCompositeOperation === mode) {\n\t\t\t\t\tctx.fillStyle = darken ? '#a00' : '#300';\n\t\t\t\t\tctx.fillRect(0, 0, 1, 1);\n\t\t\t\t\tok = ctx.getImageData(0, 0, 1, 1).data[0] !== darken\n\t\t\t\t\t\t\t? 170 : 51;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\t\t\tctx.restore();\n\t\t\tnativeModes[mode] = ok;\n\t\t});\n\t\tCanvasProvider.release(ctx);\n\t}\n\n\tthis.process = function(mode, srcContext, dstContext, alpha, offset) {\n\t\tvar srcCanvas = srcContext.canvas,\n\t\t\tnormal = mode === 'normal';\n\t\tif (normal || nativeModes[mode]) {\n\t\t\tdstContext.save();\n\t\t\tdstContext.setTransform(1, 0, 0, 1, 0, 0);\n\t\t\tdstContext.globalAlpha = alpha;\n\t\t\tif (!normal)\n\t\t\t\tdstContext.globalCompositeOperation = mode;\n\t\t\tdstContext.drawImage(srcCanvas, offset.x, offset.y);\n\t\t\tdstContext.restore();\n\t\t} else {\n\t\t\tvar process = modes[mode];\n\t\t\tif (!process)\n\t\t\t\treturn;\n\t\t\tvar dstData = dstContext.getImageData(offset.x, offset.y,\n\t\t\t\t\tsrcCanvas.width, srcCanvas.height),\n\t\t\t\tdst = dstData.data,\n\t\t\t\tsrc = srcContext.getImageData(0, 0,\n\t\t\t\t\tsrcCanvas.width, srcCanvas.height).data;\n\t\t\tfor (var i = 0, l = dst.length; i < l; i += 4) {\n\t\t\t\tsr = src[i];\n\t\t\t\tbr = dst[i];\n\t\t\t\tsg = src[i + 1];\n\t\t\t\tbg = dst[i + 1];\n\t\t\t\tsb = src[i + 2];\n\t\t\t\tbb = dst[i + 2];\n\t\t\t\tsa = src[i + 3];\n\t\t\t\tba = dst[i + 3];\n\t\t\t\tprocess();\n\t\t\t\tvar a1 = sa * alpha / 255,\n\t\t\t\t\ta2 = 1 - a1;\n\t\t\t\tdst[i] = a1 * dr + a2 * br;\n\t\t\t\tdst[i + 1] = a1 * dg + a2 * bg;\n\t\t\t\tdst[i + 2] = a1 * db + a2 * bb;\n\t\t\t\tdst[i + 3] = sa * alpha + a2 * ba;\n\t\t\t}\n\t\t\tdstContext.putImageData(dstData, offset.x, offset.y);\n\t\t}\n\t};\n};\n\nvar SvgElement = new function() {\n\tvar svg = 'http://www.w3.org/2000/svg',\n\t\txmlns = 'http://www.w3.org/2000/xmlns',\n\t\txlink = 'http://www.w3.org/1999/xlink',\n\t\tattributeNamespace = {\n\t\t\thref: xlink,\n\t\t\txlink: xmlns,\n\t\t\txmlns: xmlns + '/',\n\t\t\t'xmlns:xlink': xmlns + '/'\n\t\t};\n\n\tfunction create(tag, attributes, formatter) {\n\t\treturn set(document.createElementNS(svg, tag), attributes, formatter);\n\t}\n\n\tfunction get(node, name) {\n\t\tvar namespace = attributeNamespace[name],\n\t\t\tvalue = namespace\n\t\t\t\t? node.getAttributeNS(namespace, name)\n\t\t\t\t: node.getAttribute(name);\n\t\treturn value === 'null' ? null : value;\n\t}\n\n\tfunction set(node, attributes, formatter) {\n\t\tfor (var name in attributes) {\n\t\t\tvar value = attributes[name],\n\t\t\t\tnamespace = attributeNamespace[name];\n\t\t\tif (typeof value === 'number' && formatter)\n\t\t\t\tvalue = formatter.number(value);\n\t\t\tif (namespace) {\n\t\t\t\tnode.setAttributeNS(namespace, name, value);\n\t\t\t} else {\n\t\t\t\tnode.setAttribute(name, value);\n\t\t\t}\n\t\t}\n\t\treturn node;\n\t}\n\n\treturn {\n\t\tsvg: svg,\n\t\txmlns: xmlns,\n\t\txlink: xlink,\n\n\t\tcreate: create,\n\t\tget: get,\n\t\tset: set\n\t};\n};\n\nvar SvgStyles = Base.each({\n\tfillColor: ['fill', 'color'],\n\tfillRule: ['fill-rule', 'string'],\n\tstrokeColor: ['stroke', 'color'],\n\tstrokeWidth: ['stroke-width', 'number'],\n\tstrokeCap: ['stroke-linecap', 'string'],\n\tstrokeJoin: ['stroke-linejoin', 'string'],\n\tstrokeScaling: ['vector-effect', 'lookup', {\n\t\ttrue: 'none',\n\t\tfalse: 'non-scaling-stroke'\n\t}, function(item, value) {\n\t\treturn !value\n\t\t\t\t&& (item instanceof PathItem\n\t\t\t\t\t|| item instanceof Shape\n\t\t\t\t\t|| item instanceof TextItem);\n\t}],\n\tmiterLimit: ['stroke-miterlimit', 'number'],\n\tdashArray: ['stroke-dasharray', 'array'],\n\tdashOffset: ['stroke-dashoffset', 'number'],\n\tfontFamily: ['font-family', 'string'],\n\tfontWeight: ['font-weight', 'string'],\n\tfontSize: ['font-size', 'number'],\n\tjustification: ['text-anchor', 'lookup', {\n\t\tleft: 'start',\n\t\tcenter: 'middle',\n\t\tright: 'end'\n\t}],\n\topacity: ['opacity', 'number'],\n\tblendMode: ['mix-blend-mode', 'style']\n}, function(entry, key) {\n\tvar part = Base.capitalize(key),\n\t\tlookup = entry[2];\n\tthis[key] = {\n\t\ttype: entry[1],\n\t\tproperty: key,\n\t\tattribute: entry[0],\n\t\ttoSVG: lookup,\n\t\tfromSVG: lookup && Base.each(lookup, function(value, name) {\n\t\t\tthis[value] = name;\n\t\t}, {}),\n\t\texportFilter: entry[3],\n\t\tget: 'get' + part,\n\t\tset: 'set' + part\n\t};\n}, {});\n\nnew function() {\n\tvar formatter;\n\n\tfunction getTransform(matrix, coordinates, center) {\n\t\tvar attrs = new Base(),\n\t\t\ttrans = matrix.getTranslation();\n\t\tif (coordinates) {\n\t\t\tvar point;\n\t\t\tif (matrix.isInvertible()) {\n\t\t\t\tmatrix = matrix._shiftless();\n\t\t\t\tpoint = matrix._inverseTransform(trans);\n\t\t\t\ttrans = null;\n\t\t\t} else {\n\t\t\t\tpoint = new Point();\n\t\t\t}\n\t\t\tattrs[center ? 'cx' : 'x'] = point.x;\n\t\t\tattrs[center ? 'cy' : 'y'] = point.y;\n\t\t}\n\t\tif (!matrix.isIdentity()) {\n\t\t\tvar decomposed = matrix.decompose();\n\t\t\tif (decomposed) {\n\t\t\t\tvar parts = [],\n\t\t\t\t\tangle = decomposed.rotation,\n\t\t\t\t\tscale = decomposed.scaling,\n\t\t\t\t\tskew = decomposed.skewing;\n\t\t\t\tif (trans && !trans.isZero())\n\t\t\t\t\tparts.push('translate(' + formatter.point(trans) + ')');\n\t\t\t\tif (angle)\n\t\t\t\t\tparts.push('rotate(' + formatter.number(angle) + ')');\n\t\t\t\tif (!Numerical.isZero(scale.x - 1)\n\t\t\t\t\t\t|| !Numerical.isZero(scale.y - 1))\n\t\t\t\t\tparts.push('scale(' + formatter.point(scale) +')');\n\t\t\t\tif (skew.x)\n\t\t\t\t\tparts.push('skewX(' + formatter.number(skew.x) + ')');\n\t\t\t\tif (skew.y)\n\t\t\t\t\tparts.push('skewY(' + formatter.number(skew.y) + ')');\n\t\t\t\tattrs.transform = parts.join(' ');\n\t\t\t} else {\n\t\t\t\tattrs.transform = 'matrix(' + matrix.getValues().join(',') + ')';\n\t\t\t}\n\t\t}\n\t\treturn attrs;\n\t}\n\n\tfunction exportGroup(item, options) {\n\t\tvar attrs = getTransform(item._matrix),\n\t\t\tchildren = item._children;\n\t\tvar node = SvgElement.create('g', attrs, formatter);\n\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\tvar child = children[i];\n\t\t\tvar childNode = exportSVG(child, options);\n\t\t\tif (childNode) {\n\t\t\t\tif (child.isClipMask()) {\n\t\t\t\t\tvar clip = SvgElement.create('clipPath');\n\t\t\t\t\tclip.appendChild(childNode);\n\t\t\t\t\tsetDefinition(child, clip, 'clip');\n\t\t\t\t\tSvgElement.set(node, {\n\t\t\t\t\t\t'clip-path': 'url(#' + clip.id + ')'\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tnode.appendChild(childNode);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn node;\n\t}\n\n\tfunction exportRaster(item, options) {\n\t\tvar attrs = getTransform(item._matrix, true),\n\t\t\tsize = item.getSize(),\n\t\t\timage = item.getImage();\n\t\tattrs.x -= size.width / 2;\n\t\tattrs.y -= size.height / 2;\n\t\tattrs.width = size.width;\n\t\tattrs.height = size.height;\n\t\tattrs.href = options.embedImages == false && image && image.src\n\t\t\t\t|| item.toDataURL();\n\t\treturn SvgElement.create('image', attrs, formatter);\n\t}\n\n\tfunction exportPath(item, options) {\n\t\tvar matchShapes = options.matchShapes;\n\t\tif (matchShapes) {\n\t\t\tvar shape = item.toShape(false);\n\t\t\tif (shape)\n\t\t\t\treturn exportShape(shape, options);\n\t\t}\n\t\tvar segments = item._segments,\n\t\t\tlength = segments.length,\n\t\t\ttype,\n\t\t\tattrs = getTransform(item._matrix);\n\t\tif (matchShapes && length >= 2 && !item.hasHandles()) {\n\t\t\tif (length > 2) {\n\t\t\t\ttype = item._closed ? 'polygon' : 'polyline';\n\t\t\t\tvar parts = [];\n\t\t\t\tfor (var i = 0; i < length; i++) {\n\t\t\t\t\tparts.push(formatter.point(segments[i]._point));\n\t\t\t\t}\n\t\t\t\tattrs.points = parts.join(' ');\n\t\t\t} else {\n\t\t\t\ttype = 'line';\n\t\t\t\tvar start = segments[0]._point,\n\t\t\t\t\tend = segments[1]._point;\n\t\t\t\tattrs.set({\n\t\t\t\t\tx1: start.x,\n\t\t\t\t\ty1: start.y,\n\t\t\t\t\tx2: end.x,\n\t\t\t\t\ty2: end.y\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\ttype = 'path';\n\t\t\tattrs.d = item.getPathData(null, options.precision);\n\t\t}\n\t\treturn SvgElement.create(type, attrs, formatter);\n\t}\n\n\tfunction exportShape(item) {\n\t\tvar type = item._type,\n\t\t\tradius = item._radius,\n\t\t\tattrs = getTransform(item._matrix, true, type !== 'rectangle');\n\t\tif (type === 'rectangle') {\n\t\t\ttype = 'rect';\n\t\t\tvar size = item._size,\n\t\t\t\twidth = size.width,\n\t\t\t\theight = size.height;\n\t\t\tattrs.x -= width / 2;\n\t\t\tattrs.y -= height / 2;\n\t\t\tattrs.width = width;\n\t\t\tattrs.height = height;\n\t\t\tif (radius.isZero())\n\t\t\t\tradius = null;\n\t\t}\n\t\tif (radius) {\n\t\t\tif (type === 'circle') {\n\t\t\t\tattrs.r = radius;\n\t\t\t} else {\n\t\t\t\tattrs.rx = radius.width;\n\t\t\t\tattrs.ry = radius.height;\n\t\t\t}\n\t\t}\n\t\treturn SvgElement.create(type, attrs, formatter);\n\t}\n\n\tfunction exportCompoundPath(item, options) {\n\t\tvar attrs = getTransform(item._matrix);\n\t\tvar data = item.getPathData(null, options.precision);\n\t\tif (data)\n\t\t\tattrs.d = data;\n\t\treturn SvgElement.create('path', attrs, formatter);\n\t}\n\n\tfunction exportSymbolItem(item, options) {\n\t\tvar attrs = getTransform(item._matrix, true),\n\t\t\tdefinition = item._definition,\n\t\t\tnode = getDefinition(definition, 'symbol'),\n\t\t\tdefinitionItem = definition._item,\n\t\t\tbounds = definitionItem.getStrokeBounds();\n\t\tif (!node) {\n\t\t\tnode = SvgElement.create('symbol', {\n\t\t\t\tviewBox: formatter.rectangle(bounds)\n\t\t\t});\n\t\t\tnode.appendChild(exportSVG(definitionItem, options));\n\t\t\tsetDefinition(definition, node, 'symbol');\n\t\t}\n\t\tattrs.href = '#' + node.id;\n\t\tattrs.x += bounds.x;\n\t\tattrs.y += bounds.y;\n\t\tattrs.width = bounds.width;\n\t\tattrs.height = bounds.height;\n\t\tattrs.overflow = 'visible';\n\t\treturn SvgElement.create('use', attrs, formatter);\n\t}\n\n\tfunction exportGradient(color) {\n\t\tvar gradientNode = getDefinition(color, 'color');\n\t\tif (!gradientNode) {\n\t\t\tvar gradient = color.getGradient(),\n\t\t\t\tradial = gradient._radial,\n\t\t\t\torigin = color.getOrigin(),\n\t\t\t\tdestination = color.getDestination(),\n\t\t\t\tattrs;\n\t\t\tif (radial) {\n\t\t\t\tattrs = {\n\t\t\t\t\tcx: origin.x,\n\t\t\t\t\tcy: origin.y,\n\t\t\t\t\tr: origin.getDistance(destination)\n\t\t\t\t};\n\t\t\t\tvar highlight = color.getHighlight();\n\t\t\t\tif (highlight) {\n\t\t\t\t\tattrs.fx = highlight.x;\n\t\t\t\t\tattrs.fy = highlight.y;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tattrs = {\n\t\t\t\t\tx1: origin.x,\n\t\t\t\t\ty1: origin.y,\n\t\t\t\t\tx2: destination.x,\n\t\t\t\t\ty2: destination.y\n\t\t\t\t};\n\t\t\t}\n\t\t\tattrs.gradientUnits = 'userSpaceOnUse';\n\t\t\tgradientNode = SvgElement.create((radial ? 'radial' : 'linear')\n\t\t\t\t\t+ 'Gradient', attrs, formatter);\n\t\t\tvar stops = gradient._stops;\n\t\t\tfor (var i = 0, l = stops.length; i < l; i++) {\n\t\t\t\tvar stop = stops[i],\n\t\t\t\t\tstopColor = stop._color,\n\t\t\t\t\talpha = stopColor.getAlpha(),\n\t\t\t\t\toffset = stop._offset;\n\t\t\t\tattrs = {\n\t\t\t\t\toffset: offset == null ? i / (l - 1) : offset\n\t\t\t\t};\n\t\t\t\tif (stopColor)\n\t\t\t\t\tattrs['stop-color'] = stopColor.toCSS(true);\n\t\t\t\tif (alpha < 1)\n\t\t\t\t\tattrs['stop-opacity'] = alpha;\n\t\t\t\tgradientNode.appendChild(\n\t\t\t\t\t\tSvgElement.create('stop', attrs, formatter));\n\t\t\t}\n\t\t\tsetDefinition(color, gradientNode, 'color');\n\t\t}\n\t\treturn 'url(#' + gradientNode.id + ')';\n\t}\n\n\tfunction exportText(item) {\n\t\tvar node = SvgElement.create('text', getTransform(item._matrix, true),\n\t\t\t\tformatter);\n\t\tnode.textContent = item._content;\n\t\treturn node;\n\t}\n\n\tvar exporters = {\n\t\tGroup: exportGroup,\n\t\tLayer: exportGroup,\n\t\tRaster: exportRaster,\n\t\tPath: exportPath,\n\t\tShape: exportShape,\n\t\tCompoundPath: exportCompoundPath,\n\t\tSymbolItem: exportSymbolItem,\n\t\tPointText: exportText\n\t};\n\n\tfunction applyStyle(item, node, options, isRoot) {\n\t\tvar attrs = {},\n\t\t\tparent = !isRoot && item.getParent(),\n\t\t\tstyle = [];\n\n\t\tif (item._name != null)\n\t\t\tattrs.id = item._name;\n\n\t\tBase.each(SvgStyles, function(entry) {\n\t\t\tvar get = entry.get,\n\t\t\t\ttype = entry.type,\n\t\t\t\tvalue = item[get]();\n\t\t\tif (entry.exportFilter\n\t\t\t\t\t? entry.exportFilter(item, value)\n\t\t\t\t\t: options.reduceAttributes == false\n\t\t\t\t\t\t|| !parent || !Base.equals(parent[get](), value)) {\n\t\t\t\tif (type === 'color' && value != null) {\n\t\t\t\t\tvar alpha = value.getAlpha();\n\t\t\t\t\tif (alpha < 1)\n\t\t\t\t\t\tattrs[entry.attribute + '-opacity'] = alpha;\n\t\t\t\t}\n\t\t\t\tif (type === 'style') {\n\t\t\t\t\tstyle.push(entry.attribute + ': ' + value);\n\t\t\t\t} else {\n\t\t\t\t\tattrs[entry.attribute] = value == null ? 'none'\n\t\t\t\t\t\t\t: type === 'color' ? value.gradient\n\t\t\t\t\t\t\t\t? exportGradient(value, item)\n\t\t\t\t\t\t\t\t: value.toCSS(true)\n\t\t\t\t\t\t\t: type === 'array' ? value.join(',')\n\t\t\t\t\t\t\t: type === 'lookup' ? entry.toSVG[value]\n\t\t\t\t\t\t\t: value;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tif (style.length)\n\t\t\tattrs.style = style.join(';');\n\n\t\tif (attrs.opacity === 1)\n\t\t\tdelete attrs.opacity;\n\n\t\tif (!item._visible)\n\t\t\tattrs.visibility = 'hidden';\n\n\t\treturn SvgElement.set(node, attrs, formatter);\n\t}\n\n\tvar definitions;\n\tfunction getDefinition(item, type) {\n\t\tif (!definitions)\n\t\t\tdefinitions = { ids: {}, svgs: {} };\n\t\treturn item && definitions.svgs[type + '-'\n\t\t\t\t+ (item._id || item.__id || (item.__id = UID.get('svg')))];\n\t}\n\n\tfunction setDefinition(item, node, type) {\n\t\tif (!definitions)\n\t\t\tgetDefinition();\n\t\tvar typeId = definitions.ids[type] = (definitions.ids[type] || 0) + 1;\n\t\tnode.id = type + '-' + typeId;\n\t\tdefinitions.svgs[type + '-' + (item._id || item.__id)] = node;\n\t}\n\n\tfunction exportDefinitions(node, options) {\n\t\tvar svg = node,\n\t\t\tdefs = null;\n\t\tif (definitions) {\n\t\t\tsvg = node.nodeName.toLowerCase() === 'svg' && node;\n\t\t\tfor (var i in definitions.svgs) {\n\t\t\t\tif (!defs) {\n\t\t\t\t\tif (!svg) {\n\t\t\t\t\t\tsvg = SvgElement.create('svg');\n\t\t\t\t\t\tsvg.appendChild(node);\n\t\t\t\t\t}\n\t\t\t\t\tdefs = svg.insertBefore(SvgElement.create('defs'),\n\t\t\t\t\t\t\tsvg.firstChild);\n\t\t\t\t}\n\t\t\t\tdefs.appendChild(definitions.svgs[i]);\n\t\t\t}\n\t\t\tdefinitions = null;\n\t\t}\n\t\treturn options.asString\n\t\t\t\t? new self.XMLSerializer().serializeToString(svg)\n\t\t\t\t: svg;\n\t}\n\n\tfunction exportSVG(item, options, isRoot) {\n\t\tvar exporter = exporters[item._class],\n\t\t\tnode = exporter && exporter(item, options);\n\t\tif (node) {\n\t\t\tvar onExport = options.onExport;\n\t\t\tif (onExport)\n\t\t\t\tnode = onExport(item, node, options) || node;\n\t\t\tvar data = JSON.stringify(item._data);\n\t\t\tif (data && data !== '{}' && data !== 'null')\n\t\t\t\tnode.setAttribute('data-paper-data', data);\n\t\t}\n\t\treturn node && applyStyle(item, node, options, isRoot);\n\t}\n\n\tfunction setOptions(options) {\n\t\tif (!options)\n\t\t\toptions = {};\n\t\tformatter = new Formatter(options.precision);\n\t\treturn options;\n\t}\n\n\tItem.inject({\n\t\texportSVG: function(options) {\n\t\t\toptions = setOptions(options);\n\t\t\treturn exportDefinitions(exportSVG(this, options, true), options);\n\t\t}\n\t});\n\n\tProject.inject({\n\t\texportSVG: function(options) {\n\t\t\toptions = setOptions(options);\n\t\t\tvar children = this._children,\n\t\t\t\tview = this.getView(),\n\t\t\t\tbounds = Base.pick(options.bounds, 'view'),\n\t\t\t\tmx = options.matrix || bounds === 'view' && view._matrix,\n\t\t\t\tmatrix = mx && Matrix.read([mx]),\n\t\t\t\trect = bounds === 'view'\n\t\t\t\t\t? new Rectangle([0, 0], view.getViewSize())\n\t\t\t\t\t: bounds === 'content'\n\t\t\t\t\t\t? Item._getBounds(children, matrix, { stroke: true })\n\t\t\t\t\t\t\t.rect\n\t\t\t\t\t\t: Rectangle.read([bounds], 0, { readNull: true }),\n\t\t\t\tattrs = {\n\t\t\t\t\tversion: '1.1',\n\t\t\t\t\txmlns: SvgElement.svg,\n\t\t\t\t\t'xmlns:xlink': SvgElement.xlink,\n\t\t\t\t};\n\t\t\tif (rect) {\n\t\t\t\tattrs.width = rect.width;\n\t\t\t\tattrs.height = rect.height;\n\t\t\t\tif (rect.x || rect.x === 0 || rect.y || rect.y === 0)\n\t\t\t\t\tattrs.viewBox = formatter.rectangle(rect);\n\t\t\t}\n\t\t\tvar node = SvgElement.create('svg', attrs, formatter),\n\t\t\t\tparent = node;\n\t\t\tif (matrix && !matrix.isIdentity()) {\n\t\t\t\tparent = node.appendChild(SvgElement.create('g',\n\t\t\t\t\t\tgetTransform(matrix), formatter));\n\t\t\t}\n\t\t\tfor (var i = 0, l = children.length; i < l; i++) {\n\t\t\t\tparent.appendChild(exportSVG(children[i], options, true));\n\t\t\t}\n\t\t\treturn exportDefinitions(node, options);\n\t\t}\n\t});\n};\n\nnew function() {\n\n\tvar definitions = {},\n\t\trootSize;\n\n\tfunction getValue(node, name, isString, allowNull, allowPercent,\n\t\t\tdefaultValue) {\n\t\tvar value = SvgElement.get(node, name) || defaultValue,\n\t\t\tres = value == null\n\t\t\t\t? allowNull\n\t\t\t\t\t? null\n\t\t\t\t\t: isString ? '' : 0\n\t\t\t\t: isString\n\t\t\t\t\t? value\n\t\t\t\t\t: parseFloat(value);\n\t\treturn /%\\s*$/.test(value)\n\t\t\t? (res / 100) * (allowPercent ? 1\n\t\t\t\t: rootSize[/x|^width/.test(name) ? 'width' : 'height'])\n\t\t\t: res;\n\t}\n\n\tfunction getPoint(node, x, y, allowNull, allowPercent, defaultX, defaultY) {\n\t\tx = getValue(node, x || 'x', false, allowNull, allowPercent, defaultX);\n\t\ty = getValue(node, y || 'y', false, allowNull, allowPercent, defaultY);\n\t\treturn allowNull && (x == null || y == null) ? null\n\t\t\t\t: new Point(x, y);\n\t}\n\n\tfunction getSize(node, w, h, allowNull, allowPercent) {\n\t\tw = getValue(node, w || 'width', false, allowNull, allowPercent);\n\t\th = getValue(node, h || 'height', false, allowNull, allowPercent);\n\t\treturn allowNull && (w == null || h == null) ? null\n\t\t\t\t: new Size(w, h);\n\t}\n\n\tfunction convertValue(value, type, lookup) {\n\t\treturn value === 'none' ? null\n\t\t\t\t: type === 'number' ? parseFloat(value)\n\t\t\t\t: type === 'array' ?\n\t\t\t\t\tvalue ? value.split(/[\\s,]+/g).map(parseFloat) : []\n\t\t\t\t: type === 'color' ? getDefinition(value) || value\n\t\t\t\t: type === 'lookup' ? lookup[value]\n\t\t\t\t: value;\n\t}\n\n\tfunction importGroup(node, type, options, isRoot) {\n\t\tvar nodes = node.childNodes,\n\t\t\tisClip = type === 'clippath',\n\t\t\tisDefs = type === 'defs',\n\t\t\titem = new Group(),\n\t\t\tproject = item._project,\n\t\t\tcurrentStyle = project._currentStyle,\n\t\t\tchildren = [];\n\t\tif (!isClip && !isDefs) {\n\t\t\titem = applyAttributes(item, node, isRoot);\n\t\t\tproject._currentStyle = item._style.clone();\n\t\t}\n\t\tif (isRoot) {\n\t\t\tvar defs = node.querySelectorAll('defs');\n\t\t\tfor (var i = 0, l = defs.length; i < l; i++) {\n\t\t\t\timportNode(defs[i], options, false);\n\t\t\t}\n\t\t}\n\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\tvar childNode = nodes[i],\n\t\t\t\tchild;\n\t\t\tif (childNode.nodeType === 1\n\t\t\t\t\t&& !/^defs$/i.test(childNode.nodeName)\n\t\t\t\t\t&& (child = importNode(childNode, options, false))\n\t\t\t\t\t&& !(child instanceof SymbolDefinition))\n\t\t\t\tchildren.push(child);\n\t\t}\n\t\titem.addChildren(children);\n\t\tif (isClip)\n\t\t\titem = applyAttributes(item.reduce(), node, isRoot);\n\t\tproject._currentStyle = currentStyle;\n\t\tif (isClip || isDefs) {\n\t\t\titem.remove();\n\t\t\titem = null;\n\t\t}\n\t\treturn item;\n\t}\n\n\tfunction importPoly(node, type) {\n\t\tvar coords = node.getAttribute('points').match(\n\t\t\t\t\t/[+-]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?/g),\n\t\t\tpoints = [];\n\t\tfor (var i = 0, l = coords.length; i < l; i += 2)\n\t\t\tpoints.push(new Point(\n\t\t\t\t\tparseFloat(coords[i]),\n\t\t\t\t\tparseFloat(coords[i + 1])));\n\t\tvar path = new Path(points);\n\t\tif (type === 'polygon')\n\t\t\tpath.closePath();\n\t\treturn path;\n\t}\n\n\tfunction importPath(node) {\n\t\treturn PathItem.create(node.getAttribute('d'));\n\t}\n\n\tfunction importGradient(node, type) {\n\t\tvar id = (getValue(node, 'href', true) || '').substring(1),\n\t\t\tradial = type === 'radialgradient',\n\t\t\tgradient;\n\t\tif (id) {\n\t\t\tgradient = definitions[id].getGradient();\n\t\t\tif (gradient._radial ^ radial) {\n\t\t\t\tgradient = gradient.clone();\n\t\t\t\tgradient._radial = radial;\n\t\t\t}\n\t\t} else {\n\t\t\tvar nodes = node.childNodes,\n\t\t\t\tstops = [];\n\t\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\t\tvar child = nodes[i];\n\t\t\t\tif (child.nodeType === 1)\n\t\t\t\t\tstops.push(applyAttributes(new GradientStop(), child));\n\t\t\t}\n\t\t\tgradient = new Gradient(stops, radial);\n\t\t}\n\t\tvar origin, destination, highlight,\n\t\t\tscaleToBounds = getValue(node, 'gradientUnits', true) !==\n\t\t\t\t'userSpaceOnUse';\n\t\tif (radial) {\n\t\t\torigin = getPoint(node, 'cx', 'cy', false, scaleToBounds,\n\t\t\t\t'50%', '50%');\n\t\t\tdestination = origin.add(\n\t\t\t\tgetValue(node, 'r', false, false, scaleToBounds, '50%'), 0);\n\t\t\thighlight = getPoint(node, 'fx', 'fy', true, scaleToBounds);\n\t\t} else {\n\t\t\torigin = getPoint(node, 'x1', 'y1', false, scaleToBounds,\n\t\t\t\t'0%', '0%');\n\t\t\tdestination = getPoint(node, 'x2', 'y2', false, scaleToBounds,\n\t\t\t\t'100%', '0%');\n\t\t}\n\t\tvar color = applyAttributes(\n\t\t\t\tnew Color(gradient, origin, destination, highlight), node);\n\t\tcolor._scaleToBounds = scaleToBounds;\n\t\treturn null;\n\t}\n\n\tvar importers = {\n\t\t'#document': function (node, type, options, isRoot) {\n\t\t\tvar nodes = node.childNodes;\n\t\t\tfor (var i = 0, l = nodes.length; i < l; i++) {\n\t\t\t\tvar child = nodes[i];\n\t\t\t\tif (child.nodeType === 1)\n\t\t\t\t\treturn importNode(child, options, isRoot);\n\t\t\t}\n\t\t},\n\t\tg: importGroup,\n\t\tsvg: importGroup,\n\t\tclippath: importGroup,\n\t\tpolygon: importPoly,\n\t\tpolyline: importPoly,\n\t\tpath: importPath,\n\t\tlineargradient: importGradient,\n\t\tradialgradient: importGradient,\n\n\t\timage: function (node) {\n\t\t\tvar raster = new Raster(getValue(node, 'href', true));\n\t\t\traster.on('load', function() {\n\t\t\t\tvar size = getSize(node);\n\t\t\t\tthis.setSize(size);\n\t\t\t\tvar center = getPoint(node).add(size.divide(2));\n\t\t\t\tthis._matrix.append(new Matrix().translate(center));\n\t\t\t});\n\t\t\treturn raster;\n\t\t},\n\n\t\tsymbol: function(node, type, options, isRoot) {\n\t\t\treturn new SymbolDefinition(\n\t\t\t\t\timportGroup(node, type, options, isRoot), true);\n\t\t},\n\n\t\tdefs: importGroup,\n\n\t\tuse: function(node) {\n\t\t\tvar id = (getValue(node, 'href', true) || '').substring(1),\n\t\t\t\tdefinition = definitions[id],\n\t\t\t\tpoint = getPoint(node);\n\t\t\treturn definition\n\t\t\t\t\t? definition instanceof SymbolDefinition\n\t\t\t\t\t\t? definition.place(point)\n\t\t\t\t\t\t: definition.clone().translate(point)\n\t\t\t\t\t: null;\n\t\t},\n\n\t\tcircle: function(node) {\n\t\t\treturn new Shape.Circle(\n\t\t\t\t\tgetPoint(node, 'cx', 'cy'),\n\t\t\t\t\tgetValue(node, 'r'));\n\t\t},\n\n\t\tellipse: function(node) {\n\t\t\treturn new Shape.Ellipse({\n\t\t\t\tcenter: getPoint(node, 'cx', 'cy'),\n\t\t\t\tradius: getSize(node, 'rx', 'ry')\n\t\t\t});\n\t\t},\n\n\t\trect: function(node) {\n\t\t\treturn new Shape.Rectangle(new Rectangle(\n\t\t\t\t\t\tgetPoint(node),\n\t\t\t\t\t\tgetSize(node)\n\t\t\t\t\t), getSize(node, 'rx', 'ry'));\n\t\t\t},\n\n\t\tline: function(node) {\n\t\t\treturn new Path.Line(\n\t\t\t\t\tgetPoint(node, 'x1', 'y1'),\n\t\t\t\t\tgetPoint(node, 'x2', 'y2'));\n\t\t},\n\n\t\ttext: function(node) {\n\t\t\tvar text = new PointText(getPoint(node).add(\n\t\t\t\t\tgetPoint(node, 'dx', 'dy')));\n\t\t\ttext.setContent(node.textContent.trim() || '');\n\t\t\treturn text;\n\t\t},\n\n\t\tswitch: importGroup\n\t};\n\n\tfunction applyTransform(item, value, name, node) {\n\t\tif (item.transform) {\n\t\t\tvar transforms = (node.getAttribute(name) || '').split(/\\)\\s*/g),\n\t\t\t\tmatrix = new Matrix();\n\t\t\tfor (var i = 0, l = transforms.length; i < l; i++) {\n\t\t\t\tvar transform = transforms[i];\n\t\t\t\tif (!transform)\n\t\t\t\t\tbreak;\n\t\t\t\tvar parts = transform.split(/\\(\\s*/),\n\t\t\t\t\tcommand = parts[0].trim(),\n\t\t\t\t\tv = parts[1].split(/[\\s,]+/g);\n\t\t\t\tfor (var j = 0, m = v.length; j < m; j++)\n\t\t\t\t\tv[j] = parseFloat(v[j]);\n\t\t\t\tswitch (command) {\n\t\t\t\tcase 'matrix':\n\t\t\t\t\tmatrix.append(\n\t\t\t\t\t\t\tnew Matrix(v[0], v[1], v[2], v[3], v[4], v[5]));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'rotate':\n\t\t\t\t\tmatrix.rotate(v[0], v[1] || 0, v[2] || 0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'translate':\n\t\t\t\t\tmatrix.translate(v[0], v[1] || 0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'scale':\n\t\t\t\t\tmatrix.scale(v);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'skewX':\n\t\t\t\t\tmatrix.skew(v[0], 0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'skewY':\n\t\t\t\t\tmatrix.skew(0, v[0]);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\titem.transform(matrix);\n\t\t}\n\t}\n\n\tfunction applyOpacity(item, value, name) {\n\t\tvar key = name === 'fill-opacity' ? 'getFillColor' : 'getStrokeColor',\n\t\t\tcolor = item[key] && item[key]();\n\t\tif (color)\n\t\t\tcolor.setAlpha(parseFloat(value));\n\t}\n\n\tvar attributes = Base.set(Base.each(SvgStyles, function(entry) {\n\t\tthis[entry.attribute] = function(item, value) {\n\t\t\tif (item[entry.set]) {\n\t\t\t\titem[entry.set](convertValue(value, entry.type, entry.fromSVG));\n\t\t\t\tif (entry.type === 'color') {\n\t\t\t\t\tvar color = item[entry.get]();\n\t\t\t\t\tif (color) {\n\t\t\t\t\t\tif (color._scaleToBounds) {\n\t\t\t\t\t\t\tvar bounds = item.getBounds();\n\t\t\t\t\t\t\tcolor.transform(new Matrix()\n\t\t\t\t\t\t\t\t.translate(bounds.getPoint())\n\t\t\t\t\t\t\t\t.scale(bounds.getSize()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}, {}), {\n\t\tid: function(item, value) {\n\t\t\tdefinitions[value] = item;\n\t\t\tif (item.setName)\n\t\t\t\titem.setName(value);\n\t\t},\n\n\t\t'clip-path': function(item, value) {\n\t\t\tvar clip = getDefinition(value);\n\t\t\tif (clip) {\n\t\t\t\tclip = clip.clone();\n\t\t\t\tclip.setClipMask(true);\n\t\t\t\tif (item instanceof Group) {\n\t\t\t\t\titem.insertChild(0, clip);\n\t\t\t\t} else {\n\t\t\t\t\treturn new Group(clip, item);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\tgradientTransform: applyTransform,\n\t\ttransform: applyTransform,\n\n\t\t'fill-opacity': applyOpacity,\n\t\t'stroke-opacity': applyOpacity,\n\n\t\tvisibility: function(item, value) {\n\t\t\tif (item.setVisible)\n\t\t\t\titem.setVisible(value === 'visible');\n\t\t},\n\n\t\tdisplay: function(item, value) {\n\t\t\tif (item.setVisible)\n\t\t\t\titem.setVisible(value !== null);\n\t\t},\n\n\t\t'stop-color': function(item, value) {\n\t\t\tif (item.setColor)\n\t\t\t\titem.setColor(value);\n\t\t},\n\n\t\t'stop-opacity': function(item, value) {\n\t\t\tif (item._color)\n\t\t\t\titem._color.setAlpha(parseFloat(value));\n\t\t},\n\n\t\toffset: function(item, value) {\n\t\t\tif (item.setOffset) {\n\t\t\t\tvar percent = value.match(/(.*)%$/);\n\t\t\t\titem.setOffset(percent ? percent[1] / 100 : parseFloat(value));\n\t\t\t}\n\t\t},\n\n\t\tviewBox: function(item, value, name, node, styles) {\n\t\t\tvar rect = new Rectangle(convertValue(value, 'array')),\n\t\t\t\tsize = getSize(node, null, null, true),\n\t\t\t\tgroup,\n\t\t\t\tmatrix;\n\t\t\tif (item instanceof Group) {\n\t\t\t\tvar scale = size ? size.divide(rect.getSize()) : 1,\n\t\t\t\tmatrix = new Matrix().scale(scale)\n\t\t\t\t\t\t.translate(rect.getPoint().negate());\n\t\t\t\tgroup = item;\n\t\t\t} else if (item instanceof SymbolDefinition) {\n\t\t\t\tif (size)\n\t\t\t\t\trect.setSize(size);\n\t\t\t\tgroup = item._item;\n\t\t\t}\n\t\t\tif (group) {\n\t\t\t\tif (getAttribute(node, 'overflow', styles) !== 'visible') {\n\t\t\t\t\tvar clip = new Shape.Rectangle(rect);\n\t\t\t\t\tclip.setClipMask(true);\n\t\t\t\t\tgroup.addChild(clip);\n\t\t\t\t}\n\t\t\t\tif (matrix)\n\t\t\t\t\tgroup.transform(matrix);\n\t\t\t}\n\t\t}\n\t});\n\n\tfunction getAttribute(node, name, styles) {\n\t\tvar attr = node.attributes[name],\n\t\t\tvalue = attr && attr.value;\n\t\tif (!value && node.style) {\n\t\t\tvar style = Base.camelize(name);\n\t\t\tvalue = node.style[style];\n\t\t\tif (!value && styles.node[style] !== styles.parent[style])\n\t\t\t\tvalue = styles.node[style];\n\t\t}\n\t\treturn !value ? undefined\n\t\t\t\t: value === 'none' ? null\n\t\t\t\t: value;\n\t}\n\n\tfunction applyAttributes(item, node, isRoot) {\n\t\tvar parent = node.parentNode,\n\t\t\tstyles = {\n\t\t\t\tnode: DomElement.getStyles(node) || {},\n\t\t\t\tparent: !isRoot && !/^defs$/i.test(parent.tagName)\n\t\t\t\t\t\t&& DomElement.getStyles(parent) || {}\n\t\t\t};\n\t\tBase.each(attributes, function(apply, name) {\n\t\t\tvar value = getAttribute(node, name, styles);\n\t\t\titem = value !== undefined\n\t\t\t\t\t&& apply(item, value, name, node, styles) || item;\n\t\t});\n\t\treturn item;\n\t}\n\n\tfunction getDefinition(value) {\n\t\tvar match = value && value.match(/\\((?:[\"'#]*)([^\"')]+)/),\n\t\t\tname = match && match[1],\n\t\t\tres = name && definitions[window\n\t\t\t\t\t? name.replace(window.location.href.split('#')[0] + '#', '')\n\t\t\t\t\t: name];\n\t\tif (res && res._scaleToBounds) {\n\t\t\tres = res.clone();\n\t\t\tres._scaleToBounds = true;\n\t\t}\n\t\treturn res;\n\t}\n\n\tfunction importNode(node, options, isRoot) {\n\t\tvar type = node.nodeName.toLowerCase(),\n\t\t\tisElement = type !== '#document',\n\t\t\tbody = document.body,\n\t\t\tcontainer,\n\t\t\tparent,\n\t\t\tnext;\n\t\tif (isRoot && isElement) {\n\t\t\trootSize = paper.getView().getSize();\n\t\t\trootSize = getSize(node, null, null, true) || rootSize;\n\t\t\tcontainer = SvgElement.create('svg', {\n\t\t\t\tstyle: 'stroke-width: 1px; stroke-miterlimit: 10'\n\t\t\t});\n\t\t\tparent = node.parentNode;\n\t\t\tnext = node.nextSibling;\n\t\t\tcontainer.appendChild(node);\n\t\t\tbody.appendChild(container);\n\t\t}\n\t\tvar settings = paper.settings,\n\t\t\tapplyMatrix = settings.applyMatrix,\n\t\t\tinsertItems = settings.insertItems;\n\t\tsettings.applyMatrix = false;\n\t\tsettings.insertItems = false;\n\t\tvar importer = importers[type],\n\t\t\titem = importer && importer(node, type, options, isRoot) || null;\n\t\tsettings.insertItems = insertItems;\n\t\tsettings.applyMatrix = applyMatrix;\n\t\tif (item) {\n\t\t\tif (isElement && !(item instanceof Group))\n\t\t\t\titem = applyAttributes(item, node, isRoot);\n\t\t\tvar onImport = options.onImport,\n\t\t\t\tdata = isElement && node.getAttribute('data-paper-data');\n\t\t\tif (onImport)\n\t\t\t\titem = onImport(node, item, options) || item;\n\t\t\tif (options.expandShapes && item instanceof Shape) {\n\t\t\t\titem.remove();\n\t\t\t\titem = item.toPath();\n\t\t\t}\n\t\t\tif (data)\n\t\t\t\titem._data = JSON.parse(data);\n\t\t}\n\t\tif (container) {\n\t\t\tbody.removeChild(container);\n\t\t\tif (parent) {\n\t\t\t\tif (next) {\n\t\t\t\t\tparent.insertBefore(node, next);\n\t\t\t\t} else {\n\t\t\t\t\tparent.appendChild(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isRoot) {\n\t\t\tdefinitions = {};\n\t\t\tif (item && Base.pick(options.applyMatrix, applyMatrix))\n\t\t\t\titem.matrix.apply(true, true);\n\t\t}\n\t\treturn item;\n\t}\n\n\tfunction importSVG(source, options, owner) {\n\t\tif (!source)\n\t\t\treturn null;\n\t\toptions = typeof options === 'function' ? { onLoad: options }\n\t\t\t\t: options || {};\n\t\tvar scope = paper,\n\t\t\titem = null;\n\n\t\tfunction onLoad(svg) {\n\t\t\ttry {\n\t\t\t\tvar node = typeof svg === 'object'\n\t\t\t\t\t? svg\n\t\t\t\t\t: new self.DOMParser().parseFromString(\n\t\t\t\t\t\tsvg.trim(),\n\t\t\t\t\t\t'image/svg+xml'\n\t\t\t\t\t);\n\t\t\t\tif (!node.nodeName) {\n\t\t\t\t\tnode = null;\n\t\t\t\t\tthrow new Error('Unsupported SVG source: ' + source);\n\t\t\t\t}\n\t\t\t\tpaper = scope;\n\t\t\t\titem = importNode(node, options, true);\n\t\t\t\tif (!options || options.insert !== false) {\n\t\t\t\t\towner._insertItem(undefined, item);\n\t\t\t\t}\n\t\t\t\tvar onLoad = options.onLoad;\n\t\t\t\tif (onLoad)\n\t\t\t\t\tonLoad(item, svg);\n\t\t\t} catch (e) {\n\t\t\t\tonError(e);\n\t\t\t}\n\t\t}\n\n\t\tfunction onError(message, status) {\n\t\t\tvar onError = options.onError;\n\t\t\tif (onError) {\n\t\t\t\tonError(message, status);\n\t\t\t} else {\n\t\t\t\tthrow new Error(message);\n\t\t\t}\n\t\t}\n\n\t\tif (typeof source === 'string' && !/^[\\s\\S]* 3) {\n\t cats.sort(function(a, b) {return b.length - a.length;});\n\t f += \"switch(str.length){\";\n\t for (var i = 0; i < cats.length; ++i) {\n\t\tvar cat = cats[i];\n\t\tf += \"case \" + cat[0].length + \":\";\n\t\tcompareTo(cat);\n\t }\n\t f += \"}\";\n\n\t} else {\n\t compareTo(words);\n\t}\n\treturn new Function(\"str\", f);\n }\n\n var isReservedWord3 = makePredicate(\"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\");\n\n var isReservedWord5 = makePredicate(\"class enum extends super const export import\");\n\n var isStrictReservedWord = makePredicate(\"implements interface let package private protected public static yield\");\n\n var isStrictBadIdWord = makePredicate(\"eval arguments\");\n\n var isKeyword = makePredicate(\"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\");\n\n var nonASCIIwhitespace = /[\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/;\n var nonASCIIidentifierStartChars = \"\\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\\u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-\\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\";\n var nonASCIIidentifierChars = \"\\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\";\n var nonASCIIidentifierStart = new RegExp(\"[\" + nonASCIIidentifierStartChars + \"]\");\n var nonASCIIidentifier = new RegExp(\"[\" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + \"]\");\n\n var newline = /[\\n\\r\\u2028\\u2029]/;\n\n var lineBreak = /\\r\\n|[\\n\\r\\u2028\\u2029]/g;\n\n var isIdentifierStart = exports.isIdentifierStart = function(code) {\n\tif (code < 65) return code === 36;\n\tif (code < 91) return true;\n\tif (code < 97) return code === 95;\n\tif (code < 123)return true;\n\treturn code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));\n };\n\n var isIdentifierChar = exports.isIdentifierChar = function(code) {\n\tif (code < 48) return code === 36;\n\tif (code < 58) return true;\n\tif (code < 65) return false;\n\tif (code < 91) return true;\n\tif (code < 97) return code === 95;\n\tif (code < 123)return true;\n\treturn code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));\n };\n\n function line_loc_t() {\n\tthis.line = tokCurLine;\n\tthis.column = tokPos - tokLineStart;\n }\n\n function initTokenState() {\n\ttokCurLine = 1;\n\ttokPos = tokLineStart = 0;\n\ttokRegexpAllowed = true;\n\tskipSpace();\n }\n\n function finishToken(type, val) {\n\ttokEnd = tokPos;\n\tif (options.locations) tokEndLoc = new line_loc_t;\n\ttokType = type;\n\tskipSpace();\n\ttokVal = val;\n\ttokRegexpAllowed = type.beforeExpr;\n }\n\n function skipBlockComment() {\n\tvar startLoc = options.onComment && options.locations && new line_loc_t;\n\tvar start = tokPos, end = input.indexOf(\"*/\", tokPos += 2);\n\tif (end === -1) raise(tokPos - 2, \"Unterminated comment\");\n\ttokPos = end + 2;\n\tif (options.locations) {\n\t lineBreak.lastIndex = start;\n\t var match;\n\t while ((match = lineBreak.exec(input)) && match.index < tokPos) {\n\t\t++tokCurLine;\n\t\ttokLineStart = match.index + match[0].length;\n\t }\n\t}\n\tif (options.onComment)\n\t options.onComment(true, input.slice(start + 2, end), start, tokPos,\n\t\t\t\t\t\tstartLoc, options.locations && new line_loc_t);\n }\n\n function skipLineComment() {\n\tvar start = tokPos;\n\tvar startLoc = options.onComment && options.locations && new line_loc_t;\n\tvar ch = input.charCodeAt(tokPos+=2);\n\twhile (tokPos < inputLen && ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233) {\n\t ++tokPos;\n\t ch = input.charCodeAt(tokPos);\n\t}\n\tif (options.onComment)\n\t options.onComment(false, input.slice(start + 2, tokPos), start, tokPos,\n\t\t\t\t\t\tstartLoc, options.locations && new line_loc_t);\n }\n\n function skipSpace() {\n\twhile (tokPos < inputLen) {\n\t var ch = input.charCodeAt(tokPos);\n\t if (ch === 32) {\n\t\t++tokPos;\n\t } else if (ch === 13) {\n\t\t++tokPos;\n\t\tvar next = input.charCodeAt(tokPos);\n\t\tif (next === 10) {\n\t\t ++tokPos;\n\t\t}\n\t\tif (options.locations) {\n\t\t ++tokCurLine;\n\t\t tokLineStart = tokPos;\n\t\t}\n\t } else if (ch === 10 || ch === 8232 || ch === 8233) {\n\t\t++tokPos;\n\t\tif (options.locations) {\n\t\t ++tokCurLine;\n\t\t tokLineStart = tokPos;\n\t\t}\n\t } else if (ch > 8 && ch < 14) {\n\t\t++tokPos;\n\t } else if (ch === 47) {\n\t\tvar next = input.charCodeAt(tokPos + 1);\n\t\tif (next === 42) {\n\t\t skipBlockComment();\n\t\t} else if (next === 47) {\n\t\t skipLineComment();\n\t\t} else break;\n\t } else if (ch === 160) {\n\t\t++tokPos;\n\t } else if (ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {\n\t\t++tokPos;\n\t } else {\n\t\tbreak;\n\t }\n\t}\n }\n\n function readToken_dot() {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (next >= 48 && next <= 57) return readNumber(true);\n\t++tokPos;\n\treturn finishToken(_dot);\n }\n\n function readToken_slash() {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (tokRegexpAllowed) {++tokPos; return readRegexp();}\n\tif (next === 61) return finishOp(_assign, 2);\n\treturn finishOp(_slash, 1);\n }\n\n function readToken_mult_modulo() {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (next === 61) return finishOp(_assign, 2);\n\treturn finishOp(_multiplyModulo, 1);\n }\n\n function readToken_pipe_amp(code) {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (next === code) return finishOp(code === 124 ? _logicalOR : _logicalAND, 2);\n\tif (next === 61) return finishOp(_assign, 2);\n\treturn finishOp(code === 124 ? _bitwiseOR : _bitwiseAND, 1);\n }\n\n function readToken_caret() {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (next === 61) return finishOp(_assign, 2);\n\treturn finishOp(_bitwiseXOR, 1);\n }\n\n function readToken_plus_min(code) {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (next === code) {\n\t if (next == 45 && input.charCodeAt(tokPos + 2) == 62 &&\n\t\t newline.test(input.slice(lastEnd, tokPos))) {\n\t\ttokPos += 3;\n\t\tskipLineComment();\n\t\tskipSpace();\n\t\treturn readToken();\n\t }\n\t return finishOp(_incDec, 2);\n\t}\n\tif (next === 61) return finishOp(_assign, 2);\n\treturn finishOp(_plusMin, 1);\n }\n\n function readToken_lt_gt(code) {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tvar size = 1;\n\tif (next === code) {\n\t size = code === 62 && input.charCodeAt(tokPos + 2) === 62 ? 3 : 2;\n\t if (input.charCodeAt(tokPos + size) === 61) return finishOp(_assign, size + 1);\n\t return finishOp(_bitShift, size);\n\t}\n\tif (next == 33 && code == 60 && input.charCodeAt(tokPos + 2) == 45 &&\n\t\tinput.charCodeAt(tokPos + 3) == 45) {\n\t tokPos += 4;\n\t skipLineComment();\n\t skipSpace();\n\t return readToken();\n\t}\n\tif (next === 61)\n\t size = input.charCodeAt(tokPos + 2) === 61 ? 3 : 2;\n\treturn finishOp(_relational, size);\n }\n\n function readToken_eq_excl(code) {\n\tvar next = input.charCodeAt(tokPos + 1);\n\tif (next === 61) return finishOp(_equality, input.charCodeAt(tokPos + 2) === 61 ? 3 : 2);\n\treturn finishOp(code === 61 ? _eq : _prefix, 1);\n }\n\n function getTokenFromCode(code) {\n\tswitch(code) {\n\tcase 46:\n\t return readToken_dot();\n\n\tcase 40: ++tokPos; return finishToken(_parenL);\n\tcase 41: ++tokPos; return finishToken(_parenR);\n\tcase 59: ++tokPos; return finishToken(_semi);\n\tcase 44: ++tokPos; return finishToken(_comma);\n\tcase 91: ++tokPos; return finishToken(_bracketL);\n\tcase 93: ++tokPos; return finishToken(_bracketR);\n\tcase 123: ++tokPos; return finishToken(_braceL);\n\tcase 125: ++tokPos; return finishToken(_braceR);\n\tcase 58: ++tokPos; return finishToken(_colon);\n\tcase 63: ++tokPos; return finishToken(_question);\n\n\tcase 48:\n\t var next = input.charCodeAt(tokPos + 1);\n\t if (next === 120 || next === 88) return readHexNumber();\n\tcase 49: case 50: case 51: case 52: case 53: case 54: case 55: case 56: case 57:\n\t return readNumber(false);\n\n\tcase 34: case 39:\n\t return readString(code);\n\n\tcase 47:\n\t return readToken_slash(code);\n\n\tcase 37: case 42:\n\t return readToken_mult_modulo();\n\n\tcase 124: case 38:\n\t return readToken_pipe_amp(code);\n\n\tcase 94:\n\t return readToken_caret();\n\n\tcase 43: case 45:\n\t return readToken_plus_min(code);\n\n\tcase 60: case 62:\n\t return readToken_lt_gt(code);\n\n\tcase 61: case 33:\n\t return readToken_eq_excl(code);\n\n\tcase 126:\n\t return finishOp(_prefix, 1);\n\t}\n\n\treturn false;\n }\n\n function readToken(forceRegexp) {\n\tif (!forceRegexp) tokStart = tokPos;\n\telse tokPos = tokStart + 1;\n\tif (options.locations) tokStartLoc = new line_loc_t;\n\tif (forceRegexp) return readRegexp();\n\tif (tokPos >= inputLen) return finishToken(_eof);\n\n\tvar code = input.charCodeAt(tokPos);\n\tif (isIdentifierStart(code) || code === 92 ) return readWord();\n\n\tvar tok = getTokenFromCode(code);\n\n\tif (tok === false) {\n\t var ch = String.fromCharCode(code);\n\t if (ch === \"\\\\\" || nonASCIIidentifierStart.test(ch)) return readWord();\n\t raise(tokPos, \"Unexpected character '\" + ch + \"'\");\n\t}\n\treturn tok;\n }\n\n function finishOp(type, size) {\n\tvar str = input.slice(tokPos, tokPos + size);\n\ttokPos += size;\n\tfinishToken(type, str);\n }\n\n function readRegexp() {\n\tvar content = \"\", escaped, inClass, start = tokPos;\n\tfor (;;) {\n\t if (tokPos >= inputLen) raise(start, \"Unterminated regular expression\");\n\t var ch = input.charAt(tokPos);\n\t if (newline.test(ch)) raise(start, \"Unterminated regular expression\");\n\t if (!escaped) {\n\t\tif (ch === \"[\") inClass = true;\n\t\telse if (ch === \"]\" && inClass) inClass = false;\n\t\telse if (ch === \"/\" && !inClass) break;\n\t\tescaped = ch === \"\\\\\";\n\t } else escaped = false;\n\t ++tokPos;\n\t}\n\tvar content = input.slice(start, tokPos);\n\t++tokPos;\n\tvar mods = readWord1();\n\tif (mods && !/^[gmsiy]*$/.test(mods)) raise(start, \"Invalid regexp flag\");\n\ttry {\n\t var value = new RegExp(content, mods);\n\t} catch (e) {\n\t if (e instanceof SyntaxError) raise(start, e.message);\n\t raise(e);\n\t}\n\treturn finishToken(_regexp, value);\n }\n\n function readInt(radix, len) {\n\tvar start = tokPos, total = 0;\n\tfor (var i = 0, e = len == null ? Infinity : len; i < e; ++i) {\n\t var code = input.charCodeAt(tokPos), val;\n\t if (code >= 97) val = code - 97 + 10;\n\t else if (code >= 65) val = code - 65 + 10;\n\t else if (code >= 48 && code <= 57) val = code - 48;\n\t else val = Infinity;\n\t if (val >= radix) break;\n\t ++tokPos;\n\t total = total * radix + val;\n\t}\n\tif (tokPos === start || len != null && tokPos - start !== len) return null;\n\n\treturn total;\n }\n\n function readHexNumber() {\n\ttokPos += 2;\n\tvar val = readInt(16);\n\tif (val == null) raise(tokStart + 2, \"Expected hexadecimal number\");\n\tif (isIdentifierStart(input.charCodeAt(tokPos))) raise(tokPos, \"Identifier directly after number\");\n\treturn finishToken(_num, val);\n }\n\n function readNumber(startsWithDot) {\n\tvar start = tokPos, isFloat = false, octal = input.charCodeAt(tokPos) === 48;\n\tif (!startsWithDot && readInt(10) === null) raise(start, \"Invalid number\");\n\tif (input.charCodeAt(tokPos) === 46) {\n\t ++tokPos;\n\t readInt(10);\n\t isFloat = true;\n\t}\n\tvar next = input.charCodeAt(tokPos);\n\tif (next === 69 || next === 101) {\n\t next = input.charCodeAt(++tokPos);\n\t if (next === 43 || next === 45) ++tokPos;\n\t if (readInt(10) === null) raise(start, \"Invalid number\");\n\t isFloat = true;\n\t}\n\tif (isIdentifierStart(input.charCodeAt(tokPos))) raise(tokPos, \"Identifier directly after number\");\n\n\tvar str = input.slice(start, tokPos), val;\n\tif (isFloat) val = parseFloat(str);\n\telse if (!octal || str.length === 1) val = parseInt(str, 10);\n\telse if (/[89]/.test(str) || strict) raise(start, \"Invalid number\");\n\telse val = parseInt(str, 8);\n\treturn finishToken(_num, val);\n }\n\n function readString(quote) {\n\ttokPos++;\n\tvar out = \"\";\n\tfor (;;) {\n\t if (tokPos >= inputLen) raise(tokStart, \"Unterminated string constant\");\n\t var ch = input.charCodeAt(tokPos);\n\t if (ch === quote) {\n\t\t++tokPos;\n\t\treturn finishToken(_string, out);\n\t }\n\t if (ch === 92) {\n\t\tch = input.charCodeAt(++tokPos);\n\t\tvar octal = /^[0-7]+/.exec(input.slice(tokPos, tokPos + 3));\n\t\tif (octal) octal = octal[0];\n\t\twhile (octal && parseInt(octal, 8) > 255) octal = octal.slice(0, -1);\n\t\tif (octal === \"0\") octal = null;\n\t\t++tokPos;\n\t\tif (octal) {\n\t\t if (strict) raise(tokPos - 2, \"Octal literal in strict mode\");\n\t\t out += String.fromCharCode(parseInt(octal, 8));\n\t\t tokPos += octal.length - 1;\n\t\t} else {\n\t\t switch (ch) {\n\t\t case 110: out += \"\\n\"; break;\n\t\t case 114: out += \"\\r\"; break;\n\t\t case 120: out += String.fromCharCode(readHexChar(2)); break;\n\t\t case 117: out += String.fromCharCode(readHexChar(4)); break;\n\t\t case 85: out += String.fromCharCode(readHexChar(8)); break;\n\t\t case 116: out += \"\\t\"; break;\n\t\t case 98: out += \"\\b\"; break;\n\t\t case 118: out += \"\\u000b\"; break;\n\t\t case 102: out += \"\\f\"; break;\n\t\t case 48: out += \"\\0\"; break;\n\t\t case 13: if (input.charCodeAt(tokPos) === 10) ++tokPos;\n\t\t case 10:\n\t\t\tif (options.locations) { tokLineStart = tokPos; ++tokCurLine; }\n\t\t\tbreak;\n\t\t default: out += String.fromCharCode(ch); break;\n\t\t }\n\t\t}\n\t } else {\n\t\tif (ch === 13 || ch === 10 || ch === 8232 || ch === 8233) raise(tokStart, \"Unterminated string constant\");\n\t\tout += String.fromCharCode(ch);\n\t\t++tokPos;\n\t }\n\t}\n }\n\n function readHexChar(len) {\n\tvar n = readInt(16, len);\n\tif (n === null) raise(tokStart, \"Bad character escape sequence\");\n\treturn n;\n }\n\n var containsEsc;\n\n function readWord1() {\n\tcontainsEsc = false;\n\tvar word, first = true, start = tokPos;\n\tfor (;;) {\n\t var ch = input.charCodeAt(tokPos);\n\t if (isIdentifierChar(ch)) {\n\t\tif (containsEsc) word += input.charAt(tokPos);\n\t\t++tokPos;\n\t } else if (ch === 92) {\n\t\tif (!containsEsc) word = input.slice(start, tokPos);\n\t\tcontainsEsc = true;\n\t\tif (input.charCodeAt(++tokPos) != 117)\n\t\t raise(tokPos, \"Expecting Unicode escape sequence \\\\uXXXX\");\n\t\t++tokPos;\n\t\tvar esc = readHexChar(4);\n\t\tvar escStr = String.fromCharCode(esc);\n\t\tif (!escStr) raise(tokPos - 1, \"Invalid Unicode escape\");\n\t\tif (!(first ? isIdentifierStart(esc) : isIdentifierChar(esc)))\n\t\t raise(tokPos - 4, \"Invalid Unicode escape\");\n\t\tword += escStr;\n\t } else {\n\t\tbreak;\n\t }\n\t first = false;\n\t}\n\treturn containsEsc ? word : input.slice(start, tokPos);\n }\n\n function readWord() {\n\tvar word = readWord1();\n\tvar type = _name;\n\tif (!containsEsc && isKeyword(word))\n\t type = keywordTypes[word];\n\treturn finishToken(type, word);\n }\n\n function next() {\n\tlastStart = tokStart;\n\tlastEnd = tokEnd;\n\tlastEndLoc = tokEndLoc;\n\treadToken();\n }\n\n function setStrict(strct) {\n\tstrict = strct;\n\ttokPos = tokStart;\n\tif (options.locations) {\n\t while (tokPos < tokLineStart) {\n\t\ttokLineStart = input.lastIndexOf(\"\\n\", tokLineStart - 2) + 1;\n\t\t--tokCurLine;\n\t }\n\t}\n\tskipSpace();\n\treadToken();\n }\n\n function node_t() {\n\tthis.type = null;\n\tthis.start = tokStart;\n\tthis.end = null;\n }\n\n function node_loc_t() {\n\tthis.start = tokStartLoc;\n\tthis.end = null;\n\tif (sourceFile !== null) this.source = sourceFile;\n }\n\n function startNode() {\n\tvar node = new node_t();\n\tif (options.locations)\n\t node.loc = new node_loc_t();\n\tif (options.directSourceFile)\n\t node.sourceFile = options.directSourceFile;\n\tif (options.ranges)\n\t node.range = [tokStart, 0];\n\treturn node;\n }\n\n function startNodeFrom(other) {\n\tvar node = new node_t();\n\tnode.start = other.start;\n\tif (options.locations) {\n\t node.loc = new node_loc_t();\n\t node.loc.start = other.loc.start;\n\t}\n\tif (options.ranges)\n\t node.range = [other.range[0], 0];\n\n\treturn node;\n }\n\n function finishNode(node, type) {\n\tnode.type = type;\n\tnode.end = lastEnd;\n\tif (options.locations)\n\t node.loc.end = lastEndLoc;\n\tif (options.ranges)\n\t node.range[1] = lastEnd;\n\treturn node;\n }\n\n function isUseStrict(stmt) {\n\treturn options.ecmaVersion >= 5 && stmt.type === \"ExpressionStatement\" &&\n\t stmt.expression.type === \"Literal\" && stmt.expression.value === \"use strict\";\n }\n\n function eat(type) {\n\tif (tokType === type) {\n\t next();\n\t return true;\n\t}\n }\n\n function canInsertSemicolon() {\n\treturn !options.strictSemicolons &&\n\t (tokType === _eof || tokType === _braceR || newline.test(input.slice(lastEnd, tokStart)));\n }\n\n function semicolon() {\n\tif (!eat(_semi) && !canInsertSemicolon()) unexpected();\n }\n\n function expect(type) {\n\tif (tokType === type) next();\n\telse unexpected();\n }\n\n function unexpected() {\n\traise(tokStart, \"Unexpected token\");\n }\n\n function checkLVal(expr) {\n\tif (expr.type !== \"Identifier\" && expr.type !== \"MemberExpression\")\n\t raise(expr.start, \"Assigning to rvalue\");\n\tif (strict && expr.type === \"Identifier\" && isStrictBadIdWord(expr.name))\n\t raise(expr.start, \"Assigning to \" + expr.name + \" in strict mode\");\n }\n\n function parseTopLevel(program) {\n\tlastStart = lastEnd = tokPos;\n\tif (options.locations) lastEndLoc = new line_loc_t;\n\tinFunction = strict = null;\n\tlabels = [];\n\treadToken();\n\n\tvar node = program || startNode(), first = true;\n\tif (!program) node.body = [];\n\twhile (tokType !== _eof) {\n\t var stmt = parseStatement();\n\t node.body.push(stmt);\n\t if (first && isUseStrict(stmt)) setStrict(true);\n\t first = false;\n\t}\n\treturn finishNode(node, \"Program\");\n }\n\n var loopLabel = {kind: \"loop\"}, switchLabel = {kind: \"switch\"};\n\n function parseStatement() {\n\tif (tokType === _slash || tokType === _assign && tokVal == \"/=\")\n\t readToken(true);\n\n\tvar starttype = tokType, node = startNode();\n\n\tswitch (starttype) {\n\tcase _break: case _continue:\n\t next();\n\t var isBreak = starttype === _break;\n\t if (eat(_semi) || canInsertSemicolon()) node.label = null;\n\t else if (tokType !== _name) unexpected();\n\t else {\n\t\tnode.label = parseIdent();\n\t\tsemicolon();\n\t }\n\n\t for (var i = 0; i < labels.length; ++i) {\n\t\tvar lab = labels[i];\n\t\tif (node.label == null || lab.name === node.label.name) {\n\t\t if (lab.kind != null && (isBreak || lab.kind === \"loop\")) break;\n\t\t if (node.label && isBreak) break;\n\t\t}\n\t }\n\t if (i === labels.length) raise(node.start, \"Unsyntactic \" + starttype.keyword);\n\t return finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\");\n\n\tcase _debugger:\n\t next();\n\t semicolon();\n\t return finishNode(node, \"DebuggerStatement\");\n\n\tcase _do:\n\t next();\n\t labels.push(loopLabel);\n\t node.body = parseStatement();\n\t labels.pop();\n\t expect(_while);\n\t node.test = parseParenExpression();\n\t semicolon();\n\t return finishNode(node, \"DoWhileStatement\");\n\n\tcase _for:\n\t next();\n\t labels.push(loopLabel);\n\t expect(_parenL);\n\t if (tokType === _semi) return parseFor(node, null);\n\t if (tokType === _var) {\n\t\tvar init = startNode();\n\t\tnext();\n\t\tparseVar(init, true);\n\t\tfinishNode(init, \"VariableDeclaration\");\n\t\tif (init.declarations.length === 1 && eat(_in))\n\t\t return parseForIn(node, init);\n\t\treturn parseFor(node, init);\n\t }\n\t var init = parseExpression(false, true);\n\t if (eat(_in)) {checkLVal(init); return parseForIn(node, init);}\n\t return parseFor(node, init);\n\n\tcase _function:\n\t next();\n\t return parseFunction(node, true);\n\n\tcase _if:\n\t next();\n\t node.test = parseParenExpression();\n\t node.consequent = parseStatement();\n\t node.alternate = eat(_else) ? parseStatement() : null;\n\t return finishNode(node, \"IfStatement\");\n\n\tcase _return:\n\t if (!inFunction && !options.allowReturnOutsideFunction)\n\t\traise(tokStart, \"'return' outside of function\");\n\t next();\n\n\t if (eat(_semi) || canInsertSemicolon()) node.argument = null;\n\t else { node.argument = parseExpression(); semicolon(); }\n\t return finishNode(node, \"ReturnStatement\");\n\n\tcase _switch:\n\t next();\n\t node.discriminant = parseParenExpression();\n\t node.cases = [];\n\t expect(_braceL);\n\t labels.push(switchLabel);\n\n\t for (var cur, sawDefault; tokType != _braceR;) {\n\t\tif (tokType === _case || tokType === _default) {\n\t\t var isCase = tokType === _case;\n\t\t if (cur) finishNode(cur, \"SwitchCase\");\n\t\t node.cases.push(cur = startNode());\n\t\t cur.consequent = [];\n\t\t next();\n\t\t if (isCase) cur.test = parseExpression();\n\t\t else {\n\t\t\tif (sawDefault) raise(lastStart, \"Multiple default clauses\"); sawDefault = true;\n\t\t\tcur.test = null;\n\t\t }\n\t\t expect(_colon);\n\t\t} else {\n\t\t if (!cur) unexpected();\n\t\t cur.consequent.push(parseStatement());\n\t\t}\n\t }\n\t if (cur) finishNode(cur, \"SwitchCase\");\n\t next();\n\t labels.pop();\n\t return finishNode(node, \"SwitchStatement\");\n\n\tcase _throw:\n\t next();\n\t if (newline.test(input.slice(lastEnd, tokStart)))\n\t\traise(lastEnd, \"Illegal newline after throw\");\n\t node.argument = parseExpression();\n\t semicolon();\n\t return finishNode(node, \"ThrowStatement\");\n\n\tcase _try:\n\t next();\n\t node.block = parseBlock();\n\t node.handler = null;\n\t if (tokType === _catch) {\n\t\tvar clause = startNode();\n\t\tnext();\n\t\texpect(_parenL);\n\t\tclause.param = parseIdent();\n\t\tif (strict && isStrictBadIdWord(clause.param.name))\n\t\t raise(clause.param.start, \"Binding \" + clause.param.name + \" in strict mode\");\n\t\texpect(_parenR);\n\t\tclause.guard = null;\n\t\tclause.body = parseBlock();\n\t\tnode.handler = finishNode(clause, \"CatchClause\");\n\t }\n\t node.guardedHandlers = empty;\n\t node.finalizer = eat(_finally) ? parseBlock() : null;\n\t if (!node.handler && !node.finalizer)\n\t\traise(node.start, \"Missing catch or finally clause\");\n\t return finishNode(node, \"TryStatement\");\n\n\tcase _var:\n\t next();\n\t parseVar(node);\n\t semicolon();\n\t return finishNode(node, \"VariableDeclaration\");\n\n\tcase _while:\n\t next();\n\t node.test = parseParenExpression();\n\t labels.push(loopLabel);\n\t node.body = parseStatement();\n\t labels.pop();\n\t return finishNode(node, \"WhileStatement\");\n\n\tcase _with:\n\t if (strict) raise(tokStart, \"'with' in strict mode\");\n\t next();\n\t node.object = parseParenExpression();\n\t node.body = parseStatement();\n\t return finishNode(node, \"WithStatement\");\n\n\tcase _braceL:\n\t return parseBlock();\n\n\tcase _semi:\n\t next();\n\t return finishNode(node, \"EmptyStatement\");\n\n\tdefault:\n\t var maybeName = tokVal, expr = parseExpression();\n\t if (starttype === _name && expr.type === \"Identifier\" && eat(_colon)) {\n\t\tfor (var i = 0; i < labels.length; ++i)\n\t\t if (labels[i].name === maybeName) raise(expr.start, \"Label '\" + maybeName + \"' is already declared\");\n\t\tvar kind = tokType.isLoop ? \"loop\" : tokType === _switch ? \"switch\" : null;\n\t\tlabels.push({name: maybeName, kind: kind});\n\t\tnode.body = parseStatement();\n\t\tlabels.pop();\n\t\tnode.label = expr;\n\t\treturn finishNode(node, \"LabeledStatement\");\n\t } else {\n\t\tnode.expression = expr;\n\t\tsemicolon();\n\t\treturn finishNode(node, \"ExpressionStatement\");\n\t }\n\t}\n }\n\n function parseParenExpression() {\n\texpect(_parenL);\n\tvar val = parseExpression();\n\texpect(_parenR);\n\treturn val;\n }\n\n function parseBlock(allowStrict) {\n\tvar node = startNode(), first = true, strict = false, oldStrict;\n\tnode.body = [];\n\texpect(_braceL);\n\twhile (!eat(_braceR)) {\n\t var stmt = parseStatement();\n\t node.body.push(stmt);\n\t if (first && allowStrict && isUseStrict(stmt)) {\n\t\toldStrict = strict;\n\t\tsetStrict(strict = true);\n\t }\n\t first = false;\n\t}\n\tif (strict && !oldStrict) setStrict(false);\n\treturn finishNode(node, \"BlockStatement\");\n }\n\n function parseFor(node, init) {\n\tnode.init = init;\n\texpect(_semi);\n\tnode.test = tokType === _semi ? null : parseExpression();\n\texpect(_semi);\n\tnode.update = tokType === _parenR ? null : parseExpression();\n\texpect(_parenR);\n\tnode.body = parseStatement();\n\tlabels.pop();\n\treturn finishNode(node, \"ForStatement\");\n }\n\n function parseForIn(node, init) {\n\tnode.left = init;\n\tnode.right = parseExpression();\n\texpect(_parenR);\n\tnode.body = parseStatement();\n\tlabels.pop();\n\treturn finishNode(node, \"ForInStatement\");\n }\n\n function parseVar(node, noIn) {\n\tnode.declarations = [];\n\tnode.kind = \"var\";\n\tfor (;;) {\n\t var decl = startNode();\n\t decl.id = parseIdent();\n\t if (strict && isStrictBadIdWord(decl.id.name))\n\t\traise(decl.id.start, \"Binding \" + decl.id.name + \" in strict mode\");\n\t decl.init = eat(_eq) ? parseExpression(true, noIn) : null;\n\t node.declarations.push(finishNode(decl, \"VariableDeclarator\"));\n\t if (!eat(_comma)) break;\n\t}\n\treturn node;\n }\n\n function parseExpression(noComma, noIn) {\n\tvar expr = parseMaybeAssign(noIn);\n\tif (!noComma && tokType === _comma) {\n\t var node = startNodeFrom(expr);\n\t node.expressions = [expr];\n\t while (eat(_comma)) node.expressions.push(parseMaybeAssign(noIn));\n\t return finishNode(node, \"SequenceExpression\");\n\t}\n\treturn expr;\n }\n\n function parseMaybeAssign(noIn) {\n\tvar left = parseMaybeConditional(noIn);\n\tif (tokType.isAssign) {\n\t var node = startNodeFrom(left);\n\t node.operator = tokVal;\n\t node.left = left;\n\t next();\n\t node.right = parseMaybeAssign(noIn);\n\t checkLVal(left);\n\t return finishNode(node, \"AssignmentExpression\");\n\t}\n\treturn left;\n }\n\n function parseMaybeConditional(noIn) {\n\tvar expr = parseExprOps(noIn);\n\tif (eat(_question)) {\n\t var node = startNodeFrom(expr);\n\t node.test = expr;\n\t node.consequent = parseExpression(true);\n\t expect(_colon);\n\t node.alternate = parseExpression(true, noIn);\n\t return finishNode(node, \"ConditionalExpression\");\n\t}\n\treturn expr;\n }\n\n function parseExprOps(noIn) {\n\treturn parseExprOp(parseMaybeUnary(), -1, noIn);\n }\n\n function parseExprOp(left, minPrec, noIn) {\n\tvar prec = tokType.binop;\n\tif (prec != null && (!noIn || tokType !== _in)) {\n\t if (prec > minPrec) {\n\t\tvar node = startNodeFrom(left);\n\t\tnode.left = left;\n\t\tnode.operator = tokVal;\n\t\tvar op = tokType;\n\t\tnext();\n\t\tnode.right = parseExprOp(parseMaybeUnary(), prec, noIn);\n\t\tvar exprNode = finishNode(node, (op === _logicalOR || op === _logicalAND) ? \"LogicalExpression\" : \"BinaryExpression\");\n\t\treturn parseExprOp(exprNode, minPrec, noIn);\n\t }\n\t}\n\treturn left;\n }\n\n function parseMaybeUnary() {\n\tif (tokType.prefix) {\n\t var node = startNode(), update = tokType.isUpdate;\n\t node.operator = tokVal;\n\t node.prefix = true;\n\t tokRegexpAllowed = true;\n\t next();\n\t node.argument = parseMaybeUnary();\n\t if (update) checkLVal(node.argument);\n\t else if (strict && node.operator === \"delete\" &&\n\t\t\t node.argument.type === \"Identifier\")\n\t\traise(node.start, \"Deleting local variable in strict mode\");\n\t return finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\");\n\t}\n\tvar expr = parseExprSubscripts();\n\twhile (tokType.postfix && !canInsertSemicolon()) {\n\t var node = startNodeFrom(expr);\n\t node.operator = tokVal;\n\t node.prefix = false;\n\t node.argument = expr;\n\t checkLVal(expr);\n\t next();\n\t expr = finishNode(node, \"UpdateExpression\");\n\t}\n\treturn expr;\n }\n\n function parseExprSubscripts() {\n\treturn parseSubscripts(parseExprAtom());\n }\n\n function parseSubscripts(base, noCalls) {\n\tif (eat(_dot)) {\n\t var node = startNodeFrom(base);\n\t node.object = base;\n\t node.property = parseIdent(true);\n\t node.computed = false;\n\t return parseSubscripts(finishNode(node, \"MemberExpression\"), noCalls);\n\t} else if (eat(_bracketL)) {\n\t var node = startNodeFrom(base);\n\t node.object = base;\n\t node.property = parseExpression();\n\t node.computed = true;\n\t expect(_bracketR);\n\t return parseSubscripts(finishNode(node, \"MemberExpression\"), noCalls);\n\t} else if (!noCalls && eat(_parenL)) {\n\t var node = startNodeFrom(base);\n\t node.callee = base;\n\t node.arguments = parseExprList(_parenR, false);\n\t return parseSubscripts(finishNode(node, \"CallExpression\"), noCalls);\n\t} else return base;\n }\n\n function parseExprAtom() {\n\tswitch (tokType) {\n\tcase _this:\n\t var node = startNode();\n\t next();\n\t return finishNode(node, \"ThisExpression\");\n\tcase _name:\n\t return parseIdent();\n\tcase _num: case _string: case _regexp:\n\t var node = startNode();\n\t node.value = tokVal;\n\t node.raw = input.slice(tokStart, tokEnd);\n\t next();\n\t return finishNode(node, \"Literal\");\n\n\tcase _null: case _true: case _false:\n\t var node = startNode();\n\t node.value = tokType.atomValue;\n\t node.raw = tokType.keyword;\n\t next();\n\t return finishNode(node, \"Literal\");\n\n\tcase _parenL:\n\t var tokStartLoc1 = tokStartLoc, tokStart1 = tokStart;\n\t next();\n\t var val = parseExpression();\n\t val.start = tokStart1;\n\t val.end = tokEnd;\n\t if (options.locations) {\n\t\tval.loc.start = tokStartLoc1;\n\t\tval.loc.end = tokEndLoc;\n\t }\n\t if (options.ranges)\n\t\tval.range = [tokStart1, tokEnd];\n\t expect(_parenR);\n\t return val;\n\n\tcase _bracketL:\n\t var node = startNode();\n\t next();\n\t node.elements = parseExprList(_bracketR, true, true);\n\t return finishNode(node, \"ArrayExpression\");\n\n\tcase _braceL:\n\t return parseObj();\n\n\tcase _function:\n\t var node = startNode();\n\t next();\n\t return parseFunction(node, false);\n\n\tcase _new:\n\t return parseNew();\n\n\tdefault:\n\t unexpected();\n\t}\n }\n\n function parseNew() {\n\tvar node = startNode();\n\tnext();\n\tnode.callee = parseSubscripts(parseExprAtom(), true);\n\tif (eat(_parenL)) node.arguments = parseExprList(_parenR, false);\n\telse node.arguments = empty;\n\treturn finishNode(node, \"NewExpression\");\n }\n\n function parseObj() {\n\tvar node = startNode(), first = true, sawGetSet = false;\n\tnode.properties = [];\n\tnext();\n\twhile (!eat(_braceR)) {\n\t if (!first) {\n\t\texpect(_comma);\n\t\tif (options.allowTrailingCommas && eat(_braceR)) break;\n\t } else first = false;\n\n\t var prop = {key: parsePropertyName()}, isGetSet = false, kind;\n\t if (eat(_colon)) {\n\t\tprop.value = parseExpression(true);\n\t\tkind = prop.kind = \"init\";\n\t } else if (options.ecmaVersion >= 5 && prop.key.type === \"Identifier\" &&\n\t\t\t\t (prop.key.name === \"get\" || prop.key.name === \"set\")) {\n\t\tisGetSet = sawGetSet = true;\n\t\tkind = prop.kind = prop.key.name;\n\t\tprop.key = parsePropertyName();\n\t\tif (tokType !== _parenL) unexpected();\n\t\tprop.value = parseFunction(startNode(), false);\n\t } else unexpected();\n\n\t if (prop.key.type === \"Identifier\" && (strict || sawGetSet)) {\n\t\tfor (var i = 0; i < node.properties.length; ++i) {\n\t\t var other = node.properties[i];\n\t\t if (other.key.name === prop.key.name) {\n\t\t\tvar conflict = kind == other.kind || isGetSet && other.kind === \"init\" ||\n\t\t\t kind === \"init\" && (other.kind === \"get\" || other.kind === \"set\");\n\t\t\tif (conflict && !strict && kind === \"init\" && other.kind === \"init\") conflict = false;\n\t\t\tif (conflict) raise(prop.key.start, \"Redefinition of property\");\n\t\t }\n\t\t}\n\t }\n\t node.properties.push(prop);\n\t}\n\treturn finishNode(node, \"ObjectExpression\");\n }\n\n function parsePropertyName() {\n\tif (tokType === _num || tokType === _string) return parseExprAtom();\n\treturn parseIdent(true);\n }\n\n function parseFunction(node, isStatement) {\n\tif (tokType === _name) node.id = parseIdent();\n\telse if (isStatement) unexpected();\n\telse node.id = null;\n\tnode.params = [];\n\tvar first = true;\n\texpect(_parenL);\n\twhile (!eat(_parenR)) {\n\t if (!first) expect(_comma); else first = false;\n\t node.params.push(parseIdent());\n\t}\n\n\tvar oldInFunc = inFunction, oldLabels = labels;\n\tinFunction = true; labels = [];\n\tnode.body = parseBlock(true);\n\tinFunction = oldInFunc; labels = oldLabels;\n\n\tif (strict || node.body.body.length && isUseStrict(node.body.body[0])) {\n\t for (var i = node.id ? -1 : 0; i < node.params.length; ++i) {\n\t\tvar id = i < 0 ? node.id : node.params[i];\n\t\tif (isStrictReservedWord(id.name) || isStrictBadIdWord(id.name))\n\t\t raise(id.start, \"Defining '\" + id.name + \"' in strict mode\");\n\t\tif (i >= 0) for (var j = 0; j < i; ++j) if (id.name === node.params[j].name)\n\t\t raise(id.start, \"Argument name clash in strict mode\");\n\t }\n\t}\n\n\treturn finishNode(node, isStatement ? \"FunctionDeclaration\" : \"FunctionExpression\");\n }\n\n function parseExprList(close, allowTrailingComma, allowEmpty) {\n\tvar elts = [], first = true;\n\twhile (!eat(close)) {\n\t if (!first) {\n\t\texpect(_comma);\n\t\tif (allowTrailingComma && options.allowTrailingCommas && eat(close)) break;\n\t } else first = false;\n\n\t if (allowEmpty && tokType === _comma) elts.push(null);\n\t else elts.push(parseExpression(true));\n\t}\n\treturn elts;\n }\n\n function parseIdent(liberal) {\n\tvar node = startNode();\n\tif (liberal && options.forbidReserved == \"everywhere\") liberal = false;\n\tif (tokType === _name) {\n\t if (!liberal &&\n\t\t (options.forbidReserved &&\n\t\t (options.ecmaVersion === 3 ? isReservedWord3 : isReservedWord5)(tokVal) ||\n\t\t strict && isStrictReservedWord(tokVal)) &&\n\t\t input.slice(tokStart, tokEnd).indexOf(\"\\\\\") == -1)\n\t\traise(tokStart, \"The keyword '\" + tokVal + \"' is reserved\");\n\t node.name = tokVal;\n\t} else if (liberal && tokType.keyword) {\n\t node.name = tokType.keyword;\n\t} else {\n\t unexpected();\n\t}\n\ttokRegexpAllowed = false;\n\tnext();\n\treturn finishNode(node, \"Identifier\");\n }\n\n});\n\n\t\tif (!acorn.version)\n\t\t\tacorn = null;\n\t}\n\n\tfunction parse(code, options) {\n\t\treturn (global.acorn || acorn).parse(code, options);\n\t}\n\n\tvar binaryOperators = {\n\t\t'+': '__add',\n\t\t'-': '__subtract',\n\t\t'*': '__multiply',\n\t\t'/': '__divide',\n\t\t'%': '__modulo',\n\t\t'==': '__equals',\n\t\t'!=': '__equals'\n\t};\n\n\tvar unaryOperators = {\n\t\t'-': '__negate',\n\t\t'+': '__self'\n\t};\n\n\tvar fields = Base.each(\n\t\t['add', 'subtract', 'multiply', 'divide', 'modulo', 'equals', 'negate'],\n\t\tfunction(name) {\n\t\t\tthis['__' + name] = '#' + name;\n\t\t},\n\t\t{\n\t\t\t__self: function() {\n\t\t\t\treturn this;\n\t\t\t}\n\t\t}\n\t);\n\tPoint.inject(fields);\n\tSize.inject(fields);\n\tColor.inject(fields);\n\n\tfunction __$__(left, operator, right) {\n\t\tvar handler = binaryOperators[operator];\n\t\tif (left && left[handler]) {\n\t\t\tvar res = left[handler](right);\n\t\t\treturn operator === '!=' ? !res : res;\n\t\t}\n\t\tswitch (operator) {\n\t\tcase '+': return left + right;\n\t\tcase '-': return left - right;\n\t\tcase '*': return left * right;\n\t\tcase '/': return left / right;\n\t\tcase '%': return left % right;\n\t\tcase '==': return left == right;\n\t\tcase '!=': return left != right;\n\t\t}\n\t}\n\n\tfunction $__(operator, value) {\n\t\tvar handler = unaryOperators[operator];\n\t\tif (value && value[handler])\n\t\t\treturn value[handler]();\n\t\tswitch (operator) {\n\t\tcase '+': return +value;\n\t\tcase '-': return -value;\n\t\t}\n\t}\n\n\tfunction compile(code, options) {\n\t\tif (!code)\n\t\t\treturn '';\n\t\toptions = options || {};\n\n\t\tvar insertions = [];\n\n\t\tfunction getOffset(offset) {\n\t\t\tfor (var i = 0, l = insertions.length; i < l; i++) {\n\t\t\t\tvar insertion = insertions[i];\n\t\t\t\tif (insertion[0] >= offset)\n\t\t\t\t\tbreak;\n\t\t\t\toffset += insertion[1];\n\t\t\t}\n\t\t\treturn offset;\n\t\t}\n\n\t\tfunction getCode(node) {\n\t\t\treturn code.substring(getOffset(node.range[0]),\n\t\t\t\t\tgetOffset(node.range[1]));\n\t\t}\n\n\t\tfunction getBetween(left, right) {\n\t\t\treturn code.substring(getOffset(left.range[1]),\n\t\t\t\t\tgetOffset(right.range[0]));\n\t\t}\n\n\t\tfunction replaceCode(node, str) {\n\t\t\tvar start = getOffset(node.range[0]),\n\t\t\t\tend = getOffset(node.range[1]),\n\t\t\t\tinsert = 0;\n\t\t\tfor (var i = insertions.length - 1; i >= 0; i--) {\n\t\t\t\tif (start > insertions[i][0]) {\n\t\t\t\t\tinsert = i + 1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tinsertions.splice(insert, 0, [start, str.length - end + start]);\n\t\t\tcode = code.substring(0, start) + str + code.substring(end);\n\t\t}\n\n\t\tfunction handleOverloading(node, parent) {\n\t\t\tswitch (node.type) {\n\t\t\tcase 'UnaryExpression':\n\t\t\t\tif (node.operator in unaryOperators\n\t\t\t\t\t\t&& node.argument.type !== 'Literal') {\n\t\t\t\t\tvar arg = getCode(node.argument);\n\t\t\t\t\treplaceCode(node, '$__(\"' + node.operator + '\", '\n\t\t\t\t\t\t\t+ arg + ')');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'BinaryExpression':\n\t\t\t\tif (node.operator in binaryOperators\n\t\t\t\t\t\t&& node.left.type !== 'Literal') {\n\t\t\t\t\tvar left = getCode(node.left),\n\t\t\t\t\t\tright = getCode(node.right),\n\t\t\t\t\t\tbetween = getBetween(node.left, node.right),\n\t\t\t\t\t\toperator = node.operator;\n\t\t\t\t\treplaceCode(node, '__$__(' + left + ','\n\t\t\t\t\t\t\t+ between.replace(new RegExp('\\\\' + operator),\n\t\t\t\t\t\t\t\t'\"' + operator + '\"')\n\t\t\t\t\t\t\t+ ', ' + right + ')');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'UpdateExpression':\n\t\t\tcase 'AssignmentExpression':\n\t\t\t\tvar parentType = parent && parent.type;\n\t\t\t\tif (!(\n\t\t\t\t\t\tparentType === 'ForStatement'\n\t\t\t\t\t\t|| parentType === 'BinaryExpression'\n\t\t\t\t\t\t\t&& /^[=!<>]/.test(parent.operator)\n\t\t\t\t\t\t|| parentType === 'MemberExpression' && parent.computed\n\t\t\t\t)) {\n\t\t\t\t\tif (node.type === 'UpdateExpression') {\n\t\t\t\t\t\tvar arg = getCode(node.argument),\n\t\t\t\t\t\t\texp = '__$__(' + arg + ', \"' + node.operator[0]\n\t\t\t\t\t\t\t\t\t+ '\", 1)',\n\t\t\t\t\t\t\tstr = arg + ' = ' + exp;\n\t\t\t\t\t\tif (node.prefix) {\n\t\t\t\t\t\t\tstr = '(' + str + ')';\n\t\t\t\t\t\t} else if (\n\t\t\t\t\t\t\tparentType === 'AssignmentExpression' ||\n\t\t\t\t\t\t\tparentType === 'VariableDeclarator' ||\n\t\t\t\t\t\t\tparentType === 'BinaryExpression'\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tif (getCode(parent.left || parent.id) === arg)\n\t\t\t\t\t\t\t\tstr = exp;\n\t\t\t\t\t\t\tstr = arg + '; ' + str;\n\t\t\t\t\t\t}\n\t\t\t\t\t\treplaceCode(node, str);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (/^.=$/.test(node.operator)\n\t\t\t\t\t\t\t\t&& node.left.type !== 'Literal') {\n\t\t\t\t\t\t\tvar left = getCode(node.left),\n\t\t\t\t\t\t\t\tright = getCode(node.right),\n\t\t\t\t\t\t\t\texp = left + ' = __$__(' + left + ', \"'\n\t\t\t\t\t\t\t\t\t+ node.operator[0] + '\", ' + right + ')';\n\t\t\t\t\t\t\treplaceCode(node, /^\\(.*\\)$/.test(getCode(node))\n\t\t\t\t\t\t\t\t\t? '(' + exp + ')' : exp);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfunction handleExports(node) {\n\t\t\tswitch (node.type) {\n\t\t\tcase 'ExportDefaultDeclaration':\n\t\t\t\treplaceCode({\n\t\t\t\t\trange: [node.start, node.declaration.start]\n\t\t\t\t}, 'module.exports = ');\n\t\t\t\tbreak;\n\t\t\tcase 'ExportNamedDeclaration':\n\t\t\t\tvar declaration = node.declaration;\n\t\t\t\tvar specifiers = node.specifiers;\n\t\t\t\tif (declaration) {\n\t\t\t\t\tvar declarations = declaration.declarations;\n\t\t\t\t\tif (declarations) {\n\t\t\t\t\t\tdeclarations.forEach(function(dec) {\n\t\t\t\t\t\t\treplaceCode(dec, 'module.exports.' + getCode(dec));\n\t\t\t\t\t\t});\n\t\t\t\t\t\treplaceCode({\n\t\t\t\t\t\t\trange: [\n\t\t\t\t\t\t\t\tnode.start,\n\t\t\t\t\t\t\t\tdeclaration.start + declaration.kind.length\n\t\t\t\t\t\t\t]\n\t\t\t\t\t\t}, '');\n\t\t\t\t\t}\n\t\t\t\t} else if (specifiers) {\n\t\t\t\t\tvar exports = specifiers.map(function(specifier) {\n\t\t\t\t\t\tvar name = getCode(specifier);\n\t\t\t\t\t\treturn 'module.exports.' + name + ' = ' + name + '; ';\n\t\t\t\t\t}).join('');\n\t\t\t\t\tif (exports) {\n\t\t\t\t\t\treplaceCode(node, exports);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tfunction walkAST(node, parent, paperFeatures) {\n\t\t\tif (node) {\n\t\t\t\tfor (var key in node) {\n\t\t\t\t\tif (key !== 'range' && key !== 'loc') {\n\t\t\t\t\t\tvar value = node[key];\n\t\t\t\t\t\tif (Array.isArray(value)) {\n\t\t\t\t\t\t\tfor (var i = 0, l = value.length; i < l; i++) {\n\t\t\t\t\t\t\t\twalkAST(value[i], node, paperFeatures);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (value && typeof value === 'object') {\n\t\t\t\t\t\t\twalkAST(value, node, paperFeatures);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (paperFeatures.operatorOverloading !== false) {\n\t\t\t\t\thandleOverloading(node, parent);\n\t\t\t\t}\n\t\t\t\tif (paperFeatures.moduleExports !== false) {\n\t\t\t\t\thandleExports(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfunction encodeVLQ(value) {\n\t\t\tvar res = '',\n\t\t\t\tbase64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\t\t\tvalue = (Math.abs(value) << 1) + (value < 0 ? 1 : 0);\n\t\t\twhile (value || !res) {\n\t\t\t\tvar next = value & (32 - 1);\n\t\t\t\tvalue >>= 5;\n\t\t\t\tif (value)\n\t\t\t\t\tnext |= 32;\n\t\t\t\tres += base64[next];\n\t\t\t}\n\t\t\treturn res;\n\t\t}\n\n\t\tvar url = options.url || '',\n\t\t\tsourceMaps = options.sourceMaps,\n\t\t\tpaperFeatures = options.paperFeatures || {},\n\t\t\tsource = options.source || code,\n\t\t\toffset = options.offset || 0,\n\t\t\tagent = paper.agent,\n\t\t\tversion = agent.versionNumber,\n\t\t\toffsetCode = false,\n\t\t\tlineBreaks = /\\r\\n|\\n|\\r/mg,\n\t\t\tmap;\n\t\tif (sourceMaps && (agent.chrome && version >= 30\n\t\t\t\t|| agent.webkit && version >= 537.76\n\t\t\t\t|| agent.firefox && version >= 23\n\t\t\t\t|| agent.node)) {\n\t\t\tif (agent.node) {\n\t\t\t\toffset -= 2;\n\t\t\t} else if (window && url && !window.location.href.indexOf(url)) {\n\t\t\t\tvar html = document.getElementsByTagName('html')[0].innerHTML;\n\t\t\t\toffset = html.substr(0, html.indexOf(code) + 1).match(\n\t\t\t\t\t\tlineBreaks).length + 1;\n\t\t\t}\n\t\t\toffsetCode = offset > 0 && !(\n\t\t\t\t\tagent.chrome && version >= 36 ||\n\t\t\t\t\tagent.safari && version >= 600 ||\n\t\t\t\t\tagent.firefox && version >= 40 ||\n\t\t\t\t\tagent.node);\n\t\t\tvar mappings = ['AA' + encodeVLQ(offsetCode ? 0 : offset) + 'A'];\n\t\t\tmappings.length = (code.match(lineBreaks) || []).length + 1\n\t\t\t\t\t+ (offsetCode ? offset : 0);\n\t\t\tmap = {\n\t\t\t\tversion: 3,\n\t\t\t\tfile: url,\n\t\t\t\tnames:[],\n\t\t\t\tmappings: mappings.join(';AACA'),\n\t\t\t\tsourceRoot: '',\n\t\t\t\tsources: [url],\n\t\t\t\tsourcesContent: [source]\n\t\t\t};\n\t\t}\n\t\tif (\n\t\t\tpaperFeatures.operatorOverloading !== false ||\n\t\t\tpaperFeatures.moduleExports !== false\n\t\t) {\n\t\t\twalkAST(parse(code, {\n\t\t\t\tranges: true,\n\t\t\t\tpreserveParens: true,\n\t\t\t\tsourceType: 'module'\n\t\t\t}), null, paperFeatures);\n\t\t}\n\t\tif (map) {\n\t\t\tif (offsetCode) {\n\t\t\t\tcode = new Array(offset + 1).join('\\n') + code;\n\t\t\t}\n\t\t\tif (/^(inline|both)$/.test(sourceMaps)) {\n\t\t\t\tcode += \"\\n//# sourceMappingURL=data:application/json;base64,\"\n\t\t\t\t\t\t+ self.btoa(unescape(encodeURIComponent(\n\t\t\t\t\t\t\tJSON.stringify(map))));\n\t\t\t}\n\t\t\tcode += \"\\n//# sourceURL=\" + (url || 'paperscript');\n\t\t}\n\t\treturn {\n\t\t\turl: url,\n\t\t\tsource: source,\n\t\t\tcode: code,\n\t\t\tmap: map\n\t\t};\n\t}\n\n\tfunction execute(code, scope, options) {\n\t\tpaper = scope;\n\t\tvar view = scope.getView(),\n\t\t\ttool = /\\btool\\.\\w+|\\s+on(?:Key|Mouse)(?:Up|Down|Move|Drag)\\b/\n\t\t\t\t\t.test(code) && !/\\bnew\\s+Tool\\b/.test(code)\n\t\t\t\t\t\t? new Tool() : null,\n\t\t\ttoolHandlers = tool ? tool._events : [],\n\t\t\thandlers = ['onFrame', 'onResize'].concat(toolHandlers),\n\t\t\tparams = [],\n\t\t\targs = [],\n\t\t\tfunc,\n\t\t\tcompiled = typeof code === 'object' ? code : compile(code, options);\n\t\tcode = compiled.code;\n\t\tfunction expose(scope, hidden) {\n\t\t\tfor (var key in scope) {\n\t\t\t\tif ((hidden || !/^_/.test(key)) && new RegExp('([\\\\b\\\\s\\\\W]|^)'\n\t\t\t\t\t\t+ key.replace(/\\$/g, '\\\\$') + '\\\\b').test(code)) {\n\t\t\t\t\tparams.push(key);\n\t\t\t\t\targs.push(scope[key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\texpose({ __$__: __$__, $__: $__, paper: scope, tool: tool },\n\t\t\t\ttrue);\n\t\texpose(scope);\n\t\tcode = 'var module = { exports: {} }; ' + code;\n\t\tvar exports = Base.each(handlers, function(key) {\n\t\t\tif (new RegExp('\\\\s+' + key + '\\\\b').test(code)) {\n\t\t\t\tparams.push(key);\n\t\t\t\tthis.push('module.exports.' + key + ' = ' + key + ';');\n\t\t\t}\n\t\t}, []).join('\\n');\n\t\tif (exports) {\n\t\t\tcode += '\\n' + exports;\n\t\t}\n\t\tcode += '\\nreturn module.exports;';\n\t\tvar agent = paper.agent;\n\t\tif (document && (agent.chrome\n\t\t\t\t|| agent.firefox && agent.versionNumber < 40)) {\n\t\t\tvar script = document.createElement('script'),\n\t\t\t\thead = document.head || document.getElementsByTagName('head')[0];\n\t\t\tif (agent.firefox)\n\t\t\t\tcode = '\\n' + code;\n\t\t\tscript.appendChild(document.createTextNode(\n\t\t\t\t'document.__paperscript__ = function(' + params + ') {' +\n\t\t\t\t\tcode +\n\t\t\t\t'\\n}'\n\t\t\t));\n\t\t\thead.appendChild(script);\n\t\t\tfunc = document.__paperscript__;\n\t\t\tdelete document.__paperscript__;\n\t\t\thead.removeChild(script);\n\t\t} else {\n\t\t\tfunc = Function(params, code);\n\t\t}\n\t\tvar exports = func && func.apply(scope, args);\n\t\tvar obj = exports || {};\n\t\tBase.each(toolHandlers, function(key) {\n\t\t\tvar value = obj[key];\n\t\t\tif (value)\n\t\t\t\ttool[key] = value;\n\t\t});\n\t\tif (view) {\n\t\t\tif (obj.onResize)\n\t\t\t\tview.setOnResize(obj.onResize);\n\t\t\tview.emit('resize', {\n\t\t\t\tsize: view.size,\n\t\t\t\tdelta: new Point()\n\t\t\t});\n\t\t\tif (obj.onFrame)\n\t\t\t\tview.setOnFrame(obj.onFrame);\n\t\t\tview.requestUpdate();\n\t\t}\n\t\treturn exports;\n\t}\n\n\tfunction loadScript(script) {\n\t\tif (/^text\\/(?:x-|)paperscript$/.test(script.type)\n\t\t\t\t&& PaperScope.getAttribute(script, 'ignore') !== 'true') {\n\t\t\tvar canvasId = PaperScope.getAttribute(script, 'canvas'),\n\t\t\t\tcanvas = document.getElementById(canvasId),\n\t\t\t\tsrc = script.src || script.getAttribute('data-src'),\n\t\t\t\tasync = PaperScope.hasAttribute(script, 'async'),\n\t\t\t\tscopeAttribute = 'data-paper-scope';\n\t\t\tif (!canvas)\n\t\t\t\tthrow new Error('Unable to find canvas with id \"'\n\t\t\t\t\t\t+ canvasId + '\"');\n\t\t\tvar scope = PaperScope.get(canvas.getAttribute(scopeAttribute))\n\t\t\t\t\t\t|| new PaperScope().setup(canvas);\n\t\t\tcanvas.setAttribute(scopeAttribute, scope._id);\n\t\t\tif (src) {\n\t\t\t\tHttp.request({\n\t\t\t\t\turl: src,\n\t\t\t\t\tasync: async,\n\t\t\t\t\tmimeType: 'text/plain',\n\t\t\t\t\tonLoad: function(code) {\n\t\t\t\t\t\texecute(code, scope, src);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\texecute(script.innerHTML, scope, script.baseURI);\n\t\t\t}\n\t\t\tscript.setAttribute('data-paper-ignore', 'true');\n\t\t\treturn scope;\n\t\t}\n\t}\n\n\tfunction loadAll() {\n\t\tBase.each(document && document.getElementsByTagName('script'),\n\t\t\t\tloadScript);\n\t}\n\n\tfunction load(script) {\n\t\treturn script ? loadScript(script) : loadAll();\n\t}\n\n\tif (window) {\n\t\tif (document.readyState === 'complete') {\n\t\t\tsetTimeout(loadAll);\n\t\t} else {\n\t\t\tDomEvent.add(window, { load: loadAll });\n\t\t}\n\t}\n\n\treturn {\n\t\tcompile: compile,\n\t\texecute: execute,\n\t\tload: load,\n\t\tparse: parse,\n\t\tcalculateBinary: __$__,\n\t\tcalculateUnary: $__\n\t};\n\n}.call(this);\n\nvar paper = new (PaperScope.inject(Base.exports, {\n\tBase: Base,\n\tNumerical: Numerical,\n\tKey: Key,\n\tDomEvent: DomEvent,\n\tDomElement: DomElement,\n\tdocument: document,\n\twindow: window,\n\tSymbol: SymbolDefinition,\n\tPlacedSymbol: SymbolItem\n}))();\n\nif (paper.agent.node) {\n\trequire('./node/extend.js')(paper);\n}\n\nif (typeof define === 'function' && define.amd) {\n\tdefine('paper', paper);\n} else if (typeof module === 'object' && module) {\n\tmodule.exports = paper;\n}\n\nreturn paper;\n}.call(this, typeof self === 'object' ? self : null);\n","\"use strict\";","// This file was generated. Do not modify manually!\nvar astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 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, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 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, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 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, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];\n\n// This file was generated. Do not modify manually!\nvar astralIdentifierStartCodes = [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, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 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, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 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, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 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, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 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, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 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, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];\n\n// This file was generated. Do not modify manually!\nvar nonASCIIidentifierChars = \"\\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\\u0898-\\u089f\\u08ca-\\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\\u0b55-\\u0b57\\u0b62\\u0b63\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c00-\\u0c04\\u0c3c\\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\\u0cf3\\u0d00-\\u0d03\\u0d3b\\u0d3c\\u0d3e-\\u0d44\\u0d46-\\u0d48\\u0d4a-\\u0d4d\\u0d57\\u0d62\\u0d63\\u0d66-\\u0d6f\\u0d81-\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0de6-\\u0def\\u0df2\\u0df3\\u0e31\\u0e34-\\u0e3a\\u0e47-\\u0e4e\\u0e50-\\u0e59\\u0eb1\\u0eb4-\\u0ebc\\u0ec8-\\u0ece\\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-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17b4-\\u17d3\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u180f-\\u1819\\u18a9\\u1920-\\u192b\\u1930-\\u193b\\u1946-\\u194f\\u19d0-\\u19da\\u1a17-\\u1a1b\\u1a55-\\u1a5e\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1ab0-\\u1abd\\u1abf-\\u1ace\\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-\\u1dff\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2cef-\\u2cf1\\u2d7f\\u2de0-\\u2dff\\u302a-\\u302f\\u3099\\u309a\\u30fb\\ua620-\\ua629\\ua66f\\ua674-\\ua67d\\ua69e\\ua69f\\ua6f0\\ua6f1\\ua802\\ua806\\ua80b\\ua823-\\ua827\\ua82c\\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\\uff65\";\n\n// This file was generated. Do not modify manually!\nvar nonASCIIidentifierStartChars = \"\\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\\u0870-\\u0887\\u0889-\\u088e\\u08a0-\\u08c9\\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\\u0c5d\\u0c60\\u0c61\\u0c80\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cdd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d04-\\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-\\u1711\\u171f-\\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-\\u1b4c\\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-\\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-\\u31bf\\u31f0-\\u31ff\\u3400-\\u4dbf\\u4e00-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua69d\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua7ca\\ua7d0\\ua7d1\\ua7d3\\ua7d5-\\ua7d9\\ua7f2-\\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-\\uab69\\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\";\n\n// These are a run-length and offset encoded representation of the\n// >0xffff code points that are a valid part of identifiers. The\n// offset starts at 0x10000, and each pair of numbers represents an\n// offset to the next range, and then a size of the range.\n\n// Reserved word lists for various dialects of the language\n\nvar reservedWords = {\n 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\",\n 5: \"class enum extends super const export import\",\n 6: \"enum\",\n strict: \"implements interface let package private protected public static yield\",\n strictBind: \"eval arguments\"\n};\n\n// And the keywords\n\nvar ecma5AndLessKeywords = \"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\";\n\nvar keywords$1 = {\n 5: ecma5AndLessKeywords,\n \"5module\": ecma5AndLessKeywords + \" export import\",\n 6: ecma5AndLessKeywords + \" const class extends export import super\"\n};\n\nvar keywordRelationalOperator = /^in(stanceof)?$/;\n\n// ## Character categories\n\nvar nonASCIIidentifierStart = new RegExp(\"[\" + nonASCIIidentifierStartChars + \"]\");\nvar nonASCIIidentifier = new RegExp(\"[\" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + \"]\");\n\n// This has a complexity linear to the value of the code. The\n// assumption is that looking up astral identifier characters is\n// rare.\nfunction isInAstralSet(code, set) {\n var pos = 0x10000;\n for (var i = 0; i < set.length; i += 2) {\n pos += set[i];\n if (pos > code) { return false }\n pos += set[i + 1];\n if (pos >= code) { return true }\n }\n return false\n}\n\n// Test whether a given character code starts an identifier.\n\nfunction isIdentifierStart(code, astral) {\n if (code < 65) { return code === 36 }\n if (code < 91) { return true }\n if (code < 97) { return code === 95 }\n if (code < 123) { return true }\n if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code)) }\n if (astral === false) { return false }\n return isInAstralSet(code, astralIdentifierStartCodes)\n}\n\n// Test whether a given character is part of an identifier.\n\nfunction isIdentifierChar(code, astral) {\n if (code < 48) { return code === 36 }\n if (code < 58) { return true }\n if (code < 65) { return false }\n if (code < 91) { return true }\n if (code < 97) { return code === 95 }\n if (code < 123) { return true }\n if (code <= 0xffff) { return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code)) }\n if (astral === false) { return false }\n return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes)\n}\n\n// ## Token types\n\n// The assignment of fine-grained, information-carrying type objects\n// allows the tokenizer to store the information it has about a\n// token in a way that is very cheap for the parser to look up.\n\n// All token type variables start with an underscore, to make them\n// easy to recognize.\n\n// The `beforeExpr` property is used to disambiguate between regular\n// expressions and divisions. It is set on all token types that can\n// be followed by an expression (thus, a slash after them would be a\n// regular expression).\n//\n// The `startsExpr` property is used to check if the token ends a\n// `yield` expression. It is set on all token types that either can\n// directly start an expression (like a quotation mark) or can\n// continue an expression (like the body of a string).\n//\n// `isLoop` marks a keyword as starting a loop, which is important\n// to know when parsing a label, in order to allow or disallow\n// continue jumps to that label.\n\nvar TokenType = function TokenType(label, conf) {\n if ( conf === void 0 ) conf = {};\n\n this.label = label;\n this.keyword = conf.keyword;\n this.beforeExpr = !!conf.beforeExpr;\n this.startsExpr = !!conf.startsExpr;\n this.isLoop = !!conf.isLoop;\n this.isAssign = !!conf.isAssign;\n this.prefix = !!conf.prefix;\n this.postfix = !!conf.postfix;\n this.binop = conf.binop || null;\n this.updateContext = null;\n};\n\nfunction binop(name, prec) {\n return new TokenType(name, {beforeExpr: true, binop: prec})\n}\nvar beforeExpr = {beforeExpr: true}, startsExpr = {startsExpr: true};\n\n// Map keyword names to token types.\n\nvar keywords = {};\n\n// Succinct definitions of keyword token types\nfunction kw(name, options) {\n if ( options === void 0 ) options = {};\n\n options.keyword = name;\n return keywords[name] = new TokenType(name, options)\n}\n\nvar types$1 = {\n num: new TokenType(\"num\", startsExpr),\n regexp: new TokenType(\"regexp\", startsExpr),\n string: new TokenType(\"string\", startsExpr),\n name: new TokenType(\"name\", startsExpr),\n privateId: new TokenType(\"privateId\", startsExpr),\n eof: new TokenType(\"eof\"),\n\n // Punctuation token types.\n bracketL: new TokenType(\"[\", {beforeExpr: true, startsExpr: true}),\n bracketR: new TokenType(\"]\"),\n braceL: new TokenType(\"{\", {beforeExpr: true, startsExpr: true}),\n braceR: new TokenType(\"}\"),\n parenL: new TokenType(\"(\", {beforeExpr: true, startsExpr: true}),\n parenR: new TokenType(\")\"),\n comma: new TokenType(\",\", beforeExpr),\n semi: new TokenType(\";\", beforeExpr),\n colon: new TokenType(\":\", beforeExpr),\n dot: new TokenType(\".\"),\n question: new TokenType(\"?\", beforeExpr),\n questionDot: new TokenType(\"?.\"),\n arrow: new TokenType(\"=>\", beforeExpr),\n template: new TokenType(\"template\"),\n invalidTemplate: new TokenType(\"invalidTemplate\"),\n ellipsis: new TokenType(\"...\", beforeExpr),\n backQuote: new TokenType(\"`\", startsExpr),\n dollarBraceL: new TokenType(\"${\", {beforeExpr: true, startsExpr: true}),\n\n // Operators. These carry several kinds of properties to help the\n // parser use them properly (the presence of these properties is\n // what categorizes them as operators).\n //\n // `binop`, when present, specifies that this operator is a binary\n // operator, and will refer to its precedence.\n //\n // `prefix` and `postfix` mark the operator as a prefix or postfix\n // unary operator.\n //\n // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as\n // binary operators with a very low precedence, that should result\n // in AssignmentExpression nodes.\n\n eq: new TokenType(\"=\", {beforeExpr: true, isAssign: true}),\n assign: new TokenType(\"_=\", {beforeExpr: true, isAssign: true}),\n incDec: new TokenType(\"++/--\", {prefix: true, postfix: true, startsExpr: true}),\n prefix: new TokenType(\"!/~\", {beforeExpr: true, prefix: true, startsExpr: true}),\n logicalOR: binop(\"||\", 1),\n logicalAND: binop(\"&&\", 2),\n bitwiseOR: binop(\"|\", 3),\n bitwiseXOR: binop(\"^\", 4),\n bitwiseAND: binop(\"&\", 5),\n equality: binop(\"==/!=/===/!==\", 6),\n relational: binop(\"/<=/>=\", 7),\n bitShift: binop(\"<>/>>>\", 8),\n plusMin: new TokenType(\"+/-\", {beforeExpr: true, binop: 9, prefix: true, startsExpr: true}),\n modulo: binop(\"%\", 10),\n star: binop(\"*\", 10),\n slash: binop(\"/\", 10),\n starstar: new TokenType(\"**\", {beforeExpr: true}),\n coalesce: binop(\"??\", 1),\n\n // Keyword token types.\n _break: kw(\"break\"),\n _case: kw(\"case\", beforeExpr),\n _catch: kw(\"catch\"),\n _continue: kw(\"continue\"),\n _debugger: kw(\"debugger\"),\n _default: kw(\"default\", beforeExpr),\n _do: kw(\"do\", {isLoop: true, beforeExpr: true}),\n _else: kw(\"else\", beforeExpr),\n _finally: kw(\"finally\"),\n _for: kw(\"for\", {isLoop: true}),\n _function: kw(\"function\", startsExpr),\n _if: kw(\"if\"),\n _return: kw(\"return\", beforeExpr),\n _switch: kw(\"switch\"),\n _throw: kw(\"throw\", beforeExpr),\n _try: kw(\"try\"),\n _var: kw(\"var\"),\n _const: kw(\"const\"),\n _while: kw(\"while\", {isLoop: true}),\n _with: kw(\"with\"),\n _new: kw(\"new\", {beforeExpr: true, startsExpr: true}),\n _this: kw(\"this\", startsExpr),\n _super: kw(\"super\", startsExpr),\n _class: kw(\"class\", startsExpr),\n _extends: kw(\"extends\", beforeExpr),\n _export: kw(\"export\"),\n _import: kw(\"import\", startsExpr),\n _null: kw(\"null\", startsExpr),\n _true: kw(\"true\", startsExpr),\n _false: kw(\"false\", startsExpr),\n _in: kw(\"in\", {beforeExpr: true, binop: 7}),\n _instanceof: kw(\"instanceof\", {beforeExpr: true, binop: 7}),\n _typeof: kw(\"typeof\", {beforeExpr: true, prefix: true, startsExpr: true}),\n _void: kw(\"void\", {beforeExpr: true, prefix: true, startsExpr: true}),\n _delete: kw(\"delete\", {beforeExpr: true, prefix: true, startsExpr: true})\n};\n\n// Matches a whole line break (where CRLF is considered a single\n// line break). Used to count lines.\n\nvar lineBreak = /\\r\\n?|\\n|\\u2028|\\u2029/;\nvar lineBreakG = new RegExp(lineBreak.source, \"g\");\n\nfunction isNewLine(code) {\n return code === 10 || code === 13 || code === 0x2028 || code === 0x2029\n}\n\nfunction nextLineBreak(code, from, end) {\n if ( end === void 0 ) end = code.length;\n\n for (var i = from; i < end; i++) {\n var next = code.charCodeAt(i);\n if (isNewLine(next))\n { return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1 }\n }\n return -1\n}\n\nvar nonASCIIwhitespace = /[\\u1680\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/;\n\nvar skipWhiteSpace = /(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;\n\nvar ref = Object.prototype;\nvar hasOwnProperty = ref.hasOwnProperty;\nvar toString = ref.toString;\n\nvar hasOwn = Object.hasOwn || (function (obj, propName) { return (\n hasOwnProperty.call(obj, propName)\n); });\n\nvar isArray = Array.isArray || (function (obj) { return (\n toString.call(obj) === \"[object Array]\"\n); });\n\nvar regexpCache = Object.create(null);\n\nfunction wordsRegexp(words) {\n return regexpCache[words] || (regexpCache[words] = new RegExp(\"^(?:\" + words.replace(/ /g, \"|\") + \")$\"))\n}\n\nfunction codePointToString(code) {\n // UTF-16 Decoding\n if (code <= 0xFFFF) { return String.fromCharCode(code) }\n code -= 0x10000;\n return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00)\n}\n\nvar loneSurrogate = /(?:[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])/;\n\n// These are used when `options.locations` is on, for the\n// `startLoc` and `endLoc` properties.\n\nvar Position = function Position(line, col) {\n this.line = line;\n this.column = col;\n};\n\nPosition.prototype.offset = function offset (n) {\n return new Position(this.line, this.column + n)\n};\n\nvar SourceLocation = function SourceLocation(p, start, end) {\n this.start = start;\n this.end = end;\n if (p.sourceFile !== null) { this.source = p.sourceFile; }\n};\n\n// The `getLineInfo` function is mostly useful when the\n// `locations` option is off (for performance reasons) and you\n// want to find the line/column position for a given character\n// offset. `input` should be the code string that the offset refers\n// into.\n\nfunction getLineInfo(input, offset) {\n for (var line = 1, cur = 0;;) {\n var nextBreak = nextLineBreak(input, cur, offset);\n if (nextBreak < 0) { return new Position(line, offset - cur) }\n ++line;\n cur = nextBreak;\n }\n}\n\n// A second argument must be given to configure the parser process.\n// These options are recognized (only `ecmaVersion` is required):\n\nvar defaultOptions = {\n // `ecmaVersion` indicates the ECMAScript version to parse. Must be\n // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10\n // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `\"latest\"`\n // (the latest version the library supports). This influences\n // support for strict mode, the set of reserved words, and support\n // for new syntax features.\n ecmaVersion: null,\n // `sourceType` indicates the mode the code should be parsed in.\n // Can be either `\"script\"` or `\"module\"`. This influences global\n // strict mode and parsing of `import` and `export` declarations.\n sourceType: \"script\",\n // `onInsertedSemicolon` can be a callback that will be called when\n // a semicolon is automatically inserted. It will be passed the\n // position of the inserted semicolon as an offset, and if\n // `locations` is enabled, it is given the location as a `{line,\n // column}` object as second argument.\n onInsertedSemicolon: null,\n // `onTrailingComma` is similar to `onInsertedSemicolon`, but for\n // trailing commas.\n onTrailingComma: null,\n // By default, reserved words are only enforced if ecmaVersion >= 5.\n // Set `allowReserved` to a boolean value to explicitly turn this on\n // an off. When this option has the value \"never\", reserved words\n // and keywords can also not be used as property names.\n allowReserved: null,\n // When enabled, a return at the top level is not considered an\n // error.\n allowReturnOutsideFunction: false,\n // When enabled, import/export statements are not constrained to\n // appearing at the top of the program, and an import.meta expression\n // in a script isn't considered an error.\n allowImportExportEverywhere: false,\n // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022.\n // When enabled, await identifiers are allowed to appear at the top-level scope,\n // but they are still not allowed in non-async functions.\n allowAwaitOutsideFunction: null,\n // When enabled, super identifiers are not constrained to\n // appearing in methods and do not raise an error when they appear elsewhere.\n allowSuperOutsideMethod: null,\n // When enabled, hashbang directive in the beginning of file is\n // allowed and treated as a line comment. Enabled by default when\n // `ecmaVersion` >= 2023.\n allowHashBang: false,\n // By default, the parser will verify that private properties are\n // only used in places where they are valid and have been declared.\n // Set this to false to turn such checks off.\n checkPrivateFields: true,\n // When `locations` is on, `loc` properties holding objects with\n // `start` and `end` properties in `{line, column}` form (with\n // line being 1-based and column 0-based) will be attached to the\n // nodes.\n locations: false,\n // A function can be passed as `onToken` option, which will\n // cause Acorn to call that function with object in the same\n // format as tokens returned from `tokenizer().getToken()`. Note\n // that you are not allowed to call the parser from the\n // callback—that will corrupt its internal state.\n onToken: null,\n // A function can be passed as `onComment` option, which will\n // cause Acorn to call that function with `(block, text, start,\n // end)` parameters whenever a comment is skipped. `block` is a\n // boolean indicating whether this is a block (`/* */`) comment,\n // `text` is the content of the comment, and `start` and `end` are\n // character offsets that denote the start and end of the comment.\n // When the `locations` option is on, two more parameters are\n // passed, the full `{line, column}` locations of the start and\n // end of the comments. Note that you are not allowed to call the\n // parser from the callback—that will corrupt its internal state.\n // When this option has an array as value, objects representing the\n // comments are pushed to it.\n onComment: null,\n // Nodes have their start and end characters offsets recorded in\n // `start` and `end` properties (directly on the node, rather than\n // the `loc` object, which holds line/column data. To also add a\n // [semi-standardized][range] `range` property holding a `[start,\n // end]` array with the same numbers, set the `ranges` option to\n // `true`.\n //\n // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678\n ranges: false,\n // It is possible to parse multiple files into a single AST by\n // passing the tree produced by parsing the first file as\n // `program` option in subsequent parses. This will add the\n // toplevel forms of the parsed file to the `Program` (top) node\n // of an existing parse tree.\n program: null,\n // When `locations` is on, you can pass this to record the source\n // file in every node's `loc` object.\n sourceFile: null,\n // This value, if given, is stored in every node, whether\n // `locations` is on or off.\n directSourceFile: null,\n // When enabled, parenthesized expressions are represented by\n // (non-standard) ParenthesizedExpression nodes\n preserveParens: false\n};\n\n// Interpret and default an options object\n\nvar warnedAboutEcmaVersion = false;\n\nfunction getOptions(opts) {\n var options = {};\n\n for (var opt in defaultOptions)\n { options[opt] = opts && hasOwn(opts, opt) ? opts[opt] : defaultOptions[opt]; }\n\n if (options.ecmaVersion === \"latest\") {\n options.ecmaVersion = 1e8;\n } else if (options.ecmaVersion == null) {\n if (!warnedAboutEcmaVersion && typeof console === \"object\" && console.warn) {\n warnedAboutEcmaVersion = true;\n console.warn(\"Since Acorn 8.0.0, options.ecmaVersion is required.\\nDefaulting to 2020, but this will stop working in the future.\");\n }\n options.ecmaVersion = 11;\n } else if (options.ecmaVersion >= 2015) {\n options.ecmaVersion -= 2009;\n }\n\n if (options.allowReserved == null)\n { options.allowReserved = options.ecmaVersion < 5; }\n\n if (!opts || opts.allowHashBang == null)\n { options.allowHashBang = options.ecmaVersion >= 14; }\n\n if (isArray(options.onToken)) {\n var tokens = options.onToken;\n options.onToken = function (token) { return tokens.push(token); };\n }\n if (isArray(options.onComment))\n { options.onComment = pushComment(options, options.onComment); }\n\n return options\n}\n\nfunction pushComment(options, array) {\n return function(block, text, start, end, startLoc, endLoc) {\n var comment = {\n type: block ? \"Block\" : \"Line\",\n value: text,\n start: start,\n end: end\n };\n if (options.locations)\n { comment.loc = new SourceLocation(this, startLoc, endLoc); }\n if (options.ranges)\n { comment.range = [start, end]; }\n array.push(comment);\n }\n}\n\n// Each scope gets a bitset that may contain these flags\nvar\n SCOPE_TOP = 1,\n SCOPE_FUNCTION = 2,\n SCOPE_ASYNC = 4,\n SCOPE_GENERATOR = 8,\n SCOPE_ARROW = 16,\n SCOPE_SIMPLE_CATCH = 32,\n SCOPE_SUPER = 64,\n SCOPE_DIRECT_SUPER = 128,\n SCOPE_CLASS_STATIC_BLOCK = 256,\n SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;\n\nfunction functionFlags(async, generator) {\n return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0)\n}\n\n// Used in checkLVal* and declareName to determine the type of a binding\nvar\n BIND_NONE = 0, // Not a binding\n BIND_VAR = 1, // Var-style binding\n BIND_LEXICAL = 2, // Let- or const-style binding\n BIND_FUNCTION = 3, // Function declaration\n BIND_SIMPLE_CATCH = 4, // Simple (identifier pattern) catch binding\n BIND_OUTSIDE = 5; // Special case for function names as bound inside the function\n\nvar Parser = function Parser(options, input, startPos) {\n this.options = options = getOptions(options);\n this.sourceFile = options.sourceFile;\n this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === \"module\" ? \"5module\" : 5]);\n var reserved = \"\";\n if (options.allowReserved !== true) {\n reserved = reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3];\n if (options.sourceType === \"module\") { reserved += \" await\"; }\n }\n this.reservedWords = wordsRegexp(reserved);\n var reservedStrict = (reserved ? reserved + \" \" : \"\") + reservedWords.strict;\n this.reservedWordsStrict = wordsRegexp(reservedStrict);\n this.reservedWordsStrictBind = wordsRegexp(reservedStrict + \" \" + reservedWords.strictBind);\n this.input = String(input);\n\n // Used to signal to callers of `readWord1` whether the word\n // contained any escape sequences. This is needed because words with\n // escape sequences must not be interpreted as keywords.\n this.containsEsc = false;\n\n // Set up token state\n\n // The current position of the tokenizer in the input.\n if (startPos) {\n this.pos = startPos;\n this.lineStart = this.input.lastIndexOf(\"\\n\", startPos - 1) + 1;\n this.curLine = this.input.slice(0, this.lineStart).split(lineBreak).length;\n } else {\n this.pos = this.lineStart = 0;\n this.curLine = 1;\n }\n\n // Properties of the current token:\n // Its type\n this.type = types$1.eof;\n // For tokens that include more information than their type, the value\n this.value = null;\n // Its start and end offset\n this.start = this.end = this.pos;\n // And, if locations are used, the {line, column} object\n // corresponding to those offsets\n this.startLoc = this.endLoc = this.curPosition();\n\n // Position information for the previous token\n this.lastTokEndLoc = this.lastTokStartLoc = null;\n this.lastTokStart = this.lastTokEnd = this.pos;\n\n // The context stack is used to superficially track syntactic\n // context to predict whether a regular expression is allowed in a\n // given position.\n this.context = this.initialContext();\n this.exprAllowed = true;\n\n // Figure out if it's a module code.\n this.inModule = options.sourceType === \"module\";\n this.strict = this.inModule || this.strictDirective(this.pos);\n\n // Used to signify the start of a potential arrow function\n this.potentialArrowAt = -1;\n this.potentialArrowInForAwait = false;\n\n // Positions to delayed-check that yield/await does not exist in default parameters.\n this.yieldPos = this.awaitPos = this.awaitIdentPos = 0;\n // Labels in scope.\n this.labels = [];\n // Thus-far undefined exports.\n this.undefinedExports = Object.create(null);\n\n // If enabled, skip leading hashbang line.\n if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === \"#!\")\n { this.skipLineComment(2); }\n\n // Scope tracking for duplicate variable names (see scope.js)\n this.scopeStack = [];\n this.enterScope(SCOPE_TOP);\n\n // For RegExp validation\n this.regexpState = null;\n\n // The stack of private names.\n // Each element has two properties: 'declared' and 'used'.\n // When it exited from the outermost class definition, all used private names must be declared.\n this.privateNameStack = [];\n};\n\nvar prototypeAccessors = { inFunction: { configurable: true },inGenerator: { configurable: true },inAsync: { configurable: true },canAwait: { configurable: true },allowSuper: { configurable: true },allowDirectSuper: { configurable: true },treatFunctionsAsVar: { configurable: true },allowNewDotTarget: { configurable: true },inClassStaticBlock: { configurable: true } };\n\nParser.prototype.parse = function parse () {\n var node = this.options.program || this.startNode();\n this.nextToken();\n return this.parseTopLevel(node)\n};\n\nprototypeAccessors.inFunction.get = function () { return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0 };\n\nprototypeAccessors.inGenerator.get = function () { return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit };\n\nprototypeAccessors.inAsync.get = function () { return (this.currentVarScope().flags & SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit };\n\nprototypeAccessors.canAwait.get = function () {\n for (var i = this.scopeStack.length - 1; i >= 0; i--) {\n var scope = this.scopeStack[i];\n if (scope.inClassFieldInit || scope.flags & SCOPE_CLASS_STATIC_BLOCK) { return false }\n if (scope.flags & SCOPE_FUNCTION) { return (scope.flags & SCOPE_ASYNC) > 0 }\n }\n return (this.inModule && this.options.ecmaVersion >= 13) || this.options.allowAwaitOutsideFunction\n};\n\nprototypeAccessors.allowSuper.get = function () {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod\n};\n\nprototypeAccessors.allowDirectSuper.get = function () { return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0 };\n\nprototypeAccessors.treatFunctionsAsVar.get = function () { return this.treatFunctionsAsVarInScope(this.currentScope()) };\n\nprototypeAccessors.allowNewDotTarget.get = function () {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & (SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK)) > 0 || inClassFieldInit\n};\n\nprototypeAccessors.inClassStaticBlock.get = function () {\n return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0\n};\n\nParser.extend = function extend () {\n var plugins = [], len = arguments.length;\n while ( len-- ) plugins[ len ] = arguments[ len ];\n\n var cls = this;\n for (var i = 0; i < plugins.length; i++) { cls = plugins[i](cls); }\n return cls\n};\n\nParser.parse = function parse (input, options) {\n return new this(options, input).parse()\n};\n\nParser.parseExpressionAt = function parseExpressionAt (input, pos, options) {\n var parser = new this(options, input, pos);\n parser.nextToken();\n return parser.parseExpression()\n};\n\nParser.tokenizer = function tokenizer (input, options) {\n return new this(options, input)\n};\n\nObject.defineProperties( Parser.prototype, prototypeAccessors );\n\nvar pp$9 = Parser.prototype;\n\n// ## Parser utilities\n\nvar literal = /^(?:'((?:\\\\[^]|[^'\\\\])*?)'|\"((?:\\\\[^]|[^\"\\\\])*?)\")/;\npp$9.strictDirective = function(start) {\n if (this.options.ecmaVersion < 5) { return false }\n for (;;) {\n // Try to find string literal.\n skipWhiteSpace.lastIndex = start;\n start += skipWhiteSpace.exec(this.input)[0].length;\n var match = literal.exec(this.input.slice(start));\n if (!match) { return false }\n if ((match[1] || match[2]) === \"use strict\") {\n skipWhiteSpace.lastIndex = start + match[0].length;\n var spaceAfter = skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;\n var next = this.input.charAt(end);\n return next === \";\" || next === \"}\" ||\n (lineBreak.test(spaceAfter[0]) &&\n !(/[(`.[+\\-/*%<>=,?^&]/.test(next) || next === \"!\" && this.input.charAt(end + 1) === \"=\"))\n }\n start += match[0].length;\n\n // Skip semicolon, if any.\n skipWhiteSpace.lastIndex = start;\n start += skipWhiteSpace.exec(this.input)[0].length;\n if (this.input[start] === \";\")\n { start++; }\n }\n};\n\n// Predicate that tests whether the next token is of the given\n// type, and if yes, consumes it as a side effect.\n\npp$9.eat = function(type) {\n if (this.type === type) {\n this.next();\n return true\n } else {\n return false\n }\n};\n\n// Tests whether parsed token is a contextual keyword.\n\npp$9.isContextual = function(name) {\n return this.type === types$1.name && this.value === name && !this.containsEsc\n};\n\n// Consumes contextual keyword if possible.\n\npp$9.eatContextual = function(name) {\n if (!this.isContextual(name)) { return false }\n this.next();\n return true\n};\n\n// Asserts that following token is given contextual keyword.\n\npp$9.expectContextual = function(name) {\n if (!this.eatContextual(name)) { this.unexpected(); }\n};\n\n// Test whether a semicolon can be inserted at the current position.\n\npp$9.canInsertSemicolon = function() {\n return this.type === types$1.eof ||\n this.type === types$1.braceR ||\n lineBreak.test(this.input.slice(this.lastTokEnd, this.start))\n};\n\npp$9.insertSemicolon = function() {\n if (this.canInsertSemicolon()) {\n if (this.options.onInsertedSemicolon)\n { this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc); }\n return true\n }\n};\n\n// Consume a semicolon, or, failing that, see if we are allowed to\n// pretend that there is a semicolon at this position.\n\npp$9.semicolon = function() {\n if (!this.eat(types$1.semi) && !this.insertSemicolon()) { this.unexpected(); }\n};\n\npp$9.afterTrailingComma = function(tokType, notNext) {\n if (this.type === tokType) {\n if (this.options.onTrailingComma)\n { this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc); }\n if (!notNext)\n { this.next(); }\n return true\n }\n};\n\n// Expect a token of a given type. If found, consume it, otherwise,\n// raise an unexpected token error.\n\npp$9.expect = function(type) {\n this.eat(type) || this.unexpected();\n};\n\n// Raise an unexpected token error.\n\npp$9.unexpected = function(pos) {\n this.raise(pos != null ? pos : this.start, \"Unexpected token\");\n};\n\nvar DestructuringErrors = function DestructuringErrors() {\n this.shorthandAssign =\n this.trailingComma =\n this.parenthesizedAssign =\n this.parenthesizedBind =\n this.doubleProto =\n -1;\n};\n\npp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {\n if (!refDestructuringErrors) { return }\n if (refDestructuringErrors.trailingComma > -1)\n { this.raiseRecoverable(refDestructuringErrors.trailingComma, \"Comma is not permitted after the rest element\"); }\n var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;\n if (parens > -1) { this.raiseRecoverable(parens, isAssign ? \"Assigning to rvalue\" : \"Parenthesized pattern\"); }\n};\n\npp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) {\n if (!refDestructuringErrors) { return false }\n var shorthandAssign = refDestructuringErrors.shorthandAssign;\n var doubleProto = refDestructuringErrors.doubleProto;\n if (!andThrow) { return shorthandAssign >= 0 || doubleProto >= 0 }\n if (shorthandAssign >= 0)\n { this.raise(shorthandAssign, \"Shorthand property assignments are valid only in destructuring patterns\"); }\n if (doubleProto >= 0)\n { this.raiseRecoverable(doubleProto, \"Redefinition of __proto__ property\"); }\n};\n\npp$9.checkYieldAwaitInDefaultParams = function() {\n if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos))\n { this.raise(this.yieldPos, \"Yield expression cannot be a default value\"); }\n if (this.awaitPos)\n { this.raise(this.awaitPos, \"Await expression cannot be a default value\"); }\n};\n\npp$9.isSimpleAssignTarget = function(expr) {\n if (expr.type === \"ParenthesizedExpression\")\n { return this.isSimpleAssignTarget(expr.expression) }\n return expr.type === \"Identifier\" || expr.type === \"MemberExpression\"\n};\n\nvar pp$8 = Parser.prototype;\n\n// ### Statement parsing\n\n// Parse a program. Initializes the parser, reads any number of\n// statements, and wraps them in a Program node. Optionally takes a\n// `program` argument. If present, the statements will be appended\n// to its body instead of creating a new node.\n\npp$8.parseTopLevel = function(node) {\n var exports = Object.create(null);\n if (!node.body) { node.body = []; }\n while (this.type !== types$1.eof) {\n var stmt = this.parseStatement(null, true, exports);\n node.body.push(stmt);\n }\n if (this.inModule)\n { for (var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1)\n {\n var name = list[i];\n\n this.raiseRecoverable(this.undefinedExports[name].start, (\"Export '\" + name + \"' is not defined\"));\n } }\n this.adaptDirectivePrologue(node.body);\n this.next();\n node.sourceType = this.options.sourceType;\n return this.finishNode(node, \"Program\")\n};\n\nvar loopLabel = {kind: \"loop\"}, switchLabel = {kind: \"switch\"};\n\npp$8.isLet = function(context) {\n if (this.options.ecmaVersion < 6 || !this.isContextual(\"let\")) { return false }\n skipWhiteSpace.lastIndex = this.pos;\n var skip = skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);\n // For ambiguous cases, determine if a LexicalDeclaration (or only a\n // Statement) is allowed here. If context is not empty then only a Statement\n // is allowed. However, `let [` is an explicit negative lookahead for\n // ExpressionStatement, so special-case it first.\n if (nextCh === 91 || nextCh === 92) { return true } // '[', '\\'\n if (context) { return false }\n\n if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true } // '{', astral\n if (isIdentifierStart(nextCh, true)) {\n var pos = next + 1;\n while (isIdentifierChar(nextCh = this.input.charCodeAt(pos), true)) { ++pos; }\n if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) { return true }\n var ident = this.input.slice(next, pos);\n if (!keywordRelationalOperator.test(ident)) { return true }\n }\n return false\n};\n\n// check 'async [no LineTerminator here] function'\n// - 'async /*foo*/ function' is OK.\n// - 'async /*\\n*/ function' is invalid.\npp$8.isAsyncFunction = function() {\n if (this.options.ecmaVersion < 8 || !this.isContextual(\"async\"))\n { return false }\n\n skipWhiteSpace.lastIndex = this.pos;\n var skip = skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, after;\n return !lineBreak.test(this.input.slice(this.pos, next)) &&\n this.input.slice(next, next + 8) === \"function\" &&\n (next + 8 === this.input.length ||\n !(isIdentifierChar(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00))\n};\n\n// Parse a single statement.\n//\n// If expecting a statement and finding a slash operator, parse a\n// regular expression literal. This is to handle cases like\n// `if (foo) /blah/.exec(foo)`, where looking at the previous token\n// does not help.\n\npp$8.parseStatement = function(context, topLevel, exports) {\n var starttype = this.type, node = this.startNode(), kind;\n\n if (this.isLet(context)) {\n starttype = types$1._var;\n kind = \"let\";\n }\n\n // Most types of statements are recognized by the keyword they\n // start with. Many are trivial to parse, some require a bit of\n // complexity.\n\n switch (starttype) {\n case types$1._break: case types$1._continue: return this.parseBreakContinueStatement(node, starttype.keyword)\n case types$1._debugger: return this.parseDebuggerStatement(node)\n case types$1._do: return this.parseDoStatement(node)\n case types$1._for: return this.parseForStatement(node)\n case types$1._function:\n // Function as sole body of either an if statement or a labeled statement\n // works, but not when it is part of a labeled statement that is the sole\n // body of an if statement.\n if ((context && (this.strict || context !== \"if\" && context !== \"label\")) && this.options.ecmaVersion >= 6) { this.unexpected(); }\n return this.parseFunctionStatement(node, false, !context)\n case types$1._class:\n if (context) { this.unexpected(); }\n return this.parseClass(node, true)\n case types$1._if: return this.parseIfStatement(node)\n case types$1._return: return this.parseReturnStatement(node)\n case types$1._switch: return this.parseSwitchStatement(node)\n case types$1._throw: return this.parseThrowStatement(node)\n case types$1._try: return this.parseTryStatement(node)\n case types$1._const: case types$1._var:\n kind = kind || this.value;\n if (context && kind !== \"var\") { this.unexpected(); }\n return this.parseVarStatement(node, kind)\n case types$1._while: return this.parseWhileStatement(node)\n case types$1._with: return this.parseWithStatement(node)\n case types$1.braceL: return this.parseBlock(true, node)\n case types$1.semi: return this.parseEmptyStatement(node)\n case types$1._export:\n case types$1._import:\n if (this.options.ecmaVersion > 10 && starttype === types$1._import) {\n skipWhiteSpace.lastIndex = this.pos;\n var skip = skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);\n if (nextCh === 40 || nextCh === 46) // '(' or '.'\n { return this.parseExpressionStatement(node, this.parseExpression()) }\n }\n\n if (!this.options.allowImportExportEverywhere) {\n if (!topLevel)\n { this.raise(this.start, \"'import' and 'export' may only appear at the top level\"); }\n if (!this.inModule)\n { this.raise(this.start, \"'import' and 'export' may appear only with 'sourceType: module'\"); }\n }\n return starttype === types$1._import ? this.parseImport(node) : this.parseExport(node, exports)\n\n // If the statement does not start with a statement keyword or a\n // brace, it's an ExpressionStatement or LabeledStatement. We\n // simply start parsing an expression, and afterwards, if the\n // next token is a colon and the expression was a simple\n // Identifier node, we switch to interpreting it as a label.\n default:\n if (this.isAsyncFunction()) {\n if (context) { this.unexpected(); }\n this.next();\n return this.parseFunctionStatement(node, true, !context)\n }\n\n var maybeName = this.value, expr = this.parseExpression();\n if (starttype === types$1.name && expr.type === \"Identifier\" && this.eat(types$1.colon))\n { return this.parseLabeledStatement(node, maybeName, expr, context) }\n else { return this.parseExpressionStatement(node, expr) }\n }\n};\n\npp$8.parseBreakContinueStatement = function(node, keyword) {\n var isBreak = keyword === \"break\";\n this.next();\n if (this.eat(types$1.semi) || this.insertSemicolon()) { node.label = null; }\n else if (this.type !== types$1.name) { this.unexpected(); }\n else {\n node.label = this.parseIdent();\n this.semicolon();\n }\n\n // Verify that there is an actual destination to break or\n // continue to.\n var i = 0;\n for (; i < this.labels.length; ++i) {\n var lab = this.labels[i];\n if (node.label == null || lab.name === node.label.name) {\n if (lab.kind != null && (isBreak || lab.kind === \"loop\")) { break }\n if (node.label && isBreak) { break }\n }\n }\n if (i === this.labels.length) { this.raise(node.start, \"Unsyntactic \" + keyword); }\n return this.finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\")\n};\n\npp$8.parseDebuggerStatement = function(node) {\n this.next();\n this.semicolon();\n return this.finishNode(node, \"DebuggerStatement\")\n};\n\npp$8.parseDoStatement = function(node) {\n this.next();\n this.labels.push(loopLabel);\n node.body = this.parseStatement(\"do\");\n this.labels.pop();\n this.expect(types$1._while);\n node.test = this.parseParenExpression();\n if (this.options.ecmaVersion >= 6)\n { this.eat(types$1.semi); }\n else\n { this.semicolon(); }\n return this.finishNode(node, \"DoWhileStatement\")\n};\n\n// Disambiguating between a `for` and a `for`/`in` or `for`/`of`\n// loop is non-trivial. Basically, we have to parse the init `var`\n// statement or expression, disallowing the `in` operator (see\n// the second parameter to `parseExpression`), and then check\n// whether the next token is `in` or `of`. When there is no init\n// part (semicolon immediately after the opening parenthesis), it\n// is a regular `for` loop.\n\npp$8.parseForStatement = function(node) {\n this.next();\n var awaitAt = (this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual(\"await\")) ? this.lastTokStart : -1;\n this.labels.push(loopLabel);\n this.enterScope(0);\n this.expect(types$1.parenL);\n if (this.type === types$1.semi) {\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n return this.parseFor(node, null)\n }\n var isLet = this.isLet();\n if (this.type === types$1._var || this.type === types$1._const || isLet) {\n var init$1 = this.startNode(), kind = isLet ? \"let\" : this.value;\n this.next();\n this.parseVar(init$1, true, kind);\n this.finishNode(init$1, \"VariableDeclaration\");\n if ((this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) && init$1.declarations.length === 1) {\n if (this.options.ecmaVersion >= 9) {\n if (this.type === types$1._in) {\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n } else { node.await = awaitAt > -1; }\n }\n return this.parseForIn(node, init$1)\n }\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n return this.parseFor(node, init$1)\n }\n var startsWithLet = this.isContextual(\"let\"), isForOf = false;\n var containsEsc = this.containsEsc;\n var refDestructuringErrors = new DestructuringErrors;\n var initPos = this.start;\n var init = awaitAt > -1\n ? this.parseExprSubscripts(refDestructuringErrors, \"await\")\n : this.parseExpression(true, refDestructuringErrors);\n if (this.type === types$1._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) {\n if (awaitAt > -1) { // implies `ecmaVersion >= 9` (see declaration of awaitAt)\n if (this.type === types$1._in) { this.unexpected(awaitAt); }\n node.await = true;\n } else if (isForOf && this.options.ecmaVersion >= 8) {\n if (init.start === initPos && !containsEsc && init.type === \"Identifier\" && init.name === \"async\") { this.unexpected(); }\n else if (this.options.ecmaVersion >= 9) { node.await = false; }\n }\n if (startsWithLet && isForOf) { this.raise(init.start, \"The left-hand side of a for-of loop may not start with 'let'.\"); }\n this.toAssignable(init, false, refDestructuringErrors);\n this.checkLValPattern(init);\n return this.parseForIn(node, init)\n } else {\n this.checkExpressionErrors(refDestructuringErrors, true);\n }\n if (awaitAt > -1) { this.unexpected(awaitAt); }\n return this.parseFor(node, init)\n};\n\npp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) {\n this.next();\n return this.parseFunction(node, FUNC_STATEMENT | (declarationPosition ? 0 : FUNC_HANGING_STATEMENT), false, isAsync)\n};\n\npp$8.parseIfStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n // allow function declarations in branches, but only in non-strict mode\n node.consequent = this.parseStatement(\"if\");\n node.alternate = this.eat(types$1._else) ? this.parseStatement(\"if\") : null;\n return this.finishNode(node, \"IfStatement\")\n};\n\npp$8.parseReturnStatement = function(node) {\n if (!this.inFunction && !this.options.allowReturnOutsideFunction)\n { this.raise(this.start, \"'return' outside of function\"); }\n this.next();\n\n // In `return` (and `break`/`continue`), the keywords with\n // optional arguments, we eagerly look for a semicolon or the\n // possibility to insert one.\n\n if (this.eat(types$1.semi) || this.insertSemicolon()) { node.argument = null; }\n else { node.argument = this.parseExpression(); this.semicolon(); }\n return this.finishNode(node, \"ReturnStatement\")\n};\n\npp$8.parseSwitchStatement = function(node) {\n this.next();\n node.discriminant = this.parseParenExpression();\n node.cases = [];\n this.expect(types$1.braceL);\n this.labels.push(switchLabel);\n this.enterScope(0);\n\n // Statements under must be grouped (by label) in SwitchCase\n // nodes. `cur` is used to keep the node that we are currently\n // adding statements to.\n\n var cur;\n for (var sawDefault = false; this.type !== types$1.braceR;) {\n if (this.type === types$1._case || this.type === types$1._default) {\n var isCase = this.type === types$1._case;\n if (cur) { this.finishNode(cur, \"SwitchCase\"); }\n node.cases.push(cur = this.startNode());\n cur.consequent = [];\n this.next();\n if (isCase) {\n cur.test = this.parseExpression();\n } else {\n if (sawDefault) { this.raiseRecoverable(this.lastTokStart, \"Multiple default clauses\"); }\n sawDefault = true;\n cur.test = null;\n }\n this.expect(types$1.colon);\n } else {\n if (!cur) { this.unexpected(); }\n cur.consequent.push(this.parseStatement(null));\n }\n }\n this.exitScope();\n if (cur) { this.finishNode(cur, \"SwitchCase\"); }\n this.next(); // Closing brace\n this.labels.pop();\n return this.finishNode(node, \"SwitchStatement\")\n};\n\npp$8.parseThrowStatement = function(node) {\n this.next();\n if (lineBreak.test(this.input.slice(this.lastTokEnd, this.start)))\n { this.raise(this.lastTokEnd, \"Illegal newline after throw\"); }\n node.argument = this.parseExpression();\n this.semicolon();\n return this.finishNode(node, \"ThrowStatement\")\n};\n\n// Reused empty array added for node fields that are always empty.\n\nvar empty$1 = [];\n\npp$8.parseCatchClauseParam = function() {\n var param = this.parseBindingAtom();\n var simple = param.type === \"Identifier\";\n this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);\n this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);\n this.expect(types$1.parenR);\n\n return param\n};\n\npp$8.parseTryStatement = function(node) {\n this.next();\n node.block = this.parseBlock();\n node.handler = null;\n if (this.type === types$1._catch) {\n var clause = this.startNode();\n this.next();\n if (this.eat(types$1.parenL)) {\n clause.param = this.parseCatchClauseParam();\n } else {\n if (this.options.ecmaVersion < 10) { this.unexpected(); }\n clause.param = null;\n this.enterScope(0);\n }\n clause.body = this.parseBlock(false);\n this.exitScope();\n node.handler = this.finishNode(clause, \"CatchClause\");\n }\n node.finalizer = this.eat(types$1._finally) ? this.parseBlock() : null;\n if (!node.handler && !node.finalizer)\n { this.raise(node.start, \"Missing catch or finally clause\"); }\n return this.finishNode(node, \"TryStatement\")\n};\n\npp$8.parseVarStatement = function(node, kind, allowMissingInitializer) {\n this.next();\n this.parseVar(node, false, kind, allowMissingInitializer);\n this.semicolon();\n return this.finishNode(node, \"VariableDeclaration\")\n};\n\npp$8.parseWhileStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n this.labels.push(loopLabel);\n node.body = this.parseStatement(\"while\");\n this.labels.pop();\n return this.finishNode(node, \"WhileStatement\")\n};\n\npp$8.parseWithStatement = function(node) {\n if (this.strict) { this.raise(this.start, \"'with' in strict mode\"); }\n this.next();\n node.object = this.parseParenExpression();\n node.body = this.parseStatement(\"with\");\n return this.finishNode(node, \"WithStatement\")\n};\n\npp$8.parseEmptyStatement = function(node) {\n this.next();\n return this.finishNode(node, \"EmptyStatement\")\n};\n\npp$8.parseLabeledStatement = function(node, maybeName, expr, context) {\n for (var i$1 = 0, list = this.labels; i$1 < list.length; i$1 += 1)\n {\n var label = list[i$1];\n\n if (label.name === maybeName)\n { this.raise(expr.start, \"Label '\" + maybeName + \"' is already declared\");\n } }\n var kind = this.type.isLoop ? \"loop\" : this.type === types$1._switch ? \"switch\" : null;\n for (var i = this.labels.length - 1; i >= 0; i--) {\n var label$1 = this.labels[i];\n if (label$1.statementStart === node.start) {\n // Update information about previous labels on this node\n label$1.statementStart = this.start;\n label$1.kind = kind;\n } else { break }\n }\n this.labels.push({name: maybeName, kind: kind, statementStart: this.start});\n node.body = this.parseStatement(context ? context.indexOf(\"label\") === -1 ? context + \"label\" : context : \"label\");\n this.labels.pop();\n node.label = expr;\n return this.finishNode(node, \"LabeledStatement\")\n};\n\npp$8.parseExpressionStatement = function(node, expr) {\n node.expression = expr;\n this.semicolon();\n return this.finishNode(node, \"ExpressionStatement\")\n};\n\n// Parse a semicolon-enclosed block of statements, handling `\"use\n// strict\"` declarations when `allowStrict` is true (used for\n// function bodies).\n\npp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) {\n if ( createNewLexicalScope === void 0 ) createNewLexicalScope = true;\n if ( node === void 0 ) node = this.startNode();\n\n node.body = [];\n this.expect(types$1.braceL);\n if (createNewLexicalScope) { this.enterScope(0); }\n while (this.type !== types$1.braceR) {\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n if (exitStrict) { this.strict = false; }\n this.next();\n if (createNewLexicalScope) { this.exitScope(); }\n return this.finishNode(node, \"BlockStatement\")\n};\n\n// Parse a regular `for` loop. The disambiguation code in\n// `parseStatement` will already have parsed the init statement or\n// expression.\n\npp$8.parseFor = function(node, init) {\n node.init = init;\n this.expect(types$1.semi);\n node.test = this.type === types$1.semi ? null : this.parseExpression();\n this.expect(types$1.semi);\n node.update = this.type === types$1.parenR ? null : this.parseExpression();\n this.expect(types$1.parenR);\n node.body = this.parseStatement(\"for\");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node, \"ForStatement\")\n};\n\n// Parse a `for`/`in` and `for`/`of` loop, which are almost\n// same from parser's perspective.\n\npp$8.parseForIn = function(node, init) {\n var isForIn = this.type === types$1._in;\n this.next();\n\n if (\n init.type === \"VariableDeclaration\" &&\n init.declarations[0].init != null &&\n (\n !isForIn ||\n this.options.ecmaVersion < 8 ||\n this.strict ||\n init.kind !== \"var\" ||\n init.declarations[0].id.type !== \"Identifier\"\n )\n ) {\n this.raise(\n init.start,\n ((isForIn ? \"for-in\" : \"for-of\") + \" loop variable declaration may not have an initializer\")\n );\n }\n node.left = init;\n node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign();\n this.expect(types$1.parenR);\n node.body = this.parseStatement(\"for\");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node, isForIn ? \"ForInStatement\" : \"ForOfStatement\")\n};\n\n// Parse a list of variable declarations.\n\npp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {\n node.declarations = [];\n node.kind = kind;\n for (;;) {\n var decl = this.startNode();\n this.parseVarId(decl, kind);\n if (this.eat(types$1.eq)) {\n decl.init = this.parseMaybeAssign(isFor);\n } else if (!allowMissingInitializer && kind === \"const\" && !(this.type === types$1._in || (this.options.ecmaVersion >= 6 && this.isContextual(\"of\")))) {\n this.unexpected();\n } else if (!allowMissingInitializer && decl.id.type !== \"Identifier\" && !(isFor && (this.type === types$1._in || this.isContextual(\"of\")))) {\n this.raise(this.lastTokEnd, \"Complex binding patterns require an initialization value\");\n } else {\n decl.init = null;\n }\n node.declarations.push(this.finishNode(decl, \"VariableDeclarator\"));\n if (!this.eat(types$1.comma)) { break }\n }\n return node\n};\n\npp$8.parseVarId = function(decl, kind) {\n decl.id = this.parseBindingAtom();\n this.checkLValPattern(decl.id, kind === \"var\" ? BIND_VAR : BIND_LEXICAL, false);\n};\n\nvar FUNC_STATEMENT = 1, FUNC_HANGING_STATEMENT = 2, FUNC_NULLABLE_ID = 4;\n\n// Parse a function declaration or literal (depending on the\n// `statement & FUNC_STATEMENT`).\n\n// Remove `allowExpressionBody` for 7.0.0, as it is only called with false\npp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) {\n this.initFunction(node);\n if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) {\n if (this.type === types$1.star && (statement & FUNC_HANGING_STATEMENT))\n { this.unexpected(); }\n node.generator = this.eat(types$1.star);\n }\n if (this.options.ecmaVersion >= 8)\n { node.async = !!isAsync; }\n\n if (statement & FUNC_STATEMENT) {\n node.id = (statement & FUNC_NULLABLE_ID) && this.type !== types$1.name ? null : this.parseIdent();\n if (node.id && !(statement & FUNC_HANGING_STATEMENT))\n // If it is a regular function declaration in sloppy mode, then it is\n // subject to Annex B semantics (BIND_FUNCTION). Otherwise, the binding\n // mode depends on properties of the current scope (see\n // treatFunctionsAsVar).\n { this.checkLValSimple(node.id, (this.strict || node.generator || node.async) ? this.treatFunctionsAsVar ? BIND_VAR : BIND_LEXICAL : BIND_FUNCTION); }\n }\n\n var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope(functionFlags(node.async, node.generator));\n\n if (!(statement & FUNC_STATEMENT))\n { node.id = this.type === types$1.name ? this.parseIdent() : null; }\n\n this.parseFunctionParams(node);\n this.parseFunctionBody(node, allowExpressionBody, false, forInit);\n\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, (statement & FUNC_STATEMENT) ? \"FunctionDeclaration\" : \"FunctionExpression\")\n};\n\npp$8.parseFunctionParams = function(node) {\n this.expect(types$1.parenL);\n node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n};\n\n// Parse a class declaration or literal (depending on the\n// `isStatement` parameter).\n\npp$8.parseClass = function(node, isStatement) {\n this.next();\n\n // ecma-262 14.6 Class Definitions\n // A class definition is always strict mode code.\n var oldStrict = this.strict;\n this.strict = true;\n\n this.parseClassId(node, isStatement);\n this.parseClassSuper(node);\n var privateNameMap = this.enterClassBody();\n var classBody = this.startNode();\n var hadConstructor = false;\n classBody.body = [];\n this.expect(types$1.braceL);\n while (this.type !== types$1.braceR) {\n var element = this.parseClassElement(node.superClass !== null);\n if (element) {\n classBody.body.push(element);\n if (element.type === \"MethodDefinition\" && element.kind === \"constructor\") {\n if (hadConstructor) { this.raiseRecoverable(element.start, \"Duplicate constructor in the same class\"); }\n hadConstructor = true;\n } else if (element.key && element.key.type === \"PrivateIdentifier\" && isPrivateNameConflicted(privateNameMap, element)) {\n this.raiseRecoverable(element.key.start, (\"Identifier '#\" + (element.key.name) + \"' has already been declared\"));\n }\n }\n }\n this.strict = oldStrict;\n this.next();\n node.body = this.finishNode(classBody, \"ClassBody\");\n this.exitClassBody();\n return this.finishNode(node, isStatement ? \"ClassDeclaration\" : \"ClassExpression\")\n};\n\npp$8.parseClassElement = function(constructorAllowsSuper) {\n if (this.eat(types$1.semi)) { return null }\n\n var ecmaVersion = this.options.ecmaVersion;\n var node = this.startNode();\n var keyName = \"\";\n var isGenerator = false;\n var isAsync = false;\n var kind = \"method\";\n var isStatic = false;\n\n if (this.eatContextual(\"static\")) {\n // Parse static init block\n if (ecmaVersion >= 13 && this.eat(types$1.braceL)) {\n this.parseClassStaticBlock(node);\n return node\n }\n if (this.isClassElementNameStart() || this.type === types$1.star) {\n isStatic = true;\n } else {\n keyName = \"static\";\n }\n }\n node.static = isStatic;\n if (!keyName && ecmaVersion >= 8 && this.eatContextual(\"async\")) {\n if ((this.isClassElementNameStart() || this.type === types$1.star) && !this.canInsertSemicolon()) {\n isAsync = true;\n } else {\n keyName = \"async\";\n }\n }\n if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat(types$1.star)) {\n isGenerator = true;\n }\n if (!keyName && !isAsync && !isGenerator) {\n var lastValue = this.value;\n if (this.eatContextual(\"get\") || this.eatContextual(\"set\")) {\n if (this.isClassElementNameStart()) {\n kind = lastValue;\n } else {\n keyName = lastValue;\n }\n }\n }\n\n // Parse element name\n if (keyName) {\n // 'async', 'get', 'set', or 'static' were not a keyword contextually.\n // The last token is any of those. Make it the element name.\n node.computed = false;\n node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc);\n node.key.name = keyName;\n this.finishNode(node.key, \"Identifier\");\n } else {\n this.parseClassElementName(node);\n }\n\n // Parse element value\n if (ecmaVersion < 13 || this.type === types$1.parenL || kind !== \"method\" || isGenerator || isAsync) {\n var isConstructor = !node.static && checkKeyName(node, \"constructor\");\n var allowsDirectSuper = isConstructor && constructorAllowsSuper;\n // Couldn't move this check into the 'parseClassMethod' method for backward compatibility.\n if (isConstructor && kind !== \"method\") { this.raise(node.key.start, \"Constructor can't have get/set modifier\"); }\n node.kind = isConstructor ? \"constructor\" : kind;\n this.parseClassMethod(node, isGenerator, isAsync, allowsDirectSuper);\n } else {\n this.parseClassField(node);\n }\n\n return node\n};\n\npp$8.isClassElementNameStart = function() {\n return (\n this.type === types$1.name ||\n this.type === types$1.privateId ||\n this.type === types$1.num ||\n this.type === types$1.string ||\n this.type === types$1.bracketL ||\n this.type.keyword\n )\n};\n\npp$8.parseClassElementName = function(element) {\n if (this.type === types$1.privateId) {\n if (this.value === \"constructor\") {\n this.raise(this.start, \"Classes can't have an element named '#constructor'\");\n }\n element.computed = false;\n element.key = this.parsePrivateIdent();\n } else {\n this.parsePropertyName(element);\n }\n};\n\npp$8.parseClassMethod = function(method, isGenerator, isAsync, allowsDirectSuper) {\n // Check key and flags\n var key = method.key;\n if (method.kind === \"constructor\") {\n if (isGenerator) { this.raise(key.start, \"Constructor can't be a generator\"); }\n if (isAsync) { this.raise(key.start, \"Constructor can't be an async method\"); }\n } else if (method.static && checkKeyName(method, \"prototype\")) {\n this.raise(key.start, \"Classes may not have a static property named prototype\");\n }\n\n // Parse value\n var value = method.value = this.parseMethod(isGenerator, isAsync, allowsDirectSuper);\n\n // Check value\n if (method.kind === \"get\" && value.params.length !== 0)\n { this.raiseRecoverable(value.start, \"getter should have no params\"); }\n if (method.kind === \"set\" && value.params.length !== 1)\n { this.raiseRecoverable(value.start, \"setter should have exactly one param\"); }\n if (method.kind === \"set\" && value.params[0].type === \"RestElement\")\n { this.raiseRecoverable(value.params[0].start, \"Setter cannot use rest params\"); }\n\n return this.finishNode(method, \"MethodDefinition\")\n};\n\npp$8.parseClassField = function(field) {\n if (checkKeyName(field, \"constructor\")) {\n this.raise(field.key.start, \"Classes can't have a field named 'constructor'\");\n } else if (field.static && checkKeyName(field, \"prototype\")) {\n this.raise(field.key.start, \"Classes can't have a static field named 'prototype'\");\n }\n\n if (this.eat(types$1.eq)) {\n // To raise SyntaxError if 'arguments' exists in the initializer.\n var scope = this.currentThisScope();\n var inClassFieldInit = scope.inClassFieldInit;\n scope.inClassFieldInit = true;\n field.value = this.parseMaybeAssign();\n scope.inClassFieldInit = inClassFieldInit;\n } else {\n field.value = null;\n }\n this.semicolon();\n\n return this.finishNode(field, \"PropertyDefinition\")\n};\n\npp$8.parseClassStaticBlock = function(node) {\n node.body = [];\n\n var oldLabels = this.labels;\n this.labels = [];\n this.enterScope(SCOPE_CLASS_STATIC_BLOCK | SCOPE_SUPER);\n while (this.type !== types$1.braceR) {\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n this.next();\n this.exitScope();\n this.labels = oldLabels;\n\n return this.finishNode(node, \"StaticBlock\")\n};\n\npp$8.parseClassId = function(node, isStatement) {\n if (this.type === types$1.name) {\n node.id = this.parseIdent();\n if (isStatement)\n { this.checkLValSimple(node.id, BIND_LEXICAL, false); }\n } else {\n if (isStatement === true)\n { this.unexpected(); }\n node.id = null;\n }\n};\n\npp$8.parseClassSuper = function(node) {\n node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(null, false) : null;\n};\n\npp$8.enterClassBody = function() {\n var element = {declared: Object.create(null), used: []};\n this.privateNameStack.push(element);\n return element.declared\n};\n\npp$8.exitClassBody = function() {\n var ref = this.privateNameStack.pop();\n var declared = ref.declared;\n var used = ref.used;\n if (!this.options.checkPrivateFields) { return }\n var len = this.privateNameStack.length;\n var parent = len === 0 ? null : this.privateNameStack[len - 1];\n for (var i = 0; i < used.length; ++i) {\n var id = used[i];\n if (!hasOwn(declared, id.name)) {\n if (parent) {\n parent.used.push(id);\n } else {\n this.raiseRecoverable(id.start, (\"Private field '#\" + (id.name) + \"' must be declared in an enclosing class\"));\n }\n }\n }\n};\n\nfunction isPrivateNameConflicted(privateNameMap, element) {\n var name = element.key.name;\n var curr = privateNameMap[name];\n\n var next = \"true\";\n if (element.type === \"MethodDefinition\" && (element.kind === \"get\" || element.kind === \"set\")) {\n next = (element.static ? \"s\" : \"i\") + element.kind;\n }\n\n // `class { get #a(){}; static set #a(_){} }` is also conflict.\n if (\n curr === \"iget\" && next === \"iset\" ||\n curr === \"iset\" && next === \"iget\" ||\n curr === \"sget\" && next === \"sset\" ||\n curr === \"sset\" && next === \"sget\"\n ) {\n privateNameMap[name] = \"true\";\n return false\n } else if (!curr) {\n privateNameMap[name] = next;\n return false\n } else {\n return true\n }\n}\n\nfunction checkKeyName(node, name) {\n var computed = node.computed;\n var key = node.key;\n return !computed && (\n key.type === \"Identifier\" && key.name === name ||\n key.type === \"Literal\" && key.value === name\n )\n}\n\n// Parses module export declaration.\n\npp$8.parseExportAllDeclaration = function(node, exports) {\n if (this.options.ecmaVersion >= 11) {\n if (this.eatContextual(\"as\")) {\n node.exported = this.parseModuleExportName();\n this.checkExport(exports, node.exported, this.lastTokStart);\n } else {\n node.exported = null;\n }\n }\n this.expectContextual(\"from\");\n if (this.type !== types$1.string) { this.unexpected(); }\n node.source = this.parseExprAtom();\n this.semicolon();\n return this.finishNode(node, \"ExportAllDeclaration\")\n};\n\npp$8.parseExport = function(node, exports) {\n this.next();\n // export * from '...'\n if (this.eat(types$1.star)) {\n return this.parseExportAllDeclaration(node, exports)\n }\n if (this.eat(types$1._default)) { // export default ...\n this.checkExport(exports, \"default\", this.lastTokStart);\n node.declaration = this.parseExportDefaultDeclaration();\n return this.finishNode(node, \"ExportDefaultDeclaration\")\n }\n // export var|const|let|function|class ...\n if (this.shouldParseExportStatement()) {\n node.declaration = this.parseExportDeclaration(node);\n if (node.declaration.type === \"VariableDeclaration\")\n { this.checkVariableExport(exports, node.declaration.declarations); }\n else\n { this.checkExport(exports, node.declaration.id, node.declaration.id.start); }\n node.specifiers = [];\n node.source = null;\n } else { // export { x, y as z } [from '...']\n node.declaration = null;\n node.specifiers = this.parseExportSpecifiers(exports);\n if (this.eatContextual(\"from\")) {\n if (this.type !== types$1.string) { this.unexpected(); }\n node.source = this.parseExprAtom();\n } else {\n for (var i = 0, list = node.specifiers; i < list.length; i += 1) {\n // check for keywords used as local names\n var spec = list[i];\n\n this.checkUnreserved(spec.local);\n // check if export is defined\n this.checkLocalExport(spec.local);\n\n if (spec.local.type === \"Literal\") {\n this.raise(spec.local.start, \"A string literal cannot be used as an exported binding without `from`.\");\n }\n }\n\n node.source = null;\n }\n this.semicolon();\n }\n return this.finishNode(node, \"ExportNamedDeclaration\")\n};\n\npp$8.parseExportDeclaration = function(node) {\n return this.parseStatement(null)\n};\n\npp$8.parseExportDefaultDeclaration = function() {\n var isAsync;\n if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {\n var fNode = this.startNode();\n this.next();\n if (isAsync) { this.next(); }\n return this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync)\n } else if (this.type === types$1._class) {\n var cNode = this.startNode();\n return this.parseClass(cNode, \"nullableID\")\n } else {\n var declaration = this.parseMaybeAssign();\n this.semicolon();\n return declaration\n }\n};\n\npp$8.checkExport = function(exports, name, pos) {\n if (!exports) { return }\n if (typeof name !== \"string\")\n { name = name.type === \"Identifier\" ? name.name : name.value; }\n if (hasOwn(exports, name))\n { this.raiseRecoverable(pos, \"Duplicate export '\" + name + \"'\"); }\n exports[name] = true;\n};\n\npp$8.checkPatternExport = function(exports, pat) {\n var type = pat.type;\n if (type === \"Identifier\")\n { this.checkExport(exports, pat, pat.start); }\n else if (type === \"ObjectPattern\")\n { for (var i = 0, list = pat.properties; i < list.length; i += 1)\n {\n var prop = list[i];\n\n this.checkPatternExport(exports, prop);\n } }\n else if (type === \"ArrayPattern\")\n { for (var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1) {\n var elt = list$1[i$1];\n\n if (elt) { this.checkPatternExport(exports, elt); }\n } }\n else if (type === \"Property\")\n { this.checkPatternExport(exports, pat.value); }\n else if (type === \"AssignmentPattern\")\n { this.checkPatternExport(exports, pat.left); }\n else if (type === \"RestElement\")\n { this.checkPatternExport(exports, pat.argument); }\n};\n\npp$8.checkVariableExport = function(exports, decls) {\n if (!exports) { return }\n for (var i = 0, list = decls; i < list.length; i += 1)\n {\n var decl = list[i];\n\n this.checkPatternExport(exports, decl.id);\n }\n};\n\npp$8.shouldParseExportStatement = function() {\n return this.type.keyword === \"var\" ||\n this.type.keyword === \"const\" ||\n this.type.keyword === \"class\" ||\n this.type.keyword === \"function\" ||\n this.isLet() ||\n this.isAsyncFunction()\n};\n\n// Parses a comma-separated list of module exports.\n\npp$8.parseExportSpecifier = function(exports) {\n var node = this.startNode();\n node.local = this.parseModuleExportName();\n\n node.exported = this.eatContextual(\"as\") ? this.parseModuleExportName() : node.local;\n this.checkExport(\n exports,\n node.exported,\n node.exported.start\n );\n\n return this.finishNode(node, \"ExportSpecifier\")\n};\n\npp$8.parseExportSpecifiers = function(exports) {\n var nodes = [], first = true;\n // export { x, y as z } [from '...']\n this.expect(types$1.braceL);\n while (!this.eat(types$1.braceR)) {\n if (!first) {\n this.expect(types$1.comma);\n if (this.afterTrailingComma(types$1.braceR)) { break }\n } else { first = false; }\n\n nodes.push(this.parseExportSpecifier(exports));\n }\n return nodes\n};\n\n// Parses import declaration.\n\npp$8.parseImport = function(node) {\n this.next();\n\n // import '...'\n if (this.type === types$1.string) {\n node.specifiers = empty$1;\n node.source = this.parseExprAtom();\n } else {\n node.specifiers = this.parseImportSpecifiers();\n this.expectContextual(\"from\");\n node.source = this.type === types$1.string ? this.parseExprAtom() : this.unexpected();\n }\n this.semicolon();\n return this.finishNode(node, \"ImportDeclaration\")\n};\n\n// Parses a comma-separated list of module imports.\n\npp$8.parseImportSpecifier = function() {\n var node = this.startNode();\n node.imported = this.parseModuleExportName();\n\n if (this.eatContextual(\"as\")) {\n node.local = this.parseIdent();\n } else {\n this.checkUnreserved(node.imported);\n node.local = node.imported;\n }\n this.checkLValSimple(node.local, BIND_LEXICAL);\n\n return this.finishNode(node, \"ImportSpecifier\")\n};\n\npp$8.parseImportDefaultSpecifier = function() {\n // import defaultObj, { x, y as z } from '...'\n var node = this.startNode();\n node.local = this.parseIdent();\n this.checkLValSimple(node.local, BIND_LEXICAL);\n return this.finishNode(node, \"ImportDefaultSpecifier\")\n};\n\npp$8.parseImportNamespaceSpecifier = function() {\n var node = this.startNode();\n this.next();\n this.expectContextual(\"as\");\n node.local = this.parseIdent();\n this.checkLValSimple(node.local, BIND_LEXICAL);\n return this.finishNode(node, \"ImportNamespaceSpecifier\")\n};\n\npp$8.parseImportSpecifiers = function() {\n var nodes = [], first = true;\n if (this.type === types$1.name) {\n nodes.push(this.parseImportDefaultSpecifier());\n if (!this.eat(types$1.comma)) { return nodes }\n }\n if (this.type === types$1.star) {\n nodes.push(this.parseImportNamespaceSpecifier());\n return nodes\n }\n this.expect(types$1.braceL);\n while (!this.eat(types$1.braceR)) {\n if (!first) {\n this.expect(types$1.comma);\n if (this.afterTrailingComma(types$1.braceR)) { break }\n } else { first = false; }\n\n nodes.push(this.parseImportSpecifier());\n }\n return nodes\n};\n\npp$8.parseModuleExportName = function() {\n if (this.options.ecmaVersion >= 13 && this.type === types$1.string) {\n var stringLiteral = this.parseLiteral(this.value);\n if (loneSurrogate.test(stringLiteral.value)) {\n this.raise(stringLiteral.start, \"An export name cannot include a lone surrogate.\");\n }\n return stringLiteral\n }\n return this.parseIdent(true)\n};\n\n// Set `ExpressionStatement#directive` property for directive prologues.\npp$8.adaptDirectivePrologue = function(statements) {\n for (var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i) {\n statements[i].directive = statements[i].expression.raw.slice(1, -1);\n }\n};\npp$8.isDirectiveCandidate = function(statement) {\n return (\n this.options.ecmaVersion >= 5 &&\n statement.type === \"ExpressionStatement\" &&\n statement.expression.type === \"Literal\" &&\n typeof statement.expression.value === \"string\" &&\n // Reject parenthesized strings.\n (this.input[statement.start] === \"\\\"\" || this.input[statement.start] === \"'\")\n )\n};\n\nvar pp$7 = Parser.prototype;\n\n// Convert existing expression atom to assignable pattern\n// if possible.\n\npp$7.toAssignable = function(node, isBinding, refDestructuringErrors) {\n if (this.options.ecmaVersion >= 6 && node) {\n switch (node.type) {\n case \"Identifier\":\n if (this.inAsync && node.name === \"await\")\n { this.raise(node.start, \"Cannot use 'await' as identifier inside an async function\"); }\n break\n\n case \"ObjectPattern\":\n case \"ArrayPattern\":\n case \"AssignmentPattern\":\n case \"RestElement\":\n break\n\n case \"ObjectExpression\":\n node.type = \"ObjectPattern\";\n if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }\n for (var i = 0, list = node.properties; i < list.length; i += 1) {\n var prop = list[i];\n\n this.toAssignable(prop, isBinding);\n // Early error:\n // AssignmentRestProperty[Yield, Await] :\n // `...` DestructuringAssignmentTarget[Yield, Await]\n //\n // It is a Syntax Error if |DestructuringAssignmentTarget| is an |ArrayLiteral| or an |ObjectLiteral|.\n if (\n prop.type === \"RestElement\" &&\n (prop.argument.type === \"ArrayPattern\" || prop.argument.type === \"ObjectPattern\")\n ) {\n this.raise(prop.argument.start, \"Unexpected token\");\n }\n }\n break\n\n case \"Property\":\n // AssignmentProperty has type === \"Property\"\n if (node.kind !== \"init\") { this.raise(node.key.start, \"Object pattern can't contain getter or setter\"); }\n this.toAssignable(node.value, isBinding);\n break\n\n case \"ArrayExpression\":\n node.type = \"ArrayPattern\";\n if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }\n this.toAssignableList(node.elements, isBinding);\n break\n\n case \"SpreadElement\":\n node.type = \"RestElement\";\n this.toAssignable(node.argument, isBinding);\n if (node.argument.type === \"AssignmentPattern\")\n { this.raise(node.argument.start, \"Rest elements cannot have a default value\"); }\n break\n\n case \"AssignmentExpression\":\n if (node.operator !== \"=\") { this.raise(node.left.end, \"Only '=' operator can be used for specifying default value.\"); }\n node.type = \"AssignmentPattern\";\n delete node.operator;\n this.toAssignable(node.left, isBinding);\n break\n\n case \"ParenthesizedExpression\":\n this.toAssignable(node.expression, isBinding, refDestructuringErrors);\n break\n\n case \"ChainExpression\":\n this.raiseRecoverable(node.start, \"Optional chaining cannot appear in left-hand side\");\n break\n\n case \"MemberExpression\":\n if (!isBinding) { break }\n\n default:\n this.raise(node.start, \"Assigning to rvalue\");\n }\n } else if (refDestructuringErrors) { this.checkPatternErrors(refDestructuringErrors, true); }\n return node\n};\n\n// Convert list of expression atoms to binding list.\n\npp$7.toAssignableList = function(exprList, isBinding) {\n var end = exprList.length;\n for (var i = 0; i < end; i++) {\n var elt = exprList[i];\n if (elt) { this.toAssignable(elt, isBinding); }\n }\n if (end) {\n var last = exprList[end - 1];\n if (this.options.ecmaVersion === 6 && isBinding && last && last.type === \"RestElement\" && last.argument.type !== \"Identifier\")\n { this.unexpected(last.argument.start); }\n }\n return exprList\n};\n\n// Parses spread element.\n\npp$7.parseSpread = function(refDestructuringErrors) {\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeAssign(false, refDestructuringErrors);\n return this.finishNode(node, \"SpreadElement\")\n};\n\npp$7.parseRestBinding = function() {\n var node = this.startNode();\n this.next();\n\n // RestElement inside of a function parameter must be an identifier\n if (this.options.ecmaVersion === 6 && this.type !== types$1.name)\n { this.unexpected(); }\n\n node.argument = this.parseBindingAtom();\n\n return this.finishNode(node, \"RestElement\")\n};\n\n// Parses lvalue (assignable) atom.\n\npp$7.parseBindingAtom = function() {\n if (this.options.ecmaVersion >= 6) {\n switch (this.type) {\n case types$1.bracketL:\n var node = this.startNode();\n this.next();\n node.elements = this.parseBindingList(types$1.bracketR, true, true);\n return this.finishNode(node, \"ArrayPattern\")\n\n case types$1.braceL:\n return this.parseObj(true)\n }\n }\n return this.parseIdent()\n};\n\npp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {\n var elts = [], first = true;\n while (!this.eat(close)) {\n if (first) { first = false; }\n else { this.expect(types$1.comma); }\n if (allowEmpty && this.type === types$1.comma) {\n elts.push(null);\n } else if (allowTrailingComma && this.afterTrailingComma(close)) {\n break\n } else if (this.type === types$1.ellipsis) {\n var rest = this.parseRestBinding();\n this.parseBindingListItem(rest);\n elts.push(rest);\n if (this.type === types$1.comma) { this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\"); }\n this.expect(close);\n break\n } else {\n elts.push(this.parseAssignableListItem(allowModifiers));\n }\n }\n return elts\n};\n\npp$7.parseAssignableListItem = function(allowModifiers) {\n var elem = this.parseMaybeDefault(this.start, this.startLoc);\n this.parseBindingListItem(elem);\n return elem\n};\n\npp$7.parseBindingListItem = function(param) {\n return param\n};\n\n// Parses assignment pattern around given atom if possible.\n\npp$7.parseMaybeDefault = function(startPos, startLoc, left) {\n left = left || this.parseBindingAtom();\n if (this.options.ecmaVersion < 6 || !this.eat(types$1.eq)) { return left }\n var node = this.startNodeAt(startPos, startLoc);\n node.left = left;\n node.right = this.parseMaybeAssign();\n return this.finishNode(node, \"AssignmentPattern\")\n};\n\n// The following three functions all verify that a node is an lvalue —\n// something that can be bound, or assigned to. In order to do so, they perform\n// a variety of checks:\n//\n// - Check that none of the bound/assigned-to identifiers are reserved words.\n// - Record name declarations for bindings in the appropriate scope.\n// - Check duplicate argument names, if checkClashes is set.\n//\n// If a complex binding pattern is encountered (e.g., object and array\n// destructuring), the entire pattern is recursively checked.\n//\n// There are three versions of checkLVal*() appropriate for different\n// circumstances:\n//\n// - checkLValSimple() shall be used if the syntactic construct supports\n// nothing other than identifiers and member expressions. Parenthesized\n// expressions are also correctly handled. This is generally appropriate for\n// constructs for which the spec says\n//\n// > It is a Syntax Error if AssignmentTargetType of [the production] is not\n// > simple.\n//\n// It is also appropriate for checking if an identifier is valid and not\n// defined elsewhere, like import declarations or function/class identifiers.\n//\n// Examples where this is used include:\n// a += …;\n// import a from '…';\n// where a is the node to be checked.\n//\n// - checkLValPattern() shall be used if the syntactic construct supports\n// anything checkLValSimple() supports, as well as object and array\n// destructuring patterns. This is generally appropriate for constructs for\n// which the spec says\n//\n// > It is a Syntax Error if [the production] is neither an ObjectLiteral nor\n// > an ArrayLiteral and AssignmentTargetType of [the production] is not\n// > simple.\n//\n// Examples where this is used include:\n// (a = …);\n// const a = …;\n// try { … } catch (a) { … }\n// where a is the node to be checked.\n//\n// - checkLValInnerPattern() shall be used if the syntactic construct supports\n// anything checkLValPattern() supports, as well as default assignment\n// patterns, rest elements, and other constructs that may appear within an\n// object or array destructuring pattern.\n//\n// As a special case, function parameters also use checkLValInnerPattern(),\n// as they also support defaults and rest constructs.\n//\n// These functions deliberately support both assignment and binding constructs,\n// as the logic for both is exceedingly similar. If the node is the target of\n// an assignment, then bindingType should be set to BIND_NONE. Otherwise, it\n// should be set to the appropriate BIND_* constant, like BIND_VAR or\n// BIND_LEXICAL.\n//\n// If the function is called with a non-BIND_NONE bindingType, then\n// additionally a checkClashes object may be specified to allow checking for\n// duplicate argument names. checkClashes is ignored if the provided construct\n// is an assignment (i.e., bindingType is BIND_NONE).\n\npp$7.checkLValSimple = function(expr, bindingType, checkClashes) {\n if ( bindingType === void 0 ) bindingType = BIND_NONE;\n\n var isBind = bindingType !== BIND_NONE;\n\n switch (expr.type) {\n case \"Identifier\":\n if (this.strict && this.reservedWordsStrictBind.test(expr.name))\n { this.raiseRecoverable(expr.start, (isBind ? \"Binding \" : \"Assigning to \") + expr.name + \" in strict mode\"); }\n if (isBind) {\n if (bindingType === BIND_LEXICAL && expr.name === \"let\")\n { this.raiseRecoverable(expr.start, \"let is disallowed as a lexically bound name\"); }\n if (checkClashes) {\n if (hasOwn(checkClashes, expr.name))\n { this.raiseRecoverable(expr.start, \"Argument name clash\"); }\n checkClashes[expr.name] = true;\n }\n if (bindingType !== BIND_OUTSIDE) { this.declareName(expr.name, bindingType, expr.start); }\n }\n break\n\n case \"ChainExpression\":\n this.raiseRecoverable(expr.start, \"Optional chaining cannot appear in left-hand side\");\n break\n\n case \"MemberExpression\":\n if (isBind) { this.raiseRecoverable(expr.start, \"Binding member expression\"); }\n break\n\n case \"ParenthesizedExpression\":\n if (isBind) { this.raiseRecoverable(expr.start, \"Binding parenthesized expression\"); }\n return this.checkLValSimple(expr.expression, bindingType, checkClashes)\n\n default:\n this.raise(expr.start, (isBind ? \"Binding\" : \"Assigning to\") + \" rvalue\");\n }\n};\n\npp$7.checkLValPattern = function(expr, bindingType, checkClashes) {\n if ( bindingType === void 0 ) bindingType = BIND_NONE;\n\n switch (expr.type) {\n case \"ObjectPattern\":\n for (var i = 0, list = expr.properties; i < list.length; i += 1) {\n var prop = list[i];\n\n this.checkLValInnerPattern(prop, bindingType, checkClashes);\n }\n break\n\n case \"ArrayPattern\":\n for (var i$1 = 0, list$1 = expr.elements; i$1 < list$1.length; i$1 += 1) {\n var elem = list$1[i$1];\n\n if (elem) { this.checkLValInnerPattern(elem, bindingType, checkClashes); }\n }\n break\n\n default:\n this.checkLValSimple(expr, bindingType, checkClashes);\n }\n};\n\npp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {\n if ( bindingType === void 0 ) bindingType = BIND_NONE;\n\n switch (expr.type) {\n case \"Property\":\n // AssignmentProperty has type === \"Property\"\n this.checkLValInnerPattern(expr.value, bindingType, checkClashes);\n break\n\n case \"AssignmentPattern\":\n this.checkLValPattern(expr.left, bindingType, checkClashes);\n break\n\n case \"RestElement\":\n this.checkLValPattern(expr.argument, bindingType, checkClashes);\n break\n\n default:\n this.checkLValPattern(expr, bindingType, checkClashes);\n }\n};\n\n// The algorithm used to determine whether a regexp can appear at a\n// given point in the program is loosely based on sweet.js' approach.\n// See https://github.com/mozilla/sweet.js/wiki/design\n\n\nvar TokContext = function TokContext(token, isExpr, preserveSpace, override, generator) {\n this.token = token;\n this.isExpr = !!isExpr;\n this.preserveSpace = !!preserveSpace;\n this.override = override;\n this.generator = !!generator;\n};\n\nvar types = {\n b_stat: new TokContext(\"{\", false),\n b_expr: new TokContext(\"{\", true),\n b_tmpl: new TokContext(\"${\", false),\n p_stat: new TokContext(\"(\", false),\n p_expr: new TokContext(\"(\", true),\n q_tmpl: new TokContext(\"`\", true, true, function (p) { return p.tryReadTemplateToken(); }),\n f_stat: new TokContext(\"function\", false),\n f_expr: new TokContext(\"function\", true),\n f_expr_gen: new TokContext(\"function\", true, false, null, true),\n f_gen: new TokContext(\"function\", false, false, null, true)\n};\n\nvar pp$6 = Parser.prototype;\n\npp$6.initialContext = function() {\n return [types.b_stat]\n};\n\npp$6.curContext = function() {\n return this.context[this.context.length - 1]\n};\n\npp$6.braceIsBlock = function(prevType) {\n var parent = this.curContext();\n if (parent === types.f_expr || parent === types.f_stat)\n { return true }\n if (prevType === types$1.colon && (parent === types.b_stat || parent === types.b_expr))\n { return !parent.isExpr }\n\n // The check for `tt.name && exprAllowed` detects whether we are\n // after a `yield` or `of` construct. See the `updateContext` for\n // `tt.name`.\n if (prevType === types$1._return || prevType === types$1.name && this.exprAllowed)\n { return lineBreak.test(this.input.slice(this.lastTokEnd, this.start)) }\n if (prevType === types$1._else || prevType === types$1.semi || prevType === types$1.eof || prevType === types$1.parenR || prevType === types$1.arrow)\n { return true }\n if (prevType === types$1.braceL)\n { return parent === types.b_stat }\n if (prevType === types$1._var || prevType === types$1._const || prevType === types$1.name)\n { return false }\n return !this.exprAllowed\n};\n\npp$6.inGeneratorContext = function() {\n for (var i = this.context.length - 1; i >= 1; i--) {\n var context = this.context[i];\n if (context.token === \"function\")\n { return context.generator }\n }\n return false\n};\n\npp$6.updateContext = function(prevType) {\n var update, type = this.type;\n if (type.keyword && prevType === types$1.dot)\n { this.exprAllowed = false; }\n else if (update = type.updateContext)\n { update.call(this, prevType); }\n else\n { this.exprAllowed = type.beforeExpr; }\n};\n\n// Used to handle edge cases when token context could not be inferred correctly during tokenization phase\n\npp$6.overrideContext = function(tokenCtx) {\n if (this.curContext() !== tokenCtx) {\n this.context[this.context.length - 1] = tokenCtx;\n }\n};\n\n// Token-specific context update code\n\ntypes$1.parenR.updateContext = types$1.braceR.updateContext = function() {\n if (this.context.length === 1) {\n this.exprAllowed = true;\n return\n }\n var out = this.context.pop();\n if (out === types.b_stat && this.curContext().token === \"function\") {\n out = this.context.pop();\n }\n this.exprAllowed = !out.isExpr;\n};\n\ntypes$1.braceL.updateContext = function(prevType) {\n this.context.push(this.braceIsBlock(prevType) ? types.b_stat : types.b_expr);\n this.exprAllowed = true;\n};\n\ntypes$1.dollarBraceL.updateContext = function() {\n this.context.push(types.b_tmpl);\n this.exprAllowed = true;\n};\n\ntypes$1.parenL.updateContext = function(prevType) {\n var statementParens = prevType === types$1._if || prevType === types$1._for || prevType === types$1._with || prevType === types$1._while;\n this.context.push(statementParens ? types.p_stat : types.p_expr);\n this.exprAllowed = true;\n};\n\ntypes$1.incDec.updateContext = function() {\n // tokExprAllowed stays unchanged\n};\n\ntypes$1._function.updateContext = types$1._class.updateContext = function(prevType) {\n if (prevType.beforeExpr && prevType !== types$1._else &&\n !(prevType === types$1.semi && this.curContext() !== types.p_stat) &&\n !(prevType === types$1._return && lineBreak.test(this.input.slice(this.lastTokEnd, this.start))) &&\n !((prevType === types$1.colon || prevType === types$1.braceL) && this.curContext() === types.b_stat))\n { this.context.push(types.f_expr); }\n else\n { this.context.push(types.f_stat); }\n this.exprAllowed = false;\n};\n\ntypes$1.colon.updateContext = function() {\n if (this.curContext().token === \"function\") { this.context.pop(); }\n this.exprAllowed = true;\n};\n\ntypes$1.backQuote.updateContext = function() {\n if (this.curContext() === types.q_tmpl)\n { this.context.pop(); }\n else\n { this.context.push(types.q_tmpl); }\n this.exprAllowed = false;\n};\n\ntypes$1.star.updateContext = function(prevType) {\n if (prevType === types$1._function) {\n var index = this.context.length - 1;\n if (this.context[index] === types.f_expr)\n { this.context[index] = types.f_expr_gen; }\n else\n { this.context[index] = types.f_gen; }\n }\n this.exprAllowed = true;\n};\n\ntypes$1.name.updateContext = function(prevType) {\n var allowed = false;\n if (this.options.ecmaVersion >= 6 && prevType !== types$1.dot) {\n if (this.value === \"of\" && !this.exprAllowed ||\n this.value === \"yield\" && this.inGeneratorContext())\n { allowed = true; }\n }\n this.exprAllowed = allowed;\n};\n\n// A recursive descent parser operates by defining functions for all\n// syntactic elements, and recursively calling those, each function\n// advancing the input stream and returning an AST node. Precedence\n// of constructs (for example, the fact that `!x[1]` means `!(x[1])`\n// instead of `(!x)[1]` is handled by the fact that the parser\n// function that parses unary prefix operators is called first, and\n// in turn calls the function that parses `[]` subscripts — that\n// way, it'll receive the node for `x[1]` already parsed, and wraps\n// *that* in the unary operator node.\n//\n// Acorn uses an [operator precedence parser][opp] to handle binary\n// operator precedence, because it is much more compact than using\n// the technique outlined above, which uses different, nesting\n// functions to specify precedence, for all of the ten binary\n// precedence levels that JavaScript defines.\n//\n// [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser\n\n\nvar pp$5 = Parser.prototype;\n\n// Check if property name clashes with already added.\n// Object/class getters and setters are not allowed to clash —\n// either with each other or with an init property — and in\n// strict mode, init properties are also not allowed to be repeated.\n\npp$5.checkPropClash = function(prop, propHash, refDestructuringErrors) {\n if (this.options.ecmaVersion >= 9 && prop.type === \"SpreadElement\")\n { return }\n if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand))\n { return }\n var key = prop.key;\n var name;\n switch (key.type) {\n case \"Identifier\": name = key.name; break\n case \"Literal\": name = String(key.value); break\n default: return\n }\n var kind = prop.kind;\n if (this.options.ecmaVersion >= 6) {\n if (name === \"__proto__\" && kind === \"init\") {\n if (propHash.proto) {\n if (refDestructuringErrors) {\n if (refDestructuringErrors.doubleProto < 0) {\n refDestructuringErrors.doubleProto = key.start;\n }\n } else {\n this.raiseRecoverable(key.start, \"Redefinition of __proto__ property\");\n }\n }\n propHash.proto = true;\n }\n return\n }\n name = \"$\" + name;\n var other = propHash[name];\n if (other) {\n var redefinition;\n if (kind === \"init\") {\n redefinition = this.strict && other.init || other.get || other.set;\n } else {\n redefinition = other.init || other[kind];\n }\n if (redefinition)\n { this.raiseRecoverable(key.start, \"Redefinition of property\"); }\n } else {\n other = propHash[name] = {\n init: false,\n get: false,\n set: false\n };\n }\n other[kind] = true;\n};\n\n// ### Expression parsing\n\n// These nest, from the most general expression type at the top to\n// 'atomic', nondivisible expression types at the bottom. Most of\n// the functions will simply let the function(s) below them parse,\n// and, *if* the syntactic construct they handle is present, wrap\n// the AST node that the inner parser gave them in another node.\n\n// Parse a full expression. The optional arguments are used to\n// forbid the `in` operator (in for loops initalization expressions)\n// and provide reference for storing '=' operator inside shorthand\n// property assignment in contexts where both object expression\n// and object pattern might appear (so it's possible to raise\n// delayed syntax error at correct position).\n\npp$5.parseExpression = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseMaybeAssign(forInit, refDestructuringErrors);\n if (this.type === types$1.comma) {\n var node = this.startNodeAt(startPos, startLoc);\n node.expressions = [expr];\n while (this.eat(types$1.comma)) { node.expressions.push(this.parseMaybeAssign(forInit, refDestructuringErrors)); }\n return this.finishNode(node, \"SequenceExpression\")\n }\n return expr\n};\n\n// Parse an assignment expression. This includes applications of\n// operators like `+=`.\n\npp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {\n if (this.isContextual(\"yield\")) {\n if (this.inGenerator) { return this.parseYield(forInit) }\n // The tokenizer will assume an expression is allowed after\n // `yield`, but this isn't that kind of yield\n else { this.exprAllowed = false; }\n }\n\n var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1;\n if (refDestructuringErrors) {\n oldParenAssign = refDestructuringErrors.parenthesizedAssign;\n oldTrailingComma = refDestructuringErrors.trailingComma;\n oldDoubleProto = refDestructuringErrors.doubleProto;\n refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1;\n } else {\n refDestructuringErrors = new DestructuringErrors;\n ownDestructuringErrors = true;\n }\n\n var startPos = this.start, startLoc = this.startLoc;\n if (this.type === types$1.parenL || this.type === types$1.name) {\n this.potentialArrowAt = this.start;\n this.potentialArrowInForAwait = forInit === \"await\";\n }\n var left = this.parseMaybeConditional(forInit, refDestructuringErrors);\n if (afterLeftParse) { left = afterLeftParse.call(this, left, startPos, startLoc); }\n if (this.type.isAssign) {\n var node = this.startNodeAt(startPos, startLoc);\n node.operator = this.value;\n if (this.type === types$1.eq)\n { left = this.toAssignable(left, false, refDestructuringErrors); }\n if (!ownDestructuringErrors) {\n refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1;\n }\n if (refDestructuringErrors.shorthandAssign >= left.start)\n { refDestructuringErrors.shorthandAssign = -1; } // reset because shorthand default was used correctly\n if (this.type === types$1.eq)\n { this.checkLValPattern(left); }\n else\n { this.checkLValSimple(left); }\n node.left = left;\n this.next();\n node.right = this.parseMaybeAssign(forInit);\n if (oldDoubleProto > -1) { refDestructuringErrors.doubleProto = oldDoubleProto; }\n return this.finishNode(node, \"AssignmentExpression\")\n } else {\n if (ownDestructuringErrors) { this.checkExpressionErrors(refDestructuringErrors, true); }\n }\n if (oldParenAssign > -1) { refDestructuringErrors.parenthesizedAssign = oldParenAssign; }\n if (oldTrailingComma > -1) { refDestructuringErrors.trailingComma = oldTrailingComma; }\n return left\n};\n\n// Parse a ternary conditional (`?:`) operator.\n\npp$5.parseMaybeConditional = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseExprOps(forInit, refDestructuringErrors);\n if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }\n if (this.eat(types$1.question)) {\n var node = this.startNodeAt(startPos, startLoc);\n node.test = expr;\n node.consequent = this.parseMaybeAssign();\n this.expect(types$1.colon);\n node.alternate = this.parseMaybeAssign(forInit);\n return this.finishNode(node, \"ConditionalExpression\")\n }\n return expr\n};\n\n// Start the precedence parser.\n\npp$5.parseExprOps = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseMaybeUnary(refDestructuringErrors, false, false, forInit);\n if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }\n return expr.start === startPos && expr.type === \"ArrowFunctionExpression\" ? expr : this.parseExprOp(expr, startPos, startLoc, -1, forInit)\n};\n\n// Parse binary operators with the operator precedence parsing\n// algorithm. `left` is the left-hand side of the operator.\n// `minPrec` provides context that allows the function to stop and\n// defer further parser to one of its callers when it encounters an\n// operator that has a lower precedence than the set it is parsing.\n\npp$5.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) {\n var prec = this.type.binop;\n if (prec != null && (!forInit || this.type !== types$1._in)) {\n if (prec > minPrec) {\n var logical = this.type === types$1.logicalOR || this.type === types$1.logicalAND;\n var coalesce = this.type === types$1.coalesce;\n if (coalesce) {\n // Handle the precedence of `tt.coalesce` as equal to the range of logical expressions.\n // In other words, `node.right` shouldn't contain logical expressions in order to check the mixed error.\n prec = types$1.logicalAND.binop;\n }\n var op = this.value;\n this.next();\n var startPos = this.start, startLoc = this.startLoc;\n var right = this.parseExprOp(this.parseMaybeUnary(null, false, false, forInit), startPos, startLoc, prec, forInit);\n var node = this.buildBinary(leftStartPos, leftStartLoc, left, right, op, logical || coalesce);\n if ((logical && this.type === types$1.coalesce) || (coalesce && (this.type === types$1.logicalOR || this.type === types$1.logicalAND))) {\n this.raiseRecoverable(this.start, \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses\");\n }\n return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, forInit)\n }\n }\n return left\n};\n\npp$5.buildBinary = function(startPos, startLoc, left, right, op, logical) {\n if (right.type === \"PrivateIdentifier\") { this.raise(right.start, \"Private identifier can only be left side of binary expression\"); }\n var node = this.startNodeAt(startPos, startLoc);\n node.left = left;\n node.operator = op;\n node.right = right;\n return this.finishNode(node, logical ? \"LogicalExpression\" : \"BinaryExpression\")\n};\n\n// Parse unary operators, both prefix and postfix.\n\npp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) {\n var startPos = this.start, startLoc = this.startLoc, expr;\n if (this.isContextual(\"await\") && this.canAwait) {\n expr = this.parseAwait(forInit);\n sawUnary = true;\n } else if (this.type.prefix) {\n var node = this.startNode(), update = this.type === types$1.incDec;\n node.operator = this.value;\n node.prefix = true;\n this.next();\n node.argument = this.parseMaybeUnary(null, true, update, forInit);\n this.checkExpressionErrors(refDestructuringErrors, true);\n if (update) { this.checkLValSimple(node.argument); }\n else if (this.strict && node.operator === \"delete\" && isLocalVariableAccess(node.argument))\n { this.raiseRecoverable(node.start, \"Deleting local variable in strict mode\"); }\n else if (node.operator === \"delete\" && isPrivateFieldAccess(node.argument))\n { this.raiseRecoverable(node.start, \"Private fields can not be deleted\"); }\n else { sawUnary = true; }\n expr = this.finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\");\n } else if (!sawUnary && this.type === types$1.privateId) {\n if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) { this.unexpected(); }\n expr = this.parsePrivateIdent();\n // only could be private fields in 'in', such as #x in obj\n if (this.type !== types$1._in) { this.unexpected(); }\n } else {\n expr = this.parseExprSubscripts(refDestructuringErrors, forInit);\n if (this.checkExpressionErrors(refDestructuringErrors)) { return expr }\n while (this.type.postfix && !this.canInsertSemicolon()) {\n var node$1 = this.startNodeAt(startPos, startLoc);\n node$1.operator = this.value;\n node$1.prefix = false;\n node$1.argument = expr;\n this.checkLValSimple(expr);\n this.next();\n expr = this.finishNode(node$1, \"UpdateExpression\");\n }\n }\n\n if (!incDec && this.eat(types$1.starstar)) {\n if (sawUnary)\n { this.unexpected(this.lastTokStart); }\n else\n { return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), \"**\", false) }\n } else {\n return expr\n }\n};\n\nfunction isLocalVariableAccess(node) {\n return (\n node.type === \"Identifier\" ||\n node.type === \"ParenthesizedExpression\" && isLocalVariableAccess(node.expression)\n )\n}\n\nfunction isPrivateFieldAccess(node) {\n return (\n node.type === \"MemberExpression\" && node.property.type === \"PrivateIdentifier\" ||\n node.type === \"ChainExpression\" && isPrivateFieldAccess(node.expression) ||\n node.type === \"ParenthesizedExpression\" && isPrivateFieldAccess(node.expression)\n )\n}\n\n// Parse call, dot, and `[]`-subscript expressions.\n\npp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseExprAtom(refDestructuringErrors, forInit);\n if (expr.type === \"ArrowFunctionExpression\" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== \")\")\n { return expr }\n var result = this.parseSubscripts(expr, startPos, startLoc, false, forInit);\n if (refDestructuringErrors && result.type === \"MemberExpression\") {\n if (refDestructuringErrors.parenthesizedAssign >= result.start) { refDestructuringErrors.parenthesizedAssign = -1; }\n if (refDestructuringErrors.parenthesizedBind >= result.start) { refDestructuringErrors.parenthesizedBind = -1; }\n if (refDestructuringErrors.trailingComma >= result.start) { refDestructuringErrors.trailingComma = -1; }\n }\n return result\n};\n\npp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {\n var maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === \"Identifier\" && base.name === \"async\" &&\n this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 &&\n this.potentialArrowAt === base.start;\n var optionalChained = false;\n\n while (true) {\n var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit);\n\n if (element.optional) { optionalChained = true; }\n if (element === base || element.type === \"ArrowFunctionExpression\") {\n if (optionalChained) {\n var chainNode = this.startNodeAt(startPos, startLoc);\n chainNode.expression = element;\n element = this.finishNode(chainNode, \"ChainExpression\");\n }\n return element\n }\n\n base = element;\n }\n};\n\npp$5.shouldParseAsyncArrow = function() {\n return !this.canInsertSemicolon() && this.eat(types$1.arrow)\n};\n\npp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit)\n};\n\npp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {\n var optionalSupported = this.options.ecmaVersion >= 11;\n var optional = optionalSupported && this.eat(types$1.questionDot);\n if (noCalls && optional) { this.raise(this.lastTokStart, \"Optional chaining cannot appear in the callee of new expressions\"); }\n\n var computed = this.eat(types$1.bracketL);\n if (computed || (optional && this.type !== types$1.parenL && this.type !== types$1.backQuote) || this.eat(types$1.dot)) {\n var node = this.startNodeAt(startPos, startLoc);\n node.object = base;\n if (computed) {\n node.property = this.parseExpression();\n this.expect(types$1.bracketR);\n } else if (this.type === types$1.privateId && base.type !== \"Super\") {\n node.property = this.parsePrivateIdent();\n } else {\n node.property = this.parseIdent(this.options.allowReserved !== \"never\");\n }\n node.computed = !!computed;\n if (optionalSupported) {\n node.optional = optional;\n }\n base = this.finishNode(node, \"MemberExpression\");\n } else if (!noCalls && this.eat(types$1.parenL)) {\n var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n var exprList = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);\n if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {\n this.checkPatternErrors(refDestructuringErrors, false);\n this.checkYieldAwaitInDefaultParams();\n if (this.awaitIdentPos > 0)\n { this.raise(this.awaitIdentPos, \"Cannot use 'await' as identifier inside an async function\"); }\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit)\n }\n this.checkExpressionErrors(refDestructuringErrors, true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n this.awaitIdentPos = oldAwaitIdentPos || this.awaitIdentPos;\n var node$1 = this.startNodeAt(startPos, startLoc);\n node$1.callee = base;\n node$1.arguments = exprList;\n if (optionalSupported) {\n node$1.optional = optional;\n }\n base = this.finishNode(node$1, \"CallExpression\");\n } else if (this.type === types$1.backQuote) {\n if (optional || optionalChained) {\n this.raise(this.start, \"Optional chaining cannot appear in the tag of tagged template expressions\");\n }\n var node$2 = this.startNodeAt(startPos, startLoc);\n node$2.tag = base;\n node$2.quasi = this.parseTemplate({isTagged: true});\n base = this.finishNode(node$2, \"TaggedTemplateExpression\");\n }\n return base\n};\n\n// Parse an atomic expression — either a single token that is an\n// expression, an expression started by a keyword like `function` or\n// `new`, or an expression wrapped in punctuation like `()`, `[]`,\n// or `{}`.\n\npp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {\n // If a division operator appears in an expression position, the\n // tokenizer got confused, and we force it to read a regexp instead.\n if (this.type === types$1.slash) { this.readRegexp(); }\n\n var node, canBeArrow = this.potentialArrowAt === this.start;\n switch (this.type) {\n case types$1._super:\n if (!this.allowSuper)\n { this.raise(this.start, \"'super' keyword outside a method\"); }\n node = this.startNode();\n this.next();\n if (this.type === types$1.parenL && !this.allowDirectSuper)\n { this.raise(node.start, \"super() call outside constructor of a subclass\"); }\n // The `super` keyword can appear at below:\n // SuperProperty:\n // super [ Expression ]\n // super . IdentifierName\n // SuperCall:\n // super ( Arguments )\n if (this.type !== types$1.dot && this.type !== types$1.bracketL && this.type !== types$1.parenL)\n { this.unexpected(); }\n return this.finishNode(node, \"Super\")\n\n case types$1._this:\n node = this.startNode();\n this.next();\n return this.finishNode(node, \"ThisExpression\")\n\n case types$1.name:\n var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc;\n var id = this.parseIdent(false);\n if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === \"async\" && !this.canInsertSemicolon() && this.eat(types$1._function)) {\n this.overrideContext(types.f_expr);\n return this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit)\n }\n if (canBeArrow && !this.canInsertSemicolon()) {\n if (this.eat(types$1.arrow))\n { return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], false, forInit) }\n if (this.options.ecmaVersion >= 8 && id.name === \"async\" && this.type === types$1.name && !containsEsc &&\n (!this.potentialArrowInForAwait || this.value !== \"of\" || this.containsEsc)) {\n id = this.parseIdent(false);\n if (this.canInsertSemicolon() || !this.eat(types$1.arrow))\n { this.unexpected(); }\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [id], true, forInit)\n }\n }\n return id\n\n case types$1.regexp:\n var value = this.value;\n node = this.parseLiteral(value.value);\n node.regex = {pattern: value.pattern, flags: value.flags};\n return node\n\n case types$1.num: case types$1.string:\n return this.parseLiteral(this.value)\n\n case types$1._null: case types$1._true: case types$1._false:\n node = this.startNode();\n node.value = this.type === types$1._null ? null : this.type === types$1._true;\n node.raw = this.type.keyword;\n this.next();\n return this.finishNode(node, \"Literal\")\n\n case types$1.parenL:\n var start = this.start, expr = this.parseParenAndDistinguishExpression(canBeArrow, forInit);\n if (refDestructuringErrors) {\n if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr))\n { refDestructuringErrors.parenthesizedAssign = start; }\n if (refDestructuringErrors.parenthesizedBind < 0)\n { refDestructuringErrors.parenthesizedBind = start; }\n }\n return expr\n\n case types$1.bracketL:\n node = this.startNode();\n this.next();\n node.elements = this.parseExprList(types$1.bracketR, true, true, refDestructuringErrors);\n return this.finishNode(node, \"ArrayExpression\")\n\n case types$1.braceL:\n this.overrideContext(types.b_expr);\n return this.parseObj(false, refDestructuringErrors)\n\n case types$1._function:\n node = this.startNode();\n this.next();\n return this.parseFunction(node, 0)\n\n case types$1._class:\n return this.parseClass(this.startNode(), false)\n\n case types$1._new:\n return this.parseNew()\n\n case types$1.backQuote:\n return this.parseTemplate()\n\n case types$1._import:\n if (this.options.ecmaVersion >= 11) {\n return this.parseExprImport(forNew)\n } else {\n return this.unexpected()\n }\n\n default:\n return this.parseExprAtomDefault()\n }\n};\n\npp$5.parseExprAtomDefault = function() {\n this.unexpected();\n};\n\npp$5.parseExprImport = function(forNew) {\n var node = this.startNode();\n\n // Consume `import` as an identifier for `import.meta`.\n // Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.\n if (this.containsEsc) { this.raiseRecoverable(this.start, \"Escape sequence in keyword import\"); }\n this.next();\n\n if (this.type === types$1.parenL && !forNew) {\n return this.parseDynamicImport(node)\n } else if (this.type === types$1.dot) {\n var meta = this.startNodeAt(node.start, node.loc && node.loc.start);\n meta.name = \"import\";\n node.meta = this.finishNode(meta, \"Identifier\");\n return this.parseImportMeta(node)\n } else {\n this.unexpected();\n }\n};\n\npp$5.parseDynamicImport = function(node) {\n this.next(); // skip `(`\n\n // Parse node.source.\n node.source = this.parseMaybeAssign();\n\n // Verify ending.\n if (!this.eat(types$1.parenR)) {\n var errorPos = this.start;\n if (this.eat(types$1.comma) && this.eat(types$1.parenR)) {\n this.raiseRecoverable(errorPos, \"Trailing comma is not allowed in import()\");\n } else {\n this.unexpected(errorPos);\n }\n }\n\n return this.finishNode(node, \"ImportExpression\")\n};\n\npp$5.parseImportMeta = function(node) {\n this.next(); // skip `.`\n\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n\n if (node.property.name !== \"meta\")\n { this.raiseRecoverable(node.property.start, \"The only valid meta property for import is 'import.meta'\"); }\n if (containsEsc)\n { this.raiseRecoverable(node.start, \"'import.meta' must not contain escaped characters\"); }\n if (this.options.sourceType !== \"module\" && !this.options.allowImportExportEverywhere)\n { this.raiseRecoverable(node.start, \"Cannot use 'import.meta' outside a module\"); }\n\n return this.finishNode(node, \"MetaProperty\")\n};\n\npp$5.parseLiteral = function(value) {\n var node = this.startNode();\n node.value = value;\n node.raw = this.input.slice(this.start, this.end);\n if (node.raw.charCodeAt(node.raw.length - 1) === 110) { node.bigint = node.raw.slice(0, -1).replace(/_/g, \"\"); }\n this.next();\n return this.finishNode(node, \"Literal\")\n};\n\npp$5.parseParenExpression = function() {\n this.expect(types$1.parenL);\n var val = this.parseExpression();\n this.expect(types$1.parenR);\n return val\n};\n\npp$5.shouldParseArrow = function(exprList) {\n return !this.canInsertSemicolon()\n};\n\npp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {\n var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;\n if (this.options.ecmaVersion >= 6) {\n this.next();\n\n var innerStartPos = this.start, innerStartLoc = this.startLoc;\n var exprList = [], first = true, lastIsComma = false;\n var refDestructuringErrors = new DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart;\n this.yieldPos = 0;\n this.awaitPos = 0;\n // Do not save awaitIdentPos to allow checking awaits nested in parameters\n while (this.type !== types$1.parenR) {\n first ? first = false : this.expect(types$1.comma);\n if (allowTrailingComma && this.afterTrailingComma(types$1.parenR, true)) {\n lastIsComma = true;\n break\n } else if (this.type === types$1.ellipsis) {\n spreadStart = this.start;\n exprList.push(this.parseParenItem(this.parseRestBinding()));\n if (this.type === types$1.comma) {\n this.raiseRecoverable(\n this.start,\n \"Comma is not permitted after the rest element\"\n );\n }\n break\n } else {\n exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem));\n }\n }\n var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;\n this.expect(types$1.parenR);\n\n if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$1.arrow)) {\n this.checkPatternErrors(refDestructuringErrors, false);\n this.checkYieldAwaitInDefaultParams();\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n return this.parseParenArrowList(startPos, startLoc, exprList, forInit)\n }\n\n if (!exprList.length || lastIsComma) { this.unexpected(this.lastTokStart); }\n if (spreadStart) { this.unexpected(spreadStart); }\n this.checkExpressionErrors(refDestructuringErrors, true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n\n if (exprList.length > 1) {\n val = this.startNodeAt(innerStartPos, innerStartLoc);\n val.expressions = exprList;\n this.finishNodeAt(val, \"SequenceExpression\", innerEndPos, innerEndLoc);\n } else {\n val = exprList[0];\n }\n } else {\n val = this.parseParenExpression();\n }\n\n if (this.options.preserveParens) {\n var par = this.startNodeAt(startPos, startLoc);\n par.expression = val;\n return this.finishNode(par, \"ParenthesizedExpression\")\n } else {\n return val\n }\n};\n\npp$5.parseParenItem = function(item) {\n return item\n};\n\npp$5.parseParenArrowList = function(startPos, startLoc, exprList, forInit) {\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, false, forInit)\n};\n\n// New's precedence is slightly tricky. It must allow its argument to\n// be a `[]` or dot subscript expression, but not a call — at least,\n// not without wrapping it in parentheses. Thus, it uses the noCalls\n// argument to parseSubscripts to prevent it from consuming the\n// argument list.\n\nvar empty = [];\n\npp$5.parseNew = function() {\n if (this.containsEsc) { this.raiseRecoverable(this.start, \"Escape sequence in keyword new\"); }\n var node = this.startNode();\n this.next();\n if (this.options.ecmaVersion >= 6 && this.type === types$1.dot) {\n var meta = this.startNodeAt(node.start, node.loc && node.loc.start);\n meta.name = \"new\";\n node.meta = this.finishNode(meta, \"Identifier\");\n this.next();\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n if (node.property.name !== \"target\")\n { this.raiseRecoverable(node.property.start, \"The only valid meta property for new is 'new.target'\"); }\n if (containsEsc)\n { this.raiseRecoverable(node.start, \"'new.target' must not contain escaped characters\"); }\n if (!this.allowNewDotTarget)\n { this.raiseRecoverable(node.start, \"'new.target' can only be used in functions and class static block\"); }\n return this.finishNode(node, \"MetaProperty\")\n }\n var startPos = this.start, startLoc = this.startLoc;\n node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);\n if (this.eat(types$1.parenL)) { node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false); }\n else { node.arguments = empty; }\n return this.finishNode(node, \"NewExpression\")\n};\n\n// Parse template expression.\n\npp$5.parseTemplateElement = function(ref) {\n var isTagged = ref.isTagged;\n\n var elem = this.startNode();\n if (this.type === types$1.invalidTemplate) {\n if (!isTagged) {\n this.raiseRecoverable(this.start, \"Bad escape sequence in untagged template literal\");\n }\n elem.value = {\n raw: this.value.replace(/\\r\\n?/g, \"\\n\"),\n cooked: null\n };\n } else {\n elem.value = {\n raw: this.input.slice(this.start, this.end).replace(/\\r\\n?/g, \"\\n\"),\n cooked: this.value\n };\n }\n this.next();\n elem.tail = this.type === types$1.backQuote;\n return this.finishNode(elem, \"TemplateElement\")\n};\n\npp$5.parseTemplate = function(ref) {\n if ( ref === void 0 ) ref = {};\n var isTagged = ref.isTagged; if ( isTagged === void 0 ) isTagged = false;\n\n var node = this.startNode();\n this.next();\n node.expressions = [];\n var curElt = this.parseTemplateElement({isTagged: isTagged});\n node.quasis = [curElt];\n while (!curElt.tail) {\n if (this.type === types$1.eof) { this.raise(this.pos, \"Unterminated template literal\"); }\n this.expect(types$1.dollarBraceL);\n node.expressions.push(this.parseExpression());\n this.expect(types$1.braceR);\n node.quasis.push(curElt = this.parseTemplateElement({isTagged: isTagged}));\n }\n this.next();\n return this.finishNode(node, \"TemplateLiteral\")\n};\n\npp$5.isAsyncProp = function(prop) {\n return !prop.computed && prop.key.type === \"Identifier\" && prop.key.name === \"async\" &&\n (this.type === types$1.name || this.type === types$1.num || this.type === types$1.string || this.type === types$1.bracketL || this.type.keyword || (this.options.ecmaVersion >= 9 && this.type === types$1.star)) &&\n !lineBreak.test(this.input.slice(this.lastTokEnd, this.start))\n};\n\n// Parse an object literal or binding pattern.\n\npp$5.parseObj = function(isPattern, refDestructuringErrors) {\n var node = this.startNode(), first = true, propHash = {};\n node.properties = [];\n this.next();\n while (!this.eat(types$1.braceR)) {\n if (!first) {\n this.expect(types$1.comma);\n if (this.options.ecmaVersion >= 5 && this.afterTrailingComma(types$1.braceR)) { break }\n } else { first = false; }\n\n var prop = this.parseProperty(isPattern, refDestructuringErrors);\n if (!isPattern) { this.checkPropClash(prop, propHash, refDestructuringErrors); }\n node.properties.push(prop);\n }\n return this.finishNode(node, isPattern ? \"ObjectPattern\" : \"ObjectExpression\")\n};\n\npp$5.parseProperty = function(isPattern, refDestructuringErrors) {\n var prop = this.startNode(), isGenerator, isAsync, startPos, startLoc;\n if (this.options.ecmaVersion >= 9 && this.eat(types$1.ellipsis)) {\n if (isPattern) {\n prop.argument = this.parseIdent(false);\n if (this.type === types$1.comma) {\n this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\");\n }\n return this.finishNode(prop, \"RestElement\")\n }\n // Parse argument.\n prop.argument = this.parseMaybeAssign(false, refDestructuringErrors);\n // To disallow trailing comma via `this.toAssignable()`.\n if (this.type === types$1.comma && refDestructuringErrors && refDestructuringErrors.trailingComma < 0) {\n refDestructuringErrors.trailingComma = this.start;\n }\n // Finish\n return this.finishNode(prop, \"SpreadElement\")\n }\n if (this.options.ecmaVersion >= 6) {\n prop.method = false;\n prop.shorthand = false;\n if (isPattern || refDestructuringErrors) {\n startPos = this.start;\n startLoc = this.startLoc;\n }\n if (!isPattern)\n { isGenerator = this.eat(types$1.star); }\n }\n var containsEsc = this.containsEsc;\n this.parsePropertyName(prop);\n if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {\n isAsync = true;\n isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$1.star);\n this.parsePropertyName(prop);\n } else {\n isAsync = false;\n }\n this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);\n return this.finishNode(prop, \"Property\")\n};\n\npp$5.parseGetterSetter = function(prop) {\n prop.kind = prop.key.name;\n this.parsePropertyName(prop);\n prop.value = this.parseMethod(false);\n var paramCount = prop.kind === \"get\" ? 0 : 1;\n if (prop.value.params.length !== paramCount) {\n var start = prop.value.start;\n if (prop.kind === \"get\")\n { this.raiseRecoverable(start, \"getter should have no params\"); }\n else\n { this.raiseRecoverable(start, \"setter should have exactly one param\"); }\n } else {\n if (prop.kind === \"set\" && prop.value.params[0].type === \"RestElement\")\n { this.raiseRecoverable(prop.value.params[0].start, \"Setter cannot use rest params\"); }\n }\n};\n\npp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {\n if ((isGenerator || isAsync) && this.type === types$1.colon)\n { this.unexpected(); }\n\n if (this.eat(types$1.colon)) {\n prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors);\n prop.kind = \"init\";\n } else if (this.options.ecmaVersion >= 6 && this.type === types$1.parenL) {\n if (isPattern) { this.unexpected(); }\n prop.kind = \"init\";\n prop.method = true;\n prop.value = this.parseMethod(isGenerator, isAsync);\n } else if (!isPattern && !containsEsc &&\n this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === \"Identifier\" &&\n (prop.key.name === \"get\" || prop.key.name === \"set\") &&\n (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) {\n if (isGenerator || isAsync) { this.unexpected(); }\n this.parseGetterSetter(prop);\n } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === \"Identifier\") {\n if (isGenerator || isAsync) { this.unexpected(); }\n this.checkUnreserved(prop.key);\n if (prop.key.name === \"await\" && !this.awaitIdentPos)\n { this.awaitIdentPos = startPos; }\n prop.kind = \"init\";\n if (isPattern) {\n prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));\n } else if (this.type === types$1.eq && refDestructuringErrors) {\n if (refDestructuringErrors.shorthandAssign < 0)\n { refDestructuringErrors.shorthandAssign = this.start; }\n prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));\n } else {\n prop.value = this.copyNode(prop.key);\n }\n prop.shorthand = true;\n } else { this.unexpected(); }\n};\n\npp$5.parsePropertyName = function(prop) {\n if (this.options.ecmaVersion >= 6) {\n if (this.eat(types$1.bracketL)) {\n prop.computed = true;\n prop.key = this.parseMaybeAssign();\n this.expect(types$1.bracketR);\n return prop.key\n } else {\n prop.computed = false;\n }\n }\n return prop.key = this.type === types$1.num || this.type === types$1.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== \"never\")\n};\n\n// Initialize empty function node.\n\npp$5.initFunction = function(node) {\n node.id = null;\n if (this.options.ecmaVersion >= 6) { node.generator = node.expression = false; }\n if (this.options.ecmaVersion >= 8) { node.async = false; }\n};\n\n// Parse object or class method.\n\npp$5.parseMethod = function(isGenerator, isAsync, allowDirectSuper) {\n var node = this.startNode(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n\n this.initFunction(node);\n if (this.options.ecmaVersion >= 6)\n { node.generator = isGenerator; }\n if (this.options.ecmaVersion >= 8)\n { node.async = !!isAsync; }\n\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope(functionFlags(isAsync, node.generator) | SCOPE_SUPER | (allowDirectSuper ? SCOPE_DIRECT_SUPER : 0));\n\n this.expect(types$1.parenL);\n node.params = this.parseBindingList(types$1.parenR, false, this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n this.parseFunctionBody(node, false, true, false);\n\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, \"FunctionExpression\")\n};\n\n// Parse arrow function expression with given parameters.\n\npp$5.parseArrowExpression = function(node, params, isAsync, forInit) {\n var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n\n this.enterScope(functionFlags(isAsync, false) | SCOPE_ARROW);\n this.initFunction(node);\n if (this.options.ecmaVersion >= 8) { node.async = !!isAsync; }\n\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n\n node.params = this.toAssignableList(params, true);\n this.parseFunctionBody(node, true, false, forInit);\n\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, \"ArrowFunctionExpression\")\n};\n\n// Parse function body and check parameters.\n\npp$5.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) {\n var isExpression = isArrowFunction && this.type !== types$1.braceL;\n var oldStrict = this.strict, useStrict = false;\n\n if (isExpression) {\n node.body = this.parseMaybeAssign(forInit);\n node.expression = true;\n this.checkParams(node, false);\n } else {\n var nonSimple = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(node.params);\n if (!oldStrict || nonSimple) {\n useStrict = this.strictDirective(this.end);\n // If this is a strict mode function, verify that argument names\n // are not repeated, and it does not try to bind the words `eval`\n // or `arguments`.\n if (useStrict && nonSimple)\n { this.raiseRecoverable(node.start, \"Illegal 'use strict' directive in function with non-simple parameter list\"); }\n }\n // Start a new scope with regard to labels and the `inFunction`\n // flag (restore them to their old value afterwards).\n var oldLabels = this.labels;\n this.labels = [];\n if (useStrict) { this.strict = true; }\n\n // Add the params to varDeclaredNames to ensure that an error is thrown\n // if a let/const declaration in the function clashes with one of the params.\n this.checkParams(node, !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params));\n // Ensure the function name isn't a forbidden identifier in strict mode, e.g. 'eval'\n if (this.strict && node.id) { this.checkLValSimple(node.id, BIND_OUTSIDE); }\n node.body = this.parseBlock(false, undefined, useStrict && !oldStrict);\n node.expression = false;\n this.adaptDirectivePrologue(node.body.body);\n this.labels = oldLabels;\n }\n this.exitScope();\n};\n\npp$5.isSimpleParamList = function(params) {\n for (var i = 0, list = params; i < list.length; i += 1)\n {\n var param = list[i];\n\n if (param.type !== \"Identifier\") { return false\n } }\n return true\n};\n\n// Checks function params for various disallowed patterns such as using \"eval\"\n// or \"arguments\" and duplicate parameters.\n\npp$5.checkParams = function(node, allowDuplicates) {\n var nameHash = Object.create(null);\n for (var i = 0, list = node.params; i < list.length; i += 1)\n {\n var param = list[i];\n\n this.checkLValInnerPattern(param, BIND_VAR, allowDuplicates ? null : nameHash);\n }\n};\n\n// Parses a comma-separated list of expressions, and returns them as\n// an array. `close` is the token type that ends the list, and\n// `allowEmpty` can be turned on to allow subsequent commas with\n// nothing in between them to be parsed as `null` (which is needed\n// for array literals).\n\npp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) {\n var elts = [], first = true;\n while (!this.eat(close)) {\n if (!first) {\n this.expect(types$1.comma);\n if (allowTrailingComma && this.afterTrailingComma(close)) { break }\n } else { first = false; }\n\n var elt = (void 0);\n if (allowEmpty && this.type === types$1.comma)\n { elt = null; }\n else if (this.type === types$1.ellipsis) {\n elt = this.parseSpread(refDestructuringErrors);\n if (refDestructuringErrors && this.type === types$1.comma && refDestructuringErrors.trailingComma < 0)\n { refDestructuringErrors.trailingComma = this.start; }\n } else {\n elt = this.parseMaybeAssign(false, refDestructuringErrors);\n }\n elts.push(elt);\n }\n return elts\n};\n\npp$5.checkUnreserved = function(ref) {\n var start = ref.start;\n var end = ref.end;\n var name = ref.name;\n\n if (this.inGenerator && name === \"yield\")\n { this.raiseRecoverable(start, \"Cannot use 'yield' as identifier inside a generator\"); }\n if (this.inAsync && name === \"await\")\n { this.raiseRecoverable(start, \"Cannot use 'await' as identifier inside an async function\"); }\n if (this.currentThisScope().inClassFieldInit && name === \"arguments\")\n { this.raiseRecoverable(start, \"Cannot use 'arguments' in class field initializer\"); }\n if (this.inClassStaticBlock && (name === \"arguments\" || name === \"await\"))\n { this.raise(start, (\"Cannot use \" + name + \" in class static initialization block\")); }\n if (this.keywords.test(name))\n { this.raise(start, (\"Unexpected keyword '\" + name + \"'\")); }\n if (this.options.ecmaVersion < 6 &&\n this.input.slice(start, end).indexOf(\"\\\\\") !== -1) { return }\n var re = this.strict ? this.reservedWordsStrict : this.reservedWords;\n if (re.test(name)) {\n if (!this.inAsync && name === \"await\")\n { this.raiseRecoverable(start, \"Cannot use keyword 'await' outside an async function\"); }\n this.raiseRecoverable(start, (\"The keyword '\" + name + \"' is reserved\"));\n }\n};\n\n// Parse the next token as an identifier. If `liberal` is true (used\n// when parsing properties), it will also convert keywords into\n// identifiers.\n\npp$5.parseIdent = function(liberal) {\n var node = this.parseIdentNode();\n this.next(!!liberal);\n this.finishNode(node, \"Identifier\");\n if (!liberal) {\n this.checkUnreserved(node);\n if (node.name === \"await\" && !this.awaitIdentPos)\n { this.awaitIdentPos = node.start; }\n }\n return node\n};\n\npp$5.parseIdentNode = function() {\n var node = this.startNode();\n if (this.type === types$1.name) {\n node.name = this.value;\n } else if (this.type.keyword) {\n node.name = this.type.keyword;\n\n // To fix https://github.com/acornjs/acorn/issues/575\n // `class` and `function` keywords push new context into this.context.\n // But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name.\n // If the previous token is a dot, this does not apply because the context-managing code already ignored the keyword\n if ((node.name === \"class\" || node.name === \"function\") &&\n (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) {\n this.context.pop();\n }\n this.type = types$1.name;\n } else {\n this.unexpected();\n }\n return node\n};\n\npp$5.parsePrivateIdent = function() {\n var node = this.startNode();\n if (this.type === types$1.privateId) {\n node.name = this.value;\n } else {\n this.unexpected();\n }\n this.next();\n this.finishNode(node, \"PrivateIdentifier\");\n\n // For validating existence\n if (this.options.checkPrivateFields) {\n if (this.privateNameStack.length === 0) {\n this.raise(node.start, (\"Private field '#\" + (node.name) + \"' must be declared in an enclosing class\"));\n } else {\n this.privateNameStack[this.privateNameStack.length - 1].used.push(node);\n }\n }\n\n return node\n};\n\n// Parses yield expression inside generator.\n\npp$5.parseYield = function(forInit) {\n if (!this.yieldPos) { this.yieldPos = this.start; }\n\n var node = this.startNode();\n this.next();\n if (this.type === types$1.semi || this.canInsertSemicolon() || (this.type !== types$1.star && !this.type.startsExpr)) {\n node.delegate = false;\n node.argument = null;\n } else {\n node.delegate = this.eat(types$1.star);\n node.argument = this.parseMaybeAssign(forInit);\n }\n return this.finishNode(node, \"YieldExpression\")\n};\n\npp$5.parseAwait = function(forInit) {\n if (!this.awaitPos) { this.awaitPos = this.start; }\n\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeUnary(null, true, false, forInit);\n return this.finishNode(node, \"AwaitExpression\")\n};\n\nvar pp$4 = Parser.prototype;\n\n// This function is used to raise exceptions on parse errors. It\n// takes an offset integer (into the current `input`) to indicate\n// the location of the error, attaches the position to the end\n// of the error message, and then raises a `SyntaxError` with that\n// message.\n\npp$4.raise = function(pos, message) {\n var loc = getLineInfo(this.input, pos);\n message += \" (\" + loc.line + \":\" + loc.column + \")\";\n var err = new SyntaxError(message);\n err.pos = pos; err.loc = loc; err.raisedAt = this.pos;\n throw err\n};\n\npp$4.raiseRecoverable = pp$4.raise;\n\npp$4.curPosition = function() {\n if (this.options.locations) {\n return new Position(this.curLine, this.pos - this.lineStart)\n }\n};\n\nvar pp$3 = Parser.prototype;\n\nvar Scope = function Scope(flags) {\n this.flags = flags;\n // A list of var-declared names in the current lexical scope\n this.var = [];\n // A list of lexically-declared names in the current lexical scope\n this.lexical = [];\n // A list of lexically-declared FunctionDeclaration names in the current lexical scope\n this.functions = [];\n // A switch to disallow the identifier reference 'arguments'\n this.inClassFieldInit = false;\n};\n\n// The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names.\n\npp$3.enterScope = function(flags) {\n this.scopeStack.push(new Scope(flags));\n};\n\npp$3.exitScope = function() {\n this.scopeStack.pop();\n};\n\n// The spec says:\n// > At the top level of a function, or script, function declarations are\n// > treated like var declarations rather than like lexical declarations.\npp$3.treatFunctionsAsVarInScope = function(scope) {\n return (scope.flags & SCOPE_FUNCTION) || !this.inModule && (scope.flags & SCOPE_TOP)\n};\n\npp$3.declareName = function(name, bindingType, pos) {\n var redeclared = false;\n if (bindingType === BIND_LEXICAL) {\n var scope = this.currentScope();\n redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1;\n scope.lexical.push(name);\n if (this.inModule && (scope.flags & SCOPE_TOP))\n { delete this.undefinedExports[name]; }\n } else if (bindingType === BIND_SIMPLE_CATCH) {\n var scope$1 = this.currentScope();\n scope$1.lexical.push(name);\n } else if (bindingType === BIND_FUNCTION) {\n var scope$2 = this.currentScope();\n if (this.treatFunctionsAsVar)\n { redeclared = scope$2.lexical.indexOf(name) > -1; }\n else\n { redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1; }\n scope$2.functions.push(name);\n } else {\n for (var i = this.scopeStack.length - 1; i >= 0; --i) {\n var scope$3 = this.scopeStack[i];\n if (scope$3.lexical.indexOf(name) > -1 && !((scope$3.flags & SCOPE_SIMPLE_CATCH) && scope$3.lexical[0] === name) ||\n !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) {\n redeclared = true;\n break\n }\n scope$3.var.push(name);\n if (this.inModule && (scope$3.flags & SCOPE_TOP))\n { delete this.undefinedExports[name]; }\n if (scope$3.flags & SCOPE_VAR) { break }\n }\n }\n if (redeclared) { this.raiseRecoverable(pos, (\"Identifier '\" + name + \"' has already been declared\")); }\n};\n\npp$3.checkLocalExport = function(id) {\n // scope.functions must be empty as Module code is always strict.\n if (this.scopeStack[0].lexical.indexOf(id.name) === -1 &&\n this.scopeStack[0].var.indexOf(id.name) === -1) {\n this.undefinedExports[id.name] = id;\n }\n};\n\npp$3.currentScope = function() {\n return this.scopeStack[this.scopeStack.length - 1]\n};\n\npp$3.currentVarScope = function() {\n for (var i = this.scopeStack.length - 1;; i--) {\n var scope = this.scopeStack[i];\n if (scope.flags & SCOPE_VAR) { return scope }\n }\n};\n\n// Could be useful for `this`, `new.target`, `super()`, `super.property`, and `super[property]`.\npp$3.currentThisScope = function() {\n for (var i = this.scopeStack.length - 1;; i--) {\n var scope = this.scopeStack[i];\n if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW)) { return scope }\n }\n};\n\nvar Node = function Node(parser, pos, loc) {\n this.type = \"\";\n this.start = pos;\n this.end = 0;\n if (parser.options.locations)\n { this.loc = new SourceLocation(parser, loc); }\n if (parser.options.directSourceFile)\n { this.sourceFile = parser.options.directSourceFile; }\n if (parser.options.ranges)\n { this.range = [pos, 0]; }\n};\n\n// Start an AST node, attaching a start offset.\n\nvar pp$2 = Parser.prototype;\n\npp$2.startNode = function() {\n return new Node(this, this.start, this.startLoc)\n};\n\npp$2.startNodeAt = function(pos, loc) {\n return new Node(this, pos, loc)\n};\n\n// Finish an AST node, adding `type` and `end` properties.\n\nfunction finishNodeAt(node, type, pos, loc) {\n node.type = type;\n node.end = pos;\n if (this.options.locations)\n { node.loc.end = loc; }\n if (this.options.ranges)\n { node.range[1] = pos; }\n return node\n}\n\npp$2.finishNode = function(node, type) {\n return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc)\n};\n\n// Finish node at given position\n\npp$2.finishNodeAt = function(node, type, pos, loc) {\n return finishNodeAt.call(this, node, type, pos, loc)\n};\n\npp$2.copyNode = function(node) {\n var newNode = new Node(this, node.start, this.startLoc);\n for (var prop in node) { newNode[prop] = node[prop]; }\n return newNode\n};\n\n// This file contains Unicode properties extracted from the ECMAScript specification.\n// The lists are extracted like so:\n// $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)\n\n// #table-binary-unicode-properties\nvar ecma9BinaryProperties = \"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\";\nvar ecma10BinaryProperties = ecma9BinaryProperties + \" Extended_Pictographic\";\nvar ecma11BinaryProperties = ecma10BinaryProperties;\nvar ecma12BinaryProperties = ecma11BinaryProperties + \" EBase EComp EMod EPres ExtPict\";\nvar ecma13BinaryProperties = ecma12BinaryProperties;\nvar ecma14BinaryProperties = ecma13BinaryProperties;\n\nvar unicodeBinaryProperties = {\n 9: ecma9BinaryProperties,\n 10: ecma10BinaryProperties,\n 11: ecma11BinaryProperties,\n 12: ecma12BinaryProperties,\n 13: ecma13BinaryProperties,\n 14: ecma14BinaryProperties\n};\n\n// #table-binary-unicode-properties-of-strings\nvar ecma14BinaryPropertiesOfStrings = \"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji\";\n\nvar unicodeBinaryPropertiesOfStrings = {\n 9: \"\",\n 10: \"\",\n 11: \"\",\n 12: \"\",\n 13: \"\",\n 14: ecma14BinaryPropertiesOfStrings\n};\n\n// #table-unicode-general-category-values\nvar unicodeGeneralCategoryValues = \"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\";\n\n// #table-unicode-script-values\nvar ecma9ScriptValues = \"Adlam Adlm 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 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\";\nvar ecma10ScriptValues = ecma9ScriptValues + \" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd\";\nvar ecma11ScriptValues = ecma10ScriptValues + \" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho\";\nvar ecma12ScriptValues = ecma11ScriptValues + \" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi\";\nvar ecma13ScriptValues = ecma12ScriptValues + \" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith\";\nvar ecma14ScriptValues = ecma13ScriptValues + \" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz\";\n\nvar unicodeScriptValues = {\n 9: ecma9ScriptValues,\n 10: ecma10ScriptValues,\n 11: ecma11ScriptValues,\n 12: ecma12ScriptValues,\n 13: ecma13ScriptValues,\n 14: ecma14ScriptValues\n};\n\nvar data = {};\nfunction buildUnicodeData(ecmaVersion) {\n var d = data[ecmaVersion] = {\n binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + \" \" + unicodeGeneralCategoryValues),\n binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion]),\n nonBinary: {\n General_Category: wordsRegexp(unicodeGeneralCategoryValues),\n Script: wordsRegexp(unicodeScriptValues[ecmaVersion])\n }\n };\n d.nonBinary.Script_Extensions = d.nonBinary.Script;\n\n d.nonBinary.gc = d.nonBinary.General_Category;\n d.nonBinary.sc = d.nonBinary.Script;\n d.nonBinary.scx = d.nonBinary.Script_Extensions;\n}\n\nfor (var i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) {\n var ecmaVersion = list[i];\n\n buildUnicodeData(ecmaVersion);\n}\n\nvar pp$1 = Parser.prototype;\n\n// Track disjunction structure to determine whether a duplicate\n// capture group name is allowed because it is in a separate branch.\nvar BranchID = function BranchID(parent, base) {\n // Parent disjunction branch\n this.parent = parent;\n // Identifies this set of sibling branches\n this.base = base || this;\n};\n\nBranchID.prototype.separatedFrom = function separatedFrom (alt) {\n // A branch is separate from another branch if they or any of\n // their parents are siblings in a given disjunction\n for (var self = this; self; self = self.parent) {\n for (var other = alt; other; other = other.parent) {\n if (self.base === other.base && self !== other) { return true }\n }\n }\n return false\n};\n\nBranchID.prototype.sibling = function sibling () {\n return new BranchID(this.parent, this.base)\n};\n\nvar RegExpValidationState = function RegExpValidationState(parser) {\n this.parser = parser;\n this.validFlags = \"gim\" + (parser.options.ecmaVersion >= 6 ? \"uy\" : \"\") + (parser.options.ecmaVersion >= 9 ? \"s\" : \"\") + (parser.options.ecmaVersion >= 13 ? \"d\" : \"\") + (parser.options.ecmaVersion >= 15 ? \"v\" : \"\");\n this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];\n this.source = \"\";\n this.flags = \"\";\n this.start = 0;\n this.switchU = false;\n this.switchV = false;\n this.switchN = false;\n this.pos = 0;\n this.lastIntValue = 0;\n this.lastStringValue = \"\";\n this.lastAssertionIsQuantifiable = false;\n this.numCapturingParens = 0;\n this.maxBackReference = 0;\n this.groupNames = Object.create(null);\n this.backReferenceNames = [];\n this.branchID = null;\n};\n\nRegExpValidationState.prototype.reset = function reset (start, pattern, flags) {\n var unicodeSets = flags.indexOf(\"v\") !== -1;\n var unicode = flags.indexOf(\"u\") !== -1;\n this.start = start | 0;\n this.source = pattern + \"\";\n this.flags = flags;\n if (unicodeSets && this.parser.options.ecmaVersion >= 15) {\n this.switchU = true;\n this.switchV = true;\n this.switchN = true;\n } else {\n this.switchU = unicode && this.parser.options.ecmaVersion >= 6;\n this.switchV = false;\n this.switchN = unicode && this.parser.options.ecmaVersion >= 9;\n }\n};\n\nRegExpValidationState.prototype.raise = function raise (message) {\n this.parser.raiseRecoverable(this.start, (\"Invalid regular expression: /\" + (this.source) + \"/: \" + message));\n};\n\n// If u flag is given, this returns the code point at the index (it combines a surrogate pair).\n// Otherwise, this returns the code unit of the index (can be a part of a surrogate pair).\nRegExpValidationState.prototype.at = function at (i, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var s = this.source;\n var l = s.length;\n if (i >= l) {\n return -1\n }\n var c = s.charCodeAt(i);\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) {\n return c\n }\n var next = s.charCodeAt(i + 1);\n return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c\n};\n\nRegExpValidationState.prototype.nextIndex = function nextIndex (i, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var s = this.source;\n var l = s.length;\n if (i >= l) {\n return l\n }\n var c = s.charCodeAt(i), next;\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l ||\n (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) {\n return i + 1\n }\n return i + 2\n};\n\nRegExpValidationState.prototype.current = function current (forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n return this.at(this.pos, forceU)\n};\n\nRegExpValidationState.prototype.lookahead = function lookahead (forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n return this.at(this.nextIndex(this.pos, forceU), forceU)\n};\n\nRegExpValidationState.prototype.advance = function advance (forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n this.pos = this.nextIndex(this.pos, forceU);\n};\n\nRegExpValidationState.prototype.eat = function eat (ch, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n if (this.current(forceU) === ch) {\n this.advance(forceU);\n return true\n }\n return false\n};\n\nRegExpValidationState.prototype.eatChars = function eatChars (chs, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var pos = this.pos;\n for (var i = 0, list = chs; i < list.length; i += 1) {\n var ch = list[i];\n\n var current = this.at(pos, forceU);\n if (current === -1 || current !== ch) {\n return false\n }\n pos = this.nextIndex(pos, forceU);\n }\n this.pos = pos;\n return true\n};\n\n/**\n * Validate the flags part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */\npp$1.validateRegExpFlags = function(state) {\n var validFlags = state.validFlags;\n var flags = state.flags;\n\n var u = false;\n var v = false;\n\n for (var i = 0; i < flags.length; i++) {\n var flag = flags.charAt(i);\n if (validFlags.indexOf(flag) === -1) {\n this.raise(state.start, \"Invalid regular expression flag\");\n }\n if (flags.indexOf(flag, i + 1) > -1) {\n this.raise(state.start, \"Duplicate regular expression flag\");\n }\n if (flag === \"u\") { u = true; }\n if (flag === \"v\") { v = true; }\n }\n if (this.options.ecmaVersion >= 15 && u && v) {\n this.raise(state.start, \"Invalid regular expression flag\");\n }\n};\n\nfunction hasProp(obj) {\n for (var _ in obj) { return true }\n return false\n}\n\n/**\n * Validate the pattern part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */\npp$1.validateRegExpPattern = function(state) {\n this.regexp_pattern(state);\n\n // The goal symbol for the parse is |Pattern[~U, ~N]|. If the result of\n // parsing contains a |GroupName|, reparse with the goal symbol\n // |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError*\n // exception if _P_ did not conform to the grammar, if any elements of _P_\n // were not matched by the parse, or if any Early Error conditions exist.\n if (!state.switchN && this.options.ecmaVersion >= 9 && hasProp(state.groupNames)) {\n state.switchN = true;\n this.regexp_pattern(state);\n }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern\npp$1.regexp_pattern = function(state) {\n state.pos = 0;\n state.lastIntValue = 0;\n state.lastStringValue = \"\";\n state.lastAssertionIsQuantifiable = false;\n state.numCapturingParens = 0;\n state.maxBackReference = 0;\n state.groupNames = Object.create(null);\n state.backReferenceNames.length = 0;\n state.branchID = null;\n\n this.regexp_disjunction(state);\n\n if (state.pos !== state.source.length) {\n // Make the same messages as V8.\n if (state.eat(0x29 /* ) */)) {\n state.raise(\"Unmatched ')'\");\n }\n if (state.eat(0x5D /* ] */) || state.eat(0x7D /* } */)) {\n state.raise(\"Lone quantifier brackets\");\n }\n }\n if (state.maxBackReference > state.numCapturingParens) {\n state.raise(\"Invalid escape\");\n }\n for (var i = 0, list = state.backReferenceNames; i < list.length; i += 1) {\n var name = list[i];\n\n if (!state.groupNames[name]) {\n state.raise(\"Invalid named capture referenced\");\n }\n }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction\npp$1.regexp_disjunction = function(state) {\n var trackDisjunction = this.options.ecmaVersion >= 16;\n if (trackDisjunction) { state.branchID = new BranchID(state.branchID, null); }\n this.regexp_alternative(state);\n while (state.eat(0x7C /* | */)) {\n if (trackDisjunction) { state.branchID = state.branchID.sibling(); }\n this.regexp_alternative(state);\n }\n if (trackDisjunction) { state.branchID = state.branchID.parent; }\n\n // Make the same message as V8.\n if (this.regexp_eatQuantifier(state, true)) {\n state.raise(\"Nothing to repeat\");\n }\n if (state.eat(0x7B /* { */)) {\n state.raise(\"Lone quantifier brackets\");\n }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative\npp$1.regexp_alternative = function(state) {\n while (state.pos < state.source.length && this.regexp_eatTerm(state)) {}\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term\npp$1.regexp_eatTerm = function(state) {\n if (this.regexp_eatAssertion(state)) {\n // Handle `QuantifiableAssertion Quantifier` alternative.\n // `state.lastAssertionIsQuantifiable` is true if the last eaten Assertion\n // is a QuantifiableAssertion.\n if (state.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(state)) {\n // Make the same message as V8.\n if (state.switchU) {\n state.raise(\"Invalid quantifier\");\n }\n }\n return true\n }\n\n if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) {\n this.regexp_eatQuantifier(state);\n return true\n }\n\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion\npp$1.regexp_eatAssertion = function(state) {\n var start = state.pos;\n state.lastAssertionIsQuantifiable = false;\n\n // ^, $\n if (state.eat(0x5E /* ^ */) || state.eat(0x24 /* $ */)) {\n return true\n }\n\n // \\b \\B\n if (state.eat(0x5C /* \\ */)) {\n if (state.eat(0x42 /* B */) || state.eat(0x62 /* b */)) {\n return true\n }\n state.pos = start;\n }\n\n // Lookahead / Lookbehind\n if (state.eat(0x28 /* ( */) && state.eat(0x3F /* ? */)) {\n var lookbehind = false;\n if (this.options.ecmaVersion >= 9) {\n lookbehind = state.eat(0x3C /* < */);\n }\n if (state.eat(0x3D /* = */) || state.eat(0x21 /* ! */)) {\n this.regexp_disjunction(state);\n if (!state.eat(0x29 /* ) */)) {\n state.raise(\"Unterminated group\");\n }\n state.lastAssertionIsQuantifiable = !lookbehind;\n return true\n }\n }\n\n state.pos = start;\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier\npp$1.regexp_eatQuantifier = function(state, noError) {\n if ( noError === void 0 ) noError = false;\n\n if (this.regexp_eatQuantifierPrefix(state, noError)) {\n state.eat(0x3F /* ? */);\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix\npp$1.regexp_eatQuantifierPrefix = function(state, noError) {\n return (\n state.eat(0x2A /* * */) ||\n state.eat(0x2B /* + */) ||\n state.eat(0x3F /* ? */) ||\n this.regexp_eatBracedQuantifier(state, noError)\n )\n};\npp$1.regexp_eatBracedQuantifier = function(state, noError) {\n var start = state.pos;\n if (state.eat(0x7B /* { */)) {\n var min = 0, max = -1;\n if (this.regexp_eatDecimalDigits(state)) {\n min = state.lastIntValue;\n if (state.eat(0x2C /* , */) && this.regexp_eatDecimalDigits(state)) {\n max = state.lastIntValue;\n }\n if (state.eat(0x7D /* } */)) {\n // SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-term\n if (max !== -1 && max < min && !noError) {\n state.raise(\"numbers out of order in {} quantifier\");\n }\n return true\n }\n }\n if (state.switchU && !noError) {\n state.raise(\"Incomplete quantifier\");\n }\n state.pos = start;\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Atom\npp$1.regexp_eatAtom = function(state) {\n return (\n this.regexp_eatPatternCharacters(state) ||\n state.eat(0x2E /* . */) ||\n this.regexp_eatReverseSolidusAtomEscape(state) ||\n this.regexp_eatCharacterClass(state) ||\n this.regexp_eatUncapturingGroup(state) ||\n this.regexp_eatCapturingGroup(state)\n )\n};\npp$1.regexp_eatReverseSolidusAtomEscape = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */)) {\n if (this.regexp_eatAtomEscape(state)) {\n return true\n }\n state.pos = start;\n }\n return false\n};\npp$1.regexp_eatUncapturingGroup = function(state) {\n var start = state.pos;\n if (state.eat(0x28 /* ( */)) {\n if (state.eat(0x3F /* ? */) && state.eat(0x3A /* : */)) {\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */)) {\n return true\n }\n state.raise(\"Unterminated group\");\n }\n state.pos = start;\n }\n return false\n};\npp$1.regexp_eatCapturingGroup = function(state) {\n if (state.eat(0x28 /* ( */)) {\n if (this.options.ecmaVersion >= 9) {\n this.regexp_groupSpecifier(state);\n } else if (state.current() === 0x3F /* ? */) {\n state.raise(\"Invalid group\");\n }\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */)) {\n state.numCapturingParens += 1;\n return true\n }\n state.raise(\"Unterminated group\");\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom\npp$1.regexp_eatExtendedAtom = function(state) {\n return (\n state.eat(0x2E /* . */) ||\n this.regexp_eatReverseSolidusAtomEscape(state) ||\n this.regexp_eatCharacterClass(state) ||\n this.regexp_eatUncapturingGroup(state) ||\n this.regexp_eatCapturingGroup(state) ||\n this.regexp_eatInvalidBracedQuantifier(state) ||\n this.regexp_eatExtendedPatternCharacter(state)\n )\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier\npp$1.regexp_eatInvalidBracedQuantifier = function(state) {\n if (this.regexp_eatBracedQuantifier(state, true)) {\n state.raise(\"Nothing to repeat\");\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter\npp$1.regexp_eatSyntaxCharacter = function(state) {\n var ch = state.current();\n if (isSyntaxCharacter(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n return false\n};\nfunction isSyntaxCharacter(ch) {\n return (\n ch === 0x24 /* $ */ ||\n ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ ||\n ch === 0x2E /* . */ ||\n ch === 0x3F /* ? */ ||\n ch >= 0x5B /* [ */ && ch <= 0x5E /* ^ */ ||\n ch >= 0x7B /* { */ && ch <= 0x7D /* } */\n )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter\n// But eat eager.\npp$1.regexp_eatPatternCharacters = function(state) {\n var start = state.pos;\n var ch = 0;\n while ((ch = state.current()) !== -1 && !isSyntaxCharacter(ch)) {\n state.advance();\n }\n return state.pos !== start\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter\npp$1.regexp_eatExtendedPatternCharacter = function(state) {\n var ch = state.current();\n if (\n ch !== -1 &&\n ch !== 0x24 /* $ */ &&\n !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */) &&\n ch !== 0x2E /* . */ &&\n ch !== 0x3F /* ? */ &&\n ch !== 0x5B /* [ */ &&\n ch !== 0x5E /* ^ */ &&\n ch !== 0x7C /* | */\n ) {\n state.advance();\n return true\n }\n return false\n};\n\n// GroupSpecifier ::\n// [empty]\n// `?` GroupName\npp$1.regexp_groupSpecifier = function(state) {\n if (state.eat(0x3F /* ? */)) {\n if (!this.regexp_eatGroupName(state)) { state.raise(\"Invalid group\"); }\n var trackDisjunction = this.options.ecmaVersion >= 16;\n var known = state.groupNames[state.lastStringValue];\n if (known) {\n if (trackDisjunction) {\n for (var i = 0, list = known; i < list.length; i += 1) {\n var altID = list[i];\n\n if (!altID.separatedFrom(state.branchID))\n { state.raise(\"Duplicate capture group name\"); }\n }\n } else {\n state.raise(\"Duplicate capture group name\");\n }\n }\n if (trackDisjunction) {\n (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);\n } else {\n state.groupNames[state.lastStringValue] = true;\n }\n }\n};\n\n// GroupName ::\n// `<` RegExpIdentifierName `>`\n// Note: this updates `state.lastStringValue` property with the eaten name.\npp$1.regexp_eatGroupName = function(state) {\n state.lastStringValue = \"\";\n if (state.eat(0x3C /* < */)) {\n if (this.regexp_eatRegExpIdentifierName(state) && state.eat(0x3E /* > */)) {\n return true\n }\n state.raise(\"Invalid capture group name\");\n }\n return false\n};\n\n// RegExpIdentifierName ::\n// RegExpIdentifierStart\n// RegExpIdentifierName RegExpIdentifierPart\n// Note: this updates `state.lastStringValue` property with the eaten name.\npp$1.regexp_eatRegExpIdentifierName = function(state) {\n state.lastStringValue = \"\";\n if (this.regexp_eatRegExpIdentifierStart(state)) {\n state.lastStringValue += codePointToString(state.lastIntValue);\n while (this.regexp_eatRegExpIdentifierPart(state)) {\n state.lastStringValue += codePointToString(state.lastIntValue);\n }\n return true\n }\n return false\n};\n\n// RegExpIdentifierStart ::\n// UnicodeIDStart\n// `$`\n// `_`\n// `\\` RegExpUnicodeEscapeSequence[+U]\npp$1.regexp_eatRegExpIdentifierStart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) {\n ch = state.lastIntValue;\n }\n if (isRegExpIdentifierStart(ch)) {\n state.lastIntValue = ch;\n return true\n }\n\n state.pos = start;\n return false\n};\nfunction isRegExpIdentifierStart(ch) {\n return isIdentifierStart(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */\n}\n\n// RegExpIdentifierPart ::\n// UnicodeIDContinue\n// `$`\n// `_`\n// `\\` RegExpUnicodeEscapeSequence[+U]\n// \n// \npp$1.regexp_eatRegExpIdentifierPart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) {\n ch = state.lastIntValue;\n }\n if (isRegExpIdentifierPart(ch)) {\n state.lastIntValue = ch;\n return true\n }\n\n state.pos = start;\n return false\n};\nfunction isRegExpIdentifierPart(ch) {\n return isIdentifierChar(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /* */ || ch === 0x200D /* */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape\npp$1.regexp_eatAtomEscape = function(state) {\n if (\n this.regexp_eatBackReference(state) ||\n this.regexp_eatCharacterClassEscape(state) ||\n this.regexp_eatCharacterEscape(state) ||\n (state.switchN && this.regexp_eatKGroupName(state))\n ) {\n return true\n }\n if (state.switchU) {\n // Make the same message as V8.\n if (state.current() === 0x63 /* c */) {\n state.raise(\"Invalid unicode escape\");\n }\n state.raise(\"Invalid escape\");\n }\n return false\n};\npp$1.regexp_eatBackReference = function(state) {\n var start = state.pos;\n if (this.regexp_eatDecimalEscape(state)) {\n var n = state.lastIntValue;\n if (state.switchU) {\n // For SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-atomescape\n if (n > state.maxBackReference) {\n state.maxBackReference = n;\n }\n return true\n }\n if (n <= state.numCapturingParens) {\n return true\n }\n state.pos = start;\n }\n return false\n};\npp$1.regexp_eatKGroupName = function(state) {\n if (state.eat(0x6B /* k */)) {\n if (this.regexp_eatGroupName(state)) {\n state.backReferenceNames.push(state.lastStringValue);\n return true\n }\n state.raise(\"Invalid named reference\");\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape\npp$1.regexp_eatCharacterEscape = function(state) {\n return (\n this.regexp_eatControlEscape(state) ||\n this.regexp_eatCControlLetter(state) ||\n this.regexp_eatZero(state) ||\n this.regexp_eatHexEscapeSequence(state) ||\n this.regexp_eatRegExpUnicodeEscapeSequence(state, false) ||\n (!state.switchU && this.regexp_eatLegacyOctalEscapeSequence(state)) ||\n this.regexp_eatIdentityEscape(state)\n )\n};\npp$1.regexp_eatCControlLetter = function(state) {\n var start = state.pos;\n if (state.eat(0x63 /* c */)) {\n if (this.regexp_eatControlLetter(state)) {\n return true\n }\n state.pos = start;\n }\n return false\n};\npp$1.regexp_eatZero = function(state) {\n if (state.current() === 0x30 /* 0 */ && !isDecimalDigit(state.lookahead())) {\n state.lastIntValue = 0;\n state.advance();\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape\npp$1.regexp_eatControlEscape = function(state) {\n var ch = state.current();\n if (ch === 0x74 /* t */) {\n state.lastIntValue = 0x09; /* \\t */\n state.advance();\n return true\n }\n if (ch === 0x6E /* n */) {\n state.lastIntValue = 0x0A; /* \\n */\n state.advance();\n return true\n }\n if (ch === 0x76 /* v */) {\n state.lastIntValue = 0x0B; /* \\v */\n state.advance();\n return true\n }\n if (ch === 0x66 /* f */) {\n state.lastIntValue = 0x0C; /* \\f */\n state.advance();\n return true\n }\n if (ch === 0x72 /* r */) {\n state.lastIntValue = 0x0D; /* \\r */\n state.advance();\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter\npp$1.regexp_eatControlLetter = function(state) {\n var ch = state.current();\n if (isControlLetter(ch)) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true\n }\n return false\n};\nfunction isControlLetter(ch) {\n return (\n (ch >= 0x41 /* A */ && ch <= 0x5A /* Z */) ||\n (ch >= 0x61 /* a */ && ch <= 0x7A /* z */)\n )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence\npp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {\n if ( forceU === void 0 ) forceU = false;\n\n var start = state.pos;\n var switchU = forceU || state.switchU;\n\n if (state.eat(0x75 /* u */)) {\n if (this.regexp_eatFixedHexDigits(state, 4)) {\n var lead = state.lastIntValue;\n if (switchU && lead >= 0xD800 && lead <= 0xDBFF) {\n var leadSurrogateEnd = state.pos;\n if (state.eat(0x5C /* \\ */) && state.eat(0x75 /* u */) && this.regexp_eatFixedHexDigits(state, 4)) {\n var trail = state.lastIntValue;\n if (trail >= 0xDC00 && trail <= 0xDFFF) {\n state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000;\n return true\n }\n }\n state.pos = leadSurrogateEnd;\n state.lastIntValue = lead;\n }\n return true\n }\n if (\n switchU &&\n state.eat(0x7B /* { */) &&\n this.regexp_eatHexDigits(state) &&\n state.eat(0x7D /* } */) &&\n isValidUnicode(state.lastIntValue)\n ) {\n return true\n }\n if (switchU) {\n state.raise(\"Invalid unicode escape\");\n }\n state.pos = start;\n }\n\n return false\n};\nfunction isValidUnicode(ch) {\n return ch >= 0 && ch <= 0x10FFFF\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape\npp$1.regexp_eatIdentityEscape = function(state) {\n if (state.switchU) {\n if (this.regexp_eatSyntaxCharacter(state)) {\n return true\n }\n if (state.eat(0x2F /* / */)) {\n state.lastIntValue = 0x2F; /* / */\n return true\n }\n return false\n }\n\n var ch = state.current();\n if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */)) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape\npp$1.regexp_eatDecimalEscape = function(state) {\n state.lastIntValue = 0;\n var ch = state.current();\n if (ch >= 0x31 /* 1 */ && ch <= 0x39 /* 9 */) {\n do {\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */);\n state.advance();\n } while ((ch = state.current()) >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */)\n return true\n }\n return false\n};\n\n// Return values used by character set parsing methods, needed to\n// forbid negation of sets that can match strings.\nvar CharSetNone = 0; // Nothing parsed\nvar CharSetOk = 1; // Construct parsed, cannot contain strings\nvar CharSetString = 2; // Construct parsed, can contain strings\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape\npp$1.regexp_eatCharacterClassEscape = function(state) {\n var ch = state.current();\n\n if (isCharacterClassEscape(ch)) {\n state.lastIntValue = -1;\n state.advance();\n return CharSetOk\n }\n\n var negate = false;\n if (\n state.switchU &&\n this.options.ecmaVersion >= 9 &&\n ((negate = ch === 0x50 /* P */) || ch === 0x70 /* p */)\n ) {\n state.lastIntValue = -1;\n state.advance();\n var result;\n if (\n state.eat(0x7B /* { */) &&\n (result = this.regexp_eatUnicodePropertyValueExpression(state)) &&\n state.eat(0x7D /* } */)\n ) {\n if (negate && result === CharSetString) { state.raise(\"Invalid property name\"); }\n return result\n }\n state.raise(\"Invalid property name\");\n }\n\n return CharSetNone\n};\n\nfunction isCharacterClassEscape(ch) {\n return (\n ch === 0x64 /* d */ ||\n ch === 0x44 /* D */ ||\n ch === 0x73 /* s */ ||\n ch === 0x53 /* S */ ||\n ch === 0x77 /* w */ ||\n ch === 0x57 /* W */\n )\n}\n\n// UnicodePropertyValueExpression ::\n// UnicodePropertyName `=` UnicodePropertyValue\n// LoneUnicodePropertyNameOrValue\npp$1.regexp_eatUnicodePropertyValueExpression = function(state) {\n var start = state.pos;\n\n // UnicodePropertyName `=` UnicodePropertyValue\n if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */)) {\n var name = state.lastStringValue;\n if (this.regexp_eatUnicodePropertyValue(state)) {\n var value = state.lastStringValue;\n this.regexp_validateUnicodePropertyNameAndValue(state, name, value);\n return CharSetOk\n }\n }\n state.pos = start;\n\n // LoneUnicodePropertyNameOrValue\n if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {\n var nameOrValue = state.lastStringValue;\n return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue)\n }\n return CharSetNone\n};\n\npp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) {\n if (!hasOwn(state.unicodeProperties.nonBinary, name))\n { state.raise(\"Invalid property name\"); }\n if (!state.unicodeProperties.nonBinary[name].test(value))\n { state.raise(\"Invalid property value\"); }\n};\n\npp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {\n if (state.unicodeProperties.binary.test(nameOrValue)) { return CharSetOk }\n if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) { return CharSetString }\n state.raise(\"Invalid property name\");\n};\n\n// UnicodePropertyName ::\n// UnicodePropertyNameCharacters\npp$1.regexp_eatUnicodePropertyName = function(state) {\n var ch = 0;\n state.lastStringValue = \"\";\n while (isUnicodePropertyNameCharacter(ch = state.current())) {\n state.lastStringValue += codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== \"\"\n};\n\nfunction isUnicodePropertyNameCharacter(ch) {\n return isControlLetter(ch) || ch === 0x5F /* _ */\n}\n\n// UnicodePropertyValue ::\n// UnicodePropertyValueCharacters\npp$1.regexp_eatUnicodePropertyValue = function(state) {\n var ch = 0;\n state.lastStringValue = \"\";\n while (isUnicodePropertyValueCharacter(ch = state.current())) {\n state.lastStringValue += codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== \"\"\n};\nfunction isUnicodePropertyValueCharacter(ch) {\n return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch)\n}\n\n// LoneUnicodePropertyNameOrValue ::\n// UnicodePropertyValueCharacters\npp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {\n return this.regexp_eatUnicodePropertyValue(state)\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass\npp$1.regexp_eatCharacterClass = function(state) {\n if (state.eat(0x5B /* [ */)) {\n var negate = state.eat(0x5E /* ^ */);\n var result = this.regexp_classContents(state);\n if (!state.eat(0x5D /* ] */))\n { state.raise(\"Unterminated character class\"); }\n if (negate && result === CharSetString)\n { state.raise(\"Negated character class may contain strings\"); }\n return true\n }\n return false\n};\n\n// https://tc39.es/ecma262/#prod-ClassContents\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges\npp$1.regexp_classContents = function(state) {\n if (state.current() === 0x5D /* ] */) { return CharSetOk }\n if (state.switchV) { return this.regexp_classSetExpression(state) }\n this.regexp_nonEmptyClassRanges(state);\n return CharSetOk\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash\npp$1.regexp_nonEmptyClassRanges = function(state) {\n while (this.regexp_eatClassAtom(state)) {\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */) && this.regexp_eatClassAtom(state)) {\n var right = state.lastIntValue;\n if (state.switchU && (left === -1 || right === -1)) {\n state.raise(\"Invalid character class\");\n }\n if (left !== -1 && right !== -1 && left > right) {\n state.raise(\"Range out of order in character class\");\n }\n }\n }\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash\npp$1.regexp_eatClassAtom = function(state) {\n var start = state.pos;\n\n if (state.eat(0x5C /* \\ */)) {\n if (this.regexp_eatClassEscape(state)) {\n return true\n }\n if (state.switchU) {\n // Make the same message as V8.\n var ch$1 = state.current();\n if (ch$1 === 0x63 /* c */ || isOctalDigit(ch$1)) {\n state.raise(\"Invalid class escape\");\n }\n state.raise(\"Invalid escape\");\n }\n state.pos = start;\n }\n\n var ch = state.current();\n if (ch !== 0x5D /* ] */) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape\npp$1.regexp_eatClassEscape = function(state) {\n var start = state.pos;\n\n if (state.eat(0x62 /* b */)) {\n state.lastIntValue = 0x08; /* */\n return true\n }\n\n if (state.switchU && state.eat(0x2D /* - */)) {\n state.lastIntValue = 0x2D; /* - */\n return true\n }\n\n if (!state.switchU && state.eat(0x63 /* c */)) {\n if (this.regexp_eatClassControlLetter(state)) {\n return true\n }\n state.pos = start;\n }\n\n return (\n this.regexp_eatCharacterClassEscape(state) ||\n this.regexp_eatCharacterEscape(state)\n )\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetExpression\n// https://tc39.es/ecma262/#prod-ClassUnion\n// https://tc39.es/ecma262/#prod-ClassIntersection\n// https://tc39.es/ecma262/#prod-ClassSubtraction\npp$1.regexp_classSetExpression = function(state) {\n var result = CharSetOk, subResult;\n if (this.regexp_eatClassSetRange(state)) ; else if (subResult = this.regexp_eatClassSetOperand(state)) {\n if (subResult === CharSetString) { result = CharSetString; }\n // https://tc39.es/ecma262/#prod-ClassIntersection\n var start = state.pos;\n while (state.eatChars([0x26, 0x26] /* && */)) {\n if (\n state.current() !== 0x26 /* & */ &&\n (subResult = this.regexp_eatClassSetOperand(state))\n ) {\n if (subResult !== CharSetString) { result = CharSetOk; }\n continue\n }\n state.raise(\"Invalid character in character class\");\n }\n if (start !== state.pos) { return result }\n // https://tc39.es/ecma262/#prod-ClassSubtraction\n while (state.eatChars([0x2D, 0x2D] /* -- */)) {\n if (this.regexp_eatClassSetOperand(state)) { continue }\n state.raise(\"Invalid character in character class\");\n }\n if (start !== state.pos) { return result }\n } else {\n state.raise(\"Invalid character in character class\");\n }\n // https://tc39.es/ecma262/#prod-ClassUnion\n for (;;) {\n if (this.regexp_eatClassSetRange(state)) { continue }\n subResult = this.regexp_eatClassSetOperand(state);\n if (!subResult) { return result }\n if (subResult === CharSetString) { result = CharSetString; }\n }\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetRange\npp$1.regexp_eatClassSetRange = function(state) {\n var start = state.pos;\n if (this.regexp_eatClassSetCharacter(state)) {\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */) && this.regexp_eatClassSetCharacter(state)) {\n var right = state.lastIntValue;\n if (left !== -1 && right !== -1 && left > right) {\n state.raise(\"Range out of order in character class\");\n }\n return true\n }\n state.pos = start;\n }\n return false\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetOperand\npp$1.regexp_eatClassSetOperand = function(state) {\n if (this.regexp_eatClassSetCharacter(state)) { return CharSetOk }\n return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state)\n};\n\n// https://tc39.es/ecma262/#prod-NestedClass\npp$1.regexp_eatNestedClass = function(state) {\n var start = state.pos;\n if (state.eat(0x5B /* [ */)) {\n var negate = state.eat(0x5E /* ^ */);\n var result = this.regexp_classContents(state);\n if (state.eat(0x5D /* ] */)) {\n if (negate && result === CharSetString) {\n state.raise(\"Negated character class may contain strings\");\n }\n return result\n }\n state.pos = start;\n }\n if (state.eat(0x5C /* \\ */)) {\n var result$1 = this.regexp_eatCharacterClassEscape(state);\n if (result$1) {\n return result$1\n }\n state.pos = start;\n }\n return null\n};\n\n// https://tc39.es/ecma262/#prod-ClassStringDisjunction\npp$1.regexp_eatClassStringDisjunction = function(state) {\n var start = state.pos;\n if (state.eatChars([0x5C, 0x71] /* \\q */)) {\n if (state.eat(0x7B /* { */)) {\n var result = this.regexp_classStringDisjunctionContents(state);\n if (state.eat(0x7D /* } */)) {\n return result\n }\n } else {\n // Make the same message as V8.\n state.raise(\"Invalid escape\");\n }\n state.pos = start;\n }\n return null\n};\n\n// https://tc39.es/ecma262/#prod-ClassStringDisjunctionContents\npp$1.regexp_classStringDisjunctionContents = function(state) {\n var result = this.regexp_classString(state);\n while (state.eat(0x7C /* | */)) {\n if (this.regexp_classString(state) === CharSetString) { result = CharSetString; }\n }\n return result\n};\n\n// https://tc39.es/ecma262/#prod-ClassString\n// https://tc39.es/ecma262/#prod-NonEmptyClassString\npp$1.regexp_classString = function(state) {\n var count = 0;\n while (this.regexp_eatClassSetCharacter(state)) { count++; }\n return count === 1 ? CharSetOk : CharSetString\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetCharacter\npp$1.regexp_eatClassSetCharacter = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */)) {\n if (\n this.regexp_eatCharacterEscape(state) ||\n this.regexp_eatClassSetReservedPunctuator(state)\n ) {\n return true\n }\n if (state.eat(0x62 /* b */)) {\n state.lastIntValue = 0x08; /* */\n return true\n }\n state.pos = start;\n return false\n }\n var ch = state.current();\n if (ch < 0 || ch === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter(ch)) { return false }\n if (isClassSetSyntaxCharacter(ch)) { return false }\n state.advance();\n state.lastIntValue = ch;\n return true\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetReservedDoublePunctuator\nfunction isClassSetReservedDoublePunctuatorCharacter(ch) {\n return (\n ch === 0x21 /* ! */ ||\n ch >= 0x23 /* # */ && ch <= 0x26 /* & */ ||\n ch >= 0x2A /* * */ && ch <= 0x2C /* , */ ||\n ch === 0x2E /* . */ ||\n ch >= 0x3A /* : */ && ch <= 0x40 /* @ */ ||\n ch === 0x5E /* ^ */ ||\n ch === 0x60 /* ` */ ||\n ch === 0x7E /* ~ */\n )\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetSyntaxCharacter\nfunction isClassSetSyntaxCharacter(ch) {\n return (\n ch === 0x28 /* ( */ ||\n ch === 0x29 /* ) */ ||\n ch === 0x2D /* - */ ||\n ch === 0x2F /* / */ ||\n ch >= 0x5B /* [ */ && ch <= 0x5D /* ] */ ||\n ch >= 0x7B /* { */ && ch <= 0x7D /* } */\n )\n}\n\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\npp$1.regexp_eatClassSetReservedPunctuator = function(state) {\n var ch = state.current();\n if (isClassSetReservedPunctuator(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true\n }\n return false\n};\n\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\nfunction isClassSetReservedPunctuator(ch) {\n return (\n ch === 0x21 /* ! */ ||\n ch === 0x23 /* # */ ||\n ch === 0x25 /* % */ ||\n ch === 0x26 /* & */ ||\n ch === 0x2C /* , */ ||\n ch === 0x2D /* - */ ||\n ch >= 0x3A /* : */ && ch <= 0x3E /* > */ ||\n ch === 0x40 /* @ */ ||\n ch === 0x60 /* ` */ ||\n ch === 0x7E /* ~ */\n )\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter\npp$1.regexp_eatClassControlLetter = function(state) {\n var ch = state.current();\n if (isDecimalDigit(ch) || ch === 0x5F /* _ */) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\npp$1.regexp_eatHexEscapeSequence = function(state) {\n var start = state.pos;\n if (state.eat(0x78 /* x */)) {\n if (this.regexp_eatFixedHexDigits(state, 2)) {\n return true\n }\n if (state.switchU) {\n state.raise(\"Invalid escape\");\n }\n state.pos = start;\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits\npp$1.regexp_eatDecimalDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while (isDecimalDigit(ch = state.current())) {\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */);\n state.advance();\n }\n return state.pos !== start\n};\nfunction isDecimalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits\npp$1.regexp_eatHexDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while (isHexDigit(ch = state.current())) {\n state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch);\n state.advance();\n }\n return state.pos !== start\n};\nfunction isHexDigit(ch) {\n return (\n (ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */) ||\n (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) ||\n (ch >= 0x61 /* a */ && ch <= 0x66 /* f */)\n )\n}\nfunction hexToInt(ch) {\n if (ch >= 0x41 /* A */ && ch <= 0x46 /* F */) {\n return 10 + (ch - 0x41 /* A */)\n }\n if (ch >= 0x61 /* a */ && ch <= 0x66 /* f */) {\n return 10 + (ch - 0x61 /* a */)\n }\n return ch - 0x30 /* 0 */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence\n// Allows only 0-377(octal) i.e. 0-255(decimal).\npp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {\n if (this.regexp_eatOctalDigit(state)) {\n var n1 = state.lastIntValue;\n if (this.regexp_eatOctalDigit(state)) {\n var n2 = state.lastIntValue;\n if (n1 <= 3 && this.regexp_eatOctalDigit(state)) {\n state.lastIntValue = n1 * 64 + n2 * 8 + state.lastIntValue;\n } else {\n state.lastIntValue = n1 * 8 + n2;\n }\n } else {\n state.lastIntValue = n1;\n }\n return true\n }\n return false\n};\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit\npp$1.regexp_eatOctalDigit = function(state) {\n var ch = state.current();\n if (isOctalDigit(ch)) {\n state.lastIntValue = ch - 0x30; /* 0 */\n state.advance();\n return true\n }\n state.lastIntValue = 0;\n return false\n};\nfunction isOctalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */\n}\n\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit\n// And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\npp$1.regexp_eatFixedHexDigits = function(state, length) {\n var start = state.pos;\n state.lastIntValue = 0;\n for (var i = 0; i < length; ++i) {\n var ch = state.current();\n if (!isHexDigit(ch)) {\n state.pos = start;\n return false\n }\n state.lastIntValue = 16 * state.lastIntValue + hexToInt(ch);\n state.advance();\n }\n return true\n};\n\n// Object type used to represent tokens. Note that normally, tokens\n// simply exist as properties on the parser object. This is only\n// used for the onToken callback and the external tokenizer.\n\nvar Token = function Token(p) {\n this.type = p.type;\n this.value = p.value;\n this.start = p.start;\n this.end = p.end;\n if (p.options.locations)\n { this.loc = new SourceLocation(p, p.startLoc, p.endLoc); }\n if (p.options.ranges)\n { this.range = [p.start, p.end]; }\n};\n\n// ## Tokenizer\n\nvar pp = Parser.prototype;\n\n// Move to the next token\n\npp.next = function(ignoreEscapeSequenceInKeyword) {\n if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc)\n { this.raiseRecoverable(this.start, \"Escape sequence in keyword \" + this.type.keyword); }\n if (this.options.onToken)\n { this.options.onToken(new Token(this)); }\n\n this.lastTokEnd = this.end;\n this.lastTokStart = this.start;\n this.lastTokEndLoc = this.endLoc;\n this.lastTokStartLoc = this.startLoc;\n this.nextToken();\n};\n\npp.getToken = function() {\n this.next();\n return new Token(this)\n};\n\n// If we're in an ES6 environment, make parsers iterable\nif (typeof Symbol !== \"undefined\")\n { pp[Symbol.iterator] = function() {\n var this$1$1 = this;\n\n return {\n next: function () {\n var token = this$1$1.getToken();\n return {\n done: token.type === types$1.eof,\n value: token\n }\n }\n }\n }; }\n\n// Toggle strict mode. Re-reads the next number or string to please\n// pedantic tests (`\"use strict\"; 010;` should fail).\n\n// Read a single token, updating the parser object's token-related\n// properties.\n\npp.nextToken = function() {\n var curContext = this.curContext();\n if (!curContext || !curContext.preserveSpace) { this.skipSpace(); }\n\n this.start = this.pos;\n if (this.options.locations) { this.startLoc = this.curPosition(); }\n if (this.pos >= this.input.length) { return this.finishToken(types$1.eof) }\n\n if (curContext.override) { return curContext.override(this) }\n else { this.readToken(this.fullCharCodeAtPos()); }\n};\n\npp.readToken = function(code) {\n // Identifier or keyword. '\\uXXXX' sequences are allowed in\n // identifiers, so '\\' also dispatches to that.\n if (isIdentifierStart(code, this.options.ecmaVersion >= 6) || code === 92 /* '\\' */)\n { return this.readWord() }\n\n return this.getTokenFromCode(code)\n};\n\npp.fullCharCodeAtPos = function() {\n var code = this.input.charCodeAt(this.pos);\n if (code <= 0xd7ff || code >= 0xdc00) { return code }\n var next = this.input.charCodeAt(this.pos + 1);\n return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00\n};\n\npp.skipBlockComment = function() {\n var startLoc = this.options.onComment && this.curPosition();\n var start = this.pos, end = this.input.indexOf(\"*/\", this.pos += 2);\n if (end === -1) { this.raise(this.pos - 2, \"Unterminated comment\"); }\n this.pos = end + 2;\n if (this.options.locations) {\n for (var nextBreak = (void 0), pos = start; (nextBreak = nextLineBreak(this.input, pos, this.pos)) > -1;) {\n ++this.curLine;\n pos = this.lineStart = nextBreak;\n }\n }\n if (this.options.onComment)\n { this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos,\n startLoc, this.curPosition()); }\n};\n\npp.skipLineComment = function(startSkip) {\n var start = this.pos;\n var startLoc = this.options.onComment && this.curPosition();\n var ch = this.input.charCodeAt(this.pos += startSkip);\n while (this.pos < this.input.length && !isNewLine(ch)) {\n ch = this.input.charCodeAt(++this.pos);\n }\n if (this.options.onComment)\n { this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos,\n startLoc, this.curPosition()); }\n};\n\n// Called at the start of the parse and after every token. Skips\n// whitespace and comments, and.\n\npp.skipSpace = function() {\n loop: while (this.pos < this.input.length) {\n var ch = this.input.charCodeAt(this.pos);\n switch (ch) {\n case 32: case 160: // ' '\n ++this.pos;\n break\n case 13:\n if (this.input.charCodeAt(this.pos + 1) === 10) {\n ++this.pos;\n }\n case 10: case 8232: case 8233:\n ++this.pos;\n if (this.options.locations) {\n ++this.curLine;\n this.lineStart = this.pos;\n }\n break\n case 47: // '/'\n switch (this.input.charCodeAt(this.pos + 1)) {\n case 42: // '*'\n this.skipBlockComment();\n break\n case 47:\n this.skipLineComment(2);\n break\n default:\n break loop\n }\n break\n default:\n if (ch > 8 && ch < 14 || ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) {\n ++this.pos;\n } else {\n break loop\n }\n }\n }\n};\n\n// Called at the end of every token. Sets `end`, `val`, and\n// maintains `context` and `exprAllowed`, and skips the space after\n// the token, so that the next one's `start` will point at the\n// right position.\n\npp.finishToken = function(type, val) {\n this.end = this.pos;\n if (this.options.locations) { this.endLoc = this.curPosition(); }\n var prevType = this.type;\n this.type = type;\n this.value = val;\n\n this.updateContext(prevType);\n};\n\n// ### Token reading\n\n// This is the function that is called to fetch the next token. It\n// is somewhat obscure, because it works in character codes rather\n// than characters, and because operator parsing has been inlined\n// into it.\n//\n// All in the name of speed.\n//\npp.readToken_dot = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next >= 48 && next <= 57) { return this.readNumber(true) }\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) { // 46 = dot '.'\n this.pos += 3;\n return this.finishToken(types$1.ellipsis)\n } else {\n ++this.pos;\n return this.finishToken(types$1.dot)\n }\n};\n\npp.readToken_slash = function() { // '/'\n var next = this.input.charCodeAt(this.pos + 1);\n if (this.exprAllowed) { ++this.pos; return this.readRegexp() }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.slash, 1)\n};\n\npp.readToken_mult_modulo_exp = function(code) { // '%*'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n var tokentype = code === 42 ? types$1.star : types$1.modulo;\n\n // exponentiation operator ** and **=\n if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) {\n ++size;\n tokentype = types$1.starstar;\n next = this.input.charCodeAt(this.pos + 2);\n }\n\n if (next === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(tokentype, size)\n};\n\npp.readToken_pipe_amp = function(code) { // '|&'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (this.options.ecmaVersion >= 12) {\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (next2 === 61) { return this.finishOp(types$1.assign, 3) }\n }\n return this.finishOp(code === 124 ? types$1.logicalOR : types$1.logicalAND, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(code === 124 ? types$1.bitwiseOR : types$1.bitwiseAND, 1)\n};\n\npp.readToken_caret = function() { // '^'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.bitwiseXOR, 1)\n};\n\npp.readToken_plus_min = function(code) { // '+-'\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 &&\n (this.lastTokEnd === 0 || lineBreak.test(this.input.slice(this.lastTokEnd, this.pos)))) {\n // A `-->` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types$1.incDec, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.plusMin, 1)\n};\n\npp.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(types$1.bitShift, size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // `` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken();\n }\n return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.incDec, 2);\n }\n if (next === 61) return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.plusMin, 1);\n};\n$ebef8a20963d596b$var$pp.readToken_lt_gt = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.assign, size + 1);\n return this.finishOp($ebef8a20963d596b$export$b54c7ea7aabba5c8.bitShift, size);\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45) {\n // `` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types$1.incDec, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.plusMin, 1)\n};\n\npp.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(types$1.bitShift, size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // ` convert colors\nimport './src/io/cmyk/index.js';\nimport './src/io/css/index.js';\nimport './src/io/gl/index.js';\nimport './src/io/hcg/index.js';\nimport './src/io/hex/index.js';\nimport './src/io/hsi/index.js';\nimport './src/io/hsl/index.js';\nimport './src/io/hsv/index.js';\nimport './src/io/lab/index.js';\nimport './src/io/lch/index.js';\nimport './src/io/named/index.js';\nimport './src/io/num/index.js';\nimport './src/io/rgb/index.js';\nimport './src/io/temp/index.js';\nimport './src/io/oklab/index.js';\nimport './src/io/oklch/index.js';\n\n// operators --> modify existing Colors\nimport './src/ops/alpha.js';\nimport './src/ops/clipped.js';\nimport './src/ops/darken.js';\nimport './src/ops/get.js';\nimport './src/ops/luminance.js';\nimport './src/ops/mix.js';\nimport './src/ops/premultiply.js';\nimport './src/ops/saturate.js';\nimport './src/ops/set.js';\nimport './src/ops/shade.js';\n\n// interpolators\nimport './src/interpolator/rgb.js';\nimport './src/interpolator/lrgb.js';\nimport './src/interpolator/lab.js';\nimport './src/interpolator/lch.js';\nimport './src/interpolator/num.js';\nimport './src/interpolator/hcg.js';\nimport './src/interpolator/hsi.js';\nimport './src/interpolator/hsl.js';\nimport './src/interpolator/hsv.js';\nimport './src/interpolator/oklab.js';\nimport './src/interpolator/oklch.js';\n\n// generators -- > create new colors\nimport average from './src/generator/average.js';\nimport bezier from './src/generator/bezier.js';\nimport blend from './src/generator/blend.js';\nimport cubehelix from './src/generator/cubehelix.js';\nimport mix from './src/generator/mix.js';\nimport random from './src/generator/random.js';\nimport scale from './src/generator/scale.js';\n\n// other utility methods\nimport { analyze } from './src/utils/analyze.js';\nimport contrast from './src/utils/contrast.js';\nimport deltaE from './src/utils/delta-e.js';\nimport distance from './src/utils/distance.js';\nimport { limits } from './src/utils/analyze.js';\nimport valid from './src/utils/valid.js';\nimport input from './src/io/input.js';\n\n// scale\nimport scales from './src/utils/scales.js';\n\n// colors\nimport colors from './src/colors/w3cx11.js';\nimport brewer from './src/colors/colorbrewer.js';\n\nObject.assign(chroma, {\n average,\n bezier,\n blend,\n cubehelix,\n mix,\n interpolate: mix,\n random,\n scale,\n analyze,\n contrast,\n deltaE,\n distance,\n limits,\n valid,\n scales,\n input,\n colors,\n brewer\n});\n\nexport default chroma;\n","import Color from './Color.js';\nimport { version } from './version.js';\n\nconst chroma = (...args) => {\n return new chroma.Color(...args);\n};\n\nchroma.Color = Color;\nchroma.version = version;\n\nexport default chroma;\n","import { last, clip_rgb, type } from './utils/index.js';\nimport _input from './io/input.js';\n\nclass Color {\n constructor(...args) {\n const me = this;\n if (\n type(args[0]) === 'object' &&\n args[0].constructor &&\n args[0].constructor === this.constructor\n ) {\n // the argument is already a Color instance\n return args[0];\n }\n // last argument could be the mode\n let mode = last(args);\n let autodetect = false;\n if (!mode) {\n autodetect = true;\n if (!_input.sorted) {\n _input.autodetect = _input.autodetect.sort((a, b) => b.p - a.p);\n _input.sorted = true;\n }\n // auto-detect format\n for (let chk of _input.autodetect) {\n mode = chk.test(...args);\n if (mode) break;\n }\n }\n if (_input.format[mode]) {\n const rgb = _input.format[mode].apply(\n null,\n autodetect ? args : args.slice(0, -1)\n );\n me._rgb = clip_rgb(rgb);\n } else {\n throw new Error('unknown format: ' + args);\n }\n // add alpha channel\n if (me._rgb.length === 3) me._rgb.push(1);\n }\n toString() {\n if (type(this.hex) == 'function') return this.hex();\n return `[${this._rgb.join(',')}]`;\n }\n}\nexport default Color;\n","const { PI, min, max } = Math;\n\nexport { default as clip_rgb } from './clip_rgb.js';\nexport { default as limit } from './limit.js';\nexport { default as type } from './type.js';\nexport { default as unpack } from './unpack.js';\nexport { default as last } from './last.js';\n\nconst TWOPI = PI * 2;\nconst PITHIRD = PI / 3;\nconst DEG2RAD = PI / 180;\nconst RAD2DEG = 180 / PI;\n\nexport { PI, TWOPI, PITHIRD, DEG2RAD, RAD2DEG, min, max };\n","import limit from './limit.js';\n\nexport default (rgb) => {\n rgb._clipped = false;\n rgb._unclipped = rgb.slice(0);\n for (let i = 0; i <= 3; i++) {\n if (i < 3) {\n if (rgb[i] < 0 || rgb[i] > 255) rgb._clipped = true;\n rgb[i] = limit(rgb[i], 0, 255);\n } else if (i === 3) {\n rgb[i] = limit(rgb[i], 0, 1);\n }\n }\n return rgb;\n};\n","import { min, max } from './index.js';\n\nexport default (x, low = 0, high = 1) => {\n return min(max(low, x), high);\n};\n","// ported from jQuery's $.type\nconst classToType = {};\nfor (let name of [\n 'Boolean',\n 'Number',\n 'String',\n 'Function',\n 'Array',\n 'Date',\n 'RegExp',\n 'Undefined',\n 'Null'\n]) {\n classToType[`[object ${name}]`] = name.toLowerCase();\n}\nexport default function (obj) {\n return classToType[Object.prototype.toString.call(obj)] || 'object';\n}\n","import type from './type.js';\n\nexport default (args, keyOrder = null) => {\n // if called with more than 3 arguments, we return the arguments\n if (args.length >= 3) return Array.prototype.slice.call(args);\n // with less than 3 args we check if first arg is object\n // and use the keyOrder string to extract and sort properties\n if (type(args[0]) == 'object' && keyOrder) {\n return keyOrder\n .split('')\n .filter((k) => args[0][k] !== undefined)\n .map((k) => args[0][k]);\n }\n // otherwise we just return the first argument\n // (which we suppose is an array of args)\n return args[0];\n};\n","import type from './type.js';\n\nexport default (args) => {\n if (args.length < 2) return null;\n const l = args.length - 1;\n if (type(args[l]) == 'string') return args[l].toLowerCase();\n return null;\n};\n","export default {\n format: {},\n autodetect: []\n};\n","// this gets updated automatically\nexport const version = '2.6.0';\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { unpack, type } from '../../utils/index.js';\nimport cmyk2rgb from './cmyk2rgb.js';\nimport rgb2cmyk from './rgb2cmyk.js';\n\nColor.prototype.cmyk = function () {\n return rgb2cmyk(this._rgb);\n};\n\nchroma.cmyk = (...args) => new Color(...args, 'cmyk');\n\ninput.format.cmyk = cmyk2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'cmyk');\n if (type(args) === 'array' && args.length === 4) {\n return 'cmyk';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\n\nconst cmyk2rgb = (...args) => {\n args = unpack(args, 'cmyk');\n const [c, m, y, k] = args;\n const alpha = args.length > 4 ? args[4] : 1;\n if (k === 1) return [0, 0, 0, alpha];\n return [\n c >= 1 ? 0 : 255 * (1 - c) * (1 - k), // r\n m >= 1 ? 0 : 255 * (1 - m) * (1 - k), // g\n y >= 1 ? 0 : 255 * (1 - y) * (1 - k), // b\n alpha\n ];\n};\n\nexport default cmyk2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { max } = Math;\n\nconst rgb2cmyk = (...args) => {\n let [r, g, b] = unpack(args, 'rgb');\n r = r / 255;\n g = g / 255;\n b = b / 255;\n const k = 1 - max(r, max(g, b));\n const f = k < 1 ? 1 / (1 - k) : 0;\n const c = (1 - r - k) * f;\n const m = (1 - g - k) * f;\n const y = (1 - b - k) * f;\n return [c, m, y, k];\n};\n\nexport default rgb2cmyk;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\n\nimport rgb2css from './rgb2css.js';\nimport css2rgb from './css2rgb.js';\n\nColor.prototype.css = function (mode) {\n return rgb2css(this._rgb, mode);\n};\n\nchroma.css = (...args) => new Color(...args, 'css');\n\ninput.format.css = css2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (h, ...rest) => {\n if (!rest.length && type(h) === 'string' && css2rgb.test(h)) {\n return 'css';\n }\n }\n});\n","import { unpack, last } from '../../utils/index.js';\nimport hsl2css from './hsl2css.js';\nimport rgb2hsl from '../hsl/rgb2hsl.js';\nconst { round } = Math;\n\n/*\n * supported arguments:\n * - rgb2css(r,g,b)\n * - rgb2css(r,g,b,a)\n * - rgb2css([r,g,b], mode)\n * - rgb2css([r,g,b,a], mode)\n * - rgb2css({r,g,b,a}, mode)\n */\nconst rgb2css = (...args) => {\n const rgba = unpack(args, 'rgba');\n let mode = last(args) || 'rgb';\n if (mode.substr(0, 3) == 'hsl') {\n return hsl2css(rgb2hsl(rgba), mode);\n }\n rgba[0] = round(rgba[0]);\n rgba[1] = round(rgba[1]);\n rgba[2] = round(rgba[2]);\n if (mode === 'rgba' || (rgba.length > 3 && rgba[3] < 1)) {\n rgba[3] = rgba.length > 3 ? rgba[3] : 1;\n mode = 'rgba';\n }\n return `${mode}(${rgba.slice(0, mode === 'rgb' ? 3 : 4).join(',')})`;\n};\n\nexport default rgb2css;\n","import { unpack, last } from '../../utils/index.js';\nconst rnd = (a) => Math.round(a * 100) / 100;\n\n/*\n * supported arguments:\n * - hsl2css(h,s,l)\n * - hsl2css(h,s,l,a)\n * - hsl2css([h,s,l], mode)\n * - hsl2css([h,s,l,a], mode)\n * - hsl2css({h,s,l,a}, mode)\n */\nconst hsl2css = (...args) => {\n const hsla = unpack(args, 'hsla');\n let mode = last(args) || 'lsa';\n hsla[0] = rnd(hsla[0] || 0);\n hsla[1] = rnd(hsla[1] * 100) + '%';\n hsla[2] = rnd(hsla[2] * 100) + '%';\n if (mode === 'hsla' || (hsla.length > 3 && hsla[3] < 1)) {\n hsla[3] = hsla.length > 3 ? hsla[3] : 1;\n mode = 'hsla';\n } else {\n hsla.length = 3;\n }\n return `${mode}(${hsla.join(',')})`;\n};\n\nexport default hsl2css;\n","import { unpack, min, max } from '../../utils/index.js';\n\n/*\n * supported arguments:\n * - rgb2hsl(r,g,b)\n * - rgb2hsl(r,g,b,a)\n * - rgb2hsl([r,g,b])\n * - rgb2hsl([r,g,b,a])\n * - rgb2hsl({r,g,b,a})\n */\nconst rgb2hsl = (...args) => {\n args = unpack(args, 'rgba');\n let [r, g, b] = args;\n\n r /= 255;\n g /= 255;\n b /= 255;\n\n const minRgb = min(r, g, b);\n const maxRgb = max(r, g, b);\n\n const l = (maxRgb + minRgb) / 2;\n let s, h;\n\n if (maxRgb === minRgb) {\n s = 0;\n h = Number.NaN;\n } else {\n s =\n l < 0.5\n ? (maxRgb - minRgb) / (maxRgb + minRgb)\n : (maxRgb - minRgb) / (2 - maxRgb - minRgb);\n }\n\n if (r == maxRgb) h = (g - b) / (maxRgb - minRgb);\n else if (g == maxRgb) h = 2 + (b - r) / (maxRgb - minRgb);\n else if (b == maxRgb) h = 4 + (r - g) / (maxRgb - minRgb);\n\n h *= 60;\n if (h < 0) h += 360;\n if (args.length > 3 && args[3] !== undefined) return [h, s, l, args[3]];\n return [h, s, l];\n};\n\nexport default rgb2hsl;\n","import hsl2rgb from '../hsl/hsl2rgb.js';\nimport input from '../input.js';\n\nconst RE_RGB = /^rgb\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*\\)$/;\nconst RE_RGBA =\n /^rgba\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\nconst RE_RGB_PCT =\n /^rgb\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/;\nconst RE_RGBA_PCT =\n /^rgba\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\nconst RE_HSL =\n /^hsl\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/;\nconst RE_HSLA =\n /^hsla\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\n\nconst { round } = Math;\n\nconst css2rgb = (css) => {\n css = css.toLowerCase().trim();\n let m;\n\n if (input.format.named) {\n try {\n return input.format.named(css);\n // eslint-disable-next-line\n } catch (e) {}\n }\n\n // rgb(250,20,0)\n if ((m = css.match(RE_RGB))) {\n const rgb = m.slice(1, 4);\n for (let i = 0; i < 3; i++) {\n rgb[i] = +rgb[i];\n }\n rgb[3] = 1; // default alpha\n return rgb;\n }\n\n // rgba(250,20,0,0.4)\n if ((m = css.match(RE_RGBA))) {\n const rgb = m.slice(1, 5);\n for (let i = 0; i < 4; i++) {\n rgb[i] = +rgb[i];\n }\n return rgb;\n }\n\n // rgb(100%,0%,0%)\n if ((m = css.match(RE_RGB_PCT))) {\n const rgb = m.slice(1, 4);\n for (let i = 0; i < 3; i++) {\n rgb[i] = round(rgb[i] * 2.55);\n }\n rgb[3] = 1; // default alpha\n return rgb;\n }\n\n // rgba(100%,0%,0%,0.4)\n if ((m = css.match(RE_RGBA_PCT))) {\n const rgb = m.slice(1, 5);\n for (let i = 0; i < 3; i++) {\n rgb[i] = round(rgb[i] * 2.55);\n }\n rgb[3] = +rgb[3];\n return rgb;\n }\n\n // hsl(0,100%,50%)\n if ((m = css.match(RE_HSL))) {\n const hsl = m.slice(1, 4);\n hsl[1] *= 0.01;\n hsl[2] *= 0.01;\n const rgb = hsl2rgb(hsl);\n rgb[3] = 1;\n return rgb;\n }\n\n // hsla(0,100%,50%,0.5)\n if ((m = css.match(RE_HSLA))) {\n const hsl = m.slice(1, 4);\n hsl[1] *= 0.01;\n hsl[2] *= 0.01;\n const rgb = hsl2rgb(hsl);\n rgb[3] = +m[4]; // default alpha = 1\n return rgb;\n }\n};\n\ncss2rgb.test = (s) => {\n return (\n RE_RGB.test(s) ||\n RE_RGBA.test(s) ||\n RE_RGB_PCT.test(s) ||\n RE_RGBA_PCT.test(s) ||\n RE_HSL.test(s) ||\n RE_HSLA.test(s)\n );\n};\n\nexport default css2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { round } = Math;\n\nconst hsl2rgb = (...args) => {\n args = unpack(args, 'hsl');\n const [h, s, l] = args;\n let r, g, b;\n if (s === 0) {\n r = g = b = l * 255;\n } else {\n const t3 = [0, 0, 0];\n const c = [0, 0, 0];\n const t2 = l < 0.5 ? l * (1 + s) : l + s - l * s;\n const t1 = 2 * l - t2;\n const h_ = h / 360;\n t3[0] = h_ + 1 / 3;\n t3[1] = h_;\n t3[2] = h_ - 1 / 3;\n for (let i = 0; i < 3; i++) {\n if (t3[i] < 0) t3[i] += 1;\n if (t3[i] > 1) t3[i] -= 1;\n if (6 * t3[i] < 1) c[i] = t1 + (t2 - t1) * 6 * t3[i];\n else if (2 * t3[i] < 1) c[i] = t2;\n else if (3 * t3[i] < 2) c[i] = t1 + (t2 - t1) * (2 / 3 - t3[i]) * 6;\n else c[i] = t1;\n }\n [r, g, b] = [round(c[0] * 255), round(c[1] * 255), round(c[2] * 255)];\n }\n if (args.length > 3) {\n // keep alpha channel\n return [r, g, b, args[3]];\n }\n return [r, g, b, 1];\n};\n\nexport default hsl2rgb;\n","import Color from '../../Color.js';\nimport chroma from '../../chroma.js';\nimport input from '../input.js';\nimport { unpack } from '../../utils/index.js';\n\ninput.format.gl = (...args) => {\n const rgb = unpack(args, 'rgba');\n rgb[0] *= 255;\n rgb[1] *= 255;\n rgb[2] *= 255;\n return rgb;\n};\n\nchroma.gl = (...args) => new Color(...args, 'gl');\n\nColor.prototype.gl = function () {\n const rgb = this._rgb;\n return [rgb[0] / 255, rgb[1] / 255, rgb[2] / 255, rgb[3]];\n};\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hcg2rgb from './hcg2rgb.js';\nimport rgb2hcg from './rgb2hcg.js';\n\nColor.prototype.hcg = function () {\n return rgb2hcg(this._rgb);\n};\n\nchroma.hcg = (...args) => new Color(...args, 'hcg');\n\ninput.format.hcg = hcg2rgb;\n\ninput.autodetect.push({\n p: 1,\n test: (...args) => {\n args = unpack(args, 'hcg');\n if (type(args) === 'array' && args.length === 3) {\n return 'hcg';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { floor } = Math;\n\n/*\n * this is basically just HSV with some minor tweaks\n *\n * hue.. [0..360]\n * chroma .. [0..1]\n * grayness .. [0..1]\n */\n\nconst hcg2rgb = (...args) => {\n args = unpack(args, 'hcg');\n let [h, c, _g] = args;\n let r, g, b;\n _g = _g * 255;\n const _c = c * 255;\n if (c === 0) {\n r = g = b = _g;\n } else {\n if (h === 360) h = 0;\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 60;\n const i = floor(h);\n const f = h - i;\n const p = _g * (1 - c);\n const q = p + _c * (1 - f);\n const t = p + _c * f;\n const v = p + _c;\n switch (i) {\n case 0:\n [r, g, b] = [v, t, p];\n break;\n case 1:\n [r, g, b] = [q, v, p];\n break;\n case 2:\n [r, g, b] = [p, v, t];\n break;\n case 3:\n [r, g, b] = [p, q, v];\n break;\n case 4:\n [r, g, b] = [t, p, v];\n break;\n case 5:\n [r, g, b] = [v, p, q];\n break;\n }\n }\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default hcg2rgb;\n","import { unpack, max, min } from '../../utils/index.js';\n\nconst rgb2hcg = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const minRgb = min(r, g, b);\n const maxRgb = max(r, g, b);\n const delta = maxRgb - minRgb;\n const c = (delta * 100) / 255;\n const _g = (minRgb / (255 - delta)) * 100;\n let h;\n if (delta === 0) {\n h = Number.NaN;\n } else {\n if (r === maxRgb) h = (g - b) / delta;\n if (g === maxRgb) h = 2 + (b - r) / delta;\n if (b === maxRgb) h = 4 + (r - g) / delta;\n h *= 60;\n if (h < 0) h += 360;\n }\n return [h, c, _g];\n};\n\nexport default rgb2hcg;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport { type } from '../../utils/index.js';\nimport input from '../input.js';\nimport hex2rgb from './hex2rgb.js';\nimport rgb2hex from './rgb2hex.js';\n\nColor.prototype.hex = function (mode) {\n return rgb2hex(this._rgb, mode);\n};\n\nchroma.hex = (...args) => new Color(...args, 'hex');\n\ninput.format.hex = hex2rgb;\ninput.autodetect.push({\n p: 4,\n test: (h, ...rest) => {\n if (\n !rest.length &&\n type(h) === 'string' &&\n [3, 4, 5, 6, 7, 8, 9].indexOf(h.length) >= 0\n ) {\n return 'hex';\n }\n }\n});\n","const RE_HEX = /^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;\nconst RE_HEXA = /^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;\n\nconst hex2rgb = (hex) => {\n if (hex.match(RE_HEX)) {\n // remove optional leading #\n if (hex.length === 4 || hex.length === 7) {\n hex = hex.substr(1);\n }\n // expand short-notation to full six-digit\n if (hex.length === 3) {\n hex = hex.split('');\n hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];\n }\n const u = parseInt(hex, 16);\n const r = u >> 16;\n const g = (u >> 8) & 0xff;\n const b = u & 0xff;\n return [r, g, b, 1];\n }\n\n // match rgba hex format, eg #FF000077\n if (hex.match(RE_HEXA)) {\n if (hex.length === 5 || hex.length === 9) {\n // remove optional leading #\n hex = hex.substr(1);\n }\n // expand short-notation to full eight-digit\n if (hex.length === 4) {\n hex = hex.split('');\n hex =\n hex[0] +\n hex[0] +\n hex[1] +\n hex[1] +\n hex[2] +\n hex[2] +\n hex[3] +\n hex[3];\n }\n const u = parseInt(hex, 16);\n const r = (u >> 24) & 0xff;\n const g = (u >> 16) & 0xff;\n const b = (u >> 8) & 0xff;\n const a = Math.round(((u & 0xff) / 0xff) * 100) / 100;\n return [r, g, b, a];\n }\n\n // we used to check for css colors here\n // if _input.css? and rgb = _input.css hex\n // return rgb\n\n throw new Error(`unknown hex color: ${hex}`);\n};\n\nexport default hex2rgb;\n","import { unpack, last } from '../../utils/index.js';\nconst { round } = Math;\n\nconst rgb2hex = (...args) => {\n let [r, g, b, a] = unpack(args, 'rgba');\n let mode = last(args) || 'auto';\n if (a === undefined) a = 1;\n if (mode === 'auto') {\n mode = a < 1 ? 'rgba' : 'rgb';\n }\n r = round(r);\n g = round(g);\n b = round(b);\n const u = (r << 16) | (g << 8) | b;\n let str = '000000' + u.toString(16); //#.toUpperCase();\n str = str.substr(str.length - 6);\n let hxa = '0' + round(a * 255).toString(16);\n hxa = hxa.substr(hxa.length - 2);\n switch (mode.toLowerCase()) {\n case 'rgba':\n return `#${str}${hxa}`;\n case 'argb':\n return `#${hxa}${str}`;\n default:\n return `#${str}`;\n }\n};\n\nexport default rgb2hex;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsi2rgb from './hsi2rgb.js';\nimport rgb2hsi from './rgb2hsi.js';\n\nColor.prototype.hsi = function () {\n return rgb2hsi(this._rgb);\n};\n\nchroma.hsi = (...args) => new Color(...args, 'hsi');\n\ninput.format.hsi = hsi2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsi');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsi';\n }\n }\n});\n","import { unpack, limit, TWOPI, PITHIRD } from '../../utils/index.js';\nconst { cos } = Math;\n\n/*\n * hue [0..360]\n * saturation [0..1]\n * intensity [0..1]\n */\nconst hsi2rgb = (...args) => {\n /*\n borrowed from here:\n http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/hsi2rgb.cpp\n */\n args = unpack(args, 'hsi');\n let [h, s, i] = args;\n let r, g, b;\n\n if (isNaN(h)) h = 0;\n if (isNaN(s)) s = 0;\n // normalize hue\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 360;\n if (h < 1 / 3) {\n b = (1 - s) / 3;\n r = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n g = 1 - (b + r);\n } else if (h < 2 / 3) {\n h -= 1 / 3;\n r = (1 - s) / 3;\n g = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n b = 1 - (r + g);\n } else {\n h -= 2 / 3;\n g = (1 - s) / 3;\n b = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n r = 1 - (g + b);\n }\n r = limit(i * r * 3);\n g = limit(i * g * 3);\n b = limit(i * b * 3);\n return [r * 255, g * 255, b * 255, args.length > 3 ? args[3] : 1];\n};\n\nexport default hsi2rgb;\n","import { unpack, TWOPI } from '../../utils/index.js';\nconst { min, sqrt, acos } = Math;\n\nconst rgb2hsi = (...args) => {\n /*\n borrowed from here:\n http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/rgb2hsi.cpp\n */\n let [r, g, b] = unpack(args, 'rgb');\n r /= 255;\n g /= 255;\n b /= 255;\n let h;\n const min_ = min(r, g, b);\n const i = (r + g + b) / 3;\n const s = i > 0 ? 1 - min_ / i : 0;\n if (s === 0) {\n h = NaN;\n } else {\n h = (r - g + (r - b)) / 2;\n h /= sqrt((r - g) * (r - g) + (r - b) * (g - b));\n h = acos(h);\n if (b > g) {\n h = TWOPI - h;\n }\n h /= TWOPI;\n }\n return [h * 360, s, i];\n};\n\nexport default rgb2hsi;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsl2rgb from './hsl2rgb.js';\nimport rgb2hsl from './rgb2hsl.js';\n\nColor.prototype.hsl = function () {\n return rgb2hsl(this._rgb);\n};\n\nchroma.hsl = (...args) => new Color(...args, 'hsl');\n\ninput.format.hsl = hsl2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsl');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsl';\n }\n }\n});\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsv2rgb from './hsv2rgb.js';\nimport rgb2hsv from './rgb2hsv.js';\n\nColor.prototype.hsv = function () {\n return rgb2hsv(this._rgb);\n};\n\nchroma.hsv = (...args) => new Color(...args, 'hsv');\n\ninput.format.hsv = hsv2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsv');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsv';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { floor } = Math;\n\nconst hsv2rgb = (...args) => {\n args = unpack(args, 'hsv');\n let [h, s, v] = args;\n let r, g, b;\n v *= 255;\n if (s === 0) {\n r = g = b = v;\n } else {\n if (h === 360) h = 0;\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 60;\n\n const i = floor(h);\n const f = h - i;\n const p = v * (1 - s);\n const q = v * (1 - s * f);\n const t = v * (1 - s * (1 - f));\n\n switch (i) {\n case 0:\n [r, g, b] = [v, t, p];\n break;\n case 1:\n [r, g, b] = [q, v, p];\n break;\n case 2:\n [r, g, b] = [p, v, t];\n break;\n case 3:\n [r, g, b] = [p, q, v];\n break;\n case 4:\n [r, g, b] = [t, p, v];\n break;\n case 5:\n [r, g, b] = [v, p, q];\n break;\n }\n }\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default hsv2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { min, max } = Math;\n\n/*\n * supported arguments:\n * - rgb2hsv(r,g,b)\n * - rgb2hsv([r,g,b])\n * - rgb2hsv({r,g,b})\n */\nconst rgb2hsl = (...args) => {\n args = unpack(args, 'rgb');\n let [r, g, b] = args;\n const min_ = min(r, g, b);\n const max_ = max(r, g, b);\n const delta = max_ - min_;\n let h, s, v;\n v = max_ / 255.0;\n if (max_ === 0) {\n h = Number.NaN;\n s = 0;\n } else {\n s = delta / max_;\n if (r === max_) h = (g - b) / delta;\n if (g === max_) h = 2 + (b - r) / delta;\n if (b === max_) h = 4 + (r - g) / delta;\n h *= 60;\n if (h < 0) h += 360;\n }\n return [h, s, v];\n};\n\nexport default rgb2hsl;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport lab2rgb from './lab2rgb.js';\nimport rgb2lab from './rgb2lab.js';\n\nColor.prototype.lab = function () {\n return rgb2lab(this._rgb);\n};\n\nchroma.lab = (...args) => new Color(...args, 'lab');\n\ninput.format.lab = lab2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'lab');\n if (type(args) === 'array' && args.length === 3) {\n return 'lab';\n }\n }\n});\n","import LAB_CONSTANTS from './lab-constants.js';\nimport { unpack } from '../../utils/index.js';\nconst { pow } = Math;\n\n/*\n * L* [0..100]\n * a [-100..100]\n * b [-100..100]\n */\nconst lab2rgb = (...args) => {\n args = unpack(args, 'lab');\n const [l, a, b] = args;\n let x, y, z, r, g, b_;\n\n y = (l + 16) / 116;\n x = isNaN(a) ? y : y + a / 500;\n z = isNaN(b) ? y : y - b / 200;\n\n y = LAB_CONSTANTS.Yn * lab_xyz(y);\n x = LAB_CONSTANTS.Xn * lab_xyz(x);\n z = LAB_CONSTANTS.Zn * lab_xyz(z);\n\n r = xyz_rgb(3.2404542 * x - 1.5371385 * y - 0.4985314 * z); // D65 -> sRGB\n g = xyz_rgb(-0.969266 * x + 1.8760108 * y + 0.041556 * z);\n b_ = xyz_rgb(0.0556434 * x - 0.2040259 * y + 1.0572252 * z);\n\n return [r, g, b_, args.length > 3 ? args[3] : 1];\n};\n\nconst xyz_rgb = (r) => {\n return 255 * (r <= 0.00304 ? 12.92 * r : 1.055 * pow(r, 1 / 2.4) - 0.055);\n};\n\nconst lab_xyz = (t) => {\n return t > LAB_CONSTANTS.t1\n ? t * t * t\n : LAB_CONSTANTS.t2 * (t - LAB_CONSTANTS.t0);\n};\n\nexport default lab2rgb;\n","export default {\n // Corresponds roughly to RGB brighter/darker\n Kn: 18,\n\n // D65 standard referent\n Xn: 0.95047,\n Yn: 1,\n Zn: 1.08883,\n\n t0: 0.137931034, // 4 / 29\n t1: 0.206896552, // 6 / 29\n t2: 0.12841855, // 3 * t1 * t1\n t3: 0.008856452 // t1 * t1 * t1\n};\n","import LAB_CONSTANTS from './lab-constants.js';\nimport { unpack } from '../../utils/index.js';\nconst { pow } = Math;\n\nconst rgb2lab = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [x, y, z] = rgb2xyz(r, g, b);\n const l = 116 * y - 16;\n return [l < 0 ? 0 : l, 500 * (x - y), 200 * (y - z)];\n};\n\nconst rgb_xyz = (r) => {\n if ((r /= 255) <= 0.04045) return r / 12.92;\n return pow((r + 0.055) / 1.055, 2.4);\n};\n\nconst xyz_lab = (t) => {\n if (t > LAB_CONSTANTS.t3) return pow(t, 1 / 3);\n return t / LAB_CONSTANTS.t2 + LAB_CONSTANTS.t0;\n};\n\nconst rgb2xyz = (r, g, b) => {\n r = rgb_xyz(r);\n g = rgb_xyz(g);\n b = rgb_xyz(b);\n const x = xyz_lab(\n (0.4124564 * r + 0.3575761 * g + 0.1804375 * b) / LAB_CONSTANTS.Xn\n );\n const y = xyz_lab(\n (0.2126729 * r + 0.7151522 * g + 0.072175 * b) / LAB_CONSTANTS.Yn\n );\n const z = xyz_lab(\n (0.0193339 * r + 0.119192 * g + 0.9503041 * b) / LAB_CONSTANTS.Zn\n );\n return [x, y, z];\n};\n\nexport default rgb2lab;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport lch2rgb from './lch2rgb.js';\nimport hcl2rgb from './hcl2rgb.js';\nimport rgb2lch from './rgb2lch.js';\n\nColor.prototype.lch = function () {\n return rgb2lch(this._rgb);\n};\nColor.prototype.hcl = function () {\n return rgb2lch(this._rgb).reverse();\n};\n\nchroma.lch = (...args) => new Color(...args, 'lch');\nchroma.hcl = (...args) => new Color(...args, 'hcl');\n\ninput.format.lch = lch2rgb;\ninput.format.hcl = hcl2rgb;\n['lch', 'hcl'].forEach((m) =>\n input.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, m);\n if (type(args) === 'array' && args.length === 3) {\n return m;\n }\n }\n })\n);\n","import { unpack } from '../../utils/index.js';\nimport lch2lab from './lch2lab.js';\nimport lab2rgb from '../lab/lab2rgb.js';\n\nconst lch2rgb = (...args) => {\n args = unpack(args, 'lch');\n const [l, c, h] = args;\n const [L, a, b_] = lch2lab(l, c, h);\n const [r, g, b] = lab2rgb(L, a, b_);\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default lch2rgb;\n","import { unpack, DEG2RAD } from '../../utils/index.js';\nconst { sin, cos } = Math;\n\nconst lch2lab = (...args) => {\n /*\n Convert from a qualitative parameter h and a quantitative parameter l to a 24-bit pixel.\n These formulas were invented by David Dalrymple to obtain maximum contrast without going\n out of gamut if the parameters are in the range 0-1.\n\n A saturation multiplier was added by Gregor Aisch\n */\n let [l, c, h] = unpack(args, 'lch');\n if (isNaN(h)) h = 0;\n h = h * DEG2RAD;\n return [l, cos(h) * c, sin(h) * c];\n};\n\nexport default lch2lab;\n","import { unpack } from '../../utils/index.js';\nimport lch2rgb from './lch2rgb.js';\n\nconst hcl2rgb = (...args) => {\n const hcl = unpack(args, 'hcl').reverse();\n return lch2rgb(...hcl);\n};\n\nexport default hcl2rgb;\n","import { unpack } from '../../utils/index.js';\nimport rgb2lab from '../lab/rgb2lab.js';\nimport lab2lch from './lab2lch.js';\n\nconst rgb2lch = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [l, a, b_] = rgb2lab(r, g, b);\n return lab2lch(l, a, b_);\n};\n\nexport default rgb2lch;\n","import { unpack, RAD2DEG } from '../../utils/index.js';\nconst { sqrt, atan2, round } = Math;\n\nconst lab2lch = (...args) => {\n const [l, a, b] = unpack(args, 'lab');\n const c = sqrt(a * a + b * b);\n let h = (atan2(b, a) * RAD2DEG + 360) % 360;\n if (round(c * 10000) === 0) h = Number.NaN;\n return [l, c, h];\n};\n\nexport default lab2lch;\n","import Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\n\nimport w3cx11 from '../../colors/w3cx11.js';\nimport hex2rgb from '../hex/hex2rgb.js';\nimport rgb2hex from '../hex/rgb2hex.js';\n\nColor.prototype.name = function () {\n const hex = rgb2hex(this._rgb, 'rgb');\n for (let n of Object.keys(w3cx11)) {\n if (w3cx11[n] === hex) return n.toLowerCase();\n }\n return hex;\n};\n\ninput.format.named = (name) => {\n name = name.toLowerCase();\n if (w3cx11[name]) return hex2rgb(w3cx11[name]);\n throw new Error('unknown color name: ' + name);\n};\n\ninput.autodetect.push({\n p: 5,\n test: (h, ...rest) => {\n if (!rest.length && type(h) === 'string' && w3cx11[h.toLowerCase()]) {\n return 'named';\n }\n }\n});\n","/**\n\tX11 color names\n\n\thttp://www.w3.org/TR/css3-color/#svg-color\n*/\n\nconst w3cx11 = {\n aliceblue: '#f0f8ff',\n antiquewhite: '#faebd7',\n aqua: '#00ffff',\n aquamarine: '#7fffd4',\n azure: '#f0ffff',\n beige: '#f5f5dc',\n bisque: '#ffe4c4',\n black: '#000000',\n blanchedalmond: '#ffebcd',\n blue: '#0000ff',\n blueviolet: '#8a2be2',\n brown: '#a52a2a',\n burlywood: '#deb887',\n cadetblue: '#5f9ea0',\n chartreuse: '#7fff00',\n chocolate: '#d2691e',\n coral: '#ff7f50',\n cornflowerblue: '#6495ed',\n cornsilk: '#fff8dc',\n crimson: '#dc143c',\n cyan: '#00ffff',\n darkblue: '#00008b',\n darkcyan: '#008b8b',\n darkgoldenrod: '#b8860b',\n darkgray: '#a9a9a9',\n darkgreen: '#006400',\n darkgrey: '#a9a9a9',\n darkkhaki: '#bdb76b',\n darkmagenta: '#8b008b',\n darkolivegreen: '#556b2f',\n darkorange: '#ff8c00',\n darkorchid: '#9932cc',\n darkred: '#8b0000',\n darksalmon: '#e9967a',\n darkseagreen: '#8fbc8f',\n darkslateblue: '#483d8b',\n darkslategray: '#2f4f4f',\n darkslategrey: '#2f4f4f',\n darkturquoise: '#00ced1',\n darkviolet: '#9400d3',\n deeppink: '#ff1493',\n deepskyblue: '#00bfff',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1e90ff',\n firebrick: '#b22222',\n floralwhite: '#fffaf0',\n forestgreen: '#228b22',\n fuchsia: '#ff00ff',\n gainsboro: '#dcdcdc',\n ghostwhite: '#f8f8ff',\n gold: '#ffd700',\n goldenrod: '#daa520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#adff2f',\n grey: '#808080',\n honeydew: '#f0fff0',\n hotpink: '#ff69b4',\n indianred: '#cd5c5c',\n indigo: '#4b0082',\n ivory: '#fffff0',\n khaki: '#f0e68c',\n laserlemon: '#ffff54',\n lavender: '#e6e6fa',\n lavenderblush: '#fff0f5',\n lawngreen: '#7cfc00',\n lemonchiffon: '#fffacd',\n lightblue: '#add8e6',\n lightcoral: '#f08080',\n lightcyan: '#e0ffff',\n lightgoldenrod: '#fafad2',\n lightgoldenrodyellow: '#fafad2',\n lightgray: '#d3d3d3',\n lightgreen: '#90ee90',\n lightgrey: '#d3d3d3',\n lightpink: '#ffb6c1',\n lightsalmon: '#ffa07a',\n lightseagreen: '#20b2aa',\n lightskyblue: '#87cefa',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#b0c4de',\n lightyellow: '#ffffe0',\n lime: '#00ff00',\n limegreen: '#32cd32',\n linen: '#faf0e6',\n magenta: '#ff00ff',\n maroon: '#800000',\n maroon2: '#7f0000',\n maroon3: '#b03060',\n mediumaquamarine: '#66cdaa',\n mediumblue: '#0000cd',\n mediumorchid: '#ba55d3',\n mediumpurple: '#9370db',\n mediumseagreen: '#3cb371',\n mediumslateblue: '#7b68ee',\n mediumspringgreen: '#00fa9a',\n mediumturquoise: '#48d1cc',\n mediumvioletred: '#c71585',\n midnightblue: '#191970',\n mintcream: '#f5fffa',\n mistyrose: '#ffe4e1',\n moccasin: '#ffe4b5',\n navajowhite: '#ffdead',\n navy: '#000080',\n oldlace: '#fdf5e6',\n olive: '#808000',\n olivedrab: '#6b8e23',\n orange: '#ffa500',\n orangered: '#ff4500',\n orchid: '#da70d6',\n palegoldenrod: '#eee8aa',\n palegreen: '#98fb98',\n paleturquoise: '#afeeee',\n palevioletred: '#db7093',\n papayawhip: '#ffefd5',\n peachpuff: '#ffdab9',\n peru: '#cd853f',\n pink: '#ffc0cb',\n plum: '#dda0dd',\n powderblue: '#b0e0e6',\n purple: '#800080',\n purple2: '#7f007f',\n purple3: '#a020f0',\n rebeccapurple: '#663399',\n red: '#ff0000',\n rosybrown: '#bc8f8f',\n royalblue: '#4169e1',\n saddlebrown: '#8b4513',\n salmon: '#fa8072',\n sandybrown: '#f4a460',\n seagreen: '#2e8b57',\n seashell: '#fff5ee',\n sienna: '#a0522d',\n silver: '#c0c0c0',\n skyblue: '#87ceeb',\n slateblue: '#6a5acd',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#fffafa',\n springgreen: '#00ff7f',\n steelblue: '#4682b4',\n tan: '#d2b48c',\n teal: '#008080',\n thistle: '#d8bfd8',\n tomato: '#ff6347',\n turquoise: '#40e0d0',\n violet: '#ee82ee',\n wheat: '#f5deb3',\n white: '#ffffff',\n whitesmoke: '#f5f5f5',\n yellow: '#ffff00',\n yellowgreen: '#9acd32'\n};\n\nexport default w3cx11;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\nimport num2rgb from './num2rgb.js';\nimport rgb2num from './rgb2num.js';\n\nColor.prototype.num = function () {\n return rgb2num(this._rgb);\n};\n\nchroma.num = (...args) => new Color(...args, 'num');\n\ninput.format.num = num2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (...args) => {\n if (\n args.length === 1 &&\n type(args[0]) === 'number' &&\n args[0] >= 0 &&\n args[0] <= 0xffffff\n ) {\n return 'num';\n }\n }\n});\n","import { type } from '../../utils/index.js';\n\nconst num2rgb = (num) => {\n if (type(num) == 'number' && num >= 0 && num <= 0xffffff) {\n const r = num >> 16;\n const g = (num >> 8) & 0xff;\n const b = num & 0xff;\n return [r, g, b, 1];\n }\n throw new Error('unknown num color: ' + num);\n};\n\nexport default num2rgb;\n","import { unpack } from '../../utils/index.js';\n\nconst rgb2num = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n return (r << 16) + (g << 8) + b;\n};\n\nexport default rgb2num;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { unpack, type } from '../../utils/index.js';\nconst { round } = Math;\n\nColor.prototype.rgb = function (rnd = true) {\n if (rnd === false) return this._rgb.slice(0, 3);\n return this._rgb.slice(0, 3).map(round);\n};\n\nColor.prototype.rgba = function (rnd = true) {\n return this._rgb.slice(0, 4).map((v, i) => {\n return i < 3 ? (rnd === false ? v : round(v)) : v;\n });\n};\n\nchroma.rgb = (...args) => new Color(...args, 'rgb');\n\ninput.format.rgb = (...args) => {\n const rgba = unpack(args, 'rgba');\n if (rgba[3] === undefined) rgba[3] = 1;\n return rgba;\n};\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'rgba');\n if (\n type(args) === 'array' &&\n (args.length === 3 ||\n (args.length === 4 &&\n type(args[3]) == 'number' &&\n args[3] >= 0 &&\n args[3] <= 1))\n ) {\n return 'rgb';\n }\n }\n});\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport temperature2rgb from './temperature2rgb.js';\nimport rgb2temperature from './rgb2temperature.js';\n\nColor.prototype.temp =\n Color.prototype.kelvin =\n Color.prototype.temperature =\n function () {\n return rgb2temperature(this._rgb);\n };\n\nchroma.temp =\n chroma.kelvin =\n chroma.temperature =\n (...args) => new Color(...args, 'temp');\n\ninput.format.temp =\n input.format.kelvin =\n input.format.temperature =\n temperature2rgb;\n","/*\n * Based on implementation by Neil Bartlett\n * https://github.com/neilbartlett/color-temperature\n */\n\nconst { log } = Math;\n\nconst temperature2rgb = (kelvin) => {\n const temp = kelvin / 100;\n let r, g, b;\n if (temp < 66) {\n r = 255;\n g =\n temp < 6\n ? 0\n : -155.25485562709179 -\n 0.44596950469579133 * (g = temp - 2) +\n 104.49216199393888 * log(g);\n b =\n temp < 20\n ? 0\n : -254.76935184120902 +\n 0.8274096064007395 * (b = temp - 10) +\n 115.67994401066147 * log(b);\n } else {\n r =\n 351.97690566805693 +\n 0.114206453784165 * (r = temp - 55) -\n 40.25366309332127 * log(r);\n g =\n 325.4494125711974 +\n 0.07943456536662342 * (g = temp - 50) -\n 28.0852963507957 * log(g);\n b = 255;\n }\n return [r, g, b, 1];\n};\n\nexport default temperature2rgb;\n","/*\n * Based on implementation by Neil Bartlett\n * https://github.com/neilbartlett/color-temperature\n **/\n\nimport temperature2rgb from './temperature2rgb.js';\nimport { unpack } from '../../utils/index.js';\nconst { round } = Math;\n\nconst rgb2temperature = (...args) => {\n const rgb = unpack(args, 'rgb');\n const r = rgb[0],\n b = rgb[2];\n let minTemp = 1000;\n let maxTemp = 40000;\n const eps = 0.4;\n let temp;\n while (maxTemp - minTemp > eps) {\n temp = (maxTemp + minTemp) * 0.5;\n const rgb = temperature2rgb(temp);\n if (rgb[2] / rgb[0] >= b / r) {\n maxTemp = temp;\n } else {\n minTemp = temp;\n }\n }\n return round(temp);\n};\n\nexport default rgb2temperature;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport oklab2rgb from './oklab2rgb.js';\nimport rgb2oklab from './rgb2oklab.js';\n\nColor.prototype.oklab = function () {\n return rgb2oklab(this._rgb);\n};\n\nchroma.oklab = (...args) => new Color(...args, 'oklab');\n\ninput.format.oklab = oklab2rgb;\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'oklab');\n if (type(args) === 'array' && args.length === 3) {\n return 'oklab';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { pow, sign } = Math;\n\n/*\n * L* [0..100]\n * a [-100..100]\n * b [-100..100]\n */\nconst oklab2rgb = (...args) => {\n args = unpack(args, 'lab');\n const [L, a, b] = args;\n\n const l = pow(L + 0.3963377774 * a + 0.2158037573 * b, 3);\n const m = pow(L - 0.1055613458 * a - 0.0638541728 * b, 3);\n const s = pow(L - 0.0894841775 * a - 1.291485548 * b, 3);\n\n return [\n 255 * lrgb2rgb(+4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s),\n 255 * lrgb2rgb(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),\n 255 * lrgb2rgb(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s),\n args.length > 3 ? args[3] : 1\n ];\n};\n\nexport default oklab2rgb;\n\nfunction lrgb2rgb(c) {\n const abs = Math.abs(c);\n if (abs > 0.0031308) {\n return (sign(c) || 1) * (1.055 * pow(abs, 1 / 2.4) - 0.055);\n }\n return c * 12.92;\n}\n","import { unpack } from '../../utils/index.js';\nconst { cbrt, pow, sign } = Math;\n\nconst rgb2oklab = (...args) => {\n // OKLab color space implementation taken from\n // https://bottosson.github.io/posts/oklab/\n const [r, g, b] = unpack(args, 'rgb');\n const [lr, lg, lb] = [\n rgb2lrgb(r / 255),\n rgb2lrgb(g / 255),\n rgb2lrgb(b / 255)\n ];\n const l = cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);\n const m = cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);\n const s = cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);\n\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s\n ];\n};\n\nexport default rgb2oklab;\n\nfunction rgb2lrgb(c) {\n const abs = Math.abs(c);\n if (abs < 0.04045) {\n return c / 12.92;\n }\n return (sign(c) || 1) * pow((abs + 0.055) / 1.055, 2.4);\n}\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport oklch2rgb from './oklch2rgb.js';\nimport rgb2oklch from './rgb2oklch.js';\n\nColor.prototype.oklch = function () {\n return rgb2oklch(this._rgb);\n};\n\nchroma.oklch = (...args) => new Color(...args, 'oklch');\n\ninput.format.oklch = oklch2rgb;\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'oklch');\n if (type(args) === 'array' && args.length === 3) {\n return 'oklch';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nimport lch2lab from '../lch/lch2lab.js';\nimport oklab2rgb from '../oklab/oklab2rgb.js';\n\nconst oklch2rgb = (...args) => {\n args = unpack(args, 'lch');\n const [l, c, h] = args;\n const [L, a, b_] = lch2lab(l, c, h);\n const [r, g, b] = oklab2rgb(L, a, b_);\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default oklch2rgb;\n","import { unpack } from '../../utils/index.js';\nimport rgb2oklab from '../oklab/rgb2oklab.js';\nimport lab2lch from '../lch/lab2lch.js';\n\nconst rgb2oklch = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [l, a, b_] = rgb2oklab(r, g, b);\n return lab2lch(l, a, b_);\n};\n\nexport default rgb2oklch;\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.alpha = function (a, mutate = false) {\n if (a !== undefined && type(a) === 'number') {\n if (mutate) {\n this._rgb[3] = a;\n return this;\n }\n return new Color([this._rgb[0], this._rgb[1], this._rgb[2], a], 'rgb');\n }\n return this._rgb[3];\n};\n","import Color from '../Color.js';\n\nColor.prototype.clipped = function () {\n return this._rgb._clipped || false;\n};\n","import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.darken = function (amount = 1) {\n const me = this;\n const lab = me.lab();\n lab[0] -= LAB_CONSTANTS.Kn * amount;\n return new Color(lab, 'lab').alpha(me.alpha(), true);\n};\n\nColor.prototype.brighten = function (amount = 1) {\n return this.darken(-amount);\n};\n\nColor.prototype.darker = Color.prototype.darken;\nColor.prototype.brighter = Color.prototype.brighten;\n","import Color from '../Color.js';\n\nColor.prototype.get = function (mc) {\n const [mode, channel] = mc.split('.');\n const src = this[mode]();\n if (channel) {\n const i = mode.indexOf(channel) - (mode.substr(0, 2) === 'ok' ? 2 : 0);\n if (i > -1) return src[i];\n throw new Error(`unknown channel ${channel} in mode ${mode}`);\n } else {\n return src;\n }\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\nconst { pow } = Math;\n\nconst EPS = 1e-7;\nconst MAX_ITER = 20;\n\nColor.prototype.luminance = function (lum, mode = 'rgb') {\n if (lum !== undefined && type(lum) === 'number') {\n if (lum === 0) {\n // return pure black\n return new Color([0, 0, 0, this._rgb[3]], 'rgb');\n }\n if (lum === 1) {\n // return pure white\n return new Color([255, 255, 255, this._rgb[3]], 'rgb');\n }\n // compute new color using...\n let cur_lum = this.luminance();\n let max_iter = MAX_ITER;\n\n const test = (low, high) => {\n const mid = low.interpolate(high, 0.5, mode);\n const lm = mid.luminance();\n if (Math.abs(lum - lm) < EPS || !max_iter--) {\n // close enough\n return mid;\n }\n return lm > lum ? test(low, mid) : test(mid, high);\n };\n\n const rgb = (\n cur_lum > lum\n ? test(new Color([0, 0, 0]), this)\n : test(this, new Color([255, 255, 255]))\n ).rgb();\n return new Color([...rgb, this._rgb[3]]);\n }\n return rgb2luminance(...this._rgb.slice(0, 3));\n};\n\nconst rgb2luminance = (r, g, b) => {\n // relative luminance\n // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n r = luminance_x(r);\n g = luminance_x(g);\n b = luminance_x(b);\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\n};\n\nconst luminance_x = (x) => {\n x /= 255;\n return x <= 0.03928 ? x / 12.92 : pow((x + 0.055) / 1.055, 2.4);\n};\n","import Color from '../Color.js';\nimport mix from '../generator/mix.js';\n\nColor.prototype.mix = Color.prototype.interpolate = function (\n col2,\n f = 0.5,\n ...rest\n) {\n return mix(this, col2, f, ...rest);\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\nimport interpolator from '../interpolator/index.js';\n\nexport default (col1, col2, f = 0.5, ...rest) => {\n let mode = rest[0] || 'lrgb';\n if (!interpolator[mode] && !rest.length) {\n // fall back to the first supported mode\n mode = Object.keys(interpolator)[0];\n }\n if (!interpolator[mode]) {\n throw new Error(`interpolation mode ${mode} is not defined`);\n }\n if (type(col1) !== 'object') col1 = new Color(col1);\n if (type(col2) !== 'object') col2 = new Color(col2);\n return interpolator[mode](col1, col2, f).alpha(\n col1.alpha() + f * (col2.alpha() - col1.alpha())\n );\n};\n","export default {};\n","import Color from '../Color.js';\n\nColor.prototype.premultiply = function (mutate = false) {\n const rgb = this._rgb;\n const a = rgb[3];\n if (mutate) {\n this._rgb = [rgb[0] * a, rgb[1] * a, rgb[2] * a, a];\n return this;\n } else {\n return new Color([rgb[0] * a, rgb[1] * a, rgb[2] * a, a], 'rgb');\n }\n};\n","import '../io/lch/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.saturate = function (amount = 1) {\n const me = this;\n const lch = me.lch();\n lch[1] += LAB_CONSTANTS.Kn * amount;\n if (lch[1] < 0) lch[1] = 0;\n return new Color(lch, 'lch').alpha(me.alpha(), true);\n};\n\nColor.prototype.desaturate = function (amount = 1) {\n return this.saturate(-amount);\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.set = function (mc, value, mutate = false) {\n const [mode, channel] = mc.split('.');\n const src = this[mode]();\n if (channel) {\n const i = mode.indexOf(channel) - (mode.substr(0, 2) === 'ok' ? 2 : 0);\n if (i > -1) {\n if (type(value) == 'string') {\n switch (value.charAt(0)) {\n case '+':\n src[i] += +value;\n break;\n case '-':\n src[i] += +value;\n break;\n case '*':\n src[i] *= +value.substr(1);\n break;\n case '/':\n src[i] /= +value.substr(1);\n break;\n default:\n src[i] = +value;\n }\n } else if (type(value) === 'number') {\n src[i] = value;\n } else {\n throw new Error(`unsupported value for Color.set`);\n }\n const out = new Color(src, mode);\n if (mutate) {\n this._rgb = out._rgb;\n return this;\n }\n return out;\n }\n throw new Error(`unknown channel ${channel} in mode ${mode}`);\n } else {\n return src;\n }\n};\n","import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport mix from '../generator/mix.js';\n\nColor.prototype.tint = function (f = 0.5, ...rest) {\n return mix(this, 'white', f, ...rest);\n};\n\nColor.prototype.shade = function (f = 0.5, ...rest) {\n return mix(this, 'black', f, ...rest);\n};\n","import Color from '../Color.js';\nimport index from './index.js';\n\nconst rgb = (col1, col2, f) => {\n const xyz0 = col1._rgb;\n const xyz1 = col2._rgb;\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'rgb'\n );\n};\n\n// register interpolator\nindex.rgb = rgb;\n\nexport default rgb;\n","import Color from '../Color.js';\nconst { sqrt, pow } = Math;\nimport index from './index.js';\n\nconst lrgb = (col1, col2, f) => {\n const [x1, y1, z1] = col1._rgb;\n const [x2, y2, z2] = col2._rgb;\n return new Color(\n sqrt(pow(x1, 2) * (1 - f) + pow(x2, 2) * f),\n sqrt(pow(y1, 2) * (1 - f) + pow(y2, 2) * f),\n sqrt(pow(z1, 2) * (1 - f) + pow(z2, 2) * f),\n 'rgb'\n );\n};\n\n// register interpolator\nindex.lrgb = lrgb;\n\nexport default lrgb;\n","import '../io/lab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst lab = (col1, col2, f) => {\n const xyz0 = col1.lab();\n const xyz1 = col2.lab();\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'lab'\n );\n};\n\n// register interpolator\nindex.lab = lab;\n\nexport default lab;\n","import '../io/lch/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst lch = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'lch');\n};\n\n// register interpolator\nindex.lch = lch;\nindex.hcl = lch;\n\nexport default lch;\n","import Color from '../Color.js';\n\nexport default (col1, col2, f, m) => {\n let xyz0, xyz1;\n if (m === 'hsl') {\n xyz0 = col1.hsl();\n xyz1 = col2.hsl();\n } else if (m === 'hsv') {\n xyz0 = col1.hsv();\n xyz1 = col2.hsv();\n } else if (m === 'hcg') {\n xyz0 = col1.hcg();\n xyz1 = col2.hcg();\n } else if (m === 'hsi') {\n xyz0 = col1.hsi();\n xyz1 = col2.hsi();\n } else if (m === 'lch' || m === 'hcl') {\n m = 'hcl';\n xyz0 = col1.hcl();\n xyz1 = col2.hcl();\n } else if (m === 'oklch') {\n xyz0 = col1.oklch().reverse();\n xyz1 = col2.oklch().reverse();\n }\n\n let hue0, hue1, sat0, sat1, lbv0, lbv1;\n if (m.substr(0, 1) === 'h' || m === 'oklch') {\n [hue0, sat0, lbv0] = xyz0;\n [hue1, sat1, lbv1] = xyz1;\n }\n\n let sat, hue, lbv, dh;\n\n if (!isNaN(hue0) && !isNaN(hue1)) {\n // both colors have hue\n if (hue1 > hue0 && hue1 - hue0 > 180) {\n dh = hue1 - (hue0 + 360);\n } else if (hue1 < hue0 && hue0 - hue1 > 180) {\n dh = hue1 + 360 - hue0;\n } else {\n dh = hue1 - hue0;\n }\n hue = hue0 + f * dh;\n } else if (!isNaN(hue0)) {\n hue = hue0;\n if ((lbv1 == 1 || lbv1 == 0) && m != 'hsv') sat = sat0;\n } else if (!isNaN(hue1)) {\n hue = hue1;\n if ((lbv0 == 1 || lbv0 == 0) && m != 'hsv') sat = sat1;\n } else {\n hue = Number.NaN;\n }\n\n if (sat === undefined) sat = sat0 + f * (sat1 - sat0);\n lbv = lbv0 + f * (lbv1 - lbv0);\n return m === 'oklch'\n ? new Color([lbv, sat, hue], m)\n : new Color([hue, sat, lbv], m);\n};\n","import '../io/num/index.js';\nimport index from './index.js';\n\nimport Color from '../Color.js';\n\nconst num = (col1, col2, f) => {\n const c1 = col1.num();\n const c2 = col2.num();\n return new Color(c1 + f * (c2 - c1), 'num');\n};\n\n// register interpolator\nindex.num = num;\n\nexport default num;\n","import '../io/hcg/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hcg = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hcg');\n};\n\n// register interpolator\nindex.hcg = hcg;\n\nexport default hcg;\n","import '../io/hsi/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsi = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsi');\n};\n\n// register interpolator\nindex.hsi = hsi;\n\nexport default hsi;\n","import '../io/hsl/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsl = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsl');\n};\n\n// register interpolator\nindex.hsl = hsl;\n\nexport default hsl;\n","import '../io/hsv/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsv = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsv');\n};\n\n// register interpolator\nindex.hsv = hsv;\n\nexport default hsv;\n","import '../io/oklab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst oklab = (col1, col2, f) => {\n const xyz0 = col1.oklab();\n const xyz1 = col2.oklab();\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'oklab'\n );\n};\n\n// register interpolator\nindex.oklab = oklab;\n\nexport default oklab;\n","import '../io/lch/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst oklch = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'oklch');\n};\n\n// register interpolator\nindex.oklch = oklch;\n\nexport default oklch;\n","import Color from '../Color.js';\nimport { clip_rgb } from '../utils/index.js';\n\nconst { pow, sqrt, PI, cos, sin, atan2 } = Math;\n\nexport default (colors, mode = 'lrgb', weights = null) => {\n const l = colors.length;\n if (!weights) weights = Array.from(new Array(l)).map(() => 1);\n // normalize weights\n const k =\n l /\n weights.reduce(function (a, b) {\n return a + b;\n });\n weights.forEach((w, i) => {\n weights[i] *= k;\n });\n // convert colors to Color objects\n colors = colors.map((c) => new Color(c));\n if (mode === 'lrgb') {\n return _average_lrgb(colors, weights);\n }\n const first = colors.shift();\n const xyz = first.get(mode);\n const cnt = [];\n let dx = 0;\n let dy = 0;\n // initial color\n for (let i = 0; i < xyz.length; i++) {\n xyz[i] = (xyz[i] || 0) * weights[0];\n cnt.push(isNaN(xyz[i]) ? 0 : weights[0]);\n if (mode.charAt(i) === 'h' && !isNaN(xyz[i])) {\n const A = (xyz[i] / 180) * PI;\n dx += cos(A) * weights[0];\n dy += sin(A) * weights[0];\n }\n }\n\n let alpha = first.alpha() * weights[0];\n colors.forEach((c, ci) => {\n const xyz2 = c.get(mode);\n alpha += c.alpha() * weights[ci + 1];\n for (let i = 0; i < xyz.length; i++) {\n if (!isNaN(xyz2[i])) {\n cnt[i] += weights[ci + 1];\n if (mode.charAt(i) === 'h') {\n const A = (xyz2[i] / 180) * PI;\n dx += cos(A) * weights[ci + 1];\n dy += sin(A) * weights[ci + 1];\n } else {\n xyz[i] += xyz2[i] * weights[ci + 1];\n }\n }\n }\n });\n\n for (let i = 0; i < xyz.length; i++) {\n if (mode.charAt(i) === 'h') {\n let A = (atan2(dy / cnt[i], dx / cnt[i]) / PI) * 180;\n while (A < 0) A += 360;\n while (A >= 360) A -= 360;\n xyz[i] = A;\n } else {\n xyz[i] = xyz[i] / cnt[i];\n }\n }\n alpha /= l;\n return new Color(xyz, mode).alpha(alpha > 0.99999 ? 1 : alpha, true);\n};\n\nconst _average_lrgb = (colors, weights) => {\n const l = colors.length;\n const xyz = [0, 0, 0, 0];\n for (let i = 0; i < colors.length; i++) {\n const col = colors[i];\n const f = weights[i] / l;\n const rgb = col._rgb;\n xyz[0] += pow(rgb[0], 2) * f;\n xyz[1] += pow(rgb[1], 2) * f;\n xyz[2] += pow(rgb[2], 2) * f;\n xyz[3] += rgb[3] * f;\n }\n xyz[0] = sqrt(xyz[0]);\n xyz[1] = sqrt(xyz[1]);\n xyz[2] = sqrt(xyz[2]);\n if (xyz[3] > 0.9999999) xyz[3] = 1;\n return new Color(clip_rgb(xyz));\n};\n","//\n// interpolates between a set of colors uzing a bezier spline\n//\n\n// @requires utils lab\nimport Color from '../Color.js';\nimport '../io/lab/index.js';\nimport scale from './scale.js';\n\n// nth row of the pascal triangle\nconst binom_row = function (n) {\n let row = [1, 1];\n for (let i = 1; i < n; i++) {\n let newrow = [1];\n for (let j = 1; j <= row.length; j++) {\n newrow[j] = (row[j] || 0) + row[j - 1];\n }\n row = newrow;\n }\n return row;\n};\n\nconst bezier = function (colors) {\n let I, lab0, lab1, lab2;\n colors = colors.map((c) => new Color(c));\n if (colors.length === 2) {\n // linear interpolation\n [lab0, lab1] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map((i) => lab0[i] + t * (lab1[i] - lab0[i]));\n return new Color(lab, 'lab');\n };\n } else if (colors.length === 3) {\n // quadratic bezier interpolation\n [lab0, lab1, lab2] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map(\n (i) =>\n (1 - t) * (1 - t) * lab0[i] +\n 2 * (1 - t) * t * lab1[i] +\n t * t * lab2[i]\n );\n return new Color(lab, 'lab');\n };\n } else if (colors.length === 4) {\n // cubic bezier interpolation\n let lab3;\n [lab0, lab1, lab2, lab3] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map(\n (i) =>\n (1 - t) * (1 - t) * (1 - t) * lab0[i] +\n 3 * (1 - t) * (1 - t) * t * lab1[i] +\n 3 * (1 - t) * t * t * lab2[i] +\n t * t * t * lab3[i]\n );\n return new Color(lab, 'lab');\n };\n } else if (colors.length >= 5) {\n // general case (degree n bezier)\n let labs, row, n;\n labs = colors.map((c) => c.lab());\n n = colors.length - 1;\n row = binom_row(n);\n I = function (t) {\n const u = 1 - t;\n const lab = [0, 1, 2].map((i) =>\n labs.reduce(\n (sum, el, j) =>\n sum + row[j] * u ** (n - j) * t ** j * el[i],\n 0\n )\n );\n return new Color(lab, 'lab');\n };\n } else {\n throw new RangeError('No point in running bezier with only one color.');\n }\n return I;\n};\n\nexport default (colors) => {\n const f = bezier(colors);\n f.scale = () => scale(f);\n return f;\n};\n","// minimal multi-purpose interface\n\n// @requires utils color analyze\nimport chroma from '../chroma.js';\nimport { limit, type } from '../utils/index.js';\n\nconst { pow } = Math;\n\nexport default function (colors) {\n // constructor\n let _mode = 'rgb';\n let _nacol = chroma('#ccc');\n let _spread = 0;\n // const _fixed = false;\n let _domain = [0, 1];\n let _pos = [];\n let _padding = [0, 0];\n let _classes = false;\n let _colors = [];\n let _out = false;\n let _min = 0;\n let _max = 1;\n let _correctLightness = false;\n let _colorCache = {};\n let _useCache = true;\n let _gamma = 1;\n\n // private methods\n\n const setColors = function (colors) {\n colors = colors || ['#fff', '#000'];\n if (\n colors &&\n type(colors) === 'string' &&\n chroma.brewer &&\n chroma.brewer[colors.toLowerCase()]\n ) {\n colors = chroma.brewer[colors.toLowerCase()];\n }\n if (type(colors) === 'array') {\n // handle single color\n if (colors.length === 1) {\n colors = [colors[0], colors[0]];\n }\n // make a copy of the colors\n colors = colors.slice(0);\n // convert to chroma classes\n for (let c = 0; c < colors.length; c++) {\n colors[c] = chroma(colors[c]);\n }\n // auto-fill color position\n _pos.length = 0;\n for (let c = 0; c < colors.length; c++) {\n _pos.push(c / (colors.length - 1));\n }\n }\n resetCache();\n return (_colors = colors);\n };\n\n const getClass = function (value) {\n if (_classes != null) {\n const n = _classes.length - 1;\n let i = 0;\n while (i < n && value >= _classes[i]) {\n i++;\n }\n return i - 1;\n }\n return 0;\n };\n\n let tMapLightness = (t) => t;\n let tMapDomain = (t) => t;\n\n // const classifyValue = function(value) {\n // let val = value;\n // if (_classes.length > 2) {\n // const n = _classes.length-1;\n // const i = getClass(value);\n // const minc = _classes[0] + ((_classes[1]-_classes[0]) * (0 + (_spread * 0.5))); // center of 1st class\n // const maxc = _classes[n-1] + ((_classes[n]-_classes[n-1]) * (1 - (_spread * 0.5))); // center of last class\n // val = _min + ((((_classes[i] + ((_classes[i+1] - _classes[i]) * 0.5)) - minc) / (maxc-minc)) * (_max - _min));\n // }\n // return val;\n // };\n\n const getColor = function (val, bypassMap) {\n let col, t;\n if (bypassMap == null) {\n bypassMap = false;\n }\n if (isNaN(val) || val === null) {\n return _nacol;\n }\n if (!bypassMap) {\n if (_classes && _classes.length > 2) {\n // find the class\n const c = getClass(val);\n t = c / (_classes.length - 2);\n } else if (_max !== _min) {\n // just interpolate between min/max\n t = (val - _min) / (_max - _min);\n } else {\n t = 1;\n }\n } else {\n t = val;\n }\n\n // domain map\n t = tMapDomain(t);\n\n if (!bypassMap) {\n t = tMapLightness(t); // lightness correction\n }\n\n if (_gamma !== 1) {\n t = pow(t, _gamma);\n }\n\n t = _padding[0] + t * (1 - _padding[0] - _padding[1]);\n\n t = limit(t, 0, 1);\n\n const k = Math.floor(t * 10000);\n\n if (_useCache && _colorCache[k]) {\n col = _colorCache[k];\n } else {\n if (type(_colors) === 'array') {\n //for i in [0.._pos.length-1]\n for (let i = 0; i < _pos.length; i++) {\n const p = _pos[i];\n if (t <= p) {\n col = _colors[i];\n break;\n }\n if (t >= p && i === _pos.length - 1) {\n col = _colors[i];\n break;\n }\n if (t > p && t < _pos[i + 1]) {\n t = (t - p) / (_pos[i + 1] - p);\n col = chroma.interpolate(\n _colors[i],\n _colors[i + 1],\n t,\n _mode\n );\n break;\n }\n }\n } else if (type(_colors) === 'function') {\n col = _colors(t);\n }\n if (_useCache) {\n _colorCache[k] = col;\n }\n }\n return col;\n };\n\n var resetCache = () => (_colorCache = {});\n\n setColors(colors);\n\n // public interface\n\n const f = function (v) {\n const c = chroma(getColor(v));\n if (_out && c[_out]) {\n return c[_out]();\n } else {\n return c;\n }\n };\n\n f.classes = function (classes) {\n if (classes != null) {\n if (type(classes) === 'array') {\n _classes = classes;\n _domain = [classes[0], classes[classes.length - 1]];\n } else {\n const d = chroma.analyze(_domain);\n if (classes === 0) {\n _classes = [d.min, d.max];\n } else {\n _classes = chroma.limits(d, 'e', classes);\n }\n }\n return f;\n }\n return _classes;\n };\n\n f.domain = function (domain) {\n if (!arguments.length) {\n return _domain;\n }\n _min = domain[0];\n _max = domain[domain.length - 1];\n _pos = [];\n const k = _colors.length;\n if (domain.length === k && _min !== _max) {\n // update positions\n for (let d of Array.from(domain)) {\n _pos.push((d - _min) / (_max - _min));\n }\n } else {\n for (let c = 0; c < k; c++) {\n _pos.push(c / (k - 1));\n }\n if (domain.length > 2) {\n // set domain map\n const tOut = domain.map((d, i) => i / (domain.length - 1));\n const tBreaks = domain.map((d) => (d - _min) / (_max - _min));\n if (!tBreaks.every((val, i) => tOut[i] === val)) {\n tMapDomain = (t) => {\n if (t <= 0 || t >= 1) return t;\n let i = 0;\n while (t >= tBreaks[i + 1]) i++;\n const f =\n (t - tBreaks[i]) / (tBreaks[i + 1] - tBreaks[i]);\n const out = tOut[i] + f * (tOut[i + 1] - tOut[i]);\n return out;\n };\n }\n }\n }\n _domain = [_min, _max];\n return f;\n };\n\n f.mode = function (_m) {\n if (!arguments.length) {\n return _mode;\n }\n _mode = _m;\n resetCache();\n return f;\n };\n\n f.range = function (colors, _pos) {\n setColors(colors, _pos);\n return f;\n };\n\n f.out = function (_o) {\n _out = _o;\n return f;\n };\n\n f.spread = function (val) {\n if (!arguments.length) {\n return _spread;\n }\n _spread = val;\n return f;\n };\n\n f.correctLightness = function (v) {\n if (v == null) {\n v = true;\n }\n _correctLightness = v;\n resetCache();\n if (_correctLightness) {\n tMapLightness = function (t) {\n const L0 = getColor(0, true).lab()[0];\n const L1 = getColor(1, true).lab()[0];\n const pol = L0 > L1;\n let L_actual = getColor(t, true).lab()[0];\n const L_ideal = L0 + (L1 - L0) * t;\n let L_diff = L_actual - L_ideal;\n let t0 = 0;\n let t1 = 1;\n let max_iter = 20;\n while (Math.abs(L_diff) > 1e-2 && max_iter-- > 0) {\n (function () {\n if (pol) {\n L_diff *= -1;\n }\n if (L_diff < 0) {\n t0 = t;\n t += (t1 - t) * 0.5;\n } else {\n t1 = t;\n t += (t0 - t) * 0.5;\n }\n L_actual = getColor(t, true).lab()[0];\n return (L_diff = L_actual - L_ideal);\n })();\n }\n return t;\n };\n } else {\n tMapLightness = (t) => t;\n }\n return f;\n };\n\n f.padding = function (p) {\n if (p != null) {\n if (type(p) === 'number') {\n p = [p, p];\n }\n _padding = p;\n return f;\n } else {\n return _padding;\n }\n };\n\n f.colors = function (numColors, out) {\n // If no arguments are given, return the original colors that were provided\n if (arguments.length < 2) {\n out = 'hex';\n }\n let result = [];\n\n if (arguments.length === 0) {\n result = _colors.slice(0);\n } else if (numColors === 1) {\n result = [f(0.5)];\n } else if (numColors > 1) {\n const dm = _domain[0];\n const dd = _domain[1] - dm;\n result = __range__(0, numColors, false).map((i) =>\n f(dm + (i / (numColors - 1)) * dd)\n );\n } else {\n // returns all colors based on the defined classes\n colors = [];\n let samples = [];\n if (_classes && _classes.length > 2) {\n for (\n let i = 1, end = _classes.length, asc = 1 <= end;\n asc ? i < end : i > end;\n asc ? i++ : i--\n ) {\n samples.push((_classes[i - 1] + _classes[i]) * 0.5);\n }\n } else {\n samples = _domain;\n }\n result = samples.map((v) => f(v));\n }\n\n if (chroma[out]) {\n result = result.map((c) => c[out]());\n }\n return result;\n };\n\n f.cache = function (c) {\n if (c != null) {\n _useCache = c;\n return f;\n } else {\n return _useCache;\n }\n };\n\n f.gamma = function (g) {\n if (g != null) {\n _gamma = g;\n return f;\n } else {\n return _gamma;\n }\n };\n\n f.nodata = function (d) {\n if (d != null) {\n _nacol = chroma(d);\n return f;\n } else {\n return _nacol;\n }\n };\n\n return f;\n}\n\nfunction __range__(left, right, inclusive) {\n let range = [];\n let ascending = left < right;\n let end = !inclusive ? right : ascending ? right + 1 : right - 1;\n for (let i = left; ascending ? i < end : i > end; ascending ? i++ : i--) {\n range.push(i);\n }\n return range;\n}\n","/*\n * interpolates between a set of colors uzing a bezier spline\n * blend mode formulas taken from https://web.archive.org/web/20180110014946/http://www.venture-ware.com/kevin/coding/lets-learn-math-photoshop-blend-modes/\n */\n\nimport '../io/rgb/index.js';\nimport chroma from '../chroma.js';\n\nconst blend = (bottom, top, mode) => {\n if (!blend[mode]) {\n throw new Error('unknown blend mode ' + mode);\n }\n return blend[mode](bottom, top);\n};\n\nconst blend_f = (f) => (bottom, top) => {\n const c0 = chroma(top).rgb();\n const c1 = chroma(bottom).rgb();\n return chroma.rgb(f(c0, c1));\n};\n\nconst each = (f) => (c0, c1) => {\n const out = [];\n out[0] = f(c0[0], c1[0]);\n out[1] = f(c0[1], c1[1]);\n out[2] = f(c0[2], c1[2]);\n return out;\n};\n\nconst normal = (a) => a;\nconst multiply = (a, b) => (a * b) / 255;\nconst darken = (a, b) => (a > b ? b : a);\nconst lighten = (a, b) => (a > b ? a : b);\nconst screen = (a, b) => 255 * (1 - (1 - a / 255) * (1 - b / 255));\nconst overlay = (a, b) =>\n b < 128 ? (2 * a * b) / 255 : 255 * (1 - 2 * (1 - a / 255) * (1 - b / 255));\nconst burn = (a, b) => 255 * (1 - (1 - b / 255) / (a / 255));\nconst dodge = (a, b) => {\n if (a === 255) return 255;\n a = (255 * (b / 255)) / (1 - a / 255);\n return a > 255 ? 255 : a;\n};\n\n// # add = (a,b) ->\n// # if (a + b > 255) then 255 else a + b\n\nblend.normal = blend_f(each(normal));\nblend.multiply = blend_f(each(multiply));\nblend.screen = blend_f(each(screen));\nblend.overlay = blend_f(each(overlay));\nblend.darken = blend_f(each(darken));\nblend.lighten = blend_f(each(lighten));\nblend.dodge = blend_f(each(dodge));\nblend.burn = blend_f(each(burn));\n// blend.add = blend_f(each(add));\n\nexport default blend;\n","// cubehelix interpolation\n// based on D.A. Green \"A colour scheme for the display of astronomical intensity images\"\n// http://astron-soc.in/bulletin/11June/289392011.pdf\nimport { type, clip_rgb, TWOPI } from '../utils/index.js';\nimport chroma from '../chroma.js';\nconst { pow, sin, cos } = Math;\n\nexport default function (\n start = 300,\n rotations = -1.5,\n hue = 1,\n gamma = 1,\n lightness = [0, 1]\n) {\n let dh = 0,\n dl;\n if (type(lightness) === 'array') {\n dl = lightness[1] - lightness[0];\n } else {\n dl = 0;\n lightness = [lightness, lightness];\n }\n const f = function (fract) {\n const a = TWOPI * ((start + 120) / 360 + rotations * fract);\n const l = pow(lightness[0] + dl * fract, gamma);\n const h = dh !== 0 ? hue[0] + fract * dh : hue;\n const amp = (h * l * (1 - l)) / 2;\n const cos_a = cos(a);\n const sin_a = sin(a);\n const r = l + amp * (-0.14861 * cos_a + 1.78277 * sin_a);\n const g = l + amp * (-0.29227 * cos_a - 0.90649 * sin_a);\n const b = l + amp * (+1.97294 * cos_a);\n return chroma(clip_rgb([r * 255, g * 255, b * 255, 1]));\n };\n f.start = function (s) {\n if (s == null) {\n return start;\n }\n start = s;\n return f;\n };\n f.rotations = function (r) {\n if (r == null) {\n return rotations;\n }\n rotations = r;\n return f;\n };\n f.gamma = function (g) {\n if (g == null) {\n return gamma;\n }\n gamma = g;\n return f;\n };\n f.hue = function (h) {\n if (h == null) {\n return hue;\n }\n hue = h;\n if (type(hue) === 'array') {\n dh = hue[1] - hue[0];\n if (dh === 0) {\n hue = hue[1];\n }\n } else {\n dh = 0;\n }\n return f;\n };\n f.lightness = function (h) {\n if (h == null) {\n return lightness;\n }\n if (type(h) === 'array') {\n lightness = h;\n dl = h[1] - h[0];\n } else {\n lightness = [h, h];\n dl = 0;\n }\n return f;\n };\n f.scale = () => chroma.scale(f);\n f.hue(hue);\n return f;\n}\n","import Color from '../Color.js';\nconst digits = '0123456789abcdef';\n\nconst { floor, random } = Math;\n\nexport default () => {\n let code = '#';\n for (let i = 0; i < 6; i++) {\n code += digits.charAt(floor(random() * 16));\n }\n return new Color(code, 'hex');\n};\n","import type from './type.js';\n\nconst { log, pow, floor, abs } = Math;\n\nexport function analyze(data, key = null) {\n const r = {\n min: Number.MAX_VALUE,\n max: Number.MAX_VALUE * -1,\n sum: 0,\n values: [],\n count: 0\n };\n if (type(data) === 'object') {\n data = Object.values(data);\n }\n data.forEach((val) => {\n if (key && type(val) === 'object') val = val[key];\n if (val !== undefined && val !== null && !isNaN(val)) {\n r.values.push(val);\n r.sum += val;\n if (val < r.min) r.min = val;\n if (val > r.max) r.max = val;\n r.count += 1;\n }\n });\n\n r.domain = [r.min, r.max];\n\n r.limits = (mode, num) => limits(r, mode, num);\n\n return r;\n}\n\nexport function limits(data, mode = 'equal', num = 7) {\n if (type(data) == 'array') {\n data = analyze(data);\n }\n const { min, max } = data;\n const values = data.values.sort((a, b) => a - b);\n\n if (num === 1) {\n return [min, max];\n }\n\n const limits = [];\n\n if (mode.substr(0, 1) === 'c') {\n // continuous\n limits.push(min);\n limits.push(max);\n }\n\n if (mode.substr(0, 1) === 'e') {\n // equal interval\n limits.push(min);\n for (let i = 1; i < num; i++) {\n limits.push(min + (i / num) * (max - min));\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'l') {\n // log scale\n if (min <= 0) {\n throw new Error(\n 'Logarithmic scales are only possible for values > 0'\n );\n }\n const min_log = Math.LOG10E * log(min);\n const max_log = Math.LOG10E * log(max);\n limits.push(min);\n for (let i = 1; i < num; i++) {\n limits.push(pow(10, min_log + (i / num) * (max_log - min_log)));\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'q') {\n // quantile scale\n limits.push(min);\n for (let i = 1; i < num; i++) {\n const p = ((values.length - 1) * i) / num;\n const pb = floor(p);\n if (pb === p) {\n limits.push(values[pb]);\n } else {\n // p > pb\n const pr = p - pb;\n limits.push(values[pb] * (1 - pr) + values[pb + 1] * pr);\n }\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'k') {\n // k-means clustering\n /*\n implementation based on\n http://code.google.com/p/figue/source/browse/trunk/figue.js#336\n simplified for 1-d input values\n */\n let cluster;\n const n = values.length;\n const assignments = new Array(n);\n const clusterSizes = new Array(num);\n let repeat = true;\n let nb_iters = 0;\n let centroids = null;\n\n // get seed values\n centroids = [];\n centroids.push(min);\n for (let i = 1; i < num; i++) {\n centroids.push(min + (i / num) * (max - min));\n }\n centroids.push(max);\n\n while (repeat) {\n // assignment step\n for (let j = 0; j < num; j++) {\n clusterSizes[j] = 0;\n }\n for (let i = 0; i < n; i++) {\n const value = values[i];\n let mindist = Number.MAX_VALUE;\n let best;\n for (let j = 0; j < num; j++) {\n const dist = abs(centroids[j] - value);\n if (dist < mindist) {\n mindist = dist;\n best = j;\n }\n clusterSizes[best]++;\n assignments[i] = best;\n }\n }\n\n // update centroids step\n const newCentroids = new Array(num);\n for (let j = 0; j < num; j++) {\n newCentroids[j] = null;\n }\n for (let i = 0; i < n; i++) {\n cluster = assignments[i];\n if (newCentroids[cluster] === null) {\n newCentroids[cluster] = values[i];\n } else {\n newCentroids[cluster] += values[i];\n }\n }\n for (let j = 0; j < num; j++) {\n newCentroids[j] *= 1 / clusterSizes[j];\n }\n\n // check convergence\n repeat = false;\n for (let j = 0; j < num; j++) {\n if (newCentroids[j] !== centroids[j]) {\n repeat = true;\n break;\n }\n }\n\n centroids = newCentroids;\n nb_iters++;\n\n if (nb_iters > 200) {\n repeat = false;\n }\n }\n\n // finished k-means clustering\n // the next part is borrowed from gabrielflor.it\n const kClusters = {};\n for (let j = 0; j < num; j++) {\n kClusters[j] = [];\n }\n for (let i = 0; i < n; i++) {\n cluster = assignments[i];\n kClusters[cluster].push(values[i]);\n }\n let tmpKMeansBreaks = [];\n for (let j = 0; j < num; j++) {\n tmpKMeansBreaks.push(kClusters[j][0]);\n tmpKMeansBreaks.push(kClusters[j][kClusters[j].length - 1]);\n }\n tmpKMeansBreaks = tmpKMeansBreaks.sort((a, b) => a - b);\n limits.push(tmpKMeansBreaks[0]);\n for (let i = 1; i < tmpKMeansBreaks.length; i += 2) {\n const v = tmpKMeansBreaks[i];\n if (!isNaN(v) && limits.indexOf(v) === -1) {\n limits.push(v);\n }\n }\n }\n return limits;\n}\n","import Color from '../Color.js';\nimport '../ops/luminance.js';\n\nexport default (a, b) => {\n // WCAG contrast ratio\n // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef\n a = new Color(a);\n b = new Color(b);\n const l1 = a.luminance();\n const l2 = b.luminance();\n return l1 > l2 ? (l1 + 0.05) / (l2 + 0.05) : (l2 + 0.05) / (l1 + 0.05);\n};\n","import Color from '../Color.js';\nconst { sqrt, pow, min, max, atan2, abs, cos, sin, exp, PI } = Math;\n\nexport default function (a, b, Kl = 1, Kc = 1, Kh = 1) {\n // Delta E (CIE 2000)\n // see http://www.brucelindbloom.com/index.html?Eqn_DeltaE_CIE2000.html\n var rad2deg = function (rad) {\n return (360 * rad) / (2 * PI);\n };\n var deg2rad = function (deg) {\n return (2 * PI * deg) / 360;\n };\n a = new Color(a);\n b = new Color(b);\n const [L1, a1, b1] = Array.from(a.lab());\n const [L2, a2, b2] = Array.from(b.lab());\n const avgL = (L1 + L2) / 2;\n const C1 = sqrt(pow(a1, 2) + pow(b1, 2));\n const C2 = sqrt(pow(a2, 2) + pow(b2, 2));\n const avgC = (C1 + C2) / 2;\n const G = 0.5 * (1 - sqrt(pow(avgC, 7) / (pow(avgC, 7) + pow(25, 7))));\n const a1p = a1 * (1 + G);\n const a2p = a2 * (1 + G);\n const C1p = sqrt(pow(a1p, 2) + pow(b1, 2));\n const C2p = sqrt(pow(a2p, 2) + pow(b2, 2));\n const avgCp = (C1p + C2p) / 2;\n const arctan1 = rad2deg(atan2(b1, a1p));\n const arctan2 = rad2deg(atan2(b2, a2p));\n const h1p = arctan1 >= 0 ? arctan1 : arctan1 + 360;\n const h2p = arctan2 >= 0 ? arctan2 : arctan2 + 360;\n const avgHp =\n abs(h1p - h2p) > 180 ? (h1p + h2p + 360) / 2 : (h1p + h2p) / 2;\n const T =\n 1 -\n 0.17 * cos(deg2rad(avgHp - 30)) +\n 0.24 * cos(deg2rad(2 * avgHp)) +\n 0.32 * cos(deg2rad(3 * avgHp + 6)) -\n 0.2 * cos(deg2rad(4 * avgHp - 63));\n let deltaHp = h2p - h1p;\n deltaHp =\n abs(deltaHp) <= 180\n ? deltaHp\n : h2p <= h1p\n ? deltaHp + 360\n : deltaHp - 360;\n deltaHp = 2 * sqrt(C1p * C2p) * sin(deg2rad(deltaHp) / 2);\n const deltaL = L2 - L1;\n const deltaCp = C2p - C1p;\n const sl = 1 + (0.015 * pow(avgL - 50, 2)) / sqrt(20 + pow(avgL - 50, 2));\n const sc = 1 + 0.045 * avgCp;\n const sh = 1 + 0.015 * avgCp * T;\n const deltaTheta = 30 * exp(-pow((avgHp - 275) / 25, 2));\n const Rc = 2 * sqrt(pow(avgCp, 7) / (pow(avgCp, 7) + pow(25, 7)));\n const Rt = -Rc * sin(2 * deg2rad(deltaTheta));\n const result = sqrt(\n pow(deltaL / (Kl * sl), 2) +\n pow(deltaCp / (Kc * sc), 2) +\n pow(deltaHp / (Kh * sh), 2) +\n Rt * (deltaCp / (Kc * sc)) * (deltaHp / (Kh * sh))\n );\n return max(0, min(100, result));\n}\n","import Color from '../Color.js';\n\n// simple Euclidean distance\nexport default function (a, b, mode = 'lab') {\n // Delta E (CIE 1976)\n // see http://www.brucelindbloom.com/index.html?Equations.html\n a = new Color(a);\n b = new Color(b);\n const l1 = a.get(mode);\n const l2 = b.get(mode);\n let sum_sq = 0;\n for (let i in l1) {\n const d = (l1[i] || 0) - (l2[i] || 0);\n sum_sq += d * d;\n }\n return Math.sqrt(sum_sq);\n}\n","import Color from '../Color.js';\n\nexport default (...args) => {\n try {\n new Color(...args);\n return true;\n // eslint-disable-next-line\n } catch (e) {\n return false;\n }\n};\n","// some pre-defined color scales:\nimport chroma from '../chroma.js';\nimport '../io/hsl/index.js';\nimport scale from '../generator/scale.js';\n\nexport default {\n cool() {\n return scale([chroma.hsl(180, 1, 0.9), chroma.hsl(250, 0.7, 0.4)]);\n },\n hot() {\n return scale(['#000', '#f00', '#ff0', '#fff'], [0, 0.25, 0.75, 1]).mode(\n 'rgb'\n );\n }\n};\n","/**\n ColorBrewer colors for chroma.js\n\n Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The\n Pennsylvania State University.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software distributed\n under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n CONDITIONS OF ANY KIND, either express or implied. See the License for the\n specific language governing permissions and limitations under the License.\n*/\n\nconst colorbrewer = {\n // sequential\n OrRd: ['#fff7ec', '#fee8c8', '#fdd49e', '#fdbb84', '#fc8d59', '#ef6548', '#d7301f', '#b30000', '#7f0000'],\n PuBu: ['#fff7fb', '#ece7f2', '#d0d1e6', '#a6bddb', '#74a9cf', '#3690c0', '#0570b0', '#045a8d', '#023858'],\n BuPu: ['#f7fcfd', '#e0ecf4', '#bfd3e6', '#9ebcda', '#8c96c6', '#8c6bb1', '#88419d', '#810f7c', '#4d004b'],\n Oranges: ['#fff5eb', '#fee6ce', '#fdd0a2', '#fdae6b', '#fd8d3c', '#f16913', '#d94801', '#a63603', '#7f2704'],\n BuGn: ['#f7fcfd', '#e5f5f9', '#ccece6', '#99d8c9', '#66c2a4', '#41ae76', '#238b45', '#006d2c', '#00441b'],\n YlOrBr: ['#ffffe5', '#fff7bc', '#fee391', '#fec44f', '#fe9929', '#ec7014', '#cc4c02', '#993404', '#662506'],\n YlGn: ['#ffffe5', '#f7fcb9', '#d9f0a3', '#addd8e', '#78c679', '#41ab5d', '#238443', '#006837', '#004529'],\n Reds: ['#fff5f0', '#fee0d2', '#fcbba1', '#fc9272', '#fb6a4a', '#ef3b2c', '#cb181d', '#a50f15', '#67000d'],\n RdPu: ['#fff7f3', '#fde0dd', '#fcc5c0', '#fa9fb5', '#f768a1', '#dd3497', '#ae017e', '#7a0177', '#49006a'],\n Greens: ['#f7fcf5', '#e5f5e0', '#c7e9c0', '#a1d99b', '#74c476', '#41ab5d', '#238b45', '#006d2c', '#00441b'],\n YlGnBu: ['#ffffd9', '#edf8b1', '#c7e9b4', '#7fcdbb', '#41b6c4', '#1d91c0', '#225ea8', '#253494', '#081d58'],\n Purples: ['#fcfbfd', '#efedf5', '#dadaeb', '#bcbddc', '#9e9ac8', '#807dba', '#6a51a3', '#54278f', '#3f007d'],\n GnBu: ['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081'],\n Greys: ['#ffffff', '#f0f0f0', '#d9d9d9', '#bdbdbd', '#969696', '#737373', '#525252', '#252525', '#000000'],\n YlOrRd: ['#ffffcc', '#ffeda0', '#fed976', '#feb24c', '#fd8d3c', '#fc4e2a', '#e31a1c', '#bd0026', '#800026'],\n PuRd: ['#f7f4f9', '#e7e1ef', '#d4b9da', '#c994c7', '#df65b0', '#e7298a', '#ce1256', '#980043', '#67001f'],\n Blues: ['#f7fbff', '#deebf7', '#c6dbef', '#9ecae1', '#6baed6', '#4292c6', '#2171b5', '#08519c', '#08306b'],\n PuBuGn: ['#fff7fb', '#ece2f0', '#d0d1e6', '#a6bddb', '#67a9cf', '#3690c0', '#02818a', '#016c59', '#014636'],\n Viridis: ['#440154', '#482777', '#3f4a8a', '#31678e', '#26838f', '#1f9d8a', '#6cce5a', '#b6de2b', '#fee825'],\n\n // diverging\n Spectral: ['#9e0142', '#d53e4f', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#e6f598', '#abdda4', '#66c2a5', '#3288bd', '#5e4fa2'],\n RdYlGn: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#d9ef8b', '#a6d96a', '#66bd63', '#1a9850', '#006837'],\n RdBu: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#f7f7f7', '#d1e5f0', '#92c5de', '#4393c3', '#2166ac', '#053061'],\n PiYG: ['#8e0152', '#c51b7d', '#de77ae', '#f1b6da', '#fde0ef', '#f7f7f7', '#e6f5d0', '#b8e186', '#7fbc41', '#4d9221', '#276419'],\n PRGn: ['#40004b', '#762a83', '#9970ab', '#c2a5cf', '#e7d4e8', '#f7f7f7', '#d9f0d3', '#a6dba0', '#5aae61', '#1b7837', '#00441b'],\n RdYlBu: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee090', '#ffffbf', '#e0f3f8', '#abd9e9', '#74add1', '#4575b4', '#313695'],\n BrBG: ['#543005', '#8c510a', '#bf812d', '#dfc27d', '#f6e8c3', '#f5f5f5', '#c7eae5', '#80cdc1', '#35978f', '#01665e', '#003c30'],\n RdGy: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#ffffff', '#e0e0e0', '#bababa', '#878787', '#4d4d4d', '#1a1a1a'],\n PuOr: ['#7f3b08', '#b35806', '#e08214', '#fdb863', '#fee0b6', '#f7f7f7', '#d8daeb', '#b2abd2', '#8073ac', '#542788', '#2d004b'],\n\n // qualitative\n Set2: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', '#e5c494', '#b3b3b3'],\n Accent: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0', '#f0027f', '#bf5b17', '#666666'],\n Set1: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33', '#a65628', '#f781bf', '#999999'],\n Set3: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462', '#b3de69', '#fccde5', '#d9d9d9', '#bc80bd', '#ccebc5', '#ffed6f'],\n Dark2: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02', '#a6761d', '#666666'],\n Paired: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f', '#ff7f00', '#cab2d6', '#6a3d9a', '#ffff99', '#b15928'],\n Pastel2: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4', '#e6f5c9', '#fff2ae', '#f1e2cc', '#cccccc'],\n Pastel1: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4', '#fed9a6', '#ffffcc', '#e5d8bd', '#fddaec', '#f2f2f2']\n};\n\n// add lowercase aliases for case-insensitive matches\nfor (let key of Object.keys(colorbrewer)) {\n colorbrewer[key.toLowerCase()] = colorbrewer[key];\n}\n\nexport default colorbrewer;\n","import { Layout } from './layout'\nimport chroma from 'chroma-js'\nimport paper, { Layer, Path, Size } from 'paper'\nimport { addClass, debounce, emitEvent, fuzzyEquals, noop, removeClass } from './util'\nimport { Item } from './item'\nimport { Mask } from './items/mask'\nimport { Modifier } from './modifier'\nimport { Beam } from './items/beam'\nimport { Collision as CollisionItem } from './items/collision'\nimport { Stateful } from './stateful'\nimport { OffsetCoordinates } from './coordinates/offset'\nimport { State } from './state'\nimport { Puzzles } from '../puzzles'\nimport { StepState } from './step'\nimport { EventListeners } from './eventListeners'\nimport { Solution } from './solution'\nimport { Interact } from './interact'\nimport { Tile } from './items/tile'\n\nconst elements = Object.freeze({\n footer: document.getElementById('footer'),\n footerMessage: document.getElementById('footer-message'),\n headerMessage: document.getElementById('header-message'),\n main: document.getElementById('main'),\n next: document.getElementById('next'),\n previous: document.getElementById('previous'),\n puzzle: document.getElementById('puzzle'),\n puzzleId: document.getElementById('puzzle-id'),\n redo: document.getElementById('redo'),\n reset: document.getElementById('reset'),\n undo: document.getElementById('undo'),\n title: document.querySelector('title')\n})\n\n// There are various spots below that utilize setTimeout in order to process events in order and to prevent\n// long-running computations from blocking UI updates.\n// See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Event_loop\nexport class Puzzle {\n connections = []\n debug = false\n error = false\n layers = {}\n message\n selectedTile\n solved = false\n\n #beams\n #beamsUpdateDelay = 30\n #collisions = {}\n #eventListeners = new EventListeners({ context: this })\n #interact\n #isUpdatingBeams = false\n #mask\n #maskQueue = []\n #solution\n #state\n #termini\n #tiles = []\n\n constructor () {\n // Don't automatically insert items into the scene graph, they must be explicitly inserted\n paper.settings.insertItems = false\n // noinspection JSCheckFunctionSignatures\n paper.setup(elements.puzzle)\n\n this.#resize()\n\n this.layers.mask = new Layer()\n this.layers.collisions = new Layer()\n this.layers.debug = new Layer()\n\n this.#eventListeners.add([\n { type: Beam.Events.Update, handler: this.#onBeamUpdate },\n { type: 'change', element: elements.puzzleId, handler: this.#onSelect },\n { type: 'click', element: elements.next, handler: this.#next },\n { type: 'click', element: elements.previous, handler: this.#previous },\n { type: 'click', element: elements.redo, handler: this.#redo },\n { type: 'click', element: elements.reset, handler: this.#reset },\n { type: 'click', element: elements.undo, handler: this.#undo },\n { type: 'keyup', handler: this.#onKeyup },\n { type: Modifier.Events.Invoked, handler: this.#onModifierInvoked },\n { type: Puzzle.Events.Mask, handler: this.#onMask },\n { type: 'resize', element: window, handler: debounce(this.#resize) },\n { type: Stateful.Events.Update, handler: this.#onStateUpdate },\n { type: 'tap', element: elements.puzzle, handler: this.#onTap }\n ])\n\n this.#interact = new Interact(elements.puzzle)\n this.#updateDropdown()\n\n this.select()\n }\n\n centerOnTile (offset) {\n const tile = this.layout.getTileByOffset(offset)\n paper.view.center = tile.center\n }\n\n clearDebugPoints () {\n this.layers.debug.clear()\n }\n\n drawDebugPoint (point, style = {}) {\n const circle = new Path.Circle(Object.assign({\n radius: 3,\n fillColor: 'red',\n strokeColor: 'white',\n strokeWidth: 1,\n center: point\n }, style))\n this.layers.debug.addChild(circle)\n }\n\n getBeamsUpdateDelay () {\n return this.#beamsUpdateDelay\n }\n\n getItems (tile) {\n return (tile ? this.#tiles.filter((t) => t === tile) : this.#tiles).flatMap((tile) => tile.items)\n }\n\n getTile (point) {\n const result = paper.project.hitTest(point.ceil(), {\n fill: true,\n match: (result) => result.item.data.type === Item.Types.tile,\n segments: true,\n stroke: true,\n tolerance: 0\n })\n return result ? this.layout.getTileByAxial(result.item.data.coordinates.axial) : result\n }\n\n mask (mask) {\n if (this.#mask) {\n if (this.#mask.equals(mask)) {\n console.debug(mask)\n throw new Error(`Duplicate mask detected: ${mask.id}`)\n }\n\n console.debug('adding mask to queue', mask)\n this.#maskQueue.push(mask)\n return\n }\n\n this.#mask = mask\n\n // TODO animation?\n const tiles = this.#tiles.filter(mask.tileFilter)\n .map((tile) => new Mask(\n tile,\n typeof mask.configuration.style === 'function'\n ? mask.configuration.style(tile)\n : mask.configuration.style\n ))\n\n this.layers.mask.addChildren(tiles.map((tile) => tile.group))\n\n if (mask.message) {\n elements.headerMessage.textContent = mask.message\n }\n\n mask.onMask(this)\n\n document.body.classList.add(Puzzle.Events.Mask)\n }\n\n select (id) {\n if (id !== undefined && id === this.#state?.getId()) {\n // This ID is already selected\n return\n }\n\n try {\n this.#state = State.resolve(id)\n } catch (e) {\n this.#onError(e, 'Could not load puzzle.')\n }\n\n this.#reload()\n }\n\n unmask () {\n console.debug('unmask', this.#mask)\n this.layers.mask.removeChildren()\n this.#updateMessage(this.selectedTile)\n this.#mask.onUnmask(this)\n this.#mask = undefined\n\n document.body.classList.remove(Puzzle.Events.Mask)\n\n const mask = this.#maskQueue.pop()\n if (mask) {\n console.debug('processing next mask in queue', mask)\n // Evaluate after any current events have processed (e.g. beam updates from last mask)\n setTimeout(() => {\n // Allow mask to update since state may have changed since it was queued\n // If onUpdate returns false the mask will not be applied\n if (mask.onUpdate() !== false) {\n this.mask(mask)\n }\n })\n }\n }\n\n update () {\n if (!this.#mask && !this.#isUpdatingBeams) {\n this.#isUpdatingBeams = true\n this.#updateBeams()\n }\n }\n\n updateSelectedTile (tile) {\n const previouslySelectedTile = this.selectedTile\n\n this.selectedTile = tile\n this.#state.setSelectedTile(tile)\n this.#updateMessage(tile)\n this.#updateModifiers(tile, previouslySelectedTile)\n\n if (previouslySelectedTile && previouslySelectedTile !== tile) {\n previouslySelectedTile.onDeselected(tile)\n }\n\n if (tile && tile !== previouslySelectedTile) {\n tile.onSelected(previouslySelectedTile)\n }\n\n return previouslySelectedTile\n }\n\n updateState (keepDelta = true) {\n this.#state.update(Object.assign(this.#state.getCurrent(), { layout: this.layout.getState() }), keepDelta)\n this.#updateActions()\n if (keepDelta) {\n emitEvent(Puzzle.Events.Updated, { state: this.#state })\n }\n }\n\n #addLayers () {\n // Add layers in the order we want them\n [\n this.layout.layers.tiles,\n this.layout.layers.items,\n this.layers.mask,\n this.layers.collisions,\n this.layers.debug\n ].forEach((layer) => paper.project.addLayer(layer))\n }\n\n #getModifiers (tile) {\n // Sort by ID to ensure they always appear in the same order regardless of ownership\n return this.layout.modifiers.concat(tile?.modifiers || [])\n .filter((modifier) => !modifier.immutable)\n .sort((a, b) => a.id - b.id)\n }\n\n #next () {\n const id = Puzzles.visible.nextId(this.#state.getId())\n if (id) {\n this.select(id)\n }\n }\n\n #onBeamUpdate (event) {\n const beam = event.detail.beam\n const state = event.detail.state\n\n if (state?.has(StepState.Collision)) {\n const collision = state.get(StepState.Collision)\n const collisionId = Puzzle.Collision.id(collision.point)\n const existing = this.#collisions[collisionId]\n\n if (existing) {\n existing.addBeam(beam)\n } else {\n this.#collisions[collisionId] = new Puzzle.Collision(this.layers.collisions, [beam], collision.point)\n }\n\n // Beam with collision has an active mask\n const mask = this.#mask?.configuration\n if (mask?.beam?.equals(beam)) {\n this.unmask()\n }\n }\n\n Object.values(this.#collisions).forEach((collision) => collision.update())\n\n this.#beams\n .filter((otherBeam) => otherBeam !== beam)\n .forEach((beam) => beam.onBeamUpdated(event, this))\n\n setTimeout(() => this.update(), 0)\n }\n\n #onError (error, message, cause) {\n this.error = true\n\n // Support exclusion of error\n if (typeof error === 'string') {\n message = error\n cause = message\n error = undefined\n }\n\n if (error) {\n console.error(error)\n }\n\n cause = cause ?? error?.cause\n if (cause) {\n console.error('cause:', cause)\n }\n\n message = message ?? error?.message ?? 'The puzzle has encountered an error, please consider reporting.'\n elements.headerMessage.textContent = message\n document.body.classList.add(Puzzle.Events.Error)\n }\n\n #onKeyup (event) {\n if (this.debug && event.key === 's') {\n this.update()\n }\n }\n\n #onMask (event) {\n console.debug('Mask event', event)\n this.mask(event.detail.mask)\n }\n\n #onModifierInvoked (event) {\n const modifier = event.detail.modifier\n const tile = event.detail.tile\n\n if (\n // Modifier does not belong to a tile\n !modifier.parent &&\n // Tile has a lock modifier\n tile.modifiers.some((modifier) => modifier.type === Modifier.Types.lock) &&\n // Tile does not already have a modifier of this type\n !tile.modifiers.some((other) => other.type === modifier.type) &&\n // Tile has less than the maximum number of modifiers\n tile.modifiers.length < Tile.MaxModifiers\n ) {\n console.debug('locking modifier to tile', modifier, tile)\n this.layout.removeModifier(modifier)\n modifier.move(tile)\n // Disable any other attached modifiers of this type to prevent duplicate locking\n this.#getModifiers(tile)\n .filter((other) => other.type === modifier.type && other.id !== modifier.id)\n .forEach((other) => other.update({ disabled: true }))\n }\n\n this.updateState()\n\n this.#beams\n // Update beams in the tile being modified first\n .sort((beam) => tile.items.some((item) => item === beam) ? -1 : 0)\n .forEach((beam) => beam.onModifierInvoked(event, this))\n\n setTimeout(() => this.update(), 0)\n }\n\n #onSelect (event) {\n this.select(event.target.value)\n }\n\n #onSolved () {\n if (this.solved) {\n return\n }\n\n this.solved = true\n\n this.updateSelectedTile(undefined)\n this.mask(Puzzle.#solvedMask)\n\n const span = document.createElement('span')\n span.classList.add(Puzzle.ClassNames.Icon)\n span.textContent = 'celebration'\n span.title = 'Solved!'\n\n elements.headerMessage.replaceChildren(span)\n\n document.body.classList.add(Puzzle.Events.Solved)\n emitEvent(Puzzle.Events.Solved)\n }\n\n #onStateUpdate () {\n this.updateState()\n }\n\n #onTap (event) {\n let tile\n\n if (this.solved || this.error) {\n return\n }\n\n const result = paper.project.hitTest(event.detail.point)\n\n switch (result?.item.data.type) {\n case Item.Types.mask:\n return\n case Item.Types.tile:\n tile = this.layout.getTileByAxial(result.item.data.coordinates.axial)\n break\n }\n\n // There is an active mask\n if (this.#mask) {\n this.#mask.onTap(this, tile)\n } else {\n const previouslySelectedTile = this.updateSelectedTile(tile)\n\n if (tile && tile === previouslySelectedTile) {\n tile.onTap(event)\n }\n }\n }\n\n #previous () {\n const id = Puzzles.visible.previousId(this.#state.getId())\n if (id) {\n this.select(id)\n }\n }\n\n #redo () {\n if (this.#state.redo()) {\n this.#reload()\n }\n }\n\n #reload () {\n this.error = false\n\n if (this.#state) {\n this.#teardown()\n }\n\n this.#setup()\n\n emitEvent(Puzzle.Events.Updated, { state: this.#state })\n }\n\n #removeLayers () {\n Object.values(this.layers).forEach((layer) => layer.removeChildren())\n paper.project.clear()\n }\n\n #reset () {\n if (this.#state.reset()) {\n this.#reload()\n }\n }\n\n #resize () {\n const { width, height } = elements.main.getBoundingClientRect()\n elements.puzzle.style.height = height + 'px'\n elements.puzzle.style.width = width + 'px'\n paper.view.viewSize = new Size(width, height)\n }\n\n #setup () {\n const { layout, message, solution } = this.#state.getCurrent()\n\n this.layout = new Layout(layout)\n this.message = message\n this.#solution = new Solution(solution)\n\n this.#tiles = this.layout.tiles\n this.#termini = this.layout.items.filter((item) => item.type === Item.Types.terminus)\n this.#beams = this.#termini.flatMap((terminus) => terminus.beams)\n\n this.#addLayers()\n\n document.body.classList.add(Puzzle.Events.Loaded)\n\n const selectedTileId = this.#state.getSelectedTile()\n const selectedTile = selectedTileId\n ? this.layout.getTileByOffset(new OffsetCoordinates(...selectedTileId.split(',')))\n : undefined\n\n this.updateSelectedTile(selectedTile)\n this.updateState(false)\n this.update()\n }\n\n #teardown () {\n document.body.classList.remove(...Object.values(Puzzle.Events))\n\n this.#removeLayers()\n\n this.#tiles.forEach((tile) => tile.teardown())\n this.#tiles = []\n this.#solution?.teardown()\n this.#solution = undefined\n this.solved = false\n this.layout?.teardown()\n this.layout = undefined\n this.selectedTile = undefined\n this.#beams = []\n this.#collisions = {}\n this.#isUpdatingBeams = false\n this.#mask = undefined\n this.#maskQueue = []\n this.#termini = []\n }\n\n #undo () {\n if (this.#state.undo()) {\n this.#reload()\n }\n }\n\n #updateActions () {\n const id = this.#state.getId()\n const title = this.#state.getTitle()\n\n // Update browser title\n elements.title.textContent = `Beaming: Puzzle ${title}`\n\n removeClass(Puzzle.ClassNames.Disabled, ...Array.from(document.querySelectorAll('#actions li')))\n\n const disable = []\n\n if (!this.#state.canUndo()) {\n disable.push(elements.undo)\n }\n\n if (!this.#state.canRedo()) {\n disable.push(elements.redo)\n }\n\n if (!this.#state.canReset()) {\n disable.push(elements.reset)\n }\n\n if (!Puzzles.visible.has(id)) {\n // Custom puzzle\n elements.puzzleId.value = ''\n disable.push(elements.previous, elements.next)\n } else {\n elements.puzzleId.value = id\n\n if (id === Puzzles.visible.firstId) {\n disable.push(elements.previous)\n } else if (id === Puzzles.visible.lastId) {\n disable.push(elements.next)\n }\n }\n\n addClass(Puzzle.ClassNames.Disabled, ...disable)\n }\n\n #updateDropdown () {\n elements.puzzleId.replaceChildren()\n for (const id of Puzzles.visible.ids) {\n const option = document.createElement('option')\n option.value = id\n option.innerText = Puzzles.titles[id]\n elements.puzzleId.append(option)\n }\n }\n\n #updateBeams () {\n const beams = this.#beams.filter((beam) => beam.isPending())\n\n if (!beams.length) {\n this.#isUpdatingBeams = false\n\n // Ensure we check for a solution after all other in-progress events have processed\n setTimeout(() => {\n if (this.#solution.isSolved()) {\n this.#onSolved()\n }\n }, 0)\n return\n }\n\n if (this.debug) {\n this.layers.debug.clear()\n }\n\n beams.forEach((beam) => beam.step(this))\n\n // Ensure the UI has a chance to update between loops\n setTimeout(() => this.#updateBeams(), this.#beamsUpdateDelay)\n }\n\n #updateMessage (tile) {\n elements.headerMessage.textContent = this.message\n elements.footerMessage.replaceChildren()\n\n if (tile) {\n // Check to see if tile has any color elements that need to be displayed\n // Note: these will only be displayed if the tile contains an item with more than one color\n const colorElements = tile.items\n .map((item) => item.getColorElements(tile))\n .find((colorElements) => colorElements.length > 1) || []\n elements.footerMessage.replaceChildren(...colorElements)\n }\n }\n\n #updateModifiers (tile, previouslySelectedTile) {\n this.#getModifiers(previouslySelectedTile).forEach((modifier) => modifier.detach())\n\n const modifiers = this.#getModifiers(tile)\n modifiers.forEach((modifier) => modifier.attach(tile))\n\n elements.footer.classList.toggle(Puzzle.ClassNames.Active, modifiers.length > 0)\n }\n\n static Collision = class {\n constructor (layer, beams, point, item = undefined) {\n this.id = Puzzle.Collision.id(point)\n this.layer = layer\n this.beams = beams\n this.point = point\n this.item = item\n }\n\n addBeam (beam) {\n if (!this.beams.some((otherBeam) => otherBeam.id === beam.id)) {\n this.beams.push(beam)\n }\n\n return this.beams\n }\n\n addItem (color) {\n this.item = new CollisionItem({ center: this.point, color })\n this.layer.addChild(this.item.group)\n }\n\n equals (other) {\n return fuzzyEquals(this.point, other?.point)\n }\n\n getColor () {\n return this.beams.length\n ? chroma.average(this.beams.map((beam) => beam.getColor())).hex()\n : undefined\n }\n\n removeItem () {\n if (this.item) {\n this.item.remove()\n this.item = undefined\n }\n }\n\n update () {\n // Remove any beam which no longer matches its collision point\n this.beams = this.beams.filter((beam) => this.equals(beam.getCollision()))\n\n const color = this.getColor()\n\n // Remove no longer valid collision items\n if (this.item && (!this.beams.length || this.item.color !== color)) {\n this.removeItem()\n }\n\n // Add missing collision items\n if (this.beams.length && !this.item) {\n this.addItem(color)\n }\n }\n\n static id (point) {\n const rounded = point.round()\n return [rounded.x, rounded.y].join(',')\n }\n }\n\n static ClassNames = Object.freeze({\n Active: 'active',\n Disabled: 'disabled',\n Icon: 'material-symbols-outlined'\n })\n\n static Events = Object.freeze({\n Error: 'puzzle-error',\n Loaded: 'puzzle-loaded',\n Mask: 'puzzle-mask',\n Solved: 'puzzle-solved',\n Updated: 'puzzle-updated'\n })\n\n static Mask = class {\n constructor (configuration = {}) {\n configuration.style ??= {}\n this.configuration = configuration\n\n this.id = configuration.id\n this.message = configuration.message\n this.tileFilter = configuration.tileFilter ?? noop(true)\n this.onMask = configuration.onMask ?? noop\n this.onTap = configuration.onTap ?? noop\n this.onUnmask = configuration.onUnmask ?? noop\n this.onUpdate = configuration.onUpdate ?? noop\n }\n\n equals (other) {\n return this.id === other.id\n }\n }\n\n // Filters for all beams that are connected to the terminus, or have been merged into a beam that is connected\n static #connectedBeams = (item) => item.type === Item.Types.beam && item.isConnected()\n\n static #solvedMask = new Puzzle.Mask({\n style: (tile) => {\n const beams = tile.items.filter(Puzzle.#connectedBeams)\n const colors = beams.flatMap((beam) => beam.getSteps(tile).flatMap((step) => step.color))\n return { fillColor: chroma.average(colors).hex() }\n },\n tileFilter: (tile) => tile.items.some(Puzzle.#connectedBeams)\n })\n}\n","import paper, { Layer } from 'paper'\nimport { CubeCoordinates } from './coordinates/cube'\nimport { OffsetCoordinates } from './coordinates/offset'\nimport { Tile } from './items/tile'\nimport { getConvertedDirection } from './util'\nimport { Stateful } from './stateful'\nimport { modifierFactory } from './modifierFactory'\n\nexport class Layout extends Stateful {\n #tilesByAxial = []\n #tilesByOffset = []\n\n items = []\n layers = {}\n modifiers = []\n tiles = []\n tileSize = 120\n\n constructor (state) {\n super(state)\n\n this.type = state.type || Layout.Types.oddR\n\n const center = paper.view.center\n const parameters = Tile.parameters(this.tileSize)\n const tiles = state.tiles\n\n // Using parameters.width because we want the \"stacked height\", or the height of the hexagon without the points.\n const height = tiles.length * parameters.width\n const startingOffsetY = center.y - (height / 2)\n\n // noinspection JSValidateTypes\n this.layers.tiles = new Layer()\n // noinspection JSValidateTypes\n this.layers.items = new Layer()\n\n this.modifiers = (state.modifiers || [])\n .map((state) => modifierFactory(null, state))\n .filter((modifier) => modifier !== undefined)\n\n // Find the widest row\n const widestRow = tiles.reduce((current, row, index) => {\n const length = row.length\n\n // Favor offset rows, since they will be wider\n if (length > current.length || (length === current.length && this.#isOffsetRow(index))) {\n return { index, length }\n }\n\n return current\n }, { index: 0, length: 0 })\n\n const width = (widestRow.length * parameters.width) + (this.#isOffsetRow(widestRow.index) ? parameters.inradius : 0)\n const startingOffsetX = center.x - (width / 2)\n\n for (let r = 0; r < tiles.length; r++) {\n const row = tiles[r]\n const rowByAxial = new Array(row.length).fill(null)\n const rowByOffset = new Array(row.length).fill(null)\n const rowOffset = Math.floor(r / 2)\n\n for (let c = 0; c < row.length; c++) {\n const axial = new CubeCoordinates(c - rowOffset, r)\n const offset = new OffsetCoordinates(r, c)\n\n const layout = {\n row: r,\n column: c,\n // Shift row to the right if it is an offset row\n startingOffsetX: startingOffsetX + (this.#isOffsetRow(r) ? parameters.inradius : 0),\n startingOffsetY\n }\n\n const state = row[c]\n if (!state) {\n continue\n }\n\n const tile = new Tile({ axial, offset }, layout, parameters, state)\n\n this.layers.tiles.addChild(tile.group)\n\n if (tile.items.length) {\n this.items.push(...tile.items)\n this.layers.items.addChildren(tile.items.map((item) => item.group))\n }\n\n this.tiles.push(tile)\n\n rowByAxial[axial.q] = tile\n rowByOffset[offset.c] = tile\n }\n\n this.#tilesByAxial.push(rowByAxial)\n this.#tilesByOffset.push(rowByOffset)\n }\n }\n\n getTileByAxial (axial) {\n return (this.#tilesByAxial[axial.r] || [])[axial.q]\n }\n\n getTileByOffset (offset) {\n return this.#tilesByOffset[offset.r][offset.c]\n }\n\n getState () {\n const state = { type: this.type }\n\n // Tiles are defined by offset in the puzzle state\n state.tiles = this.#tilesByOffset.map((row) => row.map((tile) => tile?.getState() || null))\n const modifiers = this.modifiers.map((modifier) => modifier.getState())\n if (modifiers.length) {\n state.modifiers = modifiers\n }\n\n return state\n }\n\n getNeighboringTile (axial, direction) {\n return this.getTileByAxial(CubeCoordinates.neighbor(axial, getConvertedDirection(direction)))\n }\n\n removeModifier (modifier) {\n const index = this.modifiers.indexOf(modifier)\n if (index >= 0) {\n this.modifiers.splice(index, 1)\n }\n }\n\n teardown () {\n this.modifiers.forEach((modifier) => modifier.detach())\n Object.values(this.layers).forEach((layer) => layer.removeChildren())\n }\n\n #isOffsetRow (index) {\n return index % 2 === 0 ? this.type === Layout.Types.evenR : this.type === Layout.Types.oddR\n }\n\n static Types = Object.freeze({\n evenR: 'even-r',\n oddR: 'odd-r'\n })\n}\n","import { OffsetCoordinates } from './offset'\n\n/**\n * @see https://www.redblobgames.com/grids/hexagons/#coordinates\n */\nexport class CubeCoordinates {\n constructor (q, r, s) {\n if (!s) s = -q - r\n this.coordinates = [q, r, s]\n this.q = q\n this.r = r\n this.s = s\n }\n\n add (other) {\n return CubeCoordinates.add(this, other)\n }\n\n equals (other) {\n return this.q === other.q && this.r === other.r && this.s === other.s\n }\n\n isNeighbor (other) {\n return CubeCoordinates.isNeighbor(this, other)\n }\n\n neighbor (direction) {\n return CubeCoordinates.neighbor(this, direction)\n }\n\n toString () {\n return this.coordinates.join(',')\n }\n\n static add (a, b) {\n return new CubeCoordinates(a.q + b.q, a.r + b.r)\n }\n\n static direction (direction) {\n if (direction === 0) direction = 6\n // PaperJS uses a clockwise system, but the axial system is counter-clockwise.\n // So we flip the direction here by subtracting it from six\n return CubeCoordinates.directions[6 - direction]\n }\n\n static directions = [\n new CubeCoordinates(1, 0),\n new CubeCoordinates(1, -1),\n new CubeCoordinates(0, -1),\n new CubeCoordinates(-1, 0),\n new CubeCoordinates(-1, 1),\n new CubeCoordinates(0, 1)\n ]\n\n static isNeighbor (a, b) {\n return CubeCoordinates.directions\n .map((direction) => CubeCoordinates.add(a, direction))\n .some((neighbor) => neighbor.equals(b))\n }\n\n static neighbor (start, direction) {\n return CubeCoordinates.add(start, CubeCoordinates.direction(direction))\n }\n\n static toOffsetCoordinates (axial) {\n const c = axial.q + (axial.r - (axial.r & 1)) / 2\n return new OffsetCoordinates(c, axial.r)\n }\n}\n","import { CubeCoordinates } from './cube'\n\nexport class OffsetCoordinates {\n constructor (r, c) {\n this.coordinates = [r, c]\n this.r = r\n this.c = c\n }\n\n toString () {\n return this.coordinates.join(',')\n }\n\n static toAxialCoordinates (offset) {\n const q = offset.c - (offset.r - (offset.r & 1)) / 2\n return new CubeCoordinates(q, offset.r)\n }\n}\n","import { Color, Path, Point } from 'paper'\nimport { Item } from '../item'\nimport { itemFactory } from '../itemFactory'\nimport { emitEvent, getPointBetween } from '../util'\nimport { modifierFactory } from '../modifierFactory'\n\nexport class Tile extends Item {\n icons = []\n selected = false\n\n #ui\n\n constructor (coordinates, layout, parameters, state) {\n super(null, state, { locked: false })\n\n this.#ui = Tile.ui(layout, parameters, state, { coordinates, type: this.type })\n\n this.center = this.#ui.center\n this.coordinates = coordinates\n this.hexagon = this.#ui.hexagon\n this.parameters = parameters\n this.styles = this.#ui.styles\n\n this.group.addChildren([this.#ui.hexagon])\n\n // These need to be last, since they reference this\n this.items = (state.items || [])\n .map((state) => itemFactory(this, state))\n .filter((item) => item !== undefined)\n\n this.modifiers = (state.modifiers || [])\n .map((state) => modifierFactory(this, state))\n .filter((modifier) => modifier !== undefined)\n\n this.update()\n }\n\n addItem (item) {\n this.items.push(item)\n this.update()\n }\n\n addModifier (modifier) {\n this.modifiers.push(modifier)\n this.update()\n }\n\n afterModify () {\n this.setStyle(this.selected ? 'selected' : 'default')\n this.modifiers.forEach((modifier) => modifier.update({ disabled: false }))\n }\n\n beforeModify () {\n this.group.bringToFront()\n this.setStyle('edit')\n this.modifiers.forEach((modifier) => modifier.update({ disabled: true }))\n }\n\n getState () {\n const state = { type: this.type }\n\n // Filter out beams, which are not stored in state\n const items = this.items.filter((item) => item.type !== Item.Types.beam).map((item) => item.getState())\n if (items.length) {\n state.items = items\n }\n\n const modifiers = this.modifiers.map((modifier) => modifier.getState())\n if (modifiers.length) {\n state.modifiers = modifiers\n }\n\n // noinspection JSValidateTypes\n return state\n }\n\n onTap (event) {\n this.items.forEach((item) => item.onTap(event))\n }\n\n onDeselected (selectedTile) {\n this.selected = false\n this.#ui.hexagon.style = this.styles.default\n this.items.forEach((item) => item.onDeselected())\n\n emitEvent(Tile.Events.Deselected, { selectedTile, deselectedTile: this })\n }\n\n onSelected (deselectedTile) {\n console.debug(this.toString(), 'selected')\n this.selected = true\n this.group.bringToFront()\n this.#ui.hexagon.style = this.styles.selected\n this.items.forEach((item) => item.onSelected())\n }\n\n removeItem (item) {\n const index = this.items.indexOf(item)\n if (index >= 0) {\n this.items.splice(index, 1)\n this.update()\n }\n }\n\n removeModifier (modifier) {\n const index = this.modifiers.indexOf(modifier)\n if (index >= 0) {\n this.modifiers.splice(index, 1)\n this.update()\n }\n }\n\n setStyle (style) {\n this.hexagon.set(this.styles[style])\n }\n\n teardown () {\n this.modifiers.forEach((modifier) => modifier.detach())\n }\n\n toString () {\n return `[${this.type}:${this.coordinates.offset.toString()}]`\n }\n\n update () {\n super.update()\n\n // Update tile modifier icons\n this.icons = this.modifiers.map((modifier, index) => {\n const position = getPointBetween(this.#ui.hexagon.segments[index].point, this.center, (length) => length / 3)\n return modifier.getSymbol().place(position, { fillColor: modifier.immutable ? '#ccc' : '#333' })\n })\n\n // Everything after child 0 (hexagon) is an icon\n this.group.removeChildren(1)\n this.group.addChildren(this.icons)\n }\n\n static parameters (height) {\n const circumradius = height / 2\n const width = Math.sqrt(3) * circumradius\n const inradius = width / 2\n const offsetY = height * (3 / 4)\n\n return {\n circumradius,\n height,\n inradius,\n offsetY,\n width\n }\n }\n\n static ui (layout, parameters, configuration, data) {\n const center = new Point(\n layout.startingOffsetX + parameters.inradius + layout.column * parameters.width,\n layout.startingOffsetY + parameters.circumradius + layout.row * parameters.offsetY\n )\n\n const dashWidth = parameters.circumradius / 10\n\n const styles = Object.assign(\n {},\n Tile.Styles,\n {\n edit: Object.assign({ dashArray: [dashWidth, dashWidth] }, Tile.Styles.edit)\n },\n configuration.style || {}\n )\n\n const hexagon = new Path.RegularPolygon({\n center,\n closed: true,\n data,\n radius: parameters.circumradius,\n sides: 6,\n style: styles.default\n })\n\n return { center, hexagon, styles }\n }\n\n static Events = Object.freeze({\n Deselected: 'tile-deselected',\n Selected: 'tile-selected'\n })\n\n static MaxModifiers = 6\n\n static Styles = Object.freeze({\n // Need to use new Color here explicitly due to:\n // https://github.com/paperjs/paper.js/issues/2049\n default: {\n dashArray: [],\n fillColor: new Color('white'),\n strokeColor: new Color('#666'),\n strokeWidth: 1\n },\n edit: {\n strokeColor: new Color('black'),\n strokeWidth: 2\n },\n selected: {\n dashArray: [],\n strokeColor: new Color('black'),\n strokeWidth: 2\n }\n })\n}\n","import { capitalize, uniqueId } from './util'\nimport { CompoundPath, Group } from 'paper'\nimport { Stateful } from './stateful'\n\nexport class Item extends Stateful {\n center\n data\n group\n id\n immutable\n // Whether the item can be clicked on\n locked\n parent\n sortOrder = 100\n type\n\n constructor (parent, state, configuration) {\n // Retain ID from state if it exists, otherwise generate a new one\n state.id ??= uniqueId()\n\n super(state)\n\n this.id = state.id\n this.immutable ??= state?.immutable ?? false\n this.type = state?.type ?? configuration?.type\n if (this.type === undefined) {\n console.debug(`[Item:${this.id}]`, state)\n throw new Error('Item must have type defined')\n }\n\n this.data = Object.assign({ id: this.id, type: this.type }, configuration?.data || {})\n this.locked = configuration?.locked !== false\n\n if (parent) {\n this.center = parent.center\n }\n\n this.parent = parent\n this.group = new Group({ data: this.data, locked: this.locked })\n }\n\n equals (otherItem) {\n return otherItem instanceof Item && this.id === otherItem.id\n }\n\n getColorElements () {\n return []\n }\n\n getCompoundPath () {\n return new CompoundPath({\n // Must explicitly add insert: false for clone\n // https://github.com/paperjs/paper.js/issues/1721\n children: this.group.clone({ insert: false }).children\n .filter((child) => child.data.collidable !== false)\n })\n }\n\n getIndex () {\n return this.group.index\n }\n\n getLayer () {\n return this.group.parent\n }\n\n onTap () {}\n\n onCollision ({ collisionStep }) {\n return collisionStep\n }\n\n onDeselected () { }\n\n onInitialization () {}\n\n onSelected () {}\n\n remove () {\n this.group.remove()\n }\n\n toString () {\n return `[${this.type}:${this.id}]`\n }\n\n update () {}\n\n static immutable (item) {\n return item.immutable\n }\n\n static Types = Object.freeze(Object.fromEntries([\n 'beam',\n 'collision',\n 'filter',\n 'mask',\n 'portal',\n 'reflector',\n 'terminus',\n 'tile',\n 'wall'\n ].map((type) => [type, capitalize(type)])))\n}\n","import { emitEvent } from './util'\n\nexport class Stateful {\n #state = {}\n\n constructor (state) {\n this.setState(state)\n }\n\n getState () {\n return structuredClone(this.#state)\n }\n\n setState (state) {\n this.#state = structuredClone(state)\n }\n\n updateState (updater, dispatchEvent = false) {\n updater(this.#state)\n\n if (dispatchEvent) {\n // This will cause puzzle cache to update\n emitEvent(Stateful.Events.Update, { object: this })\n }\n\n return this.getState()\n }\n\n static Events = Object.freeze({\n Update: 'state-update'\n })\n}\n","import { Filter } from './items/filter'\nimport { Portal } from './items/portal'\nimport { Terminus } from './items/terminus'\nimport { Reflector } from './items/reflector'\nimport { Wall } from './items/wall'\nimport { Item } from './item'\n\nexport function itemFactory (parent, state, configuration) {\n let item\n\n switch (state.type) {\n case Item.Types.filter:\n item = new Filter(...arguments)\n break\n case Item.Types.portal:\n item = new Portal(...arguments)\n break\n case Item.Types.terminus:\n item = new Terminus(...arguments)\n break\n case Item.Types.reflector:\n item = new Reflector(...arguments)\n break\n case Item.Types.wall:\n item = new Wall(...arguments)\n break\n default:\n console.debug('itemFactory', state)\n throw new Error(`Cannot create item with unknown type: ${state.type}`)\n }\n\n if (item) {\n item.onInitialization()\n }\n\n return item\n}\n","import chroma from 'chroma-js'\nimport { Item } from '../item'\nimport { Color, Path } from 'paper'\nimport { movable } from '../modifiers/move'\nimport { getColorElement } from '../util'\nimport { StepState } from '../step'\n\nexport class Filter extends movable(Item) {\n constructor (tile, { color }) {\n super(...arguments)\n\n this.color = chroma.average(Array.isArray(color) ? color : [color]).hex()\n\n const fillColor = new Color(color)\n fillColor.alpha = 0.25\n\n // TODO: update to something else? prism?\n const item = new Path.RegularPolygon({\n center: tile.center,\n closed: true,\n radius: tile.parameters.circumradius / 3,\n sides: 3,\n style: {\n fillColor,\n strokeColor: color,\n strokeWidth: 2\n }\n })\n\n this.group.addChild(item)\n }\n\n getColorElements () {\n return [getColorElement(this.color)]\n }\n\n onCollision ({ currentStep, nextStep }) {\n // The beam will collide with the filter twice, on entry and exit, so ignore the first one, but track in state\n return nextStep.copy(\n currentStep.state.has(StepState.Filter)\n ? { colors: nextStep.colors.concat([this.color]) }\n : { state: new StepState({ insertAbove: this }, new StepState.Filter()) }\n )\n }\n}\n","import { Modifier } from '../modifier'\nimport { Puzzle } from '../puzzle'\nimport { emitEvent } from '../util'\nimport { Item } from '../item'\nimport { Icons } from '../icons'\n\nexport class Move extends Modifier {\n #mask\n\n name = Icons.Move.name\n title = 'Move'\n\n onTap (event) {\n super.onTap(event)\n\n const items = this.tile.items.filter(Move.movable)\n if (this.#mask || !items.length) {\n return\n }\n\n const mask = new Puzzle.Mask({\n id: this.toString(),\n onTap: this.#maskOnTap.bind(this),\n onMask: () => this.tile.beforeModify(),\n onUnmask: () => this.tile.afterModify(),\n tileFilter: this.tileFilter.bind(this)\n })\n\n this.#mask = mask\n\n emitEvent(Puzzle.Events.Mask, { mask })\n }\n\n moveFilter (tile) {\n // Filter out tiles that contain no movable items\n return super.moveFilter(tile) || !tile.items.some(Move.movable)\n }\n\n moveItems (tile) {\n const items = this.tile.items.filter(Move.movable)\n items.forEach((item) => item.move(tile))\n return {\n moved: [Move.data(this.tile, tile, items)],\n tiles: [this.tile, tile]\n }\n }\n\n tileFilter (tile) {\n // Never mask current tile\n return !tile.equals(this.tile) && (\n // Mask immutable tiles\n tile.modifiers.some(Modifier.immutable) ||\n // Mask tiles that contain any items we don't ignore\n tile.items.some((item) => !Move.ignoreItemTypes.includes(item.type))\n )\n }\n\n #maskOnTap (puzzle, tile) {\n puzzle.unmask()\n\n if (tile) {\n const data = this.moveItems(tile)\n\n puzzle.updateSelectedTile(tile)\n\n this.dispatchEvent(Modifier.Events.Invoked, data)\n }\n\n this.#mask = undefined\n }\n\n static data (fromTile, toTile, items) {\n return { fromTile, toTile, items }\n }\n\n static movable (item) {\n return item.movable\n }\n\n static ignoreItemTypes = [Item.Types.beam, Item.Types.wall]\n}\n\n/**\n * Move an item from one tile to another.\n * @param SuperClass\n * @returns {{new(*, *): MovableItem, movable: boolean, prototype: MovableItem}}\n */\nexport const movable = (SuperClass) => class MovableItem extends SuperClass {\n movable\n\n constructor (parent, state) {\n super(...arguments)\n this.movable = !this.immutable && state.movable !== false\n }\n\n move (tile) {\n this.parent.removeItem(this)\n\n // Update the position of the item group based on the vector of the tile we are moving to\n const vector = this.parent.center.subtract(tile.center)\n this.group.position = this.group.position.subtract(vector)\n\n // Update tile reference\n this.parent = tile\n this.parent.addItem(this)\n this.center = this.parent.center\n\n this.onMove()\n }\n\n onMove () {}\n}\n","import { capitalize, emitEvent } from './util'\nimport { Stateful } from './stateful'\nimport { EventListeners } from './eventListeners'\nimport { Interact } from './interact'\nimport { Item } from './item'\nimport { Icons } from './icons'\nimport { Tile } from './items/tile'\n\nconst modifiers = document.getElementById('modifiers')\n\nlet uniqueId = 0\n\nexport class Modifier extends Stateful {\n #container\n #down = false\n #eventListener = new EventListeners({ context: this })\n #timeoutId\n\n configuration\n element\n disabled = false\n id = uniqueId++\n immutable = false\n name\n parent\n tile\n title\n type\n\n constructor (tile, state) {\n super(state)\n\n this.parent = tile\n this.type = state.type\n }\n\n /**\n * Attach the modifier to the DOM and add listeners.\n */\n attach (tile) {\n this.tile = tile\n\n // Disable by default if: modifier is immutable\n this.disabled = this.immutable ||\n // The tile contains an immutable modifier\n this.tile?.modifiers.some((modifier) => modifier.type === Modifier.Types.immutable) ||\n // The tile has no interactable items\n !this.tile?.items.some((item) => item.type !== Item.Types.beam) ||\n (\n // The tile being attached to is not this modifier's parent\n !this.tile?.equals(this.parent) && (\n // The tile contains another modifier of this type already\n this.tile.modifiers.some((modifier) => modifier.type === this.type) ||\n // The tile already contains the max number of modifiers\n this.tile?.modifiers.length === Tile.MaxModifiers\n )\n )\n\n const li = this.#container = document.createElement('li')\n\n li.classList.add(['modifier', this.type.toLowerCase()].join('-'))\n li.dataset.id = this.id.toString()\n\n const span = this.element = document.createElement('span')\n\n span.classList.add('material-symbols-outlined', 'fill')\n\n li.append(span)\n\n this.update()\n\n this.#eventListener.add([\n { type: 'pointerdown', handler: this.onPointerDown },\n { type: 'pointerleave', handler: this.onPointerUp },\n { type: 'pointerup', handler: this.onPointerUp }\n ], { element: li })\n\n modifiers.append(li)\n }\n\n /**\n * Remove listeners and the modifier from the DOM.\n */\n detach () {\n if (!this.#container) {\n return\n }\n\n this.#eventListener.remove()\n this.#container.remove()\n\n this.element = undefined\n this.#container = undefined\n }\n\n dispatchEvent (event, detail) {\n emitEvent(event, Object.assign({}, detail || {}, { modifier: this, tile: this.tile }))\n }\n\n equals (other) {\n return other instanceof Modifier && this.id === other.id\n }\n\n getSymbol () {\n return Icons.ByName[this.name]\n }\n\n move (tile) {\n this.parent?.removeModifier(this)\n this.parent = tile\n tile?.addModifier(this)\n }\n\n moveFilter (tile) {\n // Mask immutable tiles\n return tile.modifiers.some(Modifier.immutable) ||\n // Mask tiles that only contain immutable items\n tile.items.every(Item.immutable)\n }\n\n onPointerDown (event) {\n if (event.button !== 0) {\n // Support toggle on non-primary pointer button\n this.onToggle(event)\n } else {\n this.#down = true\n }\n }\n\n onPointerUp (event) {\n clearTimeout(this.#timeoutId)\n\n if (this.#down && !this.disabled) {\n switch (event.type) {\n case 'pointerleave': {\n // Support swiping up on pointer device\n this.onToggle(event)\n break\n }\n case 'pointerup': {\n this.onTap(event)\n break\n }\n }\n }\n\n this.#down = false\n }\n\n onTap () {}\n\n onToggle () {\n Interact.vibrate()\n }\n\n toString () {\n return [this.name, this.id].join(':')\n }\n\n update (options) {\n options = Object.assign(\n { disabled: this.disabled, name: this.name, title: this.title },\n options || {}\n )\n\n if (!this.immutable) {\n this.disabled = options.disabled\n }\n\n this.name = options.name\n this.title = options.title\n\n if (this.#container) {\n this.#container.classList.toggle('disabled', this.disabled)\n this.element.textContent = this.name\n this.element.title = this.title\n }\n }\n\n static immutable (modifier) {\n return modifier.type === Modifier.Types.immutable\n }\n\n static Events = Object.freeze({\n Invoked: 'modifier-invoked',\n Moved: 'modifier-moved'\n })\n\n static Types = Object.freeze(Object.fromEntries([\n 'immutable',\n 'lock',\n 'move',\n 'rotate',\n 'swap',\n 'toggle'\n ].map((type) => [type, capitalize(type)])))\n}\n","export class EventListeners {\n #events = []\n #options = { element: document }\n\n constructor (options = {}) {\n this.#options = Object.assign(this.#options, options)\n }\n\n add (events, options = {}) {\n this.#events = this.#events.concat(events.map((event) => {\n event = Object.assign({}, this.#options, options, event)\n if (!event.type) {\n throw new Error('Event type is required')\n }\n if (event.context) {\n event.handler = event.handler.bind(event.context)\n }\n event.element.addEventListener(event.type, event.handler, event.options)\n return event\n }))\n }\n\n remove () {\n this.#events.forEach((event) => event.element.removeEventListener(event.type, event.handler))\n this.#events = []\n }\n}\n","import paper, { Point } from 'paper'\nimport { Cache } from './cache'\nimport { EventListeners } from './eventListeners'\n\nconst navigator = window.navigator\n\nexport class Interact {\n #bounds\n #cache = new Cache(Object.values(Interact.CacheKeys))\n #element\n #eventListener = new EventListeners({ context: this })\n #offset\n\n constructor (element) {\n this.#bounds = element.getBoundingClientRect()\n this.#element = element\n this.#offset = new Point(this.#bounds.left, this.#bounds.top)\n this.#eventListener.add([\n { type: 'pointercancel', handler: this.onPointerUp },\n { type: 'pointerdown', handler: this.onPointerDown },\n { type: 'pointerleave', handler: this.onPointerUp },\n { type: 'pointermove', handler: this.onPointerMove },\n { type: 'pointerout', handler: this.onPointerUp },\n { type: 'pointerup', handler: this.onPointerUp },\n { type: 'wheel', handler: this.onMouseWheel, options: { passive: false } }\n ], { element })\n }\n\n onMouseWheel (event) {\n event.preventDefault()\n this.#zoom(new Point(event.offsetX, event.offsetY), event.deltaY, 1.05)\n }\n\n onPan (event) {\n const point = paper.view.viewToProject(Interact.point(event))\n const pan = this.#getGesture(Interact.GestureKeys.Pan)\n\n if (!pan) {\n this.#setGesture(Interact.GestureKeys.Pan, { from: point })\n return\n }\n\n const center = pan.from.subtract(point).add(paper.view.center)\n\n // Allow a little wiggle room to prevent panning on tap\n if (paper.view.center.subtract(center).length > 1) {\n if (!document.body.classList.contains('grab')) {\n document.body.classList.add('grab')\n }\n\n // Center on the cursor\n paper.view.center = center\n }\n }\n\n onPinch (events) {\n const pointer0 = events[0]\n const pointer1 = events[1]\n\n const point0 = Interact.point(pointer0)\n const point1 = Interact.point(pointer1)\n const distance = point0.getDistance(point1)\n\n const pinch = this.#getGesture(Interact.GestureKeys.Pinch)\n if (!pinch) {\n this.#setGesture(Interact.GestureKeys.Pinch, { distance })\n return\n }\n\n const center = point0.add(point1).divide(2).subtract(this.#offset)\n const scale = distance / pinch.distance\n const delta = (pinch.distance - distance) * scale\n\n this.#zoom(center, delta, 1.01)\n\n pinch.distance = distance\n }\n\n onPointerDown (event) {\n this.#cache.get(Interact.CacheKeys.Down).set(event.pointerId, event)\n }\n\n onPointerMove (event) {\n const down = this.#cache.get(Interact.CacheKeys.Down).get(event.pointerId)\n if (!down) {\n // Ignore events until there is a pointer down event\n return\n }\n\n // For some reason pointermove fires on mobile even if there was no movement\n const diff = Interact.point(event).subtract(Interact.point(down)).length\n if (diff > 1) {\n this.#cache.get(Interact.CacheKeys.Move).set(event.pointerId, event)\n\n const events = this.#cache.get(Interact.CacheKeys.Move).values()\n if (events.length === 2) {\n this.onPinch(events)\n } else {\n this.onPan(event)\n }\n }\n }\n\n onPointerUp (event) {\n const down = this.#cache.get(Interact.CacheKeys.Down).get(event.pointerId)\n if (!down) {\n return\n }\n\n if (\n this.#cache.length(Interact.CacheKeys.Down) === 1 &&\n !this.#cache.get(Interact.CacheKeys.Move).get(event.pointerId)\n ) {\n this.onTap(down)\n }\n\n document.body.classList.remove('grab')\n\n this.#cache.get(Interact.CacheKeys.Down).unset(event.pointerId)\n this.#cache.get(Interact.CacheKeys.Move).unset(event.pointerId)\n this.#cache.get(Interact.CacheKeys.Gesture).unset(Interact.GestureKeys.Pan)\n\n if (this.#cache.length(Interact.CacheKeys.Move) < 2) {\n this.#cache.get(Interact.CacheKeys.Gesture).unset(Interact.GestureKeys.Pinch)\n }\n }\n\n onTap (event) {\n const point = paper.view.viewToProject(Interact.point(event).subtract(this.#offset))\n this.#element.dispatchEvent(new CustomEvent(Interact.GestureKeys.Tap, { detail: { event, point } }))\n }\n\n #getGesture (key) {\n return this.#cache.get(Interact.CacheKeys.Gesture).get(key)\n }\n\n #setGesture (key, value) {\n this.#cache.get(Interact.CacheKeys.Gesture).set(key, value)\n }\n\n #zoom (point, delta, factor) {\n const zoom = Math.max(\n Math.min(\n delta < 0 ? paper.view.zoom * factor : paper.view.zoom / factor,\n Interact.maxZoom\n ),\n Interact.minZoom\n )\n\n // Convert the touch point from the view coordinate space to the project coordinate space\n const touchPoint = paper.view.viewToProject(point)\n const touchOffset = touchPoint.subtract(paper.view.center)\n\n // Adjust center towards cursor location\n const zoomOffset = touchPoint\n .subtract(touchOffset.multiply(paper.view.zoom / zoom))\n .subtract(paper.view.center)\n\n paper.view.zoom = zoom\n paper.view.center = paper.view.center.add(zoomOffset)\n }\n\n static point (event) {\n return new Point(event.clientX, event.clientY)\n }\n\n static vibrate (pattern = 25) {\n if (Interact.canVibrate) {\n navigator.vibrate(pattern)\n }\n }\n\n // WebKit does not support vibration\n static canVibrate = typeof navigator.vibrate === 'function'\n\n static CacheKeys = Object.freeze({\n Down: 'down',\n Move: 'move',\n Gesture: 'gesture'\n })\n\n static GestureKeys = Object.freeze({\n Pan: 'pan',\n Pinch: 'pinch',\n Tap: 'tap'\n })\n\n static maxZoom = 2\n static minZoom = 0.5\n}\n","export class Cache {\n #cache = {}\n #hasKeys\n #keys\n\n constructor (keys = []) {\n this.#keys = keys\n this.#hasKeys = keys.length !== 0\n\n keys.forEach((key) => { this.#cache[key] = new Cache() })\n }\n\n set (key, item) {\n if (this.#hasKeys && !this.#keys.includes(key)) {\n throw new Error(`Invalid key: ${key}`)\n }\n\n this.#cache[key] = item\n }\n\n get (key) {\n return key === undefined ? this.#cache : this.#cache[key]\n }\n\n keys (key) {\n return Object.keys(this.#get(key))\n }\n\n length (key) {\n return this.keys(key).length\n }\n\n unset (key) {\n delete this.#cache[key]\n }\n\n values (key) {\n return Object.values(this.#get(key))\n }\n\n #get (key) {\n const value = this.get(key)\n return value instanceof Cache ? value.get() : value\n }\n}\n","import { Symbol } from './symbol'\n\nexport class Icons {\n static Immutable = new Symbol('icon-immutable', 'block')\n static Lock = new Symbol('icon-lock', 'lock')\n static Move = new Symbol('icon-move', 'drag_pan')\n static RotateLeft = new Symbol('icon-rotate-left', 'rotate_left')\n static RotateRight = new Symbol('icon-rotate-right', 'rotate_right')\n static Swap = new Symbol('icon-swap', 'swap_horiz')\n static ToggleOff = new Symbol('icon-toggle-off', 'toggle_off')\n static ToggleOn = new Symbol('icon-toggle-on', 'toggle_on')\n\n static All = Object.freeze([\n Icons.Immutable,\n Icons.Lock,\n Icons.Move,\n Icons.RotateLeft,\n Icons.RotateRight,\n Icons.Swap,\n Icons.ToggleOff,\n Icons.ToggleOn\n ])\n\n static ByName = Object.freeze(Object.fromEntries(Icons.All.map((icon) => [icon.name, icon])))\n}\n","import paper, { SymbolDefinition } from 'paper'\n\nexport class Symbol {\n definition\n id\n name\n\n constructor (id, name) {\n this.id = id\n this.name = name\n }\n\n place (position, settings) {\n if (!this.definition) {\n const element = document.getElementById(this.id)\n const item = paper.project.importSVG(element)\n // By default, symbols will be excluded from beam collisions\n item.data.collidable = false\n // By default, symbols cannot be clicked on\n item.locked = true\n this.definition = new SymbolDefinition(item)\n }\n\n if (settings) {\n this.definition.item.set(settings)\n }\n\n return this.definition.place(position)\n }\n}\n","import chroma from 'chroma-js'\nimport { deepEqual, noop } from './util'\n\nexport class Step {\n color\n colors\n connected\n direction\n done\n insertAbove\n onAdd\n onRemove\n point\n pathIndex\n segmentIndex\n state\n tile\n\n constructor (\n index,\n tile,\n colors,\n direction,\n point,\n pathIndex,\n segmentIndex,\n connected,\n insertAbove,\n done,\n state,\n onAdd,\n onRemove\n ) {\n if (state && !(state instanceof StepState)) {\n throw new Error('Step.state must be instance of StepState')\n }\n\n this.colors = colors ? (Array.isArray(colors) ? Array.from(colors) : [colors]) : []\n\n if (this.colors.length) {\n this.color = chroma.average(this.colors).hex()\n }\n\n this.connected = connected ?? true\n this.direction = direction\n this.done = done ?? false\n this.index = index\n this.insertAbove = insertAbove\n // The onAdd and onRemove methods should be idempotent!\n this.onAdd = onAdd ?? noop\n this.onRemove = onRemove ?? noop\n this.point = point\n this.pathIndex = pathIndex\n this.segmentIndex = segmentIndex\n this.state = state ?? new StepState()\n this.tile = tile\n }\n\n copy (settings) {\n return new Step(\n settings.index ?? this.index,\n settings.tile ?? this.tile,\n settings.colors ?? settings.color ?? this.colors,\n settings.direction ?? this.direction,\n settings.point ?? this.point,\n settings.pathIndex ?? this.pathIndex,\n settings.segmentIndex ?? this.segmentIndex,\n settings.connected ?? this.connected,\n settings.insertAbove ?? this.insertAbove,\n settings.done ?? this.done,\n settings.state ?? new StepState(this.state),\n settings.onAdd ?? this.onAdd,\n settings.onRemove ?? this.onRemove\n )\n }\n\n equals (step) {\n return deepEqual(this, step)\n }\n}\n\nexport class StepState {\n #cache = {}\n\n constructor () {\n const settings = Object.assign({}, ...arguments)\n Object.keys(settings).forEach((key) => { this[key] = settings[key] })\n }\n\n copy (...settings) {\n return new StepState(...([this].concat(settings)))\n }\n\n get (Class) {\n return this.#keys(Class).map((key) => this[key]).find((value) => value)\n }\n\n has (Class) {\n return this.#keys(Class).some((key) => this[key])\n }\n\n #keys (Class) {\n return (this.#cache[Class.name] ??= Object.keys(Reflect.construct(Class, [])))\n }\n\n static Collision = class StepCollision {\n collision\n\n // Item is optional, in the case of an out-of-bounds collision for example\n constructor (collision) {\n this.collision = collision\n }\n }\n\n static Filter = class StepFilter {\n filter = {}\n }\n\n static MergeInto = class StepMergeInto {\n mergeInto\n\n constructor (beam) {\n this.mergeInto = { beam }\n }\n }\n\n static MergeWith = class StepMergeWith {\n mergeWith\n\n constructor (mergeWith) {\n this.mergeWith = mergeWith\n }\n }\n\n static Portal = class StepPortal {\n portal\n\n constructor (entryPortal, exitPortal) {\n this.portal = { entryPortal, exitPortal }\n }\n }\n\n static Reflector = class StepReflector {\n reflector\n\n constructor (item) {\n this.reflector = { item }\n }\n }\n\n static TerminusConnection = class StepTerminusConnection {\n terminusConnection\n\n constructor (terminus, opening) {\n this.terminusConnection = { terminus, opening }\n }\n }\n}\n","import { movable } from '../modifiers/move'\nimport { Item } from '../item'\nimport { Path, Point } from 'paper'\nimport { rotatable } from '../modifiers/rotate'\nimport { StepState } from '../step'\nimport { Puzzle } from '../puzzle'\nimport { coalesce, getOppositeDirection } from '../util'\n\nexport class Portal extends movable(rotatable(Item)) {\n #directions = {}\n\n constructor (tile, state) {\n // Only allow rotation if direction is defined\n super(tile, state, { rotatable: state.direction !== undefined })\n\n this.direction = state.direction\n\n const height = tile.parameters.circumradius / 3\n const width = tile.parameters.circumradius / 5\n\n const style = {\n fillColor: 'black',\n strokeColor: 'white',\n strokeWidth: 2\n }\n\n const children = []\n\n // TODO: consider adding an item with a gradient that fades to black at the center of the ellipse\n // This will help distinguish visually that beams are entering/exiting a portal when there are multiple\n const ellipse = new Path.Ellipse({\n center: tile.center,\n radius: [width, height],\n style\n })\n\n children.push(ellipse)\n\n const ring = new Path.Ellipse({\n center: tile.center,\n radius: [width - style.strokeWidth * 2, height - style.strokeWidth * 2],\n style\n })\n\n children.push(ring)\n\n if (this.direction !== undefined) {\n const pointer = new Path({\n closed: true,\n opacity: 0.25,\n segments: [\n tile.center.add(new Point(0, height)),\n tile.center.subtract(new Point(0, height)),\n tile.center.subtract(new Point(width * 2.5, 0))\n ],\n style: {\n fillColor: 'black'\n }\n }).subtract(ellipse)\n\n children.unshift(pointer)\n }\n\n this.group.addChildren(children)\n\n if (this.direction !== undefined) {\n // Properly align items with hexagonal rotation\n this.rotateGroup(1)\n }\n }\n\n get (direction) {\n return this.#directions[direction]\n }\n\n onCollision ({ beam, currentStep, nextStep, puzzle }) {\n const portalState = currentStep.state.get(StepState.Portal)\n if (!portalState) {\n const entryDirection = getOppositeDirection(nextStep.direction)\n const existing = coalesce(this.get(entryDirection), nextStep)\n if (existing.index < nextStep.index) {\n // Checking stepIndex to exclude cases where we are doing a re-evaluation of history.\n console.debug(\n this.toString(),\n 'ignoring beam trying to enter through a direction which is already occupied:',\n entryDirection\n )\n return\n }\n\n // Handle entry collision\n return nextStep.copy({\n insertAbove: this,\n onAdd: (step) => this.update(entryDirection, step),\n onRemove: () => this.update(entryDirection),\n state: nextStep.state.copy(new StepState.Portal(this))\n })\n } else if (portalState.exitPortal === this) {\n // Handle exit collision\n return nextStep.copy({ insertAbove: this })\n }\n\n const exitPortals = this.#getExitPortals(puzzle, beam, nextStep)\n\n if (exitPortals.length === 0) {\n console.debug(this.toString(), 'no valid exit portals found')\n // This will cause the beam to stop\n return currentStep\n } else if (exitPortals.length === 1) {\n const exitPortal = exitPortals[0]\n console.debug(this.toString(), 'single exit portal matched:', exitPortal)\n // Since no user choice was made, don't store this decision as a delta (move)\n return this.#getStep(beam, nextStep, exitPortal, false)\n } else {\n // Multiple matching destinations. User will need to pick one manually.\n console.debug(this.toString(), 'found multiple valid exit portals:', exitPortals)\n // Cache exit portals for use in mask\n const data = { exitPortals }\n const mask = new Puzzle.Mask(\n {\n id: this.id,\n onMask: () => currentStep.tile.beforeModify(),\n onTap: (puzzle, tile) => {\n const exitPortal = data.exitPortals.find((portal) => portal.parent === tile)\n if (exitPortal) {\n beam.addStep(this.#getStep(beam, nextStep, exitPortal))\n puzzle.unmask()\n }\n },\n onUnmask: () => currentStep.tile.afterModify(),\n onUpdate: () => {\n // State may have changed, fetch portals again\n const exitPortals = this.#getExitPortals(puzzle, beam, nextStep)\n if (exitPortals.length === 0) {\n console.debug(this.toString(), 'mask onUpdate: no valid exit portals found')\n // Cancel the mask\n // This will also cause the beam to stop\n return false\n } else if (exitPortals.length === 1) {\n const exitPortal = exitPortals[0]\n console.debug(this.toString(), 'mask onUpdate: single portal matched:', exitPortal)\n beam.addStep(this.#getStep(beam, nextStep, exitPortal))\n // Cancel the mask\n return false\n } else {\n console.debug(this.toString(), 'mask onUpdate: exit portals:', exitPortals)\n data.exitPortals = exitPortals\n }\n },\n tileFilter: (tile) => {\n // Mask any invalid tiles. Exclude the entry portal tile\n return !(tile.equals(this.parent) ||\n data.exitPortals.map((portal) => portal.parent).some((validTile) => validTile.equals(tile)))\n }\n }\n )\n\n puzzle.updateSelectedTile(null)\n puzzle.mask(mask)\n\n // This will cause the beam to stop\n return currentStep\n }\n }\n\n onMove () {\n super.onMove()\n\n // Invalidate directions cache\n this.#directions = {}\n }\n\n update (direction, data) {\n this.#directions[direction] = data\n }\n\n #getExitPortals (puzzle, beam, nextStep) {\n const exitPortals = puzzle.getItems().filter((item) =>\n // Is a portal\n item.type === Item.Types.portal &&\n // But not the entry portal\n !item.equals(this) &&\n // There is no other beam occupying the portal at the exit direction\n !item.get(Portal.getExitDirection(nextStep, this, item)) && (\n // Entry portals without defined direction can exit from any other portal.\n this.getDirection() === undefined ||\n // Exit portals without defined direction can be used by any entry portal.\n item.getDirection() === undefined ||\n // Exit portals with a defined direction can only be used by entry portals with the same defined direction.\n item.getDirection() === this.getDirection()\n )\n )\n\n if (exitPortals.length > 1) {\n // Check for existing exitPortalId in beam state for this step\n const exitPortalId = beam.getState().steps?.[nextStep.index]?.[this.id]\n if (exitPortalId !== undefined) {\n console.debug(this.toString(), `found exitPortalId ${exitPortalId} in beam step ${nextStep.index} state`)\n const existing = exitPortals.find((item) => item.id === exitPortalId)\n if (existing) {\n return [existing]\n }\n }\n }\n\n return exitPortals\n }\n\n #getStep (beam, nextStep, exitPortal, keepDelta = true) {\n const direction = Portal.getExitDirection(nextStep, this, exitPortal)\n return nextStep.copy({\n connected: false,\n direction,\n insertAbove: exitPortal,\n onAdd: (step) => {\n exitPortal.update(direction, step)\n // Store this decision in beam state and generate a matching delta\n beam.updateState((state) => ((state.steps ??= {})[step.index] = { [this.id]: exitPortal.id }), keepDelta)\n },\n onRemove: (step) => {\n // Remove any associated beam state, but don't generate a delta.\n // If the step is being removed, a delta for that action was most likely created elsewhere already.\n beam.updateState((state) => { delete state.steps[step.index] }, false)\n exitPortal.update(direction)\n },\n point: exitPortal.parent.center,\n state: nextStep.state.copy(new StepState.Portal(this, exitPortal)),\n tile: exitPortal.parent\n })\n }\n\n static getExitDirection (step, entryPortal, exitPortal) {\n // Direction precedence is as follows:\n // - direction defined by exit portal\n // - direction defined by entry portal\n // - direction beam was traveling when it reached the entry portal\n return exitPortal.getDirection() ?? entryPortal.getDirection() ?? step.direction\n }\n}\n","import { Modifier } from '../modifier'\nimport { addDirection, coalesce } from '../util'\nimport { Icons } from '../icons'\n\nexport class Rotate extends Modifier {\n clockwise\n title = 'Rotate'\n\n constructor (tile, state, configuration = {}) {\n super(...arguments)\n\n this.clockwise = coalesce(true, state.clockwise, configuration.clockwise)\n this.name = Rotate.Names[this.clockwise ? 'right' : 'left']\n }\n\n moveFilter (tile) {\n // Filter out tiles that contain no rotatable items\n return super.moveFilter(tile) || !tile.items.some((item) => item.rotatable)\n }\n\n onTap (event) {\n super.onTap(event)\n\n const items = this.tile.items.filter((item) => item.rotatable)\n items.forEach((item) => item.rotate(this.clockwise))\n\n this.dispatchEvent(Modifier.Events.Invoked, { items })\n }\n\n onToggle () {\n super.onToggle()\n\n this.clockwise = !this.clockwise\n this.updateState((state) => { state.clockwise = this.clockwise })\n this.update({ name: Rotate.Names[this.clockwise ? 'right' : 'left'] })\n }\n\n static Names = Object.freeze({ left: Icons.RotateLeft.name, right: Icons.RotateRight.name })\n}\n\n/**\n * A mixin for Item which provides rotate behaviors.\n */\nexport const rotatable = (SuperClass) => class RotatableItem extends SuperClass {\n direction\n\n rotatable\n rotation = 0\n rotationDegrees\n\n constructor (parent, state, configuration = {}) {\n super(...arguments)\n\n this.direction = coalesce(state.direction, configuration.direction)\n this.rotatable = !this.immutable && coalesce(true, state.rotatable, configuration.rotatable)\n this.rotationDegrees = coalesce(60, state.rotationDegrees, configuration.rotationDegrees)\n this.rotation = coalesce(0, state.rotation, configuration.rotation) % this.getMaxRotation()\n }\n\n // Get the direction of an item with rotation factored in\n getDirection (direction) {\n direction = direction ?? this.direction\n return direction === undefined\n ? direction\n : addDirection(direction, this.rotation)\n }\n\n getMaxRotation () {\n return (360 / this.rotationDegrees)\n }\n\n onInitialization () {\n super.onInitialization()\n\n this.rotateGroup(this.rotation)\n\n if (this.direction !== undefined) {\n // Direction will not affect initial rotation of item\n this.rotateGroup(this.direction)\n }\n }\n\n rotateGroup (rotation) {\n this.group.rotate(rotation * this.rotationDegrees, this.center)\n }\n\n rotate (clockwise) {\n if (!this.rotatable) {\n return\n }\n\n const rotation = clockwise === false ? -1 : 1\n\n this.rotation = (rotation + this.rotation) % this.getMaxRotation()\n\n this.updateState((state) => { state.rotation = this.rotation })\n this.rotateGroup(rotation)\n }\n}\n","import chroma from 'chroma-js'\nimport { Path } from 'paper'\nimport { toggleable } from '../modifiers/toggle'\nimport { Item } from '../item'\nimport { rotatable } from '../modifiers/rotate'\nimport { getColorElements, emitEvent, getOppositeDirection, addDirection, subtractDirection } from '../util'\nimport { Beam } from './beam'\nimport { movable } from '../modifiers/move'\nimport { StepState } from '../step'\n\nexport class Terminus extends movable(rotatable(toggleable(Item))) {\n sortOrder = 2\n\n #ui\n\n constructor (tile, state) {\n super(...arguments)\n\n const colors = state.openings.filter((opening) => opening?.color)\n .flatMap((opening) => Array.isArray(opening.color) ? opening.color : [opening.color])\n const color = chroma.average(\n colors.length ? colors : (Array.isArray(state.color) ? state.color : [state.color])\n ).hex()\n\n const openings = state.openings.map((opening, direction) =>\n opening\n ? new Terminus.#Opening(\n opening.color ?? color,\n direction,\n opening.connected,\n opening.on ?? state.on\n )\n : opening\n ).filter((opening) => opening)\n\n this.#ui = Terminus.ui(tile, color, openings)\n\n this.group.addChildren([...this.#ui.openings, this.#ui.terminus])\n\n this.color = color\n this.openings = openings\n this.radius = this.#ui.radius\n this.toggled = openings.some((opening) => opening.on)\n\n // Needs to be last since it references 'this'\n this.beams = openings.map((opening) => new Beam(this, state.openings[opening.direction], opening))\n\n this.update()\n }\n\n getColorElements () {\n return getColorElements(this.openings.map((opening) => opening.color))\n }\n\n getOpening (direction) {\n return this.openings.find((opening) => opening.direction === direction)\n }\n\n onMove () {\n this.beams.forEach((beam) => beam.remove())\n }\n\n onCollision ({ beam, collisionStep, currentStep, existingNextStep, nextStep }) {\n console.debug(this.toString(), 'collision', beam.toString())\n\n // Colliding with the starting terminus, ignore\n if (beam.parent === this && beam.startDirection() === nextStep.direction) {\n console.debug(beam.toString(), 'ignoring starting terminus collision')\n return\n }\n\n const directionFrom = getOppositeDirection(currentStep.direction)\n\n // Take rotation of terminus into account\n const opening = this.openings.find((opening) => this.getDirection(opening.direction) === directionFrom)\n if (\n opening && opening.color === nextStep.color && (\n !opening.on ||\n // When re-evaluating history of an already connected opening\n (opening.connected && existingNextStep?.state.get(StepState.TerminusConnection)?.terminus.equals(this))\n )\n ) {\n // Beam has connected to a valid opening\n console.debug(beam.toString(), 'terminus connection', this.toString(), opening)\n return nextStep.copy({\n done: true,\n onAdd: () => {\n nextStep.onAdd()\n this.onConnection(opening.direction)\n },\n onRemove: () => {\n nextStep.onRemove()\n this.onDisconnection(opening.direction)\n },\n state: nextStep.state.copy(new StepState.TerminusConnection(this, opening))\n })\n }\n\n // Otherwise, treat this as a collision\n return collisionStep\n }\n\n onConnection (direction) {\n const opening = this.getOpening(direction)\n\n if (opening.connected) {\n // Already connected\n return\n }\n\n opening.connect()\n this.update()\n\n emitEvent(Terminus.Events.Connection, { terminus: this, opening })\n }\n\n onDisconnection (direction) {\n const opening = this.getOpening(direction)\n\n if (!opening.connected) {\n // Already disconnected\n return\n }\n\n opening.disconnect()\n this.update()\n\n emitEvent(Terminus.Events.Disconnection, { terminus: this, opening })\n }\n\n onToggle () {\n this.updateState((state) => {\n this.openings.filter((opening) => !opening.connected).forEach((opening) => {\n opening.toggle()\n state.openings[opening.direction].on = opening.on\n })\n })\n this.update()\n }\n\n update () {\n this.beams.forEach((beam) => {\n const opening = beam.getOpening()\n const item = this.#ui.openings.find((item) => item.data.direction === opening.direction)\n item.opacity = opening.on ? 1 : Terminus.#openingOffOpacity\n })\n }\n\n static #openingOffOpacity = 0.3\n\n static ui (tile, color, configuration) {\n const radius = tile.parameters.circumradius / 2\n\n const terminus = new Path.RegularPolygon({\n center: tile.center,\n fillColor: color,\n opacity: 1,\n sides: 6,\n radius: radius / 2\n })\n\n const openings = configuration.map((opening) => {\n const direction = opening.direction\n\n // Each opening is essentially a triangle from the mid-point segments of the terminus with the tip of the triangle\n // pointing in the direction of the opening. This ensures there isn't a gap between the opening triangle and the\n // terminus hexagon.\n const p1 = terminus.segments[subtractDirection(direction, 1)].point\n const p2 = terminus.segments[addDirection(direction, 2)].point\n\n const vector = p2.subtract(p1)\n\n vector.angle += 120\n\n const p3 = p1.subtract(vector)\n\n return new Path({\n closed: true,\n data: { collidable: false, direction },\n fillColor: opening.color,\n opacity: opening.on ? 1 : Terminus.#openingOffOpacity,\n segments: [p1, p2, p3]\n })\n })\n\n return { openings, radius, terminus }\n }\n\n static #Opening = class {\n constructor (color, direction, connected, on) {\n this.colors = Array.isArray(color) ? color : [color]\n this.color = chroma.average(this.colors).hex()\n this.direction = direction\n this.connected = connected === true\n this.on = on === true\n }\n\n connect () {\n this.connected = this.on = true\n }\n\n disconnect () {\n this.connected = this.on = false\n }\n\n toggle () {\n this.on = !this.on\n }\n }\n\n static Events = Object.freeze({\n Connection: 'terminus-connection',\n Disconnection: 'terminus-disconnection'\n })\n}\n","import { Modifier } from '../modifier'\nimport { Icons } from '../icons'\n\nexport class Toggle extends Modifier {\n on\n title = 'Toggle'\n\n constructor (tile, { on }) {\n super(...arguments)\n\n this.on = on || false\n this.name = this.getName()\n }\n\n attach (tile) {\n super.attach(tile)\n // Consider the modifier toggled if there is at least one toggled item in the tile\n // TODO: refactor to be 'toggled' everywhere\n this.on = this.tile?.items.some((item) => item.on || item.toggled)\n this.update({ name: this.getName() })\n }\n\n getName () {\n return Toggle.Names[this.on ? 'on' : 'off']\n }\n\n moveFilter (tile) {\n // Filter out tiles that contain no toggleable items\n return super.moveFilter(tile) || !tile.items.some((item) => item.toggleable)\n }\n\n onTap (event) {\n super.onTap(event)\n\n this.on = !this.on\n\n const items = this.tile.items.filter((item) => item.toggleable)\n items.forEach((item) => item.toggle(this.on))\n\n this.update({ name: this.getName() })\n\n this.dispatchEvent(Modifier.Events.Invoked, { items })\n }\n\n static Names = Object.freeze({ on: Icons.ToggleOn.name, off: Icons.ToggleOff.name })\n}\n\n/**\n * A mixin for Item which provides toggle behaviors.\n *\n * @param SuperClass\n * @returns {{new(*, *): ToggleableItem, toggled: *, prototype: ToggleableItem}}\n * @constructor\n */\nexport const toggleable = (SuperClass) => class ToggleableItem extends SuperClass {\n toggleable\n toggled\n\n constructor (parent, configuration) {\n super(...arguments)\n\n this.toggleable = !this.immutable && configuration.toggleable !== false\n this.toggled = this.toggleable && configuration.toggled\n }\n\n onToggle () {}\n\n toggle (toggled) {\n this.toggled = toggled\n this.onToggle()\n }\n}\n","import chroma from 'chroma-js'\nimport { CompoundPath, Path } from 'paper'\nimport { Item } from '../item'\nimport {\n getColorElements,\n emitEvent,\n fuzzyEquals,\n getPointBetween,\n getDistance,\n getOppositeDirection,\n uniqueBy, getPointFrom\n} from '../util'\nimport { Step, StepState } from '../step'\nimport { Collision, CollisionMergeWith } from '../collision'\nimport { Cache } from '../cache'\n\nexport class Beam extends Item {\n done = false\n path = []\n sortOrder = 3\n\n #cache = new Cache(Object.values(Beam.CacheKeys))\n #direction\n #path\n #stepIndex = -1\n #steps = []\n\n constructor (terminus, state, configuration) {\n // Exclude from modification\n state.immutable = true\n\n super(...arguments)\n\n this.group = null\n this.#direction = configuration.direction\n\n this.#path = {\n closed: false,\n data: { id: this.id, type: this.type },\n locked: true,\n strokeJoin: 'round',\n strokeCap: 'round',\n strokeWidth: terminus.radius / 12\n }\n }\n\n addStep (step) {\n const lastStepIndex = this.getLastStepIndex()\n\n // Can't be done if adding a new step\n this.done = false\n\n this.#path.strokeColor = step.color\n\n if (this.path.length === 0) {\n const path = new Path(this.#path)\n this.path.push(path)\n this.getLayer().insertChild(0, path)\n }\n\n const currentPath = this.path[this.path.length - 1]\n const previousStep = this.#steps[lastStepIndex]\n\n // Handles cases that require adding a new path item\n if (\n !step.connected || (\n previousStep && (\n step.color !== previousStep.color ||\n step.insertAbove !== previousStep.insertAbove\n )\n )\n ) {\n console.debug(this.toString(), 'adding new path item for step:', step, 'previous step:', previousStep)\n\n const path = new Path(this.#path)\n const points = [step.point]\n\n // If the next step is connected, we will link it with the previous step\n if (step.connected) {\n points.unshift(previousStep.point)\n }\n\n path.add(...points)\n this.path.push(path)\n\n // Unless specified in the state, the path will be inserted beneath all items\n this.getLayer().insertChild(this.#getItemIndex(step), path)\n\n // Reset the segmentIndex\n step.segmentIndex = 0\n } else {\n currentPath.add(step.point)\n step.segmentIndex = currentPath.segments.length - 1\n }\n\n step.pathIndex = this.path.length - 1\n\n this.#steps.push(step)\n\n step.index = this.#stepIndex = this.#steps.length - 1\n\n if (!step.tile.items.some((item) => item.equals(this))) {\n // Add this beam to the tile item list so other beams can see it\n step.tile.addItem(this)\n }\n\n step.onAdd(step)\n\n console.debug(this.toString(), 'added step', step)\n\n this.#onUpdate(this.#stepIndex)\n\n return step\n }\n\n getCollision () {\n return this.getStep()?.state.get(StepState.Collision)\n }\n\n getColor () {\n return this.getStep()?.color || this.getOpening().color\n }\n\n getColors () {\n return Array.from(this.getStep()?.colors || this.getOpening().colors)\n }\n\n getColorElements (tile) {\n // Show color elements for merged beams\n const step = this.getSteps(tile).find((step) => step.state.has(StepState.MergeWith))\n return step ? getColorElements(step.colors) : []\n }\n\n getCompoundPath () {\n return new CompoundPath({ children: this.path.map((item) => item.clone({ insert: false })) })\n }\n\n getIndex () {\n return this.path[this.path.length - 1].index\n }\n\n getLastStepIndex () {\n return this.length() - 1\n }\n\n getLayer () {\n return this.parent.getLayer()\n }\n\n getMergeWith (beam) {\n return this.#cache.get(Beam.CacheKeys.MergeWith).get(beam.id)\n }\n\n getOpening () {\n return this.parent.getOpening(this.#direction)\n }\n\n getState () {\n return this.parent.getState().openings[this.#direction]\n }\n\n getStep (stepIndex) {\n return this.#steps[stepIndex || this.getLastStepIndex()]\n }\n\n getSteps (tile) {\n return tile ? this.#steps.filter((step) => step.tile === tile) : this.#steps\n }\n\n isComplete () {\n return this.isOn() && this.done\n }\n\n isConnected () {\n const step = this.getStep()\n return step?.state.has(StepState.TerminusConnection) ||\n // Consider beams which have merged into connected beams to also be connected\n step?.state.get(StepState.MergeInto)?.beam.isConnected()\n }\n\n isOn () {\n const opening = this.getOpening()\n // The opening will also be on if another beam connects with it\n return opening.on && !opening.connected\n }\n\n isPending () {\n return this.isOn() && !this.done\n }\n\n length () {\n return this.#steps.length\n }\n\n onBeamUpdated (event) {\n const beam = event.detail.beam\n\n if (beam.isPending()) {\n // Wait for beam to finish before evaluating\n return\n }\n\n const beamLastStep = beam.getStep()\n\n if (this.isComplete()) {\n const lastStep = this.getStep()\n\n // Check for invalid collisions\n const collision = lastStep.state.get(StepState.Collision)\n if (collision?.has(beam) && !collision.equals(beamLastStep?.state.get(StepState.Collision))) {\n console.debug(this.toString(), 're-evaluating collision with', beam.toString())\n this.done = false\n this.#stepIndex = Math.max(lastStep.index - 1, 0)\n return\n }\n\n // Check for invalid mergedInto\n const mergeInto = lastStep.state.get(StepState.MergeInto)\n if (mergeInto?.beam.equals(beam) && !beam.getMergeWith(this)) {\n console.debug(this.toString(), 're-evaluating merge into', beam.toString())\n this.done = false\n this.#stepIndex = Math.max(this.#stepIndex - 1, 0)\n return\n }\n }\n\n // Check for invalid mergedWith\n const mergeWith = this.getMergeWith(beam)\n if (mergeWith && !beamLastStep?.state.get(StepState.MergeInto)?.beam.equals(this)) {\n console.debug(this.toString(), 're-evaluating merge with', beam.toString())\n this.done = false\n this.#stepIndex = Math.max(mergeWith.stepIndex - 1, 0)\n }\n }\n\n onCollision ({ beam, collision, collisionStep, currentStep, nextStep, puzzle }) {\n const isSelf = beam.equals(this)\n\n console.debug(this.toString(), 'evaluating collision with', (isSelf ? 'self' : beam.toString()))\n\n if (!beam.isOn()) {\n console.debug(this.toString(), 'ignoring collision with inactive beam', beam.toString())\n return\n }\n\n if (beam.parent.equals(this.parent) && currentStep.index === 0) {\n console.debug(this.toString(), 'ignoring collision with sibling beam', beam.toString())\n return\n }\n\n if (isSelf && this.#stepIndex < this.getLastStepIndex()) {\n console.debug(this.toString(), 'ignoring collision with self while re-evaluating history')\n return\n }\n\n // Find the step with matching collision point\n const stepIndex = this.#steps.findLastIndex((step) => fuzzyEquals(collision.point, step.point))\n if (stepIndex < 0) {\n // This error will occur if the steps are out of sync with the path segments for some reason\n throw new Error(\n `Could not find matching step for beam collision between ${this.toString()} and ${beam.toString()}`)\n }\n\n const step = this.#steps[stepIndex]\n\n if (step.state.get(StepState.MergeInto)?.beam.equals(beam)) {\n console.debug(this.toString(), 'ignoring collision with merged beam', beam.toString())\n return\n }\n\n // Note: we only want to evaluate this at the collision point, otherwise terminus connection is irrelevant.\n if (step.state.get(StepState.TerminusConnection)?.terminus.equals(beam.parent)) {\n console.debug(this.toString(), 'ignoring collision with connected beam in parent terminus', beam.toString())\n return\n }\n\n // Check for a reflection on either this beam or the one being collided with at the collision point.\n const reflector = step.state.get(StepState.Reflector) ?? currentStep.state.get(StepState.Reflector)\n if (reflector) {\n // Since every step goes to the center of the tile, we need to go one pixel back in the direction we came from\n // in order to properly test which side of the reflector the beams are on.\n const stepPoint = getPointFrom(step.point, 1, getOppositeDirection(step.direction))\n const nextStepPoint = getPointFrom(currentStep.point, 1, getOppositeDirection(currentStep.direction))\n if (!reflector.item.isSameSide(stepPoint, nextStepPoint)) {\n console.debug(this.toString(), 'ignoring collision with beam on opposite side of reflector', beam.toString())\n return\n }\n }\n\n // Check for a portal on either beam\n const portal = currentStep.state.get(StepState.Portal) ?? step.state.get(StepState.Portal)\n if (portal) {\n console.debug(this.toString(), 'ignoring collision with beam using same portal', beam.toString())\n return\n }\n\n const isSameDirection = step.direction === nextStep.direction\n if (!isSameDirection || isSelf) {\n // Beams are traveling in different directions (collision), or a beam is trying to merge into itself\n console.debug(beam.toString(), 'has collided with', (isSelf ? 'self' : this.toString()), collision)\n\n if (!step.state.get(StepState.Collision)?.point.equals(collision.point)) {\n // No need to update if there is already an existing collision at this same point\n if (!isSelf) {\n // Update beam at point of impact\n this.update(stepIndex, {\n done: true,\n state: step.state.copy(new StepState.Collision(collision.mirror()))\n })\n } else if (!isSameDirection) {\n // For a collision with self, the update at point of impact will occur on the next update loop. This results in\n // a better visualization of the collision which will result in an infinite looping animation.\n this.update(stepIndex, puzzle.getBeamsUpdateDelay())\n }\n }\n\n return collisionStep.copy({\n done: true,\n // Use same insertion point as the beam we collided with to ensure proper item hierarchy.\n insertAbove: step.insertAbove\n })\n }\n\n console.debug(this.toString(), 'merging with', beam.toString())\n\n // Update history to reflect changing color of path\n this.#updateHistory(stepIndex)\n\n const mergeWith = new CollisionMergeWith(beam, step, stepIndex)\n this.addStep(step.copy({\n colors: mergeWith.colors,\n onAdd: () => {\n this.#cache.get(Beam.CacheKeys.MergeWith).set(beam.id, mergeWith)\n },\n onRemove: () => {\n this.#cache.get(Beam.CacheKeys.MergeWith).unset(beam.id)\n },\n state: step.state.copy(new StepState.MergeWith(mergeWith))\n }))\n\n console.debug(beam.toString(), 'merging into', this.toString())\n\n return nextStep.copy({\n done: true,\n // Stop at current step point\n point: currentStep.point,\n state: nextStep.state.copy(new StepState.MergeInto(this))\n })\n }\n\n onModifierInvoked (event) {\n if (!this.isOn()) {\n if (this.#steps.length) {\n console.debug(this.toString(), 'beam has been toggled off')\n this.remove()\n }\n return\n }\n\n const tiles = event.detail.tiles || [event.detail.tile]\n\n // We want the first step that contains the tile the event occurred on\n const stepIndex = this.#steps.findIndex((step) => tiles.some((tile) => tile.equals(step.tile)))\n if (stepIndex >= 0) {\n console.debug(this.toString(), 're-evaluating due to modifier being invoked in matching tile', stepIndex)\n // Re-evaluate beginning at the step before the matched one\n this.done = false\n this.#stepIndex = Math.max(stepIndex - 1, 0)\n return\n }\n\n if (this.isComplete()) {\n const lastStep = this.getStep()\n\n if (lastStep.state.get(StepState.Portal)?.entryPortal) {\n // Check for valid exit portal\n this.done = false\n }\n }\n }\n\n remove (stepIndex = 0) {\n this.#updateHistory(stepIndex)\n }\n\n selected (selected = true) {\n this.path.forEach((path) => { path.selected = selected })\n }\n\n startDirection () {\n // Take rotation of the parent (terminus) into account\n return (this.getOpening().direction + this.parent.rotation) % 6\n }\n\n /**\n * On each step, a beam will move towards the edge of the current tile until it either reaches that point, or it\n * intersects with something else. A beam will be considered 'done' when it either collides with something or it\n * reaches a terminus opening.\n */\n step (puzzle) {\n if (!this.isPending()) {\n return\n }\n\n console.debug(this.toString(), 'currentStepIndex', this.#stepIndex)\n\n // First step\n if (this.#steps.length === 0) {\n const tile = this.parent.parent\n this.addStep(new Step(0, tile, this.getColor(), this.startDirection(), tile.center))\n }\n\n const currentStepIndex = this.#stepIndex\n const currentStep = this.#steps[currentStepIndex]\n\n // On the first step, we have to take the rotation of the terminus into account\n const direction = currentStepIndex === 0 ? this.startDirection() : currentStep.direction\n const nextStepPoint = getPointFrom(currentStep.point, currentStep.tile.parameters.inradius, direction)\n\n // Use the midpoint between the previous and next step points to calculate which tile we are in.\n // This will ensure we consistently pick the same tile when the next step point is on the edge of two tiles.\n const tile = puzzle.getTile(getPointBetween(currentStep.point, nextStepPoint))\n\n // The next step would be off the grid\n if (!tile) {\n console.debug(this.toString(), 'stopping due to out of bounds')\n\n const collision = new Collision(0, [currentStep.point], this)\n return this.updateStep(currentStepIndex, {\n done: true,\n state: new StepState(new StepState.Collision(collision))\n })\n }\n\n const nextStepIndex = currentStepIndex + 1\n const existingNextStep = this.#steps[nextStepIndex]\n const lastPathIndex = this.path.length - 1\n const lastSegmentIndex = this.path[lastPathIndex].segments.length - 1\n\n let nextStep = new Step(\n nextStepIndex,\n tile,\n currentStep.color,\n direction,\n nextStepPoint,\n existingNextStep?.pathIndex || lastPathIndex,\n existingNextStep?.segmentIndex || lastSegmentIndex\n )\n\n const items = uniqueBy(\n tile.items.concat(currentStep.tile.equals(nextStep.tile) ? [] : currentStep.tile.items),\n 'id'\n )\n\n console.debug(this.toString(), 'collision items:', items)\n\n // See if there are any collisions along the path we plan to take\n const collisions = this.#getCollisions(items, currentStep, nextStep, puzzle)\n .map((collision, index) => new Collision(index, collision.points, this, collision.item))\n\n if (collisions.length) {\n console.debug(this.toString(), 'collisions:', collisions)\n }\n\n let collisionStep\n for (let collisionIndex = 0; collisionIndex < collisions.length; collisionIndex++) {\n const collision = collisions[collisionIndex]\n\n console.debug(this.toString(), 'resolving collision:', collision)\n\n // By default, the next step will be treated as a collision with the beam stopping at the first point of\n // intersection with the item.\n collisionStep = nextStep.copy({\n done: true,\n point: collision.point,\n state: nextStep.state.copy(new StepState.Collision(collision))\n })\n\n // Allow the item to change the resulting step\n collisionStep = collision.item.onCollision({\n beam: this,\n collision,\n collisions,\n collisionStep,\n currentStep,\n nextStep,\n existingNextStep,\n puzzle\n })\n\n if (collisionStep instanceof Step) {\n break\n }\n }\n\n if (collisionStep) {\n nextStep = collisionStep\n }\n\n // See if we need to change history\n if (existingNextStep) {\n // The next step we would take is the same as the step that already exists in history\n if (nextStep.equals(existingNextStep)) {\n this.#stepIndex++\n\n const lastStepIndex = this.getLastStepIndex()\n console.debug(\n this.toString(),\n 'new step is same as existing. new step index:',\n this.#stepIndex,\n 'last step index:',\n lastStepIndex\n )\n\n if (this.#stepIndex === lastStepIndex) {\n // To ensure we mark as done\n this.#onUpdate(this.#stepIndex)\n }\n\n return existingNextStep\n } else {\n console.debug(\n this.toString(),\n `is revising history at step index: ${nextStepIndex}`,\n 'existing step:',\n existingNextStep,\n 'new step:',\n nextStep\n )\n this.#updateHistory(nextStepIndex)\n }\n }\n\n if (currentStepIndex === this.#stepIndex && currentStep.point.equals(nextStep.point)) {\n // Note: ensuring history has not been modified when evaluating next step vs current\n console.debug(this.toString(), 'next step point is same as current step point, stopping.', nextStep)\n return this.updateStep(currentStepIndex, nextStep.copy({ done: true }))\n }\n\n return this.addStep(nextStep)\n }\n\n toString () {\n return `[${this.type}:${this.id}:${chroma(this.getColor()).name()}]`\n }\n\n update (stepIndex, settings = {}, timeout) {\n if (typeof settings === 'number') {\n timeout = settings\n settings = {}\n }\n const update = this.#update.bind(this, stepIndex, settings, timeout)\n return timeout === undefined ? update() : setTimeout(update, timeout)\n }\n\n updateState (updater, dispatchEvent = true) {\n return this.parent.updateState((state) => updater(state.openings[this.#direction]), dispatchEvent)\n }\n\n updateStep (stepIndex, settings) {\n const step = this.getStep(stepIndex)\n if (step) {\n // Update is essentially: remove, update, add\n step.onRemove(step)\n const updatedStep = this.#getUpdatedStep(step, settings)\n this.#steps[stepIndex] = updatedStep\n updatedStep.onAdd(updatedStep)\n\n console.debug(this.toString(), 'updated step at index', stepIndex, 'from', step, 'to', updatedStep)\n this.#onUpdate(stepIndex)\n return updatedStep\n }\n }\n\n #getCollisions (items, currentStep, nextStep, puzzle) {\n const segments = [currentStep.point, nextStep.point]\n const path = new Path({ segments })\n const firstPoint = segments[0]\n return items\n .map((item) => {\n const points = []\n const intersections = path.getIntersections(\n item.getCompoundPath(),\n // Ignore first point from self which will always collide\n (curveLocation) => !(item === this && curveLocation.point.equals(firstPoint))\n )\n\n points.push(...new Set(intersections.map((intersection) => intersection.point)))\n\n // Handle the edge case of colliding with a beam with a single, isolated path item.\n // This will happen in the case of a portal exit collision, for example.\n if (!points.length && item.type === Item.Types.beam && item !== this) {\n points.push(\n ...item.getSteps().map((step) => step.point)\n .filter((point) => segments.some((segment) => fuzzyEquals(point, segment)))\n )\n }\n\n // Sort collision points by distance from origin point (closest collision points first)\n points.sort(getDistance(firstPoint))\n\n if (puzzle.debug) {\n puzzle.drawDebugPoint(firstPoint)\n points.forEach((point) => puzzle.drawDebugPoint(point, { fillColor: 'black' }))\n }\n\n return { points, item }\n })\n .filter((result) => result.points.length)\n .sort((a, b) => {\n // Sort items returned by proximity to starting point\n const distance = getDistance(firstPoint)(a.points[0], b.points[0])\n if (distance === 0) {\n // If two items are an equal distance away, sort by sort order as defined on item\n return a.item.sortOrder - b.item.sortOrder\n }\n\n return distance\n })\n }\n\n #getItemIndex (step) {\n return step.insertAbove ? step.insertAbove.getIndex() + 1 : 0\n }\n\n #getUpdatedStep (step, settings) {\n if (typeof settings === 'function') {\n settings = settings(step)\n }\n\n return settings instanceof Step ? settings : step.copy(settings)\n }\n\n #update (stepIndex, settings) {\n if (stepIndex < this.getLastStepIndex()) {\n const step = this.#updateHistory(stepIndex)\n this.addStep(this.#getUpdatedStep(step, settings))\n } else {\n this.updateStep(stepIndex, settings)\n }\n }\n\n #onUpdate (stepIndex) {\n const lastStepIndex = this.getLastStepIndex()\n stepIndex ??= lastStepIndex\n\n const step = this.getStep(stepIndex)\n\n if (stepIndex === lastStepIndex) {\n // Update beam status if last step was updated\n this.done = step?.done ?? false\n }\n\n emitEvent(Beam.Events.Update, { beam: this, state: step?.state, step, stepIndex })\n }\n\n #updateHistory (stepIndex) {\n const lastStepIndex = this.getLastStepIndex()\n const step = this.#steps[stepIndex]\n\n console.debug(\n this.toString(),\n 'updateHistory',\n 'stepIndex:',\n stepIndex,\n 'lastStepIndex:',\n lastStepIndex,\n 'step:',\n step\n )\n\n if (step) {\n const currentPath = this.path[step.pathIndex]\n\n // Remove any now invalid path segments\n currentPath.removeSegments(step.segmentIndex)\n\n // If the current path is empty, remove it along with everything after it.\n const spliceIndex = step.pathIndex + (currentPath.segments.length === 0 ? 0 : 1)\n\n // Remove any now invalid path items\n this.path.splice(spliceIndex).forEach((item) => item.remove())\n\n const deletedSteps = this.#steps.splice(stepIndex)\n\n console.debug(this.toString(), 'removed steps: ', deletedSteps)\n\n const tiles = [...new Set(deletedSteps.map((step) => step.tile))]\n // Remove references to the beam in any tiles it is no longer in\n tiles.filter((tile) => this.getSteps(tile).length === 0).forEach((tile) => tile.removeItem(this))\n\n deletedSteps.forEach((step) => step.onRemove(step))\n\n this.done = false\n this.#stepIndex = (stepIndex - 1)\n\n this.#onUpdate(this.#stepIndex)\n }\n\n return step\n }\n\n static CacheKeys = Object.freeze({\n MergeWith: 'mergeWith'\n })\n\n static Events = Object.freeze({\n Collision: 'beam-collision',\n Connection: 'beam-connection',\n Merge: 'beam-merge',\n Update: 'beam-update'\n })\n}\n","import { StepState } from './step'\n\nexport class Collision {\n constructor (index, points, beam, item) {\n const items = [beam]\n\n if (item !== undefined) {\n items.push(item)\n }\n\n this.beam = beam\n this.index = index\n\n // The item that was collided with\n this.item = item\n this.itemIds = items.map((item) => item.id)\n this.items = items\n\n // The first collision point\n this.point = points[0]\n this.points = points\n\n // Check if the collision is with self\n this.withSelf = beam.equals(item)\n }\n\n copy (settings) {\n return new Collision(\n settings.index ?? this.index,\n settings.points ?? this.points,\n settings.beam ?? this.beam,\n settings.item ?? this.item\n )\n }\n\n equals (other) {\n return other && other.point.equals(this.point) &&\n other.items.every((item) => this.has(item))\n }\n\n has (item) {\n return this.itemIds.includes(item.id)\n }\n\n mirror () {\n return this.copy({ beam: this.item, item: this.beam })\n }\n}\n\nexport class CollisionMergeWith {\n constructor (beam, step, stepIndex) {\n this.beams = [beam].concat(step.state.get(StepState.MergeWith)?.beams || [])\n this.colors = step.colors.concat(beam.getColors())\n this.stepIndex = stepIndex\n }\n}\n","import { Path, Point, Size } from 'paper'\nimport { Item } from '../item'\nimport { rotatable } from '../modifiers/rotate'\nimport { getPointBetween, getOppositeDirection, getPosition, getReflectedDirection, getPointFrom } from '../util'\nimport { movable } from '../modifiers/move'\nimport { StepState } from '../step'\n\nexport class Reflector extends movable(rotatable(Item)) {\n #item\n\n constructor (tile, state) {\n super(tile, state, { rotationDegrees: 30 })\n\n this.color = state.color || 'black'\n this.#item = Reflector.item(tile, this.color)\n\n this.group.addChild(this.#item)\n }\n\n midLine () {\n // Two points which form a line through the mid-point of the reflector\n return [\n getPointBetween(this.#item.segments[3].point, this.#item.segments[0].point),\n getPointBetween(this.#item.segments[1].point, this.#item.segments[2].point)\n ]\n }\n\n getSide (point) {\n // Returns the side of the reflector the point is on (0, 1, or -1)\n return getPosition(this.midLine(), point)\n }\n\n isSameSide (pointA, pointB) {\n return this.getSide(pointA) === this.getSide(pointB)\n }\n\n onCollision ({ beam, collision, collisions, collisionStep, currentStep, nextStep }) {\n const directionFrom = getOppositeDirection(currentStep.direction)\n const directionTo = getReflectedDirection(directionFrom, this.rotation)\n\n if (directionTo === currentStep.direction) {\n console.debug(beam.toString(), 'stopping due to collision with non-reflective side of reflector')\n return collisionStep\n }\n\n if (directionTo === directionFrom) {\n console.debug(beam.toString(), 'stopping due to reflection back at self')\n // Unsure why this rule was here, but it was causing a bug when re-evaluating history\n // if (collisions.some((collision) => collision.item.type === Item.Types.beam)) {\n // // If there is also a beam collision in the list of collisions for this step, let that one resolve it\n // return\n // } else {\n // Instead of using collisionStep, just add a collision to nextStep. This will ensure any beams that hit the\n // same side of the reflector will collide with this beam.\n return nextStep.copy({\n done: true,\n state: nextStep.state.copy(new StepState.Collision(collision.copy({ points: [nextStep.point] })))\n })\n // }\n }\n\n // The beam will collide with a reflector twice, on entry and exit, so ignore the first one, but track in state\n if (!currentStep.state.has(StepState.Reflector)) {\n return nextStep.copy({ state: nextStep.state.copy(new StepState.Reflector(this)) })\n }\n\n const point = getPointFrom(currentStep.point, nextStep.tile.parameters.inradius, directionTo)\n return nextStep.copy({ direction: directionTo, point })\n }\n\n static item (tile, color) {\n const width = tile.parameters.circumradius / 12\n const length = tile.parameters.circumradius - (width * 2)\n const topLeft = tile.center.subtract(new Point(width / 2, length / 2))\n const size = new Size(width, length)\n\n return new Path.Rectangle({\n data: { size },\n fillColor: color,\n point: topLeft,\n size\n })\n }\n}\n","import { Item } from '../item'\nimport { Path } from 'paper'\nimport { addDirection } from '../util'\nimport { rotatable } from '../modifiers/rotate'\nimport { movable } from '../modifiers/move'\n\nexport class Wall extends movable(rotatable(Item)) {\n sortOrder = 1\n\n constructor (tile, state) {\n // Exclude from modification by default\n state.immutable ??= true\n\n super(tile, state, { rotationDegrees: 60 })\n\n const walls = Wall.item(tile, state)\n this.group.addChildren(walls)\n }\n\n static item (tile, configuration) {\n const radius = tile.parameters.circumradius\n const width = radius / 12\n const fillColor = tile.styles.default.strokeColor\n\n return configuration.directions.map((direction) => {\n const firstSegment = tile.hexagon.segments[direction].point\n const nextDirection = addDirection(direction, 1)\n const lastSegment = tile.hexagon.segments[nextDirection].point\n\n return new Path({\n closed: true,\n fillColor,\n segments: [\n firstSegment,\n tile.hexagon.getLocationAt(\n (direction === 0 ? tile.hexagon.length : tile.hexagon.getOffsetOf(firstSegment)) - width\n ),\n tile.hexagon.getLocationAt(\n (nextDirection === 0 ? 0 : tile.hexagon.getOffsetOf(lastSegment)) + width\n ),\n lastSegment\n ]\n })\n })\n }\n}\n","import { Immutable } from './modifiers/immutable'\nimport { Lock } from './modifiers/lock'\nimport { Move } from './modifiers/move'\nimport { Rotate } from './modifiers/rotate'\nimport { Toggle } from './modifiers/toggle'\nimport { Modifier } from './modifier'\nimport { Swap } from './modifiers/swap'\n\nexport function modifierFactory (tile, configuration) {\n let modifier\n\n switch (configuration.type) {\n case Modifier.Types.immutable:\n modifier = new Immutable(tile, configuration)\n break\n case Modifier.Types.lock:\n modifier = new Lock(tile, configuration)\n break\n case Modifier.Types.move:\n modifier = new Move(tile, configuration)\n break\n case Modifier.Types.rotate:\n modifier = new Rotate(tile, configuration)\n break\n case Modifier.Types.swap:\n modifier = new Swap(tile, configuration)\n break\n case Modifier.Types.toggle:\n modifier = new Toggle(tile, configuration)\n break\n default:\n console.error('Ignoring modifier with unknown type:', configuration.type)\n break\n }\n\n return modifier\n}\n","import { Modifier } from '../modifier'\n\nexport class Immutable extends Modifier {\n immutable = true\n name = 'block'\n title = 'Immutable'\n}\n","import { Modifier } from '../modifier'\n\nexport class Lock extends Modifier {\n immutable = true\n name = 'lock'\n title = 'Locked'\n}\n","import { Move } from './move'\nimport { Modifier } from '../modifier'\nimport { Icons } from '../icons'\n\nexport class Swap extends Move {\n name = Icons.Swap.name\n title = 'Swap'\n\n moveItems (tile) {\n const toItems = tile.items.filter(Move.movable)\n const fromItems = this.tile.items.filter(Move.movable)\n\n fromItems.forEach((item) => item.move(tile))\n toItems.forEach((item) => item.move(this.tile))\n\n return {\n moved: [Move.data(this.tile, tile, fromItems), Move.data(tile, this.tile, toItems)],\n tiles: [this.tile, tile]\n }\n }\n\n tileFilter (tile) {\n // Never mask current tile\n return !tile.equals(this.tile) && (\n // Mask immutable tiles\n tile.modifiers.some(Modifier.immutable) ||\n // Mask tiles that don't contain any movable items\n !tile.items.some(Move.movable)\n )\n }\n}\n","import { Item } from '../item'\nimport { Path } from 'paper'\n\nexport class Mask extends Item {\n constructor (tile, style) {\n super(null, style, { locked: false, type: Item.Types.mask })\n\n const data = { type: this.type }\n const item = new Path.RegularPolygon({\n center: tile.center,\n closed: true,\n data,\n opacity: 0.25,\n radius: tile.parameters.circumradius + 1,\n sides: 6,\n style: Object.assign({ fillColor: 'black' }, style)\n })\n\n this.center = tile.center\n this.group.addChild(item)\n }\n}\n","import { Item } from '../item'\nimport { Path } from 'paper'\n\nexport class Collision extends Item {\n constructor (state) {\n super(null, state, { type: Item.Types.collision })\n\n const { center, color } = state\n\n this.center = center\n this.color = color\n\n const item = new Path.Circle({\n center,\n closed: true,\n radius: 4,\n style: {\n fillColor: 'white',\n strokeColor: color,\n strokeWidth: 2\n }\n })\n\n this.group.addChild(item)\n }\n}\n","import { Puzzles } from '../puzzles'\nimport { base64decode, base64encode, jsonDiffPatch, params, url } from './util'\n\nconst history = window.history\nconst localStorage = window.localStorage\n\nexport class State {\n #current\n #deltas\n #id\n #index\n #original\n #selectedTile\n #version\n\n constructor (id, original, deltas, deltasIndex, selectedTile, version) {\n this.#id = id\n this.#original = original\n this.#deltas = deltas || []\n this.#index = deltasIndex || this.#lastIndex()\n this.#selectedTile = selectedTile\n this.#version = version ?? original.version\n\n // Update current state\n this.#current = structuredClone(original)\n this.#deltas.filter((delta, index) => index <= this.#index).forEach((delta) => this.apply(delta))\n\n this.#updateCache(id)\n }\n\n apply (delta) {\n // Support for deltas stored as stringified JSON in cache\n if (typeof delta === 'string') {\n delta = JSON.parse(delta)\n }\n console.debug('StateManager: applying delta', delta)\n return jsonDiffPatch.patch(this.#current, delta)\n }\n\n canRedo () {\n return this.#index < this.#lastIndex()\n }\n\n canReset () {\n return this.#deltas.length > 0\n }\n\n canUndo () {\n return this.#index >= 0\n }\n\n encode () {\n return base64encode(JSON.stringify({\n id: this.#id,\n // No need to cache puzzles which exist in code\n original: Puzzles.has(this.#id) ? undefined : this.#original,\n deltas: this.#deltas,\n deltasIndex: this.#index,\n selectedTile: this.#selectedTile,\n version: this.#version\n }))\n }\n\n getCurrent () {\n return structuredClone(this.#current)\n }\n\n getId () {\n return this.#id\n }\n\n getTitle () {\n return this.getId() + (this.#current.title ? ` - ${this.#current.title}` : '')\n }\n\n getSelectedTile () {\n return this.#selectedTile\n }\n\n moves () {\n return this.#index + 1\n }\n\n length () {\n return this.#deltas.length\n }\n\n redo () {\n if (!this.canRedo()) {\n return\n }\n\n this.#index++\n this.#current = structuredClone(this.#original)\n this.#deltas.filter((delta, index) => index <= this.#index).forEach((delta) => this.apply(delta))\n\n this.#updateCache()\n\n return true\n }\n\n reset () {\n if (!this.canReset()) {\n return\n }\n\n this.#current = structuredClone(this.#original)\n this.#deltas = []\n this.#index = this.#lastIndex()\n this.#selectedTile = undefined\n\n State.clearCache(this.getId())\n\n this.#updateCache()\n\n return true\n }\n\n setSelectedTile (tile) {\n const id = tile?.coordinates.offset.toString()\n if (this.#selectedTile !== id) {\n this.#selectedTile = id\n this.#updateCache()\n }\n }\n\n undo () {\n if (!this.canUndo()) {\n return\n }\n\n this.#index--\n this.#current = structuredClone(this.#original)\n this.#deltas.filter((delta, index) => index <= this.#index).forEach((delta) => this.apply(delta))\n\n this.#updateCache()\n\n return true\n }\n\n update (newState, keepDelta = true) {\n const delta = jsonDiffPatch.diff(this.#current, newState)\n console.debug('delta', delta)\n\n if (delta === undefined) {\n // Nothing to do\n return\n }\n\n this.apply(delta)\n\n if (keepDelta) {\n // Handle updating after undoing\n if (this.#index < this.#lastIndex()) {\n // Remove all deltas after the current one\n this.#deltas.splice(this.#index + 1)\n }\n\n // It seems that the jsondiffpatch library modifies deltas on patch. To prevent that, they will be stored as\n // their stringified JSON representation and parsed before being applied.\n // See:https://github.com/benjamine/jsondiffpatch/issues/34\n this.#deltas.push(JSON.stringify(delta))\n this.#index = this.#lastIndex()\n }\n\n this.#updateCache()\n }\n\n #key (key) {\n return State.key(key, this.getId())\n }\n\n #lastIndex () {\n return this.#deltas.length - 1\n }\n\n #updateCache () {\n const id = this.getId()\n const state = this.encode()\n\n url.hash = ['', id, state].join('/')\n history.pushState({ id, state }, '', url)\n localStorage.setItem(State.CacheKeys.id, id)\n localStorage.setItem(this.#key(State.CacheKeys.state), state)\n }\n\n static clearCache (id) {\n if (!id) {\n // Clear everything\n url.hash = ''\n history.pushState({}, '', url)\n id = localStorage.getItem(State.CacheKeys.id)\n localStorage.clear()\n // Keep current puzzle ID\n localStorage.setItem(State.CacheKeys.id, id)\n } else {\n // Clear a single puzzle\n url.hash = `/${id}`\n history.pushState({ id }, '', url)\n localStorage.removeItem(State.key(State.CacheKeys.state, id))\n }\n }\n\n static fromEncoded (state) {\n state = JSON.parse(base64decode(state))\n state.original = state.original || Puzzles.get(state.id)\n state.original.version ??= 0\n return new State(\n state.id,\n state.original,\n state.deltas,\n state.deltasIndex,\n state.selectedTile,\n state.version\n )\n }\n\n static fromId (id) {\n return new State(id, Puzzles.get(id))\n }\n\n static resolve (id) {\n let state\n\n // Allow cache to be cleared via URL param\n if (params.has(State.ParamKeys.clearCache)) {\n State.clearCache(params.get(State.ParamKeys.clearCache))\n }\n\n const pathSegments = url.hash.substring(1).split('/').filter((path) => path !== '')\n\n if (!id) {\n // If no explicit ID is given, try to load state from URL\n pathSegments.filter((path) => !Puzzles.has(path)).some((segment, index) => {\n try {\n state = State.fromEncoded(segment)\n id = state.getId()\n } catch (e) {\n console.debug(`Could not parse state from path segment '${index}'`, e)\n }\n\n return state !== undefined\n })\n }\n\n if (!state) {\n // Update ID before checking for state in localStorage.\n id = id || pathSegments[0] || localStorage.getItem(State.CacheKeys.id) || Puzzles.visible.firstId\n\n const localState = localStorage.getItem(State.key(State.CacheKeys.state, id))\n if (localState) {\n try {\n state = State.fromEncoded(localState)\n } catch (e) {\n console.debug(`Could not parse state with ID '${id}' from localStorage`, e)\n }\n }\n }\n\n if (state) {\n const cachedVersion = state.#version\n const originalVersion = state.#original.version\n\n if (cachedVersion !== originalVersion) {\n console.debug(\n `Invalidating cache for ID ${id} due to version mismatch. ` +\n `Puzzle: ${originalVersion}, Cache: ${cachedVersion}`\n )\n state = undefined\n State.clearCache(id)\n }\n }\n\n if (!state) {\n // Fall back to loading state from Puzzles cache by ID\n state = State.fromId(id)\n }\n\n if (!state) {\n throw new Error(`Unable to resolve state for ID '${id}'`)\n }\n\n return state\n }\n\n static key (key, id) {\n return `${key}:${id}`\n }\n\n static CacheKeys = Object.freeze({\n center: 'center',\n id: 'id',\n state: 'state',\n zoom: 'zoom'\n })\n\n static ParamKeys = Object.freeze({\n clearCache: 'clearCache'\n })\n}\n","const puzzles = {\n '001': require('./001.json'),\n '002': require('./002.json'),\n '003': require('./003.json'),\n '004': require('./004.json'),\n '005': require('./005.json'),\n '006': require('./006.json'),\n '007': require('./007.json'),\n '008': require('./008.json'),\n '009': require('./009.json'),\n '010': require('./010.json'),\n '011': require('./011.json'),\n '012': require('./012.json'),\n test_infinite_loop: require('./test/infiniteLoop.json'),\n test_layout: require('./test/layout'),\n test_portal: require('./test/portal.json'),\n test_reflector: require('./test/reflector.json')\n}\n\nfunction traverse (ids, id, amount) {\n const index = ids.indexOf(id)\n return ids[index < 0 ? index : index + amount]\n}\n\nclass PuzzleGroup {\n ids\n\n constructor (ids) {\n this.firstId = ids[0]\n this.ids = ids\n this.lastId = ids[ids.length - 1]\n }\n\n get (id) {\n if (this.has(id)) {\n // Note: deep cloning puzzles to prevent mutation\n return structuredClone(puzzles[id])\n }\n }\n\n has (id) {\n return this.ids.includes(id)\n }\n\n nextId (id) {\n return traverse(this.ids, id, 1)\n }\n\n previousId (id) {\n return traverse(this.ids, id, -1)\n }\n}\n\nexport const Puzzles = new PuzzleGroup(Object.keys(puzzles).sort())\n\nPuzzles.hidden = new PuzzleGroup(Puzzles.ids.filter((id) => id.startsWith('test_')))\nPuzzles.titles = Object.fromEntries(Puzzles.ids.map((id) => [id, puzzles[id].title || id]))\nPuzzles.visible = new PuzzleGroup(Puzzles.ids.filter((id) => !Puzzles.hidden.has(id)))\n","import { capitalize, getIconElement, getTextElement } from './util'\nimport { Terminus } from './items/terminus'\nimport { EventListeners } from './eventListeners'\nimport { Puzzle } from './puzzle'\n\nexport class Solution {\n #conditions = []\n\n constructor (state) {\n state.forEach((condition) => this.#conditionFactory(condition))\n }\n\n teardown () {\n this.#conditions.forEach((condition) => condition.teardown())\n Solution.element.replaceChildren()\n }\n\n isSolved () {\n return this.#conditions.every((condition) => condition.isMet())\n }\n\n #conditionFactory (condition) {\n switch (condition.type) {\n case SolutionCondition.Types.connections: {\n this.#conditions.push(new Connections(condition))\n break\n }\n case SolutionCondition.Types.moves: {\n this.#conditions.push(new Moves(condition))\n break\n }\n default: {\n console.warn('Ignoring condition with unknown type:', condition.type)\n break\n }\n }\n }\n\n static element = document.getElementById('solution')\n}\n\nclass SolutionCondition {\n constructor (state, elements) {\n this.state = state\n\n const li = document.createElement('li')\n li.append(...elements)\n Solution.element.append(li)\n }\n\n isMet () {}\n\n teardown () {}\n\n update () {}\n\n static Types = Object.freeze(Object.fromEntries([\n 'connections',\n 'moves'\n ].map((type) => [type, capitalize(type)])))\n}\n\nclass Connections extends SolutionCondition {\n #completed\n #eventListeners = new EventListeners({ context: this })\n #connections = []\n\n constructor (state) {\n const completed = document.createElement('span')\n completed.textContent = '0'\n\n const required = document.createElement('span')\n required.textContent = state.amount.toString()\n\n const elements = [\n completed,\n getTextElement('/'),\n required,\n getIconElement('link', 'Connections')\n ]\n\n super(state, elements)\n\n this.#completed = completed\n\n this.#eventListeners.add([\n { type: Terminus.Events.Connection, handler: this.update },\n { type: Terminus.Events.Disconnection, handler: this.update }\n ])\n }\n\n isMet () {\n return this.#connections.length === this.state.amount\n }\n\n teardown () {\n this.#eventListeners.remove()\n super.teardown()\n }\n\n update (event) {\n console.debug('Connections.update', event)\n\n const terminus = event.detail.terminus\n const opening = event.detail.opening\n const connectionId = `${terminus.id}:${opening.direction}`\n const connectionIndex = this.#connections.findIndex((connection) => connection === connectionId)\n\n if (opening.connected && connectionIndex < 0) {\n this.#connections.push(connectionId)\n } else if (!opening.connected && connectionIndex >= 0) {\n this.#connections.splice(connectionIndex, 1)\n }\n\n this.#completed.textContent = this.#connections.length.toString()\n }\n}\n\nclass Moves extends SolutionCondition {\n #completed\n #eventListeners = new EventListeners({ context: this })\n #moves = 0\n\n constructor (state) {\n state.operator ??= Moves.Operators.equalTo\n\n if (!Object.values(Moves.Operators).includes(state.operator)) {\n throw new Error(`Invalid moves operator: ${state.operator}`)\n }\n\n const completed = document.createElement('span')\n completed.textContent = '0'\n\n const required = document.createElement('span')\n required.textContent = state.amount.toString()\n\n const elements = [\n completed,\n getTextElement(state.operator),\n required,\n getIconElement('stacks', 'Moves')\n ]\n\n super(state, elements)\n\n this.#completed = completed\n this.#eventListeners.add([{ type: Puzzle.Events.Updated, handler: this.update }])\n }\n\n isMet () {\n // TODO: support 'between' syntax like 2 < 3 < 4 ?\n switch (this.state.operator) {\n case Moves.Operators.equalTo:\n return this.#moves === this.state.amount\n case Moves.Operators.greaterThan:\n return this.#moves > this.state.amount\n case Moves.Operators.lessThan:\n return this.#moves < this.state.amount\n }\n }\n\n teardown () {\n this.#eventListeners.remove()\n super.teardown()\n }\n\n update (event) {\n console.debug('Moves.update', event)\n this.#moves = event.detail.state.moves()\n this.#completed.textContent = this.#moves.toString()\n }\n\n static Operators = Object.freeze({\n equalTo: '=',\n greaterThan: '>',\n lessThan: '<'\n })\n}\n","const script = document.createElement('script')\nscript.setAttribute('src', 'https://www.googletagmanager.com/gtag/js?id=G-HXLD6EE5NS')\ndocument.head.append(script)\n\nconst dataLayer = window.dataLayer = window.dataLayer || []\nfunction gtag () { dataLayer.push(arguments) }\ngtag('js', new Date())\ngtag('config', 'G-HXLD6EE5NS')\n","const doorbellOptions = window.doorbellOptions = {\n appKey: 'o1smdnJiyxObjMcY0jSTf08TIhA814yLq68rEwTDWTavma7dtIVKEdwzMePE2LHC',\n container: document.getElementById('feedback-container'),\n hideButton: true,\n properties: {}\n}\n\nconst script = document.createElement('script')\nscript.setAttribute(\n 'src',\n 'https://embed.doorbell.io/button/14129/1705777677/init?native_json=1&needs_postmessage=0'\n)\ndocument.head.append(script)\n\ndocument.addEventListener('puzzle-updated', (event) => {\n doorbellOptions.properties.puzzleId = event.detail.state.getId()\n})\n"],"names":["$a39eeb69bf620de6$var$static_l_desc","$a39eeb69bf620de6$var$static_d_desc","$a39eeb69bf620de6$var$static_bl_desc","$a39eeb69bf620de6$var$lenfix","$a39eeb69bf620de6$var$distfix","$parcel$export","e","n","v","s","Object","defineProperty","get","set","enumerable","configurable","$parcel$interopDefault","a","__esModule","default","$parcel$global","globalThis","self","window","global","$parcel$modules","$parcel$inits","parcelRequire","id","exports","init","module","call","err","Error","code","register","parcelRegister","self1","undefined","document","Base","hidden","array","slice","create","describe","getOwnPropertyDescriptor","define1","forEach","iter","bind","i","l","length","forIn","hasOwnProperty","assign","dst","arguments","src","key","each","obj","desc","value","inject","dest","beans","preserve","beansNames","field","name","val","substring","bean","isFunc","res","prev","base","match","toLowerCase","isPlainObject","writable","test","part","statics","prototype","extend","ctor","proto","initialize","apply","clone","constructor","define","pick","b","list","begin","end","toString","_id","_class","_name","type","push","Formatter","instance","number","join","getClassName","importJSON","json","exportJSON","options","toJSON","serialize","props","exclude","filter","_prioritize","equals","obj1","obj2","Array","isArray","keys","read","start","amount","peek","__index","readIndex","_readIndex","readNull","__read","filtered","__filtered","remain","readList","entry","readNamed","getNamed","hasValue","source","getSource","__unfiltered","readSupported","that","__source","arg","hasNamed","prioritize","handleKey","processed","isPlainValue","asString","compact","dictionary","isRoot","formatter","precision","definitions","references","add","item","ref","unshift","_serialize","_compactSerialize","deserialize","_data","_setDictionary","_isRoot","isFirst","hasDictionary","isDictionary","args","JSON","stringify","target","parse","useTarget","Item","Layer","insert","concat","INSERT","items","itemsLength","startLength","splice","index","remove","append","_index","removed","capitalize","str","replace","toUpperCase","camelize","chr","hyphenate","Emitter","on","func","types","_eventTypes","handlers","_callbacks","indexOf","install","off","uninstall","once","handler","emit","event","setTarget","currentTarget","stop","responds","attach","detach","fire","_installEvents","events","_events","isString","PaperScope","paper","settings","applyMatrix","insertItems","handleSize","hitTolerance","project","projects","tools","_scopes","support","ctx","CanvasProvider","getContext","nativeDash","nativeBlendModes","BlendMode","nativeModes","release","agent","user","navigator","userAgent","os","exec","platform","browser","v1","v2","rv","chrome","version","versionNumber","parseFloat","trident","jsdom","webkit","atom","getView","_view","getPaper","execute","PaperScript","View","updateFocus","scope","setup","element","Project","createCanvas","width","height","getCanvas","activate","clear","handleAttribute","el","attr","getAttribute","hasAttribute","PaperScopeItem","_scope","_list","_reference","isActive","CollisionDetection","findItemBoundsCollisions","items1","items2","tolerance","getBounds","bounds","rect","left","top","right","bottom","bounds1","bounds2","findBoundsCollisions","findCurveBoundsCollisions","curves1","curves2","bothAxis","curves","min","Math","max","hor","ver","boundsA","boundsB","sweepVertical","onlySweepAxisCollisions","allBounds","lengthA","lengthAll","binarySearch","indices","coord","lo","hi","mid","pri0","pri1","sec0","sec1","allIndicesByPri0","sort","i1","i2","activeIndicesByPri1","allCollisions","curIndex","curBounds","origIndex","isCurrentA","isCurrentB","curCollisions","pruneCount","j","activeIndex","curSec1","curSec0","activeBounds","isActiveA","isActiveB","curPri1","collisions","multiplier","pow","round","pair","val1","val2","separator","point","x","y","size","rectangle","Numerical","abscissas","weights","abs","sqrt","log2","log","LOG2E","clamp","getDiscriminant","c","split","D","E","ad","bd","cd","p","dp","q","dq","getNormalizationFactor","norm","EPSILON","MACHINE_EPSILON","CURVETIME_EPSILON","GEOMETRIC_EPSILON","TRIGONOMETRIC_EPSILON","ANGULAR_EPSILON","KAPPA","isZero","isMachineZero","integrate","f","w","A","B","m","sum","Ax","findRoot","df","fx","dx","nx","solveQuadratic","roots","x1","x2","Infinity","Q","R","count","boundless","minB","maxB","isFinite","solveCubic","d","b1","c2","qd","evaluate","x0","tmp","t","r","td","rd","UID","_pools","pool","Point","arg0","arg1","reading","hasY","_set","setAngle","angle","getLength","setLength","_angle","cos","sin","scale","getAngle","getAngleInRadians","PI","setAngleInRadians","getAngleInDegrees","setAngleInDegrees","atan2","div","NaN","dot","acos","getQuadrant","getDirectedAngle","cross","getDistance","squared","normalize","current","rotate","center","subtract","transform","matrix","_transformPoint","multiply","divide","modulo","negate","isInside","Rectangle","contains","isClose","isCollinear","isColinear","isOrthogonal","isNaN","isInQuadrant","point1","point2","random","y1","y2","op","LinkedPoint","owner","setter","_x","_y","_owner","_setter","_dontNotify","getX","setX","getY","setY","isSelected","_selection","_getSelection","setSelected","selected","_changeSelection","Size","hasHeight","size1","size2","LinkedSize","_width","_height","getWidth","setWidth","getHeight","setHeight","arg2","arg3","from","to","frm","next","rt","getPoint","_dontLink","setPoint","getSize","_fw","_fh","setSize","sx","_sx","sy","_sy","h","getLeft","setLeft","getTop","setTop","getRight","setRight","getBottom","setBottom","getCenterX","setCenterX","getCenterY","setCenterY","getCenter","setCenter","getArea","isEmpty","_containsRectangle","_containsPoint","intersects","epsilon","intersect","unite","include","expand","parts","xFirst","LinkedRectangle","internal","Matrix","ok","_a","_b","_c","_d","_tx","_ty","reset","tx","ty","_changed","getValues","_applyMatrix","mx","recursively","_setApplyMatrix","isIdentity","translate","shear","skew","toRadians","tan","a1","c1","d1","a2","b2","d2","tx2","ty2","prepend","tx1","ty1","appended","prepended","invert","det","inverted","concatenate","preConcatenate","chain","_shiftless","_orNullIfIdentity","isInvertible","isSingular","_transformCoordinates","_transformCorners","coords","_transformBounds","inverseTransform","_inverseTransform","decompose","degrees","asin","translation","getTranslation","rotation","scaling","skewing","getScaling","getRotation","applyToContext","prop","Line","arg4","asVector","_px","_py","_vx","_vy","getVector","line","isInfinite","getSide","getSignedDistance","p1x","p1y","v1x","v1y","p2x","p2y","v2x","v2y","dy","u1","u2","uMin","px","py","vx","vy","ccw","_children","_namedChildren","_activeLayer","_currentStyle","Style","_selectionItems","_selectionCount","_updateVersion","flags","view","_needsUpdate","_requested","_autoUpdate","requestUpdate","changes","_changes","changesById","_changesById","children","getCurrentStyle","setCurrentStyle","style","getIndex","getOptions","getLayers","getActiveLayer","getSymbolDefinitions","ids","getItems","class","SymbolItem","definition","_definition","getSymbols","getSelectedItems","selectionItems","selection","isInserted","_updateSelection","selectAll","setFullySelected","deselectAll","addLayer","layer","insertLayer","_remove","_setProject","setName","_insertItem","_created","NO_INSERT","insertChild","_getItems","getItem","removeOn","sets","_removeSets","mousedrag","other","draw","pixelRatio","save","param","offset","viewMatrix","matrices","updateMatrix","restore","strokeWidth","_drawSelection","_serializeFields","_canApplyMatrix","_canScaleStroke","_pivot","_visible","_blendMode","_opacity","_locked","_guide","_clipMask","_selectBounds","_selectChildren","pivot","visible","blendMode","opacity","locked","guide","clipMask","data","_countItemEvent","onFrame","_animateItem","onLoad","onError","_itemHandlers","_initialize","hasProps","_matrix","_parent","_style","parent","fields","fontSize","Group","_defaults","symbol","_symbol","cacheParent","_project","_bounds","_position","_decomposed","_globalMatrix","_clearBoundsCache","getId","getName","_removeNamed","_getOwner","namedChildren","getStyle","setStyle","getSelection","setSelection","flag","isFullySelected","isClipMask","setClipMask","setFillColor","setStrokeColor","getData","setData","getPosition","position","_getPositionFromBounds","setPosition","getPivot","setPivot","getStrokeBounds","stroke","getHandleBounds","handle","getInternalBounds","hasMatrix","opts","_boundsOptions","getStrokeScaling","cacheItem","_getCachedBounds","setBounds","_backup","_getBounds","_updateBoundsCache","_getBoundsCacheKey","noInternal","cacheKey","cached","nonscaling","hasStroke","_getStrokeMatrix","_item","getViewMatrix","_boundsCache","cache","_decompose","decomposed","setRotation","setScaling","getMatrix","setMatrix","getGlobalMatrix","_dontClone","parents","getApplyMatrix","setApplyMatrix","getTransformContent","setTransformContent","getProject","installEvents","getLayer","getParent","setParent","addChild","getChildren","setChildren","removeChildren","addChildren","getFirstChild","getLastChild","getNextSibling","getPreviousSibling","setIndex","insertChildren","_equals","copy","deep","copyAttributes","copyContent","insertAbove","orig","excludeMatrix","rasterize","resolution","raster","Raster","getResolution","topLeft","getTopLeft","floor","boundsSize","bottomRight","getBottomRight","ceil","rasterSize","_contains","_asPathItem","Path","getIntersections","hitTest","_hitTest","HitResult","hitTestAll","all","hitTestChildren","_exclude","child","_hitTestChildren","parentViewMatrix","guides","tolerancePadding","_tolerancePadding","_getStrokePadding","checkSelf","hit","checkPoint","pt","checkPosition","checkCenter","checkBounds","points","_hitTestSelf","fill","hasFill","matches","compare","matchObject","firstOnly","overlapping","inside","recursive","path","childMatrix","inserted","notifySelf","_insertAt","insertBelow","sendToBack","bringToFront","appendTop","appendBottom","moveAbove","moveBelow","addTo","copyTo","reduce","namedArray","notifyParent","_dispose","replaceWith","reverseChildren","reverse","numChildren","isEditable","hasShadow","_getOrder","getList","list1","list2","hasChildren","isAbove","isBelow","isParent","isChild","isDescendant","isAncestor","isSibling","isGroupedWith","_applyRecursively","transformMatrix","fillColor","getFillColor","strokeColor","getStrokeColor","_transformContent","decomp","applyRecursively","globalToLocal","localToGlobal","parentToLocal","localToParent","fitBounds","itemRatio","rectRatio","newBounds","_setStyles","fillStyle","toCanvasStyle","strokeStyle","lineWidth","getStrokeWidth","strokeJoin","getStrokeJoin","strokeCap","getStrokeCap","miterLimit","getMiterLimit","lineJoin","lineCap","dashArray","getDashArray","dashOffset","getDashOffset","setLineDash","lineDashOffset","mozDash","mozDashOffset","blur","getShadowBlur","getShadowOffset","shadowColor","getShadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","parentStrokeMatrix","globalMatrix","mainCtx","itemOffset","prevOffset","normalBlend","nativeBlend","direct","dontStart","clip","_canComposite","pop","strokeMatrix","clipItem","globalAlpha","globalCompositeOperation","setTransform","_draw","dontFinish","getFillRule","process","_isUpdated","updateVersion","CompoundPath","updated","itemSelected","boundsSelected","positionSelected","_drawSelected","color","getSelectedColor","half","pos","beginPath","arc","deltas","delta","moveTo","lineTo","closePath","fillRect","hash","tween","easing","duration","Tween","_handleFrame","time","running","tweenTo","tweenFrom","_clipItem","_getClipItem","isClipped","setClipped","clipped","Shape","radius","_type","_size","_radius","setType","setRadius","getType","getShape","setShape","getRadius","rad","toPath","toShape","dontPaint","untransformed","isCircle","rx","ry","cx","cy","bezierCurveTo","getCornerCenter","halfSize","dir","corner","quadrant","isOnEllipseStroke","padding","vector","hitStroke","hitFill","strokeRadius","strokePadding","outer","inner","createShape","Circle","Ellipse","ellipse","_readEllipse","crossOrigin","_smoothing","image","object","getElementById","naturalHeight","setImage","setSource","_loaded","_image","canvas","_canvas","_setImage","copyCanvas","drawImage","_crossOrigin","_clear","getElement","getLoaded","u","getPpi","getImage","Event","setTimeout","DomEvent","load","error","complete","naturalWidth","_context","setCanvas","_change","setContext","context","toDataURL","Image","getCrossOrigin","setCrossOrigin","getSmoothing","setSmoothing","smoothing","getSubCanvas","getSubRaster","getAverageColor","PathItem","_sampleContext","clearRect","sampleSize","pixels","getImageData","channels","total","alpha","Color","getPixel","setPixel","components","_convert","_alpha","imageData","createImageData","putImageData","setImageData","disabled","DomElement","setPrefixed","setDefinition","SymbolDefinition","getDefinition","getSymbol","setSymbol","dontCenter","setItem","_dontCenter","place","values","segments","handles","ends","Segment","arg5","handleIn","handleOut","SegmentPoint","_point","hasHandles","_handleIn","_handleOut","_path","curve","_curves","_closed","getHandleIn","setHandleIn","getHandleOut","setHandleOut","isSmooth","clearHandles","oldSelection","getPath","getCurve","_segments","getCurves","getLocation","CurveLocation","_segment1","getNext","smooth","_first","_last","factor","getPrevious","p0","p1","p2","k","d1_a","d1_2a","d2_a","d2_2a","N","isLast","reversed","removeSegment","segment","interpolate","handleIn1","handleIn2","handleOut2","handleOut1","change","Curve","arg6","arg7","seg1","seg2","handle1","handle2","segment1","segment2","_segment2","getPoint1","getHandle1","getHandle2","getPoint2","_length","classify","setPoint1","setPoint2","setHandle1","setHandle2","getSegment1","getSegment2","getPoints","getLine","getPart","getPartLength","divideAt","location","divideAtTime","getTimeAt","_setHandles","subdivide","setHandles","splitAt","splitAtTime","getLocationAtTime","isTime","straight","h1","h2","y0","x3","y3","x4","y4","x5","y5","x6","y6","x7","y7","x8","y8","x9","y9","getMonoCurves","io","o0","o1","o2","o3","isStraight","v0","v3","getTimeOf","p3","getNearestTime","minDist","minT","refine","dist","step","flip","isFlatEnough","flatness","ux","uy","_addBounds","minPad","maxPad","s1","s2","isLinear","third","hasLength","isHorizontal","getTangentAtTime","isVertical","getLocationAt","_isTime","getParameterAt","getTimesWithTangent","tangent","getOffsetAtTime","getLocationOf","getOffsetOf","loc","getOffset","getParameterOf","getNearestLocation","getNearestPoint","methods","_evaluateMethods","getLengthIntegrand","ax","bx","ay","by","getIterations","normalized","len","d3","serpentine","t1","t2","hasRoots","t1Ok","t2Ok","f1","f2","ds","forward","rangeLength","diff","guess","getTangent","getWeightedTangent","getNormal","getWeightedNormal","getCurvature","getPeaks","addLocation","locations","overlap","excludeStart","excludeEnd","loc1","loc2","_intersection","clipConvexHull","hullTop","hullBottom","dMin","dMax","clipConvexHullPart","threshold","qx","qy","getCurveLineIntersections","getCurveIntersections","overlaps","getOverlaps","straight1","straight2","before","addCurveIntersections","recursion","calls","tMin","tMax","uMax","tMinClip","tMaxClip","q0x","q0y","q3x","q3y","dp0","dp1","dp2","dp3","hull","getConvexHull","dq0","dq1","dq2","dq3","dist1","dist2","distRatio","tMinNew","tMaxNew","uDiff","getSelfIntersection","info","getSquaredLineLength","straightBoth","l1","l2","pairs","matrix1","matrix2","_returnFirst","length1","length2","values1","values2","boundsCollisions","index1","curve1","collisions1","index2","curve2","den","times","t0","_overlap","_distance","_setCurve","_time","getPointAtTime","_next","_previous","_setPath","_version","_curve","_segment","_setSegment","getSegment","getTime","trySegment","_offset","_curveOffset","getParameter","getCurveOffset","getIntersection","getLastSegment","_ignoreOther","isTouching","inter","isCrossing","t1Inside","t2Inside","c4","c3","offsets","addOffsets","isInRange","getPointAt","v4","a3","a4","hasOverlap","merge","search","found","path1","path2","expanded","pathData","compound","first","isClockwise","setClockwise","clockwise","setPathData","previous","control","relative","getCoord","command","lower","move","cubicCurveTo","quadraticCurveTo","arcTo","winding","_getWinding","onPath","windingL","windingR","getCrossings","minLoc","isPath","itemsFrom","itemsTo","setClosed","paths1","paths2","matched","boundsOverlaps","pathBoundsOverlaps","closed","setSegments","_segmentSelection","_area","getSegments","fullySelected","last","_add","getFirstSegment","_countCurves","getFirstCurve","getLastCurve","isClosed","getPathData","_precision","curX","curY","prevX","prevY","inX","inY","outX","outY","addSegment","skipLine","segs","_adjustCurves","insertSegment","addSegments","insertSegments","removeSegments","_includeCurves","area","_selectSegments","newSelection","last1","last2","first2","first1","simplify","flatten","flattener","PathFlattener","PathFitter","fit","_default","loop","asymmetric","paddingLeft","paddingRight","knots","n_1","rf","hx","hy","seg3","topCenter","seg4","isArc","pt1","pt2","shape","pos2","end2","pos1","end1","start2","cap","numSegments","hitCurves","isCloseEnough","checkSegmentPoint","seg","anchor","checkSegmentPoints","addToArea","checkSegmentStroke","isJoin","_addBevelJoin","_addSquareCap","getOffsetsWithTangent","curveStart","curveTimes","drawSegments","drawSegment","dashLength","drawPart","drawHandles","pX","pY","miniSize","miniHalf","drawHandle","hX","hY","getCurrentSegment","moveBy","curveTo","through","extent","middle","large","rxSq","rySq","xSq","ySq","throughSide","centerSide","ext","inc","z","out","_in","lineBy","curveBy","parameter","cubicCurveBy","quadraticCurveBy","arcBy","prevCoords","processSegment","joinBounds","addPoint","addRound","addJoin","addCap","phi","isArea","normal1","getNormalAtTime","normal2","normal","joinPadding","joinRadius","SQRT2","paddingX","paddingY","xn","xx","yn","yx","ellipseSegments","createPath","createEllipse","bl","getBottomLeft","tl","tr","getTopRight","br","RoundRectangle","Oval","Arc","RegularPolygon","sides","three","Star","radius1","radius2","paths","getCurrentPath","check","operators","getPaths","preparePath","resolve","resolveCrossings","reorient","createResult","result","filterIntersection","traceBoolean","operation","trace","splitBoolean","_path1","_path2","operator","crossings","divideLocations","collectPaths","_overlapsOnly","curvesValues","curveCollisions","curveCollisionsMap","map","propagateWinding","_winding","tracePaths","reorientPaths","added","addPath","linkIntersections","clearCurveHandles","lookup","container","sorted","entry1","containerWinding","getInteriorPoint","entry2","clearLater","renormalizeLocs","prevCurve","prevTime","results","clearCurves","clearLookup","origTime","newCurve","getWinding","dontFlip","vPrev","vClose","curvesList","ia","pv","pa","po","paL","paR","pathWindingL","pathWindingR","onAnyPath","quality","handleCurve","a0","monoCurves","addWinding","windingPrev","a3Prev","totalLength","curveLength","operand","SQRT1_2","wind","pathWinding","otherPath","starts","isValid","_visited","isStart","visitPath","inter1","inter2","over1","over2","branch","visited","valid","finished","branches","getCrossingSegments","collectStarts","collect","nextInter","shift","hasOverlaps","hasCrossings","intersections","nonZero","intercepts","mv","mo0","mo3","maxRecursion","ignoreStraight","minSpan","addCurve","computeParts","halves","tMid","_get","fitCubic","tan1","tan2","uPrime","chordLengthParameterize","maxError","parametersInOrder","generateBezier","findMaxError","reparameterize","tanCenter","C","X","b0","b3","alpha1","alpha2","detC0C1","detC0X","detXC1","c0","segLength","eps","degree","maxDist","P","TextItem","content","_content","_lines","setContent","getContent","getCharacterStyle","setCharacterStyle","getParagraphStyle","setParagraphStyle","PointText","lines","leading","getLeading","font","getFontStyle","textAlign","getJustification","fillText","strokeText","numLines","justification","getTextWidth","colorCtx","gray","rgb","hsb","hsl","gradient","componentParsers","namedColors","transparent","hsbIndices","converters","g","achromatic","t3s","t3","properties","parser","_components","Gradient","_removeOwner","_addOwner","_properties","argType","converted","fromCSS","string","parseInt","trim","isHSL","component","turn","grad","willReadFrequently","parsers","stops","radial","getComponents","_canvasStyle","converter","convert","getAlpha","setAlpha","hasAlpha","col","isGradient","toCSS","hex","canvasGradient","_stops","origin","destination","highlight","inverse","_radial","createRadialGradient","createLinearGradient","addColorStop","_color","_types","_setOwner","components1","components2","setStops","setRadial","_owners","getStops","GradientStop","getRadial","stops1","stops2","rampPoint","setColor","setOffset","getRampPoint","setRampPoint","getColor","itemDefaults","fillRule","strokeScaling","shadowOffset","selectedColor","groupDefaults","fontFamily","fontWeight","textDefaults","_values","isColor","isPoint","applyToChildren","old","_dontMerge","childValue","Font","WindingRule","isStyle","style1","style2","secondary","defaults2","value1","value2","getFontSize","getFontWeight","getFontFamily","getFont","setFont","getPixelSize","handlePrefix","prefixes","suffix","prefix","getStyles","doc","nodeType","ownerDocument","defaultView","getComputedStyle","viewport","body","html","documentElement","getBoundingClientRect","clientLeft","clientTop","pageXOffset","scrollLeft","pageYOffset","scrollTop","getViewportBounds","innerWidth","clientWidth","innerHeight","clientHeight","isInvisible","isInView","getPrefixed","passive","addEventListener","removeEventListener","targetTouches","changedTouches","pageX","clientX","pageY","clientY","getTarget","srcElement","getRelatedTarget","relatedTarget","toElement","requestAnimationFrame","timer","nativeRequest","requested","callbacks","handleCallbacks","functions","callback","setInterval","getCanvasSize","setAttribute","_viewEvents","none","userDrag","userSelect","touchCallout","contentZooming","tapHighlightColor","_windowEvents","resize","setViewSize","Stats","_stats","stats","domElement","appendChild","_element","_pixelRatio","devicePixelRatio","_setElementSize","_viewSize","_views","_viewsById","_focused","_frameItems","_frameItemCount","_itemEvents","native","virtual","node","_animate","play","pause","_count","getAutoUpdate","setAutoUpdate","autoUpdate","update","now","Date","animate","_handleFrameItems","getPixelRatio","getViewSize","isVisible","parentNode","temp","createElement","removeChild","getZoom","setZoom","zoom","scrollBy","projectToView","viewToProject","getEventPoint","CanvasView","prevFocus","tempFocus","mousedown","mousemove","mouseup","dragging","mouseDown","pointerEnabled","msPointerEnabled","viewEvents","docEvents","mouseout","nodeName","handleMouseMove","scroll","_handleMouseEvent","downPoint","lastPoint","downItem","overItem","dragItem","clickItem","clickTime","dblClick","called","prevented","fallbacks","doubleclick","wasInView","itemEventsMap","click","mouseenter","mouseleave","itemEvents","hitItems","nativeMove","tool","inView","hitItem","mouse","substr","emitMouseEvent","drag","emitMouseEvents","down","up","cancelable","preventDefault","_handleKeyEvent","character","keyEvent","KeyEvent","sign","_resetState","prevPoint","stopItem","mouseEvent","stopped","MouseEvent","fallback","HTMLCanvasElement","deviceRatio","backingStoreRatio","firefox","prevFont","measureText","stopPropagation","getTimeStamp","timeStamp","getModifiers","Key","modifiers","metaFixMap","downKey","keyLookup","charLookup","keyMap","charMap","alt","meta","capsLock","space","option","mac","getKey","keyIdentifier","String","fromCharCode","keyCode","keydown","altKey","metaKey","ctrlKey","keypress","charCode","keyup","isDown","ToolEvent","_choosePoint","toolPoint","getLastPoint","_lastPoint","setLastPoint","getDownPoint","_downPoint","setDownPoint","getMiddlePoint","_middlePoint","setMiddlePoint","middlePoint","getDelta","_delta","setDelta","getCount","setCount","Tool","_moveCount","_downCount","getMinDistance","_minDistance","setMinDistance","minDistance","_maxDistance","getMaxDistance","setMaxDistance","maxDistance","getFixedDistance","setFixedDistance","distance","easings","linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","isFunction","_then","_startTime","state","_keys","_parsedKeys","_parseKeys","_from","_getState","_to","then","progress","getValue","__add","__subtract","__multiply","_setProperty","onUpdate","startTime","_getProperty","resolved","_resolveValue","_calculate","parsed","calculateBinary","Http","request","xhr","XMLHttpRequest","open","method","url","async","mimeType","overrideMimeType","onload","status","responseText","onerror","message","send","canvases","sr","sg","sb","sa","bg","bb","ba","dr","dg","db","getLum","setLum","mn","lmn","ln","mxl","getSat","setSat","md","modes","screen","overlay","darken","lighten","difference","exclusion","hue","saturation","luminosity","average","negation","mode","srcContext","dstContext","srcCanvas","dstData","SvgElement","svg","xmlns","xlink","attributeNamespace","href","attributes","namespace","setAttributeNS","tag","createElementNS","getAttributeNS","SvgStyles","true","false","property","attribute","toSVG","fromSVG","exportFilter","getTransform","coordinates","attrs","trans","exportGroup","childNode","exportSVG","exportShape","exporters","embedImages","matchShapes","definitionItem","viewBox","overflow","textContent","svgs","__id","typeId","exportDefinitions","defs","insertBefore","firstChild","XMLSerializer","serializeToString","exporter","onExport","reduceAttributes","exportGradient","gradientNode","getGradient","getOrigin","getDestination","getHighlight","fy","gradientUnits","stopColor","visibility","setOptions","rootSize","allowNull","allowPercent","defaultValue","defaultX","defaultY","convertValue","importGroup","nodes","childNodes","isClip","isDefs","currentStyle","applyAttributes","querySelectorAll","importNode","importPoly","importGradient","scaleToBounds","_scaleToBounds","importers","clippath","polygon","polyline","lineargradient","radialgradient","use","circle","text","switch","applyTransform","transforms","applyOpacity","gradientTransform","setVisible","display","percent","styles","group","tagName","isElement","nextSibling","importer","onImport","expandShapes","importSVG","DOMParser","parseFromString","File","reader","FileReader","readAsText","mod","acorn","inpt","inputLen","input","initTokenState","parseTopLevel","program","lastStart","lastEnd","tokPos","lastEndLoc","line_loc_t","inFunction","strict","labels","readToken","startNode","tokType","_eof","stmt","parseStatement","isUseStrict","setStrict","finishNode","sourceFile","tokStart","tokEnd","tokStartLoc","tokEndLoc","tokVal","tokRegexpAllowed","tokCurLine","tokLineStart","containsEsc","defaultOptions","ecmaVersion","strictSemicolons","allowTrailingCommas","forbidReserved","allowReturnOutsideFunction","onComment","ranges","directSourceFile","opt","getLineInfo","cur","lineBreak","lastIndex","column","raise","SyntaxError","raisedAt","tokenize","getToken","forceRegexp","startLoc","endLoc","jumpTo","reAllowed","skipSpace","empty","_num","_regexp","_string","_break","keyword","_case","beforeExpr","_catch","_continue","_debugger","_do","isLoop","_else","_finally","_for","_function","_if","_return","_switch","_throw","_try","_var","_while","_with","_new","_this","_null","atomValue","_true","_false","binop","keywordTypes","_bracketL","_bracketR","_braceL","_braceR","_parenL","_parenR","_comma","_semi","_colon","_dot","_question","_slash","_eq","isAssign","_assign","_incDec","postfix","isUpdate","_prefix","_logicalOR","_logicalAND","_bitwiseOR","_bitwiseXOR","_bitwiseAND","_equality","_relational","_bitShift","_plusMin","_multiplyModulo","kw","tokTypes","bracketL","bracketR","braceL","braceR","parenL","parenR","comma","semi","colon","question","slash","eq","eof","num","regexp","makePredicate","words","cats","compareTo","arr","cat","Function","isReservedWord3","isReservedWord5","isStrictReservedWord","isStrictBadIdWord","isKeyword","nonASCIIwhitespace","nonASCIIidentifierStartChars","nonASCIIidentifierStart","RegExp","nonASCIIidentifier","newline","isIdentifierStart","isIdentifierChar","finishToken","skipLineComment","ch","charCodeAt","skipBlockComment","readRegexp","readWord","tok","getTokenFromCode","readNumber","readInt","readString","quote","octal","readHexChar","finishOp","escaped","inClass","charAt","mods","readWord1","radix","startsWithDot","isFloat","word","esc","escStr","strct","lastIndexOf","node_t","node_loc_t","range","startNodeFrom","expression","eat","canInsertSemicolon","semicolon","unexpected","expect","checkLVal","expr","loopLabel","kind","switchLabel","sawDefault","starttype","isBreak","label","parseIdent","lab","parseParenExpression","parseFor","parseVar","declarations","parseForIn","parseExpression","parseFunction","consequent","alternate","argument","discriminant","cases","isCase","block","parseBlock","clause","guard","guardedHandlers","finalizer","maybeName","allowStrict","oldStrict","noIn","decl","noComma","parseMaybeAssign","expressions","parseMaybeConditional","parseExprOp","minPrec","prec","parseMaybeUnary","parseSubscripts","parseExprAtom","noCalls","computed","callee","parseExprList","raw","tokStartLoc1","tokStart1","elements","parseObj","sawGetSet","parsePropertyName","isGetSet","conflict","isStatement","params","oldInFunc","oldLabels","close","allowTrailingComma","allowEmpty","elts","liberal","binaryOperators","unaryOperators","__self","__$__","$__","compile","insertions","insertion","getCode","replaceCode","sourceMaps","paperFeatures","offsetCode","lineBreaks","getElementsByTagName","innerHTML","mappings","encodeVLQ","base64","safari","file","names","sourceRoot","sources","sourcesContent","operatorOverloading","moduleExports","walkAST","handleOverloading","between","parentType","exp","handleExports","declaration","specifiers","dec","specifier","preserveParens","sourceType","btoa","unescape","encodeURIComponent","toolHandlers","expose","compiled","script","head","createTextNode","__paperscript__","onResize","setOnResize","setOnFrame","loadScript","canvasId","scopeAttribute","baseURI","loadAll","readyState","calculateUnary","Symbol","PlacedSymbol","amd","$ebef8a20963d596b$export$56b48cc5d7560ffb","$ebef8a20963d596b$export$332f4d7bee38db93","$ebef8a20963d596b$export$f435f793048e7a0f","$ebef8a20963d596b$export$d53f8326294b31d8","$ebef8a20963d596b$export$b54c7ea7aabba5c8","$ebef8a20963d596b$export$a1aa2dd4ad0d3f6","$ebef8a20963d596b$export$866e20207bbc41f2","$ebef8a20963d596b$export$2c19a3e3b4008fff","$ebef8a20963d596b$export$268622f0f1cbc82b","$ebef8a20963d596b$export$13807d9ee5a34a42","$ebef8a20963d596b$export$7387db7caf96fcdb","$ebef8a20963d596b$export$7af82191547c5ff7","$ebef8a20963d596b$export$ba43bf67f3d48107","$ebef8a20963d596b$export$7acfa6ed01010e37","$ebef8a20963d596b$export$68e7b4c4d99215d9","$ebef8a20963d596b$export$2b5f701edfbd6f00","$ebef8a20963d596b$export$85c928794f8d04d4","$ebef8a20963d596b$export$50792b0e93539fde","$ebef8a20963d596b$export$83d89fbfd8236492","$ebef8a20963d596b$export$98e6a39c04603d36","$ebef8a20963d596b$export$61f24eb03dd7ce92","$ebef8a20963d596b$export$5f8c09e3ae6f64e1","$ebef8a20963d596b$var$astralIdentifierCodes","$ebef8a20963d596b$var$astralIdentifierStartCodes","$ebef8a20963d596b$var$nonASCIIidentifierStartChars","$ebef8a20963d596b$var$reservedWords","strictBind","$ebef8a20963d596b$var$ecma5AndLessKeywords","$ebef8a20963d596b$var$keywords$1","$ebef8a20963d596b$var$keywordRelationalOperator","$ebef8a20963d596b$var$nonASCIIidentifierStart","$ebef8a20963d596b$var$nonASCIIidentifier","$ebef8a20963d596b$var$isInAstralSet","astral","conf","startsExpr","updateContext","$ebef8a20963d596b$var$binop","$ebef8a20963d596b$var$beforeExpr","$ebef8a20963d596b$var$startsExpr","$ebef8a20963d596b$var$kw","privateId","questionDot","arrow","template","invalidTemplate","ellipsis","backQuote","dollarBraceL","incDec","logicalOR","logicalAND","bitwiseOR","bitwiseXOR","bitwiseAND","equality","relational","bitShift","plusMin","star","starstar","coalesce","_const","_super","_extends","_export","_import","_instanceof","_typeof","_void","_delete","$ebef8a20963d596b$var$nextLineBreak","$ebef8a20963d596b$var$skipWhiteSpace","$ebef8a20963d596b$var$ref","$ebef8a20963d596b$var$hasOwnProperty","$ebef8a20963d596b$var$toString","$ebef8a20963d596b$var$hasOwn","hasOwn","propName","$ebef8a20963d596b$var$isArray","$ebef8a20963d596b$var$regexpCache","$ebef8a20963d596b$var$wordsRegexp","$ebef8a20963d596b$var$codePointToString","$ebef8a20963d596b$var$loneSurrogate","nextBreak","onInsertedSemicolon","onTrailingComma","allowReserved","allowImportExportEverywhere","allowAwaitOutsideFunction","allowSuperOutsideMethod","allowHashBang","checkPrivateFields","onToken","$ebef8a20963d596b$var$warnedAboutEcmaVersion","$ebef8a20963d596b$var$functionFlags","generator","$ebef8a20963d596b$var$SCOPE_FUNCTION","startPos","$ebef8a20963d596b$var$getOptions","console","warn","tokens","token","comment","keywords","reserved","reservedWords","reservedStrict","reservedWordsStrict","reservedWordsStrictBind","lineStart","curLine","curPosition","lastTokEndLoc","lastTokStartLoc","lastTokStart","lastTokEnd","initialContext","exprAllowed","inModule","strictDirective","potentialArrowAt","potentialArrowInForAwait","yieldPos","awaitPos","awaitIdentPos","undefinedExports","scopeStack","enterScope","regexpState","privateNameStack","$ebef8a20963d596b$var$prototypeAccessors","inGenerator","inAsync","canAwait","allowSuper","allowDirectSuper","treatFunctionsAsVar","allowNewDotTarget","inClassStaticBlock","nextToken","currentVarScope","inClassFieldInit","currentThisScope","treatFunctionsAsVarInScope","currentScope","plugins","cls","parseExpressionAt","tokenizer","defineProperties","$ebef8a20963d596b$var$pp$9","$ebef8a20963d596b$var$literal","spaceAfter","isContextual","eatContextual","expectContextual","insertSemicolon","afterTrailingComma","notNext","$ebef8a20963d596b$var$DestructuringErrors","shorthandAssign","trailingComma","parenthesizedAssign","parenthesizedBind","doubleProto","checkPatternErrors","refDestructuringErrors","raiseRecoverable","parens","checkExpressionErrors","andThrow","checkYieldAwaitInDefaultParams","isSimpleAssignTarget","$ebef8a20963d596b$var$pp$8","adaptDirectivePrologue","$ebef8a20963d596b$var$loopLabel","$ebef8a20963d596b$var$switchLabel","isLet","skip","nextCh","ident","isAsyncFunction","after","topLevel","parseBreakContinueStatement","parseDebuggerStatement","parseDoStatement","parseForStatement","parseFunctionStatement","parseClass","parseIfStatement","parseReturnStatement","parseSwitchStatement","parseThrowStatement","parseTryStatement","parseVarStatement","parseWhileStatement","parseWithStatement","parseEmptyStatement","parseExpressionStatement","parseImport","parseExport","parseLabeledStatement","awaitAt","init$1","await","startsWithLet","isForOf","initPos","parseExprSubscripts","toAssignable","checkLValPattern","isAsync","declarationPosition","$ebef8a20963d596b$var$FUNC_STATEMENT","$ebef8a20963d596b$var$FUNC_HANGING_STATEMENT","exitScope","$ebef8a20963d596b$var$empty$1","parseCatchClauseParam","parseBindingAtom","simple","allowMissingInitializer","i$1","label$1","statementStart","createNewLexicalScope","exitStrict","isForIn","isFor","parseVarId","$ebef8a20963d596b$var$checkKeyName","statement","allowExpressionBody","forInit","initFunction","checkLValSimple","oldYieldPos","oldAwaitPos","oldAwaitIdentPos","parseFunctionParams","parseFunctionBody","parseBindingList","parseClassId","parseClassSuper","privateNameMap","enterClassBody","classBody","hadConstructor","parseClassElement","superClass","$ebef8a20963d596b$var$isPrivateNameConflicted","curr","static","exitClassBody","constructorAllowsSuper","keyName","isGenerator","isStatic","parseClassStaticBlock","isClassElementNameStart","lastValue","startNodeAt","parseClassElementName","isConstructor","parseClassMethod","parseClassField","parsePrivateIdent","allowsDirectSuper","parseMethod","$ebef8a20963d596b$var$SCOPE_CLASS_STATIC_BLOCK","declared","used","parseExportAllDeclaration","exported","parseModuleExportName","checkExport","parseExportDefaultDeclaration","shouldParseExportStatement","parseExportDeclaration","checkVariableExport","parseExportSpecifiers","spec","checkUnreserved","local","checkLocalExport","fNode","cNode","checkPatternExport","pat","list$1","elt","decls","parseExportSpecifier","parseImportSpecifiers","parseImportSpecifier","imported","parseImportDefaultSpecifier","parseImportNamespaceSpecifier","stringLiteral","parseLiteral","statements","isDirectiveCandidate","directive","$ebef8a20963d596b$var$pp$7","isBinding","toAssignableList","exprList","parseSpread","parseRestBinding","allowModifiers","rest","parseBindingListItem","parseAssignableListItem","elem","parseMaybeDefault","bindingType","checkClashes","isBind","declareName","checkLValInnerPattern","isExpr","preserveSpace","override","b_stat","b_expr","b_tmpl","p_stat","p_expr","q_tmpl","tryReadTemplateToken","f_stat","f_expr","f_expr_gen","f_gen","$ebef8a20963d596b$var$pp$6","curContext","braceIsBlock","prevType","inGeneratorContext","overrideContext","tokenCtx","statementParens","allowed","$ebef8a20963d596b$var$pp$5","checkPropClash","propHash","shorthand","afterLeftParse","parseYield","ownDestructuringErrors","oldParenAssign","oldTrailingComma","oldDoubleProto","parseExprOps","leftStartPos","leftStartLoc","logical","buildBinary","sawUnary","parseAwait","$ebef8a20963d596b$var$isLocalVariableAccess","$ebef8a20963d596b$var$isPrivateFieldAccess","node$1","maybeAsyncArrow","optionalChained","parseSubscript","optional","chainNode","shouldParseAsyncArrow","parseSubscriptAsyncArrow","parseArrowExpression","optionalSupported","node$2","quasi","parseTemplate","isTagged","forNew","canBeArrow","regex","pattern","parseParenAndDistinguishExpression","parseNew","parseExprImport","parseExprAtomDefault","parseDynamicImport","parseImportMeta","errorPos","bigint","shouldParseArrow","spreadStart","innerStartPos","innerStartLoc","lastIsComma","parseParenItem","innerEndPos","innerEndLoc","parseParenArrowList","finishNodeAt","par","$ebef8a20963d596b$var$empty","parseTemplateElement","cooked","tail","curElt","quasis","isAsyncProp","isPattern","parseProperty","parsePropertyValue","parseGetterSetter","paramCount","copyNode","isArrowFunction","isMethod","isExpression","useStrict","checkParams","nonSimple","isSimpleParamList","allowDuplicates","nameHash","re","parseIdentNode","delegate","$ebef8a20963d596b$var$pp$4","$ebef8a20963d596b$var$pp$3","$ebef8a20963d596b$var$Scope","var","lexical","redeclared","scope$1","scope$2","scope$3","$ebef8a20963d596b$var$SCOPE_TOP","$ebef8a20963d596b$var$pp$2","$ebef8a20963d596b$var$finishNodeAt","newNode","$ebef8a20963d596b$var$ecma9BinaryProperties","$ebef8a20963d596b$var$ecma10BinaryProperties","$ebef8a20963d596b$var$ecma12BinaryProperties","$ebef8a20963d596b$var$ecma11BinaryProperties","$ebef8a20963d596b$var$unicodeBinaryProperties","$ebef8a20963d596b$var$unicodeBinaryPropertiesOfStrings","$ebef8a20963d596b$var$unicodeGeneralCategoryValues","$ebef8a20963d596b$var$ecma9ScriptValues","$ebef8a20963d596b$var$ecma10ScriptValues","$ebef8a20963d596b$var$ecma11ScriptValues","$ebef8a20963d596b$var$ecma12ScriptValues","$ebef8a20963d596b$var$ecma13ScriptValues","$ebef8a20963d596b$var$unicodeScriptValues","$ebef8a20963d596b$var$data","$ebef8a20963d596b$var$i","$ebef8a20963d596b$var$list","$ebef8a20963d596b$var$buildUnicodeData","binary","binaryOfStrings","nonBinary","General_Category","Script","Script_Extensions","gc","sc","scx","$ebef8a20963d596b$var$pp$1","$ebef8a20963d596b$var$BranchID","separatedFrom","sibling","$ebef8a20963d596b$var$RegExpValidationState","validFlags","unicodeProperties","switchU","switchV","switchN","lastIntValue","lastStringValue","lastAssertionIsQuantifiable","numCapturingParens","maxBackReference","groupNames","backReferenceNames","branchID","$ebef8a20963d596b$var$isSyntaxCharacter","$ebef8a20963d596b$var$isControlLetter","$ebef8a20963d596b$var$isUnicodePropertyNameCharacter","$ebef8a20963d596b$var$isDecimalDigit","$ebef8a20963d596b$var$isHexDigit","$ebef8a20963d596b$var$hexToInt","$ebef8a20963d596b$var$isOctalDigit","unicodeSets","unicode","at","forceU","nextIndex","lookahead","advance","eatChars","chs","validateRegExpFlags","validateRegExpPattern","regexp_pattern","$ebef8a20963d596b$var$hasProp","_","regexp_disjunction","trackDisjunction","regexp_alternative","regexp_eatQuantifier","regexp_eatTerm","regexp_eatAssertion","regexp_eatAtom","regexp_eatExtendedAtom","lookbehind","noError","regexp_eatQuantifierPrefix","regexp_eatBracedQuantifier","regexp_eatDecimalDigits","regexp_eatPatternCharacters","regexp_eatReverseSolidusAtomEscape","regexp_eatCharacterClass","regexp_eatUncapturingGroup","regexp_eatCapturingGroup","regexp_eatAtomEscape","regexp_groupSpecifier","regexp_eatInvalidBracedQuantifier","regexp_eatExtendedPatternCharacter","regexp_eatSyntaxCharacter","regexp_eatGroupName","known","altID","regexp_eatRegExpIdentifierName","regexp_eatRegExpIdentifierStart","regexp_eatRegExpIdentifierPart","regexp_eatRegExpUnicodeEscapeSequence","regexp_eatBackReference","regexp_eatCharacterClassEscape","regexp_eatCharacterEscape","regexp_eatKGroupName","regexp_eatDecimalEscape","regexp_eatControlEscape","regexp_eatCControlLetter","regexp_eatZero","regexp_eatHexEscapeSequence","regexp_eatLegacyOctalEscapeSequence","regexp_eatIdentityEscape","regexp_eatControlLetter","regexp_eatFixedHexDigits","lead","leadSurrogateEnd","trail","regexp_eatHexDigits","regexp_eatUnicodePropertyValueExpression","regexp_eatUnicodePropertyName","regexp_eatUnicodePropertyValue","regexp_validateUnicodePropertyNameAndValue","regexp_eatLoneUnicodePropertyNameOrValue","nameOrValue","regexp_validateUnicodePropertyNameOrValue","regexp_classContents","regexp_classSetExpression","regexp_nonEmptyClassRanges","regexp_eatClassAtom","regexp_eatClassEscape","ch$1","regexp_eatClassControlLetter","subResult","regexp_eatClassSetRange","regexp_eatClassSetOperand","regexp_eatClassSetCharacter","regexp_eatClassStringDisjunction","regexp_eatNestedClass","result$1","regexp_classStringDisjunctionContents","regexp_classString","regexp_eatClassSetReservedPunctuator","regexp_eatOctalDigit","n1","n2","$ebef8a20963d596b$var$pp","$ebef8a20963d596b$var$stringToBigInt","BigInt","ignoreEscapeSequenceInKeyword","iterator","this$1$1","done","fullCharCodeAtPos","startSkip","readToken_dot","next2","readToken_slash","readToken_mult_modulo_exp","tokentype","readToken_pipe_amp","readToken_caret","readToken_plus_min","readToken_lt_gt","readToken_eq_excl","readToken_question","next2$1","readToken_numberSign","readRadixNumber","flagsStart","maybeLegacyOctalNumericLiteral","allowSeparators","isLegacyOctalNumericLiteral","lastCode","val$1","readCodePoint","codePos","invalidStringToken","chunkStart","readEscapedChar","$ebef8a20963d596b$var$INVALID_TEMPLATE_ESCAPE_ERROR","inTemplateElement","readTmplToken","readInvalidTemplateToken","inTemplate","octalStr","escStart","Parser","Position","SourceLocation","Node","TokenType","TokContext","tokContexts","Token","isNewLine","lineBreakG","$c8d2247b1550fb46$export$2e2bcd8739ae039","layout","tiles","$c8d2247b1550fb46$var$layout","solution","$939de03a128aab09$var$container","$939de03a128aab09$var$dialog","$939de03a128aab09$var$help","showModal","scrollIntoView","$f9704a9315db2cf5$export$2e2bcd8739ae039","selfOptions","pipes","pipe","pipeArg","processor","lastPipe","nextPipe","nextAfterChildren","hasResult","$db70c9b12a6f8bc7$export$2e2bcd8739ae039","filters","debug","filterName","exiting","resultCheck","msg","shouldHaveResult","should","noResult","$3edc4ef7a3d3a79b$export$2e2bcd8739ae039","setResult","exit","childName","root","$d440259d33c9db26$export$2e2bcd8739ae039","$d440259d33c9db26$var$cloneRegExp","regexMatch","cloned","$48416cc6139cbfbf$export$2e2bcd8739ae039","cloneDiffValues","$e645679292d8fd1a$export$2e2bcd8739ae039","$844ff08f78aab5df$export$2e2bcd8739ae039","$71e2687afe4daedd$export$32e2de1ca8818233","leftType","rightType","leftIsArray","rightIsArray","$71e2687afe4daedd$export$b17cd1eea2ef8348","nested","nonNestedDelta","regexArgs","$71e2687afe4daedd$export$9d101d90be8482a0","$7267f6eb1402e2a0$export$3b212405c262fd6e","_t","$7267f6eb1402e2a0$export$81d88d7d212bb18e","propertyFilter","$7267f6eb1402e2a0$export$b17cd1eea2ef8348","nestedDelta","objectDelta","$7267f6eb1402e2a0$export$575f4633982343e8","deltaWithChildren","$7267f6eb1402e2a0$export$9d101d90be8482a0","$7267f6eb1402e2a0$export$84a677efe7258d3b","$abe215c5cb589d56$var$defaultMatch","array1","array2","$abe215c5cb589d56$var$lengthMatrix","len1","len2","$abe215c5cb589d56$var$backtrack","subsequence","sequence","indices1","indices2","valueAtMatrixAbove","$abe215c5cb589d56$export$2e2bcd8739ae039","innerContext","$b7d0574ca28909b0$var$matchItems","objectHash","matchByPosition","hashCache1","hash1","hashCache2","hash2","$b7d0574ca28909b0$export$32e2de1ca8818233","matchContext","commonHead","commonTail","$b7d0574ca28909b0$var$arraysHaveMatchByRef","trimmed1","trimmed2","seq","removedItems","detectMove","arrays","includeValueOnMove","removedItemsLength","indexOnArray2","isMove","removeItemIndex1","$b7d0574ca28909b0$var$compare","numerically","numericallyBy","$b7d0574ca28909b0$export$b17cd1eea2ef8348","toRemove","toInsert","toModify","removedOrMovedIndex","numberIndex","indexDiff","removedValue","toInsertLength","toModifyLength","modification","$b7d0574ca28909b0$export$575f4633982343e8","$b7d0574ca28909b0$export$9d101d90be8482a0","newName","arrayMoveDelta","arrayDelta","$b7d0574ca28909b0$var$reverseArrayDeltaIndex","itemDelta","reverseIndex","deltaIndex","deltaItem","moveFromIndex","moveToIndex","$b7d0574ca28909b0$export$84a677efe7258d3b","$dcc7ee756dde640c$export$32e2de1ca8818233","$020c031f57b856e2$var$cachedDiffPatch","$020c031f57b856e2$var$getDiffMatchPatch","required","textDiff","diffMatchPatch","diff_match_patch_not_found","txt1","txt2","patch_toText","patch_make","patch","patch_apply","patch_fromText","textPatchFailed","$020c031f57b856e2$export$32e2de1ca8818233","minLength","$020c031f57b856e2$export$b17cd1eea2ef8348","textDiffDelta","$020c031f57b856e2$var$textDeltaReverse","lineTmp","header","headerRegex","$020c031f57b856e2$export$9d101d90be8482a0","$6a493659b38be18b$export$2e2bcd8739ae039","unpatch","$a39eeb69bf620de6$var$zero$1","buf","$a39eeb69bf620de6$var$extra_lbits","Uint8Array","$a39eeb69bf620de6$var$extra_dbits","$a39eeb69bf620de6$var$extra_blbits","$a39eeb69bf620de6$var$bl_order","$a39eeb69bf620de6$var$static_ltree","$a39eeb69bf620de6$var$static_dtree","$a39eeb69bf620de6$var$D_CODES$1","$a39eeb69bf620de6$var$_dist_code","$a39eeb69bf620de6$var$_length_code","$a39eeb69bf620de6$var$MAX_MATCH$1","$a39eeb69bf620de6$var$base_length","$a39eeb69bf620de6$var$base_dist","$a39eeb69bf620de6$var$StaticTreeDesc","static_tree","extra_bits","extra_base","elems","max_length","has_stree","$a39eeb69bf620de6$var$TreeDesc","dyn_tree","stat_desc","max_code","$a39eeb69bf620de6$var$d_code","$a39eeb69bf620de6$var$put_short","pending_buf","pending","$a39eeb69bf620de6$var$send_bits","bi_valid","$a39eeb69bf620de6$var$Buf_size","bi_buf","$a39eeb69bf620de6$var$send_code","tree","$a39eeb69bf620de6$var$bi_reverse","$a39eeb69bf620de6$var$bi_flush","$a39eeb69bf620de6$var$gen_bitlen","bits","xbits","stree","extra","bl_count","heap","heap_max","opt_len","static_len","$a39eeb69bf620de6$var$gen_codes","next_code","$a39eeb69bf620de6$var$MAX_BITS$1","$a39eeb69bf620de6$var$tr_static_init","$a39eeb69bf620de6$var$LENGTH_CODES$1","$a39eeb69bf620de6$var$L_CODES$1","$a39eeb69bf620de6$var$LITERALS$1","$a39eeb69bf620de6$var$init_block","dyn_ltree","dyn_dtree","bl_tree","$a39eeb69bf620de6$var$END_BLOCK","sym_next","$a39eeb69bf620de6$var$bi_windup","$a39eeb69bf620de6$var$smaller","depth","_n2","_m2","$a39eeb69bf620de6$var$pqdownheap","heap_len","$a39eeb69bf620de6$var$compress_block","ltree","dtree","lc","sym_buf","$a39eeb69bf620de6$var$build_tree","$a39eeb69bf620de6$var$scan_tree","curlen","prevlen","nextlen","max_count","min_count","$a39eeb69bf620de6$var$REP_3_6","$a39eeb69bf620de6$var$REPZ_3_10","$a39eeb69bf620de6$var$REPZ_11_138","$a39eeb69bf620de6$var$send_tree","$a39eeb69bf620de6$var$build_bl_tree","max_blindex","l_desc","d_desc","bl_desc","$a39eeb69bf620de6$var$BL_CODES$1","$a39eeb69bf620de6$var$send_all_trees","lcodes","dcodes","blcodes","rank","$a39eeb69bf620de6$var$detect_data_type","block_mask","$a39eeb69bf620de6$var$static_init_done","$a39eeb69bf620de6$var$_tr_stored_block$1","stored_len","$a39eeb69bf620de6$var$STORED_BLOCK","subarray","$a39eeb69bf620de6$var$trees","_tr_init","_tr_stored_block","_tr_flush_block","opt_lenb","static_lenb","level","strm","data_type","strategy","$a39eeb69bf620de6$var$STATIC_TREES","$a39eeb69bf620de6$var$DYN_TREES","_tr_tally","sym_end","_tr_align","$a39eeb69bf620de6$var$adler32_1","adler","$a39eeb69bf620de6$var$crcTable","Uint32Array","$a39eeb69bf620de6$var$makeTable","table","$a39eeb69bf620de6$var$crc32_1","crc","$a39eeb69bf620de6$var$messages","$a39eeb69bf620de6$var$constants$2","Z_NO_FLUSH","Z_PARTIAL_FLUSH","Z_SYNC_FLUSH","Z_FULL_FLUSH","Z_FINISH","Z_BLOCK","Z_TREES","Z_OK","Z_STREAM_END","Z_NEED_DICT","Z_ERRNO","Z_STREAM_ERROR","Z_DATA_ERROR","Z_MEM_ERROR","Z_BUF_ERROR","Z_NO_COMPRESSION","Z_BEST_SPEED","Z_BEST_COMPRESSION","Z_DEFAULT_COMPRESSION","Z_FILTERED","Z_HUFFMAN_ONLY","Z_RLE","Z_FIXED","Z_DEFAULT_STRATEGY","Z_BINARY","Z_TEXT","Z_UNKNOWN","Z_DEFLATED","$a39eeb69bf620de6$var$_tr_init","$a39eeb69bf620de6$var$_tr_stored_block","$a39eeb69bf620de6$var$_tr_flush_block","$a39eeb69bf620de6$var$_tr_tally","$a39eeb69bf620de6$var$_tr_align","$a39eeb69bf620de6$var$Z_NO_FLUSH$2","$a39eeb69bf620de6$var$Z_PARTIAL_FLUSH","$a39eeb69bf620de6$var$Z_FULL_FLUSH$1","$a39eeb69bf620de6$var$Z_FINISH$3","$a39eeb69bf620de6$var$Z_BLOCK$1","$a39eeb69bf620de6$var$Z_OK$3","$a39eeb69bf620de6$var$Z_STREAM_END$3","$a39eeb69bf620de6$var$Z_STREAM_ERROR$2","$a39eeb69bf620de6$var$Z_DATA_ERROR$2","$a39eeb69bf620de6$var$Z_BUF_ERROR$1","$a39eeb69bf620de6$var$Z_DEFAULT_COMPRESSION$1","$a39eeb69bf620de6$var$Z_FILTERED","$a39eeb69bf620de6$var$Z_HUFFMAN_ONLY","$a39eeb69bf620de6$var$Z_RLE","$a39eeb69bf620de6$var$Z_FIXED","$a39eeb69bf620de6$var$Z_DEFAULT_STRATEGY$1","$a39eeb69bf620de6$var$Z_UNKNOWN","$a39eeb69bf620de6$var$Z_DEFLATED$2","$a39eeb69bf620de6$var$err","errorCode","$a39eeb69bf620de6$var$rank","$a39eeb69bf620de6$var$zero","$a39eeb69bf620de6$var$slide_hash","wsize","w_size","hash_size","$a39eeb69bf620de6$var$HASH","hash_shift","hash_mask","$a39eeb69bf620de6$var$flush_pending","avail_out","output","pending_out","next_out","total_out","$a39eeb69bf620de6$var$flush_block_only","block_start","strstart","$a39eeb69bf620de6$var$put_byte","$a39eeb69bf620de6$var$putShortMSB","$a39eeb69bf620de6$var$read_buf","avail_in","next_in","wrap","total_in","$a39eeb69bf620de6$var$longest_match","cur_match","chain_length","max_chain_length","scan","best_len","prev_length","nice_match","limit","$a39eeb69bf620de6$var$MAX_MATCH","_win","wmask","w_mask","strend","scan_end1","scan_end","good_match","match_start","$a39eeb69bf620de6$var$fill_window","more","_w_size","window_size","ins_h","$a39eeb69bf620de6$var$deflate_stored","flush","min_block","pending_buf_size","have","high_water","$a39eeb69bf620de6$var$deflate_fast","hash_head","bflush","match_length","max_lazy_match","$a39eeb69bf620de6$var$MIN_MATCH","$a39eeb69bf620de6$var$deflate_slow","max_insert","prev_match","match_available","$a39eeb69bf620de6$var$deflate_rle","$a39eeb69bf620de6$var$deflate_huff","$a39eeb69bf620de6$var$Config","good_length","max_lazy","nice_length","max_chain","$a39eeb69bf620de6$var$configuration_table","$a39eeb69bf620de6$var$lm_init","$a39eeb69bf620de6$var$DeflateState","gzhead","gzindex","last_flush","w_bits","hash_bits","Uint16Array","$a39eeb69bf620de6$var$HEAP_SIZE","$a39eeb69bf620de6$var$MAX_BITS","lit_bufsize","$a39eeb69bf620de6$var$deflateStateCheck","$a39eeb69bf620de6$var$deflateResetKeep","$a39eeb69bf620de6$var$deflateReset","ret","$a39eeb69bf620de6$var$deflate_1$2","deflateInit2","windowBits","memLevel","deflateSetHeader","deflate","old_flush","level_flags","hcrc","beg","gzhead_extra","bstate","deflateEnd","deflateSetDictionary","dictLength","tmpDict","avail","$a39eeb69bf620de6$var$_has","$a39eeb69bf620de6$var$common","TypeError","flattenChunks","chunks","chunk","$a39eeb69bf620de6$var$STR_APPLY_UIA_OK","__","$a39eeb69bf620de6$var$_utf8len","$a39eeb69bf620de6$var$buf2binstring","$a39eeb69bf620de6$var$strings","string2buf","TextEncoder","encode","m_pos","str_len","buf_len","buf2string","TextDecoder","decode","utf16buf","c_len","utf8border","$a39eeb69bf620de6$var$zstream","$a39eeb69bf620de6$var$toString$1","$a39eeb69bf620de6$var$Z_NO_FLUSH$1","$a39eeb69bf620de6$var$Z_SYNC_FLUSH","$a39eeb69bf620de6$var$Z_FULL_FLUSH","$a39eeb69bf620de6$var$Z_FINISH$2","$a39eeb69bf620de6$var$Z_OK$2","$a39eeb69bf620de6$var$Z_STREAM_END$2","$a39eeb69bf620de6$var$Z_DEFAULT_COMPRESSION","$a39eeb69bf620de6$var$Z_DEFAULT_STRATEGY","$a39eeb69bf620de6$var$Z_DEFLATED$1","$a39eeb69bf620de6$var$Deflate$1","chunkSize","gzip","ended","dict","_dict_set","$a39eeb69bf620de6$var$deflate$1","deflator","flush_mode","_flush_mode","onData","onEnd","$a39eeb69bf620de6$var$inffast","_out","dmax","whave","wnext","s_window","hold","lcode","dcode","lmask","dmask","here","from_source","lencode","distcode","lenbits","distbits","sane","$a39eeb69bf620de6$var$lbase","$a39eeb69bf620de6$var$lext","$a39eeb69bf620de6$var$dbase","$a39eeb69bf620de6$var$dext","$a39eeb69bf620de6$var$inftrees","lens","lens_index","codes","table_index","work","incr","low","mask","here_bits","here_op","here_val","sym","drop","huff","$a39eeb69bf620de6$var$MAXBITS","offs","$a39eeb69bf620de6$var$Z_FINISH$1","$a39eeb69bf620de6$var$Z_BLOCK","$a39eeb69bf620de6$var$Z_TREES","$a39eeb69bf620de6$var$Z_OK$1","$a39eeb69bf620de6$var$Z_STREAM_END$1","$a39eeb69bf620de6$var$Z_NEED_DICT$1","$a39eeb69bf620de6$var$Z_STREAM_ERROR$1","$a39eeb69bf620de6$var$Z_DATA_ERROR$1","$a39eeb69bf620de6$var$Z_MEM_ERROR$1","$a39eeb69bf620de6$var$Z_BUF_ERROR","$a39eeb69bf620de6$var$Z_DEFLATED","$a39eeb69bf620de6$var$zswap32","$a39eeb69bf620de6$var$InflateState","havedict","wbits","ncode","nlen","ndist","lendyn","distdyn","back","was","$a39eeb69bf620de6$var$inflateStateCheck","$a39eeb69bf620de6$var$inflateResetKeep","Int32Array","$a39eeb69bf620de6$var$inflateReset","$a39eeb69bf620de6$var$inflateReset2","$a39eeb69bf620de6$var$virgin","$a39eeb69bf620de6$var$fixedtables","$a39eeb69bf620de6$var$updatewindow","$a39eeb69bf620de6$var$inflate_1$2","inflateReset","inflateInit2","inflate","put","last_bits","last_op","last_val","hbuf","order","inf_leave","xflags","extra_len","inflateEnd","inflateGetHeader","inflateSetDictionary","dictid","$a39eeb69bf620de6$var$gzheader","$a39eeb69bf620de6$var$toString","$a39eeb69bf620de6$var$Z_NO_FLUSH","$a39eeb69bf620de6$var$Z_FINISH","$a39eeb69bf620de6$var$Z_OK","$a39eeb69bf620de6$var$Z_STREAM_END","$a39eeb69bf620de6$var$Z_NEED_DICT","$a39eeb69bf620de6$var$Z_STREAM_ERROR","$a39eeb69bf620de6$var$Z_DATA_ERROR","$a39eeb69bf620de6$var$Z_MEM_ERROR","$a39eeb69bf620de6$var$Inflate$1","$a39eeb69bf620de6$var$inflate$1","inflator","last_avail_out","next_out_utf8","utf8str","Deflate","$a39eeb69bf620de6$var$Deflate","$a39eeb69bf620de6$var$deflate","deflateRaw","$a39eeb69bf620de6$var$deflateRaw","$a39eeb69bf620de6$var$gzip","constants","Inflate","$a39eeb69bf620de6$var$Inflate","$a39eeb69bf620de6$var$inflate","inflateRaw","$a39eeb69bf620de6$var$inflateRaw","ungzip","$a39eeb69bf620de6$var$ungzip","$b5f56319c358f3ac$export$2e2bcd8739ae039","high","$a1b574ae50a3409c$export$2e2bcd8739ae039","_clipped","_unclipped","$dde6d1b2374bf194$var$classToType","$dde6d1b2374bf194$export$2e2bcd8739ae039","$a4178f87e3b29207$export$2e2bcd8739ae039","keyOrder","$f6251d8fc05668f9$export$2e2bcd8739ae039","$182d78e9e3fcde9b$export$6b5c1ceb16d01dc3","$182d78e9e3fcde9b$export$96ec731ed4dcb222","$182d78e9e3fcde9b$export$8960430cfd85939f","$182d78e9e3fcde9b$export$af54f71c879f5ba9","$182d78e9e3fcde9b$export$e734282486210baf","$182d78e9e3fcde9b$export$460c4029b1a54a2e","$182d78e9e3fcde9b$export$914076c8150813e5","$27d02f92df8b8aca$export$2e2bcd8739ae039","format","autodetect","$bb1bda83a1b05571$export$2e2bcd8739ae039","chk","me","_rgb","$f47a5845f488ca15$var$chroma","$a82075d2de988d88$var$max","$a82075d2de988d88$export$2e2bcd8739ae039","cmyk","$e82c9dc4a9dbeaf2$var$rnd","$e82c9dc4a9dbeaf2$export$2e2bcd8739ae039","hsla","$53ea4ceb7810db81$export$2e2bcd8739ae039","minRgb","maxRgb","Number","$31bfe7b71f09b5a2$var$round","$31bfe7b71f09b5a2$export$2e2bcd8739ae039","rgba","$524a16f6306980c8$var$round","$524a16f6306980c8$export$2e2bcd8739ae039","h_","$e344cee01ed9f233$var$RE_RGB","$e344cee01ed9f233$var$RE_RGBA","$e344cee01ed9f233$var$RE_RGB_PCT","$e344cee01ed9f233$var$RE_RGBA_PCT","$e344cee01ed9f233$var$RE_HSL","$e344cee01ed9f233$var$RE_HSLA","$e344cee01ed9f233$var$round","$e344cee01ed9f233$var$css2rgb","css","named","gl","$654dee97171210a1$var$floor","$5e89a95a5ed6a78f$export$2e2bcd8739ae039","hcg","_g","$85adcad71208db0a$var$RE_HEX","$85adcad71208db0a$var$RE_HEXA","$85adcad71208db0a$export$2e2bcd8739ae039","$b0369901a72fa4a8$var$round","$b0369901a72fa4a8$export$2e2bcd8739ae039","hxa","$8a1d177f60a50dea$var$cos","$5f9071b21d08ea41$var$min","$5f9071b21d08ea41$var$sqrt","$5f9071b21d08ea41$var$acos","$5f9071b21d08ea41$export$2e2bcd8739ae039","min_","hsi","$3c0848b490de9de7$var$floor","$1a578ab0929d5130$var$min","$1a578ab0929d5130$var$max","$1a578ab0929d5130$export$2e2bcd8739ae039","max_","hsv","$9f09c56d774b4699$export$2e2bcd8739ae039","Kn","Xn","Yn","Zn","$a727d2bcf47fabfe$var$pow","$a727d2bcf47fabfe$var$xyz_rgb","$a727d2bcf47fabfe$var$lab_xyz","$a727d2bcf47fabfe$export$2e2bcd8739ae039","$b0e117636fd9be6a$var$pow","$b0e117636fd9be6a$var$rgb_xyz","$b0e117636fd9be6a$var$xyz_lab","$b0e117636fd9be6a$var$rgb2xyz","$b0e117636fd9be6a$export$2e2bcd8739ae039","$b79ba082eb8708d9$var$sin","$b79ba082eb8708d9$var$cos","$b79ba082eb8708d9$export$2e2bcd8739ae039","$0c9c574f1e44475d$export$2e2bcd8739ae039","L","b_","$e57ecff761ab2335$var$sqrt","$e57ecff761ab2335$var$atan2","$e57ecff761ab2335$var$round","$e57ecff761ab2335$export$2e2bcd8739ae039","$79602498756cb103$export$2e2bcd8739ae039","lch","hcl","$183ad814a5431bd1$export$2e2bcd8739ae039","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","laserlemon","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrod","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","maroon2","maroon3","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","purple2","purple3","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","$391481bf8e32fbf4$export$2e2bcd8739ae039","$0fc4ff3a69f1835c$var$round","rnd","$81bee5f7016b70e4$var$log","$81bee5f7016b70e4$export$2e2bcd8739ae039","kelvin","$01d768723c872abb$var$round","$01d768723c872abb$export$2e2bcd8739ae039","minTemp","maxTemp","temperature","$c345ec02b9eee2af$var$pow","$c345ec02b9eee2af$var$sign","$c345ec02b9eee2af$export$2e2bcd8739ae039","$c345ec02b9eee2af$var$lrgb2rgb","cbrt","$2bf565903a2a0dad$var$cbrt","$2bf565903a2a0dad$var$pow","$2bf565903a2a0dad$var$sign","$2bf565903a2a0dad$export$2e2bcd8739ae039","lr","lg","lb","$2bf565903a2a0dad$var$rgb2lrgb","oklab","$8c5968f4bc9feede$export$2e2bcd8739ae039","oklch","mutate","brighten","darker","brighter","mc","channel","$b766f14343354a2f$var$pow","luminance","lum","cur_lum","max_iter","lm","$b766f14343354a2f$var$rgb2luminance","$b766f14343354a2f$var$luminance_x","$d5f5bd48f9116d10$export$2e2bcd8739ae039","$45f969e3d18859b0$export$2e2bcd8739ae039","col1","col2","mix","premultiply","saturate","desaturate","tint","shade","xyz0","xyz1","$a780af1baad86134$var$sqrt","$a780af1baad86134$var$pow","lrgb","z1","z2","$75e4d77122b44259$export$2e2bcd8739ae039","hue0","hue1","sat0","sat1","lbv0","lbv1","sat","lbv","dh","$e8496608798e9a40$var$lch","$26560e83bce370ac$var$pow","$26560e83bce370ac$var$sqrt","$26560e83bce370ac$var$PI","$26560e83bce370ac$var$cos","$26560e83bce370ac$var$sin","$26560e83bce370ac$var$atan2","$26560e83bce370ac$var$_average_lrgb","colors","xyz","$75780fa3766b44bc$var$pow","$75780fa3766b44bc$export$2e2bcd8739ae039","_mode","_nacol","_spread","_domain","_pos","_padding","_classes","_colors","_min","_max","_correctLightness","_colorCache","_useCache","_gamma","setColors","brewer","resetCache","getClass","tMapLightness","tMapDomain","bypassMap","classes","analyze","limits","domain","tOut","tBreaks","every","_m","_o","spread","correctLightness","L0","L1","pol","L_actual","L_ideal","L_diff","numColors","dm","dd","$75780fa3766b44bc$var$__range__","inclusive","ascending","samples","asc","gamma","nodata","$539036394d03ea29$var$binom_row","row","newrow","$539036394d03ea29$var$bezier","I","lab0","lab1","lab2","lab3","labs","RangeError","$34827c7f280f9299$var$blend","$34827c7f280f9299$var$blend_f","$34827c7f280f9299$var$each","dodge","burn","$1bed12c3a97a3e0c$var$pow","$1bed12c3a97a3e0c$var$sin","$1bed12c3a97a3e0c$var$cos","$16fd1f89a3bbd5b2$var$floor","$16fd1f89a3bbd5b2$var$random","$b87bd5af2aa04bc2$var$log","$b87bd5af2aa04bc2$var$pow","$b87bd5af2aa04bc2$var$floor","$b87bd5af2aa04bc2$var$abs","$b87bd5af2aa04bc2$export$7cbcccfbecde6416","MAX_VALUE","$b87bd5af2aa04bc2$export$e331ca4ad6a82555","min_log","LOG10E","max_log","pb","pr","cluster","assignments","clusterSizes","repeat","nb_iters","centroids","best","mindist","newCentroids","kClusters","tmpKMeansBreaks","$31a30910f0b90a9f$var$sqrt","$31a30910f0b90a9f$var$pow","$31a30910f0b90a9f$var$min","$31a30910f0b90a9f$var$max","$31a30910f0b90a9f$var$atan2","$31a30910f0b90a9f$var$abs","$31a30910f0b90a9f$var$cos","$31a30910f0b90a9f$var$sin","$31a30910f0b90a9f$var$exp","$31a30910f0b90a9f$var$PI","$ed8535843d88b5f3$var$colorbrewer","OrRd","PuBu","BuPu","Oranges","BuGn","YlOrBr","YlGn","Reds","RdPu","Greens","YlGnBu","Purples","GnBu","Greys","YlOrRd","PuRd","Blues","PuBuGn","Viridis","Spectral","RdYlGn","RdBu","PiYG","PRGn","RdYlBu","BrBG","RdGy","PuOr","Set2","Accent","Set1","Set3","Dark2","Paired","Pastel2","Pastel1","cnt","ci","xyz2","bezier","blend","cubehelix","rotations","lightness","dl","fract","amp","cos_a","sin_a","$16fd1f89a3bbd5b2$var$digits","contrast","deltaE","Kl","Kc","Kh","rad2deg","deg2rad","deg","L2","avgL","avgC","C1","G","a1p","a2p","C1p","C2p","avgCp","arctan1","arctan2","h1p","h2p","avgHp","T","deltaHp","deltaCp","sl","sh","deltaTheta","Rt","deltaL","sum_sq","scales","cool","hot","$hvNIE","$3e2f0fa58ba587b4$var$location","$3e2f0fa58ba587b4$export$281ad3752a540efe","URLSearchParams","$3e2f0fa58ba587b4$export$128fa18b7194ef","URL","$3e2f0fa58ba587b4$export$1bb10639a2cd4297","$3e2f0fa58ba587b4$export$9cb4719e2e525b7a","$3e2f0fa58ba587b4$export$afb15ede80c42aab","binString","atob","codePointAt","$3e2f0fa58ba587b4$export$4e633de97d65d1c8","fromCodePoint","$3e2f0fa58ba587b4$export$9a00dee1beb8f576","$3e2f0fa58ba587b4$export$6e5538615c060df7","findLast","xv","yv","$3e2f0fa58ba587b4$export$e3bf03cc76d2c0a1","detail","dispatchEvent","CustomEvent","$3e2f0fa58ba587b4$export$c23f9d3341b5fd07","pointA","pointB","maxDiff","$3e2f0fa58ba587b4$export$3cb91a81090b9eee","span","classList","backgroundColor","title","$3e2f0fa58ba587b4$export$6d3741128bd5bb7d","some","maxColorIndex","plus","$3e2f0fa58ba587b4$export$79376507b09a66f","$3e2f0fa58ba587b4$export$f6292fcace2a1886","$3e2f0fa58ba587b4$export$78da85ac75754159","$3e2f0fa58ba587b4$export$bd58da2e19cd17da","direction","$3e2f0fa58ba587b4$export$c43d7a950587702b","$3e2f0fa58ba587b4$export$35d6177dfa7903b5","toPaperJs","$3e2f0fa58ba587b4$export$43941667eccc070","$3e2f0fa58ba587b4$export$8793edee2d425525","base64decode","base64encode","$f1fc5431671d3192$var$console","$f1fc5431671d3192$var$consoleDebug","$f1fc5431671d3192$export$1c9f709888824e05","has","$ca914ef976dd611b$export$2e382909194b1aab","toAxialCoordinates","$fe48dca2d228a457$export$c56d3ccff2456440","isNeighbor","neighbor","directions","toOffsetCoordinates","axial","$ca3880ece69ea231$export$654f18991713c8c4","setState","getState","structuredClone","updateState","updater","Events","Update","freeze","$4b738c6f333de3e1$export$6d08773d2e66f8f2","immutable","sortOrder","configuration","crypto","randomUUID","otherItem","getColorElements","getCompoundPath","collidable","onTap","onCollision","collisionStep","onDeselected","onInitialization","onSelected","Types","fromEntries","$8ee30938c07750df$export$b20b719ec758a20f","$97686966a3fec53f$export$94affb487e701bf2","includes","unset","$4f41d74d72b0a295$var$navigator","$4f41d74d72b0a295$export$b0d759d807f751d4","CacheKeys","onPointerUp","onPointerDown","onPointerMove","onMouseWheel","offsetX","offsetY","deltaY","onPan","pan","GestureKeys","Pan","onPinch","pointer0","pointer1","point0","pinch","Pinch","Down","pointerId","Move","Gesture","Tap","maxZoom","minZoom","touchPoint","touchOffset","zoomOffset","vibrate","canVibrate","$e1537b299a08dd1a$export$3e25e887b7a5b37b","$945dd0df0b3cc6c8$export$4f13f83fd8bb1dac","Immutable","Lock","RotateLeft","RotateRight","Swap","ToggleOff","ToggleOn","All","ByName","icon","$890ebaa4ee6ae241$var$modifiers","$890ebaa4ee6ae241$var$uniqueId","$890ebaa4ee6ae241$export$5acd5e6efc9671b7","tile","modifier","beam","$644ce6e6cc7a5abb$export$235cb65c20ad2b7","MaxModifiers","li","dataset","removeModifier","addModifier","moveFilter","button","onToggle","clearTimeout","toggle","Invoked","Moved","$6b5ed925b0615466$export$e49a5ad3dd6df925","movable","$b65a2f5625db2a92$export$a9753b1ffc289935","Mask","onMask","beforeModify","onUnmask","afterModify","tileFilter","moveItems","moved","ignoreItemTypes","puzzle","unmask","updateSelectedTile","fromTile","toTile","wall","$6b5ed925b0615466$export$1288a4f7eae890b0","SuperClass","removeItem","addItem","onMove","$0b4b4185562e5b04$export$fd55ce593607084a","connected","onAdd","onRemove","pathIndex","segmentIndex","$0b4b4185562e5b04$export$81262d6ca0162a3","Class","find","Reflect","construct","Collision","collision","Filter","MergeInto","mergeInto","MergeWith","mergeWith","Portal","portal","entryPortal","exitPortal","Reflector","reflector","TerminusConnection","terminusConnection","terminus","opening","$b9391c61de18417d$export$ec91da630f36d5ea","parameters","circumradius","currentStep","nextStep","$94a7df60cff9f28b$export$152db69a76b6b79e","Names","rotatable","$94a7df60cff9f28b$export$781de49a9284d537","rotationDegrees","getMaxRotation","getDirection","rotateGroup","$9a8fa6fd25778435$export$602eac185826482c","ring","pointer","portalState","entryDirection","existing","exitPortals","addStep","validTile","getExitDirection","exitPortalId","steps","keepDelta","$90288bbda8776a08$export$bea8ebba691c5813","toggled","toggleable","$90288bbda8776a08$export$cdb1ce8c4b8a5afe","$74097bbf14237549$export$88c9f72b40fcdd85","itemIds","withSelf","mirror","$74097bbf14237549$export$20aab196240bbdf2","stepIndex","beams","getColors","$5625a4a7d65ce9b8$export$693b33588b3dd9d8","lastStepIndex","getLastStepIndex","currentPath","previousStep","getCollision","getStep","getOpening","getSteps","getMergeWith","openings","isComplete","isOn","isConnected","isPending","onBeamUpdated","beamLastStep","lastStep","isSelf","findLastIndex","stepPoint","nextStepPoint","isSameSide","isSameDirection","getBeamsUpdateDelay","onModifierInvoked","findIndex","startDirection","currentStepIndex","inradius","getTile","updateStep","nextStepIndex","existingNextStep","lastPathIndex","lastSegmentIndex","collisionIndex","timeout","updatedStep","firstPoint","Set","curveLocation","intersection","drawDebugPoint","spliceIndex","deletedSteps","Connection","Merge","$7a376349f5a360a3$export$3ad31a823e05e6fb","flatMap","ui","directionFrom","onConnection","onDisconnection","connect","disconnect","Disconnection","$833b17827b418a5b$export$edf083caefbff926","midLine","directionTo","beamDirection","reflectorDirection","beamAngle","$3e2f0fa58ba587b4$export$1a23559e655dacdd","original","reflectorAngle","$62983545fa7e5cd3$export$cb4338d67ffa8a1d","walls","firstSegment","hexagon","nextDirection","lastSegment","$1f91e29af141027d$export$4b0ab9e4fad38dea","$7b23092ccd74af51$export$5b9db7ce80343746","$7e06163ac6e6af1b$export$bdb5f0a1b77546f4","toItems","fromItems","$cc224f8bd3ed022c$export$1d55952676fae128","lock","swap","icons","selectedTile","Deselected","deselectedTile","teardown","startingOffsetX","startingOffsetY","dashWidth","Styles","edit","Selected","$941a4b5ec82b485b$export$c84671f46d6a1ca","layers","tileSize","oddR","widestRow","rowByAxial","rowByOffset","rowOffset","getTileByAxial","getTileByOffset","getNeighboringTile","evenR","$4029f0d6ba5141b4$export$991dcf7284de63d","$729c2b05fa2dedeb$export$88c9f72b40fcdd85","$df74fd5b33098157$var$puzzles","test_infinite_loop","test_layout","test_portal","test_reflector","$df74fd5b33098157$var$traverse","$df74fd5b33098157$var$PuzzleGroup","firstId","lastId","nextId","previousId","$df74fd5b33098157$export$f68871ba002ca835","startsWith","titles","$0ca0e02f0a4bc377$var$history","history","$0ca0e02f0a4bc377$var$localStorage","localStorage","$0ca0e02f0a4bc377$export$7254cc27399e90bd","deltasIndex","canRedo","canReset","canUndo","getCurrent","getTitle","getSelectedTile","moves","redo","clearCache","setSelectedTile","undo","newState","pushState","fromEncoded","fromId","ParamKeys","pathSegments","localState","cachedVersion","originalVersion","$8010a1f4ac1afb69$export$a337a674d761bdc2","condition","replaceChildren","isSolved","isMet","$8010a1f4ac1afb69$var$SolutionCondition","connections","$8010a1f4ac1afb69$var$Connections","$8010a1f4ac1afb69$var$Moves","completed","connectionId","connectionIndex","connection","Operators","equalTo","Updated","greaterThan","lessThan","$b65a2f5625db2a92$var$elements","footer","footerMessage","headerMessage","main","puzzleId","querySelector","solved","delay","select","centerOnTile","clearDebugPoints","previouslySelectedTile","collisionId","addBeam","otherBeam","cause","ClassNames","Icon","Solved","viewSize","Loaded","selectedTileId","className","Disabled","disable","innerText","colorElements","Active","rounded","$250751c5950a3842$var$script","$250751c5950a3842$var$dataLayer","dataLayer","$250751c5950a3842$var$gtag","$e22b5ab31fbd25da$var$doorbellOptions","doorbellOptions","appKey","hideButton","$e22b5ab31fbd25da$var$script","$2fd5a75c703b0f49$var$puzzle","$2fd5a75c703b0f49$var$beaming","beaming"],"version":3,"file":"index.d572c77b.js.map"} \ No newline at end of file diff --git a/index.f6478a7d.js.map b/index.f6478a7d.js.map deleted file mode 100644 index 36af0f2..0000000 --- a/index.f6478a7d.js.map +++ /dev/null @@ -1 +0,0 @@ -{"mappings":"IuCkLI,EACA,EACA,EAkyJA,EAAQ,E,S,E,C,C,C,C,C,C,C,E,O,c,C,E,E,C,I,E,I,E,W,C,E,a,C,C,E,C,S,E,C,E,O,G,E,U,C,E,O,C,C,C,I,E,A,a,O,W,W,A,a,O,K,K,A,a,O,O,O,A,a,O,O,O,C,E,E,C,E,E,C,E,E,E,iB,A,O,I,A,C,E,S,C,E,G,K,E,O,C,C,E,C,O,C,G,K,E,C,I,E,C,C,E,A,Q,C,C,E,C,I,E,C,G,E,Q,C,C,E,O,C,C,E,C,E,E,I,C,E,O,C,E,E,O,E,E,O,A,C,I,E,A,M,uB,E,I,O,E,I,C,mB,C,C,E,Q,C,S,C,C,C,E,C,C,E,C,C,E,E,iB,C,G,I,E,E,Q,C,E,Q,S,C,C,C,EtCt9JZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BC,EAEW,AAAA,CAAA,SAAS,CAAI,CAAE,CAAS,EAGpC,IAAI,EAAS,AADb,CAAA,EAAO,GAAP,EAAA,QAAA,EACkB,MAAM,CACvB,EAAW,EAAK,QAAQ,CAErB,EAAO,IAAI,WACd,IAAI,EAAS,wCACZ,EAAQ,EAAE,CACV,EAAQ,EAAM,KAAK,CACnB,EAAS,OAAO,MAAM,CACtB,EAAW,OAAO,wBAAwB,CAC1C,EAAS,OAAO,cAAc,CAE9B,EAAU,EAAM,OAAO,EAAI,SAAS,CAAI,CAAE,CAAI,EAC7C,IAAK,IAAI,EAAI,EAAG,EAAI,IAAI,CAAC,MA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C,iBAAkB,AAAC,IAC3C,GAAgB,UAAU,CAAC,QAAQ,CAAG,EAAM,MAAM,CAAC,KAAK,CAAC,KAAK,EAChE,GvJLA,MAAM,GAAS,IAAI,GACb,GAAU,CAAE,MAAA,GAAO,OAAA,EAAO,CAGhC,CAAA,GAAQ,YAAY,CAAG,SAAU,CAAC,CAAE,CAAC,EACnC,OAAO,GAAO,YAAY,CAAC,IAAI,GAAkB,EAAG,GACtD,EAEA,GAAQ,gBAAgB,CAAG,GAAO,gBAAgB,CAAC,IAAI,CAAC,IACxD,GAAQ,cAAc,CAAG,SAAU,CAAC,CAAE,CAAC,CAAE,CAAK,EAC5C,OAAO,GAAO,cAAc,CAAC,IAAI,GAAA,KAAI,CAAE,EAAG,GAAI,EAChD,EAGA,OAAO,OAAO,CAAG","sources":["","node_modules/paper/dist/paper-full.js","node_modules/@parcel/node-resolver-core/lib/_empty.js","node_modules/acorn/dist/acorn.mjs","src/puzzles/001.json","src/puzzles/002.json","src/puzzles/003.json","src/puzzles/004.json","src/puzzles/005.json","src/puzzles/006.json","src/puzzles/007.json","src/puzzles/008.json","src/puzzles/009.json","src/puzzles/010.json","src/puzzles/011.json","src/puzzles/012.json","src/puzzles/test/infiniteLoop.json","src/puzzles/test/layout.js","src/puzzles/test/portal.json","src/puzzles/test/reflector.json","src/index.js","src/info.js","src/components/debug.js","src/components/util.js","node_modules/jsondiffpatch/lib/index.js","node_modules/jsondiffpatch/lib/diffpatcher.js","node_modules/jsondiffpatch/lib/processor.js","node_modules/jsondiffpatch/lib/pipe.js","node_modules/jsondiffpatch/lib/contexts/diff.js","node_modules/jsondiffpatch/lib/contexts/context.js","node_modules/jsondiffpatch/lib/clone.js","node_modules/jsondiffpatch/lib/contexts/patch.js","node_modules/jsondiffpatch/lib/contexts/reverse.js","node_modules/jsondiffpatch/lib/filters/trivial.js","node_modules/jsondiffpatch/lib/filters/nested.js","node_modules/jsondiffpatch/lib/filters/arrays.js","node_modules/jsondiffpatch/lib/filters/lcs.js","node_modules/jsondiffpatch/lib/filters/dates.js","node_modules/jsondiffpatch/lib/filters/texts.js","node_modules/pako/dist/pako.esm.mjs","node_modules/chroma-js/index.js","node_modules/chroma-js/src/chroma.js","node_modules/chroma-js/src/Color.js","node_modules/chroma-js/src/utils/index.js","node_modules/chroma-js/src/utils/clip_rgb.js","node_modules/chroma-js/src/utils/limit.js","node_modules/chroma-js/src/utils/type.js","node_modules/chroma-js/src/utils/unpack.js","node_modules/chroma-js/src/utils/last.js","node_modules/chroma-js/src/io/input.js","node_modules/chroma-js/src/version.js","node_modules/chroma-js/src/io/cmyk/index.js","node_modules/chroma-js/src/io/cmyk/cmyk2rgb.js","node_modules/chroma-js/src/io/cmyk/rgb2cmyk.js","node_modules/chroma-js/src/io/css/index.js","node_modules/chroma-js/src/io/css/rgb2css.js","node_modules/chroma-js/src/io/css/hsl2css.js","node_modules/chroma-js/src/io/hsl/rgb2hsl.js","node_modules/chroma-js/src/io/css/css2rgb.js","node_modules/chroma-js/src/io/hsl/hsl2rgb.js","node_modules/chroma-js/src/io/gl/index.js","node_modules/chroma-js/src/io/hcg/index.js","node_modules/chroma-js/src/io/hcg/hcg2rgb.js","node_modules/chroma-js/src/io/hcg/rgb2hcg.js","node_modules/chroma-js/src/io/hex/index.js","node_modules/chroma-js/src/io/hex/hex2rgb.js","node_modules/chroma-js/src/io/hex/rgb2hex.js","node_modules/chroma-js/src/io/hsi/index.js","node_modules/chroma-js/src/io/hsi/hsi2rgb.js","node_modules/chroma-js/src/io/hsi/rgb2hsi.js","node_modules/chroma-js/src/io/hsl/index.js","node_modules/chroma-js/src/io/hsv/index.js","node_modules/chroma-js/src/io/hsv/hsv2rgb.js","node_modules/chroma-js/src/io/hsv/rgb2hsv.js","node_modules/chroma-js/src/io/lab/index.js","node_modules/chroma-js/src/io/lab/lab2rgb.js","node_modules/chroma-js/src/io/lab/lab-constants.js","node_modules/chroma-js/src/io/lab/rgb2lab.js","node_modules/chroma-js/src/io/lch/index.js","node_modules/chroma-js/src/io/lch/lch2rgb.js","node_modules/chroma-js/src/io/lch/lch2lab.js","node_modules/chroma-js/src/io/lch/hcl2rgb.js","node_modules/chroma-js/src/io/lch/rgb2lch.js","node_modules/chroma-js/src/io/lch/lab2lch.js","node_modules/chroma-js/src/io/named/index.js","node_modules/chroma-js/src/colors/w3cx11.js","node_modules/chroma-js/src/io/num/index.js","node_modules/chroma-js/src/io/num/num2rgb.js","node_modules/chroma-js/src/io/num/rgb2num.js","node_modules/chroma-js/src/io/rgb/index.js","node_modules/chroma-js/src/io/temp/index.js","node_modules/chroma-js/src/io/temp/temperature2rgb.js","node_modules/chroma-js/src/io/temp/rgb2temperature.js","node_modules/chroma-js/src/io/oklab/index.js","node_modules/chroma-js/src/io/oklab/oklab2rgb.js","node_modules/chroma-js/src/io/oklab/rgb2oklab.js","node_modules/chroma-js/src/io/oklch/index.js","node_modules/chroma-js/src/io/oklch/oklch2rgb.js","node_modules/chroma-js/src/io/oklch/rgb2oklch.js","node_modules/chroma-js/src/ops/alpha.js","node_modules/chroma-js/src/ops/clipped.js","node_modules/chroma-js/src/ops/darken.js","node_modules/chroma-js/src/ops/get.js","node_modules/chroma-js/src/ops/luminance.js","node_modules/chroma-js/src/ops/mix.js","node_modules/chroma-js/src/generator/mix.js","node_modules/chroma-js/src/interpolator/index.js","node_modules/chroma-js/src/ops/premultiply.js","node_modules/chroma-js/src/ops/saturate.js","node_modules/chroma-js/src/ops/set.js","node_modules/chroma-js/src/ops/shade.js","node_modules/chroma-js/src/interpolator/rgb.js","node_modules/chroma-js/src/interpolator/lrgb.js","node_modules/chroma-js/src/interpolator/lab.js","node_modules/chroma-js/src/interpolator/lch.js","node_modules/chroma-js/src/interpolator/_hsx.js","node_modules/chroma-js/src/interpolator/num.js","node_modules/chroma-js/src/interpolator/hcg.js","node_modules/chroma-js/src/interpolator/hsi.js","node_modules/chroma-js/src/interpolator/hsl.js","node_modules/chroma-js/src/interpolator/hsv.js","node_modules/chroma-js/src/interpolator/oklab.js","node_modules/chroma-js/src/interpolator/oklch.js","node_modules/chroma-js/src/generator/average.js","node_modules/chroma-js/src/generator/bezier.js","node_modules/chroma-js/src/generator/scale.js","node_modules/chroma-js/src/generator/blend.js","node_modules/chroma-js/src/generator/cubehelix.js","node_modules/chroma-js/src/generator/random.js","node_modules/chroma-js/src/utils/analyze.js","node_modules/chroma-js/src/utils/contrast.js","node_modules/chroma-js/src/utils/delta-e.js","node_modules/chroma-js/src/utils/distance.js","node_modules/chroma-js/src/utils/valid.js","node_modules/chroma-js/src/utils/scales.js","node_modules/chroma-js/src/colors/colorbrewer.js","src/components/puzzle.js","src/components/layout.js","src/components/coordinates/cube.js","src/components/coordinates/offset.js","src/components/items/tile.js","src/components/item.js","src/components/stateful.js","src/components/itemFactory.js","src/components/items/filter.js","src/components/modifiers/move.js","src/components/modifier.js","src/components/eventListeners.js","src/components/interact.js","src/components/cache.js","src/components/icons.js","src/components/symbol.js","src/components/step.js","src/components/items/portal.js","src/components/modifiers/rotate.js","src/components/items/terminus.js","src/components/modifiers/toggle.js","src/components/items/beam.js","src/components/collision.js","src/components/items/reflector.js","src/components/items/wall.js","src/components/modifierFactory.js","src/components/modifiers/immutable.js","src/components/modifiers/lock.js","src/components/modifiers/swap.js","src/components/items/mask.js","src/components/items/collision.js","src/components/state.js","src/puzzles/index.js","src/components/solution.js","src/analytics.js","src/feedback.js"],"sourcesContent":["\nfunction $parcel$export(e, n, v, s) {\n Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true, configurable: true});\n}\n\nfunction $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\n var $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n \nvar $parcel$modules = {};\nvar $parcel$inits = {};\n\nvar parcelRequire = $parcel$global[\"parcelRequiref3c5\"];\n\nif (parcelRequire == null) {\n parcelRequire = function(id) {\n if (id in $parcel$modules) {\n return $parcel$modules[id].exports;\n }\n if (id in $parcel$inits) {\n var init = $parcel$inits[id];\n delete $parcel$inits[id];\n var module = {id: id, exports: {}};\n $parcel$modules[id] = module;\n init.call(module.exports, module, module.exports);\n return module.exports;\n }\n var err = new Error(\"Cannot find module '\" + id + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n };\n\n parcelRequire.register = function register(id, init) {\n $parcel$inits[id] = init;\n };\n\n $parcel$global[\"parcelRequiref3c5\"] = parcelRequire;\n}\n\nvar parcelRegister = parcelRequire.register;\nparcelRegister(\"hFpCu\", function(module, exports) {\n/*!\n * Paper.js v0.12.18 - The Swiss Army Knife of Vector Graphics Scripting.\n * http://paperjs.org/\n *\n * Copyright (c) 2011 - 2020, Jürg Lehni & Jonathan Puckey\n * http://juerglehni.com/ & https://puckey.studio/\n *\n * Distributed under the MIT license. See LICENSE file for details.\n *\n * All rights reserved.\n *\n * Date: Wed Jul 17 14:57:24 2024 +0200\n *\n ***\n *\n * Straps.js - Class inheritance library with support for bean-style accessors\n *\n * Copyright (c) 2006 - 2020 Jürg Lehni\n * http://juerglehni.com/\n *\n * Distributed under the MIT license.\n *\n ***\n *\n * Acorn.js\n * https://marijnhaverbeke.nl/acorn/\n *\n * Acorn is a tiny, fast JavaScript parser written in JavaScript,\n * created by Marijn Haverbeke and released under an MIT license.\n *\n */ \n\n\nvar paper = (function(self1, undefined) {\n self1 = self1 || (parcelRequire(\"gFNhN\"));\n var window = self1.window, document = self1.document;\n var Base = new function() {\n var hidden = /^(statics|enumerable|beans|preserve)$/, array = [], slice = array.slice, create = Object.create, describe = Object.getOwnPropertyDescriptor, define1 = Object.defineProperty, forEach = array.forEach || function(iter, bind) {\n for(var i = 0, l = this.length; i < l; i++)iter.call(bind, this[i], i, this);\n }, forIn = function(iter, bind) {\n for(var i in this)if (this.hasOwnProperty(i)) iter.call(bind, this[i], i, this);\n }, set = Object.assign || function(dst) {\n for(var i = 1, l = arguments.length; i < l; i++){\n var src = arguments[i];\n for(var key in src)if (src.hasOwnProperty(key)) dst[key] = src[key];\n }\n return dst;\n }, each = function(obj, iter, bind) {\n if (obj) {\n var desc = describe(obj, \"length\");\n (desc && typeof desc.value === \"number\" ? forEach : forIn).call(obj, iter, bind = bind || obj);\n }\n return bind;\n };\n function inject(dest, src, enumerable, beans, preserve) {\n var beansNames = {};\n function field(name, val) {\n val = val || (val = describe(src, name)) && (val.get ? val : val.value);\n if (typeof val === \"string\" && val[0] === \"#\") val = dest[val.substring(1)] || val;\n var isFunc = typeof val === \"function\", res = val, prev = preserve || isFunc && !val.base ? val && val.get ? name in dest : dest[name] : null, bean;\n if (!preserve || !prev) {\n if (isFunc && prev) val.base = prev;\n if (isFunc && beans !== false && (bean = name.match(/^([gs]et|is)(([A-Z])(.*))$/))) beansNames[bean[3].toLowerCase() + bean[4]] = bean[2];\n if (!res || isFunc || !res.get || typeof res.get !== \"function\" || !Base.isPlainObject(res)) res = {\n value: res,\n writable: true\n };\n if ((describe(dest, name) || {\n configurable: true\n }).configurable) {\n res.configurable = true;\n res.enumerable = enumerable != null ? enumerable : !bean;\n }\n define1(dest, name, res);\n }\n }\n if (src) {\n for(var name in src)if (src.hasOwnProperty(name) && !hidden.test(name)) field(name);\n for(var name in beansNames){\n var part = beansNames[name], set = dest[\"set\" + part], get = dest[\"get\" + part] || set && dest[\"is\" + part];\n if (get && (beans === true || get.length === 0)) field(name, {\n get: get,\n set: set\n });\n }\n }\n return dest;\n }\n function Base() {\n for(var i = 0, l = arguments.length; i < l; i++){\n var src = arguments[i];\n if (src) set(this, src);\n }\n return this;\n }\n return inject(Base, {\n inject: function(src) {\n if (src) {\n var statics = src.statics === true ? src : src.statics, beans = src.beans, preserve = src.preserve;\n if (statics !== src) inject(this.prototype, src, src.enumerable, beans, preserve);\n inject(this, statics, null, beans, preserve);\n }\n for(var i = 1, l = arguments.length; i < l; i++)this.inject(arguments[i]);\n return this;\n },\n extend: function() {\n var base = this, ctor, proto;\n for(var i = 0, obj, l = arguments.length; i < l && !(ctor && proto); i++){\n obj = arguments[i];\n ctor = ctor || obj.initialize;\n proto = proto || obj.prototype;\n }\n ctor = ctor || function() {\n base.apply(this, arguments);\n };\n proto = ctor.prototype = proto || create(this.prototype);\n define1(proto, \"constructor\", {\n value: ctor,\n writable: true,\n configurable: true\n });\n inject(ctor, this);\n if (arguments.length) this.inject.apply(ctor, arguments);\n ctor.base = base;\n return ctor;\n }\n }).inject({\n enumerable: false,\n initialize: Base,\n set: Base,\n inject: function() {\n for(var i = 0, l = arguments.length; i < l; i++){\n var src = arguments[i];\n if (src) inject(this, src, src.enumerable, src.beans, src.preserve);\n }\n return this;\n },\n extend: function() {\n var res = create(this);\n return res.inject.apply(res, arguments);\n },\n each: function(iter, bind) {\n return each(this, iter, bind);\n },\n clone: function() {\n return new this.constructor(this);\n },\n statics: {\n set: set,\n each: each,\n create: create,\n define: define1,\n describe: describe,\n clone: function(obj) {\n return set(new obj.constructor(), obj);\n },\n isPlainObject: function(obj) {\n var ctor = obj != null && obj.constructor;\n return ctor && (ctor === Object || ctor === Base || ctor.name === \"Object\");\n },\n pick: function(a, b) {\n return a !== undefined ? a : b;\n },\n slice: function(list, begin, end) {\n return slice.call(list, begin, end);\n }\n }\n });\n };\n module.exports = Base;\n Base.inject({\n enumerable: false,\n toString: function() {\n return this._id != null ? (this._class || \"Object\") + (this._name ? \" '\" + this._name + \"'\" : \" @\" + this._id) : \"{ \" + Base.each(this, function(value, key) {\n if (!/^_/.test(key)) {\n var type = typeof value;\n this.push(key + \": \" + (type === \"number\" ? Formatter.instance.number(value) : type === \"string\" ? \"'\" + value + \"'\" : value));\n }\n }, []).join(\", \") + \" }\";\n },\n getClassName: function() {\n return this._class || \"\";\n },\n importJSON: function(json) {\n return Base.importJSON(json, this);\n },\n exportJSON: function(options) {\n return Base.exportJSON(this, options);\n },\n toJSON: function() {\n return Base.serialize(this);\n },\n set: function(props, exclude) {\n if (props) Base.filter(this, props, exclude, this._prioritize);\n return this;\n }\n }, {\n beans: false,\n statics: {\n exports: {},\n extend: function extend() {\n var res = extend.base.apply(this, arguments), name = res.prototype._class;\n if (name && !Base.exports[name]) Base.exports[name] = res;\n return res;\n },\n equals: function(obj1, obj2) {\n if (obj1 === obj2) return true;\n if (obj1 && obj1.equals) return obj1.equals(obj2);\n if (obj2 && obj2.equals) return obj2.equals(obj1);\n if (obj1 && obj2 && typeof obj1 === \"object\" && typeof obj2 === \"object\") {\n if (Array.isArray(obj1) && Array.isArray(obj2)) {\n var length = obj1.length;\n if (length !== obj2.length) return false;\n while(length--){\n if (!Base.equals(obj1[length], obj2[length])) return false;\n }\n } else {\n var keys = Object.keys(obj1), length = keys.length;\n if (length !== Object.keys(obj2).length) return false;\n while(length--){\n var key = keys[length];\n if (!(obj2.hasOwnProperty(key) && Base.equals(obj1[key], obj2[key]))) return false;\n }\n }\n return true;\n }\n return false;\n },\n read: function(list, start, options, amount) {\n if (this === Base) {\n var value = this.peek(list, start);\n list.__index++;\n return value;\n }\n var proto = this.prototype, readIndex = proto._readIndex, begin = start || readIndex && list.__index || 0, length = list.length, obj = list[begin];\n amount = amount || length - begin;\n if (obj instanceof this || options && options.readNull && obj == null && amount <= 1) {\n if (readIndex) list.__index = begin + 1;\n return obj && options && options.clone ? obj.clone() : obj;\n }\n obj = Base.create(proto);\n if (readIndex) obj.__read = true;\n obj = obj.initialize.apply(obj, begin > 0 || begin + amount < length ? Base.slice(list, begin, begin + amount) : list) || obj;\n if (readIndex) {\n list.__index = begin + obj.__read;\n var filtered = obj.__filtered;\n if (filtered) {\n list.__filtered = filtered;\n obj.__filtered = undefined;\n }\n obj.__read = undefined;\n }\n return obj;\n },\n peek: function(list, start) {\n return list[list.__index = start || list.__index || 0];\n },\n remain: function(list) {\n return list.length - (list.__index || 0);\n },\n readList: function(list, start, options, amount) {\n var res = [], entry, begin = start || 0, end = amount ? begin + amount : list.length;\n for(var i = begin; i < end; i++)res.push(Array.isArray(entry = list[i]) ? this.read(entry, 0, options) : this.read(list, i, options, 1));\n return res;\n },\n readNamed: function(list, name, start, options, amount) {\n var value = this.getNamed(list, name), hasValue = value !== undefined;\n if (hasValue) {\n var filtered = list.__filtered;\n if (!filtered) {\n var source = this.getSource(list);\n filtered = list.__filtered = Base.create(source);\n filtered.__unfiltered = source;\n }\n filtered[name] = undefined;\n }\n return this.read(hasValue ? [\n value\n ] : list, start, options, amount);\n },\n readSupported: function(list, dest) {\n var source = this.getSource(list), that = this, read = false;\n if (source) Object.keys(source).forEach(function(key) {\n if (key in dest) {\n var value = that.readNamed(list, key);\n if (value !== undefined) dest[key] = value;\n read = true;\n }\n });\n return read;\n },\n getSource: function(list) {\n var source = list.__source;\n if (source === undefined) {\n var arg = list.length === 1 && list[0];\n source = list.__source = arg && Base.isPlainObject(arg) ? arg : null;\n }\n return source;\n },\n getNamed: function(list, name) {\n var source = this.getSource(list);\n if (source) return name ? source[name] : list.__filtered || source;\n },\n hasNamed: function(list, name) {\n return !!this.getNamed(list, name);\n },\n filter: function(dest, source, exclude, prioritize) {\n var processed;\n function handleKey(key) {\n if (!(exclude && key in exclude) && !(processed && key in processed)) {\n var value = source[key];\n if (value !== undefined) dest[key] = value;\n }\n }\n if (prioritize) {\n var keys = {};\n for(var i = 0, key, l = prioritize.length; i < l; i++)if ((key = prioritize[i]) in source) {\n handleKey(key);\n keys[key] = true;\n }\n processed = keys;\n }\n Object.keys(source.__unfiltered || source).forEach(handleKey);\n return dest;\n },\n isPlainValue: function(obj, asString) {\n return Base.isPlainObject(obj) || Array.isArray(obj) || asString && typeof obj === \"string\";\n },\n serialize: function(obj, options, compact, dictionary) {\n options = options || {};\n var isRoot = !dictionary, res;\n if (isRoot) {\n options.formatter = new Formatter(options.precision);\n dictionary = {\n length: 0,\n definitions: {},\n references: {},\n add: function(item, create) {\n var id = \"#\" + item._id, ref = this.references[id];\n if (!ref) {\n this.length++;\n var res = create.call(item), name = item._class;\n if (name && res[0] !== name) res.unshift(name);\n this.definitions[id] = res;\n ref = this.references[id] = [\n id\n ];\n }\n return ref;\n }\n };\n }\n if (obj && obj._serialize) {\n res = obj._serialize(options, dictionary);\n var name = obj._class;\n if (name && !obj._compactSerialize && (isRoot || !compact) && res[0] !== name) res.unshift(name);\n } else if (Array.isArray(obj)) {\n res = [];\n for(var i = 0, l = obj.length; i < l; i++)res[i] = Base.serialize(obj[i], options, compact, dictionary);\n } else if (Base.isPlainObject(obj)) {\n res = {};\n var keys = Object.keys(obj);\n for(var i = 0, l = keys.length; i < l; i++){\n var key = keys[i];\n res[key] = Base.serialize(obj[key], options, compact, dictionary);\n }\n } else if (typeof obj === \"number\") res = options.formatter.number(obj, options.precision);\n else res = obj;\n return isRoot && dictionary.length > 0 ? [\n [\n \"dictionary\",\n dictionary.definitions\n ],\n res\n ] : res;\n },\n deserialize: function(json, create, _data, _setDictionary, _isRoot) {\n var res = json, isFirst = !_data, hasDictionary = isFirst && json && json.length && json[0][0] === \"dictionary\";\n _data = _data || {};\n if (Array.isArray(json)) {\n var type = json[0], isDictionary = type === \"dictionary\";\n if (json.length == 1 && /^#/.test(type)) return _data.dictionary[type];\n type = Base.exports[type];\n res = [];\n for(var i = type ? 1 : 0, l = json.length; i < l; i++)res.push(Base.deserialize(json[i], create, _data, isDictionary, hasDictionary));\n if (type) {\n var args = res;\n if (create) res = create(type, args, isFirst || _isRoot);\n else res = new type(args);\n }\n } else if (Base.isPlainObject(json)) {\n res = {};\n if (_setDictionary) _data.dictionary = res;\n for(var key in json)res[key] = Base.deserialize(json[key], create, _data);\n }\n return hasDictionary ? res[1] : res;\n },\n exportJSON: function(obj, options) {\n var json = Base.serialize(obj, options);\n return options && options.asString == false ? json : JSON.stringify(json);\n },\n importJSON: function(json, target) {\n return Base.deserialize(typeof json === \"string\" ? JSON.parse(json) : json, function(ctor, args, isRoot) {\n var useTarget = isRoot && target && target.constructor === ctor, obj = useTarget ? target : Base.create(ctor.prototype);\n if (args.length === 1 && obj instanceof Item && (useTarget || !(obj instanceof Layer))) {\n var arg = args[0];\n if (Base.isPlainObject(arg)) {\n arg.insert = false;\n if (useTarget) args = args.concat([\n Item.INSERT\n ]);\n }\n }\n (useTarget ? obj.set : ctor).apply(obj, args);\n if (useTarget) target = null;\n return obj;\n });\n },\n push: function(list, items) {\n var itemsLength = items.length;\n if (itemsLength < 4096) list.push.apply(list, items);\n else {\n var startLength = list.length;\n list.length += itemsLength;\n for(var i = 0; i < itemsLength; i++)list[startLength + i] = items[i];\n }\n return list;\n },\n splice: function(list, items, index, remove) {\n var amount = items && items.length, append = index === undefined;\n index = append ? list.length : index;\n if (index > list.length) index = list.length;\n for(var i = 0; i < amount; i++)items[i]._index = index + i;\n if (append) {\n Base.push(list, items);\n return [];\n } else {\n var args = [\n index,\n remove\n ];\n if (items) Base.push(args, items);\n var removed = list.splice.apply(list, args);\n for(var i = 0, l = removed.length; i < l; i++)removed[i]._index = undefined;\n for(var i = index + amount, l = list.length; i < l; i++)list[i]._index = i;\n return removed;\n }\n },\n capitalize: function(str) {\n return str.replace(/\\b[a-z]/g, function(match) {\n return match.toUpperCase();\n });\n },\n camelize: function(str) {\n return str.replace(/-(.)/g, function(match, chr) {\n return chr.toUpperCase();\n });\n },\n hyphenate: function(str) {\n return str.replace(/([a-z])([A-Z])/g, \"$1-$2\").toLowerCase();\n }\n }\n });\n var Emitter = {\n on: function(type, func) {\n if (typeof type !== \"string\") Base.each(type, function(value, key) {\n this.on(key, value);\n }, this);\n else {\n var types = this._eventTypes, entry = types && types[type], handlers = this._callbacks = this._callbacks || {};\n handlers = handlers[type] = handlers[type] || [];\n if (handlers.indexOf(func) === -1) {\n handlers.push(func);\n if (entry && entry.install && handlers.length === 1) entry.install.call(this, type);\n }\n }\n return this;\n },\n off: function(type, func) {\n if (typeof type !== \"string\") {\n Base.each(type, function(value, key) {\n this.off(key, value);\n }, this);\n return;\n }\n var types = this._eventTypes, entry = types && types[type], handlers = this._callbacks && this._callbacks[type], index;\n if (handlers) {\n if (!func || (index = handlers.indexOf(func)) !== -1 && handlers.length === 1) {\n if (entry && entry.uninstall) entry.uninstall.call(this, type);\n delete this._callbacks[type];\n } else if (index !== -1) handlers.splice(index, 1);\n }\n return this;\n },\n once: function(type, func) {\n return this.on(type, function handler() {\n func.apply(this, arguments);\n this.off(type, handler);\n });\n },\n emit: function(type, event) {\n var handlers = this._callbacks && this._callbacks[type];\n if (!handlers) return false;\n var args = Base.slice(arguments, 1), setTarget = event && event.target && !event.currentTarget;\n handlers = handlers.slice();\n if (setTarget) event.currentTarget = this;\n for(var i = 0, l = handlers.length; i < l; i++)if (handlers[i].apply(this, args) == false) {\n if (event && event.stop) event.stop();\n break;\n }\n if (setTarget) delete event.currentTarget;\n return true;\n },\n responds: function(type) {\n return !!(this._callbacks && this._callbacks[type]);\n },\n attach: \"#on\",\n detach: \"#off\",\n fire: \"#emit\",\n _installEvents: function(install) {\n var types = this._eventTypes, handlers = this._callbacks, key = install ? \"install\" : \"uninstall\";\n if (types) {\n for(var type in handlers)if (handlers[type].length > 0) {\n var entry = types[type], func = entry && entry[key];\n if (func) func.call(this, type);\n }\n }\n },\n statics: {\n inject: function inject(src) {\n var events = src._events;\n if (events) {\n var types = {};\n Base.each(events, function(entry, key) {\n var isString = typeof entry === \"string\", name = isString ? entry : key, part = Base.capitalize(name), type = name.substring(2).toLowerCase();\n types[type] = isString ? {} : entry;\n name = \"_\" + name;\n src[\"get\" + part] = function() {\n return this[name];\n };\n src[\"set\" + part] = function(func) {\n var prev = this[name];\n if (prev) this.off(type, prev);\n if (func) this.on(type, func);\n this[name] = func;\n };\n });\n src._eventTypes = types;\n }\n return inject.base.apply(this, arguments);\n }\n }\n };\n var PaperScope = Base.extend({\n _class: \"PaperScope\",\n initialize: function PaperScope() {\n paper = this;\n this.settings = new Base({\n applyMatrix: true,\n insertItems: true,\n handleSize: 4,\n hitTolerance: 0\n });\n this.project = null;\n this.projects = [];\n this.tools = [];\n this._id = PaperScope._id++;\n PaperScope._scopes[this._id] = this;\n var proto = PaperScope.prototype;\n if (!this.support) {\n var ctx = CanvasProvider.getContext(1, 1) || {};\n proto.support = {\n nativeDash: \"setLineDash\" in ctx || \"mozDash\" in ctx,\n nativeBlendModes: BlendMode.nativeModes\n };\n CanvasProvider.release(ctx);\n }\n if (!this.agent) {\n var user = self1.navigator.userAgent.toLowerCase(), os = (/(darwin|win|mac|linux|freebsd|sunos)/.exec(user) || [])[0], platform = os === \"darwin\" ? \"mac\" : os, agent = proto.agent = proto.browser = {\n platform: platform\n };\n if (platform) agent[platform] = true;\n user.replace(/(opera|chrome|safari|webkit|firefox|msie|trident|atom|node|jsdom)\\/?\\s*([.\\d]+)(?:.*version\\/([.\\d]+))?(?:.*rv\\:v?([.\\d]+))?/g, function(match, n, v1, v2, rv) {\n if (!agent.chrome) {\n var v = n === \"opera\" ? v2 : /^(node|trident)$/.test(n) ? rv : v1;\n agent.version = v;\n agent.versionNumber = parseFloat(v);\n n = ({\n trident: \"msie\",\n jsdom: \"node\"\n })[n] || n;\n agent.name = n;\n agent[n] = true;\n }\n });\n if (agent.chrome) delete agent.webkit;\n if (agent.atom) delete agent.chrome;\n }\n },\n version: \"0.12.18\",\n getView: function() {\n var project = this.project;\n return project && project._view;\n },\n getPaper: function() {\n return this;\n },\n execute: function(code, options) {\n var exports = paper.PaperScript.execute(code, this, options);\n View.updateFocus();\n return exports;\n },\n install: function(scope) {\n var that = this;\n Base.each([\n \"project\",\n \"view\",\n \"tool\"\n ], function(key) {\n Base.define(scope, key, {\n configurable: true,\n get: function() {\n return that[key];\n }\n });\n });\n for(var key in this)if (!/^_/.test(key) && this[key]) scope[key] = this[key];\n },\n setup: function(element) {\n paper = this;\n this.project = new Project(element);\n return this;\n },\n createCanvas: function(width, height) {\n return CanvasProvider.getCanvas(width, height);\n },\n activate: function() {\n paper = this;\n },\n clear: function() {\n var projects = this.projects, tools = this.tools;\n for(var i = projects.length - 1; i >= 0; i--)projects[i].remove();\n for(var i = tools.length - 1; i >= 0; i--)tools[i].remove();\n },\n remove: function() {\n this.clear();\n delete PaperScope._scopes[this._id];\n },\n statics: new function() {\n function handleAttribute(name) {\n name += \"Attribute\";\n return function(el, attr) {\n return el[name](attr) || el[name](\"data-paper-\" + attr);\n };\n }\n return {\n _scopes: {},\n _id: 0,\n get: function(id) {\n return this._scopes[id] || null;\n },\n getAttribute: handleAttribute(\"get\"),\n hasAttribute: handleAttribute(\"has\")\n };\n }\n });\n var PaperScopeItem = Base.extend(Emitter, {\n initialize: function(activate) {\n this._scope = paper;\n this._index = this._scope[this._list].push(this) - 1;\n if (activate || !this._scope[this._reference]) this.activate();\n },\n activate: function() {\n if (!this._scope) return false;\n var prev = this._scope[this._reference];\n if (prev && prev !== this) prev.emit(\"deactivate\");\n this._scope[this._reference] = this;\n this.emit(\"activate\", prev);\n return true;\n },\n isActive: function() {\n return this._scope[this._reference] === this;\n },\n remove: function() {\n if (this._index == null) return false;\n Base.splice(this._scope[this._list], null, this._index, 1);\n if (this._scope[this._reference] == this) this._scope[this._reference] = null;\n this._scope = null;\n return true;\n },\n getView: function() {\n return this._scope.getView();\n }\n });\n var CollisionDetection = {\n findItemBoundsCollisions: function(items1, items2, tolerance) {\n function getBounds(items) {\n var bounds = new Array(items.length);\n for(var i = 0; i < items.length; i++){\n var rect = items[i].getBounds();\n bounds[i] = [\n rect.left,\n rect.top,\n rect.right,\n rect.bottom\n ];\n }\n return bounds;\n }\n var bounds1 = getBounds(items1), bounds2 = !items2 || items2 === items1 ? bounds1 : getBounds(items2);\n return this.findBoundsCollisions(bounds1, bounds2, tolerance || 0);\n },\n findCurveBoundsCollisions: function(curves1, curves2, tolerance, bothAxis) {\n function getBounds(curves) {\n var min = Math.min, max = Math.max, bounds = new Array(curves.length);\n for(var i = 0; i < curves.length; i++){\n var v = curves[i];\n bounds[i] = [\n min(v[0], v[2], v[4], v[6]),\n min(v[1], v[3], v[5], v[7]),\n max(v[0], v[2], v[4], v[6]),\n max(v[1], v[3], v[5], v[7])\n ];\n }\n return bounds;\n }\n var bounds1 = getBounds(curves1), bounds2 = !curves2 || curves2 === curves1 ? bounds1 : getBounds(curves2);\n if (bothAxis) {\n var hor = this.findBoundsCollisions(bounds1, bounds2, tolerance || 0, false, true), ver = this.findBoundsCollisions(bounds1, bounds2, tolerance || 0, true, true), list = [];\n for(var i = 0, l = hor.length; i < l; i++)list[i] = {\n hor: hor[i],\n ver: ver[i]\n };\n return list;\n }\n return this.findBoundsCollisions(bounds1, bounds2, tolerance || 0);\n },\n findBoundsCollisions: function(boundsA, boundsB, tolerance, sweepVertical, onlySweepAxisCollisions) {\n var self1 = !boundsB || boundsA === boundsB, allBounds = self1 ? boundsA : boundsA.concat(boundsB), lengthA = boundsA.length, lengthAll = allBounds.length;\n function binarySearch(indices, coord, value) {\n var lo = 0, hi = indices.length;\n while(lo < hi){\n var mid = hi + lo >>> 1;\n if (allBounds[indices[mid]][coord] < value) lo = mid + 1;\n else hi = mid;\n }\n return lo - 1;\n }\n var pri0 = sweepVertical ? 1 : 0, pri1 = pri0 + 2, sec0 = sweepVertical ? 0 : 1, sec1 = sec0 + 2;\n var allIndicesByPri0 = new Array(lengthAll);\n for(var i = 0; i < lengthAll; i++)allIndicesByPri0[i] = i;\n allIndicesByPri0.sort(function(i1, i2) {\n return allBounds[i1][pri0] - allBounds[i2][pri0];\n });\n var activeIndicesByPri1 = [], allCollisions = new Array(lengthA);\n for(var i = 0; i < lengthAll; i++){\n var curIndex = allIndicesByPri0[i], curBounds = allBounds[curIndex], origIndex = self1 ? curIndex : curIndex - lengthA, isCurrentA = curIndex < lengthA, isCurrentB = self1 || !isCurrentA, curCollisions = isCurrentA ? [] : null;\n if (activeIndicesByPri1.length) {\n var pruneCount = binarySearch(activeIndicesByPri1, pri1, curBounds[pri0] - tolerance) + 1;\n activeIndicesByPri1.splice(0, pruneCount);\n if (self1 && onlySweepAxisCollisions) {\n curCollisions = curCollisions.concat(activeIndicesByPri1);\n for(var j = 0; j < activeIndicesByPri1.length; j++){\n var activeIndex = activeIndicesByPri1[j];\n allCollisions[activeIndex].push(origIndex);\n }\n } else {\n var curSec1 = curBounds[sec1], curSec0 = curBounds[sec0];\n for(var j = 0; j < activeIndicesByPri1.length; j++){\n var activeIndex = activeIndicesByPri1[j], activeBounds = allBounds[activeIndex], isActiveA = activeIndex < lengthA, isActiveB = self1 || activeIndex >= lengthA;\n if (onlySweepAxisCollisions || (isCurrentA && isActiveB || isCurrentB && isActiveA) && curSec1 >= activeBounds[sec0] - tolerance && curSec0 <= activeBounds[sec1] + tolerance) {\n if (isCurrentA && isActiveB) curCollisions.push(self1 ? activeIndex : activeIndex - lengthA);\n if (isCurrentB && isActiveA) allCollisions[activeIndex].push(origIndex);\n }\n }\n }\n }\n if (isCurrentA) {\n if (boundsA === boundsB) curCollisions.push(curIndex);\n allCollisions[curIndex] = curCollisions;\n }\n if (activeIndicesByPri1.length) {\n var curPri1 = curBounds[pri1], index = binarySearch(activeIndicesByPri1, pri1, curPri1);\n activeIndicesByPri1.splice(index + 1, 0, curIndex);\n } else activeIndicesByPri1.push(curIndex);\n }\n for(var i = 0; i < allCollisions.length; i++){\n var collisions = allCollisions[i];\n if (collisions) collisions.sort(function(i1, i2) {\n return i1 - i2;\n });\n }\n return allCollisions;\n }\n };\n var Formatter = Base.extend({\n initialize: function(precision) {\n this.precision = Base.pick(precision, 5);\n this.multiplier = Math.pow(10, this.precision);\n },\n number: function(val) {\n return this.precision < 16 ? Math.round(val * this.multiplier) / this.multiplier : val;\n },\n pair: function(val1, val2, separator) {\n return this.number(val1) + (separator || \",\") + this.number(val2);\n },\n point: function(val, separator) {\n return this.number(val.x) + (separator || \",\") + this.number(val.y);\n },\n size: function(val, separator) {\n return this.number(val.width) + (separator || \",\") + this.number(val.height);\n },\n rectangle: function(val, separator) {\n return this.point(val, separator) + (separator || \",\") + this.size(val, separator);\n }\n });\n Formatter.instance = new Formatter();\n var Numerical = new function() {\n var abscissas = [\n [\n 0.5773502691896257645091488\n ],\n [\n 0,\n 0.7745966692414833770358531\n ],\n [\n 0.3399810435848562648026658,\n 0.8611363115940525752239465\n ],\n [\n 0,\n 0.5384693101056830910363144,\n 0.9061798459386639927976269\n ],\n [\n 0.2386191860831969086305017,\n 0.6612093864662645136613996,\n 0.9324695142031520278123016\n ],\n [\n 0,\n 0.4058451513773971669066064,\n 0.7415311855993944398638648,\n 0.9491079123427585245261897\n ],\n [\n 0.1834346424956498049394761,\n 0.5255324099163289858177390,\n 0.7966664774136267395915539,\n 0.9602898564975362316835609\n ],\n [\n 0,\n 0.3242534234038089290385380,\n 0.6133714327005903973087020,\n 0.8360311073266357942994298,\n 0.9681602395076260898355762\n ],\n [\n 0.1488743389816312108848260,\n 0.4333953941292471907992659,\n 0.6794095682990244062343274,\n 0.8650633666889845107320967,\n 0.9739065285171717200779640\n ],\n [\n 0,\n 0.2695431559523449723315320,\n 0.5190961292068118159257257,\n 0.7301520055740493240934163,\n 0.8870625997680952990751578,\n 0.9782286581460569928039380\n ],\n [\n 0.1252334085114689154724414,\n 0.3678314989981801937526915,\n 0.5873179542866174472967024,\n 0.7699026741943046870368938,\n 0.9041172563704748566784659,\n 0.9815606342467192506905491\n ],\n [\n 0,\n 0.2304583159551347940655281,\n 0.4484927510364468528779129,\n 0.6423493394403402206439846,\n 0.8015780907333099127942065,\n 0.9175983992229779652065478,\n 0.9841830547185881494728294\n ],\n [\n 0.1080549487073436620662447,\n 0.3191123689278897604356718,\n 0.5152486363581540919652907,\n 0.6872929048116854701480198,\n 0.8272013150697649931897947,\n 0.9284348836635735173363911,\n 0.9862838086968123388415973\n ],\n [\n 0,\n 0.2011940939974345223006283,\n 0.3941513470775633698972074,\n 0.5709721726085388475372267,\n 0.7244177313601700474161861,\n 0.8482065834104272162006483,\n 0.9372733924007059043077589,\n 0.9879925180204854284895657\n ],\n [\n 0.0950125098376374401853193,\n 0.2816035507792589132304605,\n 0.4580167776572273863424194,\n 0.6178762444026437484466718,\n 0.7554044083550030338951012,\n 0.8656312023878317438804679,\n 0.9445750230732325760779884,\n 0.9894009349916499325961542\n ]\n ];\n var weights = [\n [\n 1\n ],\n [\n 0.8888888888888888888888889,\n 0.5555555555555555555555556\n ],\n [\n 0.6521451548625461426269361,\n 0.3478548451374538573730639\n ],\n [\n 0.5688888888888888888888889,\n 0.4786286704993664680412915,\n 0.2369268850561890875142640\n ],\n [\n 0.4679139345726910473898703,\n 0.3607615730481386075698335,\n 0.1713244923791703450402961\n ],\n [\n 0.4179591836734693877551020,\n 0.3818300505051189449503698,\n 0.2797053914892766679014678,\n 0.1294849661688696932706114\n ],\n [\n 0.3626837833783619829651504,\n 0.3137066458778872873379622,\n 0.2223810344533744705443560,\n 0.1012285362903762591525314\n ],\n [\n 0.3302393550012597631645251,\n 0.3123470770400028400686304,\n 0.2606106964029354623187429,\n 0.1806481606948574040584720,\n 0.0812743883615744119718922\n ],\n [\n 0.2955242247147528701738930,\n 0.2692667193099963550912269,\n 0.2190863625159820439955349,\n 0.1494513491505805931457763,\n 0.0666713443086881375935688\n ],\n [\n 0.2729250867779006307144835,\n 0.2628045445102466621806889,\n 0.2331937645919904799185237,\n 0.1862902109277342514260976,\n 0.1255803694649046246346943,\n 0.0556685671161736664827537\n ],\n [\n 0.2491470458134027850005624,\n 0.2334925365383548087608499,\n 0.2031674267230659217490645,\n 0.1600783285433462263346525,\n 0.1069393259953184309602547,\n 0.0471753363865118271946160\n ],\n [\n 0.2325515532308739101945895,\n 0.2262831802628972384120902,\n 0.2078160475368885023125232,\n 0.1781459807619457382800467,\n 0.1388735102197872384636018,\n 0.0921214998377284479144218,\n 0.0404840047653158795200216\n ],\n [\n 0.2152638534631577901958764,\n 0.2051984637212956039659241,\n 0.1855383974779378137417166,\n 0.1572031671581935345696019,\n 0.1215185706879031846894148,\n 0.0801580871597602098056333,\n 0.0351194603317518630318329\n ],\n [\n 0.2025782419255612728806202,\n 0.1984314853271115764561183,\n 0.1861610000155622110268006,\n 0.1662692058169939335532009,\n 0.1395706779261543144478048,\n 0.1071592204671719350118695,\n 0.0703660474881081247092674,\n 0.0307532419961172683546284\n ],\n [\n 0.1894506104550684962853967,\n 0.1826034150449235888667637,\n 0.1691565193950025381893121,\n 0.1495959888165767320815017,\n 0.1246289712555338720524763,\n 0.0951585116824927848099251,\n 0.0622535239386478928628438,\n 0.0271524594117540948517806\n ]\n ];\n var abs = Math.abs, sqrt = Math.sqrt, pow = Math.pow, log2 = Math.log2 || function(x) {\n return Math.log(x) * Math.LOG2E;\n }, EPSILON = 1e-12, MACHINE_EPSILON = 1.12e-16;\n function clamp(value, min, max) {\n return value < min ? min : value > max ? max : value;\n }\n function getDiscriminant(a, b, c) {\n function split(v) {\n var x = v * 134217729, y = v - x, hi = y + x, lo = v - hi;\n return [\n hi,\n lo\n ];\n }\n var D = b * b - a * c, E = b * b + a * c;\n if (abs(D) * 3 < E) {\n var ad = split(a), bd = split(b), cd = split(c), p = b * b, dp = bd[0] * bd[0] - p + 2 * bd[0] * bd[1] + bd[1] * bd[1], q = a * c, dq = ad[0] * cd[0] - q + ad[0] * cd[1] + ad[1] * cd[0] + ad[1] * cd[1];\n D = p - q + (dp - dq);\n }\n return D;\n }\n function getNormalizationFactor() {\n var norm = Math.max.apply(Math, arguments);\n return norm && (norm < 1e-8 || norm > 1e8) ? pow(2, -Math.round(log2(norm))) : 0;\n }\n return {\n EPSILON: EPSILON,\n MACHINE_EPSILON: MACHINE_EPSILON,\n CURVETIME_EPSILON: 1e-8,\n GEOMETRIC_EPSILON: 1e-7,\n TRIGONOMETRIC_EPSILON: 1e-8,\n ANGULAR_EPSILON: 1e-5,\n KAPPA: 4 * (sqrt(2) - 1) / 3,\n isZero: function(val) {\n return val >= -EPSILON && val <= EPSILON;\n },\n isMachineZero: function(val) {\n return val >= -MACHINE_EPSILON && val <= MACHINE_EPSILON;\n },\n clamp: clamp,\n integrate: function(f, a, b, n) {\n var x = abscissas[n - 2], w = weights[n - 2], A = (b - a) * 0.5, B = A + a, i = 0, m = n + 1 >> 1, sum = n & 1 ? w[i++] * f(B) : 0;\n while(i < m){\n var Ax = A * x[i];\n sum += w[i++] * (f(B + Ax) + f(B - Ax));\n }\n return A * sum;\n },\n findRoot: function(f, df, x, a, b, n, tolerance) {\n for(var i = 0; i < n; i++){\n var fx = f(x), dx = fx / df(x), nx = x - dx;\n if (abs(dx) < tolerance) {\n x = nx;\n break;\n }\n if (fx > 0) {\n b = x;\n x = nx <= a ? (a + b) * 0.5 : nx;\n } else {\n a = x;\n x = nx >= b ? (a + b) * 0.5 : nx;\n }\n }\n return clamp(x, a, b);\n },\n solveQuadratic: function(a, b, c, roots, min, max) {\n var x1, x2 = Infinity;\n if (abs(a) < EPSILON) {\n if (abs(b) < EPSILON) return abs(c) < EPSILON ? -1 : 0;\n x1 = -c / b;\n } else {\n b *= -0.5;\n var D = getDiscriminant(a, b, c);\n if (D && abs(D) < MACHINE_EPSILON) {\n var f = getNormalizationFactor(abs(a), abs(b), abs(c));\n if (f) {\n a *= f;\n b *= f;\n c *= f;\n D = getDiscriminant(a, b, c);\n }\n }\n if (D >= -MACHINE_EPSILON) {\n var Q = D < 0 ? 0 : sqrt(D), R = b + (b < 0 ? -Q : Q);\n if (R === 0) {\n x1 = c / a;\n x2 = -x1;\n } else {\n x1 = R / a;\n x2 = c / R;\n }\n }\n }\n var count = 0, boundless = min == null, minB = min - EPSILON, maxB = max + EPSILON;\n if (isFinite(x1) && (boundless || x1 > minB && x1 < maxB)) roots[count++] = boundless ? x1 : clamp(x1, min, max);\n if (x2 !== x1 && isFinite(x2) && (boundless || x2 > minB && x2 < maxB)) roots[count++] = boundless ? x2 : clamp(x2, min, max);\n return count;\n },\n solveCubic: function(a, b, c, d, roots, min, max) {\n var f = getNormalizationFactor(abs(a), abs(b), abs(c), abs(d)), x, b1, c2, qd, q;\n if (f) {\n a *= f;\n b *= f;\n c *= f;\n d *= f;\n }\n function evaluate(x0) {\n x = x0;\n var tmp = a * x;\n b1 = tmp + b;\n c2 = b1 * x + c;\n qd = (tmp + b1) * x + c2;\n q = c2 * x + d;\n }\n if (abs(a) < EPSILON) {\n a = b;\n b1 = c;\n c2 = d;\n x = Infinity;\n } else if (abs(d) < EPSILON) {\n b1 = b;\n c2 = c;\n x = 0;\n } else {\n evaluate(-(b / a) / 3);\n var t = q / a, r = pow(abs(t), 1 / 3), s = t < 0 ? -1 : 1, td = -qd / a, rd = td > 0 ? 1.324717957244746 * Math.max(r, sqrt(td)) : r, x0 = x - s * rd;\n if (x0 !== x) {\n do {\n evaluate(x0);\n x0 = qd === 0 ? x : x - q / qd / (1 + MACHINE_EPSILON);\n }while (s * x0 > s * x);\n if (abs(a) * x * x > abs(d / x)) {\n c2 = -d / x;\n b1 = (c2 - c) / x;\n }\n }\n }\n var count = Numerical.solveQuadratic(a, b1, c2, roots, min, max), boundless = min == null;\n if (isFinite(x) && (count === 0 || count > 0 && x !== roots[0] && x !== roots[1]) && (boundless || x > min - EPSILON && x < max + EPSILON)) roots[count++] = boundless ? x : clamp(x, min, max);\n return count;\n }\n };\n };\n var UID = {\n _id: 1,\n _pools: {},\n get: function(name) {\n if (name) {\n var pool = this._pools[name];\n if (!pool) pool = this._pools[name] = {\n _id: 1\n };\n return pool._id++;\n } else return this._id++;\n }\n };\n var Point = Base.extend({\n _class: \"Point\",\n _readIndex: true,\n initialize: function Point(arg0, arg1) {\n var type = typeof arg0, reading = this.__read, read = 0;\n if (type === \"number\") {\n var hasY = typeof arg1 === \"number\";\n this._set(arg0, hasY ? arg1 : arg0);\n if (reading) read = hasY ? 2 : 1;\n } else if (type === \"undefined\" || arg0 === null) {\n this._set(0, 0);\n if (reading) read = arg0 === null ? 1 : 0;\n } else {\n var obj = type === \"string\" ? arg0.split(/[\\s,]+/) || [] : arg0;\n read = 1;\n if (Array.isArray(obj)) this._set(+obj[0], +(obj.length > 1 ? obj[1] : obj[0]));\n else if (\"x\" in obj) this._set(obj.x || 0, obj.y || 0);\n else if (\"width\" in obj) this._set(obj.width || 0, obj.height || 0);\n else if (\"angle\" in obj) {\n this._set(obj.length || 0, 0);\n this.setAngle(obj.angle || 0);\n } else {\n this._set(0, 0);\n read = 0;\n }\n }\n if (reading) this.__read = read;\n return this;\n },\n set: \"#initialize\",\n _set: function(x, y) {\n this.x = x;\n this.y = y;\n return this;\n },\n equals: function(point) {\n return this === point || point && (this.x === point.x && this.y === point.y || Array.isArray(point) && this.x === point[0] && this.y === point[1]) || false;\n },\n clone: function() {\n return new Point(this.x, this.y);\n },\n toString: function() {\n var f = Formatter.instance;\n return \"{ x: \" + f.number(this.x) + \", y: \" + f.number(this.y) + \" }\";\n },\n _serialize: function(options) {\n var f = options.formatter;\n return [\n f.number(this.x),\n f.number(this.y)\n ];\n },\n getLength: function() {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n },\n setLength: function(length) {\n if (this.isZero()) {\n var angle = this._angle || 0;\n this._set(Math.cos(angle) * length, Math.sin(angle) * length);\n } else {\n var scale = length / this.getLength();\n if (Numerical.isZero(scale)) this.getAngle();\n this._set(this.x * scale, this.y * scale);\n }\n },\n getAngle: function() {\n return this.getAngleInRadians.apply(this, arguments) * 180 / Math.PI;\n },\n setAngle: function(angle) {\n this.setAngleInRadians.call(this, angle * Math.PI / 180);\n },\n getAngleInDegrees: \"#getAngle\",\n setAngleInDegrees: \"#setAngle\",\n getAngleInRadians: function() {\n if (!arguments.length) return this.isZero() ? this._angle || 0 : this._angle = Math.atan2(this.y, this.x);\n else {\n var point = Point.read(arguments), div = this.getLength() * point.getLength();\n if (Numerical.isZero(div)) return NaN;\n else {\n var a = this.dot(point) / div;\n return Math.acos(a < -1 ? -1 : a > 1 ? 1 : a);\n }\n }\n },\n setAngleInRadians: function(angle) {\n this._angle = angle;\n if (!this.isZero()) {\n var length = this.getLength();\n this._set(Math.cos(angle) * length, Math.sin(angle) * length);\n }\n },\n getQuadrant: function() {\n return this.x >= 0 ? this.y >= 0 ? 1 : 4 : this.y >= 0 ? 2 : 3;\n }\n }, {\n beans: false,\n getDirectedAngle: function() {\n var point = Point.read(arguments);\n return Math.atan2(this.cross(point), this.dot(point)) * 180 / Math.PI;\n },\n getDistance: function() {\n var args = arguments, point = Point.read(args), x = point.x - this.x, y = point.y - this.y, d = x * x + y * y, squared = Base.read(args);\n return squared ? d : Math.sqrt(d);\n },\n normalize: function(length) {\n if (length === undefined) length = 1;\n var current = this.getLength(), scale = current !== 0 ? length / current : 0, point = new Point(this.x * scale, this.y * scale);\n if (scale >= 0) point._angle = this._angle;\n return point;\n },\n rotate: function(angle, center) {\n if (angle === 0) return this.clone();\n angle = angle * Math.PI / 180;\n var point = center ? this.subtract(center) : this, sin = Math.sin(angle), cos = Math.cos(angle);\n point = new Point(point.x * cos - point.y * sin, point.x * sin + point.y * cos);\n return center ? point.add(center) : point;\n },\n transform: function(matrix) {\n return matrix ? matrix._transformPoint(this) : this;\n },\n add: function() {\n var point = Point.read(arguments);\n return new Point(this.x + point.x, this.y + point.y);\n },\n subtract: function() {\n var point = Point.read(arguments);\n return new Point(this.x - point.x, this.y - point.y);\n },\n multiply: function() {\n var point = Point.read(arguments);\n return new Point(this.x * point.x, this.y * point.y);\n },\n divide: function() {\n var point = Point.read(arguments);\n return new Point(this.x / point.x, this.y / point.y);\n },\n modulo: function() {\n var point = Point.read(arguments);\n return new Point(this.x % point.x, this.y % point.y);\n },\n negate: function() {\n return new Point(-this.x, -this.y);\n },\n isInside: function() {\n return Rectangle.read(arguments).contains(this);\n },\n isClose: function() {\n var args = arguments, point = Point.read(args), tolerance = Base.read(args);\n return this.getDistance(point) <= tolerance;\n },\n isCollinear: function() {\n var point = Point.read(arguments);\n return Point.isCollinear(this.x, this.y, point.x, point.y);\n },\n isColinear: \"#isCollinear\",\n isOrthogonal: function() {\n var point = Point.read(arguments);\n return Point.isOrthogonal(this.x, this.y, point.x, point.y);\n },\n isZero: function() {\n var isZero = Numerical.isZero;\n return isZero(this.x) && isZero(this.y);\n },\n isNaN: function() {\n return isNaN(this.x) || isNaN(this.y);\n },\n isInQuadrant: function(q) {\n return this.x * (q > 1 && q < 4 ? -1 : 1) >= 0 && this.y * (q > 2 ? -1 : 1) >= 0;\n },\n dot: function() {\n var point = Point.read(arguments);\n return this.x * point.x + this.y * point.y;\n },\n cross: function() {\n var point = Point.read(arguments);\n return this.x * point.y - this.y * point.x;\n },\n project: function() {\n var point = Point.read(arguments), scale = point.isZero() ? 0 : this.dot(point) / point.dot(point);\n return new Point(point.x * scale, point.y * scale);\n },\n statics: {\n min: function() {\n var args = arguments, point1 = Point.read(args), point2 = Point.read(args);\n return new Point(Math.min(point1.x, point2.x), Math.min(point1.y, point2.y));\n },\n max: function() {\n var args = arguments, point1 = Point.read(args), point2 = Point.read(args);\n return new Point(Math.max(point1.x, point2.x), Math.max(point1.y, point2.y));\n },\n random: function() {\n return new Point(Math.random(), Math.random());\n },\n isCollinear: function(x1, y1, x2, y2) {\n return Math.abs(x1 * y2 - y1 * x2) <= Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2)) * 1e-8;\n },\n isOrthogonal: function(x1, y1, x2, y2) {\n return Math.abs(x1 * x2 + y1 * y2) <= Math.sqrt((x1 * x1 + y1 * y1) * (x2 * x2 + y2 * y2)) * 1e-8;\n }\n }\n }, Base.each([\n \"round\",\n \"ceil\",\n \"floor\",\n \"abs\"\n ], function(key) {\n var op = Math[key];\n this[key] = function() {\n return new Point(op(this.x), op(this.y));\n };\n }, {}));\n var LinkedPoint = Point.extend({\n initialize: function Point(x, y, owner, setter) {\n this._x = x;\n this._y = y;\n this._owner = owner;\n this._setter = setter;\n },\n _set: function(x, y, _dontNotify) {\n this._x = x;\n this._y = y;\n if (!_dontNotify) this._owner[this._setter](this);\n return this;\n },\n getX: function() {\n return this._x;\n },\n setX: function(x) {\n this._x = x;\n this._owner[this._setter](this);\n },\n getY: function() {\n return this._y;\n },\n setY: function(y) {\n this._y = y;\n this._owner[this._setter](this);\n },\n isSelected: function() {\n return !!(this._owner._selection & this._getSelection());\n },\n setSelected: function(selected) {\n this._owner._changeSelection(this._getSelection(), selected);\n },\n _getSelection: function() {\n return this._setter === \"setPosition\" ? 4 : 0;\n }\n });\n var Size = Base.extend({\n _class: \"Size\",\n _readIndex: true,\n initialize: function Size(arg0, arg1) {\n var type = typeof arg0, reading = this.__read, read = 0;\n if (type === \"number\") {\n var hasHeight = typeof arg1 === \"number\";\n this._set(arg0, hasHeight ? arg1 : arg0);\n if (reading) read = hasHeight ? 2 : 1;\n } else if (type === \"undefined\" || arg0 === null) {\n this._set(0, 0);\n if (reading) read = arg0 === null ? 1 : 0;\n } else {\n var obj = type === \"string\" ? arg0.split(/[\\s,]+/) || [] : arg0;\n read = 1;\n if (Array.isArray(obj)) this._set(+obj[0], +(obj.length > 1 ? obj[1] : obj[0]));\n else if (\"width\" in obj) this._set(obj.width || 0, obj.height || 0);\n else if (\"x\" in obj) this._set(obj.x || 0, obj.y || 0);\n else {\n this._set(0, 0);\n read = 0;\n }\n }\n if (reading) this.__read = read;\n return this;\n },\n set: \"#initialize\",\n _set: function(width, height) {\n this.width = width;\n this.height = height;\n return this;\n },\n equals: function(size) {\n return size === this || size && (this.width === size.width && this.height === size.height || Array.isArray(size) && this.width === size[0] && this.height === size[1]) || false;\n },\n clone: function() {\n return new Size(this.width, this.height);\n },\n toString: function() {\n var f = Formatter.instance;\n return \"{ width: \" + f.number(this.width) + \", height: \" + f.number(this.height) + \" }\";\n },\n _serialize: function(options) {\n var f = options.formatter;\n return [\n f.number(this.width),\n f.number(this.height)\n ];\n },\n add: function() {\n var size = Size.read(arguments);\n return new Size(this.width + size.width, this.height + size.height);\n },\n subtract: function() {\n var size = Size.read(arguments);\n return new Size(this.width - size.width, this.height - size.height);\n },\n multiply: function() {\n var size = Size.read(arguments);\n return new Size(this.width * size.width, this.height * size.height);\n },\n divide: function() {\n var size = Size.read(arguments);\n return new Size(this.width / size.width, this.height / size.height);\n },\n modulo: function() {\n var size = Size.read(arguments);\n return new Size(this.width % size.width, this.height % size.height);\n },\n negate: function() {\n return new Size(-this.width, -this.height);\n },\n isZero: function() {\n var isZero = Numerical.isZero;\n return isZero(this.width) && isZero(this.height);\n },\n isNaN: function() {\n return isNaN(this.width) || isNaN(this.height);\n },\n statics: {\n min: function(size1, size2) {\n return new Size(Math.min(size1.width, size2.width), Math.min(size1.height, size2.height));\n },\n max: function(size1, size2) {\n return new Size(Math.max(size1.width, size2.width), Math.max(size1.height, size2.height));\n },\n random: function() {\n return new Size(Math.random(), Math.random());\n }\n }\n }, Base.each([\n \"round\",\n \"ceil\",\n \"floor\",\n \"abs\"\n ], function(key) {\n var op = Math[key];\n this[key] = function() {\n return new Size(op(this.width), op(this.height));\n };\n }, {}));\n var LinkedSize = Size.extend({\n initialize: function Size(width, height, owner, setter) {\n this._width = width;\n this._height = height;\n this._owner = owner;\n this._setter = setter;\n },\n _set: function(width, height, _dontNotify) {\n this._width = width;\n this._height = height;\n if (!_dontNotify) this._owner[this._setter](this);\n return this;\n },\n getWidth: function() {\n return this._width;\n },\n setWidth: function(width) {\n this._width = width;\n this._owner[this._setter](this);\n },\n getHeight: function() {\n return this._height;\n },\n setHeight: function(height) {\n this._height = height;\n this._owner[this._setter](this);\n }\n });\n var Rectangle = Base.extend({\n _class: \"Rectangle\",\n _readIndex: true,\n beans: true,\n initialize: function Rectangle(arg0, arg1, arg2, arg3) {\n var args = arguments, type = typeof arg0, read;\n if (type === \"number\") {\n this._set(arg0, arg1, arg2, arg3);\n read = 4;\n } else if (type === \"undefined\" || arg0 === null) {\n this._set(0, 0, 0, 0);\n read = arg0 === null ? 1 : 0;\n } else if (args.length === 1) {\n if (Array.isArray(arg0)) {\n this._set.apply(this, arg0);\n read = 1;\n } else if (arg0.x !== undefined || arg0.width !== undefined) {\n this._set(arg0.x || 0, arg0.y || 0, arg0.width || 0, arg0.height || 0);\n read = 1;\n } else if (arg0.from === undefined && arg0.to === undefined) {\n this._set(0, 0, 0, 0);\n if (Base.readSupported(args, this)) read = 1;\n }\n }\n if (read === undefined) {\n var frm = Point.readNamed(args, \"from\"), next = Base.peek(args), x = frm.x, y = frm.y, width, height;\n if (next && next.x !== undefined || Base.hasNamed(args, \"to\")) {\n var to = Point.readNamed(args, \"to\");\n width = to.x - x;\n height = to.y - y;\n if (width < 0) {\n x = to.x;\n width = -width;\n }\n if (height < 0) {\n y = to.y;\n height = -height;\n }\n } else {\n var size = Size.read(args);\n width = size.width;\n height = size.height;\n }\n this._set(x, y, width, height);\n read = args.__index;\n }\n var filtered = args.__filtered;\n if (filtered) this.__filtered = filtered;\n if (this.__read) this.__read = read;\n return this;\n },\n set: \"#initialize\",\n _set: function(x, y, width, height) {\n this.x = x;\n this.y = y;\n this.width = width;\n this.height = height;\n return this;\n },\n clone: function() {\n return new Rectangle(this.x, this.y, this.width, this.height);\n },\n equals: function(rect) {\n var rt = Base.isPlainValue(rect) ? Rectangle.read(arguments) : rect;\n return rt === this || rt && this.x === rt.x && this.y === rt.y && this.width === rt.width && this.height === rt.height || false;\n },\n toString: function() {\n var f = Formatter.instance;\n return \"{ x: \" + f.number(this.x) + \", y: \" + f.number(this.y) + \", width: \" + f.number(this.width) + \", height: \" + f.number(this.height) + \" }\";\n },\n _serialize: function(options) {\n var f = options.formatter;\n return [\n f.number(this.x),\n f.number(this.y),\n f.number(this.width),\n f.number(this.height)\n ];\n },\n getPoint: function(_dontLink) {\n var ctor = _dontLink ? Point : LinkedPoint;\n return new ctor(this.x, this.y, this, \"setPoint\");\n },\n setPoint: function() {\n var point = Point.read(arguments);\n this.x = point.x;\n this.y = point.y;\n },\n getSize: function(_dontLink) {\n var ctor = _dontLink ? Size : LinkedSize;\n return new ctor(this.width, this.height, this, \"setSize\");\n },\n _fw: 1,\n _fh: 1,\n setSize: function() {\n var size = Size.read(arguments), sx = this._sx, sy = this._sy, w = size.width, h = size.height;\n if (sx) this.x += (this.width - w) * sx;\n if (sy) this.y += (this.height - h) * sy;\n this.width = w;\n this.height = h;\n this._fw = this._fh = 1;\n },\n getLeft: function() {\n return this.x;\n },\n setLeft: function(left) {\n if (!this._fw) {\n var amount = left - this.x;\n this.width -= this._sx === 0.5 ? amount * 2 : amount;\n }\n this.x = left;\n this._sx = this._fw = 0;\n },\n getTop: function() {\n return this.y;\n },\n setTop: function(top) {\n if (!this._fh) {\n var amount = top - this.y;\n this.height -= this._sy === 0.5 ? amount * 2 : amount;\n }\n this.y = top;\n this._sy = this._fh = 0;\n },\n getRight: function() {\n return this.x + this.width;\n },\n setRight: function(right) {\n if (!this._fw) {\n var amount = right - this.x;\n this.width = this._sx === 0.5 ? amount * 2 : amount;\n }\n this.x = right - this.width;\n this._sx = 1;\n this._fw = 0;\n },\n getBottom: function() {\n return this.y + this.height;\n },\n setBottom: function(bottom) {\n if (!this._fh) {\n var amount = bottom - this.y;\n this.height = this._sy === 0.5 ? amount * 2 : amount;\n }\n this.y = bottom - this.height;\n this._sy = 1;\n this._fh = 0;\n },\n getCenterX: function() {\n return this.x + this.width / 2;\n },\n setCenterX: function(x) {\n if (this._fw || this._sx === 0.5) this.x = x - this.width / 2;\n else {\n if (this._sx) this.x += (x - this.x) * 2 * this._sx;\n this.width = (x - this.x) * 2;\n }\n this._sx = 0.5;\n this._fw = 0;\n },\n getCenterY: function() {\n return this.y + this.height / 2;\n },\n setCenterY: function(y) {\n if (this._fh || this._sy === 0.5) this.y = y - this.height / 2;\n else {\n if (this._sy) this.y += (y - this.y) * 2 * this._sy;\n this.height = (y - this.y) * 2;\n }\n this._sy = 0.5;\n this._fh = 0;\n },\n getCenter: function(_dontLink) {\n var ctor = _dontLink ? Point : LinkedPoint;\n return new ctor(this.getCenterX(), this.getCenterY(), this, \"setCenter\");\n },\n setCenter: function() {\n var point = Point.read(arguments);\n this.setCenterX(point.x);\n this.setCenterY(point.y);\n return this;\n },\n getArea: function() {\n return this.width * this.height;\n },\n isEmpty: function() {\n return this.width === 0 || this.height === 0;\n },\n contains: function(arg) {\n return arg && arg.width !== undefined || (Array.isArray(arg) ? arg : arguments).length === 4 ? this._containsRectangle(Rectangle.read(arguments)) : this._containsPoint(Point.read(arguments));\n },\n _containsPoint: function(point) {\n var x = point.x, y = point.y;\n return x >= this.x && y >= this.y && x <= this.x + this.width && y <= this.y + this.height;\n },\n _containsRectangle: function(rect) {\n var x = rect.x, y = rect.y;\n return x >= this.x && y >= this.y && x + rect.width <= this.x + this.width && y + rect.height <= this.y + this.height;\n },\n intersects: function() {\n var rect = Rectangle.read(arguments), epsilon = Base.read(arguments) || 0;\n return rect.x + rect.width > this.x - epsilon && rect.y + rect.height > this.y - epsilon && rect.x < this.x + this.width + epsilon && rect.y < this.y + this.height + epsilon;\n },\n intersect: function() {\n var rect = Rectangle.read(arguments), x1 = Math.max(this.x, rect.x), y1 = Math.max(this.y, rect.y), x2 = Math.min(this.x + this.width, rect.x + rect.width), y2 = Math.min(this.y + this.height, rect.y + rect.height);\n return new Rectangle(x1, y1, x2 - x1, y2 - y1);\n },\n unite: function() {\n var rect = Rectangle.read(arguments), x1 = Math.min(this.x, rect.x), y1 = Math.min(this.y, rect.y), x2 = Math.max(this.x + this.width, rect.x + rect.width), y2 = Math.max(this.y + this.height, rect.y + rect.height);\n return new Rectangle(x1, y1, x2 - x1, y2 - y1);\n },\n include: function() {\n var point = Point.read(arguments);\n var x1 = Math.min(this.x, point.x), y1 = Math.min(this.y, point.y), x2 = Math.max(this.x + this.width, point.x), y2 = Math.max(this.y + this.height, point.y);\n return new Rectangle(x1, y1, x2 - x1, y2 - y1);\n },\n expand: function() {\n var amount = Size.read(arguments), hor = amount.width, ver = amount.height;\n return new Rectangle(this.x - hor / 2, this.y - ver / 2, this.width + hor, this.height + ver);\n },\n scale: function(hor, ver) {\n return this.expand(this.width * hor - this.width, this.height * (ver === undefined ? hor : ver) - this.height);\n }\n }, Base.each([\n [\n \"Top\",\n \"Left\"\n ],\n [\n \"Top\",\n \"Right\"\n ],\n [\n \"Bottom\",\n \"Left\"\n ],\n [\n \"Bottom\",\n \"Right\"\n ],\n [\n \"Left\",\n \"Center\"\n ],\n [\n \"Top\",\n \"Center\"\n ],\n [\n \"Right\",\n \"Center\"\n ],\n [\n \"Bottom\",\n \"Center\"\n ]\n ], function(parts, index) {\n var part = parts.join(\"\"), xFirst = /^[RL]/.test(part);\n if (index >= 4) parts[1] += xFirst ? \"Y\" : \"X\";\n var x = parts[xFirst ? 0 : 1], y = parts[xFirst ? 1 : 0], getX = \"get\" + x, getY = \"get\" + y, setX = \"set\" + x, setY = \"set\" + y, get = \"get\" + part, set = \"set\" + part;\n this[get] = function(_dontLink) {\n var ctor = _dontLink ? Point : LinkedPoint;\n return new ctor(this[getX](), this[getY](), this, set);\n };\n this[set] = function() {\n var point = Point.read(arguments);\n this[setX](point.x);\n this[setY](point.y);\n };\n }, {\n beans: true\n }));\n var LinkedRectangle = Rectangle.extend({\n initialize: function Rectangle(x, y, width, height, owner, setter) {\n this._set(x, y, width, height, true);\n this._owner = owner;\n this._setter = setter;\n },\n _set: function(x, y, width, height, _dontNotify) {\n this._x = x;\n this._y = y;\n this._width = width;\n this._height = height;\n if (!_dontNotify) this._owner[this._setter](this);\n return this;\n }\n }, new function() {\n var proto = Rectangle.prototype;\n return Base.each([\n \"x\",\n \"y\",\n \"width\",\n \"height\"\n ], function(key) {\n var part = Base.capitalize(key), internal = \"_\" + key;\n this[\"get\" + part] = function() {\n return this[internal];\n };\n this[\"set\" + part] = function(value) {\n this[internal] = value;\n if (!this._dontNotify) this._owner[this._setter](this);\n };\n }, Base.each([\n \"Point\",\n \"Size\",\n \"Center\",\n \"Left\",\n \"Top\",\n \"Right\",\n \"Bottom\",\n \"CenterX\",\n \"CenterY\",\n \"TopLeft\",\n \"TopRight\",\n \"BottomLeft\",\n \"BottomRight\",\n \"LeftCenter\",\n \"TopCenter\",\n \"RightCenter\",\n \"BottomCenter\"\n ], function(key) {\n var name = \"set\" + key;\n this[name] = function() {\n this._dontNotify = true;\n proto[name].apply(this, arguments);\n this._dontNotify = false;\n this._owner[this._setter](this);\n };\n }, {\n isSelected: function() {\n return !!(this._owner._selection & 2);\n },\n setSelected: function(selected) {\n var owner = this._owner;\n if (owner._changeSelection) owner._changeSelection(2, selected);\n }\n }));\n });\n var Matrix = Base.extend({\n _class: \"Matrix\",\n initialize: function Matrix(arg, _dontNotify) {\n var args = arguments, count = args.length, ok = true;\n if (count >= 6) this._set.apply(this, args);\n else if (count === 1 || count === 2) {\n if (arg instanceof Matrix) this._set(arg._a, arg._b, arg._c, arg._d, arg._tx, arg._ty, _dontNotify);\n else if (Array.isArray(arg)) this._set.apply(this, _dontNotify ? arg.concat([\n _dontNotify\n ]) : arg);\n else ok = false;\n } else if (!count) this.reset();\n else ok = false;\n if (!ok) throw new Error(\"Unsupported matrix parameters\");\n return this;\n },\n set: \"#initialize\",\n _set: function(a, b, c, d, tx, ty, _dontNotify) {\n this._a = a;\n this._b = b;\n this._c = c;\n this._d = d;\n this._tx = tx;\n this._ty = ty;\n if (!_dontNotify) this._changed();\n return this;\n },\n _serialize: function(options, dictionary) {\n return Base.serialize(this.getValues(), options, true, dictionary);\n },\n _changed: function() {\n var owner = this._owner;\n if (owner) {\n if (owner._applyMatrix) owner.transform(null, true);\n else owner._changed(25);\n }\n },\n clone: function() {\n return new Matrix(this._a, this._b, this._c, this._d, this._tx, this._ty);\n },\n equals: function(mx) {\n return mx === this || mx && this._a === mx._a && this._b === mx._b && this._c === mx._c && this._d === mx._d && this._tx === mx._tx && this._ty === mx._ty;\n },\n toString: function() {\n var f = Formatter.instance;\n return \"[[\" + [\n f.number(this._a),\n f.number(this._c),\n f.number(this._tx)\n ].join(\", \") + \"], [\" + [\n f.number(this._b),\n f.number(this._d),\n f.number(this._ty)\n ].join(\", \") + \"]]\";\n },\n reset: function(_dontNotify) {\n this._a = this._d = 1;\n this._b = this._c = this._tx = this._ty = 0;\n if (!_dontNotify) this._changed();\n return this;\n },\n apply: function(recursively, _setApplyMatrix) {\n var owner = this._owner;\n if (owner) {\n owner.transform(null, Base.pick(recursively, true), _setApplyMatrix);\n return this.isIdentity();\n }\n return false;\n },\n translate: function() {\n var point = Point.read(arguments), x = point.x, y = point.y;\n this._tx += x * this._a + y * this._c;\n this._ty += x * this._b + y * this._d;\n this._changed();\n return this;\n },\n scale: function() {\n var args = arguments, scale = Point.read(args), center = Point.read(args, 0, {\n readNull: true\n });\n if (center) this.translate(center);\n this._a *= scale.x;\n this._b *= scale.x;\n this._c *= scale.y;\n this._d *= scale.y;\n if (center) this.translate(center.negate());\n this._changed();\n return this;\n },\n rotate: function(angle) {\n angle *= Math.PI / 180;\n var center = Point.read(arguments, 1), x = center.x, y = center.y, cos = Math.cos(angle), sin = Math.sin(angle), tx = x - x * cos + y * sin, ty = y - x * sin - y * cos, a = this._a, b = this._b, c = this._c, d = this._d;\n this._a = cos * a + sin * c;\n this._b = cos * b + sin * d;\n this._c = -sin * a + cos * c;\n this._d = -sin * b + cos * d;\n this._tx += tx * a + ty * c;\n this._ty += tx * b + ty * d;\n this._changed();\n return this;\n },\n shear: function() {\n var args = arguments, shear = Point.read(args), center = Point.read(args, 0, {\n readNull: true\n });\n if (center) this.translate(center);\n var a = this._a, b = this._b;\n this._a += shear.y * this._c;\n this._b += shear.y * this._d;\n this._c += shear.x * a;\n this._d += shear.x * b;\n if (center) this.translate(center.negate());\n this._changed();\n return this;\n },\n skew: function() {\n var args = arguments, skew = Point.read(args), center = Point.read(args, 0, {\n readNull: true\n }), toRadians = Math.PI / 180, shear = new Point(Math.tan(skew.x * toRadians), Math.tan(skew.y * toRadians));\n return this.shear(shear, center);\n },\n append: function(mx, _dontNotify) {\n if (mx) {\n var a1 = this._a, b1 = this._b, c1 = this._c, d1 = this._d, a2 = mx._a, b2 = mx._c, c2 = mx._b, d2 = mx._d, tx2 = mx._tx, ty2 = mx._ty;\n this._a = a2 * a1 + c2 * c1;\n this._c = b2 * a1 + d2 * c1;\n this._b = a2 * b1 + c2 * d1;\n this._d = b2 * b1 + d2 * d1;\n this._tx += tx2 * a1 + ty2 * c1;\n this._ty += tx2 * b1 + ty2 * d1;\n if (!_dontNotify) this._changed();\n }\n return this;\n },\n prepend: function(mx, _dontNotify) {\n if (mx) {\n var a1 = this._a, b1 = this._b, c1 = this._c, d1 = this._d, tx1 = this._tx, ty1 = this._ty, a2 = mx._a, b2 = mx._c, c2 = mx._b, d2 = mx._d, tx2 = mx._tx, ty2 = mx._ty;\n this._a = a2 * a1 + b2 * b1;\n this._c = a2 * c1 + b2 * d1;\n this._b = c2 * a1 + d2 * b1;\n this._d = c2 * c1 + d2 * d1;\n this._tx = a2 * tx1 + b2 * ty1 + tx2;\n this._ty = c2 * tx1 + d2 * ty1 + ty2;\n if (!_dontNotify) this._changed();\n }\n return this;\n },\n appended: function(mx) {\n return this.clone().append(mx);\n },\n prepended: function(mx) {\n return this.clone().prepend(mx);\n },\n invert: function() {\n var a = this._a, b = this._b, c = this._c, d = this._d, tx = this._tx, ty = this._ty, det = a * d - b * c, res = null;\n if (det && !isNaN(det) && isFinite(tx) && isFinite(ty)) {\n this._a = d / det;\n this._b = -b / det;\n this._c = -c / det;\n this._d = a / det;\n this._tx = (c * ty - d * tx) / det;\n this._ty = (b * tx - a * ty) / det;\n res = this;\n }\n return res;\n },\n inverted: function() {\n return this.clone().invert();\n },\n concatenate: \"#append\",\n preConcatenate: \"#prepend\",\n chain: \"#appended\",\n _shiftless: function() {\n return new Matrix(this._a, this._b, this._c, this._d, 0, 0);\n },\n _orNullIfIdentity: function() {\n return this.isIdentity() ? null : this;\n },\n isIdentity: function() {\n return this._a === 1 && this._b === 0 && this._c === 0 && this._d === 1 && this._tx === 0 && this._ty === 0;\n },\n isInvertible: function() {\n var det = this._a * this._d - this._c * this._b;\n return det && !isNaN(det) && isFinite(this._tx) && isFinite(this._ty);\n },\n isSingular: function() {\n return !this.isInvertible();\n },\n transform: function(src, dst, count) {\n return arguments.length < 3 ? this._transformPoint(Point.read(arguments)) : this._transformCoordinates(src, dst, count);\n },\n _transformPoint: function(point, dest, _dontNotify) {\n var x = point.x, y = point.y;\n if (!dest) dest = new Point();\n return dest._set(x * this._a + y * this._c + this._tx, x * this._b + y * this._d + this._ty, _dontNotify);\n },\n _transformCoordinates: function(src, dst, count) {\n for(var i = 0, max = 2 * count; i < max; i += 2){\n var x = src[i], y = src[i + 1];\n dst[i] = x * this._a + y * this._c + this._tx;\n dst[i + 1] = x * this._b + y * this._d + this._ty;\n }\n return dst;\n },\n _transformCorners: function(rect) {\n var x1 = rect.x, y1 = rect.y, x2 = x1 + rect.width, y2 = y1 + rect.height, coords = [\n x1,\n y1,\n x2,\n y1,\n x2,\n y2,\n x1,\n y2\n ];\n return this._transformCoordinates(coords, coords, 4);\n },\n _transformBounds: function(bounds, dest, _dontNotify) {\n var coords = this._transformCorners(bounds), min = coords.slice(0, 2), max = min.slice();\n for(var i = 2; i < 8; i++){\n var val = coords[i], j = i & 1;\n if (val < min[j]) min[j] = val;\n else if (val > max[j]) max[j] = val;\n }\n if (!dest) dest = new Rectangle();\n return dest._set(min[0], min[1], max[0] - min[0], max[1] - min[1], _dontNotify);\n },\n inverseTransform: function() {\n return this._inverseTransform(Point.read(arguments));\n },\n _inverseTransform: function(point, dest, _dontNotify) {\n var a = this._a, b = this._b, c = this._c, d = this._d, tx = this._tx, ty = this._ty, det = a * d - b * c, res = null;\n if (det && !isNaN(det) && isFinite(tx) && isFinite(ty)) {\n var x = point.x - this._tx, y = point.y - this._ty;\n if (!dest) dest = new Point();\n res = dest._set((x * d - y * c) / det, (y * a - x * b) / det, _dontNotify);\n }\n return res;\n },\n decompose: function() {\n var a = this._a, b = this._b, c = this._c, d = this._d, det = a * d - b * c, sqrt = Math.sqrt, atan2 = Math.atan2, degrees = 180 / Math.PI, rotate, scale, skew;\n if (a !== 0 || b !== 0) {\n var r = sqrt(a * a + b * b);\n rotate = Math.acos(a / r) * (b > 0 ? 1 : -1);\n scale = [\n r,\n det / r\n ];\n skew = [\n atan2(a * c + b * d, r * r),\n 0\n ];\n } else if (c !== 0 || d !== 0) {\n var s = sqrt(c * c + d * d);\n rotate = Math.asin(c / s) * (d > 0 ? 1 : -1);\n scale = [\n det / s,\n s\n ];\n skew = [\n 0,\n atan2(a * c + b * d, s * s)\n ];\n } else {\n rotate = 0;\n skew = scale = [\n 0,\n 0\n ];\n }\n return {\n translation: this.getTranslation(),\n rotation: rotate * degrees,\n scaling: new Point(scale),\n skewing: new Point(skew[0] * degrees, skew[1] * degrees)\n };\n },\n getValues: function() {\n return [\n this._a,\n this._b,\n this._c,\n this._d,\n this._tx,\n this._ty\n ];\n },\n getTranslation: function() {\n return new Point(this._tx, this._ty);\n },\n getScaling: function() {\n return this.decompose().scaling;\n },\n getRotation: function() {\n return this.decompose().rotation;\n },\n applyToContext: function(ctx) {\n if (!this.isIdentity()) ctx.transform(this._a, this._b, this._c, this._d, this._tx, this._ty);\n }\n }, Base.each([\n \"a\",\n \"b\",\n \"c\",\n \"d\",\n \"tx\",\n \"ty\"\n ], function(key) {\n var part = Base.capitalize(key), prop = \"_\" + key;\n this[\"get\" + part] = function() {\n return this[prop];\n };\n this[\"set\" + part] = function(value) {\n this[prop] = value;\n this._changed();\n };\n }, {}));\n var Line = Base.extend({\n _class: \"Line\",\n initialize: function Line(arg0, arg1, arg2, arg3, arg4) {\n var asVector = false;\n if (arguments.length >= 4) {\n this._px = arg0;\n this._py = arg1;\n this._vx = arg2;\n this._vy = arg3;\n asVector = arg4;\n } else {\n this._px = arg0.x;\n this._py = arg0.y;\n this._vx = arg1.x;\n this._vy = arg1.y;\n asVector = arg2;\n }\n if (!asVector) {\n this._vx -= this._px;\n this._vy -= this._py;\n }\n },\n getPoint: function() {\n return new Point(this._px, this._py);\n },\n getVector: function() {\n return new Point(this._vx, this._vy);\n },\n getLength: function() {\n return this.getVector().getLength();\n },\n intersect: function(line, isInfinite) {\n return Line.intersect(this._px, this._py, this._vx, this._vy, line._px, line._py, line._vx, line._vy, true, isInfinite);\n },\n getSide: function(point, isInfinite) {\n return Line.getSide(this._px, this._py, this._vx, this._vy, point.x, point.y, true, isInfinite);\n },\n getDistance: function(point) {\n return Math.abs(this.getSignedDistance(point));\n },\n getSignedDistance: function(point) {\n return Line.getSignedDistance(this._px, this._py, this._vx, this._vy, point.x, point.y, true);\n },\n isCollinear: function(line) {\n return Point.isCollinear(this._vx, this._vy, line._vx, line._vy);\n },\n isOrthogonal: function(line) {\n return Point.isOrthogonal(this._vx, this._vy, line._vx, line._vy);\n },\n statics: {\n intersect: function(p1x, p1y, v1x, v1y, p2x, p2y, v2x, v2y, asVector, isInfinite) {\n if (!asVector) {\n v1x -= p1x;\n v1y -= p1y;\n v2x -= p2x;\n v2y -= p2y;\n }\n var cross = v1x * v2y - v1y * v2x;\n if (!Numerical.isMachineZero(cross)) {\n var dx = p1x - p2x, dy = p1y - p2y, u1 = (v2x * dy - v2y * dx) / cross, u2 = (v1x * dy - v1y * dx) / cross, epsilon = 1e-12, uMin = -epsilon, uMax = 1 + epsilon;\n if (isInfinite || uMin < u1 && u1 < uMax && uMin < u2 && u2 < uMax) {\n if (!isInfinite) u1 = u1 <= 0 ? 0 : u1 >= 1 ? 1 : u1;\n return new Point(p1x + u1 * v1x, p1y + u1 * v1y);\n }\n }\n },\n getSide: function(px, py, vx, vy, x, y, asVector, isInfinite) {\n if (!asVector) {\n vx -= px;\n vy -= py;\n }\n var v2x = x - px, v2y = y - py, ccw = v2x * vy - v2y * vx;\n if (!isInfinite && Numerical.isMachineZero(ccw)) {\n ccw = (v2x * vx + v2x * vx) / (vx * vx + vy * vy);\n if (ccw >= 0 && ccw <= 1) ccw = 0;\n }\n return ccw < 0 ? -1 : ccw > 0 ? 1 : 0;\n },\n getSignedDistance: function(px, py, vx, vy, x, y, asVector) {\n if (!asVector) {\n vx -= px;\n vy -= py;\n }\n return vx === 0 ? vy > 0 ? x - px : px - x : vy === 0 ? vx < 0 ? y - py : py - y : ((x - px) * vy - (y - py) * vx) / (vy > vx ? vy * Math.sqrt(1 + vx * vx / (vy * vy)) : vx * Math.sqrt(1 + vy * vy / (vx * vx)));\n },\n getDistance: function(px, py, vx, vy, x, y, asVector) {\n return Math.abs(Line.getSignedDistance(px, py, vx, vy, x, y, asVector));\n }\n }\n });\n var Project = PaperScopeItem.extend({\n _class: \"Project\",\n _list: \"projects\",\n _reference: \"project\",\n _compactSerialize: true,\n initialize: function Project(element) {\n PaperScopeItem.call(this, true);\n this._children = [];\n this._namedChildren = {};\n this._activeLayer = null;\n this._currentStyle = new Style(null, null, this);\n this._view = View.create(this, element || CanvasProvider.getCanvas(1, 1));\n this._selectionItems = {};\n this._selectionCount = 0;\n this._updateVersion = 0;\n },\n _serialize: function(options, dictionary) {\n return Base.serialize(this._children, options, true, dictionary);\n },\n _changed: function(flags, item) {\n if (flags & 1) {\n var view = this._view;\n if (view) {\n view._needsUpdate = true;\n if (!view._requested && view._autoUpdate) view.requestUpdate();\n }\n }\n var changes = this._changes;\n if (changes && item) {\n var changesById = this._changesById, id = item._id, entry = changesById[id];\n if (entry) entry.flags |= flags;\n else changes.push(changesById[id] = {\n item: item,\n flags: flags\n });\n }\n },\n clear: function() {\n var children = this._children;\n for(var i = children.length - 1; i >= 0; i--)children[i].remove();\n },\n isEmpty: function() {\n return !this._children.length;\n },\n remove: function remove() {\n if (!remove.base.call(this)) return false;\n if (this._view) this._view.remove();\n return true;\n },\n getView: function() {\n return this._view;\n },\n getCurrentStyle: function() {\n return this._currentStyle;\n },\n setCurrentStyle: function(style) {\n this._currentStyle.set(style);\n },\n getIndex: function() {\n return this._index;\n },\n getOptions: function() {\n return this._scope.settings;\n },\n getLayers: function() {\n return this._children;\n },\n getActiveLayer: function() {\n return this._activeLayer || new Layer({\n project: this,\n insert: true\n });\n },\n getSymbolDefinitions: function() {\n var definitions = [], ids = {};\n this.getItems({\n class: SymbolItem,\n match: function(item) {\n var definition = item._definition, id = definition._id;\n if (!ids[id]) {\n ids[id] = true;\n definitions.push(definition);\n }\n return false;\n }\n });\n return definitions;\n },\n getSymbols: \"getSymbolDefinitions\",\n getSelectedItems: function() {\n var selectionItems = this._selectionItems, items = [];\n for(var id in selectionItems){\n var item = selectionItems[id], selection = item._selection;\n if (selection & 1 && item.isInserted()) items.push(item);\n else if (!selection) this._updateSelection(item);\n }\n return items;\n },\n _updateSelection: function(item) {\n var id = item._id, selectionItems = this._selectionItems;\n if (item._selection) {\n if (selectionItems[id] !== item) {\n this._selectionCount++;\n selectionItems[id] = item;\n }\n } else if (selectionItems[id] === item) {\n this._selectionCount--;\n delete selectionItems[id];\n }\n },\n selectAll: function() {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)children[i].setFullySelected(true);\n },\n deselectAll: function() {\n var selectionItems = this._selectionItems;\n for(var i in selectionItems)selectionItems[i].setFullySelected(false);\n },\n addLayer: function(layer) {\n return this.insertLayer(undefined, layer);\n },\n insertLayer: function(index, layer) {\n if (layer instanceof Layer) {\n layer._remove(false, true);\n Base.splice(this._children, [\n layer\n ], index, 0);\n layer._setProject(this, true);\n var name = layer._name;\n if (name) layer.setName(name);\n if (this._changes) layer._changed(5);\n if (!this._activeLayer) this._activeLayer = layer;\n } else layer = null;\n return layer;\n },\n _insertItem: function(index, item, _created) {\n item = this.insertLayer(index, item) || (this._activeLayer || this._insertItem(undefined, new Layer(Item.NO_INSERT), true)).insertChild(index, item);\n if (_created && item.activate) item.activate();\n return item;\n },\n getItems: function(options) {\n return Item._getItems(this, options);\n },\n getItem: function(options) {\n return Item._getItems(this, options, null, null, true)[0] || null;\n },\n importJSON: function(json) {\n this.activate();\n var layer = this._activeLayer;\n return Base.importJSON(json, layer && layer.isEmpty() && layer);\n },\n removeOn: function(type) {\n var sets = this._removeSets;\n if (sets) {\n if (type === \"mouseup\") sets.mousedrag = null;\n var set = sets[type];\n if (set) {\n for(var id in set){\n var item = set[id];\n for(var key in sets){\n var other = sets[key];\n if (other && other != set) delete other[item._id];\n }\n item.remove();\n }\n sets[type] = null;\n }\n }\n },\n draw: function(ctx, matrix, pixelRatio) {\n this._updateVersion++;\n ctx.save();\n matrix.applyToContext(ctx);\n var children = this._children, param = new Base({\n offset: new Point(0, 0),\n pixelRatio: pixelRatio,\n viewMatrix: matrix.isIdentity() ? null : matrix,\n matrices: [\n new Matrix()\n ],\n updateMatrix: true\n });\n for(var i = 0, l = children.length; i < l; i++)children[i].draw(ctx, param);\n ctx.restore();\n if (this._selectionCount > 0) {\n ctx.save();\n ctx.strokeWidth = 1;\n var items = this._selectionItems, size = this._scope.settings.handleSize, version = this._updateVersion;\n for(var id in items)items[id]._drawSelection(ctx, matrix, size, items, version);\n ctx.restore();\n }\n }\n });\n var Item = Base.extend(Emitter, {\n statics: {\n extend: function extend(src) {\n if (src._serializeFields) src._serializeFields = Base.set({}, this.prototype._serializeFields, src._serializeFields);\n return extend.base.apply(this, arguments);\n },\n INSERT: {\n insert: true\n },\n NO_INSERT: {\n insert: false\n }\n },\n _class: \"Item\",\n _name: null,\n _applyMatrix: true,\n _canApplyMatrix: true,\n _canScaleStroke: false,\n _pivot: null,\n _visible: true,\n _blendMode: \"normal\",\n _opacity: 1,\n _locked: false,\n _guide: false,\n _clipMask: false,\n _selection: 0,\n _selectBounds: true,\n _selectChildren: false,\n _serializeFields: {\n name: null,\n applyMatrix: null,\n matrix: new Matrix(),\n pivot: null,\n visible: true,\n blendMode: \"normal\",\n opacity: 1,\n locked: false,\n guide: false,\n clipMask: false,\n selected: false,\n data: {}\n },\n _prioritize: [\n \"applyMatrix\"\n ]\n }, new function() {\n var handlers = [\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseDrag\",\n \"onClick\",\n \"onDoubleClick\",\n \"onMouseMove\",\n \"onMouseEnter\",\n \"onMouseLeave\"\n ];\n return Base.each(handlers, function(name) {\n this._events[name] = {\n install: function(type) {\n this.getView()._countItemEvent(type, 1);\n },\n uninstall: function(type) {\n this.getView()._countItemEvent(type, -1);\n }\n };\n }, {\n _events: {\n onFrame: {\n install: function() {\n this.getView()._animateItem(this, true);\n },\n uninstall: function() {\n this.getView()._animateItem(this, false);\n }\n },\n onLoad: {},\n onError: {}\n },\n statics: {\n _itemHandlers: handlers\n }\n });\n }, {\n initialize: function Item() {},\n _initialize: function(props, point) {\n var hasProps = props && Base.isPlainObject(props), internal = hasProps && props.internal === true, matrix = this._matrix = new Matrix(), project = hasProps && props.project || paper.project, settings = paper.settings;\n this._id = internal ? null : UID.get();\n this._parent = this._index = null;\n this._applyMatrix = this._canApplyMatrix && settings.applyMatrix;\n if (point) matrix.translate(point);\n matrix._owner = this;\n this._style = new Style(project._currentStyle, this, project);\n if (internal || hasProps && props.insert == false || !settings.insertItems && !(hasProps && props.insert == true)) this._setProject(project);\n else (hasProps && props.parent || project)._insertItem(undefined, this, true);\n if (hasProps && props !== Item.NO_INSERT && props !== Item.INSERT) this.set(props, {\n internal: true,\n insert: true,\n project: true,\n parent: true\n });\n return hasProps;\n },\n _serialize: function(options, dictionary) {\n var props = {}, that = this;\n function serialize(fields) {\n for(var key in fields){\n var value = that[key];\n if (!Base.equals(value, key === \"leading\" ? fields.fontSize * 1.2 : fields[key])) props[key] = Base.serialize(value, options, key !== \"data\", dictionary);\n }\n }\n serialize(this._serializeFields);\n if (!(this instanceof Group)) serialize(this._style._defaults);\n return [\n this._class,\n props\n ];\n },\n _changed: function(flags) {\n var symbol = this._symbol, cacheParent = this._parent || symbol, project = this._project;\n if (flags & 8) this._bounds = this._position = this._decomposed = undefined;\n if (flags & 16) this._globalMatrix = undefined;\n if (cacheParent && flags & 72) Item._clearBoundsCache(cacheParent);\n if (flags & 2) Item._clearBoundsCache(this);\n if (project) project._changed(flags, this);\n if (symbol) symbol._changed(flags);\n },\n getId: function() {\n return this._id;\n },\n getName: function() {\n return this._name;\n },\n setName: function(name) {\n if (this._name) this._removeNamed();\n if (name === +name + \"\") throw new Error(\"Names consisting only of numbers are not supported.\");\n var owner = this._getOwner();\n if (name && owner) {\n var children = owner._children, namedChildren = owner._namedChildren;\n (namedChildren[name] = namedChildren[name] || []).push(this);\n if (!(name in children)) children[name] = this;\n }\n this._name = name || undefined;\n this._changed(256);\n },\n getStyle: function() {\n return this._style;\n },\n setStyle: function(style) {\n this.getStyle().set(style);\n }\n }, Base.each([\n \"locked\",\n \"visible\",\n \"blendMode\",\n \"opacity\",\n \"guide\"\n ], function(name) {\n var part = Base.capitalize(name), key = \"_\" + name, flags = {\n locked: 256,\n visible: 265\n };\n this[\"get\" + part] = function() {\n return this[key];\n };\n this[\"set\" + part] = function(value) {\n if (value != this[key]) {\n this[key] = value;\n this._changed(flags[name] || 257);\n }\n };\n }, {}), {\n beans: true,\n getSelection: function() {\n return this._selection;\n },\n setSelection: function(selection) {\n if (selection !== this._selection) {\n this._selection = selection;\n var project = this._project;\n if (project) {\n project._updateSelection(this);\n this._changed(257);\n }\n }\n },\n _changeSelection: function(flag, selected) {\n var selection = this._selection;\n this.setSelection(selected ? selection | flag : selection & ~flag);\n },\n isSelected: function() {\n if (this._selectChildren) {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)if (children[i].isSelected()) return true;\n }\n return !!(this._selection & 1);\n },\n setSelected: function(selected) {\n if (this._selectChildren) {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)children[i].setSelected(selected);\n }\n this._changeSelection(1, selected);\n },\n isFullySelected: function() {\n var children = this._children, selected = !!(this._selection & 1);\n if (children && selected) {\n for(var i = 0, l = children.length; i < l; i++)if (!children[i].isFullySelected()) return false;\n return true;\n }\n return selected;\n },\n setFullySelected: function(selected) {\n var children = this._children;\n if (children) for(var i = 0, l = children.length; i < l; i++)children[i].setFullySelected(selected);\n this._changeSelection(1, selected);\n },\n isClipMask: function() {\n return this._clipMask;\n },\n setClipMask: function(clipMask) {\n if (this._clipMask != (clipMask = !!clipMask)) {\n this._clipMask = clipMask;\n if (clipMask) {\n this.setFillColor(null);\n this.setStrokeColor(null);\n }\n this._changed(257);\n if (this._parent) this._parent._changed(2048);\n }\n },\n getData: function() {\n if (!this._data) this._data = {};\n return this._data;\n },\n setData: function(data) {\n this._data = data;\n },\n getPosition: function(_dontLink) {\n var ctor = _dontLink ? Point : LinkedPoint;\n var position = this._position || (this._position = this._getPositionFromBounds());\n return new ctor(position.x, position.y, this, \"setPosition\");\n },\n setPosition: function() {\n this.translate(Point.read(arguments).subtract(this.getPosition(true)));\n },\n _getPositionFromBounds: function(bounds) {\n return this._pivot ? this._matrix._transformPoint(this._pivot) : (bounds || this.getBounds()).getCenter(true);\n },\n getPivot: function() {\n var pivot = this._pivot;\n return pivot ? new LinkedPoint(pivot.x, pivot.y, this, \"setPivot\") : null;\n },\n setPivot: function() {\n this._pivot = Point.read(arguments, 0, {\n clone: true,\n readNull: true\n });\n this._position = undefined;\n }\n }, Base.each({\n getStrokeBounds: {\n stroke: true\n },\n getHandleBounds: {\n handle: true\n },\n getInternalBounds: {\n internal: true\n }\n }, function(options, key) {\n this[key] = function(matrix) {\n return this.getBounds(matrix, options);\n };\n }, {\n beans: true,\n getBounds: function(matrix, options) {\n var hasMatrix = options || matrix instanceof Matrix, opts = Base.set({}, hasMatrix ? options : matrix, this._boundsOptions);\n if (!opts.stroke || this.getStrokeScaling()) opts.cacheItem = this;\n var rect = this._getCachedBounds(hasMatrix && matrix, opts).rect;\n return !arguments.length ? new LinkedRectangle(rect.x, rect.y, rect.width, rect.height, this, \"setBounds\") : rect;\n },\n setBounds: function() {\n var rect = Rectangle.read(arguments), bounds = this.getBounds(), _matrix = this._matrix, matrix = new Matrix(), center = rect.getCenter();\n matrix.translate(center);\n if (rect.width != bounds.width || rect.height != bounds.height) {\n if (!_matrix.isInvertible()) {\n _matrix.set(_matrix._backup || new Matrix().translate(_matrix.getTranslation()));\n bounds = this.getBounds();\n }\n matrix.scale(bounds.width !== 0 ? rect.width / bounds.width : 0, bounds.height !== 0 ? rect.height / bounds.height : 0);\n }\n center = bounds.getCenter();\n matrix.translate(-center.x, -center.y);\n this.transform(matrix);\n },\n _getBounds: function(matrix, options) {\n var children = this._children;\n if (!children || !children.length) return new Rectangle();\n Item._updateBoundsCache(this, options.cacheItem);\n return Item._getBounds(children, matrix, options);\n },\n _getBoundsCacheKey: function(options, internal) {\n return [\n options.stroke ? 1 : 0,\n options.handle ? 1 : 0,\n internal ? 1 : 0\n ].join(\"\");\n },\n _getCachedBounds: function(matrix, options, noInternal) {\n matrix = matrix && matrix._orNullIfIdentity();\n var internal = options.internal && !noInternal, cacheItem = options.cacheItem, _matrix = internal ? null : this._matrix._orNullIfIdentity(), cacheKey = cacheItem && (!matrix || matrix.equals(_matrix)) && this._getBoundsCacheKey(options, internal), bounds = this._bounds;\n Item._updateBoundsCache(this._parent || this._symbol, cacheItem);\n if (cacheKey && bounds && cacheKey in bounds) {\n var cached = bounds[cacheKey];\n return {\n rect: cached.rect.clone(),\n nonscaling: cached.nonscaling\n };\n }\n var res = this._getBounds(matrix || _matrix, options), rect = res.rect || res, style = this._style, nonscaling = res.nonscaling || style.hasStroke() && !style.getStrokeScaling();\n if (cacheKey) {\n if (!bounds) this._bounds = bounds = {};\n var cached = bounds[cacheKey] = {\n rect: rect.clone(),\n nonscaling: nonscaling,\n internal: internal\n };\n }\n return {\n rect: rect,\n nonscaling: nonscaling\n };\n },\n _getStrokeMatrix: function(matrix, options) {\n var parent = this.getStrokeScaling() ? null : options && options.internal ? this : this._parent || this._symbol && this._symbol._item, mx = parent ? parent.getViewMatrix().invert() : matrix;\n return mx && mx._shiftless();\n },\n statics: {\n _updateBoundsCache: function(parent, item) {\n if (parent && item) {\n var id = item._id, ref = parent._boundsCache = parent._boundsCache || {\n ids: {},\n list: []\n };\n if (!ref.ids[id]) {\n ref.list.push(item);\n ref.ids[id] = item;\n }\n }\n },\n _clearBoundsCache: function(item) {\n var cache = item._boundsCache;\n if (cache) {\n item._bounds = item._position = item._boundsCache = undefined;\n for(var i = 0, list = cache.list, l = list.length; i < l; i++){\n var other = list[i];\n if (other !== item) {\n other._bounds = other._position = undefined;\n if (other._boundsCache) Item._clearBoundsCache(other);\n }\n }\n }\n },\n _getBounds: function(items, matrix, options) {\n var x1 = Infinity, x2 = -x1, y1 = x1, y2 = x2, nonscaling = false;\n options = options || {};\n for(var i = 0, l = items.length; i < l; i++){\n var item = items[i];\n if (item._visible && !item.isEmpty(true)) {\n var bounds = item._getCachedBounds(matrix && matrix.appended(item._matrix), options, true), rect = bounds.rect;\n x1 = Math.min(rect.x, x1);\n y1 = Math.min(rect.y, y1);\n x2 = Math.max(rect.x + rect.width, x2);\n y2 = Math.max(rect.y + rect.height, y2);\n if (bounds.nonscaling) nonscaling = true;\n }\n }\n return {\n rect: isFinite(x1) ? new Rectangle(x1, y1, x2 - x1, y2 - y1) : new Rectangle(),\n nonscaling: nonscaling\n };\n }\n }\n }), {\n beans: true,\n _decompose: function() {\n return this._applyMatrix ? null : this._decomposed || (this._decomposed = this._matrix.decompose());\n },\n getRotation: function() {\n var decomposed = this._decompose();\n return decomposed ? decomposed.rotation : 0;\n },\n setRotation: function(rotation) {\n var current = this.getRotation();\n if (current != null && rotation != null) {\n var decomposed = this._decomposed;\n this.rotate(rotation - current);\n if (decomposed) {\n decomposed.rotation = rotation;\n this._decomposed = decomposed;\n }\n }\n },\n getScaling: function() {\n var decomposed = this._decompose(), s = decomposed && decomposed.scaling;\n return new LinkedPoint(s ? s.x : 1, s ? s.y : 1, this, \"setScaling\");\n },\n setScaling: function() {\n var current = this.getScaling(), scaling = Point.read(arguments, 0, {\n clone: true,\n readNull: true\n });\n if (current && scaling && !current.equals(scaling)) {\n var rotation = this.getRotation(), decomposed = this._decomposed, matrix = new Matrix(), isZero = Numerical.isZero;\n if (isZero(current.x) || isZero(current.y)) {\n matrix.translate(decomposed.translation);\n if (rotation) matrix.rotate(rotation);\n matrix.scale(scaling.x, scaling.y);\n this._matrix.set(matrix);\n } else {\n var center = this.getPosition(true);\n matrix.translate(center);\n if (rotation) matrix.rotate(rotation);\n matrix.scale(scaling.x / current.x, scaling.y / current.y);\n if (rotation) matrix.rotate(-rotation);\n matrix.translate(center.negate());\n this.transform(matrix);\n }\n if (decomposed) {\n decomposed.scaling = scaling;\n this._decomposed = decomposed;\n }\n }\n },\n getMatrix: function() {\n return this._matrix;\n },\n setMatrix: function() {\n var matrix = this._matrix;\n matrix.set.apply(matrix, arguments);\n },\n getGlobalMatrix: function(_dontClone) {\n var matrix = this._globalMatrix;\n if (matrix) {\n var parent = this._parent;\n var parents = [];\n while(parent){\n if (!parent._globalMatrix) {\n matrix = null;\n for(var i = 0, l = parents.length; i < l; i++)parents[i]._globalMatrix = null;\n break;\n }\n parents.push(parent);\n parent = parent._parent;\n }\n }\n if (!matrix) {\n matrix = this._globalMatrix = this._matrix.clone();\n var parent = this._parent;\n if (parent) matrix.prepend(parent.getGlobalMatrix(true));\n }\n return _dontClone ? matrix : matrix.clone();\n },\n getViewMatrix: function() {\n return this.getGlobalMatrix().prepend(this.getView()._matrix);\n },\n getApplyMatrix: function() {\n return this._applyMatrix;\n },\n setApplyMatrix: function(apply) {\n if (this._applyMatrix = this._canApplyMatrix && !!apply) this.transform(null, true);\n },\n getTransformContent: \"#getApplyMatrix\",\n setTransformContent: \"#setApplyMatrix\"\n }, {\n getProject: function() {\n return this._project;\n },\n _setProject: function(project, installEvents) {\n if (this._project !== project) {\n if (this._project) this._installEvents(false);\n this._project = project;\n var children = this._children;\n for(var i = 0, l = children && children.length; i < l; i++)children[i]._setProject(project);\n installEvents = true;\n }\n if (installEvents) this._installEvents(true);\n },\n getView: function() {\n return this._project._view;\n },\n _installEvents: function _installEvents(install) {\n _installEvents.base.call(this, install);\n var children = this._children;\n for(var i = 0, l = children && children.length; i < l; i++)children[i]._installEvents(install);\n },\n getLayer: function() {\n var parent = this;\n while(parent = parent._parent){\n if (parent instanceof Layer) return parent;\n }\n return null;\n },\n getParent: function() {\n return this._parent;\n },\n setParent: function(item) {\n return item.addChild(this);\n },\n _getOwner: \"#getParent\",\n getChildren: function() {\n return this._children;\n },\n setChildren: function(items) {\n this.removeChildren();\n this.addChildren(items);\n },\n getFirstChild: function() {\n return this._children && this._children[0] || null;\n },\n getLastChild: function() {\n return this._children && this._children[this._children.length - 1] || null;\n },\n getNextSibling: function() {\n var owner = this._getOwner();\n return owner && owner._children[this._index + 1] || null;\n },\n getPreviousSibling: function() {\n var owner = this._getOwner();\n return owner && owner._children[this._index - 1] || null;\n },\n getIndex: function() {\n return this._index;\n },\n setIndex: function(index) {\n var parent = this._parent, children = parent && parent._children;\n if (children) parent.insertChildren(index in children ? index : undefined, [\n this\n ]);\n },\n equals: function(item) {\n return item === this || item && this._class === item._class && this._style.equals(item._style) && this._matrix.equals(item._matrix) && this._locked === item._locked && this._visible === item._visible && this._blendMode === item._blendMode && this._opacity === item._opacity && this._clipMask === item._clipMask && this._guide === item._guide && this._equals(item) || false;\n },\n _equals: function(item) {\n return Base.equals(this._children, item._children);\n },\n clone: function(options) {\n var copy = new this.constructor(Item.NO_INSERT), children = this._children, insert = Base.pick(options ? options.insert : undefined, options === undefined || options === true), deep = Base.pick(options ? options.deep : undefined, true);\n if (children) copy.copyAttributes(this);\n if (!children || deep) copy.copyContent(this);\n if (!children) copy.copyAttributes(this);\n if (insert) copy.insertAbove(this);\n var name = this._name, parent = this._parent;\n if (name && parent) {\n var children = parent._children, orig = name, i = 1;\n while(children[name])name = orig + \" \" + i++;\n if (name !== orig) copy.setName(name);\n }\n return copy;\n },\n copyContent: function(source) {\n var children = source._children;\n for(var i = 0, l = children && children.length; i < l; i++)this.addChild(children[i].clone(false), true);\n },\n copyAttributes: function(source, excludeMatrix) {\n this.setStyle(source._style);\n var keys = [\n \"_locked\",\n \"_visible\",\n \"_blendMode\",\n \"_opacity\",\n \"_clipMask\",\n \"_guide\"\n ];\n for(var i = 0, l = keys.length; i < l; i++){\n var key = keys[i];\n if (source.hasOwnProperty(key)) this[key] = source[key];\n }\n if (!excludeMatrix) this._matrix.set(source._matrix, true);\n this.setApplyMatrix(source._applyMatrix);\n this.setPivot(source._pivot);\n this.setSelection(source._selection);\n var data = source._data, name = source._name;\n this._data = data ? Base.clone(data) : null;\n if (name) this.setName(name);\n },\n rasterize: function(arg0, arg1) {\n var resolution, insert, raster;\n if (Base.isPlainObject(arg0)) {\n resolution = arg0.resolution;\n insert = arg0.insert;\n raster = arg0.raster;\n } else {\n resolution = arg0;\n insert = arg1;\n }\n if (!raster) raster = new Raster(Item.NO_INSERT);\n var bounds = this.getStrokeBounds(), scale = (resolution || this.getView().getResolution()) / 72, topLeft = bounds.getTopLeft().floor(), bottomRight = bounds.getBottomRight().ceil(), boundsSize = new Size(bottomRight.subtract(topLeft)), rasterSize = boundsSize.multiply(scale);\n raster.setSize(rasterSize, true);\n if (!rasterSize.isZero()) {\n var ctx = raster.getContext(true), matrix = new Matrix().scale(scale).translate(topLeft.negate());\n ctx.save();\n matrix.applyToContext(ctx);\n this.draw(ctx, new Base({\n matrices: [\n matrix\n ]\n }));\n ctx.restore();\n }\n raster._matrix.set(new Matrix().translate(topLeft.add(boundsSize.divide(2))).scale(1 / scale));\n if (insert === undefined || insert) raster.insertAbove(this);\n return raster;\n },\n contains: function() {\n var matrix = this._matrix;\n return matrix.isInvertible() && !!this._contains(matrix._inverseTransform(Point.read(arguments)));\n },\n _contains: function(point) {\n var children = this._children;\n if (children) {\n for(var i = children.length - 1; i >= 0; i--){\n if (children[i].contains(point)) return true;\n }\n return false;\n }\n return point.isInside(this.getInternalBounds());\n },\n isInside: function() {\n return Rectangle.read(arguments).contains(this.getBounds());\n },\n _asPathItem: function() {\n return new Path.Rectangle({\n rectangle: this.getInternalBounds(),\n matrix: this._matrix,\n insert: false\n });\n },\n intersects: function(item, _matrix) {\n if (!(item instanceof Item)) return false;\n return this._asPathItem().getIntersections(item._asPathItem(), null, _matrix, true).length > 0;\n }\n }, new function() {\n function hitTest() {\n var args = arguments;\n return this._hitTest(Point.read(args), HitResult.getOptions(args));\n }\n function hitTestAll() {\n var args = arguments, point = Point.read(args), options = HitResult.getOptions(args), all = [];\n this._hitTest(point, new Base({\n all: all\n }, options));\n return all;\n }\n function hitTestChildren(point, options, viewMatrix, _exclude) {\n var children = this._children;\n if (children) for(var i = children.length - 1; i >= 0; i--){\n var child = children[i];\n var res = child !== _exclude && child._hitTest(point, options, viewMatrix);\n if (res && !options.all) return res;\n }\n return null;\n }\n Project.inject({\n hitTest: hitTest,\n hitTestAll: hitTestAll,\n _hitTest: hitTestChildren\n });\n return {\n hitTest: hitTest,\n hitTestAll: hitTestAll,\n _hitTestChildren: hitTestChildren\n };\n }, {\n _hitTest: function(point, options, parentViewMatrix) {\n if (this._locked || !this._visible || this._guide && !options.guides || this.isEmpty()) return null;\n var matrix = this._matrix, viewMatrix = parentViewMatrix ? parentViewMatrix.appended(matrix) : this.getGlobalMatrix().prepend(this.getView()._matrix), tolerance = Math.max(options.tolerance, 1e-12), tolerancePadding = options._tolerancePadding = new Size(Path._getStrokePadding(tolerance, matrix._shiftless().invert()));\n point = matrix._inverseTransform(point);\n if (!point || !this._children && !this.getBounds({\n internal: true,\n stroke: true,\n handle: true\n }).expand(tolerancePadding.multiply(2))._containsPoint(point)) return null;\n var checkSelf = !(options.guides && !this._guide || options.selected && !this.isSelected() || options.type && options.type !== Base.hyphenate(this._class) || options.class && !(this instanceof options.class)), match = options.match, that = this, bounds, res;\n function filter(hit) {\n if (hit && match && !match(hit)) hit = null;\n if (hit && options.all) options.all.push(hit);\n return hit;\n }\n function checkPoint(type, part) {\n var pt = part ? bounds[\"get\" + part]() : that.getPosition();\n if (point.subtract(pt).divide(tolerancePadding).length <= 1) return new HitResult(type, that, {\n name: part ? Base.hyphenate(part) : type,\n point: pt\n });\n }\n var checkPosition = options.position, checkCenter = options.center, checkBounds = options.bounds;\n if (checkSelf && this._parent && (checkPosition || checkCenter || checkBounds)) {\n if (checkCenter || checkBounds) bounds = this.getInternalBounds();\n res = checkPosition && checkPoint(\"position\") || checkCenter && checkPoint(\"center\", \"Center\");\n if (!res && checkBounds) {\n var points = [\n \"TopLeft\",\n \"TopRight\",\n \"BottomLeft\",\n \"BottomRight\",\n \"LeftCenter\",\n \"TopCenter\",\n \"RightCenter\",\n \"BottomCenter\"\n ];\n for(var i = 0; i < 8 && !res; i++)res = checkPoint(\"bounds\", points[i]);\n }\n res = filter(res);\n }\n if (!res) res = this._hitTestChildren(point, options, viewMatrix) || checkSelf && filter(this._hitTestSelf(point, options, viewMatrix, this.getStrokeScaling() ? null : viewMatrix._shiftless().invert())) || null;\n if (res && res.point) res.point = matrix.transform(res.point);\n return res;\n },\n _hitTestSelf: function(point, options) {\n if (options.fill && this.hasFill() && this._contains(point)) return new HitResult(\"fill\", this);\n },\n matches: function(name, compare) {\n function matchObject(obj1, obj2) {\n for(var i in obj1)if (obj1.hasOwnProperty(i)) {\n var val1 = obj1[i], val2 = obj2[i];\n if (Base.isPlainObject(val1) && Base.isPlainObject(val2)) {\n if (!matchObject(val1, val2)) return false;\n } else if (!Base.equals(val1, val2)) return false;\n }\n return true;\n }\n var type = typeof name;\n if (type === \"object\") {\n for(var key in name){\n if (name.hasOwnProperty(key) && !this.matches(key, name[key])) return false;\n }\n return true;\n } else if (type === \"function\") return name(this);\n else if (name === \"match\") return compare(this);\n else {\n var value = /^(empty|editable)$/.test(name) ? this[\"is\" + Base.capitalize(name)]() : name === \"type\" ? Base.hyphenate(this._class) : this[name];\n if (name === \"class\") {\n if (typeof compare === \"function\") return this instanceof compare;\n value = this._class;\n }\n if (typeof compare === \"function\") return !!compare(value);\n else if (compare) {\n if (compare.test) return compare.test(value);\n else if (Base.isPlainObject(compare)) return matchObject(compare, value);\n }\n return Base.equals(value, compare);\n }\n },\n getItems: function(options) {\n return Item._getItems(this, options, this._matrix);\n },\n getItem: function(options) {\n return Item._getItems(this, options, this._matrix, null, true)[0] || null;\n },\n statics: {\n _getItems: function _getItems(item, options, matrix, param, firstOnly) {\n if (!param) {\n var obj = typeof options === \"object\" && options, overlapping = obj && obj.overlapping, inside = obj && obj.inside, bounds = overlapping || inside, rect = bounds && Rectangle.read([\n bounds\n ]);\n param = {\n items: [],\n recursive: obj && obj.recursive !== false,\n inside: !!inside,\n overlapping: !!overlapping,\n rect: rect,\n path: overlapping && new Path.Rectangle({\n rectangle: rect,\n insert: false\n })\n };\n if (obj) options = Base.filter({}, options, {\n recursive: true,\n inside: true,\n overlapping: true\n });\n }\n var children = item._children, items = param.items, rect = param.rect;\n matrix = rect && (matrix || new Matrix());\n for(var i = 0, l = children && children.length; i < l; i++){\n var child = children[i], childMatrix = matrix && matrix.appended(child._matrix), add = true;\n if (rect) {\n var bounds = child.getBounds(childMatrix);\n if (!rect.intersects(bounds)) continue;\n if (!(rect.contains(bounds) || param.overlapping && (bounds.contains(rect) || param.path.intersects(child, childMatrix)))) add = false;\n }\n if (add && child.matches(options)) {\n items.push(child);\n if (firstOnly) break;\n }\n if (param.recursive !== false) _getItems(child, options, childMatrix, param, firstOnly);\n if (firstOnly && items.length > 0) break;\n }\n return items;\n }\n }\n }, {\n importJSON: function(json) {\n var res = Base.importJSON(json, this);\n return res !== this ? this.addChild(res) : res;\n },\n addChild: function(item) {\n return this.insertChild(undefined, item);\n },\n insertChild: function(index, item) {\n var res = item ? this.insertChildren(index, [\n item\n ]) : null;\n return res && res[0];\n },\n addChildren: function(items) {\n return this.insertChildren(this._children.length, items);\n },\n insertChildren: function(index, items) {\n var children = this._children;\n if (children && items && items.length > 0) {\n items = Base.slice(items);\n var inserted = {};\n for(var i = items.length - 1; i >= 0; i--){\n var item = items[i], id = item && item._id;\n if (!item || inserted[id]) items.splice(i, 1);\n else {\n item._remove(false, true);\n inserted[id] = true;\n }\n }\n Base.splice(children, items, index, 0);\n var project = this._project, notifySelf = project._changes;\n for(var i = 0, l = items.length; i < l; i++){\n var item = items[i], name = item._name;\n item._parent = this;\n item._setProject(project, true);\n if (name) item.setName(name);\n if (notifySelf) item._changed(5);\n }\n this._changed(11);\n } else items = null;\n return items;\n },\n _insertItem: \"#insertChild\",\n _insertAt: function(item, offset) {\n var owner = item && item._getOwner(), res = item !== this && owner ? this : null;\n if (res) {\n res._remove(false, true);\n owner._insertItem(item._index + offset, res);\n }\n return res;\n },\n insertAbove: function(item) {\n return this._insertAt(item, 1);\n },\n insertBelow: function(item) {\n return this._insertAt(item, 0);\n },\n sendToBack: function() {\n var owner = this._getOwner();\n return owner ? owner._insertItem(0, this) : null;\n },\n bringToFront: function() {\n var owner = this._getOwner();\n return owner ? owner._insertItem(undefined, this) : null;\n },\n appendTop: \"#addChild\",\n appendBottom: function(item) {\n return this.insertChild(0, item);\n },\n moveAbove: \"#insertAbove\",\n moveBelow: \"#insertBelow\",\n addTo: function(owner) {\n return owner._insertItem(undefined, this);\n },\n copyTo: function(owner) {\n return this.clone(false).addTo(owner);\n },\n reduce: function(options) {\n var children = this._children;\n if (children && children.length === 1) {\n var child = children[0].reduce(options);\n if (this._parent) {\n child.insertAbove(this);\n this.remove();\n } else child.remove();\n return child;\n }\n return this;\n },\n _removeNamed: function() {\n var owner = this._getOwner();\n if (owner) {\n var children = owner._children, namedChildren = owner._namedChildren, name = this._name, namedArray = namedChildren[name], index = namedArray ? namedArray.indexOf(this) : -1;\n if (index !== -1) {\n if (children[name] == this) delete children[name];\n namedArray.splice(index, 1);\n if (namedArray.length) children[name] = namedArray[0];\n else delete namedChildren[name];\n }\n }\n },\n _remove: function(notifySelf, notifyParent) {\n var owner = this._getOwner(), project = this._project, index = this._index;\n if (this._style) this._style._dispose();\n if (owner) {\n if (this._name) this._removeNamed();\n if (index != null) {\n if (project._activeLayer === this) project._activeLayer = this.getNextSibling() || this.getPreviousSibling();\n Base.splice(owner._children, null, index, 1);\n }\n this._installEvents(false);\n if (notifySelf && project._changes) this._changed(5);\n if (notifyParent) owner._changed(11, this);\n this._parent = null;\n return true;\n }\n return false;\n },\n remove: function() {\n return this._remove(true, true);\n },\n replaceWith: function(item) {\n var ok = item && item.insertBelow(this);\n if (ok) this.remove();\n return ok;\n },\n removeChildren: function(start, end) {\n if (!this._children) return null;\n start = start || 0;\n end = Base.pick(end, this._children.length);\n var removed = Base.splice(this._children, null, start, end - start);\n for(var i = removed.length - 1; i >= 0; i--)removed[i]._remove(true, false);\n if (removed.length > 0) this._changed(11);\n return removed;\n },\n clear: \"#removeChildren\",\n reverseChildren: function() {\n if (this._children) {\n this._children.reverse();\n for(var i = 0, l = this._children.length; i < l; i++)this._children[i]._index = i;\n this._changed(11);\n }\n },\n isEmpty: function(recursively) {\n var children = this._children;\n var numChildren = children ? children.length : 0;\n if (recursively) {\n for(var i = 0; i < numChildren; i++){\n if (!children[i].isEmpty(recursively)) return false;\n }\n return true;\n }\n return !numChildren;\n },\n isEditable: function() {\n var item = this;\n while(item){\n if (!item._visible || item._locked) return false;\n item = item._parent;\n }\n return true;\n },\n hasFill: function() {\n return this.getStyle().hasFill();\n },\n hasStroke: function() {\n return this.getStyle().hasStroke();\n },\n hasShadow: function() {\n return this.getStyle().hasShadow();\n },\n _getOrder: function(item) {\n function getList(item) {\n var list = [];\n do list.unshift(item);\n while (item = item._parent);\n return list;\n }\n var list1 = getList(this), list2 = getList(item);\n for(var i = 0, l = Math.min(list1.length, list2.length); i < l; i++){\n if (list1[i] != list2[i]) return list1[i]._index < list2[i]._index ? 1 : -1;\n }\n return 0;\n },\n hasChildren: function() {\n return this._children && this._children.length > 0;\n },\n isInserted: function() {\n return this._parent ? this._parent.isInserted() : false;\n },\n isAbove: function(item) {\n return this._getOrder(item) === -1;\n },\n isBelow: function(item) {\n return this._getOrder(item) === 1;\n },\n isParent: function(item) {\n return this._parent === item;\n },\n isChild: function(item) {\n return item && item._parent === this;\n },\n isDescendant: function(item) {\n var parent = this;\n while(parent = parent._parent){\n if (parent === item) return true;\n }\n return false;\n },\n isAncestor: function(item) {\n return item ? item.isDescendant(this) : false;\n },\n isSibling: function(item) {\n return this._parent === item._parent;\n },\n isGroupedWith: function(item) {\n var parent = this._parent;\n while(parent){\n if (parent._parent && /^(Group|Layer|CompoundPath)$/.test(parent._class) && item.isDescendant(parent)) return true;\n parent = parent._parent;\n }\n return false;\n }\n }, Base.each([\n \"rotate\",\n \"scale\",\n \"shear\",\n \"skew\"\n ], function(key) {\n var rotate = key === \"rotate\";\n this[key] = function() {\n var args = arguments, value = (rotate ? Base : Point).read(args), center = Point.read(args, 0, {\n readNull: true\n });\n return this.transform(new Matrix()[key](value, center || this.getPosition(true)));\n };\n }, {\n translate: function() {\n var mx = new Matrix();\n return this.transform(mx.translate.apply(mx, arguments));\n },\n transform: function(matrix, _applyRecursively, _setApplyMatrix) {\n var _matrix = this._matrix, transformMatrix = matrix && !matrix.isIdentity(), applyMatrix = _setApplyMatrix && this._canApplyMatrix || this._applyMatrix && (transformMatrix || !_matrix.isIdentity() || _applyRecursively && this._children);\n if (!transformMatrix && !applyMatrix) return this;\n if (transformMatrix) {\n if (!matrix.isInvertible() && _matrix.isInvertible()) _matrix._backup = _matrix.getValues();\n _matrix.prepend(matrix, true);\n var style = this._style, fillColor = style.getFillColor(true), strokeColor = style.getStrokeColor(true);\n if (fillColor) fillColor.transform(matrix);\n if (strokeColor) strokeColor.transform(matrix);\n }\n if (applyMatrix && (applyMatrix = this._transformContent(_matrix, _applyRecursively, _setApplyMatrix))) {\n var pivot = this._pivot;\n if (pivot) _matrix._transformPoint(pivot, pivot, true);\n _matrix.reset(true);\n if (_setApplyMatrix && this._canApplyMatrix) this._applyMatrix = true;\n }\n var bounds = this._bounds, position = this._position;\n if (transformMatrix || applyMatrix) this._changed(25);\n var decomp = transformMatrix && bounds && matrix.decompose();\n if (decomp && decomp.skewing.isZero() && decomp.rotation % 90 === 0) {\n for(var key in bounds){\n var cache = bounds[key];\n if (cache.nonscaling) delete bounds[key];\n else if (applyMatrix || !cache.internal) {\n var rect = cache.rect;\n matrix._transformBounds(rect, rect);\n }\n }\n this._bounds = bounds;\n var cached = bounds[this._getBoundsCacheKey(this._boundsOptions || {})];\n if (cached) this._position = this._getPositionFromBounds(cached.rect);\n } else if (transformMatrix && position && this._pivot) this._position = matrix._transformPoint(position, position);\n return this;\n },\n _transformContent: function(matrix, applyRecursively, setApplyMatrix) {\n var children = this._children;\n if (children) {\n for(var i = 0, l = children.length; i < l; i++)children[i].transform(matrix, applyRecursively, setApplyMatrix);\n return true;\n }\n },\n globalToLocal: function() {\n return this.getGlobalMatrix(true)._inverseTransform(Point.read(arguments));\n },\n localToGlobal: function() {\n return this.getGlobalMatrix(true)._transformPoint(Point.read(arguments));\n },\n parentToLocal: function() {\n return this._matrix._inverseTransform(Point.read(arguments));\n },\n localToParent: function() {\n return this._matrix._transformPoint(Point.read(arguments));\n },\n fitBounds: function(rectangle, fill) {\n rectangle = Rectangle.read(arguments);\n var bounds = this.getBounds(), itemRatio = bounds.height / bounds.width, rectRatio = rectangle.height / rectangle.width, scale = (fill ? itemRatio > rectRatio : itemRatio < rectRatio) ? rectangle.width / bounds.width : rectangle.height / bounds.height, newBounds = new Rectangle(new Point(), new Size(bounds.width * scale, bounds.height * scale));\n newBounds.setCenter(rectangle.getCenter());\n this.setBounds(newBounds);\n }\n }), {\n _setStyles: function(ctx, param, viewMatrix) {\n var style = this._style, matrix = this._matrix;\n if (style.hasFill()) ctx.fillStyle = style.getFillColor().toCanvasStyle(ctx, matrix);\n if (style.hasStroke()) {\n ctx.strokeStyle = style.getStrokeColor().toCanvasStyle(ctx, matrix);\n ctx.lineWidth = style.getStrokeWidth();\n var strokeJoin = style.getStrokeJoin(), strokeCap = style.getStrokeCap(), miterLimit = style.getMiterLimit();\n if (strokeJoin) ctx.lineJoin = strokeJoin;\n if (strokeCap) ctx.lineCap = strokeCap;\n if (miterLimit) ctx.miterLimit = miterLimit;\n if (paper.support.nativeDash) {\n var dashArray = style.getDashArray(), dashOffset = style.getDashOffset();\n if (dashArray && dashArray.length) {\n if (\"setLineDash\" in ctx) {\n ctx.setLineDash(dashArray);\n ctx.lineDashOffset = dashOffset;\n } else {\n ctx.mozDash = dashArray;\n ctx.mozDashOffset = dashOffset;\n }\n }\n }\n }\n if (style.hasShadow()) {\n var pixelRatio = param.pixelRatio || 1, mx = viewMatrix._shiftless().prepend(new Matrix().scale(pixelRatio, pixelRatio)), blur = mx.transform(new Point(style.getShadowBlur(), 0)), offset = mx.transform(this.getShadowOffset());\n ctx.shadowColor = style.getShadowColor().toCanvasStyle(ctx);\n ctx.shadowBlur = blur.getLength();\n ctx.shadowOffsetX = offset.x;\n ctx.shadowOffsetY = offset.y;\n }\n },\n draw: function(ctx, param, parentStrokeMatrix) {\n var updateVersion = this._updateVersion = this._project._updateVersion;\n if (!this._visible || this._opacity === 0) return;\n var matrices = param.matrices, viewMatrix = param.viewMatrix, matrix = this._matrix, globalMatrix = matrices[matrices.length - 1].appended(matrix);\n if (!globalMatrix.isInvertible()) return;\n viewMatrix = viewMatrix ? viewMatrix.appended(globalMatrix) : globalMatrix;\n matrices.push(globalMatrix);\n if (param.updateMatrix) this._globalMatrix = globalMatrix;\n var blendMode = this._blendMode, opacity = Numerical.clamp(this._opacity, 0, 1), normalBlend = blendMode === \"normal\", nativeBlend = BlendMode.nativeModes[blendMode], direct = normalBlend && opacity === 1 || param.dontStart || param.clip || (nativeBlend || normalBlend && opacity < 1) && this._canComposite(), pixelRatio = param.pixelRatio || 1, mainCtx, itemOffset, prevOffset;\n if (!direct) {\n var bounds = this.getStrokeBounds(viewMatrix);\n if (!bounds.width || !bounds.height) {\n matrices.pop();\n return;\n }\n prevOffset = param.offset;\n itemOffset = param.offset = bounds.getTopLeft().floor();\n mainCtx = ctx;\n ctx = CanvasProvider.getContext(bounds.getSize().ceil().add(1).multiply(pixelRatio));\n if (pixelRatio !== 1) ctx.scale(pixelRatio, pixelRatio);\n }\n ctx.save();\n var strokeMatrix = parentStrokeMatrix ? parentStrokeMatrix.appended(matrix) : this._canScaleStroke && !this.getStrokeScaling(true) && viewMatrix, clip = !direct && param.clipItem, transform = !strokeMatrix || clip;\n if (direct) {\n ctx.globalAlpha = opacity;\n if (nativeBlend) ctx.globalCompositeOperation = blendMode;\n } else if (transform) ctx.translate(-itemOffset.x, -itemOffset.y);\n if (transform) (direct ? matrix : viewMatrix).applyToContext(ctx);\n if (clip) param.clipItem.draw(ctx, param.extend({\n clip: true\n }));\n if (strokeMatrix) {\n ctx.setTransform(pixelRatio, 0, 0, pixelRatio, 0, 0);\n var offset = param.offset;\n if (offset) ctx.translate(-offset.x, -offset.y);\n }\n this._draw(ctx, param, viewMatrix, strokeMatrix);\n ctx.restore();\n matrices.pop();\n if (param.clip && !param.dontFinish) ctx.clip(this.getFillRule());\n if (!direct) {\n BlendMode.process(blendMode, ctx, mainCtx, opacity, itemOffset.subtract(prevOffset).multiply(pixelRatio));\n CanvasProvider.release(ctx);\n param.offset = prevOffset;\n }\n },\n _isUpdated: function(updateVersion) {\n var parent = this._parent;\n if (parent instanceof CompoundPath) return parent._isUpdated(updateVersion);\n var updated = this._updateVersion === updateVersion;\n if (!updated && parent && parent._visible && parent._isUpdated(updateVersion)) {\n this._updateVersion = updateVersion;\n updated = true;\n }\n return updated;\n },\n _drawSelection: function(ctx, matrix, size, selectionItems, updateVersion) {\n var selection = this._selection, itemSelected = selection & 1, boundsSelected = selection & 2 || itemSelected && this._selectBounds, positionSelected = selection & 4;\n if (!this._drawSelected) itemSelected = false;\n if ((itemSelected || boundsSelected || positionSelected) && this._isUpdated(updateVersion)) {\n var layer, color = this.getSelectedColor(true) || (layer = this.getLayer()) && layer.getSelectedColor(true), mx = matrix.appended(this.getGlobalMatrix(true)), half = size / 2;\n ctx.strokeStyle = ctx.fillStyle = color ? color.toCanvasStyle(ctx) : \"#009dec\";\n if (itemSelected) this._drawSelected(ctx, mx, selectionItems);\n if (positionSelected) {\n var pos = this.getPosition(true), parent = this._parent, point = parent ? parent.localToGlobal(pos) : pos, x = point.x, y = point.y;\n ctx.beginPath();\n ctx.arc(x, y, half, 0, Math.PI * 2, true);\n ctx.stroke();\n var deltas = [\n [\n 0,\n -1\n ],\n [\n 1,\n 0\n ],\n [\n 0,\n 1\n ],\n [\n -1,\n 0\n ]\n ], start = half, end = size + 1;\n for(var i = 0; i < 4; i++){\n var delta = deltas[i], dx = delta[0], dy = delta[1];\n ctx.moveTo(x + dx * start, y + dy * start);\n ctx.lineTo(x + dx * end, y + dy * end);\n ctx.stroke();\n }\n }\n if (boundsSelected) {\n var coords = mx._transformCorners(this.getInternalBounds());\n ctx.beginPath();\n for(var i = 0; i < 8; i++)ctx[!i ? \"moveTo\" : \"lineTo\"](coords[i], coords[++i]);\n ctx.closePath();\n ctx.stroke();\n for(var i = 0; i < 8; i++)ctx.fillRect(coords[i] - half, coords[++i] - half, size, size);\n }\n }\n },\n _canComposite: function() {\n return false;\n }\n }, Base.each([\n \"down\",\n \"drag\",\n \"up\",\n \"move\"\n ], function(key) {\n this[\"removeOn\" + Base.capitalize(key)] = function() {\n var hash = {};\n hash[key] = true;\n return this.removeOn(hash);\n };\n }, {\n removeOn: function(obj) {\n for(var name in obj)if (obj[name]) {\n var key = \"mouse\" + name, project = this._project, sets = project._removeSets = project._removeSets || {};\n sets[key] = sets[key] || {};\n sets[key][this._id] = this;\n }\n return this;\n }\n }), {\n tween: function(from, to, options) {\n if (!options) {\n options = to;\n to = from;\n from = null;\n if (!options) {\n options = to;\n to = null;\n }\n }\n var easing = options && options.easing, start = options && options.start, duration = options != null && (typeof options === \"number\" ? options : options.duration), tween = new Tween(this, from, to, duration, easing, start);\n function onFrame(event) {\n tween._handleFrame(event.time * 1000);\n if (!tween.running) this.off(\"frame\", onFrame);\n }\n if (duration) this.on(\"frame\", onFrame);\n return tween;\n },\n tweenTo: function(to, options) {\n return this.tween(null, to, options);\n },\n tweenFrom: function(from, options) {\n return this.tween(from, null, options);\n }\n });\n var Group = Item.extend({\n _class: \"Group\",\n _selectBounds: false,\n _selectChildren: true,\n _serializeFields: {\n children: []\n },\n initialize: function Group(arg) {\n this._children = [];\n this._namedChildren = {};\n if (!this._initialize(arg)) this.addChildren(Array.isArray(arg) ? arg : arguments);\n },\n _changed: function _changed(flags) {\n _changed.base.call(this, flags);\n if (flags & 2050) this._clipItem = undefined;\n },\n _getClipItem: function() {\n var clipItem = this._clipItem;\n if (clipItem === undefined) {\n clipItem = null;\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)if (children[i]._clipMask) {\n clipItem = children[i];\n break;\n }\n this._clipItem = clipItem;\n }\n return clipItem;\n },\n isClipped: function() {\n return !!this._getClipItem();\n },\n setClipped: function(clipped) {\n var child = this.getFirstChild();\n if (child) child.setClipMask(clipped);\n },\n _getBounds: function _getBounds(matrix, options) {\n var clipItem = this._getClipItem();\n return clipItem ? clipItem._getCachedBounds(clipItem._matrix.prepended(matrix), Base.set({}, options, {\n stroke: false\n })) : _getBounds.base.call(this, matrix, options);\n },\n _hitTestChildren: function _hitTestChildren(point, options, viewMatrix) {\n var clipItem = this._getClipItem();\n return (!clipItem || clipItem.contains(point)) && _hitTestChildren.base.call(this, point, options, viewMatrix, clipItem);\n },\n _draw: function(ctx, param) {\n var clip = param.clip, clipItem = !clip && this._getClipItem();\n param = param.extend({\n clipItem: clipItem,\n clip: false\n });\n if (clip) {\n ctx.beginPath();\n param.dontStart = param.dontFinish = true;\n } else if (clipItem) clipItem.draw(ctx, param.extend({\n clip: true\n }));\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++){\n var item = children[i];\n if (item !== clipItem) item.draw(ctx, param);\n }\n }\n });\n var Layer = Group.extend({\n _class: \"Layer\",\n initialize: function Layer() {\n Group.apply(this, arguments);\n },\n _getOwner: function() {\n return this._parent || this._index != null && this._project;\n },\n isInserted: function isInserted() {\n return this._parent ? isInserted.base.call(this) : this._index != null;\n },\n activate: function() {\n this._project._activeLayer = this;\n },\n _hitTestSelf: function() {}\n });\n var Shape = Item.extend({\n _class: \"Shape\",\n _applyMatrix: false,\n _canApplyMatrix: false,\n _canScaleStroke: true,\n _serializeFields: {\n type: null,\n size: null,\n radius: null\n },\n initialize: function Shape(props, point) {\n this._initialize(props, point);\n },\n _equals: function(item) {\n return this._type === item._type && this._size.equals(item._size) && Base.equals(this._radius, item._radius);\n },\n copyContent: function(source) {\n this.setType(source._type);\n this.setSize(source._size);\n this.setRadius(source._radius);\n },\n getType: function() {\n return this._type;\n },\n setType: function(type) {\n this._type = type;\n },\n getShape: \"#getType\",\n setShape: \"#setType\",\n getSize: function() {\n var size = this._size;\n return new LinkedSize(size.width, size.height, this, \"setSize\");\n },\n setSize: function() {\n var size = Size.read(arguments);\n if (!this._size) this._size = size.clone();\n else if (!this._size.equals(size)) {\n var type = this._type, width = size.width, height = size.height;\n if (type === \"rectangle\") this._radius.set(Size.min(this._radius, size.divide(2).abs()));\n else if (type === \"circle\") {\n width = height = (width + height) / 2;\n this._radius = width / 2;\n } else if (type === \"ellipse\") this._radius._set(width / 2, height / 2);\n this._size._set(width, height);\n this._changed(9);\n }\n },\n getRadius: function() {\n var rad = this._radius;\n return this._type === \"circle\" ? rad : new LinkedSize(rad.width, rad.height, this, \"setRadius\");\n },\n setRadius: function(radius) {\n var type = this._type;\n if (type === \"circle\") {\n if (radius === this._radius) return;\n var size = radius * 2;\n this._radius = radius;\n this._size._set(size, size);\n } else {\n radius = Size.read(arguments);\n if (!this._radius) this._radius = radius.clone();\n else {\n if (this._radius.equals(radius)) return;\n this._radius.set(radius);\n if (type === \"rectangle\") {\n var size = Size.max(this._size, radius.multiply(2));\n this._size.set(size);\n } else if (type === \"ellipse\") this._size._set(radius.width * 2, radius.height * 2);\n }\n }\n this._changed(9);\n },\n isEmpty: function() {\n return false;\n },\n toPath: function(insert) {\n var path = new Path[Base.capitalize(this._type)]({\n center: new Point(),\n size: this._size,\n radius: this._radius,\n insert: false\n });\n path.copyAttributes(this);\n if (paper.settings.applyMatrix) path.setApplyMatrix(true);\n if (insert === undefined || insert) path.insertAbove(this);\n return path;\n },\n toShape: \"#clone\",\n _asPathItem: function() {\n return this.toPath(false);\n },\n _draw: function(ctx, param, viewMatrix, strokeMatrix) {\n var style = this._style, hasFill = style.hasFill(), hasStroke = style.hasStroke(), dontPaint = param.dontFinish || param.clip, untransformed = !strokeMatrix;\n if (hasFill || hasStroke || dontPaint) {\n var type = this._type, radius = this._radius, isCircle = type === \"circle\";\n if (!param.dontStart) ctx.beginPath();\n if (untransformed && isCircle) ctx.arc(0, 0, radius, 0, Math.PI * 2, true);\n else {\n var rx = isCircle ? radius : radius.width, ry = isCircle ? radius : radius.height, size = this._size, width = size.width, height = size.height;\n if (untransformed && type === \"rectangle\" && rx === 0 && ry === 0) ctx.rect(-width / 2, -height / 2, width, height);\n else {\n var x = width / 2, y = height / 2, kappa = 0.44771525016920644, cx = rx * kappa, cy = ry * kappa, c = [\n -x,\n -y + ry,\n -x,\n -y + cy,\n -x + cx,\n -y,\n -x + rx,\n -y,\n x - rx,\n -y,\n x - cx,\n -y,\n x,\n -y + cy,\n x,\n -y + ry,\n x,\n y - ry,\n x,\n y - cy,\n x - cx,\n y,\n x - rx,\n y,\n -x + rx,\n y,\n -x + cx,\n y,\n -x,\n y - cy,\n -x,\n y - ry\n ];\n if (strokeMatrix) strokeMatrix.transform(c, c, 32);\n ctx.moveTo(c[0], c[1]);\n ctx.bezierCurveTo(c[2], c[3], c[4], c[5], c[6], c[7]);\n if (x !== rx) ctx.lineTo(c[8], c[9]);\n ctx.bezierCurveTo(c[10], c[11], c[12], c[13], c[14], c[15]);\n if (y !== ry) ctx.lineTo(c[16], c[17]);\n ctx.bezierCurveTo(c[18], c[19], c[20], c[21], c[22], c[23]);\n if (x !== rx) ctx.lineTo(c[24], c[25]);\n ctx.bezierCurveTo(c[26], c[27], c[28], c[29], c[30], c[31]);\n }\n }\n ctx.closePath();\n }\n if (!dontPaint && (hasFill || hasStroke)) {\n this._setStyles(ctx, param, viewMatrix);\n if (hasFill) {\n ctx.fill(style.getFillRule());\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n }\n if (hasStroke) ctx.stroke();\n }\n },\n _canComposite: function() {\n return !(this.hasFill() && this.hasStroke());\n },\n _getBounds: function(matrix, options) {\n var rect = new Rectangle(this._size).setCenter(0, 0), style = this._style, strokeWidth = options.stroke && style.hasStroke() && style.getStrokeWidth();\n if (matrix) rect = matrix._transformBounds(rect);\n return strokeWidth ? rect.expand(Path._getStrokePadding(strokeWidth, this._getStrokeMatrix(matrix, options))) : rect;\n }\n }, new function() {\n function getCornerCenter(that, point, expand) {\n var radius = that._radius;\n if (!radius.isZero()) {\n var halfSize = that._size.divide(2);\n for(var q = 1; q <= 4; q++){\n var dir = new Point(q > 1 && q < 4 ? -1 : 1, q > 2 ? -1 : 1), corner = dir.multiply(halfSize), center = corner.subtract(dir.multiply(radius)), rect = new Rectangle(expand ? corner.add(dir.multiply(expand)) : corner, center);\n if (rect.contains(point)) return {\n point: center,\n quadrant: q\n };\n }\n }\n }\n function isOnEllipseStroke(point, radius, padding, quadrant) {\n var vector = point.divide(radius);\n return (!quadrant || vector.isInQuadrant(quadrant)) && vector.subtract(vector.normalize()).multiply(radius).divide(padding).length <= 1;\n }\n return {\n _contains: function _contains(point) {\n if (this._type === \"rectangle\") {\n var center = getCornerCenter(this, point);\n return center ? point.subtract(center.point).divide(this._radius).getLength() <= 1 : _contains.base.call(this, point);\n } else return point.divide(this.size).getLength() <= 0.5;\n },\n _hitTestSelf: function _hitTestSelf(point, options, viewMatrix, strokeMatrix) {\n var hit = false, style = this._style, hitStroke = options.stroke && style.hasStroke(), hitFill = options.fill && style.hasFill();\n if (hitStroke || hitFill) {\n var type = this._type, radius = this._radius, strokeRadius = hitStroke ? style.getStrokeWidth() / 2 : 0, strokePadding = options._tolerancePadding.add(Path._getStrokePadding(strokeRadius, !style.getStrokeScaling() && strokeMatrix));\n if (type === \"rectangle\") {\n var padding = strokePadding.multiply(2), center = getCornerCenter(this, point, padding);\n if (center) hit = isOnEllipseStroke(point.subtract(center.point), radius, strokePadding, center.quadrant);\n else {\n var rect = new Rectangle(this._size).setCenter(0, 0), outer = rect.expand(padding), inner = rect.expand(padding.negate());\n hit = outer._containsPoint(point) && !inner._containsPoint(point);\n }\n } else hit = isOnEllipseStroke(point, radius, strokePadding);\n }\n return hit ? new HitResult(hitStroke ? \"stroke\" : \"fill\", this) : _hitTestSelf.base.apply(this, arguments);\n }\n };\n }, {\n statics: new function() {\n function createShape(type, point, size, radius, args) {\n var item = Base.create(Shape.prototype);\n item._type = type;\n item._size = size;\n item._radius = radius;\n item._initialize(Base.getNamed(args), point);\n return item;\n }\n return {\n Circle: function() {\n var args = arguments, center = Point.readNamed(args, \"center\"), radius = Base.readNamed(args, \"radius\");\n return createShape(\"circle\", center, new Size(radius * 2), radius, args);\n },\n Rectangle: function() {\n var args = arguments, rect = Rectangle.readNamed(args, \"rectangle\"), radius = Size.min(Size.readNamed(args, \"radius\"), rect.getSize(true).divide(2));\n return createShape(\"rectangle\", rect.getCenter(true), rect.getSize(true), radius, args);\n },\n Ellipse: function() {\n var args = arguments, ellipse = Shape._readEllipse(args), radius = ellipse.radius;\n return createShape(\"ellipse\", ellipse.center, radius.multiply(2), radius, args);\n },\n _readEllipse: function(args) {\n var center, radius;\n if (Base.hasNamed(args, \"radius\")) {\n center = Point.readNamed(args, \"center\");\n radius = Size.readNamed(args, \"radius\");\n } else {\n var rect = Rectangle.readNamed(args, \"rectangle\");\n center = rect.getCenter(true);\n radius = rect.getSize(true).divide(2);\n }\n return {\n center: center,\n radius: radius\n };\n }\n };\n }\n });\n var Raster = Item.extend({\n _class: \"Raster\",\n _applyMatrix: false,\n _canApplyMatrix: false,\n _boundsOptions: {\n stroke: false,\n handle: false\n },\n _serializeFields: {\n crossOrigin: null,\n source: null\n },\n _prioritize: [\n \"crossOrigin\"\n ],\n _smoothing: \"low\",\n beans: true,\n initialize: function Raster(source, position) {\n if (!this._initialize(source, position !== undefined && Point.read(arguments))) {\n var image, type = typeof source, object = type === \"string\" ? document.getElementById(source) : type === \"object\" ? source : null;\n if (object && object !== Item.NO_INSERT) {\n if (object.getContext || object.naturalHeight != null) image = object;\n else if (object) {\n var size = Size.read(arguments);\n if (!size.isZero()) image = CanvasProvider.getCanvas(size);\n }\n }\n if (image) this.setImage(image);\n else this.setSource(source);\n }\n if (!this._size) {\n this._size = new Size();\n this._loaded = false;\n }\n },\n _equals: function(item) {\n return this.getSource() === item.getSource();\n },\n copyContent: function(source) {\n var image = source._image, canvas = source._canvas;\n if (image) this._setImage(image);\n else if (canvas) {\n var copyCanvas = CanvasProvider.getCanvas(source._size);\n copyCanvas.getContext(\"2d\").drawImage(canvas, 0, 0);\n this._setImage(copyCanvas);\n }\n this._crossOrigin = source._crossOrigin;\n },\n getSize: function() {\n var size = this._size;\n return new LinkedSize(size ? size.width : 0, size ? size.height : 0, this, \"setSize\");\n },\n setSize: function(_size, _clear) {\n var size = Size.read(arguments);\n if (!size.equals(this._size)) {\n if (size.width > 0 && size.height > 0) {\n var element = !_clear && this.getElement();\n this._setImage(CanvasProvider.getCanvas(size));\n if (element) this.getContext(true).drawImage(element, 0, 0, size.width, size.height);\n } else {\n if (this._canvas) CanvasProvider.release(this._canvas);\n this._size = size.clone();\n }\n } else if (_clear) this.clear();\n },\n getWidth: function() {\n return this._size ? this._size.width : 0;\n },\n setWidth: function(width) {\n this.setSize(width, this.getHeight());\n },\n getHeight: function() {\n return this._size ? this._size.height : 0;\n },\n setHeight: function(height) {\n this.setSize(this.getWidth(), height);\n },\n getLoaded: function() {\n return this._loaded;\n },\n isEmpty: function() {\n var size = this._size;\n return !size || size.width === 0 && size.height === 0;\n },\n getResolution: function() {\n var matrix = this._matrix, orig = new Point(0, 0).transform(matrix), u = new Point(1, 0).transform(matrix).subtract(orig), v = new Point(0, 1).transform(matrix).subtract(orig);\n return new Size(72 / u.getLength(), 72 / v.getLength());\n },\n getPpi: \"#getResolution\",\n getImage: function() {\n return this._image;\n },\n setImage: function(image) {\n var that = this;\n function emit(event) {\n var view = that.getView(), type = event && event.type || \"load\";\n if (view && that.responds(type)) {\n paper = view._scope;\n that.emit(type, new Event(event));\n }\n }\n this._setImage(image);\n if (this._loaded) setTimeout(emit, 0);\n else if (image) DomEvent.add(image, {\n load: function(event) {\n that._setImage(image);\n emit(event);\n },\n error: emit\n });\n },\n _setImage: function(image) {\n if (this._canvas) CanvasProvider.release(this._canvas);\n if (image && image.getContext) {\n this._image = null;\n this._canvas = image;\n this._loaded = true;\n } else {\n this._image = image;\n this._canvas = null;\n this._loaded = !!(image && image.src && image.complete);\n }\n this._size = new Size(image ? image.naturalWidth || image.width : 0, image ? image.naturalHeight || image.height : 0);\n this._context = null;\n this._changed(1033);\n },\n getCanvas: function() {\n if (!this._canvas) {\n var ctx = CanvasProvider.getContext(this._size);\n try {\n if (this._image) ctx.drawImage(this._image, 0, 0);\n this._canvas = ctx.canvas;\n } catch (e) {\n CanvasProvider.release(ctx);\n }\n }\n return this._canvas;\n },\n setCanvas: \"#setImage\",\n getContext: function(_change) {\n if (!this._context) this._context = this.getCanvas().getContext(\"2d\");\n if (_change) {\n this._image = null;\n this._changed(1025);\n }\n return this._context;\n },\n setContext: function(context) {\n this._context = context;\n },\n getSource: function() {\n var image = this._image;\n return image && image.src || this.toDataURL();\n },\n setSource: function(src) {\n var image = new self1.Image(), crossOrigin = this._crossOrigin;\n if (crossOrigin) image.crossOrigin = crossOrigin;\n if (src) image.src = src;\n this.setImage(image);\n },\n getCrossOrigin: function() {\n var image = this._image;\n return image && image.crossOrigin || this._crossOrigin || \"\";\n },\n setCrossOrigin: function(crossOrigin) {\n this._crossOrigin = crossOrigin;\n var image = this._image;\n if (image) image.crossOrigin = crossOrigin;\n },\n getSmoothing: function() {\n return this._smoothing;\n },\n setSmoothing: function(smoothing) {\n this._smoothing = typeof smoothing === \"string\" ? smoothing : smoothing ? \"low\" : \"off\";\n this._changed(257);\n },\n getElement: function() {\n return this._canvas || this._loaded && this._image;\n }\n }, {\n beans: false,\n getSubCanvas: function() {\n var rect = Rectangle.read(arguments), ctx = CanvasProvider.getContext(rect.getSize());\n ctx.drawImage(this.getCanvas(), rect.x, rect.y, rect.width, rect.height, 0, 0, rect.width, rect.height);\n return ctx.canvas;\n },\n getSubRaster: function() {\n var rect = Rectangle.read(arguments), raster = new Raster(Item.NO_INSERT);\n raster._setImage(this.getSubCanvas(rect));\n raster.translate(rect.getCenter().subtract(this.getSize().divide(2)));\n raster._matrix.prepend(this._matrix);\n raster.insertAbove(this);\n return raster;\n },\n toDataURL: function() {\n var image = this._image, src = image && image.src;\n if (/^data:/.test(src)) return src;\n var canvas = this.getCanvas();\n return canvas ? canvas.toDataURL.apply(canvas, arguments) : null;\n },\n drawImage: function(image) {\n var point = Point.read(arguments, 1);\n this.getContext(true).drawImage(image, point.x, point.y);\n },\n getAverageColor: function(object) {\n var bounds, path;\n if (!object) bounds = this.getBounds();\n else if (object instanceof PathItem) {\n path = object;\n bounds = object.getBounds();\n } else if (typeof object === \"object\") {\n if (\"width\" in object) bounds = new Rectangle(object);\n else if (\"x\" in object) bounds = new Rectangle(object.x - 0.5, object.y - 0.5, 1, 1);\n }\n if (!bounds) return null;\n var sampleSize = 32, width = Math.min(bounds.width, sampleSize), height = Math.min(bounds.height, sampleSize);\n var ctx = Raster._sampleContext;\n if (!ctx) ctx = Raster._sampleContext = CanvasProvider.getContext(new Size(sampleSize));\n else ctx.clearRect(0, 0, sampleSize + 1, sampleSize + 1);\n ctx.save();\n var matrix = new Matrix().scale(width / bounds.width, height / bounds.height).translate(-bounds.x, -bounds.y);\n matrix.applyToContext(ctx);\n if (path) path.draw(ctx, new Base({\n clip: true,\n matrices: [\n matrix\n ]\n }));\n this._matrix.applyToContext(ctx);\n var element = this.getElement(), size = this._size;\n if (element) ctx.drawImage(element, -size.width / 2, -size.height / 2);\n ctx.restore();\n var pixels = ctx.getImageData(0.5, 0.5, Math.ceil(width), Math.ceil(height)).data, channels = [\n 0,\n 0,\n 0\n ], total = 0;\n for(var i = 0, l = pixels.length; i < l; i += 4){\n var alpha = pixels[i + 3];\n total += alpha;\n alpha /= 255;\n channels[0] += pixels[i] * alpha;\n channels[1] += pixels[i + 1] * alpha;\n channels[2] += pixels[i + 2] * alpha;\n }\n for(var i = 0; i < 3; i++)channels[i] /= total;\n return total ? Color.read(channels) : null;\n },\n getPixel: function() {\n var point = Point.read(arguments);\n var data = this.getContext().getImageData(point.x, point.y, 1, 1).data;\n return new Color(\"rgb\", [\n data[0] / 255,\n data[1] / 255,\n data[2] / 255\n ], data[3] / 255);\n },\n setPixel: function() {\n var args = arguments, point = Point.read(args), color = Color.read(args), components = color._convert(\"rgb\"), alpha = color._alpha, ctx = this.getContext(true), imageData = ctx.createImageData(1, 1), data = imageData.data;\n data[0] = components[0] * 255;\n data[1] = components[1] * 255;\n data[2] = components[2] * 255;\n data[3] = alpha != null ? alpha * 255 : 255;\n ctx.putImageData(imageData, point.x, point.y);\n },\n clear: function() {\n var size = this._size;\n this.getContext(true).clearRect(0, 0, size.width + 1, size.height + 1);\n },\n createImageData: function() {\n var size = Size.read(arguments);\n return this.getContext().createImageData(size.width, size.height);\n },\n getImageData: function() {\n var rect = Rectangle.read(arguments);\n if (rect.isEmpty()) rect = new Rectangle(this._size);\n return this.getContext().getImageData(rect.x, rect.y, rect.width, rect.height);\n },\n putImageData: function(data) {\n var point = Point.read(arguments, 1);\n this.getContext(true).putImageData(data, point.x, point.y);\n },\n setImageData: function(data) {\n this.setSize(data);\n this.getContext(true).putImageData(data, 0, 0);\n },\n _getBounds: function(matrix, options) {\n var rect = new Rectangle(this._size).setCenter(0, 0);\n return matrix ? matrix._transformBounds(rect) : rect;\n },\n _hitTestSelf: function(point) {\n if (this._contains(point)) {\n var that = this;\n return new HitResult(\"pixel\", that, {\n offset: point.add(that._size.divide(2)).round(),\n color: {\n get: function() {\n return that.getPixel(this.offset);\n }\n }\n });\n }\n },\n _draw: function(ctx, param, viewMatrix) {\n var element = this.getElement();\n if (element && element.width > 0 && element.height > 0) {\n ctx.globalAlpha = Numerical.clamp(this._opacity, 0, 1);\n this._setStyles(ctx, param, viewMatrix);\n var smoothing = this._smoothing, disabled = smoothing === \"off\";\n DomElement.setPrefixed(ctx, disabled ? \"imageSmoothingEnabled\" : \"imageSmoothingQuality\", disabled ? false : smoothing);\n ctx.drawImage(element, -this._size.width / 2, -this._size.height / 2);\n }\n },\n _canComposite: function() {\n return true;\n }\n });\n var SymbolItem = Item.extend({\n _class: \"SymbolItem\",\n _applyMatrix: false,\n _canApplyMatrix: false,\n _boundsOptions: {\n stroke: true\n },\n _serializeFields: {\n symbol: null\n },\n initialize: function SymbolItem(arg0, arg1) {\n if (!this._initialize(arg0, arg1 !== undefined && Point.read(arguments, 1))) this.setDefinition(arg0 instanceof SymbolDefinition ? arg0 : new SymbolDefinition(arg0));\n },\n _equals: function(item) {\n return this._definition === item._definition;\n },\n copyContent: function(source) {\n this.setDefinition(source._definition);\n },\n getDefinition: function() {\n return this._definition;\n },\n setDefinition: function(definition) {\n this._definition = definition;\n this._changed(9);\n },\n getSymbol: \"#getDefinition\",\n setSymbol: \"#setDefinition\",\n isEmpty: function() {\n return this._definition._item.isEmpty();\n },\n _getBounds: function(matrix, options) {\n var item = this._definition._item;\n return item._getCachedBounds(item._matrix.prepended(matrix), options);\n },\n _hitTestSelf: function(point, options, viewMatrix) {\n var opts = options.extend({\n all: false\n });\n var res = this._definition._item._hitTest(point, opts, viewMatrix);\n if (res) res.item = this;\n return res;\n },\n _draw: function(ctx, param) {\n this._definition._item.draw(ctx, param);\n }\n });\n var SymbolDefinition = Base.extend({\n _class: \"SymbolDefinition\",\n initialize: function SymbolDefinition(item, dontCenter) {\n this._id = UID.get();\n this.project = paper.project;\n if (item) this.setItem(item, dontCenter);\n },\n _serialize: function(options, dictionary) {\n return dictionary.add(this, function() {\n return Base.serialize([\n this._class,\n this._item\n ], options, false, dictionary);\n });\n },\n _changed: function(flags) {\n if (flags & 8) Item._clearBoundsCache(this);\n if (flags & 1) this.project._changed(flags);\n },\n getItem: function() {\n return this._item;\n },\n setItem: function(item, _dontCenter) {\n if (item._symbol) item = item.clone();\n if (this._item) this._item._symbol = null;\n this._item = item;\n item.remove();\n item.setSelected(false);\n if (!_dontCenter) item.setPosition(new Point());\n item._symbol = this;\n this._changed(9);\n },\n getDefinition: \"#getItem\",\n setDefinition: \"#setItem\",\n place: function(position) {\n return new SymbolItem(this, position);\n },\n clone: function() {\n return new SymbolDefinition(this._item.clone(false));\n },\n equals: function(symbol) {\n return symbol === this || symbol && this._item.equals(symbol._item) || false;\n }\n });\n var HitResult = Base.extend({\n _class: \"HitResult\",\n initialize: function HitResult(type, item, values) {\n this.type = type;\n this.item = item;\n if (values) this.inject(values);\n },\n statics: {\n getOptions: function(args) {\n var options = args && Base.read(args);\n return new Base({\n type: null,\n tolerance: paper.settings.hitTolerance,\n fill: !options,\n stroke: !options,\n segments: !options,\n handles: false,\n ends: false,\n position: false,\n center: false,\n bounds: false,\n guides: false,\n selected: false\n }, options);\n }\n }\n });\n var Segment = Base.extend({\n _class: \"Segment\",\n beans: true,\n _selection: 0,\n initialize: function Segment(arg0, arg1, arg2, arg3, arg4, arg5) {\n var count = arguments.length, point, handleIn, handleOut, selection;\n if (count > 0) {\n if (arg0 == null || typeof arg0 === \"object\") {\n if (count === 1 && arg0 && \"point\" in arg0) {\n point = arg0.point;\n handleIn = arg0.handleIn;\n handleOut = arg0.handleOut;\n selection = arg0.selection;\n } else {\n point = arg0;\n handleIn = arg1;\n handleOut = arg2;\n selection = arg3;\n }\n } else {\n point = [\n arg0,\n arg1\n ];\n handleIn = arg2 !== undefined ? [\n arg2,\n arg3\n ] : null;\n handleOut = arg4 !== undefined ? [\n arg4,\n arg5\n ] : null;\n }\n }\n new SegmentPoint(point, this, \"_point\");\n new SegmentPoint(handleIn, this, \"_handleIn\");\n new SegmentPoint(handleOut, this, \"_handleOut\");\n if (selection) this.setSelection(selection);\n },\n _serialize: function(options, dictionary) {\n var point = this._point, selection = this._selection, obj = selection || this.hasHandles() ? [\n point,\n this._handleIn,\n this._handleOut\n ] : point;\n if (selection) obj.push(selection);\n return Base.serialize(obj, options, true, dictionary);\n },\n _changed: function(point) {\n var path = this._path;\n if (!path) return;\n var curves = path._curves, index = this._index, curve;\n if (curves) {\n if ((!point || point === this._point || point === this._handleIn) && (curve = index > 0 ? curves[index - 1] : path._closed ? curves[curves.length - 1] : null)) curve._changed();\n if ((!point || point === this._point || point === this._handleOut) && (curve = curves[index])) curve._changed();\n }\n path._changed(41);\n },\n getPoint: function() {\n return this._point;\n },\n setPoint: function() {\n this._point.set(Point.read(arguments));\n },\n getHandleIn: function() {\n return this._handleIn;\n },\n setHandleIn: function() {\n this._handleIn.set(Point.read(arguments));\n },\n getHandleOut: function() {\n return this._handleOut;\n },\n setHandleOut: function() {\n this._handleOut.set(Point.read(arguments));\n },\n hasHandles: function() {\n return !this._handleIn.isZero() || !this._handleOut.isZero();\n },\n isSmooth: function() {\n var handleIn = this._handleIn, handleOut = this._handleOut;\n return !handleIn.isZero() && !handleOut.isZero() && handleIn.isCollinear(handleOut);\n },\n clearHandles: function() {\n this._handleIn._set(0, 0);\n this._handleOut._set(0, 0);\n },\n getSelection: function() {\n return this._selection;\n },\n setSelection: function(selection) {\n var oldSelection = this._selection, path = this._path;\n this._selection = selection = selection || 0;\n if (path && selection !== oldSelection) {\n path._updateSelection(this, oldSelection, selection);\n path._changed(257);\n }\n },\n _changeSelection: function(flag, selected) {\n var selection = this._selection;\n this.setSelection(selected ? selection | flag : selection & ~flag);\n },\n isSelected: function() {\n return !!(this._selection & 7);\n },\n setSelected: function(selected) {\n this._changeSelection(7, selected);\n },\n getIndex: function() {\n return this._index !== undefined ? this._index : null;\n },\n getPath: function() {\n return this._path || null;\n },\n getCurve: function() {\n var path = this._path, index = this._index;\n if (path) {\n if (index > 0 && !path._closed && index === path._segments.length - 1) index--;\n return path.getCurves()[index] || null;\n }\n return null;\n },\n getLocation: function() {\n var curve = this.getCurve();\n return curve ? new CurveLocation(curve, this === curve._segment1 ? 0 : 1) : null;\n },\n getNext: function() {\n var segments = this._path && this._path._segments;\n return segments && (segments[this._index + 1] || this._path._closed && segments[0]) || null;\n },\n smooth: function(options, _first, _last) {\n var opts = options || {}, type = opts.type, factor = opts.factor, prev = this.getPrevious(), next = this.getNext(), p0 = (prev || this)._point, p1 = this._point, p2 = (next || this)._point, d1 = p0.getDistance(p1), d2 = p1.getDistance(p2);\n if (!type || type === \"catmull-rom\") {\n var a = factor === undefined ? 0.5 : factor, d1_a = Math.pow(d1, a), d1_2a = d1_a * d1_a, d2_a = Math.pow(d2, a), d2_2a = d2_a * d2_a;\n if (!_first && prev) {\n var A = 2 * d2_2a + 3 * d2_a * d1_a + d1_2a, N = 3 * d2_a * (d2_a + d1_a);\n this.setHandleIn(N !== 0 ? new Point((d2_2a * p0._x + A * p1._x - d1_2a * p2._x) / N - p1._x, (d2_2a * p0._y + A * p1._y - d1_2a * p2._y) / N - p1._y) : new Point());\n }\n if (!_last && next) {\n var A = 2 * d1_2a + 3 * d1_a * d2_a + d2_2a, N = 3 * d1_a * (d1_a + d2_a);\n this.setHandleOut(N !== 0 ? new Point((d1_2a * p2._x + A * p1._x - d2_2a * p0._x) / N - p1._x, (d1_2a * p2._y + A * p1._y - d2_2a * p0._y) / N - p1._y) : new Point());\n }\n } else if (type === \"geometric\") {\n if (prev && next) {\n var vector = p0.subtract(p2), t = factor === undefined ? 0.4 : factor, k = t * d1 / (d1 + d2);\n if (!_first) this.setHandleIn(vector.multiply(k));\n if (!_last) this.setHandleOut(vector.multiply(k - t));\n }\n } else throw new Error(\"Smoothing method '\" + type + \"' not supported.\");\n },\n getPrevious: function() {\n var segments = this._path && this._path._segments;\n return segments && (segments[this._index - 1] || this._path._closed && segments[segments.length - 1]) || null;\n },\n isFirst: function() {\n return !this._index;\n },\n isLast: function() {\n var path = this._path;\n return path && this._index === path._segments.length - 1 || false;\n },\n reverse: function() {\n var handleIn = this._handleIn, handleOut = this._handleOut, tmp = handleIn.clone();\n handleIn.set(handleOut);\n handleOut.set(tmp);\n },\n reversed: function() {\n return new Segment(this._point, this._handleOut, this._handleIn);\n },\n remove: function() {\n return this._path ? !!this._path.removeSegment(this._index) : false;\n },\n clone: function() {\n return new Segment(this._point, this._handleIn, this._handleOut);\n },\n equals: function(segment) {\n return segment === this || segment && this._class === segment._class && this._point.equals(segment._point) && this._handleIn.equals(segment._handleIn) && this._handleOut.equals(segment._handleOut) || false;\n },\n toString: function() {\n var parts = [\n \"point: \" + this._point\n ];\n if (!this._handleIn.isZero()) parts.push(\"handleIn: \" + this._handleIn);\n if (!this._handleOut.isZero()) parts.push(\"handleOut: \" + this._handleOut);\n return \"{ \" + parts.join(\", \") + \" }\";\n },\n transform: function(matrix) {\n this._transformCoordinates(matrix, new Array(6), true);\n this._changed();\n },\n interpolate: function(from, to, factor) {\n var u = 1 - factor, v = factor, point1 = from._point, point2 = to._point, handleIn1 = from._handleIn, handleIn2 = to._handleIn, handleOut2 = to._handleOut, handleOut1 = from._handleOut;\n this._point._set(u * point1._x + v * point2._x, u * point1._y + v * point2._y, true);\n this._handleIn._set(u * handleIn1._x + v * handleIn2._x, u * handleIn1._y + v * handleIn2._y, true);\n this._handleOut._set(u * handleOut1._x + v * handleOut2._x, u * handleOut1._y + v * handleOut2._y, true);\n this._changed();\n },\n _transformCoordinates: function(matrix, coords, change) {\n var point = this._point, handleIn = !change || !this._handleIn.isZero() ? this._handleIn : null, handleOut = !change || !this._handleOut.isZero() ? this._handleOut : null, x = point._x, y = point._y, i = 2;\n coords[0] = x;\n coords[1] = y;\n if (handleIn) {\n coords[i++] = handleIn._x + x;\n coords[i++] = handleIn._y + y;\n }\n if (handleOut) {\n coords[i++] = handleOut._x + x;\n coords[i++] = handleOut._y + y;\n }\n if (matrix) {\n matrix._transformCoordinates(coords, coords, i / 2);\n x = coords[0];\n y = coords[1];\n if (change) {\n point._x = x;\n point._y = y;\n i = 2;\n if (handleIn) {\n handleIn._x = coords[i++] - x;\n handleIn._y = coords[i++] - y;\n }\n if (handleOut) {\n handleOut._x = coords[i++] - x;\n handleOut._y = coords[i++] - y;\n }\n } else {\n if (!handleIn) {\n coords[i++] = x;\n coords[i++] = y;\n }\n if (!handleOut) {\n coords[i++] = x;\n coords[i++] = y;\n }\n }\n }\n return coords;\n }\n });\n var SegmentPoint = Point.extend({\n initialize: function SegmentPoint(point, owner, key) {\n var x, y, selected;\n if (!point) x = y = 0;\n else if ((x = point[0]) !== undefined) y = point[1];\n else {\n var pt = point;\n if ((x = pt.x) === undefined) {\n pt = Point.read(arguments);\n x = pt.x;\n }\n y = pt.y;\n selected = pt.selected;\n }\n this._x = x;\n this._y = y;\n this._owner = owner;\n owner[key] = this;\n if (selected) this.setSelected(true);\n },\n _set: function(x, y) {\n this._x = x;\n this._y = y;\n this._owner._changed(this);\n return this;\n },\n getX: function() {\n return this._x;\n },\n setX: function(x) {\n this._x = x;\n this._owner._changed(this);\n },\n getY: function() {\n return this._y;\n },\n setY: function(y) {\n this._y = y;\n this._owner._changed(this);\n },\n isZero: function() {\n var isZero = Numerical.isZero;\n return isZero(this._x) && isZero(this._y);\n },\n isSelected: function() {\n return !!(this._owner._selection & this._getSelection());\n },\n setSelected: function(selected) {\n this._owner._changeSelection(this._getSelection(), selected);\n },\n _getSelection: function() {\n var owner = this._owner;\n return this === owner._point ? 1 : this === owner._handleIn ? 2 : this === owner._handleOut ? 4 : 0;\n }\n });\n var Curve = Base.extend({\n _class: \"Curve\",\n beans: true,\n initialize: function Curve(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {\n var count = arguments.length, seg1, seg2, point1, point2, handle1, handle2;\n if (count === 3) {\n this._path = arg0;\n seg1 = arg1;\n seg2 = arg2;\n } else if (!count) {\n seg1 = new Segment();\n seg2 = new Segment();\n } else if (count === 1) {\n if (\"segment1\" in arg0) {\n seg1 = new Segment(arg0.segment1);\n seg2 = new Segment(arg0.segment2);\n } else if (\"point1\" in arg0) {\n point1 = arg0.point1;\n handle1 = arg0.handle1;\n handle2 = arg0.handle2;\n point2 = arg0.point2;\n } else if (Array.isArray(arg0)) {\n point1 = [\n arg0[0],\n arg0[1]\n ];\n point2 = [\n arg0[6],\n arg0[7]\n ];\n handle1 = [\n arg0[2] - arg0[0],\n arg0[3] - arg0[1]\n ];\n handle2 = [\n arg0[4] - arg0[6],\n arg0[5] - arg0[7]\n ];\n }\n } else if (count === 2) {\n seg1 = new Segment(arg0);\n seg2 = new Segment(arg1);\n } else if (count === 4) {\n point1 = arg0;\n handle1 = arg1;\n handle2 = arg2;\n point2 = arg3;\n } else if (count === 8) {\n point1 = [\n arg0,\n arg1\n ];\n point2 = [\n arg6,\n arg7\n ];\n handle1 = [\n arg2 - arg0,\n arg3 - arg1\n ];\n handle2 = [\n arg4 - arg6,\n arg5 - arg7\n ];\n }\n this._segment1 = seg1 || new Segment(point1, null, handle1);\n this._segment2 = seg2 || new Segment(point2, handle2, null);\n },\n _serialize: function(options, dictionary) {\n return Base.serialize(this.hasHandles() ? [\n this.getPoint1(),\n this.getHandle1(),\n this.getHandle2(),\n this.getPoint2()\n ] : [\n this.getPoint1(),\n this.getPoint2()\n ], options, true, dictionary);\n },\n _changed: function() {\n this._length = this._bounds = undefined;\n },\n clone: function() {\n return new Curve(this._segment1, this._segment2);\n },\n toString: function() {\n var parts = [\n \"point1: \" + this._segment1._point\n ];\n if (!this._segment1._handleOut.isZero()) parts.push(\"handle1: \" + this._segment1._handleOut);\n if (!this._segment2._handleIn.isZero()) parts.push(\"handle2: \" + this._segment2._handleIn);\n parts.push(\"point2: \" + this._segment2._point);\n return \"{ \" + parts.join(\", \") + \" }\";\n },\n classify: function() {\n return Curve.classify(this.getValues());\n },\n remove: function() {\n var removed = false;\n if (this._path) {\n var segment2 = this._segment2, handleOut = segment2._handleOut;\n removed = segment2.remove();\n if (removed) this._segment1._handleOut.set(handleOut);\n }\n return removed;\n },\n getPoint1: function() {\n return this._segment1._point;\n },\n setPoint1: function() {\n this._segment1._point.set(Point.read(arguments));\n },\n getPoint2: function() {\n return this._segment2._point;\n },\n setPoint2: function() {\n this._segment2._point.set(Point.read(arguments));\n },\n getHandle1: function() {\n return this._segment1._handleOut;\n },\n setHandle1: function() {\n this._segment1._handleOut.set(Point.read(arguments));\n },\n getHandle2: function() {\n return this._segment2._handleIn;\n },\n setHandle2: function() {\n this._segment2._handleIn.set(Point.read(arguments));\n },\n getSegment1: function() {\n return this._segment1;\n },\n getSegment2: function() {\n return this._segment2;\n },\n getPath: function() {\n return this._path;\n },\n getIndex: function() {\n return this._segment1._index;\n },\n getNext: function() {\n var curves = this._path && this._path._curves;\n return curves && (curves[this._segment1._index + 1] || this._path._closed && curves[0]) || null;\n },\n getPrevious: function() {\n var curves = this._path && this._path._curves;\n return curves && (curves[this._segment1._index - 1] || this._path._closed && curves[curves.length - 1]) || null;\n },\n isFirst: function() {\n return !this._segment1._index;\n },\n isLast: function() {\n var path = this._path;\n return path && this._segment1._index === path._curves.length - 1 || false;\n },\n isSelected: function() {\n return this.getPoint1().isSelected() && this.getHandle1().isSelected() && this.getHandle2().isSelected() && this.getPoint2().isSelected();\n },\n setSelected: function(selected) {\n this.getPoint1().setSelected(selected);\n this.getHandle1().setSelected(selected);\n this.getHandle2().setSelected(selected);\n this.getPoint2().setSelected(selected);\n },\n getValues: function(matrix) {\n return Curve.getValues(this._segment1, this._segment2, matrix);\n },\n getPoints: function() {\n var coords = this.getValues(), points = [];\n for(var i = 0; i < 8; i += 2)points.push(new Point(coords[i], coords[i + 1]));\n return points;\n }\n }, {\n getLength: function() {\n if (this._length == null) this._length = Curve.getLength(this.getValues(), 0, 1);\n return this._length;\n },\n getArea: function() {\n return Curve.getArea(this.getValues());\n },\n getLine: function() {\n return new Line(this._segment1._point, this._segment2._point);\n },\n getPart: function(from, to) {\n return new Curve(Curve.getPart(this.getValues(), from, to));\n },\n getPartLength: function(from, to) {\n return Curve.getLength(this.getValues(), from, to);\n },\n divideAt: function(location) {\n return this.divideAtTime(location && location.curve === this ? location.time : this.getTimeAt(location));\n },\n divideAtTime: function(time, _setHandles) {\n var tMin = 1e-8, tMax = 1 - tMin, res = null;\n if (time >= tMin && time <= tMax) {\n var parts = Curve.subdivide(this.getValues(), time), left = parts[0], right = parts[1], setHandles = _setHandles || this.hasHandles(), seg1 = this._segment1, seg2 = this._segment2, path = this._path;\n if (setHandles) {\n seg1._handleOut._set(left[2] - left[0], left[3] - left[1]);\n seg2._handleIn._set(right[4] - right[6], right[5] - right[7]);\n }\n var x = left[6], y = left[7], segment = new Segment(new Point(x, y), setHandles && new Point(left[4] - x, left[5] - y), setHandles && new Point(right[2] - x, right[3] - y));\n if (path) {\n path.insert(seg1._index + 1, segment);\n res = this.getNext();\n } else {\n this._segment2 = segment;\n this._changed();\n res = new Curve(segment, seg2);\n }\n }\n return res;\n },\n splitAt: function(location) {\n var path = this._path;\n return path ? path.splitAt(location) : null;\n },\n splitAtTime: function(time) {\n return this.splitAt(this.getLocationAtTime(time));\n },\n divide: function(offset, isTime) {\n return this.divideAtTime(offset === undefined ? 0.5 : isTime ? offset : this.getTimeAt(offset));\n },\n split: function(offset, isTime) {\n return this.splitAtTime(offset === undefined ? 0.5 : isTime ? offset : this.getTimeAt(offset));\n },\n reversed: function() {\n return new Curve(this._segment2.reversed(), this._segment1.reversed());\n },\n clearHandles: function() {\n this._segment1._handleOut._set(0, 0);\n this._segment2._handleIn._set(0, 0);\n },\n statics: {\n getValues: function(segment1, segment2, matrix, straight) {\n var p1 = segment1._point, h1 = segment1._handleOut, h2 = segment2._handleIn, p2 = segment2._point, x1 = p1.x, y1 = p1.y, x2 = p2.x, y2 = p2.y, values = straight ? [\n x1,\n y1,\n x1,\n y1,\n x2,\n y2,\n x2,\n y2\n ] : [\n x1,\n y1,\n x1 + h1._x,\n y1 + h1._y,\n x2 + h2._x,\n y2 + h2._y,\n x2,\n y2\n ];\n if (matrix) matrix._transformCoordinates(values, values, 4);\n return values;\n },\n subdivide: function(v, t) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7];\n if (t === undefined) t = 0.5;\n var u = 1 - t, x4 = u * x0 + t * x1, y4 = u * y0 + t * y1, x5 = u * x1 + t * x2, y5 = u * y1 + t * y2, x6 = u * x2 + t * x3, y6 = u * y2 + t * y3, x7 = u * x4 + t * x5, y7 = u * y4 + t * y5, x8 = u * x5 + t * x6, y8 = u * y5 + t * y6, x9 = u * x7 + t * x8, y9 = u * y7 + t * y8;\n return [\n [\n x0,\n y0,\n x4,\n y4,\n x7,\n y7,\n x9,\n y9\n ],\n [\n x9,\n y9,\n x8,\n y8,\n x6,\n y6,\n x3,\n y3\n ]\n ];\n },\n getMonoCurves: function(v, dir) {\n var curves = [], io = dir ? 0 : 1, o0 = v[io + 0], o1 = v[io + 2], o2 = v[io + 4], o3 = v[io + 6];\n if (o0 >= o1 === o1 >= o2 && o1 >= o2 === o2 >= o3 || Curve.isStraight(v)) curves.push(v);\n else {\n var a = 3 * (o1 - o2) - o0 + o3, b = 2 * (o0 + o2) - 4 * o1, c = o1 - o0, tMin = 1e-8, tMax = 1 - tMin, roots = [], n = Numerical.solveQuadratic(a, b, c, roots, tMin, tMax);\n if (!n) curves.push(v);\n else {\n roots.sort();\n var t = roots[0], parts = Curve.subdivide(v, t);\n curves.push(parts[0]);\n if (n > 1) {\n t = (roots[1] - t) / (1 - t);\n parts = Curve.subdivide(parts[1], t);\n curves.push(parts[0]);\n }\n curves.push(parts[1]);\n }\n }\n return curves;\n },\n solveCubic: function(v, coord, val, roots, min, max) {\n var v0 = v[coord], v1 = v[coord + 2], v2 = v[coord + 4], v3 = v[coord + 6], res = 0;\n if (!(v0 < val && v3 < val && v1 < val && v2 < val || v0 > val && v3 > val && v1 > val && v2 > val)) {\n var c = 3 * (v1 - v0), b = 3 * (v2 - v1) - c, a = v3 - v0 - c - b;\n res = Numerical.solveCubic(a, b, c, v0 - val, roots, min, max);\n }\n return res;\n },\n getTimeOf: function(v, point) {\n var p0 = new Point(v[0], v[1]), p3 = new Point(v[6], v[7]), epsilon = 1e-12, geomEpsilon = 1e-7, t = point.isClose(p0, epsilon) ? 0 : point.isClose(p3, epsilon) ? 1 : null;\n if (t === null) {\n var coords = [\n point.x,\n point.y\n ], roots = [];\n for(var c = 0; c < 2; c++){\n var count = Curve.solveCubic(v, c, coords[c], roots, 0, 1);\n for(var i = 0; i < count; i++){\n var u = roots[i];\n if (point.isClose(Curve.getPoint(v, u), geomEpsilon)) return u;\n }\n }\n }\n return point.isClose(p0, geomEpsilon) ? 0 : point.isClose(p3, geomEpsilon) ? 1 : null;\n },\n getNearestTime: function(v, point) {\n if (Curve.isStraight(v)) {\n var x0 = v[0], y0 = v[1], x3 = v[6], y3 = v[7], vx = x3 - x0, vy = y3 - y0, det = vx * vx + vy * vy;\n if (det === 0) return 0;\n var u = ((point.x - x0) * vx + (point.y - y0) * vy) / det;\n return u < 1e-12 ? 0 : u > 0.999999999999 ? 1 : Curve.getTimeOf(v, new Point(x0 + u * vx, y0 + u * vy));\n }\n var count = 100, minDist = Infinity, minT = 0;\n function refine(t) {\n if (t >= 0 && t <= 1) {\n var dist = point.getDistance(Curve.getPoint(v, t), true);\n if (dist < minDist) {\n minDist = dist;\n minT = t;\n return true;\n }\n }\n }\n for(var i = 0; i <= count; i++)refine(i / count);\n var step = 1 / (count * 2);\n while(step > 1e-8)if (!refine(minT - step) && !refine(minT + step)) step /= 2;\n return minT;\n },\n getPart: function(v, from, to) {\n var flip = from > to;\n if (flip) {\n var tmp = from;\n from = to;\n to = tmp;\n }\n if (from > 0) v = Curve.subdivide(v, from)[1];\n if (to < 1) v = Curve.subdivide(v, (to - from) / (1 - from))[0];\n return flip ? [\n v[6],\n v[7],\n v[4],\n v[5],\n v[2],\n v[3],\n v[0],\n v[1]\n ] : v;\n },\n isFlatEnough: function(v, flatness) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], ux = 3 * x1 - 2 * x0 - x3, uy = 3 * y1 - 2 * y0 - y3, vx = 3 * x2 - 2 * x3 - x0, vy = 3 * y2 - 2 * y3 - y0;\n return Math.max(ux * ux, vx * vx) + Math.max(uy * uy, vy * vy) <= 16 * flatness * flatness;\n },\n getArea: function(v) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7];\n return 3 * ((y3 - y0) * (x1 + x2) - (x3 - x0) * (y1 + y2) + y1 * (x0 - x2) - x1 * (y0 - y2) + y3 * (x2 + x0 / 3) - x3 * (y2 + y0 / 3)) / 20;\n },\n getBounds: function(v) {\n var min = v.slice(0, 2), max = min.slice(), roots = [\n 0,\n 0\n ];\n for(var i = 0; i < 2; i++)Curve._addBounds(v[i], v[i + 2], v[i + 4], v[i + 6], i, 0, min, max, roots);\n return new Rectangle(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n },\n _addBounds: function(v0, v1, v2, v3, coord, padding, min, max, roots) {\n function add(value, padding) {\n var left = value - padding, right = value + padding;\n if (left < min[coord]) min[coord] = left;\n if (right > max[coord]) max[coord] = right;\n }\n padding /= 2;\n var minPad = min[coord] + padding, maxPad = max[coord] - padding;\n if (v0 < minPad || v1 < minPad || v2 < minPad || v3 < minPad || v0 > maxPad || v1 > maxPad || v2 > maxPad || v3 > maxPad) {\n if (v1 < v0 != v1 < v3 && v2 < v0 != v2 < v3) {\n add(v0, 0);\n add(v3, 0);\n } else {\n var a = 3 * (v1 - v2) - v0 + v3, b = 2 * (v0 + v2) - 4 * v1, c = v1 - v0, count = Numerical.solveQuadratic(a, b, c, roots), tMin = 1e-8, tMax = 1 - tMin;\n add(v3, 0);\n for(var i = 0; i < count; i++){\n var t = roots[i], u = 1 - t;\n if (tMin <= t && t <= tMax) add(u * u * u * v0 + 3 * u * u * t * v1 + 3 * u * t * t * v2 + t * t * t * v3, padding);\n }\n }\n }\n }\n }\n }, Base.each([\n \"getBounds\",\n \"getStrokeBounds\",\n \"getHandleBounds\"\n ], function(name) {\n this[name] = function() {\n if (!this._bounds) this._bounds = {};\n var bounds = this._bounds[name];\n if (!bounds) bounds = this._bounds[name] = Path[name]([\n this._segment1,\n this._segment2\n ], false, this._path);\n return bounds.clone();\n };\n }, {}), Base.each({\n isStraight: function(p1, h1, h2, p2) {\n if (h1.isZero() && h2.isZero()) return true;\n else {\n var v = p2.subtract(p1);\n if (v.isZero()) return false;\n else if (v.isCollinear(h1) && v.isCollinear(h2)) {\n var l = new Line(p1, p2), epsilon = 1e-7;\n if (l.getDistance(p1.add(h1)) < epsilon && l.getDistance(p2.add(h2)) < epsilon) {\n var div = v.dot(v), s1 = v.dot(h1) / div, s2 = v.dot(h2) / div;\n return s1 >= 0 && s1 <= 1 && s2 <= 0 && s2 >= -1;\n }\n }\n }\n return false;\n },\n isLinear: function(p1, h1, h2, p2) {\n var third = p2.subtract(p1).divide(3);\n return h1.equals(third) && h2.negate().equals(third);\n }\n }, function(test, name) {\n this[name] = function(epsilon) {\n var seg1 = this._segment1, seg2 = this._segment2;\n return test(seg1._point, seg1._handleOut, seg2._handleIn, seg2._point, epsilon);\n };\n this.statics[name] = function(v, epsilon) {\n var x0 = v[0], y0 = v[1], x3 = v[6], y3 = v[7];\n return test(new Point(x0, y0), new Point(v[2] - x0, v[3] - y0), new Point(v[4] - x3, v[5] - y3), new Point(x3, y3), epsilon);\n };\n }, {\n statics: {},\n hasHandles: function() {\n return !this._segment1._handleOut.isZero() || !this._segment2._handleIn.isZero();\n },\n hasLength: function(epsilon) {\n return (!this.getPoint1().equals(this.getPoint2()) || this.hasHandles()) && this.getLength() > (epsilon || 0);\n },\n isCollinear: function(curve) {\n return curve && this.isStraight() && curve.isStraight() && this.getLine().isCollinear(curve.getLine());\n },\n isHorizontal: function() {\n return this.isStraight() && Math.abs(this.getTangentAtTime(0.5).y) < 1e-8;\n },\n isVertical: function() {\n return this.isStraight() && Math.abs(this.getTangentAtTime(0.5).x) < 1e-8;\n }\n }), {\n beans: false,\n getLocationAt: function(offset, _isTime) {\n return this.getLocationAtTime(_isTime ? offset : this.getTimeAt(offset));\n },\n getLocationAtTime: function(t) {\n return t != null && t >= 0 && t <= 1 ? new CurveLocation(this, t) : null;\n },\n getTimeAt: function(offset, start) {\n return Curve.getTimeAt(this.getValues(), offset, start);\n },\n getParameterAt: \"#getTimeAt\",\n getTimesWithTangent: function() {\n var tangent = Point.read(arguments);\n return tangent.isZero() ? [] : Curve.getTimesWithTangent(this.getValues(), tangent);\n },\n getOffsetAtTime: function(t) {\n return this.getPartLength(0, t);\n },\n getLocationOf: function() {\n return this.getLocationAtTime(this.getTimeOf(Point.read(arguments)));\n },\n getOffsetOf: function() {\n var loc = this.getLocationOf.apply(this, arguments);\n return loc ? loc.getOffset() : null;\n },\n getTimeOf: function() {\n return Curve.getTimeOf(this.getValues(), Point.read(arguments));\n },\n getParameterOf: \"#getTimeOf\",\n getNearestLocation: function() {\n var point = Point.read(arguments), values = this.getValues(), t = Curve.getNearestTime(values, point), pt = Curve.getPoint(values, t);\n return new CurveLocation(this, t, pt, null, point.getDistance(pt));\n },\n getNearestPoint: function() {\n var loc = this.getNearestLocation.apply(this, arguments);\n return loc ? loc.getPoint() : loc;\n }\n }, new function() {\n var methods = [\n \"getPoint\",\n \"getTangent\",\n \"getNormal\",\n \"getWeightedTangent\",\n \"getWeightedNormal\",\n \"getCurvature\"\n ];\n return Base.each(methods, function(name) {\n this[name + \"At\"] = function(location, _isTime) {\n var values = this.getValues();\n return Curve[name](values, _isTime ? location : Curve.getTimeAt(values, location));\n };\n this[name + \"AtTime\"] = function(time) {\n return Curve[name](this.getValues(), time);\n };\n }, {\n statics: {\n _evaluateMethods: methods\n }\n });\n }, new function() {\n function getLengthIntegrand(v) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], ax = 9 * (x1 - x2) + 3 * (x3 - x0), bx = 6 * (x0 + x2) - 12 * x1, cx = 3 * (x1 - x0), ay = 9 * (y1 - y2) + 3 * (y3 - y0), by = 6 * (y0 + y2) - 12 * y1, cy = 3 * (y1 - y0);\n return function(t) {\n var dx = (ax * t + bx) * t + cx, dy = (ay * t + by) * t + cy;\n return Math.sqrt(dx * dx + dy * dy);\n };\n }\n function getIterations(a, b) {\n return Math.max(2, Math.min(16, Math.ceil(Math.abs(b - a) * 32)));\n }\n function evaluate(v, t, type, normalized) {\n if (t == null || t < 0 || t > 1) return null;\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], isZero = Numerical.isZero;\n if (isZero(x1 - x0) && isZero(y1 - y0)) {\n x1 = x0;\n y1 = y0;\n }\n if (isZero(x2 - x3) && isZero(y2 - y3)) {\n x2 = x3;\n y2 = y3;\n }\n var cx = 3 * (x1 - x0), bx = 3 * (x2 - x1) - cx, ax = x3 - x0 - cx - bx, cy = 3 * (y1 - y0), by = 3 * (y2 - y1) - cy, ay = y3 - y0 - cy - by, x, y;\n if (type === 0) {\n x = t === 0 ? x0 : t === 1 ? x3 : ((ax * t + bx) * t + cx) * t + x0;\n y = t === 0 ? y0 : t === 1 ? y3 : ((ay * t + by) * t + cy) * t + y0;\n } else {\n var tMin = 1e-8, tMax = 1 - tMin;\n if (t < tMin) {\n x = cx;\n y = cy;\n } else if (t > tMax) {\n x = 3 * (x3 - x2);\n y = 3 * (y3 - y2);\n } else {\n x = (3 * ax * t + 2 * bx) * t + cx;\n y = (3 * ay * t + 2 * by) * t + cy;\n }\n if (normalized) {\n if (x === 0 && y === 0 && (t < tMin || t > tMax)) {\n x = x2 - x1;\n y = y2 - y1;\n }\n var len = Math.sqrt(x * x + y * y);\n if (len) {\n x /= len;\n y /= len;\n }\n }\n if (type === 3) {\n var x2 = 6 * ax * t + 2 * bx, y2 = 6 * ay * t + 2 * by, d = Math.pow(x * x + y * y, 1.5);\n x = d !== 0 ? (x * y2 - y * x2) / d : 0;\n y = 0;\n }\n }\n return type === 2 ? new Point(y, -x) : new Point(x, y);\n }\n return {\n statics: {\n classify: function(v) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], a1 = x0 * (y3 - y2) + y0 * (x2 - x3) + x3 * y2 - y3 * x2, a2 = x1 * (y0 - y3) + y1 * (x3 - x0) + x0 * y3 - y0 * x3, a3 = x2 * (y1 - y0) + y2 * (x0 - x1) + x1 * y0 - y1 * x0, d3 = 3 * a3, d2 = d3 - a2, d1 = d2 - a2 + a1, l = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3), s = l !== 0 ? 1 / l : 0, isZero = Numerical.isZero, serpentine = \"serpentine\";\n d1 *= s;\n d2 *= s;\n d3 *= s;\n function type(type, t1, t2) {\n var hasRoots = t1 !== undefined, t1Ok = hasRoots && t1 > 0 && t1 < 1, t2Ok = hasRoots && t2 > 0 && t2 < 1;\n if (hasRoots && (!(t1Ok || t2Ok) || type === \"loop\" && !(t1Ok && t2Ok))) {\n type = \"arch\";\n t1Ok = t2Ok = false;\n }\n return {\n type: type,\n roots: t1Ok || t2Ok ? t1Ok && t2Ok ? t1 < t2 ? [\n t1,\n t2\n ] : [\n t2,\n t1\n ] : [\n t1Ok ? t1 : t2\n ] : null\n };\n }\n if (isZero(d1)) return isZero(d2) ? type(isZero(d3) ? \"line\" : \"quadratic\") : type(serpentine, d3 / (3 * d2));\n var d = 3 * d2 * d2 - 4 * d1 * d3;\n if (isZero(d)) return type(\"cusp\", d2 / (2 * d1));\n var f1 = d > 0 ? Math.sqrt(d / 3) : Math.sqrt(-d), f2 = 2 * d1;\n return type(d > 0 ? serpentine : \"loop\", (d2 + f1) / f2, (d2 - f1) / f2);\n },\n getLength: function(v, a, b, ds) {\n if (a === undefined) a = 0;\n if (b === undefined) b = 1;\n if (Curve.isStraight(v)) {\n var c = v;\n if (b < 1) {\n c = Curve.subdivide(c, b)[0];\n a /= b;\n }\n if (a > 0) c = Curve.subdivide(c, a)[1];\n var dx = c[6] - c[0], dy = c[7] - c[1];\n return Math.sqrt(dx * dx + dy * dy);\n }\n return Numerical.integrate(ds || getLengthIntegrand(v), a, b, getIterations(a, b));\n },\n getTimeAt: function(v, offset, start) {\n if (start === undefined) start = offset < 0 ? 1 : 0;\n if (offset === 0) return start;\n var abs = Math.abs, epsilon = 1e-12, forward = offset > 0, a = forward ? start : 0, b = forward ? 1 : start, ds = getLengthIntegrand(v), rangeLength = Curve.getLength(v, a, b, ds), diff = abs(offset) - rangeLength;\n if (abs(diff) < epsilon) return forward ? b : a;\n else if (diff > epsilon) return null;\n var guess = offset / rangeLength, length = 0;\n function f(t) {\n length += Numerical.integrate(ds, start, t, getIterations(start, t));\n start = t;\n return length - offset;\n }\n return Numerical.findRoot(f, ds, start + guess, a, b, 32, 1e-12);\n },\n getPoint: function(v, t) {\n return evaluate(v, t, 0, false);\n },\n getTangent: function(v, t) {\n return evaluate(v, t, 1, true);\n },\n getWeightedTangent: function(v, t) {\n return evaluate(v, t, 1, false);\n },\n getNormal: function(v, t) {\n return evaluate(v, t, 2, true);\n },\n getWeightedNormal: function(v, t) {\n return evaluate(v, t, 2, false);\n },\n getCurvature: function(v, t) {\n return evaluate(v, t, 3, false).x;\n },\n getPeaks: function(v) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], ax = -x0 + 3 * x1 - 3 * x2 + x3, bx = 3 * x0 - 6 * x1 + 3 * x2, cx = -3 * x0 + 3 * x1, ay = -y0 + 3 * y1 - 3 * y2 + y3, by = 3 * y0 - 6 * y1 + 3 * y2, cy = -3 * y0 + 3 * y1, tMin = 1e-8, tMax = 1 - tMin, roots = [];\n Numerical.solveCubic(9 * (ax * ax + ay * ay), 9 * (ax * bx + by * ay), 2 * (bx * bx + by * by) + 3 * (cx * ax + cy * ay), cx * bx + by * cy, roots, tMin, tMax);\n return roots.sort();\n }\n }\n };\n }, new function() {\n function addLocation(locations, include, c1, t1, c2, t2, overlap) {\n var excludeStart = !overlap && c1.getPrevious() === c2, excludeEnd = !overlap && c1 !== c2 && c1.getNext() === c2, tMin = 1e-8, tMax = 1 - tMin;\n if (t1 !== null && t1 >= (excludeStart ? tMin : 0) && t1 <= (excludeEnd ? tMax : 1)) {\n if (t2 !== null && t2 >= (excludeEnd ? tMin : 0) && t2 <= (excludeStart ? tMax : 1)) {\n var loc1 = new CurveLocation(c1, t1, null, overlap), loc2 = new CurveLocation(c2, t2, null, overlap);\n loc1._intersection = loc2;\n loc2._intersection = loc1;\n if (!include || include(loc1)) CurveLocation.insert(locations, loc1, true);\n }\n }\n }\n function addCurveIntersections(v1, v2, c1, c2, locations, include, flip, recursion, calls, tMin, tMax, uMin, uMax) {\n if (++calls >= 4096 || ++recursion >= 40) return calls;\n var fatLineEpsilon = 1e-9, q0x = v2[0], q0y = v2[1], q3x = v2[6], q3y = v2[7], getSignedDistance = Line.getSignedDistance, d1 = getSignedDistance(q0x, q0y, q3x, q3y, v2[2], v2[3]), d2 = getSignedDistance(q0x, q0y, q3x, q3y, v2[4], v2[5]), factor = d1 * d2 > 0 ? 3 / 4 : 4 / 9, dMin = factor * Math.min(0, d1, d2), dMax = factor * Math.max(0, d1, d2), dp0 = getSignedDistance(q0x, q0y, q3x, q3y, v1[0], v1[1]), dp1 = getSignedDistance(q0x, q0y, q3x, q3y, v1[2], v1[3]), dp2 = getSignedDistance(q0x, q0y, q3x, q3y, v1[4], v1[5]), dp3 = getSignedDistance(q0x, q0y, q3x, q3y, v1[6], v1[7]), hull = getConvexHull(dp0, dp1, dp2, dp3), top = hull[0], bottom = hull[1], tMinClip, tMaxClip;\n if (d1 === 0 && d2 === 0 && dp0 === 0 && dp1 === 0 && dp2 === 0 && dp3 === 0 || (tMinClip = clipConvexHull(top, bottom, dMin, dMax)) == null || (tMaxClip = clipConvexHull(top.reverse(), bottom.reverse(), dMin, dMax)) == null) return calls;\n var tMinNew = tMin + (tMax - tMin) * tMinClip, tMaxNew = tMin + (tMax - tMin) * tMaxClip;\n if (Math.max(uMax - uMin, tMaxNew - tMinNew) < fatLineEpsilon) {\n var t = (tMinNew + tMaxNew) / 2, u = (uMin + uMax) / 2;\n addLocation(locations, include, flip ? c2 : c1, flip ? u : t, flip ? c1 : c2, flip ? t : u);\n } else {\n v1 = Curve.getPart(v1, tMinClip, tMaxClip);\n var uDiff = uMax - uMin;\n if (tMaxClip - tMinClip > 0.8) {\n if (tMaxNew - tMinNew > uDiff) {\n var parts = Curve.subdivide(v1, 0.5), t = (tMinNew + tMaxNew) / 2;\n calls = addCurveIntersections(v2, parts[0], c2, c1, locations, include, !flip, recursion, calls, uMin, uMax, tMinNew, t);\n calls = addCurveIntersections(v2, parts[1], c2, c1, locations, include, !flip, recursion, calls, uMin, uMax, t, tMaxNew);\n } else {\n var parts = Curve.subdivide(v2, 0.5), u = (uMin + uMax) / 2;\n calls = addCurveIntersections(parts[0], v1, c2, c1, locations, include, !flip, recursion, calls, uMin, u, tMinNew, tMaxNew);\n calls = addCurveIntersections(parts[1], v1, c2, c1, locations, include, !flip, recursion, calls, u, uMax, tMinNew, tMaxNew);\n }\n } else if (uDiff === 0 || uDiff >= fatLineEpsilon) calls = addCurveIntersections(v2, v1, c2, c1, locations, include, !flip, recursion, calls, uMin, uMax, tMinNew, tMaxNew);\n else calls = addCurveIntersections(v1, v2, c1, c2, locations, include, flip, recursion, calls, tMinNew, tMaxNew, uMin, uMax);\n }\n return calls;\n }\n function getConvexHull(dq0, dq1, dq2, dq3) {\n var p0 = [\n 0,\n dq0\n ], p1 = [\n 1 / 3,\n dq1\n ], p2 = [\n 2 / 3,\n dq2\n ], p3 = [\n 1,\n dq3\n ], dist1 = dq1 - (2 * dq0 + dq3) / 3, dist2 = dq2 - (dq0 + 2 * dq3) / 3, hull;\n if (dist1 * dist2 < 0) hull = [\n [\n p0,\n p1,\n p3\n ],\n [\n p0,\n p2,\n p3\n ]\n ];\n else {\n var distRatio = dist1 / dist2;\n hull = [\n distRatio >= 2 ? [\n p0,\n p1,\n p3\n ] : distRatio <= 0.5 ? [\n p0,\n p2,\n p3\n ] : [\n p0,\n p1,\n p2,\n p3\n ],\n [\n p0,\n p3\n ]\n ];\n }\n return (dist1 || dist2) < 0 ? hull.reverse() : hull;\n }\n function clipConvexHull(hullTop, hullBottom, dMin, dMax) {\n if (hullTop[0][1] < dMin) return clipConvexHullPart(hullTop, true, dMin);\n else if (hullBottom[0][1] > dMax) return clipConvexHullPart(hullBottom, false, dMax);\n else return hullTop[0][0];\n }\n function clipConvexHullPart(part, top, threshold) {\n var px = part[0][0], py = part[0][1];\n for(var i = 1, l = part.length; i < l; i++){\n var qx = part[i][0], qy = part[i][1];\n if (top ? qy >= threshold : qy <= threshold) return qy === threshold ? qx : px + (threshold - py) * (qx - px) / (qy - py);\n px = qx;\n py = qy;\n }\n return null;\n }\n function getCurveLineIntersections(v, px, py, vx, vy) {\n var isZero = Numerical.isZero;\n if (isZero(vx) && isZero(vy)) {\n var t = Curve.getTimeOf(v, new Point(px, py));\n return t === null ? [] : [\n t\n ];\n }\n var angle = Math.atan2(-vy, vx), sin = Math.sin(angle), cos = Math.cos(angle), rv = [], roots = [];\n for(var i = 0; i < 8; i += 2){\n var x = v[i] - px, y = v[i + 1] - py;\n rv.push(x * cos - y * sin, x * sin + y * cos);\n }\n Curve.solveCubic(rv, 1, 0, roots, 0, 1);\n return roots;\n }\n function addCurveLineIntersections(v1, v2, c1, c2, locations, include, flip) {\n var x1 = v2[0], y1 = v2[1], x2 = v2[6], y2 = v2[7], roots = getCurveLineIntersections(v1, x1, y1, x2 - x1, y2 - y1);\n for(var i = 0, l = roots.length; i < l; i++){\n var t1 = roots[i], p1 = Curve.getPoint(v1, t1), t2 = Curve.getTimeOf(v2, p1);\n if (t2 !== null) addLocation(locations, include, flip ? c2 : c1, flip ? t2 : t1, flip ? c1 : c2, flip ? t1 : t2);\n }\n }\n function addLineIntersection(v1, v2, c1, c2, locations, include) {\n var pt = Line.intersect(v1[0], v1[1], v1[6], v1[7], v2[0], v2[1], v2[6], v2[7]);\n if (pt) addLocation(locations, include, c1, Curve.getTimeOf(v1, pt), c2, Curve.getTimeOf(v2, pt));\n }\n function getCurveIntersections(v1, v2, c1, c2, locations, include) {\n var epsilon = 1e-12, min = Math.min, max = Math.max;\n if (max(v1[0], v1[2], v1[4], v1[6]) + epsilon > min(v2[0], v2[2], v2[4], v2[6]) && min(v1[0], v1[2], v1[4], v1[6]) - epsilon < max(v2[0], v2[2], v2[4], v2[6]) && max(v1[1], v1[3], v1[5], v1[7]) + epsilon > min(v2[1], v2[3], v2[5], v2[7]) && min(v1[1], v1[3], v1[5], v1[7]) - epsilon < max(v2[1], v2[3], v2[5], v2[7])) {\n var overlaps = getOverlaps(v1, v2);\n if (overlaps) for(var i = 0; i < 2; i++){\n var overlap = overlaps[i];\n addLocation(locations, include, c1, overlap[0], c2, overlap[1], true);\n }\n else {\n var straight1 = Curve.isStraight(v1), straight2 = Curve.isStraight(v2), straight = straight1 && straight2, flip = straight1 && !straight2, before = locations.length;\n (straight ? addLineIntersection : straight1 || straight2 ? addCurveLineIntersections : addCurveIntersections)(flip ? v2 : v1, flip ? v1 : v2, flip ? c2 : c1, flip ? c1 : c2, locations, include, flip, 0, 0, 0, 1, 0, 1);\n if (!straight || locations.length === before) for(var i = 0; i < 4; i++){\n var t1 = i >> 1, t2 = i & 1, i1 = t1 * 6, i2 = t2 * 6, p1 = new Point(v1[i1], v1[i1 + 1]), p2 = new Point(v2[i2], v2[i2 + 1]);\n if (p1.isClose(p2, epsilon)) addLocation(locations, include, c1, t1, c2, t2);\n }\n }\n }\n return locations;\n }\n function getSelfIntersection(v1, c1, locations, include) {\n var info = Curve.classify(v1);\n if (info.type === \"loop\") {\n var roots = info.roots;\n addLocation(locations, include, c1, roots[0], c1, roots[1]);\n }\n return locations;\n }\n function getIntersections(curves1, curves2, include, matrix1, matrix2, _returnFirst) {\n var epsilon = 1e-7, self1 = !curves2;\n if (self1) curves2 = curves1;\n var length1 = curves1.length, length2 = curves2.length, values1 = new Array(length1), values2 = self1 ? values1 : new Array(length2), locations = [];\n for(var i = 0; i < length1; i++)values1[i] = curves1[i].getValues(matrix1);\n if (!self1) for(var i = 0; i < length2; i++)values2[i] = curves2[i].getValues(matrix2);\n var boundsCollisions = CollisionDetection.findCurveBoundsCollisions(values1, values2, epsilon);\n for(var index1 = 0; index1 < length1; index1++){\n var curve1 = curves1[index1], v1 = values1[index1];\n if (self1) getSelfIntersection(v1, curve1, locations, include);\n var collisions1 = boundsCollisions[index1];\n if (collisions1) for(var j = 0; j < collisions1.length; j++){\n if (_returnFirst && locations.length) return locations;\n var index2 = collisions1[j];\n if (!self1 || index2 > index1) {\n var curve2 = curves2[index2], v2 = values2[index2];\n getCurveIntersections(v1, v2, curve1, curve2, locations, include);\n }\n }\n }\n return locations;\n }\n function getOverlaps(v1, v2) {\n function getSquaredLineLength(v) {\n var x = v[6] - v[0], y = v[7] - v[1];\n return x * x + y * y;\n }\n var abs = Math.abs, getDistance = Line.getDistance, timeEpsilon = 1e-8, geomEpsilon = 1e-7, straight1 = Curve.isStraight(v1), straight2 = Curve.isStraight(v2), straightBoth = straight1 && straight2, flip = getSquaredLineLength(v1) < getSquaredLineLength(v2), l1 = flip ? v2 : v1, l2 = flip ? v1 : v2, px = l1[0], py = l1[1], vx = l1[6] - px, vy = l1[7] - py;\n if (getDistance(px, py, vx, vy, l2[0], l2[1], true) < geomEpsilon && getDistance(px, py, vx, vy, l2[6], l2[7], true) < geomEpsilon) {\n if (!straightBoth && getDistance(px, py, vx, vy, l1[2], l1[3], true) < geomEpsilon && getDistance(px, py, vx, vy, l1[4], l1[5], true) < geomEpsilon && getDistance(px, py, vx, vy, l2[2], l2[3], true) < geomEpsilon && getDistance(px, py, vx, vy, l2[4], l2[5], true) < geomEpsilon) straight1 = straight2 = straightBoth = true;\n } else if (straightBoth) return null;\n if (straight1 ^ straight2) return null;\n var v = [\n v1,\n v2\n ], pairs = [];\n for(var i = 0; i < 4 && pairs.length < 2; i++){\n var i1 = i & 1, i2 = i1 ^ 1, t1 = i >> 1, t2 = Curve.getTimeOf(v[i1], new Point(v[i2][t1 ? 6 : 0], v[i2][t1 ? 7 : 1]));\n if (t2 != null) {\n var pair = i1 ? [\n t1,\n t2\n ] : [\n t2,\n t1\n ];\n if (!pairs.length || abs(pair[0] - pairs[0][0]) > timeEpsilon && abs(pair[1] - pairs[0][1]) > timeEpsilon) pairs.push(pair);\n }\n if (i > 2 && !pairs.length) break;\n }\n if (pairs.length !== 2) pairs = null;\n else if (!straightBoth) {\n var o1 = Curve.getPart(v1, pairs[0][0], pairs[1][0]), o2 = Curve.getPart(v2, pairs[0][1], pairs[1][1]);\n if (abs(o2[2] - o1[2]) > geomEpsilon || abs(o2[3] - o1[3]) > geomEpsilon || abs(o2[4] - o1[4]) > geomEpsilon || abs(o2[5] - o1[5]) > geomEpsilon) pairs = null;\n }\n return pairs;\n }\n function getTimesWithTangent(v, tangent) {\n var x0 = v[0], y0 = v[1], x1 = v[2], y1 = v[3], x2 = v[4], y2 = v[5], x3 = v[6], y3 = v[7], normalized = tangent.normalize(), tx = normalized.x, ty = normalized.y, ax = 3 * x3 - 9 * x2 + 9 * x1 - 3 * x0, ay = 3 * y3 - 9 * y2 + 9 * y1 - 3 * y0, bx = 6 * x2 - 12 * x1 + 6 * x0, by = 6 * y2 - 12 * y1 + 6 * y0, cx = 3 * x1 - 3 * x0, cy = 3 * y1 - 3 * y0, den = 2 * ax * ty - 2 * ay * tx, times = [];\n if (Math.abs(den) < Numerical.CURVETIME_EPSILON) {\n var num = ax * cy - ay * cx, den = ax * by - ay * bx;\n if (den != 0) {\n var t = -num / den;\n if (t >= 0 && t <= 1) times.push(t);\n }\n } else {\n var delta = (bx * bx - 4 * ax * cx) * ty * ty + (-2 * bx * by + 4 * ay * cx + 4 * ax * cy) * tx * ty + (by * by - 4 * ay * cy) * tx * tx, k = bx * ty - by * tx;\n if (delta >= 0 && den != 0) {\n var d = Math.sqrt(delta), t0 = -(k + d) / den, t1 = (-k + d) / den;\n if (t0 >= 0 && t0 <= 1) times.push(t0);\n if (t1 >= 0 && t1 <= 1) times.push(t1);\n }\n }\n return times;\n }\n return {\n getIntersections: function(curve) {\n var v1 = this.getValues(), v2 = curve && curve !== this && curve.getValues();\n return v2 ? getCurveIntersections(v1, v2, this, curve, []) : getSelfIntersection(v1, this, []);\n },\n statics: {\n getOverlaps: getOverlaps,\n getIntersections: getIntersections,\n getCurveLineIntersections: getCurveLineIntersections,\n getTimesWithTangent: getTimesWithTangent\n }\n };\n });\n var CurveLocation = Base.extend({\n _class: \"CurveLocation\",\n initialize: function CurveLocation(curve, time, point, _overlap, _distance) {\n if (time >= 0.99999999) {\n var next = curve.getNext();\n if (next) {\n time = 0;\n curve = next;\n }\n }\n this._setCurve(curve);\n this._time = time;\n this._point = point || curve.getPointAtTime(time);\n this._overlap = _overlap;\n this._distance = _distance;\n this._intersection = this._next = this._previous = null;\n },\n _setPath: function(path) {\n this._path = path;\n this._version = path ? path._version : 0;\n },\n _setCurve: function(curve) {\n this._setPath(curve._path);\n this._curve = curve;\n this._segment = null;\n this._segment1 = curve._segment1;\n this._segment2 = curve._segment2;\n },\n _setSegment: function(segment) {\n var curve = segment.getCurve();\n if (curve) this._setCurve(curve);\n else {\n this._setPath(segment._path);\n this._segment1 = segment;\n this._segment2 = null;\n }\n this._segment = segment;\n this._time = segment === this._segment1 ? 0 : 1;\n this._point = segment._point.clone();\n },\n getSegment: function() {\n var segment = this._segment;\n if (!segment) {\n var curve = this.getCurve(), time = this.getTime();\n if (time === 0) segment = curve._segment1;\n else if (time === 1) segment = curve._segment2;\n else if (time != null) segment = curve.getPartLength(0, time) < curve.getPartLength(time, 1) ? curve._segment1 : curve._segment2;\n this._segment = segment;\n }\n return segment;\n },\n getCurve: function() {\n var path = this._path, that = this;\n if (path && path._version !== this._version) this._time = this._offset = this._curveOffset = this._curve = null;\n function trySegment(segment) {\n var curve = segment && segment.getCurve();\n if (curve && (that._time = curve.getTimeOf(that._point)) != null) {\n that._setCurve(curve);\n return curve;\n }\n }\n return this._curve || trySegment(this._segment) || trySegment(this._segment1) || trySegment(this._segment2.getPrevious());\n },\n getPath: function() {\n var curve = this.getCurve();\n return curve && curve._path;\n },\n getIndex: function() {\n var curve = this.getCurve();\n return curve && curve.getIndex();\n },\n getTime: function() {\n var curve = this.getCurve(), time = this._time;\n return curve && time == null ? this._time = curve.getTimeOf(this._point) : time;\n },\n getParameter: \"#getTime\",\n getPoint: function() {\n return this._point;\n },\n getOffset: function() {\n var offset = this._offset;\n if (offset == null) {\n offset = 0;\n var path = this.getPath(), index = this.getIndex();\n if (path && index != null) {\n var curves = path.getCurves();\n for(var i = 0; i < index; i++)offset += curves[i].getLength();\n }\n this._offset = offset += this.getCurveOffset();\n }\n return offset;\n },\n getCurveOffset: function() {\n var offset = this._curveOffset;\n if (offset == null) {\n var curve = this.getCurve(), time = this.getTime();\n this._curveOffset = offset = time != null && curve && curve.getPartLength(0, time);\n }\n return offset;\n },\n getIntersection: function() {\n return this._intersection;\n },\n getDistance: function() {\n return this._distance;\n },\n divide: function() {\n var curve = this.getCurve(), res = curve && curve.divideAtTime(this.getTime());\n if (res) this._setSegment(res._segment1);\n return res;\n },\n split: function() {\n var curve = this.getCurve(), path = curve._path, res = curve && curve.splitAtTime(this.getTime());\n if (res) this._setSegment(path.getLastSegment());\n return res;\n },\n equals: function(loc, _ignoreOther) {\n var res = this === loc;\n if (!res && loc instanceof CurveLocation) {\n var c1 = this.getCurve(), c2 = loc.getCurve(), p1 = c1._path, p2 = c2._path;\n if (p1 === p2) {\n var abs = Math.abs, epsilon = 1e-7, diff = abs(this.getOffset() - loc.getOffset()), i1 = !_ignoreOther && this._intersection, i2 = !_ignoreOther && loc._intersection;\n res = (diff < epsilon || p1 && abs(p1.getLength() - diff) < epsilon) && (!i1 && !i2 || i1 && i2 && i1.equals(i2, true));\n }\n }\n return res;\n },\n toString: function() {\n var parts = [], point = this.getPoint(), f = Formatter.instance;\n if (point) parts.push(\"point: \" + point);\n var index = this.getIndex();\n if (index != null) parts.push(\"index: \" + index);\n var time = this.getTime();\n if (time != null) parts.push(\"time: \" + f.number(time));\n if (this._distance != null) parts.push(\"distance: \" + f.number(this._distance));\n return \"{ \" + parts.join(\", \") + \" }\";\n },\n isTouching: function() {\n var inter = this._intersection;\n if (inter && this.getTangent().isCollinear(inter.getTangent())) {\n var curve1 = this.getCurve(), curve2 = inter.getCurve();\n return !(curve1.isStraight() && curve2.isStraight() && curve1.getLine().intersect(curve2.getLine()));\n }\n return false;\n },\n isCrossing: function() {\n var inter = this._intersection;\n if (!inter) return false;\n var t1 = this.getTime(), t2 = inter.getTime(), tMin = 1e-8, tMax = 1 - tMin, t1Inside = t1 >= tMin && t1 <= tMax, t2Inside = t2 >= tMin && t2 <= tMax;\n if (t1Inside && t2Inside) return !this.isTouching();\n var c2 = this.getCurve(), c1 = c2 && t1 < tMin ? c2.getPrevious() : c2, c4 = inter.getCurve(), c3 = c4 && t2 < tMin ? c4.getPrevious() : c4;\n if (t1 > tMax) c2 = c2.getNext();\n if (t2 > tMax) c4 = c4.getNext();\n if (!c1 || !c2 || !c3 || !c4) return false;\n var offsets = [];\n function addOffsets(curve, end) {\n var v = curve.getValues(), roots = Curve.classify(v).roots || Curve.getPeaks(v), count = roots.length, offset = Curve.getLength(v, end && count ? roots[count - 1] : 0, !end && count ? roots[0] : 1);\n offsets.push(count ? offset : offset / 32);\n }\n function isInRange(angle, min, max) {\n return min < max ? angle > min && angle < max : angle > min || angle < max;\n }\n if (!t1Inside) {\n addOffsets(c1, true);\n addOffsets(c2, false);\n }\n if (!t2Inside) {\n addOffsets(c3, true);\n addOffsets(c4, false);\n }\n var pt = this.getPoint(), offset = Math.min.apply(Math, offsets), v2 = t1Inside ? c2.getTangentAtTime(t1) : c2.getPointAt(offset).subtract(pt), v1 = t1Inside ? v2.negate() : c1.getPointAt(-offset).subtract(pt), v4 = t2Inside ? c4.getTangentAtTime(t2) : c4.getPointAt(offset).subtract(pt), v3 = t2Inside ? v4.negate() : c3.getPointAt(-offset).subtract(pt), a1 = v1.getAngle(), a2 = v2.getAngle(), a3 = v3.getAngle(), a4 = v4.getAngle();\n return !!(t1Inside ? isInRange(a1, a3, a4) ^ isInRange(a2, a3, a4) && isInRange(a1, a4, a3) ^ isInRange(a2, a4, a3) : isInRange(a3, a1, a2) ^ isInRange(a4, a1, a2) && isInRange(a3, a2, a1) ^ isInRange(a4, a2, a1));\n },\n hasOverlap: function() {\n return !!this._overlap;\n }\n }, Base.each(Curve._evaluateMethods, function(name) {\n var get = name + \"At\";\n this[name] = function() {\n var curve = this.getCurve(), time = this.getTime();\n return time != null && curve && curve[get](time, true);\n };\n }, {\n preserve: true\n }), new function() {\n function insert(locations, loc, merge) {\n var length = locations.length, l = 0, r = length - 1;\n function search(index, dir) {\n for(var i = index + dir; i >= -1 && i <= length; i += dir){\n var loc2 = locations[(i % length + length) % length];\n if (!loc.getPoint().isClose(loc2.getPoint(), 1e-7)) break;\n if (loc.equals(loc2)) return loc2;\n }\n return null;\n }\n while(l <= r){\n var m = l + r >>> 1, loc2 = locations[m], found;\n if (merge && (found = loc.equals(loc2) ? loc2 : search(m, -1) || search(m, 1))) {\n if (loc._overlap) found._overlap = found._intersection._overlap = true;\n return found;\n }\n var path1 = loc.getPath(), path2 = loc2.getPath(), diff = path1 !== path2 ? path1._id - path2._id : loc.getIndex() + loc.getTime() - (loc2.getIndex() + loc2.getTime());\n if (diff < 0) r = m - 1;\n else l = m + 1;\n }\n locations.splice(l, 0, loc);\n return loc;\n }\n return {\n statics: {\n insert: insert,\n expand: function(locations) {\n var expanded = locations.slice();\n for(var i = locations.length - 1; i >= 0; i--)insert(expanded, locations[i]._intersection, false);\n return expanded;\n }\n }\n };\n });\n var PathItem = Item.extend({\n _class: \"PathItem\",\n _selectBounds: false,\n _canScaleStroke: true,\n beans: true,\n initialize: function PathItem() {},\n statics: {\n create: function(arg) {\n var data, segments, compound;\n if (Base.isPlainObject(arg)) {\n segments = arg.segments;\n data = arg.pathData;\n } else if (Array.isArray(arg)) segments = arg;\n else if (typeof arg === \"string\") data = arg;\n if (segments) {\n var first = segments[0];\n compound = first && Array.isArray(first[0]);\n } else if (data) compound = (data.match(/m/gi) || []).length > 1 || /z\\s*\\S+/i.test(data);\n var ctor = compound ? CompoundPath : Path;\n return new ctor(arg);\n }\n },\n _asPathItem: function() {\n return this;\n },\n isClockwise: function() {\n return this.getArea() >= 0;\n },\n setClockwise: function(clockwise) {\n if (this.isClockwise() != (clockwise = !!clockwise)) this.reverse();\n },\n setPathData: function(data) {\n var parts = data && data.match(/[mlhvcsqtaz][^mlhvcsqtaz]*/ig), coords, relative = false, previous, control, current = new Point(), start = new Point();\n function getCoord(index, coord) {\n var val = +coords[index];\n if (relative) val += current[coord];\n return val;\n }\n function getPoint(index) {\n return new Point(getCoord(index, \"x\"), getCoord(index + 1, \"y\"));\n }\n this.clear();\n for(var i = 0, l = parts && parts.length; i < l; i++){\n var part = parts[i], command = part[0], lower = command.toLowerCase();\n coords = part.match(/[+-]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?/g);\n var length = coords && coords.length;\n relative = command === lower;\n if (previous === \"z\" && !/[mz]/.test(lower)) this.moveTo(current);\n switch(lower){\n case \"m\":\n case \"l\":\n var move = lower === \"m\";\n for(var j = 0; j < length; j += 2){\n this[move ? \"moveTo\" : \"lineTo\"](current = getPoint(j));\n if (move) {\n start = current;\n move = false;\n }\n }\n control = current;\n break;\n case \"h\":\n case \"v\":\n var coord = lower === \"h\" ? \"x\" : \"y\";\n current = current.clone();\n for(var j = 0; j < length; j++){\n current[coord] = getCoord(j, coord);\n this.lineTo(current);\n }\n control = current;\n break;\n case \"c\":\n for(var j = 0; j < length; j += 6)this.cubicCurveTo(getPoint(j), control = getPoint(j + 2), current = getPoint(j + 4));\n break;\n case \"s\":\n for(var j = 0; j < length; j += 4){\n this.cubicCurveTo(/[cs]/.test(previous) ? current.multiply(2).subtract(control) : current, control = getPoint(j), current = getPoint(j + 2));\n previous = lower;\n }\n break;\n case \"q\":\n for(var j = 0; j < length; j += 4)this.quadraticCurveTo(control = getPoint(j), current = getPoint(j + 2));\n break;\n case \"t\":\n for(var j = 0; j < length; j += 2){\n this.quadraticCurveTo(control = /[qt]/.test(previous) ? current.multiply(2).subtract(control) : current, current = getPoint(j));\n previous = lower;\n }\n break;\n case \"a\":\n for(var j = 0; j < length; j += 7)this.arcTo(current = getPoint(j + 5), new Size(+coords[j], +coords[j + 1]), +coords[j + 2], +coords[j + 4], +coords[j + 3]);\n break;\n case \"z\":\n this.closePath(1e-12);\n current = start;\n break;\n }\n previous = lower;\n }\n },\n _canComposite: function() {\n return !(this.hasFill() && this.hasStroke());\n },\n _contains: function(point) {\n var winding = point.isInside(this.getBounds({\n internal: true,\n handle: true\n })) ? this._getWinding(point) : {};\n return winding.onPath || !!(this.getFillRule() === \"evenodd\" ? winding.windingL & 1 || winding.windingR & 1 : winding.winding);\n },\n getIntersections: function(path, include, _matrix, _returnFirst) {\n var self1 = this === path || !path, matrix1 = this._matrix._orNullIfIdentity(), matrix2 = self1 ? matrix1 : (_matrix || path._matrix)._orNullIfIdentity();\n return self1 || this.getBounds(matrix1).intersects(path.getBounds(matrix2), 1e-12) ? Curve.getIntersections(this.getCurves(), !self1 && path.getCurves(), include, matrix1, matrix2, _returnFirst) : [];\n },\n getCrossings: function(path) {\n return this.getIntersections(path, function(inter) {\n return inter.isCrossing();\n });\n },\n getNearestLocation: function() {\n var point = Point.read(arguments), curves = this.getCurves(), minDist = Infinity, minLoc = null;\n for(var i = 0, l = curves.length; i < l; i++){\n var loc = curves[i].getNearestLocation(point);\n if (loc._distance < minDist) {\n minDist = loc._distance;\n minLoc = loc;\n }\n }\n return minLoc;\n },\n getNearestPoint: function() {\n var loc = this.getNearestLocation.apply(this, arguments);\n return loc ? loc.getPoint() : loc;\n },\n interpolate: function(from, to, factor) {\n var isPath = !this._children, name = isPath ? \"_segments\" : \"_children\", itemsFrom = from[name], itemsTo = to[name], items = this[name];\n if (!itemsFrom || !itemsTo || itemsFrom.length !== itemsTo.length) throw new Error(\"Invalid operands in interpolate() call: \" + from + \", \" + to);\n var current = items.length, length = itemsTo.length;\n if (current < length) {\n var ctor = isPath ? Segment : Path;\n for(var i = current; i < length; i++)this.add(new ctor());\n } else if (current > length) this[isPath ? \"removeSegments\" : \"removeChildren\"](length, current);\n for(var i = 0; i < length; i++)items[i].interpolate(itemsFrom[i], itemsTo[i], factor);\n if (isPath) {\n this.setClosed(from._closed);\n this._changed(9);\n }\n },\n compare: function(path) {\n var ok = false;\n if (path) {\n var paths1 = this._children || [\n this\n ], paths2 = path._children ? path._children.slice() : [\n path\n ], length1 = paths1.length, length2 = paths2.length, matched = [], count = 0;\n ok = true;\n var boundsOverlaps = CollisionDetection.findItemBoundsCollisions(paths1, paths2, Numerical.GEOMETRIC_EPSILON);\n for(var i1 = length1 - 1; i1 >= 0 && ok; i1--){\n var path1 = paths1[i1];\n ok = false;\n var pathBoundsOverlaps = boundsOverlaps[i1];\n if (pathBoundsOverlaps) {\n for(var i2 = pathBoundsOverlaps.length - 1; i2 >= 0 && !ok; i2--)if (path1.compare(paths2[pathBoundsOverlaps[i2]])) {\n if (!matched[pathBoundsOverlaps[i2]]) {\n matched[pathBoundsOverlaps[i2]] = true;\n count++;\n }\n ok = true;\n }\n }\n }\n ok = ok && count === length2;\n }\n return ok;\n }\n });\n var Path = PathItem.extend({\n _class: \"Path\",\n _serializeFields: {\n segments: [],\n closed: false\n },\n initialize: function Path(arg) {\n this._closed = false;\n this._segments = [];\n this._version = 0;\n var args = arguments, segments = Array.isArray(arg) ? typeof arg[0] === \"object\" ? arg : args : arg && arg.size === undefined && (arg.x !== undefined || arg.point !== undefined) ? args : null;\n if (segments && segments.length > 0) this.setSegments(segments);\n else {\n this._curves = undefined;\n this._segmentSelection = 0;\n if (!segments && typeof arg === \"string\") {\n this.setPathData(arg);\n arg = null;\n }\n }\n this._initialize(!segments && arg);\n },\n _equals: function(item) {\n return this._closed === item._closed && Base.equals(this._segments, item._segments);\n },\n copyContent: function(source) {\n this.setSegments(source._segments);\n this._closed = source._closed;\n },\n _changed: function _changed(flags) {\n _changed.base.call(this, flags);\n if (flags & 8) {\n this._length = this._area = undefined;\n if (flags & 32) this._version++;\n else if (this._curves) for(var i = 0, l = this._curves.length; i < l; i++)this._curves[i]._changed();\n } else if (flags & 64) this._bounds = undefined;\n },\n getStyle: function() {\n var parent = this._parent;\n return (parent instanceof CompoundPath ? parent : this)._style;\n },\n getSegments: function() {\n return this._segments;\n },\n setSegments: function(segments) {\n var fullySelected = this.isFullySelected(), length = segments && segments.length;\n this._segments.length = 0;\n this._segmentSelection = 0;\n this._curves = undefined;\n if (length) {\n var last = segments[length - 1];\n if (typeof last === \"boolean\") {\n this.setClosed(last);\n length--;\n }\n this._add(Segment.readList(segments, 0, {}, length));\n }\n if (fullySelected) this.setFullySelected(true);\n },\n getFirstSegment: function() {\n return this._segments[0];\n },\n getLastSegment: function() {\n return this._segments[this._segments.length - 1];\n },\n getCurves: function() {\n var curves = this._curves, segments = this._segments;\n if (!curves) {\n var length = this._countCurves();\n curves = this._curves = new Array(length);\n for(var i = 0; i < length; i++)curves[i] = new Curve(this, segments[i], segments[i + 1] || segments[0]);\n }\n return curves;\n },\n getFirstCurve: function() {\n return this.getCurves()[0];\n },\n getLastCurve: function() {\n var curves = this.getCurves();\n return curves[curves.length - 1];\n },\n isClosed: function() {\n return this._closed;\n },\n setClosed: function(closed) {\n if (this._closed != (closed = !!closed)) {\n this._closed = closed;\n if (this._curves) {\n var length = this._curves.length = this._countCurves();\n if (closed) this._curves[length - 1] = new Curve(this, this._segments[length - 1], this._segments[0]);\n }\n this._changed(41);\n }\n }\n }, {\n beans: true,\n getPathData: function(_matrix, _precision) {\n var segments = this._segments, length = segments.length, f = new Formatter(_precision), coords = new Array(6), first = true, curX, curY, prevX, prevY, inX, inY, outX, outY, parts = [];\n function addSegment(segment, skipLine) {\n segment._transformCoordinates(_matrix, coords);\n curX = coords[0];\n curY = coords[1];\n if (first) {\n parts.push(\"M\" + f.pair(curX, curY));\n first = false;\n } else {\n inX = coords[2];\n inY = coords[3];\n if (inX === curX && inY === curY && outX === prevX && outY === prevY) {\n if (!skipLine) {\n var dx = curX - prevX, dy = curY - prevY;\n parts.push(dx === 0 ? \"v\" + f.number(dy) : dy === 0 ? \"h\" + f.number(dx) : \"l\" + f.pair(dx, dy));\n }\n } else parts.push(\"c\" + f.pair(outX - prevX, outY - prevY) + \" \" + f.pair(inX - prevX, inY - prevY) + \" \" + f.pair(curX - prevX, curY - prevY));\n }\n prevX = curX;\n prevY = curY;\n outX = coords[4];\n outY = coords[5];\n }\n if (!length) return \"\";\n for(var i = 0; i < length; i++)addSegment(segments[i]);\n if (this._closed && length > 0) {\n addSegment(segments[0], true);\n parts.push(\"z\");\n }\n return parts.join(\"\");\n },\n isEmpty: function() {\n return !this._segments.length;\n },\n _transformContent: function(matrix) {\n var segments = this._segments, coords = new Array(6);\n for(var i = 0, l = segments.length; i < l; i++)segments[i]._transformCoordinates(matrix, coords, true);\n return true;\n },\n _add: function(segs, index) {\n var segments = this._segments, curves = this._curves, amount = segs.length, append = index == null, index = append ? segments.length : index;\n for(var i = 0; i < amount; i++){\n var segment = segs[i];\n if (segment._path) segment = segs[i] = segment.clone();\n segment._path = this;\n segment._index = index + i;\n if (segment._selection) this._updateSelection(segment, 0, segment._selection);\n }\n if (append) Base.push(segments, segs);\n else {\n segments.splice.apply(segments, [\n index,\n 0\n ].concat(segs));\n for(var i = index + amount, l = segments.length; i < l; i++)segments[i]._index = i;\n }\n if (curves) {\n var total = this._countCurves(), start = index > 0 && index + amount - 1 === total ? index - 1 : index, insert = start, end = Math.min(start + amount, total);\n if (segs._curves) {\n curves.splice.apply(curves, [\n start,\n 0\n ].concat(segs._curves));\n insert += segs._curves.length;\n }\n for(var i = insert; i < end; i++)curves.splice(i, 0, new Curve(this, null, null));\n this._adjustCurves(start, end);\n }\n this._changed(41);\n return segs;\n },\n _adjustCurves: function(start, end) {\n var segments = this._segments, curves = this._curves, curve;\n for(var i = start; i < end; i++){\n curve = curves[i];\n curve._path = this;\n curve._segment1 = segments[i];\n curve._segment2 = segments[i + 1] || segments[0];\n curve._changed();\n }\n if (curve = curves[this._closed && !start ? segments.length - 1 : start - 1]) {\n curve._segment2 = segments[start] || segments[0];\n curve._changed();\n }\n if (curve = curves[end]) {\n curve._segment1 = segments[end];\n curve._changed();\n }\n },\n _countCurves: function() {\n var length = this._segments.length;\n return !this._closed && length > 0 ? length - 1 : length;\n },\n add: function(segment1) {\n var args = arguments;\n return args.length > 1 && typeof segment1 !== \"number\" ? this._add(Segment.readList(args)) : this._add([\n Segment.read(args)\n ])[0];\n },\n insert: function(index, segment1) {\n var args = arguments;\n return args.length > 2 && typeof segment1 !== \"number\" ? this._add(Segment.readList(args, 1), index) : this._add([\n Segment.read(args, 1)\n ], index)[0];\n },\n addSegment: function() {\n return this._add([\n Segment.read(arguments)\n ])[0];\n },\n insertSegment: function(index) {\n return this._add([\n Segment.read(arguments, 1)\n ], index)[0];\n },\n addSegments: function(segments) {\n return this._add(Segment.readList(segments));\n },\n insertSegments: function(index, segments) {\n return this._add(Segment.readList(segments), index);\n },\n removeSegment: function(index) {\n return this.removeSegments(index, index + 1)[0] || null;\n },\n removeSegments: function(start, end, _includeCurves) {\n start = start || 0;\n end = Base.pick(end, this._segments.length);\n var segments = this._segments, curves = this._curves, count = segments.length, removed = segments.splice(start, end - start), amount = removed.length;\n if (!amount) return removed;\n for(var i = 0; i < amount; i++){\n var segment = removed[i];\n if (segment._selection) this._updateSelection(segment, segment._selection, 0);\n segment._index = segment._path = null;\n }\n for(var i = start, l = segments.length; i < l; i++)segments[i]._index = i;\n if (curves) {\n var index = start > 0 && end === count + (this._closed ? 1 : 0) ? start - 1 : start, curves = curves.splice(index, amount);\n for(var i = curves.length - 1; i >= 0; i--)curves[i]._path = null;\n if (_includeCurves) removed._curves = curves.slice(1);\n this._adjustCurves(index, index);\n }\n this._changed(41);\n return removed;\n },\n clear: \"#removeSegments\",\n hasHandles: function() {\n var segments = this._segments;\n for(var i = 0, l = segments.length; i < l; i++){\n if (segments[i].hasHandles()) return true;\n }\n return false;\n },\n clearHandles: function() {\n var segments = this._segments;\n for(var i = 0, l = segments.length; i < l; i++)segments[i].clearHandles();\n },\n getLength: function() {\n if (this._length == null) {\n var curves = this.getCurves(), length = 0;\n for(var i = 0, l = curves.length; i < l; i++)length += curves[i].getLength();\n this._length = length;\n }\n return this._length;\n },\n getArea: function() {\n var area = this._area;\n if (area == null) {\n var segments = this._segments, closed = this._closed;\n area = 0;\n for(var i = 0, l = segments.length; i < l; i++){\n var last = i + 1 === l;\n area += Curve.getArea(Curve.getValues(segments[i], segments[last ? 0 : i + 1], null, last && !closed));\n }\n this._area = area;\n }\n return area;\n },\n isFullySelected: function() {\n var length = this._segments.length;\n return this.isSelected() && length > 0 && this._segmentSelection === length * 7;\n },\n setFullySelected: function(selected) {\n if (selected) this._selectSegments(true);\n this.setSelected(selected);\n },\n setSelection: function setSelection(selection) {\n if (!(selection & 1)) this._selectSegments(false);\n setSelection.base.call(this, selection);\n },\n _selectSegments: function(selected) {\n var segments = this._segments, length = segments.length, selection = selected ? 7 : 0;\n this._segmentSelection = selection * length;\n for(var i = 0; i < length; i++)segments[i]._selection = selection;\n },\n _updateSelection: function(segment, oldSelection, newSelection) {\n segment._selection = newSelection;\n var selection = this._segmentSelection += newSelection - oldSelection;\n if (selection > 0) this.setSelected(true);\n },\n divideAt: function(location) {\n var loc = this.getLocationAt(location), curve;\n return loc && (curve = loc.getCurve().divideAt(loc.getCurveOffset())) ? curve._segment1 : null;\n },\n splitAt: function(location) {\n var loc = this.getLocationAt(location), index = loc && loc.index, time = loc && loc.time, tMin = 1e-8, tMax = 1 - tMin;\n if (time > tMax) {\n index++;\n time = 0;\n }\n var curves = this.getCurves();\n if (index >= 0 && index < curves.length) {\n if (time >= tMin) curves[index++].divideAtTime(time);\n var segs = this.removeSegments(index, this._segments.length, true), path;\n if (this._closed) {\n this.setClosed(false);\n path = this;\n } else {\n path = new Path(Item.NO_INSERT);\n path.insertAbove(this);\n path.copyAttributes(this);\n }\n path._add(segs, 0);\n this.addSegment(segs[0]);\n return path;\n }\n return null;\n },\n split: function(index, time) {\n var curve, location = time === undefined ? index : (curve = this.getCurves()[index]) && curve.getLocationAtTime(time);\n return location != null ? this.splitAt(location) : null;\n },\n join: function(path, tolerance) {\n var epsilon = tolerance || 0;\n if (path && path !== this) {\n var segments = path._segments, last1 = this.getLastSegment(), last2 = path.getLastSegment();\n if (!last2) return this;\n if (last1 && last1._point.isClose(last2._point, epsilon)) path.reverse();\n var first2 = path.getFirstSegment();\n if (last1 && last1._point.isClose(first2._point, epsilon)) {\n last1.setHandleOut(first2._handleOut);\n this._add(segments.slice(1));\n } else {\n var first1 = this.getFirstSegment();\n if (first1 && first1._point.isClose(first2._point, epsilon)) path.reverse();\n last2 = path.getLastSegment();\n if (first1 && first1._point.isClose(last2._point, epsilon)) {\n first1.setHandleIn(last2._handleIn);\n this._add(segments.slice(0, segments.length - 1), 0);\n } else this._add(segments.slice());\n }\n if (path._closed) this._add([\n segments[0]\n ]);\n path.remove();\n }\n var first = this.getFirstSegment(), last = this.getLastSegment();\n if (first !== last && first._point.isClose(last._point, epsilon)) {\n first.setHandleIn(last._handleIn);\n last.remove();\n this.setClosed(true);\n }\n return this;\n },\n reduce: function(options) {\n var curves = this.getCurves(), simplify = options && options.simplify, tolerance = simplify ? 1e-7 : 0;\n for(var i = curves.length - 1; i >= 0; i--){\n var curve = curves[i];\n if (!curve.hasHandles() && (!curve.hasLength(tolerance) || simplify && curve.isCollinear(curve.getNext()))) curve.remove();\n }\n return this;\n },\n reverse: function() {\n this._segments.reverse();\n for(var i = 0, l = this._segments.length; i < l; i++){\n var segment = this._segments[i];\n var handleIn = segment._handleIn;\n segment._handleIn = segment._handleOut;\n segment._handleOut = handleIn;\n segment._index = i;\n }\n this._curves = null;\n this._changed(9);\n },\n flatten: function(flatness) {\n var flattener = new PathFlattener(this, flatness || 0.25, 256, true), parts = flattener.parts, length = parts.length, segments = [];\n for(var i = 0; i < length; i++)segments.push(new Segment(parts[i].curve.slice(0, 2)));\n if (!this._closed && length > 0) segments.push(new Segment(parts[length - 1].curve.slice(6)));\n this.setSegments(segments);\n },\n simplify: function(tolerance) {\n var segments = new PathFitter(this).fit(tolerance || 2.5);\n if (segments) this.setSegments(segments);\n return !!segments;\n },\n smooth: function(options) {\n var that = this, opts = options || {}, type = opts.type || \"asymmetric\", segments = this._segments, length = segments.length, closed = this._closed;\n function getIndex(value, _default) {\n var index = value && value.index;\n if (index != null) {\n var path = value.path;\n if (path && path !== that) throw new Error(value._class + \" \" + index + \" of \" + path + \" is not part of \" + that);\n if (_default && value instanceof Curve) index++;\n } else index = typeof value === \"number\" ? value : _default;\n return Math.min(index < 0 && closed ? index % length : index < 0 ? index + length : index, length - 1);\n }\n var loop = closed && opts.from === undefined && opts.to === undefined, from = getIndex(opts.from, 0), to = getIndex(opts.to, length - 1);\n if (from > to) {\n if (closed) from -= length;\n else {\n var tmp = from;\n from = to;\n to = tmp;\n }\n }\n if (/^(?:asymmetric|continuous)$/.test(type)) {\n var asymmetric = type === \"asymmetric\", min = Math.min, amount = to - from + 1, n = amount - 1, padding = loop ? min(amount, 4) : 1, paddingLeft = padding, paddingRight = padding, knots = [];\n if (!closed) {\n paddingLeft = min(1, from);\n paddingRight = min(1, length - to - 1);\n }\n n += paddingLeft + paddingRight;\n if (n <= 1) return;\n for(var i = 0, j = from - paddingLeft; i <= n; i++, j++)knots[i] = segments[(j < 0 ? j + length : j) % length]._point;\n var x = knots[0]._x + 2 * knots[1]._x, y = knots[0]._y + 2 * knots[1]._y, f = 2, n_1 = n - 1, rx = [\n x\n ], ry = [\n y\n ], rf = [\n f\n ], px = [], py = [];\n for(var i = 1; i < n; i++){\n var internal = i < n_1, a = internal ? 1 : asymmetric ? 1 : 2, b = internal ? 4 : asymmetric ? 2 : 7, u = internal ? 4 : asymmetric ? 3 : 8, v = internal ? 2 : asymmetric ? 0 : 1, m = a / f;\n f = rf[i] = b - m;\n x = rx[i] = u * knots[i]._x + v * knots[i + 1]._x - m * x;\n y = ry[i] = u * knots[i]._y + v * knots[i + 1]._y - m * y;\n }\n px[n_1] = rx[n_1] / rf[n_1];\n py[n_1] = ry[n_1] / rf[n_1];\n for(var i = n - 2; i >= 0; i--){\n px[i] = (rx[i] - px[i + 1]) / rf[i];\n py[i] = (ry[i] - py[i + 1]) / rf[i];\n }\n px[n] = (3 * knots[n]._x - px[n_1]) / 2;\n py[n] = (3 * knots[n]._y - py[n_1]) / 2;\n for(var i = paddingLeft, max = n - paddingRight, j = from; i <= max; i++, j++){\n var segment = segments[j < 0 ? j + length : j], pt = segment._point, hx = px[i] - pt._x, hy = py[i] - pt._y;\n if (loop || i < max) segment.setHandleOut(hx, hy);\n if (loop || i > paddingLeft) segment.setHandleIn(-hx, -hy);\n }\n } else for(var i = from; i <= to; i++)segments[i < 0 ? i + length : i].smooth(opts, !loop && i === from, !loop && i === to);\n },\n toShape: function(insert) {\n if (!this._closed) return null;\n var segments = this._segments, type, size, radius, topCenter;\n function isCollinear(i, j) {\n var seg1 = segments[i], seg2 = seg1.getNext(), seg3 = segments[j], seg4 = seg3.getNext();\n return seg1._handleOut.isZero() && seg2._handleIn.isZero() && seg3._handleOut.isZero() && seg4._handleIn.isZero() && seg2._point.subtract(seg1._point).isCollinear(seg4._point.subtract(seg3._point));\n }\n function isOrthogonal(i) {\n var seg2 = segments[i], seg1 = seg2.getPrevious(), seg3 = seg2.getNext();\n return seg1._handleOut.isZero() && seg2._handleIn.isZero() && seg2._handleOut.isZero() && seg3._handleIn.isZero() && seg2._point.subtract(seg1._point).isOrthogonal(seg3._point.subtract(seg2._point));\n }\n function isArc(i) {\n var seg1 = segments[i], seg2 = seg1.getNext(), handle1 = seg1._handleOut, handle2 = seg2._handleIn, kappa = 0.5522847498307936;\n if (handle1.isOrthogonal(handle2)) {\n var pt1 = seg1._point, pt2 = seg2._point, corner = new Line(pt1, handle1, true).intersect(new Line(pt2, handle2, true), true);\n return corner && Numerical.isZero(handle1.getLength() / corner.subtract(pt1).getLength() - kappa) && Numerical.isZero(handle2.getLength() / corner.subtract(pt2).getLength() - kappa);\n }\n return false;\n }\n function getDistance(i, j) {\n return segments[i]._point.getDistance(segments[j]._point);\n }\n if (!this.hasHandles() && segments.length === 4 && isCollinear(0, 2) && isCollinear(1, 3) && isOrthogonal(1)) {\n type = Shape.Rectangle;\n size = new Size(getDistance(0, 3), getDistance(0, 1));\n topCenter = segments[1]._point.add(segments[2]._point).divide(2);\n } else if (segments.length === 8 && isArc(0) && isArc(2) && isArc(4) && isArc(6) && isCollinear(1, 5) && isCollinear(3, 7)) {\n type = Shape.Rectangle;\n size = new Size(getDistance(1, 6), getDistance(0, 3));\n radius = size.subtract(new Size(getDistance(0, 7), getDistance(1, 2))).divide(2);\n topCenter = segments[3]._point.add(segments[4]._point).divide(2);\n } else if (segments.length === 4 && isArc(0) && isArc(1) && isArc(2) && isArc(3)) {\n if (Numerical.isZero(getDistance(0, 2) - getDistance(1, 3))) {\n type = Shape.Circle;\n radius = getDistance(0, 2) / 2;\n } else {\n type = Shape.Ellipse;\n radius = new Size(getDistance(2, 0) / 2, getDistance(3, 1) / 2);\n }\n topCenter = segments[1]._point;\n }\n if (type) {\n var center = this.getPosition(true), shape = new type({\n center: center,\n size: size,\n radius: radius,\n insert: false\n });\n shape.copyAttributes(this, true);\n shape._matrix.prepend(this._matrix);\n shape.rotate(topCenter.subtract(center).getAngle() + 90);\n if (insert === undefined || insert) shape.insertAbove(this);\n return shape;\n }\n return null;\n },\n toPath: \"#clone\",\n compare: function compare(path) {\n if (!path || path instanceof CompoundPath) return compare.base.call(this, path);\n var curves1 = this.getCurves(), curves2 = path.getCurves(), length1 = curves1.length, length2 = curves2.length;\n if (!length1 || !length2) return length1 == length2;\n var v1 = curves1[0].getValues(), values2 = [], pos1 = 0, pos2, end1 = 0, end2;\n for(var i = 0; i < length2; i++){\n var v2 = curves2[i].getValues();\n values2.push(v2);\n var overlaps = Curve.getOverlaps(v1, v2);\n if (overlaps) {\n pos2 = !i && overlaps[0][0] > 0 ? length2 - 1 : i;\n end2 = overlaps[0][1];\n break;\n }\n }\n var abs = Math.abs, epsilon = 1e-8, v2 = values2[pos2], start2;\n while(v1 && v2){\n var overlaps = Curve.getOverlaps(v1, v2);\n if (overlaps) {\n var t1 = overlaps[0][0];\n if (abs(t1 - end1) < epsilon) {\n end1 = overlaps[1][0];\n if (end1 === 1) {\n v1 = ++pos1 < length1 ? curves1[pos1].getValues() : null;\n end1 = 0;\n }\n var t2 = overlaps[0][1];\n if (abs(t2 - end2) < epsilon) {\n if (!start2) start2 = [\n pos2,\n t2\n ];\n end2 = overlaps[1][1];\n if (end2 === 1) {\n if (++pos2 >= length2) pos2 = 0;\n v2 = values2[pos2] || curves2[pos2].getValues();\n end2 = 0;\n }\n if (!v1) return start2[0] === pos2 && start2[1] === end2;\n continue;\n }\n }\n }\n break;\n }\n return false;\n },\n _hitTestSelf: function(point, options, viewMatrix, strokeMatrix) {\n var that = this, style = this.getStyle(), segments = this._segments, numSegments = segments.length, closed = this._closed, tolerancePadding = options._tolerancePadding, strokePadding = tolerancePadding, join, cap, miterLimit, area, loc, res, hitStroke = options.stroke && style.hasStroke(), hitFill = options.fill && style.hasFill(), hitCurves = options.curves, strokeRadius = hitStroke ? style.getStrokeWidth() / 2 : hitFill && options.tolerance > 0 || hitCurves ? 0 : null;\n if (strokeRadius !== null) {\n if (strokeRadius > 0) {\n join = style.getStrokeJoin();\n cap = style.getStrokeCap();\n miterLimit = style.getMiterLimit();\n strokePadding = strokePadding.add(Path._getStrokePadding(strokeRadius, strokeMatrix));\n } else join = cap = \"round\";\n }\n function isCloseEnough(pt, padding) {\n return point.subtract(pt).divide(padding).length <= 1;\n }\n function checkSegmentPoint(seg, pt, name) {\n if (!options.selected || pt.isSelected()) {\n var anchor = seg._point;\n if (pt !== anchor) pt = pt.add(anchor);\n if (isCloseEnough(pt, strokePadding)) return new HitResult(name, that, {\n segment: seg,\n point: pt\n });\n }\n }\n function checkSegmentPoints(seg, ends) {\n return (ends || options.segments) && checkSegmentPoint(seg, seg._point, \"segment\") || !ends && options.handles && (checkSegmentPoint(seg, seg._handleIn, \"handle-in\") || checkSegmentPoint(seg, seg._handleOut, \"handle-out\"));\n }\n function addToArea(point) {\n area.add(point);\n }\n function checkSegmentStroke(segment) {\n var isJoin = closed || segment._index > 0 && segment._index < numSegments - 1;\n if ((isJoin ? join : cap) === \"round\") return isCloseEnough(segment._point, strokePadding);\n else {\n area = new Path({\n internal: true,\n closed: true\n });\n if (isJoin) {\n if (!segment.isSmooth()) Path._addBevelJoin(segment, join, strokeRadius, miterLimit, null, strokeMatrix, addToArea, true);\n } else if (cap === \"square\") Path._addSquareCap(segment, cap, strokeRadius, null, strokeMatrix, addToArea, true);\n if (!area.isEmpty()) {\n var loc;\n return area.contains(point) || (loc = area.getNearestLocation(point)) && isCloseEnough(loc.getPoint(), tolerancePadding);\n }\n }\n }\n if (options.ends && !options.segments && !closed) {\n if (res = checkSegmentPoints(segments[0], true) || checkSegmentPoints(segments[numSegments - 1], true)) return res;\n } else if (options.segments || options.handles) {\n for(var i = 0; i < numSegments; i++)if (res = checkSegmentPoints(segments[i])) return res;\n }\n if (strokeRadius !== null) {\n loc = this.getNearestLocation(point);\n if (loc) {\n var time = loc.getTime();\n if (time === 0 || time === 1 && numSegments > 1) {\n if (!checkSegmentStroke(loc.getSegment())) loc = null;\n } else if (!isCloseEnough(loc.getPoint(), strokePadding)) loc = null;\n }\n if (!loc && join === \"miter\" && numSegments > 1) for(var i = 0; i < numSegments; i++){\n var segment = segments[i];\n if (point.getDistance(segment._point) <= miterLimit * strokeRadius && checkSegmentStroke(segment)) {\n loc = segment.getLocation();\n break;\n }\n }\n }\n return !loc && hitFill && this._contains(point) || loc && !hitStroke && !hitCurves ? new HitResult(\"fill\", this) : loc ? new HitResult(hitStroke ? \"stroke\" : \"curve\", this, {\n location: loc,\n point: loc.getPoint()\n }) : null;\n }\n }, Base.each(Curve._evaluateMethods, function(name) {\n this[name + \"At\"] = function(offset) {\n var loc = this.getLocationAt(offset);\n return loc && loc[name]();\n };\n }, {\n beans: false,\n getLocationOf: function() {\n var point = Point.read(arguments), curves = this.getCurves();\n for(var i = 0, l = curves.length; i < l; i++){\n var loc = curves[i].getLocationOf(point);\n if (loc) return loc;\n }\n return null;\n },\n getOffsetOf: function() {\n var loc = this.getLocationOf.apply(this, arguments);\n return loc ? loc.getOffset() : null;\n },\n getLocationAt: function(offset) {\n if (typeof offset === \"number\") {\n var curves = this.getCurves(), length = 0;\n for(var i = 0, l = curves.length; i < l; i++){\n var start = length, curve = curves[i];\n length += curve.getLength();\n if (length > offset) return curve.getLocationAt(offset - start);\n }\n if (curves.length > 0 && offset <= this.getLength()) return new CurveLocation(curves[curves.length - 1], 1);\n } else if (offset && offset.getPath && offset.getPath() === this) return offset;\n return null;\n },\n getOffsetsWithTangent: function() {\n var tangent = Point.read(arguments);\n if (tangent.isZero()) return [];\n var offsets = [];\n var curveStart = 0;\n var curves = this.getCurves();\n for(var i = 0, l = curves.length; i < l; i++){\n var curve = curves[i];\n var curveTimes = curve.getTimesWithTangent(tangent);\n for(var j = 0, m = curveTimes.length; j < m; j++){\n var offset = curveStart + curve.getOffsetAtTime(curveTimes[j]);\n if (offsets.indexOf(offset) < 0) offsets.push(offset);\n }\n curveStart += curve.length;\n }\n return offsets;\n }\n }), new function() {\n function drawHandles(ctx, segments, matrix, size) {\n if (size <= 0) return;\n var half = size / 2, miniSize = size - 2, miniHalf = half - 1, coords = new Array(6), pX, pY;\n function drawHandle(index) {\n var hX = coords[index], hY = coords[index + 1];\n if (pX != hX || pY != hY) {\n ctx.beginPath();\n ctx.moveTo(pX, pY);\n ctx.lineTo(hX, hY);\n ctx.stroke();\n ctx.beginPath();\n ctx.arc(hX, hY, half, 0, Math.PI * 2, true);\n ctx.fill();\n }\n }\n for(var i = 0, l = segments.length; i < l; i++){\n var segment = segments[i], selection = segment._selection;\n segment._transformCoordinates(matrix, coords);\n pX = coords[0];\n pY = coords[1];\n if (selection & 2) drawHandle(2);\n if (selection & 4) drawHandle(4);\n ctx.fillRect(pX - half, pY - half, size, size);\n if (miniSize > 0 && !(selection & 1)) {\n var fillStyle = ctx.fillStyle;\n ctx.fillStyle = \"#ffffff\";\n ctx.fillRect(pX - miniHalf, pY - miniHalf, miniSize, miniSize);\n ctx.fillStyle = fillStyle;\n }\n }\n }\n function drawSegments(ctx, path, matrix) {\n var segments = path._segments, length = segments.length, coords = new Array(6), first = true, curX, curY, prevX, prevY, inX, inY, outX, outY;\n function drawSegment(segment) {\n if (matrix) {\n segment._transformCoordinates(matrix, coords);\n curX = coords[0];\n curY = coords[1];\n } else {\n var point = segment._point;\n curX = point._x;\n curY = point._y;\n }\n if (first) {\n ctx.moveTo(curX, curY);\n first = false;\n } else {\n if (matrix) {\n inX = coords[2];\n inY = coords[3];\n } else {\n var handle = segment._handleIn;\n inX = curX + handle._x;\n inY = curY + handle._y;\n }\n if (inX === curX && inY === curY && outX === prevX && outY === prevY) ctx.lineTo(curX, curY);\n else ctx.bezierCurveTo(outX, outY, inX, inY, curX, curY);\n }\n prevX = curX;\n prevY = curY;\n if (matrix) {\n outX = coords[4];\n outY = coords[5];\n } else {\n var handle = segment._handleOut;\n outX = prevX + handle._x;\n outY = prevY + handle._y;\n }\n }\n for(var i = 0; i < length; i++)drawSegment(segments[i]);\n if (path._closed && length > 0) drawSegment(segments[0]);\n }\n return {\n _draw: function(ctx, param, viewMatrix, strokeMatrix) {\n var dontStart = param.dontStart, dontPaint = param.dontFinish || param.clip, style = this.getStyle(), hasFill = style.hasFill(), hasStroke = style.hasStroke(), dashArray = style.getDashArray(), dashLength = !paper.support.nativeDash && hasStroke && dashArray && dashArray.length;\n if (!dontStart) ctx.beginPath();\n if (hasFill || hasStroke && !dashLength || dontPaint) {\n drawSegments(ctx, this, strokeMatrix);\n if (this._closed) ctx.closePath();\n }\n function getOffset(i) {\n return dashArray[(i % dashLength + dashLength) % dashLength];\n }\n if (!dontPaint && (hasFill || hasStroke)) {\n this._setStyles(ctx, param, viewMatrix);\n if (hasFill) {\n ctx.fill(style.getFillRule());\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n }\n if (hasStroke) {\n if (dashLength) {\n if (!dontStart) ctx.beginPath();\n var flattener = new PathFlattener(this, 0.25, 32, false, strokeMatrix), length = flattener.length, from = -style.getDashOffset(), to, i = 0;\n while(from > 0)from -= getOffset(i--) + getOffset(i--);\n while(from < length){\n to = from + getOffset(i++);\n if (from > 0 || to > 0) flattener.drawPart(ctx, Math.max(from, 0), Math.max(to, 0));\n from = to + getOffset(i++);\n }\n }\n ctx.stroke();\n }\n }\n },\n _drawSelected: function(ctx, matrix) {\n ctx.beginPath();\n drawSegments(ctx, this, matrix);\n ctx.stroke();\n drawHandles(ctx, this._segments, matrix, paper.settings.handleSize);\n }\n };\n }, new function() {\n function getCurrentSegment(that) {\n var segments = that._segments;\n if (!segments.length) throw new Error(\"Use a moveTo() command first\");\n return segments[segments.length - 1];\n }\n return {\n moveTo: function() {\n var segments = this._segments;\n if (segments.length === 1) this.removeSegment(0);\n if (!segments.length) this._add([\n new Segment(Point.read(arguments))\n ]);\n },\n moveBy: function() {\n throw new Error(\"moveBy() is unsupported on Path items.\");\n },\n lineTo: function() {\n this._add([\n new Segment(Point.read(arguments))\n ]);\n },\n cubicCurveTo: function() {\n var args = arguments, handle1 = Point.read(args), handle2 = Point.read(args), to = Point.read(args), current = getCurrentSegment(this);\n current.setHandleOut(handle1.subtract(current._point));\n this._add([\n new Segment(to, handle2.subtract(to))\n ]);\n },\n quadraticCurveTo: function() {\n var args = arguments, handle = Point.read(args), to = Point.read(args), current = getCurrentSegment(this)._point;\n this.cubicCurveTo(handle.add(current.subtract(handle).multiply(1 / 3)), handle.add(to.subtract(handle).multiply(1 / 3)), to);\n },\n curveTo: function() {\n var args = arguments, through = Point.read(args), to = Point.read(args), t = Base.pick(Base.read(args), 0.5), t1 = 1 - t, current = getCurrentSegment(this)._point, handle = through.subtract(current.multiply(t1 * t1)).subtract(to.multiply(t * t)).divide(2 * t * t1);\n if (handle.isNaN()) throw new Error(\"Cannot put a curve through points with parameter = \" + t);\n this.quadraticCurveTo(handle, to);\n },\n arcTo: function() {\n var args = arguments, abs = Math.abs, sqrt = Math.sqrt, current = getCurrentSegment(this), from = current._point, to = Point.read(args), through, peek = Base.peek(args), clockwise = Base.pick(peek, true), center, extent, vector, matrix;\n if (typeof clockwise === \"boolean\") var middle = from.add(to).divide(2), through = middle.add(middle.subtract(from).rotate(clockwise ? -90 : 90));\n else if (Base.remain(args) <= 2) {\n through = to;\n to = Point.read(args);\n } else if (!from.equals(to)) {\n var radius = Size.read(args), isZero = Numerical.isZero;\n if (isZero(radius.width) || isZero(radius.height)) return this.lineTo(to);\n var rotation = Base.read(args), clockwise = !!Base.read(args), large = !!Base.read(args), middle = from.add(to).divide(2), pt = from.subtract(middle).rotate(-rotation), x = pt.x, y = pt.y, rx = abs(radius.width), ry = abs(radius.height), rxSq = rx * rx, rySq = ry * ry, xSq = x * x, ySq = y * y;\n var factor = sqrt(xSq / rxSq + ySq / rySq);\n if (factor > 1) {\n rx *= factor;\n ry *= factor;\n rxSq = rx * rx;\n rySq = ry * ry;\n }\n factor = (rxSq * rySq - rxSq * ySq - rySq * xSq) / (rxSq * ySq + rySq * xSq);\n if (abs(factor) < 1e-12) factor = 0;\n if (factor < 0) throw new Error(\"Cannot create an arc with the given arguments\");\n center = new Point(rx * y / ry, -ry * x / rx).multiply((large === clockwise ? -1 : 1) * sqrt(factor)).rotate(rotation).add(middle);\n matrix = new Matrix().translate(center).rotate(rotation).scale(rx, ry);\n vector = matrix._inverseTransform(from);\n extent = vector.getDirectedAngle(matrix._inverseTransform(to));\n if (!clockwise && extent > 0) extent -= 360;\n else if (clockwise && extent < 0) extent += 360;\n }\n if (through) {\n var l1 = new Line(from.add(through).divide(2), through.subtract(from).rotate(90), true), l2 = new Line(through.add(to).divide(2), to.subtract(through).rotate(90), true), line = new Line(from, to), throughSide = line.getSide(through);\n center = l1.intersect(l2, true);\n if (!center) {\n if (!throughSide) return this.lineTo(to);\n throw new Error(\"Cannot create an arc with the given arguments\");\n }\n vector = from.subtract(center);\n extent = vector.getDirectedAngle(to.subtract(center));\n var centerSide = line.getSide(center, true);\n if (centerSide === 0) extent = throughSide * abs(extent);\n else if (throughSide === centerSide) extent += extent < 0 ? 360 : -360;\n }\n if (extent) {\n var epsilon = 1e-5, ext = abs(extent), count = ext >= 360 ? 4 : Math.ceil((ext - epsilon) / 90), inc = extent / count, half = inc * Math.PI / 360, z = 4 / 3 * Math.sin(half) / (1 + Math.cos(half)), segments = [];\n for(var i = 0; i <= count; i++){\n var pt = to, out = null;\n if (i < count) {\n out = vector.rotate(90).multiply(z);\n if (matrix) {\n pt = matrix._transformPoint(vector);\n out = matrix._transformPoint(vector.add(out)).subtract(pt);\n } else pt = center.add(vector);\n }\n if (!i) current.setHandleOut(out);\n else {\n var _in = vector.rotate(-90).multiply(z);\n if (matrix) _in = matrix._transformPoint(vector.add(_in)).subtract(pt);\n segments.push(new Segment(pt, _in, out));\n }\n vector = vector.rotate(inc);\n }\n this._add(segments);\n }\n },\n lineBy: function() {\n var to = Point.read(arguments), current = getCurrentSegment(this)._point;\n this.lineTo(current.add(to));\n },\n curveBy: function() {\n var args = arguments, through = Point.read(args), to = Point.read(args), parameter = Base.read(args), current = getCurrentSegment(this)._point;\n this.curveTo(current.add(through), current.add(to), parameter);\n },\n cubicCurveBy: function() {\n var args = arguments, handle1 = Point.read(args), handle2 = Point.read(args), to = Point.read(args), current = getCurrentSegment(this)._point;\n this.cubicCurveTo(current.add(handle1), current.add(handle2), current.add(to));\n },\n quadraticCurveBy: function() {\n var args = arguments, handle = Point.read(args), to = Point.read(args), current = getCurrentSegment(this)._point;\n this.quadraticCurveTo(current.add(handle), current.add(to));\n },\n arcBy: function() {\n var args = arguments, current = getCurrentSegment(this)._point, point = current.add(Point.read(args)), clockwise = Base.pick(Base.peek(args), true);\n if (typeof clockwise === \"boolean\") this.arcTo(point, clockwise);\n else this.arcTo(point, current.add(Point.read(args)));\n },\n closePath: function(tolerance) {\n this.setClosed(true);\n this.join(this, tolerance);\n }\n };\n }, {\n _getBounds: function(matrix, options) {\n var method = options.handle ? \"getHandleBounds\" : options.stroke ? \"getStrokeBounds\" : \"getBounds\";\n return Path[method](this._segments, this._closed, this, matrix, options);\n },\n statics: {\n getBounds: function(segments, closed, path, matrix, options, strokePadding) {\n var first = segments[0];\n if (!first) return new Rectangle();\n var coords = new Array(6), prevCoords = first._transformCoordinates(matrix, new Array(6)), min = prevCoords.slice(0, 2), max = min.slice(), roots = new Array(2);\n function processSegment(segment) {\n segment._transformCoordinates(matrix, coords);\n for(var i = 0; i < 2; i++)Curve._addBounds(prevCoords[i], prevCoords[i + 4], coords[i + 2], coords[i], i, strokePadding ? strokePadding[i] : 0, min, max, roots);\n var tmp = prevCoords;\n prevCoords = coords;\n coords = tmp;\n }\n for(var i = 1, l = segments.length; i < l; i++)processSegment(segments[i]);\n if (closed) processSegment(first);\n return new Rectangle(min[0], min[1], max[0] - min[0], max[1] - min[1]);\n },\n getStrokeBounds: function(segments, closed, path, matrix, options) {\n var style = path.getStyle(), stroke = style.hasStroke(), strokeWidth = style.getStrokeWidth(), strokeMatrix = stroke && path._getStrokeMatrix(matrix, options), strokePadding = stroke && Path._getStrokePadding(strokeWidth, strokeMatrix), bounds = Path.getBounds(segments, closed, path, matrix, options, strokePadding);\n if (!stroke) return bounds;\n var strokeRadius = strokeWidth / 2, join = style.getStrokeJoin(), cap = style.getStrokeCap(), miterLimit = style.getMiterLimit(), joinBounds = new Rectangle(new Size(strokePadding));\n function addPoint(point) {\n bounds = bounds.include(point);\n }\n function addRound(segment) {\n bounds = bounds.unite(joinBounds.setCenter(segment._point.transform(matrix)));\n }\n function addJoin(segment, join) {\n if (join === \"round\" || segment.isSmooth()) addRound(segment);\n else Path._addBevelJoin(segment, join, strokeRadius, miterLimit, matrix, strokeMatrix, addPoint);\n }\n function addCap(segment, cap) {\n if (cap === \"round\") addRound(segment);\n else Path._addSquareCap(segment, cap, strokeRadius, matrix, strokeMatrix, addPoint);\n }\n var length = segments.length - (closed ? 0 : 1);\n if (length > 0) {\n for(var i = 1; i < length; i++)addJoin(segments[i], join);\n if (closed) addJoin(segments[0], join);\n else {\n addCap(segments[0], cap);\n addCap(segments[segments.length - 1], cap);\n }\n }\n return bounds;\n },\n _getStrokePadding: function(radius, matrix) {\n if (!matrix) return [\n radius,\n radius\n ];\n var hor = new Point(radius, 0).transform(matrix), ver = new Point(0, radius).transform(matrix), phi = hor.getAngleInRadians(), a = hor.getLength(), b = ver.getLength();\n var sin = Math.sin(phi), cos = Math.cos(phi), tan = Math.tan(phi), tx = Math.atan2(b * tan, a), ty = Math.atan2(b, tan * a);\n return [\n Math.abs(a * Math.cos(tx) * cos + b * Math.sin(tx) * sin),\n Math.abs(b * Math.sin(ty) * cos + a * Math.cos(ty) * sin)\n ];\n },\n _addBevelJoin: function(segment, join, radius, miterLimit, matrix, strokeMatrix, addPoint, isArea) {\n var curve2 = segment.getCurve(), curve1 = curve2.getPrevious(), point = curve2.getPoint1().transform(matrix), normal1 = curve1.getNormalAtTime(1).multiply(radius).transform(strokeMatrix), normal2 = curve2.getNormalAtTime(0).multiply(radius).transform(strokeMatrix), angle = normal1.getDirectedAngle(normal2);\n if (angle < 0 || angle >= 180) {\n normal1 = normal1.negate();\n normal2 = normal2.negate();\n }\n if (isArea) addPoint(point);\n addPoint(point.add(normal1));\n if (join === \"miter\") {\n var corner = new Line(point.add(normal1), new Point(-normal1.y, normal1.x), true).intersect(new Line(point.add(normal2), new Point(-normal2.y, normal2.x), true), true);\n if (corner && point.getDistance(corner) <= miterLimit * radius) addPoint(corner);\n }\n addPoint(point.add(normal2));\n },\n _addSquareCap: function(segment, cap, radius, matrix, strokeMatrix, addPoint, isArea) {\n var point = segment._point.transform(matrix), loc = segment.getLocation(), normal = loc.getNormal().multiply(loc.getTime() === 0 ? radius : -radius).transform(strokeMatrix);\n if (cap === \"square\") {\n if (isArea) {\n addPoint(point.subtract(normal));\n addPoint(point.add(normal));\n }\n point = point.add(normal.rotate(-90));\n }\n addPoint(point.add(normal));\n addPoint(point.subtract(normal));\n },\n getHandleBounds: function(segments, closed, path, matrix, options) {\n var style = path.getStyle(), stroke = options.stroke && style.hasStroke(), strokePadding, joinPadding;\n if (stroke) {\n var strokeMatrix = path._getStrokeMatrix(matrix, options), strokeRadius = style.getStrokeWidth() / 2, joinRadius = strokeRadius;\n if (style.getStrokeJoin() === \"miter\") joinRadius = strokeRadius * style.getMiterLimit();\n if (style.getStrokeCap() === \"square\") joinRadius = Math.max(joinRadius, strokeRadius * Math.SQRT2);\n strokePadding = Path._getStrokePadding(strokeRadius, strokeMatrix);\n joinPadding = Path._getStrokePadding(joinRadius, strokeMatrix);\n }\n var coords = new Array(6), x1 = Infinity, x2 = -x1, y1 = x1, y2 = x2;\n for(var i = 0, l = segments.length; i < l; i++){\n var segment = segments[i];\n segment._transformCoordinates(matrix, coords);\n for(var j = 0; j < 6; j += 2){\n var padding = !j ? joinPadding : strokePadding, paddingX = padding ? padding[0] : 0, paddingY = padding ? padding[1] : 0, x = coords[j], y = coords[j + 1], xn = x - paddingX, xx = x + paddingX, yn = y - paddingY, yx = y + paddingY;\n if (xn < x1) x1 = xn;\n if (xx > x2) x2 = xx;\n if (yn < y1) y1 = yn;\n if (yx > y2) y2 = yx;\n }\n }\n return new Rectangle(x1, y1, x2 - x1, y2 - y1);\n }\n }\n });\n Path.inject({\n statics: new function() {\n var kappa = 0.5522847498307936, ellipseSegments = [\n new Segment([\n -1,\n 0\n ], [\n 0,\n kappa\n ], [\n 0,\n -kappa\n ]),\n new Segment([\n 0,\n -1\n ], [\n -kappa,\n 0\n ], [\n kappa,\n 0\n ]),\n new Segment([\n 1,\n 0\n ], [\n 0,\n -kappa\n ], [\n 0,\n kappa\n ]),\n new Segment([\n 0,\n 1\n ], [\n kappa,\n 0\n ], [\n -kappa,\n 0\n ])\n ];\n function createPath(segments, closed, args) {\n var props = Base.getNamed(args), path = new Path(props && (props.insert == true ? Item.INSERT : props.insert == false ? Item.NO_INSERT : null));\n path._add(segments);\n path._closed = closed;\n return path.set(props, Item.INSERT);\n }\n function createEllipse(center, radius, args) {\n var segments = new Array(4);\n for(var i = 0; i < 4; i++){\n var segment = ellipseSegments[i];\n segments[i] = new Segment(segment._point.multiply(radius).add(center), segment._handleIn.multiply(radius), segment._handleOut.multiply(radius));\n }\n return createPath(segments, true, args);\n }\n return {\n Line: function() {\n var args = arguments;\n return createPath([\n new Segment(Point.readNamed(args, \"from\")),\n new Segment(Point.readNamed(args, \"to\"))\n ], false, args);\n },\n Circle: function() {\n var args = arguments, center = Point.readNamed(args, \"center\"), radius = Base.readNamed(args, \"radius\");\n return createEllipse(center, new Size(radius), args);\n },\n Rectangle: function() {\n var args = arguments, rect = Rectangle.readNamed(args, \"rectangle\"), radius = Size.readNamed(args, \"radius\", 0, {\n readNull: true\n }), bl = rect.getBottomLeft(true), tl = rect.getTopLeft(true), tr = rect.getTopRight(true), br = rect.getBottomRight(true), segments;\n if (!radius || radius.isZero()) segments = [\n new Segment(bl),\n new Segment(tl),\n new Segment(tr),\n new Segment(br)\n ];\n else {\n radius = Size.min(radius, rect.getSize(true).divide(2));\n var rx = radius.width, ry = radius.height, hx = rx * kappa, hy = ry * kappa;\n segments = [\n new Segment(bl.add(rx, 0), null, [\n -hx,\n 0\n ]),\n new Segment(bl.subtract(0, ry), [\n 0,\n hy\n ]),\n new Segment(tl.add(0, ry), null, [\n 0,\n -hy\n ]),\n new Segment(tl.add(rx, 0), [\n -hx,\n 0\n ], null),\n new Segment(tr.subtract(rx, 0), null, [\n hx,\n 0\n ]),\n new Segment(tr.add(0, ry), [\n 0,\n -hy\n ], null),\n new Segment(br.subtract(0, ry), null, [\n 0,\n hy\n ]),\n new Segment(br.subtract(rx, 0), [\n hx,\n 0\n ])\n ];\n }\n return createPath(segments, true, args);\n },\n RoundRectangle: \"#Rectangle\",\n Ellipse: function() {\n var args = arguments, ellipse = Shape._readEllipse(args);\n return createEllipse(ellipse.center, ellipse.radius, args);\n },\n Oval: \"#Ellipse\",\n Arc: function() {\n var args = arguments, from = Point.readNamed(args, \"from\"), through = Point.readNamed(args, \"through\"), to = Point.readNamed(args, \"to\"), props = Base.getNamed(args), path = new Path(props && props.insert == false && Item.NO_INSERT);\n path.moveTo(from);\n path.arcTo(through, to);\n return path.set(props);\n },\n RegularPolygon: function() {\n var args = arguments, center = Point.readNamed(args, \"center\"), sides = Base.readNamed(args, \"sides\"), radius = Base.readNamed(args, \"radius\"), step = 360 / sides, three = sides % 3 === 0, vector = new Point(0, three ? -radius : radius), offset = three ? -1 : 0.5, segments = new Array(sides);\n for(var i = 0; i < sides; i++)segments[i] = new Segment(center.add(vector.rotate((i + offset) * step)));\n return createPath(segments, true, args);\n },\n Star: function() {\n var args = arguments, center = Point.readNamed(args, \"center\"), points = Base.readNamed(args, \"points\") * 2, radius1 = Base.readNamed(args, \"radius1\"), radius2 = Base.readNamed(args, \"radius2\"), step = 360 / points, vector = new Point(0, -1), segments = new Array(points);\n for(var i = 0; i < points; i++)segments[i] = new Segment(center.add(vector.rotate(step * i).multiply(i % 2 ? radius2 : radius1)));\n return createPath(segments, true, args);\n }\n };\n }\n });\n var CompoundPath = PathItem.extend({\n _class: \"CompoundPath\",\n _serializeFields: {\n children: []\n },\n beans: true,\n initialize: function CompoundPath(arg) {\n this._children = [];\n this._namedChildren = {};\n if (!this._initialize(arg)) {\n if (typeof arg === \"string\") this.setPathData(arg);\n else this.addChildren(Array.isArray(arg) ? arg : arguments);\n }\n },\n insertChildren: function insertChildren(index, items) {\n var list = items, first = list[0];\n if (first && typeof first[0] === \"number\") list = [\n list\n ];\n for(var i = items.length - 1; i >= 0; i--){\n var item = list[i];\n if (list === items && !(item instanceof Path)) list = Base.slice(list);\n if (Array.isArray(item)) list[i] = new Path({\n segments: item,\n insert: false\n });\n else if (item instanceof CompoundPath) {\n list.splice.apply(list, [\n i,\n 1\n ].concat(item.removeChildren()));\n item.remove();\n }\n }\n return insertChildren.base.call(this, index, list);\n },\n reduce: function reduce(options) {\n var children = this._children;\n for(var i = children.length - 1; i >= 0; i--){\n var path = children[i].reduce(options);\n if (path.isEmpty()) path.remove();\n }\n if (!children.length) {\n var path = new Path(Item.NO_INSERT);\n path.copyAttributes(this);\n path.insertAbove(this);\n this.remove();\n return path;\n }\n return reduce.base.call(this);\n },\n isClosed: function() {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++){\n if (!children[i]._closed) return false;\n }\n return true;\n },\n setClosed: function(closed) {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++)children[i].setClosed(closed);\n },\n getFirstSegment: function() {\n var first = this.getFirstChild();\n return first && first.getFirstSegment();\n },\n getLastSegment: function() {\n var last = this.getLastChild();\n return last && last.getLastSegment();\n },\n getCurves: function() {\n var children = this._children, curves = [];\n for(var i = 0, l = children.length; i < l; i++)Base.push(curves, children[i].getCurves());\n return curves;\n },\n getFirstCurve: function() {\n var first = this.getFirstChild();\n return first && first.getFirstCurve();\n },\n getLastCurve: function() {\n var last = this.getLastChild();\n return last && last.getLastCurve();\n },\n getArea: function() {\n var children = this._children, area = 0;\n for(var i = 0, l = children.length; i < l; i++)area += children[i].getArea();\n return area;\n },\n getLength: function() {\n var children = this._children, length = 0;\n for(var i = 0, l = children.length; i < l; i++)length += children[i].getLength();\n return length;\n },\n getPathData: function(_matrix, _precision) {\n var children = this._children, paths = [];\n for(var i = 0, l = children.length; i < l; i++){\n var child = children[i], mx = child._matrix;\n paths.push(child.getPathData(_matrix && !mx.isIdentity() ? _matrix.appended(mx) : _matrix, _precision));\n }\n return paths.join(\"\");\n },\n _hitTestChildren: function _hitTestChildren(point, options, viewMatrix) {\n return _hitTestChildren.base.call(this, point, options.class === Path || options.type === \"path\" ? options : Base.set({}, options, {\n fill: false\n }), viewMatrix);\n },\n _draw: function(ctx, param, viewMatrix, strokeMatrix) {\n var children = this._children;\n if (!children.length) return;\n param = param.extend({\n dontStart: true,\n dontFinish: true\n });\n ctx.beginPath();\n for(var i = 0, l = children.length; i < l; i++)children[i].draw(ctx, param, strokeMatrix);\n if (!param.clip) {\n this._setStyles(ctx, param, viewMatrix);\n var style = this._style;\n if (style.hasFill()) {\n ctx.fill(style.getFillRule());\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n }\n if (style.hasStroke()) ctx.stroke();\n }\n },\n _drawSelected: function(ctx, matrix, selectionItems) {\n var children = this._children;\n for(var i = 0, l = children.length; i < l; i++){\n var child = children[i], mx = child._matrix;\n if (!selectionItems[child._id]) child._drawSelected(ctx, mx.isIdentity() ? matrix : matrix.appended(mx));\n }\n }\n }, new function() {\n function getCurrentPath(that, check) {\n var children = that._children;\n if (check && !children.length) throw new Error(\"Use a moveTo() command first\");\n return children[children.length - 1];\n }\n return Base.each([\n \"lineTo\",\n \"cubicCurveTo\",\n \"quadraticCurveTo\",\n \"curveTo\",\n \"arcTo\",\n \"lineBy\",\n \"cubicCurveBy\",\n \"quadraticCurveBy\",\n \"curveBy\",\n \"arcBy\"\n ], function(key) {\n this[key] = function() {\n var path = getCurrentPath(this, true);\n path[key].apply(path, arguments);\n };\n }, {\n moveTo: function() {\n var current = getCurrentPath(this), path = current && current.isEmpty() ? current : new Path(Item.NO_INSERT);\n if (path !== current) this.addChild(path);\n path.moveTo.apply(path, arguments);\n },\n moveBy: function() {\n var current = getCurrentPath(this, true), last = current && current.getLastSegment(), point = Point.read(arguments);\n this.moveTo(last ? point.add(last._point) : point);\n },\n closePath: function(tolerance) {\n getCurrentPath(this, true).closePath(tolerance);\n }\n });\n }, Base.each([\n \"reverse\",\n \"flatten\",\n \"simplify\",\n \"smooth\"\n ], function(key) {\n this[key] = function(param) {\n var children = this._children, res;\n for(var i = 0, l = children.length; i < l; i++)res = children[i][key](param) || res;\n return res;\n };\n }, {}));\n PathItem.inject(new function() {\n var min = Math.min, max = Math.max, abs = Math.abs, operators = {\n unite: {\n \"1\": true,\n \"2\": true\n },\n intersect: {\n \"2\": true\n },\n subtract: {\n \"1\": true\n },\n exclude: {\n \"1\": true,\n \"-1\": true\n }\n };\n function getPaths(path) {\n return path._children || [\n path\n ];\n }\n function preparePath(path, resolve) {\n var res = path.clone(false).reduce({\n simplify: true\n }).transform(null, true, true);\n if (resolve) {\n var paths = getPaths(res);\n for(var i = 0, l = paths.length; i < l; i++){\n var path = paths[i];\n if (!path._closed && !path.isEmpty()) {\n path.closePath(1e-12);\n path.getFirstSegment().setHandleIn(0, 0);\n path.getLastSegment().setHandleOut(0, 0);\n }\n }\n res = res.resolveCrossings().reorient(res.getFillRule() === \"nonzero\", true);\n }\n return res;\n }\n function createResult(paths, simplify, path1, path2, options) {\n var result = new CompoundPath(Item.NO_INSERT);\n result.addChildren(paths, true);\n result = result.reduce({\n simplify: simplify\n });\n if (!(options && options.insert == false)) result.insertAbove(path2 && path1.isSibling(path2) && path1.getIndex() < path2.getIndex() ? path2 : path1);\n result.copyAttributes(path1, true);\n return result;\n }\n function filterIntersection(inter) {\n return inter.hasOverlap() || inter.isCrossing();\n }\n function traceBoolean(path1, path2, operation, options) {\n if (options && (options.trace == false || options.stroke) && /^(subtract|intersect)$/.test(operation)) return splitBoolean(path1, path2, operation);\n var _path1 = preparePath(path1, true), _path2 = path2 && path1 !== path2 && preparePath(path2, true), operator = operators[operation];\n operator[operation] = true;\n if (_path2 && (operator.subtract || operator.exclude) ^ (_path2.isClockwise() ^ _path1.isClockwise())) _path2.reverse();\n var crossings = divideLocations(CurveLocation.expand(_path1.getIntersections(_path2, filterIntersection))), paths1 = getPaths(_path1), paths2 = _path2 && getPaths(_path2), segments = [], curves = [], paths;\n function collectPaths(paths) {\n for(var i = 0, l = paths.length; i < l; i++){\n var path = paths[i];\n Base.push(segments, path._segments);\n Base.push(curves, path.getCurves());\n path._overlapsOnly = true;\n }\n }\n function getCurves(indices) {\n var list = [];\n for(var i = 0, l = indices && indices.length; i < l; i++)list.push(curves[indices[i]]);\n return list;\n }\n if (crossings.length) {\n collectPaths(paths1);\n if (paths2) collectPaths(paths2);\n var curvesValues = new Array(curves.length);\n for(var i = 0, l = curves.length; i < l; i++)curvesValues[i] = curves[i].getValues();\n var curveCollisions = CollisionDetection.findCurveBoundsCollisions(curvesValues, curvesValues, 0, true);\n var curveCollisionsMap = {};\n for(var i = 0; i < curves.length; i++){\n var curve = curves[i], id = curve._path._id, map = curveCollisionsMap[id] = curveCollisionsMap[id] || {};\n map[curve.getIndex()] = {\n hor: getCurves(curveCollisions[i].hor),\n ver: getCurves(curveCollisions[i].ver)\n };\n }\n for(var i = 0, l = crossings.length; i < l; i++)propagateWinding(crossings[i]._segment, _path1, _path2, curveCollisionsMap, operator);\n for(var i = 0, l = segments.length; i < l; i++){\n var segment = segments[i], inter = segment._intersection;\n if (!segment._winding) propagateWinding(segment, _path1, _path2, curveCollisionsMap, operator);\n if (!(inter && inter._overlap)) segment._path._overlapsOnly = false;\n }\n paths = tracePaths(segments, operator);\n } else paths = reorientPaths(paths2 ? paths1.concat(paths2) : paths1.slice(), function(w) {\n return !!operator[w];\n });\n return createResult(paths, true, path1, path2, options);\n }\n function splitBoolean(path1, path2, operation) {\n var _path1 = preparePath(path1), _path2 = preparePath(path2), crossings = _path1.getIntersections(_path2, filterIntersection), subtract = operation === \"subtract\", divide = operation === \"divide\", added = {}, paths = [];\n function addPath(path) {\n if (!added[path._id] && (divide || _path2.contains(path.getPointAt(path.getLength() / 2)) ^ subtract)) {\n paths.unshift(path);\n return added[path._id] = true;\n }\n }\n for(var i = crossings.length - 1; i >= 0; i--){\n var path = crossings[i].split();\n if (path) {\n if (addPath(path)) path.getFirstSegment().setHandleIn(0, 0);\n _path1.getLastSegment().setHandleOut(0, 0);\n }\n }\n addPath(_path1);\n return createResult(paths, false, path1, path2);\n }\n function linkIntersections(from, to) {\n var prev = from;\n while(prev){\n if (prev === to) return;\n prev = prev._previous;\n }\n while(from._next && from._next !== to)from = from._next;\n if (!from._next) {\n while(to._previous)to = to._previous;\n from._next = to;\n to._previous = from;\n }\n }\n function clearCurveHandles(curves) {\n for(var i = curves.length - 1; i >= 0; i--)curves[i].clearHandles();\n }\n function reorientPaths(paths, isInside, clockwise) {\n var length = paths && paths.length;\n if (length) {\n var lookup = Base.each(paths, function(path, i) {\n this[path._id] = {\n container: null,\n winding: path.isClockwise() ? 1 : -1,\n index: i\n };\n }, {}), sorted = paths.slice().sort(function(a, b) {\n return abs(b.getArea()) - abs(a.getArea());\n }), first = sorted[0];\n var collisions = CollisionDetection.findItemBoundsCollisions(sorted, null, Numerical.GEOMETRIC_EPSILON);\n if (clockwise == null) clockwise = first.isClockwise();\n for(var i = 0; i < length; i++){\n var path1 = sorted[i], entry1 = lookup[path1._id], containerWinding = 0, indices = collisions[i];\n if (indices) {\n var point = null;\n for(var j = indices.length - 1; j >= 0; j--)if (indices[j] < i) {\n point = point || path1.getInteriorPoint();\n var path2 = sorted[indices[j]];\n if (path2.contains(point)) {\n var entry2 = lookup[path2._id];\n containerWinding = entry2.winding;\n entry1.winding += containerWinding;\n entry1.container = entry2.exclude ? entry2.container : path2;\n break;\n }\n }\n }\n if (isInside(entry1.winding) === isInside(containerWinding)) {\n entry1.exclude = true;\n paths[entry1.index] = null;\n } else {\n var container = entry1.container;\n path1.setClockwise(container ? !container.isClockwise() : clockwise);\n }\n }\n }\n return paths;\n }\n function divideLocations(locations, include, clearLater) {\n var results = include && [], tMin = 1e-8, tMax = 1 - tMin, clearHandles = false, clearCurves = clearLater || [], clearLookup = clearLater && {}, renormalizeLocs, prevCurve, prevTime;\n function getId(curve) {\n return curve._path._id + \".\" + curve._segment1._index;\n }\n for(var i = (clearLater && clearLater.length) - 1; i >= 0; i--){\n var curve = clearLater[i];\n if (curve._path) clearLookup[getId(curve)] = true;\n }\n for(var i = locations.length - 1; i >= 0; i--){\n var loc = locations[i], time = loc._time, origTime = time, exclude = include && !include(loc), curve = loc._curve, segment;\n if (curve) {\n if (curve !== prevCurve) {\n clearHandles = !curve.hasHandles() || clearLookup && clearLookup[getId(curve)];\n renormalizeLocs = [];\n prevTime = null;\n prevCurve = curve;\n } else if (prevTime >= tMin) time /= prevTime;\n }\n if (exclude) {\n if (renormalizeLocs) renormalizeLocs.push(loc);\n continue;\n } else if (include) results.unshift(loc);\n prevTime = origTime;\n if (time < tMin) segment = curve._segment1;\n else if (time > tMax) segment = curve._segment2;\n else {\n var newCurve = curve.divideAtTime(time, true);\n if (clearHandles) clearCurves.push(curve, newCurve);\n segment = newCurve._segment1;\n for(var j = renormalizeLocs.length - 1; j >= 0; j--){\n var l = renormalizeLocs[j];\n l._time = (l._time - time) / (1 - time);\n }\n }\n loc._setSegment(segment);\n var inter = segment._intersection, dest = loc._intersection;\n if (inter) {\n linkIntersections(inter, dest);\n var other = inter;\n while(other){\n linkIntersections(other._intersection, inter);\n other = other._next;\n }\n } else segment._intersection = dest;\n }\n if (!clearLater) clearCurveHandles(clearCurves);\n return results || locations;\n }\n function getWinding(point, curves, dir, closed, dontFlip) {\n var curvesList = Array.isArray(curves) ? curves : curves[dir ? \"hor\" : \"ver\"];\n var ia = dir ? 1 : 0, io = ia ^ 1, pv = [\n point.x,\n point.y\n ], pa = pv[ia], po = pv[io], windingEpsilon = 1e-9, qualityEpsilon = 1e-6, paL = pa - windingEpsilon, paR = pa + windingEpsilon, windingL = 0, windingR = 0, pathWindingL = 0, pathWindingR = 0, onPath = false, onAnyPath = false, quality = 1, roots = [], vPrev, vClose;\n function addWinding(v) {\n var o0 = v[io + 0], o3 = v[io + 6];\n if (po < min(o0, o3) || po > max(o0, o3)) return;\n var a0 = v[ia + 0], a1 = v[ia + 2], a2 = v[ia + 4], a3 = v[ia + 6];\n if (o0 === o3) {\n if (a0 < paR && a3 > paL || a3 < paR && a0 > paL) onPath = true;\n return;\n }\n var t = po === o0 ? 0 : po === o3 ? 1 : paL > max(a0, a1, a2, a3) || paR < min(a0, a1, a2, a3) ? 1 : Curve.solveCubic(v, io, po, roots, 0, 1) > 0 ? roots[0] : 1, a = t === 0 ? a0 : t === 1 ? a3 : Curve.getPoint(v, t)[dir ? \"y\" : \"x\"], winding = o0 > o3 ? 1 : -1, windingPrev = vPrev[io] > vPrev[io + 6] ? 1 : -1, a3Prev = vPrev[ia + 6];\n if (po !== o0) {\n if (a < paL) pathWindingL += winding;\n else if (a > paR) pathWindingR += winding;\n else onPath = true;\n if (a > pa - qualityEpsilon && a < pa + qualityEpsilon) quality /= 2;\n } else {\n if (winding !== windingPrev) {\n if (a0 < paL) pathWindingL += winding;\n else if (a0 > paR) pathWindingR += winding;\n } else if (a0 != a3Prev) {\n if (a3Prev < paR && a > paR) {\n pathWindingR += winding;\n onPath = true;\n } else if (a3Prev > paL && a < paL) {\n pathWindingL += winding;\n onPath = true;\n }\n }\n quality /= 4;\n }\n vPrev = v;\n return !dontFlip && a > paL && a < paR && Curve.getTangent(v, t)[dir ? \"x\" : \"y\"] === 0 && getWinding(point, curves, !dir, closed, true);\n }\n function handleCurve(v) {\n var o0 = v[io + 0], o1 = v[io + 2], o2 = v[io + 4], o3 = v[io + 6];\n if (po <= max(o0, o1, o2, o3) && po >= min(o0, o1, o2, o3)) {\n var a0 = v[ia + 0], a1 = v[ia + 2], a2 = v[ia + 4], a3 = v[ia + 6], monoCurves = paL > max(a0, a1, a2, a3) || paR < min(a0, a1, a2, a3) ? [\n v\n ] : Curve.getMonoCurves(v, dir), res;\n for(var i = 0, l = monoCurves.length; i < l; i++){\n if (res = addWinding(monoCurves[i])) return res;\n }\n }\n }\n for(var i = 0, l = curvesList.length; i < l; i++){\n var curve = curvesList[i], path = curve._path, v = curve.getValues(), res;\n if (!i || curvesList[i - 1]._path !== path) {\n vPrev = null;\n if (!path._closed) {\n vClose = Curve.getValues(path.getLastCurve().getSegment2(), curve.getSegment1(), null, !closed);\n if (vClose[io] !== vClose[io + 6]) vPrev = vClose;\n }\n if (!vPrev) {\n vPrev = v;\n var prev = path.getLastCurve();\n while(prev && prev !== curve){\n var v2 = prev.getValues();\n if (v2[io] !== v2[io + 6]) {\n vPrev = v2;\n break;\n }\n prev = prev.getPrevious();\n }\n }\n }\n if (res = handleCurve(v)) return res;\n if (i + 1 === l || curvesList[i + 1]._path !== path) {\n if (vClose && (res = handleCurve(vClose))) return res;\n if (onPath && !pathWindingL && !pathWindingR) pathWindingL = pathWindingR = path.isClockwise(closed) ^ dir ? 1 : -1;\n windingL += pathWindingL;\n windingR += pathWindingR;\n pathWindingL = pathWindingR = 0;\n if (onPath) {\n onAnyPath = true;\n onPath = false;\n }\n vClose = null;\n }\n }\n windingL = abs(windingL);\n windingR = abs(windingR);\n return {\n winding: max(windingL, windingR),\n windingL: windingL,\n windingR: windingR,\n quality: quality,\n onPath: onAnyPath\n };\n }\n function propagateWinding(segment, path1, path2, curveCollisionsMap, operator) {\n var chain = [], start = segment, totalLength = 0, winding;\n do {\n var curve = segment.getCurve();\n if (curve) {\n var length = curve.getLength();\n chain.push({\n segment: segment,\n curve: curve,\n length: length\n });\n totalLength += length;\n }\n segment = segment.getNext();\n }while (segment && !segment._intersection && segment !== start);\n var offsets = [\n 0.5,\n 0.25,\n 0.75\n ], winding = {\n winding: 0,\n quality: -1\n }, tMin = 1e-3, tMax = 1 - tMin;\n for(var i = 0; i < offsets.length && winding.quality < 0.5; i++){\n var length = totalLength * offsets[i];\n for(var j = 0, l = chain.length; j < l; j++){\n var entry = chain[j], curveLength = entry.length;\n if (length <= curveLength) {\n var curve = entry.curve, path = curve._path, parent = path._parent, operand = parent instanceof CompoundPath ? parent : path, t = Numerical.clamp(curve.getTimeAt(length), tMin, tMax), pt = curve.getPointAtTime(t), dir = abs(curve.getTangentAtTime(t).y) < Math.SQRT1_2;\n var wind = null;\n if (operator.subtract && path2) {\n var otherPath = operand === path1 ? path2 : path1, pathWinding = otherPath._getWinding(pt, dir, true);\n if (operand === path1 && pathWinding.winding || operand === path2 && !pathWinding.winding) {\n if (pathWinding.quality < 1) continue;\n else wind = {\n winding: 0,\n quality: 1\n };\n }\n }\n wind = wind || getWinding(pt, curveCollisionsMap[path._id][curve.getIndex()], dir, true);\n if (wind.quality > winding.quality) winding = wind;\n break;\n }\n length -= curveLength;\n }\n }\n for(var j = chain.length - 1; j >= 0; j--)chain[j].segment._winding = winding;\n }\n function tracePaths(segments, operator) {\n var paths = [], starts;\n function isValid(seg) {\n var winding;\n return !!(seg && !seg._visited && (!operator || operator[(winding = seg._winding || {}).winding] && !(operator.unite && winding.winding === 2 && winding.windingL && winding.windingR)));\n }\n function isStart(seg) {\n if (seg) for(var i = 0, l = starts.length; i < l; i++){\n if (seg === starts[i]) return true;\n }\n return false;\n }\n function visitPath(path) {\n var segments = path._segments;\n for(var i = 0, l = segments.length; i < l; i++)segments[i]._visited = true;\n }\n function getCrossingSegments(segment, collectStarts) {\n var inter = segment._intersection, start = inter, crossings = [];\n if (collectStarts) starts = [\n segment\n ];\n function collect(inter, end) {\n while(inter && inter !== end){\n var other = inter._segment, path = other && other._path;\n if (path) {\n var next = other.getNext() || path.getFirstSegment(), nextInter = next._intersection;\n if (other !== segment && (isStart(other) || isStart(next) || next && isValid(other) && (isValid(next) || nextInter && isValid(nextInter._segment)))) crossings.push(other);\n if (collectStarts) starts.push(other);\n }\n inter = inter._next;\n }\n }\n if (inter) {\n collect(inter);\n while(inter && inter._previous)inter = inter._previous;\n collect(inter, start);\n }\n return crossings;\n }\n segments.sort(function(seg1, seg2) {\n var inter1 = seg1._intersection, inter2 = seg2._intersection, over1 = !!(inter1 && inter1._overlap), over2 = !!(inter2 && inter2._overlap), path1 = seg1._path, path2 = seg2._path;\n return over1 ^ over2 ? over1 ? 1 : -1 : !inter1 ^ !inter2 ? inter1 ? 1 : -1 : path1 !== path2 ? path1._id - path2._id : seg1._index - seg2._index;\n });\n for(var i = 0, l = segments.length; i < l; i++){\n var seg = segments[i], valid = isValid(seg), path = null, finished = false, closed = true, branches = [], branch, visited, handleIn;\n if (valid && seg._path._overlapsOnly) {\n var path1 = seg._path, path2 = seg._intersection._segment._path;\n if (path1.compare(path2)) {\n if (path1.getArea()) paths.push(path1.clone(false));\n visitPath(path1);\n visitPath(path2);\n valid = false;\n }\n }\n while(valid){\n var first = !path, crossings = getCrossingSegments(seg, first), other = crossings.shift(), finished = !first && (isStart(seg) || isStart(other)), cross = !finished && other;\n if (first) {\n path = new Path(Item.NO_INSERT);\n branch = null;\n }\n if (finished) {\n if (seg.isFirst() || seg.isLast()) closed = seg._path._closed;\n seg._visited = true;\n break;\n }\n if (cross && branch) {\n branches.push(branch);\n branch = null;\n }\n if (!branch) {\n if (cross) crossings.push(seg);\n branch = {\n start: path._segments.length,\n crossings: crossings,\n visited: visited = [],\n handleIn: handleIn\n };\n }\n if (cross) seg = other;\n if (!isValid(seg)) {\n path.removeSegments(branch.start);\n for(var j = 0, k = visited.length; j < k; j++)visited[j]._visited = false;\n visited.length = 0;\n do {\n seg = branch && branch.crossings.shift();\n if (!seg || !seg._path) {\n seg = null;\n branch = branches.pop();\n if (branch) {\n visited = branch.visited;\n handleIn = branch.handleIn;\n }\n }\n }while (branch && !isValid(seg));\n if (!seg) break;\n }\n var next = seg.getNext();\n path.add(new Segment(seg._point, handleIn, next && seg._handleOut));\n seg._visited = true;\n visited.push(seg);\n seg = next || seg._path.getFirstSegment();\n handleIn = next && next._handleIn;\n }\n if (finished) {\n if (closed) {\n path.getFirstSegment().setHandleIn(handleIn);\n path.setClosed(closed);\n }\n if (path.getArea() !== 0) paths.push(path);\n }\n }\n return paths;\n }\n return {\n _getWinding: function(point, dir, closed) {\n return getWinding(point, this.getCurves(), dir, closed);\n },\n unite: function(path, options) {\n return traceBoolean(this, path, \"unite\", options);\n },\n intersect: function(path, options) {\n return traceBoolean(this, path, \"intersect\", options);\n },\n subtract: function(path, options) {\n return traceBoolean(this, path, \"subtract\", options);\n },\n exclude: function(path, options) {\n return traceBoolean(this, path, \"exclude\", options);\n },\n divide: function(path, options) {\n return options && (options.trace == false || options.stroke) ? splitBoolean(this, path, \"divide\") : createResult([\n this.subtract(path, options),\n this.intersect(path, options)\n ], true, this, path, options);\n },\n resolveCrossings: function() {\n var children = this._children, paths = children || [\n this\n ];\n function hasOverlap(seg, path) {\n var inter = seg && seg._intersection;\n return inter && inter._overlap && inter._path === path;\n }\n var hasOverlaps = false, hasCrossings = false, intersections = this.getIntersections(null, function(inter) {\n return inter.hasOverlap() && (hasOverlaps = true) || inter.isCrossing() && (hasCrossings = true);\n }), clearCurves = hasOverlaps && hasCrossings && [];\n intersections = CurveLocation.expand(intersections);\n if (hasOverlaps) {\n var overlaps = divideLocations(intersections, function(inter) {\n return inter.hasOverlap();\n }, clearCurves);\n for(var i = overlaps.length - 1; i >= 0; i--){\n var overlap = overlaps[i], path = overlap._path, seg = overlap._segment, prev = seg.getPrevious(), next = seg.getNext();\n if (hasOverlap(prev, path) && hasOverlap(next, path)) {\n seg.remove();\n prev._handleOut._set(0, 0);\n next._handleIn._set(0, 0);\n if (prev !== seg && !prev.getCurve().hasLength()) {\n next._handleIn.set(prev._handleIn);\n prev.remove();\n }\n }\n }\n }\n if (hasCrossings) {\n divideLocations(intersections, hasOverlaps && function(inter) {\n var curve1 = inter.getCurve(), seg1 = inter.getSegment(), other = inter._intersection, curve2 = other._curve, seg2 = other._segment;\n if (curve1 && curve2 && curve1._path && curve2._path) return true;\n if (seg1) seg1._intersection = null;\n if (seg2) seg2._intersection = null;\n }, clearCurves);\n if (clearCurves) clearCurveHandles(clearCurves);\n paths = tracePaths(Base.each(paths, function(path) {\n Base.push(this, path._segments);\n }, []));\n }\n var length = paths.length, item;\n if (length > 1 && children) {\n if (paths !== children) this.setChildren(paths);\n item = this;\n } else if (length === 1 && !children) {\n if (paths[0] !== this) this.setSegments(paths[0].removeSegments());\n item = this;\n }\n if (!item) {\n item = new CompoundPath(Item.NO_INSERT);\n item.addChildren(paths);\n item = item.reduce();\n item.copyAttributes(this);\n this.replaceWith(item);\n }\n return item;\n },\n reorient: function(nonZero, clockwise) {\n var children = this._children;\n if (children && children.length) this.setChildren(reorientPaths(this.removeChildren(), function(w) {\n return !!(nonZero ? w : w & 1);\n }, clockwise));\n else if (clockwise !== undefined) this.setClockwise(clockwise);\n return this;\n },\n getInteriorPoint: function() {\n var bounds = this.getBounds(), point = bounds.getCenter(true);\n if (!this.contains(point)) {\n var curves = this.getCurves(), y = point.y, intercepts = [], roots = [];\n for(var i = 0, l = curves.length; i < l; i++){\n var v = curves[i].getValues(), o0 = v[1], o1 = v[3], o2 = v[5], o3 = v[7];\n if (y >= min(o0, o1, o2, o3) && y <= max(o0, o1, o2, o3)) {\n var monoCurves = Curve.getMonoCurves(v);\n for(var j = 0, m = monoCurves.length; j < m; j++){\n var mv = monoCurves[j], mo0 = mv[1], mo3 = mv[7];\n if (mo0 !== mo3 && (y >= mo0 && y <= mo3 || y >= mo3 && y <= mo0)) {\n var x = y === mo0 ? mv[0] : y === mo3 ? mv[6] : Curve.solveCubic(mv, 1, y, roots, 0, 1) === 1 ? Curve.getPoint(mv, roots[0]).x : (mv[0] + mv[6]) / 2;\n intercepts.push(x);\n }\n }\n }\n }\n if (intercepts.length > 1) {\n intercepts.sort(function(a, b) {\n return a - b;\n });\n point.x = (intercepts[0] + intercepts[1]) / 2;\n }\n }\n return point;\n }\n };\n });\n var PathFlattener = Base.extend({\n _class: \"PathFlattener\",\n initialize: function(path, flatness, maxRecursion, ignoreStraight, matrix) {\n var curves = [], parts = [], length = 0, minSpan = 1 / (maxRecursion || 32), segments = path._segments, segment1 = segments[0], segment2;\n function addCurve(segment1, segment2) {\n var curve = Curve.getValues(segment1, segment2, matrix);\n curves.push(curve);\n computeParts(curve, segment1._index, 0, 1);\n }\n function computeParts(curve, index, t1, t2) {\n if (t2 - t1 > minSpan && !(ignoreStraight && Curve.isStraight(curve)) && !Curve.isFlatEnough(curve, flatness || 0.25)) {\n var halves = Curve.subdivide(curve, 0.5), tMid = (t1 + t2) / 2;\n computeParts(halves[0], index, t1, tMid);\n computeParts(halves[1], index, tMid, t2);\n } else {\n var dx = curve[6] - curve[0], dy = curve[7] - curve[1], dist = Math.sqrt(dx * dx + dy * dy);\n if (dist > 0) {\n length += dist;\n parts.push({\n offset: length,\n curve: curve,\n index: index,\n time: t2\n });\n }\n }\n }\n for(var i = 1, l = segments.length; i < l; i++){\n segment2 = segments[i];\n addCurve(segment1, segment2);\n segment1 = segment2;\n }\n if (path._closed) addCurve(segment2 || segment1, segments[0]);\n this.curves = curves;\n this.parts = parts;\n this.length = length;\n this.index = 0;\n },\n _get: function(offset) {\n var parts = this.parts, length = parts.length, start, i, j = this.index;\n for(;;){\n i = j;\n if (!j || parts[--j].offset < offset) break;\n }\n for(; i < length; i++){\n var part = parts[i];\n if (part.offset >= offset) {\n this.index = i;\n var prev = parts[i - 1], prevTime = prev && prev.index === part.index ? prev.time : 0, prevOffset = prev ? prev.offset : 0;\n return {\n index: part.index,\n time: prevTime + (part.time - prevTime) * (offset - prevOffset) / (part.offset - prevOffset)\n };\n }\n }\n return {\n index: parts[length - 1].index,\n time: 1\n };\n },\n drawPart: function(ctx, from, to) {\n var start = this._get(from), end = this._get(to);\n for(var i = start.index, l = end.index; i <= l; i++){\n var curve = Curve.getPart(this.curves[i], i === start.index ? start.time : 0, i === end.index ? end.time : 1);\n if (i === start.index) ctx.moveTo(curve[0], curve[1]);\n ctx.bezierCurveTo.apply(ctx, curve.slice(2));\n }\n }\n }, Base.each(Curve._evaluateMethods, function(name) {\n this[name + \"At\"] = function(offset) {\n var param = this._get(offset);\n return Curve[name](this.curves[param.index], param.time);\n };\n }, {}));\n var PathFitter = Base.extend({\n initialize: function(path) {\n var points = this.points = [], segments = path._segments, closed = path._closed;\n for(var i = 0, prev, l = segments.length; i < l; i++){\n var point = segments[i].point;\n if (!prev || !prev.equals(point)) points.push(prev = point.clone());\n }\n if (closed) {\n points.unshift(points[points.length - 1]);\n points.push(points[1]);\n }\n this.closed = closed;\n },\n fit: function(error) {\n var points = this.points, length = points.length, segments = null;\n if (length > 0) {\n segments = [\n new Segment(points[0])\n ];\n if (length > 1) {\n this.fitCubic(segments, error, 0, length - 1, points[1].subtract(points[0]), points[length - 2].subtract(points[length - 1]));\n if (this.closed) {\n segments.shift();\n segments.pop();\n }\n }\n }\n return segments;\n },\n fitCubic: function(segments, error, first, last, tan1, tan2) {\n var points = this.points;\n if (last - first === 1) {\n var pt1 = points[first], pt2 = points[last], dist = pt1.getDistance(pt2) / 3;\n this.addCurve(segments, [\n pt1,\n pt1.add(tan1.normalize(dist)),\n pt2.add(tan2.normalize(dist)),\n pt2\n ]);\n return;\n }\n var uPrime = this.chordLengthParameterize(first, last), maxError = Math.max(error, error * error), split, parametersInOrder = true;\n for(var i = 0; i <= 4; i++){\n var curve = this.generateBezier(first, last, uPrime, tan1, tan2);\n var max = this.findMaxError(first, last, curve, uPrime);\n if (max.error < error && parametersInOrder) {\n this.addCurve(segments, curve);\n return;\n }\n split = max.index;\n if (max.error >= maxError) break;\n parametersInOrder = this.reparameterize(first, last, uPrime, curve);\n maxError = max.error;\n }\n var tanCenter = points[split - 1].subtract(points[split + 1]);\n this.fitCubic(segments, error, first, split, tan1, tanCenter);\n this.fitCubic(segments, error, split, last, tanCenter.negate(), tan2);\n },\n addCurve: function(segments, curve) {\n var prev = segments[segments.length - 1];\n prev.setHandleOut(curve[1].subtract(curve[0]));\n segments.push(new Segment(curve[3], curve[2].subtract(curve[3])));\n },\n generateBezier: function(first, last, uPrime, tan1, tan2) {\n var epsilon = 1e-12, abs = Math.abs, points = this.points, pt1 = points[first], pt2 = points[last], C = [\n [\n 0,\n 0\n ],\n [\n 0,\n 0\n ]\n ], X = [\n 0,\n 0\n ];\n for(var i = 0, l = last - first + 1; i < l; i++){\n var u = uPrime[i], t = 1 - u, b = 3 * u * t, b0 = t * t * t, b1 = b * t, b2 = b * u, b3 = u * u * u, a1 = tan1.normalize(b1), a2 = tan2.normalize(b2), tmp = points[first + i].subtract(pt1.multiply(b0 + b1)).subtract(pt2.multiply(b2 + b3));\n C[0][0] += a1.dot(a1);\n C[0][1] += a1.dot(a2);\n C[1][0] = C[0][1];\n C[1][1] += a2.dot(a2);\n X[0] += a1.dot(tmp);\n X[1] += a2.dot(tmp);\n }\n var detC0C1 = C[0][0] * C[1][1] - C[1][0] * C[0][1], alpha1, alpha2;\n if (abs(detC0C1) > epsilon) {\n var detC0X = C[0][0] * X[1] - C[1][0] * X[0], detXC1 = X[0] * C[1][1] - X[1] * C[0][1];\n alpha1 = detXC1 / detC0C1;\n alpha2 = detC0X / detC0C1;\n } else {\n var c0 = C[0][0] + C[0][1], c1 = C[1][0] + C[1][1];\n alpha1 = alpha2 = abs(c0) > epsilon ? X[0] / c0 : abs(c1) > epsilon ? X[1] / c1 : 0;\n }\n var segLength = pt2.getDistance(pt1), eps = epsilon * segLength, handle1, handle2;\n if (alpha1 < eps || alpha2 < eps) alpha1 = alpha2 = segLength / 3;\n else {\n var line = pt2.subtract(pt1);\n handle1 = tan1.normalize(alpha1);\n handle2 = tan2.normalize(alpha2);\n if (handle1.dot(line) - handle2.dot(line) > segLength * segLength) {\n alpha1 = alpha2 = segLength / 3;\n handle1 = handle2 = null;\n }\n }\n return [\n pt1,\n pt1.add(handle1 || tan1.normalize(alpha1)),\n pt2.add(handle2 || tan2.normalize(alpha2)),\n pt2\n ];\n },\n reparameterize: function(first, last, u, curve) {\n for(var i = first; i <= last; i++)u[i - first] = this.findRoot(curve, this.points[i], u[i - first]);\n for(var i = 1, l = u.length; i < l; i++){\n if (u[i] <= u[i - 1]) return false;\n }\n return true;\n },\n findRoot: function(curve, point, u) {\n var curve1 = [], curve2 = [];\n for(var i = 0; i <= 2; i++)curve1[i] = curve[i + 1].subtract(curve[i]).multiply(3);\n for(var i = 0; i <= 1; i++)curve2[i] = curve1[i + 1].subtract(curve1[i]).multiply(2);\n var pt = this.evaluate(3, curve, u), pt1 = this.evaluate(2, curve1, u), pt2 = this.evaluate(1, curve2, u), diff = pt.subtract(point), df = pt1.dot(pt1) + diff.dot(pt2);\n return Numerical.isMachineZero(df) ? u : u - diff.dot(pt1) / df;\n },\n evaluate: function(degree, curve, t) {\n var tmp = curve.slice();\n for(var i = 1; i <= degree; i++)for(var j = 0; j <= degree - i; j++)tmp[j] = tmp[j].multiply(1 - t).add(tmp[j + 1].multiply(t));\n return tmp[0];\n },\n chordLengthParameterize: function(first, last) {\n var u = [\n 0\n ];\n for(var i = first + 1; i <= last; i++)u[i - first] = u[i - first - 1] + this.points[i].getDistance(this.points[i - 1]);\n for(var i = 1, m = last - first; i <= m; i++)u[i] /= u[m];\n return u;\n },\n findMaxError: function(first, last, curve, u) {\n var index = Math.floor((last - first + 1) / 2), maxDist = 0;\n for(var i = first + 1; i < last; i++){\n var P = this.evaluate(3, curve, u[i - first]);\n var v = P.subtract(this.points[i]);\n var dist = v.x * v.x + v.y * v.y;\n if (dist >= maxDist) {\n maxDist = dist;\n index = i;\n }\n }\n return {\n error: maxDist,\n index: index\n };\n }\n });\n var TextItem = Item.extend({\n _class: \"TextItem\",\n _applyMatrix: false,\n _canApplyMatrix: false,\n _serializeFields: {\n content: null\n },\n _boundsOptions: {\n stroke: false,\n handle: false\n },\n initialize: function TextItem(arg) {\n this._content = \"\";\n this._lines = [];\n var hasProps = arg && Base.isPlainObject(arg) && arg.x === undefined && arg.y === undefined;\n this._initialize(hasProps && arg, !hasProps && Point.read(arguments));\n },\n _equals: function(item) {\n return this._content === item._content;\n },\n copyContent: function(source) {\n this.setContent(source._content);\n },\n getContent: function() {\n return this._content;\n },\n setContent: function(content) {\n this._content = \"\" + content;\n this._lines = this._content.split(/\\r\\n|\\n|\\r/mg);\n this._changed(521);\n },\n isEmpty: function() {\n return !this._content;\n },\n getCharacterStyle: \"#getStyle\",\n setCharacterStyle: \"#setStyle\",\n getParagraphStyle: \"#getStyle\",\n setParagraphStyle: \"#setStyle\"\n });\n var PointText = TextItem.extend({\n _class: \"PointText\",\n initialize: function PointText() {\n TextItem.apply(this, arguments);\n },\n getPoint: function() {\n var point = this._matrix.getTranslation();\n return new LinkedPoint(point.x, point.y, this, \"setPoint\");\n },\n setPoint: function() {\n var point = Point.read(arguments);\n this.translate(point.subtract(this._matrix.getTranslation()));\n },\n _draw: function(ctx, param, viewMatrix) {\n if (!this._content) return;\n this._setStyles(ctx, param, viewMatrix);\n var lines = this._lines, style = this._style, hasFill = style.hasFill(), hasStroke = style.hasStroke(), leading = style.getLeading(), shadowColor = ctx.shadowColor;\n ctx.font = style.getFontStyle();\n ctx.textAlign = style.getJustification();\n for(var i = 0, l = lines.length; i < l; i++){\n ctx.shadowColor = shadowColor;\n var line = lines[i];\n if (hasFill) {\n ctx.fillText(line, 0, 0);\n ctx.shadowColor = \"rgba(0,0,0,0)\";\n }\n if (hasStroke) ctx.strokeText(line, 0, 0);\n ctx.translate(0, leading);\n }\n },\n _getBounds: function(matrix, options) {\n var style = this._style, lines = this._lines, numLines = lines.length, justification = style.getJustification(), leading = style.getLeading(), width = this.getView().getTextWidth(style.getFontStyle(), lines), x = 0;\n if (justification !== \"left\") x -= width / (justification === \"center\" ? 2 : 1);\n var rect = new Rectangle(x, numLines ? -0.75 * leading : 0, width, numLines * leading);\n return matrix ? matrix._transformBounds(rect, rect) : rect;\n }\n });\n var Color = Base.extend(new function() {\n var types = {\n gray: [\n \"gray\"\n ],\n rgb: [\n \"red\",\n \"green\",\n \"blue\"\n ],\n hsb: [\n \"hue\",\n \"saturation\",\n \"brightness\"\n ],\n hsl: [\n \"hue\",\n \"saturation\",\n \"lightness\"\n ],\n gradient: [\n \"gradient\",\n \"origin\",\n \"destination\",\n \"highlight\"\n ]\n };\n var componentParsers = {}, namedColors = {\n transparent: [\n 0,\n 0,\n 0,\n 0\n ]\n }, colorCtx;\n function fromCSS(string) {\n var match = string.match(/^#([\\da-f]{2})([\\da-f]{2})([\\da-f]{2})([\\da-f]{2})?$/i) || string.match(/^#([\\da-f])([\\da-f])([\\da-f])([\\da-f])?$/i), type = \"rgb\", components;\n if (match) {\n var amount = match[4] ? 4 : 3;\n components = new Array(amount);\n for(var i = 0; i < amount; i++){\n var value = match[i + 1];\n components[i] = parseInt(value.length == 1 ? value + value : value, 16) / 255;\n }\n } else if (match = string.match(/^(rgb|hsl)a?\\((.*)\\)$/)) {\n type = match[1];\n components = match[2].trim().split(/[,\\s]+/g);\n var isHSL = type === \"hsl\";\n for(var i = 0, l = Math.min(components.length, 4); i < l; i++){\n var component = components[i];\n var value = parseFloat(component);\n if (isHSL) {\n if (i === 0) {\n var unit = component.match(/([a-z]*)$/)[1];\n value *= ({\n turn: 360,\n rad: 180 / Math.PI,\n grad: 0.9\n })[unit] || 1;\n } else if (i < 3) value /= 100;\n } else if (i < 3) value /= /%$/.test(component) ? 100 : 255;\n components[i] = value;\n }\n } else {\n var color = namedColors[string];\n if (!color) {\n if (window) {\n if (!colorCtx) {\n colorCtx = CanvasProvider.getContext(1, 1, {\n willReadFrequently: true\n });\n colorCtx.globalCompositeOperation = \"copy\";\n }\n colorCtx.fillStyle = \"rgba(0,0,0,0)\";\n colorCtx.fillStyle = string;\n colorCtx.fillRect(0, 0, 1, 1);\n var data = colorCtx.getImageData(0, 0, 1, 1).data;\n color = namedColors[string] = [\n data[0] / 255,\n data[1] / 255,\n data[2] / 255\n ];\n } else color = [\n 0,\n 0,\n 0\n ];\n }\n components = color.slice();\n }\n return [\n type,\n components\n ];\n }\n var hsbIndices = [\n [\n 0,\n 3,\n 1\n ],\n [\n 2,\n 0,\n 1\n ],\n [\n 1,\n 0,\n 3\n ],\n [\n 1,\n 2,\n 0\n ],\n [\n 3,\n 1,\n 0\n ],\n [\n 0,\n 1,\n 2\n ]\n ];\n var converters = {\n \"rgb-hsb\": function(r, g, b) {\n var max = Math.max(r, g, b), min = Math.min(r, g, b), delta = max - min, h = delta === 0 ? 0 : (max == r ? (g - b) / delta + (g < b ? 6 : 0) : max == g ? (b - r) / delta + 2 : (r - g) / delta + 4) * 60;\n return [\n h,\n max === 0 ? 0 : delta / max,\n max\n ];\n },\n \"hsb-rgb\": function(h, s, b) {\n h = (h / 60 % 6 + 6) % 6;\n var i = Math.floor(h), f = h - i, i = hsbIndices[i], v = [\n b,\n b * (1 - s),\n b * (1 - s * f),\n b * (1 - s * (1 - f))\n ];\n return [\n v[i[0]],\n v[i[1]],\n v[i[2]]\n ];\n },\n \"rgb-hsl\": function(r, g, b) {\n var max = Math.max(r, g, b), min = Math.min(r, g, b), delta = max - min, achromatic = delta === 0, h = achromatic ? 0 : (max == r ? (g - b) / delta + (g < b ? 6 : 0) : max == g ? (b - r) / delta + 2 : (r - g) / delta + 4) * 60, l = (max + min) / 2, s = achromatic ? 0 : l < 0.5 ? delta / (max + min) : delta / (2 - max - min);\n return [\n h,\n s,\n l\n ];\n },\n \"hsl-rgb\": function(h, s, l) {\n h = (h / 360 % 1 + 1) % 1;\n if (s === 0) return [\n l,\n l,\n l\n ];\n var t3s = [\n h + 1 / 3,\n h,\n h - 1 / 3\n ], t2 = l < 0.5 ? l * (1 + s) : l + s - l * s, t1 = 2 * l - t2, c = [];\n for(var i = 0; i < 3; i++){\n var t3 = t3s[i];\n if (t3 < 0) t3 += 1;\n if (t3 > 1) t3 -= 1;\n c[i] = 6 * t3 < 1 ? t1 + (t2 - t1) * 6 * t3 : 2 * t3 < 1 ? t2 : 3 * t3 < 2 ? t1 + (t2 - t1) * (2 / 3 - t3) * 6 : t1;\n }\n return c;\n },\n \"rgb-gray\": function(r, g, b) {\n return [\n r * 0.2989 + g * 0.587 + b * 0.114\n ];\n },\n \"gray-rgb\": function(g) {\n return [\n g,\n g,\n g\n ];\n },\n \"gray-hsb\": function(g) {\n return [\n 0,\n 0,\n g\n ];\n },\n \"gray-hsl\": function(g) {\n return [\n 0,\n 0,\n g\n ];\n },\n \"gradient-rgb\": function() {\n return [];\n },\n \"rgb-gradient\": function() {\n return [];\n }\n };\n return Base.each(types, function(properties, type) {\n componentParsers[type] = [];\n Base.each(properties, function(name, index) {\n var part = Base.capitalize(name), hasOverlap = /^(hue|saturation)$/.test(name), parser = componentParsers[type][index] = type === \"gradient\" ? name === \"gradient\" ? function(value) {\n var current = this._components[0];\n value = Gradient.read(Array.isArray(value) ? value : arguments, 0, {\n readNull: true\n });\n if (current !== value) {\n if (current) current._removeOwner(this);\n if (value) value._addOwner(this);\n }\n return value;\n } : function() {\n return Point.read(arguments, 0, {\n readNull: name === \"highlight\",\n clone: true\n });\n } : function(value) {\n return value == null || isNaN(value) ? 0 : +value;\n };\n this[\"get\" + part] = function() {\n return this._type === type || hasOverlap && /^hs[bl]$/.test(this._type) ? this._components[index] : this._convert(type)[index];\n };\n this[\"set\" + part] = function(value) {\n if (this._type !== type && !(hasOverlap && /^hs[bl]$/.test(this._type))) {\n this._components = this._convert(type);\n this._properties = types[type];\n this._type = type;\n }\n this._components[index] = parser.call(this, value);\n this._changed();\n };\n }, this);\n }, {\n _class: \"Color\",\n _readIndex: true,\n initialize: function Color(arg) {\n var args = arguments, reading = this.__read, read = 0, type, components, alpha, values;\n if (Array.isArray(arg)) {\n args = arg;\n arg = args[0];\n }\n var argType = arg != null && typeof arg;\n if (argType === \"string\" && arg in types) {\n type = arg;\n arg = args[1];\n if (Array.isArray(arg)) {\n components = arg;\n alpha = args[2];\n } else {\n if (reading) read = 1;\n args = Base.slice(args, 1);\n argType = typeof arg;\n }\n }\n if (!components) {\n values = argType === \"number\" ? args : argType === \"object\" && arg.length != null ? arg : null;\n if (values) {\n if (!type) type = values.length >= 3 ? \"rgb\" : \"gray\";\n var length = types[type].length;\n alpha = values[length];\n if (reading) read += values === arguments ? length + (alpha != null ? 1 : 0) : 1;\n if (values.length > length) values = Base.slice(values, 0, length);\n } else if (argType === \"string\") {\n var converted = fromCSS(arg);\n type = converted[0];\n components = converted[1];\n if (components.length === 4) {\n alpha = components[3];\n components.length--;\n }\n } else if (argType === \"object\") {\n if (arg.constructor === Color) {\n type = arg._type;\n components = arg._components.slice();\n alpha = arg._alpha;\n if (type === \"gradient\") for(var i = 1, l = components.length; i < l; i++){\n var point = components[i];\n if (point) components[i] = point.clone();\n }\n } else if (arg.constructor === Gradient) {\n type = \"gradient\";\n values = args;\n } else {\n type = \"hue\" in arg ? \"lightness\" in arg ? \"hsl\" : \"hsb\" : \"gradient\" in arg || \"stops\" in arg || \"radial\" in arg ? \"gradient\" : \"gray\" in arg ? \"gray\" : \"rgb\";\n var properties = types[type], parsers = componentParsers[type];\n this._components = components = [];\n for(var i = 0, l = properties.length; i < l; i++){\n var value = arg[properties[i]];\n if (value == null && !i && type === \"gradient\" && \"stops\" in arg) value = {\n stops: arg.stops,\n radial: arg.radial\n };\n value = parsers[i].call(this, value);\n if (value != null) components[i] = value;\n }\n alpha = arg.alpha;\n }\n }\n if (reading && type) read = 1;\n }\n this._type = type || \"rgb\";\n if (!components) {\n this._components = components = [];\n var parsers = componentParsers[this._type];\n for(var i = 0, l = parsers.length; i < l; i++){\n var value = parsers[i].call(this, values && values[i]);\n if (value != null) components[i] = value;\n }\n }\n this._components = components;\n this._properties = types[this._type];\n this._alpha = alpha;\n if (reading) this.__read = read;\n return this;\n },\n set: \"#initialize\",\n _serialize: function(options, dictionary) {\n var components = this.getComponents();\n return Base.serialize(/^(gray|rgb)$/.test(this._type) ? components : [\n this._type\n ].concat(components), options, true, dictionary);\n },\n _changed: function() {\n this._canvasStyle = null;\n if (this._owner) {\n if (this._setter) this._owner[this._setter](this);\n else this._owner._changed(129);\n }\n },\n _convert: function(type) {\n var converter;\n return this._type === type ? this._components.slice() : (converter = converters[this._type + \"-\" + type]) ? converter.apply(this, this._components) : converters[\"rgb-\" + type].apply(this, converters[this._type + \"-rgb\"].apply(this, this._components));\n },\n convert: function(type) {\n return new Color(type, this._convert(type), this._alpha);\n },\n getType: function() {\n return this._type;\n },\n setType: function(type) {\n this._components = this._convert(type);\n this._properties = types[type];\n this._type = type;\n },\n getComponents: function() {\n var components = this._components.slice();\n if (this._alpha != null) components.push(this._alpha);\n return components;\n },\n getAlpha: function() {\n return this._alpha != null ? this._alpha : 1;\n },\n setAlpha: function(alpha) {\n this._alpha = alpha == null ? null : Math.min(Math.max(alpha, 0), 1);\n this._changed();\n },\n hasAlpha: function() {\n return this._alpha != null;\n },\n equals: function(color) {\n var col = Base.isPlainValue(color, true) ? Color.read(arguments) : color;\n return col === this || col && this._class === col._class && this._type === col._type && this.getAlpha() === col.getAlpha() && Base.equals(this._components, col._components) || false;\n },\n toString: function() {\n var properties = this._properties, parts = [], isGradient = this._type === \"gradient\", f = Formatter.instance;\n for(var i = 0, l = properties.length; i < l; i++){\n var value = this._components[i];\n if (value != null) parts.push(properties[i] + \": \" + (isGradient ? value : f.number(value)));\n }\n if (this._alpha != null) parts.push(\"alpha: \" + f.number(this._alpha));\n return \"{ \" + parts.join(\", \") + \" }\";\n },\n toCSS: function(hex) {\n var components = this._convert(\"rgb\"), alpha = hex || this._alpha == null ? 1 : this._alpha;\n function convert(val) {\n return Math.round((val < 0 ? 0 : val > 1 ? 1 : val) * 255);\n }\n components = [\n convert(components[0]),\n convert(components[1]),\n convert(components[2])\n ];\n if (alpha < 1) components.push(alpha < 0 ? 0 : alpha);\n return hex ? \"#\" + (16777216 + (components[0] << 16) + (components[1] << 8) + components[2]).toString(16).slice(1) : (components.length == 4 ? \"rgba(\" : \"rgb(\") + components.join(\",\") + \")\";\n },\n toCanvasStyle: function(ctx, matrix) {\n if (this._canvasStyle) return this._canvasStyle;\n if (this._type !== \"gradient\") return this._canvasStyle = this.toCSS();\n var components = this._components, gradient = components[0], stops = gradient._stops, origin = components[1], destination = components[2], highlight = components[3], inverse = matrix && matrix.inverted(), canvasGradient;\n if (inverse) {\n origin = inverse._transformPoint(origin);\n destination = inverse._transformPoint(destination);\n if (highlight) highlight = inverse._transformPoint(highlight);\n }\n if (gradient._radial) {\n var radius = destination.getDistance(origin);\n if (highlight) {\n var vector = highlight.subtract(origin);\n if (vector.getLength() > radius) highlight = origin.add(vector.normalize(radius - 0.1));\n }\n var start = highlight || origin;\n canvasGradient = ctx.createRadialGradient(start.x, start.y, 0, origin.x, origin.y, radius);\n } else canvasGradient = ctx.createLinearGradient(origin.x, origin.y, destination.x, destination.y);\n for(var i = 0, l = stops.length; i < l; i++){\n var stop = stops[i], offset = stop._offset;\n canvasGradient.addColorStop(offset == null ? i / (l - 1) : offset, stop._color.toCanvasStyle());\n }\n return this._canvasStyle = canvasGradient;\n },\n transform: function(matrix) {\n if (this._type === \"gradient\") {\n var components = this._components;\n for(var i = 1, l = components.length; i < l; i++){\n var point = components[i];\n matrix._transformPoint(point, point, true);\n }\n this._changed();\n }\n },\n statics: {\n _types: types,\n random: function() {\n var random = Math.random;\n return new Color(random(), random(), random());\n },\n _setOwner: function(color, owner, setter) {\n if (color) {\n if (color._owner && owner && color._owner !== owner) color = color.clone();\n if (!color._owner ^ !owner) {\n color._owner = owner || null;\n color._setter = setter || null;\n }\n }\n return color;\n }\n }\n });\n }, new function() {\n var operators = {\n add: function(a, b) {\n return a + b;\n },\n subtract: function(a, b) {\n return a - b;\n },\n multiply: function(a, b) {\n return a * b;\n },\n divide: function(a, b) {\n return a / b;\n }\n };\n return Base.each(operators, function(operator, name) {\n this[name] = function(color) {\n color = Color.read(arguments);\n var type = this._type, components1 = this._components, components2 = color._convert(type);\n for(var i = 0, l = components1.length; i < l; i++)components2[i] = operator(components1[i], components2[i]);\n return new Color(type, components2, this._alpha != null ? operator(this._alpha, color.getAlpha()) : null);\n };\n }, {});\n });\n var Gradient = Base.extend({\n _class: \"Gradient\",\n initialize: function Gradient(stops, radial) {\n this._id = UID.get();\n if (stops && Base.isPlainObject(stops)) {\n this.set(stops);\n stops = radial = null;\n }\n if (this._stops == null) this.setStops(stops || [\n \"white\",\n \"black\"\n ]);\n if (this._radial == null) this.setRadial(typeof radial === \"string\" && radial === \"radial\" || radial || false);\n },\n _serialize: function(options, dictionary) {\n return dictionary.add(this, function() {\n return Base.serialize([\n this._stops,\n this._radial\n ], options, true, dictionary);\n });\n },\n _changed: function() {\n for(var i = 0, l = this._owners && this._owners.length; i < l; i++)this._owners[i]._changed();\n },\n _addOwner: function(color) {\n if (!this._owners) this._owners = [];\n this._owners.push(color);\n },\n _removeOwner: function(color) {\n var index = this._owners ? this._owners.indexOf(color) : -1;\n if (index != -1) {\n this._owners.splice(index, 1);\n if (!this._owners.length) this._owners = undefined;\n }\n },\n clone: function() {\n var stops = [];\n for(var i = 0, l = this._stops.length; i < l; i++)stops[i] = this._stops[i].clone();\n return new Gradient(stops, this._radial);\n },\n getStops: function() {\n return this._stops;\n },\n setStops: function(stops) {\n if (stops.length < 2) throw new Error(\"Gradient stop list needs to contain at least two stops.\");\n var _stops = this._stops;\n if (_stops) for(var i = 0, l = _stops.length; i < l; i++)_stops[i]._owner = undefined;\n _stops = this._stops = GradientStop.readList(stops, 0, {\n clone: true\n });\n for(var i = 0, l = _stops.length; i < l; i++)_stops[i]._owner = this;\n this._changed();\n },\n getRadial: function() {\n return this._radial;\n },\n setRadial: function(radial) {\n this._radial = radial;\n this._changed();\n },\n equals: function(gradient) {\n if (gradient === this) return true;\n if (gradient && this._class === gradient._class) {\n var stops1 = this._stops, stops2 = gradient._stops, length = stops1.length;\n if (length === stops2.length) {\n for(var i = 0; i < length; i++){\n if (!stops1[i].equals(stops2[i])) return false;\n }\n return true;\n }\n }\n return false;\n }\n });\n var GradientStop = Base.extend({\n _class: \"GradientStop\",\n initialize: function GradientStop(arg0, arg1) {\n var color = arg0, offset = arg1;\n if (typeof arg0 === \"object\" && arg1 === undefined) {\n if (Array.isArray(arg0) && typeof arg0[0] !== \"number\") {\n color = arg0[0];\n offset = arg0[1];\n } else if (\"color\" in arg0 || \"offset\" in arg0 || \"rampPoint\" in arg0) {\n color = arg0.color;\n offset = arg0.offset || arg0.rampPoint || 0;\n }\n }\n this.setColor(color);\n this.setOffset(offset);\n },\n clone: function() {\n return new GradientStop(this._color.clone(), this._offset);\n },\n _serialize: function(options, dictionary) {\n var color = this._color, offset = this._offset;\n return Base.serialize(offset == null ? [\n color\n ] : [\n color,\n offset\n ], options, true, dictionary);\n },\n _changed: function() {\n if (this._owner) this._owner._changed(129);\n },\n getOffset: function() {\n return this._offset;\n },\n setOffset: function(offset) {\n this._offset = offset;\n this._changed();\n },\n getRampPoint: \"#getOffset\",\n setRampPoint: \"#setOffset\",\n getColor: function() {\n return this._color;\n },\n setColor: function() {\n Color._setOwner(this._color, null);\n this._color = Color._setOwner(Color.read(arguments, 0), this, \"setColor\");\n this._changed();\n },\n equals: function(stop) {\n return stop === this || stop && this._class === stop._class && this._color.equals(stop._color) && this._offset == stop._offset || false;\n }\n });\n var Style = Base.extend(new function() {\n var itemDefaults = {\n fillColor: null,\n fillRule: \"nonzero\",\n strokeColor: null,\n strokeWidth: 1,\n strokeCap: \"butt\",\n strokeJoin: \"miter\",\n strokeScaling: true,\n miterLimit: 10,\n dashOffset: 0,\n dashArray: [],\n shadowColor: null,\n shadowBlur: 0,\n shadowOffset: new Point(),\n selectedColor: null\n }, groupDefaults = Base.set({}, itemDefaults, {\n fontFamily: \"sans-serif\",\n fontWeight: \"normal\",\n fontSize: 12,\n leading: null,\n justification: \"left\"\n }), textDefaults = Base.set({}, groupDefaults, {\n fillColor: new Color()\n }), flags = {\n strokeWidth: 193,\n strokeCap: 193,\n strokeJoin: 193,\n strokeScaling: 201,\n miterLimit: 193,\n fontFamily: 9,\n fontWeight: 9,\n fontSize: 9,\n font: 9,\n leading: 9,\n justification: 9\n }, item = {\n beans: true\n }, fields = {\n _class: \"Style\",\n beans: true,\n initialize: function Style(style, _owner, _project) {\n this._values = {};\n this._owner = _owner;\n this._project = _owner && _owner._project || _project || paper.project;\n this._defaults = !_owner || _owner instanceof Group ? groupDefaults : _owner instanceof TextItem ? textDefaults : itemDefaults;\n if (style) this.set(style);\n }\n };\n Base.each(groupDefaults, function(value, key) {\n var isColor = /Color$/.test(key), isPoint = key === \"shadowOffset\", part = Base.capitalize(key), flag = flags[key], set = \"set\" + part, get = \"get\" + part;\n fields[set] = function(value) {\n var owner = this._owner, children = owner && owner._children, applyToChildren = children && children.length > 0 && !(owner instanceof CompoundPath);\n if (applyToChildren) for(var i = 0, l = children.length; i < l; i++)children[i]._style[set](value);\n if ((key === \"selectedColor\" || !applyToChildren) && key in this._defaults) {\n var old = this._values[key];\n if (old !== value) {\n if (isColor) {\n if (old) {\n Color._setOwner(old, null);\n old._canvasStyle = null;\n }\n if (value && value.constructor === Color) value = Color._setOwner(value, owner, applyToChildren && set);\n }\n this._values[key] = value;\n if (owner) owner._changed(flag || 129);\n }\n }\n };\n fields[get] = function(_dontMerge) {\n var owner = this._owner, children = owner && owner._children, applyToChildren = children && children.length > 0 && !(owner instanceof CompoundPath), value;\n if (applyToChildren && !_dontMerge) for(var i = 0, l = children.length; i < l; i++){\n var childValue = children[i]._style[get]();\n if (!i) value = childValue;\n else if (!Base.equals(value, childValue)) return undefined;\n }\n else if (key in this._defaults) {\n var value = this._values[key];\n if (value === undefined) {\n value = this._defaults[key];\n if (value && value.clone) value = value.clone();\n } else {\n var ctor = isColor ? Color : isPoint ? Point : null;\n if (ctor && !(value && value.constructor === ctor)) this._values[key] = value = ctor.read([\n value\n ], 0, {\n readNull: true,\n clone: true\n });\n }\n }\n if (value && isColor) value = Color._setOwner(value, owner, applyToChildren && set);\n return value;\n };\n item[get] = function(_dontMerge) {\n return this._style[get](_dontMerge);\n };\n item[set] = function(value) {\n this._style[set](value);\n };\n });\n Base.each({\n Font: \"FontFamily\",\n WindingRule: \"FillRule\"\n }, function(value, key) {\n var get = \"get\" + key, set = \"set\" + key;\n fields[get] = item[get] = \"#get\" + value;\n fields[set] = item[set] = \"#set\" + value;\n });\n Item.inject(item);\n return fields;\n }, {\n set: function(style) {\n var isStyle = style instanceof Style, values = isStyle ? style._values : style;\n if (values) {\n for(var key in values)if (key in this._defaults) {\n var value = values[key];\n this[key] = value && isStyle && value.clone ? value.clone() : value;\n }\n }\n },\n equals: function(style) {\n function compare(style1, style2, secondary) {\n var values1 = style1._values, values2 = style2._values, defaults2 = style2._defaults;\n for(var key in values1){\n var value1 = values1[key], value2 = values2[key];\n if (!(secondary && key in values2) && !Base.equals(value1, value2 === undefined ? defaults2[key] : value2)) return false;\n }\n return true;\n }\n return style === this || style && this._class === style._class && compare(this, style) && compare(style, this, true) || false;\n },\n _dispose: function() {\n var color;\n color = this.getFillColor();\n if (color) color._canvasStyle = null;\n color = this.getStrokeColor();\n if (color) color._canvasStyle = null;\n color = this.getShadowColor();\n if (color) color._canvasStyle = null;\n },\n hasFill: function() {\n var color = this.getFillColor();\n return !!color && color.alpha > 0;\n },\n hasStroke: function() {\n var color = this.getStrokeColor();\n return !!color && color.alpha > 0 && this.getStrokeWidth() > 0;\n },\n hasShadow: function() {\n var color = this.getShadowColor();\n return !!color && color.alpha > 0 && (this.getShadowBlur() > 0 || !this.getShadowOffset().isZero());\n },\n getView: function() {\n return this._project._view;\n },\n getFontStyle: function() {\n var fontSize = this.getFontSize();\n return this.getFontWeight() + \" \" + fontSize + (/[a-z]/i.test(fontSize + \"\") ? \" \" : \"px \") + this.getFontFamily();\n },\n getFont: \"#getFontFamily\",\n setFont: \"#setFontFamily\",\n getLeading: function getLeading() {\n var leading = getLeading.base.call(this), fontSize = this.getFontSize();\n if (/pt|em|%|px/.test(fontSize)) fontSize = this.getView().getPixelSize(fontSize);\n return leading != null ? leading : fontSize * 1.2;\n }\n });\n var DomElement = new function() {\n function handlePrefix(el, name, set, value) {\n var prefixes = [\n \"\",\n \"webkit\",\n \"moz\",\n \"Moz\",\n \"ms\",\n \"o\"\n ], suffix = name[0].toUpperCase() + name.substring(1);\n for(var i = 0; i < 6; i++){\n var prefix = prefixes[i], key = prefix ? prefix + suffix : name;\n if (key in el) {\n if (set) el[key] = value;\n else return el[key];\n break;\n }\n }\n }\n return {\n getStyles: function(el) {\n var doc = el && el.nodeType !== 9 ? el.ownerDocument : el, view = doc && doc.defaultView;\n return view && view.getComputedStyle(el, \"\");\n },\n getBounds: function(el, viewport) {\n var doc = el.ownerDocument, body = doc.body, html = doc.documentElement, rect;\n try {\n rect = el.getBoundingClientRect();\n } catch (e) {\n rect = {\n left: 0,\n top: 0,\n width: 0,\n height: 0\n };\n }\n var x = rect.left - (html.clientLeft || body.clientLeft || 0), y = rect.top - (html.clientTop || body.clientTop || 0);\n if (!viewport) {\n var view = doc.defaultView;\n x += view.pageXOffset || html.scrollLeft || body.scrollLeft;\n y += view.pageYOffset || html.scrollTop || body.scrollTop;\n }\n return new Rectangle(x, y, rect.width, rect.height);\n },\n getViewportBounds: function(el) {\n var doc = el.ownerDocument, view = doc.defaultView, html = doc.documentElement;\n return new Rectangle(0, 0, view.innerWidth || html.clientWidth, view.innerHeight || html.clientHeight);\n },\n getOffset: function(el, viewport) {\n return DomElement.getBounds(el, viewport).getPoint();\n },\n getSize: function(el) {\n return DomElement.getBounds(el, true).getSize();\n },\n isInvisible: function(el) {\n return DomElement.getSize(el).equals(new Size(0, 0));\n },\n isInView: function(el) {\n return !DomElement.isInvisible(el) && DomElement.getViewportBounds(el).intersects(DomElement.getBounds(el, true));\n },\n isInserted: function(el) {\n return document.body.contains(el);\n },\n getPrefixed: function(el, name) {\n return el && handlePrefix(el, name);\n },\n setPrefixed: function(el, name, value) {\n if (typeof name === \"object\") for(var key in name)handlePrefix(el, key, true, name[key]);\n else handlePrefix(el, name, true, value);\n }\n };\n };\n var DomEvent = {\n add: function(el, events) {\n if (el) for(var type in events){\n var func = events[type], parts = type.split(/[\\s,]+/g);\n for(var i = 0, l = parts.length; i < l; i++){\n var name = parts[i];\n var options = el === document && (name === \"touchstart\" || name === \"touchmove\") ? {\n passive: false\n } : false;\n el.addEventListener(name, func, options);\n }\n }\n },\n remove: function(el, events) {\n if (el) for(var type in events){\n var func = events[type], parts = type.split(/[\\s,]+/g);\n for(var i = 0, l = parts.length; i < l; i++)el.removeEventListener(parts[i], func, false);\n }\n },\n getPoint: function(event) {\n var pos = event.targetTouches ? event.targetTouches.length ? event.targetTouches[0] : event.changedTouches[0] : event;\n return new Point(pos.pageX || pos.clientX + document.documentElement.scrollLeft, pos.pageY || pos.clientY + document.documentElement.scrollTop);\n },\n getTarget: function(event) {\n return event.target || event.srcElement;\n },\n getRelatedTarget: function(event) {\n return event.relatedTarget || event.toElement;\n },\n getOffset: function(event, target) {\n return DomEvent.getPoint(event).subtract(DomElement.getOffset(target || DomEvent.getTarget(event)));\n }\n };\n DomEvent.requestAnimationFrame = new function() {\n var nativeRequest = DomElement.getPrefixed(window, \"requestAnimationFrame\"), requested = false, callbacks = [], timer;\n function handleCallbacks() {\n var functions = callbacks;\n callbacks = [];\n for(var i = 0, l = functions.length; i < l; i++)functions[i]();\n requested = nativeRequest && callbacks.length;\n if (requested) nativeRequest(handleCallbacks);\n }\n return function(callback) {\n callbacks.push(callback);\n if (nativeRequest) {\n if (!requested) {\n nativeRequest(handleCallbacks);\n requested = true;\n }\n } else if (!timer) timer = setInterval(handleCallbacks, 1000 / 60);\n };\n };\n var View = Base.extend(Emitter, {\n _class: \"View\",\n initialize: function View(project, element) {\n function getSize(name) {\n return element[name] || parseInt(element.getAttribute(name), 10);\n }\n function getCanvasSize() {\n var size = DomElement.getSize(element);\n return size.isNaN() || size.isZero() ? new Size(getSize(\"width\"), getSize(\"height\")) : size;\n }\n var size;\n if (window && element) {\n this._id = element.getAttribute(\"id\");\n if (this._id == null) element.setAttribute(\"id\", this._id = \"paper-view-\" + View._id++);\n DomEvent.add(element, this._viewEvents);\n var none = \"none\";\n DomElement.setPrefixed(element.style, {\n userDrag: none,\n userSelect: none,\n touchCallout: none,\n contentZooming: none,\n tapHighlightColor: \"rgba(0,0,0,0)\"\n });\n if (PaperScope.hasAttribute(element, \"resize\")) {\n var that = this;\n DomEvent.add(window, this._windowEvents = {\n resize: function() {\n that.setViewSize(getCanvasSize());\n }\n });\n }\n size = getCanvasSize();\n if (PaperScope.hasAttribute(element, \"stats\") && typeof Stats !== \"undefined\") {\n this._stats = new Stats();\n var stats = this._stats.domElement, style = stats.style, offset = DomElement.getOffset(element);\n style.position = \"absolute\";\n style.left = offset.x + \"px\";\n style.top = offset.y + \"px\";\n document.body.appendChild(stats);\n }\n } else {\n size = new Size(element);\n element = null;\n }\n this._project = project;\n this._scope = project._scope;\n this._element = element;\n if (!this._pixelRatio) this._pixelRatio = window && window.devicePixelRatio || 1;\n this._setElementSize(size.width, size.height);\n this._viewSize = size;\n View._views.push(this);\n View._viewsById[this._id] = this;\n (this._matrix = new Matrix())._owner = this;\n if (!View._focused) View._focused = this;\n this._frameItems = {};\n this._frameItemCount = 0;\n this._itemEvents = {\n native: {},\n virtual: {}\n };\n this._autoUpdate = !paper.agent.node;\n this._needsUpdate = false;\n },\n remove: function() {\n if (!this._project) return false;\n if (View._focused === this) View._focused = null;\n View._views.splice(View._views.indexOf(this), 1);\n delete View._viewsById[this._id];\n var project = this._project;\n if (project._view === this) project._view = null;\n DomEvent.remove(this._element, this._viewEvents);\n DomEvent.remove(window, this._windowEvents);\n this._element = this._project = null;\n this.off(\"frame\");\n this._animate = false;\n this._frameItems = {};\n return true;\n },\n _events: Base.each(Item._itemHandlers.concat([\n \"onResize\",\n \"onKeyDown\",\n \"onKeyUp\"\n ]), function(name) {\n this[name] = {};\n }, {\n onFrame: {\n install: function() {\n this.play();\n },\n uninstall: function() {\n this.pause();\n }\n }\n }),\n _animate: false,\n _time: 0,\n _count: 0,\n getAutoUpdate: function() {\n return this._autoUpdate;\n },\n setAutoUpdate: function(autoUpdate) {\n this._autoUpdate = autoUpdate;\n if (autoUpdate) this.requestUpdate();\n },\n update: function() {},\n draw: function() {\n this.update();\n },\n requestUpdate: function() {\n if (!this._requested) {\n var that = this;\n DomEvent.requestAnimationFrame(function() {\n that._requested = false;\n if (that._animate) {\n that.requestUpdate();\n var element = that._element;\n if ((!DomElement.getPrefixed(document, \"hidden\") || PaperScope.getAttribute(element, \"keepalive\") === \"true\") && DomElement.isInView(element)) that._handleFrame();\n }\n if (that._autoUpdate) that.update();\n });\n this._requested = true;\n }\n },\n play: function() {\n this._animate = true;\n this.requestUpdate();\n },\n pause: function() {\n this._animate = false;\n },\n _handleFrame: function() {\n paper = this._scope;\n var now = Date.now() / 1000, delta = this._last ? now - this._last : 0;\n this._last = now;\n this.emit(\"frame\", new Base({\n delta: delta,\n time: this._time += delta,\n count: this._count++\n }));\n if (this._stats) this._stats.update();\n },\n _animateItem: function(item, animate) {\n var items = this._frameItems;\n if (animate) {\n items[item._id] = {\n item: item,\n time: 0,\n count: 0\n };\n if (++this._frameItemCount === 1) this.on(\"frame\", this._handleFrameItems);\n } else {\n delete items[item._id];\n if (--this._frameItemCount === 0) this.off(\"frame\", this._handleFrameItems);\n }\n },\n _handleFrameItems: function(event) {\n for(var i in this._frameItems){\n var entry = this._frameItems[i];\n entry.item.emit(\"frame\", new Base(event, {\n time: entry.time += event.delta,\n count: entry.count++\n }));\n }\n },\n _changed: function() {\n this._project._changed(4097);\n this._bounds = this._decomposed = undefined;\n },\n getElement: function() {\n return this._element;\n },\n getPixelRatio: function() {\n return this._pixelRatio;\n },\n getResolution: function() {\n return this._pixelRatio * 72;\n },\n getViewSize: function() {\n var size = this._viewSize;\n return new LinkedSize(size.width, size.height, this, \"setViewSize\");\n },\n setViewSize: function() {\n var size = Size.read(arguments), delta = size.subtract(this._viewSize);\n if (delta.isZero()) return;\n this._setElementSize(size.width, size.height);\n this._viewSize.set(size);\n this._changed();\n this.emit(\"resize\", {\n size: size,\n delta: delta\n });\n if (this._autoUpdate) this.update();\n },\n _setElementSize: function(width, height) {\n var element = this._element;\n if (element) {\n if (element.width !== width) element.width = width;\n if (element.height !== height) element.height = height;\n }\n },\n getBounds: function() {\n if (!this._bounds) this._bounds = this._matrix.inverted()._transformBounds(new Rectangle(new Point(), this._viewSize));\n return this._bounds;\n },\n getSize: function() {\n return this.getBounds().getSize();\n },\n isVisible: function() {\n return DomElement.isInView(this._element);\n },\n isInserted: function() {\n return DomElement.isInserted(this._element);\n },\n getPixelSize: function(size) {\n var element = this._element, pixels;\n if (element) {\n var parent = element.parentNode, temp = document.createElement(\"div\");\n temp.style.fontSize = size;\n parent.appendChild(temp);\n pixels = parseFloat(DomElement.getStyles(temp).fontSize);\n parent.removeChild(temp);\n } else pixels = parseFloat(pixels);\n return pixels;\n },\n getTextWidth: function(font, lines) {\n return 0;\n }\n }, Base.each([\n \"rotate\",\n \"scale\",\n \"shear\",\n \"skew\"\n ], function(key) {\n var rotate = key === \"rotate\";\n this[key] = function() {\n var args = arguments, value = (rotate ? Base : Point).read(args), center = Point.read(args, 0, {\n readNull: true\n });\n return this.transform(new Matrix()[key](value, center || this.getCenter(true)));\n };\n }, {\n _decompose: function() {\n return this._decomposed || (this._decomposed = this._matrix.decompose());\n },\n translate: function() {\n var mx = new Matrix();\n return this.transform(mx.translate.apply(mx, arguments));\n },\n getCenter: function() {\n return this.getBounds().getCenter();\n },\n setCenter: function() {\n var center = Point.read(arguments);\n this.translate(this.getCenter().subtract(center));\n },\n getZoom: function() {\n var scaling = this._decompose().scaling;\n return (scaling.x + scaling.y) / 2;\n },\n setZoom: function(zoom) {\n this.transform(new Matrix().scale(zoom / this.getZoom(), this.getCenter()));\n },\n getRotation: function() {\n return this._decompose().rotation;\n },\n setRotation: function(rotation) {\n var current = this.getRotation();\n if (current != null && rotation != null) this.rotate(rotation - current);\n },\n getScaling: function() {\n var scaling = this._decompose().scaling;\n return new LinkedPoint(scaling.x, scaling.y, this, \"setScaling\");\n },\n setScaling: function() {\n var current = this.getScaling(), scaling = Point.read(arguments, 0, {\n clone: true,\n readNull: true\n });\n if (current && scaling) this.scale(scaling.x / current.x, scaling.y / current.y);\n },\n getMatrix: function() {\n return this._matrix;\n },\n setMatrix: function() {\n var matrix = this._matrix;\n matrix.set.apply(matrix, arguments);\n },\n transform: function(matrix) {\n this._matrix.append(matrix);\n },\n scrollBy: function() {\n this.translate(Point.read(arguments).negate());\n }\n }), {\n projectToView: function() {\n return this._matrix._transformPoint(Point.read(arguments));\n },\n viewToProject: function() {\n return this._matrix._inverseTransform(Point.read(arguments));\n },\n getEventPoint: function(event) {\n return this.viewToProject(DomEvent.getOffset(event, this._element));\n }\n }, {\n statics: {\n _views: [],\n _viewsById: {},\n _id: 0,\n create: function(project, element) {\n if (document && typeof element === \"string\") element = document.getElementById(element);\n var ctor = window ? CanvasView : View;\n return new ctor(project, element);\n }\n }\n }, new function() {\n if (!window) return;\n var prevFocus, tempFocus, dragging = false, mouseDown = false;\n function getView(event) {\n var target = DomEvent.getTarget(event);\n return target.getAttribute && View._viewsById[target.getAttribute(\"id\")];\n }\n function updateFocus() {\n var view = View._focused;\n if (!view || !view.isVisible()) {\n for(var i = 0, l = View._views.length; i < l; i++)if ((view = View._views[i]).isVisible()) {\n View._focused = tempFocus = view;\n break;\n }\n }\n }\n function handleMouseMove(view, event, point) {\n view._handleMouseEvent(\"mousemove\", event, point);\n }\n var navigator = window.navigator, mousedown, mousemove, mouseup;\n if (navigator.pointerEnabled || navigator.msPointerEnabled) {\n mousedown = \"pointerdown MSPointerDown\";\n mousemove = \"pointermove MSPointerMove\";\n mouseup = \"pointerup pointercancel MSPointerUp MSPointerCancel\";\n } else {\n mousedown = \"touchstart\";\n mousemove = \"touchmove\";\n mouseup = \"touchend touchcancel\";\n if (!(\"ontouchstart\" in window && navigator.userAgent.match(/mobile|tablet|ip(ad|hone|od)|android|silk/i))) {\n mousedown += \" mousedown\";\n mousemove += \" mousemove\";\n mouseup += \" mouseup\";\n }\n }\n var viewEvents = {}, docEvents = {\n mouseout: function(event) {\n var view = View._focused, target = DomEvent.getRelatedTarget(event);\n if (view && (!target || target.nodeName === \"HTML\")) {\n var offset = DomEvent.getOffset(event, view._element), x = offset.x, abs = Math.abs, ax = abs(x), max = 33554432, diff = ax - max;\n offset.x = abs(diff) < ax ? diff * (x < 0 ? -1 : 1) : x;\n handleMouseMove(view, event, view.viewToProject(offset));\n }\n },\n scroll: updateFocus\n };\n viewEvents[mousedown] = function(event) {\n var view = View._focused = getView(event);\n if (!dragging) {\n dragging = true;\n view._handleMouseEvent(\"mousedown\", event);\n }\n };\n docEvents[mousemove] = function(event) {\n var view = View._focused;\n if (!mouseDown) {\n var target = getView(event);\n if (target) {\n if (view !== target) {\n if (view) handleMouseMove(view, event);\n if (!prevFocus) prevFocus = view;\n view = View._focused = tempFocus = target;\n }\n } else if (tempFocus && tempFocus === view) {\n if (prevFocus && !prevFocus.isInserted()) prevFocus = null;\n view = View._focused = prevFocus;\n prevFocus = null;\n updateFocus();\n }\n }\n if (view) handleMouseMove(view, event);\n };\n docEvents[mousedown] = function() {\n mouseDown = true;\n };\n docEvents[mouseup] = function(event) {\n var view = View._focused;\n if (view && dragging) view._handleMouseEvent(\"mouseup\", event);\n mouseDown = dragging = false;\n };\n DomEvent.add(document, docEvents);\n DomEvent.add(window, {\n load: updateFocus\n });\n var called = false, prevented = false, fallbacks = {\n doubleclick: \"click\",\n mousedrag: \"mousemove\"\n }, wasInView = false, overView, downPoint, lastPoint, downItem, overItem, dragItem, clickItem, clickTime, dblClick;\n function emitMouseEvent(obj, target, type, event, point, prevPoint, stopItem) {\n var stopped = false, mouseEvent;\n function emit(obj, type) {\n if (obj.responds(type)) {\n if (!mouseEvent) mouseEvent = new MouseEvent(type, event, point, target || obj, prevPoint ? point.subtract(prevPoint) : null);\n if (obj.emit(type, mouseEvent)) {\n called = true;\n if (mouseEvent.prevented) prevented = true;\n if (mouseEvent.stopped) return stopped = true;\n }\n } else {\n var fallback = fallbacks[type];\n if (fallback) return emit(obj, fallback);\n }\n }\n while(obj && obj !== stopItem){\n if (emit(obj, type)) break;\n obj = obj._parent;\n }\n return stopped;\n }\n function emitMouseEvents(view, hitItem, type, event, point, prevPoint) {\n view._project.removeOn(type);\n prevented = called = false;\n return dragItem && emitMouseEvent(dragItem, null, type, event, point, prevPoint) || hitItem && hitItem !== dragItem && !hitItem.isDescendant(dragItem) && emitMouseEvent(hitItem, null, type === \"mousedrag\" ? \"mousemove\" : type, event, point, prevPoint, dragItem) || emitMouseEvent(view, dragItem || hitItem || view, type, event, point, prevPoint);\n }\n var itemEventsMap = {\n mousedown: {\n mousedown: 1,\n mousedrag: 1,\n click: 1,\n doubleclick: 1\n },\n mouseup: {\n mouseup: 1,\n mousedrag: 1,\n click: 1,\n doubleclick: 1\n },\n mousemove: {\n mousedrag: 1,\n mousemove: 1,\n mouseenter: 1,\n mouseleave: 1\n }\n };\n return {\n _viewEvents: viewEvents,\n _handleMouseEvent: function(type, event, point) {\n var itemEvents = this._itemEvents, hitItems = itemEvents.native[type], nativeMove = type === \"mousemove\", tool = this._scope.tool, view = this;\n function responds(type) {\n return itemEvents.virtual[type] || view.responds(type) || tool && tool.responds(type);\n }\n if (nativeMove && dragging && responds(\"mousedrag\")) type = \"mousedrag\";\n if (!point) point = this.getEventPoint(event);\n var inView = this.getBounds().contains(point), hit = hitItems && inView && view._project.hitTest(point, {\n tolerance: 0,\n fill: true,\n stroke: true\n }), hitItem = hit && hit.item || null, handle = false, mouse = {};\n mouse[type.substr(5)] = true;\n if (hitItems && hitItem !== overItem) {\n if (overItem) emitMouseEvent(overItem, null, \"mouseleave\", event, point);\n if (hitItem) emitMouseEvent(hitItem, null, \"mouseenter\", event, point);\n overItem = hitItem;\n }\n if (wasInView ^ inView) {\n emitMouseEvent(this, null, inView ? \"mouseenter\" : \"mouseleave\", event, point);\n overView = inView ? this : null;\n handle = true;\n }\n if ((inView || mouse.drag) && !point.equals(lastPoint)) {\n emitMouseEvents(this, hitItem, nativeMove ? type : \"mousemove\", event, point, lastPoint);\n handle = true;\n }\n wasInView = inView;\n if (mouse.down && inView || mouse.up && downPoint) {\n emitMouseEvents(this, hitItem, type, event, point, downPoint);\n if (mouse.down) {\n dblClick = hitItem === clickItem && Date.now() - clickTime < 300;\n downItem = clickItem = hitItem;\n if (!prevented && hitItem) {\n var item = hitItem;\n while(item && !item.responds(\"mousedrag\"))item = item._parent;\n if (item) dragItem = hitItem;\n }\n downPoint = point;\n } else if (mouse.up) {\n if (!prevented && hitItem === downItem) {\n clickTime = Date.now();\n emitMouseEvents(this, hitItem, dblClick ? \"doubleclick\" : \"click\", event, point, downPoint);\n dblClick = false;\n }\n downItem = dragItem = null;\n }\n wasInView = false;\n handle = true;\n }\n lastPoint = point;\n if (handle && tool) called = tool._handleMouseEvent(type, event, point, mouse) || called;\n if (event.cancelable !== false && (called && !mouse.move || mouse.down && responds(\"mouseup\"))) event.preventDefault();\n },\n _handleKeyEvent: function(type, event, key, character) {\n var scope = this._scope, tool = scope.tool, keyEvent;\n function emit(obj) {\n if (obj.responds(type)) {\n paper = scope;\n obj.emit(type, keyEvent = keyEvent || new KeyEvent(type, event, key, character));\n }\n }\n if (this.isVisible()) {\n emit(this);\n if (tool && tool.responds(type)) emit(tool);\n }\n },\n _countItemEvent: function(type, sign) {\n var itemEvents = this._itemEvents, native = itemEvents.native, virtual = itemEvents.virtual;\n for(var key in itemEventsMap)native[key] = (native[key] || 0) + (itemEventsMap[key][type] || 0) * sign;\n virtual[type] = (virtual[type] || 0) + sign;\n },\n statics: {\n updateFocus: updateFocus,\n _resetState: function() {\n dragging = mouseDown = called = wasInView = false;\n prevFocus = tempFocus = overView = downPoint = lastPoint = downItem = overItem = dragItem = clickItem = clickTime = dblClick = null;\n }\n }\n };\n });\n var CanvasView = View.extend({\n _class: \"CanvasView\",\n initialize: function CanvasView(project, canvas) {\n if (!(canvas instanceof window.HTMLCanvasElement)) {\n var size = Size.read(arguments, 1);\n if (size.isZero()) throw new Error(\"Cannot create CanvasView with the provided argument: \" + Base.slice(arguments, 1));\n canvas = CanvasProvider.getCanvas(size);\n }\n var ctx = this._context = canvas.getContext(\"2d\");\n ctx.save();\n this._pixelRatio = 1;\n if (!/^off|false$/.test(PaperScope.getAttribute(canvas, \"hidpi\"))) {\n var deviceRatio = window.devicePixelRatio || 1, backingStoreRatio = DomElement.getPrefixed(ctx, \"backingStorePixelRatio\") || 1;\n this._pixelRatio = deviceRatio / backingStoreRatio;\n }\n View.call(this, project, canvas);\n this._needsUpdate = true;\n },\n remove: function remove() {\n this._context.restore();\n return remove.base.call(this);\n },\n _setElementSize: function _setElementSize(width, height) {\n var pixelRatio = this._pixelRatio;\n _setElementSize.base.call(this, width * pixelRatio, height * pixelRatio);\n if (pixelRatio !== 1) {\n var element = this._element, ctx = this._context;\n if (!PaperScope.hasAttribute(element, \"resize\")) {\n var style = element.style;\n style.width = width + \"px\";\n style.height = height + \"px\";\n }\n ctx.restore();\n ctx.save();\n ctx.scale(pixelRatio, pixelRatio);\n }\n },\n getContext: function() {\n return this._context;\n },\n getPixelSize: function getPixelSize(size) {\n var agent = paper.agent, pixels;\n if (agent && agent.firefox) pixels = getPixelSize.base.call(this, size);\n else {\n var ctx = this._context, prevFont = ctx.font;\n ctx.font = size + \" serif\";\n pixels = parseFloat(ctx.font);\n ctx.font = prevFont;\n }\n return pixels;\n },\n getTextWidth: function(font, lines) {\n var ctx = this._context, prevFont = ctx.font, width = 0;\n ctx.font = font;\n for(var i = 0, l = lines.length; i < l; i++)width = Math.max(width, ctx.measureText(lines[i]).width);\n ctx.font = prevFont;\n return width;\n },\n update: function() {\n if (!this._needsUpdate) return false;\n var project = this._project, ctx = this._context, size = this._viewSize;\n ctx.clearRect(0, 0, size.width + 1, size.height + 1);\n if (project) project.draw(ctx, this._matrix, this._pixelRatio);\n this._needsUpdate = false;\n return true;\n }\n });\n var Event = Base.extend({\n _class: \"Event\",\n initialize: function Event(event) {\n this.event = event;\n this.type = event && event.type;\n },\n prevented: false,\n stopped: false,\n preventDefault: function() {\n this.prevented = true;\n this.event.preventDefault();\n },\n stopPropagation: function() {\n this.stopped = true;\n this.event.stopPropagation();\n },\n stop: function() {\n this.stopPropagation();\n this.preventDefault();\n },\n getTimeStamp: function() {\n return this.event.timeStamp;\n },\n getModifiers: function() {\n return Key.modifiers;\n }\n });\n var KeyEvent = Event.extend({\n _class: \"KeyEvent\",\n initialize: function KeyEvent(type, event, key, character) {\n this.type = type;\n this.event = event;\n this.key = key;\n this.character = character;\n },\n toString: function() {\n return \"{ type: '\" + this.type + \"', key: '\" + this.key + \"', character: '\" + this.character + \"', modifiers: \" + this.getModifiers() + \" }\";\n }\n });\n var Key = new function() {\n var keyLookup = {\n \"\t\": \"tab\",\n \" \": \"space\",\n \"\\b\": \"backspace\",\n \"\\x7f\": \"delete\",\n \"Spacebar\": \"space\",\n \"Del\": \"delete\",\n \"Win\": \"meta\",\n \"Esc\": \"escape\"\n }, charLookup = {\n \"tab\": \"\t\",\n \"space\": \" \",\n \"enter\": \"\\r\"\n }, keyMap = {}, charMap = {}, metaFixMap, downKey, modifiers = new Base({\n shift: false,\n control: false,\n alt: false,\n meta: false,\n capsLock: false,\n space: false\n }).inject({\n option: {\n get: function() {\n return this.alt;\n }\n },\n command: {\n get: function() {\n var agent = paper && paper.agent;\n return agent && agent.mac ? this.meta : this.control;\n }\n }\n });\n function getKey(event) {\n var key = event.key || event.keyIdentifier;\n key = /^U\\+/.test(key) ? String.fromCharCode(parseInt(key.substr(2), 16)) : /^Arrow[A-Z]/.test(key) ? key.substr(5) : key === \"Unidentified\" || key === undefined ? String.fromCharCode(event.keyCode) : key;\n return keyLookup[key] || (key.length > 1 ? Base.hyphenate(key) : key.toLowerCase());\n }\n function handleKey(down, key, character, event) {\n var type = down ? \"keydown\" : \"keyup\", view = View._focused, name;\n keyMap[key] = down;\n if (down) charMap[key] = character;\n else delete charMap[key];\n if (key.length > 1 && (name = Base.camelize(key)) in modifiers) {\n modifiers[name] = down;\n var agent = paper && paper.agent;\n if (name === \"meta\" && agent && agent.mac) {\n if (down) metaFixMap = {};\n else {\n for(var k in metaFixMap)if (k in charMap) handleKey(false, k, metaFixMap[k], event);\n metaFixMap = null;\n }\n }\n } else if (down && metaFixMap) metaFixMap[key] = character;\n if (view) view._handleKeyEvent(down ? \"keydown\" : \"keyup\", event, key, character);\n }\n DomEvent.add(document, {\n keydown: function(event) {\n var key = getKey(event), agent = paper && paper.agent;\n if (key.length > 1 || agent && agent.chrome && (event.altKey || agent.mac && event.metaKey || !agent.mac && event.ctrlKey)) handleKey(true, key, charLookup[key] || (key.length > 1 ? \"\" : key), event);\n else downKey = key;\n },\n keypress: function(event) {\n if (downKey) {\n var key = getKey(event), code = event.charCode, character = code >= 32 ? String.fromCharCode(code) : key.length > 1 ? \"\" : key;\n if (key !== downKey) key = character.toLowerCase();\n handleKey(true, key, character, event);\n downKey = null;\n }\n },\n keyup: function(event) {\n var key = getKey(event);\n if (key in charMap) handleKey(false, key, charMap[key], event);\n }\n });\n DomEvent.add(window, {\n blur: function(event) {\n for(var key in charMap)handleKey(false, key, charMap[key], event);\n }\n });\n return {\n modifiers: modifiers,\n isDown: function(key) {\n return !!keyMap[key];\n }\n };\n };\n var MouseEvent = Event.extend({\n _class: \"MouseEvent\",\n initialize: function MouseEvent(type, event, point, target, delta) {\n this.type = type;\n this.event = event;\n this.point = point;\n this.target = target;\n this.delta = delta;\n },\n toString: function() {\n return \"{ type: '\" + this.type + \"', point: \" + this.point + \", target: \" + this.target + (this.delta ? \", delta: \" + this.delta : \"\") + \", modifiers: \" + this.getModifiers() + \" }\";\n }\n });\n var ToolEvent = Event.extend({\n _class: \"ToolEvent\",\n _item: null,\n initialize: function ToolEvent(tool, type, event) {\n this.tool = tool;\n this.type = type;\n this.event = event;\n },\n _choosePoint: function(point, toolPoint) {\n return point ? point : toolPoint ? toolPoint.clone() : null;\n },\n getPoint: function() {\n return this._choosePoint(this._point, this.tool._point);\n },\n setPoint: function(point) {\n this._point = point;\n },\n getLastPoint: function() {\n return this._choosePoint(this._lastPoint, this.tool._lastPoint);\n },\n setLastPoint: function(lastPoint) {\n this._lastPoint = lastPoint;\n },\n getDownPoint: function() {\n return this._choosePoint(this._downPoint, this.tool._downPoint);\n },\n setDownPoint: function(downPoint) {\n this._downPoint = downPoint;\n },\n getMiddlePoint: function() {\n if (!this._middlePoint && this.tool._lastPoint) return this.tool._point.add(this.tool._lastPoint).divide(2);\n return this._middlePoint;\n },\n setMiddlePoint: function(middlePoint) {\n this._middlePoint = middlePoint;\n },\n getDelta: function() {\n return !this._delta && this.tool._lastPoint ? this.tool._point.subtract(this.tool._lastPoint) : this._delta;\n },\n setDelta: function(delta) {\n this._delta = delta;\n },\n getCount: function() {\n return this.tool[/^mouse(down|up)$/.test(this.type) ? \"_downCount\" : \"_moveCount\"];\n },\n setCount: function(count) {\n this.tool[/^mouse(down|up)$/.test(this.type) ? \"downCount\" : \"count\"] = count;\n },\n getItem: function() {\n if (!this._item) {\n var result = this.tool._scope.project.hitTest(this.getPoint());\n if (result) {\n var item = result.item, parent = item._parent;\n while(/^(Group|CompoundPath)$/.test(parent._class)){\n item = parent;\n parent = parent._parent;\n }\n this._item = item;\n }\n }\n return this._item;\n },\n setItem: function(item) {\n this._item = item;\n },\n toString: function() {\n return \"{ type: \" + this.type + \", point: \" + this.getPoint() + \", count: \" + this.getCount() + \", modifiers: \" + this.getModifiers() + \" }\";\n }\n });\n var Tool = PaperScopeItem.extend({\n _class: \"Tool\",\n _list: \"tools\",\n _reference: \"tool\",\n _events: [\n \"onMouseDown\",\n \"onMouseUp\",\n \"onMouseDrag\",\n \"onMouseMove\",\n \"onActivate\",\n \"onDeactivate\",\n \"onEditOptions\",\n \"onKeyDown\",\n \"onKeyUp\"\n ],\n initialize: function Tool(props) {\n PaperScopeItem.call(this);\n this._moveCount = -1;\n this._downCount = -1;\n this.set(props);\n },\n getMinDistance: function() {\n return this._minDistance;\n },\n setMinDistance: function(minDistance) {\n this._minDistance = minDistance;\n if (minDistance != null && this._maxDistance != null && minDistance > this._maxDistance) this._maxDistance = minDistance;\n },\n getMaxDistance: function() {\n return this._maxDistance;\n },\n setMaxDistance: function(maxDistance) {\n this._maxDistance = maxDistance;\n if (this._minDistance != null && maxDistance != null && maxDistance < this._minDistance) this._minDistance = maxDistance;\n },\n getFixedDistance: function() {\n return this._minDistance == this._maxDistance ? this._minDistance : null;\n },\n setFixedDistance: function(distance) {\n this._minDistance = this._maxDistance = distance;\n },\n _handleMouseEvent: function(type, event, point, mouse) {\n paper = this._scope;\n if (mouse.drag && !this.responds(type)) type = \"mousemove\";\n var move = mouse.move || mouse.drag, responds = this.responds(type), called = false, tool = this;\n function update(minDistance, maxDistance) {\n var pt = point, toolPoint = move ? tool._point : tool._downPoint || pt;\n if (move) {\n if (tool._moveCount >= 0 && pt.equals(toolPoint)) return false;\n if (toolPoint && (minDistance != null || maxDistance != null)) {\n var vector = pt.subtract(toolPoint), distance = vector.getLength();\n if (distance < (minDistance || 0)) return false;\n if (maxDistance) pt = toolPoint.add(vector.normalize(Math.min(distance, maxDistance)));\n }\n tool._moveCount++;\n }\n tool._point = pt;\n tool._lastPoint = toolPoint || pt;\n if (mouse.down) {\n tool._moveCount = -1;\n tool._downPoint = pt;\n tool._downCount++;\n }\n return true;\n }\n function emit() {\n if (responds) called = tool.emit(type, new ToolEvent(tool, type, event)) || called;\n }\n if (mouse.down) {\n update();\n emit();\n } else if (mouse.up) {\n update(null, this._maxDistance);\n emit();\n } else if (responds) while(update(this._minDistance, this._maxDistance))emit();\n return called;\n }\n });\n var Tween = Base.extend(Emitter, {\n _class: \"Tween\",\n statics: {\n easings: new Base({\n linear: function(t) {\n return t;\n },\n easeInQuad: function(t) {\n return t * t;\n },\n easeOutQuad: function(t) {\n return t * (2 - t);\n },\n easeInOutQuad: function(t) {\n return t < 0.5 ? 2 * t * t : -1 + 2 * (2 - t) * t;\n },\n easeInCubic: function(t) {\n return t * t * t;\n },\n easeOutCubic: function(t) {\n return --t * t * t + 1;\n },\n easeInOutCubic: function(t) {\n return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;\n },\n easeInQuart: function(t) {\n return t * t * t * t;\n },\n easeOutQuart: function(t) {\n return 1 - --t * t * t * t;\n },\n easeInOutQuart: function(t) {\n return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;\n },\n easeInQuint: function(t) {\n return t * t * t * t * t;\n },\n easeOutQuint: function(t) {\n return 1 + --t * t * t * t * t;\n },\n easeInOutQuint: function(t) {\n return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;\n }\n })\n },\n initialize: function Tween(object, from, to, duration, easing, start) {\n this.object = object;\n var type = typeof easing;\n var isFunction = type === \"function\";\n this.type = isFunction ? type : type === \"string\" ? easing : \"linear\";\n this.easing = isFunction ? easing : Tween.easings[this.type];\n this.duration = duration;\n this.running = false;\n this._then = null;\n this._startTime = null;\n var state = from || to;\n this._keys = state ? Object.keys(state) : [];\n this._parsedKeys = this._parseKeys(this._keys);\n this._from = state && this._getState(from);\n this._to = state && this._getState(to);\n if (start !== false) this.start();\n },\n then: function(then) {\n this._then = then;\n return this;\n },\n start: function() {\n this._startTime = null;\n this.running = true;\n return this;\n },\n stop: function() {\n this.running = false;\n return this;\n },\n update: function(progress) {\n if (this.running) {\n if (progress >= 1) {\n progress = 1;\n this.running = false;\n }\n var factor = this.easing(progress), keys = this._keys, getValue = function(value) {\n return typeof value === \"function\" ? value(factor, progress) : value;\n };\n for(var i = 0, l = keys && keys.length; i < l; i++){\n var key = keys[i], from = getValue(this._from[key]), to = getValue(this._to[key]), value = from && to && from.__add && to.__add ? to.__subtract(from).__multiply(factor).__add(from) : (to - from) * factor + from;\n this._setProperty(this._parsedKeys[key], value);\n }\n if (this.responds(\"update\")) this.emit(\"update\", new Base({\n progress: progress,\n factor: factor\n }));\n if (!this.running && this._then) this._then(this.object);\n }\n return this;\n },\n _events: {\n onUpdate: {}\n },\n _handleFrame: function(time) {\n var startTime = this._startTime, progress = startTime ? (time - startTime) / this.duration : 0;\n if (!startTime) this._startTime = time;\n this.update(progress);\n },\n _getState: function(state) {\n var keys = this._keys, result = {};\n for(var i = 0, l = keys.length; i < l; i++){\n var key = keys[i], path = this._parsedKeys[key], current = this._getProperty(path), value;\n if (state) {\n var resolved = this._resolveValue(current, state[key]);\n this._setProperty(path, resolved);\n value = this._getProperty(path);\n value = value && value.clone ? value.clone() : value;\n this._setProperty(path, current);\n } else value = current && current.clone ? current.clone() : current;\n result[key] = value;\n }\n return result;\n },\n _resolveValue: function(current, value) {\n if (value) {\n if (Array.isArray(value) && value.length === 2) {\n var operator = value[0];\n return operator && operator.match && operator.match(/^[+\\-\\*\\/]=/) ? this._calculate(current, operator[0], value[1]) : value;\n } else if (typeof value === \"string\") {\n var match = value.match(/^[+\\-*/]=(.*)/);\n if (match) {\n var parsed = JSON.parse(match[1].replace(/(['\"])?([a-zA-Z0-9_]+)(['\"])?:/g, '\"$2\": '));\n return this._calculate(current, value[0], parsed);\n }\n }\n }\n return value;\n },\n _calculate: function(left, operator, right) {\n return paper.PaperScript.calculateBinary(left, operator, right);\n },\n _parseKeys: function(keys) {\n var parsed = {};\n for(var i = 0, l = keys.length; i < l; i++){\n var key = keys[i], path = key.replace(/\\.([^.]*)/g, \"/$1\").replace(/\\[['\"]?([^'\"\\]]*)['\"]?\\]/g, \"/$1\");\n parsed[key] = path.split(\"/\");\n }\n return parsed;\n },\n _getProperty: function(path, offset) {\n var obj = this.object;\n for(var i = 0, l = path.length - (offset || 0); i < l && obj; i++)obj = obj[path[i]];\n return obj;\n },\n _setProperty: function(path, value) {\n var dest = this._getProperty(path, 1);\n if (dest) dest[path[path.length - 1]] = value;\n }\n });\n var Http = {\n request: function(options) {\n var xhr = new self1.XMLHttpRequest();\n xhr.open((options.method || \"get\").toUpperCase(), options.url, Base.pick(options.async, true));\n if (options.mimeType) xhr.overrideMimeType(options.mimeType);\n xhr.onload = function() {\n var status = xhr.status;\n if (status === 0 || status === 200) {\n if (options.onLoad) options.onLoad.call(xhr, xhr.responseText);\n } else xhr.onerror();\n };\n xhr.onerror = function() {\n var status = xhr.status, message = 'Could not load \"' + options.url + '\" (Status: ' + status + \")\";\n if (options.onError) options.onError(message, status);\n else throw new Error(message);\n };\n return xhr.send(null);\n }\n };\n var CanvasProvider = Base.exports.CanvasProvider = {\n canvases: [],\n getCanvas: function(width, height, options) {\n if (!window) return null;\n var canvas, clear = true;\n if (typeof width === \"object\") {\n height = width.height;\n width = width.width;\n }\n if (this.canvases.length) canvas = this.canvases.pop();\n else {\n canvas = document.createElement(\"canvas\");\n clear = false;\n }\n var ctx = canvas.getContext(\"2d\", options || {});\n if (!ctx) throw new Error(\"Canvas \" + canvas + \" is unable to provide a 2D context.\");\n if (canvas.width === width && canvas.height === height) {\n if (clear) ctx.clearRect(0, 0, width + 1, height + 1);\n } else {\n canvas.width = width;\n canvas.height = height;\n }\n ctx.save();\n return canvas;\n },\n getContext: function(width, height, options) {\n var canvas = this.getCanvas(width, height, options);\n return canvas ? canvas.getContext(\"2d\", options || {}) : null;\n },\n release: function(obj) {\n var canvas = obj && obj.canvas ? obj.canvas : obj;\n if (canvas && canvas.getContext) {\n canvas.getContext(\"2d\").restore();\n this.canvases.push(canvas);\n }\n }\n };\n var BlendMode = new function() {\n var min = Math.min, max = Math.max, abs = Math.abs, sr, sg, sb, sa, br, bg, bb, ba, dr, dg, db;\n function getLum(r, g, b) {\n return 0.2989 * r + 0.587 * g + 0.114 * b;\n }\n function setLum(r, g, b, l) {\n var d = l - getLum(r, g, b);\n dr = r + d;\n dg = g + d;\n db = b + d;\n var l = getLum(dr, dg, db), mn = min(dr, dg, db), mx = max(dr, dg, db);\n if (mn < 0) {\n var lmn = l - mn;\n dr = l + (dr - l) * l / lmn;\n dg = l + (dg - l) * l / lmn;\n db = l + (db - l) * l / lmn;\n }\n if (mx > 255) {\n var ln = 255 - l, mxl = mx - l;\n dr = l + (dr - l) * ln / mxl;\n dg = l + (dg - l) * ln / mxl;\n db = l + (db - l) * ln / mxl;\n }\n }\n function getSat(r, g, b) {\n return max(r, g, b) - min(r, g, b);\n }\n function setSat(r, g, b, s) {\n var col = [\n r,\n g,\n b\n ], mx = max(r, g, b), mn = min(r, g, b), md;\n mn = mn === r ? 0 : mn === g ? 1 : 2;\n mx = mx === r ? 0 : mx === g ? 1 : 2;\n md = min(mn, mx) === 0 ? max(mn, mx) === 1 ? 2 : 1 : 0;\n if (col[mx] > col[mn]) {\n col[md] = (col[md] - col[mn]) * s / (col[mx] - col[mn]);\n col[mx] = s;\n } else col[md] = col[mx] = 0;\n col[mn] = 0;\n dr = col[0];\n dg = col[1];\n db = col[2];\n }\n var modes = {\n multiply: function() {\n dr = br * sr / 255;\n dg = bg * sg / 255;\n db = bb * sb / 255;\n },\n screen: function() {\n dr = br + sr - br * sr / 255;\n dg = bg + sg - bg * sg / 255;\n db = bb + sb - bb * sb / 255;\n },\n overlay: function() {\n dr = br < 128 ? 2 * br * sr / 255 : 255 - 2 * (255 - br) * (255 - sr) / 255;\n dg = bg < 128 ? 2 * bg * sg / 255 : 255 - 2 * (255 - bg) * (255 - sg) / 255;\n db = bb < 128 ? 2 * bb * sb / 255 : 255 - 2 * (255 - bb) * (255 - sb) / 255;\n },\n \"soft-light\": function() {\n var t = sr * br / 255;\n dr = t + br * (255 - (255 - br) * (255 - sr) / 255 - t) / 255;\n t = sg * bg / 255;\n dg = t + bg * (255 - (255 - bg) * (255 - sg) / 255 - t) / 255;\n t = sb * bb / 255;\n db = t + bb * (255 - (255 - bb) * (255 - sb) / 255 - t) / 255;\n },\n \"hard-light\": function() {\n dr = sr < 128 ? 2 * sr * br / 255 : 255 - 2 * (255 - sr) * (255 - br) / 255;\n dg = sg < 128 ? 2 * sg * bg / 255 : 255 - 2 * (255 - sg) * (255 - bg) / 255;\n db = sb < 128 ? 2 * sb * bb / 255 : 255 - 2 * (255 - sb) * (255 - bb) / 255;\n },\n \"color-dodge\": function() {\n dr = br === 0 ? 0 : sr === 255 ? 255 : min(255, 255 * br / (255 - sr));\n dg = bg === 0 ? 0 : sg === 255 ? 255 : min(255, 255 * bg / (255 - sg));\n db = bb === 0 ? 0 : sb === 255 ? 255 : min(255, 255 * bb / (255 - sb));\n },\n \"color-burn\": function() {\n dr = br === 255 ? 255 : sr === 0 ? 0 : max(0, 255 - (255 - br) * 255 / sr);\n dg = bg === 255 ? 255 : sg === 0 ? 0 : max(0, 255 - (255 - bg) * 255 / sg);\n db = bb === 255 ? 255 : sb === 0 ? 0 : max(0, 255 - (255 - bb) * 255 / sb);\n },\n darken: function() {\n dr = br < sr ? br : sr;\n dg = bg < sg ? bg : sg;\n db = bb < sb ? bb : sb;\n },\n lighten: function() {\n dr = br > sr ? br : sr;\n dg = bg > sg ? bg : sg;\n db = bb > sb ? bb : sb;\n },\n difference: function() {\n dr = br - sr;\n if (dr < 0) dr = -dr;\n dg = bg - sg;\n if (dg < 0) dg = -dg;\n db = bb - sb;\n if (db < 0) db = -db;\n },\n exclusion: function() {\n dr = br + sr * (255 - br - br) / 255;\n dg = bg + sg * (255 - bg - bg) / 255;\n db = bb + sb * (255 - bb - bb) / 255;\n },\n hue: function() {\n setSat(sr, sg, sb, getSat(br, bg, bb));\n setLum(dr, dg, db, getLum(br, bg, bb));\n },\n saturation: function() {\n setSat(br, bg, bb, getSat(sr, sg, sb));\n setLum(dr, dg, db, getLum(br, bg, bb));\n },\n luminosity: function() {\n setLum(br, bg, bb, getLum(sr, sg, sb));\n },\n color: function() {\n setLum(sr, sg, sb, getLum(br, bg, bb));\n },\n add: function() {\n dr = min(br + sr, 255);\n dg = min(bg + sg, 255);\n db = min(bb + sb, 255);\n },\n subtract: function() {\n dr = max(br - sr, 0);\n dg = max(bg - sg, 0);\n db = max(bb - sb, 0);\n },\n average: function() {\n dr = (br + sr) / 2;\n dg = (bg + sg) / 2;\n db = (bb + sb) / 2;\n },\n negation: function() {\n dr = 255 - abs(255 - sr - br);\n dg = 255 - abs(255 - sg - bg);\n db = 255 - abs(255 - sb - bb);\n }\n };\n var nativeModes = this.nativeModes = Base.each([\n \"source-over\",\n \"source-in\",\n \"source-out\",\n \"source-atop\",\n \"destination-over\",\n \"destination-in\",\n \"destination-out\",\n \"destination-atop\",\n \"lighter\",\n \"darker\",\n \"copy\",\n \"xor\"\n ], function(mode) {\n this[mode] = true;\n }, {});\n var ctx = CanvasProvider.getContext(1, 1, {\n willReadFrequently: true\n });\n if (ctx) {\n Base.each(modes, function(func, mode) {\n var darken = mode === \"darken\", ok = false;\n ctx.save();\n try {\n ctx.fillStyle = darken ? \"#300\" : \"#a00\";\n ctx.fillRect(0, 0, 1, 1);\n ctx.globalCompositeOperation = mode;\n if (ctx.globalCompositeOperation === mode) {\n ctx.fillStyle = darken ? \"#a00\" : \"#300\";\n ctx.fillRect(0, 0, 1, 1);\n ok = ctx.getImageData(0, 0, 1, 1).data[0] !== darken ? 170 : 51;\n }\n } catch (e) {}\n ctx.restore();\n nativeModes[mode] = ok;\n });\n CanvasProvider.release(ctx);\n }\n this.process = function(mode, srcContext, dstContext, alpha, offset) {\n var srcCanvas = srcContext.canvas, normal = mode === \"normal\";\n if (normal || nativeModes[mode]) {\n dstContext.save();\n dstContext.setTransform(1, 0, 0, 1, 0, 0);\n dstContext.globalAlpha = alpha;\n if (!normal) dstContext.globalCompositeOperation = mode;\n dstContext.drawImage(srcCanvas, offset.x, offset.y);\n dstContext.restore();\n } else {\n var process = modes[mode];\n if (!process) return;\n var dstData = dstContext.getImageData(offset.x, offset.y, srcCanvas.width, srcCanvas.height), dst = dstData.data, src = srcContext.getImageData(0, 0, srcCanvas.width, srcCanvas.height).data;\n for(var i = 0, l = dst.length; i < l; i += 4){\n sr = src[i];\n br = dst[i];\n sg = src[i + 1];\n bg = dst[i + 1];\n sb = src[i + 2];\n bb = dst[i + 2];\n sa = src[i + 3];\n ba = dst[i + 3];\n process();\n var a1 = sa * alpha / 255, a2 = 1 - a1;\n dst[i] = a1 * dr + a2 * br;\n dst[i + 1] = a1 * dg + a2 * bg;\n dst[i + 2] = a1 * db + a2 * bb;\n dst[i + 3] = sa * alpha + a2 * ba;\n }\n dstContext.putImageData(dstData, offset.x, offset.y);\n }\n };\n };\n var SvgElement = new function() {\n var svg = \"http://www.w3.org/2000/svg\", xmlns = \"http://www.w3.org/2000/xmlns\", xlink = \"http://www.w3.org/1999/xlink\", attributeNamespace = {\n href: xlink,\n xlink: xmlns,\n xmlns: xmlns + \"/\",\n \"xmlns:xlink\": xmlns + \"/\"\n };\n function create(tag, attributes, formatter) {\n return set(document.createElementNS(svg, tag), attributes, formatter);\n }\n function get(node, name) {\n var namespace = attributeNamespace[name], value = namespace ? node.getAttributeNS(namespace, name) : node.getAttribute(name);\n return value === \"null\" ? null : value;\n }\n function set(node, attributes, formatter) {\n for(var name in attributes){\n var value = attributes[name], namespace = attributeNamespace[name];\n if (typeof value === \"number\" && formatter) value = formatter.number(value);\n if (namespace) node.setAttributeNS(namespace, name, value);\n else node.setAttribute(name, value);\n }\n return node;\n }\n return {\n svg: svg,\n xmlns: xmlns,\n xlink: xlink,\n create: create,\n get: get,\n set: set\n };\n };\n var SvgStyles = Base.each({\n fillColor: [\n \"fill\",\n \"color\"\n ],\n fillRule: [\n \"fill-rule\",\n \"string\"\n ],\n strokeColor: [\n \"stroke\",\n \"color\"\n ],\n strokeWidth: [\n \"stroke-width\",\n \"number\"\n ],\n strokeCap: [\n \"stroke-linecap\",\n \"string\"\n ],\n strokeJoin: [\n \"stroke-linejoin\",\n \"string\"\n ],\n strokeScaling: [\n \"vector-effect\",\n \"lookup\",\n {\n true: \"none\",\n false: \"non-scaling-stroke\"\n },\n function(item, value) {\n return !value && (item instanceof PathItem || item instanceof Shape || item instanceof TextItem);\n }\n ],\n miterLimit: [\n \"stroke-miterlimit\",\n \"number\"\n ],\n dashArray: [\n \"stroke-dasharray\",\n \"array\"\n ],\n dashOffset: [\n \"stroke-dashoffset\",\n \"number\"\n ],\n fontFamily: [\n \"font-family\",\n \"string\"\n ],\n fontWeight: [\n \"font-weight\",\n \"string\"\n ],\n fontSize: [\n \"font-size\",\n \"number\"\n ],\n justification: [\n \"text-anchor\",\n \"lookup\",\n {\n left: \"start\",\n center: \"middle\",\n right: \"end\"\n }\n ],\n opacity: [\n \"opacity\",\n \"number\"\n ],\n blendMode: [\n \"mix-blend-mode\",\n \"style\"\n ]\n }, function(entry, key) {\n var part = Base.capitalize(key), lookup = entry[2];\n this[key] = {\n type: entry[1],\n property: key,\n attribute: entry[0],\n toSVG: lookup,\n fromSVG: lookup && Base.each(lookup, function(value, name) {\n this[value] = name;\n }, {}),\n exportFilter: entry[3],\n get: \"get\" + part,\n set: \"set\" + part\n };\n }, {});\n new function() {\n var formatter;\n function getTransform(matrix, coordinates, center) {\n var attrs = new Base(), trans = matrix.getTranslation();\n if (coordinates) {\n var point;\n if (matrix.isInvertible()) {\n matrix = matrix._shiftless();\n point = matrix._inverseTransform(trans);\n trans = null;\n } else point = new Point();\n attrs[center ? \"cx\" : \"x\"] = point.x;\n attrs[center ? \"cy\" : \"y\"] = point.y;\n }\n if (!matrix.isIdentity()) {\n var decomposed = matrix.decompose();\n if (decomposed) {\n var parts = [], angle = decomposed.rotation, scale = decomposed.scaling, skew = decomposed.skewing;\n if (trans && !trans.isZero()) parts.push(\"translate(\" + formatter.point(trans) + \")\");\n if (angle) parts.push(\"rotate(\" + formatter.number(angle) + \")\");\n if (!Numerical.isZero(scale.x - 1) || !Numerical.isZero(scale.y - 1)) parts.push(\"scale(\" + formatter.point(scale) + \")\");\n if (skew.x) parts.push(\"skewX(\" + formatter.number(skew.x) + \")\");\n if (skew.y) parts.push(\"skewY(\" + formatter.number(skew.y) + \")\");\n attrs.transform = parts.join(\" \");\n } else attrs.transform = \"matrix(\" + matrix.getValues().join(\",\") + \")\";\n }\n return attrs;\n }\n function exportGroup(item, options) {\n var attrs = getTransform(item._matrix), children = item._children;\n var node = SvgElement.create(\"g\", attrs, formatter);\n for(var i = 0, l = children.length; i < l; i++){\n var child = children[i];\n var childNode = exportSVG(child, options);\n if (childNode) {\n if (child.isClipMask()) {\n var clip = SvgElement.create(\"clipPath\");\n clip.appendChild(childNode);\n setDefinition(child, clip, \"clip\");\n SvgElement.set(node, {\n \"clip-path\": \"url(#\" + clip.id + \")\"\n });\n } else node.appendChild(childNode);\n }\n }\n return node;\n }\n function exportRaster(item, options) {\n var attrs = getTransform(item._matrix, true), size = item.getSize(), image = item.getImage();\n attrs.x -= size.width / 2;\n attrs.y -= size.height / 2;\n attrs.width = size.width;\n attrs.height = size.height;\n attrs.href = options.embedImages == false && image && image.src || item.toDataURL();\n return SvgElement.create(\"image\", attrs, formatter);\n }\n function exportPath(item, options) {\n var matchShapes = options.matchShapes;\n if (matchShapes) {\n var shape = item.toShape(false);\n if (shape) return exportShape(shape, options);\n }\n var segments = item._segments, length = segments.length, type, attrs = getTransform(item._matrix);\n if (matchShapes && length >= 2 && !item.hasHandles()) {\n if (length > 2) {\n type = item._closed ? \"polygon\" : \"polyline\";\n var parts = [];\n for(var i = 0; i < length; i++)parts.push(formatter.point(segments[i]._point));\n attrs.points = parts.join(\" \");\n } else {\n type = \"line\";\n var start = segments[0]._point, end = segments[1]._point;\n attrs.set({\n x1: start.x,\n y1: start.y,\n x2: end.x,\n y2: end.y\n });\n }\n } else {\n type = \"path\";\n attrs.d = item.getPathData(null, options.precision);\n }\n return SvgElement.create(type, attrs, formatter);\n }\n function exportShape(item) {\n var type = item._type, radius = item._radius, attrs = getTransform(item._matrix, true, type !== \"rectangle\");\n if (type === \"rectangle\") {\n type = \"rect\";\n var size = item._size, width = size.width, height = size.height;\n attrs.x -= width / 2;\n attrs.y -= height / 2;\n attrs.width = width;\n attrs.height = height;\n if (radius.isZero()) radius = null;\n }\n if (radius) {\n if (type === \"circle\") attrs.r = radius;\n else {\n attrs.rx = radius.width;\n attrs.ry = radius.height;\n }\n }\n return SvgElement.create(type, attrs, formatter);\n }\n function exportCompoundPath(item, options) {\n var attrs = getTransform(item._matrix);\n var data = item.getPathData(null, options.precision);\n if (data) attrs.d = data;\n return SvgElement.create(\"path\", attrs, formatter);\n }\n function exportSymbolItem(item, options) {\n var attrs = getTransform(item._matrix, true), definition = item._definition, node = getDefinition(definition, \"symbol\"), definitionItem = definition._item, bounds = definitionItem.getStrokeBounds();\n if (!node) {\n node = SvgElement.create(\"symbol\", {\n viewBox: formatter.rectangle(bounds)\n });\n node.appendChild(exportSVG(definitionItem, options));\n setDefinition(definition, node, \"symbol\");\n }\n attrs.href = \"#\" + node.id;\n attrs.x += bounds.x;\n attrs.y += bounds.y;\n attrs.width = bounds.width;\n attrs.height = bounds.height;\n attrs.overflow = \"visible\";\n return SvgElement.create(\"use\", attrs, formatter);\n }\n function exportGradient(color) {\n var gradientNode = getDefinition(color, \"color\");\n if (!gradientNode) {\n var gradient = color.getGradient(), radial = gradient._radial, origin = color.getOrigin(), destination = color.getDestination(), attrs;\n if (radial) {\n attrs = {\n cx: origin.x,\n cy: origin.y,\n r: origin.getDistance(destination)\n };\n var highlight = color.getHighlight();\n if (highlight) {\n attrs.fx = highlight.x;\n attrs.fy = highlight.y;\n }\n } else attrs = {\n x1: origin.x,\n y1: origin.y,\n x2: destination.x,\n y2: destination.y\n };\n attrs.gradientUnits = \"userSpaceOnUse\";\n gradientNode = SvgElement.create((radial ? \"radial\" : \"linear\") + \"Gradient\", attrs, formatter);\n var stops = gradient._stops;\n for(var i = 0, l = stops.length; i < l; i++){\n var stop = stops[i], stopColor = stop._color, alpha = stopColor.getAlpha(), offset = stop._offset;\n attrs = {\n offset: offset == null ? i / (l - 1) : offset\n };\n if (stopColor) attrs[\"stop-color\"] = stopColor.toCSS(true);\n if (alpha < 1) attrs[\"stop-opacity\"] = alpha;\n gradientNode.appendChild(SvgElement.create(\"stop\", attrs, formatter));\n }\n setDefinition(color, gradientNode, \"color\");\n }\n return \"url(#\" + gradientNode.id + \")\";\n }\n function exportText(item) {\n var node = SvgElement.create(\"text\", getTransform(item._matrix, true), formatter);\n node.textContent = item._content;\n return node;\n }\n var exporters = {\n Group: exportGroup,\n Layer: exportGroup,\n Raster: exportRaster,\n Path: exportPath,\n Shape: exportShape,\n CompoundPath: exportCompoundPath,\n SymbolItem: exportSymbolItem,\n PointText: exportText\n };\n function applyStyle(item, node, options, isRoot) {\n var attrs = {}, parent = !isRoot && item.getParent(), style = [];\n if (item._name != null) attrs.id = item._name;\n Base.each(SvgStyles, function(entry) {\n var get = entry.get, type = entry.type, value = item[get]();\n if (entry.exportFilter ? entry.exportFilter(item, value) : options.reduceAttributes == false || !parent || !Base.equals(parent[get](), value)) {\n if (type === \"color\" && value != null) {\n var alpha = value.getAlpha();\n if (alpha < 1) attrs[entry.attribute + \"-opacity\"] = alpha;\n }\n if (type === \"style\") style.push(entry.attribute + \": \" + value);\n else attrs[entry.attribute] = value == null ? \"none\" : type === \"color\" ? value.gradient ? exportGradient(value, item) : value.toCSS(true) : type === \"array\" ? value.join(\",\") : type === \"lookup\" ? entry.toSVG[value] : value;\n }\n });\n if (style.length) attrs.style = style.join(\";\");\n if (attrs.opacity === 1) delete attrs.opacity;\n if (!item._visible) attrs.visibility = \"hidden\";\n return SvgElement.set(node, attrs, formatter);\n }\n var definitions;\n function getDefinition(item, type) {\n if (!definitions) definitions = {\n ids: {},\n svgs: {}\n };\n return item && definitions.svgs[type + \"-\" + (item._id || item.__id || (item.__id = UID.get(\"svg\")))];\n }\n function setDefinition(item, node, type) {\n if (!definitions) getDefinition();\n var typeId = definitions.ids[type] = (definitions.ids[type] || 0) + 1;\n node.id = type + \"-\" + typeId;\n definitions.svgs[type + \"-\" + (item._id || item.__id)] = node;\n }\n function exportDefinitions(node, options) {\n var svg = node, defs = null;\n if (definitions) {\n svg = node.nodeName.toLowerCase() === \"svg\" && node;\n for(var i in definitions.svgs){\n if (!defs) {\n if (!svg) {\n svg = SvgElement.create(\"svg\");\n svg.appendChild(node);\n }\n defs = svg.insertBefore(SvgElement.create(\"defs\"), svg.firstChild);\n }\n defs.appendChild(definitions.svgs[i]);\n }\n definitions = null;\n }\n return options.asString ? new self1.XMLSerializer().serializeToString(svg) : svg;\n }\n function exportSVG(item, options, isRoot) {\n var exporter = exporters[item._class], node = exporter && exporter(item, options);\n if (node) {\n var onExport = options.onExport;\n if (onExport) node = onExport(item, node, options) || node;\n var data = JSON.stringify(item._data);\n if (data && data !== \"{}\" && data !== \"null\") node.setAttribute(\"data-paper-data\", data);\n }\n return node && applyStyle(item, node, options, isRoot);\n }\n function setOptions(options) {\n if (!options) options = {};\n formatter = new Formatter(options.precision);\n return options;\n }\n Item.inject({\n exportSVG: function(options) {\n options = setOptions(options);\n return exportDefinitions(exportSVG(this, options, true), options);\n }\n });\n Project.inject({\n exportSVG: function(options) {\n options = setOptions(options);\n var children = this._children, view = this.getView(), bounds = Base.pick(options.bounds, \"view\"), mx = options.matrix || bounds === \"view\" && view._matrix, matrix = mx && Matrix.read([\n mx\n ]), rect = bounds === \"view\" ? new Rectangle([\n 0,\n 0\n ], view.getViewSize()) : bounds === \"content\" ? Item._getBounds(children, matrix, {\n stroke: true\n }).rect : Rectangle.read([\n bounds\n ], 0, {\n readNull: true\n }), attrs = {\n version: \"1.1\",\n xmlns: SvgElement.svg,\n \"xmlns:xlink\": SvgElement.xlink\n };\n if (rect) {\n attrs.width = rect.width;\n attrs.height = rect.height;\n if (rect.x || rect.x === 0 || rect.y || rect.y === 0) attrs.viewBox = formatter.rectangle(rect);\n }\n var node = SvgElement.create(\"svg\", attrs, formatter), parent = node;\n if (matrix && !matrix.isIdentity()) parent = node.appendChild(SvgElement.create(\"g\", getTransform(matrix), formatter));\n for(var i = 0, l = children.length; i < l; i++)parent.appendChild(exportSVG(children[i], options, true));\n return exportDefinitions(node, options);\n }\n });\n };\n new function() {\n var definitions = {}, rootSize;\n function getValue(node, name, isString, allowNull, allowPercent, defaultValue) {\n var value = SvgElement.get(node, name) || defaultValue, res = value == null ? allowNull ? null : isString ? \"\" : 0 : isString ? value : parseFloat(value);\n return /%\\s*$/.test(value) ? res / 100 * (allowPercent ? 1 : rootSize[/x|^width/.test(name) ? \"width\" : \"height\"]) : res;\n }\n function getPoint(node, x, y, allowNull, allowPercent, defaultX, defaultY) {\n x = getValue(node, x || \"x\", false, allowNull, allowPercent, defaultX);\n y = getValue(node, y || \"y\", false, allowNull, allowPercent, defaultY);\n return allowNull && (x == null || y == null) ? null : new Point(x, y);\n }\n function getSize(node, w, h, allowNull, allowPercent) {\n w = getValue(node, w || \"width\", false, allowNull, allowPercent);\n h = getValue(node, h || \"height\", false, allowNull, allowPercent);\n return allowNull && (w == null || h == null) ? null : new Size(w, h);\n }\n function convertValue(value, type, lookup) {\n return value === \"none\" ? null : type === \"number\" ? parseFloat(value) : type === \"array\" ? value ? value.split(/[\\s,]+/g).map(parseFloat) : [] : type === \"color\" ? getDefinition(value) || value : type === \"lookup\" ? lookup[value] : value;\n }\n function importGroup(node, type, options, isRoot) {\n var nodes = node.childNodes, isClip = type === \"clippath\", isDefs = type === \"defs\", item = new Group(), project = item._project, currentStyle = project._currentStyle, children = [];\n if (!isClip && !isDefs) {\n item = applyAttributes(item, node, isRoot);\n project._currentStyle = item._style.clone();\n }\n if (isRoot) {\n var defs = node.querySelectorAll(\"defs\");\n for(var i = 0, l = defs.length; i < l; i++)importNode(defs[i], options, false);\n }\n for(var i = 0, l = nodes.length; i < l; i++){\n var childNode = nodes[i], child;\n if (childNode.nodeType === 1 && !/^defs$/i.test(childNode.nodeName) && (child = importNode(childNode, options, false)) && !(child instanceof SymbolDefinition)) children.push(child);\n }\n item.addChildren(children);\n if (isClip) item = applyAttributes(item.reduce(), node, isRoot);\n project._currentStyle = currentStyle;\n if (isClip || isDefs) {\n item.remove();\n item = null;\n }\n return item;\n }\n function importPoly(node, type) {\n var coords = node.getAttribute(\"points\").match(/[+-]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][+-]?\\d+)?/g), points = [];\n for(var i = 0, l = coords.length; i < l; i += 2)points.push(new Point(parseFloat(coords[i]), parseFloat(coords[i + 1])));\n var path = new Path(points);\n if (type === \"polygon\") path.closePath();\n return path;\n }\n function importPath(node) {\n return PathItem.create(node.getAttribute(\"d\"));\n }\n function importGradient(node, type) {\n var id = (getValue(node, \"href\", true) || \"\").substring(1), radial = type === \"radialgradient\", gradient;\n if (id) {\n gradient = definitions[id].getGradient();\n if (gradient._radial ^ radial) {\n gradient = gradient.clone();\n gradient._radial = radial;\n }\n } else {\n var nodes = node.childNodes, stops = [];\n for(var i = 0, l = nodes.length; i < l; i++){\n var child = nodes[i];\n if (child.nodeType === 1) stops.push(applyAttributes(new GradientStop(), child));\n }\n gradient = new Gradient(stops, radial);\n }\n var origin, destination, highlight, scaleToBounds = getValue(node, \"gradientUnits\", true) !== \"userSpaceOnUse\";\n if (radial) {\n origin = getPoint(node, \"cx\", \"cy\", false, scaleToBounds, \"50%\", \"50%\");\n destination = origin.add(getValue(node, \"r\", false, false, scaleToBounds, \"50%\"), 0);\n highlight = getPoint(node, \"fx\", \"fy\", true, scaleToBounds);\n } else {\n origin = getPoint(node, \"x1\", \"y1\", false, scaleToBounds, \"0%\", \"0%\");\n destination = getPoint(node, \"x2\", \"y2\", false, scaleToBounds, \"100%\", \"0%\");\n }\n var color = applyAttributes(new Color(gradient, origin, destination, highlight), node);\n color._scaleToBounds = scaleToBounds;\n return null;\n }\n var importers = {\n \"#document\": function(node, type, options, isRoot) {\n var nodes = node.childNodes;\n for(var i = 0, l = nodes.length; i < l; i++){\n var child = nodes[i];\n if (child.nodeType === 1) return importNode(child, options, isRoot);\n }\n },\n g: importGroup,\n svg: importGroup,\n clippath: importGroup,\n polygon: importPoly,\n polyline: importPoly,\n path: importPath,\n lineargradient: importGradient,\n radialgradient: importGradient,\n image: function(node) {\n var raster = new Raster(getValue(node, \"href\", true));\n raster.on(\"load\", function() {\n var size = getSize(node);\n this.setSize(size);\n var center = getPoint(node).add(size.divide(2));\n this._matrix.append(new Matrix().translate(center));\n });\n return raster;\n },\n symbol: function(node, type, options, isRoot) {\n return new SymbolDefinition(importGroup(node, type, options, isRoot), true);\n },\n defs: importGroup,\n use: function(node) {\n var id = (getValue(node, \"href\", true) || \"\").substring(1), definition = definitions[id], point = getPoint(node);\n return definition ? definition instanceof SymbolDefinition ? definition.place(point) : definition.clone().translate(point) : null;\n },\n circle: function(node) {\n return new Shape.Circle(getPoint(node, \"cx\", \"cy\"), getValue(node, \"r\"));\n },\n ellipse: function(node) {\n return new Shape.Ellipse({\n center: getPoint(node, \"cx\", \"cy\"),\n radius: getSize(node, \"rx\", \"ry\")\n });\n },\n rect: function(node) {\n return new Shape.Rectangle(new Rectangle(getPoint(node), getSize(node)), getSize(node, \"rx\", \"ry\"));\n },\n line: function(node) {\n return new Path.Line(getPoint(node, \"x1\", \"y1\"), getPoint(node, \"x2\", \"y2\"));\n },\n text: function(node) {\n var text = new PointText(getPoint(node).add(getPoint(node, \"dx\", \"dy\")));\n text.setContent(node.textContent.trim() || \"\");\n return text;\n },\n switch: importGroup\n };\n function applyTransform(item, value, name, node) {\n if (item.transform) {\n var transforms = (node.getAttribute(name) || \"\").split(/\\)\\s*/g), matrix = new Matrix();\n for(var i = 0, l = transforms.length; i < l; i++){\n var transform = transforms[i];\n if (!transform) break;\n var parts = transform.split(/\\(\\s*/), command = parts[0].trim(), v = parts[1].split(/[\\s,]+/g);\n for(var j = 0, m = v.length; j < m; j++)v[j] = parseFloat(v[j]);\n switch(command){\n case \"matrix\":\n matrix.append(new Matrix(v[0], v[1], v[2], v[3], v[4], v[5]));\n break;\n case \"rotate\":\n matrix.rotate(v[0], v[1] || 0, v[2] || 0);\n break;\n case \"translate\":\n matrix.translate(v[0], v[1] || 0);\n break;\n case \"scale\":\n matrix.scale(v);\n break;\n case \"skewX\":\n matrix.skew(v[0], 0);\n break;\n case \"skewY\":\n matrix.skew(0, v[0]);\n break;\n }\n }\n item.transform(matrix);\n }\n }\n function applyOpacity(item, value, name) {\n var key = name === \"fill-opacity\" ? \"getFillColor\" : \"getStrokeColor\", color = item[key] && item[key]();\n if (color) color.setAlpha(parseFloat(value));\n }\n var attributes = Base.set(Base.each(SvgStyles, function(entry) {\n this[entry.attribute] = function(item, value) {\n if (item[entry.set]) {\n item[entry.set](convertValue(value, entry.type, entry.fromSVG));\n if (entry.type === \"color\") {\n var color = item[entry.get]();\n if (color) {\n if (color._scaleToBounds) {\n var bounds = item.getBounds();\n color.transform(new Matrix().translate(bounds.getPoint()).scale(bounds.getSize()));\n }\n }\n }\n }\n };\n }, {}), {\n id: function(item, value) {\n definitions[value] = item;\n if (item.setName) item.setName(value);\n },\n \"clip-path\": function(item, value) {\n var clip = getDefinition(value);\n if (clip) {\n clip = clip.clone();\n clip.setClipMask(true);\n if (item instanceof Group) item.insertChild(0, clip);\n else return new Group(clip, item);\n }\n },\n gradientTransform: applyTransform,\n transform: applyTransform,\n \"fill-opacity\": applyOpacity,\n \"stroke-opacity\": applyOpacity,\n visibility: function(item, value) {\n if (item.setVisible) item.setVisible(value === \"visible\");\n },\n display: function(item, value) {\n if (item.setVisible) item.setVisible(value !== null);\n },\n \"stop-color\": function(item, value) {\n if (item.setColor) item.setColor(value);\n },\n \"stop-opacity\": function(item, value) {\n if (item._color) item._color.setAlpha(parseFloat(value));\n },\n offset: function(item, value) {\n if (item.setOffset) {\n var percent = value.match(/(.*)%$/);\n item.setOffset(percent ? percent[1] / 100 : parseFloat(value));\n }\n },\n viewBox: function(item, value, name, node, styles) {\n var rect = new Rectangle(convertValue(value, \"array\")), size = getSize(node, null, null, true), group, matrix;\n if (item instanceof Group) {\n var scale = size ? size.divide(rect.getSize()) : 1, matrix = new Matrix().scale(scale).translate(rect.getPoint().negate());\n group = item;\n } else if (item instanceof SymbolDefinition) {\n if (size) rect.setSize(size);\n group = item._item;\n }\n if (group) {\n if (getAttribute(node, \"overflow\", styles) !== \"visible\") {\n var clip = new Shape.Rectangle(rect);\n clip.setClipMask(true);\n group.addChild(clip);\n }\n if (matrix) group.transform(matrix);\n }\n }\n });\n function getAttribute(node, name, styles) {\n var attr = node.attributes[name], value = attr && attr.value;\n if (!value && node.style) {\n var style = Base.camelize(name);\n value = node.style[style];\n if (!value && styles.node[style] !== styles.parent[style]) value = styles.node[style];\n }\n return !value ? undefined : value === \"none\" ? null : value;\n }\n function applyAttributes(item, node, isRoot) {\n var parent = node.parentNode, styles = {\n node: DomElement.getStyles(node) || {},\n parent: !isRoot && !/^defs$/i.test(parent.tagName) && DomElement.getStyles(parent) || {}\n };\n Base.each(attributes, function(apply, name) {\n var value = getAttribute(node, name, styles);\n item = value !== undefined && apply(item, value, name, node, styles) || item;\n });\n return item;\n }\n function getDefinition(value) {\n var match = value && value.match(/\\((?:[\"'#]*)([^\"')]+)/), name = match && match[1], res = name && definitions[window ? name.replace(window.location.href.split(\"#\")[0] + \"#\", \"\") : name];\n if (res && res._scaleToBounds) {\n res = res.clone();\n res._scaleToBounds = true;\n }\n return res;\n }\n function importNode(node, options, isRoot) {\n var type = node.nodeName.toLowerCase(), isElement = type !== \"#document\", body = document.body, container, parent, next;\n if (isRoot && isElement) {\n rootSize = paper.getView().getSize();\n rootSize = getSize(node, null, null, true) || rootSize;\n container = SvgElement.create(\"svg\", {\n style: \"stroke-width: 1px; stroke-miterlimit: 10\"\n });\n parent = node.parentNode;\n next = node.nextSibling;\n container.appendChild(node);\n body.appendChild(container);\n }\n var settings = paper.settings, applyMatrix = settings.applyMatrix, insertItems = settings.insertItems;\n settings.applyMatrix = false;\n settings.insertItems = false;\n var importer = importers[type], item = importer && importer(node, type, options, isRoot) || null;\n settings.insertItems = insertItems;\n settings.applyMatrix = applyMatrix;\n if (item) {\n if (isElement && !(item instanceof Group)) item = applyAttributes(item, node, isRoot);\n var onImport = options.onImport, data = isElement && node.getAttribute(\"data-paper-data\");\n if (onImport) item = onImport(node, item, options) || item;\n if (options.expandShapes && item instanceof Shape) {\n item.remove();\n item = item.toPath();\n }\n if (data) item._data = JSON.parse(data);\n }\n if (container) {\n body.removeChild(container);\n if (parent) {\n if (next) parent.insertBefore(node, next);\n else parent.appendChild(node);\n }\n }\n if (isRoot) {\n definitions = {};\n if (item && Base.pick(options.applyMatrix, applyMatrix)) item.matrix.apply(true, true);\n }\n return item;\n }\n function importSVG(source, options, owner) {\n if (!source) return null;\n options = typeof options === \"function\" ? {\n onLoad: options\n } : options || {};\n var scope = paper, item = null;\n function onLoad(svg) {\n try {\n var node = typeof svg === \"object\" ? svg : new self1.DOMParser().parseFromString(svg.trim(), \"image/svg+xml\");\n if (!node.nodeName) {\n node = null;\n throw new Error(\"Unsupported SVG source: \" + source);\n }\n paper = scope;\n item = importNode(node, options, true);\n if (!options || options.insert !== false) owner._insertItem(undefined, item);\n var onLoad = options.onLoad;\n if (onLoad) onLoad(item, svg);\n } catch (e) {\n onError(e);\n }\n }\n function onError(message, status) {\n var onError = options.onError;\n if (onError) onError(message, status);\n else throw new Error(message);\n }\n if (typeof source === \"string\" && !/^[\\s\\S]* 3) {\n cats.sort(function(a, b) {\n return b.length - a.length;\n });\n f += \"switch(str.length){\";\n for(var i = 0; i < cats.length; ++i){\n var cat = cats[i];\n f += \"case \" + cat[0].length + \":\";\n compareTo(cat);\n }\n f += \"}\";\n } else compareTo(words);\n return new Function(\"str\", f);\n }\n var isReservedWord3 = makePredicate(\"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\");\n var isReservedWord5 = makePredicate(\"class enum extends super const export import\");\n var isStrictReservedWord = makePredicate(\"implements interface let package private protected public static yield\");\n var isStrictBadIdWord = makePredicate(\"eval arguments\");\n var isKeyword = makePredicate(\"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\");\n var nonASCIIwhitespace = /[\\u1680\\u180e\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/;\n var nonASCIIidentifierStartChars = \"\\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\\u0A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\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\";\n var nonASCIIidentifierChars = \"\\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\";\n var nonASCIIidentifierStart = new RegExp(\"[\" + nonASCIIidentifierStartChars + \"]\");\n var nonASCIIidentifier = new RegExp(\"[\" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + \"]\");\n var newline = /[\\n\\r\\u2028\\u2029]/;\n var lineBreak = /\\r\\n|[\\n\\r\\u2028\\u2029]/g;\n var isIdentifierStart = exports.isIdentifierStart = function(code) {\n if (code < 65) return code === 36;\n if (code < 91) return true;\n if (code < 97) return code === 95;\n if (code < 123) return true;\n return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));\n };\n var isIdentifierChar = exports.isIdentifierChar = function(code) {\n if (code < 48) return code === 36;\n if (code < 58) return true;\n if (code < 65) return false;\n if (code < 91) return true;\n if (code < 97) return code === 95;\n if (code < 123) return true;\n return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));\n };\n function line_loc_t() {\n this.line = tokCurLine;\n this.column = tokPos - tokLineStart;\n }\n function initTokenState() {\n tokCurLine = 1;\n tokPos = tokLineStart = 0;\n tokRegexpAllowed = true;\n skipSpace();\n }\n function finishToken(type, val) {\n tokEnd = tokPos;\n if (options.locations) tokEndLoc = new line_loc_t;\n tokType = type;\n skipSpace();\n tokVal = val;\n tokRegexpAllowed = type.beforeExpr;\n }\n function skipBlockComment() {\n var startLoc = options.onComment && options.locations && new line_loc_t;\n var start = tokPos, end = input.indexOf(\"*/\", tokPos += 2);\n if (end === -1) raise(tokPos - 2, \"Unterminated comment\");\n tokPos = end + 2;\n if (options.locations) {\n lineBreak.lastIndex = start;\n var match;\n while((match = lineBreak.exec(input)) && match.index < tokPos){\n ++tokCurLine;\n tokLineStart = match.index + match[0].length;\n }\n }\n if (options.onComment) options.onComment(true, input.slice(start + 2, end), start, tokPos, startLoc, options.locations && new line_loc_t);\n }\n function skipLineComment() {\n var start = tokPos;\n var startLoc = options.onComment && options.locations && new line_loc_t;\n var ch = input.charCodeAt(tokPos += 2);\n while(tokPos < inputLen && ch !== 10 && ch !== 13 && ch !== 8232 && ch !== 8233){\n ++tokPos;\n ch = input.charCodeAt(tokPos);\n }\n if (options.onComment) options.onComment(false, input.slice(start + 2, tokPos), start, tokPos, startLoc, options.locations && new line_loc_t);\n }\n function skipSpace() {\n while(tokPos < inputLen){\n var ch = input.charCodeAt(tokPos);\n if (ch === 32) ++tokPos;\n else if (ch === 13) {\n ++tokPos;\n var next = input.charCodeAt(tokPos);\n if (next === 10) ++tokPos;\n if (options.locations) {\n ++tokCurLine;\n tokLineStart = tokPos;\n }\n } else if (ch === 10 || ch === 8232 || ch === 8233) {\n ++tokPos;\n if (options.locations) {\n ++tokCurLine;\n tokLineStart = tokPos;\n }\n } else if (ch > 8 && ch < 14) ++tokPos;\n else if (ch === 47) {\n var next = input.charCodeAt(tokPos + 1);\n if (next === 42) skipBlockComment();\n else if (next === 47) skipLineComment();\n else break;\n } else if (ch === 160) ++tokPos;\n else if (ch >= 5760 && nonASCIIwhitespace.test(String.fromCharCode(ch))) ++tokPos;\n else break;\n }\n }\n function readToken_dot() {\n var next = input.charCodeAt(tokPos + 1);\n if (next >= 48 && next <= 57) return readNumber(true);\n ++tokPos;\n return finishToken(_dot);\n }\n function readToken_slash() {\n var next = input.charCodeAt(tokPos + 1);\n if (tokRegexpAllowed) {\n ++tokPos;\n return readRegexp();\n }\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(_slash, 1);\n }\n function readToken_mult_modulo() {\n var next = input.charCodeAt(tokPos + 1);\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(_multiplyModulo, 1);\n }\n function readToken_pipe_amp(code) {\n var next = input.charCodeAt(tokPos + 1);\n if (next === code) return finishOp(code === 124 ? _logicalOR : _logicalAND, 2);\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(code === 124 ? _bitwiseOR : _bitwiseAND, 1);\n }\n function readToken_caret() {\n var next = input.charCodeAt(tokPos + 1);\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(_bitwiseXOR, 1);\n }\n function readToken_plus_min(code) {\n var next = input.charCodeAt(tokPos + 1);\n if (next === code) {\n if (next == 45 && input.charCodeAt(tokPos + 2) == 62 && newline.test(input.slice(lastEnd, tokPos))) {\n tokPos += 3;\n skipLineComment();\n skipSpace();\n return readToken();\n }\n return finishOp(_incDec, 2);\n }\n if (next === 61) return finishOp(_assign, 2);\n return finishOp(_plusMin, 1);\n }\n function readToken_lt_gt(code) {\n var next = input.charCodeAt(tokPos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && input.charCodeAt(tokPos + 2) === 62 ? 3 : 2;\n if (input.charCodeAt(tokPos + size) === 61) return finishOp(_assign, size + 1);\n return finishOp(_bitShift, size);\n }\n if (next == 33 && code == 60 && input.charCodeAt(tokPos + 2) == 45 && input.charCodeAt(tokPos + 3) == 45) {\n tokPos += 4;\n skipLineComment();\n skipSpace();\n return readToken();\n }\n if (next === 61) size = input.charCodeAt(tokPos + 2) === 61 ? 3 : 2;\n return finishOp(_relational, size);\n }\n function readToken_eq_excl(code) {\n var next = input.charCodeAt(tokPos + 1);\n if (next === 61) return finishOp(_equality, input.charCodeAt(tokPos + 2) === 61 ? 3 : 2);\n return finishOp(code === 61 ? _eq : _prefix, 1);\n }\n function getTokenFromCode(code) {\n switch(code){\n case 46:\n return readToken_dot();\n case 40:\n ++tokPos;\n return finishToken(_parenL);\n case 41:\n ++tokPos;\n return finishToken(_parenR);\n case 59:\n ++tokPos;\n return finishToken(_semi);\n case 44:\n ++tokPos;\n return finishToken(_comma);\n case 91:\n ++tokPos;\n return finishToken(_bracketL);\n case 93:\n ++tokPos;\n return finishToken(_bracketR);\n case 123:\n ++tokPos;\n return finishToken(_braceL);\n case 125:\n ++tokPos;\n return finishToken(_braceR);\n case 58:\n ++tokPos;\n return finishToken(_colon);\n case 63:\n ++tokPos;\n return finishToken(_question);\n case 48:\n var next = input.charCodeAt(tokPos + 1);\n if (next === 120 || next === 88) return readHexNumber();\n case 49:\n case 50:\n case 51:\n case 52:\n case 53:\n case 54:\n case 55:\n case 56:\n case 57:\n return readNumber(false);\n case 34:\n case 39:\n return readString(code);\n case 47:\n return readToken_slash(code);\n case 37:\n case 42:\n return readToken_mult_modulo();\n case 124:\n case 38:\n return readToken_pipe_amp(code);\n case 94:\n return readToken_caret();\n case 43:\n case 45:\n return readToken_plus_min(code);\n case 60:\n case 62:\n return readToken_lt_gt(code);\n case 61:\n case 33:\n return readToken_eq_excl(code);\n case 126:\n return finishOp(_prefix, 1);\n }\n return false;\n }\n function readToken(forceRegexp) {\n if (!forceRegexp) tokStart = tokPos;\n else tokPos = tokStart + 1;\n if (options.locations) tokStartLoc = new line_loc_t;\n if (forceRegexp) return readRegexp();\n if (tokPos >= inputLen) return finishToken(_eof);\n var code = input.charCodeAt(tokPos);\n if (isIdentifierStart(code) || code === 92) return readWord();\n var tok = getTokenFromCode(code);\n if (tok === false) {\n var ch = String.fromCharCode(code);\n if (ch === \"\\\\\" || nonASCIIidentifierStart.test(ch)) return readWord();\n raise(tokPos, \"Unexpected character '\" + ch + \"'\");\n }\n return tok;\n }\n function finishOp(type, size) {\n var str = input.slice(tokPos, tokPos + size);\n tokPos += size;\n finishToken(type, str);\n }\n function readRegexp() {\n var content = \"\", escaped, inClass, start = tokPos;\n for(;;){\n if (tokPos >= inputLen) raise(start, \"Unterminated regular expression\");\n var ch = input.charAt(tokPos);\n if (newline.test(ch)) raise(start, \"Unterminated regular expression\");\n if (!escaped) {\n if (ch === \"[\") inClass = true;\n else if (ch === \"]\" && inClass) inClass = false;\n else if (ch === \"/\" && !inClass) break;\n escaped = ch === \"\\\\\";\n } else escaped = false;\n ++tokPos;\n }\n var content = input.slice(start, tokPos);\n ++tokPos;\n var mods = readWord1();\n if (mods && !/^[gmsiy]*$/.test(mods)) raise(start, \"Invalid regexp flag\");\n try {\n var value = new RegExp(content, mods);\n } catch (e) {\n if (e instanceof SyntaxError) raise(start, e.message);\n raise(e);\n }\n return finishToken(_regexp, value);\n }\n function readInt(radix, len) {\n var start = tokPos, total = 0;\n for(var i = 0, e = len == null ? Infinity : len; i < e; ++i){\n var code = input.charCodeAt(tokPos), val;\n if (code >= 97) val = code - 97 + 10;\n else if (code >= 65) val = code - 65 + 10;\n else if (code >= 48 && code <= 57) val = code - 48;\n else val = Infinity;\n if (val >= radix) break;\n ++tokPos;\n total = total * radix + val;\n }\n if (tokPos === start || len != null && tokPos - start !== len) return null;\n return total;\n }\n function readHexNumber() {\n tokPos += 2;\n var val = readInt(16);\n if (val == null) raise(tokStart + 2, \"Expected hexadecimal number\");\n if (isIdentifierStart(input.charCodeAt(tokPos))) raise(tokPos, \"Identifier directly after number\");\n return finishToken(_num, val);\n }\n function readNumber(startsWithDot) {\n var start = tokPos, isFloat = false, octal = input.charCodeAt(tokPos) === 48;\n if (!startsWithDot && readInt(10) === null) raise(start, \"Invalid number\");\n if (input.charCodeAt(tokPos) === 46) {\n ++tokPos;\n readInt(10);\n isFloat = true;\n }\n var next = input.charCodeAt(tokPos);\n if (next === 69 || next === 101) {\n next = input.charCodeAt(++tokPos);\n if (next === 43 || next === 45) ++tokPos;\n if (readInt(10) === null) raise(start, \"Invalid number\");\n isFloat = true;\n }\n if (isIdentifierStart(input.charCodeAt(tokPos))) raise(tokPos, \"Identifier directly after number\");\n var str = input.slice(start, tokPos), val;\n if (isFloat) val = parseFloat(str);\n else if (!octal || str.length === 1) val = parseInt(str, 10);\n else if (/[89]/.test(str) || strict) raise(start, \"Invalid number\");\n else val = parseInt(str, 8);\n return finishToken(_num, val);\n }\n function readString(quote) {\n tokPos++;\n var out = \"\";\n for(;;){\n if (tokPos >= inputLen) raise(tokStart, \"Unterminated string constant\");\n var ch = input.charCodeAt(tokPos);\n if (ch === quote) {\n ++tokPos;\n return finishToken(_string, out);\n }\n if (ch === 92) {\n ch = input.charCodeAt(++tokPos);\n var octal = /^[0-7]+/.exec(input.slice(tokPos, tokPos + 3));\n if (octal) octal = octal[0];\n while(octal && parseInt(octal, 8) > 255)octal = octal.slice(0, -1);\n if (octal === \"0\") octal = null;\n ++tokPos;\n if (octal) {\n if (strict) raise(tokPos - 2, \"Octal literal in strict mode\");\n out += String.fromCharCode(parseInt(octal, 8));\n tokPos += octal.length - 1;\n } else switch(ch){\n case 110:\n out += \"\\n\";\n break;\n case 114:\n out += \"\\r\";\n break;\n case 120:\n out += String.fromCharCode(readHexChar(2));\n break;\n case 117:\n out += String.fromCharCode(readHexChar(4));\n break;\n case 85:\n out += String.fromCharCode(readHexChar(8));\n break;\n case 116:\n out += \"\t\";\n break;\n case 98:\n out += \"\\b\";\n break;\n case 118:\n out += \"\\v\";\n break;\n case 102:\n out += \"\\f\";\n break;\n case 48:\n out += \"\\0\";\n break;\n case 13:\n if (input.charCodeAt(tokPos) === 10) ++tokPos;\n case 10:\n if (options.locations) {\n tokLineStart = tokPos;\n ++tokCurLine;\n }\n break;\n default:\n out += String.fromCharCode(ch);\n break;\n }\n } else {\n if (ch === 13 || ch === 10 || ch === 8232 || ch === 8233) raise(tokStart, \"Unterminated string constant\");\n out += String.fromCharCode(ch);\n ++tokPos;\n }\n }\n }\n function readHexChar(len) {\n var n = readInt(16, len);\n if (n === null) raise(tokStart, \"Bad character escape sequence\");\n return n;\n }\n var containsEsc;\n function readWord1() {\n containsEsc = false;\n var word, first = true, start = tokPos;\n for(;;){\n var ch = input.charCodeAt(tokPos);\n if (isIdentifierChar(ch)) {\n if (containsEsc) word += input.charAt(tokPos);\n ++tokPos;\n } else if (ch === 92) {\n if (!containsEsc) word = input.slice(start, tokPos);\n containsEsc = true;\n if (input.charCodeAt(++tokPos) != 117) raise(tokPos, \"Expecting Unicode escape sequence \\\\uXXXX\");\n ++tokPos;\n var esc = readHexChar(4);\n var escStr = String.fromCharCode(esc);\n if (!escStr) raise(tokPos - 1, \"Invalid Unicode escape\");\n if (!(first ? isIdentifierStart(esc) : isIdentifierChar(esc))) raise(tokPos - 4, \"Invalid Unicode escape\");\n word += escStr;\n } else break;\n first = false;\n }\n return containsEsc ? word : input.slice(start, tokPos);\n }\n function readWord() {\n var word = readWord1();\n var type = _name;\n if (!containsEsc && isKeyword(word)) type = keywordTypes[word];\n return finishToken(type, word);\n }\n function next() {\n lastStart = tokStart;\n lastEnd = tokEnd;\n lastEndLoc = tokEndLoc;\n readToken();\n }\n function setStrict(strct) {\n strict = strct;\n tokPos = tokStart;\n if (options.locations) while(tokPos < tokLineStart){\n tokLineStart = input.lastIndexOf(\"\\n\", tokLineStart - 2) + 1;\n --tokCurLine;\n }\n skipSpace();\n readToken();\n }\n function node_t() {\n this.type = null;\n this.start = tokStart;\n this.end = null;\n }\n function node_loc_t() {\n this.start = tokStartLoc;\n this.end = null;\n if (sourceFile !== null) this.source = sourceFile;\n }\n function startNode() {\n var node = new node_t();\n if (options.locations) node.loc = new node_loc_t();\n if (options.directSourceFile) node.sourceFile = options.directSourceFile;\n if (options.ranges) node.range = [\n tokStart,\n 0\n ];\n return node;\n }\n function startNodeFrom(other) {\n var node = new node_t();\n node.start = other.start;\n if (options.locations) {\n node.loc = new node_loc_t();\n node.loc.start = other.loc.start;\n }\n if (options.ranges) node.range = [\n other.range[0],\n 0\n ];\n return node;\n }\n function finishNode(node, type) {\n node.type = type;\n node.end = lastEnd;\n if (options.locations) node.loc.end = lastEndLoc;\n if (options.ranges) node.range[1] = lastEnd;\n return node;\n }\n function isUseStrict(stmt) {\n return options.ecmaVersion >= 5 && stmt.type === \"ExpressionStatement\" && stmt.expression.type === \"Literal\" && stmt.expression.value === \"use strict\";\n }\n function eat(type) {\n if (tokType === type) {\n next();\n return true;\n }\n }\n function canInsertSemicolon() {\n return !options.strictSemicolons && (tokType === _eof || tokType === _braceR || newline.test(input.slice(lastEnd, tokStart)));\n }\n function semicolon() {\n if (!eat(_semi) && !canInsertSemicolon()) unexpected();\n }\n function expect(type) {\n if (tokType === type) next();\n else unexpected();\n }\n function unexpected() {\n raise(tokStart, \"Unexpected token\");\n }\n function checkLVal(expr) {\n if (expr.type !== \"Identifier\" && expr.type !== \"MemberExpression\") raise(expr.start, \"Assigning to rvalue\");\n if (strict && expr.type === \"Identifier\" && isStrictBadIdWord(expr.name)) raise(expr.start, \"Assigning to \" + expr.name + \" in strict mode\");\n }\n function parseTopLevel(program) {\n lastStart = lastEnd = tokPos;\n if (options.locations) lastEndLoc = new line_loc_t;\n inFunction = strict = null;\n labels = [];\n readToken();\n var node = program || startNode(), first = true;\n if (!program) node.body = [];\n while(tokType !== _eof){\n var stmt = parseStatement();\n node.body.push(stmt);\n if (first && isUseStrict(stmt)) setStrict(true);\n first = false;\n }\n return finishNode(node, \"Program\");\n }\n var loopLabel = {\n kind: \"loop\"\n }, switchLabel = {\n kind: \"switch\"\n };\n function parseStatement() {\n if (tokType === _slash || tokType === _assign && tokVal == \"/=\") readToken(true);\n var starttype = tokType, node = startNode();\n switch(starttype){\n case _break:\n case _continue:\n next();\n var isBreak = starttype === _break;\n if (eat(_semi) || canInsertSemicolon()) node.label = null;\n else if (tokType !== _name) unexpected();\n else {\n node.label = parseIdent();\n semicolon();\n }\n for(var i = 0; i < labels.length; ++i){\n var lab = labels[i];\n if (node.label == null || lab.name === node.label.name) {\n if (lab.kind != null && (isBreak || lab.kind === \"loop\")) break;\n if (node.label && isBreak) break;\n }\n }\n if (i === labels.length) raise(node.start, \"Unsyntactic \" + starttype.keyword);\n return finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\");\n case _debugger:\n next();\n semicolon();\n return finishNode(node, \"DebuggerStatement\");\n case _do:\n next();\n labels.push(loopLabel);\n node.body = parseStatement();\n labels.pop();\n expect(_while);\n node.test = parseParenExpression();\n semicolon();\n return finishNode(node, \"DoWhileStatement\");\n case _for:\n next();\n labels.push(loopLabel);\n expect(_parenL);\n if (tokType === _semi) return parseFor(node, null);\n if (tokType === _var) {\n var init = startNode();\n next();\n parseVar(init, true);\n finishNode(init, \"VariableDeclaration\");\n if (init.declarations.length === 1 && eat(_in)) return parseForIn(node, init);\n return parseFor(node, init);\n }\n var init = parseExpression(false, true);\n if (eat(_in)) {\n checkLVal(init);\n return parseForIn(node, init);\n }\n return parseFor(node, init);\n case _function:\n next();\n return parseFunction(node, true);\n case _if:\n next();\n node.test = parseParenExpression();\n node.consequent = parseStatement();\n node.alternate = eat(_else) ? parseStatement() : null;\n return finishNode(node, \"IfStatement\");\n case _return:\n if (!inFunction && !options.allowReturnOutsideFunction) raise(tokStart, \"'return' outside of function\");\n next();\n if (eat(_semi) || canInsertSemicolon()) node.argument = null;\n else {\n node.argument = parseExpression();\n semicolon();\n }\n return finishNode(node, \"ReturnStatement\");\n case _switch:\n next();\n node.discriminant = parseParenExpression();\n node.cases = [];\n expect(_braceL);\n labels.push(switchLabel);\n for(var cur, sawDefault; tokType != _braceR;)if (tokType === _case || tokType === _default) {\n var isCase = tokType === _case;\n if (cur) finishNode(cur, \"SwitchCase\");\n node.cases.push(cur = startNode());\n cur.consequent = [];\n next();\n if (isCase) cur.test = parseExpression();\n else {\n if (sawDefault) raise(lastStart, \"Multiple default clauses\");\n sawDefault = true;\n cur.test = null;\n }\n expect(_colon);\n } else {\n if (!cur) unexpected();\n cur.consequent.push(parseStatement());\n }\n if (cur) finishNode(cur, \"SwitchCase\");\n next();\n labels.pop();\n return finishNode(node, \"SwitchStatement\");\n case _throw:\n next();\n if (newline.test(input.slice(lastEnd, tokStart))) raise(lastEnd, \"Illegal newline after throw\");\n node.argument = parseExpression();\n semicolon();\n return finishNode(node, \"ThrowStatement\");\n case _try:\n next();\n node.block = parseBlock();\n node.handler = null;\n if (tokType === _catch) {\n var clause = startNode();\n next();\n expect(_parenL);\n clause.param = parseIdent();\n if (strict && isStrictBadIdWord(clause.param.name)) raise(clause.param.start, \"Binding \" + clause.param.name + \" in strict mode\");\n expect(_parenR);\n clause.guard = null;\n clause.body = parseBlock();\n node.handler = finishNode(clause, \"CatchClause\");\n }\n node.guardedHandlers = empty;\n node.finalizer = eat(_finally) ? parseBlock() : null;\n if (!node.handler && !node.finalizer) raise(node.start, \"Missing catch or finally clause\");\n return finishNode(node, \"TryStatement\");\n case _var:\n next();\n parseVar(node);\n semicolon();\n return finishNode(node, \"VariableDeclaration\");\n case _while:\n next();\n node.test = parseParenExpression();\n labels.push(loopLabel);\n node.body = parseStatement();\n labels.pop();\n return finishNode(node, \"WhileStatement\");\n case _with:\n if (strict) raise(tokStart, \"'with' in strict mode\");\n next();\n node.object = parseParenExpression();\n node.body = parseStatement();\n return finishNode(node, \"WithStatement\");\n case _braceL:\n return parseBlock();\n case _semi:\n next();\n return finishNode(node, \"EmptyStatement\");\n default:\n var maybeName = tokVal, expr = parseExpression();\n if (starttype === _name && expr.type === \"Identifier\" && eat(_colon)) {\n for(var i = 0; i < labels.length; ++i)if (labels[i].name === maybeName) raise(expr.start, \"Label '\" + maybeName + \"' is already declared\");\n var kind = tokType.isLoop ? \"loop\" : tokType === _switch ? \"switch\" : null;\n labels.push({\n name: maybeName,\n kind: kind\n });\n node.body = parseStatement();\n labels.pop();\n node.label = expr;\n return finishNode(node, \"LabeledStatement\");\n } else {\n node.expression = expr;\n semicolon();\n return finishNode(node, \"ExpressionStatement\");\n }\n }\n }\n function parseParenExpression() {\n expect(_parenL);\n var val = parseExpression();\n expect(_parenR);\n return val;\n }\n function parseBlock(allowStrict) {\n var node = startNode(), first = true, strict = false, oldStrict;\n node.body = [];\n expect(_braceL);\n while(!eat(_braceR)){\n var stmt = parseStatement();\n node.body.push(stmt);\n if (first && allowStrict && isUseStrict(stmt)) {\n oldStrict = strict;\n setStrict(strict = true);\n }\n first = false;\n }\n if (strict && !oldStrict) setStrict(false);\n return finishNode(node, \"BlockStatement\");\n }\n function parseFor(node, init) {\n node.init = init;\n expect(_semi);\n node.test = tokType === _semi ? null : parseExpression();\n expect(_semi);\n node.update = tokType === _parenR ? null : parseExpression();\n expect(_parenR);\n node.body = parseStatement();\n labels.pop();\n return finishNode(node, \"ForStatement\");\n }\n function parseForIn(node, init) {\n node.left = init;\n node.right = parseExpression();\n expect(_parenR);\n node.body = parseStatement();\n labels.pop();\n return finishNode(node, \"ForInStatement\");\n }\n function parseVar(node, noIn) {\n node.declarations = [];\n node.kind = \"var\";\n for(;;){\n var decl = startNode();\n decl.id = parseIdent();\n if (strict && isStrictBadIdWord(decl.id.name)) raise(decl.id.start, \"Binding \" + decl.id.name + \" in strict mode\");\n decl.init = eat(_eq) ? parseExpression(true, noIn) : null;\n node.declarations.push(finishNode(decl, \"VariableDeclarator\"));\n if (!eat(_comma)) break;\n }\n return node;\n }\n function parseExpression(noComma, noIn) {\n var expr = parseMaybeAssign(noIn);\n if (!noComma && tokType === _comma) {\n var node = startNodeFrom(expr);\n node.expressions = [\n expr\n ];\n while(eat(_comma))node.expressions.push(parseMaybeAssign(noIn));\n return finishNode(node, \"SequenceExpression\");\n }\n return expr;\n }\n function parseMaybeAssign(noIn) {\n var left = parseMaybeConditional(noIn);\n if (tokType.isAssign) {\n var node = startNodeFrom(left);\n node.operator = tokVal;\n node.left = left;\n next();\n node.right = parseMaybeAssign(noIn);\n checkLVal(left);\n return finishNode(node, \"AssignmentExpression\");\n }\n return left;\n }\n function parseMaybeConditional(noIn) {\n var expr = parseExprOps(noIn);\n if (eat(_question)) {\n var node = startNodeFrom(expr);\n node.test = expr;\n node.consequent = parseExpression(true);\n expect(_colon);\n node.alternate = parseExpression(true, noIn);\n return finishNode(node, \"ConditionalExpression\");\n }\n return expr;\n }\n function parseExprOps(noIn) {\n return parseExprOp(parseMaybeUnary(), -1, noIn);\n }\n function parseExprOp(left, minPrec, noIn) {\n var prec = tokType.binop;\n if (prec != null && (!noIn || tokType !== _in)) {\n if (prec > minPrec) {\n var node = startNodeFrom(left);\n node.left = left;\n node.operator = tokVal;\n var op = tokType;\n next();\n node.right = parseExprOp(parseMaybeUnary(), prec, noIn);\n var exprNode = finishNode(node, op === _logicalOR || op === _logicalAND ? \"LogicalExpression\" : \"BinaryExpression\");\n return parseExprOp(exprNode, minPrec, noIn);\n }\n }\n return left;\n }\n function parseMaybeUnary() {\n if (tokType.prefix) {\n var node = startNode(), update = tokType.isUpdate;\n node.operator = tokVal;\n node.prefix = true;\n tokRegexpAllowed = true;\n next();\n node.argument = parseMaybeUnary();\n if (update) checkLVal(node.argument);\n else if (strict && node.operator === \"delete\" && node.argument.type === \"Identifier\") raise(node.start, \"Deleting local variable in strict mode\");\n return finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\");\n }\n var expr = parseExprSubscripts();\n while(tokType.postfix && !canInsertSemicolon()){\n var node = startNodeFrom(expr);\n node.operator = tokVal;\n node.prefix = false;\n node.argument = expr;\n checkLVal(expr);\n next();\n expr = finishNode(node, \"UpdateExpression\");\n }\n return expr;\n }\n function parseExprSubscripts() {\n return parseSubscripts(parseExprAtom());\n }\n function parseSubscripts(base, noCalls) {\n if (eat(_dot)) {\n var node = startNodeFrom(base);\n node.object = base;\n node.property = parseIdent(true);\n node.computed = false;\n return parseSubscripts(finishNode(node, \"MemberExpression\"), noCalls);\n } else if (eat(_bracketL)) {\n var node = startNodeFrom(base);\n node.object = base;\n node.property = parseExpression();\n node.computed = true;\n expect(_bracketR);\n return parseSubscripts(finishNode(node, \"MemberExpression\"), noCalls);\n } else if (!noCalls && eat(_parenL)) {\n var node = startNodeFrom(base);\n node.callee = base;\n node.arguments = parseExprList(_parenR, false);\n return parseSubscripts(finishNode(node, \"CallExpression\"), noCalls);\n } else return base;\n }\n function parseExprAtom() {\n switch(tokType){\n case _this:\n var node = startNode();\n next();\n return finishNode(node, \"ThisExpression\");\n case _name:\n return parseIdent();\n case _num:\n case _string:\n case _regexp:\n var node = startNode();\n node.value = tokVal;\n node.raw = input.slice(tokStart, tokEnd);\n next();\n return finishNode(node, \"Literal\");\n case _null:\n case _true:\n case _false:\n var node = startNode();\n node.value = tokType.atomValue;\n node.raw = tokType.keyword;\n next();\n return finishNode(node, \"Literal\");\n case _parenL:\n var tokStartLoc1 = tokStartLoc, tokStart1 = tokStart;\n next();\n var val = parseExpression();\n val.start = tokStart1;\n val.end = tokEnd;\n if (options.locations) {\n val.loc.start = tokStartLoc1;\n val.loc.end = tokEndLoc;\n }\n if (options.ranges) val.range = [\n tokStart1,\n tokEnd\n ];\n expect(_parenR);\n return val;\n case _bracketL:\n var node = startNode();\n next();\n node.elements = parseExprList(_bracketR, true, true);\n return finishNode(node, \"ArrayExpression\");\n case _braceL:\n return parseObj();\n case _function:\n var node = startNode();\n next();\n return parseFunction(node, false);\n case _new:\n return parseNew();\n default:\n unexpected();\n }\n }\n function parseNew() {\n var node = startNode();\n next();\n node.callee = parseSubscripts(parseExprAtom(), true);\n if (eat(_parenL)) node.arguments = parseExprList(_parenR, false);\n else node.arguments = empty;\n return finishNode(node, \"NewExpression\");\n }\n function parseObj() {\n var node = startNode(), first = true, sawGetSet = false;\n node.properties = [];\n next();\n while(!eat(_braceR)){\n if (!first) {\n expect(_comma);\n if (options.allowTrailingCommas && eat(_braceR)) break;\n } else first = false;\n var prop = {\n key: parsePropertyName()\n }, isGetSet = false, kind;\n if (eat(_colon)) {\n prop.value = parseExpression(true);\n kind = prop.kind = \"init\";\n } else if (options.ecmaVersion >= 5 && prop.key.type === \"Identifier\" && (prop.key.name === \"get\" || prop.key.name === \"set\")) {\n isGetSet = sawGetSet = true;\n kind = prop.kind = prop.key.name;\n prop.key = parsePropertyName();\n if (tokType !== _parenL) unexpected();\n prop.value = parseFunction(startNode(), false);\n } else unexpected();\n if (prop.key.type === \"Identifier\" && (strict || sawGetSet)) for(var i = 0; i < node.properties.length; ++i){\n var other = node.properties[i];\n if (other.key.name === prop.key.name) {\n var conflict = kind == other.kind || isGetSet && other.kind === \"init\" || kind === \"init\" && (other.kind === \"get\" || other.kind === \"set\");\n if (conflict && !strict && kind === \"init\" && other.kind === \"init\") conflict = false;\n if (conflict) raise(prop.key.start, \"Redefinition of property\");\n }\n }\n node.properties.push(prop);\n }\n return finishNode(node, \"ObjectExpression\");\n }\n function parsePropertyName() {\n if (tokType === _num || tokType === _string) return parseExprAtom();\n return parseIdent(true);\n }\n function parseFunction(node, isStatement) {\n if (tokType === _name) node.id = parseIdent();\n else if (isStatement) unexpected();\n else node.id = null;\n node.params = [];\n var first = true;\n expect(_parenL);\n while(!eat(_parenR)){\n if (!first) expect(_comma);\n else first = false;\n node.params.push(parseIdent());\n }\n var oldInFunc = inFunction, oldLabels = labels;\n inFunction = true;\n labels = [];\n node.body = parseBlock(true);\n inFunction = oldInFunc;\n labels = oldLabels;\n if (strict || node.body.body.length && isUseStrict(node.body.body[0])) for(var i = node.id ? -1 : 0; i < node.params.length; ++i){\n var id = i < 0 ? node.id : node.params[i];\n if (isStrictReservedWord(id.name) || isStrictBadIdWord(id.name)) raise(id.start, \"Defining '\" + id.name + \"' in strict mode\");\n if (i >= 0) {\n for(var j = 0; j < i; ++j)if (id.name === node.params[j].name) raise(id.start, \"Argument name clash in strict mode\");\n }\n }\n return finishNode(node, isStatement ? \"FunctionDeclaration\" : \"FunctionExpression\");\n }\n function parseExprList(close, allowTrailingComma, allowEmpty) {\n var elts = [], first = true;\n while(!eat(close)){\n if (!first) {\n expect(_comma);\n if (allowTrailingComma && options.allowTrailingCommas && eat(close)) break;\n } else first = false;\n if (allowEmpty && tokType === _comma) elts.push(null);\n else elts.push(parseExpression(true));\n }\n return elts;\n }\n function parseIdent(liberal) {\n var node = startNode();\n if (liberal && options.forbidReserved == \"everywhere\") liberal = false;\n if (tokType === _name) {\n if (!liberal && (options.forbidReserved && (options.ecmaVersion === 3 ? isReservedWord3 : isReservedWord5)(tokVal) || strict && isStrictReservedWord(tokVal)) && input.slice(tokStart, tokEnd).indexOf(\"\\\\\") == -1) raise(tokStart, \"The keyword '\" + tokVal + \"' is reserved\");\n node.name = tokVal;\n } else if (liberal && tokType.keyword) node.name = tokType.keyword;\n else unexpected();\n tokRegexpAllowed = false;\n next();\n return finishNode(node, \"Identifier\");\n }\n });\n if (!acorn.version) acorn = null;\n }\n function parse(code, options) {\n return (global.acorn || acorn).parse(code, options);\n }\n var binaryOperators = {\n \"+\": \"__add\",\n \"-\": \"__subtract\",\n \"*\": \"__multiply\",\n \"/\": \"__divide\",\n \"%\": \"__modulo\",\n \"==\": \"__equals\",\n \"!=\": \"__equals\"\n };\n var unaryOperators = {\n \"-\": \"__negate\",\n \"+\": \"__self\"\n };\n var fields = Base.each([\n \"add\",\n \"subtract\",\n \"multiply\",\n \"divide\",\n \"modulo\",\n \"equals\",\n \"negate\"\n ], function(name) {\n this[\"__\" + name] = \"#\" + name;\n }, {\n __self: function() {\n return this;\n }\n });\n Point.inject(fields);\n Size.inject(fields);\n Color.inject(fields);\n function __$__(left, operator, right) {\n var handler = binaryOperators[operator];\n if (left && left[handler]) {\n var res = left[handler](right);\n return operator === \"!=\" ? !res : res;\n }\n switch(operator){\n case \"+\":\n return left + right;\n case \"-\":\n return left - right;\n case \"*\":\n return left * right;\n case \"/\":\n return left / right;\n case \"%\":\n return left % right;\n case \"==\":\n return left == right;\n case \"!=\":\n return left != right;\n }\n }\n function $__(operator, value) {\n var handler = unaryOperators[operator];\n if (value && value[handler]) return value[handler]();\n switch(operator){\n case \"+\":\n return +value;\n case \"-\":\n return -value;\n }\n }\n function compile(code, options) {\n if (!code) return \"\";\n options = options || {};\n var insertions = [];\n function getOffset(offset) {\n for(var i = 0, l = insertions.length; i < l; i++){\n var insertion = insertions[i];\n if (insertion[0] >= offset) break;\n offset += insertion[1];\n }\n return offset;\n }\n function getCode(node) {\n return code.substring(getOffset(node.range[0]), getOffset(node.range[1]));\n }\n function getBetween(left, right) {\n return code.substring(getOffset(left.range[1]), getOffset(right.range[0]));\n }\n function replaceCode(node, str) {\n var start = getOffset(node.range[0]), end = getOffset(node.range[1]), insert = 0;\n for(var i = insertions.length - 1; i >= 0; i--)if (start > insertions[i][0]) {\n insert = i + 1;\n break;\n }\n insertions.splice(insert, 0, [\n start,\n str.length - end + start\n ]);\n code = code.substring(0, start) + str + code.substring(end);\n }\n function handleOverloading(node, parent) {\n switch(node.type){\n case \"UnaryExpression\":\n if (node.operator in unaryOperators && node.argument.type !== \"Literal\") {\n var arg = getCode(node.argument);\n replaceCode(node, '$__(\"' + node.operator + '\", ' + arg + \")\");\n }\n break;\n case \"BinaryExpression\":\n if (node.operator in binaryOperators && node.left.type !== \"Literal\") {\n var left = getCode(node.left), right = getCode(node.right), between = getBetween(node.left, node.right), operator = node.operator;\n replaceCode(node, \"__$__(\" + left + \",\" + between.replace(new RegExp(\"\\\\\" + operator), '\"' + operator + '\"') + \", \" + right + \")\");\n }\n break;\n case \"UpdateExpression\":\n case \"AssignmentExpression\":\n var parentType = parent && parent.type;\n if (!(parentType === \"ForStatement\" || parentType === \"BinaryExpression\" && /^[=!<>]/.test(parent.operator) || parentType === \"MemberExpression\" && parent.computed)) {\n if (node.type === \"UpdateExpression\") {\n var arg = getCode(node.argument), exp = \"__$__(\" + arg + ', \"' + node.operator[0] + '\", 1)', str = arg + \" = \" + exp;\n if (node.prefix) str = \"(\" + str + \")\";\n else if (parentType === \"AssignmentExpression\" || parentType === \"VariableDeclarator\" || parentType === \"BinaryExpression\") {\n if (getCode(parent.left || parent.id) === arg) str = exp;\n str = arg + \"; \" + str;\n }\n replaceCode(node, str);\n } else if (/^.=$/.test(node.operator) && node.left.type !== \"Literal\") {\n var left = getCode(node.left), right = getCode(node.right), exp = left + \" = __$__(\" + left + ', \"' + node.operator[0] + '\", ' + right + \")\";\n replaceCode(node, /^\\(.*\\)$/.test(getCode(node)) ? \"(\" + exp + \")\" : exp);\n }\n }\n break;\n }\n }\n function handleExports(node) {\n switch(node.type){\n case \"ExportDefaultDeclaration\":\n replaceCode({\n range: [\n node.start,\n node.declaration.start\n ]\n }, \"module.exports = \");\n break;\n case \"ExportNamedDeclaration\":\n var declaration = node.declaration;\n var specifiers = node.specifiers;\n if (declaration) {\n var declarations = declaration.declarations;\n if (declarations) {\n declarations.forEach(function(dec) {\n replaceCode(dec, \"module.exports.\" + getCode(dec));\n });\n replaceCode({\n range: [\n node.start,\n declaration.start + declaration.kind.length\n ]\n }, \"\");\n }\n } else if (specifiers) {\n var exports = specifiers.map(function(specifier) {\n var name = getCode(specifier);\n return \"module.exports.\" + name + \" = \" + name + \"; \";\n }).join(\"\");\n if (exports) replaceCode(node, exports);\n }\n break;\n }\n }\n function walkAST(node, parent, paperFeatures) {\n if (node) {\n for(var key in node)if (key !== \"range\" && key !== \"loc\") {\n var value = node[key];\n if (Array.isArray(value)) for(var i = 0, l = value.length; i < l; i++)walkAST(value[i], node, paperFeatures);\n else if (value && typeof value === \"object\") walkAST(value, node, paperFeatures);\n }\n if (paperFeatures.operatorOverloading !== false) handleOverloading(node, parent);\n if (paperFeatures.moduleExports !== false) handleExports(node);\n }\n }\n function encodeVLQ(value) {\n var res = \"\", base64 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n value = (Math.abs(value) << 1) + (value < 0 ? 1 : 0);\n while(value || !res){\n var next = value & 31;\n value >>= 5;\n if (value) next |= 32;\n res += base64[next];\n }\n return res;\n }\n var url = options.url || \"\", sourceMaps = options.sourceMaps, paperFeatures = options.paperFeatures || {}, source = options.source || code, offset = options.offset || 0, agent = paper.agent, version = agent.versionNumber, offsetCode = false, lineBreaks = /\\r\\n|\\n|\\r/mg, map;\n if (sourceMaps && (agent.chrome && version >= 30 || agent.webkit && version >= 537.76 || agent.firefox && version >= 23 || agent.node)) {\n if (agent.node) offset -= 2;\n else if (window && url && !window.location.href.indexOf(url)) {\n var html = document.getElementsByTagName(\"html\")[0].innerHTML;\n offset = html.substr(0, html.indexOf(code) + 1).match(lineBreaks).length + 1;\n }\n offsetCode = offset > 0 && !(agent.chrome && version >= 36 || agent.safari && version >= 600 || agent.firefox && version >= 40 || agent.node);\n var mappings = [\n \"AA\" + encodeVLQ(offsetCode ? 0 : offset) + \"A\"\n ];\n mappings.length = (code.match(lineBreaks) || []).length + 1 + (offsetCode ? offset : 0);\n map = {\n version: 3,\n file: url,\n names: [],\n mappings: mappings.join(\";AACA\"),\n sourceRoot: \"\",\n sources: [\n url\n ],\n sourcesContent: [\n source\n ]\n };\n }\n if (paperFeatures.operatorOverloading !== false || paperFeatures.moduleExports !== false) walkAST(parse(code, {\n ranges: true,\n preserveParens: true,\n sourceType: \"module\"\n }), null, paperFeatures);\n if (map) {\n if (offsetCode) code = new Array(offset + 1).join(\"\\n\") + code;\n if (/^(inline|both)$/.test(sourceMaps)) code += \"\\n//# sourceMappingURL=data:application/json;base64,\" + self1.btoa(unescape(encodeURIComponent(JSON.stringify(map))));\n code += \"\\n//# sourceURL=\" + (url || \"paperscript\");\n }\n return {\n url: url,\n source: source,\n code: code,\n map: map\n };\n }\n function execute(code, scope, options) {\n paper = scope;\n var view = scope.getView(), tool = /\\btool\\.\\w+|\\s+on(?:Key|Mouse)(?:Up|Down|Move|Drag)\\b/.test(code) && !/\\bnew\\s+Tool\\b/.test(code) ? new Tool() : null, toolHandlers = tool ? tool._events : [], handlers = [\n \"onFrame\",\n \"onResize\"\n ].concat(toolHandlers), params = [], args = [], func, compiled = typeof code === \"object\" ? code : compile(code, options);\n code = compiled.code;\n function expose(scope, hidden) {\n for(var key in scope)if ((hidden || !/^_/.test(key)) && new RegExp(\"([\\\\b\\\\s\\\\W]|^)\" + key.replace(/\\$/g, \"\\\\$\") + \"\\\\b\").test(code)) {\n params.push(key);\n args.push(scope[key]);\n }\n }\n expose({\n __$__: __$__,\n $__: $__,\n paper: scope,\n tool: tool\n }, true);\n expose(scope);\n code = \"var module = { exports: {} }; \" + code;\n var exports = Base.each(handlers, function(key) {\n if (new RegExp(\"\\\\s+\" + key + \"\\\\b\").test(code)) {\n params.push(key);\n this.push(\"module.exports.\" + key + \" = \" + key + \";\");\n }\n }, []).join(\"\\n\");\n if (exports) code += \"\\n\" + exports;\n code += \"\\nreturn module.exports;\";\n var agent = paper.agent;\n if (document && (agent.chrome || agent.firefox && agent.versionNumber < 40)) {\n var script = document.createElement(\"script\"), head = document.head || document.getElementsByTagName(\"head\")[0];\n if (agent.firefox) code = \"\\n\" + code;\n script.appendChild(document.createTextNode(\"document.__paperscript__ = function(\" + params + \") {\" + code + \"\\n}\"));\n head.appendChild(script);\n func = document.__paperscript__;\n delete document.__paperscript__;\n head.removeChild(script);\n } else func = Function(params, code);\n var exports = func && func.apply(scope, args);\n var obj = exports || {};\n Base.each(toolHandlers, function(key) {\n var value = obj[key];\n if (value) tool[key] = value;\n });\n if (view) {\n if (obj.onResize) view.setOnResize(obj.onResize);\n view.emit(\"resize\", {\n size: view.size,\n delta: new Point()\n });\n if (obj.onFrame) view.setOnFrame(obj.onFrame);\n view.requestUpdate();\n }\n return exports;\n }\n function loadScript(script) {\n if (/^text\\/(?:x-|)paperscript$/.test(script.type) && PaperScope.getAttribute(script, \"ignore\") !== \"true\") {\n var canvasId = PaperScope.getAttribute(script, \"canvas\"), canvas = document.getElementById(canvasId), src = script.src || script.getAttribute(\"data-src\"), async = PaperScope.hasAttribute(script, \"async\"), scopeAttribute = \"data-paper-scope\";\n if (!canvas) throw new Error('Unable to find canvas with id \"' + canvasId + '\"');\n var scope = PaperScope.get(canvas.getAttribute(scopeAttribute)) || new PaperScope().setup(canvas);\n canvas.setAttribute(scopeAttribute, scope._id);\n if (src) Http.request({\n url: src,\n async: async,\n mimeType: \"text/plain\",\n onLoad: function(code) {\n execute(code, scope, src);\n }\n });\n else execute(script.innerHTML, scope, script.baseURI);\n script.setAttribute(\"data-paper-ignore\", \"true\");\n return scope;\n }\n }\n function loadAll() {\n Base.each(document && document.getElementsByTagName(\"script\"), loadScript);\n }\n function load(script) {\n return script ? loadScript(script) : loadAll();\n }\n if (window) {\n if (document.readyState === \"complete\") setTimeout(loadAll);\n else DomEvent.add(window, {\n load: loadAll\n });\n }\n return {\n compile: compile,\n execute: execute,\n load: load,\n parse: parse,\n calculateBinary: __$__,\n calculateUnary: $__\n };\n }).call(this);\n var paper = new (PaperScope.inject(Base.exports, {\n Base: Base,\n Numerical: Numerical,\n Key: Key,\n DomEvent: DomEvent,\n DomElement: DomElement,\n document: document,\n window: window,\n Symbol: SymbolDefinition,\n PlacedSymbol: SymbolItem\n }))();\n if (paper.agent.node) (parcelRequire(\"gFNhN\"))(paper);\n if (typeof define === \"function\" && define.amd) define(\"paper\", paper);\n else if (module) module.exports = paper;\n return paper;\n}).call(this, typeof self === \"object\" ? self : null);\n\n});\nparcelRegister(\"gFNhN\", function(module, exports) {\n\"use strict\";\n\n});\n\nparcelRegister(\"7bbl5\", function(module, exports) {\n\n$parcel$export(module.exports, \"isIdentifierStart\", function () { return $f0e98b2c23d58ac9$export$56b48cc5d7560ffb; });\n$parcel$export(module.exports, \"isIdentifierChar\", function () { return $f0e98b2c23d58ac9$export$332f4d7bee38db93; });\n$parcel$export(module.exports, \"TokenType\", function () { return $f0e98b2c23d58ac9$export$f435f793048e7a0f; });\n$parcel$export(module.exports, \"keywordTypes\", function () { return $f0e98b2c23d58ac9$export$d53f8326294b31d8; });\n$parcel$export(module.exports, \"tokTypes\", function () { return $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8; });\n$parcel$export(module.exports, \"lineBreak\", function () { return $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6; });\n$parcel$export(module.exports, \"lineBreakG\", function () { return $f0e98b2c23d58ac9$export$866e20207bbc41f2; });\n$parcel$export(module.exports, \"isNewLine\", function () { return $f0e98b2c23d58ac9$export$2c19a3e3b4008fff; });\n$parcel$export(module.exports, \"nonASCIIwhitespace\", function () { return $f0e98b2c23d58ac9$export$268622f0f1cbc82b; });\n$parcel$export(module.exports, \"Position\", function () { return $f0e98b2c23d58ac9$export$13807d9ee5a34a42; });\n$parcel$export(module.exports, \"SourceLocation\", function () { return $f0e98b2c23d58ac9$export$7387db7caf96fcdb; });\n$parcel$export(module.exports, \"getLineInfo\", function () { return $f0e98b2c23d58ac9$export$7af82191547c5ff7; });\n$parcel$export(module.exports, \"defaultOptions\", function () { return $f0e98b2c23d58ac9$export$ba43bf67f3d48107; });\n$parcel$export(module.exports, \"Parser\", function () { return $f0e98b2c23d58ac9$export$7acfa6ed01010e37; });\n$parcel$export(module.exports, \"TokContext\", function () { return $f0e98b2c23d58ac9$export$68e7b4c4d99215d9; });\n$parcel$export(module.exports, \"tokContexts\", function () { return $f0e98b2c23d58ac9$export$2b5f701edfbd6f00; });\n$parcel$export(module.exports, \"Node\", function () { return $f0e98b2c23d58ac9$export$85c928794f8d04d4; });\n$parcel$export(module.exports, \"Token\", function () { return $f0e98b2c23d58ac9$export$50792b0e93539fde; });\n$parcel$export(module.exports, \"version\", function () { return $f0e98b2c23d58ac9$export$83d89fbfd8236492; });\n$parcel$export(module.exports, \"parse\", function () { return $f0e98b2c23d58ac9$export$98e6a39c04603d36; });\n$parcel$export(module.exports, \"parseExpressionAt\", function () { return $f0e98b2c23d58ac9$export$61f24eb03dd7ce92; });\n$parcel$export(module.exports, \"tokenizer\", function () { return $f0e98b2c23d58ac9$export$5f8c09e3ae6f64e1; });\n// This file was generated. Do not modify manually!\nvar $f0e98b2c23d58ac9$var$astralIdentifierCodes = [\n 509,\n 0,\n 227,\n 0,\n 150,\n 4,\n 294,\n 9,\n 1368,\n 2,\n 2,\n 1,\n 6,\n 3,\n 41,\n 2,\n 5,\n 0,\n 166,\n 1,\n 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4706,\n 45,\n 3,\n 22,\n 543,\n 4,\n 4,\n 5,\n 9,\n 7,\n 3,\n 6,\n 31,\n 3,\n 149,\n 2,\n 1418,\n 49,\n 513,\n 54,\n 5,\n 49,\n 9,\n 0,\n 15,\n 0,\n 23,\n 4,\n 2,\n 14,\n 1361,\n 6,\n 2,\n 16,\n 3,\n 6,\n 2,\n 1,\n 2,\n 4,\n 101,\n 0,\n 161,\n 6,\n 10,\n 9,\n 357,\n 0,\n 62,\n 13,\n 499,\n 13,\n 983,\n 6,\n 110,\n 6,\n 6,\n 9,\n 4759,\n 9,\n 787719,\n 239\n];\n// This file was generated. Do not modify manually!\nvar $f0e98b2c23d58ac9$var$astralIdentifierStartCodes = [\n 0,\n 11,\n 2,\n 25,\n 2,\n 18,\n 2,\n 1,\n 2,\n 14,\n 3,\n 13,\n 35,\n 122,\n 70,\n 52,\n 268,\n 28,\n 4,\n 48,\n 48,\n 31,\n 14,\n 29,\n 6,\n 37,\n 11,\n 29,\n 3,\n 35,\n 5,\n 7,\n 2,\n 4,\n 43,\n 157,\n 19,\n 35,\n 5,\n 35,\n 5,\n 39,\n 9,\n 51,\n 13,\n 10,\n 2,\n 14,\n 2,\n 6,\n 2,\n 1,\n 2,\n 10,\n 2,\n 14,\n 2,\n 6,\n 2,\n 1,\n 68,\n 310,\n 10,\n 21,\n 11,\n 7,\n 25,\n 5,\n 2,\n 41,\n 2,\n 8,\n 70,\n 5,\n 3,\n 0,\n 2,\n 43,\n 2,\n 1,\n 4,\n 0,\n 3,\n 22,\n 11,\n 22,\n 10,\n 30,\n 66,\n 18,\n 2,\n 1,\n 11,\n 21,\n 11,\n 25,\n 71,\n 55,\n 7,\n 1,\n 65,\n 0,\n 16,\n 3,\n 2,\n 2,\n 2,\n 28,\n 43,\n 28,\n 4,\n 28,\n 36,\n 7,\n 2,\n 27,\n 28,\n 53,\n 11,\n 21,\n 11,\n 18,\n 14,\n 17,\n 111,\n 72,\n 56,\n 50,\n 14,\n 50,\n 14,\n 35,\n 349,\n 41,\n 7,\n 1,\n 79,\n 28,\n 11,\n 0,\n 9,\n 21,\n 43,\n 17,\n 47,\n 20,\n 28,\n 22,\n 13,\n 52,\n 58,\n 1,\n 3,\n 0,\n 14,\n 44,\n 33,\n 24,\n 27,\n 35,\n 30,\n 0,\n 3,\n 0,\n 9,\n 34,\n 4,\n 0,\n 13,\n 47,\n 15,\n 3,\n 22,\n 0,\n 2,\n 0,\n 36,\n 17,\n 2,\n 24,\n 20,\n 1,\n 64,\n 6,\n 2,\n 0,\n 2,\n 3,\n 2,\n 14,\n 2,\n 9,\n 8,\n 46,\n 39,\n 7,\n 3,\n 1,\n 3,\n 21,\n 2,\n 6,\n 2,\n 1,\n 2,\n 4,\n 4,\n 0,\n 19,\n 0,\n 13,\n 4,\n 159,\n 52,\n 19,\n 3,\n 21,\n 2,\n 31,\n 47,\n 21,\n 1,\n 2,\n 0,\n 185,\n 46,\n 42,\n 3,\n 37,\n 47,\n 21,\n 0,\n 60,\n 42,\n 14,\n 0,\n 72,\n 26,\n 38,\n 6,\n 186,\n 43,\n 117,\n 63,\n 32,\n 7,\n 3,\n 0,\n 3,\n 7,\n 2,\n 1,\n 2,\n 23,\n 16,\n 0,\n 2,\n 0,\n 95,\n 7,\n 3,\n 38,\n 17,\n 0,\n 2,\n 0,\n 29,\n 0,\n 11,\n 39,\n 8,\n 0,\n 22,\n 0,\n 12,\n 45,\n 20,\n 0,\n 19,\n 72,\n 264,\n 8,\n 2,\n 36,\n 18,\n 0,\n 50,\n 29,\n 113,\n 6,\n 2,\n 1,\n 2,\n 37,\n 22,\n 0,\n 26,\n 5,\n 2,\n 1,\n 2,\n 31,\n 15,\n 0,\n 328,\n 18,\n 16,\n 0,\n 2,\n 12,\n 2,\n 33,\n 125,\n 0,\n 80,\n 921,\n 103,\n 110,\n 18,\n 195,\n 2637,\n 96,\n 16,\n 1071,\n 18,\n 5,\n 4026,\n 582,\n 8634,\n 568,\n 8,\n 30,\n 18,\n 78,\n 18,\n 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\n 16,\n 6,\n 2,\n 2,\n 4,\n 2,\n 16,\n 4421,\n 42719,\n 33,\n 4153,\n 7,\n 221,\n 3,\n 5761,\n 15,\n 7472,\n 16,\n 621,\n 2467,\n 541,\n 1507,\n 4938,\n 6,\n 4191\n];\n// This file was generated. Do not modify manually!\nvar $f0e98b2c23d58ac9$var$nonASCIIidentifierChars = \"\\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\\u0898-\\u089F\\u08CA-\\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\\u0B55-\\u0B57\\u0B62\\u0B63\\u0B66-\\u0B6F\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C04\\u0C3C\\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\\u0CF3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D66-\\u0D6F\\u0D81-\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0E50-\\u0E59\\u0EB1\\u0EB4-\\u0EBC\\u0EC8-\\u0ECE\\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-\\u1715\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u180F-\\u1819\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u194F\\u19D0-\\u19DA\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AB0-\\u1ABD\\u1ABF-\\u1ACE\\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-\\u1DFF\\u200C\\u200D\\u203F\\u2040\\u2054\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\u30FB\\uA620-\\uA629\\uA66F\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA82C\\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\\uFF65\";\n// This file was generated. Do not modify manually!\nvar $f0e98b2c23d58ac9$var$nonASCIIidentifierStartChars = \"\\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\\u0870-\\u0887\\u0889-\\u088E\\u08A0-\\u08C9\\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\\u0C5D\\u0C60\\u0C61\\u0C80\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D04-\\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-\\u1711\\u171F-\\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-\\u1B4C\\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-\\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-\\u31BF\\u31F0-\\u31FF\\u3400-\\u4DBF\\u4E00-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7CA\\uA7D0\\uA7D1\\uA7D3\\uA7D5-\\uA7D9\\uA7F2-\\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-\\uAB69\\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\";\n// These are a run-length and offset encoded representation of the\n// >0xffff code points that are a valid part of identifiers. The\n// offset starts at 0x10000, and each pair of numbers represents an\n// offset to the next range, and then a size of the range.\n// Reserved word lists for various dialects of the language\nvar $f0e98b2c23d58ac9$var$reservedWords = {\n 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\",\n 5: \"class enum extends super const export import\",\n 6: \"enum\",\n strict: \"implements interface let package private protected public static yield\",\n strictBind: \"eval arguments\"\n};\n// And the keywords\nvar $f0e98b2c23d58ac9$var$ecma5AndLessKeywords = \"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\";\nvar $f0e98b2c23d58ac9$var$keywords$1 = {\n 5: $f0e98b2c23d58ac9$var$ecma5AndLessKeywords,\n \"5module\": $f0e98b2c23d58ac9$var$ecma5AndLessKeywords + \" export import\",\n 6: $f0e98b2c23d58ac9$var$ecma5AndLessKeywords + \" const class extends export import super\"\n};\nvar $f0e98b2c23d58ac9$var$keywordRelationalOperator = /^in(stanceof)?$/;\n// ## Character categories\nvar $f0e98b2c23d58ac9$var$nonASCIIidentifierStart = new RegExp(\"[\" + $f0e98b2c23d58ac9$var$nonASCIIidentifierStartChars + \"]\");\nvar $f0e98b2c23d58ac9$var$nonASCIIidentifier = new RegExp(\"[\" + $f0e98b2c23d58ac9$var$nonASCIIidentifierStartChars + $f0e98b2c23d58ac9$var$nonASCIIidentifierChars + \"]\");\n// This has a complexity linear to the value of the code. The\n// assumption is that looking up astral identifier characters is\n// rare.\nfunction $f0e98b2c23d58ac9$var$isInAstralSet(code, set) {\n var pos = 0x10000;\n for(var i = 0; i < set.length; i += 2){\n pos += set[i];\n if (pos > code) return false;\n pos += set[i + 1];\n if (pos >= code) return true;\n }\n return false;\n}\n// Test whether a given character code starts an identifier.\nfunction $f0e98b2c23d58ac9$export$56b48cc5d7560ffb(code, astral) {\n if (code < 65) return code === 36;\n if (code < 91) return true;\n if (code < 97) return code === 95;\n if (code < 123) return true;\n if (code <= 0xffff) return code >= 0xaa && $f0e98b2c23d58ac9$var$nonASCIIidentifierStart.test(String.fromCharCode(code));\n if (astral === false) return false;\n return $f0e98b2c23d58ac9$var$isInAstralSet(code, $f0e98b2c23d58ac9$var$astralIdentifierStartCodes);\n}\n// Test whether a given character is part of an identifier.\nfunction $f0e98b2c23d58ac9$export$332f4d7bee38db93(code, astral) {\n if (code < 48) return code === 36;\n if (code < 58) return true;\n if (code < 65) return false;\n if (code < 91) return true;\n if (code < 97) return code === 95;\n if (code < 123) return true;\n if (code <= 0xffff) return code >= 0xaa && $f0e98b2c23d58ac9$var$nonASCIIidentifier.test(String.fromCharCode(code));\n if (astral === false) return false;\n return $f0e98b2c23d58ac9$var$isInAstralSet(code, $f0e98b2c23d58ac9$var$astralIdentifierStartCodes) || $f0e98b2c23d58ac9$var$isInAstralSet(code, $f0e98b2c23d58ac9$var$astralIdentifierCodes);\n}\n// ## Token types\n// The assignment of fine-grained, information-carrying type objects\n// allows the tokenizer to store the information it has about a\n// token in a way that is very cheap for the parser to look up.\n// All token type variables start with an underscore, to make them\n// easy to recognize.\n// The `beforeExpr` property is used to disambiguate between regular\n// expressions and divisions. It is set on all token types that can\n// be followed by an expression (thus, a slash after them would be a\n// regular expression).\n//\n// The `startsExpr` property is used to check if the token ends a\n// `yield` expression. It is set on all token types that either can\n// directly start an expression (like a quotation mark) or can\n// continue an expression (like the body of a string).\n//\n// `isLoop` marks a keyword as starting a loop, which is important\n// to know when parsing a label, in order to allow or disallow\n// continue jumps to that label.\nvar $f0e98b2c23d58ac9$export$f435f793048e7a0f = function TokenType(label, conf) {\n if (conf === void 0) conf = {};\n this.label = label;\n this.keyword = conf.keyword;\n this.beforeExpr = !!conf.beforeExpr;\n this.startsExpr = !!conf.startsExpr;\n this.isLoop = !!conf.isLoop;\n this.isAssign = !!conf.isAssign;\n this.prefix = !!conf.prefix;\n this.postfix = !!conf.postfix;\n this.binop = conf.binop || null;\n this.updateContext = null;\n};\nfunction $f0e98b2c23d58ac9$var$binop(name, prec) {\n return new $f0e98b2c23d58ac9$export$f435f793048e7a0f(name, {\n beforeExpr: true,\n binop: prec\n });\n}\nvar $f0e98b2c23d58ac9$var$beforeExpr = {\n beforeExpr: true\n}, $f0e98b2c23d58ac9$var$startsExpr = {\n startsExpr: true\n};\n// Map keyword names to token types.\nvar $f0e98b2c23d58ac9$export$d53f8326294b31d8 = {};\n// Succinct definitions of keyword token types\nfunction $f0e98b2c23d58ac9$var$kw(name, options) {\n if (options === void 0) options = {};\n options.keyword = name;\n return $f0e98b2c23d58ac9$export$d53f8326294b31d8[name] = new $f0e98b2c23d58ac9$export$f435f793048e7a0f(name, options);\n}\nvar $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8 = {\n num: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"num\", $f0e98b2c23d58ac9$var$startsExpr),\n regexp: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"regexp\", $f0e98b2c23d58ac9$var$startsExpr),\n string: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"string\", $f0e98b2c23d58ac9$var$startsExpr),\n name: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"name\", $f0e98b2c23d58ac9$var$startsExpr),\n privateId: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"privateId\", $f0e98b2c23d58ac9$var$startsExpr),\n eof: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"eof\"),\n // Punctuation token types.\n bracketL: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"[\", {\n beforeExpr: true,\n startsExpr: true\n }),\n bracketR: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"]\"),\n braceL: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"{\", {\n beforeExpr: true,\n startsExpr: true\n }),\n braceR: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"}\"),\n parenL: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"(\", {\n beforeExpr: true,\n startsExpr: true\n }),\n parenR: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\")\"),\n comma: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\",\", $f0e98b2c23d58ac9$var$beforeExpr),\n semi: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\";\", $f0e98b2c23d58ac9$var$beforeExpr),\n colon: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\":\", $f0e98b2c23d58ac9$var$beforeExpr),\n dot: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\".\"),\n question: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"?\", $f0e98b2c23d58ac9$var$beforeExpr),\n questionDot: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"?.\"),\n arrow: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"=>\", $f0e98b2c23d58ac9$var$beforeExpr),\n template: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"template\"),\n invalidTemplate: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"invalidTemplate\"),\n ellipsis: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"...\", $f0e98b2c23d58ac9$var$beforeExpr),\n backQuote: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"`\", $f0e98b2c23d58ac9$var$startsExpr),\n dollarBraceL: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"${\", {\n beforeExpr: true,\n startsExpr: true\n }),\n // Operators. These carry several kinds of properties to help the\n // parser use them properly (the presence of these properties is\n // what categorizes them as operators).\n //\n // `binop`, when present, specifies that this operator is a binary\n // operator, and will refer to its precedence.\n //\n // `prefix` and `postfix` mark the operator as a prefix or postfix\n // unary operator.\n //\n // `isAssign` marks all of `=`, `+=`, `-=` etcetera, which act as\n // binary operators with a very low precedence, that should result\n // in AssignmentExpression nodes.\n eq: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"=\", {\n beforeExpr: true,\n isAssign: true\n }),\n assign: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"_=\", {\n beforeExpr: true,\n isAssign: true\n }),\n incDec: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"++/--\", {\n prefix: true,\n postfix: true,\n startsExpr: true\n }),\n prefix: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"!/~\", {\n beforeExpr: true,\n prefix: true,\n startsExpr: true\n }),\n logicalOR: $f0e98b2c23d58ac9$var$binop(\"||\", 1),\n logicalAND: $f0e98b2c23d58ac9$var$binop(\"&&\", 2),\n bitwiseOR: $f0e98b2c23d58ac9$var$binop(\"|\", 3),\n bitwiseXOR: $f0e98b2c23d58ac9$var$binop(\"^\", 4),\n bitwiseAND: $f0e98b2c23d58ac9$var$binop(\"&\", 5),\n equality: $f0e98b2c23d58ac9$var$binop(\"==/!=/===/!==\", 6),\n relational: $f0e98b2c23d58ac9$var$binop(\"/<=/>=\", 7),\n bitShift: $f0e98b2c23d58ac9$var$binop(\"<>/>>>\", 8),\n plusMin: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"+/-\", {\n beforeExpr: true,\n binop: 9,\n prefix: true,\n startsExpr: true\n }),\n modulo: $f0e98b2c23d58ac9$var$binop(\"%\", 10),\n star: $f0e98b2c23d58ac9$var$binop(\"*\", 10),\n slash: $f0e98b2c23d58ac9$var$binop(\"/\", 10),\n starstar: new $f0e98b2c23d58ac9$export$f435f793048e7a0f(\"**\", {\n beforeExpr: true\n }),\n coalesce: $f0e98b2c23d58ac9$var$binop(\"??\", 1),\n // Keyword token types.\n _break: $f0e98b2c23d58ac9$var$kw(\"break\"),\n _case: $f0e98b2c23d58ac9$var$kw(\"case\", $f0e98b2c23d58ac9$var$beforeExpr),\n _catch: $f0e98b2c23d58ac9$var$kw(\"catch\"),\n _continue: $f0e98b2c23d58ac9$var$kw(\"continue\"),\n _debugger: $f0e98b2c23d58ac9$var$kw(\"debugger\"),\n _default: $f0e98b2c23d58ac9$var$kw(\"default\", $f0e98b2c23d58ac9$var$beforeExpr),\n _do: $f0e98b2c23d58ac9$var$kw(\"do\", {\n isLoop: true,\n beforeExpr: true\n }),\n _else: $f0e98b2c23d58ac9$var$kw(\"else\", $f0e98b2c23d58ac9$var$beforeExpr),\n _finally: $f0e98b2c23d58ac9$var$kw(\"finally\"),\n _for: $f0e98b2c23d58ac9$var$kw(\"for\", {\n isLoop: true\n }),\n _function: $f0e98b2c23d58ac9$var$kw(\"function\", $f0e98b2c23d58ac9$var$startsExpr),\n _if: $f0e98b2c23d58ac9$var$kw(\"if\"),\n _return: $f0e98b2c23d58ac9$var$kw(\"return\", $f0e98b2c23d58ac9$var$beforeExpr),\n _switch: $f0e98b2c23d58ac9$var$kw(\"switch\"),\n _throw: $f0e98b2c23d58ac9$var$kw(\"throw\", $f0e98b2c23d58ac9$var$beforeExpr),\n _try: $f0e98b2c23d58ac9$var$kw(\"try\"),\n _var: $f0e98b2c23d58ac9$var$kw(\"var\"),\n _const: $f0e98b2c23d58ac9$var$kw(\"const\"),\n _while: $f0e98b2c23d58ac9$var$kw(\"while\", {\n isLoop: true\n }),\n _with: $f0e98b2c23d58ac9$var$kw(\"with\"),\n _new: $f0e98b2c23d58ac9$var$kw(\"new\", {\n beforeExpr: true,\n startsExpr: true\n }),\n _this: $f0e98b2c23d58ac9$var$kw(\"this\", $f0e98b2c23d58ac9$var$startsExpr),\n _super: $f0e98b2c23d58ac9$var$kw(\"super\", $f0e98b2c23d58ac9$var$startsExpr),\n _class: $f0e98b2c23d58ac9$var$kw(\"class\", $f0e98b2c23d58ac9$var$startsExpr),\n _extends: $f0e98b2c23d58ac9$var$kw(\"extends\", $f0e98b2c23d58ac9$var$beforeExpr),\n _export: $f0e98b2c23d58ac9$var$kw(\"export\"),\n _import: $f0e98b2c23d58ac9$var$kw(\"import\", $f0e98b2c23d58ac9$var$startsExpr),\n _null: $f0e98b2c23d58ac9$var$kw(\"null\", $f0e98b2c23d58ac9$var$startsExpr),\n _true: $f0e98b2c23d58ac9$var$kw(\"true\", $f0e98b2c23d58ac9$var$startsExpr),\n _false: $f0e98b2c23d58ac9$var$kw(\"false\", $f0e98b2c23d58ac9$var$startsExpr),\n _in: $f0e98b2c23d58ac9$var$kw(\"in\", {\n beforeExpr: true,\n binop: 7\n }),\n _instanceof: $f0e98b2c23d58ac9$var$kw(\"instanceof\", {\n beforeExpr: true,\n binop: 7\n }),\n _typeof: $f0e98b2c23d58ac9$var$kw(\"typeof\", {\n beforeExpr: true,\n prefix: true,\n startsExpr: true\n }),\n _void: $f0e98b2c23d58ac9$var$kw(\"void\", {\n beforeExpr: true,\n prefix: true,\n startsExpr: true\n }),\n _delete: $f0e98b2c23d58ac9$var$kw(\"delete\", {\n beforeExpr: true,\n prefix: true,\n startsExpr: true\n })\n};\n// Matches a whole line break (where CRLF is considered a single\n// line break). Used to count lines.\nvar $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6 = /\\r\\n?|\\n|\\u2028|\\u2029/;\nvar $f0e98b2c23d58ac9$export$866e20207bbc41f2 = new RegExp($f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.source, \"g\");\nfunction $f0e98b2c23d58ac9$export$2c19a3e3b4008fff(code) {\n return code === 10 || code === 13 || code === 0x2028 || code === 0x2029;\n}\nfunction $f0e98b2c23d58ac9$var$nextLineBreak(code, from, end) {\n if (end === void 0) end = code.length;\n for(var i = from; i < end; i++){\n var next = code.charCodeAt(i);\n if ($f0e98b2c23d58ac9$export$2c19a3e3b4008fff(next)) return i < end - 1 && next === 13 && code.charCodeAt(i + 1) === 10 ? i + 2 : i + 1;\n }\n return -1;\n}\nvar $f0e98b2c23d58ac9$export$268622f0f1cbc82b = /[\\u1680\\u2000-\\u200a\\u202f\\u205f\\u3000\\ufeff]/;\nvar $f0e98b2c23d58ac9$var$skipWhiteSpace = /(?:\\s|\\/\\/.*|\\/\\*[^]*?\\*\\/)*/g;\nvar $f0e98b2c23d58ac9$var$ref = Object.prototype;\nvar $f0e98b2c23d58ac9$var$hasOwnProperty = $f0e98b2c23d58ac9$var$ref.hasOwnProperty;\nvar $f0e98b2c23d58ac9$var$toString = $f0e98b2c23d58ac9$var$ref.toString;\nvar $f0e98b2c23d58ac9$var$hasOwn = Object.hasOwn || function(obj, propName) {\n return $f0e98b2c23d58ac9$var$hasOwnProperty.call(obj, propName);\n};\nvar $f0e98b2c23d58ac9$var$isArray = Array.isArray || function(obj) {\n return $f0e98b2c23d58ac9$var$toString.call(obj) === \"[object Array]\";\n};\nvar $f0e98b2c23d58ac9$var$regexpCache = Object.create(null);\nfunction $f0e98b2c23d58ac9$var$wordsRegexp(words) {\n return $f0e98b2c23d58ac9$var$regexpCache[words] || ($f0e98b2c23d58ac9$var$regexpCache[words] = new RegExp(\"^(?:\" + words.replace(/ /g, \"|\") + \")$\"));\n}\nfunction $f0e98b2c23d58ac9$var$codePointToString(code) {\n // UTF-16 Decoding\n if (code <= 0xFFFF) return String.fromCharCode(code);\n code -= 0x10000;\n return String.fromCharCode((code >> 10) + 0xD800, (code & 1023) + 0xDC00);\n}\nvar $f0e98b2c23d58ac9$var$loneSurrogate = /(?:[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])/;\n// These are used when `options.locations` is on, for the\n// `startLoc` and `endLoc` properties.\nvar $f0e98b2c23d58ac9$export$13807d9ee5a34a42 = function Position(line, col) {\n this.line = line;\n this.column = col;\n};\n$f0e98b2c23d58ac9$export$13807d9ee5a34a42.prototype.offset = function offset(n) {\n return new $f0e98b2c23d58ac9$export$13807d9ee5a34a42(this.line, this.column + n);\n};\nvar $f0e98b2c23d58ac9$export$7387db7caf96fcdb = function SourceLocation(p, start, end) {\n this.start = start;\n this.end = end;\n if (p.sourceFile !== null) this.source = p.sourceFile;\n};\n// The `getLineInfo` function is mostly useful when the\n// `locations` option is off (for performance reasons) and you\n// want to find the line/column position for a given character\n// offset. `input` should be the code string that the offset refers\n// into.\nfunction $f0e98b2c23d58ac9$export$7af82191547c5ff7(input, offset) {\n for(var line = 1, cur = 0;;){\n var nextBreak = $f0e98b2c23d58ac9$var$nextLineBreak(input, cur, offset);\n if (nextBreak < 0) return new $f0e98b2c23d58ac9$export$13807d9ee5a34a42(line, offset - cur);\n ++line;\n cur = nextBreak;\n }\n}\n// A second argument must be given to configure the parser process.\n// These options are recognized (only `ecmaVersion` is required):\nvar $f0e98b2c23d58ac9$export$ba43bf67f3d48107 = {\n // `ecmaVersion` indicates the ECMAScript version to parse. Must be\n // either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10\n // (2019), 11 (2020), 12 (2021), 13 (2022), 14 (2023), or `\"latest\"`\n // (the latest version the library supports). This influences\n // support for strict mode, the set of reserved words, and support\n // for new syntax features.\n ecmaVersion: null,\n // `sourceType` indicates the mode the code should be parsed in.\n // Can be either `\"script\"` or `\"module\"`. This influences global\n // strict mode and parsing of `import` and `export` declarations.\n sourceType: \"script\",\n // `onInsertedSemicolon` can be a callback that will be called when\n // a semicolon is automatically inserted. It will be passed the\n // position of the inserted semicolon as an offset, and if\n // `locations` is enabled, it is given the location as a `{line,\n // column}` object as second argument.\n onInsertedSemicolon: null,\n // `onTrailingComma` is similar to `onInsertedSemicolon`, but for\n // trailing commas.\n onTrailingComma: null,\n // By default, reserved words are only enforced if ecmaVersion >= 5.\n // Set `allowReserved` to a boolean value to explicitly turn this on\n // an off. When this option has the value \"never\", reserved words\n // and keywords can also not be used as property names.\n allowReserved: null,\n // When enabled, a return at the top level is not considered an\n // error.\n allowReturnOutsideFunction: false,\n // When enabled, import/export statements are not constrained to\n // appearing at the top of the program, and an import.meta expression\n // in a script isn't considered an error.\n allowImportExportEverywhere: false,\n // By default, await identifiers are allowed to appear at the top-level scope only if ecmaVersion >= 2022.\n // When enabled, await identifiers are allowed to appear at the top-level scope,\n // but they are still not allowed in non-async functions.\n allowAwaitOutsideFunction: null,\n // When enabled, super identifiers are not constrained to\n // appearing in methods and do not raise an error when they appear elsewhere.\n allowSuperOutsideMethod: null,\n // When enabled, hashbang directive in the beginning of file is\n // allowed and treated as a line comment. Enabled by default when\n // `ecmaVersion` >= 2023.\n allowHashBang: false,\n // By default, the parser will verify that private properties are\n // only used in places where they are valid and have been declared.\n // Set this to false to turn such checks off.\n checkPrivateFields: true,\n // When `locations` is on, `loc` properties holding objects with\n // `start` and `end` properties in `{line, column}` form (with\n // line being 1-based and column 0-based) will be attached to the\n // nodes.\n locations: false,\n // A function can be passed as `onToken` option, which will\n // cause Acorn to call that function with object in the same\n // format as tokens returned from `tokenizer().getToken()`. Note\n // that you are not allowed to call the parser from the\n // callback—that will corrupt its internal state.\n onToken: null,\n // A function can be passed as `onComment` option, which will\n // cause Acorn to call that function with `(block, text, start,\n // end)` parameters whenever a comment is skipped. `block` is a\n // boolean indicating whether this is a block (`/* */`) comment,\n // `text` is the content of the comment, and `start` and `end` are\n // character offsets that denote the start and end of the comment.\n // When the `locations` option is on, two more parameters are\n // passed, the full `{line, column}` locations of the start and\n // end of the comments. Note that you are not allowed to call the\n // parser from the callback—that will corrupt its internal state.\n // When this option has an array as value, objects representing the\n // comments are pushed to it.\n onComment: null,\n // Nodes have their start and end characters offsets recorded in\n // `start` and `end` properties (directly on the node, rather than\n // the `loc` object, which holds line/column data. To also add a\n // [semi-standardized][range] `range` property holding a `[start,\n // end]` array with the same numbers, set the `ranges` option to\n // `true`.\n //\n // [range]: https://bugzilla.mozilla.org/show_bug.cgi?id=745678\n ranges: false,\n // It is possible to parse multiple files into a single AST by\n // passing the tree produced by parsing the first file as\n // `program` option in subsequent parses. This will add the\n // toplevel forms of the parsed file to the `Program` (top) node\n // of an existing parse tree.\n program: null,\n // When `locations` is on, you can pass this to record the source\n // file in every node's `loc` object.\n sourceFile: null,\n // This value, if given, is stored in every node, whether\n // `locations` is on or off.\n directSourceFile: null,\n // When enabled, parenthesized expressions are represented by\n // (non-standard) ParenthesizedExpression nodes\n preserveParens: false\n};\n// Interpret and default an options object\nvar $f0e98b2c23d58ac9$var$warnedAboutEcmaVersion = false;\nfunction $f0e98b2c23d58ac9$var$getOptions(opts) {\n var options = {};\n for(var opt in $f0e98b2c23d58ac9$export$ba43bf67f3d48107)options[opt] = opts && $f0e98b2c23d58ac9$var$hasOwn(opts, opt) ? opts[opt] : $f0e98b2c23d58ac9$export$ba43bf67f3d48107[opt];\n if (options.ecmaVersion === \"latest\") options.ecmaVersion = 1e8;\n else if (options.ecmaVersion == null) {\n if (!$f0e98b2c23d58ac9$var$warnedAboutEcmaVersion && typeof console === \"object\" && console.warn) {\n $f0e98b2c23d58ac9$var$warnedAboutEcmaVersion = true;\n console.warn(\"Since Acorn 8.0.0, options.ecmaVersion is required.\\nDefaulting to 2020, but this will stop working in the future.\");\n }\n options.ecmaVersion = 11;\n } else if (options.ecmaVersion >= 2015) options.ecmaVersion -= 2009;\n if (options.allowReserved == null) options.allowReserved = options.ecmaVersion < 5;\n if (!opts || opts.allowHashBang == null) options.allowHashBang = options.ecmaVersion >= 14;\n if ($f0e98b2c23d58ac9$var$isArray(options.onToken)) {\n var tokens = options.onToken;\n options.onToken = function(token) {\n return tokens.push(token);\n };\n }\n if ($f0e98b2c23d58ac9$var$isArray(options.onComment)) options.onComment = $f0e98b2c23d58ac9$var$pushComment(options, options.onComment);\n return options;\n}\nfunction $f0e98b2c23d58ac9$var$pushComment(options, array) {\n return function(block, text, start, end, startLoc, endLoc) {\n var comment = {\n type: block ? \"Block\" : \"Line\",\n value: text,\n start: start,\n end: end\n };\n if (options.locations) comment.loc = new $f0e98b2c23d58ac9$export$7387db7caf96fcdb(this, startLoc, endLoc);\n if (options.ranges) comment.range = [\n start,\n end\n ];\n array.push(comment);\n };\n}\n// Each scope gets a bitset that may contain these flags\nvar $f0e98b2c23d58ac9$var$SCOPE_TOP = 1, $f0e98b2c23d58ac9$var$SCOPE_FUNCTION = 2, $f0e98b2c23d58ac9$var$SCOPE_ASYNC = 4, $f0e98b2c23d58ac9$var$SCOPE_GENERATOR = 8, $f0e98b2c23d58ac9$var$SCOPE_ARROW = 16, $f0e98b2c23d58ac9$var$SCOPE_SIMPLE_CATCH = 32, $f0e98b2c23d58ac9$var$SCOPE_SUPER = 64, $f0e98b2c23d58ac9$var$SCOPE_DIRECT_SUPER = 128, $f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK = 256, $f0e98b2c23d58ac9$var$SCOPE_VAR = $f0e98b2c23d58ac9$var$SCOPE_TOP | $f0e98b2c23d58ac9$var$SCOPE_FUNCTION | $f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK;\nfunction $f0e98b2c23d58ac9$var$functionFlags(async, generator) {\n return $f0e98b2c23d58ac9$var$SCOPE_FUNCTION | (async ? $f0e98b2c23d58ac9$var$SCOPE_ASYNC : 0) | (generator ? $f0e98b2c23d58ac9$var$SCOPE_GENERATOR : 0);\n}\n// Used in checkLVal* and declareName to determine the type of a binding\nvar $f0e98b2c23d58ac9$var$BIND_NONE = 0, $f0e98b2c23d58ac9$var$BIND_VAR = 1, $f0e98b2c23d58ac9$var$BIND_LEXICAL = 2, $f0e98b2c23d58ac9$var$BIND_FUNCTION = 3, $f0e98b2c23d58ac9$var$BIND_SIMPLE_CATCH = 4, $f0e98b2c23d58ac9$var$BIND_OUTSIDE = 5; // Special case for function names as bound inside the function\nvar $f0e98b2c23d58ac9$export$7acfa6ed01010e37 = function Parser(options, input, startPos) {\n this.options = options = $f0e98b2c23d58ac9$var$getOptions(options);\n this.sourceFile = options.sourceFile;\n this.keywords = $f0e98b2c23d58ac9$var$wordsRegexp($f0e98b2c23d58ac9$var$keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === \"module\" ? \"5module\" : 5]);\n var reserved = \"\";\n if (options.allowReserved !== true) {\n reserved = $f0e98b2c23d58ac9$var$reservedWords[options.ecmaVersion >= 6 ? 6 : options.ecmaVersion === 5 ? 5 : 3];\n if (options.sourceType === \"module\") reserved += \" await\";\n }\n this.reservedWords = $f0e98b2c23d58ac9$var$wordsRegexp(reserved);\n var reservedStrict = (reserved ? reserved + \" \" : \"\") + $f0e98b2c23d58ac9$var$reservedWords.strict;\n this.reservedWordsStrict = $f0e98b2c23d58ac9$var$wordsRegexp(reservedStrict);\n this.reservedWordsStrictBind = $f0e98b2c23d58ac9$var$wordsRegexp(reservedStrict + \" \" + $f0e98b2c23d58ac9$var$reservedWords.strictBind);\n this.input = String(input);\n // Used to signal to callers of `readWord1` whether the word\n // contained any escape sequences. This is needed because words with\n // escape sequences must not be interpreted as keywords.\n this.containsEsc = false;\n // Set up token state\n // The current position of the tokenizer in the input.\n if (startPos) {\n this.pos = startPos;\n this.lineStart = this.input.lastIndexOf(\"\\n\", startPos - 1) + 1;\n this.curLine = this.input.slice(0, this.lineStart).split($f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6).length;\n } else {\n this.pos = this.lineStart = 0;\n this.curLine = 1;\n }\n // Properties of the current token:\n // Its type\n this.type = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof;\n // For tokens that include more information than their type, the value\n this.value = null;\n // Its start and end offset\n this.start = this.end = this.pos;\n // And, if locations are used, the {line, column} object\n // corresponding to those offsets\n this.startLoc = this.endLoc = this.curPosition();\n // Position information for the previous token\n this.lastTokEndLoc = this.lastTokStartLoc = null;\n this.lastTokStart = this.lastTokEnd = this.pos;\n // The context stack is used to superficially track syntactic\n // context to predict whether a regular expression is allowed in a\n // given position.\n this.context = this.initialContext();\n this.exprAllowed = true;\n // Figure out if it's a module code.\n this.inModule = options.sourceType === \"module\";\n this.strict = this.inModule || this.strictDirective(this.pos);\n // Used to signify the start of a potential arrow function\n this.potentialArrowAt = -1;\n this.potentialArrowInForAwait = false;\n // Positions to delayed-check that yield/await does not exist in default parameters.\n this.yieldPos = this.awaitPos = this.awaitIdentPos = 0;\n // Labels in scope.\n this.labels = [];\n // Thus-far undefined exports.\n this.undefinedExports = Object.create(null);\n // If enabled, skip leading hashbang line.\n if (this.pos === 0 && options.allowHashBang && this.input.slice(0, 2) === \"#!\") this.skipLineComment(2);\n // Scope tracking for duplicate variable names (see scope.js)\n this.scopeStack = [];\n this.enterScope($f0e98b2c23d58ac9$var$SCOPE_TOP);\n // For RegExp validation\n this.regexpState = null;\n // The stack of private names.\n // Each element has two properties: 'declared' and 'used'.\n // When it exited from the outermost class definition, all used private names must be declared.\n this.privateNameStack = [];\n};\nvar $f0e98b2c23d58ac9$var$prototypeAccessors = {\n inFunction: {\n configurable: true\n },\n inGenerator: {\n configurable: true\n },\n inAsync: {\n configurable: true\n },\n canAwait: {\n configurable: true\n },\n allowSuper: {\n configurable: true\n },\n allowDirectSuper: {\n configurable: true\n },\n treatFunctionsAsVar: {\n configurable: true\n },\n allowNewDotTarget: {\n configurable: true\n },\n inClassStaticBlock: {\n configurable: true\n }\n};\n$f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype.parse = function parse() {\n var node = this.options.program || this.startNode();\n this.nextToken();\n return this.parseTopLevel(node);\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.inFunction.get = function() {\n return (this.currentVarScope().flags & $f0e98b2c23d58ac9$var$SCOPE_FUNCTION) > 0;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.inGenerator.get = function() {\n return (this.currentVarScope().flags & $f0e98b2c23d58ac9$var$SCOPE_GENERATOR) > 0 && !this.currentVarScope().inClassFieldInit;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.inAsync.get = function() {\n return (this.currentVarScope().flags & $f0e98b2c23d58ac9$var$SCOPE_ASYNC) > 0 && !this.currentVarScope().inClassFieldInit;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.canAwait.get = function() {\n for(var i = this.scopeStack.length - 1; i >= 0; i--){\n var scope = this.scopeStack[i];\n if (scope.inClassFieldInit || scope.flags & $f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK) return false;\n if (scope.flags & $f0e98b2c23d58ac9$var$SCOPE_FUNCTION) return (scope.flags & $f0e98b2c23d58ac9$var$SCOPE_ASYNC) > 0;\n }\n return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.allowSuper.get = function() {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & $f0e98b2c23d58ac9$var$SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.allowDirectSuper.get = function() {\n return (this.currentThisScope().flags & $f0e98b2c23d58ac9$var$SCOPE_DIRECT_SUPER) > 0;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.treatFunctionsAsVar.get = function() {\n return this.treatFunctionsAsVarInScope(this.currentScope());\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.allowNewDotTarget.get = function() {\n var ref = this.currentThisScope();\n var flags = ref.flags;\n var inClassFieldInit = ref.inClassFieldInit;\n return (flags & ($f0e98b2c23d58ac9$var$SCOPE_FUNCTION | $f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK)) > 0 || inClassFieldInit;\n};\n$f0e98b2c23d58ac9$var$prototypeAccessors.inClassStaticBlock.get = function() {\n return (this.currentVarScope().flags & $f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK) > 0;\n};\n$f0e98b2c23d58ac9$export$7acfa6ed01010e37.extend = function extend() {\n var plugins = [], len = arguments.length;\n while(len--)plugins[len] = arguments[len];\n var cls = this;\n for(var i = 0; i < plugins.length; i++)cls = plugins[i](cls);\n return cls;\n};\n$f0e98b2c23d58ac9$export$7acfa6ed01010e37.parse = function parse(input, options) {\n return new this(options, input).parse();\n};\n$f0e98b2c23d58ac9$export$7acfa6ed01010e37.parseExpressionAt = function parseExpressionAt(input, pos, options) {\n var parser = new this(options, input, pos);\n parser.nextToken();\n return parser.parseExpression();\n};\n$f0e98b2c23d58ac9$export$7acfa6ed01010e37.tokenizer = function tokenizer(input, options) {\n return new this(options, input);\n};\nObject.defineProperties($f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype, $f0e98b2c23d58ac9$var$prototypeAccessors);\nvar $f0e98b2c23d58ac9$var$pp$9 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// ## Parser utilities\nvar $f0e98b2c23d58ac9$var$literal = /^(?:'((?:\\\\[^]|[^'\\\\])*?)'|\"((?:\\\\[^]|[^\"\\\\])*?)\")/;\n$f0e98b2c23d58ac9$var$pp$9.strictDirective = function(start) {\n if (this.options.ecmaVersion < 5) return false;\n for(;;){\n // Try to find string literal.\n $f0e98b2c23d58ac9$var$skipWhiteSpace.lastIndex = start;\n start += $f0e98b2c23d58ac9$var$skipWhiteSpace.exec(this.input)[0].length;\n var match = $f0e98b2c23d58ac9$var$literal.exec(this.input.slice(start));\n if (!match) return false;\n if ((match[1] || match[2]) === \"use strict\") {\n $f0e98b2c23d58ac9$var$skipWhiteSpace.lastIndex = start + match[0].length;\n var spaceAfter = $f0e98b2c23d58ac9$var$skipWhiteSpace.exec(this.input), end = spaceAfter.index + spaceAfter[0].length;\n var next = this.input.charAt(end);\n return next === \";\" || next === \"}\" || $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(spaceAfter[0]) && !(/[(`.[+\\-/*%<>=,?^&]/.test(next) || next === \"!\" && this.input.charAt(end + 1) === \"=\");\n }\n start += match[0].length;\n // Skip semicolon, if any.\n $f0e98b2c23d58ac9$var$skipWhiteSpace.lastIndex = start;\n start += $f0e98b2c23d58ac9$var$skipWhiteSpace.exec(this.input)[0].length;\n if (this.input[start] === \";\") start++;\n }\n};\n// Predicate that tests whether the next token is of the given\n// type, and if yes, consumes it as a side effect.\n$f0e98b2c23d58ac9$var$pp$9.eat = function(type) {\n if (this.type === type) {\n this.next();\n return true;\n } else return false;\n};\n// Tests whether parsed token is a contextual keyword.\n$f0e98b2c23d58ac9$var$pp$9.isContextual = function(name) {\n return this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name && this.value === name && !this.containsEsc;\n};\n// Consumes contextual keyword if possible.\n$f0e98b2c23d58ac9$var$pp$9.eatContextual = function(name) {\n if (!this.isContextual(name)) return false;\n this.next();\n return true;\n};\n// Asserts that following token is given contextual keyword.\n$f0e98b2c23d58ac9$var$pp$9.expectContextual = function(name) {\n if (!this.eatContextual(name)) this.unexpected();\n};\n// Test whether a semicolon can be inserted at the current position.\n$f0e98b2c23d58ac9$var$pp$9.canInsertSemicolon = function() {\n return this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR || $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start));\n};\n$f0e98b2c23d58ac9$var$pp$9.insertSemicolon = function() {\n if (this.canInsertSemicolon()) {\n if (this.options.onInsertedSemicolon) this.options.onInsertedSemicolon(this.lastTokEnd, this.lastTokEndLoc);\n return true;\n }\n};\n// Consume a semicolon, or, failing that, see if we are allowed to\n// pretend that there is a semicolon at this position.\n$f0e98b2c23d58ac9$var$pp$9.semicolon = function() {\n if (!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi) && !this.insertSemicolon()) this.unexpected();\n};\n$f0e98b2c23d58ac9$var$pp$9.afterTrailingComma = function(tokType, notNext) {\n if (this.type === tokType) {\n if (this.options.onTrailingComma) this.options.onTrailingComma(this.lastTokStart, this.lastTokStartLoc);\n if (!notNext) this.next();\n return true;\n }\n};\n// Expect a token of a given type. If found, consume it, otherwise,\n// raise an unexpected token error.\n$f0e98b2c23d58ac9$var$pp$9.expect = function(type) {\n this.eat(type) || this.unexpected();\n};\n// Raise an unexpected token error.\n$f0e98b2c23d58ac9$var$pp$9.unexpected = function(pos) {\n this.raise(pos != null ? pos : this.start, \"Unexpected token\");\n};\nvar $f0e98b2c23d58ac9$var$DestructuringErrors = function DestructuringErrors() {\n this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;\n};\n$f0e98b2c23d58ac9$var$pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {\n if (!refDestructuringErrors) return;\n if (refDestructuringErrors.trailingComma > -1) this.raiseRecoverable(refDestructuringErrors.trailingComma, \"Comma is not permitted after the rest element\");\n var parens = isAssign ? refDestructuringErrors.parenthesizedAssign : refDestructuringErrors.parenthesizedBind;\n if (parens > -1) this.raiseRecoverable(parens, isAssign ? \"Assigning to rvalue\" : \"Parenthesized pattern\");\n};\n$f0e98b2c23d58ac9$var$pp$9.checkExpressionErrors = function(refDestructuringErrors, andThrow) {\n if (!refDestructuringErrors) return false;\n var shorthandAssign = refDestructuringErrors.shorthandAssign;\n var doubleProto = refDestructuringErrors.doubleProto;\n if (!andThrow) return shorthandAssign >= 0 || doubleProto >= 0;\n if (shorthandAssign >= 0) this.raise(shorthandAssign, \"Shorthand property assignments are valid only in destructuring patterns\");\n if (doubleProto >= 0) this.raiseRecoverable(doubleProto, \"Redefinition of __proto__ property\");\n};\n$f0e98b2c23d58ac9$var$pp$9.checkYieldAwaitInDefaultParams = function() {\n if (this.yieldPos && (!this.awaitPos || this.yieldPos < this.awaitPos)) this.raise(this.yieldPos, \"Yield expression cannot be a default value\");\n if (this.awaitPos) this.raise(this.awaitPos, \"Await expression cannot be a default value\");\n};\n$f0e98b2c23d58ac9$var$pp$9.isSimpleAssignTarget = function(expr) {\n if (expr.type === \"ParenthesizedExpression\") return this.isSimpleAssignTarget(expr.expression);\n return expr.type === \"Identifier\" || expr.type === \"MemberExpression\";\n};\nvar $f0e98b2c23d58ac9$var$pp$8 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// ### Statement parsing\n// Parse a program. Initializes the parser, reads any number of\n// statements, and wraps them in a Program node. Optionally takes a\n// `program` argument. If present, the statements will be appended\n// to its body instead of creating a new node.\n$f0e98b2c23d58ac9$var$pp$8.parseTopLevel = function(node) {\n var exports = Object.create(null);\n if (!node.body) node.body = [];\n while(this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof){\n var stmt = this.parseStatement(null, true, exports);\n node.body.push(stmt);\n }\n if (this.inModule) for(var i = 0, list = Object.keys(this.undefinedExports); i < list.length; i += 1){\n var name = list[i];\n this.raiseRecoverable(this.undefinedExports[name].start, \"Export '\" + name + \"' is not defined\");\n }\n this.adaptDirectivePrologue(node.body);\n this.next();\n node.sourceType = this.options.sourceType;\n return this.finishNode(node, \"Program\");\n};\nvar $f0e98b2c23d58ac9$var$loopLabel = {\n kind: \"loop\"\n}, $f0e98b2c23d58ac9$var$switchLabel = {\n kind: \"switch\"\n};\n$f0e98b2c23d58ac9$var$pp$8.isLet = function(context) {\n if (this.options.ecmaVersion < 6 || !this.isContextual(\"let\")) return false;\n $f0e98b2c23d58ac9$var$skipWhiteSpace.lastIndex = this.pos;\n var skip = $f0e98b2c23d58ac9$var$skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);\n // For ambiguous cases, determine if a LexicalDeclaration (or only a\n // Statement) is allowed here. If context is not empty then only a Statement\n // is allowed. However, `let [` is an explicit negative lookahead for\n // ExpressionStatement, so special-case it first.\n if (nextCh === 91 || nextCh === 92) return true;\n // '[', '\\'\n if (context) return false;\n if (nextCh === 123 || nextCh > 0xd7ff && nextCh < 0xdc00) return true;\n // '{', astral\n if ($f0e98b2c23d58ac9$export$56b48cc5d7560ffb(nextCh, true)) {\n var pos = next + 1;\n while($f0e98b2c23d58ac9$export$332f4d7bee38db93(nextCh = this.input.charCodeAt(pos), true))++pos;\n if (nextCh === 92 || nextCh > 0xd7ff && nextCh < 0xdc00) return true;\n var ident = this.input.slice(next, pos);\n if (!$f0e98b2c23d58ac9$var$keywordRelationalOperator.test(ident)) return true;\n }\n return false;\n};\n// check 'async [no LineTerminator here] function'\n// - 'async /*foo*/ function' is OK.\n// - 'async /*\\n*/ function' is invalid.\n$f0e98b2c23d58ac9$var$pp$8.isAsyncFunction = function() {\n if (this.options.ecmaVersion < 8 || !this.isContextual(\"async\")) return false;\n $f0e98b2c23d58ac9$var$skipWhiteSpace.lastIndex = this.pos;\n var skip = $f0e98b2c23d58ac9$var$skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, after;\n return !$f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.pos, next)) && this.input.slice(next, next + 8) === \"function\" && (next + 8 === this.input.length || !($f0e98b2c23d58ac9$export$332f4d7bee38db93(after = this.input.charCodeAt(next + 8)) || after > 0xd7ff && after < 0xdc00));\n};\n// Parse a single statement.\n//\n// If expecting a statement and finding a slash operator, parse a\n// regular expression literal. This is to handle cases like\n// `if (foo) /blah/.exec(foo)`, where looking at the previous token\n// does not help.\n$f0e98b2c23d58ac9$var$pp$8.parseStatement = function(context, topLevel, exports) {\n var starttype = this.type, node = this.startNode(), kind;\n if (this.isLet(context)) {\n starttype = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._var;\n kind = \"let\";\n }\n // Most types of statements are recognized by the keyword they\n // start with. Many are trivial to parse, some require a bit of\n // complexity.\n switch(starttype){\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._break:\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._continue:\n return this.parseBreakContinueStatement(node, starttype.keyword);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._debugger:\n return this.parseDebuggerStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._do:\n return this.parseDoStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._for:\n return this.parseForStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._function:\n // Function as sole body of either an if statement or a labeled statement\n // works, but not when it is part of a labeled statement that is the sole\n // body of an if statement.\n if (context && (this.strict || context !== \"if\" && context !== \"label\") && this.options.ecmaVersion >= 6) this.unexpected();\n return this.parseFunctionStatement(node, false, !context);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._class:\n if (context) this.unexpected();\n return this.parseClass(node, true);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._if:\n return this.parseIfStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._return:\n return this.parseReturnStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._switch:\n return this.parseSwitchStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._throw:\n return this.parseThrowStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._try:\n return this.parseTryStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._const:\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._var:\n kind = kind || this.value;\n if (context && kind !== \"var\") this.unexpected();\n return this.parseVarStatement(node, kind);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._while:\n return this.parseWhileStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._with:\n return this.parseWithStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL:\n return this.parseBlock(true, node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi:\n return this.parseEmptyStatement(node);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._export:\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._import:\n if (this.options.ecmaVersion > 10 && starttype === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._import) {\n $f0e98b2c23d58ac9$var$skipWhiteSpace.lastIndex = this.pos;\n var skip = $f0e98b2c23d58ac9$var$skipWhiteSpace.exec(this.input);\n var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);\n if (nextCh === 40 || nextCh === 46) return this.parseExpressionStatement(node, this.parseExpression());\n }\n if (!this.options.allowImportExportEverywhere) {\n if (!topLevel) this.raise(this.start, \"'import' and 'export' may only appear at the top level\");\n if (!this.inModule) this.raise(this.start, \"'import' and 'export' may appear only with 'sourceType: module'\");\n }\n return starttype === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._import ? this.parseImport(node) : this.parseExport(node, exports);\n // If the statement does not start with a statement keyword or a\n // brace, it's an ExpressionStatement or LabeledStatement. We\n // simply start parsing an expression, and afterwards, if the\n // next token is a colon and the expression was a simple\n // Identifier node, we switch to interpreting it as a label.\n default:\n if (this.isAsyncFunction()) {\n if (context) this.unexpected();\n this.next();\n return this.parseFunctionStatement(node, true, !context);\n }\n var maybeName = this.value, expr = this.parseExpression();\n if (starttype === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name && expr.type === \"Identifier\" && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon)) return this.parseLabeledStatement(node, maybeName, expr, context);\n else return this.parseExpressionStatement(node, expr);\n }\n};\n$f0e98b2c23d58ac9$var$pp$8.parseBreakContinueStatement = function(node, keyword) {\n var isBreak = keyword === \"break\";\n this.next();\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi) || this.insertSemicolon()) node.label = null;\n else if (this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) this.unexpected();\n else {\n node.label = this.parseIdent();\n this.semicolon();\n }\n // Verify that there is an actual destination to break or\n // continue to.\n var i = 0;\n for(; i < this.labels.length; ++i){\n var lab = this.labels[i];\n if (node.label == null || lab.name === node.label.name) {\n if (lab.kind != null && (isBreak || lab.kind === \"loop\")) break;\n if (node.label && isBreak) break;\n }\n }\n if (i === this.labels.length) this.raise(node.start, \"Unsyntactic \" + keyword);\n return this.finishNode(node, isBreak ? \"BreakStatement\" : \"ContinueStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseDebuggerStatement = function(node) {\n this.next();\n this.semicolon();\n return this.finishNode(node, \"DebuggerStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseDoStatement = function(node) {\n this.next();\n this.labels.push($f0e98b2c23d58ac9$var$loopLabel);\n node.body = this.parseStatement(\"do\");\n this.labels.pop();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._while);\n node.test = this.parseParenExpression();\n if (this.options.ecmaVersion >= 6) this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi);\n else this.semicolon();\n return this.finishNode(node, \"DoWhileStatement\");\n};\n// Disambiguating between a `for` and a `for`/`in` or `for`/`of`\n// loop is non-trivial. Basically, we have to parse the init `var`\n// statement or expression, disallowing the `in` operator (see\n// the second parameter to `parseExpression`), and then check\n// whether the next token is `in` or `of`. When there is no init\n// part (semicolon immediately after the opening parenthesis), it\n// is a regular `for` loop.\n$f0e98b2c23d58ac9$var$pp$8.parseForStatement = function(node) {\n this.next();\n var awaitAt = this.options.ecmaVersion >= 9 && this.canAwait && this.eatContextual(\"await\") ? this.lastTokStart : -1;\n this.labels.push($f0e98b2c23d58ac9$var$loopLabel);\n this.enterScope(0);\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL);\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi) {\n if (awaitAt > -1) this.unexpected(awaitAt);\n return this.parseFor(node, null);\n }\n var isLet = this.isLet();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._var || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._const || isLet) {\n var init$1 = this.startNode(), kind = isLet ? \"let\" : this.value;\n this.next();\n this.parseVar(init$1, true, kind);\n this.finishNode(init$1, \"VariableDeclaration\");\n if ((this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in || this.options.ecmaVersion >= 6 && this.isContextual(\"of\")) && init$1.declarations.length === 1) {\n if (this.options.ecmaVersion >= 9) {\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in) {\n if (awaitAt > -1) this.unexpected(awaitAt);\n } else node.await = awaitAt > -1;\n }\n return this.parseForIn(node, init$1);\n }\n if (awaitAt > -1) this.unexpected(awaitAt);\n return this.parseFor(node, init$1);\n }\n var startsWithLet = this.isContextual(\"let\"), isForOf = false;\n var containsEsc = this.containsEsc;\n var refDestructuringErrors = new $f0e98b2c23d58ac9$var$DestructuringErrors;\n var initPos = this.start;\n var init = awaitAt > -1 ? this.parseExprSubscripts(refDestructuringErrors, \"await\") : this.parseExpression(true, refDestructuringErrors);\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in || (isForOf = this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) {\n if (awaitAt > -1) {\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in) this.unexpected(awaitAt);\n node.await = true;\n } else if (isForOf && this.options.ecmaVersion >= 8) {\n if (init.start === initPos && !containsEsc && init.type === \"Identifier\" && init.name === \"async\") this.unexpected();\n else if (this.options.ecmaVersion >= 9) node.await = false;\n }\n if (startsWithLet && isForOf) this.raise(init.start, \"The left-hand side of a for-of loop may not start with 'let'.\");\n this.toAssignable(init, false, refDestructuringErrors);\n this.checkLValPattern(init);\n return this.parseForIn(node, init);\n } else this.checkExpressionErrors(refDestructuringErrors, true);\n if (awaitAt > -1) this.unexpected(awaitAt);\n return this.parseFor(node, init);\n};\n$f0e98b2c23d58ac9$var$pp$8.parseFunctionStatement = function(node, isAsync, declarationPosition) {\n this.next();\n return this.parseFunction(node, $f0e98b2c23d58ac9$var$FUNC_STATEMENT | (declarationPosition ? 0 : $f0e98b2c23d58ac9$var$FUNC_HANGING_STATEMENT), false, isAsync);\n};\n$f0e98b2c23d58ac9$var$pp$8.parseIfStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n // allow function declarations in branches, but only in non-strict mode\n node.consequent = this.parseStatement(\"if\");\n node.alternate = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._else) ? this.parseStatement(\"if\") : null;\n return this.finishNode(node, \"IfStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseReturnStatement = function(node) {\n if (!this.inFunction && !this.options.allowReturnOutsideFunction) this.raise(this.start, \"'return' outside of function\");\n this.next();\n // In `return` (and `break`/`continue`), the keywords with\n // optional arguments, we eagerly look for a semicolon or the\n // possibility to insert one.\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi) || this.insertSemicolon()) node.argument = null;\n else {\n node.argument = this.parseExpression();\n this.semicolon();\n }\n return this.finishNode(node, \"ReturnStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseSwitchStatement = function(node) {\n this.next();\n node.discriminant = this.parseParenExpression();\n node.cases = [];\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL);\n this.labels.push($f0e98b2c23d58ac9$var$switchLabel);\n this.enterScope(0);\n // Statements under must be grouped (by label) in SwitchCase\n // nodes. `cur` is used to keep the node that we are currently\n // adding statements to.\n var cur;\n for(var sawDefault = false; this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR;)if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._case || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._default) {\n var isCase = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._case;\n if (cur) this.finishNode(cur, \"SwitchCase\");\n node.cases.push(cur = this.startNode());\n cur.consequent = [];\n this.next();\n if (isCase) cur.test = this.parseExpression();\n else {\n if (sawDefault) this.raiseRecoverable(this.lastTokStart, \"Multiple default clauses\");\n sawDefault = true;\n cur.test = null;\n }\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon);\n } else {\n if (!cur) this.unexpected();\n cur.consequent.push(this.parseStatement(null));\n }\n this.exitScope();\n if (cur) this.finishNode(cur, \"SwitchCase\");\n this.next(); // Closing brace\n this.labels.pop();\n return this.finishNode(node, \"SwitchStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseThrowStatement = function(node) {\n this.next();\n if ($f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start))) this.raise(this.lastTokEnd, \"Illegal newline after throw\");\n node.argument = this.parseExpression();\n this.semicolon();\n return this.finishNode(node, \"ThrowStatement\");\n};\n// Reused empty array added for node fields that are always empty.\nvar $f0e98b2c23d58ac9$var$empty$1 = [];\n$f0e98b2c23d58ac9$var$pp$8.parseCatchClauseParam = function() {\n var param = this.parseBindingAtom();\n var simple = param.type === \"Identifier\";\n this.enterScope(simple ? $f0e98b2c23d58ac9$var$SCOPE_SIMPLE_CATCH : 0);\n this.checkLValPattern(param, simple ? $f0e98b2c23d58ac9$var$BIND_SIMPLE_CATCH : $f0e98b2c23d58ac9$var$BIND_LEXICAL);\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR);\n return param;\n};\n$f0e98b2c23d58ac9$var$pp$8.parseTryStatement = function(node) {\n this.next();\n node.block = this.parseBlock();\n node.handler = null;\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._catch) {\n var clause = this.startNode();\n this.next();\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL)) clause.param = this.parseCatchClauseParam();\n else {\n if (this.options.ecmaVersion < 10) this.unexpected();\n clause.param = null;\n this.enterScope(0);\n }\n clause.body = this.parseBlock(false);\n this.exitScope();\n node.handler = this.finishNode(clause, \"CatchClause\");\n }\n node.finalizer = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._finally) ? this.parseBlock() : null;\n if (!node.handler && !node.finalizer) this.raise(node.start, \"Missing catch or finally clause\");\n return this.finishNode(node, \"TryStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseVarStatement = function(node, kind, allowMissingInitializer) {\n this.next();\n this.parseVar(node, false, kind, allowMissingInitializer);\n this.semicolon();\n return this.finishNode(node, \"VariableDeclaration\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseWhileStatement = function(node) {\n this.next();\n node.test = this.parseParenExpression();\n this.labels.push($f0e98b2c23d58ac9$var$loopLabel);\n node.body = this.parseStatement(\"while\");\n this.labels.pop();\n return this.finishNode(node, \"WhileStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseWithStatement = function(node) {\n if (this.strict) this.raise(this.start, \"'with' in strict mode\");\n this.next();\n node.object = this.parseParenExpression();\n node.body = this.parseStatement(\"with\");\n return this.finishNode(node, \"WithStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseEmptyStatement = function(node) {\n this.next();\n return this.finishNode(node, \"EmptyStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseLabeledStatement = function(node, maybeName, expr, context) {\n for(var i$1 = 0, list = this.labels; i$1 < list.length; i$1 += 1){\n var label = list[i$1];\n if (label.name === maybeName) this.raise(expr.start, \"Label '\" + maybeName + \"' is already declared\");\n }\n var kind = this.type.isLoop ? \"loop\" : this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._switch ? \"switch\" : null;\n for(var i = this.labels.length - 1; i >= 0; i--){\n var label$1 = this.labels[i];\n if (label$1.statementStart === node.start) {\n // Update information about previous labels on this node\n label$1.statementStart = this.start;\n label$1.kind = kind;\n } else break;\n }\n this.labels.push({\n name: maybeName,\n kind: kind,\n statementStart: this.start\n });\n node.body = this.parseStatement(context ? context.indexOf(\"label\") === -1 ? context + \"label\" : context : \"label\");\n this.labels.pop();\n node.label = expr;\n return this.finishNode(node, \"LabeledStatement\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseExpressionStatement = function(node, expr) {\n node.expression = expr;\n this.semicolon();\n return this.finishNode(node, \"ExpressionStatement\");\n};\n// Parse a semicolon-enclosed block of statements, handling `\"use\n// strict\"` declarations when `allowStrict` is true (used for\n// function bodies).\n$f0e98b2c23d58ac9$var$pp$8.parseBlock = function(createNewLexicalScope, node, exitStrict) {\n if (createNewLexicalScope === void 0) createNewLexicalScope = true;\n if (node === void 0) node = this.startNode();\n node.body = [];\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL);\n if (createNewLexicalScope) this.enterScope(0);\n while(this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR){\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n if (exitStrict) this.strict = false;\n this.next();\n if (createNewLexicalScope) this.exitScope();\n return this.finishNode(node, \"BlockStatement\");\n};\n// Parse a regular `for` loop. The disambiguation code in\n// `parseStatement` will already have parsed the init statement or\n// expression.\n$f0e98b2c23d58ac9$var$pp$8.parseFor = function(node, init) {\n node.init = init;\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi);\n node.test = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi ? null : this.parseExpression();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi);\n node.update = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR ? null : this.parseExpression();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR);\n node.body = this.parseStatement(\"for\");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node, \"ForStatement\");\n};\n// Parse a `for`/`in` and `for`/`of` loop, which are almost\n// same from parser's perspective.\n$f0e98b2c23d58ac9$var$pp$8.parseForIn = function(node, init) {\n var isForIn = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in;\n this.next();\n if (init.type === \"VariableDeclaration\" && init.declarations[0].init != null && (!isForIn || this.options.ecmaVersion < 8 || this.strict || init.kind !== \"var\" || init.declarations[0].id.type !== \"Identifier\")) this.raise(init.start, (isForIn ? \"for-in\" : \"for-of\") + \" loop variable declaration may not have an initializer\");\n node.left = init;\n node.right = isForIn ? this.parseExpression() : this.parseMaybeAssign();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR);\n node.body = this.parseStatement(\"for\");\n this.exitScope();\n this.labels.pop();\n return this.finishNode(node, isForIn ? \"ForInStatement\" : \"ForOfStatement\");\n};\n// Parse a list of variable declarations.\n$f0e98b2c23d58ac9$var$pp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {\n node.declarations = [];\n node.kind = kind;\n for(;;){\n var decl = this.startNode();\n this.parseVarId(decl, kind);\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq)) decl.init = this.parseMaybeAssign(isFor);\n else if (!allowMissingInitializer && kind === \"const\" && !(this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in || this.options.ecmaVersion >= 6 && this.isContextual(\"of\"))) this.unexpected();\n else if (!allowMissingInitializer && decl.id.type !== \"Identifier\" && !(isFor && (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in || this.isContextual(\"of\")))) this.raise(this.lastTokEnd, \"Complex binding patterns require an initialization value\");\n else decl.init = null;\n node.declarations.push(this.finishNode(decl, \"VariableDeclarator\"));\n if (!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma)) break;\n }\n return node;\n};\n$f0e98b2c23d58ac9$var$pp$8.parseVarId = function(decl, kind) {\n decl.id = this.parseBindingAtom();\n this.checkLValPattern(decl.id, kind === \"var\" ? $f0e98b2c23d58ac9$var$BIND_VAR : $f0e98b2c23d58ac9$var$BIND_LEXICAL, false);\n};\nvar $f0e98b2c23d58ac9$var$FUNC_STATEMENT = 1, $f0e98b2c23d58ac9$var$FUNC_HANGING_STATEMENT = 2, $f0e98b2c23d58ac9$var$FUNC_NULLABLE_ID = 4;\n// Parse a function declaration or literal (depending on the\n// `statement & FUNC_STATEMENT`).\n// Remove `allowExpressionBody` for 7.0.0, as it is only called with false\n$f0e98b2c23d58ac9$var$pp$8.parseFunction = function(node, statement, allowExpressionBody, isAsync, forInit) {\n this.initFunction(node);\n if (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !isAsync) {\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star && statement & $f0e98b2c23d58ac9$var$FUNC_HANGING_STATEMENT) this.unexpected();\n node.generator = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star);\n }\n if (this.options.ecmaVersion >= 8) node.async = !!isAsync;\n if (statement & $f0e98b2c23d58ac9$var$FUNC_STATEMENT) {\n node.id = statement & $f0e98b2c23d58ac9$var$FUNC_NULLABLE_ID && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name ? null : this.parseIdent();\n if (node.id && !(statement & $f0e98b2c23d58ac9$var$FUNC_HANGING_STATEMENT)) this.checkLValSimple(node.id, this.strict || node.generator || node.async ? this.treatFunctionsAsVar ? $f0e98b2c23d58ac9$var$BIND_VAR : $f0e98b2c23d58ac9$var$BIND_LEXICAL : $f0e98b2c23d58ac9$var$BIND_FUNCTION);\n }\n var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope($f0e98b2c23d58ac9$var$functionFlags(node.async, node.generator));\n if (!(statement & $f0e98b2c23d58ac9$var$FUNC_STATEMENT)) node.id = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name ? this.parseIdent() : null;\n this.parseFunctionParams(node);\n this.parseFunctionBody(node, allowExpressionBody, false, forInit);\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, statement & $f0e98b2c23d58ac9$var$FUNC_STATEMENT ? \"FunctionDeclaration\" : \"FunctionExpression\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseFunctionParams = function(node) {\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL);\n node.params = this.parseBindingList($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR, false, this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n};\n// Parse a class declaration or literal (depending on the\n// `isStatement` parameter).\n$f0e98b2c23d58ac9$var$pp$8.parseClass = function(node, isStatement) {\n this.next();\n // ecma-262 14.6 Class Definitions\n // A class definition is always strict mode code.\n var oldStrict = this.strict;\n this.strict = true;\n this.parseClassId(node, isStatement);\n this.parseClassSuper(node);\n var privateNameMap = this.enterClassBody();\n var classBody = this.startNode();\n var hadConstructor = false;\n classBody.body = [];\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL);\n while(this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR){\n var element = this.parseClassElement(node.superClass !== null);\n if (element) {\n classBody.body.push(element);\n if (element.type === \"MethodDefinition\" && element.kind === \"constructor\") {\n if (hadConstructor) this.raiseRecoverable(element.start, \"Duplicate constructor in the same class\");\n hadConstructor = true;\n } else if (element.key && element.key.type === \"PrivateIdentifier\" && $f0e98b2c23d58ac9$var$isPrivateNameConflicted(privateNameMap, element)) this.raiseRecoverable(element.key.start, \"Identifier '#\" + element.key.name + \"' has already been declared\");\n }\n }\n this.strict = oldStrict;\n this.next();\n node.body = this.finishNode(classBody, \"ClassBody\");\n this.exitClassBody();\n return this.finishNode(node, isStatement ? \"ClassDeclaration\" : \"ClassExpression\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassElement = function(constructorAllowsSuper) {\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi)) return null;\n var ecmaVersion = this.options.ecmaVersion;\n var node = this.startNode();\n var keyName = \"\";\n var isGenerator = false;\n var isAsync = false;\n var kind = \"method\";\n var isStatic = false;\n if (this.eatContextual(\"static\")) {\n // Parse static init block\n if (ecmaVersion >= 13 && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL)) {\n this.parseClassStaticBlock(node);\n return node;\n }\n if (this.isClassElementNameStart() || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star) isStatic = true;\n else keyName = \"static\";\n }\n node.static = isStatic;\n if (!keyName && ecmaVersion >= 8 && this.eatContextual(\"async\")) {\n if ((this.isClassElementNameStart() || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star) && !this.canInsertSemicolon()) isAsync = true;\n else keyName = \"async\";\n }\n if (!keyName && (ecmaVersion >= 9 || !isAsync) && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star)) isGenerator = true;\n if (!keyName && !isAsync && !isGenerator) {\n var lastValue = this.value;\n if (this.eatContextual(\"get\") || this.eatContextual(\"set\")) {\n if (this.isClassElementNameStart()) kind = lastValue;\n else keyName = lastValue;\n }\n }\n // Parse element name\n if (keyName) {\n // 'async', 'get', 'set', or 'static' were not a keyword contextually.\n // The last token is any of those. Make it the element name.\n node.computed = false;\n node.key = this.startNodeAt(this.lastTokStart, this.lastTokStartLoc);\n node.key.name = keyName;\n this.finishNode(node.key, \"Identifier\");\n } else this.parseClassElementName(node);\n // Parse element value\n if (ecmaVersion < 13 || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL || kind !== \"method\" || isGenerator || isAsync) {\n var isConstructor = !node.static && $f0e98b2c23d58ac9$var$checkKeyName(node, \"constructor\");\n var allowsDirectSuper = isConstructor && constructorAllowsSuper;\n // Couldn't move this check into the 'parseClassMethod' method for backward compatibility.\n if (isConstructor && kind !== \"method\") this.raise(node.key.start, \"Constructor can't have get/set modifier\");\n node.kind = isConstructor ? \"constructor\" : kind;\n this.parseClassMethod(node, isGenerator, isAsync, allowsDirectSuper);\n } else this.parseClassField(node);\n return node;\n};\n$f0e98b2c23d58ac9$var$pp$8.isClassElementNameStart = function() {\n return this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.privateId || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.num || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL || this.type.keyword;\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassElementName = function(element) {\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.privateId) {\n if (this.value === \"constructor\") this.raise(this.start, \"Classes can't have an element named '#constructor'\");\n element.computed = false;\n element.key = this.parsePrivateIdent();\n } else this.parsePropertyName(element);\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassMethod = function(method, isGenerator, isAsync, allowsDirectSuper) {\n // Check key and flags\n var key = method.key;\n if (method.kind === \"constructor\") {\n if (isGenerator) this.raise(key.start, \"Constructor can't be a generator\");\n if (isAsync) this.raise(key.start, \"Constructor can't be an async method\");\n } else if (method.static && $f0e98b2c23d58ac9$var$checkKeyName(method, \"prototype\")) this.raise(key.start, \"Classes may not have a static property named prototype\");\n // Parse value\n var value = method.value = this.parseMethod(isGenerator, isAsync, allowsDirectSuper);\n // Check value\n if (method.kind === \"get\" && value.params.length !== 0) this.raiseRecoverable(value.start, \"getter should have no params\");\n if (method.kind === \"set\" && value.params.length !== 1) this.raiseRecoverable(value.start, \"setter should have exactly one param\");\n if (method.kind === \"set\" && value.params[0].type === \"RestElement\") this.raiseRecoverable(value.params[0].start, \"Setter cannot use rest params\");\n return this.finishNode(method, \"MethodDefinition\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassField = function(field) {\n if ($f0e98b2c23d58ac9$var$checkKeyName(field, \"constructor\")) this.raise(field.key.start, \"Classes can't have a field named 'constructor'\");\n else if (field.static && $f0e98b2c23d58ac9$var$checkKeyName(field, \"prototype\")) this.raise(field.key.start, \"Classes can't have a static field named 'prototype'\");\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq)) {\n // To raise SyntaxError if 'arguments' exists in the initializer.\n var scope = this.currentThisScope();\n var inClassFieldInit = scope.inClassFieldInit;\n scope.inClassFieldInit = true;\n field.value = this.parseMaybeAssign();\n scope.inClassFieldInit = inClassFieldInit;\n } else field.value = null;\n this.semicolon();\n return this.finishNode(field, \"PropertyDefinition\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassStaticBlock = function(node) {\n node.body = [];\n var oldLabels = this.labels;\n this.labels = [];\n this.enterScope($f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK | $f0e98b2c23d58ac9$var$SCOPE_SUPER);\n while(this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR){\n var stmt = this.parseStatement(null);\n node.body.push(stmt);\n }\n this.next();\n this.exitScope();\n this.labels = oldLabels;\n return this.finishNode(node, \"StaticBlock\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassId = function(node, isStatement) {\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) {\n node.id = this.parseIdent();\n if (isStatement) this.checkLValSimple(node.id, $f0e98b2c23d58ac9$var$BIND_LEXICAL, false);\n } else {\n if (isStatement === true) this.unexpected();\n node.id = null;\n }\n};\n$f0e98b2c23d58ac9$var$pp$8.parseClassSuper = function(node) {\n node.superClass = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._extends) ? this.parseExprSubscripts(null, false) : null;\n};\n$f0e98b2c23d58ac9$var$pp$8.enterClassBody = function() {\n var element = {\n declared: Object.create(null),\n used: []\n };\n this.privateNameStack.push(element);\n return element.declared;\n};\n$f0e98b2c23d58ac9$var$pp$8.exitClassBody = function() {\n var ref = this.privateNameStack.pop();\n var declared = ref.declared;\n var used = ref.used;\n if (!this.options.checkPrivateFields) return;\n var len = this.privateNameStack.length;\n var parent = len === 0 ? null : this.privateNameStack[len - 1];\n for(var i = 0; i < used.length; ++i){\n var id = used[i];\n if (!$f0e98b2c23d58ac9$var$hasOwn(declared, id.name)) {\n if (parent) parent.used.push(id);\n else this.raiseRecoverable(id.start, \"Private field '#\" + id.name + \"' must be declared in an enclosing class\");\n }\n }\n};\nfunction $f0e98b2c23d58ac9$var$isPrivateNameConflicted(privateNameMap, element) {\n var name = element.key.name;\n var curr = privateNameMap[name];\n var next = \"true\";\n if (element.type === \"MethodDefinition\" && (element.kind === \"get\" || element.kind === \"set\")) next = (element.static ? \"s\" : \"i\") + element.kind;\n // `class { get #a(){}; static set #a(_){} }` is also conflict.\n if (curr === \"iget\" && next === \"iset\" || curr === \"iset\" && next === \"iget\" || curr === \"sget\" && next === \"sset\" || curr === \"sset\" && next === \"sget\") {\n privateNameMap[name] = \"true\";\n return false;\n } else if (!curr) {\n privateNameMap[name] = next;\n return false;\n } else return true;\n}\nfunction $f0e98b2c23d58ac9$var$checkKeyName(node, name) {\n var computed = node.computed;\n var key = node.key;\n return !computed && (key.type === \"Identifier\" && key.name === name || key.type === \"Literal\" && key.value === name);\n}\n// Parses module export declaration.\n$f0e98b2c23d58ac9$var$pp$8.parseExportAllDeclaration = function(node, exports) {\n if (this.options.ecmaVersion >= 11) {\n if (this.eatContextual(\"as\")) {\n node.exported = this.parseModuleExportName();\n this.checkExport(exports, node.exported, this.lastTokStart);\n } else node.exported = null;\n }\n this.expectContextual(\"from\");\n if (this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string) this.unexpected();\n node.source = this.parseExprAtom();\n this.semicolon();\n return this.finishNode(node, \"ExportAllDeclaration\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseExport = function(node, exports) {\n this.next();\n // export * from '...'\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star)) return this.parseExportAllDeclaration(node, exports);\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._default)) {\n this.checkExport(exports, \"default\", this.lastTokStart);\n node.declaration = this.parseExportDefaultDeclaration();\n return this.finishNode(node, \"ExportDefaultDeclaration\");\n }\n // export var|const|let|function|class ...\n if (this.shouldParseExportStatement()) {\n node.declaration = this.parseExportDeclaration(node);\n if (node.declaration.type === \"VariableDeclaration\") this.checkVariableExport(exports, node.declaration.declarations);\n else this.checkExport(exports, node.declaration.id, node.declaration.id.start);\n node.specifiers = [];\n node.source = null;\n } else {\n node.declaration = null;\n node.specifiers = this.parseExportSpecifiers(exports);\n if (this.eatContextual(\"from\")) {\n if (this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string) this.unexpected();\n node.source = this.parseExprAtom();\n } else {\n for(var i = 0, list = node.specifiers; i < list.length; i += 1){\n // check for keywords used as local names\n var spec = list[i];\n this.checkUnreserved(spec.local);\n // check if export is defined\n this.checkLocalExport(spec.local);\n if (spec.local.type === \"Literal\") this.raise(spec.local.start, \"A string literal cannot be used as an exported binding without `from`.\");\n }\n node.source = null;\n }\n this.semicolon();\n }\n return this.finishNode(node, \"ExportNamedDeclaration\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseExportDeclaration = function(node) {\n return this.parseStatement(null);\n};\n$f0e98b2c23d58ac9$var$pp$8.parseExportDefaultDeclaration = function() {\n var isAsync;\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._function || (isAsync = this.isAsyncFunction())) {\n var fNode = this.startNode();\n this.next();\n if (isAsync) this.next();\n return this.parseFunction(fNode, $f0e98b2c23d58ac9$var$FUNC_STATEMENT | $f0e98b2c23d58ac9$var$FUNC_NULLABLE_ID, false, isAsync);\n } else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._class) {\n var cNode = this.startNode();\n return this.parseClass(cNode, \"nullableID\");\n } else {\n var declaration = this.parseMaybeAssign();\n this.semicolon();\n return declaration;\n }\n};\n$f0e98b2c23d58ac9$var$pp$8.checkExport = function(exports, name, pos) {\n if (!exports) return;\n if (typeof name !== \"string\") name = name.type === \"Identifier\" ? name.name : name.value;\n if ($f0e98b2c23d58ac9$var$hasOwn(exports, name)) this.raiseRecoverable(pos, \"Duplicate export '\" + name + \"'\");\n exports[name] = true;\n};\n$f0e98b2c23d58ac9$var$pp$8.checkPatternExport = function(exports, pat) {\n var type = pat.type;\n if (type === \"Identifier\") this.checkExport(exports, pat, pat.start);\n else if (type === \"ObjectPattern\") for(var i = 0, list = pat.properties; i < list.length; i += 1){\n var prop = list[i];\n this.checkPatternExport(exports, prop);\n }\n else if (type === \"ArrayPattern\") for(var i$1 = 0, list$1 = pat.elements; i$1 < list$1.length; i$1 += 1){\n var elt = list$1[i$1];\n if (elt) this.checkPatternExport(exports, elt);\n }\n else if (type === \"Property\") this.checkPatternExport(exports, pat.value);\n else if (type === \"AssignmentPattern\") this.checkPatternExport(exports, pat.left);\n else if (type === \"RestElement\") this.checkPatternExport(exports, pat.argument);\n};\n$f0e98b2c23d58ac9$var$pp$8.checkVariableExport = function(exports, decls) {\n if (!exports) return;\n for(var i = 0, list = decls; i < list.length; i += 1){\n var decl = list[i];\n this.checkPatternExport(exports, decl.id);\n }\n};\n$f0e98b2c23d58ac9$var$pp$8.shouldParseExportStatement = function() {\n return this.type.keyword === \"var\" || this.type.keyword === \"const\" || this.type.keyword === \"class\" || this.type.keyword === \"function\" || this.isLet() || this.isAsyncFunction();\n};\n// Parses a comma-separated list of module exports.\n$f0e98b2c23d58ac9$var$pp$8.parseExportSpecifier = function(exports) {\n var node = this.startNode();\n node.local = this.parseModuleExportName();\n node.exported = this.eatContextual(\"as\") ? this.parseModuleExportName() : node.local;\n this.checkExport(exports, node.exported, node.exported.start);\n return this.finishNode(node, \"ExportSpecifier\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseExportSpecifiers = function(exports) {\n var nodes = [], first = true;\n // export { x, y as z } [from '...']\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL);\n while(!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR)){\n if (!first) {\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma);\n if (this.afterTrailingComma($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR)) break;\n } else first = false;\n nodes.push(this.parseExportSpecifier(exports));\n }\n return nodes;\n};\n// Parses import declaration.\n$f0e98b2c23d58ac9$var$pp$8.parseImport = function(node) {\n this.next();\n // import '...'\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string) {\n node.specifiers = $f0e98b2c23d58ac9$var$empty$1;\n node.source = this.parseExprAtom();\n } else {\n node.specifiers = this.parseImportSpecifiers();\n this.expectContextual(\"from\");\n node.source = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string ? this.parseExprAtom() : this.unexpected();\n }\n this.semicolon();\n return this.finishNode(node, \"ImportDeclaration\");\n};\n// Parses a comma-separated list of module imports.\n$f0e98b2c23d58ac9$var$pp$8.parseImportSpecifier = function() {\n var node = this.startNode();\n node.imported = this.parseModuleExportName();\n if (this.eatContextual(\"as\")) node.local = this.parseIdent();\n else {\n this.checkUnreserved(node.imported);\n node.local = node.imported;\n }\n this.checkLValSimple(node.local, $f0e98b2c23d58ac9$var$BIND_LEXICAL);\n return this.finishNode(node, \"ImportSpecifier\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseImportDefaultSpecifier = function() {\n // import defaultObj, { x, y as z } from '...'\n var node = this.startNode();\n node.local = this.parseIdent();\n this.checkLValSimple(node.local, $f0e98b2c23d58ac9$var$BIND_LEXICAL);\n return this.finishNode(node, \"ImportDefaultSpecifier\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseImportNamespaceSpecifier = function() {\n var node = this.startNode();\n this.next();\n this.expectContextual(\"as\");\n node.local = this.parseIdent();\n this.checkLValSimple(node.local, $f0e98b2c23d58ac9$var$BIND_LEXICAL);\n return this.finishNode(node, \"ImportNamespaceSpecifier\");\n};\n$f0e98b2c23d58ac9$var$pp$8.parseImportSpecifiers = function() {\n var nodes = [], first = true;\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) {\n nodes.push(this.parseImportDefaultSpecifier());\n if (!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma)) return nodes;\n }\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star) {\n nodes.push(this.parseImportNamespaceSpecifier());\n return nodes;\n }\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL);\n while(!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR)){\n if (!first) {\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma);\n if (this.afterTrailingComma($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR)) break;\n } else first = false;\n nodes.push(this.parseImportSpecifier());\n }\n return nodes;\n};\n$f0e98b2c23d58ac9$var$pp$8.parseModuleExportName = function() {\n if (this.options.ecmaVersion >= 13 && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string) {\n var stringLiteral = this.parseLiteral(this.value);\n if ($f0e98b2c23d58ac9$var$loneSurrogate.test(stringLiteral.value)) this.raise(stringLiteral.start, \"An export name cannot include a lone surrogate.\");\n return stringLiteral;\n }\n return this.parseIdent(true);\n};\n// Set `ExpressionStatement#directive` property for directive prologues.\n$f0e98b2c23d58ac9$var$pp$8.adaptDirectivePrologue = function(statements) {\n for(var i = 0; i < statements.length && this.isDirectiveCandidate(statements[i]); ++i)statements[i].directive = statements[i].expression.raw.slice(1, -1);\n};\n$f0e98b2c23d58ac9$var$pp$8.isDirectiveCandidate = function(statement) {\n return this.options.ecmaVersion >= 5 && statement.type === \"ExpressionStatement\" && statement.expression.type === \"Literal\" && typeof statement.expression.value === \"string\" && // Reject parenthesized strings.\n (this.input[statement.start] === '\"' || this.input[statement.start] === \"'\");\n};\nvar $f0e98b2c23d58ac9$var$pp$7 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// Convert existing expression atom to assignable pattern\n// if possible.\n$f0e98b2c23d58ac9$var$pp$7.toAssignable = function(node, isBinding, refDestructuringErrors) {\n if (this.options.ecmaVersion >= 6 && node) switch(node.type){\n case \"Identifier\":\n if (this.inAsync && node.name === \"await\") this.raise(node.start, \"Cannot use 'await' as identifier inside an async function\");\n break;\n case \"ObjectPattern\":\n case \"ArrayPattern\":\n case \"AssignmentPattern\":\n case \"RestElement\":\n break;\n case \"ObjectExpression\":\n node.type = \"ObjectPattern\";\n if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true);\n for(var i = 0, list = node.properties; i < list.length; i += 1){\n var prop = list[i];\n this.toAssignable(prop, isBinding);\n // Early error:\n // AssignmentRestProperty[Yield, Await] :\n // `...` DestructuringAssignmentTarget[Yield, Await]\n //\n // It is a Syntax Error if |DestructuringAssignmentTarget| is an |ArrayLiteral| or an |ObjectLiteral|.\n if (prop.type === \"RestElement\" && (prop.argument.type === \"ArrayPattern\" || prop.argument.type === \"ObjectPattern\")) this.raise(prop.argument.start, \"Unexpected token\");\n }\n break;\n case \"Property\":\n // AssignmentProperty has type === \"Property\"\n if (node.kind !== \"init\") this.raise(node.key.start, \"Object pattern can't contain getter or setter\");\n this.toAssignable(node.value, isBinding);\n break;\n case \"ArrayExpression\":\n node.type = \"ArrayPattern\";\n if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true);\n this.toAssignableList(node.elements, isBinding);\n break;\n case \"SpreadElement\":\n node.type = \"RestElement\";\n this.toAssignable(node.argument, isBinding);\n if (node.argument.type === \"AssignmentPattern\") this.raise(node.argument.start, \"Rest elements cannot have a default value\");\n break;\n case \"AssignmentExpression\":\n if (node.operator !== \"=\") this.raise(node.left.end, \"Only '=' operator can be used for specifying default value.\");\n node.type = \"AssignmentPattern\";\n delete node.operator;\n this.toAssignable(node.left, isBinding);\n break;\n case \"ParenthesizedExpression\":\n this.toAssignable(node.expression, isBinding, refDestructuringErrors);\n break;\n case \"ChainExpression\":\n this.raiseRecoverable(node.start, \"Optional chaining cannot appear in left-hand side\");\n break;\n case \"MemberExpression\":\n if (!isBinding) break;\n default:\n this.raise(node.start, \"Assigning to rvalue\");\n }\n else if (refDestructuringErrors) this.checkPatternErrors(refDestructuringErrors, true);\n return node;\n};\n// Convert list of expression atoms to binding list.\n$f0e98b2c23d58ac9$var$pp$7.toAssignableList = function(exprList, isBinding) {\n var end = exprList.length;\n for(var i = 0; i < end; i++){\n var elt = exprList[i];\n if (elt) this.toAssignable(elt, isBinding);\n }\n if (end) {\n var last = exprList[end - 1];\n if (this.options.ecmaVersion === 6 && isBinding && last && last.type === \"RestElement\" && last.argument.type !== \"Identifier\") this.unexpected(last.argument.start);\n }\n return exprList;\n};\n// Parses spread element.\n$f0e98b2c23d58ac9$var$pp$7.parseSpread = function(refDestructuringErrors) {\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeAssign(false, refDestructuringErrors);\n return this.finishNode(node, \"SpreadElement\");\n};\n$f0e98b2c23d58ac9$var$pp$7.parseRestBinding = function() {\n var node = this.startNode();\n this.next();\n // RestElement inside of a function parameter must be an identifier\n if (this.options.ecmaVersion === 6 && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) this.unexpected();\n node.argument = this.parseBindingAtom();\n return this.finishNode(node, \"RestElement\");\n};\n// Parses lvalue (assignable) atom.\n$f0e98b2c23d58ac9$var$pp$7.parseBindingAtom = function() {\n if (this.options.ecmaVersion >= 6) switch(this.type){\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL:\n var node = this.startNode();\n this.next();\n node.elements = this.parseBindingList($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketR, true, true);\n return this.finishNode(node, \"ArrayPattern\");\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL:\n return this.parseObj(true);\n }\n return this.parseIdent();\n};\n$f0e98b2c23d58ac9$var$pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {\n var elts = [], first = true;\n while(!this.eat(close)){\n if (first) first = false;\n else this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma);\n if (allowEmpty && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) elts.push(null);\n else if (allowTrailingComma && this.afterTrailingComma(close)) break;\n else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.ellipsis) {\n var rest = this.parseRestBinding();\n this.parseBindingListItem(rest);\n elts.push(rest);\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\");\n this.expect(close);\n break;\n } else elts.push(this.parseAssignableListItem(allowModifiers));\n }\n return elts;\n};\n$f0e98b2c23d58ac9$var$pp$7.parseAssignableListItem = function(allowModifiers) {\n var elem = this.parseMaybeDefault(this.start, this.startLoc);\n this.parseBindingListItem(elem);\n return elem;\n};\n$f0e98b2c23d58ac9$var$pp$7.parseBindingListItem = function(param) {\n return param;\n};\n// Parses assignment pattern around given atom if possible.\n$f0e98b2c23d58ac9$var$pp$7.parseMaybeDefault = function(startPos, startLoc, left) {\n left = left || this.parseBindingAtom();\n if (this.options.ecmaVersion < 6 || !this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq)) return left;\n var node = this.startNodeAt(startPos, startLoc);\n node.left = left;\n node.right = this.parseMaybeAssign();\n return this.finishNode(node, \"AssignmentPattern\");\n};\n// The following three functions all verify that a node is an lvalue —\n// something that can be bound, or assigned to. In order to do so, they perform\n// a variety of checks:\n//\n// - Check that none of the bound/assigned-to identifiers are reserved words.\n// - Record name declarations for bindings in the appropriate scope.\n// - Check duplicate argument names, if checkClashes is set.\n//\n// If a complex binding pattern is encountered (e.g., object and array\n// destructuring), the entire pattern is recursively checked.\n//\n// There are three versions of checkLVal*() appropriate for different\n// circumstances:\n//\n// - checkLValSimple() shall be used if the syntactic construct supports\n// nothing other than identifiers and member expressions. Parenthesized\n// expressions are also correctly handled. This is generally appropriate for\n// constructs for which the spec says\n//\n// > It is a Syntax Error if AssignmentTargetType of [the production] is not\n// > simple.\n//\n// It is also appropriate for checking if an identifier is valid and not\n// defined elsewhere, like import declarations or function/class identifiers.\n//\n// Examples where this is used include:\n// a += …;\n// import a from '…';\n// where a is the node to be checked.\n//\n// - checkLValPattern() shall be used if the syntactic construct supports\n// anything checkLValSimple() supports, as well as object and array\n// destructuring patterns. This is generally appropriate for constructs for\n// which the spec says\n//\n// > It is a Syntax Error if [the production] is neither an ObjectLiteral nor\n// > an ArrayLiteral and AssignmentTargetType of [the production] is not\n// > simple.\n//\n// Examples where this is used include:\n// (a = …);\n// const a = …;\n// try { … } catch (a) { … }\n// where a is the node to be checked.\n//\n// - checkLValInnerPattern() shall be used if the syntactic construct supports\n// anything checkLValPattern() supports, as well as default assignment\n// patterns, rest elements, and other constructs that may appear within an\n// object or array destructuring pattern.\n//\n// As a special case, function parameters also use checkLValInnerPattern(),\n// as they also support defaults and rest constructs.\n//\n// These functions deliberately support both assignment and binding constructs,\n// as the logic for both is exceedingly similar. If the node is the target of\n// an assignment, then bindingType should be set to BIND_NONE. Otherwise, it\n// should be set to the appropriate BIND_* constant, like BIND_VAR or\n// BIND_LEXICAL.\n//\n// If the function is called with a non-BIND_NONE bindingType, then\n// additionally a checkClashes object may be specified to allow checking for\n// duplicate argument names. checkClashes is ignored if the provided construct\n// is an assignment (i.e., bindingType is BIND_NONE).\n$f0e98b2c23d58ac9$var$pp$7.checkLValSimple = function(expr, bindingType, checkClashes) {\n if (bindingType === void 0) bindingType = $f0e98b2c23d58ac9$var$BIND_NONE;\n var isBind = bindingType !== $f0e98b2c23d58ac9$var$BIND_NONE;\n switch(expr.type){\n case \"Identifier\":\n if (this.strict && this.reservedWordsStrictBind.test(expr.name)) this.raiseRecoverable(expr.start, (isBind ? \"Binding \" : \"Assigning to \") + expr.name + \" in strict mode\");\n if (isBind) {\n if (bindingType === $f0e98b2c23d58ac9$var$BIND_LEXICAL && expr.name === \"let\") this.raiseRecoverable(expr.start, \"let is disallowed as a lexically bound name\");\n if (checkClashes) {\n if ($f0e98b2c23d58ac9$var$hasOwn(checkClashes, expr.name)) this.raiseRecoverable(expr.start, \"Argument name clash\");\n checkClashes[expr.name] = true;\n }\n if (bindingType !== $f0e98b2c23d58ac9$var$BIND_OUTSIDE) this.declareName(expr.name, bindingType, expr.start);\n }\n break;\n case \"ChainExpression\":\n this.raiseRecoverable(expr.start, \"Optional chaining cannot appear in left-hand side\");\n break;\n case \"MemberExpression\":\n if (isBind) this.raiseRecoverable(expr.start, \"Binding member expression\");\n break;\n case \"ParenthesizedExpression\":\n if (isBind) this.raiseRecoverable(expr.start, \"Binding parenthesized expression\");\n return this.checkLValSimple(expr.expression, bindingType, checkClashes);\n default:\n this.raise(expr.start, (isBind ? \"Binding\" : \"Assigning to\") + \" rvalue\");\n }\n};\n$f0e98b2c23d58ac9$var$pp$7.checkLValPattern = function(expr, bindingType, checkClashes) {\n if (bindingType === void 0) bindingType = $f0e98b2c23d58ac9$var$BIND_NONE;\n switch(expr.type){\n case \"ObjectPattern\":\n for(var i = 0, list = expr.properties; i < list.length; i += 1){\n var prop = list[i];\n this.checkLValInnerPattern(prop, bindingType, checkClashes);\n }\n break;\n case \"ArrayPattern\":\n for(var i$1 = 0, list$1 = expr.elements; i$1 < list$1.length; i$1 += 1){\n var elem = list$1[i$1];\n if (elem) this.checkLValInnerPattern(elem, bindingType, checkClashes);\n }\n break;\n default:\n this.checkLValSimple(expr, bindingType, checkClashes);\n }\n};\n$f0e98b2c23d58ac9$var$pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {\n if (bindingType === void 0) bindingType = $f0e98b2c23d58ac9$var$BIND_NONE;\n switch(expr.type){\n case \"Property\":\n // AssignmentProperty has type === \"Property\"\n this.checkLValInnerPattern(expr.value, bindingType, checkClashes);\n break;\n case \"AssignmentPattern\":\n this.checkLValPattern(expr.left, bindingType, checkClashes);\n break;\n case \"RestElement\":\n this.checkLValPattern(expr.argument, bindingType, checkClashes);\n break;\n default:\n this.checkLValPattern(expr, bindingType, checkClashes);\n }\n};\n// The algorithm used to determine whether a regexp can appear at a\n// given point in the program is loosely based on sweet.js' approach.\n// See https://github.com/mozilla/sweet.js/wiki/design\nvar $f0e98b2c23d58ac9$export$68e7b4c4d99215d9 = function TokContext(token, isExpr, preserveSpace, override, generator) {\n this.token = token;\n this.isExpr = !!isExpr;\n this.preserveSpace = !!preserveSpace;\n this.override = override;\n this.generator = !!generator;\n};\nvar $f0e98b2c23d58ac9$export$2b5f701edfbd6f00 = {\n b_stat: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"{\", false),\n b_expr: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"{\", true),\n b_tmpl: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"${\", false),\n p_stat: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"(\", false),\n p_expr: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"(\", true),\n q_tmpl: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"`\", true, true, function(p) {\n return p.tryReadTemplateToken();\n }),\n f_stat: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"function\", false),\n f_expr: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"function\", true),\n f_expr_gen: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"function\", true, false, null, true),\n f_gen: new $f0e98b2c23d58ac9$export$68e7b4c4d99215d9(\"function\", false, false, null, true)\n};\nvar $f0e98b2c23d58ac9$var$pp$6 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n$f0e98b2c23d58ac9$var$pp$6.initialContext = function() {\n return [\n $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_stat\n ];\n};\n$f0e98b2c23d58ac9$var$pp$6.curContext = function() {\n return this.context[this.context.length - 1];\n};\n$f0e98b2c23d58ac9$var$pp$6.braceIsBlock = function(prevType) {\n var parent = this.curContext();\n if (parent === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_expr || parent === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_stat) return true;\n if (prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon && (parent === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_stat || parent === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_expr)) return !parent.isExpr;\n // The check for `tt.name && exprAllowed` detects whether we are\n // after a `yield` or `of` construct. See the `updateContext` for\n // `tt.name`.\n if (prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._return || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name && this.exprAllowed) return $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start));\n if (prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._else || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.arrow) return true;\n if (prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL) return parent === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_stat;\n if (prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._var || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._const || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) return false;\n return !this.exprAllowed;\n};\n$f0e98b2c23d58ac9$var$pp$6.inGeneratorContext = function() {\n for(var i = this.context.length - 1; i >= 1; i--){\n var context = this.context[i];\n if (context.token === \"function\") return context.generator;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$pp$6.updateContext = function(prevType) {\n var update, type = this.type;\n if (type.keyword && prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot) this.exprAllowed = false;\n else if (update = type.updateContext) update.call(this, prevType);\n else this.exprAllowed = type.beforeExpr;\n};\n// Used to handle edge cases when token context could not be inferred correctly during tokenization phase\n$f0e98b2c23d58ac9$var$pp$6.overrideContext = function(tokenCtx) {\n if (this.curContext() !== tokenCtx) this.context[this.context.length - 1] = tokenCtx;\n};\n// Token-specific context update code\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR.updateContext = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR.updateContext = function() {\n if (this.context.length === 1) {\n this.exprAllowed = true;\n return;\n }\n var out = this.context.pop();\n if (out === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_stat && this.curContext().token === \"function\") out = this.context.pop();\n this.exprAllowed = !out.isExpr;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL.updateContext = function(prevType) {\n this.context.push(this.braceIsBlock(prevType) ? $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_stat : $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_expr);\n this.exprAllowed = true;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dollarBraceL.updateContext = function() {\n this.context.push($f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_tmpl);\n this.exprAllowed = true;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL.updateContext = function(prevType) {\n var statementParens = prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._if || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._for || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._with || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._while;\n this.context.push(statementParens ? $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.p_stat : $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.p_expr);\n this.exprAllowed = true;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.incDec.updateContext = function() {\n// tokExprAllowed stays unchanged\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._function.updateContext = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._class.updateContext = function(prevType) {\n if (prevType.beforeExpr && prevType !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._else && !(prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi && this.curContext() !== $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.p_stat) && !(prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._return && $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start))) && !((prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon || prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL) && this.curContext() === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_stat)) this.context.push($f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_expr);\n else this.context.push($f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_stat);\n this.exprAllowed = false;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon.updateContext = function() {\n if (this.curContext().token === \"function\") this.context.pop();\n this.exprAllowed = true;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.backQuote.updateContext = function() {\n if (this.curContext() === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.q_tmpl) this.context.pop();\n else this.context.push($f0e98b2c23d58ac9$export$2b5f701edfbd6f00.q_tmpl);\n this.exprAllowed = false;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star.updateContext = function(prevType) {\n if (prevType === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._function) {\n var index = this.context.length - 1;\n if (this.context[index] === $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_expr) this.context[index] = $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_expr_gen;\n else this.context[index] = $f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_gen;\n }\n this.exprAllowed = true;\n};\n$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name.updateContext = function(prevType) {\n var allowed = false;\n if (this.options.ecmaVersion >= 6 && prevType !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot) {\n if (this.value === \"of\" && !this.exprAllowed || this.value === \"yield\" && this.inGeneratorContext()) allowed = true;\n }\n this.exprAllowed = allowed;\n};\n// A recursive descent parser operates by defining functions for all\n// syntactic elements, and recursively calling those, each function\n// advancing the input stream and returning an AST node. Precedence\n// of constructs (for example, the fact that `!x[1]` means `!(x[1])`\n// instead of `(!x)[1]` is handled by the fact that the parser\n// function that parses unary prefix operators is called first, and\n// in turn calls the function that parses `[]` subscripts — that\n// way, it'll receive the node for `x[1]` already parsed, and wraps\n// *that* in the unary operator node.\n//\n// Acorn uses an [operator precedence parser][opp] to handle binary\n// operator precedence, because it is much more compact than using\n// the technique outlined above, which uses different, nesting\n// functions to specify precedence, for all of the ten binary\n// precedence levels that JavaScript defines.\n//\n// [opp]: http://en.wikipedia.org/wiki/Operator-precedence_parser\nvar $f0e98b2c23d58ac9$var$pp$5 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// Check if property name clashes with already added.\n// Object/class getters and setters are not allowed to clash —\n// either with each other or with an init property — and in\n// strict mode, init properties are also not allowed to be repeated.\n$f0e98b2c23d58ac9$var$pp$5.checkPropClash = function(prop, propHash, refDestructuringErrors) {\n if (this.options.ecmaVersion >= 9 && prop.type === \"SpreadElement\") return;\n if (this.options.ecmaVersion >= 6 && (prop.computed || prop.method || prop.shorthand)) return;\n var key = prop.key;\n var name;\n switch(key.type){\n case \"Identifier\":\n name = key.name;\n break;\n case \"Literal\":\n name = String(key.value);\n break;\n default:\n return;\n }\n var kind = prop.kind;\n if (this.options.ecmaVersion >= 6) {\n if (name === \"__proto__\" && kind === \"init\") {\n if (propHash.proto) {\n if (refDestructuringErrors) {\n if (refDestructuringErrors.doubleProto < 0) refDestructuringErrors.doubleProto = key.start;\n } else this.raiseRecoverable(key.start, \"Redefinition of __proto__ property\");\n }\n propHash.proto = true;\n }\n return;\n }\n name = \"$\" + name;\n var other = propHash[name];\n if (other) {\n var redefinition;\n if (kind === \"init\") redefinition = this.strict && other.init || other.get || other.set;\n else redefinition = other.init || other[kind];\n if (redefinition) this.raiseRecoverable(key.start, \"Redefinition of property\");\n } else other = propHash[name] = {\n init: false,\n get: false,\n set: false\n };\n other[kind] = true;\n};\n// ### Expression parsing\n// These nest, from the most general expression type at the top to\n// 'atomic', nondivisible expression types at the bottom. Most of\n// the functions will simply let the function(s) below them parse,\n// and, *if* the syntactic construct they handle is present, wrap\n// the AST node that the inner parser gave them in another node.\n// Parse a full expression. The optional arguments are used to\n// forbid the `in` operator (in for loops initalization expressions)\n// and provide reference for storing '=' operator inside shorthand\n// property assignment in contexts where both object expression\n// and object pattern might appear (so it's possible to raise\n// delayed syntax error at correct position).\n$f0e98b2c23d58ac9$var$pp$5.parseExpression = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseMaybeAssign(forInit, refDestructuringErrors);\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) {\n var node = this.startNodeAt(startPos, startLoc);\n node.expressions = [\n expr\n ];\n while(this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma))node.expressions.push(this.parseMaybeAssign(forInit, refDestructuringErrors));\n return this.finishNode(node, \"SequenceExpression\");\n }\n return expr;\n};\n// Parse an assignment expression. This includes applications of\n// operators like `+=`.\n$f0e98b2c23d58ac9$var$pp$5.parseMaybeAssign = function(forInit, refDestructuringErrors, afterLeftParse) {\n if (this.isContextual(\"yield\")) {\n if (this.inGenerator) return this.parseYield(forInit);\n else this.exprAllowed = false;\n }\n var ownDestructuringErrors = false, oldParenAssign = -1, oldTrailingComma = -1, oldDoubleProto = -1;\n if (refDestructuringErrors) {\n oldParenAssign = refDestructuringErrors.parenthesizedAssign;\n oldTrailingComma = refDestructuringErrors.trailingComma;\n oldDoubleProto = refDestructuringErrors.doubleProto;\n refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = -1;\n } else {\n refDestructuringErrors = new $f0e98b2c23d58ac9$var$DestructuringErrors;\n ownDestructuringErrors = true;\n }\n var startPos = this.start, startLoc = this.startLoc;\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) {\n this.potentialArrowAt = this.start;\n this.potentialArrowInForAwait = forInit === \"await\";\n }\n var left = this.parseMaybeConditional(forInit, refDestructuringErrors);\n if (afterLeftParse) left = afterLeftParse.call(this, left, startPos, startLoc);\n if (this.type.isAssign) {\n var node = this.startNodeAt(startPos, startLoc);\n node.operator = this.value;\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq) left = this.toAssignable(left, false, refDestructuringErrors);\n if (!ownDestructuringErrors) refDestructuringErrors.parenthesizedAssign = refDestructuringErrors.trailingComma = refDestructuringErrors.doubleProto = -1;\n if (refDestructuringErrors.shorthandAssign >= left.start) refDestructuringErrors.shorthandAssign = -1;\n // reset because shorthand default was used correctly\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq) this.checkLValPattern(left);\n else this.checkLValSimple(left);\n node.left = left;\n this.next();\n node.right = this.parseMaybeAssign(forInit);\n if (oldDoubleProto > -1) refDestructuringErrors.doubleProto = oldDoubleProto;\n return this.finishNode(node, \"AssignmentExpression\");\n } else if (ownDestructuringErrors) this.checkExpressionErrors(refDestructuringErrors, true);\n if (oldParenAssign > -1) refDestructuringErrors.parenthesizedAssign = oldParenAssign;\n if (oldTrailingComma > -1) refDestructuringErrors.trailingComma = oldTrailingComma;\n return left;\n};\n// Parse a ternary conditional (`?:`) operator.\n$f0e98b2c23d58ac9$var$pp$5.parseMaybeConditional = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseExprOps(forInit, refDestructuringErrors);\n if (this.checkExpressionErrors(refDestructuringErrors)) return expr;\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.question)) {\n var node = this.startNodeAt(startPos, startLoc);\n node.test = expr;\n node.consequent = this.parseMaybeAssign();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon);\n node.alternate = this.parseMaybeAssign(forInit);\n return this.finishNode(node, \"ConditionalExpression\");\n }\n return expr;\n};\n// Start the precedence parser.\n$f0e98b2c23d58ac9$var$pp$5.parseExprOps = function(forInit, refDestructuringErrors) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseMaybeUnary(refDestructuringErrors, false, false, forInit);\n if (this.checkExpressionErrors(refDestructuringErrors)) return expr;\n return expr.start === startPos && expr.type === \"ArrowFunctionExpression\" ? expr : this.parseExprOp(expr, startPos, startLoc, -1, forInit);\n};\n// Parse binary operators with the operator precedence parsing\n// algorithm. `left` is the left-hand side of the operator.\n// `minPrec` provides context that allows the function to stop and\n// defer further parser to one of its callers when it encounters an\n// operator that has a lower precedence than the set it is parsing.\n$f0e98b2c23d58ac9$var$pp$5.parseExprOp = function(left, leftStartPos, leftStartLoc, minPrec, forInit) {\n var prec = this.type.binop;\n if (prec != null && (!forInit || this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in)) {\n if (prec > minPrec) {\n var logical = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalOR || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalAND;\n var coalesce = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.coalesce;\n if (coalesce) // Handle the precedence of `tt.coalesce` as equal to the range of logical expressions.\n // In other words, `node.right` shouldn't contain logical expressions in order to check the mixed error.\n prec = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalAND.binop;\n var op = this.value;\n this.next();\n var startPos = this.start, startLoc = this.startLoc;\n var right = this.parseExprOp(this.parseMaybeUnary(null, false, false, forInit), startPos, startLoc, prec, forInit);\n var node = this.buildBinary(leftStartPos, leftStartLoc, left, right, op, logical || coalesce);\n if (logical && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.coalesce || coalesce && (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalOR || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalAND)) this.raiseRecoverable(this.start, \"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses\");\n return this.parseExprOp(node, leftStartPos, leftStartLoc, minPrec, forInit);\n }\n }\n return left;\n};\n$f0e98b2c23d58ac9$var$pp$5.buildBinary = function(startPos, startLoc, left, right, op, logical) {\n if (right.type === \"PrivateIdentifier\") this.raise(right.start, \"Private identifier can only be left side of binary expression\");\n var node = this.startNodeAt(startPos, startLoc);\n node.left = left;\n node.operator = op;\n node.right = right;\n return this.finishNode(node, logical ? \"LogicalExpression\" : \"BinaryExpression\");\n};\n// Parse unary operators, both prefix and postfix.\n$f0e98b2c23d58ac9$var$pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forInit) {\n var startPos = this.start, startLoc = this.startLoc, expr;\n if (this.isContextual(\"await\") && this.canAwait) {\n expr = this.parseAwait(forInit);\n sawUnary = true;\n } else if (this.type.prefix) {\n var node = this.startNode(), update = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.incDec;\n node.operator = this.value;\n node.prefix = true;\n this.next();\n node.argument = this.parseMaybeUnary(null, true, update, forInit);\n this.checkExpressionErrors(refDestructuringErrors, true);\n if (update) this.checkLValSimple(node.argument);\n else if (this.strict && node.operator === \"delete\" && $f0e98b2c23d58ac9$var$isLocalVariableAccess(node.argument)) this.raiseRecoverable(node.start, \"Deleting local variable in strict mode\");\n else if (node.operator === \"delete\" && $f0e98b2c23d58ac9$var$isPrivateFieldAccess(node.argument)) this.raiseRecoverable(node.start, \"Private fields can not be deleted\");\n else sawUnary = true;\n expr = this.finishNode(node, update ? \"UpdateExpression\" : \"UnaryExpression\");\n } else if (!sawUnary && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.privateId) {\n if ((forInit || this.privateNameStack.length === 0) && this.options.checkPrivateFields) this.unexpected();\n expr = this.parsePrivateIdent();\n // only could be private fields in 'in', such as #x in obj\n if (this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._in) this.unexpected();\n } else {\n expr = this.parseExprSubscripts(refDestructuringErrors, forInit);\n if (this.checkExpressionErrors(refDestructuringErrors)) return expr;\n while(this.type.postfix && !this.canInsertSemicolon()){\n var node$1 = this.startNodeAt(startPos, startLoc);\n node$1.operator = this.value;\n node$1.prefix = false;\n node$1.argument = expr;\n this.checkLValSimple(expr);\n this.next();\n expr = this.finishNode(node$1, \"UpdateExpression\");\n }\n }\n if (!incDec && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.starstar)) {\n if (sawUnary) this.unexpected(this.lastTokStart);\n else return this.buildBinary(startPos, startLoc, expr, this.parseMaybeUnary(null, false, false, forInit), \"**\", false);\n } else return expr;\n};\nfunction $f0e98b2c23d58ac9$var$isLocalVariableAccess(node) {\n return node.type === \"Identifier\" || node.type === \"ParenthesizedExpression\" && $f0e98b2c23d58ac9$var$isLocalVariableAccess(node.expression);\n}\nfunction $f0e98b2c23d58ac9$var$isPrivateFieldAccess(node) {\n return node.type === \"MemberExpression\" && node.property.type === \"PrivateIdentifier\" || node.type === \"ChainExpression\" && $f0e98b2c23d58ac9$var$isPrivateFieldAccess(node.expression) || node.type === \"ParenthesizedExpression\" && $f0e98b2c23d58ac9$var$isPrivateFieldAccess(node.expression);\n}\n// Parse call, dot, and `[]`-subscript expressions.\n$f0e98b2c23d58ac9$var$pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {\n var startPos = this.start, startLoc = this.startLoc;\n var expr = this.parseExprAtom(refDestructuringErrors, forInit);\n if (expr.type === \"ArrowFunctionExpression\" && this.input.slice(this.lastTokStart, this.lastTokEnd) !== \")\") return expr;\n var result = this.parseSubscripts(expr, startPos, startLoc, false, forInit);\n if (refDestructuringErrors && result.type === \"MemberExpression\") {\n if (refDestructuringErrors.parenthesizedAssign >= result.start) refDestructuringErrors.parenthesizedAssign = -1;\n if (refDestructuringErrors.parenthesizedBind >= result.start) refDestructuringErrors.parenthesizedBind = -1;\n if (refDestructuringErrors.trailingComma >= result.start) refDestructuringErrors.trailingComma = -1;\n }\n return result;\n};\n$f0e98b2c23d58ac9$var$pp$5.parseSubscripts = function(base, startPos, startLoc, noCalls, forInit) {\n var maybeAsyncArrow = this.options.ecmaVersion >= 8 && base.type === \"Identifier\" && base.name === \"async\" && this.lastTokEnd === base.end && !this.canInsertSemicolon() && base.end - base.start === 5 && this.potentialArrowAt === base.start;\n var optionalChained = false;\n while(true){\n var element = this.parseSubscript(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit);\n if (element.optional) optionalChained = true;\n if (element === base || element.type === \"ArrowFunctionExpression\") {\n if (optionalChained) {\n var chainNode = this.startNodeAt(startPos, startLoc);\n chainNode.expression = element;\n element = this.finishNode(chainNode, \"ChainExpression\");\n }\n return element;\n }\n base = element;\n }\n};\n$f0e98b2c23d58ac9$var$pp$5.shouldParseAsyncArrow = function() {\n return !this.canInsertSemicolon() && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.arrow);\n};\n$f0e98b2c23d58ac9$var$pp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit);\n};\n$f0e98b2c23d58ac9$var$pp$5.parseSubscript = function(base, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {\n var optionalSupported = this.options.ecmaVersion >= 11;\n var optional = optionalSupported && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.questionDot);\n if (noCalls && optional) this.raise(this.lastTokStart, \"Optional chaining cannot appear in the callee of new expressions\");\n var computed = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL);\n if (computed || optional && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.backQuote || this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot)) {\n var node = this.startNodeAt(startPos, startLoc);\n node.object = base;\n if (computed) {\n node.property = this.parseExpression();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketR);\n } else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.privateId && base.type !== \"Super\") node.property = this.parsePrivateIdent();\n else node.property = this.parseIdent(this.options.allowReserved !== \"never\");\n node.computed = !!computed;\n if (optionalSupported) node.optional = optional;\n base = this.finishNode(node, \"MemberExpression\");\n } else if (!noCalls && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL)) {\n var refDestructuringErrors = new $f0e98b2c23d58ac9$var$DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n var exprList = this.parseExprList($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);\n if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {\n this.checkPatternErrors(refDestructuringErrors, false);\n this.checkYieldAwaitInDefaultParams();\n if (this.awaitIdentPos > 0) this.raise(this.awaitIdentPos, \"Cannot use 'await' as identifier inside an async function\");\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit);\n }\n this.checkExpressionErrors(refDestructuringErrors, true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n this.awaitIdentPos = oldAwaitIdentPos || this.awaitIdentPos;\n var node$1 = this.startNodeAt(startPos, startLoc);\n node$1.callee = base;\n node$1.arguments = exprList;\n if (optionalSupported) node$1.optional = optional;\n base = this.finishNode(node$1, \"CallExpression\");\n } else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.backQuote) {\n if (optional || optionalChained) this.raise(this.start, \"Optional chaining cannot appear in the tag of tagged template expressions\");\n var node$2 = this.startNodeAt(startPos, startLoc);\n node$2.tag = base;\n node$2.quasi = this.parseTemplate({\n isTagged: true\n });\n base = this.finishNode(node$2, \"TaggedTemplateExpression\");\n }\n return base;\n};\n// Parse an atomic expression — either a single token that is an\n// expression, an expression started by a keyword like `function` or\n// `new`, or an expression wrapped in punctuation like `()`, `[]`,\n// or `{}`.\n$f0e98b2c23d58ac9$var$pp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {\n // If a division operator appears in an expression position, the\n // tokenizer got confused, and we force it to read a regexp instead.\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.slash) this.readRegexp();\n var node, canBeArrow = this.potentialArrowAt === this.start;\n switch(this.type){\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._super:\n if (!this.allowSuper) this.raise(this.start, \"'super' keyword outside a method\");\n node = this.startNode();\n this.next();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL && !this.allowDirectSuper) this.raise(node.start, \"super() call outside constructor of a subclass\");\n // The `super` keyword can appear at below:\n // SuperProperty:\n // super [ Expression ]\n // super . IdentifierName\n // SuperCall:\n // super ( Arguments )\n if (this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL) this.unexpected();\n return this.finishNode(node, \"Super\");\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._this:\n node = this.startNode();\n this.next();\n return this.finishNode(node, \"ThisExpression\");\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name:\n var startPos = this.start, startLoc = this.startLoc, containsEsc = this.containsEsc;\n var id = this.parseIdent(false);\n if (this.options.ecmaVersion >= 8 && !containsEsc && id.name === \"async\" && !this.canInsertSemicolon() && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._function)) {\n this.overrideContext($f0e98b2c23d58ac9$export$2b5f701edfbd6f00.f_expr);\n return this.parseFunction(this.startNodeAt(startPos, startLoc), 0, false, true, forInit);\n }\n if (canBeArrow && !this.canInsertSemicolon()) {\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.arrow)) return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [\n id\n ], false, forInit);\n if (this.options.ecmaVersion >= 8 && id.name === \"async\" && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name && !containsEsc && (!this.potentialArrowInForAwait || this.value !== \"of\" || this.containsEsc)) {\n id = this.parseIdent(false);\n if (this.canInsertSemicolon() || !this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.arrow)) this.unexpected();\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), [\n id\n ], true, forInit);\n }\n }\n return id;\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.regexp:\n var value = this.value;\n node = this.parseLiteral(value.value);\n node.regex = {\n pattern: value.pattern,\n flags: value.flags\n };\n return node;\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.num:\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string:\n return this.parseLiteral(this.value);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._null:\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._true:\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._false:\n node = this.startNode();\n node.value = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._null ? null : this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._true;\n node.raw = this.type.keyword;\n this.next();\n return this.finishNode(node, \"Literal\");\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL:\n var start = this.start, expr = this.parseParenAndDistinguishExpression(canBeArrow, forInit);\n if (refDestructuringErrors) {\n if (refDestructuringErrors.parenthesizedAssign < 0 && !this.isSimpleAssignTarget(expr)) refDestructuringErrors.parenthesizedAssign = start;\n if (refDestructuringErrors.parenthesizedBind < 0) refDestructuringErrors.parenthesizedBind = start;\n }\n return expr;\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL:\n node = this.startNode();\n this.next();\n node.elements = this.parseExprList($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketR, true, true, refDestructuringErrors);\n return this.finishNode(node, \"ArrayExpression\");\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL:\n this.overrideContext($f0e98b2c23d58ac9$export$2b5f701edfbd6f00.b_expr);\n return this.parseObj(false, refDestructuringErrors);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._function:\n node = this.startNode();\n this.next();\n return this.parseFunction(node, 0);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._class:\n return this.parseClass(this.startNode(), false);\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._new:\n return this.parseNew();\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.backQuote:\n return this.parseTemplate();\n case $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8._import:\n if (this.options.ecmaVersion >= 11) return this.parseExprImport(forNew);\n else return this.unexpected();\n default:\n return this.parseExprAtomDefault();\n }\n};\n$f0e98b2c23d58ac9$var$pp$5.parseExprAtomDefault = function() {\n this.unexpected();\n};\n$f0e98b2c23d58ac9$var$pp$5.parseExprImport = function(forNew) {\n var node = this.startNode();\n // Consume `import` as an identifier for `import.meta`.\n // Because `this.parseIdent(true)` doesn't check escape sequences, it needs the check of `this.containsEsc`.\n if (this.containsEsc) this.raiseRecoverable(this.start, \"Escape sequence in keyword import\");\n this.next();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL && !forNew) return this.parseDynamicImport(node);\n else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot) {\n var meta = this.startNodeAt(node.start, node.loc && node.loc.start);\n meta.name = \"import\";\n node.meta = this.finishNode(meta, \"Identifier\");\n return this.parseImportMeta(node);\n } else this.unexpected();\n};\n$f0e98b2c23d58ac9$var$pp$5.parseDynamicImport = function(node) {\n this.next(); // skip `(`\n // Parse node.source.\n node.source = this.parseMaybeAssign();\n // Verify ending.\n if (!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR)) {\n var errorPos = this.start;\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR)) this.raiseRecoverable(errorPos, \"Trailing comma is not allowed in import()\");\n else this.unexpected(errorPos);\n }\n return this.finishNode(node, \"ImportExpression\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseImportMeta = function(node) {\n this.next(); // skip `.`\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n if (node.property.name !== \"meta\") this.raiseRecoverable(node.property.start, \"The only valid meta property for import is 'import.meta'\");\n if (containsEsc) this.raiseRecoverable(node.start, \"'import.meta' must not contain escaped characters\");\n if (this.options.sourceType !== \"module\" && !this.options.allowImportExportEverywhere) this.raiseRecoverable(node.start, \"Cannot use 'import.meta' outside a module\");\n return this.finishNode(node, \"MetaProperty\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseLiteral = function(value) {\n var node = this.startNode();\n node.value = value;\n node.raw = this.input.slice(this.start, this.end);\n if (node.raw.charCodeAt(node.raw.length - 1) === 110) node.bigint = node.raw.slice(0, -1).replace(/_/g, \"\");\n this.next();\n return this.finishNode(node, \"Literal\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseParenExpression = function() {\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL);\n var val = this.parseExpression();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR);\n return val;\n};\n$f0e98b2c23d58ac9$var$pp$5.shouldParseArrow = function(exprList) {\n return !this.canInsertSemicolon();\n};\n$f0e98b2c23d58ac9$var$pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {\n var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;\n if (this.options.ecmaVersion >= 6) {\n this.next();\n var innerStartPos = this.start, innerStartLoc = this.startLoc;\n var exprList = [], first = true, lastIsComma = false;\n var refDestructuringErrors = new $f0e98b2c23d58ac9$var$DestructuringErrors, oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, spreadStart;\n this.yieldPos = 0;\n this.awaitPos = 0;\n // Do not save awaitIdentPos to allow checking awaits nested in parameters\n while(this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR){\n first ? first = false : this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma);\n if (allowTrailingComma && this.afterTrailingComma($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR, true)) {\n lastIsComma = true;\n break;\n } else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.ellipsis) {\n spreadStart = this.start;\n exprList.push(this.parseParenItem(this.parseRestBinding()));\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\");\n break;\n } else exprList.push(this.parseMaybeAssign(false, refDestructuringErrors, this.parseParenItem));\n }\n var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR);\n if (canBeArrow && this.shouldParseArrow(exprList) && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.arrow)) {\n this.checkPatternErrors(refDestructuringErrors, false);\n this.checkYieldAwaitInDefaultParams();\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n return this.parseParenArrowList(startPos, startLoc, exprList, forInit);\n }\n if (!exprList.length || lastIsComma) this.unexpected(this.lastTokStart);\n if (spreadStart) this.unexpected(spreadStart);\n this.checkExpressionErrors(refDestructuringErrors, true);\n this.yieldPos = oldYieldPos || this.yieldPos;\n this.awaitPos = oldAwaitPos || this.awaitPos;\n if (exprList.length > 1) {\n val = this.startNodeAt(innerStartPos, innerStartLoc);\n val.expressions = exprList;\n this.finishNodeAt(val, \"SequenceExpression\", innerEndPos, innerEndLoc);\n } else val = exprList[0];\n } else val = this.parseParenExpression();\n if (this.options.preserveParens) {\n var par = this.startNodeAt(startPos, startLoc);\n par.expression = val;\n return this.finishNode(par, \"ParenthesizedExpression\");\n } else return val;\n};\n$f0e98b2c23d58ac9$var$pp$5.parseParenItem = function(item) {\n return item;\n};\n$f0e98b2c23d58ac9$var$pp$5.parseParenArrowList = function(startPos, startLoc, exprList, forInit) {\n return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, false, forInit);\n};\n// New's precedence is slightly tricky. It must allow its argument to\n// be a `[]` or dot subscript expression, but not a call — at least,\n// not without wrapping it in parentheses. Thus, it uses the noCalls\n// argument to parseSubscripts to prevent it from consuming the\n// argument list.\nvar $f0e98b2c23d58ac9$var$empty = [];\n$f0e98b2c23d58ac9$var$pp$5.parseNew = function() {\n if (this.containsEsc) this.raiseRecoverable(this.start, \"Escape sequence in keyword new\");\n var node = this.startNode();\n this.next();\n if (this.options.ecmaVersion >= 6 && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot) {\n var meta = this.startNodeAt(node.start, node.loc && node.loc.start);\n meta.name = \"new\";\n node.meta = this.finishNode(meta, \"Identifier\");\n this.next();\n var containsEsc = this.containsEsc;\n node.property = this.parseIdent(true);\n if (node.property.name !== \"target\") this.raiseRecoverable(node.property.start, \"The only valid meta property for new is 'new.target'\");\n if (containsEsc) this.raiseRecoverable(node.start, \"'new.target' must not contain escaped characters\");\n if (!this.allowNewDotTarget) this.raiseRecoverable(node.start, \"'new.target' can only be used in functions and class static block\");\n return this.finishNode(node, \"MetaProperty\");\n }\n var startPos = this.start, startLoc = this.startLoc;\n node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL)) node.arguments = this.parseExprList($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR, this.options.ecmaVersion >= 8, false);\n else node.arguments = $f0e98b2c23d58ac9$var$empty;\n return this.finishNode(node, \"NewExpression\");\n};\n// Parse template expression.\n$f0e98b2c23d58ac9$var$pp$5.parseTemplateElement = function(ref) {\n var isTagged = ref.isTagged;\n var elem = this.startNode();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.invalidTemplate) {\n if (!isTagged) this.raiseRecoverable(this.start, \"Bad escape sequence in untagged template literal\");\n elem.value = {\n raw: this.value.replace(/\\r\\n?/g, \"\\n\"),\n cooked: null\n };\n } else elem.value = {\n raw: this.input.slice(this.start, this.end).replace(/\\r\\n?/g, \"\\n\"),\n cooked: this.value\n };\n this.next();\n elem.tail = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.backQuote;\n return this.finishNode(elem, \"TemplateElement\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseTemplate = function(ref) {\n if (ref === void 0) ref = {};\n var isTagged = ref.isTagged;\n if (isTagged === void 0) isTagged = false;\n var node = this.startNode();\n this.next();\n node.expressions = [];\n var curElt = this.parseTemplateElement({\n isTagged: isTagged\n });\n node.quasis = [\n curElt\n ];\n while(!curElt.tail){\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof) this.raise(this.pos, \"Unterminated template literal\");\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dollarBraceL);\n node.expressions.push(this.parseExpression());\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR);\n node.quasis.push(curElt = this.parseTemplateElement({\n isTagged: isTagged\n }));\n }\n this.next();\n return this.finishNode(node, \"TemplateLiteral\");\n};\n$f0e98b2c23d58ac9$var$pp$5.isAsyncProp = function(prop) {\n return !prop.computed && prop.key.type === \"Identifier\" && prop.key.name === \"async\" && (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.num || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL || this.type.keyword || this.options.ecmaVersion >= 9 && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star) && !$f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.start));\n};\n// Parse an object literal or binding pattern.\n$f0e98b2c23d58ac9$var$pp$5.parseObj = function(isPattern, refDestructuringErrors) {\n var node = this.startNode(), first = true, propHash = {};\n node.properties = [];\n this.next();\n while(!this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR)){\n if (!first) {\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma);\n if (this.options.ecmaVersion >= 5 && this.afterTrailingComma($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR)) break;\n } else first = false;\n var prop = this.parseProperty(isPattern, refDestructuringErrors);\n if (!isPattern) this.checkPropClash(prop, propHash, refDestructuringErrors);\n node.properties.push(prop);\n }\n return this.finishNode(node, isPattern ? \"ObjectPattern\" : \"ObjectExpression\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseProperty = function(isPattern, refDestructuringErrors) {\n var prop = this.startNode(), isGenerator, isAsync, startPos, startLoc;\n if (this.options.ecmaVersion >= 9 && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.ellipsis)) {\n if (isPattern) {\n prop.argument = this.parseIdent(false);\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) this.raiseRecoverable(this.start, \"Comma is not permitted after the rest element\");\n return this.finishNode(prop, \"RestElement\");\n }\n // Parse argument.\n prop.argument = this.parseMaybeAssign(false, refDestructuringErrors);\n // To disallow trailing comma via `this.toAssignable()`.\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma && refDestructuringErrors && refDestructuringErrors.trailingComma < 0) refDestructuringErrors.trailingComma = this.start;\n // Finish\n return this.finishNode(prop, \"SpreadElement\");\n }\n if (this.options.ecmaVersion >= 6) {\n prop.method = false;\n prop.shorthand = false;\n if (isPattern || refDestructuringErrors) {\n startPos = this.start;\n startLoc = this.startLoc;\n }\n if (!isPattern) isGenerator = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star);\n }\n var containsEsc = this.containsEsc;\n this.parsePropertyName(prop);\n if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {\n isAsync = true;\n isGenerator = this.options.ecmaVersion >= 9 && this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star);\n this.parsePropertyName(prop);\n } else isAsync = false;\n this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);\n return this.finishNode(prop, \"Property\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseGetterSetter = function(prop) {\n prop.kind = prop.key.name;\n this.parsePropertyName(prop);\n prop.value = this.parseMethod(false);\n var paramCount = prop.kind === \"get\" ? 0 : 1;\n if (prop.value.params.length !== paramCount) {\n var start = prop.value.start;\n if (prop.kind === \"get\") this.raiseRecoverable(start, \"getter should have no params\");\n else this.raiseRecoverable(start, \"setter should have exactly one param\");\n } else if (prop.kind === \"set\" && prop.value.params[0].type === \"RestElement\") this.raiseRecoverable(prop.value.params[0].start, \"Setter cannot use rest params\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {\n if ((isGenerator || isAsync) && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon) this.unexpected();\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.colon)) {\n prop.value = isPattern ? this.parseMaybeDefault(this.start, this.startLoc) : this.parseMaybeAssign(false, refDestructuringErrors);\n prop.kind = \"init\";\n } else if (this.options.ecmaVersion >= 6 && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL) {\n if (isPattern) this.unexpected();\n prop.kind = \"init\";\n prop.method = true;\n prop.value = this.parseMethod(isGenerator, isAsync);\n } else if (!isPattern && !containsEsc && this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === \"Identifier\" && (prop.key.name === \"get\" || prop.key.name === \"set\") && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceR && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq) {\n if (isGenerator || isAsync) this.unexpected();\n this.parseGetterSetter(prop);\n } else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === \"Identifier\") {\n if (isGenerator || isAsync) this.unexpected();\n this.checkUnreserved(prop.key);\n if (prop.key.name === \"await\" && !this.awaitIdentPos) this.awaitIdentPos = startPos;\n prop.kind = \"init\";\n if (isPattern) prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));\n else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eq && refDestructuringErrors) {\n if (refDestructuringErrors.shorthandAssign < 0) refDestructuringErrors.shorthandAssign = this.start;\n prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));\n } else prop.value = this.copyNode(prop.key);\n prop.shorthand = true;\n } else this.unexpected();\n};\n$f0e98b2c23d58ac9$var$pp$5.parsePropertyName = function(prop) {\n if (this.options.ecmaVersion >= 6) {\n if (this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketL)) {\n prop.computed = true;\n prop.key = this.parseMaybeAssign();\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bracketR);\n return prop.key;\n } else prop.computed = false;\n }\n return prop.key = this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.num || this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.string ? this.parseExprAtom() : this.parseIdent(this.options.allowReserved !== \"never\");\n};\n// Initialize empty function node.\n$f0e98b2c23d58ac9$var$pp$5.initFunction = function(node) {\n node.id = null;\n if (this.options.ecmaVersion >= 6) node.generator = node.expression = false;\n if (this.options.ecmaVersion >= 8) node.async = false;\n};\n// Parse object or class method.\n$f0e98b2c23d58ac9$var$pp$5.parseMethod = function(isGenerator, isAsync, allowDirectSuper) {\n var node = this.startNode(), oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.initFunction(node);\n if (this.options.ecmaVersion >= 6) node.generator = isGenerator;\n if (this.options.ecmaVersion >= 8) node.async = !!isAsync;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n this.enterScope($f0e98b2c23d58ac9$var$functionFlags(isAsync, node.generator) | $f0e98b2c23d58ac9$var$SCOPE_SUPER | (allowDirectSuper ? $f0e98b2c23d58ac9$var$SCOPE_DIRECT_SUPER : 0));\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenL);\n node.params = this.parseBindingList($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.parenR, false, this.options.ecmaVersion >= 8);\n this.checkYieldAwaitInDefaultParams();\n this.parseFunctionBody(node, false, true, false);\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, \"FunctionExpression\");\n};\n// Parse arrow function expression with given parameters.\n$f0e98b2c23d58ac9$var$pp$5.parseArrowExpression = function(node, params, isAsync, forInit) {\n var oldYieldPos = this.yieldPos, oldAwaitPos = this.awaitPos, oldAwaitIdentPos = this.awaitIdentPos;\n this.enterScope($f0e98b2c23d58ac9$var$functionFlags(isAsync, false) | $f0e98b2c23d58ac9$var$SCOPE_ARROW);\n this.initFunction(node);\n if (this.options.ecmaVersion >= 8) node.async = !!isAsync;\n this.yieldPos = 0;\n this.awaitPos = 0;\n this.awaitIdentPos = 0;\n node.params = this.toAssignableList(params, true);\n this.parseFunctionBody(node, true, false, forInit);\n this.yieldPos = oldYieldPos;\n this.awaitPos = oldAwaitPos;\n this.awaitIdentPos = oldAwaitIdentPos;\n return this.finishNode(node, \"ArrowFunctionExpression\");\n};\n// Parse function body and check parameters.\n$f0e98b2c23d58ac9$var$pp$5.parseFunctionBody = function(node, isArrowFunction, isMethod, forInit) {\n var isExpression = isArrowFunction && this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.braceL;\n var oldStrict = this.strict, useStrict = false;\n if (isExpression) {\n node.body = this.parseMaybeAssign(forInit);\n node.expression = true;\n this.checkParams(node, false);\n } else {\n var nonSimple = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(node.params);\n if (!oldStrict || nonSimple) {\n useStrict = this.strictDirective(this.end);\n // If this is a strict mode function, verify that argument names\n // are not repeated, and it does not try to bind the words `eval`\n // or `arguments`.\n if (useStrict && nonSimple) this.raiseRecoverable(node.start, \"Illegal 'use strict' directive in function with non-simple parameter list\");\n }\n // Start a new scope with regard to labels and the `inFunction`\n // flag (restore them to their old value afterwards).\n var oldLabels = this.labels;\n this.labels = [];\n if (useStrict) this.strict = true;\n // Add the params to varDeclaredNames to ensure that an error is thrown\n // if a let/const declaration in the function clashes with one of the params.\n this.checkParams(node, !oldStrict && !useStrict && !isArrowFunction && !isMethod && this.isSimpleParamList(node.params));\n // Ensure the function name isn't a forbidden identifier in strict mode, e.g. 'eval'\n if (this.strict && node.id) this.checkLValSimple(node.id, $f0e98b2c23d58ac9$var$BIND_OUTSIDE);\n node.body = this.parseBlock(false, undefined, useStrict && !oldStrict);\n node.expression = false;\n this.adaptDirectivePrologue(node.body.body);\n this.labels = oldLabels;\n }\n this.exitScope();\n};\n$f0e98b2c23d58ac9$var$pp$5.isSimpleParamList = function(params) {\n for(var i = 0, list = params; i < list.length; i += 1){\n var param = list[i];\n if (param.type !== \"Identifier\") return false;\n }\n return true;\n};\n// Checks function params for various disallowed patterns such as using \"eval\"\n// or \"arguments\" and duplicate parameters.\n$f0e98b2c23d58ac9$var$pp$5.checkParams = function(node, allowDuplicates) {\n var nameHash = Object.create(null);\n for(var i = 0, list = node.params; i < list.length; i += 1){\n var param = list[i];\n this.checkLValInnerPattern(param, $f0e98b2c23d58ac9$var$BIND_VAR, allowDuplicates ? null : nameHash);\n }\n};\n// Parses a comma-separated list of expressions, and returns them as\n// an array. `close` is the token type that ends the list, and\n// `allowEmpty` can be turned on to allow subsequent commas with\n// nothing in between them to be parsed as `null` (which is needed\n// for array literals).\n$f0e98b2c23d58ac9$var$pp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestructuringErrors) {\n var elts = [], first = true;\n while(!this.eat(close)){\n if (!first) {\n this.expect($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma);\n if (allowTrailingComma && this.afterTrailingComma(close)) break;\n } else first = false;\n var elt = void 0;\n if (allowEmpty && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma) elt = null;\n else if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.ellipsis) {\n elt = this.parseSpread(refDestructuringErrors);\n if (refDestructuringErrors && this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.comma && refDestructuringErrors.trailingComma < 0) refDestructuringErrors.trailingComma = this.start;\n } else elt = this.parseMaybeAssign(false, refDestructuringErrors);\n elts.push(elt);\n }\n return elts;\n};\n$f0e98b2c23d58ac9$var$pp$5.checkUnreserved = function(ref) {\n var start = ref.start;\n var end = ref.end;\n var name = ref.name;\n if (this.inGenerator && name === \"yield\") this.raiseRecoverable(start, \"Cannot use 'yield' as identifier inside a generator\");\n if (this.inAsync && name === \"await\") this.raiseRecoverable(start, \"Cannot use 'await' as identifier inside an async function\");\n if (this.currentThisScope().inClassFieldInit && name === \"arguments\") this.raiseRecoverable(start, \"Cannot use 'arguments' in class field initializer\");\n if (this.inClassStaticBlock && (name === \"arguments\" || name === \"await\")) this.raise(start, \"Cannot use \" + name + \" in class static initialization block\");\n if (this.keywords.test(name)) this.raise(start, \"Unexpected keyword '\" + name + \"'\");\n if (this.options.ecmaVersion < 6 && this.input.slice(start, end).indexOf(\"\\\\\") !== -1) return;\n var re = this.strict ? this.reservedWordsStrict : this.reservedWords;\n if (re.test(name)) {\n if (!this.inAsync && name === \"await\") this.raiseRecoverable(start, \"Cannot use keyword 'await' outside an async function\");\n this.raiseRecoverable(start, \"The keyword '\" + name + \"' is reserved\");\n }\n};\n// Parse the next token as an identifier. If `liberal` is true (used\n// when parsing properties), it will also convert keywords into\n// identifiers.\n$f0e98b2c23d58ac9$var$pp$5.parseIdent = function(liberal) {\n var node = this.parseIdentNode();\n this.next(!!liberal);\n this.finishNode(node, \"Identifier\");\n if (!liberal) {\n this.checkUnreserved(node);\n if (node.name === \"await\" && !this.awaitIdentPos) this.awaitIdentPos = node.start;\n }\n return node;\n};\n$f0e98b2c23d58ac9$var$pp$5.parseIdentNode = function() {\n var node = this.startNode();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name) node.name = this.value;\n else if (this.type.keyword) {\n node.name = this.type.keyword;\n // To fix https://github.com/acornjs/acorn/issues/575\n // `class` and `function` keywords push new context into this.context.\n // But there is no chance to pop the context if the keyword is consumed as an identifier such as a property name.\n // If the previous token is a dot, this does not apply because the context-managing code already ignored the keyword\n if ((node.name === \"class\" || node.name === \"function\") && (this.lastTokEnd !== this.lastTokStart + 1 || this.input.charCodeAt(this.lastTokStart) !== 46)) this.context.pop();\n this.type = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.name;\n } else this.unexpected();\n return node;\n};\n$f0e98b2c23d58ac9$var$pp$5.parsePrivateIdent = function() {\n var node = this.startNode();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.privateId) node.name = this.value;\n else this.unexpected();\n this.next();\n this.finishNode(node, \"PrivateIdentifier\");\n // For validating existence\n if (this.options.checkPrivateFields) {\n if (this.privateNameStack.length === 0) this.raise(node.start, \"Private field '#\" + node.name + \"' must be declared in an enclosing class\");\n else this.privateNameStack[this.privateNameStack.length - 1].used.push(node);\n }\n return node;\n};\n// Parses yield expression inside generator.\n$f0e98b2c23d58ac9$var$pp$5.parseYield = function(forInit) {\n if (!this.yieldPos) this.yieldPos = this.start;\n var node = this.startNode();\n this.next();\n if (this.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.semi || this.canInsertSemicolon() || this.type !== $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star && !this.type.startsExpr) {\n node.delegate = false;\n node.argument = null;\n } else {\n node.delegate = this.eat($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star);\n node.argument = this.parseMaybeAssign(forInit);\n }\n return this.finishNode(node, \"YieldExpression\");\n};\n$f0e98b2c23d58ac9$var$pp$5.parseAwait = function(forInit) {\n if (!this.awaitPos) this.awaitPos = this.start;\n var node = this.startNode();\n this.next();\n node.argument = this.parseMaybeUnary(null, true, false, forInit);\n return this.finishNode(node, \"AwaitExpression\");\n};\nvar $f0e98b2c23d58ac9$var$pp$4 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// This function is used to raise exceptions on parse errors. It\n// takes an offset integer (into the current `input`) to indicate\n// the location of the error, attaches the position to the end\n// of the error message, and then raises a `SyntaxError` with that\n// message.\n$f0e98b2c23d58ac9$var$pp$4.raise = function(pos, message) {\n var loc = $f0e98b2c23d58ac9$export$7af82191547c5ff7(this.input, pos);\n message += \" (\" + loc.line + \":\" + loc.column + \")\";\n var err = new SyntaxError(message);\n err.pos = pos;\n err.loc = loc;\n err.raisedAt = this.pos;\n throw err;\n};\n$f0e98b2c23d58ac9$var$pp$4.raiseRecoverable = $f0e98b2c23d58ac9$var$pp$4.raise;\n$f0e98b2c23d58ac9$var$pp$4.curPosition = function() {\n if (this.options.locations) return new $f0e98b2c23d58ac9$export$13807d9ee5a34a42(this.curLine, this.pos - this.lineStart);\n};\nvar $f0e98b2c23d58ac9$var$pp$3 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\nvar $f0e98b2c23d58ac9$var$Scope = function Scope(flags) {\n this.flags = flags;\n // A list of var-declared names in the current lexical scope\n this.var = [];\n // A list of lexically-declared names in the current lexical scope\n this.lexical = [];\n // A list of lexically-declared FunctionDeclaration names in the current lexical scope\n this.functions = [];\n // A switch to disallow the identifier reference 'arguments'\n this.inClassFieldInit = false;\n};\n// The functions in this module keep track of declared variables in the current scope in order to detect duplicate variable names.\n$f0e98b2c23d58ac9$var$pp$3.enterScope = function(flags) {\n this.scopeStack.push(new $f0e98b2c23d58ac9$var$Scope(flags));\n};\n$f0e98b2c23d58ac9$var$pp$3.exitScope = function() {\n this.scopeStack.pop();\n};\n// The spec says:\n// > At the top level of a function, or script, function declarations are\n// > treated like var declarations rather than like lexical declarations.\n$f0e98b2c23d58ac9$var$pp$3.treatFunctionsAsVarInScope = function(scope) {\n return scope.flags & $f0e98b2c23d58ac9$var$SCOPE_FUNCTION || !this.inModule && scope.flags & $f0e98b2c23d58ac9$var$SCOPE_TOP;\n};\n$f0e98b2c23d58ac9$var$pp$3.declareName = function(name, bindingType, pos) {\n var redeclared = false;\n if (bindingType === $f0e98b2c23d58ac9$var$BIND_LEXICAL) {\n var scope = this.currentScope();\n redeclared = scope.lexical.indexOf(name) > -1 || scope.functions.indexOf(name) > -1 || scope.var.indexOf(name) > -1;\n scope.lexical.push(name);\n if (this.inModule && scope.flags & $f0e98b2c23d58ac9$var$SCOPE_TOP) delete this.undefinedExports[name];\n } else if (bindingType === $f0e98b2c23d58ac9$var$BIND_SIMPLE_CATCH) {\n var scope$1 = this.currentScope();\n scope$1.lexical.push(name);\n } else if (bindingType === $f0e98b2c23d58ac9$var$BIND_FUNCTION) {\n var scope$2 = this.currentScope();\n if (this.treatFunctionsAsVar) redeclared = scope$2.lexical.indexOf(name) > -1;\n else redeclared = scope$2.lexical.indexOf(name) > -1 || scope$2.var.indexOf(name) > -1;\n scope$2.functions.push(name);\n } else for(var i = this.scopeStack.length - 1; i >= 0; --i){\n var scope$3 = this.scopeStack[i];\n if (scope$3.lexical.indexOf(name) > -1 && !(scope$3.flags & $f0e98b2c23d58ac9$var$SCOPE_SIMPLE_CATCH && scope$3.lexical[0] === name) || !this.treatFunctionsAsVarInScope(scope$3) && scope$3.functions.indexOf(name) > -1) {\n redeclared = true;\n break;\n }\n scope$3.var.push(name);\n if (this.inModule && scope$3.flags & $f0e98b2c23d58ac9$var$SCOPE_TOP) delete this.undefinedExports[name];\n if (scope$3.flags & $f0e98b2c23d58ac9$var$SCOPE_VAR) break;\n }\n if (redeclared) this.raiseRecoverable(pos, \"Identifier '\" + name + \"' has already been declared\");\n};\n$f0e98b2c23d58ac9$var$pp$3.checkLocalExport = function(id) {\n // scope.functions must be empty as Module code is always strict.\n if (this.scopeStack[0].lexical.indexOf(id.name) === -1 && this.scopeStack[0].var.indexOf(id.name) === -1) this.undefinedExports[id.name] = id;\n};\n$f0e98b2c23d58ac9$var$pp$3.currentScope = function() {\n return this.scopeStack[this.scopeStack.length - 1];\n};\n$f0e98b2c23d58ac9$var$pp$3.currentVarScope = function() {\n for(var i = this.scopeStack.length - 1;; i--){\n var scope = this.scopeStack[i];\n if (scope.flags & $f0e98b2c23d58ac9$var$SCOPE_VAR) return scope;\n }\n};\n// Could be useful for `this`, `new.target`, `super()`, `super.property`, and `super[property]`.\n$f0e98b2c23d58ac9$var$pp$3.currentThisScope = function() {\n for(var i = this.scopeStack.length - 1;; i--){\n var scope = this.scopeStack[i];\n if (scope.flags & $f0e98b2c23d58ac9$var$SCOPE_VAR && !(scope.flags & $f0e98b2c23d58ac9$var$SCOPE_ARROW)) return scope;\n }\n};\nvar $f0e98b2c23d58ac9$export$85c928794f8d04d4 = function Node(parser, pos, loc) {\n this.type = \"\";\n this.start = pos;\n this.end = 0;\n if (parser.options.locations) this.loc = new $f0e98b2c23d58ac9$export$7387db7caf96fcdb(parser, loc);\n if (parser.options.directSourceFile) this.sourceFile = parser.options.directSourceFile;\n if (parser.options.ranges) this.range = [\n pos,\n 0\n ];\n};\n// Start an AST node, attaching a start offset.\nvar $f0e98b2c23d58ac9$var$pp$2 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n$f0e98b2c23d58ac9$var$pp$2.startNode = function() {\n return new $f0e98b2c23d58ac9$export$85c928794f8d04d4(this, this.start, this.startLoc);\n};\n$f0e98b2c23d58ac9$var$pp$2.startNodeAt = function(pos, loc) {\n return new $f0e98b2c23d58ac9$export$85c928794f8d04d4(this, pos, loc);\n};\n// Finish an AST node, adding `type` and `end` properties.\nfunction $f0e98b2c23d58ac9$var$finishNodeAt(node, type, pos, loc) {\n node.type = type;\n node.end = pos;\n if (this.options.locations) node.loc.end = loc;\n if (this.options.ranges) node.range[1] = pos;\n return node;\n}\n$f0e98b2c23d58ac9$var$pp$2.finishNode = function(node, type) {\n return $f0e98b2c23d58ac9$var$finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);\n};\n// Finish node at given position\n$f0e98b2c23d58ac9$var$pp$2.finishNodeAt = function(node, type, pos, loc) {\n return $f0e98b2c23d58ac9$var$finishNodeAt.call(this, node, type, pos, loc);\n};\n$f0e98b2c23d58ac9$var$pp$2.copyNode = function(node) {\n var newNode = new $f0e98b2c23d58ac9$export$85c928794f8d04d4(this, node.start, this.startLoc);\n for(var prop in node)newNode[prop] = node[prop];\n return newNode;\n};\n// This file contains Unicode properties extracted from the ECMAScript specification.\n// The lists are extracted like so:\n// $$('#table-binary-unicode-properties > figure > table > tbody > tr > td:nth-child(1) code').map(el => el.innerText)\n// #table-binary-unicode-properties\nvar $f0e98b2c23d58ac9$var$ecma9BinaryProperties = \"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\";\nvar $f0e98b2c23d58ac9$var$ecma10BinaryProperties = $f0e98b2c23d58ac9$var$ecma9BinaryProperties + \" Extended_Pictographic\";\nvar $f0e98b2c23d58ac9$var$ecma11BinaryProperties = $f0e98b2c23d58ac9$var$ecma10BinaryProperties;\nvar $f0e98b2c23d58ac9$var$ecma12BinaryProperties = $f0e98b2c23d58ac9$var$ecma11BinaryProperties + \" EBase EComp EMod EPres ExtPict\";\nvar $f0e98b2c23d58ac9$var$ecma13BinaryProperties = $f0e98b2c23d58ac9$var$ecma12BinaryProperties;\nvar $f0e98b2c23d58ac9$var$ecma14BinaryProperties = $f0e98b2c23d58ac9$var$ecma13BinaryProperties;\nvar $f0e98b2c23d58ac9$var$unicodeBinaryProperties = {\n 9: $f0e98b2c23d58ac9$var$ecma9BinaryProperties,\n 10: $f0e98b2c23d58ac9$var$ecma10BinaryProperties,\n 11: $f0e98b2c23d58ac9$var$ecma11BinaryProperties,\n 12: $f0e98b2c23d58ac9$var$ecma12BinaryProperties,\n 13: $f0e98b2c23d58ac9$var$ecma13BinaryProperties,\n 14: $f0e98b2c23d58ac9$var$ecma14BinaryProperties\n};\n// #table-binary-unicode-properties-of-strings\nvar $f0e98b2c23d58ac9$var$ecma14BinaryPropertiesOfStrings = \"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji\";\nvar $f0e98b2c23d58ac9$var$unicodeBinaryPropertiesOfStrings = {\n 9: \"\",\n 10: \"\",\n 11: \"\",\n 12: \"\",\n 13: \"\",\n 14: $f0e98b2c23d58ac9$var$ecma14BinaryPropertiesOfStrings\n};\n// #table-unicode-general-category-values\nvar $f0e98b2c23d58ac9$var$unicodeGeneralCategoryValues = \"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\";\n// #table-unicode-script-values\nvar $f0e98b2c23d58ac9$var$ecma9ScriptValues = \"Adlam Adlm 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 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\";\nvar $f0e98b2c23d58ac9$var$ecma10ScriptValues = $f0e98b2c23d58ac9$var$ecma9ScriptValues + \" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd\";\nvar $f0e98b2c23d58ac9$var$ecma11ScriptValues = $f0e98b2c23d58ac9$var$ecma10ScriptValues + \" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho\";\nvar $f0e98b2c23d58ac9$var$ecma12ScriptValues = $f0e98b2c23d58ac9$var$ecma11ScriptValues + \" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi\";\nvar $f0e98b2c23d58ac9$var$ecma13ScriptValues = $f0e98b2c23d58ac9$var$ecma12ScriptValues + \" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith\";\nvar $f0e98b2c23d58ac9$var$ecma14ScriptValues = $f0e98b2c23d58ac9$var$ecma13ScriptValues + \" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz\";\nvar $f0e98b2c23d58ac9$var$unicodeScriptValues = {\n 9: $f0e98b2c23d58ac9$var$ecma9ScriptValues,\n 10: $f0e98b2c23d58ac9$var$ecma10ScriptValues,\n 11: $f0e98b2c23d58ac9$var$ecma11ScriptValues,\n 12: $f0e98b2c23d58ac9$var$ecma12ScriptValues,\n 13: $f0e98b2c23d58ac9$var$ecma13ScriptValues,\n 14: $f0e98b2c23d58ac9$var$ecma14ScriptValues\n};\nvar $f0e98b2c23d58ac9$var$data = {};\nfunction $f0e98b2c23d58ac9$var$buildUnicodeData(ecmaVersion) {\n var d = $f0e98b2c23d58ac9$var$data[ecmaVersion] = {\n binary: $f0e98b2c23d58ac9$var$wordsRegexp($f0e98b2c23d58ac9$var$unicodeBinaryProperties[ecmaVersion] + \" \" + $f0e98b2c23d58ac9$var$unicodeGeneralCategoryValues),\n binaryOfStrings: $f0e98b2c23d58ac9$var$wordsRegexp($f0e98b2c23d58ac9$var$unicodeBinaryPropertiesOfStrings[ecmaVersion]),\n nonBinary: {\n General_Category: $f0e98b2c23d58ac9$var$wordsRegexp($f0e98b2c23d58ac9$var$unicodeGeneralCategoryValues),\n Script: $f0e98b2c23d58ac9$var$wordsRegexp($f0e98b2c23d58ac9$var$unicodeScriptValues[ecmaVersion])\n }\n };\n d.nonBinary.Script_Extensions = d.nonBinary.Script;\n d.nonBinary.gc = d.nonBinary.General_Category;\n d.nonBinary.sc = d.nonBinary.Script;\n d.nonBinary.scx = d.nonBinary.Script_Extensions;\n}\nfor(var $f0e98b2c23d58ac9$var$i = 0, $f0e98b2c23d58ac9$var$list = [\n 9,\n 10,\n 11,\n 12,\n 13,\n 14\n]; $f0e98b2c23d58ac9$var$i < $f0e98b2c23d58ac9$var$list.length; $f0e98b2c23d58ac9$var$i += 1){\n var $f0e98b2c23d58ac9$var$ecmaVersion = $f0e98b2c23d58ac9$var$list[$f0e98b2c23d58ac9$var$i];\n $f0e98b2c23d58ac9$var$buildUnicodeData($f0e98b2c23d58ac9$var$ecmaVersion);\n}\nvar $f0e98b2c23d58ac9$var$pp$1 = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// Track disjunction structure to determine whether a duplicate\n// capture group name is allowed because it is in a separate branch.\nvar $f0e98b2c23d58ac9$var$BranchID = function BranchID(parent, base) {\n // Parent disjunction branch\n this.parent = parent;\n // Identifies this set of sibling branches\n this.base = base || this;\n};\n$f0e98b2c23d58ac9$var$BranchID.prototype.separatedFrom = function separatedFrom(alt) {\n // A branch is separate from another branch if they or any of\n // their parents are siblings in a given disjunction\n for(var self = this; self; self = self.parent)for(var other = alt; other; other = other.parent){\n if (self.base === other.base && self !== other) return true;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$BranchID.prototype.sibling = function sibling() {\n return new $f0e98b2c23d58ac9$var$BranchID(this.parent, this.base);\n};\nvar $f0e98b2c23d58ac9$var$RegExpValidationState = function RegExpValidationState(parser) {\n this.parser = parser;\n this.validFlags = \"gim\" + (parser.options.ecmaVersion >= 6 ? \"uy\" : \"\") + (parser.options.ecmaVersion >= 9 ? \"s\" : \"\") + (parser.options.ecmaVersion >= 13 ? \"d\" : \"\") + (parser.options.ecmaVersion >= 15 ? \"v\" : \"\");\n this.unicodeProperties = $f0e98b2c23d58ac9$var$data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];\n this.source = \"\";\n this.flags = \"\";\n this.start = 0;\n this.switchU = false;\n this.switchV = false;\n this.switchN = false;\n this.pos = 0;\n this.lastIntValue = 0;\n this.lastStringValue = \"\";\n this.lastAssertionIsQuantifiable = false;\n this.numCapturingParens = 0;\n this.maxBackReference = 0;\n this.groupNames = Object.create(null);\n this.backReferenceNames = [];\n this.branchID = null;\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.reset = function reset(start, pattern, flags) {\n var unicodeSets = flags.indexOf(\"v\") !== -1;\n var unicode = flags.indexOf(\"u\") !== -1;\n this.start = start | 0;\n this.source = pattern + \"\";\n this.flags = flags;\n if (unicodeSets && this.parser.options.ecmaVersion >= 15) {\n this.switchU = true;\n this.switchV = true;\n this.switchN = true;\n } else {\n this.switchU = unicode && this.parser.options.ecmaVersion >= 6;\n this.switchV = false;\n this.switchN = unicode && this.parser.options.ecmaVersion >= 9;\n }\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.raise = function raise(message) {\n this.parser.raiseRecoverable(this.start, \"Invalid regular expression: /\" + this.source + \"/: \" + message);\n};\n// If u flag is given, this returns the code point at the index (it combines a surrogate pair).\n// Otherwise, this returns the code unit of the index (can be a part of a surrogate pair).\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.at = function at(i, forceU) {\n if (forceU === void 0) forceU = false;\n var s = this.source;\n var l = s.length;\n if (i >= l) return -1;\n var c = s.charCodeAt(i);\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l) return c;\n var next = s.charCodeAt(i + 1);\n return next >= 0xDC00 && next <= 0xDFFF ? (c << 10) + next - 0x35FDC00 : c;\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.nextIndex = function nextIndex(i, forceU) {\n if (forceU === void 0) forceU = false;\n var s = this.source;\n var l = s.length;\n if (i >= l) return l;\n var c = s.charCodeAt(i), next;\n if (!(forceU || this.switchU) || c <= 0xD7FF || c >= 0xE000 || i + 1 >= l || (next = s.charCodeAt(i + 1)) < 0xDC00 || next > 0xDFFF) return i + 1;\n return i + 2;\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.current = function current(forceU) {\n if (forceU === void 0) forceU = false;\n return this.at(this.pos, forceU);\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.lookahead = function lookahead(forceU) {\n if (forceU === void 0) forceU = false;\n return this.at(this.nextIndex(this.pos, forceU), forceU);\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.advance = function advance(forceU) {\n if (forceU === void 0) forceU = false;\n this.pos = this.nextIndex(this.pos, forceU);\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.eat = function eat(ch, forceU) {\n if (forceU === void 0) forceU = false;\n if (this.current(forceU) === ch) {\n this.advance(forceU);\n return true;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$RegExpValidationState.prototype.eatChars = function eatChars(chs, forceU) {\n if (forceU === void 0) forceU = false;\n var pos = this.pos;\n for(var i = 0, list = chs; i < list.length; i += 1){\n var ch = list[i];\n var current = this.at(pos, forceU);\n if (current === -1 || current !== ch) return false;\n pos = this.nextIndex(pos, forceU);\n }\n this.pos = pos;\n return true;\n};\n/**\n * Validate the flags part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */ $f0e98b2c23d58ac9$var$pp$1.validateRegExpFlags = function(state) {\n var validFlags = state.validFlags;\n var flags = state.flags;\n var u = false;\n var v = false;\n for(var i = 0; i < flags.length; i++){\n var flag = flags.charAt(i);\n if (validFlags.indexOf(flag) === -1) this.raise(state.start, \"Invalid regular expression flag\");\n if (flags.indexOf(flag, i + 1) > -1) this.raise(state.start, \"Duplicate regular expression flag\");\n if (flag === \"u\") u = true;\n if (flag === \"v\") v = true;\n }\n if (this.options.ecmaVersion >= 15 && u && v) this.raise(state.start, \"Invalid regular expression flag\");\n};\nfunction $f0e98b2c23d58ac9$var$hasProp(obj) {\n for(var _ in obj)return true;\n return false;\n}\n/**\n * Validate the pattern part of a given RegExpLiteral.\n *\n * @param {RegExpValidationState} state The state to validate RegExp.\n * @returns {void}\n */ $f0e98b2c23d58ac9$var$pp$1.validateRegExpPattern = function(state) {\n this.regexp_pattern(state);\n // The goal symbol for the parse is |Pattern[~U, ~N]|. If the result of\n // parsing contains a |GroupName|, reparse with the goal symbol\n // |Pattern[~U, +N]| and use this result instead. Throw a *SyntaxError*\n // exception if _P_ did not conform to the grammar, if any elements of _P_\n // were not matched by the parse, or if any Early Error conditions exist.\n if (!state.switchN && this.options.ecmaVersion >= 9 && $f0e98b2c23d58ac9$var$hasProp(state.groupNames)) {\n state.switchN = true;\n this.regexp_pattern(state);\n }\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Pattern\n$f0e98b2c23d58ac9$var$pp$1.regexp_pattern = function(state) {\n state.pos = 0;\n state.lastIntValue = 0;\n state.lastStringValue = \"\";\n state.lastAssertionIsQuantifiable = false;\n state.numCapturingParens = 0;\n state.maxBackReference = 0;\n state.groupNames = Object.create(null);\n state.backReferenceNames.length = 0;\n state.branchID = null;\n this.regexp_disjunction(state);\n if (state.pos !== state.source.length) {\n // Make the same messages as V8.\n if (state.eat(0x29 /* ) */ )) state.raise(\"Unmatched ')'\");\n if (state.eat(0x5D /* ] */ ) || state.eat(0x7D /* } */ )) state.raise(\"Lone quantifier brackets\");\n }\n if (state.maxBackReference > state.numCapturingParens) state.raise(\"Invalid escape\");\n for(var i = 0, list = state.backReferenceNames; i < list.length; i += 1){\n var name = list[i];\n if (!state.groupNames[name]) state.raise(\"Invalid named capture referenced\");\n }\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Disjunction\n$f0e98b2c23d58ac9$var$pp$1.regexp_disjunction = function(state) {\n var trackDisjunction = this.options.ecmaVersion >= 16;\n if (trackDisjunction) state.branchID = new $f0e98b2c23d58ac9$var$BranchID(state.branchID, null);\n this.regexp_alternative(state);\n while(state.eat(0x7C /* | */ )){\n if (trackDisjunction) state.branchID = state.branchID.sibling();\n this.regexp_alternative(state);\n }\n if (trackDisjunction) state.branchID = state.branchID.parent;\n // Make the same message as V8.\n if (this.regexp_eatQuantifier(state, true)) state.raise(\"Nothing to repeat\");\n if (state.eat(0x7B /* { */ )) state.raise(\"Lone quantifier brackets\");\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Alternative\n$f0e98b2c23d58ac9$var$pp$1.regexp_alternative = function(state) {\n while(state.pos < state.source.length && this.regexp_eatTerm(state));\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Term\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatTerm = function(state) {\n if (this.regexp_eatAssertion(state)) {\n // Handle `QuantifiableAssertion Quantifier` alternative.\n // `state.lastAssertionIsQuantifiable` is true if the last eaten Assertion\n // is a QuantifiableAssertion.\n if (state.lastAssertionIsQuantifiable && this.regexp_eatQuantifier(state)) // Make the same message as V8.\n {\n if (state.switchU) state.raise(\"Invalid quantifier\");\n }\n return true;\n }\n if (state.switchU ? this.regexp_eatAtom(state) : this.regexp_eatExtendedAtom(state)) {\n this.regexp_eatQuantifier(state);\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-Assertion\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatAssertion = function(state) {\n var start = state.pos;\n state.lastAssertionIsQuantifiable = false;\n // ^, $\n if (state.eat(0x5E /* ^ */ ) || state.eat(0x24 /* $ */ )) return true;\n // \\b \\B\n if (state.eat(0x5C /* \\ */ )) {\n if (state.eat(0x42 /* B */ ) || state.eat(0x62 /* b */ )) return true;\n state.pos = start;\n }\n // Lookahead / Lookbehind\n if (state.eat(0x28 /* ( */ ) && state.eat(0x3F /* ? */ )) {\n var lookbehind = false;\n if (this.options.ecmaVersion >= 9) lookbehind = state.eat(0x3C /* < */ );\n if (state.eat(0x3D /* = */ ) || state.eat(0x21 /* ! */ )) {\n this.regexp_disjunction(state);\n if (!state.eat(0x29 /* ) */ )) state.raise(\"Unterminated group\");\n state.lastAssertionIsQuantifiable = !lookbehind;\n return true;\n }\n }\n state.pos = start;\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Quantifier\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatQuantifier = function(state, noError) {\n if (noError === void 0) noError = false;\n if (this.regexp_eatQuantifierPrefix(state, noError)) {\n state.eat(0x3F /* ? */ );\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-QuantifierPrefix\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatQuantifierPrefix = function(state, noError) {\n return state.eat(0x2A /* * */ ) || state.eat(0x2B /* + */ ) || state.eat(0x3F /* ? */ ) || this.regexp_eatBracedQuantifier(state, noError);\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatBracedQuantifier = function(state, noError) {\n var start = state.pos;\n if (state.eat(0x7B /* { */ )) {\n var min = 0, max = -1;\n if (this.regexp_eatDecimalDigits(state)) {\n min = state.lastIntValue;\n if (state.eat(0x2C /* , */ ) && this.regexp_eatDecimalDigits(state)) max = state.lastIntValue;\n if (state.eat(0x7D /* } */ )) {\n // SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-term\n if (max !== -1 && max < min && !noError) state.raise(\"numbers out of order in {} quantifier\");\n return true;\n }\n }\n if (state.switchU && !noError) state.raise(\"Incomplete quantifier\");\n state.pos = start;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Atom\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatAtom = function(state) {\n return this.regexp_eatPatternCharacters(state) || state.eat(0x2E /* . */ ) || this.regexp_eatReverseSolidusAtomEscape(state) || this.regexp_eatCharacterClass(state) || this.regexp_eatUncapturingGroup(state) || this.regexp_eatCapturingGroup(state);\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatReverseSolidusAtomEscape = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */ )) {\n if (this.regexp_eatAtomEscape(state)) return true;\n state.pos = start;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatUncapturingGroup = function(state) {\n var start = state.pos;\n if (state.eat(0x28 /* ( */ )) {\n if (state.eat(0x3F /* ? */ ) && state.eat(0x3A /* : */ )) {\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */ )) return true;\n state.raise(\"Unterminated group\");\n }\n state.pos = start;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatCapturingGroup = function(state) {\n if (state.eat(0x28 /* ( */ )) {\n if (this.options.ecmaVersion >= 9) this.regexp_groupSpecifier(state);\n else if (state.current() === 0x3F /* ? */ ) state.raise(\"Invalid group\");\n this.regexp_disjunction(state);\n if (state.eat(0x29 /* ) */ )) {\n state.numCapturingParens += 1;\n return true;\n }\n state.raise(\"Unterminated group\");\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedAtom\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatExtendedAtom = function(state) {\n return state.eat(0x2E /* . */ ) || this.regexp_eatReverseSolidusAtomEscape(state) || this.regexp_eatCharacterClass(state) || this.regexp_eatUncapturingGroup(state) || this.regexp_eatCapturingGroup(state) || this.regexp_eatInvalidBracedQuantifier(state) || this.regexp_eatExtendedPatternCharacter(state);\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-InvalidBracedQuantifier\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatInvalidBracedQuantifier = function(state) {\n if (this.regexp_eatBracedQuantifier(state, true)) state.raise(\"Nothing to repeat\");\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-SyntaxCharacter\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatSyntaxCharacter = function(state) {\n var ch = state.current();\n if ($f0e98b2c23d58ac9$var$isSyntaxCharacter(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true;\n }\n return false;\n};\nfunction $f0e98b2c23d58ac9$var$isSyntaxCharacter(ch) {\n return ch === 0x24 /* $ */ || ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ || ch === 0x2E /* . */ || ch === 0x3F /* ? */ || ch >= 0x5B /* [ */ && ch <= 0x5E /* ^ */ || ch >= 0x7B /* { */ && ch <= 0x7D /* } */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-PatternCharacter\n// But eat eager.\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatPatternCharacters = function(state) {\n var start = state.pos;\n var ch = 0;\n while((ch = state.current()) !== -1 && !$f0e98b2c23d58ac9$var$isSyntaxCharacter(ch))state.advance();\n return state.pos !== start;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ExtendedPatternCharacter\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatExtendedPatternCharacter = function(state) {\n var ch = state.current();\n if (ch !== -1 && ch !== 0x24 /* $ */ && !(ch >= 0x28 /* ( */ && ch <= 0x2B /* + */ ) && ch !== 0x2E /* . */ && ch !== 0x3F /* ? */ && ch !== 0x5B /* [ */ && ch !== 0x5E /* ^ */ && ch !== 0x7C /* | */ ) {\n state.advance();\n return true;\n }\n return false;\n};\n// GroupSpecifier ::\n// [empty]\n// `?` GroupName\n$f0e98b2c23d58ac9$var$pp$1.regexp_groupSpecifier = function(state) {\n if (state.eat(0x3F /* ? */ )) {\n if (!this.regexp_eatGroupName(state)) state.raise(\"Invalid group\");\n var trackDisjunction = this.options.ecmaVersion >= 16;\n var known = state.groupNames[state.lastStringValue];\n if (known) {\n if (trackDisjunction) for(var i = 0, list = known; i < list.length; i += 1){\n var altID = list[i];\n if (!altID.separatedFrom(state.branchID)) state.raise(\"Duplicate capture group name\");\n }\n else state.raise(\"Duplicate capture group name\");\n }\n if (trackDisjunction) (known || (state.groupNames[state.lastStringValue] = [])).push(state.branchID);\n else state.groupNames[state.lastStringValue] = true;\n }\n};\n// GroupName ::\n// `<` RegExpIdentifierName `>`\n// Note: this updates `state.lastStringValue` property with the eaten name.\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatGroupName = function(state) {\n state.lastStringValue = \"\";\n if (state.eat(0x3C /* < */ )) {\n if (this.regexp_eatRegExpIdentifierName(state) && state.eat(0x3E /* > */ )) return true;\n state.raise(\"Invalid capture group name\");\n }\n return false;\n};\n// RegExpIdentifierName ::\n// RegExpIdentifierStart\n// RegExpIdentifierName RegExpIdentifierPart\n// Note: this updates `state.lastStringValue` property with the eaten name.\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatRegExpIdentifierName = function(state) {\n state.lastStringValue = \"\";\n if (this.regexp_eatRegExpIdentifierStart(state)) {\n state.lastStringValue += $f0e98b2c23d58ac9$var$codePointToString(state.lastIntValue);\n while(this.regexp_eatRegExpIdentifierPart(state))state.lastStringValue += $f0e98b2c23d58ac9$var$codePointToString(state.lastIntValue);\n return true;\n }\n return false;\n};\n// RegExpIdentifierStart ::\n// UnicodeIDStart\n// `$`\n// `_`\n// `\\` RegExpUnicodeEscapeSequence[+U]\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatRegExpIdentifierStart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) ch = state.lastIntValue;\n if ($f0e98b2c23d58ac9$var$isRegExpIdentifierStart(ch)) {\n state.lastIntValue = ch;\n return true;\n }\n state.pos = start;\n return false;\n};\nfunction $f0e98b2c23d58ac9$var$isRegExpIdentifierStart(ch) {\n return $f0e98b2c23d58ac9$export$56b48cc5d7560ffb(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ ;\n}\n// RegExpIdentifierPart ::\n// UnicodeIDContinue\n// `$`\n// `_`\n// `\\` RegExpUnicodeEscapeSequence[+U]\n// \n// \n$f0e98b2c23d58ac9$var$pp$1.regexp_eatRegExpIdentifierPart = function(state) {\n var start = state.pos;\n var forceU = this.options.ecmaVersion >= 11;\n var ch = state.current(forceU);\n state.advance(forceU);\n if (ch === 0x5C /* \\ */ && this.regexp_eatRegExpUnicodeEscapeSequence(state, forceU)) ch = state.lastIntValue;\n if ($f0e98b2c23d58ac9$var$isRegExpIdentifierPart(ch)) {\n state.lastIntValue = ch;\n return true;\n }\n state.pos = start;\n return false;\n};\nfunction $f0e98b2c23d58ac9$var$isRegExpIdentifierPart(ch) {\n return $f0e98b2c23d58ac9$export$332f4d7bee38db93(ch, true) || ch === 0x24 /* $ */ || ch === 0x5F /* _ */ || ch === 0x200C /* */ || ch === 0x200D /* */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-AtomEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatAtomEscape = function(state) {\n if (this.regexp_eatBackReference(state) || this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state) || state.switchN && this.regexp_eatKGroupName(state)) return true;\n if (state.switchU) {\n // Make the same message as V8.\n if (state.current() === 0x63 /* c */ ) state.raise(\"Invalid unicode escape\");\n state.raise(\"Invalid escape\");\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatBackReference = function(state) {\n var start = state.pos;\n if (this.regexp_eatDecimalEscape(state)) {\n var n = state.lastIntValue;\n if (state.switchU) {\n // For SyntaxError in https://www.ecma-international.org/ecma-262/8.0/#sec-atomescape\n if (n > state.maxBackReference) state.maxBackReference = n;\n return true;\n }\n if (n <= state.numCapturingParens) return true;\n state.pos = start;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatKGroupName = function(state) {\n if (state.eat(0x6B /* k */ )) {\n if (this.regexp_eatGroupName(state)) {\n state.backReferenceNames.push(state.lastStringValue);\n return true;\n }\n state.raise(\"Invalid named reference\");\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-CharacterEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatCharacterEscape = function(state) {\n return this.regexp_eatControlEscape(state) || this.regexp_eatCControlLetter(state) || this.regexp_eatZero(state) || this.regexp_eatHexEscapeSequence(state) || this.regexp_eatRegExpUnicodeEscapeSequence(state, false) || !state.switchU && this.regexp_eatLegacyOctalEscapeSequence(state) || this.regexp_eatIdentityEscape(state);\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatCControlLetter = function(state) {\n var start = state.pos;\n if (state.eat(0x63 /* c */ )) {\n if (this.regexp_eatControlLetter(state)) return true;\n state.pos = start;\n }\n return false;\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatZero = function(state) {\n if (state.current() === 0x30 /* 0 */ && !$f0e98b2c23d58ac9$var$isDecimalDigit(state.lookahead())) {\n state.lastIntValue = 0;\n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatControlEscape = function(state) {\n var ch = state.current();\n if (ch === 0x74 /* t */ ) {\n state.lastIntValue = 0x09; /* \\t */ \n state.advance();\n return true;\n }\n if (ch === 0x6E /* n */ ) {\n state.lastIntValue = 0x0A; /* \\n */ \n state.advance();\n return true;\n }\n if (ch === 0x76 /* v */ ) {\n state.lastIntValue = 0x0B; /* \\v */ \n state.advance();\n return true;\n }\n if (ch === 0x66 /* f */ ) {\n state.lastIntValue = 0x0C; /* \\f */ \n state.advance();\n return true;\n }\n if (ch === 0x72 /* r */ ) {\n state.lastIntValue = 0x0D; /* \\r */ \n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ControlLetter\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatControlLetter = function(state) {\n var ch = state.current();\n if ($f0e98b2c23d58ac9$var$isControlLetter(ch)) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true;\n }\n return false;\n};\nfunction $f0e98b2c23d58ac9$var$isControlLetter(ch) {\n return ch >= 0x41 /* A */ && ch <= 0x5A /* Z */ || ch >= 0x61 /* a */ && ch <= 0x7A /* z */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-RegExpUnicodeEscapeSequence\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {\n if (forceU === void 0) forceU = false;\n var start = state.pos;\n var switchU = forceU || state.switchU;\n if (state.eat(0x75 /* u */ )) {\n if (this.regexp_eatFixedHexDigits(state, 4)) {\n var lead = state.lastIntValue;\n if (switchU && lead >= 0xD800 && lead <= 0xDBFF) {\n var leadSurrogateEnd = state.pos;\n if (state.eat(0x5C /* \\ */ ) && state.eat(0x75 /* u */ ) && this.regexp_eatFixedHexDigits(state, 4)) {\n var trail = state.lastIntValue;\n if (trail >= 0xDC00 && trail <= 0xDFFF) {\n state.lastIntValue = (lead - 0xD800) * 0x400 + (trail - 0xDC00) + 0x10000;\n return true;\n }\n }\n state.pos = leadSurrogateEnd;\n state.lastIntValue = lead;\n }\n return true;\n }\n if (switchU && state.eat(0x7B /* { */ ) && this.regexp_eatHexDigits(state) && state.eat(0x7D /* } */ ) && $f0e98b2c23d58ac9$var$isValidUnicode(state.lastIntValue)) return true;\n if (switchU) state.raise(\"Invalid unicode escape\");\n state.pos = start;\n }\n return false;\n};\nfunction $f0e98b2c23d58ac9$var$isValidUnicode(ch) {\n return ch >= 0 && ch <= 0x10FFFF;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-IdentityEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatIdentityEscape = function(state) {\n if (state.switchU) {\n if (this.regexp_eatSyntaxCharacter(state)) return true;\n if (state.eat(0x2F /* / */ )) {\n state.lastIntValue = 0x2F; /* / */ \n return true;\n }\n return false;\n }\n var ch = state.current();\n if (ch !== 0x63 /* c */ && (!state.switchN || ch !== 0x6B /* k */ )) {\n state.lastIntValue = ch;\n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatDecimalEscape = function(state) {\n state.lastIntValue = 0;\n var ch = state.current();\n if (ch >= 0x31 /* 1 */ && ch <= 0x39 /* 9 */ ) {\n do {\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */ );\n state.advance();\n }while ((ch = state.current()) >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */ );\n return true;\n }\n return false;\n};\n// Return values used by character set parsing methods, needed to\n// forbid negation of sets that can match strings.\nvar $f0e98b2c23d58ac9$var$CharSetNone = 0; // Nothing parsed\nvar $f0e98b2c23d58ac9$var$CharSetOk = 1; // Construct parsed, cannot contain strings\nvar $f0e98b2c23d58ac9$var$CharSetString = 2; // Construct parsed, can contain strings\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClassEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatCharacterClassEscape = function(state) {\n var ch = state.current();\n if ($f0e98b2c23d58ac9$var$isCharacterClassEscape(ch)) {\n state.lastIntValue = -1;\n state.advance();\n return $f0e98b2c23d58ac9$var$CharSetOk;\n }\n var negate = false;\n if (state.switchU && this.options.ecmaVersion >= 9 && ((negate = ch === 0x50 /* P */ ) || ch === 0x70 /* p */ )) {\n state.lastIntValue = -1;\n state.advance();\n var result;\n if (state.eat(0x7B /* { */ ) && (result = this.regexp_eatUnicodePropertyValueExpression(state)) && state.eat(0x7D /* } */ )) {\n if (negate && result === $f0e98b2c23d58ac9$var$CharSetString) state.raise(\"Invalid property name\");\n return result;\n }\n state.raise(\"Invalid property name\");\n }\n return $f0e98b2c23d58ac9$var$CharSetNone;\n};\nfunction $f0e98b2c23d58ac9$var$isCharacterClassEscape(ch) {\n return ch === 0x64 /* d */ || ch === 0x44 /* D */ || ch === 0x73 /* s */ || ch === 0x53 /* S */ || ch === 0x77 /* w */ || ch === 0x57 /* W */ ;\n}\n// UnicodePropertyValueExpression ::\n// UnicodePropertyName `=` UnicodePropertyValue\n// LoneUnicodePropertyNameOrValue\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {\n var start = state.pos;\n // UnicodePropertyName `=` UnicodePropertyValue\n if (this.regexp_eatUnicodePropertyName(state) && state.eat(0x3D /* = */ )) {\n var name = state.lastStringValue;\n if (this.regexp_eatUnicodePropertyValue(state)) {\n var value = state.lastStringValue;\n this.regexp_validateUnicodePropertyNameAndValue(state, name, value);\n return $f0e98b2c23d58ac9$var$CharSetOk;\n }\n }\n state.pos = start;\n // LoneUnicodePropertyNameOrValue\n if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {\n var nameOrValue = state.lastStringValue;\n return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);\n }\n return $f0e98b2c23d58ac9$var$CharSetNone;\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name, value) {\n if (!$f0e98b2c23d58ac9$var$hasOwn(state.unicodeProperties.nonBinary, name)) state.raise(\"Invalid property name\");\n if (!state.unicodeProperties.nonBinary[name].test(value)) state.raise(\"Invalid property value\");\n};\n$f0e98b2c23d58ac9$var$pp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {\n if (state.unicodeProperties.binary.test(nameOrValue)) return $f0e98b2c23d58ac9$var$CharSetOk;\n if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) return $f0e98b2c23d58ac9$var$CharSetString;\n state.raise(\"Invalid property name\");\n};\n// UnicodePropertyName ::\n// UnicodePropertyNameCharacters\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatUnicodePropertyName = function(state) {\n var ch = 0;\n state.lastStringValue = \"\";\n while($f0e98b2c23d58ac9$var$isUnicodePropertyNameCharacter(ch = state.current())){\n state.lastStringValue += $f0e98b2c23d58ac9$var$codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== \"\";\n};\nfunction $f0e98b2c23d58ac9$var$isUnicodePropertyNameCharacter(ch) {\n return $f0e98b2c23d58ac9$var$isControlLetter(ch) || ch === 0x5F /* _ */ ;\n}\n// UnicodePropertyValue ::\n// UnicodePropertyValueCharacters\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatUnicodePropertyValue = function(state) {\n var ch = 0;\n state.lastStringValue = \"\";\n while($f0e98b2c23d58ac9$var$isUnicodePropertyValueCharacter(ch = state.current())){\n state.lastStringValue += $f0e98b2c23d58ac9$var$codePointToString(ch);\n state.advance();\n }\n return state.lastStringValue !== \"\";\n};\nfunction $f0e98b2c23d58ac9$var$isUnicodePropertyValueCharacter(ch) {\n return $f0e98b2c23d58ac9$var$isUnicodePropertyNameCharacter(ch) || $f0e98b2c23d58ac9$var$isDecimalDigit(ch);\n}\n// LoneUnicodePropertyNameOrValue ::\n// UnicodePropertyValueCharacters\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {\n return this.regexp_eatUnicodePropertyValue(state);\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-CharacterClass\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatCharacterClass = function(state) {\n if (state.eat(0x5B /* [ */ )) {\n var negate = state.eat(0x5E /* ^ */ );\n var result = this.regexp_classContents(state);\n if (!state.eat(0x5D /* ] */ )) state.raise(\"Unterminated character class\");\n if (negate && result === $f0e98b2c23d58ac9$var$CharSetString) state.raise(\"Negated character class may contain strings\");\n return true;\n }\n return false;\n};\n// https://tc39.es/ecma262/#prod-ClassContents\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassRanges\n$f0e98b2c23d58ac9$var$pp$1.regexp_classContents = function(state) {\n if (state.current() === 0x5D /* ] */ ) return $f0e98b2c23d58ac9$var$CharSetOk;\n if (state.switchV) return this.regexp_classSetExpression(state);\n this.regexp_nonEmptyClassRanges(state);\n return $f0e98b2c23d58ac9$var$CharSetOk;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRanges\n// https://www.ecma-international.org/ecma-262/8.0/#prod-NonemptyClassRangesNoDash\n$f0e98b2c23d58ac9$var$pp$1.regexp_nonEmptyClassRanges = function(state) {\n while(this.regexp_eatClassAtom(state)){\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */ ) && this.regexp_eatClassAtom(state)) {\n var right = state.lastIntValue;\n if (state.switchU && (left === -1 || right === -1)) state.raise(\"Invalid character class\");\n if (left !== -1 && right !== -1 && left > right) state.raise(\"Range out of order in character class\");\n }\n }\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtom\n// https://www.ecma-international.org/ecma-262/8.0/#prod-ClassAtomNoDash\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassAtom = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */ )) {\n if (this.regexp_eatClassEscape(state)) return true;\n if (state.switchU) {\n // Make the same message as V8.\n var ch$1 = state.current();\n if (ch$1 === 0x63 /* c */ || $f0e98b2c23d58ac9$var$isOctalDigit(ch$1)) state.raise(\"Invalid class escape\");\n state.raise(\"Invalid escape\");\n }\n state.pos = start;\n }\n var ch = state.current();\n if (ch !== 0x5D /* ] */ ) {\n state.lastIntValue = ch;\n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassEscape\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassEscape = function(state) {\n var start = state.pos;\n if (state.eat(0x62 /* b */ )) {\n state.lastIntValue = 0x08; /* */ \n return true;\n }\n if (state.switchU && state.eat(0x2D /* - */ )) {\n state.lastIntValue = 0x2D; /* - */ \n return true;\n }\n if (!state.switchU && state.eat(0x63 /* c */ )) {\n if (this.regexp_eatClassControlLetter(state)) return true;\n state.pos = start;\n }\n return this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state);\n};\n// https://tc39.es/ecma262/#prod-ClassSetExpression\n// https://tc39.es/ecma262/#prod-ClassUnion\n// https://tc39.es/ecma262/#prod-ClassIntersection\n// https://tc39.es/ecma262/#prod-ClassSubtraction\n$f0e98b2c23d58ac9$var$pp$1.regexp_classSetExpression = function(state) {\n var result = $f0e98b2c23d58ac9$var$CharSetOk, subResult;\n if (this.regexp_eatClassSetRange(state)) ;\n else if (subResult = this.regexp_eatClassSetOperand(state)) {\n if (subResult === $f0e98b2c23d58ac9$var$CharSetString) result = $f0e98b2c23d58ac9$var$CharSetString;\n // https://tc39.es/ecma262/#prod-ClassIntersection\n var start = state.pos;\n while(state.eatChars([\n 0x26,\n 0x26\n ])){\n if (state.current() !== 0x26 /* & */ && (subResult = this.regexp_eatClassSetOperand(state))) {\n if (subResult !== $f0e98b2c23d58ac9$var$CharSetString) result = $f0e98b2c23d58ac9$var$CharSetOk;\n continue;\n }\n state.raise(\"Invalid character in character class\");\n }\n if (start !== state.pos) return result;\n // https://tc39.es/ecma262/#prod-ClassSubtraction\n while(state.eatChars([\n 0x2D,\n 0x2D\n ])){\n if (this.regexp_eatClassSetOperand(state)) continue;\n state.raise(\"Invalid character in character class\");\n }\n if (start !== state.pos) return result;\n } else state.raise(\"Invalid character in character class\");\n // https://tc39.es/ecma262/#prod-ClassUnion\n for(;;){\n if (this.regexp_eatClassSetRange(state)) continue;\n subResult = this.regexp_eatClassSetOperand(state);\n if (!subResult) return result;\n if (subResult === $f0e98b2c23d58ac9$var$CharSetString) result = $f0e98b2c23d58ac9$var$CharSetString;\n }\n};\n// https://tc39.es/ecma262/#prod-ClassSetRange\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassSetRange = function(state) {\n var start = state.pos;\n if (this.regexp_eatClassSetCharacter(state)) {\n var left = state.lastIntValue;\n if (state.eat(0x2D /* - */ ) && this.regexp_eatClassSetCharacter(state)) {\n var right = state.lastIntValue;\n if (left !== -1 && right !== -1 && left > right) state.raise(\"Range out of order in character class\");\n return true;\n }\n state.pos = start;\n }\n return false;\n};\n// https://tc39.es/ecma262/#prod-ClassSetOperand\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassSetOperand = function(state) {\n if (this.regexp_eatClassSetCharacter(state)) return $f0e98b2c23d58ac9$var$CharSetOk;\n return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state);\n};\n// https://tc39.es/ecma262/#prod-NestedClass\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatNestedClass = function(state) {\n var start = state.pos;\n if (state.eat(0x5B /* [ */ )) {\n var negate = state.eat(0x5E /* ^ */ );\n var result = this.regexp_classContents(state);\n if (state.eat(0x5D /* ] */ )) {\n if (negate && result === $f0e98b2c23d58ac9$var$CharSetString) state.raise(\"Negated character class may contain strings\");\n return result;\n }\n state.pos = start;\n }\n if (state.eat(0x5C /* \\ */ )) {\n var result$1 = this.regexp_eatCharacterClassEscape(state);\n if (result$1) return result$1;\n state.pos = start;\n }\n return null;\n};\n// https://tc39.es/ecma262/#prod-ClassStringDisjunction\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassStringDisjunction = function(state) {\n var start = state.pos;\n if (state.eatChars([\n 0x5C,\n 0x71\n ])) {\n if (state.eat(0x7B /* { */ )) {\n var result = this.regexp_classStringDisjunctionContents(state);\n if (state.eat(0x7D /* } */ )) return result;\n } else // Make the same message as V8.\n state.raise(\"Invalid escape\");\n state.pos = start;\n }\n return null;\n};\n// https://tc39.es/ecma262/#prod-ClassStringDisjunctionContents\n$f0e98b2c23d58ac9$var$pp$1.regexp_classStringDisjunctionContents = function(state) {\n var result = this.regexp_classString(state);\n while(state.eat(0x7C /* | */ ))if (this.regexp_classString(state) === $f0e98b2c23d58ac9$var$CharSetString) result = $f0e98b2c23d58ac9$var$CharSetString;\n return result;\n};\n// https://tc39.es/ecma262/#prod-ClassString\n// https://tc39.es/ecma262/#prod-NonEmptyClassString\n$f0e98b2c23d58ac9$var$pp$1.regexp_classString = function(state) {\n var count = 0;\n while(this.regexp_eatClassSetCharacter(state))count++;\n return count === 1 ? $f0e98b2c23d58ac9$var$CharSetOk : $f0e98b2c23d58ac9$var$CharSetString;\n};\n// https://tc39.es/ecma262/#prod-ClassSetCharacter\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassSetCharacter = function(state) {\n var start = state.pos;\n if (state.eat(0x5C /* \\ */ )) {\n if (this.regexp_eatCharacterEscape(state) || this.regexp_eatClassSetReservedPunctuator(state)) return true;\n if (state.eat(0x62 /* b */ )) {\n state.lastIntValue = 0x08; /* */ \n return true;\n }\n state.pos = start;\n return false;\n }\n var ch = state.current();\n if (ch < 0 || ch === state.lookahead() && $f0e98b2c23d58ac9$var$isClassSetReservedDoublePunctuatorCharacter(ch)) return false;\n if ($f0e98b2c23d58ac9$var$isClassSetSyntaxCharacter(ch)) return false;\n state.advance();\n state.lastIntValue = ch;\n return true;\n};\n// https://tc39.es/ecma262/#prod-ClassSetReservedDoublePunctuator\nfunction $f0e98b2c23d58ac9$var$isClassSetReservedDoublePunctuatorCharacter(ch) {\n return ch === 0x21 /* ! */ || ch >= 0x23 /* # */ && ch <= 0x26 /* & */ || ch >= 0x2A /* * */ && ch <= 0x2C /* , */ || ch === 0x2E /* . */ || ch >= 0x3A /* : */ && ch <= 0x40 /* @ */ || ch === 0x5E /* ^ */ || ch === 0x60 /* ` */ || ch === 0x7E /* ~ */ ;\n}\n// https://tc39.es/ecma262/#prod-ClassSetSyntaxCharacter\nfunction $f0e98b2c23d58ac9$var$isClassSetSyntaxCharacter(ch) {\n return ch === 0x28 /* ( */ || ch === 0x29 /* ) */ || ch === 0x2D /* - */ || ch === 0x2F /* / */ || ch >= 0x5B /* [ */ && ch <= 0x5D /* ] */ || ch >= 0x7B /* { */ && ch <= 0x7D /* } */ ;\n}\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassSetReservedPunctuator = function(state) {\n var ch = state.current();\n if ($f0e98b2c23d58ac9$var$isClassSetReservedPunctuator(ch)) {\n state.lastIntValue = ch;\n state.advance();\n return true;\n }\n return false;\n};\n// https://tc39.es/ecma262/#prod-ClassSetReservedPunctuator\nfunction $f0e98b2c23d58ac9$var$isClassSetReservedPunctuator(ch) {\n return ch === 0x21 /* ! */ || ch === 0x23 /* # */ || ch === 0x25 /* % */ || ch === 0x26 /* & */ || ch === 0x2C /* , */ || ch === 0x2D /* - */ || ch >= 0x3A /* : */ && ch <= 0x3E /* > */ || ch === 0x40 /* @ */ || ch === 0x60 /* ` */ || ch === 0x7E /* ~ */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-ClassControlLetter\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatClassControlLetter = function(state) {\n var ch = state.current();\n if ($f0e98b2c23d58ac9$var$isDecimalDigit(ch) || ch === 0x5F /* _ */ ) {\n state.lastIntValue = ch % 0x20;\n state.advance();\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatHexEscapeSequence = function(state) {\n var start = state.pos;\n if (state.eat(0x78 /* x */ )) {\n if (this.regexp_eatFixedHexDigits(state, 2)) return true;\n if (state.switchU) state.raise(\"Invalid escape\");\n state.pos = start;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-DecimalDigits\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatDecimalDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while($f0e98b2c23d58ac9$var$isDecimalDigit(ch = state.current())){\n state.lastIntValue = 10 * state.lastIntValue + (ch - 0x30 /* 0 */ );\n state.advance();\n }\n return state.pos !== start;\n};\nfunction $f0e98b2c23d58ac9$var$isDecimalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigits\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatHexDigits = function(state) {\n var start = state.pos;\n var ch = 0;\n state.lastIntValue = 0;\n while($f0e98b2c23d58ac9$var$isHexDigit(ch = state.current())){\n state.lastIntValue = 16 * state.lastIntValue + $f0e98b2c23d58ac9$var$hexToInt(ch);\n state.advance();\n }\n return state.pos !== start;\n};\nfunction $f0e98b2c23d58ac9$var$isHexDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x39 /* 9 */ || ch >= 0x41 /* A */ && ch <= 0x46 /* F */ || ch >= 0x61 /* a */ && ch <= 0x66 /* f */ ;\n}\nfunction $f0e98b2c23d58ac9$var$hexToInt(ch) {\n if (ch >= 0x41 /* A */ && ch <= 0x46 /* F */ ) return 10 + (ch - 0x41 /* A */ );\n if (ch >= 0x61 /* a */ && ch <= 0x66 /* f */ ) return 10 + (ch - 0x61 /* a */ );\n return ch - 0x30 /* 0 */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-annexB-LegacyOctalEscapeSequence\n// Allows only 0-377(octal) i.e. 0-255(decimal).\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {\n if (this.regexp_eatOctalDigit(state)) {\n var n1 = state.lastIntValue;\n if (this.regexp_eatOctalDigit(state)) {\n var n2 = state.lastIntValue;\n if (n1 <= 3 && this.regexp_eatOctalDigit(state)) state.lastIntValue = n1 * 64 + n2 * 8 + state.lastIntValue;\n else state.lastIntValue = n1 * 8 + n2;\n } else state.lastIntValue = n1;\n return true;\n }\n return false;\n};\n// https://www.ecma-international.org/ecma-262/8.0/#prod-OctalDigit\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatOctalDigit = function(state) {\n var ch = state.current();\n if ($f0e98b2c23d58ac9$var$isOctalDigit(ch)) {\n state.lastIntValue = ch - 0x30; /* 0 */ \n state.advance();\n return true;\n }\n state.lastIntValue = 0;\n return false;\n};\nfunction $f0e98b2c23d58ac9$var$isOctalDigit(ch) {\n return ch >= 0x30 /* 0 */ && ch <= 0x37 /* 7 */ ;\n}\n// https://www.ecma-international.org/ecma-262/8.0/#prod-Hex4Digits\n// https://www.ecma-international.org/ecma-262/8.0/#prod-HexDigit\n// And HexDigit HexDigit in https://www.ecma-international.org/ecma-262/8.0/#prod-HexEscapeSequence\n$f0e98b2c23d58ac9$var$pp$1.regexp_eatFixedHexDigits = function(state, length) {\n var start = state.pos;\n state.lastIntValue = 0;\n for(var i = 0; i < length; ++i){\n var ch = state.current();\n if (!$f0e98b2c23d58ac9$var$isHexDigit(ch)) {\n state.pos = start;\n return false;\n }\n state.lastIntValue = 16 * state.lastIntValue + $f0e98b2c23d58ac9$var$hexToInt(ch);\n state.advance();\n }\n return true;\n};\n// Object type used to represent tokens. Note that normally, tokens\n// simply exist as properties on the parser object. This is only\n// used for the onToken callback and the external tokenizer.\nvar $f0e98b2c23d58ac9$export$50792b0e93539fde = function Token(p) {\n this.type = p.type;\n this.value = p.value;\n this.start = p.start;\n this.end = p.end;\n if (p.options.locations) this.loc = new $f0e98b2c23d58ac9$export$7387db7caf96fcdb(p, p.startLoc, p.endLoc);\n if (p.options.ranges) this.range = [\n p.start,\n p.end\n ];\n};\n// ## Tokenizer\nvar $f0e98b2c23d58ac9$var$pp = $f0e98b2c23d58ac9$export$7acfa6ed01010e37.prototype;\n// Move to the next token\n$f0e98b2c23d58ac9$var$pp.next = function(ignoreEscapeSequenceInKeyword) {\n if (!ignoreEscapeSequenceInKeyword && this.type.keyword && this.containsEsc) this.raiseRecoverable(this.start, \"Escape sequence in keyword \" + this.type.keyword);\n if (this.options.onToken) this.options.onToken(new $f0e98b2c23d58ac9$export$50792b0e93539fde(this));\n this.lastTokEnd = this.end;\n this.lastTokStart = this.start;\n this.lastTokEndLoc = this.endLoc;\n this.lastTokStartLoc = this.startLoc;\n this.nextToken();\n};\n$f0e98b2c23d58ac9$var$pp.getToken = function() {\n this.next();\n return new $f0e98b2c23d58ac9$export$50792b0e93539fde(this);\n};\n// If we're in an ES6 environment, make parsers iterable\nif (typeof Symbol !== \"undefined\") $f0e98b2c23d58ac9$var$pp[Symbol.iterator] = function() {\n var this$1$1 = this;\n return {\n next: function() {\n var token = this$1$1.getToken();\n return {\n done: token.type === $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof,\n value: token\n };\n }\n };\n};\n// Toggle strict mode. Re-reads the next number or string to please\n// pedantic tests (`\"use strict\"; 010;` should fail).\n// Read a single token, updating the parser object's token-related\n// properties.\n$f0e98b2c23d58ac9$var$pp.nextToken = function() {\n var curContext = this.curContext();\n if (!curContext || !curContext.preserveSpace) this.skipSpace();\n this.start = this.pos;\n if (this.options.locations) this.startLoc = this.curPosition();\n if (this.pos >= this.input.length) return this.finishToken($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.eof);\n if (curContext.override) return curContext.override(this);\n else this.readToken(this.fullCharCodeAtPos());\n};\n$f0e98b2c23d58ac9$var$pp.readToken = function(code) {\n // Identifier or keyword. '\\uXXXX' sequences are allowed in\n // identifiers, so '\\' also dispatches to that.\n if ($f0e98b2c23d58ac9$export$56b48cc5d7560ffb(code, this.options.ecmaVersion >= 6) || code === 92 /* '\\' */ ) return this.readWord();\n return this.getTokenFromCode(code);\n};\n$f0e98b2c23d58ac9$var$pp.fullCharCodeAtPos = function() {\n var code = this.input.charCodeAt(this.pos);\n if (code <= 0xd7ff || code >= 0xdc00) return code;\n var next = this.input.charCodeAt(this.pos + 1);\n return next <= 0xdbff || next >= 0xe000 ? code : (code << 10) + next - 0x35fdc00;\n};\n$f0e98b2c23d58ac9$var$pp.skipBlockComment = function() {\n var startLoc = this.options.onComment && this.curPosition();\n var start = this.pos, end = this.input.indexOf(\"*/\", this.pos += 2);\n if (end === -1) this.raise(this.pos - 2, \"Unterminated comment\");\n this.pos = end + 2;\n if (this.options.locations) for(var nextBreak = void 0, pos = start; (nextBreak = $f0e98b2c23d58ac9$var$nextLineBreak(this.input, pos, this.pos)) > -1;){\n ++this.curLine;\n pos = this.lineStart = nextBreak;\n }\n if (this.options.onComment) this.options.onComment(true, this.input.slice(start + 2, end), start, this.pos, startLoc, this.curPosition());\n};\n$f0e98b2c23d58ac9$var$pp.skipLineComment = function(startSkip) {\n var start = this.pos;\n var startLoc = this.options.onComment && this.curPosition();\n var ch = this.input.charCodeAt(this.pos += startSkip);\n while(this.pos < this.input.length && !$f0e98b2c23d58ac9$export$2c19a3e3b4008fff(ch))ch = this.input.charCodeAt(++this.pos);\n if (this.options.onComment) this.options.onComment(false, this.input.slice(start + startSkip, this.pos), start, this.pos, startLoc, this.curPosition());\n};\n// Called at the start of the parse and after every token. Skips\n// whitespace and comments, and.\n$f0e98b2c23d58ac9$var$pp.skipSpace = function() {\n loop: while(this.pos < this.input.length){\n var ch = this.input.charCodeAt(this.pos);\n switch(ch){\n case 32:\n case 160:\n ++this.pos;\n break;\n case 13:\n if (this.input.charCodeAt(this.pos + 1) === 10) ++this.pos;\n case 10:\n case 8232:\n case 8233:\n ++this.pos;\n if (this.options.locations) {\n ++this.curLine;\n this.lineStart = this.pos;\n }\n break;\n case 47:\n switch(this.input.charCodeAt(this.pos + 1)){\n case 42:\n this.skipBlockComment();\n break;\n case 47:\n this.skipLineComment(2);\n break;\n default:\n break loop;\n }\n break;\n default:\n if (ch > 8 && ch < 14 || ch >= 5760 && $f0e98b2c23d58ac9$export$268622f0f1cbc82b.test(String.fromCharCode(ch))) ++this.pos;\n else break loop;\n }\n }\n};\n// Called at the end of every token. Sets `end`, `val`, and\n// maintains `context` and `exprAllowed`, and skips the space after\n// the token, so that the next one's `start` will point at the\n// right position.\n$f0e98b2c23d58ac9$var$pp.finishToken = function(type, val) {\n this.end = this.pos;\n if (this.options.locations) this.endLoc = this.curPosition();\n var prevType = this.type;\n this.type = type;\n this.value = val;\n this.updateContext(prevType);\n};\n// ### Token reading\n// This is the function that is called to fetch the next token. It\n// is somewhat obscure, because it works in character codes rather\n// than characters, and because operator parsing has been inlined\n// into it.\n//\n// All in the name of speed.\n//\n$f0e98b2c23d58ac9$var$pp.readToken_dot = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next >= 48 && next <= 57) return this.readNumber(true);\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (this.options.ecmaVersion >= 6 && next === 46 && next2 === 46) {\n this.pos += 3;\n return this.finishToken($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.ellipsis);\n } else {\n ++this.pos;\n return this.finishToken($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.dot);\n }\n};\n$f0e98b2c23d58ac9$var$pp.readToken_slash = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (this.exprAllowed) {\n ++this.pos;\n return this.readRegexp();\n }\n if (next === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.slash, 1);\n};\n$f0e98b2c23d58ac9$var$pp.readToken_mult_modulo_exp = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n var tokentype = code === 42 ? $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.star : $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.modulo;\n // exponentiation operator ** and **=\n if (this.options.ecmaVersion >= 7 && code === 42 && next === 42) {\n ++size;\n tokentype = $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.starstar;\n next = this.input.charCodeAt(this.pos + 2);\n }\n if (next === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, size + 1);\n return this.finishOp(tokentype, size);\n};\n$f0e98b2c23d58ac9$var$pp.readToken_pipe_amp = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (this.options.ecmaVersion >= 12) {\n var next2 = this.input.charCodeAt(this.pos + 2);\n if (next2 === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, 3);\n }\n return this.finishOp(code === 124 ? $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalOR : $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.logicalAND, 2);\n }\n if (next === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp(code === 124 ? $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bitwiseOR : $f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bitwiseAND, 1);\n};\n$f0e98b2c23d58ac9$var$pp.readToken_caret = function() {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bitwiseXOR, 1);\n};\n$f0e98b2c23d58ac9$var$pp.readToken_plus_min = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n if (next === code) {\n if (next === 45 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 62 && (this.lastTokEnd === 0 || $f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6.test(this.input.slice(this.lastTokEnd, this.pos)))) {\n // A `-->` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken();\n }\n return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.incDec, 2);\n }\n if (next === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, 2);\n return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.plusMin, 1);\n};\n$f0e98b2c23d58ac9$var$pp.readToken_lt_gt = function(code) {\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.assign, size + 1);\n return this.finishOp($f0e98b2c23d58ac9$export$b54c7ea7aabba5c8.bitShift, size);\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 && this.input.charCodeAt(this.pos + 3) === 45) {\n // `` line comment\n this.skipLineComment(3);\n this.skipSpace();\n return this.nextToken()\n }\n return this.finishOp(types$1.incDec, 2)\n }\n if (next === 61) { return this.finishOp(types$1.assign, 2) }\n return this.finishOp(types$1.plusMin, 1)\n};\n\npp.readToken_lt_gt = function(code) { // '<>'\n var next = this.input.charCodeAt(this.pos + 1);\n var size = 1;\n if (next === code) {\n size = code === 62 && this.input.charCodeAt(this.pos + 2) === 62 ? 3 : 2;\n if (this.input.charCodeAt(this.pos + size) === 61) { return this.finishOp(types$1.assign, size + 1) }\n return this.finishOp(types$1.bitShift, size)\n }\n if (next === 33 && code === 60 && !this.inModule && this.input.charCodeAt(this.pos + 2) === 45 &&\n this.input.charCodeAt(this.pos + 3) === 45) {\n // ` convert colors\nimport './src/io/cmyk/index.js';\nimport './src/io/css/index.js';\nimport './src/io/gl/index.js';\nimport './src/io/hcg/index.js';\nimport './src/io/hex/index.js';\nimport './src/io/hsi/index.js';\nimport './src/io/hsl/index.js';\nimport './src/io/hsv/index.js';\nimport './src/io/lab/index.js';\nimport './src/io/lch/index.js';\nimport './src/io/named/index.js';\nimport './src/io/num/index.js';\nimport './src/io/rgb/index.js';\nimport './src/io/temp/index.js';\nimport './src/io/oklab/index.js';\nimport './src/io/oklch/index.js';\n\n// operators --> modify existing Colors\nimport './src/ops/alpha.js';\nimport './src/ops/clipped.js';\nimport './src/ops/darken.js';\nimport './src/ops/get.js';\nimport './src/ops/luminance.js';\nimport './src/ops/mix.js';\nimport './src/ops/premultiply.js';\nimport './src/ops/saturate.js';\nimport './src/ops/set.js';\nimport './src/ops/shade.js';\n\n// interpolators\nimport './src/interpolator/rgb.js';\nimport './src/interpolator/lrgb.js';\nimport './src/interpolator/lab.js';\nimport './src/interpolator/lch.js';\nimport './src/interpolator/num.js';\nimport './src/interpolator/hcg.js';\nimport './src/interpolator/hsi.js';\nimport './src/interpolator/hsl.js';\nimport './src/interpolator/hsv.js';\nimport './src/interpolator/oklab.js';\nimport './src/interpolator/oklch.js';\n\n// generators -- > create new colors\nimport average from './src/generator/average.js';\nimport bezier from './src/generator/bezier.js';\nimport blend from './src/generator/blend.js';\nimport cubehelix from './src/generator/cubehelix.js';\nimport mix from './src/generator/mix.js';\nimport random from './src/generator/random.js';\nimport scale from './src/generator/scale.js';\n\n// other utility methods\nimport { analyze } from './src/utils/analyze.js';\nimport contrast from './src/utils/contrast.js';\nimport deltaE from './src/utils/delta-e.js';\nimport distance from './src/utils/distance.js';\nimport { limits } from './src/utils/analyze.js';\nimport valid from './src/utils/valid.js';\nimport input from './src/io/input.js';\n\n// scale\nimport scales from './src/utils/scales.js';\n\n// colors\nimport colors from './src/colors/w3cx11.js';\nimport brewer from './src/colors/colorbrewer.js';\n\nObject.assign(chroma, {\n average,\n bezier,\n blend,\n cubehelix,\n mix,\n interpolate: mix,\n random,\n scale,\n analyze,\n contrast,\n deltaE,\n distance,\n limits,\n valid,\n scales,\n input,\n colors,\n brewer\n});\n\nexport default chroma;\n","import Color from './Color.js';\nimport { version } from './version.js';\n\nconst chroma = (...args) => {\n return new chroma.Color(...args);\n};\n\nchroma.Color = Color;\nchroma.version = version;\n\nexport default chroma;\n","import { last, clip_rgb, type } from './utils/index.js';\nimport _input from './io/input.js';\n\nclass Color {\n constructor(...args) {\n const me = this;\n if (\n type(args[0]) === 'object' &&\n args[0].constructor &&\n args[0].constructor === this.constructor\n ) {\n // the argument is already a Color instance\n return args[0];\n }\n // last argument could be the mode\n let mode = last(args);\n let autodetect = false;\n if (!mode) {\n autodetect = true;\n if (!_input.sorted) {\n _input.autodetect = _input.autodetect.sort((a, b) => b.p - a.p);\n _input.sorted = true;\n }\n // auto-detect format\n for (let chk of _input.autodetect) {\n mode = chk.test(...args);\n if (mode) break;\n }\n }\n if (_input.format[mode]) {\n const rgb = _input.format[mode].apply(\n null,\n autodetect ? args : args.slice(0, -1)\n );\n me._rgb = clip_rgb(rgb);\n } else {\n throw new Error('unknown format: ' + args);\n }\n // add alpha channel\n if (me._rgb.length === 3) me._rgb.push(1);\n }\n toString() {\n if (type(this.hex) == 'function') return this.hex();\n return `[${this._rgb.join(',')}]`;\n }\n}\nexport default Color;\n","const { PI, min, max } = Math;\n\nexport { default as clip_rgb } from './clip_rgb.js';\nexport { default as limit } from './limit.js';\nexport { default as type } from './type.js';\nexport { default as unpack } from './unpack.js';\nexport { default as last } from './last.js';\n\nconst TWOPI = PI * 2;\nconst PITHIRD = PI / 3;\nconst DEG2RAD = PI / 180;\nconst RAD2DEG = 180 / PI;\n\nexport { PI, TWOPI, PITHIRD, DEG2RAD, RAD2DEG, min, max };\n","import limit from './limit.js';\n\nexport default (rgb) => {\n rgb._clipped = false;\n rgb._unclipped = rgb.slice(0);\n for (let i = 0; i <= 3; i++) {\n if (i < 3) {\n if (rgb[i] < 0 || rgb[i] > 255) rgb._clipped = true;\n rgb[i] = limit(rgb[i], 0, 255);\n } else if (i === 3) {\n rgb[i] = limit(rgb[i], 0, 1);\n }\n }\n return rgb;\n};\n","import { min, max } from './index.js';\n\nexport default (x, low = 0, high = 1) => {\n return min(max(low, x), high);\n};\n","// ported from jQuery's $.type\nconst classToType = {};\nfor (let name of [\n 'Boolean',\n 'Number',\n 'String',\n 'Function',\n 'Array',\n 'Date',\n 'RegExp',\n 'Undefined',\n 'Null'\n]) {\n classToType[`[object ${name}]`] = name.toLowerCase();\n}\nexport default function (obj) {\n return classToType[Object.prototype.toString.call(obj)] || 'object';\n}\n","import type from './type.js';\n\nexport default (args, keyOrder = null) => {\n // if called with more than 3 arguments, we return the arguments\n if (args.length >= 3) return Array.prototype.slice.call(args);\n // with less than 3 args we check if first arg is object\n // and use the keyOrder string to extract and sort properties\n if (type(args[0]) == 'object' && keyOrder) {\n return keyOrder\n .split('')\n .filter((k) => args[0][k] !== undefined)\n .map((k) => args[0][k]);\n }\n // otherwise we just return the first argument\n // (which we suppose is an array of args)\n return args[0];\n};\n","import type from './type.js';\n\nexport default (args) => {\n if (args.length < 2) return null;\n const l = args.length - 1;\n if (type(args[l]) == 'string') return args[l].toLowerCase();\n return null;\n};\n","export default {\n format: {},\n autodetect: []\n};\n","// this gets updated automatically\nexport const version = '2.6.0';\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { unpack, type } from '../../utils/index.js';\nimport cmyk2rgb from './cmyk2rgb.js';\nimport rgb2cmyk from './rgb2cmyk.js';\n\nColor.prototype.cmyk = function () {\n return rgb2cmyk(this._rgb);\n};\n\nchroma.cmyk = (...args) => new Color(...args, 'cmyk');\n\ninput.format.cmyk = cmyk2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'cmyk');\n if (type(args) === 'array' && args.length === 4) {\n return 'cmyk';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\n\nconst cmyk2rgb = (...args) => {\n args = unpack(args, 'cmyk');\n const [c, m, y, k] = args;\n const alpha = args.length > 4 ? args[4] : 1;\n if (k === 1) return [0, 0, 0, alpha];\n return [\n c >= 1 ? 0 : 255 * (1 - c) * (1 - k), // r\n m >= 1 ? 0 : 255 * (1 - m) * (1 - k), // g\n y >= 1 ? 0 : 255 * (1 - y) * (1 - k), // b\n alpha\n ];\n};\n\nexport default cmyk2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { max } = Math;\n\nconst rgb2cmyk = (...args) => {\n let [r, g, b] = unpack(args, 'rgb');\n r = r / 255;\n g = g / 255;\n b = b / 255;\n const k = 1 - max(r, max(g, b));\n const f = k < 1 ? 1 / (1 - k) : 0;\n const c = (1 - r - k) * f;\n const m = (1 - g - k) * f;\n const y = (1 - b - k) * f;\n return [c, m, y, k];\n};\n\nexport default rgb2cmyk;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\n\nimport rgb2css from './rgb2css.js';\nimport css2rgb from './css2rgb.js';\n\nColor.prototype.css = function (mode) {\n return rgb2css(this._rgb, mode);\n};\n\nchroma.css = (...args) => new Color(...args, 'css');\n\ninput.format.css = css2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (h, ...rest) => {\n if (!rest.length && type(h) === 'string' && css2rgb.test(h)) {\n return 'css';\n }\n }\n});\n","import { unpack, last } from '../../utils/index.js';\nimport hsl2css from './hsl2css.js';\nimport rgb2hsl from '../hsl/rgb2hsl.js';\nconst { round } = Math;\n\n/*\n * supported arguments:\n * - rgb2css(r,g,b)\n * - rgb2css(r,g,b,a)\n * - rgb2css([r,g,b], mode)\n * - rgb2css([r,g,b,a], mode)\n * - rgb2css({r,g,b,a}, mode)\n */\nconst rgb2css = (...args) => {\n const rgba = unpack(args, 'rgba');\n let mode = last(args) || 'rgb';\n if (mode.substr(0, 3) == 'hsl') {\n return hsl2css(rgb2hsl(rgba), mode);\n }\n rgba[0] = round(rgba[0]);\n rgba[1] = round(rgba[1]);\n rgba[2] = round(rgba[2]);\n if (mode === 'rgba' || (rgba.length > 3 && rgba[3] < 1)) {\n rgba[3] = rgba.length > 3 ? rgba[3] : 1;\n mode = 'rgba';\n }\n return `${mode}(${rgba.slice(0, mode === 'rgb' ? 3 : 4).join(',')})`;\n};\n\nexport default rgb2css;\n","import { unpack, last } from '../../utils/index.js';\nconst rnd = (a) => Math.round(a * 100) / 100;\n\n/*\n * supported arguments:\n * - hsl2css(h,s,l)\n * - hsl2css(h,s,l,a)\n * - hsl2css([h,s,l], mode)\n * - hsl2css([h,s,l,a], mode)\n * - hsl2css({h,s,l,a}, mode)\n */\nconst hsl2css = (...args) => {\n const hsla = unpack(args, 'hsla');\n let mode = last(args) || 'lsa';\n hsla[0] = rnd(hsla[0] || 0);\n hsla[1] = rnd(hsla[1] * 100) + '%';\n hsla[2] = rnd(hsla[2] * 100) + '%';\n if (mode === 'hsla' || (hsla.length > 3 && hsla[3] < 1)) {\n hsla[3] = hsla.length > 3 ? hsla[3] : 1;\n mode = 'hsla';\n } else {\n hsla.length = 3;\n }\n return `${mode}(${hsla.join(',')})`;\n};\n\nexport default hsl2css;\n","import { unpack, min, max } from '../../utils/index.js';\n\n/*\n * supported arguments:\n * - rgb2hsl(r,g,b)\n * - rgb2hsl(r,g,b,a)\n * - rgb2hsl([r,g,b])\n * - rgb2hsl([r,g,b,a])\n * - rgb2hsl({r,g,b,a})\n */\nconst rgb2hsl = (...args) => {\n args = unpack(args, 'rgba');\n let [r, g, b] = args;\n\n r /= 255;\n g /= 255;\n b /= 255;\n\n const minRgb = min(r, g, b);\n const maxRgb = max(r, g, b);\n\n const l = (maxRgb + minRgb) / 2;\n let s, h;\n\n if (maxRgb === minRgb) {\n s = 0;\n h = Number.NaN;\n } else {\n s =\n l < 0.5\n ? (maxRgb - minRgb) / (maxRgb + minRgb)\n : (maxRgb - minRgb) / (2 - maxRgb - minRgb);\n }\n\n if (r == maxRgb) h = (g - b) / (maxRgb - minRgb);\n else if (g == maxRgb) h = 2 + (b - r) / (maxRgb - minRgb);\n else if (b == maxRgb) h = 4 + (r - g) / (maxRgb - minRgb);\n\n h *= 60;\n if (h < 0) h += 360;\n if (args.length > 3 && args[3] !== undefined) return [h, s, l, args[3]];\n return [h, s, l];\n};\n\nexport default rgb2hsl;\n","import hsl2rgb from '../hsl/hsl2rgb.js';\nimport input from '../input.js';\n\nconst RE_RGB = /^rgb\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*\\)$/;\nconst RE_RGBA =\n /^rgba\\(\\s*(-?\\d+),\\s*(-?\\d+)\\s*,\\s*(-?\\d+)\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\nconst RE_RGB_PCT =\n /^rgb\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/;\nconst RE_RGBA_PCT =\n /^rgba\\(\\s*(-?\\d+(?:\\.\\d+)?)%,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\nconst RE_HSL =\n /^hsl\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*\\)$/;\nconst RE_HSLA =\n /^hsla\\(\\s*(-?\\d+(?:\\.\\d+)?),\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*(-?\\d+(?:\\.\\d+)?)%\\s*,\\s*([01]|[01]?\\.\\d+)\\)$/;\n\nconst { round } = Math;\n\nconst css2rgb = (css) => {\n css = css.toLowerCase().trim();\n let m;\n\n if (input.format.named) {\n try {\n return input.format.named(css);\n // eslint-disable-next-line\n } catch (e) {}\n }\n\n // rgb(250,20,0)\n if ((m = css.match(RE_RGB))) {\n const rgb = m.slice(1, 4);\n for (let i = 0; i < 3; i++) {\n rgb[i] = +rgb[i];\n }\n rgb[3] = 1; // default alpha\n return rgb;\n }\n\n // rgba(250,20,0,0.4)\n if ((m = css.match(RE_RGBA))) {\n const rgb = m.slice(1, 5);\n for (let i = 0; i < 4; i++) {\n rgb[i] = +rgb[i];\n }\n return rgb;\n }\n\n // rgb(100%,0%,0%)\n if ((m = css.match(RE_RGB_PCT))) {\n const rgb = m.slice(1, 4);\n for (let i = 0; i < 3; i++) {\n rgb[i] = round(rgb[i] * 2.55);\n }\n rgb[3] = 1; // default alpha\n return rgb;\n }\n\n // rgba(100%,0%,0%,0.4)\n if ((m = css.match(RE_RGBA_PCT))) {\n const rgb = m.slice(1, 5);\n for (let i = 0; i < 3; i++) {\n rgb[i] = round(rgb[i] * 2.55);\n }\n rgb[3] = +rgb[3];\n return rgb;\n }\n\n // hsl(0,100%,50%)\n if ((m = css.match(RE_HSL))) {\n const hsl = m.slice(1, 4);\n hsl[1] *= 0.01;\n hsl[2] *= 0.01;\n const rgb = hsl2rgb(hsl);\n rgb[3] = 1;\n return rgb;\n }\n\n // hsla(0,100%,50%,0.5)\n if ((m = css.match(RE_HSLA))) {\n const hsl = m.slice(1, 4);\n hsl[1] *= 0.01;\n hsl[2] *= 0.01;\n const rgb = hsl2rgb(hsl);\n rgb[3] = +m[4]; // default alpha = 1\n return rgb;\n }\n};\n\ncss2rgb.test = (s) => {\n return (\n RE_RGB.test(s) ||\n RE_RGBA.test(s) ||\n RE_RGB_PCT.test(s) ||\n RE_RGBA_PCT.test(s) ||\n RE_HSL.test(s) ||\n RE_HSLA.test(s)\n );\n};\n\nexport default css2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { round } = Math;\n\nconst hsl2rgb = (...args) => {\n args = unpack(args, 'hsl');\n const [h, s, l] = args;\n let r, g, b;\n if (s === 0) {\n r = g = b = l * 255;\n } else {\n const t3 = [0, 0, 0];\n const c = [0, 0, 0];\n const t2 = l < 0.5 ? l * (1 + s) : l + s - l * s;\n const t1 = 2 * l - t2;\n const h_ = h / 360;\n t3[0] = h_ + 1 / 3;\n t3[1] = h_;\n t3[2] = h_ - 1 / 3;\n for (let i = 0; i < 3; i++) {\n if (t3[i] < 0) t3[i] += 1;\n if (t3[i] > 1) t3[i] -= 1;\n if (6 * t3[i] < 1) c[i] = t1 + (t2 - t1) * 6 * t3[i];\n else if (2 * t3[i] < 1) c[i] = t2;\n else if (3 * t3[i] < 2) c[i] = t1 + (t2 - t1) * (2 / 3 - t3[i]) * 6;\n else c[i] = t1;\n }\n [r, g, b] = [round(c[0] * 255), round(c[1] * 255), round(c[2] * 255)];\n }\n if (args.length > 3) {\n // keep alpha channel\n return [r, g, b, args[3]];\n }\n return [r, g, b, 1];\n};\n\nexport default hsl2rgb;\n","import Color from '../../Color.js';\nimport chroma from '../../chroma.js';\nimport input from '../input.js';\nimport { unpack } from '../../utils/index.js';\n\ninput.format.gl = (...args) => {\n const rgb = unpack(args, 'rgba');\n rgb[0] *= 255;\n rgb[1] *= 255;\n rgb[2] *= 255;\n return rgb;\n};\n\nchroma.gl = (...args) => new Color(...args, 'gl');\n\nColor.prototype.gl = function () {\n const rgb = this._rgb;\n return [rgb[0] / 255, rgb[1] / 255, rgb[2] / 255, rgb[3]];\n};\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hcg2rgb from './hcg2rgb.js';\nimport rgb2hcg from './rgb2hcg.js';\n\nColor.prototype.hcg = function () {\n return rgb2hcg(this._rgb);\n};\n\nchroma.hcg = (...args) => new Color(...args, 'hcg');\n\ninput.format.hcg = hcg2rgb;\n\ninput.autodetect.push({\n p: 1,\n test: (...args) => {\n args = unpack(args, 'hcg');\n if (type(args) === 'array' && args.length === 3) {\n return 'hcg';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { floor } = Math;\n\n/*\n * this is basically just HSV with some minor tweaks\n *\n * hue.. [0..360]\n * chroma .. [0..1]\n * grayness .. [0..1]\n */\n\nconst hcg2rgb = (...args) => {\n args = unpack(args, 'hcg');\n let [h, c, _g] = args;\n let r, g, b;\n _g = _g * 255;\n const _c = c * 255;\n if (c === 0) {\n r = g = b = _g;\n } else {\n if (h === 360) h = 0;\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 60;\n const i = floor(h);\n const f = h - i;\n const p = _g * (1 - c);\n const q = p + _c * (1 - f);\n const t = p + _c * f;\n const v = p + _c;\n switch (i) {\n case 0:\n [r, g, b] = [v, t, p];\n break;\n case 1:\n [r, g, b] = [q, v, p];\n break;\n case 2:\n [r, g, b] = [p, v, t];\n break;\n case 3:\n [r, g, b] = [p, q, v];\n break;\n case 4:\n [r, g, b] = [t, p, v];\n break;\n case 5:\n [r, g, b] = [v, p, q];\n break;\n }\n }\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default hcg2rgb;\n","import { unpack, max, min } from '../../utils/index.js';\n\nconst rgb2hcg = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const minRgb = min(r, g, b);\n const maxRgb = max(r, g, b);\n const delta = maxRgb - minRgb;\n const c = (delta * 100) / 255;\n const _g = (minRgb / (255 - delta)) * 100;\n let h;\n if (delta === 0) {\n h = Number.NaN;\n } else {\n if (r === maxRgb) h = (g - b) / delta;\n if (g === maxRgb) h = 2 + (b - r) / delta;\n if (b === maxRgb) h = 4 + (r - g) / delta;\n h *= 60;\n if (h < 0) h += 360;\n }\n return [h, c, _g];\n};\n\nexport default rgb2hcg;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport { type } from '../../utils/index.js';\nimport input from '../input.js';\nimport hex2rgb from './hex2rgb.js';\nimport rgb2hex from './rgb2hex.js';\n\nColor.prototype.hex = function (mode) {\n return rgb2hex(this._rgb, mode);\n};\n\nchroma.hex = (...args) => new Color(...args, 'hex');\n\ninput.format.hex = hex2rgb;\ninput.autodetect.push({\n p: 4,\n test: (h, ...rest) => {\n if (\n !rest.length &&\n type(h) === 'string' &&\n [3, 4, 5, 6, 7, 8, 9].indexOf(h.length) >= 0\n ) {\n return 'hex';\n }\n }\n});\n","const RE_HEX = /^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;\nconst RE_HEXA = /^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/;\n\nconst hex2rgb = (hex) => {\n if (hex.match(RE_HEX)) {\n // remove optional leading #\n if (hex.length === 4 || hex.length === 7) {\n hex = hex.substr(1);\n }\n // expand short-notation to full six-digit\n if (hex.length === 3) {\n hex = hex.split('');\n hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];\n }\n const u = parseInt(hex, 16);\n const r = u >> 16;\n const g = (u >> 8) & 0xff;\n const b = u & 0xff;\n return [r, g, b, 1];\n }\n\n // match rgba hex format, eg #FF000077\n if (hex.match(RE_HEXA)) {\n if (hex.length === 5 || hex.length === 9) {\n // remove optional leading #\n hex = hex.substr(1);\n }\n // expand short-notation to full eight-digit\n if (hex.length === 4) {\n hex = hex.split('');\n hex =\n hex[0] +\n hex[0] +\n hex[1] +\n hex[1] +\n hex[2] +\n hex[2] +\n hex[3] +\n hex[3];\n }\n const u = parseInt(hex, 16);\n const r = (u >> 24) & 0xff;\n const g = (u >> 16) & 0xff;\n const b = (u >> 8) & 0xff;\n const a = Math.round(((u & 0xff) / 0xff) * 100) / 100;\n return [r, g, b, a];\n }\n\n // we used to check for css colors here\n // if _input.css? and rgb = _input.css hex\n // return rgb\n\n throw new Error(`unknown hex color: ${hex}`);\n};\n\nexport default hex2rgb;\n","import { unpack, last } from '../../utils/index.js';\nconst { round } = Math;\n\nconst rgb2hex = (...args) => {\n let [r, g, b, a] = unpack(args, 'rgba');\n let mode = last(args) || 'auto';\n if (a === undefined) a = 1;\n if (mode === 'auto') {\n mode = a < 1 ? 'rgba' : 'rgb';\n }\n r = round(r);\n g = round(g);\n b = round(b);\n const u = (r << 16) | (g << 8) | b;\n let str = '000000' + u.toString(16); //#.toUpperCase();\n str = str.substr(str.length - 6);\n let hxa = '0' + round(a * 255).toString(16);\n hxa = hxa.substr(hxa.length - 2);\n switch (mode.toLowerCase()) {\n case 'rgba':\n return `#${str}${hxa}`;\n case 'argb':\n return `#${hxa}${str}`;\n default:\n return `#${str}`;\n }\n};\n\nexport default rgb2hex;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsi2rgb from './hsi2rgb.js';\nimport rgb2hsi from './rgb2hsi.js';\n\nColor.prototype.hsi = function () {\n return rgb2hsi(this._rgb);\n};\n\nchroma.hsi = (...args) => new Color(...args, 'hsi');\n\ninput.format.hsi = hsi2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsi');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsi';\n }\n }\n});\n","import { unpack, limit, TWOPI, PITHIRD } from '../../utils/index.js';\nconst { cos } = Math;\n\n/*\n * hue [0..360]\n * saturation [0..1]\n * intensity [0..1]\n */\nconst hsi2rgb = (...args) => {\n /*\n borrowed from here:\n http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/hsi2rgb.cpp\n */\n args = unpack(args, 'hsi');\n let [h, s, i] = args;\n let r, g, b;\n\n if (isNaN(h)) h = 0;\n if (isNaN(s)) s = 0;\n // normalize hue\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 360;\n if (h < 1 / 3) {\n b = (1 - s) / 3;\n r = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n g = 1 - (b + r);\n } else if (h < 2 / 3) {\n h -= 1 / 3;\n r = (1 - s) / 3;\n g = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n b = 1 - (r + g);\n } else {\n h -= 2 / 3;\n g = (1 - s) / 3;\n b = (1 + (s * cos(TWOPI * h)) / cos(PITHIRD - TWOPI * h)) / 3;\n r = 1 - (g + b);\n }\n r = limit(i * r * 3);\n g = limit(i * g * 3);\n b = limit(i * b * 3);\n return [r * 255, g * 255, b * 255, args.length > 3 ? args[3] : 1];\n};\n\nexport default hsi2rgb;\n","import { unpack, TWOPI } from '../../utils/index.js';\nconst { min, sqrt, acos } = Math;\n\nconst rgb2hsi = (...args) => {\n /*\n borrowed from here:\n http://hummer.stanford.edu/museinfo/doc/examples/humdrum/keyscape2/rgb2hsi.cpp\n */\n let [r, g, b] = unpack(args, 'rgb');\n r /= 255;\n g /= 255;\n b /= 255;\n let h;\n const min_ = min(r, g, b);\n const i = (r + g + b) / 3;\n const s = i > 0 ? 1 - min_ / i : 0;\n if (s === 0) {\n h = NaN;\n } else {\n h = (r - g + (r - b)) / 2;\n h /= sqrt((r - g) * (r - g) + (r - b) * (g - b));\n h = acos(h);\n if (b > g) {\n h = TWOPI - h;\n }\n h /= TWOPI;\n }\n return [h * 360, s, i];\n};\n\nexport default rgb2hsi;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsl2rgb from './hsl2rgb.js';\nimport rgb2hsl from './rgb2hsl.js';\n\nColor.prototype.hsl = function () {\n return rgb2hsl(this._rgb);\n};\n\nchroma.hsl = (...args) => new Color(...args, 'hsl');\n\ninput.format.hsl = hsl2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsl');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsl';\n }\n }\n});\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport hsv2rgb from './hsv2rgb.js';\nimport rgb2hsv from './rgb2hsv.js';\n\nColor.prototype.hsv = function () {\n return rgb2hsv(this._rgb);\n};\n\nchroma.hsv = (...args) => new Color(...args, 'hsv');\n\ninput.format.hsv = hsv2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'hsv');\n if (type(args) === 'array' && args.length === 3) {\n return 'hsv';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { floor } = Math;\n\nconst hsv2rgb = (...args) => {\n args = unpack(args, 'hsv');\n let [h, s, v] = args;\n let r, g, b;\n v *= 255;\n if (s === 0) {\n r = g = b = v;\n } else {\n if (h === 360) h = 0;\n if (h > 360) h -= 360;\n if (h < 0) h += 360;\n h /= 60;\n\n const i = floor(h);\n const f = h - i;\n const p = v * (1 - s);\n const q = v * (1 - s * f);\n const t = v * (1 - s * (1 - f));\n\n switch (i) {\n case 0:\n [r, g, b] = [v, t, p];\n break;\n case 1:\n [r, g, b] = [q, v, p];\n break;\n case 2:\n [r, g, b] = [p, v, t];\n break;\n case 3:\n [r, g, b] = [p, q, v];\n break;\n case 4:\n [r, g, b] = [t, p, v];\n break;\n case 5:\n [r, g, b] = [v, p, q];\n break;\n }\n }\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default hsv2rgb;\n","import { unpack } from '../../utils/index.js';\nconst { min, max } = Math;\n\n/*\n * supported arguments:\n * - rgb2hsv(r,g,b)\n * - rgb2hsv([r,g,b])\n * - rgb2hsv({r,g,b})\n */\nconst rgb2hsl = (...args) => {\n args = unpack(args, 'rgb');\n let [r, g, b] = args;\n const min_ = min(r, g, b);\n const max_ = max(r, g, b);\n const delta = max_ - min_;\n let h, s, v;\n v = max_ / 255.0;\n if (max_ === 0) {\n h = Number.NaN;\n s = 0;\n } else {\n s = delta / max_;\n if (r === max_) h = (g - b) / delta;\n if (g === max_) h = 2 + (b - r) / delta;\n if (b === max_) h = 4 + (r - g) / delta;\n h *= 60;\n if (h < 0) h += 360;\n }\n return [h, s, v];\n};\n\nexport default rgb2hsl;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport lab2rgb from './lab2rgb.js';\nimport rgb2lab from './rgb2lab.js';\n\nColor.prototype.lab = function () {\n return rgb2lab(this._rgb);\n};\n\nchroma.lab = (...args) => new Color(...args, 'lab');\n\ninput.format.lab = lab2rgb;\n\ninput.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, 'lab');\n if (type(args) === 'array' && args.length === 3) {\n return 'lab';\n }\n }\n});\n","import LAB_CONSTANTS from './lab-constants.js';\nimport { unpack } from '../../utils/index.js';\nconst { pow } = Math;\n\n/*\n * L* [0..100]\n * a [-100..100]\n * b [-100..100]\n */\nconst lab2rgb = (...args) => {\n args = unpack(args, 'lab');\n const [l, a, b] = args;\n let x, y, z, r, g, b_;\n\n y = (l + 16) / 116;\n x = isNaN(a) ? y : y + a / 500;\n z = isNaN(b) ? y : y - b / 200;\n\n y = LAB_CONSTANTS.Yn * lab_xyz(y);\n x = LAB_CONSTANTS.Xn * lab_xyz(x);\n z = LAB_CONSTANTS.Zn * lab_xyz(z);\n\n r = xyz_rgb(3.2404542 * x - 1.5371385 * y - 0.4985314 * z); // D65 -> sRGB\n g = xyz_rgb(-0.969266 * x + 1.8760108 * y + 0.041556 * z);\n b_ = xyz_rgb(0.0556434 * x - 0.2040259 * y + 1.0572252 * z);\n\n return [r, g, b_, args.length > 3 ? args[3] : 1];\n};\n\nconst xyz_rgb = (r) => {\n return 255 * (r <= 0.00304 ? 12.92 * r : 1.055 * pow(r, 1 / 2.4) - 0.055);\n};\n\nconst lab_xyz = (t) => {\n return t > LAB_CONSTANTS.t1\n ? t * t * t\n : LAB_CONSTANTS.t2 * (t - LAB_CONSTANTS.t0);\n};\n\nexport default lab2rgb;\n","export default {\n // Corresponds roughly to RGB brighter/darker\n Kn: 18,\n\n // D65 standard referent\n Xn: 0.95047,\n Yn: 1,\n Zn: 1.08883,\n\n t0: 0.137931034, // 4 / 29\n t1: 0.206896552, // 6 / 29\n t2: 0.12841855, // 3 * t1 * t1\n t3: 0.008856452 // t1 * t1 * t1\n};\n","import LAB_CONSTANTS from './lab-constants.js';\nimport { unpack } from '../../utils/index.js';\nconst { pow } = Math;\n\nconst rgb2lab = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [x, y, z] = rgb2xyz(r, g, b);\n const l = 116 * y - 16;\n return [l < 0 ? 0 : l, 500 * (x - y), 200 * (y - z)];\n};\n\nconst rgb_xyz = (r) => {\n if ((r /= 255) <= 0.04045) return r / 12.92;\n return pow((r + 0.055) / 1.055, 2.4);\n};\n\nconst xyz_lab = (t) => {\n if (t > LAB_CONSTANTS.t3) return pow(t, 1 / 3);\n return t / LAB_CONSTANTS.t2 + LAB_CONSTANTS.t0;\n};\n\nconst rgb2xyz = (r, g, b) => {\n r = rgb_xyz(r);\n g = rgb_xyz(g);\n b = rgb_xyz(b);\n const x = xyz_lab(\n (0.4124564 * r + 0.3575761 * g + 0.1804375 * b) / LAB_CONSTANTS.Xn\n );\n const y = xyz_lab(\n (0.2126729 * r + 0.7151522 * g + 0.072175 * b) / LAB_CONSTANTS.Yn\n );\n const z = xyz_lab(\n (0.0193339 * r + 0.119192 * g + 0.9503041 * b) / LAB_CONSTANTS.Zn\n );\n return [x, y, z];\n};\n\nexport default rgb2lab;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport lch2rgb from './lch2rgb.js';\nimport hcl2rgb from './hcl2rgb.js';\nimport rgb2lch from './rgb2lch.js';\n\nColor.prototype.lch = function () {\n return rgb2lch(this._rgb);\n};\nColor.prototype.hcl = function () {\n return rgb2lch(this._rgb).reverse();\n};\n\nchroma.lch = (...args) => new Color(...args, 'lch');\nchroma.hcl = (...args) => new Color(...args, 'hcl');\n\ninput.format.lch = lch2rgb;\ninput.format.hcl = hcl2rgb;\n['lch', 'hcl'].forEach((m) =>\n input.autodetect.push({\n p: 2,\n test: (...args) => {\n args = unpack(args, m);\n if (type(args) === 'array' && args.length === 3) {\n return m;\n }\n }\n })\n);\n","import { unpack } from '../../utils/index.js';\nimport lch2lab from './lch2lab.js';\nimport lab2rgb from '../lab/lab2rgb.js';\n\nconst lch2rgb = (...args) => {\n args = unpack(args, 'lch');\n const [l, c, h] = args;\n const [L, a, b_] = lch2lab(l, c, h);\n const [r, g, b] = lab2rgb(L, a, b_);\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default lch2rgb;\n","import { unpack, DEG2RAD } from '../../utils/index.js';\nconst { sin, cos } = Math;\n\nconst lch2lab = (...args) => {\n /*\n Convert from a qualitative parameter h and a quantitative parameter l to a 24-bit pixel.\n These formulas were invented by David Dalrymple to obtain maximum contrast without going\n out of gamut if the parameters are in the range 0-1.\n\n A saturation multiplier was added by Gregor Aisch\n */\n let [l, c, h] = unpack(args, 'lch');\n if (isNaN(h)) h = 0;\n h = h * DEG2RAD;\n return [l, cos(h) * c, sin(h) * c];\n};\n\nexport default lch2lab;\n","import { unpack } from '../../utils/index.js';\nimport lch2rgb from './lch2rgb.js';\n\nconst hcl2rgb = (...args) => {\n const hcl = unpack(args, 'hcl').reverse();\n return lch2rgb(...hcl);\n};\n\nexport default hcl2rgb;\n","import { unpack } from '../../utils/index.js';\nimport rgb2lab from '../lab/rgb2lab.js';\nimport lab2lch from './lab2lch.js';\n\nconst rgb2lch = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [l, a, b_] = rgb2lab(r, g, b);\n return lab2lch(l, a, b_);\n};\n\nexport default rgb2lch;\n","import { unpack, RAD2DEG } from '../../utils/index.js';\nconst { sqrt, atan2, round } = Math;\n\nconst lab2lch = (...args) => {\n const [l, a, b] = unpack(args, 'lab');\n const c = sqrt(a * a + b * b);\n let h = (atan2(b, a) * RAD2DEG + 360) % 360;\n if (round(c * 10000) === 0) h = Number.NaN;\n return [l, c, h];\n};\n\nexport default lab2lch;\n","import Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\n\nimport w3cx11 from '../../colors/w3cx11.js';\nimport hex2rgb from '../hex/hex2rgb.js';\nimport rgb2hex from '../hex/rgb2hex.js';\n\nColor.prototype.name = function () {\n const hex = rgb2hex(this._rgb, 'rgb');\n for (let n of Object.keys(w3cx11)) {\n if (w3cx11[n] === hex) return n.toLowerCase();\n }\n return hex;\n};\n\ninput.format.named = (name) => {\n name = name.toLowerCase();\n if (w3cx11[name]) return hex2rgb(w3cx11[name]);\n throw new Error('unknown color name: ' + name);\n};\n\ninput.autodetect.push({\n p: 5,\n test: (h, ...rest) => {\n if (!rest.length && type(h) === 'string' && w3cx11[h.toLowerCase()]) {\n return 'named';\n }\n }\n});\n","/**\n\tX11 color names\n\n\thttp://www.w3.org/TR/css3-color/#svg-color\n*/\n\nconst w3cx11 = {\n aliceblue: '#f0f8ff',\n antiquewhite: '#faebd7',\n aqua: '#00ffff',\n aquamarine: '#7fffd4',\n azure: '#f0ffff',\n beige: '#f5f5dc',\n bisque: '#ffe4c4',\n black: '#000000',\n blanchedalmond: '#ffebcd',\n blue: '#0000ff',\n blueviolet: '#8a2be2',\n brown: '#a52a2a',\n burlywood: '#deb887',\n cadetblue: '#5f9ea0',\n chartreuse: '#7fff00',\n chocolate: '#d2691e',\n coral: '#ff7f50',\n cornflowerblue: '#6495ed',\n cornsilk: '#fff8dc',\n crimson: '#dc143c',\n cyan: '#00ffff',\n darkblue: '#00008b',\n darkcyan: '#008b8b',\n darkgoldenrod: '#b8860b',\n darkgray: '#a9a9a9',\n darkgreen: '#006400',\n darkgrey: '#a9a9a9',\n darkkhaki: '#bdb76b',\n darkmagenta: '#8b008b',\n darkolivegreen: '#556b2f',\n darkorange: '#ff8c00',\n darkorchid: '#9932cc',\n darkred: '#8b0000',\n darksalmon: '#e9967a',\n darkseagreen: '#8fbc8f',\n darkslateblue: '#483d8b',\n darkslategray: '#2f4f4f',\n darkslategrey: '#2f4f4f',\n darkturquoise: '#00ced1',\n darkviolet: '#9400d3',\n deeppink: '#ff1493',\n deepskyblue: '#00bfff',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1e90ff',\n firebrick: '#b22222',\n floralwhite: '#fffaf0',\n forestgreen: '#228b22',\n fuchsia: '#ff00ff',\n gainsboro: '#dcdcdc',\n ghostwhite: '#f8f8ff',\n gold: '#ffd700',\n goldenrod: '#daa520',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#adff2f',\n grey: '#808080',\n honeydew: '#f0fff0',\n hotpink: '#ff69b4',\n indianred: '#cd5c5c',\n indigo: '#4b0082',\n ivory: '#fffff0',\n khaki: '#f0e68c',\n laserlemon: '#ffff54',\n lavender: '#e6e6fa',\n lavenderblush: '#fff0f5',\n lawngreen: '#7cfc00',\n lemonchiffon: '#fffacd',\n lightblue: '#add8e6',\n lightcoral: '#f08080',\n lightcyan: '#e0ffff',\n lightgoldenrod: '#fafad2',\n lightgoldenrodyellow: '#fafad2',\n lightgray: '#d3d3d3',\n lightgreen: '#90ee90',\n lightgrey: '#d3d3d3',\n lightpink: '#ffb6c1',\n lightsalmon: '#ffa07a',\n lightseagreen: '#20b2aa',\n lightskyblue: '#87cefa',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#b0c4de',\n lightyellow: '#ffffe0',\n lime: '#00ff00',\n limegreen: '#32cd32',\n linen: '#faf0e6',\n magenta: '#ff00ff',\n maroon: '#800000',\n maroon2: '#7f0000',\n maroon3: '#b03060',\n mediumaquamarine: '#66cdaa',\n mediumblue: '#0000cd',\n mediumorchid: '#ba55d3',\n mediumpurple: '#9370db',\n mediumseagreen: '#3cb371',\n mediumslateblue: '#7b68ee',\n mediumspringgreen: '#00fa9a',\n mediumturquoise: '#48d1cc',\n mediumvioletred: '#c71585',\n midnightblue: '#191970',\n mintcream: '#f5fffa',\n mistyrose: '#ffe4e1',\n moccasin: '#ffe4b5',\n navajowhite: '#ffdead',\n navy: '#000080',\n oldlace: '#fdf5e6',\n olive: '#808000',\n olivedrab: '#6b8e23',\n orange: '#ffa500',\n orangered: '#ff4500',\n orchid: '#da70d6',\n palegoldenrod: '#eee8aa',\n palegreen: '#98fb98',\n paleturquoise: '#afeeee',\n palevioletred: '#db7093',\n papayawhip: '#ffefd5',\n peachpuff: '#ffdab9',\n peru: '#cd853f',\n pink: '#ffc0cb',\n plum: '#dda0dd',\n powderblue: '#b0e0e6',\n purple: '#800080',\n purple2: '#7f007f',\n purple3: '#a020f0',\n rebeccapurple: '#663399',\n red: '#ff0000',\n rosybrown: '#bc8f8f',\n royalblue: '#4169e1',\n saddlebrown: '#8b4513',\n salmon: '#fa8072',\n sandybrown: '#f4a460',\n seagreen: '#2e8b57',\n seashell: '#fff5ee',\n sienna: '#a0522d',\n silver: '#c0c0c0',\n skyblue: '#87ceeb',\n slateblue: '#6a5acd',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#fffafa',\n springgreen: '#00ff7f',\n steelblue: '#4682b4',\n tan: '#d2b48c',\n teal: '#008080',\n thistle: '#d8bfd8',\n tomato: '#ff6347',\n turquoise: '#40e0d0',\n violet: '#ee82ee',\n wheat: '#f5deb3',\n white: '#ffffff',\n whitesmoke: '#f5f5f5',\n yellow: '#ffff00',\n yellowgreen: '#9acd32'\n};\n\nexport default w3cx11;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { type } from '../../utils/index.js';\nimport num2rgb from './num2rgb.js';\nimport rgb2num from './rgb2num.js';\n\nColor.prototype.num = function () {\n return rgb2num(this._rgb);\n};\n\nchroma.num = (...args) => new Color(...args, 'num');\n\ninput.format.num = num2rgb;\n\ninput.autodetect.push({\n p: 5,\n test: (...args) => {\n if (\n args.length === 1 &&\n type(args[0]) === 'number' &&\n args[0] >= 0 &&\n args[0] <= 0xffffff\n ) {\n return 'num';\n }\n }\n});\n","import { type } from '../../utils/index.js';\n\nconst num2rgb = (num) => {\n if (type(num) == 'number' && num >= 0 && num <= 0xffffff) {\n const r = num >> 16;\n const g = (num >> 8) & 0xff;\n const b = num & 0xff;\n return [r, g, b, 1];\n }\n throw new Error('unknown num color: ' + num);\n};\n\nexport default num2rgb;\n","import { unpack } from '../../utils/index.js';\n\nconst rgb2num = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n return (r << 16) + (g << 8) + b;\n};\n\nexport default rgb2num;\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport { unpack, type } from '../../utils/index.js';\nconst { round } = Math;\n\nColor.prototype.rgb = function (rnd = true) {\n if (rnd === false) return this._rgb.slice(0, 3);\n return this._rgb.slice(0, 3).map(round);\n};\n\nColor.prototype.rgba = function (rnd = true) {\n return this._rgb.slice(0, 4).map((v, i) => {\n return i < 3 ? (rnd === false ? v : round(v)) : v;\n });\n};\n\nchroma.rgb = (...args) => new Color(...args, 'rgb');\n\ninput.format.rgb = (...args) => {\n const rgba = unpack(args, 'rgba');\n if (rgba[3] === undefined) rgba[3] = 1;\n return rgba;\n};\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'rgba');\n if (\n type(args) === 'array' &&\n (args.length === 3 ||\n (args.length === 4 &&\n type(args[3]) == 'number' &&\n args[3] >= 0 &&\n args[3] <= 1))\n ) {\n return 'rgb';\n }\n }\n});\n","import chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport temperature2rgb from './temperature2rgb.js';\nimport rgb2temperature from './rgb2temperature.js';\n\nColor.prototype.temp =\n Color.prototype.kelvin =\n Color.prototype.temperature =\n function () {\n return rgb2temperature(this._rgb);\n };\n\nchroma.temp =\n chroma.kelvin =\n chroma.temperature =\n (...args) => new Color(...args, 'temp');\n\ninput.format.temp =\n input.format.kelvin =\n input.format.temperature =\n temperature2rgb;\n","/*\n * Based on implementation by Neil Bartlett\n * https://github.com/neilbartlett/color-temperature\n */\n\nconst { log } = Math;\n\nconst temperature2rgb = (kelvin) => {\n const temp = kelvin / 100;\n let r, g, b;\n if (temp < 66) {\n r = 255;\n g =\n temp < 6\n ? 0\n : -155.25485562709179 -\n 0.44596950469579133 * (g = temp - 2) +\n 104.49216199393888 * log(g);\n b =\n temp < 20\n ? 0\n : -254.76935184120902 +\n 0.8274096064007395 * (b = temp - 10) +\n 115.67994401066147 * log(b);\n } else {\n r =\n 351.97690566805693 +\n 0.114206453784165 * (r = temp - 55) -\n 40.25366309332127 * log(r);\n g =\n 325.4494125711974 +\n 0.07943456536662342 * (g = temp - 50) -\n 28.0852963507957 * log(g);\n b = 255;\n }\n return [r, g, b, 1];\n};\n\nexport default temperature2rgb;\n","/*\n * Based on implementation by Neil Bartlett\n * https://github.com/neilbartlett/color-temperature\n **/\n\nimport temperature2rgb from './temperature2rgb.js';\nimport { unpack } from '../../utils/index.js';\nconst { round } = Math;\n\nconst rgb2temperature = (...args) => {\n const rgb = unpack(args, 'rgb');\n const r = rgb[0],\n b = rgb[2];\n let minTemp = 1000;\n let maxTemp = 40000;\n const eps = 0.4;\n let temp;\n while (maxTemp - minTemp > eps) {\n temp = (maxTemp + minTemp) * 0.5;\n const rgb = temperature2rgb(temp);\n if (rgb[2] / rgb[0] >= b / r) {\n maxTemp = temp;\n } else {\n minTemp = temp;\n }\n }\n return round(temp);\n};\n\nexport default rgb2temperature;\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport oklab2rgb from './oklab2rgb.js';\nimport rgb2oklab from './rgb2oklab.js';\n\nColor.prototype.oklab = function () {\n return rgb2oklab(this._rgb);\n};\n\nchroma.oklab = (...args) => new Color(...args, 'oklab');\n\ninput.format.oklab = oklab2rgb;\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'oklab');\n if (type(args) === 'array' && args.length === 3) {\n return 'oklab';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nconst { pow, sign } = Math;\n\n/*\n * L* [0..100]\n * a [-100..100]\n * b [-100..100]\n */\nconst oklab2rgb = (...args) => {\n args = unpack(args, 'lab');\n const [L, a, b] = args;\n\n const l = pow(L + 0.3963377774 * a + 0.2158037573 * b, 3);\n const m = pow(L - 0.1055613458 * a - 0.0638541728 * b, 3);\n const s = pow(L - 0.0894841775 * a - 1.291485548 * b, 3);\n\n return [\n 255 * lrgb2rgb(+4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s),\n 255 * lrgb2rgb(-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s),\n 255 * lrgb2rgb(-0.0041960863 * l - 0.7034186147 * m + 1.707614701 * s),\n args.length > 3 ? args[3] : 1\n ];\n};\n\nexport default oklab2rgb;\n\nfunction lrgb2rgb(c) {\n const abs = Math.abs(c);\n if (abs > 0.0031308) {\n return (sign(c) || 1) * (1.055 * pow(abs, 1 / 2.4) - 0.055);\n }\n return c * 12.92;\n}\n","import { unpack } from '../../utils/index.js';\nconst { cbrt, pow, sign } = Math;\n\nconst rgb2oklab = (...args) => {\n // OKLab color space implementation taken from\n // https://bottosson.github.io/posts/oklab/\n const [r, g, b] = unpack(args, 'rgb');\n const [lr, lg, lb] = [\n rgb2lrgb(r / 255),\n rgb2lrgb(g / 255),\n rgb2lrgb(b / 255)\n ];\n const l = cbrt(0.4122214708 * lr + 0.5363325363 * lg + 0.0514459929 * lb);\n const m = cbrt(0.2119034982 * lr + 0.6806995451 * lg + 0.1073969566 * lb);\n const s = cbrt(0.0883024619 * lr + 0.2817188376 * lg + 0.6299787005 * lb);\n\n return [\n 0.2104542553 * l + 0.793617785 * m - 0.0040720468 * s,\n 1.9779984951 * l - 2.428592205 * m + 0.4505937099 * s,\n 0.0259040371 * l + 0.7827717662 * m - 0.808675766 * s\n ];\n};\n\nexport default rgb2oklab;\n\nfunction rgb2lrgb(c) {\n const abs = Math.abs(c);\n if (abs < 0.04045) {\n return c / 12.92;\n }\n return (sign(c) || 1) * pow((abs + 0.055) / 1.055, 2.4);\n}\n","import { unpack, type } from '../../utils/index.js';\nimport chroma from '../../chroma.js';\nimport Color from '../../Color.js';\nimport input from '../input.js';\nimport oklch2rgb from './oklch2rgb.js';\nimport rgb2oklch from './rgb2oklch.js';\n\nColor.prototype.oklch = function () {\n return rgb2oklch(this._rgb);\n};\n\nchroma.oklch = (...args) => new Color(...args, 'oklch');\n\ninput.format.oklch = oklch2rgb;\n\ninput.autodetect.push({\n p: 3,\n test: (...args) => {\n args = unpack(args, 'oklch');\n if (type(args) === 'array' && args.length === 3) {\n return 'oklch';\n }\n }\n});\n","import { unpack } from '../../utils/index.js';\nimport lch2lab from '../lch/lch2lab.js';\nimport oklab2rgb from '../oklab/oklab2rgb.js';\n\nconst oklch2rgb = (...args) => {\n args = unpack(args, 'lch');\n const [l, c, h] = args;\n const [L, a, b_] = lch2lab(l, c, h);\n const [r, g, b] = oklab2rgb(L, a, b_);\n return [r, g, b, args.length > 3 ? args[3] : 1];\n};\n\nexport default oklch2rgb;\n","import { unpack } from '../../utils/index.js';\nimport rgb2oklab from '../oklab/rgb2oklab.js';\nimport lab2lch from '../lch/lab2lch.js';\n\nconst rgb2oklch = (...args) => {\n const [r, g, b] = unpack(args, 'rgb');\n const [l, a, b_] = rgb2oklab(r, g, b);\n return lab2lch(l, a, b_);\n};\n\nexport default rgb2oklch;\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.alpha = function (a, mutate = false) {\n if (a !== undefined && type(a) === 'number') {\n if (mutate) {\n this._rgb[3] = a;\n return this;\n }\n return new Color([this._rgb[0], this._rgb[1], this._rgb[2], a], 'rgb');\n }\n return this._rgb[3];\n};\n","import Color from '../Color.js';\n\nColor.prototype.clipped = function () {\n return this._rgb._clipped || false;\n};\n","import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.darken = function (amount = 1) {\n const me = this;\n const lab = me.lab();\n lab[0] -= LAB_CONSTANTS.Kn * amount;\n return new Color(lab, 'lab').alpha(me.alpha(), true);\n};\n\nColor.prototype.brighten = function (amount = 1) {\n return this.darken(-amount);\n};\n\nColor.prototype.darker = Color.prototype.darken;\nColor.prototype.brighter = Color.prototype.brighten;\n","import Color from '../Color.js';\n\nColor.prototype.get = function (mc) {\n const [mode, channel] = mc.split('.');\n const src = this[mode]();\n if (channel) {\n const i = mode.indexOf(channel) - (mode.substr(0, 2) === 'ok' ? 2 : 0);\n if (i > -1) return src[i];\n throw new Error(`unknown channel ${channel} in mode ${mode}`);\n } else {\n return src;\n }\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\nconst { pow } = Math;\n\nconst EPS = 1e-7;\nconst MAX_ITER = 20;\n\nColor.prototype.luminance = function (lum, mode = 'rgb') {\n if (lum !== undefined && type(lum) === 'number') {\n if (lum === 0) {\n // return pure black\n return new Color([0, 0, 0, this._rgb[3]], 'rgb');\n }\n if (lum === 1) {\n // return pure white\n return new Color([255, 255, 255, this._rgb[3]], 'rgb');\n }\n // compute new color using...\n let cur_lum = this.luminance();\n let max_iter = MAX_ITER;\n\n const test = (low, high) => {\n const mid = low.interpolate(high, 0.5, mode);\n const lm = mid.luminance();\n if (Math.abs(lum - lm) < EPS || !max_iter--) {\n // close enough\n return mid;\n }\n return lm > lum ? test(low, mid) : test(mid, high);\n };\n\n const rgb = (\n cur_lum > lum\n ? test(new Color([0, 0, 0]), this)\n : test(this, new Color([255, 255, 255]))\n ).rgb();\n return new Color([...rgb, this._rgb[3]]);\n }\n return rgb2luminance(...this._rgb.slice(0, 3));\n};\n\nconst rgb2luminance = (r, g, b) => {\n // relative luminance\n // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n r = luminance_x(r);\n g = luminance_x(g);\n b = luminance_x(b);\n return 0.2126 * r + 0.7152 * g + 0.0722 * b;\n};\n\nconst luminance_x = (x) => {\n x /= 255;\n return x <= 0.03928 ? x / 12.92 : pow((x + 0.055) / 1.055, 2.4);\n};\n","import Color from '../Color.js';\nimport mix from '../generator/mix.js';\n\nColor.prototype.mix = Color.prototype.interpolate = function (\n col2,\n f = 0.5,\n ...rest\n) {\n return mix(this, col2, f, ...rest);\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\nimport interpolator from '../interpolator/index.js';\n\nexport default (col1, col2, f = 0.5, ...rest) => {\n let mode = rest[0] || 'lrgb';\n if (!interpolator[mode] && !rest.length) {\n // fall back to the first supported mode\n mode = Object.keys(interpolator)[0];\n }\n if (!interpolator[mode]) {\n throw new Error(`interpolation mode ${mode} is not defined`);\n }\n if (type(col1) !== 'object') col1 = new Color(col1);\n if (type(col2) !== 'object') col2 = new Color(col2);\n return interpolator[mode](col1, col2, f).alpha(\n col1.alpha() + f * (col2.alpha() - col1.alpha())\n );\n};\n","export default {};\n","import Color from '../Color.js';\n\nColor.prototype.premultiply = function (mutate = false) {\n const rgb = this._rgb;\n const a = rgb[3];\n if (mutate) {\n this._rgb = [rgb[0] * a, rgb[1] * a, rgb[2] * a, a];\n return this;\n } else {\n return new Color([rgb[0] * a, rgb[1] * a, rgb[2] * a, a], 'rgb');\n }\n};\n","import '../io/lch/index.js';\nimport Color from '../Color.js';\nimport LAB_CONSTANTS from '../io/lab/lab-constants.js';\n\nColor.prototype.saturate = function (amount = 1) {\n const me = this;\n const lch = me.lch();\n lch[1] += LAB_CONSTANTS.Kn * amount;\n if (lch[1] < 0) lch[1] = 0;\n return new Color(lch, 'lch').alpha(me.alpha(), true);\n};\n\nColor.prototype.desaturate = function (amount = 1) {\n return this.saturate(-amount);\n};\n","import Color from '../Color.js';\nimport { type } from '../utils/index.js';\n\nColor.prototype.set = function (mc, value, mutate = false) {\n const [mode, channel] = mc.split('.');\n const src = this[mode]();\n if (channel) {\n const i = mode.indexOf(channel) - (mode.substr(0, 2) === 'ok' ? 2 : 0);\n if (i > -1) {\n if (type(value) == 'string') {\n switch (value.charAt(0)) {\n case '+':\n src[i] += +value;\n break;\n case '-':\n src[i] += +value;\n break;\n case '*':\n src[i] *= +value.substr(1);\n break;\n case '/':\n src[i] /= +value.substr(1);\n break;\n default:\n src[i] = +value;\n }\n } else if (type(value) === 'number') {\n src[i] = value;\n } else {\n throw new Error(`unsupported value for Color.set`);\n }\n const out = new Color(src, mode);\n if (mutate) {\n this._rgb = out._rgb;\n return this;\n }\n return out;\n }\n throw new Error(`unknown channel ${channel} in mode ${mode}`);\n } else {\n return src;\n }\n};\n","import '../io/lab/index.js';\nimport Color from '../Color.js';\nimport mix from '../generator/mix.js';\n\nColor.prototype.tint = function (f = 0.5, ...rest) {\n return mix(this, 'white', f, ...rest);\n};\n\nColor.prototype.shade = function (f = 0.5, ...rest) {\n return mix(this, 'black', f, ...rest);\n};\n","import Color from '../Color.js';\nimport index from './index.js';\n\nconst rgb = (col1, col2, f) => {\n const xyz0 = col1._rgb;\n const xyz1 = col2._rgb;\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'rgb'\n );\n};\n\n// register interpolator\nindex.rgb = rgb;\n\nexport default rgb;\n","import Color from '../Color.js';\nconst { sqrt, pow } = Math;\nimport index from './index.js';\n\nconst lrgb = (col1, col2, f) => {\n const [x1, y1, z1] = col1._rgb;\n const [x2, y2, z2] = col2._rgb;\n return new Color(\n sqrt(pow(x1, 2) * (1 - f) + pow(x2, 2) * f),\n sqrt(pow(y1, 2) * (1 - f) + pow(y2, 2) * f),\n sqrt(pow(z1, 2) * (1 - f) + pow(z2, 2) * f),\n 'rgb'\n );\n};\n\n// register interpolator\nindex.lrgb = lrgb;\n\nexport default lrgb;\n","import '../io/lab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst lab = (col1, col2, f) => {\n const xyz0 = col1.lab();\n const xyz1 = col2.lab();\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'lab'\n );\n};\n\n// register interpolator\nindex.lab = lab;\n\nexport default lab;\n","import '../io/lch/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst lch = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'lch');\n};\n\n// register interpolator\nindex.lch = lch;\nindex.hcl = lch;\n\nexport default lch;\n","import Color from '../Color.js';\n\nexport default (col1, col2, f, m) => {\n let xyz0, xyz1;\n if (m === 'hsl') {\n xyz0 = col1.hsl();\n xyz1 = col2.hsl();\n } else if (m === 'hsv') {\n xyz0 = col1.hsv();\n xyz1 = col2.hsv();\n } else if (m === 'hcg') {\n xyz0 = col1.hcg();\n xyz1 = col2.hcg();\n } else if (m === 'hsi') {\n xyz0 = col1.hsi();\n xyz1 = col2.hsi();\n } else if (m === 'lch' || m === 'hcl') {\n m = 'hcl';\n xyz0 = col1.hcl();\n xyz1 = col2.hcl();\n } else if (m === 'oklch') {\n xyz0 = col1.oklch().reverse();\n xyz1 = col2.oklch().reverse();\n }\n\n let hue0, hue1, sat0, sat1, lbv0, lbv1;\n if (m.substr(0, 1) === 'h' || m === 'oklch') {\n [hue0, sat0, lbv0] = xyz0;\n [hue1, sat1, lbv1] = xyz1;\n }\n\n let sat, hue, lbv, dh;\n\n if (!isNaN(hue0) && !isNaN(hue1)) {\n // both colors have hue\n if (hue1 > hue0 && hue1 - hue0 > 180) {\n dh = hue1 - (hue0 + 360);\n } else if (hue1 < hue0 && hue0 - hue1 > 180) {\n dh = hue1 + 360 - hue0;\n } else {\n dh = hue1 - hue0;\n }\n hue = hue0 + f * dh;\n } else if (!isNaN(hue0)) {\n hue = hue0;\n if ((lbv1 == 1 || lbv1 == 0) && m != 'hsv') sat = sat0;\n } else if (!isNaN(hue1)) {\n hue = hue1;\n if ((lbv0 == 1 || lbv0 == 0) && m != 'hsv') sat = sat1;\n } else {\n hue = Number.NaN;\n }\n\n if (sat === undefined) sat = sat0 + f * (sat1 - sat0);\n lbv = lbv0 + f * (lbv1 - lbv0);\n return m === 'oklch'\n ? new Color([lbv, sat, hue], m)\n : new Color([hue, sat, lbv], m);\n};\n","import '../io/num/index.js';\nimport index from './index.js';\n\nimport Color from '../Color.js';\n\nconst num = (col1, col2, f) => {\n const c1 = col1.num();\n const c2 = col2.num();\n return new Color(c1 + f * (c2 - c1), 'num');\n};\n\n// register interpolator\nindex.num = num;\n\nexport default num;\n","import '../io/hcg/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hcg = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hcg');\n};\n\n// register interpolator\nindex.hcg = hcg;\n\nexport default hcg;\n","import '../io/hsi/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsi = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsi');\n};\n\n// register interpolator\nindex.hsi = hsi;\n\nexport default hsi;\n","import '../io/hsl/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsl = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsl');\n};\n\n// register interpolator\nindex.hsl = hsl;\n\nexport default hsl;\n","import '../io/hsv/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst hsv = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'hsv');\n};\n\n// register interpolator\nindex.hsv = hsv;\n\nexport default hsv;\n","import '../io/oklab/index.js';\nimport index from './index.js';\nimport Color from '../Color.js';\n\nconst oklab = (col1, col2, f) => {\n const xyz0 = col1.oklab();\n const xyz1 = col2.oklab();\n return new Color(\n xyz0[0] + f * (xyz1[0] - xyz0[0]),\n xyz0[1] + f * (xyz1[1] - xyz0[1]),\n xyz0[2] + f * (xyz1[2] - xyz0[2]),\n 'oklab'\n );\n};\n\n// register interpolator\nindex.oklab = oklab;\n\nexport default oklab;\n","import '../io/lch/index.js';\nimport interpolate_hsx from './_hsx.js';\nimport index from './index.js';\n\nconst oklch = (col1, col2, f) => {\n return interpolate_hsx(col1, col2, f, 'oklch');\n};\n\n// register interpolator\nindex.oklch = oklch;\n\nexport default oklch;\n","import Color from '../Color.js';\nimport { clip_rgb } from '../utils/index.js';\n\nconst { pow, sqrt, PI, cos, sin, atan2 } = Math;\n\nexport default (colors, mode = 'lrgb', weights = null) => {\n const l = colors.length;\n if (!weights) weights = Array.from(new Array(l)).map(() => 1);\n // normalize weights\n const k =\n l /\n weights.reduce(function (a, b) {\n return a + b;\n });\n weights.forEach((w, i) => {\n weights[i] *= k;\n });\n // convert colors to Color objects\n colors = colors.map((c) => new Color(c));\n if (mode === 'lrgb') {\n return _average_lrgb(colors, weights);\n }\n const first = colors.shift();\n const xyz = first.get(mode);\n const cnt = [];\n let dx = 0;\n let dy = 0;\n // initial color\n for (let i = 0; i < xyz.length; i++) {\n xyz[i] = (xyz[i] || 0) * weights[0];\n cnt.push(isNaN(xyz[i]) ? 0 : weights[0]);\n if (mode.charAt(i) === 'h' && !isNaN(xyz[i])) {\n const A = (xyz[i] / 180) * PI;\n dx += cos(A) * weights[0];\n dy += sin(A) * weights[0];\n }\n }\n\n let alpha = first.alpha() * weights[0];\n colors.forEach((c, ci) => {\n const xyz2 = c.get(mode);\n alpha += c.alpha() * weights[ci + 1];\n for (let i = 0; i < xyz.length; i++) {\n if (!isNaN(xyz2[i])) {\n cnt[i] += weights[ci + 1];\n if (mode.charAt(i) === 'h') {\n const A = (xyz2[i] / 180) * PI;\n dx += cos(A) * weights[ci + 1];\n dy += sin(A) * weights[ci + 1];\n } else {\n xyz[i] += xyz2[i] * weights[ci + 1];\n }\n }\n }\n });\n\n for (let i = 0; i < xyz.length; i++) {\n if (mode.charAt(i) === 'h') {\n let A = (atan2(dy / cnt[i], dx / cnt[i]) / PI) * 180;\n while (A < 0) A += 360;\n while (A >= 360) A -= 360;\n xyz[i] = A;\n } else {\n xyz[i] = xyz[i] / cnt[i];\n }\n }\n alpha /= l;\n return new Color(xyz, mode).alpha(alpha > 0.99999 ? 1 : alpha, true);\n};\n\nconst _average_lrgb = (colors, weights) => {\n const l = colors.length;\n const xyz = [0, 0, 0, 0];\n for (let i = 0; i < colors.length; i++) {\n const col = colors[i];\n const f = weights[i] / l;\n const rgb = col._rgb;\n xyz[0] += pow(rgb[0], 2) * f;\n xyz[1] += pow(rgb[1], 2) * f;\n xyz[2] += pow(rgb[2], 2) * f;\n xyz[3] += rgb[3] * f;\n }\n xyz[0] = sqrt(xyz[0]);\n xyz[1] = sqrt(xyz[1]);\n xyz[2] = sqrt(xyz[2]);\n if (xyz[3] > 0.9999999) xyz[3] = 1;\n return new Color(clip_rgb(xyz));\n};\n","//\n// interpolates between a set of colors uzing a bezier spline\n//\n\n// @requires utils lab\nimport Color from '../Color.js';\nimport '../io/lab/index.js';\nimport scale from './scale.js';\n\n// nth row of the pascal triangle\nconst binom_row = function (n) {\n let row = [1, 1];\n for (let i = 1; i < n; i++) {\n let newrow = [1];\n for (let j = 1; j <= row.length; j++) {\n newrow[j] = (row[j] || 0) + row[j - 1];\n }\n row = newrow;\n }\n return row;\n};\n\nconst bezier = function (colors) {\n let I, lab0, lab1, lab2;\n colors = colors.map((c) => new Color(c));\n if (colors.length === 2) {\n // linear interpolation\n [lab0, lab1] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map((i) => lab0[i] + t * (lab1[i] - lab0[i]));\n return new Color(lab, 'lab');\n };\n } else if (colors.length === 3) {\n // quadratic bezier interpolation\n [lab0, lab1, lab2] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map(\n (i) =>\n (1 - t) * (1 - t) * lab0[i] +\n 2 * (1 - t) * t * lab1[i] +\n t * t * lab2[i]\n );\n return new Color(lab, 'lab');\n };\n } else if (colors.length === 4) {\n // cubic bezier interpolation\n let lab3;\n [lab0, lab1, lab2, lab3] = colors.map((c) => c.lab());\n I = function (t) {\n const lab = [0, 1, 2].map(\n (i) =>\n (1 - t) * (1 - t) * (1 - t) * lab0[i] +\n 3 * (1 - t) * (1 - t) * t * lab1[i] +\n 3 * (1 - t) * t * t * lab2[i] +\n t * t * t * lab3[i]\n );\n return new Color(lab, 'lab');\n };\n } else if (colors.length >= 5) {\n // general case (degree n bezier)\n let labs, row, n;\n labs = colors.map((c) => c.lab());\n n = colors.length - 1;\n row = binom_row(n);\n I = function (t) {\n const u = 1 - t;\n const lab = [0, 1, 2].map((i) =>\n labs.reduce(\n (sum, el, j) =>\n sum + row[j] * u ** (n - j) * t ** j * el[i],\n 0\n )\n );\n return new Color(lab, 'lab');\n };\n } else {\n throw new RangeError('No point in running bezier with only one color.');\n }\n return I;\n};\n\nexport default (colors) => {\n const f = bezier(colors);\n f.scale = () => scale(f);\n return f;\n};\n","// minimal multi-purpose interface\n\n// @requires utils color analyze\nimport chroma from '../chroma.js';\nimport { limit, type } from '../utils/index.js';\n\nconst { pow } = Math;\n\nexport default function (colors) {\n // constructor\n let _mode = 'rgb';\n let _nacol = chroma('#ccc');\n let _spread = 0;\n // const _fixed = false;\n let _domain = [0, 1];\n let _pos = [];\n let _padding = [0, 0];\n let _classes = false;\n let _colors = [];\n let _out = false;\n let _min = 0;\n let _max = 1;\n let _correctLightness = false;\n let _colorCache = {};\n let _useCache = true;\n let _gamma = 1;\n\n // private methods\n\n const setColors = function (colors) {\n colors = colors || ['#fff', '#000'];\n if (\n colors &&\n type(colors) === 'string' &&\n chroma.brewer &&\n chroma.brewer[colors.toLowerCase()]\n ) {\n colors = chroma.brewer[colors.toLowerCase()];\n }\n if (type(colors) === 'array') {\n // handle single color\n if (colors.length === 1) {\n colors = [colors[0], colors[0]];\n }\n // make a copy of the colors\n colors = colors.slice(0);\n // convert to chroma classes\n for (let c = 0; c < colors.length; c++) {\n colors[c] = chroma(colors[c]);\n }\n // auto-fill color position\n _pos.length = 0;\n for (let c = 0; c < colors.length; c++) {\n _pos.push(c / (colors.length - 1));\n }\n }\n resetCache();\n return (_colors = colors);\n };\n\n const getClass = function (value) {\n if (_classes != null) {\n const n = _classes.length - 1;\n let i = 0;\n while (i < n && value >= _classes[i]) {\n i++;\n }\n return i - 1;\n }\n return 0;\n };\n\n let tMapLightness = (t) => t;\n let tMapDomain = (t) => t;\n\n // const classifyValue = function(value) {\n // let val = value;\n // if (_classes.length > 2) {\n // const n = _classes.length-1;\n // const i = getClass(value);\n // const minc = _classes[0] + ((_classes[1]-_classes[0]) * (0 + (_spread * 0.5))); // center of 1st class\n // const maxc = _classes[n-1] + ((_classes[n]-_classes[n-1]) * (1 - (_spread * 0.5))); // center of last class\n // val = _min + ((((_classes[i] + ((_classes[i+1] - _classes[i]) * 0.5)) - minc) / (maxc-minc)) * (_max - _min));\n // }\n // return val;\n // };\n\n const getColor = function (val, bypassMap) {\n let col, t;\n if (bypassMap == null) {\n bypassMap = false;\n }\n if (isNaN(val) || val === null) {\n return _nacol;\n }\n if (!bypassMap) {\n if (_classes && _classes.length > 2) {\n // find the class\n const c = getClass(val);\n t = c / (_classes.length - 2);\n } else if (_max !== _min) {\n // just interpolate between min/max\n t = (val - _min) / (_max - _min);\n } else {\n t = 1;\n }\n } else {\n t = val;\n }\n\n // domain map\n t = tMapDomain(t);\n\n if (!bypassMap) {\n t = tMapLightness(t); // lightness correction\n }\n\n if (_gamma !== 1) {\n t = pow(t, _gamma);\n }\n\n t = _padding[0] + t * (1 - _padding[0] - _padding[1]);\n\n t = limit(t, 0, 1);\n\n const k = Math.floor(t * 10000);\n\n if (_useCache && _colorCache[k]) {\n col = _colorCache[k];\n } else {\n if (type(_colors) === 'array') {\n //for i in [0.._pos.length-1]\n for (let i = 0; i < _pos.length; i++) {\n const p = _pos[i];\n if (t <= p) {\n col = _colors[i];\n break;\n }\n if (t >= p && i === _pos.length - 1) {\n col = _colors[i];\n break;\n }\n if (t > p && t < _pos[i + 1]) {\n t = (t - p) / (_pos[i + 1] - p);\n col = chroma.interpolate(\n _colors[i],\n _colors[i + 1],\n t,\n _mode\n );\n break;\n }\n }\n } else if (type(_colors) === 'function') {\n col = _colors(t);\n }\n if (_useCache) {\n _colorCache[k] = col;\n }\n }\n return col;\n };\n\n var resetCache = () => (_colorCache = {});\n\n setColors(colors);\n\n // public interface\n\n const f = function (v) {\n const c = chroma(getColor(v));\n if (_out && c[_out]) {\n return c[_out]();\n } else {\n return c;\n }\n };\n\n f.classes = function (classes) {\n if (classes != null) {\n if (type(classes) === 'array') {\n _classes = classes;\n _domain = [classes[0], classes[classes.length - 1]];\n } else {\n const d = chroma.analyze(_domain);\n if (classes === 0) {\n _classes = [d.min, d.max];\n } else {\n _classes = chroma.limits(d, 'e', classes);\n }\n }\n return f;\n }\n return _classes;\n };\n\n f.domain = function (domain) {\n if (!arguments.length) {\n return _domain;\n }\n _min = domain[0];\n _max = domain[domain.length - 1];\n _pos = [];\n const k = _colors.length;\n if (domain.length === k && _min !== _max) {\n // update positions\n for (let d of Array.from(domain)) {\n _pos.push((d - _min) / (_max - _min));\n }\n } else {\n for (let c = 0; c < k; c++) {\n _pos.push(c / (k - 1));\n }\n if (domain.length > 2) {\n // set domain map\n const tOut = domain.map((d, i) => i / (domain.length - 1));\n const tBreaks = domain.map((d) => (d - _min) / (_max - _min));\n if (!tBreaks.every((val, i) => tOut[i] === val)) {\n tMapDomain = (t) => {\n if (t <= 0 || t >= 1) return t;\n let i = 0;\n while (t >= tBreaks[i + 1]) i++;\n const f =\n (t - tBreaks[i]) / (tBreaks[i + 1] - tBreaks[i]);\n const out = tOut[i] + f * (tOut[i + 1] - tOut[i]);\n return out;\n };\n }\n }\n }\n _domain = [_min, _max];\n return f;\n };\n\n f.mode = function (_m) {\n if (!arguments.length) {\n return _mode;\n }\n _mode = _m;\n resetCache();\n return f;\n };\n\n f.range = function (colors, _pos) {\n setColors(colors, _pos);\n return f;\n };\n\n f.out = function (_o) {\n _out = _o;\n return f;\n };\n\n f.spread = function (val) {\n if (!arguments.length) {\n return _spread;\n }\n _spread = val;\n return f;\n };\n\n f.correctLightness = function (v) {\n if (v == null) {\n v = true;\n }\n _correctLightness = v;\n resetCache();\n if (_correctLightness) {\n tMapLightness = function (t) {\n const L0 = getColor(0, true).lab()[0];\n const L1 = getColor(1, true).lab()[0];\n const pol = L0 > L1;\n let L_actual = getColor(t, true).lab()[0];\n const L_ideal = L0 + (L1 - L0) * t;\n let L_diff = L_actual - L_ideal;\n let t0 = 0;\n let t1 = 1;\n let max_iter = 20;\n while (Math.abs(L_diff) > 1e-2 && max_iter-- > 0) {\n (function () {\n if (pol) {\n L_diff *= -1;\n }\n if (L_diff < 0) {\n t0 = t;\n t += (t1 - t) * 0.5;\n } else {\n t1 = t;\n t += (t0 - t) * 0.5;\n }\n L_actual = getColor(t, true).lab()[0];\n return (L_diff = L_actual - L_ideal);\n })();\n }\n return t;\n };\n } else {\n tMapLightness = (t) => t;\n }\n return f;\n };\n\n f.padding = function (p) {\n if (p != null) {\n if (type(p) === 'number') {\n p = [p, p];\n }\n _padding = p;\n return f;\n } else {\n return _padding;\n }\n };\n\n f.colors = function (numColors, out) {\n // If no arguments are given, return the original colors that were provided\n if (arguments.length < 2) {\n out = 'hex';\n }\n let result = [];\n\n if (arguments.length === 0) {\n result = _colors.slice(0);\n } else if (numColors === 1) {\n result = [f(0.5)];\n } else if (numColors > 1) {\n const dm = _domain[0];\n const dd = _domain[1] - dm;\n result = __range__(0, numColors, false).map((i) =>\n f(dm + (i / (numColors - 1)) * dd)\n );\n } else {\n // returns all colors based on the defined classes\n colors = [];\n let samples = [];\n if (_classes && _classes.length > 2) {\n for (\n let i = 1, end = _classes.length, asc = 1 <= end;\n asc ? i < end : i > end;\n asc ? i++ : i--\n ) {\n samples.push((_classes[i - 1] + _classes[i]) * 0.5);\n }\n } else {\n samples = _domain;\n }\n result = samples.map((v) => f(v));\n }\n\n if (chroma[out]) {\n result = result.map((c) => c[out]());\n }\n return result;\n };\n\n f.cache = function (c) {\n if (c != null) {\n _useCache = c;\n return f;\n } else {\n return _useCache;\n }\n };\n\n f.gamma = function (g) {\n if (g != null) {\n _gamma = g;\n return f;\n } else {\n return _gamma;\n }\n };\n\n f.nodata = function (d) {\n if (d != null) {\n _nacol = chroma(d);\n return f;\n } else {\n return _nacol;\n }\n };\n\n return f;\n}\n\nfunction __range__(left, right, inclusive) {\n let range = [];\n let ascending = left < right;\n let end = !inclusive ? right : ascending ? right + 1 : right - 1;\n for (let i = left; ascending ? i < end : i > end; ascending ? i++ : i--) {\n range.push(i);\n }\n return range;\n}\n","/*\n * interpolates between a set of colors uzing a bezier spline\n * blend mode formulas taken from https://web.archive.org/web/20180110014946/http://www.venture-ware.com/kevin/coding/lets-learn-math-photoshop-blend-modes/\n */\n\nimport '../io/rgb/index.js';\nimport chroma from '../chroma.js';\n\nconst blend = (bottom, top, mode) => {\n if (!blend[mode]) {\n throw new Error('unknown blend mode ' + mode);\n }\n return blend[mode](bottom, top);\n};\n\nconst blend_f = (f) => (bottom, top) => {\n const c0 = chroma(top).rgb();\n const c1 = chroma(bottom).rgb();\n return chroma.rgb(f(c0, c1));\n};\n\nconst each = (f) => (c0, c1) => {\n const out = [];\n out[0] = f(c0[0], c1[0]);\n out[1] = f(c0[1], c1[1]);\n out[2] = f(c0[2], c1[2]);\n return out;\n};\n\nconst normal = (a) => a;\nconst multiply = (a, b) => (a * b) / 255;\nconst darken = (a, b) => (a > b ? b : a);\nconst lighten = (a, b) => (a > b ? a : b);\nconst screen = (a, b) => 255 * (1 - (1 - a / 255) * (1 - b / 255));\nconst overlay = (a, b) =>\n b < 128 ? (2 * a * b) / 255 : 255 * (1 - 2 * (1 - a / 255) * (1 - b / 255));\nconst burn = (a, b) => 255 * (1 - (1 - b / 255) / (a / 255));\nconst dodge = (a, b) => {\n if (a === 255) return 255;\n a = (255 * (b / 255)) / (1 - a / 255);\n return a > 255 ? 255 : a;\n};\n\n// # add = (a,b) ->\n// # if (a + b > 255) then 255 else a + b\n\nblend.normal = blend_f(each(normal));\nblend.multiply = blend_f(each(multiply));\nblend.screen = blend_f(each(screen));\nblend.overlay = blend_f(each(overlay));\nblend.darken = blend_f(each(darken));\nblend.lighten = blend_f(each(lighten));\nblend.dodge = blend_f(each(dodge));\nblend.burn = blend_f(each(burn));\n// blend.add = blend_f(each(add));\n\nexport default blend;\n","// cubehelix interpolation\n// based on D.A. Green \"A colour scheme for the display of astronomical intensity images\"\n// http://astron-soc.in/bulletin/11June/289392011.pdf\nimport { type, clip_rgb, TWOPI } from '../utils/index.js';\nimport chroma from '../chroma.js';\nconst { pow, sin, cos } = Math;\n\nexport default function (\n start = 300,\n rotations = -1.5,\n hue = 1,\n gamma = 1,\n lightness = [0, 1]\n) {\n let dh = 0,\n dl;\n if (type(lightness) === 'array') {\n dl = lightness[1] - lightness[0];\n } else {\n dl = 0;\n lightness = [lightness, lightness];\n }\n const f = function (fract) {\n const a = TWOPI * ((start + 120) / 360 + rotations * fract);\n const l = pow(lightness[0] + dl * fract, gamma);\n const h = dh !== 0 ? hue[0] + fract * dh : hue;\n const amp = (h * l * (1 - l)) / 2;\n const cos_a = cos(a);\n const sin_a = sin(a);\n const r = l + amp * (-0.14861 * cos_a + 1.78277 * sin_a);\n const g = l + amp * (-0.29227 * cos_a - 0.90649 * sin_a);\n const b = l + amp * (+1.97294 * cos_a);\n return chroma(clip_rgb([r * 255, g * 255, b * 255, 1]));\n };\n f.start = function (s) {\n if (s == null) {\n return start;\n }\n start = s;\n return f;\n };\n f.rotations = function (r) {\n if (r == null) {\n return rotations;\n }\n rotations = r;\n return f;\n };\n f.gamma = function (g) {\n if (g == null) {\n return gamma;\n }\n gamma = g;\n return f;\n };\n f.hue = function (h) {\n if (h == null) {\n return hue;\n }\n hue = h;\n if (type(hue) === 'array') {\n dh = hue[1] - hue[0];\n if (dh === 0) {\n hue = hue[1];\n }\n } else {\n dh = 0;\n }\n return f;\n };\n f.lightness = function (h) {\n if (h == null) {\n return lightness;\n }\n if (type(h) === 'array') {\n lightness = h;\n dl = h[1] - h[0];\n } else {\n lightness = [h, h];\n dl = 0;\n }\n return f;\n };\n f.scale = () => chroma.scale(f);\n f.hue(hue);\n return f;\n}\n","import Color from '../Color.js';\nconst digits = '0123456789abcdef';\n\nconst { floor, random } = Math;\n\nexport default () => {\n let code = '#';\n for (let i = 0; i < 6; i++) {\n code += digits.charAt(floor(random() * 16));\n }\n return new Color(code, 'hex');\n};\n","import type from './type.js';\n\nconst { log, pow, floor, abs } = Math;\n\nexport function analyze(data, key = null) {\n const r = {\n min: Number.MAX_VALUE,\n max: Number.MAX_VALUE * -1,\n sum: 0,\n values: [],\n count: 0\n };\n if (type(data) === 'object') {\n data = Object.values(data);\n }\n data.forEach((val) => {\n if (key && type(val) === 'object') val = val[key];\n if (val !== undefined && val !== null && !isNaN(val)) {\n r.values.push(val);\n r.sum += val;\n if (val < r.min) r.min = val;\n if (val > r.max) r.max = val;\n r.count += 1;\n }\n });\n\n r.domain = [r.min, r.max];\n\n r.limits = (mode, num) => limits(r, mode, num);\n\n return r;\n}\n\nexport function limits(data, mode = 'equal', num = 7) {\n if (type(data) == 'array') {\n data = analyze(data);\n }\n const { min, max } = data;\n const values = data.values.sort((a, b) => a - b);\n\n if (num === 1) {\n return [min, max];\n }\n\n const limits = [];\n\n if (mode.substr(0, 1) === 'c') {\n // continuous\n limits.push(min);\n limits.push(max);\n }\n\n if (mode.substr(0, 1) === 'e') {\n // equal interval\n limits.push(min);\n for (let i = 1; i < num; i++) {\n limits.push(min + (i / num) * (max - min));\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'l') {\n // log scale\n if (min <= 0) {\n throw new Error(\n 'Logarithmic scales are only possible for values > 0'\n );\n }\n const min_log = Math.LOG10E * log(min);\n const max_log = Math.LOG10E * log(max);\n limits.push(min);\n for (let i = 1; i < num; i++) {\n limits.push(pow(10, min_log + (i / num) * (max_log - min_log)));\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'q') {\n // quantile scale\n limits.push(min);\n for (let i = 1; i < num; i++) {\n const p = ((values.length - 1) * i) / num;\n const pb = floor(p);\n if (pb === p) {\n limits.push(values[pb]);\n } else {\n // p > pb\n const pr = p - pb;\n limits.push(values[pb] * (1 - pr) + values[pb + 1] * pr);\n }\n }\n limits.push(max);\n } else if (mode.substr(0, 1) === 'k') {\n // k-means clustering\n /*\n implementation based on\n http://code.google.com/p/figue/source/browse/trunk/figue.js#336\n simplified for 1-d input values\n */\n let cluster;\n const n = values.length;\n const assignments = new Array(n);\n const clusterSizes = new Array(num);\n let repeat = true;\n let nb_iters = 0;\n let centroids = null;\n\n // get seed values\n centroids = [];\n centroids.push(min);\n for (let i = 1; i < num; i++) {\n centroids.push(min + (i / num) * (max - min));\n }\n centroids.push(max);\n\n while (repeat) {\n // assignment step\n for (let j = 0; j < num; j++) {\n clusterSizes[j] = 0;\n }\n for (let i = 0; i < n; i++) {\n const value = values[i];\n let mindist = Number.MAX_VALUE;\n let best;\n for (let j = 0; j < num; j++) {\n const dist = abs(centroids[j] - value);\n if (dist < mindist) {\n mindist = dist;\n best = j;\n }\n clusterSizes[best]++;\n assignments[i] = best;\n }\n }\n\n // update centroids step\n const newCentroids = new Array(num);\n for (let j = 0; j < num; j++) {\n newCentroids[j] = null;\n }\n for (let i = 0; i < n; i++) {\n cluster = assignments[i];\n if (newCentroids[cluster] === null) {\n newCentroids[cluster] = values[i];\n } else {\n newCentroids[cluster] += values[i];\n }\n }\n for (let j = 0; j < num; j++) {\n newCentroids[j] *= 1 / clusterSizes[j];\n }\n\n // check convergence\n repeat = false;\n for (let j = 0; j < num; j++) {\n if (newCentroids[j] !== centroids[j]) {\n repeat = true;\n break;\n }\n }\n\n centroids = newCentroids;\n nb_iters++;\n\n if (nb_iters > 200) {\n repeat = false;\n }\n }\n\n // finished k-means clustering\n // the next part is borrowed from gabrielflor.it\n const kClusters = {};\n for (let j = 0; j < num; j++) {\n kClusters[j] = [];\n }\n for (let i = 0; i < n; i++) {\n cluster = assignments[i];\n kClusters[cluster].push(values[i]);\n }\n let tmpKMeansBreaks = [];\n for (let j = 0; j < num; j++) {\n tmpKMeansBreaks.push(kClusters[j][0]);\n tmpKMeansBreaks.push(kClusters[j][kClusters[j].length - 1]);\n }\n tmpKMeansBreaks = tmpKMeansBreaks.sort((a, b) => a - b);\n limits.push(tmpKMeansBreaks[0]);\n for (let i = 1; i < tmpKMeansBreaks.length; i += 2) {\n const v = tmpKMeansBreaks[i];\n if (!isNaN(v) && limits.indexOf(v) === -1) {\n limits.push(v);\n }\n }\n }\n return limits;\n}\n","import Color from '../Color.js';\nimport '../ops/luminance.js';\n\nexport default (a, b) => {\n // WCAG contrast ratio\n // see http://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef\n a = new Color(a);\n b = new Color(b);\n const l1 = a.luminance();\n const l2 = b.luminance();\n return l1 > l2 ? (l1 + 0.05) / (l2 + 0.05) : (l2 + 0.05) / (l1 + 0.05);\n};\n","import Color from '../Color.js';\nconst { sqrt, pow, min, max, atan2, abs, cos, sin, exp, PI } = Math;\n\nexport default function (a, b, Kl = 1, Kc = 1, Kh = 1) {\n // Delta E (CIE 2000)\n // see http://www.brucelindbloom.com/index.html?Eqn_DeltaE_CIE2000.html\n var rad2deg = function (rad) {\n return (360 * rad) / (2 * PI);\n };\n var deg2rad = function (deg) {\n return (2 * PI * deg) / 360;\n };\n a = new Color(a);\n b = new Color(b);\n const [L1, a1, b1] = Array.from(a.lab());\n const [L2, a2, b2] = Array.from(b.lab());\n const avgL = (L1 + L2) / 2;\n const C1 = sqrt(pow(a1, 2) + pow(b1, 2));\n const C2 = sqrt(pow(a2, 2) + pow(b2, 2));\n const avgC = (C1 + C2) / 2;\n const G = 0.5 * (1 - sqrt(pow(avgC, 7) / (pow(avgC, 7) + pow(25, 7))));\n const a1p = a1 * (1 + G);\n const a2p = a2 * (1 + G);\n const C1p = sqrt(pow(a1p, 2) + pow(b1, 2));\n const C2p = sqrt(pow(a2p, 2) + pow(b2, 2));\n const avgCp = (C1p + C2p) / 2;\n const arctan1 = rad2deg(atan2(b1, a1p));\n const arctan2 = rad2deg(atan2(b2, a2p));\n const h1p = arctan1 >= 0 ? arctan1 : arctan1 + 360;\n const h2p = arctan2 >= 0 ? arctan2 : arctan2 + 360;\n const avgHp =\n abs(h1p - h2p) > 180 ? (h1p + h2p + 360) / 2 : (h1p + h2p) / 2;\n const T =\n 1 -\n 0.17 * cos(deg2rad(avgHp - 30)) +\n 0.24 * cos(deg2rad(2 * avgHp)) +\n 0.32 * cos(deg2rad(3 * avgHp + 6)) -\n 0.2 * cos(deg2rad(4 * avgHp - 63));\n let deltaHp = h2p - h1p;\n deltaHp =\n abs(deltaHp) <= 180\n ? deltaHp\n : h2p <= h1p\n ? deltaHp + 360\n : deltaHp - 360;\n deltaHp = 2 * sqrt(C1p * C2p) * sin(deg2rad(deltaHp) / 2);\n const deltaL = L2 - L1;\n const deltaCp = C2p - C1p;\n const sl = 1 + (0.015 * pow(avgL - 50, 2)) / sqrt(20 + pow(avgL - 50, 2));\n const sc = 1 + 0.045 * avgCp;\n const sh = 1 + 0.015 * avgCp * T;\n const deltaTheta = 30 * exp(-pow((avgHp - 275) / 25, 2));\n const Rc = 2 * sqrt(pow(avgCp, 7) / (pow(avgCp, 7) + pow(25, 7)));\n const Rt = -Rc * sin(2 * deg2rad(deltaTheta));\n const result = sqrt(\n pow(deltaL / (Kl * sl), 2) +\n pow(deltaCp / (Kc * sc), 2) +\n pow(deltaHp / (Kh * sh), 2) +\n Rt * (deltaCp / (Kc * sc)) * (deltaHp / (Kh * sh))\n );\n return max(0, min(100, result));\n}\n","import Color from '../Color.js';\n\n// simple Euclidean distance\nexport default function (a, b, mode = 'lab') {\n // Delta E (CIE 1976)\n // see http://www.brucelindbloom.com/index.html?Equations.html\n a = new Color(a);\n b = new Color(b);\n const l1 = a.get(mode);\n const l2 = b.get(mode);\n let sum_sq = 0;\n for (let i in l1) {\n const d = (l1[i] || 0) - (l2[i] || 0);\n sum_sq += d * d;\n }\n return Math.sqrt(sum_sq);\n}\n","import Color from '../Color.js';\n\nexport default (...args) => {\n try {\n new Color(...args);\n return true;\n // eslint-disable-next-line\n } catch (e) {\n return false;\n }\n};\n","// some pre-defined color scales:\nimport chroma from '../chroma.js';\nimport '../io/hsl/index.js';\nimport scale from '../generator/scale.js';\n\nexport default {\n cool() {\n return scale([chroma.hsl(180, 1, 0.9), chroma.hsl(250, 0.7, 0.4)]);\n },\n hot() {\n return scale(['#000', '#f00', '#ff0', '#fff'], [0, 0.25, 0.75, 1]).mode(\n 'rgb'\n );\n }\n};\n","/**\n ColorBrewer colors for chroma.js\n\n Copyright (c) 2002 Cynthia Brewer, Mark Harrower, and The\n Pennsylvania State University.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software distributed\n under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n CONDITIONS OF ANY KIND, either express or implied. See the License for the\n specific language governing permissions and limitations under the License.\n*/\n\nconst colorbrewer = {\n // sequential\n OrRd: ['#fff7ec', '#fee8c8', '#fdd49e', '#fdbb84', '#fc8d59', '#ef6548', '#d7301f', '#b30000', '#7f0000'],\n PuBu: ['#fff7fb', '#ece7f2', '#d0d1e6', '#a6bddb', '#74a9cf', '#3690c0', '#0570b0', '#045a8d', '#023858'],\n BuPu: ['#f7fcfd', '#e0ecf4', '#bfd3e6', '#9ebcda', '#8c96c6', '#8c6bb1', '#88419d', '#810f7c', '#4d004b'],\n Oranges: ['#fff5eb', '#fee6ce', '#fdd0a2', '#fdae6b', '#fd8d3c', '#f16913', '#d94801', '#a63603', '#7f2704'],\n BuGn: ['#f7fcfd', '#e5f5f9', '#ccece6', '#99d8c9', '#66c2a4', '#41ae76', '#238b45', '#006d2c', '#00441b'],\n YlOrBr: ['#ffffe5', '#fff7bc', '#fee391', '#fec44f', '#fe9929', '#ec7014', '#cc4c02', '#993404', '#662506'],\n YlGn: ['#ffffe5', '#f7fcb9', '#d9f0a3', '#addd8e', '#78c679', '#41ab5d', '#238443', '#006837', '#004529'],\n Reds: ['#fff5f0', '#fee0d2', '#fcbba1', '#fc9272', '#fb6a4a', '#ef3b2c', '#cb181d', '#a50f15', '#67000d'],\n RdPu: ['#fff7f3', '#fde0dd', '#fcc5c0', '#fa9fb5', '#f768a1', '#dd3497', '#ae017e', '#7a0177', '#49006a'],\n Greens: ['#f7fcf5', '#e5f5e0', '#c7e9c0', '#a1d99b', '#74c476', '#41ab5d', '#238b45', '#006d2c', '#00441b'],\n YlGnBu: ['#ffffd9', '#edf8b1', '#c7e9b4', '#7fcdbb', '#41b6c4', '#1d91c0', '#225ea8', '#253494', '#081d58'],\n Purples: ['#fcfbfd', '#efedf5', '#dadaeb', '#bcbddc', '#9e9ac8', '#807dba', '#6a51a3', '#54278f', '#3f007d'],\n GnBu: ['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081'],\n Greys: ['#ffffff', '#f0f0f0', '#d9d9d9', '#bdbdbd', '#969696', '#737373', '#525252', '#252525', '#000000'],\n YlOrRd: ['#ffffcc', '#ffeda0', '#fed976', '#feb24c', '#fd8d3c', '#fc4e2a', '#e31a1c', '#bd0026', '#800026'],\n PuRd: ['#f7f4f9', '#e7e1ef', '#d4b9da', '#c994c7', '#df65b0', '#e7298a', '#ce1256', '#980043', '#67001f'],\n Blues: ['#f7fbff', '#deebf7', '#c6dbef', '#9ecae1', '#6baed6', '#4292c6', '#2171b5', '#08519c', '#08306b'],\n PuBuGn: ['#fff7fb', '#ece2f0', '#d0d1e6', '#a6bddb', '#67a9cf', '#3690c0', '#02818a', '#016c59', '#014636'],\n Viridis: ['#440154', '#482777', '#3f4a8a', '#31678e', '#26838f', '#1f9d8a', '#6cce5a', '#b6de2b', '#fee825'],\n\n // diverging\n Spectral: ['#9e0142', '#d53e4f', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#e6f598', '#abdda4', '#66c2a5', '#3288bd', '#5e4fa2'],\n RdYlGn: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee08b', '#ffffbf', '#d9ef8b', '#a6d96a', '#66bd63', '#1a9850', '#006837'],\n RdBu: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#f7f7f7', '#d1e5f0', '#92c5de', '#4393c3', '#2166ac', '#053061'],\n PiYG: ['#8e0152', '#c51b7d', '#de77ae', '#f1b6da', '#fde0ef', '#f7f7f7', '#e6f5d0', '#b8e186', '#7fbc41', '#4d9221', '#276419'],\n PRGn: ['#40004b', '#762a83', '#9970ab', '#c2a5cf', '#e7d4e8', '#f7f7f7', '#d9f0d3', '#a6dba0', '#5aae61', '#1b7837', '#00441b'],\n RdYlBu: ['#a50026', '#d73027', '#f46d43', '#fdae61', '#fee090', '#ffffbf', '#e0f3f8', '#abd9e9', '#74add1', '#4575b4', '#313695'],\n BrBG: ['#543005', '#8c510a', '#bf812d', '#dfc27d', '#f6e8c3', '#f5f5f5', '#c7eae5', '#80cdc1', '#35978f', '#01665e', '#003c30'],\n RdGy: ['#67001f', '#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#ffffff', '#e0e0e0', '#bababa', '#878787', '#4d4d4d', '#1a1a1a'],\n PuOr: ['#7f3b08', '#b35806', '#e08214', '#fdb863', '#fee0b6', '#f7f7f7', '#d8daeb', '#b2abd2', '#8073ac', '#542788', '#2d004b'],\n\n // qualitative\n Set2: ['#66c2a5', '#fc8d62', '#8da0cb', '#e78ac3', '#a6d854', '#ffd92f', '#e5c494', '#b3b3b3'],\n Accent: ['#7fc97f', '#beaed4', '#fdc086', '#ffff99', '#386cb0', '#f0027f', '#bf5b17', '#666666'],\n Set1: ['#e41a1c', '#377eb8', '#4daf4a', '#984ea3', '#ff7f00', '#ffff33', '#a65628', '#f781bf', '#999999'],\n Set3: ['#8dd3c7', '#ffffb3', '#bebada', '#fb8072', '#80b1d3', '#fdb462', '#b3de69', '#fccde5', '#d9d9d9', '#bc80bd', '#ccebc5', '#ffed6f'],\n Dark2: ['#1b9e77', '#d95f02', '#7570b3', '#e7298a', '#66a61e', '#e6ab02', '#a6761d', '#666666'],\n Paired: ['#a6cee3', '#1f78b4', '#b2df8a', '#33a02c', '#fb9a99', '#e31a1c', '#fdbf6f', '#ff7f00', '#cab2d6', '#6a3d9a', '#ffff99', '#b15928'],\n Pastel2: ['#b3e2cd', '#fdcdac', '#cbd5e8', '#f4cae4', '#e6f5c9', '#fff2ae', '#f1e2cc', '#cccccc'],\n Pastel1: ['#fbb4ae', '#b3cde3', '#ccebc5', '#decbe4', '#fed9a6', '#ffffcc', '#e5d8bd', '#fddaec', '#f2f2f2']\n};\n\n// add lowercase aliases for case-insensitive matches\nfor (let key of Object.keys(colorbrewer)) {\n colorbrewer[key.toLowerCase()] = colorbrewer[key];\n}\n\nexport default colorbrewer;\n","import { Layout } from './layout'\nimport chroma from 'chroma-js'\nimport paper, { Layer, Path, Size } from 'paper'\nimport { addClass, debounce, emitEvent, fuzzyEquals, noop, removeClass } from './util'\nimport { Item } from './item'\nimport { Mask } from './items/mask'\nimport { Modifier } from './modifier'\nimport { Beam } from './items/beam'\nimport { Collision as CollisionItem } from './items/collision'\nimport { Stateful } from './stateful'\nimport { OffsetCoordinates } from './coordinates/offset'\nimport { State } from './state'\nimport { Puzzles } from '../puzzles'\nimport { StepState } from './step'\nimport { EventListeners } from './eventListeners'\nimport { Solution } from './solution'\nimport { Interact } from './interact'\nimport { Tile } from './items/tile'\n\nconst elements = Object.freeze({\n footer: document.getElementById('footer'),\n footerMessage: document.getElementById('footer-message'),\n headerMessage: document.getElementById('header-message'),\n main: document.getElementById('main'),\n next: document.getElementById('next'),\n previous: document.getElementById('previous'),\n puzzle: document.getElementById('puzzle'),\n puzzleId: document.getElementById('puzzle-id'),\n redo: document.getElementById('redo'),\n reset: document.getElementById('reset'),\n undo: document.getElementById('undo'),\n title: document.querySelector('title')\n})\n\n// There are various spots below that utilize setTimeout in order to process events in order and to prevent\n// long-running computations from blocking UI updates.\n// See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Event_loop\nexport class Puzzle {\n connections = []\n debug = false\n error = false\n layers = {}\n message\n selectedTile\n solved = false\n\n #beams\n #beamsUpdateDelay = 30\n #collisions = {}\n #eventListeners = new EventListeners({ context: this })\n #interact\n #isUpdatingBeams = false\n #mask\n #maskQueue = []\n #solution\n #state\n #termini\n #tiles = []\n\n constructor () {\n // Don't automatically insert items into the scene graph, they must be explicitly inserted\n paper.settings.insertItems = false\n // noinspection JSCheckFunctionSignatures\n paper.setup(elements.puzzle)\n\n this.#resize()\n\n this.layers.mask = new Layer()\n this.layers.collisions = new Layer()\n this.layers.debug = new Layer()\n\n this.#eventListeners.add([\n { type: Beam.Events.Update, handler: this.#onBeamUpdate },\n { type: 'change', element: elements.puzzleId, handler: this.#onSelect },\n { type: 'click', element: elements.next, handler: this.#next },\n { type: 'click', element: elements.previous, handler: this.#previous },\n { type: 'click', element: elements.redo, handler: this.#redo },\n { type: 'click', element: elements.reset, handler: this.#reset },\n { type: 'click', element: elements.undo, handler: this.#undo },\n { type: 'keyup', handler: this.#onKeyup },\n { type: Modifier.Events.Invoked, handler: this.#onModifierInvoked },\n { type: Puzzle.Events.Mask, handler: this.#onMask },\n { type: 'resize', element: window, handler: debounce(this.#resize) },\n { type: Stateful.Events.Update, handler: this.#onStateUpdate },\n { type: 'tap', element: elements.puzzle, handler: this.#onTap }\n ])\n\n this.#interact = new Interact(elements.puzzle)\n this.#updateDropdown()\n\n this.select()\n }\n\n centerOnTile (offset) {\n const tile = this.layout.getTileByOffset(offset)\n paper.view.center = tile.center\n }\n\n clearDebugPoints () {\n this.layers.debug.clear()\n }\n\n drawDebugPoint (point, style = {}) {\n const circle = new Path.Circle(Object.assign({\n radius: 3,\n fillColor: 'red',\n strokeColor: 'white',\n strokeWidth: 1,\n center: point\n }, style))\n this.layers.debug.addChild(circle)\n }\n\n getBeamsUpdateDelay () {\n return this.#beamsUpdateDelay\n }\n\n getItems (tile) {\n return (tile ? this.#tiles.filter((t) => t === tile) : this.#tiles).flatMap((tile) => tile.items)\n }\n\n getTile (point) {\n const result = paper.project.hitTest(point.ceil(), {\n fill: true,\n match: (result) => result.item.data.type === Item.Types.tile,\n segments: true,\n stroke: true,\n tolerance: 0\n })\n return result ? this.layout.getTileByAxial(result.item.data.coordinates.axial) : result\n }\n\n mask (mask) {\n if (this.#mask) {\n if (this.#mask.equals(mask)) {\n console.debug(mask)\n throw new Error(`Duplicate mask detected: ${mask.id}`)\n }\n\n console.debug('adding mask to queue', mask)\n this.#maskQueue.push(mask)\n return\n }\n\n this.#mask = mask\n\n // TODO animation?\n const tiles = this.#tiles.filter(mask.tileFilter)\n .map((tile) => new Mask(\n tile,\n typeof mask.configuration.style === 'function'\n ? mask.configuration.style(tile)\n : mask.configuration.style\n ))\n\n this.layers.mask.addChildren(tiles.map((tile) => tile.group))\n\n if (mask.message) {\n elements.headerMessage.textContent = mask.message\n }\n\n mask.onMask(this)\n\n document.body.classList.add(Puzzle.Events.Mask)\n }\n\n select (id) {\n if (id !== undefined && id === this.#state?.getId()) {\n // This ID is already selected\n return\n }\n\n try {\n this.#state = State.resolve(id)\n } catch (e) {\n this.#onError(e, 'Could not load puzzle.')\n }\n\n this.#reload()\n }\n\n unmask () {\n console.debug('unmask', this.#mask)\n this.layers.mask.removeChildren()\n this.#updateMessage(this.selectedTile)\n this.#mask.onUnmask(this)\n this.#mask = undefined\n\n document.body.classList.remove(Puzzle.Events.Mask)\n\n const mask = this.#maskQueue.pop()\n if (mask) {\n console.debug('processing next mask in queue', mask)\n // Evaluate after any current events have processed (e.g. beam updates from last mask)\n setTimeout(() => {\n // Allow mask to update since state may have changed since it was queued\n // If onUpdate returns false the mask will not be applied\n if (mask.onUpdate() !== false) {\n this.mask(mask)\n }\n })\n }\n }\n\n update () {\n if (!this.#mask && !this.#isUpdatingBeams) {\n this.#isUpdatingBeams = true\n this.#updateBeams()\n }\n }\n\n updateSelectedTile (tile) {\n const previouslySelectedTile = this.selectedTile\n\n this.selectedTile = tile\n this.#state.setSelectedTile(tile)\n this.#updateMessage(tile)\n this.#updateModifiers(tile, previouslySelectedTile)\n\n if (previouslySelectedTile && previouslySelectedTile !== tile) {\n previouslySelectedTile.onDeselected(tile)\n }\n\n if (tile && tile !== previouslySelectedTile) {\n tile.onSelected(previouslySelectedTile)\n }\n\n return previouslySelectedTile\n }\n\n updateState (keepDelta = true) {\n this.#state.update(Object.assign(this.#state.getCurrent(), { layout: this.layout.getState() }), keepDelta)\n this.#updateActions()\n if (keepDelta) {\n emitEvent(Puzzle.Events.Updated, { state: this.#state })\n }\n }\n\n #addLayers () {\n // Add layers in the order we want them\n [\n this.layout.layers.tiles,\n this.layout.layers.items,\n this.layers.mask,\n this.layers.collisions,\n this.layers.debug\n ].forEach((layer) => paper.project.addLayer(layer))\n }\n\n #getModifiers (tile) {\n // Sort by ID to ensure they always appear in the same order regardless of ownership\n return this.layout.modifiers.concat(tile?.modifiers || [])\n .filter((modifier) => !modifier.immutable)\n .sort((a, b) => a.id - b.id)\n }\n\n #next () {\n const id = Puzzles.visible.nextId(this.#state.getId())\n if (id) {\n this.select(id)\n }\n }\n\n #onBeamUpdate (event) {\n const beam = event.detail.beam\n const state = event.detail.state\n\n if (state?.has(StepState.Collision)) {\n const collision = state.get(StepState.Collision)\n const collisionId = Puzzle.Collision.id(collision.point)\n const existing = this.#collisions[collisionId]\n\n if (existing) {\n existing.addBeam(beam)\n } else {\n this.#collisions[collisionId] = new Puzzle.Collision(this.layers.collisions, [beam], collision.point)\n }\n\n // Beam with collision has an active mask\n const mask = this.#mask?.configuration\n if (mask?.beam?.equals(beam)) {\n this.unmask()\n }\n }\n\n Object.values(this.#collisions).forEach((collision) => collision.update())\n\n this.#beams\n .filter((otherBeam) => otherBeam !== beam)\n .forEach((beam) => beam.onBeamUpdated(event, this))\n\n setTimeout(() => this.update(), 0)\n }\n\n #onError (error, message, cause) {\n this.error = true\n\n // Support exclusion of error\n if (typeof error === 'string') {\n message = error\n cause = message\n error = undefined\n }\n\n if (error) {\n console.error(error)\n }\n\n cause = cause ?? error?.cause\n if (cause) {\n console.error('cause:', cause)\n }\n\n message = message ?? error?.message ?? 'The puzzle has encountered an error, please consider reporting.'\n elements.headerMessage.textContent = message\n document.body.classList.add(Puzzle.Events.Error)\n }\n\n #onKeyup (event) {\n if (this.debug && event.key === 's') {\n this.update()\n }\n }\n\n #onMask (event) {\n console.debug('Mask event', event)\n this.mask(event.detail.mask)\n }\n\n #onModifierInvoked (event) {\n const modifier = event.detail.modifier\n const tile = event.detail.tile\n\n if (\n // Modifier does not belong to a tile\n !modifier.parent &&\n // Tile has a lock modifier\n tile.modifiers.some((modifier) => modifier.type === Modifier.Types.lock) &&\n // Tile does not already have a modifier of this type\n !tile.modifiers.some((other) => other.type === modifier.type) &&\n // Tile has less than the maximum number of modifiers\n tile.modifiers.length < Tile.MaxModifiers\n ) {\n console.debug('locking modifier to tile', modifier, tile)\n this.layout.removeModifier(modifier)\n modifier.move(tile)\n // Disable any other attached modifiers of this type to prevent duplicate locking\n this.#getModifiers(tile)\n .filter((other) => other.type === modifier.type && other.id !== modifier.id)\n .forEach((other) => other.update({ disabled: true }))\n }\n\n this.updateState()\n\n this.#beams\n // Update beams in the tile being modified first\n .sort((beam) => tile.items.some((item) => item === beam) ? -1 : 0)\n .forEach((beam) => beam.onModifierInvoked(event, this))\n\n setTimeout(() => this.update(), 0)\n }\n\n #onSelect (event) {\n this.select(event.target.value)\n }\n\n #onSolved () {\n if (this.solved) {\n return\n }\n\n this.solved = true\n\n this.updateSelectedTile(undefined)\n this.mask(Puzzle.#solvedMask)\n\n const span = document.createElement('span')\n span.classList.add(Puzzle.ClassNames.Icon)\n span.textContent = 'celebration'\n span.title = 'Solved!'\n\n elements.headerMessage.replaceChildren(span)\n\n document.body.classList.add(Puzzle.Events.Solved)\n emitEvent(Puzzle.Events.Solved)\n }\n\n #onStateUpdate () {\n this.updateState()\n }\n\n #onTap (event) {\n let tile\n\n if (this.solved || this.error) {\n return\n }\n\n const result = paper.project.hitTest(event.detail.point)\n\n switch (result?.item.data.type) {\n case Item.Types.mask:\n return\n case Item.Types.tile:\n tile = this.layout.getTileByAxial(result.item.data.coordinates.axial)\n break\n }\n\n // There is an active mask\n if (this.#mask) {\n this.#mask.onTap(this, tile)\n } else {\n const previouslySelectedTile = this.updateSelectedTile(tile)\n\n if (tile && tile === previouslySelectedTile) {\n tile.onTap(event)\n }\n }\n }\n\n #previous () {\n const id = Puzzles.visible.previousId(this.#state.getId())\n if (id) {\n this.select(id)\n }\n }\n\n #redo () {\n if (this.#state.redo()) {\n this.#reload()\n }\n }\n\n #reload () {\n this.error = false\n\n if (this.#state) {\n this.#teardown()\n }\n\n this.#setup()\n\n emitEvent(Puzzle.Events.Updated, { state: this.#state })\n }\n\n #removeLayers () {\n Object.values(this.layers).forEach((layer) => layer.removeChildren())\n paper.project.clear()\n }\n\n #reset () {\n if (this.#state.reset()) {\n this.#reload()\n }\n }\n\n #resize () {\n const { width, height } = elements.main.getBoundingClientRect()\n elements.puzzle.style.height = height + 'px'\n elements.puzzle.style.width = width + 'px'\n paper.view.viewSize = new Size(width, height)\n }\n\n #setup () {\n const { layout, message, solution } = this.#state.getCurrent()\n\n this.layout = new Layout(layout)\n this.message = message\n this.#solution = new Solution(solution)\n\n this.#tiles = this.layout.tiles\n this.#termini = this.layout.items.filter((item) => item.type === Item.Types.terminus)\n this.#beams = this.#termini.flatMap((terminus) => terminus.beams)\n\n this.#addLayers()\n\n document.body.classList.add(Puzzle.Events.Loaded)\n\n const selectedTileId = this.#state.getSelectedTile()\n const selectedTile = selectedTileId\n ? this.layout.getTileByOffset(new OffsetCoordinates(...selectedTileId.split(',')))\n : undefined\n\n this.updateSelectedTile(selectedTile)\n this.updateState(false)\n this.update()\n }\n\n #teardown () {\n document.body.classList.remove(...Object.values(Puzzle.Events))\n\n this.#removeLayers()\n\n this.#tiles.forEach((tile) => tile.teardown())\n this.#tiles = []\n this.#solution?.teardown()\n this.#solution = undefined\n this.solved = false\n this.layout?.teardown()\n this.layout = undefined\n this.selectedTile = undefined\n this.#beams = []\n this.#collisions = {}\n this.#isUpdatingBeams = false\n this.#mask = undefined\n this.#maskQueue = []\n this.#termini = []\n }\n\n #undo () {\n if (this.#state.undo()) {\n this.#reload()\n }\n }\n\n #updateActions () {\n const id = this.#state.getId()\n const title = this.#state.getTitle()\n\n // Update browser title\n elements.title.textContent = `Beaming: Puzzle ${title}`\n\n removeClass(Puzzle.ClassNames.Disabled, ...Array.from(document.querySelectorAll('#actions li')))\n\n const disable = []\n\n if (!this.#state.canUndo()) {\n disable.push(elements.undo)\n }\n\n if (!this.#state.canRedo()) {\n disable.push(elements.redo)\n }\n\n if (!this.#state.canReset()) {\n disable.push(elements.reset)\n }\n\n if (!Puzzles.visible.has(id)) {\n // Custom puzzle\n elements.puzzleId.value = ''\n disable.push(elements.previous, elements.next)\n } else {\n elements.puzzleId.value = id\n\n if (id === Puzzles.visible.firstId) {\n disable.push(elements.previous)\n } else if (id === Puzzles.visible.lastId) {\n disable.push(elements.next)\n }\n }\n\n addClass(Puzzle.ClassNames.Disabled, ...disable)\n }\n\n #updateDropdown () {\n elements.puzzleId.replaceChildren()\n for (const id of Puzzles.visible.ids) {\n const option = document.createElement('option')\n option.value = id\n option.innerText = Puzzles.titles[id]\n elements.puzzleId.append(option)\n }\n }\n\n #updateBeams () {\n const beams = this.#beams.filter((beam) => beam.isPending())\n\n if (!beams.length) {\n this.#isUpdatingBeams = false\n\n // Ensure we check for a solution after all other in-progress events have processed\n setTimeout(() => {\n if (this.#solution.isSolved()) {\n this.#onSolved()\n }\n }, 0)\n return\n }\n\n if (this.debug) {\n this.layers.debug.clear()\n }\n\n beams.forEach((beam) => beam.step(this))\n\n // Ensure the UI has a chance to update between loops\n setTimeout(() => this.#updateBeams(), this.#beamsUpdateDelay)\n }\n\n #updateMessage (tile) {\n elements.headerMessage.textContent = this.message\n elements.footerMessage.replaceChildren()\n\n if (tile) {\n // Check to see if tile has any color elements that need to be displayed\n // Note: these will only be displayed if the tile contains an item with more than one color\n const colorElements = tile.items\n .map((item) => item.getColorElements(tile))\n .find((colorElements) => colorElements.length > 1) || []\n elements.footerMessage.replaceChildren(...colorElements)\n }\n }\n\n #updateModifiers (tile, previouslySelectedTile) {\n this.#getModifiers(previouslySelectedTile).forEach((modifier) => modifier.detach())\n\n const modifiers = this.#getModifiers(tile)\n modifiers.forEach((modifier) => modifier.attach(tile))\n\n elements.footer.classList.toggle(Puzzle.ClassNames.Active, modifiers.length > 0)\n }\n\n static Collision = class {\n constructor (layer, beams, point, item = undefined) {\n this.id = Puzzle.Collision.id(point)\n this.layer = layer\n this.beams = beams\n this.point = point\n this.item = item\n }\n\n addBeam (beam) {\n if (!this.beams.some((otherBeam) => otherBeam.id === beam.id)) {\n this.beams.push(beam)\n }\n\n return this.beams\n }\n\n addItem (color) {\n this.item = new CollisionItem({ center: this.point, color })\n this.layer.addChild(this.item.group)\n }\n\n equals (other) {\n return fuzzyEquals(this.point, other?.point)\n }\n\n getColor () {\n return this.beams.length\n ? chroma.average(this.beams.map((beam) => beam.getColor())).hex()\n : undefined\n }\n\n removeItem () {\n if (this.item) {\n this.item.remove()\n this.item = undefined\n }\n }\n\n update () {\n // Remove any beam which no longer matches its collision point\n this.beams = this.beams.filter((beam) => this.equals(beam.getCollision()))\n\n const color = this.getColor()\n\n // Remove no longer valid collision items\n if (this.item && (!this.beams.length || this.item.color !== color)) {\n this.removeItem()\n }\n\n // Add missing collision items\n if (this.beams.length && !this.item) {\n this.addItem(color)\n }\n }\n\n static id (point) {\n const rounded = point.round()\n return [rounded.x, rounded.y].join(',')\n }\n }\n\n static ClassNames = Object.freeze({\n Active: 'active',\n Disabled: 'disabled',\n Icon: 'material-symbols-outlined'\n })\n\n static Events = Object.freeze({\n Error: 'puzzle-error',\n Loaded: 'puzzle-loaded',\n Mask: 'puzzle-mask',\n Solved: 'puzzle-solved',\n Updated: 'puzzle-updated'\n })\n\n static Mask = class {\n constructor (configuration = {}) {\n configuration.style ??= {}\n this.configuration = configuration\n\n this.id = configuration.id\n this.message = configuration.message\n this.tileFilter = configuration.tileFilter ?? noop(true)\n this.onMask = configuration.onMask ?? noop\n this.onTap = configuration.onTap ?? noop\n this.onUnmask = configuration.onUnmask ?? noop\n this.onUpdate = configuration.onUpdate ?? noop\n }\n\n equals (other) {\n return this.id === other.id\n }\n }\n\n // Filters for all beams that are connected to the terminus, or have been merged into a beam that is connected\n static #connectedBeams = (item) => item.type === Item.Types.beam && item.isConnected()\n\n static #solvedMask = new Puzzle.Mask({\n style: (tile) => {\n const beams = tile.items.filter(Puzzle.#connectedBeams)\n const colors = beams.flatMap((beam) => beam.getSteps(tile).flatMap((step) => step.color))\n return { fillColor: chroma.average(colors).hex() }\n },\n tileFilter: (tile) => tile.items.some(Puzzle.#connectedBeams)\n })\n}\n","import paper, { Layer } from 'paper'\nimport { CubeCoordinates } from './coordinates/cube'\nimport { OffsetCoordinates } from './coordinates/offset'\nimport { Tile } from './items/tile'\nimport { getConvertedDirection } from './util'\nimport { Stateful } from './stateful'\nimport { modifierFactory } from './modifierFactory'\n\nexport class Layout extends Stateful {\n #tilesByAxial = []\n #tilesByOffset = []\n\n items = []\n layers = {}\n modifiers = []\n tiles = []\n tileSize = 120\n\n constructor (state) {\n super(state)\n\n this.type = state.type || Layout.Types.oddR\n\n const center = paper.view.center\n const parameters = Tile.parameters(this.tileSize)\n const tiles = state.tiles\n\n // Using parameters.width because we want the \"stacked height\", or the height of the hexagon without the points.\n const height = tiles.length * parameters.width\n const startingOffsetY = center.y - (height / 2)\n\n // noinspection JSValidateTypes\n this.layers.tiles = new Layer()\n // noinspection JSValidateTypes\n this.layers.items = new Layer()\n\n this.modifiers = (state.modifiers || [])\n .map((state) => modifierFactory(null, state))\n .filter((modifier) => modifier !== undefined)\n\n // Find the widest row\n const widestRow = tiles.reduce((current, row, index) => {\n const length = row.length\n\n // Favor offset rows, since they will be wider\n if (length > current.length || (length === current.length && this.#isOffsetRow(index))) {\n return { index, length }\n }\n\n return current\n }, { index: 0, length: 0 })\n\n const width = (widestRow.length * parameters.width) + (this.#isOffsetRow(widestRow.index) ? parameters.inradius : 0)\n const startingOffsetX = center.x - (width / 2)\n\n for (let r = 0; r < tiles.length; r++) {\n const row = tiles[r]\n const rowByAxial = new Array(row.length).fill(null)\n const rowByOffset = new Array(row.length).fill(null)\n const rowOffset = Math.floor(r / 2)\n\n for (let c = 0; c < row.length; c++) {\n const axial = new CubeCoordinates(c - rowOffset, r)\n const offset = new OffsetCoordinates(r, c)\n\n const layout = {\n row: r,\n column: c,\n // Shift row to the right if it is an offset row\n startingOffsetX: startingOffsetX + (this.#isOffsetRow(r) ? parameters.inradius : 0),\n startingOffsetY\n }\n\n const state = row[c]\n if (!state) {\n continue\n }\n\n const tile = new Tile({ axial, offset }, layout, parameters, state)\n\n this.layers.tiles.addChild(tile.group)\n\n if (tile.items.length) {\n this.items.push(...tile.items)\n this.layers.items.addChildren(tile.items.map((item) => item.group))\n }\n\n this.tiles.push(tile)\n\n rowByAxial[axial.q] = tile\n rowByOffset[offset.c] = tile\n }\n\n this.#tilesByAxial.push(rowByAxial)\n this.#tilesByOffset.push(rowByOffset)\n }\n }\n\n getTileByAxial (axial) {\n return (this.#tilesByAxial[axial.r] || [])[axial.q]\n }\n\n getTileByOffset (offset) {\n return this.#tilesByOffset[offset.r][offset.c]\n }\n\n getState () {\n const state = { type: this.type }\n\n // Tiles are defined by offset in the puzzle state\n state.tiles = this.#tilesByOffset.map((row) => row.map((tile) => tile?.getState() || null))\n const modifiers = this.modifiers.map((modifier) => modifier.getState())\n if (modifiers.length) {\n state.modifiers = modifiers\n }\n\n return state\n }\n\n getNeighboringTile (axial, direction) {\n return this.getTileByAxial(CubeCoordinates.neighbor(axial, getConvertedDirection(direction)))\n }\n\n removeModifier (modifier) {\n const index = this.modifiers.indexOf(modifier)\n if (index >= 0) {\n this.modifiers.splice(index, 1)\n }\n }\n\n teardown () {\n this.modifiers.forEach((modifier) => modifier.detach())\n Object.values(this.layers).forEach((layer) => layer.removeChildren())\n }\n\n #isOffsetRow (index) {\n return index % 2 === 0 ? this.type === Layout.Types.evenR : this.type === Layout.Types.oddR\n }\n\n static Types = Object.freeze({\n evenR: 'even-r',\n oddR: 'odd-r'\n })\n}\n","import { OffsetCoordinates } from './offset'\n\n/**\n * @see https://www.redblobgames.com/grids/hexagons/#coordinates\n */\nexport class CubeCoordinates {\n constructor (q, r, s) {\n if (!s) s = -q - r\n this.coordinates = [q, r, s]\n this.q = q\n this.r = r\n this.s = s\n }\n\n add (other) {\n return CubeCoordinates.add(this, other)\n }\n\n equals (other) {\n return this.q === other.q && this.r === other.r && this.s === other.s\n }\n\n isNeighbor (other) {\n return CubeCoordinates.isNeighbor(this, other)\n }\n\n neighbor (direction) {\n return CubeCoordinates.neighbor(this, direction)\n }\n\n toString () {\n return this.coordinates.join(',')\n }\n\n static add (a, b) {\n return new CubeCoordinates(a.q + b.q, a.r + b.r)\n }\n\n static direction (direction) {\n if (direction === 0) direction = 6\n // PaperJS uses a clockwise system, but the axial system is counter-clockwise.\n // So we flip the direction here by subtracting it from six\n return CubeCoordinates.directions[6 - direction]\n }\n\n static directions = [\n new CubeCoordinates(1, 0),\n new CubeCoordinates(1, -1),\n new CubeCoordinates(0, -1),\n new CubeCoordinates(-1, 0),\n new CubeCoordinates(-1, 1),\n new CubeCoordinates(0, 1)\n ]\n\n static isNeighbor (a, b) {\n return CubeCoordinates.directions\n .map((direction) => CubeCoordinates.add(a, direction))\n .some((neighbor) => neighbor.equals(b))\n }\n\n static neighbor (start, direction) {\n return CubeCoordinates.add(start, CubeCoordinates.direction(direction))\n }\n\n static toOffsetCoordinates (axial) {\n const c = axial.q + (axial.r - (axial.r & 1)) / 2\n return new OffsetCoordinates(c, axial.r)\n }\n}\n","import { CubeCoordinates } from './cube'\n\nexport class OffsetCoordinates {\n constructor (r, c) {\n this.coordinates = [r, c]\n this.r = r\n this.c = c\n }\n\n toString () {\n return this.coordinates.join(',')\n }\n\n static toAxialCoordinates (offset) {\n const q = offset.c - (offset.r - (offset.r & 1)) / 2\n return new CubeCoordinates(q, offset.r)\n }\n}\n","import { Color, Path, Point } from 'paper'\nimport { Item } from '../item'\nimport { itemFactory } from '../itemFactory'\nimport { emitEvent, getPointBetween } from '../util'\nimport { modifierFactory } from '../modifierFactory'\n\nexport class Tile extends Item {\n icons = []\n selected = false\n\n #ui\n\n constructor (coordinates, layout, parameters, state) {\n super(null, state, { locked: false })\n\n this.#ui = Tile.ui(layout, parameters, state, { coordinates, type: this.type })\n\n this.center = this.#ui.center\n this.coordinates = coordinates\n this.hexagon = this.#ui.hexagon\n this.parameters = parameters\n this.styles = this.#ui.styles\n\n this.group.addChildren([this.#ui.hexagon])\n\n // These need to be last, since they reference this\n this.items = (state.items || [])\n .map((state) => itemFactory(this, state))\n .filter((item) => item !== undefined)\n\n this.modifiers = (state.modifiers || [])\n .map((state) => modifierFactory(this, state))\n .filter((modifier) => modifier !== undefined)\n\n this.update()\n }\n\n addItem (item) {\n this.items.push(item)\n this.update()\n }\n\n addModifier (modifier) {\n this.modifiers.push(modifier)\n this.update()\n }\n\n afterModify () {\n this.setStyle(this.selected ? 'selected' : 'default')\n this.modifiers.forEach((modifier) => modifier.update({ disabled: false }))\n }\n\n beforeModify () {\n this.group.bringToFront()\n this.setStyle('edit')\n this.modifiers.forEach((modifier) => modifier.update({ disabled: true }))\n }\n\n getState () {\n const state = { type: this.type }\n\n // Filter out beams, which are not stored in state\n const items = this.items.filter((item) => item.type !== Item.Types.beam).map((item) => item.getState())\n if (items.length) {\n state.items = items\n }\n\n const modifiers = this.modifiers.map((modifier) => modifier.getState())\n if (modifiers.length) {\n state.modifiers = modifiers\n }\n\n // noinspection JSValidateTypes\n return state\n }\n\n onTap (event) {\n this.items.forEach((item) => item.onTap(event))\n }\n\n onDeselected (selectedTile) {\n this.selected = false\n this.#ui.hexagon.style = this.styles.default\n this.items.forEach((item) => item.onDeselected())\n\n emitEvent(Tile.Events.Deselected, { selectedTile, deselectedTile: this })\n }\n\n onSelected (deselectedTile) {\n console.debug(this.toString(), 'selected')\n this.selected = true\n this.group.bringToFront()\n this.#ui.hexagon.style = this.styles.selected\n this.items.forEach((item) => item.onSelected())\n }\n\n removeItem (item) {\n const index = this.items.indexOf(item)\n if (index >= 0) {\n this.items.splice(index, 1)\n this.update()\n }\n }\n\n removeModifier (modifier) {\n const index = this.modifiers.indexOf(modifier)\n if (index >= 0) {\n this.modifiers.splice(index, 1)\n this.update()\n }\n }\n\n setStyle (style) {\n this.hexagon.set(this.styles[style])\n }\n\n teardown () {\n this.modifiers.forEach((modifier) => modifier.detach())\n }\n\n toString () {\n return `[${this.type}:${this.coordinates.offset.toString()}]`\n }\n\n update () {\n super.update()\n\n // Update tile modifier icons\n this.icons = this.modifiers.map((modifier, index) => {\n const position = getPointBetween(this.#ui.hexagon.segments[index].point, this.center, (length) => length / 3)\n return modifier.getSymbol().place(position, { fillColor: modifier.immutable ? '#ccc' : '#333' })\n })\n\n // Everything after child 0 (hexagon) is an icon\n this.group.removeChildren(1)\n this.group.addChildren(this.icons)\n }\n\n static parameters (height) {\n const circumradius = height / 2\n const width = Math.sqrt(3) * circumradius\n const inradius = width / 2\n const offsetY = height * (3 / 4)\n\n return {\n circumradius,\n height,\n inradius,\n offsetY,\n width\n }\n }\n\n static ui (layout, parameters, configuration, data) {\n const center = new Point(\n layout.startingOffsetX + parameters.inradius + layout.column * parameters.width,\n layout.startingOffsetY + parameters.circumradius + layout.row * parameters.offsetY\n )\n\n const dashWidth = parameters.circumradius / 10\n\n const styles = Object.assign(\n {},\n Tile.Styles,\n {\n edit: Object.assign({ dashArray: [dashWidth, dashWidth] }, Tile.Styles.edit)\n },\n configuration.style || {}\n )\n\n const hexagon = new Path.RegularPolygon({\n center,\n closed: true,\n data,\n radius: parameters.circumradius,\n sides: 6,\n style: styles.default\n })\n\n return { center, hexagon, styles }\n }\n\n static Events = Object.freeze({\n Deselected: 'tile-deselected',\n Selected: 'tile-selected'\n })\n\n static MaxModifiers = 6\n\n static Styles = Object.freeze({\n // Need to use new Color here explicitly due to:\n // https://github.com/paperjs/paper.js/issues/2049\n default: {\n dashArray: [],\n fillColor: new Color('white'),\n strokeColor: new Color('#666'),\n strokeWidth: 1\n },\n edit: {\n strokeColor: new Color('black'),\n strokeWidth: 2\n },\n selected: {\n dashArray: [],\n strokeColor: new Color('black'),\n strokeWidth: 2\n }\n })\n}\n","import { capitalize, uniqueId } from './util'\nimport { CompoundPath, Group } from 'paper'\nimport { Stateful } from './stateful'\n\nexport class Item extends Stateful {\n center\n data\n group\n id\n immutable\n // Whether the item can be clicked on\n locked\n parent\n sortOrder = 100\n type\n\n constructor (parent, state, configuration) {\n // Retain ID from state if it exists, otherwise generate a new one\n state.id ??= uniqueId()\n\n super(state)\n\n this.id = state.id\n this.immutable ??= state?.immutable ?? false\n this.type = state?.type ?? configuration?.type\n if (this.type === undefined) {\n console.debug(`[Item:${this.id}]`, state)\n throw new Error('Item must have type defined')\n }\n\n this.data = Object.assign({ id: this.id, type: this.type }, configuration?.data || {})\n this.locked = configuration?.locked !== false\n\n if (parent) {\n this.center = parent.center\n }\n\n this.parent = parent\n this.group = new Group({ data: this.data, locked: this.locked })\n }\n\n equals (otherItem) {\n return otherItem instanceof Item && this.id === otherItem.id\n }\n\n getColorElements () {\n return []\n }\n\n getCompoundPath () {\n return new CompoundPath({\n // Must explicitly add insert: false for clone\n // https://github.com/paperjs/paper.js/issues/1721\n children: this.group.clone({ insert: false }).children\n .filter((child) => child.data.collidable !== false)\n })\n }\n\n getIndex () {\n return this.group.index\n }\n\n getLayer () {\n return this.group.parent\n }\n\n onTap () {}\n\n onCollision ({ collisionStep }) {\n return collisionStep\n }\n\n onDeselected () { }\n\n onInitialization () {}\n\n onSelected () {}\n\n remove () {\n this.group.remove()\n }\n\n toString () {\n return `[${this.type}:${this.id}]`\n }\n\n update () {}\n\n static immutable (item) {\n return item.immutable\n }\n\n static Types = Object.freeze(Object.fromEntries([\n 'beam',\n 'collision',\n 'filter',\n 'mask',\n 'portal',\n 'reflector',\n 'terminus',\n 'tile',\n 'wall'\n ].map((type) => [type, capitalize(type)])))\n}\n","import { emitEvent } from './util'\n\nexport class Stateful {\n #state = {}\n\n constructor (state) {\n this.setState(state)\n }\n\n getState () {\n return structuredClone(this.#state)\n }\n\n setState (state) {\n this.#state = structuredClone(state)\n }\n\n updateState (updater, dispatchEvent = false) {\n updater(this.#state)\n\n if (dispatchEvent) {\n // This will cause puzzle cache to update\n emitEvent(Stateful.Events.Update, { object: this })\n }\n\n return this.getState()\n }\n\n static Events = Object.freeze({\n Update: 'state-update'\n })\n}\n","import { Filter } from './items/filter'\nimport { Portal } from './items/portal'\nimport { Terminus } from './items/terminus'\nimport { Reflector } from './items/reflector'\nimport { Wall } from './items/wall'\nimport { Item } from './item'\n\nexport function itemFactory (parent, state, configuration) {\n let item\n\n switch (state.type) {\n case Item.Types.filter:\n item = new Filter(...arguments)\n break\n case Item.Types.portal:\n item = new Portal(...arguments)\n break\n case Item.Types.terminus:\n item = new Terminus(...arguments)\n break\n case Item.Types.reflector:\n item = new Reflector(...arguments)\n break\n case Item.Types.wall:\n item = new Wall(...arguments)\n break\n default:\n console.debug('itemFactory', state)\n throw new Error(`Cannot create item with unknown type: ${state.type}`)\n }\n\n if (item) {\n item.onInitialization()\n }\n\n return item\n}\n","import chroma from 'chroma-js'\nimport { Item } from '../item'\nimport { Color, Path } from 'paper'\nimport { movable } from '../modifiers/move'\nimport { getColorElement } from '../util'\nimport { StepState } from '../step'\n\nexport class Filter extends movable(Item) {\n constructor (tile, { color }) {\n super(...arguments)\n\n this.color = chroma.average(Array.isArray(color) ? color : [color]).hex()\n\n const fillColor = new Color(color)\n fillColor.alpha = 0.25\n\n // TODO: update to something else? prism?\n const item = new Path.RegularPolygon({\n center: tile.center,\n closed: true,\n radius: tile.parameters.circumradius / 3,\n sides: 3,\n style: {\n fillColor,\n strokeColor: color,\n strokeWidth: 2\n }\n })\n\n this.group.addChild(item)\n }\n\n getColorElements () {\n return [getColorElement(this.color)]\n }\n\n onCollision ({ currentStep, nextStep }) {\n // The beam will collide with the filter twice, on entry and exit, so ignore the first one, but track in state\n return nextStep.copy(\n currentStep.state.has(StepState.Filter)\n ? { colors: nextStep.colors.concat([this.color]) }\n : { state: new StepState({ insertAbove: this }, new StepState.Filter()) }\n )\n }\n}\n","import { Modifier } from '../modifier'\nimport { Puzzle } from '../puzzle'\nimport { emitEvent } from '../util'\nimport { Item } from '../item'\nimport { Icons } from '../icons'\n\nexport class Move extends Modifier {\n #mask\n\n name = Icons.Move.name\n title = 'Move'\n\n onTap (event) {\n super.onTap(event)\n\n const items = this.tile.items.filter(Move.movable)\n if (this.#mask || !items.length) {\n return\n }\n\n const mask = new Puzzle.Mask({\n id: this.toString(),\n onTap: this.#maskOnTap.bind(this),\n onMask: () => this.tile.beforeModify(),\n onUnmask: () => this.tile.afterModify(),\n tileFilter: this.tileFilter.bind(this)\n })\n\n this.#mask = mask\n\n emitEvent(Puzzle.Events.Mask, { mask })\n }\n\n moveFilter (tile) {\n // Filter out tiles that contain no movable items\n return super.moveFilter(tile) || !tile.items.some(Move.movable)\n }\n\n moveItems (tile) {\n const items = this.tile.items.filter(Move.movable)\n items.forEach((item) => item.move(tile))\n return {\n moved: [Move.data(this.tile, tile, items)],\n tiles: [this.tile, tile]\n }\n }\n\n tileFilter (tile) {\n // Never mask current tile\n return !tile.equals(this.tile) && (\n // Mask immutable tiles\n tile.modifiers.some(Modifier.immutable) ||\n // Mask tiles that contain any items we don't ignore\n tile.items.some((item) => !Move.ignoreItemTypes.includes(item.type))\n )\n }\n\n #maskOnTap (puzzle, tile) {\n puzzle.unmask()\n\n if (tile) {\n const data = this.moveItems(tile)\n\n puzzle.updateSelectedTile(tile)\n\n this.dispatchEvent(Modifier.Events.Invoked, data)\n }\n\n this.#mask = undefined\n }\n\n static data (fromTile, toTile, items) {\n return { fromTile, toTile, items }\n }\n\n static movable (item) {\n return item.movable\n }\n\n static ignoreItemTypes = [Item.Types.beam, Item.Types.wall]\n}\n\n/**\n * Move an item from one tile to another.\n * @param SuperClass\n * @returns {{new(*, *): MovableItem, movable: boolean, prototype: MovableItem}}\n */\nexport const movable = (SuperClass) => class MovableItem extends SuperClass {\n movable\n\n constructor (parent, state) {\n super(...arguments)\n this.movable = !this.immutable && state.movable !== false\n }\n\n move (tile) {\n this.parent.removeItem(this)\n\n // Update the position of the item group based on the vector of the tile we are moving to\n const vector = this.parent.center.subtract(tile.center)\n this.group.position = this.group.position.subtract(vector)\n\n // Update tile reference\n this.parent = tile\n this.parent.addItem(this)\n this.center = this.parent.center\n\n this.onMove()\n }\n\n onMove () {}\n}\n","import { capitalize, emitEvent } from './util'\nimport { Stateful } from './stateful'\nimport { EventListeners } from './eventListeners'\nimport { Interact } from './interact'\nimport { Item } from './item'\nimport { Icons } from './icons'\nimport { Tile } from './items/tile'\n\nconst modifiers = document.getElementById('modifiers')\n\nlet uniqueId = 0\n\nexport class Modifier extends Stateful {\n #container\n #down = false\n #eventListener = new EventListeners({ context: this })\n #timeoutId\n\n configuration\n element\n disabled = false\n id = uniqueId++\n immutable = false\n name\n parent\n tile\n title\n type\n\n constructor (tile, state) {\n super(state)\n\n this.parent = tile\n this.type = state.type\n }\n\n /**\n * Attach the modifier to the DOM and add listeners.\n */\n attach (tile) {\n this.tile = tile\n\n // Disable by default if: modifier is immutable\n this.disabled = this.immutable ||\n // The tile contains an immutable modifier\n this.tile?.modifiers.some((modifier) => modifier.type === Modifier.Types.immutable) ||\n // The tile has no interactable items\n !this.tile?.items.some((item) => item.type !== Item.Types.beam) ||\n (\n // The tile being attached to is not this modifier's parent\n !this.tile?.equals(this.parent) && (\n // The tile contains another modifier of this type already\n this.tile.modifiers.some((modifier) => modifier.type === this.type) ||\n // The tile already contains the max number of modifiers\n this.tile?.modifiers.length === Tile.MaxModifiers\n )\n )\n\n const li = this.#container = document.createElement('li')\n\n li.classList.add(['modifier', this.type.toLowerCase()].join('-'))\n li.dataset.id = this.id.toString()\n\n const span = this.element = document.createElement('span')\n\n span.classList.add('material-symbols-outlined', 'fill')\n\n li.append(span)\n\n this.update()\n\n this.#eventListener.add([\n { type: 'pointerdown', handler: this.onPointerDown },\n { type: 'pointerleave', handler: this.onPointerUp },\n { type: 'pointerup', handler: this.onPointerUp }\n ], { element: li })\n\n modifiers.append(li)\n }\n\n /**\n * Remove listeners and the modifier from the DOM.\n */\n detach () {\n if (!this.#container) {\n return\n }\n\n this.#eventListener.remove()\n this.#container.remove()\n\n this.element = undefined\n this.#container = undefined\n }\n\n dispatchEvent (event, detail) {\n emitEvent(event, Object.assign({}, detail || {}, { modifier: this, tile: this.tile }))\n }\n\n equals (other) {\n return other instanceof Modifier && this.id === other.id\n }\n\n getSymbol () {\n return Icons.ByName[this.name]\n }\n\n move (tile) {\n this.parent?.removeModifier(this)\n this.parent = tile\n tile?.addModifier(this)\n }\n\n moveFilter (tile) {\n // Mask immutable tiles\n return tile.modifiers.some(Modifier.immutable) ||\n // Mask tiles that only contain immutable items\n tile.items.every(Item.immutable)\n }\n\n onPointerDown (event) {\n if (event.button !== 0) {\n // Support toggle on non-primary pointer button\n this.onToggle(event)\n } else {\n this.#down = true\n }\n }\n\n onPointerUp (event) {\n clearTimeout(this.#timeoutId)\n\n if (this.#down && !this.disabled) {\n switch (event.type) {\n case 'pointerleave': {\n // Support swiping up on pointer device\n this.onToggle(event)\n break\n }\n case 'pointerup': {\n this.onTap(event)\n break\n }\n }\n }\n\n this.#down = false\n }\n\n onTap () {}\n\n onToggle () {\n Interact.vibrate()\n }\n\n toString () {\n return [this.name, this.id].join(':')\n }\n\n update (options) {\n options = Object.assign(\n { disabled: this.disabled, name: this.name, title: this.title },\n options || {}\n )\n\n if (!this.immutable) {\n this.disabled = options.disabled\n }\n\n this.name = options.name\n this.title = options.title\n\n if (this.#container) {\n this.#container.classList.toggle('disabled', this.disabled)\n this.element.textContent = this.name\n this.element.title = this.title\n }\n }\n\n static immutable (modifier) {\n return modifier.type === Modifier.Types.immutable\n }\n\n static Events = Object.freeze({\n Invoked: 'modifier-invoked',\n Moved: 'modifier-moved'\n })\n\n static Types = Object.freeze(Object.fromEntries([\n 'immutable',\n 'lock',\n 'move',\n 'rotate',\n 'swap',\n 'toggle'\n ].map((type) => [type, capitalize(type)])))\n}\n","export class EventListeners {\n #events = []\n #options = { element: document }\n\n constructor (options = {}) {\n this.#options = Object.assign(this.#options, options)\n }\n\n add (events, options = {}) {\n this.#events = this.#events.concat(events.map((event) => {\n event = Object.assign({}, this.#options, options, event)\n if (!event.type) {\n throw new Error('Event type is required')\n }\n if (event.context) {\n event.handler = event.handler.bind(event.context)\n }\n event.element.addEventListener(event.type, event.handler, event.options)\n return event\n }))\n }\n\n remove () {\n this.#events.forEach((event) => event.element.removeEventListener(event.type, event.handler))\n this.#events = []\n }\n}\n","import paper, { Point } from 'paper'\nimport { Cache } from './cache'\nimport { EventListeners } from './eventListeners'\n\nconst navigator = window.navigator\n\nexport class Interact {\n #bounds\n #cache = new Cache(Object.values(Interact.CacheKeys))\n #element\n #eventListener = new EventListeners({ context: this })\n #offset\n\n constructor (element) {\n this.#bounds = element.getBoundingClientRect()\n this.#element = element\n this.#offset = new Point(this.#bounds.left, this.#bounds.top)\n this.#eventListener.add([\n { type: 'pointercancel', handler: this.onPointerUp },\n { type: 'pointerdown', handler: this.onPointerDown },\n { type: 'pointerleave', handler: this.onPointerUp },\n { type: 'pointermove', handler: this.onPointerMove },\n { type: 'pointerout', handler: this.onPointerUp },\n { type: 'pointerup', handler: this.onPointerUp },\n { type: 'wheel', handler: this.onMouseWheel, options: { passive: false } }\n ], { element })\n }\n\n onMouseWheel (event) {\n event.preventDefault()\n this.#zoom(new Point(event.offsetX, event.offsetY), event.deltaY, 1.05)\n }\n\n onPan (event) {\n const point = paper.view.viewToProject(Interact.point(event))\n const pan = this.#getGesture(Interact.GestureKeys.Pan)\n\n if (!pan) {\n this.#setGesture(Interact.GestureKeys.Pan, { from: point })\n return\n }\n\n const center = pan.from.subtract(point).add(paper.view.center)\n\n // Allow a little wiggle room to prevent panning on tap\n if (paper.view.center.subtract(center).length > 1) {\n if (!document.body.classList.contains('grab')) {\n document.body.classList.add('grab')\n }\n\n // Center on the cursor\n paper.view.center = center\n }\n }\n\n onPinch (events) {\n const pointer0 = events[0]\n const pointer1 = events[1]\n\n const point0 = Interact.point(pointer0)\n const point1 = Interact.point(pointer1)\n const distance = point0.getDistance(point1)\n\n const pinch = this.#getGesture(Interact.GestureKeys.Pinch)\n if (!pinch) {\n this.#setGesture(Interact.GestureKeys.Pinch, { distance })\n return\n }\n\n const center = point0.add(point1).divide(2).subtract(this.#offset)\n const scale = distance / pinch.distance\n const delta = (pinch.distance - distance) * scale\n\n this.#zoom(center, delta, 1.01)\n\n pinch.distance = distance\n }\n\n onPointerDown (event) {\n this.#cache.get(Interact.CacheKeys.Down).set(event.pointerId, event)\n }\n\n onPointerMove (event) {\n const down = this.#cache.get(Interact.CacheKeys.Down).get(event.pointerId)\n if (!down) {\n // Ignore events until there is a pointer down event\n return\n }\n\n // For some reason pointermove fires on mobile even if there was no movement\n const diff = Interact.point(event).subtract(Interact.point(down)).length\n if (diff > 1) {\n this.#cache.get(Interact.CacheKeys.Move).set(event.pointerId, event)\n\n const events = this.#cache.get(Interact.CacheKeys.Move).values()\n if (events.length === 2) {\n this.onPinch(events)\n } else {\n this.onPan(event)\n }\n }\n }\n\n onPointerUp (event) {\n const down = this.#cache.get(Interact.CacheKeys.Down).get(event.pointerId)\n if (!down) {\n return\n }\n\n if (\n this.#cache.length(Interact.CacheKeys.Down) === 1 &&\n !this.#cache.get(Interact.CacheKeys.Move).get(event.pointerId)\n ) {\n this.onTap(down)\n }\n\n document.body.classList.remove('grab')\n\n this.#cache.get(Interact.CacheKeys.Down).unset(event.pointerId)\n this.#cache.get(Interact.CacheKeys.Move).unset(event.pointerId)\n this.#cache.get(Interact.CacheKeys.Gesture).unset(Interact.GestureKeys.Pan)\n\n if (this.#cache.length(Interact.CacheKeys.Move) < 2) {\n this.#cache.get(Interact.CacheKeys.Gesture).unset(Interact.GestureKeys.Pinch)\n }\n }\n\n onTap (event) {\n const point = paper.view.viewToProject(Interact.point(event).subtract(this.#offset))\n this.#element.dispatchEvent(new CustomEvent(Interact.GestureKeys.Tap, { detail: { event, point } }))\n }\n\n #getGesture (key) {\n return this.#cache.get(Interact.CacheKeys.Gesture).get(key)\n }\n\n #setGesture (key, value) {\n this.#cache.get(Interact.CacheKeys.Gesture).set(key, value)\n }\n\n #zoom (point, delta, factor) {\n const zoom = Math.max(\n Math.min(\n delta < 0 ? paper.view.zoom * factor : paper.view.zoom / factor,\n Interact.maxZoom\n ),\n Interact.minZoom\n )\n\n // Convert the touch point from the view coordinate space to the project coordinate space\n const touchPoint = paper.view.viewToProject(point)\n const touchOffset = touchPoint.subtract(paper.view.center)\n\n // Adjust center towards cursor location\n const zoomOffset = touchPoint\n .subtract(touchOffset.multiply(paper.view.zoom / zoom))\n .subtract(paper.view.center)\n\n paper.view.zoom = zoom\n paper.view.center = paper.view.center.add(zoomOffset)\n }\n\n static point (event) {\n return new Point(event.clientX, event.clientY)\n }\n\n static vibrate (pattern = 25) {\n if (Interact.canVibrate) {\n navigator.vibrate(pattern)\n }\n }\n\n // WebKit does not support vibration\n static canVibrate = typeof navigator.vibrate === 'function'\n\n static CacheKeys = Object.freeze({\n Down: 'down',\n Move: 'move',\n Gesture: 'gesture'\n })\n\n static GestureKeys = Object.freeze({\n Pan: 'pan',\n Pinch: 'pinch',\n Tap: 'tap'\n })\n\n static maxZoom = 2\n static minZoom = 0.5\n}\n","export class Cache {\n #cache = {}\n #hasKeys\n #keys\n\n constructor (keys = []) {\n this.#keys = keys\n this.#hasKeys = keys.length !== 0\n\n keys.forEach((key) => { this.#cache[key] = new Cache() })\n }\n\n set (key, item) {\n if (this.#hasKeys && !this.#keys.includes(key)) {\n throw new Error(`Invalid key: ${key}`)\n }\n\n this.#cache[key] = item\n }\n\n get (key) {\n return key === undefined ? this.#cache : this.#cache[key]\n }\n\n keys (key) {\n return Object.keys(this.#get(key))\n }\n\n length (key) {\n return this.keys(key).length\n }\n\n unset (key) {\n delete this.#cache[key]\n }\n\n values (key) {\n return Object.values(this.#get(key))\n }\n\n #get (key) {\n const value = this.get(key)\n return value instanceof Cache ? value.get() : value\n }\n}\n","import { Symbol } from './symbol'\n\nexport class Icons {\n static Immutable = new Symbol('icon-immutable', 'block')\n static Lock = new Symbol('icon-lock', 'lock')\n static Move = new Symbol('icon-move', 'drag_pan')\n static RotateLeft = new Symbol('icon-rotate-left', 'rotate_left')\n static RotateRight = new Symbol('icon-rotate-right', 'rotate_right')\n static Swap = new Symbol('icon-swap', 'swap_horiz')\n static ToggleOff = new Symbol('icon-toggle-off', 'toggle_off')\n static ToggleOn = new Symbol('icon-toggle-on', 'toggle_on')\n\n static All = Object.freeze([\n Icons.Immutable,\n Icons.Lock,\n Icons.Move,\n Icons.RotateLeft,\n Icons.RotateRight,\n Icons.Swap,\n Icons.ToggleOff,\n Icons.ToggleOn\n ])\n\n static ByName = Object.freeze(Object.fromEntries(Icons.All.map((icon) => [icon.name, icon])))\n}\n","import paper, { SymbolDefinition } from 'paper'\n\nexport class Symbol {\n definition\n id\n name\n\n constructor (id, name) {\n this.id = id\n this.name = name\n }\n\n place (position, settings) {\n if (!this.definition) {\n const element = document.getElementById(this.id)\n const item = paper.project.importSVG(element)\n // By default, symbols will be excluded from beam collisions\n item.data.collidable = false\n // By default, symbols cannot be clicked on\n item.locked = true\n this.definition = new SymbolDefinition(item)\n }\n\n if (settings) {\n this.definition.item.set(settings)\n }\n\n return this.definition.place(position)\n }\n}\n","import chroma from 'chroma-js'\nimport { deepEqual, noop } from './util'\n\nexport class Step {\n color\n colors\n connected\n direction\n done\n insertAbove\n onAdd\n onRemove\n point\n pathIndex\n segmentIndex\n state\n tile\n\n constructor (\n index,\n tile,\n colors,\n direction,\n point,\n pathIndex,\n segmentIndex,\n connected,\n insertAbove,\n done,\n state,\n onAdd,\n onRemove\n ) {\n if (state && !(state instanceof StepState)) {\n throw new Error('Step.state must be instance of StepState')\n }\n\n this.colors = colors ? (Array.isArray(colors) ? Array.from(colors) : [colors]) : []\n\n if (this.colors.length) {\n this.color = chroma.average(this.colors).hex()\n }\n\n this.connected = connected ?? true\n this.direction = direction\n this.done = done ?? false\n this.index = index\n this.insertAbove = insertAbove\n // The onAdd and onRemove methods should be idempotent!\n this.onAdd = onAdd ?? noop\n this.onRemove = onRemove ?? noop\n this.point = point\n this.pathIndex = pathIndex\n this.segmentIndex = segmentIndex\n this.state = state ?? new StepState()\n this.tile = tile\n }\n\n copy (settings) {\n return new Step(\n settings.index ?? this.index,\n settings.tile ?? this.tile,\n settings.colors ?? settings.color ?? this.colors,\n settings.direction ?? this.direction,\n settings.point ?? this.point,\n settings.pathIndex ?? this.pathIndex,\n settings.segmentIndex ?? this.segmentIndex,\n settings.connected ?? this.connected,\n settings.insertAbove ?? this.insertAbove,\n settings.done ?? this.done,\n settings.state ?? new StepState(this.state),\n settings.onAdd ?? this.onAdd,\n settings.onRemove ?? this.onRemove\n )\n }\n\n equals (step) {\n return deepEqual(this, step)\n }\n}\n\nexport class StepState {\n #cache = {}\n\n constructor () {\n const settings = Object.assign({}, ...arguments)\n Object.keys(settings).forEach((key) => { this[key] = settings[key] })\n }\n\n copy (...settings) {\n return new StepState(...([this].concat(settings)))\n }\n\n get (Class) {\n return this.#keys(Class).map((key) => this[key]).find((value) => value)\n }\n\n has (Class) {\n return this.#keys(Class).some((key) => this[key])\n }\n\n #keys (Class) {\n return (this.#cache[Class.name] ??= Object.keys(Reflect.construct(Class, [])))\n }\n\n static Collision = class StepCollision {\n collision\n\n // Item is optional, in the case of an out-of-bounds collision for example\n constructor (collision) {\n this.collision = collision\n }\n }\n\n static Filter = class StepFilter {\n filter = {}\n }\n\n static MergeInto = class StepMergeInto {\n mergeInto\n\n constructor (beam) {\n this.mergeInto = { beam }\n }\n }\n\n static MergeWith = class StepMergeWith {\n mergeWith\n\n constructor (mergeWith) {\n this.mergeWith = mergeWith\n }\n }\n\n static Portal = class StepPortal {\n portal\n\n constructor (entryPortal, exitPortal) {\n this.portal = { entryPortal, exitPortal }\n }\n }\n\n static Reflector = class StepReflector {\n reflector\n\n constructor (item) {\n this.reflector = { item }\n }\n }\n\n static TerminusConnection = class StepTerminusConnection {\n terminusConnection\n\n constructor (terminus, opening) {\n this.terminusConnection = { terminus, opening }\n }\n }\n}\n","import { movable } from '../modifiers/move'\nimport { Item } from '../item'\nimport { Path, Point } from 'paper'\nimport { rotatable } from '../modifiers/rotate'\nimport { StepState } from '../step'\nimport { Puzzle } from '../puzzle'\nimport { coalesce, getOppositeDirection } from '../util'\n\nexport class Portal extends movable(rotatable(Item)) {\n #directions = {}\n\n constructor (tile, state) {\n // Only allow rotation if direction is defined\n super(tile, state, { rotatable: state.direction !== undefined })\n\n this.direction = state.direction\n\n const height = tile.parameters.circumradius / 3\n const width = tile.parameters.circumradius / 5\n\n const style = {\n fillColor: 'black',\n strokeColor: 'white',\n strokeWidth: 2\n }\n\n const children = []\n\n // TODO: consider adding an item with a gradient that fades to black at the center of the ellipse\n // This will help distinguish visually that beams are entering/exiting a portal when there are multiple\n const ellipse = new Path.Ellipse({\n center: tile.center,\n radius: [width, height],\n style\n })\n\n children.push(ellipse)\n\n const ring = new Path.Ellipse({\n center: tile.center,\n radius: [width - style.strokeWidth * 2, height - style.strokeWidth * 2],\n style\n })\n\n children.push(ring)\n\n if (this.direction !== undefined) {\n const pointer = new Path({\n closed: true,\n opacity: 0.25,\n segments: [\n tile.center.add(new Point(0, height)),\n tile.center.subtract(new Point(0, height)),\n tile.center.subtract(new Point(width * 2.5, 0))\n ],\n style: {\n fillColor: 'black'\n }\n }).subtract(ellipse)\n\n children.unshift(pointer)\n }\n\n this.group.addChildren(children)\n\n if (this.direction !== undefined) {\n // Properly align items with hexagonal rotation\n this.rotateGroup(1)\n }\n }\n\n get (direction) {\n return this.#directions[direction]\n }\n\n onCollision ({ beam, currentStep, nextStep, puzzle }) {\n const portalState = currentStep.state.get(StepState.Portal)\n if (!portalState) {\n const entryDirection = getOppositeDirection(nextStep.direction)\n const existing = coalesce(this.get(entryDirection), nextStep)\n if (existing.index < nextStep.index) {\n // Checking stepIndex to exclude cases where we are doing a re-evaluation of history.\n console.debug(\n this.toString(),\n 'ignoring beam trying to enter through a direction which is already occupied:',\n entryDirection\n )\n return\n }\n\n // Handle entry collision\n return nextStep.copy({\n insertAbove: this,\n onAdd: (step) => this.update(entryDirection, step),\n onRemove: () => this.update(entryDirection),\n state: nextStep.state.copy(new StepState.Portal(this))\n })\n } else if (portalState.exitPortal === this) {\n // Handle exit collision\n return nextStep.copy({ insertAbove: this })\n }\n\n const exitPortals = this.#getExitPortals(puzzle, beam, nextStep)\n\n if (exitPortals.length === 0) {\n console.debug(this.toString(), 'no valid exit portals found')\n // This will cause the beam to stop\n return currentStep\n } else if (exitPortals.length === 1) {\n const exitPortal = exitPortals[0]\n console.debug(this.toString(), 'single exit portal matched:', exitPortal)\n // Since no user choice was made, don't store this decision as a delta (move)\n return this.#getStep(beam, nextStep, exitPortal, false)\n } else {\n // Multiple matching destinations. User will need to pick one manually.\n console.debug(this.toString(), 'found multiple valid exit portals:', exitPortals)\n // Cache exit portals for use in mask\n const data = { exitPortals }\n const mask = new Puzzle.Mask(\n {\n id: this.id,\n onMask: () => currentStep.tile.beforeModify(),\n onTap: (puzzle, tile) => {\n const exitPortal = data.exitPortals.find((portal) => portal.parent === tile)\n if (exitPortal) {\n beam.addStep(this.#getStep(beam, nextStep, exitPortal))\n puzzle.unmask()\n }\n },\n onUnmask: () => currentStep.tile.afterModify(),\n onUpdate: () => {\n // State may have changed, fetch portals again\n const exitPortals = this.#getExitPortals(puzzle, beam, nextStep)\n if (exitPortals.length === 0) {\n console.debug(this.toString(), 'mask onUpdate: no valid exit portals found')\n // Cancel the mask\n // This will also cause the beam to stop\n return false\n } else if (exitPortals.length === 1) {\n const exitPortal = exitPortals[0]\n console.debug(this.toString(), 'mask onUpdate: single portal matched:', exitPortal)\n beam.addStep(this.#getStep(beam, nextStep, exitPortal))\n // Cancel the mask\n return false\n } else {\n console.debug(this.toString(), 'mask onUpdate: exit portals:', exitPortals)\n data.exitPortals = exitPortals\n }\n },\n tileFilter: (tile) => {\n // Mask any invalid tiles. Exclude the entry portal tile\n return !(tile.equals(this.parent) ||\n data.exitPortals.map((portal) => portal.parent).some((validTile) => validTile.equals(tile)))\n }\n }\n )\n\n puzzle.updateSelectedTile(null)\n puzzle.mask(mask)\n\n // This will cause the beam to stop\n return currentStep\n }\n }\n\n onMove () {\n super.onMove()\n\n // Invalidate directions cache\n this.#directions = {}\n }\n\n update (direction, data) {\n this.#directions[direction] = data\n }\n\n #getExitPortals (puzzle, beam, nextStep) {\n const exitPortals = puzzle.getItems().filter((item) =>\n // Is a portal\n item.type === Item.Types.portal &&\n // But not the entry portal\n !item.equals(this) &&\n // There is no other beam occupying the portal at the exit direction\n !item.get(Portal.getExitDirection(nextStep, this, item)) && (\n // Entry portals without defined direction can exit from any other portal.\n this.getDirection() === undefined ||\n // Exit portals without defined direction can be used by any entry portal.\n item.getDirection() === undefined ||\n // Exit portals with a defined direction can only be used by entry portals with the same defined direction.\n item.getDirection() === this.getDirection()\n )\n )\n\n if (exitPortals.length > 1) {\n // Check for existing exitPortalId in beam state for this step\n const exitPortalId = beam.getState().steps?.[nextStep.index]?.[this.id]\n if (exitPortalId !== undefined) {\n console.debug(this.toString(), `found exitPortalId ${exitPortalId} in beam step ${nextStep.index} state`)\n const existing = exitPortals.find((item) => item.id === exitPortalId)\n if (existing) {\n return [existing]\n }\n }\n }\n\n return exitPortals\n }\n\n #getStep (beam, nextStep, exitPortal, keepDelta = true) {\n const direction = Portal.getExitDirection(nextStep, this, exitPortal)\n return nextStep.copy({\n connected: false,\n direction,\n insertAbove: exitPortal,\n onAdd: (step) => {\n exitPortal.update(direction, step)\n // Store this decision in beam state and generate a matching delta\n beam.updateState((state) => ((state.steps ??= {})[step.index] = { [this.id]: exitPortal.id }), keepDelta)\n },\n onRemove: (step) => {\n // Remove any associated beam state, but don't generate a delta.\n // If the step is being removed, a delta for that action was most likely created elsewhere already.\n beam.updateState((state) => { delete state.steps[step.index] }, false)\n exitPortal.update(direction)\n },\n point: exitPortal.parent.center,\n state: nextStep.state.copy(new StepState.Portal(this, exitPortal)),\n tile: exitPortal.parent\n })\n }\n\n static getExitDirection (step, entryPortal, exitPortal) {\n // Direction precedence is as follows:\n // - direction defined by exit portal\n // - direction defined by entry portal\n // - direction beam was traveling when it reached the entry portal\n return exitPortal.getDirection() ?? entryPortal.getDirection() ?? step.direction\n }\n}\n","import { Modifier } from '../modifier'\nimport { addDirection, coalesce } from '../util'\nimport { Icons } from '../icons'\n\nexport class Rotate extends Modifier {\n clockwise\n title = 'Rotate'\n\n constructor (tile, state, configuration = {}) {\n super(...arguments)\n\n this.clockwise = coalesce(true, state.clockwise, configuration.clockwise)\n this.name = Rotate.Names[this.clockwise ? 'right' : 'left']\n }\n\n moveFilter (tile) {\n // Filter out tiles that contain no rotatable items\n return super.moveFilter(tile) || !tile.items.some((item) => item.rotatable)\n }\n\n onTap (event) {\n super.onTap(event)\n\n const items = this.tile.items.filter((item) => item.rotatable)\n items.forEach((item) => item.rotate(this.clockwise))\n\n this.dispatchEvent(Modifier.Events.Invoked, { items })\n }\n\n onToggle () {\n super.onToggle()\n\n this.clockwise = !this.clockwise\n this.updateState((state) => { state.clockwise = this.clockwise })\n this.update({ name: Rotate.Names[this.clockwise ? 'right' : 'left'] })\n }\n\n static Names = Object.freeze({ left: Icons.RotateLeft.name, right: Icons.RotateRight.name })\n}\n\n/**\n * A mixin for Item which provides rotate behaviors.\n */\nexport const rotatable = (SuperClass) => class RotatableItem extends SuperClass {\n direction\n\n rotatable\n rotation = 0\n rotationDegrees\n\n constructor (parent, state, configuration = {}) {\n super(...arguments)\n\n this.direction = coalesce(state.direction, configuration.direction)\n this.rotatable = !this.immutable && coalesce(true, state.rotatable, configuration.rotatable)\n this.rotationDegrees = coalesce(60, state.rotationDegrees, configuration.rotationDegrees)\n this.rotation = coalesce(0, state.rotation, configuration.rotation) % this.getMaxRotation()\n }\n\n // Get the direction of an item with rotation factored in\n getDirection (direction) {\n direction = direction ?? this.direction\n return direction === undefined\n ? direction\n : addDirection(direction, this.rotation)\n }\n\n getMaxRotation () {\n return (360 / this.rotationDegrees)\n }\n\n onInitialization () {\n super.onInitialization()\n\n this.rotateGroup(this.rotation)\n\n if (this.direction !== undefined) {\n // Direction will not affect initial rotation of item\n this.rotateGroup(this.direction)\n }\n }\n\n rotateGroup (rotation) {\n this.group.rotate(rotation * this.rotationDegrees, this.center)\n }\n\n rotate (clockwise) {\n if (!this.rotatable) {\n return\n }\n\n const rotation = clockwise === false ? -1 : 1\n\n this.rotation = (rotation + this.rotation) % this.getMaxRotation()\n\n this.updateState((state) => { state.rotation = this.rotation })\n this.rotateGroup(rotation)\n }\n}\n","import chroma from 'chroma-js'\nimport { Path } from 'paper'\nimport { toggleable } from '../modifiers/toggle'\nimport { Item } from '../item'\nimport { rotatable } from '../modifiers/rotate'\nimport { getColorElements, emitEvent, getOppositeDirection, addDirection, subtractDirection } from '../util'\nimport { Beam } from './beam'\nimport { movable } from '../modifiers/move'\nimport { StepState } from '../step'\n\nexport class Terminus extends movable(rotatable(toggleable(Item))) {\n sortOrder = 2\n\n #ui\n\n constructor (tile, state) {\n super(...arguments)\n\n const colors = state.openings.filter((opening) => opening?.color)\n .flatMap((opening) => Array.isArray(opening.color) ? opening.color : [opening.color])\n const color = chroma.average(\n colors.length ? colors : (Array.isArray(state.color) ? state.color : [state.color])\n ).hex()\n\n const openings = state.openings.map((opening, direction) =>\n opening\n ? new Terminus.#Opening(\n opening.color ?? color,\n direction,\n opening.connected,\n opening.on ?? state.on\n )\n : opening\n ).filter((opening) => opening)\n\n this.#ui = Terminus.ui(tile, color, openings)\n\n this.group.addChildren([...this.#ui.openings, this.#ui.terminus])\n\n this.color = color\n this.openings = openings\n this.radius = this.#ui.radius\n this.toggled = openings.some((opening) => opening.on)\n\n // Needs to be last since it references 'this'\n this.beams = openings.map((opening) => new Beam(this, state.openings[opening.direction], opening))\n\n this.update()\n }\n\n getColorElements () {\n return getColorElements(this.openings.map((opening) => opening.color))\n }\n\n getOpening (direction) {\n return this.openings.find((opening) => opening.direction === direction)\n }\n\n onMove () {\n this.beams.forEach((beam) => beam.remove())\n }\n\n onCollision ({ beam, collisionStep, currentStep, existingNextStep, nextStep }) {\n console.debug(this.toString(), 'collision', beam.toString())\n\n // Colliding with the starting terminus, ignore\n if (beam.parent === this && beam.startDirection() === nextStep.direction) {\n console.debug(beam.toString(), 'ignoring starting terminus collision')\n return\n }\n\n const directionFrom = getOppositeDirection(currentStep.direction)\n\n // Take rotation of terminus into account\n const opening = this.openings.find((opening) => this.getDirection(opening.direction) === directionFrom)\n if (\n opening && opening.color === nextStep.color && (\n !opening.on ||\n // When re-evaluating history of an already connected opening\n (opening.connected && existingNextStep?.state.get(StepState.TerminusConnection)?.terminus.equals(this))\n )\n ) {\n // Beam has connected to a valid opening\n console.debug(beam.toString(), 'terminus connection', this.toString(), opening)\n return nextStep.copy({\n done: true,\n onAdd: () => {\n nextStep.onAdd()\n this.onConnection(opening.direction)\n },\n onRemove: () => {\n nextStep.onRemove()\n this.onDisconnection(opening.direction)\n },\n state: nextStep.state.copy(new StepState.TerminusConnection(this, opening))\n })\n }\n\n // Otherwise, treat this as a collision\n return collisionStep\n }\n\n onConnection (direction) {\n const opening = this.getOpening(direction)\n\n if (opening.connected) {\n // Already connected\n return\n }\n\n opening.connect()\n this.update()\n\n emitEvent(Terminus.Events.Connection, { terminus: this, opening })\n }\n\n onDisconnection (direction) {\n const opening = this.getOpening(direction)\n\n if (!opening.connected) {\n // Already disconnected\n return\n }\n\n opening.disconnect()\n this.update()\n\n emitEvent(Terminus.Events.Disconnection, { terminus: this, opening })\n }\n\n onToggle () {\n this.updateState((state) => {\n this.openings.filter((opening) => !opening.connected).forEach((opening) => {\n opening.toggle()\n state.openings[opening.direction].on = opening.on\n })\n })\n this.update()\n }\n\n update () {\n this.beams.forEach((beam) => {\n const opening = beam.getOpening()\n const item = this.#ui.openings.find((item) => item.data.direction === opening.direction)\n item.opacity = opening.on ? 1 : Terminus.#openingOffOpacity\n })\n }\n\n static #openingOffOpacity = 0.3\n\n static ui (tile, color, configuration) {\n const radius = tile.parameters.circumradius / 2\n\n const terminus = new Path.RegularPolygon({\n center: tile.center,\n fillColor: color,\n opacity: 1,\n sides: 6,\n radius: radius / 2\n })\n\n const openings = configuration.map((opening) => {\n const direction = opening.direction\n\n // Each opening is essentially a triangle from the mid-point segments of the terminus with the tip of the triangle\n // pointing in the direction of the opening. This ensures there isn't a gap between the opening triangle and the\n // terminus hexagon.\n const p1 = terminus.segments[subtractDirection(direction, 1)].point\n const p2 = terminus.segments[addDirection(direction, 2)].point\n\n const vector = p2.subtract(p1)\n\n vector.angle += 120\n\n const p3 = p1.subtract(vector)\n\n return new Path({\n closed: true,\n data: { collidable: false, direction },\n fillColor: opening.color,\n opacity: opening.on ? 1 : Terminus.#openingOffOpacity,\n segments: [p1, p2, p3]\n })\n })\n\n return { openings, radius, terminus }\n }\n\n static #Opening = class {\n constructor (color, direction, connected, on) {\n this.colors = Array.isArray(color) ? color : [color]\n this.color = chroma.average(this.colors).hex()\n this.direction = direction\n this.connected = connected === true\n this.on = on === true\n }\n\n connect () {\n this.connected = this.on = true\n }\n\n disconnect () {\n this.connected = this.on = false\n }\n\n toggle () {\n this.on = !this.on\n }\n }\n\n static Events = Object.freeze({\n Connection: 'terminus-connection',\n Disconnection: 'terminus-disconnection'\n })\n}\n","import { Modifier } from '../modifier'\nimport { Icons } from '../icons'\n\nexport class Toggle extends Modifier {\n on\n title = 'Toggle'\n\n constructor (tile, { on }) {\n super(...arguments)\n\n this.on = on || false\n this.name = this.getName()\n }\n\n attach (tile) {\n super.attach(tile)\n // Consider the modifier toggled if there is at least one toggled item in the tile\n // TODO: refactor to be 'toggled' everywhere\n this.on = this.tile?.items.some((item) => item.on || item.toggled)\n this.update({ name: this.getName() })\n }\n\n getName () {\n return Toggle.Names[this.on ? 'on' : 'off']\n }\n\n moveFilter (tile) {\n // Filter out tiles that contain no toggleable items\n return super.moveFilter(tile) || !tile.items.some((item) => item.toggleable)\n }\n\n onTap (event) {\n super.onTap(event)\n\n this.on = !this.on\n\n const items = this.tile.items.filter((item) => item.toggleable)\n items.forEach((item) => item.toggle(this.on))\n\n this.update({ name: this.getName() })\n\n this.dispatchEvent(Modifier.Events.Invoked, { items })\n }\n\n static Names = Object.freeze({ on: Icons.ToggleOn.name, off: Icons.ToggleOff.name })\n}\n\n/**\n * A mixin for Item which provides toggle behaviors.\n *\n * @param SuperClass\n * @returns {{new(*, *): ToggleableItem, toggled: *, prototype: ToggleableItem}}\n * @constructor\n */\nexport const toggleable = (SuperClass) => class ToggleableItem extends SuperClass {\n toggleable\n toggled\n\n constructor (parent, configuration) {\n super(...arguments)\n\n this.toggleable = !this.immutable && configuration.toggleable !== false\n this.toggled = this.toggleable && configuration.toggled\n }\n\n onToggle () {}\n\n toggle (toggled) {\n this.toggled = toggled\n this.onToggle()\n }\n}\n","import chroma from 'chroma-js'\nimport { CompoundPath, Path } from 'paper'\nimport { Item } from '../item'\nimport {\n getColorElements,\n emitEvent,\n fuzzyEquals,\n getPointBetween,\n getDistance,\n getOppositeDirection,\n uniqueBy, getPointFrom\n} from '../util'\nimport { Step, StepState } from '../step'\nimport { Collision, CollisionMergeWith } from '../collision'\nimport { Cache } from '../cache'\n\nexport class Beam extends Item {\n done = false\n path = []\n sortOrder = 3\n\n #cache = new Cache(Object.values(Beam.CacheKeys))\n #direction\n #path\n #stepIndex = -1\n #steps = []\n\n constructor (terminus, state, configuration) {\n // Exclude from modification\n state.immutable = true\n\n super(...arguments)\n\n this.group = null\n this.#direction = configuration.direction\n\n this.#path = {\n closed: false,\n data: { id: this.id, type: this.type },\n locked: true,\n strokeJoin: 'round',\n strokeCap: 'round',\n strokeWidth: terminus.radius / 12\n }\n }\n\n addStep (step) {\n const lastStepIndex = this.getLastStepIndex()\n\n // Can't be done if adding a new step\n this.done = false\n\n this.#path.strokeColor = step.color\n\n if (this.path.length === 0) {\n const path = new Path(this.#path)\n this.path.push(path)\n this.getLayer().insertChild(0, path)\n }\n\n const currentPath = this.path[this.path.length - 1]\n const previousStep = this.#steps[lastStepIndex]\n\n // Handles cases that require adding a new path item\n if (\n !step.connected || (\n previousStep && (\n step.color !== previousStep.color ||\n step.insertAbove !== previousStep.insertAbove\n )\n )\n ) {\n console.debug(this.toString(), 'adding new path item for step:', step, 'previous step:', previousStep)\n\n const path = new Path(this.#path)\n const points = [step.point]\n\n // If the next step is connected, we will link it with the previous step\n if (step.connected) {\n points.unshift(previousStep.point)\n }\n\n path.add(...points)\n this.path.push(path)\n\n // Unless specified in the state, the path will be inserted beneath all items\n this.getLayer().insertChild(this.#getItemIndex(step), path)\n\n // Reset the segmentIndex\n step.segmentIndex = 0\n } else {\n currentPath.add(step.point)\n step.segmentIndex = currentPath.segments.length - 1\n }\n\n step.pathIndex = this.path.length - 1\n\n this.#steps.push(step)\n\n step.index = this.#stepIndex = this.#steps.length - 1\n\n if (!step.tile.items.some((item) => item.equals(this))) {\n // Add this beam to the tile item list so other beams can see it\n step.tile.addItem(this)\n }\n\n step.onAdd(step)\n\n console.debug(this.toString(), 'added step', step)\n\n this.#onUpdate(this.#stepIndex)\n\n return step\n }\n\n getCollision () {\n return this.getStep()?.state.get(StepState.Collision)\n }\n\n getColor () {\n return this.getStep()?.color || this.getOpening().color\n }\n\n getColors () {\n return Array.from(this.getStep()?.colors || this.getOpening().colors)\n }\n\n getColorElements (tile) {\n // Show color elements for merged beams\n const step = this.getSteps(tile).find((step) => step.state.has(StepState.MergeWith))\n return step ? getColorElements(step.colors) : []\n }\n\n getCompoundPath () {\n return new CompoundPath({ children: this.path.map((item) => item.clone({ insert: false })) })\n }\n\n getIndex () {\n return this.path[this.path.length - 1].index\n }\n\n getLastStepIndex () {\n return this.length() - 1\n }\n\n getLayer () {\n return this.parent.getLayer()\n }\n\n getMergeWith (beam) {\n return this.#cache.get(Beam.CacheKeys.MergeWith).get(beam.id)\n }\n\n getOpening () {\n return this.parent.getOpening(this.#direction)\n }\n\n getState () {\n return this.parent.getState().openings[this.#direction]\n }\n\n getStep (stepIndex) {\n return this.#steps[stepIndex || this.getLastStepIndex()]\n }\n\n getSteps (tile) {\n return tile ? this.#steps.filter((step) => step.tile === tile) : this.#steps\n }\n\n isComplete () {\n return this.isOn() && this.done\n }\n\n isConnected () {\n const step = this.getStep()\n return step?.state.has(StepState.TerminusConnection) ||\n // Consider beams which have merged into connected beams to also be connected\n step?.state.get(StepState.MergeInto)?.beam.isConnected()\n }\n\n isOn () {\n const opening = this.getOpening()\n // The opening will also be on if another beam connects with it\n return opening.on && !opening.connected\n }\n\n isPending () {\n return this.isOn() && !this.done\n }\n\n length () {\n return this.#steps.length\n }\n\n onBeamUpdated (event) {\n const beam = event.detail.beam\n\n if (beam.isPending()) {\n // Wait for beam to finish before evaluating\n return\n }\n\n const beamLastStep = beam.getStep()\n\n if (this.isComplete()) {\n const lastStep = this.getStep()\n\n // Check for invalid collisions\n const collision = lastStep.state.get(StepState.Collision)\n if (collision?.has(beam) && !collision.equals(beamLastStep?.state.get(StepState.Collision))) {\n console.debug(this.toString(), 're-evaluating collision with', beam.toString())\n this.done = false\n this.#stepIndex = Math.max(lastStep.index - 1, 0)\n return\n }\n\n // Check for invalid mergedInto\n const mergeInto = lastStep.state.get(StepState.MergeInto)\n if (mergeInto?.beam.equals(beam) && !beam.getMergeWith(this)) {\n console.debug(this.toString(), 're-evaluating merge into', beam.toString())\n this.done = false\n this.#stepIndex = Math.max(this.#stepIndex - 1, 0)\n return\n }\n }\n\n // Check for invalid mergedWith\n const mergeWith = this.getMergeWith(beam)\n if (mergeWith && !beamLastStep?.state.get(StepState.MergeInto)?.beam.equals(this)) {\n console.debug(this.toString(), 're-evaluating merge with', beam.toString())\n this.done = false\n this.#stepIndex = Math.max(mergeWith.stepIndex - 1, 0)\n }\n }\n\n onCollision ({ beam, collision, collisionStep, currentStep, nextStep, puzzle }) {\n const isSelf = beam.equals(this)\n\n console.debug(this.toString(), 'evaluating collision with', (isSelf ? 'self' : beam.toString()))\n\n if (!beam.isOn()) {\n console.debug(this.toString(), 'ignoring collision with inactive beam', beam.toString())\n return\n }\n\n if (beam.parent.equals(this.parent) && currentStep.index === 0) {\n console.debug(this.toString(), 'ignoring collision with sibling beam', beam.toString())\n return\n }\n\n if (isSelf && this.#stepIndex < this.getLastStepIndex()) {\n console.debug(this.toString(), 'ignoring collision with self while re-evaluating history')\n return\n }\n\n // Find the step with matching collision point\n const stepIndex = this.#steps.findLastIndex((step) => fuzzyEquals(collision.point, step.point))\n if (stepIndex < 0) {\n // This error will occur if the steps are out of sync with the path segments for some reason\n throw new Error(\n `Could not find matching step for beam collision between ${this.toString()} and ${beam.toString()}`)\n }\n\n const step = this.#steps[stepIndex]\n\n if (step.state.get(StepState.MergeInto)?.beam.equals(beam)) {\n console.debug(this.toString(), 'ignoring collision with merged beam', beam.toString())\n return\n }\n\n // Note: we only want to evaluate this at the collision point, otherwise terminus connection is irrelevant.\n if (step.state.get(StepState.TerminusConnection)?.terminus.equals(beam.parent)) {\n console.debug(this.toString(), 'ignoring collision with connected beam in parent terminus', beam.toString())\n return\n }\n\n // Check for a reflection on either this beam or the one being collided with at the collision point.\n const reflector = step.state.get(StepState.Reflector) ?? currentStep.state.get(StepState.Reflector)\n if (reflector) {\n // Since every step goes to the center of the tile, we need to go one pixel back in the direction we came from\n // in order to properly test which side of the reflector the beams are on.\n const stepPoint = getPointFrom(step.point, 1, getOppositeDirection(step.direction))\n const nextStepPoint = getPointFrom(currentStep.point, 1, getOppositeDirection(currentStep.direction))\n if (!reflector.item.isSameSide(stepPoint, nextStepPoint)) {\n console.debug(this.toString(), 'ignoring collision with beam on opposite side of reflector', beam.toString())\n return\n }\n }\n\n // Check for a portal on either beam\n const portal = currentStep.state.get(StepState.Portal) ?? step.state.get(StepState.Portal)\n if (portal) {\n console.debug(this.toString(), 'ignoring collision with beam using same portal', beam.toString())\n return\n }\n\n const isSameDirection = step.direction === nextStep.direction\n if (!isSameDirection || isSelf) {\n // Beams are traveling in different directions (collision), or a beam is trying to merge into itself\n console.debug(beam.toString(), 'has collided with', (isSelf ? 'self' : this.toString()), collision)\n\n if (!step.state.get(StepState.Collision)?.point.equals(collision.point)) {\n // No need to update if there is already an existing collision at this same point\n if (!isSelf) {\n // Update beam at point of impact\n this.update(stepIndex, {\n done: true,\n state: step.state.copy(new StepState.Collision(collision.mirror()))\n })\n } else if (!isSameDirection) {\n // For a collision with self, the update at point of impact will occur on the next update loop. This results in\n // a better visualization of the collision which will result in an infinite looping animation.\n this.update(stepIndex, puzzle.getBeamsUpdateDelay())\n }\n }\n\n return collisionStep.copy({\n done: true,\n // Use same insertion point as the beam we collided with to ensure proper item hierarchy.\n insertAbove: step.insertAbove\n })\n }\n\n console.debug(this.toString(), 'merging with', beam.toString())\n\n // Update history to reflect changing color of path\n this.#updateHistory(stepIndex)\n\n const mergeWith = new CollisionMergeWith(beam, step, stepIndex)\n this.addStep(step.copy({\n colors: mergeWith.colors,\n onAdd: () => {\n this.#cache.get(Beam.CacheKeys.MergeWith).set(beam.id, mergeWith)\n },\n onRemove: () => {\n this.#cache.get(Beam.CacheKeys.MergeWith).unset(beam.id)\n },\n state: step.state.copy(new StepState.MergeWith(mergeWith))\n }))\n\n console.debug(beam.toString(), 'merging into', this.toString())\n\n return nextStep.copy({\n done: true,\n // Stop at current step point\n point: currentStep.point,\n state: nextStep.state.copy(new StepState.MergeInto(this))\n })\n }\n\n onModifierInvoked (event) {\n if (!this.isOn()) {\n if (this.#steps.length) {\n console.debug(this.toString(), 'beam has been toggled off')\n this.remove()\n }\n return\n }\n\n const tiles = event.detail.tiles || [event.detail.tile]\n\n // We want the first step that contains the tile the event occurred on\n const stepIndex = this.#steps.findIndex((step) => tiles.some((tile) => tile.equals(step.tile)))\n if (stepIndex >= 0) {\n console.debug(this.toString(), 're-evaluating due to modifier being invoked in matching tile', stepIndex)\n // Re-evaluate beginning at the step before the matched one\n this.done = false\n this.#stepIndex = Math.max(stepIndex - 1, 0)\n return\n }\n\n if (this.isComplete()) {\n const lastStep = this.getStep()\n\n if (lastStep.state.get(StepState.Portal)?.entryPortal) {\n // Check for valid exit portal\n this.done = false\n }\n }\n }\n\n remove (stepIndex = 0) {\n this.#updateHistory(stepIndex)\n }\n\n selected (selected = true) {\n this.path.forEach((path) => { path.selected = selected })\n }\n\n startDirection () {\n // Take rotation of the parent (terminus) into account\n return (this.getOpening().direction + this.parent.rotation) % 6\n }\n\n /**\n * On each step, a beam will move towards the edge of the current tile until it either reaches that point, or it\n * intersects with something else. A beam will be considered 'done' when it either collides with something or it\n * reaches a terminus opening.\n */\n step (puzzle) {\n if (!this.isPending()) {\n return\n }\n\n console.debug(this.toString(), 'currentStepIndex', this.#stepIndex)\n\n // First step\n if (this.#steps.length === 0) {\n const tile = this.parent.parent\n this.addStep(new Step(0, tile, this.getColor(), this.startDirection(), tile.center))\n }\n\n const currentStepIndex = this.#stepIndex\n const currentStep = this.#steps[currentStepIndex]\n\n // On the first step, we have to take the rotation of the terminus into account\n const direction = currentStepIndex === 0 ? this.startDirection() : currentStep.direction\n const nextStepPoint = getPointFrom(currentStep.point, currentStep.tile.parameters.inradius, direction)\n\n // Use the midpoint between the previous and next step points to calculate which tile we are in.\n // This will ensure we consistently pick the same tile when the next step point is on the edge of two tiles.\n const tile = puzzle.getTile(getPointBetween(currentStep.point, nextStepPoint))\n\n // The next step would be off the grid\n if (!tile) {\n console.debug(this.toString(), 'stopping due to out of bounds')\n\n const collision = new Collision(0, [currentStep.point], this)\n return this.updateStep(currentStepIndex, {\n done: true,\n state: new StepState(new StepState.Collision(collision))\n })\n }\n\n const nextStepIndex = currentStepIndex + 1\n const existingNextStep = this.#steps[nextStepIndex]\n const lastPathIndex = this.path.length - 1\n const lastSegmentIndex = this.path[lastPathIndex].segments.length - 1\n\n let nextStep = new Step(\n nextStepIndex,\n tile,\n currentStep.color,\n direction,\n nextStepPoint,\n existingNextStep?.pathIndex || lastPathIndex,\n existingNextStep?.segmentIndex || lastSegmentIndex\n )\n\n const items = uniqueBy(\n tile.items.concat(currentStep.tile.equals(nextStep.tile) ? [] : currentStep.tile.items),\n 'id'\n )\n\n console.debug(this.toString(), 'collision items:', items)\n\n // See if there are any collisions along the path we plan to take\n const collisions = this.#getCollisions(items, currentStep, nextStep, puzzle)\n .map((collision, index) => new Collision(index, collision.points, this, collision.item))\n\n if (collisions.length) {\n console.debug(this.toString(), 'collisions:', collisions)\n }\n\n let collisionStep\n for (let collisionIndex = 0; collisionIndex < collisions.length; collisionIndex++) {\n const collision = collisions[collisionIndex]\n\n console.debug(this.toString(), 'resolving collision:', collision)\n\n // By default, the next step will be treated as a collision with the beam stopping at the first point of\n // intersection with the item.\n collisionStep = nextStep.copy({\n done: true,\n point: collision.point,\n state: nextStep.state.copy(new StepState.Collision(collision))\n })\n\n // Allow the item to change the resulting step\n collisionStep = collision.item.onCollision({\n beam: this,\n collision,\n collisions,\n collisionStep,\n currentStep,\n nextStep,\n existingNextStep,\n puzzle\n })\n\n if (collisionStep instanceof Step) {\n break\n }\n }\n\n if (collisionStep) {\n nextStep = collisionStep\n }\n\n // See if we need to change history\n if (existingNextStep) {\n // The next step we would take is the same as the step that already exists in history\n if (nextStep.equals(existingNextStep)) {\n this.#stepIndex++\n\n const lastStepIndex = this.getLastStepIndex()\n console.debug(\n this.toString(),\n 'new step is same as existing. new step index:',\n this.#stepIndex,\n 'last step index:',\n lastStepIndex\n )\n\n if (this.#stepIndex === lastStepIndex) {\n // To ensure we mark as done\n this.#onUpdate(this.#stepIndex)\n }\n\n return existingNextStep\n } else {\n console.debug(\n this.toString(),\n `is revising history at step index: ${nextStepIndex}`,\n 'existing step:',\n existingNextStep,\n 'new step:',\n nextStep\n )\n this.#updateHistory(nextStepIndex)\n }\n }\n\n if (currentStepIndex === this.#stepIndex && currentStep.point.equals(nextStep.point)) {\n // Note: ensuring history has not been modified when evaluating next step vs current\n console.debug(this.toString(), 'next step point is same as current step point, stopping.', nextStep)\n return this.updateStep(currentStepIndex, nextStep.copy({ done: true }))\n }\n\n return this.addStep(nextStep)\n }\n\n toString () {\n return `[${this.type}:${this.id}:${chroma(this.getColor()).name()}]`\n }\n\n update (stepIndex, settings = {}, timeout) {\n if (typeof settings === 'number') {\n timeout = settings\n settings = {}\n }\n const update = this.#update.bind(this, stepIndex, settings, timeout)\n return timeout === undefined ? update() : setTimeout(update, timeout)\n }\n\n updateState (updater, dispatchEvent = true) {\n return this.parent.updateState((state) => updater(state.openings[this.#direction]), dispatchEvent)\n }\n\n updateStep (stepIndex, settings) {\n const step = this.getStep(stepIndex)\n if (step) {\n // Update is essentially: remove, update, add\n step.onRemove(step)\n const updatedStep = this.#getUpdatedStep(step, settings)\n this.#steps[stepIndex] = updatedStep\n updatedStep.onAdd(updatedStep)\n\n console.debug(this.toString(), 'updated step at index', stepIndex, 'from', step, 'to', updatedStep)\n this.#onUpdate(stepIndex)\n return updatedStep\n }\n }\n\n #getCollisions (items, currentStep, nextStep, puzzle) {\n const segments = [currentStep.point, nextStep.point]\n const path = new Path({ segments })\n const firstPoint = segments[0]\n return items\n .map((item) => {\n const points = []\n const intersections = path.getIntersections(\n item.getCompoundPath(),\n // Ignore first point from self which will always collide\n (curveLocation) => !(item === this && curveLocation.point.equals(firstPoint))\n )\n\n points.push(...new Set(intersections.map((intersection) => intersection.point)))\n\n // Handle the edge case of colliding with a beam with a single, isolated path item.\n // This will happen in the case of a portal exit collision, for example.\n if (!points.length && item.type === Item.Types.beam && item !== this) {\n points.push(\n ...item.getSteps().map((step) => step.point)\n .filter((point) => segments.some((segment) => fuzzyEquals(point, segment)))\n )\n }\n\n // Sort collision points by distance from origin point (closest collision points first)\n points.sort(getDistance(firstPoint))\n\n if (puzzle.debug) {\n puzzle.drawDebugPoint(firstPoint)\n points.forEach((point) => puzzle.drawDebugPoint(point, { fillColor: 'black' }))\n }\n\n return { points, item }\n })\n .filter((result) => result.points.length)\n .sort((a, b) => {\n // Sort items returned by proximity to starting point\n const distance = getDistance(firstPoint)(a.points[0], b.points[0])\n if (distance === 0) {\n // If two items are an equal distance away, sort by sort order as defined on item\n return a.item.sortOrder - b.item.sortOrder\n }\n\n return distance\n })\n }\n\n #getItemIndex (step) {\n return step.insertAbove ? step.insertAbove.getIndex() + 1 : 0\n }\n\n #getUpdatedStep (step, settings) {\n if (typeof settings === 'function') {\n settings = settings(step)\n }\n\n return settings instanceof Step ? settings : step.copy(settings)\n }\n\n #update (stepIndex, settings) {\n if (stepIndex < this.getLastStepIndex()) {\n const step = this.#updateHistory(stepIndex)\n this.addStep(this.#getUpdatedStep(step, settings))\n } else {\n this.updateStep(stepIndex, settings)\n }\n }\n\n #onUpdate (stepIndex) {\n const lastStepIndex = this.getLastStepIndex()\n stepIndex ??= lastStepIndex\n\n const step = this.getStep(stepIndex)\n\n if (stepIndex === lastStepIndex) {\n // Update beam status if last step was updated\n this.done = step?.done ?? false\n }\n\n emitEvent(Beam.Events.Update, { beam: this, state: step?.state, step, stepIndex })\n }\n\n #updateHistory (stepIndex) {\n const lastStepIndex = this.getLastStepIndex()\n const step = this.#steps[stepIndex]\n\n console.debug(\n this.toString(),\n 'updateHistory',\n 'stepIndex:',\n stepIndex,\n 'lastStepIndex:',\n lastStepIndex,\n 'step:',\n step\n )\n\n if (step) {\n const currentPath = this.path[step.pathIndex]\n\n // Remove any now invalid path segments\n currentPath.removeSegments(step.segmentIndex)\n\n // If the current path is empty, remove it along with everything after it.\n const spliceIndex = step.pathIndex + (currentPath.segments.length === 0 ? 0 : 1)\n\n // Remove any now invalid path items\n this.path.splice(spliceIndex).forEach((item) => item.remove())\n\n const deletedSteps = this.#steps.splice(stepIndex)\n\n console.debug(this.toString(), 'removed steps: ', deletedSteps)\n\n const tiles = [...new Set(deletedSteps.map((step) => step.tile))]\n // Remove references to the beam in any tiles it is no longer in\n tiles.filter((tile) => this.getSteps(tile).length === 0).forEach((tile) => tile.removeItem(this))\n\n deletedSteps.forEach((step) => step.onRemove(step))\n\n this.done = false\n this.#stepIndex = (stepIndex - 1)\n\n this.#onUpdate(this.#stepIndex)\n }\n\n return step\n }\n\n static CacheKeys = Object.freeze({\n MergeWith: 'mergeWith'\n })\n\n static Events = Object.freeze({\n Collision: 'beam-collision',\n Connection: 'beam-connection',\n Merge: 'beam-merge',\n Update: 'beam-update'\n })\n}\n","import { StepState } from './step'\n\nexport class Collision {\n constructor (index, points, beam, item) {\n const items = [beam]\n\n if (item !== undefined) {\n items.push(item)\n }\n\n this.beam = beam\n this.index = index\n\n // The item that was collided with\n this.item = item\n this.itemIds = items.map((item) => item.id)\n this.items = items\n\n // The first collision point\n this.point = points[0]\n this.points = points\n\n // Check if the collision is with self\n this.withSelf = beam.equals(item)\n }\n\n copy (settings) {\n return new Collision(\n settings.index ?? this.index,\n settings.points ?? this.points,\n settings.beam ?? this.beam,\n settings.item ?? this.item\n )\n }\n\n equals (other) {\n return other && other.point.equals(this.point) &&\n other.items.every((item) => this.has(item))\n }\n\n has (item) {\n return this.itemIds.includes(item.id)\n }\n\n mirror () {\n return this.copy({ beam: this.item, item: this.beam })\n }\n}\n\nexport class CollisionMergeWith {\n constructor (beam, step, stepIndex) {\n this.beams = [beam].concat(step.state.get(StepState.MergeWith)?.beams || [])\n this.colors = step.colors.concat(beam.getColors())\n this.stepIndex = stepIndex\n }\n}\n","import { Path, Point, Size } from 'paper'\nimport { Item } from '../item'\nimport { rotatable } from '../modifiers/rotate'\nimport { getPointBetween, getOppositeDirection, getPosition, getReflectedDirection, getPointFrom } from '../util'\nimport { movable } from '../modifiers/move'\nimport { StepState } from '../step'\n\nexport class Reflector extends movable(rotatable(Item)) {\n #item\n\n constructor (tile, state) {\n super(tile, state, { rotationDegrees: 30 })\n\n this.color = state.color || 'black'\n this.#item = Reflector.item(tile, this.color)\n\n this.group.addChild(this.#item)\n }\n\n midLine () {\n // Two points which form a line through the mid-point of the reflector\n return [\n getPointBetween(this.#item.segments[3].point, this.#item.segments[0].point),\n getPointBetween(this.#item.segments[1].point, this.#item.segments[2].point)\n ]\n }\n\n getSide (point) {\n // Returns the side of the reflector the point is on (0, 1, or -1)\n return getPosition(this.midLine(), point)\n }\n\n isSameSide (pointA, pointB) {\n return this.getSide(pointA) === this.getSide(pointB)\n }\n\n onCollision ({ beam, collision, collisions, collisionStep, currentStep, nextStep }) {\n const directionFrom = getOppositeDirection(currentStep.direction)\n const directionTo = getReflectedDirection(directionFrom, this.rotation)\n\n if (directionTo === currentStep.direction) {\n console.debug(beam.toString(), 'stopping due to collision with non-reflective side of reflector')\n return collisionStep\n }\n\n if (directionTo === directionFrom) {\n console.debug(beam.toString(), 'stopping due to reflection back at self')\n // Unsure why this rule was here, but it was causing a bug when re-evaluating history\n // if (collisions.some((collision) => collision.item.type === Item.Types.beam)) {\n // // If there is also a beam collision in the list of collisions for this step, let that one resolve it\n // return\n // } else {\n // Instead of using collisionStep, just add a collision to nextStep. This will ensure any beams that hit the\n // same side of the reflector will collide with this beam.\n return nextStep.copy({\n done: true,\n state: nextStep.state.copy(new StepState.Collision(collision.copy({ points: [nextStep.point] })))\n })\n // }\n }\n\n // The beam will collide with a reflector twice, on entry and exit, so ignore the first one, but track in state\n if (!currentStep.state.has(StepState.Reflector)) {\n return nextStep.copy({ state: nextStep.state.copy(new StepState.Reflector(this)) })\n }\n\n const point = getPointFrom(currentStep.point, nextStep.tile.parameters.inradius, directionTo)\n return nextStep.copy({ direction: directionTo, point })\n }\n\n static item (tile, color) {\n const width = tile.parameters.circumradius / 12\n const length = tile.parameters.circumradius - (width * 2)\n const topLeft = tile.center.subtract(new Point(width / 2, length / 2))\n const size = new Size(width, length)\n\n return new Path.Rectangle({\n data: { size },\n fillColor: color,\n point: topLeft,\n size\n })\n }\n}\n","import { Item } from '../item'\nimport { Path } from 'paper'\nimport { addDirection } from '../util'\nimport { rotatable } from '../modifiers/rotate'\nimport { movable } from '../modifiers/move'\n\nexport class Wall extends movable(rotatable(Item)) {\n sortOrder = 1\n\n constructor (tile, state) {\n // Exclude from modification by default\n state.immutable ??= true\n\n super(tile, state, { rotationDegrees: 60 })\n\n const walls = Wall.item(tile, state)\n this.group.addChildren(walls)\n }\n\n static item (tile, configuration) {\n const radius = tile.parameters.circumradius\n const width = radius / 12\n const fillColor = tile.styles.default.strokeColor\n\n return configuration.directions.map((direction) => {\n const firstSegment = tile.hexagon.segments[direction].point\n const nextDirection = addDirection(direction, 1)\n const lastSegment = tile.hexagon.segments[nextDirection].point\n\n return new Path({\n closed: true,\n fillColor,\n segments: [\n firstSegment,\n tile.hexagon.getLocationAt(\n (direction === 0 ? tile.hexagon.length : tile.hexagon.getOffsetOf(firstSegment)) - width\n ),\n tile.hexagon.getLocationAt(\n (nextDirection === 0 ? 0 : tile.hexagon.getOffsetOf(lastSegment)) + width\n ),\n lastSegment\n ]\n })\n })\n }\n}\n","import { Immutable } from './modifiers/immutable'\nimport { Lock } from './modifiers/lock'\nimport { Move } from './modifiers/move'\nimport { Rotate } from './modifiers/rotate'\nimport { Toggle } from './modifiers/toggle'\nimport { Modifier } from './modifier'\nimport { Swap } from './modifiers/swap'\n\nexport function modifierFactory (tile, configuration) {\n let modifier\n\n switch (configuration.type) {\n case Modifier.Types.immutable:\n modifier = new Immutable(tile, configuration)\n break\n case Modifier.Types.lock:\n modifier = new Lock(tile, configuration)\n break\n case Modifier.Types.move:\n modifier = new Move(tile, configuration)\n break\n case Modifier.Types.rotate:\n modifier = new Rotate(tile, configuration)\n break\n case Modifier.Types.swap:\n modifier = new Swap(tile, configuration)\n break\n case Modifier.Types.toggle:\n modifier = new Toggle(tile, configuration)\n break\n default:\n console.error('Ignoring modifier with unknown type:', configuration.type)\n break\n }\n\n return modifier\n}\n","import { Modifier } from '../modifier'\n\nexport class Immutable extends Modifier {\n immutable = true\n name = 'block'\n title = 'Immutable'\n}\n","import { Modifier } from '../modifier'\n\nexport class Lock extends Modifier {\n immutable = true\n name = 'lock'\n title = 'Locked'\n}\n","import { Move } from './move'\nimport { Modifier } from '../modifier'\nimport { Icons } from '../icons'\n\nexport class Swap extends Move {\n name = Icons.Swap.name\n title = 'Swap'\n\n moveItems (tile) {\n const toItems = tile.items.filter(Move.movable)\n const fromItems = this.tile.items.filter(Move.movable)\n\n fromItems.forEach((item) => item.move(tile))\n toItems.forEach((item) => item.move(this.tile))\n\n return {\n moved: [Move.data(this.tile, tile, fromItems), Move.data(tile, this.tile, toItems)],\n tiles: [this.tile, tile]\n }\n }\n\n tileFilter (tile) {\n // Never mask current tile\n return !tile.equals(this.tile) && (\n // Mask immutable tiles\n tile.modifiers.some(Modifier.immutable) ||\n // Mask tiles that don't contain any movable items\n !tile.items.some(Move.movable)\n )\n }\n}\n","import { Item } from '../item'\nimport { Path } from 'paper'\n\nexport class Mask extends Item {\n constructor (tile, style) {\n super(null, style, { locked: false, type: Item.Types.mask })\n\n const data = { type: this.type }\n const item = new Path.RegularPolygon({\n center: tile.center,\n closed: true,\n data,\n opacity: 0.25,\n radius: tile.parameters.circumradius + 1,\n sides: 6,\n style: Object.assign({ fillColor: 'black' }, style)\n })\n\n this.center = tile.center\n this.group.addChild(item)\n }\n}\n","import { Item } from '../item'\nimport { Path } from 'paper'\n\nexport class Collision extends Item {\n constructor (state) {\n super(null, state, { type: Item.Types.collision })\n\n const { center, color } = state\n\n this.center = center\n this.color = color\n\n const item = new Path.Circle({\n center,\n closed: true,\n radius: 4,\n style: {\n fillColor: 'white',\n strokeColor: color,\n strokeWidth: 2\n }\n })\n\n this.group.addChild(item)\n }\n}\n","import { Puzzles } from '../puzzles'\nimport { base64decode, base64encode, jsonDiffPatch, params, url } from './util'\n\nconst history = window.history\nconst localStorage = window.localStorage\n\nexport class State {\n #current\n #deltas\n #id\n #index\n #original\n #selectedTile\n #version\n\n constructor (id, original, deltas, deltasIndex, selectedTile, version) {\n this.#id = id\n this.#original = original\n this.#deltas = deltas || []\n this.#index = deltasIndex || this.#lastIndex()\n this.#selectedTile = selectedTile\n this.#version = version ?? original.version\n\n // Update current state\n this.#current = structuredClone(original)\n this.#deltas.filter((delta, index) => index <= this.#index).forEach((delta) => this.apply(delta))\n\n this.#updateCache(id)\n }\n\n apply (delta) {\n // Support for deltas stored as stringified JSON in cache\n if (typeof delta === 'string') {\n delta = JSON.parse(delta)\n }\n console.debug('StateManager: applying delta', delta)\n return jsonDiffPatch.patch(this.#current, delta)\n }\n\n canRedo () {\n return this.#index < this.#lastIndex()\n }\n\n canReset () {\n return this.#deltas.length > 0\n }\n\n canUndo () {\n return this.#index >= 0\n }\n\n encode () {\n return base64encode(JSON.stringify({\n id: this.#id,\n // No need to cache puzzles which exist in code\n original: Puzzles.has(this.#id) ? undefined : this.#original,\n deltas: this.#deltas,\n deltasIndex: this.#index,\n selectedTile: this.#selectedTile,\n version: this.#version\n }))\n }\n\n getCurrent () {\n return structuredClone(this.#current)\n }\n\n getId () {\n return this.#id\n }\n\n getTitle () {\n return this.getId() + (this.#current.title ? ` - ${this.#current.title}` : '')\n }\n\n getSelectedTile () {\n return this.#selectedTile\n }\n\n moves () {\n return this.#index + 1\n }\n\n length () {\n return this.#deltas.length\n }\n\n redo () {\n if (!this.canRedo()) {\n return\n }\n\n this.#index++\n this.#current = structuredClone(this.#original)\n this.#deltas.filter((delta, index) => index <= this.#index).forEach((delta) => this.apply(delta))\n\n this.#updateCache()\n\n return true\n }\n\n reset () {\n if (!this.canReset()) {\n return\n }\n\n this.#current = structuredClone(this.#original)\n this.#deltas = []\n this.#index = this.#lastIndex()\n this.#selectedTile = undefined\n\n State.clearCache(this.getId())\n\n this.#updateCache()\n\n return true\n }\n\n setSelectedTile (tile) {\n const id = tile?.coordinates.offset.toString()\n if (this.#selectedTile !== id) {\n this.#selectedTile = id\n this.#updateCache()\n }\n }\n\n undo () {\n if (!this.canUndo()) {\n return\n }\n\n this.#index--\n this.#current = structuredClone(this.#original)\n this.#deltas.filter((delta, index) => index <= this.#index).forEach((delta) => this.apply(delta))\n\n this.#updateCache()\n\n return true\n }\n\n update (newState, keepDelta = true) {\n const delta = jsonDiffPatch.diff(this.#current, newState)\n console.debug('delta', delta)\n\n if (delta === undefined) {\n // Nothing to do\n return\n }\n\n this.apply(delta)\n\n if (keepDelta) {\n // Handle updating after undoing\n if (this.#index < this.#lastIndex()) {\n // Remove all deltas after the current one\n this.#deltas.splice(this.#index + 1)\n }\n\n // It seems that the jsondiffpatch library modifies deltas on patch. To prevent that, they will be stored as\n // their stringified JSON representation and parsed before being applied.\n // See:https://github.com/benjamine/jsondiffpatch/issues/34\n this.#deltas.push(JSON.stringify(delta))\n this.#index = this.#lastIndex()\n }\n\n this.#updateCache()\n }\n\n #key (key) {\n return State.key(key, this.getId())\n }\n\n #lastIndex () {\n return this.#deltas.length - 1\n }\n\n #updateCache () {\n const id = this.getId()\n const state = this.encode()\n\n url.hash = ['', id, state].join('/')\n history.pushState({ id, state }, '', url)\n localStorage.setItem(State.CacheKeys.id, id)\n localStorage.setItem(this.#key(State.CacheKeys.state), state)\n }\n\n static clearCache (id) {\n if (!id) {\n // Clear everything\n url.hash = ''\n history.pushState({}, '', url)\n id = localStorage.getItem(State.CacheKeys.id)\n localStorage.clear()\n // Keep current puzzle ID\n localStorage.setItem(State.CacheKeys.id, id)\n } else {\n // Clear a single puzzle\n url.hash = `/${id}`\n history.pushState({ id }, '', url)\n localStorage.removeItem(State.key(State.CacheKeys.state, id))\n }\n }\n\n static fromEncoded (state) {\n state = JSON.parse(base64decode(state))\n state.original = state.original || Puzzles.get(state.id)\n state.original.version ??= 0\n return new State(\n state.id,\n state.original,\n state.deltas,\n state.deltasIndex,\n state.selectedTile,\n state.version\n )\n }\n\n static fromId (id) {\n return new State(id, Puzzles.get(id))\n }\n\n static resolve (id) {\n let state\n\n // Allow cache to be cleared via URL param\n if (params.has(State.ParamKeys.clearCache)) {\n State.clearCache(params.get(State.ParamKeys.clearCache))\n }\n\n const pathSegments = url.hash.substring(1).split('/').filter((path) => path !== '')\n\n if (!id) {\n // If no explicit ID is given, try to load state from URL\n pathSegments.filter((path) => !Puzzles.has(path)).some((segment, index) => {\n try {\n state = State.fromEncoded(segment)\n id = state.getId()\n } catch (e) {\n console.debug(`Could not parse state from path segment '${index}'`, e)\n }\n\n return state !== undefined\n })\n }\n\n if (!state) {\n // Update ID before checking for state in localStorage.\n id = id || pathSegments[0] || localStorage.getItem(State.CacheKeys.id) || Puzzles.visible.firstId\n\n const localState = localStorage.getItem(State.key(State.CacheKeys.state, id))\n if (localState) {\n try {\n state = State.fromEncoded(localState)\n } catch (e) {\n console.debug(`Could not parse state with ID '${id}' from localStorage`, e)\n }\n }\n }\n\n if (state) {\n const cachedVersion = state.#version\n const originalVersion = state.#original.version\n\n if (cachedVersion !== originalVersion) {\n console.debug(\n `Invalidating cache for ID ${id} due to version mismatch. ` +\n `Puzzle: ${originalVersion}, Cache: ${cachedVersion}`\n )\n state = undefined\n State.clearCache(id)\n }\n }\n\n if (!state) {\n // Fall back to loading state from Puzzles cache by ID\n state = State.fromId(id)\n }\n\n if (!state) {\n throw new Error(`Unable to resolve state for ID '${id}'`)\n }\n\n return state\n }\n\n static key (key, id) {\n return `${key}:${id}`\n }\n\n static CacheKeys = Object.freeze({\n center: 'center',\n id: 'id',\n state: 'state',\n zoom: 'zoom'\n })\n\n static ParamKeys = Object.freeze({\n clearCache: 'clearCache'\n })\n}\n","const puzzles = {\n '001': require('./001.json'),\n '002': require('./002.json'),\n '003': require('./003.json'),\n '004': require('./004.json'),\n '005': require('./005.json'),\n '006': require('./006.json'),\n '007': require('./007.json'),\n '008': require('./008.json'),\n '009': require('./009.json'),\n '010': require('./010.json'),\n '011': require('./011.json'),\n '012': require('./012.json'),\n test_infinite_loop: require('./test/infiniteLoop.json'),\n test_layout: require('./test/layout'),\n test_portal: require('./test/portal.json'),\n test_reflector: require('./test/reflector.json')\n}\n\nfunction traverse (ids, id, amount) {\n const index = ids.indexOf(id)\n return ids[index < 0 ? index : index + amount]\n}\n\nclass PuzzleGroup {\n ids\n\n constructor (ids) {\n this.firstId = ids[0]\n this.ids = ids\n this.lastId = ids[ids.length - 1]\n }\n\n get (id) {\n if (this.has(id)) {\n // Note: deep cloning puzzles to prevent mutation\n return structuredClone(puzzles[id])\n }\n }\n\n has (id) {\n return this.ids.includes(id)\n }\n\n nextId (id) {\n return traverse(this.ids, id, 1)\n }\n\n previousId (id) {\n return traverse(this.ids, id, -1)\n }\n}\n\nexport const Puzzles = new PuzzleGroup(Object.keys(puzzles).sort())\n\nPuzzles.hidden = new PuzzleGroup(Puzzles.ids.filter((id) => id.startsWith('test_')))\nPuzzles.titles = Object.fromEntries(Puzzles.ids.map((id) => [id, puzzles[id].title || id]))\nPuzzles.visible = new PuzzleGroup(Puzzles.ids.filter((id) => !Puzzles.hidden.has(id)))\n","import { capitalize, getIconElement, getTextElement } from './util'\nimport { Terminus } from './items/terminus'\nimport { EventListeners } from './eventListeners'\nimport { Puzzle } from './puzzle'\n\nexport class Solution {\n #conditions = []\n\n constructor (state) {\n state.forEach((condition) => this.#conditionFactory(condition))\n }\n\n teardown () {\n this.#conditions.forEach((condition) => condition.teardown())\n Solution.element.replaceChildren()\n }\n\n isSolved () {\n return this.#conditions.every((condition) => condition.isMet())\n }\n\n #conditionFactory (condition) {\n switch (condition.type) {\n case SolutionCondition.Types.connections: {\n this.#conditions.push(new Connections(condition))\n break\n }\n case SolutionCondition.Types.moves: {\n this.#conditions.push(new Moves(condition))\n break\n }\n default: {\n console.warn('Ignoring condition with unknown type:', condition.type)\n break\n }\n }\n }\n\n static element = document.getElementById('solution')\n}\n\nclass SolutionCondition {\n constructor (state, elements) {\n this.state = state\n\n const li = document.createElement('li')\n li.append(...elements)\n Solution.element.append(li)\n }\n\n isMet () {}\n\n teardown () {}\n\n update () {}\n\n static Types = Object.freeze(Object.fromEntries([\n 'connections',\n 'moves'\n ].map((type) => [type, capitalize(type)])))\n}\n\nclass Connections extends SolutionCondition {\n #completed\n #eventListeners = new EventListeners({ context: this })\n #connections = []\n\n constructor (state) {\n const completed = document.createElement('span')\n completed.textContent = '0'\n\n const required = document.createElement('span')\n required.textContent = state.amount.toString()\n\n const elements = [\n completed,\n getTextElement('/'),\n required,\n getIconElement('link', 'Connections')\n ]\n\n super(state, elements)\n\n this.#completed = completed\n\n this.#eventListeners.add([\n { type: Terminus.Events.Connection, handler: this.update },\n { type: Terminus.Events.Disconnection, handler: this.update }\n ])\n }\n\n isMet () {\n return this.#connections.length === this.state.amount\n }\n\n teardown () {\n this.#eventListeners.remove()\n super.teardown()\n }\n\n update (event) {\n console.debug('Connections.update', event)\n\n const terminus = event.detail.terminus\n const opening = event.detail.opening\n const connectionId = `${terminus.id}:${opening.direction}`\n const connectionIndex = this.#connections.findIndex((connection) => connection === connectionId)\n\n if (opening.connected && connectionIndex < 0) {\n this.#connections.push(connectionId)\n } else if (!opening.connected && connectionIndex >= 0) {\n this.#connections.splice(connectionIndex, 1)\n }\n\n this.#completed.textContent = this.#connections.length.toString()\n }\n}\n\nclass Moves extends SolutionCondition {\n #completed\n #eventListeners = new EventListeners({ context: this })\n #moves = 0\n\n constructor (state) {\n state.operator ??= Moves.Operators.equalTo\n\n if (!Object.values(Moves.Operators).includes(state.operator)) {\n throw new Error(`Invalid moves operator: ${state.operator}`)\n }\n\n const completed = document.createElement('span')\n completed.textContent = '0'\n\n const required = document.createElement('span')\n required.textContent = state.amount.toString()\n\n const elements = [\n completed,\n getTextElement(state.operator),\n required,\n getIconElement('stacks', 'Moves')\n ]\n\n super(state, elements)\n\n this.#completed = completed\n this.#eventListeners.add([{ type: Puzzle.Events.Updated, handler: this.update }])\n }\n\n isMet () {\n // TODO: support 'between' syntax like 2 < 3 < 4 ?\n switch (this.state.operator) {\n case Moves.Operators.equalTo:\n return this.#moves === this.state.amount\n case Moves.Operators.greaterThan:\n return this.#moves > this.state.amount\n case Moves.Operators.lessThan:\n return this.#moves < this.state.amount\n }\n }\n\n teardown () {\n this.#eventListeners.remove()\n super.teardown()\n }\n\n update (event) {\n console.debug('Moves.update', event)\n this.#moves = event.detail.state.moves()\n this.#completed.textContent = this.#moves.toString()\n }\n\n static Operators = Object.freeze({\n equalTo: '=',\n greaterThan: '>',\n lessThan: '<'\n })\n}\n","const script = document.createElement('script')\nscript.setAttribute('src', 'https://www.googletagmanager.com/gtag/js?id=G-HXLD6EE5NS')\ndocument.head.append(script)\n\nconst dataLayer = window.dataLayer = window.dataLayer || []\nfunction gtag () { dataLayer.push(arguments) }\ngtag('js', new Date())\ngtag('config', 'G-HXLD6EE5NS')\n","const doorbellOptions = window.doorbellOptions = {\n appKey: 'o1smdnJiyxObjMcY0jSTf08TIhA814yLq68rEwTDWTavma7dtIVKEdwzMePE2LHC',\n container: document.getElementById('feedback-container'),\n hideButton: true,\n properties: {}\n}\n\nconst script = document.createElement('script')\nscript.setAttribute(\n 'src',\n 'https://embed.doorbell.io/button/14129/1705777677/init?native_json=1&needs_postmessage=0'\n)\ndocument.head.append(script)\n\ndocument.addEventListener('puzzle-updated', (event) => {\n doorbellOptions.properties.puzzleId = event.detail.state.getId()\n})\n"],"names":["$b8ea597934691048$var$static_l_desc","$b8ea597934691048$var$static_d_desc","$b8ea597934691048$var$static_bl_desc","$b8ea597934691048$var$lenfix","$b8ea597934691048$var$distfix","$parcel$export","e","n","v","s","Object","defineProperty","get","set","enumerable","configurable","$parcel$interopDefault","a","__esModule","default","$parcel$global","globalThis","self","window","global","$parcel$modules","$parcel$inits","parcelRequire","id","exports","init","module","call","err","Error","code","register","parcelRegister","self1","undefined","document","Base","hidden","array","slice","create","describe","getOwnPropertyDescriptor","define1","forEach","iter","bind","i","l","length","forIn","hasOwnProperty","assign","dst","arguments","src","key","each","obj","desc","value","inject","dest","beans","preserve","beansNames","field","name","val","substring","bean","isFunc","res","prev","base","match","toLowerCase","isPlainObject","writable","test","part","statics","prototype","extend","ctor","proto","initialize","apply","clone","constructor","define","pick","b","list","begin","end","toString","_id","_class","_name","type","push","Formatter","instance","number","join","getClassName","importJSON","json","exportJSON","options","toJSON","serialize","props","exclude","filter","_prioritize","equals","obj1","obj2","Array","isArray","keys","read","start","amount","peek","__index","readIndex","_readIndex","readNull","__read","filtered","__filtered","remain","readList","entry","readNamed","getNamed","hasValue","source","getSource","__unfiltered","readSupported","that","__source","arg","hasNamed","prioritize","handleKey","processed","isPlainValue","asString","compact","dictionary","isRoot","formatter","precision","definitions","references","add","item","ref","unshift","_serialize","_compactSerialize","deserialize","_data","_setDictionary","_isRoot","isFirst","hasDictionary","isDictionary","args","JSON","stringify","target","parse","useTarget","Item","Layer","insert","concat","INSERT","items","itemsLength","startLength","splice","index","remove","append","_index","removed","capitalize","str","replace","toUpperCase","camelize","chr","hyphenate","Emitter","on","func","types","_eventTypes","handlers","_callbacks","indexOf","install","off","uninstall","once","handler","emit","event","setTarget","currentTarget","stop","responds","attach","detach","fire","_installEvents","events","_events","isString","PaperScope","paper","settings","applyMatrix","insertItems","handleSize","hitTolerance","project","projects","tools","_scopes","support","ctx","CanvasProvider","getContext","nativeDash","nativeBlendModes","BlendMode","nativeModes","release","agent","user","navigator","userAgent","os","exec","platform","browser","v1","v2","rv","chrome","version","versionNumber","parseFloat","trident","jsdom","webkit","atom","getView","_view","getPaper","execute","PaperScript","View","updateFocus","scope","setup","element","Project","createCanvas","width","height","getCanvas","activate","clear","handleAttribute","el","attr","getAttribute","hasAttribute","PaperScopeItem","_scope","_list","_reference","isActive","CollisionDetection","findItemBoundsCollisions","items1","items2","tolerance","getBounds","bounds","rect","left","top","right","bottom","bounds1","bounds2","findBoundsCollisions","findCurveBoundsCollisions","curves1","curves2","bothAxis","curves","min","Math","max","hor","ver","boundsA","boundsB","sweepVertical","onlySweepAxisCollisions","allBounds","lengthA","lengthAll","binarySearch","indices","coord","lo","hi","mid","pri0","pri1","sec0","sec1","allIndicesByPri0","sort","i1","i2","activeIndicesByPri1","allCollisions","curIndex","curBounds","origIndex","isCurrentA","isCurrentB","curCollisions","pruneCount","j","activeIndex","curSec1","curSec0","activeBounds","isActiveA","isActiveB","curPri1","collisions","multiplier","pow","round","pair","val1","val2","separator","point","x","y","size","rectangle","Numerical","abscissas","weights","abs","sqrt","log2","log","LOG2E","clamp","getDiscriminant","c","split","D","E","ad","bd","cd","p","dp","q","dq","getNormalizationFactor","norm","EPSILON","MACHINE_EPSILON","CURVETIME_EPSILON","GEOMETRIC_EPSILON","TRIGONOMETRIC_EPSILON","ANGULAR_EPSILON","KAPPA","isZero","isMachineZero","integrate","f","w","A","B","m","sum","Ax","findRoot","df","fx","dx","nx","solveQuadratic","roots","x1","x2","Infinity","Q","R","count","boundless","minB","maxB","isFinite","solveCubic","d","b1","c2","qd","evaluate","x0","tmp","t","r","td","rd","UID","_pools","pool","Point","arg0","arg1","reading","hasY","_set","setAngle","angle","getLength","setLength","_angle","cos","sin","scale","getAngle","getAngleInRadians","PI","setAngleInRadians","getAngleInDegrees","setAngleInDegrees","atan2","div","NaN","dot","acos","getQuadrant","getDirectedAngle","cross","getDistance","squared","normalize","current","rotate","center","subtract","transform","matrix","_transformPoint","multiply","divide","modulo","negate","isInside","Rectangle","contains","isClose","isCollinear","isColinear","isOrthogonal","isNaN","isInQuadrant","point1","point2","random","y1","y2","op","LinkedPoint","owner","setter","_x","_y","_owner","_setter","_dontNotify","getX","setX","getY","setY","isSelected","_selection","_getSelection","setSelected","selected","_changeSelection","Size","hasHeight","size1","size2","LinkedSize","_width","_height","getWidth","setWidth","getHeight","setHeight","arg2","arg3","from","to","frm","next","rt","getPoint","_dontLink","setPoint","getSize","_fw","_fh","setSize","sx","_sx","sy","_sy","h","getLeft","setLeft","getTop","setTop","getRight","setRight","getBottom","setBottom","getCenterX","setCenterX","getCenterY","setCenterY","getCenter","setCenter","getArea","isEmpty","_containsRectangle","_containsPoint","intersects","epsilon","intersect","unite","include","expand","parts","xFirst","LinkedRectangle","internal","Matrix","ok","_a","_b","_c","_d","_tx","_ty","reset","tx","ty","_changed","getValues","_applyMatrix","mx","recursively","_setApplyMatrix","isIdentity","translate","shear","skew","toRadians","tan","a1","c1","d1","a2","b2","d2","tx2","ty2","prepend","tx1","ty1","appended","prepended","invert","det","inverted","concatenate","preConcatenate","chain","_shiftless","_orNullIfIdentity","isInvertible","isSingular","_transformCoordinates","_transformCorners","coords","_transformBounds","inverseTransform","_inverseTransform","decompose","degrees","asin","translation","getTranslation","rotation","scaling","skewing","getScaling","getRotation","applyToContext","prop","Line","arg4","asVector","_px","_py","_vx","_vy","getVector","line","isInfinite","getSide","getSignedDistance","p1x","p1y","v1x","v1y","p2x","p2y","v2x","v2y","dy","u1","u2","uMin","px","py","vx","vy","ccw","_children","_namedChildren","_activeLayer","_currentStyle","Style","_selectionItems","_selectionCount","_updateVersion","flags","view","_needsUpdate","_requested","_autoUpdate","requestUpdate","changes","_changes","changesById","_changesById","children","getCurrentStyle","setCurrentStyle","style","getIndex","getOptions","getLayers","getActiveLayer","getSymbolDefinitions","ids","getItems","class","SymbolItem","definition","_definition","getSymbols","getSelectedItems","selectionItems","selection","isInserted","_updateSelection","selectAll","setFullySelected","deselectAll","addLayer","layer","insertLayer","_remove","_setProject","setName","_insertItem","_created","NO_INSERT","insertChild","_getItems","getItem","removeOn","sets","_removeSets","mousedrag","other","draw","pixelRatio","save","param","offset","viewMatrix","matrices","updateMatrix","restore","strokeWidth","_drawSelection","_serializeFields","_canApplyMatrix","_canScaleStroke","_pivot","_visible","_blendMode","_opacity","_locked","_guide","_clipMask","_selectBounds","_selectChildren","pivot","visible","blendMode","opacity","locked","guide","clipMask","data","_countItemEvent","onFrame","_animateItem","onLoad","onError","_itemHandlers","_initialize","hasProps","_matrix","_parent","_style","parent","fields","fontSize","Group","_defaults","symbol","_symbol","cacheParent","_project","_bounds","_position","_decomposed","_globalMatrix","_clearBoundsCache","getId","getName","_removeNamed","_getOwner","namedChildren","getStyle","setStyle","getSelection","setSelection","flag","isFullySelected","isClipMask","setClipMask","setFillColor","setStrokeColor","getData","setData","getPosition","position","_getPositionFromBounds","setPosition","getPivot","setPivot","getStrokeBounds","stroke","getHandleBounds","handle","getInternalBounds","hasMatrix","opts","_boundsOptions","getStrokeScaling","cacheItem","_getCachedBounds","setBounds","_backup","_getBounds","_updateBoundsCache","_getBoundsCacheKey","noInternal","cacheKey","cached","nonscaling","hasStroke","_getStrokeMatrix","_item","getViewMatrix","_boundsCache","cache","_decompose","decomposed","setRotation","setScaling","getMatrix","setMatrix","getGlobalMatrix","_dontClone","parents","getApplyMatrix","setApplyMatrix","getTransformContent","setTransformContent","getProject","installEvents","getLayer","getParent","setParent","addChild","getChildren","setChildren","removeChildren","addChildren","getFirstChild","getLastChild","getNextSibling","getPreviousSibling","setIndex","insertChildren","_equals","copy","deep","copyAttributes","copyContent","insertAbove","orig","excludeMatrix","rasterize","resolution","raster","Raster","getResolution","topLeft","getTopLeft","floor","boundsSize","bottomRight","getBottomRight","ceil","rasterSize","_contains","_asPathItem","Path","getIntersections","hitTest","_hitTest","HitResult","hitTestAll","all","hitTestChildren","_exclude","child","_hitTestChildren","parentViewMatrix","guides","tolerancePadding","_tolerancePadding","_getStrokePadding","checkSelf","hit","checkPoint","pt","checkPosition","checkCenter","checkBounds","points","_hitTestSelf","fill","hasFill","matches","compare","matchObject","firstOnly","overlapping","inside","recursive","path","childMatrix","inserted","notifySelf","_insertAt","insertBelow","sendToBack","bringToFront","appendTop","appendBottom","moveAbove","moveBelow","addTo","copyTo","reduce","namedArray","notifyParent","_dispose","replaceWith","reverseChildren","reverse","numChildren","isEditable","hasShadow","_getOrder","getList","list1","list2","hasChildren","isAbove","isBelow","isParent","isChild","isDescendant","isAncestor","isSibling","isGroupedWith","_applyRecursively","transformMatrix","fillColor","getFillColor","strokeColor","getStrokeColor","_transformContent","decomp","applyRecursively","globalToLocal","localToGlobal","parentToLocal","localToParent","fitBounds","itemRatio","rectRatio","newBounds","_setStyles","fillStyle","toCanvasStyle","strokeStyle","lineWidth","getStrokeWidth","strokeJoin","getStrokeJoin","strokeCap","getStrokeCap","miterLimit","getMiterLimit","lineJoin","lineCap","dashArray","getDashArray","dashOffset","getDashOffset","setLineDash","lineDashOffset","mozDash","mozDashOffset","blur","getShadowBlur","getShadowOffset","shadowColor","getShadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","parentStrokeMatrix","globalMatrix","mainCtx","itemOffset","prevOffset","normalBlend","nativeBlend","direct","dontStart","clip","_canComposite","pop","strokeMatrix","clipItem","globalAlpha","globalCompositeOperation","setTransform","_draw","dontFinish","getFillRule","process","_isUpdated","updateVersion","CompoundPath","updated","itemSelected","boundsSelected","positionSelected","_drawSelected","color","getSelectedColor","half","pos","beginPath","arc","deltas","delta","moveTo","lineTo","closePath","fillRect","hash","tween","easing","duration","Tween","_handleFrame","time","running","tweenTo","tweenFrom","_clipItem","_getClipItem","isClipped","setClipped","clipped","Shape","radius","_type","_size","_radius","setType","setRadius","getType","getShape","setShape","getRadius","rad","toPath","toShape","dontPaint","untransformed","isCircle","rx","ry","cx","cy","bezierCurveTo","getCornerCenter","halfSize","dir","corner","quadrant","isOnEllipseStroke","padding","vector","hitStroke","hitFill","strokeRadius","strokePadding","outer","inner","createShape","Circle","Ellipse","ellipse","_readEllipse","crossOrigin","_smoothing","image","object","getElementById","naturalHeight","setImage","setSource","_loaded","_image","canvas","_canvas","_setImage","copyCanvas","drawImage","_crossOrigin","_clear","getElement","getLoaded","u","getPpi","getImage","Event","setTimeout","DomEvent","load","error","complete","naturalWidth","_context","setCanvas","_change","setContext","context","toDataURL","Image","getCrossOrigin","setCrossOrigin","getSmoothing","setSmoothing","smoothing","getSubCanvas","getSubRaster","getAverageColor","PathItem","_sampleContext","clearRect","sampleSize","pixels","getImageData","channels","total","alpha","Color","getPixel","setPixel","components","_convert","_alpha","imageData","createImageData","putImageData","setImageData","disabled","DomElement","setPrefixed","setDefinition","SymbolDefinition","getDefinition","getSymbol","setSymbol","dontCenter","setItem","_dontCenter","place","values","segments","handles","ends","Segment","arg5","handleIn","handleOut","SegmentPoint","_point","hasHandles","_handleIn","_handleOut","_path","curve","_curves","_closed","getHandleIn","setHandleIn","getHandleOut","setHandleOut","isSmooth","clearHandles","oldSelection","getPath","getCurve","_segments","getCurves","getLocation","CurveLocation","_segment1","getNext","smooth","_first","_last","factor","getPrevious","p0","p1","p2","k","d1_a","d1_2a","d2_a","d2_2a","N","isLast","reversed","removeSegment","segment","interpolate","handleIn1","handleIn2","handleOut2","handleOut1","change","Curve","arg6","arg7","seg1","seg2","handle1","handle2","segment1","segment2","_segment2","getPoint1","getHandle1","getHandle2","getPoint2","_length","classify","setPoint1","setPoint2","setHandle1","setHandle2","getSegment1","getSegment2","getPoints","getLine","getPart","getPartLength","divideAt","location","divideAtTime","getTimeAt","_setHandles","subdivide","setHandles","splitAt","splitAtTime","getLocationAtTime","isTime","straight","h1","h2","y0","x3","y3","x4","y4","x5","y5","x6","y6","x7","y7","x8","y8","x9","y9","getMonoCurves","io","o0","o1","o2","o3","isStraight","v0","v3","getTimeOf","p3","getNearestTime","minDist","minT","refine","dist","step","flip","isFlatEnough","flatness","ux","uy","_addBounds","minPad","maxPad","s1","s2","isLinear","third","hasLength","isHorizontal","getTangentAtTime","isVertical","getLocationAt","_isTime","getParameterAt","getTimesWithTangent","tangent","getOffsetAtTime","getLocationOf","getOffsetOf","loc","getOffset","getParameterOf","getNearestLocation","getNearestPoint","methods","_evaluateMethods","getLengthIntegrand","ax","bx","ay","by","getIterations","normalized","len","d3","serpentine","t1","t2","hasRoots","t1Ok","t2Ok","f1","f2","ds","forward","rangeLength","diff","guess","getTangent","getWeightedTangent","getNormal","getWeightedNormal","getCurvature","getPeaks","addLocation","locations","overlap","excludeStart","excludeEnd","loc1","loc2","_intersection","clipConvexHull","hullTop","hullBottom","dMin","dMax","clipConvexHullPart","threshold","qx","qy","getCurveLineIntersections","getCurveIntersections","overlaps","getOverlaps","straight1","straight2","before","addCurveIntersections","recursion","calls","tMin","tMax","uMax","tMinClip","tMaxClip","q0x","q0y","q3x","q3y","dp0","dp1","dp2","dp3","hull","getConvexHull","dq0","dq1","dq2","dq3","dist1","dist2","distRatio","tMinNew","tMaxNew","uDiff","getSelfIntersection","info","getSquaredLineLength","straightBoth","l1","l2","pairs","matrix1","matrix2","_returnFirst","length1","length2","values1","values2","boundsCollisions","index1","curve1","collisions1","index2","curve2","den","times","t0","_overlap","_distance","_setCurve","_time","getPointAtTime","_next","_previous","_setPath","_version","_curve","_segment","_setSegment","getSegment","getTime","trySegment","_offset","_curveOffset","getParameter","getCurveOffset","getIntersection","getLastSegment","_ignoreOther","isTouching","inter","isCrossing","t1Inside","t2Inside","c4","c3","offsets","addOffsets","isInRange","getPointAt","v4","a3","a4","hasOverlap","merge","search","found","path1","path2","expanded","pathData","compound","first","isClockwise","setClockwise","clockwise","setPathData","previous","control","relative","getCoord","command","lower","move","cubicCurveTo","quadraticCurveTo","arcTo","winding","_getWinding","onPath","windingL","windingR","getCrossings","minLoc","isPath","itemsFrom","itemsTo","setClosed","paths1","paths2","matched","boundsOverlaps","pathBoundsOverlaps","closed","setSegments","_segmentSelection","_area","getSegments","fullySelected","last","_add","getFirstSegment","_countCurves","getFirstCurve","getLastCurve","isClosed","getPathData","_precision","curX","curY","prevX","prevY","inX","inY","outX","outY","addSegment","skipLine","segs","_adjustCurves","insertSegment","addSegments","insertSegments","removeSegments","_includeCurves","area","_selectSegments","newSelection","last1","last2","first2","first1","simplify","flatten","flattener","PathFlattener","PathFitter","fit","_default","loop","asymmetric","paddingLeft","paddingRight","knots","n_1","rf","hx","hy","seg3","topCenter","seg4","isArc","pt1","pt2","shape","pos2","end2","pos1","end1","start2","cap","numSegments","hitCurves","isCloseEnough","checkSegmentPoint","seg","anchor","checkSegmentPoints","addToArea","checkSegmentStroke","isJoin","_addBevelJoin","_addSquareCap","getOffsetsWithTangent","curveStart","curveTimes","drawSegments","drawSegment","dashLength","drawPart","drawHandles","pX","pY","miniSize","miniHalf","drawHandle","hX","hY","getCurrentSegment","moveBy","curveTo","through","extent","middle","large","rxSq","rySq","xSq","ySq","throughSide","centerSide","ext","inc","z","out","_in","lineBy","curveBy","parameter","cubicCurveBy","quadraticCurveBy","arcBy","prevCoords","processSegment","joinBounds","addPoint","addRound","addJoin","addCap","phi","isArea","normal1","getNormalAtTime","normal2","normal","joinPadding","joinRadius","SQRT2","paddingX","paddingY","xn","xx","yn","yx","ellipseSegments","createPath","createEllipse","bl","getBottomLeft","tl","tr","getTopRight","br","RoundRectangle","Oval","Arc","RegularPolygon","sides","three","Star","radius1","radius2","paths","getCurrentPath","check","operators","getPaths","preparePath","resolve","resolveCrossings","reorient","createResult","result","filterIntersection","traceBoolean","operation","trace","splitBoolean","_path1","_path2","operator","crossings","divideLocations","collectPaths","_overlapsOnly","curvesValues","curveCollisions","curveCollisionsMap","map","propagateWinding","_winding","tracePaths","reorientPaths","added","addPath","linkIntersections","clearCurveHandles","lookup","container","sorted","entry1","containerWinding","getInteriorPoint","entry2","clearLater","renormalizeLocs","prevCurve","prevTime","results","clearCurves","clearLookup","origTime","newCurve","getWinding","dontFlip","vPrev","vClose","curvesList","ia","pv","pa","po","paL","paR","pathWindingL","pathWindingR","onAnyPath","quality","handleCurve","a0","monoCurves","addWinding","windingPrev","a3Prev","totalLength","curveLength","operand","SQRT1_2","wind","pathWinding","otherPath","starts","isValid","_visited","isStart","visitPath","inter1","inter2","over1","over2","branch","visited","valid","finished","branches","getCrossingSegments","collectStarts","collect","nextInter","shift","hasOverlaps","hasCrossings","intersections","nonZero","intercepts","mv","mo0","mo3","maxRecursion","ignoreStraight","minSpan","addCurve","computeParts","halves","tMid","_get","fitCubic","tan1","tan2","uPrime","chordLengthParameterize","maxError","parametersInOrder","generateBezier","findMaxError","reparameterize","tanCenter","C","X","b0","b3","alpha1","alpha2","detC0C1","detC0X","detXC1","c0","segLength","eps","degree","maxDist","P","TextItem","content","_content","_lines","setContent","getContent","getCharacterStyle","setCharacterStyle","getParagraphStyle","setParagraphStyle","PointText","lines","leading","getLeading","font","getFontStyle","textAlign","getJustification","fillText","strokeText","numLines","justification","getTextWidth","colorCtx","gray","rgb","hsb","hsl","gradient","componentParsers","namedColors","transparent","hsbIndices","converters","g","achromatic","t3s","t3","properties","parser","_components","Gradient","_removeOwner","_addOwner","_properties","argType","converted","fromCSS","string","parseInt","trim","isHSL","component","turn","grad","willReadFrequently","parsers","stops","radial","getComponents","_canvasStyle","converter","convert","getAlpha","setAlpha","hasAlpha","col","isGradient","toCSS","hex","canvasGradient","_stops","origin","destination","highlight","inverse","_radial","createRadialGradient","createLinearGradient","addColorStop","_color","_types","_setOwner","components1","components2","setStops","setRadial","_owners","getStops","GradientStop","getRadial","stops1","stops2","rampPoint","setColor","setOffset","getRampPoint","setRampPoint","getColor","itemDefaults","fillRule","strokeScaling","shadowOffset","selectedColor","groupDefaults","fontFamily","fontWeight","textDefaults","_values","isColor","isPoint","applyToChildren","old","_dontMerge","childValue","Font","WindingRule","isStyle","style1","style2","secondary","defaults2","value1","value2","getFontSize","getFontWeight","getFontFamily","getFont","setFont","getPixelSize","handlePrefix","prefixes","suffix","prefix","getStyles","doc","nodeType","ownerDocument","defaultView","getComputedStyle","viewport","body","html","documentElement","getBoundingClientRect","clientLeft","clientTop","pageXOffset","scrollLeft","pageYOffset","scrollTop","getViewportBounds","innerWidth","clientWidth","innerHeight","clientHeight","isInvisible","isInView","getPrefixed","passive","addEventListener","removeEventListener","targetTouches","changedTouches","pageX","clientX","pageY","clientY","getTarget","srcElement","getRelatedTarget","relatedTarget","toElement","requestAnimationFrame","timer","nativeRequest","requested","callbacks","handleCallbacks","functions","callback","setInterval","getCanvasSize","setAttribute","_viewEvents","none","userDrag","userSelect","touchCallout","contentZooming","tapHighlightColor","_windowEvents","resize","setViewSize","Stats","_stats","stats","domElement","appendChild","_element","_pixelRatio","devicePixelRatio","_setElementSize","_viewSize","_views","_viewsById","_focused","_frameItems","_frameItemCount","_itemEvents","native","virtual","node","_animate","play","pause","_count","getAutoUpdate","setAutoUpdate","autoUpdate","update","now","Date","animate","_handleFrameItems","getPixelRatio","getViewSize","isVisible","parentNode","temp","createElement","removeChild","getZoom","setZoom","zoom","scrollBy","projectToView","viewToProject","getEventPoint","CanvasView","prevFocus","tempFocus","mousedown","mousemove","mouseup","dragging","mouseDown","pointerEnabled","msPointerEnabled","viewEvents","docEvents","mouseout","nodeName","handleMouseMove","scroll","_handleMouseEvent","downPoint","lastPoint","downItem","overItem","dragItem","clickItem","clickTime","dblClick","called","prevented","fallbacks","doubleclick","wasInView","itemEventsMap","click","mouseenter","mouseleave","itemEvents","hitItems","nativeMove","tool","inView","hitItem","mouse","substr","emitMouseEvent","drag","emitMouseEvents","down","up","cancelable","preventDefault","_handleKeyEvent","character","keyEvent","KeyEvent","sign","_resetState","prevPoint","stopItem","mouseEvent","stopped","MouseEvent","fallback","HTMLCanvasElement","deviceRatio","backingStoreRatio","firefox","prevFont","measureText","stopPropagation","getTimeStamp","timeStamp","getModifiers","Key","modifiers","metaFixMap","downKey","keyLookup","charLookup","keyMap","charMap","alt","meta","capsLock","space","option","mac","getKey","keyIdentifier","String","fromCharCode","keyCode","keydown","altKey","metaKey","ctrlKey","keypress","charCode","keyup","isDown","ToolEvent","_choosePoint","toolPoint","getLastPoint","_lastPoint","setLastPoint","getDownPoint","_downPoint","setDownPoint","getMiddlePoint","_middlePoint","setMiddlePoint","middlePoint","getDelta","_delta","setDelta","getCount","setCount","Tool","_moveCount","_downCount","getMinDistance","_minDistance","setMinDistance","minDistance","_maxDistance","getMaxDistance","setMaxDistance","maxDistance","getFixedDistance","setFixedDistance","distance","easings","linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","isFunction","_then","_startTime","state","_keys","_parsedKeys","_parseKeys","_from","_getState","_to","then","progress","getValue","__add","__subtract","__multiply","_setProperty","onUpdate","startTime","_getProperty","resolved","_resolveValue","_calculate","parsed","calculateBinary","Http","request","xhr","XMLHttpRequest","open","method","url","async","mimeType","overrideMimeType","onload","status","responseText","onerror","message","send","canvases","sr","sg","sb","sa","bg","bb","ba","dr","dg","db","getLum","setLum","mn","lmn","ln","mxl","getSat","setSat","md","modes","screen","overlay","darken","lighten","difference","exclusion","hue","saturation","luminosity","average","negation","mode","srcContext","dstContext","srcCanvas","dstData","SvgElement","svg","xmlns","xlink","attributeNamespace","href","attributes","namespace","setAttributeNS","tag","createElementNS","getAttributeNS","SvgStyles","true","false","property","attribute","toSVG","fromSVG","exportFilter","getTransform","coordinates","attrs","trans","exportGroup","childNode","exportSVG","exportShape","exporters","embedImages","matchShapes","definitionItem","viewBox","overflow","textContent","svgs","__id","typeId","exportDefinitions","defs","insertBefore","firstChild","XMLSerializer","serializeToString","exporter","onExport","reduceAttributes","exportGradient","gradientNode","getGradient","getOrigin","getDestination","getHighlight","fy","gradientUnits","stopColor","visibility","setOptions","rootSize","allowNull","allowPercent","defaultValue","defaultX","defaultY","convertValue","importGroup","nodes","childNodes","isClip","isDefs","currentStyle","applyAttributes","querySelectorAll","importNode","importPoly","importGradient","scaleToBounds","_scaleToBounds","importers","clippath","polygon","polyline","lineargradient","radialgradient","use","circle","text","switch","applyTransform","transforms","applyOpacity","gradientTransform","setVisible","display","percent","styles","group","tagName","isElement","nextSibling","importer","onImport","expandShapes","importSVG","DOMParser","parseFromString","File","reader","FileReader","readAsText","mod","acorn","inpt","inputLen","input","initTokenState","parseTopLevel","program","lastStart","lastEnd","tokPos","lastEndLoc","line_loc_t","inFunction","strict","labels","readToken","startNode","tokType","_eof","stmt","parseStatement","isUseStrict","setStrict","finishNode","sourceFile","tokStart","tokEnd","tokStartLoc","tokEndLoc","tokVal","tokRegexpAllowed","tokCurLine","tokLineStart","containsEsc","defaultOptions","ecmaVersion","strictSemicolons","allowTrailingCommas","forbidReserved","allowReturnOutsideFunction","onComment","ranges","directSourceFile","opt","getLineInfo","cur","lineBreak","lastIndex","column","raise","SyntaxError","raisedAt","tokenize","getToken","forceRegexp","startLoc","endLoc","jumpTo","reAllowed","skipSpace","empty","_num","_regexp","_string","_break","keyword","_case","beforeExpr","_catch","_continue","_debugger","_do","isLoop","_else","_finally","_for","_function","_if","_return","_switch","_throw","_try","_var","_while","_with","_new","_this","_null","atomValue","_true","_false","binop","keywordTypes","_bracketL","_bracketR","_braceL","_braceR","_parenL","_parenR","_comma","_semi","_colon","_dot","_question","_slash","_eq","isAssign","_assign","_incDec","postfix","isUpdate","_prefix","_logicalOR","_logicalAND","_bitwiseOR","_bitwiseXOR","_bitwiseAND","_equality","_relational","_bitShift","_plusMin","_multiplyModulo","kw","tokTypes","bracketL","bracketR","braceL","braceR","parenL","parenR","comma","semi","colon","question","slash","eq","eof","num","regexp","makePredicate","words","cats","compareTo","arr","cat","Function","isReservedWord3","isReservedWord5","isStrictReservedWord","isStrictBadIdWord","isKeyword","nonASCIIwhitespace","nonASCIIidentifierStartChars","nonASCIIidentifierStart","RegExp","nonASCIIidentifier","newline","isIdentifierStart","isIdentifierChar","finishToken","skipLineComment","ch","charCodeAt","skipBlockComment","readRegexp","readWord","tok","getTokenFromCode","readNumber","readInt","readString","quote","octal","readHexChar","finishOp","escaped","inClass","charAt","mods","readWord1","radix","startsWithDot","isFloat","word","esc","escStr","strct","lastIndexOf","node_t","node_loc_t","range","startNodeFrom","expression","eat","canInsertSemicolon","semicolon","unexpected","expect","checkLVal","expr","loopLabel","kind","switchLabel","sawDefault","starttype","isBreak","label","parseIdent","lab","parseParenExpression","parseFor","parseVar","declarations","parseForIn","parseExpression","parseFunction","consequent","alternate","argument","discriminant","cases","isCase","block","parseBlock","clause","guard","guardedHandlers","finalizer","maybeName","allowStrict","oldStrict","noIn","decl","noComma","parseMaybeAssign","expressions","parseMaybeConditional","parseExprOp","minPrec","prec","parseMaybeUnary","parseSubscripts","parseExprAtom","noCalls","computed","callee","parseExprList","raw","tokStartLoc1","tokStart1","elements","parseObj","sawGetSet","parsePropertyName","isGetSet","conflict","isStatement","params","oldInFunc","oldLabels","close","allowTrailingComma","allowEmpty","elts","liberal","binaryOperators","unaryOperators","__self","__$__","$__","compile","insertions","insertion","getCode","replaceCode","sourceMaps","paperFeatures","offsetCode","lineBreaks","getElementsByTagName","innerHTML","mappings","encodeVLQ","base64","safari","file","names","sourceRoot","sources","sourcesContent","operatorOverloading","moduleExports","walkAST","handleOverloading","between","parentType","exp","handleExports","declaration","specifiers","dec","specifier","preserveParens","sourceType","btoa","unescape","encodeURIComponent","toolHandlers","expose","compiled","script","head","createTextNode","__paperscript__","onResize","setOnResize","setOnFrame","loadScript","canvasId","scopeAttribute","baseURI","loadAll","readyState","calculateUnary","Symbol","PlacedSymbol","amd","$f0e98b2c23d58ac9$export$56b48cc5d7560ffb","$f0e98b2c23d58ac9$export$332f4d7bee38db93","$f0e98b2c23d58ac9$export$f435f793048e7a0f","$f0e98b2c23d58ac9$export$d53f8326294b31d8","$f0e98b2c23d58ac9$export$b54c7ea7aabba5c8","$f0e98b2c23d58ac9$export$a1aa2dd4ad0d3f6","$f0e98b2c23d58ac9$export$866e20207bbc41f2","$f0e98b2c23d58ac9$export$2c19a3e3b4008fff","$f0e98b2c23d58ac9$export$268622f0f1cbc82b","$f0e98b2c23d58ac9$export$13807d9ee5a34a42","$f0e98b2c23d58ac9$export$7387db7caf96fcdb","$f0e98b2c23d58ac9$export$7af82191547c5ff7","$f0e98b2c23d58ac9$export$ba43bf67f3d48107","$f0e98b2c23d58ac9$export$7acfa6ed01010e37","$f0e98b2c23d58ac9$export$68e7b4c4d99215d9","$f0e98b2c23d58ac9$export$2b5f701edfbd6f00","$f0e98b2c23d58ac9$export$85c928794f8d04d4","$f0e98b2c23d58ac9$export$50792b0e93539fde","$f0e98b2c23d58ac9$export$83d89fbfd8236492","$f0e98b2c23d58ac9$export$98e6a39c04603d36","$f0e98b2c23d58ac9$export$61f24eb03dd7ce92","$f0e98b2c23d58ac9$export$5f8c09e3ae6f64e1","$f0e98b2c23d58ac9$var$astralIdentifierCodes","$f0e98b2c23d58ac9$var$astralIdentifierStartCodes","$f0e98b2c23d58ac9$var$nonASCIIidentifierStartChars","$f0e98b2c23d58ac9$var$reservedWords","strictBind","$f0e98b2c23d58ac9$var$ecma5AndLessKeywords","$f0e98b2c23d58ac9$var$keywords$1","$f0e98b2c23d58ac9$var$keywordRelationalOperator","$f0e98b2c23d58ac9$var$nonASCIIidentifierStart","$f0e98b2c23d58ac9$var$nonASCIIidentifier","$f0e98b2c23d58ac9$var$isInAstralSet","astral","conf","startsExpr","updateContext","$f0e98b2c23d58ac9$var$binop","$f0e98b2c23d58ac9$var$beforeExpr","$f0e98b2c23d58ac9$var$startsExpr","$f0e98b2c23d58ac9$var$kw","privateId","questionDot","arrow","template","invalidTemplate","ellipsis","backQuote","dollarBraceL","incDec","logicalOR","logicalAND","bitwiseOR","bitwiseXOR","bitwiseAND","equality","relational","bitShift","plusMin","star","starstar","coalesce","_const","_super","_extends","_export","_import","_instanceof","_typeof","_void","_delete","$f0e98b2c23d58ac9$var$nextLineBreak","$f0e98b2c23d58ac9$var$skipWhiteSpace","$f0e98b2c23d58ac9$var$ref","$f0e98b2c23d58ac9$var$hasOwnProperty","$f0e98b2c23d58ac9$var$toString","$f0e98b2c23d58ac9$var$hasOwn","hasOwn","propName","$f0e98b2c23d58ac9$var$isArray","$f0e98b2c23d58ac9$var$regexpCache","$f0e98b2c23d58ac9$var$wordsRegexp","$f0e98b2c23d58ac9$var$codePointToString","$f0e98b2c23d58ac9$var$loneSurrogate","nextBreak","onInsertedSemicolon","onTrailingComma","allowReserved","allowImportExportEverywhere","allowAwaitOutsideFunction","allowSuperOutsideMethod","allowHashBang","checkPrivateFields","onToken","$f0e98b2c23d58ac9$var$warnedAboutEcmaVersion","$f0e98b2c23d58ac9$var$functionFlags","generator","$f0e98b2c23d58ac9$var$SCOPE_FUNCTION","startPos","$f0e98b2c23d58ac9$var$getOptions","console","warn","tokens","token","comment","keywords","reserved","reservedWords","reservedStrict","reservedWordsStrict","reservedWordsStrictBind","lineStart","curLine","curPosition","lastTokEndLoc","lastTokStartLoc","lastTokStart","lastTokEnd","initialContext","exprAllowed","inModule","strictDirective","potentialArrowAt","potentialArrowInForAwait","yieldPos","awaitPos","awaitIdentPos","undefinedExports","scopeStack","enterScope","regexpState","privateNameStack","$f0e98b2c23d58ac9$var$prototypeAccessors","inGenerator","inAsync","canAwait","allowSuper","allowDirectSuper","treatFunctionsAsVar","allowNewDotTarget","inClassStaticBlock","nextToken","currentVarScope","inClassFieldInit","currentThisScope","treatFunctionsAsVarInScope","currentScope","plugins","cls","parseExpressionAt","tokenizer","defineProperties","$f0e98b2c23d58ac9$var$pp$9","$f0e98b2c23d58ac9$var$literal","spaceAfter","isContextual","eatContextual","expectContextual","insertSemicolon","afterTrailingComma","notNext","$f0e98b2c23d58ac9$var$DestructuringErrors","shorthandAssign","trailingComma","parenthesizedAssign","parenthesizedBind","doubleProto","checkPatternErrors","refDestructuringErrors","raiseRecoverable","parens","checkExpressionErrors","andThrow","checkYieldAwaitInDefaultParams","isSimpleAssignTarget","$f0e98b2c23d58ac9$var$pp$8","adaptDirectivePrologue","$f0e98b2c23d58ac9$var$loopLabel","$f0e98b2c23d58ac9$var$switchLabel","isLet","skip","nextCh","ident","isAsyncFunction","after","topLevel","parseBreakContinueStatement","parseDebuggerStatement","parseDoStatement","parseForStatement","parseFunctionStatement","parseClass","parseIfStatement","parseReturnStatement","parseSwitchStatement","parseThrowStatement","parseTryStatement","parseVarStatement","parseWhileStatement","parseWithStatement","parseEmptyStatement","parseExpressionStatement","parseImport","parseExport","parseLabeledStatement","awaitAt","init$1","await","startsWithLet","isForOf","initPos","parseExprSubscripts","toAssignable","checkLValPattern","isAsync","declarationPosition","$f0e98b2c23d58ac9$var$FUNC_STATEMENT","$f0e98b2c23d58ac9$var$FUNC_HANGING_STATEMENT","exitScope","$f0e98b2c23d58ac9$var$empty$1","parseCatchClauseParam","parseBindingAtom","simple","allowMissingInitializer","i$1","label$1","statementStart","createNewLexicalScope","exitStrict","isForIn","isFor","parseVarId","$f0e98b2c23d58ac9$var$checkKeyName","statement","allowExpressionBody","forInit","initFunction","checkLValSimple","oldYieldPos","oldAwaitPos","oldAwaitIdentPos","parseFunctionParams","parseFunctionBody","parseBindingList","parseClassId","parseClassSuper","privateNameMap","enterClassBody","classBody","hadConstructor","parseClassElement","superClass","$f0e98b2c23d58ac9$var$isPrivateNameConflicted","curr","static","exitClassBody","constructorAllowsSuper","keyName","isGenerator","isStatic","parseClassStaticBlock","isClassElementNameStart","lastValue","startNodeAt","parseClassElementName","isConstructor","parseClassMethod","parseClassField","parsePrivateIdent","allowsDirectSuper","parseMethod","$f0e98b2c23d58ac9$var$SCOPE_CLASS_STATIC_BLOCK","declared","used","parseExportAllDeclaration","exported","parseModuleExportName","checkExport","parseExportDefaultDeclaration","shouldParseExportStatement","parseExportDeclaration","checkVariableExport","parseExportSpecifiers","spec","checkUnreserved","local","checkLocalExport","fNode","cNode","checkPatternExport","pat","list$1","elt","decls","parseExportSpecifier","parseImportSpecifiers","parseImportSpecifier","imported","parseImportDefaultSpecifier","parseImportNamespaceSpecifier","stringLiteral","parseLiteral","statements","isDirectiveCandidate","directive","$f0e98b2c23d58ac9$var$pp$7","isBinding","toAssignableList","exprList","parseSpread","parseRestBinding","allowModifiers","rest","parseBindingListItem","parseAssignableListItem","elem","parseMaybeDefault","bindingType","checkClashes","isBind","declareName","checkLValInnerPattern","isExpr","preserveSpace","override","b_stat","b_expr","b_tmpl","p_stat","p_expr","q_tmpl","tryReadTemplateToken","f_stat","f_expr","f_expr_gen","f_gen","$f0e98b2c23d58ac9$var$pp$6","curContext","braceIsBlock","prevType","inGeneratorContext","overrideContext","tokenCtx","statementParens","allowed","$f0e98b2c23d58ac9$var$pp$5","checkPropClash","propHash","shorthand","afterLeftParse","parseYield","ownDestructuringErrors","oldParenAssign","oldTrailingComma","oldDoubleProto","parseExprOps","leftStartPos","leftStartLoc","logical","buildBinary","sawUnary","parseAwait","$f0e98b2c23d58ac9$var$isLocalVariableAccess","$f0e98b2c23d58ac9$var$isPrivateFieldAccess","node$1","maybeAsyncArrow","optionalChained","parseSubscript","optional","chainNode","shouldParseAsyncArrow","parseSubscriptAsyncArrow","parseArrowExpression","optionalSupported","node$2","quasi","parseTemplate","isTagged","forNew","canBeArrow","regex","pattern","parseParenAndDistinguishExpression","parseNew","parseExprImport","parseExprAtomDefault","parseDynamicImport","parseImportMeta","errorPos","bigint","shouldParseArrow","spreadStart","innerStartPos","innerStartLoc","lastIsComma","parseParenItem","innerEndPos","innerEndLoc","parseParenArrowList","finishNodeAt","par","$f0e98b2c23d58ac9$var$empty","parseTemplateElement","cooked","tail","curElt","quasis","isAsyncProp","isPattern","parseProperty","parsePropertyValue","parseGetterSetter","paramCount","copyNode","isArrowFunction","isMethod","isExpression","useStrict","checkParams","nonSimple","isSimpleParamList","allowDuplicates","nameHash","re","parseIdentNode","delegate","$f0e98b2c23d58ac9$var$pp$4","$f0e98b2c23d58ac9$var$pp$3","$f0e98b2c23d58ac9$var$Scope","var","lexical","redeclared","scope$1","scope$2","scope$3","$f0e98b2c23d58ac9$var$SCOPE_TOP","$f0e98b2c23d58ac9$var$pp$2","$f0e98b2c23d58ac9$var$finishNodeAt","newNode","$f0e98b2c23d58ac9$var$ecma9BinaryProperties","$f0e98b2c23d58ac9$var$ecma10BinaryProperties","$f0e98b2c23d58ac9$var$ecma12BinaryProperties","$f0e98b2c23d58ac9$var$ecma11BinaryProperties","$f0e98b2c23d58ac9$var$unicodeBinaryProperties","$f0e98b2c23d58ac9$var$unicodeBinaryPropertiesOfStrings","$f0e98b2c23d58ac9$var$unicodeGeneralCategoryValues","$f0e98b2c23d58ac9$var$ecma9ScriptValues","$f0e98b2c23d58ac9$var$ecma10ScriptValues","$f0e98b2c23d58ac9$var$ecma11ScriptValues","$f0e98b2c23d58ac9$var$ecma12ScriptValues","$f0e98b2c23d58ac9$var$ecma13ScriptValues","$f0e98b2c23d58ac9$var$unicodeScriptValues","$f0e98b2c23d58ac9$var$data","$f0e98b2c23d58ac9$var$i","$f0e98b2c23d58ac9$var$list","$f0e98b2c23d58ac9$var$buildUnicodeData","binary","binaryOfStrings","nonBinary","General_Category","Script","Script_Extensions","gc","sc","scx","$f0e98b2c23d58ac9$var$pp$1","$f0e98b2c23d58ac9$var$BranchID","separatedFrom","sibling","$f0e98b2c23d58ac9$var$RegExpValidationState","validFlags","unicodeProperties","switchU","switchV","switchN","lastIntValue","lastStringValue","lastAssertionIsQuantifiable","numCapturingParens","maxBackReference","groupNames","backReferenceNames","branchID","$f0e98b2c23d58ac9$var$isSyntaxCharacter","$f0e98b2c23d58ac9$var$isControlLetter","$f0e98b2c23d58ac9$var$isUnicodePropertyNameCharacter","$f0e98b2c23d58ac9$var$isDecimalDigit","$f0e98b2c23d58ac9$var$isHexDigit","$f0e98b2c23d58ac9$var$hexToInt","$f0e98b2c23d58ac9$var$isOctalDigit","unicodeSets","unicode","at","forceU","nextIndex","lookahead","advance","eatChars","chs","validateRegExpFlags","validateRegExpPattern","regexp_pattern","$f0e98b2c23d58ac9$var$hasProp","_","regexp_disjunction","trackDisjunction","regexp_alternative","regexp_eatQuantifier","regexp_eatTerm","regexp_eatAssertion","regexp_eatAtom","regexp_eatExtendedAtom","lookbehind","noError","regexp_eatQuantifierPrefix","regexp_eatBracedQuantifier","regexp_eatDecimalDigits","regexp_eatPatternCharacters","regexp_eatReverseSolidusAtomEscape","regexp_eatCharacterClass","regexp_eatUncapturingGroup","regexp_eatCapturingGroup","regexp_eatAtomEscape","regexp_groupSpecifier","regexp_eatInvalidBracedQuantifier","regexp_eatExtendedPatternCharacter","regexp_eatSyntaxCharacter","regexp_eatGroupName","known","altID","regexp_eatRegExpIdentifierName","regexp_eatRegExpIdentifierStart","regexp_eatRegExpIdentifierPart","regexp_eatRegExpUnicodeEscapeSequence","regexp_eatBackReference","regexp_eatCharacterClassEscape","regexp_eatCharacterEscape","regexp_eatKGroupName","regexp_eatDecimalEscape","regexp_eatControlEscape","regexp_eatCControlLetter","regexp_eatZero","regexp_eatHexEscapeSequence","regexp_eatLegacyOctalEscapeSequence","regexp_eatIdentityEscape","regexp_eatControlLetter","regexp_eatFixedHexDigits","lead","leadSurrogateEnd","trail","regexp_eatHexDigits","regexp_eatUnicodePropertyValueExpression","regexp_eatUnicodePropertyName","regexp_eatUnicodePropertyValue","regexp_validateUnicodePropertyNameAndValue","regexp_eatLoneUnicodePropertyNameOrValue","nameOrValue","regexp_validateUnicodePropertyNameOrValue","regexp_classContents","regexp_classSetExpression","regexp_nonEmptyClassRanges","regexp_eatClassAtom","regexp_eatClassEscape","ch$1","regexp_eatClassControlLetter","subResult","regexp_eatClassSetRange","regexp_eatClassSetOperand","regexp_eatClassSetCharacter","regexp_eatClassStringDisjunction","regexp_eatNestedClass","result$1","regexp_classStringDisjunctionContents","regexp_classString","regexp_eatClassSetReservedPunctuator","regexp_eatOctalDigit","n1","n2","$f0e98b2c23d58ac9$var$pp","$f0e98b2c23d58ac9$var$stringToBigInt","BigInt","ignoreEscapeSequenceInKeyword","iterator","this$1$1","done","fullCharCodeAtPos","startSkip","readToken_dot","next2","readToken_slash","readToken_mult_modulo_exp","tokentype","readToken_pipe_amp","readToken_caret","readToken_plus_min","readToken_lt_gt","readToken_eq_excl","readToken_question","next2$1","readToken_numberSign","readRadixNumber","flagsStart","maybeLegacyOctalNumericLiteral","allowSeparators","isLegacyOctalNumericLiteral","lastCode","val$1","readCodePoint","codePos","invalidStringToken","chunkStart","readEscapedChar","$f0e98b2c23d58ac9$var$INVALID_TEMPLATE_ESCAPE_ERROR","inTemplateElement","readTmplToken","readInvalidTemplateToken","inTemplate","octalStr","escStart","Parser","Position","SourceLocation","Node","TokenType","TokContext","tokContexts","Token","isNewLine","lineBreakG","$83a7a00c3abde207$export$2e2bcd8739ae039","layout","tiles","$83a7a00c3abde207$var$layout","solution","$5f77a1132959636d$var$container","$5f77a1132959636d$var$dialog","$5f77a1132959636d$var$help","showModal","scrollIntoView","$2bfca13ad910c056$export$2e2bcd8739ae039","selfOptions","pipes","pipe","pipeArg","processor","lastPipe","nextPipe","nextAfterChildren","hasResult","$4b3a4f9971dfd11f$export$2e2bcd8739ae039","filters","debug","filterName","exiting","resultCheck","msg","shouldHaveResult","should","noResult","$e9b2e8bb279f614c$export$2e2bcd8739ae039","setResult","exit","childName","root","$3383b9bfdfb3a92e$export$2e2bcd8739ae039","$3383b9bfdfb3a92e$var$cloneRegExp","regexMatch","cloned","$ea655194af34c016$export$2e2bcd8739ae039","cloneDiffValues","$fcf8dd03cdbf4430$export$2e2bcd8739ae039","$82864bc3974cd149$export$2e2bcd8739ae039","$cb6bc7c1a2416044$export$32e2de1ca8818233","leftType","rightType","leftIsArray","rightIsArray","$cb6bc7c1a2416044$export$b17cd1eea2ef8348","nested","nonNestedDelta","regexArgs","$cb6bc7c1a2416044$export$9d101d90be8482a0","$fad0d73b9c59b660$export$3b212405c262fd6e","_t","$fad0d73b9c59b660$export$81d88d7d212bb18e","propertyFilter","$fad0d73b9c59b660$export$b17cd1eea2ef8348","nestedDelta","objectDelta","$fad0d73b9c59b660$export$575f4633982343e8","deltaWithChildren","$fad0d73b9c59b660$export$9d101d90be8482a0","$fad0d73b9c59b660$export$84a677efe7258d3b","$f03df935593440df$var$defaultMatch","array1","array2","$f03df935593440df$var$lengthMatrix","len1","len2","$f03df935593440df$var$backtrack","subsequence","sequence","indices1","indices2","valueAtMatrixAbove","$f03df935593440df$export$2e2bcd8739ae039","innerContext","$a19812cbdcd458da$var$matchItems","objectHash","matchByPosition","hashCache1","hash1","hashCache2","hash2","$a19812cbdcd458da$export$32e2de1ca8818233","matchContext","commonHead","commonTail","$a19812cbdcd458da$var$arraysHaveMatchByRef","trimmed1","trimmed2","seq","removedItems","detectMove","arrays","includeValueOnMove","removedItemsLength","indexOnArray2","isMove","removeItemIndex1","$a19812cbdcd458da$var$compare","numerically","numericallyBy","$a19812cbdcd458da$export$b17cd1eea2ef8348","toRemove","toInsert","toModify","removedOrMovedIndex","numberIndex","indexDiff","removedValue","toInsertLength","toModifyLength","modification","$a19812cbdcd458da$export$575f4633982343e8","$a19812cbdcd458da$export$9d101d90be8482a0","newName","arrayMoveDelta","arrayDelta","$a19812cbdcd458da$var$reverseArrayDeltaIndex","itemDelta","reverseIndex","deltaIndex","deltaItem","moveFromIndex","moveToIndex","$a19812cbdcd458da$export$84a677efe7258d3b","$db273bf4a2715f93$export$32e2de1ca8818233","$53af34752a83816e$var$cachedDiffPatch","$53af34752a83816e$var$getDiffMatchPatch","required","textDiff","diffMatchPatch","diff_match_patch_not_found","txt1","txt2","patch_toText","patch_make","patch","patch_apply","patch_fromText","textPatchFailed","$53af34752a83816e$export$32e2de1ca8818233","minLength","$53af34752a83816e$export$b17cd1eea2ef8348","textDiffDelta","$53af34752a83816e$var$textDeltaReverse","lineTmp","header","headerRegex","$53af34752a83816e$export$9d101d90be8482a0","$356a848867d17460$export$2e2bcd8739ae039","unpatch","$b8ea597934691048$var$zero$1","buf","$b8ea597934691048$var$extra_lbits","Uint8Array","$b8ea597934691048$var$extra_dbits","$b8ea597934691048$var$extra_blbits","$b8ea597934691048$var$bl_order","$b8ea597934691048$var$static_ltree","$b8ea597934691048$var$static_dtree","$b8ea597934691048$var$D_CODES$1","$b8ea597934691048$var$_dist_code","$b8ea597934691048$var$_length_code","$b8ea597934691048$var$MAX_MATCH$1","$b8ea597934691048$var$base_length","$b8ea597934691048$var$base_dist","$b8ea597934691048$var$StaticTreeDesc","static_tree","extra_bits","extra_base","elems","max_length","has_stree","$b8ea597934691048$var$TreeDesc","dyn_tree","stat_desc","max_code","$b8ea597934691048$var$d_code","$b8ea597934691048$var$put_short","pending_buf","pending","$b8ea597934691048$var$send_bits","bi_valid","$b8ea597934691048$var$Buf_size","bi_buf","$b8ea597934691048$var$send_code","tree","$b8ea597934691048$var$bi_reverse","$b8ea597934691048$var$bi_flush","$b8ea597934691048$var$gen_bitlen","bits","xbits","stree","extra","bl_count","heap","heap_max","opt_len","static_len","$b8ea597934691048$var$gen_codes","next_code","$b8ea597934691048$var$MAX_BITS$1","$b8ea597934691048$var$tr_static_init","$b8ea597934691048$var$LENGTH_CODES$1","$b8ea597934691048$var$L_CODES$1","$b8ea597934691048$var$LITERALS$1","$b8ea597934691048$var$init_block","dyn_ltree","dyn_dtree","bl_tree","$b8ea597934691048$var$END_BLOCK","sym_next","$b8ea597934691048$var$bi_windup","$b8ea597934691048$var$smaller","depth","_n2","_m2","$b8ea597934691048$var$pqdownheap","heap_len","$b8ea597934691048$var$compress_block","ltree","dtree","lc","sym_buf","$b8ea597934691048$var$build_tree","$b8ea597934691048$var$scan_tree","curlen","prevlen","nextlen","max_count","min_count","$b8ea597934691048$var$REP_3_6","$b8ea597934691048$var$REPZ_3_10","$b8ea597934691048$var$REPZ_11_138","$b8ea597934691048$var$send_tree","$b8ea597934691048$var$build_bl_tree","max_blindex","l_desc","d_desc","bl_desc","$b8ea597934691048$var$BL_CODES$1","$b8ea597934691048$var$send_all_trees","lcodes","dcodes","blcodes","rank","$b8ea597934691048$var$detect_data_type","block_mask","$b8ea597934691048$var$static_init_done","$b8ea597934691048$var$_tr_stored_block$1","stored_len","$b8ea597934691048$var$STORED_BLOCK","subarray","$b8ea597934691048$var$trees","_tr_init","_tr_stored_block","_tr_flush_block","opt_lenb","static_lenb","level","strm","data_type","strategy","$b8ea597934691048$var$STATIC_TREES","$b8ea597934691048$var$DYN_TREES","_tr_tally","sym_end","_tr_align","$b8ea597934691048$var$adler32_1","adler","$b8ea597934691048$var$crcTable","Uint32Array","$b8ea597934691048$var$makeTable","table","$b8ea597934691048$var$crc32_1","crc","$b8ea597934691048$var$messages","$b8ea597934691048$var$constants$2","Z_NO_FLUSH","Z_PARTIAL_FLUSH","Z_SYNC_FLUSH","Z_FULL_FLUSH","Z_FINISH","Z_BLOCK","Z_TREES","Z_OK","Z_STREAM_END","Z_NEED_DICT","Z_ERRNO","Z_STREAM_ERROR","Z_DATA_ERROR","Z_MEM_ERROR","Z_BUF_ERROR","Z_NO_COMPRESSION","Z_BEST_SPEED","Z_BEST_COMPRESSION","Z_DEFAULT_COMPRESSION","Z_FILTERED","Z_HUFFMAN_ONLY","Z_RLE","Z_FIXED","Z_DEFAULT_STRATEGY","Z_BINARY","Z_TEXT","Z_UNKNOWN","Z_DEFLATED","$b8ea597934691048$var$_tr_init","$b8ea597934691048$var$_tr_stored_block","$b8ea597934691048$var$_tr_flush_block","$b8ea597934691048$var$_tr_tally","$b8ea597934691048$var$_tr_align","$b8ea597934691048$var$Z_NO_FLUSH$2","$b8ea597934691048$var$Z_PARTIAL_FLUSH","$b8ea597934691048$var$Z_FULL_FLUSH$1","$b8ea597934691048$var$Z_FINISH$3","$b8ea597934691048$var$Z_BLOCK$1","$b8ea597934691048$var$Z_OK$3","$b8ea597934691048$var$Z_STREAM_END$3","$b8ea597934691048$var$Z_STREAM_ERROR$2","$b8ea597934691048$var$Z_DATA_ERROR$2","$b8ea597934691048$var$Z_BUF_ERROR$1","$b8ea597934691048$var$Z_DEFAULT_COMPRESSION$1","$b8ea597934691048$var$Z_FILTERED","$b8ea597934691048$var$Z_HUFFMAN_ONLY","$b8ea597934691048$var$Z_RLE","$b8ea597934691048$var$Z_FIXED","$b8ea597934691048$var$Z_DEFAULT_STRATEGY$1","$b8ea597934691048$var$Z_UNKNOWN","$b8ea597934691048$var$Z_DEFLATED$2","$b8ea597934691048$var$err","errorCode","$b8ea597934691048$var$rank","$b8ea597934691048$var$zero","$b8ea597934691048$var$slide_hash","wsize","w_size","hash_size","$b8ea597934691048$var$HASH","hash_shift","hash_mask","$b8ea597934691048$var$flush_pending","avail_out","output","pending_out","next_out","total_out","$b8ea597934691048$var$flush_block_only","block_start","strstart","$b8ea597934691048$var$put_byte","$b8ea597934691048$var$putShortMSB","$b8ea597934691048$var$read_buf","avail_in","next_in","wrap","total_in","$b8ea597934691048$var$longest_match","cur_match","chain_length","max_chain_length","scan","best_len","prev_length","nice_match","limit","$b8ea597934691048$var$MAX_MATCH","_win","wmask","w_mask","strend","scan_end1","scan_end","good_match","match_start","$b8ea597934691048$var$fill_window","more","_w_size","window_size","ins_h","$b8ea597934691048$var$deflate_stored","flush","min_block","pending_buf_size","have","high_water","$b8ea597934691048$var$deflate_fast","hash_head","bflush","match_length","max_lazy_match","$b8ea597934691048$var$MIN_MATCH","$b8ea597934691048$var$deflate_slow","max_insert","prev_match","match_available","$b8ea597934691048$var$deflate_rle","$b8ea597934691048$var$deflate_huff","$b8ea597934691048$var$Config","good_length","max_lazy","nice_length","max_chain","$b8ea597934691048$var$configuration_table","$b8ea597934691048$var$lm_init","$b8ea597934691048$var$DeflateState","gzhead","gzindex","last_flush","w_bits","hash_bits","Uint16Array","$b8ea597934691048$var$HEAP_SIZE","$b8ea597934691048$var$MAX_BITS","lit_bufsize","$b8ea597934691048$var$deflateStateCheck","$b8ea597934691048$var$deflateResetKeep","$b8ea597934691048$var$deflateReset","ret","$b8ea597934691048$var$deflate_1$2","deflateInit2","windowBits","memLevel","deflateSetHeader","deflate","old_flush","level_flags","hcrc","beg","gzhead_extra","bstate","deflateEnd","deflateSetDictionary","dictLength","tmpDict","avail","$b8ea597934691048$var$_has","$b8ea597934691048$var$common","TypeError","flattenChunks","chunks","chunk","$b8ea597934691048$var$STR_APPLY_UIA_OK","__","$b8ea597934691048$var$_utf8len","$b8ea597934691048$var$buf2binstring","$b8ea597934691048$var$strings","string2buf","TextEncoder","encode","m_pos","str_len","buf_len","buf2string","TextDecoder","decode","utf16buf","c_len","utf8border","$b8ea597934691048$var$zstream","$b8ea597934691048$var$toString$1","$b8ea597934691048$var$Z_NO_FLUSH$1","$b8ea597934691048$var$Z_SYNC_FLUSH","$b8ea597934691048$var$Z_FULL_FLUSH","$b8ea597934691048$var$Z_FINISH$2","$b8ea597934691048$var$Z_OK$2","$b8ea597934691048$var$Z_STREAM_END$2","$b8ea597934691048$var$Z_DEFAULT_COMPRESSION","$b8ea597934691048$var$Z_DEFAULT_STRATEGY","$b8ea597934691048$var$Z_DEFLATED$1","$b8ea597934691048$var$Deflate$1","chunkSize","gzip","ended","dict","_dict_set","$b8ea597934691048$var$deflate$1","deflator","flush_mode","_flush_mode","onData","onEnd","$b8ea597934691048$var$inffast","_out","dmax","whave","wnext","s_window","hold","lcode","dcode","lmask","dmask","here","from_source","lencode","distcode","lenbits","distbits","sane","$b8ea597934691048$var$lbase","$b8ea597934691048$var$lext","$b8ea597934691048$var$dbase","$b8ea597934691048$var$dext","$b8ea597934691048$var$inftrees","lens","lens_index","codes","table_index","work","incr","low","mask","here_bits","here_op","here_val","sym","drop","huff","$b8ea597934691048$var$MAXBITS","offs","$b8ea597934691048$var$Z_FINISH$1","$b8ea597934691048$var$Z_BLOCK","$b8ea597934691048$var$Z_TREES","$b8ea597934691048$var$Z_OK$1","$b8ea597934691048$var$Z_STREAM_END$1","$b8ea597934691048$var$Z_NEED_DICT$1","$b8ea597934691048$var$Z_STREAM_ERROR$1","$b8ea597934691048$var$Z_DATA_ERROR$1","$b8ea597934691048$var$Z_MEM_ERROR$1","$b8ea597934691048$var$Z_BUF_ERROR","$b8ea597934691048$var$Z_DEFLATED","$b8ea597934691048$var$zswap32","$b8ea597934691048$var$InflateState","havedict","wbits","ncode","nlen","ndist","lendyn","distdyn","back","was","$b8ea597934691048$var$inflateStateCheck","$b8ea597934691048$var$inflateResetKeep","Int32Array","$b8ea597934691048$var$inflateReset","$b8ea597934691048$var$inflateReset2","$b8ea597934691048$var$virgin","$b8ea597934691048$var$fixedtables","$b8ea597934691048$var$updatewindow","$b8ea597934691048$var$inflate_1$2","inflateReset","inflateInit2","inflate","put","last_bits","last_op","last_val","hbuf","order","inf_leave","xflags","extra_len","inflateEnd","inflateGetHeader","inflateSetDictionary","dictid","$b8ea597934691048$var$gzheader","$b8ea597934691048$var$toString","$b8ea597934691048$var$Z_NO_FLUSH","$b8ea597934691048$var$Z_FINISH","$b8ea597934691048$var$Z_OK","$b8ea597934691048$var$Z_STREAM_END","$b8ea597934691048$var$Z_NEED_DICT","$b8ea597934691048$var$Z_STREAM_ERROR","$b8ea597934691048$var$Z_DATA_ERROR","$b8ea597934691048$var$Z_MEM_ERROR","$b8ea597934691048$var$Inflate$1","$b8ea597934691048$var$inflate$1","inflator","last_avail_out","next_out_utf8","utf8str","Deflate","$b8ea597934691048$var$Deflate","$b8ea597934691048$var$deflate","deflateRaw","$b8ea597934691048$var$deflateRaw","$b8ea597934691048$var$gzip","constants","Inflate","$b8ea597934691048$var$Inflate","$b8ea597934691048$var$inflate","inflateRaw","$b8ea597934691048$var$inflateRaw","ungzip","$b8ea597934691048$var$ungzip","$137404b6d0cfde4e$export$2e2bcd8739ae039","high","$a5a92a62d3edbc43$export$2e2bcd8739ae039","_clipped","_unclipped","$5fda3950bb619556$var$classToType","$5fda3950bb619556$export$2e2bcd8739ae039","$8593640d53905edb$export$2e2bcd8739ae039","keyOrder","$a8f6222dee0f7fe8$export$2e2bcd8739ae039","$11f22f41de3332f8$export$6b5c1ceb16d01dc3","$11f22f41de3332f8$export$96ec731ed4dcb222","$11f22f41de3332f8$export$8960430cfd85939f","$11f22f41de3332f8$export$af54f71c879f5ba9","$11f22f41de3332f8$export$e734282486210baf","$11f22f41de3332f8$export$460c4029b1a54a2e","$11f22f41de3332f8$export$914076c8150813e5","$8d49620e5ef17305$export$2e2bcd8739ae039","format","autodetect","$1e45ca72491138a4$export$2e2bcd8739ae039","chk","me","_rgb","$72b0761388aa46bb$var$chroma","$45a6ec3a8d863d98$var$max","$45a6ec3a8d863d98$export$2e2bcd8739ae039","cmyk","$47021e6b4c3bfd3a$var$rnd","$47021e6b4c3bfd3a$export$2e2bcd8739ae039","hsla","$79fe535940fa9585$export$2e2bcd8739ae039","minRgb","maxRgb","Number","$9d2591a70f6b6b16$var$round","$9d2591a70f6b6b16$export$2e2bcd8739ae039","rgba","$2adb206b446487a0$var$round","$2adb206b446487a0$export$2e2bcd8739ae039","h_","$9bddb45bc0bccd65$var$RE_RGB","$9bddb45bc0bccd65$var$RE_RGBA","$9bddb45bc0bccd65$var$RE_RGB_PCT","$9bddb45bc0bccd65$var$RE_RGBA_PCT","$9bddb45bc0bccd65$var$RE_HSL","$9bddb45bc0bccd65$var$RE_HSLA","$9bddb45bc0bccd65$var$round","$9bddb45bc0bccd65$var$css2rgb","css","named","gl","$12cd6456a6ffb1f8$var$floor","$55262e9754e312ec$export$2e2bcd8739ae039","hcg","_g","$d517b99751be1459$var$RE_HEX","$d517b99751be1459$var$RE_HEXA","$d517b99751be1459$export$2e2bcd8739ae039","$f6548abb2773ef1c$var$round","$f6548abb2773ef1c$export$2e2bcd8739ae039","hxa","$a10e534a729ae917$var$cos","$c0ce3494d576afe1$var$min","$c0ce3494d576afe1$var$sqrt","$c0ce3494d576afe1$var$acos","$c0ce3494d576afe1$export$2e2bcd8739ae039","min_","hsi","$4653d27b9747cc29$var$floor","$c2959bf1250163c6$var$min","$c2959bf1250163c6$var$max","$c2959bf1250163c6$export$2e2bcd8739ae039","max_","hsv","$223c7f1ef8365fd9$export$2e2bcd8739ae039","Kn","Xn","Yn","Zn","$e7b384b2907671a3$var$pow","$e7b384b2907671a3$var$xyz_rgb","$e7b384b2907671a3$var$lab_xyz","$e7b384b2907671a3$export$2e2bcd8739ae039","$08d7ec6d342e1bc7$var$pow","$08d7ec6d342e1bc7$var$rgb_xyz","$08d7ec6d342e1bc7$var$xyz_lab","$08d7ec6d342e1bc7$var$rgb2xyz","$08d7ec6d342e1bc7$export$2e2bcd8739ae039","$cbd9526de46beb58$var$sin","$cbd9526de46beb58$var$cos","$cbd9526de46beb58$export$2e2bcd8739ae039","$7c5a1aa85039daa9$export$2e2bcd8739ae039","L","b_","$bc8d68aadb237cc2$var$sqrt","$bc8d68aadb237cc2$var$atan2","$bc8d68aadb237cc2$var$round","$bc8d68aadb237cc2$export$2e2bcd8739ae039","$f66f618f5dc21f04$export$2e2bcd8739ae039","lch","hcl","$03f5e843babda959$export$2e2bcd8739ae039","aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","laserlemon","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrod","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","maroon2","maroon3","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","purple2","purple3","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen","$ce16acd081b97e26$export$2e2bcd8739ae039","$69b494a3f09c924b$var$round","rnd","$e90cd7f1ec86df2d$var$log","$e90cd7f1ec86df2d$export$2e2bcd8739ae039","kelvin","$4acc84d828d1e234$var$round","$4acc84d828d1e234$export$2e2bcd8739ae039","minTemp","maxTemp","temperature","$3397c0d4a2155cca$var$pow","$3397c0d4a2155cca$var$sign","$3397c0d4a2155cca$export$2e2bcd8739ae039","$3397c0d4a2155cca$var$lrgb2rgb","cbrt","$e06192afa278a38f$var$cbrt","$e06192afa278a38f$var$pow","$e06192afa278a38f$var$sign","$e06192afa278a38f$export$2e2bcd8739ae039","lr","lg","lb","$e06192afa278a38f$var$rgb2lrgb","oklab","$25d01afc1f7835d9$export$2e2bcd8739ae039","oklch","mutate","brighten","darker","brighter","mc","channel","$b8b8ef4d4b59b632$var$pow","luminance","lum","cur_lum","max_iter","lm","$b8b8ef4d4b59b632$var$rgb2luminance","$b8b8ef4d4b59b632$var$luminance_x","$09ccb7dc564f7989$export$2e2bcd8739ae039","$cf75d20271ce89ae$export$2e2bcd8739ae039","col1","col2","mix","premultiply","saturate","desaturate","tint","shade","xyz0","xyz1","$00ac444caf989bb7$var$sqrt","$00ac444caf989bb7$var$pow","lrgb","z1","z2","$bc7dccc937be932b$export$2e2bcd8739ae039","hue0","hue1","sat0","sat1","lbv0","lbv1","sat","lbv","dh","$f2a47d2ef962b642$var$lch","$6be88a7268a83d8d$var$pow","$6be88a7268a83d8d$var$sqrt","$6be88a7268a83d8d$var$PI","$6be88a7268a83d8d$var$cos","$6be88a7268a83d8d$var$sin","$6be88a7268a83d8d$var$atan2","$6be88a7268a83d8d$var$_average_lrgb","colors","xyz","$509169bcfe79edee$var$pow","$509169bcfe79edee$export$2e2bcd8739ae039","_mode","_nacol","_spread","_domain","_pos","_padding","_classes","_colors","_min","_max","_correctLightness","_colorCache","_useCache","_gamma","setColors","brewer","resetCache","getClass","tMapLightness","tMapDomain","bypassMap","classes","analyze","limits","domain","tOut","tBreaks","every","_m","_o","spread","correctLightness","L0","L1","pol","L_actual","L_ideal","L_diff","numColors","dm","dd","$509169bcfe79edee$var$__range__","inclusive","ascending","samples","asc","gamma","nodata","$d426b500f99ee8bf$var$binom_row","row","newrow","$d426b500f99ee8bf$var$bezier","I","lab0","lab1","lab2","lab3","labs","RangeError","$e329eac878fdd72e$var$blend","$e329eac878fdd72e$var$blend_f","$e329eac878fdd72e$var$each","dodge","burn","$210cb2d7d54707e5$var$pow","$210cb2d7d54707e5$var$sin","$210cb2d7d54707e5$var$cos","$3c0befd79304fae5$var$floor","$3c0befd79304fae5$var$random","$74c8bd6e13bc69eb$var$log","$74c8bd6e13bc69eb$var$pow","$74c8bd6e13bc69eb$var$floor","$74c8bd6e13bc69eb$var$abs","$74c8bd6e13bc69eb$export$7cbcccfbecde6416","MAX_VALUE","$74c8bd6e13bc69eb$export$e331ca4ad6a82555","min_log","LOG10E","max_log","pb","pr","cluster","assignments","clusterSizes","repeat","nb_iters","centroids","best","mindist","newCentroids","kClusters","tmpKMeansBreaks","$4950f035d5f618b5$var$sqrt","$4950f035d5f618b5$var$pow","$4950f035d5f618b5$var$min","$4950f035d5f618b5$var$max","$4950f035d5f618b5$var$atan2","$4950f035d5f618b5$var$abs","$4950f035d5f618b5$var$cos","$4950f035d5f618b5$var$sin","$4950f035d5f618b5$var$exp","$4950f035d5f618b5$var$PI","$68f73cad8793307e$var$colorbrewer","OrRd","PuBu","BuPu","Oranges","BuGn","YlOrBr","YlGn","Reds","RdPu","Greens","YlGnBu","Purples","GnBu","Greys","YlOrRd","PuRd","Blues","PuBuGn","Viridis","Spectral","RdYlGn","RdBu","PiYG","PRGn","RdYlBu","BrBG","RdGy","PuOr","Set2","Accent","Set1","Set3","Dark2","Paired","Pastel2","Pastel1","cnt","ci","xyz2","bezier","blend","cubehelix","rotations","lightness","dl","fract","amp","cos_a","sin_a","$3c0befd79304fae5$var$digits","contrast","deltaE","Kl","Kc","Kh","rad2deg","deg2rad","deg","L2","avgL","avgC","C1","G","a1p","a2p","C1p","C2p","avgCp","arctan1","arctan2","h1p","h2p","avgHp","T","deltaHp","deltaCp","sl","sh","deltaTheta","Rt","deltaL","sum_sq","scales","cool","hot","$hFpCu","$c5a0b96abcd6dbcd$var$location","$c5a0b96abcd6dbcd$export$281ad3752a540efe","URLSearchParams","$c5a0b96abcd6dbcd$export$128fa18b7194ef","URL","$c5a0b96abcd6dbcd$export$1bb10639a2cd4297","$c5a0b96abcd6dbcd$export$9cb4719e2e525b7a","$c5a0b96abcd6dbcd$export$afb15ede80c42aab","binString","atob","codePointAt","$c5a0b96abcd6dbcd$export$4e633de97d65d1c8","fromCodePoint","$c5a0b96abcd6dbcd$export$9a00dee1beb8f576","$c5a0b96abcd6dbcd$export$6e5538615c060df7","findLast","xv","yv","$c5a0b96abcd6dbcd$export$e3bf03cc76d2c0a1","detail","dispatchEvent","CustomEvent","$c5a0b96abcd6dbcd$export$c23f9d3341b5fd07","pointA","pointB","maxDiff","$c5a0b96abcd6dbcd$export$3cb91a81090b9eee","span","classList","backgroundColor","title","$c5a0b96abcd6dbcd$export$6d3741128bd5bb7d","some","maxColorIndex","plus","$c5a0b96abcd6dbcd$export$79376507b09a66f","$c5a0b96abcd6dbcd$export$f6292fcace2a1886","$c5a0b96abcd6dbcd$export$78da85ac75754159","$c5a0b96abcd6dbcd$export$bd58da2e19cd17da","direction","$c5a0b96abcd6dbcd$export$c43d7a950587702b","$c5a0b96abcd6dbcd$export$35d6177dfa7903b5","toPaperJs","$c5a0b96abcd6dbcd$export$43941667eccc070","$c5a0b96abcd6dbcd$export$8793edee2d425525","base64decode","base64encode","$77e640c1aaab669f$var$console","$77e640c1aaab669f$var$consoleDebug","$77e640c1aaab669f$export$1c9f709888824e05","has","$1024ef6a63be0e18$export$2e382909194b1aab","toAxialCoordinates","$3f2d62ea7d5da3d6$export$c56d3ccff2456440","isNeighbor","neighbor","directions","toOffsetCoordinates","axial","$92f12ea2067f7a87$export$654f18991713c8c4","setState","getState","structuredClone","updateState","updater","Events","Update","freeze","$7f0d958f0726b89e$export$6d08773d2e66f8f2","immutable","sortOrder","configuration","crypto","randomUUID","otherItem","getColorElements","getCompoundPath","collidable","onTap","onCollision","collisionStep","onDeselected","onInitialization","onSelected","Types","fromEntries","$7cd91973a7925acd$export$b20b719ec758a20f","$40d8a77a984c51a9$export$94affb487e701bf2","includes","unset","$b8e3951689bc8f9e$var$navigator","$b8e3951689bc8f9e$export$b0d759d807f751d4","CacheKeys","onPointerUp","onPointerDown","onPointerMove","onMouseWheel","offsetX","offsetY","deltaY","onPan","pan","GestureKeys","Pan","onPinch","pointer0","pointer1","point0","pinch","Pinch","Down","pointerId","Move","Gesture","Tap","maxZoom","minZoom","touchPoint","touchOffset","zoomOffset","vibrate","canVibrate","$83056ce6d313c7dc$export$3e25e887b7a5b37b","$f9ad5402abe64457$export$4f13f83fd8bb1dac","Immutable","Lock","RotateLeft","RotateRight","Swap","ToggleOff","ToggleOn","All","ByName","icon","$1f24870028eeabcc$var$modifiers","$1f24870028eeabcc$var$uniqueId","$1f24870028eeabcc$export$5acd5e6efc9671b7","tile","modifier","beam","$e980209ca439f282$export$235cb65c20ad2b7","MaxModifiers","li","dataset","removeModifier","addModifier","moveFilter","button","onToggle","clearTimeout","toggle","Invoked","Moved","$f00c5e8e3b24f55c$export$e49a5ad3dd6df925","movable","$15dbe6491c90ff2e$export$a9753b1ffc289935","Mask","onMask","beforeModify","onUnmask","afterModify","tileFilter","moveItems","moved","ignoreItemTypes","puzzle","unmask","updateSelectedTile","fromTile","toTile","wall","$f00c5e8e3b24f55c$export$1288a4f7eae890b0","SuperClass","removeItem","addItem","onMove","$268becbe2ffcc8a3$export$fd55ce593607084a","connected","onAdd","onRemove","pathIndex","segmentIndex","$268becbe2ffcc8a3$export$81262d6ca0162a3","Class","find","Reflect","construct","Collision","collision","Filter","MergeInto","mergeInto","MergeWith","mergeWith","Portal","portal","entryPortal","exitPortal","Reflector","reflector","TerminusConnection","terminusConnection","terminus","opening","$903d7b3eecd4d3a8$export$ec91da630f36d5ea","parameters","circumradius","currentStep","nextStep","$f48c890393349af7$export$152db69a76b6b79e","Names","rotatable","$f48c890393349af7$export$781de49a9284d537","rotationDegrees","getMaxRotation","getDirection","rotateGroup","$d430de8cd820c3cd$export$602eac185826482c","ring","pointer","portalState","entryDirection","existing","exitPortals","addStep","validTile","getExitDirection","exitPortalId","steps","keepDelta","$6756284c9622095f$export$bea8ebba691c5813","toggled","toggleable","$6756284c9622095f$export$cdb1ce8c4b8a5afe","$ff7d3b28e31d2a30$export$88c9f72b40fcdd85","itemIds","withSelf","mirror","$ff7d3b28e31d2a30$export$20aab196240bbdf2","stepIndex","beams","getColors","$eb2b229f23b512af$export$693b33588b3dd9d8","lastStepIndex","getLastStepIndex","currentPath","previousStep","getCollision","getStep","getOpening","getSteps","getMergeWith","openings","isComplete","isOn","isConnected","isPending","onBeamUpdated","beamLastStep","lastStep","isSelf","findLastIndex","stepPoint","nextStepPoint","isSameSide","isSameDirection","getBeamsUpdateDelay","onModifierInvoked","findIndex","startDirection","currentStepIndex","inradius","getTile","updateStep","nextStepIndex","existingNextStep","lastPathIndex","lastSegmentIndex","collisionIndex","timeout","updatedStep","firstPoint","Set","curveLocation","intersection","drawDebugPoint","spliceIndex","deletedSteps","Connection","Merge","$d8b66316ed43c40f$export$3ad31a823e05e6fb","flatMap","ui","directionFrom","onConnection","onDisconnection","connect","disconnect","Disconnection","$b41b1d7e9f79d24a$export$edf083caefbff926","midLine","directionTo","beamDirection","reflectorDirection","beamAngle","$c5a0b96abcd6dbcd$export$1a23559e655dacdd","original","reflectorAngle","$3d5ce7d56315a48f$export$cb4338d67ffa8a1d","walls","firstSegment","hexagon","nextDirection","lastSegment","$d12f93ae41726cf2$export$4b0ab9e4fad38dea","$54e671c4824aed95$export$5b9db7ce80343746","$7993f13e9449b6b9$export$bdb5f0a1b77546f4","toItems","fromItems","$86f6b44b69017f0d$export$1d55952676fae128","lock","swap","icons","selectedTile","Deselected","deselectedTile","teardown","startingOffsetX","startingOffsetY","dashWidth","Styles","edit","Selected","$99408c3658777a44$export$c84671f46d6a1ca","layers","tileSize","oddR","widestRow","rowByAxial","rowByOffset","rowOffset","getTileByAxial","getTileByOffset","getNeighboringTile","evenR","$01f46eb6f3519d51$export$991dcf7284de63d","$d156ca7729efc9b3$export$88c9f72b40fcdd85","$b090bea9f5eab78e$var$puzzles","test_infinite_loop","test_layout","test_portal","test_reflector","$b090bea9f5eab78e$var$traverse","$b090bea9f5eab78e$var$PuzzleGroup","firstId","lastId","nextId","previousId","$b090bea9f5eab78e$export$f68871ba002ca835","startsWith","titles","$4c3397e7d04ad378$var$history","history","$4c3397e7d04ad378$var$localStorage","localStorage","$4c3397e7d04ad378$export$7254cc27399e90bd","deltasIndex","canRedo","canReset","canUndo","getCurrent","getTitle","getSelectedTile","moves","redo","clearCache","setSelectedTile","undo","newState","pushState","fromEncoded","fromId","ParamKeys","pathSegments","localState","cachedVersion","originalVersion","$784ae6de7637c8a9$export$a337a674d761bdc2","condition","replaceChildren","isSolved","isMet","$784ae6de7637c8a9$var$SolutionCondition","connections","$784ae6de7637c8a9$var$Connections","$784ae6de7637c8a9$var$Moves","completed","connectionId","connectionIndex","connection","Operators","equalTo","Updated","greaterThan","lessThan","$15dbe6491c90ff2e$var$elements","footer","footerMessage","headerMessage","main","puzzleId","querySelector","solved","delay","select","centerOnTile","clearDebugPoints","previouslySelectedTile","collisionId","addBeam","otherBeam","cause","ClassNames","Icon","Solved","viewSize","Loaded","selectedTileId","className","Disabled","disable","innerText","colorElements","Active","rounded","$796068c1abf8becc$var$script","$796068c1abf8becc$var$dataLayer","dataLayer","$796068c1abf8becc$var$gtag","$43a0370408551d62$var$doorbellOptions","doorbellOptions","appKey","hideButton","$43a0370408551d62$var$script","$b7ac0cf7b7632c81$var$puzzle","$b7ac0cf7b7632c81$var$beaming","beaming"],"version":3,"file":"index.f6478a7d.js.map"} \ No newline at end of file diff --git a/index.f951074b.css.map b/index.f951074b.css.map deleted file mode 100644 index 2ddcefc..0000000 --- a/index.f951074b.css.map +++ /dev/null @@ -1 +0,0 @@ -{"mappings":"ACAA,6CAKA,0IAYA,wCAKA,mEAOA,8BAIA,2EAMA,gCAIA,4BAIA,+BAIA,6GAQA,yBAIA,iHASA,6BAKA,8BAIA,yBAIA,4FAQA,0EAOA,oBAIA,+BAIA,+GAQA,oFAQA,kFAMA,+DAMA,+QAkBA,mCAMA,yEAQA,gCAIA,eAIA,gEAKA,0HAQA,mCAIA,8BAKA,mGASA,6CAIA,0CAIA,sEAMA,iDAMA,+CAKA,uIAUA,uCAIA,iFAOA,uCAIA,6DAMA,iEAMA,0FAQA,iCAIA,sBAIA,oBAMA,2DAOA,kDAKA,oJAWA,qEAMA,mCAKA,4EAQA,oCAIA,sCAIA,qCAIA,8BAKA,qMAeA,yIAWA,0EAQA,+FAQA,iEAKA,iCAIA,qGAIA,4CAKA,yEAMA,6IAWA,4BAIA,qDAMA,0DAKA,gFAKA,sDAIA,sCAIA,mCAIA,sBAIA,yBACE,kDAOA,qCAKA,kCAKA,uDAKA,qEAMA,mBAKF,0BACE","sources":["index.f951074b.css","src/styles.css"],"sourcesContent":["::backdrop {\n opacity: .75;\n background-color: #fff;\n}\n\nhtml, body {\n color: #333;\n background-color: #ccc;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n font-family: Noto Sons Mono, monospace;\n overflow: hidden;\n}\n\nbody {\n flex-direction: column;\n display: flex;\n}\n\ncanvas {\n touch-action: none;\n z-index: 0;\n display: block;\n position: relative;\n}\n\ncode {\n background-color: #f4f4f4;\n}\n\ndetails {\n border-top: 1px solid #ddd;\n border-bottom: 1px solid #ddd;\n padding: 1em;\n}\n\ndetails + details {\n border-top: none;\n}\n\ndetails > details {\n border: none;\n}\n\ndetails > summary {\n cursor: pointer;\n}\n\ndialog {\n background-color: #fff;\n border: 1px solid #999;\n width: 50%;\n padding: 0;\n box-shadow: 0 0 .75rem .5rem #00000040;\n}\n\ndialog .flex-left {\n flex: 2;\n}\n\ndialog details h3, dialog details h4, dialog details p {\n margin-left: 0;\n margin-right: 0;\n padding-left: 0;\n padding-right: 0;\n}\n\ndialog h1 {\n margin: 0;\n padding: 0;\n}\n\ndialog h3 {\n padding: .25rem 1rem;\n}\n\ndialog h4 {\n padding: 0 1rem;\n}\n\ndialog header {\n color: #fff;\n background-color: #333;\n align-items: center;\n padding: 1rem;\n display: flex;\n}\n\ndialog header button {\n color: #fff;\n cursor: pointer;\n background: none;\n border: none;\n}\n\ndialog p {\n margin: 1em;\n}\n\ndialog button {\n padding: .5em 1em;\n}\n\ndialog footer {\n background-color: #eee;\n border-top: 1px solid #ddd;\n align-items: center;\n padding: .5em 1em;\n display: flex;\n}\n\ndialog footer ul {\n align-items: center;\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n}\n\ndialog footer ul li {\n border-left: 1px solid #ddd;\n margin-left: .5em;\n padding-left: .5em;\n}\n\ndialog footer ul li:first-child {\n border: none;\n margin: 0;\n padding: 0;\n}\n\nbody > footer, body > header {\n -webkit-user-select: none;\n user-select: none;\n z-index: 1;\n background-color: #fff;\n border-radius: .5rem;\n width: fit-content;\n min-width: fit-content;\n max-width: calc(100% - 2em);\n margin: 0 auto;\n position: absolute;\n overflow: hidden;\n box-shadow: 0 0 .5rem .25rem #00000059;\n}\n\nbody > header {\n top: 1em;\n left: 0;\n right: 0;\n}\n\nbody > footer {\n flex-direction: column;\n display: none;\n bottom: 1em;\n left: 0;\n right: 0;\n}\n\nbody > footer.active {\n display: flex;\n}\n\nmain {\n flex: auto;\n}\n\n#actions {\n border-left: 1px solid #ddd;\n border-right: 1px solid #ddd;\n}\n\n#doorbell.doorbell-inline #doorbell-container {\n background-color: #eee;\n border: 1px solid #ccc;\n width: auto;\n margin: 0;\n padding: 1em;\n}\n\n#doorbell form legend {\n display: none;\n}\n\n#error, #puzzle {\n cursor: pointer;\n}\n\n#error {\n color: #666;\n justify-content: center;\n align-items: center;\n height: 100%;\n font-size: 6em;\n display: none;\n}\n\n#footer-message {\n border-bottom: 1px solid #ddd;\n}\n\n#header-message {\n border-top: 1px solid #ddd;\n}\n\n#header-navigation {\n flex-wrap: wrap;\n justify-content: center;\n display: flex;\n}\n\n#logo {\n width: 75%;\n max-width: 320px;\n margin: 2em 0 1em;\n}\n\n#modifiers {\n justify-content: center;\n display: flex;\n}\n\n#puzzle-id {\n appearance: none;\n cursor: pointer;\n border: none;\n border-left: 1px solid #ddd;\n padding: 1em 2em 1em 1em;\n font-size: 1em;\n font-weight: bold;\n}\n\n#puzzle-id:hover {\n background-color: #eee;\n}\n\n#puzzle-id:focus-visible {\n color: #fff;\n fill: #fff;\n background-color: #333;\n outline: none;\n}\n\n#puzzle-id:focus-visible + svg {\n fill: #fff;\n}\n\n#selector {\n align-items: stretch;\n display: flex;\n position: relative;\n}\n\n#selector svg {\n position: absolute;\n top: calc(50% - 5px);\n right: .75rem;\n}\n\n#solution {\n cursor: default;\n align-items: center;\n line-height: 24px;\n list-style: none;\n display: flex;\n}\n\n#solution .icon {\n margin-left: .5em;\n}\n\n#symbols {\n display: none;\n}\n\n#version {\n color: #999;\n}\n\n.beam {\n color: #fff;\n width: 1em;\n height: 1em;\n display: inline-block;\n}\n\n.beam::selection {\n color: #fff;\n background-color: #000;\n}\n\n.button {\n color: #333;\n font-family: inherit;\n font-size: inherit;\n background-color: #eee;\n border: 1px solid #ccc;\n margin: 0;\n padding: .5em 1em;\n text-decoration: none;\n}\n\n.button:hover {\n cursor: pointer;\n background-color: #ddd;\n border-color: #aaa;\n}\n\n.buttons {\n grid-gap: 1em;\n margin: 1em 0;\n}\n\n.flex-center, .flex-left, .flex-right {\n flex: 1;\n align-items: stretch;\n display: flex;\n}\n\n.flex-center {\n justify-content: center;\n}\n\n.flex-left {\n justify-content: flex-start;\n}\n\n.flex-right {\n justify-content: flex-end;\n}\n\n.grab #puzzle {\n cursor: grabbing;\n}\n\n.material-symbols-outlined {\n font-variation-settings: \"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24;\n -webkit-user-select: none;\n user-select: none;\n vertical-align: middle;\n width: 24px;\n min-height: 24px;\n overflow: hidden;\n}\n\n.material-symbols-outlined.fill {\n font-variation-settings: \"FILL\" 1, \"wght\" 400, \"GRAD\" 0, \"opsz\" 24;\n -webkit-user-select: none;\n user-select: none;\n}\n\n.menu {\n align-items: stretch;\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n}\n\n.menu li {\n cursor: pointer;\n border-left: 1px solid #ddd;\n align-items: center;\n padding: 1em;\n display: flex;\n}\n\n.menu.non-interactive li, .menu li.non-interactive {\n cursor: default;\n}\n\n.menu li:first-child {\n border: none;\n}\n\n.menu:not(.non-interactive) li:not(.disabled, .non-interactive, .selected):hover {\n background-color: #eee;\n}\n\n.menu li.disabled {\n color: #ccc;\n cursor: default;\n}\n\n.menu li.selected {\n box-sizing: border-box;\n color: #fff;\n background-color: #333;\n}\n\n.message {\n background-color: #eee;\n flex: 100%;\n justify-content: center;\n align-items: center;\n min-height: 24px;\n padding: 1em;\n line-height: 24px;\n display: flex;\n}\n\n.message:empty {\n display: none;\n}\n\n.modifiers {\n -webkit-user-select: none;\n user-select: none;\n}\n\n.puzzle-error .flex-left, .puzzle-error .flex-right {\n flex: 0;\n}\n\n.puzzle-error:not(.puzzle-loaded) #puzzle, .puzzle-error .modifiers {\n display: none;\n}\n\n.puzzle-error:not(.puzzle-loaded) #error {\n display: flex;\n}\n\n.puzzle-solved #puzzle {\n cursor: default;\n}\n\n.puzzle-solved footer {\n display: none;\n}\n\n.text {\n padding: 0 .25em;\n}\n\n@media (width <= 600px) {\n body > header, body > footer {\n width: 100%;\n max-width: 100%;\n }\n\n body > footer {\n border-radius: 0;\n bottom: 0;\n }\n\n body > header {\n border-radius: 0;\n top: 0;\n }\n\n body > header .flex-left, body > header .flex-right {\n order: 0;\n }\n\n body > header .flex-center {\n border-top: 1px solid #ddd;\n flex: 100%;\n order: 1;\n }\n\n #actions {\n border: 0;\n }\n}\n\n@media (width <= 1024px) {\n dialog {\n width: 100%;\n }\n}\n/*# sourceMappingURL=index.f951074b.css.map */\n","::backdrop {\n background-color: white;\n opacity: 0.75;\n}\n\nhtml,\nbody {\n background-color: #ccc;\n color: #333;\n font-family: 'Noto Sons Mono', monospace;\n height: 100%;\n margin: 0;\n overflow: hidden;\n padding: 0;\n width: 100%;\n}\n\nbody {\n display: flex;\n flex-direction: column;\n}\n\ncanvas {\n display: block;\n position: relative;\n touch-action: none;\n z-index: 0;\n}\n\ncode {\n background-color: #f4f4f4;\n}\n\ndetails {\n border-bottom: 1px solid #ddd;\n border-top: 1px solid #ddd;\n padding: 1em;\n}\n\ndetails + details {\n border-top: none;\n}\n\ndetails > details {\n border: none;\n}\n\ndetails > summary {\n cursor: pointer;\n}\n\ndialog {\n background-color: white;\n box-shadow: 0 0 0.75rem 0.5rem rgba(0, 0, 0, 0.25);\n border: 1px solid #999;\n padding: 0;\n width: 50%;\n}\n\ndialog .flex-left {\n flex: 2;\n}\n\ndialog details h3,\ndialog details h4,\ndialog details p {\n margin-left: 0;\n margin-right: 0;\n padding-left: 0;\n padding-right: 0;\n}\n\ndialog h1 {\n margin: 0;\n padding: 0;\n}\n\ndialog h3 {\n padding: 0.25rem 1rem;\n}\n\ndialog h4 {\n padding: 0 1rem;\n}\n\ndialog header {\n align-items: center;\n background-color: #333;\n color: white;\n display: flex;\n padding: 1rem;\n}\n\ndialog header button {\n border: none;\n background: none;\n color: white;\n cursor: pointer;\n}\n\ndialog p {\n margin: 1em;\n}\n\ndialog button {\n padding: 0.5em 1em;\n}\n\ndialog footer {\n align-items: center;\n background-color: #eee;\n border-top: 1px solid #ddd;\n display: flex;\n padding: 0.5em 1em;\n}\n\ndialog footer ul {\n align-items: center;\n display: flex;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\ndialog footer ul li {\n border-left: 1px solid #ddd;\n margin-left: 0.5em;\n padding-left: 0.5em;\n}\n\ndialog footer ul li:first-child {\n border: none;\n margin: 0;\n padding: 0;\n}\n\nbody > footer,\nbody > header {\n background-color: white;\n border-radius: 0.5rem;\n box-shadow: 0 0 0.5rem 0.25rem rgba(0, 0, 0, 0.35);\n margin: 0 auto;\n max-width: calc(100% - 2em);\n min-width: fit-content;\n overflow: hidden;\n position: absolute;\n /* Prevent Chrome from trying to open search on tap in mobile. */\n user-select: none;\n width: fit-content;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n z-index: 1;\n}\n\nbody > header {\n left: 0;\n right: 0;\n top: 1em;\n}\n\nbody > footer {\n display: none;\n bottom: 1em;\n flex-direction: column;\n left: 0;\n right: 0;\n}\n\nbody > footer.active {\n display: flex;\n}\n\nmain {\n flex: auto;\n}\n\n#actions {\n border-left: 1px solid #ddd;\n border-right: 1px solid #ddd;\n}\n\n#doorbell.doorbell-inline #doorbell-container {\n background-color: #eee;\n border: 1px solid #ccc;\n margin: 0;\n padding: 1em;\n width: auto;\n}\n\n#doorbell form legend {\n display: none;\n}\n\n#error,\n#puzzle {\n cursor: pointer;\n}\n\n#error {\n align-items: center;\n color: #666;\n display: none;\n height: 100%;\n font-size: 6em;\n justify-content: center;\n}\n\n#footer-message {\n border-bottom: 1px solid #ddd;\n}\n\n#header-message {\n border-top: 1px solid #ddd;\n}\n\n#header-navigation {\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n}\n\n#logo {\n margin: 2em 0 1em 0;\n max-width: 320px;\n width: 75%;\n}\n\n#modifiers {\n display: flex;\n justify-content: center;\n}\n\n#puzzle-id {\n appearance: none;\n border: none;\n border-left: 1px solid #ddd;\n cursor: pointer;\n font-size: 1em;\n font-weight: bold;\n padding: 1em 2em 1em 1em;\n}\n\n#puzzle-id:hover {\n background-color: #eee;\n}\n\n#puzzle-id:focus-visible {\n background-color: #333;\n color: white;\n fill: white;\n outline: none;\n}\n\n#puzzle-id:focus-visible + svg {\n fill: white;\n}\n\n#selector {\n align-items: stretch;\n display: flex;\n position: relative;\n}\n\n#selector svg {\n position: absolute;\n right: 0.75rem;\n top: calc(50% - 5px);\n}\n\n#solution {\n align-items: center;\n cursor: default;\n display: flex;\n line-height: 24px;\n list-style: none;\n}\n\n#solution .icon {\n margin-left: 0.5em;\n}\n\n#symbols {\n display: none;\n}\n\n#version {\n color: #999;\n}\n\n/** Classes */\n\n.beam {\n color: white;\n display: inline-block;\n height: 1em;\n width: 1em;\n}\n\n.beam::selection {\n color: white;\n background-color: black;\n}\n\n.button {\n background-color: #eee;\n border: 1px solid #ccc;\n color: #333;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n padding: 0.5em 1em;\n text-decoration: none;\n}\n\n.button:hover {\n background-color: #ddd;\n border-color: #aaa;\n cursor: pointer;\n}\n\n.buttons {\n grid-gap: 1em;\n margin: 1em 0;\n}\n\n.flex-center,\n.flex-left,\n.flex-right {\n align-items: stretch;\n display: flex;\n flex: 1;\n}\n\n.flex-center {\n justify-content: center;\n}\n\n.flex-left {\n justify-content: flex-start;\n}\n\n.flex-right {\n justify-content: flex-end;\n}\n\n.grab #puzzle {\n cursor: grabbing;\n}\n\n/* https://developers.google.com/fonts/docs/material_icons */\n.material-symbols-outlined {\n font-variation-settings:\n 'FILL' 0,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n min-height: 24px;\n overflow: hidden;\n user-select: none;\n vertical-align: middle;\n width: 24px;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n}\n\n.material-symbols-outlined.fill {\n font-variation-settings:\n 'FILL' 1,\n 'wght' 400,\n 'GRAD' 0,\n 'opsz' 24;\n user-select: none;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n}\n\n.menu {\n align-items: stretch;\n display: flex;\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.menu li {\n align-items: center;\n border-left: 1px solid #ddd;\n cursor: pointer;\n display: flex;\n padding: 1em;\n}\n\n.menu.non-interactive li,\n.menu li.non-interactive {\n cursor: default;\n}\n\n.menu li:first-child {\n border: none;\n}\n\n.menu:not(.non-interactive) li:not(.disabled,.non-interactive,.selected):hover {\n background-color: #eee;\n}\n\n.menu li.disabled {\n color: #ccc;\n cursor: default;\n}\n\n.menu li.selected {\n background-color: #333;\n box-sizing: border-box;\n color: white;\n}\n\n.message {\n align-items: center;\n background-color: #eee;\n display: flex;\n flex: 100%;\n justify-content: center;\n line-height: 24px;\n min-height: 24px;\n padding: 1em;\n}\n\n.message:empty {\n display: none;\n}\n\n.modifiers {\n user-select: none;\n /* For iOS/Safari. */\n -webkit-user-select: none;\n}\n\n.puzzle-error .flex-left,\n.puzzle-error .flex-right {\n flex: 0;\n}\n\n.puzzle-error:not(.puzzle-loaded) #puzzle,\n.puzzle-error .modifiers {\n display: none;\n}\n\n.puzzle-error:not(.puzzle-loaded) #error {\n display: flex;\n}\n\n.puzzle-solved #puzzle {\n cursor: default;\n}\n\n.puzzle-solved footer {\n display: none;\n}\n\n.text {\n padding: 0 0.25em;\n}\n\n@media (max-width: 600px) {\n body > header,\n body > footer {\n /*flex-wrap: wrap;*/\n max-width: 100%;\n width: 100%;\n }\n\n body > footer {\n border-radius: 0;\n bottom: 0;\n }\n\n body > header {\n border-radius: 0;\n top: 0;\n }\n\n body > header .flex-left,\n body > header .flex-right {\n order: 0;\n }\n\n body > header .flex-center {\n border-top: 1px solid #ddd;\n flex: 100%;\n order: 1;\n }\n\n #actions {\n border: 0;\n }\n}\n\n@media (max-width: 1024px) {\n dialog {\n width: 100%;\n }\n}\n"],"names":[],"version":3,"file":"index.f951074b.css.map"} \ No newline at end of file diff --git a/index.html b/index.html index e38a744..2198d64 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Beaming

Beaming

Beaming is a free, open source, browser-based puzzle game that involves directing beams through a hexagonal grid. The rules and solution for each puzzle can be inferred by interaction and visual cues. Both desktop and mobile devices are supported.

Give Support
The Basics

The core gameplay involves selecting a hexagonal tile and interacting with the toolbar at the bottom of the screen that contains actions that can be used to manipulate items in the puzzle. The solution for each puzzle varies. The requirements for solving a puzzle will be displayed in the upper right corner of the screen.

Actions and Attributes

The actions shown in the toolbar at the bottom of the screen are updated based on the currently selected tile. Actions which are available to use on any tile will always show up in the toolbar, whereas actions which belong to a specific tile, indicated by the corresponding icon within the tile, will only be available when that tile is currently selected. You will notice that some tiles also contain attributes which can change the way a tile behaves. Actions which are available generally but cannot be applied in the current situation, for example because no tile is selected, will still be visible in the toolbar but disabled.

Interaction

In general, puzzles can be solved strictly by tapping. You tap on a tile to select it, and then tap on an action in the toolbar to apply it to that tile. Some actions support additional behaviors, which are listed below and expanded upon in the Actions section below:

  • Masks - Some actions require the user to select other tiles. The mask is used to restrict which tiles can be chosen by covering the invalid ones. While the mask is active, the action can be cancelled by either tapping on the currently selected tile (displayed with a dashed border), or by tapping outside of the puzzle area.
  • Swiping - Some actions in the toolbar support swiping, or pressing on the action and then releasing the pointer outside of the action, to toggle between states. For example, the Rotate action can be swiped to change the applied direction of rotation.
Solutions

As mentioned in The Basics above, the requirements for solving each puzzle vary and are indicated by the text and icons on the right side of the top toolbar. Generally, solutions will require that a user meet one or more threshold requirements. Click or tap on an icon below to learn more about it.

link - Connections

A connection is formed when a beam emitted from one terminus enters an available opening in another terminus of the same color.

stacks - Moves

A move is stored any time the user makes a decision, generally in relation to taking an action. Note that some actions may result in multiple moves. For example, if an action causes a beam to enter a portal with multiple potential exit portals, the resulting decision will result in an additional move.

Attributes

As mentioned in The Basics above, attributes change the way a tile behaves and are indicated on a tile by a light gray icon. Click or tap on an icon below to learn more about it.

block - Immutable

The tile, and the items within the tile, cannot be modified in any way. Any available actions are disabled.

lock - Locked

Any available actions applied to the tile will become locked to the tile and will no longer be available for use on other tiles. A maximum of six actions can be locked to a single tile, at which point no further actions will be available for the tile.

Actions

As previously mentioned in The Basics above, actions manipulate the items within tiles and are indicated by the icons in the toolbar at the bottom of the screen. Click or tap on an icon below to learn more about it.

toggle_on - Toggle

Any valid (toggleable) items in the tile will have their state toggled. For example, toggling a terminus item will turn beams on and off.

rotate_left - Rotate

Any valid (rotatable) items in the tile will be rotated in the direction indicated by the icon (either clockwise or counter-clockwise). This action supports swiping, which can be used to change the direction of the applied rotation.

drag_pan - Move

Any valid (movable) items in the tile will be moved from the currently selected tile to a valid tile of your choice. This action utilizes a mask for selecting the valid tile.

swap_horiz - Swap

Any valid (movable) items in the currently selected tile will trade places with any valid (movable) items in a valid tile of your choice. This action utilizes a mask for selecting the valid tile.

Help

Feedback

If you have a suggestion or encounter any problem, please use the form below to report them. Email address is optional, but you can include it if you want to get a response back.

Troubleshooting

You might be wondering what all that stuff in the URL is. Each URL parameter is separated by a forward slash (/). The parameter after the hash (#) symbol is the puzzle ID. The parameter after that is the state of the current puzzle, stored base64 encoded and compressed. Both of these parameters are optional and will be automatically updated when you load and interact with the game. In addition to storing state in the URL, which is useful when sharing the state of a puzzle with others, state is also stored locally in your browser's localStorage cache. If for some reason you need to clear cache for a puzzle, you can insert ?clearCache=[puzzle ID] in the URL right after the opening forward slash. If you want to clear all cache, omit the =[puzzle ID], or execute localStorage.clear() in your browser's console.

Thanks!

This game was primarily inspired by The Talos Principle and The Witness, two highly recommended puzzle games. Additionally, this game would not have been possible without the Paper.js library.

If you're enjoying the game, please consider sharing it with others!

😁

error
Your browser does not support the HTML5 canvas tag.
\ No newline at end of file +Beaming

Beaming

Beaming is a free, open source, browser-based puzzle game that involves directing beams through a hexagonal grid. The rules and solution for each puzzle can be inferred by interaction and visual cues. Both desktop and mobile devices are supported.

Give Support
The Basics

The core gameplay involves selecting a hexagonal tile and interacting with the toolbar at the bottom of the screen that contains actions that can be used to manipulate items in the puzzle. The solution for each puzzle varies. The requirements for solving a puzzle will be displayed in the upper right corner of the screen.

Actions and Attributes

The actions shown in the toolbar at the bottom of the screen are updated based on the currently selected tile. Actions which are available to use on any tile will always show up in the toolbar, whereas actions which belong to a specific tile, indicated by the corresponding icon within the tile, will only be available when that tile is currently selected. You will notice that some tiles also contain attributes which can change the way a tile behaves. Actions which are available generally but cannot be applied in the current situation, for example because no tile is selected, will still be visible in the toolbar but disabled.

Interaction

In general, puzzles can be solved strictly by tapping. You tap on a tile to select it, and then tap on an action in the toolbar to apply it to that tile. Some actions support additional behaviors, which are listed below and expanded upon in the Actions section below:

  • Masks - Some actions require the user to select other tiles. The mask is used to restrict which tiles can be chosen by covering the invalid ones. While the mask is active, the action can be cancelled by either tapping on the currently selected tile (displayed with a dashed border), or by tapping outside of the puzzle area.
  • Swiping - Some actions in the toolbar support swiping, or pressing on the action and then releasing the pointer outside of the action, to toggle between states. For example, the Rotate action can be swiped to change the applied direction of rotation.
Solutions

As mentioned in The Basics above, the requirements for solving each puzzle vary and are indicated by the text and icons on the right side of the top toolbar. Generally, solutions will require that a user meet one or more threshold requirements. Click or tap on an icon below to learn more about it.

link - Connections

A connection is formed when a beam emitted from one terminus enters an available opening in another terminus of the same color.

stacks - Moves

A move is stored any time the user makes a decision, generally in relation to taking an action. Note that some actions may result in multiple moves. For example, if an action causes a beam to enter a portal with multiple potential exit portals, the resulting decision will result in an additional move.

Attributes

As mentioned in The Basics above, attributes change the way a tile behaves and are indicated on a tile by a light gray icon. Click or tap on an icon below to learn more about it.

block - Immutable

The tile, and the items within the tile, cannot be modified in any way. Any available actions are disabled.

lock - Locked

Any available actions applied to the tile will become locked to the tile and will no longer be available for use on other tiles. A maximum of six actions can be locked to a single tile, at which point no further actions will be available for the tile.

Actions

As previously mentioned in The Basics above, actions manipulate the items within tiles and are indicated by the icons in the toolbar at the bottom of the screen. Click or tap on an icon below to learn more about it.

toggle_on - Toggle

Any valid (toggleable) items in the tile will have their state toggled. For example, toggling a terminus item will turn beams on and off.

rotate_left - Rotate

Any valid (rotatable) items in the tile will be rotated in the direction indicated by the icon (either clockwise or counter-clockwise). This action supports swiping, which can be used to change the direction of the applied rotation.

drag_pan - Move

Any valid (movable) items in the tile will be moved from the currently selected tile to a valid tile of your choice. This action utilizes a mask for selecting the valid tile.

swap_horiz - Swap

Any valid (movable) items in the currently selected tile will trade places with any valid (movable) items in a valid tile of your choice. This action utilizes a mask for selecting the valid tile.

Help

Feedback

If you have a suggestion or encounter any problem, please use the form below to report them. Email address is optional, but you can include it if you want to get a response back.

Troubleshooting

You might be wondering what all that stuff in the URL is. Each URL parameter is separated by a forward slash (/). The parameter after the hash (#) symbol is the puzzle ID. The parameter after that is the state of the current puzzle, stored base64 encoded and compressed. Both of these parameters are optional and will be automatically updated when you load and interact with the game. In addition to storing state in the URL, which is useful when sharing the state of a puzzle with others, state is also stored locally in your browser's localStorage cache. If for some reason you need to clear cache for a puzzle, you can insert ?clearCache=[puzzle ID] in the URL right after the opening forward slash. If you want to clear all cache, omit the =[puzzle ID], or execute localStorage.clear() in your browser's console.

Thanks!

This game was primarily inspired by The Talos Principle and The Witness, two highly recommended puzzle games. Additionally, this game would not have been possible without the Paper.js library.

If you're enjoying the game, please consider sharing it with others!

😁

error
Your browser does not support the HTML5 canvas tag.
\ No newline at end of file