text: !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.spritejs=e():t.spritejs=e()}(this,function(){return function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/js/",e(e.s=127)}([function(t,e){var r=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=r)},function(t,e,r){var n=r(2),i=r(0),o=r(9),a=r(10),u=function(t,e,r){var s,f,c,l=t&u.F,h=t&u.G,p=t&u.S,d=t&u.P,v=t&u.B,y=t&u.W,g=h?i:i[e]||(i[e]={}),m=g.prototype,b=h?n:p?n[e]:(n[e]||{}).prototype;h&&(r=e);for(s in r)(f=!l&&b&&void 0!==b[s])&&s in g||(c=f?b[s]:r[s],g[s]=h&&"function"!=typeof b[s]?r[s]:v&&f?o(c,n):y&&b[s]==c?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(c):d&&"function"==typeof c?o(Function.call,c):c,d&&((g.virtual||(g.virtual={}))[s]=c,t&u.R&&m&&!m[s]&&a(m,s,c)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(t,e,r){var n=r(64)("wks"),i=r(40),o=r(2).Symbol,a="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=n},function(t,e,r){"use strict";function n(t){return"[object Array]"===S.call(t)}function i(t){return"[object ArrayBuffer]"===S.call(t)}function o(t){return"undefined"!=typeof FormData&&t instanceof FormData}function a(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function u(t){return"string"==typeof t}function s(t){return"number"==typeof t}function f(t){return void 0===t}function c(t){return null!==t&&"object"==typeof t}function l(t){return"[object Date]"===S.call(t)}function h(t){return"[object File]"===S.call(t)}function p(t){return"[object Blob]"===S.call(t)}function d(t){return"[object Function]"===S.call(t)}function v(t){return c(t)&&d(t.pipe)}function y(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function g(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function m(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function b(t,e){if(null!==t&&void 0!==t)if("object"==typeof t||n(t)||(t=[t]),n(t))for(var r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}function x(){function t(t,r){"object"==typeof e[r]&&"object"==typeof t?e[r]=x(e[r],t):e[r]=t}for(var e={},r=0,n=arguments.length;r<n;r++)b(arguments[r],t);return e}function w(t,e,r){return b(e,function(e,n){t[n]=r&&"function"==typeof e?_(e,r):e}),t}var _=r(77),k=r(208),S=Object.prototype.toString;t.exports={isArray:n,isArrayBuffer:i,isBuffer:k,isFormData:o,isArrayBufferView:a,isString:u,isNumber:s,isObject:c,isUndefined:f,isDate:l,isFile:h,isBlob:p,isFunction:d,isStream:v,isURLSearchParams:y,isStandardBrowserEnv:m,forEach:b,merge:x,extend:w,trim:g}},function(t,e,r){t.exports=!r(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(7),i=r(88),o=r(66),a=Object.defineProperty;e.f=r(5)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(8);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(22);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(6),i=r(26);t.exports=r(5)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(55),i=r(52);t.exports=function(t){return n(i(t))}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){"use strict";var n=r(176)(!0);r(56)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},function(t,e,r){t.exports={default:r(158),__esModule:!0}},function(t,e,r){t.exports={default:r(160),__esModule:!0}},function(t,e){t.exports={}},function(t,e,r){var n=r(97),i=r(54);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){var n=r(52);t.exports=function(t){return Object(n(t))}},function(t,e,r){r(181);for(var n=r(2),i=r(10),o=r(17),a=r(3)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<u.length;s++){var f=u[s],c=n[f],l=c&&c.prototype;l&&!l[a]&&i(l,a,f),o[f]=o.Array}},function(t,e,r){t.exports={default:r(154),__esModule:!0}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(9),i=r(91),o=r(89),a=r(7),u=r(39),s=r(70),f={},c={},e=t.exports=function(t,e,r,l,h){var p,d,v,y,g=h?function(){return t}:s(t),m=n(r,l,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(p=u(t.length);p>b;b++)if((y=e?m(a(d=t[b])[0],d[1]):m(t[b]))===f||y===c)return y}else for(v=g.call(t);!(d=v.next()).done;)if((y=i(v,m,d.value,e))===f||y===c)return y};e.BREAK=f,e.RETURN=c},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(6).f,i=r(13),o=r(3)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){t.exports=function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/js/",e(e.s=49)}([function(t,e){t.exports=r(35)},function(t,e){t.exports=r(30)},function(t,e){t.exports=r(31)},function(t,e){t.exports=r(83)},function(t,e){t.exports=r(29)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isPropEqual=e.sortOrderedSprites=e.parseValue=e.deprecate=e.setDeprecation=e.attr=e.appendUnit=e.rectVertices=e.rectToBox=e.boxUnion=e.boxEqual=e.boxToRect=e.boxIntersect=e.parseStringTransform=e.fourValuesShortCut=e.parseColorString=e.parseStringFloat=e.parseStringInt=e.oneOrTwoValues=e.parseColor=e.Color=void 0;var n=r(32),i=r(60);e.Color=n.Color,e.parseColor=n.parseColor,e.oneOrTwoValues=n.oneOrTwoValues,e.parseStringInt=n.parseStringInt,e.parseStringFloat=n.parseStringFloat,e.parseColorString=n.parseColorString,e.fourValuesShortCut=n.fourValuesShortCut,e.parseStringTransform=n.parseStringTransform,e.boxIntersect=n.boxIntersect,e.boxToRect=n.boxToRect,e.boxEqual=n.boxEqual,e.boxUnion=n.boxUnion,e.rectToBox=n.rectToBox,e.rectVertices=n.rectVertices,e.appendUnit=n.appendUnit,e.attr=i.attr,e.setDeprecation=i.setDeprecation,e.deprecate=i.deprecate,e.parseValue=i.parseValue,e.sortOrderedSprites=n.sortOrderedSprites,e.isPropEqual=n.isPropEqual},function(t,e){t.exports=r(16)},function(t,e){t.exports=r(82)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object.defineProperty(e.prototype,"nodeType",{get:function(){return t}}),b.set(t,e),r&&!e.prototype.ownerDocument&&(Object.defineProperty(e.prototype,"ownerDocument",x),e.prototype.namespaceURI="http://spritejs.org/"+t,(0,s.default)(e.prototype,w))}function o(t){var e=b.get(t);if(e){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return new(Function.prototype.bind.apply(e,[null].concat(n)))}return null}function a(t){return b.get(t)}Object.defineProperty(e,"__esModule",{value:!0});var u=r(4),s=n(u),f=r(3),c=n(f),l=r(0),h=n(l),p=r(7),d=n(p),v=r(16),y=n(v);e.registerNodeType=i,e.createNode=o;var g=r(48),m=n(g),b=new y.default,x={get:function(){var t=this;return{createElementNS:function(e,r){var n=o(r);return n?t.appendChild(n):null}}}},w={getElementById:function(t){for(var e=this.children,r=0;r<e.length;r++){var n=e[r];if(n.id===t)return n}return null},getElementsByName:function(t){return this.children.filter(function(e){return e.name===t})},querySelector:function(t){var e=this,r=this.children,n=null;if(t&&"*"!==t)if("string"==typeof t)if(t.startsWith("#"))n=this.getElementById(t.slice(1));else if(t.startsWith(":")){var i=t.slice(1),o=(0,m.default)(r,function(t){return t.name===i},1);o.length&&(n=o[0])}else{var u=a(t);if(u){var s=(0,m.default)(r,function(t){return t instanceof u},1);s.length&&(n=s[0])}}else{var f=(0,m.default)(r,function(r){return(0,d.default)(t).some(function(t){var n=(0,h.default)(t,2),i=n[0],o=n[1],u=a(i);return u&&r instanceof u&&o.call(e,r)})},1);f.length&&(n=f[0])}else n=r[0];return n},querySelectorAll:function(t){var e=this,r=[],n=this.children;if(t&&"*"!==t)if("string"==typeof t){if(t.startsWith("#")){var i=this.getElementById(t.slice(1));r=i?[i]:[]}t.startsWith(":")&&(r=this.getElementsByName(t.slice(1)));var o=a(t);o&&(r=(0,m.default)(n,function(t){return t instanceof o}))}else r=(0,m.default)(n,function(r){return(0,d.default)(t).some(function(t){var n=(0,h.default)(t,2),i=n[0],o=n[1],u=a(i);return!!(u&&r instanceof u)&&o.call(e,r)})});else r=[].concat((0,c.default)(n));return r}}},function(t,e){t.exports=r(21)},function(t,e){t.exports=r(32)},function(t,e){t.exports=r(33)},function(t,e){t.exports=r(34)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a=r(69),u=n(a),s=r(7),f=n(s),c=r(3),l=n(c),h=r(0),p=n(h),d=r(71),v=n(d),y=r(4),g=n(y),m=r(36),b=n(m),x=r(20),w=n(x),_=r(9),k=n(_),S=r(1),E=n(S),M=r(2),O=n(M),C=r(12),T=n(C),j=r(10),P=n(j),A=r(11),R=n(A),z=r(6),I=n(z),L=r(43),N=n(L),D=r(21),F=n(D),B=r(14),q=r(42),V=n(q),U=r(5),G=r(8),H=r(19),J=(0,I.default)("attr"),W=(0,I.default)("animations"),X=(o=i=function(t){function e(t){(0,E.default)(this,e);var r=(0,T.default)(this,(e.__proto__||(0,k.default)(e)).call(this));return r[J]=new r.constructor.Attr(r),r[W]=new w.default,t&&r.attr(t),r}return(0,R.default)(e,t),(0,O.default)(e,[{key:"serialize",value:function(){return{nodeType:this.nodeType,attrs:this[J].serialize(),id:this.id}}},{key:"merge",value:function(t){this[J].merge(t)}},{key:"cloneNode",value:function(){var t=new this.constructor;return t.merge(this[J].serialize()),t.cache=this.cache,t}},{key:"getAttribute",value:function(t){return this.attr(t)}},{key:"setAttribute",value:function(t,e){return this.attr(t,e)}},{key:"removeAttribute",value:function(t){return this.attr(t,null)}},{key:"attr",value:function(t,e){if("object"===(void 0===t?"undefined":(0,b.default)(t)))return(0,g.default)(this[J],t),this;if("string"==typeof t){if(void 0!==e)return(0,g.default)(this[J],(0,v.default)({},t,e)),this;return this[J].attrs[t]}return this[J].attrs}},{key:"attrs",value:function(){return this[J].attrs}},{key:"animate",value:function(t,e){var r=this,n=new V.default(this,t,e);return this.layer&&(n.baseTimeline=this.layer.timeline,n.play(),n.finished.then(function(){r[W].delete(n)})),this[W].add(n),n}},{key:"connect",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t&&!(t instanceof F.default)){var i=new F.default;i.context=t,t=i}var o=(0,P.default)(e.prototype.__proto__||(0,k.default)(e.prototype),"connect",this).call(this,t,n);return Object.defineProperty(this,"context",{get:function(){return t.cache||t.context},configurable:!0}),this[W].forEach(function(e){e.baseTimeline=t.timeline,e.play(),e.finished.then(function(){r[W].delete(e)})}),o}},{key:"disconnect",value:function(t){this[W].forEach(function(t){return t.cancel()});var r=(0,P.default)(e.prototype.__proto__||(0,k.default)(e.prototype),"disconnect",this).call(this,t);return delete this.context,r}},{key:"remove",value:function(){return!!this.parent&&(this.parent.removeChild(this),!0)}},{key:"appendTo",value:function(t){t.appendChild(this)}},{key:"forceUpdate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.parent;e&&(e.forceUpdate?e.forceUpdate(!0):e.update&&(t&&(this.cache=null),this.parent.update(this)))}},{key:"pointToOffset",value:function(t,e){var r=this.attr(),n=t-r.x,i=e-r.y;return this.transform.inverse().transformPoint(n,i)}},{key:"pointCollision",value:function(t){var e=void 0,r=void 0;null!=t.parentX?(e=t.parentX,r=t.parentY):(e=t.layerX,r=t.layerY);var n=(0,p.default)(this.renderRect,4),i=n[0],o=n[1],a=n[2],u=n[3];if(e>=i&&e-i<a&&r>=o&&r-o<u){var s=(0,p.default)(this.originalRect,4),f=s[0],c=s[1],l=s[2],h=s[3],d=this.pointToOffset(e,r),v=(0,p.default)(d,2),y=v[0],g=v[1];if(y>=f&&y-f<l&&g>=c&&g-c<h)return t.offsetX=y,t.offsetY=g,!0}}},{key:"OBBCollision",value:function(t){function e(t,e){var r=t.map(function(t){return e.dot(new B.Vector(t))}),n=(0,p.default)(r,4),i=n[0],o=n[1],a=n[2],u=n[3];return[Math.min(i,o,a,u),Math.max(i,o,a,u)]}function r(t,e){var r=(t[0]+t[1])/2,n=Math.abs(t[1]-t[0]),i=(e[0]+e[1])/2,o=Math.abs(e[1]-e[0]);return Math.abs(i-r)<=(n+o)/2}var n=(0,p.default)(this.vertices,3),i=n[0],o=n[1],a=n[2],u=(0,p.default)(t.vertices,3),s=u[0],f=u[1],c=u[2],l=new B.Vector(o,i).unit(),h=new B.Vector(a,o).unit(),d=new B.Vector(f,s).unit(),v=new B.Vector(c,f).unit();return r(e(this.vertices,l),e(t.vertices,l))&&r(e(this.vertices,h),e(t.vertices,h))&&r(e(this.vertices,d),e(t.vertices,d))&&r(e(this.vertices,v),e(t.vertices,v))}},{key:"draw",value:function(t){var e=this.context;e.save(),e.translate.apply(e,(0,l.default)(this.attr("pos"))),e.transform.apply(e,(0,l.default)(this.transform.m)),e.globalAlpha=this.attr("opacity");var r=this.originalRect,n=this.cache||(0,H.copyContext)(e,r[2],r[3]),i={context:n||e,target:this,renderTime:t,fromCache:!!this.cache};return n||e.translate(r[0],r[1]),this.dispatchEvent("beforedraw",i,!0,!0),n?this.cache||(this.cache=n,n=this.render(t,n)||n):this.render(t,e),this.dispatchEvent("afterdraw",i,!0,!0),n&&e.drawImage(n.canvas,r[0],r[1]),e.restore(),this.dispatchEvent("update",i,!0,!0),this.lastRenderBox=this.renderBox,e}},{key:"render",value:function(t,e){var r=this.attr(),n=(0,p.default)(this.offsetSize,2),i=n[0],o=n[1],a=(0,p.default)(this.clientSize,2),u=a[0],s=a[1];if(0===i||0===o)return e;var f=r.border[0],c=r.borderRadius;if(f){e.lineWidth=f;var l=f/2,h=f/2,d=i-f,v=o-f,y=c;(0,H.drawRadiusBox)(e,{x:l,y:h,w:d,h:v,r:y}),e.strokeStyle=(0,H.findColor)(e,this,"border"),e.stroke()}var g=(0,H.findColor)(e,this,"bgcolor");if(f||c||g){var m=[f,f,u,s,Math.max(0,c-f/2)],b=m[0],x=m[1],w=m[2],_=m[3],k=m[4];(0,H.drawRadiusBox)(e,{x:b,y:x,w:w,h:_,r:k}),g&&(e.fillStyle=g,e.fill()),(f||c)&&e.clip()}return e.translate(f+r.padding[3],f+r.padding[0]),e}},{key:"layer",get:function(){var t=this;do{t=t.parent}while(null!=t&&!t.drawSprites);return t}},{key:"id",set:function(t){this.attr("id",t)},get:function(){return this.attr("id")}},{key:"name",set:function(t){this.attr("name",t)},get:function(){return this.attr("name")}},{key:"zIndex",set:function(t){this.attr("zIndex",t)},get:function(){return this.attr("zIndex")}},{key:"transform",get:function(){var t=new B.Matrix(this[J].get("transformMatrix")),e=this.attr("transformOrigin");if(e){var r=new B.Matrix;return r.translate.apply(r,(0,l.default)(e)),r.multiply(t),r.translate.apply(r,(0,l.default)(e.map(function(t){return-t}))),r}return t}},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,p.default)(t,2);return[0|e[0],0|e[1]]}},{key:"clientSize",get:function(){var t=this.attr("padding"),e=(0,p.default)(t,4),r=e[0],n=e[1],i=e[2],o=e[3],a=(0,p.default)(this.contentSize,2);return[o+a[0]+n,r+a[1]+i]}},{key:"offsetSize",get:function(){var t=this.attr("border"),e=(0,p.default)(t,1),r=e[0],n=(0,p.default)(this.clientSize,2);return[n[0]+2*r,n[1]+2*r]}},{key:"innerSize",get:function(){return this.contentSize}},{key:"outerSize",get:function(){return this.offsetSize}},{key:"boundingRect",get:function(){var t=this.attr("anchor"),e=this.transform,r=(0,p.default)(this.offsetSize,2),n=r[0],i=r[1],o=(0,p.default)(t,2),a=o[0],u=o[1],s=[[-a*n,-u*i],[(1-a)*n,-u*i],[-a*n,(1-u)*i],[(1-a)*n,(1-u)*i]],f=s.map(function(t){return e.transformPoint(t[0],t[1])}),c=f.map(function(t){return t[0]}),h=f.map(function(t){return t[1]}),d=Math.min.apply(Math,(0,l.default)(c)),v=Math.min.apply(Math,(0,l.default)(h)),y=Math.max.apply(Math,(0,l.default)(c)),g=Math.max.apply(Math,(0,l.default)(h));return[].concat((0,l.default)([d,v].map(Math.floor)),(0,l.default)([y-d,g-v].map(Math.ceil)))}},{key:"originalRect",get:function(){var t=(0,p.default)(this.offsetSize,2),e=t[0],r=t[1],n=this.attr("anchor"),i=(0,p.default)(n,2),o=i[0],a=i[1];return[Math.floor(-o*e),Math.floor(-a*r),e,r]}},{key:"originalRenderRect",get:function(){var t=this.originalRect,e=this.attr("pos");return[e[0]+t[0],e[1]+t[1],t[2],t[3]]}},{key:"renderBox",get:function(){var t=this.boundingRect,e=this.attr("pos");return[e[0]+t[0]-1,e[1]+t[1]-1,e[0]+t[0]+t[2]+1,e[1]+t[1]+t[3]+1]}},{key:"renderRect",get:function(){var t=this.boundingRect,e=this.attr("pos");return[e[0]+t[0],e[1]+t[1],t[2],t[3]]}},{key:"vertices",get:function(){var t=(0,U.rectVertices)(this.originalRect),e=this.transform,r=this.attr("pos"),n=(0,p.default)(r,2),i=n[0],o=n[1];return t.map(function(t){var r=e.transformPoint(t[0],t[1]),n=(0,p.default)(r,2),a=n[0],u=n[1];return[i+a,o+u]})}},{key:"cache",set:function(t){this.cacheContext=t},get:function(){return this.cacheContext}}],[{key:"defineAttributes",value:function(t){var e=this;return this.Attr=function(e){function r(e){(0,E.default)(this,r);var n=(0,T.default)(this,(r.__proto__||(0,k.default)(r)).call(this,e));return t.init(n,e),n}return(0,R.default)(r,e),r}(this.Attr),(0,f.default)(t).forEach(function(t){var r=(0,p.default)(t,2),n=r[0],i=r[1];"init"!==n&&(0,u.default)(e.Attr.prototype,n,{set:function(t){var e=this.get(n);(0,U.isPropEqual)(e,t)||i(this,t)},get:function(){return this.get(n)}})}),this.Attr}}]),e}(F.default),i.Attr=N.default,o);e.default=X,(0,G.registerNodeType)("basesprite",X)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Vector=e.Matrix=void 0;var i=r(57),o=n(i),a=r(58),u=n(a);e.Matrix=o.default,e.Vector=u.default},function(t,e){t.exports=r(78)},function(t,e){t.exports=r(80)},function(t,e){t.exports=r(47)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Timeline=e.Effects=e.Easings=e.Animator=void 0;var i=r(30),o=n(i),a=r(31),u=n(a),s=r(29),f=r(55),c=n(f);e.Animator=c.default,e.Easings=s.Easings,e.Effects=o.default,e.Timeline=u.default},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var r=e.x,n=e.y,i=e.w,o=e.h,a=e.r;t.beginPath(),t.moveTo(r+a,n),t.arcTo(r+i,n,r+i,n+o,a),t.arcTo(r+i,n+o,r,n+o,a),t.arcTo(r,n+o,r,n,a),t.arcTo(r,n,r+i,n,a),t.closePath()}function o(t,e){var r=(0,h.default)(e,4),n=r[0],i=r[1],o=r[2],a=r[3];(t%=360)<0&&(t+=360);var u=[n,i,n+o,i+a];if(t>=0&&t<90){var s=Math.tan(Math.PI*t/180),f=s*o;f<=a?u=[n,i,n+o,i+f]:(f=a/s,u=[n,i,n+f,i+a])}else if(t>=90&&t<180){var c=Math.tan(Math.PI*(t-90)/180),l=c*a;l<=o?u=[n+o,i,n+o-l,i+a]:(l=o/c,u=[n+o,i,n,i+l])}else if(t>=180&&t<270){var p=Math.tan(Math.PI*(t-180)/180),d=p*o;d<=a?u=[n+o,i+a,n,i+a-d]:(d=a/p,u=[n+o,i+a,n+o-d,i])}else if(t>=270&&t<360){var v=Math.tan(Math.PI*(t-270)/180),y=v*a;y<=o?u=[n,i+a,n+y,i]:(y=o/v,u=[n,i+a,n+o,i+a-y])}return u}function a(t,e,r){var n=e.attr("gradients")||{},i="border"===r?e.attr(r)[1]:e.attr(r),a=void 0;if(n[r]?a=n[r]:"string"!=typeof i&&(a=i),a){var u=a,s=u.colors,f=u.vector,l=u.direction,h=u.rect;if(null!=l){if("border"===r)h=h||[0,0].concat((0,c.default)(e.outerSize));else{var p=e.attr("border")[0];h=h||[p,p].concat((0,c.default)(e.innerSize))}f=o(l,h)}if(4===f.length)i=t.createLinearGradient.apply(t,(0,c.default)(f));else if(6===f.length)i=t.createRadialGradient.apply(t,(0,c.default)(f));else{if(3!==f.length)throw Error("Invalid gradient vector!");i=t.createCircularGradient.apply(t,(0,c.default)(f))}s.forEach(function(t){i.addColorStop(t.offset,t.color)})}return i}function u(t,e,r){var n=t.canvas;if(n&&n.cloneNode){var i=n.cloneNode();return null!=e&&(i.width=e),null!=r&&(i.height=r),i.getContext("2d")}}function s(t){if(t.canvas){var e=t.canvas,r=e.width,n=e.height;t.clearRect(0,0,r,n)}}Object.defineProperty(e,"__esModule",{value:!0});var f=r(3),c=n(f),l=r(0),h=n(l);e.drawRadiusBox=i,e.findColor=a,e.copyContext=u,e.clearContext=s},function(t,e){t.exports=r(137)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(4),o=n(i),a=r(1),u=n(a),s=r(2),f=n(s),c=r(6),l=n(c),h=(0,l.default)("eventHandlers"),p=(0,l.default)("collisionState"),d=function(){function t(){(0,u.default)(this,t),this[h]={}}return(0,f.default)(t,[{key:"on",value:function(t,e){return this[h][t]=this[h][t]||[],this[h][t].push(e),this}},{key:"off",value:function(t,e){if(e&&this[h][t]){var r=this[h][t].indexOf(e);r>=0&&this[h][t].splice(r,1)}else delete this[h][t];return this}},{key:"addEventListener",value:function(t,e){return this.on(t,e)}},{key:"removeEventListener",value:function(t,e){return this.off(t,e)}},{key:"pointCollision",value:function(t){throw Error("you mast override this method")}},{key:"dispatchEvent",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.stopDispatch||(e.stopDispatch=function(){r.terminated=!0}),e.type!==t&&(e.type&&(e.originalType=e.type),e.type=t);var i=n||this.pointCollision(e);if(!e.terminated&&i){e.target=this;var a=this[h][t];if(a&&a.forEach(function(t){return t.call(r,e)}),"mousemove"===t){if(!this[p]){var u=(0,o.default)({},e);u.type="mouseenter",u.terminated=!1,this.dispatchEvent("mouseenter",u,!0)}this[p]=!0}}else if("mousemove"===t){if(this[p]){var s=(0,o.default)({},e);s.type="mouseleave",s.target=this,s.terminated=!1,this.dispatchEvent("mouseleave",s,!0)}this[p]=!1}return this[p]}},{key:"connect",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.parent&&this.disconnect(this.parent),Object.defineProperty(this,"zOrder",{value:e,writable:!1,configurable:!0}),Object.defineProperty(this,"parent",{get:function(){return t},configurable:!0});var r=this[h].append;return r&&r.length&&this.dispatchEvent("append",{parent:t,zOrder:e},!0,!0),this}},{key:"disconnect",value:function(t){if(!this.parent||t!==this.parent)throw new Error("Invalid node to disconnect");var e=this.zOrder;delete this.zOrder;var r=this[h].remove;return r&&r.length&&this.dispatchEvent("remove",{parent:t,zOrder:e},!0,!0),delete this.parent,this}}]),t}();e.default=d},function(t,e,r){t.exports=function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/js/",e(e.s=14)}([function(t,e){t.exports=r(0)},function(t,e,r){"use strict";function n(t){var e=0,r=0,n=0,i=0;return t.map(function(t){t=t.slice();var o=t[0],a=o.toUpperCase();if(o!=a)switch(t[0]=a,o){case"a":t[6]+=n,t[7]+=i;break;case"v":t[1]+=i;break;case"h":t[1]+=n;break;default:for(var u=1;u<t.length;)t[u++]+=n,t[u++]+=i}switch(a){case"Z":n=e,i=r;break;case"H":n=t[1];break;case"V":i=t[1];break;case"M":n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t})}t.exports=n},function(t,e,r){"use strict";t.exports=function(t){return"string"==typeof t&&(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))}},function(t,e,r){"use strict";function n(t){for(var e,r=[],n=0,a=0,f=0,c=0,l=null,h=null,p=0,d=0,v=0,y=t.length;v<y;v++){var g=t[v],m=g[0];switch(m){case"M":f=g[1],c=g[2];break;case"A":var b=s(p,d,g[6],g[7],g[4],g[5],g[1],g[2],g[3]);if(!b.length)continue;b=b.map(function(t){var e=(0,u.default)(t,8);e[0],e[1];return{x1:e[2],y1:e[3],x2:e[4],y2:e[5],x:e[6],y:e[7]}});for(var x,w=0;w<b.length;w++)x=b[w],g=["C",x.x1,x.y1,x.x2,x.y2,x.x,x.y],w<b.length-1&&r.push(g);break;case"S":var _=p,k=d;"C"!=e&&"S"!=e||(_+=_-n,k+=k-a),g=["C",_,k,g[1],g[2],g[3],g[4]];break;case"T":"Q"==e||"T"==e?(l=2*p-l,h=2*d-h):(l=p,h=d),g=o(p,d,l,h,g[1],g[2]);break;case"Q":l=g[1],h=g[2],g=o(p,d,g[1],g[2],g[3],g[4]);break;case"L":g=i(p,d,g[1],g[2]);break;case"H":g=i(p,d,g[1],d);break;case"V":g=i(p,d,p,g[1]);break;case"Z":g=i(p,d,f,c)}e=m,p=g[g.length-2],d=g[g.length-1],g.length>4?(n=g[g.length-4],a=g[g.length-3]):(n=p,a=d),r.push(g)}return r}function i(t,e,r,n){return["C",t,e,r,n,r,n]}function o(t,e,r,n,i,o){return["C",t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,o/3+2/3*n,i,o]}var a=r(0),u=function(t){return t&&t.__esModule?t:{default:t}}(a);t.exports=n;var s=r(13)},function(t,e,r){"use strict";function n(t){var e=[];return t.replace(a,function(t,r,n){var a=r.toLowerCase();for(n=i(n),"m"==a&&n.length>2&&(e.push([r].concat(n.splice(0,2))),a="l",r="m"==r?"l":"L");;){if(n.length==o[a])return n.unshift(r),e.push(n);if(n.length<o[a])throw new Error("malformed path data");e.push([r].concat(n.splice(0,o[a])))}}),e}function i(t){var e=t.match(u);return e?e.map(Number):[]}t.exports=n;var o={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=/([astvzqmhlc])([^astvzqmhlc]*)/gi,u=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},function(t,e,r){"use strict";function n(t){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return e.setAttribute("d",t),e}function i(t,e){var r=n(t),i=r.getPointAtLength(e);return[i.x,i.y]}function o(t,e){return n(t).getTotalLength(e)}function a(t,e,r){var n=t.d,i=new Path2D(n);return document.createElement("canvas").getContext("2d").isPointInPath(i,e,r)}Object.defineProperty(e,"__esModule",{value:!0}),e.getPointAtLength=i,e.getTotalLength=o,e.isPointInPath=a},function(t,e){t.exports=r(4)},function(t,e){t.exports=r(6)},function(t,e){t.exports=r(1)},function(t,e){t.exports=r(2)},function(t,e){t.exports=r(35)},function(t,e){t.exports=r(3)},function(t,e){t.exports=r(14)},function(t,e,r){"use strict";function n(t,e,r,n){var i=t*n-e*r<0?-1:1,o=t*r+e*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function i(t,e,r,i,o,u,s,f,c,l){var h=l*(t-r)/2+c*(e-i)/2,p=-c*(t-r)/2+l*(e-i)/2,d=s*s,v=f*f,y=h*h,g=p*p,m=d*v-d*g-v*y;m<0&&(m=0),m/=d*g+v*y,m=Math.sqrt(m)*(o===u?-1:1);var b=m*s/f*p,x=m*-f/s*h,w=l*b-c*x+(t+r)/2,_=c*b+l*x+(e+i)/2,k=(h-b)/s,S=(p-x)/f,E=(-h-b)/s,M=(-p-x)/f,O=n(1,0,k,S),C=n(k,S,E,M);return 0===u&&C>0&&(C-=a),1===u&&C<0&&(C+=a),[w,_,O,C]}function o(t,e){var r=4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),o=Math.cos(t+e),a=Math.sin(t+e);return[n,i,n-i*r,i+n*r,o+a*r,a-o*r,o,a]}var a=2*Math.PI;t.exports=function(t,e,r,n,u,s,f,c,l){var h=Math.sin(l*a/360),p=Math.cos(l*a/360),d=p*(t-r)/2+h*(e-n)/2,v=-h*(t-r)/2+p*(e-n)/2;if(0===d&&0===v)return[];if(0===f||0===c)return[];f=Math.abs(f),c=Math.abs(c);var y=d*d/(f*f)+v*v/(c*c);y>1&&(f*=Math.sqrt(y),c*=Math.sqrt(y));var g=i(t,e,r,n,u,s,f,c,h,p),m=[],b=g[2],x=g[3],w=Math.max(Math.ceil(Math.abs(x)/(a/4)),1);x/=w;for(var _=0;_<w;_++)m.push(o(b,x)),b+=x;return m.map(function(t){for(var e=0;e<t.length;e+=2){var r=t[e+0],n=t[e+1];r*=f,n*=c;var i=p*r-h*n,o=h*r+p*n;t[e+0]=i+g[0],t[e+1]=o+g[1]}return t})}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(11),o=n(i),a=r(0),u=n(a),s=r(10),f=n(s),c=r(6),l=n(c),h=r(8),p=n(h),d=r(9),v=n(d),y=r(7),g=n(y),m=r(12),b=r(5),x=r(4),w=r(1),_=r(3),k=r(2),S=(0,g.default)("path"),E=(0,g.default)("bounds"),M=(0,g.default)("savedPaths"),O=(0,g.default)("renderProps"),C=(0,g.default)("beginPath"),T=function(){function t(e){if((0,p.default)(this,t),!k(e))throw new Error("Not an SVG path!");var r=_(w(x(e)));this[S]=r,this[E]=null,this[M]=[],this[O]={},this[C]=!1}return(0,v.default)(t,[{key:"save",value:function(){return this[M].push({path:this[S],bounds:this[E],renderProps:(0,l.default)({},this[O])}),this}},{key:"restore",value:function(){if(this[M].length){var t=this[M].pop(),e=t.path,r=t.bounds,n=t.renderProps;this[S]=e,this[E]=r,this[O]=n}return this}},{key:"isPointInPath",value:function(t,e){return(0,b.isPointInPath)(this,t,e)}},{key:"getPointAtLength",value:function(t){return(0,b.getPointAtLength)(this.d,t)}},{key:"getTotalLength",value:function(){return(0,b.getTotalLength)(this.d)}},{key:"transform",value:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];this[E]=null;var n=new m.Matrix(e),i=this[S];return this[S]=i.map(function(t){for(var e=(0,f.default)(t),r=e[0],i=e.slice(1),o=[r],a=0;a<i.length;a+=2){var s=i[a],c=i[a+1],l=n.transformPoint(s,c),h=(0,u.default)(l,2),p=h[0],d=h[1];o.push(p,d)}return o}),this}},{key:"translate",value:function(t,e){var r=(new m.Matrix).translate(t,e);return this.transform.apply(this,(0,o.default)(r.m))}},{key:"rotate",value:function(t){var e=(new m.Matrix).rotate(t);return this.transform.apply(this,(0,o.default)(e.m))}},{key:"scale",value:function(t,e){null==e&&(e=t);var r=(new m.Matrix).scale(t,e);return this.transform.apply(this,(0,o.default)(r.m))}},{key:"skew",value:function(t,e){var r=(new m.Matrix).skew(t,e);return this.transform.apply(this,(0,o.default)(r.m))}},{key:"trim",value:function(){var t=(0,u.default)(this.bounds,2),e=t[0],r=t[1];return this.translate(-e,-r),this}},{key:"beginPath",value:function(){return this[C]=!0,this}},{key:"to",value:function(t){var e=this[S],r=this[O];return e.length&&(this[C]&&t.beginPath(),e.forEach(function(e){var r=(0,f.default)(e),n=r[0],i=r.slice(1);"M"===n?t.moveTo.apply(t,(0,o.default)(i)):t.bezierCurveTo.apply(t,(0,o.default)(i))})),(0,l.default)(t,r),{stroke:function(){return t.stroke(),this},fill:function(){return t.fill(),this}}}},{key:"strokeStyle",value:function(t){return this[O].strokeStyle=t,this}},{key:"fillStyle",value:function(t){return this[O].fillStyle=t,this}},{key:"lineWidth",value:function(t){return this[O].lineWidth=t,this}},{key:"lineCap",value:function(t){return this[O].lineCap=t,this}},{key:"lineJoin",value:function(t){return this[O].lineJoin=t,this}},{key:"bounds",get:function(){if(!this[E]){var t=this[S];if(this[E]=[0,0,0,0],t.length){for(var e=[1/0,1/0,-1/0,-1/0],r=0,n=t.length;r<n;r++)for(var i=t[r].slice(1),o=0;o<i.length;o+=2)i[o+0]<e[0]&&(e[0]=i[o+0]),i[o+1]<e[1]&&(e[1]=i[o+1]),i[o+0]>e[2]&&(e[2]=i[o+0]),i[o+1]>e[3]&&(e[3]=i[o+1]);this[E]=e}}return this[E]}},{key:"size",get:function(){var t=this.bounds;return[t[2]-t[0],t[3]-t[1]]}},{key:"center",get:function(){var t=(0,u.default)(this.bounds,4),e=t[0],r=t[1];return[(e+t[2])/2,(r+t[3])/2]}},{key:"d",get:function(){return this[S].map(function(t){var e=(0,f.default)(t);return e[0]+e.slice(1).join()}).join("")}},{key:"path",get:function(){return this[S]}}]),t}();t.exports=T}])},function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(t){if(c===setTimeout)return setTimeout(t,0);if((c===r||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===n||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function a(){v&&p&&(v=!1,p.length?d=p.concat(d):y=-1,d.length&&u())}function u(){if(!v){var t=i(a);v=!0;for(var e=d.length;e;){for(p=d,d=[];++y<e;)p&&p[y].run();y=-1,e=d.length}p=null,v=!1,o(t)}}function s(t,e){this.fun=t,this.array=e}function f(){}var c,l,h=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:r}catch(t){c=r}try{l="function"==typeof clearTimeout?clearTimeout:n}catch(t){l=n}}();var p,d=[],v=!1,y=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];d.push(new s(t,e)),1!==d.length||v||i(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=f,h.addListener=f,h.once=f,h.off=f,h.removeListener=f,h.removeAllListeners=f,h.emit=f,h.prependListener=f,h.prependOnceListener=f,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e){t.exports=r(15)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(3),o=n(i),a=r(20),u=n(a),s=r(1),f=n(s),c=r(2),l=n(c),h=r(6),p=n(h),d=(0,p.default)("batch"),v=function(){function t(e){(0,f.default)(this,t),this.layer=e,this[d]=new u.default,this.cache=null}return(0,l.default)(t,[{key:"add",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){if(!e.layer||e.layer!==t.layer)throw new Error("Batch node must append to this layer first!");if(e[d])throw new Error("Node already batched!");var r=t;Object.defineProperty(e,"cache",{configurable:!0,get:function(){return r.cache},set:function(t){if(r.baseNode===this)r.cache=t;else if(null==t)throw new Error("Cannot set non-cachable attributes to batch members.Use batch.baseNode.attr(...)")}}),e[d]=t,t[d].add(e)})}},{key:"remove",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){t[d].has(e)&&(delete e[d],delete e.cache,t[d].delete(e))})}},{key:"baseNode",get:function(){for(var t=[].concat((0,o.default)(this[d])),e=t[0],r=1/0,n=1/0,i=1;i<t.length;i++){var a=t[i];n>a.zIndex?(n=a.zIndex,r=a.zOrder,e=a):n===a.zIndex&&r>a.zOrder&&(r=a.zOrder,e=a)}return e}}]),t}();e.default=v},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a,u=r(0),s=n(u),f=r(4),c=n(f),l=r(10),h=n(l),p=r(17),d=n(p),v=r(9),y=n(v),g=r(1),m=n(g),b=r(2),x=n(b),w=r(12),_=n(w),k=r(11),S=n(k),E=r(6),M=n(E),O=r(13),C=n(O),T=r(8),j=r(5),P=r(27),A=r(15),R=(0,M.default)("children"),z=(0,M.default)("zOrder"),I=(i=function(t){function e(t){(0,m.default)(this,e);var r=(0,_.default)(this,(e.__proto__||(0,y.default)(e)).call(this,t));return r.setDefault({clip:null}),r}return(0,S.default)(e,t),(0,x.default)(e,[{key:"clip",set:function(t){this.clearCache(),t?(t="string"==typeof t?{d:t}:t,this.subject.svg=(0,P.createSvgPath)(t),this.set("clip",t)):(this.subject.svg=null,this.set("clip",null))}}]),e}(C.default.Attr),A(i.prototype,"clip",[j.attr],(0,d.default)(i.prototype,"clip"),i.prototype),i),L=(a=o=function(t){function e(t){(0,m.default)(this,e);var r=(0,_.default)(this,(e.__proto__||(0,y.default)(e)).call(this,t));return r[R]=[],r[z]=0,r}return(0,S.default)(e,t),(0,x.default)(e,[{key:"appendChild",value:function(t){this[R].push(t),t.connect(this,this[z]++)}},{key:"append",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){return t.appendChild(e)})}},{key:"removeChild",value:function(t){var e=this[R].indexOf(t);return-1===e?null:(this[R].splice(e,1),t.disconnect(this),t)}},{key:"remove",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];0===r.length&&(r=this[R].slice(0)),r.forEach(function(e){return t.removeChild(e)})}},{key:"cloneNode",value:function(t){var r=(0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"cloneNode",this).call(this);if(t){this.children.forEach(function(e){var n=e.cloneNode(t);r.append(n)})}return r}},{key:"pointCollision",value:function(t){if((0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"pointCollision",this).call(this,t)){if(this.svg){var r=t.offsetX,n=t.offsetY,i=this.originalRect;t.isInClip=this.svg.isPointInPath(r-i[0],n-i[1])}return!0}return!1}},{key:"dispatchEvent",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n||this.pointCollision(r);if(!r.terminated&&o){var a=r.offsetX-this.originalRect[0],u=r.offsetY-this.originalRect[1],s=(0,c.default)({},r);s.parentX=a,s.parentY=u;var f=this[R].slice(0);(0,j.sortOrderedSprites)(f,!0);var l=[];if(!i&&"mouseenter"!==t&&"mouseleave"!==t)for(var p=0;p<f.length&&!1!==r.isInClip;p++){var d=f[p],v=d.dispatchEvent(t,s,n,i);if(v&&l.push(d),r.terminated&&!r.type.startsWith("mouse"))break}return r.targetSprites=l,(0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"dispatchEvent",this).call(this,t,r,n)}}},{key:"render",value:function(t,r){var n=(0,h.default)(e.prototype.__proto__||(0,y.default)(e.prototype),"render",this).call(this,t,r);this.attr("clip")&&(n.save(),this.svg.beginPath().to(n),n.restore(),n.clip(),n.clearRect(0,0,this.originalRect[2],this.originalRect[3]));var i=this[R].slice(0);(0,j.sortOrderedSprites)(i);for(var o=0;o<i.length;o++){i[o].draw(t)}return n}},{key:"children",get:function(){return this[R]}},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,s.default)(t,2),r=e[0],n=e[1];if(""===r||""===n)if(this.attr("clip")){var i=this.svg,o=i.bounds;r=o[2],n=o[3]}else{var a=void 0,u=void 0;a=0,u=0,this[R].forEach(function(t){var e=t.renderBox;a=Math.max(a,e[2]),u=Math.max(u,e[3])}),r=a,n=u}return[r,n]}}]),e}(C.default),o.Attr=I,a);e.default=L,(0,T.registerNodeType)("group",L,!0)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){for(var r=0;r<e;r++)!function(e){var r=t[t.length-1],n=[],i=r[0][0],o=r[0][1];r.forEach(function(){n.push([i,o,i,o,i,o,i,o])}),t.push(n)}()}function o(t,e){for(var r=0;r<e;r++)!function(e){var r=t[t.length-1],n=[];r.forEach(function(t){n.push(t.slice(0))}),t.push(n)}()}function a(t,e,r,n,i,o,a,s,f){return{left:u(t,e,r,n,i,o,a,s,f),right:u(a,s,i,o,r,n,t,e,1-f,!0)}}function u(t,e,r,n,i,o,a,u,s,f){var c=(r-t)*s+t,l=(n-e)*s+e,h=(i-r)*s+r,p=(o-n)*s+n,d=(a-i)*s+i,v=(u-o)*s+o,y=(h-c)*s+c,g=(p-l)*s+l,m=(d-h)*s+h,b=(v-p)*s+p,x=(m-y)*s+y,w=(b-g)*s+g;return f?[x,w,y,g,c,l,t,e]:[t,e,c,l,y,g,x,w]}function s(t,e){for(var r=0,n=0;r<e;r++){var i=t[n],o=a(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],.5);t.splice(n,1),t.splice(n,0,o.left,o.right),n+=2,n>=t.length-1&&(n=0)}}function f(t){var e=0,r=0,n=[];return t.forEach(function(t){var i=(0,k.default)(t),o=i[0],a=i.slice(1);"M"===o?(e=a[0],r=a[1]):(n.push([e,r].concat((0,w.default)(a))),e=a[4],r=a[5])}),[n]}function c(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,n=f(t.path),a=f(e.path),u=n.length,c=a.length;return u>c?i(a,u-c):u<c&&o(n,c-u),n=(0,S.sort)(n,a),n.forEach(function(t,e){var n=t.length,i=a[e].length;n>i?n<r?(s(t,r-n),s(a[e],r-i)):s(a[e],n-i):n<i&&(i<r?(s(t,r-n),s(a[e],r-i)):s(t,i-n))}),n.forEach(function(t,e){n[e]=(0,S.sortCurves)(t,a[e])}),[n,a]}function l(t,e,r,n,i){return[t+(r-t)*i,e+(n-e)*i]}function h(t,e,r){return l(t[0],t[1],e[0],e[1],r).concat(l(t[2],t[3],e[2],e[3],r)).concat(l(t[4],t[5],e[4],e[5],r)).concat(l(t[6],t[7],e[6],e[7],r))}function p(t,e,r){var n=c(t,e),i=(0,b.default)(n,2),o=i[0],a=i[1];return o.map(function(t,e){var n=a[e];return t.map(function(t,e){var i=n[e],o=h(t,i,r);return 0===e?"M"+o[0]+" "+o[1]+" C"+o[2]+" "+o[3]+", "+o[4]+" "+o[5]+", "+o[6]+" "+o[7]:o[2]+" "+o[3]+", "+o[4]+" "+o[5]+", "+o[6]+" "+o[7]})}).join(" ")+"z"}function d(t,e,r,n,i){var o=(r-n)/(i-n);return o<=0?t:o>=1?e:(t=new M.default(t),e=new M.default(e),p(t,e,o))}function v(t){"string"==typeof t&&(t={d:t});var e=new M.default(t.d);return(t.transform||t.trim)&&(t.transform&&(0,g.default)(t.transform).forEach(function(t){var r=(0,b.default)(t,2),n=r[0],i=r[1];Array.isArray(i)||(i=[i]),e[n].apply(e,(0,w.default)(i))}),t.trim&&e.trim()),e}Object.defineProperty(e,"__esModule",{value:!0});var y=r(7),g=n(y),m=r(0),b=n(m),x=r(3),w=n(x),_=r(35),k=n(_);e.pathEffect=d,e.createSvgPath=v;var S=r(47),E=r(22),M=n(E)},function(t,e,r){"use strict";(function(e){function n(t){return t&&t.__esModule?t:{default:t}}function i(){if("undefined"!=typeof performance&&performance.now)return performance.now();if(void 0!==e&&e.hrtime){var t=e.hrtime(),r=(0,s.default)(t,2);return 1e3*r[0]+1e-6*r[1]}return Date.now?Date.now():(new Date).getTime()}var o=r(7),a=n(o),u=r(0),s=n(u),f=void 0,c=void 0;"undefined"==typeof requestAnimationFrame?(f=function(t){return setTimeout(function(){t(i())},16)},c=function(t){return clearTimeout(t)}):(f=requestAnimationFrame,c=cancelAnimationFrame);var l=[],h=void 0,p=0,d={requestAnimationFrame:function(t){return l[++p]=t,null==h&&(h=f(function(t){h=null,(0,a.default)(l).forEach(function(e){var r=(0,s.default)(e,2),n=r[0];(0,r[1])(t),delete l[n]})})),p},cancelAnimationFrame:function(t){delete l[t],!l.length&&h&&(c(h),h=null)}};t.exports=d}).call(e,r(23))},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=v.get(e);return n||(n=d.apply(void 0,e),v.set(e,n),n)}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return function(r,n){for(var i=1;i<n.length;i++){var o=n[i].offset;if(r<=o){var a=n[i-1].offset,u=o,s=(r-a)/(u-a),f=1/t,c=s/f;return c="end"===e?Math.floor(c):Math.ceil(c),f*c*(u-a)+a}}return 0}}function a(t){var e=/^cubic-bezier\((.*)\)/,r=t.match(e);if(r){var n=r[1].trim();return n=n.split(",").map(function(t){return parseFloat(t.trim())}),i.apply(void 0,(0,l.default)(n))}if(e=/^steps\((.*)\)/,r=t.match(e)){var a=r[1].trim();a=a.split(",").map(function(t){return t.trim()});var u=a,s=(0,f.default)(u,2),c=s[0],h=s[1];return o(parseInt(c,10),h)}return t}function u(t){return"string"==typeof t?t=y[t]?y[t]:a(t):"cubic-bezier"===t.type?t=i.apply(void 0,(0,l.default)(t.value)):"steps"===t.type&&(t=o(t.step,t.pos)),t}Object.defineProperty(e,"__esModule",{value:!0}),e.parseEasing=e.Easings=void 0;var s=r(0),f=n(s),c=r(3),l=n(c),h=r(16),p=n(h),d=r(50),v=new p.default,y={linear:function(t){return t},ease:i(.25,.1,.25,1),"ease-in":i(.42,0,1,1),"ease-out":i(0,0,.58,1),"ease-in-out":i(.42,0,.58,1),"step-start":o(1,"start"),"step-end":o(1,"end")};e.Easings=y,e.parseEasing=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={default:function(t,e,r,n,i){return"number"==typeof t&&"number"==typeof e?t+(r-n)/(i-n)*(e-t):r-n>i-r?e:t}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}var i=r(0),o=n(i),a=r(3),u=n(a),s=r(66),f=n(s),c=r(16),l=n(c),h=r(4),p=n(h),d=r(1),v=n(d),y=r(2),g=n(y),m=r(6),b=n(m),x=r(59),w={originTime:0,playbackRate:1},_=(0,b.default)("timeMark"),k=(0,b.default)("playbackRate"),S=(0,b.default)("timers"),E=(0,b.default)("originTime"),M=(0,b.default)("timerID"),O=(0,b.default)("setTimer"),C=(0,b.default)("parent"),T=function(){function t(e,r){(0,v.default)(this,t),e instanceof t&&(r=e,e={}),e=(0,p.default)({},w,e),r&&(this[C]=r),this[_]=[{globalTime:this.globalTime,localTime:-e.originTime,entropy:-e.originTime,playbackRate:e.playbackRate,globalEntropy:0}],this[C]&&(this[_][0].globalEntropy=this[C].entropy),this[E]=e.originTime,this[k]=e.playbackRate,this[S]=new l.default,this[M]=0}return(0,g.default)(t,[{key:"fork",value:function(e){return new t(e,this)}},{key:"seekGlobalTime",value:function(t){var e=this.seekTimeMark(t),r=this[_][e],n=r.entropy,i=r.playbackRate;return r.globalTime+(t-n)/Math.abs(i)}},{key:"seekLocalTime",value:function(t){var e=this.seekTimeMark(t),r=this[_][e],n=r.localTime,i=r.entropy;return r.playbackRate>0?n+(t-i):n-(t-i)}},{key:"seekTimeMark",value:function(t){var e=this[_],r=0,n=e.length-1;if(t<=e[r].entropy)return r;if(t>=e[n].entropy)return n;for(var i=Math.floor((r+n)/2);i>r&&i<n;){if(t===e[i].entropy)return i;t<e[i].entropy?n=i:t>e[i].entropy&&(r=i),i=Math.floor((r+n)/2)}return r}},{key:"clearTimeout",value:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){var e=this[S].get(t);e&&null!=e.timerID&&(this[C]?this[C].clearTimeout(e.timerID):clearTimeout(e.timerID)),this[S].delete(t)})},{key:"clearInterval",value:function(t){return this.clearTimeout(t)}},{key:"setTimeout",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0};return this[O](t,e)}},{key:"setInterval",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{delay:0},r=this,n=this[O](function i(){r[O](i,e,n),t()},e);return n}},{key:O,value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:++this[M];e=(0,x.formatDelay)(e);var i=this[S].get(n),o=void 0,a=null,u=void 0,s=void 0;if(i?(this.clearTimeout(n),o=e.isEntropy?(e.delay-(this.entropy-i.startEntropy))/Math.abs(this.playbackRate):this.playbackRate>=0?(e.delay-(this.currentTime-i.startTime))/this.playbackRate:(i.startTime-this.currentTime)/this.playbackRate,u=i.startTime,s=i.startEntropy):(o=e.delay/(e.isEntropy?Math.abs(this.playbackRate):this.playbackRate),u=this.currentTime,s=this.entropy),(0,f.default)(o)){o=Math.ceil(o);var c=this[C];a=(c?c.setTimeout.bind(c):setTimeout)(function(){r[S].delete(n),t()},o)}return this[S].set(n,{timerID:a,handler:t,time:e,startTime:u,startEntropy:s}),n}},{key:"lastTimeMark",get:function(){return this[_][this[_].length-1]}},{key:"currentTime",get:function(){var t=this.lastTimeMark,e=t.localTime,r=t.globalTime;return e+(this.globalTime-r)*this.playbackRate},set:function(t){var e={globalTime:this.globalTime,localTime:t,entropy:this.entropy,playbackRate:this.playbackRate};this[C]&&(e.globalEntropy=this[C].entropy),this[_].push(e)}},{key:"entropy",get:function(){var t=this.lastTimeMark,e=t.globalTime,r=t.entropy,n=t.globalEntropy;return this[C]?r+Math.abs((this[C].entropy-n)*this.playbackRate):r+Math.abs((this.globalTime-e)*this.playbackRate)},set:function(t){var e=this.seekTimeMark(t);this[_].length=e+1;var r={globalTime:this.globalTime,localTime:this.currentTime,entropy:t,playbackRate:this.playbackRate};this[C]&&(r.globalEntropy=this[C].entropy),this[_].push(r)}},{key:"globalTime",get:function(){return this[C]?this[C].currentTime:(0,x.nowtime)()}},{key:"playbackRate",get:function(){return this[k]},set:function(t){var e=this;if(t!==this.playbackRate){var r=this.currentTime;this.currentTime=r,this[k]=t,this.lastTimeMark.playbackRate=t;[].concat((0,u.default)(this[S])).forEach(function(t){var r=(0,o.default)(t,2),n=r[0],i=r[1];e[O](i.handler,i.time,n)})}}}]),t}();t.exports=T},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t){return t&&"string"==typeof t?z(t).toString():t}function o(t){if("string"!=typeof t)return t;var e=t.match(/(?:^|\s)+((?:scale|rotate|translate|skew|matrix)\([^()]+\))/g),r={};return e&&e.forEach(function(t){var e=t.match(/(scale|rotate|translate|skew|matrix)\(([^()]+)\)/),n=(0,O.default)(e,3),i=n[1],o=n[2];r[i]="rotate"===i?s(o)[0]:s(o)}),r}function a(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("string"==typeof t){return t.split(/[\s,]+/g).map(function(t){return e?parseInt(t,10):parseFloat(t)})}return t}function u(t){return a(t,!0)}function s(t){return a(t,!1)}function f(t){return Array.isArray(t)?1===t.length?[t[0],t[0]]:t:[t,t]}function c(t){return Array.isArray(t)?1===t.length?[t[0],t[0],t[0],t[0]]:2===t.length?[t[0],t[1],t[0],t[1]]:[].concat((0,E.default)(t),[0,0,0,0]).slice(0,4):[t,t,t,t]}function l(t,e){var r=[t[0],t[1],t[2],t[3]],n=r[0],i=r[1],o=r[2],a=r[3],u=[e[0],e[1],e[2],e[3]],s=u[0],f=u[1],c=u[2],l=u[3],h=Math.max(i,f),p=Math.min(o,c),d=Math.min(a,l),v=Math.max(n,s);return d>=h&&p>=v?[v,h,p,d]:null}function h(t){return[t[0],t[1],t[2]-t[0],t[3]-t[1]]}function p(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function d(t){return[t[0],t[1],t[0]+t[2],t[1]+t[3]]}function v(t){var e=d(t),r=(0,O.default)(e,4),n=r[0],i=r[1],o=r[2],a=r[3];return[[n,i],[o,i],[o,a],[n,a]]}function y(t,e){return t?e?[Math.min(t[0],e[0]),Math.min(t[1],e[1]),Math.max(t[2],e[2]),Math.max(t[3],e[3])]:t:e}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";return""===t?t:"string"==typeof t&&(0,k.default)(Number(t))?t:t+e}function m(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.sort(function(t,r){if(e){var n=[r,t];t=n[0],r=n[1]}return t.zIndex===r.zIndex?t.zOrder-r.zOrder:t.zIndex-r.zIndex})}function b(t,e){if(null==t&&null==e)return!0;var r=void 0===t?"undefined":(0,w.default)(t);if(("string"===r||"number"===r||"boolean"===r)&&t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)&&t!==e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++){var i=(0,w.default)(t[n]);if("string"!==i&&"number"!==i&&"boolean"!==i)return!1;if(t[n]!==e[n])return!1}return!0}return!1}Object.defineProperty(e,"__esModule",{value:!0}),e.sortOrderedSprites=e.appendUnit=e.rectVertices=e.rectToBox=e.boxUnion=e.boxEqual=e.boxToRect=e.boxIntersect=e.parseStringTransform=e.fourValuesShortCut=e.parseColorString=e.parseStringFloat=e.parseStringInt=e.oneOrTwoValues=e.parseColor=e.isPropEqual=e.Color=void 0;var x=r(36),w=n(x),_=r(67),k=n(_),S=r(3),E=n(S),M=r(0),O=n(M),C=r(1),T=n(C),j=r(2),P=n(j),A=r(52),R=function(){function t(e){if((0,T.default)(this,t),"string"==typeof e){var r=A.get(e),n=r.model,i=r.value;this.model=n,this.value=i}else this.model=e.model,this.value=e.value}return(0,P.default)(t,[{key:"toString",value:function(){var t=(0,O.default)(this.value,4),e=t[0],r=t[1],n=t[2],i=t[3],o=this.model;return"rgb"===o?o+"a("+e+","+r+","+n+","+i+")":o+"a("+e+","+r+"%,"+n+"%,"+i+")"}},{key:"str",get:function(){return String(this)}}]),t}();e.Color=R;var z=function(t){return new R(t)};e.isPropEqual=b,e.parseColor=z,e.oneOrTwoValues=f,e.parseStringInt=u,e.parseStringFloat=s,e.parseColorString=i,e.fourValuesShortCut=c,e.parseStringTransform=o,e.boxIntersect=l,e.boxToRect=h,e.boxEqual=p,e.boxUnion=y,e.rectToBox=d,e.rectVertices=v,e.appendUnit=g,e.sortOrderedSprites=m},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e){t.exports=r(130)},function(t,e){t.exports=r(140)},function(t,e){t.exports=r(49)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r,n){var i=e.split(/\n/),o=0,a=0;return i.forEach(function(e){var i=P(t,e,r,n),u=(0,k.default)(i,2),s=u[0],f=u[1];o=Math.max(o,s),a+=f}),0===o&&0===a?"":[o,a]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,a,u,s=r(10),f=n(s),c=r(17),l=n(c),h=r(9),p=n(h),d=r(1),v=n(d),y=r(2),g=n(y),m=r(12),b=n(m),x=r(11),w=n(x),_=r(0),k=n(_),S=r(13),E=n(S),M=r(5),O=r(8),C=r(19),T=r(15),j=r(46),P=function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=t.context;if(!i)return[0,0];i.save(),i.font=r;var o=i.measureText(e),a=o.width;return i.restore(),[a,n||1.2*j(r).size].map(Math.round)},A=(o=function(t){function e(t){(0,v.default)(this,e);var r=(0,b.default)(this,(e.__proto__||(0,p.default)(e)).call(this,t));return r.setDefault({font:"16px Arial",textAlign:"left",strokeColor:"",fillColor:"",lineHeight:"",text:"",textboxSize:""},{color:{get:function(){return this.fillColor}}}),r}return(0,w.default)(e,t),(0,g.default)(e,[{key:"text",set:function(t){this.clearCache(),t=String(t),this.set("textboxSize",""),this.set("text",t)}},{key:"textboxSize",set:function(t){this.set("textboxSize",t)}},{key:"font",set:function(t){this.clearCache(),this.set("textboxSize",""),this.set("font",t)}},{key:"lineHeight",set:function(t){this.clearCache(),this.set("textboxSize",""),this.set("lineHeight",t)}},{key:"textAlign",set:function(t){this.clearCache(),this.set("textAlign",t)}},{key:"color",set:function(t){this.fillColor=t}},{key:"strokeColor",set:function(t){this.clearCache(),this.set("strokeColor",(0,M.parseColorString)(t))}},{key:"fillColor",set:function(t){this.clearCache(),this.set("fillColor",(0,M.parseColorString)(t))}}]),e}(E.default.Attr),T(o.prototype,"text",[M.attr],(0,l.default)(o.prototype,"text"),o.prototype),T(o.prototype,"textboxSize",[M.attr],(0,l.default)(o.prototype,"textboxSize"),o.prototype),T(o.prototype,"font",[M.attr],(0,l.default)(o.prototype,"font"),o.prototype),T(o.prototype,"lineHeight",[M.attr],(0,l.default)(o.prototype,"lineHeight"),o.prototype),T(o.prototype,"textAlign",[M.attr],(0,l.default)(o.prototype,"textAlign"),o.prototype),T(o.prototype,"color",[M.attr],(0,l.default)(o.prototype,"color"),o.prototype),T(o.prototype,"strokeColor",[M.attr],(0,l.default)(o.prototype,"strokeColor"),o.prototype),T(o.prototype,"fillColor",[M.attr],(0,l.default)(o.prototype,"fillColor"),o.prototype),o),R=(u=a=function(t){function e(t){return(0,v.default)(this,e),"string"==typeof t&&(t={text:t}),(0,b.default)(this,(e.__proto__||(0,p.default)(e)).call(this,t))}return(0,w.default)(e,t),(0,g.default)(e,[{key:"render",value:function(t,r){var n=this,i=(0,f.default)(e.prototype.__proto__||(0,p.default)(e.prototype),"render",this).call(this,t,r),o=this.attr(),a=this.text,u=o.font;if(a){i.font=o.font;var s=this.text.split(/\n/);i.textBaseline="top";var c=o.textAlign;i.textBaseline="middle";var l=(0,C.findColor)(i,this,"strokeColor");l&&(i.strokeStyle=l);var h=(0,C.findColor)(i,this,"fillColor");l||h||(h=(0,M.parseColorString)("black")),h&&(i.fillStyle=h);var d=0,v=0,y=this.contentSize[0];s.forEach(function(t){var e=P(n,t,u,o.lineHeight),r=(0,k.default)(e,2),a=r[0],s=r[1];"center"===c?v+=(y-a)/2:"right"===c&&(v+=y-a),h&&i.fillText(t,v,d+s/2),l&&i.strokeText(t,v,d+s/2),d+=s})}return i}},{key:"text",set:function(t){this.attr("text",t)},get:function(){return this.attr("text")}},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,k.default)(t,2),r=e[0],n=e[1],o=this.attr("textboxSize");if(o)return o;if(""===r||""===n){var a=i(this,this.text,this.attr("font"),this.attr("lineHeight"));return this.attr("textboxSize",a),a||[0,0]}return[r,n]}}]),e}(E.default),a.Attr=A,u);e.default=R,(0,O.registerNodeType)("label",R)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(3),o=n(i),a=r(64),u=n(a),s=r(0),f=n(s),c=r(4),l=n(c),h=r(24),p=n(h),d=r(20),v=n(d),y=r(9),g=n(y),m=r(1),b=n(m),x=r(2),w=n(x),_=r(12),k=n(_),S=r(10),E=n(S),M=r(11),O=n(M),C=r(6),T=n(C),j=r(21),P=n(j),A=r(25),R=n(A),z=r(26),I=n(z),L=r(18),N=r(28),D=r(8),F=r(19),B=r(45),q=r(5),V=(0,T.default)("children"),U=(0,T.default)("updateSet"),G=(0,T.default)("zOrder"),H=(0,T.default)("tRecord"),J=(0,T.default)("timeline"),W=(0,T.default)("renderDeferrer"),X=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.context,n=t.handleEvent,i=t.evaluateFPS,o=t.renderMode;(0,b.default)(this,e);var a=(0,k.default)(this,(e.__proto__||(0,g.default)(e)).call(this));if(a.handleEvent=!1!==n,a.evaluateFPS=!!i,a.renderMode=o||"repaintAll",a.outputContext=r,r.canvas&&r.canvas.cloneNode){var u=r.canvas.cloneNode();a.shadowContext=u.getContext("2d")}return a[V]=[],a[U]=new v.default,a[G]=0,a[H]=[],a[J]=new L.Timeline,a[W]=null,a}return(0,O.default)(e,t),(0,w.default)(e,[{key:"insertBefore",value:function(t,e){var r=this[V].indexOf(e);if(r>=0){this.removeChild(t),this[V].splice(r,0,t),t.connect(this,e.zOrder),this.update(t);for(var n=r+1;n<this[V].length;n++){var i=this[V][n],o=i.zOrder+1;delete i.zOrder,Object.defineProperty(this,"zOrder",{value:o,writable:!1,configurable:!0}),this.update(i)}this[G]++}return t}},{key:"prepareRender",value:function(){var t=this;return this[W]||(this[W]={},this[W].promise=new p.default(function(e,r){(0,l.default)(t[W],{resolve:e,reject:r}),(0,N.requestAnimationFrame)(t.draw.bind(t))})),this[W]?this[W].promise:p.default.resolve()}},{key:"draw",value:function(t){if(t&&this.evaluateFPS&&(this[H].push(t),this[H]=this[H].slice(-10)),this[U].size){var r=void 0;if("repaintDirty"===this.renderMode)r=this.renderRepaintDirty.bind(this);else{if("repaintAll"!==this.renderMode)throw new Error("unknown render mode!");r=this.renderRepaintAll.bind(this)}var n=this.timeline.currentTime;r(n),(0,E.default)(e.prototype.__proto__||(0,g.default)(e.prototype),"dispatchEvent",this).call(this,"update",{target:this,timeline:this.timeline,renderTime:n},!0)}this[W]&&(this[W].resolve(),this[W]=null)}},{key:"update",value:function(t){t&&this[U].has(t)||(!t||t.lastRenderBox||this.isVisible(t))&&(t&&this[U].add(t),this.prepareRender())}},{key:"isVisible",value:function(t){if(t.isVisible)return t.isVisible();if(t.attr("opacity")<=0)return!1;var e=(0,f.default)(t.offsetSize,2),r=e[0],n=e[1];return!(r<=0||n<=0)}},{key:"drawSprites",value:function(t,e){for(var r=0;r<t.length;r++){var n=t[r];n.parent===this&&(this.isVisible(n)?n.draw(e):delete n.lastRenderBox)}}},{key:"renderRepaintAll",value:function(t){var e=this,r=this[V].filter(function(t){return e.isVisible(t)});(0,q.sortOrderedSprites)(r);var n=this.outputContext;(0,F.clearContext)(n);var i=this.shadowContext;i?((0,F.clearContext)(i),this.drawSprites(r,t),n.drawImage(i.canvas,0,0)):this.drawSprites(r,t),this[U].clear()}},{key:"renderRepaintDirty",value:function(t){var e=this;if(!this.outputContext.canvas)return console.warn("Cannot use repaintDirty, fallback to repaintAll!"),this.renderRepaintAll(t);for(var r=this.outputContext.canvas,n=r.width,i=r.height,a=this[U],s=this[V].filter(function(t){return e.isVisible(t)}),f=s.filter(function(t){return!a.has(t)}),c=new v.default,l=new v.default,h=(0,u.default)(a),p=0;p<f.length;p++){var d=f[p];(0,B.isSpriteDirty)(d,h,!0)?c.add(d):l.add(d)}if(c.size>0&&l.size>0){var y=void 0;do{y=!1;for(var g=(0,u.default)(c),m=(0,u.default)(l),b=0;b<m.length;b++){var x=m[b];if((0,B.isSpriteDirty)(x,g)){c.add(x),l.delete(x),y=!0;break}}}while(y)}var w=this.shadowContext,_=this.outputContext;w?(w.save(),w.beginPath()):(_.save(),_.beginPath()),(0,B.clearDirtyRects)({shadowContext:w,outputContext:_},h,!0);var k=(0,u.default)(c);(0,B.clearDirtyRects)({shadowContext:w,outputContext:_},k,!1),w?(w.clip(),w.clearRect(0,0,n,i)):(_.clip(),_.clearRect(0,0,n,i));var S=[].concat((0,o.default)(a),(0,o.default)(c));(0,q.sortOrderedSprites)(S),this.drawSprites(S,t),w&&(_.clearRect(0,0,n,i),_.drawImage(w.canvas,0,0),w.restore()),_.restore(),this[U].clear()}},{key:"appendChild",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.removeChild(t),this[V].push(t),t.connect(this,this[G]++),e&&this.update(t),t}},{key:"append",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){return t.appendChild(e)})}},{key:"removeChild",value:function(t){var e=this[V].indexOf(t);return-1===e?null:(this[V].splice(e,1),(this.isVisible(t)||t.lastRenderBox)&&t.forceUpdate(),t.disconnect(this),t)}},{key:"remove",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return 0===r.length&&(r=this[V].slice(0)),r.map(function(e){return t.removeChild(e)})}},{key:"pointCollision",value:function(t){if(this.outputContext.canvas){var e=t.layerX,r=t.layerY,n=this.outputContext.canvas,i=n.width,o=n.height;return e>=0&&r>=0&&e<i&&r<o}return!0}},{key:"dispatchEvent",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=n||this.pointCollision(r);if(!r.terminated&&o){r.layer=this;var a=this[V].slice(0);(0,q.sortOrderedSprites)(a,!0);var u=[];if(!i&&"mouseenter"!==t&&"mouseleave"!==t)for(var s=0;s<a.length;s++){var f=a[s],c=f.dispatchEvent(t,r,n,i);if(c&&u.push(f),r.terminated&&!r.type.startsWith("mouse"))break}return r.targetSprites=u,(0,E.default)(e.prototype.__proto__||(0,g.default)(e.prototype),"dispatchEvent",this).call(this,t,r,n)}}},{key:"connect",value:function(t,r,n){return(0,E.default)(e.prototype.__proto__||(0,g.default)(e.prototype),"connect",this).call(this,t,r),this.zIndex=n,t&&t.container&&t.container.appendChild(this.outputContext.canvas),this}},{key:"disconnect",value:function(t){return this.canvas&&this.canvas.remove&&this.canvas.remove(),(0,E.default)(e.prototype.__proto__||(0,g.default)(e.prototype),"disconnect",this).call(this,t)}},{key:"group",value:function(){var t=new I.default;return t.append.apply(t,arguments),this.appendChild(t),t}},{key:"batch",value:function(){for(var t=this,e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];r.forEach(function(e){e.layer!==t&&t.appendChild(e)});var i=new R.default(this);return i.add.apply(i,r),i}},{key:"adjust",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.outputContext,n=this.shadowContext;if(!n)throw new Error("No shadowContext.");(0,F.clearContext)(r),t.call(this,r),e&&r.drawImage(n.canvas,0,0)}},{key:"clearUpdate",value:function(){this[U].clear()}},{key:"children",get:function(){return this[V]}},{key:"timeline",get:function(){return this[J]}},{key:"context",get:function(){return this.shadowContext?this.shadowContext:this.outputContext}},{key:"canvas",get:function(){return this.outputContext.canvas}},{key:"fps",get:function(){if(!this.evaluateFPS)return NaN;var t=0,e=this[H].slice(-10),r=e.length;return r<=5?NaN:(e.reduceRight(function(e,r,n){return t+=e-r,r}),Math.round(1e3*(r-1)/t))}}]),e}(P.default);e.default=X,(0,D.registerNodeType)("layer",X,!0)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a,u,s=r(0),f=n(s),c=r(3),l=n(c),h=r(10),p=n(h),d=r(17),v=n(d),y=r(4),g=n(y),m=r(9),b=n(m),x=r(1),w=n(x),_=r(2),k=n(_),S=r(12),E=n(S),M=r(11),O=n(M),C=r(13),T=n(C),j=r(19),P=r(18),A=r(5),R=r(27),z=r(8),I=r(15);P.Effects.d=R.pathEffect,P.Effects.path=function(t,e,r,n,i){return t=(0,R.createSvgPath)(t),e=(0,R.createSvgPath)(e),(0,R.pathEffect)(t.d,e.d,r,n,i)};var L=(i=(0,A.deprecate)("Instead use strokeColor."),o=function(t){function e(t){(0,w.default)(this,e);var r=(0,E.default)(this,(e.__proto__||(0,b.default)(e)).call(this,t));return r.setDefault({lineWidth:1,lineCap:"butt",lineJoin:"miter",strokeColor:"",fillColor:""},{color:{get:function(){return this.strokeColor}},d:{get:function(){return this.path?this.path.d:null}}}),r}return(0,O.default)(e,t),(0,k.default)(e,[{key:"path",set:function(t){this.clearCache(),t?(t="string"==typeof t?{d:t}:t,this.subject.svg=(0,R.createSvgPath)(t),this.set("path",t)):(this.subject.svg=null,this.set("path",null))}},{key:"d",set:function(t){if(t){var e=this.get("path");this.path=e?(0,g.default)(e,{d:t}):{d:t}}else this.path=null}},{key:"lineWidth",set:function(t){this.clearCache(),this.set("lineWidth",Math.round(t))}},{key:"lineCap",set:function(t){this.clearCache(),this.set("lineCap",t)}},{key:"lineJoin",set:function(t){this.clearCache(),this.set("lineJoin",t)}},{key:"strokeColor",set:function(t){this.clearCache(),this.set("strokeColor",(0,A.parseColorString)(t))}},{key:"fillColor",set:function(t){this.clearCache(),this.set("fillColor",(0,A.parseColorString)(t))}},{key:"color",set:function(t){this.strokeColor=t}}]),e}(T.default.Attr),I(o.prototype,"path",[A.attr],(0,v.default)(o.prototype,"path"),o.prototype),I(o.prototype,"d",[A.attr],(0,v.default)(o.prototype,"d"),o.prototype),I(o.prototype,"lineWidth",[A.attr],(0,v.default)(o.prototype,"lineWidth"),o.prototype),I(o.prototype,"lineCap",[A.attr],(0,v.default)(o.prototype,"lineCap"),o.prototype),I(o.prototype,"lineJoin",[A.attr],(0,v.default)(o.prototype,"lineJoin"),o.prototype),I(o.prototype,"strokeColor",[A.attr],(0,v.default)(o.prototype,"strokeColor"),o.prototype),I(o.prototype,"fillColor",[A.attr],(0,v.default)(o.prototype,"fillColor"),o.prototype),I(o.prototype,"color",[i,A.attr],(0,v.default)(o.prototype,"color"),o.prototype),o),N=(u=a=function(t){function e(t){return(0,w.default)(this,e),"string"==typeof t&&(t={d:t}),(0,E.default)(this,(e.__proto__||(0,b.default)(e)).call(this,t))}return(0,O.default)(e,t),(0,k.default)(e,[{key:"getPointAtLength",value:function(t){return this.svg?this.svg.getPointAtLength(t):[0,0]}},{key:"getPathLength",value:function(){return this.svg?this.svg.getTotalLength():0}},{key:"findPath",value:function(t,e){var r=this.originalRect,n=this.pathOffset;return this.svg&&this.svg.isPointInPath(t-r[0]-n[0],e-r[1]-n[1])?[this.svg]:[]}},{key:"pointCollision",value:function(t){if((0,p.default)(e.prototype.__proto__||(0,b.default)(e.prototype),"pointCollision",this).call(this,t)){var r=t.offsetX,n=t.offsetY;return t.targetPaths=this.findPath(r,n),!0}return!1}},{key:"render",value:function(t,r){var n=(0,p.default)(e.prototype.__proto__||(0,b.default)(e.prototype),"render",this).call(this,t,r),i=this.attr();if(i.d){n.translate.apply(n,(0,l.default)(this.pathOffset)),this.svg.beginPath().to(n),n.lineWidth=i.lineWidth,n.lineCap=i.lineCap,n.lineJoin=i.lineJoin;var o=(0,j.findColor)(n,this,"fillColor");o&&(n.fillStyle=o);var a=(0,j.findColor)(n,this,"strokeColor");a||o||(a=(0,A.parseColorString)("black")),a&&(n.strokeStyle=a),o&&n.fill(),a&&n.stroke()}return n}},{key:"path",set:function(t){this.attr("path",t)},get:function(){return this.attr("path")}},{key:"lineWidth",get:function(){var t=this.attr("lineWidth"),e=this.attr("gradients"),r=this.attr("fillColor"),n=this.attr("strokeColor"),i=n||e&&e.strokeColor,o=r||e&&e.fillColor;return!i&&o?0:t}},{key:"pathOffset",get:function(){var t=this.lineWidth;return[1.414*t,1.414*t]}},{key:"pathSize",get:function(){return this.svg?this.svg.size:[0,0]}},{key:"contentSize",get:function(){if(!this.svg)return(0,p.default)(e.prototype.__proto__||(0,b.default)(e.prototype),"contentSize",this);var t=this.svg.bounds,r=this.attr("size"),n=(0,f.default)(r,2),i=n[0],o=n[1],a=this.lineWidth;return""===i&&(i=t[2]+2.828*a|0),""===o&&(o=t[3]+2.828*a|0),[i,o]}}]),e}(T.default),a.Attr=L,u);e.default=N,(0,z.registerNodeType)("path",N)},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,a,u=r(34),s=n(u),f=r(3),c=n(f),l=r(0),h=n(l),p=r(16),d=n(p),v=r(10),y=n(v),g=r(17),m=n(g),b=r(9),x=n(b),w=r(1),_=n(w),k=r(2),S=n(k),E=r(12),M=n(E),O=r(11),C=n(O),T=r(6),j=n(T),P=r(13),A=n(P),R=r(44),z=n(R),I=r(5),L=r(8),N=r(15),D=(0,j.default)("_texturesCache"),F=(0,j.default)("_images"),B=(i=function(t){function e(t){(0,_.default)(this,e);var r=(0,M.default)(this,(e.__proto__||(0,x.default)(e)).call(this,t));return r.setDefault({texturesSize:[0,0],textures:[]}),r}return(0,C.default)(e,t),(0,S.default)(e,[{key:"loadTextures",value:function(t){var e=this.subject,r=0,n=0;e.images=t.map(function(t){var e=t.image,i=t.rect,o=t.srcRect,a=void 0,u=void 0;return i?(a=i[2]+i[0],u=i[3]+i[1]):o?(a=o[2],u=o[3]):(a=e.width,u=e.height),r<a&&(r=a),n<u&&(n=u),e}),this.set("texturesSize",[r,n])}},{key:"textures",set:function(t){Array.isArray(t)||(t=[t]),t=t.map(function(t){return t.image||(t={image:t}),t}),this.set("textures",t),this.loadTextures(t)}},{key:"texturesSize",get:function(){return this.get("texturesSize")}}]),e}(A.default.Attr),N(i.prototype,"textures",[I.attr],(0,m.default)(i.prototype,"textures"),i.prototype),i),q=(a=o=function(t){function e(t){(0,_.default)(this,e),"string"==typeof t&&(t={textures:[t]});var r=(0,M.default)(this,(e.__proto__||(0,x.default)(e)).call(this));return r[D]=new d.default,t&&r.attr(t),r}return(0,C.default)(e,t),(0,S.default)(e,[{key:"cloneNode",value:function(){var t=(0,y.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"cloneNode",this).call(this);return t.textures=this.textures,t}},{key:"pointCollision",value:function(t){var r=this;if((0,y.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"pointCollision",this).call(this,t)){var n=this.textures;if(n){var i=t.offsetX,o=t.offsetY;t.targetTextures=[];var a=this.attr("anchor"),u=(0,h.default)(a,2),s=u[0],f=u[1],l=(0,h.default)(this.contentSize,2),p=l[0],d=l[1];i+=p*s,o+=d*f,n.forEach(function(e){var n=e.rect||[0,0].concat((0,c.default)(r.innerSize)),a=(0,h.default)(n,4),u=a[0],s=a[1],f=a[2],l=a[3];i>=u&&i-u<f&&o>=s&&o-s<l&&t.targetTextures.push(e)})}return!0}}},{key:"render",value:function(t,r){var n=this,i=(0,y.default)(e.prototype.__proto__||(0,x.default)(e.prototype),"render",this).call(this,t,r),o=this.textures;return this.images&&o.forEach(function(t,e){var r=n.images[e],o=(t.rect||[0,0].concat((0,c.default)(n.innerSize))).slice(0),a=t.srcRect;if(i.save(),t.filter){var u=void 0,s=a?[0,0,a[2],a[3]]:[0,0,r.width,r.height];if(t.filter.dropShadow){var f=t.filter.dropShadow,l=[f[0]-2*f[2],f[1]-2*f[2],s[2]+4*f[2],s[3]+4*f[2]].map(function(t){return Math.round(t)});u=(0,I.boxToRect)((0,I.boxUnion)((0,I.rectToBox)(l),(0,I.rectToBox)(s))).map(function(t){return Math.abs(t)})}else u=s;var h=o[2]/u[2],p=o[3]/u[3];i.filter=z.default.compile(t.filter),a?i.drawImage.apply(i,[r].concat((0,c.default)(a),[h*u[0]+o[0],p*u[1]+o[1],h*a[2],p*a[3]])):i.drawImage(r,h*u[0]+o[0],p*u[1]+o[1],h*r.width,p*r.height)}else a?i.drawImage.apply(i,[r].concat((0,c.default)(a),(0,c.default)(o))):i.drawImage.apply(i,[r].concat((0,c.default)(o)));i.restore()}),i}},{key:"images",set:function(t){this[F]=t},get:function(){return this[F]}},{key:"textures",set:function(t){this.attr("textures",t)},get:function(){return this.attr("textures")}},{key:"contentSize",get:function(){var t=this.attr("size"),e=(0,h.default)(t,2),r=e[0],n=e[1],i=this.attr("texturesSize");return""===r&&(r=0|i[0]),""===n&&(n=0|i[1]),[r,n]}},{key:"cache",set:function(t){if(null==t)return void this[D].clear();var e=(0,s.default)(this.textures),r=this[D];r.has(e)||r.set(e,t)},get:function(){var t=(0,s.default)(this.textures),e=this[D];return e.has(t)?e.get(t):null}}]),e}(A.default),o.Attr=B,a);e.default=q,(0,L.registerNodeType)("sprite",q)},function(t,e,r){"use strict";(function(e){function n(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0}function i(t){return e.Buffer&&"function"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}function o(t){return Object.prototype.toString.call(t)}function a(t){return!i(t)&&("function"==typeof e.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}function u(t){if(x.isFunction(t)){if(k)return t.name;var e=t.toString(),r=e.match(E);return r&&r[1]}}function s(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function f(t){if(k||!x.isFunction(t))return x.inspect(t);var e=u(t);return"[Function"+(e?": "+e:"")+"]"}function c(t){return s(f(t.actual),128)+" "+t.operator+" "+s(f(t.expected),128)}function l(t,e,r,n,i){throw new S.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function h(t,e){t||l(t,!0,e,"==",S.ok)}function p(t,e,r,u){if(t===e)return!0;if(i(t)&&i(e))return 0===n(t,e);if(x.isDate(t)&&x.isDate(e))return t.getTime()===e.getTime();if(x.isRegExp(t)&&x.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(a(t)&&a(e)&&o(t)===o(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===n(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(i(t)!==i(e))return!1;u=u||{actual:[],expected:[]};var s=u.actual.indexOf(t);return-1!==s&&s===u.expected.indexOf(e)||(u.actual.push(t),u.expected.push(e),v(t,e,r,u))}return r?t===e:t==e}function d(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function v(t,e,r,n){if(null===t||void 0===t||null===e||void 0===e)return!1;if(x.isPrimitive(t)||x.isPrimitive(e))return t===e;if(r&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=d(t),o=d(e);if(i&&!o||!i&&o)return!1;if(i)return t=_.call(t),e=_.call(e),p(t,e,r);var a,u,s=M(t),f=M(e);if(s.length!==f.length)return!1;for(s.sort(),f.sort(),u=s.length-1;u>=0;u--)if(s[u]!==f[u])return!1;for(u=s.length-1;u>=0;u--)if(a=s[u],!p(t[a],e[a],r,n))return!1;return!0}function y(t,e,r){p(t,e,!0)&&l(t,e,r,"notDeepStrictEqual",y)}function g(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function m(t){var e;try{t()}catch(t){e=t}return e}function b(t,e,r,n){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=m(e),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&l(i,r,"Missing expected exception"+n);var o="string"==typeof n,a=!t&&x.isError(i),u=!t&&i&&!r;if((a&&o&&g(i,r)||u)&&l(i,r,"Got unwanted exception"+n),t&&i&&r&&!g(i,r)||!t&&i)throw i}var x=r(63),w=Object.prototype.hasOwnProperty,_=Array.prototype.slice,k=function(){return"foo"===function(){}.name}(),S=t.exports=h,E=/\s*function\s+([^\(\s]*)\s*/;S.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=c(this),this.generatedMessage=!0);var e=t.stackStartFunction||l;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=u(e),o=n.indexOf("\n"+i);if(o>=0){var a=n.indexOf("\n",o+1);n=n.substring(a+1)}this.stack=n}}},x.inherits(S.AssertionError,Error),S.fail=l,S.ok=h,S.equal=function(t,e,r){t!=e&&l(t,e,r,"==",S.equal)},S.notEqual=function(t,e,r){t==e&&l(t,e,r,"!=",S.notEqual)},S.deepEqual=function(t,e,r){p(t,e,!1)||l(t,e,r,"deepEqual",S.deepEqual)},S.deepStrictEqual=function(t,e,r){p(t,e,!0)||l(t,e,r,"deepStrictEqual",S.deepStrictEqual)},S.notDeepEqual=function(t,e,r){p(t,e,!1)&&l(t,e,r,"notDeepEqual",S.notDeepEqual)},S.notDeepStrictEqual=y,S.strictEqual=function(t,e,r){t!==e&&l(t,e,r,"===",S.strictEqual)},S.notStrictEqual=function(t,e,r){t===e&&l(t,e,r,"!==",S.notStrictEqual)},S.throws=function(t,e,r){b(!0,t,e,r)},S.doesNotThrow=function(t,e,r){b(!1,t,e,r)},S.ifError=function(t){if(t)throw t};var M=Object.keys||function(t){var e=[];for(var r in t)w.call(t,r)&&e.push(r);return e}}).call(e,r(33))},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e,r,n,i){return Array.isArray(t)?t.map(function(t,o){return R(t,e[o],r,n,i)}):R(t,e,r,n,i)}function o(t){if(Array.isArray(t))return t;var e=new P.Matrix;return(0,C.default)(t).forEach(function(t){var r=(0,M.default)(t,2),n=r[0],i=r[1];Array.isArray(i)?e[n].apply(e,(0,S.default)(i)):e[n](i)}),e}function a(t,e,r,n,o){var a=(0,_.default)({},e,t),u=(0,_.default)({},t,e);return(0,C.default)(a).forEach(function(t){var e=(0,M.default)(t,2),s=e[0],f=e[1];a[s]=i(f,u[s],r,n,o)}),a}function u(t,e,r,n,u){return t=(0,A.parseStringTransform)(t),e=(0,A.parseStringTransform)(e),Array.isArray(t)||Array.isArray(e)?(t=o(t),e=o(e),i(t,e,r,n,u)):a(t,e,r,n,u)}function s(t,e,r,n,o){if("string"!=typeof t||"string"!=typeof e)return R(t,e,r,n,o);var a=(0,A.parseColor)(t),u=(0,A.parseColor)(e);return a.model===u.model?(a.value=i(a.value,u.value,r,n,o).map(function(t){return Math.round(t)}),a.str):R(t,e,r,n,o)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var f=r(9),c=n(f),l=r(1),h=n(l),p=r(2),d=n(p),v=r(12),y=n(v),g=r(10),m=n(g),b=r(11),x=n(b),w=r(4),_=n(w),k=r(3),S=n(k),E=r(0),M=n(E),O=r(7),C=n(O),T=r(18),j=r(28),P=r(14),A=r(5),R=T.Effects.default;(0,_.default)(T.Effects,{pos:i,size:i,transform:u,bgcolor:s,border:function(t,e,r,n,i){return[R(t[0],e[0],r,n,i),s(t[1],e[1],r,n,i)]},scale:i,translate:i,skew:i,zIndex:function(t,e,r,n,i){return Math.round(R(t,e,r,n,i))},color:s,strokeColor:s,fillColor:s});var z=function(t){function e(t,r,n){(0,h.default)(this,e);var i=(0,y.default)(this,(e.__proto__||(0,c.default)(e)).call(this,t.attr(),r,n));return i.target=t,i}return(0,x.default)(e,t),(0,d.default)(e,[{key:"play",value:function(){if(this.target.parent&&"running"!==this.playState){(0,m.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"play",this).call(this);var t=this.target;if(!t.parent)throw new Error("no context");t.attr(this.frame);var r=this;this.ready.then(function(){(0,j.requestAnimationFrame)(function e(){var n=r.target;if("undefined"!=typeof document&&document.contains&&n.layer&&n.layer.canvas&&!document.documentElement.contains(n.layer.canvas))return void r.cancel();t.attr(r.frame),"idle"!==r.playState&&("running"===r.playState?(0,j.requestAnimationFrame)(e):"paused"===r.playState&&r.ready.then(function(){(0,j.requestAnimationFrame)(e)}))})})}}},{key:"cancel",value:function(){(0,m.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"cancel",this).call(this),this.target.attr(this.frame)}},{key:"playState",get:function(){return this.target.parent?(0,m.default)(e.prototype.__proto__||(0,c.default)(e.prototype),"playState",this):"idle"}}]),e}(T.Animator);e.default=z},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i,o,a,u,s,f,c,l,h=r(17),p=n(h),d=r(3),v=n(d),y=r(34),g=n(y),m=r(0),b=n(m),x=r(7),w=n(x),_=r(68),k=n(_),S=r(4),E=n(S),M=r(16),O=n(M),C=r(1),T=n(C),j=r(2),P=n(j),A=r(6),R=n(A),z=r(14),I=r(5),L=r(22),N=n(L),D=r(15),F=(0,R.default)("attr"),B=(0,R.default)("store"),q=(0,R.default)("subject"),V=(0,R.default)("default"),U=(i=(0,I.parseValue)(I.parseStringFloat,I.oneOrTwoValues),o=(0,I.parseValue)(I.parseStringInt),a=(0,I.parseValue)(I.parseColorString),u=(0,I.parseValue)(I.parseStringInt),s=(0,I.parseValue)(I.parseStringInt,I.fourValuesShortCut),f=(0,I.parseValue)(I.parseStringTransform),c=(0,I.deprecate)("Instead use attr.gradients."),l=function(){function t(e){(0,T.default)(this,t),this[q]=e,this[V]={},this[F]={},this.setDefault({anchor:[0,0],x:0,y:0,opacity:1,width:"",height:"",bgcolor:"",rotate:0,scale:[1,1],translate:[0,0],skew:[0,0],transform:"matrix(1,0,0,1,0,0)",transformOrigin:"",transformMatrix:[1,0,0,1,0,0],border:[0,"rgba(0,0,0,0)"],borderRadius:0,padding:[0,0,0,0],zIndex:0,offsetRotate:"auto",gradients:{},offsetDistance:0},{pos:{get:function(){return[this.x,this.y]}},size:{get:function(){return[this.width,this.height]}},linearGradients:{get:function(){return this.gradients}}}),this[B]=new O.default}return(0,P.default)(t,[{key:"setDefault",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,E.default)(this[V],t),(0,E.default)(this[F],t),(0,k.default)(this[F],e)}},{key:"getAttrState",value:function(){return this[F]}},{key:"saveObj",value:function(t,e){this[B].set(t,e)}},{key:"loadObj",value:function(t){return this[B].get(t)}},{key:"quietSet",value:function(t,e){this[F][t]=e}},{key:"set",value:function(t,e){null==e&&(e=this[V][t]),this[F][t]=e,this.forceUpdate()}},{key:"get",value:function(t){return this[F][t]}},{key:"clearCache",value:function(){return this.subject.cache=null,this}},{key:"forceUpdate",value:function(t){return this.subject.forceUpdate(t),this}},{key:"merge",value:function(t){var e=this;return"string"==typeof t&&(t=JSON.parse(t)),(0,w.default)(t).forEach(function(t){var r=(0,b.default)(t,2),n=r[0],i=r[1];e[V][n]!==i&&n in e&&(e[n]=i)}),this}},{key:"serialize",value:function(){return(0,g.default)(this[F])}},{key:"resetOffset",value:function(){var t=this.get("offsetPath"),e=this.offsetDistance;if(t){var r=this.loadObj("offsetPath");r?t=r:(t=new N.default(t),this.saveObj("offsetPath",t))}if(null!=t){var n=e*t.getTotalLength(),i=t.getPointAtLength(n),o=(0,b.default)(i,2),a=o[0],u=o[1],s=this.offsetRotate;if("auto"===s||"reverse"===s){var f=t.getPointAtLength("auto"===s?n+1:n-1),c=(0,b.default)(f,2),l=c[0],h=c[1];s=l===a&&h===u?this.get("offsetAngle"):180*Math.atan2(h-u,l-a)/Math.PI,"reverse"===this.offsetRotate&&(s=-s)}var p=this.get("offsetAngle");p&&(this.rotate-=p),this.set("offsetAngle",s),this.rotate+=s;var d=this.get("offsetPoint");d&&(this.pos=[this.x-d[0],this.y-d[1]]),this.set("offsetPoint",[a,u]),this.pos=[this.x+a,this.y+u]}}},{key:"attrs",get:function(){return this[F]}},{key:"subject",get:function(){return this[q]}},{key:"id",set:function(t){return this.quietSet("id",String(t))}},{key:"name",set:function(t){return this.quietSet("name",String(t))}},{key:"anchor",set:function(t){this.set("anchor",t)}},{key:"x",set:function(t){this.set("x",Math.round(t))}},{key:"y",set:function(t){this.set("y",Math.round(t))}},{key:"pos",set:function(t){null==t&&(t=[0,0]);var e=t,r=(0,b.default)(e,2),n=r[0],i=r[1];this.x=n,this.y=i}},{key:"bgcolor",set:function(t){this.clearCache(),this.set("bgcolor",t)}},{key:"opacity",set:function(t){this.set("opacity",t)}},{key:"width",set:function(t){this.clearCache(),this.set("width",Math.round(t))}},{key:"height",set:function(t){this.clearCache(),this.set("height",Math.round(t))}},{key:"size",set:function(t){null==t&&(t=["",""]);var e=t,r=(0,b.default)(e,2),n=r[0],i=r[1];this.width=n,this.height=i}},{key:"border",set:function(t){this.clearCache(),Array.isArray(t)||(t=[t]);var e=t,r=(0,b.default)(e,2),n=r[0],i=r[1];this.set("border",[parseInt(n,10),(0,I.parseColorString)(i||"#000")])}},{key:"padding",set:function(t){this.clearCache(),this.set("padding",t)}},{key:"borderRadius",set:function(t){this.clearCache(),this.set("borderRadius",t)}},{key:"transform",set:function(t){var e=this;if((0,E.default)(this[F],{rotate:0,scale:[1,1],translate:[0,0],skew:[0,0]}),Array.isArray(t))this.set("transformMatrix",t),this.set("transform","matrix("+t+")");else{this.set("transformMatrix",[1,0,0,1,0,0]);var r=[];(0,w.default)(t).forEach(function(t){var n=(0,b.default)(t,2),i=n[0],o=n[1];"matrix"===i&&Array.isArray(o)?e.set("transformMatrix",new z.Matrix(o).m):e[i]=o,r.push(i+"("+o+")")}),this.set("transform",r.join(" "))}}},{key:"transformOrigin",set:function(t){this.set("transformOrigin",t)}},{key:"rotate",set:function(t){var e=this.get("rotate")-t;this.set("rotate",t);var r=new z.Matrix(this.get("transformMatrix")).rotate(-e);this.set("transformMatrix",r.m)}},{key:"scale",set:function(t){t=(0,I.oneOrTwoValues)(t);var e=this.loadObj("scale")||[1,1],r=[t[0]/e[0],t[1]/e[1]];this.set("scale",t),this.saveObj("scale",t.slice(0));var n=this.get("offsetAngle");n&&(this.rotate-=n);var i=new z.Matrix(this.get("transformMatrix"));i.scale.apply(i,r),this.set("transformMatrix",i.m),n&&(this.rotate+=n)}},{key:"translate",set:function(t){var e=this.loadObj("translate")||[0,0],r=[t[0]-e[0],t[1]-e[1]];this.set("translate",t),this.saveObj("translate",t.slice(0));var n=new z.Matrix(this.get("transformMatrix"));n.translate.apply(n,r),this.set("transformMatrix",n.m)}},{key:"skew",set:function(t){var e,r,n=this.loadObj("skew")||[0,0],i=(e=new z.Matrix).skew.apply(e,(0,v.default)(n)).inverse();this.set("skew",t),this.saveObj("skew",t.slice(0));var o=new z.Matrix(this.get("transformMatrix"));(r=o.multiply(i)).skew.apply(r,(0,v.default)(t)),this.set("transformMatrix",o.m)}},{key:"zIndex",set:function(t){this.set("zIndex",t)}},{key:"linearGradients",set:function(t){this.gradients=t}},{key:"gradients",set:function(t){this.clearCache(),this.set("gradients",t)}},{key:"offsetPath",set:function(t){var e=new N.default(t);this.set("offsetPath",e.d),this.saveObj("offsetPath",e),this.resetOffset()}},{key:"offsetDistance",set:function(t){this.set("offsetDistance",t),this.resetOffset()}},{key:"offsetRotate",set:function(t){this.set("offsetRotate",t),this.resetOffset()}}]),t}(),D(l.prototype,"id",[I.attr],(0,p.default)(l.prototype,"id"),l.prototype),D(l.prototype,"name",[I.attr],(0,p.default)(l.prototype,"name"),l.prototype),D(l.prototype,"anchor",[i,I.attr],(0,p.default)(l.prototype,"anchor"),l.prototype),D(l.prototype,"x",[I.attr],(0,p.default)(l.prototype,"x"),l.prototype),D(l.prototype,"y",[I.attr],(0,p.default)(l.prototype,"y"),l.prototype),D(l.prototype,"pos",[o,I.attr],(0,p.default)(l.prototype,"pos"),l.prototype),D(l.prototype,"bgcolor",[a,I.attr],(0,p.default)(l.prototype,"bgcolor"),l.prototype),D(l.prototype,"opacity",[I.attr],(0,p.default)(l.prototype,"opacity"),l.prototype),D(l.prototype,"width",[I.attr],(0,p.default)(l.prototype,"width"),l.prototype),D(l.prototype,"height",[I.attr],(0,p.default)(l.prototype,"height"),l.prototype),D(l.prototype,"size",[u,I.attr],(0,p.default)(l.prototype,"size"),l.prototype),D(l.prototype,"border",[I.attr],(0,p.default)(l.prototype,"border"),l.prototype),D(l.prototype,"padding",[s,I.attr],(0,p.default)(l.prototype,"padding"),l.prototype),D(l.prototype,"borderRadius",[I.attr],(0,p.default)(l.prototype,"borderRadius"),l.prototype),D(l.prototype,"transform",[f,I.attr],(0,p.default)(l.prototype,"transform"),l.prototype),D(l.prototype,"transformOrigin",[I.attr],(0,p.default)(l.prototype,"transformOrigin"),l.prototype),D(l.prototype,"rotate",[I.attr],(0,p.default)(l.prototype,"rotate"),l.prototype),D(l.prototype,"scale",[I.attr],(0,p.default)(l.prototype,"scale"),l.prototype),D(l.prototype,"translate",[I.attr],(0,p.default)(l.prototype,"translate"),l.prototype),D(l.prototype,"skew",[I.attr],(0,p.default)(l.prototype,"skew"),l.prototype),D(l.prototype,"zIndex",[I.attr],(0,p.default)(l.prototype,"zIndex"),l.prototype),D(l.prototype,"linearGradients",[c,I.attr],(0,p.default)(l.prototype,"linearGradients"),l.prototype),D(l.prototype,"gradients",[I.attr],(0,p.default)(l.prototype,"gradients"),l.prototype),D(l.prototype,"offsetPath",[I.attr],(0,p.default)(l.prototype,"offsetPath"),l.prototype),D(l.prototype,"offsetDistance",[I.attr],(0,p.default)(l.prototype,"offsetDistance"),l.prototype),D(l.prototype,"offsetRotate",[I.attr],(0,p.default)(l.prototype,"offsetRotate"),l.prototype),l);e.default=U},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(7),o=n(i),a=r(0),u=n(a),s=r(5);e.default={blur:function(t){return"blur("+(0,s.appendUnit)(t)+")"},brightness:function(t){return"brightness("+t+")"},contrast:function(t){return"contrast("+t+")"},dropShadow:function(t){var e=(0,u.default)(t,4),r=e[0],n=e[1],i=e[2],o=e[3];return"drop-shadow("+(0,s.appendUnit)(r)+" "+(0,s.appendUnit)(n)+" "+(0,s.appendUnit)(i)+" "+o+")"},grayscale:function(t){return"grayscale("+t+")"},hueRotate:function(t){return"hue-rotate("+(0,s.appendUnit)(t,"deg")+")"},invert:function(t){return"invert("+t+")"},opacity:function(t){return"opacity("+t+")"},saturate:function(t){return"saturate("+t+")"},sepia:function(t){return"sepia("+t+")"},url:function(t){return"url("+t+")"},compile:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)(e).reduce(function(e,r){return e.concat(t[r[0]](r[1]))},[]).join(" ")}}},function(t,e,r){"use strict";function n(t,e){for(var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=0;n<e.length;n++){var i=e[n],o=i.renderBox,a=t.renderBox,u=i.lastRenderBox;if((0,s.boxIntersect)(o,a)||r&&u&&(0,s.boxIntersect)(u,a))return!0}return!1}function i(t,e,r,n){var i=t.shadowContext,o=t.outputContext,a=(0,s.boxIntersect)(e,[0,0,r,n]);if(a){var f=(0,s.boxToRect)(a);i&&i.rect.apply(i,(0,u.default)(f)),o.rect.apply(o,(0,u.default)(f))}}function o(t,e){for(var r=t.shadowContext,n=t.outputContext,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=n.canvas,u=a.width,f=a.height,c=0;c<e.length;c++){var l=e[c],h=l.renderBox;if(i({shadowContext:r,outputContext:n},h,u,f),o){var p=l.lastRenderBox;p&&!(0,s.boxEqual)(p,h)&&i({shadowContext:r,outputContext:n},p,u,f)}}}Object.defineProperty(e,"__esModule",{value:!0});var a=r(3),u=function(t){return t&&t.__esModule?t:{default:t}}(a);e.isSpriteDirty=n,e.clearDirtyRects=o;var s=r(5)},function(t,e,r){"use strict";var n="'([^']+)'|\"([^\"]+)\"|[\\w-]+",i=new RegExp("(bold|bolder|lighter|[1-9]00) +","i"),o=new RegExp("(italic|oblique) +","i"),a=new RegExp("(small-caps) +","i"),u=new RegExp("(ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded) +","i"),s=new RegExp("([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q) *((?:"+n+")( *, *(?:"+n+"))*)"),f={};t.exports=function(t){if(f[t])return f[t];var e=s.exec(t);if(e){var r={weight:"normal",style:"normal",stretch:"normal",variant:"normal",size:parseFloat(e[1]),unit:e[2],family:e[3].replace(/["']/g,"").replace(/ *, */g,",")},n=void 0,c=void 0,l=void 0,h=void 0,p=t.substring(0,e.index);switch((n=i.exec(p))&&(r.weight=n[1]),(c=o.exec(p))&&(r.style=c[1]),(l=a.exec(p))&&(r.variant=l[1]),(h=u.exec(p))&&(r.stretch=h[1]),r.unit){case"pt":r.size/=.75;break;case"pc":r.size*=16;break;case"in":r.size*=96;break;case"cm":r.size*=96/2.54;break;case"mm":r.size*=96/25.4;break;case"%":break;case"em":case"rem":r.size*=16/.75;break;case"q":r.size*=96/25.4/4}return f[t]=r}}},function(t,e,r){"use strict";function n(t){var e=t[0][0],r=t[0][1],n=e,i=r;return t.forEach(function(t){var o=t[0],a=t[2],u=t[4],s=t[6],f=t[1],c=t[3],l=t[5],h=t[7];e=Math.min(e,o,a,u,s),r=Math.min(r,f,c,l,h),n=Math.max(n,o,a,u,s),i=Math.max(i,f,c,l,h)}),[e,r,n,i]}function i(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))+Math.sqrt(Math.pow(t[2]-e[2],2)+Math.pow(t[3]-e[3],2))}function o(t,e){var r=t[0],n=t[2],i=t[4],o=t[6],a=t[1],u=t[3],s=t[5],f=t[7],c=e[0],l=e[2],h=e[4],p=e[6],d=e[1],v=e[3],y=e[5],g=e[7];return Math.sqrt(Math.pow(c-r,2)+Math.pow(d-a,2))+Math.sqrt(Math.pow(l-n,2)+Math.pow(v-u,2))+Math.sqrt(Math.pow(h-i,2)+Math.pow(y-s,2))+Math.sqrt(Math.pow(p-o,2)+Math.pow(g-f,2))}function a(t,e){var r=s(t.length),n=[];r.forEach(function(r){var i=0,a=0;r.forEach(function(r){i+=o(t[r],e[a++])}),n.push({index:r,distance:i})}),n.sort(function(t,e){return t.distance-e.distance});var i=[];return n[0].index.forEach(function(e){i.push(t[e])}),i}function u(t,e){var r=f(t.length),o=[];r.forEach(function(r){var a=0;r.forEach(function(r){a+=i(n(t[r]),n(e[r]))}),o.push({index:r,distance:a})}),o.sort(function(t,e){return t.distance-e.distance});var a=[];return o[0].index.forEach(function(e){a.push(t[e])}),a}function s(t){for(var e=[],r=0;r<t;r++){for(var n=[],i=0;i<t;i++){var o=i+r;o>t-1&&(o-=t),n[o]=i}e.push(n)}return e}function f(t){for(var e=[],r=0;r<t;r++)e.push(r);return c(e)}function c(t){function e(t){var i=void 0,o=void 0;for(i=0;i<t.length;i++)o=t.splice(i,1)[0],n.push(o),0===t.length&&r.push(n.slice()),e(t),t.splice(i,0,o),n.pop();return r}var r=[],n=[];return e(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.sort=u,e.sortCurves=a},function(t,e,r){"use strict";function n(t,e){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,n=[],i=0;i<t.length;i++){var o=t[i];if(e(o)&&(n.push(o),r===n.length))break}return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n},function(t,e,r){"use strict";function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.SvgPath=e.Color=e.createNode=e.registerNodeType=e.Effects=e.Group=e.Layer=e.Path=e.Label=e.Sprite=e.Batch=e.BaseSprite=e.BaseNode=e.math=e.utils=void 0;var o=r(13),a=i(o),u=r(40),s=i(u),f=r(37),c=i(f),l=r(38),h=i(l),p=r(26),d=i(p),v=r(21),y=i(v),g=r(39),m=i(g),b=r(25),x=i(b),w=r(8),_=r(18),k=r(22),S=i(k),E=r(5),M=n(E),O=r(14),C=n(O),T=M.Color;e.utils=M,e.math=C,e.BaseNode=y.default,e.BaseSprite=a.default,e.Batch=x.default,e.Sprite=s.default,e.Label=c.default,e.Path=m.default,e.Layer=h.default,e.Group=d.default,e.Effects=_.Effects,e.registerNodeType=w.registerNodeType,e.createNode=w.createNode,e.Color=T,e.SvgPath=S.default},function(t,e){function r(t,e){return 1-3*e+3*t}function n(t,e){return 3*e-6*t}function i(t){return 3*t}function o(t,e,o){return((r(e,o)*t+n(e,o))*t+i(e))*t}function a(t,e,o){return 3*r(e,o)*t*t+2*n(e,o)*t+i(e)}function u(t,e,r,n,i){var a,u,s=0;do{u=e+(r-e)/2,a=o(u,n,i)-t,a>0?r=u:e=u}while(Math.abs(a)>c&&++s<l);return u}function s(t,e,r,n){for(var i=0;i<f;++i){var u=a(e,r,n);if(0===u)return e;e-=(o(e,r,n)-t)/u}return e}var f=4,c=1e-7,l=10,h=11,p=1/(h-1),d="function"==typeof Float32Array;t.exports=function(t,e,r,n){function i(e){for(var n=0,i=1,o=h-1;i!==o&&f[i]<=e;++i)n+=p;--i;var c=(e-f[i])/(f[i+1]-f[i]),l=n+c*p,d=a(l,t,r);return d>=.001?s(e,l,t,r):0===d?l:u(e,n,n+p,t,r)}if(!(0<=t&&t<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");var f=d?new Float32Array(h):new Array(h);if(t!==e||r!==n)for(var c=0;c<h;++c)f[c]=o(c*p,t,r);return function(a){return t===e&&r===n?a:0===a?0:1===a?1:o(i(a),e,n)}}},function(t,e,r){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(t,e,r){function n(t,e,r){return Math.min(Math.max(e,t),r)}function i(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var o=r(51),a=r(54),u={};for(var s in o)o.hasOwnProperty(s)&&(u[o[s]]=s);var f=t.exports={to:{}};f.get=function(t){var e,r,n=t.substring(0,3).toLowerCase();switch(n){case"hsl":e=f.get.hsl(t),r="hsl";break;case"hwb":e=f.get.hwb(t),r="hwb";break;default:e=f.get.rgb(t),r="rgb"}return e?{model:r,value:e}:null},f.get.rgb=function(t){if(!t)return null;var e,r,i,a=/^#([a-f0-9]{3,4})$/i,u=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,s=/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,f=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,c=/(\D+)/,l=[0,0,0,1];if(e=t.match(u)){for(i=e[2],e=e[1],r=0;r<3;r++){var h=2*r;l[r]=parseInt(e.slice(h,h+2),16)}i&&(l[3]=Math.round(parseInt(i,16)/255*100)/100)}else if(e=t.match(a)){for(e=e[1],i=e[3],r=0;r<3;r++)l[r]=parseInt(e[r]+e[r],16);i&&(l[3]=Math.round(parseInt(i+i,16)/255*100)/100)}else if(e=t.match(s)){for(r=0;r<3;r++)l[r]=parseInt(e[r+1],0);e[4]&&(l[3]=parseFloat(e[4]))}else{if(!(e=t.match(f)))return(e=t.match(c))?"transparent"===e[1]?[0,0,0,0]:(l=o[e[1]])?(l[3]=1,l):null:null;for(r=0;r<3;r++)l[r]=Math.round(2.55*parseFloat(e[r+1]));e[4]&&(l[3]=parseFloat(e[4]))}for(r=0;r<3;r++)l[r]=n(l[r],0,255);return l[3]=n(l[3],0,1),l},f.get.hsl=function(t){if(!t)return null;var e=/^hsla?\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=t.match(e);if(r){var i=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(i)?1:i,0,1)]}return null},f.get.hwb=function(t){if(!t)return null;var e=/^hwb\(\s*([+-]?\d*[\.]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/,r=t.match(e);if(r){var i=parseFloat(r[4]);return[(parseFloat(r[1])%360+360)%360,n(parseFloat(r[2]),0,100),n(parseFloat(r[3]),0,100),n(isNaN(i)?1:i,0,1)]}return null},f.to.hex=function(){var t=a(arguments);return"#"+i(t[0])+i(t[1])+i(t[2])+(t[3]<1?i(Math.round(255*t[3])):"")},f.to.rgb=function(){var t=a(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},f.to.rgb.percent=function(){var t=a(arguments),e=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),n=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+r+"%, "+n+"%)":"rgba("+e+"%, "+r+"%, "+n+"%, "+t[3]+")"},f.to.hsl=function(){var t=a(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},f.to.hwb=function(){var t=a(arguments),e="";return t.length>=4&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},f.to.keyword=function(t){return u[t.slice(0,3)]}},function(t,e,r){"use strict";t.exports=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))}},function(t,e,r){"use strict";var n=r(53),i=Array.prototype.concat,o=Array.prototype.slice,a=t.exports=function(t){for(var e=[],r=0,a=t.length;r<a;r++){var u=t[r];n(u)?e=i.call(e,o.call(u)):e.push(u)}return e};a.wrap=function(t){return function(){return t(a(arguments))}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(24),o=n(i),a=r(70),u=n(a),s=r(4),f=n(s),c=r(1),l=n(c),h=r(2),p=n(h),d=r(6),v=n(d),y=r(56),g=r(31),m=n(g),b=r(29),x=r(41),w=(0,v.default)("timing"),_=(0,v.default)("keyframes"),k=(0,v.default)("initState"),S=(0,v.default)("readyDefer"),E=(0,v.default)("finishedDefer"),M=(0,v.default)("effects"),O=(0,v.default)("activeReadyTimer"),C=(0,v.default)("activeFinishTimer"),T=(0,v.default)("removeDefer"),j={delay:0,endDelay:0,fill:"auto",iterations:1,playbackRate:1,direction:"normal",easing:"linear",effect:null},P=function(){function t(e,r,n){var i=this;if((0,l.default)(this,t),Array.isArray(e)){var o=[e[0],e,r];e=o[0],r=o[1],n=o[2]}"number"==typeof n&&(n={duration:n}),this[w]=(0,f.default)({},j,n),this[w].easing=(0,b.parseEasing)(this[w].easing),this[_]=(0,y.calculateFramesOffset)(r);var a=this[_][this[_].length-1];this[k]={},(0,u.default)(a).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&(i[k][t]=e[t])}),0!==this[_][0].offset&&this[_].unshift((0,f.default)({},this[k],{offset:0})),a.offset<1&&this[_].push((0,f.default)({},a,{offset:1})),this[M]={},this.timeline=null}return(0,p.default)(t,[{key:"pause",value:function(){this.timeline.playbackRate=0}},{key:O,value:function(){var t=this;this[S]&&!this[S].timerID&&(this[S].timerID=this.timeline.setTimeout(function(){t[S].resolve(),x("running"===t.playState||"finished"===t.playState,"An error occured: "+t.playState),delete t[S]},{delay:-this.timeline.entropy}))}},{key:C,value:function(){var t=this,e=this[w],r=e.duration,n=e.iterations,i=e.endDelay;this[E]&&!this[E].timerID&&(this[E].timerID=this.timeline.setTimeout(function(){t[E].resolve(),t.timeline.currentTime<0&&t.cancel()},{delay:r*n+i-this.timeline.currentTime}))}},{key:"play",value:function(){if("finished"===this.playState&&this.cancel(),"idle"===this.playState){if(this.playbackRate<=0)return;var t=this[w],e=t.delay,r=t.playbackRate,n=t.timeline;this.timeline=new m.default({originTime:e,playbackRate:r},n),this[O](),this[C]()}else"paused"===this.playState&&(this.timeline.playbackRate=this.playbackRate,this[O]())}},{key:T,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this[t],n=this.timeline;r&&n&&(n.clearTimeout(r.timerID),e&&r.resolve()),delete this[t]}},{key:"cancel",value:function(){this[T](S),this[T](E),this.timeline=null}},{key:"finish",value:function(){this.timeline.entropy=1/0,this.timeline.currentTime=1/0,this[T](S),this[T](E,!0)}},{key:"applyEffects",value:function(t){return(0,f.default)(this[M],t)}},{key:"playbackRate",get:function(){return this[w].playbackRate},set:function(t){this.timeline&&"paused"!==this.playState&&(this.timeline.playbackRate=t),this[w].playbackRate=t}},{key:"playState",get:function(){var t=this.timeline,e=this[w],r=e.iterations,n=e.duration,i=e.endDelay,o="running";if(null==t)o="idle";else if(0===t.playbackRate)o="paused";else if(t.currentTime<0)o="pending";else{var a=t.currentTime-r*n;a>0&&a<i?o="pending":a>=i&&(o="finished")}return o}},{key:"progress",get:function(){var t=this[w],e=t.duration,r=t.iterations,n=this.timeline,i=n?n.entropy:0,o=this.playState,a=void 0;if("idle"===o)a=0;else if("paused"===o&&i<0)a=0;else if("pending"===o)if(i<0)a=0;else{var u=n.seekLocalTime(r*e);a=(0,y.periodicity)(u,e)[1]/e}else"running"!==o&&"paused"!==o||(a=(0,y.periodicity)(n.currentTime,e)[1]/e);return"finished"===o&&(a=(0,y.periodicity)(r,1)[1]),a}},{key:"frame",get:function(){var t=this.playState,e=this[k],r=this[w].fill;if("idle"===t)return e;var n=this.timeline.entropy,i=this[_].slice(0),o=(0,y.getProgress)(this.timeline,this[w],this.progress),a=o.p,u=o.inverted,s=e;return n<0&&"pending"===t?"backwards"!==r&&"both"!==r||(s=u?i[i.length-1]:i[0]):("pending"!==t&&"finished"!==t||"forwards"===r||"both"===r)&&(s=(0,y.getCurrentFrame)(this[w],i,this[M],a)),s}},{key:"baseTimeline",set:function(t){this[w].timeline=t},get:function(){return this[w].timeline}},{key:"ready",get:function(){return this[S]?this[S].promise:this.timeline&&this.timeline.entropy>=0?"paused"!==this.playState?o.default.resolve():(this[S]=(0,y.defer)(),this[S].promise):(this[S]=(0,y.defer)(),this.timeline&&this[O](),this[S].promise)}},{key:"finished",get:function(){return"finished"===this.playState?o.default.resolve():(this[E]||(this[E]=(0,y.defer)(),this.timeline&&this[C]()),this[E].promise)}}]),t}();e.default=P},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){var t={};return t.promise=new b.default(function(e,r){t.resolve=e,t.reject=r}),t}function o(t,e){var r=Math.floor(t/e),n=t-r*e;return 0===n&&r>0&&(n=e,r--),[r,n]}function a(t){t=t.slice(0);var e=t[0],r=t[t.length-1];r.offset=r.offset||1,e.offset=e.offset||0;for(var n=0,i=-1,o=0;o<t.length;o++){var a=t[o];if(null!=a.offset){var u=o-i;if(u>1)for(var s=(a.offset-n)/u,f=0;f<u-1;f++)t[i+f+1].offset=n+s*(f+1);n=a.offset,i=o}o>0&&(t[o]=(0,g.default)({},t[o-1],t[o]))}return t}function u(t,e,r){var n=t.currentTime,i=e.direction,o=e.duration,a=!1;if("reverse"===i)r=1-r,a=!0;else if("alternate"===i||"alternate-reverse"===i){var u=Math.floor(n/o);1===r&&u--,u%2^"alternate-reverse"===i&&(r=1-r,a=!0)}return{p:r,inverted:a}}function s(t,e,r,n){var i={},o=!0,a=!1,u=void 0;try{for(var s,f=(0,p.default)((0,l.default)(e));!(o=(s=f.next()).done);o=!0){var c=s.value,h=(0,v.default)(c,2),d=h[0],y=h[1];if("offset"!==d){var g=r[d]||r.default,m=g(t[d],y,n,t.offset,e.offset);null!=m&&(i[d]=m)}}}catch(t){a=!0,u=t}finally{try{!o&&f.return&&f.return()}finally{if(a)throw u}}return i}function f(t,e,r,n){var i=t.easing,o=t.effect;o||(r=(0,g.default)({},r,w.default));var a={};n=i(n,e);for(var u=1;u<e.length;u++){var f=e[u],c=f.offset;if(c>=n||u===e.length-1){var l=e[u-1],h=l.offset;a=o?o(l,f,n,h,c):s(l,f,r,n);break}}return a}Object.defineProperty(e,"__esModule",{value:!0});var c=r(7),l=n(c),h=r(65),p=n(h),d=r(0),v=n(d),y=r(4),g=n(y),m=r(24),b=n(m);e.defer=i,e.periodicity=o,e.calculateFramesOffset=a,e.getProgress=u,e.getCurrentFrame=f;var x=r(30),w=n(x)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){t=t||[1,0,0,1,0,0],this.m=t.slice(0)};n.prototype.unit=function(){return this.m=[1,0,0,1,0,0],this},n.prototype.multiply=function(t){var e=this.m,r=void 0;r=t instanceof n?t.m:t;var i=e[0]*r[0]+e[2]*r[1],o=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],u=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],f=e[1]*r[4]+e[3]*r[5]+e[5];return e[0]=i,e[1]=o,e[2]=a,e[3]=u,e[4]=s,e[5]=f,this},n.prototype.inverse=function(){var t=new n(this.m),e=t.m,r=1/(e[0]*e[3]-e[1]*e[2]),i=e[3]*r,o=-e[1]*r,a=-e[2]*r,u=e[0]*r,s=r*(e[2]*e[5]-e[3]*e[4]),f=r*(e[1]*e[4]-e[0]*e[5]);return e[0]=i,e[1]=o,e[2]=a,e[3]=u,e[4]=s,e[5]=f,t},n.prototype.translate=function(t,e){return this.multiply([1,0,0,1,t,e])},n.prototype.rotate=function(t){var e=t*Math.PI/180,r=Math.cos(e),n=Math.sin(e);return this.multiply([r,n,-n,r,0,0])},n.prototype.skew=function(t,e){e|=0;var r=t*Math.PI/180,n=e*Math.PI/180,i=Math.tan(r),o=Math.tan(n);return this.multiply([1,o,i,1,0,0])},n.prototype.scale=function(t,e){return this.multiply([t,0,0,e,0,0])},n.prototype.transformPoint=function(t,e){var r=t,n=e;return t=r*this.m[0]+n*this.m[2]+this.m[4],e=r*this.m[1]+n*this.m[3]+this.m[5],[t,e]},n.prototype.transformVector=function(t,e){var r=t,n=e;return t=r*this.m[0]+n*this.m[2],e=r*this.m[1]+n*this.m[3],[t,e]},e.default=n},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(0),o=n(i),a=r(1),u=n(a),s=r(2),f=n(s),c=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[0,0,0];(0,u.default)(this,t);var n=(0,o.default)(e,3),i=n[0],a=n[1],s=n[2],f=(0,o.default)(r,3),c=f[0],l=f[1],h=f[2];s=s||0,h=h||0,this.x=i-c,this.y=a-l,this.z=s-h}return(0,f.default)(t,[{key:"unit",value:function(){var e=this.length;return new t([this.x/e,this.y/e,this.z/e])}},{key:"dot",value:function(t){return this.x*t.x+this.y*t.y+this.z*t.z}},{key:"cross",value:function(e){var r=this.x,n=this.y,i=this.z,o=e.x,a=e.y,u=e.z;return new t([n*u-i*a,i*o-r*u,r*a-o*n])}},{key:"length",get:function(){var t=this.x,e=this.y,r=this.z;return Math.sqrt(t*t+e*e+r*r)}}]),t}();e.default=c},function(t,e,r){"use strict";(function(t){function n(){if("undefined"!=typeof performance&&performance.now)return performance.now();if(void 0!==t&&t.hrtime){var e=t.hrtime(),r=(0,a.default)(e,2);return 1e3*r[0]+1e-6*r[1]}return Date.now?Date.now():(new Date).getTime()}function i(t){return"number"==typeof t?t={delay:t}:"entropy"in t&&(t={delay:t.entropy,isEntropy:!0}),t}Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),a=function(t){return t&&t.__esModule?t:{default:t}}(o);e.nowtime=n,e.formatDelay=i}).call(e,r(23))},function(t,e,r){"use strict";function n(t,e,r){if(r.get)throw new Error("Attributes' getter "+e+" can not be override!");var n=r.set;return r.set=function(t){var r=this.get(e);(0,f.isPropEqual)(r,t)||n.call(this,t)},r.get=function(){return this.get(e)},r}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e="[Deprecation] "+t+" has been deprecated."+e,c.has(e)||(c.add(e),console.warn(e))}function o(){function t(t,e,r){if(a=a||t.constructor.name+"#"+e,"function"==typeof r.value){var n=r.value;r.value=function(){i(a,o);for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return n.apply(this,e)}}if(r.set){var u=r.set;r.set=function(t){return i(a,o),u.call(this,t)}}if(r.get){var s=r.get;r.get=function(){return i(a,o),s.call(this)}}}for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];var o="",a="";return 1===r.length?(o=r[0],t):2===r.length?(a=r[0],o=r[1],t):t.apply(void 0,r)}function a(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t,r,n){var i=n.set;return n.set=function(t){t=e.reduce(function(t,e){return e(t)},t),i.call(this,t)},n}}Object.defineProperty(e,"__esModule",{value:!0});var u=r(20),s=function(t){return t&&t.__esModule?t:{default:t}}(u);e.attr=n,e.setDeprecation=i,e.deprecate=o,e.parseValue=a;var f=r(32),c=new s.default},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e,r){(function(t,n){function i(t,r){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),v(r)?n.showHidden=r:r&&e._extend(n,r),w(n.showHidden)&&(n.showHidden=!1),w(n.depth)&&(n.depth=2),w(n.colors)&&(n.colors=!1),w(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=o),s(n,t,n.depth)}function o(t,e){var r=i.styles[e];return r?"["+i.colors[r][0]+"m"+t+"["+i.colors[r][1]+"m":t}function a(t,e){return t}function u(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}function s(t,r,n){if(t.customInspect&&r&&M(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return b(i)||(i=s(t,i,n)),i}var o=f(t,r);if(o)return o;var a=Object.keys(r),v=u(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(r)),E(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return c(r);if(0===a.length){if(M(r)){var y=r.name?": "+r.name:"";return t.stylize("[Function"+y+"]","special")}if(_(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(S(r))return t.stylize(Date.prototype.toString.call(r),"date");if(E(r))return c(r)}var g="",m=!1,x=["{","}"];if(d(r)&&(m=!0,x=["[","]"]),M(r)){g=" [Function"+(r.name?": "+r.name:"")+"]"}if(_(r)&&(g=" "+RegExp.prototype.toString.call(r)),S(r)&&(g=" "+Date.prototype.toUTCString.call(r)),E(r)&&(g=" "+c(r)),0===a.length&&(!m||0==r.length))return x[0]+g+x[1];if(n<0)return _(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special");t.seen.push(r);var w;return w=m?l(t,r,n,v,a):a.map(function(e){return h(t,r,n,v,e,m)}),t.seen.pop(),p(w,g,x)}function f(t,e){if(w(e))return t.stylize("undefined","undefined");if(b(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return m(e)?t.stylize(""+e,"number"):v(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,r,n,i){for(var o=[],a=0,u=e.length;a<u;++a)P(e,String(a))?o.push(h(t,e,r,n,String(a),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(h(t,e,r,n,i,!0))}),o}function h(t,e,r,n,i,o){var a,u,f;if(f=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},f.get?u=f.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):f.set&&(u=t.stylize("[Setter]","special")),P(n,i)||(a="["+i+"]"),u||(t.seen.indexOf(f.value)<0?(u=y(r)?s(t,f.value,null):s(t,f.value,r-1),u.indexOf("\n")>-1&&(u=o?u.split("\n").map(function(t){return"  "+t}).join("\n").substr(2):"\n"+u.split("\n").map(function(t){return"   "+t}).join("\n"))):u=t.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return u;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+u}function p(t,e,r){var n=0;return t.reduce(function(t,e){return n++,e.indexOf("\n")>=0&&n++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n  ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}function d(t){return Array.isArray(t)}function v(t){return"boolean"==typeof t}function y(t){return null===t}function g(t){return null==t}function m(t){return"number"==typeof t}function b(t){return"string"==typeof t}function x(t){return"symbol"==typeof t}function w(t){return void 0===t}function _(t){return k(t)&&"[object RegExp]"===C(t)}function k(t){return"object"==typeof t&&null!==t}function S(t){return k(t)&&"[object Date]"===C(t)}function E(t){return k(t)&&("[object Error]"===C(t)||t instanceof Error)}function M(t){return"function"==typeof t}function O(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function C(t){return Object.prototype.toString.call(t)}function T(t){return t<10?"0"+t.toString(10):t.toString(10)}function j(){var t=new Date,e=[T(t.getHours()),T(t.getMinutes()),T(t.getSeconds())].join(":");return[t.getDate(),I[t.getMonth()],e].join(" ")}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var A=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(i(arguments[r]));return e.join(" ")}for(var r=1,n=arguments,o=n.length,a=String(t).replace(A,function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return t}}),u=n[r];r<o;u=n[++r])y(u)||!k(u)?a+=" "+u:a+=" "+i(u);return a},e.deprecate=function(r,i){function o(){if(!a){if(n.throwDeprecation)throw new Error(i);n.traceDeprecation?console.trace(i):console.error(i),a=!0}return r.apply(this,arguments)}if(w(t.process))return function(){return e.deprecate(r,i).apply(this,arguments)};if(!0===n.noDeprecation)return r;var a=!1;return o};var R,z={};e.debuglog=function(t){if(w(R)&&(R=n.env.NODE_DEBUG||""),t=t.toUpperCase(),!z[t])if(new RegExp("\\b"+t+"\\b","i").test(R)){var r=n.pid;z[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else z[t]=function(){};return z[t]},e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=v,e.isNull=y,e.isNullOrUndefined=g,e.isNumber=m,e.isString=b,e.isSymbol=x,e.isUndefined=w,e.isRegExp=_,e.isObject=k,e.isDate=S,e.isError=E,e.isFunction=M,e.isPrimitive=O,e.isBuffer=r(62);var I=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.log=function(){console.log("%s - %s",j(),e.format.apply(e,arguments))},e.inherits=r(61),e._extend=function(t,e){if(!e||!k(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(e,r(33),r(23))},function(t,e){t.exports=r(45)},function(t,e){t.exports=r(79)},function(t,e){t.exports=r(131)},function(t,e){t.exports=r(81)},function(t,e){t.exports=r(133)},function(t,e){t.exports=r(46)},function(t,e){t.exports=r(134)},function(t,e){t.exports=r(139)}])},function(t,e,r){t.exports={default:r(148),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(46),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,i.default)(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}()},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(21),o=n(i),a=r(47),u=n(a);e.default=function t(e,r,n){null===e&&(e=Function.prototype);var i=(0,u.default)(e,r);if(void 0===i){var a=(0,o.default)(e);return null===a?void 0:t(a,r,n)}if("value"in i)return i.value;var s=i.get;if(void 0!==s)return s.call(n)}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(135),o=n(i),a=r(132),u=n(a),s=r(49),f=n(s);e.default=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,f.default)(e)));t.prototype=(0,u.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(o.default?(0,o.default)(t,e):t.__proto__=e)}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(49),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":(0,i.default)(e))&&"function"!=typeof e?t:e}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(129),o=n(i),a=r(79),u=n(a);e.default=function(){function t(t,e){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=(0,u.default)(t);!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}return function(e,r){if(Array.isArray(e))return e;if((0,o.default)(Object(e)))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}()},function(t,e,r){var n=r(23),i=r(3)("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),i))?r:o?n(e):"Object"==(u=n(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){t.exports=!0},function(t,e,r){var n=r(7),i=r(94),o=r(54),a=r(63)("IE_PROTO"),u=function(){},s=function(){var t,e=r(53)("iframe"),n=o.length;for(e.style.display="none",r(87).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),s=t.F;n--;)delete s.prototype[o[n]];return s()};t.exports=Object.create||function(t,e){var r;return null!==t?(u.prototype=n(t),r=new u,u.prototype=null,r[a]=t):r=s(),void 0===e?r:i(r,e)}},function(t,e,r){var n=r(65),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},function(t,e){},function(t,e,r){"use strict";function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:150,r=document.createElement("canvas");return r.width=t,r.height=e,r}function i(t){var e=document.createElement("img");e.crossOrigin="anonymous";var r=new s.default(function(t){e.addEventListener("load",function(){t(e)})});return e.src=t,r}function o(t){if("string"==typeof t&&(t=document.querySelector(t)),!t)throw new Error("Container is not defined or cannot found.");return t}function a(){try{new window.CustomEvent("T")}catch(e){var t=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),r};t.prototype=window.Event.prototype,window.CustomEvent=t}}Object.defineProperty(e,"__esModule",{value:!0}),e.removeDebugToolsObserver=e.setDebugToolsObserver=e._debugger=void 0;var u=r(15),s=function(t){return t&&t.__esModule?t:{default:t}}(u);e.createCanvas=n,e.loadImage=i,e.getContainer=o,e.shim=a;var f=r(128);e._debugger=f._debugger,e.setDebugToolsObserver=f.setDebugToolsObserver,e.removeDebugToolsObserver=f.removeDebugToolsObserver},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(50),o=n(i),a=r(35),u=n(a),s=r(82),f=n(s),c=r(48),l=n(c),h=r(15),p=n(h),d=r(80),v=n(d),y=r(42),g=r(109),m=new v.default,b={loadTexture:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e4;"string"==typeof t&&(t={src:t}),t.id||(t.id=t.src);var r=t.id;return m.has(r)?{img:m.get(r),texture:t,fromCache:!0}:new p.default(function(n,i){var o=setTimeout(function(){i(new Error("load img timeout"))},e);(0,y.loadImage)(t.src).then(function(e){n({img:e,texture:t,fromCache:!1}),m.set(r,e),clearTimeout(o)})})},loadFrames:function(){function t(t,r){return e.apply(this,arguments)}var e=(0,l.default)(o.default.mark(function t(e,r){var n,i;return o.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("string"!=typeof r){t.next=5;break}return t.next=3,g.get(r);case 3:r=t.sent,r=r.data;case 5:return t.next=7,this.loadTexture(e);case 7:return n=t.sent,i=r.frames,(0,f.default)(i).forEach(function(t){var e=(0,u.default)(t,2),r=e[0],i=e[1],o=i.sourceSize,a=o.w,s=o.h,f=(0,y.createCanvas)(a,s),c=i.frame,l=i.spriteSourceSize,h=f.getContext("2d"),p=i.rotated;if(h.save(),p){h.translate(0,s),h.rotate(-.5*Math.PI);var d=l.y;l.y=l.x,l.x=s-c.h-d,h.drawImage(n.img,c.x,c.y,c.h,c.w,l.x,l.y,l.h,l.w)}else h.drawImage(n.img,c.x,c.y,c.w,c.h,l.x,l.y,l.w,l.h);h.restore(),m.set(r,f)}),t.abrupt("return",n);case 11:case"end":return t.stop()}},t,this)}));return t}()};e.default=b},function(t,e,r){"use strict";(function(e){function n(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var i=r(4),o=r(124),a={"Content-Type":"application/x-www-form-urlencoded"},u={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=r(73):void 0!==e&&(t=r(73)),t}(),transformRequest:[function(t,e){return o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(n(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(n(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(t){u.headers[t]={}}),i.forEach(["post","put","patch"],function(t){u.headers[t]=i.merge(a)}),t.exports=u}).call(e,r(107))},function(t,e,r){t.exports={default:r(141),__esModule:!0}},function(t,e,r){t.exports={default:r(151),__esModule:!0}},function(t,e,r){t.exports={default:r(153),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(15),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){return function(){var e=t.apply(this,arguments);return new i.default(function(t,r){function n(o,a){try{var u=e[o](a),s=u.value}catch(t){return void r(t)}if(!u.done)return i.default.resolve(s).then(function(t){n("next",t)},function(t){n("throw",t)});t(s)}return n("next")})}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=r(138),o=n(i),a=r(16),u=n(a),s="function"==typeof u.default&&"symbol"==typeof o.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===s(o.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":s(t)}},function(t,e,r){t.exports=r(209)},function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,r){var n=r(8),i=r(2).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,r){var n=r(23);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,r){"use strict";var n=r(37),i=r(1),o=r(101),a=r(10),u=r(13),s=r(17),f=r(171),c=r(27),l=r(96),h=r(3)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,r,v,y,g,m){f(r,e,v);var b,x,w,_=function(t){if(!p&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},k=e+" Iterator",S="values"==y,E=!1,M=t.prototype,O=M[h]||M["@@iterator"]||y&&M[y],C=O||_(y),T=y?S?_("entries"):C:void 0,j="Array"==e?M.entries||O:O;if(j&&(w=l(j.call(new t)))!==Object.prototype&&w.next&&(c(w,k,!0),n||u(w,h)||a(w,h,d)),S&&O&&"values"!==O.name&&(E=!0,C=function(){return O.call(this)}),n&&!m||!p&&!E&&M[h]||a(M,h,C),s[e]=C,s[k]=d,y)if(b={values:S?C:_("values"),keys:g?C:_("keys"),entries:T},m)for(x in b)x in M||o(M,x,b[x]);else i(i.P+i.F*(p||E),e,b);return b}},function(t,e,r){var n=r(40)("meta"),i=r(8),o=r(13),a=r(6).f,u=0,s=Object.isExtensible||function(){return!0},f=!r(12)(function(){return s(Object.preventExtensions({}))}),c=function(t){a(t,n,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!s(t))return"F";if(!e)return"E";c(t)}return t[n].i},h=function(t,e){if(!o(t,n)){if(!s(t))return!0;if(!e)return!1;c(t)}return t[n].w},p=function(t){return f&&d.NEED&&s(t)&&!o(t,n)&&c(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:l,getWeak:h,onFreeze:p}},function(t,e,r){"use strict";function n(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=i(e),this.reject=i(r)}var i=r(22);t.exports.f=function(t){return new n(t)}},function(t,e,r){var n=r(25),i=r(26),o=r(11),a=r(66),u=r(13),s=r(88),f=Object.getOwnPropertyDescriptor;e.f=r(5)?f:function(t,e){if(t=o(t),e=a(e,!0),s)try{return f(t,e)}catch(t){}if(u(t,e))return i(!n.f.call(t,e),t[e])}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(1),i=r(0),o=r(12);t.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},function(t,e,r){var n=r(10);t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},function(t,e,r){var n=r(64)("keys"),i=r(40);t.exports=function(t){return n[t]||(n[t]=i(t))}},function(t,e,r){var n=r(2),i=n["__core-js_shared__"]||(n["__core-js_shared__"]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(8);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e,r){var n=r(8);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,r){var n=r(2),i=r(0),o=r(37),a=r(69),u=r(6).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e,r){e.f=r(3)},function(t,e,r){var n=r(36),i=r(3)("iterator"),o=r(17);t.exports=r(0).getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i=r(29),o=n(i),a=r(50),u=n(a),s=r(48),f=n(s),c=r(35),l=n(c),h=r(21),p=n(h),d=r(30),v=n(d),y=r(31),g=n(y),m=r(34),b=n(m),x=r(32),w=n(x),_=r(33),k=n(_),S=r(16),E=n(S),M=r(28),O=(0,E.default)("resolution"),C=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.context,n=t.handleEvent,i=t.evaluateFPS,o=t.renderMode,a=t.resolution;(0,v.default)(this,e);var u=(0,b.default)(this,(e.__proto__||(0,p.default)(e)).call(this,{context:r,handleEvent:n,evaluateFPS:i,renderMode:o}));return a?u.resolution=a:u[O]=[u.canvas.width,u.canvas.height,0,0],u}return(0,k.default)(e,t),(0,g.default)(e,[{key:"renderRepaintAll",value:function(t){var r=(0,l.default)(this.resolution,4),n=r[0],i=r[1],o=r[2],a=r[3];this.shadowContext.clearRect(-o,-a,n,i),(0,w.default)(e.prototype.__proto__||(0,p.default)(e.prototype),"renderRepaintAll",this).call(this,t)}},{key:"isVisible",value:function(t){if(!(0,w.default)(e.prototype.__proto__||(0,p.default)(e.prototype),"isVisible",this).call(this,t))return!1;var r=(0,l.default)(this.resolution,4),n=r[0],i=r[1],o=r[2],a=r[3],u=t.renderBox;return!(u[0]>n-o||u[1]>i-a||u[2]<0||u[3]<0)}},{key:"takeSnapshot",value:function(){function t(){return e.apply(this,arguments)}var e=(0,f.default)(u.default.mark(function t(){var e,r,n;return u.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.prepareRender();case 2:return e=this.canvas.cloneNode(!0),r=e.getContext("2d"),r.drawImage(this.canvas,0,0),n=this.children.map(function(t){return t.serialize()}),t.abrupt("return",{context:r,children:n});case 6:case"end":return t.stop()}},t,this)}));return t}()},{key:"putSnapshot",value:function(t){var e=this,r=this.outputContext,n=(0,l.default)(this.resolution,2),i=n[0],a=n[1];r.clearRect(0,0,i,a),r.drawImage(t.context.canvas,0,0),this.clearUpdate(),t.children.forEach(function(t){var r=(0,M.createNode)(t.nodeType);(0,o.default)(r.attrs(),JSON.parse(t.attrs)),e.appendChild(r,!1)});for(var u=0;u<this.children.length;u++){var s=this.children[u];s.dispatchEvent("update",{target:s,context:s.context,renderBox:s.renderBox,lastRenderBox:s.lastRenderBox},!0),s.lastRenderBox=s.renderBox}return this.children}},{key:"id",get:function(){return this.canvas.dataset.layerId}},{key:"resolution",get:function(){return this[O]},set:function(t){var e=(0,l.default)(t,4),r=e[0],n=e[1],i=e[2],o=e[3],a=this.outputContext.canvas;if(a.width=r,a.height=n,this.outputContext.clearRect(0,0,r,n),this.shadowContext){var u=this.shadowContext.canvas;u.width=r,u.height=n,this.shadowContext.clearRect(0,0,r,n)}if(i||o){var s=this.shadowContext||this.outputContext;s.restore(),s.translate(i,o),s.save()}this.children.forEach(function(t){delete t.lastRenderBox,t.forceUpdate()}),this[O]=t}},{key:"zIndex",get:function(){return this.canvas.style.zIndex},set:function(t){this.canvas.style.zIndex=t}}]),e}(M.Layer);e.default=C},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var i,o,a,u=r(47),s=n(u),f=r(15),c=n(f),l=r(29),h=n(l),p=r(21),d=n(p),v=r(30),y=n(v),g=r(31),m=n(g),b=r(34),x=n(b),w=r(32),_=n(w),k=r(33),S=n(k),E=r(16),M=n(E),O=r(28),C=r(43),T=n(C),j=r(78),P=O.utils.attr,A=(0,M.default)("mapTextures"),R=(i=function(t){function e(){return(0,y.default)(this,e),(0,x.default)(this,(e.__proto__||(0,d.default)(e)).apply(this,arguments))}return(0,S.default)(e,t),(0,m.default)(e,[{key:A,value:function(t){var r=!1,n=t.map(function(t){var e=t.img,n=t.texture;return t.fromCache||(r=!0),(0,h.default)({},n,{image:e})});r&&this.clearCache(),(0,_.default)(e.prototype.__proto__||(0,d.default)(e.prototype),"loadTextures",this).call(this,n)}},{key:"loadTextures",value:function(t){var e=!1,r=t.map(function(t){if(t.image)return c.default.resolve({img:t.image,texture:t});var r=T.default.loadTexture(t);return r instanceof c.default&&(e=!0),r});e?c.default.all(r).then(this[A].bind(this)):this[A](r)}},{key:"textures",set:function(t){Array.isArray(t)||(t=[t]),t=t.map(function(t){return"string"==typeof t?t={src:t}:t.src||t.id||t.image||(t={image:t}),t}),this.set("textures",t),this.loadTextures(t)}}]),e}(O.Sprite.Attr),j(i.prototype,"textures",[P],(0,s.default)(i.prototype,"textures"),i.prototype),i),z=(a=o=function(t){function e(){return(0,y.default)(this,e),(0,x.default)(this,(e.__proto__||(0,d.default)(e)).apply(this,arguments))}return(0,S.default)(e,t),e}(O.Sprite),o.Attr=R,a);e.default=z},function(t,e,r){"use strict";(function(e){var n=r(4),i=r(116),o=r(119),a=r(125),u=r(123),s=r(76),f="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||r(118);t.exports=function(t){return new Promise(function(c,l){var h=t.data,p=t.headers;n.isFormData(h)&&delete p["Content-Type"];var d=new XMLHttpRequest,v="onreadystatechange",y=!1;if("test"===e.env.NODE_ENV||"undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||u(t.url)||(d=new window.XDomainRequest,v="onload",y=!0,d.onprogress=function(){},d.ontimeout=function(){}),t.auth){var g=t.auth.username||"",m=t.auth.password||"";p.Authorization="Basic "+f(g+":"+m)}if(d.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d[v]=function(){if(d&&(4===d.readyState||y)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var e="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r=t.responseType&&"text"!==t.responseType?d.response:d.responseText,n={data:r,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:e,config:t,request:d};i(c,l,n),d=null}},d.onerror=function(){l(s("Network Error",t,null,d)),d=null},d.ontimeout=function(){l(s("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var b=r(121),x=(t.withCredentials||u(t.url))&&t.xsrfCookieName?b.read(t.xsrfCookieName):void 0;x&&(p[t.xsrfHeaderName]=x)}if("setRequestHeader"in d&&n.forEach(p,function(t,e){void 0===h&&"content-type"===e.toLowerCase()?delete p[e]:d.setRequestHeader(e,t)}),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){d&&(d.abort(),l(t),d=null)}),void 0===h&&(h=null),d.send(h)})}}).call(e,r(107))},function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,r){"use strict";var n=r(115);t.exports=function(t,e,r,i,o){var a=new Error(t);return n(a,e,r,i,o)}},function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},function(t,e){t.exports=function(t,e,r,n,i){var o={};return Object.keys(n).forEach(function(t){o[t]=n[t]}),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce(function(r,n){return n(t,e,r)||r},o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}},function(t,e,r){t.exports={default:r(142),__esModule:!0}},function(t,e,r){t.exports={default:r(145),__esModule:!0}},function(t,e,r){t.exports={default:r(147),__esModule:!0}},function(t,e,r){t.exports={default:r(152),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(45),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return(0,i.default)(t)}},function(t,e,r){"use strict";var n=r(6).f,i=r(38),o=r(62),a=r(9),u=r(51),s=r(24),f=r(56),c=r(93),l=r(104),h=r(5),p=r(57).fastKey,d=r(67),v=h?"_s":"size",y=function(t,e){var r,n=p(e);if("F"!==n)return t._i[n];for(r=t._f;r;r=r.n)if(r.k==e)return r};t.exports={getConstructor:function(t,e,r,f){var c=t(function(t,n){u(t,c,e,"_i"),t._t=e,t._i=i(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=n&&s(n,r,t[f],t)});return o(c.prototype,{clear:function(){for(var t=d(this,e),r=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var r=d(this,e),n=y(r,t);if(n){var i=n.n,o=n.p;delete r._i[n.i],n.r=!0,o&&(o.n=i),i&&(i.p=o),r._f==n&&(r._f=i),r._l==n&&(r._l=o),r[v]--}return!!n},forEach:function(t){d(this,e);for(var r,n=a(t,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(t){return!!y(d(this,e),t)}}),h&&n(c.prototype,"size",{get:function(){return d(this,e)[v]}}),c},def:function(t,e,r){var n,i,o=y(t,e);return o?o.v=r:(t._l=o={i:i=p(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[v]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,e,r){f(t,e,function(t,r){this._t=d(t,e),this._k=r,this._l=void 0},function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==e?c(0,r.k):"values"==e?c(0,r.v):c(0,[r.k,r.v]):(t._t=void 0,c(1))},r?"entries":"values",!r,!0),l(e)}}},function(t,e,r){var n=r(36),i=r(163);t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,r){"use strict";var n=r(2),i=r(1),o=r(57),a=r(12),u=r(10),s=r(62),f=r(24),c=r(51),l=r(8),h=r(27),p=r(6).f,d=r(165)(0),v=r(5);t.exports=function(t,e,r,y,g,m){var b=n[t],x=b,w=g?"set":"add",_=x&&x.prototype,k={};return v&&"function"==typeof x&&(m||_.forEach&&!a(function(){(new x).entries().next()}))?(x=e(function(e,r){c(e,x,t,"_c"),e._c=new b,void 0!=r&&f(r,g,e[w],e)}),d("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(t){var e="add"==t||"set"==t;t in _&&(!m||"clear"!=t)&&u(x.prototype,t,function(r,n){if(c(this,x,t),!e&&m&&!l(r))return"get"==t&&void 0;var i=this._c[t](0===r?0:r,n);return e?this:i})}),m||p(x.prototype,"size",{get:function(){return this._c.size}})):(x=y.getConstructor(e,t,g,w),s(x.prototype,r),o.NEED=!0),h(x,t),k[t]=x,i(i.G+i.W+i.F,k),m||y.setStrong(x,t,g),x}},function(t,e,r){var n=r(2).document;t.exports=n&&n.documentElement},function(t,e,r){t.exports=!r(5)&&!r(12)(function(){return 7!=Object.defineProperty(r(53)("div"),"a",{get:function(){return 7}}).a})},function(t,e,r){var n=r(17),i=r(3)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},function(t,e,r){var n=r(23);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(7);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,r){var n=r(3)("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){return{done:r=!0}},o[n]=function(){return a},t(o)}catch(t){}return r}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,r){var n=r(6),i=r(7),o=r(18);t.exports=r(5)?Object.defineProperties:function(t,e){i(t);for(var r,a=o(e),u=a.length,s=0;u>s;)n.f(t,r=a[s++],e[r]);return t}},function(t,e,r){var n=r(97),i=r(54).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(13),i=r(19),o=r(63)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,r){var n=r(13),i=r(11),o=r(164)(!1),a=r(63)("IE_PROTO");t.exports=function(t,e){var r,u=i(t),s=0,f=[];for(r in u)r!=a&&n(u,r)&&f.push(r);for(;e.length>s;)n(u,r=e[s++])&&(~o(f,r)||f.push(r));return f}},function(t,e,r){var n=r(18),i=r(11),o=r(25).f;t.exports=function(t){return function(e){for(var r,a=i(e),u=n(a),s=u.length,f=0,c=[];s>f;)o.call(a,r=u[f++])&&c.push(t?[r,a[r]]:a[r]);return c}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,r){var n=r(7),i=r(8),o=r(58);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},function(t,e,r){t.exports=r(10)},function(t,e,r){"use strict";var n=r(1),i=r(22),o=r(9),a=r(24);t.exports=function(t){n(n.S,t,{from:function(t){var e,r,n,u,s=arguments[1];return i(this),e=void 0!==s,e&&i(s),void 0==t?new this:(r=[],e?(n=0,u=o(s,arguments[2],2),a(t,!1,function(t){r.push(u(t,n++))})):a(t,!1,r.push,r),new this(r))}})}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,r){"use strict";var n=r(2),i=r(0),o=r(6),a=r(5),u=r(3)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(7),i=r(22),o=r(3)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[o])?e:i(r)}},function(t,e,r){var n,i,o,a=r(9),u=r(170),s=r(87),f=r(53),c=r(2),l=c.process,h=c.setImmediate,p=c.clearImmediate,d=c.MessageChannel,v=c.Dispatch,y=0,g={},m=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){m.call(t.data)};h&&p||(h=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++y]=function(){u("function"==typeof t?t:Function(t),e)},n(y),y},p=function(t){delete g[t]},"process"==r(23)(l)?n=function(t){l.nextTick(a(m,t,1))}:v&&v.now?n=function(t){v.now(a(m,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(t){c.postMessage(t+"","*")},c.addEventListener("message",b,!1)):n="onreadystatechange"in f("script")?function(t){s.appendChild(f("script")).onreadystatechange=function(){s.removeChild(this),m.call(t)}}:function(t){setTimeout(a(m,t,1),0)}),t.exports={set:h,clear:p}},function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(t){if(c===setTimeout)return setTimeout(t,0);if((c===r||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===n||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function a(){v&&p&&(v=!1,p.length?d=p.concat(d):y=-1,d.length&&u())}function u(){if(!v){var t=i(a);v=!0;for(var e=d.length;e;){for(p=d,d=[];++y<e;)p&&p[y].run();y=-1,e=d.length}p=null,v=!1,o(t)}}function s(t,e){this.fun=t,this.array=e}function f(){}var c,l,h=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:r}catch(t){c=r}try{l="function"==typeof clearTimeout?clearTimeout:n}catch(t){l=n}}();var p,d=[],v=!1,y=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];d.push(new s(t,e)),1!==d.length||v||i(u)},s.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=f,h.addListener=f,h.once=f,h.off=f,h.removeListener=f,h.removeAllListeners=f,h.emit=f,h.prependListener=f,h.prependOnceListener=f,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(81),o=n(i),a=r(136),u=n(a),s=r(50),f=n(s),c=r(15),l=n(c),h=r(48),p=n(h),d=r(29),v=n(d),y=r(83),g=n(y),m=r(35),b=n(m),x=r(21),w=n(x),_=r(30),k=n(_),S=r(31),E=n(S),M=r(34),O=n(M),C=r(32),T=n(C),j=r(33),P=n(j),A=r(16),R=n(A),z=r(71),I=n(z),L=r(43),N=n(L),D=r(28),F=r(42),B=D.utils.setDeprecation,q=D.utils.sortOrderedSprites,V=(0,R.default)("layerMap"),U=(0,R.default)("zOrder"),G=(0,R.default)("layers"),H=(0,R.default)("snapshot"),J=(0,R.default)("viewport"),W=(0,R.default)("resolution"),X=(0,R.default)("resizeHandler"),Y=function(t){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,k.default)(this,e);var n=(0,O.default)(this,(e.__proto__||(0,w.default)(e)).call(this));t=(0,F.getContainer)(t),n.container=t,3===arguments.length&&(B("Scene(container, width, height)","Instead use Scene(container, {viewport, resolution})."),r={viewport:[arguments[1],arguments[2]]}),n[U]=0,n[V]={},n[G]=[],n[H]=(0,F.createCanvas)();var i=r.viewport||["",""],o=(0,b.default)(i,2),a=o[0],u=o[1];n.viewport=[a,u],n.stickMode=r.stickMode||"scale",n.stickExtend=!!r.stickExtend,n.stickOffset=[0,0],n[W]=r.resolution||[].concat((0,g.default)(n.viewport)),n.namespaceURI="http://spritejs.org/scene";var s=n;return n.ownerDocument={createElementNS:function(t,e){return s.layer(e)}},["mousedown","mouseup","mousemove","touchstart","touchend","touchmove","click","dblclick"].forEach(function(t){return n.delegateEvent(t)}),n}return(0,P.default)(e,t),(0,E.default)(e,[{key:"insertBefore",value:function(t,e){if(this.container)return this.container.insertBefore(t,e)}},{key:"appendChild",value:function(t){return this.appendLayer(t)}},{key:"removeChild",value:function(t){return this.removeLayer(t)}},{key:"updateViewport",value:function(t){var e=this,r=(0,b.default)(this.layerViewport,2),n=r[0],i=r[1],o=t?[t]:this[G],a=this.stickMode,u=this.stickExtend;return o.forEach(function(t){var r=t.canvas;r.style.width=n+"px",r.style.height=i+"px",(0,v.default)(r.style,{top:0,right:0,bottom:0,left:0,transform:""}),u||"width"!==a&&"height"!==a?u||"right"!==a&&"bottom"!==a?(r.style.top="0",r.style.left="0"):(r.style.right="0",r.style.bottom="0"):(r.style.top="50%",r.style.left="50%",r.style.transform="translate(-50%, -50%)"),u&&(t.resolution=e.layerResolution)}),this.dispatchEvent("viewportChange",{target:this,layers:o}),this}},{key:"updateResolution",value:function(t){var e=this,r=t?[t]:this[G];return r.forEach(function(t){t.resolution=e.layerResolution}),this.dispatchEvent("resolutionChange",{target:this,layers:r}),this}},{key:"setViewport",value:function(t,e){return this.viewport=[t,e],this}},{key:"setResolution",value:function(t,e){return this.resolution=[t,e],this}},{key:"toGlobalPos",value:function(t,e){var r=this.layerResolution,n=this.layerViewport;return t=t*n[0]/r[0],e=e*n[1]/r[1],[t,e]}},{key:"toLocalPos",value:function(t,e){var r=this.layerResolution,n=this.layerViewport;return t=t*r[0]/n[0],e=e*r[1]/n[1],[t,e]}},{key:"delegateEvent",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.container;"string"==typeof t&&(t={type:t,passive:!0});var n=t,i=n.type,o=n.passive;r.addEventListener(i,function(t){var r=e[G],n={originalEvent:t,type:i,stopDispatch:function(){this.terminated=!0}},o=0,a=0,u=0,s=0;if(t instanceof CustomEvent){if((0,v.default)(n,t.detail),null!=n.x&&null!=n.y){o=n.x,a=n.y;var f=e.toGlobalPos(o,a),c=(0,b.default)(f,2);u=c[0],s=c[1],o-=e.stickOffset[0],o-=e.stickOffset[1]}}else if(t.target.dataset.layerId&&e[V][t.target.dataset.layerId]){var l=t.target.getBoundingClientRect(),h=l.left,p=l.top,d=t.changedTouches?t.changedTouches[0]:t,y=d.clientX,g=d.clientY;u=Math.round((0|y)-h),s=Math.round((0|g)-p);var m=e.toLocalPos(u,s),x=(0,b.default)(m,2);o=x[0],a=x[1],o-=e.stickOffset[0],o-=e.stickOffset[1]}(0,v.default)(n,{layerX:o,layerY:a,originalX:u,originalY:s,x:o,y:a});for(var w=0;w<r.length;w++){var _=r[w];_.handleEvent&&_.dispatchEvent(i,n)}},{passive:o})}},{key:"dispatchEvent",value:function(t,r){this.container.dispatchEvent(new CustomEvent(t,{detail:r})),(0,T.default)(e.prototype.__proto__||(0,w.default)(e.prototype),"dispatchEvent",this).call(this,t,r,!0)}},{key:"preload",value:function(){function t(){return e.apply(this,arguments)}var e=(0,p.default)(f.default.mark(function t(){for(var e=this,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o,a,u,s,c,h,p;return f.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(o=[],a=[],u=0;u<n.length;u++)s=n[u],c=void 0,"string"==typeof s?c=N.default.loadTexture(s):Array.isArray(s)?c=N.default.loadFrames.apply(N.default,(0,g.default)(s)):(h=s.id,p=s.src,c=N.default.loadTexture({id:h,src:p})),c instanceof l.default||(c=l.default.resolve(c)),a.push(c.then(function(t){o.push(t),e.dispatchEvent("preload",{target:e,current:t,loaded:o,resources:n})}));return t.next=4,l.default.all(a);case 4:return t.abrupt("return",o);case 5:case"end":return t.stop()}},t,this)}));return t}()},{key:"layer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handleEvent:!0};if("number"==typeof e&&(e={zIndex:e}),!this.hasLayer(t)){var r=0;null!=e.zIndex&&(r=e.zIndex,delete e.zIndex);var n=e.context||(0,F.createCanvas)().getContext("2d"),i=n.canvas;i.dataset.layerId=t,i.style.position="absolute",this.container.style&&!this.container.style.position&&(this.container.style.position="relative"),e.context=n,this.appendLayer(new I.default(e),r)}return this[V][t]}},{key:"appendLayer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.id;if(this.hasLayer(r)&&this[V][r]!==t)throw new Error("layer "+r+" already exists! remove first...");return this.removeLayer(t),this[V][r]=t,t.connect(this,this[U]++,e),this.updateViewport(t),t.resolution=this.layerResolution,this[G]=q((0,u.default)(this[V]),!0),F.setDebugToolsObserver&&"__debuglayer__"!==t.id&&(0,F.setDebugToolsObserver)(this,t),t}},{key:"removeLayer",value:function(t){return"string"==typeof t&&(t=this[V][t]),this.hasLayer(t)?(t.disconnect(this),delete this[V][t.id],this[G]=q((0,u.default)(this[V]),!0),F.removeDebugToolsObserver&&(0,F.removeDebugToolsObserver)(t),t):null}},{key:"hasLayer",value:function(t){var e=void 0;return"string"==typeof t?(e=t,t=this[V][t]):e=t.id,t&&this[V][e]===t}},{key:"snapshot",value:function(){function t(){return e.apply(this,arguments)}var e=(0,p.default)(f.default.mark(function t(){var e,r,n,i,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.viewport[0],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.viewport[1];return f.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this[H],e.width=o,e.height=a,r=this[G].slice(0).reverse(),n=e.getContext("2d"),i=r.map(function(t){return t.prepareRender()}),t.next=8,l.default.all(i);case 8:return r.forEach(function(t){return n.drawImage(t.canvas,0,0,o,a)}),t.abrupt("return",e);case 10:case"end":return t.stop()}},t,this)}));return t}()},{key:"width",get:function(){return this.viewport[0]}},{key:"height",get:function(){return this.viewport[1]}},{key:"layerViewport",get:function(){var t=(0,b.default)(this.resolution,2),e=t[0],r=t[1],n=(0,b.default)(this.viewport,2),i=n[0],o=n[1],a=this.stickMode,u=this.stickExtend,s=i,f=o;return u||("width"===a||"top"===a||"bottom"===a?f=Math.min(r,i*r/e):"height"!==a&&"left"!==a&&"right"!==a||(s=Math.min(e,o*e/r))),[s,f]}},{key:"distortion",get:function(){return"scale"!==this.stickMode?1:this.viewport[1]*this.resolution[0]/(this.viewport[0]*this.resolution[1])}},{key:"viewport",set:function(t){var e=this,r=(0,b.default)(t,2),n=r[0],i=r[1];this[J]=[n,i],"auto"===n||"auto"===i?this[X]||(this[X]=function(){return e.updateViewport()},window.addEventListener("resize",this[X])):this[X]&&(window.removeEventListener("resize",this[X]),delete this[X]),this[G].length&&this.updateViewport()},get:function(){var t=(0,b.default)(this[J],2),e=t[0],r=t[1];return(""===e||(0,o.default)(Number(e)))&&(e=this.container.clientWidth),(""===r||(0,o.default)(Number(r)))&&(r=this.container.clientHeight),[e,r]}},{key:"layerResolution",get:function(){var t=(0,b.default)(this.resolution,2),e=t[0],r=t[1],n=(0,b.default)(this.viewport,2),i=n[0],o=n[1],a=this.stickMode,u=this.stickExtend,s=e,f=r,c=0,l=0;if(u)if("width"===a||"top"===a||"bottom"===a){var h=e*o/i;f=h,"width"===a?c=Math.round((h-r)/2):"bottom"===a&&(c=h-r)}else if("height"===a||"left"===a||"right"===a){var p=r*i/o;s=p,"height"===a?l=Math.round((p-e)/2):"right"===a&&(l=p-e)}return this.stickOffset=[l,c],[s,f,l,c]}},{key:"resolution",set:function(t){var e=(0,b.default)(t,2),r=e[0],n=e[1];this[W]=[r,n],this.updateResolution()},get:function(){return this[W]}},{key:"layers",get:function(){return this[G]}}]),e}(D.BaseNode);e.default=Y},function(t,e,r){t.exports=r(110)},function(t,e,r){"use strict";function n(t){var e=new a(t),r=o(a.prototype.request,e);return i.extend(r,a.prototype,e),i.extend(r,e),r}var i=r(4),o=r(77),a=r(112),u=r(44),s=n(u);s.Axios=a,s.create=function(t){return n(i.merge(u,t))},s.Cancel=r(74),s.CancelToken=r(111),s.isCancel=r(75),s.all=function(t){return Promise.all(t)},s.spread=r(126),t.exports=s,t.exports.default=s},function(t,e,r){"use strict";function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var r=this;t(function(t){r.reason||(r.reason=new i(t),e(r.reason))})}var i=r(74);n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t;return{token:new n(function(e){t=e}),cancel:t}},t.exports=n},function(t,e,r){"use strict";function n(t){this.defaults=t,this.interceptors={request:new a,response:new a}}var i=r(44),o=r(4),a=r(113),u=r(114),s=r(122),f=r(120);n.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),t=o.merge(i,this.defaults,{method:"get"},t),t.method=t.method.toLowerCase(),t.baseURL&&!s(t.url)&&(t.url=f(t.baseURL,t.url));var e=[u,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)r=r.then(e.shift(),e.shift());return r},o.forEach(["delete","get","head","options"],function(t){n.prototype[t]=function(e,r){return this.request(o.merge(r||{},{method:t,url:e}))}}),o.forEach(["post","put","patch"],function(t){n.prototype[t]=function(e,r,n){return this.request(o.merge(n||{},{method:t,url:e,data:r}))}}),t.exports=n},function(t,e,r){"use strict";function n(){this.handlers=[]}var i=r(4);n.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=n},function(t,e,r){"use strict";function n(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var i=r(4),o=r(117),a=r(75),u=r(44);t.exports=function(t){return n(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),i.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||u.adapter)(t).then(function(e){return n(t),e.data=o(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(n(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,r){"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t}},function(t,e,r){"use strict";var n=r(76);t.exports=function(t,e,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?e(n("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}},function(t,e,r){"use strict";var n=r(4);t.exports=function(t,e,r){return n.forEach(r,function(r){t=r(t,e)}),t}},function(t,e,r){"use strict";function n(){this.message="String contains an invalid character"}function i(t){for(var e,r,i=String(t),a="",u=0,s=o;i.charAt(0|u)||(s="=",u%1);a+=s.charAt(63&e>>8-u%1*8)){if((r=i.charCodeAt(u+=.75))>255)throw new n;e=e<<8|r}return a}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=i},function(t,e,r){"use strict";function n(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=r(4);t.exports=function(t,e,r){if(!e)return t;var o;if(r)o=r(e);else if(i.isURLSearchParams(e))o=e.toString();else{var a=[];i.forEach(e,function(t,e){null!==t&&void 0!==t&&(i.isArray(t)&&(e+="[]"),i.isArray(t)||(t=[t]),i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(n(e)+"="+n(t))}))}),o=a.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,r){"use strict";var n=r(4);t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,r,i,o,a){var u=[];u.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),n.isString(i)&&u.push("path="+i),n.isString(o)&&u.push("domain="+o),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,r){"use strict";var n=r(4);t.exports=n.isStandardBrowserEnv()?function(){function t(t){var e=t;return r&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,r=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(r){var i=n.isString(r)?t(r):r;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(t,e,r){"use strict";var n=r(4);t.exports=function(t,e){n.forEach(t,function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])})}},function(t,e,r){"use strict";var n=r(4);t.exports=function(t){var e,r,i,o={};return t?(n.forEach(t.split("\n"),function(t){i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e&&(o[e]=o[e]?o[e]+", "+r:r)}),o):o}},function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(){v("spritejs.Paper2D","Instead use new spritejs.Scene.");for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return new(Function.prototype.bind.apply(l.default,[null].concat(e)))}Object.defineProperty(e,"__esModule",{value:!0}),e.Effects=e.Resource=e.Color=e.createNode=e.registerNodeType=e.Paper2D=e.Scene=e.Layer=e.Group=e.Path=e.Label=e.Sprite=e.BaseSprite=e.BaseNode=e.utils=e.math=e.version=e._debugger=void 0;var o=r(28),a=r(72),u=n(a),s=r(71),f=n(s),c=r(108),l=n(c),h=r(43),p=n(h),d=r(42),v=o.utils.setDeprecation;d.shim&&(0,d.shim)(),(0,o.registerNodeType)("layer",f.default,!0),(0,o.registerNodeType)("sprite",u.default);e._debugger=d._debugger,e.version="2.0.0-alpha.1",e.math=o.math,e.utils=o.utils,e.BaseNode=o.BaseNode,e.BaseSprite=o.BaseSprite,e.Sprite=u.default,e.Label=o.Label,e.Path=o.Path,e.Group=o.Group,e.Layer=f.default,e.Scene=l.default,e.Paper2D=i,e.registerNodeType=o.registerNodeType,e.createNode=o.createNode,e.Color=o.Color,e.Resource=p.default,e.Effects=o.Effects},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function i(t,e){var r=void 0,n=void 0,i=void 0,o=void 0;e[c]=e[c]||{},e[c].initObserver=function(){function a(){if(h.selectedSprite){h.selectedSprite.off("update",s),h.selectedSprite=null;var t=new CustomEvent("spritejs: observer",{detail:""});document.dispatchEvent(t),i&&i.attr("opacity",0)}}function u(t){var e=t.renderRect;i||(i=new f.default,i.attr({zIndex:1/0,bgcolor:"rgba(0, 0, 0, 0.3)"}),o.append(i)),i.attr({pos:[e[0],e[1]],size:[e[2],e[3]]})}var s=void 0;o=t.layer("__debuglayer__"),o.canvas.style.background="transparent",o.zIndex=2147483647,r=function(t){var e=t.targetSprites;if(e.length){var r=e[0];if(r){if(h.selectedSprite===r)return;if(h.selectedSprite){var n=new CustomEvent("spritejs: observer",{detail:""});document.dispatchEvent(n),h.selectedSprite.off("update",s)}var i=new CustomEvent("spritejs: observer",{detail:r.attr()});document.dispatchEvent(i);var o=function(t){var e=new CustomEvent("spritejs: observer",{detail:t.attr()});document.dispatchEvent(e),u(t)};s=function(t){o(t.target)},o(r),r.on("update",s),h.selectedSprite=r,t.stopDispatch()}}else a()},e.on("click",r),n=function(t){if(!h.selectedSprite){var e=t.targetSprites[0];e?u(e):(o.remove(i),i=null)}},e.on("mousemove",n),l=!0},e[c].removeObserver=function(){r&&(e.off("click",r),r=null),n&&(e.off("mousemove",n),n=null),i&&(e.remove(i),i=null),o&&t.removeLayer(o),h.selectedSprite=null,l=!1},l&&e[c].initObserver(),e[c].attrChange=function(t){var e=t.detail,r=e.key,n=e.value;if(h.selectedSprite){var i=h.selectedSprite,o=r.split("."),a=o[1];if(2===o.length)try{i.attr(a,n)}catch(t){}else{for(var u=i.attr(a),s=2;s<o.length-1;s++)u[o[s]]=u[o[s]]||{};u[o[o.length-1]]=n;try{i.attr(a,u)}catch(t){}}}};var a=e[c];document.addEventListener("spritejs: devtools-opened",a.initObserver),document.addEventListener("spritejs: devtools-closed",a.removeObserver),document.addEventListener("spritejs: attr-change",a.attrChange)}function o(t){var e=t[c];e&&(document.removeEventListener("spritejs: devtools-opened",e.initObserver),document.removeEventListener("spritejs: devtools-closed",e.removeObserver),document.removeEventListener("spritejs: attr-change",e.attrChange))}Object.defineProperty(e,"__esModule",{value:!0}),e._debugger=void 0;var a=r(16),u=n(a);e.setDebugToolsObserver=i,e.removeDebugToolsObserver=o;var s=r(72),f=n(s),c=(0,u.default)("debugToolsHandler"),l=!1,h=e._debugger={selectedSprite:null}},function(t,e,r){t.exports={default:r(143),__esModule:!0}},function(t,e,r){t.exports={default:r(144),__esModule:!0}},function(t,e,r){t.exports={default:r(146),__esModule:!0}},function(t,e,r){t.exports={default:r(149),__esModule:!0}},function(t,e,r){t.exports={default:r(150),__esModule:!0}},function(t,e,r){t.exports={default:r(155),__esModule:!0}},function(t,e,r){t.exports={default:r(156),__esModule:!0}},function(t,e,r){t.exports={default:r(157),__esModule:!0}},function(t,e,r){t.exports={default:r(159),__esModule:!0}},function(t,e,r){t.exports={default:r(161),__esModule:!0}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(46),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t,e,r){return e in t?(0,i.default)(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}},function(t,e,r){"use strict";e.__esModule=!0;var n=r(45),i=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){return Array.isArray(t)?t:(0,i.default)(t)}},function(t,e,r){r(14),r(180),t.exports=r(0).Array.from},function(t,e,r){r(20),r(14),t.exports=r(178)},function(t,e,r){r(20),r(14),t.exports=r(179)},function(t,e,r){var n=r(0),i=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,r){r(41),r(14),r(20),r(182),r(198),r(197),r(196),t.exports=r(0).Map},function(t,e,r){r(183),t.exports=r(0).Number.isFinite},function(t,e,r){r(184),t.exports=r(0).Number.isNaN},function(t,e,r){r(185),t.exports=r(0).Object.assign},function(t,e,r){r(186);var n=r(0).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,r){r(187);var n=r(0).Object;t.exports=function(t,e){return n.defineProperties(t,e)}},function(t,e,r){r(188);var n=r(0).Object;t.exports=function(t,e,r){return n.defineProperty(t,e,r)}},function(t,e,r){r(199),t.exports=r(0).Object.entries},function(t,e,r){r(189);var n=r(0).Object;t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)}},function(t,e,r){r(190),t.exports=r(0).Object.getPrototypeOf},function(t,e,r){r(191),t.exports=r(0).Object.keys},function(t,e,r){r(192),t.exports=r(0).Object.setPrototypeOf},function(t,e,r){r(200),t.exports=r(0).Object.values},function(t,e,r){r(41),r(14),r(20),r(193),r(201),r(202),t.exports=r(0).Promise},function(t,e,r){r(41),r(14),r(20),r(194),r(205),r(204),r(203),t.exports=r(0).Set},function(t,e,r){r(195),r(41),r(206),r(207),t.exports=r(0).Symbol},function(t,e,r){r(14),r(20),t.exports=r(69).f("iterator")},function(t,e){t.exports=function(){}},function(t,e,r){var n=r(24);t.exports=function(t,e){var r=[];return n(t,!1,r.push,r,e),r}},function(t,e,r){var n=r(11),i=r(39),o=r(177);t.exports=function(t){return function(e,r,a){var u,s=n(e),f=i(s.length),c=o(a,f);if(t&&r!=r){for(;f>c;)if((u=s[c++])!=u)return!0}else for(;f>c;c++)if((t||c in s)&&s[c]===r)return t||c||0;return!t&&-1}}},function(t,e,r){var n=r(9),i=r(55),o=r(19),a=r(39),u=r(167);t.exports=function(t,e){var r=1==t,s=2==t,f=3==t,c=4==t,l=6==t,h=5==t||l,p=e||u;return function(e,u,d){for(var v,y,g=o(e),m=i(g),b=n(u,d,3),x=a(m.length),w=0,_=r?p(e,x):s?p(e,0):void 0;x>w;w++)if((h||w in m)&&(v=m[w],y=b(v,w,g),t))if(r)_[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:_.push(v)}else if(c)return!1;return l?-1:f||c?c:_}}},function(t,e,r){var n=r(8),i=r(90),o=r(3)("species");t.exports=function(t){var e;return i(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!i(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,r){var n=r(166);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,r){"use strict";var n=r(6),i=r(26);t.exports=function(t,e,r){e in t?n.f(t,e,i(0,r)):t[e]=r}},function(t,e,r){var n=r(18),i=r(60),o=r(25);t.exports=function(t){var e=n(t),r=i.f;if(r)for(var a,u=r(t),s=o.f,f=0;u.length>f;)s.call(t,a=u[f++])&&e.push(a);return e}},function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},function(t,e,r){"use strict";var n=r(38),i=r(26),o=r(27),a={};r(10)(a,r(3)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(a,{next:i(1,r)}),o(t,e+" Iterator")}},function(t,e,r){var n=r(2),i=r(106).set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,s="process"==r(23)(a);t.exports=function(){var t,e,r,f=function(){var n,i;for(s&&(n=a.domain)&&n.exit();t;){i=t.fn,t=t.next;try{i()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(s)r=function(){a.nextTick(f)};else if(o){var c=!0,l=document.createTextNode("");new o(f).observe(l,{characterData:!0}),r=function(){l.data=c=!c}}else if(u&&u.resolve){var h=u.resolve();r=function(){h.then(f)}}else r=function(){i.call(n,f)};return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},function(t,e,r){"use strict";var n=r(18),i=r(60),o=r(25),a=r(19),u=r(55),s=Object.assign;t.exports=!s||r(12)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=s({},t)[r]||Object.keys(s({},e)).join("")!=n})?function(t,e){for(var r=a(t),s=arguments.length,f=1,c=i.f,l=o.f;s>f;)for(var h,p=u(arguments[f++]),d=c?n(p).concat(c(p)):n(p),v=d.length,y=0;v>y;)l.call(p,h=d[y++])&&(r[h]=p[h]);return r}:s},function(t,e,r){var n=r(11),i=r(95).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?u(t):i(n(t))}},function(t,e,r){var n=r(8),i=r(7),o=function(t,e){if(i(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{n=r(9)(Function.call,r(59).f(Object.prototype,"__proto__").set,2),n(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,r){return o(t,r),e?t.__proto__=r:n(t,r),t}}({},!1):void 0),check:o}},function(t,e,r){var n=r(65),i=r(52);t.exports=function(t){return function(e,r){var o,a,u=String(i(e)),s=n(r),f=u.length;return s<0||s>=f?t?"":void 0:(o=u.charCodeAt(s),o<55296||o>56319||s+1===f||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):o:t?u.slice(s,s+2):a-56320+(o-55296<<10)+65536)}}},function(t,e,r){var n=r(65),i=Math.max,o=Math.min;t.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},function(t,e,r){var n=r(7),i=r(70);t.exports=r(0).getIterator=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return n(e.call(t))}},function(t,e,r){var n=r(36),i=r(3)("iterator"),o=r(17);t.exports=r(0).isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(n(e))}},function(t,e,r){"use strict";var n=r(9),i=r(1),o=r(19),a=r(91),u=r(89),s=r(39),f=r(168),c=r(70);i(i.S+i.F*!r(92)(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,i,l,h=o(t),p="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,y=void 0!==v,g=0,m=c(h);if(y&&(v=n(v,d>2?arguments[2]:void 0,2)),void 0==m||p==Array&&u(m))for(e=s(h.length),r=new p(e);e>g;g++)f(r,g,y?v(h[g],g):h[g]);else for(l=m.call(h),r=new p;!(i=l.next()).done;g++)f(r,g,y?a(l,v,[i.value,g],!0):i.value);return r.length=g,r}})},function(t,e,r){"use strict";var n=r(162),i=r(93),o=r(17),a=r(11);t.exports=r(56)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,r):"values"==e?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e,r){"use strict";var n=r(84),i=r(67);t.exports=r(86)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(i(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(i(this,"Map"),0===t?0:t,e)}},n,!0)},function(t,e,r){var n=r(1),i=r(2).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,r){var n=r(1);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,r){var n=r(1);n(n.S+n.F,"Object",{assign:r(173)})},function(t,e,r){var n=r(1);n(n.S,"Object",{create:r(38)})},function(t,e,r){var n=r(1);n(n.S+n.F*!r(5),"Object",{defineProperties:r(94)})},function(t,e,r){var n=r(1);n(n.S+n.F*!r(5),"Object",{defineProperty:r(6).f})},function(t,e,r){var n=r(11),i=r(59).f;r(61)("getOwnPropertyDescriptor",function(){return function(t,e){return i(n(t),e)}})},function(t,e,r){var n=r(19),i=r(96);r(61)("getPrototypeOf",function(){return function(t){return i(n(t))}})},function(t,e,r){var n=r(19),i=r(18);r(61)("keys",function(){return function(t){return i(n(t))}})},function(t,e,r){var n=r(1);n(n.S,"Object",{setPrototypeOf:r(175).set})},function(t,e,r){"use strict";var n,i,o,a,u=r(37),s=r(2),f=r(9),c=r(36),l=r(1),h=r(8),p=r(22),d=r(51),v=r(24),y=r(105),g=r(106).set,m=r(172)(),b=r(58),x=r(99),w=r(100),_=s.TypeError,k=s.process,S=s.Promise,E="process"==c(k),M=function(){},O=i=b.f,C=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[r(3)("species")]=function(t){t(M,M)};return(E||"function"==typeof PromiseRejectionEvent)&&t.then(M)instanceof e}catch(t){}}(),T=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},j=function(t,e){if(!t._n){t._n=!0;var r=t._c;m(function(){for(var n=t._v,i=1==t._s,o=0;r.length>o;)!function(e){var r,o,a=i?e.ok:e.fail,u=e.resolve,s=e.reject,f=e.domain;try{a?(i||(2==t._h&&R(t),t._h=1),!0===a?r=n:(f&&f.enter(),r=a(n),f&&f.exit()),r===e.promise?s(_("Promise-chain cycle")):(o=T(r))?o.call(r,u,s):u(r)):s(n)}catch(t){s(t)}}(r[o++]);t._c=[],t._n=!1,e&&!t._h&&P(t)})}},P=function(t){g.call(s,function(){var e,r,n,i=t._v,o=A(t);if(o&&(e=x(function(){E?k.emit("unhandledRejection",i,t):(r=s.onunhandledrejection)?r({promise:t,reason:i}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",i)}),t._h=E||A(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},A=function(t){if(1==t._h)return!1;for(var e,r=t._a||t._c,n=0;r.length>n;)if(e=r[n++],e.fail||!A(e.promise))return!1;return!0},R=function(t){g.call(s,function(){var e;E?k.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},z=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),j(e,!0))},I=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw _("Promise can't be resolved itself");(e=T(t))?m(function(){var n={_w:r,_d:!1};try{e.call(t,f(I,n,1),f(z,n,1))}catch(t){z.call(n,t)}}):(r._v=t,r._s=1,j(r,!1))}catch(t){z.call({_w:r,_d:!1},t)}}};C||(S=function(t){d(this,S,"Promise","_h"),p(t),n.call(this);try{t(f(I,this,1),f(z,this,1))}catch(t){z.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(62)(S.prototype,{then:function(t,e){var r=O(y(this,S));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=E?k.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&j(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=f(I,t,1),this.reject=f(z,t,1)},b.f=O=function(t){return t===S||t===a?new o(t):i(t)}),l(l.G+l.W+l.F*!C,{Promise:S}),r(27)(S,"Promise"),r(104)("Promise"),a=r(0).Promise,l(l.S+l.F*!C,"Promise",{reject:function(t){var e=O(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(u||!C),"Promise",{resolve:function(t){return w(u&&this===a?S:this,t)}}),l(l.S+l.F*!(C&&r(92)(function(t){S.all(t).catch(M)})),"Promise",{all:function(t){var e=this,r=O(e),n=r.resolve,i=r.reject,o=x(function(){var r=[],o=0,a=1;v(t,!1,function(t){var u=o++,s=!1;r.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,r[u]=t,--a||n(r))},i)}),--a||n(r)});return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=O(e),n=r.reject,i=x(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return i.e&&n(i.v),r.promise}})},function(t,e,r){"use strict";var n=r(84),i=r(67);t.exports=r(86)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(i(this,"Set"),t=0===t?0:t,t)}},n)},function(t,e,r){"use strict";var n=r(2),i=r(13),o=r(5),a=r(1),u=r(101),s=r(57).KEY,f=r(12),c=r(64),l=r(27),h=r(40),p=r(3),d=r(69),v=r(68),y=r(169),g=r(90),m=r(7),b=r(11),x=r(66),w=r(26),_=r(38),k=r(174),S=r(59),E=r(6),M=r(18),O=S.f,C=E.f,T=k.f,j=n.Symbol,P=n.JSON,A=P&&P.stringify,R=p("_hidden"),z=p("toPrimitive"),I={}.propertyIsEnumerable,L=c("symbol-registry"),N=c("symbols"),D=c("op-symbols"),F=Object.prototype,B="function"==typeof j,q=n.QObject,V=!q||!q.prototype||!q.prototype.findChild,U=o&&f(function(){return 7!=_(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=O(F,e);n&&delete F[e],C(t,e,r),n&&t!==F&&C(F,e,n)}:C,G=function(t){var e=N[t]=_(j.prototype);return e._k=t,e},H=B&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},J=function(t,e,r){return t===F&&J(D,e,r),m(t),e=x(e,!0),m(r),i(N,e)?(r.enumerable?(i(t,R)&&t[R][e]&&(t[R][e]=!1),r=_(r,{enumerable:w(0,!1)})):(i(t,R)||C(t,R,w(1,{})),t[R][e]=!0),U(t,e,r)):C(t,e,r)},W=function(t,e){m(t);for(var r,n=y(e=b(e)),i=0,o=n.length;o>i;)J(t,r=n[i++],e[r]);return t},X=function(t,e){return void 0===e?_(t):W(_(t),e)},Y=function(t){var e=I.call(this,t=x(t,!0));return!(this===F&&i(N,t)&&!i(D,t))&&(!(e||!i(this,t)||!i(N,t)||i(this,R)&&this[R][t])||e)},$=function(t,e){if(t=b(t),e=x(e,!0),t!==F||!i(N,e)||i(D,e)){var r=O(t,e);return!r||!i(N,e)||i(t,R)&&t[R][e]||(r.enumerable=!0),r}},K=function(t){for(var e,r=T(b(t)),n=[],o=0;r.length>o;)i(N,e=r[o++])||e==R||e==s||n.push(e);return n},Z=function(t){for(var e,r=t===F,n=T(r?D:b(t)),o=[],a=0;n.length>a;)!i(N,e=n[a++])||r&&!i(F,e)||o.push(N[e]);return o};B||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(r){this===F&&e.call(D,r),i(this,R)&&i(this[R],t)&&(this[R][t]=!1),U(this,t,w(1,r))};return o&&V&&U(F,t,{configurable:!0,set:e}),G(t)},u(j.prototype,"toString",function(){return this._k}),S.f=$,E.f=J,r(95).f=k.f=K,r(25).f=Y,r(60).f=Z,o&&!r(37)&&u(F,"propertyIsEnumerable",Y,!0),d.f=function(t){return G(p(t))}),a(a.G+a.W+a.F*!B,{Symbol:j});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Q.length>tt;)p(Q[tt++]);for(var et=M(p.store),rt=0;et.length>rt;)v(et[rt++]);a(a.S+a.F*!B,"Symbol",{for:function(t){return i(L,t+="")?L[t]:L[t]=j(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in L)if(L[e]===t)return e},useSetter:function(){V=!0},useSimple:function(){V=!1}}),a(a.S+a.F*!B,"Object",{create:X,defineProperty:J,defineProperties:W,getOwnPropertyDescriptor:$,getOwnPropertyNames:K,getOwnPropertySymbols:Z}),P&&a(a.S+a.F*(!B||f(function(){var t=j();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))})),"JSON",{stringify:function(t){if(void 0!==t&&!H(t)){for(var e,r,n=[t],i=1;arguments.length>i;)n.push(arguments[i++]);return e=n[1],"function"==typeof e&&(r=e),!r&&g(e)||(e=function(t,e){if(r&&(e=r.call(this,t,e)),!H(e))return e}),n[1]=e,A.apply(P,n)}}}),j.prototype[z]||r(10)(j.prototype,z,j.prototype.valueOf),l(j,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},function(t,e,r){r(102)("Map")},function(t,e,r){r(103)("Map")},function(t,e,r){var n=r(1);n(n.P+n.R,"Map",{toJSON:r(85)("Map")})},function(t,e,r){var n=r(1),i=r(98)(!0);n(n.S,"Object",{entries:function(t){return i(t)}})},function(t,e,r){var n=r(1),i=r(98)(!1);n(n.S,"Object",{values:function(t){return i(t)}})},function(t,e,r){"use strict";var n=r(1),i=r(0),o=r(2),a=r(105),u=r(100);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then(function(){return r})}:t,r?function(r){return u(e,t()).then(function(){throw r})}:t)}})},function(t,e,r){"use strict";var n=r(1),i=r(58),o=r(99);n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},function(t,e,r){r(102)("Set")},function(t,e,r){r(103)("Set")},function(t,e,r){var n=r(1);n(n.P+n.R,"Set",{toJSON:r(85)("Set")})},function(t,e,r){r(68)("asyncIterator")},function(t,e,r){r(68)("observable")},function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function n(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}t.exports=function(t){return null!=t&&(r(t)||n(t)||!!t._isBuffer)}},function(t,e,r){var n=function(){return this}()||Function("return this")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(210),i)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},function(t,e){!function(e){"use strict";function r(t,e,r,n){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),u=new p(n||[]);return a._invoke=f(t,r,u),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function u(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function s(t){function e(r,i,o,a){var u=n(t[r],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&m.call(f,"__await")?Promise.resolve(f.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(f).then(function(t){s.value=t,o(s)},a)}a(u.arg)}function r(t,r){function n(){return new Promise(function(n,i){e(t,r,n,i)})}return i=i?i.then(n,n):n()}var i;this._invoke=r}function f(t,e,r){var i=E;return function(o,a){if(i===O)throw new Error("Generator is already running");if(i===C){if("throw"===o)throw a;return v()}for(r.method=o,r.arg=a;;){var u=r.delegate;if(u){var s=c(u,r);if(s){if(s===T)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===E)throw i=C,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=O;var f=n(t,e,r);if("normal"===f.type){if(i=r.done?C:M,f.arg===T)continue;return{value:f.arg,done:r.done}}"throw"===f.type&&(i=C,r.method="throw",r.arg=f.arg)}}}function c(t,e){var r=t.iterator[e.method];if(r===y){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=y,c(t,e),"throw"===e.method))return T;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var i=n(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,T;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=y),e.delegate=null,T):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,T)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function d(t){if(t){var e=t[x];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(m.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=y,e.done=!0,e};return n.next=n}}return{next:v}}function v(){return{value:y,done:!0}}var y,g=Object.prototype,m=g.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},x=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",_=b.toStringTag||"@@toStringTag",k="object"==typeof t,S=e.regeneratorRuntime;if(S)return void(k&&(t.exports=S));S=e.regeneratorRuntime=k?t.exports:{},S.wrap=r;var E="suspendedStart",M="suspendedYield",O="executing",C="completed",T={},j={};j[x]=function(){return this};var P=Object.getPrototypeOf,A=P&&P(P(d([])));A&&A!==g&&m.call(A,x)&&(j=A);var R=a.prototype=i.prototype=Object.create(j);o.prototype=R.constructor=a,a.constructor=o,a[_]=o.displayName="GeneratorFunction",S.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},S.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,_ in t||(t[_]="GeneratorFunction")),t.prototype=Object.create(R),t},S.awrap=function(t){return{__await:t}},u(s.prototype),s.prototype[w]=function(){return this},S.AsyncIterator=s,S.async=function(t,e,n,i){var o=new s(r(t,e,n,i));return S.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},u(R),R[_]="Generator",R[x]=function(){return this},R.toString=function(){return"[object Generator]"},S.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},S.values=d,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&m.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=y)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return o.type="throw",o.arg=t,r.next=e,n&&(r.method="next",r.arg=y),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=m.call(i,"catchLoc"),u=m.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&m.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,T):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),T},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),h(r),T}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;h(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:d(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=y),T}}}(function(){return this}()||Function("return this")())}])});