Skip to content

Instantly share code, notes, and snippets.

@trusktr
Created July 5, 2016 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trusktr/e96d2a550e4e1762f76058f5e39b3738 to your computer and use it in GitHub Desktop.
Save trusktr/e96d2a550e4e1762f76058f5e39b3738 to your computer and use it in GitHub Desktop.
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.infamous=e():t.infamous=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){n(1),t.exports=n(292)},function(t,e,n){(function(t){"use strict";function e(t,e,n){t[e]||Object[r](t,e,{writable:!0,configurable:!0,value:n})}if(n(2),n(287),n(289),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var r="defineProperty";e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}).call(e,function(){return this}())},function(t,e,n){n(3),n(50),n(51),n(52),n(53),n(55),n(58),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(68),n(70),n(72),n(74),n(77),n(78),n(79),n(83),n(85),n(87),n(91),n(92),n(93),n(94),n(96),n(97),n(98),n(99),n(100),n(101),n(102),n(104),n(105),n(106),n(108),n(109),n(110),n(112),n(113),n(114),n(115),n(116),n(117),n(118),n(119),n(120),n(121),n(122),n(123),n(124),n(125),n(130),n(131),n(135),n(136),n(137),n(138),n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),n(153),n(154),n(155),n(156),n(158),n(159),n(165),n(166),n(168),n(169),n(170),n(173),n(174),n(175),n(176),n(177),n(179),n(180),n(181),n(182),n(185),n(187),n(188),n(189),n(191),n(193),n(195),n(196),n(197),n(199),n(200),n(201),n(202),n(208),n(211),n(212),n(214),n(215),n(218),n(219),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(242),n(243),n(244),n(245),n(246),n(247),n(249),n(250),n(251),n(252),n(253),n(254),n(256),n(257),n(259),n(260),n(261),n(262),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(285),n(286),t.exports=n(5)},function(t,e,n){"use strict";var r=n(4),i=n(5),o=n(6),s=n(7),u=n(9),a=n(18),c=n(22).KEY,f=n(8),l=n(23),h=n(24),p=n(19),d=n(25),v=n(26),y=n(39),m=n(42),g=n(12),_=n(29),b=n(16),w=n(17),O=n(43),x=n(46),S=n(48),M=n(11),k=S.f,P=M.f,E=x.f,j=r.Symbol,T=r.JSON,C=T&&T.stringify,I=!1,A="prototype",z=d("_hidden"),F=d("toPrimitive"),R={}.propertyIsEnumerable,L=l("symbol-registry"),N=l("symbols"),D=Object[A],G="function"==typeof j,B=r.QObject,H=s&&f(function(){return 7!=O(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=k(D,e);r&&delete D[e],P(t,e,n),r&&t!==D&&P(D,e,r)}:P,W=function(t){var e=N[t]=O(j[A]);return e._k=t,s&&I&&H(D,t,{configurable:!0,set:function(e){o(this,z)&&o(this[z],t)&&(this[z][t]=!1),H(this,t,w(1,e))}}),e},V=G&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},U=function(t,e,n){return g(t),e=b(e,!0),g(n),o(N,e)?(n.enumerable?(o(t,z)&&t[z][e]&&(t[z][e]=!1),n=O(n,{enumerable:w(0,!1)})):(o(t,z)||P(t,z,w(1,{})),t[z][e]=!0),H(t,e,n)):P(t,e,n)},Y=function(t,e){g(t);for(var n,r=y(e=_(e)),i=0,o=r.length;o>i;)U(t,n=r[i++],e[n]);return t},X=function(t,e){return void 0===e?O(t):Y(O(t),e)},Q=function(t){var e=R.call(this,t=b(t,!0));return e||!o(this,t)||!o(N,t)||o(this,z)&&this[z][t]?e:!0},q=function(t,e){var n=k(t=_(t),e=b(e,!0));return!n||!o(N,e)||o(t,z)&&t[z][e]||(n.enumerable=!0),n},J=function(t){for(var e,n=E(_(t)),r=[],i=0;n.length>i;)o(N,e=n[i++])||e==z||e==c||r.push(e);return r},Z=function(t){for(var e,n=E(_(t)),r=[],i=0;n.length>i;)o(N,e=n[i++])&&r.push(N[e]);return r},K=function(t){if(void 0!==t&&!V(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return e=r[1],"function"==typeof e&&(n=e),(n||!m(e))&&(e=function(t,e){return n&&(e=n.call(this,t,e)),V(e)?void 0:e}),r[1]=e,C.apply(T,r)}},$=f(function(){var t=j();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))});G||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");return W(p(arguments.length>0?arguments[0]:void 0))},a(j[A],"toString",function(){return this._k}),S.f=q,M.f=U,n(47).f=x.f=J,n(41).f=Q,n(40).f=Z,s&&!n(49)&&a(D,"propertyIsEnumerable",Q,!0)),u(u.G+u.W+u.F*!G,{Symbol:j});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;){var nt=tt[et++],rt=i.Symbol,it=d(nt);nt in rt||P(rt,nt,{value:G?it:W(it)})}B&&B[A]&&B[A].findChild||(I=!0),u(u.S+u.F*!G,"Symbol",{"for":function(t){return o(L,t+="")?L[t]:L[t]=j(t)},keyFor:function(t){if(V(t))return v(L,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){I=!0},useSimple:function(){I=!1}}),u(u.S+u.F*!G,"Object",{create:X,defineProperty:U,defineProperties:Y,getOwnPropertyDescriptor:q,getOwnPropertyNames:J,getOwnPropertySymbols:Z}),T&&u(u.S+u.F*(!G||$),"JSON",{stringify:K}),j[A][F]||n(10)(j[A],F,j[A].valueOf),h(j,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.2.2"};"number"==typeof __e&&(__e=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=!n(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){var r=n(4),i=n(5),o=n(10),s=n(18),u=n(20),a="prototype",c=function(t,e,n){var f,l,h,p,d=t&c.F,v=t&c.G,y=t&c.S,m=t&c.P,g=t&c.B,_=v?r:y?r[e]||(r[e]={}):(r[e]||{})[a],b=v?i:i[e]||(i[e]={}),w=b[a]||(b[a]={});v&&(n=e);for(f in n)l=!d&&_&&void 0!==_[f],h=(l?_:n)[f],p=g&&l?u(h,r):m&&"function"==typeof h?u(Function.call,h):h,_&&s(_,f,h,t&c.U),b[f]!=h&&o(b,f,p),m&&w[f]!=h&&(w[f]=h)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(11),i=n(17);t.exports=n(7)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(12),i=n(14),o=n(16),s=Object.defineProperty;e.f=n(7)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(13);t.exports=function(t){if(!r(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,n){t.exports=!n(7)&&!n(8)(function(){return 7!=Object.defineProperty(n(15)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(13),i=n(4).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(13);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(4),i=n(10),o=n(6),s=n(19)("src"),u="toString",a=Function[u],c=(""+a).split(u);n(5).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,u){var a="function"==typeof n;a&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(a&&(o(n,s)||i(n,s,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,u,function(){return"function"==typeof this&&this[s]||a.call(this)})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){var r=n(21);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(19)("meta"),i=n(13),o=n(6),s=n(11).f,u=0,a=Object.isExtensible||function(){return!0},c=!n(8)(function(){return a(Object.preventExtensions({}))}),f=function(t){s(t,r,{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,r)){if(!a(t))return"F";if(!e)return"E";f(t)}return t[r].i},h=function(t,e){if(!o(t,r)){if(!a(t))return!0;if(!e)return!1;f(t)}return t[r].w},p=function(t){return c&&d.NEED&&a(t)&&!o(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:p}},function(t,e,n){var r=n(4),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){var r=n(11).f,i=n(6),o=n(25)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(23)("wks"),i=n(19),o=n(4).Symbol,s="function"==typeof o;t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}},function(t,e,n){var r=n(27),i=n(29);t.exports=function(t,e){for(var n,o=i(t),s=r(o),u=s.length,a=0;u>a;)if(o[n=s[a++]]===e)return n}},function(t,e,n){var r=n(28),i=n(38);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(6),i=n(29),o=n(33)(!1),s=n(37)("IE_PROTO");t.exports=function(t,e){var n,u=i(t),a=0,c=[];for(n in u)n!=s&&r(u,n)&&c.push(n);for(;e.length>a;)r(u,n=e[a++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(30),i=n(32);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(31);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(29),i=n(34),o=n(36);t.exports=function(t){return function(e,n,s){var u,a=r(e),c=i(a.length),f=o(s,c);if(t&&n!=n){for(;c>f;)if(u=a[f++],u!=u)return!0}else for(;c>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(35),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(35),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),0>t?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(23)("keys"),i=n(19);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(27),i=n(40),o=n(41);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,u=n(t),a=o.f,c=0;u.length>c;)a.call(t,s=u[c++])&&e.push(s);return e}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(31);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(12),i=n(44),o=n(38),s=n(37)("IE_PROTO"),u=function(){},a="prototype",c=function(){var t,e=n(15)("iframe"),r=o.length,i=">";for(e.style.display="none",n(45).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object</script"+i),t.close(),c=t.F;r--;)delete c[a][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[a]=r(t),n=new u,u[a]=null,n[s]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(11),i=n(12),o=n(27);t.exports=n(7)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),u=s.length,a=0;u>a;)r.f(t,n=s[a++],e[n]);return t}},function(t,e,n){t.exports=n(4).document&&document.documentElement},function(t,e,n){var r=n(29),i=n(47).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(e){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?u(t):i(r(t))}},function(t,e,n){var r=n(28),i=n(38).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){var r=n(41),i=n(17),o=n(29),s=n(16),u=n(6),a=n(14),c=Object.getOwnPropertyDescriptor;e.f=n(7)?c:function(t,e){if(t=o(t),e=s(e,!0),a)try{return c(t,e)}catch(n){}return u(t,e)?i(!r.f.call(t,e),t[e]):void 0}},function(t,e){t.exports=!1},function(t,e,n){var r=n(9);r(r.S,"Object",{create:n(43)})},function(t,e,n){var r=n(9);r(r.S+r.F*!n(7),"Object",{defineProperty:n(11).f})},function(t,e,n){var r=n(9);r(r.S+r.F*!n(7),"Object",{defineProperties:n(44)})},function(t,e,n){var r=n(29),i=n(48).f;n(54)("getOwnPropertyDescriptor",function(){return function(t,e){return i(r(t),e)}})},function(t,e,n){var r=n(9),i=n(5),o=n(8);t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],s={};s[t]=e(n),r(r.S+r.F*o(function(){n(1)}),"Object",s)}},function(t,e,n){var r=n(56),i=n(57);n(54)("getPrototypeOf",function(){return function(t){return i(r(t))}})},function(t,e,n){var r=n(32);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(6),i=n(56),o=n(37)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(56),i=n(27);n(54)("keys",function(){return function(t){return i(r(t))}})},function(t,e,n){n(54)("getOwnPropertyNames",function(){return n(46).f})},function(t,e,n){var r=n(13),i=n(22).onFreeze;n(54)("freeze",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(13),i=n(22).onFreeze;n(54)("seal",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(13),i=n(22).onFreeze;n(54)("preventExtensions",function(t){return function(e){return t&&r(e)?t(i(e)):e}})},function(t,e,n){var r=n(13);n(54)("isFrozen",function(t){return function(e){return r(e)?t?t(e):!1:!0}})},function(t,e,n){var r=n(13);n(54)("isSealed",function(t){return function(e){return r(e)?t?t(e):!1:!0}})},function(t,e,n){var r=n(13);n(54)("isExtensible",function(t){return function(e){return r(e)?t?t(e):!0:!1}})},function(t,e,n){var r=n(9);r(r.S+r.F,"Object",{assign:n(67)})},function(t,e,n){"use strict";var r=n(27),i=n(40),o=n(41),s=n(56),u=n(30),a=Object.assign;t.exports=!a||n(8)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=a({},t)[n]||Object.keys(a({},e)).join("")!=r})?function(t,e){for(var n=s(t),a=arguments.length,c=1,f=i.f,l=o.f;a>c;)for(var h,p=u(arguments[c++]),d=f?r(p).concat(f(p)):r(p),v=d.length,y=0;v>y;)l.call(p,h=d[y++])&&(n[h]=p[h]);return n}:a},function(t,e,n){var r=n(9);r(r.S,"Object",{is:n(69)})},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,n){var r=n(9);r(r.S,"Object",{setPrototypeOf:n(71).set})},function(t,e,n){var r=n(13),i=n(12),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(20)(Function.call,n(48).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){"use strict";var r=n(73),i={};i[n(25)("toStringTag")]="z",i+""!="[object z]"&&n(18)(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},function(t,e,n){var r=n(31),i=n(25)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var r=n(9);r(r.P,"Function",{bind:n(75)})},function(t,e,n){"use strict";var r=n(21),i=n(13),o=n(76),s=[].slice,u={},a=function(t,e,n){if(!(e in u)){for(var r=[],i=0;e>i;i++)r[i]="a["+i+"]";u[e]=Function("F,a","return new F("+r.join(",")+")")}return u[e](t,n)};t.exports=Function.bind||function(t){var e=r(this),n=s.call(arguments,1),u=function(){var r=n.concat(s.call(arguments));return this instanceof u?a(e,r.length,r):o(e,r,t)};return i(e.prototype)&&(u.prototype=e.prototype),u}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(11).f,i=n(17),o=n(6),s=Function.prototype,u=/^\s*function ([^ (]*)/,a="name";a in s||n(7)&&r(s,a,{configurable:!0,get:function(){var t=(""+this).match(u),e=t?t[1]:"";return o(this,a)||r(this,a,i(5,e)),e}})},function(t,e,n){"use strict";var r=n(13),i=n(57),o=n(25)("hasInstance"),s=Function.prototype;o in s||n(11).f(s,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var r=n(9),i=n(80);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,e,n){var r=n(4).parseInt,i=n(81).trim,o=n(82),s=/^[\-+]?0[xX]/;t.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(t,e){var n=i(String(t),3);return r(n,e>>>0||(s.test(n)?16:10))}:r},function(t,e,n){var r=n(9),i=n(32),o=n(8),s=n(82),u="["+s+"]",a="​…",c=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),l=function(t,e,n){var i={},u=o(function(){return!!s[t]()||a[t]()!=a}),c=i[t]=u?e(h):s[t];n&&(i[n]=c),r(r.P+r.F*u,"String",i)},h=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},function(t,e){t.exports=" \n\x0B\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var r=n(9),i=n(84);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,e,n){var r=n(4).parseFloat,i=n(81).trim;t.exports=1/r(n(82)+"-0")!==-(1/0)?function(t){var e=i(String(t),3),n=r(e);return 0===n&&"-"==e.charAt(0)?-0:n}:r},function(t,e,n){"use strict";var r=n(4),i=n(6),o=n(31),s=n(86),u=n(16),a=n(8),c=n(47).f,f=n(48).f,l=n(11).f,h=n(81).trim,p="Number",d=r[p],v=d,y=d.prototype,m=o(n(43)(y))==p,g="trim"in String.prototype,_=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){e=g?e.trim():h(e,3);var n,r,i,o=e.charCodeAt(0);if(43===o||45===o){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+e}for(var s,a=e.slice(2),c=0,f=a.length;f>c;c++)if(s=a.charCodeAt(c),48>s||s>i)return NaN;return parseInt(a,r)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(m?a(function(){y.valueOf.call(n)}):o(n)!=p)?s(new v(_(e)),n,d):_(e)};for(var b,w=n(7)?c(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;w.length>O;O++)i(v,b=w[O])&&!i(d,b)&&l(d,b,f(v,b));d.prototype=y,y.constructor=d,n(18)(r,p,d)}},function(t,e,n){var r=n(13),i=n(71).set;t.exports=function(t,e,n){var o,s=e.constructor;return s!==n&&"function"==typeof s&&(o=s.prototype)!==n.prototype&&r(o)&&i&&i(t,o),t}},function(t,e,n){"use strict";var r=n(9),i=(n(88),n(35)),o=n(89),s=n(90),u=1..toFixed,a=Math.floor,c=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l="0",h=function(t,e){for(var n=-1,r=e;++n<6;)r+=t*c[n],c[n]=r%1e7,r=a(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=a(n/t),n=n%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+s.call(l,7-n.length)+n}return e},v=function(t,e,n){return 0===e?n:e%2===1?v(t,e-1,n*t):v(t*t,e/2,n)},y=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e};r(r.P+r.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0))||!n(8)(function(){u.call({})})),"Number",{toFixed:function(t){var e,n,r,u,a=o(this,f),c=i(t),m="",g=l;if(0>c||c>20)throw RangeError(f);if(a!=a)return"NaN";if(-1e21>=a||a>=1e21)return String(a);if(0>a&&(m="-",a=-a),a>1e-21)if(e=y(a*v(2,69,1))-69,n=0>e?a*v(2,-e,1):a/v(2,e,1),n*=4503599627370496,e=52-e,e>0){for(h(0,n),r=c;r>=7;)h(1e7,0),r-=7;for(h(v(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<<r),h(1,1),p(2),g=d()}else h(0,n),h(1<<-e,0),g=d()+s.call(l,c);return c>0?(u=g.length,g=m+(c>=u?"0."+s.call(l,c-u)+g:g.slice(0,u-c)+"."+g.slice(u-c))):g=m+g,g}})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(31);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(e);return+t}},function(t,e,n){"use strict";var r=n(35),i=n(32);t.exports=function(t){var e=String(i(this)),n="",o=r(t);if(0>o||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e,n){"use strict";var r=n(9),i=n(8),o=n(89),s=1..toPrecision;r(r.P+r.F*(i(function(){return"1"!==s.call(1,void 0)})||!i(function(){s.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},function(t,e,n){var r=n(9);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var r=n(9),i=n(4).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,e,n){var r=n(9);r(r.S,"Number",{isInteger:n(95)})},function(t,e,n){var r=n(13),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,e,n){var r=n(9);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var r=n(9),i=n(95),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,n){var r=n(9);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var r=n(9);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var r=n(9),i=n(84);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,e,n){var r=n(9),i=n(80);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,e,n){var r=n(9),i=n(103),o=Math.sqrt,s=Math.acosh;r(r.S+r.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&1e-8>t?t-t*t/2:Math.log(1+t)}},function(t,e,n){function r(t){return isFinite(t=+t)&&0!=t?0>t?-r(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=n(9),o=Math.asinh;i(i.S+i.F*!(o&&1/o(0)>0),"Math",{asinh:r})},function(t,e,n){var r=n(9),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var r=n(9),i=n(107);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:0>t?-1:1}},function(t,e,n){var r=n(9);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var r=n(9),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,e,n){var r=n(9),i=n(111);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&1e-6>t?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var r=n(9),i=n(107),o=Math.pow,s=o(2,-52),u=o(2,-23),a=o(2,127)*(2-u),c=o(2,-126),f=function(t){return t+1/s-1/s};r(r.S,"Math",{fround:function(t){var e,n,r=Math.abs(t),o=i(t);return c>r?o*f(r/c/u)*c*u:(e=(1+u/s)*r,n=e-(e-r),n>a||n!=n?o*(1/0):o*n)}})},function(t,e,n){var r=n(9),i=Math.abs;r(r.S,"Math",{hypot:function(t,e){for(var n,r,o=0,s=0,u=arguments.length,a=0;u>s;)n=i(arguments[s++]),n>a?(r=a/n,o=o*r*r+1,a=n):n>0?(r=n/a,o+=r*r):o+=n;return a===1/0?1/0:a*Math.sqrt(o)}})},function(t,e,n){var r=n(9),i=Math.imul;r(r.S+r.F*n(8)(function(){return-5!=i(4294967295,5)||2!=i.length}),"Math",{imul:function(t,e){var n=65535,r=+t,i=+e,o=n&r,s=n&i;return 0|o*s+((n&r>>>16)*s+o*(n&i>>>16)<<16>>>0)}})},function(t,e,n){var r=n(9);r(r.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},function(t,e,n){var r=n(9);r(r.S,"Math",{log1p:n(103)})},function(t,e,n){var r=n(9);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var r=n(9);r(r.S,"Math",{sign:n(107)})},function(t,e,n){var r=n(9),i=n(111),o=Math.exp;r(r.S+r.F*n(8)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var r=n(9),i=n(111),o=Math.exp;r(r.S,"Math",{tanh:function(t){var e=i(t=+t),n=i(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var r=n(9);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var r=n(9),i=n(36),o=String.fromCharCode,s=String.fromCodePoint;r(r.S+r.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,n=[],r=arguments.length,s=0;r>s;){if(e=+arguments[s++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(65536>e?o(e):o(((e-=65536)>>10)+55296,e%1024+56320))}return n.join("")}})},function(t,e,n){var r=n(9),i=n(29),o=n(34);r(r.S,"String",{raw:function(t){for(var e=i(t.raw),n=o(e.length),r=arguments.length,s=[],u=0;n>u;)s.push(String(e[u++])),r>u&&s.push(String(arguments[u]));return s.join("")}})},function(t,e,n){"use strict";n(81)("trim",function(t){return function(){return t(this,3)}})},function(t,e,n){"use strict";var r=n(126)(!0);n(127)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(35),i=n(32);t.exports=function(t){return function(e,n){var o,s,u=String(i(e)),a=r(n),c=u.length;return 0>a||a>=c?t?"":void 0:(o=u.charCodeAt(a),55296>o||o>56319||a+1===c||(s=u.charCodeAt(a+1))<56320||s>57343?t?u.charAt(a):o:t?u.slice(a,a+2):(o-55296<<10)+(s-56320)+65536)}}},function(t,e,n){"use strict";var r=n(49),i=n(9),o=n(18),s=n(10),u=n(6),a=n(128),c=n(129),f=n(24),l=n(57),h=n(25)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",y="values",m=function(){return this};t.exports=function(t,e,n,g,_,b,w){c(n,e,g);var O,x,S,M=function(t){if(!p&&t in j)return j[t];switch(t){case v:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",P=_==y,E=!1,j=t.prototype,T=j[h]||j[d]||_&&j[_],C=T||M(_),I=_?P?M("entries"):C:void 0,A="Array"==e?j.entries||T:T;if(A&&(S=l(A.call(new t)),S!==Object.prototype&&(f(S,k,!0),r||u(S,h)||s(S,h,m))),P&&T&&T.name!==y&&(E=!0,C=function(){return T.call(this)}),r&&!w||!p&&!E&&j[h]||s(j,h,C),a[e]=C,a[k]=m,_)if(O={values:P?C:M(y),keys:b?C:M(v),entries:I},w)for(x in O)x in j||o(j,x,O[x]);else i(i.P+i.F*(p||E),e,O);return O}},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(43),i=n(17),o=n(24),s={};n(10)(s,n(25)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){"use strict";var r=n(9),i=n(126)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(9),i=n(34),o=n(132),s="endsWith",u=""[s];r(r.P+r.F*n(134)(s),"String",{endsWith:function(t){var e=o(this,t,s),n=arguments.length>1?arguments[1]:void 0,r=i(e.length),a=void 0===n?r:Math.min(i(n),r),c=String(t);return u?u.call(e,c,a):e.slice(a-c.length,a)===c}})},function(t,e,n){var r=n(133),i=n(32);t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},function(t,e,n){var r=n(13),i=n(31),o=n(25)("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,n){var r=n(25)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(i){}}return!0}},function(t,e,n){"use strict";var r=n(9),i=n(132),o="includes";r(r.P+r.F*n(134)(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var r=n(9);r(r.P,"String",{repeat:n(90)})},function(t,e,n){"use strict";var r=n(9),i=n(34),o=n(132),s="startsWith",u=""[s];r(r.P+r.F*n(134)(s),"String",{startsWith:function(t){var e=o(this,t,s),n=i(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return u?u.call(e,r,n):e.slice(n,n+r.length)===r}})},function(t,e,n){"use strict";n(139)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){var r=n(9),i=n(8),o=n(32),s=/"/g,u=function(t,e,n,r){var i=String(o(t)),u="<"+e;return""!==n&&(u+=" "+n+'="'+String(r).replace(s,"&quot;")+'"'),u+">"+i+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(u),r(r.P+r.F*i(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){"use strict";n(139)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(139)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(139)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(139)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(139)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(139)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(139)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(139)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(139)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(139)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(139)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(139)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var r=n(9);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var r=n(9),i=n(56),o=n(16);r(r.P+r.F*n(8)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=i(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){"use strict";var r=n(9),i=n(8),o=Date.prototype.getTime,s=function(t){return t>9?t:"0"+t};r(r.P+r.F*(i(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!i(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(o.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=0>e?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+s(t.getUTCMonth()+1)+"-"+s(t.getUTCDate())+"T"+s(t.getUTCHours())+":"+s(t.getUTCMinutes())+":"+s(t.getUTCSeconds())+"."+(n>99?n:"0"+s(n))+"Z";
}})},function(t,e,n){var r=Date.prototype,i="Invalid Date",o="toString",s=r[o],u=r.getTime;new Date(NaN)+""!=i&&n(18)(r,o,function(){var t=u.call(this);return t===t?s.call(this):i})},function(t,e,n){var r=n(25)("toPrimitive"),i=Date.prototype;r in i||n(10)(i,r,n(157))},function(t,e,n){"use strict";var r=n(12),i=n(16),o="number";t.exports=function(t){if("string"!==t&&t!==o&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),t!=o)}},function(t,e,n){var r=n(9);r(r.S,"Array",{isArray:n(42)})},function(t,e,n){"use strict";var r=n(20),i=n(9),o=n(56),s=n(160),u=n(161),a=n(34),c=n(162),f=n(163);i(i.S+i.F*!n(164)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,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,m=0,g=f(h);if(y&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==g||p==Array&&u(g))for(e=a(h.length),n=new p(e);e>m;m++)c(n,m,y?v(h[m],m):h[m]);else for(l=g.call(h),n=new p;!(i=l.next()).done;m++)c(n,m,y?s(l,v,[i.value,m],!0):i.value);return n.length=m,n}})},function(t,e,n){var r=n(12);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(o){var s=t["return"];throw void 0!==s&&r(s.call(t)),o}}},function(t,e,n){var r=n(128),i=n(25)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){"use strict";var r=n(11),i=n(17);t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},function(t,e,n){var r=n(73),i=n(25)("iterator"),o=n(128);t.exports=n(5).getIteratorMethod=function(t){return void 0!=t?t[i]||t["@@iterator"]||o[r(t)]:void 0}},function(t,e,n){var r=n(25)("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(s){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(u){}return n}},function(t,e,n){"use strict";var r=n(9),i=n(162);r(r.S+r.F*n(8)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)i(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var r=n(9),i=n(29),o=[].join;r(r.P+r.F*(n(30)!=Object||!n(167)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,e,n){var r=n(8);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){"use strict";var r=n(9),i=n(45),o=n(31),s=n(36),u=n(34),a=[].slice;r(r.P+r.F*n(8)(function(){i&&a.call(i)}),"Array",{slice:function(t,e){var n=u(this.length),r=o(this);if(e=void 0===e?n:e,"Array"==r)return a.call(this,t,e);for(var i=s(t,n),c=s(e,n),f=u(c-i),l=Array(f),h=0;f>h;h++)l[h]="String"==r?this.charAt(i+h):this[i+h];return l}})},function(t,e,n){"use strict";var r=n(9),i=n(21),o=n(56),s=n(8),u=[].sort,a=[1,2,3];r(r.P+r.F*(s(function(){a.sort(void 0)})||!s(function(){a.sort(null)})||!n(167)(u)),"Array",{sort:function(t){return void 0===t?u.call(o(this)):u.call(o(this),i(t))}})},function(t,e,n){"use strict";var r=n(9),i=n(171)(0),o=n(167)([].forEach,!0);r(r.P+r.F*!o,"Array",{forEach:function(t){return i(this,t,arguments[1])}})},function(t,e,n){var r=n(20),i=n(30),o=n(56),s=n(34),u=n(172);t.exports=function(t,e){var n=1==t,a=2==t,c=3==t,f=4==t,l=6==t,h=5==t||l,p=e||u;return function(e,u,d){for(var v,y,m=o(e),g=i(m),_=r(u,d,3),b=s(g.length),w=0,O=n?p(e,b):a?p(e,0):void 0;b>w;w++)if((h||w in g)&&(v=g[w],y=_(v,w,m),t))if(n)O[w]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:O.push(v)}else if(f)return!1;return l?-1:c||f?f:O}}},function(t,e,n){var r=n(13),i=n(42),o=n(25)("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&(n=n[o],null===n&&(n=void 0))),new(void 0===n?Array:n)(e)}},function(t,e,n){"use strict";var r=n(9),i=n(171)(1);r(r.P+r.F*!n(167)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(9),i=n(171)(2);r(r.P+r.F*!n(167)([].filter,!0),"Array",{filter:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(9),i=n(171)(3);r(r.P+r.F*!n(167)([].some,!0),"Array",{some:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(9),i=n(171)(4);r(r.P+r.F*!n(167)([].every,!0),"Array",{every:function(t){return i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(9),i=n(178);r(r.P+r.F*!n(167)([].reduce,!0),"Array",{reduce:function(t){return i(this,t,arguments.length,arguments[1],!1)}})},function(t,e,n){var r=n(21),i=n(56),o=n(30),s=n(34);t.exports=function(t,e,n,u,a){r(e);var c=i(t),f=o(c),l=s(c.length),h=a?l-1:0,p=a?-1:1;if(2>n)for(;;){if(h in f){u=f[h],h+=p;break}if(h+=p,a?0>h:h>=l)throw TypeError("Reduce of empty array with no initial value")}for(;a?h>=0:l>h;h+=p)h in f&&(u=e(u,f[h],h,c));return u}},function(t,e,n){"use strict";var r=n(9),i=n(178);r(r.P+r.F*!n(167)([].reduceRight,!0),"Array",{reduceRight:function(t){return i(this,t,arguments.length,arguments[1],!0)}})},function(t,e,n){"use strict";var r=n(9),i=n(33)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(s||!n(167)(o)),"Array",{indexOf:function(t){return s?o.apply(this,arguments)||0:i(this,t,arguments[1])}})},function(t,e,n){"use strict";var r=n(9),i=n(29),o=n(35),s=n(34),u=[].lastIndexOf,a=!!u&&1/[1].lastIndexOf(1,-0)<0;r(r.P+r.F*(a||!n(167)(u)),"Array",{lastIndexOf:function(t){if(a)return u.apply(this,arguments)||0;var e=i(this),n=s(e.length),r=n-1;for(arguments.length>1&&(r=Math.min(r,o(arguments[1]))),0>r&&(r=n+r);r>=0;r--)if(r in e&&e[r]===t)return r||0;return-1}})},function(t,e,n){var r=n(9);r(r.P,"Array",{copyWithin:n(183)}),n(184)("copyWithin")},function(t,e,n){"use strict";var r=n(56),i=n(36),o=n(34);t.exports=[].copyWithin||function(t,e){var n=r(this),s=o(n.length),u=i(t,s),a=i(e,s),c=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===c?s:i(c,s))-a,s-u),l=1;for(u>a&&a+f>u&&(l=-1,a+=f-1,u+=f-1);f-- >0;)a in n?n[u]=n[a]:delete n[u],u+=l,a+=l;return n}},function(t,e,n){var r=n(25)("unscopables"),i=Array.prototype;void 0==i[r]&&n(10)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,e,n){var r=n(9);r(r.P,"Array",{fill:n(186)}),n(184)("fill")},function(t,e,n){"use strict";var r=n(56),i=n(36),o=n(34);t.exports=function(t){for(var e=r(this),n=o(e.length),s=arguments.length,u=i(s>1?arguments[1]:void 0,n),a=s>2?arguments[2]:void 0,c=void 0===a?n:i(a,n);c>u;)e[u++]=t;return e}},function(t,e,n){"use strict";var r=n(9),i=n(171)(5),o="find",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(184)(o)},function(t,e,n){"use strict";var r=n(9),i=n(171)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r(r.P+r.F*s,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(184)(o)},function(t,e,n){n(190)("Array")},function(t,e,n){"use strict";var r=n(4),i=n(11),o=n(7),s=n(25)("species");t.exports=function(t){var e=r[t];o&&e&&!e[s]&&i.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,n){"use strict";var r=n(184),i=n(192),o=n(128),s=n(29);t.exports=n(127)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){var r=n(4),i=n(86),o=n(11).f,s=n(47).f,u=n(133),a=n(194),c=r.RegExp,f=c,l=c.prototype,h=/a/g,p=/a/g,d=new c(h)!==h;if(n(7)&&(!d||n(8)(function(){return p[n(25)("match")]=!1,c(h)!=h||c(p)==p||"/a/i"!=c(h,"i")}))){c=function(t,e){var n=this instanceof c,r=u(t),o=void 0===e;return!n&&r&&t.constructor===c&&o?t:i(d?new f(r&&!o?t.source:t,e):f((r=t instanceof c)?t.source:t,r&&o?a.call(t):e),n?this:l,c)};for(var v=(function(t){t in c||o(c,t,{configurable:!0,get:function(){return f[t]},set:function(e){f[t]=e}})}),y=s(f),m=0;y.length>m;)v(y[m++]);l.constructor=c,c.prototype=l,n(18)(r,"RegExp",c)}n(190)("RegExp")},function(t,e,n){"use strict";var r=n(12);t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";n(196);var r=n(12),i=n(194),o=n(7),s="toString",u=/./[s],a=function(t){n(18)(RegExp.prototype,s,t,!0)};n(8)(function(){return"/a/b"!=u.call({source:"a",flags:"b"})})?a(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)}):u.name!=s&&a(function(){return u.call(this)})},function(t,e,n){n(7)&&"g"!=/./g.flags&&n(11).f(RegExp.prototype,"flags",{configurable:!0,get:n(194)})},function(t,e,n){n(198)("match",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){"use strict";var r=n(10),i=n(18),o=n(8),s=n(32),u=n(25);t.exports=function(t,e,n){var a=u(t),c=n(s,a,""[t]),f=c[0],l=c[1];o(function(){var e={};return e[a]=function(){return 7},7!=""[t](e)})&&(i(String.prototype,t,f),r(RegExp.prototype,a,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},function(t,e,n){n(198)("replace",2,function(t,e,n){return[function(r,i){"use strict";var o=t(this),s=void 0==r?void 0:r[e];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},n]})},function(t,e,n){n(198)("search",1,function(t,e,n){return[function(n){"use strict";var r=t(this),i=void 0==n?void 0:n[e];return void 0!==i?i.call(n,r):new RegExp(n)[e](String(r))},n]})},function(t,e,n){n(198)("split",2,function(t,e,r){"use strict";var i=n(133),o=r,s=[].push,u="split",a="length",c="lastIndex";if("c"=="abbc"[u](/(b)*/)[1]||4!="test"[u](/(?:)/,-1)[a]||2!="ab"[u](/(?:ab)*/)[a]||4!="."[u](/(.?)(.?)/)[a]||"."[u](/()()/)[a]>1||""[u](/.?/)[a]){var f=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return o.call(n,t,e);var r,u,l,h,p,d=[],v=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),y=0,m=void 0===e?4294967295:e>>>0,g=new RegExp(t.source,v+"g");for(f||(r=new RegExp("^"+g.source+"$(?!\\s)",v));(u=g.exec(n))&&(l=u.index+u[0][a],!(l>y&&(d.push(n.slice(y,u.index)),!f&&u[a]>1&&u[0].replace(r,function(){for(p=1;p<arguments[a]-2;p++)void 0===arguments[p]&&(u[p]=void 0)}),u[a]>1&&u.index<n[a]&&s.apply(d,u.slice(1)),h=u[0][a],y=l,d[a]>=m)));)g[c]===u.index&&g[c]++;return y===n[a]?(h||!g.test(""))&&d.push(""):d.push(n.slice(y)),d[a]>m?d.slice(0,m):d}}else"0"[u](void 0,0)[a]&&(r=function(t,e){return void 0===t&&0===e?[]:o.call(this,t,e)});return[function(n,i){var o=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},r]})},function(t,e,n){"use strict";var r,i,o,s=n(49),u=n(4),a=n(20),c=n(73),f=n(9),l=n(13),h=(n(12),n(21)),p=n(88),d=n(203),v=(n(71).set,n(204)),y=n(205).set,m=n(206),g="Promise",_=u.TypeError,b=u.process,w=u[g],b=u.process,O="process"==c(b),x=function(){},S=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[n(25)("species")]=function(t){t(x,x)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(x)instanceof e}catch(r){}}(),M=function(t,e){return t===e||t===w&&e===o},k=function(t){var e;return l(t)&&"function"==typeof(e=t.then)?e:!1},P=function(t){return M(w,t)?new E(t):new i(t)},E=i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw _("Bad Promise constructor");e=t,n=r}),this.resolve=h(e),this.reject=h(n)},j=function(t){try{t()}catch(e){return{error:e}}},T=function(t,e){if(!t._n){t._n=!0;var n=t._c;m(function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s=i?e.ok:e.fail,u=e.resolve,a=e.reject,c=e.domain;try{s?(i||(2==t._h&&A(t),t._h=1),s===!0?n=r:(c&&c.enter(),n=s(r),c&&c.exit()),n===e.promise?a(_("Promise-chain cycle")):(o=k(n))?o.call(n,u,a):u(n)):a(r)}catch(f){a(f)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&C(t)})}},C=function(t){y.call(u,function(){var e,n,r,i=t._v;if(I(t)&&(e=j(function(){O?b.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=O||I(t)?2:1),t._a=void 0,e)throw e.error})},I=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!I(e.promise))return!1;return!0},A=function(t){y.call(u,function(){var e;O?b.emit("rejectionHandled",t):(e=u.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()),T(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw _("Promise can't be resolved itself");(e=k(t))?m(function(){var r={_w:n,_d:!1};try{e.call(t,a(F,r,1),a(z,r,1))}catch(i){z.call(r,i)}}):(n._v=t,n._s=1,T(n,!1))}catch(r){z.call({_w:n,_d:!1},r)}}};S||(w=function(t){p(this,w,g,"_h"),h(t),r.call(this);try{t(a(F,this,1),a(z,this,1))}catch(e){z.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(207)(w.prototype,{then:function(t,e){var n=P(v(this,w));return n.ok="function"==typeof t?t:!0,n.fail="function"==typeof e&&e,n.domain=O?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&T(this,!1),n.promise},"catch":function(t){return this.then(void 0,t)}}),E=function(){var t=new r;this.promise=t,this.resolve=a(F,t,1),this.reject=a(z,t,1)}),f(f.G+f.W+f.F*!S,{Promise:w}),n(24)(w,g),n(190)(g),o=n(5)[g],f(f.S+f.F*!S,g,{reject:function(t){var e=P(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(s||!S),g,{resolve:function(t){if(t instanceof w&&M(t.constructor,this))return t;var e=P(this),n=e.resolve;return n(t),e.promise}}),f(f.S+f.F*!(S&&n(164)(function(t){w.all(t)["catch"](x)})),g,{all:function(t){var e=this,n=P(e),r=n.resolve,i=n.reject,o=j(function(){var n=[],o=0,s=1;d(t,!1,function(t){var u=o++,a=!1;n.push(void 0),s++,e.resolve(t).then(function(t){a||(a=!0,n[u]=t,--s||r(n))},i)}),--s||r(n)});return o&&i(o.error),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,i=j(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(t,e,n){var r=n(20),i=n(160),o=n(161),s=n(12),u=n(34),a=n(163);t.exports=function(t,e,n,c,f){var l,h,p,d=f?function(){return t}:a(t),v=r(n,c,e?2:1),y=0;if("function"!=typeof d)throw TypeError(t+" is not iterable!");if(o(d))for(l=u(t.length);l>y;y++)e?v(s(h=t[y])[0],h[1]):v(t[y]);else for(p=d.call(t);!(h=p.next()).done;)i(p,v,h.value,e)}},function(t,e,n){var r=n(12),i=n(21),o=n(25)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},function(t,e,n){var r,i,o,s=n(20),u=n(76),a=n(45),c=n(15),f=n(4),l=f.process,h=f.setImmediate,p=f.clearImmediate,d=f.MessageChannel,v=0,y={},m="onreadystatechange",g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},_=function(t){g.call(t.data)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++v]=function(){u("function"==typeof t?t:Function(t),e)},r(v),v},p=function(t){delete y[t]},"process"==n(31)(l)?r=function(t){l.nextTick(s(g,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=_,r=s(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",_,!1)):r=m in c("script")?function(t){a.appendChild(c("script"))[m]=function(){a.removeChild(this),g.call(t)}}:function(t){setTimeout(s(g,t,1),0)}),t.exports={set:h,clear:p}},function(t,e,n){var r,i,o,s=n(4),u=n(205).set,a=s.MutationObserver||s.WebKitMutationObserver,c=s.process,f=s.Promise,l="process"==n(31)(c),h=function(){var t,e;for(l&&(t=c.domain)&&t.exit();r;)e=r.fn,e(),r=r.next;i=void 0,t&&t.enter()};if(l)o=function(){c.nextTick(h)};else if(a){var p=!0,d=document.createTextNode("");new a(h).observe(d,{characterData:!0}),o=function(){d.data=p=!p}}else o=f&&f.resolve?function(){f.resolve().then(h)}:function(){u.call(s,h)};t.exports=function(t){var e={fn:t,next:void 0};i&&(i.next=e),r||(r=e,o()),i=e}},function(t,e,n){var r=n(18);t.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},function(t,e,n){"use strict";var r=n(209);t.exports=n(210)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(this,t);return e&&e.v},set:function(t,e){return r.def(this,0===t?0:t,e)}},r,!0)},function(t,e,n){"use strict";var r=n(11).f,i=n(43),o=(n(10),n(207)),s=n(20),u=n(88),a=n(32),c=n(203),f=n(127),l=n(192),h=n(190),p=n(7),d=n(22).fastKey,v=p?"_s":"size",y=function(t,e){var n,r=d(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,f){var l=t(function(t,r){u(t,l,e,"_i"),t._i=i(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=r&&c(r,n,t[f],t)});return o(l.prototype,{clear:function(){for(var t=this,e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[v]=0},"delete":function(t){var e=this,n=y(e,t);if(n){var r=n.n,i=n.p;delete e._i[n.i],n.r=!0,i&&(i.n=r),r&&(r.p=i),e._f==n&&(e._f=r),e._l==n&&(e._l=i),e[v]--}return!!n},forEach:function(t){u(this,l,"forEach");for(var e,n=s(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!y(this,t)}}),p&&r(l.prototype,"size",{get:function(){return a(this[v])}}),l},def:function(t,e,n){var r,i,o=y(t,e);return o?o.v=n:(t._l=o={i:i=d(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[v]++,"F"!==i&&(t._i[i]=o)),t},getEntry:y,setStrong:function(t,e,n){f(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?l(0,n.k):"values"==e?l(0,n.v):l(0,[n.k,n.v]):(t._t=void 0,l(1))},n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){"use strict";var r=n(4),i=n(9),o=n(18),s=n(207),u=n(22),a=n(203),c=n(88),f=n(13),l=n(8),h=n(164),p=n(24),d=n(86);t.exports=function(t,e,n,v,y,m){var g=r[t],_=g,b=y?"set":"add",w=_&&_.prototype,O={},x=function(t){var e=w[t];o(w,t,"delete"==t?function(t){return m&&!f(t)?!1:e.call(this,0===t?0:t)}:"has"==t?function(t){return m&&!f(t)?!1:e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof _&&(m||w.forEach&&!l(function(){(new _).entries().next()}))){var S=new _,M=S[b](m?{}:-0,1)!=S,k=l(function(){S.has(1)}),P=h(function(t){new _(t)}),E=!m&&l(function(){for(var t=new _,e=5;e--;)t[b](e,e);return!t.has(-0)});P||(_=e(function(e,n){c(e,_,t);var r=d(new g,e,_);return void 0!=n&&a(n,y,r[b],r),r}),_.prototype=w,w.constructor=_),(k||E)&&(x("delete"),x("has"),y&&x("get")),(E||M)&&x(b),m&&w.clear&&delete w.clear}else _=v.getConstructor(e,t,y,b),s(_.prototype,n),u.NEED=!0;return p(_,t),O[t]=_,i(i.G+i.W+i.F*(_!=g),O),m||v.setStrong(_,t,y),_}},function(t,e,n){"use strict";var r=n(209);t.exports=n(210)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t=0===t?0:t,t)}},r)},function(t,e,n){"use strict";var r,i=n(171)(0),o=n(18),s=n(22),u=n(67),a=n(213),c=n(13),f=(n(6),s.getWeak),l=Object.isExtensible,h=a.ufstore,p={},d=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(t){if(c(t)){var e=f(t);return e===!0?h(this).get(t):e?e[this._i]:void 0}},set:function(t,e){return a.def(this,t,e)}},y=t.exports=n(210)("WeakMap",d,v,a,!0,!0);7!=(new y).set((Object.freeze||Object)(p),7).get(p)&&(r=a.getConstructor(d),u(r.prototype,v),s.NEED=!0,i(["delete","has","get","set"],function(t){var e=y.prototype,n=e[t];o(e,t,function(e,i){if(c(e)&&!l(e)){this._f||(this._f=new r);var o=this._f[t](e,i);return"set"==t?this:o}return n.call(this,e,i)})}))},function(t,e,n){"use strict";var r=n(207),i=n(22).getWeak,o=n(12),s=n(13),u=n(88),a=n(203),c=n(171),f=n(6),l=c(5),h=c(6),p=0,d=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},y=function(t,e){return l(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=y(this,t);return e?e[1]:void 0},has:function(t){return!!y(this,t)},set:function(t,e){var n=y(this,t);n?n[1]=e:this.a.push([t,e])},"delete":function(t){var e=h(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var c=t(function(t,r){u(t,c,e,"_i"),t._i=p++,t._l=void 0,void 0!=r&&a(r,n,t[o],t)});return r(c.prototype,{"delete":function(t){if(!s(t))return!1;var e=i(t);return e===!0?d(this)["delete"](t):e&&f(e,this._i)&&delete e[this._i]},has:function(t){if(!s(t))return!1;var e=i(t);return e===!0?d(this).has(t):e&&f(e,this._i)}}),c},def:function(t,e,n){var r=i(o(e),!0);return r===!0?d(t).set(e,n):r[t._i]=n,t},ufstore:d}},function(t,e,n){"use strict";var r=n(213);n(210)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return r.def(this,t,!0)}},r,!1,!0)},function(t,e,n){"use strict";var r=n(9),i=n(216),o=n(217),s=n(12),u=n(36),a=n(34),c=n(13),f=(n(25)("typed_array"),n(4).ArrayBuffer),l=n(204),h=o.ArrayBuffer,p=o.DataView,d=i.ABV&&f.isView,v=h.prototype.slice,y=i.VIEW,m="ArrayBuffer";r(r.G+r.W+r.F*(f!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,m,{isView:function(t){return d&&d(t)||c(t)&&y in t}}),r(r.P+r.U+r.F*n(8)(function(){return!new h(2).slice(1,void 0).byteLength}),m,{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(s(this),t);for(var n=s(this).byteLength,r=u(t,n),i=u(void 0===e?n:e,n),o=new(l(this,h))(a(i-r)),c=new p(this),f=new p(o),d=0;i>r;)f.setUint8(d++,c.getUint8(r++));return o}}),n(190)(m)},function(t,e,n){for(var r,i=n(4),o=n(10),s=n(19),u=s("typed_array"),a=s("view"),c=!(!i.ArrayBuffer||!i.DataView),f=c,l=0,h=9,p="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h>l;)(r=i[p[l++]])?(o(r.prototype,u,!0),o(r.prototype,a,!0)):f=!1;t.exports={ABV:c,CONSTR:f,TYPED:u,VIEW:a}},function(t,e,n){"use strict";var r=n(4),i=n(7),o=n(49),s=n(216),u=n(10),a=n(207),c=n(8),f=n(88),l=n(35),h=n(34),p=n(47).f,d=n(11).f,v=n(186),y=n(24),m="ArrayBuffer",g="DataView",_="prototype",b="Wrong length!",w="Wrong index!",O=r[m],x=r[g],S=r.Math,M=(r.parseInt,r.RangeError),k=r.Infinity,P=O,E=S.abs,j=S.pow,T=(S.min,S.floor),C=S.log,I=S.LN2,A="buffer",z="byteLength",F="byteOffset",R=i?"_b":A,L=i?"_l":z,N=i?"_o":F,D=function(t,e,n){var r,i,o,s=Array(n),u=8*n-e-1,a=(1<<u)-1,c=a>>1,f=23===e?j(2,-24)-j(2,-77):0,l=0,h=0>t||0===t&&0>1/t?1:0;for(t=E(t),t!=t||t===k?(i=t!=t?1:0,r=a):(r=T(C(t)/I),t*(o=j(2,-r))<1&&(r--,o*=2),t+=r+c>=1?f/o:f*j(2,1-c),t*o>=2&&(r++,o/=2),r+c>=a?(i=0,r=a):r+c>=1?(i=(t*o-1)*j(2,e),r+=c):(i=t*j(2,c-1)*j(2,e),r=0));e>=8;s[l++]=255&i,i/=256,e-=8);for(r=r<<e|i,u+=e;u>0;s[l++]=255&r,r/=256,u-=8);return s[--l]|=128*h,s},G=function(t,e,n){var r,i=8*n-e-1,o=(1<<i)-1,s=o>>1,u=i-7,a=n-1,c=t[a--],f=127&c;for(c>>=7;u>0;f=256*f+t[a],a--,u-=8);for(r=f&(1<<-u)-1,f>>=-u,u+=e;u>0;r=256*r+t[a],a--,u-=8);if(0===f)f=1-s;else{if(f===o)return r?NaN:c?-k:k;r+=j(2,e),f-=s}return(c?-1:1)*r*j(2,f-e)},B=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},H=function(t){return[255&t]},W=function(t){return[255&t,t>>8&255]},V=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},U=function(t){return D(t,52,8)},Y=function(t){return D(t,23,4)},X=function(t,e,n){d(t[_],e,{get:function(){return this[n]}})},Q=function(t,e,n,r){var i=+n,o=l(i);if(i!=o||0>o||o+e>t[L])throw M(w);var s=t[R]._b,u=o+t[N],a=s.slice(u,u+e);return r?a:a.reverse()},q=function(t,e,n,r,i,o){var s=+n,u=l(s);if(s!=u||0>u||u+e>t[L])throw M(w);for(var a=t[R]._b,c=u+t[N],f=r(+i),h=0;e>h;h++)a[c+h]=f[o?h:e-h-1]},J=function(t,e){f(t,O,m);var n=+e,r=h(n);if(n!=r)throw M(b);return r};if(s.ABV){if(!c(function(){new O})||!c(function(){new O(.5)})){O=function(t){return new P(J(this,t))};for(var Z,K=O[_]=P[_],$=p(P),tt=0;$.length>tt;)(Z=$[tt++])in O||u(O,Z,P[Z]);o||(K.constructor=O)}var et=new x(new O(2)),nt=x[_].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),(et.getInt8(0)||!et.getInt8(1))&&a(x[_],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else O=function(t){var e=J(this,t);this._b=v.call(Array(e),0),this[L]=e},x=function(t,e,n){f(this,x,g),f(t,O,g);var r=t[L],i=l(e);if(0>i||i>r)throw M("Wrong offset!");if(n=void 0===n?r-i:h(n),i+n>r)throw M(b);this[R]=t,this[N]=i,this[L]=n},i&&(X(O,z,"_l"),X(x,A,"_b"),X(x,z,"_l"),X(x,F,"_o")),a(x[_],{getInt8:function(t){return Q(this,1,t)[0]<<24>>24},getUint8:function(t){return Q(this,1,t)[0]},getInt16:function(t){var e=Q(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Q(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return B(Q(this,4,t,arguments[1]))},getUint32:function(t){return B(Q(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return G(Q(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return G(Q(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){q(this,1,t,H,e)},setUint8:function(t,e){q(this,1,t,H,e)},setInt16:function(t,e){q(this,2,t,W,e,arguments[2])},setUint16:function(t,e){q(this,2,t,W,e,arguments[2])},setInt32:function(t,e){q(this,4,t,V,e,arguments[2])},setUint32:function(t,e){q(this,4,t,V,e,arguments[2])},setFloat32:function(t,e){q(this,4,t,Y,e,arguments[2])},setFloat64:function(t,e){q(this,8,t,U,e,arguments[2])}});y(O,m),y(x,g),u(x[_],s.VIEW,!0),e[m]=O,e[g]=x},function(t,e,n){var r=n(9);r(r.G+r.W+r.F*!n(216).ABV,{DataView:n(217).DataView})},function(t,e,n){n(220)("Int8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){"use strict";if(n(7)){var r=n(49),i=n(4),o=n(8),s=n(9),u=n(216),a=n(217),c=n(20),f=n(88),l=n(17),h=n(10),p=n(207),d=(n(95),n(35)),v=n(34),y=n(36),m=n(16),g=n(6),_=n(69),b=n(73),w=n(13),O=n(56),x=n(161),S=n(43),M=n(57),k=n(47).f,P=(n(221),n(163)),E=n(19),j=n(25),T=n(171),C=n(33),I=n(204),A=n(191),z=n(128),F=n(164),R=n(190),L=n(186),N=n(183),D=n(11),G=n(48),B=D.f,H=G.f,W=i.RangeError,V=i.TypeError,U=i.Uint8Array,Y="ArrayBuffer",X="Shared"+Y,Q="BYTES_PER_ELEMENT",q="prototype",J=Array[q],Z=a.ArrayBuffer,K=a.DataView,$=T(0),tt=T(2),et=T(3),nt=T(4),rt=T(5),it=T(6),ot=C(!0),st=C(!1),ut=A.values,at=A.keys,ct=A.entries,ft=J.lastIndexOf,lt=J.reduce,ht=J.reduceRight,pt=J.join,dt=J.sort,vt=J.slice,yt=J.toString,mt=J.toLocaleString,gt=j("iterator"),_t=j("toStringTag"),bt=E("typed_constructor"),wt=E("def_constructor"),Ot=u.CONSTR,xt=u.TYPED,St=u.VIEW,Mt="Wrong length!",kt=T(1,function(t,e){return It(I(t,t[wt]),e)}),Pt=o(function(){return 1===new U(new Uint16Array([1]).buffer)[0]}),Et=!!U&&!!U[q].set&&o(function(){new U(1).set({})}),jt=function(t,e){if(void 0===t)throw V(Mt);var n=+t,r=v(t);if(e&&!_(n,r))throw W(Mt);return r},Tt=function(t,e){var n=d(t);if(0>n||n%e)throw W("Wrong offset!");return n},Ct=function(t){if(w(t)&&xt in t)return t;throw V(t+" is not a typed array!")},It=function(t,e){if(!(w(t)&&bt in t))throw V("It is not a typed array constructor!");return new t(e)},At=function(t,e){return zt(I(t,t[wt]),e)},zt=function(t,e){for(var n=0,r=e.length,i=It(t,r);r>n;)i[n]=e[n++];return i},Ft=function(t,e,n){B(t,e,{get:function(){return this._d[n]}})},Rt=function(t){var e,n,r,i,o,s,u=O(t),a=arguments.length,f=a>1?arguments[1]:void 0,l=void 0!==f,h=P(u);if(void 0!=h&&!x(h)){for(s=h.call(u),r=[],e=0;!(o=s.next()).done;e++)r.push(o.value);u=r}for(l&&a>2&&(f=c(f,arguments[2],2)),e=0,n=v(u.length),i=It(this,n);n>e;e++)i[e]=l?f(u[e],e):u[e];return i},Lt=function(){for(var t=0,e=arguments.length,n=It(this,e);e>t;)n[t]=arguments[t++];return n},Nt=!!U&&o(function(){mt.call(new U(1))}),Dt=function(){return mt.apply(Nt?vt.call(Ct(this)):Ct(this),arguments)},Gt={copyWithin:function(t,e){return N.call(Ct(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(Ct(this),arguments)},filter:function(t){return At(this,tt(Ct(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return rt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return it(Ct(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){$(Ct(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return st(Ct(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(Ct(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return pt.apply(Ct(this),arguments)},lastIndexOf:function(t){return ft.apply(Ct(this),arguments)},map:function(t){return kt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return lt.apply(Ct(this),arguments)},reduceRight:function(t){return ht.apply(Ct(this),arguments)},reverse:function(){for(var t,e=this,n=Ct(e).length,r=Math.floor(n/2),i=0;r>i;)t=e[i],e[i++]=e[--n],e[n]=t;return e},some:function(t){return et(Ct(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return dt.call(Ct(this),t)},subarray:function(t,e){var n=Ct(this),r=n.length,i=y(t,r);return new(I(n,n[wt]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,v((void 0===e?r:y(e,r))-i))}},Bt=function(t,e){return At(this,vt.call(Ct(this),t,e))},Ht=function(t){Ct(this);var e=Tt(arguments[1],1),n=this.length,r=O(t),i=v(r.length),o=0;if(i+e>n)throw W(Mt);for(;i>o;)this[e+o]=r[o++]},Wt={entries:function(){return ct.call(Ct(this))},keys:function(){return at.call(Ct(this))},values:function(){return ut.call(Ct(this))}},Vt=function(t,e){return w(t)&&t[xt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Ut=function(t,e){return Vt(t,e=m(e,!0))?l(2,t[e]):H(t,e)},Yt=function(t,e,n){return!(Vt(t,e=m(e,!0))&&w(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?B(t,e,n):(t[e]=n.value,t)};Ot||(G.f=Ut,D.f=Yt),s(s.S+s.F*!Ot,"Object",{getOwnPropertyDescriptor:Ut,defineProperty:Yt}),o(function(){yt.call({})})&&(yt=mt=function(){return pt.call(this)});var Xt=p({},Gt);p(Xt,Wt),h(Xt,gt,Wt.values),p(Xt,{slice:Bt,set:Ht,constructor:function(){},toString:yt,toLocaleString:Dt}),Ft(Xt,"buffer","b"),Ft(Xt,"byteOffset","o"),Ft(Xt,"byteLength","l"),Ft(Xt,"length","e"),B(Xt,_t,{get:function(){return this[xt]}}),t.exports=function(t,e,n,a){a=!!a;var c=t+(a?"Clamped":"")+"Array",l="Uint8Array"!=c,p="get"+t,d="set"+t,y=i[c],m=y||{},g=y&&M(y),_=!y||!u.ABV,O={},x=y&&y[q],P=function(t,n){var r=t._d;return r.v[p](n*e+r.o,Pt)},E=function(t,n,r){var i=t._d;a&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),i.v[d](n*e+i.o,r,Pt)},j=function(t,e){B(t,e,{get:function(){return P(this,e)},set:function(t){return E(this,e,t)},enumerable:!0})};_?(y=n(function(t,n,r,i){f(t,y,c,"_d");var o,s,u,a,l=0,p=0;if(w(n)){if(!(n instanceof Z||(a=b(n))==Y||a==X))return xt in n?zt(y,n):Rt.call(y,n);o=n,p=Tt(r,e);var d=n.byteLength;if(void 0===i){if(d%e)throw W(Mt);if(s=d-p,0>s)throw W(Mt)}else if(s=v(i)*e,s+p>d)throw W(Mt);u=s/e}else u=jt(n,!0),s=u*e,o=new Z(s);for(h(t,"_d",{b:o,o:p,l:s,e:u,v:new K(o)});u>l;)j(t,l++)}),x=y[q]=S(Xt),h(x,"constructor",y)):F(function(t){new y(null),new y(t)},!0)||(y=n(function(t,n,r,i){f(t,y,c);var o;return w(n)?n instanceof Z||(o=b(n))==Y||o==X?void 0!==i?new m(n,Tt(r,e),i):void 0!==r?new m(n,Tt(r,e)):new m(n):xt in n?zt(y,n):Rt.call(y,n):new m(jt(n,l))}),$(g!==Function.prototype?k(m).concat(k(g)):k(m),function(t){t in y||h(y,t,m[t])}),y[q]=x,r||(x.constructor=y));var T=x[gt],C=!!T&&("values"==T.name||void 0==T.name),I=Wt.values;h(y,bt,!0),h(x,xt,c),h(x,St,!0),h(x,wt,y),(a?new y(1)[_t]==c:_t in x)||B(x,_t,{get:function(){return c}}),O[c]=y,s(s.G+s.W+s.F*(y!=m),O),s(s.S,c,{BYTES_PER_ELEMENT:e,from:Rt,of:Lt}),Q in x||h(x,Q,e),
s(s.P,c,Gt),R(c),s(s.P+s.F*Et,c,{set:Ht}),s(s.P+s.F*!C,c,Wt),s(s.P+s.F*(x.toString!=yt),c,{toString:yt}),s(s.P+s.F*o(function(){new y(1).slice()}),c,{slice:Bt}),s(s.P+s.F*(o(function(){return[1,2].toLocaleString()!=new y([1,2]).toLocaleString()})||!o(function(){x.toLocaleString.call([1,2])})),c,{toLocaleString:Dt}),z[c]=C?T:I,r||C||h(x,gt,I)}}else t.exports=function(){}},function(t,e,n){var r=n(73),i=n(25)("iterator"),o=n(128);t.exports=n(5).isIterable=function(t){var e=Object(t);return void 0!==e[i]||"@@iterator"in e||o.hasOwnProperty(r(e))}},function(t,e,n){n(220)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(220)("Uint8",1,function(t){return function(e,n,r){return t(this,e,n,r)}},!0)},function(t,e,n){n(220)("Int16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(220)("Uint16",2,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(220)("Int32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(220)("Uint32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(220)("Float32",4,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){n(220)("Float64",8,function(t){return function(e,n,r){return t(this,e,n,r)}})},function(t,e,n){var r=n(9),i=Function.apply;r(r.S,"Reflect",{apply:function(t,e,n){return i.call(t,e,n)}})},function(t,e,n){var r=n(9),i=n(43),o=n(21),s=n(12),u=n(13),a=n(75);r(r.S+r.F*n(8)(function(){function t(){}return!(Reflect.construct(function(){},[],t)instanceof t)}),"Reflect",{construct:function(t,e){o(t);var n=arguments.length<3?t:o(arguments[2]);if(t==n){if(void 0!=e)switch(s(e).length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(a.apply(t,r))}var c=n.prototype,f=i(u(c)?c:Object.prototype),l=Function.apply.call(t,f,e);return u(l)?l:f}})},function(t,e,n){var r=n(11),i=n(9),o=n(12),s=n(16);i(i.S+i.F*n(8)(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=s(e,!0),o(n);try{return r.f(t,e,n),!0}catch(i){return!1}}})},function(t,e,n){var r=n(9),i=n(48).f,o=n(12);r(r.S,"Reflect",{deleteProperty:function(t,e){var n=i(o(t),e);return n&&!n.configurable?!1:delete t[e]}})},function(t,e,n){"use strict";var r=n(9),i=n(12),o=function(t){this._t=i(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n(129)(o,"Object",function(){var t,e=this,n=e._k;do if(e._i>=n.length)return{value:void 0,done:!0};while(!((t=n[e._i++])in e._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){function r(t,e){var n,u,f=arguments.length<3?t:arguments[2];return c(t)===f?t[e]:(n=i.f(t,e))?s(n,"value")?n.value:void 0!==n.get?n.get.call(f):void 0:a(u=o(t))?r(u,e,f):void 0}var i=n(48),o=n(57),s=n(6),u=n(9),a=n(13),c=n(12);u(u.S,"Reflect",{get:r})},function(t,e,n){var r=n(48),i=n(9),o=n(12);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return r.f(o(t),e)}})},function(t,e,n){var r=n(9),i=n(57),o=n(12);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,e,n){var r=n(9);r(r.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var r=n(9),i=n(12),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),o?o(t):!0}})},function(t,e,n){var r=n(9);r(r.S,"Reflect",{ownKeys:n(241)})},function(t,e,n){var r=n(47),i=n(40),o=n(12),s=n(4).Reflect;t.exports=s&&s.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},function(t,e,n){var r=n(9),i=n(12),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(e){return!1}}})},function(t,e,n){function r(t,e,n){var a,h,p=arguments.length<4?t:arguments[3],d=o.f(f(t),e);if(!d){if(l(h=s(t)))return r(h,e,n,p);d=c(0)}return u(d,"value")?d.writable!==!1&&l(p)?(a=o.f(p,e)||c(0),a.value=n,i.f(p,e,a),!0):!1:void 0===d.set?!1:(d.set.call(p,n),!0)}var i=n(11),o=n(48),s=n(57),u=n(6),a=n(9),c=n(17),f=n(12),l=n(13);a(a.S,"Reflect",{set:r})},function(t,e,n){var r=n(9),i=n(71);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(n){return!1}}})},function(t,e,n){"use strict";var r=n(9),i=n(33)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n(184)("includes")},function(t,e,n){"use strict";var r=n(9),i=n(126)(!0);r(r.P,"String",{at:function(t){return i(this,t)}})},function(t,e,n){"use strict";var r=n(9),i=n(248);r(r.P,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){var r=n(34),i=n(90),o=n(32);t.exports=function(t,e,n,s){var u=String(o(t)),a=u.length,c=void 0===n?" ":String(n),f=r(e);if(a>=f)return u;""==c&&(c=" ");var l=f-a,h=i.call(c,Math.ceil(l/c.length));return h.length>l&&(h=h.slice(0,l)),s?h+u:u+h}},function(t,e,n){"use strict";var r=n(9),i=n(248);r(r.P,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){"use strict";n(81)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){"use strict";n(81)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){"use strict";var r=n(9),i=n(32),o=n(34),s=n(133),u=n(194),a=RegExp.prototype,c=function(t,e){this._r=t,this._s=e};n(129)(c,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),r(r.P,"String",{matchAll:function(t){if(i(this),!s(t))throw TypeError(t+" is not a regexp!");var e=String(this),n="flags"in a?String(t.flags):u.call(t),r=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);return r.lastIndex=o(t.lastIndex),new c(r,e)}})},function(t,e,n){var r=n(9),i=n(241),o=n(29),s=n(48),u=n(162);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n=o(t),r=s.f,a=i(n),c={},f=0;a.length>f;)u(c,e=a[f++],r(n,e));return c}})},function(t,e,n){var r=n(9),i=n(255)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,e,n){var r=n(27),i=n(29),o=n(41).f;t.exports=function(t){return function(e){for(var n,s=i(e),u=r(s),a=u.length,c=0,f=[];a>c;)o.call(s,n=u[c++])&&f.push(t?[n,s[n]]:s[n]);return f}}},function(t,e,n){var r=n(9),i=n(255)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,e,n){"use strict";var r=n(9),i=n(56),o=n(21),s=n(11);n(7)&&r(r.P+n(258),"Object",{__defineGetter__:function(t,e){s.f(i(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){t.exports=n(49)||!n(8)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n(4)[t]})},function(t,e,n){"use strict";var r=n(9),i=n(56),o=n(21),s=n(11);n(7)&&r(r.P+n(258),"Object",{__defineSetter__:function(t,e){s.f(i(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,n){"use strict";var r=n(9),i=n(56),o=n(16),s=n(57),u=n(48).f;n(7)&&r(r.P+n(258),"Object",{__lookupGetter__:function(t){var e,n=i(this),r=o(t,!0);do if(e=u(n,r))return e.get;while(n=s(n))}})},function(t,e,n){"use strict";var r=n(9),i=n(56),o=n(16),s=n(57),u=n(48).f;n(7)&&r(r.P+n(258),"Object",{__lookupSetter__:function(t){var e,n=i(this),r=o(t,!0);do if(e=u(n,r))return e.set;while(n=s(n))}})},function(t,e,n){var r=n(9);r(r.P+r.R,"Map",{toJSON:n(263)("Map")})},function(t,e,n){var r=n(73),i=n(264);t.exports=function(t){return function(){if(r(this)!=t)throw TypeError(t+"#toJSON isn't generic");return i(this)}}},function(t,e,n){var r=n(203);t.exports=function(t,e){var n=[];return r(t,!1,n.push,n,e),n}},function(t,e,n){var r=n(9);r(r.P+r.R,"Set",{toJSON:n(263)("Set")})},function(t,e,n){var r=n(9);r(r.S,"System",{global:n(4)})},function(t,e,n){var r=n(9),i=n(31);r(r.S,"Error",{isError:function(t){return"Error"===i(t)}})},function(t,e,n){var r=n(9);r(r.S,"Math",{iaddh:function(t,e,n,r){var i=t>>>0,o=e>>>0,s=n>>>0;return o+(r>>>0)+((i&s|(i|s)&~(i+s>>>0))>>>31)|0}})},function(t,e,n){var r=n(9);r(r.S,"Math",{isubh:function(t,e,n,r){var i=t>>>0,o=e>>>0,s=n>>>0;return o-(r>>>0)-((~i&s|~(i^s)&i-s>>>0)>>>31)|0}})},function(t,e,n){var r=n(9);r(r.S,"Math",{imulh:function(t,e){var n=65535,r=+t,i=+e,o=r&n,s=i&n,u=r>>16,a=i>>16,c=(u*s>>>0)+(o*s>>>16);return u*a+(c>>16)+((o*a>>>0)+(c&n)>>16)}})},function(t,e,n){var r=n(9);r(r.S,"Math",{umulh:function(t,e){var n=65535,r=+t,i=+e,o=r&n,s=i&n,u=r>>>16,a=i>>>16,c=(u*s>>>0)+(o*s>>>16);return u*a+(c>>>16)+((o*a>>>0)+(c&n)>>>16)}})},function(t,e,n){var r=n(273),i=n(12),o=r.key,s=r.set;r.exp({defineMetadata:function(t,e,n,r){s(t,e,i(n),o(r))}})},function(t,e,n){var r=n(208),i=n(9),o=n(23)("metadata"),s=o.store||(o.store=new(n(212))),u=function(t,e,n){var i=s.get(t);if(!i){if(!n)return;s.set(t,i=new r)}var o=i.get(e);if(!o){if(!n)return;i.set(e,o=new r)}return o},a=function(t,e,n){var r=u(e,n,!1);return void 0===r?!1:r.has(t)},c=function(t,e,n){var r=u(e,n,!1);return void 0===r?void 0:r.get(t)},f=function(t,e,n,r){u(n,r,!0).set(t,e)},l=function(t,e){var n=u(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},h=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},p=function(t){i(i.S,"Reflect",t)};t.exports={store:s,map:u,has:a,get:c,set:f,keys:l,key:h,exp:p}},function(t,e,n){var r=n(273),i=n(12),o=r.key,s=r.map,u=r.store;r.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:o(arguments[2]),r=s(i(e),n,!1);if(void 0===r||!r["delete"](t))return!1;if(r.size)return!0;var a=u.get(e);return a["delete"](n),!!a.size||u["delete"](e)}})},function(t,e,n){var r=n(273),i=n(12),o=n(57),s=r.has,u=r.get,a=r.key,c=function(t,e,n){var r=s(t,e,n);if(r)return u(t,e,n);var i=o(e);return null!==i?c(t,i,n):void 0};r.exp({getMetadata:function(t,e){return c(t,i(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,n){var r=n(211),i=n(264),o=n(273),s=n(12),u=n(57),a=o.keys,c=o.key,f=function(t,e){var n=a(t,e),o=u(t);if(null===o)return n;var s=f(o,e);return s.length?n.length?i(new r(n.concat(s))):s:n};o.exp({getMetadataKeys:function(t){return f(s(t),arguments.length<2?void 0:c(arguments[1]))}})},function(t,e,n){var r=n(273),i=n(12),o=r.get,s=r.key;r.exp({getOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(273),i=n(12),o=r.keys,s=r.key;r.exp({getOwnMetadataKeys:function(t){return o(i(t),arguments.length<2?void 0:s(arguments[1]))}})},function(t,e,n){var r=n(273),i=n(12),o=n(57),s=r.has,u=r.key,a=function(t,e,n){var r=s(t,e,n);if(r)return!0;var i=o(e);return null!==i?a(t,i,n):!1};r.exp({hasMetadata:function(t,e){return a(t,i(e),arguments.length<3?void 0:u(arguments[2]))}})},function(t,e,n){var r=n(273),i=n(12),o=r.has,s=r.key;r.exp({hasOwnMetadata:function(t,e){return o(t,i(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,n){var r=n(273),i=n(12),o=n(21),s=r.key,u=r.set;r.exp({metadata:function(t,e){return function(n,r){u(t,e,(void 0!==r?i:o)(n),s(r))}}})},function(t,e,n){var r=n(4),i=n(9),o=n(76),s=n(283),u=r.navigator,a=!!u&&/MSIE .\./.test(u.userAgent),c=function(t){return a?function(e,n){return t(o(s,[].slice.call(arguments,2),"function"==typeof e?e:Function(e)),n)}:t};i(i.G+i.B+i.F*a,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,e,n){"use strict";var r=n(284),i=n(76),o=n(21);t.exports=function(){for(var t=o(this),e=arguments.length,n=Array(e),s=0,u=r._,a=!1;e>s;)(n[s]=arguments[s++])===u&&(a=!0);return function(){var r,o=this,s=arguments.length,c=0,f=0;if(!a&&!s)return i(t,n,o);if(r=n.slice(),a)for(;e>c;c++)r[c]===u&&(r[c]=arguments[f++]);for(;s>f;)r.push(arguments[f++]);return i(t,r,o)}}},function(t,e,n){t.exports=n(4)},function(t,e,n){var r=n(9),i=n(205);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,e,n){for(var r=n(191),i=n(18),o=n(4),s=n(10),u=n(128),a=n(25),c=a("iterator"),f=a("toStringTag"),l=u.Array,h=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],p=0;5>p;p++){var d,v=h[p],y=o[v],m=y&&y.prototype;if(m){m[c]||s(m,c,l),m[f]||s(m,f,v),u[v]=l;for(d in r)m[d]||i(m,d,r[d],!0)}}},function(t,e,n){(function(e,n){!function(e){"use strict";function r(t,e,n,r){var i=Object.create((e||o).prototype),s=new d(r||[]);return i._invoke=l(t,n,s),i}function i(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function o(){}function s(){}function u(){}function a(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){this.arg=t}function f(t){function e(e,n){var r=t[e](n),i=r.value;return i instanceof c?Promise.resolve(i.arg).then(o,s):Promise.resolve(i).then(function(t){return r.value=t,r})}function r(t,n){function r(){return e(t,n)}return i=i?i.then(r,r):new Promise(function(t){t(r())})}"object"==typeof n&&n.domain&&(e=n.domain.bind(e));var i,o=e.bind(t,"next"),s=e.bind(t,"throw");e.bind(t,"return");this._invoke=r}function l(t,e,n){var r=O;return function(o,s){if(r===S)throw new Error("Generator is already running");if(r===M){if("throw"===o)throw s;return y()}for(;;){var u=n.delegate;if(u){if("return"===o||"throw"===o&&u.iterator[o]===m){n.delegate=null;var a=u.iterator["return"];if(a){var c=i(a,u.iterator,s);if("throw"===c.type){o="throw",s=c.arg;continue}}if("return"===o)continue}var c=i(u.iterator[o],u.iterator,s);if("throw"===c.type){n.delegate=null,o="throw",s=c.arg;continue}o="next",s=m;var f=c.arg;if(!f.done)return r=x,f;n[u.resultName]=f.value,n.next=u.nextLoc,n.delegate=null}if("next"===o)n._sent=s,r===x?n.sent=s:n.sent=m;else if("throw"===o){if(r===O)throw r=M,s;n.dispatchException(s)&&(o="next",s=m)}else"return"===o&&n.abrupt("return",s);r=S;var c=i(t,e,n);if("normal"===c.type){r=n.done?M:x;var f={value:c.arg,done:n.done};if(c.arg!==k)return f;n.delegate&&"next"===o&&(s=m)}else"throw"===c.type&&(r=M,o="throw",s=c.arg)}}}function h(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 p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(h,this),this.reset(!0)}function v(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n<t.length;)if(g.call(t,n))return i.value=t[n],i.done=!1,i;return i.value=m,i.done=!0,i};return r.next=r}}return{next:y}}function y(){return{value:m,done:!0}}var m,g=Object.prototype.hasOwnProperty,_="function"==typeof Symbol&&Symbol.iterator||"@@iterator",b="object"==typeof t,w=e.regeneratorRuntime;if(w)return void(b&&(t.exports=w));w=e.regeneratorRuntime=b?t.exports:{},w.wrap=r;var O="suspendedStart",x="suspendedYield",S="executing",M="completed",k={},P=u.prototype=o.prototype;s.prototype=P.constructor=u,u.constructor=s,s.displayName="GeneratorFunction",w.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return e?e===s||"GeneratorFunction"===(e.displayName||e.name):!1},w.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,u):t.__proto__=u,t.prototype=Object.create(P),t},w.awrap=function(t){return new c(t)},a(f.prototype),w.async=function(t,e,n,i){var o=new f(r(t,e,n,i));return w.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},a(P),P[_]=function(){return this},P.toString=function(){return"[object Generator]"},w.keys=function(t){var e=[];for(var n in t)e.push(n);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}},w.values=v,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=m,this.done=!1,this.delegate=null,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},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,r){return o.type="throw",o.arg=t,n.next=e,!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var s=g.call(i,"catchLoc"),u=g.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(s){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 n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;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.next=i.finallyLoc:this.complete(o),k},complete:function(t,e){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e)},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),p(n),k}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;p(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:v(t),resultName:e,nextLoc:n},k}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,function(){return this}(),n(288))},function(t,e){function n(){c=!1,s.length?a=s.concat(a):f=-1,a.length&&r()}function r(){if(!c){var t=setTimeout(n);c=!0;for(var e=a.length;e;){for(s=a,a=[];++f<e;)s&&s[f].run();f=-1,e=a.length}s=null,c=!1,clearTimeout(t)}}function i(t,e){this.fun=t,this.array=e}function o(){}var s,u=t.exports={},a=[],c=!1,f=-1;u.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];a.push(new i(t,e)),1!==a.length||c||setTimeout(r,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=o,u.addListener=o,u.once=o,u.off=o,u.removeListener=o,u.removeAllListeners=o,u.emit=o,u.binding=function(t){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(t){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},function(t,e,n){n(290),t.exports=n(5).RegExp.escape},function(t,e,n){var r=n(9),i=n(291)(/[\\^$*+?.()|[\]{}]/g,"\\$&");r(r.S,"RegExp",{escape:function(t){return i(t)}})},function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.PushMenuLayout=e.Plane=e.Molecule=e.Grid=e.DoubleSidedPlane=e.Cube=e.Calendar=void 0;var i=n(293);Object.keys(i).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})});var o=n(428);Object.keys(o).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})});var s=n(430),u=r(s),a=n(457),c=r(a),f=n(453),l=r(f),h=n(451),p=r(h),d=n(437),v=r(d),y=n(454),m=r(y),g=n(462),_=r(g);e.Calendar=u["default"],e.Cube=c["default"],e.DoubleSidedPlane=l["default"],e.Grid=p["default"],e.Molecule=v["default"],e.Plane=m["default"],e.PushMenuLayout=_["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.PushPaneLayout=e.Scene=e.Node=e.Curves=void 0;var i=n(294);Object.keys(i).forEach(function(t){"default"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})});var o=n(388),s=r(o),u=n(389),a=r(u),c=n(398),f=r(c),l=n(427),h=r(l);e.Curves=s["default"],e.Node=a["default"],e.Scene=f["default"],e.PushPaneLayout=h["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function r(i,o){try{var s=e[i](o),u=s.value}catch(a){return void n(a)}return s.done?void t(u):Promise.resolve(u).then(function(t){return r("next",t)},function(t){return r("throw",t)})}return r("next")})}}function o(t){return Math.abs(t)<1e-6?0:t}function s(t,e){return 0===t?"0px":"%"===e?100*t+"%":"px"===e?t+"px":void 0}function u(){var t=null,e=new Promise(function(e){return t=e});return window.requestAnimationFrame(t),e}function a(t){var e=Object.getOwnPropertyNames(t),n=!0,r=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var u=o.value,a=u.toLowerCase();if(a!=u){var c=Object.getOwnPropertyDescriptor(t,u);Object.getOwnPropertyNames(c).indexOf("set")>=0&&Object.defineProperty(t,a,c)}}}catch(f){r=!0,i=f}finally{try{!n&&s["return"]&&s["return"]()}finally{if(r)throw i}}}function c(t,e){var n=Object.getOwnPropertyNames(t.prototype),r=!0,i=!1,o=void 0;try{for(var s,u=function(){var n=s.value;if(d.includes(n))return"continue";if(0==n.indexOf("_"))return"continue";var r={},i=Object.getOwnPropertyDescriptor(t.prototype,n);i.set&&Object.assign(r,{set:function(t){this.node[n]=t}}),i.get&&Object.assign(r,{get:function(){return this.node[n]}}),Object.defineProperty(e.prototype,n,r)},a=n[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){u()}}catch(c){i=!0,o=c}finally{try{!r&&a["return"]&&a["return"]()}finally{if(i)throw o}}}Object.defineProperty(e,"__esModule",{value:!0}),e.proxyMethods=e.makeLowercaseSetterAliases=e.animationFrame=e.getBodySize=e.applyCSSLabel=e.epsilon=void 0;var f=function(){var t=i(regeneratorRuntime.mark(function e(){var t,n,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,p["default"])();case 2:return t=document.body,n=window.parseInt(window.getComputedStyle(t).getPropertyValue("width")),r=window.parseInt(window.getComputedStyle(t).getPropertyValue("height")),e.abrupt("return",{width:n,height:r});case 6:case"end":return e.stop()}},e,this)}));return function(){return t.apply(this,arguments)}}(),l=n(295),h=(r(l),n(296)),p=r(h),d=["constructor","parent","children","element","scene","addChild","addChildren","removeChild","removeChildren"];e.epsilon=o,e.applyCSSLabel=s,e.getBodySize=f,e.animationFrame=u,e.makeLowercaseSetterAliases=a,e.proxyMethods=c},function(t,e,n){var r,i;!function(){if("performance"in window==!1&&(window.performance={}),Date.now=Date.now||function(){return(new Date).getTime()},"now"in window.performance==!1){var t=window.performance.timing&&window.performance.timing.navigationStart?window.performance.timing.navigationStart:Date.now();window.performance.now=function(){return Date.now()-t}}}();var o=o||function(){var t=[];return{getAll:function(){return t},removeAll:function(){t=[]},add:function(e){t.push(e)},remove:function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},update:function(e){if(0===t.length)return!1;var n=0;for(e=void 0!==e?e:window.performance.now();n<t.length;)t[n].update(e)?n++:t.splice(n,1);return!0}}}();o.Tween=function(t){var e=t,n={},r={},i={},s=1e3,u=0,a=!1,c=!1,f=!1,l=0,h=null,p=o.Easing.Linear.None,d=o.Interpolation.Linear,v=[],y=null,m=!1,g=null,_=null,b=null;for(var w in t)n[w]=parseFloat(t[w],10);this.to=function(t,e){return void 0!==e&&(s=e),r=t,this},this.start=function(t){o.add(this),c=!0,m=!1,h=void 0!==t?t:window.performance.now(),h+=l;for(var s in r){if(r[s]instanceof Array){if(0===r[s].length)continue;r[s]=[e[s]].concat(r[s])}void 0!==n[s]&&(n[s]=e[s],n[s]instanceof Array==!1&&(n[s]*=1),i[s]=n[s]||0)}return this},this.stop=function(){return c?(o.remove(this),c=!1,null!==b&&b.call(e),this.stopChainedTweens(),this):this},this.stopChainedTweens=function(){for(var t=0,e=v.length;e>t;t++)v[t].stop()},this.delay=function(t){return l=t,this},this.repeat=function(t){return u=t,this},this.yoyo=function(t){return a=t,this},this.easing=function(t){return p=t,this},this.interpolation=function(t){return d=t,this},this.chain=function(){return v=arguments,this},this.onStart=function(t){return y=t,this},this.onUpdate=function(t){return g=t,this},this.onComplete=function(t){return _=t,this},this.onStop=function(t){return b=t,this},this.update=function(t){var o,c,b;if(h>t)return!0;m===!1&&(null!==y&&y.call(e),m=!0),c=(t-h)/s,c=c>1?1:c,b=p(c);for(o in r)if(void 0!==n[o]){var w=n[o]||0,O=r[o];O instanceof Array?e[o]=d(O,b):("string"==typeof O&&(O=O.startsWith("+")||O.startsWith("-")?w+parseFloat(O,10):parseFloat(O,10)),"number"==typeof O&&(e[o]=w+(O-w)*b))}if(null!==g&&g.call(e,b),1===c){if(u>0){isFinite(u)&&u--;for(o in i){if("string"==typeof r[o]&&(i[o]=i[o]+parseFloat(r[o],10)),a){var x=i[o];i[o]=r[o],r[o]=x}n[o]=i[o]}return a&&(f=!f),h=t+l,!0}null!==_&&_.call(e);for(var S=0,M=v.length;M>S;S++)v[S].start(h+s);return!1}return!0}},o.Easing={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.cos(t*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return.5*(1-Math.cos(Math.PI*t))}},Exponential:{In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},Out:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},InOut:function(t){var e,n=.1,r=.4;return 0===t?0:1===t?1:(!n||1>n?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)}},Back:{In:function(t){var e=1.70158;return t*t*((e+1)*t-e)},Out:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-o.Easing.Bounce.Out(1-t)},Out:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return.5>t?.5*o.Easing.Bounce.In(2*t):.5*o.Easing.Bounce.Out(2*t-1)+.5}}},o.Interpolation={Linear:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),s=o.Interpolation.Utils.Linear;return 0>e?s(t[0],t[1],r):e>1?s(t[n],t[n-1],n-r):s(t[i],t[i+1>n?n:i+1],r-i)},Bezier:function(t,e){for(var n=0,r=t.length-1,i=Math.pow,s=o.Interpolation.Utils.Bernstein,u=0;r>=u;u++)n+=i(1-e,r-u)*i(e,u)*t[u]*s(r,u);return n},CatmullRom:function(t,e){var n=t.length-1,r=n*e,i=Math.floor(r),s=o.Interpolation.Utils.CatmullRom;return t[0]===t[n]?(0>e&&(i=Math.floor(r=n*(1+e))),s(t[(i-1+n)%n],t[i],t[(i+1)%n],t[(i+2)%n],r-i)):0>e?t[0]-(s(t[0],t[0],t[1],t[1],-r)-t[0]):e>1?t[n]-(s(t[n],t[n],t[n-1],t[n-1],r-n)-t[n]):s(t[i?i-1:0],t[i],t[i+1>n?n:i+1],t[i+2>n?n:i+2],r-i)},Utils:{Linear:function(t,e,n){return(e-t)*n+t},Bernstein:function(t,e){var n=o.Interpolation.Utils.Factorial;return n(t)/n(e)/n(t-e)},Factorial:function(){var t=[1];return function(e){var n=1;if(t[e])return t[e];for(var r=e;r>1;r--)n*=r;return t[e]=n,n}}(),CatmullRom:function(t,e,n,r,i){var o=.5*(n-t),s=.5*(r-e),u=i*i,a=i*u;return(2*e-2*n+o+s)*a+(-3*e+3*n-2*o-s)*u+o*i+e}}},function(n){r=[],i=function(){return o}.apply(e,r),!(void 0!==i&&(t.exports=i))}(this)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(297),o=r(i),s=n(300),u=r(s),a=n(387),c=r(a);e["default"]=function(){function t(){return e.apply(this,arguments)}var e=(0,c["default"])(o["default"].mark(function n(){return o["default"].wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("complete"===document.readyState){t.next=3;break}return t.next=3,new u["default"](function(t){window.addEventListener("load",t)});case 3:case"end":return t.stop()}},n,this)}));return t}()},function(t,e,n){(function(e){var r="object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this,i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n(298),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(s){r.regeneratorRuntime=void 0}t.exports={"default":t.exports,__esModule:!0}}).call(e,function(){return this}())},function(t,e,n){(function(t,e,r){"use strict";function i(t){return t&&t.__esModule?t:{"default":t}}var o=n(300),s=i(o),u=n(368),a=i(u),c=n(371),f=i(c),l=n(374),h=i(l),p=n(375),d=i(p),v=n(377),y=i(v);!function(t){function n(t,e,n,r){var i=(0,f["default"])((e||o).prototype),s=new b(r||[]);return i._invoke=m(t,n,s),i}function i(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function o(){}function u(){}function c(){}function l(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function p(t){this.arg=t}function v(t){function e(e,n){var r=t[e](n),i=r.value;return i instanceof p?s["default"].resolve(i.arg).then(o,u):s["default"].resolve(i).then(function(t){return r.value=t,r})}function n(t,n){function r(){return e(t,n)}return i=i?i.then(r,r):new s["default"](function(t){t(r())})}"object"===("undefined"==typeof r?"undefined":(0,h["default"])(r))&&r.domain&&(e=r.domain.bind(e));var i,o=e.bind(t,"next"),u=e.bind(t,"throw");e.bind(t,"return");this._invoke=n}function m(t,e,n){var r=E;return function(o,s){if(r===T)throw new Error("Generator is already running");if(r===C){if("throw"===o)throw s;return O()}for(;;){var u=n.delegate;if(u){if("return"===o||"throw"===o&&u.iterator[o]===x){n.delegate=null;var a=u.iterator["return"];if(a){var c=i(a,u.iterator,s);if("throw"===c.type){o="throw",s=c.arg;continue}}if("return"===o)continue}var c=i(u.iterator[o],u.iterator,s);if("throw"===c.type){n.delegate=null,o="throw",s=c.arg;continue}o="next",s=x;var f=c.arg;if(!f.done)return r=j,f;n[u.resultName]=f.value,n.next=u.nextLoc,n.delegate=null}if("next"===o)n._sent=s,r===j?n.sent=s:n.sent=x;else if("throw"===o){if(r===E)throw r=C,s;n.dispatchException(s)&&(o="next",s=x)}else"return"===o&&n.abrupt("return",s);r=T;var c=i(t,e,n);if("normal"===c.type){r=n.done?C:j;var f={value:c.arg,done:n.done};if(c.arg!==I)return f;n.delegate&&"next"===o&&(s=x)}else"throw"===c.type&&(r=C,o="throw",s=c.arg)}}}function g(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 _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function b(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(g,this),this.reset(!0)}function w(t){if(t){var e=t[M];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function i(){for(;++n<t.length;)if(S.call(t,n))return i.value=t[n],i.done=!1,i;return i.value=x,i.done=!0,i};return r.next=r;
}}return{next:O}}function O(){return{value:x,done:!0}}var x,S=Object.prototype.hasOwnProperty,M="function"==typeof y["default"]&&d["default"]||"@@iterator",k="object"===(0,h["default"])(e),P=t.regeneratorRuntime;if(P)return void(k&&(e.exports=P));P=t.regeneratorRuntime=k?e.exports:{},P.wrap=n;var E="suspendedStart",j="suspendedYield",T="executing",C="completed",I={},A=c.prototype=o.prototype;u.prototype=A.constructor=c,c.constructor=u,u.displayName="GeneratorFunction",P.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return e?e===u||"GeneratorFunction"===(e.displayName||e.name):!1},P.mark=function(t){return a["default"]?(0,a["default"])(t,c):t.__proto__=c,t.prototype=(0,f["default"])(A),t},P.awrap=function(t){return new p(t)},l(v.prototype),P.async=function(t,e,r,i){var o=new v(n(t,e,r,i));return P.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},l(A),A[M]=function(){return this},A.toString=function(){return"[object Generator]"},P.keys=function(t){var e=[];for(var n in t)e.push(n);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}},P.values=w,b.prototype={constructor:b,reset:function(t){if(this.prev=0,this.next=0,this.sent=x,this.done=!1,this.delegate=null,this.tryEntries.forEach(_),!t)for(var e in this)"t"===e.charAt(0)&&S.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=x)},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,r){return o.type="throw",o.arg=t,n.next=e,!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var s=S.call(i,"catchLoc"),u=S.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(s){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 n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&S.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;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.next=i.finallyLoc:this.complete(o),I},complete:function(t,e){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e)},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),_(n),I}},"catch":function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},I}}}("object"===("undefined"==typeof t?"undefined":(0,h["default"])(t))?t:"object"===("undefined"==typeof window?"undefined":(0,h["default"])(window))?window:"object"===("undefined"==typeof self?"undefined":(0,h["default"])(self))?self:void 0)}).call(e,function(){return this}(),n(299)(t),n(288))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){t.exports={"default":n(301),__esModule:!0}},function(t,e,n){n(302),n(303),n(347),n(351),t.exports=n(311).Promise},function(t,e){},function(t,e,n){"use strict";var r=n(304)(!0);n(307)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(305),i=n(306);t.exports=function(t){return function(e,n){var o,s,u=String(i(e)),a=r(n),c=u.length;return 0>a||a>=c?t?"":void 0:(o=u.charCodeAt(a),55296>o||o>56319||a+1===c||(s=u.charCodeAt(a+1))<56320||s>57343?t?u.charAt(a):o:t?u.slice(a,a+2):(o-55296<<10)+(s-56320)+65536)}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(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,n){"use strict";var r=n(308),i=n(309),o=n(324),s=n(314),u=n(325),a=n(326),c=n(327),f=n(343),l=n(345),h=n(344)("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",y="values",m=function(){return this};t.exports=function(t,e,n,g,_,b,w){c(n,e,g);var O,x,S,M=function(t){if(!p&&t in j)return j[t];switch(t){case v:return function(){return new n(this,t)};case y:return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",P=_==y,E=!1,j=t.prototype,T=j[h]||j[d]||_&&j[_],C=T||M(_),I=_?P?M("entries"):C:void 0,A="Array"==e?j.entries||T:T;if(A&&(S=l(A.call(new t)),S!==Object.prototype&&(f(S,k,!0),r||u(S,h)||s(S,h,m))),P&&T&&T.name!==y&&(E=!0,C=function(){return T.call(this)}),r&&!w||!p&&!E&&j[h]||s(j,h,C),a[e]=C,a[k]=m,_)if(O={values:P?C:M(y),keys:b?C:M(v),entries:I},w)for(x in O)x in j||o(j,x,O[x]);else i(i.P+i.F*(p||E),e,O);return O}},function(t,e){t.exports=!0},function(t,e,n){var r=n(310),i=n(311),o=n(312),s=n(314),u="prototype",a=function(t,e,n){var c,f,l,h=t&a.F,p=t&a.G,d=t&a.S,v=t&a.P,y=t&a.B,m=t&a.W,g=p?i:i[e]||(i[e]={}),_=g[u],b=p?r:d?r[e]:(r[e]||{})[u];p&&(n=e);for(c in n)f=!h&&b&&void 0!==b[c],f&&c in g||(l=f?b[c]:n[c],g[c]=p&&"function"!=typeof b[c]?n[c]:y&&f?o(l,r):m&&b[c]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(l):v&&"function"==typeof l?o(Function.call,l):l,v&&((g.virtual||(g.virtual={}))[c]=l,t&a.R&&_&&!_[c]&&s(_,c,l)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.2.2"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(313);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(315),i=n(323);t.exports=n(319)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(316),i=n(318),o=n(322),s=Object.defineProperty;e.f=n(319)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(t,e,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(317);t.exports=function(t){if(!r(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,n){t.exports=!n(319)&&!n(320)(function(){return 7!=Object.defineProperty(n(321)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports=!n(320)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},function(t,e,n){var r=n(317),i=n(310).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(317);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){t.exports=n(314)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(328),i=n(323),o=n(343),s={};n(314)(s,n(344)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(316),i=n(329),o=n(341),s=n(338)("IE_PROTO"),u=function(){},a="prototype",c=function(){var t,e=n(321)("iframe"),r=o.length,i=">";for(e.style.display="none",n(342).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object</script"+i),t.close(),c=t.F;r--;)delete c[a][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[a]=r(t),n=new u,u[a]=null,n[s]=t):n=c(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(315),i=n(316),o=n(330);t.exports=n(319)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),u=s.length,a=0;u>a;)r.f(t,n=s[a++],e[n]);return t}},function(t,e,n){var r=n(331),i=n(341);t.exports=Object.keys||function(t){return r(t,i)}},function(t,e,n){var r=n(325),i=n(332),o=n(335)(!1),s=n(338)("IE_PROTO");t.exports=function(t,e){var n,u=i(t),a=0,c=[];for(n in u)n!=s&&r(u,n)&&c.push(n);for(;e.length>a;)r(u,n=e[a++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(333),i=n(306);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(334);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(332),i=n(336),o=n(337);t.exports=function(t){return function(e,n,s){var u,a=r(e),c=i(a.length),f=o(s,c);if(t&&n!=n){for(;c>f;)if(u=a[f++],u!=u)return!0}else for(;c>f;f++)if((t||f in a)&&a[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(305),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(305),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),0>t?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(339)("keys"),i=n(340);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(310),i="__core-js_shared__",o=r[i]||(r[i]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){t.exports=n(310).document&&document.documentElement},function(t,e,n){var r=n(315).f,i=n(325),o=n(344)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){var r=n(339)("wks"),i=n(340),o=n(310).Symbol,s="function"==typeof o;t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}},function(t,e,n){var r=n(325),i=n(346),o=n(338)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){var r=n(306);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(348);for(var r=n(310),i=n(314),o=n(326),s=n(344)("toStringTag"),u=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],a=0;5>a;a++){var c=u[a],f=r[c],l=f&&f.prototype;l&&!l[s]&&i(l,s,c),o[c]=o.Array}},function(t,e,n){"use strict";var r=n(349),i=n(350),o=n(326),s=n(332);t.exports=n(307)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,n):"values"==e?i(0,t[n]):i(0,[n,t[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r,i,o,s=n(308),u=n(310),a=n(312),c=n(352),f=n(309),l=n(317),h=(n(316),n(313)),p=n(353),d=n(354),v=(n(358).set,n(361)),y=n(362).set,m=n(364),g="Promise",_=u.TypeError,b=u.process,w=u[g],b=u.process,O="process"==c(b),x=function(){},S=!!function(){try{var t=w.resolve(1),e=(t.constructor={})[n(344)("species")]=function(t){t(x,x)};return(O||"function"==typeof PromiseRejectionEvent)&&t.then(x)instanceof e}catch(r){}}(),M=function(t,e){return t===e||t===w&&e===o},k=function(t){var e;return l(t)&&"function"==typeof(e=t.then)?e:!1},P=function(t){return M(w,t)?new E(t):new i(t)},E=i=function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw _("Bad Promise constructor");e=t,n=r}),this.resolve=h(e),this.reject=h(n)},j=function(t){try{t()}catch(e){return{error:e}}},T=function(t,e){if(!t._n){t._n=!0;var n=t._c;m(function(){for(var r=t._v,i=1==t._s,o=0,s=function(e){var n,o,s=i?e.ok:e.fail,u=e.resolve,a=e.reject,c=e.domain;try{s?(i||(2==t._h&&A(t),t._h=1),s===!0?n=r:(c&&c.enter(),n=s(r),c&&c.exit()),n===e.promise?a(_("Promise-chain cycle")):(o=k(n))?o.call(n,u,a):u(n)):a(r)}catch(f){a(f)}};n.length>o;)s(n[o++]);t._c=[],t._n=!1,e&&!t._h&&C(t)})}},C=function(t){y.call(u,function(){var e,n,r,i=t._v;if(I(t)&&(e=j(function(){O?b.emit("unhandledRejection",i,t):(n=u.onunhandledrejection)?n({promise:t,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),t._h=O||I(t)?2:1),t._a=void 0,e)throw e.error})},I=function(t){if(1==t._h)return!1;for(var e,n=t._a||t._c,r=0;n.length>r;)if(e=n[r++],e.fail||!I(e.promise))return!1;return!0},A=function(t){y.call(u,function(){var e;O?b.emit("rejectionHandled",t):(e=u.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()),T(e,!0))},F=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw _("Promise can't be resolved itself");(e=k(t))?m(function(){var r={_w:n,_d:!1};try{e.call(t,a(F,r,1),a(z,r,1))}catch(i){z.call(r,i)}}):(n._v=t,n._s=1,T(n,!1))}catch(r){z.call({_w:n,_d:!1},r)}}};S||(w=function(t){p(this,w,g,"_h"),h(t),r.call(this);try{t(a(F,this,1),a(z,this,1))}catch(e){z.call(this,e)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(365)(w.prototype,{then:function(t,e){var n=P(v(this,w));return n.ok="function"==typeof t?t:!0,n.fail="function"==typeof e&&e,n.domain=O?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&T(this,!1),n.promise},"catch":function(t){return this.then(void 0,t)}}),E=function(){var t=new r;this.promise=t,this.resolve=a(F,t,1),this.reject=a(z,t,1)}),f(f.G+f.W+f.F*!S,{Promise:w}),n(343)(w,g),n(366)(g),o=n(311)[g],f(f.S+f.F*!S,g,{reject:function(t){var e=P(this),n=e.reject;return n(t),e.promise}}),f(f.S+f.F*(s||!S),g,{resolve:function(t){if(t instanceof w&&M(t.constructor,this))return t;var e=P(this),n=e.resolve;return n(t),e.promise}}),f(f.S+f.F*!(S&&n(367)(function(t){w.all(t)["catch"](x)})),g,{all:function(t){var e=this,n=P(e),r=n.resolve,i=n.reject,o=j(function(){var n=[],o=0,s=1;d(t,!1,function(t){var u=o++,a=!1;n.push(void 0),s++,e.resolve(t).then(function(t){a||(a=!0,n[u]=t,--s||r(n))},i)}),--s||r(n)});return o&&i(o.error),n.promise},race:function(t){var e=this,n=P(e),r=n.reject,i=j(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return i&&r(i.error),n.promise}})},function(t,e,n){var r=n(334),i=n(344)("toStringTag"),o="Arguments"==r(function(){return arguments}()),s=function(t,e){try{return t[e]}catch(n){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=s(e=Object(t),i))?n:o?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(312),i=n(355),o=n(356),s=n(316),u=n(336),a=n(357);t.exports=function(t,e,n,c,f){var l,h,p,d=f?function(){return t}:a(t),v=r(n,c,e?2:1),y=0;if("function"!=typeof d)throw TypeError(t+" is not iterable!");if(o(d))for(l=u(t.length);l>y;y++)e?v(s(h=t[y])[0],h[1]):v(t[y]);else for(p=d.call(t);!(h=p.next()).done;)i(p,v,h.value,e)}},function(t,e,n){var r=n(316);t.exports=function(t,e,n,i){try{return i?e(r(n)[0],n[1]):e(n)}catch(o){var s=t["return"];throw void 0!==s&&r(s.call(t)),o}}},function(t,e,n){var r=n(326),i=n(344)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,e,n){var r=n(352),i=n(344)("iterator"),o=n(326);t.exports=n(311).getIteratorMethod=function(t){return void 0!=t?t[i]||t["@@iterator"]||o[r(t)]:void 0}},function(t,e,n){var r=n(317),i=n(316),o=function(t,e){if(i(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n(312)(Function.call,n(359).f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(i){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){var r=n(360),i=n(323),o=n(332),s=n(322),u=n(325),a=n(318),c=Object.getOwnPropertyDescriptor;e.f=n(319)?c:function(t,e){if(t=o(t),e=s(e,!0),a)try{return c(t,e)}catch(n){}return u(t,e)?i(!r.f.call(t,e),t[e]):void 0}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var r=n(316),i=n(313),o=n(344)("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||void 0==(n=r(s)[o])?e:i(n)}},function(t,e,n){var r,i,o,s=n(312),u=n(363),a=n(342),c=n(321),f=n(310),l=f.process,h=f.setImmediate,p=f.clearImmediate,d=f.MessageChannel,v=0,y={},m="onreadystatechange",g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},_=function(t){g.call(t.data)};h&&p||(h=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return y[++v]=function(){u("function"==typeof t?t:Function(t),e)},r(v),v},p=function(t){delete y[t]},"process"==n(334)(l)?r=function(t){l.nextTick(s(g,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=_,r=s(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",_,!1)):r=m in c("script")?function(t){a.appendChild(c("script"))[m]=function(){a.removeChild(this),g.call(t)}}:function(t){setTimeout(s(g,t,1),0)}),t.exports={set:h,clear:p}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r,i,o,s=n(310),u=n(362).set,a=s.MutationObserver||s.WebKitMutationObserver,c=s.process,f=s.Promise,l="process"==n(334)(c),h=function(){var t,e;for(l&&(t=c.domain)&&t.exit();r;)e=r.fn,e(),r=r.next;i=void 0,t&&t.enter()};if(l)o=function(){c.nextTick(h)};else if(a){var p=!0,d=document.createTextNode("");new a(h).observe(d,{characterData:!0}),o=function(){d.data=p=!p}}else o=f&&f.resolve?function(){f.resolve().then(h)}:function(){u.call(s,h)};t.exports=function(t){var e={fn:t,next:void 0};i&&(i.next=e),r||(r=e,o()),i=e}},function(t,e,n){var r=n(314);t.exports=function(t,e,n){for(var i in e)n&&t[i]?t[i]=e[i]:r(t,i,e[i]);return t}},function(t,e,n){"use strict";var r=n(310),i=n(311),o=n(315),s=n(319),u=n(344)("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:r[t];s&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(344)("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(s){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},t(o)}catch(u){}return n}},function(t,e,n){t.exports={"default":n(369),__esModule:!0}},function(t,e,n){n(370),t.exports=n(311).Object.setPrototypeOf},function(t,e,n){var r=n(309);r(r.S,"Object",{setPrototypeOf:n(358).set})},function(t,e,n){t.exports={"default":n(372),__esModule:!0}},function(t,e,n){n(373);var r=n(311).Object;t.exports=function(t,e){return r.create(t,e)}},function(t,e,n){var r=n(309);r(r.S,"Object",{create:n(328)})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(375),o=r(i),s=n(377),u=r(s),a="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"]?"symbol":typeof t};e["default"]="function"==typeof u["default"]&&"symbol"===a(o["default"])?function(t){return"undefined"==typeof t?"undefined":a(t)}:function(t){return t&&"function"==typeof u["default"]&&t.constructor===u["default"]?"symbol":"undefined"==typeof t?"undefined":a(t)}},function(t,e,n){t.exports={"default":n(376),__esModule:!0}},function(t,e,n){n(303),n(347),t.exports=n(344)("iterator")},function(t,e,n){t.exports={"default":n(378),__esModule:!0}},function(t,e,n){n(379),n(302),t.exports=n(311).Symbol},function(t,e,n){"use strict";var r=n(310),i=n(311),o=n(325),s=n(319),u=n(309),a=n(324),c=n(380).KEY,f=n(320),l=n(339),h=n(343),p=n(340),d=n(344),v=n(381),y=n(382),m=n(384),g=n(316),_=n(332),b=n(322),w=n(323),O=n(328),x=n(385),S=n(359),M=n(315),k=S.f,P=M.f,E=x.f,j=r.Symbol,T=r.JSON,C=T&&T.stringify,I=!1,A="prototype",z=d("_hidden"),F=d("toPrimitive"),R={}.propertyIsEnumerable,L=l("symbol-registry"),N=l("symbols"),D=Object[A],G="function"==typeof j,B=r.QObject,H=s&&f(function(){return 7!=O(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=k(D,e);r&&delete D[e],P(t,e,n),r&&t!==D&&P(D,e,r)}:P,W=function(t){var e=N[t]=O(j[A]);return e._k=t,s&&I&&H(D,t,{configurable:!0,set:function(e){o(this,z)&&o(this[z],t)&&(this[z][t]=!1),H(this,t,w(1,e))}}),e},V=G&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},U=function(t,e,n){return g(t),e=b(e,!0),g(n),o(N,e)?(n.enumerable?(o(t,z)&&t[z][e]&&(t[z][e]=!1),n=O(n,{enumerable:w(0,!1)})):(o(t,z)||P(t,z,w(1,{})),t[z][e]=!0),H(t,e,n)):P(t,e,n)},Y=function(t,e){g(t);for(var n,r=y(e=_(e)),i=0,o=r.length;o>i;)U(t,n=r[i++],e[n]);return t},X=function(t,e){return void 0===e?O(t):Y(O(t),e)},Q=function(t){var e=R.call(this,t=b(t,!0));return e||!o(this,t)||!o(N,t)||o(this,z)&&this[z][t]?e:!0},q=function(t,e){var n=k(t=_(t),e=b(e,!0));return!n||!o(N,e)||o(t,z)&&t[z][e]||(n.enumerable=!0),n},J=function(t){for(var e,n=E(_(t)),r=[],i=0;n.length>i;)o(N,e=n[i++])||e==z||e==c||r.push(e);return r},Z=function(t){for(var e,n=E(_(t)),r=[],i=0;n.length>i;)o(N,e=n[i++])&&r.push(N[e]);return r},K=function(t){if(void 0!==t&&!V(t)){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);return e=r[1],"function"==typeof e&&(n=e),(n||!m(e))&&(e=function(t,e){return n&&(e=n.call(this,t,e)),V(e)?void 0:e}),r[1]=e,C.apply(T,r)}},$=f(function(){var t=j();return"[null]"!=C([t])||"{}"!=C({a:t})||"{}"!=C(Object(t))});G||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");return W(p(arguments.length>0?arguments[0]:void 0))},a(j[A],"toString",function(){return this._k}),S.f=q,M.f=U,n(386).f=x.f=J,n(360).f=Q,n(383).f=Z,s&&!n(308)&&a(D,"propertyIsEnumerable",Q,!0)),u(u.G+u.W+u.F*!G,{Symbol:j});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;){var nt=tt[et++],rt=i.Symbol,it=d(nt);nt in rt||P(rt,nt,{value:G?it:W(it)})}B&&B[A]&&B[A].findChild||(I=!0),u(u.S+u.F*!G,"Symbol",{"for":function(t){return o(L,t+="")?L[t]:L[t]=j(t)},keyFor:function(t){if(V(t))return v(L,t);throw TypeError(t+" is not a symbol!")},useSetter:function(){I=!0},useSimple:function(){I=!1}}),u(u.S+u.F*!G,"Object",{create:X,defineProperty:U,defineProperties:Y,getOwnPropertyDescriptor:q,getOwnPropertyNames:J,getOwnPropertySymbols:Z}),T&&u(u.S+u.F*(!G||$),"JSON",{stringify:K}),j[A][F]||n(314)(j[A],F,j[A].valueOf),h(j,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},function(t,e,n){var r=n(340)("meta"),i=n(317),o=n(325),s=n(315).f,u=0,a=Object.isExtensible||function(){return!0},c=!n(320)(function(){return a(Object.preventExtensions({}))}),f=function(t){s(t,r,{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,r)){if(!a(t))return"F";if(!e)return"E";f(t)}return t[r].i},h=function(t,e){if(!o(t,r)){if(!a(t))return!0;if(!e)return!1;f(t)}return t[r].w},p=function(t){return c&&d.NEED&&a(t)&&!o(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:l,getWeak:h,onFreeze:p}},function(t,e,n){var r=n(330),i=n(332);t.exports=function(t,e){for(var n,o=i(t),s=r(o),u=s.length,a=0;u>a;)if(o[n=s[a++]]===e)return n}},function(t,e,n){var r=n(330),i=n(383),o=n(360);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,u=n(t),a=o.f,c=0;u.length>c;)a.call(t,s=u[c++])&&e.push(s);return e}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(334);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(332),i=n(386).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return i(t)}catch(e){return s.slice()}};t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?u(t):i(r(t))}},function(t,e,n){var r=n(331),i=n(341).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}e.__esModule=!0;var i=n(300),o=r(i);e["default"]=function(t){return function(){var e=t.apply(this,arguments);return new o["default"](function(t,n){function r(i,s){try{var u=e[i](s),a=u.value}catch(c){return void n(c)}return u.done?void t(a):o["default"].resolve(a).then(function(t){return r("next",t)},function(t){return r("throw",t)})}return r("next")})}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(295),o=r(i);e["default"]={Linear:o["default"].Easing.Linear.None,ExponentialIn:o["default"].Easing.Exponential.In,ExponentialOut:o["default"].Easing.Exponential.InOut,ExponentialInOut:o["default"].Easing.Exponential.InOut,QuadraticIn:o["default"].Easing.Quadratic.In,QuadraticOut:o["default"].Easing.Quadratic.InOut,QuadraticInOut:o["default"].Easing.Quadratic.InOut,CubicIn:o["default"].Easing.Cubic.In,CubicOut:o["default"].Easing.Cubic.InOut,CubicInOut:o["default"].Easing.Cubic.InOut,QuarticIn:o["default"].Easing.Quartic.In,QuarticOut:o["default"].Easing.Quartic.InOut,QuarticInOut:o["default"].Easing.Quartic.InOut,QuinticIn:o["default"].Easing.Quintic.In,QuinticOut:o["default"].Easing.Quintic.InOut,QuinticInOut:o["default"].Easing.Quintic.InOut,SinusoidalIn:o["default"].Easing.Sinusoidal.In,SinusoidalOut:o["default"].Easing.Sinusoidal.InOut,SinusoidalInOut:o["default"].Easing.Sinusoidal.InOut,CircularIn:o["default"].Easing.Circular.In,CircularOut:o["default"].Easing.Circular.InOut,CircularInOut:o["default"].Easing.Circular.InOut,ElasticIn:o["default"].Easing.Elastic.In,ElasticOut:o["default"].Easing.Elastic.InOut,ElasticInOut:o["default"].Easing.Elastic.InOut,BackIn:o["default"].Easing.Back.In,BackOut:o["default"].Easing.Back.InOut,BackInOut:o["default"].Easing.Back.InOut,BounceIn:o["default"].Easing.Bounce.In,BounceOut:o["default"].Easing.Bounce.InOut,BounceInOut:o["default"].Easing.Bounce.InOut}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function o(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function r(i,o){try{var s=e[i](o),u=s.value}catch(a){return void n(a)}return s.done?void t(u):Promise.resolve(u).then(function(t){return r("next",t)},function(t){return r("throw",t)})}return r("next")})}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t){return"number"!=typeof t||Object.is(t,NaN)||Object.is(t,1/0)?!1:!0}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(390);var c=n(391),f=r(c),l=n(393),h=r(l),p=function(){function t(e){s(this,t),this.element=e}return a(t,[{key:"setClasses",value:function(){var t;return arguments.length&&(t=this.element.classList).add.apply(t,arguments),this}}]),t}(),d=function(){function t(){var e=arguments.length<=0||void 0===arguments[0]?0:arguments[0],n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?0:arguments[2];s(this,t),this._x=e,this._y=n,this._z=r}return a(t,[{key:"onChanged",value:function(){}},{key:"x",set:function(t){this._x=t,this.onChanged()},get:function(){return this._x}},{key:"y",set:function(t){this._y=t,this.onChanged()},get:function(){return this._y}},{key:"z",set:function(t){this._z=t,this.onChanged()},get:function(){return this._z}}]),t}(),v=function(){function t(){var e=this,n=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=arguments[1];s(this,t),this._el=new p(r||this._makeElement()),this._el.element._associateImperativeNode(this),this._mounted=!1,this._parent=null,this._children=[],this._scene=null,this._properties={position:new d(0,0,0),rotation:new d(0,0,0),scale:new d(1,1,1),origin:new d(.5,.5,.5),align:new d(0,0,0),mountPoint:new d(0,0,0),sizeMode:new d("absolute","absolute","absolute"),absoluteSize:new d(0,0,0),proportionalSize:new d(1,1,1),transform:new window.DOMMatrix,style:{opacity:1}};var i=this,o=function(){i._needsToBeRendered()};this._properties.position.onChanged=o,this._properties.rotation.onChanged=o,this._properties.scale.onChanged=o,this._properties.origin.onChanged=o,this._properties.align.onChanged=o,this._properties.mountPoint.onChanged=o,this._properties.sizeMode.onChanged=o,this._properties.absoluteSize.onChanged=o,this._properties.proportionalSize.onChanged=o,this.properties=n,this._resolveScenePromise=null,this._scenePromise=new Promise(function(t){return e._resolveScenePromise=t}),this._resolveMountPromise=null,this._mountPromise=new Promise(function(t){return e._resolveMountPromise=t}),this._waitForSceneThenResolveMountPromise(),this._init()}return a(t,[{key:"_init",value:function(){this._needsToBeRendered()}},{key:"_makeElement",value:function(){return new h["default"]}},{key:"_getScenePromise",value:function(){var t=this;return this._scene||this._scenePromise||(this._scenePromise=new Promise(function(e){return t._resolveScenePromise=e})),this._scenePromise}},{key:"_waitForSceneThenResolveMountPromise",value:function(){function t(){return e.apply(this,arguments)}var e=o(regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("Node"!=this.constructor.name){t.next=6;break}return t.next=3,this._getScenePromise();case 3:return t.next=5,this._scene.mountPromise;case 5:this._resolveMountPromise(!0);case 6:case"end":return t.stop()}},n,this)}));return t}()},{key:"_needsToBeRendered",value:function(){function t(){return e.apply(this,arguments)}var e=o(regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this._mounted){t.next=3;break}return t.next=3,this.mountPromise;
case 3:f["default"]._setNodeToBeRendered(this),f["default"]._inFrame||f["default"]._startAnimationLoop();case 5:case"end":return t.stop()}},n,this)}));return t}()},{key:"addChild",value:function(e){if(!(e instanceof t))throw new Error("Node.addChild expects the childNode argument to be a Node instance.");if("Scene"==e.constructor.name)throw new Error("\n A Scene cannot currently be added to another Node.\n This may change in the future. For now, just mount\n a new Scene onto an HTMLElement (which can be the\n element held by a Node).\n ");if(e._parent!==this)return e._parent&&e._parent.removeChild(e),e._parent=this,this._children.push(e),(e._scene||e.scene)&&(e._resolveScenePromise(e._scene),e._giveSceneRefToChildren()),this._mountChildElement(e),this}},{key:"_giveSceneRefToChildren",value:function(){var t=!0,e=!1,n=void 0;try{for(var r,i=this._children[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){var o=r.value;o._scene=this._scene,o._resolveScenePromise(o._scene),o._giveSceneRefToChildren()}}catch(s){e=!0,n=s}finally{try{!t&&i["return"]&&i["return"]()}finally{if(e)throw n}}}},{key:"addChildren",value:function(t){var e=this;return t.forEach(function(t){return e.addChild(t)}),this}},{key:"removeChild",value:function(e){var n=this._children.indexOf(e)>=0;return e instanceof t&&n&&(e._parent=null,e._scene=null,e._scenePromise=null,e._mounted=!1,e._mountPromise=null,this._children.splice(this._children.indexOf(e),1),this._detachElement(e)),this}},{key:"removeChildren",value:function(t){var e=this;return t.forEach(function(t){return e.removeChild(t)}),this}},{key:"_render",value:function(t){return this._setMatrix3d(this._calculateMatrix()),this._applySize(),this._applyStyles(),this}},{key:"_mountChildElement",value:function(t){t._mounted||t._parent&&(t._el.element.parentNode!==t._parent._el.element&&t._parent._el.element.appendChild(t._el.element),t._mounted=!0)}},{key:"_detachElement",value:function(t){t._el.element.parentNode&&t._el.element.parentNode.removeChild(t._el.element)}},{key:"_renderChildren",value:function(){var t=!0,e=!1,n=void 0;try{for(var r,i=this._children[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){var o=r.value;o._render()}}catch(s){e=!0,n=s}finally{try{!t&&i["return"]&&i["return"]()}finally{if(e)throw n}}}},{key:"_applySize",value:function(){var t=this._properties.sizeMode,e=this._properties.absoluteSize,n=this._properties.proportionalSize;"absolute"===t.x?this._applyStyle("width",e.x+"px"):"proportional"===t.x&&this._applyStyle("width",100*n.x+"%"),"absolute"===t.y?this._applyStyle("height",e.y+"px"):"proportional"===t.y&&this._applyStyle("height",100*n.y+"%")}},{key:"_calculateMatrix",value:function(){var t=new window.DOMMatrix,e=[0,0,0];if(this._parent){var n=this._parent.actualSize;e[0]=n.x*this._properties.align.x,e[1]=n.y*this._properties.align.y,e[2]=n.z*this._properties.align.z}var r=[0,0,0],i=this.actualSize;r[0]=i.x*this._properties.mountPoint.x,r[1]=i.y*this._properties.mountPoint.y,r[2]=i.z*this._properties.mountPoint.z;var o=[];o[0]=this._properties.position.x+e[0]-r[0],o[1]=this._properties.position.y+e[1]-r[1],o[2]=this._properties.position.z+e[2]-r[2],t.translateSelf(o[0],o[1],o[2]);var s=this._properties.rotation;return t.rotateAxisAngleSelf(1,0,0,s.x),t.rotateAxisAngleSelf(0,1,0,s.y),t.rotateAxisAngleSelf(0,0,1,s.z),t}},{key:"_applyTransform",value:function(){var t=this._properties.transform,e="matrix3d(\n "+t.m11+",\n "+t.m12+",\n "+t.m13+",\n "+t.m14+",\n "+t.m21+",\n "+t.m22+",\n "+t.m23+",\n "+t.m24+",\n "+t.m31+",\n "+t.m32+",\n "+t.m33+",\n "+t.m34+",\n "+t.m41+",\n "+t.m42+",\n "+t.m43+",\n "+t.m44+"\n )";this._applyStyle("transform",e)}},{key:"_applyStyles",value:function(){var t=!0,e=!1,n=void 0;try{for(var r,i=Object.keys(this._properties.style)[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){var o=r.value;this._applyStyle(o,this._properties.style[o])}}catch(s){e=!0,n=s}finally{try{!t&&i["return"]&&i["return"]()}finally{if(e)throw n}}}},{key:"_applyStyle",value:function(t,e){this._el.element.style[t]=e}},{key:"_setMatrix3d",value:function(t){this._properties.transform=t,this._applyTransform()}},{key:"mountPromise",get:function(){var t=this;return this._mounted||this._mountPromise||(this._mountPromise=new Promise(function(e){return t._resolveMountPromise=e}),this._waitForSceneThenResolveMountPromise()),this._mountPromise}},{key:"parent",get:function(){return this._parent}},{key:"children",get:function(){return[].concat(i(this._children))}},{key:"element",get:function(){return this._el.element}},{key:"scene",get:function(){return this._scene?this._scene:this._parent&&this._parent._scene?(this._scene=this._parent._scene,this._scene):("Scene"==this.constructor.name?this._scene=this:this._parent&&(this._scene=this._parent.scene),this._scene)}},{key:"position",set:function(t){if(!(t instanceof Object))throw new TypeError("Invalid value for Node#position.");"undefined"!=typeof t.x&&(this._properties.position._x=t.x),"undefined"!=typeof t.y&&(this._properties.position._y=t.y),"undefined"!=typeof t.z&&(this._properties.position._z=t.z),this._needsToBeRendered()},get:function(){return this._properties.position}},{key:"rotation",set:function(t){if(!(t instanceof Object))throw new TypeError("Invalid value for Node#rotation.");"undefined"!=typeof t.x&&(this._properties.rotation._x=t.x),"undefined"!=typeof t.y&&(this._properties.rotation._y=t.y),"undefined"!=typeof t.z&&(this._properties.rotation._z=t.z),this._needsToBeRendered()},get:function(){return this._properties.rotation}},{key:"scale",set:function(t){if(!(t instanceof Object))throw new TypeError("Invalid value for Node#scale.");"undefined"!=typeof t.x&&(this._properties.scale._x=t.x),"undefined"!=typeof t.y&&(this._properties.scale._y=t.y),"undefined"!=typeof t.z&&(this._properties.scale._z=t.z),this._needsToBeRendered()},get:function(){return this._properties.scale}},{key:"opacity",set:function(t){if(!u(t))throw new Error("Expected a real number for Node#opacity.");this._properties.style.opacity=t,this._needsToBeRendered()},get:function(){return this._properties.style.opacity}},{key:"sizeMode",set:function(t){if(!(t instanceof Object))throw new TypeError("Invalid value for Node#sizeMode.");"undefined"!=typeof t.x&&(this._properties.sizeMode._x=t.x),"undefined"!=typeof t.y&&(this._properties.sizeMode._y=t.y),"undefined"!=typeof t.z&&(this._properties.sizeMode._z=t.z),this._needsToBeRendered()},get:function(){return this._properties.sizeMode}},{key:"absoluteSize",set:function(t){if(!(t instanceof Object))throw new TypeError("Invalid value for Node#absoluteSize.");"undefined"!=typeof t.x&&(this._properties.absoluteSize._x=t.x),"undefined"!=typeof t.y&&(this._properties.absoluteSize._y=t.y),"undefined"!=typeof t.z&&(this._properties.absoluteSize._z=t.z),this._needsToBeRendered()},get:function(){return this._properties.absoluteSize}},{key:"actualSize",get:function(){var t={};return"absolute"===this._properties.sizeMode.x?t.x=this._properties.absoluteSize.x:"proportional"===this._properties.sizeMode.x&&(t.x=parseInt(getComputedStyle(this._el.element).getPropertyValue("width"))),"absolute"===this._properties.sizeMode.y?t.y=this._properties.absoluteSize.y:"proportional"===this._properties.sizeMode.y&&(t.y=parseInt(getComputedStyle(this._el.element).getPropertyValue("height"))),"absolute"===this._properties.sizeMode.z?t.z=this._properties.absoluteSize.z:"proportional"===this._properties.sizeMode.z&&(t.z=0),t}},{key:"proportionalSize",set:function(t){if(!(t instanceof Object))throw new TypeError("Invalid value for Node#proportionalSize.");"undefined"!=typeof t.x&&(this._properties.proportionalSize._x=t.x),"undefined"!=typeof t.y&&(this._properties.proportionalSize._y=t.y),"undefined"!=typeof t.z&&(this._properties.proportionalSize._z=t.z),this._needsToBeRendered()},get:function(){return this._properties.proportionalSize}},{key:"align",set:function(t){if(!(t instanceof Object))throw new TypeError("Invalid value for Node#align.");"undefined"!=typeof t.x&&(this._properties.align._x=t.x),"undefined"!=typeof t.y&&(this._properties.align._y=t.y),"undefined"!=typeof t.z&&(this._properties.align._z=t.z),this._needsToBeRendered()},get:function(){return this._properties.align}},{key:"mountPoint",set:function(t){if(!(t instanceof Object))throw new TypeError("Invalid value for Node#mountPoint.");"undefined"!=typeof t.x&&(this._properties.mountPoint._x=t.x),"undefined"!=typeof t.y&&(this._properties.mountPoint._y=t.y),"undefined"!=typeof t.z&&(this._properties.mountPoint._z=t.z),this._needsToBeRendered()},get:function(){return this._properties.mountPoint}},{key:"properties",set:function(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];t.classes&&this._el.setClasses(t.classes),t.position&&(this.position=t.position),t.rotation&&(this.rotation=t.rotation),t.scale&&(this.scale=t.scale),t.align&&(this.align=t.align),t.sizeMode&&(this.sizeMode=t.sizeMode),t.absoluteSize&&(this.absoluteSize=t.absoluteSize),t.proportionalSize&&(this.proportionalSize=t.proportionalSize),t.style&&"undefined"!=typeof t.style.opacity&&(this.opacity=t.opacity),this._needsToBeRendered()}},{key:"childCount",get:function(){return this._children.length}}]),t}();e["default"]=v},function(t,e,n){!function(e,n){t.exports=n()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){(function(t){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=r(i),s=n(2),u=r(s),a=null;"undefined"!=typeof window?a=window:"undefined"!=typeof t&&(a=t),a&&(a.DOMMatrix=o["default"],a.DOMMatrixReadOnly=u["default"]),e.DOMMatrix=o["default"],e.DOMMatrixReadOnly=u["default"]}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function(t,e,n){for(var r=!0;r;){var i=t,o=e,s=n;r=!1,null===i&&(i=Function.prototype);var u=Object.getOwnPropertyDescriptor(i,o);if(void 0!==u){if("value"in u)return u.value;var a=u.get;if(void 0===a)return;return a.call(s)}var c=Object.getPrototypeOf(i);if(null===c)return;t=c,e=o,n=s,r=!0,u=c=void 0}},a=n(2),c=r(a),f=n(3),l=function(t){function e(){if(i(this,e),0===arguments.length){var t=[1,0,0,1,0,0];u(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t)}else{if(1!==arguments.length)throw new Error("Wrong number of arguments to DOMMatrix constructor.");if("string"==typeof arguments[0]){arguments[0]}else if(arguments[0]instanceof c["default"]){var n=arguments[0];u(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,(0,f.matrixToArray)(n))}else if(arguments[0]instanceof Float32Array||arguments[0]instanceof Float64Array){var r=arguments[0];if(6!==r.length&&16!==r.length)throw new TypeError("The typed array argument to the DOMMatrix constructor has an invalid length.");u(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,Array.from(r))}else if(arguments[0]instanceof Array){var t=arguments[0];if(6!==t.length&&16!==t.length)throw new TypeError("The array argument to the DOMMatrix constructor has an invalid length.");u(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t)}}}return o(e,t),s(e,[{key:"multiplySelf",value:function(t){if(!t instanceof c["default"])throw new Error("The argument to multiplySelf must be an instance of DOMMatrixReadOnly or DOMMatrix");var e=(0,f.multiplyToArray)(this,t);return(0,f.applyArrayValuesToDOMMatrix)(e,this),t.is2D||(this._is2D=!1),this}},{key:"preMultiplySelf",value:function(t){if(!t instanceof c["default"])throw new Error("The argument to multiplySelf must be an instance of DOMMatrixReadOnly or DOMMatrix");var e=(0,f.multiplyToArray)(t,this);return(0,f.applyArrayValuesToDOMMatrix)(e,this),t.is2D||(this._is2D=!1),this}},{key:"translateSelf",value:function(t,n){var r=arguments.length<=2||void 0===arguments[2]?0:arguments[2];if(1===arguments.length)throw new Error("The first two arguments (X and Y translation values) are required (the third, Z translation, is optional).");var i=new e([1,0,0,0,0,1,0,0,0,0,1,0,t,n,r,1]);return this.multiplySelf(i),0!=r&&(this._is2D=!1),this}},{key:"scaleSelf",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return this.translateSelf(n,r),this.multiplySelf(new e([t,0,0,t,0,0])),this.translateSelf(-n,-r),this}},{key:"scale3dSelf",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?0:arguments[1],r=arguments.length<=2||void 0===arguments[2]?0:arguments[2],i=arguments.length<=3||void 0===arguments[3]?0:arguments[3];return this.translateSelf(n,r,i),this.multiplySelf(new e([t,0,0,0,0,t,0,0,0,0,t,0,0,0,0,1])),this.translateSelf(-n,-r,-i),this}},{key:"scaleNonUniformSelf",value:function(t){var n=arguments.length<=1||void 0===arguments[1]?1:arguments[1],r=arguments.length<=2||void 0===arguments[2]?1:arguments[2],i=arguments.length<=3||void 0===arguments[3]?0:arguments[3],o=arguments.length<=4||void 0===arguments[4]?0:arguments[4],s=arguments.length<=5||void 0===arguments[5]?0:arguments[5];return this.translateSelf(i,o,s),this.multiplySelf(new e([t,0,0,0,0,n,0,0,0,0,r,0,0,0,0,1])),this.translateSelf(-i,-o,-s),(1!==r||0!==s)&&(this._is2D=!1),this}},{key:"rotateSelf",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments.length<=2||void 0===arguments[2]?0:arguments[2];this.translateSelf(e,n);var r=0,i=0,o=1;return this.rotateAxisAngleSelf(r,i,o,t),this.translateSelf(-e,-n),this}},{key:"rotateFromVectorSelf",value:function(t,e){throw new Error("rotateFromVectorSelf is not implemented yet.")}},{key:"rotateAxisAngleSelf",value:function(t,n,r,i){var o=new e((0,f.rotateAxisAngleArray)(t,n,r,i));return this.multiplySelf(o),this}},{key:"skewXSelf",value:function(t){throw new Error("skewXSelf is not implemented yet.")}},{key:"skewYSelf",value:function(t){throw new Error("skewYSelf is not implemented yet.")}},{key:"invertSelf",value:function(){throw new Error("invertSelf is not implemented yet.")}},{key:"setMatrixValue",value:function(t){throw new Error("setMatrixValue is not implemented yet.")}},{key:"a",get:function(){return this.m11},set:function(t){this.m11=t}},{key:"b",get:function(){return this.m12},set:function(t){this.m12=t}},{key:"c",get:function(){return this.m21},set:function(t){this.m21=t}},{key:"d",get:function(){return this.m22},set:function(t){this.m22=t}},{key:"e",get:function(){return this.m41},set:function(t){this.m41=t}},{key:"f",get:function(){return this.m42},set:function(t){this.m42=t}},{key:"m11",get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}},{key:"m12",get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}},{key:"m13",get:function(){return this._matrix[8]},set:function(t){this._matrix[8]=t}},{key:"m14",get:function(){return this._matrix[12]},set:function(t){this._matrix[12]=t}},{key:"m21",get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}},{key:"m22",get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}},{key:"m23",get:function(){return this._matrix[9]},set:function(t){this._matrix[9]=t}},{key:"m24",get:function(){return this._matrix[13]},set:function(t){this._matrix[13]=t}},{key:"m31",get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}},{key:"m32",get:function(){return this._matrix[6]},set:function(t){this._matrix[6]=t}},{key:"m33",get:function(){return this._matrix[10]},set:function(t){this._matrix[10]=t}},{key:"m34",get:function(){return this._matrix[14]},set:function(t){this._matrix[14]=t}},{key:"m41",get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}},{key:"m42",get:function(){return this._matrix[7]},set:function(t){this._matrix[7]=t}},{key:"m43",get:function(){return this._matrix[11]},set:function(t){this._matrix[11]=t}},{key:"m44",get:function(){return this._matrix[15]},set:function(t){this._matrix[15]=t}}]),e}(c["default"]);e["default"]=l,t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(1),u=r(s),a=n(3),c=function(){function t(e){if(i(this,t),!(this instanceof u["default"]))throw new TypeError("DOMMatrixReadOnly can't be instantiated directly. Use DOMMatrix instead.");if(this._matrix=new Float64Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this._is2D=!0,this._isIdentity=!0,6===e.length)(0,a.applyArrayValuesToDOMMatrix)(e,this);else{if(16!==e.length)throw new TypeError('DOMMatrixReadOnly constructor argument "numberSequence" must have length 6 or 16.');(0,a.applyArrayValuesToDOMMatrix)(e,this),this._is2D=!1}}return o(t,[{key:"translate",value:function(t,e){var n=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return new u["default"](this).translateSelf(t,e,n)}},{key:"scale",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return new u["default"](this).scaleSelf(t,e,n)}},{key:"scale3d",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments.length<=2||void 0===arguments[2]?0:arguments[2],r=arguments.length<=3||void 0===arguments[3]?0:arguments[3];return new u["default"](this).scale3dSelf(t,e,n,r)}},{key:"scaleNonUniform",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?1:arguments[1],n=arguments.length<=2||void 0===arguments[2]?1:arguments[2],r=arguments.length<=3||void 0===arguments[3]?0:arguments[3],i=arguments.length<=4||void 0===arguments[4]?0:arguments[4],o=arguments.length<=5||void 0===arguments[5]?0:arguments[5];return new u["default"](this).scaleNonUniformSelf(t,e,n,r,i,o)}},{key:"rotate",value:function(t){var e=arguments.length<=1||void 0===arguments[1]?0:arguments[1],n=arguments.length<=2||void 0===arguments[2]?0:arguments[2];return new u["default"](this).rotateSelf(t,e,n)}},{key:"rotateFromVector",value:function(t,e){throw new Error("rotateFromVector is not implemented yet.")}},{key:"rotateAxisAngle",value:function(t,e,n,r){return new u["default"](this).rotateAxisAngleSelf(t,e,n,r)}},{key:"skewX",value:function(t){throw new Error("skewX is not implemented yet.")}},{key:"skewY",value:function(t){throw new Error("skewY is not implemented yet.")}},{key:"multiply",value:function(t){return new u["default"](this).multiplySelf(t)}},{key:"flipX",value:function(){throw new Error("flipX is not implemented yet.")}},{key:"flipY",value:function(){throw new Error("flipY is not implemented yet.")}},{key:"inverse",value:function(){throw new Error("inverse is not implemented yet.")}},{key:"transformPoint",value:function(t){throw new Error("transformPoint is not implemented yet.")}},{key:"toFloat32Array",value:function(){throw new Error("toFloat32Array is not implemented yet.")}},{key:"toFloat64Array",value:function(){throw new Error("toFloat64Array is not implemented yet.")}},{key:"is2D",get:function(){return this._is2D}},{key:"isIdentity",get:function(){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this._isIdentity=!0;for(var e=0,n=this._matrix.length;n>e;e+=1)this._matrix[e]!=t[e]&&(this._isIdentity=!1);return this._isIdentity}},{key:"a",get:function(){return this.m11}},{key:"b",get:function(){return this.m12}},{key:"c",get:function(){return this.m21}},{key:"d",get:function(){return this.m22}},{key:"e",get:function(){return this.m41}},{key:"f",get:function(){return this.m42}},{key:"m11",get:function(){return this._matrix[0]}},{key:"m12",get:function(){return this._matrix[4]}},{key:"m13",get:function(){return this._matrix[8]}},{key:"m14",get:function(){return this._matrix[12]}},{key:"m21",get:function(){return this._matrix[1]}},{key:"m22",get:function(){return this._matrix[5]}},{key:"m23",get:function(){return this._matrix[9]}},{key:"m24",get:function(){return this._matrix[13]}},{key:"m31",get:function(){return this._matrix[2]}},{key:"m32",get:function(){return this._matrix[6]}},{key:"m33",get:function(){return this._matrix[10]}},{key:"m34",get:function(){return this._matrix[14]}},{key:"m41",get:function(){return this._matrix[3]}},{key:"m42",get:function(){return this._matrix[7]}},{key:"m43",get:function(){return this._matrix[11]}},{key:"m44",get:function(){return this._matrix[15]}}]),t}();e["default"]=c,t.exports=e["default"]},function(t,e){"use strict";function n(t,e){var n=t.m11*e.m11+t.m21*e.m12+t.m31*e.m13+t.m41*e.m14,r=t.m11*e.m21+t.m21*e.m22+t.m31*e.m23+t.m41*e.m24,i=t.m11*e.m31+t.m21*e.m32+t.m31*e.m33+t.m41*e.m34,o=t.m11*e.m41+t.m21*e.m42+t.m31*e.m43+t.m41*e.m44,s=t.m12*e.m11+t.m22*e.m12+t.m32*e.m13+t.m42*e.m14,u=t.m12*e.m21+t.m22*e.m22+t.m32*e.m23+t.m42*e.m24,a=t.m12*e.m31+t.m22*e.m32+t.m32*e.m33+t.m42*e.m34,c=t.m12*e.m41+t.m22*e.m42+t.m32*e.m43+t.m42*e.m44,f=t.m13*e.m11+t.m23*e.m12+t.m33*e.m13+t.m43*e.m14,l=t.m13*e.m21+t.m23*e.m22+t.m33*e.m23+t.m43*e.m24,h=t.m13*e.m31+t.m23*e.m32+t.m33*e.m33+t.m43*e.m34,p=t.m13*e.m41+t.m23*e.m42+t.m33*e.m43+t.m43*e.m44,d=t.m14*e.m11+t.m24*e.m12+t.m34*e.m13+t.m44*e.m14,v=t.m14*e.m21+t.m24*e.m22+t.m34*e.m23+t.m44*e.m24,y=t.m14*e.m31+t.m24*e.m32+t.m34*e.m33+t.m44*e.m34,m=t.m14*e.m41+t.m24*e.m42+t.m34*e.m43+t.m44*e.m44,g=[n,s,f,d,r,u,l,v,i,a,h,y,o,c,p,m];return g}function r(t,e){var n=t.length;6===n?(e.m11=t[0],e.m12=t[1],e.m21=t[2],e.m22=t[3],e.m41=t[4],e.m42=t[5]):16===n&&(e.m11=t[0],e.m12=t[1],e.m13=t[2],e.m14=t[3],e.m21=t[4],e.m22=t[5],e.m23=t[6],e.m24=t[7],e.m31=t[8],e.m32=t[9],e.m33=t[10],e.m34=t[11],e.m41=t[12],e.m42=t[13],e.m43=t[14],e.m44=t[15])}function i(t){var e=null;return e=t.is2D?[t.m11,t.m12,t.m21,t.m22,t.m41,t.m42]:[t.m11,t.m12,t.m13,t.m14,t.m21,t.m22,t.m23,t.m24,t.m31,t.m32,t.m33,t.m34,t.m41,t.m42,t.m43,t.m44]}function o(t,e,n,r){var i=Math.sin,o=Math.cos,u=Math.pow,a=s(r/2);return[1-2*(e*e+n*n)*u(i(a),2),2*(t*e*u(i(a),2)+n*i(a)*o(a)),2*(t*n*u(i(a),2)-e*i(a)*o(a)),0,2*(t*e*u(i(a),2)-n*i(a)*o(a)),1-2*(t*t+n*n)*u(i(a),2),2*(e*n*u(i(a),2)+t*i(a)*o(a)),0,2*(t*n*u(i(a),2)+e*i(a)*o(a)),2*(e*n*u(i(a),2)-t*i(a)*o(a)),1-2*(t*t+e*e)*u(i(a),2),0,0,0,0,1]}function s(t){return Math.PI/180*t}Object.defineProperty(e,"__esModule",{value:!0}),e.multiplyToArray=n,e.applyArrayValuesToDOMMatrix=r,e.matrixToArray=i,e.rotateAxisAngleArray=o}])})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function r(i,o){try{var s=e[i](o),u=s.value}catch(a){return void n(a)}return s.done?void t(u):Promise.resolve(u).then(function(t){return r("next",t)},function(t){return r("throw",t)})}return r("next")})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,u=t[Symbol.iterator]();!(r=(s=u.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(a){i=!0,o=a}finally{try{!r&&u["return"]&&u["return"]()}finally{if(i)throw o}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(392),c=r(a);n(294);var f=!1,l=function(){function t(){o(this,t),this._inFrame=!1,this._rAF=null,this._animationLoopStarted=!1,this._allRenderTasks=[],this._nodesToBeRendered=new Map}return u(t,[{key:"_startAnimationLoop",value:function(){function t(){return e.apply(this,arguments)}var e=i(regeneratorRuntime.mark(function n(){var t,e=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!this._animationLoopStarted){n.next=2;break}return n.abrupt("return");case 2:if(this._animationLoopStarted=!0,f){n.next=7;break}return n.next=6,(0,c["default"])();case 6:f=!0;case 7:t=function r(t){e._inFrame=!0,e._runRenderTasks(t),e._renderNodes(t),e._allRenderTasks.length?e._rAF=requestAnimationFrame(r):(e._rAF=null,e._animationLoopStarted=!1),e._inFrame=!1},this._rAF=requestAnimationFrame(t);case 9:case"end":return n.stop()}},n,this)}));return t}()},{key:"addRenderTask",value:function(t){if("function"!=typeof t)throw new Error("Render task must be a function.");return this._allRenderTasks.push(t),this._animationLoopStarted||this._startAnimationLoop(),t}},{key:"removeRenderTask",value:function(t){this._allRenderTasks.splice(this._allRenderTasks.indexOf(t),1)}},{key:"_runRenderTasks",value:function(t){var e=!0,n=!1,r=void 0;try{for(var i,o=this._allRenderTasks[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var s=i.value;s(t)}}catch(u){n=!0,r=u}finally{try{!e&&o["return"]&&o["return"]()}finally{if(n)throw r}}}},{key:"_setNodeToBeRendered",value:function(t){this._nodesToBeRendered.has(t)||this._nodesToBeRendered.set(t)}},{key:"_unsetNodeToBeRendered",value:function(t){this._nodesToBeRendered["delete"](t)}},{key:"_renderNodes",value:function(t){var e=!0,n=!1,r=void 0;try{for(var i,o=this._nodesToBeRendered[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var u=s(i.value,1),a=u[0];a._render(t)}}catch(c){n=!0,r=c}finally{try{!e&&o["return"]&&o["return"]()}finally{if(n)throw r}}this._nodesToBeRendered.clear()}}]),t}();e["default"]=new l},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(297),o=r(i),s=n(300),u=r(s),a=n(387),c=r(a);e["default"]=function(){function t(){return e.apply(this,arguments)}var e=(0,c["default"])(o["default"].mark(function n(){return o["default"].wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("loading"!==document.readyState){t.next=3;break}return t.next=3,new u["default"](function(t){document.addEventListener("DOMContentLoaded",t)});case 3:case"end":return t.stop()}},n,this)}));return t}()},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function r(i,o){try{var s=e[i](o),u=s.value}catch(a){return void n(a)}return s.done?void t(u):Promise.resolve(u).then(function(t){return r("next",t)},function(t){return r("throw",t)})}return r("next")})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){f(t);var e=t.split(",");return{x:window.parseFloat(e[0]),y:window.parseFloat(e[1]),z:window.parseFloat(e[2])}}function c(t){l(t);var e=t.split(",");return{x:e[0].trim(),y:e[1].trim(),z:e[2].trim()}}function f(t){if(!t.match(/^\s*(-?((\d+\.\d+)|(\d+))(\s*,\s*)?){3}\s*$/g))throw new Error('Invalid array. Must be an array of numbers of length 3, for example "1, 2.5,3" without brackets. Yours was '+t+".")}function l(t){}Object.defineProperty(e,"__esModule",{value:!0});var h=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),p=function S(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:S(i,e,n)}if("value"in r)return r.value;var o=r.get;if(void 0!==o)return o.call(n)};n(394);var d=n(395),v=r(d),y=n(389),m=r(y),g=n(464),_=r(g),b=n(396),w=r(b),O=n(294),x=function(t){function e(){return o(this,e),s(this,Object.getPrototypeOf(e).apply(this,arguments))}return u(e,t),h(e,[{key:"createdCallback",value:function(){p(Object.getPrototypeOf(e.prototype),"createdCallback",this).call(this),this._attachError=!1}},{key:"attachedCallback",value:function(){if(!(this instanceof w["default"])&&(!(this.parentNode instanceof e||this.parentNode instanceof w["default"])||this.parentNode._attachError))throw this._attachError=!0,new Error("<motor-node> elements must be appended only to <motor-scene> or other <motor-node> elements.");p(Object.getPrototypeOf(e.prototype),"attachedCallback",this).call(this)}},{key:"getStyles",value:function(){return v["default"]}},{key:"init",value:function(){p(Object.getPrototypeOf(e.prototype),"init",this).call(this),this instanceof w["default"]||this.parentNode.node.addChild(this.node)}},{key:"_makeImperativeNode",value:function(){return new m["default"]({},this)}},{key:"detachedCallback",value:function(){return this instanceof w["default"]||!this._attachError?void p(Object.getPrototypeOf(e.prototype),"detachedCallback",this).call(this):void(this._attachError=!1)}},{key:"attributeChangedCallback",value:function(t,e,n){this._updateNodeProperty(t,e,n)}},{key:"_updateNodeProperty",value:function(){function t(t,n,r){return e.apply(this,arguments)}var e=i(regeneratorRuntime.mark(function n(t,e,r){return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(console.log("motor-node not ready yet."),this.node){n.next=4;break}return n.next=4,this.ready;case 4:console.log("motor-node ready!"),r!==e&&(t.match(/opacity/i)?this.node[t]=window.parseFloat(r):t.match(/sizeMode/i)?this.node[t]=c(r):(t.match(/rotation/i)||t.match(/scale/i)||t.match(/position/i)||t.match(/absoluteSize/i)||t.match(/proportionalSize/i)||t.match(/align/i)||t.match(/mountPoint/i)||t.match(/origin/i)||t.match(/skew/i))&&(this.node[t]=a(r)));case 6:case"end":return n.stop()}},n,this)}));return t}()}]),e}(_["default"]);(0,O.proxyMethods)(m["default"],x),e["default"]=document.registerElement("motor-node",x),(0,O.makeLowercaseSetterAliases)(m["default"].prototype)},function(t,e){!function(t,e,n,r){"use strict";function i(t,e){for(var n=0,r=t.length;r>n;n++)y(t[n],e)}function o(t){for(var e,n=0,r=t.length;r>n;n++)e=t[n],x(e,D[u(e)])}function s(t){return function(e){rt(e)&&(y(e,t),i(e.querySelectorAll(G),t))}}function u(t){var e=t.getAttribute("is"),n=t.nodeName.toUpperCase(),r=H.call(N,e?F+e.toUpperCase():z+n);return e&&r>-1&&!a(n,e)?-1:r}function a(t,e){return-1<G.indexOf(t+'[is="'+e+'"]');
}function c(t){var e=t.currentTarget,n=t.attrChange,r=t.attrName,i=t.target;vt&&(!i||i===e)&&e.attributeChangedCallback&&"style"!==r&&t.prevValue!==t.newValue&&e.attributeChangedCallback(r,n===t[E]?null:t.prevValue,n===t[T]?null:t.newValue)}function f(t){var e=s(t);return function(t){m.push(e,t.target)}}function l(t){dt&&(dt=!1,t.currentTarget.removeEventListener(I,l)),i((t.target||e).querySelectorAll(G),t.detail===k?k:M),nt&&d()}function h(t,e){var n=this;st.call(n,t,e),g.call(n,{target:n})}function p(t,e){$(t,e),w?w.observe(t,ct):(pt&&(t.setAttribute=h,t[S]=b(t),t.addEventListener(A,g)),t.addEventListener(C,c)),t.createdCallback&&vt&&(t.created=!0,t.createdCallback(),t.created=!1)}function d(){for(var t,e=0,n=it.length;n>e;e++)t=it[e],B.contains(t)||(n--,it.splice(e--,1),y(t,k))}function v(t){throw new Error("A "+t+" type is already registered")}function y(t,e){var n,r=u(t);r>-1&&(O(t,D[r]),r=0,e!==M||t[M]?e===k&&!t[k]&&(t[M]=!1,t[k]=!0,r=1):(t[k]=!1,t[M]=!0,r=1,nt&&H.call(it,t)<0&&it.push(t)),r&&(n=t[e+"Callback"])&&n.call(t))}if(!(r in e)){var m,g,_,b,w,O,x,S="__"+r+(1e5*Math.random()>>0),M="attached",k="detached",P="extends",E="ADDITION",j="MODIFICATION",T="REMOVAL",C="DOMAttrModified",I="DOMContentLoaded",A="DOMSubtreeModified",z="<",F="=",R=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,L=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],N=[],D=[],G="",B=e.documentElement,H=N.indexOf||function(t){for(var e=this.length;e--&&this[e]!==t;);return e},W=n.prototype,V=W.hasOwnProperty,U=W.isPrototypeOf,Y=n.defineProperty,X=n.getOwnPropertyDescriptor,Q=n.getOwnPropertyNames,q=n.getPrototypeOf,J=n.setPrototypeOf,Z=!!n.__proto__,K=n.create||function yt(t){return t?(yt.prototype=t,new yt):this},$=J||(Z?function(t,e){return t.__proto__=e,t}:Q&&X?function(){function t(t,e){for(var n,r=Q(e),i=0,o=r.length;o>i;i++)n=r[i],V.call(t,n)||Y(t,n,X(e,n))}return function(e,n){do t(e,n);while((n=q(n))&&!U.call(n,e));return e}}():function(t,e){for(var n in e)t[n]=e[n];return t}),tt=t.MutationObserver||t.WebKitMutationObserver,et=(t.HTMLElement||t.Element||t.Node).prototype,nt=!U.call(et,B),rt=nt?function(t){return 1===t.nodeType}:function(t){return U.call(et,t)},it=nt&&[],ot=et.cloneNode,st=et.setAttribute,ut=et.removeAttribute,at=e.createElement,ct=tt&&{attributes:!0,characterData:!0,attributeOldValue:!0},ft=tt||function(t){pt=!1,B.removeEventListener(C,ft)},lt=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(t){setTimeout(t,10)},ht=!1,pt=!0,dt=!0,vt=!0;J||Z?(O=function(t,e){U.call(e,t)||p(t,e)},x=p):(O=function(t,e){t[S]||(t[S]=n(!0),p(t,e))},x=O),nt?(pt=!1,function(){var t=X(et,"addEventListener"),e=t.value,n=function(t){var e=new CustomEvent(C,{bubbles:!0});e.attrName=t,e.prevValue=this.getAttribute(t),e.newValue=null,e[T]=e.attrChange=2,ut.call(this,t),this.dispatchEvent(e)},r=function(t,e){var n=this.hasAttribute(t),r=n&&this.getAttribute(t),i=new CustomEvent(C,{bubbles:!0});st.call(this,t,e),i.attrName=t,i.prevValue=n?r:null,i.newValue=e,n?i[j]=i.attrChange=1:i[E]=i.attrChange=0,this.dispatchEvent(i)},i=function(t){var e,n=t.currentTarget,r=n[S],i=t.propertyName;r.hasOwnProperty(i)&&(r=r[i],e=new CustomEvent(C,{bubbles:!0}),e.attrName=r.name,e.prevValue=r.value||null,e.newValue=r.value=n[i]||null,null==e.prevValue?e[E]=e.attrChange=0:e[j]=e.attrChange=1,n.dispatchEvent(e))};t.value=function(t,o,s){t===C&&this.attributeChangedCallback&&this.setAttribute!==r&&(this[S]={className:{name:"class",value:this.className}},this.setAttribute=r,this.removeAttribute=n,e.call(this,"propertychange",i)),e.call(this,t,o,s)},Y(et,"addEventListener",t)}()):tt||(B.addEventListener(C,ft),B.setAttribute(S,1),B.removeAttribute(S),pt&&(g=function(t){var e,n,r,i=this;if(i===t.target){e=i[S],i[S]=n=b(i);for(r in n){if(!(r in e))return _(0,i,r,e[r],n[r],E);if(n[r]!==e[r])return _(1,i,r,e[r],n[r],j)}for(r in e)if(!(r in n))return _(2,i,r,e[r],n[r],T)}},_=function(t,e,n,r,i,o){var s={attrChange:t,currentTarget:e,attrName:n,prevValue:r,newValue:i};s[o]=t,c(s)},b=function(t){for(var e,n,r={},i=t.attributes,o=0,s=i.length;s>o;o++)e=i[o],n=e.name,"setAttribute"!==n&&(r[n]=e.value);return r})),e[r]=function(t,n){if(r=t.toUpperCase(),ht||(ht=!0,tt?(w=function(t,e){function n(t,e){for(var n=0,r=t.length;r>n;e(t[n++]));}return new tt(function(r){for(var i,o,s,u=0,a=r.length;a>u;u++)i=r[u],"childList"===i.type?(n(i.addedNodes,t),n(i.removedNodes,e)):(o=i.target,vt&&o.attributeChangedCallback&&"style"!==i.attributeName&&(s=o.getAttribute(i.attributeName),s!==i.oldValue&&o.attributeChangedCallback(i.attributeName,i.oldValue,s)))})}(s(M),s(k)),w.observe(e,{childList:!0,subtree:!0})):(m=[],lt(function g(){for(;m.length;)m.shift().call(null,m.shift());lt(g)}),e.addEventListener("DOMNodeInserted",f(M)),e.addEventListener("DOMNodeRemoved",f(k))),e.addEventListener(I,l),e.addEventListener("readystatechange",l),e.createElement=function(t,n){var r=at.apply(e,arguments),i=""+t,o=H.call(N,(n?F:z)+(n||i).toUpperCase()),s=o>-1;return n&&(r.setAttribute("is",n=n.toLowerCase()),s&&(s=a(i.toUpperCase(),n))),vt=!e.createElement.innerHTMLHelper,s&&x(r,D[o]),r},et.cloneNode=function(t){var e=ot.call(this,!!t),n=u(e);return n>-1&&x(e,D[n]),t&&o(e.querySelectorAll(G)),e}),-2<H.call(N,F+r)+H.call(N,z+r)&&v(t),!R.test(r)||-1<H.call(L,r))throw new Error("The type "+t+" is invalid");var r,c,h=function(){return d?e.createElement(y,r):e.createElement(y)},p=n||W,d=V.call(p,P),y=d?n[P].toUpperCase():r;return d&&-1<H.call(N,z+y)&&v(y),c=N.push((d?F:z)+r)-1,G=G.concat(G.length?",":"",d?y+'[is="'+t.toLowerCase()+'"]':y),h.prototype=D[c]=V.call(p,"prototype")?p.prototype:K(et),i(e.querySelectorAll(G),M),h}}}(window,document,Object,"registerElement")},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]={"motor-node":{display:"block",position:"absolute",top:0,left:0,transformOrigin:"50% 50% 0",transformStyle:"preserve-3d"}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();n(394);var a=n(397),c=r(a),f=n(398),l=r(f),h=n(464),p=r(h);e["default"]=document.registerElement("motor-scene",function(t){function e(){return i(this,e),o(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),u(e,[{key:"_makeImperativeNode",value:function(){var t=new l["default"](this);return t.mount(this.parentNode),t}},{key:"getStyles",value:function(){return c["default"]}}]),e}(p["default"]))},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(395),o=r(i);e["default"]={"motor-scene":Object.assign({},o["default"]["motor-node"],{position:"relative",overflow:"hidden",width:"100%",height:"100%",perspective:1e3})}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function r(i,o){try{var s=e[i](o),u=s.value}catch(a){return void n(a)}return s.done?void t(u):Promise.resolve(u).then(function(t){return r("next",t)},function(t){return r("throw",t)})}return r("next")})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function m(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:m(i,e,n)}if("value"in r)return r.value;var o=r.get;if(void 0!==o)return o.call(n)},f=n(389),l=r(f),h=n(392),p=r(h),d=n(396),v=r(d),y=function(t){function e(t){o(this,e);var n=s(this,Object.getPrototypeOf(e).call(this,{},t));return n._scene=n,n._resolveScenePromise(n),n._properties.sizeMode={x:"proportional",y:"proportional",z:"proportional"},n}return u(e,t),a(e,[{key:"_init",value:function(){c(Object.getPrototypeOf(e.prototype),"_init",this).call(this)}},{key:"_makeElement",value:function(){return new v["default"]}},{key:"mount",value:function(){function t(t){return e.apply(this,arguments)}var e=i(regeneratorRuntime.mark(function n(t){var e;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,p["default"])();case 2:if(t?"string"==typeof t&&(e=t,t=document.querySelector(e)):t=document.body,!(t instanceof window.HTMLElement)){n.next=8;break}t!==this._el.element.parentNode&&t.appendChild(this._el.element),this._mounted=!0,n.next=9;break;case 8:throw new Error("Invalid mount point specified in Scene.mount() call. Specify a selector, or pass an actual HTMLElement.");case 9:this._resolveMountPromise(this._mounted);case 10:case"end":return n.stop()}},n,this)}));return t}()},{key:"unmount",value:function(){var t=this;this._el.element.parentNode.removeChild(this._el.element),this._mounted=!1,this._mountPromise=new Promise(function(e){return t._resolveMountPromise=e})}}]),e}(l["default"]);e["default"]=y},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function r(i,o){try{var s=e[i](o),u=s.value}catch(a){return void n(a)}return s.done?void t(u):Promise.resolve(u).then(function(t){return r("next",t)},function(t){return r("throw",t)})}return r("next")})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){return t?t===HTMLElement?!0:a(t.prototype):!1}function c(t){if(t||(t=HTMLElement),!a(t))throw new TypeError("The argument to makeWebComponentBaseClass must be a constructor that extends from or is HTMLElement.");if(p.has(t))return p.get(t);var e=function(t){function e(){o(this,e);var t=s(this,Object.getPrototypeOf(e).call(this));return t.createdCallback(),t}return u(e,t),f(e,[{key:"createdCallback",value:function(){this._attached=!1,this._initialized=!1}},{key:"connectedCallback",value:function(){this.attachedCallback()}},{key:"attachedCallback",value:function(){this._attached=!0,this._initialized||(this._init(),this._initialized=!0)}},{key:"_createStylesheet",value:function(){v[this.constructor.name]||(v[this.constructor.name]=0),v[this.constructor.name]+=1,1===v[this.constructor.name]&&(d[this.constructor.name]=h["default"].createStyleSheet(this.getStyles()).attach())}},{key:"disconnectedCallback",value:function(){this.detachedCallback()}},{key:"detachedCallback",value:function(){function t(){return e.apply(this,arguments)}var e=i(regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this._attached=!1,t.next=3,Promise.resolve();case 3:!this._attached&&this._initialized&&this._deinit();case 4:case"end":return t.stop()}},n,this)}));return t}()},{key:"_destroyStylesheet",value:function(){v[this.constructor.name]-=1,0===v[this.constructor.name]&&(d[this.constructor.name].detach(),delete d[this.constructor.name],delete v[this.constructor.name])}},{key:"getStyles",value:function(){throw new Error("Your component must define a getStyles method, which returns the JSS-compatible JSON-formatted styling of your component.")}},{key:"_init",value:function(){this._createStylesheet(),this.classList.add(this.stylesheet.classes[this.constructor.name]),this.init()}},{key:"init",value:function(){}},{key:"_deinit",value:function(){this._destroyStylesheet(),this._initialized=!1,this.deinit()}},{key:"deinit",value:function(){}},{key:"stylesheet",get:function(){return d[this.constructor.name]}}]),e}(t);return p.set(t,e),e}Object.defineProperty(e,"__esModule",{value:!0});var f=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();e["default"]=c;var l=n(400),h=r(l),p=new Map,d={},v={}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(401),o=r(i),s=n(416),u=r(s),a=n(417),c=r(a),f=n(418),l=r(f),h=n(419),p=r(h),d=n(425),v=r(d),y=n(426),m=r(y),g=o["default"].create();g.use((0,u["default"])()),g.use((0,c["default"])()),g.use((0,l["default"])()),g.use((0,p["default"])()),g.use((0,v["default"])()),g.use((0,m["default"])()),e["default"]=g},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.Rule=e.StyleSheet=e.Jss=void 0;var i=n(402),o=r(i),s=n(403),u=r(s),a=n(406),c=r(a),f=new o["default"];t.exports=e=f,e.Jss=o["default"],e.StyleSheet=u["default"],e.Rule=c["default"],e["default"]=f},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(403),c=r(a),f=n(414),l=r(f),h=n(415),p=r(h),d=n(404),v=n(405),y=r(v),m=n(411),g=r(m),_=function(){function t(){i(this,t),this.sheets=new p["default"],this.plugins=new l["default"],this.uid=d.uid}return u(t,[{key:"create",value:function(){return new t}},{key:"createStyleSheet",value:function(t,e){var n=new c["default"](t,s({},e,{jss:this}));return this.sheets.add(n),n}},{key:"createRule",value:function(t,e,n){"object"==("undefined"==typeof t?"undefined":o(t))&&(n=e,e=t,t=null);var r=(0,y["default"])(t,e,s({},n,{jss:this,Renderer:(0,g["default"])(n)}));return this.plugins.run(r),r}},{key:"use",value:function(){for(var t=this,e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];return n.forEach(function(e){return t.plugins.use(e)}),this}}]),t}();e["default"]=_},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=n(404),a=n(405),c=r(a),f=n(411),l=r(f),h=function(){function t(e,n){i(this,t),this.options=o({},n),null==this.options.named&&(this.options.named=!0),this.rules=Object.create(null),this.classes=Object.create(null),this.attached=!1,this.deployed=!1,this.linked=!1;var r=(0,l["default"])(this.options);this.options.Renderer=r,this.renderer=new r(this.options);for(var s in e)this.createRule(s,e[s])}return s(t,[{key:"attach",value:function(){return this.attached?this:(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0,this)}},{key:"detach",value:function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this}},{key:"addRule",value:function(t,e){var n=this.createRule(t,e);if(this.deployed){var r=this.renderer.insertRule(n);this.options.link&&(n.renderable=r)}return n}},{key:"addRules",value:function(t){var e=[];for(var n in t)e.push(this.addRule(n,t[n]));return e}},{key:"getRule",value:function(t){return this.rules[t]}},{key:"toString",value:function(t){var e=this.rules,n=Object.create(null),r="";for(var i in e){var o=e[i];n[o.id]||o.style&&(0,u.isEmptyObject)(o.style)||o.rules&&(0,u.isEmptyObject)(o.rules)||(r&&(r+="\n"),r+=o.toString(t),n[o.id]=!0)}return r}},{key:"createRule",value:function(t,e,n){n=o({},n,{sheet:this,jss:this.options.jss,Renderer:this.options.Renderer}),null==n.named&&(n.named=this.options.named);var r=(0,c["default"])(t,e,n);return"conditional"===r.type?this.rules[r.selector]=r:"simple"===r.type?this.rules[r.name]=r:r.options.parent&&"conditional"===r.options.parent.type?r.options.named&&(this.classes[t]=r.className):(this.rules[r.selector]=r,n.named&&(this.rules[t]=r,this.classes[t]=r.className)),n.jss.plugins.run(r),r}},{key:"deploy",value:function(){return this.renderer.deploy(this),this.deployed=!0,this}},{key:"link",value:function(){var t=this.renderer.getRules();for(var e in t){var n=this.rules[e];n&&(n.renderable=t[e])}return this.linked=!0,this}}]),t}();e["default"]=h},function(t,e){(function(t){"use strict";function n(t){return u(s(t))}function r(t){for(var e in t)return!1;return!0}function i(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.indentationLevel||0,r="";e.selector!==!1&&(r+=o(n,t.selector+" {"),n++);for(var i in t.style){var s=t.style[i];if(Array.isArray(s))for(var u=0;u<s.length;u++)r+="\n"+o(n,i+": "+s[u]+";");else r+="\n"+o(n,i+": "+s+";")}return e.selector!==!1&&(r+="\n"+o(--n,"}")),r}function o(t,e){for(var n="",r=0;t>r;r++)n+=" ";return n+e}Object.defineProperty(e,"__esModule",{value:!0}),e.clone=n,e.isEmptyObject=r,e.toCSS=i;var s=JSON.stringify,u=JSON.parse;e.uid=function(){function e(){return"jss-"+o+"-"+s++}function n(){s=0}var r="undefined"==typeof window?t:window,i="__JSS_VERSION_COUNTER__";null==r[i]&&(r[i]=0);var o=r[i]++,s=0;return{get:e,reset:n}}()}).call(e,function(){return this}())},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=arguments.length<=2||void 0===arguments[2]?{}:arguments[2];if(t&&"@"===t[0]){var r=m.exec(t)[0],i=y[r];return"@font-face"===r&&n.named&&(n=o({},n,{named:!1})),new i(t,e,n)}return null==n.named&&(n.named=!0),new u["default"](t,e,n)}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e["default"]=i;var s=n(406),u=r(s),a=n(407),c=r(a),f=n(408),l=r(f),h=n(409),p=r(h),d=n(410),v=r(d),y={"@charset":c["default"],"@import":c["default"],"@namespace":c["default"],"@keyframes":l["default"],"@media":p["default"],"@supports":p["default"],"@font-face":v["default"]},m=/^@[^ ]+/},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(404),u=function(){function t(e,n,i){r(this,t),this.id=s.uid.get(),this.type="regular",this.options=i,this.selector=e,i.named&&(this.name=e,this.className=i.className||(this.name?this.name+"--"+this.id:this.id),this.selector="."+this.className),this.originalStyle=n,this.style=(0,s.clone)(n)}return o(t,[{key:"prop",value:function(t,e){var n=this.options.Renderer.style;return null!=e?(this.style[t]=e,this.renderable&&n(this.renderable,t,e),this):(this.renderable&&null==this.style[t]&&(this.style[t]=n(this.renderable,t)),this.style[t])}},{key:"applyTo",value:function(t){for(var e in this.style){var n=this.style[e],r=this.options.Renderer.style;if(Array.isArray(n))for(var i=0;i<n.length;i++)r(t,e,n[i]);else r(t,e,n)}return this}},{key:"toJSON",value:function(){var t=Object.create(null);for(var e in this.style)"object"!=i(this.style[e])&&(t[e]=this.style[e]);return t}},{key:"toString",value:function(t){return(0,s.toCSS)(this,t)}}]),t}();e["default"]=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(404),s=function(){function t(e,n,i){r(this,t),this.id=o.uid.get(),this.type="simple",this.name=e,this.value=n,this.options=i}return i(t,[{key:"toString",value:function(){return this.name+" "+this.value+";"}}]),t}();e["default"]=s},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(404),u=function(){function t(e,n,i){r(this,t),this.id=s.uid.get(),this.type="keyframe",this.selector=e,this.options=i,this.frames=this.formatFrames(n)}return o(t,[{key:"formatFrames",value:function(t){var e=Object.create(null);for(var n in t){var r=i({},this.options,{named:!1,parent:this});e[n]=this.options.jss.createRule(n,t[n],r)}return e}},{key:"toString",value:function(){var t=this.selector+" {\n",e={indentationLevel:1};for(var n in this.frames)t+=this.frames[n].toString(e)+"\n";return t+="}"}}]),t}();e["default"]=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(404),u=function(){function t(e,n,o){r(this,t),this.id=s.uid.get(),this.type="conditional",this.selector=e,this.options=i({},o,{parent:this}),this.rules=Object.create(null);for(var u in n)this.createRule(u,n[u])}return o(t,[{key:"createRule",value:function(t,e,n){var r=this.options,o=r,s=o.sheet,u=o.jss,a=s&&s.getRule(t),c=a?a.className:null;(c||n)&&(r=i({},r,{className:c},n));var f=(s||u).createRule(t,e,r);return this.rules[t]=f,f}},{key:"toString",value:function(){var t=this.selector+" {\n";for(var e in this.rules){var n=this.rules[e];if(!n.style||!(0,s.isEmptyObject)(n.style)){var r=n.toString({indentationLevel:1});t+=r+"\n"}}return t+="}"}}]),t}();e["default"]=u},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),o=n(404),s=function(){function t(e,n,i){r(this,t),this.id=o.uid.get(),this.type="font-face",this.options=i,this.selector=e,this.style=n}return i(t,[{key:"toString",value:function(t){return(0,o.toCSS)(this,t)}}]),t}();e["default"]=s},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];return t.Renderer?t.Renderer:t.virtual||"undefined"==typeof document?a["default"]:s["default"]}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=i;var o=n(412),s=r(o),u=n(413),a=r(u)},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e){n(this,t),this.head=document.head||document.getElementsByTagName("head")[0],this.element=document.createElement("style"),this.element.type="text/css",e.media&&this.element.setAttribute("media",e.media),e.meta&&this.element.setAttribute("data-meta",e.meta)}return r(t,null,[{key:"style",value:function(t,e,n){try{if(null==n)return t.style[e];t.style[e]=n}catch(r){}}}]),r(t,[{key:"attach",value:function(){this.head.appendChild(this.element)}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(t){var e="\n"+t.toString()+"\n";"sheet"in this.element?this.element.innerHTML=e:"styleSheet"in this.element&&(this.element.styleSheet.cssText=e)}},{key:"insertRule",value:function(t){var e=this.element.sheet||this.element.styleSheet,n=e.cssRules||e.rules,r=n.length;return e.insertRule?e.insertRule(t.toString(),r):e.addRule(t.selector,t.toString({selector:!1}),r),n[r]}},{key:"getRules",value:function(){for(var t=this.element.sheet||this.element.styleSheet,e=t.rules||t.cssRules,n=Object.create(null),r=0;r<e.length;r++){var i=e[r];n[i.selectorText]=i}return n}}]),t}();e["default"]=i},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(){n(this,t)}return r(t,[{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"deploy",value:function(){}},{key:"insertRule",value:function(){}},{key:"getRules",value:function(){return{}}}],[{key:"style",value:function(){}}]),t}();e["default"]=i},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(){n(this,t),this.registry=[]}return r(t,[{key:"use",value:function(t){this.registry.push(t)}},{key:"run",value:function(t){for(var e=0;e<this.registry.length;e++)this.registry[e](t)}}]),t}();e["default"]=i},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(){n(this,t),this.registry=[]}return r(t,[{key:"add",value:function(t){this.registry.push(t)}},{key:"toString",value:function(t){return this.registry.map(function(e){return e.toString(t)}).join("\n")}}]),t}();e["default"]=i},function(t,e){"use strict";function n(){return function(t){if("regular"===t.type){var e=t.options,n=e.sheet,o=e.jss,s=e.parent,u=n||o,a=void 0;s&&"conditional"===s.type&&(u=s);for(var c in t.style)if("&"===c[0]){a||(a=r({},t.options,{named:!1}));var f=c.replace(i,t.selector);u.createRule(f,t.style[c],a),delete t.style[c]}}}}Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e["default"]=n;var i=/&/g},function(t,e){"use strict";function n(){function t(e,n,r){if("string"==typeof r.extend){if(e.options&&e.options.sheet){var i=e.options.sheet.getRule(r.extend);i&&t(e,n,i.originalStyle)}}else if(Array.isArray(r.extend))for(var o=0;o<r.extend.length;o++)t(e,n,r.extend[o]);else for(var s in r.extend)"extend"===s?t(e,n,r.extend.extend):n[s]=r.extend[s];for(var u in r)"extend"!==u&&(n[u]=r[u]);return n}return function(e){e.style&&e.style.extend&&(e.style=t(e,{},e.style))}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n},function(t,e){"use strict";function n(){return function(t){var e=t.style;if(e)for(var n in e)r[n]||"number"!=typeof e[n]||(e[n]+="px")}}e.__esModule=!0,e["default"]=n;var r={"animation-iteration-count":!0,"box-ordinal-group":!0,"column-count":!0,"fill-opacity":!0,flex:!0,"flex-grow":!0,"flex-order":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stop-opacity":!0,"tab-size":1,widows:!0,"z-index":!0,zoom:!0};t.exports=e["default"]},function(t,e,n){"use strict";function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e}function i(){return function(t){if("keyframe"===t.type)return void(t.selector="@"+s.prefix.css+"keyframes"+t.selector.substr(10));if("regular"===t.type)for(var e in t.style){var n=t.style[e],r=!1,i=s.supportedProperty(e);
i&&i!==e&&(r=!0);var o=!1,u=s.supportedValue(i,n);u&&u!==n&&(o=!0),(r||o)&&(r&&delete t.style[e],t.style[i||e]=u||n)}}}e.__esModule=!0,e["default"]=i;var o=n(420),s=r(o);t.exports=e["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.supportedValue=e.supportedProperty=e.prefix=void 0;var i=n(421),o=r(i),s=n(422),u=r(s),a=n(424),c=r(a);e["default"]={prefix:o["default"],supportedProperty:u["default"],supportedValue:c["default"]},e.prefix=o["default"],e.supportedProperty=u["default"],e.supportedValue=c["default"]},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="",r="";if("undefined"!=typeof document){var i={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"},o=document.createElement("p").style,s="Transform";for(var u in i)if(u+s in o){n=u,r=i[u];break}}e["default"]={js:n,css:r}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){return null!=f[t]?f[t]:((0,a["default"])(t)in c.style?f[t]=t:s["default"].js+(0,a["default"])("-"+t)in c.style?f[t]=s["default"].css+t:f[t]=!1,f[t])}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=i;var o=n(421),s=r(o),u=n(423),a=r(u),c=void 0,f={};if("undefined"!=typeof document){c=document.createElement("p");var l=window.getComputedStyle(document.documentElement,"");for(var h in l)f[l[h]]=l[h]}},function(t,e){"use strict";function n(t){return t.replace(i,r)}function r(t,e){return e?e.toUpperCase():""}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n;var i=/[-\s]+(.)?/g},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if("string"!=typeof e||!isNaN(parseInt(e,10)))return e;var n=t+e;return null!=u[n]?u[n]:(a.style[t]=e,a.style[t]===e?u[n]=e:(e=s["default"].css+e,"-ms-flex"===e&&(e="-ms-flexbox"),a.style[t]=e,a.style[t]===e&&(u[n]=e)),u[n]||(u[n]=!1),u[n])}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=i;var o=n(421),s=r(o),u={},a=void 0;"undefined"!=typeof document&&(a=document.createElement("p"))},function(t,e){"use strict";function n(){return function(t){var e=t.style;if(e){t.style={};for(var n in e){var o=e[n];n=n.replace(i,r),t.style[n]=o}}}}function r(t){return"-"+t.toLowerCase()}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n;var i=/([A-Z])/g},function(t,e){"use strict";function n(){function t(t,e){return t.length>e.length}return function(e){var n=e.style;if(n){var r={},i=Object.keys(n).sort(t);for(var o in i)r[i[o]]=n[i[o]];e.style=r}}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=n(389),a=r(u),c=function(t){function e(){var t;i(this,e),console.log(" -- PushPaneLayout created");for(var n=arguments.length,r=Array(n),s=0;n>s;s++)r[s]=arguments[s];return o(this,(t=Object.getPrototypeOf(e)).call.apply(t,[this].concat(r)))}return s(e,t),e}(a["default"]);e["default"]=c},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e.MotorHTMLPushPaneLayout=e.MotorHTMLScene=e.MotorHTMLNode=void 0;var i=n(393),o=r(i),s=n(396),u=r(s),a=n(429),c=r(a);e.MotorHTMLNode=o["default"],e.MotorHTMLScene=u["default"],e.MotorHTMLPushPaneLayout=c["default"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function d(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:d(i,e,n)}if("value"in r)return r.value;var o=r.get;if(void 0!==o)return o.call(n)},c=n(393),f=r(c),l=n(427),h=r(l),p=function(t){function e(){return i(this,e),o(this,Object.getPrototypeOf(e).apply(this,arguments))}return s(e,t),u(e,[{key:"createdCallback",value:function(){console.log(" -- MotorHTMLPushPaneLayout created"),a(Object.getPrototypeOf(e.prototype),"createdCallback",this).call(this)}},{key:"_makeImperativeNode",value:function(){return new h["default"]({},this)}}]),e}(f["default"]);e["default"]=document.registerElement("motor-push-pane-layout",p)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Calendar=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(431),c=r(a),f=n(432),l=r(f),h=n(436),p=r(h),d=n(437),v=r(d),y=n(451),m=r(y),g=n(453),_=r(g),b=n(452),w=r(b),O=e.Calendar=function(t){function e(t,n){i(this,e);var r=o(this,Object.getPrototypeOf(e).call(this,{size:t}));return r.transition=n,r.flipSide=0,r.columnsRows=[7,6],r.planes=[],r._initializeTransitions(),r._createGrid(),setTimeout(function(){this.transitions[this.transition](),setInterval(this.transitions[this.transition],2e3)}.bind(r),800),r}return s(e,t),u(e,[{key:"_createGrid",value:function(){var t=new m["default"](this.columnsRows[0],this.columnsRows[1],this.options.size);(0,w["default"])(this.columnsRows[0]*this.columnsRows[1],function(t){var e=new _["default"]({properties:{background:"teal"}});this.planes.push(e)}.bind(this)),t.setChildren(this.planes),this.node.add(t)}},{key:"_initializeTransitions",value:function(){this.transitions={flipDiagonal:function(){function t(t,e){"undefined"==typeof t.__targetRotation&&(t.__targetRotation=new l["default"](0));var n=new l["default"](t.__targetRotation.get());t.__targetRotation.set(t.__targetRotation.get()+Math.PI),t.children[0].get().transformFrom(function(){return c["default"].rotateY(n.get())}),t.children[1].get().transformFrom(function(){return c["default"].rotateY(n.get()+Math.PI)}),setTimeout(function(){n.set(t.__targetRotation.get(),{duration:2e3,curve:p["default"].outExpo})},0+50*e)}this.flipSide=+!this.flipSide;var e,n=0;this.columnsRows.forEach(function(t,e){t<this.columnsRows[n]&&(n=e)}.bind(this)),e=+!n,(0,w["default"])(this.columnsRows[0]+this.columnsRows[1]-1,function(r){(0,w["default"])(this.columnsRows[n],function(n){if(r-n>=0&&r-n<this.columnsRows[e]){var i=this.planes[r-n+this.columnsRows[e]*n];t(i,r)}}.bind(this))}.bind(this))}.bind(this)}}}]),e}(v["default"]);e["default"]=O},function(t,e){function n(t){return 2===t.length?t[0]*t[0]+t[1]*t[1]:t[0]*t[0]+t[1]*t[1]+t[2]*t[2]}function r(t){return Math.sqrt(n(t))}function i(t){return 0>t?-1:1}var o={};o.precision=1e-6,o.identity=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],o.multiply4x4=function(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]},o.multiply=function(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2],t[1]*e[0]+t[5]*e[1]+t[9]*e[2],t[2]*e[0]+t[6]*e[1]+t[10]*e[2],0,t[0]*e[4]+t[4]*e[5]+t[8]*e[6],t[1]*e[4]+t[5]*e[5]+t[9]*e[6],t[2]*e[4]+t[6]*e[5]+t[10]*e[6],0,t[0]*e[8]+t[4]*e[9]+t[8]*e[10],t[1]*e[8]+t[5]*e[9]+t[9]*e[10],t[2]*e[8]+t[6]*e[9]+t[10]*e[10],0,t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14],1]},o.thenMove=function(t,e){return e[2]||(e[2]=0),[t[0],t[1],t[2],0,t[4],t[5],t[6],0,t[8],t[9],t[10],0,t[12]+e[0],t[13]+e[1],t[14]+e[2],1]},o.moveThen=function(t,e){t[2]||(t[2]=0);var n=t[0]*e[0]+t[1]*e[4]+t[2]*e[8],r=t[0]*e[1]+t[1]*e[5]+t[2]*e[9],i=t[0]*e[2]+t[1]*e[6]+t[2]*e[10];return o.thenMove(e,[n,r,i])},o.translate=function(t,e,n){return void 0===n&&(n=0),[1,0,0,0,0,1,0,0,0,0,1,0,t,e,n,1]},o.thenScale=function(t,e){return[e[0]*t[0],e[1]*t[1],e[2]*t[2],0,e[0]*t[4],e[1]*t[5],e[2]*t[6],0,e[0]*t[8],e[1]*t[9],e[2]*t[10],0,e[0]*t[12],e[1]*t[13],e[2]*t[14],1]},o.scale=function(t,e,n){return void 0===n&&(n=1),void 0===e&&(e=t),[t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1]},o.rotateX=function(t){var e=Math.cos(t),n=Math.sin(t);return[1,0,0,0,0,e,n,0,0,-n,e,0,0,0,0,1]},o.rotateY=function(t){var e=Math.cos(t),n=Math.sin(t);return[e,0,-n,0,0,1,0,0,n,0,e,0,0,0,0,1]},o.rotateZ=function(t){var e=Math.cos(t),n=Math.sin(t);return[e,n,0,0,-n,e,0,0,0,0,1,0,0,0,0,1]},o.rotate=function(t,e,n){var r=Math.cos(t),i=Math.sin(t),o=Math.cos(e),s=Math.sin(e),u=Math.cos(n),a=Math.sin(n),c=[o*u,r*a+i*s*u,i*a-r*s*u,0,-o*a,r*u-i*s*a,i*u+r*s*a,0,s,-i*o,r*o,0,0,0,0,1];return c},o.rotateAxis=function(t,e){var n=Math.sin(e),r=Math.cos(e),i=1-r,o=t[0]*t[0]*i,s=t[0]*t[1]*i,u=t[0]*t[2]*i,a=t[1]*t[1]*i,c=t[1]*t[2]*i,f=t[2]*t[2]*i,l=t[0]*n,h=t[1]*n,p=t[2]*n,d=[o+r,s+p,u-h,0,s-p,a+r,c+l,0,u+h,c-l,f+r,0,0,0,0,1];return d},o.aboutOrigin=function(t,e){var n=t[0]-(t[0]*e[0]+t[1]*e[4]+t[2]*e[8]),r=t[1]-(t[0]*e[1]+t[1]*e[5]+t[2]*e[9]),i=t[2]-(t[0]*e[2]+t[1]*e[6]+t[2]*e[10]);return o.thenMove(e,[n,r,i])},o.skew=function(t,e,n){return[1,Math.tan(e),0,0,Math.tan(n),1,0,0,0,Math.tan(t),1,0,0,0,0,1]},o.skewX=function(t){return[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1]},o.skewY=function(t){return[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1]},o.perspective=function(t){return[1,0,0,0,0,1,0,0,0,0,1,-1/t,0,0,0,1]},o.getTranslate=function(t){return[t[12],t[13],t[14]]},o.inverse=function(t){var e=t[5]*t[10]-t[6]*t[9],n=t[4]*t[10]-t[6]*t[8],r=t[4]*t[9]-t[5]*t[8],i=t[1]*t[10]-t[2]*t[9],o=t[0]*t[10]-t[2]*t[8],s=t[0]*t[9]-t[1]*t[8],u=t[1]*t[6]-t[2]*t[5],a=t[0]*t[6]-t[2]*t[4],c=t[0]*t[5]-t[1]*t[4],f=t[0]*e-t[1]*n+t[2]*r,l=1/f,h=[l*e,-l*i,l*u,0,-l*n,l*o,-l*a,0,l*r,-l*s,l*c,0,0,0,0,1];return h[12]=-t[12]*h[0]-t[13]*h[4]-t[14]*h[8],h[13]=-t[12]*h[1]-t[13]*h[5]-t[14]*h[9],h[14]=-t[12]*h[2]-t[13]*h[6]-t[14]*h[10],h},o.transpose=function(t){return[t[0],t[4],t[8],t[12],t[1],t[5],t[9],t[13],t[2],t[6],t[10],t[14],t[3],t[7],t[11],t[15]]},o.interpret=function(t){var e=[t[0],t[1],t[2]],s=i(e[0]),u=r(e),a=[e[0]+s*u,e[1],e[2]],c=2/n(a);if(c>=1/0)return{translate:o.getTranslate(t),rotate:[0,0,0],scale:[0,0,0],skew:[0,0,0]};var f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1];f[0]=1-c*a[0]*a[0],f[5]=1-c*a[1]*a[1],f[10]=1-c*a[2]*a[2],f[1]=-c*a[0]*a[1],f[2]=-c*a[0]*a[2],f[6]=-c*a[1]*a[2],f[4]=f[1],f[8]=f[2],f[9]=f[6];var l=o.multiply(f,t),h=[l[5],l[6]],p=i(h[0]),d=r(h),v=[h[0]+p*d,h[1]],y=2/n(v),m=[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1];m[5]=1-y*v[0]*v[0],m[10]=1-y*v[1]*v[1],m[6]=-y*v[0]*v[1],m[9]=m[6];var g=o.multiply(m,f),_=o.multiply(g,t),b=o.scale(_[0]<0?-1:1,_[5]<0?-1:1,_[10]<0?-1:1);_=o.multiply(_,b),g=o.multiply(b,g);var w={};return w.translate=o.getTranslate(t),w.rotate=[Math.atan2(-g[6],g[10]),Math.asin(g[2]),Math.atan2(-g[1],g[0])],w.rotate[0]||(w.rotate[0]=0,w.rotate[2]=Math.atan2(g[4],g[5])),w.scale=[_[0],_[5],_[10]],w.skew=[Math.atan2(_[9],w.scale[2]),Math.atan2(_[8],w.scale[2]),Math.atan2(_[4],w.scale[0])],Math.abs(w.rotate[0])+Math.abs(w.rotate[2])>1.5*Math.PI&&(w.rotate[1]=Math.PI-w.rotate[1],w.rotate[1]>Math.PI&&(w.rotate[1]-=2*Math.PI),w.rotate[1]<-Math.PI&&(w.rotate[1]+=2*Math.PI),w.rotate[0]<0?w.rotate[0]+=Math.PI:w.rotate[0]-=Math.PI,w.rotate[2]<0?w.rotate[2]+=Math.PI:w.rotate[2]-=Math.PI),w},o.average=function(t,e,n){n=void 0===n?.5:n;for(var r=o.interpret(t),i=o.interpret(e),s={translate:[0,0,0],rotate:[0,0,0],scale:[0,0,0],skew:[0,0,0]},u=0;3>u;u++)s.translate[u]=(1-n)*r.translate[u]+n*i.translate[u],s.rotate[u]=(1-n)*r.rotate[u]+n*i.rotate[u],s.scale[u]=(1-n)*r.scale[u]+n*i.scale[u],s.skew[u]=(1-n)*r.skew[u]+n*i.skew[u];return o.build(s)},o.build=function(t){var e=o.scale(t.scale[0],t.scale[1],t.scale[2]),n=o.skew(t.skew[0],t.skew[1],t.skew[2]),r=o.rotate(t.rotate[0],t.rotate[1],t.rotate[2]);return o.thenMove(o.multiply(o.multiply(r,n),e),t.translate)},o.equals=function(t,e){return!o.notEquals(t,e)},o.notEquals=function(t,e){return t===e?!1:!(t&&e)||t[12]!==e[12]||t[13]!==e[13]||t[14]!==e[14]||t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[4]!==e[4]||t[5]!==e[5]||t[6]!==e[6]||t[8]!==e[8]||t[9]!==e[9]||t[10]!==e[10]},o.normalizeRotation=function(t){var e=t.slice(0);for((e[0]===.5*Math.PI||e[0]===.5*-Math.PI)&&(e[0]=-e[0],e[1]=Math.PI-e[1],e[2]-=Math.PI),e[0]>.5*Math.PI&&(e[0]=e[0]-Math.PI,e[1]=Math.PI-e[1],e[2]-=Math.PI),e[0]<.5*-Math.PI&&(e[0]=e[0]+Math.PI,e[1]=-Math.PI-e[1],e[2]-=Math.PI);e[1]<-Math.PI;)e[1]+=2*Math.PI;for(;e[1]>=Math.PI;)e[1]-=2*Math.PI;for(;e[2]<-Math.PI;)e[2]+=2*Math.PI;for(;e[2]>=Math.PI;)e[2]-=2*Math.PI;return e},o.inFront=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,.001,1],o.behind=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,-.001,1],t.exports=o},function(t,e,n){function r(t){this.currentAction=null,this.actionQueue=[],this.callbackQueue=[],this.state=0,this.velocity=void 0,this._callback=void 0,this._engineInstance=null,this._currentMethod=null,this.set(t)}function i(){if(this._callback){var t=this._callback;this._callback=void 0,t()}if(this.actionQueue.length<=0)return void this.set(this.get());this.currentAction=this.actionQueue.shift(),this._callback=this.callbackQueue.shift();var e=null,n=this.currentAction[0],r=this.currentAction[1];r instanceof Object&&r.method?(e=r.method,"string"==typeof e&&(e=u[e])):e=s,this._currentMethod!==e&&(!(n instanceof Object)||e.SUPPORTS_MULTIPLE===!0||n.length<=e.SUPPORTS_MULTIPLE?this._engineInstance=new e:this._engineInstance=new o(e),this._currentMethod=e),this._engineInstance.reset(this.state,this.velocity),void 0!==this.velocity&&(r.velocity=this.velocity),this._engineInstance.set(n,r,i.bind(this))}var o=n(433),s=n(435),u={};r.register=function(t){var e=!0;for(var n in t)r.registerMethod(n,t[n])||(e=!1);return e},r.registerMethod=function(t,e){return t in u?!1:(u[t]=e,!0)},r.unregisterMethod=function(t){return t in u?(delete u[t],!0):!1},r.prototype.set=function(t,e,n){if(!e)return this.reset(t),n&&n(),this;var r=[t,e];return this.actionQueue.push(r),this.callbackQueue.push(n),this.currentAction||i.call(this),this},r.prototype.reset=function(t,e){this._currentMethod=null,this._engineInstance=null,this._callback=void 0,this.state=t,this.velocity=e,this.currentAction=null,this.actionQueue=[],this.callbackQueue=[]},r.prototype.delay=function(t,e){var n;return n=this.actionQueue.length?this.actionQueue[this.actionQueue.length-1][0]:this.currentAction?this.currentAction[0]:this.get(),this.set(n,{duration:t,curve:function(){return 0}},e)},r.prototype.get=function(t){return this._engineInstance&&(this._engineInstance.getVelocity&&(this.velocity=this._engineInstance.getVelocity()),this.state=this._engineInstance.get(t)),this.state},r.prototype.isActive=function(){return!!this.currentAction},r.prototype.halt=function(){return this.set(this.get())},t.exports=r},function(t,e,n){function r(t){this.method=t,this._instances=[],this.state=[]}var i=n(434);r.SUPPORTS_MULTIPLE=!0,r.prototype.get=function(){for(var t=0;t<this._instances.length;t++)this.state[t]=this._instances[t].get();return this.state},r.prototype.set=function(t,e,n){for(var r=i.after(t.length,n),o=0;o<t.length;o++)this._instances[o]||(this._instances[o]=new this.method),this._instances[o].set(t[o],e,r)},r.prototype.reset=function(t){for(var e=0;e<t.length;e++)this._instances[e]||(this._instances[e]=new this.method),this._instances[e].reset(t[e])},t.exports=r},function(t,e){var n={};n.Direction={X:0,Y:1,Z:2},n.after=function(t,e){var n=t;return function(){n--,0===n&&e.apply(this,arguments)}},n.loadURL=function(t,e){var n=new XMLHttpRequest;n.onreadystatechange=function(){4===this.readyState&&e&&e(this.responseText)},n.open("GET",t),n.send()},n.createDocumentFragmentFromHTML=function(t){var e=document.createElement("div");e.innerHTML=t;for(var n=document.createDocumentFragment();e.hasChildNodes();)n.appendChild(e.firstChild);return n},n.clone=function(t){var e;if("object"==typeof t){e=t instanceof Array?[]:{};for(var r in t)if("object"==typeof t[r]&&null!==t[r])if(t[r]instanceof Array){e[r]=new Array(t[r].length);for(var i=0;i<t[r].length;i++)e[r][i]=n.clone(t[r][i])}else e[r]=n.clone(t[r]);else e[r]=t[r]}else e=t;return e},t.exports=n},function(t,e){function n(t){this.options=Object.create(n.DEFAULT_OPTIONS),t&&this.setOptions(t),this._startTime=0,this._startValue=0,this._updateTime=0,this._endValue=0,this._curve=void 0,this._duration=0,this._active=!1,this._callback=void 0,this.state=0,this.velocity=void 0}function r(t,e,n){return(1-n)*t+n*e}function i(t){return t instanceof Object?t instanceof Array?t.slice(0):Object.create(t):t}function o(t,e){var r={curve:e.curve};return e.duration&&(r.duration=e.duration),e.speed&&(r.speed=e.speed),t instanceof Object&&(void 0!==t.duration&&(r.duration=t.duration),t.curve&&(r.curve=t.curve),t.speed&&(r.speed=t.speed)),"string"==typeof r.curve&&(r.curve=n.getCurve(r.curve)),r}function s(t,e,n,r,i){var o,s=1e-7,u=(n(i)-n(i-s))/s;if(t instanceof Array){o=[];for(var a=0;a<t.length;a++)"number"==typeof t[a]?o[a]=u*(t[a]-e[a])/r:o[a]=0}else o=u*(t-e)/r;return o}function u(t,e,n){var i;if(t instanceof Array){i=[];for(var o=0;o<t.length;o++)"number"==typeof t[o]?i[o]=r(t[o],e[o],n):i[o]=t[o]}else i=r(t,e,n);return i}n.Curves={linear:function(t){return t},easeIn:function(t){return t*t},easeOut:function(t){return t*(2-t)},easeInOut:function(t){return.5>=t?2*t*t:-2*t*t+4*t-1},easeOutBounce:function(t){return t*(3-2*t)},spring:function(t){return(1-t)*Math.sin(6*Math.PI*t)+t}},n.SUPPORTS_MULTIPLE=!0,n.DEFAULT_OPTIONS={curve:n.Curves.linear,duration:500,speed:0};var a={};n.registerCurve=function(t,e){return a[t]?!1:(a[t]=e,!0)},n.unregisterCurve=function(t){return a[t]?(delete a[t],!0):!1},n.getCurve=function(t){var e=a[t];if(void 0!==e)return e;throw new Error("curve not registered")},n.getCurves=function(){return a},n.prototype.setOptions=function(t){void 0!==t.curve&&(this.options.curve=t.curve),void 0!==t.duration&&(this.options.duration=t.duration),void 0!==t.speed&&(this.options.speed=t.speed)},n.prototype.set=function(t,e,n){if(!e)return this.reset(t),void(n&&n());if(this._startValue=i(this.get()),e=o(e,this.options),e.speed){var r=this._startValue;if(r instanceof Object){var s=0;for(var u in r)s+=(t[u]-r[u])*(t[u]-r[u]);e.duration=Math.sqrt(s)/e.speed}else e.duration=Math.abs(t-r)/e.speed}this._startTime=Date.now(),this._endValue=i(t),this._startVelocity=i(e.velocity),this._duration=e.duration,this._curve=e.curve,this._active=!0,this._callback=n},n.prototype.reset=function(t,e){if(this._callback){var n=this._callback;this._callback=void 0,n()}this.state=i(t),this.velocity=i(e),this._startTime=0,this._duration=0,this._updateTime=0,this._startValue=this.state,this._startVelocity=this.velocity,this._endValue=this.state,this._active=!1},n.prototype.getVelocity=function(){return this.velocity},n.prototype.get=function(t){return this.update(t),this.state},n.prototype.update=function(t){if(this._active){if(t||(t=Date.now()),!(this._updateTime>=t)){this._updateTime=t;var e=t-this._startTime;if(e>=this._duration)this.state=this._endValue,this.velocity=s(this.state,this._startValue,this._curve,this._duration,1),this._active=!1;else if(0>e)this.state=this._startValue,this.velocity=this._startVelocity;else{var n=e/this._duration;this.state=u(this._startValue,this._endValue,this._curve(n)),this.velocity=s(this.state,this._startValue,this._curve,this._duration,n)}}}else if(this._callback){var r=this._callback;this._callback=void 0,r()}},n.prototype.isActive=function(){return this._active},n.prototype.halt=function(){this.reset(this.get())},n.registerCurve("linear",n.Curves.linear),n.registerCurve("easeIn",n.Curves.easeIn),n.registerCurve("easeOut",n.Curves.easeOut),n.registerCurve("easeInOut",n.Curves.easeInOut),n.registerCurve("easeOutBounce",n.Curves.easeOutBounce),n.registerCurve("spring",n.Curves.spring),n.customCurve=function(t,e){return t=t||0,e=e||0,function(n){return t*n+(-2*t-e+3)*n*n+(t+e-2)*n*n*n}},t.exports=n},function(t,e){var n={inQuad:function(t){return t*t},outQuad:function(t){return-(t-=1)*t+1},inOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},inCubic:function(t){return t*t*t},outCubic:function(t){return--t*t*t+1},inOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},inQuart:function(t){return t*t*t*t},outQuart:function(t){return-(--t*t*t*t-1)},inOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},inQuint:function(t){return t*t*t*t*t},outQuint:function(t){return--t*t*t*t*t+1},inOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},inSine:function(t){return-1*Math.cos(t*(Math.PI/2))+1},outSine:function(t){return Math.sin(t*(Math.PI/2))},inOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},inExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},outExpo:function(t){return 1===t?1:-Math.pow(2,-10*t)+1},inOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(-Math.pow(2,-10*--t)+2)},inCirc:function(t){return-(Math.sqrt(1-t*t)-1)},outCirc:function(t){return Math.sqrt(1- --t*t)},inOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},inElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===t?1:(n||(n=.3),e=n/(2*Math.PI)*Math.asin(1/r),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},outElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===t?1:(n||(n=.3),e=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},inOutElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:2===(t/=.5)?1:(n||(n=.3*1.5),e=n/(2*Math.PI)*Math.asin(1/r),1>t?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},inBack:function(t,e){return void 0===e&&(e=1.70158),t*t*((e+1)*t-e)},outBack:function(t,e){return void 0===e&&(e=1.70158),--t*t*((e+1)*t+e)+1},inOutBack:function(t,e){return void 0===e&&(e=1.70158),(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},inBounce:function(t){return 1-n.outBounce(1-t)},outBounce:function(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},inOutBounce:function(t){return.5>t?.5*n.inBounce(2*t):.5*n.outBounce(2*t-1)+.5}};t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0}),e.Molecule=void 0;var o=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(438),u=r(s),a=n(440),c=r(a),f=n(439),l=r(f),h=n(443),p=r(h),d=n(445);n(450);var v=e.Molecule=function(){function t(e){i(this,t),console.log("Molecule constructor."),this.node=new c["default"],this._={options:{},defaultOptions:{}},(0,d.simpleExtend)(this._.defaultOptions,{align:[.5,.5],origin:[.5,.5],transform:new l["default"],handler:new p["default"]}),this.options=e}return o(t,[{key:"setOptions",value:function(t){("undefined"==typeof t||"Object"!=t.constructor.name)&&(t={});for(var e in t)u["default"].prototype[""+e+"From"]&&this.modifier[""+e+"From"](t[e]),this._.options[e]=t[e]}},{key:"resetOptions",value:function(){this.modifier=new u["default"],this.node.set(this.modifier),this.setOptions(this._.defaultOptions)}},{key:"pipe",value:function(){var t=Array.prototype.splice.call(arguments,0);return this.options.handler.pipe.apply(this.options.handler,t)}},{key:"unpipe",value:function(){var t=Array.prototype.splice.call(arguments,0);return this.options.handler.unpipe.apply(this.options.handler,t)}},{key:"on",value:function(){var t=Array.prototype.splice.call(arguments,0);return this.options.handler.on.apply(this.options.handler,t)}},{key:"off",value:function(){var t=Array.prototype.splice.call(arguments,0);return this.options.handler.on.apply(this.options.handler,t)}},{key:"options",set:function(t){this.resetOptions(),this.setOptions(t)},get:function(){return this._.options}},{key:"transform",set:function(t){this.setOptions({transform:t})},get:function(){return this.options.transform}}]),t}();e["default"]=v},function(t,e,n){function r(t){this._transformGetter=null,this._opacityGetter=null,this._originGetter=null,this._alignGetter=null,this._sizeGetter=null,this._proportionGetter=null,this._legacyStates={},this._output={transform:o.identity,opacity:1,origin:null,align:null,size:null,proportions:null,target:null},t&&(t.transform&&this.transformFrom(t.transform),void 0!==t.opacity&&this.opacityFrom(t.opacity),t.origin&&this.originFrom(t.origin),t.align&&this.alignFrom(t.align),t.size&&this.sizeFrom(t.size),t.proportions&&this.proportionsFrom(t.proportions))}function i(){this._transformGetter&&(this._output.transform=this._transformGetter()),this._opacityGetter&&(this._output.opacity=this._opacityGetter()),this._originGetter&&(this._output.origin=this._originGetter()),this._alignGetter&&(this._output.align=this._alignGetter()),this._sizeGetter&&(this._output.size=this._sizeGetter()),this._proportionGetter&&(this._output.proportions=this._proportionGetter())}var o=n(431),s=n(432),u=n(439);r.prototype.transformFrom=function(t){return t instanceof Function?this._transformGetter=t:t instanceof Object&&t.get?this._transformGetter=t.get.bind(t):(this._transformGetter=null,this._output.transform=t),this},r.prototype.opacityFrom=function(t){return t instanceof Function?this._opacityGetter=t:t instanceof Object&&t.get?this._opacityGetter=t.get.bind(t):(this._opacityGetter=null,this._output.opacity=t),this},r.prototype.originFrom=function(t){return t instanceof Function?this._originGetter=t:t instanceof Object&&t.get?this._originGetter=t.get.bind(t):(this._originGetter=null,this._output.origin=t),this},r.prototype.alignFrom=function(t){return t instanceof Function?this._alignGetter=t:t instanceof Object&&t.get?this._alignGetter=t.get.bind(t):(this._alignGetter=null,this._output.align=t),this},r.prototype.sizeFrom=function(t){return t instanceof Function?this._sizeGetter=t:t instanceof Object&&t.get?this._sizeGetter=t.get.bind(t):(this._sizeGetter=null,this._output.size=t),this},r.prototype.proportionsFrom=function(t){return t instanceof Function?this._proportionGetter=t:t instanceof Object&&t.get?this._proportionGetter=t.get.bind(t):(this._proportionGetter=null,this._output.proportions=t),this},r.prototype.setTransform=function(t,e,n){return e||this._legacyStates.transform?(this._legacyStates.transform||(this._legacyStates.transform=new u(this._output.transform)),this._transformGetter||this.transformFrom(this._legacyStates.transform),this._legacyStates.transform.set(t,e,n),this):this.transformFrom(t)},r.prototype.setOpacity=function(t,e,n){return e||this._legacyStates.opacity?(this._legacyStates.opacity||(this._legacyStates.opacity=new s(this._output.opacity)),this._opacityGetter||this.opacityFrom(this._legacyStates.opacity),this._legacyStates.opacity.set(t,e,n)):this.opacityFrom(t)},r.prototype.setOrigin=function(t,e,n){return e||this._legacyStates.origin?(this._legacyStates.origin||(this._legacyStates.origin=new s(this._output.origin||[0,0])),this._originGetter||this.originFrom(this._legacyStates.origin),this._legacyStates.origin.set(t,e,n),this):this.originFrom(t)},r.prototype.setAlign=function(t,e,n){return e||this._legacyStates.align?(this._legacyStates.align||(this._legacyStates.align=new s(this._output.align||[0,0])),this._alignGetter||this.alignFrom(this._legacyStates.align),this._legacyStates.align.set(t,e,n),this):this.alignFrom(t)},r.prototype.setSize=function(t,e,n){return t&&(e||this._legacyStates.size)?(this._legacyStates.size||(this._legacyStates.size=new s(this._output.size||[0,0])),this._sizeGetter||this.sizeFrom(this._legacyStates.size),this._legacyStates.size.set(t,e,n),this):this.sizeFrom(t)},r.prototype.setProportions=function(t,e,n){return t&&(e||this._legacyStates.proportions)?(this._legacyStates.proportions||(this._legacyStates.proportions=new s(this._output.proportions||[0,0])),this._proportionGetter||this.proportionsFrom(this._legacyStates.proportions),this._legacyStates.proportions.set(t,e,n),this):this.proportionsFrom(t)},r.prototype.halt=function(){this._legacyStates.transform&&this._legacyStates.transform.halt(),this._legacyStates.opacity&&this._legacyStates.opacity.halt(),this._legacyStates.origin&&this._legacyStates.origin.halt(),this._legacyStates.align&&this._legacyStates.align.halt(),this._legacyStates.size&&this._legacyStates.size.halt(),this._legacyStates.proportions&&this._legacyStates.proportions.halt(),this._transformGetter=null,this._opacityGetter=null,this._originGetter=null,this._alignGetter=null,this._sizeGetter=null,this._proportionGetter=null},r.prototype.getTransform=function(){return this._transformGetter()},r.prototype.getFinalTransform=function(){return this._legacyStates.transform?this._legacyStates.transform.getFinal():this._output.transform},r.prototype.getOpacity=function(){return this._opacityGetter()},r.prototype.getOrigin=function(){return this._originGetter()},r.prototype.getAlign=function(){return this._alignGetter()},r.prototype.getSize=function(){return this._sizeGetter?this._sizeGetter():this._output.size},r.prototype.getProportions=function(){return this._proportionGetter?this._proportionGetter():this._output.proportions},r.prototype.modify=function(t){return i.call(this),this._output.target=t,this._output},t.exports=r},function(t,e,n){function r(t){this._final=a.identity.slice(),this._finalTranslate=[0,0,0],this._finalRotate=[0,0,0],this._finalSkew=[0,0,0],this._finalScale=[1,1,1],this.translate=[],
this.rotate=[],this.skew=[],this.scale=[];for(var e=0;3>e;e+=1)this.translate[e]=new u(this._finalTranslate[e]),this.rotate[e]=new u(this._finalRotate[e]),this.skew[e]=new u(this._finalSkew[e]),this.scale[e]=new u(this._finalScale[e]);t&&this.set(t)}function i(){return a.build({translate:[this.translate[0].get(),this.translate[1].get(),this.translate[2].get()],rotate:[this.rotate[0].get(),this.rotate[1].get(),this.rotate[2].get()],skew:[this.skew[0].get(),this.skew[1].get(),this.skew[2].get()],scale:[this.scale[0].get(),this.scale[1].get(),this.scale[2].get()]})}function o(){return a.build({translate:this._finalTranslate,rotate:this._finalRotate,skew:this._finalSkew,scale:this._finalScale})}function s(t,e){for(var n=0,r=0;r<t.length;r+=1)typeof t[r]==e+""&&(n+=1);return n}var u=n(432),a=n(431),c=n(434);r.prototype.setTranslate=function(t,e,n){for(var r=s(t,"number"),i=n?c.after(r,n):null,u=0;u<t.length;u+=1)"number"==typeof t[u]&&(this.translate[u].set(t[u],e,i),this._finalTranslate[u]=t[u]);return this._final=o.call(this),this},r.prototype.setTranslateX=function(t,e,n){return this.translate[0].set(t,e,n),this._finalTranslate[0]=t,this._final=o.call(this),this},r.prototype.setTranslateY=function(t,e,n){return this.translate[1].set(t,e,n),this._finalTranslate[1]=t,this._final=o.call(this),this},r.prototype.setTranslateZ=function(t,e,n){return this.translate[2].set(t,e,n),this._finalTranslate[2]=t,this._final=o.call(this),this},r.prototype.setScale=function(t,e,n){for(var r=s(t,"number"),i=n?c.after(r,n):null,u=0;u<t.length;u+=1)"number"==typeof t[u]&&(this.scale[u].set(t[u],e,i),this._finalScale[u]=t[u]);return this._final=o.call(this),this},r.prototype.setScaleX=function(t,e,n){return this.scale[0].set(t,e,n),this._finalScale[0]=t,this._final=o.call(this),this},r.prototype.setScaleY=function(t,e,n){return this.scale[1].set(t,e,n),this._finalScale[1]=t,this._final=o.call(this),this},r.prototype.setScaleZ=function(t,e,n){return this.scale[2].set(t,e,n),this._finalScale[2]=t,this._final=o.call(this),this},r.prototype.setRotate=function(t,e,n){for(var r=s(t,"number"),i=n?c.after(r,n):null,u=0;u<t.length;u+=1)"number"==typeof t[u]&&(this.rotate[u].set(t[u],e,i),this._finalRotate[u]=t[u]);return this._final=o.call(this),this},r.prototype.setRotateX=function(t,e,n){return this.rotate[0].set(t,e,n),this._finalRotate[0]=t,this._final=o.call(this),this},r.prototype.setRotateY=function(t,e,n){return this.rotate[1].set(t,e,n),this._finalRotate[1]=t,this._final=o.call(this),this},r.prototype.setRotateZ=function(t,e,n){return this.rotate[2].set(t,e,n),this._finalRotate[2]=t,this._final=o.call(this),this},r.prototype.setSkew=function(t,e,n){for(var r=s(t,"number"),i=n?c.after(r,n):null,u=0;u<t.length;u+=1)"number"==typeof t[u]&&(this.skew[u].set(t[u],e,i),this._finalSkew[u]=t[u]);return this._final=o.call(this),this},r.prototype.setSkewX=function(t,e,n){return this.skew[0].set(t,e,n),this._finalSkew[0]=t,this._final=o.call(this),this},r.prototype.setSkewY=function(t,e,n){return this.skew[1].set(t,e,n),this._finalSkew[1]=t,this._final=o.call(this),this},r.prototype.setSkewZ=function(t,e,n){return this.skew[2].set(t,e,n),this._finalSkew[2]=t,this._final=o.call(this),this},r.prototype.set=function(t,e,n){var r=a.interpret(t);this._finalTranslate=r.translate,this._finalRotate=r.rotate,this._finalSkew=r.skew,this._finalScale=r.scale,this._final=t;for(var i=n?c.after(12,n):null,o=0;3>o;o+=1)this.translate[o].set(r.translate[o],e,i),this.rotate[o].set(r.rotate[o],e,i),this.skew[o].set(r.skew[o],e,i),this.scale[o].set(r.scale[o],e,i);return this},r.prototype.setDefaultTransition=function(t){for(var e=0;3>e;e+=1)this.translate[e].setDefault(t),this.rotate[e].setDefault(t),this.skew[e].setDefault(t),this.scale[e].setDefault(t)},r.prototype.get=function(){return this.isActive()?i.call(this):this._final},r.prototype.getFinal=function(){return this._final},r.prototype.isActive=function f(){for(var f=!1,t=0;3>t;t+=1)if(this.translate[t].isActive()||this.rotate[t].isActive()||this.skew[t].isActive()||this.scale[t].isActive()){f=!0;break}return f},r.prototype.halt=function(){for(var t=0;3>t;t+=1)this.translate[t].halt(),this.rotate[t].halt(),this.skew[t].halt(),this.scale[t].halt(),this._finalTranslate[t]=this.translate[t].get(),this._finalRotate[t]=this.rotate[t].get(),this._finalSkew[t]=this.skew[t].get(),this._finalScale[t]=this.scale[t].get();return this._final=this.get(),this},t.exports=r},function(t,e,n){function r(t){this._object=null,this._child=null,this._hasMultipleChildren=!1,this._isRenderable=!1,this._isModifier=!1,this._resultCache={},this._prevResults={},this._childResult=null,t&&this.set(t)}function i(t,e,n){for(var r=s.parse(t,e),u=Object.keys(r),a=0;a<u.length;a++){var c=u[a],f=o.get(c),l=r[c];l.allocator=e.allocator;var h=f.commit(l);h?i(h,e,n):n[c]=l}}var o=n(441),s=n(442);r.prototype.add=function(t){var e=t instanceof r?t:new r(t);return this._child instanceof Array?this._child.push(e):this._child?(this._child=[this._child,e],this._hasMultipleChildren=!0,this._childResult=[]):this._child=e,e},r.prototype.get=function(){return this._object||(this._hasMultipleChildren?null:this._child?this._child.get():null)},r.prototype.set=function(t){return this._childResult=null,this._hasMultipleChildren=!1,this._isRenderable=t.render?!0:!1,this._isModifier=t.modify?!0:!1,this._object=t,this._child=null,t instanceof r?t:this},r.prototype.getSize=function(){var t=null,e=this.get();return e&&e.getSize&&(t=e.getSize()),!t&&this._child&&this._child.getSize&&(t=this._child.getSize()),t},r.prototype.commit=function(t){for(var e=Object.keys(this._prevResults),n=0;n<e.length;n++){var r=e[n];if(void 0===this._resultCache[r]){var s=o.get(r);s.cleanup&&s.cleanup(t.allocator)}}this._prevResults=this._resultCache,this._resultCache={},i(this.render(),t,this._resultCache)},r.prototype.render=function(){if(this._isRenderable)return this._object.render();var t=null;if(this._hasMultipleChildren){t=this._childResult;for(var e=this._child,n=0;n<e.length;n++)t[n]=e[n].render()}else this._child&&(t=this._child.render());return this._isModifier?this._object.modify(t):t},t.exports=r},function(t,e){function n(t){return s[t]}function r(t,e){s[t]=e}function i(t){var e=s.length;return r(e,t),e}function o(t){r(t,null)}var s=[];t.exports={register:i,unregister:o,get:n,set:r}},function(t,e,n){function r(){this.result={}}function i(t,e){return[t[0]*e[0]+t[1]*e[4]+t[2]*e[8],t[0]*e[1]+t[1]*e[5]+t[2]*e[9],t[0]*e[2]+t[1]*e[6]+t[2]*e[10]]}var o=n(431);r._instance=new r,r.parse=function(t,e){return r._instance.parse(t,e)},r.prototype.parse=function(t,e){return this.reset(),this._parseSpec(t,e,o.identity),this.result},r.prototype.reset=function(){this.result={}};var s=[0,0];r.prototype._parseSpec=function(t,e,n){var r,u,a,c,f,l,h;if("number"==typeof t){if(r=t,a=e.transform,l=e.align||s,e.size&&l&&(l[0]||l[1])){var p=[l[0]*e.size[0],l[1]*e.size[1],0];a=o.thenMove(a,i(p,n))}this.result[r]={transform:a,opacity:e.opacity,origin:e.origin||s,align:e.align||s,size:e.size}}else{if(!t)return;if(t instanceof Array)for(var d=0;d<t.length;d++)this._parseSpec(t[d],e,n);else{u=t.target,a=e.transform,c=e.opacity,f=e.origin,l=e.align,h=e.size;var v=n;if(void 0!==t.opacity&&(c=e.opacity*t.opacity),t.transform&&(a=o.multiply(e.transform,t.transform)),t.origin&&(f=t.origin,v=e.transform),t.align&&(l=t.align),t.size||t.proportions){var y=h;h=[h[0],h[1]],t.size&&(void 0!==t.size[0]&&(h[0]=t.size[0]),void 0!==t.size[1]&&(h[1]=t.size[1])),t.proportions&&(void 0!==t.proportions[0]&&(h[0]=h[0]*t.proportions[0]),void 0!==t.proportions[1]&&(h[1]=h[1]*t.proportions[1])),y&&(l&&(l[0]||l[1])&&(a=o.thenMove(a,i([l[0]*y[0],l[1]*y[1],0],n))),f&&(f[0]||f[1])&&(a=o.moveThen([-f[0]*h[0],-f[1]*h[1],0],a))),v=e.transform,f=null,l=null}this._parseSpec(u,{transform:a,opacity:c,origin:f,align:l,size:h},v)}}},t.exports=r},function(t,e,n){function r(){i.apply(this,arguments),this.downstream=[],this.downstreamFn=[],this.upstream=[],this.upstreamListeners={}}var i=n(444);r.prototype=Object.create(i.prototype),r.prototype.constructor=r,r.setInputHandler=function(t,e){t.trigger=e.trigger.bind(e),e.subscribe&&e.unsubscribe&&(t.subscribe=e.subscribe.bind(e),t.unsubscribe=e.unsubscribe.bind(e))},r.setOutputHandler=function(t,e){e instanceof r&&e.bindThis(t),t.pipe=e.pipe.bind(e),t.unpipe=e.unpipe.bind(e),t.on=e.on.bind(e),t.addListener=t.on,t.removeListener=e.removeListener.bind(e)},r.prototype.emit=function(t,e){i.prototype.emit.apply(this,arguments);var n=0;for(n=0;n<this.downstream.length;n++)this.downstream[n].trigger&&this.downstream[n].trigger(t,e);for(n=0;n<this.downstreamFn.length;n++)this.downstreamFn[n](t,e);return this},r.prototype.trigger=r.prototype.emit,r.prototype.pipe=function(t){if(t.subscribe instanceof Function)return t.subscribe(this);var e=t instanceof Function?this.downstreamFn:this.downstream,n=e.indexOf(t);return 0>n&&e.push(t),t instanceof Function?t("pipe",null):t.trigger&&t.trigger("pipe",null),t},r.prototype.unpipe=function(t){if(t.unsubscribe instanceof Function)return t.unsubscribe(this);var e=t instanceof Function?this.downstreamFn:this.downstream,n=e.indexOf(t);return n>=0?(e.splice(n,1),t instanceof Function?t("unpipe",null):t.trigger&&t.trigger("unpipe",null),t):!1},r.prototype.on=function(t,e){if(i.prototype.on.apply(this,arguments),!(t in this.upstreamListeners)){var n=this.trigger.bind(this,t);this.upstreamListeners[t]=n;for(var r=0;r<this.upstream.length;r++)this.upstream[r].on(t,n)}return this},r.prototype.addListener=r.prototype.on,r.prototype.subscribe=function(t){var e=this.upstream.indexOf(t);if(0>e){this.upstream.push(t);for(var n in this.upstreamListeners)t.on(n,this.upstreamListeners[n])}return this},r.prototype.unsubscribe=function(t){var e=this.upstream.indexOf(t);if(e>=0){this.upstream.splice(e,1);for(var n in this.upstreamListeners)t.removeListener(n,this.upstreamListeners[n])}return this},t.exports=r},function(t,e){function n(){this.listeners={},this._owner=this}n.prototype.emit=function(t,e){var n=this.listeners[t];if(n)for(var r=0;r<n.length;r++)n[r].call(this._owner,e);return this},n.prototype.on=function(t,e){t in this.listeners||(this.listeners[t]=[]);var n=this.listeners[t].indexOf(e);return 0>n&&this.listeners[t].push(e),this},n.prototype.addListener=n.prototype.on,n.prototype.removeListener=function(t,e){var n=this.listeners[t];if(void 0!==n){var r=n.indexOf(e);r>=0&&n.splice(r,1)}return this},n.prototype.bindThis=function(t){this._owner=t},t.exports=n},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){var e=u["default"].createContext();return e.setPerspective(t),e}function o(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;e>r;r++)n[r-1]=arguments[r];n.forEach(function(e){for(var n in e)t[n]=e[n]})}Object.defineProperty(e,"__esModule",{value:!0}),e.contextWithPerspective=i,e.simpleExtend=o;var s=n(446),u=r(s)},function(t,e,n){function r(){S.runLoop?(d.step(),window.requestAnimationFrame(r)):w=!1}function i(t){for(var e=0;e<v.length;e++)v[e].emit("resize");x.emit("resize")}function o(){window.addEventListener("touchmove",function(t){t.preventDefault()},!0),s()}function s(){return document.body?(document.body.classList.add("famous-root"),void document.documentElement.classList.add("famous-root")):void d.nextTick(s)}function u(t,e){return document.body?void document.body.addEventListener(t,e):void d.nextTick(addEventListener.bind(this,t,e))}function a(t,e){return document.body?(document.body.appendChild(e),void t.emit("resize")):void d.nextTick(a.bind(this,t,e))}var c,f,l=n(447),h=n(443),p=n(449),d={},v=[],y=[],m=0,g=0,_=[],b=Date.now(),w=!0,O={},x=new h,S={containerType:"div",containerClass:"famous-container",fpsCap:void 0,runLoop:!0,appMode:!0},M=new p(S),k=10;d.step=function(){m++,g=m;var t=Date.now();if(!(f&&f>t-b)){var e=0;c=t-b,b=t,x.emit("prerender");for(var n=y.length;n--;)y.shift()(m);for(;_.length&&Date.now()-t<k;)_.shift().call(this);for(e=0;e<v.length;e++)v[e].update();x.emit("postrender")}},window.requestAnimationFrame(r),window.addEventListener("resize",i,!1),i();var P=!1;d.pipe=function(t){return t.subscribe instanceof Function?t.subscribe(d):x.pipe(t)},d.unpipe=function(t){return t.unsubscribe instanceof Function?t.unsubscribe(d):x.unpipe(t)},d.on=function(t,e){return t in O||(O[t]=x.emit.bind(x,t),u(t,O[t])),x.on(t,e)},d.emit=function(t,e){return x.emit(t,e)},d.removeListener=function(t,e){return x.removeListener(t,e)},d.getFPS=function(){return 1e3/c},d.setFPSCap=function(t){f=Math.floor(1e3/t)},d.getOptions=function(t){return M.getOptions(t)},d.setOptions=function(t){return M.setOptions.apply(M,arguments)},d.createContext=function(t){!P&&S.appMode&&d.nextTick(o);var e=!1;t||(t=document.createElement(S.containerType),t.classList.add(S.containerClass),e=!0);var n=new l(t);return d.registerContext(n),e&&a(n,t),n},d.registerContext=function(t){return v.push(t),t},d.getContexts=function(){return v},d.deregisterContext=function(t){var e=v.indexOf(t);e>=0&&v.splice(e,1)},d.nextTick=function(t){y.push(t)},d.defer=function(t){_.push(t)},M.on("change",function(t){"fpsCap"===t.id?d.setFPSCap(t.value):"runLoop"===t.id&&!w&&t.value&&(w=!0,window.requestAnimationFrame(r))}),t.exports=d},function(t,e,n){function r(){var t=this.container;return[t.clientWidth,t.clientHeight]}function i(t){this.container=t,this._allocator=new u(t),this._node=new o,this._eventOutput=new s,this._size=r.call(this),this._perspectiveState=new c(0),this._perspective=void 0,this._nodeContext={allocator:this._allocator,transform:a.identity,opacity:1,origin:f,align:f,size:this._size},this._eventOutput.on("resize",function(){this.setSize(r.call(this))}.bind(this))}var o=n(440),s=n(443),u=n(448),a=n(431),c=n(432),f=[0,0],l=!("perspective"in document.documentElement.style),h=l?function(t,e){t.style.webkitPerspective=e?e.toFixed()+"px":""}:function(t,e){t.style.perspective=e?e.toFixed()+"px":""};i.prototype.getAllocator=function(){return this._allocator},i.prototype.add=function(t){return this._node.add(t)},i.prototype.migrate=function(t){t!==this.container&&(this.container=t,this._allocator.migrate(t))},i.prototype.getSize=function(){return this._size},i.prototype.setSize=function(t){t||(t=r.call(this)),this._size[0]=t[0],this._size[1]=t[1]},i.prototype.update=function(t){t&&(t.transform&&(this._nodeContext.transform=t.transform),t.opacity&&(this._nodeContext.opacity=t.opacity),t.origin&&(this._nodeContext.origin=t.origin),t.align&&(this._nodeContext.align=t.align),t.size&&(this._nodeContext.size=t.size));var e=this._perspectiveState.get();e!==this._perspective&&(h(this.container,e),this._perspective=e),this._node.commit(this._nodeContext)},i.prototype.getPerspective=function(){return this._perspectiveState.get()},i.prototype.setPerspective=function(t,e,n){return this._perspectiveState.set(t,e,n)},i.prototype.emit=function(t,e){return this._eventOutput.emit(t,e)},i.prototype.on=function(t,e){return this._eventOutput.on(t,e)},i.prototype.removeListener=function(t,e){return this._eventOutput.removeListener(t,e)},i.prototype.pipe=function(t){return this._eventOutput.pipe(t)},i.prototype.unpipe=function(t){return this._eventOutput.unpipe(t)},t.exports=i},function(t,e){function n(t){t||(t=document.createDocumentFragment()),this.container=t,this.detachedNodes={},this.nodeCount=0}n.prototype.migrate=function(t){var e=this.container;if(t!==e){if(e instanceof DocumentFragment)t.appendChild(e);else for(;e.hasChildNodes();)t.appendChild(e.firstChild);this.container=t}},n.prototype.allocate=function(t){t=t.toLowerCase(),t in this.detachedNodes||(this.detachedNodes[t]=[]);var e,n=this.detachedNodes[t];return n.length>0?e=n.pop():(e=document.createElement(t),this.container.appendChild(e)),this.nodeCount++,e},n.prototype.deallocate=function(t){var e=t.nodeName.toLowerCase(),n=this.detachedNodes[e];n.push(t),this.nodeCount--},n.prototype.getNodeCount=function(){return this.nodeCount},t.exports=n},function(t,e,n){function r(t){this._value=t,this.eventOutput=null}function i(){this.eventOutput=new o,this.eventOutput.bindThis(this),o.setOutputHandler(this,this.eventOutput)}var o=n(443);r.patch=function(t,e){for(var n=new r(t),i=1;i<arguments.length;i++)n.patch(arguments[i]);return t},r.prototype.patch=function(){for(var t=this._value,e=0;e<arguments.length;e++){var n=arguments[e];for(var r in n)r in t&&n[r]&&n[r].constructor===Object&&t[r]&&t[r].constructor===Object?(t.hasOwnProperty(r)||(t[r]=Object.create(t[r])),this.key(r).patch(n[r]),this.eventOutput&&this.eventOutput.emit("change",{id:r,value:this.key(r).value()})):this.set(r,n[r])}return this},r.prototype.setOptions=r.prototype.patch,r.prototype.key=function(t){var e=new r(this._value[t]);return(!(e._value instanceof Object)||e._value instanceof Array)&&(e._value={}),e},r.prototype.get=function(t){return t?this._value[t]:this._value},r.prototype.getOptions=r.prototype.get,r.prototype.set=function(t,e){var n=this.get(t);return this._value[t]=e,this.eventOutput&&e!==n&&this.eventOutput.emit("change",{id:t,value:e}),this},r.prototype.on=function(){return i.call(this),this.on.apply(this,arguments)},r.prototype.removeListener=function(){return i.call(this),this.removeListener.apply(this,arguments)},r.prototype.pipe=function(){return i.call(this),this.pipe.apply(this,arguments)},r.prototype.unpipe=function(){return i.call(this),this.unpipe.apply(this,arguments)},t.exports=r},function(t,e){"use strict";(function(){}).name||Object.defineProperty(Function.prototype,"name",{get:function(){var t=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:t}),t}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Grid=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(438),c=r(a),f=n(431),l=r(f),h=n(437),p=r(h),d=n(452),v=r(d),y=e.Grid=function(t){function e(t,n,r){i(this,e);var s=o(this,Object.getPrototypeOf(e).call(this,{size:r}));return s.columns=t,s.rows=n,s.cellNodes=[],"undefined"==typeof s.options.size&&s.setOptions({size:[void 0,void 0]}),(0,v["default"])(s.columns*s.rows,s._createGridCell.bind(s)),s}return s(e,t),u(e,[{key:"_createGridCell",value:function(t){var e=t%this.columns,n=Math.floor(t/this.columns),r=null;"undefined"!=typeof this.options.size[0]&&"undefined"!=typeof this.options.size[1]&&(r=[],r[0]=this.options.size[0]/this.columns,r[1]=this.options.size[1]/this.rows);var i=new c["default"]({align:[0,0],origin:[0,0],size:r?[r[0],r[1]]:[void 0,void 0],transform:l["default"].translate(e*r[0],n*r[1],0)}),o=new c["default"]({align:[.5,.5],origin:[.5,.5]});this.cellNodes.push(this.node.add(i).add(o))}},{key:"setChildren",value:function(t){return(0,v["default"])(this.columns*this.rows,function(e){this.cellNodes[e].add(t[e])}.bind(this)),this}}]),e}(p["default"]);e["default"]=y},function(t,e){"use strict";function n(t,e){for(var n=0;t>n;n+=1)e(n)}e.forLength=n,e["default"]=n,e.__esModule=!0},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.DoubleSidedPlane=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(431),c=r(a),f=n(437),l=r(f),h=n(454),p=r(h),d=e.DoubleSidedPlane=function(t){function e(t){i(this,e);var n=o(this,Object.getPrototypeOf(e).call(this,t));return n.children=[],n.plane1=new p["default"](n.options),n.plane1.transform.set(c["default"].rotate(0,0,0)),n.setOptions({properties:{background:"orange"}}),n.plane2=new p["default"](n.options),n.plane2.transform.set(c["default"].rotate(0,Math.PI,0)),n.children.push(n.plane1),n.children.push(n.plane2),n.node.add(n.plane2.node),n.node.add(n.plane1.node),n.plane1.pipe(n.options.handler),n.plane2.pipe(n.options.handler),n}return s(e,t),u(e,[{key:"getContent",value:function(){return[this.plane1.getContent(),this.plane2.getContent()]}},{key:"setContent",value:function(t){this.plane1.setContent(t[0]),this.plane2.setContent(t[1])}}]),e}(l["default"]);e["default"]=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Plane=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(455),c=r(a),f=n(437),l=r(f),h=e.Plane=function(t){function e(t){i(this,e);var n=o(this,Object.getPrototypeOf(e).call(this,t));return n.surface=new c["default"](n.options),n.node.add(n.surface),n.surface.pipe(n.options.handler),n}return s(e,t),u(e,[{key:"getContent",value:function(){var t=Array.prototype.splice.call(arguments,0);return this.surface.getContent.apply(this.surface,t)}},{key:"setContent",value:function(){var t=Array.prototype.splice.call(arguments,0);return this.surface.setContent.apply(this.surface,t)}}]),e}(l["default"]);e["default"]=h},function(t,e,n){function r(t){f.call(this),this.options={},this.properties={},this.attributes={},this.content="",this.classList=[],this.size=null,this._classesDirty=!0,this._stylesDirty=!0,this._attributesDirty=!0,this._sizeDirty=!0,this._contentDirty=!0,this._trueSizeCheck=!0,this._dirtyClasses=[],t&&this.setOptions(t),this._currentTarget=null}function i(t){for(var e=0;e<this._dirtyClasses.length;e++)t.classList.remove(this._dirtyClasses[e]);this._dirtyClasses=[]}function o(t){for(var e in this.properties)t.style[e]=this.properties[e]}function s(t){for(var e in this.properties)t.style[e]=""}function u(t){for(var e in this.attributes)t.setAttribute(e,this.attributes[e])}function a(t){for(var e in this.attributes)t.removeAttribute(e)}function c(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]:t!==e}var f=n(456);r.prototype=Object.create(f.prototype),r.prototype.constructor=r,r.prototype.elementType="div",r.prototype.elementClass="famous-surface",r.prototype.setAttributes=function(t){for(var e in t){if("style"===e)throw new Error('Cannot set styles via "setAttributes" as it will break Famo.us. Use "setProperties" instead.');this.attributes[e]=t[e]}this._attributesDirty=!0},r.prototype.getAttributes=function(){return this.attributes},r.prototype.setProperties=function(t){for(var e in t)this.properties[e]=t[e];return this._stylesDirty=!0,this},r.prototype.getProperties=function(){return this.properties},r.prototype.addClass=function(t){return this.classList.indexOf(t)<0&&(this.classList.push(t),this._classesDirty=!0),this},r.prototype.removeClass=function(t){var e=this.classList.indexOf(t);return e>=0&&(this._dirtyClasses.push(this.classList.splice(e,1)[0]),this._classesDirty=!0),this},r.prototype.toggleClass=function(t){var e=this.classList.indexOf(t);return e>=0?this.removeClass(t):this.addClass(t),this},r.prototype.setClasses=function(t){var e=0,n=[];for(e=0;e<this.classList.length;e++)t.indexOf(this.classList[e])<0&&n.push(this.classList[e]);for(e=0;e<n.length;e++)this.removeClass(n[e]);for(e=0;e<t.length;e++)this.addClass(t[e]);return this},r.prototype.getClassList=function(){return this.classList},r.prototype.setContent=function(t){return this.content!==t&&(this.content=t,this._contentDirty=!0),this},r.prototype.getContent=function(){return this.content},r.prototype.setOptions=function(t){return t.size&&this.setSize(t.size),t.classes&&this.setClasses(t.classes),t.properties&&this.setProperties(t.properties),t.attributes&&this.setAttributes(t.attributes),t.content&&this.setContent(t.content),this},r.prototype.setup=function(t){var e=t.allocate(this.elementType);if(this.elementClass)if(this.elementClass instanceof Array)for(var n=0;n<this.elementClass.length;n++)e.classList.add(this.elementClass[n]);else e.classList.add(this.elementClass);e.style.display="",this.attach(e),this._opacity=null,this._currentTarget=e,this._stylesDirty=!0,this._classesDirty=!0,this._attributesDirty=!0,this._sizeDirty=!0,this._contentDirty=!0,this._originDirty=!0,this._transformDirty=!0},r.prototype.commit=function(t){this._currentTarget||this.setup(t.allocator);var e=this._currentTarget,n=t.size;if(this._classesDirty){i.call(this,e);for(var r=this.getClassList(),s=0;s<r.length;s++)e.classList.add(r[s]);this._classesDirty=!1,this._trueSizeCheck=!0}if(this._stylesDirty&&(o.call(this,e),this._stylesDirty=!1,this._trueSizeCheck=!0),this._attributesDirty&&(u.call(this,e),this._attributesDirty=!1,this._trueSizeCheck=!0),this.size){var a=t.size;if(n=[this.size[0],this.size[1]],void 0===n[0]&&(n[0]=a[0]),void 0===n[1]&&(n[1]=a[1]),n[0]===!0||n[1]===!0){if(n[0]===!0)if(this._trueSizeCheck||0===this._size[0]){var l=e.offsetWidth;this._size&&this._size[0]!==l&&(this._size[0]=l,this._sizeDirty=!0),n[0]=l}else this._size&&(n[0]=this._size[0]);if(n[1]===!0)if(this._trueSizeCheck||0===this._size[1]){var h=e.offsetHeight;this._size&&this._size[1]!==h&&(this._size[1]=h,this._sizeDirty=!0),n[1]=h}else this._size&&(n[1]=this._size[1]);this._trueSizeCheck=!1}}c(this._size,n)&&(this._size||(this._size=[0,0]),this._size[0]=n[0],this._size[1]=n[1],this._sizeDirty=!0),this._sizeDirty&&(this._size&&(e.style.width=this.size&&this.size[0]===!0?"":this._size[0]+"px",e.style.height=this.size&&this.size[1]===!0?"":this._size[1]+"px"),this._eventOutput.emit("resize")),this._contentDirty&&(this.deploy(e),this._eventOutput.emit("deploy"),this._contentDirty=!1,this._trueSizeCheck=!0),f.prototype.commit.call(this,t)},r.prototype.cleanup=function(t){var e=0,n=this._currentTarget;this._eventOutput.emit("recall"),this.recall(n),n.style.display="none",n.style.opacity="",n.style.width="",n.style.height="",s.call(this,n),a.call(this,n);var r=this.getClassList();for(i.call(this,n),e=0;e<r.length;e++)n.classList.remove(r[e]);if(this.elementClass)if(this.elementClass instanceof Array)for(e=0;e<this.elementClass.length;e++)n.classList.remove(this.elementClass[e]);else n.classList.remove(this.elementClass);this.detach(n),this._currentTarget=null,t.deallocate(n)},r.prototype.deploy=function(t){var e=this.getContent();if(e instanceof Node){for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}else t.innerHTML=e},r.prototype.recall=function(t){for(var e=document.createDocumentFragment();t.hasChildNodes();)e.appendChild(t.firstChild);this.setContent(e)},r.prototype.getSize=function(){return this._size?this._size:this.size},r.prototype.setSize=function(t){return this.size=t?[t[0],t[1]]:null,this._sizeDirty=!0,this},t.exports=r},function(t,e,n){function r(t){this._matrix=null,this._opacity=1,this._origin=null,this._size=null,this._eventOutput=new f,this._eventOutput.bindThis(this),this.eventForwarder=function(t){this._eventOutput.emit(t.type,t)}.bind(this),this.id=c.register(this),this._element=null,this._sizeDirty=!1,this._originDirty=!1,this._transformDirty=!1,this._invisible=!1,t&&this.attach(t)}function i(t){for(var e in this._eventOutput.listeners)t.addEventListener(e,this.eventForwarder)}function o(t){for(var e in this._eventOutput.listeners)t.removeEventListener(e,this.eventForwarder)}function s(t){t[12]=Math.round(t[12]*p)/p,t[13]=Math.round(t[13]*p)/p;for(var e="matrix3d(",n=0;15>n;n++)e+=t[n]<1e-6&&t[n]>-1e-6?"0,":t[n]+",";return e+=t[15]+")"}function u(t){return 100*t[0]+"% "+100*t[1]+"%"}function a(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]:t!==e}var c=n(441),f=n(443),l=n(431),h=!("transform"in document.documentElement.style),p=window.devicePixelRatio||1;r.prototype.on=function(t,e){this._element&&this._element.addEventListener(t,this.eventForwarder),this._eventOutput.on(t,e)},r.prototype.removeListener=function(t,e){this._eventOutput.removeListener(t,e)},r.prototype.emit=function(t,e){e&&!e.origin&&(e.origin=this);var n=this._eventOutput.emit(t,e);return n&&e&&e.stopPropagation&&e.stopPropagation(),n},r.prototype.pipe=function(t){return this._eventOutput.pipe(t)},r.prototype.unpipe=function(t){return this._eventOutput.unpipe(t)},r.prototype.render=function(){return this.id};var d;d=h?function(t,e){t.style.webkitTransform=s(e)}:function(t,e){t.style.transform=s(e)};var v=h?function(t,e){t.style.webkitTransformOrigin=u(e)}:function(t,e){t.style.transformOrigin=u(e)},y=h?function(t){t.style.webkitTransform="scale3d(0.0001,0.0001,0.0001)",t.style.opacity=0}:function(t){t.style.transform="scale3d(0.0001,0.0001,0.0001)",t.style.opacity=0};r.prototype.commit=function(t){var e=this._element;if(e){var n=t.transform,r=t.opacity,i=t.origin;t.size;if(!n&&this._matrix)return this._matrix=null,this._opacity=0,void y(e);if(a(this._origin,i)&&(this._originDirty=!0),l.notEquals(this._matrix,n)&&(this._transformDirty=!0),this._invisible&&(this._invisible=!1,this._element.style.display=""),this._opacity!==r&&(this._opacity=r,e.style.opacity=r>=1?"0.999999":r),this._transformDirty||this._originDirty||this._sizeDirty){this._sizeDirty&&(this._sizeDirty=!1),this._originDirty&&(i?(this._origin||(this._origin=[0,0]),this._origin[0]=i[0],this._origin[1]=i[1]):this._origin=null,v(e,this._origin),this._originDirty=!1),n||(n=l.identity),this._matrix=n;var o=this._size?l.thenMove(n,[-this._size[0]*i[0],-this._size[1]*i[1],0]):n;d(e,o),this._transformDirty=!1}}},r.prototype.cleanup=function(){this._element&&(this._invisible=!0,this._element.style.display="none")},r.prototype.attach=function(t){this._element=t,i.call(this,t)},r.prototype.detach=function(){var t=this._element;return t&&(o.call(this,t),this._invisible&&(this._invisible=!1,this._element.style.display="")),this._element=null,t},t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);
t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Cube=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(431),c=r(a),f=n(458),l=r(f),h=n(459),p=r(h),d=n(461),v=r(d),y=n(437),m=r(y),g=n(454),_=r(g),b=n(452),w=r(b),O=e.Cube=function(t){function e(t){i(this,e);var n=o(this,Object.getPrototypeOf(e).call(this,{size:t}));return v["default"].register({mouse:l["default"],touch:p["default"]}),n.cubeWidth=t,n.cubeSideNodes=[],n.cubeSides=[],(0,w["default"])(6,n._createCubeSide.bind(n)),n}return s(e,t),u(e,[{key:"_createCubeSide",value:function(t){var e=c["default"],n=new m["default"],r=new _["default"]({size:[this.cubeWidth,this.cubeWidth],properties:{background:"pink",backfaceVisibility:"visible"}}),i=new v["default"](["mouse","touch"]);this.cubeSides.push(r),r.pipe(i),i.pipe(this.options.handler),4>t?n.modifier.transformFrom(e.multiply(e.rotate(0,Math.PI/2*t,0),e.translate(0,0,this.cubeWidth/2))):n.modifier.transformFrom(e.multiply(e.rotate(Math.PI/2*(t%2?-1:1),0,0),e.translate(0,0,this.cubeWidth/2))),this.cubeSideNodes.push(this.node.add(n.node)),n.node.add(r.node)}},{key:"setChildren",value:function(t){return(0,w["default"])(6,function(e){this.cubeSideNodes[e].add(t[e])}.bind(this)),this}}]),e}(m["default"]);e["default"]=O},function(t,e,n){function r(t){this.options=Object.create(r.DEFAULT_OPTIONS),this._optionsManager=new c(this.options),t&&this.setOptions(t),this._eventInput=new a,this._eventOutput=new a,a.setInputHandler(this,this._eventInput),a.setOutputHandler(this,this._eventOutput),this._eventInput.on("mousedown",i.bind(this)),this._eventInput.on("mousemove",o.bind(this)),this._eventInput.on("mouseup",s.bind(this)),this.options.propogate?this._eventInput.on("mouseleave",u.bind(this)):this._eventInput.on("mouseleave",s.bind(this)),this.options.clickThreshold&&window.addEventListener("click",function(t){Math.sqrt(Math.pow(this._displacement[0],2)+Math.pow(this._displacement[1],2))>this.options.clickThreshold&&t.stopPropagation()}.bind(this),!0),this._payload={delta:null,position:null,velocity:null,clientX:0,clientY:0,offsetX:0,offsetY:0},this._positionHistory=[],this._position=null,this._prevCoord=void 0,this._prevTime=void 0,this._down=!1,this._moved=!1,this._displacement=[0,0],this._documentActive=!1}function i(t){var e,n;this.options.preventDefault&&t.preventDefault();var r=t.clientX,i=t.clientY;this._prevCoord=[r,i],this._prevTime=Date.now(),this._down=!0,this._move=!1,void 0!==this.options.direction?(this._position=0,e=0,n=0):(this._position=[0,0],e=[0,0],n=[0,0]),this.options.clickThreshold&&(this._displacement=[0,0]);var o=this._payload;o.delta=e,o.position=this._position,o.velocity=n,o.clientX=r,o.clientY=i,o.offsetX=t.offsetX,o.offsetY=t.offsetY,this._positionHistory.push({position:o.position.slice?o.position.slice(0):o.position,time:this._prevTime}),this._eventOutput.emit("start",o),this._documentActive=!1}function o(t){if(this._prevCoord){var e=this._prevCoord,n=(this._prevTime,t.clientX),i=t.clientY,o=Date.now(),s=n-e[0],u=i-e[1];this.options.rails&&(Math.abs(s)>Math.abs(u)?u=0:s=0);var a,c,l=Math.max(o-this._positionHistory[0].time,f),h=this.options.scale;this.options.direction===r.DIRECTION_X?(c=h*s,this._position+=c,a=h*(this._position-this._positionHistory[0].position)/l):this.options.direction===r.DIRECTION_Y?(c=h*u,this._position+=c,a=h*(this._position-this._positionHistory[0].position)/l):(c=[h*s,h*u],a=[h*(this._position[0]-this._positionHistory[0].position[0])/l,h*(this._position[1]-this._positionHistory[0].position[1])/l],this._position[0]+=c[0],this._position[1]+=c[1]),this.options.clickThreshold!==!1&&(this._displacement[0]+=s,this._displacement[1]+=u);var p=this._payload;p.delta=c,p.position=this._position,p.velocity=a,p.clientX=n,p.clientY=i,p.offsetX=t.offsetX,p.offsetY=t.offsetY,this._positionHistory.length===this.options.velocitySampleLength&&this._positionHistory.shift(),this._positionHistory.push({position:p.position.slice?p.position.slice(0):p.position,time:o}),this._eventOutput.emit("update",p),this._prevCoord=[n,i],this._prevTime=o,this._move=!0}}function s(t){this._down&&(this._eventOutput.emit("end",this._payload),this._prevCoord=void 0,this._prevTime=void 0,this._down=!1,this._move=!1,this._positionHistory=[])}function u(t){if(this._down&&this._move&&!this._documentActive){var e=o.bind(this),n=function(t){s.call(this,t),document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",n)}.bind(this,t);document.addEventListener("mousemove",e),document.addEventListener("mouseup",n),this._documentActive=!0}}var a=n(443),c=n(449);r.DEFAULT_OPTIONS={clickThreshold:void 0,direction:void 0,rails:!1,scale:1,propogate:!0,velocitySampleLength:10,preventDefault:!0},r.DIRECTION_X=0,r.DIRECTION_Y=1;var f=8;r.prototype.getOptions=function(){return this.options},r.prototype.setOptions=function(t){return this._optionsManager.setOptions(t)},t.exports=r},function(t,e,n){function r(t){this.options=Object.create(r.DEFAULT_OPTIONS),this._optionsManager=new c(this.options),t&&this.setOptions(t),this._eventOutput=new a,this._touchTracker=new u({touchLimit:this.options.touchLimit}),a.setOutputHandler(this,this._eventOutput),a.setInputHandler(this,this._touchTracker),this._touchTracker.on("trackstart",i.bind(this)),this._touchTracker.on("trackmove",o.bind(this)),this._touchTracker.on("trackend",s.bind(this)),this._payload={delta:null,position:null,velocity:null,clientX:void 0,clientY:void 0,count:0,touch:void 0},this._position=null}function i(t){var e,n;void 0!==this.options.direction?(this._position=0,e=0,n=0):(this._position=[0,0],e=[0,0],n=[0,0]);var r=this._payload;r.delta=n,r.position=this._position,r.velocity=e,r.clientX=t.x,r.clientY=t.y,r.count=t.count,r.touch=t.identifier,this._eventOutput.emit("start",r)}function o(t){var e=t.history,n=e[e.length-1],i=e[e.length-2],o=e[e.length-this.options.velocitySampleLength]?e[e.length-this.options.velocitySampleLength]:e[e.length-2],s=o.timestamp,u=n.timestamp,a=n.x-i.x,c=n.y-i.y,l=n.x-o.x,h=n.y-o.y;this.options.rails&&(Math.abs(a)>Math.abs(c)?c=0:a=0,Math.abs(l)>Math.abs(h)?h=0:l=0);var p,d,v=Math.max(u-s,f),y=l/v,m=h/v,g=this.options.scale;this.options.direction===r.DIRECTION_X?(d=g*a,p=g*y,this._position+=d):this.options.direction===r.DIRECTION_Y?(d=g*c,p=g*m,this._position+=d):(d=[g*a,g*c],p=[g*y,g*m],this._position[0]+=d[0],this._position[1]+=d[1]);var _=this._payload;_.delta=d,_.velocity=p,_.position=this._position,_.clientX=t.x,_.clientY=t.y,_.count=t.count,_.touch=t.identifier,this._eventOutput.emit("update",_)}function s(t){this._payload.count=t.count,this._eventOutput.emit("end",this._payload)}var u=n(460),a=n(443),c=n(449);r.DEFAULT_OPTIONS={direction:void 0,rails:!1,touchLimit:1,velocitySampleLength:10,scale:1},r.DIRECTION_X=0,r.DIRECTION_Y=1;var f=8;r.prototype.setOptions=function(t){return this._optionsManager.setOptions(t)},r.prototype.getOptions=function(){return this.options},t.exports=r},function(t,e,n){function r(t,e,n){return{x:t.clientX,y:t.clientY,identifier:t.identifier,origin:e.origin,timestamp:f(),count:e.touches.length,history:n}}function i(t){if(!(t.touches.length>this.touchLimit)){this.isTouched=!0;for(var e=0;e<t.changedTouches.length;e++){var n=t.changedTouches[e],i=r(n,t,null);this.eventOutput.emit("trackstart",i),this.selective||this.touchHistory[n.identifier]||this.track(i)}}}function o(t){if(!(t.touches.length>this.touchLimit))for(var e=0;e<t.changedTouches.length;e++){var n=t.changedTouches[e],i=this.touchHistory[n.identifier];if(i){var o=r(n,t,i);this.touchHistory[n.identifier].push(o),this.eventOutput.emit("trackmove",o)}}}function s(t){if(this.isTouched){for(var e=0;e<t.changedTouches.length;e++){var n=t.changedTouches[e],i=this.touchHistory[n.identifier];if(i){var o=r(n,t,i);this.eventOutput.emit("trackend",o),delete this.touchHistory[n.identifier]}}this.isTouched=!1}}function u(){for(var t in this.touchHistory){var e=this.touchHistory[t];this.eventOutput.emit("trackend",{touch:e[e.length-1].touch,timestamp:Date.now(),count:0,history:e}),delete this.touchHistory[t]}}function a(t){this.selective=t.selective,this.touchLimit=t.touchLimit||1,this.touchHistory={},this.eventInput=new c,this.eventOutput=new c,c.setInputHandler(this,this.eventInput),c.setOutputHandler(this,this.eventOutput),this.eventInput.on("touchstart",i.bind(this)),this.eventInput.on("touchmove",o.bind(this)),this.eventInput.on("touchend",s.bind(this)),this.eventInput.on("touchcancel",s.bind(this)),this.eventInput.on("unpipe",u.bind(this)),this.isTouched=!1}var c=n(443),f=Date.now;a.prototype.track=function(t){this.touchHistory[t.identifier]=[t]},t.exports=a},function(t,e,n){function r(t,e){this._eventInput=new o,this._eventOutput=new o,o.setInputHandler(this,this._eventInput),o.setOutputHandler(this,this._eventOutput),this._syncs={},t&&this.addSync(t),e&&this.setOptions(e)}function i(t,e){s[t]&&(this._syncs[t]=new s[t](e),this.pipeSync(t))}var o=n(443);r.DIRECTION_X=0,r.DIRECTION_Y=1,r.DIRECTION_Z=2;var s={};r.register=function(t){for(var e in t)if(s[e]){if(s[e]!==t[e])throw new Error("Conflicting sync classes for key: "+e)}else s[e]=t[e]},r.prototype.setOptions=function(t){for(var e in this._syncs)this._syncs[e].setOptions(t)},r.prototype.pipeSync=function(t){var e=this._syncs[t];this._eventInput.pipe(e),e.pipe(this._eventOutput)},r.prototype.unpipeSync=function(t){var e=this._syncs[t];this._eventInput.unpipe(e),e.unpipe(this._eventOutput)},r.prototype.addSync=function(t){if(t instanceof Array)for(var e=0;e<t.length;e++)i.call(this,t[e]);else if(t instanceof Object)for(var n in t)i.call(this,n,t[n])},t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0}),e.PushMenuLayout=void 0;var u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=function C(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:C(i,e,n)}if("value"in r)return r.value;var o=r.get;if(void 0!==o)return o.call(n)},c=n(400),f=r(c),l=n(455),h=r(l),p=n(440),d=r(p),v=n(432),y=r(v),m=n(436),g=r(m),_=n(459),b=r(_),w=n(461),O=r(w),x=n(454),S=r(x),M=n(437),k=r(M),P=n(445),E=n(463),j=r(E),T=e.PushMenuLayout=function(t){function e(t){i(this,e);var n=o(this,Object.getPrototypeOf(e).call(this,t));return(0,P.simpleExtend)(n._.defaultOptions,{menuSide:"left",menuWidth:200,menuHintSize:10,pushAreaWidth:40,animationDuration:1e3,animationType:"foldDown",fade:!0,fadeStartColor:"rgba(255,255,255,0)",fadeEndColor:"rgba(255,255,255,1)",blur:!1,blurRadius:5}),n.options=t,n.contentWidth=document.body.clientWidth-n.options.menuHintSize,n.isOpen=!1,n.isOpening=!1,n.isClosing=!1,n.isAnimating=!1,n.isBeingDragged=!1,n.transitionCallback=void 0,O["default"].register({touch:b["default"]}),n._createComponents(),n._initializeEvents(),n.monkeyPatchNodeRenderMethod(),n}return s(e,t),u(e,[{key:"setOptions",value:function(t){a(Object.getPrototypeOf(e.prototype),"setOptions",this).call(this,t)}},{key:"resetOptions",value:function(){a(Object.getPrototypeOf(e.prototype),"resetOptions",this).call(this)}},{key:"_createComponents",value:function(){var t=this;this.touchSync=new O["default"](["touch"]),this.alignment="left"==this.options.menuSide?0:1,this.animationTransition=new y["default"](0),this.mainMol=new k["default"],this.menuMol=new k["default"]({size:[this.options.menuWidth,void 0]}),this.menuMol.oldTransform=this.menuMol.transform,this.menuMol.transform=function(){var e=t.animationTransition.get();switch(t.options.animationType){case"foldDown":this.oldTransform.setTranslateX("left"==t.options.menuSide?e*(t.options.menuWidth-t.options.menuHintSize)-(t.options.menuWidth-t.options.menuHintSize):e*-(t.options.menuWidth-t.options.menuHintSize)+(t.options.menuWidth-t.options.menuHintSize));break;case"moveBack":this.oldTransform.setTranslateX("left"==t.options.menuSide?e*(t.options.menuWidth-t.options.menuHintSize)-(t.options.menuWidth-t.options.menuHintSize):e*-(t.options.menuWidth-t.options.menuHintSize)+(t.options.menuWidth-t.options.menuHintSize))}return this.oldTransform.get()}.bind(this.menuMol),this.menuContentMol=new k["default"],this.contentMol=new k["default"]({size:[this.contentWidth,void 0]}),this.contentMol.oldTransform=this.contentMol.transform,this.contentMol.transform=function(){var e=t.animationTransition.get();switch(t.options.animationType){case"foldDown":this.oldTransform.setTranslateX("left"==t.options.menuSide?e*(t.options.menuWidth-t.options.menuHintSize)+t.options.menuHintSize:e*-(t.options.menuWidth-t.options.menuHintSize)-t.options.menuHintSize),this.oldTransform.setRotateY("left"==t.options.menuSide?e*Math.PI/8:e*-Math.PI/8);break;case"moveBack":var n=100;this.oldTransform.setTranslateX("left"==t.options.menuSide?t.options.menuHintSize:-t.options.menuHintSize),this.oldTransform.setTranslateZ(e*-n)}return this.oldTransform.get()}.bind(this.contentMol),this.menuTouchPlane=new S["default"]({size:[this.options.menuWidth+this.options.pushAreaWidth-this.options.menuHintSize,void 0],properties:{zIndex:"-1000"}}),this.mainMol.setOptions({origin:[this.alignment,.5],align:[this.alignment,.5]}),this.menuMol.setOptions({origin:[this.alignment,.5],align:[this.alignment,.5]}),this.contentMol.setOptions({origin:[this.alignment,.5],align:[this.alignment,.5]}),this.menuTouchPlane.setOptions({origin:[this.alignment,.5],align:[this.alignment,.5]}),this.menuContentMol.transform.setTranslateZ(2),this.menuTouchPlane.transform.setTranslateZ(2),this.updateStyles=function(){var t,e;switch(this.options.animationType){case"foldDown":t=this.options.fadeStartColor,e=this.options.fadeEndColor;break;case"moveBack":t=e=this.options.fadeEndColor}var n={".infamous-fadeLeft":{background:[e,"-moz-linear-gradient(left, "+e+" 0%, "+t+" 100%)","-webkit-gradient(left top, right top, color-stop(0%, "+e+"), color-stop(100%, "+t+"))","-webkit-linear-gradient(left, "+e+" 0%, "+t+" 100%)","-o-linear-gradient(left, "+e+" 0%, "+t+" 100%)","-ms-linear-gradient(left, "+e+" 0%, "+t+" 100%)","linear-gradient(to right, "+e+" 0%, "+t+" 100%)"],filter:"progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc000000', endColorstr='#4d000000', GradientType=1 )"},".infamous-fadeRight":{background:[t,"-moz-linear-gradient(left, "+t+" 0%, "+e+" 100%)","-webkit-gradient(left top, right top, color-stop(0%, "+t+"), color-stop(100%, "+e+"))","-webkit-linear-gradient(left, "+t+" 0%, "+e+" 100%)","-o-linear-gradient(left, "+t+" 0%, "+e+" 100%)","-ms-linear-gradient(left, "+t+" 0%, "+e+" 100%)","linear-gradient(to right, "+t+" 0%, "+e+" 100%)"],filter:"progid:DXImageTransform.Microsoft.gradient( startColorstr='#4d000000', endColorstr='#cc000000', GradientType=1 )"}};this.fadeStylesheet&&this.fadeStylesheet.detach(),this.fadeStylesheet=f["default"].createStyleSheet(n),this.fadeStylesheet.attach()},this.options.fade&&(this.updateStyles(),this.fadePlane=new S["default"]({size:[void 0,void 0],classes:["left"==this.options.menuSide?"infamous-fadeRight":"infamous-fadeLeft"],properties:{zIndex:"1000",pointerEvents:"none"}}),this.fadePlane.setOptions({origin:[this.alignment,.5],align:[this.alignment,.5]}),this.fadePlane.transform.setTranslateZ(1),this.fadePlane.setOptions({opacity:this.animationTransition}),this.contentMol.node.add(this.fadePlane.node)),this.node.add(this.mainMol.node),this.mainMol.node.add(this.contentMol.node),this.menuMol.node.add(this.menuTouchPlane.node),this.menuMol.node.add(this.menuContentMol.node),this.mainMol.node.add(this.menuMol.node)}},{key:"_initializeEvents",value:function(){this.options.handler.on("update",function(t){this.isBeingDragged=!0,this._haltAnimation(!0);var e=this.animationTransition.get();switch(this.options.animationType){case"foldDown":this.animationTransition.set(e+t.delta[0]/(this.options.menuWidth-this.options.menuHintSize));break;case"moveBack":this.animationTransition.set(e+t.delta[0]/(this.options.menuWidth-this.options.menuHintSize))}e=this.animationTransition.get(),e>1?this.animationTransition.set(1):0>e&&this.animationTransition.set(0)}.bind(this)),this.options.handler.on("end",function(t){this.isBeingDragged=!1;var e=this.animationTransition.get();.5>e?this.closeMenu():this.openMenu()}.bind(this)),window.addEventListener("resize",function(t){this.contentWidth=document.body.clientWidth-this.options.menuHintSize,this.contentMol.setOptions({size:[this.contentWidth,void 0]})}.bind(this)),this.menuTouchPlane.pipe(this.touchSync),this.menuTouchPlane.on("mouseenter",function(){this.isOpening||this.openMenu()}.bind(this)),this.menuTouchPlane.on("mouseleave",function(){this.isClosing||this.closeMenu()}.bind(this)),this.touchSync.pipe(this.options.handler)}},{key:"setContent",value:function(t){t instanceof k["default"]?this.contentMol.node.add(t.node):t instanceof d["default"]&&this.contentMol.node.add(t)}},{key:"setMenu",value:function(t){t instanceof k["default"]?(this.menuContentMol.node.add(t.node),t.pipe(this.touchSync),t.on("mouseenter",function(){this.isOpening||this.openMenu()}.bind(this)),t.on("mouseleave",function(){this.isClosing||this.closeMenu()}.bind(this))):t instanceof d["default"]&&this.menuContentMol.node.add(t)}},{key:"openMenu",value:function(t,e){this._haltAnimation(e),this.isClosing=!1,this.isOpening=!0,this._animate("open",t)}},{key:"closeMenu",value:function(t,e){this._haltAnimation(e),this.isClosing=!0,this.isOpening=!1,this._animate("close",t)}},{key:"toggleMenu",value:function(t,e){this.isOpen||this.isOpening?this.closeMenu(t,e):(!this.isOpen||this.isClosing)&&this.openMenu(t,e)}},{key:"_animate",value:function(t,e){function n(e){r=(0,j["default"])(e,function(){i.isAnimating=i.isOpening=i.isClosing=!1,i.isOpen="open"==t?!0:!1,"function"==typeof i.transitionCallback&&i.transitionCallback(),i.transitionCallback=void 0}.bind(i))}this.isAnimating=!0,this.transitionCallback=e;var r,i=this;n(1),"open"==t?this.animationTransition.set(1,{duration:this.options.animationDuration,curve:g["default"].outExpo},r):"close"==t&&this.animationTransition.set(0,{duration:this.options.animationDuration,curve:g["default"].outExpo},r)}},{key:"_haltAnimation",value:function(t){this.isAnimating&&(t||"function"!=typeof this.transitionCallback||this.transitionCallback(),this.transitionCallback=void 0,this.animationTransition.halt())}},{key:"monkeyPatchNodeRenderMethod",value:function(){var t=this.node.render,e=this;this.node.render=function(){if(e.options.blur&&e.options.fade&&"moveBack"==e.options.animationType){var n=e.animationTransition.get()*e.options.blurRadius,r={"-webkit-filter":"blur("+n+"px)","-moz-filter":"blur("+n+"px)","-ms-filter":"blur("+n+"px)","-o-filter":"blur("+n+"px)",filter:"blur("+n+"px)"};e.contentMol.node._child[1].get()instanceof h["default"]?e.contentMol.node.get().setProperties(r):e.contentMol.node._child[1]instanceof S["default"]&&e.contentMol.node._child[1].surface.setProperties(r)}return t.call(this)}}}]),e}(k["default"]);e["default"]=T},function(t,e){"use strict";function n(t,e){var n=0;return function(){++n==t&&"function"==typeof e&&e.apply(this,arguments)}}e.callAfter=n,e["default"]=n,e.__esModule=!0},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function r(i,o){try{var s=e[i](o),u=s.value}catch(a){return void n(a)}return s.done?void t(u):Promise.resolve(u).then(function(t){return r("next",t)},function(t){return r("throw",t)})}return r("next")})}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),c=function y(t,e,n){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,e);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:y(i,e,n)}if("value"in r)return r.value;var o=r.get;if(void 0!==o)return o.call(n)};n(394);var f=n(399),l=r(f),h=n(389),p=r(h),d=(0,l["default"])(window.HTMLElement),v=function(t){function e(){return o(this,e),s(this,Object.getPrototypeOf(e).apply(this,arguments))}return u(e,t),a(e,[{key:"createdCallback",value:function(){var t=this;c(Object.getPrototypeOf(e.prototype),"createdCallback",this).call(this),this.node=null,this._resolveReadyPromise=null,this.ready=new Promise(function(e){return t._resolveReadyPromise=e})}},{key:"init",value:function(){this._associateImperativeNode()}},{key:"_associateImperativeNode",value:function(t){this.node||(t&&t instanceof p["default"]?this.node=t:this.node=this._makeImperativeNode(),this._signalWhenReady())}},{key:"_makeImperativeNode",value:function(){throw new TypeError("This method should be implemented by class extening MotorHTMLBase.")}},{key:"_signalWhenReady",value:function(){function t(){return e.apply(this,arguments)}var e=i(regeneratorRuntime.mark(function n(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.node.mountPromise;case 2:this._resolveReadyPromise();case 3:case"end":return t.stop()}},n,this)}));return t}()}]),e}(d);e["default"]=v}])});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment