@eva/plugin-evax 1.2.7 → 1.2.8-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/EVA.plugin.EVAX.js
CHANGED
|
@@ -1712,7 +1712,7 @@ var _EVA_IIFE_EVAX = function (exports, eva_js) {
|
|
|
1712
1712
|
};
|
|
1713
1713
|
exports.EvaX = EvaXComponent$1;
|
|
1714
1714
|
exports.EvaXSystem = EvaXSystem$1;
|
|
1715
|
-
exports[
|
|
1715
|
+
exports["default"] = index;
|
|
1716
1716
|
Object.defineProperty(exports, '__esModule', {
|
|
1717
1717
|
value: true
|
|
1718
1718
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.EVA=window.EVA||{},window.EVA.plugin=window.EVA.plugin||{};var _EVA_IIFE_EVAX=function(t,e){"use strict";var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function n(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),c=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)c.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return c}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t}var a=function(t){function e(e){var r=t.call(this,e)||this;return r.events={},r}return n(e,t),e.prototype.init=function(t){void 0===t&&(t={events:{}});var e=t.events;this.events=e||{}},e.componentName="EvaX",e}(e.Component);var u=function(t){var e={exports:{}};return t(e,e.exports),e.exports}((function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,c){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||t,c),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],a]:t._events[u].push(a):(t._events[u]=a,t._eventsCount++),t}function c(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},a.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,c=new Array(i);o<i;o++)c[o]=n[o].fn;return c},a.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},a.prototype.emit=function(t,e,n,o,i,c){var a=r?r+t:t;if(!this._events[a])return!1;var u,s,f=this._events[a],l=arguments.length;if(f.fn){switch(f.once&&this.removeListener(t,f.fn,void 0,!0),l){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,e),!0;case 3:return f.fn.call(f.context,e,n),!0;case 4:return f.fn.call(f.context,e,n,o),!0;case 5:return f.fn.call(f.context,e,n,o,i),!0;case 6:return f.fn.call(f.context,e,n,o,i,c),!0}for(s=1,u=new Array(l-1);s<l;s++)u[s-1]=arguments[s];f.fn.apply(f.context,u)}else{var p,v=f.length;for(s=0;s<v;s++)switch(f[s].once&&this.removeListener(t,f[s].fn,void 0,!0),l){case 1:f[s].fn.call(f[s].context);break;case 2:f[s].fn.call(f[s].context,e);break;case 3:f[s].fn.call(f[s].context,e,n);break;case 4:f[s].fn.call(f[s].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(l-1);p<l;p++)u[p-1]=arguments[p];f[s].fn.apply(f[s].context,u)}}return!0},a.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},a.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},a.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return c(this,i),this;var a=this._events[i];if(a.fn)a.fn!==e||o&&!a.once||n&&a.context!==n||c(this,i);else{for(var u=0,s=[],f=a.length;u<f;u++)(a[u].fn!==e||o&&!a[u].once||n&&a[u].context!==n)&&s.push(a[u]);s.length?this._events[i]=1===s.length?s[0]:s:c(this,i)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&c(this,e)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,t.exports=a}));function s(t,e){return t===e||t!=t&&e!=e}function f(t,e){for(var r=t.length;r--;)if(s(t[r][0],e))return r;return-1}var l=Array.prototype.splice;function p(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}p.prototype.clear=function(){this.__data__=[],this.size=0},p.prototype.delete=function(t){var e=this.__data__,r=f(e,t);return!(r<0)&&(r==e.length-1?e.pop():l.call(e,r,1),--this.size,!0)},p.prototype.get=function(t){var e=this.__data__,r=f(e,t);return r<0?void 0:e[r][1]},p.prototype.has=function(t){return f(this.__data__,t)>-1},p.prototype.set=function(t,e){var r=this.__data__,n=f(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var v="object"==typeof global&&global&&global.Object===Object&&global,y="object"==typeof self&&self&&self.Object===Object&&self,h=v||y||Function("return this")(),b=h.Symbol,d=Object.prototype,_=d.hasOwnProperty,j=d.toString,g=b?b.toStringTag:void 0;var w=Object.prototype.toString;var O=b?b.toStringTag:void 0;function m(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":O&&O in Object(t)?function(t){var e=_.call(t,g),r=t[g];try{t[g]=void 0;var n=!0}catch(t){}var o=j.call(t);return n&&(e?t[g]=r:delete t[g]),o}(t):function(t){return w.call(t)}(t)}function A(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function x(t){if(!A(t))return!1;var e=m(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var E,S=h["__core-js_shared__"],P=(E=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"";var V=Function.prototype.toString;function z(t){if(null!=t){try{return V.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var F=/^\[object .+?Constructor\]$/,U=Function.prototype,I=Object.prototype,L=U.toString,k=I.hasOwnProperty,T=RegExp("^"+L.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function C(t){return!(!A(t)||(e=t,P&&P in e))&&(x(t)?T:F).test(z(t));var e}function D(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return C(r)?r:void 0}var M=D(h,"Map"),R=D(Object,"create");var B=Object.prototype.hasOwnProperty;var X=Object.prototype.hasOwnProperty;function $(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function N(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function W(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}$.prototype.clear=function(){this.__data__=R?R(null):{},this.size=0},$.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},$.prototype.get=function(t){var e=this.__data__;if(R){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return B.call(e,t)?e[t]:void 0},$.prototype.has=function(t){var e=this.__data__;return R?void 0!==e[t]:X.call(e,t)},$.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=R&&void 0===e?"__lodash_hash_undefined__":e,this},W.prototype.clear=function(){this.size=0,this.__data__={hash:new $,map:new(M||p),string:new $}},W.prototype.delete=function(t){var e=N(this,t).delete(t);return this.size-=e?1:0,e},W.prototype.get=function(t){return N(this,t).get(t)},W.prototype.has=function(t){return N(this,t).has(t)},W.prototype.set=function(t,e){var r=N(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function q(t){var e=this.__data__=new p(t);this.size=e.size}q.prototype.clear=function(){this.__data__=new p,this.size=0},q.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},q.prototype.get=function(t){return this.__data__.get(t)},q.prototype.has=function(t){return this.__data__.has(t)},q.prototype.set=function(t,e){var r=this.__data__;if(r instanceof p){var n=r.__data__;if(!M||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new W(n)}return r.set(t,e),this.size=r.size,this};var G=function(){try{var t=D(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();function Y(t,e,r){"__proto__"==e&&G?G(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var H=Object.prototype.hasOwnProperty;function J(t,e,r){var n=t[e];H.call(t,e)&&s(n,r)&&(void 0!==r||e in t)||Y(t,e,r)}function K(t,e,r,n){var o=!r;r||(r={});for(var i=-1,c=e.length;++i<c;){var a=e[i],u=n?n(r[a],t[a],a,r,t):void 0;void 0===u&&(u=t[a]),o?Y(r,a,u):J(r,a,u)}return r}function Q(t){return null!=t&&"object"==typeof t}function Z(t){return Q(t)&&"[object Arguments]"==m(t)}var tt=Object.prototype,et=tt.hasOwnProperty,rt=tt.propertyIsEnumerable,nt=Z(function(){return arguments}())?Z:function(t){return Q(t)&&et.call(t,"callee")&&!rt.call(t,"callee")},ot=Array.isArray;var it="object"==typeof t&&t&&!t.nodeType&&t,ct=it&&"object"==typeof module&&module&&!module.nodeType&&module,at=ct&&ct.exports===it?h.Buffer:void 0,ut=(at?at.isBuffer:void 0)||function(){return!1},st=/^(?:0|[1-9]\d*)$/;function ft(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&st.test(t))&&t>-1&&t%1==0&&t<e}function lt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var pt={};function vt(t){return function(e){return t(e)}}pt["[object Float32Array]"]=pt["[object Float64Array]"]=pt["[object Int8Array]"]=pt["[object Int16Array]"]=pt["[object Int32Array]"]=pt["[object Uint8Array]"]=pt["[object Uint8ClampedArray]"]=pt["[object Uint16Array]"]=pt["[object Uint32Array]"]=!0,pt["[object Arguments]"]=pt["[object Array]"]=pt["[object ArrayBuffer]"]=pt["[object Boolean]"]=pt["[object DataView]"]=pt["[object Date]"]=pt["[object Error]"]=pt["[object Function]"]=pt["[object Map]"]=pt["[object Number]"]=pt["[object Object]"]=pt["[object RegExp]"]=pt["[object Set]"]=pt["[object String]"]=pt["[object WeakMap]"]=!1;var yt="object"==typeof t&&t&&!t.nodeType&&t,ht=yt&&"object"==typeof module&&module&&!module.nodeType&&module,bt=ht&&ht.exports===yt&&v.process,dt=function(){try{var t=ht&&ht.require&&ht.require("util").types;return t||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),_t=dt&&dt.isTypedArray,jt=_t?vt(_t):function(t){return Q(t)&<(t.length)&&!!pt[m(t)]},gt=Object.prototype.hasOwnProperty;function wt(t,e){var r=ot(t),n=!r&&nt(t),o=!r&&!n&&ut(t),i=!r&&!n&&!o&&jt(t),c=r||n||o||i,a=c?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],u=a.length;for(var s in t)!e&&!gt.call(t,s)||c&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ft(s,u))||a.push(s);return a}var Ot=Object.prototype;function mt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ot)}function At(t,e){return function(r){return t(e(r))}}var xt=At(Object.keys,Object),Et=Object.prototype.hasOwnProperty;function St(t){return null!=t&<(t.length)&&!x(t)}function Pt(t){return St(t)?wt(t):function(t){if(!mt(t))return xt(t);var e=[];for(var r in Object(t))Et.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}var Vt=Object.prototype.hasOwnProperty;function zt(t){if(!A(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=mt(t),r=[];for(var n in t)("constructor"!=n||!e&&Vt.call(t,n))&&r.push(n);return r}function Ft(t){return St(t)?wt(t,!0):zt(t)}var Ut="object"==typeof t&&t&&!t.nodeType&&t,It=Ut&&"object"==typeof module&&module&&!module.nodeType&&module,Lt=It&&It.exports===Ut?h.Buffer:void 0,kt=Lt?Lt.allocUnsafe:void 0;function Tt(){return[]}var Ct=Object.prototype.propertyIsEnumerable,Dt=Object.getOwnPropertySymbols,Mt=Dt?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var c=t[r];e(c,r,t)&&(i[o++]=c)}return i}(Dt(t),(function(e){return Ct.call(t,e)})))}:Tt;function Rt(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var Bt=At(Object.getPrototypeOf,Object),Xt=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Rt(e,Mt(t)),t=Bt(t);return e}:Tt;function $t(t,e,r){var n=e(t);return ot(t)?n:Rt(n,r(t))}function Nt(t){return $t(t,Pt,Mt)}function Wt(t){return $t(t,Ft,Xt)}var qt=D(h,"DataView"),Gt=D(h,"Promise"),Yt=D(h,"Set"),Ht=D(h,"WeakMap"),Jt="[object Map]",Kt="[object Promise]",Qt="[object Set]",Zt="[object WeakMap]",te="[object DataView]",ee=z(qt),re=z(M),ne=z(Gt),oe=z(Yt),ie=z(Ht),ce=m;(qt&&ce(new qt(new ArrayBuffer(1)))!=te||M&&ce(new M)!=Jt||Gt&&ce(Gt.resolve())!=Kt||Yt&&ce(new Yt)!=Qt||Ht&&ce(new Ht)!=Zt)&&(ce=function(t){var e=m(t),r="[object Object]"==e?t.constructor:void 0,n=r?z(r):"";if(n)switch(n){case ee:return te;case re:return Jt;case ne:return Kt;case oe:return Qt;case ie:return Zt}return e});var ae=ce,ue=Object.prototype.hasOwnProperty;var se=h.Uint8Array;function fe(t){var e=new t.constructor(t.byteLength);return new se(e).set(new se(t)),e}var le=/\w*$/;var pe=b?b.prototype:void 0,ve=pe?pe.valueOf:void 0;function ye(t,e,r){var n,o,i,c=t.constructor;switch(e){case"[object ArrayBuffer]":return fe(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return function(t,e){var r=e?fe(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?fe(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case"[object Map]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return(i=new(o=t).constructor(o.source,le.exec(o))).lastIndex=o.lastIndex,i;case"[object Set]":return new c;case"[object Symbol]":return n=t,ve?Object(ve.call(n)):{}}}var he=Object.create,be=function(){function t(){}return function(e){if(!A(e))return{};if(he)return he(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();var de=dt&&dt.isMap,_e=de?vt(de):function(t){return Q(t)&&"[object Map]"==ae(t)};var je=dt&&dt.isSet,ge=je?vt(je):function(t){return Q(t)&&"[object Set]"==ae(t)},we="[object Arguments]",Oe="[object Function]",me="[object Object]",Ae={};function xe(t,e,r,n,o,i){var c,a=1&e,u=2&e,s=4&e;if(r&&(c=o?r(t,n,o,i):r(t)),void 0!==c)return c;if(!A(t))return t;var f=ot(t);if(f){if(c=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&ue.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!a)return function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(t,c)}else{var l=ae(t),p=l==Oe||"[object GeneratorFunction]"==l;if(ut(t))return function(t,e){if(e)return t.slice();var r=t.length,n=kt?kt(r):new t.constructor(r);return t.copy(n),n}(t,a);if(l==me||l==we||p&&!o){if(c=u||p?{}:function(t){return"function"!=typeof t.constructor||mt(t)?{}:be(Bt(t))}(t),!a)return u?function(t,e){return K(t,Xt(t),e)}(t,function(t,e){return t&&K(e,Ft(e),t)}(c,t)):function(t,e){return K(t,Mt(t),e)}(t,function(t,e){return t&&K(e,Pt(e),t)}(c,t))}else{if(!Ae[l])return o?t:{};c=ye(t,l,a)}}i||(i=new q);var v=i.get(t);if(v)return v;i.set(t,c),ge(t)?t.forEach((function(n){c.add(xe(n,e,r,n,t,i))})):_e(t)&&t.forEach((function(n,o){c.set(o,xe(n,e,r,o,t,i))}));var y=f?void 0:(s?u?Wt:Nt:u?Ft:Pt)(t);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(y||t,(function(n,o){y&&(n=t[o=n]),J(c,o,xe(n,e,r,o,t,i))})),c}Ae[we]=Ae["[object Array]"]=Ae["[object ArrayBuffer]"]=Ae["[object DataView]"]=Ae["[object Boolean]"]=Ae["[object Date]"]=Ae["[object Float32Array]"]=Ae["[object Float64Array]"]=Ae["[object Int8Array]"]=Ae["[object Int16Array]"]=Ae["[object Int32Array]"]=Ae["[object Map]"]=Ae["[object Number]"]=Ae[me]=Ae["[object RegExp]"]=Ae["[object Set]"]=Ae["[object String]"]=Ae["[object Symbol]"]=Ae["[object Uint8Array]"]=Ae["[object Uint8ClampedArray]"]=Ae["[object Uint16Array]"]=Ae["[object Uint32Array]"]=!0,Ae["[object Error]"]=Ae[Oe]=Ae["[object WeakMap]"]=!1;var Ee=new Map;function Se(t,e,r,n,o,i){if(Ee.has(r)||Ee.set(r,[]),!(Ee.get(r).indexOf(t)>-1)){Ee.get(r).push(t);for(var c=t.split("."),a=r,u=c.length,s=0;s<u-1;s++){if(void 0===a[c[s]])return;a=a[c[s]]}var f=a[c[u-1]];if(e&&A(f))for(var l in f)Se(l,e,f,n,o,i);var p="_"+c[u-1];a[p]=f,Object.defineProperty(a,p,{enumerable:!1}),Object.defineProperty(a,c[u-1],{set:function(t){var r=function(t){return xe(t,5)}(o);if(a["_"+c[u-1]]=t,i(n,r),e&&A(t))for(var s in Ee.delete(a),t)Se(s,e,t,n,o,i)},get:function(){return a["_"+c[u-1]]}})}}function Pe(t,e,r){for(var n in t)n in e&&("object"==typeof t[n]?Pe(t[n],e[n],r):(r||t[n]!==e[n])&&(t[n]=e[n]))}var Ve=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.changeList=[],e}return n(r,t),r.prototype.init=function(t){var e=(void 0===t?{store:{}}:t).store,r=void 0===e?{}:e;this.ee=new u,this.store=r,this.bindDefaultListener()},r.prototype.bindDefaultListener=function(){var t=this;this.ee.on("evax.updateStore",(function(e){t.updateStore(e)})),this.ee.on("evax.forceUpdateStore",(function(e){t.forceUpdateStore(e)}))},r.prototype.changeCallback=function(t,e){this.changeList.push({key:t,oldStore:e})},r.prototype.updateStore=function(t){Pe(this.store,t,!1)},r.prototype.forceUpdateStore=function(t){Pe(this.store,t,!0)},r.prototype.bindListener=function(t,e){var r=this;-1!==t.indexOf("store.")&&Se(t.split(".").slice(1).join("."),e,this.store,t,this.store,(function(t,e){return r.changeCallback(t,e)}))},r.prototype.update=function(){var t,r,n=this.componentObserver.clear();try{for(var i=o(n),c=i.next();!c.done;c=i.next()){var a=c.value;switch(a.type){case e.OBSERVER_TYPE.ADD:this.add(a);break;case e.OBSERVER_TYPE.REMOVE:this.remove(a)}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},r.prototype.lateUpdate=function(){var t,e;try{for(var r=o(this.changeList),n=r.next();!n.done;n=r.next()){var i=n.value;this.ee.emit(i.key,this.store,i.oldStore)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.changeList=[]},r.prototype.add=function(t){var e=t.component;for(var r in e.evax=this,e.events)if(e.events[r]){this.bindListener(r,!!e.events[r].deep);var n=void 0;n=e.events[r]instanceof Function?e.events[r]:e.events[r].handler,this.ee.on(r,n.bind(e))}},r.prototype.remove=function(t){var e=t.component;for(var r in e.events)e.events[r]instanceof Function&&this.ee.off(r,e.events[r].bind(e))},r.prototype.on=function(t,e){return this.ee.on(t,e,this)},r.prototype.off=function(t,e){return this.ee.off(t,e)},r.prototype.emit=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(e=this.ee).emit.apply(e,c([t],r))},r.prototype.onDestroy=function(){},r.systemName="EvaX",r=function(t,e,r,n){var o,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(c=(i<3?o(c):i>3?o(e,r,c):o(e,r))||c);return i>3&&c&&Object.defineProperty(e,r,c),c}([e.decorators.componentObserver({EvaX:[]})],r)}(e.System),ze={Components:[a],Systems:[Ve]};return t.EvaX=a,t.EvaXSystem=Ve,t.default=ze,Object.defineProperty(t,"__esModule",{value:!0}),t}({},EVA);window.EVA.plugin.EVAX=window.EVA.plugin.EVAX||_EVA_IIFE_EVAX;
|
|
1
|
+
window.EVA=window.EVA||{},window.EVA.plugin=window.EVA.plugin||{};var _EVA_IIFE_EVAX=function(t,e){"use strict";var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},r(t,e)};function n(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),c=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)c.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return c}function c(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(i(arguments[e]));return t}var a=function(t){function e(e){var r=t.call(this,e)||this;return r.events={},r}return n(e,t),e.prototype.init=function(t){void 0===t&&(t={events:{}});var e=t.events;this.events=e||{}},e.componentName="EvaX",e}(e.Component);var u=function(t){var e={exports:{}};return t(e,e.exports),e.exports}((function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function o(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function i(t,e,n,i,c){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,i||t,c),u=r?r+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],a]:t._events[u].push(a):(t._events[u]=a,t._eventsCount++),t}function c(t,e){0==--t._eventsCount?t._events=new n:delete t._events[e]}function a(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),a.prototype.eventNames=function(){var t,n,o=[];if(0===this._eventsCount)return o;for(n in t=this._events)e.call(t,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},a.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,c=new Array(i);o<i;o++)c[o]=n[o].fn;return c},a.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},a.prototype.emit=function(t,e,n,o,i,c){var a=r?r+t:t;if(!this._events[a])return!1;var u,s,f=this._events[a],l=arguments.length;if(f.fn){switch(f.once&&this.removeListener(t,f.fn,void 0,!0),l){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,e),!0;case 3:return f.fn.call(f.context,e,n),!0;case 4:return f.fn.call(f.context,e,n,o),!0;case 5:return f.fn.call(f.context,e,n,o,i),!0;case 6:return f.fn.call(f.context,e,n,o,i,c),!0}for(s=1,u=new Array(l-1);s<l;s++)u[s-1]=arguments[s];f.fn.apply(f.context,u)}else{var p,v=f.length;for(s=0;s<v;s++)switch(f[s].once&&this.removeListener(t,f[s].fn,void 0,!0),l){case 1:f[s].fn.call(f[s].context);break;case 2:f[s].fn.call(f[s].context,e);break;case 3:f[s].fn.call(f[s].context,e,n);break;case 4:f[s].fn.call(f[s].context,e,n,o);break;default:if(!u)for(p=1,u=new Array(l-1);p<l;p++)u[p-1]=arguments[p];f[s].fn.apply(f[s].context,u)}}return!0},a.prototype.on=function(t,e,r){return i(this,t,e,r,!1)},a.prototype.once=function(t,e,r){return i(this,t,e,r,!0)},a.prototype.removeListener=function(t,e,n,o){var i=r?r+t:t;if(!this._events[i])return this;if(!e)return c(this,i),this;var a=this._events[i];if(a.fn)a.fn!==e||o&&!a.once||n&&a.context!==n||c(this,i);else{for(var u=0,s=[],f=a.length;u<f;u++)(a[u].fn!==e||o&&!a[u].once||n&&a[u].context!==n)&&s.push(a[u]);s.length?this._events[i]=1===s.length?s[0]:s:c(this,i)}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=r?r+t:t,this._events[e]&&c(this,e)):(this._events=new n,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=r,a.EventEmitter=a,t.exports=a})),s=u;function f(t,e){return t===e||t!=t&&e!=e}function l(t,e){for(var r=t.length;r--;)if(f(t[r][0],e))return r;return-1}var p=Array.prototype.splice;function v(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}v.prototype.clear=function(){this.__data__=[],this.size=0},v.prototype.delete=function(t){var e=this.__data__,r=l(e,t);return!(r<0)&&(r==e.length-1?e.pop():p.call(e,r,1),--this.size,!0)},v.prototype.get=function(t){var e=this.__data__,r=l(e,t);return r<0?void 0:e[r][1]},v.prototype.has=function(t){return l(this.__data__,t)>-1},v.prototype.set=function(t,e){var r=this.__data__,n=l(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var y="object"==typeof global&&global&&global.Object===Object&&global,h="object"==typeof self&&self&&self.Object===Object&&self,b=y||h||Function("return this")(),d=b.Symbol,_=Object.prototype,j=_.hasOwnProperty,g=_.toString,w=d?d.toStringTag:void 0;var O=Object.prototype.toString;var m=d?d.toStringTag:void 0;function A(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":m&&m in Object(t)?function(t){var e=j.call(t,w),r=t[w];try{t[w]=void 0;var n=!0}catch(t){}var o=g.call(t);return n&&(e?t[w]=r:delete t[w]),o}(t):function(t){return O.call(t)}(t)}function x(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function E(t){if(!x(t))return!1;var e=A(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}var S,P=b["__core-js_shared__"],V=(S=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+S:"";var z=Function.prototype.toString;function F(t){if(null!=t){try{return z.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var U=/^\[object .+?Constructor\]$/,I=Function.prototype,L=Object.prototype,k=I.toString,T=L.hasOwnProperty,C=RegExp("^"+k.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function D(t){return!(!x(t)||(e=t,V&&V in e))&&(E(t)?C:U).test(F(t));var e}function M(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return D(r)?r:void 0}var R=M(b,"Map"),B=M(Object,"create");var X=Object.prototype.hasOwnProperty;var $=Object.prototype.hasOwnProperty;function N(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function W(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function q(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}N.prototype.clear=function(){this.__data__=B?B(null):{},this.size=0},N.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},N.prototype.get=function(t){var e=this.__data__;if(B){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return X.call(e,t)?e[t]:void 0},N.prototype.has=function(t){var e=this.__data__;return B?void 0!==e[t]:$.call(e,t)},N.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=B&&void 0===e?"__lodash_hash_undefined__":e,this},q.prototype.clear=function(){this.size=0,this.__data__={hash:new N,map:new(R||v),string:new N}},q.prototype.delete=function(t){var e=W(this,t).delete(t);return this.size-=e?1:0,e},q.prototype.get=function(t){return W(this,t).get(t)},q.prototype.has=function(t){return W(this,t).has(t)},q.prototype.set=function(t,e){var r=W(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function G(t){var e=this.__data__=new v(t);this.size=e.size}G.prototype.clear=function(){this.__data__=new v,this.size=0},G.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},G.prototype.get=function(t){return this.__data__.get(t)},G.prototype.has=function(t){return this.__data__.has(t)},G.prototype.set=function(t,e){var r=this.__data__;if(r instanceof v){var n=r.__data__;if(!R||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new q(n)}return r.set(t,e),this.size=r.size,this};var Y=function(){try{var t=M(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();function H(t,e,r){"__proto__"==e&&Y?Y(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var J=Object.prototype.hasOwnProperty;function K(t,e,r){var n=t[e];J.call(t,e)&&f(n,r)&&(void 0!==r||e in t)||H(t,e,r)}function Q(t,e,r,n){var o=!r;r||(r={});for(var i=-1,c=e.length;++i<c;){var a=e[i],u=n?n(r[a],t[a],a,r,t):void 0;void 0===u&&(u=t[a]),o?H(r,a,u):K(r,a,u)}return r}function Z(t){return null!=t&&"object"==typeof t}function tt(t){return Z(t)&&"[object Arguments]"==A(t)}var et=Object.prototype,rt=et.hasOwnProperty,nt=et.propertyIsEnumerable,ot=tt(function(){return arguments}())?tt:function(t){return Z(t)&&rt.call(t,"callee")&&!nt.call(t,"callee")},it=ot,ct=Array.isArray;var at="object"==typeof t&&t&&!t.nodeType&&t,ut=at&&"object"==typeof module&&module&&!module.nodeType&&module,st=ut&&ut.exports===at?b.Buffer:void 0,ft=(st?st.isBuffer:void 0)||function(){return!1},lt=/^(?:0|[1-9]\d*)$/;function pt(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&<.test(t))&&t>-1&&t%1==0&&t<e}function vt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var yt={};function ht(t){return function(e){return t(e)}}yt["[object Float32Array]"]=yt["[object Float64Array]"]=yt["[object Int8Array]"]=yt["[object Int16Array]"]=yt["[object Int32Array]"]=yt["[object Uint8Array]"]=yt["[object Uint8ClampedArray]"]=yt["[object Uint16Array]"]=yt["[object Uint32Array]"]=!0,yt["[object Arguments]"]=yt["[object Array]"]=yt["[object ArrayBuffer]"]=yt["[object Boolean]"]=yt["[object DataView]"]=yt["[object Date]"]=yt["[object Error]"]=yt["[object Function]"]=yt["[object Map]"]=yt["[object Number]"]=yt["[object Object]"]=yt["[object RegExp]"]=yt["[object Set]"]=yt["[object String]"]=yt["[object WeakMap]"]=!1;var bt="object"==typeof t&&t&&!t.nodeType&&t,dt=bt&&"object"==typeof module&&module&&!module.nodeType&&module,_t=dt&&dt.exports===bt&&y.process,jt=function(){try{var t=dt&&dt.require&&dt.require("util").types;return t||_t&&_t.binding&&_t.binding("util")}catch(t){}}(),gt=jt&&jt.isTypedArray,wt=gt?ht(gt):function(t){return Z(t)&&vt(t.length)&&!!yt[A(t)]},Ot=Object.prototype.hasOwnProperty;function mt(t,e){var r=ct(t),n=!r&&it(t),o=!r&&!n&&ft(t),i=!r&&!n&&!o&&wt(t),c=r||n||o||i,a=c?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],u=a.length;for(var s in t)!e&&!Ot.call(t,s)||c&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||pt(s,u))||a.push(s);return a}var At=Object.prototype;function xt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||At)}function Et(t,e){return function(r){return t(e(r))}}var St=Et(Object.keys,Object),Pt=Object.prototype.hasOwnProperty;function Vt(t){return null!=t&&vt(t.length)&&!E(t)}function zt(t){return Vt(t)?mt(t):function(t){if(!xt(t))return St(t);var e=[];for(var r in Object(t))Pt.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}var Ft=Object.prototype.hasOwnProperty;function Ut(t){if(!x(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=xt(t),r=[];for(var n in t)("constructor"!=n||!e&&Ft.call(t,n))&&r.push(n);return r}function It(t){return Vt(t)?mt(t,!0):Ut(t)}var Lt="object"==typeof t&&t&&!t.nodeType&&t,kt=Lt&&"object"==typeof module&&module&&!module.nodeType&&module,Tt=kt&&kt.exports===Lt?b.Buffer:void 0,Ct=Tt?Tt.allocUnsafe:void 0;function Dt(){return[]}var Mt=Object.prototype.propertyIsEnumerable,Rt=Object.getOwnPropertySymbols,Bt=Rt?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var c=t[r];e(c,r,t)&&(i[o++]=c)}return i}(Rt(t),(function(e){return Mt.call(t,e)})))}:Dt,Xt=Bt;function $t(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var Nt=Et(Object.getPrototypeOf,Object),Wt=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)$t(e,Xt(t)),t=Nt(t);return e}:Dt;function qt(t,e,r){var n=e(t);return ct(t)?n:$t(n,r(t))}function Gt(t){return qt(t,zt,Xt)}function Yt(t){return qt(t,It,Wt)}var Ht=M(b,"DataView"),Jt=M(b,"Promise"),Kt=M(b,"Set"),Qt=M(b,"WeakMap"),Zt="[object Map]",te="[object Promise]",ee="[object Set]",re="[object WeakMap]",ne="[object DataView]",oe=F(Ht),ie=F(R),ce=F(Jt),ae=F(Kt),ue=F(Qt),se=A;(Ht&&se(new Ht(new ArrayBuffer(1)))!=ne||R&&se(new R)!=Zt||Jt&&se(Jt.resolve())!=te||Kt&&se(new Kt)!=ee||Qt&&se(new Qt)!=re)&&(se=function(t){var e=A(t),r="[object Object]"==e?t.constructor:void 0,n=r?F(r):"";if(n)switch(n){case oe:return ne;case ie:return Zt;case ce:return te;case ae:return ee;case ue:return re}return e});var fe=se,le=Object.prototype.hasOwnProperty;var pe=b.Uint8Array;function ve(t){var e=new t.constructor(t.byteLength);return new pe(e).set(new pe(t)),e}var ye=/\w*$/;var he=d?d.prototype:void 0,be=he?he.valueOf:void 0;function de(t,e,r){var n,o,i,c=t.constructor;switch(e){case"[object ArrayBuffer]":return ve(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return function(t,e){var r=e?ve(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(t,e){var r=e?ve(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}(t,r);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return(i=new(o=t).constructor(o.source,ye.exec(o))).lastIndex=o.lastIndex,i;case"[object Symbol]":return n=t,be?Object(be.call(n)):{}}}var _e=Object.create,je=function(){function t(){}return function(e){if(!x(e))return{};if(_e)return _e(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();var ge=jt&&jt.isMap,we=ge?ht(ge):function(t){return Z(t)&&"[object Map]"==fe(t)};var Oe=jt&&jt.isSet,me=Oe?ht(Oe):function(t){return Z(t)&&"[object Set]"==fe(t)},Ae="[object Arguments]",xe="[object Function]",Ee="[object Object]",Se={};function Pe(t,e,r,n,o,i){var c,a=1&e,u=2&e,s=4&e;if(r&&(c=o?r(t,n,o,i):r(t)),void 0!==c)return c;if(!x(t))return t;var f=ct(t);if(f){if(c=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&le.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!a)return function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(t,c)}else{var l=fe(t),p=l==xe||"[object GeneratorFunction]"==l;if(ft(t))return function(t,e){if(e)return t.slice();var r=t.length,n=Ct?Ct(r):new t.constructor(r);return t.copy(n),n}(t,a);if(l==Ee||l==Ae||p&&!o){if(c=u||p?{}:function(t){return"function"!=typeof t.constructor||xt(t)?{}:je(Nt(t))}(t),!a)return u?function(t,e){return Q(t,Wt(t),e)}(t,function(t,e){return t&&Q(e,It(e),t)}(c,t)):function(t,e){return Q(t,Xt(t),e)}(t,function(t,e){return t&&Q(e,zt(e),t)}(c,t))}else{if(!Se[l])return o?t:{};c=de(t,l,a)}}i||(i=new G);var v=i.get(t);if(v)return v;i.set(t,c),me(t)?t.forEach((function(n){c.add(Pe(n,e,r,n,t,i))})):we(t)&&t.forEach((function(n,o){c.set(o,Pe(n,e,r,o,t,i))}));var y=f?void 0:(s?u?Yt:Gt:u?It:zt)(t);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(y||t,(function(n,o){y&&(n=t[o=n]),K(c,o,Pe(n,e,r,o,t,i))})),c}Se[Ae]=Se["[object Array]"]=Se["[object ArrayBuffer]"]=Se["[object DataView]"]=Se["[object Boolean]"]=Se["[object Date]"]=Se["[object Float32Array]"]=Se["[object Float64Array]"]=Se["[object Int8Array]"]=Se["[object Int16Array]"]=Se["[object Int32Array]"]=Se["[object Map]"]=Se["[object Number]"]=Se[Ee]=Se["[object RegExp]"]=Se["[object Set]"]=Se["[object String]"]=Se["[object Symbol]"]=Se["[object Uint8Array]"]=Se["[object Uint8ClampedArray]"]=Se["[object Uint16Array]"]=Se["[object Uint32Array]"]=!0,Se["[object Error]"]=Se[xe]=Se["[object WeakMap]"]=!1;var Ve=new Map;function ze(t,e,r,n,o,i){if(Ve.has(r)||Ve.set(r,[]),!(Ve.get(r).indexOf(t)>-1)){Ve.get(r).push(t);for(var c=t.split("."),a=r,u=c.length,s=0;s<u-1;s++){if(void 0===a[c[s]])return;a=a[c[s]]}var f=a[c[u-1]];if(e&&x(f))for(var l in f)ze(l,e,f,n,o,i);var p="_"+c[u-1];a[p]=f,Object.defineProperty(a,p,{enumerable:!1}),Object.defineProperty(a,c[u-1],{set:function(t){var r=function(t){return Pe(t,5)}(o);if(a["_"+c[u-1]]=t,i(n,r),e&&x(t))for(var s in Ve.delete(a),t)ze(s,e,t,n,o,i)},get:function(){return a["_"+c[u-1]]}})}}function Fe(t,e,r){for(var n in t)n in e&&("object"==typeof t[n]?Fe(t[n],e[n],r):(r||t[n]!==e[n])&&(t[n]=e[n]))}var Ue=function(t){function r(){var e=null!==t&&t.apply(this,arguments)||this;return e.changeList=[],e}return n(r,t),r.prototype.init=function(t){var e=(void 0===t?{store:{}}:t).store,r=void 0===e?{}:e;this.ee=new s,this.store=r,this.bindDefaultListener()},r.prototype.bindDefaultListener=function(){var t=this;this.ee.on("evax.updateStore",(function(e){t.updateStore(e)})),this.ee.on("evax.forceUpdateStore",(function(e){t.forceUpdateStore(e)}))},r.prototype.changeCallback=function(t,e){this.changeList.push({key:t,oldStore:e})},r.prototype.updateStore=function(t){Fe(this.store,t,!1)},r.prototype.forceUpdateStore=function(t){Fe(this.store,t,!0)},r.prototype.bindListener=function(t,e){var r=this;-1!==t.indexOf("store.")&&ze(t.split(".").slice(1).join("."),e,this.store,t,this.store,(function(t,e){return r.changeCallback(t,e)}))},r.prototype.update=function(){var t,r,n=this.componentObserver.clear();try{for(var i=o(n),c=i.next();!c.done;c=i.next()){var a=c.value;switch(a.type){case e.OBSERVER_TYPE.ADD:this.add(a);break;case e.OBSERVER_TYPE.REMOVE:this.remove(a)}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}},r.prototype.lateUpdate=function(){var t,e;try{for(var r=o(this.changeList),n=r.next();!n.done;n=r.next()){var i=n.value;this.ee.emit(i.key,this.store,i.oldStore)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}this.changeList=[]},r.prototype.add=function(t){var e=t.component;for(var r in e.evax=this,e.events)if(e.events[r]){this.bindListener(r,!!e.events[r].deep);var n=void 0;n=e.events[r]instanceof Function?e.events[r]:e.events[r].handler,this.ee.on(r,n.bind(e))}},r.prototype.remove=function(t){var e=t.component;for(var r in e.events)e.events[r]instanceof Function&&this.ee.off(r,e.events[r].bind(e))},r.prototype.on=function(t,e){return this.ee.on(t,e,this)},r.prototype.off=function(t,e){return this.ee.off(t,e)},r.prototype.emit=function(t){for(var e,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return(e=this.ee).emit.apply(e,c([t],r))},r.prototype.onDestroy=function(){},r.systemName="EvaX",r=function(t,e,r,n){var o,i=arguments.length,c=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(c=(i<3?o(c):i>3?o(e,r,c):o(e,r))||c);return i>3&&c&&Object.defineProperty(e,r,c),c}([e.decorators.componentObserver({EvaX:[]})],r),r}(e.System),Ie=Ue,Le={Components:[a],Systems:[Ie]};return t.EvaX=a,t.EvaXSystem=Ie,t.default=Le,Object.defineProperty(t,"__esModule",{value:!0}),t}({},EVA);window.EVA.plugin.EVAX=window.EVA.plugin.EVAX||_EVA_IIFE_EVAX;
|
package/dist/plugin-evax.cjs.js
CHANGED
|
@@ -7,7 +7,7 @@ var EventEmitter = require('eventemitter3');
|
|
|
7
7
|
var cloneDeep = require('lodash-es/cloneDeep');
|
|
8
8
|
var isObject = require('lodash-es/isObject');
|
|
9
9
|
|
|
10
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e[
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
11
11
|
|
|
12
12
|
var EventEmitter__default = /*#__PURE__*/_interopDefaultLegacy(EventEmitter);
|
|
13
13
|
var cloneDeep__default = /*#__PURE__*/_interopDefaultLegacy(cloneDeep);
|
|
@@ -302,4 +302,4 @@ var index = {
|
|
|
302
302
|
|
|
303
303
|
exports.EvaX = EvaXComponent$1;
|
|
304
304
|
exports.EvaXSystem = EvaXSystem$1;
|
|
305
|
-
exports[
|
|
305
|
+
exports["default"] = index;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@eva/eva.js"),t=require("eventemitter3"),n=require("lodash-es/cloneDeep"),r=require("lodash-es/isObject");function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=o(t),a=o(n),s=o(r),c=function(e,t){return
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@eva/eva.js"),t=require("eventemitter3"),n=require("lodash-es/cloneDeep"),r=require("lodash-es/isObject");function o(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i=o(t),a=o(n),s=o(r),c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},c(e,t)};function f(e,t){function n(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function u(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}var l=function(e){function t(t){var n=e.call(this,t)||this;return n.events={},n}return f(t,e),t.prototype.init=function(e){void 0===e&&(e={events:{}});var t=e.events;this.events=t||{}},t.componentName="EvaX",t}(e.Component),h=new Map;function y(e,t,n,r,o,i){if(h.has(n)||h.set(n,[]),!(h.get(n).indexOf(e)>-1)){h.get(n).push(e);for(var c=e.split("."),f=n,u=c.length,p=0;p<u-1;p++){if(void 0===f[c[p]])return;f=f[c[p]]}var v=f[c[u-1]];if(t&&s(v))for(var l in v)y(l,t,v,r,o,i);var d="_"+c[u-1];f[d]=v,Object.defineProperty(f,d,{enumerable:!1}),Object.defineProperty(f,c[u-1],{set:function(e){var n=a(o);if(f["_"+c[u-1]]=e,i(r,n),t&&s(e))for(var p in h.delete(f),e)y(p,t,e,r,o,i)},get:function(){return f["_"+c[u-1]]}})}}function d(e,t,n){for(var r in e)r in t&&("object"==typeof e[r]?d(e[r],t[r],n):(n||e[r]!==t[r])&&(e[r]=t[r]))}var b=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.changeList=[],e}return f(n,t),n.prototype.init=function(e){var t=(void 0===e?{store:{}}:e).store,n=void 0===t?{}:t;this.ee=new i,this.store=n,this.bindDefaultListener()},n.prototype.bindDefaultListener=function(){var e=this;this.ee.on("evax.updateStore",(function(t){e.updateStore(t)})),this.ee.on("evax.forceUpdateStore",(function(t){e.forceUpdateStore(t)}))},n.prototype.changeCallback=function(e,t){this.changeList.push({key:e,oldStore:t})},n.prototype.updateStore=function(e){d(this.store,e,!1)},n.prototype.forceUpdateStore=function(e){d(this.store,e,!0)},n.prototype.bindListener=function(e,t){var n=this;-1!==e.indexOf("store.")&&y(e.split(".").slice(1).join("."),t,this.store,e,this.store,(function(e,t){return n.changeCallback(e,t)}))},n.prototype.update=function(){var t,n,r=this.componentObserver.clear();try{for(var o=u(r),i=o.next();!i.done;i=o.next()){var a=i.value;switch(a.type){case e.OBSERVER_TYPE.ADD:this.add(a);break;case e.OBSERVER_TYPE.REMOVE:this.remove(a)}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},n.prototype.lateUpdate=function(){var e,t;try{for(var n=u(this.changeList),r=n.next();!r.done;r=n.next()){var o=r.value;this.ee.emit(o.key,this.store,o.oldStore)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.changeList=[]},n.prototype.add=function(e){var t=e.component;for(var n in t.evax=this,t.events)if(t.events[n]){this.bindListener(n,!!t.events[n].deep);var r=void 0;r=t.events[n]instanceof Function?t.events[n]:t.events[n].handler,this.ee.on(n,r.bind(t))}},n.prototype.remove=function(e){var t=e.component;for(var n in t.events)t.events[n]instanceof Function&&this.ee.off(n,t.events[n].bind(t))},n.prototype.on=function(e,t){return this.ee.on(e,t,this)},n.prototype.off=function(e,t){return this.ee.off(e,t)},n.prototype.emit=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return(t=this.ee).emit.apply(t,v([e],n))},n.prototype.onDestroy=function(){},n.systemName="EvaX",n=function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}([e.decorators.componentObserver({EvaX:[]})],n),n}(e.System),m={Components:[l],Systems:[b]};exports.EvaX=l,exports.EvaXSystem=b,exports.default=m;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eva/plugin-evax",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8-alpha.0",
|
|
4
4
|
"description": "@eva/plugin-evax",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/plugin-evax.esm.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"license": "MIT",
|
|
19
19
|
"homepage": "https://eva.js.org",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@eva/eva.js": "1.2.
|
|
21
|
+
"@eva/eva.js": "1.2.8-alpha.0",
|
|
22
22
|
"eventemitter3": "^3.1.2",
|
|
23
23
|
"lodash-es": "^4.17.21"
|
|
24
24
|
}
|