seinjs-cli
Version:
Command tools for Sein.js.
64 lines (58 loc) • 666 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(t,e,n){(function(n,r){(function(e){"use strict";var i,o,a,u,c,h;function l(t){return t.isSName}(i=e.ESpace||(e.ESpace={}))[i.BONE=0]="BONE",i[i.LOCAL=1]="LOCAL",i[i.WORLD=2]="WORLD",i[i.VIEW=3]="VIEW",i[i.NDC=4]="NDC",i[i.SCREEN=5]="SCREEN",(o=e.EColliderType||(e.EColliderType={}))[o.Null=0]="Null",o[o.Sphere=1]="Sphere",o[o.Box=2]="Box",o[o.Plane=3]="Plane",o[o.Cylinder=4]="Cylinder",(a=e.ERigidBodyType||(e.ERigidBodyType={}))[a.Dynamic=1]="Dynamic",a[a.Static=2]="Static",(u=e.EJointType||(e.EJointType={}))[u.PointToPoint=0]="PointToPoint",u[u.Hinge=1]="Hinge",u[u.Distance=2]="Distance",u[u.Spring=3]="Spring",u[u.Lock=4]="Lock",(c=e.EPickMode||(e.EPickMode={}))[c.CLOSEST=1]="CLOSEST",c[c.Closest=1]="Closest",c[c.Any=2]="Any",c[c.All=4]="All",(h=e.ESeinNodeType||(e.ESeinNodeType={}))[h.Component=1]="Component",h[h.Actor=2]="Actor";var f=function(){function t(e){this.isSName=!0,this._value="",this._index=0,this._value=e,t.TABLE[e]||(t.INDEX+=1,t.TABLE[e]=t.INDEX),this._index=t.TABLE[e]}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),t.prototype.equalsTo=function(e){return l(e)?this._index===e._index:!!t.TABLE[e]&&t.TABLE[e]===this._index},t.prototype.toString=function(){return this._value},t.INDEX=0,t.TABLE={},t}(),d=function(t,e){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */function p(t,e){function n(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var m=function(){return(m=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function _(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function g(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s}function v(t,e,n,r){return new(n||(n=Promise))((function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){t.done?i(t.value):new n((function(e){e(t.value)})).then(s,a)}u((r=r.apply(t,e||[])).next())}))}function y(t,e){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}function E(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],s=0,a=o.length;s<a;s++,i++)r[i]=o[s];return r}var T="production";void 0!==n&&(T="production");var S="production"!==T,A={devMode:S,warn:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];S&&console.warn.apply(console,t)},logCanvas:function(t,e){var n=e*t.height/t.width,r=t.toDataURL();console.log("%c+","font-size: 1px; padding: "+n/2+"px "+e/2+"px; line-height: "+n+"px; background: url("+r+"); background-size: "+e+"px "+n+"px; background-repeat: no-repeat; color: transparent;")},env:T},M=function(t){function e(n,r,i){void 0===i&&(i="");var o=t.call(this,i)||this;return o.isBaseException=!0,o.objectStack=[],o.__proto__=e.prototype,o.name=n,o.object=r,o.type=new f(o.name||"Unknown"),A.devMode&&(o.objectStack=o.initObjectStack()),o}return p(e,t),e.FROM_NATIVE_JS_ERROR=function(t,n){var r=new e(t.name,n,t.message);return r.stack=t.stack,r},e.prototype.initObjectStack=function(){for(var t=this.object,e=[];t;)e.push(t.constructor.CLASS_NAME.value+"("+t.name.value+")"),t=t.parent;return e},e}(Error);function b(t,e,n){void 0===n&&(n=null);var r=t;(function(t){return t.isBaseException})(t)||(r=M.FROM_NATIVE_JS_ERROR(t,e)),A.devMode&&(console.error(r),console.log("%cStack: "+r.objectStack.join(" -> "),"color: #ff0000; background: rgba(255, 0, 0, .1); padding: 16px"));for(var i=e;i;){if(i.onError&&i.onError.call&&!0===i.onError(r,n))return;i=i.parent}throw r}function O(t){return t.isSObject}var L=function(){function t(e){void 0===e&&(e=""),this.isSObject=!0,this.editable=!0,t.UUID+=1,this._uuid=t.UUID,this.name=new f(e||this.constructor.CLASS_NAME.value+"-"+this._uuid)}return Object.defineProperty(t.prototype,"uuid",{get:function(){return this._uuid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this.constructor.CLASS_NAME},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"classType",{get:function(){return this.constructor.CLASS_TYPE},enumerable:!1,configurable:!0}),t.prototype.rename=function(t){this.name=new f(t)},t.prototype.clone=function(t){throw new Error("Not implement.")},t.prototype.serialize=function(){throw new Error("Not implement.")},t.prototype.deserialize=function(t){throw new Error("Not implement.")},t.prototype.onDestroy=function(){},t.prototype.destroy=function(){try{this.onDestroy()}catch(t){b(t,this)}},t.CLASS_NAME=new f("SObject"),t.CLASS_TYPE=new f("SObject"),t.INSPECTABLE_PROPERTIES={},t.UUID=0,t}(),I={},R={};function C(t){return function(e){var n=e;return n.CLASS_NAME=new f(t.className),t.classType&&(n.CLASS_TYPE=new f(t.classType)),I[t.className]=n}}function x(t){return function(e){return e.CLASS_NAME=new f(t.className),R[t.className]=e,e}}var w=function(t){function e(e,n){var r=t.call(this,n)||this;return r.isObservable=!0,r.onEmpty=function(){},r.parent=null,r._index=0,r._length=0,r._queue=[],r.parent=e,r}return p(e,t),Object.defineProperty(e.prototype,"count",{get:function(){return this._queue.length},enumerable:!1,configurable:!0}),e.prototype.add=function(t,e){return void 0!==e?this._queue.splice(e,0,{callback:t,isOnce:!1}):this._queue.push({callback:t,isOnce:!1}),this},e.prototype.addOnce=function(t,e){return void 0!==e?this._queue.splice(e,0,{callback:t,isOnce:!0}):this._queue.push({callback:t,isOnce:!0}),this},e.prototype.clear=function(){return this._queue=[],this.onEmpty(),this},e.prototype.remove=function(t){for(var e=this._queue.length,n=-1,r=0;r<e;r+=1)this._queue[r].callback===t&&(n=r);if(!(n<0))return this._queue.splice(n,1),this._index-=1,this._length-=1,1===e&&this.onEmpty(),this},e.prototype.notify=function(t){var e=this._queue.length;for(this._index=0,this._length=e;this._index<this._length;){var n=this._queue[this._index],r=n.callback;n.isOnce?(this._queue.splice(this._index,1),this._length-=1):this._index+=1;try{if(!0===r(t))return this}catch(t){b(t,this)}}return e>0&&0===this._length&&this.onEmpty(),this},e=g([C({className:"Observable"})],e)}(L),P=function(t){function e(e,n,r,i,o){void 0===o&&(o="");var s=t.call(this,"MissingMember",i,e.className+' "'+e.name+'" does not have '+n+' "'+r+'". '+o)||this;return s.isMissingMemberException=!0,s}return p(e,t),e}(M),N=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this,e.name.value)||this;return n.isEventManager=!0,n._observables={},n._triggers={},n._caches={},n._objHasGame=null,n._objHasGame=e,n}return p(e,t),Object.defineProperty(e.prototype,"parent",{get:function(){return this._objHasGame},enumerable:!1,configurable:!0}),e.prototype.getGame=function(){return this._objHasGame.getGame()},e.prototype.onError=function(){},e.prototype.register=function(t,e){var n=this;return this._observables[t]?(A.warn("Event "+t+" is already registered, before re-register, please unregister it at first !"),this):(this._observables[t]=new w(this,t),this._observables[t].onEmpty=function(){n._triggers[t]&&!n._triggers[t].paused&&n._triggers[t].pause()},e&&(this._triggers[t]=new e(t,this,this.getGame())),this)},e.prototype.unregister=function(t){return this._observables[t]?(delete this._observables[t],this._triggers[t]&&(this._triggers[t].destroy(),delete this._triggers[t]),this):this},e.prototype.add=function(t,e,n){return this._observables[t]||this.register(t),this._observables[t].add(e,n),this._triggers[t]&&this._triggers[t].paused&&this._triggers[t].begin(),this},e.prototype.addOnce=function(t,e,n){return this._observables[t]||this.register(t),this._observables[t].addOnce(e,n),this._triggers[t]&&this._triggers[t].paused&&this._triggers[t].begin(),this},e.prototype.remove=function(t,e){return this._observables[t]?(this._observables[t].remove(e),this):this},e.prototype.has=function(t){return!!this._observables[t]},e.prototype.getCount=function(t){return this.has(t)?this._observables[t].count:0},e.prototype.clear=function(t){return this._observables[t]||b(new P(this,"Event",t,this),this),this._observables[t].clear(),this},e.prototype.trigger=function(t,e,n){return void 0===n&&(n=!0),this._observables[t]||b(new P(this,"Event",t,this,"Register it before trigger !"),this),n||this.getGame().paused?(this._observables[t].notify(e),this):(this._caches[t]=e,this)},e.prototype.flush=function(t){if(!this._observables[t])throw new P(this,"Event",t,this,"Register it before flush !");var e=this._caches[t];return e&&(delete this._caches[t],this._observables[t].notify(e)),this},e.prototype.flushAll=function(){for(var t in this._caches)this.flush(t);return this},e.prototype.onDestroy=function(){for(var t in this._triggers)this._triggers[t].destroy()},e=g([C({className:"EventManager",classType:"EventManager"})],e)}(L);function D(t){return t.isComponent}var H=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.isComponent=!0,i.isRoot=!1,i.updateOnEverTick=!0,i.needUpdateAndDestroy=!0,i.canBeRemoved=!0,i._owner=null,i._event=null,i._initState=r||{},i._owner=n,i._event=new N(i),i}return p(e,t),Object.defineProperty(e.prototype,"parent",{get:function(){return this._owner},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!1,configurable:!0}),e.prototype.verifyAdding=function(t){},e.prototype.verifyRemoving=function(){},e.prototype.onInit=function(t){},e.prototype.onAdd=function(t){},e.prototype.onUpdate=function(t){},e.prototype.onError=function(t,e){},e.prototype.onUnLink=function(){},e.prototype.onReLink=function(){},e.prototype.onDestroy=function(){},e.prototype.initialized=function(){try{this.onInit(this._initState)}catch(t){b(t,this)}},e.prototype.added=function(){try{this.onAdd(this._initState)}catch(t){b(t,this)}},e.prototype.update=function(t){if(this.updateOnEverTick&&this.parent)try{this.onUpdate(t)}catch(t){b(t,this)}},e.prototype.unLink=function(){try{this.onUnLink()}catch(t){b(t,this)}},e.prototype.reLink=function(){try{this.onReLink()}catch(t){b(t,this)}},e.prototype.destroy=function(){this._owner&&(this._event.destroy(),t.prototype.destroy.call(this),this._owner=null)},e.prototype.getGame=function(){return this._owner.getGame()},e.prototype.getWorld=function(){return this._owner.getWorld()},e.prototype.getLevel=function(){return this._owner.getLevel()},e.prototype.getPhysicWorld=function(){return this._owner.getPhysicWorld()},e.prototype.getOwner=function(){return this._owner},e.prototype.getRoot=function(){return this._owner.root},e.prototype.removeFromParent=function(){this._owner.removeComponent(this)},e=g([C({className:"Component",classType:"Component"})],e)}(L),F=function(){function t(){this._array=[]}return Object.defineProperty(t.prototype,"length",{get:function(){return this._array.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this._array.length},enumerable:!1,configurable:!0}),t.prototype.fromArray=function(t){throw new Error("Not implemented")},t.prototype.forEach=function(t){for(var e=this.length,n=0;n<e;n+=1)if(t(this._array[n]))return this;return this},t.prototype.clear=function(){return this._array=[],this},t.prototype.addItem=function(t){this._array.push(t)},t.prototype.removeItem=function(t){var e;if(function(t){return t.isSObject}(t)){if((e=this._array.indexOf(t))<0)return}else if(e=t,!(t=this._array[e]))return;this._array.splice(e,1)},t.prototype.findByClass=function(t){return this.findByFilter((function(e){return e.className.equalsTo(t.CLASS_NAME)}))},t.prototype.findAllByClass=function(t,e){return this.findAllByFilter((function(e){return e.className.equalsTo(t.CLASS_NAME)}),e)},t.prototype.findByClassType=function(t){return this.findByFilter((function(e){return e.classType.equalsTo(t)}))},t.prototype.findAllByClassType=function(t,e){return this.findAllByFilter((function(e){return e.classType.equalsTo(t)}),e)},t.prototype.findByName=function(t){return this.findByFilter((function(e){return e.name.equalsTo(t)}))},t.prototype.findAllByName=function(t,e){return this.findAllByFilter((function(e){return e.name.equalsTo(t)}),e)},t.prototype.findByFilter=function(t){var e=null;return this.forEach((function(n){if(t(n))return e=n,!0})),e},t.prototype.findAllByFilter=function(t,e){var n=[];return this.forEach((function(r){if(t(r)&&(n.push(r),e&&e(r,n)))return!0})),n},t.prototype.serialize=function(){throw new Error("Not implemented")},t.prototype.deserialize=function(t){throw new Error("Not implemented")},t}(),U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p(e,t),Object.defineProperty(e.prototype,"array",{get:function(){return this._array},enumerable:!1,configurable:!0}),e.prototype.add=function(t){return this.addItem(t),this},e.prototype.remove=function(t){return this.removeItem(t),this},e.prototype.set=function(t,e){return this._array[t]=e,this},e.prototype.insert=function(t,e){return this._array.splice(t,0,e),this},e.prototype.get=function(t){return this._array[t]},e.prototype.pop=function(){var t=this.length,e=this._array[t];return this.removeItem(t),e},e.prototype.indexOf=function(t){return this._array.indexOf(t)},e.prototype.merge=function(t){return Array.prototype.push.apply(this._array,t._array),this},e.prototype.copy=function(t){return this._array=t.array.slice(),this},e.prototype.fromArray=function(t){return this._array=t.slice(),this},e}(F);function B(t,e){return t(e={exports:{}},e.exports),e.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r||"undefined"!=typeof self&&self;var G,k=B((function(t,e){
/*!
* Hilo3d 1.15.4
* Copyright (c) 2017-present Alibaba Group Holding Ltd.
* @license MIT
*/
window.Hilo3d=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({"./node_modules/_amc@1.0.6@amc/build/amd.js":
/*!**************************************************!*\
!*** ./node_modules/_amc@1.0.6@amc/build/amd.js ***!
\**************************************************/
/*! no static exports found */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){function r(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)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}var o=n(1),s={POSITION:"POSITION",NORMAL:"NORMAL",COLOR:"COLOR",COLOR_0:"COLOR",COLOR_1:"COLOR_1",TEXCOORD:"TEXCOORD",TEXCOORD_0:"TEXCOORD",TEXCOORD_1:"TEXCOORD_1",TEXCOORD_2:"TEXCOORD_2",TANGENT:"TANGENT",JOINT:"JOINT",JOINTS_0:"JOINT",WEIGHT:"WEIGHT",WEIGHTS_0:"WEIGHT"},a=["POSITION","NORMAL","COLOR","TEXCOORD","TANGENT","JOINT","WEIGHT","OTHER","TEXCOORD_1","TEXCOORD_2","COLOR_1"],u={POSITION:0,NORMAL:1,COLOR:2,TEXCOORD:3,TANGENT:4,JOINT:5,WEIGHT:6,OTHER:7,TEXCOORD_1:8,TEXCOORD_2:9,COLOR_1:10},c={POSITION:"vertices",NORMAL:"normals",COLOR:"colors",TEXCOORD:"uvs",TEXCOORD_1:"uvs1",TEXCOORD_2:"uvs2",TANGENT:"tangents",JOINT:"skinIndices",WEIGHT:"skinWeights"},h={vertices:"POSITION",_normals:"NORMAL",colors:"COLOR",uvs:"TEXCOORD",uvs1:"TEXCOORD_1",uvs2:"TEXCOORD_2",_tangents:"TANGENT",skinIndices:"JOINT",skinWeights:"WEIGHT"},l={POSITION:3,NORMAL:3,COLOR:3,COLOR_1:3,TEXCOORD:2,TEXCOORD_1:2,TEXCOORD_2:2,TANGENT:4,JOINT:4,WEIGHT:4},f=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.indices=e,this.mode=n,this.attrs=[],this.attrIndexMap={}}return i(t,null,[{key:"cp",value:function(t){return t}},{key:"minus",value:function(t,e){return t-e}},{key:"plus",value:function(t,e){return t+e}},{key:"pp",value:function(t,e,n,r){return r-e-n+t}},{key:"depp",value:function(t,e,n,r){return e+n-t+r}},{key:"ATTR",get:function(){return s}},{key:"ATTR_NAME_ID",get:function(){return u}}]),i(t,[{key:"getAttrLength",value:function(){return this.attrs[0].data.length/this.attrs[0].itemCount}},{key:"attrIdToName",value:function(t){return a[t]||"OTHER"}},{key:"addAttr",value:function(t,e,n){s[t]?(this.attrIndexMap[t]=this.attrs.length,n||(n=l[t])):n||(n=1),this.attrs.push({name:t,itemCount:n,data:e})}},{key:"getAttr",value:function(t){if(this.attrIndexMap[t])return this.attrs[this.attrIndexMap[t]];for(var e=this.attrs.length-1;e>=0;e--){var n=this.attrs[e];if(n.name===t)return n}}},{key:"cal",value:function(t,e,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];this.attrs.forEach((function(r,o){for(var s=r.data,a=t.attrs[o].data,u=e*r.itemCount,c=r.itemCount-1;c>=0;c--)a[u+c]=n.apply(null,i.map((function(t){return s[t*r.itemCount+c]})))}))}},{key:"quantize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.attrs.forEach((function(e){if("JOINT"!==e.name&&0!=t[e.name]){var n=o.encode(e.data,t[e.name]||12);e.quantizationBit=n.quantizationBit,e.min=n.min,e.max=n.max,e.data=n.data}}))}},{key:"dequantize",value:function(){this.attrs.forEach((function(t){t.quantizationBit&&(t.data=o.decode(t.data,t.quantizationBit,t.min,t.max))}))}},{key:"convertTypedArray",value:function(){!this.indices||this.indices instanceof Array||(this.indices=Array.from(this.indices)),this.attrs.forEach((function(t){t.data instanceof Array||t.data instanceof Float32Array||(t.data=Array.from(t.data))}))}},{key:"clearEBAttrs",value:function(){delete this.clers,delete this.holes,delete this.handles}},{key:"convertToTypedArray",value:function(){this.indices instanceof Array&&(this.getAttrLength()>65535?this.indices=new Uint32Array(this.indices):this.indices=new Uint16Array(this.indices)),this.attrs.forEach((function(t){t.data instanceof Array&&(t.data=new Float32Array(t.data))}))}},{key:"prepareToWorkerSend",value:function(){return this.clearEBAttrs(),this.convertToTypedArray(),this.getAllBuffers()}},{key:"clone",value:function(){var e=new t(Array.from(this.indices),this.mode);return Object.assign(e.attrIndexMap,this.attrIndexMap),e.attrs=this.attrs.map((function(t){var e=Object.assign({},t);return e.data=Array.from(e.data),e})),e}},{key:"cloneStruct",value:function(){var e=new t;return e.mode=this.mode,this.indices&&(e.indices=[]),Object.assign(e.attrIndexMap,this.attrIndexMap),e.attrs=this.attrs.map((function(t){var e=Object.assign({},t);return e.data=[],e})),e}},{key:"toHilo3dGeometry",value:function(t,e){var n=e||new t.Geometry;return this.indices&&(this.indices.BYTES_PER_ELEMENT?n.indices=new t.GeometryData(this.indices,1):this.getAttrLength()>65535?n.indices=new t.GeometryData(new Uint32Array(this.indices),1):n.indices=new t.GeometryData(new Uint16Array(this.indices),1)),this.attrs.forEach((function(e){var r=c[e.name];r&&(e.data.BYTES_PER_ELEMENT?n[r]=new t.GeometryData(e.data,e.itemCount):n[r]=new t.GeometryData(new Float32Array(e.data),e.itemCount))})),n}},{key:"getAllBuffers",value:function(){var t=[];return this.indices.BYTES_PER_ELEMENT&&t.push(this.indices.buffer),this.attrs.forEach((function(e){e.data&&e.data.BYTES_PER_ELEMENT&&t.push(e.data.buffer)})),t}}],[{key:"fromGLTFPrimitive",value:function(e){var n=new t(e.indices,e.mode),r=e.attributes,i=0;for(var o in r.POSITION&&(i=r.POSITION.length/3),r)if(s[o]){var a=l[s[o]];i&&(a=r[o].length/i),n.addAttr(s[o],r[o],a)}else console.warn("Dont support attribute",o);return n}},{key:"fromHilo3dGeometry",value:function(e){var n=new t(e.indices.data,e.mode);for(var r in h)e[r]&&n.addAttr(h[r],e[r].data,e[r].size);return n}}]),t}();t.exports=f},function(t,e){var n={};function r(t){return n[t]||(n[t]=Math.pow(2,t)-1),n[t]}t.exports={cal:function(t,e,n,i){var o=r(i),s=n-e;return Math.round((t-e)/s*o)},encode:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=t.length,i=r(e),o=1/0,s=-1/0,a=0;a<n;a++)o=Math.min(o,t[a]),s=Math.max(s,t[a]);var u=s-o||1,c=[];for(a=0;a<n;a++)c[a]=Math.round((t[a]-o)/u*i);return{min:o,max:s,quantizationBit:e,data:c}},encodeWithMinAndMax:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:8,s=t.length,a=r(o),u=i-n||1,c=0;c<s;c++)e[c]=Math.round((t[c]-n)/u*a);return e},decode:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=t.length,s=r(e),a=i-n,u=new Float32Array(o),c=0;c<o;c++)u[c]=n+a*(t[c]/s);return u},normalize:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=t.length,i=0;i<r;i+=n){for(var o=0,s=0;s<n;s++)o+=t[i+s]*t[i+s];for(o=Math.sqrt(o),s=0;s<n;s++)e[i+s]=t[i+s]/o}return e}}},function(t,e,n){t.exports=n(3)},function(t,e,n){var r=n(4);r.Geometry=n(0),t.exports=r},function(t,e,n){var r=n(0),i=n(5),o=n(7),s=n(8),a=n(9),u=[i],c=[o];function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t instanceof Uint8Array&&(e=t.byteOffset,t=t.buffer),function(t){return new u[t.type](t).decompress()}(function(t,e){var n=new Uint8Array(t,e,4);if(65!==n[0]||77!==n[1]||67!==n[2])throw new Error("The file is not AMC format!");var r=c[n[3]].read(t,e+4);return r.geometry.type=n[3],r.geometry}(t,e))}var l,f=null,d=null;function p(t,e){return!f&&a()?(f=new s({wasmURL:t,memPages:e}),d=f.init()):d||Promise.resolve()}function m(t,e,n){if(f||p(e,n),!f||!f.isReady)return h(t);try{return f.decompress(t)}catch(e){return console.warn("wasm decompress error",e),h(t)}}var _=null;function g(t){return t=t||"https://g.alicdn.com/hilo/amc/0.1.27/worker.js",_||(!1===l||"undefined"==typeof Worker?Promise.reject("dont support web worker"):_=/^(?:http|blob|data:|\/\/)/.test(t)?new Promise((function(e,n){var r=new XMLHttpRequest;r.addEventListener("load",(function(){if("undefined"==typeof URL||"undefined"==typeof Blob)l=new Worker("data:application/javascript, ".concat(this.responseText));else{var t=URL.createObjectURL(new Blob([this.responseText]));l=new Worker(t)}l.onerror=function(t){console.log("web worker error",t),l=!1,n(t)},e(l)})),r.addEventListener("error",(function(t){return n(t)})),r.open("get",t,!0),r.send()})):new Promise((function(e,n){(l=new Worker(t)).onerror=function(t){console.log("web worker init error",t),l=!1,n(t)},e(l)})))}var v=0;function y(t,e,n,i){return e=e&&a(),t=new Uint8Array(t),g(i).then((function(i){return new Promise((function(o,s){var a=v++,u=function(e){if(e.data.id===a)if(i.removeEventListener("message",u),u=null,e.data.data){var n=e.data.data;n.constructor=r,n.__proto__=r.prototype,o(n)}else o(h(t))};i.addEventListener("message",u),i.postMessage({id:a,data:t,useWASM:e,wasmURL:n},[t.buffer])}))})).catch((function(r){return e?m(t,n):h(t)}))}t.exports={initWASM:p,initWorker:g,decompress:function(t,e,n){var r=a();return!r||t.byteLength>1048576?y(t,r,e,n):r?Promise.resolve(m(t,e)):Promise.resolve(h(t))},decompressWithJS:h,decompressWithWASM:m,decompressWithWorker:y,destory:function(){l&&(l.terminate(),l=null,_=null),f&&(f=null,d=null)}}},function(t,e,n){function r(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var i=n(0),o=(n(1),n(6)),a=o.map,u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.geometry=e,this.faceCount=e.clers.length,this.clers=e.clers,this.holes=e.holes,this.handles=e.handles,this.createHandleMap(this.handles),this.vertexCount=e.getAttrLength(),this.noParallelogramPrediction=!!e.noParallelogramPrediction}var e;return(e=[{key:"nextCorner",value:function(t){return t<0?-1:t+(t%3==2?-2:1)}},{key:"prevCorner",value:function(t){return t<0?-1:t+(t%3?-1:2)}},{key:"createHandleMap",value:function(t){var e=this.handlesMap={};if(t)for(var n=t.length-1;n>=0;n-=2)e[t[n]]=t[n-1]}},{key:"mapBoundary",value:function(t){for(var e=this.indices,n=t.length,r=this.currentVertex,i=this.currentVertex-n+1,o=n-1;o>=0;o--)e[this.nextCorner(t[o])]=r,r=i,e[this.prevCorner(t[o])]=i++;this.currentVertex-=n}},{key:"mapHoleBoundary",value:function(t){for(var e=this.indices,n=t.length,r=this.currentVertex-n+1,i=r,o=n-1;o>=0;o--)e[this.nextCorner(t[o])]=r++,e[this.prevCorner(t[o])]=o?r:i;this.currentVertex-=n}},{key:"fixNegativeIndex",value:function(t){for(var e=t,n=this.indices;n[t]<0;){if(e===-n[-n[t]]||n[t]===n[-n[t]]){console.warn("dead loop bug!!"),n[s]=0;break}n[t]=n[-n[t]]}}},{key:"fixIndicesAndReadVertice",value:function(){for(var t,e=this.indices,n=this.handlesMap,r=this.clers,i=r.length,s=-1,a=[],u=0,c=0;u<i;u++,c+=3)-1===s?(this.fixNegativeIndex(c+1),this.fixNegativeIndex(c+2)):(e[c+1]=e[this.prevCorner(s)],e[c+2]=e[this.nextCorner(s)]),this.fixNegativeIndex(c),-1===s?(this.readVertex(e[c+2]),this.readVertex(e[c+1]),this.readVertex(e[c])):this.readVertex(e[c],s),s=c+1,(t=r[u])!==o.S||n[u]?t===o.E||t===o.F?s=a.pop():t===o.R&&(s=c+2):a.push(c+2),t===o.F&&(s=-1,delete this.lastReadVertexIndex),this._onDecompressFace(u,t)}},{key:"readVertex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;if(!this.readedVertexMap[t]&&(this.readedVertexMap[t]=1,!this.noParallelogramPrediction)){var n=this.indices,r=this.geometry;-1===e?void 0!==this.lastReadVertexIndex&&r.cal(r,t,i.plus,this.lastReadVertexIndex,t):r.cal(r,t,i.depp,n[e],n[this.prevCorner(e)],n[this.nextCorner(e)],t),this.lastReadVertexIndex=t}}},{key:"markCorner",value:function(t,e){var n=this.indices;void 0===n[this.nextCorner(t)]&&(n[this.nextCorner(t)]=-this.prevCorner(e[0])),void 0===n[this.prevCorner(t)]&&(n[this.prevCorner(t)]=-this.nextCorner(e[e.length-1]))}},{key:"onFaceC",value:function(t){var e=this.indices,n=3*this.currentFace,r=this.currentVertex--;e[n]=r;var i=t.pop();return e[this.nextCorner(i)]=r,e[this.prevCorner(i)]=-this.nextCorner(t[t.length-1]),i=t.shift(),e[this.prevCorner(i)]=r,e[this.nextCorner(i)]=-this.prevCorner(t[0]),t.push(n),t}},{key:"onFaceL",value:function(t){var e=3*this.currentFace;return this.markCorner(t.pop(),t),t.unshift(e+2),t.push(e),t}},{key:"onFaceF",value:function(t,e){return t&&this.mapBoundary(t),this.onFaceE(null,e)}},{key:"onFaceE",value:function(t,e){var n=3*this.currentFace;return t&&e.push(t),[n+2,n+1,n]}},{key:"onFaceR",value:function(t){var e=3*this.currentFace;return this.markCorner(t.pop(),t),t.push(e+1,e),t}},{key:"onHandleEnd",value:function(t,e,n){var r=this.indices,i=3*this.currentFace,o=this.handlesMap[this.currentFace],s=e.splice(0,t);return e.shift(),n.push(s),r[this.nextCorner(o)]=-(i+1),r[this.prevCorner(o)]=-this.nextCorner(s[s.length-1]),r[i]=-this.prevCorner(s[0]),e.push(i),e}},{key:"onHandleStart",value:function(t,e){for(var n,i=this.indices,o=3*this.currentFace,s=this.handlesMap[this.currentFace],a=e.length-1;a>=0;a--){var u=e[a].indexOf(s);if(u>=0){var c,h=(n=e.splice(a,1)[0]).splice(0,u);n.shift(),(c=n).push.apply(c,r(h));break}}return i[this.nextCorner(s)]=-(o+1),i[this.prevCorner(s)]=-this.nextCorner(n[n.length-1]),i[o]=-this.prevCorner(t[0]),(t=n.concat(t)).push(o),t}},{key:"onFaceS",value:function(t,e,n){var r=this.handlesMap,i=this.indices,o=3*this.currentFace;if(r[this.currentFace]){this.markCorner(t.pop(),t);var s=t.indexOf(r[this.currentFace]);t=s>=0?this.onHandleEnd(s,t,n):this.onHandleStart(t,n)}else{var a=t.pop();this.markCorner(a,t),i[o]=-this.nextCorner(a);var u=e.pop();this.markCorner(u.pop(),u),(t=u.concat(t)).push(o)}return t}},{key:"onFaceM",value:function(t,e,n){var r=this.indices,i=3*this.currentFace,o=t.splice(0,this.holes[this.currentHole--]);this.mapHoleBoundary(o);var s=r[this.prevCorner(o[0])];r[i]=s;var a=t.pop();return r[this.prevCorner(a)]=-this.nextCorner(t[t.length-1]),r[this.nextCorner(a)]=s,a=t.shift(),r[this.prevCorner(a)]=s,r[this.nextCorner(a)]=-this.prevCorner(t[0]),t.push(i),t}},{key:"decompress",value:function(){this.readedVertexMap=new Uint8Array(this.vertexCount);var t=this.faceCount,e=this.indices=new Array(3*t);this.currentFace=t-1,this.currentVertex=this.vertexCount-1,this.currentHole=this.holes.length-1;for(var n,r=this.clers,i=[],o=[];this.currentFace>=0;){var s="onFace"+a[r[this.currentFace]];this[s]?n=this[s](n,i,o):console.warn("has no ".concat(s)),this.currentFace--}return this.mapBoundary(n),this.fixIndicesAndReadVertice(this.indices),this.geometry.indices=e,this.geometry.dequantize(),this.geometry}},{key:"_onDecompressFace",value:function(t,e){this.onDecompressFace&&this.onDecompressFace(t,e)}}])&&function(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)}}(t.prototype,e),t}();t.exports=u},function(t,e){var n={C:0,R:1,L:2,S:3,E:4,M:5,F:6},r=[];for(var i in n)r[n[i]]=i;n.map=r,t.exports=n},function(t,e,n){var r=n(0);function i(t,e,n,r){return new t(e.slice(n,n+r*t.BYTES_PER_ELEMENT))}t.exports={read:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new DataView(t),o=new r,s=function(t,e){var n={};return n.version=t.getUint8(e++),n.faceCount=t.getUint32(e,!0),e+=4,n.vertexCount=t.getUint32(e,!0),e+=4,n.attrCount=t.getUint8(e++),n.noParallelogramPrediction=t.getUint8(e++),n.holesCount=t.getUint16(e,!0),e+=2,n.handlesCount=t.getUint16(e,!0),e+=2,n.headerBytes=15,n}(n,e);return e+=s.headerBytes,o.mode="CLERS",e=function(t,e,n,r){for(var o=0;o<r.attrCount;o++){var s={},a=e.getUint16(n,!0);n+=2,s.name=t.attrIdToName(a),s.itemCount=e.getUint8(n++),s.quantizationBit=e.getUint8(n++),s.min=e.getFloat32(n,!0),n+=4,s.max=e.getFloat32(n,!0),n+=4,s.data=i(Int16Array,e.buffer,n,s.itemCount*r.vertexCount),n+=s.itemCount*r.vertexCount*2,t.attrs.push(s)}return n}(o,n,e=function(t,e,n,r){return t.clers=new Uint8Array(e.buffer,n,r.faceCount),n+r.faceCount}(o,n,e=function(t,e,n,r){return r.handlesCount?(t.handles=i(Uint32Array,e.buffer,n,2*r.handlesCount),n+8*r.handlesCount):(t.handles=[],n)}(o,n,e=function(t,e,n,r){return r.holesCount?(t.holes=i(Uint16Array,e.buffer,n,r.holesCount),n+2*r.holesCount):(t.holes=[],n)}(o,n,e,s),s),s),s),{header:s,geometry:o,offset:e}}}},function(t,e,n){var r=n(0),i=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.wasmURL=e.wasmURL||"https://ossgw.alicdn.com/tmall-c3/tmx/70b8d82ccf33e97a124e54c2d6a3e0c7.wasm",this.memPages=e.memPages||256,this.memPages<256&&(this.memPages=256),this.isReady=!1}var e;return(e=[{key:"initASMJS",value:function(){this.isReady=!0,this.dv=new DataView(HEAP8.buffer),this.heap8=HEAP8,this.ins={exports:{__Z7AMCinitj:Module.__Z7AMCinitj,__Z12AMDecompressv:Module.__Z12AMDecompressv}}}},{key:"init",value:function(){var t=this,e=this.memory=new WebAssembly.Memory({initial:this.memPages});this.dv=new DataView(e.buffer);var n=this.heap8=new Uint8Array(e.buffer),r={global:{NaN:5,Infinity:6},env:{memoryBase:0,memory:e,_malloc:function(){return 2097152},_memset:function(t,e,r){return n.fill(e,t,t+r),t},_printf:function(t,e){for(var r=t;n[r];)r++;var i=String.fromCharCode.apply(String,function(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(n.slice(t,r))),o=0;i=i.replace(/%([duf])/g,(function(t,n){return"d"===n||"u"===n?dv.getInt32(e+4*o++,!0):"f"===n?dv.getFloat32(e+4*o++,!0):void 0})),console.log(i)}}};return fetch(this.wasmURL).then((function(t){return t.arrayBuffer()})).then((function(t){return WebAssembly.instantiate(t,r)})).then((function(e){t.module=e,t.ins=e.instance,t.isReady=!0})).catch((function(t){return console.log("wasm load error, use js ver")}))}},{key:"getDataAddr",value:function(t){return this.ins.exports.__Z7AMCinitj(t)}},{key:"decompress",value:function(t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var e=this.dv,n=this.heap8,i=this.getDataAddr(t.length);n.set(t,i);var o=this.ins.exports.__Z12AMDecompressv();if(o<=0)throw console.error("decompression error code: "+o),new Error("decompression error code: "+o);for(var s=e.getUint32(o,!0),a=e.getUint32(o+4,!0),u=e.getUint32(o+8,!0),c=e.getUint32(o+12,!0),h=[],l=0;l<c;l++){var f=o+16+12*l;h.push([e.getUint32(f,!0),e.getUint32(f+4,!0),e.getUint32(f+8,!0)])}var d=new Uint32Array(e.buffer,a,3*s);d=u>65536?new Uint32Array(d):new Uint16Array(d);var p=new r(d);return h.forEach((function(t){var n=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(t,3),r=n[0],i=n[1],o=n[2],s=new Float32Array(e.buffer.slice(o,o+u*i*4));p.addAttr(p.attrIdToName(r),s,i)})),p}}])&&function(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)}}(t.prototype,e),t}();t.exports=i},function(t,e){var n;t.exports=function(){return void 0===n&&(n=function(){if("undefined"==typeof WebAssembly||"undefined"==typeof fetch||function(){if(!/iPad|iPhone|iPod/i.test(navigator.userAgent))return!1;if(/OS (\d+)_(\d+)_?(\d+)?/i.test(navigator.userAgent)){var t=Number(RegExp.$1),e=Number(RegExp.$2);if(11===t&&e>=3||t>11)return!1}return!0}())return!1;try{var t=new Uint8Array([0,97,115,109,1,0,0,0,1,6,1,96,1,127,1,127,3,2,1,0,5,3,1,0,1,7,8,1,4,116,101,115,116,0,0,10,16,1,14,0,32,0,65,1,54,2,0,32,0,40,2,0,11]),e=new WebAssembly.Module(t);return 0!==new WebAssembly.Instance(e,{}).exports.test(4)}catch(t){return console.log("err while check WebAssembly",t),!1}}()),n}}])},"./node_modules/_gl-constants@1.0.0@gl-constants/1.0/index.js":
/*!********************************************************************!*\
!*** ./node_modules/_gl-constants@1.0.0@gl-constants/1.0/index.js ***!
\********************************************************************/
/*! no static exports found */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e){t.exports={ACTIVE_ATTRIBUTES:35721,ACTIVE_ATTRIBUTE_MAX_LENGTH:35722,ACTIVE_TEXTURE:34016,ACTIVE_UNIFORMS:35718,ACTIVE_UNIFORM_MAX_LENGTH:35719,ALIASED_LINE_WIDTH_RANGE:33902,ALIASED_POINT_SIZE_RANGE:33901,ALPHA:6406,ALPHA_BITS:3413,ALWAYS:519,ARRAY_BUFFER:34962,ARRAY_BUFFER_BINDING:34964,ATTACHED_SHADERS:35717,BACK:1029,BLEND:3042,BLEND_COLOR:32773,BLEND_DST_ALPHA:32970,BLEND_DST_RGB:32968,BLEND_EQUATION:32777,BLEND_EQUATION_ALPHA:34877,BLEND_EQUATION_RGB:32777,BLEND_SRC_ALPHA:32971,BLEND_SRC_RGB:32969,BLUE_BITS:3412,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,BROWSER_DEFAULT_WEBGL:37444,BUFFER_SIZE:34660,BUFFER_USAGE:34661,BYTE:5120,CCW:2305,CLAMP_TO_EDGE:33071,COLOR_ATTACHMENT0:36064,COLOR_BUFFER_BIT:16384,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,COMPILE_STATUS:35713,COMPRESSED_TEXTURE_FORMATS:34467,CONSTANT_ALPHA:32771,CONSTANT_COLOR:32769,CONTEXT_LOST_WEBGL:37442,CULL_FACE:2884,CULL_FACE_MODE:2885,CURRENT_PROGRAM:35725,CURRENT_VERTEX_ATTRIB:34342,CW:2304,DECR:7683,DECR_WRAP:34056,DELETE_STATUS:35712,DEPTH_ATTACHMENT:36096,DEPTH_BITS:3414,DEPTH_BUFFER_BIT:256,DEPTH_CLEAR_VALUE:2931,DEPTH_COMPONENT:6402,DEPTH_COMPONENT16:33189,DEPTH_FUNC:2932,DEPTH_RANGE:2928,DEPTH_STENCIL:34041,DEPTH_STENCIL_ATTACHMENT:33306,DEPTH_TEST:2929,DEPTH_WRITEMASK:2930,DITHER:3024,DONT_CARE:4352,DST_ALPHA:772,DST_COLOR:774,DYNAMIC_DRAW:35048,ELEMENT_ARRAY_BUFFER:34963,ELEMENT_ARRAY_BUFFER_BINDING:34965,EQUAL:514,FASTEST:4353,FLOAT:5126,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,FRAGMENT_SHADER:35632,FRAMEBUFFER:36160,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_BINDING:36006,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_UNSUPPORTED:36061,FRONT:1028,FRONT_AND_BACK:1032,FRONT_FACE:2886,FUNC_ADD:32774,FUNC_REVERSE_SUBTRACT:32779,FUNC_SUBTRACT:32778,GENERATE_MIPMAP_HINT:33170,GEQUAL:518,GREATER:516,GREEN_BITS:3411,HIGH_FLOAT:36338,HIGH_INT:36341,INCR:7682,INCR_WRAP:34055,INFO_LOG_LENGTH:35716,INT:5124,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,INVALID_ENUM:1280,INVALID_FRAMEBUFFER_OPERATION:1286,INVALID_OPERATION:1282,INVALID_VALUE:1281,INVERT:5386,KEEP:7680,LEQUAL:515,LESS:513,LINEAR:9729,LINEAR_MIPMAP_LINEAR:9987,LINEAR_MIPMAP_NEAREST:9985,LINES:1,LINE_LOOP:2,LINE_STRIP:3,LINE_WIDTH:2849,LINK_STATUS:35714,LOW_FLOAT:36336,LOW_INT:36339,LUMINANCE:6409,LUMINANCE_ALPHA:6410,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_CUBE_MAP_TEXTURE_SIZE:34076,MAX_FRAGMENT_UNIFORM_VECTORS:36349,MAX_RENDERBUFFER_SIZE:34024,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_TEXTURE_SIZE:3379,MAX_VARYING_VECTORS:36348,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VIEWPORT_DIMS:3386,MEDIUM_FLOAT:36337,MEDIUM_INT:36340,MIRRORED_REPEAT:33648,NEAREST:9728,NEAREST_MIPMAP_LINEAR:9986,NEAREST_MIPMAP_NEAREST:9984,NEVER:512,NICEST:4354,NONE:0,NOTEQUAL:517,NO_ERROR:0,NUM_COMPRESSED_TEXTURE_FORMATS:34466,ONE:1,ONE_MINUS_CONSTANT_ALPHA:32772,ONE_MINUS_CONSTANT_COLOR:32770,ONE_MINUS_DST_ALPHA:773,ONE_MINUS_DST_COLOR:775,ONE_MINUS_SRC_ALPHA:771,ONE_MINUS_SRC_COLOR:769,OUT_OF_MEMORY:1285,PACK_ALIGNMENT:3333,POINTS:0,POLYGON_OFFSET_FACTOR:32824,POLYGON_OFFSET_FILL:32823,POLYGON_OFFSET_UNITS:10752,RED_BITS:3410,RENDERBUFFER:36161,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_BINDING:36007,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_STENCIL_SIZE:36181,RENDERBUFFER_WIDTH:36162,RENDERER:7937,REPEAT:10497,REPLACE:7681,RGB:6407,RGB5_A1:32855,RGB565:36194,RGBA:6408,RGBA4:32854,SAMPLER_2D:35678,SAMPLER_CUBE:35680,SAMPLES:32937,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_BUFFERS:32936,SAMPLE_COVERAGE:32928,SAMPLE_COVERAGE_INVERT:32939,SAMPLE_COVERAGE_VALUE:32938,SCISSOR_BOX:3088,SCISSOR_TEST:3089,SHADER_COMPILER:36346,SHADER_SOURCE_LENGTH:35720,SHADER_TYPE:35663,SHADING_LANGUAGE_VERSION:35724,SHORT:5122,SRC_ALPHA:770,SRC_ALPHA_SATURATE:776,SRC_COLOR:768,STATIC_DRAW:35044,STENCIL_ATTACHMENT:36128,STENCIL_BACK_FAIL:34817,STENCIL_BACK_FUNC:34816,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,STENCIL_BITS:3415,STENCIL_BUFFER_BIT:1024,STENCIL_CLEAR_VALUE:2961,STENCIL_FAIL:2964,STENCIL_FUNC:2962,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_TEST:2960,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STREAM_DRAW:35040,SUBPIXEL_BITS:3408,TEXTURE:5890,TEXTURE0:33984,TEXTURE1:33985,TEXTURE2:33986,TEXTURE3:33987,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE30:34014,TEXTURE31:34015,TEXTURE_2D:3553,TEXTURE_BINDING_2D:32873,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP:34067,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TRIANGLES:4,TRIANGLE_FAN:6,TRIANGLE_STRIP:5,UNPACK_ALIGNMENT:3317,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,UNSIGNED_BYTE:5121,UNSIGNED_INT:5125,UNSIGNED_SHORT:5123,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,VALIDATE_STATUS:35715,VENDOR:7936,VERSION:7938,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_SHADER:35633,VIEWPORT:2978,ZERO:0}},"./node_modules/_gl-extensions-constants@1.0.0@gl-extensions-constants/index.js":
/*!**************************************************************************************!*\
!*** ./node_modules/_gl-extensions-constants@1.0.0@gl-extensions-constants/index.js ***!
\**************************************************************************************/
/*! no static exports found */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,n){t.exports={VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:35070,UNMASKED_VENDOR_WEBGL:37445,UNMASKED_RENDERER_WEBGL:37446,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047,TEXTURE_MAX_ANISOTROPY_EXT:34046,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_RGBA8_ETC2_EAC:37493,COMPRESSED_SRGB8_ETC2:37494,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37495,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37496,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37497,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGB_ATC_WEBGL:35986,COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL:35986,COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL:34798,UNSIGNED_INT_24_8_WEBGL:34042,HALF_FLOAT_OES:36193,RGBA32F_EXT:34836,RGB32F_EXT:34837,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863,MIN_EXT:32775,MAX_EXT:32776,SRGB_EXT:35904,SRGB_ALPHA_EXT:35906,SRGB8_ALPHA8_EXT:35907,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:33296,FRAGMENT_SHADER_DERIVATIVE_HINT_OES:35723,COLOR_ATTACHMENT0_WEBGL:36064,COLOR_ATTACHMENT1_WEBGL:36065,COLOR_ATTACHMENT2_WEBGL:36066,COLOR_ATTACHMENT3_WEBGL:36067,COLOR_ATTACHMENT4_WEBGL:36068,COLOR_ATTACHMENT5_WEBGL:36069,COLOR_ATTACHMENT6_WEBGL:36070,COLOR_ATTACHMENT7_WEBGL:36071,COLOR_ATTACHMENT8_WEBGL:36072,COLOR_ATTACHMENT9_WEBGL:36073,COLOR_ATTACHMENT10_WEBGL:36074,COLOR_ATTACHMENT11_WEBGL:36075,COLOR_ATTACHMENT12_WEBGL:36076,COLOR_ATTACHMENT13_WEBGL:36077,COLOR_ATTACHMENT14_WEBGL:36078,COLOR_ATTACHMENT15_WEBGL:36079,DRAW_BUFFER0_WEBGL:34853,DRAW_BUFFER1_WEBGL:34854,DRAW_BUFFER2_WEBGL:34855,DRAW_BUFFER3_WEBGL:34856,DRAW_BUFFER4_WEBGL:34857,DRAW_BUFFER5_WEBGL:34858,DRAW_BUFFER6_WEBGL:34859,DRAW_BUFFER7_WEBGL:34860,DRAW_BUFFER8_WEBGL:34861,DRAW_BUFFER9_WEBGL:34862,DRAW_BUFFER10_WEBGL:34863,DRAW_BUFFER11_WEBGL:34864,DRAW_BUFFER12_WEBGL:34865,DRAW_BUFFER13_WEBGL:34866,DRAW_BUFFER14_WEBGL:34867,DRAW_BUFFER15_WEBGL:34868,MAX_COLOR_ATTACHMENTS_WEBGL:36063,MAX_DRAW_BUFFERS_WEBGL:34852,VERTEX_ARRAY_BINDING_OES:34229,QUERY_COUNTER_BITS_EXT:34916,CURRENT_QUERY_EXT:34917,QUERY_RESULT_EXT:34918,QUERY_RESULT_AVAILABLE_EXT:34919,TIME_ELAPSED_EXT:35007,TIMESTAMP_EXT:36392,GPU_DISJOINT_EXT:36795}},"./node_modules/_gl-matrix@2.8.1@gl-matrix/dist/gl-matrix-min.js":
/*!***********************************************************************!*\
!*** ./node_modules/_gl-matrix@2.8.1@gl-matrix/dist/gl-matrix-min.js ***!
\***********************************************************************/
/*! no static exports found */
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(t,e,n){
/*!
@fileoverview gl-matrix - High performance matrix and vector operations
@author Brandon Jones
@author Colin MacKenzie IV
@version 2.7.0
Copyright (c) 2015-2018, Brandon Jones, Colin MacKenzie IV.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR O