diff --git a/dist/mota-min.js b/dist/mota-min.js index 2a53353..e93bea5 100644 --- a/dist/mota-min.js +++ b/dist/mota-min.js @@ -1,2 +1,2 @@ -!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define("mota",["react"],n):"object"==typeof exports?exports.mota=n(require("react")):t.mota=n(t.React)}("undefined"!=typeof self?self:this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get: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,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=67)}([function(t,n){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)},function(t,n,e){"use strict";function r(){}function o(t){return Object.prototype.toString.call(t)}function i(t){return/^\[object (.+)\]$/i.exec(o(t))[1]}function u(t){return void 0===t||null===t}function c(t){return u(t)?t:t.trim?t.trim():t.replace(/(^[\\s]*)|([\\s]*$)/g,"")}function a(t,n,e){return u(t)?t:t.replace(new RegExp(n,"g"),e)}function s(t,n){return!u(t)&&!u(n)&&0===t.indexOf(n)}function f(t,n){return!u(t)&&!u(n)&&t.indexOf(n)>-1}function p(t,n){return!u(t)&&!u(n)&&t.indexOf(n)===t.length-n.length}function l(t,n){return!u(t)&&!u(n)&&(n in t||t.hasOwnProperty(n))}function h(t){return!u(t)&&"function"==typeof t}function d(t){return!u(t)&&"AsyncFunction"===i(t)}function v(t){return!u(t)&&"GeneratorFunction"===i(t)}function y(t){return!u(t)&&"String"===i(t)}function g(t){return!u(t)&&"Number"===i(t)}function _(t){return!u(t)&&"Boolean"===i(t)}function m(t){return!u(t)&&(window.Element?t instanceof Element:t.tagName&&t.nodeType&&t.nodeName&&t.attributes&&t.ownerDocument)}function b(t){return!u(t)&&t instanceof Text}function x(t){if(u(t))return!1;var n=i(t);return"Object"===n||"Array"===n}function O(t){if(u(t))return!1;var n="Array"===i(t),e=t instanceof Array,r=!y(t)&&g(t.length)&&h(t.splice),o=!y(t)&&g(t.length)&&t[0];return n||e||r||o}function w(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function E(t){return!u(t)&&t instanceof Date}function S(t){return t instanceof RegExp}function j(t){return u(t)?[]:Array.prototype.slice.call(t)}function M(t){return g(t)?new Date(t):E(t)?t:h(t)?new Date(t()):H(t)?new Date(q(t)()):y(t)?new Date(a(a(t,"-","/"),"T"," ")):null}function P(t,n,e){if(!u(t)&&!u(n))if(O(t))for(var r=t.length,o=0;o-1))if(delete n[r],Object.getOwnPropertyDescriptor)try{Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))}catch(e){n[r]=t[r]}else n[r]=t[r]}),n}function A(t,n){if(u(t)||y(t)||g(t)||_(t)||E(t))return t;if(w(t))return t.slice();var e=t;try{e=new t.constructor}catch(t){}return P(t,function(t,r){e[t]==r||f(n,t)||(x(r)?e[t]=A(r,n):e[t]=r)}),["toString","valueOf"].forEach(function(r){f(n,r)||F(e,r,t[r])}),e}function N(t,n,e,r,o){if(r)switch(r){case 1:return N(t.prototype,n.prototype,e,0);case 2:N(t.prototype,n.prototype,e,0);break;case 3:return N(t,n.prototype,e,0);case 4:return N(t.prototype,n,e,0)}return n=n||{},t=t||(O(n)?[]:{}),T(n).forEach(function(r){f(e,r)||o&&u(n[r])||(!x(n[r])||n[r].constructor!=Object&&n[r].constructor!=Array&&null!=n[r].constructor?t[r]=n[r]:t[r]=N(t[r],n[r],e,0,o))}),t}function F(t,n,e){if(arguments.length<1)throw new Error("Parameter missing");if(arguments.length<2)return P(t,function(n,e){F(t,n,e)});if(arguments.length<3)return F(t,n,t[n]);try{Object.defineProperty(t,n,{get:function(){return e},set:function(){throw new Error("Cannot assign to final property:"+n)},enumerable:!1,configurable:!1})}catch(r){t[n]=e}}function T(t){if(Object.keys)return Object.keys(t);var n=[];return P(t,function(t){n.push(t)}),n}function k(t,n){function e(){}if(Object.create)return Object.create(t,n);e.prototype=t;var r=new e;return n&&L(n,r),r}function D(t,n){if(Object.setPrototypeOf)return Object.setPrototypeOf(t,n||k(null));"__proto__"in Object||L(n,t),t.__proto__=n}function I(t){return t.__proto__?t.__proto__:Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor?t.constructor.prototype:void 0}function R(t,n){if(t===n)return!0;if(!x(t)||!x(n))return!1;var e=T(t),r=T(n);if(e.length!==r.length)return!1;var o=e.concat(r),i=k(null),u=!0;return P(o,function(e,r){i[r]||(R(t[r],n[r])||(u=!1),i[r]=!0)}),u}function $(t,n,e,r){if(r||(r=[e,e=r][0]),e=Math.abs(e||1),t=n;o-=e)r(o)}function G(){function t(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}function V(t,n){var e=O(t)?[]:{};return P(t,function(t,r){e[t]=n(t,r)}),e}function U(t,n,e){u(t)||u(n)||""===n||(O(n)||(n=n.replace(/\[/,".").replace(/\]/,".").split(".")),P(n,function(r,o){u(o)||o.length<1||(r===n.length-1?t[o]=e:(t[o]=t[o]||{},t=t[o]))}))}function B(t,n,e){return u(t)||u(n)||""===n?t:(O(n)||(n=n.replace(/\[/,".").replace(/\]/,".").split(".")),P(n,function(n,r){u(t)||u(r)||r.length<1||(t=e?e(t[r],r,t):t[r])}),t)}function W(t){if(u(t))return t;var n=[];return P(t,function(t,e){n.indexOf(e)>-1||n.push(e)}),n}function z(t){if(!t)return[];var n=t.toString(),e=n.split(")")[0].split("=>")[0].split("(");return(e[1]||e[0]).split(",").map(function(t){return c(t)}).filter(function(t){return"function"!=t})}function H(t){return nt.test(t)}function q(t){var n=nt.exec(t);if(n&&!(n.length<3)){var e=n[1].split(",").filter(function(t){return!!t}).map(function(t){return t.trim()}),r=n[2];return new(Function.bind.apply(Function,[void 0].concat(e,[r])))}}function J(t,n){if(!t)return t;n=n||40;var e=t.length,r=n/2;return e>n?t.substr(0,r)+"..."+t.substr(e-r):t}function K(t){return y(t)?t.substring(0,1).toUpperCase()+t.substring(1):""}function Y(t){return y(t)?t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"):""}function Q(t,n){return y(t)?(t&&(t=t.replace(/\-[a-z0-9]/g,function(t){return t.slice(1).toUpperCase()}),t=t.replace(/^[a-z]/i,function(t){return n?t.toUpperCase():t.toLowerCase()})),t):""}function Z(t){return y(t)?(t&&(t=t.replace(/([A-Z])/g,"-$1"),"-"==t[0]&&(t=t.slice(1))),t.toLowerCase()):""}function X(t){var n=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;return t.replace(n,"<$1>")}function tt(t){t=t||" ";var n=document.createElement("div");n.innerHTML=X(c(t));var e=j(n.childNodes);return P(e,function(t,e){n.removeChild(e)}),e}Object.defineProperty(n,"__esModule",{value:!0}),n.noop=r,n.toString=o,n.getType=i,n.isNull=u,n.trim=c,n.replace=a,n.startWith=s,n.contains=f,n.endWith=p,n.has=l,n.hasProperty=l,n.isFunction=h,n.isAsyncFunction=d,n.isGeneratorFunction=v,n.isString=y,n.isNumber=g,n.isBoolean=_,n.isElement=m,n.isText=b,n.isObject=x,n.isArray=O,n.isTypedArray=w,n.isDate=E,n.isRegexp=S,n.toArray=j,n.toDate=M,n.each=P,n.formatDate=C,n.copy=L,n.clone=A,n.mix=N,n.final=F,n.keys=T,n.create=k,n.setPrototypeOf=D,n.getPrototypeOf=I,n.deepEqual=R,n.fromTo=$,n.newGuid=G,n.map=V,n.setByPath=U,n.getByPath=B,n.unique=W,n.getFunctionArgumentNames=z;var nt=/^function\s*\(([\s\S]*?)\)\s*\{([\s\S]*?)\}$/i;n.isFunctionString=H,n.toFunction=q,n.short=J,n.firstUpper=K,n.escapeRegExp=Y,n.toCamelCase=Q,n.toSplitCase=Z,n.htmlPrefilter=X,n.parseHTML=tt,e(77)([117,95,111,28,107,55,96,100,102,88,86,96,33,98,99,95,82,83,96,95,38,90,15,14,87,20,85,80,68,86,71,79,81,75,254,25,253,62,58,74,78,63,67,246,249,248,65,254,50,69,49,244,244,248,50,54,43,43,61,19,41,234,227,46,36,56,37,29,221,227,247,229,232,220,219,36,225,23,41,25,35,214,214])},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){t.exports=!e(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){function r(t){return t&&t.__esModule?t:{default:t}}function o(t,n,e){if(!t)return{};if(t=t.prototype||t,!_(t,b,e))return{};var r=t[b];return n?_(r,n,e)?r[n]:{}:r}function i(t,n){if(!t)throw new Error("Invalid annotation target");t=t.prototype||t;var e=o((0,d.default)(t));_(t,b)||m(t,b,(0,l.default)(e));var r=t[b];return n?(_(r,n)||(r[n]=(0,l.default)(o(e[n]))),r[n]):r}function u(t){return":"+t}function c(t,n,e,r){if(!t)return null;t=u(t);var i=o(n,e,r||!1);return i&&i[t]}function a(t,n,e,r){return t&&n?(t=u(t),i(e,r)[t]=n,n):null}function s(t,n,e,r){var o=c(t,e,r,!0);if(o&&!y(o))throw new Error("Invaild Array");return o||(o=a(t,[],e,r)),o.push(n),o}function f(t,n){return function(e,r){a(t,n,e,r)}}var p=e(39),l=r(p),h=e(64),d=r(h),v=e(1),y=v.isArray,g=e(13),_=g.has,m=g.defineGetter,b="_annotations_";f.set=a,f.push=s,f.get=c,f.getAll=o,f.annotation=f,t.exports=f},function(t,n,e){var r=e(2),o=e(0),i=e(41),u=e(10),c=e(8),a=function(t,n,e){var s,f,p,l=t&a.F,h=t&a.G,d=t&a.S,v=t&a.P,y=t&a.B,g=t&a.W,_=h?o:o[n]||(o[n]={}),m=_.prototype,b=h?r:d?r[n]:(r[n]||{}).prototype;h&&(e=n);for(s in e)(f=!l&&b&&void 0!==b[s])&&c(_,s)||(p=f?b[s]:e[s],_[s]=h&&"function"!=typeof b[s]?e[s]:y&&f?i(p,r):g&&b[s]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(p):v&&"function"==typeof p?i(Function.call,p):p,v&&((_.virtual||(_.virtual={}))[s]=p,t&a.R&&m&&!m[s]&&u(m,s,p)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n,e){var r=e(16),o=e(42),i=e(26),u=Object.defineProperty;n.f=e(3)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){t.exports={default:e(69),__esModule:!0}},function(t,n,e){var r=e(6),o=e(19);t.exports=e(3)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(45),o=e(27);t.exports=function(t){return r(o(t))}},function(t,n,e){function r(t){return!(!t||!v(t))&&(t instanceof l||t instanceof h||"render"in t&&"__reactAutoBindPairs"in t)}function o(t){return!!t&&r(t.prototype)}function i(t,n,e){return!1===e?!(!t||!t[n]):t&&t.hasOwnProperty(n)}function u(t,n,e){var r=y(e)?e:function(){return e};(0,f.default)(t,n,{configurable:!0,enumerable:!1,get:r})}function c(t){if(t)return t.__esModule||"[object Module]"===Object.prototype.toString.call(t)}function a(t){if(!c(t))return t;if(t.state)return t.state;throw new Error("When using ES module as a model, the module must export 'state'")}var s=e(80),f=function(t){return t&&t.__esModule?t:{default:t}}(s),p=e(14),l=p.Component,h=p.PureComponent,d=e(1),v=d.isObject,y=d.isFunction;t.exports={isComponentClass:o,isComponentInstance:r,has:i,defineGetter:u,isESModule:c,getModelState:a}},function(n,e){n.exports=t},function(t,n,e){var r=e(30)("wks"),o=e(22),i=e(2).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(76),o=e(48),i=e(50),u=e(79),c=e(49);r.AutoRun=o,r.Watcher=i,r.expression=u,r.nextTick=c,r.Observer=r,t.exports=r},function(t,n,e){function r(t){return t&&t.__esModule?t:{default:t}}var o=e(64),i=r(o),u=e(25),c=r(u),a=e(4),s=a.push,f=a.get,p=function(){function t(n){(0,c.default)(this,t),this.key=n+":handlers"}return t.prototype.add=function(t,n){s(this.key,n,t)},t.prototype.get=function(t){var n=(0,i.default)(t),e=n?this.get(n):null,r=f(this.key,t,null,!0);return r?e?[].concat(e,r):r:e},t}(),l=function(t){var n={};return t.forEach(function(t){return n[t]=new p(t)}),n}(["didMount","unmount","didUpdate","model"]);l.lifecycle=l,t.exports=l},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(44),o=e(31);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){t.exports=!0},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(27);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){var r=e(7);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(30)("keys"),o=e(22);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(0),o=e(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(21)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){function r(t){var n=t.render;if(!n||n._override_)return n;var e=x(n),r=function(){var t,n=this.model;return this._run_||(m(this,"_observer_",new l(n)),m(this,"_trigger_",function(){return function(){this._mounted_&&this.forceUpdate()}}),m(this,"_run_",this._observer_.run(e,{context:this,trigger:this._trigger_,deep:w.get("deep",this)})),this.state=(0,p.default)({},this.state,{model:n})),(t=this._run_).run.apply(t,arguments)};return m(r,"_override_",!0),r}function o(t){t._run_&&t._observer_&&t._observer_.stop(t._run_),t._isNewModelInstance_&&t._observer_&&t._observer_.clearReference(),m(t,"_run_",null)}function i(t){var n=t.componentWillUnmount;return function(){for(var t=this,e=arguments.length,r=Array(e),i=0;idocument.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(c.prototype=r(t),e=new c,c.prototype=null,e[u]=t):e=a(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(6).f,o=e(8),i=e(15)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){n.f=e(15)},function(t,n,e){var r=e(2),o=e(0),i=e(21),u=e(37),c=e(6).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){t.exports={default:e(111),__esModule:!0}},function(t,n,e){"use strict";n.__esModule=!0;var r=e(9),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=o.default||function(t){for(var n=1;na;)r(c,e=n[a++])&&(~i(s,e)||s.push(e));return s}},function(t,n,e){var r=e(46);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(49);t.exports=function(){function t(t,n,e,o){var i=this;this.onGet=function(t){i.runing&&t&&i.dependencies&&(i.dependencies[t.path]=!0)},this.isDependent=function(t){if(!t)return!1;if(!i.dependencies||i.dependencies[t])return!0;if(!i.deep)return!1;var n=t.split(".");return n.pop(),i.isDependent(n.join("."))},this.onChange=function(t){if(!i.runing&&t&&i.isDependent(t.path)){if(i.isSync())return i.trigger.call(i.context);var n=r(i.trigger,i.context,!0);n&&n.catch(function(t){throw t})}},this.run=function(){for(var t,n=[],e=0;e1?n-1:0),r=1;r-1:!!e}],event:["onChange",function(t,n){var e=n.target,r=e.value,o=e.checked,i=t.getValue();if(i instanceof Array)if(o)i.push(r);else{var u=i.indexOf(r);i.splice(u,1)}else t.setValue(o)}]},p={prop:["checked",function(t,n){var e=t.getValue();return"boolean"==typeof e?!!e:e==n.value}],event:["onChange",function(t,n){var e=n.target,r=e.value,o=e.checked;"boolean"==typeof t.getValue()?t.setValue(o):o&&t.setValue(r)}]},l={input:function(t,n){switch(n.type){case"checkbox":return f;case"radio":return p;default:return s}},radio:p,checkbox:f,select:s,textarea:s};o.getOptions=r,o.bindable=o,t.exports=o},function(t,n){var e={component:null,intercepted:!1,binding:!1};e.owner=e,t.exports=e},function(t,n,e){t.exports={default:e(113),__esModule:!0}},function(t,n,e){function r(t){(0,i.default)(u,t)}var o=e(9),i=function(t){return t&&t.__esModule?t:{default:t}}(o),u={};t.exports={config:r,options:u}},function(t,n,e){function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(!t._stateful_){var n=function(n){function e(){return(0,a.default)(this,e),(0,f.default)(this,n.apply(this,arguments))}return(0,l.default)(e,n),e.prototype.render=function(){return t((0,u.default)({model:this.model},this.props),this.context)},e}(h.Component);t._stateful_=n}return t._stateful_}var i=e(40),u=r(i),c=e(25),a=r(c),s=e(54),f=r(s),p=e(61),l=r(p),h=e(14);o.stateful=o,t.exports=o},function(t,n,e){t.exports=e(68)},function(t,n,e){var r=e(40),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i=e(17),u=i.Observer,c=i.expression,a=i.nextTick,s=e(33),f=e(115),p=e(53),l=e(62),h=e(116),d=e(117),v=e(118),y=e(119),g=e(13),_=e(66),m=e(120),b=e(4),x=e(18),O=e(121),w=e(65),E=w.config,S=e(122),j=S.useModel;t.exports=(0,o.default)({connect:s,model:f,binding:p,bindable:l,watch:d,mapping:y,autorun:h,deep:v,stateful:_,composition:m,Observer:u,expression:c,nextTick:a,annotation:b,lifecycle:x,useModel:j,utils:g,config:E},O)},function(t,n,e){e(70),t.exports=e(0).Object.assign},function(t,n,e){var r=e(5);r(r.S+r.F,"Object",{assign:e(72)})},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){"use strict";var r=e(3),o=e(20),i=e(32),u=e(23),c=e(24),a=e(45),s=Object.assign;t.exports=!s||e(11)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=c(t),s=arguments.length,f=1,p=i.f,l=u.f;s>f;)for(var h,d=a(arguments[f++]),v=p?o(d).concat(p(d)):o(d),y=v.length,g=0;y>g;)h=v[g++],r&&!l.call(d,h)||(e[h]=d[h]);return e}:s},function(t,n,e){var r=e(12),o=e(74),i=e(75);t.exports=function(t){return function(n,e,u){var c,a=r(n),s=o(a.length),f=i(u,s);if(t&&e!=e){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){var r=e(28),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(28),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=this&&this.__extends||function(){var t=function(n,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(n,e)};return function(n,e){function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),o=e(1),i=o.isArray,u=o.isFunction,c=o.isNull,a=o.isObject,s=o.copy,f=o.final,p=o.each,l=e(78),h=e(48),d=e(50),v="_observer_",y=[/^\_(.*)\_$/,/^\_\_/,/^\$/],g=function(t){function n(n,e){var r=t.call(this)||this;if(c(n))throw new Error("Invalid target");e=e||{};var o=n[v];return o?(s(e,o.options),o.apply(),o):(f(r,"options",e),f(r,"shadow",{}),f(r,"target",n),f(r,"parents",[]),f(n,v,r),r.apply(),r)}return r(n,t),n.prototype.set=function(t,e){u(e)||n.isIgnore(t)||(Object.defineProperty(this.target,t,{get:function(){var n=this[v];return n.emitGet({name:t,value:e}),n.shadow[t]},set:function(e){var r=this[v],o=r.shadow[t];if(o!==e){if(a(e)){var i=new n(e);r.addChild(i,t)}o&&o[v]&&r.removeChild(o[v],t),r.shadow[t]=e,r.emitChange({name:t,value:e})}},configurable:!0,enumerable:!0}),this.target[t]=e)},n.prototype.apply=function(){i(this.target)&&this._wrapArray(this.target),this._getPropertyNames(this.target).forEach(function(t){"value"in Object.getOwnPropertyDescriptor(this.target,t)&&this.set(t,this.target[t])},this)},n.prototype.addChild=function(t,n){if(c(t)||c(n))throw new Error("Invalid paramaters");t.options.root||t.parents.push({parent:this,name:n})},n.prototype.removeChild=function(t,n){if(c(t))throw new Error("Invalid paramaters");var e=-1;t.parents.forEach(function(t,r){t.parent===this&&t.name===n&&(e=r)},this),e>-1&&t.parents.splice(e,1)},n.prototype.clearReference=function(){p(this.target,function(t,n){if(!c(n)){var e=n[v];e&&this.removeChild(e)}},this)},n.prototype.emitChange=function(t){t.path=t.name,this.dispatch("change",t)},n.prototype.emitGet=function(t){t.path=t.name,this.dispatch("get",t)},n.prototype.dispatch=function(t,n){n._src_!==this&&(n._src_=n._src_||this,n._layer_=n._layer_||0,n._layer_++>=10||(this.emit(t,n),!this.parents||this.parents.length<1||this.parents.forEach(function(e){if(!(e.name in e.parent.target))return e.parent.removeChild(this);var r=s(n);r.path=c(n.path)?e.name:e.name+"."+n.path,e.parent.dispatch(t,r)},this)))},n.prototype._getPropertyNames=function(){return(i(this.target)?this.target.map(function(t,n){return n}):Object.keys(this.target)).filter(function(t){return t!==v})},n.prototype._wrapArray=function(t){t._wrapped_||(f(t,"_wrapped_",!0),f(t,"push",function(){var n=[].slice.call(arguments),e=this[v];n.forEach(function(n){e.set(t.length,n)},this),e.emitChange({name:"length",value:this.length}),e.emitChange({value:this.length})}),f(t,"pop",function(){var t=[].pop.apply(this,arguments),n=this[v];return n.emitChange({name:this.length,value:t}),n.emitChange({name:"length",value:this.length}),n.emitChange({value:this.length}),t}),f(t,"unshift",function(){[].unshift.apply(this,arguments);var t=[].slice.call(arguments),n=this[v];t.forEach(function(t,e){n.set(e,t)},this),n.emitChange({name:"length",value:this.length}),n.emitChange({value:this.length})}),f(t,"shift",function(){var t=[].shift.apply(this,arguments),n=this[v];return n.emitChange({name:0,value:t}),n.emitChange({name:"length",value:this.length}),n.emitChange({value:this.length}),t}),f(t,"splice",function(){for(var t=arguments[0],n=c(arguments[1])?t+arguments[1]:this.length-1,e=this[v],r=[].splice.apply(this,arguments),o=t;o<=n;o++)e.emitChange({name:o,value:r[o-t]});return e.emitChange({name:"length",value:this.length}),e.emitChange({value:this.length}),r}),f(t,"set",function(t,n){var e=this[v];t>=this.length&&(e.emitChange({name:"length",value:this.length}),e.emitChange({value:this.length})),e.set(t,n)}))},n.prototype.run=function(t,n){n=n||{};var e=n.context,r=n.trigger,o=n.immed,i=n.deep;e=e||this.target;var u=new h(t,e,r,i);return this.on("get",u.onGet),this.on("change",u.onChange),o&&u.run(),u},n.prototype.stop=function(t){t&&(this.off("get",t.onGet),this.off("change",t.onChange))},n.prototype.watch=function(t,n,e){e=e||{};var r=e.context;r=r||this.target;var o=new d(t,n,r);return o.autoRef=this.run(o.calc,e),o},n.prototype.unWatch=function(t){t&&this.stop(t.autoRef)},n}(l);g.observe=function(t){return new g(t)},g.isIgnore=function(t){return y.some(function(n){return n.test(t)})},t.exports=g},function(t,n){t.exports=function(){}},function(t,n,e){(function(n){var r=e(1),o=r.final,i=r.isArray,u=r.copy,c=r.each,a=function(){function t(t){t=t||this;var n=t._emitter_;if(n)return n;o(this,"_target_",t),o(t,"_emitter_",this),this._isNative_=this._isNativeObject(this._target_),this._listeners_=this._listeners_||Object.create(null),this.on=this.$on=this.$addListener=this.addListener,this.off=this.$off=this.$removeListener=this.removeListener,this.$emit=this.emit}return t.prototype._isNativeObject=function(t){return t.addEventListener&&t.removeEventListener&&t.dispatchEvent},t.prototype.addListener=function(n,e,r){this._isNative_&&this._addNativeEventListener(n,e,r),this._listeners_[n]=this._listeners_[n]||[],this._listeners_[n].push(e);var o=t._maxListeners;this._listeners_[n].length>o&&console.warn("The '"+n+"' event listener is not more than "+o,this)},t.prototype.removeListener=function(t,n,e){if(t&&n){if(this._isNative_&&this._removeNativeEventListener(t,n,e),!this._listeners_[t])return;var r=this._listeners_[t].indexOf(n);r>-1&&this._listeners_[t].splice(r,1)}else t?(this._isNative_&&this._listeners_[t]&&this._listeners_[t].forEach(function(n){this.removeListener(t,n,e)},this),delete this._listeners_[t]):(c(this._listeners_,function(t){this.removeListener(t,null,e)},this),this._listeners_={})},t.prototype.emit=function(t,n,e,r){if(this._isNative_)return this._emitNativeEvent(t,n,e,r);var o=this._listeners_[t];if(o){var i=!1;return o.forEach(function(t){!1===t.call(this._target_,n)&&(i=!0)},this),i}},t.prototype.emitAsync=function(t,n,e,r){if(this._isNative_)return this._emitNativeEvent(t,n,e,r);var o=this._listeners_[t];if(o){var i=!1,u=o.slice(0);return new Promise(function(t,e){function r(n,r){return r?e(r):(!1===n&&(i=!0),u.length>0?o():t(i))}function o(){var t=u.shift(),e=t.call(this._target_,n);return e&&e.then?e.then(r):r(e)}o()})}},t.prototype.emitParallel=function(t,n,e,r){var o=this;if(this._isNative_)return this._emitNativeEvent(t,n,e,r);var i=this._listeners_[t];if(i){var u=!1,c=0;return new Promise(function(t,e){function r(n,r){if(r)return e(r);!1===n&&(u=!0),++c>=i.length&&t(u)}i.forEach(function(t){var e=t.call(this._target_,n);return e&&e.then?e.then(r):r(e)},o)})}},t.prototype._addNativeEventListener=function(n,e,r){this._target_.addEventListener(n,e,r);var o=t._events[n];o&&(o.addListener=o.addListener||o.on,o.addListener(this,n,e,r))},t.prototype._removeNativeEventListener=function(n,e,r){this._target_.removeEventListener(n,e,r);var o=t._events[n];o&&(o.removeListener=o.removeListener||o.off,o.removeListener(this,n,e,r))},t.prototype._emitNativeEvent=function(t,e,r,o){if(n.document){var i=n.document.createEvent("HTMLEvents");return i.initEvent(t,r,o),u(e,i,["data"]),i.data=e,this._target_.dispatchEvent(i)}},t}();a._maxListeners=1024,a._events=[],a.register=function(t){var n=t.name;n&&(i(n)||(n=n.split(",")),n.forEach(function(n){this._events[n]=t},this))},t.exports=a}).call(n,e(47))},function(t,n){function e(t){t="("+t+")",c.lastIndex=0;for(var n,e={};n=c.exec(t);){var r=n[2];a.test(r)&&!s.test(r)&&(e[r]=!0)}return Object.keys(e)}function r(t,n){var e=t[n];return e instanceof Function?e.bind(t):e}function o(t){function n(t){var n=i.map(function(n){return r(t,n)});return u.apply(void 0,[t].concat(n))}var o=p[t];if(o)return o;var i=e(t),u=new(Function.bind.apply(Function,[void 0,"$scope"].concat(i,["return("+t+")"])));return p[t]=n,n}function i(t){function n(t){var n="";return r.forEach(function(e){n+=e instanceof Function?e(t):e}),n}var e=l[t];if(e)return e;for(var r=t.split(f),i=1;i|\<|\=|\!|\,|\;|\?|\:|\&|\|)\s*([a-z\_0-9\$]+)/gi,a=/^[a-z\$\_]/i,s=/^(\$scope|true|false|null|undefined|Date|Number|String|Object|Boolean|Array|RegExp|Math|JSON|parseInt|parseFloat|isNaN|isFinite)$/,f=/\{\{([\s\S]+?)\}\}/,p={},l={};u.expression=o,u.template=i,t.exports=u},function(t,n,e){t.exports={default:e(81),__esModule:!0}},function(t,n,e){e(82);var r=e(0).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){var r=e(5);r(r.S+r.F*!e(3),"Object",{defineProperty:e(6).f})},function(t,n,e){function r(t){m.component=t,m.intercepted=!1;var n=v("binding",t);f(n)&&(n=g.binding),m.binding=n}function o(){m.component=null,m.intercepted=!1,m.binding=!1}function i(t){return function(){r(this);for(var n=arguments.length,e=Array(n),i=0;i2?e-2:0),o=2;o=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(28),o=e(27);t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),a=r(e),s=c.length;return a<0||a>=s?t?"":void 0:(i=c.charCodeAt(a),i<55296||i>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},function(t,n,e){"use strict";var r=e(35),o=e(19),i=e(36),u={};e(10)(u,e(15)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(6),o=e(16),i=e(20);t.exports=e(3)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),c=u.length,a=0;c>a;)r.f(t,e=u[a++],n[e]);return t}},function(t,n,e){var r=e(2).document;t.exports=r&&r.documentElement},function(t,n,e){e(94);for(var r=e(2),o=e(10),i=e(34),u=e(15)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){t.exports={default:e(98),__esModule:!0}},function(t,n,e){e(99),e(104),e(105),e(106),t.exports=e(0).Symbol},function(t,n,e){"use strict";var r=e(2),o=e(8),i=e(3),u=e(5),c=e(57),a=e(100).KEY,s=e(11),f=e(30),p=e(36),l=e(22),h=e(15),d=e(37),v=e(38),y=e(101),g=e(102),_=e(16),m=e(7),b=e(24),x=e(12),O=e(26),w=e(19),E=e(35),S=e(103),j=e(60),M=e(32),P=e(6),C=e(20),L=j.f,A=P.f,N=S.f,F=r.Symbol,T=r.JSON,k=T&&T.stringify,D=h("_hidden"),I=h("toPrimitive"),R={}.propertyIsEnumerable,$=f("symbol-registry"),G=f("symbols"),V=f("op-symbols"),U=Object.prototype,B="function"==typeof F&&!!M.f,W=r.QObject,z=!W||!W.prototype||!W.prototype.findChild,H=i&&s(function(){return 7!=E(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=L(U,n);r&&delete U[n],A(t,n,e),r&&t!==U&&A(U,n,r)}:A,q=function(t){var n=G[t]=E(F.prototype);return n._k=t,n},J=B&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},K=function(t,n,e){return t===U&&K(V,n,e),_(t),n=O(n,!0),_(e),o(G,n)?(e.enumerable?(o(t,D)&&t[D][n]&&(t[D][n]=!1),e=E(e,{enumerable:w(0,!1)})):(o(t,D)||A(t,D,w(1,{})),t[D][n]=!0),H(t,n,e)):A(t,n,e)},Y=function(t,n){_(t);for(var e,r=y(n=x(n)),o=0,i=r.length;i>o;)K(t,e=r[o++],n[e]);return t},Q=function(t,n){return void 0===n?E(t):Y(E(t),n)},Z=function(t){var n=R.call(this,t=O(t,!0));return!(this===U&&o(G,t)&&!o(V,t))&&(!(n||!o(this,t)||!o(G,t)||o(this,D)&&this[D][t])||n)},X=function(t,n){if(t=x(t),n=O(n,!0),t!==U||!o(G,n)||o(V,n)){var e=L(t,n);return!e||!o(G,n)||o(t,D)&&t[D][n]||(e.enumerable=!0),e}},tt=function(t){for(var n,e=N(x(t)),r=[],i=0;e.length>i;)o(G,n=e[i++])||n==D||n==a||r.push(n);return r},nt=function(t){for(var n,e=t===U,r=N(e?V:x(t)),i=[],u=0;r.length>u;)!o(G,n=r[u++])||e&&!o(U,n)||i.push(G[n]);return i};B||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),n=function(e){this===U&&n.call(V,e),o(this,D)&&o(this[D],t)&&(this[D][t]=!1),H(this,t,w(1,e))};return i&&z&&H(U,t,{configurable:!0,set:n}),q(t)},c(F.prototype,"toString",function(){return this._k}),j.f=X,P.f=K,e(59).f=S.f=tt,e(23).f=Z,M.f=nt,i&&!e(21)&&c(U,"propertyIsEnumerable",Z,!0),d.f=function(t){return q(h(t))}),u(u.G+u.W+u.F*!B,{Symbol:F});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)h(et[rt++]);for(var ot=C(h.store),it=0;ot.length>it;)v(ot[it++]);u(u.S+u.F*!B,"Symbol",{for:function(t){return o($,t+="")?$[t]:$[t]=F(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var n in $)if($[n]===t)return n},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!B,"Object",{create:Q,defineProperty:K,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:tt,getOwnPropertySymbols:nt});var ut=s(function(){M.f(1)});u(u.S+u.F*ut,"Object",{getOwnPropertySymbols:function(t){return M.f(b(t))}}),T&&u(u.S+u.F*(!B||s(function(){var t=F();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(m(n)||void 0!==t)&&!J(t))return g(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!J(n))return n}),r[1]=n,k.apply(T,r)}}),F.prototype[I]||e(10)(F.prototype,I,F.prototype.valueOf),p(F,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,n,e){var r=e(22)("meta"),o=e(7),i=e(8),u=e(6).f,c=0,a=Object.isExtensible||function(){return!0},s=!e(11)(function(){return a(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},p=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!a(t))return"F";if(!n)return"E";f(t)}return t[r].i},l=function(t,n){if(!i(t,r)){if(!a(t))return!0;if(!n)return!1;f(t)}return t[r].w},h=function(t){return s&&d.NEED&&a(t)&&!i(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:p,getWeak:l,onFreeze:h}},function(t,n,e){var r=e(20),o=e(32),i=e(23);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,c=e(t),a=i.f,s=0;c.length>s;)a.call(t,u=c[s++])&&n.push(u);return n}},function(t,n,e){var r=e(46);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(12),o=e(59).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,n){},function(t,n,e){e(38)("asyncIterator")},function(t,n,e){e(38)("observable")},function(t,n,e){t.exports={default:e(108),__esModule:!0}},function(t,n,e){e(109),t.exports=e(0).Object.setPrototypeOf},function(t,n,e){var r=e(5);r(r.S,"Object",{setPrototypeOf:e(110).set})},function(t,n,e){var r=e(7),o=e(16),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(41)(Function.call,e(60).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n,e){e(112);var r=e(0).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){var r=e(5);r(r.S,"Object",{create:e(35)})},function(t,n,e){e(114),t.exports=e(0).Object.getPrototypeOf},function(t,n,e){var r=e(24),o=e(58);e(52)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(33),o=e(14);t.exports=function(t){return t&&t.prototype instanceof o.Component?r(null,t):function(n){return r(t,n)}}},function(t,n,e){function r(t,n){if(!t||!n)return r;if(!u("autorun",t,n)){var e=void 0;o.didMount.add(t,function(){var t=this;if(t._observer_){var r=u("deep",t,n);e=t._observer_.run(t[n],{context:t,deep:r}),e.run()}}),o.unmount.add(t,function(){this._observer_.stop(e)}),c("autorun",!0,t,n)}}var o=e(18),i=e(4),u=i.get,c=i.set;t.exports=r},function(t,n,e){function r(t,n){if(!i(t))throw new Error("Watch needs to specify a calculation function");return function(e,r){var o=void 0;u.didMount.add(e,function(){var e=this;if(e._observer_){var i=a("deep",e,r);o=e._observer_.watch(function(){return t.call(e,e.model)},e[r],{context:e,deep:i}),o.autoRef.run(n||!1)}}),u.unmount.add(e,function(){this._observer_.unWatch(o)}),s("watch",!0,e,r)}}var o=e(1),i=o.isFunction,u=e(18),c=e(4),a=c.get,s=c.set;t.exports=r},function(t,n,e){function r(t,n){if(!t)return r;if(n?i("autorun",t,n)||i("watch",t,n):t&&t.prototype&&t.prototype._contented_)throw new Error("`deep` must be enabled before `model/autorun/watch`");u("deep",!0,t,n)}var o=e(4),i=o.get,u=o.set;t.exports=r},function(t,n,e){function r(t){function n(n,e,r){u(t,function(t,o){c(t)||(t=o);var i=a(e,t);a(n,o)===i||r&&a(r,t)===i||s(n,o,i)})}if(!i(t))throw new Error("Mapping needs to specify a object or array");return function(t){if(!t)throw new Error("Invaild Component");var e=t.prototype;if(e._contented_)throw new Error("`mapping` must be enabled before `model`");f.model.add(e,function(){n(this.model,this.props)}),f.didUpdate.add(e,function(t){n(this.model,this.props,t)})}}var o=e(1),i=o.isObject,u=o.each,c=o.isString,a=o.getByPath,s=o.setByPath,f=e(18);t.exports=r},function(t,n,e){(function(n){var r=e(25),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i=e(17),u=i.AutoRun,c=function(){function t(){var n=this;(0,o.default)(this,t),this.composing=!1,this.inputting=!1,this.onUpdate=function(){n.composing=!0},this.onEnd=function(){n.composing=!1},this.onInput=function(){n.inputting=!0,n.inputTimer&&clearTimeout(n.inputTimer),n.inputTimer=setTimeout(function(){n.inputting=!1,n.inputTimer=null},0)},this.enable()}return t.prototype.on=function(t,e){n.document&&n.document.addEventListener(t,e,!0)},t.prototype.off=function(t,e){n.document&&n.document.removeEventListener(t,e,!0)},t.prototype.enable=function(){this.on("compositionupdate",this.onUpdate),this.on("compositionend",this.onEnd),this.on("input",this.onInput)},t.prototype.disable=function(){this.off("compositionupdate",this.onUpdate),this.off("compositionend",this.onEnd)},t}(),a=new c;u.prototype.isSync=function(){return!n.document||a.composing||a.inputting},t.exports=a}).call(n,e(47))},function(t,n){t.exports={name:"mota",version:"3.3.2"}},function(t,n,e){function r(t){!m.state||m.buffer.indexOf(t.path)>-1||m.buffer.push(this.id+"."+t.path)}function o(t){if(m.state){var n;m.state[2].length=0,(n=m.state[2]).push.apply(n,m.buffer)}return m.buffer=[],m.state=t,t}function i(t,n){return!!t&&(y(t)?t(n):t.indexOf&&t.indexOf(n)>-1)}function u(t,n){function e(t){var e=a[2],r=this.id+"."+t.path;(e.indexOf(r)>-1||i(n,t.path))&&p([].concat(a))}function u(){v.off("change",e),h&&v.clearReference()}var c=l([]),a=c[0],p=c[1];if(a.length>0)return o(a);var h=t instanceof Function,d=h?new t:t,v=new f(_(d));return v.id||(v.id="_observer_"+m.uuid++),(0,s.default)(a,[d,u,[]]),v.off("get",r),v.on("get",r),v.on("change",e),o(a)}function c(t,n,e){var r=u(t,n),i=r[0],c=r[1],a=r[2];return h(function(){return c},[]),d(function(){return o()}),e&&e({model:i,deps:a}),i}var a=e(9),s=function(t){return t&&t.__esModule?t:{default:t}}(a),f=e(17),p=e(14),l=p.useState,h=p.useEffect,d=p.useLayoutEffect,v=e(1),y=v.isFunction,g=e(13),_=g.getModelState,m={buffer:[],state:null,uuid:0};t.exports={useModel:c}}])}); +!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define("mota",["react"],n):"object"==typeof exports?exports.mota=n(require("react")):t.mota=n(t.React)}("undefined"!=typeof self?self:this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var e={};return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get: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,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=67)}([function(t,n){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)},function(t,n,e){"use strict";function r(){}function o(t){return Object.prototype.toString.call(t)}function i(t){return/^\[object (.+)\]$/i.exec(o(t))[1]}function u(t){return void 0===t||null===t}function c(t){return u(t)?t:t.trim?t.trim():t.replace(/(^[\\s]*)|([\\s]*$)/g,"")}function a(t,n,e){return u(t)?t:t.replace(new RegExp(n,"g"),e)}function s(t,n){return!u(t)&&!u(n)&&0===t.indexOf(n)}function f(t,n){return!u(t)&&!u(n)&&t.indexOf(n)>-1}function p(t,n){return!u(t)&&!u(n)&&t.indexOf(n)===t.length-n.length}function l(t,n){return!u(t)&&!u(n)&&(n in t||t.hasOwnProperty(n))}function h(t){return!u(t)&&"function"==typeof t}function d(t){return!u(t)&&"AsyncFunction"===i(t)}function v(t){return!u(t)&&"GeneratorFunction"===i(t)}function y(t){return!u(t)&&"String"===i(t)}function g(t){return!u(t)&&"Number"===i(t)}function _(t){return!u(t)&&"Boolean"===i(t)}function m(t){return!u(t)&&(window.Element?t instanceof Element:t.tagName&&t.nodeType&&t.nodeName&&t.attributes&&t.ownerDocument)}function b(t){return!u(t)&&t instanceof Text}function x(t){if(u(t))return!1;var n=i(t);return"Object"===n||"Array"===n}function O(t){if(u(t))return!1;var n="Array"===i(t),e=t instanceof Array,r=!y(t)&&g(t.length)&&h(t.splice),o=!y(t)&&g(t.length)&&t[0];return n||e||r||o}function w(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function E(t){return!u(t)&&t instanceof Date}function S(t){return t instanceof RegExp}function j(t){return u(t)?[]:Array.prototype.slice.call(t)}function M(t){return g(t)?new Date(t):E(t)?t:h(t)?new Date(t()):H(t)?new Date(q(t)()):y(t)?new Date(a(a(t,"-","/"),"T"," ")):null}function P(t,n,e){if(!u(t)&&!u(n))if(O(t))for(var r=t.length,o=0;o-1))if(delete n[r],Object.getOwnPropertyDescriptor)try{Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))}catch(e){n[r]=t[r]}else n[r]=t[r]}),n}function A(t,n){if(u(t)||y(t)||g(t)||_(t)||E(t))return t;if(w(t))return t.slice();var e=t;try{e=new t.constructor}catch(t){}return P(t,function(t,r){e[t]==r||f(n,t)||(x(r)?e[t]=A(r,n):e[t]=r)}),["toString","valueOf"].forEach(function(r){f(n,r)||F(e,r,t[r])}),e}function N(t,n,e,r,o){if(r)switch(r){case 1:return N(t.prototype,n.prototype,e,0);case 2:N(t.prototype,n.prototype,e,0);break;case 3:return N(t,n.prototype,e,0);case 4:return N(t.prototype,n,e,0)}return n=n||{},t=t||(O(n)?[]:{}),T(n).forEach(function(r){f(e,r)||o&&u(n[r])||(!x(n[r])||n[r].constructor!=Object&&n[r].constructor!=Array&&null!=n[r].constructor?t[r]=n[r]:t[r]=N(t[r],n[r],e,0,o))}),t}function F(t,n,e){if(arguments.length<1)throw new Error("Parameter missing");if(arguments.length<2)return P(t,function(n,e){F(t,n,e)});if(arguments.length<3)return F(t,n,t[n]);try{Object.defineProperty(t,n,{get:function(){return e},set:function(){throw new Error("Cannot assign to final property:"+n)},enumerable:!1,configurable:!1})}catch(r){t[n]=e}}function T(t){if(Object.keys)return Object.keys(t);var n=[];return P(t,function(t){n.push(t)}),n}function k(t,n){function e(){}if(Object.create)return Object.create(t,n);e.prototype=t;var r=new e;return n&&L(n,r),r}function D(t,n){if(Object.setPrototypeOf)return Object.setPrototypeOf(t,n||k(null));"__proto__"in Object||L(n,t),t.__proto__=n}function I(t){return t.__proto__?t.__proto__:Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor?t.constructor.prototype:void 0}function R(t,n){if(t===n)return!0;if(!x(t)||!x(n))return!1;var e=T(t),r=T(n);if(e.length!==r.length)return!1;var o=e.concat(r),i=k(null),u=!0;return P(o,function(e,r){i[r]||(R(t[r],n[r])||(u=!1),i[r]=!0)}),u}function $(t,n,e,r){if(r||(r=[e,e=r][0]),e=Math.abs(e||1),t=n;o-=e)r(o)}function G(){function t(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}function V(t,n){var e=O(t)?[]:{};return P(t,function(t,r){e[t]=n(t,r)}),e}function W(t,n,e){u(t)||u(n)||""===n||(O(n)||(n=n.replace(/\[/,".").replace(/\]/,".").split(".")),P(n,function(r,o){u(o)||o.length<1||(r===n.length-1?t[o]=e:(t[o]=t[o]||{},t=t[o]))}))}function U(t,n,e){return u(t)||u(n)||""===n?t:(O(n)||(n=n.replace(/\[/,".").replace(/\]/,".").split(".")),P(n,function(n,r){u(t)||u(r)||r.length<1||(t=e?e(t[r],r,t):t[r])}),t)}function B(t){if(u(t))return t;var n=[];return P(t,function(t,e){n.indexOf(e)>-1||n.push(e)}),n}function z(t){if(!t)return[];var n=t.toString(),e=n.split(")")[0].split("=>")[0].split("(");return(e[1]||e[0]).split(",").map(function(t){return c(t)}).filter(function(t){return"function"!=t})}function H(t){return nt.test(t)}function q(t){var n=nt.exec(t);if(n&&!(n.length<3)){var e=n[1].split(",").filter(function(t){return!!t}).map(function(t){return t.trim()}),r=n[2];return new(Function.bind.apply(Function,[void 0].concat(e,[r])))}}function J(t,n){if(!t)return t;n=n||40;var e=t.length,r=n/2;return e>n?t.substr(0,r)+"..."+t.substr(e-r):t}function K(t){return y(t)?t.substring(0,1).toUpperCase()+t.substring(1):""}function Y(t){return y(t)?t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"):""}function Q(t,n){return y(t)?(t&&(t=t.replace(/\-[a-z0-9]/g,function(t){return t.slice(1).toUpperCase()}),t=t.replace(/^[a-z]/i,function(t){return n?t.toUpperCase():t.toLowerCase()})),t):""}function Z(t){return y(t)?(t&&(t=t.replace(/([A-Z])/g,"-$1"),"-"==t[0]&&(t=t.slice(1))),t.toLowerCase()):""}function X(t){var n=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;return t.replace(n,"<$1>")}function tt(t){t=t||" ";var n=document.createElement("div");n.innerHTML=X(c(t));var e=j(n.childNodes);return P(e,function(t,e){n.removeChild(e)}),e}Object.defineProperty(n,"__esModule",{value:!0}),n.noop=r,n.toString=o,n.getType=i,n.isNull=u,n.trim=c,n.replace=a,n.startWith=s,n.contains=f,n.endWith=p,n.has=l,n.hasProperty=l,n.isFunction=h,n.isAsyncFunction=d,n.isGeneratorFunction=v,n.isString=y,n.isNumber=g,n.isBoolean=_,n.isElement=m,n.isText=b,n.isObject=x,n.isArray=O,n.isTypedArray=w,n.isDate=E,n.isRegexp=S,n.toArray=j,n.toDate=M,n.each=P,n.formatDate=C,n.copy=L,n.clone=A,n.mix=N,n.final=F,n.keys=T,n.create=k,n.setPrototypeOf=D,n.getPrototypeOf=I,n.deepEqual=R,n.fromTo=$,n.newGuid=G,n.map=V,n.setByPath=W,n.getByPath=U,n.unique=B,n.getFunctionArgumentNames=z;var nt=/^function\s*\(([\s\S]*?)\)\s*\{([\s\S]*?)\}$/i;n.isFunctionString=H,n.toFunction=q,n.short=J,n.firstUpper=K,n.escapeRegExp=Y,n.toCamelCase=Q,n.toSplitCase=Z,n.htmlPrefilter=X,n.parseHTML=tt,e(77)([117,95,111,28,107,55,96,100,102,88,86,96,33,98,99,95,82,83,96,95,38,90,15,14,87,20,85,80,68,86,71,79,81,75,254,25,253,62,58,74,78,63,67,246,249,248,65,254,50,69,49,244,244,248,50,54,43,43,61,19,41,234,227,46,36,56,37,29,221,227,247,229,232,220,219,36,225,23,41,25,35,214,214])},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n,e){t.exports=!e(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,n,e){function r(t){return t&&t.__esModule?t:{default:t}}function o(t,n,e){if(!t)return{};if(t=t.prototype||t,!_(t,b,e))return{};var r=t[b];return n?_(r,n,e)?r[n]:{}:r}function i(t,n){if(!t)throw new Error("Invalid annotation target");t=t.prototype||t;var e=o((0,d.default)(t));_(t,b)||m(t,b,(0,l.default)(e));var r=t[b];return n?(_(r,n)||(r[n]=(0,l.default)(o(e[n]))),r[n]):r}function u(t){return":"+t}function c(t,n,e,r){if(!t)return null;t=u(t);var i=o(n,e,r||!1);return i&&i[t]}function a(t,n,e,r){return t&&n?(t=u(t),i(e,r)[t]=n,n):null}function s(t,n,e,r){var o=c(t,e,r,!0);if(o&&!y(o))throw new Error("Invaild Array");return o||(o=a(t,[],e,r)),o.push(n),o}function f(t,n){return function(e,r){a(t,n,e,r)}}var p=e(39),l=r(p),h=e(64),d=r(h),v=e(1),y=v.isArray,g=e(13),_=g.has,m=g.defineGetter,b="_annotations_";f.set=a,f.push=s,f.get=c,f.getAll=o,f.annotation=f,t.exports=f},function(t,n,e){var r=e(2),o=e(0),i=e(41),u=e(10),c=e(8),a=function(t,n,e){var s,f,p,l=t&a.F,h=t&a.G,d=t&a.S,v=t&a.P,y=t&a.B,g=t&a.W,_=h?o:o[n]||(o[n]={}),m=_.prototype,b=h?r:d?r[n]:(r[n]||{}).prototype;h&&(e=n);for(s in e)(f=!l&&b&&void 0!==b[s])&&c(_,s)||(p=f?b[s]:e[s],_[s]=h&&"function"!=typeof b[s]?e[s]:y&&f?i(p,r):g&&b[s]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(p):v&&"function"==typeof p?i(Function.call,p):p,v&&((_.virtual||(_.virtual={}))[s]=p,t&a.R&&m&&!m[s]&&u(m,s,p)))};a.F=1,a.G=2,a.S=4,a.P=8,a.B=16,a.W=32,a.U=64,a.R=128,t.exports=a},function(t,n,e){var r=e(16),o=e(42),i=e(26),u=Object.defineProperty;n.f=e(3)?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){t.exports={default:e(69),__esModule:!0}},function(t,n,e){var r=e(6),o=e(19);t.exports=e(3)?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(45),o=e(27);t.exports=function(t){return r(o(t))}},function(t,n,e){function r(t){return!(!t||!v(t))&&(t instanceof l||t instanceof h||"render"in t&&"__reactAutoBindPairs"in t)}function o(t){return!!t&&r(t.prototype)}function i(t,n,e){return!1===e?!(!t||!t[n]):t&&t.hasOwnProperty(n)}function u(t,n,e){var r=y(e)?e:function(){return e};(0,f.default)(t,n,{configurable:!0,enumerable:!1,get:r})}function c(t){if(t)return t.__esModule||"[object Module]"===Object.prototype.toString.call(t)}function a(t){if(!c(t))return t;if(t.state)return t.state;throw new Error("When using ES module as a model, the module must export 'state'")}var s=e(80),f=function(t){return t&&t.__esModule?t:{default:t}}(s),p=e(14),l=p.Component,h=p.PureComponent,d=e(1),v=d.isObject,y=d.isFunction;t.exports={isComponentClass:o,isComponentInstance:r,has:i,defineGetter:u,isESModule:c,getModelState:a}},function(n,e){n.exports=t},function(t,n,e){var r=e(30)("wks"),o=e(22),i=e(2).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,n,e){var r=e(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){var r=e(76),o=e(48),i=e(50),u=e(79),c=e(49);r.AutoRun=o,r.Watcher=i,r.expression=u,r.nextTick=c,r.Observer=r,t.exports=r},function(t,n,e){function r(t){return t&&t.__esModule?t:{default:t}}var o=e(64),i=r(o),u=e(25),c=r(u),a=e(4),s=a.push,f=a.get,p=function(){function t(n){(0,c.default)(this,t),this.key=n+":handlers"}return t.prototype.add=function(t,n){s(this.key,n,t)},t.prototype.get=function(t){var n=(0,i.default)(t),e=n?this.get(n):null,r=f(this.key,t,null,!0);return r?e?[].concat(e,r):r:e},t}(),l=function(t){var n={};return t.forEach(function(t){return n[t]=new p(t)}),n}(["didMount","unmount","didUpdate","model"]);l.lifecycle=l,t.exports=l},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n,e){var r=e(44),o=e(31);t.exports=Object.keys||function(t){return r(t,o)}},function(t,n){t.exports=!0},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(27);t.exports=function(t){return Object(r(t))}},function(t,n,e){"use strict";n.__esModule=!0,n.default=function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}},function(t,n,e){var r=e(7);t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},function(t,n,e){var r=e(30)("keys"),o=e(22);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,n,e){var r=e(0),o=e(2),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,n){return i[t]||(i[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(21)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){function r(t){var n=t.render;if(!n||n._override_)return n;var e=x(n),r=function(){var t,n=this.model;return this._run_||(m(this,"_observer_",new l(n)),m(this,"_trigger_",function(){return function(){this._mounted_&&this.forceUpdate()}}),m(this,"_run_",this._observer_.run(e,{context:this,trigger:this._trigger_,deep:w.get("deep",this)})),this.state=(0,p.default)({},this.state,{model:n})),(t=this._run_).run.apply(t,arguments)};return m(r,"_override_",!0),r}function o(t){t._run_&&t._observer_&&t._observer_.stop(t._run_),t._isNewModelInstance_&&t._observer_&&t._observer_.clearReference(),m(t,"_run_",null)}function i(t){var n=t.componentWillUnmount;return function(){for(var t=this,e=arguments.length,r=Array(e),i=0;idocument.F=Object<\/script>"),t.close(),a=t.F;r--;)delete a.prototype[i[r]];return a()};t.exports=Object.create||function(t,n){var e;return null!==t?(c.prototype=r(t),e=new c,c.prototype=null,e[u]=t):e=a(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(6).f,o=e(8),i=e(15)("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},function(t,n,e){n.f=e(15)},function(t,n,e){var r=e(2),o=e(0),i=e(21),u=e(37),c=e(6).f;t.exports=function(t){var n=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||c(n,t,{value:u.f(t)})}},function(t,n,e){t.exports={default:e(111),__esModule:!0}},function(t,n,e){"use strict";n.__esModule=!0;var r=e(9),o=function(t){return t&&t.__esModule?t:{default:t}}(r);n.default=o.default||function(t){for(var n=1;na;)r(c,e=n[a++])&&(~i(s,e)||s.push(e));return s}},function(t,n,e){var r=e(46);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){var r=e(49);t.exports=function(){function t(t,n,e,o){var i=this;this.onGet=function(t){i.runing&&t&&i.dependencies&&(i.dependencies[t.path]=!0)},this.isDependent=function(t){if(!t)return!1;if(!i.dependencies||i.dependencies[t])return!0;if(!i.deep)return!1;var n=t.split(".");return n.pop(),i.isDependent(n.join("."))},this.onChange=function(t){if(!i.runing&&t&&i.isDependent(t.path)){if(i.isSync())return i.trigger.call(i.context);var n=r(i.trigger,i.context,!0);n&&n.catch(function(t){throw t})}},this.run=function(){for(var t,n=[],e=0;e1?n-1:0),r=1;r-1:!!e}],event:["onChange",function(t,n){var e=n.target,r=e.value,o=e.checked,i=t.getValue();if(i instanceof Array)if(o)i.push(r);else{var u=i.indexOf(r);i.splice(u,1)}else t.setValue(o)}]},p={prop:["checked",function(t,n){var e=t.getValue();return"boolean"==typeof e?!!e:e==n.value}],event:["onChange",function(t,n){var e=n.target,r=e.value,o=e.checked;"boolean"==typeof t.getValue()?t.setValue(o):o&&t.setValue(r)}]},l={input:function(t,n){switch(n.type){case"checkbox":return f;case"radio":return p;default:return s}},radio:p,checkbox:f,select:s,textarea:s};o.getOptions=r,o.bindable=o,t.exports=o},function(t,n){var e={component:null,intercepted:!1,binding:!1};e.owner=e,t.exports=e},function(t,n,e){t.exports={default:e(113),__esModule:!0}},function(t,n,e){function r(t){(0,i.default)(u,t)}var o=e(9),i=function(t){return t&&t.__esModule?t:{default:t}}(o),u={};t.exports={config:r,options:u}},function(t,n,e){function r(t){return t&&t.__esModule?t:{default:t}}function o(t){if(!t._stateful_){var n=function(n){function e(){return(0,a.default)(this,e),(0,f.default)(this,n.apply(this,arguments))}return(0,l.default)(e,n),e.prototype.render=function(){return t((0,u.default)({model:this.model},this.props),this.context)},e}(h.Component);t._stateful_=n}return t._stateful_}var i=e(40),u=r(i),c=e(25),a=r(c),s=e(54),f=r(s),p=e(61),l=r(p),h=e(14);o.stateful=o,t.exports=o},function(t,n,e){t.exports=e(68)},function(t,n,e){var r=e(40),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i=e(17),u=i.Observer,c=i.expression,a=i.nextTick,s=e(33),f=e(115),p=e(53),l=e(62),h=e(116),d=e(117),v=e(118),y=e(119),g=e(13),_=e(66),m=e(120),b=e(4),x=e(18),O=e(121),w=e(65),E=w.config,S=e(122),j=S.useModel;t.exports=(0,o.default)({connect:s,model:f,binding:p,bindable:l,watch:d,mapping:y,autorun:h,deep:v,stateful:_,composition:m,Observer:u,expression:c,nextTick:a,annotation:b,lifecycle:x,useModel:j,utils:g,config:E},O)},function(t,n,e){e(70),t.exports=e(0).Object.assign},function(t,n,e){var r=e(5);r(r.S+r.F,"Object",{assign:e(72)})},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){"use strict";var r=e(3),o=e(20),i=e(32),u=e(23),c=e(24),a=e(45),s=Object.assign;t.exports=!s||e(11)(function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach(function(t){n[t]=t}),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r})?function(t,n){for(var e=c(t),s=arguments.length,f=1,p=i.f,l=u.f;s>f;)for(var h,d=a(arguments[f++]),v=p?o(d).concat(p(d)):o(d),y=v.length,g=0;y>g;)h=v[g++],r&&!l.call(d,h)||(e[h]=d[h]);return e}:s},function(t,n,e){var r=e(12),o=e(74),i=e(75);t.exports=function(t){return function(n,e,u){var c,a=r(n),s=o(a.length),f=i(u,s);if(t&&e!=e){for(;s>f;)if((c=a[f++])!=c)return!0}else for(;s>f;f++)if((t||f in a)&&a[f]===e)return t||f||0;return!t&&-1}}},function(t,n,e){var r=e(28),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,n,e){var r=e(28),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},function(t,n,e){var r=this&&this.__extends||function(){var t=function(n,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(n,e)};return function(n,e){function r(){this.constructor=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}}(),o=e(1),i=o.isArray,u=o.isFunction,c=o.isNull,a=o.isObject,s=o.copy,f=o.final,p=o.each,l=e(78),h=e(48),d=e(50),v="_observer_",y=[/^\_(.*)\_$/,/^\_\_/,/^\$/],g=function(t){function n(n,e){var r=t.call(this)||this;if(c(n))throw new Error("Invalid target");e=e||{};var o=n[v];return o?(s(e,o.options),o.apply(),o):(f(r,"options",e),f(r,"shadow",{}),f(r,"target",n),f(r,"parents",[]),f(n,v,r),r.apply(),r)}return r(n,t),n.prototype.set=function(t,e){u(e)||n.isIgnore(t)||(Object.defineProperty(this.target,t,{get:function(){var n=this[v];return n.emitGet({name:t,value:e}),n.shadow[t]},set:function(e){var r=this[v],o=r.shadow[t];if(o!==e){if(a(e)){var i=new n(e);r.addChild(i,t)}o&&o[v]&&r.removeChild(o[v],t),r.shadow[t]=e,r.emitChange({name:t,value:e})}},configurable:!0,enumerable:!0}),this.target[t]=e)},n.prototype.apply=function(){i(this.target)&&this._wrapArray(this.target),this._getPropertyNames(this.target).forEach(function(t){"value"in Object.getOwnPropertyDescriptor(this.target,t)&&this.set(t,this.target[t])},this)},n.prototype.addChild=function(t,n){if(c(t)||c(n))throw new Error("Invalid paramaters");t.options.root||t.parents.push({parent:this,name:n})},n.prototype.removeChild=function(t,n){if(c(t))throw new Error("Invalid paramaters");var e=-1;t.parents.forEach(function(t,r){t.parent===this&&t.name===n&&(e=r)},this),e>-1&&t.parents.splice(e,1)},n.prototype.clearReference=function(){p(this.target,function(t,n){if(!c(n)){var e=n[v];e&&this.removeChild(e)}},this)},n.prototype.emitChange=function(t){t.path=t.name,this.dispatch("change",t)},n.prototype.emitGet=function(t){t.path=t.name,this.dispatch("get",t)},n.prototype.dispatch=function(t,n){n._src_!==this&&(n._src_=n._src_||this,n._layer_=n._layer_||0,n._layer_++>=10||(this.emit(t,n),!this.parents||this.parents.length<1||this.parents.forEach(function(e){if(!(e.name in e.parent.target))return e.parent.removeChild(this);var r=s(n);r.path=c(n.path)?e.name:e.name+"."+n.path,e.parent.dispatch(t,r)},this)))},n.prototype._getPropertyNames=function(){return(i(this.target)?this.target.map(function(t,n){return n}):Object.keys(this.target)).filter(function(t){return t!==v})},n.prototype._wrapArray=function(t){t._wrapped_||(f(t,"_wrapped_",!0),f(t,"push",function(){var n=[].slice.call(arguments),e=this[v];n.forEach(function(n){e.set(t.length,n)},this),e.emitChange({name:"length",value:this.length}),e.emitChange({value:this.length})}),f(t,"pop",function(){var t=[].pop.apply(this,arguments),n=this[v];return n.emitChange({name:this.length,value:t}),n.emitChange({name:"length",value:this.length}),n.emitChange({value:this.length}),t}),f(t,"unshift",function(){[].unshift.apply(this,arguments);var t=[].slice.call(arguments),n=this[v];t.forEach(function(t,e){n.set(e,t)},this),n.emitChange({name:"length",value:this.length}),n.emitChange({value:this.length})}),f(t,"shift",function(){var t=[].shift.apply(this,arguments),n=this[v];return n.emitChange({name:0,value:t}),n.emitChange({name:"length",value:this.length}),n.emitChange({value:this.length}),t}),f(t,"splice",function(){for(var t=arguments[0],n=c(arguments[1])?t+arguments[1]:this.length-1,e=this[v],r=[].splice.apply(this,arguments),o=t;o<=n;o++)e.emitChange({name:o,value:r[o-t]});return e.emitChange({name:"length",value:this.length}),e.emitChange({value:this.length}),r}),f(t,"set",function(t,n){var e=this[v];t>=this.length&&(e.emitChange({name:"length",value:this.length}),e.emitChange({value:this.length})),e.set(t,n)}))},n.prototype.run=function(t,n){n=n||{};var e=n.context,r=n.trigger,o=n.immed,i=n.deep;e=e||this.target;var u=new h(t,e,r,i);return this.on("get",u.onGet),this.on("change",u.onChange),o&&u.run(),u},n.prototype.stop=function(t){t&&(this.off("get",t.onGet),this.off("change",t.onChange))},n.prototype.watch=function(t,n,e){e=e||{};var r=e.context;r=r||this.target;var o=new d(t,n,r);return o.autoRef=this.run(o.calc,e),o},n.prototype.unWatch=function(t){t&&this.stop(t.autoRef)},n}(l);g.observe=function(t){return new g(t)},g.isIgnore=function(t){return y.some(function(n){return n.test(t)})},t.exports=g},function(t,n){t.exports=function(){}},function(t,n,e){(function(n){var r=e(1),o=r.final,i=r.isArray,u=r.copy,c=r.each,a=function(){function t(t){t=t||this;var n=t._emitter_;if(n)return n;o(this,"_target_",t),o(t,"_emitter_",this),this._isNative_=this._isNativeObject(this._target_),this._listeners_=this._listeners_||Object.create(null),this.on=this.$on=this.$addListener=this.addListener,this.off=this.$off=this.$removeListener=this.removeListener,this.$emit=this.emit}return t.prototype._isNativeObject=function(t){return t.addEventListener&&t.removeEventListener&&t.dispatchEvent},t.prototype.addListener=function(n,e,r){this._isNative_&&this._addNativeEventListener(n,e,r),this._listeners_[n]=this._listeners_[n]||[],this._listeners_[n].push(e);var o=t._maxListeners;this._listeners_[n].length>o&&console.warn("The '"+n+"' event listener is not more than "+o,this)},t.prototype.removeListener=function(t,n,e){if(t&&n){if(this._isNative_&&this._removeNativeEventListener(t,n,e),!this._listeners_[t])return;var r=this._listeners_[t].indexOf(n);r>-1&&this._listeners_[t].splice(r,1)}else t?(this._isNative_&&this._listeners_[t]&&this._listeners_[t].forEach(function(n){this.removeListener(t,n,e)},this),delete this._listeners_[t]):(c(this._listeners_,function(t){this.removeListener(t,null,e)},this),this._listeners_={})},t.prototype.emit=function(t,n,e,r){if(this._isNative_)return this._emitNativeEvent(t,n,e,r);var o=this._listeners_[t];if(o){var i=!1;return o.forEach(function(t){!1===t.call(this._target_,n)&&(i=!0)},this),i}},t.prototype.emitAsync=function(t,n,e,r){if(this._isNative_)return this._emitNativeEvent(t,n,e,r);var o=this._listeners_[t];if(o){var i=!1,u=o.slice(0);return new Promise(function(t,e){function r(n,r){return r?e(r):(!1===n&&(i=!0),u.length>0?o():t(i))}function o(){var t=u.shift(),e=t.call(this._target_,n);return e&&e.then?e.then(r):r(e)}o()})}},t.prototype.emitParallel=function(t,n,e,r){var o=this;if(this._isNative_)return this._emitNativeEvent(t,n,e,r);var i=this._listeners_[t];if(i){var u=!1,c=0;return new Promise(function(t,e){function r(n,r){if(r)return e(r);!1===n&&(u=!0),++c>=i.length&&t(u)}i.forEach(function(t){var e=t.call(this._target_,n);return e&&e.then?e.then(r):r(e)},o)})}},t.prototype._addNativeEventListener=function(n,e,r){this._target_.addEventListener(n,e,r);var o=t._events[n];o&&(o.addListener=o.addListener||o.on,o.addListener(this,n,e,r))},t.prototype._removeNativeEventListener=function(n,e,r){this._target_.removeEventListener(n,e,r);var o=t._events[n];o&&(o.removeListener=o.removeListener||o.off,o.removeListener(this,n,e,r))},t.prototype._emitNativeEvent=function(t,e,r,o){if(n.document){var i=n.document.createEvent("HTMLEvents");return i.initEvent(t,r,o),u(e,i,["data"]),i.data=e,this._target_.dispatchEvent(i)}},t}();a._maxListeners=1024,a._events=[],a.register=function(t){var n=t.name;n&&(i(n)||(n=n.split(",")),n.forEach(function(n){this._events[n]=t},this))},t.exports=a}).call(n,e(47))},function(t,n){function e(t){t="("+t+")",c.lastIndex=0;for(var n,e={};n=c.exec(t);){var r=n[2];a.test(r)&&!s.test(r)&&(e[r]=!0)}return Object.keys(e)}function r(t,n){var e=t[n];return e instanceof Function?e.bind(t):e}function o(t){function n(t){var n=i.map(function(n){return r(t,n)});return u.apply(void 0,[t].concat(n))}var o=p[t];if(o)return o;var i=e(t),u=new(Function.bind.apply(Function,[void 0,"$scope"].concat(i,["return("+t+")"])));return p[t]=n,n}function i(t){function n(t){var n="";return r.forEach(function(e){n+=e instanceof Function?e(t):e}),n}var e=l[t];if(e)return e;for(var r=t.split(f),i=1;i|\<|\=|\!|\,|\;|\?|\:|\&|\|)\s*([a-z\_0-9\$]+)/gi,a=/^[a-z\$\_]/i,s=/^(\$scope|true|false|null|undefined|Date|Number|String|Object|Boolean|Array|RegExp|Math|JSON|parseInt|parseFloat|isNaN|isFinite)$/,f=/\{\{([\s\S]+?)\}\}/,p={},l={};u.expression=o,u.template=i,t.exports=u},function(t,n,e){t.exports={default:e(81),__esModule:!0}},function(t,n,e){e(82);var r=e(0).Object;t.exports=function(t,n,e){return r.defineProperty(t,n,e)}},function(t,n,e){var r=e(5);r(r.S+r.F*!e(3),"Object",{defineProperty:e(6).f})},function(t,n,e){function r(t){m.component=t,m.intercepted=!1;var n=v("binding",t);f(n)&&(n=g.binding),m.binding=n}function o(){m.component=null,m.intercepted=!1,m.binding=!1}function i(t){return function(){r(this);for(var n=arguments.length,e=Array(n),i=0;i2?e-2:0),o=2;o=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},function(t,n,e){var r=e(28),o=e(27);t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),a=r(e),s=c.length;return a<0||a>=s?t?"":void 0:(i=c.charCodeAt(a),i<55296||i>56319||a+1===s||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},function(t,n,e){"use strict";var r=e(35),o=e(19),i=e(36),u={};e(10)(u,e(15)("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},function(t,n,e){var r=e(6),o=e(16),i=e(20);t.exports=e(3)?Object.defineProperties:function(t,n){o(t);for(var e,u=i(n),c=u.length,a=0;c>a;)r.f(t,e=u[a++],n[e]);return t}},function(t,n,e){var r=e(2).document;t.exports=r&&r.documentElement},function(t,n,e){e(94);for(var r=e(2),o=e(10),i=e(34),u=e(15)("toStringTag"),c="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),a=0;a=t.length?(this._t=void 0,o(1)):"keys"==n?o(0,e):"values"==n?o(0,t[e]):o(0,[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(){}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){t.exports={default:e(98),__esModule:!0}},function(t,n,e){e(99),e(104),e(105),e(106),t.exports=e(0).Symbol},function(t,n,e){"use strict";var r=e(2),o=e(8),i=e(3),u=e(5),c=e(57),a=e(100).KEY,s=e(11),f=e(30),p=e(36),l=e(22),h=e(15),d=e(37),v=e(38),y=e(101),g=e(102),_=e(16),m=e(7),b=e(24),x=e(12),O=e(26),w=e(19),E=e(35),S=e(103),j=e(60),M=e(32),P=e(6),C=e(20),L=j.f,A=P.f,N=S.f,F=r.Symbol,T=r.JSON,k=T&&T.stringify,D=h("_hidden"),I=h("toPrimitive"),R={}.propertyIsEnumerable,$=f("symbol-registry"),G=f("symbols"),V=f("op-symbols"),W=Object.prototype,U="function"==typeof F&&!!M.f,B=r.QObject,z=!B||!B.prototype||!B.prototype.findChild,H=i&&s(function(){return 7!=E(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(t,n,e){var r=L(W,n);r&&delete W[n],A(t,n,e),r&&t!==W&&A(W,n,r)}:A,q=function(t){var n=G[t]=E(F.prototype);return n._k=t,n},J=U&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},K=function(t,n,e){return t===W&&K(V,n,e),_(t),n=O(n,!0),_(e),o(G,n)?(e.enumerable?(o(t,D)&&t[D][n]&&(t[D][n]=!1),e=E(e,{enumerable:w(0,!1)})):(o(t,D)||A(t,D,w(1,{})),t[D][n]=!0),H(t,n,e)):A(t,n,e)},Y=function(t,n){_(t);for(var e,r=y(n=x(n)),o=0,i=r.length;i>o;)K(t,e=r[o++],n[e]);return t},Q=function(t,n){return void 0===n?E(t):Y(E(t),n)},Z=function(t){var n=R.call(this,t=O(t,!0));return!(this===W&&o(G,t)&&!o(V,t))&&(!(n||!o(this,t)||!o(G,t)||o(this,D)&&this[D][t])||n)},X=function(t,n){if(t=x(t),n=O(n,!0),t!==W||!o(G,n)||o(V,n)){var e=L(t,n);return!e||!o(G,n)||o(t,D)&&t[D][n]||(e.enumerable=!0),e}},tt=function(t){for(var n,e=N(x(t)),r=[],i=0;e.length>i;)o(G,n=e[i++])||n==D||n==a||r.push(n);return r},nt=function(t){for(var n,e=t===W,r=N(e?V:x(t)),i=[],u=0;r.length>u;)!o(G,n=r[u++])||e&&!o(W,n)||i.push(G[n]);return i};U||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=l(arguments.length>0?arguments[0]:void 0),n=function(e){this===W&&n.call(V,e),o(this,D)&&o(this[D],t)&&(this[D][t]=!1),H(this,t,w(1,e))};return i&&z&&H(W,t,{configurable:!0,set:n}),q(t)},c(F.prototype,"toString",function(){return this._k}),j.f=X,P.f=K,e(59).f=S.f=tt,e(23).f=Z,M.f=nt,i&&!e(21)&&c(W,"propertyIsEnumerable",Z,!0),d.f=function(t){return q(h(t))}),u(u.G+u.W+u.F*!U,{Symbol:F});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),rt=0;et.length>rt;)h(et[rt++]);for(var ot=C(h.store),it=0;ot.length>it;)v(ot[it++]);u(u.S+u.F*!U,"Symbol",{for:function(t){return o($,t+="")?$[t]:$[t]=F(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var n in $)if($[n]===t)return n},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!U,"Object",{create:Q,defineProperty:K,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:tt,getOwnPropertySymbols:nt});var ut=s(function(){M.f(1)});u(u.S+u.F*ut,"Object",{getOwnPropertySymbols:function(t){return M.f(b(t))}}),T&&u(u.S+u.F*(!U||s(function(){var t=F();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){for(var n,e,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(e=n=r[1],(m(n)||void 0!==t)&&!J(t))return g(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!J(n))return n}),r[1]=n,k.apply(T,r)}}),F.prototype[I]||e(10)(F.prototype,I,F.prototype.valueOf),p(F,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(t,n,e){var r=e(22)("meta"),o=e(7),i=e(8),u=e(6).f,c=0,a=Object.isExtensible||function(){return!0},s=!e(11)(function(){return a(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++c,w:{}}})},p=function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!a(t))return"F";if(!n)return"E";f(t)}return t[r].i},l=function(t,n){if(!i(t,r)){if(!a(t))return!0;if(!n)return!1;f(t)}return t[r].w},h=function(t){return s&&d.NEED&&a(t)&&!i(t,r)&&f(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:p,getWeak:l,onFreeze:h}},function(t,n,e){var r=e(20),o=e(32),i=e(23);t.exports=function(t){var n=r(t),e=o.f;if(e)for(var u,c=e(t),a=i.f,s=0;c.length>s;)a.call(t,u=c[s++])&&n.push(u);return n}},function(t,n,e){var r=e(46);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(12),o=e(59).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(t){return u.slice()}};t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?c(t):o(r(t))}},function(t,n){},function(t,n,e){e(38)("asyncIterator")},function(t,n,e){e(38)("observable")},function(t,n,e){t.exports={default:e(108),__esModule:!0}},function(t,n,e){e(109),t.exports=e(0).Object.setPrototypeOf},function(t,n,e){var r=e(5);r(r.S,"Object",{setPrototypeOf:e(110).set})},function(t,n,e){var r=e(7),o=e(16),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e(41)(Function.call,e(60).f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},function(t,n,e){e(112);var r=e(0).Object;t.exports=function(t,n){return r.create(t,n)}},function(t,n,e){var r=e(5);r(r.S,"Object",{create:e(35)})},function(t,n,e){e(114),t.exports=e(0).Object.getPrototypeOf},function(t,n,e){var r=e(24),o=e(58);e(52)("getPrototypeOf",function(){return function(t){return o(r(t))}})},function(t,n,e){var r=e(33),o=e(14);t.exports=function(t){return t&&t.prototype instanceof o.Component?r(null,t):function(n){return r(t,n)}}},function(t,n,e){function r(t,n){if(!t||!n)return r;if(!u("autorun",t,n)){var e=void 0;o.didMount.add(t,function(){var t=this;if(t._observer_){var r=u("deep",t,n);e=t._observer_.run(t[n],{context:t,deep:r}),e.run()}}),o.unmount.add(t,function(){this._observer_.stop(e)}),c("autorun",!0,t,n)}}var o=e(18),i=e(4),u=i.get,c=i.set;t.exports=r},function(t,n,e){function r(t,n){if(!i(t))throw new Error("Watch needs to specify a calculation function");return function(e,r){var o=void 0;u.didMount.add(e,function(){var e=this;if(e._observer_){var i=a("deep",e,r);o=e._observer_.watch(function(){return t.call(e,e.model)},e[r],{context:e,deep:i}),o.autoRef.run(n||!1)}}),u.unmount.add(e,function(){this._observer_.unWatch(o)}),s("watch",!0,e,r)}}var o=e(1),i=o.isFunction,u=e(18),c=e(4),a=c.get,s=c.set;t.exports=r},function(t,n,e){function r(t,n){if(!t)return r;if(n?i("autorun",t,n)||i("watch",t,n):t&&t.prototype&&t.prototype._contented_)throw new Error("`deep` must be enabled before `model/autorun/watch`");u("deep",!0,t,n)}var o=e(4),i=o.get,u=o.set;t.exports=r},function(t,n,e){function r(t){function n(n,e,r){u(t,function(t,o){c(t)||(t=o);var i=a(e,t);a(n,o)===i||r&&a(r,t)===i||s(n,o,i)})}if(!i(t))throw new Error("Mapping needs to specify a object or array");return function(t){if(!t)throw new Error("Invaild Component");var e=t.prototype;if(e._contented_)throw new Error("`mapping` must be enabled before `model`");f.model.add(e,function(){n(this.model,this.props)}),f.didUpdate.add(e,function(t){n(this.model,this.props,t)})}}var o=e(1),i=o.isObject,u=o.each,c=o.isString,a=o.getByPath,s=o.setByPath,f=e(18);t.exports=r},function(t,n,e){(function(n){var r=e(25),o=function(t){return t&&t.__esModule?t:{default:t}}(r),i=e(17),u=i.AutoRun,c=function(){function t(){var n=this;(0,o.default)(this,t),this.composing=!1,this.inputting=!1,this.onUpdate=function(){n.composing=!0},this.onEnd=function(){n.composing=!1},this.onInput=function(){n.inputting=!0,n.inputTimer&&clearTimeout(n.inputTimer),n.inputTimer=setTimeout(function(){n.inputting=!1,n.inputTimer=null},0)},this.enable()}return t.prototype.on=function(t,e){n.document&&n.document.addEventListener(t,e,!0)},t.prototype.off=function(t,e){n.document&&n.document.removeEventListener(t,e,!0)},t.prototype.enable=function(){this.on("compositionupdate",this.onUpdate),this.on("compositionend",this.onEnd),this.on("input",this.onInput)},t.prototype.disable=function(){this.off("compositionupdate",this.onUpdate),this.off("compositionend",this.onEnd)},t}(),a=new c;u.prototype.isSync=function(){return!n.document||a.composing||a.inputting},t.exports=a}).call(n,e(47))},function(t,n){t.exports={name:"mota",version:"3.5.1"}},function(t,n,e){function r(t){!m.state||m.buffer.indexOf(t.path)>-1||m.buffer.push(this.id+"."+t.path)}function o(t){if(m.state){var n;m.state[2].length=0,(n=m.state[2]).push.apply(n,m.buffer)}return m.buffer=[],m.state=t,t}function i(t,n){return!!t&&(y(t)?t(n):t.indexOf&&t.indexOf(n)>-1)}function u(t,n){function e(t){var e=a[2],r=this.id+"."+t.path;(e.indexOf(r)>-1||i(n,t.path))&&p([].concat(a))}function u(){v.off("change",e),h&&v.clearReference()}var c=l([]),a=c[0],p=c[1];if(a.length>0)return o(a);var h=t instanceof Function,d=h?new t:t,v=new f(_(d));return v.id||(v.id="_observer_"+m.uuid++),(0,s.default)(a,[d,u,[]]),v.off("get",r),v.on("get",r),v.on("change",e),o(a)}function c(t,n,e){var r=u(t,n),i=r[0],c=r[1],a=r[2];return h(function(){return c},[]),d(function(){return o()}),e&&e({model:i,deps:a}),i}var a=e(9),s=function(t){return t&&t.__esModule?t:{default:t}}(a),f=e(17),p=e(14),l=p.useState,h=p.useEffect,d=p.useLayoutEffect,v=e(1),y=v.isFunction,g=e(13),_=g.getModelState,m={buffer:[],state:null,uuid:0};t.exports={useModel:c}}])}); //# sourceMappingURL=mota-min.js.map \ No newline at end of file diff --git a/dist/mota-min.js.map b/dist/mota-min.js.map index 9ead50f..a8b12c7 100644 --- a/dist/mota-min.js.map +++ b/dist/mota-min.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///mota-min.js"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE_14__","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","core","version","__e","noop","toString","obj","getType","exec","isNull","undefined","trim","str","replace","str1","str2","RegExp","startWith","indexOf","contains","endWith","length","has","isFunction","isAsyncFunction","isGeneratorFunction","isString","isNumber","isBoolean","isElement","window","Element","tagName","nodeType","nodeName","attributes","ownerDocument","isText","Text","isObject","type","isArray","v1","v2","Array","v3","splice","v4","isTypedArray","ArrayBuffer","isView","DataView","isDate","val","Date","isRegexp","toArray","array","slice","toDate","isFunctionString","toFunction","each","list","handler","scope","listLength","rs","key","formatDate","date","format","dict","placeholder","M+","getMonth","d+","getDate","h+","getHours","m+","getMinutes","s+","getSeconds","w+","getDay","q+","Math","floor","S","getMilliseconds","test","$1","getFullYear","substr","value","copy","src","dst","igonres","getOwnPropertyDescriptor","ex","clone","objClone","constructor","forEach","final","mix","mode","igonreNull","keys","arguments","Error","set","err","push","create","proto","props","Cotr","setPrototypeOf","__proto__","getPrototypeOf","deepEqual","a","b","aKeys","bKeys","allKeys","concat","checkedMap","result","fromTo","fromNum","toNum","step","abs","newGuid","s4","random","substring","map","fn","buffer","setByPath","path","split","index","getByPath","filter","unique","newArray","getFunctionArgumentNames","parts","FUNC_REGEXP","info","params","body","Function","bind","apply","short","maxLength","strLength","trimLength","firstUpper","toUpperCase","escapeRegExp","toCamelCase","toLowerCase","toSplitCase","htmlPrefilter","html","rxhtmlTag","parseHTML","parent","document","createElement","innerHTML","childNodes","childNode","removeChild","hasProperty","global","__g","_interopRequireDefault","default","getStore","target","member","ownOnly","STORE_KEY","store","useStore","baseStore","_getPrototypeOf2","defineGetter","_create2","wrapKey","annotation","_create","_getPrototypeOf","_require","_require2","getAll","ctx","hide","$export","source","own","out","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","IS_PROTO","P","IS_BIND","B","IS_WRAP","W","expProto","C","virtual","R","U","anObject","IE8_DOM_DEFINE","toPrimitive","dP","f","O","Attributes","e","TypeError","it","createDesc","IObject","defined","isComponentInstance","instance","Component","PureComponent","isComponentClass","com","owner","_defineProperty2","isESModule","getModelState","model","state","_defineProperty","React","uid","Symbol","USE_SYMBOL","Observer","AutoRun","Watcher","expression","nextTick","_classCallCheck2","_classCallCheck3","_get","Lifecycle","add","base","baseList","lifecycle","bitmap","writable","$keys","enumBugKeys","id","px","propertyIsEnumerable","Constructor","valueOf","ceil","isNaN","shared","copyright","getOwnPropertySymbols","createRender","initailRender","render","_override_","overrideRender","wrapRender","_run_","_mounted_","forceUpdate","_observer_","run","context","trigger","_trigger_","deep","_assign2","clearReference","stop","_isNewModelInstance_","createUnmount","initailUnmount","componentWillUnmount","_this","_len","args","_key","handlers","unmount","createMount","initailMount","componentDidMount","_this2","_len2","_key2","didMount","createDidUpdate","initailDidUpdate","componentDidUpdate","_this3","_len3","_key3","didUpdate","createModelGetter","_this4","modelInProps","propModel","_model_","componentModel","isNewModelInstance","modelDidCreate","connect","component","stateful","_assign","_require3","_require4","_require5","_require6","dPs","IE_PROTO","Empty","createDict","iframeDocument","iframe","style","display","appendChild","contentWindow","open","write","lt","close","Properties","def","TAG","tag","stat","LIBRARY","wksExt","$Symbol","charAt","aFunction","that","is","toIObject","arrayIndexOf","names","cof","g","eval","onGet","event","runing","dependencies","isDependent","paths","pop","join","onChange","isSync","pending","catch","_a","_i","execHandlers","copies","callback","exists","find","h","promise","resolve","reject","Promise","_resolve","_reject","timer","promise_1","then","console","error","MutationObserver","counter_1","observer","textNode_1","createTextNode","String","observe","characterData","data","setTimeout","calculator","calc","force","newValue","newValueJson","JSON","stringify","parse","fails","KEY","exp","compileExpr","expr","convertProps","dataBind","bindOpts","bindable","getOptions","dataScope","bindExpr","setValue","$value","getValue","bindEvent","initailChange","bindEventHandler","bindProp","prop","bindPropHandler","convertElement","element","el","_isFrozen2","children","binding","_require7","Comlize","ComlizeWrapper","func","_class","_possibleConstructorReturn2","_possibleConstructorReturn3","_inherits2","_inherits3","_isFrozen","_React$Component","_props","_typeof2","_typeof3","ReferenceError","_iterator","_iterator2","_symbol","_symbol2","_typeof","redefine","Iterators","$iterCreate","setToStringTag","ITERATOR","BUGGY","returnThis","Base","NAME","next","DEFAULT","IS_SET","FORCED","methods","IteratorPrototype","getMethod","kind","DEF_VALUES","VALUES_BUG","$native","$default","$entries","$anyNative","entries","values","toObject","ObjectProto","hiddenKeys","getOwnPropertyNames","pIE","gOPD","_setPrototypeOf","_setPrototypeOf2","subClass","superClass","opts","builtIn","defaultOpts","checkboxOpts","mValue","_event$target","checked","radioOpts","_event$target2","input","radio","checkbox","select","textarea","intercepted","config","options","stateless","_stateful_","StatelessWrapper","_extends3","_extends2","autorun","watch","mapping","utils","composition","useModel","assign","DESCRIPTORS","getKeys","gOPS","$assign","A","K","k","T","aLen","getSymbols","isEnum","j","toLength","toAbsoluteIndex","IS_INCLUDES","$this","fromIndex","toInteger","min","max","__extends","extendStatics","__","EventEmitter","OBSERVER_PROP_NAME","IGNORE_REGEXPS","_super","isIgnore","emitGet","shadow","oldValue","childObserver","addChild","emitChange","_wrapArray","_getPropertyNames","child","parents","foundIndex","item","dispatch","eventName","_src_","_layer_","emit","parentEvent","_wrapped_","items","unshift","shift","startIndex","endIndex","immed","auto","on","autoRef","off","watcher","unWatch","word","some","re","emitter","_emitter_","_isNative_","_isNativeObject","_target_","_listeners_","$on","$addListener","addListener","$off","$removeListener","removeListener","$emit","addEventListener","removeEventListener","dispatchEvent","listener","capture","_addNativeEventListener","maxListeners","_maxListeners","warn","_removeNativeEventListener","_listener","canBubble","cancelAble","_emitNativeEvent","listeners","stopPropagation","emitAsync","queue","done","emitParallel","count","descriptor","_events","createEvent","initEvent","register","findVariables","VARIABLE_FILTER","lastIndex","variables","name_1","VARIABLE_NAME","ALLOWED_WORD","cacheItem","EXPRESSION_CACHE","template","blocks","block","TEMPLATE_CACHE","EXPRESSION_BLOCK","compile","mixed","$Object","desc","beginRender","endRender","isFrozen","initailCreateElement","$isFrozen","$at","iterated","_t","point","TO_STRING","pos","charCodeAt","defineProperties","documentElement","TO_STRING_TAG","DOMIterables","Collection","addToUnscopables","_k","Arguments","META","$fails","wks","wksDefine","enumKeys","gOPNExt","$GOPD","$GOPS","$DP","gOPN","$JSON","_stringify","HIDDEN","TO_PRIMITIVE","SymbolRegistry","AllSymbols","OPSymbols","USE_NATIVE","QObject","setter","findChild","setSymbolDesc","D","protoDesc","wrap","sym","isSymbol","iterator","$defineProperty","$defineProperties","$create","$propertyIsEnumerable","E","$getOwnPropertyDescriptor","$getOwnPropertyNames","$getOwnPropertySymbols","IS_OP","$set","es6Symbols","wellKnownSymbols","for","keyFor","useSetter","useSimple","FAILS_ON_PRIMITIVES","replacer","$replacer","setDesc","isExtensible","FREEZE","preventExtensions","setMeta","w","fastKey","getWeak","onFreeze","meta","NEED","symbols","arg","windowNames","getWindowNames","check","buggy","$getPrototypeOf","method","_contented_","prevProps","propName","modelField","propValue","Composition","composing","inputting","onUpdate","onEnd","onInput","inputTimer","clearTimeout","enable","disable","collect","nextState","_owner$state$","hasChange","conditions","useObservable","deps","fullPath","update","destroy","isNew","_useState","useState","uuid","debug","_useObservable","useEffect","useLayoutEffect"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,EAAQG,QAAQ,UACR,kBAAXC,SAAyBA,OAAOC,IAC9CD,OAAO,QAAS,SAAUJ,GACA,gBAAZC,SACdA,QAAc,KAAID,EAAQG,QAAQ,UAElCJ,EAAW,KAAIC,EAAQD,EAAY,QAClB,mBAATO,MAAuBA,KAAOC,KAAM,SAASC,GACvD,MAAgB,UAAUC,GAKhB,QAASC,GAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,MAAOC,GAAiBD,GAAUV,OAGnC,IAAIC,GAASU,EAAiBD,IAC7BE,EAAGF,EACHG,GAAG,EACHb,WAUD,OANAQ,GAAQE,GAAUI,KAAKb,EAAOD,QAASC,EAAQA,EAAOD,QAASS,GAG/DR,EAAOY,GAAI,EAGJZ,EAAOD,QAvBf,GAAIW,KA4DJ,OAhCAF,GAAoBM,EAAIP,EAGxBC,EAAoBO,EAAIL,EAGxBF,EAA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GAE9BmU,EAEJ,SAAgCrS,GAAO,MAAOA,IAAOA,EAAIZ,WAAaY,GAAQoL,QAASpL,IAFjD2U,GAUlChF,EAAWzR,EAAoB,IAE/BkO,EAAWlO,EAAoB,IAC/BsxB,EAAWpjB,EAASojB,SACpBI,EAAYxjB,EAASwjB,UACrBC,EAAkBzjB,EAASyjB,gBAE3BxjB,EAAYnO,EAAoB,GAChC+C,EAAaoL,EAAUpL,WAEvB2T,EAAY1W,EAAoB,IAChCiR,EAAgByF,EAAUzF,cAE1BH,GAAUvG,UAAY4G,MAAO,KAAMogB,KAAM,EAqE7C/xB,GAAOD,SAAYqjB,SAAUA","file":"./mota-min.js","sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///mota-min.js"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE_14__","modules","__webpack_require__","moduleId","installedModules","i","l","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","object","property","prototype","hasOwnProperty","p","s","core","version","__e","noop","toString","obj","getType","exec","isNull","undefined","trim","str","replace","str1","str2","RegExp","startWith","indexOf","contains","endWith","length","has","isFunction","isAsyncFunction","isGeneratorFunction","isString","isNumber","isBoolean","isElement","window","Element","tagName","nodeType","nodeName","attributes","ownerDocument","isText","Text","isObject","type","isArray","v1","v2","Array","v3","splice","v4","isTypedArray","ArrayBuffer","isView","DataView","isDate","val","Date","isRegexp","toArray","array","slice","toDate","isFunctionString","toFunction","each","list","handler","scope","listLength","rs","key","formatDate","date","format","dict","placeholder","M+","getMonth","d+","getDate","h+","getHours","m+","getMinutes","s+","getSeconds","w+","getDay","q+","Math","floor","S","getMilliseconds","test","$1","getFullYear","substr","value","copy","src","dst","igonres","getOwnPropertyDescriptor","ex","clone","objClone","constructor","forEach","final","mix","mode","igonreNull","keys","arguments","Error","set","err","push","create","proto","props","Cotr","setPrototypeOf","__proto__","getPrototypeOf","deepEqual","a","b","aKeys","bKeys","allKeys","concat","checkedMap","result","fromTo","fromNum","toNum","step","abs","newGuid","s4","random","substring","map","fn","buffer","setByPath","path","split","index","getByPath","filter","unique","newArray","getFunctionArgumentNames","parts","FUNC_REGEXP","info","params","body","Function","bind","apply","short","maxLength","strLength","trimLength","firstUpper","toUpperCase","escapeRegExp","toCamelCase","toLowerCase","toSplitCase","htmlPrefilter","html","rxhtmlTag","parseHTML","parent","document","createElement","innerHTML","childNodes","childNode","removeChild","hasProperty","global","__g","_interopRequireDefault","default","getStore","target","member","ownOnly","STORE_KEY","store","useStore","baseStore","_getPrototypeOf2","defineGetter","_create2","wrapKey","annotation","_create","_getPrototypeOf","_require","_require2","getAll","ctx","hide","$export","source","own","out","IS_FORCED","F","IS_GLOBAL","G","IS_STATIC","IS_PROTO","P","IS_BIND","B","IS_WRAP","W","expProto","C","virtual","R","U","anObject","IE8_DOM_DEFINE","toPrimitive","dP","f","O","Attributes","e","TypeError","it","createDesc","IObject","defined","isComponentInstance","instance","Component","PureComponent","isComponentClass","com","owner","_defineProperty2","isESModule","getModelState","model","state","_defineProperty","React","uid","Symbol","USE_SYMBOL","Observer","AutoRun","Watcher","expression","nextTick","_classCallCheck2","_classCallCheck3","_get","Lifecycle","add","base","baseList","lifecycle","bitmap","writable","$keys","enumBugKeys","id","px","propertyIsEnumerable","Constructor","valueOf","ceil","isNaN","shared","copyright","getOwnPropertySymbols","createRender","initailRender","render","_override_","overrideRender","wrapRender","_run_","_mounted_","forceUpdate","_observer_","run","context","trigger","_trigger_","deep","_assign2","clearReference","stop","_isNewModelInstance_","createUnmount","initailUnmount","componentWillUnmount","_this","_len","args","_key","handlers","unmount","createMount","initailMount","componentDidMount","_this2","_len2","_key2","didMount","ctor","modeInitialize","createDidUpdate","initailDidUpdate","componentDidUpdate","_this3","_len3","_key3","didUpdate","createModelGetter","_this4","modelInProps","propModel","_model_","_prop_model_","componentModel","modelWillCreate","isNewModelInstance","modelDidCreate","connect","component","stateful","_assign","_require3","_require4","_require5","_require6","dPs","IE_PROTO","Empty","createDict","iframeDocument","iframe","style","display","appendChild","contentWindow","open","write","lt","close","Properties","def","TAG","tag","stat","LIBRARY","wksExt","$Symbol","charAt","aFunction","that","is","toIObject","arrayIndexOf","names","cof","g","eval","onGet","event","runing","dependencies","isDependent","paths","pop","join","onChange","isSync","pending","catch","_a","_i","execHandlers","copies","callback","exists","find","h","promise","resolve","reject","Promise","_resolve","_reject","timer","promise_1","then","console","error","MutationObserver","counter_1","observer","textNode_1","createTextNode","String","observe","characterData","data","setTimeout","calculator","calc","force","newValue","newValueJson","JSON","stringify","parse","fails","KEY","exp","compileExpr","expr","convertProps","dataBind","bindOpts","bindable","getOptions","dataScope","bindExpr","setValue","$value","getValue","bindEvent","initailChange","bindEventHandler","bindProp","prop","bindPropHandler","convertElement","element","el","_isFrozen2","children","binding","_require7","Comlize","ComlizeWrapper","func","_class","_possibleConstructorReturn2","_possibleConstructorReturn3","_inherits2","_inherits3","_isFrozen","_React$Component","_props","_typeof2","_typeof3","ReferenceError","_iterator","_iterator2","_symbol","_symbol2","_typeof","redefine","Iterators","$iterCreate","setToStringTag","ITERATOR","BUGGY","returnThis","Base","NAME","next","DEFAULT","IS_SET","FORCED","methods","IteratorPrototype","getMethod","kind","DEF_VALUES","VALUES_BUG","$native","$default","$entries","$anyNative","entries","values","toObject","ObjectProto","hiddenKeys","getOwnPropertyNames","pIE","gOPD","_setPrototypeOf","_setPrototypeOf2","subClass","superClass","opts","builtIn","defaultOpts","checkboxOpts","mValue","_event$target","checked","radioOpts","_event$target2","input","radio","checkbox","select","textarea","intercepted","config","options","stateless","_stateful_","StatelessWrapper","_extends3","_extends2","autorun","watch","mapping","utils","composition","useModel","assign","DESCRIPTORS","getKeys","gOPS","$assign","A","K","k","T","aLen","getSymbols","isEnum","j","toLength","toAbsoluteIndex","IS_INCLUDES","$this","fromIndex","toInteger","min","max","__extends","extendStatics","__","EventEmitter","OBSERVER_PROP_NAME","IGNORE_REGEXPS","_super","isIgnore","emitGet","shadow","oldValue","childObserver","addChild","emitChange","_wrapArray","_getPropertyNames","child","parents","foundIndex","item","dispatch","eventName","_src_","_layer_","emit","parentEvent","_wrapped_","items","unshift","shift","startIndex","endIndex","immed","auto","on","autoRef","off","watcher","unWatch","word","some","re","emitter","_emitter_","_isNative_","_isNativeObject","_target_","_listeners_","$on","$addListener","addListener","$off","$removeListener","removeListener","$emit","addEventListener","removeEventListener","dispatchEvent","listener","capture","_addNativeEventListener","maxListeners","_maxListeners","warn","_removeNativeEventListener","_listener","canBubble","cancelAble","_emitNativeEvent","listeners","stopPropagation","emitAsync","queue","done","emitParallel","count","descriptor","_events","createEvent","initEvent","register","findVariables","VARIABLE_FILTER","lastIndex","variables","name_1","VARIABLE_NAME","ALLOWED_WORD","cacheItem","EXPRESSION_CACHE","template","blocks","block","TEMPLATE_CACHE","EXPRESSION_BLOCK","compile","mixed","$Object","desc","beginRender","endRender","isFrozen","initailCreateElement","$isFrozen","$at","iterated","_t","point","TO_STRING","pos","charCodeAt","defineProperties","documentElement","TO_STRING_TAG","DOMIterables","Collection","addToUnscopables","_k","Arguments","META","$fails","wks","wksDefine","enumKeys","gOPNExt","$GOPD","$GOPS","$DP","gOPN","$JSON","_stringify","HIDDEN","TO_PRIMITIVE","SymbolRegistry","AllSymbols","OPSymbols","USE_NATIVE","QObject","setter","findChild","setSymbolDesc","D","protoDesc","wrap","sym","isSymbol","iterator","$defineProperty","$defineProperties","$create","$propertyIsEnumerable","E","$getOwnPropertyDescriptor","$getOwnPropertyNames","$getOwnPropertySymbols","IS_OP","$set","es6Symbols","wellKnownSymbols","for","keyFor","useSetter","useSimple","FAILS_ON_PRIMITIVES","replacer","$replacer","setDesc","isExtensible","FREEZE","preventExtensions","setMeta","w","fastKey","getWeak","onFreeze","meta","NEED","symbols","arg","windowNames","getWindowNames","check","buggy","$getPrototypeOf","method","_contented_","prevProps","propName","modelField","propValue","Composition","composing","inputting","onUpdate","onEnd","onInput","inputTimer","clearTimeout","enable","disable","collect","nextState","_owner$state$","hasChange","conditions","useObservable","deps","fullPath","update","destroy","isNew","_useState","useState","uuid","debug","_useObservable","useEffect","useLayoutEffect"],"mappings":"CAAA,SAA2CA,EAAMC,GAC1B,gBAAZC,UAA0C,gBAAXC,QACxCA,OAAOD,QAAUD,EAAQG,QAAQ,UACR,kBAAXC,SAAyBA,OAAOC,IAC9CD,OAAO,QAAS,SAAUJ,GACA,gBAAZC,SACdA,QAAc,KAAID,EAAQG,QAAQ,UAElCJ,EAAW,KAAIC,EAAQD,EAAY,QAClB,mBAATO,MAAuBA,KAAOC,KAAM,SAASC,GACvD,MAAgB,UAAUC,GAKhB,QAASC,GAAoBC,GAG5B,GAAGC,EAAiBD,GACnB,MAAOC,GAAiBD,GAAUV,OAGnC,IAAIC,GAASU,EAAiBD,IAC7BE,EAAGF,EACHG,GAAG,EACHb,WAUD,OANAQ,GAAQE,GAAUI,KAAKb,EAAOD,QAASC,EAAQA,EAAOD,QAASS,GAG/DR,EAAOY,GAAI,EAGJZ,EAAOD,QAvBf,GAAIW,KA4DJ,OAhCAF,GAAoBM,EAAIP,EAGxBC,EAAoBO,EAAIL,EAGxBF,EAAoBQ,EAAI,SAASjB,EAASkB,EAAMC,GAC3CV,EAAoBW,EAAEpB,EAASkB,IAClCG,OAAOC,eAAetB,EAASkB,GAC9BK,cAAc,EACdC,YAAY,EACZC,IAAKN,KAMRV,EAAoBiB,EAAI,SAASzB,GAChC,GAAIkB,GAASlB,GAAUA,EAAO0B,WAC7B,WAAwB,MAAO1B,GAAgB,SAC/C,WAA8B,MAAOA,GAEtC,OADAQ,GAAoBQ,EAAEE,EAAQ,IAAKA,GAC5BA,GAIRV,EAAoBW,EAAI,SAASQ,EAAQC,GAAY,MAAOR,QAAOS,UAAUC,eAAejB,KAAKc,EAAQC,IAGzGpB,EAAoBuB,EAAI,GAGjBvB,EAAoBA,EAAoBwB,EAAI,MAKvD,SAAUhC,EAAQD,GAExB,GAAIkC,GAAOjC,EAAOD,SAAYmC,QAAS,QACrB,iBAAPC,OAAiB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,EAAoB,IAC/B0xB,EAAWxjB,EAASwjB,SACpBI,EAAY5jB,EAAS4jB,UACrBC,EAAkB7jB,EAAS6jB,gBAE3B5jB,EAAYnO,EAAoB,GAChC+C,EAAaoL,EAAUpL,WAEvB+T,EAAY9W,EAAoB,IAChCiR,EAAgB6F,EAAU7F,cAE1BH,GAAUvG,UAAY4G,MAAO,KAAMwgB,KAAM,EAqE7CnyB,GAAOD,SAAYyjB,SAAUA","file":"./mota-min.js","sourceRoot":""} \ No newline at end of file diff --git a/dist/mota.js b/dist/mota.js index 6a24ad3..d8c6462 100644 --- a/dist/mota.js +++ b/dist/mota.js @@ -1663,6 +1663,11 @@ function createMount(proto) { return handler.call.apply(handler, [_this2].concat(args)); }); } + var ctor = this.constructor, + model = this.model, + props = this.props; + + if (ctor.modeInitialize) ctor.modeInitialize.call(ctor, model, props); if (initailMount) return initailMount.call.apply(initailMount, [this].concat(args)); }; } @@ -1692,16 +1697,20 @@ function createModelGetter(model) { var modelInProps = 'model' in this.props; var propModel = this.props.model || {}; - if (this._model_ && (!modelInProps || propModel === this._model_)) { + if (this._model_ && (!modelInProps || propModel === this._prop_model_)) { return this._model_; } + defineGetter(this, '_prop_model_', propModel); clearReference(this); var componentModel = modelInProps ? propModel : model; + if (this.modelWillCreate) { + componentModel = this.modelWillCreate(componentModel) || componentModel; + } if (isNull(componentModel)) componentModel = {}; - var isNewModelInstance = false; if (!isObject(componentModel) && !isFunction(componentModel)) { throw new Error('Invalid Model'); } + var isNewModelInstance = false; if (componentModel instanceof Function) { componentModel = new componentModel(); isNewModelInstance = true; @@ -4759,7 +4768,7 @@ module.exports = composition; /* 121 */ /***/ (function(module, exports) { -module.exports = {"name":"mota","version":"3.3.2"} +module.exports = {"name":"mota","version":"3.5.1"} /***/ }), /* 122 */ diff --git a/dist/mota.js.map b/dist/mota.js.map index aa2b1ff..be7c520 100644 --- a/dist/mota.js.map +++ b/dist/mota.js.map @@ -1 +1 @@ -{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 9c59788348318751934c","webpack:///./node_modules/core-js/library/modules/_core.js","webpack:///./node_modules/ntils/lib/index.js","webpack:///./node_modules/core-js/library/modules/_global.js","webpack:///./node_modules/core-js/library/modules/_descriptors.js","webpack:///./src/annotation.js","webpack:///./node_modules/core-js/library/modules/_export.js","webpack:///./node_modules/core-js/library/modules/_object-dp.js","webpack:///./node_modules/core-js/library/modules/_is-object.js","webpack:///./node_modules/core-js/library/modules/_has.js","webpack:///./node_modules/babel-runtime/core-js/object/assign.js","webpack:///./node_modules/core-js/library/modules/_hide.js","webpack:///./node_modules/core-js/library/modules/_fails.js","webpack:///./node_modules/core-js/library/modules/_to-iobject.js","webpack:///./src/utils.js","webpack:///external {\"commonjs\":\"react\",\"commonjs2\":\"react\",\"root\":\"React\",\"amd\":\"react\"}","webpack:///./node_modules/core-js/library/modules/_wks.js","webpack:///./node_modules/core-js/library/modules/_an-object.js","webpack:///./node_modules/ober/lib/index.js","webpack:///./src/lifecycle.js","webpack:///./node_modules/core-js/library/modules/_property-desc.js","webpack:///./node_modules/core-js/library/modules/_object-keys.js","webpack:///./node_modules/core-js/library/modules/_library.js","webpack:///./node_modules/core-js/library/modules/_uid.js","webpack:///./node_modules/core-js/library/modules/_object-pie.js","webpack:///./node_modules/core-js/library/modules/_to-object.js","webpack:///./node_modules/babel-runtime/helpers/classCallCheck.js","webpack:///./node_modules/core-js/library/modules/_to-primitive.js","webpack:///./node_modules/core-js/library/modules/_defined.js","webpack:///./node_modules/core-js/library/modules/_to-integer.js","webpack:///./node_modules/core-js/library/modules/_shared-key.js","webpack:///./node_modules/core-js/library/modules/_shared.js","webpack:///./node_modules/core-js/library/modules/_enum-bug-keys.js","webpack:///./node_modules/core-js/library/modules/_object-gops.js","webpack:///./src/connect.js","webpack:///./node_modules/core-js/library/modules/_iterators.js","webpack:///./node_modules/core-js/library/modules/_object-create.js","webpack:///./node_modules/core-js/library/modules/_set-to-string-tag.js","webpack:///./node_modules/core-js/library/modules/_wks-ext.js","webpack:///./node_modules/core-js/library/modules/_wks-define.js","webpack:///./node_modules/babel-runtime/core-js/object/create.js","webpack:///./node_modules/babel-runtime/helpers/extends.js","webpack:///./node_modules/core-js/library/modules/_ctx.js","webpack:///./node_modules/core-js/library/modules/_ie8-dom-define.js","webpack:///./node_modules/core-js/library/modules/_dom-create.js","webpack:///./node_modules/core-js/library/modules/_object-keys-internal.js","webpack:///./node_modules/core-js/library/modules/_iobject.js","webpack:///./node_modules/core-js/library/modules/_cof.js","webpack:///(webpack)/buildin/global.js","webpack:///./node_modules/ober/lib/autorun.js","webpack:///./node_modules/ober/lib/next-tick.js","webpack:///./node_modules/ober/lib/watcher.js","webpack:///./node_modules/babel-runtime/core-js/object/is-frozen.js","webpack:///./node_modules/core-js/library/modules/_object-sap.js","webpack:///./src/binding.js","webpack:///./node_modules/babel-runtime/helpers/possibleConstructorReturn.js","webpack:///./node_modules/babel-runtime/helpers/typeof.js","webpack:///./node_modules/core-js/library/modules/_iter-define.js","webpack:///./node_modules/core-js/library/modules/_redefine.js","webpack:///./node_modules/core-js/library/modules/_object-gpo.js","webpack:///./node_modules/core-js/library/modules/_object-gopn.js","webpack:///./node_modules/core-js/library/modules/_object-gopd.js","webpack:///./node_modules/babel-runtime/helpers/inherits.js","webpack:///./src/bindable.js","webpack:///./src/owner.js","webpack:///./node_modules/babel-runtime/core-js/object/get-prototype-of.js","webpack:///./src/config.js","webpack:///./src/stateful.js","webpack:///./src/index.js","webpack:///./node_modules/core-js/library/fn/object/assign.js","webpack:///./node_modules/core-js/library/modules/es6.object.assign.js","webpack:///./node_modules/core-js/library/modules/_a-function.js","webpack:///./node_modules/core-js/library/modules/_object-assign.js","webpack:///./node_modules/core-js/library/modules/_array-includes.js","webpack:///./node_modules/core-js/library/modules/_to-length.js","webpack:///./node_modules/core-js/library/modules/_to-absolute-index.js","webpack:///./node_modules/ober/lib/observer.js","webpack:///./node_modules/dify/lib/browser.js","webpack:///./node_modules/eify/lib/index.js","webpack:///./node_modules/ober/lib/expression.js","webpack:///./node_modules/babel-runtime/core-js/object/define-property.js","webpack:///./node_modules/core-js/library/fn/object/define-property.js","webpack:///./node_modules/core-js/library/modules/es6.object.define-property.js","webpack:///./src/render.js","webpack:///./node_modules/core-js/library/fn/object/is-frozen.js","webpack:///./node_modules/core-js/library/modules/es6.object.is-frozen.js","webpack:///./node_modules/babel-runtime/core-js/symbol/iterator.js","webpack:///./node_modules/core-js/library/fn/symbol/iterator.js","webpack:///./node_modules/core-js/library/modules/es6.string.iterator.js","webpack:///./node_modules/core-js/library/modules/_string-at.js","webpack:///./node_modules/core-js/library/modules/_iter-create.js","webpack:///./node_modules/core-js/library/modules/_object-dps.js","webpack:///./node_modules/core-js/library/modules/_html.js","webpack:///./node_modules/core-js/library/modules/web.dom.iterable.js","webpack:///./node_modules/core-js/library/modules/es6.array.iterator.js","webpack:///./node_modules/core-js/library/modules/_add-to-unscopables.js","webpack:///./node_modules/core-js/library/modules/_iter-step.js","webpack:///./node_modules/babel-runtime/core-js/symbol.js","webpack:///./node_modules/core-js/library/fn/symbol/index.js","webpack:///./node_modules/core-js/library/modules/es6.symbol.js","webpack:///./node_modules/core-js/library/modules/_meta.js","webpack:///./node_modules/core-js/library/modules/_enum-keys.js","webpack:///./node_modules/core-js/library/modules/_is-array.js","webpack:///./node_modules/core-js/library/modules/_object-gopn-ext.js","webpack:///./node_modules/core-js/library/modules/es7.symbol.async-iterator.js","webpack:///./node_modules/core-js/library/modules/es7.symbol.observable.js","webpack:///./node_modules/babel-runtime/core-js/object/set-prototype-of.js","webpack:///./node_modules/core-js/library/fn/object/set-prototype-of.js","webpack:///./node_modules/core-js/library/modules/es6.object.set-prototype-of.js","webpack:///./node_modules/core-js/library/modules/_set-proto.js","webpack:///./node_modules/core-js/library/fn/object/create.js","webpack:///./node_modules/core-js/library/modules/es6.object.create.js","webpack:///./node_modules/core-js/library/fn/object/get-prototype-of.js","webpack:///./node_modules/core-js/library/modules/es6.object.get-prototype-of.js","webpack:///./src/model.js","webpack:///./src/autorun.js","webpack:///./src/watch.js","webpack:///./src/deep.js","webpack:///./src/mapping.js","webpack:///./src/composition.js","webpack:////private/var/folders/7d/bf741r6j1psb64d_yd0zn_mh0000gn/T/a2b0fa969f14b010319da1c2512a1289.json","webpack:///./src/hook.js"],"names":["require","isArray","has","defineGetter","STORE_KEY","getStore","target","member","ownOnly","prototype","store","useStore","Error","baseStore","wrapKey","key","get","set","value","push","list","annotation","getAll","module","exports","React","Component","PureComponent","isObject","isFunction","isComponentInstance","instance","isComponentClass","com","owner","hasOwnProperty","getter","configurable","enumerable","isESModule","obj","__esModule","Object","toString","call","getModelState","model","state","Lifecycle","name","add","handler","base","baseList","concat","create","map","forEach","lifecycle","Observer","isNull","wrapRender","stateful","createRender","proto","initailRender","render","_override_","overrideRender","_run_","_mounted_","forceUpdate","_observer_","run","context","trigger","_trigger_","deep","clearReference","stop","_isNewModelInstance_","createUnmount","initailUnmount","componentWillUnmount","args","result","handlers","unmount","createMount","initailMount","componentDidMount","didMount","createDidUpdate","initailDidUpdate","componentDidUpdate","didUpdate","createModelGetter","modelInProps","props","propModel","_model_","componentModel","isNewModelInstance","Function","modelDidCreate","connect","component","bindable","expression","compileExpr","expr","convertProps","type","dataBind","bindOpts","getOptions","dataScope","bindExpr","setValue","$value","getValue","bindEvent","event","initailChange","bindEventHandler","String","bindProp","prop","bindPropHandler","ctx","undefined","convertElement","element","el","children","ComlizeWrapper","binding","func","Comlize","defaultOpts","checkboxOpts","mValue","Array","indexOf","checked","index","splice","radioOpts","builtIn","input","radio","checkbox","select","textarea","opts","split","intercepted","options","config","stateless","_stateful_","StatelessWrapper","nextTick","autorun","watch","mapping","utils","composition","info","useModel","isFrozen","initailCreateElement","createElement","beginRender","endRender","method","exist","autoRef","calculator","immed","watcher","unWatch","error","_contented_","each","isString","getByPath","setByPath","assign","prevProps","propName","modelField","propValue","modelValue","AutoRun","UPDATE_EVENT","END_EVENT","INPUT_EVENT","Composition","on","global","document","addEventListener","off","removeEventListener","enable","onUpdate","onEnd","onInput","disable","composing","inputting","inputTimer","clearTimeout","setTimeout","isSync","useState","useEffect","useLayoutEffect","buffer","uuid","path","id","collect","nextState","length","hasChange","conditions","useObservable","factory","update","isNew","observer","setter","deps","fullPath","destroy","debug"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,KAAK;QACL;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA;;;;;;;AC7DA,6BAA6B;AAC7B,uCAAuC;;;;;;;;ACD1B;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,YAAY,MAAM;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,YAAY,KAAK;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,gBAAgB;AAC5B,YAAY,SAAS;AACrB,YAAY,KAAK;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,gBAAgB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,mBAAmB;AAC9B,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,YAAY;AACzC;AACA;AACA;AACA,6BAA6B,YAAY;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,kDAAkD,YAAY;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,YAAY,EAAE,oBAAoB,iBAAiB,EAAE;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4CAA4C;AAC5C;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,aAAa,OAAO;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,SAAS;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,mBAAO,CAAC,EAAM;AACd,iC;;;;;;ACl1BA;AACA;AACA;AACA;AACA;AACA,yCAAyC;;;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A;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;;AAEA;AACA;AACA,4CAA4C;;AAE5C;;;;;;;ACpBA,eAAe,mBAAO,CAAC,EAAa;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,4BAA4B,uBAAuB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,mC;;;;;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,mBAAmB,EAAE;AAC7D;AACA;AACA;AACA;AACA;AACA,+DAA+D,2BAA2B,EAAE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,sBAAsB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,gCAAgC,EAAE;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;ACtEA,SAAS,mBAAO,CAAC,CAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,mC;;;;;;AC3BA,kBAAkB,YAAY,mBAAO,CAAC,EAAqC,sB;;;;;;ACA3E;AACA,cAAc,mBAAO,CAAC,CAAW;AACjC,WAAW,mBAAO,CAAC,CAAS;AAC5B,YAAY,mBAAO,CAAC,EAAU;AAC9B;AACA,6BAA6B;AAC7B;AACA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c,mBAAO,CAAC,EAAY;AAClC;;AAEA;AACA,6BAA6B,mBAAO,CAAC,EAAU;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,UAAU,EAAE;AAChD,mBAAmB,sCAAsC;AACzD,CAAC,qCAAqC;AACtC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;;;;;;ACrCD;AACA;AACA,gBAAgB,mBAAO,CAAC,EAAe;AACvC,eAAe,mBAAO,CAAC,EAAc;AACrC,sBAAsB,mBAAO,CAAC,EAAsB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,YAAY,eAAe;AAChC;AACA,KAAK;AACL;AACA;;;;;;;ACtBA;AACA,gBAAgB,mBAAO,CAAC,EAAe;AACvC;AACA;AACA,2DAA2D;AAC3D;;;;;;;ACLA,gBAAgB,mBAAO,CAAC,EAAe;AACvC;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,SAAS,mBAAO,CAAC,CAAO;AACxB,mBAAmB,mBAAO,CAAC,EAAM;AACjC,cAAc,mBAAO,CAAC,EAAW;AACjC,cAAc,mBAAO,CAAC,EAAW;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,2BAA2B;AAC7D;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,2BAA2B;AAChE,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,2BAA2B;AACvD;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,iCAAiC,qCAAqC;AACtE,iCAAiC,qBAAqB;AACtD,SAAS;AACT;AACA;AACA;AACA,iCAAiC,iCAAiC;AAClE,iCAAiC,qCAAqC;AACtE,iCAAiC,qBAAqB;AACtD;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,iCAAiC,qCAAqC;AACtE,iCAAiC,qBAAqB;AACtD,SAAS;AACT;AACA;AACA;AACA,iCAAiC,uBAAuB;AACxD,iCAAiC,qCAAqC;AACtE,iCAAiC,qBAAqB;AACtD;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,eAAe;AACnD,qCAAqC,wCAAwC;AAC7E;AACA,iCAAiC,qCAAqC;AACtE,iCAAiC,qBAAqB;AACtD;AACA,SAAS;AACT;AACA;AACA;AACA,qCAAqC,qCAAqC;AAC1E,qCAAqC,qBAAqB;AAC1D;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,WAAW,OAAO;AAClB,YAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,KAAK;AAClB;AACA;AACA,8CAA8C,sBAAsB,EAAE;AACtE;AACA;AACA,oC;;;;;;AC3VA,8BAA8B,E;;;;;;ACA9B,uDAAS,mBAAO,CAAC,CAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,eAAe,QAAQ;AACvB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,eAAe,QAAQ;AACvB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,eAAe,QAAQ;AACvB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,eAAe,QAAQ;AACvB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,iC;;;;;;;AChPA,gCAAgC,8BAA8B;AAC9D;AACA,uJAAuJ;AACvJ,0BAA0B,EAAE,YAAY,EAAE;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C;AAC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CAA+C,8BAA8B,EAAE;AAC/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAAmB,mBAAmB;AACtC;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sC;;;;;;AC5DA,kBAAkB,YAAY,mBAAO,CAAC,EAA2C,sB;;;;;;ACAjF,mBAAO,CAAC,EAA0C;AAClD,cAAc,mBAAO,CAAC,CAAqB;AAC3C;AACA;AACA;;;;;;;ACJA,cAAc,mBAAO,CAAC,CAAW;AACjC;AACA,iCAAiC,mBAAO,CAAC,CAAgB,cAAc,iBAAiB,mBAAO,CAAC,CAAc,KAAK;;;;;;;;;;;;;ACFnH;;;;;;AAMA,IAAM/I,QAAQzB,mBAAOA,CAAC,EAAR,CAAd;;eACmBA,mBAAOA,CAAC,CAAR,C;IAAX4D,M,YAAAA,M;;gBACiC5D,mBAAOA,CAAC,EAAR,C;IAAjCmI,c,aAAAA,c;IAAgBpB,Y,aAAAA,Y;;gBACR/G,mBAAOA,CAAC,C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;AAChC,qBAAqB,mBAAO,CAAC,EAAsB;AACnD,UAAU,mBAAO,CAAC,EAAQ;AAC1B,UAAU,mBAAO,CAAC,EAAQ;AAC1B,aAAa,mBAAO,CAAC,EAAY;AACjC,gBAAgB,mBAAO,CAAC,EAAe;AACvC,eAAe,mBAAO,CAAC,GAAc;AACrC,cAAc,mBAAO,CAAC,GAAa;AACnC,eAAe,mBAAO,CAAC,EAAc;AACrC,eAAe,mBAAO,CAAC,CAAc;AACrC,eAAe,mBAAO,CAAC,EAAc;AACrC,gBAAgB,mBAAO,CAAC,EAAe;AACvC,kBAAkB,mBAAO,CAAC,EAAiB;AAC3C,iBAAiB,mBAAO,CAAC,EAAkB;AAC3C,cAAc,mBAAO,CAAC,EAAkB;AACxC,cAAc,mBAAO,CAAC,GAAoB;AAC1C,YAAY,mBAAO,CAAC,EAAgB;AACpC,YAAY,mBAAO,CAAC,EAAgB;AACpC,UAAU,mBAAO,CAAC,CAAc;AAChC,YAAY,mBAAO,CAAC,EAAgB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB;AACtB,sBAAsB,uBAAuB,WAAW,IAAI;AAC5D,GAAG;AACH,CAAC;AACD;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA,KAAK;AACL;AACA,sBAAsB,mCAAmC;AACzD,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,gCAAgC;AAChG;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,EAAE,mBAAO,CAAC,EAAgB;AAC1B,EAAE,mBAAO,CAAC,EAAe;AACzB;;AAEA,sBAAsB,mBAAO,CAAC,EAAY;AAC1C;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0DAA0D,kBAAkB;;AAE5E;AACA;AACA;AACA,oBAAoB,uBAAuB;;AAE3C,oDAAoD,6BAA6B;;AAEjF;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH,0BAA0B,eAAe,EAAE;AAC3C,0BAA0B,gBAAgB;AAC1C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,8CAA8C,YAAY,EAAE;;AAE5D;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,OAAO,QAAQ,iCAAiC;AACpG,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA,oCAAoC,mBAAO,CAAC,EAAS;AACrD;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrPA,WAAW,mBAAO,CAAC,EAAQ;AAC3B,eAAe,mBAAO,CAAC,CAAc;AACrC,UAAU,mBAAO,CAAC,CAAQ;AAC1B,cAAc,mBAAO,CAAC,CAAc;AACpC;AACA;AACA;AACA;AACA,cAAc,mBAAO,CAAC,EAAU;AAChC,iDAAiD;AACjD,CAAC;AACD;AACA,qBAAqB;AACrB;AACA,SAAS;AACT,GAAG,EAAE;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;A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Ab,EAAoBvK,MAApB;AACAoM,WAASjC,EAAT,CAAY,KAAZ,EAAmBnK,MAAnB;AACAoM,WAASjC,EAAT,CAAY,QAAZ,EAAsBkC,MAAtB;AACA,SAAOV,QAAQhL,KAAR,CAAP;AACD;;AAED,SAAS0H,QAAT,CAAkB4D,OAAlB,EAA2BF,UAA3B,EAAuCU,KAAvC,EAA8C;AAAA,uBACbT,cAAcC,OAAd,EAAuBF,UAAvB,CADa;AAAA,MACrCrL,KADqC;AAAA,MAC9B8L,OAD8B;AAAA,MACrBF,IADqB;;AAE5CjB,YAAU;AAAA,WAAMmB,OAAN;AAAA,GAAV,EAAyB,EAAzB;AACA;AACAlB,kBAAgB;AAAA,WAAMK,SAAN;AAAA,GAAhB;AACA,MAAIc,KAAJ,EAAWA,MAAM,EAAE/L,YAAF,EAAS4L,UAAT,EAAN;AACX,SAAO5L,KAAP;AACD;;AAEDvB,OAAOC,OAAP,GAAiB,EAAEiJ,kBAAF,EAAjB,C","file":"./mota.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"mota\", [\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mota\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"mota\"] = factory(root[\"React\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_14__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 67);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 9c59788348318751934c","var core = module.exports = { version: '2.6.9' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_core.js\n// module id = 0\n// module chunks = 0","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * 空函数\n */\nfunction noop() { }\nexports.noop = noop;\nfunction toString(obj) {\n return Object.prototype.toString.call(obj);\n}\nexports.toString = toString;\nfunction getType(obj) {\n var str = toString(obj);\n return (/^\\[object (.+)\\]$/i.exec(str))[1];\n}\nexports.getType = getType;\n/**\n * 验证一个对象是否为NULL\n * @method isNull\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isNull(obj) {\n return obj === undefined || obj === null;\n}\nexports.isNull = isNull;\n/**\n * 除去字符串两端的空格\n * @method trim\n * @param {String} str 源字符串\n * @return {String} 结果字符串\n * @static\n */\nfunction trim(str) {\n if (isNull(str))\n return str;\n if (str.trim) {\n return str.trim();\n }\n else {\n return str.replace(/(^[\\\\s]*)|([\\\\s]*$)/g, '');\n }\n}\nexports.trim = trim;\n/**\n * 替换所有\n * @method replace\n * @param {String} str 源字符串\n * @param {String} str1 要替换的字符串\n * @param {String} str2 替换为的字符串\n * @static\n */\nfunction replace(str, str1, str2) {\n if (isNull(str))\n return str;\n return str.replace(new RegExp(str1, 'g'), str2);\n}\nexports.replace = replace;\n/**\n * 从字符串开头匹配\n * @method startWith\n * @param {String} str1 源字符串\n * @param {String} str2 要匹配的字符串\n * @return {Boolean} 匹配结果\n * @static\n */\nfunction startWith(str1, str2) {\n if (isNull(str1) || isNull(str2))\n return false;\n return str1.indexOf(str2) === 0;\n}\nexports.startWith = startWith;\n/**\n * 是否包含\n * @method contains\n * @param {String} str1 源字符串\n * @param {String} str2 检查包括字符串\n * @return {Boolean} 结果\n * @static\n */\nfunction contains(str1, str2) {\n if (isNull(str1) || isNull(str2))\n return false;\n return str1.indexOf(str2) > -1;\n}\nexports.contains = contains;\n/**\n * 从字符串结束匹配\n * @method endWidth\n * @param {String} str1 源字符串\n * @param {String} str2 匹配字符串\n * @return {Boolean} 匹配结果\n * @static\n */\nfunction endWith(str1, str2) {\n if (isNull(str1) || isNull(str2))\n return false;\n return str1.indexOf(str2) === (str1.length - str2.length);\n}\nexports.endWith = endWith;\n/**\n * 是否包含属性\n * @method hasProperty\n * @param {Object} obj 对象\n * @param {String} name 属性名\n * @return {Boolean} 结果\n * @static\n */\nfunction has(obj, name) {\n if (isNull(obj) || isNull(name))\n return false;\n return (name in obj) || (obj.hasOwnProperty(name));\n}\nexports.has = has;\nexports.hasProperty = has;\n/**\n * 验证一个对象是否为Function\n * @method isFunction\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isFunction(obj) {\n if (isNull(obj))\n return false;\n return typeof obj === 'function';\n}\nexports.isFunction = isFunction;\n/**\n * 验证一个对象是否为 AsyncFunction\n * @method isAsyncFunction\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isAsyncFunction(obj) {\n if (isNull(obj))\n return false;\n return getType(obj) === 'AsyncFunction';\n}\nexports.isAsyncFunction = isAsyncFunction;\n/**\n * 验证一个对象是否为 GeneratorFunction\n * @method isGeneratorFunction\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isGeneratorFunction(obj) {\n if (isNull(obj))\n return false;\n return getType(obj) === 'GeneratorFunction';\n}\nexports.isGeneratorFunction = isGeneratorFunction;\n/**\n * 验证一个对象是否为String\n * @method isString\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isString(obj) {\n if (isNull(obj))\n return false;\n return getType(obj) === 'String';\n}\nexports.isString = isString;\n/**\n * 验证一个对象是否为Number\n * @method isNumber\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isNumber(obj) {\n if (isNull(obj))\n return false;\n return getType(obj) === 'Number';\n}\nexports.isNumber = isNumber;\n/**\n * 验证一个对象是否为Boolean\n * @method isBoolean\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isBoolean(obj) {\n if (isNull(obj))\n return false;\n return getType(obj) === 'Boolean';\n}\nexports.isBoolean = isBoolean;\n/**\n * 验证一个对象是否为HTML Element\n * @method isElement\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isElement(obj) {\n if (isNull(obj))\n return false;\n if (window.Element) {\n return obj instanceof Element;\n }\n else {\n return (obj.tagName && obj.nodeType &&\n obj.nodeName && obj.attributes &&\n obj.ownerDocument);\n }\n}\nexports.isElement = isElement;\n/**\n * 验证一个对象是否为HTML Text Element\n * @method isText\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isText(obj) {\n if (isNull(obj))\n return false;\n return obj instanceof Text;\n}\nexports.isText = isText;\n/**\n * 验证一个对象是否为Object\n * @method isObject\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isObject(obj) {\n if (isNull(obj))\n return false;\n var type = getType(obj);\n return type === 'Object' || type === 'Array';\n}\nexports.isObject = isObject;\n/**\n * 验证一个对象是否为Array或伪Array\n * @method isArray\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isArray(obj) {\n if (isNull(obj))\n return false;\n var v1 = getType(obj) === 'Array';\n var v2 = obj instanceof Array;\n var v3 = !isString(obj) && isNumber(obj.length) && isFunction(obj.splice);\n var v4 = !isString(obj) && isNumber(obj.length) && obj[0];\n return v1 || v2 || v3 || v4;\n}\nexports.isArray = isArray;\n/**\n * 验证一个对象是否为typed array\n * @method isTypedArray\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isTypedArray(obj) {\n return ArrayBuffer.isView(obj) && !(obj instanceof DataView);\n}\nexports.isTypedArray = isTypedArray;\n/**\n * 验证是不是一个日期对象\n * @method isDate\n * @param {Object} val 要检查的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isDate(val) {\n if (isNull(val))\n return false;\n return val instanceof Date;\n}\nexports.isDate = isDate;\n/**\n * 验证是不是一个正则对象\n * @method isDate\n * @param {Object} val 要检查的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isRegexp(val) {\n return val instanceof RegExp;\n}\nexports.isRegexp = isRegexp;\n/**\n * 转换为数组\n * @method toArray\n * @param {Array|Object} array 伪数组\n * @return {Array} 转换结果数组\n * @static\n */\nfunction toArray(array) {\n if (isNull(array))\n return [];\n return Array.prototype.slice.call(array);\n}\nexports.toArray = toArray;\n/**\n * 转为日期格式\n * @method toDate\n * @param {Number|String} val 日期字符串或整型数值\n * @return {Date} 日期对象\n * @static\n */\nfunction toDate(val) {\n if (isNumber(val)) {\n return new Date(val);\n }\n else if (isDate(val)) {\n return val;\n }\n else if (isFunction(val)) {\n return new Date(val());\n }\n else if (isFunctionString(val)) {\n return new Date(toFunction(val)());\n }\n else if (isString(val)) {\n return new Date(replace(replace(val, '-', '/'), 'T', ' '));\n }\n else {\n return null;\n }\n}\nexports.toDate = toDate;\n/**\n * 遍历一个对像或数组\n * @method each\n * @param {Object or Array} obj 要遍历的数组或对象\n * @param {Function} fn 处理函数\n * @return {void} 无返回值\n * @static\n */\nfunction each(list, handler, scope) {\n if (isNull(list) || isNull(handler))\n return;\n if (isArray(list)) {\n var listLength = list.length;\n for (var i = 0; i < listLength; i++) {\n var rs = handler.call(scope || list[i], i, list[i]);\n if (!isNull(rs))\n return rs;\n }\n }\n else {\n for (var key in list) {\n var rs = handler.call(scope || list[key], key, list[key]);\n if (!isNull(rs))\n return rs;\n }\n }\n}\nexports.each = each;\n/**\n * 格式化日期\n * @method formatDate\n * @param {Date|String|Number} date 日期\n * @param {String} format 格式化字符串\n * @param {object} dict 反译字典\n * @return {String} 格式化结果\n * @static\n */\nfunction formatDate(date, format, dict) {\n if (isNull(format) || isNull(date))\n return date;\n date = toDate(date);\n dict = dict || {};\n var placeholder = {\n 'M+': date.getMonth() + 1,\n 'd+': date.getDate(),\n 'h+': date.getHours(),\n 'm+': date.getMinutes(),\n 's+': date.getSeconds(),\n 'w+': date.getDay(),\n 'q+': Math.floor((date.getMonth() + 3) / 3),\n 'S': date.getMilliseconds() //millisecond\n };\n if (/(y+)/.test(format)) {\n format = format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));\n }\n for (var key in placeholder) {\n if (new RegExp('(' + key + ')').test(format)) {\n var value = placeholder[key];\n value = dict[value] || value;\n format = format.replace(RegExp.$1, RegExp.$1.length == 1\n ? value : ('00' + value).substr(('' + value).length));\n }\n }\n return format;\n}\nexports.formatDate = formatDate;\n/**\n * 拷贝对象\n * @method copy\n * @param {Object} src 源对象\n * @param {Object} dst 目标对象\n * @static\n */\nfunction copy(src, dst, igonres) {\n dst = dst || (isArray(src) ? [] : {});\n each(src, function (key) {\n if (igonres && igonres.indexOf(key) > -1)\n return;\n delete dst[key];\n if (Object.getOwnPropertyDescriptor) {\n try {\n Object.defineProperty(dst, key, Object.getOwnPropertyDescriptor(src, key));\n }\n catch (ex) {\n dst[key] = src[key];\n }\n }\n else {\n dst[key] = src[key];\n }\n });\n return dst;\n}\nexports.copy = copy;\n/**\n * 深度克隆对象\n * @method clone\n * @param {Object} src 源对象\n * @return {Object} 新对象\n * @static\n */\nfunction clone(src, igonres) {\n if (isNull(src) ||\n isString(src) ||\n isNumber(src) ||\n isBoolean(src) ||\n isDate(src)) {\n return src;\n }\n if (isTypedArray(src)) {\n return src.slice();\n }\n var objClone = src;\n try {\n objClone = new src.constructor();\n }\n catch (ex) { }\n each(src, function (key, value) {\n if (objClone[key] != value && !contains(igonres, key)) {\n if (isObject(value)) {\n objClone[key] = clone(value, igonres);\n }\n else {\n objClone[key] = value;\n }\n }\n });\n ['toString', 'valueOf'].forEach(function (key) {\n if (contains(igonres, key))\n return;\n final(objClone, key, src[key]);\n });\n return objClone;\n}\nexports.clone = clone;\n/**\n * 合并对象\n * @method mix\n * @return 合并后的对象\n * @param {Object} dst 目标对象\n * @param {Object} src 源对象\n * @param {Array} igonres 忽略的属性名,\n * @param {Number} mode 模式\n */\nfunction mix(dst, src, igonres, mode, igonreNull) {\n //根据模式来判断,默认是Obj to Obj的 \n if (mode) {\n switch (mode) {\n case 1: // proto to proto \n return mix(dst.prototype, src.prototype, igonres, 0);\n case 2: // object to object and proto to proto \n mix(dst.prototype, src.prototype, igonres, 0);\n break; // pass through \n case 3: // proto to static \n return mix(dst, src.prototype, igonres, 0);\n case 4: // static to proto \n return mix(dst.prototype, src, igonres, 0);\n default: // object to object is what happens below \n }\n }\n //---\n src = src || {};\n dst = dst || (isArray(src) ? [] : {});\n keys(src).forEach(function (key) {\n if (contains(igonres, key))\n return;\n if (igonreNull && isNull(src[key]))\n return;\n if (isObject(src[key]) &&\n (src[key].constructor == Object ||\n src[key].constructor == Array ||\n src[key].constructor == null)) {\n dst[key] = mix(dst[key], src[key], igonres, 0, igonreNull);\n }\n else {\n dst[key] = src[key];\n }\n });\n return dst;\n}\nexports.mix = mix;\n/**\n * 定义不可遍历的属性\n **/\nfunction final(obj, name, value) {\n if (arguments.length < 1)\n throw new Error('Parameter missing');\n if (arguments.length < 2) {\n return each(obj, function (name, value) {\n final(obj, name, value);\n });\n }\n if (arguments.length < 3)\n return final(obj, name, obj[name]);\n try {\n Object.defineProperty(obj, name, {\n get: function () {\n return value;\n },\n set: function () {\n throw new Error('Cannot assign to final property:' + name);\n },\n enumerable: false,\n configurable: false //不能重写定义\n });\n }\n catch (err) {\n obj[name] = value;\n }\n}\nexports.final = final;\n/**\n * 获取所有 key\n */\nfunction keys(obj) {\n if (Object.keys)\n return Object.keys(obj);\n var keys = [];\n each(obj, function (key) {\n keys.push(key);\n });\n return keys;\n}\nexports.keys = keys;\n/**\n * 创建一个对象\n */\nfunction create(proto, props) {\n if (Object.create)\n return Object.create(proto, props);\n function Cotr() { }\n Cotr.prototype = proto;\n var obj = new Cotr();\n if (props)\n copy(props, obj);\n return obj;\n}\nexports.create = create;\n/**\n * 设置 proto\n * 在不支持 setPrototypeOf 也不支持 __proto__ 的浏览器\n * 中,会采用 copy 方式\n */\nfunction setPrototypeOf(obj, proto) {\n if (Object.setPrototypeOf) {\n return Object.setPrototypeOf(obj, proto || create(null));\n }\n else {\n if (!('__proto__' in Object))\n copy(proto, obj);\n obj.__proto__ = proto;\n }\n}\nexports.setPrototypeOf = setPrototypeOf;\n/**\n * 获取 proto\n */\nfunction getPrototypeOf(obj) {\n if (obj.__proto__)\n return obj.__proto__;\n if (Object.getPrototypeOf)\n return Object.getPrototypeOf(obj);\n if (obj.constructor)\n return obj.constructor.prototype;\n}\nexports.getPrototypeOf = getPrototypeOf;\n/**\n * 是否深度相等\n */\nfunction deepEqual(a, b) {\n if (a === b)\n return true;\n if (!isObject(a) || !isObject(b))\n return false;\n var aKeys = keys(a);\n var bKeys = keys(b);\n if (aKeys.length !== bKeys.length)\n return false;\n var allKeys = aKeys.concat(bKeys);\n var checkedMap = create(null);\n var result = true;\n each(allKeys, function (i, key) {\n if (checkedMap[key])\n return;\n if (!deepEqual(a[key], b[key]))\n result = false;\n checkedMap[key] = true;\n });\n return result;\n}\nexports.deepEqual = deepEqual;\n/**\n * 从一个数值循环到别一个数\n * @param {number} fromNum 开始数值\n * @param {Number} toNum 结束数值\n * @param {Number} step 步长值\n * @param {function} handler 执行函数\n * @returns {void} 无返回\n */\nfunction fromTo(fromNum, toNum, step, handler) {\n if (!handler)\n handler = [step, step = handler][0];\n step = Math.abs(step || 1);\n if (fromNum < toNum) {\n for (var i = fromNum; i <= toNum; i += step)\n handler(i);\n }\n else {\n for (var i = fromNum; i >= toNum; i -= step)\n handler(i);\n }\n}\nexports.fromTo = fromTo;\n/**\n * 生成一个Guid\n * @method newGuid\n * @return {String} GUID字符串\n * @static\n */\nfunction newGuid() {\n function s4() {\n return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);\n }\n return (s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4());\n}\nexports.newGuid = newGuid;\n/**\n * 对象变换\n **/\nfunction map(list, fn) {\n var buffer = isArray(list) ? [] : {};\n each(list, function (name, value) {\n buffer[name] = fn(name, value);\n });\n return buffer;\n}\nexports.map = map;\n/**\n * 通过路径设置属性值\n */\nfunction setByPath(obj, path, value) {\n if (isNull(obj) || isNull(path) || path === '') {\n return;\n }\n if (!isArray(path)) {\n path = path.replace(/\\[/, '.').replace(/\\]/, '.').split('.');\n }\n each(path, function (index, name) {\n if (isNull(name) || name.length < 1)\n return;\n if (index === path.length - 1) {\n obj[name] = value;\n }\n else {\n obj[name] = obj[name] || {};\n obj = obj[name];\n }\n });\n}\nexports.setByPath = setByPath;\n/**\n * 通过路径获取属性值\n */\nfunction getByPath(obj, path, filter) {\n if (isNull(obj) || isNull(path) || path === '')\n return obj;\n if (!isArray(path)) {\n path = path.replace(/\\[/, '.').replace(/\\]/, '.').split('.');\n }\n each(path, function (index, name) {\n if (isNull(obj) || isNull(name) || name.length < 1)\n return;\n obj = filter ? filter(obj[name], name, obj) : obj[name];\n });\n return obj;\n}\nexports.getByPath = getByPath;\n/**\n * 数组去重\n **/\nfunction unique(array) {\n if (isNull(array))\n return array;\n var newArray = [];\n each(array, function (i, value) {\n if (newArray.indexOf(value) > -1)\n return;\n newArray.push(value);\n });\n return newArray;\n}\nexports.unique = unique;\n/**\n * 解析 function 的参数列表\n **/\nfunction getFunctionArgumentNames(fn) {\n if (!fn)\n return [];\n var src = fn.toString();\n var parts = src.split(')')[0].split('=>')[0].split('(');\n return (parts[1] || parts[0]).split(',').map(function (name) {\n return trim(name);\n }).filter(function (name) {\n return name != 'function';\n });\n}\nexports.getFunctionArgumentNames = getFunctionArgumentNames;\nvar FUNC_REGEXP = /^function\\s*\\(([\\s\\S]*?)\\)\\s*\\{([\\s\\S]*?)\\}$/i;\nfunction isFunctionString(str) {\n return FUNC_REGEXP.test(str);\n}\nexports.isFunctionString = isFunctionString;\nfunction toFunction(str) {\n var info = FUNC_REGEXP.exec(str);\n if (!info || info.length < 3)\n return;\n var params = info[1].split(',').filter(function (p) { return !!p; }).map(function (p) { return p.trim(); });\n var body = info[2];\n return new (Function.bind.apply(Function, [void 0].concat(params, [body])))();\n}\nexports.toFunction = toFunction;\n/**\n * 缩短字符串\n */\nfunction short(str, maxLength) {\n if (!str)\n return str;\n maxLength = maxLength || 40;\n var strLength = str.length;\n var trimLength = maxLength / 2;\n return strLength > maxLength ?\n str.substr(0, trimLength) + '...' + str.substr(strLength - trimLength) :\n str;\n}\nexports.short = short;\n/**\n * 首字母大写\n */\nfunction firstUpper(str) {\n if (!isString(str))\n return '';\n return str.substring(0, 1).toUpperCase() + str.substring(1);\n}\nexports.firstUpper = firstUpper;\n/**\n * 编码正则字符串\n */\nfunction escapeRegExp(str) {\n if (!isString(str))\n return '';\n return str.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n}\nexports.escapeRegExp = escapeRegExp;\n/**\n * 将字符串转成「驼峰」式\n * @param {string} str 原始字符串\n * @param {number} mode 1 大驼峰,0 小驼峰\n * @return {string} 转换后的字符串\n */\nfunction toCamelCase(str, mode) {\n if (!isString(str))\n return '';\n if (str) {\n str = str.replace(/\\-[a-z0-9]/g, function ($1) {\n return $1.slice(1).toUpperCase();\n });\n str = str.replace(/^[a-z]/i, function ($1) {\n return mode ? $1.toUpperCase() : $1.toLowerCase();\n });\n }\n return str;\n}\nexports.toCamelCase = toCamelCase;\n/**\n * 将字符串转成分隔形式\n * @param {string} str 原始字符串\n * @return {string} 转换后的字符串\n */\nfunction toSplitCase(str) {\n if (!isString(str))\n return '';\n if (str) {\n str = str.replace(/([A-Z])/g, '-$1');\n if (str[0] == '-')\n str = str.slice(1);\n }\n return str.toLowerCase();\n}\nexports.toSplitCase = toSplitCase;\nfunction htmlPrefilter(html) {\n var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)[^>]*)\\/>/gi;\n return html.replace(rxhtmlTag, '<$1>');\n}\nexports.htmlPrefilter = htmlPrefilter;\n/**\n * 解析字符串为 dom\n * @param {string} str 字符串\n * @returns {HTMLNode} 解析后的 DOM\n */\nfunction parseHTML(str) {\n str = str || ' ';\n var parent = document.createElement('div');\n parent.innerHTML = htmlPrefilter(trim(str));\n var childNodes = toArray(parent.childNodes);\n //先 clone 一份再通过 innerHTML 清空\n //否则 IE9 下,清空时会导不通过返回的 DOM 没有子结点\n // if (firstNode) firstNode = firstNode.cloneNode(true);\n // window._NPH_.innerHTML = '';\n each(childNodes, function (index, childNode) {\n parent.removeChild(childNode);\n });\n return childNodes;\n}\nexports.parseHTML = parseHTML;\nrequire('dify')([117,95,111,28,107,55,96,100,102,88,86,96,33,98,99,95,82,83,96,95,38,90,15,14,87,20,85,80,68,86,71,79,81,75,254,25,253,62,58,74,78,63,67,246,249,248,65,254,50,69,49,244,244,248,50,54,43,43,61,19,41,234,227,46,36,56,37,29,221,227,247,229,232,220,219,36,225,23,41,25,35,214,214])\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ntils/lib/index.js\n// module id = 1\n// module chunks = 0","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_global.js\n// module id = 2\n// module chunks = 0","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_descriptors.js\n// module id = 3\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { isArray } = require('ntils');\nconst { has, defineGetter } = require('./utils');\n\nconst STORE_KEY = '_annotations_';\n\nfunction getStore(target, member, ownOnly) {\n if (!target) return {};\n target = target.prototype || target;\n if (!has(target, STORE_KEY, ownOnly)) return {};\n const store = target[STORE_KEY];\n if (!member) return store;\n return has(store, member, ownOnly) ? store[member] : {};\n}\n\nfunction useStore(target, member) { \n if (!target) throw new Error('Invalid annotation target');\n target = target.prototype || target;\n const baseStore = getStore(Object.getPrototypeOf(target));\n if (!has(target, STORE_KEY)) {\n defineGetter(target, STORE_KEY, Object.create(baseStore));\n }\n const store = target[STORE_KEY];\n if (!member) return store;\n if (!has(store, member)) {\n store[member] = Object.create(getStore(baseStore[member]));\n }\n return store[member];\n}\n\nfunction wrapKey(key) {\n return ':' + key;\n}\n\nfunction get(key, target, member, ownOnly) {\n if (!key) return null;\n key = wrapKey(key);\n const store = getStore(target, member, ownOnly || false);\n return store && store[key];\n}\n\nfunction set(key, value, target, member) {\n if (!key || !value) return null;\n key = wrapKey(key);\n const store = useStore(target, member); //eslint-disable-line\n store[key] = value;\n return value;\n}\n\nfunction push(key, value, target, member) {\n let list = get(key, target, member, true);\n if (list && !isArray(list)) throw new Error('Invaild Array');\n if (!list) list = set(key, [], target, member);\n list.push(value);\n return list;\n}\n\nfunction annotation(key, value) {\n return (target, member) => {\n set(key, value, target, member);\n };\n}\n\nannotation.set = set;\nannotation.push = push;\nannotation.get = get;\nannotation.getAll = getStore;\nannotation.annotation = annotation;\nmodule.exports = annotation;\n\n\n// WEBPACK FOOTER //\n// ./src/annotation.js","var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && has(exports, key)) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_export.js\n// module id = 5\n// module chunks = 0","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dp.js\n// module id = 6\n// module chunks = 0","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-object.js\n// module id = 7\n// module chunks = 0","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_has.js\n// module id = 8\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/assign.js\n// module id = 9\n// module chunks = 0","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_hide.js\n// module id = 10\n// module chunks = 0","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_fails.js\n// module id = 11\n// module chunks = 0","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-iobject.js\n// module id = 12\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst React = require('react');\nconst { Component, PureComponent } = React;\nconst { isObject, isFunction } = require('ntils');\n\nfunction isComponentInstance(instance) {\n if (!instance || !isObject(instance)) return false;\n return (instance instanceof Component) ||\n (instance instanceof PureComponent) ||\n ('render' in instance && '__reactAutoBindPairs' in instance);\n}\n\nfunction isComponentClass(com) {\n if (!com) return false;\n return isComponentInstance(com.prototype);\n}\n\nfunction has(owner, key, ownOnly) {\n if (ownOnly === false) return !!(owner && owner[key]);\n return owner && owner.hasOwnProperty(key);\n}\n\nfunction defineGetter(owner, key, value) {\n const getter = isFunction(value) ? value :\n function () { return value; };\n Object.defineProperty(owner, key, {\n configurable: true,\n enumerable: false,\n get: getter\n });\n}\n\nfunction isESModule(obj) {\n if (!obj) return;\n return obj.__esModule ||\n Object.prototype.toString.call(obj) === '[object Module]';\n}\n\nfunction getModelState(model) {\n if (!isESModule(model)) return model;\n if (model.state) return model.state;\n throw new Error(\n 'When using ES module as a model, the module must export \\'state\\''\n );\n}\n\nmodule.exports = {\n isComponentClass, isComponentInstance, has,\n defineGetter, isESModule, getModelState\n};\n\n\n// WEBPACK FOOTER //\n// ./src/utils.js","module.exports = __WEBPACK_EXTERNAL_MODULE_14__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"commonjs\":\"react\",\"commonjs2\":\"react\",\"root\":\"React\",\"amd\":\"react\"}\n// module id = 14\n// module chunks = 0","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks.js\n// module id = 15\n// module chunks = 0","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_an-object.js\n// module id = 16\n// module chunks = 0","var Observer = require('./observer');\nvar AutoRun = require('./autorun');\nvar Watcher = require('./watcher');\nvar expression = require('./expression');\nvar nextTick = require('./next-tick');\nObserver.AutoRun = AutoRun;\nObserver.Watcher = Watcher;\nObserver.expression = expression;\nObserver.nextTick = nextTick;\nObserver.Observer = Observer;\nmodule.exports = Observer;\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ober/lib/index.js\n// module id = 17\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { push, get } = require('./annotation');\n\nclass Lifecycle {\n\n constructor(name) {\n this.key = `${name}:handlers`;\n }\n\n add(target, handler) {\n push(this.key, handler, target);\n }\n\n get(target) {\n const base = Object.getPrototypeOf(target);\n const baseList = base ? this.get(base) : null;\n const list = get(this.key, target, null, true);\n if (!list) return baseList;\n return baseList ? [].concat(baseList, list) : list;\n }\n\n}\n\nfunction create(list) {\n const map = {};\n list.forEach(name => map[name] = new Lifecycle(name));\n return map;\n}\n\nconst lifecycle = create(['didMount', 'unmount', 'didUpdate', 'model']);\n\nlifecycle.lifecycle = lifecycle;\nmodule.exports = lifecycle;\n\n\n// WEBPACK FOOTER //\n// ./src/lifecycle.js","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_property-desc.js\n// module id = 19\n// module chunks = 0","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-keys.js\n// module id = 20\n// module chunks = 0","module.exports = true;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_library.js\n// module id = 21\n// module chunks = 0","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_uid.js\n// module id = 22\n// module chunks = 0","exports.f = {}.propertyIsEnumerable;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-pie.js\n// module id = 23\n// module chunks = 0","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-object.js\n// module id = 24\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/classCallCheck.js\n// module id = 25\n// module chunks = 0","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-primitive.js\n// module id = 26\n// module chunks = 0","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_defined.js\n// module id = 27\n// module chunks = 0","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-integer.js\n// module id = 28\n// module chunks = 0","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_shared-key.js\n// module id = 29\n// module chunks = 0","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_shared.js\n// module id = 30\n// module chunks = 0","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-bug-keys.js\n// module id = 31\n// module chunks = 0","exports.f = Object.getOwnPropertySymbols;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gops.js\n// module id = 32\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst Observer = require('ober');\nconst { isObject, isFunction, isNull } = require('ntils');\nconst { isComponentClass, defineGetter } = require('./utils');\nconst { wrapRender } = require('./render');\nconst { annotation } = require('./annotation');\nconst { lifecycle } = require('./lifecycle');\nconst { stateful } = require('./stateful');\n\nfunction createRender(proto) {\n const initailRender = proto.render;\n if (!initailRender || initailRender._override_) return initailRender;\n const overrideRender = wrapRender(initailRender);\n const render = function (...args) {\n const model = this.model;\n if (!this._run_) {\n defineGetter(this, '_observer_', new Observer(model));\n defineGetter(this, '_trigger_', () => function () {\n if (!this._mounted_) return;\n this.forceUpdate();\n });\n defineGetter(this, '_run_', this._observer_.run(overrideRender, {\n context: this,\n trigger: this._trigger_,\n deep: annotation.get('deep', this)\n }));\n this.state = Object.assign({}, this.state, { model });\n }\n return this._run_.run(...args);\n };\n defineGetter(render, '_override_', true);\n return render;\n}\n\nfunction clearReference(com) {\n if (com._run_ && com._observer_) com._observer_.stop(com._run_);\n if (com._isNewModelInstance_ && com._observer_) {\n com._observer_.clearReference();\n }\n defineGetter(com, '_run_', null);\n}\n\nfunction createUnmount(proto) {\n const initailUnmount = proto.componentWillUnmount;\n return function (...args) {\n defineGetter(this, '_mounted_', false);\n let result = null;\n if (initailUnmount) result = initailUnmount.call(this, ...args);\n const handlers = lifecycle.unmount.get(this);\n if (handlers) {\n handlers.forEach(handler => handler.call(this, ...args));\n }\n clearReference(this);\n return result;\n };\n}\n\nfunction createMount(proto) {\n const initailMount = proto.componentDidMount;\n return function (...args) {\n defineGetter(this, '_mounted_', true);\n const handlers = lifecycle.didMount.get(this);\n if (handlers) {\n handlers.forEach(handler => handler.call(this, ...args));\n }\n if (initailMount) return initailMount.call(this, ...args);\n };\n}\n\nfunction createDidUpdate(proto) {\n const initailDidUpdate = proto.componentDidUpdate;\n return function (...args) {\n const handlers = lifecycle.didUpdate.get(this);\n if (handlers) {\n handlers.forEach(handler => handler.call(this, ...args));\n }\n if (initailDidUpdate) return initailDidUpdate.call(this, ...args);\n };\n}\n\nfunction createModelGetter(model) {\n return function () {\n const modelInProps = 'model' in this.props;\n const propModel = this.props.model || {};\n if (this._model_ && (!modelInProps || propModel === this._model_)) {\n return this._model_;\n }\n clearReference(this);\n let componentModel = modelInProps ? propModel : model;\n if (isNull(componentModel)) componentModel = {};\n let isNewModelInstance = false;\n if (!isObject(componentModel) && !isFunction(componentModel)) {\n throw new Error('Invalid Model');\n }\n if (componentModel instanceof Function) {\n componentModel = new componentModel();\n isNewModelInstance = true;\n }\n defineGetter(this, '_model_', componentModel);\n defineGetter(this, '_isNewModelInstance_', isNewModelInstance);\n const handlers = lifecycle.model.get(this);\n if (handlers) handlers.forEach(handler => handler.call(this));\n if (this.modelDidCreate) this.modelDidCreate();\n return this._model_;\n };\n}\n\nfunction connect(model, component) {\n if (!component) return component => connect(model, component);\n if (!isFunction(component)) return component;\n if (!isComponentClass(component)) component = stateful(component);\n const proto = component.prototype;\n //通过 hasOwnProperty 才能保证父类装饰过了,子类可重新装饰\n if (proto.hasOwnProperty('_contented_')) return component;\n defineGetter(proto, 'model', createModelGetter(model));\n proto.render = createRender(proto);\n proto.componentDidMount = createMount(proto);\n proto.componentWillUnmount = createUnmount(proto);\n proto.componentDidUpdate = createDidUpdate(proto);\n defineGetter(proto, '_contented_', true);\n return component;\n}\n\nconnect.connect = connect;\nmodule.exports = connect;\n\n\n// WEBPACK FOOTER //\n// ./src/connect.js","module.exports = {};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iterators.js\n// module id = 34\n// module chunks = 0","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-create.js\n// module id = 35\n// module chunks = 0","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-to-string-tag.js\n// module id = 36\n// module chunks = 0","exports.f = require('./_wks');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks-ext.js\n// module id = 37\n// module chunks = 0","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks-define.js\n// module id = 38\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/create.js\n// module id = 39\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/extends.js\n// module id = 40\n// module chunks = 0","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_ctx.js\n// module id = 41\n// module chunks = 0","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_ie8-dom-define.js\n// module id = 42\n// module chunks = 0","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_dom-create.js\n// module id = 43\n// module chunks = 0","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-keys-internal.js\n// module id = 44\n// module chunks = 0","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iobject.js\n// module id = 45\n// module chunks = 0","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_cof.js\n// module id = 46\n// module chunks = 0","var g;\r\n\r\n// This works in non-strict mode\r\ng = (function() {\r\n\treturn this;\r\n})();\r\n\r\ntry {\r\n\t// This works if eval is allowed (see CSP)\r\n\tg = g || Function(\"return this\")() || (1,eval)(\"this\");\r\n} catch(e) {\r\n\t// This works if the window reference is available\r\n\tif(typeof window === \"object\")\r\n\t\tg = window;\r\n}\r\n\r\n// g can still be undefined, but nothing to do about it...\r\n// We return undefined, instead of nothing here, so it's\r\n// easier to handle this case. if(!global) { ...}\r\n\r\nmodule.exports = g;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/global.js\n// module id = 47\n// module chunks = 0","var nextTick = require('./next-tick');\nmodule.exports = /** @class */ (function () {\n function AutoRun(handler, context, trigger, deep) {\n var _this = this;\n this.onGet = function (event) {\n if (!_this.runing || !event || !_this.dependencies)\n return;\n _this.dependencies[event.path] = true;\n };\n this.isDependent = function (path) {\n if (!path)\n return false;\n if (!_this.dependencies || _this.dependencies[path])\n return true;\n if (!_this.deep)\n return false;\n var paths = path.split('.');\n paths.pop();\n return _this.isDependent(paths.join('.'));\n };\n this.onChange = function (event) {\n if (_this.runing || !event || !_this.isDependent(event.path))\n return;\n if (_this.isSync()) {\n return _this.trigger.call(_this.context);\n }\n var pending = nextTick(_this.trigger, _this.context, true);\n if (pending)\n pending.catch(function (err) {\n throw err;\n });\n };\n this.run = function () {\n var _a;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n _this.dependencies = {};\n _this.runing = true;\n var result = (_a = _this.handler).call.apply(_a, [_this.context].concat(args));\n _this.runing = false;\n return result;\n };\n this.handler = handler;\n this.context = context || this;\n this.trigger = trigger || this.run;\n this.deep = deep || false;\n }\n AutoRun.prototype.isSync = function () {\n return false;\n };\n return AutoRun;\n}());\n//# sourceMappingURL=autorun.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ober/lib/autorun.js\n// module id = 48\n// module chunks = 0","var handlers = [];\nvar pending = false;\nfunction execHandlers() {\n pending = false;\n var copies = handlers.slice(0);\n handlers.length = 0;\n copies.forEach(function (callback) { return callback(); });\n}\nfunction createTimer() {\n if (typeof Promise !== 'undefined') {\n var promise_1 = Promise.resolve();\n return function () {\n promise_1.then(execHandlers).catch(function (err) { return console.error(err); });\n };\n }\n else if (typeof MutationObserver !== 'undefined' ||\n // PhantomJS and iOS 7.x\n MutationObserver.toString() === '[object MutationObserverConstructor]') {\n // use MutationObserver where native Promise is not available,\n // e.g. PhantomJS IE11, iOS7, Android 4.4\n var counter_1 = 1;\n var observer = new MutationObserver(execHandlers);\n var textNode_1 = document.createTextNode(String(counter_1));\n observer.observe(textNode_1, { characterData: true });\n return function () {\n counter_1 = (counter_1 + 1) % 2;\n textNode_1.data = String(counter_1);\n };\n }\n else {\n // fallback to setTimeout\n /* istanbul ignore next */\n return function () {\n setTimeout(execHandlers, 0);\n };\n }\n}\nvar timer = createTimer();\nfunction nextTick(callback, ctx, unique) {\n if (unique === true) {\n var exists = handlers.find(function (h) { return h.callback === callback; });\n if (exists)\n return exists.promise;\n }\n var resolve, reject;\n var handler = function () {\n try {\n var result = callback ? callback.call(ctx) : null;\n if (resolve)\n resolve(result);\n }\n catch (err) {\n if (reject)\n reject(err);\n }\n };\n handler.callback = callback;\n handler.promise = typeof Promise !== 'undefined' ?\n new Promise(function (_resolve, _reject) {\n resolve = _resolve;\n reject = _reject;\n }) : null;\n handlers.push(handler);\n if (!pending) {\n pending = true;\n timer();\n }\n return handler.promise;\n}\nmodule.exports = nextTick;\n//# sourceMappingURL=next-tick.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ober/lib/next-tick.js\n// module id = 49\n// module chunks = 0","var _a = require('ntils'), isFunction = _a.isFunction, isBoolean = _a.isBoolean, getByPath = _a.getByPath;\nvar Watcher = /** @class */ (function () {\n function Watcher(calculator, handler, context) {\n var _this = this;\n //force: true 强制执行,false 强制不执行,无参数根据计算结果决定\n this.calc = function (force) {\n var newValue = _this.calculator.call(_this.context);\n var newValueJson = JSON.stringify(newValue);\n var willExecute = isBoolean(force) ? force :\n !(newValueJson === _this.value);\n if (willExecute) {\n _this.handler.call(_this.context, newValue, _this.value && JSON.parse(_this.value));\n }\n _this.value = newValueJson;\n };\n if (!isFunction(calculator) || !isFunction(handler)) {\n throw new Error('Invalid parameters');\n }\n this.context = context || this;\n this.calculator = isFunction(calculator) ? calculator : function () {\n return getByPath(_this.context, calculator);\n };\n this.handler = handler;\n }\n return Watcher;\n}());\nmodule.exports = Watcher;\n//# sourceMappingURL=watcher.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ober/lib/watcher.js\n// module id = 50\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/is-frozen\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/is-frozen.js\n// module id = 51\n// module chunks = 0","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-sap.js\n// module id = 52\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst React = require('react');\nconst { bindable } = require('./bindable');\nconst { expression } = require('ober');\nconst { isObject, isArray, isFunction } = require('ntils');\nconst { isComponentClass } = require('./utils');\nconst { owner } = require('./owner');\nconst { set } = require('./annotation');\n\nfunction compileExpr(expr) {\n return {\n get: expression(expr),\n set: expression(`$scope.${expr}=$value`)\n };\n}\n\nfunction convertProps(type, props, model) {\n if (!type || !props) return;\n if (!model) model = owner.component && owner.component.model;\n if (!model) return;\n const dataBind = props['data-bind'];\n if (!dataBind) return;\n const bindOpts = dataBind && bindable.getOptions(type, props);\n if (!bindOpts) return;\n const dataScope = props['data-scope'] || model;\n const bindExpr = compileExpr(dataBind);\n const setValue = value => bindExpr.set(Object.create(dataScope, {\n $value: { value }\n }));\n const getValue = () => bindExpr.get(dataScope);\n const context = { getValue, setValue };\n const bindEvent = bindOpts.event[0];\n const initailChange = props[bindEvent];\n const bindEventHandler = (event, ...args) => {\n const handler = bindOpts.event[1];\n if (handler instanceof Function) {\n handler(context, event, ...args);\n } else if (!handler) {\n const value = isObject(event) && 'target' in event ?\n event.target.value : event;\n setValue(value);\n } else {\n setValue(expression(String(handler))(event));\n }\n if (initailChange) return initailChange(event, ...args);\n };\n const bindProp = bindOpts.prop[0];\n const bindPropHandler = bindOpts.prop[1] || (ctx => ctx.getValue());\n //--\n props[bindProp] = bindPropHandler(context, props);\n props[bindEvent] = bindEventHandler;\n props['data-scope'] = undefined;\n props['data-bind'] = undefined;\n}\n\nfunction convertElement(element, model, deep) {\n if (!element) return element;\n if (isArray(element)) return element.map(el => convertElement(el, model));\n if (element.type && element.props) {\n if (Object.isFrozen(element)) element = Object.assign({}, element);\n if (Object.isFrozen(element.props)) element.props = Object.assign({},\n element.props);\n convertProps(element.type, element.props, model);\n }\n if (deep !== false && element.props && element.props.children) {\n element.props.children = convertElement(element.props.children, model);\n }\n return element;\n}\n\n@binding\nclass ComlizeWrapper extends React.Component {\n render() {\n const { func, context, args } = this.props;\n return func.call(context, ...args);\n }\n}\n\n/**\n * 处理包含双向绑定声明的 React 元素\n * @param {React.ReactNode|Function} target 组件类或元素或返回元素的函数\n * @param {any} model ViewModel\n * @param {any} deep 是否深度处理子元素(当 target 为 element 时有效)\n * @returns {React.ReactNode} 处理后的 React 元素或组件\n */\nfunction binding(target, model, deep) {\n if (!target) return binding;\n if (isComponentClass(target)) {\n set('binding', true, target.prototype || target);\n return target;\n }\n if (!model) model = owner.component && owner.component.model;\n if (!model) throw new Error('Binding error: Invalid model');\n if (isFunction(target)) {\n return function (...args) {\n const { connect } = require('./connect');\n const Comlize = connect(model, ComlizeWrapper);\n return ;\n };\n } else {\n return convertElement(target, model, deep);\n }\n}\n\nbinding.convertElement = convertElement;\nbinding.convertProps = convertProps;\nbinding.binding = binding;\n\nmodule.exports = binding;\n\n\n// WEBPACK FOOTER //\n// ./src/binding.js","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/possibleConstructorReturn.js\n// module id = 54\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/typeof.js\n// module id = 55\n// module chunks = 0","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-define.js\n// module id = 56\n// module chunks = 0","module.exports = require('./_hide');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_redefine.js\n// module id = 57\n// module chunks = 0","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gpo.js\n// module id = 58\n// module chunks = 0","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn.js\n// module id = 59\n// module chunks = 0","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopd.js\n// module id = 60\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/inherits.js\n// module id = 61\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { isComponentClass } = require('./utils');\n\nconst defaultOpts = {\n prop: ['value'],\n event: ['onChange']\n};\n\nconst checkboxOpts = {\n prop: ['checked', (ctx, props) => {\n const mValue = ctx.getValue();\n if (mValue instanceof Array) {\n return mValue.indexOf(props.value) > -1;\n } else {\n return !!mValue;\n }\n }],\n event: ['onChange', (ctx, event) => {\n const { value, checked } = event.target;\n const mValue = ctx.getValue();\n if (mValue instanceof Array) {\n if (checked) {\n mValue.push(value);\n } else {\n const index = mValue.indexOf(value);\n mValue.splice(index, 1);\n }\n } else {\n ctx.setValue(checked);\n }\n }]\n};\n\nconst radioOpts = {\n prop: ['checked', (ctx, props) => {\n const mValue = ctx.getValue();\n if (typeof mValue == 'boolean') {\n return !!mValue;\n } else {\n return mValue == props.value;\n }\n }],\n event: ['onChange', (ctx, event) => {\n const { value, checked } = event.target;\n const mValue = ctx.getValue();\n if (typeof mValue == 'boolean') {\n ctx.setValue(checked);\n } else if (checked) ctx.setValue(value);\n }]\n};\n\nconst builtIn = {\n input: function (type, props) {\n switch (props.type) {\n case 'checkbox':\n return checkboxOpts;\n case 'radio':\n return radioOpts;\n default:\n return defaultOpts;\n }\n },\n radio: radioOpts,\n checkbox: checkboxOpts,\n select: defaultOpts,\n textarea: defaultOpts\n};\n\nfunction getOptions(type, props) {\n let opts = (typeof type === 'string') ? builtIn[type] : type.bindOpts;\n if (opts instanceof Function) opts = opts(type, props);\n opts = opts || defaultOpts;\n if (opts && typeof opts.event === 'string') {\n opts.event = opts.event.split(',');\n }\n if (opts && typeof opts.prop === 'string') {\n opts.prop = opts.prop.split(',');\n }\n return opts;\n}\n\nfunction bindable(opts, component) {\n if (isComponentClass(opts)) {\n return bindable(component, opts);\n }\n if (typeof opts === 'string') opts = builtIn[opts];\n if (!opts) opts = defaultOpts;\n if (!component) return component => bindable(opts, component);\n component.bindOpts = Object.assign({}, opts);\n return component;\n}\n\nbindable.getOptions = getOptions;\nbindable.bindable = bindable;\nmodule.exports = bindable;\n\n\n// WEBPACK FOOTER //\n// ./src/bindable.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst owner = { component: null, intercepted: false, binding: false };\n\nowner.owner = owner;\nmodule.exports = owner;\n\n\n// WEBPACK FOOTER //\n// ./src/owner.js","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/get-prototype-of.js\n// module id = 64\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst options = {};\n\nfunction config(opts) {\n Object.assign(options, opts);\n}\n\nmodule.exports = { config, options };\n\n\n// WEBPACK FOOTER //\n// ./src/config.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst React = require('react');\n\nfunction stateful(stateless) {\n if (!stateless._stateful_) {\n class StatelessWrapper extends React.Component {\n render() {\n return stateless({ model: this.model, ...this.props }, this.context);\n }\n }\n stateless._stateful_ = StatelessWrapper;\n }\n return stateless._stateful_;\n}\n\nstateful.stateful = stateful;\nmodule.exports = stateful;\n\n\n// WEBPACK FOOTER //\n// ./src/stateful.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { Observer, expression, nextTick } = require('ober');\nconst connect = require('./connect');\nconst model = require('./model');\nconst binding = require('./binding');\nconst bindable = require('./bindable');\nconst autorun = require('./autorun');\nconst watch = require('./watch');\nconst deep = require('./deep');\nconst mapping = require('./mapping');\nconst utils = require('./utils');\nconst stateful = require('./stateful');\nconst composition = require('./composition');\nconst annotation = require('./annotation');\nconst lifecycle = require('./lifecycle');\nconst info = require('$info');\nconst { config } = require('./config');\nconst { useModel } = require('./hook');\n\nmodule.exports = {\n connect, model, binding, bindable, watch, mapping, autorun, deep, stateful,\n composition, Observer, expression, nextTick, annotation, lifecycle, useModel,\n utils, config, ...info\n};\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/assign.js\n// module id = 69\n// module chunks = 0","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.assign.js\n// module id = 70\n// module chunks = 0","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_a-function.js\n// module id = 71\n// module chunks = 0","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar DESCRIPTORS = require('./_descriptors');\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-assign.js\n// module id = 72\n// module chunks = 0","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_array-includes.js\n// module id = 73\n// module chunks = 0","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-length.js\n// module id = 74\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-absolute-index.js\n// module id = 75\n// module chunks = 0","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar _a = require('ntils'), isArray = _a.isArray, isFunction = _a.isFunction, isNull = _a.isNull, isObject = _a.isObject, copy = _a.copy, final = _a.final, each = _a.each;\nvar EventEmitter = require('eify');\nvar AutoRun = require('./autorun');\nvar Watcher = require('./watcher');\nvar OBSERVER_PROP_NAME = '_observer_';\nvar CHANGE_EVENT_NAME = 'change';\nvar GET_EVENT_NAME = 'get';\nvar EVENT_MAX_DISPATCH_LAYER = 10;\nvar IGNORE_REGEXPS = [/^\\_(.*)\\_$/, /^\\_\\_/, /^\\$/];\n/**\n * 对象观察类,可以监控对象变化\n * 目前方案问题:\n * 对于父子关系和事件冒泡,目前方案如果用 delete 删除一个属性,无关真实删除关系,\n * 即便调用 clearReference 也无法再清除关系,子对象的 parents 中会一直有一个引用,当前方案最高效\n * 其它方法一:\n * 将「关系」放入全局数组中,然后将 ob.parents 变成一个「属性」从全局数组件中 filter 出来,\n * 基本和目前方法类似,但是关系在外部存领教,所以 clearReference 可清除。\n * 其它方案二:\n * 构造时添加到全局数组,每一个 observer change 时都让放到全局的 observer 遍历自身的,\n * 检果事件源是不是自已的子对象,如果是则触发自身 change 事件,这样 ob 对象本身没有相关引用\n * clearReference 时只从全局清除掉就行了,并且 delete 操作也不会影响,但效率稍差。\n * 其它方案三:\n * 给构造函数添加一个 deep 属性,只有 deep 的 ob 对象,才放入到全局数组中,检查时逻辑同方案二\n * 但是因为要检查的对象会少很多,效率会更高一点。\n */\nvar Observer = /** @class */ (function (_super) {\n __extends(Observer, _super);\n /**\n * 通过目标对象构造一个观察对象\n * @param {Object} target 目标对象\n * @param {Object} options 选项\n * @returns {void} 无返回\n */\n function Observer(target, options) {\n var _this = _super.call(this) || this;\n if (isNull(target)) {\n throw new Error('Invalid target');\n }\n options = options || {};\n var observer = target[OBSERVER_PROP_NAME];\n if (observer) {\n copy(options, observer.options);\n //当时一个组件 A 的为组件 B 的 prop 时,A 更新不会触发 B 更新\n //所在暂注释这里,另一种方法是更新 prop 指令,重写 excute 方法,而不是现在的 update 方法\n // if (observer.options.root) {\n // observer.parents.length = 0;\n // }\n observer.apply();\n return observer;\n }\n final(_this, 'options', options);\n final(_this, 'shadow', {});\n final(_this, 'target', target);\n final(_this, 'parents', []);\n final(target, OBSERVER_PROP_NAME, _this);\n _this.apply();\n return _this;\n }\n /**\n * 添加一个属性,动态添中的属性,无法被观察,\n * 但是通过 set 方法添加的属性可能被观察。\n * @param {string} name 名称\n * @param {Object} value 值\n * @returns {void} 无返回\n */\n Observer.prototype.set = function (name, value) {\n if (isFunction(value) || Observer.isIgnore(name)) {\n return;\n }\n Object.defineProperty(this.target, name, {\n get: function () {\n var observer = this[OBSERVER_PROP_NAME];\n observer.emitGet({ name: name, value: value });\n return observer.shadow[name];\n },\n set: function (value) {\n var observer = this[OBSERVER_PROP_NAME];\n var oldValue = observer.shadow[name];\n if (oldValue === value)\n return;\n if (isObject(value)) {\n var childObserver = new Observer(value);\n observer.addChild(childObserver, name);\n }\n //移除旧值的父引用\n //如果用 delete 删除属性将无法移除父子引用\n if (oldValue && oldValue[OBSERVER_PROP_NAME]) {\n observer.removeChild(oldValue[OBSERVER_PROP_NAME], name);\n }\n observer.shadow[name] = value;\n observer.emitChange({ name: name, value: value });\n },\n configurable: true,\n enumerable: true\n });\n this.target[name] = value;\n };\n /**\n * 自动应用所有动态添加的属性\n * @returns {void} 无返回\n */\n Observer.prototype.apply = function () {\n if (isArray(this.target)) {\n this._wrapArray(this.target);\n }\n var names = this._getPropertyNames(this.target);\n names.forEach(function (name) {\n var desc = Object.getOwnPropertyDescriptor(this.target, name);\n if (!('value' in desc))\n return;\n this.set(name, this.target[name]);\n }, this);\n };\n /**\n * 添子观察者对象\n * @param {Object} child 父对象\n * @param {String} name 属性名\n * @returns {void} 无返回\n */\n Observer.prototype.addChild = function (child, name) {\n if (isNull(child) || isNull(name)) {\n throw new Error('Invalid paramaters');\n }\n if (child.options.root)\n return;\n child.parents.push({ parent: this, name: name });\n };\n /**\n * 移除子对象\n * @param {Object} child 父对象\n * @param {String} name 属性名\n * @returns {void} 无返回\n */\n Observer.prototype.removeChild = function (child, name) {\n if (isNull(child)) {\n throw new Error('Invalid paramaters');\n }\n var foundIndex = -1;\n child.parents.forEach(function (item, index) {\n if (item.parent === this && item.name === name) {\n foundIndex = index;\n }\n }, this);\n if (foundIndex > -1) {\n child.parents.splice(foundIndex, 1);\n }\n };\n /**\n * 清除所有父子引用\n * @returns {void} 无返回\n */\n Observer.prototype.clearReference = function () {\n each(this.target, function (name, value) {\n if (isNull(value))\n return;\n var child = value[OBSERVER_PROP_NAME];\n if (child)\n this.removeChild(child);\n }, this);\n };\n /**\n * 触发 change 事件\n * @param {Object} event 事件对象\n * @returns {void} 无返回\n */\n Observer.prototype.emitChange = function (event) {\n event.path = event.name;\n this.dispatch(CHANGE_EVENT_NAME, event);\n };\n /**\n * 触发 change 事件\n * @param {Object} event 事件对象\n * @returns {void} 无返回\n */\n Observer.prototype.emitGet = function (event) {\n event.path = event.name;\n this.dispatch(GET_EVENT_NAME, event);\n };\n /**\n * 派发一个事件,事件会向父级对象冒泡\n * @param {string} eventName 事件名称\n * @param {Object} event 事件对象\n * @returns {void} 无返回\n */\n Observer.prototype.dispatch = function (eventName, event) {\n if (event._src_ === this)\n return;\n event._src_ = event._src_ || this;\n event._layer_ = event._layer_ || 0;\n if ((event._layer_++) >= EVENT_MAX_DISPATCH_LAYER)\n return;\n this.emit(eventName, event);\n if (!this.parents || this.parents.length < 1)\n return;\n this.parents.forEach(function (item) {\n if (!(item.name in item.parent.target)) {\n return item.parent.removeChild(this);\n }\n var parentEvent = copy(event);\n parentEvent.path = isNull(event.path) ? item.name :\n item.name + '.' + event.path;\n item.parent.dispatch(eventName, parentEvent);\n }, this);\n };\n /**\n * 获取所有成员名称列表\n * @returns {Array} 所有成员名称列表\n */\n Observer.prototype._getPropertyNames = function () {\n var names = isArray(this.target) ?\n this.target.map(function (item, index) {\n return index;\n }) : Object.keys(this.target);\n return names.filter(function (name) {\n return name !== OBSERVER_PROP_NAME;\n });\n };\n /**\n * 包裹数组\n * @param {array} array 源数组\n */\n Observer.prototype._wrapArray = function (array) {\n if (array._wrapped_)\n return;\n final(array, '_wrapped_', true);\n final(array, 'push', function () {\n var items = [].slice.call(arguments);\n var observer = this[OBSERVER_PROP_NAME];\n items.forEach(function (item) {\n //这里也会触发对应 index 的 change 事件\n observer.set(array.length, item);\n }, this);\n observer.emitChange({ name: 'length', value: this.length });\n observer.emitChange({ value: this.length });\n });\n final(array, 'pop', function () {\n var item = [].pop.apply(this, arguments);\n var observer = this[OBSERVER_PROP_NAME];\n observer.emitChange({ name: this.length, value: item });\n observer.emitChange({ name: 'length', value: this.length });\n observer.emitChange({ value: this.length });\n return item;\n });\n final(array, 'unshift', function () {\n [].unshift.apply(this, arguments);\n var items = [].slice.call(arguments);\n var observer = this[OBSERVER_PROP_NAME];\n items.forEach(function (item, index) {\n //这里也会触发对应 index 的 change 事件\n observer.set(index, item);\n }, this);\n observer.emitChange({ name: 'length', value: this.length });\n observer.emitChange({ value: this.length });\n });\n final(array, 'shift', function () {\n var item = [].shift.apply(this, arguments);\n var observer = this[OBSERVER_PROP_NAME];\n observer.emitChange({ name: 0, value: item });\n observer.emitChange({ name: 'length', value: this.length });\n observer.emitChange({ value: this.length });\n return item;\n });\n final(array, 'splice', function () {\n var startIndex = arguments[0];\n var endIndex = isNull(arguments[1])\n ? startIndex + arguments[1]\n : this.length - 1;\n var observer = this[OBSERVER_PROP_NAME];\n var items = [].splice.apply(this, arguments);\n for (var i = startIndex; i <= endIndex; i++) {\n observer.emitChange({ name: i, value: items[i - startIndex] });\n }\n observer.emitChange({ name: 'length', value: this.length });\n observer.emitChange({ value: this.length });\n return items;\n });\n final(array, 'set', function (index, value) {\n var observer = this[OBSERVER_PROP_NAME];\n if (index >= this.length) {\n observer.emitChange({ name: 'length', value: this.length });\n observer.emitChange({ value: this.length });\n }\n observer.set(index, value);\n });\n };\n Observer.prototype.run = function (handler, options) {\n options = options || {};\n var context = options.context, trigger = options.trigger, immed = options.immed, deep = options.deep;\n context = context || this.target;\n var auto = new AutoRun(handler, context, trigger, deep);\n this.on('get', auto.onGet);\n this.on('change', auto.onChange);\n if (immed)\n auto.run();\n return auto;\n };\n Observer.prototype.stop = function (autoRef) {\n if (!autoRef)\n return;\n this.off('get', autoRef.onGet);\n this.off('change', autoRef.onChange);\n };\n Observer.prototype.watch = function (calculator, handler, options) {\n options = options || {};\n var context = options.context;\n context = context || this.target;\n var watcher = new Watcher(calculator, handler, context);\n watcher.autoRef = this.run(watcher.calc, options);\n return watcher;\n };\n Observer.prototype.unWatch = function (watcher) {\n if (!watcher)\n return;\n this.stop(watcher.autoRef);\n };\n return Observer;\n}(EventEmitter));\n/**\n * 观察一个对象\n * @param {Object} target 目标对象\n * @return {Observer} 观察者对象\n */\nObserver.observe = function (target) {\n return new Observer(target);\n};\n/**\n * 检查是不是忽略的属性名\n * @param {string} word 待检查的字符串\n * @returns {void} 无返回\n */\nObserver.isIgnore = function (word) {\n return IGNORE_REGEXPS.some(function (re) { return re.test(word); });\n};\nmodule.exports = Observer;\n//# sourceMappingURL=observer.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ober/lib/observer.js\n// module id = 76\n// module chunks = 0","module.exports = function () { }\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/dify/lib/browser.js\n// module id = 77\n// module chunks = 0","var _a = require('ntils'), final = _a.final, isArray = _a.isArray, copy = _a.copy, each = _a.each;\n/**\n * 事件触发器基类\n */\nvar EventEmitter = /** @class */ (function () {\n /**\n * 构建一个一个事修的触发器对象\n * @param {object} target 将代理的目标对象可以省略\n * @returns {void} 无返回\n */\n function EventEmitter(target) {\n target = target || this;\n var emitter = target._emitter_;\n if (emitter)\n return emitter;\n final(this, '_target_', target);\n final(target, '_emitter_', this);\n this._isNative_ = this._isNativeObject(this._target_);\n this._listeners_ = this._listeners_ || Object.create(null);\n this.on = this.$on = this.$addListener = this.addListener;\n this.off = this.$off = this.$removeListener = this.removeListener;\n this.$emit = this.emit;\n }\n /**\n * 检查是否原生支持事件\n * @param {object} obj 对象\n * @returns {void} 检查结果\n */\n EventEmitter.prototype._isNativeObject = function (obj) {\n return obj.addEventListener && obj.removeEventListener && obj.dispatchEvent;\n };\n /**\n * 添加一个事件监听函数\n * @param {string} name 事件名称\n * @param {function} listener 事件处理函数\n * @param {capture} capture 是否是捕获阶段事件(只在代理 dom 对象时有效)\n * @returns {void} 无返回\n */\n EventEmitter.prototype.addListener = function (name, listener, capture) {\n if (this._isNative_) {\n this._addNativeEventListener(name, listener, capture);\n }\n this._listeners_[name] = this._listeners_[name] || [];\n this._listeners_[name].push(listener);\n var maxListeners = EventEmitter._maxListeners;\n if (this._listeners_[name].length > maxListeners) {\n console.warn(\"The '\" + name + \"' event listener is not more than \" + maxListeners, this);\n }\n };\n /**\n * 移除「一个/一组/所有」事件监听函数\n * @param {string} name 事件名称\n * @param {function} listener 事件处理函数\n * @param {capture} capture 是否是捕获阶段事件(只在代理 dom 对象时有效)\n * @returns {void} 无返回\n */\n EventEmitter.prototype.removeListener = function (name, listener, capture) {\n if (name && listener) {\n if (this._isNative_) {\n this._removeNativeEventListener(name, listener, capture);\n }\n if (!this._listeners_[name])\n return;\n var index = this._listeners_[name].indexOf(listener);\n if (index > -1)\n this._listeners_[name].splice(index, 1);\n }\n else if (name) {\n if (this._isNative_ && this._listeners_[name]) {\n this._listeners_[name].forEach(function (_listener) {\n this.removeListener(name, _listener, capture);\n }, this);\n }\n delete this._listeners_[name];\n }\n else {\n each(this._listeners_, function (name) {\n this.removeListener(name, null, capture);\n }, this);\n this._listeners_ = {};\n }\n };\n /**\n * 触发自身的一个事件\n * @param {string} name 事件名称\n * @param {object} data 传递的对象\n * @param {string} canBubble 能否冒泡(只在代理 dom 对象时有效)\n * @param {object} cancelAble 能否取消(只在代理 dom 对象时有效)\n * @returns {void} 无返回\n */\n EventEmitter.prototype.emit = function (name, data, canBubble, cancelAble) {\n if (this._isNative_) {\n return this._emitNativeEvent(name, data, canBubble, cancelAble);\n }\n var listeners = this._listeners_[name];\n if (!listeners)\n return;\n var stopPropagation = false;\n listeners.forEach(function (handler) {\n var rs = handler.call(this._target_, data);\n if (rs === false)\n stopPropagation = true;\n }, this);\n return stopPropagation;\n };\n /**\n * 触发自身的一个事件 (支持异步 handler,串行执行,仅对非 dom 对象有效)\n * @param {string} name 事件名称\n * @param {object} data 传递的对象\n * @param {string} canBubble 能否冒泡(只在代理 dom 对象时有效)\n * @param {object} cancelAble 能否取消(只在代理 dom 对象时有效)\n * @returns {void} 无返回\n */\n EventEmitter.prototype.emitAsync = function (name, data, canBubble, cancelAble) {\n if (this._isNative_) {\n return this._emitNativeEvent(name, data, canBubble, cancelAble);\n }\n var listeners = this._listeners_[name];\n if (!listeners)\n return;\n var stopPropagation = false, queue = listeners.slice(0);\n return new Promise(function (resolve, reject) {\n function done(rs, err) {\n if (err)\n return reject(err);\n if (rs === false)\n stopPropagation = true;\n return queue.length > 0 ? exec() : resolve(stopPropagation);\n }\n function exec() {\n var handler = queue.shift();\n var rs = handler.call(this._target_, data);\n return rs && rs.then ? rs.then(done) : done(rs);\n }\n exec();\n });\n };\n /**\n * 触发自身的一个事件 (支持异步 handler,并行执行,仅对非 dom 对象有效)\n * @param {string} name 事件名称\n * @param {object} data 传递的对象\n * @param {string} canBubble 能否冒泡(只在代理 dom 对象时有效)\n * @param {object} cancelAble 能否取消(只在代理 dom 对象时有效)\n * @returns {void} 无返回\n */\n EventEmitter.prototype.emitParallel = function (name, data, canBubble, cancelAble) {\n var _this = this;\n if (this._isNative_) {\n return this._emitNativeEvent(name, data, canBubble, cancelAble);\n }\n var listeners = this._listeners_[name];\n if (!listeners)\n return;\n var stopPropagation = false, count = 0;\n return new Promise(function (resolve, reject) {\n function done(rs, err) {\n if (err)\n return reject(err);\n if (rs === false)\n stopPropagation = true;\n if (++count >= listeners.length)\n resolve(stopPropagation);\n }\n listeners.forEach(function (handler) {\n var rs = handler.call(this._target_, data);\n return rs && rs.then ? rs.then(done) : done(rs);\n }, _this);\n });\n };\n /**\n * 添加 DOM 元素事件\n * @param {string} name 事件名称\n * @param {function} listener 事件处理函数\n * @param {capture} capture 是否是捕获阶段事件\n * @returns {void} 无返回\n */\n EventEmitter.prototype._addNativeEventListener = function (name, listener, capture) {\n this._target_.addEventListener(name, listener, capture);\n //如果存在已注册的自定义 “组合事件”\n var descriptor = EventEmitter._events[name];\n if (descriptor) {\n descriptor.addListener = descriptor.addListener || descriptor.on;\n descriptor.addListener(this, name, listener, capture);\n }\n };\n /**\n * 移除 DOM 元素事件\n * @param {string} name 事件名称\n * @param {function} listener 事件处理函数\n * @param {capture} capture 是否是捕获阶段事件\n * @returns {void} 无返回\n */\n EventEmitter.prototype._removeNativeEventListener = function (name, listener, capture) {\n this._target_.removeEventListener(name, listener, capture);\n //如果存在已注册的自定义 “组合事件”\n var descriptor = EventEmitter._events[name];\n if (descriptor) {\n descriptor.removeListener = descriptor.removeListener || descriptor.off;\n descriptor.removeListener(this, name, listener, capture);\n }\n };\n /**\n * 触发 DOM 元素事件\n * @param {string} name 事件名称\n * @param {object} data 传递的对象\n * @param {string} canBubble 能否冒泡\n * @param {object} cancelAble 能否取消\n * @returns {void} 无返回\n */\n EventEmitter.prototype._emitNativeEvent = function (name, data, canBubble, cancelAble) {\n if (!global.document)\n return;\n var event = global.document.createEvent('HTMLEvents');\n event.initEvent(name, canBubble, cancelAble);\n copy(data, event, ['data']);\n event.data = data;\n return this._target_.dispatchEvent(event);\n };\n return EventEmitter;\n}());\n//最多添加多少个 listener\nEventEmitter._maxListeners = 1024;\n//所有自定义事件\nEventEmitter._events = [];\n/**\n * 注册自定义事件(只在代理 dom 对象时有效)\n * @param {object} descriptor 事件定义\n * @returns {void} 无返回\n */\nEventEmitter.register = function (descriptor) {\n var names = descriptor.name;\n if (!names)\n return;\n if (!isArray(names))\n names = names.split(',');\n names.forEach(function (name) {\n this._events[name] = descriptor;\n }, this);\n};\nmodule.exports = EventEmitter;\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/eify/lib/index.js\n// module id = 78\n// module chunks = 0","var VARIABLE_FILTER = /(\\(|\\[|\\{|\\+|\\-|\\*|\\/|\\>|\\<|\\=|\\!|\\,|\\;|\\?|\\:|\\&|\\|)\\s*([a-z\\_0-9\\$]+)/ig;\nvar VARIABLE_NAME = /^[a-z\\$\\_]/i;\nvar ALLOWED_WORD = /^(\\$scope|true|false|null|undefined|Date|Number|String|Object|Boolean|Array|RegExp|Math|JSON|parseInt|parseFloat|isNaN|isFinite)$/; //eslint-disable-line\nvar EXPRESSION_BLOCK = /\\{\\{([\\s\\S]+?)\\}\\}/;\nvar EXPRESSION_CACHE = {};\nvar TEMPLATE_CACHE = {};\nfunction findVariables(expr) {\n expr = \"(\" + expr + \")\";\n VARIABLE_FILTER.lastIndex = 0;\n var variables = {};\n var info;\n while (info = VARIABLE_FILTER.exec(expr)) { //eslint-disable-line\n var name_1 = info[2];\n if (VARIABLE_NAME.test(name_1) && !ALLOWED_WORD.test(name_1)) {\n variables[name_1] = true;\n }\n }\n return Object.keys(variables);\n}\nfunction getValue(scope, name) {\n var value = scope[name];\n return (value instanceof Function) ? value.bind(scope) : value;\n}\nfunction expression(expr) {\n var cacheItem = EXPRESSION_CACHE[expr];\n if (cacheItem)\n return cacheItem;\n var keys = findVariables(expr);\n var func = new (Function.bind.apply(Function, [void 0, '$scope'].concat(keys, [\"return(\" + expr + \")\"])))();\n function exec(scope) {\n var values = keys.map(function (name) { return getValue(scope, name); });\n return func.apply(void 0, [scope].concat(values));\n }\n EXPRESSION_CACHE[expr] = exec;\n return exec;\n}\nfunction template(str) {\n var cacheItem = TEMPLATE_CACHE[str];\n if (cacheItem)\n return cacheItem;\n var blocks = str.split(EXPRESSION_BLOCK);\n for (var i = 1; i < blocks.length; i += 2) {\n blocks[i] = expression(blocks[i]);\n }\n function exec(scope) {\n var result = '';\n blocks.forEach(function (block) {\n result += (block instanceof Function) ? block(scope) : block;\n });\n return result;\n }\n TEMPLATE_CACHE[str] = exec;\n return exec;\n}\nfunction compile(str, mixed) {\n return mixed ? template(str) : expression(str);\n}\ncompile.expression = expression;\ncompile.template = template;\nmodule.exports = compile;\n//# sourceMappingURL=expression.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ober/lib/expression.js\n// module id = 79\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/define-property.js\n// module id = 80\n// module chunks = 0","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/define-property.js\n// module id = 81\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.define-property.js\n// module id = 82\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst React = require('react');\nconst { isNull } = require('ntils');\nconst { convertElement, convertProps } = require('./binding');\nconst { get } = require('./annotation');\nconst { options } = require('./config');\nconst { owner } = require('./owner');\n\nif (!Object.isFrozen) Object.isFrozen = () => false;\n\nconst initailCreateElement = React.createElement;\nReact.createElement = function (type, props, ...args) {\n owner.intercepted = true;\n if (owner.component && owner.binding) convertProps(type, props);\n return initailCreateElement.call(this, type, props, ...args);\n};\n\nfunction beginRender(component) {\n owner.component = component;\n owner.intercepted = false;\n let binding = get('binding', component);\n if (isNull(binding)) binding = options.binding;\n owner.binding = binding;\n}\n\nfunction endRender() {\n owner.component = null;\n owner.intercepted = false;\n owner.binding = false;\n}\n\nfunction wrapRender(initailRender) {\n return function (...args) {\n beginRender(this);\n let element = initailRender.call(this, ...args);\n if (!owner.binding) return element;\n if (!owner.intercepted) element = convertElement(element);\n endRender();\n return element;\n };\n}\n\nmodule.exports = { wrapRender };\n\n\n// WEBPACK FOOTER //\n// ./src/render.js","require('../../modules/es6.object.is-frozen');\nmodule.exports = require('../../modules/_core').Object.isFrozen;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/is-frozen.js\n// module id = 84\n// module chunks = 0","// 19.1.2.12 Object.isFrozen(O)\nvar isObject = require('./_is-object');\n\nrequire('./_object-sap')('isFrozen', function ($isFrozen) {\n return function isFrozen(it) {\n return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.is-frozen.js\n// module id = 85\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol/iterator.js\n// module id = 86\n// module chunks = 0","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/iterator.js\n// module id = 87\n// module chunks = 0","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.string.iterator.js\n// module id = 88\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_string-at.js\n// module id = 89\n// module chunks = 0","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-create.js\n// module id = 90\n// module chunks = 0","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dps.js\n// module id = 91\n// module chunks = 0","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_html.js\n// module id = 92\n// module chunks = 0","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/web.dom.iterable.js\n// module id = 93\n// module chunks = 0","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.array.iterator.js\n// module id = 94\n// module chunks = 0","module.exports = function () { /* empty */ };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_add-to-unscopables.js\n// module id = 95\n// module chunks = 0","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-step.js\n// module id = 96\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol.js\n// module id = 97\n// module chunks = 0","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/index.js\n// module id = 98\n// module chunks = 0","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toObject = require('./_to-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $GOPS = require('./_object-gops');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n $GOPS.f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });\n\n$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return $GOPS.f(toObject(it));\n }\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.symbol.js\n// module id = 99\n// module chunks = 0","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_meta.js\n// module id = 100\n// module chunks = 0","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-keys.js\n// module id = 101\n// module chunks = 0","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-array.js\n// module id = 102\n// module chunks = 0","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn-ext.js\n// module id = 103\n// module chunks = 0","require('./_wks-define')('asyncIterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js\n// module id = 105\n// module chunks = 0","require('./_wks-define')('observable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.observable.js\n// module id = 106\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/set-prototype-of.js\n// module id = 107\n// module chunks = 0","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/set-prototype-of.js\n// module id = 108\n// module chunks = 0","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.set-prototype-of.js\n// module id = 109\n// module chunks = 0","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-proto.js\n// module id = 110\n// module chunks = 0","require('../../modules/es6.object.create');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function create(P, D) {\n return $Object.create(P, D);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/create.js\n// module id = 111\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.create.js\n// module id = 112\n// module chunks = 0","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/_core').Object.getPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/get-prototype-of.js\n// module id = 113\n// module chunks = 0","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./_to-object');\nvar $getPrototypeOf = require('./_object-gpo');\n\nrequire('./_object-sap')('getPrototypeOf', function () {\n return function getPrototypeOf(it) {\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.get-prototype-of.js\n// module id = 114\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst connect = require('./connect');\nconst React = require('react');\n\nmodule.exports = function model(model) {\n if (model && model.prototype instanceof React.Component) {\n return connect(null, model);\n } else {\n return component => connect(model, component);\n }\n};\n\n\n// WEBPACK FOOTER //\n// ./src/model.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst lifecycle = require('./lifecycle');\nconst { get, set } = require('./annotation');\n\nfunction autorun(target, method) {\n if (!target || !method) return autorun;\n //autorun 如果已经存在,比如父类声明了,都不再重复处理\n const exist = get('autorun', target, method);\n if (exist) return;\n let autoRef;\n lifecycle.didMount.add(target, function () {\n const context = this;\n if (!context._observer_) return;\n const deep = get('deep', context, method);\n autoRef = context._observer_.run(context[method], { context, deep });\n autoRef.run();\n });\n lifecycle.unmount.add(target, function () {\n this._observer_.stop(autoRef);\n });\n set('autorun', true, target, method);\n}\n\nmodule.exports = autorun;\n\n\n// WEBPACK FOOTER //\n// ./src/autorun.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { isFunction } = require('ntils');\nconst lifecycle = require('./lifecycle');\nconst { get, set } = require('./annotation');\n\nfunction watch(calculator, immed) {\n if (!isFunction(calculator)) {\n throw new Error('Watch needs to specify a calculation function');\n }\n return function (target, method) {\n let watcher;\n //watch 如果已经存在,比如父类声明了,calc 函数可能不同,子类也要添加\n //可能多个 calc 都想执行同一个方法\n lifecycle.didMount.add(target, function () {\n const context = this;\n if (!context._observer_) return;\n const deep = get('deep', context, method);\n watcher = context._observer_.watch(function () {\n return calculator.call(context, context.model);\n }, context[method], { context, deep });\n //immed 通过 autorun.run 方法会传递给 watcher.calc 方法\n watcher.autoRef.run(immed || false);\n });\n lifecycle.unmount.add(target, function () {\n this._observer_.unWatch(watcher);\n });\n set('watch', true, target, method);\n };\n}\n\nmodule.exports = watch;\n\n\n// WEBPACK FOOTER //\n// ./src/watch.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { get, set } = require('./annotation');\n\nfunction deep(target, method) {\n if (!target) return deep;\n const error = method ?\n get('autorun', target, method) || get('watch', target, method) :\n target && target.prototype && target.prototype._contented_;\n if (error) {\n throw new Error('`deep` must be enabled before `model/autorun/watch`');\n }\n set('deep', true, target, method);\n}\n\nmodule.exports = deep;\n\n\n// WEBPACK FOOTER //\n// ./src/deep.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { isObject, each, isString, getByPath, setByPath } = require('ntils');\nconst lifecycle = require('./lifecycle');\n\nfunction mapping(map) {\n if (!isObject(map)) {\n throw new Error('Mapping needs to specify a object or array');\n }\n function assign(model, props, prevProps) {\n each(map, (propName, modelField) => {\n if (!isString(propName)) propName = modelField;\n const propValue = getByPath(props, propName);\n const modelValue = getByPath(model, modelField);\n if (modelValue === propValue ||\n (prevProps && getByPath(prevProps, propName) === propValue)) {\n return;\n }\n setByPath(model, modelField, propValue);\n });\n }\n return function (component) {\n if (!component) throw new Error('Invaild Component');\n const proto = component.prototype;\n if (proto._contented_) {\n throw new Error('`mapping` must be enabled before `model`');\n }\n lifecycle.model.add(proto, function () {\n assign(this.model, this.props);\n });\n lifecycle.didUpdate.add(proto, function (prevProps) {\n assign(this.model, this.props, prevProps);\n });\n };\n}\n\nmodule.exports = mapping;\n\n\n// WEBPACK FOOTER //\n// ./src/mapping.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { AutoRun } = require('ober');\n\nconst UPDATE_EVENT = 'compositionupdate';\nconst END_EVENT = 'compositionend';\nconst INPUT_EVENT = 'input';\n\nclass Composition {\n\n composing = false;\n inputting = false;\n\n onUpdate = () => {\n this.composing = true;\n };\n\n onEnd = () => {\n this.composing = false;\n };\n\n onInput = () => {\n this.inputting = true;\n if (this.inputTimer) clearTimeout(this.inputTimer);\n this.inputTimer = setTimeout(() => {\n this.inputting = false;\n this.inputTimer = null;\n }, 0);\n };\n\n on(event, handler) {\n if (!global.document) return;\n global.document.addEventListener(event, handler, true);\n }\n\n off(event, handler) {\n if (!global.document) return;\n global.document.removeEventListener(event, handler, true);\n }\n\n enable() {\n this.on(UPDATE_EVENT, this.onUpdate);\n this.on(END_EVENT, this.onEnd);\n this.on(INPUT_EVENT, this.onInput);\n }\n\n disable() {\n this.off(UPDATE_EVENT, this.onUpdate);\n this.off(END_EVENT, this.onEnd);\n }\n\n constructor() {\n this.enable();\n }\n\n}\n\nconst composition = new Composition();\n\nAutoRun.prototype.isSync = function () {\n return !global.document || composition.composing || composition.inputting;\n};\n\nmodule.exports = composition;\n\n\n// WEBPACK FOOTER //\n// ./src/composition.js","module.exports = {\"name\":\"mota\",\"version\":\"3.3.2\"}\n\n\n//////////////////\n// WEBPACK FOOTER\n// /private/var/folders/7d/bf741r6j1psb64d_yd0zn_mh0000gn/T/a2b0fa969f14b010319da1c2512a1289.json\n// module id = 121\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst Observer = require('ober');\nconst { useState, useEffect, useLayoutEffect } = require('react');\nconst { isFunction } = require('ntils');\nconst { getModelState } = require('./utils');\n\nconst owner = { buffer: [], state: null, uuid: 0 };\n\nfunction getter(info) {\n if (!owner.state || owner.buffer.indexOf(info.path) > -1) return;\n owner.buffer.push(`${this.id}.${info.path}`);\n}\n\nfunction collect(nextState) {\n if (owner.state) {\n owner.state[2].length = 0;\n owner.state[2].push(...(owner.buffer));\n }\n owner.buffer = [];\n owner.state = nextState;\n return nextState;\n}\n\nfunction hasChange(conditions, path) {\n if (!conditions) return false;\n return isFunction(conditions) ? conditions(path) :\n conditions.indexOf && conditions.indexOf(path) > -1;\n}\n\nfunction useObservable(factory, conditions) {\n const [state, update] = useState([]);\n if (state.length > 0) return collect(state);\n const isNew = factory instanceof Function;\n const model = isNew ? new factory() : factory;\n const observer = new Observer(getModelState(model));\n if (!observer.id) observer.id = '_observer_' + owner.uuid++;\n function setter(info) {\n const deps = state[2], fullPath = `${this.id}.${info.path}`;\n if (deps.indexOf(fullPath) > -1 || hasChange(conditions, info.path)) {\n update([...state]);\n }\n }\n function destroy() {\n observer.off('change', setter);\n if (isNew) observer.clearReference();\n }\n Object.assign(state, [model, destroy, []]);\n observer.off('get', getter);\n observer.on('get', getter);\n observer.on('change', setter);\n return collect(state);\n}\n\nfunction useModel(factory, conditions, debug) {\n const [model, destroy, deps] = useObservable(factory, conditions);\n useEffect(() => destroy, []);\n //最后一个 useModel 在 mounted 后完成收集(最后一个有可能多收集)\n useLayoutEffect(() => collect());\n if (debug) debug({ model, deps });\n return model;\n}\n\nmodule.exports = { useModel };\n\n\n// WEBPACK FOOTER //\n// ./src/hook.js"],"sourceRoot":""} \ No newline at end of file +{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 12099938f718448e6a7d","webpack:///./node_modules/core-js/library/modules/_core.js","webpack:///./node_modules/ntils/lib/index.js","webpack:///./node_modules/core-js/library/modules/_global.js","webpack:///./node_modules/core-js/library/modules/_descriptors.js","webpack:///./src/annotation.js","webpack:///./node_modules/core-js/library/modules/_export.js","webpack:///./node_modules/core-js/library/modules/_object-dp.js","webpack:///./node_modules/core-js/library/modules/_is-object.js","webpack:///./node_modules/core-js/library/modules/_has.js","webpack:///./node_modules/babel-runtime/core-js/object/assign.js","webpack:///./node_modules/core-js/library/modules/_hide.js","webpack:///./node_modules/core-js/library/modules/_fails.js","webpack:///./node_modules/core-js/library/modules/_to-iobject.js","webpack:///./src/utils.js","webpack:///external {\"commonjs\":\"react\",\"commonjs2\":\"react\",\"root\":\"React\",\"amd\":\"react\"}","webpack:///./node_modules/core-js/library/modules/_wks.js","webpack:///./node_modules/core-js/library/modules/_an-object.js","webpack:///./node_modules/ober/lib/index.js","webpack:///./src/lifecycle.js","webpack:///./node_modules/core-js/library/modules/_property-desc.js","webpack:///./node_modules/core-js/library/modules/_object-keys.js","webpack:///./node_modules/core-js/library/modules/_library.js","webpack:///./node_modules/core-js/library/modules/_uid.js","webpack:///./node_modules/core-js/library/modules/_object-pie.js","webpack:///./node_modules/core-js/library/modules/_to-object.js","webpack:///./node_modules/babel-runtime/helpers/classCallCheck.js","webpack:///./node_modules/core-js/library/modules/_to-primitive.js","webpack:///./node_modules/core-js/library/modules/_defined.js","webpack:///./node_modules/core-js/library/modules/_to-integer.js","webpack:///./node_modules/core-js/library/modules/_shared-key.js","webpack:///./node_modules/core-js/library/modules/_shared.js","webpack:///./node_modules/core-js/library/modules/_enum-bug-keys.js","webpack:///./node_modules/core-js/library/modules/_object-gops.js","webpack:///./src/connect.js","webpack:///./node_modules/core-js/library/modules/_iterators.js","webpack:///./node_modules/core-js/library/modules/_object-create.js","webpack:///./node_modules/core-js/library/modules/_set-to-string-tag.js","webpack:///./node_modules/core-js/library/modules/_wks-ext.js","webpack:///./node_modules/core-js/library/modules/_wks-define.js","webpack:///./node_modules/babel-runtime/core-js/object/create.js","webpack:///./node_modules/babel-runtime/helpers/extends.js","webpack:///./node_modules/core-js/library/modules/_ctx.js","webpack:///./node_modules/core-js/library/modules/_ie8-dom-define.js","webpack:///./node_modules/core-js/library/modules/_dom-create.js","webpack:///./node_modules/core-js/library/modules/_object-keys-internal.js","webpack:///./node_modules/core-js/library/modules/_iobject.js","webpack:///./node_modules/core-js/library/modules/_cof.js","webpack:///(webpack)/buildin/global.js","webpack:///./node_modules/ober/lib/autorun.js","webpack:///./node_modules/ober/lib/next-tick.js","webpack:///./node_modules/ober/lib/watcher.js","webpack:///./node_modules/babel-runtime/core-js/object/is-frozen.js","webpack:///./node_modules/core-js/library/modules/_object-sap.js","webpack:///./src/binding.js","webpack:///./node_modules/babel-runtime/helpers/possibleConstructorReturn.js","webpack:///./node_modules/babel-runtime/helpers/typeof.js","webpack:///./node_modules/core-js/library/modules/_iter-define.js","webpack:///./node_modules/core-js/library/modules/_redefine.js","webpack:///./node_modules/core-js/library/modules/_object-gpo.js","webpack:///./node_modules/core-js/library/modules/_object-gopn.js","webpack:///./node_modules/core-js/library/modules/_object-gopd.js","webpack:///./node_modules/babel-runtime/helpers/inherits.js","webpack:///./src/bindable.js","webpack:///./src/owner.js","webpack:///./node_modules/babel-runtime/core-js/object/get-prototype-of.js","webpack:///./src/config.js","webpack:///./src/stateful.js","webpack:///./src/index.js","webpack:///./node_modules/core-js/library/fn/object/assign.js","webpack:///./node_modules/core-js/library/modules/es6.object.assign.js","webpack:///./node_modules/core-js/library/modules/_a-function.js","webpack:///./node_modules/core-js/library/modules/_object-assign.js","webpack:///./node_modules/core-js/library/modules/_array-includes.js","webpack:///./node_modules/core-js/library/modules/_to-length.js","webpack:///./node_modules/core-js/library/modules/_to-absolute-index.js","webpack:///./node_modules/ober/lib/observer.js","webpack:///./node_modules/dify/lib/browser.js","webpack:///./node_modules/eify/lib/index.js","webpack:///./node_modules/ober/lib/expression.js","webpack:///./node_modules/babel-runtime/core-js/object/define-property.js","webpack:///./node_modules/core-js/library/fn/object/define-property.js","webpack:///./node_modules/core-js/library/modules/es6.object.define-property.js","webpack:///./src/render.js","webpack:///./node_modules/core-js/library/fn/object/is-frozen.js","webpack:///./node_modules/core-js/library/modules/es6.object.is-frozen.js","webpack:///./node_modules/babel-runtime/core-js/symbol/iterator.js","webpack:///./node_modules/core-js/library/fn/symbol/iterator.js","webpack:///./node_modules/core-js/library/modules/es6.string.iterator.js","webpack:///./node_modules/core-js/library/modules/_string-at.js","webpack:///./node_modules/core-js/library/modules/_iter-create.js","webpack:///./node_modules/core-js/library/modules/_object-dps.js","webpack:///./node_modules/core-js/library/modules/_html.js","webpack:///./node_modules/core-js/library/modules/web.dom.iterable.js","webpack:///./node_modules/core-js/library/modules/es6.array.iterator.js","webpack:///./node_modules/core-js/library/modules/_add-to-unscopables.js","webpack:///./node_modules/core-js/library/modules/_iter-step.js","webpack:///./node_modules/babel-runtime/core-js/symbol.js","webpack:///./node_modules/core-js/library/fn/symbol/index.js","webpack:///./node_modules/core-js/library/modules/es6.symbol.js","webpack:///./node_modules/core-js/library/modules/_meta.js","webpack:///./node_modules/core-js/library/modules/_enum-keys.js","webpack:///./node_modules/core-js/library/modules/_is-array.js","webpack:///./node_modules/core-js/library/modules/_object-gopn-ext.js","webpack:///./node_modules/core-js/library/modules/es7.symbol.async-iterator.js","webpack:///./node_modules/core-js/library/modules/es7.symbol.observable.js","webpack:///./node_modules/babel-runtime/core-js/object/set-prototype-of.js","webpack:///./node_modules/core-js/library/fn/object/set-prototype-of.js","webpack:///./node_modules/core-js/library/modules/es6.object.set-prototype-of.js","webpack:///./node_modules/core-js/library/modules/_set-proto.js","webpack:///./node_modules/core-js/library/fn/object/create.js","webpack:///./node_modules/core-js/library/modules/es6.object.create.js","webpack:///./node_modules/core-js/library/fn/object/get-prototype-of.js","webpack:///./node_modules/core-js/library/modules/es6.object.get-prototype-of.js","webpack:///./src/model.js","webpack:///./src/autorun.js","webpack:///./src/watch.js","webpack:///./src/deep.js","webpack:///./src/mapping.js","webpack:///./src/composition.js","webpack:////private/var/folders/7d/bf741r6j1psb64d_yd0zn_mh0000gn/T/a2b0fa969f14b010319da1c2512a1289.json","webpack:///./src/hook.js"],"names":["require","isArray","has","defineGetter","STORE_KEY","getStore","target","member","ownOnly","prototype","store","useStore","Error","baseStore","wrapKey","key","get","set","value","push","list","annotation","getAll","module","exports","React","Component","PureComponent","isObject","isFunction","isComponentInstance","instance","isComponentClass","com","owner","hasOwnProperty","getter","configurable","enumerable","isESModule","obj","__esModule","Object","toString","call","getModelState","model","state","Lifecycle","name","add","handler","base","baseList","concat","create","map","forEach","lifecycle","Observer","isNull","wrapRender","stateful","createRender","proto","initailRender","render","_override_","overrideRender","_run_","_mounted_","forceUpdate","_observer_","run","context","trigger","_trigger_","deep","clearReference","stop","_isNewModelInstance_","createUnmount","initailUnmount","componentWillUnmount","args","result","handlers","unmount","createMount","initailMount","componentDidMount","didMount","ctor","constructor","props","modeInitialize","createDidUpdate","initailDidUpdate","componentDidUpdate","didUpdate","createModelGetter","modelInProps","propModel","_model_","_prop_model_","componentModel","modelWillCreate","isNewModelInstance","Function","modelDidCreate","connect","component","bindable","expression","compileExpr","expr","convertProps","type","dataBind","bindOpts","getOptions","dataScope","bindExpr","setValue","$value","getValue","bindEvent","event","initailChange","bindEventHandler","String","bindProp","prop","bindPropHandler","ctx","undefined","convertElement","element","el","children","ComlizeWrapper","binding","func","Comlize","defaultOpts","checkboxOpts","mValue","Array","indexOf","checked","index","splice","radioOpts","builtIn","input","radio","checkbox","select","textarea","opts","split","intercepted","options","config","stateless","_stateful_","StatelessWrapper","nextTick","autorun","watch","mapping","utils","composition","info","useModel","isFrozen","initailCreateElement","createElement","beginRender","endRender","method","exist","autoRef","calculator","immed","watcher","unWatch","error","_contented_","each","isString","getByPath","setByPath","assign","prevProps","propName","modelField","propValue","modelValue","AutoRun","UPDATE_EVENT","END_EVENT","INPUT_EVENT","Composition","on","global","document","addEventListener","off","removeEventListener","enable","onUpdate","onEnd","onInput","disable","composing","inputting","inputTimer","clearTimeout","setTimeout","isSync","useState","useEffect","useLayoutEffect","buffer","uuid","path","id","collect","nextState","length","hasChange","conditions","useObservable","factory","update","isNew","observer","setter","deps","fullPath","destroy","debug"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,O;QCVA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,KAAK;QACL;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;QAEA;QACA;;;;;;;AC7DA,6BAA6B;AAC7B,uCAAuC;;;;;;;;ACD1B;AACb,8CAA8C,cAAc;AAC5D;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,QAAQ;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAa;AACxB,YAAY,MAAM;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,cAAc;AACzB,YAAY,KAAK;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,gBAAgB;AAC5B,YAAY,SAAS;AACrB,YAAY,KAAK;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAAuB,gBAAgB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,mBAAmB;AAC9B,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,MAAM;AACjB,WAAW,OAAO;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC;AACxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,OAAO;AAClB,WAAW,SAAS;AACpB,aAAa,KAAK;AAClB;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,YAAY;AACzC;AACA;AACA;AACA,6BAA6B,YAAY;AACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,YAAY,OAAO;AACnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,KAAK;AACL;AACA;AACA,kDAAkD,YAAY;AAC9D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yDAAyD,YAAY,EAAE,oBAAoB,iBAAiB,EAAE;AAC9G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA,4BAA4B,uBAAuB;AACnD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,mC;;;;;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA,wCAAwC,mBAAmB,EAAE;AAC7D;AACA;AACA;AACA;AACA;AACA,+DAA+D,2BAA2B,EAAE;AAC5F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,sBAAsB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iDAAiD,gCAAgC,EAAE;AACnF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qC;;;;;;ACtEA,SAAS,mBAAO,CAAC,CAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,mC;;;;;;AC3BA,kBAAkB,YAAY,mBAAO,CAAC,EAAqC,sB;;;;;;ACA3E;AACA,cAAc,mBAAO,CAAC,CAAW;AACjC,WAAW,mBAAO,CAAC,CAAS;AAC5B,YAAY,mBAAO,CAAC,EAAU;AAC9B;AACA,6BAA6B;AAC7B;AACA;AACA,qDAAqD,OAAO,EAAE;AAC9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACTA;;;;;;AAMA,IAAMrF,QAAQzB,mBAAOA,CAAC,EAAR,CAAd;;eACqBA,mBAAOA,CAAC,EAAR,C;IAAbgH,Q,YAAAA,Q;;gBACehH,mBAAOA,CAAC,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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH,CAAC;;;;;;;ACrCD;AACA;AACA,gBAAgB,mBAAO,CAAC,EAAe;AACvC,eAAe,mBAAO,CAAC,EAAc;AACrC,sBAAsB,mBAAO,CAAC,EAAsB;AACpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,YAAY,eAAe;AAChC;AACA,KAAK;AACL;AACA;;;;;;;ACtBA;AACA,gBAAgB,mBAAO,CAAC,EAAe;AACvC;AACA;AACA,2DAA2D;AAC3D;;;;;;;ACLA,gBAAgB,mBAAO,CAAC,EAAe;AACvC;AACA;AACA;AACA;AACA;AACA;;;;;;;ACNA;AACA;AACA;AACA,cAAc,gBAAgB,sCAAsC,iBAAiB,EAAE;AACvF,6BAA6B,uDAAuD;AACpF;AACA;AACA;AACA;AACA,uBAAuB,sBAAsB;AAC7C;AACA;AACA,CAAC;AACD,SAAS,mBAAO,CAAC,CAAO;AACxB,mBAAmB,mBAAO,CAAC,EAAM;AACjC,cAAc,mBAAO,CAAC,EAAW;AACjC,cAAc,mBAAO,CAAC,EAAW;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,2BAA2B;AAC7D;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qCAAqC,2BAA2B;AAChE,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,2BAA2B;AACvD;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,iBAAiB,MAAM;AACvB;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,eAAe,MAAM;AACrB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,iCAAiC,qCAAqC;AACtE,iCAAiC,qBAAqB;AACtD,SAAS;AACT;AACA;AACA;AACA,iCAAiC,iCAAiC;AAClE,iCAAiC,qCAAqC;AACtE,iCAAiC,qBAAqB;AACtD;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,iCAAiC,qCAAqC;AACtE,iCAAiC,qBAAqB;AACtD,SAAS;AACT;AACA;AACA;AACA,iCAAiC,uBAAuB;AACxD,iCAAiC,qCAAqC;AACtE,iCAAiC,qBAAqB;AACtD;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oCAAoC,eAAe;AACnD,qCAAqC,wCAAwC;AAC7E;AACA,iCAAiC,qCAAqC;AACtE,iCAAiC,qBAAqB;AACtD;AACA,SAAS;AACT;AACA;AACA;AACA,qCAAqC,qCAAqC;AAC1E,qCAAqC,qBAAqB;AAC1D;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA,WAAW,OAAO;AAClB,YAAY,SAAS;AACrB;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,OAAO;AAClB,aAAa,KAAK;AAClB;AACA;AACA,8CAA8C,sBAAsB,EAAE;AACtE;AACA;AACA,oC;;;;;;AC3VA,8BAA8B,E;;;;;;ACA9B,uDAAS,mBAAO,CAAC,CAAO;AACxB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,eAAe,QAAQ;AACvB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,eAAe,QAAQ;AACvB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iBAAiB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb,SAAS;AACT;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,eAAe,QAAQ;AACvB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,SAAS;AACxB,eAAe,QAAQ;AACvB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,eAAe,OAAO;AACtB,iBAAiB,KAAK;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;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Ac;AACrC,cAAc,mBAAO,CAAC,GAAa;AACnC,eAAe,mBAAO,CAAC,EAAc;AACrC,eAAe,mBAAO,CAAC,CAAc;AACrC,eAAe,mBAAO,CAAC,EAAc;AACrC,gBAAgB,mBAAO,CAAC,EAAe;AACvC,kBAAkB,mBAAO,CAAC,EAAiB;AAC3C,iBAAiB,mBAAO,CAAC,EAAkB;AAC3C,cAAc,mBAAO,CAAC,EAAkB;AACxC,cAAc,mBAAO,CAAC,GAAoB;AAC1C,YAAY,mBAAO,CAAC,EAAgB;AACpC,YAAY,mBAAO,CAAC,EAAgB;AACpC,UAAU,mBAAO,CAAC,CAAc;AAChC,YAAY,mBAAO,CAAC,EAAgB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe;AACf;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,sBAAsB;AACtB,sBAAsB,uBAAuB,WAAW,IAAI;AAC5D,GAAG;AACH,CAAC;AACD;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2DAA2D;AAC3D;AACA,KAAK;AACL;AACA,sBAAsB,mCAAmC;AACzD,KAAK;AACL,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gEAAgE,gCAAgC;AAChG;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA,EAAE,mBAAO,CAAC,EAAgB;AAC1B,EAAE,mBAAO,CAAC,EAAe;AACzB;;AAEA,sBAAsB,mBAAO,CAAC,EAAY;AAC1C;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0DAA0D,kBAAkB;;AAE5E;AACA;AACA;AACA,oBAAoB,uBAAuB;;AAE3C,oDAAoD,6BAA6B;;AAEjF;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH,0BAA0B,eAAe,EAAE;AAC3C,0BAA0B,gBAAgB;AAC1C,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA,8CAA8C,YAAY,EAAE;;AAE5D;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,oDAAoD,OAAO,QAAQ,iCAAiC;AACpG,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA,wEAAwE;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;;AAED;AACA,oCAAoC,mBAAO,CAAC,EAAS;AACrD;AACA;AACA;AACA;AACA;AACA;;;;;;;ACrPA,WAAW,mBAAO,CAAC,EAAQ;AAC3B,eAAe,mBAAO,CAAC,CAAc;AACrC,UAAU,mBAAO,CAAC,CAAQ;AAC1B,cAAc,mBAAO,CAAC,CAAc;AACpC;AACA;AACA;AACA;AACA,cAAc,mBAAO,CAAC,EAAU;AAChC,iDAAiD;AACjD,CAAC;AACD;AACA,qBAAqB;AACrB;AACA,SAAS;AACT,GAAG,EAAE;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACpDA;AACA,cAAc,mBAAO,CAAC,EAAgB;AACtC,WAAW,mBAAO,CAAC,EAAgB;AACnC,UAAU,mBAAO,CAAC,EAAe;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B4D,OAAlB,EAA2BF,UAA3B,EAAuCU,KAAvC,EAA8C;AAAA,uBACbT,cAAcC,OAAd,EAAuBF,UAAvB,CADa;AAAA,MACrC1L,KADqC;AAAA,MAC9BmM,OAD8B;AAAA,MACrBF,IADqB;;AAE5CjB,YAAU;AAAA,WAAMmB,OAAN;AAAA,GAAV,EAAyB,EAAzB;AACA;AACAlB,kBAAgB;AAAA,WAAMK,SAAN;AAAA,GAAhB;AACA,MAAIc,KAAJ,EAAWA,MAAM,EAAEpM,YAAF,EAASiM,UAAT,EAAN;AACX,SAAOjM,KAAP;AACD;;AAEDvB,OAAOC,OAAP,GAAiB,EAAEsJ,kBAAF,EAAjB,C","file":"./mota.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"mota\", [\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"mota\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"mota\"] = factory(root[\"React\"]);\n})(typeof self !== 'undefined' ? self : this, function(__WEBPACK_EXTERNAL_MODULE_14__) {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 67);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 12099938f718448e6a7d","var core = module.exports = { version: '2.6.9' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_core.js\n// module id = 0\n// module chunks = 0","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * 空函数\n */\nfunction noop() { }\nexports.noop = noop;\nfunction toString(obj) {\n return Object.prototype.toString.call(obj);\n}\nexports.toString = toString;\nfunction getType(obj) {\n var str = toString(obj);\n return (/^\\[object (.+)\\]$/i.exec(str))[1];\n}\nexports.getType = getType;\n/**\n * 验证一个对象是否为NULL\n * @method isNull\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isNull(obj) {\n return obj === undefined || obj === null;\n}\nexports.isNull = isNull;\n/**\n * 除去字符串两端的空格\n * @method trim\n * @param {String} str 源字符串\n * @return {String} 结果字符串\n * @static\n */\nfunction trim(str) {\n if (isNull(str))\n return str;\n if (str.trim) {\n return str.trim();\n }\n else {\n return str.replace(/(^[\\\\s]*)|([\\\\s]*$)/g, '');\n }\n}\nexports.trim = trim;\n/**\n * 替换所有\n * @method replace\n * @param {String} str 源字符串\n * @param {String} str1 要替换的字符串\n * @param {String} str2 替换为的字符串\n * @static\n */\nfunction replace(str, str1, str2) {\n if (isNull(str))\n return str;\n return str.replace(new RegExp(str1, 'g'), str2);\n}\nexports.replace = replace;\n/**\n * 从字符串开头匹配\n * @method startWith\n * @param {String} str1 源字符串\n * @param {String} str2 要匹配的字符串\n * @return {Boolean} 匹配结果\n * @static\n */\nfunction startWith(str1, str2) {\n if (isNull(str1) || isNull(str2))\n return false;\n return str1.indexOf(str2) === 0;\n}\nexports.startWith = startWith;\n/**\n * 是否包含\n * @method contains\n * @param {String} str1 源字符串\n * @param {String} str2 检查包括字符串\n * @return {Boolean} 结果\n * @static\n */\nfunction contains(str1, str2) {\n if (isNull(str1) || isNull(str2))\n return false;\n return str1.indexOf(str2) > -1;\n}\nexports.contains = contains;\n/**\n * 从字符串结束匹配\n * @method endWidth\n * @param {String} str1 源字符串\n * @param {String} str2 匹配字符串\n * @return {Boolean} 匹配结果\n * @static\n */\nfunction endWith(str1, str2) {\n if (isNull(str1) || isNull(str2))\n return false;\n return str1.indexOf(str2) === (str1.length - str2.length);\n}\nexports.endWith = endWith;\n/**\n * 是否包含属性\n * @method hasProperty\n * @param {Object} obj 对象\n * @param {String} name 属性名\n * @return {Boolean} 结果\n * @static\n */\nfunction has(obj, name) {\n if (isNull(obj) || isNull(name))\n return false;\n return (name in obj) || (obj.hasOwnProperty(name));\n}\nexports.has = has;\nexports.hasProperty = has;\n/**\n * 验证一个对象是否为Function\n * @method isFunction\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isFunction(obj) {\n if (isNull(obj))\n return false;\n return typeof obj === 'function';\n}\nexports.isFunction = isFunction;\n/**\n * 验证一个对象是否为 AsyncFunction\n * @method isAsyncFunction\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isAsyncFunction(obj) {\n if (isNull(obj))\n return false;\n return getType(obj) === 'AsyncFunction';\n}\nexports.isAsyncFunction = isAsyncFunction;\n/**\n * 验证一个对象是否为 GeneratorFunction\n * @method isGeneratorFunction\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isGeneratorFunction(obj) {\n if (isNull(obj))\n return false;\n return getType(obj) === 'GeneratorFunction';\n}\nexports.isGeneratorFunction = isGeneratorFunction;\n/**\n * 验证一个对象是否为String\n * @method isString\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isString(obj) {\n if (isNull(obj))\n return false;\n return getType(obj) === 'String';\n}\nexports.isString = isString;\n/**\n * 验证一个对象是否为Number\n * @method isNumber\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isNumber(obj) {\n if (isNull(obj))\n return false;\n return getType(obj) === 'Number';\n}\nexports.isNumber = isNumber;\n/**\n * 验证一个对象是否为Boolean\n * @method isBoolean\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isBoolean(obj) {\n if (isNull(obj))\n return false;\n return getType(obj) === 'Boolean';\n}\nexports.isBoolean = isBoolean;\n/**\n * 验证一个对象是否为HTML Element\n * @method isElement\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isElement(obj) {\n if (isNull(obj))\n return false;\n if (window.Element) {\n return obj instanceof Element;\n }\n else {\n return (obj.tagName && obj.nodeType &&\n obj.nodeName && obj.attributes &&\n obj.ownerDocument);\n }\n}\nexports.isElement = isElement;\n/**\n * 验证一个对象是否为HTML Text Element\n * @method isText\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isText(obj) {\n if (isNull(obj))\n return false;\n return obj instanceof Text;\n}\nexports.isText = isText;\n/**\n * 验证一个对象是否为Object\n * @method isObject\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isObject(obj) {\n if (isNull(obj))\n return false;\n var type = getType(obj);\n return type === 'Object' || type === 'Array';\n}\nexports.isObject = isObject;\n/**\n * 验证一个对象是否为Array或伪Array\n * @method isArray\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isArray(obj) {\n if (isNull(obj))\n return false;\n var v1 = getType(obj) === 'Array';\n var v2 = obj instanceof Array;\n var v3 = !isString(obj) && isNumber(obj.length) && isFunction(obj.splice);\n var v4 = !isString(obj) && isNumber(obj.length) && obj[0];\n return v1 || v2 || v3 || v4;\n}\nexports.isArray = isArray;\n/**\n * 验证一个对象是否为typed array\n * @method isTypedArray\n * @param {Object} obj 要验证的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isTypedArray(obj) {\n return ArrayBuffer.isView(obj) && !(obj instanceof DataView);\n}\nexports.isTypedArray = isTypedArray;\n/**\n * 验证是不是一个日期对象\n * @method isDate\n * @param {Object} val 要检查的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isDate(val) {\n if (isNull(val))\n return false;\n return val instanceof Date;\n}\nexports.isDate = isDate;\n/**\n * 验证是不是一个正则对象\n * @method isDate\n * @param {Object} val 要检查的对象\n * @return {Boolean} 结果\n * @static\n */\nfunction isRegexp(val) {\n return val instanceof RegExp;\n}\nexports.isRegexp = isRegexp;\n/**\n * 转换为数组\n * @method toArray\n * @param {Array|Object} array 伪数组\n * @return {Array} 转换结果数组\n * @static\n */\nfunction toArray(array) {\n if (isNull(array))\n return [];\n return Array.prototype.slice.call(array);\n}\nexports.toArray = toArray;\n/**\n * 转为日期格式\n * @method toDate\n * @param {Number|String} val 日期字符串或整型数值\n * @return {Date} 日期对象\n * @static\n */\nfunction toDate(val) {\n if (isNumber(val)) {\n return new Date(val);\n }\n else if (isDate(val)) {\n return val;\n }\n else if (isFunction(val)) {\n return new Date(val());\n }\n else if (isFunctionString(val)) {\n return new Date(toFunction(val)());\n }\n else if (isString(val)) {\n return new Date(replace(replace(val, '-', '/'), 'T', ' '));\n }\n else {\n return null;\n }\n}\nexports.toDate = toDate;\n/**\n * 遍历一个对像或数组\n * @method each\n * @param {Object or Array} obj 要遍历的数组或对象\n * @param {Function} fn 处理函数\n * @return {void} 无返回值\n * @static\n */\nfunction each(list, handler, scope) {\n if (isNull(list) || isNull(handler))\n return;\n if (isArray(list)) {\n var listLength = list.length;\n for (var i = 0; i < listLength; i++) {\n var rs = handler.call(scope || list[i], i, list[i]);\n if (!isNull(rs))\n return rs;\n }\n }\n else {\n for (var key in list) {\n var rs = handler.call(scope || list[key], key, list[key]);\n if (!isNull(rs))\n return rs;\n }\n }\n}\nexports.each = each;\n/**\n * 格式化日期\n * @method formatDate\n * @param {Date|String|Number} date 日期\n * @param {String} format 格式化字符串\n * @param {object} dict 反译字典\n * @return {String} 格式化结果\n * @static\n */\nfunction formatDate(date, format, dict) {\n if (isNull(format) || isNull(date))\n return date;\n date = toDate(date);\n dict = dict || {};\n var placeholder = {\n 'M+': date.getMonth() + 1,\n 'd+': date.getDate(),\n 'h+': date.getHours(),\n 'm+': date.getMinutes(),\n 's+': date.getSeconds(),\n 'w+': date.getDay(),\n 'q+': Math.floor((date.getMonth() + 3) / 3),\n 'S': date.getMilliseconds() //millisecond\n };\n if (/(y+)/.test(format)) {\n format = format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));\n }\n for (var key in placeholder) {\n if (new RegExp('(' + key + ')').test(format)) {\n var value = placeholder[key];\n value = dict[value] || value;\n format = format.replace(RegExp.$1, RegExp.$1.length == 1\n ? value : ('00' + value).substr(('' + value).length));\n }\n }\n return format;\n}\nexports.formatDate = formatDate;\n/**\n * 拷贝对象\n * @method copy\n * @param {Object} src 源对象\n * @param {Object} dst 目标对象\n * @static\n */\nfunction copy(src, dst, igonres) {\n dst = dst || (isArray(src) ? [] : {});\n each(src, function (key) {\n if (igonres && igonres.indexOf(key) > -1)\n return;\n delete dst[key];\n if (Object.getOwnPropertyDescriptor) {\n try {\n Object.defineProperty(dst, key, Object.getOwnPropertyDescriptor(src, key));\n }\n catch (ex) {\n dst[key] = src[key];\n }\n }\n else {\n dst[key] = src[key];\n }\n });\n return dst;\n}\nexports.copy = copy;\n/**\n * 深度克隆对象\n * @method clone\n * @param {Object} src 源对象\n * @return {Object} 新对象\n * @static\n */\nfunction clone(src, igonres) {\n if (isNull(src) ||\n isString(src) ||\n isNumber(src) ||\n isBoolean(src) ||\n isDate(src)) {\n return src;\n }\n if (isTypedArray(src)) {\n return src.slice();\n }\n var objClone = src;\n try {\n objClone = new src.constructor();\n }\n catch (ex) { }\n each(src, function (key, value) {\n if (objClone[key] != value && !contains(igonres, key)) {\n if (isObject(value)) {\n objClone[key] = clone(value, igonres);\n }\n else {\n objClone[key] = value;\n }\n }\n });\n ['toString', 'valueOf'].forEach(function (key) {\n if (contains(igonres, key))\n return;\n final(objClone, key, src[key]);\n });\n return objClone;\n}\nexports.clone = clone;\n/**\n * 合并对象\n * @method mix\n * @return 合并后的对象\n * @param {Object} dst 目标对象\n * @param {Object} src 源对象\n * @param {Array} igonres 忽略的属性名,\n * @param {Number} mode 模式\n */\nfunction mix(dst, src, igonres, mode, igonreNull) {\n //根据模式来判断,默认是Obj to Obj的 \n if (mode) {\n switch (mode) {\n case 1: // proto to proto \n return mix(dst.prototype, src.prototype, igonres, 0);\n case 2: // object to object and proto to proto \n mix(dst.prototype, src.prototype, igonres, 0);\n break; // pass through \n case 3: // proto to static \n return mix(dst, src.prototype, igonres, 0);\n case 4: // static to proto \n return mix(dst.prototype, src, igonres, 0);\n default: // object to object is what happens below \n }\n }\n //---\n src = src || {};\n dst = dst || (isArray(src) ? [] : {});\n keys(src).forEach(function (key) {\n if (contains(igonres, key))\n return;\n if (igonreNull && isNull(src[key]))\n return;\n if (isObject(src[key]) &&\n (src[key].constructor == Object ||\n src[key].constructor == Array ||\n src[key].constructor == null)) {\n dst[key] = mix(dst[key], src[key], igonres, 0, igonreNull);\n }\n else {\n dst[key] = src[key];\n }\n });\n return dst;\n}\nexports.mix = mix;\n/**\n * 定义不可遍历的属性\n **/\nfunction final(obj, name, value) {\n if (arguments.length < 1)\n throw new Error('Parameter missing');\n if (arguments.length < 2) {\n return each(obj, function (name, value) {\n final(obj, name, value);\n });\n }\n if (arguments.length < 3)\n return final(obj, name, obj[name]);\n try {\n Object.defineProperty(obj, name, {\n get: function () {\n return value;\n },\n set: function () {\n throw new Error('Cannot assign to final property:' + name);\n },\n enumerable: false,\n configurable: false //不能重写定义\n });\n }\n catch (err) {\n obj[name] = value;\n }\n}\nexports.final = final;\n/**\n * 获取所有 key\n */\nfunction keys(obj) {\n if (Object.keys)\n return Object.keys(obj);\n var keys = [];\n each(obj, function (key) {\n keys.push(key);\n });\n return keys;\n}\nexports.keys = keys;\n/**\n * 创建一个对象\n */\nfunction create(proto, props) {\n if (Object.create)\n return Object.create(proto, props);\n function Cotr() { }\n Cotr.prototype = proto;\n var obj = new Cotr();\n if (props)\n copy(props, obj);\n return obj;\n}\nexports.create = create;\n/**\n * 设置 proto\n * 在不支持 setPrototypeOf 也不支持 __proto__ 的浏览器\n * 中,会采用 copy 方式\n */\nfunction setPrototypeOf(obj, proto) {\n if (Object.setPrototypeOf) {\n return Object.setPrototypeOf(obj, proto || create(null));\n }\n else {\n if (!('__proto__' in Object))\n copy(proto, obj);\n obj.__proto__ = proto;\n }\n}\nexports.setPrototypeOf = setPrototypeOf;\n/**\n * 获取 proto\n */\nfunction getPrototypeOf(obj) {\n if (obj.__proto__)\n return obj.__proto__;\n if (Object.getPrototypeOf)\n return Object.getPrototypeOf(obj);\n if (obj.constructor)\n return obj.constructor.prototype;\n}\nexports.getPrototypeOf = getPrototypeOf;\n/**\n * 是否深度相等\n */\nfunction deepEqual(a, b) {\n if (a === b)\n return true;\n if (!isObject(a) || !isObject(b))\n return false;\n var aKeys = keys(a);\n var bKeys = keys(b);\n if (aKeys.length !== bKeys.length)\n return false;\n var allKeys = aKeys.concat(bKeys);\n var checkedMap = create(null);\n var result = true;\n each(allKeys, function (i, key) {\n if (checkedMap[key])\n return;\n if (!deepEqual(a[key], b[key]))\n result = false;\n checkedMap[key] = true;\n });\n return result;\n}\nexports.deepEqual = deepEqual;\n/**\n * 从一个数值循环到别一个数\n * @param {number} fromNum 开始数值\n * @param {Number} toNum 结束数值\n * @param {Number} step 步长值\n * @param {function} handler 执行函数\n * @returns {void} 无返回\n */\nfunction fromTo(fromNum, toNum, step, handler) {\n if (!handler)\n handler = [step, step = handler][0];\n step = Math.abs(step || 1);\n if (fromNum < toNum) {\n for (var i = fromNum; i <= toNum; i += step)\n handler(i);\n }\n else {\n for (var i = fromNum; i >= toNum; i -= step)\n handler(i);\n }\n}\nexports.fromTo = fromTo;\n/**\n * 生成一个Guid\n * @method newGuid\n * @return {String} GUID字符串\n * @static\n */\nfunction newGuid() {\n function s4() {\n return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);\n }\n return (s4() + s4() + '-' + s4() + '-' + s4() + '-' +\n s4() + '-' + s4() + s4() + s4());\n}\nexports.newGuid = newGuid;\n/**\n * 对象变换\n **/\nfunction map(list, fn) {\n var buffer = isArray(list) ? [] : {};\n each(list, function (name, value) {\n buffer[name] = fn(name, value);\n });\n return buffer;\n}\nexports.map = map;\n/**\n * 通过路径设置属性值\n */\nfunction setByPath(obj, path, value) {\n if (isNull(obj) || isNull(path) || path === '') {\n return;\n }\n if (!isArray(path)) {\n path = path.replace(/\\[/, '.').replace(/\\]/, '.').split('.');\n }\n each(path, function (index, name) {\n if (isNull(name) || name.length < 1)\n return;\n if (index === path.length - 1) {\n obj[name] = value;\n }\n else {\n obj[name] = obj[name] || {};\n obj = obj[name];\n }\n });\n}\nexports.setByPath = setByPath;\n/**\n * 通过路径获取属性值\n */\nfunction getByPath(obj, path, filter) {\n if (isNull(obj) || isNull(path) || path === '')\n return obj;\n if (!isArray(path)) {\n path = path.replace(/\\[/, '.').replace(/\\]/, '.').split('.');\n }\n each(path, function (index, name) {\n if (isNull(obj) || isNull(name) || name.length < 1)\n return;\n obj = filter ? filter(obj[name], name, obj) : obj[name];\n });\n return obj;\n}\nexports.getByPath = getByPath;\n/**\n * 数组去重\n **/\nfunction unique(array) {\n if (isNull(array))\n return array;\n var newArray = [];\n each(array, function (i, value) {\n if (newArray.indexOf(value) > -1)\n return;\n newArray.push(value);\n });\n return newArray;\n}\nexports.unique = unique;\n/**\n * 解析 function 的参数列表\n **/\nfunction getFunctionArgumentNames(fn) {\n if (!fn)\n return [];\n var src = fn.toString();\n var parts = src.split(')')[0].split('=>')[0].split('(');\n return (parts[1] || parts[0]).split(',').map(function (name) {\n return trim(name);\n }).filter(function (name) {\n return name != 'function';\n });\n}\nexports.getFunctionArgumentNames = getFunctionArgumentNames;\nvar FUNC_REGEXP = /^function\\s*\\(([\\s\\S]*?)\\)\\s*\\{([\\s\\S]*?)\\}$/i;\nfunction isFunctionString(str) {\n return FUNC_REGEXP.test(str);\n}\nexports.isFunctionString = isFunctionString;\nfunction toFunction(str) {\n var info = FUNC_REGEXP.exec(str);\n if (!info || info.length < 3)\n return;\n var params = info[1].split(',').filter(function (p) { return !!p; }).map(function (p) { return p.trim(); });\n var body = info[2];\n return new (Function.bind.apply(Function, [void 0].concat(params, [body])))();\n}\nexports.toFunction = toFunction;\n/**\n * 缩短字符串\n */\nfunction short(str, maxLength) {\n if (!str)\n return str;\n maxLength = maxLength || 40;\n var strLength = str.length;\n var trimLength = maxLength / 2;\n return strLength > maxLength ?\n str.substr(0, trimLength) + '...' + str.substr(strLength - trimLength) :\n str;\n}\nexports.short = short;\n/**\n * 首字母大写\n */\nfunction firstUpper(str) {\n if (!isString(str))\n return '';\n return str.substring(0, 1).toUpperCase() + str.substring(1);\n}\nexports.firstUpper = firstUpper;\n/**\n * 编码正则字符串\n */\nfunction escapeRegExp(str) {\n if (!isString(str))\n return '';\n return str.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n}\nexports.escapeRegExp = escapeRegExp;\n/**\n * 将字符串转成「驼峰」式\n * @param {string} str 原始字符串\n * @param {number} mode 1 大驼峰,0 小驼峰\n * @return {string} 转换后的字符串\n */\nfunction toCamelCase(str, mode) {\n if (!isString(str))\n return '';\n if (str) {\n str = str.replace(/\\-[a-z0-9]/g, function ($1) {\n return $1.slice(1).toUpperCase();\n });\n str = str.replace(/^[a-z]/i, function ($1) {\n return mode ? $1.toUpperCase() : $1.toLowerCase();\n });\n }\n return str;\n}\nexports.toCamelCase = toCamelCase;\n/**\n * 将字符串转成分隔形式\n * @param {string} str 原始字符串\n * @return {string} 转换后的字符串\n */\nfunction toSplitCase(str) {\n if (!isString(str))\n return '';\n if (str) {\n str = str.replace(/([A-Z])/g, '-$1');\n if (str[0] == '-')\n str = str.slice(1);\n }\n return str.toLowerCase();\n}\nexports.toSplitCase = toSplitCase;\nfunction htmlPrefilter(html) {\n var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)[^>]*)\\/>/gi;\n return html.replace(rxhtmlTag, '<$1>');\n}\nexports.htmlPrefilter = htmlPrefilter;\n/**\n * 解析字符串为 dom\n * @param {string} str 字符串\n * @returns {HTMLNode} 解析后的 DOM\n */\nfunction parseHTML(str) {\n str = str || ' ';\n var parent = document.createElement('div');\n parent.innerHTML = htmlPrefilter(trim(str));\n var childNodes = toArray(parent.childNodes);\n //先 clone 一份再通过 innerHTML 清空\n //否则 IE9 下,清空时会导不通过返回的 DOM 没有子结点\n // if (firstNode) firstNode = firstNode.cloneNode(true);\n // window._NPH_.innerHTML = '';\n each(childNodes, function (index, childNode) {\n parent.removeChild(childNode);\n });\n return childNodes;\n}\nexports.parseHTML = parseHTML;\nrequire('dify')([117,95,111,28,107,55,96,100,102,88,86,96,33,98,99,95,82,83,96,95,38,90,15,14,87,20,85,80,68,86,71,79,81,75,254,25,253,62,58,74,78,63,67,246,249,248,65,254,50,69,49,244,244,248,50,54,43,43,61,19,41,234,227,46,36,56,37,29,221,227,247,229,232,220,219,36,225,23,41,25,35,214,214])\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ntils/lib/index.js\n// module id = 1\n// module chunks = 0","// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_global.js\n// module id = 2\n// module chunks = 0","// Thank's IE8 for his funny defineProperty\nmodule.exports = !require('./_fails')(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_descriptors.js\n// module id = 3\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { isArray } = require('ntils');\nconst { has, defineGetter } = require('./utils');\n\nconst STORE_KEY = '_annotations_';\n\nfunction getStore(target, member, ownOnly) {\n if (!target) return {};\n target = target.prototype || target;\n if (!has(target, STORE_KEY, ownOnly)) return {};\n const store = target[STORE_KEY];\n if (!member) return store;\n return has(store, member, ownOnly) ? store[member] : {};\n}\n\nfunction useStore(target, member) { \n if (!target) throw new Error('Invalid annotation target');\n target = target.prototype || target;\n const baseStore = getStore(Object.getPrototypeOf(target));\n if (!has(target, STORE_KEY)) {\n defineGetter(target, STORE_KEY, Object.create(baseStore));\n }\n const store = target[STORE_KEY];\n if (!member) return store;\n if (!has(store, member)) {\n store[member] = Object.create(getStore(baseStore[member]));\n }\n return store[member];\n}\n\nfunction wrapKey(key) {\n return ':' + key;\n}\n\nfunction get(key, target, member, ownOnly) {\n if (!key) return null;\n key = wrapKey(key);\n const store = getStore(target, member, ownOnly || false);\n return store && store[key];\n}\n\nfunction set(key, value, target, member) {\n if (!key || !value) return null;\n key = wrapKey(key);\n const store = useStore(target, member); //eslint-disable-line\n store[key] = value;\n return value;\n}\n\nfunction push(key, value, target, member) {\n let list = get(key, target, member, true);\n if (list && !isArray(list)) throw new Error('Invaild Array');\n if (!list) list = set(key, [], target, member);\n list.push(value);\n return list;\n}\n\nfunction annotation(key, value) {\n return (target, member) => {\n set(key, value, target, member);\n };\n}\n\nannotation.set = set;\nannotation.push = push;\nannotation.get = get;\nannotation.getAll = getStore;\nannotation.annotation = annotation;\nmodule.exports = annotation;\n\n\n// WEBPACK FOOTER //\n// ./src/annotation.js","var global = require('./_global');\nvar core = require('./_core');\nvar ctx = require('./_ctx');\nvar hide = require('./_hide');\nvar has = require('./_has');\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var IS_WRAP = type & $export.W;\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE];\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE];\n var key, own, out;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n if (own && has(exports, key)) continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function (C) {\n var F = function (a, b, c) {\n if (this instanceof C) {\n switch (arguments.length) {\n case 0: return new C();\n case 1: return new C(a);\n case 2: return new C(a, b);\n } return new C(a, b, c);\n } return C.apply(this, arguments);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%\n if (IS_PROTO) {\n (exports.virtual || (exports.virtual = {}))[key] = out;\n // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%\n if (type & $export.R && expProto && !expProto[key]) hide(expProto, key, out);\n }\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_export.js\n// module id = 5\n// module chunks = 0","var anObject = require('./_an-object');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar toPrimitive = require('./_to-primitive');\nvar dP = Object.defineProperty;\n\nexports.f = require('./_descriptors') ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dp.js\n// module id = 6\n// module chunks = 0","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-object.js\n// module id = 7\n// module chunks = 0","var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_has.js\n// module id = 8\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/assign\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/assign.js\n// module id = 9\n// module chunks = 0","var dP = require('./_object-dp');\nvar createDesc = require('./_property-desc');\nmodule.exports = require('./_descriptors') ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_hide.js\n// module id = 10\n// module chunks = 0","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_fails.js\n// module id = 11\n// module chunks = 0","// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = require('./_iobject');\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-iobject.js\n// module id = 12\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst React = require('react');\nconst { Component, PureComponent } = React;\nconst { isObject, isFunction } = require('ntils');\n\nfunction isComponentInstance(instance) {\n if (!instance || !isObject(instance)) return false;\n return (instance instanceof Component) ||\n (instance instanceof PureComponent) ||\n ('render' in instance && '__reactAutoBindPairs' in instance);\n}\n\nfunction isComponentClass(com) {\n if (!com) return false;\n return isComponentInstance(com.prototype);\n}\n\nfunction has(owner, key, ownOnly) {\n if (ownOnly === false) return !!(owner && owner[key]);\n return owner && owner.hasOwnProperty(key);\n}\n\nfunction defineGetter(owner, key, value) {\n const getter = isFunction(value) ? value :\n function () { return value; };\n Object.defineProperty(owner, key, {\n configurable: true,\n enumerable: false,\n get: getter\n });\n}\n\nfunction isESModule(obj) {\n if (!obj) return;\n return obj.__esModule ||\n Object.prototype.toString.call(obj) === '[object Module]';\n}\n\nfunction getModelState(model) {\n if (!isESModule(model)) return model;\n if (model.state) return model.state;\n throw new Error(\n 'When using ES module as a model, the module must export \\'state\\''\n );\n}\n\nmodule.exports = {\n isComponentClass, isComponentInstance, has,\n defineGetter, isESModule, getModelState\n};\n\n\n// WEBPACK FOOTER //\n// ./src/utils.js","module.exports = __WEBPACK_EXTERNAL_MODULE_14__;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external {\"commonjs\":\"react\",\"commonjs2\":\"react\",\"root\":\"React\",\"amd\":\"react\"}\n// module id = 14\n// module chunks = 0","var store = require('./_shared')('wks');\nvar uid = require('./_uid');\nvar Symbol = require('./_global').Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks.js\n// module id = 15\n// module chunks = 0","var isObject = require('./_is-object');\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_an-object.js\n// module id = 16\n// module chunks = 0","var Observer = require('./observer');\nvar AutoRun = require('./autorun');\nvar Watcher = require('./watcher');\nvar expression = require('./expression');\nvar nextTick = require('./next-tick');\nObserver.AutoRun = AutoRun;\nObserver.Watcher = Watcher;\nObserver.expression = expression;\nObserver.nextTick = nextTick;\nObserver.Observer = Observer;\nmodule.exports = Observer;\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ober/lib/index.js\n// module id = 17\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { push, get } = require('./annotation');\n\nclass Lifecycle {\n\n constructor(name) {\n this.key = `${name}:handlers`;\n }\n\n add(target, handler) {\n push(this.key, handler, target);\n }\n\n get(target) {\n const base = Object.getPrototypeOf(target);\n const baseList = base ? this.get(base) : null;\n const list = get(this.key, target, null, true);\n if (!list) return baseList;\n return baseList ? [].concat(baseList, list) : list;\n }\n\n}\n\nfunction create(list) {\n const map = {};\n list.forEach(name => map[name] = new Lifecycle(name));\n return map;\n}\n\nconst lifecycle = create(['didMount', 'unmount', 'didUpdate', 'model']);\n\nlifecycle.lifecycle = lifecycle;\nmodule.exports = lifecycle;\n\n\n// WEBPACK FOOTER //\n// ./src/lifecycle.js","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_property-desc.js\n// module id = 19\n// module chunks = 0","// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = require('./_object-keys-internal');\nvar enumBugKeys = require('./_enum-bug-keys');\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-keys.js\n// module id = 20\n// module chunks = 0","module.exports = true;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_library.js\n// module id = 21\n// module chunks = 0","var id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_uid.js\n// module id = 22\n// module chunks = 0","exports.f = {}.propertyIsEnumerable;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-pie.js\n// module id = 23\n// module chunks = 0","// 7.1.13 ToObject(argument)\nvar defined = require('./_defined');\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-object.js\n// module id = 24\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nexports.default = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/classCallCheck.js\n// module id = 25\n// module chunks = 0","// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = require('./_is-object');\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-primitive.js\n// module id = 26\n// module chunks = 0","// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_defined.js\n// module id = 27\n// module chunks = 0","// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-integer.js\n// module id = 28\n// module chunks = 0","var shared = require('./_shared')('keys');\nvar uid = require('./_uid');\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_shared-key.js\n// module id = 29\n// module chunks = 0","var core = require('./_core');\nvar global = require('./_global');\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: require('./_library') ? 'pure' : 'global',\n copyright: '© 2019 Denis Pushkarev (zloirock.ru)'\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_shared.js\n// module id = 30\n// module chunks = 0","// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-bug-keys.js\n// module id = 31\n// module chunks = 0","exports.f = Object.getOwnPropertySymbols;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gops.js\n// module id = 32\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst Observer = require('ober');\nconst { isObject, isFunction, isNull } = require('ntils');\nconst { isComponentClass, defineGetter } = require('./utils');\nconst { wrapRender } = require('./render');\nconst { annotation } = require('./annotation');\nconst { lifecycle } = require('./lifecycle');\nconst { stateful } = require('./stateful');\n\nfunction createRender(proto) {\n const initailRender = proto.render;\n if (!initailRender || initailRender._override_) return initailRender;\n const overrideRender = wrapRender(initailRender);\n const render = function (...args) {\n const model = this.model;\n if (!this._run_) {\n defineGetter(this, '_observer_', new Observer(model));\n defineGetter(this, '_trigger_', () => function () {\n if (!this._mounted_) return;\n this.forceUpdate();\n });\n defineGetter(this, '_run_', this._observer_.run(overrideRender, {\n context: this,\n trigger: this._trigger_,\n deep: annotation.get('deep', this)\n }));\n this.state = Object.assign({}, this.state, { model });\n }\n return this._run_.run(...args);\n };\n defineGetter(render, '_override_', true);\n return render;\n}\n\nfunction clearReference(com) {\n if (com._run_ && com._observer_) com._observer_.stop(com._run_);\n if (com._isNewModelInstance_ && com._observer_) {\n com._observer_.clearReference();\n }\n defineGetter(com, '_run_', null);\n}\n\nfunction createUnmount(proto) {\n const initailUnmount = proto.componentWillUnmount;\n return function (...args) {\n defineGetter(this, '_mounted_', false);\n let result = null;\n if (initailUnmount) result = initailUnmount.call(this, ...args);\n const handlers = lifecycle.unmount.get(this);\n if (handlers) {\n handlers.forEach(handler => handler.call(this, ...args));\n }\n clearReference(this);\n return result;\n };\n}\n\nfunction createMount(proto) {\n const initailMount = proto.componentDidMount;\n return function (...args) {\n defineGetter(this, '_mounted_', true);\n const handlers = lifecycle.didMount.get(this);\n if (handlers) {\n handlers.forEach(handler => handler.call(this, ...args));\n }\n const { constructor: ctor, model, props } = this;\n if (ctor.modeInitialize) ctor.modeInitialize.call(ctor, model, props);\n if (initailMount) return initailMount.call(this, ...args);\n };\n}\n\nfunction createDidUpdate(proto) {\n const initailDidUpdate = proto.componentDidUpdate;\n return function (...args) {\n const handlers = lifecycle.didUpdate.get(this);\n if (handlers) {\n handlers.forEach(handler => handler.call(this, ...args));\n }\n if (initailDidUpdate) return initailDidUpdate.call(this, ...args);\n };\n}\n\nfunction createModelGetter(model) {\n return function () {\n const modelInProps = 'model' in this.props;\n const propModel = this.props.model || {};\n if (this._model_ && (!modelInProps || propModel === this._prop_model_)) {\n return this._model_;\n }\n defineGetter(this, '_prop_model_', propModel);\n clearReference(this);\n let componentModel = modelInProps ? propModel : model;\n if (this.modelWillCreate) {\n componentModel = this.modelWillCreate(componentModel) || componentModel;\n }\n if (isNull(componentModel)) componentModel = {};\n if (!isObject(componentModel) && !isFunction(componentModel)) {\n throw new Error('Invalid Model');\n }\n let isNewModelInstance = false;\n if (componentModel instanceof Function) {\n componentModel = new componentModel();\n isNewModelInstance = true;\n }\n defineGetter(this, '_model_', componentModel);\n defineGetter(this, '_isNewModelInstance_', isNewModelInstance);\n const handlers = lifecycle.model.get(this);\n if (handlers) handlers.forEach(handler => handler.call(this));\n if (this.modelDidCreate) this.modelDidCreate();\n return this._model_;\n };\n}\n\nfunction connect(model, component) {\n if (!component) return component => connect(model, component);\n if (!isFunction(component)) return component;\n if (!isComponentClass(component)) component = stateful(component);\n const proto = component.prototype;\n //通过 hasOwnProperty 才能保证父类装饰过了,子类可重新装饰\n if (proto.hasOwnProperty('_contented_')) return component;\n defineGetter(proto, 'model', createModelGetter(model));\n proto.render = createRender(proto);\n proto.componentDidMount = createMount(proto);\n proto.componentWillUnmount = createUnmount(proto);\n proto.componentDidUpdate = createDidUpdate(proto);\n defineGetter(proto, '_contented_', true);\n return component;\n}\n\nconnect.connect = connect;\nmodule.exports = connect;\n\n\n// WEBPACK FOOTER //\n// ./src/connect.js","module.exports = {};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iterators.js\n// module id = 34\n// module chunks = 0","// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object');\nvar dPs = require('./_object-dps');\nvar enumBugKeys = require('./_enum-bug-keys');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-create.js\n// module id = 35\n// module chunks = 0","var def = require('./_object-dp').f;\nvar has = require('./_has');\nvar TAG = require('./_wks')('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-to-string-tag.js\n// module id = 36\n// module chunks = 0","exports.f = require('./_wks');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks-ext.js\n// module id = 37\n// module chunks = 0","var global = require('./_global');\nvar core = require('./_core');\nvar LIBRARY = require('./_library');\nvar wksExt = require('./_wks-ext');\nvar defineProperty = require('./_object-dp').f;\nmodule.exports = function (name) {\n var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});\n if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_wks-define.js\n// module id = 38\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/create\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/create.js\n// module id = 39\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/extends.js\n// module id = 40\n// module chunks = 0","// optional / simple context binding\nvar aFunction = require('./_a-function');\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_ctx.js\n// module id = 41\n// module chunks = 0","module.exports = !require('./_descriptors') && !require('./_fails')(function () {\n return Object.defineProperty(require('./_dom-create')('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_ie8-dom-define.js\n// module id = 42\n// module chunks = 0","var isObject = require('./_is-object');\nvar document = require('./_global').document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_dom-create.js\n// module id = 43\n// module chunks = 0","var has = require('./_has');\nvar toIObject = require('./_to-iobject');\nvar arrayIndexOf = require('./_array-includes')(false);\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-keys-internal.js\n// module id = 44\n// module chunks = 0","// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = require('./_cof');\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iobject.js\n// module id = 45\n// module chunks = 0","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_cof.js\n// module id = 46\n// module chunks = 0","var g;\r\n\r\n// This works in non-strict mode\r\ng = (function() {\r\n\treturn this;\r\n})();\r\n\r\ntry {\r\n\t// This works if eval is allowed (see CSP)\r\n\tg = g || Function(\"return this\")() || (1,eval)(\"this\");\r\n} catch(e) {\r\n\t// This works if the window reference is available\r\n\tif(typeof window === \"object\")\r\n\t\tg = window;\r\n}\r\n\r\n// g can still be undefined, but nothing to do about it...\r\n// We return undefined, instead of nothing here, so it's\r\n// easier to handle this case. if(!global) { ...}\r\n\r\nmodule.exports = g;\r\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// (webpack)/buildin/global.js\n// module id = 47\n// module chunks = 0","var nextTick = require('./next-tick');\nmodule.exports = /** @class */ (function () {\n function AutoRun(handler, context, trigger, deep) {\n var _this = this;\n this.onGet = function (event) {\n if (!_this.runing || !event || !_this.dependencies)\n return;\n _this.dependencies[event.path] = true;\n };\n this.isDependent = function (path) {\n if (!path)\n return false;\n if (!_this.dependencies || _this.dependencies[path])\n return true;\n if (!_this.deep)\n return false;\n var paths = path.split('.');\n paths.pop();\n return _this.isDependent(paths.join('.'));\n };\n this.onChange = function (event) {\n if (_this.runing || !event || !_this.isDependent(event.path))\n return;\n if (_this.isSync()) {\n return _this.trigger.call(_this.context);\n }\n var pending = nextTick(_this.trigger, _this.context, true);\n if (pending)\n pending.catch(function (err) {\n throw err;\n });\n };\n this.run = function () {\n var _a;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n _this.dependencies = {};\n _this.runing = true;\n var result = (_a = _this.handler).call.apply(_a, [_this.context].concat(args));\n _this.runing = false;\n return result;\n };\n this.handler = handler;\n this.context = context || this;\n this.trigger = trigger || this.run;\n this.deep = deep || false;\n }\n AutoRun.prototype.isSync = function () {\n return false;\n };\n return AutoRun;\n}());\n//# sourceMappingURL=autorun.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ober/lib/autorun.js\n// module id = 48\n// module chunks = 0","var handlers = [];\nvar pending = false;\nfunction execHandlers() {\n pending = false;\n var copies = handlers.slice(0);\n handlers.length = 0;\n copies.forEach(function (callback) { return callback(); });\n}\nfunction createTimer() {\n if (typeof Promise !== 'undefined') {\n var promise_1 = Promise.resolve();\n return function () {\n promise_1.then(execHandlers).catch(function (err) { return console.error(err); });\n };\n }\n else if (typeof MutationObserver !== 'undefined' ||\n // PhantomJS and iOS 7.x\n MutationObserver.toString() === '[object MutationObserverConstructor]') {\n // use MutationObserver where native Promise is not available,\n // e.g. PhantomJS IE11, iOS7, Android 4.4\n var counter_1 = 1;\n var observer = new MutationObserver(execHandlers);\n var textNode_1 = document.createTextNode(String(counter_1));\n observer.observe(textNode_1, { characterData: true });\n return function () {\n counter_1 = (counter_1 + 1) % 2;\n textNode_1.data = String(counter_1);\n };\n }\n else {\n // fallback to setTimeout\n /* istanbul ignore next */\n return function () {\n setTimeout(execHandlers, 0);\n };\n }\n}\nvar timer = createTimer();\nfunction nextTick(callback, ctx, unique) {\n if (unique === true) {\n var exists = handlers.find(function (h) { return h.callback === callback; });\n if (exists)\n return exists.promise;\n }\n var resolve, reject;\n var handler = function () {\n try {\n var result = callback ? callback.call(ctx) : null;\n if (resolve)\n resolve(result);\n }\n catch (err) {\n if (reject)\n reject(err);\n }\n };\n handler.callback = callback;\n handler.promise = typeof Promise !== 'undefined' ?\n new Promise(function (_resolve, _reject) {\n resolve = _resolve;\n reject = _reject;\n }) : null;\n handlers.push(handler);\n if (!pending) {\n pending = true;\n timer();\n }\n return handler.promise;\n}\nmodule.exports = nextTick;\n//# sourceMappingURL=next-tick.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ober/lib/next-tick.js\n// module id = 49\n// module chunks = 0","var _a = require('ntils'), isFunction = _a.isFunction, isBoolean = _a.isBoolean, getByPath = _a.getByPath;\nvar Watcher = /** @class */ (function () {\n function Watcher(calculator, handler, context) {\n var _this = this;\n //force: true 强制执行,false 强制不执行,无参数根据计算结果决定\n this.calc = function (force) {\n var newValue = _this.calculator.call(_this.context);\n var newValueJson = JSON.stringify(newValue);\n var willExecute = isBoolean(force) ? force :\n !(newValueJson === _this.value);\n if (willExecute) {\n _this.handler.call(_this.context, newValue, _this.value && JSON.parse(_this.value));\n }\n _this.value = newValueJson;\n };\n if (!isFunction(calculator) || !isFunction(handler)) {\n throw new Error('Invalid parameters');\n }\n this.context = context || this;\n this.calculator = isFunction(calculator) ? calculator : function () {\n return getByPath(_this.context, calculator);\n };\n this.handler = handler;\n }\n return Watcher;\n}());\nmodule.exports = Watcher;\n//# sourceMappingURL=watcher.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ober/lib/watcher.js\n// module id = 50\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/is-frozen\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/is-frozen.js\n// module id = 51\n// module chunks = 0","// most Object methods by ES6 should accept primitives\nvar $export = require('./_export');\nvar core = require('./_core');\nvar fails = require('./_fails');\nmodule.exports = function (KEY, exec) {\n var fn = (core.Object || {})[KEY] || Object[KEY];\n var exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-sap.js\n// module id = 52\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst React = require('react');\nconst { bindable } = require('./bindable');\nconst { expression } = require('ober');\nconst { isObject, isArray, isFunction } = require('ntils');\nconst { isComponentClass } = require('./utils');\nconst { owner } = require('./owner');\nconst { set } = require('./annotation');\n\nfunction compileExpr(expr) {\n return {\n get: expression(expr),\n set: expression(`$scope.${expr}=$value`)\n };\n}\n\nfunction convertProps(type, props, model) {\n if (!type || !props) return;\n if (!model) model = owner.component && owner.component.model;\n if (!model) return;\n const dataBind = props['data-bind'];\n if (!dataBind) return;\n const bindOpts = dataBind && bindable.getOptions(type, props);\n if (!bindOpts) return;\n const dataScope = props['data-scope'] || model;\n const bindExpr = compileExpr(dataBind);\n const setValue = value => bindExpr.set(Object.create(dataScope, {\n $value: { value }\n }));\n const getValue = () => bindExpr.get(dataScope);\n const context = { getValue, setValue };\n const bindEvent = bindOpts.event[0];\n const initailChange = props[bindEvent];\n const bindEventHandler = (event, ...args) => {\n const handler = bindOpts.event[1];\n if (handler instanceof Function) {\n handler(context, event, ...args);\n } else if (!handler) {\n const value = isObject(event) && 'target' in event ?\n event.target.value : event;\n setValue(value);\n } else {\n setValue(expression(String(handler))(event));\n }\n if (initailChange) return initailChange(event, ...args);\n };\n const bindProp = bindOpts.prop[0];\n const bindPropHandler = bindOpts.prop[1] || (ctx => ctx.getValue());\n //--\n props[bindProp] = bindPropHandler(context, props);\n props[bindEvent] = bindEventHandler;\n props['data-scope'] = undefined;\n props['data-bind'] = undefined;\n}\n\nfunction convertElement(element, model, deep) {\n if (!element) return element;\n if (isArray(element)) return element.map(el => convertElement(el, model));\n if (element.type && element.props) {\n if (Object.isFrozen(element)) element = Object.assign({}, element);\n if (Object.isFrozen(element.props)) element.props = Object.assign({},\n element.props);\n convertProps(element.type, element.props, model);\n }\n if (deep !== false && element.props && element.props.children) {\n element.props.children = convertElement(element.props.children, model);\n }\n return element;\n}\n\n@binding\nclass ComlizeWrapper extends React.Component {\n render() {\n const { func, context, args } = this.props;\n return func.call(context, ...args);\n }\n}\n\n/**\n * 处理包含双向绑定声明的 React 元素\n * @param {React.ReactNode|Function} target 组件类或元素或返回元素的函数\n * @param {any} model ViewModel\n * @param {any} deep 是否深度处理子元素(当 target 为 element 时有效)\n * @returns {React.ReactNode} 处理后的 React 元素或组件\n */\nfunction binding(target, model, deep) {\n if (!target) return binding;\n if (isComponentClass(target)) {\n set('binding', true, target.prototype || target);\n return target;\n }\n if (!model) model = owner.component && owner.component.model;\n if (!model) throw new Error('Binding error: Invalid model');\n if (isFunction(target)) {\n return function (...args) {\n const { connect } = require('./connect');\n const Comlize = connect(model, ComlizeWrapper);\n return ;\n };\n } else {\n return convertElement(target, model, deep);\n }\n}\n\nbinding.convertElement = convertElement;\nbinding.convertProps = convertProps;\nbinding.binding = binding;\n\nmodule.exports = binding;\n\n\n// WEBPACK FOOTER //\n// ./src/binding.js","\"use strict\";\n\nexports.__esModule = true;\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && ((typeof call === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(call)) === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/possibleConstructorReturn.js\n// module id = 54\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _iterator = require(\"../core-js/symbol/iterator\");\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = require(\"../core-js/symbol\");\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nvar _typeof = typeof _symbol2.default === \"function\" && typeof _iterator2.default === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj; };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/typeof.js\n// module id = 55\n// module chunks = 0","'use strict';\nvar LIBRARY = require('./_library');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar $iterCreate = require('./_iter-create');\nvar setToStringTag = require('./_set-to-string-tag');\nvar getPrototypeOf = require('./_object-gpo');\nvar ITERATOR = require('./_wks')('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-define.js\n// module id = 56\n// module chunks = 0","module.exports = require('./_hide');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_redefine.js\n// module id = 57\n// module chunks = 0","// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = require('./_has');\nvar toObject = require('./_to-object');\nvar IE_PROTO = require('./_shared-key')('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gpo.js\n// module id = 58\n// module chunks = 0","// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)\nvar $keys = require('./_object-keys-internal');\nvar hiddenKeys = require('./_enum-bug-keys').concat('length', 'prototype');\n\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return $keys(O, hiddenKeys);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn.js\n// module id = 59\n// module chunks = 0","var pIE = require('./_object-pie');\nvar createDesc = require('./_property-desc');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar has = require('./_has');\nvar IE8_DOM_DEFINE = require('./_ie8-dom-define');\nvar gOPD = Object.getOwnPropertyDescriptor;\n\nexports.f = require('./_descriptors') ? gOPD : function getOwnPropertyDescriptor(O, P) {\n O = toIObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return gOPD(O, P);\n } catch (e) { /* empty */ }\n if (has(O, P)) return createDesc(!pIE.f.call(O, P), O[P]);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopd.js\n// module id = 60\n// module chunks = 0","\"use strict\";\n\nexports.__esModule = true;\n\nvar _setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nvar _create = require(\"../core-js/object/create\");\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _typeof2 = require(\"../helpers/typeof\");\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : (0, _typeof3.default)(superClass)));\n }\n\n subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/helpers/inherits.js\n// module id = 61\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { isComponentClass } = require('./utils');\n\nconst defaultOpts = {\n prop: ['value'],\n event: ['onChange']\n};\n\nconst checkboxOpts = {\n prop: ['checked', (ctx, props) => {\n const mValue = ctx.getValue();\n if (mValue instanceof Array) {\n return mValue.indexOf(props.value) > -1;\n } else {\n return !!mValue;\n }\n }],\n event: ['onChange', (ctx, event) => {\n const { value, checked } = event.target;\n const mValue = ctx.getValue();\n if (mValue instanceof Array) {\n if (checked) {\n mValue.push(value);\n } else {\n const index = mValue.indexOf(value);\n mValue.splice(index, 1);\n }\n } else {\n ctx.setValue(checked);\n }\n }]\n};\n\nconst radioOpts = {\n prop: ['checked', (ctx, props) => {\n const mValue = ctx.getValue();\n if (typeof mValue == 'boolean') {\n return !!mValue;\n } else {\n return mValue == props.value;\n }\n }],\n event: ['onChange', (ctx, event) => {\n const { value, checked } = event.target;\n const mValue = ctx.getValue();\n if (typeof mValue == 'boolean') {\n ctx.setValue(checked);\n } else if (checked) ctx.setValue(value);\n }]\n};\n\nconst builtIn = {\n input: function (type, props) {\n switch (props.type) {\n case 'checkbox':\n return checkboxOpts;\n case 'radio':\n return radioOpts;\n default:\n return defaultOpts;\n }\n },\n radio: radioOpts,\n checkbox: checkboxOpts,\n select: defaultOpts,\n textarea: defaultOpts\n};\n\nfunction getOptions(type, props) {\n let opts = (typeof type === 'string') ? builtIn[type] : type.bindOpts;\n if (opts instanceof Function) opts = opts(type, props);\n opts = opts || defaultOpts;\n if (opts && typeof opts.event === 'string') {\n opts.event = opts.event.split(',');\n }\n if (opts && typeof opts.prop === 'string') {\n opts.prop = opts.prop.split(',');\n }\n return opts;\n}\n\nfunction bindable(opts, component) {\n if (isComponentClass(opts)) {\n return bindable(component, opts);\n }\n if (typeof opts === 'string') opts = builtIn[opts];\n if (!opts) opts = defaultOpts;\n if (!component) return component => bindable(opts, component);\n component.bindOpts = Object.assign({}, opts);\n return component;\n}\n\nbindable.getOptions = getOptions;\nbindable.bindable = bindable;\nmodule.exports = bindable;\n\n\n// WEBPACK FOOTER //\n// ./src/bindable.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst owner = { component: null, intercepted: false, binding: false };\n\nowner.owner = owner;\nmodule.exports = owner;\n\n\n// WEBPACK FOOTER //\n// ./src/owner.js","module.exports = { \"default\": require(\"core-js/library/fn/object/get-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/get-prototype-of.js\n// module id = 64\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst options = {};\n\nfunction config(opts) {\n Object.assign(options, opts);\n}\n\nmodule.exports = { config, options };\n\n\n// WEBPACK FOOTER //\n// ./src/config.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst React = require('react');\n\nfunction stateful(stateless) {\n if (!stateless._stateful_) {\n class StatelessWrapper extends React.Component {\n render() {\n return stateless({ model: this.model, ...this.props }, this.context);\n }\n }\n stateless._stateful_ = StatelessWrapper;\n }\n return stateless._stateful_;\n}\n\nstateful.stateful = stateful;\nmodule.exports = stateful;\n\n\n// WEBPACK FOOTER //\n// ./src/stateful.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { Observer, expression, nextTick } = require('ober');\nconst connect = require('./connect');\nconst model = require('./model');\nconst binding = require('./binding');\nconst bindable = require('./bindable');\nconst autorun = require('./autorun');\nconst watch = require('./watch');\nconst deep = require('./deep');\nconst mapping = require('./mapping');\nconst utils = require('./utils');\nconst stateful = require('./stateful');\nconst composition = require('./composition');\nconst annotation = require('./annotation');\nconst lifecycle = require('./lifecycle');\nconst info = require('$info');\nconst { config } = require('./config');\nconst { useModel } = require('./hook');\n\nmodule.exports = {\n connect, model, binding, bindable, watch, mapping, autorun, deep, stateful,\n composition, Observer, expression, nextTick, annotation, lifecycle, useModel,\n utils, config, ...info\n};\n\n\n// WEBPACK FOOTER //\n// ./src/index.js","require('../../modules/es6.object.assign');\nmodule.exports = require('../../modules/_core').Object.assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/assign.js\n// module id = 69\n// module chunks = 0","// 19.1.3.1 Object.assign(target, source)\nvar $export = require('./_export');\n\n$export($export.S + $export.F, 'Object', { assign: require('./_object-assign') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.assign.js\n// module id = 70\n// module chunks = 0","module.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_a-function.js\n// module id = 71\n// module chunks = 0","'use strict';\n// 19.1.2.1 Object.assign(target, source, ...)\nvar DESCRIPTORS = require('./_descriptors');\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nvar toObject = require('./_to-object');\nvar IObject = require('./_iobject');\nvar $assign = Object.assign;\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = !$assign || require('./_fails')(function () {\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var S = Symbol();\n var K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function (k) { B[k] = k; });\n return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var aLen = arguments.length;\n var index = 1;\n var getSymbols = gOPS.f;\n var isEnum = pIE.f;\n while (aLen > index) {\n var S = IObject(arguments[index++]);\n var keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];\n }\n } return T;\n} : $assign;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-assign.js\n// module id = 72\n// module chunks = 0","// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = require('./_to-iobject');\nvar toLength = require('./_to-length');\nvar toAbsoluteIndex = require('./_to-absolute-index');\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_array-includes.js\n// module id = 73\n// module chunks = 0","// 7.1.15 ToLength\nvar toInteger = require('./_to-integer');\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-length.js\n// module id = 74\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_to-absolute-index.js\n// module id = 75\n// module chunks = 0","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar _a = require('ntils'), isArray = _a.isArray, isFunction = _a.isFunction, isNull = _a.isNull, isObject = _a.isObject, copy = _a.copy, final = _a.final, each = _a.each;\nvar EventEmitter = require('eify');\nvar AutoRun = require('./autorun');\nvar Watcher = require('./watcher');\nvar OBSERVER_PROP_NAME = '_observer_';\nvar CHANGE_EVENT_NAME = 'change';\nvar GET_EVENT_NAME = 'get';\nvar EVENT_MAX_DISPATCH_LAYER = 10;\nvar IGNORE_REGEXPS = [/^\\_(.*)\\_$/, /^\\_\\_/, /^\\$/];\n/**\n * 对象观察类,可以监控对象变化\n * 目前方案问题:\n * 对于父子关系和事件冒泡,目前方案如果用 delete 删除一个属性,无关真实删除关系,\n * 即便调用 clearReference 也无法再清除关系,子对象的 parents 中会一直有一个引用,当前方案最高效\n * 其它方法一:\n * 将「关系」放入全局数组中,然后将 ob.parents 变成一个「属性」从全局数组件中 filter 出来,\n * 基本和目前方法类似,但是关系在外部存领教,所以 clearReference 可清除。\n * 其它方案二:\n * 构造时添加到全局数组,每一个 observer change 时都让放到全局的 observer 遍历自身的,\n * 检果事件源是不是自已的子对象,如果是则触发自身 change 事件,这样 ob 对象本身没有相关引用\n * clearReference 时只从全局清除掉就行了,并且 delete 操作也不会影响,但效率稍差。\n * 其它方案三:\n * 给构造函数添加一个 deep 属性,只有 deep 的 ob 对象,才放入到全局数组中,检查时逻辑同方案二\n * 但是因为要检查的对象会少很多,效率会更高一点。\n */\nvar Observer = /** @class */ (function (_super) {\n __extends(Observer, _super);\n /**\n * 通过目标对象构造一个观察对象\n * @param {Object} target 目标对象\n * @param {Object} options 选项\n * @returns {void} 无返回\n */\n function Observer(target, options) {\n var _this = _super.call(this) || this;\n if (isNull(target)) {\n throw new Error('Invalid target');\n }\n options = options || {};\n var observer = target[OBSERVER_PROP_NAME];\n if (observer) {\n copy(options, observer.options);\n //当时一个组件 A 的为组件 B 的 prop 时,A 更新不会触发 B 更新\n //所在暂注释这里,另一种方法是更新 prop 指令,重写 excute 方法,而不是现在的 update 方法\n // if (observer.options.root) {\n // observer.parents.length = 0;\n // }\n observer.apply();\n return observer;\n }\n final(_this, 'options', options);\n final(_this, 'shadow', {});\n final(_this, 'target', target);\n final(_this, 'parents', []);\n final(target, OBSERVER_PROP_NAME, _this);\n _this.apply();\n return _this;\n }\n /**\n * 添加一个属性,动态添中的属性,无法被观察,\n * 但是通过 set 方法添加的属性可能被观察。\n * @param {string} name 名称\n * @param {Object} value 值\n * @returns {void} 无返回\n */\n Observer.prototype.set = function (name, value) {\n if (isFunction(value) || Observer.isIgnore(name)) {\n return;\n }\n Object.defineProperty(this.target, name, {\n get: function () {\n var observer = this[OBSERVER_PROP_NAME];\n observer.emitGet({ name: name, value: value });\n return observer.shadow[name];\n },\n set: function (value) {\n var observer = this[OBSERVER_PROP_NAME];\n var oldValue = observer.shadow[name];\n if (oldValue === value)\n return;\n if (isObject(value)) {\n var childObserver = new Observer(value);\n observer.addChild(childObserver, name);\n }\n //移除旧值的父引用\n //如果用 delete 删除属性将无法移除父子引用\n if (oldValue && oldValue[OBSERVER_PROP_NAME]) {\n observer.removeChild(oldValue[OBSERVER_PROP_NAME], name);\n }\n observer.shadow[name] = value;\n observer.emitChange({ name: name, value: value });\n },\n configurable: true,\n enumerable: true\n });\n this.target[name] = value;\n };\n /**\n * 自动应用所有动态添加的属性\n * @returns {void} 无返回\n */\n Observer.prototype.apply = function () {\n if (isArray(this.target)) {\n this._wrapArray(this.target);\n }\n var names = this._getPropertyNames(this.target);\n names.forEach(function (name) {\n var desc = Object.getOwnPropertyDescriptor(this.target, name);\n if (!('value' in desc))\n return;\n this.set(name, this.target[name]);\n }, this);\n };\n /**\n * 添子观察者对象\n * @param {Object} child 父对象\n * @param {String} name 属性名\n * @returns {void} 无返回\n */\n Observer.prototype.addChild = function (child, name) {\n if (isNull(child) || isNull(name)) {\n throw new Error('Invalid paramaters');\n }\n if (child.options.root)\n return;\n child.parents.push({ parent: this, name: name });\n };\n /**\n * 移除子对象\n * @param {Object} child 父对象\n * @param {String} name 属性名\n * @returns {void} 无返回\n */\n Observer.prototype.removeChild = function (child, name) {\n if (isNull(child)) {\n throw new Error('Invalid paramaters');\n }\n var foundIndex = -1;\n child.parents.forEach(function (item, index) {\n if (item.parent === this && item.name === name) {\n foundIndex = index;\n }\n }, this);\n if (foundIndex > -1) {\n child.parents.splice(foundIndex, 1);\n }\n };\n /**\n * 清除所有父子引用\n * @returns {void} 无返回\n */\n Observer.prototype.clearReference = function () {\n each(this.target, function (name, value) {\n if (isNull(value))\n return;\n var child = value[OBSERVER_PROP_NAME];\n if (child)\n this.removeChild(child);\n }, this);\n };\n /**\n * 触发 change 事件\n * @param {Object} event 事件对象\n * @returns {void} 无返回\n */\n Observer.prototype.emitChange = function (event) {\n event.path = event.name;\n this.dispatch(CHANGE_EVENT_NAME, event);\n };\n /**\n * 触发 change 事件\n * @param {Object} event 事件对象\n * @returns {void} 无返回\n */\n Observer.prototype.emitGet = function (event) {\n event.path = event.name;\n this.dispatch(GET_EVENT_NAME, event);\n };\n /**\n * 派发一个事件,事件会向父级对象冒泡\n * @param {string} eventName 事件名称\n * @param {Object} event 事件对象\n * @returns {void} 无返回\n */\n Observer.prototype.dispatch = function (eventName, event) {\n if (event._src_ === this)\n return;\n event._src_ = event._src_ || this;\n event._layer_ = event._layer_ || 0;\n if ((event._layer_++) >= EVENT_MAX_DISPATCH_LAYER)\n return;\n this.emit(eventName, event);\n if (!this.parents || this.parents.length < 1)\n return;\n this.parents.forEach(function (item) {\n if (!(item.name in item.parent.target)) {\n return item.parent.removeChild(this);\n }\n var parentEvent = copy(event);\n parentEvent.path = isNull(event.path) ? item.name :\n item.name + '.' + event.path;\n item.parent.dispatch(eventName, parentEvent);\n }, this);\n };\n /**\n * 获取所有成员名称列表\n * @returns {Array} 所有成员名称列表\n */\n Observer.prototype._getPropertyNames = function () {\n var names = isArray(this.target) ?\n this.target.map(function (item, index) {\n return index;\n }) : Object.keys(this.target);\n return names.filter(function (name) {\n return name !== OBSERVER_PROP_NAME;\n });\n };\n /**\n * 包裹数组\n * @param {array} array 源数组\n */\n Observer.prototype._wrapArray = function (array) {\n if (array._wrapped_)\n return;\n final(array, '_wrapped_', true);\n final(array, 'push', function () {\n var items = [].slice.call(arguments);\n var observer = this[OBSERVER_PROP_NAME];\n items.forEach(function (item) {\n //这里也会触发对应 index 的 change 事件\n observer.set(array.length, item);\n }, this);\n observer.emitChange({ name: 'length', value: this.length });\n observer.emitChange({ value: this.length });\n });\n final(array, 'pop', function () {\n var item = [].pop.apply(this, arguments);\n var observer = this[OBSERVER_PROP_NAME];\n observer.emitChange({ name: this.length, value: item });\n observer.emitChange({ name: 'length', value: this.length });\n observer.emitChange({ value: this.length });\n return item;\n });\n final(array, 'unshift', function () {\n [].unshift.apply(this, arguments);\n var items = [].slice.call(arguments);\n var observer = this[OBSERVER_PROP_NAME];\n items.forEach(function (item, index) {\n //这里也会触发对应 index 的 change 事件\n observer.set(index, item);\n }, this);\n observer.emitChange({ name: 'length', value: this.length });\n observer.emitChange({ value: this.length });\n });\n final(array, 'shift', function () {\n var item = [].shift.apply(this, arguments);\n var observer = this[OBSERVER_PROP_NAME];\n observer.emitChange({ name: 0, value: item });\n observer.emitChange({ name: 'length', value: this.length });\n observer.emitChange({ value: this.length });\n return item;\n });\n final(array, 'splice', function () {\n var startIndex = arguments[0];\n var endIndex = isNull(arguments[1])\n ? startIndex + arguments[1]\n : this.length - 1;\n var observer = this[OBSERVER_PROP_NAME];\n var items = [].splice.apply(this, arguments);\n for (var i = startIndex; i <= endIndex; i++) {\n observer.emitChange({ name: i, value: items[i - startIndex] });\n }\n observer.emitChange({ name: 'length', value: this.length });\n observer.emitChange({ value: this.length });\n return items;\n });\n final(array, 'set', function (index, value) {\n var observer = this[OBSERVER_PROP_NAME];\n if (index >= this.length) {\n observer.emitChange({ name: 'length', value: this.length });\n observer.emitChange({ value: this.length });\n }\n observer.set(index, value);\n });\n };\n Observer.prototype.run = function (handler, options) {\n options = options || {};\n var context = options.context, trigger = options.trigger, immed = options.immed, deep = options.deep;\n context = context || this.target;\n var auto = new AutoRun(handler, context, trigger, deep);\n this.on('get', auto.onGet);\n this.on('change', auto.onChange);\n if (immed)\n auto.run();\n return auto;\n };\n Observer.prototype.stop = function (autoRef) {\n if (!autoRef)\n return;\n this.off('get', autoRef.onGet);\n this.off('change', autoRef.onChange);\n };\n Observer.prototype.watch = function (calculator, handler, options) {\n options = options || {};\n var context = options.context;\n context = context || this.target;\n var watcher = new Watcher(calculator, handler, context);\n watcher.autoRef = this.run(watcher.calc, options);\n return watcher;\n };\n Observer.prototype.unWatch = function (watcher) {\n if (!watcher)\n return;\n this.stop(watcher.autoRef);\n };\n return Observer;\n}(EventEmitter));\n/**\n * 观察一个对象\n * @param {Object} target 目标对象\n * @return {Observer} 观察者对象\n */\nObserver.observe = function (target) {\n return new Observer(target);\n};\n/**\n * 检查是不是忽略的属性名\n * @param {string} word 待检查的字符串\n * @returns {void} 无返回\n */\nObserver.isIgnore = function (word) {\n return IGNORE_REGEXPS.some(function (re) { return re.test(word); });\n};\nmodule.exports = Observer;\n//# sourceMappingURL=observer.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ober/lib/observer.js\n// module id = 76\n// module chunks = 0","module.exports = function () { }\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/dify/lib/browser.js\n// module id = 77\n// module chunks = 0","var _a = require('ntils'), final = _a.final, isArray = _a.isArray, copy = _a.copy, each = _a.each;\n/**\n * 事件触发器基类\n */\nvar EventEmitter = /** @class */ (function () {\n /**\n * 构建一个一个事修的触发器对象\n * @param {object} target 将代理的目标对象可以省略\n * @returns {void} 无返回\n */\n function EventEmitter(target) {\n target = target || this;\n var emitter = target._emitter_;\n if (emitter)\n return emitter;\n final(this, '_target_', target);\n final(target, '_emitter_', this);\n this._isNative_ = this._isNativeObject(this._target_);\n this._listeners_ = this._listeners_ || Object.create(null);\n this.on = this.$on = this.$addListener = this.addListener;\n this.off = this.$off = this.$removeListener = this.removeListener;\n this.$emit = this.emit;\n }\n /**\n * 检查是否原生支持事件\n * @param {object} obj 对象\n * @returns {void} 检查结果\n */\n EventEmitter.prototype._isNativeObject = function (obj) {\n return obj.addEventListener && obj.removeEventListener && obj.dispatchEvent;\n };\n /**\n * 添加一个事件监听函数\n * @param {string} name 事件名称\n * @param {function} listener 事件处理函数\n * @param {capture} capture 是否是捕获阶段事件(只在代理 dom 对象时有效)\n * @returns {void} 无返回\n */\n EventEmitter.prototype.addListener = function (name, listener, capture) {\n if (this._isNative_) {\n this._addNativeEventListener(name, listener, capture);\n }\n this._listeners_[name] = this._listeners_[name] || [];\n this._listeners_[name].push(listener);\n var maxListeners = EventEmitter._maxListeners;\n if (this._listeners_[name].length > maxListeners) {\n console.warn(\"The '\" + name + \"' event listener is not more than \" + maxListeners, this);\n }\n };\n /**\n * 移除「一个/一组/所有」事件监听函数\n * @param {string} name 事件名称\n * @param {function} listener 事件处理函数\n * @param {capture} capture 是否是捕获阶段事件(只在代理 dom 对象时有效)\n * @returns {void} 无返回\n */\n EventEmitter.prototype.removeListener = function (name, listener, capture) {\n if (name && listener) {\n if (this._isNative_) {\n this._removeNativeEventListener(name, listener, capture);\n }\n if (!this._listeners_[name])\n return;\n var index = this._listeners_[name].indexOf(listener);\n if (index > -1)\n this._listeners_[name].splice(index, 1);\n }\n else if (name) {\n if (this._isNative_ && this._listeners_[name]) {\n this._listeners_[name].forEach(function (_listener) {\n this.removeListener(name, _listener, capture);\n }, this);\n }\n delete this._listeners_[name];\n }\n else {\n each(this._listeners_, function (name) {\n this.removeListener(name, null, capture);\n }, this);\n this._listeners_ = {};\n }\n };\n /**\n * 触发自身的一个事件\n * @param {string} name 事件名称\n * @param {object} data 传递的对象\n * @param {string} canBubble 能否冒泡(只在代理 dom 对象时有效)\n * @param {object} cancelAble 能否取消(只在代理 dom 对象时有效)\n * @returns {void} 无返回\n */\n EventEmitter.prototype.emit = function (name, data, canBubble, cancelAble) {\n if (this._isNative_) {\n return this._emitNativeEvent(name, data, canBubble, cancelAble);\n }\n var listeners = this._listeners_[name];\n if (!listeners)\n return;\n var stopPropagation = false;\n listeners.forEach(function (handler) {\n var rs = handler.call(this._target_, data);\n if (rs === false)\n stopPropagation = true;\n }, this);\n return stopPropagation;\n };\n /**\n * 触发自身的一个事件 (支持异步 handler,串行执行,仅对非 dom 对象有效)\n * @param {string} name 事件名称\n * @param {object} data 传递的对象\n * @param {string} canBubble 能否冒泡(只在代理 dom 对象时有效)\n * @param {object} cancelAble 能否取消(只在代理 dom 对象时有效)\n * @returns {void} 无返回\n */\n EventEmitter.prototype.emitAsync = function (name, data, canBubble, cancelAble) {\n if (this._isNative_) {\n return this._emitNativeEvent(name, data, canBubble, cancelAble);\n }\n var listeners = this._listeners_[name];\n if (!listeners)\n return;\n var stopPropagation = false, queue = listeners.slice(0);\n return new Promise(function (resolve, reject) {\n function done(rs, err) {\n if (err)\n return reject(err);\n if (rs === false)\n stopPropagation = true;\n return queue.length > 0 ? exec() : resolve(stopPropagation);\n }\n function exec() {\n var handler = queue.shift();\n var rs = handler.call(this._target_, data);\n return rs && rs.then ? rs.then(done) : done(rs);\n }\n exec();\n });\n };\n /**\n * 触发自身的一个事件 (支持异步 handler,并行执行,仅对非 dom 对象有效)\n * @param {string} name 事件名称\n * @param {object} data 传递的对象\n * @param {string} canBubble 能否冒泡(只在代理 dom 对象时有效)\n * @param {object} cancelAble 能否取消(只在代理 dom 对象时有效)\n * @returns {void} 无返回\n */\n EventEmitter.prototype.emitParallel = function (name, data, canBubble, cancelAble) {\n var _this = this;\n if (this._isNative_) {\n return this._emitNativeEvent(name, data, canBubble, cancelAble);\n }\n var listeners = this._listeners_[name];\n if (!listeners)\n return;\n var stopPropagation = false, count = 0;\n return new Promise(function (resolve, reject) {\n function done(rs, err) {\n if (err)\n return reject(err);\n if (rs === false)\n stopPropagation = true;\n if (++count >= listeners.length)\n resolve(stopPropagation);\n }\n listeners.forEach(function (handler) {\n var rs = handler.call(this._target_, data);\n return rs && rs.then ? rs.then(done) : done(rs);\n }, _this);\n });\n };\n /**\n * 添加 DOM 元素事件\n * @param {string} name 事件名称\n * @param {function} listener 事件处理函数\n * @param {capture} capture 是否是捕获阶段事件\n * @returns {void} 无返回\n */\n EventEmitter.prototype._addNativeEventListener = function (name, listener, capture) {\n this._target_.addEventListener(name, listener, capture);\n //如果存在已注册的自定义 “组合事件”\n var descriptor = EventEmitter._events[name];\n if (descriptor) {\n descriptor.addListener = descriptor.addListener || descriptor.on;\n descriptor.addListener(this, name, listener, capture);\n }\n };\n /**\n * 移除 DOM 元素事件\n * @param {string} name 事件名称\n * @param {function} listener 事件处理函数\n * @param {capture} capture 是否是捕获阶段事件\n * @returns {void} 无返回\n */\n EventEmitter.prototype._removeNativeEventListener = function (name, listener, capture) {\n this._target_.removeEventListener(name, listener, capture);\n //如果存在已注册的自定义 “组合事件”\n var descriptor = EventEmitter._events[name];\n if (descriptor) {\n descriptor.removeListener = descriptor.removeListener || descriptor.off;\n descriptor.removeListener(this, name, listener, capture);\n }\n };\n /**\n * 触发 DOM 元素事件\n * @param {string} name 事件名称\n * @param {object} data 传递的对象\n * @param {string} canBubble 能否冒泡\n * @param {object} cancelAble 能否取消\n * @returns {void} 无返回\n */\n EventEmitter.prototype._emitNativeEvent = function (name, data, canBubble, cancelAble) {\n if (!global.document)\n return;\n var event = global.document.createEvent('HTMLEvents');\n event.initEvent(name, canBubble, cancelAble);\n copy(data, event, ['data']);\n event.data = data;\n return this._target_.dispatchEvent(event);\n };\n return EventEmitter;\n}());\n//最多添加多少个 listener\nEventEmitter._maxListeners = 1024;\n//所有自定义事件\nEventEmitter._events = [];\n/**\n * 注册自定义事件(只在代理 dom 对象时有效)\n * @param {object} descriptor 事件定义\n * @returns {void} 无返回\n */\nEventEmitter.register = function (descriptor) {\n var names = descriptor.name;\n if (!names)\n return;\n if (!isArray(names))\n names = names.split(',');\n names.forEach(function (name) {\n this._events[name] = descriptor;\n }, this);\n};\nmodule.exports = EventEmitter;\n//# sourceMappingURL=index.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/eify/lib/index.js\n// module id = 78\n// module chunks = 0","var VARIABLE_FILTER = /(\\(|\\[|\\{|\\+|\\-|\\*|\\/|\\>|\\<|\\=|\\!|\\,|\\;|\\?|\\:|\\&|\\|)\\s*([a-z\\_0-9\\$]+)/ig;\nvar VARIABLE_NAME = /^[a-z\\$\\_]/i;\nvar ALLOWED_WORD = /^(\\$scope|true|false|null|undefined|Date|Number|String|Object|Boolean|Array|RegExp|Math|JSON|parseInt|parseFloat|isNaN|isFinite)$/; //eslint-disable-line\nvar EXPRESSION_BLOCK = /\\{\\{([\\s\\S]+?)\\}\\}/;\nvar EXPRESSION_CACHE = {};\nvar TEMPLATE_CACHE = {};\nfunction findVariables(expr) {\n expr = \"(\" + expr + \")\";\n VARIABLE_FILTER.lastIndex = 0;\n var variables = {};\n var info;\n while (info = VARIABLE_FILTER.exec(expr)) { //eslint-disable-line\n var name_1 = info[2];\n if (VARIABLE_NAME.test(name_1) && !ALLOWED_WORD.test(name_1)) {\n variables[name_1] = true;\n }\n }\n return Object.keys(variables);\n}\nfunction getValue(scope, name) {\n var value = scope[name];\n return (value instanceof Function) ? value.bind(scope) : value;\n}\nfunction expression(expr) {\n var cacheItem = EXPRESSION_CACHE[expr];\n if (cacheItem)\n return cacheItem;\n var keys = findVariables(expr);\n var func = new (Function.bind.apply(Function, [void 0, '$scope'].concat(keys, [\"return(\" + expr + \")\"])))();\n function exec(scope) {\n var values = keys.map(function (name) { return getValue(scope, name); });\n return func.apply(void 0, [scope].concat(values));\n }\n EXPRESSION_CACHE[expr] = exec;\n return exec;\n}\nfunction template(str) {\n var cacheItem = TEMPLATE_CACHE[str];\n if (cacheItem)\n return cacheItem;\n var blocks = str.split(EXPRESSION_BLOCK);\n for (var i = 1; i < blocks.length; i += 2) {\n blocks[i] = expression(blocks[i]);\n }\n function exec(scope) {\n var result = '';\n blocks.forEach(function (block) {\n result += (block instanceof Function) ? block(scope) : block;\n });\n return result;\n }\n TEMPLATE_CACHE[str] = exec;\n return exec;\n}\nfunction compile(str, mixed) {\n return mixed ? template(str) : expression(str);\n}\ncompile.expression = expression;\ncompile.template = template;\nmodule.exports = compile;\n//# sourceMappingURL=expression.js.map\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/ober/lib/expression.js\n// module id = 79\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/define-property\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/define-property.js\n// module id = 80\n// module chunks = 0","require('../../modules/es6.object.define-property');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function defineProperty(it, key, desc) {\n return $Object.defineProperty(it, key, desc);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/define-property.js\n// module id = 81\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)\n$export($export.S + $export.F * !require('./_descriptors'), 'Object', { defineProperty: require('./_object-dp').f });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.define-property.js\n// module id = 82\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst React = require('react');\nconst { isNull } = require('ntils');\nconst { convertElement, convertProps } = require('./binding');\nconst { get } = require('./annotation');\nconst { options } = require('./config');\nconst { owner } = require('./owner');\n\nif (!Object.isFrozen) Object.isFrozen = () => false;\n\nconst initailCreateElement = React.createElement;\nReact.createElement = function (type, props, ...args) {\n owner.intercepted = true;\n if (owner.component && owner.binding) convertProps(type, props);\n return initailCreateElement.call(this, type, props, ...args);\n};\n\nfunction beginRender(component) {\n owner.component = component;\n owner.intercepted = false;\n let binding = get('binding', component);\n if (isNull(binding)) binding = options.binding;\n owner.binding = binding;\n}\n\nfunction endRender() {\n owner.component = null;\n owner.intercepted = false;\n owner.binding = false;\n}\n\nfunction wrapRender(initailRender) {\n return function (...args) {\n beginRender(this);\n let element = initailRender.call(this, ...args);\n if (!owner.binding) return element;\n if (!owner.intercepted) element = convertElement(element);\n endRender();\n return element;\n };\n}\n\nmodule.exports = { wrapRender };\n\n\n// WEBPACK FOOTER //\n// ./src/render.js","require('../../modules/es6.object.is-frozen');\nmodule.exports = require('../../modules/_core').Object.isFrozen;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/is-frozen.js\n// module id = 84\n// module chunks = 0","// 19.1.2.12 Object.isFrozen(O)\nvar isObject = require('./_is-object');\n\nrequire('./_object-sap')('isFrozen', function ($isFrozen) {\n return function isFrozen(it) {\n return isObject(it) ? $isFrozen ? $isFrozen(it) : false : true;\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.is-frozen.js\n// module id = 85\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol/iterator\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol/iterator.js\n// module id = 86\n// module chunks = 0","require('../../modules/es6.string.iterator');\nrequire('../../modules/web.dom.iterable');\nmodule.exports = require('../../modules/_wks-ext').f('iterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/iterator.js\n// module id = 87\n// module chunks = 0","'use strict';\nvar $at = require('./_string-at')(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\nrequire('./_iter-define')(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.string.iterator.js\n// module id = 88\n// module chunks = 0","var toInteger = require('./_to-integer');\nvar defined = require('./_defined');\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_string-at.js\n// module id = 89\n// module chunks = 0","'use strict';\nvar create = require('./_object-create');\nvar descriptor = require('./_property-desc');\nvar setToStringTag = require('./_set-to-string-tag');\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nrequire('./_hide')(IteratorPrototype, require('./_wks')('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-create.js\n// module id = 90\n// module chunks = 0","var dP = require('./_object-dp');\nvar anObject = require('./_an-object');\nvar getKeys = require('./_object-keys');\n\nmodule.exports = require('./_descriptors') ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-dps.js\n// module id = 91\n// module chunks = 0","var document = require('./_global').document;\nmodule.exports = document && document.documentElement;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_html.js\n// module id = 92\n// module chunks = 0","require('./es6.array.iterator');\nvar global = require('./_global');\nvar hide = require('./_hide');\nvar Iterators = require('./_iterators');\nvar TO_STRING_TAG = require('./_wks')('toStringTag');\n\nvar DOMIterables = ('CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,' +\n 'DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,' +\n 'MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,' +\n 'SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,' +\n 'TextTrackList,TouchList').split(',');\n\nfor (var i = 0; i < DOMIterables.length; i++) {\n var NAME = DOMIterables[i];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n if (proto && !proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = Iterators.Array;\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/web.dom.iterable.js\n// module id = 93\n// module chunks = 0","'use strict';\nvar addToUnscopables = require('./_add-to-unscopables');\nvar step = require('./_iter-step');\nvar Iterators = require('./_iterators');\nvar toIObject = require('./_to-iobject');\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = require('./_iter-define')(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.array.iterator.js\n// module id = 94\n// module chunks = 0","module.exports = function () { /* empty */ };\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_add-to-unscopables.js\n// module id = 95\n// module chunks = 0","module.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_iter-step.js\n// module id = 96\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/symbol\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/symbol.js\n// module id = 97\n// module chunks = 0","require('../../modules/es6.symbol');\nrequire('../../modules/es6.object.to-string');\nrequire('../../modules/es7.symbol.async-iterator');\nrequire('../../modules/es7.symbol.observable');\nmodule.exports = require('../../modules/_core').Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/symbol/index.js\n// module id = 98\n// module chunks = 0","'use strict';\n// ECMAScript 6 symbols shim\nvar global = require('./_global');\nvar has = require('./_has');\nvar DESCRIPTORS = require('./_descriptors');\nvar $export = require('./_export');\nvar redefine = require('./_redefine');\nvar META = require('./_meta').KEY;\nvar $fails = require('./_fails');\nvar shared = require('./_shared');\nvar setToStringTag = require('./_set-to-string-tag');\nvar uid = require('./_uid');\nvar wks = require('./_wks');\nvar wksExt = require('./_wks-ext');\nvar wksDefine = require('./_wks-define');\nvar enumKeys = require('./_enum-keys');\nvar isArray = require('./_is-array');\nvar anObject = require('./_an-object');\nvar isObject = require('./_is-object');\nvar toObject = require('./_to-object');\nvar toIObject = require('./_to-iobject');\nvar toPrimitive = require('./_to-primitive');\nvar createDesc = require('./_property-desc');\nvar _create = require('./_object-create');\nvar gOPNExt = require('./_object-gopn-ext');\nvar $GOPD = require('./_object-gopd');\nvar $GOPS = require('./_object-gops');\nvar $DP = require('./_object-dp');\nvar $keys = require('./_object-keys');\nvar gOPD = $GOPD.f;\nvar dP = $DP.f;\nvar gOPN = gOPNExt.f;\nvar $Symbol = global.Symbol;\nvar $JSON = global.JSON;\nvar _stringify = $JSON && $JSON.stringify;\nvar PROTOTYPE = 'prototype';\nvar HIDDEN = wks('_hidden');\nvar TO_PRIMITIVE = wks('toPrimitive');\nvar isEnum = {}.propertyIsEnumerable;\nvar SymbolRegistry = shared('symbol-registry');\nvar AllSymbols = shared('symbols');\nvar OPSymbols = shared('op-symbols');\nvar ObjectProto = Object[PROTOTYPE];\nvar USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function () {\n return _create(dP({}, 'a', {\n get: function () { return dP(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (it, key, D) {\n var protoDesc = gOPD(ObjectProto, key);\n if (protoDesc) delete ObjectProto[key];\n dP(it, key, D);\n if (protoDesc && it !== ObjectProto) dP(ObjectProto, key, protoDesc);\n} : dP;\n\nvar wrap = function (tag) {\n var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);\n sym._k = tag;\n return sym;\n};\n\nvar isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return it instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(it, key, D) {\n if (it === ObjectProto) $defineProperty(OPSymbols, key, D);\n anObject(it);\n key = toPrimitive(key, true);\n anObject(D);\n if (has(AllSymbols, key)) {\n if (!D.enumerable) {\n if (!has(it, HIDDEN)) dP(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if (has(it, HIDDEN) && it[HIDDEN][key]) it[HIDDEN][key] = false;\n D = _create(D, { enumerable: createDesc(0, false) });\n } return setSymbolDesc(it, key, D);\n } return dP(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P) {\n anObject(it);\n var keys = enumKeys(P = toIObject(P));\n var i = 0;\n var l = keys.length;\n var key;\n while (l > i) $defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P) {\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key) {\n var E = isEnum.call(this, key = toPrimitive(key, true));\n if (this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return false;\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key) {\n it = toIObject(it);\n key = toPrimitive(key, true);\n if (it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key)) return;\n var D = gOPD(it, key);\n if (D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it) {\n var names = gOPN(toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META) result.push(key);\n } return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it) {\n var IS_OP = it === ObjectProto;\n var names = gOPN(IS_OP ? OPSymbols : toIObject(it));\n var result = [];\n var i = 0;\n var key;\n while (names.length > i) {\n if (has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true)) result.push(AllSymbols[key]);\n } return result;\n};\n\n// 19.4.1.1 Symbol([description])\nif (!USE_NATIVE) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor!');\n var tag = uid(arguments.length > 0 ? arguments[0] : undefined);\n var $set = function (value) {\n if (this === ObjectProto) $set.call(OPSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n };\n if (DESCRIPTORS && setter) setSymbolDesc(ObjectProto, tag, { configurable: true, set: $set });\n return wrap(tag);\n };\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return this._k;\n });\n\n $GOPD.f = $getOwnPropertyDescriptor;\n $DP.f = $defineProperty;\n require('./_object-gopn').f = gOPNExt.f = $getOwnPropertyNames;\n require('./_object-pie').f = $propertyIsEnumerable;\n $GOPS.f = $getOwnPropertySymbols;\n\n if (DESCRIPTORS && !require('./_library')) {\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n\n wksExt.f = function (name) {\n return wrap(wks(name));\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Symbol: $Symbol });\n\nfor (var es6Symbols = (\n // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'\n).split(','), j = 0; es6Symbols.length > j;)wks(es6Symbols[j++]);\n\nfor (var wellKnownSymbols = $keys(wks.store), k = 0; wellKnownSymbols.length > k;) wksDefine(wellKnownSymbols[k++]);\n\n$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {\n // 19.4.2.1 Symbol.for(key)\n 'for': function (key) {\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol!');\n for (var key in SymbolRegistry) if (SymbolRegistry[key] === sym) return key;\n },\n useSetter: function () { setter = true; },\n useSimple: function () { setter = false; }\n});\n\n$export($export.S + $export.F * !USE_NATIVE, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\nvar FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });\n\n$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return $GOPS.f(toObject(it));\n }\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({ a: S }) != '{}' || _stringify(Object(S)) != '{}';\n})), 'JSON', {\n stringify: function stringify(it) {\n var args = [it];\n var i = 1;\n var replacer, $replacer;\n while (arguments.length > i) args.push(arguments[i++]);\n $replacer = replacer = args[1];\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n }\n});\n\n// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)\n$Symbol[PROTOTYPE][TO_PRIMITIVE] || require('./_hide')($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.symbol.js\n// module id = 99\n// module chunks = 0","var META = require('./_uid')('meta');\nvar isObject = require('./_is-object');\nvar has = require('./_has');\nvar setDesc = require('./_object-dp').f;\nvar id = 0;\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\nvar FREEZE = !require('./_fails')(function () {\n return isExtensible(Object.preventExtensions({}));\n});\nvar setMeta = function (it) {\n setDesc(it, META, { value: {\n i: 'O' + ++id, // object ID\n w: {} // weak collections IDs\n } });\n};\nvar fastKey = function (it, create) {\n // return primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMeta(it);\n // return object ID\n } return it[META].i;\n};\nvar getWeak = function (it, create) {\n if (!has(it, META)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMeta(it);\n // return hash weak collections IDs\n } return it[META].w;\n};\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZE && meta.NEED && isExtensible(it) && !has(it, META)) setMeta(it);\n return it;\n};\nvar meta = module.exports = {\n KEY: META,\n NEED: false,\n fastKey: fastKey,\n getWeak: getWeak,\n onFreeze: onFreeze\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_meta.js\n// module id = 100\n// module chunks = 0","// all enumerable object keys, includes symbols\nvar getKeys = require('./_object-keys');\nvar gOPS = require('./_object-gops');\nvar pIE = require('./_object-pie');\nmodule.exports = function (it) {\n var result = getKeys(it);\n var getSymbols = gOPS.f;\n if (getSymbols) {\n var symbols = getSymbols(it);\n var isEnum = pIE.f;\n var i = 0;\n var key;\n while (symbols.length > i) if (isEnum.call(it, key = symbols[i++])) result.push(key);\n } return result;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_enum-keys.js\n// module id = 101\n// module chunks = 0","// 7.2.2 IsArray(argument)\nvar cof = require('./_cof');\nmodule.exports = Array.isArray || function isArray(arg) {\n return cof(arg) == 'Array';\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-array.js\n// module id = 102\n// module chunks = 0","// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = require('./_to-iobject');\nvar gOPN = require('./_object-gopn').f;\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return gOPN(it);\n } catch (e) {\n return windowNames.slice();\n }\n};\n\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_object-gopn-ext.js\n// module id = 103\n// module chunks = 0","require('./_wks-define')('asyncIterator');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.async-iterator.js\n// module id = 105\n// module chunks = 0","require('./_wks-define')('observable');\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es7.symbol.observable.js\n// module id = 106\n// module chunks = 0","module.exports = { \"default\": require(\"core-js/library/fn/object/set-prototype-of\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/object/set-prototype-of.js\n// module id = 107\n// module chunks = 0","require('../../modules/es6.object.set-prototype-of');\nmodule.exports = require('../../modules/_core').Object.setPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/set-prototype-of.js\n// module id = 108\n// module chunks = 0","// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = require('./_export');\n$export($export.S, 'Object', { setPrototypeOf: require('./_set-proto').set });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.set-prototype-of.js\n// module id = 109\n// module chunks = 0","// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar isObject = require('./_is-object');\nvar anObject = require('./_an-object');\nvar check = function (O, proto) {\n anObject(O);\n if (!isObject(proto) && proto !== null) throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function (test, buggy, set) {\n try {\n set = require('./_ctx')(Function.call, require('./_object-gopd').f(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch (e) { buggy = true; }\n return function setPrototypeOf(O, proto) {\n check(O, proto);\n if (buggy) O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_set-proto.js\n// module id = 110\n// module chunks = 0","require('../../modules/es6.object.create');\nvar $Object = require('../../modules/_core').Object;\nmodule.exports = function create(P, D) {\n return $Object.create(P, D);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/create.js\n// module id = 111\n// module chunks = 0","var $export = require('./_export');\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\n$export($export.S, 'Object', { create: require('./_object-create') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.create.js\n// module id = 112\n// module chunks = 0","require('../../modules/es6.object.get-prototype-of');\nmodule.exports = require('../../modules/_core').Object.getPrototypeOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/object/get-prototype-of.js\n// module id = 113\n// module chunks = 0","// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = require('./_to-object');\nvar $getPrototypeOf = require('./_object-gpo');\n\nrequire('./_object-sap')('getPrototypeOf', function () {\n return function getPrototypeOf(it) {\n return $getPrototypeOf(toObject(it));\n };\n});\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.object.get-prototype-of.js\n// module id = 114\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst connect = require('./connect');\nconst React = require('react');\n\nmodule.exports = function model(model) {\n if (model && model.prototype instanceof React.Component) {\n return connect(null, model);\n } else {\n return component => connect(model, component);\n }\n};\n\n\n// WEBPACK FOOTER //\n// ./src/model.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst lifecycle = require('./lifecycle');\nconst { get, set } = require('./annotation');\n\nfunction autorun(target, method) {\n if (!target || !method) return autorun;\n //autorun 如果已经存在,比如父类声明了,都不再重复处理\n const exist = get('autorun', target, method);\n if (exist) return;\n let autoRef;\n lifecycle.didMount.add(target, function () {\n const context = this;\n if (!context._observer_) return;\n const deep = get('deep', context, method);\n autoRef = context._observer_.run(context[method], { context, deep });\n autoRef.run();\n });\n lifecycle.unmount.add(target, function () {\n this._observer_.stop(autoRef);\n });\n set('autorun', true, target, method);\n}\n\nmodule.exports = autorun;\n\n\n// WEBPACK FOOTER //\n// ./src/autorun.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { isFunction } = require('ntils');\nconst lifecycle = require('./lifecycle');\nconst { get, set } = require('./annotation');\n\nfunction watch(calculator, immed) {\n if (!isFunction(calculator)) {\n throw new Error('Watch needs to specify a calculation function');\n }\n return function (target, method) {\n let watcher;\n //watch 如果已经存在,比如父类声明了,calc 函数可能不同,子类也要添加\n //可能多个 calc 都想执行同一个方法\n lifecycle.didMount.add(target, function () {\n const context = this;\n if (!context._observer_) return;\n const deep = get('deep', context, method);\n watcher = context._observer_.watch(function () {\n return calculator.call(context, context.model);\n }, context[method], { context, deep });\n //immed 通过 autorun.run 方法会传递给 watcher.calc 方法\n watcher.autoRef.run(immed || false);\n });\n lifecycle.unmount.add(target, function () {\n this._observer_.unWatch(watcher);\n });\n set('watch', true, target, method);\n };\n}\n\nmodule.exports = watch;\n\n\n// WEBPACK FOOTER //\n// ./src/watch.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { get, set } = require('./annotation');\n\nfunction deep(target, method) {\n if (!target) return deep;\n const error = method ?\n get('autorun', target, method) || get('watch', target, method) :\n target && target.prototype && target.prototype._contented_;\n if (error) {\n throw new Error('`deep` must be enabled before `model/autorun/watch`');\n }\n set('deep', true, target, method);\n}\n\nmodule.exports = deep;\n\n\n// WEBPACK FOOTER //\n// ./src/deep.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { isObject, each, isString, getByPath, setByPath } = require('ntils');\nconst lifecycle = require('./lifecycle');\n\nfunction mapping(map) {\n if (!isObject(map)) {\n throw new Error('Mapping needs to specify a object or array');\n }\n function assign(model, props, prevProps) {\n each(map, (propName, modelField) => {\n if (!isString(propName)) propName = modelField;\n const propValue = getByPath(props, propName);\n const modelValue = getByPath(model, modelField);\n if (modelValue === propValue ||\n (prevProps && getByPath(prevProps, propName) === propValue)) {\n return;\n }\n setByPath(model, modelField, propValue);\n });\n }\n return function (component) {\n if (!component) throw new Error('Invaild Component');\n const proto = component.prototype;\n if (proto._contented_) {\n throw new Error('`mapping` must be enabled before `model`');\n }\n lifecycle.model.add(proto, function () {\n assign(this.model, this.props);\n });\n lifecycle.didUpdate.add(proto, function (prevProps) {\n assign(this.model, this.props, prevProps);\n });\n };\n}\n\nmodule.exports = mapping;\n\n\n// WEBPACK FOOTER //\n// ./src/mapping.js","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst { AutoRun } = require('ober');\n\nconst UPDATE_EVENT = 'compositionupdate';\nconst END_EVENT = 'compositionend';\nconst INPUT_EVENT = 'input';\n\nclass Composition {\n\n composing = false;\n inputting = false;\n\n onUpdate = () => {\n this.composing = true;\n };\n\n onEnd = () => {\n this.composing = false;\n };\n\n onInput = () => {\n this.inputting = true;\n if (this.inputTimer) clearTimeout(this.inputTimer);\n this.inputTimer = setTimeout(() => {\n this.inputting = false;\n this.inputTimer = null;\n }, 0);\n };\n\n on(event, handler) {\n if (!global.document) return;\n global.document.addEventListener(event, handler, true);\n }\n\n off(event, handler) {\n if (!global.document) return;\n global.document.removeEventListener(event, handler, true);\n }\n\n enable() {\n this.on(UPDATE_EVENT, this.onUpdate);\n this.on(END_EVENT, this.onEnd);\n this.on(INPUT_EVENT, this.onInput);\n }\n\n disable() {\n this.off(UPDATE_EVENT, this.onUpdate);\n this.off(END_EVENT, this.onEnd);\n }\n\n constructor() {\n this.enable();\n }\n\n}\n\nconst composition = new Composition();\n\nAutoRun.prototype.isSync = function () {\n return !global.document || composition.composing || composition.inputting;\n};\n\nmodule.exports = composition;\n\n\n// WEBPACK FOOTER //\n// ./src/composition.js","module.exports = {\"name\":\"mota\",\"version\":\"3.5.1\"}\n\n\n//////////////////\n// WEBPACK FOOTER\n// /private/var/folders/7d/bf741r6j1psb64d_yd0zn_mh0000gn/T/a2b0fa969f14b010319da1c2512a1289.json\n// module id = 121\n// module chunks = 0","/**\n * Copyright (c) 2015-present Houfeng\n * @homepage https://github.com/Houfeng/mota\n * @author Houfeng \n */\n\nconst Observer = require('ober');\nconst { useState, useEffect, useLayoutEffect } = require('react');\nconst { isFunction } = require('ntils');\nconst { getModelState } = require('./utils');\n\nconst owner = { buffer: [], state: null, uuid: 0 };\n\nfunction getter(info) {\n if (!owner.state || owner.buffer.indexOf(info.path) > -1) return;\n owner.buffer.push(`${this.id}.${info.path}`);\n}\n\nfunction collect(nextState) {\n if (owner.state) {\n owner.state[2].length = 0;\n owner.state[2].push(...(owner.buffer));\n }\n owner.buffer = [];\n owner.state = nextState;\n return nextState;\n}\n\nfunction hasChange(conditions, path) {\n if (!conditions) return false;\n return isFunction(conditions) ? conditions(path) :\n conditions.indexOf && conditions.indexOf(path) > -1;\n}\n\nfunction useObservable(factory, conditions) {\n const [state, update] = useState([]);\n if (state.length > 0) return collect(state);\n const isNew = factory instanceof Function;\n const model = isNew ? new factory() : factory;\n const observer = new Observer(getModelState(model));\n if (!observer.id) observer.id = '_observer_' + owner.uuid++;\n function setter(info) {\n const deps = state[2], fullPath = `${this.id}.${info.path}`;\n if (deps.indexOf(fullPath) > -1 || hasChange(conditions, info.path)) {\n update([...state]);\n }\n }\n function destroy() {\n observer.off('change', setter);\n if (isNew) observer.clearReference();\n }\n Object.assign(state, [model, destroy, []]);\n observer.off('get', getter);\n observer.on('get', getter);\n observer.on('change', setter);\n return collect(state);\n}\n\nfunction useModel(factory, conditions, debug) {\n const [model, destroy, deps] = useObservable(factory, conditions);\n useEffect(() => destroy, []);\n //最后一个 useModel 在 mounted 后完成收集(最后一个有可能多收集)\n useLayoutEffect(() => collect());\n if (debug) debug({ model, deps });\n return model;\n}\n\nmodule.exports = { useModel };\n\n\n// WEBPACK FOOTER //\n// ./src/hook.js"],"sourceRoot":""} \ No newline at end of file diff --git a/docs/data.js b/docs/data.js index ca9adb9..7136326 100644 --- a/docs/data.js +++ b/docs/data.js @@ -1 +1 @@ -window.DOC_DATA={"locales":[{"name":"zh","text":"中文 (CN)","title":"Mota","groups":[{"name":"guide","text":"使用指南","docs":[{"group":"guide","name":"quick","title":"快速开始","index":1,"source":"# Mota\n\n## 简述 \n\nReact 是一个「视图层」的 UI 框架,以常见的 MVC 来讲 React 仅是 View,而我们在编写应用时,通常还需要关注更加重要的 model,对于 React 来讲,我们常常需要一个「状态管理」库。然而,目前大多数针对 React 的状态管理库都是「强依赖」过多的侵入本应该独立的业务模型中,导致「业务逻辑」对应的代码并不能轻易在其它地方重用,往往这些框架还具有「强排它性」,但是「业务模型」应该是没有过多依赖,应该是无关框架的,它应该随时可以被用在任何合适的 JavaScript 环境中,使用 mota 你可以用原生的普通的 JavaScript 代码编写你的「业务模型」,并让你的「业务模型」在不同框架、不同运行环境下重用更为容易。\n\nMota 是一个响应式的 React 应用状态管理库,基于 Mota 你可以用单纯无依赖的 JavaScript 为应用编写「业务模型」,并轻易的将「业务模型」关联到 React 应用中。\n\n## 示例\n\n[在线 TodoList 示例](http://houfeng.net/dn-template-mota/example/)\n([示例源码](https://github.com/Houfeng/dn-template-mota))\n\n\n\n## 安装\n\n通过 npm 安装,如下\n```sh\n$ npm i mota --save \n```\n\n或通过 `dawn` 脚手脚加创建工程,如下\n\n```sh\n$ mkdir your_path\n$ cd your_path\n$ dn init -t mota\n$ dn dev\n```\n\n需要先安装 dawn([Dawn 安装及使用文档](https://alibaba.github.io/dawn/docs/))\n\n## 结构\n\n一个 `mota` 工程的通常结构如下\n\n```sh\n.\n├── README.md\n├── package.json\n└── src\n ├── assets\n │   ├── common.less\n │   ├── favicon.ico\n │   └── index.html\n ├── components\n │   ├── todoApp.js\n │   └── todoItem.js\n ├── index.js\n └── models\n ├── TodoItem.js\n ├── TodoList.js\n └── index.js\n```\n\n## 文档\n- [快速开始](http://houfeng.net/mota/#!/zh/guide/quick)\n- [编写业务模型](http://houfeng.net/mota/#!/zh/guide/model)\n- [将组件属性映射到模型](http://houfeng.net/mota/#!/zh/guide/mapping)\n- [自执行函数](http://houfeng.net/mota/#!/zh/guide/autorun)\n- [监听模型变化](http://houfeng.net/mota/#!/zh/guide/watch)\n- [将模型数据与表单绑定](http://houfeng.net/mota/#!/zh/guide/binding)\n\n## 链接\n- [版本发布日志](https://github.com/Houfeng/mota/releases)\n- [MIT 开源协议](https://tldrlegal.com/license/mit-license)","filename":"markdowns/quick.md","root":"/Users/Houfeng/my/dev/mota","result":"

Mota

\n

简述

\n

React 是一个「视图层」的 UI 框架,以常见的 MVC 来讲 React 仅是 View,而我们在编写应用时,通常还需要关注更加重要的 model,对于 React 来讲,我们常常需要一个「状态管理」库。然而,目前大多数针对 React 的状态管理库都是「强依赖」过多的侵入本应该独立的业务模型中,导致「业务逻辑」对应的代码并不能轻易在其它地方重用,往往这些框架还具有「强排它性」,但是「业务模型」应该是没有过多依赖,应该是无关框架的,它应该随时可以被用在任何合适的 JavaScript 环境中,使用 mota 你可以用原生的普通的 JavaScript 代码编写你的「业务模型」,并让你的「业务模型」在不同框架、不同运行环境下重用更为容易。

\n

Mota 是一个响应式的 React 应用状态管理库,基于 Mota 你可以用单纯无依赖的 JavaScript 为应用编写「业务模型」,并轻易的将「业务模型」关联到 React 应用中。

\n

示例

\n

在线 TodoList 示例\n(示例源码)

\n\n

安装

\n

通过 npm 安装,如下

\n
$ npm i mota --save \n
\n

或通过 dawn 脚手脚加创建工程,如下

\n
$ mkdir your_path\n$ cd your_path\n$ dn init -t mota\n$ dn dev\n
\n

需要先安装 dawn(Dawn 安装及使用文档

\n

结构

\n

一个 mota 工程的通常结构如下

\n
.\n├── README.md\n├── package.json\n└── src\n    ├── assets\n    │   ├── common.less\n    │   ├── favicon.ico\n    │   └── index.html\n    ├── components\n    │   ├── todoApp.js\n    │   └── todoItem.js\n    ├── index.js\n    └── models\n        ├── TodoItem.js\n        ├── TodoList.js\n        └── index.js\n
\n

文档

\n\n

链接

\n\n"},{"group":"guide","name":"model","title":"编写业务模型","index":2,"source":"# 编写业务模型\n\n在你编写模型之前,先放下 React 也放下 Mota,就用单纯的 JavaScript 去编写你的业务模型,或有一个或多个类、或就是几个 Object,依它们应有的、自然的关系去抽像就行了,业务模型不依赖于 UI、也不依赖于某个框架,它易于测试,你可以针对它做单元测试。它易于重用,你可以将它用在合适的地方。最后, Mota 只是出场把它关联到 React。\n\n在 Mota 中「模型」可以是由一个 `class` 或普通的的 `Object`,整个「业务模型层」会由多个 `class` 和多个 `Object` 组成,而编写模型所需要的知识就是 JavaScript 固有的编程的知识。\n\n如下示例通过编写一个名为 `User` 的 `class` 创建了一个「用户模型」\n\n```js\nexport default class User {\n firstName = 'Jack';\n lastName = 'Hou';\n get fullName(){\n reutrn `${this.firstName} ${this.lastName}`;\n }\n}\n```\n\n也可以是一个 `Object`,通常这个模型需要是「单例」时,可采用这种方式,如下\n\n```js\nexport default {\n firstName: 'Jack',\n lastName: 'Hou',\n get fullName(){\n reutrn `${this.firstName} ${this.lastName}`;\n }\n};\n```\n\n在「业务模型」编写完成后,可以通过 `@model` 将某个「类」或「类的实例」关联到指定组件,关联后便可以在组件中使用 `this.model` 访问「模型的成员变量或方法」了,Mota 还会自动「收集组件依赖」,在组件「依赖的模型数据」发生变化时,自动响应变化并「驱动组件重新渲染」,如下\n\n```js\nimport { model,binding } from 'mota';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport User from './models/user';\n\n@model(User)\nclass App extends React.Component {\n\n onChange(field,event){\n this.model[field] = event.target.value;\n }\n\n render(){\n return
\n

{this.model.fullName}

\n

\n \n
\n \n

\n
;\n }\n}\n\nReactDOM.render(, mountNode);\n```\n\n值得注意的是,在使用 `@model` 时如果传入的是一个 `class` 最终每个组件实例都会自动创建一个 `独立的实例`,这样带来的好处是「当一个页面中有同一个组件的多个实例时,不会相互影响」。","filename":"markdowns/model.md","root":"/Users/Houfeng/my/dev/mota","result":"

编写业务模型

\n

在你编写模型之前,先放下 React 也放下 Mota,就用单纯的 JavaScript 去编写你的业务模型,或有一个或多个类、或就是几个 Object,依它们应有的、自然的关系去抽像就行了,业务模型不依赖于 UI、也不依赖于某个框架,它易于测试,你可以针对它做单元测试。它易于重用,你可以将它用在合适的地方。最后, Mota 只是出场把它关联到 React。

\n

在 Mota 中「模型」可以是由一个 class 或普通的的 Object,整个「业务模型层」会由多个 class 和多个 Object 组成,而编写模型所需要的知识就是 JavaScript 固有的编程的知识。

\n

如下示例通过编写一个名为 Userclass 创建了一个「用户模型」

\n
export default class User {\n  firstName = 'Jack';\n  lastName = 'Hou';\n  get fullName(){\n    reutrn `${this.firstName} ${this.lastName}`;\n  }\n}\n
\n

也可以是一个 Object,通常这个模型需要是「单例」时,可采用这种方式,如下

\n
export default {\n  firstName: 'Jack',\n  lastName: 'Hou',\n  get fullName(){\n    reutrn `${this.firstName} ${this.lastName}`;\n  }\n};\n
\n

在「业务模型」编写完成后,可以通过 @model 将某个「类」或「类的实例」关联到指定组件,关联后便可以在组件中使用 this.model 访问「模型的成员变量或方法」了,Mota 还会自动「收集组件依赖」,在组件「依赖的模型数据」发生变化时,自动响应变化并「驱动组件重新渲染」,如下

\n
import { model,binding } from 'mota';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport User from './models/user';\n\n@model(User)\nclass App extends React.Component {\n\n  onChange(field,event){\n    this.model[field] = event.target.value;\n  }\n\n  render(){\n    return <div>\n      <p>{this.model.fullName}</p>\n      <p>\n        <input onChange={this.onChange.bind(this,'firstName')}/>\n        <br/>\n        <input onChange={this.onChange.bind(this,'lastName')}/>\n      </p>\n    </div>;\n  }\n}\n\nReactDOM.render(<App/>, mountNode);\n
\n

值得注意的是,在使用 @model 时如果传入的是一个 class 最终每个组件实例都会自动创建一个 独立的实例,这样带来的好处是「当一个页面中有同一个组件的多个实例时,不会相互影响」。

\n"},{"group":"guide","name":"mapping","title":"属性映射","index":3,"source":"# 属性映射\n\n在 React 中通常会将应用折分为多个组件重用它们,并在用时传递给它「属性」,Mota 提供了将「组件属性」映射到「模型数据」的能力,基于 `model` 编程会让「视图层」的编写更为方例,专注于 UI 的呈现,如下\n\n```js\n@model({ value: 'demo' })\n@mapping(['value'])\nclass Demo extends React.Component {\n render () {\n return
{this.model.value}
;\n }\n}\n```\n\n上边的代码通过 `mapping` 将 `Demo` 这个组件的 `value` 属性映射到了 `model.value` 上,在组件的属性 `value` 发生变化时,会自动同步到 `model.value` 中。\n\n通过一个 `map` 进行映射,还可以让「组件属性」和「模型的成员」使用不同名称,如下:\n\n```js\n@model({ value: 'demo' })\n@mapping({ content: 'value' })\nclass Demo extends React.Component {\n render () {\n return
{this.model.value}
;\n }\n}\n```\n\n上边的代码,将组件 demo 的 `content` 属性映射到了 `model.value` 上,那么这个组件就可以这样使用了\n\n```js\nfunction App(){\n return ;\n}\n```\n\n`Demo` 组件的 `content` 属性,将自动被赋值给 `model.value`,如果没有 `mapping`,通常我们就需要在 `componentDidMount` 和 `componentWillReceiveProps` 之类的生命周函数去处理。其实,`mapping` 就像是一个语法糖,使用它将不再需要手动处理 prop->model 的更新了。","filename":"markdowns/mapping.md","root":"/Users/Houfeng/my/dev/mota","result":"

属性映射

\n

在 React 中通常会将应用折分为多个组件重用它们,并在用时传递给它「属性」,Mota 提供了将「组件属性」映射到「模型数据」的能力,基于 model 编程会让「视图层」的编写更为方例,专注于 UI 的呈现,如下

\n
@model({ value: 'demo' })\n@mapping(['value'])\nclass Demo extends React.Component {\n  render () {\n    return <div>{this.model.value}</div>;\n  }\n}\n
\n

上边的代码通过 mappingDemo 这个组件的 value 属性映射到了 model.value 上,在组件的属性 value 发生变化时,会自动同步到 model.value 中。

\n

通过一个 map 进行映射,还可以让「组件属性」和「模型的成员」使用不同名称,如下:

\n
@model({ value: 'demo' })\n@mapping({ content: 'value' })\nclass Demo extends React.Component {\n  render () {\n    return <div>{this.model.value}</div>;\n  }\n}\n
\n

上边的代码,将组件 demo 的 content 属性映射到了 model.value 上,那么这个组件就可以这样使用了

\n
function App(){\n  return <Demo content={'yyyy'} />;\n}\n
\n

Demo 组件的 content 属性,将自动被赋值给 model.value,如果没有 mapping,通常我们就需要在 componentDidMountcomponentWillReceiveProps 之类的生命周函数去处理。其实,mapping 就像是一个语法糖,使用它将不再需要手动处理 prop->model 的更新了。

\n"},{"group":"guide","name":"autorun","title":"自执行函数","index":4,"source":"# 自执行函数\n\nMota 中提供了一个 `autorun` 函数,可用于装饰 React 组件的成员方法,被装饰的「成员方法」将会在组件挂载后自动执行一次,Mota 将「收集方法中依赖的模型数据」,在依赖的模型数据发生变化时会「自动重新执行」对应的组件方法。\n\n示例\n\n```js\nimport { Component } from 'react';\nimport { model, autorun } from 'mota';\nimport DemoModel from './models/demo';\n\n@model(DemoModel)\nexport default Demo extends Component {\n\n @autorun\n test() {\n console.log(this.model.name);\n }\n\n}\n```\n\n上边的示例代码中,组件在被挂载后将会自动执行 `test` 方法,同时 mota 会发现方法中依赖了 `model.name`,那么,在 `model.name` 发生变化时,就会重新执行 `test` 方法。","filename":"markdowns/autorun.md","root":"/Users/Houfeng/my/dev/mota","result":"

自执行函数

\n

Mota 中提供了一个 autorun 函数,可用于装饰 React 组件的成员方法,被装饰的「成员方法」将会在组件挂载后自动执行一次,Mota 将「收集方法中依赖的模型数据」,在依赖的模型数据发生变化时会「自动重新执行」对应的组件方法。

\n

示例

\n
import { Component } from 'react';\nimport { model, autorun } from 'mota';\nimport DemoModel from './models/demo';\n\n@model(DemoModel)\nexport default Demo extends Component {\n\n  @autorun\n  test() {\n    console.log(this.model.name);\n  }\n\n}\n
\n

上边的示例代码中,组件在被挂载后将会自动执行 test 方法,同时 mota 会发现方法中依赖了 model.name,那么,在 model.name 发生变化时,就会重新执行 test 方法。

\n"},{"group":"guide","name":"watch","title":"监听模型变化","index":5,"source":"# 监听模型变化\n\n\nMota 中提供了一个 `watch` 函数,可用于装饰 React 组件的成员方法,`watch` 可以指定要观察的「模型数据」,在模型数据发变化时,就会自动执行「被装饰的组件方法」,`watch` 还可以像 `autorun` 一样自动执行一次,但它和 `autorun` 还是不尽相同,主要有如下区别\n\n- `autorun` 会自动收集依赖,而 `watch` 不会关心组件方法中有何依赖,需要手动指定依赖的模型数据\n- `watch` 默认不会「自动执行」,需显式的指定「立即执行参数为 true」,才会自动执行首次。\n- `autorun` 依赖的是「模型数据」本身,而 `watch` 依赖的是「计算函数」每次的「计算结果」\n \n示例\n\n```js\nimport { Component } from 'react';\nimport { model, autorun } from 'mota';\nimport DemoModel from './models/demo';\n\n@model(DemoModel)\nexport default Demo extends Component {\n\n @watch(model=>model.name)\n test() {\n console.log('name 发生了变化');\n }\n\n}\n```\n\n上边的代码,通过 `watch` 装饰了 `test` 方法,并指定了观察的模型数据 `model.name`,那么每当 `model.name` 发生变\b化时,都会打印 `name 发生了变化`.\n\n`watch` 是否重新执行,取决于 `watch` 的作为第一个参数传给它的「计算函数」的计算结果,每当依赖的模型数据发生变化时 `watch` 都会重执行计算函数,当计算结果有变化时,才会执行被装饰的「组件方法」,示例\n\n```js\nexport default Demo extends Component {\n\n @watch(model=>model.name+model.age)\n test() {\n console.log('name 发生变化');\n }\n\n}\n```\n\n有时,我们希望 `watch` 能首先自动执行一次,那么可通过向第二个参数传一个 `true` 声明这个 `watch` 要自动执行一次。\n\n```js\nexport default Demo extends Component {\n\n @watch(model=>model.name,true)\n test() {\n console.log('name 发生变化');\n }\n\n}\n```\n\n上边的 `test` 方法,将会在「组件挂载之后自动执行」,之后在 `model.name` 发生变化时也将自动重新执行。","filename":"markdowns/watch.md","root":"/Users/Houfeng/my/dev/mota","result":"

监听模型变化

\n

Mota 中提供了一个 watch 函数,可用于装饰 React 组件的成员方法,watch 可以指定要观察的「模型数据」,在模型数据发变化时,就会自动执行「被装饰的组件方法」,watch 还可以像 autorun 一样自动执行一次,但它和 autorun 还是不尽相同,主要有如下区别

\n
    \n
  • autorun 会自动收集依赖,而 watch 不会关心组件方法中有何依赖,需要手动指定依赖的模型数据
  • \n
  • watch 默认不会「自动执行」,需显式的指定「立即执行参数为 true」,才会自动执行首次。
  • \n
  • autorun 依赖的是「模型数据」本身,而 watch 依赖的是「计算函数」每次的「计算结果」
  • \n
\n

示例

\n
import { Component } from 'react';\nimport { model, autorun } from 'mota';\nimport DemoModel from './models/demo';\n\n@model(DemoModel)\nexport default Demo extends Component {\n\n  @watch(model=>model.name)\n  test() {\n    console.log('name 发生了变化');\n  }\n\n}\n
\n

上边的代码,通过 watch 装饰了 test 方法,并指定了观察的模型数据 model.name,那么每当 model.name 发生变\b化时,都会打印 name 发生了变化.

\n

watch 是否重新执行,取决于 watch 的作为第一个参数传给它的「计算函数」的计算结果,每当依赖的模型数据发生变化时 watch 都会重执行计算函数,当计算结果有变化时,才会执行被装饰的「组件方法」,示例

\n
export default Demo extends Component {\n\n  @watch(model=>model.name+model.age)\n  test() {\n    console.log('name 发生变化');\n  }\n\n}\n
\n

有时,我们希望 watch 能首先自动执行一次,那么可通过向第二个参数传一个 true 声明这个 watch 要自动执行一次。

\n
export default Demo extends Component {\n\n  @watch(model=>model.name,true)\n  test() {\n    console.log('name 发生变化');\n  }\n\n}\n
\n

上边的 test 方法,将会在「组件挂载之后自动执行」,之后在 model.name 发生变化时也将自动重新执行。

\n"},{"group":"guide","name":"binding","title":"数据绑定","index":6,"source":"# 数据绑定\n\n\n### 基本用法\n\n不要惊诧,就是「双向绑定」。Mota 不排斥「双向绑定」,使用 Mota 能够实现类似 `ng` 或 `vue` 的绑定效果。还是前边小节中的模型,我们来稍微改动一下组件的代码\n\n```js\nimport { model,binding } from 'mota';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport User from './models/user';\n\n@model(User)\n@binding\nclass App extends React.Component {\n render(){\n const { fullName, firstName, popup } = this.model;\n return
\n

{fullName}

\n

\n \n \n

\n
;\n }\n}\nReactDOM.render(, mountNode);\n```\n\n~~其中的「关键」就是 `@binding`,使用 `@binding` 后~~ (>=1.2.0 的版本将会自动处理,不必显示的启用),组件便具备了「双向绑定」的能力,在 `jsx` 中便可以通过名为 `data-bind` 的自定义 `attribute` 进行绑定了,`data-bind` 的值是一个「绑定表达式字符串」,绑定表达式执行的 `scope` 是 `model` 而不是 `this`,也就是只能与 `模型的成员` 进行绑定。\n\n会有一种情况是当要绑定的数据是一个循环变量时,「绑定表达式」写起会较麻烦也稍显长,比如\n\n```js\n@model(userModel)\n@binding\nclass App extends React.Component {\n render(){\n const { userList } = this.model;\n return
    \n {userList.map((user,index)=>(\n
  • \n \n {user.name}\n
  • \n ))}\n
;\n }\n}\n```\n\n因为「绑定表达式」的执行 `scope` 默认是 `this.model`,以及「表达式是个字符串」,看一下 `userList[${index}].selected` 这并不友好,为此 Mota 还提供了一个名为 `data-scope` 的 `attribute`,通过它能改变要绑定的 `scope`,参考如下示例\n\n```js\n@model(userModel)\n@binding\nclass App extends React.Component {\n render(){\n const { userList } = this.model;\n return
    \n {userList.map(user=>(\n
  • \n \n {user.name}\n
  • \n ))}\n
;\n }\n}\n```\n\n通过 `data-scope` 将 `input` 的绑定上下文对象声明为当前循环变量 `user`,这样就可以用 `data-bind` 直接绑定到对应 `user` 的属性上了。\n\n### 原生表单控件\n\n所有的原生表单控件,比如「普通 input、checkbox、radio、textarea、select」都可以直接进行绑定。其中,「普通 input 和 textrea」比较简单,将一个字符类型的模型数据与控件绑定就行了,而对于「checkbox 和 radio」 有多种不同的绑定形式。\n\n将「checkbox 或 radio」绑定到一个 `boolean` 值,此时会将 checkbox 或 radio 的 `checked` 属性和模型数据建立绑定,`checked` 反应了 `boolean` 变量的值,参考如下示例\n\n```js\n@model({ selected:false })\n@binding\nclass App extends React.Component {\n render(){\n return
\n \n \n
;\n }\n}\n```\n\n如上示例通过 `this.model.selected` 就能拿到当前 checkbox 或 radio 的选中状态。\n\n\n将 checkbox 绑定到一个「数组」,通常是多个 checkbox 绑定同一个数组变量上,此时和数据建立绑定的是 checkbox 的 value,数据中会包含当前选中的 checkbox 的 value,如下\n\n```js\n@model({ selected:[] })\n@binding\nclass App extends React.Component {\n render(){\n return
\n \n \n
;\n }\n}\n```\n\n如上示例,通过 `this.selected` 就能知道当前有哪些 checkbox 被选中了,并拿到所有选中的 value\n\n\n将多个 radio 绑定我到一个「字符类型的变量」,此时和数据建立绑定的是 raido 的 value,因为 radio 是单选的,所以对应的数据是当前选中的 radio 的 value,如下\n\n```js\n@model({ selected:'' })\n@binding\nclass App extends React.Component {\n render(){\n return
\n \n \n
;\n }\n}\n```\n通过 `this.model.selected` 就能拿到当前选中的 radio 的 `value`\n\n\n### 自定义组件\n\n但是对于一些「组件库」中的「部分表单组件」不能直接绑定,因为 Mota 并没有什么依据可以判断这是一个什么组件。所以 Mota 提供了一个名为 `bindable` 的函数,用将任意组件包装成「可绑定组件」。\n\nbindable 有两种个参数,用于分别指定「原始组件」和「包装选项」\n\n```js\n//可以这样\nconst MyComponent = bindable(opts, Component);\n//也可这样\nconst MyCompoent = bindable(Component, opts);\n```\n\n关建是 `bindable` 需要的 `opts`,通过 `opts` 我们可以造诉 Mota 如何绑定这个组件,`opts` 中有两个重要的成员,它的结构如下\n\n```js\n{\n value: ['value 对应的属性名'],\n event: ['value 改变的事件名']\n}\n```\n\n所以,我们可以这样包装一个自定义文本输入框\n\n```js\nconst MyInput = bindable(Input,{\n value: ['value'],\n event: ['onChange']\n});\n```\n\n对这种「value 不需要转换,`change` 能通过 `event` 或 `event.target.value` 拿到值」的组件,通过如上的代码就能完成包装了。\n\n对于有 `onChange` 和 `value` 的这类文本输入组件,因为 opts 的默认值就是\n\n```js\n{\n value: ['value'],\n event: ['onChange']\n}\n```\n\n所以,可以更简单,这样就行,\n```js\nconst MyInput = bindable(Input);\n```\n\n而对于 checkbox 和 radio 来讲,如上边讲到的它「根据不同的数据型有不同的绑定形式」,这就需要指定处理函数了,如下\n\n```js\nconst radioOpts = {\n prop: ['checked', (ctx, props) => {\n const mValue = ctx.getValue();\n if (typeof mValue == 'boolean') {\n return !!mValue;\n } else {\n return mValue == props.value;\n }\n }],\n event: ['onChange', (ctx, event) => {\n const { value, checked } = event.target;\n const mValue = ctx.getValue();\n if (typeof mValue == 'boolean') {\n ctx.setValue(checked);\n } else if (checked) ctx.setValue(value);\n }]\n};\n```\n\n通过 `prop` 的第二个值,能指定「属性处理函数」,`event` 的第二个值能指取「事件处理函数」,处理函数的 `ctx` 是个特殊的对象 \n\n- `ctx.getValue` 能获取「当前绑定的模型数据」\n- `ctx.setValue` 能设置「当前绑定的模型数据」\n\n上边是 `radio` 的配置,首先,在「属性处理函数」中通过绑定的「模型数据的类型」决定 `checked` 最终的状态是什么,并在函数中返回。再次,在「事件处理函数」中通过绑定的「模型数据的类型」决定将什么值回写到模型中。\n\n通过「属性处理函数」和「事件处理函数」几乎就能将任意的自定义组件转换为「可绑定组件」了。\n\n另外,对于常见的 `CheckBox` 和 `Radio` 类型的组件 Mota 也提供了内建的 `opts` 配置支持,如果一个自定义组件拥有和「原生 checkbox 一致的属性和事件模型」,那边可以直接用简单的方式去包装,如下\n\n```js\nconst MyCheckBox = bindable('checkbox',CheckBox);\nconst MyRadio = bindable('radio',Radio);\n```\n\n好了,关于绑定就这些了。","filename":"markdowns/binding.md","root":"/Users/Houfeng/my/dev/mota","result":"

数据绑定

\n

基本用法

\n

不要惊诧,就是「双向绑定」。Mota 不排斥「双向绑定」,使用 Mota 能够实现类似 ngvue 的绑定效果。还是前边小节中的模型,我们来稍微改动一下组件的代码

\n
import { model,binding } from 'mota';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport User from './models/user';\n\n@model(User)\n@binding\nclass App extends React.Component {\n  render(){\n    const { fullName, firstName, popup } = this.model;\n    return <div>\n      <p>{fullName}</p>\n      <p>\n        <input data-bind=\"firstName\"/>\n        <button onClick={popup}> click me </button>\n      </p>\n    </div>;\n  }\n}\nReactDOM.render(<App/>, mountNode);\n
\n

其中的「关键」就是 @binding,使用 @binding (>=1.2.0 的版本将会自动处理,不必显示的启用),组件便具备了「双向绑定」的能力,在 jsx 中便可以通过名为 data-bind 的自定义 attribute 进行绑定了,data-bind 的值是一个「绑定表达式字符串」,绑定表达式执行的 scopemodel 而不是 this,也就是只能与 模型的成员 进行绑定。

\n

会有一种情况是当要绑定的数据是一个循环变量时,「绑定表达式」写起会较麻烦也稍显长,比如

\n
@model(userModel)\n@binding\nclass App extends React.Component {\n  render(){\n    const { userList } = this.model;\n    return <ul>\n     {userList.map((user,index)=>(\n       <li key={user.id}>\n         <input type=\"checkobx\" data-bind={`userList[${index}].selected`}>\n         {user.name}\n       </li>\n     ))}\n    </ul>;\n  }\n}\n
\n

因为「绑定表达式」的执行 scope 默认是 this.model,以及「表达式是个字符串」,看一下 userList[${index}].selected 这并不友好,为此 Mota 还提供了一个名为 data-scopeattribute,通过它能改变要绑定的 scope,参考如下示例

\n
@model(userModel)\n@binding\nclass App extends React.Component {\n  render(){\n    const { userList } = this.model;\n    return <ul>\n     {userList.map(user=>(\n       <li key={user.id}>\n         <input type=\"checkobx\" data-scope={user} data-bind=\"selected\">\n         {user.name}\n       </li>\n     ))}\n    </ul>;\n  }\n}\n
\n

通过 data-scopeinput 的绑定上下文对象声明为当前循环变量 user,这样就可以用 data-bind 直接绑定到对应 user 的属性上了。

\n

原生表单控件

\n

所有的原生表单控件,比如「普通 input、checkbox、radio、textarea、select」都可以直接进行绑定。其中,「普通 input 和 textrea」比较简单,将一个字符类型的模型数据与控件绑定就行了,而对于「checkbox 和 radio」 有多种不同的绑定形式。

\n

将「checkbox 或 radio」绑定到一个 boolean 值,此时会将 checkbox 或 radio 的 checked 属性和模型数据建立绑定,checked 反应了 boolean 变量的值,参考如下示例

\n
@model({ selected:false })\n@binding\nclass App extends React.Component {\n  render(){\n    return <div>\n      <input type=\"checkbox\" data-bind=\"selected\"/>\n      <input type=\"radio\" data-bind=\"selected\"/>\n    </div>;\n  }\n}\n
\n

如上示例通过 this.model.selected 就能拿到当前 checkbox 或 radio 的选中状态。

\n

将 checkbox 绑定到一个「数组」,通常是多个 checkbox 绑定同一个数组变量上,此时和数据建立绑定的是 checkbox 的 value,数据中会包含当前选中的 checkbox 的 value,如下

\n
@model({ selected:[] })\n@binding\nclass App extends React.Component {\n  render(){\n    return <div>\n      <input type=\"checkbox\" data-bind=\"selected\" value=\"1\"/>\n      <input type=\"checkbox\" data-bind=\"selected\" value=\"2\"/>\n    </div>;\n  }\n}\n
\n

如上示例,通过 this.selected 就能知道当前有哪些 checkbox 被选中了,并拿到所有选中的 value

\n

将多个 radio 绑定我到一个「字符类型的变量」,此时和数据建立绑定的是 raido 的 value,因为 radio 是单选的,所以对应的数据是当前选中的 radio 的 value,如下

\n
@model({ selected:'' })\n@binding\nclass App extends React.Component {\n  render(){\n    return <div>\n      <input type=\"radio\" data-bind=\"selected\" value=\"1\"/>\n      <input type=\"radio\" data-bind=\"selected\" value=\"2\"/>\n    </div>;\n  }\n}\n
\n

通过 this.model.selected 就能拿到当前选中的 radio 的 value

\n

自定义组件

\n

但是对于一些「组件库」中的「部分表单组件」不能直接绑定,因为 Mota 并没有什么依据可以判断这是一个什么组件。所以 Mota 提供了一个名为 bindable 的函数,用将任意组件包装成「可绑定组件」。

\n

bindable 有两种个参数,用于分别指定「原始组件」和「包装选项」

\n
//可以这样\nconst MyComponent = bindable(opts, Component);\n//也可这样\nconst MyCompoent = bindable(Component, opts);\n
\n

关建是 bindable 需要的 opts,通过 opts 我们可以造诉 Mota 如何绑定这个组件,opts 中有两个重要的成员,它的结构如下

\n
{\n  value: ['value 对应的属性名'],\n  event: ['value 改变的事件名']\n}\n
\n

所以,我们可以这样包装一个自定义文本输入框

\n
const MyInput = bindable(Input,{\n  value: ['value'],\n  event: ['onChange']\n});\n
\n

对这种「value 不需要转换,change 能通过 eventevent.target.value 拿到值」的组件,通过如上的代码就能完成包装了。

\n

对于有 onChangevalue 的这类文本输入组件,因为 opts 的默认值就是

\n
{\n  value: ['value'],\n  event: ['onChange']\n}\n
\n

所以,可以更简单,这样就行,

\n
const MyInput = bindable(Input);\n
\n

而对于 checkbox 和 radio 来讲,如上边讲到的它「根据不同的数据型有不同的绑定形式」,这就需要指定处理函数了,如下

\n
const radioOpts = {\n  prop: ['checked', (ctx, props) => {\n    const mValue = ctx.getValue();\n    if (typeof mValue == 'boolean') {\n      return !!mValue;\n    } else {\n      return mValue == props.value;\n    }\n  }],\n  event: ['onChange', (ctx, event) => {\n    const { value, checked } = event.target;\n    const mValue = ctx.getValue();\n    if (typeof mValue == 'boolean') {\n      ctx.setValue(checked);\n    } else if (checked) ctx.setValue(value);\n  }]\n};\n
\n

通过 prop 的第二个值,能指定「属性处理函数」,event 的第二个值能指取「事件处理函数」,处理函数的 ctx 是个特殊的对象

\n
    \n
  • ctx.getValue 能获取「当前绑定的模型数据」
  • \n
  • ctx.setValue 能设置「当前绑定的模型数据」
  • \n
\n

上边是 radio 的配置,首先,在「属性处理函数」中通过绑定的「模型数据的类型」决定 checked 最终的状态是什么,并在函数中返回。再次,在「事件处理函数」中通过绑定的「模型数据的类型」决定将什么值回写到模型中。

\n

通过「属性处理函数」和「事件处理函数」几乎就能将任意的自定义组件转换为「可绑定组件」了。

\n

另外,对于常见的 CheckBoxRadio 类型的组件 Mota 也提供了内建的 opts 配置支持,如果一个自定义组件拥有和「原生 checkbox 一致的属性和事件模型」,那边可以直接用简单的方式去包装,如下

\n
const MyCheckBox = bindable('checkbox',CheckBox);\nconst MyRadio = bindable('radio',Radio);\n
\n

好了,关于绑定就这些了。

\n"},{"group":"guide","name":"use_model","title":"使用 Hook API","index":7,"source":"# 使用 Hook API\n\n### 简单介绍\n在 React 发布包含 `Hooks` 的 `alpah` 版后,Mota 也在 `next` 版本中新增支持了 Hook 风格的 API,随着 React `v16.8` 版本的发布带来了稳定版的 `Hooks` 支持。\n\n目前,Mota \b已经在稳定版中,提供了 `Hook API` 的支持,利用 React 的 `Hooks` 可以让你在不编写类的情况下使用 `state` 和 React 的其他功能。而使用 Mota 极少的 `Hook API` 将给应用带来 Hook 风格可响应的全局状态管理支持。\n\n### 基本用法\n\n```js\nimport React from 'react';\nimport { render } from 'react-dom';\n\nfunction App(){\n //通过 useModel 拿到一个可响应的 model\n const model = useModel({ count:0 });\n //定义累加按钮事件\n const onClick = useCallback(()=>model.count++);\n //--\n return
\n
{model.count}
\n \n
;\n}\n\nrender(, document.getElementId('root'));\n```\n\n仅有一个新增 API `useModel`,通过 `useModel` 可在一个 `Function Component` 中使用 `model`,如同在 `Class Component` 中的 `@model`,此时的 `model` 依然是可响应的,执行时会对组件进行「依赖收集」,当操作 `model` 的成员时(比如 `model.count=1` 的赋值操作),Mota 会自动发现组件依赖的数据发生了变化并通知组件进行更新。\n\n### 进阶说明\n\n在基本用法中提到了一个关键词「依赖收集」,通过 `useModel` 拿到了可响应的 `model`,默认情况下只有被组件依赖的模型数据发生了变化组件才会更新,比如下边的示例代码中,只有在 `model.a` 发生变化时,组件才会重新渲染。\n\n\n```js\nfunction Demo(){\n const model = useModel({ a:0, b:1 });\n ...\n return
{model.a}
\n}\n```\n\n实际开发过程中有时「组件依赖了模型上的某个对象,但希望这个对象的子成员发生变化时,组件也要重新渲染」\n\n```js\nfunction Demo(){\n const { info } = useModel({ info: { name: 'test'} });\n ...\n return \n}\n```\n\n因为对于 `Demo` 来说只依赖了 `info`,而 `info` 的引用是一直没有变化的,所以在 `info.name` 发生变化时 `Demo` 并不会重新渲染。那这样 `Info` 组件会一直显示旧的数据。\n\n如何处理这个问题?\n\n一个方法是让 `Info` 也通过 `useModel` 有自已的 `model`,那 `Info` 的依赖会被独立解析,比如\n\n```js\nfunction Info(props){\n const info = useModel(props.data);\n return
{info.name}
\n}\n```\n\n这个虽然 `Demo` 不会重新渲染,但 Mota 会发现 `Info` 依赖了 `info.name`,但发现数据变化时,`Info` 会自动更新。\n\n还有一个方法是,在更新 `info.name` 时换一个写法\n\n```js\n//通常的直接给 name 赋值\nmodel.info.name = 'test';\n//如下的给 info 赋值的写法,会让 Demo 发现 info 的变化\nmodel.info = {...model.info, name: 'test'};\n```\n\n除了上述的两个方法,还有一个方法就是通过 `useModel` 的第二个参数显示的声明额外的依赖,第二个参数可是一个数组,数组中是显式声明的依赖,格式为子成员的路径,如下\n\n```js\nfunction Demo(){\n const { info } = useModel({ \n info: { name: 'test'} \n }, ['info.name']);\n ...\n return \n}\n```\n\n但有时时模型数据是一个数组,我们无法直接指定每个子元素的路径,这时第二个参数还可以是一个函数,函数的参数是「变化的模型数据的路径」,可参函数中返回 `boolean` 值决定是否需要更新组件,如下\n\n```js\nfunction Demo(){\n const { info } = useModel({ \n info: [{name: 'test1'}] \n }, p=> p.endsWith('.name'));\n ...\n return \n}\n```\n\n示例中通过用 `endsWith` 路径是不是 `*.name` 结尾的决定要不要更新,当然也可以用更多的判断方法决定要不要更新。","filename":"markdowns/use_model.md","root":"/Users/Houfeng/my/dev/mota","result":"

使用 Hook API

\n

简单介绍

\n

在 React 发布包含 Hooksalpah 版后,Mota 也在 next 版本中新增支持了 Hook 风格的 API,随着 React v16.8 版本的发布带来了稳定版的 Hooks 支持。

\n

目前,Mota \b已经在稳定版中,提供了 Hook API 的支持,利用 React 的 Hooks 可以让你在不编写类的情况下使用 state 和 React 的其他功能。而使用 Mota 极少的 Hook API 将给应用带来 Hook 风格可响应的全局状态管理支持。

\n

基本用法

\n
import React from 'react';\nimport { render } from 'react-dom';\n\nfunction App(){\n  //通过 useModel 拿到一个可响应的 model\n  const model = useModel({ count:0 });\n  //定义累加按钮事件\n  const onClick = useCallback(()=>model.count++);\n  //--\n  return <div>\n    <div>{model.count}</div>\n    <button onClick={onClick}>click me</button>\n  </div>;\n}\n\nrender(<App/>, document.getElementId('root'));\n
\n

仅有一个新增 API useModel,通过 useModel 可在一个 Function Component 中使用 model,如同在 Class Component 中的 @model,此时的 model 依然是可响应的,执行时会对组件进行「依赖收集」,当操作 model 的成员时(比如 model.count=1 的赋值操作),Mota 会自动发现组件依赖的数据发生了变化并通知组件进行更新。

\n

进阶说明

\n

在基本用法中提到了一个关键词「依赖收集」,通过 useModel 拿到了可响应的 model,默认情况下只有被组件依赖的模型数据发生了变化组件才会更新,比如下边的示例代码中,只有在 model.a 发生变化时,组件才会重新渲染。

\n
function Demo(){\n  const model = useModel({ a:0, b:1 });\n  ...\n  return <div>{model.a}</div>\n}\n
\n

实际开发过程中有时「组件依赖了模型上的某个对象,但希望这个对象的子成员发生变化时,组件也要重新渲染」

\n
function Demo(){\n  const { info } = useModel({ info: { name: 'test'} });\n  ...\n  return <Info data={info}/>\n}\n
\n

因为对于 Demo 来说只依赖了 info,而 info 的引用是一直没有变化的,所以在 info.name 发生变化时 Demo 并不会重新渲染。那这样 Info 组件会一直显示旧的数据。

\n

如何处理这个问题?

\n

一个方法是让 Info 也通过 useModel 有自已的 model,那 Info 的依赖会被独立解析,比如

\n
function Info(props){\n  const info = useModel(props.data);\n  return <div>{info.name}</div>\n}\n
\n

这个虽然 Demo 不会重新渲染,但 Mota 会发现 Info 依赖了 info.name,但发现数据变化时,Info 会自动更新。

\n

还有一个方法是,在更新 info.name 时换一个写法

\n
//通常的直接给 name 赋值\nmodel.info.name = 'test';\n//如下的给 info 赋值的写法,会让 Demo 发现 info 的变化\nmodel.info = {...model.info, name: 'test'};\n
\n

除了上述的两个方法,还有一个方法就是通过 useModel 的第二个参数显示的声明额外的依赖,第二个参数可是一个数组,数组中是显式声明的依赖,格式为子成员的路径,如下

\n
function Demo(){\n  const { info } = useModel({ \n    info: { name: 'test'} \n  }, ['info.name']);\n  ...\n  return <Info data={info}/>\n}\n
\n

但有时时模型数据是一个数组,我们无法直接指定每个子元素的路径,这时第二个参数还可以是一个函数,函数的参数是「变化的模型数据的路径」,可参函数中返回 boolean 值决定是否需要更新组件,如下

\n
function Demo(){\n  const { info } = useModel({ \n    info: [{name: 'test1'}] \n  }, p=> p.endsWith('.name'));\n  ...\n  return <Info data={info}/>\n}\n
\n

示例中通过用 endsWith 路径是不是 *.name 结尾的决定要不要更新,当然也可以用更多的判断方法决定要不要更新。

\n"},{"group":"guide","name":"hook_model","title":"面向 Hook 的模型","index":8,"source":"# 面向 Hook 的模型\n\n### 一些说明\n\n针对 Mota 的 `useModel` 的模型本质上和针对 `@model` 的模型并无本质区别,用以往的风格编写的「模型类」或「单例的普通 Object」,除了能用于 `@model` 也是能用于 `useModel` 的。\n\n既然用了 `Hook API`,是不是可在编写模型也避免再写「类」或「单例的 Object」?为此 `useModel` 还提供了用 `ES Module` 作为模型的支持,如用其他风格的模型一样,`ES Module` 风格的模型也不需要引用额外的依赖,仅用 `ES` 原生语法即可。\n\n### 用 ES Module 编写模型\n\n通过 `ES Module` 直接作为 `model` 的优点时「简单、直接」,同时由于为了保证「可响应」不被破坏,需要一点点约束,就是「必须导出一个 state 对象」,如下\n\n```js\nexport const state = {\n name: 'test'\n}\n\nexport function setName(name){\n state.name = name\n}\n```\n\n上边的代码是一个最简单的可当作 `model` 的 `ES Module`,一个包含「state 和一组件函数」的 `ES Module` 就是一个可被 `useModel` 使用的 `model`,参考如下代码\n\n```js\nimport * as demo from './models/demo';\n\nfunction App(){\n const { name } = useModel(demo);\n return
{name}
;\n}\n```\n\n注意:必须 export 一个 state 的约束只针对于 `ES Module`,用 `class` 或 `object` 的风格编写的 `model` 无任何约束。","filename":"markdowns/hook_model.md","root":"/Users/Houfeng/my/dev/mota","result":"

面向 Hook 的模型

\n

一些说明

\n

针对 Mota 的 useModel 的模型本质上和针对 @model 的模型并无本质区别,用以往的风格编写的「模型类」或「单例的普通 Object」,除了能用于 @model 也是能用于 useModel 的。

\n

既然用了 Hook API,是不是可在编写模型也避免再写「类」或「单例的 Object」?为此 useModel 还提供了用 ES Module 作为模型的支持,如用其他风格的模型一样,ES Module 风格的模型也不需要引用额外的依赖,仅用 ES 原生语法即可。

\n

用 ES Module 编写模型

\n

通过 ES Module 直接作为 model 的优点时「简单、直接」,同时由于为了保证「可响应」不被破坏,需要一点点约束,就是「必须导出一个 state 对象」,如下

\n
export const state = {\n  name: 'test'\n}\n\nexport function setName(name){\n  state.name = name\n}\n
\n

上边的代码是一个最简单的可当作 modelES Module,一个包含「state 和一组件函数」的 ES Module 就是一个可被 useModel 使用的 model,参考如下代码

\n
import * as demo from './models/demo';\n\nfunction App(){\n  const { name } = useModel(demo);\n  return <div>{name}</div>;\n}\n
\n

注意:必须 export 一个 state 的约束只针对于 ES Module,用 classobject 的风格编写的 model 无任何约束。

\n"},{"group":"guide","name":"typescript","title":"在 TS 中使用","index":8,"source":"# 在 TS 中使用 Mota\n\nMota 的 `Package` 中自带了「类型定义文件」,无论使用 `Class + Decorator` 风格的 API 或使用 `Hooks` 风格的 API,都能愉快的使用 TypeScript,下边有两个小提示。\n\n### 提示一:使用 @model \n\n在通过 `@model` 为组件关联了一个 `model` 后,需要声明 `this.model` 的类型,参考如下代码\n\n```js\nimport * as React from \"react\";\nimport { model, watch, mapping } from \"mota\";\nimport { DemoModel } from \"./DemoModel\";\n\n@model(DemoModel)\nexport class Demo extends React.Component {\n\n //需要声明 model 的类型\n model: DemoModel;\n\n render() {\n //便能让 this.model 具备完整的类型提示了\n const { name } = this.model;\n return
\n {name} \n
;\n }\n}\n```\n\n### 提示一:使用 useModel\n\n完整的 `useModel` 的定义为 `useModel(model:T)=>T`,但使用 `useModel` 时一般不需做特别的声明,默认情况下 `TS` 就能完成类型推导\n\n```js\nimport * as React from \"react\";\nimport { useModel } from \"mota\";\nimport { DemoModel } from \"./DemoModel\";\n\nexport function Demo {\n const { name } = useModel(DemoModel);\n return
\n {name} \n
;\n}\n```","filename":"markdowns/typescript.md","root":"/Users/Houfeng/my/dev/mota","result":"

在 TS 中使用 Mota

\n

Mota 的 Package 中自带了「类型定义文件」,无论使用 Class + Decorator 风格的 API 或使用 Hooks 风格的 API,都能愉快的使用 TypeScript,下边有两个小提示。

\n

提示一:使用 @model

\n

在通过 @model 为组件关联了一个 model 后,需要声明 this.model 的类型,参考如下代码

\n
import * as React from \"react\";\nimport { model, watch, mapping } from \"mota\";\nimport { DemoModel } from \"./DemoModel\";\n\n@model(DemoModel)\nexport class Demo extends React.Component {\n\n  //需要声明 model 的类型\n  model: DemoModel;\n\n  render() {\n    //便能让 this.model 具备完整的类型提示了\n    const { name } = this.model;\n    return <div className=\"demo\">  \n      {name}  \n    </div>;\n  }\n}\n
\n

提示一:使用 useModel

\n

完整的 useModel 的定义为 useModel<T>(model:T)=>T,但使用 useModel 时一般不需做特别的声明,默认情况下 TS 就能完成类型推导

\n
import * as React from \"react\";\nimport { useModel } from \"mota\";\nimport { DemoModel } from \"./DemoModel\";\n\nexport function Demo {\n  const { name } = useModel(DemoModel);\n  return <div className=\"demo\">  \n    {name}  \n  </div>;\n}\n
\n"}]}],"links":[{"text":"状态管理 (Mota)","url":"//houfeng.net/mota/"},{"text":"数据验证 (Validation)","url":"//houfeng.net/mota-validation/"},{"text":"表单组件 (Form)","url":"//houfeng.net/mota-form/"},{"text":"源码 (GitHub)","url":"//github.com/Houfeng/mota"}]}],"plugins":[{"name":"doczilla-place","options":{}},{"name":"doczilla-include","options":{}},{"name":"doczilla-container","options":{}},{"name":"doczilla-highlight","options":{}},{"name":"doczilla-details","options":{}},{"name":"doczilla-card","options":{}},{"name":"doczilla-anchor","options":{}}],"mode":"hash","baseUri":"","extname":""}; \ No newline at end of file +window.DOC_DATA={"locales":[{"name":"zh","text":"中文 (CN)","title":"Mota","groups":[{"name":"guide","text":"使用指南","docs":[{"group":"guide","name":"quick","title":"快速开始","index":1,"source":"# Mota\n\n## 简述 \n\nReact 是一个「视图层」的 UI 框架,以常见的 MVC 来讲 React 仅是 View,而我们在编写应用时,通常还需要关注更加重要的 model,对于 React 来讲,我们常常需要一个「状态管理」库。然而,目前大多数针对 React 的状态管理库都是「强依赖」过多的侵入本应该独立的业务模型中,导致「业务逻辑」对应的代码并不能轻易在其它地方重用,往往这些框架还具有「强排它性」,但是「业务模型」应该是没有过多依赖,应该是无关框架的,它应该随时可以被用在任何合适的 JavaScript 环境中,使用 mota 你可以用原生的普通的 JavaScript 代码编写你的「业务模型」,并让你的「业务模型」在不同框架、不同运行环境下重用更为容易。\n\nMota 是一个响应式的 React 应用状态管理库,基于 Mota 你可以用单纯无依赖的 JavaScript 为应用编写「业务模型」,并轻易的将「业务模型」关联到 React 应用中。\n\n## 示例\n\n[在线 TodoList 示例](http://houfeng.net/dn-template-mota/example/)\n([示例源码](https://github.com/Houfeng/dn-template-mota))\n\n\n\n## 安装\n\n通过 npm 安装,如下\n```sh\n$ npm i mota --save \n```\n\n或通过 `dawn` 脚手脚加创建工程,如下\n\n```sh\n$ mkdir your_path\n$ cd your_path\n$ dn init -t mota\n$ dn dev\n```\n\n需要先安装 dawn([Dawn 安装及使用文档](https://alibaba.github.io/dawn/docs/))\n\n## 结构\n\n一个 `mota` 工程的通常结构如下\n\n```sh\n.\n├── README.md\n├── package.json\n└── src\n ├── assets\n │   ├── common.less\n │   ├── favicon.ico\n │   └── index.html\n ├── components\n │   ├── todoApp.js\n │   └── todoItem.js\n ├── index.js\n └── models\n ├── TodoItem.js\n ├── TodoList.js\n └── index.js\n```\n\n## 文档\n- [快速开始](http://houfeng.net/mota/#!/zh/guide/quick)\n- [编写业务模型](http://houfeng.net/mota/#!/zh/guide/model)\n- [将组件属性映射到模型](http://houfeng.net/mota/#!/zh/guide/mapping)\n- [自执行函数](http://houfeng.net/mota/#!/zh/guide/autorun)\n- [监听模型变化](http://houfeng.net/mota/#!/zh/guide/watch)\n- [将模型数据与表单绑定](http://houfeng.net/mota/#!/zh/guide/binding)\n\n## 链接\n- [版本发布日志](https://github.com/Houfeng/mota/releases)\n- [MIT 开源协议](https://tldrlegal.com/license/mit-license)","filename":"markdowns/quick.md","root":"/Users/Houfeng/my/dev/mota","result":"

Mota

\n

简述

\n

React 是一个「视图层」的 UI 框架,以常见的 MVC 来讲 React 仅是 View,而我们在编写应用时,通常还需要关注更加重要的 model,对于 React 来讲,我们常常需要一个「状态管理」库。然而,目前大多数针对 React 的状态管理库都是「强依赖」过多的侵入本应该独立的业务模型中,导致「业务逻辑」对应的代码并不能轻易在其它地方重用,往往这些框架还具有「强排它性」,但是「业务模型」应该是没有过多依赖,应该是无关框架的,它应该随时可以被用在任何合适的 JavaScript 环境中,使用 mota 你可以用原生的普通的 JavaScript 代码编写你的「业务模型」,并让你的「业务模型」在不同框架、不同运行环境下重用更为容易。

\n

Mota 是一个响应式的 React 应用状态管理库,基于 Mota 你可以用单纯无依赖的 JavaScript 为应用编写「业务模型」,并轻易的将「业务模型」关联到 React 应用中。

\n

示例

\n

在线 TodoList 示例\n(示例源码)

\n\n

安装

\n

通过 npm 安装,如下

\n
$ npm i mota --save \n
\n

或通过 dawn 脚手脚加创建工程,如下

\n
$ mkdir your_path\n$ cd your_path\n$ dn init -t mota\n$ dn dev\n
\n

需要先安装 dawn(Dawn 安装及使用文档

\n

结构

\n

一个 mota 工程的通常结构如下

\n
.\n├── README.md\n├── package.json\n└── src\n    ├── assets\n    │   ├── common.less\n    │   ├── favicon.ico\n    │   └── index.html\n    ├── components\n    │   ├── todoApp.js\n    │   └── todoItem.js\n    ├── index.js\n    └── models\n        ├── TodoItem.js\n        ├── TodoList.js\n        └── index.js\n
\n

文档

\n\n

链接

\n\n"},{"group":"guide","name":"model","title":"编写业务模型","index":2,"source":"# 编写业务模型\n\n在你编写模型之前,先放下 React 也放下 Mota,就用单纯的 JavaScript 去编写你的业务模型,或有一个或多个类、或就是几个 Object,依它们应有的、自然的关系去抽像就行了,业务模型不依赖于 UI、也不依赖于某个框架,它易于测试,你可以针对它做单元测试。它易于重用,你可以将它用在合适的地方。最后, Mota 只是出场把它关联到 React。\n\n在 Mota 中「模型」可以是由一个 `class` 或普通的的 `Object`,整个「业务模型层」会由多个 `class` 和多个 `Object` 组成,而编写模型所需要的知识就是 JavaScript 固有的编程的知识。\n\n如下示例通过编写一个名为 `User` 的 `class` 创建了一个「用户模型」\n\n```js\nexport default class User {\n firstName = 'Jack';\n lastName = 'Hou';\n get fullName(){\n reutrn `${this.firstName} ${this.lastName}`;\n }\n}\n```\n\n也可以是一个 `Object`,通常这个模型需要是「单例」时,可采用这种方式,如下\n\n```js\nexport default {\n firstName: 'Jack',\n lastName: 'Hou',\n get fullName(){\n reutrn `${this.firstName} ${this.lastName}`;\n }\n};\n```\n\n在「业务模型」编写完成后,可以通过 `@model` 将某个「类」或「类的实例」关联到指定组件,关联后便可以在组件中使用 `this.model` 访问「模型的成员变量或方法」了,Mota 还会自动「收集组件依赖」,在组件「依赖的模型数据」发生变化时,自动响应变化并「驱动组件重新渲染」,如下\n\n```js\nimport { model,binding } from 'mota';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport User from './models/user';\n\n@model(User)\nclass App extends React.Component {\n\n onChange(field,event){\n this.model[field] = event.target.value;\n }\n\n render(){\n return
\n

{this.model.fullName}

\n

\n \n
\n \n

\n
;\n }\n}\n\nReactDOM.render(, mountNode);\n```\n\n值得注意的是,在使用 `@model` 时如果传入的是一个 `class` 最终每个组件实例都会自动创建一个 `独立的实例`,这样带来的好处是「当一个页面中有同一个组件的多个实例时,不会相互影响」。","filename":"markdowns/model.md","root":"/Users/Houfeng/my/dev/mota","result":"

编写业务模型

\n

在你编写模型之前,先放下 React 也放下 Mota,就用单纯的 JavaScript 去编写你的业务模型,或有一个或多个类、或就是几个 Object,依它们应有的、自然的关系去抽像就行了,业务模型不依赖于 UI、也不依赖于某个框架,它易于测试,你可以针对它做单元测试。它易于重用,你可以将它用在合适的地方。最后, Mota 只是出场把它关联到 React。

\n

在 Mota 中「模型」可以是由一个 class 或普通的的 Object,整个「业务模型层」会由多个 class 和多个 Object 组成,而编写模型所需要的知识就是 JavaScript 固有的编程的知识。

\n

如下示例通过编写一个名为 Userclass 创建了一个「用户模型」

\n
export default class User {\n  firstName = 'Jack';\n  lastName = 'Hou';\n  get fullName(){\n    reutrn `${this.firstName} ${this.lastName}`;\n  }\n}\n
\n

也可以是一个 Object,通常这个模型需要是「单例」时,可采用这种方式,如下

\n
export default {\n  firstName: 'Jack',\n  lastName: 'Hou',\n  get fullName(){\n    reutrn `${this.firstName} ${this.lastName}`;\n  }\n};\n
\n

在「业务模型」编写完成后,可以通过 @model 将某个「类」或「类的实例」关联到指定组件,关联后便可以在组件中使用 this.model 访问「模型的成员变量或方法」了,Mota 还会自动「收集组件依赖」,在组件「依赖的模型数据」发生变化时,自动响应变化并「驱动组件重新渲染」,如下

\n
import { model,binding } from 'mota';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport User from './models/user';\n\n@model(User)\nclass App extends React.Component {\n\n  onChange(field,event){\n    this.model[field] = event.target.value;\n  }\n\n  render(){\n    return <div>\n      <p>{this.model.fullName}</p>\n      <p>\n        <input onChange={this.onChange.bind(this,'firstName')}/>\n        <br/>\n        <input onChange={this.onChange.bind(this,'lastName')}/>\n      </p>\n    </div>;\n  }\n}\n\nReactDOM.render(<App/>, mountNode);\n
\n

值得注意的是,在使用 @model 时如果传入的是一个 class 最终每个组件实例都会自动创建一个 独立的实例,这样带来的好处是「当一个页面中有同一个组件的多个实例时,不会相互影响」。

\n"},{"group":"guide","name":"mapping","title":"属性映射","index":3,"source":"# 属性映射\n\n在 React 中通常会将应用折分为多个组件重用它们,并在用时传递给它「属性」,Mota 提供了将「组件属性」映射到「模型数据」的能力,基于 `model` 编程会让「视图层」的编写更为方例,专注于 UI 的呈现,如下\n\n```js\n@model({ value: 'demo' })\n@mapping(['value'])\nclass Demo extends React.Component {\n render () {\n return
{this.model.value}
;\n }\n}\n```\n\n上边的代码通过 `mapping` 将 `Demo` 这个组件的 `value` 属性映射到了 `model.value` 上,在组件的属性 `value` 发生变化时,会自动同步到 `model.value` 中。\n\n通过一个 `map` 进行映射,还可以让「组件属性」和「模型的成员」使用不同名称,如下:\n\n```js\n@model({ value: 'demo' })\n@mapping({ content: 'value' })\nclass Demo extends React.Component {\n render () {\n return
{this.model.value}
;\n }\n}\n```\n\n上边的代码,将组件 demo 的 `content` 属性映射到了 `model.value` 上,那么这个组件就可以这样使用了\n\n```js\nfunction App(){\n return ;\n}\n```\n\n`Demo` 组件的 `content` 属性,将自动被赋值给 `model.value`,如果没有 `mapping`,通常我们就需要在 `componentDidMount` 和 `componentWillReceiveProps` 之类的生命周函数去处理。其实,`mapping` 就像是一个语法糖,使用它将不再需要手动处理 prop->model 的更新了。","filename":"markdowns/mapping.md","root":"/Users/Houfeng/my/dev/mota","result":"

属性映射

\n

在 React 中通常会将应用折分为多个组件重用它们,并在用时传递给它「属性」,Mota 提供了将「组件属性」映射到「模型数据」的能力,基于 model 编程会让「视图层」的编写更为方例,专注于 UI 的呈现,如下

\n
@model({ value: 'demo' })\n@mapping(['value'])\nclass Demo extends React.Component {\n  render () {\n    return <div>{this.model.value}</div>;\n  }\n}\n
\n

上边的代码通过 mappingDemo 这个组件的 value 属性映射到了 model.value 上,在组件的属性 value 发生变化时,会自动同步到 model.value 中。

\n

通过一个 map 进行映射,还可以让「组件属性」和「模型的成员」使用不同名称,如下:

\n
@model({ value: 'demo' })\n@mapping({ content: 'value' })\nclass Demo extends React.Component {\n  render () {\n    return <div>{this.model.value}</div>;\n  }\n}\n
\n

上边的代码,将组件 demo 的 content 属性映射到了 model.value 上,那么这个组件就可以这样使用了

\n
function App(){\n  return <Demo content={'yyyy'} />;\n}\n
\n

Demo 组件的 content 属性,将自动被赋值给 model.value,如果没有 mapping,通常我们就需要在 componentDidMountcomponentWillReceiveProps 之类的生命周函数去处理。其实,mapping 就像是一个语法糖,使用它将不再需要手动处理 prop->model 的更新了。

\n"},{"group":"guide","name":"autorun","title":"自执行函数","index":4,"source":"# 自执行函数\n\nMota 中提供了一个 `autorun` 函数,可用于装饰 React 组件的成员方法,被装饰的「成员方法」将会在组件挂载后自动执行一次,Mota 将「收集方法中依赖的模型数据」,在依赖的模型数据发生变化时会「自动重新执行」对应的组件方法。\n\n示例\n\n```js\nimport { Component } from 'react';\nimport { model, autorun } from 'mota';\nimport DemoModel from './models/demo';\n\n@model(DemoModel)\nexport default Demo extends Component {\n\n @autorun\n test() {\n console.log(this.model.name);\n }\n\n}\n```\n\n上边的示例代码中,组件在被挂载后将会自动执行 `test` 方法,同时 mota 会发现方法中依赖了 `model.name`,那么,在 `model.name` 发生变化时,就会重新执行 `test` 方法。","filename":"markdowns/autorun.md","root":"/Users/Houfeng/my/dev/mota","result":"

自执行函数

\n

Mota 中提供了一个 autorun 函数,可用于装饰 React 组件的成员方法,被装饰的「成员方法」将会在组件挂载后自动执行一次,Mota 将「收集方法中依赖的模型数据」,在依赖的模型数据发生变化时会「自动重新执行」对应的组件方法。

\n

示例

\n
import { Component } from 'react';\nimport { model, autorun } from 'mota';\nimport DemoModel from './models/demo';\n\n@model(DemoModel)\nexport default Demo extends Component {\n\n  @autorun\n  test() {\n    console.log(this.model.name);\n  }\n\n}\n
\n

上边的示例代码中,组件在被挂载后将会自动执行 test 方法,同时 mota 会发现方法中依赖了 model.name,那么,在 model.name 发生变化时,就会重新执行 test 方法。

\n"},{"group":"guide","name":"watch","title":"监听模型变化","index":5,"source":"# 监听模型变化\n\n\nMota 中提供了一个 `watch` 函数,可用于装饰 React 组件的成员方法,`watch` 可以指定要观察的「模型数据」,在模型数据发变化时,就会自动执行「被装饰的组件方法」,`watch` 还可以像 `autorun` 一样自动执行一次,但它和 `autorun` 还是不尽相同,主要有如下区别\n\n- `autorun` 会自动收集依赖,而 `watch` 不会关心组件方法中有何依赖,需要手动指定依赖的模型数据\n- `watch` 默认不会「自动执行」,需显式的指定「立即执行参数为 true」,才会自动执行首次。\n- `autorun` 依赖的是「模型数据」本身,而 `watch` 依赖的是「计算函数」每次的「计算结果」\n \n示例\n\n```js\nimport { Component } from 'react';\nimport { model, autorun } from 'mota';\nimport DemoModel from './models/demo';\n\n@model(DemoModel)\nexport default Demo extends Component {\n\n @watch(model=>model.name)\n test() {\n console.log('name 发生了变化');\n }\n\n}\n```\n\n上边的代码,通过 `watch` 装饰了 `test` 方法,并指定了观察的模型数据 `model.name`,那么每当 `model.name` 发生变\b化时,都会打印 `name 发生了变化`.\n\n`watch` 是否重新执行,取决于 `watch` 的作为第一个参数传给它的「计算函数」的计算结果,每当依赖的模型数据发生变化时 `watch` 都会重执行计算函数,当计算结果有变化时,才会执行被装饰的「组件方法」,示例\n\n```js\nexport default Demo extends Component {\n\n @watch(model=>model.name+model.age)\n test() {\n console.log('name 发生变化');\n }\n\n}\n```\n\n有时,我们希望 `watch` 能首先自动执行一次,那么可通过向第二个参数传一个 `true` 声明这个 `watch` 要自动执行一次。\n\n```js\nexport default Demo extends Component {\n\n @watch(model=>model.name,true)\n test() {\n console.log('name 发生变化');\n }\n\n}\n```\n\n上边的 `test` 方法,将会在「组件挂载之后自动执行」,之后在 `model.name` 发生变化时也将自动重新执行。","filename":"markdowns/watch.md","root":"/Users/Houfeng/my/dev/mota","result":"

监听模型变化

\n

Mota 中提供了一个 watch 函数,可用于装饰 React 组件的成员方法,watch 可以指定要观察的「模型数据」,在模型数据发变化时,就会自动执行「被装饰的组件方法」,watch 还可以像 autorun 一样自动执行一次,但它和 autorun 还是不尽相同,主要有如下区别

\n
    \n
  • autorun 会自动收集依赖,而 watch 不会关心组件方法中有何依赖,需要手动指定依赖的模型数据
  • \n
  • watch 默认不会「自动执行」,需显式的指定「立即执行参数为 true」,才会自动执行首次。
  • \n
  • autorun 依赖的是「模型数据」本身,而 watch 依赖的是「计算函数」每次的「计算结果」
  • \n
\n

示例

\n
import { Component } from 'react';\nimport { model, autorun } from 'mota';\nimport DemoModel from './models/demo';\n\n@model(DemoModel)\nexport default Demo extends Component {\n\n  @watch(model=>model.name)\n  test() {\n    console.log('name 发生了变化');\n  }\n\n}\n
\n

上边的代码,通过 watch 装饰了 test 方法,并指定了观察的模型数据 model.name,那么每当 model.name 发生变\b化时,都会打印 name 发生了变化.

\n

watch 是否重新执行,取决于 watch 的作为第一个参数传给它的「计算函数」的计算结果,每当依赖的模型数据发生变化时 watch 都会重执行计算函数,当计算结果有变化时,才会执行被装饰的「组件方法」,示例

\n
export default Demo extends Component {\n\n  @watch(model=>model.name+model.age)\n  test() {\n    console.log('name 发生变化');\n  }\n\n}\n
\n

有时,我们希望 watch 能首先自动执行一次,那么可通过向第二个参数传一个 true 声明这个 watch 要自动执行一次。

\n
export default Demo extends Component {\n\n  @watch(model=>model.name,true)\n  test() {\n    console.log('name 发生变化');\n  }\n\n}\n
\n

上边的 test 方法,将会在「组件挂载之后自动执行」,之后在 model.name 发生变化时也将自动重新执行。

\n"},{"group":"guide","name":"binding","title":"数据绑定","index":6,"source":"# 数据绑定\n\n\n### 基本用法\n\n不要惊诧,就是「双向绑定」。Mota 不排斥「双向绑定」,使用 Mota 能够实现类似 `ng` 或 `vue` 的绑定效果。还是前边小节中的模型,我们来稍微改动一下组件的代码\n\n```js\nimport { model,binding } from 'mota';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport User from './models/user';\n\n@model(User)\n@binding\nclass App extends React.Component {\n render(){\n const { fullName, firstName, popup } = this.model;\n return
\n

{fullName}

\n

\n \n \n

\n
;\n }\n}\nReactDOM.render(, mountNode);\n```\n\n~~其中的「关键」就是 `@binding`,使用 `@binding` 后~~ (>=1.2.0 的版本将会自动处理,不必显示的启用),组件便具备了「双向绑定」的能力,在 `jsx` 中便可以通过名为 `data-bind` 的自定义 `attribute` 进行绑定了,`data-bind` 的值是一个「绑定表达式字符串」,绑定表达式执行的 `scope` 是 `model` 而不是 `this`,也就是只能与 `模型的成员` 进行绑定。\n\n会有一种情况是当要绑定的数据是一个循环变量时,「绑定表达式」写起会较麻烦也稍显长,比如\n\n```js\n@model(userModel)\n@binding\nclass App extends React.Component {\n render(){\n const { userList } = this.model;\n return
    \n {userList.map((user,index)=>(\n
  • \n \n {user.name}\n
  • \n ))}\n
;\n }\n}\n```\n\n因为「绑定表达式」的执行 `scope` 默认是 `this.model`,以及「表达式是个字符串」,看一下 `userList[${index}].selected` 这并不友好,为此 Mota 还提供了一个名为 `data-scope` 的 `attribute`,通过它能改变要绑定的 `scope`,参考如下示例\n\n```js\n@model(userModel)\n@binding\nclass App extends React.Component {\n render(){\n const { userList } = this.model;\n return
    \n {userList.map(user=>(\n
  • \n \n {user.name}\n
  • \n ))}\n
;\n }\n}\n```\n\n通过 `data-scope` 将 `input` 的绑定上下文对象声明为当前循环变量 `user`,这样就可以用 `data-bind` 直接绑定到对应 `user` 的属性上了。\n\n### 原生表单控件\n\n所有的原生表单控件,比如「普通 input、checkbox、radio、textarea、select」都可以直接进行绑定。其中,「普通 input 和 textrea」比较简单,将一个字符类型的模型数据与控件绑定就行了,而对于「checkbox 和 radio」 有多种不同的绑定形式。\n\n将「checkbox 或 radio」绑定到一个 `boolean` 值,此时会将 checkbox 或 radio 的 `checked` 属性和模型数据建立绑定,`checked` 反应了 `boolean` 变量的值,参考如下示例\n\n```js\n@model({ selected:false })\n@binding\nclass App extends React.Component {\n render(){\n return
\n \n \n
;\n }\n}\n```\n\n如上示例通过 `this.model.selected` 就能拿到当前 checkbox 或 radio 的选中状态。\n\n\n将 checkbox 绑定到一个「数组」,通常是多个 checkbox 绑定同一个数组变量上,此时和数据建立绑定的是 checkbox 的 value,数据中会包含当前选中的 checkbox 的 value,如下\n\n```js\n@model({ selected:[] })\n@binding\nclass App extends React.Component {\n render(){\n return
\n \n \n
;\n }\n}\n```\n\n如上示例,通过 `this.selected` 就能知道当前有哪些 checkbox 被选中了,并拿到所有选中的 value\n\n\n将多个 radio 绑定我到一个「字符类型的变量」,此时和数据建立绑定的是 raido 的 value,因为 radio 是单选的,所以对应的数据是当前选中的 radio 的 value,如下\n\n```js\n@model({ selected:'' })\n@binding\nclass App extends React.Component {\n render(){\n return
\n \n \n
;\n }\n}\n```\n通过 `this.model.selected` 就能拿到当前选中的 radio 的 `value`\n\n\n### 自定义组件\n\n但是对于一些「组件库」中的「部分表单组件」不能直接绑定,因为 Mota 并没有什么依据可以判断这是一个什么组件。所以 Mota 提供了一个名为 `bindable` 的函数,用将任意组件包装成「可绑定组件」。\n\nbindable 有两种个参数,用于分别指定「原始组件」和「包装选项」\n\n```js\n//可以这样\nconst MyComponent = bindable(opts, Component);\n//也可这样\nconst MyCompoent = bindable(Component, opts);\n```\n\n关建是 `bindable` 需要的 `opts`,通过 `opts` 我们可以造诉 Mota 如何绑定这个组件,`opts` 中有两个重要的成员,它的结构如下\n\n```js\n{\n value: ['value 对应的属性名'],\n event: ['value 改变的事件名']\n}\n```\n\n所以,我们可以这样包装一个自定义文本输入框\n\n```js\nconst MyInput = bindable(Input,{\n value: ['value'],\n event: ['onChange']\n});\n```\n\n对这种「value 不需要转换,`change` 能通过 `event` 或 `event.target.value` 拿到值」的组件,通过如上的代码就能完成包装了。\n\n对于有 `onChange` 和 `value` 的这类文本输入组件,因为 opts 的默认值就是\n\n```js\n{\n value: ['value'],\n event: ['onChange']\n}\n```\n\n所以,可以更简单,这样就行,\n```js\nconst MyInput = bindable(Input);\n```\n\n而对于 checkbox 和 radio 来讲,如上边讲到的它「根据不同的数据型有不同的绑定形式」,这就需要指定处理函数了,如下\n\n```js\nconst radioOpts = {\n prop: ['checked', (ctx, props) => {\n const mValue = ctx.getValue();\n if (typeof mValue == 'boolean') {\n return !!mValue;\n } else {\n return mValue == props.value;\n }\n }],\n event: ['onChange', (ctx, event) => {\n const { value, checked } = event.target;\n const mValue = ctx.getValue();\n if (typeof mValue == 'boolean') {\n ctx.setValue(checked);\n } else if (checked) ctx.setValue(value);\n }]\n};\n```\n\n通过 `prop` 的第二个值,能指定「属性处理函数」,`event` 的第二个值能指取「事件处理函数」,处理函数的 `ctx` 是个特殊的对象 \n\n- `ctx.getValue` 能获取「当前绑定的模型数据」\n- `ctx.setValue` 能设置「当前绑定的模型数据」\n\n上边是 `radio` 的配置,首先,在「属性处理函数」中通过绑定的「模型数据的类型」决定 `checked` 最终的状态是什么,并在函数中返回。再次,在「事件处理函数」中通过绑定的「模型数据的类型」决定将什么值回写到模型中。\n\n通过「属性处理函数」和「事件处理函数」几乎就能将任意的自定义组件转换为「可绑定组件」了。\n\n另外,对于常见的 `CheckBox` 和 `Radio` 类型的组件 Mota 也提供了内建的 `opts` 配置支持,如果一个自定义组件拥有和「原生 checkbox 一致的属性和事件模型」,那边可以直接用简单的方式去包装,如下\n\n```js\nconst MyCheckBox = bindable('checkbox',CheckBox);\nconst MyRadio = bindable('radio',Radio);\n```\n\n好了,关于绑定就这些了。","filename":"markdowns/binding.md","root":"/Users/Houfeng/my/dev/mota","result":"

数据绑定

\n

基本用法

\n

不要惊诧,就是「双向绑定」。Mota 不排斥「双向绑定」,使用 Mota 能够实现类似 ngvue 的绑定效果。还是前边小节中的模型,我们来稍微改动一下组件的代码

\n
import { model,binding } from 'mota';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport User from './models/user';\n\n@model(User)\n@binding\nclass App extends React.Component {\n  render(){\n    const { fullName, firstName, popup } = this.model;\n    return <div>\n      <p>{fullName}</p>\n      <p>\n        <input data-bind=\"firstName\"/>\n        <button onClick={popup}> click me </button>\n      </p>\n    </div>;\n  }\n}\nReactDOM.render(<App/>, mountNode);\n
\n

其中的「关键」就是 @binding,使用 @binding (>=1.2.0 的版本将会自动处理,不必显示的启用),组件便具备了「双向绑定」的能力,在 jsx 中便可以通过名为 data-bind 的自定义 attribute 进行绑定了,data-bind 的值是一个「绑定表达式字符串」,绑定表达式执行的 scopemodel 而不是 this,也就是只能与 模型的成员 进行绑定。

\n

会有一种情况是当要绑定的数据是一个循环变量时,「绑定表达式」写起会较麻烦也稍显长,比如

\n
@model(userModel)\n@binding\nclass App extends React.Component {\n  render(){\n    const { userList } = this.model;\n    return <ul>\n     {userList.map((user,index)=>(\n       <li key={user.id}>\n         <input type=\"checkobx\" data-bind={`userList[${index}].selected`}>\n         {user.name}\n       </li>\n     ))}\n    </ul>;\n  }\n}\n
\n

因为「绑定表达式」的执行 scope 默认是 this.model,以及「表达式是个字符串」,看一下 userList[${index}].selected 这并不友好,为此 Mota 还提供了一个名为 data-scopeattribute,通过它能改变要绑定的 scope,参考如下示例

\n
@model(userModel)\n@binding\nclass App extends React.Component {\n  render(){\n    const { userList } = this.model;\n    return <ul>\n     {userList.map(user=>(\n       <li key={user.id}>\n         <input type=\"checkobx\" data-scope={user} data-bind=\"selected\">\n         {user.name}\n       </li>\n     ))}\n    </ul>;\n  }\n}\n
\n

通过 data-scopeinput 的绑定上下文对象声明为当前循环变量 user,这样就可以用 data-bind 直接绑定到对应 user 的属性上了。

\n

原生表单控件

\n

所有的原生表单控件,比如「普通 input、checkbox、radio、textarea、select」都可以直接进行绑定。其中,「普通 input 和 textrea」比较简单,将一个字符类型的模型数据与控件绑定就行了,而对于「checkbox 和 radio」 有多种不同的绑定形式。

\n

将「checkbox 或 radio」绑定到一个 boolean 值,此时会将 checkbox 或 radio 的 checked 属性和模型数据建立绑定,checked 反应了 boolean 变量的值,参考如下示例

\n
@model({ selected:false })\n@binding\nclass App extends React.Component {\n  render(){\n    return <div>\n      <input type=\"checkbox\" data-bind=\"selected\"/>\n      <input type=\"radio\" data-bind=\"selected\"/>\n    </div>;\n  }\n}\n
\n

如上示例通过 this.model.selected 就能拿到当前 checkbox 或 radio 的选中状态。

\n

将 checkbox 绑定到一个「数组」,通常是多个 checkbox 绑定同一个数组变量上,此时和数据建立绑定的是 checkbox 的 value,数据中会包含当前选中的 checkbox 的 value,如下

\n
@model({ selected:[] })\n@binding\nclass App extends React.Component {\n  render(){\n    return <div>\n      <input type=\"checkbox\" data-bind=\"selected\" value=\"1\"/>\n      <input type=\"checkbox\" data-bind=\"selected\" value=\"2\"/>\n    </div>;\n  }\n}\n
\n

如上示例,通过 this.selected 就能知道当前有哪些 checkbox 被选中了,并拿到所有选中的 value

\n

将多个 radio 绑定我到一个「字符类型的变量」,此时和数据建立绑定的是 raido 的 value,因为 radio 是单选的,所以对应的数据是当前选中的 radio 的 value,如下

\n
@model({ selected:'' })\n@binding\nclass App extends React.Component {\n  render(){\n    return <div>\n      <input type=\"radio\" data-bind=\"selected\" value=\"1\"/>\n      <input type=\"radio\" data-bind=\"selected\" value=\"2\"/>\n    </div>;\n  }\n}\n
\n

通过 this.model.selected 就能拿到当前选中的 radio 的 value

\n

自定义组件

\n

但是对于一些「组件库」中的「部分表单组件」不能直接绑定,因为 Mota 并没有什么依据可以判断这是一个什么组件。所以 Mota 提供了一个名为 bindable 的函数,用将任意组件包装成「可绑定组件」。

\n

bindable 有两种个参数,用于分别指定「原始组件」和「包装选项」

\n
//可以这样\nconst MyComponent = bindable(opts, Component);\n//也可这样\nconst MyCompoent = bindable(Component, opts);\n
\n

关建是 bindable 需要的 opts,通过 opts 我们可以造诉 Mota 如何绑定这个组件,opts 中有两个重要的成员,它的结构如下

\n
{\n  value: ['value 对应的属性名'],\n  event: ['value 改变的事件名']\n}\n
\n

所以,我们可以这样包装一个自定义文本输入框

\n
const MyInput = bindable(Input,{\n  value: ['value'],\n  event: ['onChange']\n});\n
\n

对这种「value 不需要转换,change 能通过 eventevent.target.value 拿到值」的组件,通过如上的代码就能完成包装了。

\n

对于有 onChangevalue 的这类文本输入组件,因为 opts 的默认值就是

\n
{\n  value: ['value'],\n  event: ['onChange']\n}\n
\n

所以,可以更简单,这样就行,

\n
const MyInput = bindable(Input);\n
\n

而对于 checkbox 和 radio 来讲,如上边讲到的它「根据不同的数据型有不同的绑定形式」,这就需要指定处理函数了,如下

\n
const radioOpts = {\n  prop: ['checked', (ctx, props) => {\n    const mValue = ctx.getValue();\n    if (typeof mValue == 'boolean') {\n      return !!mValue;\n    } else {\n      return mValue == props.value;\n    }\n  }],\n  event: ['onChange', (ctx, event) => {\n    const { value, checked } = event.target;\n    const mValue = ctx.getValue();\n    if (typeof mValue == 'boolean') {\n      ctx.setValue(checked);\n    } else if (checked) ctx.setValue(value);\n  }]\n};\n
\n

通过 prop 的第二个值,能指定「属性处理函数」,event 的第二个值能指取「事件处理函数」,处理函数的 ctx 是个特殊的对象

\n
    \n
  • ctx.getValue 能获取「当前绑定的模型数据」
  • \n
  • ctx.setValue 能设置「当前绑定的模型数据」
  • \n
\n

上边是 radio 的配置,首先,在「属性处理函数」中通过绑定的「模型数据的类型」决定 checked 最终的状态是什么,并在函数中返回。再次,在「事件处理函数」中通过绑定的「模型数据的类型」决定将什么值回写到模型中。

\n

通过「属性处理函数」和「事件处理函数」几乎就能将任意的自定义组件转换为「可绑定组件」了。

\n

另外,对于常见的 CheckBoxRadio 类型的组件 Mota 也提供了内建的 opts 配置支持,如果一个自定义组件拥有和「原生 checkbox 一致的属性和事件模型」,那边可以直接用简单的方式去包装,如下

\n
const MyCheckBox = bindable('checkbox',CheckBox);\nconst MyRadio = bindable('radio',Radio);\n
\n

好了,关于绑定就这些了。

\n"},{"group":"guide","name":"use_model","title":"使用 Hook API","index":7,"source":"# 使用 Hook API\n\n### 简单介绍\n在 React 发布包含 `Hooks` 的 `alpah` 版后,Mota 也在 `next` 版本中新增支持了 Hook 风格的 API,随着 React `v16.8` 版本的发布带来了稳定版的 `Hooks` 支持。\n\n目前,Mota \b已经在稳定版中,提供了 `Hook API` 的支持,利用 React 的 `Hooks` 可以让你在不编写类的情况下使用 `state` 和 React 的其他功能。而使用 Mota 极少的 `Hook API` 将给应用带来 Hook 风格可响应的全局状态管理支持。\n\n### 基本用法\n\n```js\nimport React from 'react';\nimport { render } from 'react-dom';\n\nfunction App(){\n //通过 useModel 拿到一个可响应的 model\n const model = useModel({ count:0 });\n //定义累加按钮事件\n const onClick = useCallback(()=>model.count++);\n //--\n return
\n
{model.count}
\n \n
;\n}\n\nrender(, document.getElementId('root'));\n```\n\n仅有一个新增 API `useModel`,通过 `useModel` 可在一个 `Function Component` 中使用 `model`,如同在 `Class Component` 中的 `@model`,此时的 `model` 依然是可响应的,执行时会对组件进行「依赖收集」,当操作 `model` 的成员时(比如 `model.count=1` 的赋值操作),Mota 会自动发现组件依赖的数据发生了变化并通知组件进行更新。\n\n### 进阶说明\n\n在基本用法中提到了一个关键词「依赖收集」,通过 `useModel` 拿到了可响应的 `model`,默认情况下只有被组件依赖的模型数据发生了变化组件才会更新,比如下边的示例代码中,只有在 `model.a` 发生变化时,组件才会重新渲染。\n\n\n```js\nfunction Demo(){\n const model = useModel({ a:0, b:1 });\n ...\n return
{model.a}
\n}\n```\n\n实际开发过程中有时「组件依赖了模型上的某个对象,但希望这个对象的子成员发生变化时,组件也要重新渲染」\n\n```js\nfunction Demo(){\n const { info } = useModel({ info: { name: 'test'} });\n ...\n return \n}\n```\n\n因为对于 `Demo` 来说只依赖了 `info`,而 `info` 的引用是一直没有变化的,所以在 `info.name` 发生变化时 `Demo` 并不会重新渲染。那这样 `Info` 组件会一直显示旧的数据。\n\n如何处理这个问题?\n\n一个方法是让 `Info` 也通过 `useModel` 有自已的 `model`,那 `Info` 的依赖会被独立解析,比如\n\n```js\nfunction Info(props){\n const info = useModel(props.data);\n return
{info.name}
\n}\n```\n\n这个虽然 `Demo` 不会重新渲染,但 Mota 会发现 `Info` 依赖了 `info.name`,但发现数据变化时,`Info` 会自动更新。\n\n还有一个方法是,在更新 `info.name` 时换一个写法\n\n```js\n//通常的直接给 name 赋值\nmodel.info.name = 'test';\n//如下的给 info 赋值的写法,会让 Demo 发现 info 的变化\nmodel.info = {...model.info, name: 'test'};\n```\n\n除了上述的两个方法,还有一个方法就是通过 `useModel` 的第二个参数显示的声明额外的依赖,第二个参数可是一个数组,数组中是显式声明的依赖,格式为子成员的路径,如下\n\n```js\nfunction Demo(){\n const { info } = useModel({ \n info: { name: 'test'} \n }, ['info.name']);\n ...\n return \n}\n```\n\n但有时时模型数据是一个数组,我们无法直接指定每个子元素的路径,这时第二个参数还可以是一个函数,函数的参数是「变化的模型数据的路径」,可参函数中返回 `boolean` 值决定是否需要更新组件,如下\n\n```js\nfunction Demo(){\n const { info } = useModel({ \n info: [{name: 'test1'}] \n }, p=> p.endsWith('.name'));\n ...\n return \n}\n```\n\n示例中通过用 `endsWith` 路径是不是 `*.name` 结尾的决定要不要更新,当然也可以用更多的判断方法决定要不要更新。","filename":"markdowns/use_model.md","root":"/Users/Houfeng/my/dev/mota","result":"

使用 Hook API

\n

简单介绍

\n

在 React 发布包含 Hooksalpah 版后,Mota 也在 next 版本中新增支持了 Hook 风格的 API,随着 React v16.8 版本的发布带来了稳定版的 Hooks 支持。

\n

目前,Mota \b已经在稳定版中,提供了 Hook API 的支持,利用 React 的 Hooks 可以让你在不编写类的情况下使用 state 和 React 的其他功能。而使用 Mota 极少的 Hook API 将给应用带来 Hook 风格可响应的全局状态管理支持。

\n

基本用法

\n
import React from 'react';\nimport { render } from 'react-dom';\n\nfunction App(){\n  //通过 useModel 拿到一个可响应的 model\n  const model = useModel({ count:0 });\n  //定义累加按钮事件\n  const onClick = useCallback(()=>model.count++);\n  //--\n  return <div>\n    <div>{model.count}</div>\n    <button onClick={onClick}>click me</button>\n  </div>;\n}\n\nrender(<App/>, document.getElementId('root'));\n
\n

仅有一个新增 API useModel,通过 useModel 可在一个 Function Component 中使用 model,如同在 Class Component 中的 @model,此时的 model 依然是可响应的,执行时会对组件进行「依赖收集」,当操作 model 的成员时(比如 model.count=1 的赋值操作),Mota 会自动发现组件依赖的数据发生了变化并通知组件进行更新。

\n

进阶说明

\n

在基本用法中提到了一个关键词「依赖收集」,通过 useModel 拿到了可响应的 model,默认情况下只有被组件依赖的模型数据发生了变化组件才会更新,比如下边的示例代码中,只有在 model.a 发生变化时,组件才会重新渲染。

\n
function Demo(){\n  const model = useModel({ a:0, b:1 });\n  ...\n  return <div>{model.a}</div>\n}\n
\n

实际开发过程中有时「组件依赖了模型上的某个对象,但希望这个对象的子成员发生变化时,组件也要重新渲染」

\n
function Demo(){\n  const { info } = useModel({ info: { name: 'test'} });\n  ...\n  return <Info data={info}/>\n}\n
\n

因为对于 Demo 来说只依赖了 info,而 info 的引用是一直没有变化的,所以在 info.name 发生变化时 Demo 并不会重新渲染。那这样 Info 组件会一直显示旧的数据。

\n

如何处理这个问题?

\n

一个方法是让 Info 也通过 useModel 有自已的 model,那 Info 的依赖会被独立解析,比如

\n
function Info(props){\n  const info = useModel(props.data);\n  return <div>{info.name}</div>\n}\n
\n

这个虽然 Demo 不会重新渲染,但 Mota 会发现 Info 依赖了 info.name,但发现数据变化时,Info 会自动更新。

\n

还有一个方法是,在更新 info.name 时换一个写法

\n
//通常的直接给 name 赋值\nmodel.info.name = 'test';\n//如下的给 info 赋值的写法,会让 Demo 发现 info 的变化\nmodel.info = {...model.info, name: 'test'};\n
\n

除了上述的两个方法,还有一个方法就是通过 useModel 的第二个参数显示的声明额外的依赖,第二个参数可是一个数组,数组中是显式声明的依赖,格式为子成员的路径,如下

\n
function Demo(){\n  const { info } = useModel({ \n    info: { name: 'test'} \n  }, ['info.name']);\n  ...\n  return <Info data={info}/>\n}\n
\n

但有时时模型数据是一个数组,我们无法直接指定每个子元素的路径,这时第二个参数还可以是一个函数,函数的参数是「变化的模型数据的路径」,可参函数中返回 boolean 值决定是否需要更新组件,如下

\n
function Demo(){\n  const { info } = useModel({ \n    info: [{name: 'test1'}] \n  }, p=> p.endsWith('.name'));\n  ...\n  return <Info data={info}/>\n}\n
\n

示例中通过用 endsWith 路径是不是 *.name 结尾的决定要不要更新,当然也可以用更多的判断方法决定要不要更新。

\n"},{"group":"guide","name":"hook_model","title":"面向 Hook 的模型","index":8,"source":"# 面向 Hook 的模型\n\n### 一些说明\n\n针对 Mota 的 `useModel` 的模型本质上和针对 `@model` 的模型并无本质区别,用以往的风格编写的「模型类」或「单例的普通 Object」,除了能用于 `@model` 也是能用于 `useModel` 的。\n\n既然用了 `Hook API`,是不是可在编写模型也避免再写「类」或「单例的 Object」?为此 `useModel` 还提供了用 `ES Module` 作为模型的支持,如用其他风格的模型一样,`ES Module` 风格的模型也不需要引用额外的依赖,仅用 `ES` 原生语法即可。\n\n### 用 ES Module 编写模型\n\n通过 `ES Module` 直接作为 `model` 的优点时「简单、直接」,同时由于为了保证「可响应」不被破坏,需要一点点约束,就是「必须导出一个 state 对象」,如下\n\n```js\nexport const state = {\n name: 'test'\n}\n\nexport function setName(name){\n state.name = name\n}\n```\n\n上边的代码是一个最简单的可当作 `model` 的 `ES Module`,一个包含「state 和一组件函数」的 `ES Module` 就是一个可被 `useModel` 使用的 `model`,参考如下代码\n\n```js\nimport * as demo from './models/demo';\n\nfunction App(){\n const { name } = useModel(demo);\n return
{name}
;\n}\n```\n\n注意:必须 export 一个 state 的约束只针对于 `ES Module`,用 `class` 或 `object` 的风格编写的 `model` 无任何约束。","filename":"markdowns/hook_model.md","root":"/Users/Houfeng/my/dev/mota","result":"

面向 Hook 的模型

\n

一些说明

\n

针对 Mota 的 useModel 的模型本质上和针对 @model 的模型并无本质区别,用以往的风格编写的「模型类」或「单例的普通 Object」,除了能用于 @model 也是能用于 useModel 的。

\n

既然用了 Hook API,是不是可在编写模型也避免再写「类」或「单例的 Object」?为此 useModel 还提供了用 ES Module 作为模型的支持,如用其他风格的模型一样,ES Module 风格的模型也不需要引用额外的依赖,仅用 ES 原生语法即可。

\n

用 ES Module 编写模型

\n

通过 ES Module 直接作为 model 的优点时「简单、直接」,同时由于为了保证「可响应」不被破坏,需要一点点约束,就是「必须导出一个 state 对象」,如下

\n
export const state = {\n  name: 'test'\n}\n\nexport function setName(name){\n  state.name = name\n}\n
\n

上边的代码是一个最简单的可当作 modelES Module,一个包含「state 和一组件函数」的 ES Module 就是一个可被 useModel 使用的 model,参考如下代码

\n
import * as demo from './models/demo';\n\nfunction App(){\n  const { name } = useModel(demo);\n  return <div>{name}</div>;\n}\n
\n

注意:必须 export 一个 state 的约束只针对于 ES Module,用 classobject 的风格编写的 model 无任何约束。

\n"},{"group":"guide","name":"typescript","title":"在 TS 中使用","index":8,"source":"# 在 TS 中使用 Mota\n\nMota 的 `Package` 中自带了「类型定义文件」,无论使用 `Class + Decorator` 风格的 API 或使用 `Hooks` 风格的 API,都能愉快的使用 TypeScript,下边有两个小提示。\n\n### 提示一:使用 @model \n\n在通过 `@model` 为组件关联了一个 `model` 后,需要声明 `this.model` 的类型,参考如下代码\n\n```js\nimport * as React from \"react\";\nimport { model, watch, mapping } from \"mota\";\nimport { DemoModel } from \"./DemoModel\";\n\n@model(DemoModel)\nexport class Demo extends React.Component {\n\n //需要声明 model 的类型\n model: DemoModel;\n\n render() {\n //便能让 this.model 具备完整的类型提示了\n const { name } = this.model;\n return
\n {name} \n
;\n }\n}\n```\n\n### 提示一:使用 useModel\n\n完整的 `useModel` 的定义为 `useModel(model:T)=>T`,但使用 `useModel` 时一般不需做特别的声明,默认情况下 `TS` 就能完成类型推导\n\n```js\nimport * as React from \"react\";\nimport { useModel } from \"mota\";\nimport { DemoModel } from \"./DemoModel\";\n\nexport function Demo {\n const { name } = useModel(DemoModel);\n return
\n {name} \n
;\n}\n```","filename":"markdowns/typescript.md","root":"/Users/Houfeng/my/dev/mota","result":"

在 TS 中使用 Mota

\n

Mota 的 Package 中自带了「类型定义文件」,无论使用 Class + Decorator 风格的 API 或使用 Hooks 风格的 API,都能愉快的使用 TypeScript,下边有两个小提示。

\n

提示一:使用 @model

\n

在通过 @model 为组件关联了一个 model 后,需要声明 this.model 的类型,参考如下代码

\n
import * as React from \"react\";\nimport { model, watch, mapping } from \"mota\";\nimport { DemoModel } from \"./DemoModel\";\n\n@model(DemoModel)\nexport class Demo extends React.Component {\n\n  //需要声明 model 的类型\n  model: DemoModel;\n\n  render() {\n    //便能让 this.model 具备完整的类型提示了\n    const { name } = this.model;\n    return <div className=\"demo\">  \n      {name}  \n    </div>;\n  }\n}\n
\n

提示一:使用 useModel

\n

完整的 useModel 的定义为 useModel<T>(model:T)=>T,但使用 useModel 时一般不需做特别的声明,默认情况下 TS 就能完成类型推导

\n
import * as React from \"react\";\nimport { useModel } from \"mota\";\nimport { DemoModel } from \"./DemoModel\";\n\nexport function Demo {\n  const { name } = useModel(DemoModel);\n  return <div className=\"demo\">  \n    {name}  \n  </div>;\n}\n
\n"}]}],"links":[{"text":"状态管理 (Mota)","url":"//houfeng.net/mota/"},{"text":"数据验证 (Validation)","url":"//houfeng.net/mota-validation/"},{"text":"表单组件 (Form)","url":"//houfeng.net/mota-form/"},{"text":"源码 (GitHub)","url":"//github.com/Houfeng/mota"}]}],"plugins":[{"name":"doczilla-place","options":{}},{"name":"doczilla-include","options":{}},{"name":"doczilla-container","options":{}},{"name":"doczilla-highlight","options":{}},{"name":"doczilla-details","options":{}},{"name":"doczilla-card","options":{}},{"name":"doczilla-anchor","options":{}}],"mode":"static","baseUri":"","extname":".html"}; \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 47ba01e..b251c3c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,16 +1,24 @@ - + - - + Mota + + + + + + +
- + + + \ No newline at end of file diff --git a/docs/logo.jpg b/docs/logo.jpg new file mode 100644 index 0000000..d24f88a Binary files /dev/null and b/docs/logo.jpg differ diff --git a/docs/zh/guide/autorun.html b/docs/zh/guide/autorun.html new file mode 100644 index 0000000..5ad6f60 --- /dev/null +++ b/docs/zh/guide/autorun.html @@ -0,0 +1,24 @@ + + + + + + + + 自执行函数 - Mota + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/docs/zh/guide/binding.html b/docs/zh/guide/binding.html new file mode 100644 index 0000000..63f7e18 --- /dev/null +++ b/docs/zh/guide/binding.html @@ -0,0 +1,24 @@ + + + + + + + + 数据绑定 - Mota + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/docs/zh/guide/hook_model.html b/docs/zh/guide/hook_model.html new file mode 100644 index 0000000..0aff211 --- /dev/null +++ b/docs/zh/guide/hook_model.html @@ -0,0 +1,24 @@ + + + + + + + + 面向 Hook 的模型 - Mota + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/docs/zh/guide/mapping.html b/docs/zh/guide/mapping.html new file mode 100644 index 0000000..b6d425c --- /dev/null +++ b/docs/zh/guide/mapping.html @@ -0,0 +1,24 @@ + + + + + + + + 属性映射 - Mota + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/docs/zh/guide/model.html b/docs/zh/guide/model.html new file mode 100644 index 0000000..da7dae8 --- /dev/null +++ b/docs/zh/guide/model.html @@ -0,0 +1,24 @@ + + + + + + + + 编写业务模型 - Mota + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/docs/zh/guide/quick.html b/docs/zh/guide/quick.html new file mode 100644 index 0000000..04e8747 --- /dev/null +++ b/docs/zh/guide/quick.html @@ -0,0 +1,24 @@ + + + + + + + + 快速开始 - Mota + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/docs/zh/guide/typescript.html b/docs/zh/guide/typescript.html new file mode 100644 index 0000000..710f790 --- /dev/null +++ b/docs/zh/guide/typescript.html @@ -0,0 +1,24 @@ + + + + + + + + 在 TS 中使用 - Mota + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/docs/zh/guide/use_model.html b/docs/zh/guide/use_model.html new file mode 100644 index 0000000..65ac113 --- /dev/null +++ b/docs/zh/guide/use_model.html @@ -0,0 +1,24 @@ + + + + + + + + 使用 Hook API - Mota + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/docs/zh/guide/watch.html b/docs/zh/guide/watch.html new file mode 100644 index 0000000..8ce19f5 --- /dev/null +++ b/docs/zh/guide/watch.html @@ -0,0 +1,24 @@ + + + + + + + + 监听模型变化 - Mota + + + + + + + + + +
+ + + + + + \ No newline at end of file diff --git a/example/index.js b/example/index.js index a0476c9..3576313 100644 --- a/example/index.js +++ b/example/index.js @@ -2,13 +2,8 @@ import React from 'react'; import ReactDOM from 'react-dom'; import { model } from '../src'; import { useModel } from '../src'; -import { HashRouter as Router, Route, Link } from "react-router-dom"; -import { A } from "./components/A"; -import { B } from "./components/B"; -import { D } from "./components/D"; -import './assets/common.less'; -import { Info } from './model/info'; import { binding } from '../src/binding'; +import './assets/common.less'; function App() { const model = useModel(model); @@ -17,14 +12,14 @@ function App() { ; } -@model(Info) +@model({ name: 'test' }) @binding class Test extends React.PureComponent { - onClick = () => { - this.model.name = '1111'; + static modeInitialize(model, props) { + console.log('modeInitialize', model, props); } render() { - return
+ return
{this.model.name}
diff --git a/package-lock.json b/package-lock.json index 48d562b..613018e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mota", - "version": "3.3.2", + "version": "3.5.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -14,12 +14,12 @@ } }, "@babel/generator": { - "version": "7.5.5", - "resolved": "https://registry.npm.taobao.org/@babel/generator/download/@babel/generator-7.5.5.tgz", - "integrity": "sha1-hzp/k2o8iUkbQ1NtEiRbYmZk488=", + "version": "7.6.0", + "resolved": "https://registry.npm.taobao.org/@babel/generator/download/@babel/generator-7.6.0.tgz", + "integrity": "sha1-4sIe+/0yk62BmiNZtEjwAr/f2lY=", "dev": true, "requires": { - "@babel/types": "^7.5.5", + "@babel/types": "^7.6.0", "jsesc": "^2.5.1", "lodash": "^4.17.13", "source-map": "^0.5.0", @@ -83,43 +83,43 @@ } }, "@babel/parser": { - "version": "7.5.5", - "resolved": "https://registry.npm.taobao.org/@babel/parser/download/@babel/parser-7.5.5.tgz?cache=0&sync_timestamp=1563398895618&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fparser%2Fdownload%2F%40babel%2Fparser-7.5.5.tgz", - "integrity": "sha1-AvB3rIgX099Kgy71neZ1Zeccyks=", + "version": "7.6.0", + "resolved": "https://registry.npm.taobao.org/@babel/parser/download/@babel/parser-7.6.0.tgz?cache=0&sync_timestamp=1568409138838&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fparser%2Fdownload%2F%40babel%2Fparser-7.6.0.tgz", + "integrity": "sha1-PgXQZHQyqDJsso0N4DiVrlpX85s=", "dev": true }, "@babel/runtime": { - "version": "7.5.5", - "resolved": "https://registry.npm.taobao.org/@babel/runtime/download/@babel/runtime-7.5.5.tgz", - "integrity": "sha1-dPulbTXvvspEQJHHhQzNSU/S8TI=", + "version": "7.6.0", + "resolved": "https://registry.npm.taobao.org/@babel/runtime/download/@babel/runtime-7.6.0.tgz", + "integrity": "sha1-T8HWQqn9Apl1Totd5ixjHPVWggU=", "dev": true, "requires": { "regenerator-runtime": "^0.13.2" } }, "@babel/template": { - "version": "7.4.4", - "resolved": "https://registry.npm.taobao.org/@babel/template/download/@babel/template-7.4.4.tgz", - "integrity": "sha1-9LiNEiVomgj1vDoXSDVFvp5O0jc=", + "version": "7.6.0", + "resolved": "https://registry.npm.taobao.org/@babel/template/download/@babel/template-7.6.0.tgz", + "integrity": "sha1-fwFZx/UBIjDa1kzKQuyb21yVNuY=", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.4.4", - "@babel/types": "^7.4.4" + "@babel/parser": "^7.6.0", + "@babel/types": "^7.6.0" } }, "@babel/traverse": { - "version": "7.5.5", - "resolved": "https://registry.npm.taobao.org/@babel/traverse/download/@babel/traverse-7.5.5.tgz", - "integrity": "sha1-9mT482jtMpiM1kjan3LVynDxZbs=", + "version": "7.6.0", + "resolved": "https://registry.npm.taobao.org/@babel/traverse/download/@babel/traverse-7.6.0.tgz", + "integrity": "sha1-OJOR1RD3m+fOLd1nF75m0/7UtRY=", "dev": true, "requires": { "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.5.5", + "@babel/generator": "^7.6.0", "@babel/helper-function-name": "^7.1.0", "@babel/helper-split-export-declaration": "^7.4.4", - "@babel/parser": "^7.5.5", - "@babel/types": "^7.5.5", + "@babel/parser": "^7.6.0", + "@babel/types": "^7.6.0", "debug": "^4.1.0", "globals": "^11.1.0", "lodash": "^4.17.13" @@ -149,9 +149,9 @@ } }, "@babel/types": { - "version": "7.5.5", - "resolved": "https://registry.npm.taobao.org/@babel/types/download/@babel/types-7.5.5.tgz", - "integrity": "sha1-l7n3KOGCeFkJqkq1YmTwkKAo0Yo=", + "version": "7.6.1", + "resolved": "https://registry.npm.taobao.org/@babel/types/download/@babel/types-7.6.1.tgz?cache=0&sync_timestamp=1567831650694&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Ftypes%2Fdownload%2F%40babel%2Ftypes-7.6.1.tgz", + "integrity": "sha1-U6vzMIrdOsKiiE1TkVHFfEs6xkg=", "dev": true, "requires": { "esutils": "^2.0.2", @@ -178,52 +178,52 @@ } }, "@nodelib/fs.scandir": { - "version": "2.1.1", - "resolved": "https://registry.npm.taobao.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.1.tgz", - "integrity": "sha1-f6j+1lSTnho5dT0oa0i0g20A4Os=", + "version": "2.1.2", + "resolved": "https://registry.npm.taobao.org/@nodelib/fs.scandir/download/@nodelib/fs.scandir-2.1.2.tgz", + "integrity": "sha1-H5gc1bg+hc/es4b8aT1LqrOS+lQ=", "dev": true, "requires": { - "@nodelib/fs.stat": "2.0.1", + "@nodelib/fs.stat": "2.0.2", "run-parallel": "^1.1.9" } }, "@nodelib/fs.stat": { - "version": "2.0.1", - "resolved": "https://registry.npm.taobao.org/@nodelib/fs.stat/download/@nodelib/fs.stat-2.0.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40nodelib%2Ffs.stat%2Fdownload%2F%40nodelib%2Ffs.stat-2.0.1.tgz", - "integrity": "sha1-gU9xsRZzkM/Lams9nN6wlRoZLBQ=", + "version": "2.0.2", + "resolved": "https://registry.npm.taobao.org/@nodelib/fs.stat/download/@nodelib/fs.stat-2.0.2.tgz", + "integrity": "sha1-J2KuqP546iVoYBgty1LWHuS4/aY=", "dev": true }, "@nodelib/fs.walk": { - "version": "1.2.2", - "resolved": "https://registry.npm.taobao.org/@nodelib/fs.walk/download/@nodelib/fs.walk-1.2.2.tgz", - "integrity": "sha1-amRQxeFwEqvYFFDrdJSaTZcNKAc=", + "version": "1.2.3", + "resolved": "https://registry.npm.taobao.org/@nodelib/fs.walk/download/@nodelib/fs.walk-1.2.3.tgz", + "integrity": "sha1-pVXcJWrK8AxisNspUpAo3U1MsUE=", "dev": true, "requires": { - "@nodelib/fs.scandir": "2.1.1", + "@nodelib/fs.scandir": "2.1.2", "fastq": "^1.6.0" } }, "@types/chai": { - "version": "4.2.0", - "resolved": "https://registry.npm.taobao.org/@types/chai/download/@types/chai-4.2.0.tgz", - "integrity": "sha1-JHgmACFAjewywSOnytNBS+uBGgc=", + "version": "4.2.3", + "resolved": "https://registry.npm.taobao.org/@types/chai/download/@types/chai-4.2.3.tgz", + "integrity": "sha1-QZR3o9UgK60Z4Ux4eUCmHcnqZAc=", "dev": true }, "@types/cookiejar": { "version": "2.1.1", - "resolved": "http://registry.npm.taobao.org/@types/cookiejar/download/@types/cookiejar-2.1.1.tgz", + "resolved": "https://registry.npm.taobao.org/@types/cookiejar/download/@types/cookiejar-2.1.1.tgz", "integrity": "sha1-kLaERjZLr579joNJuza9OFK3W4A=", "dev": true }, "@types/events": { "version": "3.0.0", - "resolved": "https://registry.npm.taobao.org/@types/events/download/@types/events-3.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fevents%2Fdownload%2F%40types%2Fevents-3.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/@types/events/download/@types/events-3.0.0.tgz?cache=0&sync_timestamp=1567532284800&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fevents%2Fdownload%2F%40types%2Fevents-3.0.0.tgz", "integrity": "sha1-KGLz9Yqaf3w+eNefEw3U1xwlwqc=", "dev": true }, "@types/glob": { "version": "7.1.1", - "resolved": "https://registry.npm.taobao.org/@types/glob/download/@types/glob-7.1.1.tgz", + "resolved": "https://registry.npm.taobao.org/@types/glob/download/@types/glob-7.1.1.tgz?cache=0&sync_timestamp=1567532885668&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fglob%2Fdownload%2F%40types%2Fglob-7.1.1.tgz", "integrity": "sha1-qlmhxuP7xCHgfM0xqUTDDrpSFXU=", "dev": true, "requires": { @@ -234,7 +234,7 @@ }, "@types/minimatch": { "version": "3.0.3", - "resolved": "https://registry.npm.taobao.org/@types/minimatch/download/@types/minimatch-3.0.3.tgz", + "resolved": "https://registry.npm.taobao.org/@types/minimatch/download/@types/minimatch-3.0.3.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fminimatch%2Fdownload%2F%40types%2Fminimatch-3.0.3.tgz", "integrity": "sha1-PcoOPzOyAPx9ETnAzZbBJoyt/Z0=", "dev": true }, @@ -245,9 +245,9 @@ "dev": true }, "@types/node": { - "version": "9.6.50", - "resolved": "https://registry.npm.taobao.org/@types/node/download/@types/node-9.6.50.tgz?cache=0&sync_timestamp=1565213367881&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-9.6.50.tgz", - "integrity": "sha1-fyt/2KOJ/ZAjDDMNoKauL0FFFq8=", + "version": "9.6.52", + "resolved": "https://registry.npm.taobao.org/@types/node/download/@types/node-9.6.52.tgz?cache=0&sync_timestamp=1568181892495&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-9.6.52.tgz", + "integrity": "sha1-3bofH9rxSHoKmS7iOMQ/Uxi6ViU=", "dev": true }, "@types/superagent": { @@ -276,9 +276,9 @@ "dev": true }, "abab": { - "version": "2.0.0", - "resolved": "http://registry.npm.taobao.org/abab/download/abab-2.0.0.tgz", - "integrity": "sha1-q6CrTF7uLUx500h9hUUPsjduuw8=", + "version": "2.0.1", + "resolved": "https://registry.npm.taobao.org/abab/download/abab-2.0.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fabab%2Fdownload%2Fabab-2.0.1.tgz", + "integrity": "sha1-P6F3lwMrcUEOw3LhFmj0tP/IaoI=", "dev": true }, "abbrev": { @@ -321,9 +321,9 @@ } }, "acorn-globals": { - "version": "4.3.3", - "resolved": "https://registry.npm.taobao.org/acorn-globals/download/acorn-globals-4.3.3.tgz", - "integrity": "sha1-qG91tpaAuHgNMO3SHu5ODqFwwF4=", + "version": "4.3.4", + "resolved": "https://registry.npm.taobao.org/acorn-globals/download/acorn-globals-4.3.4.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Facorn-globals%2Fdownload%2Facorn-globals-4.3.4.tgz", + "integrity": "sha1-n6GSat3BHJcwjE5m163Q1Awycuc=", "dev": true, "requires": { "acorn": "^6.0.1", @@ -331,9 +331,9 @@ } }, "acorn-jsx": { - "version": "5.0.1", - "resolved": "http://registry.npm.taobao.org/acorn-jsx/download/acorn-jsx-5.0.1.tgz", - "integrity": "sha1-MqBk/ZJUKSFqCbFBECv90YX65A4=", + "version": "5.0.2", + "resolved": "https://registry.npm.taobao.org/acorn-jsx/download/acorn-jsx-5.0.2.tgz", + "integrity": "sha1-hLaOpEs3PE+GhgI6VR9hoht8Sk8=", "dev": true }, "acorn-walk": { @@ -433,7 +433,7 @@ }, "ansi-styles": { "version": "3.2.1", - "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-3.2.1.tgz", + "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-3.2.1.tgz?cache=0&sync_timestamp=1566430562325&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-3.2.1.tgz", "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { @@ -765,7 +765,7 @@ }, "ansi-styles": { "version": "2.2.1", - "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz", + "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz?cache=0&sync_timestamp=1566430562325&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, @@ -850,17 +850,17 @@ } }, "babel-eslint": { - "version": "10.0.2", - "resolved": "https://registry.npm.taobao.org/babel-eslint/download/babel-eslint-10.0.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-eslint%2Fdownload%2Fbabel-eslint-10.0.2.tgz", - "integrity": "sha1-GC1awgRXn/CIFoSwQFYP3MFVhFY=", + "version": "10.0.3", + "resolved": "https://registry.npm.taobao.org/babel-eslint/download/babel-eslint-10.0.3.tgz", + "integrity": "sha1-gaLGab4PIF4ZRi/tJILTPkaHqIo=", "dev": true, "requires": { "@babel/code-frame": "^7.0.0", "@babel/parser": "^7.0.0", "@babel/traverse": "^7.0.0", "@babel/types": "^7.0.0", - "eslint-scope": "3.7.1", - "eslint-visitor-keys": "^1.0.0" + "eslint-visitor-keys": "^1.0.0", + "resolve": "^1.12.0" } }, "babel-generator": { @@ -1937,7 +1937,7 @@ }, "globals": { "version": "9.18.0", - "resolved": "https://registry.npm.taobao.org/globals/download/globals-9.18.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fglobals%2Fdownload%2Fglobals-9.18.0.tgz", + "resolved": "https://registry.npm.taobao.org/globals/download/globals-9.18.0.tgz?cache=0&sync_timestamp=1568452081683&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fglobals%2Fdownload%2Fglobals-9.18.0.tgz", "integrity": "sha1-qjiWs+abSH8X4x7SFD1pqOMMLYo=", "dev": true }, @@ -2122,7 +2122,7 @@ }, "bl": { "version": "1.2.2", - "resolved": "http://registry.npm.taobao.org/bl/download/bl-1.2.2.tgz", + "resolved": "https://registry.npm.taobao.org/bl/download/bl-1.2.2.tgz", "integrity": "sha1-oWCRFxcQPAdBDO9j71Gzl8Alr5w=", "dev": true, "requires": { @@ -2196,7 +2196,7 @@ }, "qs": { "version": "6.7.0", - "resolved": "http://registry.npm.taobao.org/qs/download/qs-6.7.0.tgz", + "resolved": "https://registry.npm.taobao.org/qs/download/qs-6.7.0.tgz?cache=0&sync_timestamp=1569207136481&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fqs%2Fdownload%2Fqs-6.7.0.tgz", "integrity": "sha1-QdwaAV49WB8WIXdr4xr7KHapsbw=", "dev": true }, @@ -2397,9 +2397,9 @@ } }, "chokidar": { - "version": "2.1.6", - "resolved": "https://registry.npm.taobao.org/chokidar/download/chokidar-2.1.6.tgz", - "integrity": "sha1-tsrWU6kp4kTOioNCRBZNJB+pVMU=", + "version": "2.1.8", + "resolved": "https://registry.npm.taobao.org/chokidar/download/chokidar-2.1.8.tgz", + "integrity": "sha1-gEs6e2qZNYw8XGHnHYco8EHP+Rc=", "dev": true, "requires": { "anymatch": "^2.0.0", @@ -2578,7 +2578,7 @@ }, "glob-parent": { "version": "3.1.0", - "resolved": "http://registry.npm.taobao.org/glob-parent/download/glob-parent-3.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/glob-parent/download/glob-parent-3.1.0.tgz", "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "dev": true, "requires": { @@ -2711,7 +2711,7 @@ }, "qs": { "version": "6.2.3", - "resolved": "http://registry.npm.taobao.org/qs/download/qs-6.2.3.tgz", + "resolved": "https://registry.npm.taobao.org/qs/download/qs-6.2.3.tgz?cache=0&sync_timestamp=1569207136481&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fqs%2Fdownload%2Fqs-6.2.3.tgz", "integrity": "sha1-HPyyXBCpsrSDBT/zn138kjOQjP4=", "dev": true } @@ -2837,9 +2837,9 @@ "dev": true }, "buffer": { - "version": "5.3.0", - "resolved": "https://registry.npm.taobao.org/buffer/download/buffer-5.3.0.tgz", - "integrity": "sha1-X5+l/v45OYiND9v32WTiqFMf1pw=", + "version": "5.4.3", + "resolved": "https://registry.npm.taobao.org/buffer/download/buffer-5.4.3.tgz", + "integrity": "sha1-P7ycaetxPTI+P8Gole7gcQwHIRU=", "dev": true, "requires": { "base64-js": "^1.0.2", @@ -3019,9 +3019,9 @@ } }, "caniuse-db": { - "version": "1.0.30000989", - "resolved": "https://registry.npm.taobao.org/caniuse-db/download/caniuse-db-1.0.30000989.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcaniuse-db%2Fdownload%2Fcaniuse-db-1.0.30000989.tgz", - "integrity": "sha1-vY3SeJclaFBUosXvlYBPnm5Q+zI=", + "version": "1.0.30000996", + "resolved": "https://registry.npm.taobao.org/caniuse-db/download/caniuse-db-1.0.30000996.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcaniuse-db%2Fdownload%2Fcaniuse-db-1.0.30000996.tgz", + "integrity": "sha1-vzfmXr2ZTFAygIkgkEJ/vpkTOdk=", "dev": true }, "caniuse-lite": { @@ -3186,7 +3186,7 @@ }, "ansi-styles": { "version": "2.2.1", - "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz", + "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz?cache=0&sync_timestamp=1566430562325&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, @@ -3298,7 +3298,7 @@ }, "ansi-styles": { "version": "2.2.1", - "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz", + "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz?cache=0&sync_timestamp=1566430562325&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, @@ -3484,7 +3484,7 @@ }, "color-convert": { "version": "1.9.3", - "resolved": "http://registry.npm.taobao.org/color-convert/download/color-convert-1.9.3.tgz", + "resolved": "https://registry.npm.taobao.org/color-convert/download/color-convert-1.9.3.tgz", "integrity": "sha1-u3GFBpDh8TZWfeYp0tVHHe2kweg=", "dev": true, "requires": { @@ -3519,7 +3519,7 @@ }, "colors": { "version": "1.1.2", - "resolved": "http://registry.npm.taobao.org/colors/download/colors-1.1.2.tgz", + "resolved": "https://registry.npm.taobao.org/colors/download/colors-1.1.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcolors%2Fdownload%2Fcolors-1.1.2.tgz", "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", "dev": true }, @@ -3534,7 +3534,7 @@ }, "commander": { "version": "2.8.1", - "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.8.1.tgz?cache=0&sync_timestamp=1565398176321&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.8.1.tgz", + "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.8.1.tgz?cache=0&sync_timestamp=1567155469688&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.8.1.tgz", "integrity": "sha1-Br42f+v9oMMwqh4qBy09yXYkJdQ=", "dev": true, "requires": { @@ -4011,7 +4011,7 @@ }, "cross-spawn": { "version": "5.1.0", - "resolved": "http://registry.npm.taobao.org/cross-spawn/download/cross-spawn-5.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/cross-spawn/download/cross-spawn-5.1.0.tgz?cache=0&sync_timestamp=1567511270254&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcross-spawn%2Fdownload%2Fcross-spawn-5.1.0.tgz", "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", "dev": true, "requires": { @@ -4230,7 +4230,7 @@ }, "d3": { "version": "3.5.17", - "resolved": "https://registry.npm.taobao.org/d3/download/d3-3.5.17.tgz", + "resolved": "https://registry.npm.taobao.org/d3/download/d3-3.5.17.tgz?cache=0&sync_timestamp=1567828689921&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fd3%2Fdownload%2Fd3-3.5.17.tgz", "integrity": "sha1-vEZ0gAQ3iyGjYMn8fPUjF5B2L7g=", "dev": true }, @@ -4406,7 +4406,7 @@ "dependencies": { "file-type": { "version": "6.2.0", - "resolved": "https://registry.npm.taobao.org/file-type/download/file-type-6.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffile-type%2Fdownload%2Ffile-type-6.2.0.tgz", + "resolved": "https://registry.npm.taobao.org/file-type/download/file-type-6.2.0.tgz", "integrity": "sha1-5QzXXTVv/tTjBtxPW89Sp5kDqRk=", "dev": true } @@ -4437,7 +4437,7 @@ "dependencies": { "file-type": { "version": "3.9.0", - "resolved": "https://registry.npm.taobao.org/file-type/download/file-type-3.9.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffile-type%2Fdownload%2Ffile-type-3.9.0.tgz", + "resolved": "https://registry.npm.taobao.org/file-type/download/file-type-3.9.0.tgz", "integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek=", "dev": true }, @@ -4827,7 +4827,7 @@ "dependencies": { "@nodelib/fs.stat": { "version": "1.1.3", - "resolved": "https://registry.npm.taobao.org/@nodelib/fs.stat/download/@nodelib/fs.stat-1.1.3.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40nodelib%2Ffs.stat%2Fdownload%2F%40nodelib%2Ffs.stat-1.1.3.tgz", + "resolved": "https://registry.npm.taobao.org/@nodelib/fs.stat/download/@nodelib/fs.stat-1.1.3.tgz", "integrity": "sha1-K1o6s/kYzKSKjHVMCBaOPwPrphs=", "dev": true }, @@ -5058,7 +5058,7 @@ }, "glob-parent": { "version": "3.1.0", - "resolved": "http://registry.npm.taobao.org/glob-parent/download/glob-parent-3.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/glob-parent/download/glob-parent-3.1.0.tgz", "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "dev": true, "requires": { @@ -5242,9 +5242,9 @@ }, "dependencies": { "@types/node": { - "version": "10.14.15", - "resolved": "https://registry.npm.taobao.org/@types/node/download/@types/node-10.14.15.tgz?cache=0&sync_timestamp=1565213367881&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-10.14.15.tgz", - "integrity": "sha1-6Pdym2Mb4bAq4TD/C2Hz4BgABkA=", + "version": "10.14.18", + "resolved": "https://registry.npm.taobao.org/@types/node/download/@types/node-10.14.18.tgz?cache=0&sync_timestamp=1568181892495&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fnode%2Fdownload%2F%40types%2Fnode-10.14.18.tgz", + "integrity": "sha1-t9RfyVDm/9ftxoXokNE6p7hTXc4=", "dev": true }, "ntils": { @@ -6341,7 +6341,7 @@ "dependencies": { "babel-eslint": { "version": "7.2.3", - "resolved": "https://registry.npm.taobao.org/babel-eslint/download/babel-eslint-7.2.3.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-eslint%2Fdownload%2Fbabel-eslint-7.2.3.tgz", + "resolved": "https://registry.npm.taobao.org/babel-eslint/download/babel-eslint-7.2.3.tgz", "integrity": "sha1-sv4tgBJkcPXBlELcdXJTqJdxCCc=", "dev": true, "requires": { @@ -6501,9 +6501,9 @@ } }, "chokidar": { - "version": "2.1.6", - "resolved": "https://registry.npm.taobao.org/chokidar/download/chokidar-2.1.6.tgz", - "integrity": "sha1-tsrWU6kp4kTOioNCRBZNJB+pVMU=", + "version": "2.1.8", + "resolved": "https://registry.npm.taobao.org/chokidar/download/chokidar-2.1.8.tgz", + "integrity": "sha1-gEs6e2qZNYw8XGHnHYco8EHP+Rc=", "dev": true, "requires": { "anymatch": "^2.0.0", @@ -6700,7 +6700,7 @@ }, "glob-parent": { "version": "3.1.0", - "resolved": "http://registry.npm.taobao.org/glob-parent/download/glob-parent-3.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/glob-parent/download/glob-parent-3.1.0.tgz", "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "dev": true, "requires": { @@ -6736,9 +6736,9 @@ } }, "ignore": { - "version": "5.1.2", - "resolved": "https://registry.npm.taobao.org/ignore/download/ignore-5.1.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fignore%2Fdownload%2Fignore-5.1.2.tgz", - "integrity": "sha1-4o5YTUOtfpL5aZUBnMQ7nhrElVg=", + "version": "5.1.4", + "resolved": "https://registry.npm.taobao.org/ignore/download/ignore-5.1.4.tgz", + "integrity": "sha1-hLez2+ZFUrbvDsqZ9nQ9vsbZet8=", "dev": true }, "is-accessor-descriptor": { @@ -7050,15 +7050,15 @@ } }, "electron-to-chromium": { - "version": "1.3.225", - "resolved": "https://registry.npm.taobao.org/electron-to-chromium/download/electron-to-chromium-1.3.225.tgz", - "integrity": "sha1-xnhkdbXrX0ka3gGni4K6LFv99ys=", + "version": "1.3.264", + "resolved": "https://registry.npm.taobao.org/electron-to-chromium/download/electron-to-chromium-1.3.264.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felectron-to-chromium%2Fdownload%2Felectron-to-chromium-1.3.264.tgz", + "integrity": "sha1-7YN/RFJNBgGnsre279huNXU9Dic=", "dev": true }, "elliptic": { - "version": "6.5.0", - "resolved": "https://registry.npm.taobao.org/elliptic/download/elliptic-6.5.0.tgz?cache=0&sync_timestamp=1561521858170&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Felliptic%2Fdownload%2Felliptic-6.5.0.tgz", - "integrity": "sha1-K47UyJG33jIA4UQSpbgkjHr1Bco=", + "version": "6.5.1", + "resolved": "https://registry.npm.taobao.org/elliptic/download/elliptic-6.5.1.tgz", + "integrity": "sha1-w4D1+Qm/G5tEKNAozRjTsO/WtSs=", "dev": true, "requires": { "bn.js": "^4.4.0", @@ -7071,9 +7071,9 @@ } }, "emoji-regex": { - "version": "8.0.0", - "resolved": "http://registry.npm.taobao.org/emoji-regex/download/emoji-regex-8.0.0.tgz", - "integrity": "sha1-6Bj9ac5cz8tARZT4QpY79TFkzDc=", + "version": "7.0.3", + "resolved": "http://registry.npm.taobao.org/emoji-regex/download/emoji-regex-7.0.3.tgz", + "integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY=", "dev": true }, "emojis-list": { @@ -7098,9 +7098,9 @@ } }, "end-of-stream": { - "version": "1.4.1", - "resolved": "http://registry.npm.taobao.org/end-of-stream/download/end-of-stream-1.4.1.tgz", - "integrity": "sha1-7SljTRm6ukY7bOa4CjchPqtx7EM=", + "version": "1.4.2", + "resolved": "https://registry.npm.taobao.org/end-of-stream/download/end-of-stream-1.4.2.tgz", + "integrity": "sha1-CAvwKO3OgxK2Zf8Y6gPK4MOsDss=", "dev": true, "requires": { "once": "^1.4.0" @@ -7108,7 +7108,7 @@ }, "engine.io": { "version": "3.2.1", - "resolved": "http://registry.npm.taobao.org/engine.io/download/engine.io-3.2.1.tgz", + "resolved": "https://registry.npm.taobao.org/engine.io/download/engine.io-3.2.1.tgz", "integrity": "sha1-tgKBw1SEpw7gNR6g6/+D7IyVIqI=", "dev": true, "requires": { @@ -7129,6 +7129,19 @@ "ms": "2.0.0" } }, + "engine.io-parser": { + "version": "2.1.3", + "resolved": "https://registry.npm.taobao.org/engine.io-parser/download/engine.io-parser-2.1.3.tgz", + "integrity": "sha1-dXq5cPvy37Mse3SwMyFtVznveaY=", + "dev": true, + "requires": { + "after": "0.8.2", + "arraybuffer.slice": "~0.0.7", + "base64-arraybuffer": "0.1.5", + "blob": "0.0.5", + "has-binary2": "~1.0.2" + } + }, "safe-buffer": { "version": "5.1.2", "resolved": "https://registry.npm.taobao.org/safe-buffer/download/safe-buffer-5.1.2.tgz?cache=0&sync_timestamp=1562349888578&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsafe-buffer%2Fdownload%2Fsafe-buffer-5.1.2.tgz", @@ -7149,15 +7162,15 @@ } }, "engine.io-client": { - "version": "3.3.2", - "resolved": "http://registry.npm.taobao.org/engine.io-client/download/engine.io-client-3.3.2.tgz", - "integrity": "sha1-BOBoeY11vtoUN1omS7PXQte8M6o=", + "version": "3.4.0", + "resolved": "https://registry.npm.taobao.org/engine.io-client/download/engine.io-client-3.4.0.tgz", + "integrity": "sha1-gqZCtChiqbP3oYj0F3ay3qtkNwA=", "dev": true, "requires": { "component-emitter": "1.2.1", "component-inherit": "0.0.3", - "debug": "~3.1.0", - "engine.io-parser": "~2.1.1", + "debug": "~4.1.0", + "engine.io-parser": "~2.2.0", "has-cors": "1.1.0", "indexof": "0.0.1", "parseqs": "0.0.5", @@ -7174,20 +7187,26 @@ "dev": true }, "debug": { - "version": "3.1.0", - "resolved": "http://registry.npm.taobao.org/debug/download/debug-3.1.0.tgz", - "integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=", + "version": "4.1.1", + "resolved": "http://registry.npm.taobao.org/debug/download/debug-4.1.1.tgz", + "integrity": "sha1-O3ImAlUQnGtYnO4FDx1RYTlmR5E=", "dev": true, "requires": { - "ms": "2.0.0" + "ms": "^2.1.1" } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz", + "integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=", + "dev": true } } }, "engine.io-parser": { - "version": "2.1.3", - "resolved": "http://registry.npm.taobao.org/engine.io-parser/download/engine.io-parser-2.1.3.tgz", - "integrity": "sha1-dXq5cPvy37Mse3SwMyFtVznveaY=", + "version": "2.2.0", + "resolved": "https://registry.npm.taobao.org/engine.io-parser/download/engine.io-parser-2.2.0.tgz", + "integrity": "sha1-MSxIlPV9UqArQgho2ntcHISvgO0=", "dev": true, "requires": { "after": "0.8.2", @@ -7199,7 +7218,7 @@ }, "enhanced-resolve": { "version": "3.4.1", - "resolved": "https://registry.npm.taobao.org/enhanced-resolve/download/enhanced-resolve-3.4.1.tgz", + "resolved": "https://registry.npm.taobao.org/enhanced-resolve/download/enhanced-resolve-3.4.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fenhanced-resolve%2Fdownload%2Fenhanced-resolve-3.4.1.tgz", "integrity": "sha1-BCHjOf1xQZs9oT0Smzl5BAIwR24=", "dev": true, "requires": { @@ -7252,17 +7271,21 @@ } }, "es-abstract": { - "version": "1.13.0", - "resolved": "http://registry.npm.taobao.org/es-abstract/download/es-abstract-1.13.0.tgz", - "integrity": "sha1-rIYUX91QmdjdSVWMy6Lq+biOJOk=", + "version": "1.14.2", + "resolved": "https://registry.npm.taobao.org/es-abstract/download/es-abstract-1.14.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fes-abstract%2Fdownload%2Fes-abstract-1.14.2.tgz", + "integrity": "sha1-fOEI+tgwaMh4PDzfYuUE4ITYxJc=", "dev": true, "requires": { "es-to-primitive": "^1.2.0", "function-bind": "^1.1.1", "has": "^1.0.3", + "has-symbols": "^1.0.0", "is-callable": "^1.1.4", "is-regex": "^1.0.4", - "object-keys": "^1.0.12" + "object-inspect": "^1.6.0", + "object-keys": "^1.1.1", + "string.prototype.trimleft": "^2.0.0", + "string.prototype.trimright": "^2.0.0" } }, "es-to-primitive": { @@ -7277,9 +7300,9 @@ } }, "es5-ext": { - "version": "0.10.50", - "resolved": "https://registry.npm.taobao.org/es5-ext/download/es5-ext-0.10.50.tgz", - "integrity": "sha1-bQ4joKvbJwGOWsT9CbQSvFUXp3g=", + "version": "0.10.51", + "resolved": "https://registry.npm.taobao.org/es5-ext/download/es5-ext-0.10.51.tgz", + "integrity": "sha1-7S19nUihLfhuApkofpOgn/R4hC8=", "dev": true, "requires": { "es6-iterator": "~2.0.3", @@ -7323,16 +7346,28 @@ "es6-iterator": "~2.0.1", "es6-symbol": "3.1.1", "event-emitter": "~0.3.5" + }, + "dependencies": { + "es6-symbol": { + "version": "3.1.1", + "resolved": "https://registry.npm.taobao.org/es6-symbol/download/es6-symbol-3.1.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fes6-symbol%2Fdownload%2Fes6-symbol-3.1.1.tgz", + "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", + "dev": true, + "requires": { + "d": "1", + "es5-ext": "~0.10.14" + } + } } }, "es6-symbol": { - "version": "3.1.1", - "resolved": "http://registry.npm.taobao.org/es6-symbol/download/es6-symbol-3.1.1.tgz", - "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", + "version": "3.1.2", + "resolved": "https://registry.npm.taobao.org/es6-symbol/download/es6-symbol-3.1.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fes6-symbol%2Fdownload%2Fes6-symbol-3.1.2.tgz", + "integrity": "sha1-hZ/dNPMukF/wbXUucXHd1ERKftE=", "dev": true, "requires": { - "d": "1", - "es5-ext": "~0.10.14" + "d": "^1.0.1", + "es5-ext": "^0.10.51" } }, "es6-weak-map": { @@ -7380,7 +7415,7 @@ }, "estraverse": { "version": "1.9.3", - "resolved": "http://registry.npm.taobao.org/estraverse/download/estraverse-1.9.3.tgz", + "resolved": "https://registry.npm.taobao.org/estraverse/download/estraverse-1.9.3.tgz", "integrity": "sha1-r2fy3JIlgkFZUJJgkaQAXSnJu0Q=", "dev": true }, @@ -7452,15 +7487,6 @@ "text-table": "^0.2.0" }, "dependencies": { - "ansi-escapes": { - "version": "4.2.1", - "resolved": "https://registry.npm.taobao.org/ansi-escapes/download/ansi-escapes-4.2.1.tgz", - "integrity": "sha1-TczbhGw+7hD21k3qZic+q5DDcig=", - "dev": true, - "requires": { - "type-fest": "^0.5.2" - } - }, "ansi-regex": { "version": "4.1.0", "resolved": "http://registry.npm.taobao.org/ansi-regex/download/ansi-regex-4.1.0.tgz", @@ -7473,18 +7499,9 @@ "integrity": "sha1-kAlISfCTfy7twkJdDSip5fDLrZ4=", "dev": true }, - "cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npm.taobao.org/cli-cursor/download/cli-cursor-3.1.0.tgz", - "integrity": "sha1-JkMFp65JDR0Dvwybp8kl0XU68wc=", - "dev": true, - "requires": { - "restore-cursor": "^3.1.0" - } - }, "cross-spawn": { "version": "6.0.5", - "resolved": "http://registry.npm.taobao.org/cross-spawn/download/cross-spawn-6.0.5.tgz", + "resolved": "https://registry.npm.taobao.org/cross-spawn/download/cross-spawn-6.0.5.tgz?cache=0&sync_timestamp=1567511270254&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcross-spawn%2Fdownload%2Fcross-spawn-6.0.5.tgz", "integrity": "sha1-Sl7Hxk364iw6FBJNus3uhG2Ay8Q=", "dev": true, "requires": { @@ -7504,16 +7521,6 @@ "ms": "^2.1.1" } }, - "eslint-scope": { - "version": "4.0.3", - "resolved": "https://registry.npm.taobao.org/eslint-scope/download/eslint-scope-4.0.3.tgz", - "integrity": "sha1-ygODMxD2iJoyZHgaqC5j65z+eEg=", - "dev": true, - "requires": { - "esrecurse": "^4.1.0", - "estraverse": "^4.1.1" - } - }, "external-editor": { "version": "3.1.0", "resolved": "https://registry.npm.taobao.org/external-editor/download/external-editor-3.1.0.tgz", @@ -7525,38 +7532,29 @@ "tmp": "^0.0.33" } }, - "figures": { - "version": "3.0.0", - "resolved": "https://registry.npm.taobao.org/figures/download/figures-3.0.0.tgz", - "integrity": "sha1-dWJ1yWRkYWPMb5GXx6ApXb/QTek=", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, "ignore": { "version": "4.0.6", - "resolved": "https://registry.npm.taobao.org/ignore/download/ignore-4.0.6.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fignore%2Fdownload%2Fignore-4.0.6.tgz", + "resolved": "https://registry.npm.taobao.org/ignore/download/ignore-4.0.6.tgz", "integrity": "sha1-dQ49tYYgh7RzfrrIIH/9HvJ7Jfw=", "dev": true }, "inquirer": { - "version": "6.5.1", - "resolved": "https://registry.npm.taobao.org/inquirer/download/inquirer-6.5.1.tgz", - "integrity": "sha1-i/t6WsAtrG/2QaxMX/F9oRL820I=", + "version": "6.5.2", + "resolved": "https://registry.npm.taobao.org/inquirer/download/inquirer-6.5.2.tgz", + "integrity": "sha1-rVCUI3XQNtMn/1KMCL1fqwiZKMo=", "dev": true, "requires": { - "ansi-escapes": "^4.2.1", + "ansi-escapes": "^3.2.0", "chalk": "^2.4.2", - "cli-cursor": "^3.1.0", + "cli-cursor": "^2.1.0", "cli-width": "^2.0.0", "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.15", - "mute-stream": "0.0.8", + "figures": "^2.0.0", + "lodash": "^4.17.12", + "mute-stream": "0.0.7", "run-async": "^2.2.0", "rxjs": "^6.4.0", - "string-width": "^4.1.0", + "string-width": "^2.1.0", "strip-ansi": "^5.1.0", "through": "^2.3.6" }, @@ -7572,85 +7570,26 @@ } } }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "http://registry.npm.taobao.org/is-fullwidth-code-point/download/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha1-8Rb4Bk/pCz94RKOJl8C3UFEmnx0=", - "dev": true - }, "lodash": { "version": "4.17.15", "resolved": "https://registry.npm.taobao.org/lodash/download/lodash-4.17.15.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flodash%2Fdownload%2Flodash-4.17.15.tgz", "integrity": "sha1-tEf2ZwoEVbv+7dETku/zMOoJdUg=", "dev": true }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npm.taobao.org/mimic-fn/download/mimic-fn-2.1.0.tgz?cache=0&sync_timestamp=1560442058146&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmimic-fn%2Fdownload%2Fmimic-fn-2.1.0.tgz", - "integrity": "sha1-ftLCzMyvhNP/y3pptXcR/CCDQBs=", - "dev": true - }, "ms": { "version": "2.1.2", "resolved": "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz", "integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=", "dev": true }, - "mute-stream": { - "version": "0.0.8", - "resolved": "http://registry.npm.taobao.org/mute-stream/download/mute-stream-0.0.8.tgz", - "integrity": "sha1-FjDEKyJR/4HiooPelqVJfqkuXg0=", - "dev": true - }, - "onetime": { - "version": "5.1.0", - "resolved": "http://registry.npm.taobao.org/onetime/download/onetime-5.1.0.tgz", - "integrity": "sha1-//DzyRYX/mK7UBiWNumayKbfe+U=", - "dev": true, - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npm.taobao.org/restore-cursor/download/restore-cursor-3.1.0.tgz", - "integrity": "sha1-OfZ8VLOnpYzqUjbZXPADQjljH34=", - "dev": true, - "requires": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" - } - }, "rxjs": { - "version": "6.5.2", - "resolved": "https://registry.npm.taobao.org/rxjs/download/rxjs-6.5.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frxjs%2Fdownload%2Frxjs-6.5.2.tgz", - "integrity": "sha1-LjXOgVzUbYTQKiCftOWSHgUdvsc=", + "version": "6.5.3", + "resolved": "https://registry.npm.taobao.org/rxjs/download/rxjs-6.5.3.tgz", + "integrity": "sha1-UQ4mMX9NuRp+sd532d2boKSJmjo=", "dev": true, "requires": { "tslib": "^1.9.0" } - }, - "string-width": { - "version": "4.1.0", - "resolved": "http://registry.npm.taobao.org/string-width/download/string-width-4.1.0.tgz", - "integrity": "sha1-uoRtHaqXw8WWFVMIBj4HXtHJmv8=", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^5.2.0" - }, - "dependencies": { - "strip-ansi": { - "version": "5.2.0", - "resolved": "http://registry.npm.taobao.org/strip-ansi/download/strip-ansi-5.2.0.tgz", - "integrity": "sha1-jJpTb+tq/JYr36WxBKUJHBrZwK4=", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } } } }, @@ -7761,7 +7700,7 @@ }, "@babel/types": { "version": "7.0.0-beta.44", - "resolved": "https://registry.npm.taobao.org/@babel/types/download/@babel/types-7.0.0-beta.44.tgz", + "resolved": "https://registry.npm.taobao.org/@babel/types/download/@babel/types-7.0.0-beta.44.tgz?cache=0&sync_timestamp=1567831650694&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Ftypes%2Fdownload%2F%40babel%2Ftypes-7.0.0-beta.44.tgz", "integrity": "sha1-axsWRZH3fewKA0KsqZXy0Eazp1c=", "dev": true, "requires": { @@ -7772,7 +7711,7 @@ }, "babel-eslint": { "version": "8.2.6", - "resolved": "https://registry.npm.taobao.org/babel-eslint/download/babel-eslint-8.2.6.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fbabel-eslint%2Fdownload%2Fbabel-eslint-8.2.6.tgz", + "resolved": "https://registry.npm.taobao.org/babel-eslint/download/babel-eslint-8.2.6.tgz", "integrity": "sha1-YnDQxzIFYoBnwPeuFpOp55es79k=", "dev": true, "requires": { @@ -7793,6 +7732,16 @@ "htmlparser2": "^3.8.2" } }, + "eslint-scope": { + "version": "3.7.1", + "resolved": "https://registry.npm.taobao.org/eslint-scope/download/eslint-scope-3.7.1.tgz", + "integrity": "sha1-PWPD7f2gLgbgGkUq2IyqzHzctug=", + "dev": true, + "requires": { + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" + } + }, "lodash": { "version": "4.17.15", "resolved": "https://registry.npm.taobao.org/lodash/download/lodash-4.17.15.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flodash%2Fdownload%2Flodash-4.17.15.tgz", @@ -7877,14 +7826,14 @@ }, "eslint-plugin-react-hooks": { "version": "1.7.0", - "resolved": "https://registry.npm.taobao.org/eslint-plugin-react-hooks/download/eslint-plugin-react-hooks-1.7.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-plugin-react-hooks%2Fdownload%2Feslint-plugin-react-hooks-1.7.0.tgz", + "resolved": "https://registry.npm.taobao.org/eslint-plugin-react-hooks/download/eslint-plugin-react-hooks-1.7.0.tgz", "integrity": "sha1-YhC21aNyBfC5KFj4laToJwIKfQQ=", "dev": true }, "eslint-scope": { - "version": "3.7.1", - "resolved": "https://registry.npm.taobao.org/eslint-scope/download/eslint-scope-3.7.1.tgz", - "integrity": "sha1-PWPD7f2gLgbgGkUq2IyqzHzctug=", + "version": "4.0.3", + "resolved": "https://registry.npm.taobao.org/eslint-scope/download/eslint-scope-4.0.3.tgz", + "integrity": "sha1-ygODMxD2iJoyZHgaqC5j65z+eEg=", "dev": true, "requires": { "esrecurse": "^4.1.0", @@ -7892,18 +7841,18 @@ } }, "eslint-utils": { - "version": "1.4.0", - "resolved": "https://registry.npm.taobao.org/eslint-utils/download/eslint-utils-1.4.0.tgz", - "integrity": "sha1-4sPI26doQl+JfPD55R/i4kFIXUw=", + "version": "1.4.2", + "resolved": "https://registry.npm.taobao.org/eslint-utils/download/eslint-utils-1.4.2.tgz?cache=0&sync_timestamp=1566297013046&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-utils%2Fdownload%2Feslint-utils-1.4.2.tgz", + "integrity": "sha1-FmpRgO9qt+tGLxYv0ObyRj1zCas=", "dev": true, "requires": { "eslint-visitor-keys": "^1.0.0" } }, "eslint-visitor-keys": { - "version": "1.0.0", - "resolved": "http://registry.npm.taobao.org/eslint-visitor-keys/download/eslint-visitor-keys-1.0.0.tgz", - "integrity": "sha1-PzGA+y4pEBdxastMnW1bXDSmqB0=", + "version": "1.1.0", + "resolved": "https://registry.npm.taobao.org/eslint-visitor-keys/download/eslint-visitor-keys-1.1.0.tgz?cache=0&sync_timestamp=1565705523991&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Feslint-visitor-keys%2Fdownload%2Feslint-visitor-keys-1.1.0.tgz", + "integrity": "sha1-4qgs6oT/JGrW+1f5veW0ZiFFnsI=", "dev": true }, "espree": { @@ -7942,9 +7891,9 @@ } }, "estraverse": { - "version": "4.2.0", - "resolved": "http://registry.npm.taobao.org/estraverse/download/estraverse-4.2.0.tgz", - "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", + "version": "4.3.0", + "resolved": "https://registry.npm.taobao.org/estraverse/download/estraverse-4.3.0.tgz", + "integrity": "sha1-OYrT88WiSUi+dyXoPRGn3ijNvR0=", "dev": true }, "esutils": { @@ -8002,7 +7951,7 @@ }, "execa": { "version": "0.7.0", - "resolved": "https://registry.npm.taobao.org/execa/download/execa-0.7.0.tgz?cache=0&sync_timestamp=1562315784630&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexeca%2Fdownload%2Fexeca-0.7.0.tgz", + "resolved": "https://registry.npm.taobao.org/execa/download/execa-0.7.0.tgz", "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", "dev": true, "requires": { @@ -8136,7 +8085,7 @@ }, "qs": { "version": "6.7.0", - "resolved": "http://registry.npm.taobao.org/qs/download/qs-6.7.0.tgz", + "resolved": "https://registry.npm.taobao.org/qs/download/qs-6.7.0.tgz?cache=0&sync_timestamp=1569207136481&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fqs%2Fdownload%2Fqs-6.7.0.tgz", "integrity": "sha1-QdwaAV49WB8WIXdr4xr7KHapsbw=", "dev": true }, @@ -8316,9 +8265,9 @@ } }, "glob-parent": { - "version": "5.0.0", - "resolved": "http://registry.npm.taobao.org/glob-parent/download/glob-parent-5.0.0.tgz", - "integrity": "sha1-HcmfDzmwBtPpLCwoQGg4Lwwg6VQ=", + "version": "5.1.0", + "resolved": "https://registry.npm.taobao.org/glob-parent/download/glob-parent-5.1.0.tgz", + "integrity": "sha1-X0wdHnSNMM1zrSlEs1d6gbCB6MI=", "dev": true, "requires": { "is-glob": "^4.0.1" @@ -8563,7 +8512,7 @@ }, "file-type": { "version": "5.2.0", - "resolved": "https://registry.npm.taobao.org/file-type/download/file-type-5.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffile-type%2Fdownload%2Ffile-type-5.2.0.tgz", + "resolved": "https://registry.npm.taobao.org/file-type/download/file-type-5.2.0.tgz", "integrity": "sha1-LdvqfHP/42No365J3DOMBYwritY=", "dev": true }, @@ -8575,7 +8524,7 @@ }, "filesize": { "version": "3.5.11", - "resolved": "http://registry.npm.taobao.org/filesize/download/filesize-3.5.11.tgz", + "resolved": "https://registry.npm.taobao.org/filesize/download/filesize-3.5.11.tgz", "integrity": "sha1-GRkyZ0lDO7PPdzaL0VjKq8wZ6e4=", "dev": true }, @@ -8664,6 +8613,17 @@ "flatted": "^2.0.0", "rimraf": "2.6.3", "write": "1.0.3" + }, + "dependencies": { + "rimraf": { + "version": "2.6.3", + "resolved": "https://registry.npm.taobao.org/rimraf/download/rimraf-2.6.3.tgz", + "integrity": "sha1-stEE/g2Psnz54KHNqCYt04M8bKs=", + "dev": true, + "requires": { + "glob": "^7.1.3" + } + } } }, "flatted": { @@ -8680,7 +8640,7 @@ }, "follow-redirects": { "version": "1.5.10", - "resolved": "http://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.5.10.tgz", + "resolved": "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.5.10.tgz", "integrity": "sha1-e3qfmuov3/NnhqlP9kPtB/T/Xio=", "dev": true, "requires": { @@ -8727,7 +8687,7 @@ }, "form-data": { "version": "2.3.3", - "resolved": "https://registry.npm.taobao.org/form-data/download/form-data-2.3.3.tgz", + "resolved": "https://registry.npm.taobao.org/form-data/download/form-data-2.3.3.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fform-data%2Fdownload%2Fform-data-2.3.3.tgz", "integrity": "sha1-3M5SwF9kTymManq5Nr1yTO/786Y=", "dev": true, "requires": { @@ -9421,7 +9381,7 @@ }, "glob-parent": { "version": "2.0.0", - "resolved": "http://registry.npm.taobao.org/glob-parent/download/glob-parent-2.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/glob-parent/download/glob-parent-2.0.0.tgz", "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", "dev": true, "requires": { @@ -9469,7 +9429,7 @@ }, "globals": { "version": "11.12.0", - "resolved": "https://registry.npm.taobao.org/globals/download/globals-11.12.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fglobals%2Fdownload%2Fglobals-11.12.0.tgz", + "resolved": "https://registry.npm.taobao.org/globals/download/globals-11.12.0.tgz?cache=0&sync_timestamp=1568452081683&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fglobals%2Fdownload%2Fglobals-11.12.0.tgz", "integrity": "sha1-q4eVM4hooLq9hSV1gBjCp+uVxC4=", "dev": true }, @@ -9499,7 +9459,7 @@ }, "got": { "version": "6.7.1", - "resolved": "http://registry.npm.taobao.org/got/download/got-6.7.1.tgz", + "resolved": "https://registry.npm.taobao.org/got/download/got-6.7.1.tgz?cache=0&sync_timestamp=1569277652253&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fgot%2Fdownload%2Fgot-6.7.1.tgz", "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=", "dev": true, "requires": { @@ -9525,9 +9485,9 @@ } }, "graceful-fs": { - "version": "4.2.1", - "resolved": "https://registry.npm.taobao.org/graceful-fs/download/graceful-fs-4.2.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fgraceful-fs%2Fdownload%2Fgraceful-fs-4.2.1.tgz", - "integrity": "sha1-HB8MNkiCyGj1v/ZRIUYygzahGx0=", + "version": "4.2.2", + "resolved": "https://registry.npm.taobao.org/graceful-fs/download/graceful-fs-4.2.2.tgz", + "integrity": "sha1-bwlSYF0BQMHP2xOO0AV3W5LWewI=", "dev": true }, "graceful-readlink": { @@ -9568,9 +9528,9 @@ } }, "handlebars": { - "version": "4.1.2", - "resolved": "https://registry.npm.taobao.org/handlebars/download/handlebars-4.1.2.tgz", - "integrity": "sha1-trN8HO0DBrIh4JT8eso+wjsTG2c=", + "version": "4.2.1", + "resolved": "https://registry.npm.taobao.org/handlebars/download/handlebars-4.2.1.tgz", + "integrity": "sha1-3GnA5hYEIk8MI7OLW2dB2yELV9o=", "dev": true, "requires": { "neo-async": "^2.6.0", @@ -9581,7 +9541,7 @@ "dependencies": { "commander": { "version": "2.20.0", - "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.20.0.tgz?cache=0&sync_timestamp=1565398176321&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.20.0.tgz", + "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.20.0.tgz?cache=0&sync_timestamp=1567155469688&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.20.0.tgz", "integrity": "sha1-1YuytcHuj4ew00ACfp6U4iLFpCI=", "dev": true, "optional": true @@ -9632,7 +9592,7 @@ }, "has-ansi": { "version": "2.0.0", - "resolved": "http://registry.npm.taobao.org/has-ansi/download/has-ansi-2.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/has-ansi/download/has-ansi-2.0.0.tgz", "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", "dev": true, "requires": { @@ -9797,17 +9757,17 @@ "dev": true }, "history": { - "version": "4.9.0", - "resolved": "http://registry.npm.taobao.org/history/download/history-4.9.0.tgz?cache=0&other_urls=http%3A%2F%2Fregistry.npm.taobao.org%2Fhistory%2Fdownload%2Fhistory-4.9.0.tgz", - "integrity": "sha1-hFh8IGgDnq2K92np1qaGChT6G8o=", + "version": "4.10.1", + "resolved": "https://registry.npm.taobao.org/history/download/history-4.10.1.tgz", + "integrity": "sha1-MzcaZeOoOyZ0NOKz87G0xYqtTPM=", "dev": true, "requires": { "@babel/runtime": "^7.1.2", "loose-envify": "^1.2.0", - "resolve-pathname": "^2.2.0", + "resolve-pathname": "^3.0.0", "tiny-invariant": "^1.0.2", "tiny-warning": "^1.0.0", - "value-equal": "^0.4.0" + "value-equal": "^1.0.1" } }, "hmac-drbg": { @@ -9894,7 +9854,7 @@ "dependencies": { "commander": { "version": "2.17.1", - "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.17.1.tgz?cache=0&sync_timestamp=1565398176321&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.17.1.tgz", + "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.17.1.tgz?cache=0&sync_timestamp=1567155469688&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.17.1.tgz", "integrity": "sha1-vXerfebelCBc6sxy8XFtKfIKd78=", "dev": true }, @@ -9916,7 +9876,7 @@ "dependencies": { "commander": { "version": "2.19.0", - "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.19.0.tgz?cache=0&sync_timestamp=1565398176321&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.19.0.tgz", + "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.19.0.tgz?cache=0&sync_timestamp=1567155469688&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.19.0.tgz", "integrity": "sha1-9hmKqE5bg8RgVLlN3tv+1e6f8So=", "dev": true } @@ -10049,7 +10009,7 @@ }, "http-proxy": { "version": "1.15.2", - "resolved": "http://registry.npm.taobao.org/http-proxy/download/http-proxy-1.15.2.tgz", + "resolved": "https://registry.npm.taobao.org/http-proxy/download/http-proxy-1.15.2.tgz?cache=0&sync_timestamp=1568770934756&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhttp-proxy%2Fdownload%2Fhttp-proxy-1.15.2.tgz", "integrity": "sha1-ZC/cr/5S00SNK9o7AHnpQJBk2jE=", "dev": true, "requires": { @@ -10097,13 +10057,13 @@ }, "ignore": { "version": "3.3.10", - "resolved": "https://registry.npm.taobao.org/ignore/download/ignore-3.3.10.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fignore%2Fdownload%2Fignore-3.3.10.tgz", + "resolved": "https://registry.npm.taobao.org/ignore/download/ignore-3.3.10.tgz", "integrity": "sha1-Cpf7h2mG6AgcYxFg+PnziRV/AEM=", "dev": true }, "image-size": { "version": "0.5.5", - "resolved": "https://registry.npm.taobao.org/image-size/download/image-size-0.5.5.tgz", + "resolved": "https://registry.npm.taobao.org/image-size/download/image-size-0.5.5.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fimage-size%2Fdownload%2Fimage-size-0.5.5.tgz", "integrity": "sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=", "dev": true, "optional": true @@ -10258,7 +10218,7 @@ }, "is-absolute-url": { "version": "2.1.0", - "resolved": "http://registry.npm.taobao.org/is-absolute-url/download/is-absolute-url-2.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/is-absolute-url/download/is-absolute-url-2.1.0.tgz", "integrity": "sha1-UFMN+4T8yap9vnhS6Do3uTufKqY=", "dev": true }, @@ -10400,7 +10360,7 @@ }, "is-installed-globally": { "version": "0.1.0", - "resolved": "https://registry.npm.taobao.org/is-installed-globally/download/is-installed-globally-0.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/is-installed-globally/download/is-installed-globally-0.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-installed-globally%2Fdownload%2Fis-installed-globally-0.1.0.tgz", "integrity": "sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA=", "dev": true, "requires": { @@ -10534,9 +10494,9 @@ } }, "is-retry-allowed": { - "version": "1.1.0", - "resolved": "http://registry.npm.taobao.org/is-retry-allowed/download/is-retry-allowed-1.1.0.tgz", - "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ=", + "version": "1.2.0", + "resolved": "https://registry.npm.taobao.org/is-retry-allowed/download/is-retry-allowed-1.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-retry-allowed%2Fdownload%2Fis-retry-allowed-1.2.0.tgz", + "integrity": "sha1-13hIi9CkZmo76KFIK58rqv7eqLQ=", "dev": true }, "is-root": { @@ -10604,7 +10564,7 @@ }, "is-wsl": { "version": "1.1.0", - "resolved": "https://registry.npm.taobao.org/is-wsl/download/is-wsl-1.1.0.tgz?cache=0&sync_timestamp=1561271040070&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-wsl%2Fdownload%2Fis-wsl-1.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/is-wsl/download/is-wsl-1.1.0.tgz?cache=0&sync_timestamp=1569219622778&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fis-wsl%2Fdownload%2Fis-wsl-1.1.0.tgz", "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", "dev": true }, @@ -10860,7 +10820,7 @@ }, "json-schema": { "version": "0.2.3", - "resolved": "http://registry.npm.taobao.org/json-schema/download/json-schema-0.2.3.tgz", + "resolved": "https://registry.npm.taobao.org/json-schema/download/json-schema-0.2.3.tgz?cache=0&sync_timestamp=1567740732347&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fjson-schema%2Fdownload%2Fjson-schema-0.2.3.tgz", "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", "dev": true }, @@ -11024,7 +10984,7 @@ }, "less": { "version": "2.7.3", - "resolved": "https://registry.npm.taobao.org/less/download/less-2.7.3.tgz?cache=0&sync_timestamp=1565238747756&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fless%2Fdownload%2Fless-2.7.3.tgz", + "resolved": "https://registry.npm.taobao.org/less/download/less-2.7.3.tgz", "integrity": "sha1-zBJg9RyQCp7A2R+2mYE54CUHtjs=", "dev": true, "requires": { @@ -11065,7 +11025,7 @@ }, "form-data": { "version": "2.1.4", - "resolved": "https://registry.npm.taobao.org/form-data/download/form-data-2.1.4.tgz", + "resolved": "https://registry.npm.taobao.org/form-data/download/form-data-2.1.4.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fform-data%2Fdownload%2Fform-data-2.1.4.tgz", "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", "dev": true, "optional": true, @@ -11128,7 +11088,7 @@ }, "qs": { "version": "6.4.0", - "resolved": "http://registry.npm.taobao.org/qs/download/qs-6.4.0.tgz", + "resolved": "https://registry.npm.taobao.org/qs/download/qs-6.4.0.tgz?cache=0&sync_timestamp=1569207136481&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fqs%2Fdownload%2Fqs-6.4.0.tgz", "integrity": "sha1-E+JtKK1rD/qpExLNO/cI7TUecjM=", "dev": true, "optional": true @@ -11418,7 +11378,7 @@ }, "yargs": { "version": "6.6.0", - "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-6.6.0.tgz", + "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-6.6.0.tgz?cache=0&sync_timestamp=1567812322754&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-6.6.0.tgz", "integrity": "sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg=", "dev": true, "requires": { @@ -11847,9 +11807,9 @@ "dev": true }, "merge2": { - "version": "1.2.4", - "resolved": "https://registry.npm.taobao.org/merge2/download/merge2-1.2.4.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmerge2%2Fdownload%2Fmerge2-1.2.4.tgz", - "integrity": "sha1-ySaVieaIWmDPgGBdlSLUtnymRuM=", + "version": "1.3.0", + "resolved": "https://registry.npm.taobao.org/merge2/download/merge2-1.3.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmerge2%2Fdownload%2Fmerge2-1.3.0.tgz", + "integrity": "sha1-WzZu6DsvFYLEj4fkfPGpNSEDyoE=", "dev": true }, "methods": { @@ -11897,7 +11857,7 @@ }, "mime-db": { "version": "1.40.0", - "resolved": "https://registry.npm.taobao.org/mime-db/download/mime-db-1.40.0.tgz", + "resolved": "https://registry.npm.taobao.org/mime-db/download/mime-db-1.40.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fmime-db%2Fdownload%2Fmime-db-1.40.0.tgz", "integrity": "sha1-plBX6ZjbCQ9zKmj2wnbTh9QSbDI=", "dev": true }, @@ -12082,7 +12042,7 @@ }, "cross-spawn": { "version": "6.0.5", - "resolved": "http://registry.npm.taobao.org/cross-spawn/download/cross-spawn-6.0.5.tgz", + "resolved": "https://registry.npm.taobao.org/cross-spawn/download/cross-spawn-6.0.5.tgz?cache=0&sync_timestamp=1567511270254&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcross-spawn%2Fdownload%2Fcross-spawn-6.0.5.tgz", "integrity": "sha1-Sl7Hxk364iw6FBJNus3uhG2Ay8Q=", "dev": true, "requires": { @@ -12093,15 +12053,9 @@ "which": "^1.2.9" } }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "http://registry.npm.taobao.org/emoji-regex/download/emoji-regex-7.0.3.tgz", - "integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY=", - "dev": true - }, "execa": { "version": "1.0.0", - "resolved": "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz?cache=0&sync_timestamp=1562315784630&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexeca%2Fdownload%2Fexeca-1.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz", "integrity": "sha1-xiNqW7TfbW8V6I5/AXeYIWdJ3dg=", "dev": true, "requires": { @@ -12195,9 +12149,9 @@ } }, "p-limit": { - "version": "2.2.0", - "resolved": "http://registry.npm.taobao.org/p-limit/download/p-limit-2.2.0.tgz", - "integrity": "sha1-QXyZQeYCepq8ulCS3SkE4lW1+8I=", + "version": "2.2.1", + "resolved": "https://registry.npm.taobao.org/p-limit/download/p-limit-2.2.1.tgz", + "integrity": "sha1-qgeniMwxUck5tRMfY1cPDdIAlTc=", "dev": true, "requires": { "p-try": "^2.0.0" @@ -12269,7 +12223,7 @@ }, "yargs": { "version": "13.2.2", - "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-13.2.2.tgz", + "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-13.2.2.tgz?cache=0&sync_timestamp=1567812322754&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-13.2.2.tgz", "integrity": "sha1-DBAfWArpXOp/Odkn53cOP9yX+ZM=", "dev": true, "requires": { @@ -12288,7 +12242,7 @@ }, "yargs-parser": { "version": "13.0.0", - "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-13.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-13.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-13.0.0.tgz?cache=0&sync_timestamp=1567798682591&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-13.0.0.tgz", "integrity": "sha1-P8RPPnaovbHMNgLoYBCGAuXM3os=", "dev": true, "requires": { @@ -12571,7 +12525,7 @@ }, "normalize-url": { "version": "1.9.1", - "resolved": "http://registry.npm.taobao.org/normalize-url/download/normalize-url-1.9.1.tgz", + "resolved": "https://registry.npm.taobao.org/normalize-url/download/normalize-url-1.9.1.tgz", "integrity": "sha1-LMDWazHqIwNkWENuNiDYWVTGbDw=", "dev": true, "requires": { @@ -12582,9 +12536,9 @@ } }, "npm": { - "version": "6.10.3", - "resolved": "https://registry.npm.taobao.org/npm/download/npm-6.10.3.tgz?cache=0&sync_timestamp=1565109043861&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnpm%2Fdownload%2Fnpm-6.10.3.tgz", - "integrity": "sha1-gxlVmPiTCkDuSAVniDhjMhYmZm4=", + "version": "6.11.3", + "resolved": "https://registry.npm.taobao.org/npm/download/npm-6.11.3.tgz?cache=0&sync_timestamp=1567577255374&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnpm%2Fdownload%2Fnpm-6.11.3.tgz", + "integrity": "sha1-cw9Gt8xbvG8E3Ve1aZvgyfI1ndo=", "dev": true, "requires": { "JSONStream": "^1.3.5", @@ -12593,16 +12547,16 @@ "ansistyles": "~0.1.3", "aproba": "^2.0.0", "archy": "~1.0.0", - "bin-links": "^1.1.2", + "bin-links": "^1.1.3", "bluebird": "^3.5.5", "byte-size": "^5.0.1", - "cacache": "^12.0.2", + "cacache": "^12.0.3", "call-limit": "^1.1.1", "chownr": "^1.1.2", "ci-info": "^2.0.0", "cli-columns": "^3.1.2", "cli-table3": "^0.5.1", - "cmd-shim": "~2.0.2", + "cmd-shim": "^3.0.3", "columnify": "~1.5.4", "config-chain": "^1.1.12", "debuglog": "*", @@ -12614,9 +12568,9 @@ "find-npm-prefix": "^1.0.2", "fs-vacuum": "~1.2.10", "fs-write-stream-atomic": "~1.0.10", - "gentle-fs": "^2.0.1", + "gentle-fs": "^2.2.1", "glob": "^7.1.4", - "graceful-fs": "^4.2.0", + "graceful-fs": "^4.2.2", "has-unicode": "~2.0.1", "hosted-git-info": "^2.8.2", "iferr": "^1.0.2", @@ -12629,7 +12583,7 @@ "is-cidr": "^3.0.0", "json-parse-better-errors": "^1.0.2", "lazy-property": "~1.0.0", - "libcipm": "^4.0.0", + "libcipm": "^4.0.3", "libnpm": "^3.0.1", "libnpmaccess": "^3.0.2", "libnpmhook": "^5.0.3", @@ -12661,10 +12615,10 @@ "npm-audit-report": "^1.3.2", "npm-cache-filename": "~1.0.2", "npm-install-checks": "~3.0.0", - "npm-lifecycle": "^3.1.2", - "npm-package-arg": "^6.1.0", + "npm-lifecycle": "^3.1.3", + "npm-package-arg": "^6.1.1", "npm-packlist": "^1.4.4", - "npm-pick-manifest": "^2.2.3", + "npm-pick-manifest": "^3.0.2", "npm-profile": "^4.0.2", "npm-registry-fetch": "^4.0.0", "npm-user-validate": "~1.0.0", @@ -12672,16 +12626,16 @@ "once": "~1.4.0", "opener": "^1.5.1", "osenv": "^0.1.5", - "pacote": "^9.5.4", + "pacote": "^9.5.8", "path-is-inside": "~1.0.2", "promise-inflight": "~1.0.1", "qrcode-terminal": "^0.12.0", "query-string": "^6.8.2", "qw": "~1.0.1", "read": "~1.0.7", - "read-cmd-shim": "~1.0.1", + "read-cmd-shim": "^1.0.4", "read-installed": "~4.0.3", - "read-package-json": "^2.0.13", + "read-package-json": "^2.1.0", "read-package-tree": "^5.3.1", "readable-stream": "^3.4.0", "readdir-scoped-modules": "^1.1.0", @@ -12689,7 +12643,7 @@ "retry": "^0.12.0", "rimraf": "^2.6.3", "safe-buffer": "^5.1.2", - "semver": "^5.7.0", + "semver": "^5.7.1", "sha": "^3.0.0", "slide": "~1.1.6", "sorted-object": "~2.0.1", @@ -12875,14 +12829,14 @@ } }, "bin-links": { - "version": "1.1.2", + "version": "1.1.3", "bundled": true, "dev": true, "requires": { - "bluebird": "^3.5.0", - "cmd-shim": "^2.0.2", - "gentle-fs": "^2.0.0", - "graceful-fs": "^4.1.11", + "bluebird": "^3.5.3", + "cmd-shim": "^3.0.0", + "gentle-fs": "^2.0.1", + "graceful-fs": "^4.1.15", "write-file-atomic": "^2.3.0" } }, @@ -12935,7 +12889,7 @@ "dev": true }, "cacache": { - "version": "12.0.2", + "version": "12.0.3", "bundled": true, "dev": true, "requires": { @@ -13059,7 +13013,7 @@ "dev": true }, "cmd-shim": { - "version": "2.0.2", + "version": "3.0.3", "bundled": true, "dev": true, "requires": { @@ -13730,14 +13684,16 @@ "dev": true }, "gentle-fs": { - "version": "2.0.1", + "version": "2.2.1", "bundled": true, "dev": true, "requires": { "aproba": "^1.1.2", + "chownr": "^1.1.2", "fs-vacuum": "^1.2.10", "graceful-fs": "^4.1.11", "iferr": "^0.1.5", + "infer-owner": "^1.0.4", "mkdirp": "^0.5.1", "path-is-inside": "^1.0.2", "read-cmd-shim": "^1.0.1", @@ -13824,7 +13780,7 @@ } }, "graceful-fs": { - "version": "4.2.0", + "version": "4.2.2", "bundled": true, "dev": true }, @@ -14182,7 +14138,7 @@ } }, "libcipm": { - "version": "4.0.0", + "version": "4.0.3", "bundled": true, "dev": true, "requires": { @@ -14726,7 +14682,7 @@ } }, "npm-lifecycle": { - "version": "3.1.2", + "version": "3.1.3", "bundled": true, "dev": true, "requires": { @@ -14746,13 +14702,13 @@ "dev": true }, "npm-package-arg": { - "version": "6.1.0", + "version": "6.1.1", "bundled": true, "dev": true, "requires": { - "hosted-git-info": "^2.6.0", + "hosted-git-info": "^2.7.1", "osenv": "^0.1.5", - "semver": "^5.5.0", + "semver": "^5.6.0", "validate-npm-package-name": "^3.0.0" } }, @@ -14766,7 +14722,7 @@ } }, "npm-pick-manifest": { - "version": "2.2.3", + "version": "3.0.2", "bundled": true, "dev": true, "requires": { @@ -14931,15 +14887,17 @@ } }, "pacote": { - "version": "9.5.4", + "version": "9.5.8", "bundled": true, "dev": true, "requires": { "bluebird": "^3.5.3", - "cacache": "^12.0.0", + "cacache": "^12.0.2", + "chownr": "^1.1.2", "figgy-pudding": "^3.5.1", "get-stream": "^4.1.0", "glob": "^7.1.3", + "infer-owner": "^1.0.4", "lru-cache": "^5.1.1", "make-fetch-happen": "^5.0.0", "minimatch": "^3.0.4", @@ -14949,7 +14907,7 @@ "normalize-package-data": "^2.4.0", "npm-package-arg": "^6.1.0", "npm-packlist": "^1.1.12", - "npm-pick-manifest": "^2.2.3", + "npm-pick-manifest": "^3.0.0", "npm-registry-fetch": "^4.0.0", "osenv": "^0.1.5", "promise-inflight": "^1.0.1", @@ -14959,7 +14917,7 @@ "safe-buffer": "^5.1.2", "semver": "^5.6.0", "ssri": "^6.0.1", - "tar": "^4.4.8", + "tar": "^4.4.10", "unique-filename": "^1.1.1", "which": "^1.3.1" }, @@ -15198,7 +15156,7 @@ } }, "read-cmd-shim": { - "version": "1.0.1", + "version": "1.0.4", "bundled": true, "dev": true, "requires": { @@ -15220,7 +15178,7 @@ } }, "read-package-json": { - "version": "2.0.13", + "version": "2.1.0", "bundled": true, "dev": true, "requires": { @@ -15360,7 +15318,7 @@ "dev": true }, "semver": { - "version": "5.7.0", + "version": "5.7.1", "bundled": true, "dev": true }, @@ -18783,6 +18741,12 @@ } } }, + "object-inspect": { + "version": "1.6.0", + "resolved": "https://registry.npm.taobao.org/object-inspect/download/object-inspect-1.6.0.tgz", + "integrity": "sha1-xwtsv3LydKq0w0wMgvUWe/gs8Vs=", + "dev": true + }, "object-keys": { "version": "1.1.1", "resolved": "http://registry.npm.taobao.org/object-keys/download/object-keys-1.1.1.tgz", @@ -18988,7 +18952,7 @@ "dependencies": { "webpack-sources": { "version": "0.1.5", - "resolved": "https://registry.npm.taobao.org/webpack-sources/download/webpack-sources-0.1.5.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwebpack-sources%2Fdownload%2Fwebpack-sources-0.1.5.tgz", + "resolved": "https://registry.npm.taobao.org/webpack-sources/download/webpack-sources-0.1.5.tgz", "integrity": "sha1-qh86vw8NdNtxEcQOUAuE+WZkB1A=", "dev": true, "requires": { @@ -19022,7 +18986,7 @@ }, "ora": { "version": "1.4.0", - "resolved": "http://registry.npm.taobao.org/ora/download/ora-1.4.0.tgz", + "resolved": "https://registry.npm.taobao.org/ora/download/ora-1.4.0.tgz?cache=0&sync_timestamp=1569229095369&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fora%2Fdownload%2Fora-1.4.0.tgz", "integrity": "sha1-iERYIVs6XUCXWSKF+TMhu3p54uU=", "dev": true, "requires": { @@ -19088,7 +19052,7 @@ }, "p-limit": { "version": "1.3.0", - "resolved": "http://registry.npm.taobao.org/p-limit/download/p-limit-1.3.0.tgz", + "resolved": "https://registry.npm.taobao.org/p-limit/download/p-limit-1.3.0.tgz", "integrity": "sha1-uGvV8MJWkJEcdZD8v8IBDVSzzLg=", "dev": true, "requires": { @@ -19153,9 +19117,9 @@ } }, "parse-asn1": { - "version": "5.1.4", - "resolved": "http://registry.npm.taobao.org/parse-asn1/download/parse-asn1-5.1.4.tgz", - "integrity": "sha1-N/Zij4I/vesic7TVQENKIvPvH8w=", + "version": "5.1.5", + "resolved": "https://registry.npm.taobao.org/parse-asn1/download/parse-asn1-5.1.5.tgz", + "integrity": "sha1-ADJxND2ljclMrOSU+u89IUfs6g4=", "dev": true, "requires": { "asn1.js": "^4.0.0", @@ -19211,7 +19175,7 @@ }, "parseuri": { "version": "0.0.5", - "resolved": "http://registry.npm.taobao.org/parseuri/download/parseuri-0.0.5.tgz", + "resolved": "https://registry.npm.taobao.org/parseuri/download/parseuri-0.0.5.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fparseuri%2Fdownload%2Fparseuri-0.0.5.tgz", "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=", "dev": true, "requires": { @@ -19274,7 +19238,7 @@ }, "path-to-regexp": { "version": "0.1.7", - "resolved": "http://registry.npm.taobao.org/path-to-regexp/download/path-to-regexp-0.1.7.tgz", + "resolved": "https://registry.npm.taobao.org/path-to-regexp/download/path-to-regexp-0.1.7.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpath-to-regexp%2Fdownload%2Fpath-to-regexp-0.1.7.tgz", "integrity": "sha1-32BBeABfUi8V60SQ5yR6G/qmf4w=", "dev": true }, @@ -19414,7 +19378,7 @@ }, "ansi-styles": { "version": "2.2.1", - "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz", + "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz?cache=0&sync_timestamp=1566430562325&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, @@ -20023,9 +19987,9 @@ "dev": true }, "psl": { - "version": "1.3.0", - "resolved": "https://registry.npm.taobao.org/psl/download/psl-1.3.0.tgz", - "integrity": "sha1-4ev2o7VWT6g3bz2iJ12nbYdcob0=", + "version": "1.4.0", + "resolved": "https://registry.npm.taobao.org/psl/download/psl-1.4.0.tgz", + "integrity": "sha1-XdJhVs22n6H9uKsZkWZ9P4DO18I=", "dev": true }, "public-encrypt": { @@ -20066,13 +20030,13 @@ }, "qs": { "version": "6.5.2", - "resolved": "http://registry.npm.taobao.org/qs/download/qs-6.5.2.tgz", + "resolved": "https://registry.npm.taobao.org/qs/download/qs-6.5.2.tgz?cache=0&sync_timestamp=1569207136481&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fqs%2Fdownload%2Fqs-6.5.2.tgz", "integrity": "sha1-yzroBuh0BERYTvFUzo7pjUA/PjY=", "dev": true }, "query-string": { "version": "4.3.4", - "resolved": "https://registry.npm.taobao.org/query-string/download/query-string-4.3.4.tgz", + "resolved": "https://registry.npm.taobao.org/query-string/download/query-string-4.3.4.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fquery-string%2Fdownload%2Fquery-string-4.3.4.tgz", "integrity": "sha1-u7aTucqRXCMlFbIosaArYJBD2+s=", "dev": true, "requires": { @@ -20186,7 +20150,7 @@ }, "react": { "version": "16.9.0", - "resolved": "https://registry.npm.taobao.org/react/download/react-16.9.0.tgz?cache=0&sync_timestamp=1565317892814&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Freact%2Fdownload%2Freact-16.9.0.tgz", + "resolved": "https://registry.npm.taobao.org/react/download/react-16.9.0.tgz", "integrity": "sha1-QLovmvE7waONddvy9DWaUYXE96o=", "dev": true, "requires": { @@ -20229,7 +20193,7 @@ }, "ansi-styles": { "version": "2.2.1", - "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz", + "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz?cache=0&sync_timestamp=1566430562325&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, @@ -20276,7 +20240,7 @@ }, "ansi-styles": { "version": "3.2.1", - "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-3.2.1.tgz", + "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-3.2.1.tgz?cache=0&sync_timestamp=1566430562325&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-3.2.1.tgz", "integrity": "sha1-QfuyAkPlCxK+DwS43tvwdSDOhB0=", "dev": true, "requires": { @@ -20363,7 +20327,7 @@ }, "react-router": { "version": "5.0.1", - "resolved": "https://registry.npm.taobao.org/react-router/download/react-router-5.0.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Freact-router%2Fdownload%2Freact-router-5.0.1.tgz", + "resolved": "https://registry.npm.taobao.org/react-router/download/react-router-5.0.1.tgz", "integrity": "sha1-BO533x0atsuJOfnwGtVwLbrbiw8=", "dev": true, "requires": { @@ -20387,7 +20351,7 @@ }, "path-to-regexp": { "version": "1.7.0", - "resolved": "http://registry.npm.taobao.org/path-to-regexp/download/path-to-regexp-1.7.0.tgz", + "resolved": "https://registry.npm.taobao.org/path-to-regexp/download/path-to-regexp-1.7.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpath-to-regexp%2Fdownload%2Fpath-to-regexp-1.7.0.tgz", "integrity": "sha1-Wf3g9DW62suhA6hOnTvGTpa5k30=", "dev": true, "requires": { @@ -20424,7 +20388,7 @@ }, "path-to-regexp": { "version": "1.7.0", - "resolved": "http://registry.npm.taobao.org/path-to-regexp/download/path-to-regexp-1.7.0.tgz", + "resolved": "https://registry.npm.taobao.org/path-to-regexp/download/path-to-regexp-1.7.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpath-to-regexp%2Fdownload%2Fpath-to-regexp-1.7.0.tgz", "integrity": "sha1-Wf3g9DW62suhA6hOnTvGTpa5k30=", "dev": true, "requires": { @@ -20433,7 +20397,7 @@ }, "react-router": { "version": "4.3.1", - "resolved": "https://registry.npm.taobao.org/react-router/download/react-router-4.3.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Freact-router%2Fdownload%2Freact-router-4.3.1.tgz", + "resolved": "https://registry.npm.taobao.org/react-router/download/react-router-4.3.1.tgz", "integrity": "sha1-qtpK7xTICcsuaGsFzuR0IjRQbE4=", "dev": true, "requires": { @@ -20858,20 +20822,12 @@ } }, "reduce-function-call": { - "version": "1.0.2", - "resolved": "http://registry.npm.taobao.org/reduce-function-call/download/reduce-function-call-1.0.2.tgz", - "integrity": "sha1-WiAL+S4ON3UXUv5FsKszD9S2vpk=", + "version": "1.0.3", + "resolved": "https://registry.npm.taobao.org/reduce-function-call/download/reduce-function-call-1.0.3.tgz?cache=0&sync_timestamp=1568266769600&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Freduce-function-call%2Fdownload%2Freduce-function-call-1.0.3.tgz", + "integrity": "sha1-YDUPf7JSwKZ+sQ/UaU0WkJlxMA8=", "dev": true, "requires": { - "balanced-match": "^0.4.2" - }, - "dependencies": { - "balanced-match": { - "version": "0.4.2", - "resolved": "http://registry.npm.taobao.org/balanced-match/download/balanced-match-0.4.2.tgz", - "integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=", - "dev": true - } + "balanced-match": "^1.0.0" } }, "regenerate": { @@ -20918,7 +20874,7 @@ }, "regexpp": { "version": "2.0.1", - "resolved": "http://registry.npm.taobao.org/regexpp/download/regexpp-2.0.1.tgz", + "resolved": "https://registry.npm.taobao.org/regexpp/download/regexpp-2.0.1.tgz?cache=0&sync_timestamp=1567160849322&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fregexpp%2Fdownload%2Fregexpp-2.0.1.tgz", "integrity": "sha1-jRnTHPYySCtYkEn4KB+T28uk0H8=", "dev": true }, @@ -21184,9 +21140,9 @@ "dev": true }, "resolve-pathname": { - "version": "2.2.0", - "resolved": "http://registry.npm.taobao.org/resolve-pathname/download/resolve-pathname-2.2.0.tgz", - "integrity": "sha1-fpriHtgV/WOrGJre7mTcgx7vqHk=", + "version": "3.0.0", + "resolved": "http://registry.npm.taobao.org/resolve-pathname/download/resolve-pathname-3.0.0.tgz", + "integrity": "sha1-mdAiJNPPJjaJvsuzk7xWAxMCXc0=", "dev": true }, "resolve-url": { @@ -21254,9 +21210,9 @@ "dev": true }, "rimraf": { - "version": "2.6.3", - "resolved": "http://registry.npm.taobao.org/rimraf/download/rimraf-2.6.3.tgz", - "integrity": "sha1-stEE/g2Psnz54KHNqCYt04M8bKs=", + "version": "2.7.1", + "resolved": "https://registry.npm.taobao.org/rimraf/download/rimraf-2.7.1.tgz", + "integrity": "sha1-NXl/E6f9rcVmFCwp1PB8ytSD4+w=", "dev": true, "requires": { "glob": "^7.1.3" @@ -21310,7 +21266,7 @@ }, "rxjs": { "version": "5.5.12", - "resolved": "https://registry.npm.taobao.org/rxjs/download/rxjs-5.5.12.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Frxjs%2Fdownload%2Frxjs-5.5.12.tgz", + "resolved": "https://registry.npm.taobao.org/rxjs/download/rxjs-5.5.12.tgz", "integrity": "sha1-b6YbinfD15PbrycL7i9D9lLXQcw=", "dev": true, "requires": { @@ -21365,7 +21321,7 @@ }, "schema-utils": { "version": "0.3.0", - "resolved": "https://registry.npm.taobao.org/schema-utils/download/schema-utils-0.3.0.tgz", + "resolved": "https://registry.npm.taobao.org/schema-utils/download/schema-utils-0.3.0.tgz?cache=0&sync_timestamp=1567421597140&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fschema-utils%2Fdownload%2Fschema-utils-0.3.0.tgz", "integrity": "sha1-9YdyIs4+kx7a4DnxfrNxbnE3+M8=", "dev": true, "requires": { @@ -21627,7 +21583,7 @@ }, "shebang-command": { "version": "1.2.0", - "resolved": "http://registry.npm.taobao.org/shebang-command/download/shebang-command-1.2.0.tgz", + "resolved": "https://registry.npm.taobao.org/shebang-command/download/shebang-command-1.2.0.tgz", "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "dev": true, "requires": { @@ -21684,7 +21640,7 @@ }, "slice-ansi": { "version": "2.1.0", - "resolved": "http://registry.npm.taobao.org/slice-ansi/download/slice-ansi-2.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/slice-ansi/download/slice-ansi-2.1.0.tgz", "integrity": "sha1-ys12k0YaY3pXiNkqfdT7oGjoFjY=", "dev": true, "requires": { @@ -21828,7 +21784,7 @@ }, "socket.io": { "version": "2.1.1", - "resolved": "http://registry.npm.taobao.org/socket.io/download/socket.io-2.1.1.tgz", + "resolved": "https://registry.npm.taobao.org/socket.io/download/socket.io-2.1.1.tgz", "integrity": "sha1-oGnF/qvuPmshSnW0DOBlLhz7mYA=", "dev": true, "requires": { @@ -21857,7 +21813,7 @@ }, "engine.io-client": { "version": "3.2.1", - "resolved": "http://registry.npm.taobao.org/engine.io-client/download/engine.io-client-3.2.1.tgz", + "resolved": "https://registry.npm.taobao.org/engine.io-client/download/engine.io-client-3.2.1.tgz", "integrity": "sha1-b1TAR13khxWKGnx30QF4cItq3TY=", "dev": true, "requires": { @@ -21874,6 +21830,19 @@ "yeast": "0.1.2" } }, + "engine.io-parser": { + "version": "2.1.3", + "resolved": "https://registry.npm.taobao.org/engine.io-parser/download/engine.io-parser-2.1.3.tgz", + "integrity": "sha1-dXq5cPvy37Mse3SwMyFtVznveaY=", + "dev": true, + "requires": { + "after": "0.8.2", + "arraybuffer.slice": "~0.0.7", + "base64-arraybuffer": "0.1.5", + "blob": "0.0.5", + "has-binary2": "~1.0.2" + } + }, "isarray": { "version": "2.0.1", "resolved": "https://registry.npm.taobao.org/isarray/download/isarray-2.0.1.tgz?cache=0&sync_timestamp=1562592096220&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fisarray%2Fdownload%2Fisarray-2.0.1.tgz", @@ -21888,7 +21857,7 @@ }, "socket.io-client": { "version": "2.1.1", - "resolved": "http://registry.npm.taobao.org/socket.io-client/download/socket.io-client-2.1.1.tgz", + "resolved": "https://registry.npm.taobao.org/socket.io-client/download/socket.io-client-2.1.1.tgz?cache=0&sync_timestamp=1568975496256&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsocket.io-client%2Fdownload%2Fsocket.io-client-2.1.1.tgz", "integrity": "sha1-3LOBA0NqtFeN2wJmOK4vIbYjZx8=", "dev": true, "requires": { @@ -21910,7 +21879,7 @@ }, "socket.io-parser": { "version": "3.2.0", - "resolved": "http://registry.npm.taobao.org/socket.io-parser/download/socket.io-parser-3.2.0.tgz", + "resolved": "https://registry.npm.taobao.org/socket.io-parser/download/socket.io-parser-3.2.0.tgz", "integrity": "sha1-58Yii2qh+BTmFIrqMltRqpSZ4Hc=", "dev": true, "requires": { @@ -21939,17 +21908,17 @@ "dev": true }, "socket.io-client": { - "version": "2.2.0", - "resolved": "http://registry.npm.taobao.org/socket.io-client/download/socket.io-client-2.2.0.tgz", - "integrity": "sha1-hOc+48Q9UCDMwaJY+u65rsJyOvc=", + "version": "2.3.0", + "resolved": "https://registry.npm.taobao.org/socket.io-client/download/socket.io-client-2.3.0.tgz?cache=0&sync_timestamp=1568975496256&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsocket.io-client%2Fdownload%2Fsocket.io-client-2.3.0.tgz", + "integrity": "sha1-FNW6LgC5vNFFrkQ6uWs/hsvMG7Q=", "dev": true, "requires": { "backo2": "1.0.2", "base64-arraybuffer": "0.1.5", "component-bind": "1.0.0", "component-emitter": "1.2.1", - "debug": "~3.1.0", - "engine.io-client": "~3.3.1", + "debug": "~4.1.0", + "engine.io-client": "~3.4.0", "has-binary2": "~1.0.2", "has-cors": "1.1.0", "indexof": "0.0.1", @@ -21967,19 +21936,25 @@ "dev": true }, "debug": { - "version": "3.1.0", - "resolved": "http://registry.npm.taobao.org/debug/download/debug-3.1.0.tgz", - "integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=", + "version": "4.1.1", + "resolved": "http://registry.npm.taobao.org/debug/download/debug-4.1.1.tgz", + "integrity": "sha1-O3ImAlUQnGtYnO4FDx1RYTlmR5E=", "dev": true, "requires": { - "ms": "2.0.0" + "ms": "^2.1.1" } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npm.taobao.org/ms/download/ms-2.1.2.tgz", + "integrity": "sha1-0J0fNXtEP0kzgqjrPM0YOHKuYAk=", + "dev": true } } }, "socket.io-parser": { "version": "3.3.0", - "resolved": "http://registry.npm.taobao.org/socket.io-parser/download/socket.io-parser-3.3.0.tgz", + "resolved": "https://registry.npm.taobao.org/socket.io-parser/download/socket.io-parser-3.3.0.tgz", "integrity": "sha1-K1KpalCf3zFEC6QP7WCUx9TxJi8=", "dev": true, "requires": { @@ -22013,7 +21988,7 @@ }, "sockjs-client": { "version": "1.1.5", - "resolved": "http://registry.npm.taobao.org/sockjs-client/download/sockjs-client-1.1.5.tgz", + "resolved": "https://registry.npm.taobao.org/sockjs-client/download/sockjs-client-1.1.5.tgz?cache=0&sync_timestamp=1566505930428&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsockjs-client%2Fdownload%2Fsockjs-client-1.1.5.tgz", "integrity": "sha1-G7fA9yIsQPQq3xT0RCy9Eml3GoM=", "dev": true, "requires": { @@ -22038,7 +22013,7 @@ }, "sort-keys": { "version": "1.1.2", - "resolved": "https://registry.npm.taobao.org/sort-keys/download/sort-keys-1.1.2.tgz", + "resolved": "https://registry.npm.taobao.org/sort-keys/download/sort-keys-1.1.2.tgz?cache=0&sync_timestamp=1565864727994&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsort-keys%2Fdownload%2Fsort-keys-1.1.2.tgz", "integrity": "sha1-RBttTTRnmPG05J6JIK37oOVD+a0=", "dev": true, "requires": { @@ -22285,6 +22260,26 @@ "strip-ansi": "^4.0.0" } }, + "string.prototype.trimleft": { + "version": "2.1.0", + "resolved": "https://registry.npm.taobao.org/string.prototype.trimleft/download/string.prototype.trimleft-2.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstring.prototype.trimleft%2Fdownload%2Fstring.prototype.trimleft-2.1.0.tgz", + "integrity": "sha1-bMR/DX641isPNwFhFxWjlUWR1jQ=", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "function-bind": "^1.1.1" + } + }, + "string.prototype.trimright": { + "version": "2.1.0", + "resolved": "https://registry.npm.taobao.org/string.prototype.trimright/download/string.prototype.trimright-2.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fstring.prototype.trimright%2Fdownload%2Fstring.prototype.trimright-2.1.0.tgz", + "integrity": "sha1-Zp0WS+nfm291WfqOiZRbFopabFg=", + "dev": true, + "requires": { + "define-properties": "^1.1.3", + "function-bind": "^1.1.1" + } + }, "string_decoder": { "version": "1.1.1", "resolved": "https://registry.npm.taobao.org/string_decoder/download/string_decoder-1.1.1.tgz", @@ -22465,9 +22460,9 @@ "dev": true }, "table": { - "version": "5.4.5", - "resolved": "https://registry.npm.taobao.org/table/download/table-5.4.5.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftable%2Fdownload%2Ftable-5.4.5.tgz", - "integrity": "sha1-yPTqLY/uCMACf6wnsOwKT+Ad+kI=", + "version": "5.4.6", + "resolved": "https://registry.npm.taobao.org/table/download/table-5.4.6.tgz", + "integrity": "sha1-EpLRlQDOP4YFOwXw6Ofko7shB54=", "dev": true, "requires": { "ajv": "^6.10.2", @@ -22482,12 +22477,6 @@ "integrity": "sha1-i5+PCM8ay4Q3Vqg5yox+MWjFGZc=", "dev": true }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "http://registry.npm.taobao.org/emoji-regex/download/emoji-regex-7.0.3.tgz", - "integrity": "sha1-kzoEBShgyF6DwSJHnEdIqOTHIVY=", - "dev": true - }, "lodash": { "version": "4.17.15", "resolved": "https://registry.npm.taobao.org/lodash/download/lodash-4.17.15.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flodash%2Fdownload%2Flodash-4.17.15.tgz", @@ -22570,7 +22559,7 @@ }, "ansi-styles": { "version": "2.2.1", - "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz", + "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-2.2.1.tgz?cache=0&sync_timestamp=1566430562325&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-2.2.1.tgz", "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", "dev": true }, @@ -22628,7 +22617,7 @@ }, "timed-out": { "version": "4.0.1", - "resolved": "http://registry.npm.taobao.org/timed-out/download/timed-out-4.0.1.tgz", + "resolved": "https://registry.npm.taobao.org/timed-out/download/timed-out-4.0.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftimed-out%2Fdownload%2Ftimed-out-4.0.1.tgz", "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=", "dev": true }, @@ -22916,7 +22905,7 @@ }, "ts-node": { "version": "7.0.1", - "resolved": "https://registry.npm.taobao.org/ts-node/download/ts-node-7.0.1.tgz", + "resolved": "https://registry.npm.taobao.org/ts-node/download/ts-node-7.0.1.tgz?cache=0&sync_timestamp=1568594699835&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fts-node%2Fdownload%2Fts-node-7.0.1.tgz", "integrity": "sha1-lWLcLR5tJI0kvFX3c+P2FDN9m68=", "dev": true, "requires": { @@ -22976,9 +22965,9 @@ "dev": true }, "type": { - "version": "1.0.3", - "resolved": "https://registry.npm.taobao.org/type/download/type-1.0.3.tgz", - "integrity": "sha1-FvXTnyei0o2G5I+JgYWenTKWwXk=", + "version": "1.2.0", + "resolved": "https://registry.npm.taobao.org/type/download/type-1.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftype%2Fdownload%2Ftype-1.2.0.tgz", + "integrity": "sha1-hI3XaY2vo+VKbEeedZxLw/GIR6A=", "dev": true }, "type-check": { @@ -22996,12 +22985,6 @@ "integrity": "sha1-dkb7XxiHHPu3dJ5pvTmmOI63RQw=", "dev": true }, - "type-fest": { - "version": "0.5.2", - "resolved": "https://registry.npm.taobao.org/type-fest/download/type-fest-0.5.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftype-fest%2Fdownload%2Ftype-fest-0.5.2.tgz", - "integrity": "sha1-1u9CoDVsbNRfSUhcO2KB/BSOSKI=", - "dev": true - }, "type-is": { "version": "1.6.18", "resolved": "https://registry.npm.taobao.org/type-is/download/type-is-1.6.18.tgz", @@ -23014,7 +22997,7 @@ }, "typescript": { "version": "2.9.2", - "resolved": "https://registry.npm.taobao.org/typescript/download/typescript-2.9.2.tgz", + "resolved": "https://registry.npm.taobao.org/typescript/download/typescript-2.9.2.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ftypescript%2Fdownload%2Ftypescript-2.9.2.tgz", "integrity": "sha1-HL9h0F1rliaSROtqO85L2RTg8Aw=", "dev": true }, @@ -23072,7 +23055,7 @@ }, "yargs": { "version": "3.10.0", - "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-3.10.0.tgz", + "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-3.10.0.tgz?cache=0&sync_timestamp=1567812322754&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-3.10.0.tgz", "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", "dev": true, "requires": { @@ -23228,9 +23211,9 @@ "dev": true }, "upath": { - "version": "1.1.2", - "resolved": "http://registry.npm.taobao.org/upath/download/upath-1.1.2.tgz", - "integrity": "sha1-PbZYYA7a7sy+bbXmhNZ+6MKs0Gg=", + "version": "1.2.0", + "resolved": "https://registry.npm.taobao.org/upath/download/upath-1.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fupath%2Fdownload%2Fupath-1.2.0.tgz", + "integrity": "sha1-j2bbzVWog6za5ECK+LA1pQRMGJQ=", "dev": true }, "update-notifier": { @@ -23379,9 +23362,9 @@ "dev": true }, "uuid": { - "version": "3.3.2", - "resolved": "http://registry.npm.taobao.org/uuid/download/uuid-3.3.2.tgz", - "integrity": "sha1-G0r0lV6zB3xQHCOHL8ZROBFYcTE=", + "version": "3.3.3", + "resolved": "https://registry.npm.taobao.org/uuid/download/uuid-3.3.3.tgz", + "integrity": "sha1-RWjwIW54dg7h2/Ok0s9T4iQRKGY=", "dev": true }, "validate-npm-package-license": { @@ -23395,9 +23378,9 @@ } }, "value-equal": { - "version": "0.4.0", - "resolved": "http://registry.npm.taobao.org/value-equal/download/value-equal-0.4.0.tgz", - "integrity": "sha1-xb3S9U7gk8BIOdcc4uR1imiQq8c=", + "version": "1.0.1", + "resolved": "http://registry.npm.taobao.org/value-equal/download/value-equal-1.0.1.tgz", + "integrity": "sha1-Hgt5THNMXAyt4XnEN9NW2TGjTWw=", "dev": true }, "vary": { @@ -23460,9 +23443,9 @@ } }, "vue-hot-reload-api": { - "version": "2.3.3", - "resolved": "http://registry.npm.taobao.org/vue-hot-reload-api/download/vue-hot-reload-api-2.3.3.tgz", - "integrity": "sha1-J1b0bLMlgFTF9HI96K5+hzAqHM8=", + "version": "2.3.4", + "resolved": "https://registry.npm.taobao.org/vue-hot-reload-api/download/vue-hot-reload-api-2.3.4.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-hot-reload-api%2Fdownload%2Fvue-hot-reload-api-2.3.4.tgz", + "integrity": "sha1-UylVzB6yCKPZkLOp+acFdGV+CPI=", "dev": true }, "vue-loader": { @@ -23634,9 +23617,9 @@ } }, "chokidar": { - "version": "2.1.6", - "resolved": "https://registry.npm.taobao.org/chokidar/download/chokidar-2.1.6.tgz", - "integrity": "sha1-tsrWU6kp4kTOioNCRBZNJB+pVMU=", + "version": "2.1.8", + "resolved": "https://registry.npm.taobao.org/chokidar/download/chokidar-2.1.8.tgz", + "integrity": "sha1-gEs6e2qZNYw8XGHnHYco8EHP+Rc=", "dev": true, "requires": { "anymatch": "^2.0.0", @@ -23815,7 +23798,7 @@ }, "glob-parent": { "version": "3.1.0", - "resolved": "http://registry.npm.taobao.org/glob-parent/download/glob-parent-3.1.0.tgz", + "resolved": "https://registry.npm.taobao.org/glob-parent/download/glob-parent-3.1.0.tgz", "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "dev": true, "requires": { @@ -23957,7 +23940,7 @@ }, "webpack": { "version": "3.12.0", - "resolved": "https://registry.npm.taobao.org/webpack/download/webpack-3.12.0.tgz?cache=0&sync_timestamp=1565103762603&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwebpack%2Fdownload%2Fwebpack-3.12.0.tgz", + "resolved": "https://registry.npm.taobao.org/webpack/download/webpack-3.12.0.tgz?cache=0&sync_timestamp=1568385095149&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwebpack%2Fdownload%2Fwebpack-3.12.0.tgz", "integrity": "sha1-P540NgNwYC/PY56Xk520hvTsDXQ=", "dev": true, "requires": { @@ -24112,7 +24095,7 @@ }, "yargs": { "version": "8.0.2", - "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-8.0.2.tgz", + "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-8.0.2.tgz?cache=0&sync_timestamp=1567812322754&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-8.0.2.tgz", "integrity": "sha1-YpmpBVsc78lp/355wdkY3Osiw2A=", "dev": true, "requires": { @@ -24133,7 +24116,7 @@ }, "yargs-parser": { "version": "7.0.0", - "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-7.0.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-7.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-7.0.0.tgz?cache=0&sync_timestamp=1567798682591&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-7.0.0.tgz", "integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=", "dev": true, "requires": { @@ -24144,7 +24127,7 @@ }, "webpack-sources": { "version": "1.4.3", - "resolved": "https://registry.npm.taobao.org/webpack-sources/download/webpack-sources-1.4.3.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fwebpack-sources%2Fdownload%2Fwebpack-sources-1.4.3.tgz", + "resolved": "https://registry.npm.taobao.org/webpack-sources/download/webpack-sources-1.4.3.tgz", "integrity": "sha1-7t2OwLko+/HL/plOItLYkPMwqTM=", "dev": true, "requires": { @@ -24180,7 +24163,7 @@ "dependencies": { "react": { "version": "0.14.9", - "resolved": "https://registry.npm.taobao.org/react/download/react-0.14.9.tgz?cache=0&sync_timestamp=1565317892814&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Freact%2Fdownload%2Freact-0.14.9.tgz", + "resolved": "https://registry.npm.taobao.org/react/download/react-0.14.9.tgz", "integrity": "sha1-kRCmSXxJ1EuhwO3TF67CnC4NkdE=", "dev": true, "requires": { @@ -24351,7 +24334,7 @@ }, "write": { "version": "1.0.3", - "resolved": "http://registry.npm.taobao.org/write/download/write-1.0.3.tgz", + "resolved": "https://registry.npm.taobao.org/write/download/write-1.0.3.tgz", "integrity": "sha1-CADhRSO5I6OH5BUSPIZWFqrg9cM=", "dev": true, "requires": { @@ -24391,19 +24374,20 @@ "dev": true }, "xml2js": { - "version": "0.4.19", - "resolved": "http://registry.npm.taobao.org/xml2js/download/xml2js-0.4.19.tgz", - "integrity": "sha1-aGwg8hMgnpSr8NG88e+qKRx4J6c=", + "version": "0.4.22", + "resolved": "https://registry.npm.taobao.org/xml2js/download/xml2js-0.4.22.tgz?cache=0&sync_timestamp=1567537927897&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fxml2js%2Fdownload%2Fxml2js-0.4.22.tgz", + "integrity": "sha1-T6LYRuyAMjfehvMKqbX3C2YA3gI=", "dev": true, "requires": { "sax": ">=0.6.0", - "xmlbuilder": "~9.0.1" + "util.promisify": "~1.0.0", + "xmlbuilder": "~11.0.0" }, "dependencies": { "xmlbuilder": { - "version": "9.0.7", - "resolved": "https://registry.npm.taobao.org/xmlbuilder/download/xmlbuilder-9.0.7.tgz", - "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0=", + "version": "11.0.1", + "resolved": "https://registry.npm.taobao.org/xmlbuilder/download/xmlbuilder-11.0.1.tgz", + "integrity": "sha1-vpuuHIoEbnazESdyY0fQrXACvrM=", "dev": true } } @@ -24418,9 +24402,9 @@ } }, "xmlchars": { - "version": "2.1.1", - "resolved": "https://registry.npm.taobao.org/xmlchars/download/xmlchars-2.1.1.tgz", - "integrity": "sha1-7xqBwFv/YpwigAB/EtrKIb1vbJM=", + "version": "2.2.0", + "resolved": "https://registry.npm.taobao.org/xmlchars/download/xmlchars-2.2.0.tgz", + "integrity": "sha1-Bg/hvLf5x2/ioX24apvDq4lCEMs=", "dev": true }, "xmldom": { @@ -24455,7 +24439,7 @@ }, "yargs": { "version": "6.4.0", - "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-6.4.0.tgz", + "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-6.4.0.tgz?cache=0&sync_timestamp=1567812322754&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-6.4.0.tgz", "integrity": "sha1-gW4ahm1VmMzzTlWW3c4i2S2kkNQ=", "dev": true, "requires": { @@ -24608,7 +24592,7 @@ }, "yargs-parser": { "version": "4.2.1", - "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-4.2.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-4.2.1.tgz", + "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-4.2.1.tgz?cache=0&sync_timestamp=1567798682591&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-4.2.1.tgz", "integrity": "sha1-KczqwNxPA8bIe0qfIX3RjJ90hxw=", "dev": true, "requires": { @@ -24653,7 +24637,7 @@ }, "cross-spawn": { "version": "6.0.5", - "resolved": "http://registry.npm.taobao.org/cross-spawn/download/cross-spawn-6.0.5.tgz", + "resolved": "https://registry.npm.taobao.org/cross-spawn/download/cross-spawn-6.0.5.tgz?cache=0&sync_timestamp=1567511270254&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcross-spawn%2Fdownload%2Fcross-spawn-6.0.5.tgz", "integrity": "sha1-Sl7Hxk364iw6FBJNus3uhG2Ay8Q=", "dev": true, "requires": { @@ -24666,7 +24650,7 @@ }, "execa": { "version": "1.0.0", - "resolved": "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz?cache=0&sync_timestamp=1562315784630&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fexeca%2Fdownload%2Fexeca-1.0.0.tgz", + "resolved": "https://registry.npm.taobao.org/execa/download/execa-1.0.0.tgz", "integrity": "sha1-xiNqW7TfbW8V6I5/AXeYIWdJ3dg=", "dev": true, "requires": { @@ -24740,9 +24724,9 @@ } }, "p-limit": { - "version": "2.2.0", - "resolved": "http://registry.npm.taobao.org/p-limit/download/p-limit-2.2.0.tgz", - "integrity": "sha1-QXyZQeYCepq8ulCS3SkE4lW1+8I=", + "version": "2.2.1", + "resolved": "https://registry.npm.taobao.org/p-limit/download/p-limit-2.2.1.tgz", + "integrity": "sha1-qgeniMwxUck5tRMfY1cPDdIAlTc=", "dev": true, "requires": { "p-try": "^2.0.0" @@ -24771,7 +24755,7 @@ }, "yargs": { "version": "12.0.5", - "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-12.0.5.tgz", + "resolved": "https://registry.npm.taobao.org/yargs/download/yargs-12.0.5.tgz?cache=0&sync_timestamp=1567812322754&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs%2Fdownload%2Fyargs-12.0.5.tgz", "integrity": "sha1-BfWZe2CWR7ZPZrgeO0sQo2jnrRM=", "dev": true, "requires": { @@ -24791,7 +24775,7 @@ }, "yargs-parser": { "version": "11.1.1", - "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-11.1.1.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-11.1.1.tgz", + "resolved": "https://registry.npm.taobao.org/yargs-parser/download/yargs-parser-11.1.1.tgz?cache=0&sync_timestamp=1567798682591&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fyargs-parser%2Fdownload%2Fyargs-parser-11.1.1.tgz", "integrity": "sha1-h5oIZZc7yp9rq1y987HGfsfTvPQ=", "dev": true, "requires": { diff --git a/package.json b/package.json index 53ed9c9..175420d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mota", - "version": "3.3.2", + "version": "3.5.1", "description": "mota 是一个面向 React 的状态管理库(http://houfeng.net/mota)", "main": "./dist/mota.js", "typings": "./typings/index.d.ts", diff --git a/src/connect.js b/src/connect.js index 573f06a..46e5c0e 100644 --- a/src/connect.js +++ b/src/connect.js @@ -68,6 +68,8 @@ function createMount(proto) { if (handlers) { handlers.forEach(handler => handler.call(this, ...args)); } + const { constructor: ctor, model, props } = this; + if (ctor.modeInitialize) ctor.modeInitialize.call(ctor, model, props); if (initailMount) return initailMount.call(this, ...args); }; } @@ -87,16 +89,20 @@ function createModelGetter(model) { return function () { const modelInProps = 'model' in this.props; const propModel = this.props.model || {}; - if (this._model_ && (!modelInProps || propModel === this._model_)) { + if (this._model_ && (!modelInProps || propModel === this._prop_model_)) { return this._model_; } + defineGetter(this, '_prop_model_', propModel); clearReference(this); let componentModel = modelInProps ? propModel : model; + if (this.modelWillCreate) { + componentModel = this.modelWillCreate(componentModel) || componentModel; + } if (isNull(componentModel)) componentModel = {}; - let isNewModelInstance = false; if (!isObject(componentModel) && !isFunction(componentModel)) { throw new Error('Invalid Model'); } + let isNewModelInstance = false; if (componentModel instanceof Function) { componentModel = new componentModel(); isNewModelInstance = true;