Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rax

Package Overview
Dependencies
Maintainers
5
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rax - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3-beta.1

src/vdom/injectRenderOptions.js

4

CHANGELOG.md
## CHANGELOG
### 1.2.3
- chore: move the configuration not related to rendering to `inject` method, others move to `injectRenderOptions` method
### 1.2.2

@@ -4,0 +8,0 @@

2

dist/rax.min.js

@@ -1,1 +0,1 @@

var n={t:1,i:!1,driver:null,rootComponents:{},rootInstances:{},owner:null};function t(n,t,i,r,u){return{type:n,key:t,ref:i,props:r,_owner:u}}function i(n){return null===n}function r(n){return"function"==typeof n}function u(n){return"object"==typeof n}function f(n){return"[object Object]"===h.toString.call(n)}function o(n){return Array.isArray(n)}function e(n){return"string"==typeof n}function s(n){return"number"==typeof n}var c=function(){},h={};function a(n,t){if(o(n))for(var i=0,r=n.length;i<r;i++)a(n[i],t);else t.push(n)}function v(n){if(null==n)return n;var t=[];return a(n,t),t.length-1?t:t[0]}var l=[],p=[],d=[],_=setTimeout;function x(n){var t;while(t=n.shift())t()}function w(n){0===l.length&&_(y),l.push(n)}function y(){x(l)}function b(n){0===p.length&&_(j),p.push(n)}function j(){x(p)}function m(n){d.push(n)}function O(t,i,r){var u,o=void 0===r?"":" got: "+function(n){return f(n)?Object.keys(n):n}(r);return Error(t+": #"+i+", "+(((u=n.owner)?"check <"+u.u()+">":"no owner")+".")+o)}function g(n,t){throw O("Error",n,t)}function k(n,t){var i=O("Warn",n,t);_((function(){throw i}),0)}var I={key:!0,ref:!0};function A(i,r,u){var f,e={},s=null,h=null;if(null!=r)for(f in h=void 0===r.ref?null:r.ref,s=void 0===r.key?null:""+r.key,r)I[f]||(e[f]=r[f]);var a=arguments.length-2;if(a>0)if(1!==a||o(u)){var l=u;if(a>1){l=Array(a);for(var p=0;p<a;p++)l[p]=arguments[p+2]}e.children=v(l)}else e.children=u;if(i&&i.defaultProps){var d=i.defaultProps;for(f in d)void 0===e[f]&&(e[f]=d[f])}return null==i&&(i=c,k(0)),new t(i,s,h,e,n.owner)}function C(n,t,i){for(var r=0,u=n&&n.length;r<u;r++)n[r].call(t,i)}var E=h.hasOwnProperty;function P(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function D(n,t){if(P(n,t))return!0;if(!u(n)||i(n)||!u(t)||i(t))return!1;var r=Object.keys(n);if(r.length!==Object.keys(t).length)return!1;for(var f=0;f<r.length;f++)if(!E.call(t,r[f])||!P(n[r[f]],t[r[f]]))return!1;return!0}function S(){return n.owner&&n.owner._instance}function U(){var n=S();if(n)return n;g(1)}function H(n,t){if(i(t)||n.length!==t.length)return!1;for(var r=0;r<n.length;r++)if(!P(n[r],t[r]))return!1;return!0}function N(t){var i=U(),u=i.getHookID(),f=i.getHooks();if(!f[u]){r(t)&&(t=t());f[u]=[t,function(t){n.i||j();var o=f[u],e=o[2];r(t)&&(t=t(e)),P(t,e)||(o[2]=t,S()===i?i.o=!0:i.h())},t]}var o=f[u];return P(o[0],o[2])||(o[0]=o[2],i.v=!0),o}function R(n,t){T(n,t)}function T(n,t,i){var r=U(),u=r.getHookID(),f=r.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u],e=o.l,s=o.p;o.p=t,o._=s,e.current=n}else{var c=function n(t){if(!t&&i)return b((function(){return n(!0)}));var r=n.current;r&&(h.current=r(),n.current=null)},h=function n(t){if(!t&&i)return b((function(){return n(!0)}));var r=n.current;r&&(r(),n.current=null)};c.current=n,f[u]={l:c,j:h,_:t,p:t},r.didMount.push(c),r.willUnmount.push((function(){return h(!0)})),r.didUpdate.push((function(){var n=f[u],t=n.p,i=n.l;null!=t&&H(t,n._)||(h(),i())}))}}function V(n,t){var r=U(),u=r.getHookID(),f=r.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u][1];!i(t)&&H(t,o)||(f[u]=[n(),t])}else f[u]=[n(),t];return f[u][0]}function W(n){return o(n)?n:[n]}function Z(n,t){var i;while(n&&n._internal){if(t(n)){i=n;break}n=n._internal.m}return i}var $=0;function q(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,z(n,t)}function z(n,t){return(z=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}var B=function(){function t(n){this.O=n}var i=t.prototype;return i.g=function(t,i,r){this._parent=t,this.m=i,this._context=r,this._mountID=n.t++},i.k=function(){this.O=this._nativeNode=this._parent=this.m=this._context=null,this._instance&&(this._instance=this._instance._internal=null)},i.I=function(n,t,i,r){this.g(n,t,i),this.A(r);var u={};return u._internal=this,u},i.unmountComponent=function(t){this._nativeNode&&!t&&n.driver.removeChild(this._nativeNode,this._parent),this.k()},i.u=function(){var n=this.O,t=n&&n.type;return t&&t.displayName||t&&t.name||t||n},i.A=function(t){var i=this.C(),r=this._parent;t?t(i,r):n.driver.appendChild(i,r)},i.C=function(){return null==this._nativeNode?this._nativeNode=this.P():this._nativeNode},i.D=function(){return this.C()},t}(),F=function(t){function i(){return t.apply(this,arguments)||this}q(i,t);var r=i.prototype;return r.P=function(){return n.driver.createEmpty(this)},r.S=function(){},i}(B);function G(n,t,i){var r=n?n.ref:null,u=t?t.ref:null;r!==u&&(r&&K(n._owner,r,i),u&&J(t._owner,u,i))}function J(n,t,i){if(n){var f=i.D();r(t)?t(f):u(t)?t.current=f:n._instance.refs[t]=f}else k(3)}function K(n,t,i){if(r(t))t(null);else{var f=i.D();u(t)&&t.current===f?t.current=null:n._instance.refs[t]===f&&delete n._instance.refs[t]}}function L(t){var r;return f(t)&&null!==t&&t.type?r=e(t.type)?new n.U(t):new n.H(t):e(t)||s(t)?r=new n.N(t+""):o(t)?r=new n.R(t):(void 0===t||i(t)||!1===t||!0===t||k(2,t),r=new n.T(t)),r}function M(n,t){var r=i(n),f=i(t);return r||f?r===f:!(!o(n)||!o(t))||(e(n)||s(n)?e(t)||s(t):u(n)&&u(t)&&n.type===t.type&&n.key===t.key)}function Q(n,t,i){var r=t&&t.key,u="."+i.toString(36);if(e(r)){var f="$"+r;return void 0===n[f]?f:u}return u}function X(t){var i=t;while(i=t.m&&t.m._internal)if(i instanceof n.H)t=i;else{for(var r=Object.keys(i.V),u=t.W-1;u>=0;u--){var f=i.V[r[u]].C();if(!o(f))return f;if(f.length>0)return f[f.length-1]}if(!(i instanceof n.R))return null;t=i}}var Y=function(){function n(n,t){this.props=n,this.context=t,this.refs={}}var t=n.prototype;return t.setState=function(n,t){this.updater.setState(this,n,t)},t.forceUpdate=function(n){this.updater.forceUpdate(this,n)},n}(),nn=function(n){function t(t,i){var r;return(r=n.call(this,t,i)||this).Z=!0,r}return q(t,n),t}(Y),tn=1,rn=function(n){function t(){var t;return(t=n.call(this)||this).$=[],t.q=tn++,t}q(t,n);var i=t.prototype;return i.D=function(){return this.B().D()},i.B=function(){return this._internal._renderedComponent},i.h=function(n){this.$=n,this.forceUpdate()},i.render=function(){return this.$},t}(Y),un={set:function(t,i){t._r||(t._r=i,i.q&&(n.rootInstances[i.q]=i,n.rootComponents[i.q]=i._internal))},get:function(n){return n._r},remove:function(t){var i=this.get(t);i&&(t._r=null,i.q&&(delete n.rootComponents[i.q],delete n.rootInstances[i.q]))},mount:function(t,i,r){var u=r.parent,f=r.hydrate,o=n.driver;null==i&&(i=o.createBody());var e,s={element:t,container:i,hydrate:f};if(o.beforeRender&&o.beforeRender(s),u){var c=u._internal;e=c.F(c._context)}var h=this.get(i);if(h&&h.q)return e&&(h._internal.G=e),h.h(t),o.afterRender&&o.afterRender(s),h;var a=L(A(rn)).I(i,u,e||{});return this.set(i,a),a.h(t),o.afterRender&&o.afterRender(s),a}},fn=Object.assign,on=/^on[A-Z]/,en=function(t){function u(){return t.apply(this,arguments)||this}q(u,t);var f=u.prototype;return f.I=function(n,t,i,r){this.g(n,t,i);var u=this.O,f=u.props,o=u.type,e=f.children,s=f.append||"tree";this.J=fn({},f.style);var c={type:o,props:f};return c._internal=this,this._instance=c,"tree"===s?(this.K(e,i),this.A(r)):(this.A(r),this.K(e,i)),u&&u.ref&&J(u._owner,u.ref,this),c},f.K=function(n,t){if(null==n)return n;var i=this.C();return this.L(i,W(n),t)},f.L=function(n,t,i,r){for(var u=this.V={},f=[],o=0,e=t.length;o<e;o++){var s=t[o],c=L(s);u[Q(u,s,o)]=c,c.W=o;var h=c.I(n,this._instance,i,r);f.push(h)}return f},f.M=function(n){var t=this.V;if(t){for(var i in t){t[i].unmountComponent(n)}this.V=null}},f.unmountComponent=function(t){if(this._nativeNode){var i=this.O.ref;i&&K(this.O._owner,i,this),un.remove(this._nativeNode),t||n.driver.removeChild(this._nativeNode,this._parent)}this.M(!0),this.J=null,this.k()},f.S=function(n,t,i,r){this.O=t,G(n,t,this);var u=n.props,f=t.props;this.X(u,f),null==u.children||o(u.children)&&0===u.children.length?this.K(f.children,r):this.Y(f.children,r)},f.X=function(t,i){var u,f,o,e=n.driver,s=this.C();for(u in t)if("children"!==u&&null!=t[u]&&!i.hasOwnProperty(u))if("style"===u){var c=this.J;for(f in c)(o=o||{})[f]="";this.J=null}else if(on.test(u)){var h=t[u];r(h)&&e.removeEventListener(s,u.slice(2).toLowerCase(),h)}else e.removeAttribute(s,u,t[u]);for(u in i){var a=i[u],v="style"===u?this.J:null!=t?t[u]:void 0;if("children"!==u&&v!==a&&(null!=a||null!=v))if("style"===u)if(a?a=this.J=fn({},a):this.J=null,null!=v){for(f in v)a&&(a[f]||0===a[f])||((o=o||{})[f]="");for(f in a)v[f]!==a[f]&&((o=o||{})[f]=a[f])}else o=a;else if(on.test(u)){var l=u.slice(2).toLowerCase();r(v)&&e.removeEventListener(s,l,v,i),r(a)&&e.addEventListener(s,l,a,i)}else null!=a?e.setAttribute(s,u,a):e.removeAttribute(s,u,t[u])}o&&e.setStyle(s,o)},f.Y=function(t,r){var u=this.V,f=n.driver;if(null!=t||null!=u){var e={};if(null!=t)for(var s=0,c=(t=W(t)).length;s<c;s++){var h=t[s],a=Q(e,h,s),v=u&&u[a],l=v&&v.O,p=v&&v._context;null!=v&&M(l,h)?(l===h&&p===r||v.S(l,h,r,r),e[a]=v):(v&&(v.nn=!0),e[a]=L(h))}var d=this.C(),_=o(d),x=null,w=null,y=!1,b=!1,j=null,m=!(!f.removeChildren||!(i(t)||t&&!t.length)||_);if(null!=u){for(var O in u){var g=u[O],k=g.nn||!e[O];x?k&&g.unmountComponent(m):(b=k,o(w=(x=g).C())&&(y=0===w.length,w=w[0]))}(_&&0===d.length||y)&&(j=X(this))}if(null!=e){var I=function(n,t){for(var i=0,r=(n=W(n)).length;i<r;i++)j?f.insertAfter(n[r-1-i],j):w?f.insertBefore(n[i],w):t&&f.appendChild(n[i],t)},A=0;for(var C in e){var E=e[C],P=u&&u[C];if(P===E){var D=P.C();P.W!==A&&I(D)}else _&&(d=this._parent),E.I(d,this._instance,r,I);E.W=A++,o(j=E.C())&&(j=j[j.length-1])}}b&&x.unmountComponent(m),m&&f.removeChildren(this._nativeNode),this.V=e}},f.P=function(){var t=this._instance,i=n.driver.createElement(t.type,t.props,this);return un.set(i,t),i},u}(B),sn=function(t){function i(){return t.apply(this,arguments)||this}q(i,t);var r=i.prototype;return r.S=function(t,i){t!==(i=""+i)&&(this.O=i,n.driver.updateText(this.C(),i))},r.P=function(){return n.driver.createText(this.O,this)},i}(B),cn=function(n){function t(t,i){var r;(r=n.call(this)||this).tn=!0,r.rn=t,r.un=0,r.fn=0,r.on={},r.o=!1,r.v=!1,r.en=null,r.sn={},r.didMount=[],r.didUpdate=[],r.willUnmount=[],r.state=h,t._forwardRef&&(r.cn=r._forwardRef=i);var u=t.hn;return u&&(r.shouldComponentUpdate=function(n){for(var t=!0,i=u.length-1;i>-1;i--)if(t=u[i](r.props,n))break;return!t||r.cn!==r._forwardRef}),r}q(t,n);var i=t.prototype;return i.getHooks=function(){return this.on},i.getHookID=function(){return++this.un},i.useContext=function(n){var t=this,i=n._contextID,r=this.sn[i];if(!r){var u=n.an(this);if(r=this.sn[i]={vn:u},u){var f=function(n){r.ln!==n&&(t.v=!0,t.h())};u.pn(f),this.willUnmount.push((function(){return u.dn(f)}))}}return r.ln=r.vn?r.vn.getValue():n._defaultValue},i.componentWillMount=function(){this.v=!0},i.componentDidMount=function(){C(this.didMount)},i.componentWillReceiveProps=function(){this.v=!0},i.componentDidUpdate=function(){C(this.didUpdate)},i.componentWillUnmount=function(){C(this.willUnmount)},i.h=function(){this.setState(h)},i.render=function(){this.un=0,this.fn=0,this.o=!1;var n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);while(this.o)this.fn++,this.fn>24&&g(4),this.un=0,this.o=!1,n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);return this.v&&(this.en=n,this.v=!1),this.en},t}(Y),hn=[];function an(n){return n._n}function vn(t){var i=t._internal;if(i){n.i=!0;var r=i.O,u=i._context,f=i.G||u;i.G=void 0,(an(i)||i.xn)&&(i.S(r,r,u,f),x(d)),n.i=!1}}function ln(n,t){return t._internal._mountID-n._internal._mountID}function pn(){if(n.i)return w(pn);var t,i=hn;if(i.length>0){j(),hn=[],i.length>1&&(i=i.filter((function(n){return!!n._internal})).sort(ln));while(t=i.pop())vn(t)}}function dn(n,t){if(hn.indexOf(n)<0&&hn.push(n),t){if(hn.length>1)return;w(pn)}else pn()}function _n(n,t,i){var r=n._internal;if(r){i&&function(n,t){(function(n){return n.wn}(n)||function(n){return n.wn=[]}(n)).push(t)}(r,i);var u=r._renderedComponent;t?(n.tn&&(r.xn=!0),function(n,t){(an(n)||function(n){return n._n=[]}(n)).push(t)}(r,t),!r.yn&&u&&dn(n,!0)):(r.xn=!0,u&&dn(n))}}var xn={setState:function(t,i,r){n.i||j(),_n(t,i,r)},forceUpdate:function(n,t){_n(n,null,t)}};function wn(n,t,i){try{return n()}catch(n){i?i(n):function(n,t){var i=Z(n,(function(n){return n.componentDidCatch||n.constructor&&n.constructor.getDerivedStateFromError}));i?m((function(){var n=i._internal;n&&wn((function(){if(i.componentDidCatch&&i.componentDidCatch(t),i.constructor&&i.constructor.getDerivedStateFromError){var n=i.constructor.getDerivedStateFromError(t);i.setState(n)}}),n.m)})):_((function(){throw t}),0)}(t,n)}}function yn(n,t){m((function(){wn(n,t)}))}function bn(n,t){n&&yn((function(){C(n,t)}),t)}var jn=function(t){function i(){return t.apply(this,arguments)||this}q(i,t);var u=i.prototype;return u.I=function(t,i,u,f){this.g(t,i,u);var o,e,s=this.O,c=s.type,h=s.ref,a=s.props,v=c.prototype,l=this.bn(u);if(wn((function(){v&&v.render?o=new c(a,l):r(c)?o=new cn(c,h):g(6,c)}),i),o){o.props=a,o.context=l,o.refs={},o.updater=xn,o._internal=this,this._instance=o;var p=o.state;void 0===p&&(o.state=p=null),o.componentWillMount&&wn((function(){o.componentWillMount()}),o),n.owner=this,o.state=this.jn(a,l);var d=this.wn;return this.wn=null,wn((function(){e=o.render()}),o),n.owner=null,this._renderedComponent=L(e),this._renderedComponent.I(this._parent,o,this.F(u),f),!s.type._forwardRef&&h&&J(s._owner,h,this),o.componentDidMount&&yn((function(){o.componentDidMount()}),o),bn(d,o),o}},u.unmountComponent=function(n){var t=this._instance;if(t&&t.componentWillUnmount&&wn((function(){t.componentWillUnmount()}),t),null!=this._renderedComponent){var i=this.O,r=i.ref;!i.type._forwardRef&&r&&K(i._owner,r,this),this._renderedComponent.unmountComponent(n),this._renderedComponent=null}this._n=null,this.xn=!1,this.k()},u.bn=function(n){var t={},i=this.O.type.contextTypes;if(i)for(var r in i)t[r]=n[r];return t},u.F=function(n){var t=this._instance,i=t.getChildContext&&t.getChildContext();return i?fn({},n,i):n},u.jn=function(n,t){var i=this._instance,u=this._n;if(!u)return i.state;this._n=null;for(var f=fn({},i.state),o=0;o<u.length;o++){var e=u[o];fn(f,r(e)?e.call(i,f,n,t):e)}return f},u.S=function(n,t,i,r){var u=this,f=this._instance;f&&wn((function(){var i,o,e;u._context===r?o=f.context:(o=u.bn(r),i=!0),e=t.props,n!==t&&(i=!0),i&&f.componentWillReceiveProps&&(u.yn=!0,f.componentWillReceiveProps(e,o),u.yn=!1),u.O.type._forwardRef?(f.cn=n.ref,f._forwardRef=t.ref):G(n,t,u);var s=!0,c=f.props,h=f.state,a=u.jn(e,o),v=u.wn;if(u.wn=null,u.xn||(f.shouldComponentUpdate?s=f.shouldComponentUpdate(e,a,o):f.Z&&(s=!D(c,e)||!D(h,a))),s){u.xn=!1;var l=f.context;f.componentWillUpdate&&f.componentWillUpdate(e,a,o),u.O=t,u._context=r,f.props=e,f.state=a,f.context=o,u.mn(r),f.componentDidUpdate&&yn((function(){f.componentDidUpdate(c,h,l)}),f)}else u.O=t,u._context=r,f.props=e,f.state=a,f.context=o;bn(v,f)}),f)},u.mn=function(t){var i,r=this._renderedComponent,u=r.O,f=this._instance;if(n.owner=this,i=f.render(),n.owner=null,M(u,i)){var e=r._context,s=this.F(t);u===i&&e===s||r.S(u,i,e,s)}else{var c=null,h=r.C();o(h)&&0===h.length&&null==f.q&&(c=X(r)),r.unmountComponent(!0),this._renderedComponent=L(i),this._renderedComponent.I(this._parent,f,this.F(t),(function(t,i){var r=n.driver;h=W(h),t=W(t);for(var u=0;u<t.length;u++){var f=t[u];h[u]?r.replaceChild(f,h[u]):c?r.insertAfter(f,c):r.appendChild(f,i),c=f}for(var o=t.length;o<h.length;o++)r.removeChild(h[o])}))}},u.C=function(){var n=this._renderedComponent;if(n)return n.C()},u.D=function(){var n=this._instance;return n.tn?null:n},i}(B),mn=function(t){function i(){return t.apply(this,arguments)||this}q(i,t);var r=i.prototype;return r.I=function(t,i,r,u){this.g(t,i,r);var f=this._instance={};f._internal=this;var o=[];if(this.L(this._parent,this.O,r,(function(n){n=W(n);for(var t=0;t<n.length;t++)o.push(n[t])})),u)u(o,t);else for(var e=0;e<o.length;e++)n.driver.appendChild(o[e],t);return f},r.unmountComponent=function(t){if(!t)for(var i=this.C(),r=0,u=i.length;r<u;r++)n.driver.removeChild(i[r]);this.M(!0),this.k()},r.S=function(n,t,i,r){this.O=t,this.Y(this.O,r)},r.C=function(){var n=this.V||{};return[].concat.apply([],Object.keys(n).map((function(t){return n[t].C()})))},i}(en);var On={Host:n,Instance:un,Element:t,flattenChildren:v};exports.Component=Y,exports.Fragment=function(n){return n.children},exports.PureComponent=nn,exports.createContext=function(n){var t="_c"+$++;function i(n){return Z(n,(function(n){return n.On===t}))}return{Provider:function(){function i(){this.On=t,this.gn=[]}var r=i.prototype;return r.pn=function(n){this.gn.push(n)},r.dn=function(n){this.gn=this.gn.filter((function(t){return t!==n}))},r._getChildContext=function(){var n;return(n={})[t]=this,n},r.getValue=function(){return void 0!==this.props.value?this.props.value:n},r.componentDidUpdate=function(n){this.props.value!==n.value&&C(this.gn,null,this.getValue())},r.render=function(){return this.props.children},i}(),Consumer:function(u,f){var o=this,e=N((function(){return f[t]||i(o)}))[0],s=e?e.getValue():n,c=N(s),h=c[1];if(s===c[0]){R((function(){if(e)return e.pn(h),function(){e.dn(h)}}),[]);var a=W(u.children)[0];return r(a)?a(s):void 0}h(s)},_contextID:t,_defaultValue:n,an:i}},exports.createElement=A,exports.createRef=function(){return{current:null}},exports.forwardRef=function(n){return n._forwardRef=!0,n},exports.memo=function(n,t){return t=t||D,n.hn?n.hn.push(t):n.hn=[t],n},exports.render=function(t,i,u,f){var o;r(u)&&(f=u,u=null),o=(u=u||h).driver,n.T=F,n.U=en,n.N=sn,n.R=mn,n.H=jn,(n.driver=o||n.driver)||g(5);var e=un.mount(t,i,u).D();return f&&f.call(e),e},exports.shared=On,exports.useCallback=function(n,t){return V((function(){return n}),t)},exports.useContext=function(n){return U().useContext(n)},exports.useEffect=function(n,t){T(n,t,!0)},exports.useImperativeHandle=function(n,t,i){R((function(){return r(n)?(n(t()),function(){return n(null)}):null!=n?(n.current=t(),function(){n.current=null}):void 0}),o(i)?i.concat([n]):null)},exports.useLayoutEffect=R,exports.useMemo=V,exports.useReducer=function(t,i,u){var f=U(),o=f.getHookID(),e=f.getHooks(),s=e[o];if(!s){var c=r(u)?u(i):i;return e[o]=[c,function(t){n.i||j();var i=e[o][2];if(S()===f)i.kn.push(t),f.o=!0;else{var r=i.In,u=(0,i.An)(r,t);if(P(u,r))return;i.In=u,i.kn.push(t),f.h()}},{kn:[],An:t,In:c}]}var h=s[2],a=s[0];if(f.fn>0)for(var v=0;v<h.kn.length;v++)a=t(a,h.kn[v]);else a=h.In;return P(a,s[0])||(s[0]=a,f.v=!0),h.An=t,h.In=a,h.kn.length=0,e[o]},exports.useRef=function(n){var t=U(),i=t.getHookID(),r=t.getHooks();return r[i]||(r[i]={current:n}),r[i]},exports.useState=N,exports.version="1.2.2";
var n={t:1,i:!1,driver:null,rootComponents:{},rootInstances:{},owner:null};function t(n,t,i,r,u){return{type:n,key:t,ref:i,props:r,_owner:u}}function i(n){return null===n}function r(n){return"function"==typeof n}function u(n){return"object"==typeof n}function f(n){return"[object Object]"===h.toString.call(n)}function o(n){return Array.isArray(n)}function e(n){return"string"==typeof n}function s(n){return"number"==typeof n}var c=function(){},h={};function a(n,t){if(o(n))for(var i=0,r=n.length;i<r;i++)a(n[i],t);else t.push(n)}function l(n){if(null==n)return n;var t=[];return a(n,t),t.length-1?t:t[0]}var v=[],p=[],d=[],_=setTimeout;function x(n){var t;while(t=n.shift())t()}function w(n){0===v.length&&_(y),v.push(n)}function y(){x(v)}function b(n){0===p.length&&_(j),p.push(n)}function j(){x(p)}function m(n){d.push(n)}function O(t,i,r){var u,o=void 0===r?"":" got: "+function(n){return f(n)?Object.keys(n):n}(r);return Error(t+": #"+i+", "+(((u=n.owner)?"check <"+u.u()+">":"no owner")+".")+o)}function g(n,t){throw O("Error",n,t)}function k(n,t){var i=O("Warn",n,t);_((function(){throw i}),0)}var I={key:!0,ref:!0};function A(i,r,u){var f,e={},s=null,h=null;if(null!=r)for(f in h=void 0===r.ref?null:r.ref,s=void 0===r.key?null:""+r.key,r)I[f]||(e[f]=r[f]);var a=arguments.length-2;if(a>0)if(1!==a||o(u)){var v=u;if(a>1){v=Array(a);for(var p=0;p<a;p++)v[p]=arguments[p+2]}e.children=l(v)}else e.children=u;if(i&&i.defaultProps){var d=i.defaultProps;for(f in d)void 0===e[f]&&(e[f]=d[f])}return null==i&&(i=c,k(0)),new t(i,s,h,e,n.owner)}function C(n,t,i){for(var r=0,u=n&&n.length;r<u;r++)n[r].call(t,i)}var E=h.hasOwnProperty;function P(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function D(n,t){if(P(n,t))return!0;if(!u(n)||i(n)||!u(t)||i(t))return!1;var r=Object.keys(n);if(r.length!==Object.keys(t).length)return!1;for(var f=0;f<r.length;f++)if(!E.call(t,r[f])||!P(n[r[f]],t[r[f]]))return!1;return!0}function S(){return n.owner&&n.owner._instance}function U(){var n=S();if(n)return n;g(1)}function H(n,t){if(i(t)||n.length!==t.length)return!1;for(var r=0;r<n.length;r++)if(!P(n[r],t[r]))return!1;return!0}function N(t){var i=U(),u=i.getHookID(),f=i.getHooks();if(!f[u]){r(t)&&(t=t());f[u]=[t,function(t){n.i||j();var o=f[u],e=o[2];r(t)&&(t=t(e)),P(t,e)||(o[2]=t,S()===i?i.o=!0:i.h())},t]}var o=f[u];return P(o[0],o[2])||(o[0]=o[2],i.l=!0),o}function R(n,t){T(n,t)}function T(n,t,i){var r=U(),u=r.getHookID(),f=r.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u],e=o.v,s=o.p;o.p=t,o._=s,e.current=n}else{var c=function n(t){if(!t&&i)return b((function(){return n(!0)}));var r=n.current;r&&(h.current=r(),n.current=null)},h=function n(t){if(!t&&i)return b((function(){return n(!0)}));var r=n.current;r&&(r(),n.current=null)};c.current=n,f[u]={v:c,j:h,_:t,p:t},r.didMount.push(c),r.willUnmount.push((function(){return h(!0)})),r.didUpdate.push((function(){var n=f[u],t=n.p,i=n.v;null!=t&&H(t,n._)||(h(),i())}))}}function V(n,t){var r=U(),u=r.getHookID(),f=r.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u][1];!i(t)&&H(t,o)||(f[u]=[n(),t])}else f[u]=[n(),t];return f[u][0]}function W(n){return o(n)?n:[n]}function Z(n,t){var i;while(n&&n._internal){if(t(n)){i=n;break}n=n._internal.m}return i}var $=0;function q(t){var r;return f(t)&&null!==t&&t.type?r=e(t.type)?new n.O(t):new n.g(t):e(t)||s(t)?r=new n.k(t+""):o(t)?r=new n.I(t):(void 0===t||i(t)||!1===t||!0===t||k(2,t),r=new n.A(t)),r}function z(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,B(n,t)}function B(n,t){return(B=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}var F=function(){function n(n,t){this.props=n,this.context=t,this.refs={}}var t=n.prototype;return t.setState=function(n,t){this.updater.setState(this,n,t)},t.forceUpdate=function(n){this.updater.forceUpdate(this,n)},n}(),G=function(n){function t(t,i){var r;return(r=n.call(this,t,i)||this).C=!0,r}return z(t,n),t}(F),J=1,K=function(n){function t(){var t;return(t=n.call(this)||this).P=[],t.D=J++,t}z(t,n);var i=t.prototype;return i.S=function(){return this.U().S()},i.U=function(){return this._internal._renderedComponent},i.h=function(n){this.P=n,this.forceUpdate()},i.render=function(){return this.P},t}(F),L={set:function(t,i){t._r||(t._r=i,i.D&&(n.rootInstances[i.D]=i,n.rootComponents[i.D]=i._internal))},get:function(n){return n._r},remove:function(t){var i=this.get(t);i&&(t._r=null,i.D&&(delete n.rootComponents[i.D],delete n.rootInstances[i.D]))},mount:function(t,i,r){var u=r.parent,f=r.hydrate,o=n.driver;null==i&&(i=o.createBody());var e,s={element:t,container:i,hydrate:f};if(o.beforeRender&&o.beforeRender(s),u){var c=u._internal;e=c.H(c._context)}var h=this.get(i);if(h&&h.D)return e&&(h._internal.N=e),h.h(t),o.afterRender&&o.afterRender(s),h;var a=q(A(K)).R(i,u,e||{});return this.set(i,a),a.h(t),o.afterRender&&o.afterRender(s),a}};function M(n,t,i){var r=n?n.ref:null,u=t?t.ref:null;r!==u&&(r&&X(n._owner,r,i),u&&Q(t._owner,u,i))}function Q(n,t,i){if(n){var f=i.S();r(t)?t(f):u(t)?t.current=f:n._instance.refs[t]=f}else k(3)}function X(n,t,i){if(r(t))t(null);else{var f=i.S();u(t)&&t.current===f?t.current=null:n._instance.refs[t]===f&&delete n._instance.refs[t]}}function Y(n,t){var r=i(n),f=i(t);return r||f?r===f:!(!o(n)||!o(t))||(e(n)||s(n)?e(t)||s(t):u(n)&&u(t)&&n.type===t.type&&n.key===t.key)}function nn(n,t,i){var r=t&&t.key,u="."+i.toString(36);if(e(r)){var f="$"+r;return void 0===n[f]?f:u}return u}function tn(t){var i=t;while(i=t.m&&t.m._internal)if(i instanceof n.g)t=i;else{for(var r=Object.keys(i.T),u=t.V-1;u>=0;u--){var f=i.T[r[u]].W();if(!o(f))return f;if(f.length>0)return f[f.length-1]}if(!(i instanceof n.I))return null;t=i}}var rn=function(){function t(n){this.Z=n}var i=t.prototype;return i.$=function(t,i,r){this._parent=t,this.m=i,this._context=r,this._mountID=n.t++},i.q=function(){this.Z=this._nativeNode=this._parent=this.m=this._context=null,this._instance&&(this._instance=this._instance._internal=null)},i.R=function(n,t,i,r){this.$(n,t,i),this.B(r);var u={};return u._internal=this,u},i.unmountComponent=function(t){this._nativeNode&&!t&&n.driver.removeChild(this._nativeNode,this._parent),this.q()},i.u=function(){var n=this.Z,t=n&&n.type;return t&&t.displayName||t&&t.name||t||n},i.B=function(t){var i=this.W(),r=this._parent;t?t(i,r):n.driver.appendChild(i,r)},i.W=function(){return null==this._nativeNode?this._nativeNode=this.F():this._nativeNode},i.S=function(){return this.W()},t}(),un=Object.assign,fn=/^on[A-Z]/,on=function(t){function u(){return t.apply(this,arguments)||this}z(u,t);var f=u.prototype;return f.R=function(n,t,i,r){this.$(n,t,i);var u=this.Z,f=u.props,o=u.type,e=f.children,s=f.append||"tree";this.G=un({},f.style);var c={type:o,props:f};return c._internal=this,this._instance=c,"tree"===s?(this.J(e,i),this.B(r)):(this.B(r),this.J(e,i)),u&&u.ref&&Q(u._owner,u.ref,this),c},f.J=function(n,t){if(null==n)return n;var i=this.W();return this.K(i,W(n),t)},f.K=function(n,t,i,r){for(var u=this.T={},f=[],o=0,e=t.length;o<e;o++){var s=t[o],c=q(s);u[nn(u,s,o)]=c,c.V=o;var h=c.R(n,this._instance,i,r);f.push(h)}return f},f.L=function(n){var t=this.T;if(t){for(var i in t){t[i].unmountComponent(n)}this.T=null}},f.unmountComponent=function(t){if(this._nativeNode){var i=this.Z.ref;i&&X(this.Z._owner,i,this),L.remove(this._nativeNode),t||n.driver.removeChild(this._nativeNode,this._parent)}this.L(!0),this.G=null,this.q()},f.M=function(n,t,i,r){this.Z=t,M(n,t,this);var u=n.props,f=t.props;this.X(u,f),null==u.children||o(u.children)&&0===u.children.length?this.J(f.children,r):this.Y(f.children,r)},f.X=function(t,i){var u,f,o,e=n.driver,s=this.W();for(u in t)if("children"!==u&&null!=t[u]&&!i.hasOwnProperty(u))if("style"===u){var c=this.G;for(f in c)(o=o||{})[f]="";this.G=null}else if(fn.test(u)){var h=t[u];r(h)&&e.removeEventListener(s,u.slice(2).toLowerCase(),h)}else e.removeAttribute(s,u,t[u]);for(u in i){var a=i[u],l="style"===u?this.G:null!=t?t[u]:void 0;if("children"!==u&&l!==a&&(null!=a||null!=l))if("style"===u)if(a?a=this.G=un({},a):this.G=null,null!=l){for(f in l)a&&(a[f]||0===a[f])||((o=o||{})[f]="");for(f in a)l[f]!==a[f]&&((o=o||{})[f]=a[f])}else o=a;else if(fn.test(u)){var v=u.slice(2).toLowerCase();r(l)&&e.removeEventListener(s,v,l,i),r(a)&&e.addEventListener(s,v,a,i)}else null!=a?e.setAttribute(s,u,a):e.removeAttribute(s,u,t[u])}o&&e.setStyle(s,o)},f.Y=function(t,r){var u=this.T,f=n.driver;if(null!=t||null!=u){var e={};if(null!=t)for(var s=0,c=(t=W(t)).length;s<c;s++){var h=t[s],a=nn(e,h,s),l=u&&u[a],v=l&&l.Z,p=l&&l._context;null!=l&&Y(v,h)?(v===h&&p===r||l.M(v,h,r,r),e[a]=l):(l&&(l.nn=!0),e[a]=q(h))}var d=this.W(),_=o(d),x=null,w=null,y=!1,b=!1,j=null,m=!(!f.removeChildren||!(i(t)||t&&!t.length)||_);if(null!=u){for(var O in u){var g=u[O],k=g.nn||!e[O];x?k&&g.unmountComponent(m):(b=k,o(w=(x=g).W())&&(y=0===w.length,w=w[0]))}(_&&0===d.length||y)&&(j=tn(this))}if(null!=e){var I=function(n,t){for(var i=0,r=(n=W(n)).length;i<r;i++)j?f.insertAfter(n[r-1-i],j):w?f.insertBefore(n[i],w):t&&f.appendChild(n[i],t)},A=0;for(var C in e){var E=e[C],P=u&&u[C];if(P===E){var D=P.W();P.V!==A&&I(D)}else _&&(d=this._parent),E.R(d,this._instance,r,I);E.V=A++,o(j=E.W())&&(j=j[j.length-1])}}b&&x.unmountComponent(m),m&&f.removeChildren(this._nativeNode),this.T=e}},f.F=function(){var t=this._instance,i=n.driver.createElement(t.type,t.props,this);return L.set(i,t),i},u}(rn),en=function(n){function t(t,i){var r;(r=n.call(this)||this).tn=!0,r.rn=t,r.un=0,r.fn=0,r.on={},r.o=!1,r.l=!1,r.en=null,r.sn={},r.didMount=[],r.didUpdate=[],r.willUnmount=[],r.state=h,t._forwardRef&&(r.cn=r._forwardRef=i);var u=t.hn;return u&&(r.shouldComponentUpdate=function(n){for(var t=!0,i=u.length-1;i>-1;i--)if(t=u[i](r.props,n))break;return!t||r.cn!==r._forwardRef}),r}z(t,n);var i=t.prototype;return i.getHooks=function(){return this.on},i.getHookID=function(){return++this.un},i.useContext=function(n){var t=this,i=n._contextID,r=this.sn[i];if(!r){var u=n.an(this);if(r=this.sn[i]={ln:u},u){var f=function(n){r.vn!==n&&(t.l=!0,t.h())};u.pn(f),this.willUnmount.push((function(){return u.dn(f)}))}}return r.vn=r.ln?r.ln.getValue():n._defaultValue},i.componentWillMount=function(){this.l=!0},i.componentDidMount=function(){C(this.didMount)},i.componentWillReceiveProps=function(){this.l=!0},i.componentDidUpdate=function(){C(this.didUpdate)},i.componentWillUnmount=function(){C(this.willUnmount)},i.h=function(){this.setState(h)},i.render=function(){this.un=0,this.fn=0,this.o=!1;var n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);while(this.o)this.fn++,this.fn>24&&g(4),this.un=0,this.o=!1,n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);return this.l&&(this.en=n,this.l=!1),this.en},t}(F),sn=[];function cn(n){return n._n}function hn(t){var i=t._internal;if(i){n.i=!0;var r=i.Z,u=i._context,f=i.N||u;i.N=void 0,(cn(i)||i.xn)&&(i.M(r,r,u,f),x(d)),n.i=!1}}function an(n,t){return t._internal._mountID-n._internal._mountID}function ln(){if(n.i)return w(ln);var t,i=sn;if(i.length>0){j(),sn=[],i.length>1&&(i=i.filter((function(n){return!!n._internal})).sort(an));while(t=i.pop())hn(t)}}function vn(n,t){if(sn.indexOf(n)<0&&sn.push(n),t){if(sn.length>1)return;w(ln)}else ln()}function pn(n,t,i){var r=n._internal;if(r){i&&function(n,t){(function(n){return n.wn}(n)||function(n){return n.wn=[]}(n)).push(t)}(r,i);var u=r._renderedComponent;t?(n.tn&&(r.xn=!0),function(n,t){(cn(n)||function(n){return n._n=[]}(n)).push(t)}(r,t),!r.yn&&u&&vn(n,!0)):(r.xn=!0,u&&vn(n))}}var dn={setState:function(t,i,r){n.i||j(),pn(t,i,r)},forceUpdate:function(n,t){pn(n,null,t)}};function _n(n,t,i){try{return n()}catch(n){i?i(n):function(n,t){var i=Z(n,(function(n){return n.componentDidCatch||n.constructor&&n.constructor.getDerivedStateFromError}));i?m((function(){var n=i._internal;n&&_n((function(){if(i.componentDidCatch&&i.componentDidCatch(t),i.constructor&&i.constructor.getDerivedStateFromError){var n=i.constructor.getDerivedStateFromError(t);i.setState(n)}}),n.m)})):_((function(){throw t}),0)}(t,n)}}function xn(n,t){m((function(){_n(n,t)}))}function wn(n,t){n&&xn((function(){C(n,t)}),t)}var yn=function(t){function i(){return t.apply(this,arguments)||this}z(i,t);var u=i.prototype;return u.R=function(t,i,u,f){this.$(t,i,u);var o,e,s=this.Z,c=s.type,h=s.ref,a=s.props,l=c.prototype,v=this.bn(u);if(_n((function(){l&&l.render?o=new c(a,v):r(c)?o=new en(c,h):g(6,c)}),i),o){o.props=a,o.context=v,o.refs={},o.updater=dn,o._internal=this,this._instance=o;var p=o.state;void 0===p&&(o.state=p=null),o.componentWillMount&&_n((function(){o.componentWillMount()}),o),n.owner=this,o.state=this.jn(a,v);var d=this.wn;return this.wn=null,_n((function(){e=o.render()}),o),n.owner=null,this._renderedComponent=q(e),this._renderedComponent.R(this._parent,o,this.H(u),f),!s.type._forwardRef&&h&&Q(s._owner,h,this),o.componentDidMount&&xn((function(){o.componentDidMount()}),o),wn(d,o),o}},u.unmountComponent=function(n){var t=this._instance;if(t&&t.componentWillUnmount&&_n((function(){t.componentWillUnmount()}),t),null!=this._renderedComponent){var i=this.Z,r=i.ref;!i.type._forwardRef&&r&&X(i._owner,r,this),this._renderedComponent.unmountComponent(n),this._renderedComponent=null}this._n=null,this.xn=!1,this.q()},u.bn=function(n){var t={},i=this.Z.type.contextTypes;if(i)for(var r in i)t[r]=n[r];return t},u.H=function(n){var t=this._instance,i=t.getChildContext&&t.getChildContext();return i?un({},n,i):n},u.jn=function(n,t){var i=this._instance,u=this._n;if(!u)return i.state;this._n=null;for(var f=un({},i.state),o=0;o<u.length;o++){var e=u[o];un(f,r(e)?e.call(i,f,n,t):e)}return f},u.M=function(n,t,i,r){var u=this,f=this._instance;f&&_n((function(){var i,o,e;u._context===r?o=f.context:(o=u.bn(r),i=!0),e=t.props,n!==t&&(i=!0),i&&f.componentWillReceiveProps&&(u.yn=!0,f.componentWillReceiveProps(e,o),u.yn=!1),u.Z.type._forwardRef?(f.cn=n.ref,f._forwardRef=t.ref):M(n,t,u);var s=!0,c=f.props,h=f.state,a=u.jn(e,o),l=u.wn;if(u.wn=null,u.xn||(f.shouldComponentUpdate?s=f.shouldComponentUpdate(e,a,o):f.C&&(s=!D(c,e)||!D(h,a))),s){u.xn=!1;var v=f.context;f.componentWillUpdate&&f.componentWillUpdate(e,a,o),u.Z=t,u._context=r,f.props=e,f.state=a,f.context=o,u.mn(r),f.componentDidUpdate&&xn((function(){f.componentDidUpdate(c,h,v)}),f)}else u.Z=t,u._context=r,f.props=e,f.state=a,f.context=o;wn(l,f)}),f)},u.mn=function(t){var i,r=this._renderedComponent,u=r.Z,f=this._instance;if(n.owner=this,i=f.render(),n.owner=null,Y(u,i)){var e=r._context,s=this.H(t);u===i&&e===s||r.M(u,i,e,s)}else{var c=null,h=r.W();o(h)&&0===h.length&&null==f.D&&(c=tn(r)),r.unmountComponent(!0),this._renderedComponent=q(i),this._renderedComponent.R(this._parent,f,this.H(t),(function(t,i){var r=n.driver;h=W(h),t=W(t);for(var u=0;u<t.length;u++){var f=t[u];h[u]?r.replaceChild(f,h[u]):c?r.insertAfter(f,c):r.appendChild(f,i),c=f}for(var o=t.length;o<h.length;o++)r.removeChild(h[o])}))}},u.W=function(){var n=this._renderedComponent;if(n)return n.W()},u.S=function(){var n=this._instance;return n.tn?null:n},i}(rn),bn=function(t){function i(){return t.apply(this,arguments)||this}z(i,t);var r=i.prototype;return r.M=function(t,i){t!==(i=""+i)&&(this.Z=i,n.driver.updateText(this.W(),i))},r.F=function(){return n.driver.createText(this.Z,this)},i}(rn),jn=function(t){function i(){return t.apply(this,arguments)||this}z(i,t);var r=i.prototype;return r.R=function(t,i,r,u){this.$(t,i,r);var f=this._instance={};f._internal=this;var o=[];if(this.K(this._parent,this.Z,r,(function(n){n=W(n);for(var t=0;t<n.length;t++)o.push(n[t])})),u)u(o,t);else for(var e=0;e<o.length;e++)n.driver.appendChild(o[e],t);return f},r.unmountComponent=function(t){if(!t)for(var i=this.W(),r=0,u=i.length;r<u;r++)n.driver.removeChild(i[r]);this.L(!0),this.q()},r.M=function(n,t,i,r){this.Z=t,this.Y(this.Z,r)},r.W=function(){var n=this.T||{};return[].concat.apply([],Object.keys(n).map((function(t){return n[t].W()})))},i}(on),mn=function(t){function i(){return t.apply(this,arguments)||this}z(i,t);var r=i.prototype;return r.F=function(){return n.driver.createEmpty(this)},r.M=function(){},i}(rn);n.A=mn,n.O=on,n.k=bn,n.I=jn,n.g=yn;var On={Host:n,Instance:L,Element:t,flattenChildren:l};exports.Component=F,exports.Fragment=function(n){return n.children},exports.PureComponent=G,exports.createContext=function(n){var t="_c"+$++;function i(n){return Z(n,(function(n){return n.On===t}))}return{Provider:function(){function i(){this.On=t,this.gn=[]}var r=i.prototype;return r.pn=function(n){this.gn.push(n)},r.dn=function(n){this.gn=this.gn.filter((function(t){return t!==n}))},r._getChildContext=function(){var n;return(n={})[t]=this,n},r.getValue=function(){return void 0!==this.props.value?this.props.value:n},r.componentDidUpdate=function(n){this.props.value!==n.value&&C(this.gn,null,this.getValue())},r.render=function(){return this.props.children},i}(),Consumer:function(u,f){var o=this,e=N((function(){return f[t]||i(o)}))[0],s=e?e.getValue():n,c=N(s),h=c[1];if(s===c[0]){R((function(){if(e)return e.pn(h),function(){e.dn(h)}}),[]);var a=W(u.children)[0];return r(a)?a(s):void 0}h(s)},_contextID:t,_defaultValue:n,an:i}},exports.createElement=A,exports.createRef=function(){return{current:null}},exports.forwardRef=function(n){return n._forwardRef=!0,n},exports.memo=function(n,t){return t=t||D,n.hn?n.hn.push(t):n.hn=[t],n},exports.render=function(t,i,u,f){r(u)&&(f=u,u=null),(n.driver=(u=u||h).driver||n.driver)||g(5);var o=L.mount(t,i,u).S();return f&&f.call(o),o},exports.shared=On,exports.useCallback=function(n,t){return V((function(){return n}),t)},exports.useContext=function(n){return U().useContext(n)},exports.useEffect=function(n,t){T(n,t,!0)},exports.useImperativeHandle=function(n,t,i){R((function(){return r(n)?(n(t()),function(){return n(null)}):null!=n?(n.current=t(),function(){n.current=null}):void 0}),o(i)?i.concat([n]):null)},exports.useLayoutEffect=R,exports.useMemo=V,exports.useReducer=function(t,i,u){var f=U(),o=f.getHookID(),e=f.getHooks(),s=e[o];if(!s){var c=r(u)?u(i):i;return e[o]=[c,function(t){n.i||j();var i=e[o][2];if(S()===f)i.kn.push(t),f.o=!0;else{var r=i.In,u=(0,i.An)(r,t);if(P(u,r))return;i.In=u,i.kn.push(t),f.h()}},{kn:[],An:t,In:c}]}var h=s[2],a=s[0];if(f.fn>0)for(var l=0;l<h.kn.length;l++)a=t(a,h.kn[l]);else a=h.In;return P(a,s[0])||(s[0]=a,f.l=!0),h.An=t,h.In=a,h.kn.length=0,e[o]},exports.useRef=function(n){var t=U(),i=t.getHookID(),r=t.getHooks();return r[i]||(r[i]={current:n}),r[i]},exports.useState=N,exports.version="1.2.2";

@@ -1,1 +0,1 @@

!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).Rax={})}(this,(function(n){var t={t:1,i:!1,driver:null,rootComponents:{},rootInstances:{},owner:null};function i(n,t,i,r,u){return{type:n,key:t,ref:i,props:r,_owner:u}}function r(n){return null===n}function u(n){return"function"==typeof n}function f(n){return"object"==typeof n}function o(n){return"[object Object]"===a.toString.call(n)}function e(n){return Array.isArray(n)}function s(n){return"string"==typeof n}function c(n){return"number"==typeof n}var h=function(){},a={};function l(n,t){if(e(n))for(var i=0,r=n.length;i<r;i++)l(n[i],t);else t.push(n)}function v(n){if(null==n)return n;var t=[];return l(n,t),t.length-1?t:t[0]}var d=[],_=[],p=[],w=setTimeout;function y(n){var t;while(t=n.shift())t()}function b(n){0===d.length&&w(j),d.push(n)}function j(){y(d)}function m(n){0===_.length&&w(g),_.push(n)}function g(){y(_)}function O(n){p.push(n)}function k(n,i,r){var u,f=void 0===r?"":" got: "+function(n){return o(n)?Object.keys(n):n}(r);return Error(n+": #"+i+", "+(((u=t.owner)?"check <"+u.u()+">":"no owner")+".")+f)}function I(n,t){throw k("Error",n,t)}function x(n,t){var i=k("Warn",n,t);w((function(){throw i}),0)}var A={key:!0,ref:!0};function C(n,r,u){var f,o={},s=null,c=null;if(null!=r)for(f in c=void 0===r.ref?null:r.ref,s=void 0===r.key?null:""+r.key,r)A[f]||(o[f]=r[f]);var a=arguments.length-2;if(a>0)if(1!==a||e(u)){var l=u;if(a>1){l=Array(a);for(var d=0;d<a;d++)l[d]=arguments[d+2]}o.children=v(l)}else o.children=u;if(n&&n.defaultProps){var _=n.defaultProps;for(f in _)void 0===o[f]&&(o[f]=_[f])}return null==n&&(n=h,x(0)),new i(n,s,c,o,t.owner)}function E(n,t,i){for(var r=0,u=n&&n.length;r<u;r++)n[r].call(t,i)}var P=a.hasOwnProperty;function T(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function D(n,t){if(T(n,t))return!0;if(!f(n)||r(n)||!f(t)||r(t))return!1;var i=Object.keys(n);if(i.length!==Object.keys(t).length)return!1;for(var u=0;u<i.length;u++)if(!P.call(t,i[u])||!T(n[i[u]],t[i[u]]))return!1;return!0}function S(){return t.owner&&t.owner._instance}function U(){var n=S();if(n)return n;I(1)}function H(n,t){if(r(t)||n.length!==t.length)return!1;for(var i=0;i<n.length;i++)if(!T(n[i],t[i]))return!1;return!0}function N(n){var i=U(),r=i.getHookID(),f=i.getHooks();if(!f[r]){u(n)&&(n=n());f[r]=[n,function(n){t.i||g();var o=f[r],e=o[2];u(n)&&(n=n(e)),T(n,e)||(o[2]=n,S()===i?i.o=!0:i.h())},n]}var o=f[r];return T(o[0],o[2])||(o[0]=o[2],i.l=!0),o}function R(n,t){V(n,t)}function V(n,t,i){var r=U(),u=r.getHookID(),f=r.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u],e=o.v,s=o._;o._=t,o.p=s,e.current=n}else{var c=function n(t){if(!t&&i)return m((function(){return n(!0)}));var r=n.current;r&&(h.current=r(),n.current=null)},h=function n(t){if(!t&&i)return m((function(){return n(!0)}));var r=n.current;r&&(r(),n.current=null)};c.current=n,f[u]={v:c,j:h,p:t,_:t},r.didMount.push(c),r.willUnmount.push((function(){return h(!0)})),r.didUpdate.push((function(){var n=f[u],t=n._,i=n.v;null!=t&&H(t,n.p)||(h(),i())}))}}function W(n,t){var i=U(),u=i.getHookID(),f=i.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u][1];!r(t)&&H(t,o)||(f[u]=[n(),t])}else f[u]=[n(),t];return f[u][0]}function Z(n){return e(n)?n:[n]}function $(n,t){var i;while(n&&n._internal){if(t(n)){i=n;break}n=n._internal.m}return i}var q=0;function z(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,B(n,t)}function B(n,t){return(B=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}var F=function(){function n(n){this.g=n}var i=n.prototype;return i.O=function(n,i,r){this._parent=n,this.m=i,this._context=r,this._mountID=t.t++},i.k=function(){this.g=this._nativeNode=this._parent=this.m=this._context=null,this._instance&&(this._instance=this._instance._internal=null)},i.I=function(n,t,i,r){this.O(n,t,i),this.A(r);var u={};return u._internal=this,u},i.unmountComponent=function(n){this._nativeNode&&!n&&t.driver.removeChild(this._nativeNode,this._parent),this.k()},i.u=function(){var n=this.g,t=n&&n.type;return t&&t.displayName||t&&t.name||t||n},i.A=function(n){var i=this.C(),r=this._parent;n?n(i,r):t.driver.appendChild(i,r)},i.C=function(){return null==this._nativeNode?this._nativeNode=this.P():this._nativeNode},i.T=function(){return this.C()},n}(),G=function(n){function i(){return n.apply(this,arguments)||this}z(i,n);var r=i.prototype;return r.P=function(){return t.driver.createEmpty(this)},r.D=function(){},i}(F);function J(n,t,i){var r=n?n.ref:null,u=t?t.ref:null;r!==u&&(r&&L(n._owner,r,i),u&&K(t._owner,u,i))}function K(n,t,i){if(n){var r=i.T();u(t)?t(r):f(t)?t.current=r:n._instance.refs[t]=r}else x(3)}function L(n,t,i){if(u(t))t(null);else{var r=i.T();f(t)&&t.current===r?t.current=null:n._instance.refs[t]===r&&delete n._instance.refs[t]}}function M(n){var i;return o(n)&&null!==n&&n.type?i=s(n.type)?new t.S(n):new t.U(n):s(n)||c(n)?i=new t.H(n+""):e(n)?i=new t.N(n):(void 0===n||r(n)||!1===n||!0===n||x(2,n),i=new t.R(n)),i}function Q(n,t){var i=r(n),u=r(t);return i||u?i===u:!(!e(n)||!e(t))||(s(n)||c(n)?s(t)||c(t):f(n)&&f(t)&&n.type===t.type&&n.key===t.key)}function X(n,t,i){var r=t&&t.key,u="."+i.toString(36);if(s(r)){var f="$"+r;return void 0===n[f]?f:u}return u}function Y(n){var i=n;while(i=n.m&&n.m._internal)if(i instanceof t.U)n=i;else{for(var r=Object.keys(i.V),u=n.W-1;u>=0;u--){var f=i.V[r[u]].C();if(!e(f))return f;if(f.length>0)return f[f.length-1]}if(!(i instanceof t.N))return null;n=i}}var nn=function(){function n(n,t){this.props=n,this.context=t,this.refs={}}var t=n.prototype;return t.setState=function(n,t){this.updater.setState(this,n,t)},t.forceUpdate=function(n){this.updater.forceUpdate(this,n)},n}(),tn=function(n){function t(t,i){var r;return(r=n.call(this,t,i)||this).Z=!0,r}return z(t,n),t}(nn),rn=1,un=function(n){function t(){var t;return(t=n.call(this)||this).$=[],t.q=rn++,t}z(t,n);var i=t.prototype;return i.T=function(){return this.B().T()},i.B=function(){return this._internal._renderedComponent},i.h=function(n){this.$=n,this.forceUpdate()},i.render=function(){return this.$},t}(nn),fn={set:function(n,i){n._r||(n._r=i,i.q&&(t.rootInstances[i.q]=i,t.rootComponents[i.q]=i._internal))},get:function(n){return n._r},remove:function(n){var i=this.get(n);i&&(n._r=null,i.q&&(delete t.rootComponents[i.q],delete t.rootInstances[i.q]))},mount:function(n,i,r){var u=r.parent,f=r.hydrate,o=t.driver;null==i&&(i=o.createBody());var e,s={element:n,container:i,hydrate:f};if(o.beforeRender&&o.beforeRender(s),u){var c=u._internal;e=c.F(c._context)}var h=this.get(i);if(h&&h.q)return e&&(h._internal.G=e),h.h(n),o.afterRender&&o.afterRender(s),h;var a=M(C(un)).I(i,u,e||{});return this.set(i,a),a.h(n),o.afterRender&&o.afterRender(s),a}},on=Object.assign,en="style",sn="children",cn="tree",hn=/^on[A-Z]/,an=function(n){function i(){return n.apply(this,arguments)||this}z(i,n);var f=i.prototype;return f.I=function(n,t,i,r){this.O(n,t,i);var u=this.g,f=u.props,o=u.type,e=f.children,s=f.append||cn;this.J=on({},f.style);var c={type:o,props:f};return c._internal=this,this._instance=c,s===cn?(this.K(e,i),this.A(r)):(this.A(r),this.K(e,i)),u&&u.ref&&K(u._owner,u.ref,this),c},f.K=function(n,t){if(null==n)return n;var i=this.C();return this.L(i,Z(n),t)},f.L=function(n,t,i,r){for(var u=this.V={},f=[],o=0,e=t.length;o<e;o++){var s=t[o],c=M(s);u[X(u,s,o)]=c,c.W=o;var h=c.I(n,this._instance,i,r);f.push(h)}return f},f.M=function(n){var t=this.V;if(t){for(var i in t){t[i].unmountComponent(n)}this.V=null}},f.unmountComponent=function(n){if(this._nativeNode){var i=this.g.ref;i&&L(this.g._owner,i,this),fn.remove(this._nativeNode),n||t.driver.removeChild(this._nativeNode,this._parent)}this.M(!0),this.J=null,this.k()},f.D=function(n,t,i,r){this.g=t,J(n,t,this);var u=n.props,f=t.props;this.X(u,f),null==u.children||e(u.children)&&0===u.children.length?this.K(f.children,r):this.Y(f.children,r)},f.X=function(n,i){var r,f,o,e=t.driver,s=this.C();for(r in n)if(r!==sn&&null!=n[r]&&!i.hasOwnProperty(r))if(r===en){var c=this.J;for(f in c)(o=o||{})[f]="";this.J=null}else if(hn.test(r)){var h=n[r];u(h)&&e.removeEventListener(s,r.slice(2).toLowerCase(),h)}else e.removeAttribute(s,r,n[r]);for(r in i){var a=i[r],l=r===en?this.J:null!=n?n[r]:void 0;if(r!==sn&&l!==a&&(null!=a||null!=l))if(r===en)if(a?a=this.J=on({},a):this.J=null,null!=l){for(f in l)a&&(a[f]||0===a[f])||((o=o||{})[f]="");for(f in a)l[f]!==a[f]&&((o=o||{})[f]=a[f])}else o=a;else if(hn.test(r)){var v=r.slice(2).toLowerCase();u(l)&&e.removeEventListener(s,v,l,i),u(a)&&e.addEventListener(s,v,a,i)}else null!=a?e.setAttribute(s,r,a):e.removeAttribute(s,r,n[r])}o&&e.setStyle(s,o)},f.Y=function(n,i){var u=this.V,f=t.driver;if(null!=n||null!=u){var o={};if(null!=n)for(var s=0,c=(n=Z(n)).length;s<c;s++){var h=n[s],a=X(o,h,s),l=u&&u[a],v=l&&l.g,d=l&&l._context;null!=l&&Q(v,h)?(v===h&&d===i||l.D(v,h,i,i),o[a]=l):(l&&(l.nn=!0),o[a]=M(h))}var _=this.C(),p=e(_),w=null,y=null,b=!1,j=!1,m=null,g=!(!f.removeChildren||!(r(n)||n&&!n.length)||p);if(null!=u){for(var O in u){var k=u[O],I=k.nn||!o[O];w?I&&k.unmountComponent(g):(j=I,e(y=(w=k).C())&&(b=0===y.length,y=y[0]))}(p&&0===_.length||b)&&(m=Y(this))}if(null!=o){var x=function(n,t){for(var i=0,r=(n=Z(n)).length;i<r;i++)m?f.insertAfter(n[r-1-i],m):y?f.insertBefore(n[i],y):t&&f.appendChild(n[i],t)},A=0;for(var C in o){var E=o[C],P=u&&u[C];if(P===E){var T=P.C();P.W!==A&&x(T)}else p&&(_=this._parent),E.I(_,this._instance,i,x);E.W=A++,e(m=E.C())&&(m=m[m.length-1])}}j&&w.unmountComponent(g),g&&f.removeChildren(this._nativeNode),this.V=o}},f.P=function(){var n=this._instance,i=t.driver.createElement(n.type,n.props,this);return fn.set(i,n),i},i}(F),ln=function(n){function i(){return n.apply(this,arguments)||this}z(i,n);var r=i.prototype;return r.D=function(n,i){n!==(i=""+i)&&(this.g=i,t.driver.updateText(this.C(),i))},r.P=function(){return t.driver.createText(this.g,this)},i}(F),vn=function(n){function t(t,i){var r;(r=n.call(this)||this).tn=!0,r.rn=t,r.un=0,r.fn=0,r.on={},r.o=!1,r.l=!1,r.en=null,r.sn={},r.didMount=[],r.didUpdate=[],r.willUnmount=[],r.state=a,t._forwardRef&&(r.cn=r._forwardRef=i);var u=t.hn;return u&&(r.shouldComponentUpdate=function(n){for(var t=!0,i=u.length-1;i>-1;i--)if(t=u[i](r.props,n))break;return!t||r.cn!==r._forwardRef}),r}z(t,n);var i=t.prototype;return i.getHooks=function(){return this.on},i.getHookID=function(){return++this.un},i.useContext=function(n){var t=this,i=n._contextID,r=this.sn[i];if(!r){var u=n.an(this);if(r=this.sn[i]={ln:u},u){var f=function(n){r.vn!==n&&(t.l=!0,t.h())};u.dn(f),this.willUnmount.push((function(){return u._n(f)}))}}return r.vn=r.ln?r.ln.getValue():n._defaultValue},i.componentWillMount=function(){this.l=!0},i.componentDidMount=function(){E(this.didMount)},i.componentWillReceiveProps=function(){this.l=!0},i.componentDidUpdate=function(){E(this.didUpdate)},i.componentWillUnmount=function(){E(this.willUnmount)},i.h=function(){this.setState(a)},i.render=function(){this.un=0,this.fn=0,this.o=!1;var n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);while(this.o)this.fn++,this.fn>24&&I(4),this.un=0,this.o=!1,n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);return this.l&&(this.en=n,this.l=!1),this.en},t}(nn),dn=[];function _n(n){return n.pn}function pn(n){var i=n._internal;if(i){t.i=!0;var r=i.g,u=i._context,f=i.G||u;i.G=void 0,(_n(i)||i.wn)&&(i.D(r,r,u,f),y(p)),t.i=!1}}function wn(n,t){return t._internal._mountID-n._internal._mountID}function yn(){if(t.i)return b(yn);var n,i=dn;if(i.length>0){g(),dn=[],i.length>1&&(i=i.filter((function(n){return!!n._internal})).sort(wn));while(n=i.pop())pn(n)}}function bn(n,t){if(dn.indexOf(n)<0&&dn.push(n),t){if(dn.length>1)return;b(yn)}else yn()}function jn(n,t,i){var r=n._internal;if(r){i&&function(n,t){(function(n){return n.yn}(n)||function(n){return n.yn=[]}(n)).push(t)}(r,i);var u=r._renderedComponent;t?(n.tn&&(r.wn=!0),function(n,t){(_n(n)||function(n){return n.pn=[]}(n)).push(t)}(r,t),!r.bn&&u&&bn(n,!0)):(r.wn=!0,u&&bn(n))}}var mn={setState:function(n,i,r){t.i||g(),jn(n,i,r)},forceUpdate:function(n,t){jn(n,null,t)}};function gn(n,t,i){try{return n()}catch(n){i?i(n):function(n,t){var i=$(n,(function(n){return n.componentDidCatch||n.constructor&&n.constructor.getDerivedStateFromError}));i?O((function(){var n=i._internal;n&&gn((function(){if(i.componentDidCatch&&i.componentDidCatch(t),i.constructor&&i.constructor.getDerivedStateFromError){var n=i.constructor.getDerivedStateFromError(t);i.setState(n)}}),n.m)})):w((function(){throw t}),0)}(t,n)}}function On(n,t){O((function(){gn(n,t)}))}function kn(n,t){n&&On((function(){E(n,t)}),t)}var In=function(n){function i(){return n.apply(this,arguments)||this}z(i,n);var r=i.prototype;return r.I=function(n,i,r,f){this.O(n,i,r);var o,e,s=this.g,c=s.type,h=s.ref,a=s.props,l=c.prototype,v=this.jn(r);if(gn((function(){l&&l.render?o=new c(a,v):u(c)?o=new vn(c,h):I(6,c)}),i),o){o.props=a,o.context=v,o.refs={},o.updater=mn,o._internal=this,this._instance=o;var d=o.state;void 0===d&&(o.state=d=null),o.componentWillMount&&gn((function(){o.componentWillMount()}),o),t.owner=this,o.state=this.mn(a,v);var _=this.yn;return this.yn=null,gn((function(){e=o.render()}),o),t.owner=null,this._renderedComponent=M(e),this._renderedComponent.I(this._parent,o,this.F(r),f),!s.type._forwardRef&&h&&K(s._owner,h,this),o.componentDidMount&&On((function(){o.componentDidMount()}),o),kn(_,o),o}},r.unmountComponent=function(n){var t=this._instance;if(t&&t.componentWillUnmount&&gn((function(){t.componentWillUnmount()}),t),null!=this._renderedComponent){var i=this.g,r=i.ref;!i.type._forwardRef&&r&&L(i._owner,r,this),this._renderedComponent.unmountComponent(n),this._renderedComponent=null}this.pn=null,this.wn=!1,this.k()},r.jn=function(n){var t={},i=this.g.type.contextTypes;if(i)for(var r in i)t[r]=n[r];return t},r.F=function(n){var t=this._instance,i=t.getChildContext&&t.getChildContext();return i?on({},n,i):n},r.mn=function(n,t){var i=this._instance,r=this.pn;if(!r)return i.state;this.pn=null;for(var f=on({},i.state),o=0;o<r.length;o++){var e=r[o];on(f,u(e)?e.call(i,f,n,t):e)}return f},r.D=function(n,t,i,r){var u=this,f=this._instance;f&&gn((function(){var i,o,e;u._context===r?o=f.context:(o=u.jn(r),i=!0),e=t.props,n!==t&&(i=!0),i&&f.componentWillReceiveProps&&(u.bn=!0,f.componentWillReceiveProps(e,o),u.bn=!1),u.g.type._forwardRef?(f.cn=n.ref,f._forwardRef=t.ref):J(n,t,u);var s=!0,c=f.props,h=f.state,a=u.mn(e,o),l=u.yn;if(u.yn=null,u.wn||(f.shouldComponentUpdate?s=f.shouldComponentUpdate(e,a,o):f.Z&&(s=!D(c,e)||!D(h,a))),s){u.wn=!1;var v=f.context;f.componentWillUpdate&&f.componentWillUpdate(e,a,o),u.g=t,u._context=r,f.props=e,f.state=a,f.context=o,u.gn(r),f.componentDidUpdate&&On((function(){f.componentDidUpdate(c,h,v)}),f)}else u.g=t,u._context=r,f.props=e,f.state=a,f.context=o;kn(l,f)}),f)},r.gn=function(n){var i,r=this._renderedComponent,u=r.g,f=this._instance;if(t.owner=this,i=f.render(),t.owner=null,Q(u,i)){var o=r._context,s=this.F(n);u===i&&o===s||r.D(u,i,o,s)}else{var c=null,h=r.C();e(h)&&0===h.length&&null==f.q&&(c=Y(r)),r.unmountComponent(!0),this._renderedComponent=M(i),this._renderedComponent.I(this._parent,f,this.F(n),(function(n,i){var r=t.driver;h=Z(h),n=Z(n);for(var u=0;u<n.length;u++){var f=n[u];h[u]?r.replaceChild(f,h[u]):c?r.insertAfter(f,c):r.appendChild(f,i),c=f}for(var o=n.length;o<h.length;o++)r.removeChild(h[o])}))}},r.C=function(){var n=this._renderedComponent;if(n)return n.C()},r.T=function(){var n=this._instance;return n.tn?null:n},i}(F),xn=function(n){function i(){return n.apply(this,arguments)||this}z(i,n);var r=i.prototype;return r.I=function(n,i,r,u){this.O(n,i,r);var f=this._instance={};f._internal=this;var o=[];if(this.L(this._parent,this.g,r,(function(n){n=Z(n);for(var t=0;t<n.length;t++)o.push(n[t])})),u)u(o,n);else for(var e=0;e<o.length;e++)t.driver.appendChild(o[e],n);return f},r.unmountComponent=function(n){if(!n)for(var i=this.C(),r=0,u=i.length;r<u;r++)t.driver.removeChild(i[r]);this.M(!0),this.k()},r.D=function(n,t,i,r){this.g=t,this.Y(this.g,r)},r.C=function(){var n=this.V||{};return[].concat.apply([],Object.keys(n).map((function(t){return n[t].C()})))},i}(an);var An={Host:t,Instance:fn,Element:i,flattenChildren:v};n.Component=nn,n.Fragment=function(n){return n.children},n.PureComponent=tn,n.createContext=function(n){var t="_c"+q++;function i(n){return $(n,(function(n){return n.On===t}))}return{Provider:function(){function i(){this.On=t,this.kn=[]}var r=i.prototype;return r.dn=function(n){this.kn.push(n)},r._n=function(n){this.kn=this.kn.filter((function(t){return t!==n}))},r._getChildContext=function(){var n;return(n={})[t]=this,n},r.getValue=function(){return void 0!==this.props.value?this.props.value:n},r.componentDidUpdate=function(n){this.props.value!==n.value&&E(this.kn,null,this.getValue())},r.render=function(){return this.props.children},i}(),Consumer:function(r,f){var o=this,e=N((function(){return f[t]||i(o)}))[0],s=e?e.getValue():n,c=N(s),h=c[1];if(s===c[0]){R((function(){if(e)return e.dn(h),function(){e._n(h)}}),[]);var a=Z(r.children)[0];return u(a)?a(s):void 0}h(s)},_contextID:t,_defaultValue:n,an:i}},n.createElement=C,n.createRef=function(){return{current:null}},n.forwardRef=function(n){return n._forwardRef=!0,n},n.memo=function(n,t){return t=t||D,n.hn?n.hn.push(t):n.hn=[t],n},n.render=function(n,i,r,f){var o;u(r)&&(f=r,r=null),o=(r=r||a).driver,t.R=G,t.S=an,t.H=ln,t.N=xn,t.U=In,(t.driver=o||t.driver)||I(5);var e=fn.mount(n,i,r).T();return f&&f.call(e),e},n.shared=An,n.useCallback=function(n,t){return W((function(){return n}),t)},n.useContext=function(n){return U().useContext(n)},n.useEffect=function(n,t){V(n,t,!0)},n.useImperativeHandle=function(n,t,i){R((function(){return u(n)?(n(t()),function(){return n(null)}):null!=n?(n.current=t(),function(){n.current=null}):void 0}),e(i)?i.concat([n]):null)},n.useLayoutEffect=R,n.useMemo=W,n.useReducer=function(n,i,r){var f=U(),o=f.getHookID(),e=f.getHooks(),s=e[o];if(!s){var c=u(r)?r(i):i;return e[o]=[c,function(n){t.i||g();var i=e[o][2];if(S()===f)i.In.push(n),f.o=!0;else{var r=i.xn,u=(0,i.An)(r,n);if(T(u,r))return;i.xn=u,i.In.push(n),f.h()}},{In:[],An:n,xn:c}]}var h=s[2],a=s[0];if(f.fn>0)for(var l=0;l<h.In.length;l++)a=n(a,h.In[l]);else a=h.xn;return T(a,s[0])||(s[0]=a,f.l=!0),h.An=n,h.xn=a,h.In.length=0,e[o]},n.useRef=function(n){var t=U(),i=t.getHookID(),r=t.getHooks();return r[i]||(r[i]={current:n}),r[i]},n.useState=N,n.version="1.2.2"}));
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).Rax={})}(this,(function(n){var t={t:1,i:!1,driver:null,rootComponents:{},rootInstances:{},owner:null};function i(n,t,i,r,u){return{type:n,key:t,ref:i,props:r,_owner:u}}function r(n){return null===n}function u(n){return"function"==typeof n}function f(n){return"object"==typeof n}function o(n){return"[object Object]"===a.toString.call(n)}function e(n){return Array.isArray(n)}function s(n){return"string"==typeof n}function c(n){return"number"==typeof n}var h=function(){},a={};function l(n,t){if(e(n))for(var i=0,r=n.length;i<r;i++)l(n[i],t);else t.push(n)}function v(n){if(null==n)return n;var t=[];return l(n,t),t.length-1?t:t[0]}var d=[],_=[],p=[],w=setTimeout;function y(n){var t;while(t=n.shift())t()}function b(n){0===d.length&&w(j),d.push(n)}function j(){y(d)}function m(n){0===_.length&&w(g),_.push(n)}function g(){y(_)}function O(n){p.push(n)}function k(n,i,r){var u,f=void 0===r?"":" got: "+function(n){return o(n)?Object.keys(n):n}(r);return Error(n+": #"+i+", "+(((u=t.owner)?"check <"+u.u()+">":"no owner")+".")+f)}function I(n,t){throw k("Error",n,t)}function x(n,t){var i=k("Warn",n,t);w((function(){throw i}),0)}var A={key:!0,ref:!0};function C(n,r,u){var f,o={},s=null,c=null;if(null!=r)for(f in c=void 0===r.ref?null:r.ref,s=void 0===r.key?null:""+r.key,r)A[f]||(o[f]=r[f]);var a=arguments.length-2;if(a>0)if(1!==a||e(u)){var l=u;if(a>1){l=Array(a);for(var d=0;d<a;d++)l[d]=arguments[d+2]}o.children=v(l)}else o.children=u;if(n&&n.defaultProps){var _=n.defaultProps;for(f in _)void 0===o[f]&&(o[f]=_[f])}return null==n&&(n=h,x(0)),new i(n,s,c,o,t.owner)}function E(n,t,i){for(var r=0,u=n&&n.length;r<u;r++)n[r].call(t,i)}var P=a.hasOwnProperty;function T(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function D(n,t){if(T(n,t))return!0;if(!f(n)||r(n)||!f(t)||r(t))return!1;var i=Object.keys(n);if(i.length!==Object.keys(t).length)return!1;for(var u=0;u<i.length;u++)if(!P.call(t,i[u])||!T(n[i[u]],t[i[u]]))return!1;return!0}function S(){return t.owner&&t.owner._instance}function U(){var n=S();if(n)return n;I(1)}function H(n,t){if(r(t)||n.length!==t.length)return!1;for(var i=0;i<n.length;i++)if(!T(n[i],t[i]))return!1;return!0}function N(n){var i=U(),r=i.getHookID(),f=i.getHooks();if(!f[r]){u(n)&&(n=n());f[r]=[n,function(n){t.i||g();var o=f[r],e=o[2];u(n)&&(n=n(e)),T(n,e)||(o[2]=n,S()===i?i.o=!0:i.h())},n]}var o=f[r];return T(o[0],o[2])||(o[0]=o[2],i.l=!0),o}function R(n,t){V(n,t)}function V(n,t,i){var r=U(),u=r.getHookID(),f=r.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u],e=o.v,s=o._;o._=t,o.p=s,e.current=n}else{var c=function n(t){if(!t&&i)return m((function(){return n(!0)}));var r=n.current;r&&(h.current=r(),n.current=null)},h=function n(t){if(!t&&i)return m((function(){return n(!0)}));var r=n.current;r&&(r(),n.current=null)};c.current=n,f[u]={v:c,j:h,p:t,_:t},r.didMount.push(c),r.willUnmount.push((function(){return h(!0)})),r.didUpdate.push((function(){var n=f[u],t=n._,i=n.v;null!=t&&H(t,n.p)||(h(),i())}))}}function W(n,t){var i=U(),u=i.getHookID(),f=i.getHooks();if(t=void 0===t?null:t,f[u]){var o=f[u][1];!r(t)&&H(t,o)||(f[u]=[n(),t])}else f[u]=[n(),t];return f[u][0]}function Z(n){return e(n)?n:[n]}function $(n,t){var i;while(n&&n._internal){if(t(n)){i=n;break}n=n._internal.m}return i}var q=0;function z(n){var i;return o(n)&&null!==n&&n.type?i=s(n.type)?new t.g(n):new t.O(n):s(n)||c(n)?i=new t.k(n+""):e(n)?i=new t.I(n):(void 0===n||r(n)||!1===n||!0===n||x(2,n),i=new t.A(n)),i}function B(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,F(n,t)}function F(n,t){return(F=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}var G=function(){function n(n,t){this.props=n,this.context=t,this.refs={}}var t=n.prototype;return t.setState=function(n,t){this.updater.setState(this,n,t)},t.forceUpdate=function(n){this.updater.forceUpdate(this,n)},n}(),J=function(n){function t(t,i){var r;return(r=n.call(this,t,i)||this).C=!0,r}return B(t,n),t}(G),K=1,L=function(n){function t(){var t;return(t=n.call(this)||this).P=[],t.T=K++,t}B(t,n);var i=t.prototype;return i.D=function(){return this.S().D()},i.S=function(){return this._internal._renderedComponent},i.h=function(n){this.P=n,this.forceUpdate()},i.render=function(){return this.P},t}(G),M={set:function(n,i){n._r||(n._r=i,i.T&&(t.rootInstances[i.T]=i,t.rootComponents[i.T]=i._internal))},get:function(n){return n._r},remove:function(n){var i=this.get(n);i&&(n._r=null,i.T&&(delete t.rootComponents[i.T],delete t.rootInstances[i.T]))},mount:function(n,i,r){var u=r.parent,f=r.hydrate,o=t.driver;null==i&&(i=o.createBody());var e,s={element:n,container:i,hydrate:f};if(o.beforeRender&&o.beforeRender(s),u){var c=u._internal;e=c.U(c._context)}var h=this.get(i);if(h&&h.T)return e&&(h._internal.H=e),h.h(n),o.afterRender&&o.afterRender(s),h;var a=z(C(L)).N(i,u,e||{});return this.set(i,a),a.h(n),o.afterRender&&o.afterRender(s),a}};function Q(n,t,i){var r=n?n.ref:null,u=t?t.ref:null;r!==u&&(r&&Y(n._owner,r,i),u&&X(t._owner,u,i))}function X(n,t,i){if(n){var r=i.D();u(t)?t(r):f(t)?t.current=r:n._instance.refs[t]=r}else x(3)}function Y(n,t,i){if(u(t))t(null);else{var r=i.D();f(t)&&t.current===r?t.current=null:n._instance.refs[t]===r&&delete n._instance.refs[t]}}function nn(n,t){var i=r(n),u=r(t);return i||u?i===u:!(!e(n)||!e(t))||(s(n)||c(n)?s(t)||c(t):f(n)&&f(t)&&n.type===t.type&&n.key===t.key)}function tn(n,t,i){var r=t&&t.key,u="."+i.toString(36);if(s(r)){var f="$"+r;return void 0===n[f]?f:u}return u}function rn(n){var i=n;while(i=n.m&&n.m._internal)if(i instanceof t.O)n=i;else{for(var r=Object.keys(i.R),u=n.V-1;u>=0;u--){var f=i.R[r[u]].W();if(!e(f))return f;if(f.length>0)return f[f.length-1]}if(!(i instanceof t.I))return null;n=i}}var un=function(){function n(n){this.Z=n}var i=n.prototype;return i.$=function(n,i,r){this._parent=n,this.m=i,this._context=r,this._mountID=t.t++},i.q=function(){this.Z=this._nativeNode=this._parent=this.m=this._context=null,this._instance&&(this._instance=this._instance._internal=null)},i.N=function(n,t,i,r){this.$(n,t,i),this.B(r);var u={};return u._internal=this,u},i.unmountComponent=function(n){this._nativeNode&&!n&&t.driver.removeChild(this._nativeNode,this._parent),this.q()},i.u=function(){var n=this.Z,t=n&&n.type;return t&&t.displayName||t&&t.name||t||n},i.B=function(n){var i=this.W(),r=this._parent;n?n(i,r):t.driver.appendChild(i,r)},i.W=function(){return null==this._nativeNode?this._nativeNode=this.F():this._nativeNode},i.D=function(){return this.W()},n}(),fn=Object.assign,on="style",en="children",sn="tree",cn=/^on[A-Z]/,hn=function(n){function i(){return n.apply(this,arguments)||this}B(i,n);var f=i.prototype;return f.N=function(n,t,i,r){this.$(n,t,i);var u=this.Z,f=u.props,o=u.type,e=f.children,s=f.append||sn;this.G=fn({},f.style);var c={type:o,props:f};return c._internal=this,this._instance=c,s===sn?(this.J(e,i),this.B(r)):(this.B(r),this.J(e,i)),u&&u.ref&&X(u._owner,u.ref,this),c},f.J=function(n,t){if(null==n)return n;var i=this.W();return this.K(i,Z(n),t)},f.K=function(n,t,i,r){for(var u=this.R={},f=[],o=0,e=t.length;o<e;o++){var s=t[o],c=z(s);u[tn(u,s,o)]=c,c.V=o;var h=c.N(n,this._instance,i,r);f.push(h)}return f},f.L=function(n){var t=this.R;if(t){for(var i in t){t[i].unmountComponent(n)}this.R=null}},f.unmountComponent=function(n){if(this._nativeNode){var i=this.Z.ref;i&&Y(this.Z._owner,i,this),M.remove(this._nativeNode),n||t.driver.removeChild(this._nativeNode,this._parent)}this.L(!0),this.G=null,this.q()},f.M=function(n,t,i,r){this.Z=t,Q(n,t,this);var u=n.props,f=t.props;this.X(u,f),null==u.children||e(u.children)&&0===u.children.length?this.J(f.children,r):this.Y(f.children,r)},f.X=function(n,i){var r,f,o,e=t.driver,s=this.W();for(r in n)if(r!==en&&null!=n[r]&&!i.hasOwnProperty(r))if(r===on){var c=this.G;for(f in c)(o=o||{})[f]="";this.G=null}else if(cn.test(r)){var h=n[r];u(h)&&e.removeEventListener(s,r.slice(2).toLowerCase(),h)}else e.removeAttribute(s,r,n[r]);for(r in i){var a=i[r],l=r===on?this.G:null!=n?n[r]:void 0;if(r!==en&&l!==a&&(null!=a||null!=l))if(r===on)if(a?a=this.G=fn({},a):this.G=null,null!=l){for(f in l)a&&(a[f]||0===a[f])||((o=o||{})[f]="");for(f in a)l[f]!==a[f]&&((o=o||{})[f]=a[f])}else o=a;else if(cn.test(r)){var v=r.slice(2).toLowerCase();u(l)&&e.removeEventListener(s,v,l,i),u(a)&&e.addEventListener(s,v,a,i)}else null!=a?e.setAttribute(s,r,a):e.removeAttribute(s,r,n[r])}o&&e.setStyle(s,o)},f.Y=function(n,i){var u=this.R,f=t.driver;if(null!=n||null!=u){var o={};if(null!=n)for(var s=0,c=(n=Z(n)).length;s<c;s++){var h=n[s],a=tn(o,h,s),l=u&&u[a],v=l&&l.Z,d=l&&l._context;null!=l&&nn(v,h)?(v===h&&d===i||l.M(v,h,i,i),o[a]=l):(l&&(l.nn=!0),o[a]=z(h))}var _=this.W(),p=e(_),w=null,y=null,b=!1,j=!1,m=null,g=!(!f.removeChildren||!(r(n)||n&&!n.length)||p);if(null!=u){for(var O in u){var k=u[O],I=k.nn||!o[O];w?I&&k.unmountComponent(g):(j=I,e(y=(w=k).W())&&(b=0===y.length,y=y[0]))}(p&&0===_.length||b)&&(m=rn(this))}if(null!=o){var x=function(n,t){for(var i=0,r=(n=Z(n)).length;i<r;i++)m?f.insertAfter(n[r-1-i],m):y?f.insertBefore(n[i],y):t&&f.appendChild(n[i],t)},A=0;for(var C in o){var E=o[C],P=u&&u[C];if(P===E){var T=P.W();P.V!==A&&x(T)}else p&&(_=this._parent),E.N(_,this._instance,i,x);E.V=A++,e(m=E.W())&&(m=m[m.length-1])}}j&&w.unmountComponent(g),g&&f.removeChildren(this._nativeNode),this.R=o}},f.F=function(){var n=this._instance,i=t.driver.createElement(n.type,n.props,this);return M.set(i,n),i},i}(un),an=function(n){function t(t,i){var r;(r=n.call(this)||this).tn=!0,r.rn=t,r.un=0,r.fn=0,r.on={},r.o=!1,r.l=!1,r.en=null,r.sn={},r.didMount=[],r.didUpdate=[],r.willUnmount=[],r.state=a,t._forwardRef&&(r.cn=r._forwardRef=i);var u=t.hn;return u&&(r.shouldComponentUpdate=function(n){for(var t=!0,i=u.length-1;i>-1;i--)if(t=u[i](r.props,n))break;return!t||r.cn!==r._forwardRef}),r}B(t,n);var i=t.prototype;return i.getHooks=function(){return this.on},i.getHookID=function(){return++this.un},i.useContext=function(n){var t=this,i=n._contextID,r=this.sn[i];if(!r){var u=n.an(this);if(r=this.sn[i]={ln:u},u){var f=function(n){r.vn!==n&&(t.l=!0,t.h())};u.dn(f),this.willUnmount.push((function(){return u._n(f)}))}}return r.vn=r.ln?r.ln.getValue():n._defaultValue},i.componentWillMount=function(){this.l=!0},i.componentDidMount=function(){E(this.didMount)},i.componentWillReceiveProps=function(){this.l=!0},i.componentDidUpdate=function(){E(this.didUpdate)},i.componentWillUnmount=function(){E(this.willUnmount)},i.h=function(){this.setState(a)},i.render=function(){this.un=0,this.fn=0,this.o=!1;var n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);while(this.o)this.fn++,this.fn>24&&I(4),this.un=0,this.o=!1,n=this.rn(this.props,this._forwardRef?this._forwardRef:this.context);return this.l&&(this.en=n,this.l=!1),this.en},t}(G),ln=[];function vn(n){return n.pn}function dn(n){var i=n._internal;if(i){t.i=!0;var r=i.Z,u=i._context,f=i.H||u;i.H=void 0,(vn(i)||i.wn)&&(i.M(r,r,u,f),y(p)),t.i=!1}}function _n(n,t){return t._internal._mountID-n._internal._mountID}function pn(){if(t.i)return b(pn);var n,i=ln;if(i.length>0){g(),ln=[],i.length>1&&(i=i.filter((function(n){return!!n._internal})).sort(_n));while(n=i.pop())dn(n)}}function wn(n,t){if(ln.indexOf(n)<0&&ln.push(n),t){if(ln.length>1)return;b(pn)}else pn()}function yn(n,t,i){var r=n._internal;if(r){i&&function(n,t){(function(n){return n.yn}(n)||function(n){return n.yn=[]}(n)).push(t)}(r,i);var u=r._renderedComponent;t?(n.tn&&(r.wn=!0),function(n,t){(vn(n)||function(n){return n.pn=[]}(n)).push(t)}(r,t),!r.bn&&u&&wn(n,!0)):(r.wn=!0,u&&wn(n))}}var bn={setState:function(n,i,r){t.i||g(),yn(n,i,r)},forceUpdate:function(n,t){yn(n,null,t)}};function jn(n,t,i){try{return n()}catch(n){i?i(n):function(n,t){var i=$(n,(function(n){return n.componentDidCatch||n.constructor&&n.constructor.getDerivedStateFromError}));i?O((function(){var n=i._internal;n&&jn((function(){if(i.componentDidCatch&&i.componentDidCatch(t),i.constructor&&i.constructor.getDerivedStateFromError){var n=i.constructor.getDerivedStateFromError(t);i.setState(n)}}),n.m)})):w((function(){throw t}),0)}(t,n)}}function mn(n,t){O((function(){jn(n,t)}))}function gn(n,t){n&&mn((function(){E(n,t)}),t)}var On=function(n){function i(){return n.apply(this,arguments)||this}B(i,n);var r=i.prototype;return r.N=function(n,i,r,f){this.$(n,i,r);var o,e,s=this.Z,c=s.type,h=s.ref,a=s.props,l=c.prototype,v=this.jn(r);if(jn((function(){l&&l.render?o=new c(a,v):u(c)?o=new an(c,h):I(6,c)}),i),o){o.props=a,o.context=v,o.refs={},o.updater=bn,o._internal=this,this._instance=o;var d=o.state;void 0===d&&(o.state=d=null),o.componentWillMount&&jn((function(){o.componentWillMount()}),o),t.owner=this,o.state=this.mn(a,v);var _=this.yn;return this.yn=null,jn((function(){e=o.render()}),o),t.owner=null,this._renderedComponent=z(e),this._renderedComponent.N(this._parent,o,this.U(r),f),!s.type._forwardRef&&h&&X(s._owner,h,this),o.componentDidMount&&mn((function(){o.componentDidMount()}),o),gn(_,o),o}},r.unmountComponent=function(n){var t=this._instance;if(t&&t.componentWillUnmount&&jn((function(){t.componentWillUnmount()}),t),null!=this._renderedComponent){var i=this.Z,r=i.ref;!i.type._forwardRef&&r&&Y(i._owner,r,this),this._renderedComponent.unmountComponent(n),this._renderedComponent=null}this.pn=null,this.wn=!1,this.q()},r.jn=function(n){var t={},i=this.Z.type.contextTypes;if(i)for(var r in i)t[r]=n[r];return t},r.U=function(n){var t=this._instance,i=t.getChildContext&&t.getChildContext();return i?fn({},n,i):n},r.mn=function(n,t){var i=this._instance,r=this.pn;if(!r)return i.state;this.pn=null;for(var f=fn({},i.state),o=0;o<r.length;o++){var e=r[o];fn(f,u(e)?e.call(i,f,n,t):e)}return f},r.M=function(n,t,i,r){var u=this,f=this._instance;f&&jn((function(){var i,o,e;u._context===r?o=f.context:(o=u.jn(r),i=!0),e=t.props,n!==t&&(i=!0),i&&f.componentWillReceiveProps&&(u.bn=!0,f.componentWillReceiveProps(e,o),u.bn=!1),u.Z.type._forwardRef?(f.cn=n.ref,f._forwardRef=t.ref):Q(n,t,u);var s=!0,c=f.props,h=f.state,a=u.mn(e,o),l=u.yn;if(u.yn=null,u.wn||(f.shouldComponentUpdate?s=f.shouldComponentUpdate(e,a,o):f.C&&(s=!D(c,e)||!D(h,a))),s){u.wn=!1;var v=f.context;f.componentWillUpdate&&f.componentWillUpdate(e,a,o),u.Z=t,u._context=r,f.props=e,f.state=a,f.context=o,u.gn(r),f.componentDidUpdate&&mn((function(){f.componentDidUpdate(c,h,v)}),f)}else u.Z=t,u._context=r,f.props=e,f.state=a,f.context=o;gn(l,f)}),f)},r.gn=function(n){var i,r=this._renderedComponent,u=r.Z,f=this._instance;if(t.owner=this,i=f.render(),t.owner=null,nn(u,i)){var o=r._context,s=this.U(n);u===i&&o===s||r.M(u,i,o,s)}else{var c=null,h=r.W();e(h)&&0===h.length&&null==f.T&&(c=rn(r)),r.unmountComponent(!0),this._renderedComponent=z(i),this._renderedComponent.N(this._parent,f,this.U(n),(function(n,i){var r=t.driver;h=Z(h),n=Z(n);for(var u=0;u<n.length;u++){var f=n[u];h[u]?r.replaceChild(f,h[u]):c?r.insertAfter(f,c):r.appendChild(f,i),c=f}for(var o=n.length;o<h.length;o++)r.removeChild(h[o])}))}},r.W=function(){var n=this._renderedComponent;if(n)return n.W()},r.D=function(){var n=this._instance;return n.tn?null:n},i}(un),kn=function(n){function i(){return n.apply(this,arguments)||this}B(i,n);var r=i.prototype;return r.M=function(n,i){n!==(i=""+i)&&(this.Z=i,t.driver.updateText(this.W(),i))},r.F=function(){return t.driver.createText(this.Z,this)},i}(un),In=function(n){function i(){return n.apply(this,arguments)||this}B(i,n);var r=i.prototype;return r.N=function(n,i,r,u){this.$(n,i,r);var f=this._instance={};f._internal=this;var o=[];if(this.K(this._parent,this.Z,r,(function(n){n=Z(n);for(var t=0;t<n.length;t++)o.push(n[t])})),u)u(o,n);else for(var e=0;e<o.length;e++)t.driver.appendChild(o[e],n);return f},r.unmountComponent=function(n){if(!n)for(var i=this.W(),r=0,u=i.length;r<u;r++)t.driver.removeChild(i[r]);this.L(!0),this.q()},r.M=function(n,t,i,r){this.Z=t,this.Y(this.Z,r)},r.W=function(){var n=this.R||{};return[].concat.apply([],Object.keys(n).map((function(t){return n[t].W()})))},i}(hn),xn=function(n){function i(){return n.apply(this,arguments)||this}B(i,n);var r=i.prototype;return r.F=function(){return t.driver.createEmpty(this)},r.M=function(){},i}(un);t.A=xn,t.g=hn,t.k=kn,t.I=In,t.O=On;var An={Host:t,Instance:M,Element:i,flattenChildren:v};n.Component=G,n.Fragment=function(n){return n.children},n.PureComponent=J,n.createContext=function(n){var t="_c"+q++;function i(n){return $(n,(function(n){return n.On===t}))}return{Provider:function(){function i(){this.On=t,this.kn=[]}var r=i.prototype;return r.dn=function(n){this.kn.push(n)},r._n=function(n){this.kn=this.kn.filter((function(t){return t!==n}))},r._getChildContext=function(){var n;return(n={})[t]=this,n},r.getValue=function(){return void 0!==this.props.value?this.props.value:n},r.componentDidUpdate=function(n){this.props.value!==n.value&&E(this.kn,null,this.getValue())},r.render=function(){return this.props.children},i}(),Consumer:function(r,f){var o=this,e=N((function(){return f[t]||i(o)}))[0],s=e?e.getValue():n,c=N(s),h=c[1];if(s===c[0]){R((function(){if(e)return e.dn(h),function(){e._n(h)}}),[]);var a=Z(r.children)[0];return u(a)?a(s):void 0}h(s)},_contextID:t,_defaultValue:n,an:i}},n.createElement=C,n.createRef=function(){return{current:null}},n.forwardRef=function(n){return n._forwardRef=!0,n},n.memo=function(n,t){return t=t||D,n.hn?n.hn.push(t):n.hn=[t],n},n.render=function(n,i,r,f){u(r)&&(f=r,r=null),(t.driver=(r=r||a).driver||t.driver)||I(5);var o=M.mount(n,i,r).D();return f&&f.call(o),o},n.shared=An,n.useCallback=function(n,t){return W((function(){return n}),t)},n.useContext=function(n){return U().useContext(n)},n.useEffect=function(n,t){V(n,t,!0)},n.useImperativeHandle=function(n,t,i){R((function(){return u(n)?(n(t()),function(){return n(null)}):null!=n?(n.current=t(),function(){n.current=null}):void 0}),e(i)?i.concat([n]):null)},n.useLayoutEffect=R,n.useMemo=W,n.useReducer=function(n,i,r){var f=U(),o=f.getHookID(),e=f.getHooks(),s=e[o];if(!s){var c=u(r)?r(i):i;return e[o]=[c,function(n){t.i||g();var i=e[o][2];if(S()===f)i.In.push(n),f.o=!0;else{var r=i.xn,u=(0,i.An)(r,n);if(T(u,r))return;i.xn=u,i.In.push(n),f.h()}},{In:[],An:n,xn:c}]}var h=s[2],a=s[0];if(f.fn>0)for(var l=0;l<h.In.length;l++)a=n(a,h.In[l]);else a=h.xn;return T(a,s[0])||(s[0]=a,f.l=!0),h.An=n,h.xn=a,h.In.length=0,e[o]},n.useRef=function(n){var t=U(),i=t.getHookID(),r=t.getHooks();return r[i]||(r[i]={current:n}),r[i]},n.useState=N,n.version="1.2.2"}));
{
"name": "rax",
"version": "1.2.2",
"version": "1.2.3-beta.1",
"description": "A universal React-compatible render engine.",

@@ -18,5 +18,7 @@ "license": "BSD-3-Clause",

},
"devDependencies": {
"driver-server": "^1.0.0"
},
"dependencies": {
"@babel/runtime": "^7.2.0",
"driver-server": "^1.0.0",
"prop-types": "^15.7.2",

@@ -23,0 +25,0 @@ "rax-children": "^1.0.0",

@@ -22,3 +22,3 @@ export createElement from './createElement';

Element,
flattenChildren
flattenChildren,
};

@@ -25,0 +25,0 @@

@@ -1,5 +0,9 @@

import inject from './vdom/inject';
import injectRenderOptions from './vdom/injectRenderOptions';
import Instance from './vdom/instance';
import { isFunction, EMPTY_OBJECT } from './types';
import inject from './vdom/inject';
// Inject init options to host, avoid circle deps between class component file and ./vdom/host
inject();
function render(element, container, options, callback) {

@@ -14,3 +18,3 @@ // Compatible with `render(element, container, callback)`

// Init inject
inject(options);
injectRenderOptions(options);

@@ -17,0 +21,0 @@ let rootComponent = Instance.mount(element, container, options);

import Host from './host';
import EmptyComponent from './empty';
import NativeComponent from './native';
import CompositeComponent from './composite';
import TextComponent from './text';
import CompositeComponent from './composite';
import FragmentComponent from './fragment';
import EmptyComponent from './empty';
import reconciler from '../devtools/reconciler';
import { throwError, throwMinifiedError } from '../error';
export default function inject({ driver, measurer }) {
export default function inject() {
// Inject component class

@@ -18,18 +17,6 @@ Host.__Empty = EmptyComponent;

// Inject render driver
if (!(Host.driver = driver || Host.driver)) {
if (process.env.NODE_ENV !== 'production') {
throwError('Rax driver not found.');
} else {
throwMinifiedError(5);
}
}
if (process.env.NODE_ENV !== 'production') {
// Inject devtool renderer hook
Host.reconciler = reconciler;
// Inject performance measurer
Host.measurer = measurer;
}
}

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 not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc