Comparing version 0.10.3 to 0.10.4
44
index.js
@@ -1,7 +0,7 @@ | ||
(function(){function r(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function v(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:r(a)}}var aa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},x; | ||
if("function"==typeof Object.setPrototypeOf)x=Object.setPrototypeOf;else{var y;a:{var ba={s:!0},A={};try{A.__proto__=ba;y=A.s;break a}catch(a){}y=!1}x=y?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var B=x; | ||
(function(){function u(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function v(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:u(a)}}var aa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},y; | ||
if("function"==typeof Object.setPrototypeOf)y=Object.setPrototypeOf;else{var z;a:{var ba={s:!0},A={};try{A.__proto__=ba;z=A.s;break a}catch(a){}z=!1}y=z?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var B=y; | ||
function C(a,b){a.prototype=aa(b.prototype);a.prototype.constructor=a;if(B)B(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.v=b.prototype}var D="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},E="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this; | ||
function F(a,b){if(b){var c=E;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&D(c,a,{configurable:!0,writable:!0,value:b})}}F("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});F("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&c.push(b[d]);return c}}); | ||
var ca="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Object.prototype.hasOwnProperty.call(d,e)&&(a[e]=d[e])}return a};F("Object.assign",function(a){return a||ca});function G(){G=function(){};E.Symbol||(E.Symbol=da)}function H(a,b){this.o=a;D(this,"description",{configurable:!0,writable:!0,value:b})}H.prototype.toString=function(){return this.o}; | ||
var da=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new H("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();function I(){G();var a=E.Symbol.iterator;a||(a=E.Symbol.iterator=E.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&D(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(r(this))}});I=function(){}}function ea(a){I();a={next:a};a[E.Symbol.iterator]=function(){return this};return a} | ||
var da=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new H("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();function I(){G();var a=E.Symbol.iterator;a||(a=E.Symbol.iterator=E.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&D(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(u(this))}});I=function(){}}function ea(a){I();a={next:a};a[E.Symbol.iterator]=function(){return this};return a} | ||
function fa(a,b){I();a instanceof String&&(a+="");var c=0,d={next:function(){if(c<a.length){var e=c++;return{value:b(e,a[e]),done:!1}}d.next=function(){return{done:!0,value:void 0}};return d.next()}};d[Symbol.iterator]=function(){return d};return d}F("Array.prototype.keys",function(a){return a?a:function(){return fa(this,function(b){return b})}}); | ||
@@ -11,22 +11,22 @@ F("Array.prototype.flat",function(a){return a?a:function(b){b=void 0===b?1:b;for(var c=[],d=0;d<this.length;d++){var e=this[d];Array.isArray(e)&&0<b?(e=Array.prototype.flat.call(e,b-1),c.push.apply(c,e)):c.push(e)}return c}});function J(a,b){if(!Array.isArray(a)||!Array.isArray(b)||a.length!==b.length)return!1;for(var c=0,d=a.length;c<d;c++)if(!Object.is(a[c],b[c]))return!1;return!0}function ha(a,b){for(var c=a.length;c--;)b(a[c])||a.splice(c,1)}var K=null,M=!1;function N(a,b){return b} | ||
function ja(a){if("function"===typeof a)return function(c){var d=Object.assign({},c);d=(delete d.children,d);return P(function(){return a(c)},Object.values(d))};if(null!==a&&"object"===typeof a){var b=a?a.children:[];return P(function(){return b},(a?a.deps:null)||[])}return null}function P(a,b){var c=v(O(N)),d=c.next().value;c=c.next().value;var e=v(O(N)),f=e.next().value;e=e.next().value;J(d,b)||(Array.isArray(b)&&c(b),f=a(),e(f));return f} | ||
function ka(a,b){return O(a,b,function(c){c&&c.element&&(M?c===K?c.element.a=!1:Q.push(c.element):R(c.element))})}function la(a){return ka(function(b,c){return"function"===typeof c?c(b):c},a)}function S(a,b){this.props=a;this.scope=b;this.state={}}S.prototype.setState=function(a){Object.assign(this.state,a);M?this.scope===K?this.scope.element.a=!1:Q.push(this.scope.element):R(this.scope.element)};S.prototype.render=function(){return null};function T(){this.type=null;this.a=!1} | ||
T.prototype.isEqual=function(a){return a&&this.type===a.type};T.prototype.render=function(){this.a=!0;return[null,[]]};function U(a,b){T.call(this);this.j=a;this.props=b||{};this.c=null;a&&a.prototype&&a.prototype instanceof S?this.type="component":"function"===typeof a?(this.c=a,this.type="function"):this.type="string"===typeof a?"tag":null===a?"fragment":"undefined"}C(U,T);function ma(a){"component"===a.type&&(a.c=new a.j(a.props,a))} | ||
function ka(a,b){return O(a,b,function(c){c&&c.element&&(M?c===K?c.element.a=!1:Q.push(c.element):R(c.element))})}function na(a){return ka(function(b,c){return"function"===typeof c?c(b):c},a)}function S(a,b){this.props=a;this.scope=b;this.state={}}S.prototype.setState=function(a){Object.assign(this.state,a);M?this.scope===K?this.scope.element.a=!1:Q.push(this.scope.element):R(this.scope.element)};S.prototype.render=function(){return null};function T(){this.type=null;this.a=!1} | ||
T.prototype.isEqual=function(a){return a&&this.type===a.type};T.prototype.render=function(){this.a=!0;return[null,[]]};function U(a,b){T.call(this);this.j=a;this.props=b||{};this.c=null;a&&a.prototype&&a.prototype instanceof S?this.type="component":"function"===typeof a?(this.c=a,this.type="function"):this.type="string"===typeof a?"tag":null===a?"fragment":"undefined"}C(U,T);function oa(a){"component"===a.type&&(a.c=new a.j(a.props,a))} | ||
U.prototype.isEqual=function(a){return T.prototype.isEqual.call(this,a)&&a.props&&this.j===a.j&&this.props.key===a.props.key}; | ||
function na(a){var b={"class":null,className:"class",children:null,key:null,ref:null,style:"style"},c=Object.keys(b),d=Object.keys(a.props),e=d.length,f={},g={},k;for(k=0;k<e;k++){var h=d[k];if(c.indexOf(h)+1)if("className"===h){var l=b[h];h=a.props[h];h="string"===typeof h?h.replace(/\./g,""):h;f[l]=h}else if("style"===h){l=b[h];var n=a.props[h];if("string"===typeof n)h=n;else{var m=Object.keys(n),p=m.length,q="";for(h=0;h<p;h++)q+=m[h]+":"+n[m[h]]+";";h=q}f[l]=h}else b[h]&&(f[b[h]]=a.props[h]); | ||
else"on"===h.substring(0,2)?"function"===typeof a.props[h]&&(g[h.substring(2).toLowerCase()]=a.props[h]):h&&(f[h.toLowerCase()]=a.props[h])}return[f,g]}U.prototype.setProps=function(a){this.props=a;"component"===this.type&&(this.c?this.c.props=a:ma(this))};U.prototype.updateProps=function(a){this.setProps(Object.assign({},this.props,a))}; | ||
U.prototype.render=function(){var a=null,b=[],c=null,d=null;this.a=!0;"component"===this.type?(this.c||ma(this),b=this.c.render()):"function"===this.type?b=this.c(this.props):"tag"===this.type?(a=document.createElement(this.j),b=this.props.children,d=v(na(this)),c=d.next().value,d=d.next().value):"fragment"===this.type&&(b=this.props.children);b=b?Array.isArray(b)?b:[b]:[];ha(b,function(e){return"undefined"!==typeof e&&null!==e&&!1!==e&&""!==e});return[a,b,c,d]}; | ||
function V(a){T.call(this);this.content=a;this.type="text"}C(V,T);V.prototype.isEqual=function(a){return"string"===typeof a?this.content===a:T.prototype.isEqual.call(this,a)&&this.content===a.content};V.prototype.render=function(){var a=document.createTextNode(this.content);this.a=!0;return[a,[]]};function oa(a,b){var c=a.length,d;for(d=0;d<c;d++)a[d]&&b(a[d])}function W(a,b,c){a=a.l=a.l||{};a[b]||(a[b]=[]);a[b].push(c)} | ||
function X(a,b){a=a.l=a.l||{};var c;if(a[b]){var d=a[b].length;for(c=0;c<d;c++){var e=a[b][c];a[b][c]=null;"function"===typeof e&&e()}a[b]=[]}}function pa(a,b){a=a.l=a.l||{};a.destroy&&(b=a.destroy.indexOf(b),-1<b&&a.destroy.splice(b,1))}var Y=[];function qa(a,b,c){var d=a?Object.keys(a):[],e=[],f=d.length,g;if(b)for(g=0;g<f;g++){var k=d[g];c(a,b,k)||e.push(k)}return b?e:d} | ||
function ra(a){var b=a.action,c=a.attributes,d=a.element,e=a.b,f=a.f,g=a.node;a=a.u;if("mount"===b){var k;if(!(g instanceof HTMLElement||g instanceof Text))throw Error("Can only mount a DOM node.");if(!(f instanceof HTMLElement))throw Error("Can only mount to a DOM node.");"undefined"!==typeof a&&(k=null===a?f.firstChild:a.nextSibling);k?f.insertBefore(g,k):f.appendChild(g)}else if("update"===b){var h=sa(d.attributes,c),l=h.length;b=sa(c,d.attributes);f=b.length;k=["input","select","textarea"];for(a= | ||
0;a<l;a++)g.removeAttribute(h[a]);for(a=0;a<f;a++)h=b[a],!0===c[h]?g.setAttribute(h,""):g.setAttribute(h,c[h]);"tag"===d.type&&k.indexOf(d.j)+1&&b.indexOf("value")+1&&(g.value=c.value);d.attributes=c;d.b=ta(g,d,e)}else if("unmount"===b){if(!(g instanceof HTMLElement||g instanceof Text))throw Error("Can only remove a DOM node.");c=g.parentNode;if(!c)throw Error("Can only remove attached DOM node.");c.removeChild(g)}else"ready"===b&&(d.props.ref&&(d.props.ref.current=d.node),X(d,"ready"))} | ||
function ua(a,b){return qa(a,b,function(c,d,e){return d.hasOwnProperty(e)})}function sa(a,b){return qa(a,b,function(c,d,e){return c[e]===d[e]})}function ta(a,b,c){function d(n){return function(m){if(b.b&&"function"===typeof b.b[n])b.b[n](m)}}var e=ua(b.b,c),f=e.length,g=ua(c,b.b),k=g.length,h;c&&!b.g&&(b.g={});for(h=0;h<f;h++){var l=e[h];a.removeEventListener(l,b.g[l],!1);delete b.g[l]}for(h=0;h<k;h++)l=g[h],b.g[l]=d(l),a.addEventListener(l,b.g[l],!1);return c}var Q=[]; | ||
function va(a,b,c){if(c&&c.ready){if(!b.node&&"function"===typeof c.ready){var d=c.ready;W(b,"ready",function(){return d({target:a})})}delete c.ready}} | ||
function wa(a,b){var c;if(a&&a.children){var d=a.children.length;for(c=0;c<d;c++){var e=a.children[c],f=b;e&&(e.node&&!f&&(Y.push({action:"unmount",node:e.node,element:e}),f=!0),e.f=null,e.parent=null,e.node=null,e.h=[],e.attributes=null,e.b=null,e.g=null,wa(e,f),X(e,"destroy"),e.scope&&(e.scope.element&&delete e.scope.element,delete e.scope))}a.children=[]}} | ||
function xa(a){for(var b=a.parent;b;){if(a.node)return null;if(b.children&&(a=b.children.indexOf(a),-1<a))for(--a;0<=a;a--){var c=b.children[a],d=c.node;c=c.h;if(d)return d;if(c&&c.length)return c[c.length-1]}a=b;b=a.parent}} | ||
function Z(a,b,c,d){var e=!1,f;if(!a||"function"!==typeof a.render)throw Error("Can only render a valid element.");for(f=Q.indexOf(a);-1<f;)Q[f]=null,f=Q.indexOf(a);Object.assign(a,{a:!1},{f:b||a.f},{parent:c||a.parent});if(!(a&&a.f instanceof HTMLElement))return[];"undefined"===typeof d&&(d=a.h,f=a.parent,d=a.node?null:d&&d.length?d[0].previousSibling:f?xa(a):void 0);for(;!a.a;){f=a;f.scope||(f.scope={element:f});K=f.scope;K.index=0;var g=v(a.render());f=g.next().value;var k=g.next().value;var h= | ||
g.next().value;g=g.next().value;a.a&&X(a,"render");K=null;if(a.a){f&&(va(f,a,g),Y.push({action:"update",node:a.node||f,element:a,attributes:h,b:g}),a.node||(a.node=f,Y.push({action:"mount",node:a.node||f,f:a.f,element:a,u:d}),e=!0),d=null);if(k!==a.children){f=k;k=a.children;h=[];if(f&&k){var l=k;var n=f;for(var m=l.length,p=n.length,q=[],L=0===m||0===p,t=0,u=0,w=0,z=0;!L;)if(g=null,u+z<p&&l[t].isEqual(n[u+z])&&(g=[t,u+z]),t+w<m&&0<w&&l[t+w].isEqual(n[u])&&(g=[t+w,u]),g?(q.push(g),t=g[0]+1,u=g[1]+ | ||
1,z=w=0):(t+w<m&&(w+=1),u+z<p&&(z+=1),t+w===m&&u+z===p&&(t+=1,u+=1,z=w=0)),t===m||u===p)L=!0;n=q;l=n.length;for(g=0;g<l;g++)p=v(n[g]),m=p.next().value,p=p.next().value,q=k[m],L=f[p],"function"===typeof q.setProps&&q.setProps(L.props),f[p]=q,h.push(m);for(g=h.length-1;0<=g;g--)k.splice(h[g],1)}l=f.length;for(g=0;g<l;g++)"function"!==typeof f[g].isEqual&&(f[g]=new V(f[g]));k=f;wa(a);a.children=k;k=a;h=d;g=k.children;l=k.f;n=k.node;m=[];if(g)for(p=g.length,f=0;f<p;f++)(q=Z(g[f],n||l,k,h))&&(m=m.concat(q)), | ||
m&&m.length&&(h=m[m.length-1]);a.h=m}"tag"===a.type&&e&&Y.push({action:"ready",element:a});b||c||!a.parent||ya(a.parent)}}return a.node?[a.node]:a.h}function ya(a){var b=a.children,c=a.node,d=a.parent;b&&(a.h=b.reduce(function(e,f){return e.concat(f.node?[f.node]:f.h)},[]),d&&!c&&ya(d))}function R(a,b){M=!0;for(Z(a,b);0<Q.length||0<Y.length;)a=Q,Q=[],oa(a,Z),a=Y,Y=[],oa(a,ra);M=!1} | ||
function pa(a){var b={"class":null,className:"class",children:null,key:null,ref:null,style:"style"},c=Object.keys(b),d=Object.keys(a.props),e=d.length,f={},g={},k;for(k=0;k<e;k++){var h=d[k];if(c.indexOf(h)+1)if("className"===h){var l=b[h];h=a.props[h];h="string"===typeof h?h.replace(/\./g,""):h;f[l]=h}else if("style"===h){l=b[h];var n=a.props[h];if("string"===typeof n)h=n;else{var m=Object.keys(n),p=m.length,q="";for(h=0;h<p;h++)q+=m[h]+":"+n[m[h]]+";";h=q}f[l]=h}else b[h]&&(f[b[h]]=a.props[h]); | ||
else"on"===h.substring(0,2)?"function"===typeof a.props[h]&&(g[h.substring(2).toLowerCase()]=a.props[h]):h&&(f[h.toLowerCase()]=a.props[h])}return[f,g]}U.prototype.setProps=function(a){this.props=a;"component"===this.type&&(this.c?this.c.props=a:oa(this))};U.prototype.updateProps=function(a){this.setProps(Object.assign({},this.props,a))}; | ||
U.prototype.render=function(){var a=null,b=[],c=null,d=null;this.a=!0;"component"===this.type?(this.c||oa(this),b=this.c.render()):"function"===this.type?b=this.c(this.props):"tag"===this.type?(a=document.createElement(this.j),b=this.props.children,d=v(pa(this)),c=d.next().value,d=d.next().value):"fragment"===this.type&&(b=this.props.children);b=b?Array.isArray(b)?b:[b]:[];ha(b,function(e){return"undefined"!==typeof e&&null!==e&&!1!==e&&""!==e});return[a,b,c,d]}; | ||
function V(a){T.call(this);this.content=a;this.type="text"}C(V,T);V.prototype.isEqual=function(a){return"string"===typeof a?this.content===a:T.prototype.isEqual.call(this,a)&&this.content===a.content};V.prototype.render=function(){var a=document.createTextNode(this.content);this.a=!0;return[a,[]]};function qa(a,b){var c=a.length,d;for(d=0;d<c;d++)a[d]&&b(a[d])}function W(a,b,c){a=a.l=a.l||{};a[b]||(a[b]=[]);a[b].push(c)} | ||
function X(a,b){a=a.l=a.l||{};var c;if(a[b]){var d=a[b].length;for(c=0;c<d;c++){var e=a[b][c];a[b][c]=null;"function"===typeof e&&e()}a[b]=[]}}function ra(a,b){a=a.l=a.l||{};a.destroy&&(b=a.destroy.indexOf(b),-1<b&&a.destroy.splice(b,1))}var Y=[];function sa(a,b,c){var d=a?Object.keys(a):[],e=[],f=d.length,g;if(b)for(g=0;g<f;g++){var k=d[g];c(a,b,k)||e.push(k)}return b?e:d} | ||
function ta(a){var b=a.action,c=a.attributes,d=a.element,e=a.b,f=a.f,g=a.node;a=a.u;if("mount"===b){var k;if(!(g instanceof HTMLElement||g instanceof Text))throw Error("Can only mount a DOM node.");if(!(f instanceof HTMLElement))throw Error("Can only mount to a DOM node.");"undefined"!==typeof a&&(k=null===a?f.firstChild:a.nextSibling);k?f.insertBefore(g,k):f.appendChild(g)}else if("update"===b){var h=ua(d.attributes,c),l=h.length;b=ua(c,d.attributes);f=b.length;k=["input","select","textarea"];for(a= | ||
0;a<l;a++)g.removeAttribute(h[a]);for(a=0;a<f;a++)h=b[a],!0===c[h]?g.setAttribute(h,""):g.setAttribute(h,c[h]);"tag"===d.type&&k.indexOf(d.j)+1&&b.indexOf("value")+1&&(g.value=c.value);d.attributes=c;d.b=va(g,d,e)}else if("unmount"===b){d.props.ref&&(d.props.ref.current=void 0);if(!(g instanceof HTMLElement||g instanceof Text))throw Error("Can only remove a DOM node.");c=g.parentNode;if(!c)throw Error("Can only remove attached DOM node.");c.removeChild(g)}else"ready"===b&&(d.props.ref&&(d.props.ref.current= | ||
d.node),X(d,"ready"))}function wa(a,b){return sa(a,b,function(c,d,e){return d.hasOwnProperty(e)})}function ua(a,b){return sa(a,b,function(c,d,e){return c[e]===d[e]})}function va(a,b,c){function d(n){return function(m){if(b.b&&"function"===typeof b.b[n])b.b[n](m)}}var e=wa(b.b,c),f=e.length,g=wa(c,b.b),k=g.length,h;c&&!b.g&&(b.g={});for(h=0;h<f;h++){var l=e[h];a.removeEventListener(l,b.g[l],!1);delete b.g[l]}for(h=0;h<k;h++)l=g[h],b.g[l]=d(l),a.addEventListener(l,b.g[l],!1);return c}var Q=[]; | ||
function xa(a,b,c){if(c&&c.ready){if(!b.node&&"function"===typeof c.ready){var d=c.ready;W(b,"ready",function(){return d({target:a})})}delete c.ready}} | ||
function ya(a,b){var c;if(a&&a.children){var d=a.children.length;for(c=0;c<d;c++){var e=a.children[c],f=b;e&&(e.node&&!f&&(Y.push({action:"unmount",node:e.node,element:e}),f=!0),e.f=null,e.parent=null,e.node=null,e.h=[],e.attributes=null,e.b=null,e.g=null,ya(e,f),X(e,"destroy"),e.scope&&(e.scope.element&&delete e.scope.element,delete e.scope))}a.children=[]}} | ||
function za(a){for(var b=a.parent;b;){if(a.node)return null;if(b.children&&(a=b.children.indexOf(a),-1<a))for(--a;0<=a;a--){var c=b.children[a],d=c.node;c=c.h;if(d)return d;if(c&&c.length)return c[c.length-1]}a=b;b=a.parent}} | ||
function Z(a,b,c,d){var e=!1,f;if(!a||"function"!==typeof a.render)throw Error("Can only render a valid element.");for(f=Q.indexOf(a);-1<f;)Q[f]=null,f=Q.indexOf(a);Object.assign(a,{a:!1},{f:b||a.f},{parent:c||a.parent});if(!(a&&a.f instanceof HTMLElement))return[];"undefined"===typeof d&&(d=a.h,f=a.parent,d=a.node?null:d&&d.length?d[0].previousSibling:f?za(a):void 0);for(;!a.a;){f=a;f.scope||(f.scope={element:f});K=f.scope;K.index=0;var g=v(a.render());f=g.next().value;var k=g.next().value;var h= | ||
g.next().value;g=g.next().value;a.a&&X(a,"render");K=null;if(a.a){f&&(xa(f,a,g),Y.push({action:"update",node:a.node||f,element:a,attributes:h,b:g}),a.node||(a.node=f,Y.push({action:"mount",node:a.node||f,f:a.f,element:a,u:d}),e=!0),d=null);if(k!==a.children){f=k;k=a.children;h=[];if(f&&k){var l=k;var n=f;for(var m=[],p=l.length,q=n.length,L=0===p||0===q,la=0,ma=0,r=0,t=0,w=0,x=0;!L;)g=null,w<r&&t<q&&l[w].isEqual(n[t])&&(g=[w,t]),x<t&&r<p&&l[r].isEqual(n[x])&&(g=[r,x]),w===r&&x===t&&r<p&&t<q&&l[r].isEqual(n[t])&& | ||
(g=[r,t]),g?(m.push(g),la=w=r=g[0]+1,ma=x=t=g[1]+1):(w<r&&w+1<p?w+=1:(r+=1,w=la),x<t&&x+1<q?x+=1:(t+=1,x=ma),r>=p&&t>=q&&(L=!0));n=m;l=n.length;for(g=0;g<l;g++)p=v(n[g]),m=p.next().value,p=p.next().value,q=k[m],L=f[p],"function"===typeof q.setProps&&q.setProps(L.props),f[p]=q,h.push(m);for(g=h.length-1;0<=g;g--)k.splice(h[g],1)}l=f.length;for(g=0;g<l;g++)"function"!==typeof f[g].isEqual&&(f[g]=new V(f[g]));k=f;ya(a);a.children=k;k=a;h=d;g=k.children;l=k.f;n=k.node;m=[];if(g)for(p=g.length,f=0;f<p;f++)(q= | ||
Z(g[f],n||l,k,h))&&(m=m.concat(q)),m&&m.length&&(h=m[m.length-1]);a.h=m}"tag"===a.type&&e&&Y.push({action:"ready",element:a});b||c||!a.parent||Aa(a.parent)}}return a.node?[a.node]:a.h}function Aa(a){var b=a.children,c=a.node,d=a.parent;b&&(a.h=b.reduce(function(e,f){return e.concat(f.node?[f.node]:f.h)},[]),d&&!c&&Aa(d))}function R(a,b){M=!0;for(Z(a,b);0<Q.length||0<Y.length;)a=Q,Q=[],qa(a,Z),a=Y,Y=[],qa(a,ta);M=!1} | ||
var jet={Component:S,Fragment:function(a){return a?a.children:null},Memo:ja,createContext:function(a){var b={value:a,Provider:function(c){var d=K,e=c||{};c=e.children;e=e.value;var f={m:[],value:a};d.context||(d.context=f);d.element&&!d.element.context&&(d.element.context=b);if(d.context.value!==e){f=d.context.m;d.context.value=e;d=0;for(var g=f.length;d<g;d++)f[d](e)}return c}};return b},jsx:function(a,b,c){b=Object.assign({},{children:c?c.flat(20):[]},b);return new U(a,b)},memo:ja,render:R,useCallback:function(a, | ||
b){return P(function(){return a},b)},useContext:function(a){function b(){pa(c.element,b);var h=g.m.indexOf(k);0<=h&&g.m.splice(h,1)}var c=K,d=v(O(N)),e=d.next().value;d=d.next().value;var f=a.value,g=null;!e&&(g=ia(a))&&(f=g.value);a=v(la(f));f=a.next().value;var k=a.next().value;e||(c.element&&g&&(0>g.m.indexOf(k)&&g.m.push(k),W(c.element,"destroy",b)),d(!0));return f},useEffect:function(a,b){function c(){"function"===typeof k&&(pa(d.element,k),k());var l=a();"function"===typeof l&&(W(d.element, | ||
"destroy",l),h(l))}var d=K,e=v(O(N)),f=e.next().value;e=e.next().value;var g=v(O(N)),k=g.next().value,h=g.next().value;J(f,b)||(Array.isArray(b)&&e(b),d.element&&W(d.element,"render",c))},useMemo:P,useReducer:ka,useRef:function(a){return O(null,{current:a})[0]},useState:la};"object"===typeof window&&(window.jet=jet);"object"===typeof module&&(module.exports=jet);})(); | ||
b){return P(function(){return a},b)},useContext:function(a){function b(){ra(c.element,b);var h=g.m.indexOf(k);0<=h&&g.m.splice(h,1)}var c=K,d=v(O(N)),e=d.next().value;d=d.next().value;var f=a.value,g=null;!e&&(g=ia(a))&&(f=g.value);a=v(na(f));f=a.next().value;var k=a.next().value;e||(c.element&&g&&(0>g.m.indexOf(k)&&g.m.push(k),W(c.element,"destroy",b)),d(!0));return f},useEffect:function(a,b){function c(){"function"===typeof k&&(ra(d.element,k),k());var l=a();"function"===typeof l&&(W(d.element, | ||
"destroy",l),h(l))}var d=K,e=v(O(N)),f=e.next().value;e=e.next().value;var g=v(O(N)),k=g.next().value,h=g.next().value;J(f,b)||(Array.isArray(b)&&e(b),d.element&&W(d.element,"render",c))},useMemo:P,useReducer:ka,useRef:function(a){return O(null,{current:a})[0]},useState:na};"object"===typeof window&&(window.jet=jet);"object"===typeof module&&(module.exports=jet);})(); |
{ | ||
"name": "jete", | ||
"version": "0.10.3", | ||
"version": "0.10.4", | ||
"description": "Jet.js Rendering Engine.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14058
57