Comparing version 0.4.2 to 0.4.3
@@ -1,1 +0,1 @@ | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define)define("rax",function(t,n,r){r.exports=e()});else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:this,t.Rax=e()}}(function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=15)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={component:null,mountID:1,sandbox:!0,rootComponents:{},rootInstances:{},hook:null,driver:null,monitor:null},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),u=r(i),l=n(7),a=n(8),f=r(a),s=n(2),d=r(s),c=n(4),p=r(c),v=n(18),h=r(v),y=n(3),m="$$instance";t.default={set:function(e,t){e[m]||(e[m]=t,t.rootID&&(u.default.rootInstances[t.rootID]=t,u.default.rootComponents[t.rootID]=t._internal))},get:function(e){return e[m]},remove:function(e){var t=this.get(e);t&&(e[m]=null,t.rootID&&(delete u.default.rootComponents[t.rootID],delete u.default.rootInstances[t.rootID]))},render:function(e,t){u.default.driver.beforeRender&&u.default.driver.beforeRender(),null==t&&(t=u.default.driver.createBody());var n=this.get(t);if(n&&n.isRootComponent){var r=n.getRenderedComponent(),i=r._currentElement;if((0,p.default)(i,e)){var a=r._context;return r.updateComponent(i,e,a,a),n}u.default.hook.Reconciler.unmountComponent(n),(0,f.default)(t)}if(y.isWeb&&t.childNodes)for(var s=[].concat(o(t.childNodes)),c=0;c<s.length;c++){var v=s[c];v.hasAttribute&&v.hasAttribute("data-rendered")&&u.default.driver.removeChild(v,t)}var m=(0,l.createElement)(h.default,null,e),_=(0,d.default)(m),b={},g=_.mountComponent(t,b);return this.set(t,g),u.default.driver.afterRender&&u.default.driver.afterRender(g),u.default.hook.Mount._renderNewRootComponent(g._internal),g}},e.exports=t.default},function(e,t,n){"use strict";function r(e){var t=void 0;if(void 0===e||null===e||!1===e||!0===e)t=new u.default.EmptyComponent;else if(Array.isArray(e))t=new u.default.FragmentComponent(e);else if("object"===(void 0===e?"undefined":o(e))&&e.type)t="string"==typeof e.type?new u.default.NativeComponent(e):new u.default.CompositeComponent(e);else{if("string"!=typeof e&&"number"!=typeof e)throw Error("Invalid element type "+JSON.stringify(e));t=new u.default.TextComponent(e)}return t._mountIndex=0,t}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r,e.exports=t.default},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)};t.isWeb="object"===("undefined"==typeof navigator?"undefined":o(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),t.isNode="undefined"!=typeof process&&!(!process.versions||!process.versions.node),t.isWeex="function"==typeof callNative,t.isReactNative="undefined"!=typeof __fbBatchedBridgeConfig},function(e,t,n){"use strict";function r(e,t){var n=null===e,r=null===t;if(n||r)return n===r;var i=void 0===e?"undefined":o(e),u=void 0===t?"undefined":o(t);return"string"===i||"number"===i?"string"===u||"number"===u:"object"===i&&"object"===u&&e.type===t.type&&e.key===t.key}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n,o){r(this,e),this.props=t,this.context=n,this.refs={},this.updater=o}return o(e,[{key:"isComponentClass",value:function(){}},{key:"setState",value:function(e,t){this.updater.setState(this,e,t)}},{key:"forceUpdate",value:function(e){this.updater.forceUpdate(this,e)}}]),e}();t.default=i,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=r(o),u=n(0),l=r(u);t.default={ComponentTree:{getClosestInstanceFromNode:function(e){return i.default.get(e)},getNodeFromInstance:function(e){for(;e._renderedComponent;)e=e._renderedComponent;return e?e._nativeNode:null}},Mount:{_instancesByReactRootID:l.default.rootComponents,_renderNewRootComponent:function(){}},Reconciler:{mountComponent:function(){},receiveComponent:function(){},unmountComponent:function(){}},monitor:null},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){if(p.default.component){var e=p.default.component.getName();if(e)return" Check the render method of `"+e+"`."}return""}function i(e){if(e){if(Array.isArray(e)){for(var t={},n=0;n<e.length;++n){var r=i(e[n]);if(r)for(var o in r)t[o]=r[o]}return t}return e}}function u(e,t){if(y.isWeex&&"text"===e){var n=t.children;null==t.value&&null!=n&&(Array.isArray(n)?n=n.map(function(e){return"number"==typeof e||"string"==typeof e?e:""}).join(""):"number"!=typeof n&&"string"!=typeof n&&(n=""),t.value=String(n)),t.children=null}return t}function l(e,t){if(null==e)throw Error("createElement: type should not be null or undefined."+o());var n={},r=void 0,u=null,l=null;if(null!=t){l=void 0===t.ref?null:t.ref,u=void 0===t.key?null:String(t.key);for(r in t)t.hasOwnProperty(r)&&!m.hasOwnProperty(r)&&(n[r]=t[r])}for(var a=arguments.length,f=Array(a>2?a-2:0),s=2;s<a;s++)f[s-2]=arguments[s];if(f.length&&(n.children=(0,h.default)(f)),e&&e.defaultProps){var c=e.defaultProps;for(r in c)void 0===n[r]&&(n[r]=c[r])}return n.style&&(Array.isArray(n.style)||"object"===d(n.style))&&(n.style=i(n.style)),new _(e,u,l,n,p.default.component)}function a(e){var t=l.bind(null,e);return t.type=e,t}function f(e,t){var n=Object.assign({},e.props),r=e.key,o=e.ref,i=e._owner;if(t){void 0!==t.ref&&(o=t.ref,i=p.default.component),void 0!==t.key&&(r=String(t.key));var u=void 0;e.type&&e.type.defaultProps&&(u=e.type.defaultProps);var l=void 0;for(l in t)t.hasOwnProperty(l)&&!m.hasOwnProperty(l)&&(void 0===t[l]&&void 0!==u?n[l]=u[l]:n[l]=t[l])}for(var a=arguments.length,f=Array(a>2?a-2:0),s=2;s<a;s++)f[s-2]=arguments[s];return f.length&&(n.children=(0,h.default)(f)),new _(e.type,r,o,n,i)}function s(e){return"object"===(void 0===e?"undefined":d(e))&&null!==e&&e.type&&e.props}Object.defineProperty(t,"__esModule",{value:!0});var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.createElement=l,t.createFactory=a,t.cloneElement=f,t.isValidElement=s;var c=n(0),p=r(c),v=n(17),h=r(v),y=n(3),m={key:!0,ref:!0},_=function(e,t,n,r,o){return r=u(e,r),{type:e,key:t,ref:n,props:r,_owner:o}};t.default=_},function(e,t,n){"use strict";function r(e){var t=i.default.get(e);return!!t&&(i.default.remove(e),t._internal.unmountComponent(),!0)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(1),i=function(e){return e&&e.__esModule?e:{default:e}}(o);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),l=r(u),a=n(10),f=r(a),s=n(2),d=r(s),c=n(4),p=r(c),v=n(11),h=r(v),y=n(1),m=r(y),_=/on[A-Z]/,b=function(){function e(t){o(this,e),this._currentElement=t}return i(e,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=l.default.mountID++;var r=this._currentElement.props,o=this._currentElement.type,i={_internal:this,type:o,props:r},u=r.append;this._instance=i,this._prevStyleCopy=Object.assign({},r.style);var a=this.getNativeNode();"tree"!==u&&(n?n(a,e):l.default.driver.appendChild(a,e)),this._currentElement&&this._currentElement.ref&&f.default.attach(this._currentElement._owner,this._currentElement.ref,this);var s=r.children;return null!=s&&this.mountChildren(s,t),"tree"===u&&(n?n(a,e):l.default.driver.appendChild(a,e)),l.default.hook.Reconciler.mountComponent(this),i}},{key:"mountChildren",value:function(e,t){var n=this;Array.isArray(e)||(e=[e]);var r={},o=e.map(function(e,o){var i=(0,d.default)(e),u=(0,h.default)(r,e,o);return r[u]=i,i._mountIndex=o,i.mountComponent(n.getNativeNode(),t)});return this._renderedChildren=r,o}},{key:"unmountChildren",value:function(e){var t=this._renderedChildren;if(t){for(var n in t){t[n].unmountComponent(e)}this._renderedChildren=null}}},{key:"unmountComponent",value:function(e){if(this._nativeNode){var t=this._currentElement.ref;t&&f.default.detach(this._currentElement._owner,t,this),m.default.remove(this._nativeNode),e||l.default.driver.removeChild(this._nativeNode,this._parent),l.default.driver.removeAllEventListeners(this._nativeNode)}this.unmountChildren(e),l.default.hook.Reconciler.unmountComponent(this),this._currentElement=null,this._nativeNode=null,this._parent=null,this._context=null,this._instance=null,this._prevStyleCopy=null}},{key:"updateComponent",value:function(e,t,n,r){this._currentElement=t,f.default.update(e,t,this);var o=e.props,i=t.props;this.updateProperties(o,i),this.updateChildren(i.children,r),l.default.hook.Reconciler.receiveComponent(this)}},{key:"updateProperties",value:function(e,t){var n=void 0,r=void 0,o=void 0;for(n in e)if("children"!==n&&!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&null!=e[n])if("style"===n){var i=this._prevStyleCopy;for(r in i)i.hasOwnProperty(r)&&(o=o||{},o[r]="");this._prevStyleCopy=null}else _.test(n)?"function"==typeof e[n]&&l.default.driver.removeEventListener(this.getNativeNode(),n.slice(2).toLowerCase(),e[n]):l.default.driver.removeAttribute(this.getNativeNode(),n,e[n]);for(n in t){var u=t[n],a="style"===n?this._prevStyleCopy:null!=e?e[n]:void 0;if("children"!==n&&t.hasOwnProperty(n)&&u!==a&&(null!=u||null!=a))if("style"===n)if(u?u=this._prevStyleCopy=Object.assign({},u):this._prevStyleCopy=null,null!=a){for(r in a)!a.hasOwnProperty(r)||u&&u.hasOwnProperty(r)||(o=o||{},o[r]="");for(r in u)u.hasOwnProperty(r)&&a[r]!==u[r]&&(o=o||{},o[r]=u[r])}else o=u;else if(_.test(n))"function"==typeof a&&l.default.driver.removeEventListener(this.getNativeNode(),n.slice(2).toLowerCase(),a),"function"==typeof u&&l.default.driver.addEventListener(this.getNativeNode(),n.slice(2).toLowerCase(),u);else{var f={};f[n]=u,null!=u?l.default.driver.setAttribute(this.getNativeNode(),n,u):l.default.driver.removeAttribute(this.getNativeNode(),n,e[n])}}o&&l.default.driver.setStyles(this.getNativeNode(),o)}},{key:"updateChildren",value:function(e,t){var n=this,r=this._renderedChildren;if(null!=e||null!=r){var o={},i={};if(null!=e){Array.isArray(e)||(e=[e]);for(var u=0,a=e.length;u<a;u++){var f=e[u],s=(0,h.default)(o,f,u),c=r&&r[s],v=c&&c._currentElement;if(null!=c&&(0,p.default)(v,f))c.updateComponent(v,f,t,t),o[s]=c;else{if(c){var y=c.getNativeNode();c.unmountComponent(!0),i[s]=y}o[s]=(0,d.default)(f)}}}var m=void 0,_=void 0;if(null!=r)for(var b in r)if(r.hasOwnProperty(b)){var g=r[b],C=!o[b];m?C&&g.unmountComponent():(m=g,_=C)}null!=o&&function(){var e=0,u=0,a=null,f=[];for(var s in o){(function(s){if(!o.hasOwnProperty(s))return"continue";var d=o[s],c=r&&r[s];if(c===d){var p=c.getNativeNode();if(Array.isArray(p)||(p=[p]),c._mountIndex<e){Array.isArray(a)&&(a=a[a.length-1]);for(var v=p.length-1;v>=0;v--)l.default.driver.insertAfter(p[v],a)}f=f.concat(p),e=Math.max(c._mountIndex,e),c._mountIndex=u}else{null!=c&&(e=Math.max(c._mountIndex,e));var h=n.getNativeNode();Array.isArray(h)&&(h=n._parent),d.mountComponent(h,t,function(e,t){var n=i[s];if(Array.isArray(e)||(e=[e]),n){Array.isArray(n)||(n=[n]);for(var r=void 0,o=0;o<e.length;o++){var u=e[o];n[o]?l.default.driver.replaceChild(u,n[o]):l.default.driver.insertAfter(u,r),r=u}if(e.length<n.length)for(var d=e.length;d<n.length;d++)l.default.driver.removeChild(n[d])}else{Array.isArray(a)&&(a=a[a.length-1]);var c=void 0;m&&!a&&(c=m.getNativeNode(),Array.isArray(c)&&(c=c[0]));for(var p=e.length-1;p>=0;p--){var v=e[p];a?l.default.driver.insertAfter(v,a):c?l.default.driver.insertBefore(v,c):l.default.driver.appendChild(v,t)}}f=f.concat(e)}),d._mountIndex=u}u++,a=d.getNativeNode()})(s)}if(Array.isArray(n._nativeNode)){n._nativeNode.splice(0,n._nativeNode.length);for(var d=0;d<f.length;d++)n._nativeNode.push(f[d])}}(),_&&m.unmountComponent(),this._renderedChildren=o}}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=l.default.driver.createElement(this._instance),m.default.set(this._nativeNode,this._instance)),this._nativeNode}},{key:"getPublicInstance",value:function(){return this.getNativeNode()}},{key:"getName",value:function(){return this._currentElement.type}}]),e}();t.default=b,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={update:function(e,t,n){var r=null!=e&&e.ref,o=null!=t&&t.ref;r!==o&&(null!=r&&this.detach(e._owner,r,n),null!=o&&this.attach(t._owner,o,n))},attach:function(e,t,n){if(!e)throw new Error("You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of Rax loaded.");var r=n.getPublicInstance();"function"==typeof t?t(r):e._instance.refs[t]=r},detach:function(e,t,n){if("function"==typeof t)t(null);else{var r=n.getPublicInstance();e._instance.refs[t]===r&&delete e._instance.refs[t]}}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=t&&t.key,o="string"==typeof r,i="."+n.toString(36);if(o){var u="$"+r,l=void 0===e[u];return l||console.warn('Encountered two children with the same key "'+r+'".'),l?u:i}return i},e.exports=t.default},function(e,t,n){"use strict";function r(e){return"string"==typeof e&&-1!==e.indexOf(s)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return e.replace(d,function(e){return parseFloat(e)*t+"px"})}function i(){return c}function u(e){c=e}function l(e,t){return"number"==typeof e&&!f[t]}function a(e,t){return t&&l(e,t)?e*c+"px":r(e)?o(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.isRem=r,t.calcRem=o,t.getRem=i,t.setRem=u,t.isUnitNumber=l,t.convertUnit=a;var f={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,lines:!0},s="rem",d=/[-+]?\d*\.?\d+rem/g,c=void 0},function(e,t,n){"use strict";function r(e,t){return e.style=e.style||{},t.forEach(function(t){e[t]&&!e.style[t]&&(e.style[t]=e[t],delete e[t])}),e}function o(e,t,n){return e[t]&&!e[n]&&(e[n]=e[t],delete e[t]),e}Object.defineProperty(t,"__esModule",{value:!0}),t.transformPropsAttrsToStyle=r,t.renamePropsAttr=o},function(e,t,n){"use strict";function r(e){if(null==e)return null;if(e.ownerDocument||e.nodeType)return e;if(e._nativeNode)return e._nativeNode;if("string"==typeof e)return i.default.driver.getElementById(e);if("function"!=typeof e.render)throw new Error("Appears to be neither Component nor DOMNode.");var t=e._internal;if(t){for(;!t._nativeNode;)if(null==(t=t._renderedComponent))return null;return t._nativeNode}throw new Error("findDOMNode was called on an unmounted component.")}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.setNativeProps=t.findComponentInstance=t.unmountComponentAtNode=t.findDOMNode=t.render=t.PropTypes=t.PureComponent=t.Component=t.createFactory=t.isValidElement=t.cloneElement=t.createElement=void 0,n(16);var o=n(7),i=n(5),u=r(i),l=n(19),a=r(l),f=n(20),s=r(f),d=n(21),c=r(d),p=n(14),v=r(p),h=n(8),y=r(h),m=n(42),_=r(m),b=n(43),g=r(b),C=n(44),x=r(C);t.createElement=o.createElement,t.cloneElement=o.cloneElement,t.isValidElement=o.isValidElement,t.createFactory=o.createFactory,t.Component=u.default,t.PureComponent=a.default,t.PropTypes=s.default,t.render=c.default,t.findDOMNode=v.default,t.unmountComponentAtNode=y.default,t.findComponentInstance=_.default,t.setNativeProps=g.default,t.version=x.default},function(e,t,n){"use strict";var r=n(6),o=function(e){return e&&e.__esModule?e:{default:e}}(r);"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject(o.default)},function(e,t,n){"use strict";function r(e,t){if(Array.isArray(e))for(var n=0,o=e.length;n<o;n++)r(e[n],t);else t.push(e)}function o(e){if(null==e)return e;var t=[];return r(e,t),1===t.length&&(t=t[0]),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(5),a=function(e){return e&&e.__esModule?e:{default:e}}(l),f=1,s=function(e){function t(){var e,n,i,u;r(this,t);for(var l=arguments.length,a=Array(l),s=0;s<l;s++)a[s]=arguments[s];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),i.rootID=f++,u=n,o(i,u)}return i(t,e),u(t,[{key:"isRootComponent",value:function(){}},{key:"render",value:function(){return this.props.children}},{key:"getPublicInstance",value:function(){return this.getRenderedComponent().getPublicInstance()}},{key:"getRenderedComponent",value:function(){return this._internal._renderedComponent}}]),t}(a.default);t.default=s,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(5),a=function(e){return e&&e.__esModule?e:{default:e}}(l),f=function(e){function t(e,n){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return i(t,e),u(t,[{key:"isPureComponentClass",value:function(){}}]),t}(a.default);t.default=f,e.exports=t.default},function(e,t,n){"use strict";function r(e){function t(e,t,n,r,i,u){return o}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(e,t,n,r,o){}return r(t)}();t.default={array:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,element:o,node:o,any:o,arrayOf:o,instanceOf:o,objectOf:o,oneOf:o,oneOfType:o,shape:o},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){"function"==typeof n&&(r=n,n=null),(0,u.default)(n||{});var o=a.default.render(e,t),i=o.getPublicInstance();return r&&r.call(i),i}Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),u=r(i),l=n(1),a=r(l),f=n(0);r(f);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.driver,n=e.hook,r=e.measurer;if(l.default.EmptyComponent=f.default,l.default.NativeComponent=d.default,l.default.TextComponent=p.default,l.default.FragmentComponent=m.default,l.default.CompositeComponent=h.default,l.default.hook=n||N.default,l.default.measurer=r,!l.default.driver){if(!t)if(i.isWeex)t=b.default;else{if(!i.isWeb)throw Error("No builtin driver matched");t=C.default}l.default.driver=t}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(3),u=n(0),l=r(u),a=n(23),f=r(a),s=n(9),d=r(s),c=n(24),p=r(c),v=n(25),h=r(v),y=n(29),m=r(y),_=n(30),b=r(_),g=n(40),C=r(g),x=n(6),N=r(x);e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(i),l=function(){function e(){r(this,e),this._currentElement=null}return o(e,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t;var r={_internal:this},o=this.getNativeNode();return n?n(o,e):u.default.driver.appendChild(o,e),r}},{key:"unmountComponent",value:function(e){this._nativeNode&&!e&&u.default.driver.removeChild(this._nativeNode,this._parent),this._nativeNode=null,this._parent=null,this._context=null}},{key:"updateComponent",value:function(){}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=u.default.driver.createEmpty()),this._nativeNode}}]),e}();t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(i),l=function(){function e(t){r(this,e),this._currentElement=t,this._stringText=String(t)}return o(e,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=u.default.mountID++;var r=this.getNativeNode();n?n(r,e):u.default.driver.appendChild(r,e);var o={_internal:this};return u.default.hook.Reconciler.mountComponent(this),o}},{key:"unmountComponent",value:function(e){this._nativeNode&&!e&&u.default.driver.removeChild(this._nativeNode,this._parent),u.default.hook.Reconciler.unmountComponent(this),this._currentElement=null,this._nativeNode=null,this._parent=null,this._context=null,this._stringText=null}},{key:"updateComponent",value:function(e,t,n){e!==t&&(this._currentElement=t,this._stringText=String(t),u.default.driver.updateText(this.getNativeNode(),this._stringText),u.default.hook.Reconciler.receiveComponent(this))}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=u.default.driver.createText(this._stringText)),this._nativeNode}}]),e}();t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){try{return e()}catch(e){if(t)t(e);else{if(!c.default.sandbox)throw e;setTimeout(function(){throw e},0)}}}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(26),a=r(l),f=n(27),s=r(f),d=n(0),c=r(d),p=n(10),v=r(p),h=n(2),y=r(h),m=n(4),_=r(m),b=n(28),g=r(b),C=function(){function e(t){o(this,e),this._currentElement=t}return u(e,[{key:"getName",value:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null}},{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=c.default.mountID++,this._updateCount=0;var r=this._currentElement.type,o=this._currentElement.props,u=r.prototype,l=u&&r.prototype.isComponentClass,f=u&&r.prototype.render,d=this._processContext(t),p=void 0,h=void 0;if(l||f)p=new r(o,d,s.default);else{if("function"!=typeof r)throw Error("Invalid component type "+JSON.stringify(r));p=new a.default(r)}p.props=o,p.context=d,p.refs={},p.updater=s.default,p._internal=this,this._instance=p;var m=p.state;if(void 0===m&&(p.state=m=null),i(function(){p.componentWillMount&&p.componentWillMount()}),null==h){c.default.component=this,p.state=this._processPendingState(o,d);var _=void 0;"function"==typeof p.handleError&&(_=function(e){p.handleError(e)}),i(function(){h=p.render()},_),c.default.component=null}return this._renderedComponent=(0,y.default)(h),this._renderedComponent.mountComponent(this._parent,this._processChildContext(t),n),this._currentElement&&this._currentElement.ref&&v.default.attach(this._currentElement._owner,this._currentElement.ref,this),i(function(){p.componentDidMount&&p.componentDidMount()}),c.default.hook.Reconciler.mountComponent(this),p}},{key:"unmountComponent",value:function(e){var t=this._instance;if(i(function(){t.componentWillUnmount&&t.componentWillUnmount()}),c.default.hook.Reconciler.unmountComponent(this),t._internal=null,null!=this._renderedComponent){var n=this._currentElement.ref;n&&v.default.detach(this._currentElement._owner,n,this),this._renderedComponent.unmountComponent(e),this._renderedComponent=null,this._instance=null}this._currentElement=null,this._pendingStateQueue=null,this._pendingForceUpdate=!1,this._context=null}},{key:"_processContext",value:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return{};var r={};for(var o in n)r[o]=e[o];return r}},{key:"_processChildContext",value:function(e){var t=this._instance,n=t.getChildContext&&t.getChildContext();return n?Object.assign({},e,n):e}},{key:"_processPendingState",value:function(e,t){var n=this._instance,r=this._pendingStateQueue;if(!r)return n.state;this._pendingStateQueue=null;for(var o=Object.assign({},n.state),i=0;i<r.length;i++){var u=r[i];Object.assign(o,"function"==typeof u?u.call(n,o,e,t):u)}return o}},{key:"updateComponent",value:function(e,t,n,r){var o=this._instance;o||console.error("Update component '"+this.getName()+"' that has already been unmounted (or failed to mount).");var u=!1,l=void 0,a=void 0;this._context===r?l=o.context:(l=this._processContext(r),u=!0),e===t?a=t.props:(a=t.props,u=!0);var f=u&&o.componentWillReceiveProps;f&&(this._pendingState=!0,i(function(){o.componentWillReceiveProps(a,l)}),this._pendingState=!1),v.default.update(e,t,this);var d=!0,p=o.props,h=o.state,y=this._processPendingState(a,l);if(this._pendingForceUpdate||(o.shouldComponentUpdate?d=i(function(){return o.shouldComponentUpdate(a,y,l)}):o.isPureComponentClass&&(d=!(0,g.default)(p,a)||!(0,g.default)(h,y))),d){this._pendingForceUpdate=!1;var m=o.context;i(function(){o.componentWillUpdate&&o.componentWillUpdate(a,y,l)}),this._currentElement=t,this._context=r,o.props=a,o.state=y,o.context=l,this._updateRenderedComponent(r),i(function(){o.componentDidUpdate&&o.componentDidUpdate(p,h,m)}),this._updateCount++}else this._currentElement=t,this._context=r,o.props=a,o.state=y,o.context=l;if(f){var _=this._pendingCallbacks;this._pendingCallbacks=null,s.default.runCallbacks(_,o)}c.default.hook.Reconciler.receiveComponent(this)}},{key:"_updateRenderedComponent",value:function(e){var t=this._renderedComponent,n=t._currentElement,r=this._instance,o=void 0;if(c.default.component=this,i(function(){o=r.render()}),c.default.component=null,(0,_.default)(n,o))t.updateComponent(n,o,t._context,this._processChildContext(e));else{var u=t.getNativeNode();t.unmountComponent(!0),this._renderedComponent=(0,y.default)(o),this._renderedComponent.mountComponent(this._parent,this._processChildContext(e),function(e,t){Array.isArray(e)||(e=[e]),Array.isArray(u)||(u=[u]);for(var n=void 0,r=0;r<e.length;r++){var o=e[r];u[r]?c.default.driver.replaceChild(o,u[r]):c.default.driver.insertAfter(o,n),n=o}if(e.length<u.length)for(var i=e.length;i<u.length;i++)c.default.driver.removeChild(u[i])})}}},{key:"getNativeNode",value:function(){var e=this._renderedComponent;if(e)return e.getNativeNode()}},{key:"getPublicInstance",value:function(){var e=this._instance;return e instanceof a.default?null:e}}]),e}();t.default=C,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),u=(function(e){e&&e.__esModule}(i),function(){function e(t){r(this,e),this.pureRender=t}return o(e,[{key:"render",value:function(){return this.pureRender(this.props,this.context)}}]),e}());t.default=u,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(t){(e._pendingCallbacks||(e._pendingCallbacks=[])).push(t)}}function o(e,t){if(t){(e._pendingStateQueue||(e._pendingStateQueue=[])).push(t)}}Object.defineProperty(t,"__esModule",{value:!0});var i={setState:function(e,t,n){var i=e._internal;i&&(o(i,t),r(i,n),i._pendingState||this.runUpdate(e))},forceUpdate:function(e,t){var n=e._internal;n&&(n._pendingForceUpdate=!0,r(n,t),this.runUpdate(e))},runUpdate:function(e){var t=e._internal;if(t&&t._renderedComponent){var n=t._pendingCallbacks;t._pendingCallbacks=null;var r=t._currentElement,o=t._context;(t._pendingStateQueue||t._pendingForceUpdate)&&t.updateComponent(r,r,o,o),this.runCallbacks(n,e)}},runCallbacks:function(e,t){if(e)for(var n=0;n<e.length;n++)e[n].call(t)}};t.default=i,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!==(void 0===e?"undefined":i(e))||null===e||"object"!==(void 0===t?"undefined":i(t))||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var l=0;l<n.length;l++)if(!u.call(t,n[l])||!r(e[n[l]],t[n[l]]))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.prototype.hasOwnProperty;t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),f=r(a),s=n(9),d=r(s),c=n(1),p=r(c),v=n(2),h=r(v),y=n(11),m=r(y),_=function(e){function t(e){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return u(t,e),l(t,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=f.default.mountID++;var r={_internal:this};this._instance=r;var o=this.getNativeNode(),i=this._currentElement;if(this.mountChildren(i,t),n)n(o,e);else for(var u=Array.isArray(e),l=0;l<o.length;l++){var a=o[l];u?e.push(a):f.default.driver.appendChild(a,e)}return r}},{key:"mountChildren",value:function(e,t){var n=this,r={},o=this.getNativeNode(),i=e.map(function(e,i){var u=(0,h.default)(e),l=(0,m.default)(r,e,i);return r[l]=u,u._mountIndex=i,u.mountComponent(n._parent,t,function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)o.push(e[t]);else o.push(e)})});return this._renderedChildren=r,i}},{key:"unmountComponent",value:function(e){if(this._nativeNode&&(p.default.remove(this._nativeNode),!e))for(var t=0;t<this._nativeNode.length;t++)f.default.driver.removeChild(this._nativeNode[t]);this.unmountChildren(!0),this._currentElement=null,this._nativeNode=null,this._parent=null,this._context=null,this._instance=null}},{key:"updateComponent",value:function(e,t,n,r){this._currentElement=t,this.updateChildren(this._currentElement,r)}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=[]),this._nativeNode}},{key:"getPublicInstance",value:function(){return this.getNativeNode()}},{key:"getName",value:function(){return"fragment"}}]),t}(d.default);t.default=_,e.exports=t.default},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)},i=n(12),u=n(31),l=function(e){return e&&e.__esModule?e:{default:e}}(u),a=/^on[A-Z]/,f=/^aria-/,s={},d="object"===("undefined"==typeof __weex_document__?"undefined":o(__weex_document__))?__weex_document__:"object"===(void 0===d?"undefined":o(d))?d:null,c={getElementById:function(e){return s[e]},createBody:function(){if(d.body)return d.body;var e=d.documentElement,t=d.createBody();return e.appendChild(t),t},createComment:function(e){return d.createComment(e)},createEmpty:function(){return this.createComment(" empty ")},createText:function(e){return c.createElement({type:"text",props:{value:e}})},updateText:function(e,t){this.setAttribute(e,"value",t)},createElement:function(e){var t=l.default[e.type];t&&(e=t.parse(e));var n=e.props,r={},o=n.style;for(var u in o)r[u]=(0,i.convertUnit)(o[u],u);var a=d.createElement(e.type,{style:r});return this.setNativeProps(a,n,!0),a},appendChild:function(e,t){return t.appendChild(e)},removeChild:function(e,t){t=t||e.parentNode;var n=e.attr&&e.attr.id;return null!=n&&(s[n]=null),t.removeChild(e)},replaceChild:function(e,t,n){n=n||t.parentNode;var r=t.previousSibling,o=t.nextSibling;this.removeChild(t,n),r?this.insertAfter(e,r,n):o?this.insertBefore(e,o,n):this.appendChild(e,n)},insertAfter:function(e,t,n){return n=n||t.parentNode,n.insertAfter(e,t)},insertBefore:function(e,t,n){return n=n||t.parentNode,n.insertBefore(e,t)},addEventListener:function(e,t,n){return e.addEvent(t,n)},removeEventListener:function(e,t,n){return e.removeEvent(t,n)},removeAllEventListeners:function(e){},removeAttribute:function(e,t,n){return"id"==t&&(s[n]=null),e.setAttr(t,void 0,!1)},setAttribute:function(e,t,n){return"id"==t&&(s[n]=e),f.test(t)&&(t=t.replace(/\-(\w)/,function(e,t){return t.toUpperCase()})),e.setAttr(t,n,!1)},setStyles:function(e,t){for(var n in t){var r=t[n];r=(0,i.convertUnit)(r,n),e.setStyle(n,r)}},beforeRender:function(){d.open(),(0,i.setRem)(this.getWindowWidth()/750)},afterRender:function(){d.listener&&d.listener.createFinish&&d.listener.createFinish(),d.close()},getWindowWidth:function(){return 750},setNativeProps:function(e,t,n){for(var r in t){var o=t[r];if("children"!==r&&null!=o)if("style"===r){if(n)continue;this.setStyles(e,o)}else if(a.test(r)){var i=r.slice(2).toLowerCase();this.addEventListener(e,i,o)}else this.setAttribute(e,r,o)}}};t.default=c,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(32),i=r(o),u=n(33),l=r(u),a=n(34),f=r(a),s=n(35),d=r(s),c=n(36),p=r(c),v=n(37),h=r(v),y=n(38),m=r(y),_=n(39),b=r(_);t.default={span:d.default,p:p.default,img:i.default,button:h.default,video:l.default,textarea:f.default,h1:m.default,h2:m.default,h3:m.default,h4:m.default,h5:m.default,h6:m.default,nav:b.default,article:b.default,section:b.default,footer:b.default,aside:b.default,main:b.default},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13);t.default={parse:function(e){var t=e.props;return e.type="image",e.props=(0,r.transformPropsAttrsToStyle)(t,["width","height"]),e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13);t.default={parse:function(e){var t=e.props;return e.props=(0,r.transformPropsAttrsToStyle)(t,["width","height"]),e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={parse:function(e){var t=e.props;return"string"!=typeof t.children||t.value||(t.value=t.children,t.children=null),e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={parse:function(e){var t=e.props;return e.type="text","string"!=typeof t.children||t.value||(t.value=t.children,t.children=null),e}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return{type:"span",attr:{value:e}}}function o(e){var t=e.type,n=e.props,r=n.style,o=n.children;"img"===t&&(t="image"),s[t]&&(r=a({},s[t],r),t="span"),n.style=null,n.children=null;var u={type:t,style:r,attr:n||{}};return o&&("span"===t&&"string"==typeof o?u.attr.value=o:u.children=i(o)),u}function i(e){var t=[];Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var i=e[n];"string"==typeof i?t.push(r(i)):"object"===(void 0===i?"undefined":l(i))&&t.push(o(i))}return t}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":u(e)},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f={fontSize:28,marginTop:28,marginBottom:28},s={u:{textDecoration:"underline"},s:{textDecoration:"line-through"},i:{fontStyle:"italic"},b:{fontWeight:"bold"},del:{textDecoration:"line-through"},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},big:{fontSize:33.6},small:{fontSize:28*.8}};t.default={parse:function(e){var t=e.props,n=t.children;return e.type="richtext",t.style=a({},f,t.style),t.value=i(n),t.children=null,e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default={parse:function(e){var t=e.props;e.type="text";var n=t.style,o=t.disabled,i=t.children,u=r({textAlign:"center",fontSize:22,paddingTop:4,paddingRight:12,paddingBottom:6,paddingLeft:12,borderWidth:4,borderStyle:"solid",borderColor:"#000000",backgroudColor:"#c0c0c0"},n);return o&&(t.onClick=null,u=r({},u,{color:"#7f7f7f",borderColor:"#7f7f7f"})),"string"==typeof i&&(t.value=i,t.children=null),e}},e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){return{fontSize:e*t,marginTop:e*t*n,marginBottom:e*t*n,fontWeight:"bold"}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i={h1:r(28,2,.67),h2:r(28,1.5,.83),h3:r(28,1.17,1),h4:r(28,1,1.33),h5:r(28,.83,1.67),h6:r(28,.67,2.33)};t.default={parse:function(e){var t=e.type,n=e.props;return e.type="text",n.style=o({},i[t]||i.h6,n.style),"string"!=typeof n.children||n.value||(n.value=n.children,n.children=null),e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={parse:function(e){return e.type="div",e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(41),i=function(e){return e&&e.__esModule?e:{default:e}}(o),u=/on[A-Z]/,l={getElementById:function(e){return document.getElementById(e)},createBody:function(){return document.body},createComment:function(e){return document.createComment(e)},createEmpty:function(){return this.createComment(" empty ")},createText:function(e){return document.createTextNode(e)},updateText:function(e,t){e["textContent"in document?"textContent":"nodeValue"]=t},createElement:function(e){var t=document.createElement(e.type),n=e.props;return this.setNativeProps(t,n),t},appendChild:function(e,t){return t.appendChild(e)},removeChild:function(e,t){(t=t||e.parentNode)&&t.removeChild(e)},replaceChild:function(e,t,n){n=n||t.parentNode,n.replaceChild(e,t)},insertAfter:function(e,t,n){n=n||t.parentNode;var r=t.nextSibling;r?n.insertBefore(e,r):n.appendChild(e)},insertBefore:function(e,t,n){n=n||t.parentNode,n.insertBefore(e,t)},addEventListener:function(e,t,n){return e.addEventListener(t,n)},removeEventListener:function(e,t,n){return e.removeEventListener(t,n)},removeAllEventListeners:function(e){},removeAttribute:function(e,t){if("dangerouslySetInnerHTML"===t)return e.innerHTML=null;"className"===t&&(t="class"),t in e&&(e[t]=null),e.removeAttribute(t)},setAttribute:function(e,t,n){if("dangerouslySetInnerHTML"===t)return e.innerHTML=n.__html;"className"===t&&(t="class"),t in e?e[t]=n:e.setAttribute(t,n)},setStyles:function(e,t){var n={};for(var o in t){var u=t[o];i.default.isFlexProp(o)?i.default[o](u,n):n[o]=(0,r.convertUnit)(u,o)}for(var l in n){var a=n[l];if(Array.isArray(a))for(var f=0;f<a.length;f++)e.style[l]=a[f];else e.style[l]=a}},beforeRender:function(){(0,r.setRem)(this.getWindowWidth()/750)},getWindowWidth:function(){return document.documentElement.clientWidth},setNativeProps:function(e,t){for(var n in t){var r=t[n];if("children"!==n&&null!=r)if("style"===n)this.setStyles(e,r);else if(u.test(n)){var o=n.slice(2).toLowerCase();this.addEventListener(e,o,r)}else this.setAttribute(e,n,r)}}};t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={stretch:"stretch","flex-start":"start","flex-end":"end",center:"center"},o={row:"horizontal",column:"vertical"},i={"flex-start":"start","flex-end":"end",center:"center","space-between":"justify","space-around":"justify"},u={display:!0,flex:!0,alignItems:!0,alignSelf:!0,flexDirection:!0,justifyContent:!0,flexWrap:!0},l={isFlexProp:function(e){return u[e]},display:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.display="flex"===e?["-webkit-box","-webkit-flex","flex"]:e,t},flex:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxFlex=e,t.webkitFlex=e,t.flex=e,t},flexWrap:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.flexWrap=e,t},alignItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxAlign=r[e],t.webkitAlignItems=e,t.alignItems=e,t},alignSelf:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitAlignSelf=e,t.alignSelf=e,t},flexDirection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxOrient=o[e],t.webkitFlexDirection=e,t.flexDirection=e,t},justifyContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxPack=i[e],t.webkitJustifyContent=e,t.justifyContent=e,t}};t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e){return null==e?null:i.default.get(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){e=(0,a.default)(e),u.default.driver.setNativeProps(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),u=r(i),l=n(14),a=r(l);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="0.4.2",e.exports=t.default}])}); | ||
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define)define("rax",function(t,n,r){r.exports=e()});else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:this,t.Rax=e()}}(function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=15)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={component:null,mountID:1,sandbox:!0,rootComponents:{},rootInstances:{},hook:null,driver:null,monitor:null},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),u=r(i),l=n(7),a=n(8),f=r(a),s=n(2),d=r(s),c=n(4),p=r(c),v=n(18),h=r(v),y=n(3),m="$$instance";t.default={set:function(e,t){e[m]||(e[m]=t,t.rootID&&(u.default.rootInstances[t.rootID]=t,u.default.rootComponents[t.rootID]=t._internal))},get:function(e){return e[m]},remove:function(e){var t=this.get(e);t&&(e[m]=null,t.rootID&&(delete u.default.rootComponents[t.rootID],delete u.default.rootInstances[t.rootID]))},render:function(e,t){u.default.driver.beforeRender&&u.default.driver.beforeRender(),null==t&&(t=u.default.driver.createBody());var n=this.get(t);if(n&&n.isRootComponent){var r=n.getRenderedComponent(),i=r._currentElement;if((0,p.default)(i,e)){var a=r._context;return r.updateComponent(i,e,a,a),n}u.default.hook.Reconciler.unmountComponent(n),(0,f.default)(t)}if(y.isWeb&&t.childNodes)for(var s=[].concat(o(t.childNodes)),c=0;c<s.length;c++){var v=s[c];v.hasAttribute&&v.hasAttribute("data-rendered")&&u.default.driver.removeChild(v,t)}var m=(0,l.createElement)(h.default,null,e),_=(0,d.default)(m),b={},g=_.mountComponent(t,b);return this.set(t,g),u.default.driver.afterRender&&u.default.driver.afterRender(g),u.default.hook.Mount._renderNewRootComponent(g._internal),g}},e.exports=t.default},function(e,t,n){"use strict";function r(e){var t=void 0;if(void 0===e||null===e||!1===e||!0===e)t=new u.default.EmptyComponent;else if(Array.isArray(e))t=new u.default.FragmentComponent(e);else if("object"===(void 0===e?"undefined":o(e))&&e.type)t="string"==typeof e.type?new u.default.NativeComponent(e):new u.default.CompositeComponent(e);else{if("string"!=typeof e&&"number"!=typeof e)throw Error("Invalid element type "+JSON.stringify(e));t=new u.default.TextComponent(e)}return t._mountIndex=0,t}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=r,e.exports=t.default},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)};t.isWeb="object"===("undefined"==typeof navigator?"undefined":o(navigator))&&("Mozilla"===navigator.appCodeName||"Gecko"===navigator.product),t.isNode="undefined"!=typeof process&&!(!process.versions||!process.versions.node),t.isWeex="function"==typeof callNative,t.isReactNative="undefined"!=typeof __fbBatchedBridgeConfig},function(e,t,n){"use strict";function r(e,t){var n=null===e,r=null===t;if(n||r)return n===r;var i=void 0===e?"undefined":o(e),u=void 0===t?"undefined":o(t);return"string"===i||"number"===i?"string"===u||"number"===u:"object"===i&&"object"===u&&e.type===t.type&&e.key===t.key}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function e(t,n,o){r(this,e),this.props=t,this.context=n,this.refs={},this.updater=o}return o(e,[{key:"isComponentClass",value:function(){}},{key:"setState",value:function(e,t){this.updater.setState(this,e,t)}},{key:"forceUpdate",value:function(e){this.updater.forceUpdate(this,e)}}]),e}();t.default=i,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=r(o),u=n(0),l=r(u);t.default={ComponentTree:{getClosestInstanceFromNode:function(e){return i.default.get(e)},getNodeFromInstance:function(e){for(;e._renderedComponent;)e=e._renderedComponent;return e?e._nativeNode:null}},Mount:{_instancesByReactRootID:l.default.rootComponents,_renderNewRootComponent:function(){}},Reconciler:{mountComponent:function(){},receiveComponent:function(){},unmountComponent:function(){}},monitor:null},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){if(p.default.component){var e=p.default.component.getName();if(e)return" Check the render method of `"+e+"`."}return""}function i(e){if(e){if(Array.isArray(e)){for(var t={},n=0;n<e.length;++n){var r=i(e[n]);if(r)for(var o in r)t[o]=r[o]}return t}return e}}function u(e,t){if(y.isWeex&&"text"===e){var n=t.children;null==t.value&&null!=n&&(Array.isArray(n)?n=n.map(function(e){return"number"==typeof e||"string"==typeof e?e:""}).join(""):"number"!=typeof n&&"string"!=typeof n&&(n=""),t.value=String(n)),t.children=null}return t}function l(e,t){if(null==e)throw Error("createElement: type should not be null or undefined."+o());var n={},r=void 0,u=null,l=null;if(null!=t){l=void 0===t.ref?null:t.ref,u=void 0===t.key?null:String(t.key);for(r in t)t.hasOwnProperty(r)&&!m.hasOwnProperty(r)&&(n[r]=t[r])}for(var a=arguments.length,f=Array(a>2?a-2:0),s=2;s<a;s++)f[s-2]=arguments[s];if(f.length&&(n.children=(0,h.default)(f)),e&&e.defaultProps){var c=e.defaultProps;for(r in c)void 0===n[r]&&(n[r]=c[r])}return n.style&&(Array.isArray(n.style)||"object"===d(n.style))&&(n.style=i(n.style)),new _(e,u,l,n,p.default.component)}function a(e){var t=l.bind(null,e);return t.type=e,t}function f(e,t){var n=Object.assign({},e.props),r=e.key,o=e.ref,i=e._owner;if(t){void 0!==t.ref&&(o=t.ref,i=p.default.component),void 0!==t.key&&(r=String(t.key));var u=void 0;e.type&&e.type.defaultProps&&(u=e.type.defaultProps);var l=void 0;for(l in t)t.hasOwnProperty(l)&&!m.hasOwnProperty(l)&&(void 0===t[l]&&void 0!==u?n[l]=u[l]:n[l]=t[l])}for(var a=arguments.length,f=Array(a>2?a-2:0),s=2;s<a;s++)f[s-2]=arguments[s];return f.length&&(n.children=(0,h.default)(f)),new _(e.type,r,o,n,i)}function s(e){return"object"===(void 0===e?"undefined":d(e))&&null!==e&&e.type&&e.props}Object.defineProperty(t,"__esModule",{value:!0});var d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.createElement=l,t.createFactory=a,t.cloneElement=f,t.isValidElement=s;var c=n(0),p=r(c),v=n(17),h=r(v),y=n(3),m={key:!0,ref:!0},_=function(e,t,n,r,o){return r=u(e,r),{type:e,key:t,ref:n,props:r,_owner:o}};t.default=_},function(e,t,n){"use strict";function r(e){var t=i.default.get(e);return!!t&&(i.default.remove(e),t._internal.unmountComponent(),!0)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var o=n(1),i=function(e){return e&&e.__esModule?e:{default:e}}(o);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=n(0),l=r(u),a=n(10),f=r(a),s=n(2),d=r(s),c=n(4),p=r(c),v=n(11),h=r(v),y=n(1),m=r(y),_=/on[A-Z]/,b=function(){function e(t){o(this,e),this._currentElement=t}return i(e,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=l.default.mountID++;var r=this._currentElement.props,o=this._currentElement.type,i={_internal:this,type:o,props:r},u=r.append;this._instance=i,this._prevStyleCopy=Object.assign({},r.style);var a=this.getNativeNode();"tree"!==u&&(n?n(a,e):l.default.driver.appendChild(a,e)),this._currentElement&&this._currentElement.ref&&f.default.attach(this._currentElement._owner,this._currentElement.ref,this);var s=r.children;return null!=s&&this.mountChildren(s,t),"tree"===u&&(n?n(a,e):l.default.driver.appendChild(a,e)),l.default.hook.Reconciler.mountComponent(this),i}},{key:"mountChildren",value:function(e,t){var n=this;Array.isArray(e)||(e=[e]);var r=this._renderedChildren={};return e.map(function(e,o){var i=(0,d.default)(e),u=(0,h.default)(r,e,o);return r[u]=i,i._mountIndex=o,i.mountComponent(n.getNativeNode(),t)})}},{key:"unmountChildren",value:function(e){var t=this._renderedChildren;if(t){for(var n in t){t[n].unmountComponent(e)}this._renderedChildren=null}}},{key:"unmountComponent",value:function(e){if(this._nativeNode){var t=this._currentElement.ref;t&&f.default.detach(this._currentElement._owner,t,this),m.default.remove(this._nativeNode),e||l.default.driver.removeChild(this._nativeNode,this._parent),l.default.driver.removeAllEventListeners(this._nativeNode)}this.unmountChildren(e),l.default.hook.Reconciler.unmountComponent(this),this._currentElement=null,this._nativeNode=null,this._parent=null,this._context=null,this._instance=null,this._prevStyleCopy=null}},{key:"updateComponent",value:function(e,t,n,r){this._currentElement=t,f.default.update(e,t,this);var o=e.props,i=t.props;this.updateProperties(o,i),this.updateChildren(i.children,r),l.default.hook.Reconciler.receiveComponent(this)}},{key:"updateProperties",value:function(e,t){var n=void 0,r=void 0,o=void 0;for(n in e)if("children"!==n&&!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&null!=e[n])if("style"===n){var i=this._prevStyleCopy;for(r in i)i.hasOwnProperty(r)&&(o=o||{},o[r]="");this._prevStyleCopy=null}else _.test(n)?"function"==typeof e[n]&&l.default.driver.removeEventListener(this.getNativeNode(),n.slice(2).toLowerCase(),e[n]):l.default.driver.removeAttribute(this.getNativeNode(),n,e[n]);for(n in t){var u=t[n],a="style"===n?this._prevStyleCopy:null!=e?e[n]:void 0;if("children"!==n&&t.hasOwnProperty(n)&&u!==a&&(null!=u||null!=a))if("style"===n)if(u?u=this._prevStyleCopy=Object.assign({},u):this._prevStyleCopy=null,null!=a){for(r in a)!a.hasOwnProperty(r)||u&&u.hasOwnProperty(r)||(o=o||{},o[r]="");for(r in u)u.hasOwnProperty(r)&&a[r]!==u[r]&&(o=o||{},o[r]=u[r])}else o=u;else if(_.test(n))"function"==typeof a&&l.default.driver.removeEventListener(this.getNativeNode(),n.slice(2).toLowerCase(),a),"function"==typeof u&&l.default.driver.addEventListener(this.getNativeNode(),n.slice(2).toLowerCase(),u);else{var f={};f[n]=u,null!=u?l.default.driver.setAttribute(this.getNativeNode(),n,u):l.default.driver.removeAttribute(this.getNativeNode(),n,e[n])}}o&&l.default.driver.setStyles(this.getNativeNode(),o)}},{key:"updateChildren",value:function(e,t){var n=this,r=this._renderedChildren;if(null!=e||null!=r){var o={},i={};if(null!=e){Array.isArray(e)||(e=[e]);for(var u=0,a=e.length;u<a;u++){var f=e[u],s=(0,h.default)(o,f,u),c=r&&r[s],v=c&&c._currentElement;if(null!=c&&(0,p.default)(v,f))c.updateComponent(v,f,t,t),o[s]=c;else{if(c){var y=c.getNativeNode();c.unmountComponent(!0),i[s]=y}o[s]=(0,d.default)(f)}}}var m=void 0,_=void 0;if(null!=r)for(var b in r)if(r.hasOwnProperty(b)){var g=r[b],C=!o[b];m?C&&g.unmountComponent():(m=g,_=C)}null!=o&&function(){var e=0,u=0,a=null,f=[];for(var s in o){(function(s){if(!o.hasOwnProperty(s))return"continue";var d=o[s],c=r&&r[s];if(c===d){var p=c.getNativeNode();if(Array.isArray(p)||(p=[p]),c._mountIndex<e){Array.isArray(a)&&(a=a[a.length-1]);for(var v=p.length-1;v>=0;v--)l.default.driver.insertAfter(p[v],a)}f=f.concat(p),e=Math.max(c._mountIndex,e),c._mountIndex=u}else{null!=c&&(e=Math.max(c._mountIndex,e));var h=n.getNativeNode();Array.isArray(h)&&(h=n._parent),d.mountComponent(h,t,function(e,t){var n=i[s];if(Array.isArray(e)||(e=[e]),n){Array.isArray(n)||(n=[n]);for(var r=void 0,o=0;o<e.length;o++){var u=e[o];n[o]?l.default.driver.replaceChild(u,n[o]):l.default.driver.insertAfter(u,r),r=u}if(e.length<n.length)for(var d=e.length;d<n.length;d++)l.default.driver.removeChild(n[d])}else{Array.isArray(a)&&(a=a[a.length-1]);var c=void 0;m&&!a&&(c=m.getNativeNode(),Array.isArray(c)&&(c=c[0]));for(var p=e.length-1;p>=0;p--){var v=e[p];a?l.default.driver.insertAfter(v,a):c?l.default.driver.insertBefore(v,c):l.default.driver.appendChild(v,t)}}f=f.concat(e)}),d._mountIndex=u}u++,a=d.getNativeNode()})(s)}if(Array.isArray(n._nativeNode)){n._nativeNode.splice(0,n._nativeNode.length);for(var d=0;d<f.length;d++)n._nativeNode.push(f[d])}}(),_&&m.unmountComponent(),this._renderedChildren=o}}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=l.default.driver.createElement(this._instance),m.default.set(this._nativeNode,this._instance)),this._nativeNode}},{key:"getPublicInstance",value:function(){return this.getNativeNode()}},{key:"getName",value:function(){return this._currentElement.type}}]),e}();t.default=b,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={update:function(e,t,n){var r=null!=e&&e.ref,o=null!=t&&t.ref;r!==o&&(null!=r&&this.detach(e._owner,r,n),null!=o&&this.attach(t._owner,o,n))},attach:function(e,t,n){if(!e)throw new Error("You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of Rax loaded.");var r=n.getPublicInstance();"function"==typeof t?t(r):e._instance.refs[t]=r},detach:function(e,t,n){if("function"==typeof t)t(null);else{var r=n.getPublicInstance();e._instance.refs[t]===r&&delete e._instance.refs[t]}}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=t&&t.key,o="string"==typeof r,i="."+n.toString(36);if(o){var u="$"+r,l=void 0===e[u];return l||console.warn('Encountered two children with the same key "'+r+'".'),l?u:i}return i},e.exports=t.default},function(e,t,n){"use strict";function r(e){return"string"==typeof e&&-1!==e.indexOf(s)}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return e.replace(d,function(e){return parseFloat(e)*t+"px"})}function i(){return c}function u(e){c=e}function l(e,t){return"number"==typeof e&&!f[t]}function a(e,t){return t&&l(e,t)?e*c+"px":r(e)?o(e):e}Object.defineProperty(t,"__esModule",{value:!0}),t.isRem=r,t.calcRem=o,t.getRem=i,t.setRem=u,t.isUnitNumber=l,t.convertUnit=a;var f={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,lines:!0},s="rem",d=/[-+]?\d*\.?\d+rem/g,c=void 0},function(e,t,n){"use strict";function r(e,t){return e.style=e.style||{},t.forEach(function(t){e[t]&&!e.style[t]&&(e.style[t]=e[t],delete e[t])}),e}function o(e,t,n){return e[t]&&!e[n]&&(e[n]=e[t],delete e[t]),e}Object.defineProperty(t,"__esModule",{value:!0}),t.transformPropsAttrsToStyle=r,t.renamePropsAttr=o},function(e,t,n){"use strict";function r(e){if(null==e)return null;if(e.ownerDocument||e.nodeType)return e;if(e._nativeNode)return e._nativeNode;if("string"==typeof e)return i.default.driver.getElementById(e);if("function"!=typeof e.render)throw new Error("Appears to be neither Component nor DOMNode.");var t=e._internal;if(t){for(;!t._nativeNode;)if(null==(t=t._renderedComponent))return null;return t._nativeNode}throw new Error("findDOMNode was called on an unmounted component.")}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.version=t.setNativeProps=t.findComponentInstance=t.unmountComponentAtNode=t.findDOMNode=t.render=t.PropTypes=t.PureComponent=t.Component=t.createFactory=t.isValidElement=t.cloneElement=t.createElement=void 0,n(16);var o=n(7),i=n(5),u=r(i),l=n(19),a=r(l),f=n(20),s=r(f),d=n(21),c=r(d),p=n(14),v=r(p),h=n(8),y=r(h),m=n(42),_=r(m),b=n(43),g=r(b),C=n(44),x=r(C);t.createElement=o.createElement,t.cloneElement=o.cloneElement,t.isValidElement=o.isValidElement,t.createFactory=o.createFactory,t.Component=u.default,t.PureComponent=a.default,t.PropTypes=s.default,t.render=c.default,t.findDOMNode=v.default,t.unmountComponentAtNode=y.default,t.findComponentInstance=_.default,t.setNativeProps=g.default,t.version=x.default},function(e,t,n){"use strict";var r=n(6),o=function(e){return e&&e.__esModule?e:{default:e}}(r);"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject(o.default)},function(e,t,n){"use strict";function r(e,t){if(Array.isArray(e))for(var n=0,o=e.length;n<o;n++)r(e[n],t);else t.push(e)}function o(e){if(null==e)return e;var t=[];return r(e,t),1===t.length&&(t=t[0]),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(5),a=function(e){return e&&e.__esModule?e:{default:e}}(l),f=1,s=function(e){function t(){var e,n,i,u;r(this,t);for(var l=arguments.length,a=Array(l),s=0;s<l;s++)a[s]=arguments[s];return n=i=o(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),i.rootID=f++,u=n,o(i,u)}return i(t,e),u(t,[{key:"isRootComponent",value:function(){}},{key:"render",value:function(){return this.props.children}},{key:"getPublicInstance",value:function(){return this.getRenderedComponent().getPublicInstance()}},{key:"getRenderedComponent",value:function(){return this._internal._renderedComponent}}]),t}(a.default);t.default=s,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(5),a=function(e){return e&&e.__esModule?e:{default:e}}(l),f=function(e){function t(e,n){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n))}return i(t,e),u(t,[{key:"isPureComponentClass",value:function(){}}]),t}(a.default);t.default=f,e.exports=t.default},function(e,t,n){"use strict";function r(e){function t(e,t,n,r,i,u){return o}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(e,t,n,r,o){}return r(t)}();t.default={array:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,element:o,node:o,any:o,arrayOf:o,instanceOf:o,objectOf:o,oneOf:o,oneOfType:o,shape:o},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){"function"==typeof n&&(r=n,n=null),(0,u.default)(n||{});var o=a.default.render(e,t),i=o.getPublicInstance();return r&&r.call(i),i}Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),u=r(i),l=n(1),a=r(l),f=n(0);r(f);t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){var t=e.driver,n=e.hook,r=e.measurer;if(l.default.EmptyComponent=f.default,l.default.NativeComponent=d.default,l.default.TextComponent=p.default,l.default.FragmentComponent=m.default,l.default.CompositeComponent=h.default,l.default.hook=n||N.default,l.default.measurer=r,!l.default.driver){if(!t)if(i.isWeex)t=b.default;else{if(!i.isWeb)throw Error("No builtin driver matched");t=C.default}l.default.driver=t}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(3),u=n(0),l=r(u),a=n(23),f=r(a),s=n(9),d=r(s),c=n(24),p=r(c),v=n(25),h=r(v),y=n(29),m=r(y),_=n(30),b=r(_),g=n(40),C=r(g),x=n(6),N=r(x);e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(i),l=function(){function e(){r(this,e),this._currentElement=null}return o(e,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t;var r={_internal:this},o=this.getNativeNode();return n?n(o,e):u.default.driver.appendChild(o,e),r}},{key:"unmountComponent",value:function(e){this._nativeNode&&!e&&u.default.driver.removeChild(this._nativeNode,this._parent),this._nativeNode=null,this._parent=null,this._context=null}},{key:"updateComponent",value:function(){}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=u.default.driver.createEmpty()),this._nativeNode}}]),e}();t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(i),l=function(){function e(t){r(this,e),this._currentElement=t,this._stringText=String(t)}return o(e,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=u.default.mountID++;var r=this.getNativeNode();n?n(r,e):u.default.driver.appendChild(r,e);var o={_internal:this};return u.default.hook.Reconciler.mountComponent(this),o}},{key:"unmountComponent",value:function(e){this._nativeNode&&!e&&u.default.driver.removeChild(this._nativeNode,this._parent),u.default.hook.Reconciler.unmountComponent(this),this._currentElement=null,this._nativeNode=null,this._parent=null,this._context=null,this._stringText=null}},{key:"updateComponent",value:function(e,t,n){e!==t&&(this._currentElement=t,this._stringText=String(t),u.default.driver.updateText(this.getNativeNode(),this._stringText),u.default.hook.Reconciler.receiveComponent(this))}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=u.default.driver.createText(this._stringText)),this._nativeNode}}]),e}();t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){try{return e()}catch(e){if(t)t(e);else{if(!c.default.sandbox)throw e;setTimeout(function(){throw e},0)}}}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(26),a=r(l),f=n(27),s=r(f),d=n(0),c=r(d),p=n(10),v=r(p),h=n(2),y=r(h),m=n(4),_=r(m),b=n(28),g=r(b),C=function(){function e(t){o(this,e),this._currentElement=t}return u(e,[{key:"getName",value:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null}},{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=c.default.mountID++,this._updateCount=0;var r=this._currentElement.type,o=this._currentElement.props,u=r.prototype,l=u&&r.prototype.isComponentClass,f=u&&r.prototype.render,d=this._processContext(t),p=void 0,h=void 0;if(l||f)p=new r(o,d,s.default);else{if("function"!=typeof r)throw Error("Invalid component type "+JSON.stringify(r));p=new a.default(r)}p.props=o,p.context=d,p.refs={},p.updater=s.default,p._internal=this,this._instance=p;var m=p.state;if(void 0===m&&(p.state=m=null),i(function(){p.componentWillMount&&p.componentWillMount()}),null==h){c.default.component=this,p.state=this._processPendingState(o,d);var _=void 0;"function"==typeof p.handleError&&(_=function(e){p.handleError(e)}),i(function(){h=p.render()},_),c.default.component=null}return this._renderedComponent=(0,y.default)(h),this._renderedComponent.mountComponent(this._parent,this._processChildContext(t),n),this._currentElement&&this._currentElement.ref&&v.default.attach(this._currentElement._owner,this._currentElement.ref,this),i(function(){p.componentDidMount&&p.componentDidMount()}),c.default.hook.Reconciler.mountComponent(this),p}},{key:"unmountComponent",value:function(e){var t=this._instance;if(i(function(){t.componentWillUnmount&&t.componentWillUnmount()}),c.default.hook.Reconciler.unmountComponent(this),t._internal=null,null!=this._renderedComponent){var n=this._currentElement.ref;n&&v.default.detach(this._currentElement._owner,n,this),this._renderedComponent.unmountComponent(e),this._renderedComponent=null,this._instance=null}this._currentElement=null,this._pendingStateQueue=null,this._pendingForceUpdate=!1,this._context=null}},{key:"_processContext",value:function(e){var t=this._currentElement.type,n=t.contextTypes;if(!n)return{};var r={};for(var o in n)r[o]=e[o];return r}},{key:"_processChildContext",value:function(e){var t=this._instance,n=t.getChildContext&&t.getChildContext();return n?Object.assign({},e,n):e}},{key:"_processPendingState",value:function(e,t){var n=this._instance,r=this._pendingStateQueue;if(!r)return n.state;this._pendingStateQueue=null;for(var o=Object.assign({},n.state),i=0;i<r.length;i++){var u=r[i];Object.assign(o,"function"==typeof u?u.call(n,o,e,t):u)}return o}},{key:"updateComponent",value:function(e,t,n,r){var o=this._instance;o||console.error("Update component '"+this.getName()+"' that has already been unmounted (or failed to mount).");var u=!1,l=void 0,a=void 0;this._context===r?l=o.context:(l=this._processContext(r),u=!0),e===t?a=t.props:(a=t.props,u=!0);var f=u&&o.componentWillReceiveProps;f&&(this._pendingState=!0,i(function(){o.componentWillReceiveProps(a,l)}),this._pendingState=!1),v.default.update(e,t,this);var d=!0,p=o.props,h=o.state,y=this._processPendingState(a,l);if(this._pendingForceUpdate||(o.shouldComponentUpdate?d=i(function(){return o.shouldComponentUpdate(a,y,l)}):o.isPureComponentClass&&(d=!(0,g.default)(p,a)||!(0,g.default)(h,y))),d){this._pendingForceUpdate=!1;var m=o.context;i(function(){o.componentWillUpdate&&o.componentWillUpdate(a,y,l)}),this._currentElement=t,this._context=r,o.props=a,o.state=y,o.context=l,this._updateRenderedComponent(r),i(function(){o.componentDidUpdate&&o.componentDidUpdate(p,h,m)}),this._updateCount++}else this._currentElement=t,this._context=r,o.props=a,o.state=y,o.context=l;if(f){var _=this._pendingCallbacks;this._pendingCallbacks=null,s.default.runCallbacks(_,o)}c.default.hook.Reconciler.receiveComponent(this)}},{key:"_updateRenderedComponent",value:function(e){var t=this._renderedComponent,n=t._currentElement,r=this._instance,o=void 0;if(c.default.component=this,i(function(){o=r.render()}),c.default.component=null,(0,_.default)(n,o))t.updateComponent(n,o,t._context,this._processChildContext(e));else{var u=t.getNativeNode();t.unmountComponent(!0),this._renderedComponent=(0,y.default)(o),this._renderedComponent.mountComponent(this._parent,this._processChildContext(e),function(e,t){Array.isArray(e)||(e=[e]),Array.isArray(u)||(u=[u]);for(var n=void 0,r=0;r<e.length;r++){var o=e[r];u[r]?c.default.driver.replaceChild(o,u[r]):c.default.driver.insertAfter(o,n),n=o}if(e.length<u.length)for(var i=e.length;i<u.length;i++)c.default.driver.removeChild(u[i])})}}},{key:"getNativeNode",value:function(){var e=this._renderedComponent;if(e)return e.getNativeNode()}},{key:"getPublicInstance",value:function(){var e=this._instance;return e instanceof a.default?null:e}}]),e}();t.default=C,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),u=(function(e){e&&e.__esModule}(i),function(){function e(t){r(this,e),this.pureRender=t}return o(e,[{key:"render",value:function(){return this.pureRender(this.props,this.context)}}]),e}());t.default=u,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(t){(e._pendingCallbacks||(e._pendingCallbacks=[])).push(t)}}function o(e,t){if(t){(e._pendingStateQueue||(e._pendingStateQueue=[])).push(t)}}Object.defineProperty(t,"__esModule",{value:!0});var i={setState:function(e,t,n){var i=e._internal;i&&(o(i,t),r(i,n),i._pendingState||this.runUpdate(e))},forceUpdate:function(e,t){var n=e._internal;n&&(n._pendingForceUpdate=!0,r(n,t),this.runUpdate(e))},runUpdate:function(e){var t=e._internal;if(t&&t._renderedComponent){var n=t._pendingCallbacks;t._pendingCallbacks=null;var r=t._currentElement,o=t._context;(t._pendingStateQueue||t._pendingForceUpdate)&&t.updateComponent(r,r,o,o),this.runCallbacks(n,e)}},runCallbacks:function(e,t){if(e)for(var n=0;n<e.length;n++)e[n].call(t)}};t.default=i,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e==1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!==(void 0===e?"undefined":i(e))||null===e||"object"!==(void 0===t?"undefined":i(t))||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var l=0;l<n.length;l++)if(!u.call(t,n[l])||!r(e[n[l]],t[n[l]]))return!1;return!0}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u=Object.prototype.hasOwnProperty;t.default=o,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(0),f=r(a),s=n(9),d=r(s),c=n(1),p=r(c),v=n(2),h=r(v),y=n(11),m=r(y),_=function(e){function t(e){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return u(t,e),l(t,[{key:"mountComponent",value:function(e,t,n){this._parent=e,this._context=t,this._mountID=f.default.mountID++;var r={_internal:this};this._instance=r;var o=this.getNativeNode(),i=this._currentElement;if(this.mountChildren(i,t),n)n(o,e);else for(var u=Array.isArray(e),l=0;l<o.length;l++){var a=o[l];u?e.push(a):f.default.driver.appendChild(a,e)}return r}},{key:"mountChildren",value:function(e,t){var n=this,r=this._renderedChildren={},o=this.getNativeNode();return e.map(function(e,i){var u=(0,h.default)(e),l=(0,m.default)(r,e,i);return r[l]=u,u._mountIndex=i,u.mountComponent(n._parent,t,function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)o.push(e[t]);else o.push(e)})})}},{key:"unmountComponent",value:function(e){if(this._nativeNode&&(p.default.remove(this._nativeNode),!e))for(var t=0;t<this._nativeNode.length;t++)f.default.driver.removeChild(this._nativeNode[t]);this.unmountChildren(!0),this._currentElement=null,this._nativeNode=null,this._parent=null,this._context=null,this._instance=null}},{key:"updateComponent",value:function(e,t,n,r){this._currentElement=t,this.updateChildren(this._currentElement,r)}},{key:"getNativeNode",value:function(){return null==this._nativeNode&&(this._nativeNode=[]),this._nativeNode}},{key:"getPublicInstance",value:function(){return this.getNativeNode()}},{key:"getName",value:function(){return"fragment"}}]),t}(d.default);t.default=_,e.exports=t.default},function(e,t,n){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return void 0===e?"undefined":r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":r(e)},i=n(12),u=n(31),l=function(e){return e&&e.__esModule?e:{default:e}}(u),a=/^on[A-Z]/,f=/^aria-/,s={},d="object"===("undefined"==typeof __weex_document__?"undefined":o(__weex_document__))?__weex_document__:"object"===(void 0===d?"undefined":o(d))?d:null,c={getElementById:function(e){return s[e]},createBody:function(){if(d.body)return d.body;var e=d.documentElement,t=d.createBody();return e.appendChild(t),t},createComment:function(e){return d.createComment(e)},createEmpty:function(){return this.createComment(" empty ")},createText:function(e){return c.createElement({type:"text",props:{value:e}})},updateText:function(e,t){this.setAttribute(e,"value",t)},createElement:function(e){var t=l.default[e.type];t&&(e=t.parse(e));var n=e.props,r={},o=n.style;for(var u in o)r[u]=(0,i.convertUnit)(o[u],u);var a=d.createElement(e.type,{style:r});return this.setNativeProps(a,n,!0),a},appendChild:function(e,t){return t.appendChild(e)},removeChild:function(e,t){t=t||e.parentNode;var n=e.attr&&e.attr.id;return null!=n&&(s[n]=null),t.removeChild(e)},replaceChild:function(e,t,n){n=n||t.parentNode;var r=t.previousSibling,o=t.nextSibling;this.removeChild(t,n),r?this.insertAfter(e,r,n):o?this.insertBefore(e,o,n):this.appendChild(e,n)},insertAfter:function(e,t,n){return n=n||t.parentNode,n.insertAfter(e,t)},insertBefore:function(e,t,n){return n=n||t.parentNode,n.insertBefore(e,t)},addEventListener:function(e,t,n){return e.addEvent(t,n)},removeEventListener:function(e,t,n){return e.removeEvent(t,n)},removeAllEventListeners:function(e){},removeAttribute:function(e,t,n){return"id"==t&&(s[n]=null),e.setAttr(t,void 0,!1)},setAttribute:function(e,t,n){return"id"==t&&(s[n]=e),f.test(t)&&(t=t.replace(/\-(\w)/,function(e,t){return t.toUpperCase()})),e.setAttr(t,n,!1)},setStyles:function(e,t){for(var n in t){var r=t[n];r=(0,i.convertUnit)(r,n),e.setStyle(n,r)}},beforeRender:function(){d.open(),(0,i.setRem)(this.getWindowWidth()/750)},afterRender:function(){d.listener&&d.listener.createFinish&&d.listener.createFinish(),d.close()},getWindowWidth:function(){return 750},setNativeProps:function(e,t,n){for(var r in t){var o=t[r];if("children"!==r&&null!=o)if("style"===r){if(n)continue;this.setStyles(e,o)}else if(a.test(r)){var i=r.slice(2).toLowerCase();this.addEventListener(e,i,o)}else this.setAttribute(e,r,o)}}};t.default=c,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(32),i=r(o),u=n(33),l=r(u),a=n(34),f=r(a),s=n(35),d=r(s),c=n(36),p=r(c),v=n(37),h=r(v),y=n(38),m=r(y),_=n(39),b=r(_);t.default={span:d.default,p:p.default,img:i.default,button:h.default,video:l.default,textarea:f.default,h1:m.default,h2:m.default,h3:m.default,h4:m.default,h5:m.default,h6:m.default,nav:b.default,article:b.default,section:b.default,footer:b.default,aside:b.default,main:b.default},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13);t.default={parse:function(e){var t=e.props;return e.type="image",e.props=(0,r.transformPropsAttrsToStyle)(t,["width","height"]),e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13);t.default={parse:function(e){var t=e.props;return e.props=(0,r.transformPropsAttrsToStyle)(t,["width","height"]),e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={parse:function(e){var t=e.props;return"string"!=typeof t.children||t.value||(t.value=t.children,t.children=null),e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={parse:function(e){var t=e.props;return e.type="text","string"!=typeof t.children||t.value||(t.value=t.children,t.children=null),e}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return{type:"span",attr:{value:e}}}function o(e){var t=e.type,n=e.props,r=n.style,o=n.children;"img"===t&&(t="image"),s[t]&&(r=a({},s[t],r),t="span"),n.style=null,n.children=null;var u={type:t,style:r,attr:n||{}};return o&&("span"===t&&"string"==typeof o?u.attr.value=o:u.children=i(o)),u}function i(e){var t=[];Array.isArray(e)||(e=[e]);for(var n=0;n<e.length;n++){var i=e[n];"string"==typeof i?t.push(r(i)):"object"===(void 0===i?"undefined":l(i))&&t.push(o(i))}return t}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};Object.defineProperty(t,"__esModule",{value:!0});var l="function"==typeof Symbol&&"symbol"===u(Symbol.iterator)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":u(e)},a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f={fontSize:28,marginTop:28,marginBottom:28},s={u:{textDecoration:"underline"},s:{textDecoration:"line-through"},i:{fontStyle:"italic"},b:{fontWeight:"bold"},del:{textDecoration:"line-through"},em:{fontStyle:"italic"},strong:{fontWeight:"bold"},big:{fontSize:33.6},small:{fontSize:28*.8}};t.default={parse:function(e){var t=e.props,n=t.children;return e.type="richtext",t.style=a({},f,t.style),t.value=i(n),t.children=null,e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default={parse:function(e){var t=e.props;e.type="text";var n=t.style,o=t.disabled,i=t.children,u=r({textAlign:"center",fontSize:22,paddingTop:4,paddingRight:12,paddingBottom:6,paddingLeft:12,borderWidth:4,borderStyle:"solid",borderColor:"#000000",backgroudColor:"#c0c0c0"},n);return o&&(t.onClick=null,u=r({},u,{color:"#7f7f7f",borderColor:"#7f7f7f"})),"string"==typeof i&&(t.value=i,t.children=null),e}},e.exports=t.default},function(e,t,n){"use strict";function r(e,t,n){return{fontSize:e*t,marginTop:e*t*n,marginBottom:e*t*n,fontWeight:"bold"}}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i={h1:r(28,2,.67),h2:r(28,1.5,.83),h3:r(28,1.17,1),h4:r(28,1,1.33),h5:r(28,.83,1.67),h6:r(28,.67,2.33)};t.default={parse:function(e){var t=e.type,n=e.props;return e.type="text",n.style=o({},i[t]||i.h6,n.style),"string"!=typeof n.children||n.value||(n.value=n.children,n.children=null),e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={parse:function(e){return e.type="div",e}},e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(41),i=function(e){return e&&e.__esModule?e:{default:e}}(o),u=/on[A-Z]/,l={getElementById:function(e){return document.getElementById(e)},createBody:function(){return document.body},createComment:function(e){return document.createComment(e)},createEmpty:function(){return this.createComment(" empty ")},createText:function(e){return document.createTextNode(e)},updateText:function(e,t){e["textContent"in document?"textContent":"nodeValue"]=t},createElement:function(e){var t=document.createElement(e.type),n=e.props;return this.setNativeProps(t,n),t},appendChild:function(e,t){return t.appendChild(e)},removeChild:function(e,t){(t=t||e.parentNode)&&t.removeChild(e)},replaceChild:function(e,t,n){n=n||t.parentNode,n.replaceChild(e,t)},insertAfter:function(e,t,n){n=n||t.parentNode;var r=t.nextSibling;r?n.insertBefore(e,r):n.appendChild(e)},insertBefore:function(e,t,n){n=n||t.parentNode,n.insertBefore(e,t)},addEventListener:function(e,t,n){return e.addEventListener(t,n)},removeEventListener:function(e,t,n){return e.removeEventListener(t,n)},removeAllEventListeners:function(e){},removeAttribute:function(e,t){if("dangerouslySetInnerHTML"===t)return e.innerHTML=null;"className"===t&&(t="class"),t in e&&(e[t]=null),e.removeAttribute(t)},setAttribute:function(e,t,n){if("dangerouslySetInnerHTML"===t)return e.innerHTML=n.__html;"className"===t&&(t="class"),t in e?e[t]=n:e.setAttribute(t,n)},setStyles:function(e,t){var n={};for(var o in t){var u=t[o];i.default.isFlexProp(o)?i.default[o](u,n):n[o]=(0,r.convertUnit)(u,o)}for(var l in n){var a=n[l];if(Array.isArray(a))for(var f=0;f<a.length;f++)e.style[l]=a[f];else e.style[l]=a}},beforeRender:function(){(0,r.setRem)(this.getWindowWidth()/750)},getWindowWidth:function(){return document.documentElement.clientWidth},setNativeProps:function(e,t){for(var n in t){var r=t[n];if("children"!==n&&null!=r)if("style"===n)this.setStyles(e,r);else if(u.test(n)){var o=n.slice(2).toLowerCase();this.addEventListener(e,o,r)}else this.setAttribute(e,n,r)}}};t.default=l,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={stretch:"stretch","flex-start":"start","flex-end":"end",center:"center"},o={row:"horizontal",column:"vertical"},i={"flex-start":"start","flex-end":"end",center:"center","space-between":"justify","space-around":"justify"},u={display:!0,flex:!0,alignItems:!0,alignSelf:!0,flexDirection:!0,justifyContent:!0,flexWrap:!0},l={isFlexProp:function(e){return u[e]},display:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.display="flex"===e?["-webkit-box","-webkit-flex","flex"]:e,t},flex:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxFlex=e,t.webkitFlex=e,t.flex=e,t},flexWrap:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.flexWrap=e,t},alignItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxAlign=r[e],t.webkitAlignItems=e,t.alignItems=e,t},alignSelf:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitAlignSelf=e,t.alignSelf=e,t},flexDirection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxOrient=o[e],t.webkitFlexDirection=e,t.flexDirection=e,t},justifyContent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.webkitBoxPack=i[e],t.webkitJustifyContent=e,t.justifyContent=e,t}};t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e){return null==e?null:i.default.get(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),i=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){e=(0,a.default)(e),u.default.driver.setNativeProps(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var i=n(0),u=r(i),l=n(14),a=r(l);e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="0.4.3",e.exports=t.default}])}); |
@@ -90,3 +90,3 @@ 'use strict'; | ||
var renderedChildren = {}; | ||
var renderedChildren = this._renderedChildren = {}; | ||
var fragment = this.getNativeNode(); | ||
@@ -112,4 +112,2 @@ | ||
this._renderedChildren = renderedChildren; | ||
return renderedChildrenImage; | ||
@@ -116,0 +114,0 @@ } |
@@ -116,3 +116,3 @@ 'use strict'; | ||
var renderedChildren = {}; | ||
var renderedChildren = this._renderedChildren = {}; | ||
@@ -129,4 +129,2 @@ var renderedChildrenImage = children.map(function (element, index) { | ||
this._renderedChildren = renderedChildren; | ||
return renderedChildrenImage; | ||
@@ -133,0 +131,0 @@ } |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.default = '0.4.2'; | ||
exports.default = '0.4.3'; | ||
module.exports = exports['default']; |
{ | ||
"name": "rax", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "A universal React-compatible render engine.", | ||
@@ -19,8 +19,8 @@ "license": "BSD-3-Clause", | ||
"dependencies": { | ||
"driver-browser": "^0.4.2", | ||
"driver-server": "^0.4.2", | ||
"driver-weex": "^0.4.2", | ||
"style-unit": "^0.4.2", | ||
"universal-env": "^0.4.2" | ||
"driver-browser": "^0.4.3", | ||
"driver-server": "^0.4.3", | ||
"driver-weex": "^0.4.3", | ||
"style-unit": "^0.4.3", | ||
"universal-env": "^0.4.3" | ||
} | ||
} |
@@ -52,6 +52,6 @@ import Host from './host'; | ||
mountChildren(children, context) { | ||
let renderedChildren = {}; | ||
let renderedChildren = this._renderedChildren = {}; | ||
let fragment = this.getNativeNode(); | ||
let renderedChildrenImage = children.map( (element, index) => { | ||
let renderedChildrenImage = children.map((element, index) => { | ||
let renderedChild = instantiateComponent(element); | ||
@@ -64,4 +64,3 @@ let name = getElementKeyName(renderedChildren, element, index); | ||
this._parent, | ||
context, | ||
(nativeNode) => { | ||
context, (nativeNode) => { | ||
if (Array.isArray(nativeNode)) { | ||
@@ -79,4 +78,2 @@ for (let i = 0; i < nativeNode.length; i++) { | ||
this._renderedChildren = renderedChildren; | ||
return renderedChildrenImage; | ||
@@ -83,0 +80,0 @@ } |
@@ -79,5 +79,5 @@ import Host from './host'; | ||
let renderedChildren = {}; | ||
let renderedChildren = this._renderedChildren = {}; | ||
let renderedChildrenImage = children.map( (element, index) => { | ||
let renderedChildrenImage = children.map((element, index) => { | ||
let renderedChild = instantiateComponent(element); | ||
@@ -88,8 +88,7 @@ let name = getElementKeyName(renderedChildren, element, index); | ||
// Mount | ||
let mountImage = renderedChild.mountComponent(this.getNativeNode(), context); | ||
let mountImage = renderedChild.mountComponent(this.getNativeNode(), | ||
context); | ||
return mountImage; | ||
}); | ||
this._renderedChildren = renderedChildren; | ||
return renderedChildrenImage; | ||
@@ -157,5 +156,5 @@ } | ||
if (propKey === CHILDREN || | ||
nextProps.hasOwnProperty(propKey) || | ||
!prevProps.hasOwnProperty(propKey) || | ||
prevProps[propKey] == null) { | ||
nextProps.hasOwnProperty(propKey) || | ||
!prevProps.hasOwnProperty(propKey) || | ||
prevProps[propKey] == null) { | ||
continue; | ||
@@ -174,6 +173,8 @@ } | ||
if (typeof prevProps[propKey] === 'function') { | ||
Host.driver.removeEventListener(this.getNativeNode(), propKey.slice(2).toLowerCase(), prevProps[propKey]); | ||
Host.driver.removeEventListener(this.getNativeNode(), propKey.slice( | ||
2).toLowerCase(), prevProps[propKey]); | ||
} | ||
} else { | ||
Host.driver.removeAttribute(this.getNativeNode(), propKey, prevProps[propKey]); | ||
Host.driver.removeAttribute(this.getNativeNode(), propKey, prevProps[ | ||
propKey]); | ||
} | ||
@@ -188,5 +189,5 @@ } | ||
if (propKey === CHILDREN || | ||
!nextProps.hasOwnProperty(propKey) || | ||
nextProp === prevProp || | ||
nextProp == null && prevProp == null) { | ||
!nextProps.hasOwnProperty(propKey) || | ||
nextProp === prevProp || | ||
nextProp == null && prevProp == null) { | ||
continue; | ||
@@ -207,3 +208,3 @@ } | ||
if (prevProp.hasOwnProperty(styleName) && | ||
(!nextProp || !nextProp.hasOwnProperty(styleName))) { | ||
(!nextProp || !nextProp.hasOwnProperty(styleName))) { | ||
styleUpdates = styleUpdates || {}; | ||
@@ -216,3 +217,3 @@ styleUpdates[styleName] = ''; | ||
if (nextProp.hasOwnProperty(styleName) && | ||
prevProp[styleName] !== nextProp[styleName]) { | ||
prevProp[styleName] !== nextProp[styleName]) { | ||
styleUpdates = styleUpdates || {}; | ||
@@ -227,12 +228,14 @@ styleUpdates[styleName] = nextProp[styleName]; | ||
// Update event binding | ||
// Update event binding | ||
} else if (EVENT_PREFIX_REGEXP.test(propKey)) { | ||
if (typeof prevProp === 'function') { | ||
Host.driver.removeEventListener(this.getNativeNode(), propKey.slice(2).toLowerCase(), prevProp); | ||
Host.driver.removeEventListener(this.getNativeNode(), propKey.slice( | ||
2).toLowerCase(), prevProp); | ||
} | ||
if (typeof nextProp === 'function') { | ||
Host.driver.addEventListener(this.getNativeNode(), propKey.slice(2).toLowerCase(), nextProp); | ||
Host.driver.addEventListener(this.getNativeNode(), propKey.slice(2) | ||
.toLowerCase(), nextProp); | ||
} | ||
// Update other property | ||
// Update other property | ||
} else { | ||
@@ -244,3 +247,4 @@ let payload = {}; | ||
} else { | ||
Host.driver.removeAttribute(this.getNativeNode(), propKey, prevProps[propKey]); | ||
Host.driver.removeAttribute(this.getNativeNode(), propKey, | ||
prevProps[propKey]); | ||
} | ||
@@ -286,3 +290,4 @@ if (process.env.NODE_ENV !== 'production') { | ||
// Update next children elements | ||
for (let index = 0, length = nextChildrenElements.length; index < length; index++) { | ||
for (let index = 0, length = nextChildrenElements.length; index < | ||
length; index++) { | ||
let nextElement = nextChildrenElements[index]; | ||
@@ -293,5 +298,7 @@ let name = getElementKeyName(nextChildren, nextElement, index); | ||
if (prevChild != null && shouldUpdateComponent(prevElement, nextElement)) { | ||
if (prevChild != null && shouldUpdateComponent(prevElement, | ||
nextElement)) { | ||
// Pass the same context when updating chidren | ||
prevChild.updateComponent(prevElement, nextElement, context, context); | ||
prevChild.updateComponent(prevElement, nextElement, context, | ||
context); | ||
nextChildren[name] = prevChild; | ||
@@ -389,4 +396,3 @@ } else { | ||
parent, | ||
context, | ||
(newChild, parent) => { | ||
context, (newChild, parent) => { | ||
// TODO: Rework the duplicate code | ||
@@ -393,0 +399,0 @@ let oldChild = oldNodes[name]; |
@@ -1,1 +0,1 @@ | ||
export default '0.4.2'; | ||
export default '0.4.3'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
913088
14604
Updateddriver-browser@^0.4.3
Updateddriver-server@^0.4.3
Updateddriver-weex@^0.4.3
Updatedstyle-unit@^0.4.3
Updateduniversal-env@^0.4.3